import { Component, EventEmitter, Input, Output } from "@angular/core";
import { LayoutModule } from "@progress/kendo-angular-layout";
import { HeaderComponent } from "../header/header.component";
import { CommonModule } from "@angular/common";
import { SidebarComponent } from "../sidebar/Sidebar.component";
import { PageComponent } from "../page/page.component";
import * as i0 from "@angular/core";
import * as i1 from "@progress/kendo-angular-layout";
export class MainContainerComponent {
    constructor() {
        this.items = [];
        this.isOpen = false;
        this.clickItemMenu = new EventEmitter();
    }
    toggleSidebar() {
        console.log("MainContainerComponent");
        this.isOpen = !this.isOpen;
    }
    clickOption(value) {
        this.clickItemMenu.emit(value);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MainContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: MainContainerComponent, isStandalone: true, selector: "th-main-container", inputs: { items: "items", logo: "logo" }, outputs: { clickItemMenu: "clickItemMenu" }, ngImport: i0, template: "<div class=\"main-container\">\n  <sirius-lib-sidebar \n    [ignoreIcon]=\"true\" \n    [isOpen]=\"isOpen\"\n    [items]=\"items\"\n    (burgerClick)=\"toggleSidebar()\"  \n    (clickItemMenu)=\"clickOption($event)\"\n  />\n  <div class=\"main-container--content\" [class.open]=\"isOpen\">\n    <kendo-gridlayout [gap]=\"{ cols: 12 }\">\n      <kendo-gridlayout-item >\n        <sirius-lib-header (burgerClick)=\"toggleSidebar()\" [logo]=\"logo\"/>\n      </kendo-gridlayout-item>\n      <kendo-gridlayout-item>\n        <ng-content></ng-content>\n      </kendo-gridlayout-item>\n    </kendo-gridlayout>\n  </div>\n</div>", styles: [".main-container--content{margin-left:0;transition:.3s;display:flex;flex-direction:column}.main-container--content.open{margin-left:250px}\n"], dependencies: [{ kind: "ngmodule", type: LayoutModule }, { kind: "component", type: i1.GridLayoutComponent, selector: "kendo-gridlayout", inputs: ["rows", "cols", "gap", "align"], exportAs: ["kendoGridLayout"] }, { kind: "component", type: i1.GridLayoutItemComponent, selector: "kendo-gridlayout-item", inputs: ["row", "col", "rowSpan", "colSpan"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: HeaderComponent, selector: "sirius-lib-header", inputs: ["user", "logo"], outputs: ["burgerClick"] }, { kind: "component", type: SidebarComponent, selector: "sirius-lib-sidebar", inputs: ["isOpen", "ignoreIcon", "items"], outputs: ["toggleMenu", "clickItemMenu"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: MainContainerComponent, decorators: [{
            type: Component,
            args: [{ standalone: true, imports: [
                        LayoutModule, CommonModule, PageComponent, CommonModule,
                        HeaderComponent, SidebarComponent, PageComponent
                    ], selector: 'th-main-container', template: "<div class=\"main-container\">\n  <sirius-lib-sidebar \n    [ignoreIcon]=\"true\" \n    [isOpen]=\"isOpen\"\n    [items]=\"items\"\n    (burgerClick)=\"toggleSidebar()\"  \n    (clickItemMenu)=\"clickOption($event)\"\n  />\n  <div class=\"main-container--content\" [class.open]=\"isOpen\">\n    <kendo-gridlayout [gap]=\"{ cols: 12 }\">\n      <kendo-gridlayout-item >\n        <sirius-lib-header (burgerClick)=\"toggleSidebar()\" [logo]=\"logo\"/>\n      </kendo-gridlayout-item>\n      <kendo-gridlayout-item>\n        <ng-content></ng-content>\n      </kendo-gridlayout-item>\n    </kendo-gridlayout>\n  </div>\n</div>", styles: [".main-container--content{margin-left:0;transition:.3s;display:flex;flex-direction:column}.main-container--content.open{margin-left:250px}\n"] }]
        }], propDecorators: { items: [{
                type: Input
            }], logo: [{
                type: Input
            }], clickItemMenu: [{
                type: Output
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi1jb250YWluZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2lyaX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