import { Component, HostBinding } from '@angular/core';
import { AbstractPropertyEdit } from '../abstract-property-edit';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@aztrix/icons";
import * as i3 from "@aztrix/components/select-search";
import * as i4 from "@aztrix/helpers";
export class CategoryEditComponent extends AbstractPropertyEdit {
    get showIconClass() {
        return this.showIcon;
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CategoryEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: CategoryEditComponent, selector: "ax-category-edit", host: { properties: { "class.showIcon": "this.showIconClass" } }, usesInheritance: true, ngImport: i0, template: "<ax-icon\n  *ngIf=\"showIcon\"\n  class=\"icon type-icon\"\n  [name]=\"PropertyType.CATEGORY | propertyIcon\"\n></ax-icon>\n<ax-category-select-search\n  *ngIf=\"form\"\n  [form]=\"form.get('value')\"\n  [forProperty]=\"true\"\n  [hint]=\"hint\"\n  [required]=\"required\"\n  [label]=\"customLabel === '' ? (type | propertyTypeLabel) : customLabel\"\n  [readonly]=\"readonly\"\n  [subscriptSizing]=\"subscriptSizing\"\n></ax-category-select-search>\n", styles: [":host{position:relative}:host .type-icon{margin-top:19px}\n", ":host .type-icon{display:none}:host.showIcon{display:grid;grid-template-columns:38px 1fr}:host.showIcon .type-icon{display:inline}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "ax-icon", inputs: ["name", "inline"] }, { kind: "component", type: i3.CategorySelectSearchComponent, selector: "ax-category-select-search", inputs: ["form", "forProperty", "hint", "label", "required", "readonly", "subscriptSizing"] }, { kind: "pipe", type: i4.PropertyTypeLabelPipe, name: "propertyTypeLabel" }, { kind: "pipe", type: i4.PropertyIconPipe, name: "propertyIcon" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CategoryEditComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-category-edit', template: "<ax-icon\n  *ngIf=\"showIcon\"\n  class=\"icon type-icon\"\n  [name]=\"PropertyType.CATEGORY | propertyIcon\"\n></ax-icon>\n<ax-category-select-search\n  *ngIf=\"form\"\n  [form]=\"form.get('value')\"\n  [forProperty]=\"true\"\n  [hint]=\"hint\"\n  [required]=\"required\"\n  [label]=\"customLabel === '' ? (type | propertyTypeLabel) : customLabel\"\n  [readonly]=\"readonly\"\n  [subscriptSizing]=\"subscriptSizing\"\n></ax-category-select-search>\n", styles: [":host{position:relative}:host .type-icon{margin-top:19px}\n", ":host .type-icon{display:none}:host.showIcon{display:grid;grid-template-columns:38px 1fr}:host.showIcon .type-icon{display:inline}\n"] }]
        }], propDecorators: { showIconClass: [{
                type: HostBinding,
                args: ['class.showIcon']
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktZWRpdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvcHJvcGVydHktZWRpdC9jYXRlZ29yeS1lZGl0L2NhdGVnb3J5LWVkaXQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3Byb3BlcnR5LWVkaXQvY2F0ZWdvcnktZWRpdC9jYXRlZ29yeS1lZGl0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsV0FBVyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXJELE9BQU8sRUFBQyxvQkFBb0IsRUFBQyxNQUFNLDJCQUEyQixDQUFDOzs7Ozs7QUFPL0QsTUFBTSx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