import { Component, Input } from '@angular/core';
import { AbstractSelectSearch } from '../abstract-select-search';
import * as i0 from "@angular/core";
import * as i1 from "../select-search/select-search.component";
import * as i2 from "@aztrix/components/row-cell-view";
import * as i3 from "@aztrix/helpers";
import * as i4 from "@aztrix/translate";
export class GroupSelectSearchComponent extends AbstractSelectSearch {
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: GroupSelectSearchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: GroupSelectSearchComponent, selector: "ax-group-select-search", inputs: { groups: "groups" }, usesInheritance: true, ngImport: i0, template: "<ng-template #option let-result>\n  <ax-group-cell-view [group]=\"result\"></ax-group-cell-view>\n</ng-template>\n<ng-template #selectedViewTemplate let-result>\n  <span>\n    {{ result | displayName }}\n  </span>\n</ng-template>\n\n<ax-select-search\n  [form]=\"form\"\n  [options]=\"groups\"\n  [placeholder]=\"(multiple ? 'label.groups' : 'label.group') | translate\"\n  [optionTemplate]=\"option\"\n  [selectedValueTemplate]=\"selectedViewTemplate\"\n  [multiple]=\"multiple\"\n  [keys]=\"['name']\"\n  [valueCallback]=\"valueCallback\"\n  [label]=\"label ? label : ((multiple ? 'label.groups' : 'label.group') | translate)\"\n></ax-select-search>\n", dependencies: [{ kind: "component", type: i1.SelectSearchComponent, selector: "ax-select-search", inputs: ["form", "options", "placeholder", "optionTemplate", "selectedValueTemplate", "multiple", "label", "keys", "canAddNew", "required", "appearance", "errorsTemplate", "prefixTemplate", "disabled", "valueCallback", "searchCallback$"], outputs: ["addNewValue"] }, { kind: "component", type: i2.GroupCellViewComponent, selector: "ax-group-cell-view", inputs: ["group"] }, { kind: "pipe", type: i3.DisplayNamePipe, name: "displayName" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: GroupSelectSearchComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-group-select-search', template: "<ng-template #option let-result>\n  <ax-group-cell-view [group]=\"result\"></ax-group-cell-view>\n</ng-template>\n<ng-template #selectedViewTemplate let-result>\n  <span>\n    {{ result | displayName }}\n  </span>\n</ng-template>\n\n<ax-select-search\n  [form]=\"form\"\n  [options]=\"groups\"\n  [placeholder]=\"(multiple ? 'label.groups' : 'label.group') | translate\"\n  [optionTemplate]=\"option\"\n  [selectedValueTemplate]=\"selectedViewTemplate\"\n  [multiple]=\"multiple\"\n  [keys]=\"['name']\"\n  [valueCallback]=\"valueCallback\"\n  [label]=\"label ? label : ((multiple ? 'label.groups' : 'label.group') | translate)\"\n></ax-select-search>\n" }]
        }], propDecorators: { groups: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JvdXAtc2VsZWN0LXNlYXJjaC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvc2VsZWN0LXNlYXJjaC9ncm91cC1zZWxlY3Qtc2VhcmNoL2dyb3VwLXNlbGVjdC1zZWFyY2guY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NlbGVjdC1zZWFyY2gvZ3JvdXAtc2VsZWN0LXNlYXJjaC9ncm91cC1zZWxlY3Qtc2VhcmNoLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRy9DLE9BQU8sRUFBQyxvQkFBb0IsRUFBQyxNQUFNLDJCQUEyQixDQUFDOzs7Ozs7QUFNL0QsTUFBTSxPQUFPLDBCQUEyQixTQUFRLG9CQUFvQjs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