import * as i0 from '@angular/core';
import { input, booleanAttribute, output, Component } from '@angular/core';
import { Icon } from '@masterteam/icons';
import * as i1 from 'primeng/chip';
import { ChipModule } from 'primeng/chip';

class Chip {
    label = input('', ...(ngDevMode ? [{ debugName: "label" }] : []));
    icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
    image = input('', ...(ngDevMode ? [{ debugName: "image" }] : []));
    removable = input(false, { ...(ngDevMode ? { debugName: "removable" } : {}), transform: booleanAttribute });
    removeIcon = input('general.x-circle', ...(ngDevMode ? [{ debugName: "removeIcon" }] : []));
    styleClass = input('', ...(ngDevMode ? [{ debugName: "styleClass" }] : []));
    onRemove = output();
    onImageError = output();
    onChipRemove(event) {
        this.onRemove.emit(event);
    }
    onChipImageError(event) {
        this.onImageError.emit(event);
    }
    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: Chip, deps: [], target: i0.ɵɵFactoryTarget.Component });
    static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.3", type: Chip, isStandalone: true, selector: "mt-chip", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: true, isRequired: false, transformFunction: null }, removeIcon: { classPropertyName: "removeIcon", publicName: "removeIcon", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onRemove: "onRemove", onImageError: "onImageError" }, ngImport: i0, template: "<p-chip\r\n  [label]=\"label()\"\r\n  [image]=\"image()\"\r\n  [removable]=\"removable()\"\r\n  [removeIcon]=\"removeIcon()\"\r\n  [class]=\"styleClass()\"\r\n  (onRemove)=\"onChipRemove($event)\"\r\n  (onImageError)=\"onChipImageError($event)\"\r\n>\r\n  <ng-template #removeicon>\r\n    <mt-icon class=\"align-super!\" [icon]=\"removeIcon()\" />\r\n  </ng-template>\r\n  @if (icon()) {\r\n    <mt-icon #iconTemplate class=\"align-super!\" [icon]=\"icon()\" />\r\n  }\r\n</p-chip>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: ChipModule }, { kind: "component", type: i1.Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "styleClass", "disabled", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }] });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: Chip, decorators: [{
            type: Component,
            args: [{ selector: 'mt-chip', standalone: true, imports: [ChipModule, Icon], template: "<p-chip\r\n  [label]=\"label()\"\r\n  [image]=\"image()\"\r\n  [removable]=\"removable()\"\r\n  [removeIcon]=\"removeIcon()\"\r\n  [class]=\"styleClass()\"\r\n  (onRemove)=\"onChipRemove($event)\"\r\n  (onImageError)=\"onChipImageError($event)\"\r\n>\r\n  <ng-template #removeicon>\r\n    <mt-icon class=\"align-super!\" [icon]=\"removeIcon()\" />\r\n  </ng-template>\r\n  @if (icon()) {\r\n    <mt-icon #iconTemplate class=\"align-super!\" [icon]=\"icon()\" />\r\n  }\r\n</p-chip>\r\n" }]
        }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: false }] }], removable: [{ type: i0.Input, args: [{ isSignal: true, alias: "removable", required: false }] }], removeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeIcon", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], onRemove: [{ type: i0.Output, args: ["onRemove"] }], onImageError: [{ type: i0.Output, args: ["onImageError"] }] } });

/**
 * Generated bundle index. Do not edit.
 */

export { Chip };
//# sourceMappingURL=masterteam-components-chip.mjs.map
