import { Component, Input } from '@angular/core';
import { AbstractSelectSearch } from '../abstract-select-search';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@aztrix/components/property-view";
import * as i3 from "../select-search/select-search.component";
import * as i4 from "@aztrix/icons";
import * as i5 from "@aztrix/helpers";
export class PropertySelectSearchComponent extends AbstractSelectSearch {
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PropertySelectSearchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: PropertySelectSearchComponent, selector: "ax-property-select-search", inputs: { properties: "properties", placeholder: "placeholder" }, usesInheritance: true, ngImport: i0, template: "<ng-template #option let-result>\n  <ax-property-value-view [property]=\"result\"></ax-property-value-view>\n  <ax-icon *ngIf=\"result?.visibility === 'PRIVATE'\" class=\"icon\" name=\"eye-off\"></ax-icon>\n</ng-template>\n<ng-template #selectedViewTemplate let-result>\n  <ax-property-value-view [property]=\"result\"></ax-property-value-view>\n</ng-template>\n\n<ax-select-search\n  [form]=\"form\"\n  [options]=\"properties\"\n  [placeholder]=\"\n    placeholder && placeholder !== ''\n      ? placeholder\n      : ((multiple ? 'label.properties' : 'label.property') | translate)\n  \"\n  [optionTemplate]=\"option\"\n  [selectedValueTemplate]=\"selectedViewTemplate\"\n  [multiple]=\"multiple\"\n  [valueCallback]=\"valueCallback\"\n  [canAddNew]=\"canAddNew\"\n  [label]=\"label ? label : ((multiple ? 'label.properties' : 'label.property') | translate)\"\n></ax-select-search>\n", styles: [".icon{margin-left:auto;width:1rem;height:1rem}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.PropertyValueViewComponent, selector: "ax-property-value-view", inputs: ["property", "showVerificationLabel", "clickable", "isIndividual", "params"] }, { kind: "component", type: i3.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: i4.IconComponent, selector: "ax-icon", inputs: ["name", "inline"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PropertySelectSearchComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-property-select-search', template: "<ng-template #option let-result>\n  <ax-property-value-view [property]=\"result\"></ax-property-value-view>\n  <ax-icon *ngIf=\"result?.visibility === 'PRIVATE'\" class=\"icon\" name=\"eye-off\"></ax-icon>\n</ng-template>\n<ng-template #selectedViewTemplate let-result>\n  <ax-property-value-view [property]=\"result\"></ax-property-value-view>\n</ng-template>\n\n<ax-select-search\n  [form]=\"form\"\n  [options]=\"properties\"\n  [placeholder]=\"\n    placeholder && placeholder !== ''\n      ? placeholder\n      : ((multiple ? 'label.properties' : 'label.property') | translate)\n  \"\n  [optionTemplate]=\"option\"\n  [selectedValueTemplate]=\"selectedViewTemplate\"\n  [multiple]=\"multiple\"\n  [valueCallback]=\"valueCallback\"\n  [canAddNew]=\"canAddNew\"\n  [label]=\"label ? label : ((multiple ? 'label.properties' : 'label.property') | translate)\"\n></ax-select-search>\n", styles: [".icon{margin-left:auto;width:1rem;height:1rem}\n"] }]
        }], propDecorators: { properties: [{
                type: Input
            }], placeholder: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktc2VsZWN0LXNlYXJjaC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvc2VsZWN0LXNlYXJjaC9wcm9wZXJ0e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