@juice-js/layout 2.3.0-alpha.2 → 2.3.0-alpha.3

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/README.md CHANGED
@@ -2,6 +2,38 @@
2
2
 
3
3
  This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.1.0.
4
4
 
5
+ ## Theme and palettes
6
+
7
+ The layout owns the app's colours, so the shell and every Juice page package (notifications, audit, observability…)
8
+ show the same palette, light and dark. With Material 3, include the theme once in the app's global styles:
9
+
10
+ ```scss
11
+ @use '@juice-js/layout' as layout;
12
+
13
+ @include layout.theme(); // teal (default) and indigo
14
+ @include layout.theme((default: indigo, density: -1)); // another default, denser
15
+ @include layout.theme((palettes: (brand: $brand))); // add your own, beside the built-in ones
16
+ ```
17
+
18
+ `theme()` emits:
19
+ - **Material 3:** `mat.theme()` for the default palette, and again under `[data-juice-palette="<name>"]` for each one. The colours are `light-dark()` pairs; the dark mode switch puts `.dark` (`color-scheme: dark`) on `body`.
20
+ - **The layout's components:** toolbar, sidenav, menus and scrollbars, from Material's system colours.
21
+ - **Shared tokens** for the page packages, on the same elements: `--juice-bg`, `--juice-surface`, `--juice-border`, `--juice-text`, `--juice-muted`, `--juice-accent`, `--juice-on-accent`, `--juice-select`, and the tones `--juice-ok`, `--juice-warn`, `--juice-bad`, `--juice-info`, `--juice-none`, each with a `-bg` tint. A package reads them with its own fallback: `var(--juice-accent, …)`.
22
+
23
+ Options: `default` (the palette before the viewer picks one), `palettes` (name → `(primary: …, tertiary: …)` M3 palettes, as `ng generate @angular/material:theme-color` writes them; a built-in name replaces that palette), `typography` (Roboto) and `density` (0).
24
+
25
+ At runtime the viewer picks a palette with the palette button beside the dark mode switch. `LayoutService.setPalette(id)` sets `data-juice-palette` on `<html>` and remembers it in the browser; `palette()` is the current one. Configure what the button offers in `LayoutModule.forRoot`:
26
+
27
+ ```ts
28
+ LayoutModule.forRoot(production, {
29
+ brand: 'Acme',
30
+ defaultPalette: 'indigo', // match layout.theme((default: …)), so the menu marks the right one
31
+ palettes: [...LAYOUT_PALETTES, { id: 'brand', name: 'Brand', color: '#c2410c' }],
32
+ }),
33
+ ```
34
+
35
+ With one palette there is no button. The Material 2 mixins of 1.x (`layout-component-themes`, `layout-component-colors`) still work for apps not on Material 3 yet; they get no palettes and no `--juice-*` tokens.
36
+
5
37
  ## Toolbar search: `SearchablePage`
6
38
 
7
39
  The shell's toolbar hosts one search box, shared by every page. It appears only while the
@@ -2,9 +2,9 @@ import * as i0 from '@angular/core';
2
2
  import { InjectionToken, signal, Optional, Injectable, inject, computed, viewChild, ChangeDetectionStrategy, Component, booleanAttribute, HostListener, Input, Directive, input, ChangeDetectorRef, DestroyRef, HostBinding, effect, untracked, NgModule } from '@angular/core';
3
3
  import * as i1 from '@juice-js/core';
4
4
  import { TenantService, AsyncDialog } from '@juice-js/core';
5
- import * as i2$2 from '@angular/material/dialog';
5
+ import * as i2$1 from '@angular/material/dialog';
6
6
  import { MatDialog, MatDialogModule } from '@angular/material/dialog';
7
- import * as i4$1 from '@angular/cdk/layout';
7
+ import * as i4$2 from '@angular/cdk/layout';
8
8
  import { Breakpoints } from '@angular/cdk/layout';
9
9
  import * as i1$1 from '@angular/common';
10
10
  import { DOCUMENT, CommonModule } from '@angular/common';
@@ -12,7 +12,7 @@ import * as i3$1 from '@angular/router';
12
12
  import { Router, NavigationEnd, RouterModule } from '@angular/router';
13
13
  import * as i2 from '@angular/material/icon';
14
14
  import { MatIconModule } from '@angular/material/icon';
15
- import * as i2$1 from '@ngx-translate/core';
15
+ import * as i5 from '@ngx-translate/core';
16
16
  import { TranslatePipe, TranslateDirective } from '@ngx-translate/core';
17
17
  import { trigger, transition, style, animate, state } from '@angular/animations';
18
18
  import * as i8 from '@angular/material/toolbar';
@@ -23,6 +23,8 @@ import * as i3 from '@angular/material/button';
23
23
  import { MatButtonModule } from '@angular/material/button';
24
24
  import * as i4 from '@angular/material/tooltip';
25
25
  import { MatTooltipModule } from '@angular/material/tooltip';
26
+ import * as i4$1 from '@angular/material/menu';
27
+ import { MatMenuModule } from '@angular/material/menu';
26
28
  import * as i7 from '@angular/material/list';
27
29
  import { MatListModule } from '@angular/material/list';
28
30
  import * as i3$2 from '@angular/material/expansion';
@@ -47,11 +49,17 @@ class LayoutConfig {
47
49
  this.defaultLanguage = "en-US";
48
50
  this.defaultMenuOpen = false;
49
51
  this.pageSwitcher = true;
52
+ this.palettes = [...LAYOUT_PALETTES];
50
53
  if (options) {
51
54
  Object.assign(this, options);
52
55
  }
53
56
  }
54
57
  }
58
+ /** The palettes `layout.theme()` ships. */
59
+ const LAYOUT_PALETTES = [
60
+ { id: "teal", name: "Teal", color: "#0f766e" },
61
+ { id: "indigo", name: "Indigo", color: "#4f46e5" },
62
+ ];
55
63
  const IS_PRODUCTION = new InjectionToken('production');
56
64
  /**
57
65
  * Components an app adds to the toolbar, before the dark mode switch (a notification bell): provide each with `multi: true`.
@@ -62,6 +70,7 @@ const LAYOUT_TOOLBAR_ITEMS = new InjectionToken('LAYOUT_TOOLBAR_ITEMS');
62
70
  class LayoutService {
63
71
  static { this.DARK_MODE = "IS_DARK_MODE"; }
64
72
  static { this.MENU_OPEN = "IS_MENU_OPEN"; }
73
+ static { this.PALETTE = "JUICE_PALETTE"; }
65
74
  get tenantIdentifier() {
66
75
  return this._tenantIdentifier();
67
76
  }
@@ -75,11 +84,55 @@ class LayoutService {
75
84
  ...(ngDevMode ? [{ debugName: "_tenantIdentifier" }] : /* istanbul ignore next */ []));
76
85
  this._tenant = signal(null, /* @ts-ignore */
77
86
  ...(ngDevMode ? [{ debugName: "_tenant" }] : /* istanbul ignore next */ []));
87
+ this._palette = signal(null, /* @ts-ignore */
88
+ ...(ngDevMode ? [{ debugName: "_palette" }] : /* istanbul ignore next */ []));
89
+ /** The palette in use: the viewer's choice, else LayoutConfig.defaultPalette; null means the stylesheet's default. */
90
+ this.palette = this._palette.asReadonly();
78
91
  tenantService?.getTenantInfo().then(tenantInfo => {
79
92
  this._tenantIdentifier.set(tenantInfo?.identifier ?? "");
80
93
  this._tenant.set(tenantInfo);
81
94
  });
82
95
  this._options = options ?? new LayoutConfig();
96
+ this.applyPalette(this.storedPalette() ?? this._options.defaultPalette ?? null);
97
+ }
98
+ /** The palettes the viewer can pick from (LayoutConfig.palettes). */
99
+ palettes() {
100
+ // A config given as a plain object (not new LayoutConfig()) may have none.
101
+ return this._options.palettes ?? [...LAYOUT_PALETTES];
102
+ }
103
+ /**
104
+ * Switches every page to a palette and remembers it in this browser: it sets `data-juice-palette` on `<html>`, which
105
+ * `layout.theme()` and the Juice pages' tokens follow. Null goes back to the app's default.
106
+ */
107
+ setPalette(id) {
108
+ try {
109
+ if (id)
110
+ localStorage.setItem(LayoutService.PALETTE, id);
111
+ else
112
+ localStorage.removeItem(LayoutService.PALETTE);
113
+ }
114
+ catch {
115
+ // Storage blocked: the choice lasts until the page reloads.
116
+ }
117
+ this.applyPalette(id ?? this._options.defaultPalette ?? null);
118
+ }
119
+ storedPalette() {
120
+ try {
121
+ const id = localStorage.getItem(LayoutService.PALETTE);
122
+ return id && this.palettes().some(p => p.id === id) ? id : null;
123
+ }
124
+ catch {
125
+ return null;
126
+ }
127
+ }
128
+ applyPalette(id) {
129
+ this._palette.set(id);
130
+ if (typeof document === "undefined")
131
+ return;
132
+ if (id)
133
+ document.documentElement.setAttribute("data-juice-palette", id);
134
+ else
135
+ document.documentElement.removeAttribute("data-juice-palette");
83
136
  }
84
137
  getThemeMode() {
85
138
  let mode = localStorage.getItem(LayoutService.DARK_MODE);
@@ -420,7 +473,7 @@ class PageSwitcherComponent {
420
473
  this.list()?.nativeElement.querySelector(`#${this.optionId(index)}`)?.scrollIntoView({ block: 'nearest' });
421
474
  }
422
475
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageSwitcherComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
423
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: PageSwitcherComponent, isStandalone: false, selector: "juice-page-switcher", viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"switcher\" (keydown)=\"onKeydown($event)\">\n <div class=\"field\">\n <mat-icon aria-hidden=\"true\">search</mat-icon>\n <input type=\"text\" role=\"combobox\" aria-autocomplete=\"list\" aria-expanded=\"true\"\n aria-controls=\"juice-page-switcher-list\" autocomplete=\"off\" spellcheck=\"false\"\n [attr.aria-activedescendant]=\"results()[selected()] ? optionId(selected()) : null\"\n [placeholder]=\"'Go to page\u2026' | translate\" [value]=\"query()\"\n (input)=\"onInput($any($event.target).value)\">\n <kbd class=\"hint\">Esc</kbd>\n </div>\n <ul #list id=\"juice-page-switcher-list\" role=\"listbox\" [attr.aria-label]=\"'Pages' | translate\">\n @for (page of results(); track page.id + page.routerLink; let i = $index) {\n <li role=\"option\" [id]=\"optionId(i)\" [attr.aria-selected]=\"i === selected()\" [class.selected]=\"i === selected()\"\n (mousemove)=\"selected.set(i)\" (mousedown)=\"$event.preventDefault()\" (click)=\"service.go(page)\">\n <mat-icon aria-hidden=\"true\">{{ page.icon }}</mat-icon>\n <span class=\"label\">{{ page.label }}</span>\n @if (page.group) {\n <span class=\"group\">{{ page.group }}</span>\n }\n @if (page.shortcut) {\n <span class=\"keys\" [attr.aria-label]=\"('Shortcut' | translate) + ' ' + page.shortcut\">\n @for (key of keys(page.shortcut); track $index) { <kbd>{{ key }}</kbd> }\n </span>\n }\n </li>\n } @empty {\n <li class=\"empty\" role=\"presentation\">{{ 'No pages match' | translate }}</li>\n }\n </ul>\n</div>\n", styles: [":host{display:block}.switcher{display:flex;flex-direction:column;max-height:70vh;color:var(--jps-text, var(--mat-sys-on-surface, rgba(0, 0, 0, .87)))}.field{display:flex;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid var(--jps-line, var(--mat-sys-outline-variant, rgba(0, 0, 0, .12)))}.field mat-icon{color:var(--jps-muted, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6)))}.field input{flex:1;min-width:0;height:52px;border:0;outline:0;background:transparent;color:inherit;font:inherit;font-size:1rem}ul{list-style:none;margin:0;padding:6px;overflow-y:auto}li{display:flex;align-items:center;gap:12px;min-height:40px;padding:0 10px;border-radius:8px;cursor:pointer}li mat-icon{color:var(--jps-muted, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6)));flex:none}li .label{flex:none}li .group{color:var(--jps-muted, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6)));font-size:.85em;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}li .keys{margin-left:auto;display:flex;gap:4px;flex:none}li.selected{background:var(--jps-selected, var(--mat-sys-secondary-container, rgba(0, 0, 0, .06)))}li.empty{cursor:default;color:var(--jps-muted, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6)));justify-content:center}kbd{display:inline-block;min-width:1.4em;padding:1px 6px;border:1px solid var(--jps-line, var(--mat-sys-outline-variant, rgba(0, 0, 0, .12)));border-bottom-width:2px;border-radius:4px;font:500 .75rem/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-align:center;color:var(--jps-muted, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6)))}.hint{flex:none}\n"], dependencies: [{ kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
476
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: PageSwitcherComponent, isStandalone: false, selector: "juice-page-switcher", viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"switcher\" (keydown)=\"onKeydown($event)\">\n <div class=\"field\">\n <mat-icon aria-hidden=\"true\">search</mat-icon>\n <input type=\"text\" role=\"combobox\" aria-autocomplete=\"list\" aria-expanded=\"true\"\n aria-controls=\"juice-page-switcher-list\" autocomplete=\"off\" spellcheck=\"false\"\n [attr.aria-activedescendant]=\"results()[selected()] ? optionId(selected()) : null\"\n [placeholder]=\"'Go to page\u2026' | translate\" [value]=\"query()\"\n (input)=\"onInput($any($event.target).value)\">\n <kbd class=\"hint\">Esc</kbd>\n </div>\n <ul #list id=\"juice-page-switcher-list\" role=\"listbox\" [attr.aria-label]=\"'Pages' | translate\">\n @for (page of results(); track page.id + page.routerLink; let i = $index) {\n <li role=\"option\" [id]=\"optionId(i)\" [attr.aria-selected]=\"i === selected()\" [class.selected]=\"i === selected()\"\n (mousemove)=\"selected.set(i)\" (mousedown)=\"$event.preventDefault()\" (click)=\"service.go(page)\">\n <mat-icon aria-hidden=\"true\">{{ page.icon }}</mat-icon>\n <span class=\"label\">{{ page.label }}</span>\n @if (page.group) {\n <span class=\"group\">{{ page.group }}</span>\n }\n @if (page.shortcut) {\n <span class=\"keys\" [attr.aria-label]=\"('Shortcut' | translate) + ' ' + page.shortcut\">\n @for (key of keys(page.shortcut); track $index) { <kbd>{{ key }}</kbd> }\n </span>\n }\n </li>\n } @empty {\n <li class=\"empty\" role=\"presentation\">{{ 'No pages match' | translate }}</li>\n }\n </ul>\n</div>\n", styles: [":host{display:block}.switcher{display:flex;flex-direction:column;max-height:70vh;color:var(--jps-text, var(--mat-sys-on-surface, rgba(0, 0, 0, .87)))}.field{display:flex;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid var(--jps-line, var(--mat-sys-outline-variant, rgba(0, 0, 0, .12)))}.field mat-icon{color:var(--jps-muted, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6)))}.field input{flex:1;min-width:0;height:52px;border:0;outline:0;background:transparent;color:inherit;font:inherit;font-size:1rem}ul{list-style:none;margin:0;padding:6px;overflow-y:auto}li{display:flex;align-items:center;gap:12px;min-height:40px;padding:0 10px;border-radius:8px;cursor:pointer}li mat-icon{color:var(--jps-muted, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6)));flex:none}li .label{flex:none}li .group{color:var(--jps-muted, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6)));font-size:.85em;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}li .keys{margin-left:auto;display:flex;gap:4px;flex:none}li.selected{background:var(--jps-selected, var(--mat-sys-secondary-container, rgba(0, 0, 0, .06)))}li.empty{cursor:default;color:var(--jps-muted, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6)));justify-content:center}kbd{display:inline-block;min-width:1.4em;padding:1px 6px;border:1px solid var(--jps-line, var(--mat-sys-outline-variant, rgba(0, 0, 0, .12)));border-bottom-width:2px;border-radius:4px;font:500 .75rem/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-align:center;color:var(--jps-muted, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, .6)))}.hint{flex:none}\n"], dependencies: [{ kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
424
477
  }
425
478
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageSwitcherComponent, decorators: [{
426
479
  type: Component,
@@ -570,13 +623,33 @@ class DarkModeComponent {
570
623
  this.name = this.names.get(mode) ?? "";
571
624
  }
572
625
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DarkModeComponent, deps: [{ token: LayoutService }], target: i0.ɵɵFactoryTarget.Component }); }
573
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: DarkModeComponent, isStandalone: false, selector: "juice-dark-mode", ngImport: i0, template: "<button mat-icon-button (click)=\"toggleDarkMode()\" matTooltip=\"{{ name | translate }}\" matTooltipPosition=\"left\"><mat-icon>{{icon}}</mat-icon></button>", dependencies: [{ kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
626
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: DarkModeComponent, isStandalone: false, selector: "juice-dark-mode", ngImport: i0, template: "<button mat-icon-button (click)=\"toggleDarkMode()\" matTooltip=\"{{ name | translate }}\" matTooltipPosition=\"left\"><mat-icon>{{icon}}</mat-icon></button>", dependencies: [{ kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
574
627
  }
575
628
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DarkModeComponent, decorators: [{
576
629
  type: Component,
577
630
  args: [{ selector: 'juice-dark-mode', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<button mat-icon-button (click)=\"toggleDarkMode()\" matTooltip=\"{{ name | translate }}\" matTooltipPosition=\"left\"><mat-icon>{{icon}}</mat-icon></button>" }]
578
631
  }], ctorParameters: () => [{ type: LayoutService }] });
579
632
 
633
+ /** The palette menu beside the dark mode switch: every page follows the palette picked here. Hidden with one palette. */
634
+ class PaletteSwitchComponent {
635
+ constructor() {
636
+ this.service = inject(LayoutService);
637
+ this.palettes = this.service.palettes();
638
+ /** The palette in use; without a choice or a configured default, the first one (the stylesheet's default). */
639
+ this.current = computed(() => this.service.palette() ?? this.palettes[0]?.id, /* @ts-ignore */
640
+ ...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
641
+ }
642
+ select(id) {
643
+ this.service.setPalette(id);
644
+ }
645
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PaletteSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
646
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: PaletteSwitchComponent, isStandalone: false, selector: "juice-palette-switch", ngImport: i0, template: "@if (palettes.length > 1) {\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" matTooltip=\"{{ 'Colours' | translate }}\" matTooltipPosition=\"left\"\n [attr.aria-label]=\"'Colours' | translate\" data-testid=\"palette-switch\">\n <mat-icon>palette</mat-icon>\n </button>\n <mat-menu #menu=\"matMenu\" xPosition=\"before\">\n @for (p of palettes; track p.id) {\n <button mat-menu-item (click)=\"select(p.id)\" role=\"menuitemradio\" [attr.aria-checked]=\"p.id === current()\">\n <span class=\"swatch\" [class.current]=\"p.id === current()\" [style.background]=\"p.color\"></span>\n <span class=\"name\" [class.current]=\"p.id === current()\">{{ p.name | translate }}</span>\n </button>\n }\n </mat-menu>\n}\n", styles: [".swatch{display:inline-block;width:18px;height:18px;margin-right:16px;border-radius:50%;vertical-align:middle;box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 25%,transparent)}.swatch.current{box-shadow:0 0 0 2px var(--mat-sys-surface-container, #fff),0 0 0 4px currentColor}.name{vertical-align:middle}.name.current{font-weight:600}\n"], dependencies: [{ kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: i4$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i4$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
647
+ }
648
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PaletteSwitchComponent, decorators: [{
649
+ type: Component,
650
+ args: [{ selector: 'juice-palette-switch', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "@if (palettes.length > 1) {\n <button mat-icon-button [matMenuTriggerFor]=\"menu\" matTooltip=\"{{ 'Colours' | translate }}\" matTooltipPosition=\"left\"\n [attr.aria-label]=\"'Colours' | translate\" data-testid=\"palette-switch\">\n <mat-icon>palette</mat-icon>\n </button>\n <mat-menu #menu=\"matMenu\" xPosition=\"before\">\n @for (p of palettes; track p.id) {\n <button mat-menu-item (click)=\"select(p.id)\" role=\"menuitemradio\" [attr.aria-checked]=\"p.id === current()\">\n <span class=\"swatch\" [class.current]=\"p.id === current()\" [style.background]=\"p.color\"></span>\n <span class=\"name\" [class.current]=\"p.id === current()\">{{ p.name | translate }}</span>\n </button>\n }\n </mat-menu>\n}\n", styles: [".swatch{display:inline-block;width:18px;height:18px;margin-right:16px;border-radius:50%;vertical-align:middle;box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 25%,transparent)}.swatch.current{box-shadow:0 0 0 2px var(--mat-sys-surface-container, #fff),0 0 0 4px currentColor}.name{vertical-align:middle}.name.current{font-weight:600}\n"] }]
651
+ }] });
652
+
580
653
  class TooltipComponent {
581
654
  constructor(elementRef) {
582
655
  this.elementRef = elementRef;
@@ -957,13 +1030,13 @@ class NavMenuComponent {
957
1030
  this.isExpanded = this.layout.isMenuOpen();
958
1031
  }
959
1032
  }
960
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NavMenuComponent, deps: [{ token: i1.MenuService }, { token: LayoutService }, { token: i1.TenantService }, { token: i3$1.ActivatedRoute }, { token: i4$1.BreakpointObserver }, { token: i0.ChangeDetectorRef }, { token: PageSwitcherService }], target: i0.ɵɵFactoryTarget.Component }); }
961
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: NavMenuComponent, isStandalone: false, selector: "juice-nav-menu", ngImport: i0, template: "<mat-nav-list class=\"menu-scroll\" (mouseenter)=\"mouseEnter()\" (mouseleave)=\"mouseLeave()\">\n @for (item of menuItems; track item) {\n @if (!groups.has(item)) {\n <mat-list-item\n routerLink=\"{{ item.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact:true}\">\n <mat-icon matListItemIcon color=\"accent\">{{ item.icon }}</mat-icon>\n <span matListItemTitle style=\"margin-left: 4px;\"> {{ item.label }}@if (isExpanded) {<juice-menu-badge [badge]=\"badges.get(item.id)\" [menuId]=\"item.id\"></juice-menu-badge>}</span>\n @if (!isExpanded) {\n <juice-menu-badge [badge]=\"badges.get(item.id)\" [folded]=\"true\" [menuId]=\"item.id\"></juice-menu-badge>\n }\n </mat-list-item>\n } @else {\n <juice-expandable-menu\n [item]=\"item\" [isExpanded]=\"isExpanded\"></juice-expandable-menu>\n }\n }\n</mat-nav-list>\n<mat-divider></mat-divider>\n<mat-action-list class=\"list-horizontal bottom-menu\">\n @if (settingUrl) {\n <a mat-list-item [href]=\"settingUrl\"\n matTooltip=\"{{'Settings' | translate}}\" matTooltipPosition=\"right\" [matTooltipDisabled]=\"isExpanded\">\n <mat-icon>settings</mat-icon>\n </a>\n }\n @if (!isMobile) {\n <button mat-list-item (click)=\"toggle()\">\n <mat-icon [style.transform]= \"isExpanded ? 'rotate(-180deg)':'rotate(0)'\">double_arrow</mat-icon>\n </button>\n }\n</mat-action-list>", styles: [":host ::ng-deep{display:flex;flex-direction:column;justify-content:space-between;height:100%}:host ::ng-deep .menu-scroll{overflow-y:auto;overflow-x:hidden;flex:1}:host ::ng-deep .menu-scroll .mat-mdc-list-item{position:relative}:host ::ng-deep .menu-scroll .mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{margin-right:10px}:host ::ng-deep .list-horizontal{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end}:host ::ng-deep .list-horizontal .mat-mdc-list-item{width:auto;flex:1 auto}:host ::ng-deep .list-horizontal .mat-mdc-list-item .mdc-list-item__content{display:flex;justify-content:center}:host ::ng-deep .list-horizontal .mat-mdc-list-item .mdc-list-item__content .mat-mdc-list-item-unscoped-content{padding-top:5px}:host ::ng-deep .mat-mdc-list-base{padding:0}\n"], dependencies: [{ kind: "directive", type: i3$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i3$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i7.MatActionList, selector: "mat-action-list", exportAs: ["matActionList"] }, { kind: "component", type: i7.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i7.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i7.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "component", type: i7.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "directive", type: i7.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: ExpandableMenuComponent, selector: "juice-expandable-menu", inputs: ["isExpanded", "item"] }, { kind: "component", type: MenuBadgeComponent, selector: "juice-menu-badge", inputs: ["badge", "folded", "menuId"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
1033
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NavMenuComponent, deps: [{ token: i1.MenuService }, { token: LayoutService }, { token: i1.TenantService }, { token: i3$1.ActivatedRoute }, { token: i4$2.BreakpointObserver }, { token: i0.ChangeDetectorRef }, { token: PageSwitcherService }], target: i0.ɵɵFactoryTarget.Component }); }
1034
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: NavMenuComponent, isStandalone: false, selector: "juice-nav-menu", ngImport: i0, template: "<mat-nav-list class=\"menu-scroll\" (mouseenter)=\"mouseEnter()\" (mouseleave)=\"mouseLeave()\">\n @for (item of menuItems; track item) {\n @if (!groups.has(item)) {\n <mat-list-item\n routerLink=\"{{ item.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact:true}\">\n <mat-icon matListItemIcon color=\"accent\">{{ item.icon }}</mat-icon>\n <span matListItemTitle style=\"margin-left: 4px;\"> {{ item.label }}@if (isExpanded) {<juice-menu-badge [badge]=\"badges.get(item.id)\" [menuId]=\"item.id\"></juice-menu-badge>}</span>\n @if (!isExpanded) {\n <juice-menu-badge [badge]=\"badges.get(item.id)\" [folded]=\"true\" [menuId]=\"item.id\"></juice-menu-badge>\n }\n </mat-list-item>\n } @else {\n <juice-expandable-menu\n [item]=\"item\" [isExpanded]=\"isExpanded\"></juice-expandable-menu>\n }\n }\n</mat-nav-list>\n<mat-divider></mat-divider>\n<mat-action-list class=\"list-horizontal bottom-menu\">\n @if (settingUrl) {\n <a mat-list-item [href]=\"settingUrl\"\n matTooltip=\"{{'Settings' | translate}}\" matTooltipPosition=\"right\" [matTooltipDisabled]=\"isExpanded\">\n <mat-icon>settings</mat-icon>\n </a>\n }\n @if (!isMobile) {\n <button mat-list-item (click)=\"toggle()\">\n <mat-icon [style.transform]= \"isExpanded ? 'rotate(-180deg)':'rotate(0)'\">double_arrow</mat-icon>\n </button>\n }\n</mat-action-list>", styles: [":host ::ng-deep{display:flex;flex-direction:column;justify-content:space-between;height:100%}:host ::ng-deep .menu-scroll{overflow-y:auto;overflow-x:hidden;flex:1}:host ::ng-deep .menu-scroll .mat-mdc-list-item{position:relative}:host ::ng-deep .menu-scroll .mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{margin-right:10px}:host ::ng-deep .list-horizontal{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end}:host ::ng-deep .list-horizontal .mat-mdc-list-item{width:auto;flex:1 auto}:host ::ng-deep .list-horizontal .mat-mdc-list-item .mdc-list-item__content{display:flex;justify-content:center}:host ::ng-deep .list-horizontal .mat-mdc-list-item .mdc-list-item__content .mat-mdc-list-item-unscoped-content{padding-top:5px}:host ::ng-deep .mat-mdc-list-base{padding:0}\n"], dependencies: [{ kind: "directive", type: i3$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i3$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i7.MatActionList, selector: "mat-action-list", exportAs: ["matActionList"] }, { kind: "component", type: i7.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i7.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i7.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "component", type: i7.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "directive", type: i7.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: ExpandableMenuComponent, selector: "juice-expandable-menu", inputs: ["isExpanded", "item"] }, { kind: "component", type: MenuBadgeComponent, selector: "juice-menu-badge", inputs: ["badge", "folded", "menuId"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
962
1035
  }
963
1036
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NavMenuComponent, decorators: [{
964
1037
  type: Component,
965
1038
  args: [{ selector: 'juice-nav-menu', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<mat-nav-list class=\"menu-scroll\" (mouseenter)=\"mouseEnter()\" (mouseleave)=\"mouseLeave()\">\n @for (item of menuItems; track item) {\n @if (!groups.has(item)) {\n <mat-list-item\n routerLink=\"{{ item.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact:true}\">\n <mat-icon matListItemIcon color=\"accent\">{{ item.icon }}</mat-icon>\n <span matListItemTitle style=\"margin-left: 4px;\"> {{ item.label }}@if (isExpanded) {<juice-menu-badge [badge]=\"badges.get(item.id)\" [menuId]=\"item.id\"></juice-menu-badge>}</span>\n @if (!isExpanded) {\n <juice-menu-badge [badge]=\"badges.get(item.id)\" [folded]=\"true\" [menuId]=\"item.id\"></juice-menu-badge>\n }\n </mat-list-item>\n } @else {\n <juice-expandable-menu\n [item]=\"item\" [isExpanded]=\"isExpanded\"></juice-expandable-menu>\n }\n }\n</mat-nav-list>\n<mat-divider></mat-divider>\n<mat-action-list class=\"list-horizontal bottom-menu\">\n @if (settingUrl) {\n <a mat-list-item [href]=\"settingUrl\"\n matTooltip=\"{{'Settings' | translate}}\" matTooltipPosition=\"right\" [matTooltipDisabled]=\"isExpanded\">\n <mat-icon>settings</mat-icon>\n </a>\n }\n @if (!isMobile) {\n <button mat-list-item (click)=\"toggle()\">\n <mat-icon [style.transform]= \"isExpanded ? 'rotate(-180deg)':'rotate(0)'\">double_arrow</mat-icon>\n </button>\n }\n</mat-action-list>", styles: [":host ::ng-deep{display:flex;flex-direction:column;justify-content:space-between;height:100%}:host ::ng-deep .menu-scroll{overflow-y:auto;overflow-x:hidden;flex:1}:host ::ng-deep .menu-scroll .mat-mdc-list-item{position:relative}:host ::ng-deep .menu-scroll .mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{margin-right:10px}:host ::ng-deep .list-horizontal{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end}:host ::ng-deep .list-horizontal .mat-mdc-list-item{width:auto;flex:1 auto}:host ::ng-deep .list-horizontal .mat-mdc-list-item .mdc-list-item__content{display:flex;justify-content:center}:host ::ng-deep .list-horizontal .mat-mdc-list-item .mdc-list-item__content .mat-mdc-list-item-unscoped-content{padding-top:5px}:host ::ng-deep .mat-mdc-list-base{padding:0}\n"] }]
966
- }], ctorParameters: () => [{ type: i1.MenuService }, { type: LayoutService }, { type: i1.TenantService }, { type: i3$1.ActivatedRoute }, { type: i4$1.BreakpointObserver }, { type: i0.ChangeDetectorRef }, { type: PageSwitcherService }] });
1039
+ }], ctorParameters: () => [{ type: i1.MenuService }, { type: LayoutService }, { type: i1.TenantService }, { type: i3$1.ActivatedRoute }, { type: i4$2.BreakpointObserver }, { type: i0.ChangeDetectorRef }, { type: PageSwitcherService }] });
967
1040
 
968
1041
  /**
969
1042
  * The shell's single search box. Mounted once by the toolbar and shared by every page,
@@ -1149,7 +1222,7 @@ class UserProfileComponent {
1149
1222
  return this.oauthService.hasValidAccessToken();
1150
1223
  }
1151
1224
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileComponent, deps: [{ token: ProfileDialogService, optional: true }, { token: LayoutService }, { token: i3$3.OAuthService }, { token: i3$1.Router }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
1152
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: UserProfileComponent, isStandalone: false, selector: "juice-user-profile", host: { properties: { "class.anonymous": "this.anonymous" } }, ngImport: i0, template: "@if (authenticated) {\n <button class=\"user-image\" (click)=\"onClick()\">\n @if (imageUrl && !imageFailed) {\n <img [src]=\"imageUrl\" (error)=\"onImageError()\"/>\n } @else if (initials) {\n <span class=\"user-image-initials\">{{ initials }}</span>\n } @else {\n <mat-icon class=\"user-image-fallback\">account_circle</mat-icon>\n }\n </button>\n} @else {\n <button mat-button class=\"login-button\" (click)=\"login()\">\n <mat-icon>login</mat-icon>\n {{ 'Login' | translate }}\n </button>\n}\n", styles: [":host{height:100%;aspect-ratio:1/1;display:flex;padding:3px;box-sizing:border-box}:host(.anonymous){aspect-ratio:auto;align-items:center}.user-image{flex:1 auto;border:0;padding:0;background:none;container-type:size}.user-image img{width:100%;height:100%;border-radius:50%;object-fit:cover;cursor:pointer}.user-image .user-image-fallback{width:100%;height:100%;font-size:100cqh;line-height:1;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center}.user-image .user-image-initials{width:100%;height:100%;font-size:42cqh;font-weight:600;line-height:1;text-transform:uppercase;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;color:currentColor;background:#0000001f}\n"], dependencies: [{ kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
1225
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: UserProfileComponent, isStandalone: false, selector: "juice-user-profile", host: { properties: { "class.anonymous": "this.anonymous" } }, ngImport: i0, template: "@if (authenticated) {\n <button class=\"user-image\" (click)=\"onClick()\">\n @if (imageUrl && !imageFailed) {\n <img [src]=\"imageUrl\" (error)=\"onImageError()\"/>\n } @else if (initials) {\n <span class=\"user-image-initials\">{{ initials }}</span>\n } @else {\n <mat-icon class=\"user-image-fallback\">account_circle</mat-icon>\n }\n </button>\n} @else {\n <button mat-button class=\"login-button\" (click)=\"login()\">\n <mat-icon>login</mat-icon>\n {{ 'Login' | translate }}\n </button>\n}\n", styles: [":host{height:100%;aspect-ratio:1/1;display:flex;padding:3px;box-sizing:border-box}:host(.anonymous){aspect-ratio:auto;align-items:center}.user-image{flex:1 auto;border:0;padding:0;background:none;container-type:size}.user-image img{width:100%;height:100%;border-radius:50%;object-fit:cover;cursor:pointer}.user-image .user-image-fallback{width:100%;height:100%;font-size:100cqh;line-height:1;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center}.user-image .user-image-initials{width:100%;height:100%;font-size:42cqh;font-weight:600;line-height:1;text-transform:uppercase;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;color:currentColor;background:#0000001f}\n"], dependencies: [{ kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
1153
1226
  }
1154
1227
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileComponent, decorators: [{
1155
1228
  type: Component,
@@ -1253,8 +1326,8 @@ class PageComponent {
1253
1326
  onPageDeactivate() {
1254
1327
  this.search.unbindPage();
1255
1328
  }
1256
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageComponent, deps: [{ token: LayoutService }, { token: SearchService }, { token: PageSwitcherService }, { token: i4$1.BreakpointObserver }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
1257
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: PageComponent, isStandalone: false, selector: "app-page", ngImport: i0, template: "<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content below * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * Delete the template below * * * * * * * * * * -->\n<!-- * * * * * * * to get started with your project! * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<div class=\"container\" [class.mobile]=\"isMobile\">\n <!-- Toolbar -->\n <mat-toolbar color=\"primary\" [style.height]=\"toolbarHeight()\">\n @if (isMobile) {\n <button mat-icon-button (click)=\"toggleSidenav()\" class=\"m-r\">\n <mat-icon aria-hidden=\"false\" fontIcon=\"menu\"></mat-icon>\n </button>\n }\n @if (!isMobile) {\n <a [routerLink]=\"['/',service.tenantIdentifier]\" class=\"nav-link home\">\n <img height=\"40 \" alt=\"{{service.brandName()}} Logo \" [src]=\"service.brandLogo() \" class=\"p-r \" />\n </a>\n }\n @if (!isMobile) {\n <span>{{service.brandName()}}</span>\n }\n <juice-search-bar></juice-search-bar>\n <span class=\"toolbar-spacer \"></span>\n @if (switcher.isEnabled) {\n <button mat-icon-button (click)=\"switcher.open()\" data-testid=\"page-switcher-open\"\n matTooltip=\"{{ 'Go to page' | translate }} (Ctrl+K)\" [attr.aria-label]=\"'Go to page' | translate\">\n <mat-icon>manage_search</mat-icon>\n </button>\n }\n @for (item of toolbarItems; track $index) {\n <ng-container *ngComponentOutlet=\"item\"></ng-container>\n }\n <juice-dark-mode></juice-dark-mode>\n <juice-user-profile></juice-user-profile>\n </mat-toolbar>\n\n <mat-sidenav-container>\n <mat-sidenav [opened]=\"isSnavOpenned\" (closed)=\"isSnavOpenned = false\" #snav\n (navigate)=\"hideSidenavOnMobile\" (click)=\"hideSidenavOnMobile\" (swipeRight)=\"hideSidenavOnMobile\"\n [mode]=\"isMobile ? 'over': 'side' \"\n [@menuTransition]=\" menu.isExpanded ? 'expand' : 'collapsed' \" [fixedInViewport]=\"true\"\n [style.top]=\"isMobile ? toolbarHeight():0\">\n <juice-nav-menu #menu [class.menu-expanded]=\"isSnavOpenned\"\n [class.menu-collapsed]=\"!isSnavOpenned\"></juice-nav-menu>\n </mat-sidenav>\n\n <mat-sidenav-content style=\"margin-left: 0;\">\n <router-outlet (activate)=\"onPageActivate($event)\" (deactivate)=\"onPageDeactivate()\"></router-outlet>\n </mat-sidenav-content>\n\n </mat-sidenav-container>\n</div>\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content above * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * End of Placeholder * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->", styles: [":host .toolbar-spacer{flex:1 1 auto}:host .nav-link{display:flex;margin-right:.5em}:host .mat-sidenav-container{display:flex;flex-direction:row}:host .mat-sidenav-container .mat-drawer-side{position:relative;flex:0 auto}:host .mat-sidenav-container .mat-drawer-over{position:fixed}:host .mat-sidenav-container .mat-sidenav-content{flex:1;height:auto}:host .container{display:flex;flex-direction:column}:host .container .mat-toolbar{flex:0 0 auto}:host .container .mat-sidenav-container{flex:1 1 auto;display:flex;flex-direction:row}\n"], dependencies: [{ kind: "directive", type: i3$1.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i3$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i1$1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i9.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i9.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i9.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: DarkModeComponent, selector: "juice-dark-mode" }, { kind: "component", type: NavMenuComponent, selector: "juice-nav-menu" }, { kind: "component", type: SearchBarComponent, selector: "juice-search-bar" }, { kind: "component", type: UserProfileComponent, selector: "juice-user-profile" }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }], animations: [
1329
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageComponent, deps: [{ token: LayoutService }, { token: SearchService }, { token: PageSwitcherService }, { token: i4$2.BreakpointObserver }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
1330
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: PageComponent, isStandalone: false, selector: "app-page", ngImport: i0, template: "<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content below * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * Delete the template below * * * * * * * * * * -->\n<!-- * * * * * * * to get started with your project! * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<div class=\"container\" [class.mobile]=\"isMobile\">\n <!-- Toolbar -->\n <mat-toolbar color=\"primary\" [style.height]=\"toolbarHeight()\">\n @if (isMobile) {\n <button mat-icon-button (click)=\"toggleSidenav()\" class=\"m-r\">\n <mat-icon aria-hidden=\"false\" fontIcon=\"menu\"></mat-icon>\n </button>\n }\n @if (!isMobile) {\n <a [routerLink]=\"['/',service.tenantIdentifier]\" class=\"nav-link home\">\n <img height=\"40 \" alt=\"{{service.brandName()}} Logo \" [src]=\"service.brandLogo() \" class=\"p-r \" />\n </a>\n }\n @if (!isMobile) {\n <span>{{service.brandName()}}</span>\n }\n <juice-search-bar></juice-search-bar>\n <span class=\"toolbar-spacer \"></span>\n @if (switcher.isEnabled) {\n <button mat-icon-button (click)=\"switcher.open()\" data-testid=\"page-switcher-open\"\n matTooltip=\"{{ 'Go to page' | translate }} (Ctrl+K)\" [attr.aria-label]=\"'Go to page' | translate\">\n <mat-icon>manage_search</mat-icon>\n </button>\n }\n @for (item of toolbarItems; track $index) {\n <ng-container *ngComponentOutlet=\"item\"></ng-container>\n }\n <juice-palette-switch></juice-palette-switch>\n <juice-dark-mode></juice-dark-mode>\n <juice-user-profile></juice-user-profile>\n </mat-toolbar>\n\n <mat-sidenav-container>\n <mat-sidenav [opened]=\"isSnavOpenned\" (closed)=\"isSnavOpenned = false\" #snav\n (navigate)=\"hideSidenavOnMobile\" (click)=\"hideSidenavOnMobile\" (swipeRight)=\"hideSidenavOnMobile\"\n [mode]=\"isMobile ? 'over': 'side' \"\n [@menuTransition]=\" menu.isExpanded ? 'expand' : 'collapsed' \" [fixedInViewport]=\"true\"\n [style.top]=\"isMobile ? toolbarHeight():0\">\n <juice-nav-menu #menu [class.menu-expanded]=\"isSnavOpenned\"\n [class.menu-collapsed]=\"!isSnavOpenned\"></juice-nav-menu>\n </mat-sidenav>\n\n <mat-sidenav-content style=\"margin-left: 0;\">\n <router-outlet (activate)=\"onPageActivate($event)\" (deactivate)=\"onPageDeactivate()\"></router-outlet>\n </mat-sidenav-content>\n\n </mat-sidenav-container>\n</div>\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content above * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * End of Placeholder * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->", styles: [":host .toolbar-spacer{flex:1 1 auto}:host .nav-link{display:flex;margin-right:.5em}:host .mat-sidenav-container{display:flex;flex-direction:row}:host .mat-sidenav-container .mat-drawer-side{position:relative;flex:0 auto}:host .mat-sidenav-container .mat-drawer-over{position:fixed}:host .mat-sidenav-container .mat-sidenav-content{flex:1;height:auto}:host .container{display:flex;flex-direction:column}:host .container .mat-toolbar{flex:0 0 auto}:host .container .mat-sidenav-container{flex:1 1 auto;display:flex;flex-direction:row}\n"], dependencies: [{ kind: "directive", type: i3$1.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i3$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i1$1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i8.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i9.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i9.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i9.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: DarkModeComponent, selector: "juice-dark-mode" }, { kind: "component", type: PaletteSwitchComponent, selector: "juice-palette-switch" }, { kind: "component", type: NavMenuComponent, selector: "juice-nav-menu" }, { kind: "component", type: SearchBarComponent, selector: "juice-search-bar" }, { kind: "component", type: UserProfileComponent, selector: "juice-user-profile" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], animations: [
1258
1331
  trigger('menuTransition', [
1259
1332
  state('expand', style({
1260
1333
  width: '220px'
@@ -1322,12 +1395,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
1322
1395
  animate('0.15s')
1323
1396
  ])
1324
1397
  ])
1325
- ], changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content below * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * Delete the template below * * * * * * * * * * -->\n<!-- * * * * * * * to get started with your project! * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<div class=\"container\" [class.mobile]=\"isMobile\">\n <!-- Toolbar -->\n <mat-toolbar color=\"primary\" [style.height]=\"toolbarHeight()\">\n @if (isMobile) {\n <button mat-icon-button (click)=\"toggleSidenav()\" class=\"m-r\">\n <mat-icon aria-hidden=\"false\" fontIcon=\"menu\"></mat-icon>\n </button>\n }\n @if (!isMobile) {\n <a [routerLink]=\"['/',service.tenantIdentifier]\" class=\"nav-link home\">\n <img height=\"40 \" alt=\"{{service.brandName()}} Logo \" [src]=\"service.brandLogo() \" class=\"p-r \" />\n </a>\n }\n @if (!isMobile) {\n <span>{{service.brandName()}}</span>\n }\n <juice-search-bar></juice-search-bar>\n <span class=\"toolbar-spacer \"></span>\n @if (switcher.isEnabled) {\n <button mat-icon-button (click)=\"switcher.open()\" data-testid=\"page-switcher-open\"\n matTooltip=\"{{ 'Go to page' | translate }} (Ctrl+K)\" [attr.aria-label]=\"'Go to page' | translate\">\n <mat-icon>manage_search</mat-icon>\n </button>\n }\n @for (item of toolbarItems; track $index) {\n <ng-container *ngComponentOutlet=\"item\"></ng-container>\n }\n <juice-dark-mode></juice-dark-mode>\n <juice-user-profile></juice-user-profile>\n </mat-toolbar>\n\n <mat-sidenav-container>\n <mat-sidenav [opened]=\"isSnavOpenned\" (closed)=\"isSnavOpenned = false\" #snav\n (navigate)=\"hideSidenavOnMobile\" (click)=\"hideSidenavOnMobile\" (swipeRight)=\"hideSidenavOnMobile\"\n [mode]=\"isMobile ? 'over': 'side' \"\n [@menuTransition]=\" menu.isExpanded ? 'expand' : 'collapsed' \" [fixedInViewport]=\"true\"\n [style.top]=\"isMobile ? toolbarHeight():0\">\n <juice-nav-menu #menu [class.menu-expanded]=\"isSnavOpenned\"\n [class.menu-collapsed]=\"!isSnavOpenned\"></juice-nav-menu>\n </mat-sidenav>\n\n <mat-sidenav-content style=\"margin-left: 0;\">\n <router-outlet (activate)=\"onPageActivate($event)\" (deactivate)=\"onPageDeactivate()\"></router-outlet>\n </mat-sidenav-content>\n\n </mat-sidenav-container>\n</div>\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content above * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * End of Placeholder * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->", styles: [":host .toolbar-spacer{flex:1 1 auto}:host .nav-link{display:flex;margin-right:.5em}:host .mat-sidenav-container{display:flex;flex-direction:row}:host .mat-sidenav-container .mat-drawer-side{position:relative;flex:0 auto}:host .mat-sidenav-container .mat-drawer-over{position:fixed}:host .mat-sidenav-container .mat-sidenav-content{flex:1;height:auto}:host .container{display:flex;flex-direction:column}:host .container .mat-toolbar{flex:0 0 auto}:host .container .mat-sidenav-container{flex:1 1 auto;display:flex;flex-direction:row}\n"] }]
1326
- }], ctorParameters: () => [{ type: LayoutService }, { type: SearchService }, { type: PageSwitcherService }, { type: i4$1.BreakpointObserver }, { type: i0.ChangeDetectorRef }] });
1398
+ ], changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content below * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * Delete the template below * * * * * * * * * * -->\n<!-- * * * * * * * to get started with your project! * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<div class=\"container\" [class.mobile]=\"isMobile\">\n <!-- Toolbar -->\n <mat-toolbar color=\"primary\" [style.height]=\"toolbarHeight()\">\n @if (isMobile) {\n <button mat-icon-button (click)=\"toggleSidenav()\" class=\"m-r\">\n <mat-icon aria-hidden=\"false\" fontIcon=\"menu\"></mat-icon>\n </button>\n }\n @if (!isMobile) {\n <a [routerLink]=\"['/',service.tenantIdentifier]\" class=\"nav-link home\">\n <img height=\"40 \" alt=\"{{service.brandName()}} Logo \" [src]=\"service.brandLogo() \" class=\"p-r \" />\n </a>\n }\n @if (!isMobile) {\n <span>{{service.brandName()}}</span>\n }\n <juice-search-bar></juice-search-bar>\n <span class=\"toolbar-spacer \"></span>\n @if (switcher.isEnabled) {\n <button mat-icon-button (click)=\"switcher.open()\" data-testid=\"page-switcher-open\"\n matTooltip=\"{{ 'Go to page' | translate }} (Ctrl+K)\" [attr.aria-label]=\"'Go to page' | translate\">\n <mat-icon>manage_search</mat-icon>\n </button>\n }\n @for (item of toolbarItems; track $index) {\n <ng-container *ngComponentOutlet=\"item\"></ng-container>\n }\n <juice-palette-switch></juice-palette-switch>\n <juice-dark-mode></juice-dark-mode>\n <juice-user-profile></juice-user-profile>\n </mat-toolbar>\n\n <mat-sidenav-container>\n <mat-sidenav [opened]=\"isSnavOpenned\" (closed)=\"isSnavOpenned = false\" #snav\n (navigate)=\"hideSidenavOnMobile\" (click)=\"hideSidenavOnMobile\" (swipeRight)=\"hideSidenavOnMobile\"\n [mode]=\"isMobile ? 'over': 'side' \"\n [@menuTransition]=\" menu.isExpanded ? 'expand' : 'collapsed' \" [fixedInViewport]=\"true\"\n [style.top]=\"isMobile ? toolbarHeight():0\">\n <juice-nav-menu #menu [class.menu-expanded]=\"isSnavOpenned\"\n [class.menu-collapsed]=\"!isSnavOpenned\"></juice-nav-menu>\n </mat-sidenav>\n\n <mat-sidenav-content style=\"margin-left: 0;\">\n <router-outlet (activate)=\"onPageActivate($event)\" (deactivate)=\"onPageDeactivate()\"></router-outlet>\n </mat-sidenav-content>\n\n </mat-sidenav-container>\n</div>\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content above * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * End of Placeholder * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->", styles: [":host .toolbar-spacer{flex:1 1 auto}:host .nav-link{display:flex;margin-right:.5em}:host .mat-sidenav-container{display:flex;flex-direction:row}:host .mat-sidenav-container .mat-drawer-side{position:relative;flex:0 auto}:host .mat-sidenav-container .mat-drawer-over{position:fixed}:host .mat-sidenav-container .mat-sidenav-content{flex:1;height:auto}:host .container{display:flex;flex-direction:column}:host .container .mat-toolbar{flex:0 0 auto}:host .container .mat-sidenav-container{flex:1 1 auto;display:flex;flex-direction:row}\n"] }]
1399
+ }], ctorParameters: () => [{ type: LayoutService }, { type: SearchService }, { type: PageSwitcherService }, { type: i4$2.BreakpointObserver }, { type: i0.ChangeDetectorRef }] });
1327
1400
 
1328
1401
  class PageNotfoundComponent {
1329
1402
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageNotfoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1330
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: PageNotfoundComponent, isStandalone: false, selector: "juice-page-notfound", ngImport: i0, template: "<div class=\"container pt-4\">\n <h1>{{'Not found' | translate }}</h1>\n <p>{{ 'Your requested resource could not be found' | translate}}</p>\n </div>\n ", styles: [""], dependencies: [{ kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
1403
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: PageNotfoundComponent, isStandalone: false, selector: "juice-page-notfound", ngImport: i0, template: "<div class=\"container pt-4\">\n <h1>{{'Not found' | translate }}</h1>\n <p>{{ 'Your requested resource could not be found' | translate}}</p>\n </div>\n ", styles: [""], dependencies: [{ kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
1331
1404
  }
1332
1405
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageNotfoundComponent, decorators: [{
1333
1406
  type: Component,
@@ -1356,6 +1429,7 @@ class LayoutModule {
1356
1429
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1357
1430
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: LayoutModule, declarations: [PageComponent,
1358
1431
  DarkModeComponent,
1432
+ PaletteSwitchComponent,
1359
1433
  NavMenuComponent,
1360
1434
  ExpandableMenuComponent,
1361
1435
  PageNotfoundComponent,
@@ -1374,7 +1448,8 @@ class LayoutModule {
1374
1448
  MatFormFieldModule,
1375
1449
  MatInputModule,
1376
1450
  MatTooltipModule,
1377
- MatDialogModule], exports: [PageComponent,
1451
+ MatDialogModule,
1452
+ MatMenuModule], exports: [PageComponent,
1378
1453
  RouterModule] }); }
1379
1454
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutModule, imports: [RouterModule.forChild(routes),
1380
1455
  CommonModule,
@@ -1387,7 +1462,8 @@ class LayoutModule {
1387
1462
  MatFormFieldModule,
1388
1463
  MatInputModule,
1389
1464
  MatTooltipModule,
1390
- MatDialogModule, RouterModule] }); }
1465
+ MatDialogModule,
1466
+ MatMenuModule, RouterModule] }); }
1391
1467
  }
1392
1468
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutModule, decorators: [{
1393
1469
  type: NgModule,
@@ -1395,6 +1471,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
1395
1471
  declarations: [
1396
1472
  PageComponent,
1397
1473
  DarkModeComponent,
1474
+ PaletteSwitchComponent,
1398
1475
  NavMenuComponent,
1399
1476
  ExpandableMenuComponent,
1400
1477
  PageNotfoundComponent,
@@ -1417,7 +1494,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
1417
1494
  MatFormFieldModule,
1418
1495
  MatInputModule,
1419
1496
  MatTooltipModule,
1420
- MatDialogModule
1497
+ MatDialogModule,
1498
+ MatMenuModule
1421
1499
  ],
1422
1500
  exports: [
1423
1501
  PageComponent,
@@ -1516,7 +1594,7 @@ class UserProfileDialogComponent {
1516
1594
  });
1517
1595
  }
1518
1596
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogComponent, deps: [{ token: i3$3.OAuthService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
1519
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: UserProfileDialogComponent, isStandalone: false, selector: "app-user-profile", ngImport: i0, template: "@if (loggedin) {\n <h3 mat-dialog-title>{{name}}</h3>\n}\n<div mat-dialog-content>\n @if (loggedin) {\n <div>\n @if (name) {\n <p>{{'Welcome' | translate}} {{name}}</p>\n }\n @if (email) {\n <p>{{ 'Email' | translate}}: {{email}}</p>\n }\n <!-- Logout -->\n </div>\n }\n @if (!loggedin) {\n <div>\n <p>{{ 'Please login to view your profile' | translate}}</p>\n </div>\n }\n</div>\n<div mat-dialog-actions>\n @if (loggedin) {\n <button mat-raised-button color=\"primary\" (click)=\"logout()\">{{ 'Logout' | translate}}</button>\n }\n <button mat-button mat-dialog-close cdkFocusInitial>{{ 'Close' | translate}}</button>\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i2$2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i2$2.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i2$2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i2$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
1597
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: UserProfileDialogComponent, isStandalone: false, selector: "app-user-profile", ngImport: i0, template: "@if (loggedin) {\n <h3 mat-dialog-title>{{name}}</h3>\n}\n<div mat-dialog-content>\n @if (loggedin) {\n <div>\n @if (name) {\n <p>{{'Welcome' | translate}} {{name}}</p>\n }\n @if (email) {\n <p>{{ 'Email' | translate}}: {{email}}</p>\n }\n <!-- Logout -->\n </div>\n }\n @if (!loggedin) {\n <div>\n <p>{{ 'Please login to view your profile' | translate}}</p>\n </div>\n }\n</div>\n<div mat-dialog-actions>\n @if (loggedin) {\n <button mat-raised-button color=\"primary\" (click)=\"logout()\">{{ 'Logout' | translate}}</button>\n }\n <button mat-button mat-dialog-close cdkFocusInitial>{{ 'Close' | translate}}</button>\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i2$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i2$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i2$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i2$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
1520
1598
  }
1521
1599
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogComponent, decorators: [{
1522
1600
  type: Component,
@@ -1530,12 +1608,12 @@ class UserProfileDialogService extends ProfileDialogService {
1530
1608
  async open(data) {
1531
1609
  return this.matDialog.open(UserProfileDialogComponent, { position: { top: '50px', right: '10px' } });
1532
1610
  }
1533
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogService, deps: [{ token: i2$2.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable }); }
1611
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogService, deps: [{ token: i2$1.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable }); }
1534
1612
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogService }); }
1535
1613
  }
1536
1614
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogService, decorators: [{
1537
1615
  type: Injectable
1538
- }], ctorParameters: () => [{ type: i2$2.MatDialog }] });
1616
+ }], ctorParameters: () => [{ type: i2$1.MatDialog }] });
1539
1617
 
1540
1618
  class UserProfileDialogModule {
1541
1619
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
@@ -1584,5 +1662,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
1584
1662
  * Generated bundle index. Do not edit.
1585
1663
  */
1586
1664
 
1587
- export { DevGuard, ExpandableMenuComponent, LAYOUT_TOOLBAR_ITEMS, LayoutModule, LayoutService, MenuBadgeComponent, MenuBadgeService, NavMenuComponent, PageComponent, PageNotfoundComponent, PageSwitcherComponent, PageSwitcherService, ProfileDialogService, SearchService, TooltipDirective, TooltipModule, TooltipPosition, UserProfileDialogModule, flatten, isSearchablePage };
1665
+ export { DevGuard, ExpandableMenuComponent, LAYOUT_PALETTES, LAYOUT_TOOLBAR_ITEMS, LayoutModule, LayoutService, MenuBadgeComponent, MenuBadgeService, NavMenuComponent, PageComponent, PageNotfoundComponent, PageSwitcherComponent, PageSwitcherService, ProfileDialogService, SearchService, TooltipDirective, TooltipModule, TooltipPosition, UserProfileDialogModule, flatten, isSearchablePage };
1588
1666
  //# sourceMappingURL=juice-js-layout.mjs.map