@juice-js/layout 1.0.0-alpha.8 → 1.1.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.
Files changed (49) hide show
  1. package/fesm2022/juice-js-layout.mjs +181 -126
  2. package/fesm2022/juice-js-layout.mjs.map +1 -1
  3. package/package.json +7 -8
  4. package/styles/_theming.scss +21 -21
  5. package/types/juice-js-layout.d.ts +257 -0
  6. package/esm2022/juice-js-layout.mjs +0 -5
  7. package/esm2022/lib/components/dark-mode/dark-mode.component.mjs +0 -53
  8. package/esm2022/lib/components/expandable-menu/expandable-menu.component.mjs +0 -27
  9. package/esm2022/lib/components/nav-menu/nav-menu.component.mjs +0 -67
  10. package/esm2022/lib/components/search-bar/search-bar.component.mjs +0 -48
  11. package/esm2022/lib/components/tooltip/tooltip.component.mjs +0 -48
  12. package/esm2022/lib/components/tooltip/tooltip.directive.mjs +0 -84
  13. package/esm2022/lib/components/tooltip/tooltip.module.mjs +0 -31
  14. package/esm2022/lib/components/user-profile/profile-dialog.service.mjs +0 -4
  15. package/esm2022/lib/components/user-profile/user-profile.component.mjs +0 -61
  16. package/esm2022/lib/components/user-profile/user-profile.model.mjs +0 -2
  17. package/esm2022/lib/components/user-profile-dialog/user-profile-dialog.component.mjs +0 -51
  18. package/esm2022/lib/components/user-profile-dialog/user-profile-dialog.module.mjs +0 -46
  19. package/esm2022/lib/components/user-profile-dialog/user-profile-dialog.service.mjs +0 -19
  20. package/esm2022/lib/dev.guard.mjs +0 -25
  21. package/esm2022/lib/layout.config.mjs +0 -22
  22. package/esm2022/lib/layout.module.mjs +0 -111
  23. package/esm2022/lib/layout.service.mjs +0 -75
  24. package/esm2022/lib/page/page.component.mjs +0 -118
  25. package/esm2022/lib/pages/page-notfound/page-notfound.component.mjs +0 -12
  26. package/esm2022/lib/services/search.service.mjs +0 -37
  27. package/esm2022/public-api.mjs +0 -16
  28. package/index.d.ts +0 -5
  29. package/lib/components/dark-mode/dark-mode.component.d.ts +0 -17
  30. package/lib/components/expandable-menu/expandable-menu.component.d.ts +0 -13
  31. package/lib/components/nav-menu/nav-menu.component.d.ts +0 -24
  32. package/lib/components/search-bar/search-bar.component.d.ts +0 -11
  33. package/lib/components/tooltip/tooltip.component.d.ts +0 -15
  34. package/lib/components/tooltip/tooltip.directive.d.ts +0 -28
  35. package/lib/components/tooltip/tooltip.module.d.ts +0 -9
  36. package/lib/components/user-profile/profile-dialog.service.d.ts +0 -3
  37. package/lib/components/user-profile/user-profile.component.d.ts +0 -14
  38. package/lib/components/user-profile/user-profile.model.d.ts +0 -6
  39. package/lib/components/user-profile-dialog/user-profile-dialog.component.d.ts +0 -14
  40. package/lib/components/user-profile-dialog/user-profile-dialog.module.d.ts +0 -11
  41. package/lib/components/user-profile-dialog/user-profile-dialog.service.d.ts +0 -9
  42. package/lib/dev.guard.d.ts +0 -8
  43. package/lib/layout.config.d.ts +0 -28
  44. package/lib/layout.module.d.ts +0 -29
  45. package/lib/layout.service.d.ts +0 -22
  46. package/lib/page/page.component.d.ts +0 -16
  47. package/lib/pages/page-notfound/page-notfound.component.d.ts +0 -5
  48. package/lib/services/search.service.d.ts +0 -12
  49. package/public-api.d.ts +0 -12
@@ -1,37 +1,37 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Injectable, Optional, Component, booleanAttribute, Directive, Input, HostListener, NgModule, inject } from '@angular/core';
2
+ import { InjectionToken, Optional, Injectable, ChangeDetectionStrategy, Component, booleanAttribute, HostListener, Input, Directive, inject, NgModule } from '@angular/core';
3
3
  import * as i1 from '@juice-js/core';
4
4
  import { AsyncDialog } from '@juice-js/core';
5
5
  import * as i4$2 from '@angular/cdk/layout';
6
6
  import { Breakpoints } from '@angular/cdk/layout';
7
7
  import { trigger, transition, style, animate, state } from '@angular/animations';
8
- import * as i1$1 from '@angular/router';
8
+ import * as i1$2 from '@angular/router';
9
9
  import { NavigationStart, RouterModule } from '@angular/router';
10
- import * as i2$1 from '@angular/common';
11
- import { CommonModule } from '@angular/common';
12
- import * as i2 from '@angular/material/icon';
10
+ import * as i3 from '@angular/material/icon';
13
11
  import { MatIconModule } from '@angular/material/icon';
14
- import * as i6 from '@angular/material/toolbar';
12
+ import * as i5$1 from '@angular/material/toolbar';
15
13
  import { MatToolbarModule } from '@angular/material/toolbar';
16
- import * as i7$1 from '@angular/material/sidenav';
14
+ import * as i6$1 from '@angular/material/sidenav';
17
15
  import { MatSidenavModule } from '@angular/material/sidenav';
18
- import * as i3 from '@angular/material/button';
16
+ import * as i3$1 from '@angular/material/button';
19
17
  import { MatButtonModule } from '@angular/material/button';
20
18
  import * as i4 from '@angular/material/tooltip';
21
19
  import { MatTooltipModule } from '@angular/material/tooltip';
22
20
  import * as i5 from '@ngx-translate/core';
23
- import { TranslateModule } from '@ngx-translate/core';
24
- import * as i7 from '@angular/material/list';
21
+ import { TranslatePipe, TranslateDirective } from '@ngx-translate/core';
22
+ import * as i1$1 from '@angular/common';
23
+ import { CommonModule } from '@angular/common';
24
+ import * as i6 from '@angular/material/list';
25
25
  import { MatListModule } from '@angular/material/list';
26
- import * as i8 from '@angular/material/divider';
27
26
  import * as i4$1 from '@angular/material/expansion';
28
27
  import { MatExpansionModule } from '@angular/material/expansion';
29
- import * as i3$1 from '@angular/forms';
28
+ import * as i2 from '@angular/forms';
30
29
  import { FormsModule } from '@angular/forms';
30
+ import { filter } from 'rxjs/operators';
31
31
  import * as i3$2 from 'angular-oauth2-oidc';
32
32
  import { MatFormFieldModule } from '@angular/material/form-field';
33
33
  import { MatInputModule } from '@angular/material/input';
34
- import * as i2$2 from '@angular/material/dialog';
34
+ import * as i2$1 from '@angular/material/dialog';
35
35
  import { MatDialogModule } from '@angular/material/dialog';
36
36
 
37
37
  var ThemeMode;
@@ -113,17 +113,17 @@ class LayoutService {
113
113
  userImageUrl(username) {
114
114
  return this._options.userImageUrl ? this._options.userImageUrl.replace("{username}", username) : "";
115
115
  }
116
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayoutService, deps: [{ token: LayoutConfig, optional: true }, { token: i1.TenantService }], target: i0.ɵɵFactoryTarget.Injectable }); }
117
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayoutService, providedIn: 'root' }); }
116
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutService, deps: [{ token: LayoutConfig, optional: true }, { token: i1.TenantService }], target: i0.ɵɵFactoryTarget.Injectable }); }
117
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutService, providedIn: 'root' }); }
118
118
  }
119
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayoutService, decorators: [{
119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutService, decorators: [{
120
120
  type: Injectable,
121
121
  args: [{
122
122
  providedIn: 'root'
123
123
  }]
124
- }], ctorParameters: function () { return [{ type: LayoutConfig, decorators: [{
124
+ }], ctorParameters: () => [{ type: LayoutConfig, decorators: [{
125
125
  type: Optional
126
- }] }, { type: i1.TenantService }]; } });
126
+ }] }, { type: i1.TenantService }] });
127
127
 
128
128
  class DarkModeComponent {
129
129
  constructor(service) {
@@ -162,13 +162,13 @@ class DarkModeComponent {
162
162
  this.icon = this.icons.get(mode) ?? "";
163
163
  this.name = this.names.get(mode) ?? "";
164
164
  }
165
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DarkModeComponent, deps: [{ token: LayoutService }], target: i0.ɵɵFactoryTarget.Component }); }
166
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DarkModeComponent, 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]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
165
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DarkModeComponent, deps: [{ token: LayoutService }], target: i0.ɵɵFactoryTarget.Component }); }
166
+ 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: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$1.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 }); }
167
167
  }
168
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DarkModeComponent, decorators: [{
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DarkModeComponent, decorators: [{
169
169
  type: Component,
170
- args: [{ selector: 'juice-dark-mode', template: "<button mat-icon-button (click)=\"toggleDarkMode()\" matTooltip=\"{{ name | translate }}\" matTooltipPosition=\"left\"><mat-icon>{{icon}}</mat-icon></button>" }]
171
- }], ctorParameters: function () { return [{ type: LayoutService }]; } });
170
+ 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>" }]
171
+ }], ctorParameters: () => [{ type: LayoutService }] });
172
172
 
173
173
  class TooltipComponent {
174
174
  constructor(elementRef) {
@@ -206,13 +206,13 @@ class TooltipComponent {
206
206
  }
207
207
  }
208
208
  }
209
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
210
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TooltipComponent, selector: "tooltip", ngImport: i0, template: "<div #tooltipId *ngIf=\"display\" class=\"tooltip\" [ngClass]=\"['tooltip--'+position]\"\n [style.left]=\"left + 'px'\" [style.top]=\"top + 'px'\">\n {{tooltip}}\n</div>", styles: [".tooltip{position:fixed;background-color:#000;border-radius:4px;color:#fff;font-family:Arial;padding:3px 6px;font-size:13px;z-index:9999}.tooltip:before{content:\"\";width:0;height:0;position:absolute}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip--light{background-color:#fff;color:#000}.tooltip--light:before{border:5px solid white}.tooltip--dark{background-color:#000;color:#fff}.tooltip--dark:before{border:5px solid black}.tooltip--below{transform:translate(-50%);margin-top:7px}.tooltip--below:before{border-left-color:transparent;border-right-color:transparent;border-top:none;left:calc(50% - 5px);top:-5px}.tooltip--above{transform:translate(-50%,-100%);margin-bottom:7px}.tooltip--above:before{border-left-color:transparent;border-right-color:transparent;border-bottom:none;left:calc(50% - 5px);bottom:-5px}.tooltip--left{transform:translate(calc(-100% - 7px),-50%)}.tooltip--left:before{border-top-color:transparent;border-bottom-color:transparent;border-right:none;right:-5px;top:calc(50% - 5px)}.tooltip--right{transform:translateY(-50%);margin-left:7px}.tooltip--right:before{border-top-color:transparent;border-bottom-color:transparent;border-left:none;left:-5px;top:calc(50% - 5px)}.tooltip--dynamic{margin-left:20px}.tooltip--dynamic:before{display:none}\n"], dependencies: [{ kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
209
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TooltipComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
210
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: TooltipComponent, isStandalone: false, selector: "tooltip", ngImport: i0, template: "@if (display) {\n <div #tooltipId class=\"tooltip\" [ngClass]=\"['tooltip--'+position]\"\n [style.left]=\"left + 'px'\" [style.top]=\"top + 'px'\">\n {{tooltip}}\n </div>\n}", styles: [".tooltip{position:fixed;background-color:#000;border-radius:4px;color:#fff;font-family:Arial;padding:3px 6px;font-size:13px;z-index:9999}.tooltip:before{content:\"\";width:0;height:0;position:absolute}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip--light{background-color:#fff;color:#000}.tooltip--light:before{border:5px solid white}.tooltip--dark{background-color:#000;color:#fff}.tooltip--dark:before{border:5px solid black}.tooltip--below{transform:translate(-50%);margin-top:7px}.tooltip--below:before{border-left-color:transparent;border-right-color:transparent;border-top:none;left:calc(50% - 5px);top:-5px}.tooltip--above{transform:translate(-50%,-100%);margin-bottom:7px}.tooltip--above:before{border-left-color:transparent;border-right-color:transparent;border-bottom:none;left:calc(50% - 5px);bottom:-5px}.tooltip--left{transform:translate(calc(-100% - 7px),-50%)}.tooltip--left:before{border-top-color:transparent;border-bottom-color:transparent;border-right:none;right:-5px;top:calc(50% - 5px)}.tooltip--right{transform:translateY(-50%);margin-left:7px}.tooltip--right:before{border-top-color:transparent;border-bottom-color:transparent;border-left:none;left:-5px;top:calc(50% - 5px)}.tooltip--dynamic{margin-left:20px}.tooltip--dynamic:before{display:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
211
211
  }
212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipComponent, decorators: [{
212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TooltipComponent, decorators: [{
213
213
  type: Component,
214
- args: [{ selector: 'tooltip', template: "<div #tooltipId *ngIf=\"display\" class=\"tooltip\" [ngClass]=\"['tooltip--'+position]\"\n [style.left]=\"left + 'px'\" [style.top]=\"top + 'px'\">\n {{tooltip}}\n</div>", styles: [".tooltip{position:fixed;background-color:#000;border-radius:4px;color:#fff;font-family:Arial;padding:3px 6px;font-size:13px;z-index:9999}.tooltip:before{content:\"\";width:0;height:0;position:absolute}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip--light{background-color:#fff;color:#000}.tooltip--light:before{border:5px solid white}.tooltip--dark{background-color:#000;color:#fff}.tooltip--dark:before{border:5px solid black}.tooltip--below{transform:translate(-50%);margin-top:7px}.tooltip--below:before{border-left-color:transparent;border-right-color:transparent;border-top:none;left:calc(50% - 5px);top:-5px}.tooltip--above{transform:translate(-50%,-100%);margin-bottom:7px}.tooltip--above:before{border-left-color:transparent;border-right-color:transparent;border-bottom:none;left:calc(50% - 5px);bottom:-5px}.tooltip--left{transform:translate(calc(-100% - 7px),-50%)}.tooltip--left:before{border-top-color:transparent;border-bottom-color:transparent;border-right:none;right:-5px;top:calc(50% - 5px)}.tooltip--right{transform:translateY(-50%);margin-left:7px}.tooltip--right:before{border-top-color:transparent;border-bottom-color:transparent;border-left:none;left:-5px;top:calc(50% - 5px)}.tooltip--dynamic{margin-left:20px}.tooltip--dynamic:before{display:none}\n"] }]
215
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
214
+ args: [{ selector: 'tooltip', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "@if (display) {\n <div #tooltipId class=\"tooltip\" [ngClass]=\"['tooltip--'+position]\"\n [style.left]=\"left + 'px'\" [style.top]=\"top + 'px'\">\n {{tooltip}}\n </div>\n}", styles: [".tooltip{position:fixed;background-color:#000;border-radius:4px;color:#fff;font-family:Arial;padding:3px 6px;font-size:13px;z-index:9999}.tooltip:before{content:\"\";width:0;height:0;position:absolute}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip--light{background-color:#fff;color:#000}.tooltip--light:before{border:5px solid white}.tooltip--dark{background-color:#000;color:#fff}.tooltip--dark:before{border:5px solid black}.tooltip--below{transform:translate(-50%);margin-top:7px}.tooltip--below:before{border-left-color:transparent;border-right-color:transparent;border-top:none;left:calc(50% - 5px);top:-5px}.tooltip--above{transform:translate(-50%,-100%);margin-bottom:7px}.tooltip--above:before{border-left-color:transparent;border-right-color:transparent;border-bottom:none;left:calc(50% - 5px);bottom:-5px}.tooltip--left{transform:translate(calc(-100% - 7px),-50%)}.tooltip--left:before{border-top-color:transparent;border-bottom-color:transparent;border-right:none;right:-5px;top:calc(50% - 5px)}.tooltip--right{transform:translateY(-50%);margin-left:7px}.tooltip--right:before{border-top-color:transparent;border-bottom-color:transparent;border-left:none;left:-5px;top:calc(50% - 5px)}.tooltip--dynamic{margin-left:20px}.tooltip--dynamic:before{display:none}\n"] }]
215
+ }], ctorParameters: () => [{ type: i0.ElementRef }] });
216
216
 
217
217
  var TooltipPosition;
218
218
  (function (TooltipPosition) {
@@ -271,15 +271,16 @@ class TooltipDirective {
271
271
  this.componentRef = undefined;
272
272
  }
273
273
  }
274
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
275
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "16.2.12", type: TooltipDirective, selector: "[tooltip]", inputs: { tooltip: "tooltip", tooltipPosition: ["tooltipPosition", "tooltipPosition", tooltipPosition], tooltipDisplay: ["tooltipDisplay", "tooltipDisplay", booleanAttribute] }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()" } }, ngImport: i0 }); }
274
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
275
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "22.0.6", type: TooltipDirective, isStandalone: false, selector: "[tooltip]", inputs: { tooltip: "tooltip", tooltipPosition: ["tooltipPosition", "tooltipPosition", tooltipPosition], tooltipDisplay: ["tooltipDisplay", "tooltipDisplay", booleanAttribute] }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()" } }, ngImport: i0 }); }
276
276
  }
277
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipDirective, decorators: [{
277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TooltipDirective, decorators: [{
278
278
  type: Directive,
279
279
  args: [{
280
- selector: '[tooltip]'
280
+ selector: '[tooltip]',
281
+ standalone: false
281
282
  }]
282
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { tooltip: [{
283
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }], propDecorators: { tooltip: [{
283
284
  type: Input
284
285
  }], tooltipPosition: [{
285
286
  type: Input,
@@ -302,13 +303,13 @@ class ExpandableMenuComponent {
302
303
  this.item = {};
303
304
  this.TooltipPosition = TooltipPosition;
304
305
  }
305
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpandableMenuComponent, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component }); }
306
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ExpandableMenuComponent, selector: "juice-expandable-menu", inputs: { isExpanded: "isExpanded", item: "item" }, ngImport: i0, template: "<mat-expansion-panel [expanded]=\"router.isActive(item.routerLink, false)\" [hideToggle]=\"!isExpanded\" [ngClass]=\"router.isActive(item.routerLink, false)?'active':''\">\n <mat-expansion-panel-header >\n <mat-list-item routerLink=\"{{ item.routerLink }}\" [routerLinkActive]=\"['active']\" \n [routerLinkActiveOptions]=\"{exact: true}\">\n <mat-icon matListItemIcon>{{ item.icon }}</mat-icon>\n <span matListItemTitle *ngIf=\"isExpanded\" style=\"margin-left: 4px;\"> {{ item.label }}</span>\n </mat-list-item>\n </mat-expansion-panel-header>\n <mat-nav-list>\n <mat-list-item routerLink=\"{{ subitem.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact: true}\" *ngFor=\" let subitem of item.children \">\n <mat-icon matListItemIcon>{{ subitem.icon }}</mat-icon>\n <span matListItemTitle *ngIf=\"isExpanded\" style=\"margin-left: 4px;\"> {{ subitem.label }}</span>\n </mat-list-item>\n </mat-nav-list>\n</mat-expansion-panel>\n", styles: [":host ::ng-deep .mat-expansion-panel-header{padding:0}:host ::ng-deep .mat-expansion-panel-header .mdc-list-item{padding:0}:host ::ng-deep .mat-expansion-panel-header .mat-expansion-indicator{position:absolute;right:0;padding:16px}:host ::ng-deep .mat-expansion-panel-body{padding:0}:host ::ng-deep .mat-content.mat-content-hide-toggle{margin-right:0}\n"], dependencies: [{ kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i4$1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { 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: "directive", type: i7.MatListItemTitle, selector: "[matListItemTitle]" }] }); }
306
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ExpandableMenuComponent, deps: [{ token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
307
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: ExpandableMenuComponent, isStandalone: false, selector: "juice-expandable-menu", inputs: { isExpanded: "isExpanded", item: "item" }, ngImport: i0, template: "<mat-expansion-panel [expanded]=\"item.routerLink ? router.isActive(item.routerLink, false) : false\" [hideToggle]=\"!isExpanded\" [ngClass]=\"(item.routerLink && router.isActive(item.routerLink, false)) ? 'active' : ''\">\n <mat-expansion-panel-header >\n <mat-list-item routerLink=\"{{ item.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact: true}\">\n <mat-icon matListItemIcon>{{ item.icon }}</mat-icon>\n @if (isExpanded) {\n <span matListItemTitle style=\"margin-left: 4px;\"> {{ item.label }}</span>\n }\n </mat-list-item>\n </mat-expansion-panel-header>\n <mat-nav-list>\n @for ( subitem of item.children ; track subitem) {\n <mat-list-item routerLink=\"{{ subitem.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact: true}\">\n <mat-icon matListItemIcon>{{ subitem.icon }}</mat-icon>\n @if (isExpanded) {\n <span matListItemTitle style=\"margin-left: 4px;\"> {{ subitem.label }}</span>\n }\n </mat-list-item>\n }\n </mat-nav-list>\n</mat-expansion-panel>\n", styles: [":host ::ng-deep .mat-expansion-panel-header{padding:0}:host ::ng-deep .mat-expansion-panel-header .mdc-list-item{padding:0}:host ::ng-deep .mat-expansion-panel-header .mat-expansion-indicator{position:absolute;right:0;padding:16px}:host ::ng-deep .mat-expansion-panel-body{padding:0}:host ::ng-deep .mat-content.mat-content-hide-toggle{margin-right:0}\n"], dependencies: [{ kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i1$2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4$1.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i4$1.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "component", type: i6.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i6.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i6.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "directive", type: i6.MatListItemTitle, selector: "[matListItemTitle]" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
307
308
  }
308
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExpandableMenuComponent, decorators: [{
309
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ExpandableMenuComponent, decorators: [{
309
310
  type: Component,
310
- args: [{ selector: 'juice-expandable-menu', template: "<mat-expansion-panel [expanded]=\"router.isActive(item.routerLink, false)\" [hideToggle]=\"!isExpanded\" [ngClass]=\"router.isActive(item.routerLink, false)?'active':''\">\n <mat-expansion-panel-header >\n <mat-list-item routerLink=\"{{ item.routerLink }}\" [routerLinkActive]=\"['active']\" \n [routerLinkActiveOptions]=\"{exact: true}\">\n <mat-icon matListItemIcon>{{ item.icon }}</mat-icon>\n <span matListItemTitle *ngIf=\"isExpanded\" style=\"margin-left: 4px;\"> {{ item.label }}</span>\n </mat-list-item>\n </mat-expansion-panel-header>\n <mat-nav-list>\n <mat-list-item routerLink=\"{{ subitem.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact: true}\" *ngFor=\" let subitem of item.children \">\n <mat-icon matListItemIcon>{{ subitem.icon }}</mat-icon>\n <span matListItemTitle *ngIf=\"isExpanded\" style=\"margin-left: 4px;\"> {{ subitem.label }}</span>\n </mat-list-item>\n </mat-nav-list>\n</mat-expansion-panel>\n", styles: [":host ::ng-deep .mat-expansion-panel-header{padding:0}:host ::ng-deep .mat-expansion-panel-header .mdc-list-item{padding:0}:host ::ng-deep .mat-expansion-panel-header .mat-expansion-indicator{position:absolute;right:0;padding:16px}:host ::ng-deep .mat-expansion-panel-body{padding:0}:host ::ng-deep .mat-content.mat-content-hide-toggle{margin-right:0}\n"] }]
311
- }], ctorParameters: function () { return [{ type: i1$1.Router }]; }, propDecorators: { isExpanded: [{
311
+ args: [{ selector: 'juice-expandable-menu', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<mat-expansion-panel [expanded]=\"item.routerLink ? router.isActive(item.routerLink, false) : false\" [hideToggle]=\"!isExpanded\" [ngClass]=\"(item.routerLink && router.isActive(item.routerLink, false)) ? 'active' : ''\">\n <mat-expansion-panel-header >\n <mat-list-item routerLink=\"{{ item.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact: true}\">\n <mat-icon matListItemIcon>{{ item.icon }}</mat-icon>\n @if (isExpanded) {\n <span matListItemTitle style=\"margin-left: 4px;\"> {{ item.label }}</span>\n }\n </mat-list-item>\n </mat-expansion-panel-header>\n <mat-nav-list>\n @for ( subitem of item.children ; track subitem) {\n <mat-list-item routerLink=\"{{ subitem.routerLink }}\" [routerLinkActive]=\"['active']\"\n [routerLinkActiveOptions]=\"{exact: true}\">\n <mat-icon matListItemIcon>{{ subitem.icon }}</mat-icon>\n @if (isExpanded) {\n <span matListItemTitle style=\"margin-left: 4px;\"> {{ subitem.label }}</span>\n }\n </mat-list-item>\n }\n </mat-nav-list>\n</mat-expansion-panel>\n", styles: [":host ::ng-deep .mat-expansion-panel-header{padding:0}:host ::ng-deep .mat-expansion-panel-header .mdc-list-item{padding:0}:host ::ng-deep .mat-expansion-panel-header .mat-expansion-indicator{position:absolute;right:0;padding:16px}:host ::ng-deep .mat-expansion-panel-body{padding:0}:host ::ng-deep .mat-content.mat-content-hide-toggle{margin-right:0}\n"] }]
312
+ }], ctorParameters: () => [{ type: i1$2.Router }], propDecorators: { isExpanded: [{
312
313
  type: Input
313
314
  }], item: [{
314
315
  type: Input
@@ -358,13 +359,13 @@ class NavMenuComponent {
358
359
  this.isExpanded = this.layout.isMenuOpen();
359
360
  }
360
361
  }
361
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavMenuComponent, deps: [{ token: i1.MenuService }, { token: LayoutService }, { token: i1.TenantService }, { token: i1$1.ActivatedRoute }, { token: i4$2.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
362
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: NavMenuComponent, selector: "juice-nav-menu", ngImport: i0, template: "<mat-nav-list class=\"menu-scroll\" (mouseenter)=\"mouseEnter()\" (mouseleave)=\"mouseLeave()\">\n <ng-container *ngFor=\"let item of items\">\n <mat-list-item *ngIf=\"!item.children || item.children.length==0\" \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 }}</span>\n </mat-list-item>\n <juice-expandable-menu *ngIf=\"item.children && item.children.length>0\" \n [item]=\"item\" [isExpanded]=\"isExpanded\"></juice-expandable-menu>\n </ng-container>\n</mat-nav-list>\n<mat-divider></mat-divider>\n<mat-action-list class=\"list-horizontal bottom-menu\">\n <a mat-list-item *ngIf=\"settingUrl\" [href]=\"settingUrl\"\n matTooltip=\"{{'Settings' | translate}}\" matTooltipPosition=\"right\" [matTooltipDisabled]=\"isExpanded\">\n <mat-icon>settings</mat-icon>\n </a>\n <button mat-list-item (click)=\"toggle()\" *ngIf=\"!isMobile\">\n <mat-icon [style.transform]= \"isExpanded ? 'rotate(-180deg)':'rotate(0)'\">double_arrow</mat-icon>\n </button>\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 .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: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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: i8.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "directive", type: i7.MatListItemTitle, selector: "[matListItemTitle]" }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: ExpandableMenuComponent, selector: "juice-expandable-menu", inputs: ["isExpanded", "item"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
362
+ 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: i1$2.ActivatedRoute }, { token: i4$2.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
363
+ 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 items; track item) {\n @if (!item.children || item.children.length==0) {\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 }}</span>\n </mat-list-item>\n }\n @if (item.children && item.children.length>0) {\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 .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: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: i1$2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6.MatActionList, selector: "mat-action-list", exportAs: ["matActionList"] }, { kind: "component", type: i6.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i6.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "directive", type: i6.MatListItemIcon, selector: "[matListItemIcon]" }, { kind: "component", type: i6.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "directive", type: i6.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: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
363
364
  }
364
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavMenuComponent, decorators: [{
365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NavMenuComponent, decorators: [{
365
366
  type: Component,
366
- args: [{ selector: 'juice-nav-menu', template: "<mat-nav-list class=\"menu-scroll\" (mouseenter)=\"mouseEnter()\" (mouseleave)=\"mouseLeave()\">\n <ng-container *ngFor=\"let item of items\">\n <mat-list-item *ngIf=\"!item.children || item.children.length==0\" \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 }}</span>\n </mat-list-item>\n <juice-expandable-menu *ngIf=\"item.children && item.children.length>0\" \n [item]=\"item\" [isExpanded]=\"isExpanded\"></juice-expandable-menu>\n </ng-container>\n</mat-nav-list>\n<mat-divider></mat-divider>\n<mat-action-list class=\"list-horizontal bottom-menu\">\n <a mat-list-item *ngIf=\"settingUrl\" [href]=\"settingUrl\"\n matTooltip=\"{{'Settings' | translate}}\" matTooltipPosition=\"right\" [matTooltipDisabled]=\"isExpanded\">\n <mat-icon>settings</mat-icon>\n </a>\n <button mat-list-item (click)=\"toggle()\" *ngIf=\"!isMobile\">\n <mat-icon [style.transform]= \"isExpanded ? 'rotate(-180deg)':'rotate(0)'\">double_arrow</mat-icon>\n </button>\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 .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"] }]
367
- }], ctorParameters: function () { return [{ type: i1.MenuService }, { type: LayoutService }, { type: i1.TenantService }, { type: i1$1.ActivatedRoute }, { type: i4$2.BreakpointObserver }]; } });
367
+ 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 items; track item) {\n @if (!item.children || item.children.length==0) {\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 }}</span>\n </mat-list-item>\n }\n @if (item.children && item.children.length>0) {\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 .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"] }]
368
+ }], ctorParameters: () => [{ type: i1.MenuService }, { type: LayoutService }, { type: i1.TenantService }, { type: i1$2.ActivatedRoute }, { type: i4$2.BreakpointObserver }] });
368
369
 
369
370
  class SearchService {
370
371
  constructor(router) {
@@ -389,15 +390,15 @@ class SearchService {
389
390
  this._callback(searchText, event);
390
391
  }
391
392
  }
392
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchService, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
393
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchService, providedIn: 'root' }); }
393
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SearchService, deps: [{ token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
394
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SearchService, providedIn: 'root' }); }
394
395
  }
395
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchService, decorators: [{
396
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SearchService, decorators: [{
396
397
  type: Injectable,
397
398
  args: [{
398
399
  providedIn: 'root'
399
400
  }]
400
- }], ctorParameters: function () { return [{ type: i1$1.Router }]; } });
401
+ }], ctorParameters: () => [{ type: i1$2.Router }] });
401
402
 
402
403
  class SearchBarComponent {
403
404
  constructor(service) {
@@ -410,8 +411,8 @@ class SearchBarComponent {
410
411
  onSearchTextChange(event) {
411
412
  this.service.callback(this.searchText, event);
412
413
  }
413
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBarComponent, deps: [{ token: SearchService }], target: i0.ɵɵFactoryTarget.Component }); }
414
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SearchBarComponent, selector: "juice-search-bar", ngImport: i0, template: "<div @enableTrigger *ngIf=\"isEnabled()\" class=\"search-container\">\n <input type=\"search\" [(ngModel)] =\"searchText\"\n (keyup)=\"onSearchTextChange($event)\" placeholder=\"Search\">\n <mat-icon *ngIf=\"searchText\" (click)=\"searchText='';onSearchTextChange($event)\" color=\"primary\">\n close</mat-icon>\n</div>", styles: [".search-container{width:200px;min-width:150px;height:100%;margin-left:2rem;margin-right:2rem;position:relative;display:flex;align-items:center;transition:width .2s ease-in-out}.search-container input{border:none;border-radius:100px;padding:5px 3em 5px 16px;line-height:normal;font-size:1rem;width:100%;max-width:240px}.search-container input:focus{border:0;outline:none}.search-container input[type=search]::-webkit-search-decoration,.search-container input[type=search]::-webkit-search-cancel-button,.search-container input[type=search]::-webkit-search-results-button,.search-container input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}.search-container:focus-within,.search-container:has(.mat-icon){width:240px}.search-container .mat-icon{position:absolute;right:.7rem;font-size:1.4rem;cursor:pointer}@media screen and (max-width: 600px){.search-container{margin-left:.5rem;margin-right:.5rem}}\n"], dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.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: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], animations: [
414
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SearchBarComponent, deps: [{ token: SearchService }], target: i0.ɵɵFactoryTarget.Component }); }
415
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: SearchBarComponent, isStandalone: false, selector: "juice-search-bar", ngImport: i0, template: "@if (isEnabled()) {\n <div @enableTrigger class=\"search-container\">\n <input type=\"search\" [(ngModel)] =\"searchText\"\n (keyup)=\"onSearchTextChange($event)\" placeholder=\"Search\">\n @if (searchText) {\n <mat-icon (click)=\"searchText='';onSearchTextChange($event)\" color=\"primary\">\n close</mat-icon>\n }\n </div>\n}", styles: [".search-container{width:200px;min-width:150px;height:100%;margin-left:2rem;margin-right:2rem;position:relative;display:flex;align-items:center;transition:width .2s ease-in-out}.search-container input{border:none;border-radius:100px;padding:5px 3em 5px 16px;line-height:normal;font-size:1rem;width:100%;max-width:240px}.search-container input:focus{border:0;outline:none}.search-container input[type=search]::-webkit-search-decoration,.search-container input[type=search]::-webkit-search-cancel-button,.search-container input[type=search]::-webkit-search-results-button,.search-container input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}.search-container:focus-within,.search-container:has(.mat-icon){width:240px}.search-container .mat-icon{position:absolute;right:.7rem;font-size:1.4rem;cursor:pointer}@media screen and (max-width:600px){.search-container{margin-left:.5rem;margin-right:.5rem}}\n"], dependencies: [{ kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], animations: [
415
416
  trigger('enableTrigger', [
416
417
  transition(':enter', [
417
418
  style({ opacity: 0 }),
@@ -421,9 +422,9 @@ class SearchBarComponent {
421
422
  animate('100ms', style({ opacity: 0 }))
422
423
  ])
423
424
  ]),
424
- ] }); }
425
+ ], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
425
426
  }
426
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SearchBarComponent, decorators: [{
427
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SearchBarComponent, decorators: [{
427
428
  type: Component,
428
429
  args: [{ selector: 'juice-search-bar', animations: [
429
430
  trigger('enableTrigger', [
@@ -435,8 +436,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
435
436
  animate('100ms', style({ opacity: 0 }))
436
437
  ])
437
438
  ]),
438
- ], template: "<div @enableTrigger *ngIf=\"isEnabled()\" class=\"search-container\">\n <input type=\"search\" [(ngModel)] =\"searchText\"\n (keyup)=\"onSearchTextChange($event)\" placeholder=\"Search\">\n <mat-icon *ngIf=\"searchText\" (click)=\"searchText='';onSearchTextChange($event)\" color=\"primary\">\n close</mat-icon>\n</div>", styles: [".search-container{width:200px;min-width:150px;height:100%;margin-left:2rem;margin-right:2rem;position:relative;display:flex;align-items:center;transition:width .2s ease-in-out}.search-container input{border:none;border-radius:100px;padding:5px 3em 5px 16px;line-height:normal;font-size:1rem;width:100%;max-width:240px}.search-container input:focus{border:0;outline:none}.search-container input[type=search]::-webkit-search-decoration,.search-container input[type=search]::-webkit-search-cancel-button,.search-container input[type=search]::-webkit-search-results-button,.search-container input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}.search-container:focus-within,.search-container:has(.mat-icon){width:240px}.search-container .mat-icon{position:absolute;right:.7rem;font-size:1.4rem;cursor:pointer}@media screen and (max-width: 600px){.search-container{margin-left:.5rem;margin-right:.5rem}}\n"] }]
439
- }], ctorParameters: function () { return [{ type: SearchService }]; } });
439
+ ], changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "@if (isEnabled()) {\n <div @enableTrigger class=\"search-container\">\n <input type=\"search\" [(ngModel)] =\"searchText\"\n (keyup)=\"onSearchTextChange($event)\" placeholder=\"Search\">\n @if (searchText) {\n <mat-icon (click)=\"searchText='';onSearchTextChange($event)\" color=\"primary\">\n close</mat-icon>\n }\n </div>\n}", styles: [".search-container{width:200px;min-width:150px;height:100%;margin-left:2rem;margin-right:2rem;position:relative;display:flex;align-items:center;transition:width .2s ease-in-out}.search-container input{border:none;border-radius:100px;padding:5px 3em 5px 16px;line-height:normal;font-size:1rem;width:100%;max-width:240px}.search-container input:focus{border:0;outline:none}.search-container input[type=search]::-webkit-search-decoration,.search-container input[type=search]::-webkit-search-cancel-button,.search-container input[type=search]::-webkit-search-results-button,.search-container input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}.search-container:focus-within,.search-container:has(.mat-icon){width:240px}.search-container .mat-icon{position:absolute;right:.7rem;font-size:1.4rem;cursor:pointer}@media screen and (max-width:600px){.search-container{margin-left:.5rem;margin-right:.5rem}}\n"] }]
440
+ }], ctorParameters: () => [{ type: SearchService }] });
440
441
 
441
442
  class ProfileDialogService extends AsyncDialog {
442
443
  }
@@ -444,40 +445,86 @@ class ProfileDialogService extends AsyncDialog {
444
445
  class UserProfileComponent {
445
446
  constructor(dialogService, layoutService, oauthService) {
446
447
  this.dialogService = dialogService;
448
+ this.layoutService = layoutService;
447
449
  this.oauthService = oauthService;
448
450
  this.imageUrl = "";
451
+ this.imageFailed = false;
452
+ this.initials = "";
453
+ this.isProduction = inject(IS_PRODUCTION);
454
+ this.oauthService.events.pipe(filter(e => e.type === "token_received")).subscribe((e) => {
455
+ if (!this.isProduction)
456
+ console.debug('Token received', e);
457
+ this.initImageUrl();
458
+ });
459
+ }
460
+ ngOnInit() {
449
461
  if (this.hasValidToken()) {
450
- const claims = this.oauthService.getIdentityClaims();
451
- console.debug('Trying to get image from claims');
452
- if (claims["picture"]) {
453
- this.imageUrl = claims["picture"];
454
- }
455
- else if (claims["avatar"]) {
456
- this.imageUrl = claims["avatar"];
462
+ this.initImageUrl();
463
+ }
464
+ else {
465
+ if (!this.isProduction)
466
+ console.debug('No valid token', this.oauthService.hasValidAccessToken(), this.oauthService.hasValidIdToken());
467
+ }
468
+ }
469
+ initImageUrl() {
470
+ if (this.imageUrl) {
471
+ return;
472
+ }
473
+ const claims = this.oauthService.getIdentityClaims();
474
+ this.initials = this.computeInitials(claims);
475
+ if (!this.isProduction)
476
+ console.debug('Trying to get avatar from claims');
477
+ if (claims["picture"]) {
478
+ this.setImageUrl(claims["picture"]);
479
+ }
480
+ else if (claims["avatar"]) {
481
+ this.setImageUrl(claims["avatar"]);
482
+ }
483
+ else {
484
+ const username = claims["preferred_username"];
485
+ if (username) {
486
+ this.setImageUrl(this.layoutService.userImageUrl(username));
457
487
  }
458
488
  else {
459
- const username = claims["preferred_username"];
460
- if (username) {
461
- this.imageUrl = layoutService.userImageUrl(username);
462
- }
463
- else {
464
- this.oauthService.loadDiscoveryDocument().then(() => {
465
- this.oauthService.loadUserProfile().then(info => {
466
- var userProfile = info;
467
- if (userProfile) {
468
- this.imageUrl = layoutService.userImageUrl(userProfile.info.preferred_username);
469
- }
470
- else {
471
- console.debug('No user profile', info);
472
- }
473
- });
474
- });
475
- }
489
+ if (!this.isProduction)
490
+ console.debug('Trying to load user profile to get avatar');
491
+ this.oauthService.loadUserProfile().then(info => {
492
+ var userProfile = info;
493
+ if (userProfile) {
494
+ this.setImageUrl(this.layoutService.userImageUrl(userProfile.info.preferred_username));
495
+ }
496
+ else {
497
+ console.warn('No user profile found', info);
498
+ }
499
+ });
476
500
  }
477
501
  }
478
- else {
479
- console.debug('No valid token');
502
+ }
503
+ setImageUrl(url) {
504
+ this.imageUrl = url ?? "";
505
+ this.imageFailed = false;
506
+ }
507
+ computeInitials(claims) {
508
+ if (!claims) {
509
+ return "";
510
+ }
511
+ const name = claims["name"]
512
+ || [claims["given_name"], claims["family_name"]].filter(Boolean).join(" ")
513
+ || claims["preferred_username"]
514
+ || "";
515
+ const words = String(name).trim().split(/\s+/).filter(Boolean);
516
+ if (words.length === 0) {
517
+ return "";
480
518
  }
519
+ const chars = words.length === 1
520
+ ? words[0].slice(0, 2)
521
+ : words[0][0] + words[words.length - 1][0];
522
+ return chars.toUpperCase();
523
+ }
524
+ onImageError() {
525
+ if (!this.isProduction)
526
+ console.debug('Avatar image failed to load', this.imageUrl);
527
+ this.imageFailed = true;
481
528
  }
482
529
  onClick() {
483
530
  if (this.dialogService) {
@@ -487,15 +534,15 @@ class UserProfileComponent {
487
534
  hasValidToken() {
488
535
  return this.oauthService.hasValidAccessToken() && this.oauthService.hasValidIdToken();
489
536
  }
490
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserProfileComponent, deps: [{ token: ProfileDialogService, optional: true }, { token: LayoutService }, { token: i3$2.OAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
491
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: UserProfileComponent, selector: "juice-user-profile", ngImport: i0, template: "<button class=\"user-image\" (click)=\"onClick()\">\n <img [src]=\"imageUrl\"/>\n</button>", styles: [":host{height:100%;aspect-ratio:1/1;display:flex;padding:3px;box-sizing:border-box}.user-image{flex:1 auto;border:0;padding:0;background:none}.user-image img{width:100%;height:100%;border-radius:50%;object-fit:cover;cursor:pointer}\n"] }); }
537
+ 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$2.OAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
538
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: UserProfileComponent, isStandalone: false, selector: "juice-user-profile", ngImport: i0, template: "<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", styles: [":host{height:100%;aspect-ratio:1/1;display:flex;padding:3px;box-sizing:border-box}.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: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
492
539
  }
493
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserProfileComponent, decorators: [{
540
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileComponent, decorators: [{
494
541
  type: Component,
495
- args: [{ selector: 'juice-user-profile', template: "<button class=\"user-image\" (click)=\"onClick()\">\n <img [src]=\"imageUrl\"/>\n</button>", styles: [":host{height:100%;aspect-ratio:1/1;display:flex;padding:3px;box-sizing:border-box}.user-image{flex:1 auto;border:0;padding:0;background:none}.user-image img{width:100%;height:100%;border-radius:50%;object-fit:cover;cursor:pointer}\n"] }]
496
- }], ctorParameters: function () { return [{ type: ProfileDialogService, decorators: [{
542
+ args: [{ selector: 'juice-user-profile', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "<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", styles: [":host{height:100%;aspect-ratio:1/1;display:flex;padding:3px;box-sizing:border-box}.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"] }]
543
+ }], ctorParameters: () => [{ type: ProfileDialogService, decorators: [{
497
544
  type: Optional
498
- }] }, { type: LayoutService }, { type: i3$2.OAuthService }]; } });
545
+ }] }, { type: LayoutService }, { type: i3$2.OAuthService }] });
499
546
 
500
547
  class PageComponent {
501
548
  constructor(service, breakpointObserver) {
@@ -525,8 +572,8 @@ class PageComponent {
525
572
  onAttach(e) {
526
573
  console.log("attached", e);
527
574
  }
528
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageComponent, deps: [{ token: LayoutService }, { token: i4$2.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
529
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PageComponent, 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 <button *ngIf=\"isMobile\" mat-icon-button (click)=\"toggleSidenav()\" class=\"m-r\">\n <mat-icon aria-hidden=\"false\" fontIcon=\"menu\"></mat-icon>\n </button>\n <a *ngIf=\"!isMobile\" [routerLink]=\"['/',service.tenantIdentifier]\" class=\"nav-link home\">\n <img height=\"40 \" alt=\"{{service.brandName()}} Logo \" [src]=\"service.brandLogo() \" class=\"p-r \" />\n </a>\n <span *ngIf=\"!isMobile\">{{service.brandName()}}</span>\n <juice-search-bar></juice-search-bar>\n <span class=\"toolbar-spacer \"></span>\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)=\"onAttach\"></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: i1$1.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i7$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i7$1.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i7$1.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { 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" }], animations: [
575
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageComponent, deps: [{ token: LayoutService }, { token: i4$2.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
576
+ 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 <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)=\"onAttach\"></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: i1$2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i6$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i6$1.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i6$1.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "component", type: i3$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { 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" }], animations: [
530
577
  trigger('menuTransition', [
531
578
  state('expand', style({
532
579
  width: '220px'
@@ -558,9 +605,9 @@ class PageComponent {
558
605
  animate('0.15s')
559
606
  ])
560
607
  ])
561
- ] }); }
608
+ ], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
562
609
  }
563
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageComponent, decorators: [{
610
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageComponent, decorators: [{
564
611
  type: Component,
565
612
  args: [{ selector: 'app-page', animations: [
566
613
  trigger('menuTransition', [
@@ -594,16 +641,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
594
641
  animate('0.15s')
595
642
  ])
596
643
  ])
597
- ], 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 <button *ngIf=\"isMobile\" mat-icon-button (click)=\"toggleSidenav()\" class=\"m-r\">\n <mat-icon aria-hidden=\"false\" fontIcon=\"menu\"></mat-icon>\n </button>\n <a *ngIf=\"!isMobile\" [routerLink]=\"['/',service.tenantIdentifier]\" class=\"nav-link home\">\n <img height=\"40 \" alt=\"{{service.brandName()}} Logo \" [src]=\"service.brandLogo() \" class=\"p-r \" />\n </a>\n <span *ngIf=\"!isMobile\">{{service.brandName()}}</span>\n <juice-search-bar></juice-search-bar>\n <span class=\"toolbar-spacer \"></span>\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)=\"onAttach\"></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"] }]
598
- }], ctorParameters: function () { return [{ type: LayoutService }, { type: i4$2.BreakpointObserver }]; } });
644
+ ], 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 <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)=\"onAttach\"></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"] }]
645
+ }], ctorParameters: () => [{ type: LayoutService }, { type: i4$2.BreakpointObserver }] });
599
646
 
600
647
  class PageNotfoundComponent {
601
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageNotfoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
602
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PageNotfoundComponent, 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" }] }); }
648
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageNotfoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
649
+ 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 }); }
603
650
  }
604
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageNotfoundComponent, decorators: [{
651
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageNotfoundComponent, decorators: [{
605
652
  type: Component,
606
- args: [{ selector: 'juice-page-notfound', 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 " }]
653
+ args: [{ selector: 'juice-page-notfound', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, 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 " }]
607
654
  }] });
608
655
 
609
656
  const routes = [];
@@ -625,15 +672,18 @@ class LayoutModule {
625
672
  ]
626
673
  };
627
674
  }
628
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
629
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: LayoutModule, declarations: [PageComponent,
675
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
676
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: LayoutModule, declarations: [PageComponent,
630
677
  DarkModeComponent,
631
678
  NavMenuComponent,
632
679
  ExpandableMenuComponent,
633
680
  PageNotfoundComponent,
634
681
  SearchBarComponent,
635
- UserProfileComponent], imports: [i1$1.RouterModule, CommonModule,
636
- FormsModule, i5.TranslateModule, MatIconModule,
682
+ UserProfileComponent], imports: [i1$2.RouterModule, CommonModule,
683
+ FormsModule,
684
+ TranslatePipe,
685
+ TranslateDirective,
686
+ MatIconModule,
637
687
  MatToolbarModule,
638
688
  MatSidenavModule,
639
689
  MatButtonModule,
@@ -643,10 +693,9 @@ class LayoutModule {
643
693
  MatInputModule,
644
694
  MatTooltipModule], exports: [PageComponent,
645
695
  RouterModule] }); }
646
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayoutModule, imports: [RouterModule.forChild(routes),
696
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutModule, imports: [RouterModule.forChild(routes),
647
697
  CommonModule,
648
698
  FormsModule,
649
- TranslateModule.forChild(),
650
699
  MatIconModule,
651
700
  MatToolbarModule,
652
701
  MatSidenavModule,
@@ -657,7 +706,7 @@ class LayoutModule {
657
706
  MatInputModule,
658
707
  MatTooltipModule, RouterModule] }); }
659
708
  }
660
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayoutModule, decorators: [{
709
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutModule, decorators: [{
661
710
  type: NgModule,
662
711
  args: [{
663
712
  declarations: [
@@ -673,7 +722,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
673
722
  RouterModule.forChild(routes),
674
723
  CommonModule,
675
724
  FormsModule,
676
- TranslateModule.forChild(),
725
+ TranslatePipe,
726
+ TranslateDirective,
677
727
  MatIconModule,
678
728
  MatToolbarModule,
679
729
  MatSidenavModule,
@@ -696,12 +746,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
696
746
  * Consider using matTooltip from @angular/material
697
747
  */
698
748
  class TooltipModule {
699
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
700
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, declarations: [TooltipComponent,
749
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
750
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: TooltipModule, declarations: [TooltipComponent,
701
751
  TooltipDirective], imports: [CommonModule], exports: [TooltipDirective] }); }
702
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, imports: [CommonModule] }); }
752
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TooltipModule, imports: [CommonModule] }); }
703
753
  }
704
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TooltipModule, decorators: [{
754
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: TooltipModule, decorators: [{
705
755
  type: NgModule,
706
756
  args: [{
707
757
  declarations: [
@@ -729,10 +779,10 @@ class DevGuard {
729
779
  console.log('DevGuard: this menu is available in development environment only!', this.isProduction);
730
780
  return !this.isProduction;
731
781
  }
732
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DevGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
733
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DevGuard, providedIn: 'root' }); }
782
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DevGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
783
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DevGuard, providedIn: 'root' }); }
734
784
  }
735
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DevGuard, decorators: [{
785
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DevGuard, decorators: [{
736
786
  type: Injectable,
737
787
  args: [{
738
788
  providedIn: 'root'
@@ -746,6 +796,8 @@ class UserProfileDialogComponent {
746
796
  this.name = '';
747
797
  this.email = '';
748
798
  this.loggedin = false;
799
+ }
800
+ ngOnInit() {
749
801
  if (this.auth.hasValidIdToken()) {
750
802
  const claims = this.auth.getIdentityClaims();
751
803
  if (claims['preferred_username']) {
@@ -775,13 +827,13 @@ class UserProfileDialogComponent {
775
827
  this.auth.logOut();
776
828
  });
777
829
  }
778
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserProfileDialogComponent, deps: [{ token: i3$2.OAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
779
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: UserProfileDialogComponent, selector: "app-user-profile", ngImport: i0, template: "<h3 mat-dialog-title *ngIf=\"loggedin\">{{name}}</h3>\n<div mat-dialog-content>\n <div *ngIf=\"loggedin\">\n <p *ngIf=\"name\">{{'Welcome' | translate}} {{name}}</p>\n <p *ngIf=\"email\">{{ 'Email' | translate}}: {{email}}</p>\n <!-- Logout -->\n </div>\n <div *ngIf=\"!loggedin\">\n <p>{{ 'Please login to view your profile' | translate}}</p>\n </div>\n</div>\n<div mat-dialog-actions>\n <button mat-raised-button *ngIf=\"loggedin\" color=\"primary\" (click)=\"logout()\">{{ 'Logout' | translate}}</button>\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.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i2$2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
830
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogComponent, deps: [{ token: i3$2.OAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
831
+ 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$1.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 }); }
780
832
  }
781
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserProfileDialogComponent, decorators: [{
833
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogComponent, decorators: [{
782
834
  type: Component,
783
- args: [{ selector: 'app-user-profile', template: "<h3 mat-dialog-title *ngIf=\"loggedin\">{{name}}</h3>\n<div mat-dialog-content>\n <div *ngIf=\"loggedin\">\n <p *ngIf=\"name\">{{'Welcome' | translate}} {{name}}</p>\n <p *ngIf=\"email\">{{ 'Email' | translate}}: {{email}}</p>\n <!-- Logout -->\n </div>\n <div *ngIf=\"!loggedin\">\n <p>{{ 'Please login to view your profile' | translate}}</p>\n </div>\n</div>\n<div mat-dialog-actions>\n <button mat-raised-button *ngIf=\"loggedin\" color=\"primary\" (click)=\"logout()\">{{ 'Logout' | translate}}</button>\n <button mat-button mat-dialog-close cdkFocusInitial>{{ 'Close' | translate}}</button>\n</div>" }]
784
- }], ctorParameters: function () { return [{ type: i3$2.OAuthService }]; } });
835
+ args: [{ selector: 'app-user-profile', changeDetection: ChangeDetectionStrategy.Eager, standalone: false, 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>" }]
836
+ }], ctorParameters: () => [{ type: i3$2.OAuthService }] });
785
837
 
786
838
  class UserProfileDialogService extends ProfileDialogService {
787
839
  constructor(matDialog) {
@@ -790,28 +842,30 @@ class UserProfileDialogService extends ProfileDialogService {
790
842
  async open(data) {
791
843
  return this.matDialog.open(UserProfileDialogComponent, { position: { top: '50px', right: '10px' } });
792
844
  }
793
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserProfileDialogService, deps: [{ token: i2$2.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable }); }
794
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserProfileDialogService }); }
845
+ 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 }); }
846
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogService }); }
795
847
  }
796
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserProfileDialogService, decorators: [{
848
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogService, decorators: [{
797
849
  type: Injectable
798
- }], ctorParameters: function () { return [{ type: i2$2.MatDialog }]; } });
850
+ }], ctorParameters: () => [{ type: i2$1.MatDialog }] });
799
851
 
800
852
  class UserProfileDialogModule {
801
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserProfileDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
802
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: UserProfileDialogModule, declarations: [UserProfileDialogComponent], imports: [MatDialogModule,
803
- MatButtonModule, i5.TranslateModule, CommonModule] }); }
804
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserProfileDialogModule, providers: [
853
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
854
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogModule, declarations: [UserProfileDialogComponent], imports: [MatDialogModule,
855
+ MatButtonModule,
856
+ TranslatePipe,
857
+ TranslateDirective,
858
+ CommonModule] }); }
859
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogModule, providers: [
805
860
  {
806
861
  provide: ProfileDialogService,
807
862
  useClass: UserProfileDialogService
808
863
  }
809
864
  ], imports: [MatDialogModule,
810
865
  MatButtonModule,
811
- TranslateModule.forChild(),
812
866
  CommonModule] }); }
813
867
  }
814
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserProfileDialogModule, decorators: [{
868
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogModule, decorators: [{
815
869
  type: NgModule,
816
870
  args: [{
817
871
  declarations: [
@@ -820,7 +874,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
820
874
  imports: [
821
875
  MatDialogModule,
822
876
  MatButtonModule,
823
- TranslateModule.forChild(),
877
+ TranslatePipe,
878
+ TranslateDirective,
824
879
  CommonModule
825
880
  ],
826
881
  exports: [],