import { Component, EventEmitter, Input, Output } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/forms";
import * as i2 from "primeng/dropdown";
export class CriteriaTemplateComponent {
    constructor() {
        this.templateSelected = new EventEmitter();
        this.templates = [];
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CriteriaTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: CriteriaTemplateComponent, selector: "ocx-criteria-template", inputs: { searchId: "searchId" }, outputs: { templateSelected: "templateSelected" }, ngImport: i0, template: "<div>\n  <p-dropdown\n    [options]=\"templates\"\n    [(ngModel)]=\"selectedTemplate\"\n    ngDefaultControl\n    [editable]=\"false\"\n    appendTo=\"body\"\n    optionLabel=\"name\"\n    name=\"searchCriteriaTemplateDropdown\"\n    [filter]=\"true\"\n    filterBy=\"name\"\n    placeholder=\"Select saved filter\"\n    [showClear]=\"true\"\n  ></p-dropdown>\n  <span class=\"c-template-modified-indicator\"></span>\n</div>\n", styles: [":host ::ng-deep span.p-dropdown-label{padding:.5rem}\n"], dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.Dropdown, selector: "p-dropdown", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "variant", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "autoShowPanelOnPrintableCharacterKeyDown", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CriteriaTemplateComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ocx-criteria-template', template: "<div>\n  <p-dropdown\n    [options]=\"templates\"\n    [(ngModel)]=\"selectedTemplate\"\n    ngDefaultControl\n    [editable]=\"false\"\n    appendTo=\"body\"\n    optionLabel=\"name\"\n    name=\"searchCriteriaTemplateDropdown\"\n    [filter]=\"true\"\n    filterBy=\"name\"\n    placeholder=\"Select saved filter\"\n    [showClear]=\"true\"\n  ></p-dropdown>\n  <span class=\"c-template-modified-indicator\"></span>\n</div>\n", styles: [":host ::ng-deep span.p-dropdown-label{padding:.5rem}\n"] }]
        }], propDecorators: { searchId: [{
                type: Input
            }], templateSelected: [{
                type: Output
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JpdGVyaWEtdGVtcGxhdGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi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