import { Component, Inject, InjectionToken, Optional, } from '@angular/core';
import { WindowService } from '../../window.service';
import { WindowTaskBarComponent } from '../window-task-bar.component';
import { MatToolbarModule } from '@angular/material/toolbar';
import { MatIconModule } from '@angular/material/icon';
import { MatBadgeModule } from '@angular/material/badge';
import { MatButtonModule } from '@angular/material/button';
import { NgClass, NgIf, } from '@angular/common';
import * as i0 from "@angular/core";
import * as i1 from "@angular/material/button";
import * as i2 from "@angular/material/badge";
import * as i3 from "@angular/material/icon";
import * as i4 from "@angular/material/toolbar";
import * as i5 from "../../window.service";
export const RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS = new InjectionToken('rxap/window-system/task-bar-container');
export class WindowTaskBarContainerComponent {
    constructor(windowService, settings = null) {
        this.windowService = windowService;
        this.expand = true;
        if (settings) {
            if (settings.expand !== undefined) {
                this.expand = settings.expand;
            }
        }
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: WindowTaskBarContainerComponent, deps: [{ token: WindowService }, { token: RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: WindowTaskBarContainerComponent, isStandalone: true, selector: "rxap-window-task-bar-container", ngImport: i0, template: "<div *ngIf=\"windowService.hasActiveWindows\" class=\"rxap-container flex flex-col\">\n  <div class=\"flex flex-row justify-end items-end\">\n    <button (click)=\"expand = !expand\"\n            [matBadgeHidden]=\"!windowService.hasActiveWindows\"\n            [matBadge]=\"windowService.activeWindowCount.toFixed(0)\"\n            class=\"pin\"\n            color=\"primary\"\n            mat-icon-button\n            matBadgePosition=\"above before\"\n            type=\"button\">\n      <mat-icon *ngIf=\"!expand\">keyboard_arrow_up</mat-icon>\n      <mat-icon *ngIf=\"expand\">keyboard_arrow_down</mat-icon>\n    </button>\n  </div>\n  <mat-toolbar [ngClass]=\"{ hidden: !expand }\" class=\"tasks\">\n    <rxap-window-task-bar></rxap-window-task-bar>\n  </mat-toolbar>\n</div>\n", styles: [".rxap-container .pin{border:none;border-radius:50% 50% 0 0;cursor:pointer}.rxap-container .tasks{height:auto;padding:16px}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatBadgeModule }, { kind: "directive", type: i2.MatBadge, selector: "[matBadge]", inputs: ["matBadgeColor", "matBadgeOverlap", "matBadgeDisabled", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i4.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: WindowTaskBarComponent, selector: "rxap-window-task-bar" }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: WindowTaskBarContainerComponent, decorators: [{
            type: Component,
            args: [{ selector: 'rxap-window-task-bar-container', standalone: true, imports: [
                        NgIf,
                        MatButtonModule,
                        MatBadgeModule,
                        MatIconModule,
                        MatToolbarModule,
                        WindowTaskBarComponent,
                        NgClass,
                    ], template: "<div *ngIf=\"windowService.hasActiveWindows\" class=\"rxap-container flex flex-col\">\n  <div class=\"flex flex-row justify-end items-end\">\n    <button (click)=\"expand = !expand\"\n            [matBadgeHidden]=\"!windowService.hasActiveWindows\"\n            [matBadge]=\"windowService.activeWindowCount.toFixed(0)\"\n            class=\"pin\"\n            color=\"primary\"\n            mat-icon-button\n            matBadgePosition=\"above before\"\n            type=\"button\">\n      <mat-icon *ngIf=\"!expand\">keyboard_arrow_up</mat-icon>\n      <mat-icon *ngIf=\"expand\">keyboard_arrow_down</mat-icon>\n    </button>\n  </div>\n  <mat-toolbar [ngClass]=\"{ hidden: !expand }\" class=\"tasks\">\n    <rxap-window-task-bar></rxap-window-task-bar>\n  </mat-toolbar>\n</div>\n", styles: [".rxap-container .pin{border:none;border-radius:50% 50% 0 0;cursor:pointer}.rxap-container .tasks{height:auto;padding:16px}\n"] }]
        }], ctorParameters: () => [{ type: i5.WindowService, decorators: [{
                    type: Inject,
                    args: [WindowService]
                }] }, { type: undefined, decorators: [{
                    type: Optional
                }, {
                    type: Inject,
                    args: [RXAP_WINDOW_TASK_BAR_CONTAINER_SETTINGS]
                }] }] });
//# sourceMappingURL=data:application/json;base64, 