@gravionlabs/helix-shell 22.1.28 → 22.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -7
- package/fesm2022/gravionlabs-helix-shell.mjs +139 -18
- package/fesm2022/gravionlabs-helix-shell.mjs.map +1 -1
- package/package.json +1 -2
- package/styles.css +33 -281
- package/types/gravionlabs-helix-shell.d.ts +32 -13
|
@@ -2,8 +2,7 @@ import { AbstractControl, ControlValueAccessor } from "@angular/forms";
|
|
|
2
2
|
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
|
-
import {
|
|
6
|
-
import { HxPrimaryColor, HxSurface } from "@gravionlabs/helix-ui";
|
|
5
|
+
import { HxMenuItem, HxPrimaryColor, HxSurface } from "@gravionlabs/helix-ui";
|
|
7
6
|
export declare class HelixFormField {
|
|
8
7
|
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
9
8
|
readonly control: import("@angular/core").InputSignal<AbstractControl<any, any, any> | null>;
|
|
@@ -99,7 +98,7 @@ interface HelixBreadcrumb {
|
|
|
99
98
|
route?: string;
|
|
100
99
|
}
|
|
101
100
|
export declare const HELIX_BREADCRUMB: InjectionToken<HelixBreadcrumb[]>;
|
|
102
|
-
export declare function helixBreadcrumbsFromRoutes(route: ActivatedRoute):
|
|
101
|
+
export declare function helixBreadcrumbsFromRoutes(route: ActivatedRoute): HxMenuItem[];
|
|
103
102
|
type BadgeSeverity = 'info' | 'warn' | 'error' | 'success';
|
|
104
103
|
export declare class HelixBadge {
|
|
105
104
|
severity: import("@angular/core").InputSignal<BadgeSeverity>;
|
|
@@ -148,10 +147,10 @@ export declare class HelixEnvironmentBadge {
|
|
|
148
147
|
}, {}, never, never, true, never>;
|
|
149
148
|
}
|
|
150
149
|
/**
|
|
151
|
-
* Extends Helix's
|
|
150
|
+
* Extends Helix's HxMenuItem with Angular routing properties.
|
|
152
151
|
* Allows a single array to define both the sidebar menu and the router configuration.
|
|
153
152
|
*/
|
|
154
|
-
interface HelixRouteMenuItem extends
|
|
153
|
+
interface HelixRouteMenuItem extends HxMenuItem {
|
|
155
154
|
/** Angular route path segment (relative to the parent route). */
|
|
156
155
|
path?: string;
|
|
157
156
|
/** Breadcrumb label or resolver for auto-generated breadcrumbs. */
|
|
@@ -164,7 +163,7 @@ interface HelixRouteMenuItem extends MenuItem {
|
|
|
164
163
|
canActivate?: CanActivateFn[];
|
|
165
164
|
/** Additional route data (merged with the auto-injected menu data). */
|
|
166
165
|
data?: Record<string, unknown>;
|
|
167
|
-
/** Typed override of
|
|
166
|
+
/** Typed override of HxMenuItem.items — supports nested HelixRouteMenuItem entries. */
|
|
168
167
|
items?: HelixRouteMenuItem[];
|
|
169
168
|
}
|
|
170
169
|
/**
|
|
@@ -320,8 +319,8 @@ export declare class HelixAppLayout {
|
|
|
320
319
|
toggleSidebar: () => void;
|
|
321
320
|
setMenuHoverActive: (menuHoverActive: boolean) => void;
|
|
322
321
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
323
|
-
setPrimary: (primary: import("
|
|
324
|
-
setSurface: (surface: import("
|
|
322
|
+
setPrimary: (primary: import("@gravionlabs/helix-ui").HxPrimaryColor | null) => void;
|
|
323
|
+
setSurface: (surface: import("@gravionlabs/helix-ui").HxSurface | null) => void;
|
|
325
324
|
isDesktop: () => boolean;
|
|
326
325
|
setDesktop: (desktop: boolean) => void;
|
|
327
326
|
reset: () => void;
|
|
@@ -339,7 +338,7 @@ export declare class HelixAppLayout {
|
|
|
339
338
|
}>;
|
|
340
339
|
private activatedRoute;
|
|
341
340
|
/** Resolved menu: input takes priority, then route data, then empty. */
|
|
342
|
-
protected effectiveMenu: import("@angular/core").Signal<
|
|
341
|
+
protected effectiveMenu: import("@angular/core").Signal<HxMenuItem[]>;
|
|
343
342
|
protected effectiveNavGroups: import("@angular/core").Signal<HelixNavGroup[]>;
|
|
344
343
|
protected effectiveEnvironment: import("@angular/core").Signal<Environment | undefined>;
|
|
345
344
|
protected effectiveItems: import("@angular/core").Signal<HelixTopbarItem[]>;
|
|
@@ -633,8 +632,8 @@ export declare class HelixNavRail implements OnInit, OnDestroy {
|
|
|
633
632
|
toggleSidebar: () => void;
|
|
634
633
|
setMenuHoverActive: (menuHoverActive: boolean) => void;
|
|
635
634
|
updateConfig: (config: Partial<import("@gravionlabs/helix-shell").LayoutConfig>) => void;
|
|
636
|
-
setPrimary: (primary: import("
|
|
637
|
-
setSurface: (surface: import("
|
|
635
|
+
setPrimary: (primary: import("@gravionlabs/helix-ui").HxPrimaryColor | null) => void;
|
|
636
|
+
setSurface: (surface: import("@gravionlabs/helix-ui").HxSurface | null) => void;
|
|
638
637
|
isDesktop: () => boolean;
|
|
639
638
|
setDesktop: (desktop: boolean) => void;
|
|
640
639
|
reset: () => void;
|
|
@@ -664,6 +663,19 @@ export declare class HelixNavRail implements OnInit, OnDestroy {
|
|
|
664
663
|
brandIcon: import("@angular/core").InputSignal<string | undefined>;
|
|
665
664
|
protected isInlineSvg: import("@angular/core").Signal<boolean>;
|
|
666
665
|
protected safeBrandIcon: import("@angular/core").Signal<import("@angular/platform-browser").SafeHtml | null>;
|
|
666
|
+
/** The filter field; `Ctrl/Cmd+K` focuses it (and expands a collapsed rail). */
|
|
667
|
+
protected readonly searchField: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
668
|
+
protected readonly query: import("@angular/core").WritableSignal<string>;
|
|
669
|
+
protected readonly collapsedGroups: import("@angular/core").WritableSignal<string[]>;
|
|
670
|
+
protected readonly isFiltering: import("@angular/core").Signal<boolean>;
|
|
671
|
+
/** The model the template renders: filtered by the query, sections kept only when something matches. */
|
|
672
|
+
protected readonly visibleModel: import("@angular/core").Signal<HelixNavGroup[]>;
|
|
673
|
+
protected isGroupCollapsed(group: HelixNavGroup): boolean;
|
|
674
|
+
protected toggleGroup(group: HelixNavGroup): void;
|
|
675
|
+
protected onSearchInput(event: Event): void;
|
|
676
|
+
/** Enter opens the first match, ArrowDown moves into the list, Escape clears the filter. */
|
|
677
|
+
protected onSearchKeydown(event: KeyboardEvent): void;
|
|
678
|
+
protected onDocumentKeydown(event: KeyboardEvent): void;
|
|
667
679
|
private outsideClickListener;
|
|
668
680
|
private destroy$;
|
|
669
681
|
constructor();
|
|
@@ -746,6 +758,8 @@ export declare class HelixNavRailItem implements AfterViewInit {
|
|
|
746
758
|
depth: import("@angular/core").InputSignal<number>;
|
|
747
759
|
/** Renders inside a collapsed-rail flyout: always expanded (labels visible), never itself a flyout. */
|
|
748
760
|
flyout: import("@angular/core").InputSignal<boolean>;
|
|
761
|
+
/** Shows the children of every expandable item (while the rail is filtered). */
|
|
762
|
+
expandAll: import("@angular/core").InputSignal<boolean>;
|
|
749
763
|
/** Whether this item's submenu, having animated open at least once, may transition on leave too. */
|
|
750
764
|
initialized: import("@angular/core").WritableSignal<boolean>;
|
|
751
765
|
hasChildren: import("@angular/core").Signal<boolean>;
|
|
@@ -791,6 +805,11 @@ export declare class HelixNavRailItem implements AfterViewInit {
|
|
|
791
805
|
"required": false;
|
|
792
806
|
"isSignal": true;
|
|
793
807
|
};
|
|
808
|
+
"expandAll": {
|
|
809
|
+
"alias": "expandAll";
|
|
810
|
+
"required": false;
|
|
811
|
+
"isSignal": true;
|
|
812
|
+
};
|
|
794
813
|
}, {}, never, never, true, never>;
|
|
795
814
|
}
|
|
796
815
|
export declare class HelixStatusBar {
|
|
@@ -913,7 +932,7 @@ export declare class HelixMobileMenuAction {
|
|
|
913
932
|
export declare class HelixTopbar implements OnInit, OnDestroy {
|
|
914
933
|
appTitle: import("@angular/core").InputSignal<string>;
|
|
915
934
|
topbarActions: import("@angular/core").InputSignal<HelixTopbarAction[]>;
|
|
916
|
-
breadcrumbs: import("@angular/core").InputSignal<
|
|
935
|
+
breadcrumbs: import("@angular/core").InputSignal<HxMenuItem[] | undefined>;
|
|
917
936
|
/** Accessible name of the button that opens the actions menu on small screens. */
|
|
918
937
|
menuLabel: import("@angular/core").InputSignal<string>;
|
|
919
938
|
items: import("@angular/core").InputSignal<HelixTopbarItem[]>;
|
|
@@ -970,7 +989,7 @@ export declare class HelixTopbar implements OnInit, OnDestroy {
|
|
|
970
989
|
private routeChange;
|
|
971
990
|
ngOnInit(): void;
|
|
972
991
|
ngOnDestroy(): void;
|
|
973
|
-
protected effectiveBreadcrumbs: import("@angular/core").Signal<
|
|
992
|
+
protected effectiveBreadcrumbs: import("@angular/core").Signal<HxMenuItem[]>;
|
|
974
993
|
protected showBreadcrumbs: import("@angular/core").Signal<boolean>;
|
|
975
994
|
static ɵfac: i0.ɵɵFactoryDeclaration<HelixTopbar, never>;
|
|
976
995
|
static ɵcmp: i0.ɵɵComponentDeclaration<HelixTopbar, "helix-topbar", never, {
|