@juice-js/layout 2.5.0-alpha.5 → 3.0.0-alpha.1

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.
@@ -1,24 +1,14 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Type, Signal, ChangeDetectorRef, ComponentRef, ElementRef, ViewContainerRef, OnInit, ModuleWithProviders } from '@angular/core';
3
- import { TenantService, MenuItem, MenuService, AsyncDialog } from '@juice-js/core';
4
- import { BreakpointObserver } from '@angular/cdk/layout';
2
+ import { InjectionToken, Type, Signal, ModuleWithProviders, EnvironmentProviders, ComponentRef, ElementRef, ViewContainerRef } from '@angular/core';
3
+ import { MenuItem, AsyncDialog } from '@juice-js/core';
4
+ import { JuiceThemeOptions } from '@juice-js/ui/theme';
5
+ import * as i1 from '@angular/router';
6
+ import { IsActiveMatchOptions } from '@angular/router';
7
+ import * as i2 from '@angular/cdk/dialog';
8
+ import { Dialog, DialogRef } from '@angular/cdk/dialog';
9
+ import { JuiceIconSet } from '@juice-js/icons';
5
10
  import * as _juice_js_layout from '@juice-js/layout';
6
- import * as i11 from '@angular/router';
7
- import { ActivatedRoute, IsActiveMatchOptions, Router } from '@angular/router';
8
- import { OAuthService } from 'angular-oauth2-oidc';
9
- import * as i12 from '@angular/common';
10
- import * as i13 from '@ngx-translate/core';
11
- import * as i14 from '@angular/material/icon';
12
- import * as i15 from '@angular/material/toolbar';
13
- import * as i16 from '@angular/material/sidenav';
14
- import * as i17 from '@angular/material/button';
15
- import * as i18 from '@angular/material/expansion';
16
- import * as i19 from '@angular/material/list';
17
- import * as i20 from '@angular/material/form-field';
18
- import * as i21 from '@angular/material/input';
19
- import * as i22 from '@angular/material/tooltip';
20
- import * as i23 from '@angular/material/dialog';
21
- import * as i24 from '@angular/material/menu';
11
+ import * as i3 from '@angular/common';
22
12
 
23
13
  declare enum ThemeMode {
24
14
  Light = "light",
@@ -44,6 +34,7 @@ interface ILayoutConfig {
44
34
  favicon?: string;
45
35
  brand: string;
46
36
  brandLogo?: string;
37
+ /** The theme mode before the viewer picks one (ThemeService's `defaultMode`). Default Auto (follows the system). */
47
38
  defaultThemeMode?: ThemeMode;
48
39
  defaultLanguage?: string;
49
40
  defaultMenuOpen?: boolean;
@@ -55,63 +46,70 @@ interface ILayoutConfig {
55
46
  */
56
47
  pageSwitcher?: boolean;
57
48
  /**
58
- * The colour palettes the viewer can switch between (the palette button beside the dark mode switch), by the names
59
- * the stylesheet's `layout.theme()` emits. Default: teal and indigo. With one palette, no button.
49
+ * The accents the viewer can switch between (the palette button beside the dark mode switch). Each id must be an accent the
50
+ * stylesheet defines (`[data-accent=<id>]`; the tokens ship indigo, teal and violet). Default: those three. With one, no button.
60
51
  */
61
52
  palettes?: LayoutPalette[];
62
- /**
63
- * The palette before the viewer picks one. Without it, the stylesheet's `default` applies (teal unless
64
- * `layout.theme((default: …))` changed it).
65
- */
53
+ /** The accent before the viewer picks one. Default indigo. */
66
54
  defaultPalette?: string;
67
55
  /**
68
- * Whether the shell marks its content area as the page's main landmark (`role="main"`). Set false when the pages
56
+ * Whether the shell marks its content area as the page's main landmark (`<main>`). Set false when the pages
69
57
  * bring their own `<main>`: a page has one. Default true.
70
58
  */
71
59
  mainLandmark?: boolean;
72
60
  }
73
- /** A colour palette, as `layout.theme()` names it and the palette menu shows it. */
61
+ /** A colour palette (an accent of the design tokens), as the palette menu shows it. */
74
62
  interface LayoutPalette {
75
- /** The palette's name in the stylesheet: `data-juice-palette="<id>"`. */
63
+ /** The accent's id in the stylesheet: `data-accent="<id>"` (and `data-juice-palette` for 2.x pages). */
76
64
  id: string;
77
65
  /** Shown in the menu (translated). */
78
66
  name: string;
79
- /** The swatch in the menu, a CSS colour; usually the palette's primary. */
67
+ /** The swatch in the menu, a CSS colour. */
80
68
  color: string;
81
69
  }
82
- /** The palettes `layout.theme()` ships. */
70
+ /** The accents the design tokens ship: indigo (the default), teal and violet. */
83
71
  declare const LAYOUT_PALETTES: readonly LayoutPalette[];
72
+ declare const IS_PRODUCTION: InjectionToken<boolean>;
84
73
  /**
85
74
  * Components an app adds to the toolbar, before the dark mode switch (a notification bell): provide each with `multi: true`.
86
75
  * `{ provide: LAYOUT_TOOLBAR_ITEMS, useValue: NotificationBellComponent, multi: true }`.
87
76
  */
88
77
  declare const LAYOUT_TOOLBAR_ITEMS: InjectionToken<Type<unknown>[]>;
89
78
 
79
+ /**
80
+ * The shell's state: brand and tenant, the menu's open state, and the 2.x theme API (palette, dark mode), which delegates to
81
+ * {@link ThemeService} (`@juice-js/ui/theme`): one source of truth for `data-theme`, `data-accent` and the legacy mirrors.
82
+ */
90
83
  declare class LayoutService {
91
84
  static DARK_MODE: string;
92
85
  static MENU_OPEN: string;
93
86
  static PALETTE: string;
87
+ private readonly theme;
88
+ private readonly _options;
94
89
  private readonly _tenantIdentifier;
95
90
  private readonly _tenant;
96
- private _options;
97
- private readonly _palette;
98
- /** The palette in use: the viewer's choice, else LayoutConfig.defaultPalette; null means the stylesheet's default. */
99
- readonly palette: i0.Signal<string | null>;
91
+ private readonly _menuOpen;
92
+ /** The accent in use (ThemeService.accent). */
93
+ readonly palette: Signal<string | null>;
94
+ /** Whether the viewer keeps the side menu open (unfolded), remembered under `IS_MENU_OPEN`. */
95
+ readonly menuOpen: Signal<boolean>;
100
96
  get tenantIdentifier(): string;
101
97
  set tenantIdentifier(value: string);
102
- constructor(options: LayoutConfig, tenantService: TenantService);
98
+ constructor();
103
99
  /** The palettes the viewer can pick from (LayoutConfig.palettes). */
104
100
  palettes(): LayoutPalette[];
105
101
  /**
106
- * Switches every page to a palette and remembers it in this browser: it sets `data-juice-palette` on `<html>`, which
107
- * `layout.theme()` and the Juice pages' tokens follow. Null goes back to the app's default.
102
+ * Switches every page to an accent and remembers it in this browser (ThemeService.setAccent: `data-accent`, and
103
+ * `data-juice-palette` for 2.x pages, on `<html>`). Null goes back to the app's default. An id the theme does not offer is ignored.
108
104
  */
109
105
  setPalette(id: string | null): void;
110
- private storedPalette;
111
- private applyPalette;
106
+ /** The theme mode, in 2.x terms (Auto = follow the system). */
112
107
  getThemeMode(): ThemeMode;
108
+ setThemeMode(mode: ThemeMode): void;
109
+ /** Auto, then Light, then Dark, then Auto again: the dark mode button. */
113
110
  toggleDarkMode(): void;
114
111
  isMenuOpen(): boolean;
112
+ setMenuOpen(open: boolean): void;
115
113
  toggleMenu(): void;
116
114
  favicon(): string;
117
115
  brandName(): string;
@@ -120,65 +118,15 @@ declare class LayoutService {
120
118
  mainLandmark(): boolean;
121
119
  settingUrl(): string | undefined;
122
120
  userImageUrl(username: string): string;
123
- static ɵfac: i0.ɵɵFactoryDeclaration<LayoutService, [{ optional: true; }, null]>;
124
- static ɵprov: i0.ɵɵInjectableDeclaration<LayoutService>;
125
- }
126
-
127
- /**
128
- * Mediates between the shell's single toolbar search box and the page on display.
129
- *
130
- * The box appears only while the displayed page implements {@link SearchablePage}.
131
- * The shell binds and unbinds the page from its own `router-outlet` lifecycle — this
132
- * service deliberately does NOT listen to router events. Revoking on `NavigationStart`
133
- * (as it once did) fires before guards run and before a reused component is rebuilt,
134
- * which silently lost the box on a cancelled navigation or a tenant switch.
135
- */
136
- declare class SearchService {
137
- private readonly _page;
138
- private readonly _query;
139
- /** Set only by the deprecated {@link enable}. */
140
- private readonly _legacyCallback;
141
- /**
142
- * Whether the toolbar should offer search — true iff a page is bound.
143
- *
144
- * Derived, with no setter: presence cannot be set independently of page support.
145
- */
146
- readonly isEnabled: Signal<boolean>;
147
- /** What the user has currently typed for the displayed page. */
148
- readonly query: Signal<string>;
149
- /**
150
- * Bind the page now on display. Called by the shell on outlet activation.
151
- *
152
- * A page that does not implement {@link SearchablePage} binds nothing, leaving the
153
- * box hidden — support is opt-in.
154
- */
155
- bindPage(instance: unknown): void;
121
+ private readMenuOpen;
156
122
  /**
157
- * Release the page. Called by the shell on outlet deactivation.
158
- *
159
- * Also discards the query: the box is mounted once and shared, so a term left here
160
- * would surface on the next page, which never received it.
123
+ * A 2.x app on the same origin writes only the legacy keys (`IS_DARK_MODE`, `JUICE_PALETTE`); ThemeService prefers its own record
124
+ * once it has one, and mirrors the legacy keys on every change. So legacy keys that differ from the theme were written later by a
125
+ * 2.x app: adopt them, so both apps show the same theme. Values off the allow-lists are ignored.
161
126
  */
162
- unbindPage(): void;
163
- /** Forward what the user typed to the bound page. Called by the search box. */
164
- submit(query: string, event?: Event): void;
165
- /**
166
- * @deprecated Implement {@link SearchablePage} on the page component instead — it ties
167
- * the declaration to the handler, so search cannot be claimed without being served.
168
- * Still functional; scheduled for removal in the next major.
169
- */
170
- enable(callback: Function): void;
171
- /**
172
- * @deprecated The shell now revokes automatically when the page changes; there is
173
- * nothing to call. Still functional; scheduled for removal in the next major.
174
- */
175
- disable(): void;
176
- /**
177
- * @deprecated Renamed to {@link submit}, which also records the query for the box.
178
- */
179
- callback(searchText: string | null, event: any): void;
180
- static ɵfac: i0.ɵɵFactoryDeclaration<SearchService, never>;
181
- static ɵprov: i0.ɵɵInjectableDeclaration<SearchService>;
127
+ private adoptLegacyKeys;
128
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutService, never>;
129
+ static ɵprov: i0.ɵɵInjectableDeclaration<LayoutService>;
182
130
  }
183
131
 
184
132
  /** A page the switcher offers: a menu item with a page of its own. */
@@ -250,34 +198,31 @@ declare class PageSwitcherService {
250
198
  */
251
199
  declare function flatten(items: MenuItem[], tenant?: string | null, group?: string): PageEntry[];
252
200
 
201
+ /**
202
+ * The standard workspace: the route shell of a Juice app. The header (brand, search, page switcher, the app's toolbar items,
203
+ * accent, theme, profile), the side menu (folded or not, remembered under `IS_MENU_OPEN`; a panel over the page on a phone) and the
204
+ * routed page. Use it as a route's component: `{ path: '', component: PageComponent, children: [...] }`.
205
+ */
253
206
  declare class PageComponent {
254
- service: LayoutService;
255
- private search;
256
- /** The page switcher: its keys are live while the shell is, and the shell shows it (see the constructor). */
257
- switcher: PageSwitcherService;
258
- private breakpointObserver;
259
207
  /** The app's own toolbar items ({@link LAYOUT_TOOLBAR_ITEMS}). */
260
208
  readonly toolbarItems: Type<unknown>[];
209
+ readonly service: LayoutService;
210
+ /** The page switcher: its keys are live while the shell is, and the shell shows it (see the constructor). */
211
+ readonly switcher: PageSwitcherService;
212
+ private readonly search;
261
213
  isMobile: boolean;
214
+ /** On a phone: whether the menu panel is open. */
262
215
  isSnavOpenned: boolean;
216
+ constructor();
263
217
  /**
264
- * True while the shell is first drawn: the sidenav's width, its mode and the menu's open groups settle with no
265
- * animation (an animated settle on load shifts the page under the reader).
266
- */
267
- settling: boolean;
268
- constructor(service: LayoutService, search: SearchService,
269
- /** The page switcher: its keys are live while the shell is, and the shell shows it (see the constructor). */
270
- switcher: PageSwitcherService, breakpointObserver: BreakpointObserver, cdr: ChangeDetectorRef);
271
- /** The skip link: moves the focus to the page, without touching the URL (the router owns it). */
272
- skipToContent(event: Event): void;
273
- /**
274
- * Shows the page switcher in a dialog while it is open (the dialog brings the focus trap, Escape, the backdrop and
218
+ * Shows the page switcher in a CDK dialog while it is open (the dialog brings the focus trap, Escape, the backdrop and
275
219
  * gives focus back), and its keys while the shell is on screen.
276
220
  */
277
221
  private hostPageSwitcher;
278
222
  hideSidenavOnMobile(): void;
279
223
  toggleSidenav(): void;
280
- toolbarHeight(): string;
224
+ /** The side menu's fold toggle: remembered under `IS_MENU_OPEN`. */
225
+ onCollapsedChange(collapsed: boolean): void;
281
226
  /**
282
227
  * The routed page just became visible — offer search if it supports it.
283
228
  *
@@ -289,33 +234,171 @@ declare class PageComponent {
289
234
  /** The routed page is going away — take the search box with it. */
290
235
  onPageDeactivate(): void;
291
236
  static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, never>;
292
- static ɵcmp: i0.ɵɵComponentDeclaration<PageComponent, "app-page", never, {}, {}, never, never, false, never>;
237
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageComponent, "juice-standard-workspace, app-page", never, {}, {}, never, never, true, never>;
293
238
  }
239
+ /** The standard workspace preset (`<juice-standard-workspace>`): the same class as {@link PageComponent}. */
240
+ declare const JuiceStandardWorkspace: typeof PageComponent;
294
241
 
295
- declare class DarkModeComponent {
296
- private service;
297
- ThemeMode: typeof ThemeMode;
298
- prefersDark: MediaQueryList;
299
- constructor(service: LayoutService);
300
- icons: Map<ThemeMode, string>;
301
- names: Map<ThemeMode, string>;
302
- name: string;
303
- icon: string;
304
- toggleDarkMode(): void;
305
- initTheme(prefersDark?: boolean): void;
306
- static ɵfac: i0.ɵɵFactoryDeclaration<DarkModeComponent, never>;
307
- static ɵcmp: i0.ɵɵComponentDeclaration<DarkModeComponent, "juice-dark-mode", never, {}, {}, never, never, false, never>;
242
+ /** The theme options that follow the layout's config: its palettes as the accents, its defaults as the theme's. */
243
+ declare function layoutThemeOptions(config: LayoutConfig): JuiceThemeOptions;
244
+ /**
245
+ * The layout for a standalone app: `bootstrapApplication(App, { providers: [provideJuiceLayout(production, { brand: 'Acme' })] })`.
246
+ * Registers the shell's icons; register your menu's icons with `provideJuiceIcons()`.
247
+ */
248
+ declare function provideJuiceLayout(production: boolean, options: ILayoutConfig): EnvironmentProviders;
249
+ declare class LayoutModule {
250
+ static forRoot(production: boolean, options: ILayoutConfig): ModuleWithProviders<LayoutModule>;
251
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutModule, never>;
252
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutModule, never, [typeof i1.RouterModule, typeof i2.DialogModule, typeof PageComponent], [typeof PageComponent, typeof i1.RouterModule]>;
253
+ static ɵinj: i0.ɵɵInjectorDeclaration<LayoutModule>;
254
+ }
255
+
256
+ /** The icons the shell itself draws; `provideJuiceLayout()` and `LayoutModule.forRoot()` register them. */
257
+ declare const LAYOUT_ICONS: JuiceIconSet;
258
+ /**
259
+ * Lucide icons under the Material icon names 2.x menus use (`menuIcon: 'home'`), so a menu shows icons before its routes are
260
+ * renamed: `provideJuiceIcons(MATERIAL_ICON_ALIASES)`. Opt-in; register your own names the same way.
261
+ */
262
+ declare const MATERIAL_ICON_ALIASES: JuiceIconSet;
263
+
264
+ /**
265
+ * The app frame: a skip link, the header (`[juiceShellHeader]`), the sidebar (`[juiceShellSidebar]`) and the content (everything
266
+ * else). The skip link is the first tab stop and moves the focus to the content without touching the URL (the router owns it).
267
+ *
268
+ * ```html
269
+ * <juice-shell>
270
+ * <juice-header juiceShellHeader>…</juice-header>
271
+ * <juice-sidebar juiceShellSidebar [(collapsed)]="folded">…</juice-sidebar>
272
+ * <router-outlet />
273
+ * </juice-shell>
274
+ * ```
275
+ */
276
+ declare class JuiceShell {
277
+ /** The skip link's text (translate it). */
278
+ readonly skipLabel: i0.InputSignal<string>;
279
+ /** The content area's id, the skip link's target. */
280
+ readonly contentId: i0.InputSignal<string>;
281
+ /** Whether the content area is the page's main landmark. Set false when the pages bring their own `<main>`. */
282
+ readonly mainLandmark: i0.InputSignalWithTransform<boolean, unknown>;
283
+ private readonly content;
284
+ /** Moves the focus to the content. */
285
+ skipToContent(event?: Event): void;
286
+ static ɵfac: i0.ɵɵFactoryDeclaration<JuiceShell, never>;
287
+ static ɵcmp: i0.ɵɵComponentDeclaration<JuiceShell, "juice-shell", never, { "skipLabel": { "alias": "skipLabel"; "required": false; "isSignal": true; }; "contentId": { "alias": "contentId"; "required": false; "isSignal": true; }; "mainLandmark": { "alias": "mainLandmark"; "required": false; "isSignal": true; }; }, {}, never, ["[juiceShellHeader]", "[juiceShellSidebar]", "*"], true, never>;
288
+ }
289
+
290
+ /**
291
+ * The top bar of the shell: brand, search and the toolbar's buttons, left to right. It is the page's banner landmark: a
292
+ * custom element has no implicit role, so without it the brand and toolbar sat outside every landmark (axe `region`).
293
+ */
294
+ declare class JuiceHeader {
295
+ static ɵfac: i0.ɵɵFactoryDeclaration<JuiceHeader, never>;
296
+ static ɵcmp: i0.ɵɵComponentDeclaration<JuiceHeader, "juice-header", never, {}, {}, never, ["*"], true, never>;
297
+ }
298
+ /**
299
+ * The side menu's column. Folded (`collapsed`), it shows icons only; the toggle at its foot names its state with `aria-expanded`.
300
+ * Two-way: `[(collapsed)]`.
301
+ */
302
+ declare class JuiceSidebar {
303
+ /** Folded to icons. */
304
+ readonly collapsed: i0.ModelSignal<boolean>;
305
+ /** Whether to draw the fold toggle. */
306
+ readonly toggle: i0.InputSignalWithTransform<boolean, unknown>;
307
+ readonly collapseLabel: i0.InputSignal<string>;
308
+ readonly expandLabel: i0.InputSignal<string>;
309
+ readonly id: string;
310
+ static ɵfac: i0.ɵɵFactoryDeclaration<JuiceSidebar, never>;
311
+ static ɵcmp: i0.ɵɵComponentDeclaration<JuiceSidebar, "juice-sidebar", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "toggle": { "alias": "toggle"; "required": false; "isSignal": true; }; "collapseLabel": { "alias": "collapseLabel"; "required": false; "isSignal": true; }; "expandLabel": { "alias": "expandLabel"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, ["*", "[juiceSidebarFooter]"], true, never>;
312
+ }
313
+ /** The scrolling page area, padded by the spacing tokens. */
314
+ declare class JuiceContent {
315
+ static ɵfac: i0.ɵɵFactoryDeclaration<JuiceContent, never>;
316
+ static ɵcmp: i0.ɵɵComponentDeclaration<JuiceContent, "juice-content", never, {}, {}, never, ["*"], true, never>;
317
+ }
318
+
319
+ /**
320
+ * A panel that slides over the page from one side (`side`: start or end): a modal dialog while open. It traps the focus, closes on
321
+ * Escape and on the backdrop, and gives the focus back to what had it. Two-way: `[(open)]`; `(closed)` fires when it closes itself.
322
+ */
323
+ declare class JuiceSidePanel {
324
+ readonly open: i0.ModelSignal<boolean>;
325
+ readonly side: i0.InputSignal<"start" | "end">;
326
+ /** The dialog's accessible name. */
327
+ readonly label: i0.InputSignal<string>;
328
+ /** It closed itself: Escape or the backdrop. */
329
+ readonly closed: i0.OutputEmitterRef<void>;
330
+ private readonly doc;
331
+ private readonly traps;
332
+ private readonly panel;
333
+ private trap;
334
+ private returnTo;
335
+ constructor();
336
+ close(): void;
337
+ protected onEscape(event: Event): void;
338
+ private activate;
339
+ private deactivate;
340
+ static ɵfac: i0.ɵɵFactoryDeclaration<JuiceSidePanel, never>;
341
+ static ɵcmp: i0.ɵɵComponentDeclaration<JuiceSidePanel, "juice-side-panel", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "closed": "closed"; }, never, ["*"], true, never>;
308
342
  }
309
343
 
310
- /** The palette menu beside the dark mode switch: every page follows the palette picked here. Hidden with one palette. */
311
- declare class PaletteSwitchComponent {
312
- private readonly service;
313
- readonly palettes: _juice_js_layout.LayoutPalette[];
314
- /** The palette in use; without a choice or a configured default, the first one (the stylesheet's default). */
315
- readonly current: i0.Signal<string>;
316
- select(id: string): void;
317
- static ɵfac: i0.ɵɵFactoryDeclaration<PaletteSwitchComponent, never>;
318
- static ɵcmp: i0.ɵɵComponentDeclaration<PaletteSwitchComponent, "juice-palette-switch", never, {}, {}, never, never, false, never>;
344
+ /** The two panes' shares of the split, in percent: `[start, end]`, adding up to 100. */
345
+ type JuiceSplitSizes = readonly [number, number];
346
+ /**
347
+ * Two panes side by side (`orientation="horizontal"`, the default) or one above the other (`vertical`), with a separator between them
348
+ * that resizes them: dragged, or with the arrow keys (`step` percent), Home and End. Each pane keeps at least `min` percent.
349
+ * Two-way: `[(sizes)]`. With `storageKey`, the sizes are remembered in this browser; a stored value that is not a valid split is ignored.
350
+ *
351
+ * ```html
352
+ * <juice-split-panel storageKey="orders.split" [(sizes)]="sizes">
353
+ * <section juiceSplitStart>…</section>
354
+ * <section juiceSplitEnd>…</section>
355
+ * </juice-split-panel>
356
+ * ```
357
+ */
358
+ declare class JuiceSplitPanel {
359
+ readonly orientation: i0.InputSignal<"horizontal" | "vertical">;
360
+ readonly sizes: i0.ModelSignal<JuiceSplitSizes>;
361
+ /** The smallest share of either pane, in percent (0 to 50). */
362
+ readonly min: i0.InputSignalWithTransform<number, unknown>;
363
+ /** How far an arrow key moves the separator, in percent. */
364
+ readonly step: i0.InputSignalWithTransform<number, unknown>;
365
+ /** Remembers the sizes in localStorage under this key. */
366
+ readonly storageKey: i0.InputSignal<string | null>;
367
+ /** The separator's accessible name. */
368
+ readonly label: i0.InputSignal<string>;
369
+ private readonly host;
370
+ private readonly doc;
371
+ protected readonly bounds: i0.Signal<{
372
+ min: number;
373
+ max: number;
374
+ }>;
375
+ constructor();
376
+ protected round(n: number): number;
377
+ /** Sets the start pane's share (the end pane takes the rest), within the bounds, and remembers it. */
378
+ resizeTo(start: number): void;
379
+ protected onKeydown(e: KeyboardEvent): void;
380
+ protected onPointerDown(e: PointerEvent): void;
381
+ /** The stored split, when it is one: two finite numbers within the bounds that add up to 100. Anything else is ignored. */
382
+ private readStored;
383
+ static ɵfac: i0.ɵɵFactoryDeclaration<JuiceSplitPanel, never>;
384
+ static ɵcmp: i0.ɵɵComponentDeclaration<JuiceSplitPanel, "juice-split-panel", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "sizes": { "alias": "sizes"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, { "sizes": "sizesChange"; }, never, ["[juiceSplitStart]", "[juiceSplitEnd]"], true, never>;
385
+ }
386
+
387
+ /** A step of the spacing scale (`--juice-space-<step>`, n × 4px). */
388
+ type JuiceSpace = '0' | '0-5' | '1' | '2' | '3' | '4' | '5' | '6' | '8' | '10' | '12' | '16';
389
+ /** Children in a column, `gap` apart (a step of the spacing scale, default 4 = 16px). */
390
+ declare class JuiceStack {
391
+ readonly gap: i0.InputSignal<string | number>;
392
+ protected readonly gapValue: i0.Signal<string>;
393
+ static ɵfac: i0.ɵɵFactoryDeclaration<JuiceStack, never>;
394
+ static ɵcmp: i0.ɵɵComponentDeclaration<JuiceStack, "juice-stack", never, { "gap": { "alias": "gap"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
395
+ }
396
+ /** Children in a row that wraps, `gap` apart (default 2 = 8px), centred on the cross axis. */
397
+ declare class JuiceCluster {
398
+ readonly gap: i0.InputSignal<string | number>;
399
+ protected readonly gapValue: i0.Signal<string>;
400
+ static ɵfac: i0.ɵɵFactoryDeclaration<JuiceCluster, never>;
401
+ static ɵcmp: i0.ɵɵComponentDeclaration<JuiceCluster, "juice-cluster", never, { "gap": { "alias": "gap"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
319
402
  }
320
403
 
321
404
  declare enum TooltipPosition {
@@ -381,27 +464,31 @@ declare class MenuBadgeService {
381
464
  static ɵprov: i0.ɵɵInjectableDeclaration<MenuBadgeService>;
382
465
  }
383
466
 
467
+ /**
468
+ * The side menu: the app's menu items (MenuService), groups that open on their pages, counts (MenuBadgeService), and the
469
+ * page on display marked. Unfolded it shows labels; folded, icons with the label as a tooltip and for screen readers.
470
+ */
384
471
  declare class NavMenuComponent implements MenuActiveLink {
385
- private service;
386
- layout: LayoutService;
387
- private tenantService;
388
- private route;
389
- private breakpointObserver;
390
- private cdr;
391
- private switcher;
392
- isExpanded: boolean;
393
- isMobile: boolean;
394
472
  items: MenuItem[];
395
473
  /** The items the side menu shows: all but those marked `inMenu: false` (the page switcher still offers them). */
396
474
  menuItems: MenuItem[];
397
475
  TooltipPosition: typeof TooltipPosition;
476
+ /** On a phone the menu is a panel over the page, always with labels. */
477
+ isMobile: boolean;
478
+ /** The settings page (route data `settingUrl`, else LayoutConfig.settingUrl), with the tenant in it. */
398
479
  settingUrl: string | null | undefined;
399
480
  /** The counts on the entries ({@link MenuBadgeService}). */
400
481
  protected readonly badges: MenuBadgeService;
401
- constructor(service: MenuService, layout: LayoutService, tenantService: TenantService, route: ActivatedRoute, breakpointObserver: BreakpointObserver, cdr: ChangeDetectorRef, switcher: PageSwitcherService);
482
+ readonly layout: LayoutService;
483
+ /** Whether labels show: given by the shell, else on a phone or while the viewer keeps the menu open. */
484
+ get isExpanded(): boolean;
485
+ set isExpanded(value: boolean | null | undefined);
486
+ private _expanded;
487
+ private readonly router;
488
+ private readonly cdr;
489
+ constructor();
402
490
  /** The items that show as a group: they have pages the side menu shows. */
403
491
  groups: Set<MenuItem>;
404
- private readonly router;
405
492
  /**
406
493
  * The path of the entry on display, across all the menu's entries (also the pages in groups): the most specific one,
407
494
  * so `/alerts/rules` is marked on `/alerts/rules` and `/alerts` is not.
@@ -410,32 +497,39 @@ declare class NavMenuComponent implements MenuActiveLink {
410
497
  private refreshActive;
411
498
  /** Whether the entry is the page on display (or the page the one on display is under). */
412
499
  isCurrent(item: MenuItem): boolean;
500
+ /** Flips the remembered open state (`IS_MENU_OPEN`). */
413
501
  toggle(): void;
414
- mouseEnter(): void;
415
- mouseLeave(): void;
416
502
  static ɵfac: i0.ɵɵFactoryDeclaration<NavMenuComponent, never>;
417
- static ɵcmp: i0.ɵɵComponentDeclaration<NavMenuComponent, "juice-nav-menu", never, {}, {}, never, never, false, never>;
503
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavMenuComponent, "juice-nav-menu", never, { "isExpanded": { "alias": "isExpanded"; "required": false; }; }, {}, never, never, true, never>;
418
504
  }
419
505
 
420
506
  /**
421
507
  * A menu item with children: a header that opens and closes them. The group opens itself whenever a navigation lands
422
508
  * on one of its pages (also one kept out of the menu, `inMenu: false`), even if it was closed by hand. A header with a
423
- * page of its own opens that page too; one without (`routerLink: ''`) only opens and closes.
509
+ * page of its own links to that page (and opens the group), with a separate button to open and close it; one without
510
+ * (`routerLink: ''`) is that button.
424
511
  */
425
512
  declare class ExpandableMenuComponent {
426
513
  private readonly router;
427
514
  /** The side menu it is in, which knows the entry on display as soon as a navigation ends. */
428
515
  private readonly menu;
429
516
  private readonly cdr;
430
- private readonly panel;
431
517
  private _item;
432
518
  protected readonly badges: MenuBadgeService;
433
519
  private readonly itemId;
434
520
  private readonly childIds;
521
+ private readonly _expanded;
522
+ /** Whether the group's pages show (opened or closed by hand, or by a navigation). */
523
+ readonly expanded: i0.Signal<boolean>;
524
+ /** The group was opened (by hand or by a navigation). */
525
+ readonly opened: i0.OutputEmitterRef<void>;
526
+ /** The id of the list of its pages (the header's `aria-controls`). */
527
+ readonly listId: string;
435
528
  /** The header's own count, shown while the group is open. */
436
529
  protected readonly ownBadge: i0.Signal<_juice_js_layout.MenuBadge | null>;
437
530
  /** While the group is closed: its own count and its pages' together. */
438
531
  protected readonly closedBadge: i0.Signal<_juice_js_layout.MenuBadge | null>;
532
+ /** Whether labels show (the menu is unfolded). */
439
533
  isExpanded: boolean;
440
534
  /**
441
535
  * The path of the entry on display across the whole menu (the most specific one, see `mostSpecificLink`), given by
@@ -458,6 +552,9 @@ declare class ExpandableMenuComponent {
458
552
  /** The header's own page, or null: a header without one (or linking to a child's page) only opens and closes. */
459
553
  headerLink: string | null;
460
554
  constructor();
555
+ /** Opens or closes the group's pages. */
556
+ setExpanded(value: boolean): void;
557
+ toggle(): void;
461
558
  private update;
462
559
  /** The URL's path, without query string or fragment. */
463
560
  private path;
@@ -473,112 +570,12 @@ declare class ExpandableMenuComponent {
473
570
  private get childLinks();
474
571
  private isActive;
475
572
  static ɵfac: i0.ɵɵFactoryDeclaration<ExpandableMenuComponent, never>;
476
- static ɵcmp: i0.ɵɵComponentDeclaration<ExpandableMenuComponent, "juice-expandable-menu", never, { "isExpanded": { "alias": "isExpanded"; "required": false; }; "activeLink": { "alias": "activeLink"; "required": false; }; "item": { "alias": "item"; "required": false; }; }, {}, never, never, false, never>;
573
+ static ɵcmp: i0.ɵɵComponentDeclaration<ExpandableMenuComponent, "juice-expandable-menu", never, { "isExpanded": { "alias": "isExpanded"; "required": false; }; "activeLink": { "alias": "activeLink"; "required": false; }; "item": { "alias": "item"; "required": false; }; }, { "opened": "opened"; }, never, never, true, never>;
477
574
  }
478
575
 
479
576
  declare class PageNotfoundComponent {
480
577
  static ɵfac: i0.ɵɵFactoryDeclaration<PageNotfoundComponent, never>;
481
- static ɵcmp: i0.ɵɵComponentDeclaration<PageNotfoundComponent, "juice-page-notfound", never, {}, {}, never, never, false, never>;
482
- }
483
-
484
- /**
485
- * The shell's single search box. Mounted once by the toolbar and shared by every page,
486
- * so it deliberately owns no state of its own: both its visibility and its text come
487
- * from {@link SearchService}, which scopes them to the page on display. A query held
488
- * here would outlive the page that was searched and surface on the next one.
489
- */
490
- declare class SearchBarComponent {
491
- service: SearchService;
492
- constructor(service: SearchService);
493
- onSearchTextChange(event: Event): void;
494
- clear(event: Event): void;
495
- static ɵfac: i0.ɵɵFactoryDeclaration<SearchBarComponent, never>;
496
- static ɵcmp: i0.ɵɵComponentDeclaration<SearchBarComponent, "juice-search-bar", never, {}, {}, never, never, false, never>;
497
- }
498
-
499
- declare abstract class ProfileDialogService extends AsyncDialog<any, string> {
500
- }
501
-
502
- /**
503
- * Toolbar user avatar, or a "Login" button while nobody is signed in.
504
- *
505
- * The shell renders before a login completes (and before a stored session is refreshed), so the signed-in state is
506
- * evaluated in ngOnInit and again on every OAuth event. Async results mark the view for check, so the component
507
- * also renders in zoneless apps (the Angular 22 default).
508
- */
509
- declare class UserProfileComponent implements OnInit {
510
- private dialogService;
511
- private layoutService;
512
- private oauthService;
513
- private router;
514
- private cdr;
515
- imageUrl: string;
516
- imageFailed: boolean;
517
- initials: string;
518
- authenticated: boolean;
519
- isProduction: boolean;
520
- get anonymous(): boolean;
521
- constructor(dialogService: ProfileDialogService, layoutService: LayoutService, oauthService: OAuthService, router: Router, cdr: ChangeDetectorRef);
522
- ngOnInit(): void;
523
- /** Starts the code flow; the login-completed page navigates back to the current route. */
524
- login(): Promise<void>;
525
- initImageUrl(): void;
526
- /** Syncs the avatar / login button with the token state. */
527
- private updateState;
528
- private setImageUrl;
529
- private computeInitials;
530
- onImageError(): void;
531
- onClick(): void;
532
- /**
533
- * Signed in = a usable access token. The id token is not required here: it is short-lived and a refresh-token
534
- * grant may not renew it, so it can be expired while the session (and its stored claims) is still valid.
535
- */
536
- private hasValidToken;
537
- static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileComponent, [{ optional: true; }, null, null, null, null]>;
538
- static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileComponent, "juice-user-profile", never, {}, {}, never, never, false, never>;
539
- }
540
-
541
- /**
542
- * The page switcher's content: a box to type a page's name in and the pages that match, with their group and go-to
543
- * keys. Arrow keys move, Enter opens. The shell shows it in a dialog (which brings the focus trap, Escape and the
544
- * backdrop) while {@link PageSwitcherService.isOpen}.
545
- */
546
- declare class PageSwitcherComponent {
547
- readonly service: PageSwitcherService;
548
- readonly query: i0.WritableSignal<string>;
549
- readonly selected: i0.WritableSignal<number>;
550
- readonly results: i0.Signal<_juice_js_layout.PageEntry[]>;
551
- private readonly list;
552
- onInput(value: string): void;
553
- onKeydown(e: KeyboardEvent): void;
554
- /** Unique per row (menu ids need not be). */
555
- optionId(index: number): string;
556
- keys(shortcut: string): string[];
557
- private select;
558
- static ɵfac: i0.ɵɵFactoryDeclaration<PageSwitcherComponent, never>;
559
- static ɵcmp: i0.ɵɵComponentDeclaration<PageSwitcherComponent, "juice-page-switcher", never, {}, {}, never, never, false, never>;
560
- }
561
-
562
- /**
563
- * A count on a side menu entry ({@link MenuBadgeService}): beside the label, or small on the icon's top right corner while
564
- * the menu is folded to icons. Nothing while there is no count.
565
- */
566
- declare class MenuBadgeComponent {
567
- readonly badge: i0.InputSignal<MenuBadge | null>;
568
- /** On the icon's corner, not beside the label. */
569
- readonly folded: i0.InputSignal<boolean>;
570
- /** The entry's menu id, for tests and styling. */
571
- readonly menuId: i0.InputSignal<string | null>;
572
- protected readonly text: i0.Signal<string>;
573
- static ɵfac: i0.ɵɵFactoryDeclaration<MenuBadgeComponent, never>;
574
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuBadgeComponent, "juice-menu-badge", never, { "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "folded": { "alias": "folded"; "required": false; "isSignal": true; }; "menuId": { "alias": "menuId"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
575
- }
576
-
577
- declare class LayoutModule {
578
- static forRoot(production: boolean, options: ILayoutConfig): ModuleWithProviders<LayoutModule>;
579
- static ɵfac: i0.ɵɵFactoryDeclaration<LayoutModule, never>;
580
- static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutModule, [typeof PageComponent, typeof DarkModeComponent, typeof PaletteSwitchComponent, typeof NavMenuComponent, typeof ExpandableMenuComponent, typeof PageNotfoundComponent, typeof SearchBarComponent, typeof UserProfileComponent, typeof PageSwitcherComponent, typeof MenuBadgeComponent], [typeof i11.RouterModule, typeof i12.CommonModule, typeof i13.TranslatePipe, typeof i13.TranslateDirective, typeof i14.MatIconModule, typeof i15.MatToolbarModule, typeof i16.MatSidenavModule, typeof i17.MatButtonModule, typeof i18.MatExpansionModule, typeof i19.MatListModule, typeof i20.MatFormFieldModule, typeof i21.MatInputModule, typeof i22.MatTooltipModule, typeof i23.MatDialogModule, typeof i24.MatMenuModule], [typeof PageComponent, typeof i11.RouterModule]>;
581
- static ɵinj: i0.ɵɵInjectorDeclaration<LayoutModule>;
578
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageNotfoundComponent, "juice-page-notfound", never, {}, {}, never, never, true, never>;
582
579
  }
583
580
 
584
581
  declare class TooltipComponent {
@@ -596,7 +593,7 @@ declare class TooltipComponent {
596
593
 
597
594
  declare class TooltipModule {
598
595
  static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
599
- static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof TooltipComponent, typeof TooltipDirective], [typeof i12.CommonModule], [typeof TooltipDirective]>;
596
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof TooltipComponent, typeof TooltipDirective], [typeof i3.CommonModule], [typeof TooltipDirective]>;
600
597
  static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
601
598
  }
602
599
 
@@ -608,6 +605,63 @@ declare class DevGuard {
608
605
  static ɵprov: i0.ɵɵInjectableDeclaration<DevGuard>;
609
606
  }
610
607
 
608
+ /**
609
+ * Mediates between the shell's single toolbar search box and the page on display.
610
+ *
611
+ * The box appears only while the displayed page implements {@link SearchablePage}.
612
+ * The shell binds and unbinds the page from its own `router-outlet` lifecycle — this
613
+ * service deliberately does NOT listen to router events. Revoking on `NavigationStart`
614
+ * (as it once did) fires before guards run and before a reused component is rebuilt,
615
+ * which silently lost the box on a cancelled navigation or a tenant switch.
616
+ */
617
+ declare class SearchService {
618
+ private readonly _page;
619
+ private readonly _query;
620
+ /** Set only by the deprecated {@link enable}. */
621
+ private readonly _legacyCallback;
622
+ /**
623
+ * Whether the toolbar should offer search — true iff a page is bound.
624
+ *
625
+ * Derived, with no setter: presence cannot be set independently of page support.
626
+ */
627
+ readonly isEnabled: Signal<boolean>;
628
+ /** What the user has currently typed for the displayed page. */
629
+ readonly query: Signal<string>;
630
+ /**
631
+ * Bind the page now on display. Called by the shell on outlet activation.
632
+ *
633
+ * A page that does not implement {@link SearchablePage} binds nothing, leaving the
634
+ * box hidden — support is opt-in.
635
+ */
636
+ bindPage(instance: unknown): void;
637
+ /**
638
+ * Release the page. Called by the shell on outlet deactivation.
639
+ *
640
+ * Also discards the query: the box is mounted once and shared, so a term left here
641
+ * would surface on the next page, which never received it.
642
+ */
643
+ unbindPage(): void;
644
+ /** Forward what the user typed to the bound page. Called by the search box. */
645
+ submit(query: string, event?: Event): void;
646
+ /**
647
+ * @deprecated Implement {@link SearchablePage} on the page component instead — it ties
648
+ * the declaration to the handler, so search cannot be claimed without being served.
649
+ * Still functional; scheduled for removal in the next major.
650
+ */
651
+ enable(callback: Function): void;
652
+ /**
653
+ * @deprecated The shell now revokes automatically when the page changes; there is
654
+ * nothing to call. Still functional; scheduled for removal in the next major.
655
+ */
656
+ disable(): void;
657
+ /**
658
+ * @deprecated Renamed to {@link submit}, which also records the query for the box.
659
+ */
660
+ callback(searchText: string | null, event: any): void;
661
+ static ɵfac: i0.ɵɵFactoryDeclaration<SearchService, never>;
662
+ static ɵprov: i0.ɵɵInjectableDeclaration<SearchService>;
663
+ }
664
+
611
665
  /**
612
666
  * Implemented by a routed page to declare that it supports search.
613
667
  *
@@ -648,26 +702,69 @@ interface SearchablePage {
648
702
  */
649
703
  declare function isSearchablePage(value: unknown): value is SearchablePage;
650
704
 
651
- declare class UserProfileDialogComponent implements OnInit {
652
- private auth;
653
- private cdr;
654
- username: string;
655
- name: string;
656
- email: string;
657
- loggedin: boolean;
658
- constructor(auth: OAuthService, cdr: ChangeDetectorRef);
659
- ngOnInit(): void;
660
- setValues(claims: any): void;
661
- logout(): void;
662
- static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileDialogComponent, never>;
663
- static ɵcmp: i0.ɵɵComponentDeclaration<UserProfileDialogComponent, "app-user-profile", never, {}, {}, never, never, false, never>;
705
+ /**
706
+ * The page switcher's content: a box to type a page's name in and the pages that match, with their group and go-to
707
+ * keys. Arrow keys move, Enter opens. The shell shows it in a CDK dialog (which brings the focus trap, Escape and the
708
+ * backdrop, and gives the focus back) while {@link PageSwitcherService.isOpen}.
709
+ */
710
+ declare class PageSwitcherComponent {
711
+ readonly service: PageSwitcherService;
712
+ readonly query: i0.WritableSignal<string>;
713
+ readonly selected: i0.WritableSignal<number>;
714
+ readonly results: i0.Signal<_juice_js_layout.PageEntry[]>;
715
+ private readonly list;
716
+ onInput(value: string): void;
717
+ onKeydown(e: KeyboardEvent): void;
718
+ /** Unique per row (menu ids need not be). */
719
+ optionId(index: number): string;
720
+ keys(shortcut: string): string[];
721
+ private select;
722
+ static ɵfac: i0.ɵɵFactoryDeclaration<PageSwitcherComponent, never>;
723
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageSwitcherComponent, "juice-page-switcher", never, {}, {}, never, never, true, never>;
724
+ }
725
+
726
+ /**
727
+ * A count on a side menu entry ({@link MenuBadgeService}): beside the label, or small on the icon's top right corner while
728
+ * the menu is folded to icons. Nothing while there is no count.
729
+ */
730
+ declare class MenuBadgeComponent {
731
+ readonly badge: i0.InputSignal<MenuBadge | null>;
732
+ /** On the icon's corner, not beside the label. */
733
+ readonly folded: i0.InputSignal<boolean>;
734
+ /** The entry's menu id, for tests and styling. */
735
+ readonly menuId: i0.InputSignal<string | null>;
736
+ protected readonly text: i0.Signal<string>;
737
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuBadgeComponent, never>;
738
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuBadgeComponent, "juice-menu-badge", never, { "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "folded": { "alias": "folded"; "required": false; "isSignal": true; }; "menuId": { "alias": "menuId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
739
+ }
740
+
741
+ /**
742
+ * Opens the profile dialog when the viewer clicks their avatar. Provide your own subclass to show your own profile: inject the
743
+ * CDK `Dialog` and pass it to `super()`; `open(imageUrl)` resolves to the `DialogRef`.
744
+ */
745
+ declare abstract class ProfileDialogService extends AsyncDialog<unknown, string, unknown, Dialog, DialogRef<unknown, unknown>> {
746
+ }
747
+
748
+ /** The built-in profile dialog: name, email and Logout, under the avatar (CDK Dialog: focus trap, Escape, focus given back). */
749
+ declare class UserProfileDialogService extends ProfileDialogService {
750
+ private readonly overlay;
751
+ constructor(dialog: Dialog);
752
+ open(_data: string): Promise<DialogRef<unknown, unknown>>;
753
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileDialogService, never>;
754
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserProfileDialogService>;
664
755
  }
665
756
 
757
+ /** The built-in profile dialog behind the avatar. Standalone apps: `provideUserProfileDialog()`. */
666
758
  declare class UserProfileDialogModule {
667
759
  static ɵfac: i0.ɵɵFactoryDeclaration<UserProfileDialogModule, never>;
668
- static ɵmod: i0.ɵɵNgModuleDeclaration<UserProfileDialogModule, [typeof UserProfileDialogComponent], [typeof i23.MatDialogModule, typeof i17.MatButtonModule, typeof i13.TranslatePipe, typeof i13.TranslateDirective, typeof i12.CommonModule], never>;
760
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UserProfileDialogModule, never, [typeof i2.DialogModule], never>;
669
761
  static ɵinj: i0.ɵɵInjectorDeclaration<UserProfileDialogModule>;
670
762
  }
763
+ /** The built-in profile dialog behind the avatar, for standalone apps. */
764
+ declare function provideUserProfileDialog(): {
765
+ provide: typeof ProfileDialogService;
766
+ useClass: typeof UserProfileDialogService;
767
+ }[];
671
768
 
672
769
  /** One step of a page's way back: its name and, if it is a link, where it goes. */
673
770
  interface PageCrumb {
@@ -685,8 +782,10 @@ declare class PageHeader {
685
782
  readonly subtitle: i0.InputSignal<string | null>;
686
783
  readonly crumbs: i0.InputSignal<readonly PageCrumb[]>;
687
784
  static ɵfac: i0.ɵɵFactoryDeclaration<PageHeader, never>;
688
- static ɵcmp: i0.ɵɵComponentDeclaration<PageHeader, "jc-page-header", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "crumbs": { "alias": "crumbs"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
785
+ static ɵcmp: i0.ɵɵComponentDeclaration<PageHeader, "jc-page-header, juice-page-header", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "crumbs": { "alias": "crumbs"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
689
786
  }
787
+ /** `<juice-page-header title>`: the same component as {@link PageHeader} (`jc-page-header`). */
788
+ declare const JuicePageHeader: typeof PageHeader;
690
789
 
691
- export { DevGuard, ExpandableMenuComponent, LAYOUT_PALETTES, LAYOUT_TOOLBAR_ITEMS, LayoutModule, LayoutService, MenuBadgeComponent, MenuBadgeService, NavMenuComponent, PageComponent, PageHeader, PageNotfoundComponent, PageSwitcherComponent, PageSwitcherService, ProfileDialogService, SearchService, TooltipDirective, TooltipModule, TooltipPosition, UserProfileDialogModule, flatten, isSearchablePage };
692
- export type { LayoutPalette, MenuBadge, PageCrumb, PageEntry, SearchablePage };
790
+ export { DevGuard, ExpandableMenuComponent, IS_PRODUCTION, JuiceCluster, JuiceContent, JuiceHeader, JuicePageHeader, JuiceShell, JuiceSidePanel, JuiceSidebar, JuiceSplitPanel, JuiceStack, JuiceStandardWorkspace, LAYOUT_ICONS, LAYOUT_PALETTES, LAYOUT_TOOLBAR_ITEMS, LayoutConfig, LayoutModule, LayoutService, MATERIAL_ICON_ALIASES, MenuBadgeComponent, MenuBadgeService, NavMenuComponent, PageComponent, PageHeader, PageNotfoundComponent, PageSwitcherComponent, PageSwitcherService, ProfileDialogService, SearchService, ThemeMode, TooltipDirective, TooltipModule, TooltipPosition, UserProfileDialogModule, flatten, isSearchablePage, layoutThemeOptions, provideJuiceLayout, provideUserProfileDialog };
791
+ export type { ILayoutConfig, JuiceSpace, JuiceSplitSizes, LayoutPalette, MenuBadge, PageCrumb, PageEntry, SearchablePage };