@yuuvis/client-shell 2.0.3 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,100 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, signal, Component } from '@angular/core';
3
+ import { toSignal } from '@angular/core/rxjs-interop';
4
+ import * as i1 from '@yuuvis/client-core';
5
+ import { UserService, ConfigService, TranslateService, AppCacheService, TranslateModule } from '@yuuvis/client-core';
6
+ import { DOCUMENT, CommonModule } from '@angular/common';
7
+ import { FormBuilder, ReactiveFormsModule } from '@angular/forms';
8
+ import { ShellService } from '@yuuvis/client-shell-core';
9
+ import { map } from 'rxjs';
10
+ import { MatSelectModule } from '@angular/material/select';
11
+ import { MatButtonToggleGroup, MatButtonToggle } from '@angular/material/button-toggle';
12
+ import { HttpClient } from '@angular/common/http';
13
+ import * as i2 from '@angular/material/expansion';
14
+ import { MatExpansionModule } from '@angular/material/expansion';
15
+ import * as i3 from '@angular/material/table';
16
+ import { MatTableModule } from '@angular/material/table';
17
+
18
+ class SettingsPageComponent {
19
+ constructor() {
20
+ this.userService = inject(UserService);
21
+ this.config = inject(ConfigService);
22
+ this.translate = inject(TranslateService);
23
+ this.shell = inject(ShellService);
24
+ this.document = inject(DOCUMENT);
25
+ this.#appCache = inject(AppCacheService);
26
+ this.#http = inject(HttpClient);
27
+ this.#fb = inject(FormBuilder);
28
+ this.clientLocales = signal([]);
29
+ this.clientVersion = signal(undefined);
30
+ this.clientAboutData = signal(undefined);
31
+ this.user = toSignal(this.userService.user$);
32
+ this.appSettingForms$ = this.shell.appSettings$.pipe(map((settings) => settings.map((e) => {
33
+ const x = {};
34
+ const fcn = e.properties.map((p) => ({
35
+ label: this.translate.instant(p.label) || p.label,
36
+ name: p.name,
37
+ type: p.type
38
+ }));
39
+ e.properties.forEach((p) => {
40
+ x[p.name] = [p.value];
41
+ });
42
+ return {
43
+ appID: e.appID,
44
+ label: e.label,
45
+ formControls: fcn,
46
+ form: this.#fb.group(x)
47
+ };
48
+ })));
49
+ }
50
+ #appCache;
51
+ #http;
52
+ #fb;
53
+ saveAppSettings(appID, form) {
54
+ this.userService
55
+ .saveUserSettings({
56
+ clientAppSettings: {
57
+ [appID]: form.value
58
+ }
59
+ })
60
+ .subscribe({
61
+ next: () => {
62
+ form.markAsPristine();
63
+ },
64
+ error: (err) => {
65
+ console.error('Error saving app settings', err);
66
+ }
67
+ });
68
+ }
69
+ changeClientLocale(iso) {
70
+ this.userService.changeClientLocale(iso);
71
+ }
72
+ toggleDarkMode() {
73
+ const root = document.getElementsByTagName('body')[0];
74
+ root.classList.toggle('dark');
75
+ }
76
+ ngOnInit() {
77
+ this.clientVersion.set(this.document.body.getAttribute('data-version') ?? 'dev');
78
+ this.clientLocales.set(this.config.getClientLocales());
79
+ this.getAboutData();
80
+ }
81
+ getAboutData() {
82
+ this.#http.get('assets/about.data.json').subscribe({
83
+ next: (response) => {
84
+ this.clientAboutData.set(response);
85
+ },
86
+ error: (error) => console.log({ error })
87
+ });
88
+ }
89
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: SettingsPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
90
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.12", type: SettingsPageComponent, isStandalone: true, selector: "yuv-settings", ngImport: i0, template: "<header>\n <h1>{{ 'yuv.shell.settings.title' | translate }}</h1>\n <span class=\"subhead\">{{ 'yuv.shell.settings.client.version' | translate }}: {{ clientVersion() }}</span>\n</header>\n\n\n<main>\n <div class=\"content-container\">\n <!-- User Info -->\n @let user = this.user();\n @if (user) {\n <section class=\"section user\">\n <h2 class=\"section__title\">{{ user.title }}</h2>\n <div class=\"section__body user__data grid\">\n <div class=\"user__data-entry grid-row\">\n <span class=\"user__data-entry-key grid-col grid-col-key\">\n {{ 'yuv.shell.settings.user.email' | translate }}:\n </span>\n <span class=\"user__data-entry-value grid-col grid-col-value\">\n {{ user.email }}\n </span>\n </div>\n <div class=\"user__data-entry grid-row\">\n <span class=\"user__data-entry-key grid-col grid-col-key\">\n {{ 'yuv.shell.settings.tenant' | translate }}:\n </span>\n <span class=\"user__data-entry-value grid-col grid-col-value\">\n {{ user.tenant }}\n </span>\n </div>\n\n <!--<div class=\"user__data\">{{ 'yuv.shell.settings.user.name' | translate }}: {{ user.username }}</div>\n <div class=\"user__data-entry\">{{ 'yuv.shell.settings.user.email' | translate }}: {{ user.email }}</div>\n <div class=\"user__data-entry\">{{ 'yuv.shell.settings.tenant' | translate }}: {{ user.tenant }}</div>-->\n </div>\n </section>\n }\n <!-- Language Settings -->\n <section yuvOfflineDisabled class=\"section\">\n <h2 class=\"section__title\">{{ 'yuv.shell.settings.language' | translate }}</h2>\n <div class=\"section__body\">\n <mat-button-toggle-group name=\"language\" [value]=\"translate.currentLang\" (valueChange)=\"changeClientLocale($event)\" [attr.aria-label]=\"'yuv.shell.settings.language' | translate\" >\n @for (locale of clientLocales(); track locale.iso) {\n <mat-button-toggle value=\"{{ locale.iso }}\">{{ locale.label }}</mat-button-toggle>\n }\n </mat-button-toggle-group>\n </div>\n </section>\n <!-- About Info -->\n @let libraries = this.clientAboutData()?.libraries;\n @if (libraries) {\n <section class=\"section about\">\n <h2 class=\"section__title\">{{ 'yuv.shell.settings.about.title' | translate }}</h2>\n <mat-expansion-panel class=\"about__panel\">\n <mat-expansion-panel-header>\n <mat-panel-title>{{ 'yuv.shell.settings.dependency-info.title' | translate }}</mat-panel-title>\n<!-- <mat-panel-description>{{ '' | translate }}</mat-panel-description>-->\n </mat-expansion-panel-header>\n\n <ng-template matExpansionPanelContent>\n <div class=\"about__panel-content\">\n <table mat-table [dataSource]=\"libraries\" class=\"mat-elevation-z8\">\n\n <!-- Name Column -->\n <ng-container matColumnDef=\"name\">\n <th mat-header-cell *matHeaderCellDef>{{ 'yuv.shell.settings.dependency-info.package' | translate }}</th>\n <td mat-cell *matCellDef=\"let element\"> {{element.name}} </td>\n </ng-container>\n\n <!-- Version Column -->\n <ng-container matColumnDef=\"version\">\n <th mat-header-cell *matHeaderCellDef>{{ 'yuv.shell.settings.dependency-info.version' | translate }}</th>\n <td mat-cell *matCellDef=\"let element\"> {{element.version}} </td>\n </ng-container>\n\n <!-- License Column -->\n <ng-container matColumnDef=\"license\">\n <th mat-header-cell *matHeaderCellDef>{{ 'yuv.shell.settings.dependency-info.license' | translate }}</th>\n <td mat-cell *matCellDef=\"let element\"> {{element.license}} </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"['name', 'version', 'license']\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['name', 'version', 'license'];\"></tr>\n </table>\n </div>\n </ng-template>\n </mat-expansion-panel>\n </section>\n }\n <!-- app settings -->\n <!-- TODO: activate one feature is refined -->\n <!-- @for (c of appSettingForms$ | async; track $index) {\n <section>\n {{ c.label }}\n <form [formGroup]=\"c.form\" (ngSubmit)=\"saveAppSettings(c.appID, c.form)\">\n @for (n of c.formControls; track $index) {\n <label\n >{{ n.label }}\n\n @switch (n.type) {\n @case ('string') {\n <input type=\"text\" [formControlName]=\"n.name\" />\n }\n @case ('number') {\n <input type=\"number\" [formControlName]=\"n.name\" />\n }\n }\n </label>\n }\n <button [ngClass]=\"{ hideen: c.form.untouched }\" [disabled]=\"c.form.invalid\">Save</button>\n </form>\n </section>\n } -->\n </div>\n</main>\n", styles: [":host{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:\"header\" \"settings\";height:100%;overflow:hidden;overflow-y:auto}:host header{grid-area:header;padding:var(--ymt-spacing-3xl)}:host header h1{margin:0}:host header .subhead{font:var(--ymt-font-subhead);color:var(--ymt-text-color-subtle)}:host main{grid-area:settings;padding:var(--ymt-spacing-m);padding-right:0;overflow-y:auto;scrollbar-gutter:stable}:host main .content-container{max-width:900px}:host main section{display:flex;flex-flow:column;padding:var(--ymt-spacing-m);margin-bottom:var(--ymt-spacing-l)}:host main .about__panel-content{overflow-x:auto}:host main .grid-row{display:grid;grid-template-columns:minmax(10ch,1fr) 11fr;grid-gap:var(--ymt-spacing-s);grid-template-areas:\"key value\";align-items:baseline}:host main .grid-col-key{font-weight:700;grid-area:key}:host main .grid-col-value{grid-area:value;word-break:break-all}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatSelectModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "component", type: i2.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i2.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i2.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i2.MatExpansionPanelContent, selector: "ng-template[matExpansionPanelContent]" }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }] }); }
91
+ }
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: SettingsPageComponent, decorators: [{
93
+ type: Component,
94
+ args: [{ selector: 'yuv-settings', standalone: true, imports: [CommonModule, TranslateModule,
95
+ MatSelectModule,
96
+ ReactiveFormsModule, MatButtonToggleGroup, MatButtonToggle, MatExpansionModule, MatTableModule], template: "<header>\n <h1>{{ 'yuv.shell.settings.title' | translate }}</h1>\n <span class=\"subhead\">{{ 'yuv.shell.settings.client.version' | translate }}: {{ clientVersion() }}</span>\n</header>\n\n\n<main>\n <div class=\"content-container\">\n <!-- User Info -->\n @let user = this.user();\n @if (user) {\n <section class=\"section user\">\n <h2 class=\"section__title\">{{ user.title }}</h2>\n <div class=\"section__body user__data grid\">\n <div class=\"user__data-entry grid-row\">\n <span class=\"user__data-entry-key grid-col grid-col-key\">\n {{ 'yuv.shell.settings.user.email' | translate }}:\n </span>\n <span class=\"user__data-entry-value grid-col grid-col-value\">\n {{ user.email }}\n </span>\n </div>\n <div class=\"user__data-entry grid-row\">\n <span class=\"user__data-entry-key grid-col grid-col-key\">\n {{ 'yuv.shell.settings.tenant' | translate }}:\n </span>\n <span class=\"user__data-entry-value grid-col grid-col-value\">\n {{ user.tenant }}\n </span>\n </div>\n\n <!--<div class=\"user__data\">{{ 'yuv.shell.settings.user.name' | translate }}: {{ user.username }}</div>\n <div class=\"user__data-entry\">{{ 'yuv.shell.settings.user.email' | translate }}: {{ user.email }}</div>\n <div class=\"user__data-entry\">{{ 'yuv.shell.settings.tenant' | translate }}: {{ user.tenant }}</div>-->\n </div>\n </section>\n }\n <!-- Language Settings -->\n <section yuvOfflineDisabled class=\"section\">\n <h2 class=\"section__title\">{{ 'yuv.shell.settings.language' | translate }}</h2>\n <div class=\"section__body\">\n <mat-button-toggle-group name=\"language\" [value]=\"translate.currentLang\" (valueChange)=\"changeClientLocale($event)\" [attr.aria-label]=\"'yuv.shell.settings.language' | translate\" >\n @for (locale of clientLocales(); track locale.iso) {\n <mat-button-toggle value=\"{{ locale.iso }}\">{{ locale.label }}</mat-button-toggle>\n }\n </mat-button-toggle-group>\n </div>\n </section>\n <!-- About Info -->\n @let libraries = this.clientAboutData()?.libraries;\n @if (libraries) {\n <section class=\"section about\">\n <h2 class=\"section__title\">{{ 'yuv.shell.settings.about.title' | translate }}</h2>\n <mat-expansion-panel class=\"about__panel\">\n <mat-expansion-panel-header>\n <mat-panel-title>{{ 'yuv.shell.settings.dependency-info.title' | translate }}</mat-panel-title>\n<!-- <mat-panel-description>{{ '' | translate }}</mat-panel-description>-->\n </mat-expansion-panel-header>\n\n <ng-template matExpansionPanelContent>\n <div class=\"about__panel-content\">\n <table mat-table [dataSource]=\"libraries\" class=\"mat-elevation-z8\">\n\n <!-- Name Column -->\n <ng-container matColumnDef=\"name\">\n <th mat-header-cell *matHeaderCellDef>{{ 'yuv.shell.settings.dependency-info.package' | translate }}</th>\n <td mat-cell *matCellDef=\"let element\"> {{element.name}} </td>\n </ng-container>\n\n <!-- Version Column -->\n <ng-container matColumnDef=\"version\">\n <th mat-header-cell *matHeaderCellDef>{{ 'yuv.shell.settings.dependency-info.version' | translate }}</th>\n <td mat-cell *matCellDef=\"let element\"> {{element.version}} </td>\n </ng-container>\n\n <!-- License Column -->\n <ng-container matColumnDef=\"license\">\n <th mat-header-cell *matHeaderCellDef>{{ 'yuv.shell.settings.dependency-info.license' | translate }}</th>\n <td mat-cell *matCellDef=\"let element\"> {{element.license}} </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"['name', 'version', 'license']\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['name', 'version', 'license'];\"></tr>\n </table>\n </div>\n </ng-template>\n </mat-expansion-panel>\n </section>\n }\n <!-- app settings -->\n <!-- TODO: activate one feature is refined -->\n <!-- @for (c of appSettingForms$ | async; track $index) {\n <section>\n {{ c.label }}\n <form [formGroup]=\"c.form\" (ngSubmit)=\"saveAppSettings(c.appID, c.form)\">\n @for (n of c.formControls; track $index) {\n <label\n >{{ n.label }}\n\n @switch (n.type) {\n @case ('string') {\n <input type=\"text\" [formControlName]=\"n.name\" />\n }\n @case ('number') {\n <input type=\"number\" [formControlName]=\"n.name\" />\n }\n }\n </label>\n }\n <button [ngClass]=\"{ hideen: c.form.untouched }\" [disabled]=\"c.form.invalid\">Save</button>\n </form>\n </section>\n } -->\n </div>\n</main>\n", styles: [":host{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:\"header\" \"settings\";height:100%;overflow:hidden;overflow-y:auto}:host header{grid-area:header;padding:var(--ymt-spacing-3xl)}:host header h1{margin:0}:host header .subhead{font:var(--ymt-font-subhead);color:var(--ymt-text-color-subtle)}:host main{grid-area:settings;padding:var(--ymt-spacing-m);padding-right:0;overflow-y:auto;scrollbar-gutter:stable}:host main .content-container{max-width:900px}:host main section{display:flex;flex-flow:column;padding:var(--ymt-spacing-m);margin-bottom:var(--ymt-spacing-l)}:host main .about__panel-content{overflow-x:auto}:host main .grid-row{display:grid;grid-template-columns:minmax(10ch,1fr) 11fr;grid-gap:var(--ymt-spacing-s);grid-template-areas:\"key value\";align-items:baseline}:host main .grid-col-key{font-weight:700;grid-area:key}:host main .grid-col-value{grid-area:value;word-break:break-all}\n"] }]
97
+ }] });
98
+
99
+ export { SettingsPageComponent };
100
+ //# sourceMappingURL=yuuvis-client-shell-settings.component-D3GhhgwZ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"yuuvis-client-shell-settings.component-D3GhhgwZ.mjs","sources":["../../../../../libs/yuuvis/client-shell/src/lib/pages/settings/settings.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/pages/settings/settings.component.html"],"sourcesContent":["import { Component, inject, OnInit, Signal, signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { AppCacheService, ConfigService, TranslateModule, TranslateService, UserService, YuvConfigLanguages, YuvUser } from '@yuuvis/client-core';\n\nimport { CommonModule, DOCUMENT } from '@angular/common';\nimport { FormBuilder, FormGroup, ReactiveFormsModule } from '@angular/forms';\nimport { ShellAppSettingProperty, ShellAppSettings, ShellService } from '@yuuvis/client-shell-core';\nimport { map, Observable } from 'rxjs';\nimport {MatSelectModule} from '@angular/material/select';\nimport { MatButtonToggle, MatButtonToggleGroup } from '@angular/material/button-toggle';\nimport { HttpClient } from '@angular/common/http';\nimport { AboutData } from './settings.model';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatTableModule } from '@angular/material/table';\n\n@Component({\n selector: 'yuv-settings',\n standalone: true,\n imports: [CommonModule, TranslateModule,\n MatSelectModule,\n ReactiveFormsModule, MatButtonToggleGroup, MatButtonToggle, MatExpansionModule, MatTableModule],\n templateUrl: './settings.component.html',\n styleUrls: ['./settings.component.scss']\n})\nexport class SettingsPageComponent implements OnInit {\n private userService = inject(UserService);\n private config = inject(ConfigService);\n public translate = inject(TranslateService);\n private shell = inject(ShellService);\n readonly document = inject(DOCUMENT);\n #appCache = inject(AppCacheService);\n #http = inject(HttpClient);\n\n #fb = inject(FormBuilder);\n\n clientLocales = signal<YuvConfigLanguages[]>([]);\n clientVersion = signal<string | undefined>(undefined);\n clientAboutData = signal<AboutData|undefined>(undefined);\n \n user: Signal<YuvUser | undefined> = toSignal(this.userService.user$);\n appSettingForms$: Observable<\n {\n appID: string;\n label: string;\n formControls: ShellAppSettingProperty[];\n form: FormGroup;\n }[]\n > = this.shell.appSettings$.pipe(\n map((settings: ShellAppSettings[]) =>\n settings.map((e) => {\n const x: any = {};\n const fcn: ShellAppSettingProperty[] = e.properties.map((p) => ({\n label: this.translate.instant(p.label) || p.label,\n name: p.name,\n type: p.type\n }));\n e.properties.forEach((p) => {\n x[p.name] = [p.value];\n });\n return {\n appID: e.appID,\n label: e.label,\n formControls: fcn,\n form: this.#fb.group(x)\n };\n })\n )\n );\n\n saveAppSettings(appID: string, form: FormGroup) {\n this.userService\n .saveUserSettings({\n clientAppSettings: {\n [appID]: form.value\n }\n })\n .subscribe({\n next: () => {\n form.markAsPristine();\n },\n error: (err) => {\n console.error('Error saving app settings', err);\n }\n });\n }\n\n changeClientLocale(iso: string) {\n this.userService.changeClientLocale(iso);\n }\n\n toggleDarkMode() {\n const root = document.getElementsByTagName('body')[0];\n root.classList.toggle('dark'); \n }\n\n ngOnInit(): void {\n this.clientVersion.set(this.document.body.getAttribute('data-version') ?? 'dev');\n this.clientLocales.set(this.config.getClientLocales());\n this.getAboutData();\n }\n \n getAboutData() {\n this.#http.get('assets/about.data.json').subscribe({\n next: (response: AboutData) => {\n this.clientAboutData.set(response);\n },\n error: (error) => console.log({ error })\n });\n }\n \n}\n","<header>\n <h1>{{ 'yuv.shell.settings.title' | translate }}</h1>\n <span class=\"subhead\">{{ 'yuv.shell.settings.client.version' | translate }}: {{ clientVersion() }}</span>\n</header>\n\n\n<main>\n <div class=\"content-container\">\n <!-- User Info -->\n @let user = this.user();\n @if (user) {\n <section class=\"section user\">\n <h2 class=\"section__title\">{{ user.title }}</h2>\n <div class=\"section__body user__data grid\">\n <div class=\"user__data-entry grid-row\">\n <span class=\"user__data-entry-key grid-col grid-col-key\">\n {{ 'yuv.shell.settings.user.email' | translate }}:\n </span>\n <span class=\"user__data-entry-value grid-col grid-col-value\">\n {{ user.email }}\n </span>\n </div>\n <div class=\"user__data-entry grid-row\">\n <span class=\"user__data-entry-key grid-col grid-col-key\">\n {{ 'yuv.shell.settings.tenant' | translate }}:\n </span>\n <span class=\"user__data-entry-value grid-col grid-col-value\">\n {{ user.tenant }}\n </span>\n </div>\n\n <!--<div class=\"user__data\">{{ 'yuv.shell.settings.user.name' | translate }}: {{ user.username }}</div>\n <div class=\"user__data-entry\">{{ 'yuv.shell.settings.user.email' | translate }}: {{ user.email }}</div>\n <div class=\"user__data-entry\">{{ 'yuv.shell.settings.tenant' | translate }}: {{ user.tenant }}</div>-->\n </div>\n </section>\n }\n <!-- Language Settings -->\n <section yuvOfflineDisabled class=\"section\">\n <h2 class=\"section__title\">{{ 'yuv.shell.settings.language' | translate }}</h2>\n <div class=\"section__body\">\n <mat-button-toggle-group name=\"language\" [value]=\"translate.currentLang\" (valueChange)=\"changeClientLocale($event)\" [attr.aria-label]=\"'yuv.shell.settings.language' | translate\" >\n @for (locale of clientLocales(); track locale.iso) {\n <mat-button-toggle value=\"{{ locale.iso }}\">{{ locale.label }}</mat-button-toggle>\n }\n </mat-button-toggle-group>\n </div>\n </section>\n <!-- About Info -->\n @let libraries = this.clientAboutData()?.libraries;\n @if (libraries) {\n <section class=\"section about\">\n <h2 class=\"section__title\">{{ 'yuv.shell.settings.about.title' | translate }}</h2>\n <mat-expansion-panel class=\"about__panel\">\n <mat-expansion-panel-header>\n <mat-panel-title>{{ 'yuv.shell.settings.dependency-info.title' | translate }}</mat-panel-title>\n<!-- <mat-panel-description>{{ '' | translate }}</mat-panel-description>-->\n </mat-expansion-panel-header>\n\n <ng-template matExpansionPanelContent>\n <div class=\"about__panel-content\">\n <table mat-table [dataSource]=\"libraries\" class=\"mat-elevation-z8\">\n\n <!-- Name Column -->\n <ng-container matColumnDef=\"name\">\n <th mat-header-cell *matHeaderCellDef>{{ 'yuv.shell.settings.dependency-info.package' | translate }}</th>\n <td mat-cell *matCellDef=\"let element\"> {{element.name}} </td>\n </ng-container>\n\n <!-- Version Column -->\n <ng-container matColumnDef=\"version\">\n <th mat-header-cell *matHeaderCellDef>{{ 'yuv.shell.settings.dependency-info.version' | translate }}</th>\n <td mat-cell *matCellDef=\"let element\"> {{element.version}} </td>\n </ng-container>\n\n <!-- License Column -->\n <ng-container matColumnDef=\"license\">\n <th mat-header-cell *matHeaderCellDef>{{ 'yuv.shell.settings.dependency-info.license' | translate }}</th>\n <td mat-cell *matCellDef=\"let element\"> {{element.license}} </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"['name', 'version', 'license']\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['name', 'version', 'license'];\"></tr>\n </table>\n </div>\n </ng-template>\n </mat-expansion-panel>\n </section>\n }\n <!-- app settings -->\n <!-- TODO: activate one feature is refined -->\n <!-- @for (c of appSettingForms$ | async; track $index) {\n <section>\n {{ c.label }}\n <form [formGroup]=\"c.form\" (ngSubmit)=\"saveAppSettings(c.appID, c.form)\">\n @for (n of c.formControls; track $index) {\n <label\n >{{ n.label }}\n\n @switch (n.type) {\n @case ('string') {\n <input type=\"text\" [formControlName]=\"n.name\" />\n }\n @case ('number') {\n <input type=\"number\" [formControlName]=\"n.name\" />\n }\n }\n </label>\n }\n <button [ngClass]=\"{ hideen: c.form.untouched }\" [disabled]=\"c.form.invalid\">Save</button>\n </form>\n </section>\n } -->\n </div>\n</main>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;MAwBa,qBAAqB,CAAA;AATlC,IAAA,WAAA,GAAA;AAUU,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;AACjC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;AAC/B,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACnC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC;AAC3B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AACpC,QAAA,IAAA,CAAA,SAAS,G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AA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAIrF,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBATjC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,cACZ,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,EAAE,eAAe;wBACrC,eAAe;wBACf,mBAAmB,EAAE,oBAAoB,EAAE,eAAe,EAAE,kBAAkB,EAAE,cAAc,CAAC,EAAA,QAAA,EAAA,omKAAA,EAAA,MAAA,EAAA,CAAA,m7BAAA,CAAA,EAAA;;;;;"}
@@ -7,10 +7,10 @@ import * as i3 from '@angular/material/button';
7
7
  import { MatButtonModule, MatIconButton } from '@angular/material/button';
8
8
  import * as i2 from '@angular/material/icon';
9
9
  import { MatIconModule, MatIconRegistry, MatIcon } from '@angular/material/icon';
10
- import * as i2$2 from '@angular/router';
10
+ import * as i2$1 from '@angular/router';
11
11
  import { Router, NavigationEnd, RouterModule } from '@angular/router';
12
12
  import { SwPush } from '@angular/service-worker';
13
- import * as i2$1 from '@yuuvis/client-core';
13
+ import * as i1$1 from '@yuuvis/client-core';
14
14
  import { Utils, LocaleDatePipe, TranslateModule, AuthService, UserService, TranslateService, DeviceService, SafeHtmlPipe, UserRoles, DmsService, SystemType } from '@yuuvis/client-core';
15
15
  import { ShellNotificationsService, ShellService, CommandPaletteService } from '@yuuvis/client-shell-core';
16
16
  import { of, switchMap as switchMap$1, tap as tap$1 } from 'rxjs';
@@ -22,7 +22,7 @@ import * as i4 from '@yuuvis/client-framework/list';
22
22
  import { YuvListModule, ListItemDirective } from '@yuuvis/client-framework/list';
23
23
  import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
24
24
  import { MatListModule } from '@angular/material/list';
25
- import * as i1$1 from '@angular/material/sidenav';
25
+ import * as i1$2 from '@angular/material/sidenav';
26
26
  import { MatSidenavModule } from '@angular/material/sidenav';
27
27
  import { MatToolbarModule } from '@angular/material/toolbar';
28
28
  import * as i3$1 from '@yuuvis/client-framework/metadata-form-defaults';
@@ -114,7 +114,7 @@ class NotificationsPageComponent {
114
114
  });
115
115
  }
116
116
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: NotificationsPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
117
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.12", type: NotificationsPageComponent, isStandalone: true, selector: "yuv-notifications", host: { listeners: { "keydown": "onKeydown($event)" } }, ngImport: i0, template: "<div class=\"notifications\" (yuvLightDismiss)=\"close()\" cdkTrapFocus>\n <h2>{{ 'yuv.shell.notifications.title' | translate }}</h2>\n\n @if (notifications()?.length) {\n <yuv-list (itemSelect)=\"itemSelected($event)\" (itemFocus)=\"itemFocused($event)\">\n @for (n of notifications(); track n.id) {\n <div class=\"note {{ n.level }}\" [ngClass]=\"{ withRoute: n.targetRoute }\" yuvListItem>\n <div class=\"icon\"><yuv-icon [svg]=\"n.icon || icons.note\"></yuv-icon></div>\n <div class=\"received\">{{ n.timestamp | localeDate }}</div>\n <div class=\"title\">{{ n.title }}</div>\n <div class=\"description\">{{ n.description }}</div>\n <div class=\"meta\"></div>\n\n <div class=\"actions\">\n <button mat-icon-button (click)=\"remove(n.id)\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n }\n </yuv-list>\n\n <div class=\"actions\">\n <button mat-icon-button [hidden]=\"!notifications()?.length\" class=\"icon secondary\" (click)=\"removeAll()\">\n {{ 'yuv.shell.notifications.button.remove.all' | translate }}<mat-icon>delete</mat-icon>\n </button>\n </div>\n } @else {\n <div class=\"empty\">\n <p>{{ 'yuv.shell.notifications.empty' | translate }}</p>\n </div>\n }\n\n <button mat-icon-button class=\"icon close\" (click)=\"close()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [":host{height:100%;display:flex}:host .notifications{background-color:var(--ymt-surface-panel);border-inline-end:1px solid var(--ymt-outline-variant);height:100%;overflow:hidden;box-sizing:border-box;padding:var(--ymt-spacing-m);display:grid;grid-template-rows:auto auto 1fr;grid-template-columns:1fr auto;grid-template-areas:\"title close\" \"actions actions\" \"list list\";gap:var(--ymt-spacing-m);max-width:30vw;min-width:300px;box-shadow:8px 0 8px #0000001a;animation:dialogAppear .2s ease-in-out}:host .notifications h2{color:var(--ymt-text-color-subtle);grid-area:title;margin:0;padding:0;align-self:center;text-overflow:ellipsis;overflow:hidden}:host .notifications .actions{grid-area:actions;display:flex;justify-content:end;--icon-size: 18px}:host .notifications .actions button{border-radius:.4em}:host .notifications .close{grid-area:close;--icon-size: 18px}:host .notifications yuv-list,:host .notifications .empty{grid-area:list}:host .notifications .empty{display:grid;align-items:center;justify-content:center;color:var(--ymt-text-color-subtle)}:host .notifications .note{--level-color: transparent;display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:auto 1fr auto;grid-template-areas:\"icon received actions\" \"icon title title\" \"icon description description\" \"icon meta meta\";row-gap:var(--ymt-spacing-2xs);column-gap:var(--ymt-spacing-xs);align-items:center;padding:var(--ymt-spacing-xs);padding-inline-start:var(--ymt-spacing-m);margin-block-end:var(--ymt-spacing-xs);background-color:var(--ymt-surface-panel);outline:1px solid var(--ymt-outline-variant);outline-offset:-1px;position:relative;cursor:default}:host .notifications .note.withRoute{cursor:pointer}:host .notifications .note:before{content:\"\";width:4px;position:absolute;left:2px;top:2px;bottom:2px;border-radius:2px;background-color:var(--level-color)}:host .notifications .note.alert{--level-color: var(--ymt-danger)}:host .notifications .note.warning{--level-color: var(--ymt-warning)}:host .notifications .note.success{--level-color: var(--ymt-success)}:host .notifications .note:hover,:host .notifications .note[aria-current=true]{background-color:var(--ymt-focus-background)}:host .notifications .note:hover button,:host .notifications .note[aria-current=true] button{opacity:1}:host .notifications .note .icon{grid-area:icon;color:var(--ymt-text-color-subtle)}:host .notifications .note .title{overflow:hidden;text-overflow:ellipsis;font-weight:700;grid-area:title;color:var(--ymt-text-color)}:host .notifications .note .description{grid-area:description;overflow:hidden;text-overflow:ellipsis}:host .notifications .note .meta{grid-area:meta}:host .notifications .note .received{grid-area:received;color:var(--ymt-text-color-subtle)}:host .notifications .note button{grid-area:actions;padding:0;opacity:0}@keyframes dialogAppear{0%{opacity:0;transform:translate(calc(var(--ymt-spacing-m) * -1))}to{opacity:1;transform:translate(0)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: LightDismissDirective, selector: "[yuvLightDismiss]", outputs: ["yuvLightDismiss"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "pipe", type: LocaleDatePipe, name: "localeDate" }, { kind: "component", type: YuvIconComponent, selector: "yuv-icon", inputs: ["label", "svg", "svgSrc"] }, { kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: YuvListModule }, { kind: "component", type: i4.ListComponent, selector: "yuv-list", inputs: ["multiselect", "selfHandleSelection", "disableSelection"], outputs: ["itemSelect", "itemFocus"] }, { kind: "directive", type: i4.ListItemDirective, selector: "[yuvListItem]", inputs: ["disabled", "active", "selected"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] }); }
117
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.12", type: NotificationsPageComponent, isStandalone: true, selector: "yuv-notifications", host: { listeners: { "keydown": "onKeydown($event)" } }, ngImport: i0, template: "<div class=\"notifications\" (yuvLightDismiss)=\"close()\" cdkTrapFocus>\n <h2>{{ 'yuv.shell.notifications.title' | translate }}</h2>\n\n @if (notifications()?.length) {\n <yuv-list (itemSelect)=\"itemSelected($event)\" (itemFocus)=\"itemFocused($event)\">\n @for (n of notifications(); track n.id) {\n <div class=\"note {{ n.level }}\" [ngClass]=\"{ withRoute: n.targetRoute }\" yuvListItem>\n <div class=\"icon\"><yuv-icon [svg]=\"n.icon || icons.note\"></yuv-icon></div>\n <div class=\"received\">{{ n.timestamp | localeDate }}</div>\n <div class=\"title\">{{ n.title }}</div>\n <div class=\"description\">{{ n.description }}</div>\n <div class=\"meta\"></div>\n\n <div class=\"actions\">\n <button mat-icon-button (click)=\"remove(n.id)\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n }\n </yuv-list>\n\n <div class=\"actions\">\n <button mat-icon-button [hidden]=\"!notifications()?.length\" class=\"icon secondary\" (click)=\"removeAll()\">\n {{ 'yuv.shell.notifications.button.remove.all' | translate }}<mat-icon>delete</mat-icon>\n </button>\n </div>\n } @else {\n <div class=\"empty\">\n <p>{{ 'yuv.shell.notifications.empty' | translate }}</p>\n </div>\n }\n\n <button mat-icon-button class=\"icon close\" (click)=\"close()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [":host{height:100%;display:flex}:host .notifications{background-color:var(--ymt-surface-panel);border-inline-end:1px solid var(--ymt-outline-variant);height:100%;overflow:hidden;box-sizing:border-box;padding:var(--ymt-spacing-m);display:grid;grid-template-rows:auto auto 1fr;grid-template-columns:1fr auto;grid-template-areas:\"title close\" \"actions actions\" \"list list\";gap:var(--ymt-spacing-m);max-width:30vw;min-width:300px;box-shadow:8px 0 8px #0000001a;animation:dialogAppear .2s ease-in-out}:host .notifications h2{color:var(--ymt-text-color-subtle);grid-area:title;margin:0;padding:0;align-self:center;text-overflow:ellipsis;overflow:hidden}:host .notifications .actions{grid-area:actions;display:flex;justify-content:end;--icon-size: 18px}:host .notifications .actions button{border-radius:.4em}:host .notifications .close{grid-area:close;--icon-size: 18px}:host .notifications yuv-list,:host .notifications .empty{grid-area:list}:host .notifications .empty{display:grid;align-items:center;justify-content:center;color:var(--ymt-text-color-subtle)}:host .notifications .note{--level-color: transparent;display:grid;grid-template-rows:auto auto auto auto;grid-template-columns:auto 1fr auto;grid-template-areas:\"icon received actions\" \"icon title title\" \"icon description description\" \"icon meta meta\";row-gap:var(--ymt-spacing-2xs);column-gap:var(--ymt-spacing-xs);align-items:center;padding:var(--ymt-spacing-xs);padding-inline-start:var(--ymt-spacing-m);margin-block-end:var(--ymt-spacing-xs);background-color:var(--ymt-surface-panel);outline:1px solid var(--ymt-outline-variant);outline-offset:-1px;position:relative;cursor:default}:host .notifications .note.withRoute{cursor:pointer}:host .notifications .note:before{content:\"\";width:4px;position:absolute;left:2px;top:2px;bottom:2px;border-radius:2px;background-color:var(--level-color)}:host .notifications .note.alert{--level-color: var(--ymt-danger)}:host .notifications .note.warning{--level-color: var(--ymt-warning)}:host .notifications .note.success{--level-color: var(--ymt-success)}:host .notifications .note:hover,:host .notifications .note[aria-current=true]{background-color:var(--ymt-focus-background)}:host .notifications .note:hover button,:host .notifications .note[aria-current=true] button{opacity:1}:host .notifications .note .icon{grid-area:icon;color:var(--ymt-text-color-subtle)}:host .notifications .note .title{overflow:hidden;text-overflow:ellipsis;font-weight:700;grid-area:title;color:var(--ymt-text-color)}:host .notifications .note .description{grid-area:description;overflow:hidden;text-overflow:ellipsis}:host .notifications .note .meta{grid-area:meta}:host .notifications .note .received{grid-area:received;color:var(--ymt-text-color-subtle)}:host .notifications .note button{grid-area:actions;padding:0;opacity:0}@keyframes dialogAppear{0%{opacity:0;transform:translate(calc(var(--ymt-spacing-m) * -1))}to{opacity:1;transform:translate(0)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: LightDismissDirective, selector: "[yuvLightDismiss]", outputs: ["yuvLightDismiss"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "pipe", type: LocaleDatePipe, name: "localeDate" }, { kind: "component", type: YuvIconComponent, selector: "yuv-icon", inputs: ["label", "svg", "svgSrc"] }, { kind: "directive", type: CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: YuvListModule }, { kind: "component", type: i4.ListComponent, selector: "yuv-list", inputs: ["multiselect", "selfHandleSelection", "disableSelection"], outputs: ["itemSelect", "itemFocus"] }, { kind: "directive", type: i4.ListItemDirective, selector: "[yuvListItem]", inputs: ["disabled", "active", "selected"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] }); }
118
118
  }
119
119
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: NotificationsPageComponent, decorators: [{
120
120
  type: Component,
@@ -137,7 +137,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImpo
137
137
  const clientShellRoutes = [
138
138
  { path: 'dashboard', loadComponent: () => import('./yuuvis-client-shell-dashboard.component-akNayAfe.mjs').then((comp) => comp.DashboardPageComponent) },
139
139
  { path: 'notifications', component: NotificationsPageComponent, outlet: 'aside' },
140
- { path: 'settings', loadComponent: () => import('./yuuvis-client-shell-settings.component-C_TUScRF.mjs').then((comp) => comp.SettingsPageComponent) },
140
+ { path: 'settings', loadComponent: () => import('./yuuvis-client-shell-settings.component-D3GhhgwZ.mjs').then((comp) => comp.SettingsPageComponent) },
141
141
  {
142
142
  path: 'web-share-target',
143
143
  loadComponent: () => import('./yuuvis-client-shell-web-share-target.component-gkFyLIOi.mjs').then((comp) => comp.WebShareTargetPageComponent)
@@ -154,13 +154,32 @@ class SidebarNavComponent {
154
154
  this.isHandset$ = this.breakpointObserver.observe(Breakpoints.Handset).pipe(map((result) => result.matches), shareReplay());
155
155
  }
156
156
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: SidebarNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
157
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.12", type: SidebarNavComponent, isStandalone: true, selector: "yuv-sidebar-nav", ngImport: i0, template: "<mat-sidenav-container class=\"sidenav-container\">\n <mat-sidenav class=\"sidenav\"\n attr.role=\"navigation\"\n mode=\"side\"\n opened>\n <div class=\"sidenav-content\">\n <div class=\"app-logo\">\n <ng-content select=\".shell-nav__shell-logo-button\"></ng-content>\n </div>\n <div class=\"nav-list\">\n <ng-content select=\".shell-nav__nav-list\"></ng-content>\n </div>\n <div class=\"actions\">\n <ng-content select=\".shell-nav__actions\"></ng-content>\n </div>\n </div>\n </mat-sidenav>\n <mat-sidenav-content></mat-sidenav-content>\n</mat-sidenav-container>\n", styles: [":host{--mat-sidenav-container-shape: none}:host{--mat-sidenav-container-width: calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host{--mat-sidenav-container-divider-color: var(--ymt-outline-variant)}:host{--mat-sidenav-container-background-color: transparent}:host{--mat-sidenav-content-background-color: transparent}:host{--mat-sidenav-container-text-color: var(--ymt-on-surface)}.sidenav-container{height:100%;width:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}.sidenav-container .sidenav .sidenav-content{height:100%;display:flex;flex-flow:column nowrap;justify-content:flex-start;gap:var(--ymt-spacing-2xs)}.sidenav-container .sidenav .sidenav-content .app-logo{height:30px;width:100%;flex:0 0 auto;background-color:var(--ymt-brand);margin-bottom:8px}.sidenav-container .sidenav .sidenav-content .nav-list{flex:1 0 auto;display:flex;flex-flow:column nowrap;align-items:center;gap:var(--ymt-spacing-2xs)}.sidenav-container .sidenav .sidenav-content .actions{flex:0 0 auto;display:flex;flex-flow:column nowrap;align-items:center;margin-bottom:8px;gap:var(--ymt-spacing-2xs)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container{width:100%;height:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav{width:100%;border:none;border-top:1px solid var(--ymt-outline-variant)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content{flex-flow:row nowrap;height:calc(calc(24px + var(--ymt-spacing-s) + 1px + 16px) - 1px);margin-block-start:0;overflow-y:hidden}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .app-logo{height:100%;width:auto;aspect-ratio:1/1;margin-bottom:0;margin-right:8px}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .nav-list{flex-flow:row nowrap;height:auto}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .actions{flex-flow:row nowrap;margin-bottom:0;margin-right:8px}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatSidenavModule }, { kind: "component", type: i1$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i1$1.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i1$1.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "ngmodule", type: MatListModule }, { kind: "ngmodule", type: MatIconModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
157
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.12", type: SidebarNavComponent, isStandalone: true, selector: "yuv-sidebar-nav", ngImport: i0, template: "<mat-sidenav-container class=\"sidenav-container\">\n <mat-sidenav class=\"sidenav\"\n attr.role=\"navigation\"\n mode=\"side\"\n opened>\n <div class=\"sidenav-content\">\n <div class=\"app-logo\">\n <ng-content select=\".shell-nav__shell-logo-button\"></ng-content>\n </div>\n <div class=\"nav-list\">\n <ng-content select=\".shell-nav__nav-list\"></ng-content>\n </div>\n <div class=\"actions\">\n <ng-content select=\".shell-nav__actions\"></ng-content>\n </div>\n </div>\n </mat-sidenav>\n <mat-sidenav-content></mat-sidenav-content>\n</mat-sidenav-container>\n", styles: [":host{--mat-sidenav-container-shape: none}:host{--mat-sidenav-container-width: calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host{--mat-sidenav-container-divider-color: var(--ymt-outline-variant)}:host{--mat-sidenav-container-background-color: transparent}:host{--mat-sidenav-content-background-color: transparent}:host{--mat-sidenav-container-text-color: var(--ymt-on-surface)}.sidenav-container{height:100%;width:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}.sidenav-container .sidenav .sidenav-content{height:100%;display:flex;flex-flow:column nowrap;justify-content:flex-start;gap:var(--ymt-spacing-2xs)}.sidenav-container .sidenav .sidenav-content .app-logo{height:30px;width:100%;flex:0 0 auto;background-color:var(--ymt-brand);margin-bottom:8px}.sidenav-container .sidenav .sidenav-content .nav-list{flex:1 0 auto;display:flex;flex-flow:column nowrap;align-items:center;gap:var(--ymt-spacing-2xs)}.sidenav-container .sidenav .sidenav-content .actions{flex:0 0 auto;display:flex;flex-flow:column nowrap;align-items:center;margin-bottom:8px;gap:var(--ymt-spacing-2xs)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container{width:100%;height:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav{width:100%;border:none;border-top:1px solid var(--ymt-outline-variant)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content{flex-flow:row nowrap;height:calc(calc(24px + var(--ymt-spacing-s) + 1px + 16px) - 1px);margin-block-start:0;overflow-y:hidden}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .app-logo{height:100%;width:auto;aspect-ratio:1/1;margin-bottom:0;margin-right:8px}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .nav-list{flex-flow:row nowrap;height:auto}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .actions{flex-flow:row nowrap;margin-bottom:0;margin-right:8px}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "ngmodule", type: MatButtonModule }, { kind: "ngmodule", type: MatSidenavModule }, { kind: "component", type: i1$2.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i1$2.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i1$2.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "ngmodule", type: MatListModule }, { kind: "ngmodule", type: MatIconModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
158
158
  }
159
159
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: SidebarNavComponent, decorators: [{
160
160
  type: Component,
161
161
  args: [{ selector: 'yuv-sidebar-nav', changeDetection: ChangeDetectionStrategy.OnPush, imports: [TranslateModule, MatToolbarModule, MatButtonModule, MatSidenavModule, MatListModule, MatIconModule], template: "<mat-sidenav-container class=\"sidenav-container\">\n <mat-sidenav class=\"sidenav\"\n attr.role=\"navigation\"\n mode=\"side\"\n opened>\n <div class=\"sidenav-content\">\n <div class=\"app-logo\">\n <ng-content select=\".shell-nav__shell-logo-button\"></ng-content>\n </div>\n <div class=\"nav-list\">\n <ng-content select=\".shell-nav__nav-list\"></ng-content>\n </div>\n <div class=\"actions\">\n <ng-content select=\".shell-nav__actions\"></ng-content>\n </div>\n </div>\n </mat-sidenav>\n <mat-sidenav-content></mat-sidenav-content>\n</mat-sidenav-container>\n", styles: [":host{--mat-sidenav-container-shape: none}:host{--mat-sidenav-container-width: calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host{--mat-sidenav-container-divider-color: var(--ymt-outline-variant)}:host{--mat-sidenav-container-background-color: transparent}:host{--mat-sidenav-content-background-color: transparent}:host{--mat-sidenav-container-text-color: var(--ymt-on-surface)}.sidenav-container{height:100%;width:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}.sidenav-container .sidenav .sidenav-content{height:100%;display:flex;flex-flow:column nowrap;justify-content:flex-start;gap:var(--ymt-spacing-2xs)}.sidenav-container .sidenav .sidenav-content .app-logo{height:30px;width:100%;flex:0 0 auto;background-color:var(--ymt-brand);margin-bottom:8px}.sidenav-container .sidenav .sidenav-content .nav-list{flex:1 0 auto;display:flex;flex-flow:column nowrap;align-items:center;gap:var(--ymt-spacing-2xs)}.sidenav-container .sidenav .sidenav-content .actions{flex:0 0 auto;display:flex;flex-flow:column nowrap;align-items:center;margin-bottom:8px;gap:var(--ymt-spacing-2xs)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container{width:100%;height:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav{width:100%;border:none;border-top:1px solid var(--ymt-outline-variant)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content{flex-flow:row nowrap;height:calc(calc(24px + var(--ymt-spacing-s) + 1px + 16px) - 1px);margin-block-start:0;overflow-y:hidden}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .app-logo{height:100%;width:auto;aspect-ratio:1/1;margin-bottom:0;margin-right:8px}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .nav-list{flex-flow:row nowrap;height:auto}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .actions{flex-flow:row nowrap;margin-bottom:0;margin-right:8px}\n"] }]
162
162
  }] });
163
163
 
164
+ /**
165
+ * Base component for the client shell application. In your apps
166
+ * app.component.ts you can use this component as a base component
167
+ * to provide the shell functionality.
168
+ *
169
+ * ```typescript
170
+ * @Component({
171
+ * standalone: true,
172
+ * imports: [ClientShellComponent],
173
+ * selector: 'yuv-root',
174
+ * template: `<yuv-client-shell [apps]="apps" [config]="shellConfig"></yuv-client-shell>`,
175
+ * styleUrl: './app.component.scss'
176
+ * })
177
+ * export class AppComponent {
178
+ * #featureService = inject(FeatureService);
179
+ * apps: App[] = this.#featureService.getAvailableApps(app);
180
+ * }
181
+ * ```
182
+ */
164
183
  class ClientShellComponent {
165
184
  #shell;
166
185
  #device;
@@ -342,11 +361,21 @@ class ClientShellComponent {
342
361
  this.requestSubscription();
343
362
  }
344
363
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ClientShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
345
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.12", type: ClientShellComponent, isStandalone: true, selector: "yuv-client-shell", inputs: { apps: { classPropertyName: "apps", publicName: "apps", isSignal: true, isRequired: true, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:focusin": "onFocusChange($event)", "dragover": "onDragOver($event)" } }, providers: [SafeHtmlPipe], ngImport: i0, template: "<yuv-metadata-default-templates></yuv-metadata-default-templates>\n\n<!-- gloabl busy indicator -->\n@if (busy$ | async) {\n <mat-progress-bar\n mode=\"indeterminate\"\n class=\"progress-bar\"\n ></mat-progress-bar>\n}\n\n@let iconsRegistered = registerIcons();\n\n<yuv-sidebar-nav class=\"shell-nav\">\n <button class=\"shell-nav__shell-logo-button\" routerLink=\"/\" routerLinkActive=\"active\" [attr.aria-label]=\"'yuv.shell.logo.aria.label' | translate\">\n @if (iconsRegistered) {\n <mat-icon svgIcon=\"shellIcons:app_logo\"></mat-icon>\n }\n </button>\n <ul class=\"shell-nav__nav-list\">\n @for (a of apps(); track a.path) {\n <li class=\"shell-nav__nav-list-item\">\n <button class=\"shell-nav__nav-list-item-button\" mat-icon-button routerLinkActive=\"active\" [routerLink]=\"a.path\" \n matTooltipPosition=\"after\"\n [matTooltip]=\"getAppTitle(a)\">\n @if (a.svgIcon) {\n @if (iconsRegistered) {\n <mat-icon [svgIcon]=\"'shellIcons:' + a.iconName\"></mat-icon>\n }\n } @else {\n <mat-icon>{{ a.iconName }}</mat-icon>\n }\n <!--@if (getNotifications(a.id)) {\n <div [ngClass]=\"'badge ' + getNotifications(a.id).maxLevel\">{{ getNotifications(a.id).count }}</div>\n }-->\n </button>\n </li>\n }\n </ul>\n <section class=\"shell-nav__actions\">\n @if (showNotifications()) {\n <button\n class=\"shell-nav__actions-button\"\n mat-icon-button\n [routerLink]=\"[{ outlets: { aside: 'notifications' } }]\"\n routerLinkActive=\"active\"\n matTooltipPosition=\"after\"\n [matTooltip]=\"'yuv.shell.notifications.title' | translate\"\n >\n <mat-icon>notifications</mat-icon>\n @if (newNotifications(); as note) {\n <div class=\"badge {{ note.maxLevel }}\">{{ note.count }}</div>\n }\n </button>\n }\n <button\n class=\"shell-nav__actions-button\"\n mat-icon-button\n [routerLink]=\"['/settings']\"\n routerLinkActive=\"active\"\n [matTooltip]=\"'yuv.shell.settings.title' | translate\"\n >\n <mat-icon>settings</mat-icon>\n </button>\n <button class=\"shell-nav__actions-button\" mat-icon-button (click)=\"appLogout()\" [matTooltip]=\"'yuv.shell.cmd.logout' | translate\">\n <mat-icon>power_settings_new</mat-icon>\n </button>\n </section>\n</yuv-sidebar-nav>\n\n<main id=\"main-shell_content\" aria-label=\"main shell content\" [inert]=\"asideOutlet.isActivated\">\n <router-outlet></router-outlet>\n</main>\n\n<!-- outlet for aside modals like notifications -->\n<div class=\"asideOutlet\" [hidden]=\"!asideOutlet.isActivated\">\n <router-outlet name=\"aside\" #asideOutlet=\"outlet\"></router-outlet>\n</div>\n\n<div id=\"fi\" inert></div>\n", styles: [":host{--mat-sidenav-container-shape: none}:host{--mat-sidenav-container-width: calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host{--mat-sidenav-container-divider-color: var(--ymt-outline-variant)}:host{--mat-sidenav-container-background-color: transparent}:host{--mat-sidenav-content-background-color: transparent}:host{--mat-sidenav-container-text-color: var(--ymt-on-surface)}.sidenav-container{height:100%;width:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}.sidenav-container .sidenav .sidenav-content{height:100%;display:flex;flex-flow:column nowrap;justify-content:flex-start;gap:var(--ymt-spacing-2xs)}.sidenav-container .sidenav .sidenav-content .app-logo{height:30px;width:100%;flex:0 0 auto;background-color:var(--ymt-brand);margin-bottom:8px}.sidenav-container .sidenav .sidenav-content .nav-list{flex:1 0 auto;display:flex;flex-flow:column nowrap;align-items:center;gap:var(--ymt-spacing-2xs)}.sidenav-container .sidenav .sidenav-content .actions{flex:0 0 auto;display:flex;flex-flow:column nowrap;align-items:center;margin-bottom:8px;gap:var(--ymt-spacing-2xs)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container{width:100%;height:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav{width:100%;border:none;border-top:1px solid var(--ymt-outline-variant)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content{flex-flow:row nowrap;height:calc(calc(24px + var(--ymt-spacing-s) + 1px + 16px) - 1px);margin-block-start:0;overflow-y:hidden}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .app-logo{height:100%;width:auto;aspect-ratio:1/1;margin-bottom:0;margin-right:8px}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .nav-list{flex-flow:row nowrap;height:auto}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .actions{flex-flow:row nowrap;margin-bottom:0;margin-right:8px}:host{position:absolute;inset:0;overflow:hidden;display:flex;background-color:var(--ymt-surface-frame)}:host .progress-bar{position:absolute}:host .shell-nav{flex:0 0 auto}:host .shell-nav__nav-list{display:contents;list-style:none}:host .shell-nav__nav-list-item{display:inline-block}:host .shell-nav__shell-logo-button{-webkit-user-select:none;user-select:none;display:block;position:relative;box-sizing:border-box;border:none;outline:none;cursor:pointer;height:100%;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);padding:0;padding-block:0;background:none}:host .shell-nav__shell-logo-button mat-icon{width:100%;height:100%}:host .shell-nav__actions{display:contents}:host main{flex:1;color:var(--ymt-text-color)}:host .asideOutlet{position:absolute;inset:0;padding-inline-start:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host-context([data-screen-size=s][data-screen-orientation=portrait]){flex-flow:column-reverse}:host-context([data-screen-size=s][data-screen-orientation=portrait]) main{overflow:hidden}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .asideOutlet{padding-inline-start:0}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i2$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i2$2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: YuvMetadataFormDefaultsModule }, { kind: "component", type: i3$1.MetadataDefaultTemplatesComponent, selector: "yuv-metadata-default-templates" }, { kind: "component", type: SidebarNavComponent, selector: "yuv-sidebar-nav" }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
364
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.12", type: ClientShellComponent, isStandalone: true, selector: "yuv-client-shell", inputs: { apps: { classPropertyName: "apps", publicName: "apps", isSignal: true, isRequired: true, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "document:focusin": "onFocusChange($event)", "dragover": "onDragOver($event)" } }, providers: [SafeHtmlPipe], ngImport: i0, template: "<yuv-metadata-default-templates></yuv-metadata-default-templates>\n\n<!-- gloabl busy indicator -->\n@if (busy$ | async) {\n <mat-progress-bar\n mode=\"indeterminate\"\n class=\"progress-bar\"\n ></mat-progress-bar>\n}\n\n@let iconsRegistered = registerIcons();\n\n<yuv-sidebar-nav class=\"shell-nav\">\n <button class=\"shell-nav__shell-logo-button\" routerLink=\"/\" routerLinkActive=\"active\" [attr.aria-label]=\"'yuv.shell.logo.aria.label' | translate\">\n @if (iconsRegistered) {\n <mat-icon svgIcon=\"shellIcons:app_logo\"></mat-icon>\n }\n </button>\n <ul class=\"shell-nav__nav-list\">\n @for (a of apps(); track a.path) {\n <li class=\"shell-nav__nav-list-item\">\n <button class=\"shell-nav__nav-list-item-button\" mat-icon-button routerLinkActive=\"active\" [routerLink]=\"a.path\" \n matTooltipPosition=\"after\"\n [matTooltip]=\"getAppTitle(a)\">\n @if (a.svgIcon) {\n @if (iconsRegistered) {\n <mat-icon [svgIcon]=\"'shellIcons:' + a.iconName\"></mat-icon>\n }\n } @else {\n <mat-icon>{{ a.iconName }}</mat-icon>\n }\n <!--@if (getNotifications(a.id)) {\n <div [ngClass]=\"'badge ' + getNotifications(a.id).maxLevel\">{{ getNotifications(a.id).count }}</div>\n }-->\n </button>\n </li>\n }\n </ul>\n <section class=\"shell-nav__actions\">\n @if (showNotifications()) {\n <button\n class=\"shell-nav__actions-button\"\n mat-icon-button\n [routerLink]=\"[{ outlets: { aside: 'notifications' } }]\"\n routerLinkActive=\"active\"\n matTooltipPosition=\"after\"\n [matTooltip]=\"'yuv.shell.notifications.title' | translate\"\n >\n <mat-icon>notifications</mat-icon>\n @if (newNotifications(); as note) {\n <div class=\"badge {{ note.maxLevel }}\">{{ note.count }}</div>\n }\n </button>\n }\n <button\n class=\"shell-nav__actions-button\"\n mat-icon-button\n [routerLink]=\"['/settings']\"\n routerLinkActive=\"active\"\n [matTooltip]=\"'yuv.shell.settings.title' | translate\"\n >\n <mat-icon>settings</mat-icon>\n </button>\n <button class=\"shell-nav__actions-button\" mat-icon-button (click)=\"appLogout()\" [matTooltip]=\"'yuv.shell.cmd.logout' | translate\">\n <mat-icon>power_settings_new</mat-icon>\n </button>\n </section>\n</yuv-sidebar-nav>\n\n<main id=\"main-shell_content\" aria-label=\"main shell content\" [inert]=\"asideOutlet.isActivated\">\n <router-outlet></router-outlet>\n</main>\n\n<!-- outlet for aside modals like notifications -->\n<div class=\"asideOutlet\" [hidden]=\"!asideOutlet.isActivated\">\n <router-outlet name=\"aside\" #asideOutlet=\"outlet\"></router-outlet>\n</div>\n\n<div id=\"fi\" inert></div>\n", styles: [":host{--mat-sidenav-container-shape: none}:host{--mat-sidenav-container-width: calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host{--mat-sidenav-container-divider-color: var(--ymt-outline-variant)}:host{--mat-sidenav-container-background-color: transparent}:host{--mat-sidenav-content-background-color: transparent}:host{--mat-sidenav-container-text-color: var(--ymt-on-surface)}.sidenav-container{height:100%;width:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}.sidenav-container .sidenav .sidenav-content{height:100%;display:flex;flex-flow:column nowrap;justify-content:flex-start;gap:var(--ymt-spacing-2xs)}.sidenav-container .sidenav .sidenav-content .app-logo{height:30px;width:100%;flex:0 0 auto;background-color:var(--ymt-brand);margin-bottom:8px}.sidenav-container .sidenav .sidenav-content .nav-list{flex:1 0 auto;display:flex;flex-flow:column nowrap;align-items:center;gap:var(--ymt-spacing-2xs)}.sidenav-container .sidenav .sidenav-content .actions{flex:0 0 auto;display:flex;flex-flow:column nowrap;align-items:center;margin-bottom:8px;gap:var(--ymt-spacing-2xs)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container{width:100%;height:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav{width:100%;border:none;border-top:1px solid var(--ymt-outline-variant)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content{flex-flow:row nowrap;height:calc(calc(24px + var(--ymt-spacing-s) + 1px + 16px) - 1px);margin-block-start:0;overflow-y:hidden}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .app-logo{height:100%;width:auto;aspect-ratio:1/1;margin-bottom:0;margin-right:8px}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .nav-list{flex-flow:row nowrap;height:auto}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .actions{flex-flow:row nowrap;margin-bottom:0;margin-right:8px}:host{position:absolute;inset:0;overflow:hidden;display:flex;background-color:var(--ymt-surface-frame)}:host .progress-bar{position:absolute}:host .shell-nav{flex:0 0 auto}:host .shell-nav__nav-list{display:contents;list-style:none}:host .shell-nav__nav-list-item{display:inline-block}:host .shell-nav__shell-logo-button{-webkit-user-select:none;user-select:none;display:block;position:relative;box-sizing:border-box;border:none;outline:none;cursor:pointer;height:100%;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);padding:0;padding-block:0;background:none}:host .shell-nav__shell-logo-button mat-icon{width:100%;height:100%}:host .shell-nav__actions{display:contents}:host main{flex:1;color:var(--ymt-text-color)}:host .asideOutlet{position:absolute;inset:0;padding-inline-start:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host-context([data-screen-size=s][data-screen-orientation=portrait]){flex-flow:column-reverse}:host-context([data-screen-size=s][data-screen-orientation=portrait]) main{overflow:hidden}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .asideOutlet{padding-inline-start:0}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$1.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i2$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i2$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: YuvMetadataFormDefaultsModule }, { kind: "component", type: i3$1.MetadataDefaultTemplatesComponent, selector: "yuv-metadata-default-templates" }, { kind: "component", type: SidebarNavComponent, selector: "yuv-sidebar-nav" }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
346
365
  }
347
366
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ClientShellComponent, decorators: [{
348
367
  type: Component,
349
- args: [{ selector: 'yuv-client-shell', standalone: true, imports: [AsyncPipe, TranslateModule, RouterModule, YuvMetadataFormDefaultsModule, SidebarNavComponent, MatIconButton, MatIcon, MatProgressBar, MatTooltipModule], providers: [SafeHtmlPipe], template: "<yuv-metadata-default-templates></yuv-metadata-default-templates>\n\n<!-- gloabl busy indicator -->\n@if (busy$ | async) {\n <mat-progress-bar\n mode=\"indeterminate\"\n class=\"progress-bar\"\n ></mat-progress-bar>\n}\n\n@let iconsRegistered = registerIcons();\n\n<yuv-sidebar-nav class=\"shell-nav\">\n <button class=\"shell-nav__shell-logo-button\" routerLink=\"/\" routerLinkActive=\"active\" [attr.aria-label]=\"'yuv.shell.logo.aria.label' | translate\">\n @if (iconsRegistered) {\n <mat-icon svgIcon=\"shellIcons:app_logo\"></mat-icon>\n }\n </button>\n <ul class=\"shell-nav__nav-list\">\n @for (a of apps(); track a.path) {\n <li class=\"shell-nav__nav-list-item\">\n <button class=\"shell-nav__nav-list-item-button\" mat-icon-button routerLinkActive=\"active\" [routerLink]=\"a.path\" \n matTooltipPosition=\"after\"\n [matTooltip]=\"getAppTitle(a)\">\n @if (a.svgIcon) {\n @if (iconsRegistered) {\n <mat-icon [svgIcon]=\"'shellIcons:' + a.iconName\"></mat-icon>\n }\n } @else {\n <mat-icon>{{ a.iconName }}</mat-icon>\n }\n <!--@if (getNotifications(a.id)) {\n <div [ngClass]=\"'badge ' + getNotifications(a.id).maxLevel\">{{ getNotifications(a.id).count }}</div>\n }-->\n </button>\n </li>\n }\n </ul>\n <section class=\"shell-nav__actions\">\n @if (showNotifications()) {\n <button\n class=\"shell-nav__actions-button\"\n mat-icon-button\n [routerLink]=\"[{ outlets: { aside: 'notifications' } }]\"\n routerLinkActive=\"active\"\n matTooltipPosition=\"after\"\n [matTooltip]=\"'yuv.shell.notifications.title' | translate\"\n >\n <mat-icon>notifications</mat-icon>\n @if (newNotifications(); as note) {\n <div class=\"badge {{ note.maxLevel }}\">{{ note.count }}</div>\n }\n </button>\n }\n <button\n class=\"shell-nav__actions-button\"\n mat-icon-button\n [routerLink]=\"['/settings']\"\n routerLinkActive=\"active\"\n [matTooltip]=\"'yuv.shell.settings.title' | translate\"\n >\n <mat-icon>settings</mat-icon>\n </button>\n <button class=\"shell-nav__actions-button\" mat-icon-button (click)=\"appLogout()\" [matTooltip]=\"'yuv.shell.cmd.logout' | translate\">\n <mat-icon>power_settings_new</mat-icon>\n </button>\n </section>\n</yuv-sidebar-nav>\n\n<main id=\"main-shell_content\" aria-label=\"main shell content\" [inert]=\"asideOutlet.isActivated\">\n <router-outlet></router-outlet>\n</main>\n\n<!-- outlet for aside modals like notifications -->\n<div class=\"asideOutlet\" [hidden]=\"!asideOutlet.isActivated\">\n <router-outlet name=\"aside\" #asideOutlet=\"outlet\"></router-outlet>\n</div>\n\n<div id=\"fi\" inert></div>\n", styles: [":host{--mat-sidenav-container-shape: none}:host{--mat-sidenav-container-width: calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host{--mat-sidenav-container-divider-color: var(--ymt-outline-variant)}:host{--mat-sidenav-container-background-color: transparent}:host{--mat-sidenav-content-background-color: transparent}:host{--mat-sidenav-container-text-color: var(--ymt-on-surface)}.sidenav-container{height:100%;width:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}.sidenav-container .sidenav .sidenav-content{height:100%;display:flex;flex-flow:column nowrap;justify-content:flex-start;gap:var(--ymt-spacing-2xs)}.sidenav-container .sidenav .sidenav-content .app-logo{height:30px;width:100%;flex:0 0 auto;background-color:var(--ymt-brand);margin-bottom:8px}.sidenav-container .sidenav .sidenav-content .nav-list{flex:1 0 auto;display:flex;flex-flow:column nowrap;align-items:center;gap:var(--ymt-spacing-2xs)}.sidenav-container .sidenav .sidenav-content .actions{flex:0 0 auto;display:flex;flex-flow:column nowrap;align-items:center;margin-bottom:8px;gap:var(--ymt-spacing-2xs)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container{width:100%;height:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav{width:100%;border:none;border-top:1px solid var(--ymt-outline-variant)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content{flex-flow:row nowrap;height:calc(calc(24px + var(--ymt-spacing-s) + 1px + 16px) - 1px);margin-block-start:0;overflow-y:hidden}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .app-logo{height:100%;width:auto;aspect-ratio:1/1;margin-bottom:0;margin-right:8px}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .nav-list{flex-flow:row nowrap;height:auto}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .actions{flex-flow:row nowrap;margin-bottom:0;margin-right:8px}:host{position:absolute;inset:0;overflow:hidden;display:flex;background-color:var(--ymt-surface-frame)}:host .progress-bar{position:absolute}:host .shell-nav{flex:0 0 auto}:host .shell-nav__nav-list{display:contents;list-style:none}:host .shell-nav__nav-list-item{display:inline-block}:host .shell-nav__shell-logo-button{-webkit-user-select:none;user-select:none;display:block;position:relative;box-sizing:border-box;border:none;outline:none;cursor:pointer;height:100%;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);padding:0;padding-block:0;background:none}:host .shell-nav__shell-logo-button mat-icon{width:100%;height:100%}:host .shell-nav__actions{display:contents}:host main{flex:1;color:var(--ymt-text-color)}:host .asideOutlet{position:absolute;inset:0;padding-inline-start:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host-context([data-screen-size=s][data-screen-orientation=portrait]){flex-flow:column-reverse}:host-context([data-screen-size=s][data-screen-orientation=portrait]) main{overflow:hidden}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .asideOutlet{padding-inline-start:0}\n"] }]
368
+ args: [{ selector: 'yuv-client-shell', standalone: true, imports: [
369
+ AsyncPipe,
370
+ TranslateModule,
371
+ RouterModule,
372
+ YuvMetadataFormDefaultsModule,
373
+ SidebarNavComponent,
374
+ MatIconButton,
375
+ MatIcon,
376
+ MatProgressBar,
377
+ MatTooltipModule
378
+ ], providers: [SafeHtmlPipe], template: "<yuv-metadata-default-templates></yuv-metadata-default-templates>\n\n<!-- gloabl busy indicator -->\n@if (busy$ | async) {\n <mat-progress-bar\n mode=\"indeterminate\"\n class=\"progress-bar\"\n ></mat-progress-bar>\n}\n\n@let iconsRegistered = registerIcons();\n\n<yuv-sidebar-nav class=\"shell-nav\">\n <button class=\"shell-nav__shell-logo-button\" routerLink=\"/\" routerLinkActive=\"active\" [attr.aria-label]=\"'yuv.shell.logo.aria.label' | translate\">\n @if (iconsRegistered) {\n <mat-icon svgIcon=\"shellIcons:app_logo\"></mat-icon>\n }\n </button>\n <ul class=\"shell-nav__nav-list\">\n @for (a of apps(); track a.path) {\n <li class=\"shell-nav__nav-list-item\">\n <button class=\"shell-nav__nav-list-item-button\" mat-icon-button routerLinkActive=\"active\" [routerLink]=\"a.path\" \n matTooltipPosition=\"after\"\n [matTooltip]=\"getAppTitle(a)\">\n @if (a.svgIcon) {\n @if (iconsRegistered) {\n <mat-icon [svgIcon]=\"'shellIcons:' + a.iconName\"></mat-icon>\n }\n } @else {\n <mat-icon>{{ a.iconName }}</mat-icon>\n }\n <!--@if (getNotifications(a.id)) {\n <div [ngClass]=\"'badge ' + getNotifications(a.id).maxLevel\">{{ getNotifications(a.id).count }}</div>\n }-->\n </button>\n </li>\n }\n </ul>\n <section class=\"shell-nav__actions\">\n @if (showNotifications()) {\n <button\n class=\"shell-nav__actions-button\"\n mat-icon-button\n [routerLink]=\"[{ outlets: { aside: 'notifications' } }]\"\n routerLinkActive=\"active\"\n matTooltipPosition=\"after\"\n [matTooltip]=\"'yuv.shell.notifications.title' | translate\"\n >\n <mat-icon>notifications</mat-icon>\n @if (newNotifications(); as note) {\n <div class=\"badge {{ note.maxLevel }}\">{{ note.count }}</div>\n }\n </button>\n }\n <button\n class=\"shell-nav__actions-button\"\n mat-icon-button\n [routerLink]=\"['/settings']\"\n routerLinkActive=\"active\"\n [matTooltip]=\"'yuv.shell.settings.title' | translate\"\n >\n <mat-icon>settings</mat-icon>\n </button>\n <button class=\"shell-nav__actions-button\" mat-icon-button (click)=\"appLogout()\" [matTooltip]=\"'yuv.shell.cmd.logout' | translate\">\n <mat-icon>power_settings_new</mat-icon>\n </button>\n </section>\n</yuv-sidebar-nav>\n\n<main id=\"main-shell_content\" aria-label=\"main shell content\" [inert]=\"asideOutlet.isActivated\">\n <router-outlet></router-outlet>\n</main>\n\n<!-- outlet for aside modals like notifications -->\n<div class=\"asideOutlet\" [hidden]=\"!asideOutlet.isActivated\">\n <router-outlet name=\"aside\" #asideOutlet=\"outlet\"></router-outlet>\n</div>\n\n<div id=\"fi\" inert></div>\n", styles: [":host{--mat-sidenav-container-shape: none}:host{--mat-sidenav-container-width: calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host{--mat-sidenav-container-divider-color: var(--ymt-outline-variant)}:host{--mat-sidenav-container-background-color: transparent}:host{--mat-sidenav-content-background-color: transparent}:host{--mat-sidenav-container-text-color: var(--ymt-on-surface)}.sidenav-container{height:100%;width:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}.sidenav-container .sidenav .sidenav-content{height:100%;display:flex;flex-flow:column nowrap;justify-content:flex-start;gap:var(--ymt-spacing-2xs)}.sidenav-container .sidenav .sidenav-content .app-logo{height:30px;width:100%;flex:0 0 auto;background-color:var(--ymt-brand);margin-bottom:8px}.sidenav-container .sidenav .sidenav-content .nav-list{flex:1 0 auto;display:flex;flex-flow:column nowrap;align-items:center;gap:var(--ymt-spacing-2xs)}.sidenav-container .sidenav .sidenav-content .actions{flex:0 0 auto;display:flex;flex-flow:column nowrap;align-items:center;margin-bottom:8px;gap:var(--ymt-spacing-2xs)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container{width:100%;height:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav{width:100%;border:none;border-top:1px solid var(--ymt-outline-variant)}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content{flex-flow:row nowrap;height:calc(calc(24px + var(--ymt-spacing-s) + 1px + 16px) - 1px);margin-block-start:0;overflow-y:hidden}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .app-logo{height:100%;width:auto;aspect-ratio:1/1;margin-bottom:0;margin-right:8px}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .nav-list{flex-flow:row nowrap;height:auto}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .sidenav-container .sidenav .sidenav-content .actions{flex-flow:row nowrap;margin-bottom:0;margin-right:8px}:host{position:absolute;inset:0;overflow:hidden;display:flex;background-color:var(--ymt-surface-frame)}:host .progress-bar{position:absolute}:host .shell-nav{flex:0 0 auto}:host .shell-nav__nav-list{display:contents;list-style:none}:host .shell-nav__nav-list-item{display:inline-block}:host .shell-nav__shell-logo-button{-webkit-user-select:none;user-select:none;display:block;position:relative;box-sizing:border-box;border:none;outline:none;cursor:pointer;height:100%;width:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);padding:0;padding-block:0;background:none}:host .shell-nav__shell-logo-button mat-icon{width:100%;height:100%}:host .shell-nav__actions{display:contents}:host main{flex:1;color:var(--ymt-text-color)}:host .asideOutlet{position:absolute;inset:0;padding-inline-start:calc(24px + var(--ymt-spacing-s) + 1px + 16px)}:host-context([data-screen-size=s][data-screen-orientation=portrait]){flex-flow:column-reverse}:host-context([data-screen-size=s][data-screen-orientation=portrait]) main{overflow:hidden}:host-context([data-screen-size=s][data-screen-orientation=portrait]) .asideOutlet{padding-inline-start:0}\n"] }]
350
379
  }], ctorParameters: () => [], propDecorators: { onFocusChange: [{
351
380
  type: HostListener,
352
381
  args: ['document:focusin', ['$event']]
@@ -431,7 +460,7 @@ class ManageFlavorsComponent {
431
460
  this.#refreshDmsObject();
432
461
  }
433
462
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ManageFlavorsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
434
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.12", type: ManageFlavorsComponent, isStandalone: true, selector: "yuv-manage-flavors", ngImport: i0, template: "<yuv-dialog [headertitel]=\"'yuv.shell.action.manage-flavors.title' | translate\">\n <main [yuvBusyOverlay]=\"busy()\">\n <p>{{ 'yuv.shell.action.manage-flavors.text' | translate }}</p>\n @if (appliedFlavors.length) {\n <h3>{{ 'yuv.shell.action.manage-flavors.applied.headline' | translate }}</h3>\n <ul>\n @for (f of appliedFlavors; track $index) {\n <li>\n <yuv-flavor-chip [flavor]=\"f\" yuvListItem></yuv-flavor-chip>\n <button mat-icon-button [matTooltip]=\"'yuv.shell.action.manage-flavors.applicable.button.remove.tooltip' | translate\" (click)=\"removeFlavor(f)\">\n <mat-icon>delete_forever</mat-icon>\n </button>\n </li>\n }\n </ul>\n }\n @if (applicableFlavors.length) {\n <h3>{{ 'yuv.shell.action.manage-flavors.applicable.headline' | translate }}</h3>\n <ul>\n @for (f of applicableFlavors; track $index) {\n <li>\n <yuv-flavor-chip [flavor]=\"f\" yuvListItem></yuv-flavor-chip>\n <button mat-icon-button [matTooltip]=\"'yuv.shell.action.manage-flavors.applied.button.apply.tooltip' | translate\" (click)=\"applyFlavor(f)\">\n <mat-icon>add</mat-icon>\n </button>\n </li>\n }\n </ul>\n }\n </main>\n <footer>\n <button ymtButton=\"secondary\" (click)=\"cancel()\">{{ 'yuv.shell.action.manage-flavors.button.cancel' | translate }}</button>\n </footer>\n</yuv-dialog>\n", styles: [":host main{display:flex;flex-flow:column;padding:var(--ymt-spacing-m);flex:1;overflow-y:auto}:host main yuv-flavor-chip{border-color:transparent;flex:1}:host main ul{padding:0;margin:0;list-style-type:none}:host main li{display:flex;gap:var(--ymt-spacing-xs);align-items:center;border:1px solid var(--ymt-outline-variant);margin-block-end:2px;padding:var(--ymt-spacing-2xs)}:host footer{flex:0 0 auto;margin-block-start:var(--ymt-spacing-m)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: BusyOverlayDirective, selector: "[yuvBusyOverlay]", inputs: ["yuvBusyOverlay"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }, { kind: "directive", type: ListItemDirective, selector: "[yuvListItem]", inputs: ["disabled", "active", "selected"] }, { kind: "component", type: FlavorChipComponent, selector: "yuv-flavor-chip", inputs: ["flavor", "enableRemove", "enableDescription"], outputs: ["flavorRemove"] }, { kind: "component", type: DialogComponent, selector: "yuv-dialog", inputs: ["headertitel"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: YmtButtonDirective, selector: "button[ymtButton], a[ymtButton]", inputs: ["ymtButton", "disabled", "aria-disabled", "disableRipple", "disabledInteractive", "button-size"] }] }); }
463
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.12", type: ManageFlavorsComponent, isStandalone: true, selector: "yuv-manage-flavors", ngImport: i0, template: "<yuv-dialog [headertitel]=\"'yuv.shell.action.manage-flavors.title' | translate\">\n <main [yuvBusyOverlay]=\"busy()\">\n <p>{{ 'yuv.shell.action.manage-flavors.text' | translate }}</p>\n @if (appliedFlavors.length) {\n <h3>{{ 'yuv.shell.action.manage-flavors.applied.headline' | translate }}</h3>\n <ul>\n @for (f of appliedFlavors; track $index) {\n <li>\n <yuv-flavor-chip [flavor]=\"f\" yuvListItem></yuv-flavor-chip>\n <button mat-icon-button [matTooltip]=\"'yuv.shell.action.manage-flavors.applicable.button.remove.tooltip' | translate\" (click)=\"removeFlavor(f)\">\n <mat-icon>delete_forever</mat-icon>\n </button>\n </li>\n }\n </ul>\n }\n @if (applicableFlavors.length) {\n <h3>{{ 'yuv.shell.action.manage-flavors.applicable.headline' | translate }}</h3>\n <ul>\n @for (f of applicableFlavors; track $index) {\n <li>\n <yuv-flavor-chip [flavor]=\"f\" yuvListItem></yuv-flavor-chip>\n <button mat-icon-button [matTooltip]=\"'yuv.shell.action.manage-flavors.applied.button.apply.tooltip' | translate\" (click)=\"applyFlavor(f)\">\n <mat-icon>add</mat-icon>\n </button>\n </li>\n }\n </ul>\n }\n </main>\n <footer>\n <button ymtButton=\"secondary\" (click)=\"cancel()\">{{ 'yuv.shell.action.manage-flavors.button.cancel' | translate }}</button>\n </footer>\n</yuv-dialog>\n", styles: [":host main{display:flex;flex-flow:column;padding:var(--ymt-spacing-m);flex:1;overflow-y:auto}:host main yuv-flavor-chip{border-color:transparent;flex:1}:host main ul{padding:0;margin:0;list-style-type:none}:host main li{display:flex;gap:var(--ymt-spacing-xs);align-items:center;border:1px solid var(--ymt-outline-variant);margin-block-end:2px;padding:var(--ymt-spacing-2xs)}:host footer{flex:0 0 auto;margin-block-start:var(--ymt-spacing-m)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: BusyOverlayDirective, selector: "[yuvBusyOverlay]", inputs: ["yuvBusyOverlay"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }, { kind: "directive", type: ListItemDirective, selector: "[yuvListItem]", inputs: ["disabled", "active", "selected"] }, { kind: "component", type: FlavorChipComponent, selector: "yuv-flavor-chip", inputs: ["flavor", "enableRemove", "enableDescription"], outputs: ["flavorRemove"] }, { kind: "component", type: DialogComponent, selector: "yuv-dialog", inputs: ["headertitel"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: YmtButtonDirective, selector: "button[ymtButton], a[ymtButton]", inputs: ["ymtButton", "disabled", "aria-disabled", "disableRipple", "disabledInteractive", "button-size"] }] }); }
435
464
  }
436
465
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: ManageFlavorsComponent, decorators: [{
437
466
  type: Component,
@@ -1 +1 @@
1
- {"version":3,"file":"yuuvis-client-shell.mjs","sources":["../../../../../libs/yuuvis/client-shell/src/lib/directives/inert.directive.ts","../../../../../libs/yuuvis/client-shell/src/lib/pages/notifications/notifications.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/pages/notifications/notifications.component.html","../../../../../libs/yuuvis/client-shell/src/lib/lib.routes.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/sidebar-nav/sidebar-nav.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/sidebar-nav/sidebar-nav.component.html","../../../../../libs/yuuvis/client-shell/src/lib/client-shell.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/client-shell.component.html","../../../../../libs/yuuvis/client-shell/src/lib/components/app-logo/app-logo.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/app-logo/app-logo.component.html","../../../../../libs/yuuvis/client-shell/src/lib/actions/manage-flavors/manage-flavors.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/actions/manage-flavors/manage-flavors.component.html","../../../../../libs/yuuvis/client-shell/src/lib/actions/manage-flavors/manage-flavors.action.ts","../../../../../libs/yuuvis/client-shell/src/yuuvis-client-shell.ts"],"sourcesContent":["import { Directive, ElementRef, effect, inject, input } from '@angular/core';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[inert]',\n standalone: true\n})\nexport class InertDirective {\n private elRef = inject(ElementRef);\n\n inert = input<boolean>(false);\n\n constructor() {\n effect(() => {\n const el: HTMLElement = this.elRef.nativeElement as HTMLElement;\n if (this.inert()) el.setAttribute('inert', 'true');\n else el.removeAttribute('inert');\n });\n }\n}\n","import { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { CommonModule } from '@angular/common';\nimport { Component, ElementRef, HostListener, OnInit, effect, inject } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { Router } from '@angular/router';\nimport { LocaleDatePipe, TranslateModule, Utils } from '@yuuvis/client-core';\nimport { LightDismissDirective } from '@yuuvis/client-framework/common';\nimport { YUV_ICONS, YuvIconComponent } from '@yuuvis/client-framework/icons';\nimport { YuvListModule } from '@yuuvis/client-framework/list';\nimport { ShellNotificationsService } from '@yuuvis/client-shell-core';\n\n@Component({\n selector: 'yuv-notifications',\n standalone: true,\n imports: [\n CommonModule,\n LightDismissDirective,\n MatIconModule,\n MatButtonModule,\n LocaleDatePipe,\n YuvIconComponent,\n CdkTrapFocus,\n YuvListModule,\n TranslateModule\n ],\n templateUrl: './notifications.component.html',\n styleUrl: './notifications.component.scss'\n})\nexport class NotificationsPageComponent implements OnInit {\n private router = inject(Router);\n private shellNotifications = inject(ShellNotificationsService);\n private elRef = inject(ElementRef);\n\n private _focusedIndex = -1;\n private _notificationIDs: string[] = [];\n notifications = toSignal(this.shellNotifications.shellNotifications$);\n notificationsIdEffect = effect(() => (this._notificationIDs = (this.notifications() || []).map((n) => n.id)));\n\n icons = {\n note: YUV_ICONS.notification\n };\n\n @HostListener('keydown', ['$event']) onKeydown(event: KeyboardEvent) {\n switch (event.code) {\n case 'Delete': {\n if (this._focusedIndex >= 0) this.remove(this._notificationIDs[this._focusedIndex]);\n break;\n }\n }\n }\n\n async itemSelected(idx: number[]) {\n const n = this.shellNotifications.getNotificationById(this._notificationIDs[idx[0]]);\n if (n?.targetRoute) {\n await this.close();\n this.router.navigateByUrl(n.targetRoute, { replaceUrl: true });\n if (n.removeOnTargetRouteNavigated) this.remove(n.id);\n }\n }\n\n itemFocused(index: number) {\n this._focusedIndex = index;\n }\n\n remove(id: string) {\n if (id) this.shellNotifications.remove(id);\n }\n\n removeAll() {\n this.shellNotifications.removeAll();\n }\n\n close() {\n return this.router.navigate([{ outlets: { aside: null } }], {\n replaceUrl: true\n });\n }\n\n ngOnInit(): void {\n this.shellNotifications.markAllAsSeen();\n setTimeout(() => {\n const fc: HTMLElement[] = Utils.getFocusableChildren(this.elRef.nativeElement) as HTMLElement[];\n if (fc.length) fc[0].focus();\n });\n }\n}\n","<div class=\"notifications\" (yuvLightDismiss)=\"close()\" cdkTrapFocus>\n <h2>{{ 'yuv.shell.notifications.title' | translate }}</h2>\n\n @if (notifications()?.length) {\n <yuv-list (itemSelect)=\"itemSelected($event)\" (itemFocus)=\"itemFocused($event)\">\n @for (n of notifications(); track n.id) {\n <div class=\"note {{ n.level }}\" [ngClass]=\"{ withRoute: n.targetRoute }\" yuvListItem>\n <div class=\"icon\"><yuv-icon [svg]=\"n.icon || icons.note\"></yuv-icon></div>\n <div class=\"received\">{{ n.timestamp | localeDate }}</div>\n <div class=\"title\">{{ n.title }}</div>\n <div class=\"description\">{{ n.description }}</div>\n <div class=\"meta\"></div>\n\n <div class=\"actions\">\n <button mat-icon-button (click)=\"remove(n.id)\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n }\n </yuv-list>\n\n <div class=\"actions\">\n <button mat-icon-button [hidden]=\"!notifications()?.length\" class=\"icon secondary\" (click)=\"removeAll()\">\n {{ 'yuv.shell.notifications.button.remove.all' | translate }}<mat-icon>delete</mat-icon>\n </button>\n </div>\n } @else {\n <div class=\"empty\">\n <p>{{ 'yuv.shell.notifications.empty' | translate }}</p>\n </div>\n }\n\n <button mat-icon-button class=\"icon close\" (click)=\"close()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n","import { Route } from '@angular/router';\nimport { NotificationsPageComponent } from './pages/notifications/notifications.component';\n\nexport const clientShellRoutes: Route[] = [\n { path: 'dashboard', loadComponent: () => import('./pages/dashboard/dashboard.component').then((comp) => comp.DashboardPageComponent) },\n { path: 'notifications', component: NotificationsPageComponent, outlet: 'aside' },\n { path: 'settings', loadComponent: () => import('./pages/settings/settings.component').then((comp) => comp.SettingsPageComponent) },\n {\n path: 'web-share-target',\n loadComponent: () => import('./pages/web-share-target/web-share-target.component').then((comp) => comp.WebShareTargetPageComponent)\n },\n // default route\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n // redirecting route\n { path: '**', redirectTo: '/' }\n];\n","import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatListModule } from '@angular/material/list';\nimport { MatSidenavModule } from '@angular/material/sidenav';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { TranslateModule } from '@yuuvis/client-core';\nimport { Observable } from 'rxjs';\nimport { map, shareReplay } from 'rxjs/operators';\n\n@Component({\n selector: 'yuv-sidebar-nav',\n templateUrl: './sidebar-nav.component.html',\n styleUrl: './sidebar-nav.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [TranslateModule, MatToolbarModule, MatButtonModule, MatSidenavModule, MatListModule, MatIconModule]\n})\nexport class SidebarNavComponent {\n private breakpointObserver = inject(BreakpointObserver);\n\n isHandset$: Observable<boolean> = this.breakpointObserver.observe(Breakpoints.Handset).pipe(\n map((result) => result.matches),\n shareReplay()\n );\n}\n","<mat-sidenav-container class=\"sidenav-container\">\n <mat-sidenav class=\"sidenav\"\n attr.role=\"navigation\"\n mode=\"side\"\n opened>\n <div class=\"sidenav-content\">\n <div class=\"app-logo\">\n <ng-content select=\".shell-nav__shell-logo-button\"></ng-content>\n </div>\n <div class=\"nav-list\">\n <ng-content select=\".shell-nav__nav-list\"></ng-content>\n </div>\n <div class=\"actions\">\n <ng-content select=\".shell-nav__actions\"></ng-content>\n </div>\n </div>\n </mat-sidenav>\n <mat-sidenav-content></mat-sidenav-content>\n</mat-sidenav-container>\n","import { AsyncPipe } from '@angular/common';\nimport { Component, HostListener, OnInit, Signal, computed, effect, inject, input, signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { MatIconButton } from '@angular/material/button';\nimport { MatIcon, MatIconRegistry } from '@angular/material/icon';\nimport { NavigationEnd, Route, Router, RouterModule } from '@angular/router';\nimport { SwPush } from '@angular/service-worker';\nimport { AuthService, DeviceService, SafeHtmlPipe, TranslateModule, TranslateService, UserRoles, UserService, Utils, YuvUser } from '@yuuvis/client-core';\nimport {\n App,\n ClientShellConfig,\n CommandPaletteCommand,\n CommandPaletteService,\n ShellNotificationLevel,\n ShellNotificationsService,\n ShellService\n} from '@yuuvis/client-shell-core';\nimport { of } from 'rxjs';\nimport { catchError, filter, map, switchMap, tap } from 'rxjs/operators';\nimport { clientShellRoutes } from './lib.routes';\nimport { SidebarNavComponent } from './components/sidebar-nav/sidebar-nav.component';\nimport { YuvMetadataFormDefaultsModule } from '@yuuvis/client-framework/metadata-form-defaults';\nimport { MatProgressBar } from '@angular/material/progress-bar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n@Component({\n selector: 'yuv-client-shell',\n standalone: true,\n imports: [AsyncPipe, TranslateModule, RouterModule, YuvMetadataFormDefaultsModule, SidebarNavComponent, MatIconButton, MatIcon, MatProgressBar, MatTooltipModule],\n templateUrl: './client-shell.component.html',\n styleUrls: ['./client-shell.component.scss'],\n providers: [SafeHtmlPipe]\n})\nexport class ClientShellComponent implements OnInit {\n private router = inject(Router);\n private auth = inject(AuthService);\n private userService = inject(UserService);\n #shell = inject(ShellService);\n private shellNotifications = inject(ShellNotificationsService);\n private translate = inject(TranslateService);\n private commandPalette = inject(CommandPaletteService);\n readonly #device = inject(DeviceService);\n readonly #swPush = inject(SwPush);\n readonly #matIconRegistryService = inject(MatIconRegistry);\n\n private APP_LOGOUT_EVENT_KEY = 'yuv.app.event.logout';\n\n private _levels: Record<ShellNotificationLevel, number> = {\n info: 0,\n success: 1,\n warning: 2,\n alert: 3\n };\n\n safeHtmlPipe = inject(SafeHtmlPipe);\n\n showUploadOverlay = false;\n busy$ = this.#shell.isBusy$;\n context?: string;\n\n showNotifications = signal<boolean>(false);\n newNotifications: Signal<\n | {\n count: number;\n maxLevel: ShellNotificationLevel;\n }\n | undefined\n > = toSignal(\n this.shellNotifications.shellNotifications$.pipe(\n tap((n) => this.showNotifications.set(n.length > 0)),\n map((notifications) => {\n let maxLevel: ShellNotificationLevel = 'info';\n const count = notifications.filter((n) => !n.seen).length;\n notifications.forEach((n) => (maxLevel = n.level && this._levels[n.level] > this._levels[maxLevel] ? n.level : maxLevel));\n return count > 0 ? { maxLevel, count } : undefined;\n })\n )\n );\n\n @HostListener('document:focusin', ['$event'])\n onFocusChange(event: FocusEvent) {\n // console.log('focused: ', document.activeElement);\n }\n\n @HostListener('dragover', ['$event'])\n onDragOver(event: DragEvent) {\n event.stopPropagation();\n event.preventDefault();\n\n this.showUploadOverlay = !!this._dragContainsFiles(event);\n }\n\n apps = input.required<App[]>();\n #appsEffect = effect(() => this.#shell.setAppBaseRoutes(this.apps()));\n user?: YuvUser;\n checkedForInitialRoute = false;\n enableTenantSwitch = false;\n\n config = input<ClientShellConfig>();\n #shellConfigEffect = effect(() => {\n const cfg = this.config();\n if (cfg) {\n this.#shell.setShellConfig(cfg);\n }\n });\n\n registerIcons = computed(() => {\n const apps = this.apps();\n const config = this.#shell.shellConfig();\n const namespace = config.shellIconNamespace;\n\n // find svg-icons to register and put them in an array\n const customSvgIconsToRegister = apps\n .filter(({ svgIcon }) => !!svgIcon)\n .map(({ svgIcon, iconName }): ClientShellConfig['appIcon'] => ({ svgIcon, iconName }));\n customSvgIconsToRegister.push(config.appIcon);\n\n // register svg-icons\n const allRegistered = customSvgIconsToRegister.every((icon) => {\n return namespace && icon && icon.svgIcon && icon.iconName\n ? !!this.#matIconRegistryService.addSvgIconLiteralInNamespace(namespace, icon.iconName, this.safeHtmlPipe.transform(icon.svgIcon))\n : false;\n });\n\n return allRegistered;\n });\n\n constructor() {\n this.translate.onLangChange.subscribe(() => this._setCommands(true));\n // this.router.events.pipe(\n // // filter(e => e instanceof NavigationStart)\n // ).subscribe((e) => {\n // console.log(e);\n // });\n\n this.router.events\n .pipe(\n filter((e) => e instanceof NavigationEnd),\n map((e) => e as NavigationEnd)\n )\n .subscribe((e: NavigationEnd) => this._processRouterNavigationEnd(e));\n\n this.#device.init();\n\n this.userService.user$.subscribe((user: YuvUser | undefined) => {\n if (user) {\n this.checkedForInitialRoute = !(!this.user || this.user.id !== user.id);\n this.enableTenantSwitch = user.authorities.includes(UserRoles.MULTI_TENANT);\n }\n this.user = user;\n });\n\n window.addEventListener('storage', (evt) => {\n if (evt.key === this.APP_LOGOUT_EVENT_KEY) {\n this.appLogout(true);\n }\n });\n }\n\n getAppTitle(a: App): string {\n return (a.title as string) || '';\n }\n\n openNotifications() {\n this.router.navigate([{}]);\n }\n\n // getNotifications(id: string) {\n // return this.shellNotifications.getNotifications(id);\n // }\n\n private _dragContainsFiles(event: DragEvent): number {\n // do not allow to drop files/images from iframes\n if ((event.relatedTarget as Element)?.tagName.toLowerCase() === 'iframe') return 0;\n return event.dataTransfer ? Array.from(event.dataTransfer.items || []).filter((i) => i.kind === 'file' && i.type).length : 0;\n }\n\n private _setCommands(update?: boolean) {\n const commands: CommandPaletteCommand[] = this.apps().map((a: App, i: number) => ({\n id: `nav.app.${i}`,\n label: this.translate.instant('yuv.shell.cmd.app.open', { title: a.title as string }),\n callback: () => this.router.navigate([a.path])\n }));\n commands.push({\n id: `nav.shell.settings`,\n label: this.translate.instant('yuv.shell.cmd.open.settings'),\n callback: () => this.router.navigate(['settings'])\n });\n commands.push({\n id: `nav.shell.logout`,\n label: this.translate.instant('yuv.shell.cmd.logout'),\n callback: () => this.appLogout()\n });\n\n if (update) this.commandPalette.updateCommands(commands);\n else this.commandPalette.registerCommands(commands);\n }\n\n requestSubscription() {\n if (!this.#swPush.isEnabled) {\n return;\n }\n\n this.#swPush.messages\n .pipe(\n tap((msg) => console.log({ msg })),\n catchError((error) => {\n console.log({ error });\n return of(null);\n })\n )\n .subscribe();\n }\n\n appLogout(triggeredFromOtherTab?: boolean) {\n if (!triggeredFromOtherTab) {\n // send storage event to logout all other open tabs\n window.localStorage.setItem(this.APP_LOGOUT_EVENT_KEY, `${Date.now()}`);\n }\n this.userService.logout('');\n }\n\n private _processRouterNavigationEnd(e: NavigationEnd) {\n if (!this.checkedForInitialRoute) {\n this.checkedForInitialRoute = true;\n // redirect to the page the user logged out from the last time\n // but only if current route is not a deep link\n const ignoreRoutes = ['', 'dashboard', 'index.html'].map((s) => `${Utils.getBaseHref()}${s}`.replace('//', '/'));\n const currentRoute = this.routeWithBaseHref(this.router.routerState.snapshot.url);\n\n if (this.userService.getCurrentUser() && !ignoreRoutes.includes(currentRoute)) {\n // get persisted routes to decide where to redirect the logged in user to\n this.auth\n .getInitialRequestUri()\n .pipe(switchMap((res) => this.auth.resetInitialRequestUri().pipe(map((_) => res))))\n .subscribe((res: { uri: string; timestamp: number }) => {\n const loginRes = res && !ignoreRoutes.includes(res.uri) ? res : null;\n if (loginRes) this.router.navigateByUrl(loginRes.uri);\n });\n }\n }\n }\n\n private routeWithBaseHref(r: string): string {\n return `${Utils.getBaseHref()}${r}`.replace('//', '/');\n }\n\n ngOnInit(): void {\n this.#shell._init();\n clientShellRoutes.forEach((route: Route) => {\n this.router.config.push(route);\n });\n this.router.resetConfig(this.router.config);\n this._setCommands();\n this.requestSubscription();\n }\n}\n","<yuv-metadata-default-templates></yuv-metadata-default-templates>\n\n<!-- gloabl busy indicator -->\n@if (busy$ | async) {\n <mat-progress-bar\n mode=\"indeterminate\"\n class=\"progress-bar\"\n ></mat-progress-bar>\n}\n\n@let iconsRegistered = registerIcons();\n\n<yuv-sidebar-nav class=\"shell-nav\">\n <button class=\"shell-nav__shell-logo-button\" routerLink=\"/\" routerLinkActive=\"active\" [attr.aria-label]=\"'yuv.shell.logo.aria.label' | translate\">\n @if (iconsRegistered) {\n <mat-icon svgIcon=\"shellIcons:app_logo\"></mat-icon>\n }\n </button>\n <ul class=\"shell-nav__nav-list\">\n @for (a of apps(); track a.path) {\n <li class=\"shell-nav__nav-list-item\">\n <button class=\"shell-nav__nav-list-item-button\" mat-icon-button routerLinkActive=\"active\" [routerLink]=\"a.path\" \n matTooltipPosition=\"after\"\n [matTooltip]=\"getAppTitle(a)\">\n @if (a.svgIcon) {\n @if (iconsRegistered) {\n <mat-icon [svgIcon]=\"'shellIcons:' + a.iconName\"></mat-icon>\n }\n } @else {\n <mat-icon>{{ a.iconName }}</mat-icon>\n }\n <!--@if (getNotifications(a.id)) {\n <div [ngClass]=\"'badge ' + getNotifications(a.id).maxLevel\">{{ getNotifications(a.id).count }}</div>\n }-->\n </button>\n </li>\n }\n </ul>\n <section class=\"shell-nav__actions\">\n @if (showNotifications()) {\n <button\n class=\"shell-nav__actions-button\"\n mat-icon-button\n [routerLink]=\"[{ outlets: { aside: 'notifications' } }]\"\n routerLinkActive=\"active\"\n matTooltipPosition=\"after\"\n [matTooltip]=\"'yuv.shell.notifications.title' | translate\"\n >\n <mat-icon>notifications</mat-icon>\n @if (newNotifications(); as note) {\n <div class=\"badge {{ note.maxLevel }}\">{{ note.count }}</div>\n }\n </button>\n }\n <button\n class=\"shell-nav__actions-button\"\n mat-icon-button\n [routerLink]=\"['/settings']\"\n routerLinkActive=\"active\"\n [matTooltip]=\"'yuv.shell.settings.title' | translate\"\n >\n <mat-icon>settings</mat-icon>\n </button>\n <button class=\"shell-nav__actions-button\" mat-icon-button (click)=\"appLogout()\" [matTooltip]=\"'yuv.shell.cmd.logout' | translate\">\n <mat-icon>power_settings_new</mat-icon>\n </button>\n </section>\n</yuv-sidebar-nav>\n\n<main id=\"main-shell_content\" aria-label=\"main shell content\" [inert]=\"asideOutlet.isActivated\">\n <router-outlet></router-outlet>\n</main>\n\n<!-- outlet for aside modals like notifications -->\n<div class=\"asideOutlet\" [hidden]=\"!asideOutlet.isActivated\">\n <router-outlet name=\"aside\" #asideOutlet=\"outlet\"></router-outlet>\n</div>\n\n<div id=\"fi\" inert></div>\n","import { CommonModule } from '@angular/common';\nimport { Component, input } from '@angular/core';\n\n@Component({\n selector: 'yuv-app-logo',\n standalone: true,\n imports: [CommonModule],\n templateUrl: './app-logo.component.html',\n styleUrl: './app-logo.component.scss'\n})\nexport class AppLogoComponent {\n icon = input<string>();\n label = input.required<string>();\n}\n","<span class=\"label\">{{label()}}</span>\n","import { CommonModule } from '@angular/common';\nimport { Component, inject, OnInit, signal } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { DmsObject, DmsService, TranslateModule, TranslateService } from '@yuuvis/client-core';\nimport { BusyOverlayDirective, ConfirmService, DialogComponent } from '@yuuvis/client-framework/common';\nimport { ListItemDirective } from '@yuuvis/client-framework/list';\nimport { FlavorChipComponent } from '@yuuvis/client-framework/object-flavor';\nimport { ObjectFlavor, ShellService } from '@yuuvis/client-shell-core';\nimport { YmtButtonDirective } from '@yuuvis/material';\nimport { of, switchMap, tap } from 'rxjs';\n\n@Component({\n selector: 'yuv-manage-flavors',\n standalone: true,\n imports: [\n CommonModule,\n BusyOverlayDirective,\n MatIconModule,\n MatTooltipModule,\n TranslateModule,\n ListItemDirective,\n FlavorChipComponent,\n DialogComponent,\n MatButtonModule,\n YmtButtonDirective\n ],\n templateUrl: './manage-flavors.component.html',\n styleUrl: './manage-flavors.component.scss'\n})\nexport class ManageFlavorsComponent implements OnInit {\n #shell = inject(ShellService);\n #dmsService = inject(DmsService);\n #dialogData = inject<any>(MAT_DIALOG_DATA);\n readonly #dialogRef = inject(MatDialogRef<ManageFlavorsComponent>);\n item: DmsObject = this.#dialogData;\n #confirm = inject(ConfirmService);\n private translate = inject(TranslateService);\n\n busy = signal<boolean>(false);\n\n appliedFlavors: ObjectFlavor[] = [];\n applicableFlavors: ObjectFlavor[] = [];\n\n applyFlavor(flavor: ObjectFlavor) {\n this.busy.set(true);\n this.#shell.triggerApplyObjectFlavor(this.item, flavor).subscribe(() => {\n this.#dialogRef.close();\n this.busy.set(false);\n });\n }\n\n removeFlavor(flavor: ObjectFlavor) {\n this.busy.set(true);\n this.#confirm\n .confirm({\n message: this.translate.instant('yuv.object-flavor.flavor.remove.confirm.message', {\n flavor: this.#shell.getFlavorLabel(flavor.id)\n })\n })\n .pipe(switchMap((confirmed: boolean) => (confirmed ? this.#shell.removeObjectFlavor(this.item, flavor) : of(undefined))))\n .subscribe((res) => {\n if (res !== undefined) this.#dialogRef.close();\n this.busy.set(false);\n });\n }\n\n #refreshDmsObject() {\n this.busy.set(true);\n this.#dmsService\n .getDmsObject(this.item.id)\n .pipe(\n tap((dmsObject) => {\n this.item = dmsObject;\n this.#getAppliedFlavors(this.item);\n })\n )\n .subscribe()\n .add(() => this.busy.set(false));\n }\n\n #getAppliedFlavors(dmsObject: DmsObject) {\n const res = this.#shell.getAppliedObjectFlavors(dmsObject);\n this.appliedFlavors = res.applied;\n this.applicableFlavors = res.applicable;\n }\n\n cancel() {\n this.#dialogRef.close();\n }\n\n ngOnInit() {\n this.#refreshDmsObject();\n }\n}\n","<yuv-dialog [headertitel]=\"'yuv.shell.action.manage-flavors.title' | translate\">\n <main [yuvBusyOverlay]=\"busy()\">\n <p>{{ 'yuv.shell.action.manage-flavors.text' | translate }}</p>\n @if (appliedFlavors.length) {\n <h3>{{ 'yuv.shell.action.manage-flavors.applied.headline' | translate }}</h3>\n <ul>\n @for (f of appliedFlavors; track $index) {\n <li>\n <yuv-flavor-chip [flavor]=\"f\" yuvListItem></yuv-flavor-chip>\n <button mat-icon-button [matTooltip]=\"'yuv.shell.action.manage-flavors.applicable.button.remove.tooltip' | translate\" (click)=\"removeFlavor(f)\">\n <mat-icon>delete_forever</mat-icon>\n </button>\n </li>\n }\n </ul>\n }\n @if (applicableFlavors.length) {\n <h3>{{ 'yuv.shell.action.manage-flavors.applicable.headline' | translate }}</h3>\n <ul>\n @for (f of applicableFlavors; track $index) {\n <li>\n <yuv-flavor-chip [flavor]=\"f\" yuvListItem></yuv-flavor-chip>\n <button mat-icon-button [matTooltip]=\"'yuv.shell.action.manage-flavors.applied.button.apply.tooltip' | translate\" (click)=\"applyFlavor(f)\">\n <mat-icon>add</mat-icon>\n </button>\n </li>\n }\n </ul>\n }\n </main>\n <footer>\n <button ymtButton=\"secondary\" (click)=\"cancel()\">{{ 'yuv.shell.action.manage-flavors.button.cancel' | translate }}</button>\n </footer>\n</yuv-dialog>\n","import { inject } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { DmsObject, SystemType, TranslateService } from '@yuuvis/client-core';\nimport { AbstractContextAction, Action, ACTION_ICON, ActionSupport, SelectionRange } from '@yuuvis/client-framework/actions';\nimport { ObjectFlavor, ShellService } from '@yuuvis/client-shell-core';\nimport { Observable, of } from 'rxjs';\nimport { ManageFlavorsComponent } from './manage-flavors.component';\n\nexport class ManageFlavorsAction extends AbstractContextAction implements Action {\n #shell = inject(ShellService);\n #dialog = inject(MatDialog);\n private translate = inject(TranslateService);\n\n id = 'yuv.base.manage-flavor';\n label = this.translate.instant('yuv.shell.action.manage-flavor.label');\n description = this.translate.instant('yuv.shell.action.manage-flavor.description');\n priority = 8;\n icon = ACTION_ICON.manageFlavor;\n group = 'common';\n range = SelectionRange.SINGLE_SELECT;\n supports: ActionSupport = {\n types: [SystemType.DOCUMENT]\n };\n\n isExecutable(items: DmsObject[]) {\n const item = items[0];\n if(!item) return of(false);\n const applicableFlavors: ObjectFlavor[] = item.isFolder\n ? this.#shell.getApplicableFolderFlavors()\n : item.content\n ? this.#shell.getApplicableDocumentFlavors(item.content.mimeType)\n : [];\n return of(item && !!item.permissions?.writeIndexData && applicableFlavors.length > 0);\n }\n\n run(items: DmsObject[]): Observable<boolean> {\n this.#dialog.open(ManageFlavorsComponent, {\n width: '400px',\n maxWidth: '90vw',\n data: items[0]\n });\n return of(true);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i5","i1","i2","i3","i4","switchMap","tap"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOa,cAAc,CAAA;AAKzB,IAAA,WAAA,GAAA;AAJQ,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC;AAElC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAU,KAAK,CAAC;QAG3B,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,EAAE,GAAgB,IAAI,CAAC,KAAK,CAAC,aAA4B;YAC/D,IAAI,IAAI,CAAC,KAAK,EAAE;AAAE,gBAAA,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC;;AAC7C,gBAAA,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC;AAClC,SAAC,CAAC;;+GAVO,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAL1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;;AAET,oBAAA,QAAQ,EAAE,SAAS;AACnB,oBAAA,UA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D,IAAA,MAAM;AACN,IAAA,OAAO;AAcP,IAAA,YAAY,CAAC,KAAkB,EAAA;AAC7B,QAAA,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC;AACrB,QAAA,IAAG,CAAC,IAAI;AAAE,YAAA,OAAO,EAAE,CAAC,KAAK,CAAC;AAC1B,QAAA,MAAM,iBAAiB,GAAmB,IAAI,CAAC;AAC7C,cAAE,IAAI,CAAC,MAAM,CAAC,0BAA0B;cACtC,IAAI,CAAC;AACL,kBAAE,IAAI,CAAC,MAAM,CAAC,4BAA4B,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ;kBAC9D,EAAE;AACR,QAAA,OAAO,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC;;AAGvF,IAAA,GAAG,CAAC,KAAkB,EAAA;AACpB,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;AACxC,YAAA,KAAK,EAAE,OAAO;AACd,YAAA,QAAQ,EAAE,MAAM;AAChB,YAAA,IAAI,EAAE,KAAK,CAAC,CAAC;AACd,SAAA,CAAC;AACF,QAAA,OAAO,EAAE,CAAC,IAAI,CAAC;;AAElB;;AC3CD;;AAEG;;;;"}
1
+ {"version":3,"file":"yuuvis-client-shell.mjs","sources":["../../../../../libs/yuuvis/client-shell/src/lib/directives/inert.directive.ts","../../../../../libs/yuuvis/client-shell/src/lib/pages/notifications/notifications.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/pages/notifications/notifications.component.html","../../../../../libs/yuuvis/client-shell/src/lib/lib.routes.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/sidebar-nav/sidebar-nav.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/sidebar-nav/sidebar-nav.component.html","../../../../../libs/yuuvis/client-shell/src/lib/client-shell.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/client-shell.component.html","../../../../../libs/yuuvis/client-shell/src/lib/components/app-logo/app-logo.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/app-logo/app-logo.component.html","../../../../../libs/yuuvis/client-shell/src/lib/actions/manage-flavors/manage-flavors.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/actions/manage-flavors/manage-flavors.component.html","../../../../../libs/yuuvis/client-shell/src/lib/actions/manage-flavors/manage-flavors.action.ts","../../../../../libs/yuuvis/client-shell/src/yuuvis-client-shell.ts"],"sourcesContent":["import { Directive, ElementRef, effect, inject, input } from '@angular/core';\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: '[inert]',\n standalone: true\n})\nexport class InertDirective {\n private elRef = inject(ElementRef);\n\n inert = input<boolean>(false);\n\n constructor() {\n effect(() => {\n const el: HTMLElement = this.elRef.nativeElement as HTMLElement;\n if (this.inert()) el.setAttribute('inert', 'true');\n else el.removeAttribute('inert');\n });\n }\n}\n","import { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { CommonModule } from '@angular/common';\nimport { Component, ElementRef, HostListener, OnInit, effect, inject } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { Router } from '@angular/router';\nimport { LocaleDatePipe, TranslateModule, Utils } from '@yuuvis/client-core';\nimport { LightDismissDirective } from '@yuuvis/client-framework/common';\nimport { YUV_ICONS, YuvIconComponent } from '@yuuvis/client-framework/icons';\nimport { YuvListModule } from '@yuuvis/client-framework/list';\nimport { ShellNotificationsService } from '@yuuvis/client-shell-core';\n\n@Component({\n selector: 'yuv-notifications',\n standalone: true,\n imports: [\n CommonModule,\n LightDismissDirective,\n MatIconModule,\n MatButtonModule,\n LocaleDatePipe,\n YuvIconComponent,\n CdkTrapFocus,\n YuvListModule,\n TranslateModule\n ],\n templateUrl: './notifications.component.html',\n styleUrl: './notifications.component.scss'\n})\nexport class NotificationsPageComponent implements OnInit {\n private router = inject(Router);\n private shellNotifications = inject(ShellNotificationsService);\n private elRef = inject(ElementRef);\n\n private _focusedIndex = -1;\n private _notificationIDs: string[] = [];\n notifications = toSignal(this.shellNotifications.shellNotifications$);\n notificationsIdEffect = effect(() => (this._notificationIDs = (this.notifications() || []).map((n) => n.id)));\n\n icons = {\n note: YUV_ICONS.notification\n };\n\n @HostListener('keydown', ['$event']) onKeydown(event: KeyboardEvent) {\n switch (event.code) {\n case 'Delete': {\n if (this._focusedIndex >= 0) this.remove(this._notificationIDs[this._focusedIndex]);\n break;\n }\n }\n }\n\n async itemSelected(idx: number[]) {\n const n = this.shellNotifications.getNotificationById(this._notificationIDs[idx[0]]);\n if (n?.targetRoute) {\n await this.close();\n this.router.navigateByUrl(n.targetRoute, { replaceUrl: true });\n if (n.removeOnTargetRouteNavigated) this.remove(n.id);\n }\n }\n\n itemFocused(index: number) {\n this._focusedIndex = index;\n }\n\n remove(id: string) {\n if (id) this.shellNotifications.remove(id);\n }\n\n removeAll() {\n this.shellNotifications.removeAll();\n }\n\n close() {\n return this.router.navigate([{ outlets: { aside: null } }], {\n replaceUrl: true\n });\n }\n\n ngOnInit(): void {\n this.shellNotifications.markAllAsSeen();\n setTimeout(() => {\n const fc: HTMLElement[] = Utils.getFocusableChildren(this.elRef.nativeElement) as HTMLElement[];\n if (fc.length) fc[0].focus();\n });\n }\n}\n","<div class=\"notifications\" (yuvLightDismiss)=\"close()\" cdkTrapFocus>\n <h2>{{ 'yuv.shell.notifications.title' | translate }}</h2>\n\n @if (notifications()?.length) {\n <yuv-list (itemSelect)=\"itemSelected($event)\" (itemFocus)=\"itemFocused($event)\">\n @for (n of notifications(); track n.id) {\n <div class=\"note {{ n.level }}\" [ngClass]=\"{ withRoute: n.targetRoute }\" yuvListItem>\n <div class=\"icon\"><yuv-icon [svg]=\"n.icon || icons.note\"></yuv-icon></div>\n <div class=\"received\">{{ n.timestamp | localeDate }}</div>\n <div class=\"title\">{{ n.title }}</div>\n <div class=\"description\">{{ n.description }}</div>\n <div class=\"meta\"></div>\n\n <div class=\"actions\">\n <button mat-icon-button (click)=\"remove(n.id)\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n }\n </yuv-list>\n\n <div class=\"actions\">\n <button mat-icon-button [hidden]=\"!notifications()?.length\" class=\"icon secondary\" (click)=\"removeAll()\">\n {{ 'yuv.shell.notifications.button.remove.all' | translate }}<mat-icon>delete</mat-icon>\n </button>\n </div>\n } @else {\n <div class=\"empty\">\n <p>{{ 'yuv.shell.notifications.empty' | translate }}</p>\n </div>\n }\n\n <button mat-icon-button class=\"icon close\" (click)=\"close()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n","import { Route } from '@angular/router';\nimport { NotificationsPageComponent } from './pages/notifications/notifications.component';\n\nexport const clientShellRoutes: Route[] = [\n { path: 'dashboard', loadComponent: () => import('./pages/dashboard/dashboard.component').then((comp) => comp.DashboardPageComponent) },\n { path: 'notifications', component: NotificationsPageComponent, outlet: 'aside' },\n { path: 'settings', loadComponent: () => import('./pages/settings/settings.component').then((comp) => comp.SettingsPageComponent) },\n {\n path: 'web-share-target',\n loadComponent: () => import('./pages/web-share-target/web-share-target.component').then((comp) => comp.WebShareTargetPageComponent)\n },\n // default route\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n // redirecting route\n { path: '**', redirectTo: '/' }\n];\n","import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';\nimport { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatListModule } from '@angular/material/list';\nimport { MatSidenavModule } from '@angular/material/sidenav';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { TranslateModule } from '@yuuvis/client-core';\nimport { Observable } from 'rxjs';\nimport { map, shareReplay } from 'rxjs/operators';\n\n@Component({\n selector: 'yuv-sidebar-nav',\n templateUrl: './sidebar-nav.component.html',\n styleUrl: './sidebar-nav.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [TranslateModule, MatToolbarModule, MatButtonModule, MatSidenavModule, MatListModule, MatIconModule]\n})\nexport class SidebarNavComponent {\n private breakpointObserver = inject(BreakpointObserver);\n\n isHandset$: Observable<boolean> = this.breakpointObserver.observe(Breakpoints.Handset).pipe(\n map((result) => result.matches),\n shareReplay()\n );\n}\n","<mat-sidenav-container class=\"sidenav-container\">\n <mat-sidenav class=\"sidenav\"\n attr.role=\"navigation\"\n mode=\"side\"\n opened>\n <div class=\"sidenav-content\">\n <div class=\"app-logo\">\n <ng-content select=\".shell-nav__shell-logo-button\"></ng-content>\n </div>\n <div class=\"nav-list\">\n <ng-content select=\".shell-nav__nav-list\"></ng-content>\n </div>\n <div class=\"actions\">\n <ng-content select=\".shell-nav__actions\"></ng-content>\n </div>\n </div>\n </mat-sidenav>\n <mat-sidenav-content></mat-sidenav-content>\n</mat-sidenav-container>\n","import { AsyncPipe } from '@angular/common';\nimport { Component, HostListener, OnInit, Signal, computed, effect, inject, input, signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { MatIconButton } from '@angular/material/button';\nimport { MatIcon, MatIconRegistry } from '@angular/material/icon';\nimport { NavigationEnd, Route, Router, RouterModule } from '@angular/router';\nimport { SwPush } from '@angular/service-worker';\nimport { AuthService, DeviceService, SafeHtmlPipe, TranslateModule, TranslateService, UserRoles, UserService, Utils, YuvUser } from '@yuuvis/client-core';\nimport {\n App,\n ClientShellConfig,\n CommandPaletteCommand,\n CommandPaletteService,\n ShellNotificationLevel,\n ShellNotificationsService,\n ShellService\n} from '@yuuvis/client-shell-core';\nimport { of } from 'rxjs';\nimport { catchError, filter, map, switchMap, tap } from 'rxjs/operators';\nimport { clientShellRoutes } from './lib.routes';\nimport { SidebarNavComponent } from './components/sidebar-nav/sidebar-nav.component';\nimport { YuvMetadataFormDefaultsModule } from '@yuuvis/client-framework/metadata-form-defaults';\nimport { MatProgressBar } from '@angular/material/progress-bar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\n/**\n * Base component for the client shell application. In your apps \n * app.component.ts you can use this component as a base component\n * to provide the shell functionality.\n * \n * ```typescript\n * @Component({\n * standalone: true,\n * imports: [ClientShellComponent],\n * selector: 'yuv-root',\n * template: `<yuv-client-shell [apps]=\"apps\" [config]=\"shellConfig\"></yuv-client-shell>`,\n * styleUrl: './app.component.scss'\n * })\n * export class AppComponent {\n * #featureService = inject(FeatureService);\n * apps: App[] = this.#featureService.getAvailableApps(app); \n * }\n * ```\n */\n@Component({\n selector: 'yuv-client-shell',\n standalone: true,\n imports: [\n AsyncPipe,\n TranslateModule,\n RouterModule,\n YuvMetadataFormDefaultsModule,\n SidebarNavComponent,\n MatIconButton,\n MatIcon,\n MatProgressBar,\n MatTooltipModule\n ],\n templateUrl: './client-shell.component.html',\n styleUrls: ['./client-shell.component.scss'],\n providers: [SafeHtmlPipe]\n})\nexport class ClientShellComponent implements OnInit {\n private router = inject(Router);\n private auth = inject(AuthService);\n private userService = inject(UserService);\n #shell = inject(ShellService);\n private shellNotifications = inject(ShellNotificationsService);\n private translate = inject(TranslateService);\n private commandPalette = inject(CommandPaletteService);\n readonly #device = inject(DeviceService);\n readonly #swPush = inject(SwPush);\n readonly #matIconRegistryService = inject(MatIconRegistry);\n\n private APP_LOGOUT_EVENT_KEY = 'yuv.app.event.logout';\n\n private _levels: Record<ShellNotificationLevel, number> = {\n info: 0,\n success: 1,\n warning: 2,\n alert: 3\n };\n\n safeHtmlPipe = inject(SafeHtmlPipe);\n\n showUploadOverlay = false;\n busy$ = this.#shell.isBusy$;\n context?: string;\n\n showNotifications = signal<boolean>(false);\n newNotifications: Signal<\n | {\n count: number;\n maxLevel: ShellNotificationLevel;\n }\n | undefined\n > = toSignal(\n this.shellNotifications.shellNotifications$.pipe(\n tap((n) => this.showNotifications.set(n.length > 0)),\n map((notifications) => {\n let maxLevel: ShellNotificationLevel = 'info';\n const count = notifications.filter((n) => !n.seen).length;\n notifications.forEach((n) => (maxLevel = n.level && this._levels[n.level] > this._levels[maxLevel] ? n.level : maxLevel));\n return count > 0 ? { maxLevel, count } : undefined;\n })\n )\n );\n\n @HostListener('document:focusin', ['$event'])\n onFocusChange(event: FocusEvent) {\n // console.log('focused: ', document.activeElement);\n }\n\n @HostListener('dragover', ['$event'])\n onDragOver(event: DragEvent) {\n event.stopPropagation();\n event.preventDefault();\n\n this.showUploadOverlay = !!this._dragContainsFiles(event);\n }\n\n apps = input.required<App[]>();\n #appsEffect = effect(() => this.#shell.setAppBaseRoutes(this.apps()));\n user?: YuvUser;\n checkedForInitialRoute = false;\n enableTenantSwitch = false;\n\n config = input<ClientShellConfig>();\n #shellConfigEffect = effect(() => {\n const cfg = this.config();\n if (cfg) {\n this.#shell.setShellConfig(cfg);\n }\n });\n\n registerIcons = computed(() => {\n const apps = this.apps();\n const config = this.#shell.shellConfig();\n const namespace = config.shellIconNamespace;\n\n // find svg-icons to register and put them in an array\n const customSvgIconsToRegister = apps\n .filter(({ svgIcon }) => !!svgIcon)\n .map(({ svgIcon, iconName }): ClientShellConfig['appIcon'] => ({ svgIcon, iconName }));\n customSvgIconsToRegister.push(config.appIcon);\n\n // register svg-icons\n const allRegistered = customSvgIconsToRegister.every((icon) => {\n return namespace && icon && icon.svgIcon && icon.iconName\n ? !!this.#matIconRegistryService.addSvgIconLiteralInNamespace(namespace, icon.iconName, this.safeHtmlPipe.transform(icon.svgIcon))\n : false;\n });\n\n return allRegistered;\n });\n\n constructor() {\n this.translate.onLangChange.subscribe(() => this._setCommands(true));\n // this.router.events.pipe(\n // // filter(e => e instanceof NavigationStart)\n // ).subscribe((e) => {\n // console.log(e);\n // });\n\n this.router.events\n .pipe(\n filter((e) => e instanceof NavigationEnd),\n map((e) => e as NavigationEnd)\n )\n .subscribe((e: NavigationEnd) => this._processRouterNavigationEnd(e));\n\n this.#device.init();\n\n this.userService.user$.subscribe((user: YuvUser | undefined) => {\n if (user) {\n this.checkedForInitialRoute = !(!this.user || this.user.id !== user.id);\n this.enableTenantSwitch = user.authorities.includes(UserRoles.MULTI_TENANT);\n }\n this.user = user;\n });\n\n window.addEventListener('storage', (evt) => {\n if (evt.key === this.APP_LOGOUT_EVENT_KEY) {\n this.appLogout(true);\n }\n });\n }\n\n getAppTitle(a: App): string {\n return (a.title as string) || '';\n }\n\n openNotifications() {\n this.router.navigate([{}]);\n }\n\n // getNotifications(id: string) {\n // return this.shellNotifications.getNotifications(id);\n // }\n\n private _dragContainsFiles(event: DragEvent): number {\n // do not allow to drop files/images from iframes\n if ((event.relatedTarget as Element)?.tagName.toLowerCase() === 'iframe') return 0;\n return event.dataTransfer ? Array.from(event.dataTransfer.items || []).filter((i) => i.kind === 'file' && i.type).length : 0;\n }\n\n private _setCommands(update?: boolean) {\n const commands: CommandPaletteCommand[] = this.apps().map((a: App, i: number) => ({\n id: `nav.app.${i}`,\n label: this.translate.instant('yuv.shell.cmd.app.open', { title: a.title as string }),\n callback: () => this.router.navigate([a.path])\n }));\n commands.push({\n id: `nav.shell.settings`,\n label: this.translate.instant('yuv.shell.cmd.open.settings'),\n callback: () => this.router.navigate(['settings'])\n });\n commands.push({\n id: `nav.shell.logout`,\n label: this.translate.instant('yuv.shell.cmd.logout'),\n callback: () => this.appLogout()\n });\n\n if (update) this.commandPalette.updateCommands(commands);\n else this.commandPalette.registerCommands(commands);\n }\n\n requestSubscription() {\n if (!this.#swPush.isEnabled) {\n return;\n }\n\n this.#swPush.messages\n .pipe(\n tap((msg) => console.log({ msg })),\n catchError((error) => {\n console.log({ error });\n return of(null);\n })\n )\n .subscribe();\n }\n\n appLogout(triggeredFromOtherTab?: boolean) {\n if (!triggeredFromOtherTab) {\n // send storage event to logout all other open tabs\n window.localStorage.setItem(this.APP_LOGOUT_EVENT_KEY, `${Date.now()}`);\n }\n this.userService.logout('');\n }\n\n private _processRouterNavigationEnd(e: NavigationEnd) {\n if (!this.checkedForInitialRoute) {\n this.checkedForInitialRoute = true;\n // redirect to the page the user logged out from the last time\n // but only if current route is not a deep link\n const ignoreRoutes = ['', 'dashboard', 'index.html'].map((s) => `${Utils.getBaseHref()}${s}`.replace('//', '/'));\n const currentRoute = this.routeWithBaseHref(this.router.routerState.snapshot.url);\n\n if (this.userService.getCurrentUser() && !ignoreRoutes.includes(currentRoute)) {\n // get persisted routes to decide where to redirect the logged in user to\n this.auth\n .getInitialRequestUri()\n .pipe(switchMap((res) => this.auth.resetInitialRequestUri().pipe(map((_) => res))))\n .subscribe((res: { uri: string; timestamp: number }) => {\n const loginRes = res && !ignoreRoutes.includes(res.uri) ? res : null;\n if (loginRes) this.router.navigateByUrl(loginRes.uri);\n });\n }\n }\n }\n\n private routeWithBaseHref(r: string): string {\n return `${Utils.getBaseHref()}${r}`.replace('//', '/');\n }\n\n ngOnInit(): void {\n this.#shell._init();\n clientShellRoutes.forEach((route: Route) => {\n this.router.config.push(route);\n });\n this.router.resetConfig(this.router.config);\n this._setCommands();\n this.requestSubscription();\n }\n}\n","<yuv-metadata-default-templates></yuv-metadata-default-templates>\n\n<!-- gloabl busy indicator -->\n@if (busy$ | async) {\n <mat-progress-bar\n mode=\"indeterminate\"\n class=\"progress-bar\"\n ></mat-progress-bar>\n}\n\n@let iconsRegistered = registerIcons();\n\n<yuv-sidebar-nav class=\"shell-nav\">\n <button class=\"shell-nav__shell-logo-button\" routerLink=\"/\" routerLinkActive=\"active\" [attr.aria-label]=\"'yuv.shell.logo.aria.label' | translate\">\n @if (iconsRegistered) {\n <mat-icon svgIcon=\"shellIcons:app_logo\"></mat-icon>\n }\n </button>\n <ul class=\"shell-nav__nav-list\">\n @for (a of apps(); track a.path) {\n <li class=\"shell-nav__nav-list-item\">\n <button class=\"shell-nav__nav-list-item-button\" mat-icon-button routerLinkActive=\"active\" [routerLink]=\"a.path\" \n matTooltipPosition=\"after\"\n [matTooltip]=\"getAppTitle(a)\">\n @if (a.svgIcon) {\n @if (iconsRegistered) {\n <mat-icon [svgIcon]=\"'shellIcons:' + a.iconName\"></mat-icon>\n }\n } @else {\n <mat-icon>{{ a.iconName }}</mat-icon>\n }\n <!--@if (getNotifications(a.id)) {\n <div [ngClass]=\"'badge ' + getNotifications(a.id).maxLevel\">{{ getNotifications(a.id).count }}</div>\n }-->\n </button>\n </li>\n }\n </ul>\n <section class=\"shell-nav__actions\">\n @if (showNotifications()) {\n <button\n class=\"shell-nav__actions-button\"\n mat-icon-button\n [routerLink]=\"[{ outlets: { aside: 'notifications' } }]\"\n routerLinkActive=\"active\"\n matTooltipPosition=\"after\"\n [matTooltip]=\"'yuv.shell.notifications.title' | translate\"\n >\n <mat-icon>notifications</mat-icon>\n @if (newNotifications(); as note) {\n <div class=\"badge {{ note.maxLevel }}\">{{ note.count }}</div>\n }\n </button>\n }\n <button\n class=\"shell-nav__actions-button\"\n mat-icon-button\n [routerLink]=\"['/settings']\"\n routerLinkActive=\"active\"\n [matTooltip]=\"'yuv.shell.settings.title' | translate\"\n >\n <mat-icon>settings</mat-icon>\n </button>\n <button class=\"shell-nav__actions-button\" mat-icon-button (click)=\"appLogout()\" [matTooltip]=\"'yuv.shell.cmd.logout' | translate\">\n <mat-icon>power_settings_new</mat-icon>\n </button>\n </section>\n</yuv-sidebar-nav>\n\n<main id=\"main-shell_content\" aria-label=\"main shell content\" [inert]=\"asideOutlet.isActivated\">\n <router-outlet></router-outlet>\n</main>\n\n<!-- outlet for aside modals like notifications -->\n<div class=\"asideOutlet\" [hidden]=\"!asideOutlet.isActivated\">\n <router-outlet name=\"aside\" #asideOutlet=\"outlet\"></router-outlet>\n</div>\n\n<div id=\"fi\" inert></div>\n","import { CommonModule } from '@angular/common';\nimport { Component, input } from '@angular/core';\n\n@Component({\n selector: 'yuv-app-logo',\n standalone: true,\n imports: [CommonModule],\n templateUrl: './app-logo.component.html',\n styleUrl: './app-logo.component.scss'\n})\nexport class AppLogoComponent {\n icon = input<string>();\n label = input.required<string>();\n}\n","<span class=\"label\">{{label()}}</span>\n","import { CommonModule } from '@angular/common';\nimport { Component, inject, OnInit, signal } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { DmsObject, DmsService, TranslateModule, TranslateService } from '@yuuvis/client-core';\nimport { BusyOverlayDirective, ConfirmService, DialogComponent } from '@yuuvis/client-framework/common';\nimport { ListItemDirective } from '@yuuvis/client-framework/list';\nimport { FlavorChipComponent } from '@yuuvis/client-framework/object-flavor';\nimport { ObjectFlavor, ShellService } from '@yuuvis/client-shell-core';\nimport { YmtButtonDirective } from '@yuuvis/material';\nimport { of, switchMap, tap } from 'rxjs';\n\n@Component({\n selector: 'yuv-manage-flavors',\n standalone: true,\n imports: [\n CommonModule,\n BusyOverlayDirective,\n MatIconModule,\n MatTooltipModule,\n TranslateModule,\n ListItemDirective,\n FlavorChipComponent,\n DialogComponent,\n MatButtonModule,\n YmtButtonDirective\n ],\n templateUrl: './manage-flavors.component.html',\n styleUrl: './manage-flavors.component.scss'\n})\nexport class ManageFlavorsComponent implements OnInit {\n #shell = inject(ShellService);\n #dmsService = inject(DmsService);\n #dialogData = inject<any>(MAT_DIALOG_DATA);\n readonly #dialogRef = inject(MatDialogRef<ManageFlavorsComponent>);\n item: DmsObject = this.#dialogData;\n #confirm = inject(ConfirmService);\n private translate = inject(TranslateService);\n\n busy = signal<boolean>(false);\n\n appliedFlavors: ObjectFlavor[] = [];\n applicableFlavors: ObjectFlavor[] = [];\n\n applyFlavor(flavor: ObjectFlavor) {\n this.busy.set(true);\n this.#shell.triggerApplyObjectFlavor(this.item, flavor).subscribe(() => {\n this.#dialogRef.close();\n this.busy.set(false);\n });\n }\n\n removeFlavor(flavor: ObjectFlavor) {\n this.busy.set(true);\n this.#confirm\n .confirm({\n message: this.translate.instant('yuv.object-flavor.flavor.remove.confirm.message', {\n flavor: this.#shell.getFlavorLabel(flavor.id)\n })\n })\n .pipe(switchMap((confirmed: boolean) => (confirmed ? this.#shell.removeObjectFlavor(this.item, flavor) : of(undefined))))\n .subscribe((res) => {\n if (res !== undefined) this.#dialogRef.close();\n this.busy.set(false);\n });\n }\n\n #refreshDmsObject() {\n this.busy.set(true);\n this.#dmsService\n .getDmsObject(this.item.id)\n .pipe(\n tap((dmsObject) => {\n this.item = dmsObject;\n this.#getAppliedFlavors(this.item);\n })\n )\n .subscribe()\n .add(() => this.busy.set(false));\n }\n\n #getAppliedFlavors(dmsObject: DmsObject) {\n const res = this.#shell.getAppliedObjectFlavors(dmsObject);\n this.appliedFlavors = res.applied;\n this.applicableFlavors = res.applicable;\n }\n\n cancel() {\n this.#dialogRef.close();\n }\n\n ngOnInit() {\n this.#refreshDmsObject();\n }\n}\n","<yuv-dialog [headertitel]=\"'yuv.shell.action.manage-flavors.title' | translate\">\n <main [yuvBusyOverlay]=\"busy()\">\n <p>{{ 'yuv.shell.action.manage-flavors.text' | translate }}</p>\n @if (appliedFlavors.length) {\n <h3>{{ 'yuv.shell.action.manage-flavors.applied.headline' | translate }}</h3>\n <ul>\n @for (f of appliedFlavors; track $index) {\n <li>\n <yuv-flavor-chip [flavor]=\"f\" yuvListItem></yuv-flavor-chip>\n <button mat-icon-button [matTooltip]=\"'yuv.shell.action.manage-flavors.applicable.button.remove.tooltip' | translate\" (click)=\"removeFlavor(f)\">\n <mat-icon>delete_forever</mat-icon>\n </button>\n </li>\n }\n </ul>\n }\n @if (applicableFlavors.length) {\n <h3>{{ 'yuv.shell.action.manage-flavors.applicable.headline' | translate }}</h3>\n <ul>\n @for (f of applicableFlavors; track $index) {\n <li>\n <yuv-flavor-chip [flavor]=\"f\" yuvListItem></yuv-flavor-chip>\n <button mat-icon-button [matTooltip]=\"'yuv.shell.action.manage-flavors.applied.button.apply.tooltip' | translate\" (click)=\"applyFlavor(f)\">\n <mat-icon>add</mat-icon>\n </button>\n </li>\n }\n </ul>\n }\n </main>\n <footer>\n <button ymtButton=\"secondary\" (click)=\"cancel()\">{{ 'yuv.shell.action.manage-flavors.button.cancel' | translate }}</button>\n </footer>\n</yuv-dialog>\n","import { inject } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { DmsObject, SystemType, TranslateService } from '@yuuvis/client-core';\nimport { AbstractContextAction, Action, ACTION_ICON, ActionSupport, SelectionRange } from '@yuuvis/client-framework/actions';\nimport { ObjectFlavor, ShellService } from '@yuuvis/client-shell-core';\nimport { Observable, of } from 'rxjs';\nimport { ManageFlavorsComponent } from './manage-flavors.component';\n\nexport class ManageFlavorsAction extends AbstractContextAction implements Action {\n #shell = inject(ShellService);\n #dialog = inject(MatDialog);\n private translate = inject(TranslateService);\n\n id = 'yuv.base.manage-flavor';\n label = this.translate.instant('yuv.shell.action.manage-flavor.label');\n description = this.translate.instant('yuv.shell.action.manage-flavor.description');\n priority = 8;\n icon = ACTION_ICON.manageFlavor;\n group = 'common';\n range = SelectionRange.SINGLE_SELECT;\n supports: ActionSupport = {\n types: [SystemType.DOCUMENT]\n };\n\n isExecutable(items: DmsObject[]) {\n const item = items[0];\n if(!item) return of(false);\n const applicableFlavors: ObjectFlavor[] = item.isFolder\n ? this.#shell.getApplicableFolderFlavors()\n : item.content\n ? this.#shell.getApplicableDocumentFlavors(item.content.mimeType)\n : [];\n return of(item && !!item.permissions?.writeIndexData && applicableFlavors.length > 0);\n }\n\n run(items: DmsObject[]): Observable<boolean> {\n this.#dialog.open(ManageFlavorsComponent, {\n width: '400px',\n maxWidth: '90vw',\n data: items[0]\n });\n return of(true);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i5","i1","i2","i3","i4","switchMap","tap"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOa,cAAc,CAAA;AAKzB,IAAA,WAAA,GAAA;AAJQ,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC;AAElC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAU,KAAK,CAAC;QAG3B,MAAM,CA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,CAAC,WAAW,EAAE,cAAc,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC;;AAGvF,IAAA,GAAG,CAAC,KAAkB,EAAA;AACpB,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;AACxC,YAAA,KAAK,EAAE,OAAO;AACd,YAAA,QAAQ,EAAE,MAAM;AAChB,YAAA,IAAI,EAAE,KAAK,CAAC,CAAC;AACd,SAAA,CAAC;AACF,QAAA,OAAO,EAAE,CAAC,IAAI,CAAC;;AAElB;;AC3CD;;AAEG;;;;"}
@@ -1,5 +1,4 @@
1
1
  {
2
- "yuc.shell.settings.client.version": "Client-Version",
3
2
  "yuv.object-flavor.flavor.remove.confirm.message": "Möchten Sie den Typ '{{flavor}}' wirklich entfernen?",
4
3
  "yuv.shell.action.manage-flavor.description": "",
5
4
  "yuv.shell.action.manage-flavor.label": "Typen verwalten",
@@ -17,7 +16,14 @@
17
16
  "yuv.shell.notifications.button.remove.all": "Alle entfernen",
18
17
  "yuv.shell.notifications.empty": "Keine Benachrichtigungen",
19
18
  "yuv.shell.notifications.title": "Benachrichtigungen",
20
- "yuv.shell.settings.language": "Sprache",
19
+ "yuv.shell.settings.title": "Einstellungen",
20
+ "yuv.shell.settings.client.version": "Client-Version",
21
+ "yuv.shell.settings.user.email": "E-Mail",
21
22
  "yuv.shell.settings.tenant": "Mandant",
22
- "yuv.shell.settings.title": "Einstellungen"
23
- }
23
+ "yuv.shell.settings.language": "Sprache",
24
+ "yuv.shell.settings.about.title": "Über",
25
+ "yuv.shell.settings.dependency-info.title": "Lizenzhinweise",
26
+ "yuv.shell.settings.dependency-info.package": "Paket",
27
+ "yuv.shell.settings.dependency-info.version": "Version",
28
+ "yuv.shell.settings.dependency-info.license": "Lizenz"
29
+ }
@@ -1,5 +1,4 @@
1
1
  {
2
- "yuc.shell.settings.client.version": "Client version",
3
2
  "yuv.object-flavor.flavor.remove.confirm.message": "Do you really want to remove the type '{{flavor}}'?",
4
3
  "yuv.shell.action.manage-flavor.description": "",
5
4
  "yuv.shell.action.manage-flavor.label": "Manage types",
@@ -17,7 +16,14 @@
17
16
  "yuv.shell.notifications.button.remove.all": "Remove all",
18
17
  "yuv.shell.notifications.empty": "No notifications",
19
18
  "yuv.shell.notifications.title": "Notifications",
20
- "yuv.shell.settings.language": "Language",
19
+ "yuv.shell.settings.title": "Settings",
20
+ "yuv.shell.settings.client.version": "Client version",
21
+ "yuv.shell.settings.user.email": "E-Mail",
21
22
  "yuv.shell.settings.tenant": "Tenant",
22
- "yuv.shell.settings.title": "Settings"
23
- }
23
+ "yuv.shell.settings.language": "Language",
24
+ "yuv.shell.settings.about.title": "About",
25
+ "yuv.shell.settings.dependency-info.title": "Licensing notes",
26
+ "yuv.shell.settings.dependency-info.package": "Package",
27
+ "yuv.shell.settings.dependency-info.version": "Version",
28
+ "yuv.shell.settings.dependency-info.license": "License"
29
+ }
@@ -2,6 +2,25 @@ import { OnInit, Signal } from '@angular/core';
2
2
  import { SafeHtmlPipe, YuvUser } from '@yuuvis/client-core';
3
3
  import { App, ClientShellConfig, ShellNotificationLevel } from '@yuuvis/client-shell-core';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * Base component for the client shell application. In your apps
7
+ * app.component.ts you can use this component as a base component
8
+ * to provide the shell functionality.
9
+ *
10
+ * ```typescript
11
+ * @Component({
12
+ * standalone: true,
13
+ * imports: [ClientShellComponent],
14
+ * selector: 'yuv-root',
15
+ * template: `<yuv-client-shell [apps]="apps" [config]="shellConfig"></yuv-client-shell>`,
16
+ * styleUrl: './app.component.scss'
17
+ * })
18
+ * export class AppComponent {
19
+ * #featureService = inject(FeatureService);
20
+ * apps: App[] = this.#featureService.getAvailableApps(app);
21
+ * }
22
+ * ```
23
+ */
5
24
  export declare class ClientShellComponent implements OnInit {
6
25
  #private;
7
26
  private router;
@@ -3,6 +3,7 @@ import { TranslateService, YuvConfigLanguages, YuvUser } from '@yuuvis/client-co
3
3
  import { FormGroup } from '@angular/forms';
4
4
  import { ShellAppSettingProperty } from '@yuuvis/client-shell-core';
5
5
  import { Observable } from 'rxjs';
6
+ import { AboutData } from './settings.model';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class SettingsPageComponent implements OnInit {
8
9
  #private;
@@ -13,6 +14,7 @@ export declare class SettingsPageComponent implements OnInit {
13
14
  readonly document: Document;
14
15
  clientLocales: import("@angular/core").WritableSignal<YuvConfigLanguages[]>;
15
16
  clientVersion: import("@angular/core").WritableSignal<string | undefined>;
17
+ clientAboutData: import("@angular/core").WritableSignal<AboutData | undefined>;
16
18
  user: Signal<YuvUser | undefined>;
17
19
  appSettingForms$: Observable<{
18
20
  appID: string;
@@ -24,6 +26,7 @@ export declare class SettingsPageComponent implements OnInit {
24
26
  changeClientLocale(iso: string): void;
25
27
  toggleDarkMode(): void;
26
28
  ngOnInit(): void;
29
+ getAboutData(): void;
27
30
  static ɵfac: i0.ɵɵFactoryDeclaration<SettingsPageComponent, never>;
28
31
  static ɵcmp: i0.ɵɵComponentDeclaration<SettingsPageComponent, "yuv-settings", never, {}, {}, never, never, true, never>;
29
32
  }
@@ -0,0 +1,8 @@
1
+ export interface AboutData {
2
+ libraries?: AboutDataLibrary[];
3
+ }
4
+ export interface AboutDataLibrary {
5
+ name: string;
6
+ version: string;
7
+ license: string;
8
+ }
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@yuuvis/client-shell",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
7
7
  "@angular/common": "^19.2.1",
8
8
  "@angular/core": "^19.2.1",
9
9
  "@angular/service-worker": "^19.2.1",
10
- "@yuuvis/client-core": "^2.0.3",
11
- "@yuuvis/client-shell-core": "^2.0.3"
10
+ "@yuuvis/client-core": "^2.0.5",
11
+ "@yuuvis/client-shell-core": "^2.0.5"
12
12
  },
13
13
  "dependencies": {
14
- "@yuuvis/client-framework": "2.0.3",
14
+ "@yuuvis/client-framework": "2.0.5",
15
15
  "tslib": "^2.3.0"
16
16
  },
17
17
  "sideEffects": false,
@@ -1,84 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, signal, Component } from '@angular/core';
3
- import { toSignal } from '@angular/core/rxjs-interop';
4
- import * as i2 from '@yuuvis/client-core';
5
- import { UserService, ConfigService, TranslateService, AppCacheService, TranslateModule } from '@yuuvis/client-core';
6
- import * as i1 from '@angular/common';
7
- import { DOCUMENT, CommonModule } from '@angular/common';
8
- import { FormBuilder, ReactiveFormsModule } from '@angular/forms';
9
- import { ShellService } from '@yuuvis/client-shell-core';
10
- import { map } from 'rxjs';
11
- import { MatSelectModule } from '@angular/material/select';
12
- import { MatButtonToggleGroup, MatButtonToggle } from '@angular/material/button-toggle';
13
-
14
- class SettingsPageComponent {
15
- constructor() {
16
- this.userService = inject(UserService);
17
- this.config = inject(ConfigService);
18
- this.translate = inject(TranslateService);
19
- this.shell = inject(ShellService);
20
- this.document = inject(DOCUMENT);
21
- this.#appCache = inject(AppCacheService);
22
- this.#fb = inject(FormBuilder);
23
- this.clientLocales = signal([]);
24
- this.clientVersion = signal(undefined);
25
- this.user = toSignal(this.userService.user$);
26
- this.appSettingForms$ = this.shell.appSettings$.pipe(map((settings) => settings.map((e) => {
27
- const x = {};
28
- const fcn = e.properties.map((p) => ({
29
- label: this.translate.instant(p.label) || p.label,
30
- name: p.name,
31
- type: p.type
32
- }));
33
- e.properties.forEach((p) => {
34
- x[p.name] = [p.value];
35
- });
36
- return {
37
- appID: e.appID,
38
- label: e.label,
39
- formControls: fcn,
40
- form: this.#fb.group(x)
41
- };
42
- })));
43
- }
44
- #appCache;
45
- #fb;
46
- saveAppSettings(appID, form) {
47
- this.userService
48
- .saveUserSettings({
49
- clientAppSettings: {
50
- [appID]: form.value
51
- }
52
- })
53
- .subscribe({
54
- next: () => {
55
- form.markAsPristine();
56
- },
57
- error: (err) => {
58
- console.error('Error saving app settings', err);
59
- }
60
- });
61
- }
62
- changeClientLocale(iso) {
63
- this.userService.changeClientLocale(iso);
64
- }
65
- toggleDarkMode() {
66
- const root = document.getElementsByTagName('body')[0];
67
- root.classList.toggle('dark');
68
- }
69
- ngOnInit() {
70
- this.clientVersion.set(this.document.body.getAttribute('data-version') ?? 'dev');
71
- this.clientLocales.set(this.config.getClientLocales());
72
- }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: SettingsPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
74
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.12", type: SettingsPageComponent, isStandalone: true, selector: "yuv-settings", ngImport: i0, template: "<header>\n <h1>{{ 'yuv.shell.settings.title' | translate }}</h1>\n <span class=\"subhead\">{{ 'yuc.shell.settings.client.version' | translate }}: {{ clientVersion() }}</span>\n</header>\n\n\n<main>@if (user()) {\n <section class=\"user\">\n <!-- <yuv-user-avatar class=\"background\" [user]=\"user()\"></yuv-user-avatar> -->\n <div class=\"user\">\n <div class=\"meta uname\">{{ user()!.username }}</div>\n <h2>{{ user()!.title }}</h2>\n <div class=\"meta uemail\">{{ user()!.email }}</div>\n <div class=\"meta utenant\">{{ 'yuv.shell.settings.tenant' | translate }}: {{ user()!.tenant }}</div>\n </div>\n </section>\n}\n <!-- language -->\n <section yuvOfflineDisabled>\n <div class=\"label\" translate>yuv.shell.settings.language</div>\n <div class=\"value\">\n <mat-button-toggle-group name=\"language\" hideSingleSelectionIndicator=\"true\" [attr.aria-label]=\"'yuv.shell.settings.language' | translate\" >\n @for (locale of clientLocales(); track locale.iso) {\n <mat-button-toggle value=\"{{ locale.label }}\" class=\"toggle-button\" (click)=\"changeClientLocale(locale.iso)\" [ngClass]=\"{ active: translate.currentLang === locale.iso }\" [checked]=\"translate.currentLang === locale.iso\">{{ locale.label }}</mat-button-toggle>\n }\n </mat-button-toggle-group>\n </div>\n </section>\n\n <!-- app settings -->\n <!-- TODO: activate one feature is refined -->\n <!-- @for (c of appSettingForms$ | async; track $index) {\n <section>\n {{ c.label }}\n <form [formGroup]=\"c.form\" (ngSubmit)=\"saveAppSettings(c.appID, c.form)\">\n @for (n of c.formControls; track $index) {\n <label\n >{{ n.label }}\n\n @switch (n.type) {\n @case ('string') {\n <input type=\"text\" [formControlName]=\"n.name\" />\n }\n @case ('number') {\n <input type=\"number\" [formControlName]=\"n.name\" />\n }\n }\n </label>\n }\n <button [ngClass]=\"{ hideen: c.form.untouched }\" [disabled]=\"c.form.invalid\">Save</button>\n </form>\n </section>\n } -->\n</main>\n", styles: [":host{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:\"header\" \"settings\";height:100%;overflow:hidden;overflow-y:auto}:host header{grid-area:header;padding:var(--ymt-spacing-3xl)}:host header h1{margin:0}:host header subhead{font:var(--ymt-font-subhead);color:var(--ymt-text-color-subtle)}:host main{grid-area:settings;padding:var(--ymt-spacing-m);overflow-y:auto}:host main section{display:flex;flex-flow:column;padding:var(--ymt-spacing-m)}:host main section .label{margin-block-end:1em}:host main section .value{display:inline-block}:host main section.user h2{margin:0 0 1rem}:host .toggle-button.active{background-color:var(--ymt-primary);color:var(--ymt-on-primary);pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "directive", type: i2.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }] }); }
75
- }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: SettingsPageComponent, decorators: [{
77
- type: Component,
78
- args: [{ selector: 'yuv-settings', standalone: true, imports: [CommonModule, TranslateModule,
79
- MatSelectModule,
80
- ReactiveFormsModule, MatButtonToggleGroup, MatButtonToggle], template: "<header>\n <h1>{{ 'yuv.shell.settings.title' | translate }}</h1>\n <span class=\"subhead\">{{ 'yuc.shell.settings.client.version' | translate }}: {{ clientVersion() }}</span>\n</header>\n\n\n<main>@if (user()) {\n <section class=\"user\">\n <!-- <yuv-user-avatar class=\"background\" [user]=\"user()\"></yuv-user-avatar> -->\n <div class=\"user\">\n <div class=\"meta uname\">{{ user()!.username }}</div>\n <h2>{{ user()!.title }}</h2>\n <div class=\"meta uemail\">{{ user()!.email }}</div>\n <div class=\"meta utenant\">{{ 'yuv.shell.settings.tenant' | translate }}: {{ user()!.tenant }}</div>\n </div>\n </section>\n}\n <!-- language -->\n <section yuvOfflineDisabled>\n <div class=\"label\" translate>yuv.shell.settings.language</div>\n <div class=\"value\">\n <mat-button-toggle-group name=\"language\" hideSingleSelectionIndicator=\"true\" [attr.aria-label]=\"'yuv.shell.settings.language' | translate\" >\n @for (locale of clientLocales(); track locale.iso) {\n <mat-button-toggle value=\"{{ locale.label }}\" class=\"toggle-button\" (click)=\"changeClientLocale(locale.iso)\" [ngClass]=\"{ active: translate.currentLang === locale.iso }\" [checked]=\"translate.currentLang === locale.iso\">{{ locale.label }}</mat-button-toggle>\n }\n </mat-button-toggle-group>\n </div>\n </section>\n\n <!-- app settings -->\n <!-- TODO: activate one feature is refined -->\n <!-- @for (c of appSettingForms$ | async; track $index) {\n <section>\n {{ c.label }}\n <form [formGroup]=\"c.form\" (ngSubmit)=\"saveAppSettings(c.appID, c.form)\">\n @for (n of c.formControls; track $index) {\n <label\n >{{ n.label }}\n\n @switch (n.type) {\n @case ('string') {\n <input type=\"text\" [formControlName]=\"n.name\" />\n }\n @case ('number') {\n <input type=\"number\" [formControlName]=\"n.name\" />\n }\n }\n </label>\n }\n <button [ngClass]=\"{ hideen: c.form.untouched }\" [disabled]=\"c.form.invalid\">Save</button>\n </form>\n </section>\n } -->\n</main>\n", styles: [":host{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:\"header\" \"settings\";height:100%;overflow:hidden;overflow-y:auto}:host header{grid-area:header;padding:var(--ymt-spacing-3xl)}:host header h1{margin:0}:host header subhead{font:var(--ymt-font-subhead);color:var(--ymt-text-color-subtle)}:host main{grid-area:settings;padding:var(--ymt-spacing-m);overflow-y:auto}:host main section{display:flex;flex-flow:column;padding:var(--ymt-spacing-m)}:host main section .label{margin-block-end:1em}:host main section .value{display:inline-block}:host main section.user h2{margin:0 0 1rem}:host .toggle-button.active{background-color:var(--ymt-primary);color:var(--ymt-on-primary);pointer-events:none}\n"] }]
81
- }] });
82
-
83
- export { SettingsPageComponent };
84
- //# sourceMappingURL=yuuvis-client-shell-settings.component-C_TUScRF.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"yuuvis-client-shell-settings.component-C_TUScRF.mjs","sources":["../../../../../libs/yuuvis/client-shell/src/lib/pages/settings/settings.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/pages/settings/settings.component.html"],"sourcesContent":["import { Component, inject, OnInit, Signal, signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { AppCacheService, ConfigService, TranslateModule, TranslateService, UserService, YuvConfigLanguages, YuvUser } from '@yuuvis/client-core';\n\nimport { CommonModule, DOCUMENT } from '@angular/common';\nimport { FormBuilder, FormGroup, ReactiveFormsModule } from '@angular/forms';\nimport { ShellAppSettingProperty, ShellAppSettings, ShellService } from '@yuuvis/client-shell-core';\nimport { map, Observable } from 'rxjs';\nimport {MatSelectModule} from '@angular/material/select';\nimport { MatButtonToggle, MatButtonToggleGroup } from '@angular/material/button-toggle';\n\n@Component({\n selector: 'yuv-settings',\n standalone: true,\n imports: [CommonModule, TranslateModule,\n MatSelectModule,\n ReactiveFormsModule, MatButtonToggleGroup, MatButtonToggle],\n templateUrl: './settings.component.html',\n styleUrls: ['./settings.component.scss']\n})\nexport class SettingsPageComponent implements OnInit {\n private userService = inject(UserService);\n private config = inject(ConfigService);\n public translate = inject(TranslateService);\n private shell = inject(ShellService);\n readonly document = inject(DOCUMENT);\n #appCache = inject(AppCacheService);\n\n #fb = inject(FormBuilder);\n\n clientLocales = signal<YuvConfigLanguages[]>([]);\n clientVersion = signal<string | undefined>(undefined);\n user: Signal<YuvUser | undefined> = toSignal(this.userService.user$);\n appSettingForms$: Observable<\n {\n appID: string;\n label: string;\n formControls: ShellAppSettingProperty[];\n form: FormGroup;\n }[]\n > = this.shell.appSettings$.pipe(\n map((settings: ShellAppSettings[]) =>\n settings.map((e) => {\n const x: any = {};\n const fcn: ShellAppSettingProperty[] = e.properties.map((p) => ({\n label: this.translate.instant(p.label) || p.label,\n name: p.name,\n type: p.type\n }));\n e.properties.forEach((p) => {\n x[p.name] = [p.value];\n });\n return {\n appID: e.appID,\n label: e.label,\n formControls: fcn,\n form: this.#fb.group(x)\n };\n })\n )\n );\n\n saveAppSettings(appID: string, form: FormGroup) {\n this.userService\n .saveUserSettings({\n clientAppSettings: {\n [appID]: form.value\n }\n })\n .subscribe({\n next: () => {\n form.markAsPristine();\n },\n error: (err) => {\n console.error('Error saving app settings', err);\n }\n });\n }\n\n changeClientLocale(iso: string) {\n this.userService.changeClientLocale(iso);\n }\n\n toggleDarkMode() {\n const root = document.getElementsByTagName('body')[0];\n root.classList.toggle('dark'); \n }\n\n ngOnInit(): void {\n this.clientVersion.set(this.document.body.getAttribute('data-version') ?? 'dev');\n this.clientLocales.set(this.config.getClientLocales());\n }\n}\n","<header>\n <h1>{{ 'yuv.shell.settings.title' | translate }}</h1>\n <span class=\"subhead\">{{ 'yuc.shell.settings.client.version' | translate }}: {{ clientVersion() }}</span>\n</header>\n\n\n<main>@if (user()) {\n <section class=\"user\">\n <!-- <yuv-user-avatar class=\"background\" [user]=\"user()\"></yuv-user-avatar> -->\n <div class=\"user\">\n <div class=\"meta uname\">{{ user()!.username }}</div>\n <h2>{{ user()!.title }}</h2>\n <div class=\"meta uemail\">{{ user()!.email }}</div>\n <div class=\"meta utenant\">{{ 'yuv.shell.settings.tenant' | translate }}: {{ user()!.tenant }}</div>\n </div>\n </section>\n}\n <!-- language -->\n <section yuvOfflineDisabled>\n <div class=\"label\" translate>yuv.shell.settings.language</div>\n <div class=\"value\">\n <mat-button-toggle-group name=\"language\" hideSingleSelectionIndicator=\"true\" [attr.aria-label]=\"'yuv.shell.settings.language' | translate\" >\n @for (locale of clientLocales(); track locale.iso) {\n <mat-button-toggle value=\"{{ locale.label }}\" class=\"toggle-button\" (click)=\"changeClientLocale(locale.iso)\" [ngClass]=\"{ active: translate.currentLang === locale.iso }\" [checked]=\"translate.currentLang === locale.iso\">{{ locale.label }}</mat-button-toggle>\n }\n </mat-button-toggle-group>\n </div>\n </section>\n\n <!-- app settings -->\n <!-- TODO: activate one feature is refined -->\n <!-- @for (c of appSettingForms$ | async; track $index) {\n <section>\n {{ c.label }}\n <form [formGroup]=\"c.form\" (ngSubmit)=\"saveAppSettings(c.appID, c.form)\">\n @for (n of c.formControls; track $index) {\n <label\n >{{ n.label }}\n\n @switch (n.type) {\n @case ('string') {\n <input type=\"text\" [formControlName]=\"n.name\" />\n }\n @case ('number') {\n <input type=\"number\" [formControlName]=\"n.name\" />\n }\n }\n </label>\n }\n <button [ngClass]=\"{ hideen: c.form.untouched }\" [disabled]=\"c.form.invalid\">Save</button>\n </form>\n </section>\n } -->\n</main>\n"],"names":[],"mappings":";;;;;;;;;;;;;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