@gravionlabs/helix-shell 22.2.6 → 22.2.8
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 +4 -0
- package/fesm2022/gravionlabs-helix-shell.mjs +43 -15
- package/fesm2022/gravionlabs-helix-shell.mjs.map +1 -1
- package/globals.css +18 -0
- package/package.json +3 -2
- package/styles.css +19 -31
- package/types/gravionlabs-helix-shell.d.ts +67 -58
package/README.md
CHANGED
|
@@ -71,10 +71,14 @@ app's global styles, since Tailwind's content scanning does not look inside
|
|
|
71
71
|
// angular.json
|
|
72
72
|
"styles": [
|
|
73
73
|
"node_modules/@gravionlabs/helix-shell/styles.css",
|
|
74
|
+
"node_modules/@gravionlabs/helix-shell/globals.css",
|
|
74
75
|
"src/styles.scss"
|
|
75
76
|
]
|
|
76
77
|
```
|
|
77
78
|
|
|
79
|
+
`globals.css` is optional: it holds the `html` and `body` rules (14 px root font size, body font, colour and
|
|
80
|
+
background) that `styles.css` no longer contains. Apps that relied on them must add it; others can leave it out.
|
|
81
|
+
|
|
78
82
|
## Layout Store
|
|
79
83
|
|
|
80
84
|
```typescript
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, InjectionToken, ViewEncapsulation, afterNextRender, booleanAttribute, computed, effect, forwardRef, inject, input, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef, InjectionToken, TemplateRef, ViewEncapsulation, afterNextRender, booleanAttribute, computed, effect, forwardRef, inject, input, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
|
|
3
3
|
import * as i1 from "@angular/common";
|
|
4
|
-
import { CommonModule, DOCUMENT, NgClass, SlicePipe } from "@angular/common";
|
|
4
|
+
import { CommonModule, DOCUMENT, NgClass, NgTemplateOutlet, SlicePipe } from "@angular/common";
|
|
5
5
|
import * as i1$1 from "@angular/forms";
|
|
6
6
|
import { FormsModule, NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
7
7
|
import * as i2 from "@angular/router";
|
|
@@ -1343,9 +1343,20 @@ const DEFAULT_ENV = {
|
|
|
1343
1343
|
icon: "pi pi-question",
|
|
1344
1344
|
label: "Unknown"
|
|
1345
1345
|
};
|
|
1346
|
+
function isKnownEnvironment(value) {
|
|
1347
|
+
return Object.hasOwn(ENV_MAP, value);
|
|
1348
|
+
}
|
|
1346
1349
|
var HelixEnvironmentBadge = class HelixEnvironmentBadge {
|
|
1347
1350
|
environment = input.required(...ngDevMode ? [{ debugName: "environment" }] : /* istanbul ignore next */ []);
|
|
1348
|
-
mapped = computed(() =>
|
|
1351
|
+
mapped = computed(() => {
|
|
1352
|
+
const env = this.environment();
|
|
1353
|
+
if (typeof env === "object" && env !== null) return {
|
|
1354
|
+
severity: env.severity,
|
|
1355
|
+
icon: "",
|
|
1356
|
+
label: env.label
|
|
1357
|
+
};
|
|
1358
|
+
return isKnownEnvironment(env) ? ENV_MAP[env] : DEFAULT_ENV;
|
|
1359
|
+
}, ...ngDevMode ? [{ debugName: "mapped" }] : /* istanbul ignore next */ []);
|
|
1349
1360
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1350
1361
|
minVersion: "12.0.0",
|
|
1351
1362
|
version: "22.2.1",
|
|
@@ -1441,7 +1452,15 @@ var HelixStatusBar = class HelixStatusBar {
|
|
|
1441
1452
|
versions = input([], ...ngDevMode ? [{ debugName: "versions" }] : /* istanbul ignore next */ []);
|
|
1442
1453
|
tone = input("neutral", ...ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []);
|
|
1443
1454
|
height = input("var(--helix-status-bar-height, 3rem)", ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
1444
|
-
envForBadge = computed(() => this.environment(), ...ngDevMode ? [{ debugName: "envForBadge" }] : /* istanbul ignore next */ []);
|
|
1455
|
+
envForBadge = computed(() => this.environment() || void 0, ...ngDevMode ? [{ debugName: "envForBadge" }] : /* istanbul ignore next */ []);
|
|
1456
|
+
noteTemplate = computed(() => {
|
|
1457
|
+
const n = this.note();
|
|
1458
|
+
return n instanceof TemplateRef ? n : void 0;
|
|
1459
|
+
}, ...ngDevMode ? [{ debugName: "noteTemplate" }] : /* istanbul ignore next */ []);
|
|
1460
|
+
noteText = computed(() => {
|
|
1461
|
+
const n = this.note();
|
|
1462
|
+
return typeof n === "string" ? n : "";
|
|
1463
|
+
}, ...ngDevMode ? [{ debugName: "noteText" }] : /* istanbul ignore next */ []);
|
|
1445
1464
|
bgColor = computed(() => TONE_BG[this.tone()], ...ngDevMode ? [{ debugName: "bgColor" }] : /* istanbul ignore next */ []);
|
|
1446
1465
|
textColor = computed(() => TONE_TEXT[this.tone()], ...ngDevMode ? [{ debugName: "textColor" }] : /* istanbul ignore next */ []);
|
|
1447
1466
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
@@ -1503,13 +1522,22 @@ var HelixStatusBar = class HelixStatusBar {
|
|
|
1503
1522
|
}
|
|
1504
1523
|
},
|
|
1505
1524
|
ngImport: i0,
|
|
1506
|
-
template: "<div\n class=\"helix-status-bar\"\n [style.height]=\"height()\"\n [style.background-color]=\"bgColor()\"\n [style.color]=\"textColor()\"\n>\n <span class=\"helix-status-bar-brand\">{{ brand() }}</span>\n\n @if (envForBadge(); as env) {\n <helix-environment-badge [environment]=\"env\" />\n }\n\n @if (note(); as n) {\n <span class=\"helix-status-bar-note\"
|
|
1507
|
-
styles: [".helix-status-bar{display:flex;align-items:center;gap:1rem;padding:0 1rem;height:var(--helix-status-bar-height, 3rem);font-size:.75rem;font-weight:500;white-space:nowrap;overflow:hidden;box-sizing:border-box;border-top:1px solid var(--helix-border, var(--surface-border))}.helix-status-bar-brand{font-weight:700;flex-shrink:0}.helix-status-bar-note{opacity:.85;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.helix-status-bar-versions{display:flex;gap:.75rem;flex-shrink:0}.helix-status-bar-version{display:inline-flex;gap:.25rem}.helix-status-bar-version-label{opacity:.7}.helix-status-bar-version-value{font-weight:600}\n"],
|
|
1525
|
+
template: "<div\n class=\"helix-status-bar\"\n [style.height]=\"height()\"\n [style.background-color]=\"bgColor()\"\n [style.color]=\"textColor()\"\n>\n <span class=\"helix-status-bar-brand\">{{ brand() }}</span>\n\n @if (envForBadge(); as env) {\n <helix-environment-badge [environment]=\"env\" />\n }\n\n @if (note(); as n) {\n <span class=\"helix-status-bar-note\">\n @if (noteTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ noteText() }}\n }\n </span>\n }\n\n <div class=\"helix-status-bar-versions\">\n @for (ver of versions(); track ver.label) {\n <span class=\"helix-status-bar-version\">\n <span class=\"helix-status-bar-version-label\">{{ ver.label }}:</span>\n <span class=\"helix-status-bar-version-value\">{{ ver.value }}</span>\n </span>\n }\n </div>\n <div class=\"helix-status-bar-end\"><ng-content select=\"[hxStatusBarEnd]\" /></div>\n</div>\n",
|
|
1526
|
+
styles: [".helix-status-bar{display:flex;align-items:center;gap:1rem;padding:0 1rem;height:var(--helix-status-bar-height, 3rem);font-size:.75rem;font-weight:500;white-space:nowrap;overflow:hidden;box-sizing:border-box;border-top:1px solid var(--helix-border, var(--surface-border))}.helix-status-bar-brand{font-weight:700;flex-shrink:0}.helix-status-bar-note{opacity:.85;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.helix-status-bar-versions{display:flex;gap:.75rem;flex-shrink:0}.helix-status-bar-note a{color:inherit;text-decoration:none}.helix-status-bar-note a:hover{text-decoration:underline}.helix-status-bar-end{display:flex;align-items:center;gap:.75rem;flex-shrink:0;margin-left:auto}.helix-status-bar-end:empty{display:none}.helix-status-bar-version{display:inline-flex;gap:.25rem}.helix-status-bar-version-label{opacity:.7}.helix-status-bar-version-value{font-weight:600}\n"],
|
|
1508
1527
|
dependencies: [{
|
|
1509
1528
|
kind: "component",
|
|
1510
1529
|
type: HelixEnvironmentBadge,
|
|
1511
1530
|
selector: "helix-environment-badge",
|
|
1512
1531
|
inputs: ["environment"]
|
|
1532
|
+
}, {
|
|
1533
|
+
kind: "directive",
|
|
1534
|
+
type: NgTemplateOutlet,
|
|
1535
|
+
selector: "[ngTemplateOutlet]",
|
|
1536
|
+
inputs: [
|
|
1537
|
+
"ngTemplateOutletContext",
|
|
1538
|
+
"ngTemplateOutlet",
|
|
1539
|
+
"ngTemplateOutletInjector"
|
|
1540
|
+
]
|
|
1513
1541
|
}],
|
|
1514
1542
|
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
1515
1543
|
});
|
|
@@ -1524,10 +1552,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1524
1552
|
args: [{
|
|
1525
1553
|
selector: "helix-status-bar",
|
|
1526
1554
|
standalone: true,
|
|
1527
|
-
imports: [HelixEnvironmentBadge],
|
|
1555
|
+
imports: [HelixEnvironmentBadge, NgTemplateOutlet],
|
|
1528
1556
|
changeDetection: ChangeDetectionStrategy.Eager,
|
|
1529
|
-
template: "<div\n class=\"helix-status-bar\"\n [style.height]=\"height()\"\n [style.background-color]=\"bgColor()\"\n [style.color]=\"textColor()\"\n>\n <span class=\"helix-status-bar-brand\">{{ brand() }}</span>\n\n @if (envForBadge(); as env) {\n <helix-environment-badge [environment]=\"env\" />\n }\n\n @if (note(); as n) {\n <span class=\"helix-status-bar-note\"
|
|
1530
|
-
styles: [".helix-status-bar{display:flex;align-items:center;gap:1rem;padding:0 1rem;height:var(--helix-status-bar-height, 3rem);font-size:.75rem;font-weight:500;white-space:nowrap;overflow:hidden;box-sizing:border-box;border-top:1px solid var(--helix-border, var(--surface-border))}.helix-status-bar-brand{font-weight:700;flex-shrink:0}.helix-status-bar-note{opacity:.85;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.helix-status-bar-versions{display:flex;gap:.75rem;flex-shrink:0}.helix-status-bar-version{display:inline-flex;gap:.25rem}.helix-status-bar-version-label{opacity:.7}.helix-status-bar-version-value{font-weight:600}\n"]
|
|
1557
|
+
template: "<div\n class=\"helix-status-bar\"\n [style.height]=\"height()\"\n [style.background-color]=\"bgColor()\"\n [style.color]=\"textColor()\"\n>\n <span class=\"helix-status-bar-brand\">{{ brand() }}</span>\n\n @if (envForBadge(); as env) {\n <helix-environment-badge [environment]=\"env\" />\n }\n\n @if (note(); as n) {\n <span class=\"helix-status-bar-note\">\n @if (noteTemplate(); as tpl) {\n <ng-container [ngTemplateOutlet]=\"tpl\" />\n } @else {\n {{ noteText() }}\n }\n </span>\n }\n\n <div class=\"helix-status-bar-versions\">\n @for (ver of versions(); track ver.label) {\n <span class=\"helix-status-bar-version\">\n <span class=\"helix-status-bar-version-label\">{{ ver.label }}:</span>\n <span class=\"helix-status-bar-version-value\">{{ ver.value }}</span>\n </span>\n }\n </div>\n <div class=\"helix-status-bar-end\"><ng-content select=\"[hxStatusBarEnd]\" /></div>\n</div>\n",
|
|
1558
|
+
styles: [".helix-status-bar{display:flex;align-items:center;gap:1rem;padding:0 1rem;height:var(--helix-status-bar-height, 3rem);font-size:.75rem;font-weight:500;white-space:nowrap;overflow:hidden;box-sizing:border-box;border-top:1px solid var(--helix-border, var(--surface-border))}.helix-status-bar-brand{font-weight:700;flex-shrink:0}.helix-status-bar-note{opacity:.85;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.helix-status-bar-versions{display:flex;gap:.75rem;flex-shrink:0}.helix-status-bar-note a{color:inherit;text-decoration:none}.helix-status-bar-note a:hover{text-decoration:underline}.helix-status-bar-end{display:flex;align-items:center;gap:.75rem;flex-shrink:0;margin-left:auto}.helix-status-bar-end:empty{display:none}.helix-status-bar-version{display:inline-flex;gap:.25rem}.helix-status-bar-version-label{opacity:.7}.helix-status-bar-version-value{font-weight:600}\n"]
|
|
1531
1559
|
}]
|
|
1532
1560
|
}],
|
|
1533
1561
|
propDecorators: {
|
|
@@ -2202,8 +2230,8 @@ var HelixTopbar = class HelixTopbar {
|
|
|
2202
2230
|
}
|
|
2203
2231
|
},
|
|
2204
2232
|
ngImport: i0,
|
|
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
|
|
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-
|
|
2233
|
+
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-topbar-slot\">\n <ng-content select=\"[helixTopbarEnd]\" />\n </div>\n\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\">\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 </div>\n </div>\n </div>\n</div>\n",
|
|
2234
|
+
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;min-width:0}.layout-topbar .layout-topbar-slot{display:flex;align-items:center;gap:.5rem;flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;padding-block:.25rem;scrollbar-width:thin}.layout-topbar .layout-topbar-slot:not(:has(*)){display:none}.layout-topbar ::ng-deep .hx-breadcrumb{background:inherit;color:inherit}.layout-topbar .layout-topbar-action{display:inline-flex;flex-shrink:0;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-start{min-width:12rem}.layout-topbar .layout-topbar-menu{display:block}}.layout-topbar .layout-topbar-menu-button{display:none;flex-shrink:0}.layout-topbar .layout-topbar-menu-content{display:flex;gap:1rem}.layout-topbar .layout-config-menu{display:flex;flex-shrink:0;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"],
|
|
2207
2235
|
dependencies: [
|
|
2208
2236
|
{
|
|
2209
2237
|
kind: "ngmodule",
|
|
@@ -2270,8 +2298,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2270
2298
|
HxBreadcrumb
|
|
2271
2299
|
],
|
|
2272
2300
|
changeDetection: ChangeDetectionStrategy.Eager,
|
|
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
|
|
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-
|
|
2301
|
+
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-topbar-slot\">\n <ng-content select=\"[helixTopbarEnd]\" />\n </div>\n\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\">\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 </div>\n </div>\n </div>\n</div>\n",
|
|
2302
|
+
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;min-width:0}.layout-topbar .layout-topbar-slot{display:flex;align-items:center;gap:.5rem;flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;padding-block:.25rem;scrollbar-width:thin}.layout-topbar .layout-topbar-slot:not(:has(*)){display:none}.layout-topbar ::ng-deep .hx-breadcrumb{background:inherit;color:inherit}.layout-topbar .layout-topbar-action{display:inline-flex;flex-shrink:0;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-start{min-width:12rem}.layout-topbar .layout-topbar-menu{display:block}}.layout-topbar .layout-topbar-menu-button{display:none;flex-shrink:0}.layout-topbar .layout-topbar-menu-content{display:flex;gap:1rem}.layout-topbar .layout-config-menu{display:flex;flex-shrink:0;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"]
|
|
2275
2303
|
}]
|
|
2276
2304
|
}],
|
|
2277
2305
|
propDecorators: {
|
|
@@ -2490,7 +2518,7 @@ var HelixAppLayout = class HelixAppLayout {
|
|
|
2490
2518
|
}
|
|
2491
2519
|
},
|
|
2492
2520
|
ngImport: i0,
|
|
2493
|
-
template: "<div class=\"layout-wrapper\" [ngClass]=\"containerClass()\">\n <helix-topbar\n [items]=\"effectiveItems()\"\n [topbarActions]=\"effectiveTopbarActions()\"\n
|
|
2521
|
+
template: "<div class=\"layout-wrapper\" [ngClass]=\"containerClass()\">\n <helix-topbar\n [items]=\"effectiveItems()\"\n [topbarActions]=\"effectiveTopbarActions()\"\n >\n <ng-content select=\"[helixTopbarEnd]\" ngProjectAs=\"[helixTopbarEnd]\" />\n </helix-topbar>\n <helix-nav-rail\n [model]=\"effectiveNavGroups()\"\n [appTitle]=\"appTitle()\"\n [brandIcon]=\"brandIcon()\"\n ></helix-nav-rail>\n <div class=\"layout-main-container\">\n <div class=\"layout-main\">\n <router-outlet></router-outlet>\n </div>\n </div>\n <helix-status-bar\n [brand]=\"statusBarBrand()\"\n [environment]=\"statusBarEnvironment()\"\n [note]=\"statusBarNote()\"\n [tone]=\"statusBarTone()\"\n [versions]=\"statusBarVersions()\"\n >\n <ng-content select=\"[hxStatusBarEnd]\" ngProjectAs=\"[hxStatusBarEnd]\" />\n </helix-status-bar>\n <div class=\"layout-mask\"></div>\n</div>\n",
|
|
2494
2522
|
styles: [".layout-wrapper{min-height:100vh}.layout-main-container{display:flex;flex-direction:column;min-height:100vh;padding:calc(var(--helix-topbar-height) + var(--helix-layout-gap)) var(--helix-layout-gap) calc(var(--helix-status-bar-height) + var(--helix-layout-gap)) var(--helix-layout-gap);transition:margin-left var(--layout-section-transition-duration)}.layout-main{flex:1 1 auto;min-width:0}.layout-wrapper>helix-status-bar{position:fixed;bottom:0;left:0;right:0;z-index:996;transition:left var(--layout-section-transition-duration)}.layout-mask{display:none;position:fixed;top:0;left:0;z-index:998;width:100%;height:100%;background-color:var(--maskbg)}@media(min-width:992px){.layout-wrapper.layout-overlay .layout-main-container{margin-left:0}.layout-wrapper.layout-overlay .helix-nav-rail{transform:translate(-100%);left:0;border-right:1px solid var(--helix-border);transition:transform .4s cubic-bezier(.05,.74,.2,.99),left .4s cubic-bezier(.05,.74,.2,.99);box-shadow:0 3px 5px #00000005,0 0 2px #0000000d,0 1px 4px #00000014}.layout-wrapper.layout-overlay.layout-overlay-active .helix-nav-rail{transform:translate(0)}.layout-wrapper.layout-static .layout-main-container{margin-left:var(--helix-nav-width)}.layout-wrapper.layout-static .layout-topbar{left:var(--helix-nav-width);width:calc(100% - var(--helix-nav-width))}.layout-wrapper.layout-static>helix-status-bar{left:var(--helix-nav-width)}.layout-wrapper.layout-static.layout-static-inactive .helix-nav-rail{transform:translate(-100%);left:0}.layout-wrapper.layout-static.layout-static-inactive .layout-main-container{margin-left:0}.layout-wrapper.layout-static.layout-static-inactive .layout-topbar{left:0;width:100%}.layout-wrapper.layout-static.layout-static-inactive>helix-status-bar{left:0}.layout-wrapper.layout-static.layout-sidebar-collapsed .layout-main-container{margin-left:var(--helix-nav-width-collapsed)}.layout-wrapper.layout-static.layout-sidebar-collapsed .layout-topbar{left:var(--helix-nav-width-collapsed);width:calc(100% - var(--helix-nav-width-collapsed))}.layout-wrapper.layout-static.layout-sidebar-collapsed>helix-status-bar{left:var(--helix-nav-width-collapsed)}.layout-wrapper .layout-mask{display:none}}@media(max-width:991px){.blocked-scroll{overflow:hidden}.layout-wrapper .layout-main-container{margin-left:0}.layout-wrapper .layout-topbar{left:0;width:100%}.layout-wrapper .helix-nav-rail{transform:translate(-100%);left:0;transition:transform .4s cubic-bezier(.05,.74,.2,.99),left .4s cubic-bezier(.05,.74,.2,.99)}.layout-wrapper.layout-mobile-active .helix-nav-rail{transform:translate(0)}.layout-wrapper.layout-mobile-active .layout-mask{display:block}}@media screen and (min-width:1960px){.layout-main,.landing-wrapper{width:100%;max-width:1760px;margin-left:auto!important;margin-right:auto!important}}\n"],
|
|
2495
2523
|
dependencies: [
|
|
2496
2524
|
{
|
|
@@ -2579,7 +2607,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2579
2607
|
],
|
|
2580
2608
|
changeDetection: ChangeDetectionStrategy.Eager,
|
|
2581
2609
|
encapsulation: ViewEncapsulation.None,
|
|
2582
|
-
template: "<div class=\"layout-wrapper\" [ngClass]=\"containerClass()\">\n <helix-topbar\n [items]=\"effectiveItems()\"\n [topbarActions]=\"effectiveTopbarActions()\"\n
|
|
2610
|
+
template: "<div class=\"layout-wrapper\" [ngClass]=\"containerClass()\">\n <helix-topbar\n [items]=\"effectiveItems()\"\n [topbarActions]=\"effectiveTopbarActions()\"\n >\n <ng-content select=\"[helixTopbarEnd]\" ngProjectAs=\"[helixTopbarEnd]\" />\n </helix-topbar>\n <helix-nav-rail\n [model]=\"effectiveNavGroups()\"\n [appTitle]=\"appTitle()\"\n [brandIcon]=\"brandIcon()\"\n ></helix-nav-rail>\n <div class=\"layout-main-container\">\n <div class=\"layout-main\">\n <router-outlet></router-outlet>\n </div>\n </div>\n <helix-status-bar\n [brand]=\"statusBarBrand()\"\n [environment]=\"statusBarEnvironment()\"\n [note]=\"statusBarNote()\"\n [tone]=\"statusBarTone()\"\n [versions]=\"statusBarVersions()\"\n >\n <ng-content select=\"[hxStatusBarEnd]\" ngProjectAs=\"[hxStatusBarEnd]\" />\n </helix-status-bar>\n <div class=\"layout-mask\"></div>\n</div>\n",
|
|
2583
2611
|
styles: [".layout-wrapper{min-height:100vh}.layout-main-container{display:flex;flex-direction:column;min-height:100vh;padding:calc(var(--helix-topbar-height) + var(--helix-layout-gap)) var(--helix-layout-gap) calc(var(--helix-status-bar-height) + var(--helix-layout-gap)) var(--helix-layout-gap);transition:margin-left var(--layout-section-transition-duration)}.layout-main{flex:1 1 auto;min-width:0}.layout-wrapper>helix-status-bar{position:fixed;bottom:0;left:0;right:0;z-index:996;transition:left var(--layout-section-transition-duration)}.layout-mask{display:none;position:fixed;top:0;left:0;z-index:998;width:100%;height:100%;background-color:var(--maskbg)}@media(min-width:992px){.layout-wrapper.layout-overlay .layout-main-container{margin-left:0}.layout-wrapper.layout-overlay .helix-nav-rail{transform:translate(-100%);left:0;border-right:1px solid var(--helix-border);transition:transform .4s cubic-bezier(.05,.74,.2,.99),left .4s cubic-bezier(.05,.74,.2,.99);box-shadow:0 3px 5px #00000005,0 0 2px #0000000d,0 1px 4px #00000014}.layout-wrapper.layout-overlay.layout-overlay-active .helix-nav-rail{transform:translate(0)}.layout-wrapper.layout-static .layout-main-container{margin-left:var(--helix-nav-width)}.layout-wrapper.layout-static .layout-topbar{left:var(--helix-nav-width);width:calc(100% - var(--helix-nav-width))}.layout-wrapper.layout-static>helix-status-bar{left:var(--helix-nav-width)}.layout-wrapper.layout-static.layout-static-inactive .helix-nav-rail{transform:translate(-100%);left:0}.layout-wrapper.layout-static.layout-static-inactive .layout-main-container{margin-left:0}.layout-wrapper.layout-static.layout-static-inactive .layout-topbar{left:0;width:100%}.layout-wrapper.layout-static.layout-static-inactive>helix-status-bar{left:0}.layout-wrapper.layout-static.layout-sidebar-collapsed .layout-main-container{margin-left:var(--helix-nav-width-collapsed)}.layout-wrapper.layout-static.layout-sidebar-collapsed .layout-topbar{left:var(--helix-nav-width-collapsed);width:calc(100% - var(--helix-nav-width-collapsed))}.layout-wrapper.layout-static.layout-sidebar-collapsed>helix-status-bar{left:var(--helix-nav-width-collapsed)}.layout-wrapper .layout-mask{display:none}}@media(max-width:991px){.blocked-scroll{overflow:hidden}.layout-wrapper .layout-main-container{margin-left:0}.layout-wrapper .layout-topbar{left:0;width:100%}.layout-wrapper .helix-nav-rail{transform:translate(-100%);left:0;transition:transform .4s cubic-bezier(.05,.74,.2,.99),left .4s cubic-bezier(.05,.74,.2,.99)}.layout-wrapper.layout-mobile-active .helix-nav-rail{transform:translate(0)}.layout-wrapper.layout-mobile-active .layout-mask{display:block}}@media screen and (min-width:1960px){.layout-main,.landing-wrapper{width:100%;max-width:1760px;margin-left:auto!important;margin-right:auto!important}}\n"]
|
|
2584
2612
|
}]
|
|
2585
2613
|
}],
|