@gravionlabs/helix-shell 22.1.29 → 22.2.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/README.md
CHANGED
|
@@ -24,7 +24,7 @@ npm install @gravionlabs/helix-shell
|
|
|
24
24
|
### Peer Dependencies
|
|
25
25
|
|
|
26
26
|
`@angular/core >=22`, `@angular/router >=22`, `@ngrx/signals >=21`, `@gravionlabs/helix-ui >=0.1.0` (and its own
|
|
27
|
-
peers, `@angular/cdk` and `@angular/forms`), `primeicons >=7`.
|
|
27
|
+
peers, `@angular/cdk` and `@angular/forms`), `primeicons >=7`.
|
|
28
28
|
|
|
29
29
|
## Setup
|
|
30
30
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, InjectionToken, ViewEncapsulation, afterNextRender, booleanAttribute, computed, effect, forwardRef, inject, input, output, signal, untracked } from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, InjectionToken, ViewEncapsulation, afterNextRender, booleanAttribute, computed, effect, forwardRef, inject, input, output, signal, untracked, viewChild } from "@angular/core";
|
|
3
3
|
import * as i1 from "@angular/common";
|
|
4
4
|
import { CommonModule, DOCUMENT, NgClass, SlicePipe } from "@angular/common";
|
|
5
5
|
import * as i1$1 from "@angular/forms";
|
|
@@ -87,7 +87,7 @@ var HelixFormField = class HelixFormField {
|
|
|
87
87
|
},
|
|
88
88
|
ngImport: i0,
|
|
89
89
|
template: "<div class=\"helix-form-field\">\n @if (showLabel() && label()) {\n <label class=\"helix-form-field__label\">{{ label() }}</label>\n }\n\n <div class=\"helix-form-field__control\">\n <ng-content />\n </div>\n\n @if (showHint()) {\n @if (activeError(); as err) {\n <small class=\"helix-form-field__message helix-form-field__message--error h-error\">{{ err }}</small>\n } @else if (hint()) {\n <small class=\"helix-form-field__message helix-form-field__message--hint\">{{ hint() }}</small>\n }\n }\n</div>\n",
|
|
90
|
-
styles: [".helix-form-field{display:flex;flex-direction:column;gap:.5rem}.helix-form-field__label{font-size:.875rem;font-weight:500;color:var(--h-text-color)}.helix-form-field__control :
|
|
90
|
+
styles: [".helix-form-field{display:flex;flex-direction:column;gap:.5rem}.helix-form-field__label{font-size:.875rem;font-weight:500;color:var(--h-text-color)}.helix-form-field__control ::ng-deep :is(.hx-input,.hx-select,.hx-multi-select,.hx-input-number,.hx-date-picker,.hx-auto-complete,.hx-password){width:100%}.helix-form-field__message{font-size:.75rem}.helix-form-field__message--hint{color:var(--h-text-muted-color)}.helix-form-field__message--error{color:var(--h-red-500)}\n"],
|
|
91
91
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
92
92
|
});
|
|
93
93
|
};
|
|
@@ -103,7 +103,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
103
103
|
standalone: true,
|
|
104
104
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
105
105
|
template: "<div class=\"helix-form-field\">\n @if (showLabel() && label()) {\n <label class=\"helix-form-field__label\">{{ label() }}</label>\n }\n\n <div class=\"helix-form-field__control\">\n <ng-content />\n </div>\n\n @if (showHint()) {\n @if (activeError(); as err) {\n <small class=\"helix-form-field__message helix-form-field__message--error h-error\">{{ err }}</small>\n } @else if (hint()) {\n <small class=\"helix-form-field__message helix-form-field__message--hint\">{{ hint() }}</small>\n }\n }\n</div>\n",
|
|
106
|
-
styles: [".helix-form-field{display:flex;flex-direction:column;gap:.5rem}.helix-form-field__label{font-size:.875rem;font-weight:500;color:var(--h-text-color)}.helix-form-field__control :
|
|
106
|
+
styles: [".helix-form-field{display:flex;flex-direction:column;gap:.5rem}.helix-form-field__label{font-size:.875rem;font-weight:500;color:var(--h-text-color)}.helix-form-field__control ::ng-deep :is(.hx-input,.hx-select,.hx-multi-select,.hx-input-number,.hx-date-picker,.hx-auto-complete,.hx-password){width:100%}.helix-form-field__message{font-size:.75rem}.helix-form-field__message--hint{color:var(--h-text-muted-color)}.helix-form-field__message--error{color:var(--h-red-500)}\n"]
|
|
107
107
|
}]
|
|
108
108
|
}],
|
|
109
109
|
propDecorators: {
|
|
@@ -505,12 +505,19 @@ function isPathActive(activePath, itemPath) {
|
|
|
505
505
|
const next = activePath[itemPath.length];
|
|
506
506
|
return next === void 0 || next === "/" || next === "?" || next === "#" || next === ";";
|
|
507
507
|
}
|
|
508
|
+
function linkTarget(item) {
|
|
509
|
+
const link = item.routerLink;
|
|
510
|
+
if (typeof link === "string") return link.replace(/^\//, "");
|
|
511
|
+
if (Array.isArray(link) && link.length && link.every((part) => typeof part === "string")) return link.join("/").replace(/\/{2,}/g, "/").replace(/^\//, "");
|
|
512
|
+
return null;
|
|
513
|
+
}
|
|
508
514
|
var HelixNavRailItem = class HelixNavRailItem {
|
|
509
515
|
store = inject(LayoutStore);
|
|
510
516
|
item = input(null, ...ngDevMode ? [{ debugName: "item" }] : /* istanbul ignore next */ []);
|
|
511
517
|
parentPath = input(null, ...ngDevMode ? [{ debugName: "parentPath" }] : /* istanbul ignore next */ []);
|
|
512
518
|
depth = input(0, ...ngDevMode ? [{ debugName: "depth" }] : /* istanbul ignore next */ []);
|
|
513
519
|
flyout = input(false, ...ngDevMode ? [{ debugName: "flyout" }] : /* istanbul ignore next */ []);
|
|
520
|
+
expandAll = input(false, ...ngDevMode ? [{ debugName: "expandAll" }] : /* istanbul ignore next */ []);
|
|
514
521
|
initialized = signal(false, ...ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []);
|
|
515
522
|
hasChildren = computed(() => !!this.item()?.items?.length, ...ngDevMode ? [{ debugName: "hasChildren" }] : /* istanbul ignore next */ []);
|
|
516
523
|
isCollapsed = computed(() => this.store.isCollapsed() && !this.flyout(), ...ngDevMode ? [{ debugName: "isCollapsed" }] : /* istanbul ignore next */ []);
|
|
@@ -541,7 +548,10 @@ var HelixNavRailItem = class HelixNavRailItem {
|
|
|
541
548
|
isActive = computed(() => {
|
|
542
549
|
if (this.hasChildren()) return false;
|
|
543
550
|
if (this.item()?.path == null) return false;
|
|
544
|
-
|
|
551
|
+
const normalizedPath = this.store.activePath()?.replace(/^\//, "") ?? "";
|
|
552
|
+
const normalizedFull = (this.fullPath() ?? "").replace(/^\//, "");
|
|
553
|
+
const target = linkTarget(this.item());
|
|
554
|
+
return isPathActive(normalizedPath, normalizedFull) || target !== null && isPathActive(normalizedPath, target);
|
|
545
555
|
}, ...ngDevMode ? [{ debugName: "isActive" }] : /* istanbul ignore next */ []);
|
|
546
556
|
hasActiveDescendant = computed(() => {
|
|
547
557
|
const normalized = this.store.activePath()?.replace(/^\//, "") ?? "";
|
|
@@ -550,12 +560,14 @@ var HelixNavRailItem = class HelixNavRailItem {
|
|
|
550
560
|
const parentFullPath = (this.fullPath() ?? "").replace(/^\//, "");
|
|
551
561
|
const match = (list, prefix) => list.some((child) => {
|
|
552
562
|
const childFullPath = child.path ? prefix ? `${prefix}/${child.path.replace(/^\//, "")}` : child.path.replace(/^\//, "") : prefix;
|
|
563
|
+
const childTarget = linkTarget(child);
|
|
553
564
|
if (childFullPath && isPathActive(normalized, childFullPath)) return true;
|
|
565
|
+
if (childTarget && isPathActive(normalized, childTarget)) return true;
|
|
554
566
|
return child.items ? match(child.items, childFullPath) : false;
|
|
555
567
|
});
|
|
556
568
|
return match(items, parentFullPath);
|
|
557
569
|
}, ...ngDevMode ? [{ debugName: "hasActiveDescendant" }] : /* istanbul ignore next */ []);
|
|
558
|
-
isExpanded = computed(() => this.store.expandedKeys().includes(this.itemKey()), ...ngDevMode ? [{ debugName: "isExpanded" }] : /* istanbul ignore next */ []);
|
|
570
|
+
isExpanded = computed(() => this.expandAll() || this.store.expandedKeys().includes(this.itemKey()), ...ngDevMode ? [{ debugName: "isExpanded" }] : /* istanbul ignore next */ []);
|
|
559
571
|
constructor() {
|
|
560
572
|
effect(() => {
|
|
561
573
|
this.store.activePath();
|
|
@@ -697,6 +709,13 @@ var HelixNavRailItem = class HelixNavRailItem {
|
|
|
697
709
|
isSignal: true,
|
|
698
710
|
isRequired: false,
|
|
699
711
|
transformFunction: null
|
|
712
|
+
},
|
|
713
|
+
expandAll: {
|
|
714
|
+
classPropertyName: "expandAll",
|
|
715
|
+
publicName: "expandAll",
|
|
716
|
+
isSignal: true,
|
|
717
|
+
isRequired: false,
|
|
718
|
+
transformFunction: null
|
|
700
719
|
}
|
|
701
720
|
},
|
|
702
721
|
host: {
|
|
@@ -713,8 +732,8 @@ var HelixNavRailItem = class HelixNavRailItem {
|
|
|
713
732
|
}
|
|
714
733
|
},
|
|
715
734
|
ngImport: i0,
|
|
716
|
-
template: "@if (hasChildren()) {\n <a\n class=\"helix-nav-rail-link\"\n [attr.title]=\"isCollapsed() ? null : $safeNavigationMigration(item()?.label)\"\n [attr.aria-expanded]=\"isCollapsed() ? flyoutOpen() : isExpanded()\"\n [attr.aria-haspopup]=\"isCollapsed() ? 'true' : null\"\n role=\"button\"\n (click)=\"itemClick($event)\"\n (keydown)=\"onKeydown($event)\"\n tabindex=\"0\"\n >\n @if (item()?.icon) {\n <i [ngClass]=\"$safeNavigationMigration(item()?.icon)\" class=\"helix-nav-rail-icon\"></i>\n }\n @if (!isCollapsed()) {\n <span class=\"helix-nav-rail-label\">{{ item()?.label }}</span>\n <i\n class=\"pi pi-chevron-right helix-nav-rail-chevron\"\n [class.helix-nav-rail-chevron-open]=\"isExpanded()\"\n ></i>\n }\n </a>\n @if (isCollapsed() && flyoutOpen()) {\n <div class=\"helix-nav-rail-flyout\" [style.top.px]=\"flyoutTop()\" [style.left.px]=\"flyoutLeft()\">\n <div class=\"helix-nav-rail-flyout-title\">{{ item()?.label }}</div>\n <ul class=\"helix-nav-rail-flyout-list\">\n @for (child of item()?.items; track child.label) {\n <li\n helix-nav-rail-item\n [item]=\"child\"\n [parentPath]=\"fullPath()\"\n [depth]=\"0\"\n [flyout]=\"true\"\n ></li>\n }\n </ul>\n </div>\n }\n @if (isExpanded() && !isCollapsed()) {\n <ul\n class=\"helix-nav-rail-sublist\"\n [animate.enter]=\"initialized() ? 'helix-nav-rail-submenu-enter' : null\"\n [animate.leave]=\"'helix-nav-rail-submenu-leave'\"\n >\n @for (child of item()?.items; track child.label) {\n <li
|
|
717
|
-
styles: ["@keyframes helix-nav-rail-submenu-enter{0%{max-height:0;overflow:hidden}to{max-height:1000px;overflow:visible}}@keyframes helix-nav-rail-submenu-leave{0%{max-height:1000px;overflow:hidden}to{max-height:0;overflow:hidden}}.helix-nav-rail-submenu-enter{animation:helix-nav-rail-submenu-enter .45s cubic-bezier(.86,0,.07,1) forwards}.helix-nav-rail-submenu-leave{animation:helix-nav-rail-submenu-leave .45s cubic-bezier(.86,0,.07,1) forwards}.helix-nav-rail-link{position:relative;display:flex;align-items:center;gap:.85rem;padding:.625rem .75rem;margin:1px .65rem;border-radius:var(--content-border-radius);cursor:pointer;text-decoration:none;font-size:.95rem;font-weight:500;white-space:nowrap;outline:0 none;color:var(--helix-nav-text);transition:background-color var(--element-transition-duration),color var(--element-transition-duration)}.helix-nav-rail-link:hover{background-color:var(--helix-nav-hover-bg)}.helix-nav-rail-link.active{color:var(--helix-nav-active-text);background-color:var(--helix-nav-active-bg)}.helix-nav-rail-link.active .helix-nav-rail-icon{color:var(--helix-nav-accent)}.helix-nav-rail-link:focus{outline
|
|
735
|
+
template: "@if (hasChildren()) {\n <a\n class=\"helix-nav-rail-link\"\n [attr.title]=\"isCollapsed() ? null : $safeNavigationMigration(item()?.label)\"\n [attr.aria-expanded]=\"isCollapsed() ? flyoutOpen() : isExpanded()\"\n [attr.aria-haspopup]=\"isCollapsed() ? 'true' : null\"\n role=\"button\"\n (click)=\"itemClick($event)\"\n (keydown)=\"onKeydown($event)\"\n tabindex=\"0\"\n >\n @if (item()?.icon) {\n <i [ngClass]=\"$safeNavigationMigration(item()?.icon)\" class=\"helix-nav-rail-icon\"></i>\n }\n @if (!isCollapsed()) {\n <span class=\"helix-nav-rail-label\">{{ item()?.label }}</span>\n <i\n class=\"pi pi-chevron-right helix-nav-rail-chevron\"\n [class.helix-nav-rail-chevron-open]=\"isExpanded()\"\n ></i>\n }\n </a>\n @if (isCollapsed() && flyoutOpen()) {\n <div class=\"helix-nav-rail-flyout\" [style.top.px]=\"flyoutTop()\" [style.left.px]=\"flyoutLeft()\">\n <div class=\"helix-nav-rail-flyout-title\">{{ item()?.label }}</div>\n <ul class=\"helix-nav-rail-flyout-list\">\n @for (child of item()?.items; track child.label) {\n <li\n helix-nav-rail-item\n [item]=\"child\"\n [parentPath]=\"fullPath()\"\n [depth]=\"0\"\n [flyout]=\"true\"\n ></li>\n }\n </ul>\n </div>\n }\n @if (isExpanded() && !isCollapsed()) {\n <ul\n class=\"helix-nav-rail-sublist\"\n [animate.enter]=\"initialized() ? 'helix-nav-rail-submenu-enter' : null\"\n [animate.leave]=\"'helix-nav-rail-submenu-leave'\"\n >\n @for (child of item()?.items; track child.label) {\n <li\n helix-nav-rail-item\n [item]=\"child\"\n [parentPath]=\"fullPath()\"\n [depth]=\"depth() + 1\"\n [expandAll]=\"expandAll()\"\n ></li>\n }\n </ul>\n }\n} @else {\n <a\n class=\"helix-nav-rail-link\"\n [class.active]=\"isActive()\"\n [attr.aria-current]=\"isActive() ? 'page' : null\"\n [attr.title]=\"isCollapsed() ? null : $safeNavigationMigration(item()?.label)\"\n [hx-tooltip]=\"$safeNavigationMigration(item()?.label)\"\n [hxTooltipDisabled]=\"!isCollapsed()\"\n hxTooltipPosition=\"right\"\n [routerLink]=\"$safeNavigationMigration(item()?.routerLink)\"\n (click)=\"itemClick($event)\"\n (keydown)=\"onKeydown($event)\"\n tabindex=\"0\"\n >\n @if (isActive()) {\n <span class=\"helix-nav-rail-accent\"></span>\n }\n @if (item()?.icon) {\n <i [ngClass]=\"$safeNavigationMigration(item()?.icon)\" class=\"helix-nav-rail-icon\"></i>\n }\n @if (!isCollapsed()) {\n <span class=\"helix-nav-rail-label\">{{ item()?.label }}</span>\n }\n </a>\n}\n",
|
|
736
|
+
styles: ["@keyframes helix-nav-rail-submenu-enter{0%{max-height:0;overflow:hidden}to{max-height:1000px;overflow:visible}}@keyframes helix-nav-rail-submenu-leave{0%{max-height:1000px;overflow:hidden}to{max-height:0;overflow:hidden}}.helix-nav-rail-submenu-enter{animation:helix-nav-rail-submenu-enter .45s cubic-bezier(.86,0,.07,1) forwards}.helix-nav-rail-submenu-leave{animation:helix-nav-rail-submenu-leave .45s cubic-bezier(.86,0,.07,1) forwards}.helix-nav-rail-link{position:relative;display:flex;align-items:center;gap:.85rem;padding:.625rem .75rem;margin:1px .65rem;border-radius:var(--content-border-radius);cursor:pointer;text-decoration:none;font-size:.95rem;font-weight:500;white-space:nowrap;outline:0 none;color:var(--helix-nav-text);transition:background-color var(--element-transition-duration),color var(--element-transition-duration)}.helix-nav-rail-link:hover{background-color:var(--helix-nav-hover-bg)}.helix-nav-rail-link.active{color:var(--helix-nav-active-text);background-color:var(--helix-nav-active-bg);font-weight:600}.helix-nav-rail-link.active .helix-nav-rail-icon{color:var(--helix-nav-accent)}.helix-nav-rail-link:focus-visible{outline:2px solid var(--primary-color);outline-offset:-2px}.helix-nav-rail-accent{position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:60%;border-radius:0 3px 3px 0;background:var(--helix-nav-accent)}.helix-nav-rail-icon{flex:0 0 auto;font-size:1.15rem;transition:color var(--element-transition-duration)}.helix-nav-rail-label{overflow:hidden;text-overflow:ellipsis}.helix-nav-rail-chevron{margin-left:auto;font-size:.7rem;transition:transform var(--element-transition-duration)}.helix-nav-rail-chevron.helix-nav-rail-chevron-open{transform:rotate(90deg)}.helix-nav-rail-sublist{margin:0;padding:0;list-style-type:none;overflow:hidden;margin-left:1.5rem;border-left:1px solid var(--helix-nav-border)}.helix-nav-rail-sublist .helix-nav-rail-link{margin-left:.4rem;padding-block:.45rem;font-size:.9rem}:host(.helix-nav-rail-item-collapsed)>.helix-nav-rail-link{justify-content:center}.helix-nav-rail-flyout{position:fixed;z-index:1000;min-width:13rem;max-width:18rem;max-height:calc(100vh - 1rem);overflow-y:auto;padding:.35rem 0;border:1px solid var(--helix-nav-border);border-radius:var(--content-border-radius);background:var(--helix-surface-overlay, var(--helix-surface-chrome));box-shadow:0 8px 24px #00000029}.helix-nav-rail-flyout-title{padding:.5rem 1.15rem .3rem;font-size:.66rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--helix-nav-text-muted)}.helix-nav-rail-flyout-list{margin:0;padding:0;list-style-type:none}\n"],
|
|
718
737
|
dependencies: [
|
|
719
738
|
{
|
|
720
739
|
kind: "component",
|
|
@@ -724,7 +743,8 @@ var HelixNavRailItem = class HelixNavRailItem {
|
|
|
724
743
|
"item",
|
|
725
744
|
"parentPath",
|
|
726
745
|
"depth",
|
|
727
|
-
"flyout"
|
|
746
|
+
"flyout",
|
|
747
|
+
"expandAll"
|
|
728
748
|
]
|
|
729
749
|
},
|
|
730
750
|
{
|
|
@@ -801,8 +821,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
801
821
|
"(focusout)": "onFocusOut($event)",
|
|
802
822
|
"(keydown.escape)": "closeFlyout(true)"
|
|
803
823
|
},
|
|
804
|
-
template: "@if (hasChildren()) {\n <a\n class=\"helix-nav-rail-link\"\n [attr.title]=\"isCollapsed() ? null : $safeNavigationMigration(item()?.label)\"\n [attr.aria-expanded]=\"isCollapsed() ? flyoutOpen() : isExpanded()\"\n [attr.aria-haspopup]=\"isCollapsed() ? 'true' : null\"\n role=\"button\"\n (click)=\"itemClick($event)\"\n (keydown)=\"onKeydown($event)\"\n tabindex=\"0\"\n >\n @if (item()?.icon) {\n <i [ngClass]=\"$safeNavigationMigration(item()?.icon)\" class=\"helix-nav-rail-icon\"></i>\n }\n @if (!isCollapsed()) {\n <span class=\"helix-nav-rail-label\">{{ item()?.label }}</span>\n <i\n class=\"pi pi-chevron-right helix-nav-rail-chevron\"\n [class.helix-nav-rail-chevron-open]=\"isExpanded()\"\n ></i>\n }\n </a>\n @if (isCollapsed() && flyoutOpen()) {\n <div class=\"helix-nav-rail-flyout\" [style.top.px]=\"flyoutTop()\" [style.left.px]=\"flyoutLeft()\">\n <div class=\"helix-nav-rail-flyout-title\">{{ item()?.label }}</div>\n <ul class=\"helix-nav-rail-flyout-list\">\n @for (child of item()?.items; track child.label) {\n <li\n helix-nav-rail-item\n [item]=\"child\"\n [parentPath]=\"fullPath()\"\n [depth]=\"0\"\n [flyout]=\"true\"\n ></li>\n }\n </ul>\n </div>\n }\n @if (isExpanded() && !isCollapsed()) {\n <ul\n class=\"helix-nav-rail-sublist\"\n [animate.enter]=\"initialized() ? 'helix-nav-rail-submenu-enter' : null\"\n [animate.leave]=\"'helix-nav-rail-submenu-leave'\"\n >\n @for (child of item()?.items; track child.label) {\n <li
|
|
805
|
-
styles: ["@keyframes helix-nav-rail-submenu-enter{0%{max-height:0;overflow:hidden}to{max-height:1000px;overflow:visible}}@keyframes helix-nav-rail-submenu-leave{0%{max-height:1000px;overflow:hidden}to{max-height:0;overflow:hidden}}.helix-nav-rail-submenu-enter{animation:helix-nav-rail-submenu-enter .45s cubic-bezier(.86,0,.07,1) forwards}.helix-nav-rail-submenu-leave{animation:helix-nav-rail-submenu-leave .45s cubic-bezier(.86,0,.07,1) forwards}.helix-nav-rail-link{position:relative;display:flex;align-items:center;gap:.85rem;padding:.625rem .75rem;margin:1px .65rem;border-radius:var(--content-border-radius);cursor:pointer;text-decoration:none;font-size:.95rem;font-weight:500;white-space:nowrap;outline:0 none;color:var(--helix-nav-text);transition:background-color var(--element-transition-duration),color var(--element-transition-duration)}.helix-nav-rail-link:hover{background-color:var(--helix-nav-hover-bg)}.helix-nav-rail-link.active{color:var(--helix-nav-active-text);background-color:var(--helix-nav-active-bg)}.helix-nav-rail-link.active .helix-nav-rail-icon{color:var(--helix-nav-accent)}.helix-nav-rail-link:focus{outline
|
|
824
|
+
template: "@if (hasChildren()) {\n <a\n class=\"helix-nav-rail-link\"\n [attr.title]=\"isCollapsed() ? null : $safeNavigationMigration(item()?.label)\"\n [attr.aria-expanded]=\"isCollapsed() ? flyoutOpen() : isExpanded()\"\n [attr.aria-haspopup]=\"isCollapsed() ? 'true' : null\"\n role=\"button\"\n (click)=\"itemClick($event)\"\n (keydown)=\"onKeydown($event)\"\n tabindex=\"0\"\n >\n @if (item()?.icon) {\n <i [ngClass]=\"$safeNavigationMigration(item()?.icon)\" class=\"helix-nav-rail-icon\"></i>\n }\n @if (!isCollapsed()) {\n <span class=\"helix-nav-rail-label\">{{ item()?.label }}</span>\n <i\n class=\"pi pi-chevron-right helix-nav-rail-chevron\"\n [class.helix-nav-rail-chevron-open]=\"isExpanded()\"\n ></i>\n }\n </a>\n @if (isCollapsed() && flyoutOpen()) {\n <div class=\"helix-nav-rail-flyout\" [style.top.px]=\"flyoutTop()\" [style.left.px]=\"flyoutLeft()\">\n <div class=\"helix-nav-rail-flyout-title\">{{ item()?.label }}</div>\n <ul class=\"helix-nav-rail-flyout-list\">\n @for (child of item()?.items; track child.label) {\n <li\n helix-nav-rail-item\n [item]=\"child\"\n [parentPath]=\"fullPath()\"\n [depth]=\"0\"\n [flyout]=\"true\"\n ></li>\n }\n </ul>\n </div>\n }\n @if (isExpanded() && !isCollapsed()) {\n <ul\n class=\"helix-nav-rail-sublist\"\n [animate.enter]=\"initialized() ? 'helix-nav-rail-submenu-enter' : null\"\n [animate.leave]=\"'helix-nav-rail-submenu-leave'\"\n >\n @for (child of item()?.items; track child.label) {\n <li\n helix-nav-rail-item\n [item]=\"child\"\n [parentPath]=\"fullPath()\"\n [depth]=\"depth() + 1\"\n [expandAll]=\"expandAll()\"\n ></li>\n }\n </ul>\n }\n} @else {\n <a\n class=\"helix-nav-rail-link\"\n [class.active]=\"isActive()\"\n [attr.aria-current]=\"isActive() ? 'page' : null\"\n [attr.title]=\"isCollapsed() ? null : $safeNavigationMigration(item()?.label)\"\n [hx-tooltip]=\"$safeNavigationMigration(item()?.label)\"\n [hxTooltipDisabled]=\"!isCollapsed()\"\n hxTooltipPosition=\"right\"\n [routerLink]=\"$safeNavigationMigration(item()?.routerLink)\"\n (click)=\"itemClick($event)\"\n (keydown)=\"onKeydown($event)\"\n tabindex=\"0\"\n >\n @if (isActive()) {\n <span class=\"helix-nav-rail-accent\"></span>\n }\n @if (item()?.icon) {\n <i [ngClass]=\"$safeNavigationMigration(item()?.icon)\" class=\"helix-nav-rail-icon\"></i>\n }\n @if (!isCollapsed()) {\n <span class=\"helix-nav-rail-label\">{{ item()?.label }}</span>\n }\n </a>\n}\n",
|
|
825
|
+
styles: ["@keyframes helix-nav-rail-submenu-enter{0%{max-height:0;overflow:hidden}to{max-height:1000px;overflow:visible}}@keyframes helix-nav-rail-submenu-leave{0%{max-height:1000px;overflow:hidden}to{max-height:0;overflow:hidden}}.helix-nav-rail-submenu-enter{animation:helix-nav-rail-submenu-enter .45s cubic-bezier(.86,0,.07,1) forwards}.helix-nav-rail-submenu-leave{animation:helix-nav-rail-submenu-leave .45s cubic-bezier(.86,0,.07,1) forwards}.helix-nav-rail-link{position:relative;display:flex;align-items:center;gap:.85rem;padding:.625rem .75rem;margin:1px .65rem;border-radius:var(--content-border-radius);cursor:pointer;text-decoration:none;font-size:.95rem;font-weight:500;white-space:nowrap;outline:0 none;color:var(--helix-nav-text);transition:background-color var(--element-transition-duration),color var(--element-transition-duration)}.helix-nav-rail-link:hover{background-color:var(--helix-nav-hover-bg)}.helix-nav-rail-link.active{color:var(--helix-nav-active-text);background-color:var(--helix-nav-active-bg);font-weight:600}.helix-nav-rail-link.active .helix-nav-rail-icon{color:var(--helix-nav-accent)}.helix-nav-rail-link:focus-visible{outline:2px solid var(--primary-color);outline-offset:-2px}.helix-nav-rail-accent{position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:60%;border-radius:0 3px 3px 0;background:var(--helix-nav-accent)}.helix-nav-rail-icon{flex:0 0 auto;font-size:1.15rem;transition:color var(--element-transition-duration)}.helix-nav-rail-label{overflow:hidden;text-overflow:ellipsis}.helix-nav-rail-chevron{margin-left:auto;font-size:.7rem;transition:transform var(--element-transition-duration)}.helix-nav-rail-chevron.helix-nav-rail-chevron-open{transform:rotate(90deg)}.helix-nav-rail-sublist{margin:0;padding:0;list-style-type:none;overflow:hidden;margin-left:1.5rem;border-left:1px solid var(--helix-nav-border)}.helix-nav-rail-sublist .helix-nav-rail-link{margin-left:.4rem;padding-block:.45rem;font-size:.9rem}:host(.helix-nav-rail-item-collapsed)>.helix-nav-rail-link{justify-content:center}.helix-nav-rail-flyout{position:fixed;z-index:1000;min-width:13rem;max-width:18rem;max-height:calc(100vh - 1rem);overflow-y:auto;padding:.35rem 0;border:1px solid var(--helix-nav-border);border-radius:var(--content-border-radius);background:var(--helix-surface-overlay, var(--helix-surface-chrome));box-shadow:0 8px 24px #00000029}.helix-nav-rail-flyout-title{padding:.5rem 1.15rem .3rem;font-size:.66rem;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--helix-nav-text-muted)}.helix-nav-rail-flyout-list{margin:0;padding:0;list-style-type:none}\n"]
|
|
806
826
|
}]
|
|
807
827
|
}],
|
|
808
828
|
ctorParameters: () => [],
|
|
@@ -838,9 +858,38 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
838
858
|
alias: "flyout",
|
|
839
859
|
required: false
|
|
840
860
|
}]
|
|
861
|
+
}],
|
|
862
|
+
expandAll: [{
|
|
863
|
+
type: i0.Input,
|
|
864
|
+
args: [{
|
|
865
|
+
isSignal: true,
|
|
866
|
+
alias: "expandAll",
|
|
867
|
+
required: false
|
|
868
|
+
}]
|
|
841
869
|
}]
|
|
842
870
|
}
|
|
843
871
|
});
|
|
872
|
+
const GROUPS_STORAGE_KEY = "helix.nav-rail.collapsed-groups";
|
|
873
|
+
function readCollapsedGroups() {
|
|
874
|
+
try {
|
|
875
|
+
const raw = JSON.parse(localStorage.getItem(GROUPS_STORAGE_KEY) ?? "[]");
|
|
876
|
+
return Array.isArray(raw) ? raw.filter((x) => typeof x === "string") : [];
|
|
877
|
+
} catch {
|
|
878
|
+
return [];
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
function filterItems(items, query) {
|
|
882
|
+
const result = [];
|
|
883
|
+
for (const item of items) if (item.label?.toLowerCase().includes(query)) result.push(item);
|
|
884
|
+
else if (item.items?.length) {
|
|
885
|
+
const children = filterItems(item.items, query);
|
|
886
|
+
if (children.length) result.push({
|
|
887
|
+
...item,
|
|
888
|
+
items: children
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
return result;
|
|
892
|
+
}
|
|
844
893
|
var HelixNavRail = class HelixNavRail {
|
|
845
894
|
store = inject(LayoutStore);
|
|
846
895
|
router = inject(Router);
|
|
@@ -856,6 +905,51 @@ var HelixNavRail = class HelixNavRail {
|
|
|
856
905
|
if (this.isInlineSvg()) return this.sanitizer.bypassSecurityTrustHtml(icon);
|
|
857
906
|
return icon;
|
|
858
907
|
}, ...ngDevMode ? [{ debugName: "safeBrandIcon" }] : /* istanbul ignore next */ []);
|
|
908
|
+
searchField = viewChild("search", ...ngDevMode ? [{ debugName: "searchField" }] : /* istanbul ignore next */ []);
|
|
909
|
+
query = signal("", ...ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []);
|
|
910
|
+
collapsedGroups = signal(readCollapsedGroups(), ...ngDevMode ? [{ debugName: "collapsedGroups" }] : /* istanbul ignore next */ []);
|
|
911
|
+
isFiltering = computed(() => this.query().trim().length > 0, ...ngDevMode ? [{ debugName: "isFiltering" }] : /* istanbul ignore next */ []);
|
|
912
|
+
visibleModel = computed(() => {
|
|
913
|
+
const query = this.query().trim().toLowerCase();
|
|
914
|
+
if (!query) return this.model();
|
|
915
|
+
return this.model().map((group) => ({
|
|
916
|
+
...group,
|
|
917
|
+
items: filterItems(group.items, query)
|
|
918
|
+
})).filter((group) => group.items.length > 0);
|
|
919
|
+
}, ...ngDevMode ? [{ debugName: "visibleModel" }] : /* istanbul ignore next */ []);
|
|
920
|
+
isGroupCollapsed(group) {
|
|
921
|
+
return !!group.section && !this.isFiltering() && this.collapsedGroups().includes(group.section);
|
|
922
|
+
}
|
|
923
|
+
toggleGroup(group) {
|
|
924
|
+
const name = group.section;
|
|
925
|
+
if (!name) return;
|
|
926
|
+
const current = this.collapsedGroups();
|
|
927
|
+
const next = current.includes(name) ? current.filter((n) => n !== name) : [...current, name];
|
|
928
|
+
this.collapsedGroups.set(next);
|
|
929
|
+
try {
|
|
930
|
+
localStorage.setItem(GROUPS_STORAGE_KEY, JSON.stringify(next));
|
|
931
|
+
} catch {}
|
|
932
|
+
}
|
|
933
|
+
onSearchInput(event) {
|
|
934
|
+
this.query.set(event.target.value);
|
|
935
|
+
}
|
|
936
|
+
onSearchKeydown(event) {
|
|
937
|
+
const first = () => this.el.nativeElement.querySelector(".helix-nav-rail-nav .helix-nav-rail-link");
|
|
938
|
+
if (event.key === "Enter") {
|
|
939
|
+
event.preventDefault();
|
|
940
|
+
first()?.click();
|
|
941
|
+
} else if (event.key === "ArrowDown") {
|
|
942
|
+
event.preventDefault();
|
|
943
|
+
first()?.focus();
|
|
944
|
+
} else if (event.key === "Escape") this.query.set("");
|
|
945
|
+
}
|
|
946
|
+
onDocumentKeydown(event) {
|
|
947
|
+
if (event.key.toLowerCase() !== "k" || !(event.ctrlKey || event.metaKey)) return;
|
|
948
|
+
event.preventDefault();
|
|
949
|
+
if (!this.store.isDesktop() && !this.store.mobileMenuActive()) this.store.onMenuToggle();
|
|
950
|
+
if (this.store.isCollapsed()) this.store.toggleSidebar();
|
|
951
|
+
setTimeout(() => this.searchField()?.nativeElement.focus());
|
|
952
|
+
}
|
|
859
953
|
outsideClickListener = null;
|
|
860
954
|
destroy$ = new Subject();
|
|
861
955
|
constructor() {
|
|
@@ -938,9 +1032,17 @@ var HelixNavRail = class HelixNavRail {
|
|
|
938
1032
|
transformFunction: null
|
|
939
1033
|
}
|
|
940
1034
|
},
|
|
1035
|
+
host: { listeners: { "document:keydown": "onDocumentKeydown($event)" } },
|
|
1036
|
+
viewQueries: [{
|
|
1037
|
+
propertyName: "searchField",
|
|
1038
|
+
first: true,
|
|
1039
|
+
predicate: ["search"],
|
|
1040
|
+
descendants: true,
|
|
1041
|
+
isSignal: true
|
|
1042
|
+
}],
|
|
941
1043
|
ngImport: i0,
|
|
942
|
-
template: "<aside class=\"helix-nav-rail\" [class.helix-nav-rail-collapsed]=\"store.isCollapsed()\">\n <div class=\"helix-nav-rail-brand\">\n <a routerLink=\"/\">\n @if (brandIcon(); as icon) {\n @if (isInlineSvg()) {\n <span [innerHTML]=\"safeBrandIcon()\"></span>\n } @else {\n <img [src]=\"icon\" alt=\"\" width=\"24\" height=\"24\" />\n }\n } @else {\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"var(--primary-color)\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"m10 16 1.5 1.5\" />\n <path d=\"m14 8-1.5-1.5\" />\n <path d=\"M15 2c-1.798 1.998-2.518 3.995-2.807 5.993\" />\n <path d=\"m16.5 10.5 1 1\" />\n <path d=\"m17 6-2.891-2.891\" />\n <path d=\"M2 15c6.667-6 13.333 0 20-6\" />\n <path d=\"m20 9 .891.891\" />\n <path d=\"M3.109 14.109 4 15\" />\n <path d=\"m6.5 12.5 1 1\" />\n <path d=\"m7 18 2.891 2.891\" />\n <path d=\"M9 22c1.798-1.998 2.518-3.995 2.807-5.993\" />\n </svg>\n }\n @if (!store.isCollapsed()) {\n <span class=\"helix-nav-rail-brand-text\">\n <span>{{ appTitle() }}</span>\n </span>\n }\n </a>\n </div>\n\n <nav class=\"helix-nav-rail-nav\">\n @for (group of
|
|
943
|
-
styles: [":host{--helix-nav-text: var(--text-color);--helix-nav-text-muted: var(--text-color-secondary);--helix-nav-hover-bg: var(--helix-surface-hover);--helix-nav-active-bg: var(--
|
|
1044
|
+
template: "<aside class=\"helix-nav-rail\" [class.helix-nav-rail-collapsed]=\"store.isCollapsed()\">\n <div class=\"helix-nav-rail-brand\">\n <a routerLink=\"/\">\n @if (brandIcon(); as icon) {\n @if (isInlineSvg()) {\n <span [innerHTML]=\"safeBrandIcon()\"></span>\n } @else {\n <img [src]=\"icon\" alt=\"\" width=\"24\" height=\"24\" />\n }\n } @else {\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"var(--primary-color)\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"m10 16 1.5 1.5\" />\n <path d=\"m14 8-1.5-1.5\" />\n <path d=\"M15 2c-1.798 1.998-2.518 3.995-2.807 5.993\" />\n <path d=\"m16.5 10.5 1 1\" />\n <path d=\"m17 6-2.891-2.891\" />\n <path d=\"M2 15c6.667-6 13.333 0 20-6\" />\n <path d=\"m20 9 .891.891\" />\n <path d=\"M3.109 14.109 4 15\" />\n <path d=\"m6.5 12.5 1 1\" />\n <path d=\"m7 18 2.891 2.891\" />\n <path d=\"M9 22c1.798-1.998 2.518-3.995 2.807-5.993\" />\n </svg>\n }\n @if (!store.isCollapsed()) {\n <span class=\"helix-nav-rail-brand-text\">\n <span>{{ appTitle() }}</span>\n </span>\n }\n </a>\n </div>\n\n @if (!store.isCollapsed()) {\n <div class=\"helix-nav-rail-search\">\n <i class=\"pi pi-search\" aria-hidden=\"true\"></i>\n <input\n #search\n type=\"search\"\n autocomplete=\"off\"\n placeholder=\"Search\"\n aria-label=\"Filter navigation\"\n [value]=\"query()\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onSearchKeydown($event)\"\n />\n <kbd aria-hidden=\"true\">Ctrl K</kbd>\n </div>\n }\n\n <nav class=\"helix-nav-rail-nav\" aria-label=\"Main\">\n @for (group of visibleModel(); track group.section ?? $index) {\n <div class=\"helix-nav-rail-group\">\n @if (group.section && !store.isCollapsed()) {\n <button\n type=\"button\"\n class=\"helix-nav-rail-section\"\n [attr.aria-expanded]=\"!isGroupCollapsed(group)\"\n (click)=\"toggleGroup(group)\"\n >\n <span>{{ group.section }}</span>\n <i\n class=\"pi pi-chevron-down helix-nav-rail-section-chevron\"\n [class.helix-nav-rail-section-chevron-closed]=\"isGroupCollapsed(group)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n }\n @if (group.section && store.isCollapsed() && $index > 0) {\n <div class=\"helix-nav-rail-divider\"></div>\n }\n <ul class=\"helix-nav-rail-list\" [hidden]=\"isGroupCollapsed(group)\">\n @if (store.isCollapsed() && group.section && group.icon) {\n <li\n helix-nav-rail-item\n [item]=\"{ label: group.section, icon: group.icon, items: group.items }\"\n [parentPath]=\"null\"\n [depth]=\"0\"\n ></li>\n } @else {\n @for (item of group.items; track item.label) {\n <li\n helix-nav-rail-item\n [item]=\"item\"\n [parentPath]=\"null\"\n [depth]=\"0\"\n [expandAll]=\"isFiltering()\"\n ></li>\n }\n }\n </ul>\n </div>\n }\n </nav>\n\n <div class=\"helix-nav-rail-footer\">\n <button\n type=\"button\"\n class=\"helix-nav-rail-collapse-button\"\n (click)=\"store.toggleSidebar()\"\n [hx-tooltip]=\"store.isCollapsed() ? 'Expand navigation' : 'Collapse navigation'\"\n hxTooltipPosition=\"top\"\n [attr.aria-label]=\"store.isCollapsed() ? 'Expand navigation' : 'Collapse navigation'\"\n [attr.aria-expanded]=\"!store.isCollapsed()\"\n >\n <i\n class=\"pi\"\n [ngClass]=\"{\n 'pi-angle-double-left': !store.isCollapsed(),\n 'pi-angle-double-right': store.isCollapsed(),\n }\"\n ></i>\n </button>\n </div>\n</aside>\n",
|
|
1045
|
+
styles: [":host{--helix-nav-text: var(--text-color);--helix-nav-text-muted: var(--text-color-secondary);--helix-nav-hover-bg: var(--helix-surface-hover);--helix-nav-active-bg: color-mix(in srgb, var(--primary-color) 12%, transparent);--helix-nav-active-text: var(--text-color);--helix-nav-accent: var(--primary-color);--helix-nav-border: var(--helix-border);display:contents}.helix-nav-rail{display:flex;flex-direction:column;position:fixed;top:0;bottom:0;left:0;width:var(--helix-nav-width, 17rem);z-index:999;overflow:hidden;-webkit-user-select:none;user-select:none;background:var(--helix-surface-chrome);color:var(--helix-nav-text);border-right:1px solid var(--helix-nav-border);transition:width var(--layout-section-transition-duration)}.helix-nav-rail.helix-nav-rail-collapsed{width:var(--helix-nav-width-collapsed, 4.75rem)}.helix-nav-rail-brand{flex:0 0 auto;height:var(--helix-topbar-height, 4rem);display:flex;align-items:center;padding:0 1.25rem;gap:.65rem;overflow:hidden}.helix-nav-rail-brand a{display:flex;align-items:center;gap:.65rem;color:var(--text-color);font-size:1.15rem;font-weight:600;white-space:nowrap;text-decoration:none;min-width:0}.helix-nav-rail-brand a:hover{color:var(--text-color)}.helix-nav-rail-brand svg{flex-shrink:0;width:1.75rem;height:1.75rem}.helix-nav-rail-brand .helix-nav-rail-brand-text{display:flex;align-items:center;gap:.5rem;overflow:hidden;min-width:0}.helix-nav-rail-collapsed .helix-nav-rail-brand{justify-content:center;padding:0}.helix-nav-rail-collapsed .helix-nav-rail-brand a{gap:0}.helix-nav-rail-nav{flex:1;overflow-y:auto;overflow-x:hidden;padding:.85rem .65rem}.helix-nav-rail-group{margin-bottom:1.35rem}.helix-nav-rail-section{display:flex;align-items:center;justify-content:space-between;width:100%;margin:0;padding:.5rem .75rem .4rem;border:0;background:none;font:inherit;font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;text-align:left;color:var(--helix-nav-text-muted);cursor:pointer;border-radius:var(--content-border-radius);outline:0 none}.helix-nav-rail-section:hover{color:var(--helix-nav-text)}.helix-nav-rail-section:focus-visible{outline:2px solid var(--primary-color);outline-offset:-2px}.helix-nav-rail-section-chevron{font-size:.65rem;transition:transform var(--element-transition-duration)}.helix-nav-rail-section-chevron.helix-nav-rail-section-chevron-closed{transform:rotate(-90deg)}.helix-nav-rail-search{position:relative;flex:0 0 auto;display:flex;align-items:center;margin:.75rem .65rem 0;padding:0 .6rem;gap:.5rem;height:2.25rem;border-radius:var(--content-border-radius);border:1px solid var(--helix-nav-border);background:var(--helix-surface-ground, transparent);color:var(--helix-nav-text-muted)}.helix-nav-rail-search:focus-within{border-color:var(--primary-color);outline:2px solid color-mix(in srgb,var(--primary-color) 35%,transparent)}.helix-nav-rail-search input{flex:1 1 auto;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:.9rem;color:var(--helix-nav-text)}.helix-nav-rail-search input::placeholder{color:var(--helix-nav-text-muted)}.helix-nav-rail-search kbd{font:inherit;font-size:.68rem;padding:.1rem .35rem;border-radius:4px;border:1px solid var(--helix-nav-border);color:var(--helix-nav-text-muted);white-space:nowrap}.helix-nav-rail-search:focus-within kbd{display:none}.helix-nav-rail-divider{height:1px;background:var(--helix-nav-border);margin:.5rem}.helix-nav-rail-list{margin:0;padding:0;list-style-type:none}.helix-nav-rail-footer{flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;height:var(--helix-status-bar-height, 3rem);padding-right:1.25rem}.helix-nav-rail-collapsed .helix-nav-rail-footer{justify-content:center;padding-right:0}.helix-nav-rail-collapse-button{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;padding:0;border:none;border-radius:50%;background-color:transparent;color:var(--helix-nav-text-muted);cursor:pointer;transition:background-color var(--element-transition-duration),color var(--element-transition-duration)}.helix-nav-rail-collapse-button:hover{background-color:var(--helix-surface-hover);color:var(--helix-nav-text)}.helix-nav-rail-collapse-button:focus-visible{outline:2px solid var(--primary-color);outline-offset:-2px}@media(max-width:991px){.helix-nav-rail-footer{display:none}}\n"],
|
|
944
1046
|
dependencies: [
|
|
945
1047
|
{
|
|
946
1048
|
kind: "ngmodule",
|
|
@@ -960,7 +1062,20 @@ var HelixNavRail = class HelixNavRail {
|
|
|
960
1062
|
"item",
|
|
961
1063
|
"parentPath",
|
|
962
1064
|
"depth",
|
|
963
|
-
"flyout"
|
|
1065
|
+
"flyout",
|
|
1066
|
+
"expandAll"
|
|
1067
|
+
]
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
kind: "directive",
|
|
1071
|
+
type: HxTooltip,
|
|
1072
|
+
selector: "[hx-tooltip]",
|
|
1073
|
+
inputs: [
|
|
1074
|
+
"hx-tooltip",
|
|
1075
|
+
"hxTooltipPosition",
|
|
1076
|
+
"hxTooltipEvent",
|
|
1077
|
+
"hxTooltipDisabled",
|
|
1078
|
+
"hxTooltipShowDelay"
|
|
964
1079
|
]
|
|
965
1080
|
},
|
|
966
1081
|
{
|
|
@@ -1003,11 +1118,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1003
1118
|
imports: [
|
|
1004
1119
|
CommonModule,
|
|
1005
1120
|
HelixNavRailItem,
|
|
1121
|
+
HxTooltip,
|
|
1006
1122
|
RouterModule
|
|
1007
1123
|
],
|
|
1008
1124
|
changeDetection: ChangeDetectionStrategy.Eager,
|
|
1009
|
-
|
|
1010
|
-
|
|
1125
|
+
host: { "(document:keydown)": "onDocumentKeydown($event)" },
|
|
1126
|
+
template: "<aside class=\"helix-nav-rail\" [class.helix-nav-rail-collapsed]=\"store.isCollapsed()\">\n <div class=\"helix-nav-rail-brand\">\n <a routerLink=\"/\">\n @if (brandIcon(); as icon) {\n @if (isInlineSvg()) {\n <span [innerHTML]=\"safeBrandIcon()\"></span>\n } @else {\n <img [src]=\"icon\" alt=\"\" width=\"24\" height=\"24\" />\n }\n } @else {\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"var(--primary-color)\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"m10 16 1.5 1.5\" />\n <path d=\"m14 8-1.5-1.5\" />\n <path d=\"M15 2c-1.798 1.998-2.518 3.995-2.807 5.993\" />\n <path d=\"m16.5 10.5 1 1\" />\n <path d=\"m17 6-2.891-2.891\" />\n <path d=\"M2 15c6.667-6 13.333 0 20-6\" />\n <path d=\"m20 9 .891.891\" />\n <path d=\"M3.109 14.109 4 15\" />\n <path d=\"m6.5 12.5 1 1\" />\n <path d=\"m7 18 2.891 2.891\" />\n <path d=\"M9 22c1.798-1.998 2.518-3.995 2.807-5.993\" />\n </svg>\n }\n @if (!store.isCollapsed()) {\n <span class=\"helix-nav-rail-brand-text\">\n <span>{{ appTitle() }}</span>\n </span>\n }\n </a>\n </div>\n\n @if (!store.isCollapsed()) {\n <div class=\"helix-nav-rail-search\">\n <i class=\"pi pi-search\" aria-hidden=\"true\"></i>\n <input\n #search\n type=\"search\"\n autocomplete=\"off\"\n placeholder=\"Search\"\n aria-label=\"Filter navigation\"\n [value]=\"query()\"\n (input)=\"onSearchInput($event)\"\n (keydown)=\"onSearchKeydown($event)\"\n />\n <kbd aria-hidden=\"true\">Ctrl K</kbd>\n </div>\n }\n\n <nav class=\"helix-nav-rail-nav\" aria-label=\"Main\">\n @for (group of visibleModel(); track group.section ?? $index) {\n <div class=\"helix-nav-rail-group\">\n @if (group.section && !store.isCollapsed()) {\n <button\n type=\"button\"\n class=\"helix-nav-rail-section\"\n [attr.aria-expanded]=\"!isGroupCollapsed(group)\"\n (click)=\"toggleGroup(group)\"\n >\n <span>{{ group.section }}</span>\n <i\n class=\"pi pi-chevron-down helix-nav-rail-section-chevron\"\n [class.helix-nav-rail-section-chevron-closed]=\"isGroupCollapsed(group)\"\n aria-hidden=\"true\"\n ></i>\n </button>\n }\n @if (group.section && store.isCollapsed() && $index > 0) {\n <div class=\"helix-nav-rail-divider\"></div>\n }\n <ul class=\"helix-nav-rail-list\" [hidden]=\"isGroupCollapsed(group)\">\n @if (store.isCollapsed() && group.section && group.icon) {\n <li\n helix-nav-rail-item\n [item]=\"{ label: group.section, icon: group.icon, items: group.items }\"\n [parentPath]=\"null\"\n [depth]=\"0\"\n ></li>\n } @else {\n @for (item of group.items; track item.label) {\n <li\n helix-nav-rail-item\n [item]=\"item\"\n [parentPath]=\"null\"\n [depth]=\"0\"\n [expandAll]=\"isFiltering()\"\n ></li>\n }\n }\n </ul>\n </div>\n }\n </nav>\n\n <div class=\"helix-nav-rail-footer\">\n <button\n type=\"button\"\n class=\"helix-nav-rail-collapse-button\"\n (click)=\"store.toggleSidebar()\"\n [hx-tooltip]=\"store.isCollapsed() ? 'Expand navigation' : 'Collapse navigation'\"\n hxTooltipPosition=\"top\"\n [attr.aria-label]=\"store.isCollapsed() ? 'Expand navigation' : 'Collapse navigation'\"\n [attr.aria-expanded]=\"!store.isCollapsed()\"\n >\n <i\n class=\"pi\"\n [ngClass]=\"{\n 'pi-angle-double-left': !store.isCollapsed(),\n 'pi-angle-double-right': store.isCollapsed(),\n }\"\n ></i>\n </button>\n </div>\n</aside>\n",
|
|
1127
|
+
styles: [":host{--helix-nav-text: var(--text-color);--helix-nav-text-muted: var(--text-color-secondary);--helix-nav-hover-bg: var(--helix-surface-hover);--helix-nav-active-bg: color-mix(in srgb, var(--primary-color) 12%, transparent);--helix-nav-active-text: var(--text-color);--helix-nav-accent: var(--primary-color);--helix-nav-border: var(--helix-border);display:contents}.helix-nav-rail{display:flex;flex-direction:column;position:fixed;top:0;bottom:0;left:0;width:var(--helix-nav-width, 17rem);z-index:999;overflow:hidden;-webkit-user-select:none;user-select:none;background:var(--helix-surface-chrome);color:var(--helix-nav-text);border-right:1px solid var(--helix-nav-border);transition:width var(--layout-section-transition-duration)}.helix-nav-rail.helix-nav-rail-collapsed{width:var(--helix-nav-width-collapsed, 4.75rem)}.helix-nav-rail-brand{flex:0 0 auto;height:var(--helix-topbar-height, 4rem);display:flex;align-items:center;padding:0 1.25rem;gap:.65rem;overflow:hidden}.helix-nav-rail-brand a{display:flex;align-items:center;gap:.65rem;color:var(--text-color);font-size:1.15rem;font-weight:600;white-space:nowrap;text-decoration:none;min-width:0}.helix-nav-rail-brand a:hover{color:var(--text-color)}.helix-nav-rail-brand svg{flex-shrink:0;width:1.75rem;height:1.75rem}.helix-nav-rail-brand .helix-nav-rail-brand-text{display:flex;align-items:center;gap:.5rem;overflow:hidden;min-width:0}.helix-nav-rail-collapsed .helix-nav-rail-brand{justify-content:center;padding:0}.helix-nav-rail-collapsed .helix-nav-rail-brand a{gap:0}.helix-nav-rail-nav{flex:1;overflow-y:auto;overflow-x:hidden;padding:.85rem .65rem}.helix-nav-rail-group{margin-bottom:1.35rem}.helix-nav-rail-section{display:flex;align-items:center;justify-content:space-between;width:100%;margin:0;padding:.5rem .75rem .4rem;border:0;background:none;font:inherit;font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;text-align:left;color:var(--helix-nav-text-muted);cursor:pointer;border-radius:var(--content-border-radius);outline:0 none}.helix-nav-rail-section:hover{color:var(--helix-nav-text)}.helix-nav-rail-section:focus-visible{outline:2px solid var(--primary-color);outline-offset:-2px}.helix-nav-rail-section-chevron{font-size:.65rem;transition:transform var(--element-transition-duration)}.helix-nav-rail-section-chevron.helix-nav-rail-section-chevron-closed{transform:rotate(-90deg)}.helix-nav-rail-search{position:relative;flex:0 0 auto;display:flex;align-items:center;margin:.75rem .65rem 0;padding:0 .6rem;gap:.5rem;height:2.25rem;border-radius:var(--content-border-radius);border:1px solid var(--helix-nav-border);background:var(--helix-surface-ground, transparent);color:var(--helix-nav-text-muted)}.helix-nav-rail-search:focus-within{border-color:var(--primary-color);outline:2px solid color-mix(in srgb,var(--primary-color) 35%,transparent)}.helix-nav-rail-search input{flex:1 1 auto;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:.9rem;color:var(--helix-nav-text)}.helix-nav-rail-search input::placeholder{color:var(--helix-nav-text-muted)}.helix-nav-rail-search kbd{font:inherit;font-size:.68rem;padding:.1rem .35rem;border-radius:4px;border:1px solid var(--helix-nav-border);color:var(--helix-nav-text-muted);white-space:nowrap}.helix-nav-rail-search:focus-within kbd{display:none}.helix-nav-rail-divider{height:1px;background:var(--helix-nav-border);margin:.5rem}.helix-nav-rail-list{margin:0;padding:0;list-style-type:none}.helix-nav-rail-footer{flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;height:var(--helix-status-bar-height, 3rem);padding-right:1.25rem}.helix-nav-rail-collapsed .helix-nav-rail-footer{justify-content:center;padding-right:0}.helix-nav-rail-collapse-button{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;padding:0;border:none;border-radius:50%;background-color:transparent;color:var(--helix-nav-text-muted);cursor:pointer;transition:background-color var(--element-transition-duration),color var(--element-transition-duration)}.helix-nav-rail-collapse-button:hover{background-color:var(--helix-surface-hover);color:var(--helix-nav-text)}.helix-nav-rail-collapse-button:focus-visible{outline:2px solid var(--primary-color);outline-offset:-2px}@media(max-width:991px){.helix-nav-rail-footer{display:none}}\n"]
|
|
1011
1128
|
}]
|
|
1012
1129
|
}],
|
|
1013
1130
|
ctorParameters: () => [],
|
|
@@ -1035,6 +1152,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1035
1152
|
alias: "brandIcon",
|
|
1036
1153
|
required: false
|
|
1037
1154
|
}]
|
|
1155
|
+
}],
|
|
1156
|
+
searchField: [{
|
|
1157
|
+
type: i0.ViewChild,
|
|
1158
|
+
args: ["search", { isSignal: true }]
|
|
1038
1159
|
}]
|
|
1039
1160
|
}
|
|
1040
1161
|
});
|
|
@@ -2082,7 +2203,7 @@ var HelixTopbar = class HelixTopbar {
|
|
|
2082
2203
|
},
|
|
2083
2204
|
ngImport: i0,
|
|
2084
2205
|
template: "<div class=\"layout-topbar\">\n <div class=\"layout-topbar-start\">\n <button\n type=\"button\"\n class=\"layout-menu-button layout-topbar-action\"\n [class.layout-menu-button-mobile-only]=\"store.isStatic()\"\n aria-label=\"Toggle navigation\"\n (click)=\"store.onMenuToggle()\"\n >\n <i class=\"pi pi-bars\"></i>\n </button>\n @if (showBreadcrumbs()) {\n <hx-breadcrumb [model]=\"effectiveBreadcrumbs()\" [home]=\"{ icon: 'pi pi-home', routerLink: '/' }\" />\n }\n </div>\n\n <div class=\"layout-topbar-end\">\n <div class=\"layout-config-menu\">\n @for (item of items(); track $index) {\n @switch (item.type) {\n @case ('darkmode') {\n <helix-dark-mode-action />\n }\n @case ('configurator') {\n <helix-configurator-action />\n }\n @case ('alert') {\n <helix-alert-action [count]=\"item.badgeCount ?? 0\" [alerts]=\"item.alerts\" />\n }\n @case ('action') {\n <button type=\"button\" class=\"layout-topbar-action\" (click)=\"item.command?.()\">\n <i [class]=\"item.icon ?? ''\"></i>\n </button>\n }\n }\n }\n </div>\n\n <button\n type=\"button\"\n class=\"layout-topbar-menu-button layout-topbar-action\"\n [attr.aria-label]=\"menuLabel()\"\n helixDisclosure\n helixDisclosureAnimate\n >\n <i class=\"pi pi-ellipsis-v\"></i>\n </button>\n\n <div class=\"layout-topbar-menu hidden lg:block\">\n <div class=\"layout-topbar-menu-content\">\n @for (action of topbarActions(); track action.icon) {\n <button type=\"button\" class=\"layout-topbar-action\" (click)=\"action.command?.()\">\n <i [class]=\"action.icon\"></i>\n <span>{{ action.label }}</span>\n </button>\n }\n <ng-content select=\"[helixTopbarEnd]\" />\n </div>\n </div>\n </div>\n</div>\n",
|
|
2085
|
-
styles: [".layout-topbar{position:fixed;height:var(--helix-topbar-height, 4rem);z-index:997;left:0;top:0;width:100%;padding:0 2rem;background-color:var(--helix-surface-chrome);border-bottom:1px solid var(--helix-border);transition:left var(--layout-section-transition-duration),width var(--layout-section-transition-duration);display:flex;align-items:center;gap:.75rem}.layout-topbar .layout-topbar-start{display:flex;align-items:center;gap:.5rem;flex:1;min-width:0}.layout-topbar .layout-topbar-end{display:flex;align-items:center;gap:1rem;flex-shrink:0}.layout-topbar ::ng-deep .
|
|
2206
|
+
styles: [".layout-topbar{position:fixed;height:var(--helix-topbar-height, 4rem);z-index:997;left:0;top:0;width:100%;padding:0 2rem;background-color:var(--helix-surface-chrome);border-bottom:1px solid var(--helix-border);transition:left var(--layout-section-transition-duration),width var(--layout-section-transition-duration);display:flex;align-items:center;gap:.75rem}.layout-topbar .layout-topbar-start{display:flex;align-items:center;gap:.5rem;flex:1;min-width:0}.layout-topbar .layout-topbar-end{display:flex;align-items:center;gap:1rem;flex-shrink:0}.layout-topbar ::ng-deep .hx-breadcrumb{background:inherit;color:inherit}.layout-topbar .layout-topbar-action{display:inline-flex;justify-content:center;align-items:center;border-radius:50%;width:2.5rem;height:2.5rem;color:var(--text-color);transition:background-color var(--element-transition-duration);cursor:pointer}.layout-topbar .layout-topbar-action:hover{background-color:var(--helix-surface-hover)}.layout-topbar .layout-topbar-action:focus-visible{outline-width:var(--focus-ring-width);outline-style:var(--focus-ring-style);outline-color:var(--focus-ring-color);outline-offset:var(--focus-ring-offset);box-shadow:var(--focus-ring-shadow);transition:box-shadow var(--transition-duration),outline-color var(--transition-duration)}.layout-topbar .layout-topbar-action i{font-size:1.25rem}.layout-topbar .layout-topbar-action span{font-size:1rem;display:none}.layout-topbar .layout-topbar-action.layout-topbar-action-highlight{background-color:var(--primary-color);color:var(--primary-contrast-color)}.layout-topbar .layout-menu-button{flex-shrink:0;margin-left:-.5rem}@media(min-width:992px){.layout-topbar .layout-menu-button-mobile-only{display:none}}.layout-topbar .layout-topbar-menu-button{display:none}.layout-topbar .layout-topbar-menu-content,.layout-topbar .layout-config-menu{display:flex;gap:1rem}@media(max-width:991px){.layout-topbar{padding:0 1rem}.layout-topbar .layout-menu-button{margin-left:0}.layout-topbar .layout-topbar-menu-button{display:inline-flex}.layout-topbar .layout-topbar-menu{position:absolute;background-color:var(--helix-surface-overlay);transform-origin:top;box-shadow:0 3px 5px #00000005,0 0 2px #0000000d,0 1px 4px #00000014;border-radius:var(--content-border-radius);padding:1rem;right:1rem;top:var(--helix-topbar-height, 4rem);min-width:15rem;border:1px solid var(--helix-border)}.layout-topbar .layout-topbar-menu .layout-topbar-menu-content{gap:.5rem}.layout-topbar .layout-topbar-menu .layout-topbar-action{display:flex;width:100%;height:auto;justify-content:flex-start;border-radius:var(--content-border-radius);padding:.5rem 1rem}.layout-topbar .layout-topbar-menu .layout-topbar-action i{font-size:1rem;margin-right:.5rem}.layout-topbar .layout-topbar-menu .layout-topbar-action span{font-weight:medium;display:block}.layout-topbar .layout-topbar-menu-content{flex-direction:column}}.config-panel .config-panel-label{font-size:.875rem;color:var(--text-secondary-color);font-weight:600;line-height:1}.config-panel .config-panel-colors>div{padding-top:.5rem;display:flex;gap:.5rem;flex-wrap:wrap;justify-content:space-between}.config-panel .config-panel-colors>div button{border:none;width:1.25rem;height:1.25rem;border-radius:50%;padding:0;cursor:pointer;outline-color:transparent;outline-width:2px;outline-style:solid;outline-offset:1px}.config-panel .config-panel-colors>div button.active-color{outline-color:var(--primary-color)}.config-panel .config-panel-settings{display:flex;flex-direction:column;gap:.5rem}\n"],
|
|
2086
2207
|
dependencies: [
|
|
2087
2208
|
{
|
|
2088
2209
|
kind: "ngmodule",
|
|
@@ -2150,7 +2271,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2150
2271
|
],
|
|
2151
2272
|
changeDetection: ChangeDetectionStrategy.Eager,
|
|
2152
2273
|
template: "<div class=\"layout-topbar\">\n <div class=\"layout-topbar-start\">\n <button\n type=\"button\"\n class=\"layout-menu-button layout-topbar-action\"\n [class.layout-menu-button-mobile-only]=\"store.isStatic()\"\n aria-label=\"Toggle navigation\"\n (click)=\"store.onMenuToggle()\"\n >\n <i class=\"pi pi-bars\"></i>\n </button>\n @if (showBreadcrumbs()) {\n <hx-breadcrumb [model]=\"effectiveBreadcrumbs()\" [home]=\"{ icon: 'pi pi-home', routerLink: '/' }\" />\n }\n </div>\n\n <div class=\"layout-topbar-end\">\n <div class=\"layout-config-menu\">\n @for (item of items(); track $index) {\n @switch (item.type) {\n @case ('darkmode') {\n <helix-dark-mode-action />\n }\n @case ('configurator') {\n <helix-configurator-action />\n }\n @case ('alert') {\n <helix-alert-action [count]=\"item.badgeCount ?? 0\" [alerts]=\"item.alerts\" />\n }\n @case ('action') {\n <button type=\"button\" class=\"layout-topbar-action\" (click)=\"item.command?.()\">\n <i [class]=\"item.icon ?? ''\"></i>\n </button>\n }\n }\n }\n </div>\n\n <button\n type=\"button\"\n class=\"layout-topbar-menu-button layout-topbar-action\"\n [attr.aria-label]=\"menuLabel()\"\n helixDisclosure\n helixDisclosureAnimate\n >\n <i class=\"pi pi-ellipsis-v\"></i>\n </button>\n\n <div class=\"layout-topbar-menu hidden lg:block\">\n <div class=\"layout-topbar-menu-content\">\n @for (action of topbarActions(); track action.icon) {\n <button type=\"button\" class=\"layout-topbar-action\" (click)=\"action.command?.()\">\n <i [class]=\"action.icon\"></i>\n <span>{{ action.label }}</span>\n </button>\n }\n <ng-content select=\"[helixTopbarEnd]\" />\n </div>\n </div>\n </div>\n</div>\n",
|
|
2153
|
-
styles: [".layout-topbar{position:fixed;height:var(--helix-topbar-height, 4rem);z-index:997;left:0;top:0;width:100%;padding:0 2rem;background-color:var(--helix-surface-chrome);border-bottom:1px solid var(--helix-border);transition:left var(--layout-section-transition-duration),width var(--layout-section-transition-duration);display:flex;align-items:center;gap:.75rem}.layout-topbar .layout-topbar-start{display:flex;align-items:center;gap:.5rem;flex:1;min-width:0}.layout-topbar .layout-topbar-end{display:flex;align-items:center;gap:1rem;flex-shrink:0}.layout-topbar ::ng-deep .
|
|
2274
|
+
styles: [".layout-topbar{position:fixed;height:var(--helix-topbar-height, 4rem);z-index:997;left:0;top:0;width:100%;padding:0 2rem;background-color:var(--helix-surface-chrome);border-bottom:1px solid var(--helix-border);transition:left var(--layout-section-transition-duration),width var(--layout-section-transition-duration);display:flex;align-items:center;gap:.75rem}.layout-topbar .layout-topbar-start{display:flex;align-items:center;gap:.5rem;flex:1;min-width:0}.layout-topbar .layout-topbar-end{display:flex;align-items:center;gap:1rem;flex-shrink:0}.layout-topbar ::ng-deep .hx-breadcrumb{background:inherit;color:inherit}.layout-topbar .layout-topbar-action{display:inline-flex;justify-content:center;align-items:center;border-radius:50%;width:2.5rem;height:2.5rem;color:var(--text-color);transition:background-color var(--element-transition-duration);cursor:pointer}.layout-topbar .layout-topbar-action:hover{background-color:var(--helix-surface-hover)}.layout-topbar .layout-topbar-action:focus-visible{outline-width:var(--focus-ring-width);outline-style:var(--focus-ring-style);outline-color:var(--focus-ring-color);outline-offset:var(--focus-ring-offset);box-shadow:var(--focus-ring-shadow);transition:box-shadow var(--transition-duration),outline-color var(--transition-duration)}.layout-topbar .layout-topbar-action i{font-size:1.25rem}.layout-topbar .layout-topbar-action span{font-size:1rem;display:none}.layout-topbar .layout-topbar-action.layout-topbar-action-highlight{background-color:var(--primary-color);color:var(--primary-contrast-color)}.layout-topbar .layout-menu-button{flex-shrink:0;margin-left:-.5rem}@media(min-width:992px){.layout-topbar .layout-menu-button-mobile-only{display:none}}.layout-topbar .layout-topbar-menu-button{display:none}.layout-topbar .layout-topbar-menu-content,.layout-topbar .layout-config-menu{display:flex;gap:1rem}@media(max-width:991px){.layout-topbar{padding:0 1rem}.layout-topbar .layout-menu-button{margin-left:0}.layout-topbar .layout-topbar-menu-button{display:inline-flex}.layout-topbar .layout-topbar-menu{position:absolute;background-color:var(--helix-surface-overlay);transform-origin:top;box-shadow:0 3px 5px #00000005,0 0 2px #0000000d,0 1px 4px #00000014;border-radius:var(--content-border-radius);padding:1rem;right:1rem;top:var(--helix-topbar-height, 4rem);min-width:15rem;border:1px solid var(--helix-border)}.layout-topbar .layout-topbar-menu .layout-topbar-menu-content{gap:.5rem}.layout-topbar .layout-topbar-menu .layout-topbar-action{display:flex;width:100%;height:auto;justify-content:flex-start;border-radius:var(--content-border-radius);padding:.5rem 1rem}.layout-topbar .layout-topbar-menu .layout-topbar-action i{font-size:1rem;margin-right:.5rem}.layout-topbar .layout-topbar-menu .layout-topbar-action span{font-weight:medium;display:block}.layout-topbar .layout-topbar-menu-content{flex-direction:column}}.config-panel .config-panel-label{font-size:.875rem;color:var(--text-secondary-color);font-weight:600;line-height:1}.config-panel .config-panel-colors>div{padding-top:.5rem;display:flex;gap:.5rem;flex-wrap:wrap;justify-content:space-between}.config-panel .config-panel-colors>div button{border:none;width:1.25rem;height:1.25rem;border-radius:50%;padding:0;cursor:pointer;outline-color:transparent;outline-width:2px;outline-style:solid;outline-offset:1px}.config-panel .config-panel-colors>div button.active-color{outline-color:var(--primary-color)}.config-panel .config-panel-settings{display:flex;flex-direction:column;gap:.5rem}\n"]
|
|
2154
2275
|
}]
|
|
2155
2276
|
}],
|
|
2156
2277
|
propDecorators: {
|
|
@@ -2710,7 +2831,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2710
2831
|
});
|
|
2711
2832
|
var HelixFooter = class HelixFooter {
|
|
2712
2833
|
brandName = input("Helix", ...ngDevMode ? [{ debugName: "brandName" }] : /* istanbul ignore next */ []);
|
|
2713
|
-
brandUrl = input("https://
|
|
2834
|
+
brandUrl = input("https://gravionlabs.github.io/helix/", ...ngDevMode ? [{ debugName: "brandUrl" }] : /* istanbul ignore next */ []);
|
|
2714
2835
|
columns = input([], ...ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []);
|
|
2715
2836
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2716
2837
|
minVersion: "12.0.0",
|