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";
export class GroupSelectSearchComponent extends AbstractSelectSearch {
}
GroupSelectSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GroupSelectSearchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
GroupSelectSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", 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.TranslatePipe, name: "translate" }, { kind: "pipe", type: i3.DisplayNamePipe, name: "displayName" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JvdXAtc2VsZWN0LXNlYXJjaC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvc2VsZWN0LXNlYXJjaC9ncm91cC1zZWxlY3Qtc2VhcmNoL2dyb3VwLXNlbGVjdC1zZWFyY2guY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NlbGVjdC1zZWFyY2gvZ3JvdXAtc2VsZWN0LXNlYXJjaC9ncm91cC1zZWxlY3Qtc2VhcmNoLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsS0FBSyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRy9DLE9BQU8sRUFBQyxvQkFBb0IsRUFBQyxNQUFNLDJCQUEyQixDQUFDOzs7OztBQU0vRCxNQUFNLE9BQU8sMEJBQTJCLFNBQVEsb0JBQW9COzt1SEFBdkQ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