@gravionlabs/helix-shell 22.3.0 → 22.3.2
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.
|
@@ -2461,7 +2461,7 @@ var HelixTopbar = class HelixTopbar {
|
|
|
2461
2461
|
outputs: { search: "search" },
|
|
2462
2462
|
ngImport: i0,
|
|
2463
2463
|
template: "<ng-template #actionTpl let-entry>\n @if (customTemplate(entry); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n } @else {\n @switch (entry.action) {\n @case ('search') {\n <helix-search-action\n [placeholder]=\"searchPlaceholder()\"\n (search)=\"search.emit($event)\"\n />\n }\n @case ('darkMode') {\n <helix-dark-mode-action />\n }\n @case ('configurator') {\n <helix-configurator-action />\n }\n @case ('alerts') {\n <helix-alert-action [count]=\"alerts().length\" [alerts]=\"alerts()\" />\n }\n }\n }\n</ng-template>\n\n<div class=\"layout-topbar\" [class.layout-topbar-narrow]=\"narrow()\">\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 } @else {\n <span class=\"layout-topbar-title\">{{ effectiveTitle() }}</span>\n }\n @if (zones().start.length > 0) {\n <div class=\"layout-topbar-zone layout-topbar-zone-start\">\n @for (entry of zones().start; track $index) {\n <ng-container [ngTemplateOutlet]=\"actionTpl\" [ngTemplateOutletContext]=\"{ $implicit: entry.config }\" />\n }\n </div>\n }\n </div>\n\n @if (zones().center.length > 0) {\n <div class=\"layout-topbar-center layout-topbar-zone\">\n @for (entry of zones().center; track $index) {\n <ng-container [ngTemplateOutlet]=\"actionTpl\" [ngTemplateOutletContext]=\"{ $implicit: entry.config }\" />\n }\n </div>\n }\n\n @if (zones().end.length > 0) {\n <div class=\"layout-topbar-end layout-topbar-zone\">\n @for (entry of zones().end; track $index) {\n <ng-container [ngTemplateOutlet]=\"actionTpl\" [ngTemplateOutletContext]=\"{ $implicit: entry.config }\" />\n }\n </div>\n }\n</div>\n",
|
|
2464
|
-
styles: [":host{display:block;flex:0 0 auto}.layout-topbar{box-sizing:border-box;height:var(--helix-topbar-height, 3rem);padding:0 var(--helix-panel-gap, 4px) 0 1rem;border-bottom:1px solid var(--h-content-border-color);display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.75rem}.layout-topbar .layout-topbar-start{grid-column:1;display:flex;align-items:center;gap:.5rem;min-width:0}.layout-topbar .layout-topbar-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;font-weight:600;color:var(--text-color)}.layout-topbar .layout-topbar-zone{display:flex;align-items:center;gap:.5rem;min-width:0}.layout-topbar .layout-topbar-zone-start{margin-left:auto}.layout-topbar .layout-topbar-center{grid-column:2;width:clamp(10rem,30vw,28rem)}.layout-topbar .layout-topbar-end{grid-column:3;justify-content:flex-end}.layout-topbar.layout-topbar-narrow{grid-template-columns:minmax(0,1fr) auto}.layout-topbar.layout-topbar-narrow .layout-topbar-end{grid-column:2}.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:var(--h-border-radius-md);width:var(--helix-control-height, 32px);height:var(--helix-control-height, 32px);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-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}}@media(max-width:991px){.layout-topbar{padding:0 .5rem}.layout-topbar .layout-menu-button{margin-left:0}}.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"],
|
|
2464
|
+
styles: [":host{display:block;flex:0 0 auto;position:relative;z-index:1}.layout-topbar{box-sizing:border-box;height:var(--helix-topbar-height, 3rem);padding:0 var(--helix-panel-gap, 4px) 0 1rem;border-bottom:1px solid var(--h-content-border-color);display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.75rem}.layout-topbar .layout-topbar-start{grid-column:1;display:flex;align-items:center;gap:.5rem;min-width:0}.layout-topbar .layout-topbar-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;font-weight:600;color:var(--text-color)}.layout-topbar .layout-topbar-zone{display:flex;align-items:center;gap:.5rem;min-width:0}.layout-topbar .layout-topbar-zone-start{margin-left:auto}.layout-topbar .layout-topbar-center{grid-column:2;width:clamp(10rem,30vw,28rem)}.layout-topbar .layout-topbar-end{grid-column:3;justify-content:flex-end}.layout-topbar.layout-topbar-narrow{grid-template-columns:minmax(0,1fr) auto}.layout-topbar.layout-topbar-narrow .layout-topbar-end{grid-column:2}.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:var(--h-border-radius-md);width:var(--helix-control-height, 32px);height:var(--helix-control-height, 32px);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-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}}@media(max-width:991px){.layout-topbar{padding:0 .5rem}.layout-topbar .layout-menu-button{margin-left:0}}.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"],
|
|
2465
2465
|
dependencies: [
|
|
2466
2466
|
{
|
|
2467
2467
|
kind: "ngmodule",
|
|
@@ -2540,7 +2540,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2540
2540
|
],
|
|
2541
2541
|
changeDetection: ChangeDetectionStrategy.Eager,
|
|
2542
2542
|
template: "<ng-template #actionTpl let-entry>\n @if (customTemplate(entry); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" />\n } @else {\n @switch (entry.action) {\n @case ('search') {\n <helix-search-action\n [placeholder]=\"searchPlaceholder()\"\n (search)=\"search.emit($event)\"\n />\n }\n @case ('darkMode') {\n <helix-dark-mode-action />\n }\n @case ('configurator') {\n <helix-configurator-action />\n }\n @case ('alerts') {\n <helix-alert-action [count]=\"alerts().length\" [alerts]=\"alerts()\" />\n }\n }\n }\n</ng-template>\n\n<div class=\"layout-topbar\" [class.layout-topbar-narrow]=\"narrow()\">\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 } @else {\n <span class=\"layout-topbar-title\">{{ effectiveTitle() }}</span>\n }\n @if (zones().start.length > 0) {\n <div class=\"layout-topbar-zone layout-topbar-zone-start\">\n @for (entry of zones().start; track $index) {\n <ng-container [ngTemplateOutlet]=\"actionTpl\" [ngTemplateOutletContext]=\"{ $implicit: entry.config }\" />\n }\n </div>\n }\n </div>\n\n @if (zones().center.length > 0) {\n <div class=\"layout-topbar-center layout-topbar-zone\">\n @for (entry of zones().center; track $index) {\n <ng-container [ngTemplateOutlet]=\"actionTpl\" [ngTemplateOutletContext]=\"{ $implicit: entry.config }\" />\n }\n </div>\n }\n\n @if (zones().end.length > 0) {\n <div class=\"layout-topbar-end layout-topbar-zone\">\n @for (entry of zones().end; track $index) {\n <ng-container [ngTemplateOutlet]=\"actionTpl\" [ngTemplateOutletContext]=\"{ $implicit: entry.config }\" />\n }\n </div>\n }\n</div>\n",
|
|
2543
|
-
styles: [":host{display:block;flex:0 0 auto}.layout-topbar{box-sizing:border-box;height:var(--helix-topbar-height, 3rem);padding:0 var(--helix-panel-gap, 4px) 0 1rem;border-bottom:1px solid var(--h-content-border-color);display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.75rem}.layout-topbar .layout-topbar-start{grid-column:1;display:flex;align-items:center;gap:.5rem;min-width:0}.layout-topbar .layout-topbar-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;font-weight:600;color:var(--text-color)}.layout-topbar .layout-topbar-zone{display:flex;align-items:center;gap:.5rem;min-width:0}.layout-topbar .layout-topbar-zone-start{margin-left:auto}.layout-topbar .layout-topbar-center{grid-column:2;width:clamp(10rem,30vw,28rem)}.layout-topbar .layout-topbar-end{grid-column:3;justify-content:flex-end}.layout-topbar.layout-topbar-narrow{grid-template-columns:minmax(0,1fr) auto}.layout-topbar.layout-topbar-narrow .layout-topbar-end{grid-column:2}.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:var(--h-border-radius-md);width:var(--helix-control-height, 32px);height:var(--helix-control-height, 32px);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-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}}@media(max-width:991px){.layout-topbar{padding:0 .5rem}.layout-topbar .layout-menu-button{margin-left:0}}.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"]
|
|
2543
|
+
styles: [":host{display:block;flex:0 0 auto;position:relative;z-index:1}.layout-topbar{box-sizing:border-box;height:var(--helix-topbar-height, 3rem);padding:0 var(--helix-panel-gap, 4px) 0 1rem;border-bottom:1px solid var(--h-content-border-color);display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.75rem}.layout-topbar .layout-topbar-start{grid-column:1;display:flex;align-items:center;gap:.5rem;min-width:0}.layout-topbar .layout-topbar-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;font-weight:600;color:var(--text-color)}.layout-topbar .layout-topbar-zone{display:flex;align-items:center;gap:.5rem;min-width:0}.layout-topbar .layout-topbar-zone-start{margin-left:auto}.layout-topbar .layout-topbar-center{grid-column:2;width:clamp(10rem,30vw,28rem)}.layout-topbar .layout-topbar-end{grid-column:3;justify-content:flex-end}.layout-topbar.layout-topbar-narrow{grid-template-columns:minmax(0,1fr) auto}.layout-topbar.layout-topbar-narrow .layout-topbar-end{grid-column:2}.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:var(--h-border-radius-md);width:var(--helix-control-height, 32px);height:var(--helix-control-height, 32px);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-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}}@media(max-width:991px){.layout-topbar{padding:0 .5rem}.layout-topbar .layout-menu-button{margin-left:0}}.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"]
|
|
2544
2544
|
}]
|
|
2545
2545
|
}],
|
|
2546
2546
|
propDecorators: {
|