@gravionlabs/helix-shell 22.1.22 → 22.1.23
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravionlabs/helix-shell",
|
|
3
|
-
"version": "22.1.
|
|
3
|
+
"version": "22.1.23",
|
|
4
4
|
"description": "Helix application shell for Angular — layout (topbar, nav rail, footer), auth pages, landing widgets, and a signal-store-backed layout state.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
import { AfterViewInit, ElementRef, InjectionToken, OnDestroy, OnInit, Type } from "@angular/core";
|
|
4
4
|
import { ActivatedRoute, ActivatedRouteSnapshot, CanActivateFn, Route, Router, Routes } from "@angular/router";
|
|
5
5
|
import { MenuItem } from "@gravionlabs/helix-core/api";
|
|
6
|
-
import {
|
|
6
|
+
import { HxPrimaryColor, HxSurface } from "@gravionlabs/helix-ui";
|
|
7
7
|
export declare class HelixFormField {
|
|
8
8
|
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
9
9
|
readonly control: import("@angular/core").InputSignal<AbstractControl<any, any, any> | null>;
|
|
@@ -291,10 +291,6 @@ export declare class HelixAppLayout {
|
|
|
291
291
|
navGroups: import("@angular/core").InputSignal<HelixNavGroup[] | undefined>;
|
|
292
292
|
private static readonly DEFAULT_TOP_ACTIONS;
|
|
293
293
|
store: {
|
|
294
|
-
preset: import("@angular/core").Signal<string>;
|
|
295
|
-
primary: import("@angular/core").Signal<string | null>;
|
|
296
|
-
surface: import("@angular/core").Signal<string | null | undefined>;
|
|
297
|
-
darkTheme: import("@angular/core").Signal<boolean>;
|
|
298
294
|
menuMode: import("@angular/core").Signal<import("@gravionlabs/helix-shell").MenuMode>;
|
|
299
295
|
staticMenuDesktopInactive: import("@angular/core").Signal<boolean>;
|
|
300
296
|
overlayMenuActive: import("@angular/core").Signal<boolean>;
|
|
@@ -305,6 +301,9 @@ export declare class HelixAppLayout {
|
|
|
305
301
|
sidebarCollapsed: import("@angular/core").Signal<boolean>;
|
|
306
302
|
desktop: import("@angular/core").Signal<boolean>;
|
|
307
303
|
expandedKeys: import("@angular/core").Signal<string[]>;
|
|
304
|
+
darkTheme: import("@angular/core").Signal<boolean>;
|
|
305
|
+
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
306
|
+
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
308
307
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
309
308
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
310
309
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -321,17 +320,12 @@ export declare class HelixAppLayout {
|
|
|
321
320
|
toggleSidebar: () => void;
|
|
322
321
|
setMenuHoverActive: (menuHoverActive: boolean) => void;
|
|
323
322
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
setSurface: (surface: string | null) => void;
|
|
323
|
+
setPrimary: (primary: import("../../../../../../../dist/ui/types/gravionlabs-helix-ui").HxPrimaryColor | null) => void;
|
|
324
|
+
setSurface: (surface: import("../../../../../../../dist/ui/types/gravionlabs-helix-ui").HxSurface | null) => void;
|
|
327
325
|
isDesktop: () => boolean;
|
|
328
326
|
setDesktop: (desktop: boolean) => void;
|
|
329
327
|
reset: () => void;
|
|
330
328
|
} & import("@ngrx/signals").StateSource<{
|
|
331
|
-
preset: string;
|
|
332
|
-
primary: string | null;
|
|
333
|
-
surface: string | undefined | null;
|
|
334
|
-
darkTheme: boolean;
|
|
335
329
|
menuMode: import("@gravionlabs/helix-shell").MenuMode;
|
|
336
330
|
staticMenuDesktopInactive: boolean;
|
|
337
331
|
overlayMenuActive: boolean;
|
|
@@ -428,31 +422,18 @@ export declare class HelixAppLayout {
|
|
|
428
422
|
};
|
|
429
423
|
}, {}, never, never, true, never>;
|
|
430
424
|
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
600?: string;
|
|
442
|
-
700?: string;
|
|
443
|
-
800?: string;
|
|
444
|
-
900?: string;
|
|
445
|
-
950?: string;
|
|
446
|
-
};
|
|
447
|
-
};
|
|
448
|
-
export declare class HelixConfigurator implements OnInit {
|
|
425
|
+
/** One choice of the chooser: its name and the colour of its round swatch. */
|
|
426
|
+
interface Swatch<Name extends string> {
|
|
427
|
+
name: Name;
|
|
428
|
+
swatch: string;
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* The theme panel of the shell: primary colour, surface and menu mode. The colours go to the theme service of
|
|
432
|
+
* helix-ui (through the layout store), which changes CSS variables only; the panel itself knows no theme engine.
|
|
433
|
+
*/
|
|
434
|
+
export declare class HelixConfigurator {
|
|
449
435
|
router: Router;
|
|
450
|
-
primeng: HelixConfig;
|
|
451
436
|
store: {
|
|
452
|
-
preset: import("@angular/core").Signal<string>;
|
|
453
|
-
primary: import("@angular/core").Signal<string | null>;
|
|
454
|
-
surface: import("@angular/core").Signal<string | null | undefined>;
|
|
455
|
-
darkTheme: import("@angular/core").Signal<boolean>;
|
|
456
437
|
menuMode: import("@angular/core").Signal<import("@gravionlabs/helix-shell").MenuMode>;
|
|
457
438
|
staticMenuDesktopInactive: import("@angular/core").Signal<boolean>;
|
|
458
439
|
overlayMenuActive: import("@angular/core").Signal<boolean>;
|
|
@@ -463,6 +444,9 @@ export declare class HelixConfigurator implements OnInit {
|
|
|
463
444
|
sidebarCollapsed: import("@angular/core").Signal<boolean>;
|
|
464
445
|
desktop: import("@angular/core").Signal<boolean>;
|
|
465
446
|
expandedKeys: import("@angular/core").Signal<string[]>;
|
|
447
|
+
darkTheme: import("@angular/core").Signal<boolean>;
|
|
448
|
+
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
449
|
+
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
466
450
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
467
451
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
468
452
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -479,17 +463,12 @@ export declare class HelixConfigurator implements OnInit {
|
|
|
479
463
|
toggleSidebar: () => void;
|
|
480
464
|
setMenuHoverActive: (menuHoverActive: boolean) => void;
|
|
481
465
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
setSurface: (surface: string | null) => void;
|
|
466
|
+
setPrimary: (primary: HxPrimaryColor | null) => void;
|
|
467
|
+
setSurface: (surface: HxSurface | null) => void;
|
|
485
468
|
isDesktop: () => boolean;
|
|
486
469
|
setDesktop: (desktop: boolean) => void;
|
|
487
470
|
reset: () => void;
|
|
488
471
|
} & import("@ngrx/signals").StateSource<{
|
|
489
|
-
preset: string;
|
|
490
|
-
primary: string | null;
|
|
491
|
-
surface: string | undefined | null;
|
|
492
|
-
darkTheme: boolean;
|
|
493
472
|
menuMode: import("@gravionlabs/helix-shell").MenuMode;
|
|
494
473
|
staticMenuDesktopInactive: boolean;
|
|
495
474
|
overlayMenuActive: boolean;
|
|
@@ -501,85 +480,26 @@ export declare class HelixConfigurator implements OnInit {
|
|
|
501
480
|
desktop: boolean;
|
|
502
481
|
expandedKeys: string[];
|
|
503
482
|
}>;
|
|
504
|
-
platformId: Object;
|
|
505
|
-
presetOptions: string[];
|
|
506
483
|
showMenuModeButton: import("@angular/core").WritableSignal<boolean>;
|
|
507
484
|
menuModeOptions: {
|
|
508
485
|
label: string;
|
|
509
486
|
value: string;
|
|
510
487
|
}[];
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
488
|
+
/** Black and white first, then the colours; a swatch shows the colour of step 500 of the scale. */
|
|
489
|
+
primaryColors: Swatch<HxPrimaryColor>[];
|
|
490
|
+
surfaces: Swatch<HxSurface>[];
|
|
491
|
+
selectedPrimaryColor: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
492
|
+
/** The colour in use: the chosen one, else the one of the Helix preset (indigo). */
|
|
493
|
+
activePrimaryColor: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir">;
|
|
494
|
+
selectedSurfaceColor: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
517
495
|
menuMode: import("@angular/core").Signal<import("@gravionlabs/helix-shell").MenuMode>;
|
|
518
|
-
|
|
519
|
-
ngOnInit(): void;
|
|
520
|
-
getPresetExt(): {
|
|
521
|
-
semantic?: undefined;
|
|
522
|
-
} | {
|
|
523
|
-
semantic: {
|
|
524
|
-
primary: {
|
|
525
|
-
0?: string;
|
|
526
|
-
50?: string;
|
|
527
|
-
100?: string;
|
|
528
|
-
200?: string;
|
|
529
|
-
300?: string;
|
|
530
|
-
400?: string;
|
|
531
|
-
500?: string;
|
|
532
|
-
600?: string;
|
|
533
|
-
700?: string;
|
|
534
|
-
800?: string;
|
|
535
|
-
900?: string;
|
|
536
|
-
950?: string;
|
|
537
|
-
} | undefined;
|
|
538
|
-
colorScheme: {
|
|
539
|
-
light: {
|
|
540
|
-
primary: {
|
|
541
|
-
color: string;
|
|
542
|
-
contrastColor: string;
|
|
543
|
-
hoverColor: string;
|
|
544
|
-
activeColor: string;
|
|
545
|
-
};
|
|
546
|
-
highlight: {
|
|
547
|
-
background: string;
|
|
548
|
-
focusBackground: string;
|
|
549
|
-
color: string;
|
|
550
|
-
focusColor: string;
|
|
551
|
-
};
|
|
552
|
-
};
|
|
553
|
-
dark: {
|
|
554
|
-
primary: {
|
|
555
|
-
color: string;
|
|
556
|
-
contrastColor: string;
|
|
557
|
-
hoverColor: string;
|
|
558
|
-
activeColor: string;
|
|
559
|
-
};
|
|
560
|
-
highlight: {
|
|
561
|
-
background: string;
|
|
562
|
-
focusBackground: string;
|
|
563
|
-
color: string;
|
|
564
|
-
focusColor: string;
|
|
565
|
-
};
|
|
566
|
-
};
|
|
567
|
-
};
|
|
568
|
-
};
|
|
569
|
-
};
|
|
570
|
-
updateColors(event: Event, type: string, color: SurfacesType): void;
|
|
571
|
-
applyTheme(type: string, color: SurfacesType): void;
|
|
572
|
-
onPresetChange(event: string): void;
|
|
496
|
+
updateColors(event: Event, type: 'primary' | 'surface', color: Swatch<string>): void;
|
|
573
497
|
onMenuModeChange(event: string): void;
|
|
574
498
|
static ɵfac: i0.ɵɵFactoryDeclaration<HelixConfigurator, never>;
|
|
575
499
|
static ɵcmp: i0.ɵɵComponentDeclaration<HelixConfigurator, "helix-configurator", never, {}, {}, never, never, true, never>;
|
|
576
500
|
}
|
|
577
501
|
export declare class HelixFloatingConfigurator {
|
|
578
502
|
store: {
|
|
579
|
-
preset: import("@angular/core").Signal<string>;
|
|
580
|
-
primary: import("@angular/core").Signal<string | null>;
|
|
581
|
-
surface: import("@angular/core").Signal<string | null | undefined>;
|
|
582
|
-
darkTheme: import("@angular/core").Signal<boolean>;
|
|
583
503
|
menuMode: import("@angular/core").Signal<import("@gravionlabs/helix-shell").MenuMode>;
|
|
584
504
|
staticMenuDesktopInactive: import("@angular/core").Signal<boolean>;
|
|
585
505
|
overlayMenuActive: import("@angular/core").Signal<boolean>;
|
|
@@ -590,6 +510,9 @@ export declare class HelixFloatingConfigurator {
|
|
|
590
510
|
sidebarCollapsed: import("@angular/core").Signal<boolean>;
|
|
591
511
|
desktop: import("@angular/core").Signal<boolean>;
|
|
592
512
|
expandedKeys: import("@angular/core").Signal<string[]>;
|
|
513
|
+
darkTheme: import("@angular/core").Signal<boolean>;
|
|
514
|
+
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
515
|
+
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
593
516
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
594
517
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
595
518
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -606,17 +529,12 @@ export declare class HelixFloatingConfigurator {
|
|
|
606
529
|
toggleSidebar: () => void;
|
|
607
530
|
setMenuHoverActive: (menuHoverActive: boolean) => void;
|
|
608
531
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
setSurface: (surface: string | null) => void;
|
|
532
|
+
setPrimary: (primary: import("@gravionlabs/helix-ui").HxPrimaryColor | null) => void;
|
|
533
|
+
setSurface: (surface: import("@gravionlabs/helix-ui").HxSurface | null) => void;
|
|
612
534
|
isDesktop: () => boolean;
|
|
613
535
|
setDesktop: (desktop: boolean) => void;
|
|
614
536
|
reset: () => void;
|
|
615
537
|
} & import("@ngrx/signals").StateSource<{
|
|
616
|
-
preset: string;
|
|
617
|
-
primary: string | null;
|
|
618
|
-
surface: string | undefined | null;
|
|
619
|
-
darkTheme: boolean;
|
|
620
538
|
menuMode: import("@gravionlabs/helix-shell").MenuMode;
|
|
621
539
|
staticMenuDesktopInactive: boolean;
|
|
622
540
|
overlayMenuActive: boolean;
|
|
@@ -686,10 +604,6 @@ export declare class HelixFooter {
|
|
|
686
604
|
}
|
|
687
605
|
export declare class HelixNavRail implements OnInit, OnDestroy {
|
|
688
606
|
store: {
|
|
689
|
-
preset: import("@angular/core").Signal<string>;
|
|
690
|
-
primary: import("@angular/core").Signal<string | null>;
|
|
691
|
-
surface: import("@angular/core").Signal<string | null | undefined>;
|
|
692
|
-
darkTheme: import("@angular/core").Signal<boolean>;
|
|
693
607
|
menuMode: import("@angular/core").Signal<import("@gravionlabs/helix-shell").MenuMode>;
|
|
694
608
|
staticMenuDesktopInactive: import("@angular/core").Signal<boolean>;
|
|
695
609
|
overlayMenuActive: import("@angular/core").Signal<boolean>;
|
|
@@ -700,6 +614,9 @@ export declare class HelixNavRail implements OnInit, OnDestroy {
|
|
|
700
614
|
sidebarCollapsed: import("@angular/core").Signal<boolean>;
|
|
701
615
|
desktop: import("@angular/core").Signal<boolean>;
|
|
702
616
|
expandedKeys: import("@angular/core").Signal<string[]>;
|
|
617
|
+
darkTheme: import("@angular/core").Signal<boolean>;
|
|
618
|
+
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
619
|
+
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
703
620
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
704
621
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
705
622
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -716,17 +633,12 @@ export declare class HelixNavRail implements OnInit, OnDestroy {
|
|
|
716
633
|
toggleSidebar: () => void;
|
|
717
634
|
setMenuHoverActive: (menuHoverActive: boolean) => void;
|
|
718
635
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
setSurface: (surface: string | null) => void;
|
|
636
|
+
setPrimary: (primary: import("../../../../../../../dist/ui/types/gravionlabs-helix-ui").HxPrimaryColor | null) => void;
|
|
637
|
+
setSurface: (surface: import("../../../../../../../dist/ui/types/gravionlabs-helix-ui").HxSurface | null) => void;
|
|
722
638
|
isDesktop: () => boolean;
|
|
723
639
|
setDesktop: (desktop: boolean) => void;
|
|
724
640
|
reset: () => void;
|
|
725
641
|
} & import("@ngrx/signals").StateSource<{
|
|
726
|
-
preset: string;
|
|
727
|
-
primary: string | null;
|
|
728
|
-
surface: string | undefined | null;
|
|
729
|
-
darkTheme: boolean;
|
|
730
642
|
menuMode: import("@gravionlabs/helix-shell").MenuMode;
|
|
731
643
|
staticMenuDesktopInactive: boolean;
|
|
732
644
|
overlayMenuActive: boolean;
|
|
@@ -783,10 +695,6 @@ export declare class HelixNavRail implements OnInit, OnDestroy {
|
|
|
783
695
|
export declare class HelixNavRailItem implements AfterViewInit {
|
|
784
696
|
#private;
|
|
785
697
|
store: {
|
|
786
|
-
preset: import("@angular/core").Signal<string>;
|
|
787
|
-
primary: import("@angular/core").Signal<string | null>;
|
|
788
|
-
surface: import("@angular/core").Signal<string | null | undefined>;
|
|
789
|
-
darkTheme: import("@angular/core").Signal<boolean>;
|
|
790
698
|
menuMode: import("@angular/core").Signal<import("@gravionlabs/helix-shell").MenuMode>;
|
|
791
699
|
staticMenuDesktopInactive: import("@angular/core").Signal<boolean>;
|
|
792
700
|
overlayMenuActive: import("@angular/core").Signal<boolean>;
|
|
@@ -797,6 +705,9 @@ export declare class HelixNavRailItem implements AfterViewInit {
|
|
|
797
705
|
sidebarCollapsed: import("@angular/core").Signal<boolean>;
|
|
798
706
|
desktop: import("@angular/core").Signal<boolean>;
|
|
799
707
|
expandedKeys: import("@angular/core").Signal<string[]>;
|
|
708
|
+
darkTheme: import("@angular/core").Signal<boolean>;
|
|
709
|
+
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
710
|
+
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
800
711
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
801
712
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
802
713
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -813,17 +724,12 @@ export declare class HelixNavRailItem implements AfterViewInit {
|
|
|
813
724
|
toggleSidebar: () => void;
|
|
814
725
|
setMenuHoverActive: (menuHoverActive: boolean) => void;
|
|
815
726
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
setSurface: (surface: string | null) => void;
|
|
727
|
+
setPrimary: (primary: import("@gravionlabs/helix-ui").HxPrimaryColor | null) => void;
|
|
728
|
+
setSurface: (surface: import("@gravionlabs/helix-ui").HxSurface | null) => void;
|
|
819
729
|
isDesktop: () => boolean;
|
|
820
730
|
setDesktop: (desktop: boolean) => void;
|
|
821
731
|
reset: () => void;
|
|
822
732
|
} & import("@ngrx/signals").StateSource<{
|
|
823
|
-
preset: string;
|
|
824
|
-
primary: string | null;
|
|
825
|
-
surface: string | undefined | null;
|
|
826
|
-
darkTheme: boolean;
|
|
827
733
|
menuMode: import("@gravionlabs/helix-shell").MenuMode;
|
|
828
734
|
staticMenuDesktopInactive: boolean;
|
|
829
735
|
overlayMenuActive: boolean;
|
|
@@ -944,10 +850,6 @@ export declare class HelixConfiguratorAction {
|
|
|
944
850
|
}
|
|
945
851
|
export declare class HelixDarkModeAction {
|
|
946
852
|
protected store: {
|
|
947
|
-
preset: import("@angular/core").Signal<string>;
|
|
948
|
-
primary: import("@angular/core").Signal<string | null>;
|
|
949
|
-
surface: import("@angular/core").Signal<string | null | undefined>;
|
|
950
|
-
darkTheme: import("@angular/core").Signal<boolean>;
|
|
951
853
|
menuMode: import("@angular/core").Signal<import("@gravionlabs/helix-shell").MenuMode>;
|
|
952
854
|
staticMenuDesktopInactive: import("@angular/core").Signal<boolean>;
|
|
953
855
|
overlayMenuActive: import("@angular/core").Signal<boolean>;
|
|
@@ -958,6 +860,9 @@ export declare class HelixDarkModeAction {
|
|
|
958
860
|
sidebarCollapsed: import("@angular/core").Signal<boolean>;
|
|
959
861
|
desktop: import("@angular/core").Signal<boolean>;
|
|
960
862
|
expandedKeys: import("@angular/core").Signal<string[]>;
|
|
863
|
+
darkTheme: import("@angular/core").Signal<boolean>;
|
|
864
|
+
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
865
|
+
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
961
866
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
962
867
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
963
868
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -974,17 +879,12 @@ export declare class HelixDarkModeAction {
|
|
|
974
879
|
toggleSidebar: () => void;
|
|
975
880
|
setMenuHoverActive: (menuHoverActive: boolean) => void;
|
|
976
881
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
setSurface: (surface: string | null) => void;
|
|
882
|
+
setPrimary: (primary: import("../../../../../../../../dist/ui/types/gravionlabs-helix-ui").HxPrimaryColor | null) => void;
|
|
883
|
+
setSurface: (surface: import("../../../../../../../../dist/ui/types/gravionlabs-helix-ui").HxSurface | null) => void;
|
|
980
884
|
isDesktop: () => boolean;
|
|
981
885
|
setDesktop: (desktop: boolean) => void;
|
|
982
886
|
reset: () => void;
|
|
983
887
|
} & import("@ngrx/signals").StateSource<{
|
|
984
|
-
preset: string;
|
|
985
|
-
primary: string | null;
|
|
986
|
-
surface: string | undefined | null;
|
|
987
|
-
darkTheme: boolean;
|
|
988
888
|
menuMode: import("@gravionlabs/helix-shell").MenuMode;
|
|
989
889
|
staticMenuDesktopInactive: boolean;
|
|
990
890
|
overlayMenuActive: boolean;
|
|
@@ -1018,10 +918,6 @@ export declare class HelixTopbar implements OnInit, OnDestroy {
|
|
|
1018
918
|
menuLabel: import("@angular/core").InputSignal<string>;
|
|
1019
919
|
items: import("@angular/core").InputSignal<HelixTopbarItem[]>;
|
|
1020
920
|
store: {
|
|
1021
|
-
preset: import("@angular/core").Signal<string>;
|
|
1022
|
-
primary: import("@angular/core").Signal<string | null>;
|
|
1023
|
-
surface: import("@angular/core").Signal<string | null | undefined>;
|
|
1024
|
-
darkTheme: import("@angular/core").Signal<boolean>;
|
|
1025
921
|
menuMode: import("@angular/core").Signal<import("@gravionlabs/helix-shell").MenuMode>;
|
|
1026
922
|
staticMenuDesktopInactive: import("@angular/core").Signal<boolean>;
|
|
1027
923
|
overlayMenuActive: import("@angular/core").Signal<boolean>;
|
|
@@ -1032,6 +928,9 @@ export declare class HelixTopbar implements OnInit, OnDestroy {
|
|
|
1032
928
|
sidebarCollapsed: import("@angular/core").Signal<boolean>;
|
|
1033
929
|
desktop: import("@angular/core").Signal<boolean>;
|
|
1034
930
|
expandedKeys: import("@angular/core").Signal<string[]>;
|
|
931
|
+
darkTheme: import("@angular/core").Signal<boolean>;
|
|
932
|
+
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
933
|
+
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
1035
934
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
1036
935
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
1037
936
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -1048,17 +947,12 @@ export declare class HelixTopbar implements OnInit, OnDestroy {
|
|
|
1048
947
|
toggleSidebar: () => void;
|
|
1049
948
|
setMenuHoverActive: (menuHoverActive: boolean) => void;
|
|
1050
949
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
setSurface: (surface: string | null) => void;
|
|
950
|
+
setPrimary: (primary: import("@gravionlabs/helix-ui").HxPrimaryColor | null) => void;
|
|
951
|
+
setSurface: (surface: import("@gravionlabs/helix-ui").HxSurface | null) => void;
|
|
1054
952
|
isDesktop: () => boolean;
|
|
1055
953
|
setDesktop: (desktop: boolean) => void;
|
|
1056
954
|
reset: () => void;
|
|
1057
955
|
} & import("@ngrx/signals").StateSource<{
|
|
1058
|
-
preset: string;
|
|
1059
|
-
primary: string | null;
|
|
1060
|
-
surface: string | undefined | null;
|
|
1061
|
-
darkTheme: boolean;
|
|
1062
956
|
menuMode: import("@gravionlabs/helix-shell").MenuMode;
|
|
1063
957
|
staticMenuDesktopInactive: boolean;
|
|
1064
958
|
overlayMenuActive: boolean;
|
|
@@ -1108,11 +1002,11 @@ export declare class HelixTopbar implements OnInit, OnDestroy {
|
|
|
1108
1002
|
}, {}, never, ["[helixTopbarEnd]"], true, never>;
|
|
1109
1003
|
}
|
|
1110
1004
|
export type MenuMode = 'static' | 'overlay';
|
|
1005
|
+
/**
|
|
1006
|
+
* The layout settings the store owns. Dark mode, the primary colour and the surface are not among them: they
|
|
1007
|
+
* belong to the theme service of helix-ui (`HxTheme`), which the store only exposes.
|
|
1008
|
+
*/
|
|
1111
1009
|
export interface LayoutConfig {
|
|
1112
|
-
preset: string;
|
|
1113
|
-
primary: string | null;
|
|
1114
|
-
surface: string | undefined | null;
|
|
1115
|
-
darkTheme: boolean;
|
|
1116
1010
|
menuMode: MenuMode;
|
|
1117
1011
|
}
|
|
1118
1012
|
export interface LayoutState {
|
|
@@ -1129,10 +1023,6 @@ export interface LayoutState {
|
|
|
1129
1023
|
expandedKeys: string[];
|
|
1130
1024
|
}
|
|
1131
1025
|
export declare const LayoutStore: import("@angular/core").Type<{
|
|
1132
|
-
preset: import("@angular/core").Signal<string>;
|
|
1133
|
-
primary: import("@angular/core").Signal<string | null>;
|
|
1134
|
-
surface: import("@angular/core").Signal<string | null | undefined>;
|
|
1135
|
-
darkTheme: import("@angular/core").Signal<boolean>;
|
|
1136
1026
|
menuMode: import("@angular/core").Signal<MenuMode>;
|
|
1137
1027
|
staticMenuDesktopInactive: import("@angular/core").Signal<boolean>;
|
|
1138
1028
|
overlayMenuActive: import("@angular/core").Signal<boolean>;
|
|
@@ -1143,6 +1033,9 @@ export declare const LayoutStore: import("@angular/core").Type<{
|
|
|
1143
1033
|
sidebarCollapsed: import("@angular/core").Signal<boolean>;
|
|
1144
1034
|
desktop: import("@angular/core").Signal<boolean>;
|
|
1145
1035
|
expandedKeys: import("@angular/core").Signal<string[]>;
|
|
1036
|
+
darkTheme: import("@angular/core").Signal<boolean>;
|
|
1037
|
+
primary: import("@angular/core").Signal<"emerald" | "green" | "lime" | "orange" | "amber" | "yellow" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "noir" | null>;
|
|
1038
|
+
surface: import("@angular/core").Signal<"slate" | "gray" | "zinc" | "neutral" | "stone" | "soho" | "viva" | "ocean" | null>;
|
|
1146
1039
|
isDarkTheme: import("@angular/core").Signal<boolean>;
|
|
1147
1040
|
isOverlay: import("@angular/core").Signal<boolean>;
|
|
1148
1041
|
isStatic: import("@angular/core").Signal<boolean>;
|
|
@@ -1159,17 +1052,12 @@ export declare const LayoutStore: import("@angular/core").Type<{
|
|
|
1159
1052
|
toggleSidebar: () => void;
|
|
1160
1053
|
setMenuHoverActive: (menuHoverActive: boolean) => void;
|
|
1161
1054
|
updateConfig: (config: Partial<LayoutConfig>) => void;
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
setSurface: (surface: string | null) => void;
|
|
1055
|
+
setPrimary: (primary: HxPrimaryColor | null) => void;
|
|
1056
|
+
setSurface: (surface: HxSurface | null) => void;
|
|
1165
1057
|
isDesktop: () => boolean;
|
|
1166
1058
|
setDesktop: (desktop: boolean) => void;
|
|
1167
1059
|
reset: () => void;
|
|
1168
1060
|
} & import("@ngrx/signals").StateSource<{
|
|
1169
|
-
preset: string;
|
|
1170
|
-
primary: string | null;
|
|
1171
|
-
surface: string | undefined | null;
|
|
1172
|
-
darkTheme: boolean;
|
|
1173
1061
|
menuMode: MenuMode;
|
|
1174
1062
|
staticMenuDesktopInactive: boolean;
|
|
1175
1063
|
overlayMenuActive: boolean;
|