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/components/property-published-button";
import * as i5 from "@aztrix/helpers";
export class CategoryEditComponent extends AbstractPropertyEdit {
    get showIconClass() {
        return this.showIcon;
    }
}
CategoryEditComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: CategoryEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
CategoryEditComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", 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></ax-category-select-search>\n<ax-property-published-button *ngIf=\"published\"></ax-property-published-button>\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"] }, { kind: "component", type: i4.PropertyPublishedButtonComponent, selector: "ax-property-published-button" }, { kind: "pipe", type: i5.PropertyTypeLabelPipe, name: "propertyTypeLabel" }, { kind: "pipe", type: i5.PropertyIconPipe, name: "propertyIcon" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", 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></ax-category-select-search>\n<ax-property-published-button *ngIf=\"published\"></ax-property-published-button>\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2F0ZWdvcnktZWRpdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvcHJvcGVydHktZWRpdC9jYXRlZ29yeS1lZGl0L2NhdGVnb3J5LWVkaXQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3Byb3BlcnR5LWVkaXQvY2F0ZWdvcnktZWRpdC9jYXRlZ29yeS1lZGl0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsV0FBVyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXJELE9BQU8sRUFBQyxvQkFBb0IsRUFBQyxNQU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