@yuuvis/client-shell 3.22.1 → 3.24.0
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.
- package/admin/README.md +87 -0
- package/fesm2022/yuuvis-client-shell-admin.mjs +180 -0
- package/fesm2022/yuuvis-client-shell-admin.mjs.map +1 -0
- package/fesm2022/yuuvis-client-shell.mjs +42 -4
- package/fesm2022/yuuvis-client-shell.mjs.map +1 -1
- package/lib/assets/i18n/de.json +30 -0
- package/lib/assets/i18n/en.json +30 -0
- package/package.json +8 -4
- package/types/yuuvis-client-shell-admin.d.ts +58 -0
- package/types/yuuvis-client-shell.d.ts +28 -2
package/admin/README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# @yuuvis/client-shell/admin
|
|
2
|
+
|
|
3
|
+
Secondary entry point of `@yuuvis/client-shell`. It hosts reusable, presentation-only
|
|
4
|
+
components for administrative tasks. Import from:
|
|
5
|
+
|
|
6
|
+
```ts
|
|
7
|
+
import { ThemeAdminComponent, ThemeAdminChange } from '@yuuvis/client-shell/admin';
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
The components here are deliberately **dumb**: they render an editing surface and emit the edited value. They do **not** persist, live-apply, or otherwise own the data — the host decides what to do with each emission. This keeps them reusable across different shells and hosting pages.
|
|
11
|
+
|
|
12
|
+
## Components
|
|
13
|
+
|
|
14
|
+
### `ThemeAdminComponent` (`yuv-theme-admin`)
|
|
15
|
+
|
|
16
|
+
A form for editing the shell theming configuration ([`ClientShellTheming`](../../client-shell-core/src/lib/services/shell-theming/shell-theming.interface.ts)):
|
|
17
|
+
primary/source color, brand and on-brand colors, and the app icon (SVG markup,
|
|
18
|
+
with an upload picker and live preview).
|
|
19
|
+
|
|
20
|
+
| API | Type | Description |
|
|
21
|
+
| ------------- | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
22
|
+
| `theme` | `input<ClientShellTheming>()` | The persisted configuration the form is (re)initialized from. Re-feed a new object to reset the form (e.g. after save/remove). |
|
|
23
|
+
| `themeChange` | `output<ThemeAdminChange>()` | Emitted (debounced) on every edit, carrying `{ config, valid, dirty }`. |
|
|
24
|
+
|
|
25
|
+
`ThemeAdminChange`:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
interface ThemeAdminChange {
|
|
29
|
+
config: ClientShellTheming; // current config reflected by the form
|
|
30
|
+
valid: boolean; // form validity
|
|
31
|
+
dirty: boolean; // has unsaved edits relative to the last `theme` input
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Dependencies: `ShellService` (for the file picker used by the icon upload). It does
|
|
36
|
+
**not** depend on `ShellThemingService` — applying and persisting are the host's job.
|
|
37
|
+
|
|
38
|
+
#### Usage
|
|
39
|
+
|
|
40
|
+
The host owns the surrounding chrome (e.g. a pane with save/reset/remove buttons)
|
|
41
|
+
and the persistence. It feeds the persisted config in and reacts to emissions:
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
@Component({
|
|
45
|
+
imports: [ThemeAdminComponent /* ... */],
|
|
46
|
+
template: `
|
|
47
|
+
<yuv-theme-admin [theme]="persisted()" (themeChange)="onThemeChange($event)" />
|
|
48
|
+
|
|
49
|
+
<button [disabled]="!state().dirty" (click)="reset()">Reset</button>
|
|
50
|
+
<button [disabled]="!state().valid || !state().dirty" (click)="save()">Save</button>
|
|
51
|
+
`
|
|
52
|
+
})
|
|
53
|
+
export class ThemePageComponent {
|
|
54
|
+
#theming = inject(ShellThemingService);
|
|
55
|
+
|
|
56
|
+
persisted = signal<ClientShellTheming>({ ...(this.#theming.getThemingConfig() || {}) });
|
|
57
|
+
state = signal<ThemeAdminChange>({ config: {}, valid: true, dirty: false });
|
|
58
|
+
|
|
59
|
+
onThemeChange(change: ThemeAdminChange): void {
|
|
60
|
+
this.state.set(change);
|
|
61
|
+
this.#theming.apply(change.config); // live preview, not persisted
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
save(): void {
|
|
65
|
+
const config = this.state().config;
|
|
66
|
+
this.#theming.save(config).subscribe(() => this.persisted.set({ ...config }));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
reset(): void {
|
|
70
|
+
// re-feed the persisted config; the editor resets to pristine
|
|
71
|
+
this.persisted.set({ ...(this.#theming.getThemingConfig() || {}) });
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Reset/remove work by re-feeding `theme` with a **new object reference** — the
|
|
77
|
+
component reacts to the input change and resets its form to a pristine state,
|
|
78
|
+
then emits a fresh `ThemeAdminChange` so the host's button state stays in sync.
|
|
79
|
+
|
|
80
|
+
An end-to-end integration lives in the shell-admin theme page
|
|
81
|
+
([`theme.component.ts`](../../../apps/shell-admin/src/lib/pages/theme/theme.component.ts)).
|
|
82
|
+
|
|
83
|
+
## i18n
|
|
84
|
+
|
|
85
|
+
Translation keys for the components in this entry point live in the parent library's
|
|
86
|
+
assets under the `yuv.shell.admin.*` namespace
|
|
87
|
+
([`libs/yuuvis/client-shell/src/assets/i18n`](../src/assets/i18n)).
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, DestroyRef, input, output, signal, computed, effect, Component } from '@angular/core';
|
|
4
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
5
|
+
import * as i1 from '@angular/forms';
|
|
6
|
+
import { FormBuilder, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
+
import * as i5 from '@angular/material/button-toggle';
|
|
8
|
+
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
9
|
+
import * as i2 from '@angular/material/form-field';
|
|
10
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
11
|
+
import * as i3 from '@angular/material/input';
|
|
12
|
+
import { MatInputModule } from '@angular/material/input';
|
|
13
|
+
import * as i4 from '@angular/material/slider';
|
|
14
|
+
import { MatSliderModule } from '@angular/material/slider';
|
|
15
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
16
|
+
import * as i6 from '@ngx-translate/core';
|
|
17
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
18
|
+
import { ThemeService, HIGH_CONTRAST_THEME_KEY } from '@yuuvis/client-framework/common';
|
|
19
|
+
import { ColorComponent } from '@yuuvis/client-framework/forms';
|
|
20
|
+
import { ShellService } from '@yuuvis/client-shell-core';
|
|
21
|
+
import { YmtButtonDirective } from '@yuuvis/material';
|
|
22
|
+
import { debounceTime } from 'rxjs';
|
|
23
|
+
|
|
24
|
+
/** Maximum inner offset (percent) the app icon can be inset within its frame. */
|
|
25
|
+
const MAX_ICON_OFFSET = 25;
|
|
26
|
+
/**
|
|
27
|
+
* Reusable form for editing the shell theming configuration (primary/brand colors
|
|
28
|
+
* and app icon). It is a pure editor: it neither persists nor live-applies the
|
|
29
|
+
* theme. It reflects the `theme` input into a form and emits a {@link ThemeAdminChange}
|
|
30
|
+
* on every edit — the host decides what to do with it (preview, persist, ...).
|
|
31
|
+
*/
|
|
32
|
+
class ThemeAdminComponent {
|
|
33
|
+
#fb;
|
|
34
|
+
#sanitizer;
|
|
35
|
+
#shell;
|
|
36
|
+
#theme;
|
|
37
|
+
#dRef;
|
|
38
|
+
/** OS-level high-contrast preferences (reactive via media-query listeners). */
|
|
39
|
+
#prefersContrast;
|
|
40
|
+
#forcedColors;
|
|
41
|
+
constructor() {
|
|
42
|
+
this.#fb = inject(FormBuilder);
|
|
43
|
+
this.#sanitizer = inject(DomSanitizer);
|
|
44
|
+
this.#shell = inject(ShellService);
|
|
45
|
+
this.#theme = inject(ThemeService);
|
|
46
|
+
this.#dRef = inject(DestroyRef);
|
|
47
|
+
/** The persisted/applied theming configuration the form is (re)initialized from. */
|
|
48
|
+
this.theme = input(...(ngDevMode ? [undefined, { debugName: "theme" }] : /* istanbul ignore next */ []));
|
|
49
|
+
/** Emitted (debounced) whenever the form changes, carrying the config and its state. */
|
|
50
|
+
this.themeChange = output();
|
|
51
|
+
/** Forced color-scheme for the primary preview only — lets the admin inspect their
|
|
52
|
+
* color choices in light and dark without changing the global app mode. */
|
|
53
|
+
this.previewMode = signal('light', ...(ngDevMode ? [{ debugName: "previewMode" }] : /* istanbul ignore next */ []));
|
|
54
|
+
/** OS-level high-contrast preferences (reactive via media-query listeners). */
|
|
55
|
+
this.#prefersContrast = signal(false, ...(ngDevMode ? [{ debugName: "#prefersContrast" }] : /* istanbul ignore next */ []));
|
|
56
|
+
this.#forcedColors = signal(false, ...(ngDevMode ? [{ debugName: "#forcedColors" }] : /* istanbul ignore next */ []));
|
|
57
|
+
/**
|
|
58
|
+
* True while any high-contrast theme is active (manually selected or OS-driven).
|
|
59
|
+
* In HC the source color is ignored — the theme hard-codes its own WCAG-tuned
|
|
60
|
+
* palette — so the light/dark preview toggle is disabled and its forced
|
|
61
|
+
* color-scheme yields to HC (see the SCSS overrides).
|
|
62
|
+
*/
|
|
63
|
+
this.isHighContrast = computed(() => this.#theme.currentTheme() === HIGH_CONTRAST_THEME_KEY || this.#prefersContrast() || this.#forcedColors(), ...(ngDevMode ? [{ debugName: "isHighContrast" }] : /* istanbul ignore next */ []));
|
|
64
|
+
this.iconError = signal(null, ...(ngDevMode ? [{ debugName: "iconError" }] : /* istanbul ignore next */ []));
|
|
65
|
+
this.iconPreview = signal(null, ...(ngDevMode ? [{ debugName: "iconPreview" }] : /* istanbul ignore next */ []));
|
|
66
|
+
/** current inner offset (percent), mirrored from the form to drive the live preview padding */
|
|
67
|
+
this.iconOffset = signal(0, ...(ngDevMode ? [{ debugName: "iconOffset" }] : /* istanbul ignore next */ []));
|
|
68
|
+
this.maxIconOffset = MAX_ICON_OFFSET;
|
|
69
|
+
this.themeForm = this.#fb.group({
|
|
70
|
+
sourceColor: [''],
|
|
71
|
+
brandColor: [''],
|
|
72
|
+
onBrandColor: [''],
|
|
73
|
+
appIcon: [''],
|
|
74
|
+
appIconOffset: [0]
|
|
75
|
+
});
|
|
76
|
+
// track OS high-contrast preferences so the preview toggle can defer to HC (which
|
|
77
|
+
// owns the palette). matchMedia is guarded for non-browser/legacy environments.
|
|
78
|
+
if (typeof window !== 'undefined' && window.matchMedia) {
|
|
79
|
+
const contrast = window.matchMedia('(prefers-contrast: more)');
|
|
80
|
+
const forced = window.matchMedia('(forced-colors: active)');
|
|
81
|
+
this.#prefersContrast.set(contrast.matches);
|
|
82
|
+
this.#forcedColors.set(forced.matches);
|
|
83
|
+
const onContrast = (e) => this.#prefersContrast.set(e.matches);
|
|
84
|
+
const onForced = (e) => this.#forcedColors.set(e.matches);
|
|
85
|
+
contrast.addEventListener('change', onContrast);
|
|
86
|
+
forced.addEventListener('change', onForced);
|
|
87
|
+
this.#dRef.onDestroy(() => {
|
|
88
|
+
contrast.removeEventListener('change', onContrast);
|
|
89
|
+
forced.removeEventListener('change', onForced);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
// (re)initialize the form whenever a new configuration is fed in. This drives
|
|
93
|
+
// both the initial load and host-triggered reset/remove: the host re-feeds
|
|
94
|
+
// `theme` and the form reflects it as pristine.
|
|
95
|
+
effect(() => {
|
|
96
|
+
const config = this.theme() || {};
|
|
97
|
+
this.themeForm.reset({
|
|
98
|
+
sourceColor: config.sourceColor || '',
|
|
99
|
+
brandColor: config.brandColor || '',
|
|
100
|
+
onBrandColor: config.onBrandColor || '',
|
|
101
|
+
appIcon: config.appIcon || '',
|
|
102
|
+
appIconOffset: config.appIconOffset || 0
|
|
103
|
+
}, { emitEvent: false });
|
|
104
|
+
this.iconError.set(null);
|
|
105
|
+
this.iconOffset.set(config.appIconOffset || 0);
|
|
106
|
+
this.#renderIconPreview(config.appIcon);
|
|
107
|
+
// reset() with emitEvent:false does not fire valueChanges, so emit the
|
|
108
|
+
// pristine state explicitly to keep the host in sync.
|
|
109
|
+
this.#emit();
|
|
110
|
+
});
|
|
111
|
+
// update the offset signal without debounce so the preview tracks the slider live
|
|
112
|
+
this.themeForm.controls.appIconOffset.valueChanges.pipe(takeUntilDestroyed(this.#dRef)).subscribe((value) => this.iconOffset.set(value || 0));
|
|
113
|
+
this.themeForm.valueChanges.pipe(debounceTime(150), takeUntilDestroyed(this.#dRef)).subscribe(() => {
|
|
114
|
+
this.#renderIconPreview(this.themeForm.controls.appIcon.value);
|
|
115
|
+
this.#emit();
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/** open a file picker for an SVG file and load its markup into the app-icon field */
|
|
119
|
+
uploadIcon() {
|
|
120
|
+
this.#shell.pickFile().subscribe((file) => {
|
|
121
|
+
if (!file)
|
|
122
|
+
return;
|
|
123
|
+
if (file.type !== 'image/svg+xml' && !file.name.toLowerCase().endsWith('.svg')) {
|
|
124
|
+
this.iconError.set('yuv.shell.admin.theme.icon.error.type');
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
file
|
|
128
|
+
.text()
|
|
129
|
+
.then((text) => {
|
|
130
|
+
this.iconError.set(null);
|
|
131
|
+
this.themeForm.controls.appIcon.setValue(text);
|
|
132
|
+
this.themeForm.markAsDirty();
|
|
133
|
+
})
|
|
134
|
+
.catch(() => this.iconError.set('yuv.shell.admin.theme.icon.error.read'));
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
#emit() {
|
|
138
|
+
this.themeChange.emit({
|
|
139
|
+
config: this.#formToTheming(),
|
|
140
|
+
valid: this.themeForm.valid,
|
|
141
|
+
dirty: this.themeForm.dirty
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
#formToTheming() {
|
|
145
|
+
const v = this.themeForm.value;
|
|
146
|
+
return {
|
|
147
|
+
sourceColor: v.sourceColor || undefined,
|
|
148
|
+
brandColor: v.brandColor || undefined,
|
|
149
|
+
onBrandColor: v.onBrandColor || undefined,
|
|
150
|
+
appIcon: v.appIcon || undefined,
|
|
151
|
+
appIconOffset: v.appIconOffset || undefined
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
#renderIconPreview(svg) {
|
|
155
|
+
this.iconPreview.set(svg ? this.#sanitizer.bypassSecurityTrustHtml(svg) : null);
|
|
156
|
+
}
|
|
157
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: ThemeAdminComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
158
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.20", type: ThemeAdminComponent, isStandalone: true, selector: "yuv-theme-admin", inputs: { theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { themeChange: "themeChange" }, ngImport: i0, template: "<form [formGroup]=\"themeForm\" class=\"theme-form\">\n <section class=\"theme-form__section\">\n <h2>{{ 'yuv.shell.admin.theme.section.primary.headline' | translate }}</h2>\n <p>{{ 'yuv.shell.admin.theme.section.primary.description' | translate }}</p>\n\n <mat-form-field>\n <mat-label>{{ 'yuv.shell.admin.theme.section.primary.label' | translate }}</mat-label>\n <yuv-color formControlName=\"sourceColor\"></yuv-color>\n </mat-form-field>\n\n <div class=\"theme-form__preview\">\n <div class=\"theme-form__preview-head\">\n <span class=\"theme-form__preview-label\">{{ 'yuv.shell.admin.theme.section.primary.preview' | translate }}</span>\n\n <mat-button-toggle-group\n name=\"previewMode\"\n hideSingleSelectionIndicator\n [value]=\"previewMode()\"\n [disabled]=\"isHighContrast()\"\n (change)=\"previewMode.set($event.value)\"\n [attr.aria-label]=\"'yuv.shell.admin.theme.section.primary.preview.mode' | translate\"\n >\n <mat-button-toggle value=\"light\">{{ 'yuv.shell.admin.theme.section.primary.preview.mode.light' | translate }}</mat-button-toggle>\n <mat-button-toggle value=\"dark\">{{ 'yuv.shell.admin.theme.section.primary.preview.mode.dark' | translate }}</mat-button-toggle>\n </mat-button-toggle-group>\n </div>\n\n @if (isHighContrast()) {\n <p class=\"theme-form__preview-note\">{{ 'yuv.shell.admin.theme.section.primary.preview.hc-note' | translate }}</p>\n }\n\n <div class=\"theme-form__preview-body\" [attr.data-preview-mode]=\"previewMode()\" aria-hidden=\"true\">\n <div class=\"theme-form__preview-buttons\">\n <button ymtButton=\"primary\" type=\"button\">{{ 'yuv.shell.admin.theme.section.primary.preview.button.primary' | translate }}</button>\n <button ymtButton=\"secondary\" type=\"button\">{{ 'yuv.shell.admin.theme.section.primary.preview.button.secondary' | translate }}</button>\n <button ymtButton=\"tertiary\" type=\"button\">{{ 'yuv.shell.admin.theme.section.primary.preview.button.tertiary' | translate }}</button>\n </div>\n\n <div class=\"theme-form__swatches\">\n <span class=\"theme-form__swatch primary\">{{ 'yuv.shell.admin.theme.section.primary.preview.swatch.primary' | translate }}</span>\n <span class=\"theme-form__swatch primary-container\">\n {{ 'yuv.shell.admin.theme.section.primary.preview.swatch.container' | translate }}\n </span>\n </div>\n </div>\n </div>\n </section>\n\n <section class=\"theme-form__section\">\n <h2>{{ 'yuv.shell.admin.theme.section.brand.headline' | translate }}</h2>\n <p>{{ 'yuv.shell.admin.theme.section.brand.description' | translate }}</p>\n\n <div class=\"theme-form__row branding\">\n <div class=\"inputs\">\n <mat-form-field>\n <mat-label>{{ 'yuv.shell.admin.theme.section.brand.label' | translate }}</mat-label>\n <yuv-color formControlName=\"brandColor\"></yuv-color>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{ 'yuv.shell.admin.theme.section.on-brand.label' | translate }}</mat-label>\n <yuv-color formControlName=\"onBrandColor\"></yuv-color>\n </mat-form-field>\n </div>\n <div class=\"brand\">Brand</div>\n </div>\n </section>\n\n <section class=\"theme-form__section\">\n <h2>{{ 'yuv.shell.admin.theme.section.icon.headline' | translate }}</h2>\n <p>{{ 'yuv.shell.admin.theme.section.icon.description' | translate }}</p>\n\n <div class=\"theme-form__icon\">\n <span class=\"theme-form__icon-preview\">\n @if (iconPreview()) {\n <span\n class=\"theme-form__icon-preview-inner\"\n [style.padding.%]=\"iconOffset()\"\n [innerHTML]=\"iconPreview()\"\n ></span>\n }\n </span>\n <button ymtButton=\"secondary\" type=\"button\" (click)=\"uploadIcon()\">\n {{ 'yuv.shell.admin.theme.section.icon.upload' | translate }}\n </button>\n @if (iconError(); as err) {\n <p class=\"theme-form__icon-error\">{{ err | translate }}</p>\n }\n\n <div class=\"theme-form__icon-offset\">\n <label id=\"theme-icon-offset-label\">{{ 'yuv.shell.admin.theme.section.icon.offset.label' | translate }}</label>\n <mat-slider [min]=\"0\" [max]=\"maxIconOffset\" [step]=\"1\" discrete>\n <input matSliderThumb formControlName=\"appIconOffset\" aria-labelledby=\"theme-icon-offset-label\" />\n </mat-slider>\n </div>\n\n <mat-form-field class=\"theme-form__icon-source\">\n <mat-label>{{ 'yuv.shell.admin.theme.section.icon.label' | translate }}</mat-label>\n <textarea matInput rows=\"8\" formControlName=\"appIcon\"></textarea>\n </mat-form-field>\n </div>\n </section>\n</form>\n", styles: [":host{--icon-size: 128px}.theme-form{display:flex;flex-direction:column;gap:var(--ymt-spacing-2xl)}.theme-form__section{display:flex;flex-direction:column;gap:var(--ymt-spacing-s)}.theme-form__section h2{font:var(--ymt-font-title-medium);margin:0}.theme-form__section p{font:var(--ymt-font-body-subtle);color:var(--ymt-text-color-subtle);margin:0 0 var(--ymt-spacing-xs)}.theme-form__row{display:flex;gap:var(--ymt-spacing-m);flex-wrap:wrap}.theme-form__row mat-form-field{flex:1 1 auto}.theme-form__row.branding{display:flex}.theme-form__row.branding>.inputs{display:flex;flex-flow:column;gap:var(--ymt-spacing-m)}.theme-form__row.branding>.brand{flex:1;border-radius:var(--ymt-corner-xs);background-color:var(--ymt-brand);color:var(--ymt-on-brand);display:flex;flex-flow:column;align-items:center;justify-content:center;font:var(--ymt-font-title-medium)}.theme-form__preview{display:flex;flex-direction:column;gap:var(--ymt-spacing-s);margin-top:var(--ymt-spacing-xs)}.theme-form__preview-head{display:flex;align-items:center;justify-content:space-between;gap:var(--ymt-spacing-m);flex-wrap:wrap}.theme-form__preview-note{font:var(--ymt-font-body-subtle);color:var(--ymt-text-color-subtle);margin:0}.theme-form__preview-body{display:flex;flex-direction:column;gap:var(--ymt-spacing-m);padding:var(--ymt-spacing-l);border:1px solid var(--ymt-outline-variant);border-radius:var(--ymt-corner-m);background:var(--ymt-surface-container-low);color:var(--ymt-on-surface)}.theme-form__preview-body[data-preview-mode=light]{color-scheme:light}.theme-form__preview-body[data-preview-mode=dark]{color-scheme:dark}@media(prefers-contrast:more),(forced-colors:active){.theme-form__preview-body[data-preview-mode]{color-scheme:inherit}}:host-context(body.yuv-high-contrast) .theme-form__preview-body[data-preview-mode]{color-scheme:inherit}.theme-form__preview-label{font:var(--ymt-font-body-subtle);color:var(--ymt-text-color-subtle)}.theme-form__preview-buttons{display:flex;flex-wrap:wrap;gap:var(--ymt-spacing-s);align-items:center}.theme-form__swatches{display:flex;flex-wrap:wrap;gap:var(--ymt-spacing-s)}.theme-form__swatch{flex:1 1 0;min-inline-size:120px;display:flex;align-items:center;justify-content:center;min-block-size:var(--ymt-sizing-6xl);padding:var(--ymt-spacing-s);border-radius:var(--ymt-corner-s);font:var(--ymt-font-body-subtle);text-align:center}.theme-form__swatch.primary{background:var(--ymt-primary);color:var(--ymt-on-primary)}.theme-form__swatch.primary-container{background:var(--ymt-primary-container);color:var(--ymt-on-primary-container)}.theme-form__icon{display:grid;grid-template-rows:auto auto auto;grid-template-columns:auto auto 1fr;grid-template-areas:\"preview upload .\" \"preview offset .\" \"markup markup markup\";align-items:center;gap:var(--ymt-spacing-m)}.theme-form__icon-preview{grid-area:preview;display:inline-flex;inline-size:var(--icon-size);block-size:var(--icon-size);border:1px solid currentColor;border-radius:var(--ymt-corner-xs)}.theme-form__icon-preview-inner{display:inline-flex;inline-size:100%;block-size:100%;box-sizing:border-box}.theme-form__icon-preview-inner ::ng-deep svg{inline-size:100%;block-size:100%}.theme-form__icon-offset{grid-area:offset;display:flex;flex-direction:column;gap:var(--ymt-spacing-xs)}.theme-form__icon-offset label{font:var(--ymt-font-body-subtle);color:var(--ymt-text-color-subtle)}.theme-form__icon-offset mat-slider{inline-size:100%}.theme-form__icon-error{color:var(--ymt-danger);font:var(--ymt-font-body-subtle);margin:0;grid-area:markup}.theme-form__icon-source{grid-area:markup;inline-size:100%}.theme-form__icon-source textarea{font-family:monospace}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatSliderModule }, { kind: "component", type: i4.MatSlider, selector: "mat-slider", inputs: ["disabled", "discrete", "showTickMarks", "min", "color", "disableRipple", "max", "step", "displayWith"], exportAs: ["matSlider"] }, { kind: "directive", type: i4.MatSliderThumb, selector: "input[matSliderThumb]", inputs: ["value"], outputs: ["valueChange", "dragStart", "dragEnd"], exportAs: ["matSliderThumb"] }, { kind: "ngmodule", type: MatButtonToggleModule }, { kind: "directive", type: i5.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled", "disabledInteractive", "hideSingleSelectionIndicator", "hideMultipleSelectionIndicator"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }, { kind: "component", type: i5.MatButtonToggle, selector: "mat-button-toggle", inputs: ["aria-label", "aria-labelledby", "id", "name", "value", "tabIndex", "disableRipple", "appearance", "checked", "disabled", "disabledInteractive"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { kind: "component", type: ColorComponent, selector: "yuv-color" }, { kind: "directive", type: YmtButtonDirective, selector: "button[ymtButton], a[ymtButton]", inputs: ["ymtButton", "disabled", "aria-disabled", "disableRipple", "disabledInteractive", "button-size"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
159
|
+
}
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: ThemeAdminComponent, decorators: [{
|
|
161
|
+
type: Component,
|
|
162
|
+
args: [{ selector: 'yuv-theme-admin', imports: [
|
|
163
|
+
CommonModule,
|
|
164
|
+
ReactiveFormsModule,
|
|
165
|
+
TranslateModule,
|
|
166
|
+
MatFormFieldModule,
|
|
167
|
+
MatInputModule,
|
|
168
|
+
MatSliderModule,
|
|
169
|
+
MatButtonToggleModule,
|
|
170
|
+
ColorComponent,
|
|
171
|
+
YmtButtonDirective
|
|
172
|
+
], template: "<form [formGroup]=\"themeForm\" class=\"theme-form\">\n <section class=\"theme-form__section\">\n <h2>{{ 'yuv.shell.admin.theme.section.primary.headline' | translate }}</h2>\n <p>{{ 'yuv.shell.admin.theme.section.primary.description' | translate }}</p>\n\n <mat-form-field>\n <mat-label>{{ 'yuv.shell.admin.theme.section.primary.label' | translate }}</mat-label>\n <yuv-color formControlName=\"sourceColor\"></yuv-color>\n </mat-form-field>\n\n <div class=\"theme-form__preview\">\n <div class=\"theme-form__preview-head\">\n <span class=\"theme-form__preview-label\">{{ 'yuv.shell.admin.theme.section.primary.preview' | translate }}</span>\n\n <mat-button-toggle-group\n name=\"previewMode\"\n hideSingleSelectionIndicator\n [value]=\"previewMode()\"\n [disabled]=\"isHighContrast()\"\n (change)=\"previewMode.set($event.value)\"\n [attr.aria-label]=\"'yuv.shell.admin.theme.section.primary.preview.mode' | translate\"\n >\n <mat-button-toggle value=\"light\">{{ 'yuv.shell.admin.theme.section.primary.preview.mode.light' | translate }}</mat-button-toggle>\n <mat-button-toggle value=\"dark\">{{ 'yuv.shell.admin.theme.section.primary.preview.mode.dark' | translate }}</mat-button-toggle>\n </mat-button-toggle-group>\n </div>\n\n @if (isHighContrast()) {\n <p class=\"theme-form__preview-note\">{{ 'yuv.shell.admin.theme.section.primary.preview.hc-note' | translate }}</p>\n }\n\n <div class=\"theme-form__preview-body\" [attr.data-preview-mode]=\"previewMode()\" aria-hidden=\"true\">\n <div class=\"theme-form__preview-buttons\">\n <button ymtButton=\"primary\" type=\"button\">{{ 'yuv.shell.admin.theme.section.primary.preview.button.primary' | translate }}</button>\n <button ymtButton=\"secondary\" type=\"button\">{{ 'yuv.shell.admin.theme.section.primary.preview.button.secondary' | translate }}</button>\n <button ymtButton=\"tertiary\" type=\"button\">{{ 'yuv.shell.admin.theme.section.primary.preview.button.tertiary' | translate }}</button>\n </div>\n\n <div class=\"theme-form__swatches\">\n <span class=\"theme-form__swatch primary\">{{ 'yuv.shell.admin.theme.section.primary.preview.swatch.primary' | translate }}</span>\n <span class=\"theme-form__swatch primary-container\">\n {{ 'yuv.shell.admin.theme.section.primary.preview.swatch.container' | translate }}\n </span>\n </div>\n </div>\n </div>\n </section>\n\n <section class=\"theme-form__section\">\n <h2>{{ 'yuv.shell.admin.theme.section.brand.headline' | translate }}</h2>\n <p>{{ 'yuv.shell.admin.theme.section.brand.description' | translate }}</p>\n\n <div class=\"theme-form__row branding\">\n <div class=\"inputs\">\n <mat-form-field>\n <mat-label>{{ 'yuv.shell.admin.theme.section.brand.label' | translate }}</mat-label>\n <yuv-color formControlName=\"brandColor\"></yuv-color>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{ 'yuv.shell.admin.theme.section.on-brand.label' | translate }}</mat-label>\n <yuv-color formControlName=\"onBrandColor\"></yuv-color>\n </mat-form-field>\n </div>\n <div class=\"brand\">Brand</div>\n </div>\n </section>\n\n <section class=\"theme-form__section\">\n <h2>{{ 'yuv.shell.admin.theme.section.icon.headline' | translate }}</h2>\n <p>{{ 'yuv.shell.admin.theme.section.icon.description' | translate }}</p>\n\n <div class=\"theme-form__icon\">\n <span class=\"theme-form__icon-preview\">\n @if (iconPreview()) {\n <span\n class=\"theme-form__icon-preview-inner\"\n [style.padding.%]=\"iconOffset()\"\n [innerHTML]=\"iconPreview()\"\n ></span>\n }\n </span>\n <button ymtButton=\"secondary\" type=\"button\" (click)=\"uploadIcon()\">\n {{ 'yuv.shell.admin.theme.section.icon.upload' | translate }}\n </button>\n @if (iconError(); as err) {\n <p class=\"theme-form__icon-error\">{{ err | translate }}</p>\n }\n\n <div class=\"theme-form__icon-offset\">\n <label id=\"theme-icon-offset-label\">{{ 'yuv.shell.admin.theme.section.icon.offset.label' | translate }}</label>\n <mat-slider [min]=\"0\" [max]=\"maxIconOffset\" [step]=\"1\" discrete>\n <input matSliderThumb formControlName=\"appIconOffset\" aria-labelledby=\"theme-icon-offset-label\" />\n </mat-slider>\n </div>\n\n <mat-form-field class=\"theme-form__icon-source\">\n <mat-label>{{ 'yuv.shell.admin.theme.section.icon.label' | translate }}</mat-label>\n <textarea matInput rows=\"8\" formControlName=\"appIcon\"></textarea>\n </mat-form-field>\n </div>\n </section>\n</form>\n", styles: [":host{--icon-size: 128px}.theme-form{display:flex;flex-direction:column;gap:var(--ymt-spacing-2xl)}.theme-form__section{display:flex;flex-direction:column;gap:var(--ymt-spacing-s)}.theme-form__section h2{font:var(--ymt-font-title-medium);margin:0}.theme-form__section p{font:var(--ymt-font-body-subtle);color:var(--ymt-text-color-subtle);margin:0 0 var(--ymt-spacing-xs)}.theme-form__row{display:flex;gap:var(--ymt-spacing-m);flex-wrap:wrap}.theme-form__row mat-form-field{flex:1 1 auto}.theme-form__row.branding{display:flex}.theme-form__row.branding>.inputs{display:flex;flex-flow:column;gap:var(--ymt-spacing-m)}.theme-form__row.branding>.brand{flex:1;border-radius:var(--ymt-corner-xs);background-color:var(--ymt-brand);color:var(--ymt-on-brand);display:flex;flex-flow:column;align-items:center;justify-content:center;font:var(--ymt-font-title-medium)}.theme-form__preview{display:flex;flex-direction:column;gap:var(--ymt-spacing-s);margin-top:var(--ymt-spacing-xs)}.theme-form__preview-head{display:flex;align-items:center;justify-content:space-between;gap:var(--ymt-spacing-m);flex-wrap:wrap}.theme-form__preview-note{font:var(--ymt-font-body-subtle);color:var(--ymt-text-color-subtle);margin:0}.theme-form__preview-body{display:flex;flex-direction:column;gap:var(--ymt-spacing-m);padding:var(--ymt-spacing-l);border:1px solid var(--ymt-outline-variant);border-radius:var(--ymt-corner-m);background:var(--ymt-surface-container-low);color:var(--ymt-on-surface)}.theme-form__preview-body[data-preview-mode=light]{color-scheme:light}.theme-form__preview-body[data-preview-mode=dark]{color-scheme:dark}@media(prefers-contrast:more),(forced-colors:active){.theme-form__preview-body[data-preview-mode]{color-scheme:inherit}}:host-context(body.yuv-high-contrast) .theme-form__preview-body[data-preview-mode]{color-scheme:inherit}.theme-form__preview-label{font:var(--ymt-font-body-subtle);color:var(--ymt-text-color-subtle)}.theme-form__preview-buttons{display:flex;flex-wrap:wrap;gap:var(--ymt-spacing-s);align-items:center}.theme-form__swatches{display:flex;flex-wrap:wrap;gap:var(--ymt-spacing-s)}.theme-form__swatch{flex:1 1 0;min-inline-size:120px;display:flex;align-items:center;justify-content:center;min-block-size:var(--ymt-sizing-6xl);padding:var(--ymt-spacing-s);border-radius:var(--ymt-corner-s);font:var(--ymt-font-body-subtle);text-align:center}.theme-form__swatch.primary{background:var(--ymt-primary);color:var(--ymt-on-primary)}.theme-form__swatch.primary-container{background:var(--ymt-primary-container);color:var(--ymt-on-primary-container)}.theme-form__icon{display:grid;grid-template-rows:auto auto auto;grid-template-columns:auto auto 1fr;grid-template-areas:\"preview upload .\" \"preview offset .\" \"markup markup markup\";align-items:center;gap:var(--ymt-spacing-m)}.theme-form__icon-preview{grid-area:preview;display:inline-flex;inline-size:var(--icon-size);block-size:var(--icon-size);border:1px solid currentColor;border-radius:var(--ymt-corner-xs)}.theme-form__icon-preview-inner{display:inline-flex;inline-size:100%;block-size:100%;box-sizing:border-box}.theme-form__icon-preview-inner ::ng-deep svg{inline-size:100%;block-size:100%}.theme-form__icon-offset{grid-area:offset;display:flex;flex-direction:column;gap:var(--ymt-spacing-xs)}.theme-form__icon-offset label{font:var(--ymt-font-body-subtle);color:var(--ymt-text-color-subtle)}.theme-form__icon-offset mat-slider{inline-size:100%}.theme-form__icon-error{color:var(--ymt-danger);font:var(--ymt-font-body-subtle);margin:0;grid-area:markup}.theme-form__icon-source{grid-area:markup;inline-size:100%}.theme-form__icon-source textarea{font-family:monospace}\n"] }]
|
|
173
|
+
}], ctorParameters: () => [], propDecorators: { theme: [{ type: i0.Input, args: [{ isSignal: true, alias: "theme", required: false }] }], themeChange: [{ type: i0.Output, args: ["themeChange"] }] } });
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Generated bundle index. Do not edit.
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
export { ThemeAdminComponent };
|
|
180
|
+
//# sourceMappingURL=yuuvis-client-shell-admin.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yuuvis-client-shell-admin.mjs","sources":["../../../../../libs/yuuvis/client-shell/admin/src/lib/theme-admin/theme-admin.component.ts","../../../../../libs/yuuvis/client-shell/admin/src/lib/theme-admin/theme-admin.component.html","../../../../../libs/yuuvis/client-shell/admin/src/yuuvis-client-shell-admin.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { Component, computed, DestroyRef, effect, inject, input, output, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { FormBuilder, ReactiveFormsModule } from '@angular/forms';\nimport { MatButtonToggleModule } from '@angular/material/button-toggle';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSliderModule } from '@angular/material/slider';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { HIGH_CONTRAST_THEME_KEY, ThemeService } from '@yuuvis/client-framework/common';\nimport { ColorComponent } from '@yuuvis/client-framework/forms';\nimport { ClientShellTheming, ShellService } from '@yuuvis/client-shell-core';\nimport { YmtButtonDirective } from '@yuuvis/material';\nimport { debounceTime } from 'rxjs';\nimport { ThemeAdminChange } from './theme-admin.interface';\n\n/** Maximum inner offset (percent) the app icon can be inset within its frame. */\nconst MAX_ICON_OFFSET = 25;\n\n/**\n * Reusable form for editing the shell theming configuration (primary/brand colors\n * and app icon). It is a pure editor: it neither persists nor live-applies the\n * theme. It reflects the `theme` input into a form and emits a {@link ThemeAdminChange}\n * on every edit — the host decides what to do with it (preview, persist, ...).\n */\n@Component({\n selector: 'yuv-theme-admin',\n imports: [\n CommonModule,\n ReactiveFormsModule,\n TranslateModule,\n MatFormFieldModule,\n MatInputModule,\n MatSliderModule,\n MatButtonToggleModule,\n ColorComponent,\n YmtButtonDirective\n ],\n templateUrl: './theme-admin.component.html',\n styleUrl: './theme-admin.component.scss'\n})\nexport class ThemeAdminComponent {\n #fb = inject(FormBuilder);\n #sanitizer = inject(DomSanitizer);\n #shell = inject(ShellService);\n #theme = inject(ThemeService);\n #dRef = inject(DestroyRef);\n\n /** The persisted/applied theming configuration the form is (re)initialized from. */\n theme = input<ClientShellTheming>();\n\n /** Emitted (debounced) whenever the form changes, carrying the config and its state. */\n themeChange = output<ThemeAdminChange>();\n\n /** Forced color-scheme for the primary preview only — lets the admin inspect their\n * color choices in light and dark without changing the global app mode. */\n previewMode = signal<'light' | 'dark'>('light');\n\n /** OS-level high-contrast preferences (reactive via media-query listeners). */\n #prefersContrast = signal(false);\n #forcedColors = signal(false);\n\n /**\n * True while any high-contrast theme is active (manually selected or OS-driven).\n * In HC the source color is ignored — the theme hard-codes its own WCAG-tuned\n * palette — so the light/dark preview toggle is disabled and its forced\n * color-scheme yields to HC (see the SCSS overrides).\n */\n isHighContrast = computed(\n () => this.#theme.currentTheme() === HIGH_CONTRAST_THEME_KEY || this.#prefersContrast() || this.#forcedColors()\n );\n\n iconError = signal<string | null>(null);\n iconPreview = signal<SafeHtml | null>(null);\n /** current inner offset (percent), mirrored from the form to drive the live preview padding */\n iconOffset = signal<number>(0);\n\n readonly maxIconOffset = MAX_ICON_OFFSET;\n\n themeForm = this.#fb.group({\n sourceColor: [''],\n brandColor: [''],\n onBrandColor: [''],\n appIcon: [''],\n appIconOffset: [0]\n });\n\n constructor() {\n // track OS high-contrast preferences so the preview toggle can defer to HC (which\n // owns the palette). matchMedia is guarded for non-browser/legacy environments.\n if (typeof window !== 'undefined' && window.matchMedia) {\n const contrast = window.matchMedia('(prefers-contrast: more)');\n const forced = window.matchMedia('(forced-colors: active)');\n this.#prefersContrast.set(contrast.matches);\n this.#forcedColors.set(forced.matches);\n const onContrast = (e: MediaQueryListEvent) => this.#prefersContrast.set(e.matches);\n const onForced = (e: MediaQueryListEvent) => this.#forcedColors.set(e.matches);\n contrast.addEventListener('change', onContrast);\n forced.addEventListener('change', onForced);\n this.#dRef.onDestroy(() => {\n contrast.removeEventListener('change', onContrast);\n forced.removeEventListener('change', onForced);\n });\n }\n\n // (re)initialize the form whenever a new configuration is fed in. This drives\n // both the initial load and host-triggered reset/remove: the host re-feeds\n // `theme` and the form reflects it as pristine.\n effect(() => {\n const config = this.theme() || {};\n this.themeForm.reset(\n {\n sourceColor: config.sourceColor || '',\n brandColor: config.brandColor || '',\n onBrandColor: config.onBrandColor || '',\n appIcon: config.appIcon || '',\n appIconOffset: config.appIconOffset || 0\n },\n { emitEvent: false }\n );\n this.iconError.set(null);\n this.iconOffset.set(config.appIconOffset || 0);\n this.#renderIconPreview(config.appIcon);\n // reset() with emitEvent:false does not fire valueChanges, so emit the\n // pristine state explicitly to keep the host in sync.\n this.#emit();\n });\n\n // update the offset signal without debounce so the preview tracks the slider live\n this.themeForm.controls.appIconOffset.valueChanges.pipe(takeUntilDestroyed(this.#dRef)).subscribe((value) => this.iconOffset.set(value || 0));\n\n this.themeForm.valueChanges.pipe(debounceTime(150), takeUntilDestroyed(this.#dRef)).subscribe(() => {\n this.#renderIconPreview(this.themeForm.controls.appIcon.value);\n this.#emit();\n });\n }\n\n /** open a file picker for an SVG file and load its markup into the app-icon field */\n uploadIcon(): void {\n this.#shell.pickFile().subscribe((file) => {\n if (!file) return;\n if (file.type !== 'image/svg+xml' && !file.name.toLowerCase().endsWith('.svg')) {\n this.iconError.set('yuv.shell.admin.theme.icon.error.type');\n return;\n }\n file\n .text()\n .then((text) => {\n this.iconError.set(null);\n this.themeForm.controls.appIcon.setValue(text);\n this.themeForm.markAsDirty();\n })\n .catch(() => this.iconError.set('yuv.shell.admin.theme.icon.error.read'));\n });\n }\n\n #emit(): void {\n this.themeChange.emit({\n config: this.#formToTheming(),\n valid: this.themeForm.valid,\n dirty: this.themeForm.dirty\n });\n }\n\n #formToTheming(): ClientShellTheming {\n const v = this.themeForm.value;\n return {\n sourceColor: v.sourceColor || undefined,\n brandColor: v.brandColor || undefined,\n onBrandColor: v.onBrandColor || undefined,\n appIcon: v.appIcon || undefined,\n appIconOffset: v.appIconOffset || undefined\n };\n }\n\n #renderIconPreview(svg?: string | null): void {\n this.iconPreview.set(svg ? this.#sanitizer.bypassSecurityTrustHtml(svg) : null);\n }\n}\n","<form [formGroup]=\"themeForm\" class=\"theme-form\">\n <section class=\"theme-form__section\">\n <h2>{{ 'yuv.shell.admin.theme.section.primary.headline' | translate }}</h2>\n <p>{{ 'yuv.shell.admin.theme.section.primary.description' | translate }}</p>\n\n <mat-form-field>\n <mat-label>{{ 'yuv.shell.admin.theme.section.primary.label' | translate }}</mat-label>\n <yuv-color formControlName=\"sourceColor\"></yuv-color>\n </mat-form-field>\n\n <div class=\"theme-form__preview\">\n <div class=\"theme-form__preview-head\">\n <span class=\"theme-form__preview-label\">{{ 'yuv.shell.admin.theme.section.primary.preview' | translate }}</span>\n\n <mat-button-toggle-group\n name=\"previewMode\"\n hideSingleSelectionIndicator\n [value]=\"previewMode()\"\n [disabled]=\"isHighContrast()\"\n (change)=\"previewMode.set($event.value)\"\n [attr.aria-label]=\"'yuv.shell.admin.theme.section.primary.preview.mode' | translate\"\n >\n <mat-button-toggle value=\"light\">{{ 'yuv.shell.admin.theme.section.primary.preview.mode.light' | translate }}</mat-button-toggle>\n <mat-button-toggle value=\"dark\">{{ 'yuv.shell.admin.theme.section.primary.preview.mode.dark' | translate }}</mat-button-toggle>\n </mat-button-toggle-group>\n </div>\n\n @if (isHighContrast()) {\n <p class=\"theme-form__preview-note\">{{ 'yuv.shell.admin.theme.section.primary.preview.hc-note' | translate }}</p>\n }\n\n <div class=\"theme-form__preview-body\" [attr.data-preview-mode]=\"previewMode()\" aria-hidden=\"true\">\n <div class=\"theme-form__preview-buttons\">\n <button ymtButton=\"primary\" type=\"button\">{{ 'yuv.shell.admin.theme.section.primary.preview.button.primary' | translate }}</button>\n <button ymtButton=\"secondary\" type=\"button\">{{ 'yuv.shell.admin.theme.section.primary.preview.button.secondary' | translate }}</button>\n <button ymtButton=\"tertiary\" type=\"button\">{{ 'yuv.shell.admin.theme.section.primary.preview.button.tertiary' | translate }}</button>\n </div>\n\n <div class=\"theme-form__swatches\">\n <span class=\"theme-form__swatch primary\">{{ 'yuv.shell.admin.theme.section.primary.preview.swatch.primary' | translate }}</span>\n <span class=\"theme-form__swatch primary-container\">\n {{ 'yuv.shell.admin.theme.section.primary.preview.swatch.container' | translate }}\n </span>\n </div>\n </div>\n </div>\n </section>\n\n <section class=\"theme-form__section\">\n <h2>{{ 'yuv.shell.admin.theme.section.brand.headline' | translate }}</h2>\n <p>{{ 'yuv.shell.admin.theme.section.brand.description' | translate }}</p>\n\n <div class=\"theme-form__row branding\">\n <div class=\"inputs\">\n <mat-form-field>\n <mat-label>{{ 'yuv.shell.admin.theme.section.brand.label' | translate }}</mat-label>\n <yuv-color formControlName=\"brandColor\"></yuv-color>\n </mat-form-field>\n <mat-form-field>\n <mat-label>{{ 'yuv.shell.admin.theme.section.on-brand.label' | translate }}</mat-label>\n <yuv-color formControlName=\"onBrandColor\"></yuv-color>\n </mat-form-field>\n </div>\n <div class=\"brand\">Brand</div>\n </div>\n </section>\n\n <section class=\"theme-form__section\">\n <h2>{{ 'yuv.shell.admin.theme.section.icon.headline' | translate }}</h2>\n <p>{{ 'yuv.shell.admin.theme.section.icon.description' | translate }}</p>\n\n <div class=\"theme-form__icon\">\n <span class=\"theme-form__icon-preview\">\n @if (iconPreview()) {\n <span\n class=\"theme-form__icon-preview-inner\"\n [style.padding.%]=\"iconOffset()\"\n [innerHTML]=\"iconPreview()\"\n ></span>\n }\n </span>\n <button ymtButton=\"secondary\" type=\"button\" (click)=\"uploadIcon()\">\n {{ 'yuv.shell.admin.theme.section.icon.upload' | translate }}\n </button>\n @if (iconError(); as err) {\n <p class=\"theme-form__icon-error\">{{ err | translate }}</p>\n }\n\n <div class=\"theme-form__icon-offset\">\n <label id=\"theme-icon-offset-label\">{{ 'yuv.shell.admin.theme.section.icon.offset.label' | translate }}</label>\n <mat-slider [min]=\"0\" [max]=\"maxIconOffset\" [step]=\"1\" discrete>\n <input matSliderThumb formControlName=\"appIconOffset\" aria-labelledby=\"theme-icon-offset-label\" />\n </mat-slider>\n </div>\n\n <mat-form-field class=\"theme-form__icon-source\">\n <mat-label>{{ 'yuv.shell.admin.theme.section.icon.label' | translate }}</mat-label>\n <textarea matInput rows=\"8\" formControlName=\"appIcon\"></textarea>\n </mat-form-field>\n </div>\n </section>\n</form>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAiBA;AACA,MAAM,eAAe,GAAG,EAAE;AAE1B;;;;;AAKG;MAiBU,mBAAmB,CAAA;AAC9B,IAAA,GAAG;AACH,IAAA,UAAU;AACV,IAAA,MAAM;AACN,IAAA,MAAM;AACN,IAAA,KAAK;;AAaL,IAAA,gBAAgB;AAChB,IAAA,aAAa;AA2Bb,IAAA,WAAA,GAAA;AA7CA,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,WAAW,CAAC;AACzB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC;AACjC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC;AAC7B,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC;AAC7B,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC;;QAG1B,IAAA,CAAA,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,OAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAsB;;QAGnC,IAAA,CAAA,WAAW,GAAG,MAAM,EAAoB;AAExC;AAC2E;AAC3E,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAmB,OAAO,kFAAC;;AAG/C,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,KAAK,uFAAC;AAChC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,KAAK,oFAAC;AAE7B;;;;;AAKG;QACH,IAAA,CAAA,cAAc,GAAG,QAAQ,CACvB,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,E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EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,MAAA,EAAA,OAAA,EAAA,UAAA,EAAA,eAAA,EAAA,YAAA,EAAA,SAAA,EAAA,UAAA,EAAA,qBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACrB,cAAc,sDACd,kBAAkB,EAAA,QAAA,EAAA,iCAAA,EAAA,MAAA,EAAA,CAAA,WAAA,EAAA,UAAA,EAAA,eAAA,EAAA,eAAA,EAAA,qBAAA,EAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,aAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAKT,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAhB/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EAAA,OAAA,EAClB;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,eAAe;wBACf,kBAAkB;wBAClB,cAAc;wBACd,eAAe;wBACf,qBAAqB;wBACrB,cAAc;wBACd;AACD,qBAAA,EAAA,QAAA,EAAA,iyJAAA,EAAA,MAAA,EAAA,CAAA,6jHAAA,CAAA,EAAA;;;AEtCH;;AAEG;;;;"}
|
|
@@ -3,7 +3,7 @@ import { inject, signal, Component, effect, untracked, Injectable, InjectionToke
|
|
|
3
3
|
import { MAT_DIALOG_DATA, MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
4
4
|
import { DmsService, NotificationService, TranslateService, TranslatePipe, SystemType, ConfigService, SafeHtmlPipe, UserService, Utils, LocaleDatePipe, AuthService, UserRoles } from '@yuuvis/client-core';
|
|
5
5
|
import { AbstractContextAction, ACTION_ICON, SelectionRange } from '@yuuvis/client-framework/actions';
|
|
6
|
-
import { ShellService, ShellNotificationsService, CommandPaletteService } from '@yuuvis/client-shell-core';
|
|
6
|
+
import { ShellService, ShellNotificationsService, CommandPaletteService, provideCommandPaletteSlotRenderer } from '@yuuvis/client-shell-core';
|
|
7
7
|
import { switchMap, of, tap, filter, debounceTime, map } from 'rxjs';
|
|
8
8
|
import * as i3 from '@angular/material/button';
|
|
9
9
|
import { MatButtonModule } from '@angular/material/button';
|
|
@@ -34,6 +34,7 @@ import { MatMenuModule } from '@angular/material/menu';
|
|
|
34
34
|
import { OverflowMenuComponent, OverflowSubmenuComponent } from '@yuuvis/client-framework/overflow-menu';
|
|
35
35
|
import { CdkTrapFocus } from '@angular/cdk/a11y';
|
|
36
36
|
import { YUV_ICONS } from '@yuuvis/client-framework/icons';
|
|
37
|
+
import { RendererDirective } from '@yuuvis/client-framework/renderer';
|
|
37
38
|
import { WidgetGridRegistry } from '@yuuvis/client-framework/widget-grid';
|
|
38
39
|
|
|
39
40
|
class ManageFlavorsComponent {
|
|
@@ -228,13 +229,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
228
229
|
|
|
229
230
|
class ShellLogoComponent {
|
|
230
231
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: ShellLogoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
231
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.20", type: ShellLogoComponent, isStandalone: true, selector: "yuv-shell-logo", host: { classAttribute: "shell-logo" }, ngImport: i0, template: "<a halo-offset=\"0\" class=\"shell-logo__to-root\" routerLink=\"/\" [attr.aria-label]=\"'yuv.shell.logo.aria.label' | translate\">\n <mat-icon class=\"shell-logo__icon\" svgIcon=\"shellIcons:app_logo\"></mat-icon>\n</a>\n", styles: [":host.shell-logo{display:block;aspect-ratio:1/1}.shell-logo__to-root{all:unset;cursor:pointer;display:block;height:100%}.shell-logo__icon{width:100%;height:100
|
|
232
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.20", type: ShellLogoComponent, isStandalone: true, selector: "yuv-shell-logo", host: { classAttribute: "shell-logo" }, ngImport: i0, template: "<a halo-offset=\"0\" class=\"shell-logo__to-root\" routerLink=\"/\" [attr.aria-label]=\"'yuv.shell.logo.aria.label' | translate\">\n <mat-icon class=\"shell-logo__icon\" svgIcon=\"shellIcons:app_logo\"></mat-icon>\n</a>\n", styles: [":host.shell-logo{display:block;aspect-ratio:1/1}.shell-logo__to-root{all:unset;cursor:pointer;display:block;height:100%}.shell-logo__icon{width:100%;height:100%;box-sizing:border-box;padding:var(--yuv-shell-logo-icon-offset, 0)}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i5.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
|
|
232
233
|
}
|
|
233
234
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: ShellLogoComponent, decorators: [{
|
|
234
235
|
type: Component,
|
|
235
236
|
args: [{ selector: 'yuv-shell-logo', standalone: true, imports: [MatIconModule, RouterModule, TranslatePipe], host: {
|
|
236
237
|
class: 'shell-logo'
|
|
237
|
-
}, template: "<a halo-offset=\"0\" class=\"shell-logo__to-root\" routerLink=\"/\" [attr.aria-label]=\"'yuv.shell.logo.aria.label' | translate\">\n <mat-icon class=\"shell-logo__icon\" svgIcon=\"shellIcons:app_logo\"></mat-icon>\n</a>\n", styles: [":host.shell-logo{display:block;aspect-ratio:1/1}.shell-logo__to-root{all:unset;cursor:pointer;display:block;height:100%}.shell-logo__icon{width:100%;height:100
|
|
238
|
+
}, template: "<a halo-offset=\"0\" class=\"shell-logo__to-root\" routerLink=\"/\" [attr.aria-label]=\"'yuv.shell.logo.aria.label' | translate\">\n <mat-icon class=\"shell-logo__icon\" svgIcon=\"shellIcons:app_logo\"></mat-icon>\n</a>\n", styles: [":host.shell-logo{display:block;aspect-ratio:1/1}.shell-logo__to-root{all:unset;cursor:pointer;display:block;height:100%}.shell-logo__icon{width:100%;height:100%;box-sizing:border-box;padding:var(--yuv-shell-logo-icon-offset, 0)}\n"] }]
|
|
238
239
|
}] });
|
|
239
240
|
|
|
240
241
|
class YuvAppHeaderComponent {
|
|
@@ -784,6 +785,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
784
785
|
}]
|
|
785
786
|
}] });
|
|
786
787
|
|
|
788
|
+
/**
|
|
789
|
+
* Renders one slot of a command palette search hit through the property renderer registered for
|
|
790
|
+
* its property or field type — so a date shows formatted, a catalog value shows its label and an
|
|
791
|
+
* organization field shows the user's name, just like in the object lists.
|
|
792
|
+
*
|
|
793
|
+
* Not used directly: register it with {@link provideShellCommandPaletteRenderer}.
|
|
794
|
+
*/
|
|
795
|
+
class CommandPaletteSlotComponent {
|
|
796
|
+
constructor() {
|
|
797
|
+
/** The slot as resolved from the hit's object config. */
|
|
798
|
+
this.item = input.required(...(ngDevMode ? [{ debugName: "item" }] : /* istanbul ignore next */ []));
|
|
799
|
+
}
|
|
800
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: CommandPaletteSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
801
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.20", type: CommandPaletteSlotComponent, isStandalone: true, selector: "yuv-command-palette-slot", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `<ng-container *yuvRenderer="item()" />`, isInline: true, dependencies: [{ kind: "directive", type: RendererDirective, selector: "[yuvRenderer]", inputs: ["yuvRenderer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
802
|
+
}
|
|
803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImport: i0, type: CommandPaletteSlotComponent, decorators: [{
|
|
804
|
+
type: Component,
|
|
805
|
+
args: [{
|
|
806
|
+
selector: 'yuv-command-palette-slot',
|
|
807
|
+
imports: [RendererDirective],
|
|
808
|
+
template: `<ng-container *yuvRenderer="item()" />`,
|
|
809
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
810
|
+
}]
|
|
811
|
+
}], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: true }] }] } });
|
|
812
|
+
/**
|
|
813
|
+
* Renders the command palette's search hits through the property renderers of the client framework,
|
|
814
|
+
* instead of showing their raw values.
|
|
815
|
+
*
|
|
816
|
+
* @example
|
|
817
|
+
* ```typescript
|
|
818
|
+
* export const appConfig: ApplicationConfig = {
|
|
819
|
+
* providers: [provideShellCommandPaletteRenderer()]
|
|
820
|
+
* };
|
|
821
|
+
* ```
|
|
822
|
+
*/
|
|
823
|
+
const provideShellCommandPaletteRenderer = () => provideCommandPaletteSlotRenderer(CommandPaletteSlotComponent);
|
|
824
|
+
|
|
787
825
|
class InertDirective {
|
|
788
826
|
constructor() {
|
|
789
827
|
this.elRef = inject(ElementRef);
|
|
@@ -831,5 +869,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
831
869
|
* Generated bundle index. Do not edit.
|
|
832
870
|
*/
|
|
833
871
|
|
|
834
|
-
export { ClientShellComponent, ClientShellService, DialogTrackingComponent, InertDirective, ManageFlavorsAction, SHELL_ACTION_BUTTONS_CONFIG, ShellLogoComponent, ShellWidgetsService, YuvAppHeaderSlotDirective, YuvClientShellModule, clientShellRoutes, closeDialogGuard, provideShellActionButtons };
|
|
872
|
+
export { ClientShellComponent, ClientShellService, CommandPaletteSlotComponent, DialogTrackingComponent, InertDirective, ManageFlavorsAction, SHELL_ACTION_BUTTONS_CONFIG, ShellLogoComponent, ShellWidgetsService, YuvAppHeaderSlotDirective, YuvClientShellModule, clientShellRoutes, closeDialogGuard, provideShellActionButtons, provideShellCommandPaletteRenderer };
|
|
835
873
|
//# sourceMappingURL=yuuvis-client-shell.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yuuvis-client-shell.mjs","sources":["../../../../../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/lib/services/client-shell/client-shell.service.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/shell-logo/shell-logo.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/shell-logo/shell-logo.component.html","../../../../../libs/yuuvis/client-shell/src/lib/components/app-header/app-header.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/app-header/app-header.component.html","../../../../../libs/yuuvis/client-shell/src/lib/services/shell-action-buttons/shell-action-buttons.interface.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/pages/notifications/notifications.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/pages/notifications/notifications.component.html","../../../../../libs/yuuvis/client-shell/src/lib/dialog-tracking.ts","../../../../../libs/yuuvis/client-shell/src/lib/lib.routes.ts","../../../../../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/services/shell-action-buttons/provide.shell-action-buttons.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/app-header/app-header-slot.directive.ts","../../../../../libs/yuuvis/client-shell/src/lib/client-shell.module.ts","../../../../../libs/yuuvis/client-shell/src/lib/directives/inert.directive.ts","../../../../../libs/yuuvis/client-shell/src/lib/services/shell-widgets/shell-widgets.service.ts","../../../../../libs/yuuvis/client-shell/src/yuuvis-client-shell.ts"],"sourcesContent":["import { 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, NotificationService, TranslatePipe, TranslateService } from '@yuuvis/client-core';\nimport { BusyOverlayDirective, ConfirmService, DialogComponent } from '@yuuvis/client-framework/common';\nimport { ListItemDirective } from '@yuuvis/client-framework/list';\nimport { DefaultApplyFlavorComponent, 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 BusyOverlayDirective,\n MatIconModule,\n MatTooltipModule,\n TranslatePipe,\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 #notification = inject(NotificationService);\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\n .triggerApplyObjectFlavor(\n this.item,\n flavor,\n undefined,\n flavor.useDefaultApplyComponent ? DefaultApplyFlavorComponent : undefined\n )\n .subscribe({\n next: () => {\n this.#dialogRef.close();\n this.busy.set(false);\n },\n // keep the dialog open so the user sees the type was not applied and can retry\n error: () => {\n this.#notification.error(this.translate.instant('yuv.object-flavor.apply-flavor.error'));\n this.busy.set(false);\n }\n });\n }\n\n removeFlavor(flavor: ObjectFlavor) {\n this.busy.set(true);\n this.#confirm\n .confirm({\n title: this.translate.instant('yuv.shell.action.manage-flavors.applicable.button.remove.tooltip'),\n message: this.translate.instant('yuv.object-flavor.flavor.remove.confirm.message', {\n flavor: this.#shell.getFlavorLabel(flavor.id)\n }),\n confirmLabel: this.translate.instant('yuv.shell.action.manage-flavors.button.remove')\n })\n .pipe(\n switchMap((confirmed: boolean) =>\n confirmed ? this.#shell.removeObjectFlavor(this.item, flavor) : of(undefined)\n )\n )\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 @if (!f.preventRemove) {\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 }\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 { 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 { applied, applicable } = this.#shell.getAppliedObjectFlavors(item);\n return of(!!item.permissions?.writeIndexData && (applied.length > 0 || applicable.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","import { effect, inject, Injectable, signal, TemplateRef, untracked } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { App, AppOptions, ShellService } from '@yuuvis/client-shell-core';\nimport { filter } from 'rxjs';\nimport { AppHeaderSlot } from '../../components/app-header/app-header-slot.directive';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ClientShellService {\n #router = inject(Router);\n #shell = inject(ShellService);\n\n appHeaderSlots = signal<Record<string, TemplateRef<any>>>({});\n\n apps = this.#shell.apps;\n #appsEffect = effect(() => {\n const apps = this.apps();\n // apps may change due to i18n, so we need to update current app\n if (this.currentApp()) {\n untracked(() => {\n const app = apps.find((a) => a.path === this.currentApp()!.path);\n this.currentApp.set(app);\n });\n }\n });\n currentApp = signal<App | undefined>(undefined);\n appHeader = signal<boolean>(false);\n\n constructor() {\n this.#router.events\n .pipe(\n takeUntilDestroyed(),\n filter((e) => e instanceof NavigationEnd)\n )\n .subscribe((e) => this.#getAppFromUrl(this.#router.routerState.snapshot.url));\n }\n\n #getAppFromUrl(url: string) {\n // remove request params\n if (url.indexOf('?') !== -1) url = url.substring(0, url.indexOf('?'));\n // remove fragments\n if (url.indexOf('#') !== -1) url = url.substring(0, url.indexOf('#'));\n const urlTokens = url.split('/').filter((t) => !!t);\n // TODO: what about context path\n const appPath = urlTokens[0].replace(/\\(dt:dialogs.*$/g, ''); // remove dialog routing parts\n\n if (this.currentApp()?.path !== appPath) {\n const app = this.apps().find((a) => a.path === appPath);\n this.currentApp.set(app);\n const appData = app?.options as AppOptions;\n this.appHeader.set(!!appData?.appHeader);\n this.appHeaderSlots.set({});\n }\n }\n\n addAppHeaderSlot(slot: AppHeaderSlot, tpl: TemplateRef<any>) {\n this.appHeaderSlots.update((curr) => ({ ...curr, [slot]: tpl }));\n }\n\n getCssVars(vars: string[]): Record<string, unknown> {\n // const vars = ['--ymt-spacing-m'];\n const style = window.getComputedStyle(document.getElementsByTagName('body')[0]);\n return vars.reduce((prev, curr) => ({ ...prev, [curr]: style.getPropertyValue(curr) }), {});\n }\n}\n","import { Component } from '@angular/core';\nimport { MatIconModule } from '@angular/material/icon';\nimport { RouterModule } from '@angular/router';\nimport { TranslatePipe } from '@yuuvis/client-core';\n\n@Component({\n selector: 'yuv-shell-logo',\n standalone: true,\n imports: [MatIconModule, RouterModule, TranslatePipe],\n templateUrl: './shell-logo.component.html',\n styleUrl: './shell-logo.component.scss',\n host: {\n class: 'shell-logo'\n }\n})\nexport class ShellLogoComponent {\n // label = input.required<string>();\n}\n","<a halo-offset=\"0\" class=\"shell-logo__to-root\" routerLink=\"/\" [attr.aria-label]=\"'yuv.shell.logo.aria.label' | translate\">\n <mat-icon class=\"shell-logo__icon\" svgIcon=\"shellIcons:app_logo\"></mat-icon>\n</a>\n","import { CommonModule } from '@angular/common';\nimport { Component, inject, TemplateRef } from '@angular/core';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { MatIconModule } from '@angular/material/icon';\nimport { RouterModule } from '@angular/router';\nimport { debounceTime } from 'rxjs';\nimport { ClientShellService } from '../../services/client-shell/client-shell.service';\nimport { ShellLogoComponent } from '../shell-logo/shell-logo.component';\nimport { YuvOverflowHiddenModule } from '@yuuvis/client-framework/overflow-hidden';\nimport { ShellService } from '@yuuvis/client-shell-core';\nimport { MatProgressBar } from '@angular/material/progress-bar';\nimport { DeviceService } from '@yuuvis/material';\n\n@Component({\n selector: 'yuv-app-header',\n imports: [CommonModule, MatProgressBar, MatIconModule, YuvOverflowHiddenModule, ShellLogoComponent, RouterModule],\n templateUrl: './app-header.component.html',\n styleUrl: './app-header.component.scss',\n host: {\n '[class.small-screen]': 'smallScreenLayout()'\n }\n})\nexport class YuvAppHeaderComponent {\n #clientShellService = inject(ClientShellService);\n #shell = inject(ShellService);\n #device = inject(DeviceService);\n\n actionsSlot: TemplateRef<any> | null = null;\n searchSlot: TemplateRef<any> | null = null;\n notificationsSlot: TemplateRef<any> | null = null;\n\n app = this.#clientShellService.currentApp;\n #slots = this.#clientShellService.appHeaderSlots;\n smallScreenLayout = this.#device.smallScreenLayout;\n\n busy$ = this.#shell.isBusy$;\n\n constructor() {\n toObservable(this.#slots)\n .pipe(debounceTime(1), takeUntilDestroyed())\n .subscribe((slots) => {\n this.actionsSlot = slots['actions'] || null;\n this.searchSlot = slots['search'] || null;\n this.notificationsSlot = slots['notifications'] || null;\n });\n }\n}\n","@let a = app();\n@if (a) {\n <header\n class=\"app-header\"\n [ngClass]=\"{\n 'has-actions': !!actionsSlot,\n 'has-search': !!searchSlot,\n 'has-notifications': !!notificationsSlot\n }\"\n aria-labelledby=\"yuv-app-header\"\n >\n @if (busy$ | async) {\n <mat-progress-bar mode=\"indeterminate\" class=\"progress-bar\"></mat-progress-bar>\n }\n <yuv-shell-logo />\n <yuv-overflow-hidden>\n <ng-template #yuvDefaultSlot>\n <a class=\"name\" [routerLink]=\"['/', a.path]\">\n <span class=\"title\" id=\"yuv-app-header\">\n {{ a.title }}\n <span class=\"claim\">{{ a.options?.appClaim }}</span>\n </span>\n </a>\n </ng-template>\n </yuv-overflow-hidden>\n <div class=\"actions\">\n <ng-container *ngTemplateOutlet=\"actionsSlot\"></ng-container>\n </div>\n <div class=\"search\">\n <ng-container *ngTemplateOutlet=\"searchSlot\"></ng-container>\n </div>\n <div class=\"notifications\">\n <ng-container *ngTemplateOutlet=\"notificationsSlot\"></ng-container>\n </div>\n </header>\n}\n","import { InjectionToken } from '@angular/core';\nimport { Router } from \"@angular/router\";\nimport { ConfigService } from \"@yuuvis/client-core\";\n\nexport const SHELL_ACTION_BUTTONS_CONFIG = new InjectionToken<ShellActionButton[]>('SHELL_ACTION_BUTTONS_CONFIG');\n\nexport interface ShellActionButton {\n iconName: string; // name of the material icon to be displayed\n onClick: (api: ShellActionButtonConfigAPI) => void; // function to be executed when button is clicked\n tooltip?: string; // i18n translation key\n}\n\nexport interface ShellActionButtonConfigAPI {\n router: Router,\n config: ConfigService\n}\n","import { NgClass, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, OnInit, Signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDivider } from '@angular/material/divider';\nimport { MatIconModule, MatIconRegistry } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { Router, RouterModule } from '@angular/router';\nimport { ConfigService, SafeHtmlPipe, TranslatePipe, TranslateService, UserService } from '@yuuvis/client-core';\nimport {\n OverflowMenuComponent,\n OverflowMenuItem,\n OverflowSubmenuComponent\n} from '@yuuvis/client-framework/overflow-menu';\nimport {\n App,\n ClientShellConfig,\n CommandPaletteCommand,\n CommandPaletteService,\n ShellAppGroup,\n ShellNotificationLevel,\n ShellNotificationsService,\n ShellService\n} from '@yuuvis/client-shell-core';\nimport { DeviceService, YmtIconButtonDirective } from '@yuuvis/material';\nimport { map } from 'rxjs';\nimport { ClientShellService } from '../../services/client-shell/client-shell.service';\nimport {\n SHELL_ACTION_BUTTONS_CONFIG,\n ShellActionButton\n} from '../../services/shell-action-buttons/shell-action-buttons.interface';\nimport { ShellLogoComponent } from '../shell-logo/shell-logo.component';\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: [\n TranslatePipe,\n ShellLogoComponent,\n YmtIconButtonDirective,\n MatMenuModule,\n MatButtonModule,\n NgTemplateOutlet,\n MatIconModule,\n MatTooltipModule,\n RouterModule,\n MatDivider,\n NgClass,\n OverflowMenuComponent,\n OverflowSubmenuComponent\n ],\n host: {\n class: 'sidenav',\n '[class.small-screen]': 'smallScreenLayout()'\n }\n})\nexport class SidebarNavComponent implements OnInit {\n #shell = inject(ShellService);\n readonly css = inject(ClientShellService);\n customActionButtons = inject(SHELL_ACTION_BUTTONS_CONFIG, { optional: true });\n #config = inject(ConfigService);\n readonly #shellNotifications = inject(ShellNotificationsService);\n readonly #matIconRegistryService = inject(MatIconRegistry);\n safeHtmlPipe = inject(SafeHtmlPipe);\n commandPalette = inject(CommandPaletteService);\n #router = inject(Router);\n private readonly translate = inject(TranslateService);\n #userService = inject(UserService);\n #device = inject(DeviceService);\n\n private APP_LOGOUT_EVENT_KEY = 'yuv.app.event.logout';\n private _levels: Record<ShellNotificationLevel, number> = {\n info: 0,\n success: 1,\n warning: 2,\n alert: 3\n };\n smallScreenLayout = this.#device.smallScreenLayout;\n #alwaysShowNotifications = this.#shellNotifications.alwaysShowNotifications;\n\n showNotifications = computed(() => {\n const notifications = this.newNotifications();\n return (\n this.#alwaysShowNotifications ||\n !!(notifications && Object.hasOwnProperty.call(notifications, 'count') && notifications.count > 0)\n );\n });\n\n app = this.css.currentApp;\n\n newNotifications: Signal<\n | {\n count: number;\n maxLevel: ShellNotificationLevel;\n }\n | undefined\n > = toSignal(\n this.#shellNotifications.shellNotifications$.pipe(\n map((notifications) => {\n let maxLevel: ShellNotificationLevel = 'info';\n const count = notifications.filter((n) => !n.seen).length;\n notifications.forEach(\n (n) => (maxLevel = n.level && this._levels[n.level] > this._levels[maxLevel] ? n.level : maxLevel)\n );\n return count > 0 ? { maxLevel, count } : undefined;\n })\n )\n );\n\n #shellApps = this.#shell.apps;\n // top-level nav structure: single apps and groups of apps sharing one icon\n navEntries = this.#shell.navEntries;\n\n navMenuItems = computed<OverflowMenuItem[]>(() => {\n const currentApp = this.css.currentApp();\n const namespace = this.#shell.shellConfig().shellIconNamespace;\n return this.navEntries().map((entry) =>\n entry.kind === 'app'\n ? this.#toMenuItem(entry.app, currentApp, namespace)\n : {\n id: entry.group.id,\n icon: entry.group.iconName,\n svgIcon: entry.group.svgIcon ? `${namespace}:${entry.group.iconName}` : undefined,\n label: this.#getGroupLabel(entry.group),\n // a group is highlighted whenever one of the apps it holds is the current one\n active: entry.apps.some((app) => app.path === currentApp?.path),\n children: entry.apps.map((app) => this.#toMenuItem(app, currentApp, namespace))\n }\n );\n });\n\n registerIcons = computed(() => {\n const apps = this.#shellApps();\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 // groups bring their own icons, which are not part of the app list\n this.navEntries().forEach((entry) => {\n if (entry.kind === 'group' && entry.group.svgIcon) {\n customSvgIconsToRegister.push({ svgIcon: entry.group.svgIcon, iconName: entry.group.iconName });\n }\n });\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(\n namespace,\n icon.iconName,\n this.safeHtmlPipe.transform(icon.svgIcon)\n )\n : false;\n });\n\n return allRegistered;\n });\n\n constructor() {\n this.translate.onLangChange.subscribe(() => this._setCommands(true));\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 handleCustomActionButtonClick(button: ShellActionButton): void {\n button.onClick({ router: this.#router, config: this.#config });\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 #toMenuItem(app: App, currentApp: App | undefined, namespace?: string): OverflowMenuItem {\n return {\n id: app.id,\n icon: app.iconName,\n svgIcon: app.svgIcon ? `${namespace}:${app.iconName}` : undefined,\n label: this.getAppTitle(app),\n active: currentApp?.path === app.path,\n callback: () => void this.#router.navigate([app.path])\n };\n }\n\n #getGroupLabel(group: ShellAppGroup): string {\n if (group.labelKey) {\n const translated = this.translate.instant(group.labelKey);\n if (translated && !translated.startsWith('!missing')) return translated;\n }\n return group.label || group.id;\n }\n\n private _setCommands(update?: boolean) {\n const commands: CommandPaletteCommand[] = this.#shellApps().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 ngOnInit(): void {\n this._setCommands();\n }\n}\n","<nav class=\"sidenav\" [attr.aria-label]=\"'yuv.shell.side-nav.aria.label' | translate\">\n @let iconsRegistered = registerIcons();\n @let showAppHeader = css.appHeader();\n\n @let a = app();\n @if (smallScreenLayout()) {\n <div class=\"menu\">\n <button mat-icon-button [matMenuTriggerFor]=\"menu\">\n <mat-icon>menu</mat-icon>\n </button>\n @if (a) {\n <span class=\"app-label\">{{ a.title }}</span>\n }\n </div>\n\n @if (showNotifications()) {\n <div class=\"notifications\">\n <ng-container *ngTemplateOutlet=\"notificationButton; context: { $implicit: newNotifications() }\"></ng-container>\n </div>\n }\n <mat-menu #menu=\"matMenu\" [ariaLabel]=\"'yuv.shell.side-nav.aria.label' | translate\">\n @for (item of navMenuItems(); track item.id) {\n @if (item.children?.length) {\n <button mat-menu-item [matMenuTriggerFor]=\"mobileSubMenu.matMenu()\">\n @if (item.svgIcon) {\n <mat-icon [svgIcon]=\"item.svgIcon\" />\n } @else {\n <mat-icon>{{ item.icon }}</mat-icon>\n }\n <span>{{ item.label }}</span>\n </button>\n <yuv-overflow-submenu #mobileSubMenu [items]=\"item.children!\" [ariaLabel]=\"item.label\" />\n } @else {\n <button mat-menu-item (click)=\"item.callback?.(item)\">\n @if (item.svgIcon) {\n <mat-icon [svgIcon]=\"item.svgIcon\" />\n } @else {\n <mat-icon>{{ item.icon }}</mat-icon>\n }\n <span>{{ item.label }}</span>\n </button>\n }\n }\n\n <mat-divider></mat-divider>\n\n @for (customButton of customActionButtons; track customButton.iconName) {\n <button mat-menu-item (click)=\"handleCustomActionButtonClick(customButton)\">\n <mat-icon>{{ customButton.iconName }}</mat-icon>\n <span>{{ customButton.tooltip ? (customButton.tooltip | translate) : '' }}</span>\n </button>\n }\n <button mat-menu-item [routerLink]=\"['/settings']\" routerLinkActive=\"active\">\n <mat-icon>settings</mat-icon>\n <span>{{ 'yuv.shell.settings.title' | translate }}</span>\n </button>\n <button mat-menu-item (click)=\"appLogout()\">\n <mat-icon>power_settings_new</mat-icon>\n <span>{{ 'yuv.shell.cmd.logout' | translate }}</span>\n </button>\n </mat-menu>\n } @else {\n <div class=\"logo-container\">\n @if (iconsRegistered && !showAppHeader) {\n <yuv-shell-logo slot=\"shell-logo\" class=\"shell-nav__shell-logo\" />\n }\n </div>\n <div class=\"app-switcher-container\">\n <yuv-overflow-menu\n [vertical]=\"true\"\n [menuItems]=\"navMenuItems()\"\n [overflowLabel]=\"'yuv.shell.side-nav.aria.label' | translate\"\n />\n </div>\n <div class=\"actions-container\">\n @if (showNotifications()) {\n <ng-container *ngTemplateOutlet=\"notificationButton; context: { $implicit: newNotifications() }\"></ng-container>\n }\n @for (customButton of customActionButtons; track customButton.iconName) {\n <button\n class=\"shell-nav__actions-button\"\n ymt-icon-button\n (click)=\"handleCustomActionButtonClick(customButton)\"\n matTooltipPosition=\"after\"\n [matTooltip]=\"customButton.tooltip ? (customButton.tooltip | translate) : ''\"\n >\n <mat-icon>{{ customButton.iconName }}</mat-icon>\n </button>\n }\n <button\n class=\"shell-nav__actions-button\"\n ymt-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\" ymt-icon-button (click)=\"appLogout()\" [matTooltip]=\"'yuv.shell.cmd.logout' | translate\">\n <mat-icon>power_settings_new</mat-icon>\n </button>\n </div>\n }\n</nav>\n\n<ng-template #notificationButton let-note>\n <button\n class=\"shell-nav__actions-button notes {{ note?.maxLevel }}\"\n ymt-icon-button\n [attr.data-count]=\"note ? (note.count < 100 ? note.count : '99+') : null\"\n [ngClass]=\"{ badge: !!note }\"\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 </button>\n</ng-template>\n","import { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { CommonModule } from '@angular/common';\nimport { Component, ElementRef, 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 { MatTooltipModule } from '@angular/material/tooltip';\nimport { Router } from '@angular/router';\nimport { LocaleDatePipe, TranslatePipe, Utils } from '@yuuvis/client-core';\nimport { LightDismissDirective } from '@yuuvis/client-framework/common';\nimport { YUV_ICONS } from '@yuuvis/client-framework/icons';\nimport { YuvListModule } from '@yuuvis/client-framework/list';\nimport { ShellNotificationsService } from '@yuuvis/client-shell-core';\nimport { YmtIconButtonDirective } from '@yuuvis/material';\n\n@Component({\n selector: 'yuv-notifications',\n standalone: true,\n imports: [\n CommonModule,\n LightDismissDirective,\n MatIconModule,\n MatButtonModule,\n LocaleDatePipe,\n MatTooltipModule,\n YmtIconButtonDirective,\n CdkTrapFocus,\n YuvListModule,\n TranslatePipe\n ],\n templateUrl: './notifications.component.html',\n styleUrl: './notifications.component.scss',\n host: {\n '(keydown)': 'onKeydown($event)'\n }\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 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\">\n <mat-icon>{{ n.icon || 'notifications' }}</mat-icon>\n </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 <button ymt-icon-button icon-button-size=\"small\" (click)=\"remove(n.id)\" matTooltip=\"{{ 'yuv.shell.notifications.button.remove' | translate }}\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n }\n </yuv-list>\n\n <div class=\"actions\">\n <button mat-button [hidden]=\"!notifications()?.length\" (click)=\"removeAll()\">\n {{ 'yuv.shell.notifications.button.remove.all' | translate }}\n <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 { Component, inject } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { ActivatedRouteSnapshot, Router, RouterStateSnapshot } from '@angular/router';\n\n/**\n * This component will be rendered in an invisible auxillary route and is used to track\n * open dialogs.\n */\n@Component({\n template: ''\n})\nexport class DialogTrackingComponent {}\n\nexport const closeDialogGuard = (component: DialogTrackingComponent, currentRoute: ActivatedRouteSnapshot, nextState: RouterStateSnapshot) => {\n const dialog = inject(MatDialog);\n const router = inject(Router);\n const dialogId = currentRoute.paramMap.get('id');\n \n const reg = new RegExp(/(?<=dialogs\\/)[0-9-]+/);\n const openDialogs = (url: string) => {\n const match = url.match(reg);\n return match ? match[0].split('-').map(Number) : [];\n };\n const matchCurr = openDialogs(nextState.url);\n const matchNext = openDialogs(window.location.pathname);\n\n const diff = matchCurr.filter((id) => !matchNext.includes(id));\n if (diff.length > 0) {\n // source and target state have different dialogs open\n // close the diff dialogs\n diff.forEach((idx) => {\n const dRef = dialog.openDialogs[idx];\n if (dRef) dRef.close();\n });\n }\n\n if (dialogId !== undefined) {\n // leaving this virtual state, close the associated dialog\n const dRef = dialog.openDialogs.find((d) => d.id === dialogId);\n if (dRef) dRef.close({closedByRoute: true});\n }\n // }\n // TODO: handle pending state\n return true;\n};","import { Route } from '@angular/router';\nimport { NotificationsPageComponent } from './pages/notifications/notifications.component';\nimport { DialogTrackingComponent, closeDialogGuard} from './dialog-tracking';\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 // tracking outlet for dialogs\n { path: 'dialogs/:id', component: DialogTrackingComponent, outlet: 'dt', canDeactivate: [closeDialogGuard] },\n { path: 'settings', loadComponent: () => import('./pages/settings/settings.component').then((comp) => comp.SettingsPageComponent) },\n\n // default route\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n // redirecting route\n { path: '**', redirectTo: '/' }\n];\n","import { AsyncPipe } from '@angular/common';\nimport { Component, OnInit, effect, inject, input, untracked } from '@angular/core';\nimport { MatProgressBar } from '@angular/material/progress-bar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { NavigationEnd, Route, Router, RouterModule } from '@angular/router';\nimport { SwPush } from '@angular/service-worker';\nimport { AuthService, ConfigService, SafeHtmlPipe, UserRoles, UserService, Utils, YuvUser } from '@yuuvis/client-core';\nimport { ThemeService } from '@yuuvis/client-framework/common';\nimport { YuvMetadataFormDefaultsModule } from '@yuuvis/client-framework/metadata-form-defaults';\nimport { App, ClientShellConfig, ShellService } from '@yuuvis/client-shell-core';\nimport { DeviceService } from '@yuuvis/material';\nimport { of } from 'rxjs';\nimport { catchError, filter, map, switchMap, tap } from 'rxjs/operators';\nimport { YuvAppHeaderComponent } from './components/app-header/app-header.component';\nimport { SidebarNavComponent } from './components/sidebar-nav/sidebar-nav.component';\nimport { clientShellRoutes } from './lib.routes';\nimport { ClientShellService } from './services/client-shell/client-shell.service';\nimport { ShellActionButton } from './services/shell-action-buttons/shell-action-buttons.interface';\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 RouterModule,\n YuvMetadataFormDefaultsModule,\n YuvAppHeaderComponent,\n SidebarNavComponent,\n MatProgressBar,\n MatTooltipModule\n ],\n templateUrl: './client-shell.component.html',\n styleUrls: ['./client-shell.component.scss'],\n providers: [SafeHtmlPipe],\n host: {\n '[class.small-screen]': 'smallScreenLayout()',\n '(dragover)': 'onDragOver($event)'\n }\n})\nexport class ClientShellComponent implements OnInit {\n private router = inject(Router);\n #config = inject(ConfigService);\n private auth = inject(AuthService);\n private userService = inject(UserService);\n #shell = inject(ShellService);\n readonly css = inject(ClientShellService);\n readonly #device = inject(DeviceService);\n readonly #swPush = inject(SwPush);\n // Eagerly instantiate ThemeService so the persisted color-scheme is applied to <body> on\n // app startup. Without this it stays lazy and only initializes when something injects it\n // (e.g. a chart via YuvChartThemeService), leaving the OS default in place until then.\n readonly #theme = inject(ThemeService);\n safeHtmlPipe = inject(SafeHtmlPipe);\n\n showUploadOverlay = false;\n busy$ = this.#shell.isBusy$;\n context?: string;\n\n onDragOver(event: DragEvent) {\n event.stopPropagation();\n event.preventDefault();\n this.showUploadOverlay = !!this._dragContainsFiles(event);\n }\n\n apps = input.required<App[]>();\n // set shell apps from component input\n #appsInputEffect = effect(() => untracked(() => this.#shell.setApps(this.apps())));\n user?: YuvUser;\n checkedForInitialRoute = false;\n enableTenantSwitch = false;\n smallScreenLayout = this.#device.smallScreenLayout;\n\n config = input<ClientShellConfig>();\n /**\n * If set to true, the shell will adapt to small screen sizes (e.g. mobile phones).\n * It also will propagate this setting to other components that might act aupon it.\n * To do so, you can use the `DeviceService` and check for `smallScreenLayout` signal changes.\n */\n supportsSmallScreens = input<boolean>(false);\n\n #shellConfigEffect = effect(() => {\n const cfg = this.config();\n if (cfg) {\n this.#shell.setShellConfig(cfg);\n }\n });\n\n constructor() {\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.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\n handleCustomActionButtonClick(button: ShellActionButton): void {\n button.onClick({ router: this.router, config: this.#config });\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\n ? Array.from(event.dataTransfer.items || []).filter((i) => i.kind === 'file' && i.type).length\n : 0;\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 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.#device.init(this.supportsSmallScreens());\n clientShellRoutes.forEach((route: Route) => {\n this.router.config.push(route);\n });\n this.router.resetConfig(this.router.config);\n this.requestSubscription();\n }\n}\n","<yuv-metadata-default-templates></yuv-metadata-default-templates>\n\n<!-- @let iconsRegistered = registerIcons(); -->\n@let showAppHeader = css.appHeader();\n\n<!-- gloabl busy indicator if app header is present, it will deal with busy indication -->\n@if (!showAppHeader && (busy$ | async)) {\n <mat-progress-bar mode=\"indeterminate\" class=\"progress-bar\"></mat-progress-bar>\n}\n@if (showAppHeader) {\n <yuv-app-header> </yuv-app-header>\n}\n<yuv-sidebar-nav></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<!-- dialog tracking outlet -->\n<router-outlet name=\"dt\"></router-outlet>\n","import { EnvironmentProviders, makeEnvironmentProviders } from '@angular/core';\nimport { SHELL_ACTION_BUTTONS_CONFIG, ShellActionButton } from './shell-action-buttons.interface';\n\nexport const provideShellActionButtons = (buttons: ShellActionButton[]): EnvironmentProviders => {\n return makeEnvironmentProviders([\n {\n provide: SHELL_ACTION_BUTTONS_CONFIG,\n useValue: buttons\n }\n ]);\n};\n","import { Directive, inject, input, OnInit, TemplateRef } from '@angular/core';\nimport { ClientShellService } from '../../services/client-shell/client-shell.service';\n\nexport type AppHeaderSlot = 'actions' | 'search' | 'notifications';\n\n@Directive({\n selector: 'ng-template[yuvAppHeaderSlot]'\n})\nexport class YuvAppHeaderSlotDirective implements OnInit {\n #tplRef = inject(TemplateRef<any>);\n #clientShellService = inject(ClientShellService);\n\n yuvAppHeaderSlot = input.required<AppHeaderSlot>();\n\n ngOnInit(): void {\n this.#clientShellService.addAppHeaderSlot(this.yuvAppHeaderSlot(), this.#tplRef);\n }\n}\n","import { NgModule } from \"@angular/core\";\nimport { YuvAppHeaderSlotDirective } from \"./components/app-header/app-header-slot.directive\";\n\n\nconst cmp = [\n YuvAppHeaderSlotDirective,\n]\n\n@NgModule({\n imports: [cmp],\n exports: [cmp]\n })\n export class YuvClientShellModule {}","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 { inject, Injectable } from '@angular/core';\nimport { GridWidget, WidgetGridRegistry } from '@yuuvis/client-framework/widget-grid';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ShellWidgetsService {\n #widgetGridRegistry = inject(WidgetGridRegistry);\n\n #WIDGET_REGISTRY_BUCKET = 'io.yuuvis.shell.widgets';\n\n exposeShellWidgets(widgets: GridWidget<any>[]) {\n this.#widgetGridRegistry.registerGridWidgets(widgets, [this.#WIDGET_REGISTRY_BUCKET]);\n }\n\n concealShellWidgets(ids: string[]) {\n ids.forEach((id) => this.#widgetGridRegistry.removeRegisteredWidget(id));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i1","i3","i5","filter","map","tap","switchMap"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8Ba,sBAAsB,CAAA;AAjBnC,IAAA,WAAA,GAAA;AAkBE,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC;AAC7B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAChC,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAM,eAAe,CAAC;AACjC,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,EAAC,YAAoC,EAAC;AAClE,QAAA,IAAA,CAAA,IAAI,GAAc,IAAI,CAAC,WAAW;AAClC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,cAAc,CAAC;AACjC,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,mBAAmB,CAAC;AACnC,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAE5C,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAU,KAAK,2EAAC;QAE7B,IAAA,CAAA,cAAc,GAAmB,EAAE;QACnC,IAAA,CAAA,iBAAiB,GAAmB,EAAE;AAwEvC,IAAA;AApFC,IAAA,MAAM;AACN,IAAA,WAAW;AACX,IAAA,WAAW;AACF,IAAA,UAAU;AAEnB,IAAA,QAAQ;AACR,IAAA,aAAa;AAQb,IAAA,WAAW,CAAC,MAAoB,EAAA;AAC9B,QAAA,IAAI,CAAC,IAAI,CAAC,GAA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UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,cAFlB,MAAM,EAAA,CAAA,CAAA;;4FAEP,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAH/B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACLD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"yuuvis-client-shell.mjs","sources":["../../../../../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/lib/services/client-shell/client-shell.service.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/shell-logo/shell-logo.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/shell-logo/shell-logo.component.html","../../../../../libs/yuuvis/client-shell/src/lib/components/app-header/app-header.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/app-header/app-header.component.html","../../../../../libs/yuuvis/client-shell/src/lib/services/shell-action-buttons/shell-action-buttons.interface.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/pages/notifications/notifications.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/pages/notifications/notifications.component.html","../../../../../libs/yuuvis/client-shell/src/lib/dialog-tracking.ts","../../../../../libs/yuuvis/client-shell/src/lib/lib.routes.ts","../../../../../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/services/shell-action-buttons/provide.shell-action-buttons.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/app-header/app-header-slot.directive.ts","../../../../../libs/yuuvis/client-shell/src/lib/client-shell.module.ts","../../../../../libs/yuuvis/client-shell/src/lib/components/command-palette-slot/command-palette-slot.component.ts","../../../../../libs/yuuvis/client-shell/src/lib/directives/inert.directive.ts","../../../../../libs/yuuvis/client-shell/src/lib/services/shell-widgets/shell-widgets.service.ts","../../../../../libs/yuuvis/client-shell/src/yuuvis-client-shell.ts"],"sourcesContent":["import { 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, NotificationService, TranslatePipe, TranslateService } from '@yuuvis/client-core';\nimport { BusyOverlayDirective, ConfirmService, DialogComponent } from '@yuuvis/client-framework/common';\nimport { ListItemDirective } from '@yuuvis/client-framework/list';\nimport { DefaultApplyFlavorComponent, 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 BusyOverlayDirective,\n MatIconModule,\n MatTooltipModule,\n TranslatePipe,\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 #notification = inject(NotificationService);\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\n .triggerApplyObjectFlavor(\n this.item,\n flavor,\n undefined,\n flavor.useDefaultApplyComponent ? DefaultApplyFlavorComponent : undefined\n )\n .subscribe({\n next: () => {\n this.#dialogRef.close();\n this.busy.set(false);\n },\n // keep the dialog open so the user sees the type was not applied and can retry\n error: () => {\n this.#notification.error(this.translate.instant('yuv.object-flavor.apply-flavor.error'));\n this.busy.set(false);\n }\n });\n }\n\n removeFlavor(flavor: ObjectFlavor) {\n this.busy.set(true);\n this.#confirm\n .confirm({\n title: this.translate.instant('yuv.shell.action.manage-flavors.applicable.button.remove.tooltip'),\n message: this.translate.instant('yuv.object-flavor.flavor.remove.confirm.message', {\n flavor: this.#shell.getFlavorLabel(flavor.id)\n }),\n confirmLabel: this.translate.instant('yuv.shell.action.manage-flavors.button.remove')\n })\n .pipe(\n switchMap((confirmed: boolean) =>\n confirmed ? this.#shell.removeObjectFlavor(this.item, flavor) : of(undefined)\n )\n )\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 @if (!f.preventRemove) {\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 }\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 { 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 { applied, applicable } = this.#shell.getAppliedObjectFlavors(item);\n return of(!!item.permissions?.writeIndexData && (applied.length > 0 || applicable.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","import { effect, inject, Injectable, signal, TemplateRef, untracked } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { App, AppOptions, ShellService } from '@yuuvis/client-shell-core';\nimport { filter } from 'rxjs';\nimport { AppHeaderSlot } from '../../components/app-header/app-header-slot.directive';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ClientShellService {\n #router = inject(Router);\n #shell = inject(ShellService);\n\n appHeaderSlots = signal<Record<string, TemplateRef<any>>>({});\n\n apps = this.#shell.apps;\n #appsEffect = effect(() => {\n const apps = this.apps();\n // apps may change due to i18n, so we need to update current app\n if (this.currentApp()) {\n untracked(() => {\n const app = apps.find((a) => a.path === this.currentApp()!.path);\n this.currentApp.set(app);\n });\n }\n });\n currentApp = signal<App | undefined>(undefined);\n appHeader = signal<boolean>(false);\n\n constructor() {\n this.#router.events\n .pipe(\n takeUntilDestroyed(),\n filter((e) => e instanceof NavigationEnd)\n )\n .subscribe((e) => this.#getAppFromUrl(this.#router.routerState.snapshot.url));\n }\n\n #getAppFromUrl(url: string) {\n // remove request params\n if (url.indexOf('?') !== -1) url = url.substring(0, url.indexOf('?'));\n // remove fragments\n if (url.indexOf('#') !== -1) url = url.substring(0, url.indexOf('#'));\n const urlTokens = url.split('/').filter((t) => !!t);\n // TODO: what about context path\n const appPath = urlTokens[0].replace(/\\(dt:dialogs.*$/g, ''); // remove dialog routing parts\n\n if (this.currentApp()?.path !== appPath) {\n const app = this.apps().find((a) => a.path === appPath);\n this.currentApp.set(app);\n const appData = app?.options as AppOptions;\n this.appHeader.set(!!appData?.appHeader);\n this.appHeaderSlots.set({});\n }\n }\n\n addAppHeaderSlot(slot: AppHeaderSlot, tpl: TemplateRef<any>) {\n this.appHeaderSlots.update((curr) => ({ ...curr, [slot]: tpl }));\n }\n\n getCssVars(vars: string[]): Record<string, unknown> {\n // const vars = ['--ymt-spacing-m'];\n const style = window.getComputedStyle(document.getElementsByTagName('body')[0]);\n return vars.reduce((prev, curr) => ({ ...prev, [curr]: style.getPropertyValue(curr) }), {});\n }\n}\n","import { Component } from '@angular/core';\nimport { MatIconModule } from '@angular/material/icon';\nimport { RouterModule } from '@angular/router';\nimport { TranslatePipe } from '@yuuvis/client-core';\n\n@Component({\n selector: 'yuv-shell-logo',\n standalone: true,\n imports: [MatIconModule, RouterModule, TranslatePipe],\n templateUrl: './shell-logo.component.html',\n styleUrl: './shell-logo.component.scss',\n host: {\n class: 'shell-logo'\n }\n})\nexport class ShellLogoComponent {\n // label = input.required<string>();\n}\n","<a halo-offset=\"0\" class=\"shell-logo__to-root\" routerLink=\"/\" [attr.aria-label]=\"'yuv.shell.logo.aria.label' | translate\">\n <mat-icon class=\"shell-logo__icon\" svgIcon=\"shellIcons:app_logo\"></mat-icon>\n</a>\n","import { CommonModule } from '@angular/common';\nimport { Component, inject, TemplateRef } from '@angular/core';\nimport { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';\nimport { MatIconModule } from '@angular/material/icon';\nimport { RouterModule } from '@angular/router';\nimport { debounceTime } from 'rxjs';\nimport { ClientShellService } from '../../services/client-shell/client-shell.service';\nimport { ShellLogoComponent } from '../shell-logo/shell-logo.component';\nimport { YuvOverflowHiddenModule } from '@yuuvis/client-framework/overflow-hidden';\nimport { ShellService } from '@yuuvis/client-shell-core';\nimport { MatProgressBar } from '@angular/material/progress-bar';\nimport { DeviceService } from '@yuuvis/material';\n\n@Component({\n selector: 'yuv-app-header',\n imports: [CommonModule, MatProgressBar, MatIconModule, YuvOverflowHiddenModule, ShellLogoComponent, RouterModule],\n templateUrl: './app-header.component.html',\n styleUrl: './app-header.component.scss',\n host: {\n '[class.small-screen]': 'smallScreenLayout()'\n }\n})\nexport class YuvAppHeaderComponent {\n #clientShellService = inject(ClientShellService);\n #shell = inject(ShellService);\n #device = inject(DeviceService);\n\n actionsSlot: TemplateRef<any> | null = null;\n searchSlot: TemplateRef<any> | null = null;\n notificationsSlot: TemplateRef<any> | null = null;\n\n app = this.#clientShellService.currentApp;\n #slots = this.#clientShellService.appHeaderSlots;\n smallScreenLayout = this.#device.smallScreenLayout;\n\n busy$ = this.#shell.isBusy$;\n\n constructor() {\n toObservable(this.#slots)\n .pipe(debounceTime(1), takeUntilDestroyed())\n .subscribe((slots) => {\n this.actionsSlot = slots['actions'] || null;\n this.searchSlot = slots['search'] || null;\n this.notificationsSlot = slots['notifications'] || null;\n });\n }\n}\n","@let a = app();\n@if (a) {\n <header\n class=\"app-header\"\n [ngClass]=\"{\n 'has-actions': !!actionsSlot,\n 'has-search': !!searchSlot,\n 'has-notifications': !!notificationsSlot\n }\"\n aria-labelledby=\"yuv-app-header\"\n >\n @if (busy$ | async) {\n <mat-progress-bar mode=\"indeterminate\" class=\"progress-bar\"></mat-progress-bar>\n }\n <yuv-shell-logo />\n <yuv-overflow-hidden>\n <ng-template #yuvDefaultSlot>\n <a class=\"name\" [routerLink]=\"['/', a.path]\">\n <span class=\"title\" id=\"yuv-app-header\">\n {{ a.title }}\n <span class=\"claim\">{{ a.options?.appClaim }}</span>\n </span>\n </a>\n </ng-template>\n </yuv-overflow-hidden>\n <div class=\"actions\">\n <ng-container *ngTemplateOutlet=\"actionsSlot\"></ng-container>\n </div>\n <div class=\"search\">\n <ng-container *ngTemplateOutlet=\"searchSlot\"></ng-container>\n </div>\n <div class=\"notifications\">\n <ng-container *ngTemplateOutlet=\"notificationsSlot\"></ng-container>\n </div>\n </header>\n}\n","import { InjectionToken } from '@angular/core';\nimport { Router } from \"@angular/router\";\nimport { ConfigService } from \"@yuuvis/client-core\";\n\nexport const SHELL_ACTION_BUTTONS_CONFIG = new InjectionToken<ShellActionButton[]>('SHELL_ACTION_BUTTONS_CONFIG');\n\nexport interface ShellActionButton {\n iconName: string; // name of the material icon to be displayed\n onClick: (api: ShellActionButtonConfigAPI) => void; // function to be executed when button is clicked\n tooltip?: string; // i18n translation key\n}\n\nexport interface ShellActionButtonConfigAPI {\n router: Router,\n config: ConfigService\n}\n","import { NgClass, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, OnInit, Signal } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatDivider } from '@angular/material/divider';\nimport { MatIconModule, MatIconRegistry } from '@angular/material/icon';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { Router, RouterModule } from '@angular/router';\nimport { ConfigService, SafeHtmlPipe, TranslatePipe, TranslateService, UserService } from '@yuuvis/client-core';\nimport {\n OverflowMenuComponent,\n OverflowMenuItem,\n OverflowSubmenuComponent\n} from '@yuuvis/client-framework/overflow-menu';\nimport {\n App,\n ClientShellConfig,\n CommandPaletteCommand,\n CommandPaletteService,\n ShellAppGroup,\n ShellNotificationLevel,\n ShellNotificationsService,\n ShellService\n} from '@yuuvis/client-shell-core';\nimport { DeviceService, YmtIconButtonDirective } from '@yuuvis/material';\nimport { map } from 'rxjs';\nimport { ClientShellService } from '../../services/client-shell/client-shell.service';\nimport {\n SHELL_ACTION_BUTTONS_CONFIG,\n ShellActionButton\n} from '../../services/shell-action-buttons/shell-action-buttons.interface';\nimport { ShellLogoComponent } from '../shell-logo/shell-logo.component';\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: [\n TranslatePipe,\n ShellLogoComponent,\n YmtIconButtonDirective,\n MatMenuModule,\n MatButtonModule,\n NgTemplateOutlet,\n MatIconModule,\n MatTooltipModule,\n RouterModule,\n MatDivider,\n NgClass,\n OverflowMenuComponent,\n OverflowSubmenuComponent\n ],\n host: {\n class: 'sidenav',\n '[class.small-screen]': 'smallScreenLayout()'\n }\n})\nexport class SidebarNavComponent implements OnInit {\n #shell = inject(ShellService);\n readonly css = inject(ClientShellService);\n customActionButtons = inject(SHELL_ACTION_BUTTONS_CONFIG, { optional: true });\n #config = inject(ConfigService);\n readonly #shellNotifications = inject(ShellNotificationsService);\n readonly #matIconRegistryService = inject(MatIconRegistry);\n safeHtmlPipe = inject(SafeHtmlPipe);\n commandPalette = inject(CommandPaletteService);\n #router = inject(Router);\n private readonly translate = inject(TranslateService);\n #userService = inject(UserService);\n #device = inject(DeviceService);\n\n private APP_LOGOUT_EVENT_KEY = 'yuv.app.event.logout';\n private _levels: Record<ShellNotificationLevel, number> = {\n info: 0,\n success: 1,\n warning: 2,\n alert: 3\n };\n smallScreenLayout = this.#device.smallScreenLayout;\n #alwaysShowNotifications = this.#shellNotifications.alwaysShowNotifications;\n\n showNotifications = computed(() => {\n const notifications = this.newNotifications();\n return (\n this.#alwaysShowNotifications ||\n !!(notifications && Object.hasOwnProperty.call(notifications, 'count') && notifications.count > 0)\n );\n });\n\n app = this.css.currentApp;\n\n newNotifications: Signal<\n | {\n count: number;\n maxLevel: ShellNotificationLevel;\n }\n | undefined\n > = toSignal(\n this.#shellNotifications.shellNotifications$.pipe(\n map((notifications) => {\n let maxLevel: ShellNotificationLevel = 'info';\n const count = notifications.filter((n) => !n.seen).length;\n notifications.forEach(\n (n) => (maxLevel = n.level && this._levels[n.level] > this._levels[maxLevel] ? n.level : maxLevel)\n );\n return count > 0 ? { maxLevel, count } : undefined;\n })\n )\n );\n\n #shellApps = this.#shell.apps;\n // top-level nav structure: single apps and groups of apps sharing one icon\n navEntries = this.#shell.navEntries;\n\n navMenuItems = computed<OverflowMenuItem[]>(() => {\n const currentApp = this.css.currentApp();\n const namespace = this.#shell.shellConfig().shellIconNamespace;\n return this.navEntries().map((entry) =>\n entry.kind === 'app'\n ? this.#toMenuItem(entry.app, currentApp, namespace)\n : {\n id: entry.group.id,\n icon: entry.group.iconName,\n svgIcon: entry.group.svgIcon ? `${namespace}:${entry.group.iconName}` : undefined,\n label: this.#getGroupLabel(entry.group),\n // a group is highlighted whenever one of the apps it holds is the current one\n active: entry.apps.some((app) => app.path === currentApp?.path),\n children: entry.apps.map((app) => this.#toMenuItem(app, currentApp, namespace))\n }\n );\n });\n\n registerIcons = computed(() => {\n const apps = this.#shellApps();\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 // groups bring their own icons, which are not part of the app list\n this.navEntries().forEach((entry) => {\n if (entry.kind === 'group' && entry.group.svgIcon) {\n customSvgIconsToRegister.push({ svgIcon: entry.group.svgIcon, iconName: entry.group.iconName });\n }\n });\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(\n namespace,\n icon.iconName,\n this.safeHtmlPipe.transform(icon.svgIcon)\n )\n : false;\n });\n\n return allRegistered;\n });\n\n constructor() {\n this.translate.onLangChange.subscribe(() => this._setCommands(true));\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 handleCustomActionButtonClick(button: ShellActionButton): void {\n button.onClick({ router: this.#router, config: this.#config });\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 #toMenuItem(app: App, currentApp: App | undefined, namespace?: string): OverflowMenuItem {\n return {\n id: app.id,\n icon: app.iconName,\n svgIcon: app.svgIcon ? `${namespace}:${app.iconName}` : undefined,\n label: this.getAppTitle(app),\n active: currentApp?.path === app.path,\n callback: () => void this.#router.navigate([app.path])\n };\n }\n\n #getGroupLabel(group: ShellAppGroup): string {\n if (group.labelKey) {\n const translated = this.translate.instant(group.labelKey);\n if (translated && !translated.startsWith('!missing')) return translated;\n }\n return group.label || group.id;\n }\n\n private _setCommands(update?: boolean) {\n const commands: CommandPaletteCommand[] = this.#shellApps().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 ngOnInit(): void {\n this._setCommands();\n }\n}\n","<nav class=\"sidenav\" [attr.aria-label]=\"'yuv.shell.side-nav.aria.label' | translate\">\n @let iconsRegistered = registerIcons();\n @let showAppHeader = css.appHeader();\n\n @let a = app();\n @if (smallScreenLayout()) {\n <div class=\"menu\">\n <button mat-icon-button [matMenuTriggerFor]=\"menu\">\n <mat-icon>menu</mat-icon>\n </button>\n @if (a) {\n <span class=\"app-label\">{{ a.title }}</span>\n }\n </div>\n\n @if (showNotifications()) {\n <div class=\"notifications\">\n <ng-container *ngTemplateOutlet=\"notificationButton; context: { $implicit: newNotifications() }\"></ng-container>\n </div>\n }\n <mat-menu #menu=\"matMenu\" [ariaLabel]=\"'yuv.shell.side-nav.aria.label' | translate\">\n @for (item of navMenuItems(); track item.id) {\n @if (item.children?.length) {\n <button mat-menu-item [matMenuTriggerFor]=\"mobileSubMenu.matMenu()\">\n @if (item.svgIcon) {\n <mat-icon [svgIcon]=\"item.svgIcon\" />\n } @else {\n <mat-icon>{{ item.icon }}</mat-icon>\n }\n <span>{{ item.label }}</span>\n </button>\n <yuv-overflow-submenu #mobileSubMenu [items]=\"item.children!\" [ariaLabel]=\"item.label\" />\n } @else {\n <button mat-menu-item (click)=\"item.callback?.(item)\">\n @if (item.svgIcon) {\n <mat-icon [svgIcon]=\"item.svgIcon\" />\n } @else {\n <mat-icon>{{ item.icon }}</mat-icon>\n }\n <span>{{ item.label }}</span>\n </button>\n }\n }\n\n <mat-divider></mat-divider>\n\n @for (customButton of customActionButtons; track customButton.iconName) {\n <button mat-menu-item (click)=\"handleCustomActionButtonClick(customButton)\">\n <mat-icon>{{ customButton.iconName }}</mat-icon>\n <span>{{ customButton.tooltip ? (customButton.tooltip | translate) : '' }}</span>\n </button>\n }\n <button mat-menu-item [routerLink]=\"['/settings']\" routerLinkActive=\"active\">\n <mat-icon>settings</mat-icon>\n <span>{{ 'yuv.shell.settings.title' | translate }}</span>\n </button>\n <button mat-menu-item (click)=\"appLogout()\">\n <mat-icon>power_settings_new</mat-icon>\n <span>{{ 'yuv.shell.cmd.logout' | translate }}</span>\n </button>\n </mat-menu>\n } @else {\n <div class=\"logo-container\">\n @if (iconsRegistered && !showAppHeader) {\n <yuv-shell-logo slot=\"shell-logo\" class=\"shell-nav__shell-logo\" />\n }\n </div>\n <div class=\"app-switcher-container\">\n <yuv-overflow-menu\n [vertical]=\"true\"\n [menuItems]=\"navMenuItems()\"\n [overflowLabel]=\"'yuv.shell.side-nav.aria.label' | translate\"\n />\n </div>\n <div class=\"actions-container\">\n @if (showNotifications()) {\n <ng-container *ngTemplateOutlet=\"notificationButton; context: { $implicit: newNotifications() }\"></ng-container>\n }\n @for (customButton of customActionButtons; track customButton.iconName) {\n <button\n class=\"shell-nav__actions-button\"\n ymt-icon-button\n (click)=\"handleCustomActionButtonClick(customButton)\"\n matTooltipPosition=\"after\"\n [matTooltip]=\"customButton.tooltip ? (customButton.tooltip | translate) : ''\"\n >\n <mat-icon>{{ customButton.iconName }}</mat-icon>\n </button>\n }\n <button\n class=\"shell-nav__actions-button\"\n ymt-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\" ymt-icon-button (click)=\"appLogout()\" [matTooltip]=\"'yuv.shell.cmd.logout' | translate\">\n <mat-icon>power_settings_new</mat-icon>\n </button>\n </div>\n }\n</nav>\n\n<ng-template #notificationButton let-note>\n <button\n class=\"shell-nav__actions-button notes {{ note?.maxLevel }}\"\n ymt-icon-button\n [attr.data-count]=\"note ? (note.count < 100 ? note.count : '99+') : null\"\n [ngClass]=\"{ badge: !!note }\"\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 </button>\n</ng-template>\n","import { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { CommonModule } from '@angular/common';\nimport { Component, ElementRef, 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 { MatTooltipModule } from '@angular/material/tooltip';\nimport { Router } from '@angular/router';\nimport { LocaleDatePipe, TranslatePipe, Utils } from '@yuuvis/client-core';\nimport { LightDismissDirective } from '@yuuvis/client-framework/common';\nimport { YUV_ICONS } from '@yuuvis/client-framework/icons';\nimport { YuvListModule } from '@yuuvis/client-framework/list';\nimport { ShellNotificationsService } from '@yuuvis/client-shell-core';\nimport { YmtIconButtonDirective } from '@yuuvis/material';\n\n@Component({\n selector: 'yuv-notifications',\n standalone: true,\n imports: [\n CommonModule,\n LightDismissDirective,\n MatIconModule,\n MatButtonModule,\n LocaleDatePipe,\n MatTooltipModule,\n YmtIconButtonDirective,\n CdkTrapFocus,\n YuvListModule,\n TranslatePipe\n ],\n templateUrl: './notifications.component.html',\n styleUrl: './notifications.component.scss',\n host: {\n '(keydown)': 'onKeydown($event)'\n }\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 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\">\n <mat-icon>{{ n.icon || 'notifications' }}</mat-icon>\n </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 <button ymt-icon-button icon-button-size=\"small\" (click)=\"remove(n.id)\" matTooltip=\"{{ 'yuv.shell.notifications.button.remove' | translate }}\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n }\n </yuv-list>\n\n <div class=\"actions\">\n <button mat-button [hidden]=\"!notifications()?.length\" (click)=\"removeAll()\">\n {{ 'yuv.shell.notifications.button.remove.all' | translate }}\n <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 { Component, inject } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { ActivatedRouteSnapshot, Router, RouterStateSnapshot } from '@angular/router';\n\n/**\n * This component will be rendered in an invisible auxillary route and is used to track\n * open dialogs.\n */\n@Component({\n template: ''\n})\nexport class DialogTrackingComponent {}\n\nexport const closeDialogGuard = (component: DialogTrackingComponent, currentRoute: ActivatedRouteSnapshot, nextState: RouterStateSnapshot) => {\n const dialog = inject(MatDialog);\n const router = inject(Router);\n const dialogId = currentRoute.paramMap.get('id');\n \n const reg = new RegExp(/(?<=dialogs\\/)[0-9-]+/);\n const openDialogs = (url: string) => {\n const match = url.match(reg);\n return match ? match[0].split('-').map(Number) : [];\n };\n const matchCurr = openDialogs(nextState.url);\n const matchNext = openDialogs(window.location.pathname);\n\n const diff = matchCurr.filter((id) => !matchNext.includes(id));\n if (diff.length > 0) {\n // source and target state have different dialogs open\n // close the diff dialogs\n diff.forEach((idx) => {\n const dRef = dialog.openDialogs[idx];\n if (dRef) dRef.close();\n });\n }\n\n if (dialogId !== undefined) {\n // leaving this virtual state, close the associated dialog\n const dRef = dialog.openDialogs.find((d) => d.id === dialogId);\n if (dRef) dRef.close({closedByRoute: true});\n }\n // }\n // TODO: handle pending state\n return true;\n};","import { Route } from '@angular/router';\nimport { NotificationsPageComponent } from './pages/notifications/notifications.component';\nimport { DialogTrackingComponent, closeDialogGuard} from './dialog-tracking';\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 // tracking outlet for dialogs\n { path: 'dialogs/:id', component: DialogTrackingComponent, outlet: 'dt', canDeactivate: [closeDialogGuard] },\n { path: 'settings', loadComponent: () => import('./pages/settings/settings.component').then((comp) => comp.SettingsPageComponent) },\n\n // default route\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n // redirecting route\n { path: '**', redirectTo: '/' }\n];\n","import { AsyncPipe } from '@angular/common';\nimport { Component, OnInit, effect, inject, input, untracked } from '@angular/core';\nimport { MatProgressBar } from '@angular/material/progress-bar';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { NavigationEnd, Route, Router, RouterModule } from '@angular/router';\nimport { SwPush } from '@angular/service-worker';\nimport { AuthService, ConfigService, SafeHtmlPipe, UserRoles, UserService, Utils, YuvUser } from '@yuuvis/client-core';\nimport { ThemeService } from '@yuuvis/client-framework/common';\nimport { YuvMetadataFormDefaultsModule } from '@yuuvis/client-framework/metadata-form-defaults';\nimport { App, ClientShellConfig, ShellService } from '@yuuvis/client-shell-core';\nimport { DeviceService } from '@yuuvis/material';\nimport { of } from 'rxjs';\nimport { catchError, filter, map, switchMap, tap } from 'rxjs/operators';\nimport { YuvAppHeaderComponent } from './components/app-header/app-header.component';\nimport { SidebarNavComponent } from './components/sidebar-nav/sidebar-nav.component';\nimport { clientShellRoutes } from './lib.routes';\nimport { ClientShellService } from './services/client-shell/client-shell.service';\nimport { ShellActionButton } from './services/shell-action-buttons/shell-action-buttons.interface';\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 RouterModule,\n YuvMetadataFormDefaultsModule,\n YuvAppHeaderComponent,\n SidebarNavComponent,\n MatProgressBar,\n MatTooltipModule\n ],\n templateUrl: './client-shell.component.html',\n styleUrls: ['./client-shell.component.scss'],\n providers: [SafeHtmlPipe],\n host: {\n '[class.small-screen]': 'smallScreenLayout()',\n '(dragover)': 'onDragOver($event)'\n }\n})\nexport class ClientShellComponent implements OnInit {\n private router = inject(Router);\n #config = inject(ConfigService);\n private auth = inject(AuthService);\n private userService = inject(UserService);\n #shell = inject(ShellService);\n readonly css = inject(ClientShellService);\n readonly #device = inject(DeviceService);\n readonly #swPush = inject(SwPush);\n // Eagerly instantiate ThemeService so the persisted color-scheme is applied to <body> on\n // app startup. Without this it stays lazy and only initializes when something injects it\n // (e.g. a chart via YuvChartThemeService), leaving the OS default in place until then.\n readonly #theme = inject(ThemeService);\n safeHtmlPipe = inject(SafeHtmlPipe);\n\n showUploadOverlay = false;\n busy$ = this.#shell.isBusy$;\n context?: string;\n\n onDragOver(event: DragEvent) {\n event.stopPropagation();\n event.preventDefault();\n this.showUploadOverlay = !!this._dragContainsFiles(event);\n }\n\n apps = input.required<App[]>();\n // set shell apps from component input\n #appsInputEffect = effect(() => untracked(() => this.#shell.setApps(this.apps())));\n user?: YuvUser;\n checkedForInitialRoute = false;\n enableTenantSwitch = false;\n smallScreenLayout = this.#device.smallScreenLayout;\n\n config = input<ClientShellConfig>();\n /**\n * If set to true, the shell will adapt to small screen sizes (e.g. mobile phones).\n * It also will propagate this setting to other components that might act aupon it.\n * To do so, you can use the `DeviceService` and check for `smallScreenLayout` signal changes.\n */\n supportsSmallScreens = input<boolean>(false);\n\n #shellConfigEffect = effect(() => {\n const cfg = this.config();\n if (cfg) {\n this.#shell.setShellConfig(cfg);\n }\n });\n\n constructor() {\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.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\n handleCustomActionButtonClick(button: ShellActionButton): void {\n button.onClick({ router: this.router, config: this.#config });\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\n ? Array.from(event.dataTransfer.items || []).filter((i) => i.kind === 'file' && i.type).length\n : 0;\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 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.#device.init(this.supportsSmallScreens());\n clientShellRoutes.forEach((route: Route) => {\n this.router.config.push(route);\n });\n this.router.resetConfig(this.router.config);\n this.requestSubscription();\n }\n}\n","<yuv-metadata-default-templates></yuv-metadata-default-templates>\n\n<!-- @let iconsRegistered = registerIcons(); -->\n@let showAppHeader = css.appHeader();\n\n<!-- gloabl busy indicator if app header is present, it will deal with busy indication -->\n@if (!showAppHeader && (busy$ | async)) {\n <mat-progress-bar mode=\"indeterminate\" class=\"progress-bar\"></mat-progress-bar>\n}\n@if (showAppHeader) {\n <yuv-app-header> </yuv-app-header>\n}\n<yuv-sidebar-nav></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<!-- dialog tracking outlet -->\n<router-outlet name=\"dt\"></router-outlet>\n","import { EnvironmentProviders, makeEnvironmentProviders } from '@angular/core';\nimport { SHELL_ACTION_BUTTONS_CONFIG, ShellActionButton } from './shell-action-buttons.interface';\n\nexport const provideShellActionButtons = (buttons: ShellActionButton[]): EnvironmentProviders => {\n return makeEnvironmentProviders([\n {\n provide: SHELL_ACTION_BUTTONS_CONFIG,\n useValue: buttons\n }\n ]);\n};\n","import { Directive, inject, input, OnInit, TemplateRef } from '@angular/core';\nimport { ClientShellService } from '../../services/client-shell/client-shell.service';\n\nexport type AppHeaderSlot = 'actions' | 'search' | 'notifications';\n\n@Directive({\n selector: 'ng-template[yuvAppHeaderSlot]'\n})\nexport class YuvAppHeaderSlotDirective implements OnInit {\n #tplRef = inject(TemplateRef<any>);\n #clientShellService = inject(ClientShellService);\n\n yuvAppHeaderSlot = input.required<AppHeaderSlot>();\n\n ngOnInit(): void {\n this.#clientShellService.addAppHeaderSlot(this.yuvAppHeaderSlot(), this.#tplRef);\n }\n}\n","import { NgModule } from \"@angular/core\";\nimport { YuvAppHeaderSlotDirective } from \"./components/app-header/app-header-slot.directive\";\n\n\nconst cmp = [\n YuvAppHeaderSlotDirective,\n]\n\n@NgModule({\n imports: [cmp],\n exports: [cmp]\n })\n export class YuvClientShellModule {}","import { ChangeDetectionStrategy, Component, EnvironmentProviders, input } from '@angular/core';\nimport { RendererDirective } from '@yuuvis/client-framework/renderer';\nimport { CommandPaletteSlotItem, provideCommandPaletteSlotRenderer } from '@yuuvis/client-shell-core';\n\n/**\n * Renders one slot of a command palette search hit through the property renderer registered for\n * its property or field type — so a date shows formatted, a catalog value shows its label and an\n * organization field shows the user's name, just like in the object lists.\n *\n * Not used directly: register it with {@link provideShellCommandPaletteRenderer}.\n */\n@Component({\n selector: 'yuv-command-palette-slot',\n imports: [RendererDirective],\n template: `<ng-container *yuvRenderer=\"item()\" />`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CommandPaletteSlotComponent {\n /** The slot as resolved from the hit's object config. */\n item = input.required<CommandPaletteSlotItem>();\n}\n\n/**\n * Renders the command palette's search hits through the property renderers of the client framework,\n * instead of showing their raw values.\n *\n * @example\n * ```typescript\n * export const appConfig: ApplicationConfig = {\n * providers: [provideShellCommandPaletteRenderer()]\n * };\n * ```\n */\nexport const provideShellCommandPaletteRenderer = (): EnvironmentProviders =>\n provideCommandPaletteSlotRenderer(CommandPaletteSlotComponent);\n","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 { inject, Injectable } from '@angular/core';\nimport { GridWidget, WidgetGridRegistry } from '@yuuvis/client-framework/widget-grid';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ShellWidgetsService {\n #widgetGridRegistry = inject(WidgetGridRegistry);\n\n #WIDGET_REGISTRY_BUCKET = 'io.yuuvis.shell.widgets';\n\n exposeShellWidgets(widgets: GridWidget<any>[]) {\n this.#widgetGridRegistry.registerGridWidgets(widgets, [this.#WIDGET_REGISTRY_BUCKET]);\n }\n\n concealShellWidgets(ids: string[]) {\n ids.forEach((id) => this.#widgetGridRegistry.removeRegisteredWidget(id));\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i1","i3","i5","filter","map","tap","switchMap"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8Ba,sBAAsB,CAAA;AAjBnC,IAAA,WAAA,GAAA;AAkBE,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC;AAC7B,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAChC,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAM,eAAe,CAAC;AACjC,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,EAAC,YAAoC,EAAC;AAClE,QAA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B,EAAA;AAC3C,QAAA,IAAI,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;IACvF;AAEA,IAAA,mBAAmB,CAAC,GAAa,EAAA;AAC/B,QAAA,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;IAC1E;+GAXW,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,cAFlB,MAAM,EAAA,CAAA,CAAA;;4FAEP,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAH/B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACLD;;AAEG;;;;"}
|
package/lib/assets/i18n/de.json
CHANGED
|
@@ -10,9 +10,39 @@
|
|
|
10
10
|
"yuv.shell.action.manage-flavors.button.remove": "Entfernen",
|
|
11
11
|
"yuv.shell.action.manage-flavors.text": "Dies sind die Typen, die für das aktuelle Objekt angewendet werden oder verfügbar sind.",
|
|
12
12
|
"yuv.shell.action.manage-flavors.title": "Typen verwalten",
|
|
13
|
+
"yuv.shell.admin.theme.icon.error.read": "Die ausgewählte Datei konnte nicht gelesen werden.",
|
|
14
|
+
"yuv.shell.admin.theme.icon.error.type": "Bitte wählen Sie eine gültige SVG-Datei aus.",
|
|
15
|
+
"yuv.shell.admin.theme.section.brand.description": "Die Markenfarbe wird für markante gebrandete Flächen wie den Hintergrund des App-Logos verwendet.",
|
|
16
|
+
"yuv.shell.admin.theme.section.brand.headline": "Markenfarben",
|
|
17
|
+
"yuv.shell.admin.theme.section.brand.label": "Markenfarbe",
|
|
18
|
+
"yuv.shell.admin.theme.section.icon.description": "Laden Sie das SVG-Markup für das Anwendungslogo hoch oder fügen Sie es ein.",
|
|
19
|
+
"yuv.shell.admin.theme.section.icon.headline": "App-Icon",
|
|
20
|
+
"yuv.shell.admin.theme.section.icon.label": "SVG-Markup",
|
|
21
|
+
"yuv.shell.admin.theme.section.icon.offset.label": "Innerer Abstand",
|
|
22
|
+
"yuv.shell.admin.theme.section.icon.upload": "SVG hochladen",
|
|
23
|
+
"yuv.shell.admin.theme.section.on-brand.label": "Farbe auf Marke",
|
|
24
|
+
"yuv.shell.admin.theme.section.primary.description": "Die Primärfarbe ist die Ausgangsfarbe, aus der das Farbschema der Anwendung für den hellen und den dunklen Modus generiert wird.",
|
|
25
|
+
"yuv.shell.admin.theme.section.primary.headline": "Primärfarbe",
|
|
26
|
+
"yuv.shell.admin.theme.section.primary.label": "Primärfarbe",
|
|
27
|
+
"yuv.shell.admin.theme.section.primary.preview": "Vorschau",
|
|
28
|
+
"yuv.shell.admin.theme.section.primary.preview.button.primary": "Primär",
|
|
29
|
+
"yuv.shell.admin.theme.section.primary.preview.button.secondary": "Sekundär",
|
|
30
|
+
"yuv.shell.admin.theme.section.primary.preview.button.tertiary": "Tertiär",
|
|
31
|
+
"yuv.shell.admin.theme.section.primary.preview.hc-note": "Im Modus mit hohem Kontrast wird eine feste, barrierefreie Farbpalette verwendet – die Primärfarbe hat hier keine Auswirkung.",
|
|
32
|
+
"yuv.shell.admin.theme.section.primary.preview.mode": "Vorschaumodus",
|
|
33
|
+
"yuv.shell.admin.theme.section.primary.preview.mode.dark": "Dunkel",
|
|
34
|
+
"yuv.shell.admin.theme.section.primary.preview.mode.light": "Hell",
|
|
35
|
+
"yuv.shell.admin.theme.section.primary.preview.swatch.container": "Primärcontainer",
|
|
36
|
+
"yuv.shell.admin.theme.section.primary.preview.swatch.primary": "Primär",
|
|
13
37
|
"yuv.shell.cmd.app.open": "'{{title}}' öffnen",
|
|
14
38
|
"yuv.shell.cmd.logout": "Abmelden",
|
|
15
39
|
"yuv.shell.cmd.open.settings": "Einstellungen öffnen",
|
|
40
|
+
"yuv.shell.cmd.search.empty": "Keine Objekte gefunden",
|
|
41
|
+
"yuv.shell.cmd.search.error": "Die Suche ist fehlgeschlagen",
|
|
42
|
+
"yuv.shell.cmd.search.exit": "Suche verlassen",
|
|
43
|
+
"yuv.shell.cmd.search.hint": "Mindestens {{min}} Zeichen eingeben",
|
|
44
|
+
"yuv.shell.cmd.search.mode": "Suche",
|
|
45
|
+
"yuv.shell.cmd.search.placeholder": "Objekte durchsuchen",
|
|
16
46
|
"yuv.shell.logo.aria.label": "yuuvis",
|
|
17
47
|
"yuv.shell.nav.group.tools": "Werkzeuge",
|
|
18
48
|
"yuv.shell.notifications.button.remove": "Benachrichtigung entfernen",
|
package/lib/assets/i18n/en.json
CHANGED
|
@@ -10,9 +10,39 @@
|
|
|
10
10
|
"yuv.shell.action.manage-flavors.button.remove": "Remove",
|
|
11
11
|
"yuv.shell.action.manage-flavors.text": "These are the types that are used or available for the current object.",
|
|
12
12
|
"yuv.shell.action.manage-flavors.title": "Manage types",
|
|
13
|
+
"yuv.shell.admin.theme.icon.error.read": "The selected file could not be read.",
|
|
14
|
+
"yuv.shell.admin.theme.icon.error.type": "Please select a valid SVG file.",
|
|
15
|
+
"yuv.shell.admin.theme.section.brand.description": "The brand color is used for prominent branded surfaces such as the app logo background.",
|
|
16
|
+
"yuv.shell.admin.theme.section.brand.headline": "Brand colors",
|
|
17
|
+
"yuv.shell.admin.theme.section.brand.label": "Brand color",
|
|
18
|
+
"yuv.shell.admin.theme.section.icon.description": "Upload or paste the SVG markup used as the application logo.",
|
|
19
|
+
"yuv.shell.admin.theme.section.icon.headline": "App icon",
|
|
20
|
+
"yuv.shell.admin.theme.section.icon.label": "SVG markup",
|
|
21
|
+
"yuv.shell.admin.theme.section.icon.offset.label": "Inner offset",
|
|
22
|
+
"yuv.shell.admin.theme.section.icon.upload": "Upload SVG",
|
|
23
|
+
"yuv.shell.admin.theme.section.on-brand.label": "Color on brand",
|
|
24
|
+
"yuv.shell.admin.theme.section.primary.description": "The primary color is the source color the application color scheme is generated from, for both light and dark mode.",
|
|
25
|
+
"yuv.shell.admin.theme.section.primary.headline": "Primary color",
|
|
26
|
+
"yuv.shell.admin.theme.section.primary.label": "Primary color",
|
|
27
|
+
"yuv.shell.admin.theme.section.primary.preview": "Preview",
|
|
28
|
+
"yuv.shell.admin.theme.section.primary.preview.button.primary": "Primary",
|
|
29
|
+
"yuv.shell.admin.theme.section.primary.preview.button.secondary": "Secondary",
|
|
30
|
+
"yuv.shell.admin.theme.section.primary.preview.button.tertiary": "Tertiary",
|
|
31
|
+
"yuv.shell.admin.theme.section.primary.preview.hc-note": "High contrast mode uses a fixed, accessible color palette — the primary color has no effect here.",
|
|
32
|
+
"yuv.shell.admin.theme.section.primary.preview.mode": "Preview mode",
|
|
33
|
+
"yuv.shell.admin.theme.section.primary.preview.mode.dark": "Dark",
|
|
34
|
+
"yuv.shell.admin.theme.section.primary.preview.mode.light": "Light",
|
|
35
|
+
"yuv.shell.admin.theme.section.primary.preview.swatch.container": "Primary container",
|
|
36
|
+
"yuv.shell.admin.theme.section.primary.preview.swatch.primary": "Primary",
|
|
13
37
|
"yuv.shell.cmd.app.open": "Open '{{title}}'",
|
|
14
38
|
"yuv.shell.cmd.logout": "Log out",
|
|
15
39
|
"yuv.shell.cmd.open.settings": "Open settings",
|
|
40
|
+
"yuv.shell.cmd.search.empty": "No objects found",
|
|
41
|
+
"yuv.shell.cmd.search.error": "The search failed",
|
|
42
|
+
"yuv.shell.cmd.search.exit": "Leave search",
|
|
43
|
+
"yuv.shell.cmd.search.hint": "Enter at least {{min}} characters",
|
|
44
|
+
"yuv.shell.cmd.search.mode": "Search",
|
|
45
|
+
"yuv.shell.cmd.search.placeholder": "Search objects",
|
|
16
46
|
"yuv.shell.logo.aria.label": "yuuvis",
|
|
17
47
|
"yuv.shell.nav.group.tools": "Tools",
|
|
18
48
|
"yuv.shell.notifications.button.remove": "Remove notification",
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuuvis/client-shell",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.24.0",
|
|
4
4
|
"author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@angular/common": "^21.2.19",
|
|
8
8
|
"@angular/core": "^21.2.19",
|
|
9
9
|
"@angular/service-worker": "^21.2.19",
|
|
10
|
-
"@yuuvis/client-core": "^3.
|
|
11
|
-
"@yuuvis/client-shell-core": "^3.
|
|
12
|
-
"@yuuvis/client-framework": "^3.
|
|
10
|
+
"@yuuvis/client-core": "^3.24.0",
|
|
11
|
+
"@yuuvis/client-shell-core": "^3.24.0",
|
|
12
|
+
"@yuuvis/client-framework": "^3.24.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"tslib": "^2.3.0"
|
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
"types": "./types/yuuvis-client-shell.d.ts",
|
|
26
26
|
"default": "./fesm2022/yuuvis-client-shell.mjs"
|
|
27
27
|
},
|
|
28
|
+
"./admin": {
|
|
29
|
+
"types": "./types/yuuvis-client-shell-admin.d.ts",
|
|
30
|
+
"default": "./fesm2022/yuuvis-client-shell-admin.mjs"
|
|
31
|
+
},
|
|
28
32
|
"./widget-dashboard": {
|
|
29
33
|
"types": "./types/yuuvis-client-shell-widget-dashboard.d.ts",
|
|
30
34
|
"default": "./fesm2022/yuuvis-client-shell-widget-dashboard.mjs"
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as _angular_forms from '@angular/forms';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
4
|
+
import { ClientShellTheming } from '@yuuvis/client-shell-core';
|
|
5
|
+
|
|
6
|
+
/** Payload emitted by `yuv-theme-admin` on every edit of the theme form. */
|
|
7
|
+
interface ThemeAdminChange {
|
|
8
|
+
/** The current theming configuration reflected by the form. */
|
|
9
|
+
config: ClientShellTheming;
|
|
10
|
+
/** Whether the form is currently valid. */
|
|
11
|
+
valid: boolean;
|
|
12
|
+
/** Whether the form has unsaved edits relative to the last applied `theme` input. */
|
|
13
|
+
dirty: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Reusable form for editing the shell theming configuration (primary/brand colors
|
|
18
|
+
* and app icon). It is a pure editor: it neither persists nor live-applies the
|
|
19
|
+
* theme. It reflects the `theme` input into a form and emits a {@link ThemeAdminChange}
|
|
20
|
+
* on every edit — the host decides what to do with it (preview, persist, ...).
|
|
21
|
+
*/
|
|
22
|
+
declare class ThemeAdminComponent {
|
|
23
|
+
#private;
|
|
24
|
+
/** The persisted/applied theming configuration the form is (re)initialized from. */
|
|
25
|
+
theme: _angular_core.InputSignal<ClientShellTheming | undefined>;
|
|
26
|
+
/** Emitted (debounced) whenever the form changes, carrying the config and its state. */
|
|
27
|
+
themeChange: _angular_core.OutputEmitterRef<ThemeAdminChange>;
|
|
28
|
+
/** Forced color-scheme for the primary preview only — lets the admin inspect their
|
|
29
|
+
* color choices in light and dark without changing the global app mode. */
|
|
30
|
+
previewMode: _angular_core.WritableSignal<"light" | "dark">;
|
|
31
|
+
/**
|
|
32
|
+
* True while any high-contrast theme is active (manually selected or OS-driven).
|
|
33
|
+
* In HC the source color is ignored — the theme hard-codes its own WCAG-tuned
|
|
34
|
+
* palette — so the light/dark preview toggle is disabled and its forced
|
|
35
|
+
* color-scheme yields to HC (see the SCSS overrides).
|
|
36
|
+
*/
|
|
37
|
+
isHighContrast: _angular_core.Signal<boolean>;
|
|
38
|
+
iconError: _angular_core.WritableSignal<string | null>;
|
|
39
|
+
iconPreview: _angular_core.WritableSignal<SafeHtml | null>;
|
|
40
|
+
/** current inner offset (percent), mirrored from the form to drive the live preview padding */
|
|
41
|
+
iconOffset: _angular_core.WritableSignal<number>;
|
|
42
|
+
readonly maxIconOffset = 25;
|
|
43
|
+
themeForm: _angular_forms.FormGroup<{
|
|
44
|
+
sourceColor: _angular_forms.FormControl<string | null>;
|
|
45
|
+
brandColor: _angular_forms.FormControl<string | null>;
|
|
46
|
+
onBrandColor: _angular_forms.FormControl<string | null>;
|
|
47
|
+
appIcon: _angular_forms.FormControl<string | null>;
|
|
48
|
+
appIconOffset: _angular_forms.FormControl<number | null>;
|
|
49
|
+
}>;
|
|
50
|
+
constructor();
|
|
51
|
+
/** open a file picker for an SVG file and load its markup into the app-icon field */
|
|
52
|
+
uploadIcon(): void;
|
|
53
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeAdminComponent, never>;
|
|
54
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThemeAdminComponent, "yuv-theme-admin", never, { "theme": { "alias": "theme"; "required": false; "isSignal": true; }; }, { "themeChange": "themeChange"; }, never, never, true, never>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { ThemeAdminComponent };
|
|
58
|
+
export type { ThemeAdminChange };
|
|
@@ -4,7 +4,7 @@ import * as rxjs from 'rxjs';
|
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { OnInit, TemplateRef, InjectionToken, EnvironmentProviders } from '@angular/core';
|
|
7
|
-
import { App, ClientShellConfig } from '@yuuvis/client-shell-core';
|
|
7
|
+
import { App, ClientShellConfig, CommandPaletteSlotItem } from '@yuuvis/client-shell-core';
|
|
8
8
|
import { Router, Route, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
9
9
|
import { GridWidget } from '@yuuvis/client-framework/widget-grid';
|
|
10
10
|
|
|
@@ -123,6 +123,32 @@ declare class ShellLogoComponent {
|
|
|
123
123
|
static ɵcmp: i0.ɵɵComponentDeclaration<ShellLogoComponent, "yuv-shell-logo", never, {}, {}, never, never, true, never>;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
/**
|
|
127
|
+
* Renders one slot of a command palette search hit through the property renderer registered for
|
|
128
|
+
* its property or field type — so a date shows formatted, a catalog value shows its label and an
|
|
129
|
+
* organization field shows the user's name, just like in the object lists.
|
|
130
|
+
*
|
|
131
|
+
* Not used directly: register it with {@link provideShellCommandPaletteRenderer}.
|
|
132
|
+
*/
|
|
133
|
+
declare class CommandPaletteSlotComponent {
|
|
134
|
+
/** The slot as resolved from the hit's object config. */
|
|
135
|
+
item: i0.InputSignal<CommandPaletteSlotItem>;
|
|
136
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandPaletteSlotComponent, never>;
|
|
137
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandPaletteSlotComponent, "yuv-command-palette-slot", never, { "item": { "alias": "item"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Renders the command palette's search hits through the property renderers of the client framework,
|
|
141
|
+
* instead of showing their raw values.
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* ```typescript
|
|
145
|
+
* export const appConfig: ApplicationConfig = {
|
|
146
|
+
* providers: [provideShellCommandPaletteRenderer()]
|
|
147
|
+
* };
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
declare const provideShellCommandPaletteRenderer: () => EnvironmentProviders;
|
|
151
|
+
|
|
126
152
|
declare class InertDirective {
|
|
127
153
|
private elRef;
|
|
128
154
|
inert: i0.InputSignal<boolean>;
|
|
@@ -151,5 +177,5 @@ declare class DialogTrackingComponent {
|
|
|
151
177
|
}
|
|
152
178
|
declare const closeDialogGuard: (component: DialogTrackingComponent, currentRoute: ActivatedRouteSnapshot, nextState: RouterStateSnapshot) => boolean;
|
|
153
179
|
|
|
154
|
-
export { ClientShellComponent, ClientShellService, DialogTrackingComponent, InertDirective, ManageFlavorsAction, SHELL_ACTION_BUTTONS_CONFIG, ShellLogoComponent, ShellWidgetsService, YuvAppHeaderSlotDirective, YuvClientShellModule, clientShellRoutes, closeDialogGuard, provideShellActionButtons };
|
|
180
|
+
export { ClientShellComponent, ClientShellService, CommandPaletteSlotComponent, DialogTrackingComponent, InertDirective, ManageFlavorsAction, SHELL_ACTION_BUTTONS_CONFIG, ShellLogoComponent, ShellWidgetsService, YuvAppHeaderSlotDirective, YuvClientShellModule, clientShellRoutes, closeDialogGuard, provideShellActionButtons, provideShellCommandPaletteRenderer };
|
|
155
181
|
export type { AppHeaderSlot, ShellActionButton, ShellActionButtonConfigAPI };
|