import { __decorate, __metadata } from "tslib";
import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';
import { OTranslatePipe } from '../../pipes/o-translate.pipe';
import { BooleanInputConverter } from '../../decorators/input-converter';
import * as i0 from "@angular/core";
export const DEFAULT_INPUTS_O_DATA_TOOLBAR = [
    'showTitle: show-title',
    'title',
];
export class ODataToolbarComponent {
    constructor() {
        this.showTitle = false;
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ODataToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ODataToolbarComponent, isStandalone: true, selector: "o-data-toolbar", inputs: { showTitle: ["show-title", "showTitle"], title: "title" }, host: { classAttribute: "o-data-toolbar" }, ngImport: i0, template: "<ng-content select=\"[o-data-toolbar-projection-start]\"></ng-content>\n<ng-content select=\"[o-data-toolbar-custom-projection-start]\"></ng-content>\n<div class=\"o-flex\">\n  @if (showTitle) {\n    <span class=\"title o-layout-align-center-center\">{{ title | oTranslate }}</span>\n  }\n</div>\n<ng-content select=\"[o-data-toolbar-custom-projection-end]\"></ng-content>\n<ng-content select=\"[o-data-toolbar-projection-end]\"></ng-content>\n", styles: [".o-data-toolbar{display:flex;align-items:center;align-content:space-between;width:100%;flex-direction:row;white-space:nowrap;padding:8px 0}.o-data-toolbar .title{font-size:18px;font-weight:400;text-align:center}.o-data-toolbar .mat-mdc-form-field-subscript-wrapper{display:none}\n"], dependencies: [{ kind: "pipe", type: OTranslatePipe, name: "oTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
}
__decorate([
    BooleanInputConverter(),
    __metadata("design:type", Boolean)
], ODataToolbarComponent.prototype, "showTitle", void 0);
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ODataToolbarComponent, decorators: [{
            type: Component,
            args: [{ standalone: true, imports: [OTranslatePipe], selector: 'o-data-toolbar', inputs: DEFAULT_INPUTS_O_DATA_TOOLBAR, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'o-data-toolbar' }, template: "<ng-content select=\"[o-data-toolbar-projection-start]\"></ng-content>\n<ng-content select=\"[o-data-toolbar-custom-projection-start]\"></ng-content>\n<div class=\"o-flex\">\n  @if (showTitle) {\n    <span class=\"title o-layout-align-center-center\">{{ title | oTranslate }}</span>\n  }\n</div>\n<ng-content select=\"[o-data-toolbar-custom-projection-end]\"></ng-content>\n<ng-content select=\"[o-data-toolbar-projection-end]\"></ng-content>\n", styles: [".o-data-toolbar{display:flex;align-items:center;align-content:space-between;width:100%;flex-direction:row;white-space:nowrap;padding:8px 0}.o-data-toolbar .title{font-size:18px;font-weight:400;text-align:center}.o-data-toolbar .mat-mdc-form-field-subscript-wrapper{display:none}\n"] }]
        }], propDecorators: { showTitle: [] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiby1kYXRhLXRvb2xiYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvb250aW1pemUtd2ViLW5neC9zcmMvbGliL2NvbXBvbmVudHMvby1kYXRhLXRvb2xiYXIvby1kYXRhLXRvb2xiYXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvb250aW1pemUtd2ViLW5neC9zcmMvbGliL2NvbXBvbmVudHMvby1kYXRhLXRvb2xiYXIvby1kYXRhLXRvb2xiYXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHdEYsT0FBTy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