@juice-js/layout 1.2.0 → 1.3.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,6 +2,53 @@
2
2
 
3
3
  This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.1.0.
4
4
 
5
+ ## Toolbar search: `SearchablePage`
6
+
7
+ The shell's toolbar hosts one search box, shared by every page. It appears only while the
8
+ displayed page implements `SearchablePage`, and disappears otherwise.
9
+
10
+ ```ts
11
+ import { SearchablePage } from '@juice-js/layout';
12
+
13
+ @Component({ /* ... */ })
14
+ export class OrdersComponent implements SearchablePage {
15
+ onSearch(query: string): void {
16
+ this.filter = query; // '' means the box was cleared — show everything
17
+ }
18
+ }
19
+ ```
20
+
21
+ That is the whole opt-in: no service to inject, no constructor wiring, no route config.
22
+ A page that supports no search implements nothing — the box is absent by default.
23
+
24
+ Implementing `onSearch` *is* the declaration, so a page cannot claim search without
25
+ serving it. The shell binds the active page from its own router outlet, which means the
26
+ box survives a cancelled navigation and a tenant switch that reuses the page component.
27
+
28
+ Notes:
29
+
30
+ - `onSearch` fires on every keystroke. The shell does not debounce, impose a minimum
31
+ length, or wait for Enter — a page that wants any of those owns them.
32
+ - Clearing the box calls `onSearch('')`, which is different from the box being absent
33
+ (which calls nothing).
34
+
35
+ ### Migrating from `SearchService.enable()`
36
+
37
+ `enable()` and `disable()` are deprecated but still functional; they will be removed in
38
+ the next major.
39
+
40
+ ```ts
41
+ // Before
42
+ constructor(searchService: SearchService) {
43
+ searchService.enable((text: string, event: Event) => { /* ... */ });
44
+ }
45
+
46
+ // After
47
+ export class DashboardComponent implements SearchablePage {
48
+ onSearch(query: string): void { /* ... */ }
49
+ }
50
+ ```
51
+
5
52
  ## Code scaffolding
6
53
 
7
54
  Run `ng generate component component-name --project layout` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project layout`.
@@ -1,19 +1,19 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Optional, Injectable, ChangeDetectionStrategy, Component, booleanAttribute, HostListener, Input, Directive, inject, NgModule } from '@angular/core';
2
+ import { InjectionToken, Optional, Injectable, signal, computed, 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
8
  import * as i1$2 from '@angular/router';
9
- import { NavigationStart, RouterModule } from '@angular/router';
10
- import * as i3 from '@angular/material/icon';
9
+ import { RouterModule } from '@angular/router';
10
+ import * as i2 from '@angular/material/icon';
11
11
  import { MatIconModule } from '@angular/material/icon';
12
- import * as i5$1 from '@angular/material/toolbar';
12
+ import * as i6$1 from '@angular/material/toolbar';
13
13
  import { MatToolbarModule } from '@angular/material/toolbar';
14
- import * as i6$1 from '@angular/material/sidenav';
14
+ import * as i7 from '@angular/material/sidenav';
15
15
  import { MatSidenavModule } from '@angular/material/sidenav';
16
- import * as i3$1 from '@angular/material/button';
16
+ import * as i3 from '@angular/material/button';
17
17
  import { MatButtonModule } from '@angular/material/button';
18
18
  import * as i4 from '@angular/material/tooltip';
19
19
  import { MatTooltipModule } from '@angular/material/tooltip';
@@ -25,10 +25,8 @@ import * as i6 from '@angular/material/list';
25
25
  import { MatListModule } from '@angular/material/list';
26
26
  import * as i4$1 from '@angular/material/expansion';
27
27
  import { MatExpansionModule } from '@angular/material/expansion';
28
- import * as i2 from '@angular/forms';
29
- import { FormsModule } from '@angular/forms';
30
28
  import { filter } from 'rxjs/operators';
31
- import * as i3$2 from 'angular-oauth2-oidc';
29
+ import * as i3$1 from 'angular-oauth2-oidc';
32
30
  import { MatFormFieldModule } from '@angular/material/form-field';
33
31
  import { MatInputModule } from '@angular/material/input';
34
32
  import * as i2$1 from '@angular/material/dialog';
@@ -125,6 +123,111 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
125
123
  type: Optional
126
124
  }] }, { type: i1.TenantService }] });
127
125
 
126
+ /**
127
+ * Structural type guard used by the shell to detect {@link SearchablePage}.
128
+ *
129
+ * TypeScript interfaces are erased at runtime, so support is detected by shape
130
+ * rather than by nominal type. See research.md Decision 1 for the trade-off.
131
+ */
132
+ function isSearchablePage(value) {
133
+ return (typeof value === 'object' &&
134
+ value !== null &&
135
+ typeof value.onSearch === 'function');
136
+ }
137
+
138
+ /**
139
+ * Mediates between the shell's single toolbar search box and the page on display.
140
+ *
141
+ * The box appears only while the displayed page implements {@link SearchablePage}.
142
+ * The shell binds and unbinds the page from its own `router-outlet` lifecycle — this
143
+ * service deliberately does NOT listen to router events. Revoking on `NavigationStart`
144
+ * (as it once did) fires before guards run and before a reused component is rebuilt,
145
+ * which silently lost the box on a cancelled navigation or a tenant switch.
146
+ */
147
+ class SearchService {
148
+ constructor() {
149
+ this._page = signal(null, /* @ts-ignore */
150
+ ...(ngDevMode ? [{ debugName: "_page" }] : /* istanbul ignore next */ []));
151
+ this._query = signal('', /* @ts-ignore */
152
+ ...(ngDevMode ? [{ debugName: "_query" }] : /* istanbul ignore next */ []));
153
+ /** Set only by the deprecated {@link enable}. */
154
+ this._legacyCallback = signal(null, /* @ts-ignore */
155
+ ...(ngDevMode ? [{ debugName: "_legacyCallback" }] : /* istanbul ignore next */ []));
156
+ /**
157
+ * Whether the toolbar should offer search — true iff a page is bound.
158
+ *
159
+ * Derived, with no setter: presence cannot be set independently of page support.
160
+ */
161
+ this.isEnabled = computed(() => this._page() !== null || this._legacyCallback() !== null, /* @ts-ignore */
162
+ ...(ngDevMode ? [{ debugName: "isEnabled" }] : /* istanbul ignore next */ []));
163
+ /** What the user has currently typed for the displayed page. */
164
+ this.query = this._query.asReadonly();
165
+ }
166
+ /**
167
+ * Bind the page now on display. Called by the shell on outlet activation.
168
+ *
169
+ * A page that does not implement {@link SearchablePage} binds nothing, leaving the
170
+ * box hidden — support is opt-in.
171
+ */
172
+ bindPage(instance) {
173
+ this._page.set(isSearchablePage(instance) ? instance : null);
174
+ }
175
+ /**
176
+ * Release the page. Called by the shell on outlet deactivation.
177
+ *
178
+ * Also discards the query: the box is mounted once and shared, so a term left here
179
+ * would surface on the next page, which never received it.
180
+ */
181
+ unbindPage() {
182
+ this._page.set(null);
183
+ this._legacyCallback.set(null);
184
+ this._query.set('');
185
+ }
186
+ /** Forward what the user typed to the bound page. Called by the search box. */
187
+ submit(query, event) {
188
+ this._query.set(query);
189
+ const page = this._page();
190
+ if (page) {
191
+ page.onSearch(query, event);
192
+ return;
193
+ }
194
+ const legacy = this._legacyCallback();
195
+ if (legacy) {
196
+ legacy(query, event);
197
+ }
198
+ }
199
+ /**
200
+ * @deprecated Implement {@link SearchablePage} on the page component instead — it ties
201
+ * the declaration to the handler, so search cannot be claimed without being served.
202
+ * Still functional; scheduled for removal in the next major.
203
+ */
204
+ enable(callback) {
205
+ this._legacyCallback.set(callback);
206
+ }
207
+ /**
208
+ * @deprecated The shell now revokes automatically when the page changes; there is
209
+ * nothing to call. Still functional; scheduled for removal in the next major.
210
+ */
211
+ disable() {
212
+ this._page.set(null);
213
+ this._legacyCallback.set(null);
214
+ }
215
+ /**
216
+ * @deprecated Renamed to {@link submit}, which also records the query for the box.
217
+ */
218
+ callback(searchText, event) {
219
+ this.submit(searchText ?? '', event);
220
+ }
221
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SearchService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
222
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SearchService, providedIn: 'root' }); }
223
+ }
224
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SearchService, decorators: [{
225
+ type: Injectable,
226
+ args: [{
227
+ providedIn: 'root'
228
+ }]
229
+ }] });
230
+
128
231
  class DarkModeComponent {
129
232
  constructor(service) {
130
233
  this.service = service;
@@ -163,7 +266,7 @@ class DarkModeComponent {
163
266
  this.name = this.names.get(mode) ?? "";
164
267
  }
165
268
  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 }); }
269
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: DarkModeComponent, isStandalone: false, selector: "juice-dark-mode", ngImport: i0, template: "<button mat-icon-button (click)=\"toggleDarkMode()\" matTooltip=\"{{ name | translate }}\" matTooltipPosition=\"left\"><mat-icon>{{icon}}</mat-icon></button>", dependencies: [{ kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
167
270
  }
168
271
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: DarkModeComponent, decorators: [{
169
272
  type: Component,
@@ -304,7 +407,7 @@ class ExpandableMenuComponent {
304
407
  this.TooltipPosition = TooltipPosition;
305
408
  }
306
409
  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 }); }
410
+ 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: i2.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 }); }
308
411
  }
309
412
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: ExpandableMenuComponent, decorators: [{
310
413
  type: Component,
@@ -360,59 +463,32 @@ class NavMenuComponent {
360
463
  }
361
464
  }
362
465
  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 }); }
466
+ 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: i2.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 }); }
364
467
  }
365
468
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: NavMenuComponent, decorators: [{
366
469
  type: Component,
367
470
  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
471
  }], ctorParameters: () => [{ type: i1.MenuService }, { type: LayoutService }, { type: i1.TenantService }, { type: i1$2.ActivatedRoute }, { type: i4$2.BreakpointObserver }] });
369
472
 
370
- class SearchService {
371
- constructor(router) {
372
- this.isEnabled = false;
373
- this._callback = undefined;
374
- router.events.subscribe((event) => {
375
- if (event instanceof NavigationStart) {
376
- this.disable();
377
- }
378
- });
379
- }
380
- disable() {
381
- this.isEnabled = false;
382
- this._callback = undefined;
383
- }
384
- enable(callback) {
385
- this.isEnabled = true;
386
- this._callback = callback;
387
- }
388
- callback(searchText, event) {
389
- if (this._callback) {
390
- this._callback(searchText, event);
391
- }
392
- }
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' }); }
395
- }
396
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SearchService, decorators: [{
397
- type: Injectable,
398
- args: [{
399
- providedIn: 'root'
400
- }]
401
- }], ctorParameters: () => [{ type: i1$2.Router }] });
402
-
473
+ /**
474
+ * The shell's single search box. Mounted once by the toolbar and shared by every page,
475
+ * so it deliberately owns no state of its own: both its visibility and its text come
476
+ * from {@link SearchService}, which scopes them to the page on display. A query held
477
+ * here would outlive the page that was searched and surface on the next one.
478
+ */
403
479
  class SearchBarComponent {
404
480
  constructor(service) {
405
481
  this.service = service;
406
- this.searchText = "";
407
- }
408
- isEnabled() {
409
- return this.service.isEnabled;
410
482
  }
411
483
  onSearchTextChange(event) {
412
- this.service.callback(this.searchText, event);
484
+ const text = event.target.value;
485
+ this.service.submit(text, event);
486
+ }
487
+ clear(event) {
488
+ this.service.submit('', event);
413
489
  }
414
490
  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: [
491
+ 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 (service.isEnabled()) {\n <div @enableTrigger class=\"search-container\">\n <input type=\"search\" [value]=\"service.query()\"\n (input)=\"onSearchTextChange($event)\" placeholder=\"Search\">\n @if (service.query()) {\n <mat-icon (click)=\"clear($event)\" color=\"primary\">\n close</mat-icon>\n }\n </div>\n}\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: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], animations: [
416
492
  trigger('enableTrigger', [
417
493
  transition(':enter', [
418
494
  style({ opacity: 0 }),
@@ -436,7 +512,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
436
512
  animate('100ms', style({ opacity: 0 }))
437
513
  ])
438
514
  ]),
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"] }]
515
+ ], changeDetection: ChangeDetectionStrategy.Eager, standalone: false, template: "@if (service.isEnabled()) {\n <div @enableTrigger class=\"search-container\">\n <input type=\"search\" [value]=\"service.query()\"\n (input)=\"onSearchTextChange($event)\" placeholder=\"Search\">\n @if (service.query()) {\n <mat-icon (click)=\"clear($event)\" color=\"primary\">\n close</mat-icon>\n }\n </div>\n}\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
516
  }], ctorParameters: () => [{ type: SearchService }] });
441
517
 
442
518
  class ProfileDialogService extends AsyncDialog {
@@ -534,19 +610,20 @@ class UserProfileComponent {
534
610
  hasValidToken() {
535
611
  return this.oauthService.hasValidAccessToken() && this.oauthService.hasValidIdToken();
536
612
  }
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 }); }
613
+ 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$1.OAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
614
+ 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: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
539
615
  }
540
616
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileComponent, decorators: [{
541
617
  type: Component,
542
618
  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
619
  }], ctorParameters: () => [{ type: ProfileDialogService, decorators: [{
544
620
  type: Optional
545
- }] }, { type: LayoutService }, { type: i3$2.OAuthService }] });
621
+ }] }, { type: LayoutService }, { type: i3$1.OAuthService }] });
546
622
 
547
623
  class PageComponent {
548
- constructor(service, breakpointObserver) {
624
+ constructor(service, search, breakpointObserver) {
549
625
  this.service = service;
626
+ this.search = search;
550
627
  this.breakpointObserver = breakpointObserver;
551
628
  this.isMobile = false;
552
629
  this.isSnavOpenned = false;
@@ -569,11 +646,22 @@ class PageComponent {
569
646
  toolbarHeight() {
570
647
  return "48px"; // this.isMobile ? "42px" : "48px";
571
648
  }
572
- onAttach(e) {
573
- console.log("attached", e);
574
- }
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: [
649
+ /**
650
+ * The routed page just became visible — offer search if it supports it.
651
+ *
652
+ * Driven by the outlet rather than by router events on purpose: the outlet does not
653
+ * deactivate for a cancelled navigation or a param-only change that reuses the
654
+ * component, so the box correctly survives both.
655
+ */
656
+ onPageActivate(instance) {
657
+ this.search.bindPage(instance);
658
+ }
659
+ /** The routed page is going away — take the search box with it. */
660
+ onPageDeactivate() {
661
+ this.search.unbindPage();
662
+ }
663
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageComponent, deps: [{ token: LayoutService }, { token: SearchService }, { token: i4$2.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
664
+ 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)=\"onPageActivate($event)\" (deactivate)=\"onPageDeactivate()\"></router-outlet>\n </mat-sidenav-content>\n\n </mat-sidenav-container>\n</div>\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content above * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * End of Placeholder * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->", styles: [":host .toolbar-spacer{flex:1 1 auto}:host .nav-link{display:flex;margin-right:.5em}:host .mat-sidenav-container{display:flex;flex-direction:row}:host .mat-sidenav-container .mat-drawer-side{position:relative;flex:0 auto}:host .mat-sidenav-container .mat-drawer-over{position:fixed}:host .mat-sidenav-container .mat-sidenav-content{flex:1;height:auto}:host .container{display:flex;flex-direction:column}:host .container .mat-toolbar{flex:0 0 auto}:host .container .mat-sidenav-container{flex:1 1 auto;display:flex;flex-direction:row}\n"], dependencies: [{ kind: "directive", type: 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: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i7.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i7.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i7.MatSidenavContent, selector: "mat-sidenav-content" }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "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: [
577
665
  trigger('menuTransition', [
578
666
  state('expand', style({
579
667
  width: '220px'
@@ -641,8 +729,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
641
729
  animate('0.15s')
642
730
  ])
643
731
  ])
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 }] });
732
+ ], 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)=\"onPageActivate($event)\" (deactivate)=\"onPageDeactivate()\"></router-outlet>\n </mat-sidenav-content>\n\n </mat-sidenav-container>\n</div>\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content above * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * End of Placeholder * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->", styles: [":host .toolbar-spacer{flex:1 1 auto}:host .nav-link{display:flex;margin-right:.5em}:host .mat-sidenav-container{display:flex;flex-direction:row}:host .mat-sidenav-container .mat-drawer-side{position:relative;flex:0 auto}:host .mat-sidenav-container .mat-drawer-over{position:fixed}:host .mat-sidenav-container .mat-sidenav-content{flex:1;height:auto}:host .container{display:flex;flex-direction:column}:host .container .mat-toolbar{flex:0 0 auto}:host .container .mat-sidenav-container{flex:1 1 auto;display:flex;flex-direction:row}\n"] }]
733
+ }], ctorParameters: () => [{ type: LayoutService }, { type: SearchService }, { type: i4$2.BreakpointObserver }] });
646
734
 
647
735
  class PageNotfoundComponent {
648
736
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: PageNotfoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
@@ -680,7 +768,6 @@ class LayoutModule {
680
768
  PageNotfoundComponent,
681
769
  SearchBarComponent,
682
770
  UserProfileComponent], imports: [i1$2.RouterModule, CommonModule,
683
- FormsModule,
684
771
  TranslatePipe,
685
772
  TranslateDirective,
686
773
  MatIconModule,
@@ -695,7 +782,6 @@ class LayoutModule {
695
782
  RouterModule] }); }
696
783
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LayoutModule, imports: [RouterModule.forChild(routes),
697
784
  CommonModule,
698
- FormsModule,
699
785
  MatIconModule,
700
786
  MatToolbarModule,
701
787
  MatSidenavModule,
@@ -721,7 +807,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
721
807
  imports: [
722
808
  RouterModule.forChild(routes),
723
809
  CommonModule,
724
- FormsModule,
725
810
  TranslatePipe,
726
811
  TranslateDirective,
727
812
  MatIconModule,
@@ -827,13 +912,13 @@ class UserProfileDialogComponent {
827
912
  this.auth.logOut();
828
913
  });
829
914
  }
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 }); }
915
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogComponent, deps: [{ token: i3$1.OAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
916
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: UserProfileDialogComponent, isStandalone: false, selector: "app-user-profile", ngImport: i0, template: "@if (loggedin) {\n <h3 mat-dialog-title>{{name}}</h3>\n}\n<div mat-dialog-content>\n @if (loggedin) {\n <div>\n @if (name) {\n <p>{{'Welcome' | translate}} {{name}}</p>\n }\n @if (email) {\n <p>{{ 'Email' | translate}}: {{email}}</p>\n }\n <!-- Logout -->\n </div>\n }\n @if (!loggedin) {\n <div>\n <p>{{ 'Please login to view your profile' | translate}}</p>\n </div>\n }\n</div>\n<div mat-dialog-actions>\n @if (loggedin) {\n <button mat-raised-button color=\"primary\" (click)=\"logout()\">{{ 'Logout' | translate}}</button>\n }\n <button mat-button mat-dialog-close cdkFocusInitial>{{ 'Close' | translate}}</button>\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i2$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i2$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i2$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i2$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
832
917
  }
833
918
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: UserProfileDialogComponent, decorators: [{
834
919
  type: Component,
835
920
  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 }] });
921
+ }], ctorParameters: () => [{ type: i3$1.OAuthService }] });
837
922
 
838
923
  class UserProfileDialogService extends ProfileDialogService {
839
924
  constructor(matDialog) {
@@ -896,5 +981,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
896
981
  * Generated bundle index. Do not edit.
897
982
  */
898
983
 
899
- export { DevGuard, ExpandableMenuComponent, LayoutModule, LayoutService, NavMenuComponent, PageComponent, PageNotfoundComponent, ProfileDialogService, SearchService, TooltipDirective, TooltipModule, TooltipPosition, UserProfileDialogModule };
984
+ export { DevGuard, ExpandableMenuComponent, LayoutModule, LayoutService, NavMenuComponent, PageComponent, PageNotfoundComponent, ProfileDialogService, SearchService, TooltipDirective, TooltipModule, TooltipPosition, UserProfileDialogModule, isSearchablePage };
900
985
  //# sourceMappingURL=juice-js-layout.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"juice-js-layout.mjs","sources":["../../../../projects/juice-js/layout/src/lib/layout.config.ts","../../../../projects/juice-js/layout/src/lib/layout.service.ts","../../../../projects/juice-js/layout/src/lib/components/dark-mode/dark-mode.component.ts","../../../../projects/juice-js/layout/src/lib/components/dark-mode/dark-mode.component.html","../../../../projects/juice-js/layout/src/lib/components/tooltip/tooltip.component.ts","../../../../projects/juice-js/layout/src/lib/components/tooltip/tooltip.component.html","../../../../projects/juice-js/layout/src/lib/components/tooltip/tooltip.directive.ts","../../../../projects/juice-js/layout/src/lib/components/expandable-menu/expandable-menu.component.ts","../../../../projects/juice-js/layout/src/lib/components/expandable-menu/expandable-menu.component.html","../../../../projects/juice-js/layout/src/lib/components/nav-menu/nav-menu.component.ts","../../../../projects/juice-js/layout/src/lib/components/nav-menu/nav-menu.component.html","../../../../projects/juice-js/layout/src/lib/services/search.service.ts","../../../../projects/juice-js/layout/src/lib/components/search-bar/search-bar.component.ts","../../../../projects/juice-js/layout/src/lib/components/search-bar/search-bar.component.html","../../../../projects/juice-js/layout/src/lib/components/user-profile/profile-dialog.service.ts","../../../../projects/juice-js/layout/src/lib/components/user-profile/user-profile.component.ts","../../../../projects/juice-js/layout/src/lib/components/user-profile/user-profile.component.html","../../../../projects/juice-js/layout/src/lib/page/page.component.ts","../../../../projects/juice-js/layout/src/lib/page/page.component.html","../../../../projects/juice-js/layout/src/lib/pages/page-notfound/page-notfound.component.ts","../../../../projects/juice-js/layout/src/lib/pages/page-notfound/page-notfound.component.html","../../../../projects/juice-js/layout/src/lib/layout.module.ts","../../../../projects/juice-js/layout/src/lib/components/tooltip/tooltip.module.ts","../../../../projects/juice-js/layout/src/lib/dev.guard.ts","../../../../projects/juice-js/layout/src/lib/components/user-profile-dialog/user-profile-dialog.component.ts","../../../../projects/juice-js/layout/src/lib/components/user-profile-dialog/user-profile-dialog.component.html","../../../../projects/juice-js/layout/src/lib/components/user-profile-dialog/user-profile-dialog.service.ts","../../../../projects/juice-js/layout/src/lib/components/user-profile-dialog/user-profile-dialog.module.ts","../../../../projects/juice-js/layout/src/public-api.ts","../../../../projects/juice-js/layout/src/juice-js-layout.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nexport enum ThemeMode{\n Light = \"light\",\n Dark = \"dark\",\n Auto = \"auto\"\n}\nexport class LayoutConfig{\n favicon: string = \"favicon.ico\";\n brand: string = \"Juice\";\n brandLogo: string = \"assets/images/logo.png\";\n defaultThemeMode: ThemeMode = ThemeMode.Auto;\n defaultLanguage: string = \"en-US\";\n defaultMenuOpen: boolean = false;\n settingUrl: string | undefined;\n userImageUrl: string | undefined;\n\n constructor(options?: ILayoutConfig){\n if(options){\n Object.assign(this, options);\n }\n }\n}\n\nexport interface ILayoutConfig{\n favicon?: string;\n brand: string;\n brandLogo?: string;\n defaultThemeMode?: ThemeMode;\n defaultLanguage?: string;\n defaultMenuOpen?: boolean;\n settingUrl?: string;\n userImageUrl?: string;\n}\n\nexport const IS_PRODUCTION = new InjectionToken<boolean>('production');\n","import { Injectable, Optional } from '@angular/core';\nimport { LayoutConfig, ThemeMode } from './layout.config';\nimport { TenantInfo, TenantService } from '@juice-js/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LayoutService {\n public static DARK_MODE = \"IS_DARK_MODE\";\n public static MENU_OPEN = \"IS_MENU_OPEN\";\n\n tenantIdentifier: string = \"\";\n\n private _tenant: TenantInfo|null = null;\n private _options: LayoutConfig;\n \n constructor(@Optional() options: LayoutConfig, \n tenantService: TenantService\n ) {\n tenantService?.getTenantInfo().then(tenantInfo => {\n this.tenantIdentifier = tenantInfo?.identifier ??\"\";\n this._tenant = tenantInfo;\n });\n this._options = options ?? new LayoutConfig();\n }\n\n public getThemeMode(): ThemeMode {\n let mode = localStorage.getItem(LayoutService.DARK_MODE);\n if(mode){\n return JSON.parse(mode);\n }\n return this._options.defaultThemeMode;\n }\n public toggleDarkMode(){\n var state = this.getThemeMode();\n if(state == ThemeMode.Auto){\n state = ThemeMode.Light;\n }else if(state == ThemeMode.Light){\n state = ThemeMode.Dark;\n }else{\n state = ThemeMode.Auto;\n }\n localStorage.setItem(LayoutService.DARK_MODE, JSON.stringify(state));\n }\n\n public isMenuOpen(): boolean {\n let isMenuOpen = localStorage.getItem(LayoutService.MENU_OPEN);\n if(isMenuOpen){\n return JSON.parse(isMenuOpen);\n }\n return this._options.defaultMenuOpen;\n }\n\n public toggleMenu(){\n let state = !this.isMenuOpen();\n localStorage.setItem(LayoutService.MENU_OPEN, JSON.stringify(state));\n }\n\n public favicon(): string {\n return this._tenant?.favicon ?? this._options.favicon;\n }\n\n public brandName(): string {\n return this._tenant?.name ?? this._options.brand;\n }\n\n public brandLogo(): string {\n return this._tenant?.logo ?? this._options.brandLogo;\n }\n\n public settingUrl(): string | undefined{\n return this._options.settingUrl;\n }\n\n public userImageUrl(username: string): string{\n return this._options.userImageUrl ? this._options.userImageUrl.replace(\"{username}\", username) : \"\";\n }\n}\n","import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';\nimport { LayoutService } from '../../layout.service';\nimport { ThemeMode } from '../../layout.config';\n\n@Component({\n selector: 'juice-dark-mode',\n templateUrl: './dark-mode.component.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class DarkModeComponent{\n ThemeMode: typeof ThemeMode = ThemeMode;\n prefersDark = window.matchMedia(\"(prefers-color-scheme: dark)\");\n constructor(private service: LayoutService) { \n this.prefersDark.addEventListener(\"change\", e => {\n this.initTheme(e.matches);\n });\n this.initTheme(this.prefersDark.matches);\n }\n icons = new Map<ThemeMode, string>([\n [ThemeMode.Light, \"light_mode\"],\n [ThemeMode.Dark, \"dark_mode\"],\n [ThemeMode.Auto, \"adjust\"]\n ]);\n names = new Map<ThemeMode, string>([\n [ThemeMode.Light, \"Light\"],\n [ThemeMode.Dark, \"Dark\"],\n [ThemeMode.Auto, \"Adaptive\"]\n ]);\n\n name: string = \"\";\n\n icon: string = \"light_mode\";\n\n toggleDarkMode(){\n this.service.toggleDarkMode();\n this.initTheme(this.prefersDark.matches);\n }\n\n initTheme(prefersDark: boolean = false){\n var mode = this.service.getThemeMode();\n var scheme = mode == ThemeMode.Auto ? prefersDark ? ThemeMode.Dark : ThemeMode.Light\n : mode;\n\n document.body.classList.remove(\"dark\");\n\n if(scheme == ThemeMode.Dark){\n document.body.classList.add(scheme);\n }\n this.icon = this.icons.get(mode)??\"\";\n this.name = this.names.get(mode)??\"\";\n }\n}\n","<button mat-icon-button (click)=\"toggleDarkMode()\" matTooltip=\"{{ name | translate }}\" matTooltipPosition=\"left\"><mat-icon>{{icon}}</mat-icon></button>","import { OnInit, Component, ElementRef, ChangeDetectionStrategy } from '@angular/core';\nimport { TooltipPosition } from './tooltip.directive';\n\n@Component({\n selector: 'tooltip',\n templateUrl: './tooltip.component.html',\n styleUrls: ['./tooltip.component.scss'],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class TooltipComponent{\n tooltip: string = '';\n position: TooltipPosition = TooltipPosition.DEFAULT;\n left: number = 0;\n top: number = 0;\n display: boolean = true;\n constructor(private elementRef: ElementRef) { }\n\n calculatePosition(left:number, right:number, top: number, bottom: number): void {\n switch(this.position) {\n case TooltipPosition.BELOW: {\n this.left = Math.round((right - left) / 2 + left);\n this.top = Math.round(bottom);\n break;\n }\n case TooltipPosition.ABOVE: {\n this.left = Math.round((right - left) / 2 + left);\n this.top = Math.round(top);\n break;\n }\n case TooltipPosition.RIGHT: {\n this.left = Math.round(right);\n this.top = Math.round(top + (bottom - top) / 2);\n break;\n }\n case TooltipPosition.LEFT: {\n this.left = Math.round(left);\n this.top = Math.round(top + (bottom - top) / 2);\n break;\n }\n default: {\n break;\n }\n }\n }\n}\n","@if (display) {\n <div #tooltipId class=\"tooltip\" [ngClass]=\"['tooltip--'+position]\"\n [style.left]=\"left + 'px'\" [style.top]=\"top + 'px'\">\n {{tooltip}}\n </div>\n}","import {Directive, Input, ElementRef, HostListener, ComponentRef, ViewContainerRef, EmbeddedViewRef, booleanAttribute} from '@angular/core';\nimport {TooltipComponent} from \"./tooltip.component\";\n\nexport enum TooltipPosition {\n ABOVE = 'above',\n BELOW = 'below',\n LEFT = 'left',\n RIGHT = 'right',\n DEFAULT = 'above'\n}\n\nfunction tooltipPosition(position: string): TooltipPosition {\n switch(position){\n case TooltipPosition.ABOVE: return TooltipPosition.ABOVE;\n case TooltipPosition.BELOW: return TooltipPosition.BELOW;\n case TooltipPosition.LEFT: return TooltipPosition.LEFT;\n case TooltipPosition.RIGHT: return TooltipPosition.RIGHT;\n default: return TooltipPosition.DEFAULT;\n }\n}\n\n@Directive({\n selector: '[tooltip]',\n standalone: false\n})\nexport class TooltipDirective {\n\n @Input() tooltip = '';\n @Input({ transform: tooltipPosition }) tooltipPosition: TooltipPosition = TooltipPosition.DEFAULT;\n @Input({ transform: booleanAttribute }) tooltipDisplay!: boolean;\n componentRef?: ComponentRef<any>;\n constructor(\n\tprivate elementRef: ElementRef,\n private viewContainerRef: ViewContainerRef) {\n }\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n if (!this.componentRef) {\n\n this.componentRef = this.viewContainerRef.createComponent(TooltipComponent);\n const domElem = \n (this.componentRef.hostView as EmbeddedViewRef<any>)\n .rootNodes[0] as HTMLElement; \n document.body.appendChild(domElem);\n this.setTooltipComponentProperties();\n }\n }\n private getPosition(): TooltipPosition {\n return this.tooltipPosition;\n }\n private setTooltipComponentProperties() {\n if (this.componentRef) {\n this.componentRef.instance.tooltip = this.tooltip;\n this.componentRef.instance.position = this.getPosition();\n this.componentRef.instance.display = this.tooltipDisplay;\n const {left, right, top, bottom} = this.elementRef.nativeElement.getBoundingClientRect();\n this.componentRef.instance.calculatePosition(left, right, top, bottom);\n }\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n this.destroy();\n }\n\n ngOnDestroy(): void {\n this.destroy();\n }\n\n destroy(): void {\n if (this.componentRef) {\n this.componentRef.destroy();\n this.componentRef = undefined;\n }\n }\n}","import { Component, Input, ChangeDetectionStrategy } from '@angular/core';\nimport { MenuItem } from '@juice-js/core';\nimport { Router } from '@angular/router';\nimport { TooltipPosition } from '../tooltip/tooltip.directive';\n\n@Component({\n selector: 'juice-expandable-menu',\n templateUrl: './expandable-menu.component.html',\n styleUrls: ['./expandable-menu.component.scss'],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class ExpandableMenuComponent {\n @Input()\n isExpanded = false;\n @Input()\n item: MenuItem= {} as MenuItem;\n TooltipPosition: typeof TooltipPosition = TooltipPosition;\n\n constructor(public router: Router) {}\n}\n","<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","import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';\nimport { MenuItem, MenuService, TenantService } from '@juice-js/core';\nimport { LayoutService } from '../../layout.service';\nimport { TooltipPosition } from '../tooltip/tooltip.directive';\nimport { ActivatedRoute } from '@angular/router';\n\n@Component({\n selector: 'juice-nav-menu',\n templateUrl: './nav-menu.component.html',\n styleUrls: ['./nav-menu.component.scss'],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class NavMenuComponent {\n isExpanded = false;\n isMobile = false;\n items: MenuItem[] = [];\n TooltipPosition: typeof TooltipPosition = TooltipPosition;\n\n settingUrl: string|null|undefined;\n\n constructor(private service: MenuService, \n public layout: LayoutService, private tenantService: TenantService,\n private route: ActivatedRoute,\n private breakpointObserver: BreakpointObserver) {\n \n if(route.snapshot.data['settingUrl']){\n this.settingUrl = route.snapshot.data['settingUrl'];\n }else{\n this.settingUrl = layout.settingUrl();\n }\n tenantService.getTenantIdentifier().then(tenant => { this.settingUrl = this.settingUrl?.injectTenant(tenant); });\n\n breakpointObserver.observe([\n Breakpoints.HandsetLandscape,\n Breakpoints.HandsetPortrait\n ]).subscribe(result => {\n this.isMobile = result.matches;\n this.isExpanded = result.matches ? true : this.layout.isMenuOpen();\n });\n this.service.getMenu().subscribe(items => {\n console.debug('Menu items', JSON.parse(JSON.stringify(items)));\n this.items = items;\n });\n }\n\n toggle() {\n this.layout.toggleMenu();\n this.isExpanded = this.layout.isMenuOpen();\n }\n\n mouseEnter() {\n if(!this.isMobile){\n this.isExpanded = true;\n }\n }\n mouseLeave() {\n if(!this.isMobile){\n this.isExpanded = this.layout.isMenuOpen();\n }\n }\n\n}\n","<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>","import { Injectable } from '@angular/core';\nimport { Router, NavigationStart } from '@angular/router';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class SearchService{\n isEnabled: boolean = false;\n private _callback: Function | undefined = undefined;\n\n constructor(router: Router){\n router.events.subscribe((event) => {\n if(event instanceof NavigationStart){\n this.disable();\n }\n });\n }\n\n public disable(){\n this.isEnabled = false;\n this._callback = undefined;\n }\n\n public enable(callback: Function){\n this.isEnabled = true;\n this._callback = callback;\n }\n\n public callback(searchText: string|null, event: any){\n if(this._callback){\n this._callback(searchText, event);\n }\n }\n}","import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { SearchService } from '../../services/search.service';\nimport {\n trigger,\n state,\n style,\n animate,\n transition,\n // ...\n} from '@angular/animations';\n\n@Component({\n selector: 'juice-search-bar',\n templateUrl: './search-bar.component.html',\n styleUrls: ['./search-bar.component.scss'],\n animations: [\n trigger('enableTrigger', [\n transition(':enter', [\n style({ opacity: 0 }),\n animate('100ms', style({ opacity: 1 })),\n ]),\n transition(':leave', [\n animate('100ms', style({ opacity: 0 }))\n ])\n ]),\n ],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class SearchBarComponent {\n searchText: string = \"\";\n constructor(private service: SearchService) { \n\n }\n\n isEnabled(): boolean {\n return this.service.isEnabled;\n }\n \n onSearchTextChange(event: any){\n this.service.callback(this.searchText, event);\n }\n}\n","@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}","import { AsyncDialog } from '@juice-js/core';\n\nexport abstract class ProfileDialogService extends AsyncDialog<any, string>{\n \n}","import { Component, Optional, OnInit, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { ProfileDialogService } from './profile-dialog.service';\nimport { OAuthService } from 'angular-oauth2-oidc';\nimport { LayoutService } from '../../layout.service';\nimport { IS_PRODUCTION } from '../../layout.config';\nimport { UserProfile } from './user-profile.model';\nimport { filter } from \"rxjs/operators\";\n\n@Component({\n selector: 'juice-user-profile',\n templateUrl: './user-profile.component.html',\n styleUrls: ['./user-profile.component.scss'],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class UserProfileComponent implements OnInit{\n imageUrl: string = \"\";\n imageFailed = false;\n initials: string = \"\";\n isProduction = inject(IS_PRODUCTION);\n\n constructor(@Optional() private dialogService: ProfileDialogService,\n private layoutService: LayoutService,\n private oauthService: OAuthService) {\n this.oauthService.events.pipe(\n filter(e => e.type === \"token_received\")\n ).subscribe((e) => {\n if(!this.isProduction) console.debug('Token received', e);\n this.initImageUrl();\n });\n }\n\n ngOnInit(): void {\n if(this.hasValidToken()){\n this.initImageUrl();\n }else{\n if(!this.isProduction) console.debug('No valid token', this.oauthService.hasValidAccessToken(), this.oauthService.hasValidIdToken());\n }\n }\n\n initImageUrl() {\n if(this.imageUrl){return;}\n\n const claims = this.oauthService.getIdentityClaims();\n this.initials = this.computeInitials(claims);\n if(!this.isProduction) console.debug('Trying to get avatar from claims');\n if(claims[\"picture\"]){\n this.setImageUrl(claims[\"picture\"]);\n }else if(claims[\"avatar\"]){\n this.setImageUrl(claims[\"avatar\"]);\n }else{\n const username = claims[\"preferred_username\"];\n if(username){\n this.setImageUrl(this.layoutService.userImageUrl(username));\n }else{\n if(!this.isProduction) console.debug('Trying to load user profile to get avatar');\n this.oauthService.loadUserProfile().then(info => {\n var userProfile = info as UserProfile;\n if(userProfile){\n this.setImageUrl(this.layoutService.userImageUrl(userProfile.info.preferred_username));\n }else{\n console.warn('No user profile found', info);\n }\n });\n }\n }\n }\n\n private setImageUrl(url: string) {\n this.imageUrl = url ?? \"\";\n this.imageFailed = false;\n }\n\n private computeInitials(claims: Record<string, any>): string {\n if(!claims){ return \"\"; }\n const name = claims[\"name\"]\n || [claims[\"given_name\"], claims[\"family_name\"]].filter(Boolean).join(\" \")\n || claims[\"preferred_username\"]\n || \"\";\n const words = String(name).trim().split(/\\s+/).filter(Boolean);\n if(words.length === 0){ return \"\"; }\n const chars = words.length === 1\n ? words[0].slice(0, 2)\n : words[0][0] + words[words.length - 1][0];\n return chars.toUpperCase();\n }\n\n onImageError() {\n if(!this.isProduction) console.debug('Avatar image failed to load', this.imageUrl);\n this.imageFailed = true;\n }\n\n onClick(){\n if(this.dialogService){\n this.dialogService.open(this.imageUrl);\n }\n }\n \n private hasValidToken() {\n return this.oauthService.hasValidAccessToken() && this.oauthService.hasValidIdToken();\n }\n}\n","<button class=\"user-image\" (click)=\"onClick()\">\n @if (imageUrl && !imageFailed) {\n <img [src]=\"imageUrl\" (error)=\"onImageError()\"/>\n } @else if (initials) {\n <span class=\"user-image-initials\">{{ initials }}</span>\n } @else {\n <mat-icon class=\"user-image-fallback\">account_circle</mat-icon>\n }\n</button>\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';\nimport { LayoutService } from '../layout.service';\nimport {\n trigger,\n state,\n style,\n animate,\n transition,\n // ...\n} from '@angular/animations';\n\n@Component({\n selector: 'app-page',\n templateUrl: './page.component.html',\n styleUrls: ['./page.component.scss'],\n animations: [\n trigger('menuTransition', [\n state('expand', style({\n width: '220px'\n })),\n state('collapsed', style({\n width: '60px'\n })),\n transition('* => collapsed', [\n animate('0.15s')\n ]),\n transition('* => expand', [\n animate('0.15s')\n ])\n ]),\n trigger('contentTransition', [\n state('expand', style({\n \"margin-left\": \"60px\"\n })),\n state('collapsed', style({\n \"margin-left\": \"220px\"\n })),\n state(\"full\", style({\n \"margin-left\": \"0\"\n })),\n transition('* => collapsed', [\n animate('0.15s')\n ]),\n transition('* => expand', [\n animate('0.15s')\n ])\n ])\n ],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class PageComponent {\n isMobile: boolean = false;\n isSnavOpenned: boolean = false;\n \n constructor(public service: LayoutService, \n private breakpointObserver: BreakpointObserver) { \n breakpointObserver.observe([\n Breakpoints.HandsetLandscape,\n Breakpoints.HandsetPortrait\n ]).subscribe(result => {\n this.isMobile = result.matches;\n this.isSnavOpenned = !this.isMobile;\n });\n }\n\n public hideSidenavOnMobile(): void {\n if(this.isMobile){\n this.isSnavOpenned = false;\n }\n }\n\n public toggleSidenav(): void {\n this.isSnavOpenned = !this.isSnavOpenned;\n }\n\n public toolbarHeight(): string {\n return \"48px\"; // this.isMobile ? \"42px\" : \"48px\";\n }\n\n public onAttach(e: any){\n console.log(\"attached\", e);\n }\n}\n","<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\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<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\n@Component({\n selector: 'juice-page-notfound',\n templateUrl: './page-notfound.component.html',\n styleUrls: ['./page-notfound.component.scss'],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class PageNotfoundComponent {\n\n}\n","<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 ","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\nimport { CommonModule } from '@angular/common';\nimport { TranslatePipe, TranslateDirective } from '@ngx-translate/core';\n\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { MatSidenavModule } from '@angular/material/sidenav';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatListModule } from '@angular/material/list';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\nimport { ILayoutConfig, IS_PRODUCTION, LayoutConfig } from './layout.config';\nimport { LayoutService } from './layout.service';\nimport { DarkModeComponent } from './components/dark-mode/dark-mode.component';\nimport { PageComponent } from './page/page.component';\nimport { NavMenuComponent } from './components/nav-menu/nav-menu.component';\nimport { ExpandableMenuComponent } from './components/expandable-menu/expandable-menu.component';\nimport { PageNotfoundComponent } from './pages/page-notfound/page-notfound.component';\nimport { SearchBarComponent } from './components/search-bar/search-bar.component';\nimport { FormsModule } from '@angular/forms';\nimport { UserProfileComponent } from './components/user-profile/user-profile.component';\n\nconst routes: Routes = [ \n \n];\n\n@NgModule({\n declarations: [\n PageComponent,\n DarkModeComponent,\n NavMenuComponent,\n ExpandableMenuComponent,\n PageNotfoundComponent,\n SearchBarComponent,\n UserProfileComponent,\n ],\n imports: [\n RouterModule.forChild(routes),\n CommonModule,\n FormsModule,\n TranslatePipe,\n TranslateDirective,\n MatIconModule,\n MatToolbarModule,\n MatSidenavModule,\n MatButtonModule,\n MatExpansionModule,\n MatListModule,\n MatFormFieldModule,\n MatInputModule,\n MatTooltipModule\n ],\n exports: [\n PageComponent,\n RouterModule\n ]\n})\nexport class LayoutModule { \n\n public static forRoot(production: boolean, options: ILayoutConfig): ModuleWithProviders<LayoutModule> {\n let config: LayoutConfig = new LayoutConfig(options);\n return {\n ngModule: LayoutModule,\n providers: [\n LayoutService,\n {\n provide: IS_PRODUCTION,\n useValue: production\n },\n {\n provide: LayoutConfig,\n useValue: config\n }\n ]\n }\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {TooltipComponent} from './tooltip.component';\nimport {TooltipDirective} from './tooltip.directive';\n\n@NgModule({\n declarations: [\n TooltipComponent,\n TooltipDirective\n ],\n imports: [\n CommonModule\n ],\n exports: [\n TooltipDirective\n ]\n})\n/**\n * This module for study purpose only.\n * Consider using matTooltip from @angular/material\n */\nexport class TooltipModule {\n}","import { Injectable, inject } from '@angular/core';\nimport { IS_PRODUCTION } from './layout.config';\n\n@Injectable({\n providedIn: 'root'\n })\nexport class DevGuard {\n isProduction = inject(IS_PRODUCTION);\n canActivate() {\n console.log('DevGuard: this route is available in development environment only!', this.isProduction);\n return !this.isProduction;\n }\n\n canDisplay() {\n console.log('DevGuard: this menu is available in development environment only!', this.isProduction);\n return !this.isProduction;\n }\n}\n","import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';\nimport { OAuthService } from 'angular-oauth2-oidc';\nimport { UserProfile } from '../user-profile/user-profile.model';\n\n@Component({\n selector: 'app-user-profile',\n templateUrl: './user-profile-dialog.component.html',\n styleUrls: ['./user-profile-dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class UserProfileDialogComponent implements OnInit{\n username = '';\n name = '';\n email = '';\n loggedin = false;\n constructor(private auth: OAuthService) { \n \n }\n\n ngOnInit(): void {\n if(this.auth.hasValidIdToken()){\n const claims = this.auth.getIdentityClaims();\n if(claims['preferred_username']){\n this.setValues(claims);\n }else{\n this.auth.loadUserProfile().then(info => {\n var userProfile = info as UserProfile;\n if(userProfile){\n this.setValues(userProfile.info);\n }else{\n console.debug('No user profile', info);\n }\n });\n }\n }\n }\n\n setValues(claims: any){\n this.username = claims['preferred_username'];\n this.name = claims['name'];\n this.email = claims['email']??'';\n this.loggedin = true;\n }\n\n logout(){\n this.auth.loadDiscoveryDocument().then(() => {\n this.auth.logOut();\n });\n }\n}\n","@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>","import { Injectable } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { ProfileDialogService } from '../user-profile/profile-dialog.service';\nimport { UserProfileDialogComponent } from './user-profile-dialog.component';\n\n@Injectable()\nexport class UserProfileDialogService extends ProfileDialogService {\n constructor(matDialog: MatDialog) {\n super(matDialog);\n }\n async open(data: string): Promise<any> {\n return this.matDialog.open(UserProfileDialogComponent, {position: { top: '50px', right: '10px'}});\n }\n}","import { NgModule } from '@angular/core';\nimport { UserProfileDialogComponent } from './user-profile-dialog.component';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatButtonModule } from '@angular/material/button';\nimport { ProfileDialogService } from '../user-profile/profile-dialog.service';\nimport { UserProfileDialogService } from './user-profile-dialog.service';\nimport { TranslatePipe, TranslateDirective } from '@ngx-translate/core';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n declarations: [\n UserProfileDialogComponent\n ],\n imports: [\n MatDialogModule,\n MatButtonModule,\n TranslatePipe,\n TranslateDirective,\n CommonModule\n ],\n exports: [\n ],\n providers: [\n {\n provide: ProfileDialogService,\n useClass: UserProfileDialogService\n }\n ]\n})\nexport class UserProfileDialogModule {\n}\n","/*\n * Public API Surface of layout\n */\n\nexport * from './lib/layout.service';\nexport * from './lib/page/page.component';\nexport * from './lib/layout.module';\nexport * from './lib/components/nav-menu/nav-menu.component';\nexport * from './lib/components/expandable-menu/expandable-menu.component';\nexport * from './lib/pages/page-notfound/page-notfound.component';\nexport * from './lib/components/tooltip/tooltip.directive';\nexport * from './lib/components/tooltip/tooltip.module';\nexport * from './lib/dev.guard';\nexport * from './lib/services/search.service';\nexport * from './lib/components/user-profile/profile-dialog.service';\nexport * from './lib/components/user-profile-dialog/user-profile-dialog.module';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.LayoutConfig","i2","i1.LayoutService","i3","i1","i4","i5","i2.LayoutService","i7","i8.ExpandableMenuComponent","i9","i1.SearchService","i1.ProfileDialogService","i6","i8.DarkModeComponent","i9.NavMenuComponent","i10.SearchBarComponent","i11.UserProfileComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAY,SAIX;AAJD,CAAA,UAAY,SAAS,EAAA;AACjB,IAAA,SAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACjB,CAAC,EAJW,SAAS,KAAT,SAAS,GAAA,EAAA,CAAA,CAAA;MAKR,YAAY,CAAA;AAUrB,IAAA,WAAA,CAAY,OAAuB,EAAA;QATnC,IAAA,CAAA,OAAO,GAAW,aAAa;QAC/B,IAAA,CAAA,KAAK,GAAW,OAAO;QACvB,IAAA,CAAA,SAAS,GAAW,wBAAwB;AAC5C,QAAA,IAAA,CA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A;;;AC5BD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"juice-js-layout.mjs","sources":["../../../../projects/juice-js/layout/src/lib/layout.config.ts","../../../../projects/juice-js/layout/src/lib/layout.service.ts","../../../../projects/juice-js/layout/src/lib/services/searchable-page.ts","../../../../projects/juice-js/layout/src/lib/services/search.service.ts","../../../../projects/juice-js/layout/src/lib/components/dark-mode/dark-mode.component.ts","../../../../projects/juice-js/layout/src/lib/components/dark-mode/dark-mode.component.html","../../../../projects/juice-js/layout/src/lib/components/tooltip/tooltip.component.ts","../../../../projects/juice-js/layout/src/lib/components/tooltip/tooltip.component.html","../../../../projects/juice-js/layout/src/lib/components/tooltip/tooltip.directive.ts","../../../../projects/juice-js/layout/src/lib/components/expandable-menu/expandable-menu.component.ts","../../../../projects/juice-js/layout/src/lib/components/expandable-menu/expandable-menu.component.html","../../../../projects/juice-js/layout/src/lib/components/nav-menu/nav-menu.component.ts","../../../../projects/juice-js/layout/src/lib/components/nav-menu/nav-menu.component.html","../../../../projects/juice-js/layout/src/lib/components/search-bar/search-bar.component.ts","../../../../projects/juice-js/layout/src/lib/components/search-bar/search-bar.component.html","../../../../projects/juice-js/layout/src/lib/components/user-profile/profile-dialog.service.ts","../../../../projects/juice-js/layout/src/lib/components/user-profile/user-profile.component.ts","../../../../projects/juice-js/layout/src/lib/components/user-profile/user-profile.component.html","../../../../projects/juice-js/layout/src/lib/page/page.component.ts","../../../../projects/juice-js/layout/src/lib/page/page.component.html","../../../../projects/juice-js/layout/src/lib/pages/page-notfound/page-notfound.component.ts","../../../../projects/juice-js/layout/src/lib/pages/page-notfound/page-notfound.component.html","../../../../projects/juice-js/layout/src/lib/layout.module.ts","../../../../projects/juice-js/layout/src/lib/components/tooltip/tooltip.module.ts","../../../../projects/juice-js/layout/src/lib/dev.guard.ts","../../../../projects/juice-js/layout/src/lib/components/user-profile-dialog/user-profile-dialog.component.ts","../../../../projects/juice-js/layout/src/lib/components/user-profile-dialog/user-profile-dialog.component.html","../../../../projects/juice-js/layout/src/lib/components/user-profile-dialog/user-profile-dialog.service.ts","../../../../projects/juice-js/layout/src/lib/components/user-profile-dialog/user-profile-dialog.module.ts","../../../../projects/juice-js/layout/src/public-api.ts","../../../../projects/juice-js/layout/src/juice-js-layout.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nexport enum ThemeMode{\n Light = \"light\",\n Dark = \"dark\",\n Auto = \"auto\"\n}\nexport class LayoutConfig{\n favicon: string = \"favicon.ico\";\n brand: string = \"Juice\";\n brandLogo: string = \"assets/images/logo.png\";\n defaultThemeMode: ThemeMode = ThemeMode.Auto;\n defaultLanguage: string = \"en-US\";\n defaultMenuOpen: boolean = false;\n settingUrl: string | undefined;\n userImageUrl: string | undefined;\n\n constructor(options?: ILayoutConfig){\n if(options){\n Object.assign(this, options);\n }\n }\n}\n\nexport interface ILayoutConfig{\n favicon?: string;\n brand: string;\n brandLogo?: string;\n defaultThemeMode?: ThemeMode;\n defaultLanguage?: string;\n defaultMenuOpen?: boolean;\n settingUrl?: string;\n userImageUrl?: string;\n}\n\nexport const IS_PRODUCTION = new InjectionToken<boolean>('production');\n","import { Injectable, Optional } from '@angular/core';\nimport { LayoutConfig, ThemeMode } from './layout.config';\nimport { TenantInfo, TenantService } from '@juice-js/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LayoutService {\n public static DARK_MODE = \"IS_DARK_MODE\";\n public static MENU_OPEN = \"IS_MENU_OPEN\";\n\n tenantIdentifier: string = \"\";\n\n private _tenant: TenantInfo|null = null;\n private _options: LayoutConfig;\n \n constructor(@Optional() options: LayoutConfig, \n tenantService: TenantService\n ) {\n tenantService?.getTenantInfo().then(tenantInfo => {\n this.tenantIdentifier = tenantInfo?.identifier ??\"\";\n this._tenant = tenantInfo;\n });\n this._options = options ?? new LayoutConfig();\n }\n\n public getThemeMode(): ThemeMode {\n let mode = localStorage.getItem(LayoutService.DARK_MODE);\n if(mode){\n return JSON.parse(mode);\n }\n return this._options.defaultThemeMode;\n }\n public toggleDarkMode(){\n var state = this.getThemeMode();\n if(state == ThemeMode.Auto){\n state = ThemeMode.Light;\n }else if(state == ThemeMode.Light){\n state = ThemeMode.Dark;\n }else{\n state = ThemeMode.Auto;\n }\n localStorage.setItem(LayoutService.DARK_MODE, JSON.stringify(state));\n }\n\n public isMenuOpen(): boolean {\n let isMenuOpen = localStorage.getItem(LayoutService.MENU_OPEN);\n if(isMenuOpen){\n return JSON.parse(isMenuOpen);\n }\n return this._options.defaultMenuOpen;\n }\n\n public toggleMenu(){\n let state = !this.isMenuOpen();\n localStorage.setItem(LayoutService.MENU_OPEN, JSON.stringify(state));\n }\n\n public favicon(): string {\n return this._tenant?.favicon ?? this._options.favicon;\n }\n\n public brandName(): string {\n return this._tenant?.name ?? this._options.brand;\n }\n\n public brandLogo(): string {\n return this._tenant?.logo ?? this._options.brandLogo;\n }\n\n public settingUrl(): string | undefined{\n return this._options.settingUrl;\n }\n\n public userImageUrl(username: string): string{\n return this._options.userImageUrl ? this._options.userImageUrl.replace(\"{username}\", username) : \"\";\n }\n}\n","/**\n * Implemented by a routed page to declare that it supports search.\n *\n * The shell's toolbar hosts one search box, shared by every page. It appears only\n * while the displayed page implements this interface, and disappears otherwise —\n * there is nothing else to opt in to and no flag to set.\n *\n * Implementing `onSearch` IS the declaration: support and handling cannot be\n * declared apart, so a box that accepts typing no page listens to is impossible.\n *\n * @example\n * export class OrdersComponent implements SearchablePage {\n * onSearch(query: string): void {\n * this.filter = query; // '' means the box was cleared — show everything\n * }\n * }\n */\nexport interface SearchablePage {\n /**\n * Called as the user types, and once with `''` when the box is cleared.\n * An empty query means \"show everything\" — it is not the same as the box being\n * absent, which calls nothing at all.\n *\n * Called on every keystroke: the shell does not debounce, impose a minimum\n * length, or wait for Enter. A page that wants any of those owns them.\n * Must not throw — the shell does not catch.\n *\n * @param query What the user has typed. Never null; `''` when cleared.\n * @param event The originating DOM event, when there is one.\n */\n onSearch(query: string, event?: Event): void;\n}\n\n/**\n * Structural type guard used by the shell to detect {@link SearchablePage}.\n *\n * TypeScript interfaces are erased at runtime, so support is detected by shape\n * rather than by nominal type. See research.md Decision 1 for the trade-off.\n */\nexport function isSearchablePage(value: unknown): value is SearchablePage {\n return (\n typeof value === 'object' &&\n value !== null &&\n typeof (value as SearchablePage).onSearch === 'function'\n );\n}\n","import { Injectable, Signal, computed, signal } from '@angular/core';\nimport { SearchablePage, isSearchablePage } from './searchable-page';\n\n/**\n * Mediates between the shell's single toolbar search box and the page on display.\n *\n * The box appears only while the displayed page implements {@link SearchablePage}.\n * The shell binds and unbinds the page from its own `router-outlet` lifecycle — this\n * service deliberately does NOT listen to router events. Revoking on `NavigationStart`\n * (as it once did) fires before guards run and before a reused component is rebuilt,\n * which silently lost the box on a cancelled navigation or a tenant switch.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class SearchService {\n private readonly _page = signal<SearchablePage | null>(null);\n private readonly _query = signal<string>('');\n\n /** Set only by the deprecated {@link enable}. */\n private readonly _legacyCallback = signal<Function | null>(null);\n\n /**\n * Whether the toolbar should offer search — true iff a page is bound.\n *\n * Derived, with no setter: presence cannot be set independently of page support.\n */\n readonly isEnabled: Signal<boolean> = computed(\n () => this._page() !== null || this._legacyCallback() !== null\n );\n\n /** What the user has currently typed for the displayed page. */\n readonly query: Signal<string> = this._query.asReadonly();\n\n /**\n * Bind the page now on display. Called by the shell on outlet activation.\n *\n * A page that does not implement {@link SearchablePage} binds nothing, leaving the\n * box hidden — support is opt-in.\n */\n public bindPage(instance: unknown): void {\n this._page.set(isSearchablePage(instance) ? instance : null);\n }\n\n /**\n * Release the page. Called by the shell on outlet deactivation.\n *\n * Also discards the query: the box is mounted once and shared, so a term left here\n * would surface on the next page, which never received it.\n */\n public unbindPage(): void {\n this._page.set(null);\n this._legacyCallback.set(null);\n this._query.set('');\n }\n\n /** Forward what the user typed to the bound page. Called by the search box. */\n public submit(query: string, event?: Event): void {\n this._query.set(query);\n\n const page = this._page();\n if (page) {\n page.onSearch(query, event);\n return;\n }\n\n const legacy = this._legacyCallback();\n if (legacy) {\n legacy(query, event);\n }\n }\n\n /**\n * @deprecated Implement {@link SearchablePage} on the page component instead — it ties\n * the declaration to the handler, so search cannot be claimed without being served.\n * Still functional; scheduled for removal in the next major.\n */\n public enable(callback: Function) {\n this._legacyCallback.set(callback);\n }\n\n /**\n * @deprecated The shell now revokes automatically when the page changes; there is\n * nothing to call. Still functional; scheduled for removal in the next major.\n */\n public disable() {\n this._page.set(null);\n this._legacyCallback.set(null);\n }\n\n /**\n * @deprecated Renamed to {@link submit}, which also records the query for the box.\n */\n public callback(searchText: string | null, event: any) {\n this.submit(searchText ?? '', event);\n }\n}\n","import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';\nimport { LayoutService } from '../../layout.service';\nimport { ThemeMode } from '../../layout.config';\n\n@Component({\n selector: 'juice-dark-mode',\n templateUrl: './dark-mode.component.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class DarkModeComponent{\n ThemeMode: typeof ThemeMode = ThemeMode;\n prefersDark = window.matchMedia(\"(prefers-color-scheme: dark)\");\n constructor(private service: LayoutService) { \n this.prefersDark.addEventListener(\"change\", e => {\n this.initTheme(e.matches);\n });\n this.initTheme(this.prefersDark.matches);\n }\n icons = new Map<ThemeMode, string>([\n [ThemeMode.Light, \"light_mode\"],\n [ThemeMode.Dark, \"dark_mode\"],\n [ThemeMode.Auto, \"adjust\"]\n ]);\n names = new Map<ThemeMode, string>([\n [ThemeMode.Light, \"Light\"],\n [ThemeMode.Dark, \"Dark\"],\n [ThemeMode.Auto, \"Adaptive\"]\n ]);\n\n name: string = \"\";\n\n icon: string = \"light_mode\";\n\n toggleDarkMode(){\n this.service.toggleDarkMode();\n this.initTheme(this.prefersDark.matches);\n }\n\n initTheme(prefersDark: boolean = false){\n var mode = this.service.getThemeMode();\n var scheme = mode == ThemeMode.Auto ? prefersDark ? ThemeMode.Dark : ThemeMode.Light\n : mode;\n\n document.body.classList.remove(\"dark\");\n\n if(scheme == ThemeMode.Dark){\n document.body.classList.add(scheme);\n }\n this.icon = this.icons.get(mode)??\"\";\n this.name = this.names.get(mode)??\"\";\n }\n}\n","<button mat-icon-button (click)=\"toggleDarkMode()\" matTooltip=\"{{ name | translate }}\" matTooltipPosition=\"left\"><mat-icon>{{icon}}</mat-icon></button>","import { OnInit, Component, ElementRef, ChangeDetectionStrategy } from '@angular/core';\nimport { TooltipPosition } from './tooltip.directive';\n\n@Component({\n selector: 'tooltip',\n templateUrl: './tooltip.component.html',\n styleUrls: ['./tooltip.component.scss'],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class TooltipComponent{\n tooltip: string = '';\n position: TooltipPosition = TooltipPosition.DEFAULT;\n left: number = 0;\n top: number = 0;\n display: boolean = true;\n constructor(private elementRef: ElementRef) { }\n\n calculatePosition(left:number, right:number, top: number, bottom: number): void {\n switch(this.position) {\n case TooltipPosition.BELOW: {\n this.left = Math.round((right - left) / 2 + left);\n this.top = Math.round(bottom);\n break;\n }\n case TooltipPosition.ABOVE: {\n this.left = Math.round((right - left) / 2 + left);\n this.top = Math.round(top);\n break;\n }\n case TooltipPosition.RIGHT: {\n this.left = Math.round(right);\n this.top = Math.round(top + (bottom - top) / 2);\n break;\n }\n case TooltipPosition.LEFT: {\n this.left = Math.round(left);\n this.top = Math.round(top + (bottom - top) / 2);\n break;\n }\n default: {\n break;\n }\n }\n }\n}\n","@if (display) {\n <div #tooltipId class=\"tooltip\" [ngClass]=\"['tooltip--'+position]\"\n [style.left]=\"left + 'px'\" [style.top]=\"top + 'px'\">\n {{tooltip}}\n </div>\n}","import {Directive, Input, ElementRef, HostListener, ComponentRef, ViewContainerRef, EmbeddedViewRef, booleanAttribute} from '@angular/core';\nimport {TooltipComponent} from \"./tooltip.component\";\n\nexport enum TooltipPosition {\n ABOVE = 'above',\n BELOW = 'below',\n LEFT = 'left',\n RIGHT = 'right',\n DEFAULT = 'above'\n}\n\nfunction tooltipPosition(position: string): TooltipPosition {\n switch(position){\n case TooltipPosition.ABOVE: return TooltipPosition.ABOVE;\n case TooltipPosition.BELOW: return TooltipPosition.BELOW;\n case TooltipPosition.LEFT: return TooltipPosition.LEFT;\n case TooltipPosition.RIGHT: return TooltipPosition.RIGHT;\n default: return TooltipPosition.DEFAULT;\n }\n}\n\n@Directive({\n selector: '[tooltip]',\n standalone: false\n})\nexport class TooltipDirective {\n\n @Input() tooltip = '';\n @Input({ transform: tooltipPosition }) tooltipPosition: TooltipPosition = TooltipPosition.DEFAULT;\n @Input({ transform: booleanAttribute }) tooltipDisplay!: boolean;\n componentRef?: ComponentRef<any>;\n constructor(\n\tprivate elementRef: ElementRef,\n private viewContainerRef: ViewContainerRef) {\n }\n\n @HostListener('mouseenter')\n onMouseEnter(): void {\n if (!this.componentRef) {\n\n this.componentRef = this.viewContainerRef.createComponent(TooltipComponent);\n const domElem = \n (this.componentRef.hostView as EmbeddedViewRef<any>)\n .rootNodes[0] as HTMLElement; \n document.body.appendChild(domElem);\n this.setTooltipComponentProperties();\n }\n }\n private getPosition(): TooltipPosition {\n return this.tooltipPosition;\n }\n private setTooltipComponentProperties() {\n if (this.componentRef) {\n this.componentRef.instance.tooltip = this.tooltip;\n this.componentRef.instance.position = this.getPosition();\n this.componentRef.instance.display = this.tooltipDisplay;\n const {left, right, top, bottom} = this.elementRef.nativeElement.getBoundingClientRect();\n this.componentRef.instance.calculatePosition(left, right, top, bottom);\n }\n }\n\n @HostListener('mouseleave')\n onMouseLeave(): void {\n this.destroy();\n }\n\n ngOnDestroy(): void {\n this.destroy();\n }\n\n destroy(): void {\n if (this.componentRef) {\n this.componentRef.destroy();\n this.componentRef = undefined;\n }\n }\n}","import { Component, Input, ChangeDetectionStrategy } from '@angular/core';\nimport { MenuItem } from '@juice-js/core';\nimport { Router } from '@angular/router';\nimport { TooltipPosition } from '../tooltip/tooltip.directive';\n\n@Component({\n selector: 'juice-expandable-menu',\n templateUrl: './expandable-menu.component.html',\n styleUrls: ['./expandable-menu.component.scss'],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class ExpandableMenuComponent {\n @Input()\n isExpanded = false;\n @Input()\n item: MenuItem= {} as MenuItem;\n TooltipPosition: typeof TooltipPosition = TooltipPosition;\n\n constructor(public router: Router) {}\n}\n","<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","import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';\nimport { MenuItem, MenuService, TenantService } from '@juice-js/core';\nimport { LayoutService } from '../../layout.service';\nimport { TooltipPosition } from '../tooltip/tooltip.directive';\nimport { ActivatedRoute } from '@angular/router';\n\n@Component({\n selector: 'juice-nav-menu',\n templateUrl: './nav-menu.component.html',\n styleUrls: ['./nav-menu.component.scss'],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class NavMenuComponent {\n isExpanded = false;\n isMobile = false;\n items: MenuItem[] = [];\n TooltipPosition: typeof TooltipPosition = TooltipPosition;\n\n settingUrl: string|null|undefined;\n\n constructor(private service: MenuService, \n public layout: LayoutService, private tenantService: TenantService,\n private route: ActivatedRoute,\n private breakpointObserver: BreakpointObserver) {\n \n if(route.snapshot.data['settingUrl']){\n this.settingUrl = route.snapshot.data['settingUrl'];\n }else{\n this.settingUrl = layout.settingUrl();\n }\n tenantService.getTenantIdentifier().then(tenant => { this.settingUrl = this.settingUrl?.injectTenant(tenant); });\n\n breakpointObserver.observe([\n Breakpoints.HandsetLandscape,\n Breakpoints.HandsetPortrait\n ]).subscribe(result => {\n this.isMobile = result.matches;\n this.isExpanded = result.matches ? true : this.layout.isMenuOpen();\n });\n this.service.getMenu().subscribe(items => {\n console.debug('Menu items', JSON.parse(JSON.stringify(items)));\n this.items = items;\n });\n }\n\n toggle() {\n this.layout.toggleMenu();\n this.isExpanded = this.layout.isMenuOpen();\n }\n\n mouseEnter() {\n if(!this.isMobile){\n this.isExpanded = true;\n }\n }\n mouseLeave() {\n if(!this.isMobile){\n this.isExpanded = this.layout.isMenuOpen();\n }\n }\n\n}\n","<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>","import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { SearchService } from '../../services/search.service';\nimport {\n trigger,\n state,\n style,\n animate,\n transition,\n // ...\n} from '@angular/animations';\n\n/**\n * The shell's single search box. Mounted once by the toolbar and shared by every page,\n * so it deliberately owns no state of its own: both its visibility and its text come\n * from {@link SearchService}, which scopes them to the page on display. A query held\n * here would outlive the page that was searched and surface on the next one.\n */\n@Component({\n selector: 'juice-search-bar',\n templateUrl: './search-bar.component.html',\n styleUrls: ['./search-bar.component.scss'],\n animations: [\n trigger('enableTrigger', [\n transition(':enter', [\n style({ opacity: 0 }),\n animate('100ms', style({ opacity: 1 })),\n ]),\n transition(':leave', [\n animate('100ms', style({ opacity: 0 }))\n ])\n ]),\n ],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class SearchBarComponent {\n constructor(public service: SearchService) {\n\n }\n\n onSearchTextChange(event: Event){\n const text = (event.target as HTMLInputElement).value;\n this.service.submit(text, event);\n }\n\n clear(event: Event){\n this.service.submit('', event);\n }\n}\n","@if (service.isEnabled()) {\n <div @enableTrigger class=\"search-container\">\n <input type=\"search\" [value]=\"service.query()\"\n (input)=\"onSearchTextChange($event)\" placeholder=\"Search\">\n @if (service.query()) {\n <mat-icon (click)=\"clear($event)\" color=\"primary\">\n close</mat-icon>\n }\n </div>\n}\n","import { AsyncDialog } from '@juice-js/core';\n\nexport abstract class ProfileDialogService extends AsyncDialog<any, string>{\n \n}","import { Component, Optional, OnInit, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { ProfileDialogService } from './profile-dialog.service';\nimport { OAuthService } from 'angular-oauth2-oidc';\nimport { LayoutService } from '../../layout.service';\nimport { IS_PRODUCTION } from '../../layout.config';\nimport { UserProfile } from './user-profile.model';\nimport { filter } from \"rxjs/operators\";\n\n@Component({\n selector: 'juice-user-profile',\n templateUrl: './user-profile.component.html',\n styleUrls: ['./user-profile.component.scss'],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class UserProfileComponent implements OnInit{\n imageUrl: string = \"\";\n imageFailed = false;\n initials: string = \"\";\n isProduction = inject(IS_PRODUCTION);\n\n constructor(@Optional() private dialogService: ProfileDialogService,\n private layoutService: LayoutService,\n private oauthService: OAuthService) {\n this.oauthService.events.pipe(\n filter(e => e.type === \"token_received\")\n ).subscribe((e) => {\n if(!this.isProduction) console.debug('Token received', e);\n this.initImageUrl();\n });\n }\n\n ngOnInit(): void {\n if(this.hasValidToken()){\n this.initImageUrl();\n }else{\n if(!this.isProduction) console.debug('No valid token', this.oauthService.hasValidAccessToken(), this.oauthService.hasValidIdToken());\n }\n }\n\n initImageUrl() {\n if(this.imageUrl){return;}\n\n const claims = this.oauthService.getIdentityClaims();\n this.initials = this.computeInitials(claims);\n if(!this.isProduction) console.debug('Trying to get avatar from claims');\n if(claims[\"picture\"]){\n this.setImageUrl(claims[\"picture\"]);\n }else if(claims[\"avatar\"]){\n this.setImageUrl(claims[\"avatar\"]);\n }else{\n const username = claims[\"preferred_username\"];\n if(username){\n this.setImageUrl(this.layoutService.userImageUrl(username));\n }else{\n if(!this.isProduction) console.debug('Trying to load user profile to get avatar');\n this.oauthService.loadUserProfile().then(info => {\n var userProfile = info as UserProfile;\n if(userProfile){\n this.setImageUrl(this.layoutService.userImageUrl(userProfile.info.preferred_username));\n }else{\n console.warn('No user profile found', info);\n }\n });\n }\n }\n }\n\n private setImageUrl(url: string) {\n this.imageUrl = url ?? \"\";\n this.imageFailed = false;\n }\n\n private computeInitials(claims: Record<string, any>): string {\n if(!claims){ return \"\"; }\n const name = claims[\"name\"]\n || [claims[\"given_name\"], claims[\"family_name\"]].filter(Boolean).join(\" \")\n || claims[\"preferred_username\"]\n || \"\";\n const words = String(name).trim().split(/\\s+/).filter(Boolean);\n if(words.length === 0){ return \"\"; }\n const chars = words.length === 1\n ? words[0].slice(0, 2)\n : words[0][0] + words[words.length - 1][0];\n return chars.toUpperCase();\n }\n\n onImageError() {\n if(!this.isProduction) console.debug('Avatar image failed to load', this.imageUrl);\n this.imageFailed = true;\n }\n\n onClick(){\n if(this.dialogService){\n this.dialogService.open(this.imageUrl);\n }\n }\n \n private hasValidToken() {\n return this.oauthService.hasValidAccessToken() && this.oauthService.hasValidIdToken();\n }\n}\n","<button class=\"user-image\" (click)=\"onClick()\">\n @if (imageUrl && !imageFailed) {\n <img [src]=\"imageUrl\" (error)=\"onImageError()\"/>\n } @else if (initials) {\n <span class=\"user-image-initials\">{{ initials }}</span>\n } @else {\n <mat-icon class=\"user-image-fallback\">account_circle</mat-icon>\n }\n</button>\n","import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';\nimport { LayoutService } from '../layout.service';\nimport { SearchService } from '../services/search.service';\nimport {\n trigger,\n state,\n style,\n animate,\n transition,\n // ...\n} from '@angular/animations';\n\n@Component({\n selector: 'app-page',\n templateUrl: './page.component.html',\n styleUrls: ['./page.component.scss'],\n animations: [\n trigger('menuTransition', [\n state('expand', style({\n width: '220px'\n })),\n state('collapsed', style({\n width: '60px'\n })),\n transition('* => collapsed', [\n animate('0.15s')\n ]),\n transition('* => expand', [\n animate('0.15s')\n ])\n ]),\n trigger('contentTransition', [\n state('expand', style({\n \"margin-left\": \"60px\"\n })),\n state('collapsed', style({\n \"margin-left\": \"220px\"\n })),\n state(\"full\", style({\n \"margin-left\": \"0\"\n })),\n transition('* => collapsed', [\n animate('0.15s')\n ]),\n transition('* => expand', [\n animate('0.15s')\n ])\n ])\n ],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class PageComponent {\n isMobile: boolean = false;\n isSnavOpenned: boolean = false;\n \n constructor(public service: LayoutService,\n private search: SearchService,\n private breakpointObserver: BreakpointObserver) {\n breakpointObserver.observe([\n Breakpoints.HandsetLandscape,\n Breakpoints.HandsetPortrait\n ]).subscribe(result => {\n this.isMobile = result.matches;\n this.isSnavOpenned = !this.isMobile;\n });\n }\n\n public hideSidenavOnMobile(): void {\n if(this.isMobile){\n this.isSnavOpenned = false;\n }\n }\n\n public toggleSidenav(): void {\n this.isSnavOpenned = !this.isSnavOpenned;\n }\n\n public toolbarHeight(): string {\n return \"48px\"; // this.isMobile ? \"42px\" : \"48px\";\n }\n\n /**\n * The routed page just became visible — offer search if it supports it.\n *\n * Driven by the outlet rather than by router events on purpose: the outlet does not\n * deactivate for a cancelled navigation or a param-only change that reuses the\n * component, so the box correctly survives both.\n */\n public onPageActivate(instance: unknown): void {\n this.search.bindPage(instance);\n }\n\n /** The routed page is going away — take the search box with it. */\n public onPageDeactivate(): void {\n this.search.unbindPage();\n }\n}\n","<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\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)=\"onPageActivate($event)\" (deactivate)=\"onPageDeactivate()\"></router-outlet>\n </mat-sidenav-content>\n\n </mat-sidenav-container>\n</div>\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * The content above * * * * * * * * * * * -->\n<!-- * * * * * * * * * * is only a placeholder * * * * * * * * * * -->\n<!-- * * * * * * * * * * and can be replaced. * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->\n<!-- * * * * * * * * * * End of Placeholder * * * * * * * * * * * -->\n<!-- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -->","import { Component, ChangeDetectionStrategy } from '@angular/core';\n\n@Component({\n selector: 'juice-page-notfound',\n templateUrl: './page-notfound.component.html',\n styleUrls: ['./page-notfound.component.scss'],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class PageNotfoundComponent {\n\n}\n","<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 ","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\nimport { CommonModule } from '@angular/common';\nimport { TranslatePipe, TranslateDirective } from '@ngx-translate/core';\n\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { MatSidenavModule } from '@angular/material/sidenav';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatListModule } from '@angular/material/list';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatTooltipModule } from '@angular/material/tooltip';\n\nimport { ILayoutConfig, IS_PRODUCTION, LayoutConfig } from './layout.config';\nimport { LayoutService } from './layout.service';\nimport { DarkModeComponent } from './components/dark-mode/dark-mode.component';\nimport { PageComponent } from './page/page.component';\nimport { NavMenuComponent } from './components/nav-menu/nav-menu.component';\nimport { ExpandableMenuComponent } from './components/expandable-menu/expandable-menu.component';\nimport { PageNotfoundComponent } from './pages/page-notfound/page-notfound.component';\nimport { SearchBarComponent } from './components/search-bar/search-bar.component';\nimport { UserProfileComponent } from './components/user-profile/user-profile.component';\n\nconst routes: Routes = [ \n \n];\n\n@NgModule({\n declarations: [\n PageComponent,\n DarkModeComponent,\n NavMenuComponent,\n ExpandableMenuComponent,\n PageNotfoundComponent,\n SearchBarComponent,\n UserProfileComponent,\n ],\n imports: [\n RouterModule.forChild(routes),\n CommonModule,\n TranslatePipe,\n TranslateDirective,\n MatIconModule,\n MatToolbarModule,\n MatSidenavModule,\n MatButtonModule,\n MatExpansionModule,\n MatListModule,\n MatFormFieldModule,\n MatInputModule,\n MatTooltipModule\n ],\n exports: [\n PageComponent,\n RouterModule\n ]\n})\nexport class LayoutModule { \n\n public static forRoot(production: boolean, options: ILayoutConfig): ModuleWithProviders<LayoutModule> {\n let config: LayoutConfig = new LayoutConfig(options);\n return {\n ngModule: LayoutModule,\n providers: [\n LayoutService,\n {\n provide: IS_PRODUCTION,\n useValue: production\n },\n {\n provide: LayoutConfig,\n useValue: config\n }\n ]\n }\n }\n\n}\n","import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {TooltipComponent} from './tooltip.component';\nimport {TooltipDirective} from './tooltip.directive';\n\n@NgModule({\n declarations: [\n TooltipComponent,\n TooltipDirective\n ],\n imports: [\n CommonModule\n ],\n exports: [\n TooltipDirective\n ]\n})\n/**\n * This module for study purpose only.\n * Consider using matTooltip from @angular/material\n */\nexport class TooltipModule {\n}","import { Injectable, inject } from '@angular/core';\nimport { IS_PRODUCTION } from './layout.config';\n\n@Injectable({\n providedIn: 'root'\n })\nexport class DevGuard {\n isProduction = inject(IS_PRODUCTION);\n canActivate() {\n console.log('DevGuard: this route is available in development environment only!', this.isProduction);\n return !this.isProduction;\n }\n\n canDisplay() {\n console.log('DevGuard: this menu is available in development environment only!', this.isProduction);\n return !this.isProduction;\n }\n}\n","import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';\nimport { OAuthService } from 'angular-oauth2-oidc';\nimport { UserProfile } from '../user-profile/user-profile.model';\n\n@Component({\n selector: 'app-user-profile',\n templateUrl: './user-profile-dialog.component.html',\n styleUrls: ['./user-profile-dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.Eager,\n standalone: false\n})\nexport class UserProfileDialogComponent implements OnInit{\n username = '';\n name = '';\n email = '';\n loggedin = false;\n constructor(private auth: OAuthService) { \n \n }\n\n ngOnInit(): void {\n if(this.auth.hasValidIdToken()){\n const claims = this.auth.getIdentityClaims();\n if(claims['preferred_username']){\n this.setValues(claims);\n }else{\n this.auth.loadUserProfile().then(info => {\n var userProfile = info as UserProfile;\n if(userProfile){\n this.setValues(userProfile.info);\n }else{\n console.debug('No user profile', info);\n }\n });\n }\n }\n }\n\n setValues(claims: any){\n this.username = claims['preferred_username'];\n this.name = claims['name'];\n this.email = claims['email']??'';\n this.loggedin = true;\n }\n\n logout(){\n this.auth.loadDiscoveryDocument().then(() => {\n this.auth.logOut();\n });\n }\n}\n","@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>","import { Injectable } from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { ProfileDialogService } from '../user-profile/profile-dialog.service';\nimport { UserProfileDialogComponent } from './user-profile-dialog.component';\n\n@Injectable()\nexport class UserProfileDialogService extends ProfileDialogService {\n constructor(matDialog: MatDialog) {\n super(matDialog);\n }\n async open(data: string): Promise<any> {\n return this.matDialog.open(UserProfileDialogComponent, {position: { top: '50px', right: '10px'}});\n }\n}","import { NgModule } from '@angular/core';\nimport { UserProfileDialogComponent } from './user-profile-dialog.component';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatButtonModule } from '@angular/material/button';\nimport { ProfileDialogService } from '../user-profile/profile-dialog.service';\nimport { UserProfileDialogService } from './user-profile-dialog.service';\nimport { TranslatePipe, TranslateDirective } from '@ngx-translate/core';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n declarations: [\n UserProfileDialogComponent\n ],\n imports: [\n MatDialogModule,\n MatButtonModule,\n TranslatePipe,\n TranslateDirective,\n CommonModule\n ],\n exports: [\n ],\n providers: [\n {\n provide: ProfileDialogService,\n useClass: UserProfileDialogService\n }\n ]\n})\nexport class UserProfileDialogModule {\n}\n","/*\n * Public API Surface of layout\n */\n\nexport * from './lib/layout.service';\nexport * from './lib/page/page.component';\nexport * from './lib/layout.module';\nexport * from './lib/components/nav-menu/nav-menu.component';\nexport * from './lib/components/expandable-menu/expandable-menu.component';\nexport * from './lib/pages/page-notfound/page-notfound.component';\nexport * from './lib/components/tooltip/tooltip.directive';\nexport * from './lib/components/tooltip/tooltip.module';\nexport * from './lib/dev.guard';\nexport * from './lib/services/search.service';\nexport * from './lib/services/searchable-page';\nexport * from './lib/components/user-profile/profile-dialog.service';\nexport * from './lib/components/user-profile-dialog/user-profile-dialog.module';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.LayoutConfig","i2","i1.LayoutService","i1","i3","i4","i5","i2.LayoutService","i7","i8.ExpandableMenuComponent","i9","i1.SearchService","i1.ProfileDialogService","i2.SearchService","i6","i8","i9.DarkModeComponent","i10.NavMenuComponent","i11.SearchBarComponent","i12.UserProfileComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAY,SAIX;AAJD,CAAA,UAAY,SAAS,EAAA;AACjB,IAAA,SAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACjB,CAAC,EAJW,SAAS,KAAT,SAAS,GAAA,EAAA,CAAA,CAAA;MAKR,YAAY,CAAA;AAUrB,IAAA,WAAA,CAAY,OAAuB,EAAA;QATnC,IAAA,CAAA,OAAO,GAAW,aAAa;QAC/B,IAAA,CAAA,KAAK,GAAW,OAAO;QACvB,IAAA,CAAA,SAAS,GAAW,wBAAwB;AAC5C,QAAA,IAAA,CAAA,gBAAgB,GAAc,SAAS,CAAC,IAAI;QAC5C,IAAA,CAAA,eAAe,GAAW,OAAO;QACjC,IAAA,CAAA,eAAe,GAAY,KAAK;QAK5B,IAAG,OAAO,EAAC;AACP,YAAA,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC;QAChC;IACJ;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AA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,EAAA,SAAA,EAPvB;AACT,YAAA;AACE,gBAAA,OAAO,EAAE,oBAAoB;AAC7B,gBAAA,QAAQ,EAAE;AACX;AACF,SAAA,EAAA,OAAA,EAAA,CAbC,eAAe;YACf,eAAe;YAGf,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAWH,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBApBnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,eAAe;wBACf,eAAe;wBACf,aAAa;wBACb,kBAAkB;wBAClB;AACD,qBAAA;AACD,oBAAA,OAAO,EAAE,EACR;AACD,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,oBAAoB;AAC7B,4BAAA,QAAQ,EAAE;AACX;AACF;AACF,iBAAA;;;AC5BD;;AAEG;;ACFH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juice-js/layout",
3
- "version": "1.2.0",
3
+ "version": "1.3.0-alpha.2",
4
4
  "description": "Juice layout",
5
5
  "author": {
6
6
  "name": "jack@creatorflow.io"
@@ -19,8 +19,8 @@
19
19
  "url": "git+https://github.com/creatorflow-io/juice-layout.git"
20
20
  },
21
21
  "peerDependencies": {
22
- "@juice-js/core": "1.2.0",
23
- "@juice-js/localize": "1.2.0"
22
+ "@juice-js/core": "1.3.0-alpha.2",
23
+ "@juice-js/localize": "1.3.0-alpha.2"
24
24
  },
25
25
  "dependencies": {
26
26
  "tslib": "^2.3.0"
@@ -40,5 +40,5 @@
40
40
  "typings": "types/juice-js-layout.d.ts",
41
41
  "type": "module",
42
42
  "readme": "ERROR: No README data found!",
43
- "_id": "@juice-js/layout@1.2.0"
43
+ "_id": "@juice-js/layout@1.3.0-alpha.2"
44
44
  }
@@ -22,6 +22,10 @@
22
22
  display: block;
23
23
  }
24
24
 
25
+ .p-4 {
26
+ padding: 1rem !important;
27
+ }
28
+
25
29
  @include layout-component-colors($theme);
26
30
  }
27
31
  @mixin layout-component-colors($theme) {
@@ -1,22 +1,21 @@
1
1
  import { TenantService, MenuItem, MenuService, AsyncDialog } from '@juice-js/core';
2
2
  import * as i0 from '@angular/core';
3
- import { ComponentRef, ElementRef, ViewContainerRef, OnInit, ModuleWithProviders } from '@angular/core';
3
+ import { Signal, ComponentRef, ElementRef, ViewContainerRef, OnInit, ModuleWithProviders } from '@angular/core';
4
4
  import { BreakpointObserver } from '@angular/cdk/layout';
5
5
  import * as i8 from '@angular/router';
6
6
  import { ActivatedRoute, Router } from '@angular/router';
7
7
  import { OAuthService } from 'angular-oauth2-oidc';
8
8
  import * as i9 from '@angular/common';
9
- import * as i10 from '@angular/forms';
10
- import * as i11 from '@ngx-translate/core';
11
- import * as i12 from '@angular/material/icon';
12
- import * as i13 from '@angular/material/toolbar';
13
- import * as i14 from '@angular/material/sidenav';
14
- import * as i15 from '@angular/material/button';
15
- import * as i16 from '@angular/material/expansion';
16
- import * as i17 from '@angular/material/list';
17
- import * as i18 from '@angular/material/form-field';
18
- import * as i19 from '@angular/material/input';
19
- import * as i20 from '@angular/material/tooltip';
9
+ import * as i10 from '@ngx-translate/core';
10
+ import * as i11 from '@angular/material/icon';
11
+ import * as i12 from '@angular/material/toolbar';
12
+ import * as i13 from '@angular/material/sidenav';
13
+ import * as i14 from '@angular/material/button';
14
+ import * as i15 from '@angular/material/expansion';
15
+ import * as i16 from '@angular/material/list';
16
+ import * as i17 from '@angular/material/form-field';
17
+ import * as i18 from '@angular/material/input';
18
+ import * as i19 from '@angular/material/tooltip';
20
19
  import * as i2 from '@angular/material/dialog';
21
20
 
22
21
  declare enum ThemeMode {
@@ -66,16 +65,83 @@ declare class LayoutService {
66
65
  static ɵprov: i0.ɵɵInjectableDeclaration<LayoutService>;
67
66
  }
68
67
 
68
+ /**
69
+ * Mediates between the shell's single toolbar search box and the page on display.
70
+ *
71
+ * The box appears only while the displayed page implements {@link SearchablePage}.
72
+ * The shell binds and unbinds the page from its own `router-outlet` lifecycle — this
73
+ * service deliberately does NOT listen to router events. Revoking on `NavigationStart`
74
+ * (as it once did) fires before guards run and before a reused component is rebuilt,
75
+ * which silently lost the box on a cancelled navigation or a tenant switch.
76
+ */
77
+ declare class SearchService {
78
+ private readonly _page;
79
+ private readonly _query;
80
+ /** Set only by the deprecated {@link enable}. */
81
+ private readonly _legacyCallback;
82
+ /**
83
+ * Whether the toolbar should offer search — true iff a page is bound.
84
+ *
85
+ * Derived, with no setter: presence cannot be set independently of page support.
86
+ */
87
+ readonly isEnabled: Signal<boolean>;
88
+ /** What the user has currently typed for the displayed page. */
89
+ readonly query: Signal<string>;
90
+ /**
91
+ * Bind the page now on display. Called by the shell on outlet activation.
92
+ *
93
+ * A page that does not implement {@link SearchablePage} binds nothing, leaving the
94
+ * box hidden — support is opt-in.
95
+ */
96
+ bindPage(instance: unknown): void;
97
+ /**
98
+ * Release the page. Called by the shell on outlet deactivation.
99
+ *
100
+ * Also discards the query: the box is mounted once and shared, so a term left here
101
+ * would surface on the next page, which never received it.
102
+ */
103
+ unbindPage(): void;
104
+ /** Forward what the user typed to the bound page. Called by the search box. */
105
+ submit(query: string, event?: Event): void;
106
+ /**
107
+ * @deprecated Implement {@link SearchablePage} on the page component instead — it ties
108
+ * the declaration to the handler, so search cannot be claimed without being served.
109
+ * Still functional; scheduled for removal in the next major.
110
+ */
111
+ enable(callback: Function): void;
112
+ /**
113
+ * @deprecated The shell now revokes automatically when the page changes; there is
114
+ * nothing to call. Still functional; scheduled for removal in the next major.
115
+ */
116
+ disable(): void;
117
+ /**
118
+ * @deprecated Renamed to {@link submit}, which also records the query for the box.
119
+ */
120
+ callback(searchText: string | null, event: any): void;
121
+ static ɵfac: i0.ɵɵFactoryDeclaration<SearchService, never>;
122
+ static ɵprov: i0.ɵɵInjectableDeclaration<SearchService>;
123
+ }
124
+
69
125
  declare class PageComponent {
70
126
  service: LayoutService;
127
+ private search;
71
128
  private breakpointObserver;
72
129
  isMobile: boolean;
73
130
  isSnavOpenned: boolean;
74
- constructor(service: LayoutService, breakpointObserver: BreakpointObserver);
131
+ constructor(service: LayoutService, search: SearchService, breakpointObserver: BreakpointObserver);
75
132
  hideSidenavOnMobile(): void;
76
133
  toggleSidenav(): void;
77
134
  toolbarHeight(): string;
78
- onAttach(e: any): void;
135
+ /**
136
+ * The routed page just became visible — offer search if it supports it.
137
+ *
138
+ * Driven by the outlet rather than by router events on purpose: the outlet does not
139
+ * deactivate for a cancelled navigation or a param-only change that reuses the
140
+ * component, so the box correctly survives both.
141
+ */
142
+ onPageActivate(instance: unknown): void;
143
+ /** The routed page is going away — take the search box with it. */
144
+ onPageDeactivate(): void;
79
145
  static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
80
146
  static ɵcmp: i0.ɵɵComponentDeclaration<PageComponent, "app-page", never, {}, {}, never, never, false, never>;
81
147
  }
@@ -156,23 +222,17 @@ declare class PageNotfoundComponent {
156
222
  static ɵcmp: i0.ɵɵComponentDeclaration<PageNotfoundComponent, "juice-page-notfound", never, {}, {}, never, never, false, never>;
157
223
  }
158
224
 
159
- declare class SearchService {
160
- isEnabled: boolean;
161
- private _callback;
162
- constructor(router: Router);
163
- disable(): void;
164
- enable(callback: Function): void;
165
- callback(searchText: string | null, event: any): void;
166
- static ɵfac: i0.ɵɵFactoryDeclaration<SearchService, never>;
167
- static ɵprov: i0.ɵɵInjectableDeclaration<SearchService>;
168
- }
169
-
225
+ /**
226
+ * The shell's single search box. Mounted once by the toolbar and shared by every page,
227
+ * so it deliberately owns no state of its own: both its visibility and its text come
228
+ * from {@link SearchService}, which scopes them to the page on display. A query held
229
+ * here would outlive the page that was searched and surface on the next one.
230
+ */
170
231
  declare class SearchBarComponent {
171
- private service;
172
- searchText: string;
232
+ service: SearchService;
173
233
  constructor(service: SearchService);
174
- isEnabled(): boolean;
175
- onSearchTextChange(event: any): void;
234
+ onSearchTextChange(event: Event): void;
235
+ clear(event: Event): void;
176
236
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchBarComponent, never>;
177
237
  static ɵcmp: i0.ɵɵComponentDeclaration<SearchBarComponent, "juice-search-bar", never, {}, {}, never, never, false, never>;
178
238
  }
@@ -203,7 +263,7 @@ declare class UserProfileComponent implements OnInit {
203
263
  declare class LayoutModule {
204
264
  static forRoot(production: boolean, options: ILayoutConfig): ModuleWithProviders<LayoutModule>;
205
265
  static ɵfac: i0.ɵɵFactoryDeclaration<LayoutModule, never>;
206
- static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutModule, [typeof PageComponent, typeof DarkModeComponent, typeof NavMenuComponent, typeof ExpandableMenuComponent, typeof PageNotfoundComponent, typeof SearchBarComponent, typeof UserProfileComponent], [typeof i8.RouterModule, typeof i9.CommonModule, typeof i10.FormsModule, typeof i11.TranslatePipe, typeof i11.TranslateDirective, typeof i12.MatIconModule, typeof i13.MatToolbarModule, typeof i14.MatSidenavModule, typeof i15.MatButtonModule, typeof i16.MatExpansionModule, typeof i17.MatListModule, typeof i18.MatFormFieldModule, typeof i19.MatInputModule, typeof i20.MatTooltipModule], [typeof PageComponent, typeof i8.RouterModule]>;
266
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutModule, [typeof PageComponent, typeof DarkModeComponent, typeof NavMenuComponent, typeof ExpandableMenuComponent, typeof PageNotfoundComponent, typeof SearchBarComponent, typeof UserProfileComponent], [typeof i8.RouterModule, typeof i9.CommonModule, typeof i10.TranslatePipe, typeof i10.TranslateDirective, typeof i11.MatIconModule, typeof i12.MatToolbarModule, typeof i13.MatSidenavModule, typeof i14.MatButtonModule, typeof i15.MatExpansionModule, typeof i16.MatListModule, typeof i17.MatFormFieldModule, typeof i18.MatInputModule, typeof i19.MatTooltipModule], [typeof PageComponent, typeof i8.RouterModule]>;
207
267
  static ɵinj: i0.ɵɵInjectorDeclaration<LayoutModule>;
208
268
  }
209
269
 
@@ -234,6 +294,46 @@ declare class DevGuard {
234
294
  static ɵprov: i0.ɵɵInjectableDeclaration<DevGuard>;
235
295
  }
236
296
 
297
+ /**
298
+ * Implemented by a routed page to declare that it supports search.
299
+ *
300
+ * The shell's toolbar hosts one search box, shared by every page. It appears only
301
+ * while the displayed page implements this interface, and disappears otherwise —
302
+ * there is nothing else to opt in to and no flag to set.
303
+ *
304
+ * Implementing `onSearch` IS the declaration: support and handling cannot be
305
+ * declared apart, so a box that accepts typing no page listens to is impossible.
306
+ *
307
+ * @example
308
+ * export class OrdersComponent implements SearchablePage {
309
+ * onSearch(query: string): void {
310
+ * this.filter = query; // '' means the box was cleared — show everything
311
+ * }
312
+ * }
313
+ */
314
+ interface SearchablePage {
315
+ /**
316
+ * Called as the user types, and once with `''` when the box is cleared.
317
+ * An empty query means "show everything" — it is not the same as the box being
318
+ * absent, which calls nothing at all.
319
+ *
320
+ * Called on every keystroke: the shell does not debounce, impose a minimum
321
+ * length, or wait for Enter. A page that wants any of those owns them.
322
+ * Must not throw — the shell does not catch.
323
+ *
324
+ * @param query What the user has typed. Never null; `''` when cleared.
325
+ * @param event The originating DOM event, when there is one.
326
+ */
327
+ onSearch(query: string, event?: Event): void;
328
+ }
329
+ /**
330
+ * Structural type guard used by the shell to detect {@link SearchablePage}.
331
+ *
332
+ * TypeScript interfaces are erased at runtime, so support is detected by shape
333
+ * rather than by nominal type. See research.md Decision 1 for the trade-off.
334
+ */
335
+ declare function isSearchablePage(value: unknown): value is SearchablePage;
336
+
237
337
  declare class UserProfileDialogComponent implements OnInit {
238
338
  private auth;
239
339
  username: string;
@@ -250,8 +350,9 @@ declare class UserProfileDialogComponent implements OnInit {
250
350
 
251
351
  declare class UserProfileDialogModule {
252
352
  static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileDialogModule, never>;
253
- static ɵmod: i0.ɵɵNgModuleDeclaration<UserProfileDialogModule, [typeof UserProfileDialogComponent], [typeof i2.MatDialogModule, typeof i15.MatButtonModule, typeof i11.TranslatePipe, typeof i11.TranslateDirective, typeof i9.CommonModule], never>;
353
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UserProfileDialogModule, [typeof UserProfileDialogComponent], [typeof i2.MatDialogModule, typeof i14.MatButtonModule, typeof i10.TranslatePipe, typeof i10.TranslateDirective, typeof i9.CommonModule], never>;
254
354
  static ɵinj: i0.ɵɵInjectorDeclaration<UserProfileDialogModule>;
255
355
  }
256
356
 
257
- export { DevGuard, ExpandableMenuComponent, LayoutModule, LayoutService, NavMenuComponent, PageComponent, PageNotfoundComponent, ProfileDialogService, SearchService, TooltipDirective, TooltipModule, TooltipPosition, UserProfileDialogModule };
357
+ export { DevGuard, ExpandableMenuComponent, LayoutModule, LayoutService, NavMenuComponent, PageComponent, PageNotfoundComponent, ProfileDialogService, SearchService, TooltipDirective, TooltipModule, TooltipPosition, UserProfileDialogModule, isSearchablePage };
358
+ export type { SearchablePage };