@gravionlabs/helix-shell 22.2.17 → 22.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/gravionlabs-helix-shell.mjs +610 -311
- package/fesm2022/gravionlabs-helix-shell.mjs.map +1 -1
- package/package.json +1 -1
- package/styles.css +43 -24
- package/types/gravionlabs-helix-shell.d.ts +201 -41
|
@@ -2,7 +2,7 @@ import { AbstractControl, ControlValueAccessor } from "@angular/forms";
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { AfterViewInit, ElementRef, InjectionToken, OnDestroy, OnInit, TemplateRef, Type } from "@angular/core";
|
|
4
4
|
import { ActivatedRoute, ActivatedRouteSnapshot, CanActivateFn, Route, Router, Routes } from "@angular/router";
|
|
5
|
-
import { HxMenuItem, HxPrimaryColor, HxSurface } from "@gravionlabs/helix-ui";
|
|
5
|
+
import { HxDensity, HxMenuItem, HxPrimaryColor, HxSurface } from "@gravionlabs/helix-ui";
|
|
6
6
|
export declare class HelixFormField {
|
|
7
7
|
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
8
8
|
readonly control: import("@angular/core").InputSignal<AbstractControl<any, any, any> | null>;
|
|
@@ -197,27 +197,48 @@ export declare class HelixAlertAction {
|
|
|
197
197
|
};
|
|
198
198
|
}, {}, never, never, true, never>;
|
|
199
199
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
/** Built-in actions of the topbar. */
|
|
201
|
+
type HelixTopbarBuiltInAction = 'search' | 'darkMode' | 'configurator' | 'alerts';
|
|
202
|
+
/** An app-defined action: the template is rendered as is in the chosen zone. */
|
|
203
|
+
interface HelixTopbarCustomAction {
|
|
204
|
+
id: string;
|
|
205
|
+
template: TemplateRef<unknown>;
|
|
204
206
|
}
|
|
205
|
-
type
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
207
|
+
type HelixTopbarActionPosition = 'start' | 'center' | 'end';
|
|
208
|
+
/** One entry of the topbar action list. */
|
|
209
|
+
interface HelixTopbarActionConfig {
|
|
210
|
+
action: HelixTopbarBuiltInAction | HelixTopbarCustomAction;
|
|
211
|
+
/** Zone of the topbar. Default `end`. */
|
|
212
|
+
position?: HelixTopbarActionPosition;
|
|
213
|
+
/** Sort key within a position (ascending); entries with equal or no order keep list order. */
|
|
214
|
+
order?: number;
|
|
215
|
+
/** Hide the entry without removing it from the list. */
|
|
216
|
+
hidden?: boolean;
|
|
213
217
|
}
|
|
218
|
+
/** The default toolbar: search in the center, dark mode and configurator at the end. */
|
|
219
|
+
export declare const HELIX_DEFAULT_TOPBAR_ACTIONS: readonly HelixTopbarActionConfig[];
|
|
220
|
+
/**
|
|
221
|
+
* Changes single entries of a list without rebuilding it. An override replaces the fields it sets
|
|
222
|
+
* on the entry with the same action id; an override without a match is appended.
|
|
223
|
+
*/
|
|
224
|
+
export declare function defineTopbarActions(defaults: readonly HelixTopbarActionConfig[], overrides?: readonly HelixTopbarActionConfig[]): HelixTopbarActionConfig[];
|
|
214
225
|
export declare class HelixAppLayout {
|
|
215
226
|
appTitle: import("@angular/core").InputSignal<string>;
|
|
216
227
|
environment: import("@angular/core").InputSignal<string | import("@gravionlabs/helix-shell").CustomEnvironment | undefined>;
|
|
217
|
-
/**
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
|
|
228
|
+
/** Page title of the header where there is no breadcrumb trail. Defaults to the route title. */
|
|
229
|
+
pageTitle: import("@angular/core").InputSignal<string | undefined>;
|
|
230
|
+
/**
|
|
231
|
+
* Actions of the topbar, each with the zone it renders in (`start`, `center`, `end`).
|
|
232
|
+
* Without input the default toolbar renders; `[]` renders no actions. Use
|
|
233
|
+
* `defineTopbarActions` to change single entries of `HELIX_DEFAULT_TOPBAR_ACTIONS`.
|
|
234
|
+
*/
|
|
235
|
+
topbarActions: import("@angular/core").InputSignal<HelixTopbarActionConfig[] | undefined>;
|
|
236
|
+
/** Alert items of the `alerts` action; the default toolbar shows alerts when there are any. */
|
|
237
|
+
alerts: import("@angular/core").InputSignal<AlertItem[]>;
|
|
238
|
+
/** Placeholder of the `search` action. */
|
|
239
|
+
searchPlaceholder: import("@angular/core").InputSignal<string>;
|
|
240
|
+
/** Text of the `search` action, on every input. */
|
|
241
|
+
readonly search: import("@angular/core").OutputEmitterRef<string>;
|
|
221
242
|
/**
|
|
222
243
|
* Nav-rail brand icon: inline SVG (`<svg>…</svg>`) or a URL to an SVG file.
|
|
223
244
|
* Falls back to the default hardcoded icon when not provided.
|
|
@@ -241,7 +262,6 @@ export declare class HelixAppLayout {
|
|
|
241
262
|
navStyle: import("@angular/core").InputSignal<HelixNavStyle>;
|
|
242
263
|
/** Explicit nav groups. When provided, they win over the mapping of `menu`. */
|
|
243
264
|
navGroups: import("@angular/core").InputSignal<HelixNavGroup[] | undefined>;
|
|
244
|
-
private static readonly DEFAULT_TOP_ACTIONS;
|
|
245
265
|
store: {
|
|
246
266
|
menuMode: import("@angular/core").Signal<import("@gravionlabs/helix-shell").MenuMode>;
|
|
247
267
|
staticMenuDesktopInactive: import("@angular/core").Signal<boolean>;
|
|
@@ -256,6 +276,11 @@ export declare class HelixAppLayout {
|
|
|
256
276
|
darkTheme: import("@angular/core").Signal<boolean>;
|
|
257
277
|
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
258
278
|
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
279
|
+
density: import("@angular/core").Signal<"compact" | "comfortable">;
|
|
280
|
+
preset: import("@angular/core").Signal<string>;
|
|
281
|
+
presetNames: import("@angular/core").Signal<string[]>;
|
|
282
|
+
activePrimary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
283
|
+
activeSurface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
259
284
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
260
285
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
261
286
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -274,6 +299,8 @@ export declare class HelixAppLayout {
|
|
|
274
299
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
275
300
|
setPrimary: (primary: import("@gravionlabs/helix-ui").HxPrimaryColor | null) => void;
|
|
276
301
|
setSurface: (surface: import("@gravionlabs/helix-ui").HxSurface | null) => void;
|
|
302
|
+
setDensity: (density: import("@gravionlabs/helix-ui").HxDensity) => void;
|
|
303
|
+
setPreset: (preset: string) => void;
|
|
277
304
|
isDesktop: () => boolean;
|
|
278
305
|
setDesktop: (desktop: boolean) => void;
|
|
279
306
|
reset: () => void;
|
|
@@ -294,9 +321,17 @@ export declare class HelixAppLayout {
|
|
|
294
321
|
protected effectiveMenu: import("@angular/core").Signal<HxMenuItem[]>;
|
|
295
322
|
protected effectiveNavGroups: import("@angular/core").Signal<HelixNavGroup[]>;
|
|
296
323
|
protected effectiveEnvironment: import("@angular/core").Signal<string | import("@gravionlabs/helix-shell").CustomEnvironment | undefined>;
|
|
297
|
-
|
|
298
|
-
|
|
324
|
+
/** The scrolling content panel; the document itself no longer scrolls. */
|
|
325
|
+
private mainPanel;
|
|
326
|
+
/** Optional so apps without the Router keep working. */
|
|
327
|
+
private router;
|
|
299
328
|
constructor();
|
|
329
|
+
/**
|
|
330
|
+
* The router's own scroll restoration only handles the window. Reset the content panel to the
|
|
331
|
+
* top after each navigation, restore its offset on back/forward and leave fragment links to the
|
|
332
|
+
* browser/router anchor scrolling.
|
|
333
|
+
*/
|
|
334
|
+
private resetScrollOnNavigation;
|
|
300
335
|
containerClass: import("@angular/core").Signal<{
|
|
301
336
|
'layout-overlay': boolean;
|
|
302
337
|
'layout-static': boolean;
|
|
@@ -317,8 +352,8 @@ export declare class HelixAppLayout {
|
|
|
317
352
|
"required": false;
|
|
318
353
|
"isSignal": true;
|
|
319
354
|
};
|
|
320
|
-
"
|
|
321
|
-
"alias": "
|
|
355
|
+
"pageTitle": {
|
|
356
|
+
"alias": "pageTitle";
|
|
322
357
|
"required": false;
|
|
323
358
|
"isSignal": true;
|
|
324
359
|
};
|
|
@@ -327,6 +362,16 @@ export declare class HelixAppLayout {
|
|
|
327
362
|
"required": false;
|
|
328
363
|
"isSignal": true;
|
|
329
364
|
};
|
|
365
|
+
"alerts": {
|
|
366
|
+
"alias": "alerts";
|
|
367
|
+
"required": false;
|
|
368
|
+
"isSignal": true;
|
|
369
|
+
};
|
|
370
|
+
"searchPlaceholder": {
|
|
371
|
+
"alias": "searchPlaceholder";
|
|
372
|
+
"required": false;
|
|
373
|
+
"isSignal": true;
|
|
374
|
+
};
|
|
330
375
|
"brandIcon": {
|
|
331
376
|
"alias": "brandIcon";
|
|
332
377
|
"required": false;
|
|
@@ -372,7 +417,9 @@ export declare class HelixAppLayout {
|
|
|
372
417
|
"required": false;
|
|
373
418
|
"isSignal": true;
|
|
374
419
|
};
|
|
375
|
-
}, {
|
|
420
|
+
}, {
|
|
421
|
+
"search": "search";
|
|
422
|
+
}, never, ["[hxStatusBarEnd]"], true, never>;
|
|
376
423
|
}
|
|
377
424
|
/** One choice of the chooser: its name and the colour of its round swatch. */
|
|
378
425
|
interface Swatch<Name extends string> {
|
|
@@ -380,7 +427,7 @@ interface Swatch<Name extends string> {
|
|
|
380
427
|
swatch: string;
|
|
381
428
|
}
|
|
382
429
|
/**
|
|
383
|
-
* The theme panel of the shell: primary colour, surface and menu mode. The colours go to the theme service of
|
|
430
|
+
* The theme panel of the shell: preset, primary colour, surface, density and menu mode. The colours go to the theme service of
|
|
384
431
|
* helix-ui (through the layout store), which changes CSS variables only; the panel itself knows no theme engine.
|
|
385
432
|
*/
|
|
386
433
|
export declare class HelixConfigurator {
|
|
@@ -399,6 +446,11 @@ export declare class HelixConfigurator {
|
|
|
399
446
|
darkTheme: import("@angular/core").Signal<boolean>;
|
|
400
447
|
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
401
448
|
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
449
|
+
density: import("@angular/core").Signal<"compact" | "comfortable">;
|
|
450
|
+
preset: import("@angular/core").Signal<string>;
|
|
451
|
+
presetNames: import("@angular/core").Signal<string[]>;
|
|
452
|
+
activePrimary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
453
|
+
activeSurface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
402
454
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
403
455
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
404
456
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -417,6 +469,8 @@ export declare class HelixConfigurator {
|
|
|
417
469
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
418
470
|
setPrimary: (primary: HxPrimaryColor | null) => void;
|
|
419
471
|
setSurface: (surface: HxSurface | null) => void;
|
|
472
|
+
setDensity: (density: HxDensity) => void;
|
|
473
|
+
setPreset: (preset: string) => void;
|
|
420
474
|
isDesktop: () => boolean;
|
|
421
475
|
setDesktop: (desktop: boolean) => void;
|
|
422
476
|
reset: () => void;
|
|
@@ -441,11 +495,24 @@ export declare class HelixConfigurator {
|
|
|
441
495
|
primaryColors: Swatch<HxPrimaryColor>[];
|
|
442
496
|
surfaces: Swatch<HxSurface>[];
|
|
443
497
|
selectedPrimaryColor: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
444
|
-
/** The colour in use: the chosen one, else the one of the
|
|
445
|
-
activePrimaryColor: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir">;
|
|
498
|
+
/** The colour in use: the chosen one, else the one of the preset (none when the preset has a scale of its own). */
|
|
499
|
+
activePrimaryColor: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
446
500
|
selectedSurfaceColor: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
501
|
+
/** The presets to choose from, bundled and the app's, as `Helix`, `Vitepress`, `Compact`. */
|
|
502
|
+
presetOptions: import("@angular/core").Signal<{
|
|
503
|
+
label: string;
|
|
504
|
+
value: string;
|
|
505
|
+
}[]>;
|
|
506
|
+
preset: import("@angular/core").Signal<string>;
|
|
507
|
+
densityOptions: {
|
|
508
|
+
label: string;
|
|
509
|
+
value: string;
|
|
510
|
+
}[];
|
|
511
|
+
density: import("@angular/core").Signal<"compact" | "comfortable">;
|
|
447
512
|
menuMode: import("@angular/core").Signal<import("@gravionlabs/helix-shell").MenuMode>;
|
|
448
513
|
updateColors(event: Event, type: 'primary' | 'surface', color: Swatch<string>): void;
|
|
514
|
+
onPresetChange(preset: string): void;
|
|
515
|
+
onDensityChange(density: string): void;
|
|
449
516
|
onMenuModeChange(event: string): void;
|
|
450
517
|
static ɵfac: i0.ɵɵFactoryDeclaration<HelixConfigurator, never>;
|
|
451
518
|
static ɵcmp: i0.ɵɵComponentDeclaration<HelixConfigurator, "helix-configurator", never, {}, {}, never, never, true, never>;
|
|
@@ -465,6 +532,11 @@ export declare class HelixFloatingConfigurator {
|
|
|
465
532
|
darkTheme: import("@angular/core").Signal<boolean>;
|
|
466
533
|
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
467
534
|
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
535
|
+
density: import("@angular/core").Signal<"compact" | "comfortable">;
|
|
536
|
+
preset: import("@angular/core").Signal<string>;
|
|
537
|
+
presetNames: import("@angular/core").Signal<string[]>;
|
|
538
|
+
activePrimary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
539
|
+
activeSurface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
468
540
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
469
541
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
470
542
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -483,6 +555,8 @@ export declare class HelixFloatingConfigurator {
|
|
|
483
555
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
484
556
|
setPrimary: (primary: import("@gravionlabs/helix-ui").HxPrimaryColor | null) => void;
|
|
485
557
|
setSurface: (surface: import("@gravionlabs/helix-ui").HxSurface | null) => void;
|
|
558
|
+
setDensity: (density: import("@gravionlabs/helix-ui").HxDensity) => void;
|
|
559
|
+
setPreset: (preset: string) => void;
|
|
486
560
|
isDesktop: () => boolean;
|
|
487
561
|
setDesktop: (desktop: boolean) => void;
|
|
488
562
|
reset: () => void;
|
|
@@ -569,6 +643,11 @@ export declare class HelixNavRail implements OnInit, OnDestroy {
|
|
|
569
643
|
darkTheme: import("@angular/core").Signal<boolean>;
|
|
570
644
|
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
571
645
|
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
646
|
+
density: import("@angular/core").Signal<"compact" | "comfortable">;
|
|
647
|
+
preset: import("@angular/core").Signal<string>;
|
|
648
|
+
presetNames: import("@angular/core").Signal<string[]>;
|
|
649
|
+
activePrimary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
650
|
+
activeSurface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
572
651
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
573
652
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
574
653
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -587,6 +666,8 @@ export declare class HelixNavRail implements OnInit, OnDestroy {
|
|
|
587
666
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
588
667
|
setPrimary: (primary: import("@gravionlabs/helix-ui").HxPrimaryColor | null) => void;
|
|
589
668
|
setSurface: (surface: import("@gravionlabs/helix-ui").HxSurface | null) => void;
|
|
669
|
+
setDensity: (density: import("@gravionlabs/helix-ui").HxDensity) => void;
|
|
670
|
+
setPreset: (preset: string) => void;
|
|
590
671
|
isDesktop: () => boolean;
|
|
591
672
|
setDesktop: (desktop: boolean) => void;
|
|
592
673
|
reset: () => void;
|
|
@@ -673,6 +754,11 @@ export declare class HelixNavRailItem implements AfterViewInit {
|
|
|
673
754
|
darkTheme: import("@angular/core").Signal<boolean>;
|
|
674
755
|
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
675
756
|
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
757
|
+
density: import("@angular/core").Signal<"compact" | "comfortable">;
|
|
758
|
+
preset: import("@angular/core").Signal<string>;
|
|
759
|
+
presetNames: import("@angular/core").Signal<string[]>;
|
|
760
|
+
activePrimary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
761
|
+
activeSurface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
676
762
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
677
763
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
678
764
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -691,6 +777,8 @@ export declare class HelixNavRailItem implements AfterViewInit {
|
|
|
691
777
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
692
778
|
setPrimary: (primary: import("@gravionlabs/helix-ui").HxPrimaryColor | null) => void;
|
|
693
779
|
setSurface: (surface: import("@gravionlabs/helix-ui").HxSurface | null) => void;
|
|
780
|
+
setDensity: (density: import("@gravionlabs/helix-ui").HxDensity) => void;
|
|
781
|
+
setPreset: (preset: string) => void;
|
|
694
782
|
isDesktop: () => boolean;
|
|
695
783
|
setDesktop: (desktop: boolean) => void;
|
|
696
784
|
reset: () => void;
|
|
@@ -777,6 +865,7 @@ export declare class HelixStatusBar {
|
|
|
777
865
|
protected noteTemplate: import("@angular/core").Signal<TemplateRef<unknown> | undefined>;
|
|
778
866
|
protected noteText: import("@angular/core").Signal<string>;
|
|
779
867
|
protected bgColor: import("@angular/core").Signal<string>;
|
|
868
|
+
protected tinted: import("@angular/core").Signal<boolean>;
|
|
780
869
|
protected textColor: import("@angular/core").Signal<string>;
|
|
781
870
|
static ɵfac: i0.ɵɵFactoryDeclaration<HelixStatusBar, never>;
|
|
782
871
|
static ɵcmp: i0.ɵɵComponentDeclaration<HelixStatusBar, "helix-status-bar", never, {
|
|
@@ -838,6 +927,11 @@ export declare class HelixDarkModeAction {
|
|
|
838
927
|
darkTheme: import("@angular/core").Signal<boolean>;
|
|
839
928
|
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
840
929
|
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
930
|
+
density: import("@angular/core").Signal<"compact" | "comfortable">;
|
|
931
|
+
preset: import("@angular/core").Signal<string>;
|
|
932
|
+
presetNames: import("@angular/core").Signal<string[]>;
|
|
933
|
+
activePrimary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
934
|
+
activeSurface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
841
935
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
842
936
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
843
937
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -856,6 +950,8 @@ export declare class HelixDarkModeAction {
|
|
|
856
950
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
857
951
|
setPrimary: (primary: import("../../../../../../../../dist/ui/types/gravionlabs-helix-ui").HxPrimaryColor | null) => void;
|
|
858
952
|
setSurface: (surface: import("../../../../../../../../dist/ui/types/gravionlabs-helix-ui").HxSurface | null) => void;
|
|
953
|
+
setDensity: (density: import("../../../../../../../../dist/ui/types/gravionlabs-helix-ui").HxDensity) => void;
|
|
954
|
+
setPreset: (preset: string) => void;
|
|
859
955
|
isDesktop: () => boolean;
|
|
860
956
|
setDesktop: (desktop: boolean) => void;
|
|
861
957
|
reset: () => void;
|
|
@@ -885,13 +981,47 @@ export declare class HelixMobileMenuAction {
|
|
|
885
981
|
};
|
|
886
982
|
}, {}, never, never, true, never>;
|
|
887
983
|
}
|
|
984
|
+
/** Search field of the topbar. Emits the typed text on every input. */
|
|
985
|
+
export declare class HelixSearchAction {
|
|
986
|
+
placeholder: import("@angular/core").InputSignal<string>;
|
|
987
|
+
label: import("@angular/core").InputSignal<string>;
|
|
988
|
+
readonly search: import("@angular/core").OutputEmitterRef<string>;
|
|
989
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HelixSearchAction, never>;
|
|
990
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HelixSearchAction, "helix-search-action", never, {
|
|
991
|
+
"placeholder": {
|
|
992
|
+
"alias": "placeholder";
|
|
993
|
+
"required": false;
|
|
994
|
+
"isSignal": true;
|
|
995
|
+
};
|
|
996
|
+
"label": {
|
|
997
|
+
"alias": "label";
|
|
998
|
+
"required": false;
|
|
999
|
+
"isSignal": true;
|
|
1000
|
+
};
|
|
1001
|
+
}, {
|
|
1002
|
+
"search": "search";
|
|
1003
|
+
}, never, never, true, never>;
|
|
1004
|
+
}
|
|
1005
|
+
interface ZoneEntry {
|
|
1006
|
+
id: string;
|
|
1007
|
+
config: HelixTopbarActionConfig;
|
|
1008
|
+
}
|
|
888
1009
|
export declare class HelixTopbar implements OnInit, OnDestroy {
|
|
1010
|
+
/** Last-resort page title, shown when the route offers neither breadcrumbs nor a title. */
|
|
889
1011
|
appTitle: import("@angular/core").InputSignal<string>;
|
|
890
|
-
topbarActions: import("@angular/core").InputSignal<HelixTopbarAction[]>;
|
|
891
1012
|
breadcrumbs: import("@angular/core").InputSignal<HxMenuItem[] | undefined>;
|
|
892
|
-
/**
|
|
893
|
-
|
|
894
|
-
|
|
1013
|
+
/** Page title shown where there is no breadcrumb trail. Defaults to the title of the active route. */
|
|
1014
|
+
pageTitle: import("@angular/core").InputSignal<string | undefined>;
|
|
1015
|
+
/**
|
|
1016
|
+
* Action list. Without input the default toolbar renders (search in the center, dark mode and
|
|
1017
|
+
* configurator at the end, alerts when `alerts` has items); `[]` renders no actions.
|
|
1018
|
+
*/
|
|
1019
|
+
actions: import("@angular/core").InputSignal<HelixTopbarActionConfig[] | undefined>;
|
|
1020
|
+
/** Alert items of the `alerts` action. */
|
|
1021
|
+
alerts: import("@angular/core").InputSignal<AlertItem[]>;
|
|
1022
|
+
searchPlaceholder: import("@angular/core").InputSignal<string>;
|
|
1023
|
+
/** Text of the `search` action, on every input. */
|
|
1024
|
+
readonly search: import("@angular/core").OutputEmitterRef<string>;
|
|
895
1025
|
store: {
|
|
896
1026
|
menuMode: import("@angular/core").Signal<import("@gravionlabs/helix-shell").MenuMode>;
|
|
897
1027
|
staticMenuDesktopInactive: import("@angular/core").Signal<boolean>;
|
|
@@ -906,6 +1036,11 @@ export declare class HelixTopbar implements OnInit, OnDestroy {
|
|
|
906
1036
|
darkTheme: import("@angular/core").Signal<boolean>;
|
|
907
1037
|
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
908
1038
|
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
1039
|
+
density: import("@angular/core").Signal<"compact" | "comfortable">;
|
|
1040
|
+
preset: import("@angular/core").Signal<string>;
|
|
1041
|
+
presetNames: import("@angular/core").Signal<string[]>;
|
|
1042
|
+
activePrimary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
1043
|
+
activeSurface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
909
1044
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
910
1045
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
911
1046
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -924,6 +1059,8 @@ export declare class HelixTopbar implements OnInit, OnDestroy {
|
|
|
924
1059
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
925
1060
|
setPrimary: (primary: import("@gravionlabs/helix-ui").HxPrimaryColor | null) => void;
|
|
926
1061
|
setSurface: (surface: import("@gravionlabs/helix-ui").HxSurface | null) => void;
|
|
1062
|
+
setDensity: (density: import("@gravionlabs/helix-ui").HxDensity) => void;
|
|
1063
|
+
setPreset: (preset: string) => void;
|
|
927
1064
|
isDesktop: () => boolean;
|
|
928
1065
|
setDesktop: (desktop: boolean) => void;
|
|
929
1066
|
reset: () => void;
|
|
@@ -939,14 +1076,23 @@ export declare class HelixTopbar implements OnInit, OnDestroy {
|
|
|
939
1076
|
desktop: boolean;
|
|
940
1077
|
expandedKeys: string[];
|
|
941
1078
|
}>;
|
|
1079
|
+
/** True up to 991px; the `center` actions then render in the `end` zone. */
|
|
1080
|
+
protected narrow: import("@angular/core").WritableSignal<boolean>;
|
|
942
1081
|
private router;
|
|
943
1082
|
private route;
|
|
944
1083
|
private destroy$;
|
|
945
1084
|
private routeChange;
|
|
946
1085
|
ngOnInit(): void;
|
|
1086
|
+
private watchViewport;
|
|
1087
|
+
private cleanup?;
|
|
947
1088
|
ngOnDestroy(): void;
|
|
948
1089
|
protected effectiveBreadcrumbs: import("@angular/core").Signal<HxMenuItem[]>;
|
|
949
1090
|
protected showBreadcrumbs: import("@angular/core").Signal<boolean>;
|
|
1091
|
+
/** Never empty: the `pageTitle` input, else the route title, else the last breadcrumb, else `appTitle`. */
|
|
1092
|
+
protected effectiveTitle: import("@angular/core").Signal<string>;
|
|
1093
|
+
protected customTemplate(entry: HelixTopbarActionConfig): import("@angular/core").TemplateRef<unknown> | null;
|
|
1094
|
+
/** The visible entries per zone, sorted by `order`; on narrow screens `center` joins `end`. */
|
|
1095
|
+
protected zones: import("@angular/core").Signal<Record<HelixTopbarActionPosition, ZoneEntry[]>>;
|
|
950
1096
|
static ɵfac: i0.ɵɵFactoryDeclaration<HelixTopbar, never>;
|
|
951
1097
|
static ɵcmp: i0.ɵɵComponentDeclaration<HelixTopbar, "helix-topbar", never, {
|
|
952
1098
|
"appTitle": {
|
|
@@ -954,31 +1100,38 @@ export declare class HelixTopbar implements OnInit, OnDestroy {
|
|
|
954
1100
|
"required": false;
|
|
955
1101
|
"isSignal": true;
|
|
956
1102
|
};
|
|
957
|
-
"
|
|
958
|
-
"alias": "
|
|
1103
|
+
"breadcrumbs": {
|
|
1104
|
+
"alias": "breadcrumbs";
|
|
959
1105
|
"required": false;
|
|
960
1106
|
"isSignal": true;
|
|
961
1107
|
};
|
|
962
|
-
"
|
|
963
|
-
"alias": "
|
|
1108
|
+
"pageTitle": {
|
|
1109
|
+
"alias": "pageTitle";
|
|
964
1110
|
"required": false;
|
|
965
1111
|
"isSignal": true;
|
|
966
1112
|
};
|
|
967
|
-
"
|
|
968
|
-
"alias": "
|
|
1113
|
+
"actions": {
|
|
1114
|
+
"alias": "actions";
|
|
969
1115
|
"required": false;
|
|
970
1116
|
"isSignal": true;
|
|
971
1117
|
};
|
|
972
|
-
"
|
|
973
|
-
"alias": "
|
|
1118
|
+
"alerts": {
|
|
1119
|
+
"alias": "alerts";
|
|
974
1120
|
"required": false;
|
|
975
1121
|
"isSignal": true;
|
|
976
1122
|
};
|
|
977
|
-
|
|
1123
|
+
"searchPlaceholder": {
|
|
1124
|
+
"alias": "searchPlaceholder";
|
|
1125
|
+
"required": false;
|
|
1126
|
+
"isSignal": true;
|
|
1127
|
+
};
|
|
1128
|
+
}, {
|
|
1129
|
+
"search": "search";
|
|
1130
|
+
}, never, never, true, never>;
|
|
978
1131
|
}
|
|
979
1132
|
export type MenuMode = 'static' | 'overlay';
|
|
980
1133
|
/**
|
|
981
|
-
* The layout settings the store owns. Dark mode, the primary colour and the
|
|
1134
|
+
* The layout settings the store owns. Dark mode, the primary colour, the surface and the density are not among them: they
|
|
982
1135
|
* belong to the theme service of helix-ui (`HxTheme`), which the store only exposes.
|
|
983
1136
|
*/
|
|
984
1137
|
export interface LayoutConfig {
|
|
@@ -1011,6 +1164,11 @@ export declare const LayoutStore: import("@angular/core").Type<{
|
|
|
1011
1164
|
darkTheme: import("@angular/core").Signal<boolean>;
|
|
1012
1165
|
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
1013
1166
|
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
1167
|
+
density: import("@angular/core").Signal<"compact" | "comfortable">;
|
|
1168
|
+
preset: import("@angular/core").Signal<string>;
|
|
1169
|
+
presetNames: import("@angular/core").Signal<string[]>;
|
|
1170
|
+
activePrimary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
1171
|
+
activeSurface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
1014
1172
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
1015
1173
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
1016
1174
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -1029,6 +1187,8 @@ export declare const LayoutStore: import("@angular/core").Type<{
|
|
|
1029
1187
|
updateConfig: (config: Partial<LayoutConfig>) => void;
|
|
1030
1188
|
setPrimary: (primary: HxPrimaryColor | null) => void;
|
|
1031
1189
|
setSurface: (surface: HxSurface | null) => void;
|
|
1190
|
+
setDensity: (density: HxDensity) => void;
|
|
1191
|
+
setPreset: (preset: string) => void;
|
|
1032
1192
|
isDesktop: () => boolean;
|
|
1033
1193
|
setDesktop: (desktop: boolean) => void;
|
|
1034
1194
|
reset: () => void;
|
|
@@ -1678,4 +1838,4 @@ export declare class HelixStatCard {
|
|
|
1678
1838
|
};
|
|
1679
1839
|
}, {}, never, ["*"], true, never>;
|
|
1680
1840
|
}
|
|
1681
|
-
export type { AlertItem, BadgeSeverity, CustomEnvironment, Environment, EnvironmentValue, HelixBreadcrumb, HelixEmptyStateSize, HelixFeature, HelixFooterColumn, HelixFooterLink, HelixHighlight, HelixLoginCredentials, HelixNavGroup, HelixNavLink, HelixNavStyle, HelixNotfoundSuggestion, HelixPricingPlan, HelixRouteMenuItem, HelixStatSeverity, HelixStatusBarTone, HelixStatusBarVersion, HelixTestimonial,
|
|
1841
|
+
export type { AlertItem, BadgeSeverity, CustomEnvironment, Environment, EnvironmentValue, HelixBreadcrumb, HelixEmptyStateSize, HelixFeature, HelixFooterColumn, HelixFooterLink, HelixHighlight, HelixLoginCredentials, HelixNavGroup, HelixNavLink, HelixNavStyle, HelixNotfoundSuggestion, HelixPricingPlan, HelixRouteMenuItem, HelixStatSeverity, HelixStatusBarTone, HelixStatusBarVersion, HelixTestimonial, HelixTopbarActionConfig, HelixTopbarActionPosition, HelixTopbarBuiltInAction, HelixTopbarCustomAction };
|