import { booleanAttribute, ChangeDetectionStrategy, Component, EventEmitter, HostBinding, Input, Output, ViewEncapsulation, } from '@angular/core';
import { EuimToolbarComponentModule } from '../../layout/euim-toolbar';
// import { IonIcon, IonButton } from '@ionic/angular/standalone';
import { IonicModule } from '@ionic/angular';
import * as i0 from "@angular/core";
import * as i1 from "../euim-multiselect.component";
import * as i2 from "../../layout/euim-toolbar/euim-toolbar.component";
import * as i3 from "../../layout/euim-toolbar/euim-toolbar-title/euim-toolbar-title.component";
import * as i4 from "../../layout/euim-toolbar/euim-toolbar-action-items/euim-toolbar-action-items.component";
import * as i5 from "@ionic/angular";
export class EuimMultiselectToolbarComponent {
    constructor(multiselect) {
        this.multiselect = multiselect;
        this.className = 'euim-multiselect__toolbar';
        this.euimCustomRender = false;
        this.cancel = new EventEmitter();
        // eslint-disable-next-line @typescript-eslint/no-explicit-any
        this.confirm = new EventEmitter();
    }
    onConfirm() {
        this.confirm.emit(this.multiselect?.selectedItems());
    }
    onCancelClick() {
        this.cancel.emit(true);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EuimMultiselectToolbarComponent, deps: [{ token: i1.EuimMultiselectComponent }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: EuimMultiselectToolbarComponent, isStandalone: true, selector: "euim-multiselect-toolbar", inputs: { toolbarTitle: "toolbarTitle", euimCustomRender: ["euimCustomRender", "euimCustomRender", booleanAttribute] }, outputs: { cancel: "cancel", confirm: "confirm" }, host: { properties: { "class": "this.className" } }, ngImport: i0, template: "@if (!euimCustomRender) {\n  <euim-toolbar\n    [hasBackButton]=\"false\" [hasSidebarTrigger]=\"false\" >\n    <ion-button (click)=\"onCancelClick()\">\n      <ion-icon name=\"close\" slot=\"icon-only\"></ion-icon>\n    </ion-button>\n    <ng-content select=\"ion-button\"></ng-content>\n    <euim-toolbar-title class=\"euim-multiselect__toolbar--title\">\n      {{toolbarTitle}}\n    </euim-toolbar-title>\n    <euim-toolbar-action-items>\n      <ion-button (click)=\"onConfirm()\">\n        <ion-icon name=\"checkmark\" slot=\"icon-only\"></ion-icon>\n      </ion-button>\n    </euim-toolbar-action-items>\n  </euim-toolbar>\n}\n@if (euimCustomRender) {\n  <ng-content></ng-content>\n}\n\n", dependencies: [{ kind: "ngmodule", type: EuimToolbarComponentModule }, { kind: "component", type: i2.EuimToolbarComponent, selector: "euim-toolbar", inputs: ["hasBackButton", "backButtonDefaultHref", "ionMenuId", "hasSidebarTrigger", "hasLanguageSelector"], outputs: ["backButtonClick"] }, { kind: "component", type: i3.EuimToolbarTitleComponent, selector: "euim-toolbar-title" }, { kind: "component", type: i4.EuimToolbarActionItemsComponent, selector: "euim-toolbar-action-items" }, { kind: "ngmodule", type: IonicModule }, { kind: "component", type: i5.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i5.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EuimMultiselectToolbarComponent, decorators: [{
            type: Component,
            args: [{ selector: 'euim-multiselect-toolbar', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [EuimToolbarComponentModule, IonicModule], template: "@if (!euimCustomRender) {\n  <euim-toolbar\n    [hasBackButton]=\"false\" [hasSidebarTrigger]=\"false\" >\n    <ion-button (click)=\"onCancelClick()\">\n      <ion-icon name=\"close\" slot=\"icon-only\"></ion-icon>\n    </ion-button>\n    <ng-content select=\"ion-button\"></ng-content>\n    <euim-toolbar-title class=\"euim-multiselect__toolbar--title\">\n      {{toolbarTitle}}\n    </euim-toolbar-title>\n    <euim-toolbar-action-items>\n      <ion-button (click)=\"onConfirm()\">\n        <ion-icon name=\"checkmark\" slot=\"icon-only\"></ion-icon>\n      </ion-button>\n    </euim-toolbar-action-items>\n  </euim-toolbar>\n}\n@if (euimCustomRender) {\n  <ng-content></ng-content>\n}\n\n" }]
        }], ctorParameters: () => [{ type: i1.EuimMultiselectComponent }], propDecorators: { className: [{
                type: HostBinding,
                args: ['class']
            }], toolbarTitle: [{
                type: Input
            }], euimCustomRender: [{
                type: Input,
                args: [{ transform: booleanAttribute }]
            }], cancel: [{
                type: Output
            }], confirm: [{
                type: Output
            }] } });
//# sourceMappingURL=data:application/json;base64, 