import { Component, HostBinding, ChangeDetectionStrategy, Input, Output, EventEmitter, ViewEncapsulation } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "../../components/eui-menu/eui-menu.component";
export class EuiSidebarMenuComponent {
    constructor() {
        this.string = 'eui-sidebar-menu';
        this.items = [];
        this.isCollapsed = false;
        this.hasFilter = false;
        this.hasIcons = false;
        this.hasTooltip = false;
        this.expandAllItems = false;
        this.style = '';
        this.onClicked = new EventEmitter();
        this.onItemClicked = new EventEmitter();
    }
    onMenuItemClicked(item) {
        this.onItemClicked.emit(item);
    }
    onMenuClicked(event) {
        this.onClicked.emit(event);
    }
    onMenuCollapsed(event) {
        this.isCollapsed = event;
    }
}
/** @nocollapse */ EuiSidebarMenuComponent.ɵfac = function EuiSidebarMenuComponent_Factory(t) { return new (t || EuiSidebarMenuComponent)(); };
/** @nocollapse */ EuiSidebarMenuComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EuiSidebarMenuComponent, selectors: [["eui-sidebar-menu"]], hostVars: 2, hostBindings: function EuiSidebarMenuComponent_HostBindings(rf, ctx) { if (rf & 2) {
        i0.ɵɵclassMap(ctx.string);
    } }, inputs: { items: "items", isCollapsed: "isCollapsed", hasFilter: "hasFilter", hasIcons: "hasIcons", hasTooltip: "hasTooltip", expandAllItems: "expandAllItems", style: "style", fragmentId: "fragmentId", searchFilterLabel: "searchFilterLabel", expandMenuLabel: "expandMenuLabel", collapseMenuLabel: "collapseMenuLabel", externalLinkLabel: "externalLinkLabel" }, outputs: { onClicked: "onClicked", onItemClicked: "onItemClicked" }, decls: 3, vars: 15, consts: [[1, "eui-sidebar-menu__container"], [1, "eui-sidebar-menu__content"], [3, "items", "hasFilter", "hasIcons", "hasTooltip", "isCollapsed", "expandAllItems", "fragmentId", "searchFilterLabel", "expandMenuLabel", "collapseMenuLabel", "externalLinkLabel", "onClicked", "onItemClicked"]], template: function EuiSidebarMenuComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementStart(0, "div", 0);
        i0.ɵɵelementStart(1, "div", 1);
        i0.ɵɵelementStart(2, "eui-menu", 2);
        i0.ɵɵlistener("onClicked", function EuiSidebarMenuComponent_Template_eui_menu_onClicked_2_listener($event) { return ctx.onMenuClicked($event); })("onItemClicked", function EuiSidebarMenuComponent_Template_eui_menu_onItemClicked_2_listener($event) { return ctx.onMenuItemClicked($event); });
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
        i0.ɵɵelementEnd();
    } if (rf & 2) {
        i0.ɵɵstyleMap(ctx.style);
        i0.ɵɵclassProp("eui-sidebar-menu__container--collapsed", ctx.isCollapsed);
        i0.ɵɵadvance(2);
        i0.ɵɵproperty("items", ctx.items)("hasFilter", ctx.hasFilter)("hasIcons", ctx.hasIcons)("hasTooltip", ctx.hasTooltip)("isCollapsed", ctx.isCollapsed)("expandAllItems", ctx.expandAllItems)("fragmentId", ctx.fragmentId)("searchFilterLabel", ctx.searchFilterLabel)("expandMenuLabel", ctx.expandMenuLabel)("collapseMenuLabel", ctx.collapseMenuLabel)("externalLinkLabel", ctx.externalLinkLabel);
    } }, directives: [i1.EuiMenuComponent], styles: [".eui-sidebar-menu{display:flex;height:100%;width:100%}.eui-sidebar-menu__container{background-color:var(--eui-app-sidebar-bg-color);height:100%;position:relative;transition:top .1s ease,width .1s ease-in,margin-left .1s ease-in-out;width:100%}.eui-sidebar-menu__container--collapsed{top:var(--eui-spacing);width:var(--eui-app-sidebar-width-close-active)}.eui-sidebar-menu__content{border-right:1px solid var(--eui-app-sidebar-border-right-color);box-shadow:0 8px 10px 0 rgba(183,192,206,.2);display:flex;flex-direction:column;height:100%;margin-bottom:var(--eui-spacing-xs);overflow-x:hidden;overflow-y:auto;position:relative}.eui-sidebar-menu__content::-webkit-scrollbar{background-color:var(--eui-color-grey-lightest);display:inherit;height:6px;width:6px}.eui-sidebar-menu__content::-webkit-scrollbar-thumb{background-color:var(--eui-color-grey-light);border-radius:5rem}.eui-sidebar-menu__content::-webkit-scrollbar-thumb:hover{background-color:var(--eui-color-grey)}.eui-sidebar-menu__content::-webkit-scrollbar-track{background-color:var(--eui-color-grey-lightest);border-radius:0}.eui-page-column__body .eui-sidebar-menu__content{box-shadow:inherit}"], encapsulation: 2 });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiSidebarMenuComponent, [{
        type: Component,
        args: [{
                selector: 'eui-sidebar-menu',
                templateUrl: './eui-sidebar-menu.component.html',
                styleUrls: ['./_styles/_index.scss'],
                changeDetection: ChangeDetectionStrategy.Default,
                encapsulation: ViewEncapsulation.None,
            }]
    }], function () { return []; }, { string: [{
            type: HostBinding,
            args: ['class']
        }], items: [{
            type: Input
        }], isCollapsed: [{
            type: Input
        }], hasFilter: [{
            type: Input
        }], hasIcons: [{
            type: Input
        }], hasTooltip: [{
            type: Input
        }], expandAllItems: [{
            type: Input
        }], style: [{
            type: Input
        }], fragmentId: [{
            type: Input
        }], searchFilterLabel: [{
            type: Input
        }], expandMenuLabel: [{
            type: Input
        }], collapseMenuLabel: [{
            type: Input
        }], externalLinkLabel: [{
            type: Input
        }], onClicked: [{
            type: Output
        }], onItemClicked: [{
            type: Output
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 