@weeehaoooz/talos-ui 0.1.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/LICENSE +21 -0
- package/README.md +85 -0
- package/fesm2022/weeehaoooz-talos-ui-button-button-group.mjs +237 -0
- package/fesm2022/weeehaoooz-talos-ui-button-button-group.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-button-button.mjs +93 -0
- package/fesm2022/weeehaoooz-talos-ui-button-button.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-core.mjs +438 -0
- package/fesm2022/weeehaoooz-talos-ui-core.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-data-display-badge.mjs +233 -0
- package/fesm2022/weeehaoooz-talos-ui-data-display-badge.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-data-display-status-tag.mjs +361 -0
- package/fesm2022/weeehaoooz-talos-ui-data-display-status-tag.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-data-display-timeline.mjs +312 -0
- package/fesm2022/weeehaoooz-talos-ui-data-display-timeline.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-data-display-trend-indicator.mjs +235 -0
- package/fesm2022/weeehaoooz-talos-ui-data-display-trend-indicator.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-data-viz-category-bar.mjs +462 -0
- package/fesm2022/weeehaoooz-talos-ui-data-viz-category-bar.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-data-viz-heatmap.mjs +805 -0
- package/fesm2022/weeehaoooz-talos-ui-data-viz-heatmap.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-data-viz-mini-donut.mjs +267 -0
- package/fesm2022/weeehaoooz-talos-ui-data-viz-mini-donut.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-data-viz-mini-gauge.mjs +351 -0
- package/fesm2022/weeehaoooz-talos-ui-data-viz-mini-gauge.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-data-viz-sparkline.mjs +566 -0
- package/fesm2022/weeehaoooz-talos-ui-data-viz-sparkline.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-feedback-alert.mjs +534 -0
- package/fesm2022/weeehaoooz-talos-ui-feedback-alert.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-feedback-dialog.mjs +446 -0
- package/fesm2022/weeehaoooz-talos-ui-feedback-dialog.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-feedback-snackbar.mjs +376 -0
- package/fesm2022/weeehaoooz-talos-ui-feedback-snackbar.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-feedback-tooltip.mjs +147 -0
- package/fesm2022/weeehaoooz-talos-ui-feedback-tooltip.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-affix.mjs +242 -0
- package/fesm2022/weeehaoooz-talos-ui-form-affix.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-autocomplete.mjs +514 -0
- package/fesm2022/weeehaoooz-talos-ui-form-autocomplete.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-checkbox.mjs +548 -0
- package/fesm2022/weeehaoooz-talos-ui-form-checkbox.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-chips.mjs +692 -0
- package/fesm2022/weeehaoooz-talos-ui-form-chips.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-color-picker.mjs +761 -0
- package/fesm2022/weeehaoooz-talos-ui-form-color-picker.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-date-picker.mjs +896 -0
- package/fesm2022/weeehaoooz-talos-ui-form-date-picker.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-date-range-picker.mjs +872 -0
- package/fesm2022/weeehaoooz-talos-ui-form-date-range-picker.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-date-time-picker.mjs +119 -0
- package/fesm2022/weeehaoooz-talos-ui-form-date-time-picker.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-date-time-range-picker.mjs +135 -0
- package/fesm2022/weeehaoooz-talos-ui-form-date-time-range-picker.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-drop-zone.mjs +666 -0
- package/fesm2022/weeehaoooz-talos-ui-form-drop-zone.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-form-field.mjs +147 -0
- package/fesm2022/weeehaoooz-talos-ui-form-form-field.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-input.mjs +33 -0
- package/fesm2022/weeehaoooz-talos-ui-form-input.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-otp.mjs +455 -0
- package/fesm2022/weeehaoooz-talos-ui-form-otp.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-password-input.mjs +379 -0
- package/fesm2022/weeehaoooz-talos-ui-form-password-input.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-radio.mjs +297 -0
- package/fesm2022/weeehaoooz-talos-ui-form-radio.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-range-input.mjs +661 -0
- package/fesm2022/weeehaoooz-talos-ui-form-range-input.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-rating.mjs +346 -0
- package/fesm2022/weeehaoooz-talos-ui-form-rating.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-select-input.mjs +896 -0
- package/fesm2022/weeehaoooz-talos-ui-form-select-input.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-slide-toggle.mjs +252 -0
- package/fesm2022/weeehaoooz-talos-ui-form-slide-toggle.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-form-transfer-list.mjs +916 -0
- package/fesm2022/weeehaoooz-talos-ui-form-transfer-list.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-layout.mjs +851 -0
- package/fesm2022/weeehaoooz-talos-ui-layout.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui-nav.mjs +897 -0
- package/fesm2022/weeehaoooz-talos-ui-nav.mjs.map +1 -0
- package/fesm2022/weeehaoooz-talos-ui.mjs +17058 -0
- package/fesm2022/weeehaoooz-talos-ui.mjs.map +1 -0
- package/package.json +203 -0
- package/schematics/collection.json +10 -0
- package/schematics/ng-add/index.d.ts +3 -0
- package/schematics/ng-add/index.js +99 -0
- package/schematics/ng-add/schema.d.ts +10 -0
- package/schematics/ng-add/schema.js +2 -0
- package/schematics/ng-add/schema.json +52 -0
- package/styles/_alert.scss +56 -0
- package/styles/_badge.scss +279 -0
- package/styles/_button-group.scss +470 -0
- package/styles/_buttons.scss +442 -0
- package/styles/_card.scss +18 -0
- package/styles/_dialog.scss +116 -0
- package/styles/_drop-zone.scss +19 -0
- package/styles/_form-controls.scss +660 -0
- package/styles/_slide-toggle.scss +171 -0
- package/styles/_status-tag.scss +108 -0
- package/styles/_timeline.scss +19 -0
- package/styles/_tooltip.scss +32 -0
- package/styles/_typography.scss +279 -0
- package/styles/_variables.scss +590 -0
- package/styles/index.scss +15 -0
- package/types/weeehaoooz-talos-ui-button-button-group.d.ts +59 -0
- package/types/weeehaoooz-talos-ui-button-button-group.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-button-button.d.ts +38 -0
- package/types/weeehaoooz-talos-ui-button-button.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-core.d.ts +95 -0
- package/types/weeehaoooz-talos-ui-core.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-data-display-badge.d.ts +119 -0
- package/types/weeehaoooz-talos-ui-data-display-badge.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-data-display-status-tag.d.ts +135 -0
- package/types/weeehaoooz-talos-ui-data-display-status-tag.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-data-display-timeline.d.ts +144 -0
- package/types/weeehaoooz-talos-ui-data-display-timeline.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-data-display-trend-indicator.d.ts +83 -0
- package/types/weeehaoooz-talos-ui-data-display-trend-indicator.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-data-viz-category-bar.d.ts +255 -0
- package/types/weeehaoooz-talos-ui-data-viz-category-bar.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-data-viz-heatmap.d.ts +204 -0
- package/types/weeehaoooz-talos-ui-data-viz-heatmap.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-data-viz-mini-donut.d.ts +101 -0
- package/types/weeehaoooz-talos-ui-data-viz-mini-donut.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-data-viz-mini-gauge.d.ts +138 -0
- package/types/weeehaoooz-talos-ui-data-viz-mini-gauge.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-data-viz-sparkline.d.ts +161 -0
- package/types/weeehaoooz-talos-ui-data-viz-sparkline.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-feedback-alert.d.ts +212 -0
- package/types/weeehaoooz-talos-ui-feedback-alert.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-feedback-dialog.d.ts +259 -0
- package/types/weeehaoooz-talos-ui-feedback-dialog.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-feedback-snackbar.d.ts +147 -0
- package/types/weeehaoooz-talos-ui-feedback-snackbar.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-feedback-tooltip.d.ts +32 -0
- package/types/weeehaoooz-talos-ui-feedback-tooltip.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-affix.d.ts +88 -0
- package/types/weeehaoooz-talos-ui-form-affix.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-autocomplete.d.ts +113 -0
- package/types/weeehaoooz-talos-ui-form-autocomplete.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-checkbox.d.ts +165 -0
- package/types/weeehaoooz-talos-ui-form-checkbox.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-chips.d.ts +152 -0
- package/types/weeehaoooz-talos-ui-form-chips.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-color-picker.d.ts +144 -0
- package/types/weeehaoooz-talos-ui-form-color-picker.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-date-picker.d.ts +138 -0
- package/types/weeehaoooz-talos-ui-form-date-picker.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-date-range-picker.d.ts +148 -0
- package/types/weeehaoooz-talos-ui-form-date-range-picker.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-date-time-picker.d.ts +44 -0
- package/types/weeehaoooz-talos-ui-form-date-time-picker.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-date-time-range-picker.d.ts +48 -0
- package/types/weeehaoooz-talos-ui-form-date-time-range-picker.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-drop-zone.d.ts +227 -0
- package/types/weeehaoooz-talos-ui-form-drop-zone.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-form-field.d.ts +42 -0
- package/types/weeehaoooz-talos-ui-form-form-field.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-input.d.ts +15 -0
- package/types/weeehaoooz-talos-ui-form-input.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-otp.d.ts +111 -0
- package/types/weeehaoooz-talos-ui-form-otp.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-password-input.d.ts +145 -0
- package/types/weeehaoooz-talos-ui-form-password-input.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-radio.d.ts +84 -0
- package/types/weeehaoooz-talos-ui-form-radio.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-range-input.d.ts +181 -0
- package/types/weeehaoooz-talos-ui-form-range-input.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-rating.d.ts +110 -0
- package/types/weeehaoooz-talos-ui-form-rating.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-select-input.d.ts +195 -0
- package/types/weeehaoooz-talos-ui-form-select-input.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-slide-toggle.d.ts +79 -0
- package/types/weeehaoooz-talos-ui-form-slide-toggle.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-form-transfer-list.d.ts +192 -0
- package/types/weeehaoooz-talos-ui-form-transfer-list.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-layout.d.ts +286 -0
- package/types/weeehaoooz-talos-ui-layout.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui-nav.d.ts +384 -0
- package/types/weeehaoooz-talos-ui-nav.d.ts.map +1 -0
- package/types/weeehaoooz-talos-ui.d.ts +5050 -0
- package/types/weeehaoooz-talos-ui.d.ts.map +1 -0
|
@@ -0,0 +1,897 @@
|
|
|
1
|
+
import { NgComponentOutlet, NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { input, model, Component, inject, output, computed, signal, ViewEncapsulation, ElementRef, NgModule } from '@angular/core';
|
|
4
|
+
import { LucideChevronDown, LucideSun, LucideMoon, LucideMonitor, LucidePanelLeftOpen, LucidePanelLeftClose, LucideCircleHelp, LucideSettings, LucidePanelLeft, LucideChevronsUpDown, LucideSearch } from '@lucide/angular';
|
|
5
|
+
import { LayoutService } from '@weeehaoooz/talos-ui/layout';
|
|
6
|
+
import { TalosTooltipDirective } from '@weeehaoooz/talos-ui/feedback/tooltip';
|
|
7
|
+
import { Router } from '@angular/router';
|
|
8
|
+
|
|
9
|
+
class TalosNavGroupComponent {
|
|
10
|
+
/** Optional title for the navigation group */
|
|
11
|
+
title = input(undefined, /* @ts-ignore */
|
|
12
|
+
...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
13
|
+
/** Whether the navigation group is collapsible */
|
|
14
|
+
collapsible = input(false, /* @ts-ignore */
|
|
15
|
+
...(ngDevMode ? [{ debugName: "collapsible" }] : /* istanbul ignore next */ []));
|
|
16
|
+
/** Two-way model signal for the collapsed state */
|
|
17
|
+
collapsed = model(false, /* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
|
|
19
|
+
/** Toggle the collapsed state */
|
|
20
|
+
toggleCollapse() {
|
|
21
|
+
if (!this.collapsible())
|
|
22
|
+
return;
|
|
23
|
+
this.collapsed.update((c) => !c);
|
|
24
|
+
}
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosNavGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TalosNavGroupComponent, isStandalone: true, selector: "talos-nav-group", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange" }, host: { attributes: { "role": "group" }, properties: { "class.is-collapsible": "collapsible()", "class.is-collapsed": "collapsible() && collapsed()" }, classAttribute: "nav-group talos-nav-group" }, ngImport: i0, template: `
|
|
27
|
+
@if (title(); as groupTitle) {
|
|
28
|
+
@if (collapsible()) {
|
|
29
|
+
<button
|
|
30
|
+
type="button"
|
|
31
|
+
class="nav-group-title nav-group-header-btn"
|
|
32
|
+
[attr.aria-expanded]="!collapsed()"
|
|
33
|
+
(click)="toggleCollapse()">
|
|
34
|
+
<span class="nav-group-title-text">{{ groupTitle }}</span>
|
|
35
|
+
<span class="nav-group-chevron" [class.is-collapsed]="collapsed()">
|
|
36
|
+
<svg lucideChevronDown [size]="14"></svg>
|
|
37
|
+
</span>
|
|
38
|
+
</button>
|
|
39
|
+
} @else {
|
|
40
|
+
<div class="nav-group-title">{{ groupTitle }}</div>
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
<div class="nav-group-content" [class.is-collapsed]="collapsible() && collapsed()">
|
|
44
|
+
<ul class="nav-item-list">
|
|
45
|
+
<ng-content />
|
|
46
|
+
</ul>
|
|
47
|
+
</div>
|
|
48
|
+
`, isInline: true, dependencies: [{ kind: "component", type: LucideChevronDown, selector: "svg[lucideChevronDown]" }] });
|
|
49
|
+
}
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosNavGroupComponent, decorators: [{
|
|
51
|
+
type: Component,
|
|
52
|
+
args: [{
|
|
53
|
+
selector: 'talos-nav-group',
|
|
54
|
+
imports: [LucideChevronDown],
|
|
55
|
+
template: `
|
|
56
|
+
@if (title(); as groupTitle) {
|
|
57
|
+
@if (collapsible()) {
|
|
58
|
+
<button
|
|
59
|
+
type="button"
|
|
60
|
+
class="nav-group-title nav-group-header-btn"
|
|
61
|
+
[attr.aria-expanded]="!collapsed()"
|
|
62
|
+
(click)="toggleCollapse()">
|
|
63
|
+
<span class="nav-group-title-text">{{ groupTitle }}</span>
|
|
64
|
+
<span class="nav-group-chevron" [class.is-collapsed]="collapsed()">
|
|
65
|
+
<svg lucideChevronDown [size]="14"></svg>
|
|
66
|
+
</span>
|
|
67
|
+
</button>
|
|
68
|
+
} @else {
|
|
69
|
+
<div class="nav-group-title">{{ groupTitle }}</div>
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
<div class="nav-group-content" [class.is-collapsed]="collapsible() && collapsed()">
|
|
73
|
+
<ul class="nav-item-list">
|
|
74
|
+
<ng-content />
|
|
75
|
+
</ul>
|
|
76
|
+
</div>
|
|
77
|
+
`,
|
|
78
|
+
host: {
|
|
79
|
+
'class': 'nav-group talos-nav-group',
|
|
80
|
+
'[class.is-collapsible]': 'collapsible()',
|
|
81
|
+
'[class.is-collapsed]': 'collapsible() && collapsed()',
|
|
82
|
+
'role': 'group'
|
|
83
|
+
}
|
|
84
|
+
}]
|
|
85
|
+
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }, { type: i0.Output, args: ["collapsedChange"] }] } });
|
|
86
|
+
|
|
87
|
+
class TalosNavItemComponent {
|
|
88
|
+
layoutService = inject(LayoutService, { optional: true });
|
|
89
|
+
/** Text label for the nav item */
|
|
90
|
+
label = input('', /* @ts-ignore */
|
|
91
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
92
|
+
/** Icon component type (e.g. Lucide icon) */
|
|
93
|
+
icon = input(null, /* @ts-ignore */
|
|
94
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
95
|
+
/** Whether the item is currently active */
|
|
96
|
+
active = input(false, /* @ts-ignore */
|
|
97
|
+
...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
98
|
+
/** Badge or counter displayed on the right */
|
|
99
|
+
badge = input(undefined, /* @ts-ignore */
|
|
100
|
+
...(ngDevMode ? [{ debugName: "badge" }] : /* istanbul ignore next */ []));
|
|
101
|
+
/** Whether the nav item is disabled */
|
|
102
|
+
disabled = input(false, /* @ts-ignore */
|
|
103
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
104
|
+
/** Optional route path */
|
|
105
|
+
route = input(undefined, /* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [{ debugName: "route" }] : /* istanbul ignore next */ []));
|
|
107
|
+
/** Optional custom tooltip text when collapsed */
|
|
108
|
+
tooltip = input(undefined, /* @ts-ignore */
|
|
109
|
+
...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
110
|
+
/** Optional collapsed override passed from parent side-nav */
|
|
111
|
+
collapsed = input(undefined, /* @ts-ignore */
|
|
112
|
+
...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
|
|
113
|
+
/** Output event when the nav item is clicked */
|
|
114
|
+
itemClick = output();
|
|
115
|
+
/** Whether parent sidebar is in collapsed mode */
|
|
116
|
+
isSidebarCollapsed = computed(() => {
|
|
117
|
+
const col = this.collapsed();
|
|
118
|
+
if (col !== undefined) {
|
|
119
|
+
return col;
|
|
120
|
+
}
|
|
121
|
+
return this.layoutService?.isLeftNavCollapsed() ?? false;
|
|
122
|
+
}, /* @ts-ignore */
|
|
123
|
+
...(ngDevMode ? [{ debugName: "isSidebarCollapsed" }] : /* istanbul ignore next */ []));
|
|
124
|
+
/** Computed tooltip for collapsed sidebar state */
|
|
125
|
+
computedTooltip = computed(() => {
|
|
126
|
+
if (!this.isSidebarCollapsed())
|
|
127
|
+
return null;
|
|
128
|
+
return this.tooltip() || this.label() || null;
|
|
129
|
+
}, /* @ts-ignore */
|
|
130
|
+
...(ngDevMode ? [{ debugName: "computedTooltip" }] : /* istanbul ignore next */ []));
|
|
131
|
+
handleClick() {
|
|
132
|
+
if (this.disabled())
|
|
133
|
+
return;
|
|
134
|
+
this.itemClick.emit();
|
|
135
|
+
}
|
|
136
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosNavItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
137
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TalosNavItemComponent, isStandalone: true, selector: "talos-nav-item", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, route: { classPropertyName: "route", publicName: "route", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { attributes: { "role": "listitem" }, classAttribute: "nav-item talos-nav-item" }, ngImport: i0, template: `
|
|
138
|
+
<button
|
|
139
|
+
type="button"
|
|
140
|
+
class="nav-link"
|
|
141
|
+
[class.active]="active()"
|
|
142
|
+
[disabled]="disabled()"
|
|
143
|
+
(click)="handleClick()"
|
|
144
|
+
[attr.aria-current]="active() ? 'page' : null"
|
|
145
|
+
[talosTooltip]="computedTooltip() || ''"
|
|
146
|
+
[tooltipDisabled]="!isSidebarCollapsed()"
|
|
147
|
+
tooltipPosition="right">
|
|
148
|
+
@if (icon(); as iconComp) {
|
|
149
|
+
<span class="nav-icon">
|
|
150
|
+
<ng-container *ngComponentOutlet="iconComp" />
|
|
151
|
+
</span>
|
|
152
|
+
}
|
|
153
|
+
<span class="nav-label">
|
|
154
|
+
@if (label()) {
|
|
155
|
+
{{ label() }}
|
|
156
|
+
} @else {
|
|
157
|
+
<ng-content />
|
|
158
|
+
}
|
|
159
|
+
</span>
|
|
160
|
+
@if (badge(); as b) {
|
|
161
|
+
<span class="nav-badge">{{ b }}</span>
|
|
162
|
+
}
|
|
163
|
+
</button>
|
|
164
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: TalosTooltipDirective, selector: "[talosTooltip], [tooltip]", inputs: ["talosTooltip", "tooltip", "tooltipPosition", "tooltipDisabled"] }] });
|
|
165
|
+
}
|
|
166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosNavItemComponent, decorators: [{
|
|
167
|
+
type: Component,
|
|
168
|
+
args: [{
|
|
169
|
+
selector: 'talos-nav-item',
|
|
170
|
+
imports: [NgComponentOutlet, TalosTooltipDirective],
|
|
171
|
+
template: `
|
|
172
|
+
<button
|
|
173
|
+
type="button"
|
|
174
|
+
class="nav-link"
|
|
175
|
+
[class.active]="active()"
|
|
176
|
+
[disabled]="disabled()"
|
|
177
|
+
(click)="handleClick()"
|
|
178
|
+
[attr.aria-current]="active() ? 'page' : null"
|
|
179
|
+
[talosTooltip]="computedTooltip() || ''"
|
|
180
|
+
[tooltipDisabled]="!isSidebarCollapsed()"
|
|
181
|
+
tooltipPosition="right">
|
|
182
|
+
@if (icon(); as iconComp) {
|
|
183
|
+
<span class="nav-icon">
|
|
184
|
+
<ng-container *ngComponentOutlet="iconComp" />
|
|
185
|
+
</span>
|
|
186
|
+
}
|
|
187
|
+
<span class="nav-label">
|
|
188
|
+
@if (label()) {
|
|
189
|
+
{{ label() }}
|
|
190
|
+
} @else {
|
|
191
|
+
<ng-content />
|
|
192
|
+
}
|
|
193
|
+
</span>
|
|
194
|
+
@if (badge(); as b) {
|
|
195
|
+
<span class="nav-badge">{{ b }}</span>
|
|
196
|
+
}
|
|
197
|
+
</button>
|
|
198
|
+
`,
|
|
199
|
+
host: {
|
|
200
|
+
'class': 'nav-item talos-nav-item',
|
|
201
|
+
'role': 'listitem'
|
|
202
|
+
}
|
|
203
|
+
}]
|
|
204
|
+
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], route: [{ type: i0.Input, args: [{ isSignal: true, alias: "route", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }] } });
|
|
205
|
+
|
|
206
|
+
class TalosNavThemeToggleComponent {
|
|
207
|
+
layoutService = inject(LayoutService, { optional: true });
|
|
208
|
+
/** Explicit 3-way theme mode: 'system' | 'light' | 'dark' */
|
|
209
|
+
themeMode = input(null, /* @ts-ignore */
|
|
210
|
+
...(ngDevMode ? [{ debugName: "themeMode" }] : /* istanbul ignore next */ []));
|
|
211
|
+
/** Current dark mode state (boolean fallback for backward compatibility) */
|
|
212
|
+
isDarkMode = input(false, /* @ts-ignore */
|
|
213
|
+
...(ngDevMode ? [{ debugName: "isDarkMode" }] : /* istanbul ignore next */ []));
|
|
214
|
+
/** Whether to show the text label beside the toggle */
|
|
215
|
+
showLabel = input(true, /* @ts-ignore */
|
|
216
|
+
...(ngDevMode ? [{ debugName: "showLabel" }] : /* istanbul ignore next */ []));
|
|
217
|
+
/** Label shown for system mode */
|
|
218
|
+
systemLabel = input('System Mode', /* @ts-ignore */
|
|
219
|
+
...(ngDevMode ? [{ debugName: "systemLabel" }] : /* istanbul ignore next */ []));
|
|
220
|
+
/** Label shown for light mode */
|
|
221
|
+
lightLabel = input('Light Mode', /* @ts-ignore */
|
|
222
|
+
...(ngDevMode ? [{ debugName: "lightLabel" }] : /* istanbul ignore next */ []));
|
|
223
|
+
/** Label shown for dark mode */
|
|
224
|
+
darkLabel = input('Dark Mode', /* @ts-ignore */
|
|
225
|
+
...(ngDevMode ? [{ debugName: "darkLabel" }] : /* istanbul ignore next */ []));
|
|
226
|
+
/** Optional custom tooltip text when collapsed */
|
|
227
|
+
tooltip = input(undefined, /* @ts-ignore */
|
|
228
|
+
...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
229
|
+
/** Output event when the toggle is clicked */
|
|
230
|
+
themeToggle = output();
|
|
231
|
+
/** Output event with next theme mode ('system' | 'light' | 'dark') */
|
|
232
|
+
themeModeChange = output();
|
|
233
|
+
/** Output event with next dark mode state */
|
|
234
|
+
isDarkModeChange = output();
|
|
235
|
+
/** Computed effective theme mode */
|
|
236
|
+
effectiveMode = computed(() => {
|
|
237
|
+
const mode = this.themeMode();
|
|
238
|
+
if (mode)
|
|
239
|
+
return mode;
|
|
240
|
+
return this.isDarkMode() ? 'dark' : 'light';
|
|
241
|
+
}, /* @ts-ignore */
|
|
242
|
+
...(ngDevMode ? [{ debugName: "effectiveMode" }] : /* istanbul ignore next */ []));
|
|
243
|
+
/** Computed label for active mode */
|
|
244
|
+
currentModeLabel = computed(() => {
|
|
245
|
+
switch (this.effectiveMode()) {
|
|
246
|
+
case 'system': return this.systemLabel();
|
|
247
|
+
case 'dark': return this.darkLabel();
|
|
248
|
+
default: return this.lightLabel();
|
|
249
|
+
}
|
|
250
|
+
}, /* @ts-ignore */
|
|
251
|
+
...(ngDevMode ? [{ debugName: "currentModeLabel" }] : /* istanbul ignore next */ []));
|
|
252
|
+
/** Computed next mode in cycle: system -> light -> dark -> system */
|
|
253
|
+
nextMode = computed(() => {
|
|
254
|
+
switch (this.effectiveMode()) {
|
|
255
|
+
case 'system': return 'light';
|
|
256
|
+
case 'light': return 'dark';
|
|
257
|
+
case 'dark': return 'system';
|
|
258
|
+
default: return 'system';
|
|
259
|
+
}
|
|
260
|
+
}, /* @ts-ignore */
|
|
261
|
+
...(ngDevMode ? [{ debugName: "nextMode" }] : /* istanbul ignore next */ []));
|
|
262
|
+
/** Computed accessible aria label */
|
|
263
|
+
computedAriaLabel = computed(() => {
|
|
264
|
+
const current = this.currentModeLabel();
|
|
265
|
+
const nextModeName = this.nextMode() === 'system' ? this.systemLabel() : this.nextMode() === 'dark' ? this.darkLabel() : this.lightLabel();
|
|
266
|
+
return `Current theme: ${current}. Switch to ${nextModeName}`;
|
|
267
|
+
}, /* @ts-ignore */
|
|
268
|
+
...(ngDevMode ? [{ debugName: "computedAriaLabel" }] : /* istanbul ignore next */ []));
|
|
269
|
+
/** Computed tooltip for collapsed sidebar state */
|
|
270
|
+
computedTooltip = computed(() => {
|
|
271
|
+
const isCollapsed = this.layoutService?.isLeftNavCollapsed() ?? false;
|
|
272
|
+
if (!isCollapsed)
|
|
273
|
+
return null;
|
|
274
|
+
return this.tooltip() || `Theme: ${this.currentModeLabel()}`;
|
|
275
|
+
}, /* @ts-ignore */
|
|
276
|
+
...(ngDevMode ? [{ debugName: "computedTooltip" }] : /* istanbul ignore next */ []));
|
|
277
|
+
handleToggle() {
|
|
278
|
+
const next = this.nextMode();
|
|
279
|
+
this.themeToggle.emit();
|
|
280
|
+
this.themeModeChange.emit(next);
|
|
281
|
+
this.isDarkModeChange.emit(next === 'dark');
|
|
282
|
+
}
|
|
283
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosNavThemeToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
284
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TalosNavThemeToggleComponent, isStandalone: true, selector: "talos-nav-theme-toggle", inputs: { themeMode: { classPropertyName: "themeMode", publicName: "themeMode", isSignal: true, isRequired: false, transformFunction: null }, isDarkMode: { classPropertyName: "isDarkMode", publicName: "isDarkMode", isSignal: true, isRequired: false, transformFunction: null }, showLabel: { classPropertyName: "showLabel", publicName: "showLabel", isSignal: true, isRequired: false, transformFunction: null }, systemLabel: { classPropertyName: "systemLabel", publicName: "systemLabel", isSignal: true, isRequired: false, transformFunction: null }, lightLabel: { classPropertyName: "lightLabel", publicName: "lightLabel", isSignal: true, isRequired: false, transformFunction: null }, darkLabel: { classPropertyName: "darkLabel", publicName: "darkLabel", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { themeToggle: "themeToggle", themeModeChange: "themeModeChange", isDarkModeChange: "isDarkModeChange" }, host: { properties: { "class.is-collapsed": "layoutService?.isLeftNavCollapsed() ?? false" }, classAttribute: "talos-nav-theme-toggle-host" }, ngImport: i0, template: `
|
|
285
|
+
<button
|
|
286
|
+
type="button"
|
|
287
|
+
class="theme-toggle-btn"
|
|
288
|
+
(click)="handleToggle()"
|
|
289
|
+
[attr.aria-label]="computedAriaLabel()"
|
|
290
|
+
[talosTooltip]="computedTooltip() || ''"
|
|
291
|
+
[tooltipDisabled]="!layoutService?.isLeftNavCollapsed()"
|
|
292
|
+
tooltipPosition="right">
|
|
293
|
+
<span class="theme-toggle-icon">
|
|
294
|
+
@if (effectiveMode() === 'system') {
|
|
295
|
+
<svg lucideMonitor [size]="16"></svg>
|
|
296
|
+
} @else if (effectiveMode() === 'dark') {
|
|
297
|
+
<svg lucideMoon [size]="16"></svg>
|
|
298
|
+
} @else {
|
|
299
|
+
<svg lucideSun [size]="16"></svg>
|
|
300
|
+
}
|
|
301
|
+
</span>
|
|
302
|
+
@if (showLabel()) {
|
|
303
|
+
<span class="theme-toggle-label">{{ currentModeLabel() }}</span>
|
|
304
|
+
}
|
|
305
|
+
<span
|
|
306
|
+
class="theme-toggle-indicator"
|
|
307
|
+
[class.is-system]="effectiveMode() === 'system'"
|
|
308
|
+
[class.is-light]="effectiveMode() === 'light'"
|
|
309
|
+
[class.is-dark]="effectiveMode() === 'dark'"
|
|
310
|
+
aria-hidden="true">
|
|
311
|
+
<span class="indicator-thumb"></span>
|
|
312
|
+
</span>
|
|
313
|
+
</button>
|
|
314
|
+
`, isInline: true, styles: [":host{display:block;width:100%}.theme-toggle-btn{display:flex;align-items:center;width:100%;height:36px;padding:0 10px;border-radius:8px;border:1px solid var(--talos-nav-border-color, var(--nav-border-color, #e2e8f0));background:var(--talos-card-bg, var(--talos-nav-bg, #ffffff));color:var(--talos-text-color, var(--text-color, #0f172a));font-size:12.5px;font-weight:500;cursor:pointer;box-sizing:border-box;gap:9px;white-space:nowrap;transition:background-color .15s ease,color .15s ease,border-color .15s ease,padding .25s cubic-bezier(.4,0,.2,1),gap .25s cubic-bezier(.4,0,.2,1),width .25s cubic-bezier(.4,0,.2,1)}.theme-toggle-btn:hover{background-color:var(--talos-bg-color, var(--bg-color, #f8fafc));color:var(--talos-primary-color, var(--primary-color, #2563eb));border-color:var(--talos-primary-color, var(--primary-color, #2563eb))}.theme-toggle-btn:hover .theme-toggle-icon{color:var(--talos-primary-color, var(--primary-color, #2563eb))}.theme-toggle-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;color:var(--talos-primary-color, var(--primary-color, #2563eb));transition:color .15s ease}.theme-toggle-icon svg,.theme-toggle-icon lucide-icon{width:15px;height:15px}.theme-toggle-label{flex:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:1;transform:translate(0);max-width:140px;transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}.theme-toggle-indicator{width:40px;height:16px;border-radius:9999px;background:var(--talos-border-color, #cbd5e1);position:relative;flex-shrink:0;display:flex;align-items:center;padding:2px;box-sizing:border-box;opacity:1;max-width:44px;transition:background-color .2s ease,opacity .18s cubic-bezier(.4,0,.2,1),max-width .25s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}.theme-toggle-indicator .indicator-thumb{display:block;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #00000040;transition:transform .22s cubic-bezier(.4,0,.2,1);transform:translate(0)}.theme-toggle-indicator.is-system{background:var(--talos-border-color, #94a3b8)}.theme-toggle-indicator.is-system .indicator-thumb{transform:translate(0)}.theme-toggle-indicator.is-light{background:#f59e0b}.theme-toggle-indicator.is-light .indicator-thumb{transform:translate(12px)}.theme-toggle-indicator.is-dark{background:var(--talos-primary-color, var(--primary-color, #2563eb))}.theme-toggle-indicator.is-dark .indicator-thumb{transform:translate(24px)}:host(.is-collapsed) .theme-toggle-btn{padding:0;gap:0;justify-content:center;align-items:center;width:38px;height:36px;margin:0 auto}:host(.is-collapsed) .theme-toggle-btn .theme-toggle-icon{display:flex;align-items:center;justify-content:center;margin:0}:host(.is-collapsed) .theme-toggle-btn .theme-toggle-label{display:none!important;opacity:0;max-width:0;width:0;padding:0;margin:0;flex:0 0 0;overflow:hidden;visibility:hidden;pointer-events:none}:host(.is-collapsed) .theme-toggle-btn .theme-toggle-indicator{display:none!important;opacity:0;max-width:0;width:0!important;height:0!important;padding:0!important;margin:0!important;border:none!important;flex:0 0 0!important;overflow:hidden;visibility:hidden;pointer-events:none}\n"], dependencies: [{ kind: "component", type: LucideSun, selector: "svg[lucideSun]" }, { kind: "component", type: LucideMoon, selector: "svg[lucideMoon]" }, { kind: "component", type: LucideMonitor, selector: "svg[lucideMonitor]" }, { kind: "directive", type: TalosTooltipDirective, selector: "[talosTooltip], [tooltip]", inputs: ["talosTooltip", "tooltip", "tooltipPosition", "tooltipDisabled"] }] });
|
|
315
|
+
}
|
|
316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosNavThemeToggleComponent, decorators: [{
|
|
317
|
+
type: Component,
|
|
318
|
+
args: [{ selector: 'talos-nav-theme-toggle', imports: [LucideSun, LucideMoon, LucideMonitor, TalosTooltipDirective], template: `
|
|
319
|
+
<button
|
|
320
|
+
type="button"
|
|
321
|
+
class="theme-toggle-btn"
|
|
322
|
+
(click)="handleToggle()"
|
|
323
|
+
[attr.aria-label]="computedAriaLabel()"
|
|
324
|
+
[talosTooltip]="computedTooltip() || ''"
|
|
325
|
+
[tooltipDisabled]="!layoutService?.isLeftNavCollapsed()"
|
|
326
|
+
tooltipPosition="right">
|
|
327
|
+
<span class="theme-toggle-icon">
|
|
328
|
+
@if (effectiveMode() === 'system') {
|
|
329
|
+
<svg lucideMonitor [size]="16"></svg>
|
|
330
|
+
} @else if (effectiveMode() === 'dark') {
|
|
331
|
+
<svg lucideMoon [size]="16"></svg>
|
|
332
|
+
} @else {
|
|
333
|
+
<svg lucideSun [size]="16"></svg>
|
|
334
|
+
}
|
|
335
|
+
</span>
|
|
336
|
+
@if (showLabel()) {
|
|
337
|
+
<span class="theme-toggle-label">{{ currentModeLabel() }}</span>
|
|
338
|
+
}
|
|
339
|
+
<span
|
|
340
|
+
class="theme-toggle-indicator"
|
|
341
|
+
[class.is-system]="effectiveMode() === 'system'"
|
|
342
|
+
[class.is-light]="effectiveMode() === 'light'"
|
|
343
|
+
[class.is-dark]="effectiveMode() === 'dark'"
|
|
344
|
+
aria-hidden="true">
|
|
345
|
+
<span class="indicator-thumb"></span>
|
|
346
|
+
</span>
|
|
347
|
+
</button>
|
|
348
|
+
`, host: {
|
|
349
|
+
'class': 'talos-nav-theme-toggle-host',
|
|
350
|
+
'[class.is-collapsed]': 'layoutService?.isLeftNavCollapsed() ?? false'
|
|
351
|
+
}, styles: [":host{display:block;width:100%}.theme-toggle-btn{display:flex;align-items:center;width:100%;height:36px;padding:0 10px;border-radius:8px;border:1px solid var(--talos-nav-border-color, var(--nav-border-color, #e2e8f0));background:var(--talos-card-bg, var(--talos-nav-bg, #ffffff));color:var(--talos-text-color, var(--text-color, #0f172a));font-size:12.5px;font-weight:500;cursor:pointer;box-sizing:border-box;gap:9px;white-space:nowrap;transition:background-color .15s ease,color .15s ease,border-color .15s ease,padding .25s cubic-bezier(.4,0,.2,1),gap .25s cubic-bezier(.4,0,.2,1),width .25s cubic-bezier(.4,0,.2,1)}.theme-toggle-btn:hover{background-color:var(--talos-bg-color, var(--bg-color, #f8fafc));color:var(--talos-primary-color, var(--primary-color, #2563eb));border-color:var(--talos-primary-color, var(--primary-color, #2563eb))}.theme-toggle-btn:hover .theme-toggle-icon{color:var(--talos-primary-color, var(--primary-color, #2563eb))}.theme-toggle-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;color:var(--talos-primary-color, var(--primary-color, #2563eb));transition:color .15s ease}.theme-toggle-icon svg,.theme-toggle-icon lucide-icon{width:15px;height:15px}.theme-toggle-label{flex:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:1;transform:translate(0);max-width:140px;transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}.theme-toggle-indicator{width:40px;height:16px;border-radius:9999px;background:var(--talos-border-color, #cbd5e1);position:relative;flex-shrink:0;display:flex;align-items:center;padding:2px;box-sizing:border-box;opacity:1;max-width:44px;transition:background-color .2s ease,opacity .18s cubic-bezier(.4,0,.2,1),max-width .25s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}.theme-toggle-indicator .indicator-thumb{display:block;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #00000040;transition:transform .22s cubic-bezier(.4,0,.2,1);transform:translate(0)}.theme-toggle-indicator.is-system{background:var(--talos-border-color, #94a3b8)}.theme-toggle-indicator.is-system .indicator-thumb{transform:translate(0)}.theme-toggle-indicator.is-light{background:#f59e0b}.theme-toggle-indicator.is-light .indicator-thumb{transform:translate(12px)}.theme-toggle-indicator.is-dark{background:var(--talos-primary-color, var(--primary-color, #2563eb))}.theme-toggle-indicator.is-dark .indicator-thumb{transform:translate(24px)}:host(.is-collapsed) .theme-toggle-btn{padding:0;gap:0;justify-content:center;align-items:center;width:38px;height:36px;margin:0 auto}:host(.is-collapsed) .theme-toggle-btn .theme-toggle-icon{display:flex;align-items:center;justify-content:center;margin:0}:host(.is-collapsed) .theme-toggle-btn .theme-toggle-label{display:none!important;opacity:0;max-width:0;width:0;padding:0;margin:0;flex:0 0 0;overflow:hidden;visibility:hidden;pointer-events:none}:host(.is-collapsed) .theme-toggle-btn .theme-toggle-indicator{display:none!important;opacity:0;max-width:0;width:0!important;height:0!important;padding:0!important;margin:0!important;border:none!important;flex:0 0 0!important;overflow:hidden;visibility:hidden;pointer-events:none}\n"] }]
|
|
352
|
+
}], propDecorators: { themeMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "themeMode", required: false }] }], isDarkMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDarkMode", required: false }] }], showLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLabel", required: false }] }], systemLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "systemLabel", required: false }] }], lightLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "lightLabel", required: false }] }], darkLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "darkLabel", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], themeToggle: [{ type: i0.Output, args: ["themeToggle"] }], themeModeChange: [{ type: i0.Output, args: ["themeModeChange"] }], isDarkModeChange: [{ type: i0.Output, args: ["isDarkModeChange"] }] } });
|
|
353
|
+
|
|
354
|
+
class SideNavComponent {
|
|
355
|
+
layoutService = inject(LayoutService, { optional: true });
|
|
356
|
+
LucidePanelLeftOpen = LucidePanelLeftOpen;
|
|
357
|
+
LucidePanelLeftClose = LucidePanelLeftClose;
|
|
358
|
+
/** Optional external two-way binding for collapsed state. If omitted, syncs with LayoutService. */
|
|
359
|
+
collapsed = model(undefined, /* @ts-ignore */
|
|
360
|
+
...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
|
|
361
|
+
/** Effective collapsed state */
|
|
362
|
+
isCollapsed = computed(() => {
|
|
363
|
+
const ext = this.collapsed();
|
|
364
|
+
if (ext !== undefined) {
|
|
365
|
+
return ext;
|
|
366
|
+
}
|
|
367
|
+
return this.layoutService?.isLeftNavCollapsed() ?? false;
|
|
368
|
+
}, /* @ts-ignore */
|
|
369
|
+
...(ngDevMode ? [{ debugName: "isCollapsed" }] : /* istanbul ignore next */ []));
|
|
370
|
+
/** Toggle collapsed state */
|
|
371
|
+
toggleCollapse() {
|
|
372
|
+
if (this.collapsed() !== undefined) {
|
|
373
|
+
this.collapsed.update((c) => !c);
|
|
374
|
+
}
|
|
375
|
+
else if (this.layoutService) {
|
|
376
|
+
this.layoutService.toggleLeftNav();
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
/** Custom header component to render entire header */
|
|
380
|
+
headerComponent = input(null, /* @ts-ignore */
|
|
381
|
+
...(ngDevMode ? [{ debugName: "headerComponent" }] : /* istanbul ignore next */ []));
|
|
382
|
+
/** Component inputs object to pass to headerComponent */
|
|
383
|
+
headerComponentInputs = input({}, /* @ts-ignore */
|
|
384
|
+
...(ngDevMode ? [{ debugName: "headerComponentInputs" }] : /* istanbul ignore next */ []));
|
|
385
|
+
/** Custom header template to render entire header */
|
|
386
|
+
headerTemplate = input(null, /* @ts-ignore */
|
|
387
|
+
...(ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []));
|
|
388
|
+
/** Custom logo component to render in header */
|
|
389
|
+
logoComponent = input(null, /* @ts-ignore */
|
|
390
|
+
...(ngDevMode ? [{ debugName: "logoComponent" }] : /* istanbul ignore next */ []));
|
|
391
|
+
/** Component inputs object to pass to logoComponent */
|
|
392
|
+
logoComponentInputs = input({}, /* @ts-ignore */
|
|
393
|
+
...(ngDevMode ? [{ debugName: "logoComponentInputs" }] : /* istanbul ignore next */ []));
|
|
394
|
+
/** Custom logo template to render in header */
|
|
395
|
+
logoTemplate = input(null, /* @ts-ignore */
|
|
396
|
+
...(ngDevMode ? [{ debugName: "logoTemplate" }] : /* istanbul ignore next */ []));
|
|
397
|
+
/** Custom body component to render sidebar body */
|
|
398
|
+
bodyComponent = input(null, /* @ts-ignore */
|
|
399
|
+
...(ngDevMode ? [{ debugName: "bodyComponent" }] : /* istanbul ignore next */ []));
|
|
400
|
+
/** Component inputs object to pass to bodyComponent */
|
|
401
|
+
bodyComponentInputs = input({}, /* @ts-ignore */
|
|
402
|
+
...(ngDevMode ? [{ debugName: "bodyComponentInputs" }] : /* istanbul ignore next */ []));
|
|
403
|
+
/** Custom body template to render sidebar body */
|
|
404
|
+
bodyTemplate = input(null, /* @ts-ignore */
|
|
405
|
+
...(ngDevMode ? [{ debugName: "bodyTemplate" }] : /* istanbul ignore next */ []));
|
|
406
|
+
/** Custom footer component to render sidebar footer */
|
|
407
|
+
footerComponent = input(null, /* @ts-ignore */
|
|
408
|
+
...(ngDevMode ? [{ debugName: "footerComponent" }] : /* istanbul ignore next */ []));
|
|
409
|
+
/** Component inputs object to pass to footerComponent */
|
|
410
|
+
footerComponentInputs = input({}, /* @ts-ignore */
|
|
411
|
+
...(ngDevMode ? [{ debugName: "footerComponentInputs" }] : /* istanbul ignore next */ []));
|
|
412
|
+
/** Custom footer template to render sidebar footer */
|
|
413
|
+
footerTemplate = input(null, /* @ts-ignore */
|
|
414
|
+
...(ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []));
|
|
415
|
+
/** Whether to show the header in sidebar */
|
|
416
|
+
showHeader = input(true, /* @ts-ignore */
|
|
417
|
+
...(ngDevMode ? [{ debugName: "showHeader" }] : /* istanbul ignore next */ []));
|
|
418
|
+
/** Whether to show the logo in header */
|
|
419
|
+
showLogo = input(true, /* @ts-ignore */
|
|
420
|
+
...(ngDevMode ? [{ debugName: "showLogo" }] : /* istanbul ignore next */ []));
|
|
421
|
+
/** Whether to show the hamburger / panel toggle button in header */
|
|
422
|
+
showToggle = input(true, /* @ts-ignore */
|
|
423
|
+
...(ngDevMode ? [{ debugName: "showToggle" }] : /* istanbul ignore next */ []));
|
|
424
|
+
/** Whether to show the dark mode / light mode theme toggle button in sidebar */
|
|
425
|
+
showThemeToggle = input(true, /* @ts-ignore */
|
|
426
|
+
...(ngDevMode ? [{ debugName: "showThemeToggle" }] : /* istanbul ignore next */ []));
|
|
427
|
+
/** Explicit 3-way theme mode: 'system' | 'light' | 'dark' */
|
|
428
|
+
themeMode = input(null, /* @ts-ignore */
|
|
429
|
+
...(ngDevMode ? [{ debugName: "themeMode" }] : /* istanbul ignore next */ []));
|
|
430
|
+
/** Current dark mode status (boolean fallback) */
|
|
431
|
+
isDarkMode = input(false, /* @ts-ignore */
|
|
432
|
+
...(ngDevMode ? [{ debugName: "isDarkMode" }] : /* istanbul ignore next */ []));
|
|
433
|
+
/** Output event when theme toggle is clicked */
|
|
434
|
+
themeToggle = output();
|
|
435
|
+
/** Output event when theme mode changes */
|
|
436
|
+
themeModeChange = output();
|
|
437
|
+
/** Track active item ID */
|
|
438
|
+
activeItemId = signal('dashboards', /* @ts-ignore */
|
|
439
|
+
...(ngDevMode ? [{ debugName: "activeItemId" }] : /* istanbul ignore next */ []));
|
|
440
|
+
/** Concise Navigation Groups for clean sidebar UI */
|
|
441
|
+
navGroups = input([], /* @ts-ignore */
|
|
442
|
+
...(ngDevMode ? [{ debugName: "navGroups" }] : /* istanbul ignore next */ []));
|
|
443
|
+
/** Secondary / Footer Navigation Items */
|
|
444
|
+
footerItems = input([
|
|
445
|
+
{ id: 'help', label: 'Help Center', icon: LucideCircleHelp },
|
|
446
|
+
{ id: 'settings', label: 'Settings', icon: LucideSettings }
|
|
447
|
+
], /* @ts-ignore */
|
|
448
|
+
...(ngDevMode ? [{ debugName: "footerItems" }] : /* istanbul ignore next */ []));
|
|
449
|
+
/** User Profile Info for Bottom Footer */
|
|
450
|
+
userProfile = input({
|
|
451
|
+
name: 'Eugene Lamar',
|
|
452
|
+
email: 'eugene@glan.com'
|
|
453
|
+
}, /* @ts-ignore */
|
|
454
|
+
...(ngDevMode ? [{ debugName: "userProfile" }] : /* istanbul ignore next */ []));
|
|
455
|
+
/** Output event when a nav item is clicked */
|
|
456
|
+
itemClick = output();
|
|
457
|
+
selectItem(item) {
|
|
458
|
+
if (item.disabled)
|
|
459
|
+
return;
|
|
460
|
+
if (item.id) {
|
|
461
|
+
this.activeItemId.set(item.id);
|
|
462
|
+
}
|
|
463
|
+
this.itemClick.emit(item);
|
|
464
|
+
}
|
|
465
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SideNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
466
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: SideNavComponent, isStandalone: true, selector: "talos-side-nav", inputs: { collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, headerComponent: { classPropertyName: "headerComponent", publicName: "headerComponent", isSignal: true, isRequired: false, transformFunction: null }, headerComponentInputs: { classPropertyName: "headerComponentInputs", publicName: "headerComponentInputs", isSignal: true, isRequired: false, transformFunction: null }, headerTemplate: { classPropertyName: "headerTemplate", publicName: "headerTemplate", isSignal: true, isRequired: false, transformFunction: null }, logoComponent: { classPropertyName: "logoComponent", publicName: "logoComponent", isSignal: true, isRequired: false, transformFunction: null }, logoComponentInputs: { classPropertyName: "logoComponentInputs", publicName: "logoComponentInputs", isSignal: true, isRequired: false, transformFunction: null }, logoTemplate: { classPropertyName: "logoTemplate", publicName: "logoTemplate", isSignal: true, isRequired: false, transformFunction: null }, bodyComponent: { classPropertyName: "bodyComponent", publicName: "bodyComponent", isSignal: true, isRequired: false, transformFunction: null }, bodyComponentInputs: { classPropertyName: "bodyComponentInputs", publicName: "bodyComponentInputs", isSignal: true, isRequired: false, transformFunction: null }, bodyTemplate: { classPropertyName: "bodyTemplate", publicName: "bodyTemplate", isSignal: true, isRequired: false, transformFunction: null }, footerComponent: { classPropertyName: "footerComponent", publicName: "footerComponent", isSignal: true, isRequired: false, transformFunction: null }, footerComponentInputs: { classPropertyName: "footerComponentInputs", publicName: "footerComponentInputs", isSignal: true, isRequired: false, transformFunction: null }, footerTemplate: { classPropertyName: "footerTemplate", publicName: "footerTemplate", isSignal: true, isRequired: false, transformFunction: null }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: true, isRequired: false, transformFunction: null }, showLogo: { classPropertyName: "showLogo", publicName: "showLogo", isSignal: true, isRequired: false, transformFunction: null }, showToggle: { classPropertyName: "showToggle", publicName: "showToggle", isSignal: true, isRequired: false, transformFunction: null }, showThemeToggle: { classPropertyName: "showThemeToggle", publicName: "showThemeToggle", isSignal: true, isRequired: false, transformFunction: null }, themeMode: { classPropertyName: "themeMode", publicName: "themeMode", isSignal: true, isRequired: false, transformFunction: null }, isDarkMode: { classPropertyName: "isDarkMode", publicName: "isDarkMode", isSignal: true, isRequired: false, transformFunction: null }, navGroups: { classPropertyName: "navGroups", publicName: "navGroups", isSignal: true, isRequired: false, transformFunction: null }, footerItems: { classPropertyName: "footerItems", publicName: "footerItems", isSignal: true, isRequired: false, transformFunction: null }, userProfile: { classPropertyName: "userProfile", publicName: "userProfile", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsed: "collapsedChange", themeToggle: "themeToggle", themeModeChange: "themeModeChange", itemClick: "itemClick" }, host: { attributes: { "role": "navigation" }, properties: { "class.is-collapsed": "isCollapsed()", "class.dark-theme": "isDarkMode()", "attr.data-theme": "isDarkMode() ? \"dark\" : \"light\"", "attr.aria-hidden": "isCollapsed()" }, classAttribute: "talos-side-nav-host" }, ngImport: i0, template: "<div class=\"side-nav-inner\">\n <!-- Header -->\n @if (showHeader()) {\n <div class=\"side-nav-header\">\n @if (headerComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: headerComponentInputs()\" />\n } @else if (headerTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else {\n <ng-content select=\"[side-nav-header]\">\n <div class=\"default-nav-header\">\n <ng-content select=\"[side-nav-brand]\">\n @if (showLogo()) {\n <div class=\"brand-wrapper\" title=\"Logo\">\n @if (logoComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: logoComponentInputs()\" />\n } @else if (logoTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else {\n <ng-content select=\"[side-nav-logo]\" />\n }\n </div>\n }\n </ng-content>\n\n @if (showToggle()) {\n <button type=\"button\" class=\"hamburger-toggle-btn\" (click)=\"toggleCollapse()\"\n [attr.aria-label]=\"isCollapsed() ? 'Expand sidebar' : 'Collapse sidebar'\"\n [talosTooltip]=\"isCollapsed() ? 'Expand sidebar' : 'Collapse sidebar'\"\n tooltipPosition=\"right\">\n <svg lucidePanelLeft class=\"toggle-icon\" [size]=\"18\"></svg>\n </button>\n }\n </div>\n </ng-content>\n }\n </div>\n }\n\n <!-- Body Navigation Items -->\n <div class=\"side-nav-body\">\n @if (bodyComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: bodyComponentInputs()\" />\n } @else if (bodyTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else if (navGroups().length > 0) {\n <nav class=\"nav-groups-container\" aria-label=\"Sidebar Navigation\">\n @for (group of navGroups(); track group.title || $index) {\n <talos-nav-group [title]=\"group.title\" [collapsible]=\"group.collapsible ?? false\"\n [collapsed]=\"group.collapsed ?? false\">\n @for (item of group.items; track item.id || item.label) {\n <talos-nav-item [label]=\"item.label\" [icon]=\"item.icon\" [badge]=\"item.badge\" [disabled]=\"item.disabled ?? false\"\n [collapsed]=\"isCollapsed()\"\n [active]=\"(item.id && activeItemId() === item.id) || !!item.active\" (itemClick)=\"selectItem(item)\" />\n }\n </talos-nav-group>\n }\n </nav>\n } @else {\n <!-- Projected content slot for custom body content -->\n <ng-content select=\"[side-nav-body]\" />\n <ng-content />\n }\n </div>\n\n <!-- Footer -->\n <div class=\"side-nav-footer\">\n @if (footerComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: footerComponentInputs()\" />\n } @else if (footerTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else {\n <ng-content select=\"[side-nav-footer]\">\n <div class=\"default-nav-footer\">\n @if (footerItems().length > 0) {\n <ul class=\"footer-nav-list\">\n @for (item of footerItems(); track item.id || item.label) {\n <talos-nav-item [label]=\"item.label\" [icon]=\"item.icon\" [disabled]=\"item.disabled ?? false\"\n [collapsed]=\"isCollapsed()\"\n [active]=\"item.id ? activeItemId() === item.id : !!item.active\" (itemClick)=\"selectItem(item)\" />\n }\n </ul>\n }\n\n @if (showThemeToggle()) {\n <talos-nav-theme-toggle\n [themeMode]=\"themeMode()\"\n [isDarkMode]=\"isDarkMode()\"\n (themeToggle)=\"themeToggle.emit()\"\n (themeModeChange)=\"themeModeChange.emit($event)\"\n />\n }\n\n @if (userProfile(); as profile) {\n <div class=\"user-profile-card\"\n [talosTooltip]=\"profile.name + ' (' + profile.email + ')'\"\n [tooltipDisabled]=\"!isCollapsed()\"\n tooltipPosition=\"right\">\n <div class=\"avatar-container\">\n @if (profile.avatarUrl) {\n <img [src]=\"profile.avatarUrl\" [alt]=\"profile.name\" class=\"avatar-img\" />\n } @else {\n <div class=\"avatar-placeholder\">\n {{ profile.name.charAt(0) }}\n </div>\n }\n </div>\n <div class=\"user-info\">\n <span class=\"user-name\">{{ profile.name }}</span>\n <span class=\"user-email\">{{ profile.email }}</span>\n </div>\n <div class=\"profile-action\">\n <svg lucideChevronsUpDown class=\"profile-chevron\" [size]=\"14\"></svg>\n </div>\n </div>\n }\n\n <!-- Bottom Collapse/Expand Bar -->\n <button type=\"button\" class=\"footer-collapse-bar\" (click)=\"toggleCollapse()\"\n [attr.aria-label]=\"isCollapsed() ? 'Expand sidebar' : 'Collapse sidebar'\"\n [talosTooltip]=\"isCollapsed() ? 'Expand sidebar' : 'Collapse sidebar'\"\n [tooltipDisabled]=\"!isCollapsed()\"\n tooltipPosition=\"right\">\n <span class=\"collapse-bar-icon\">\n @if (isCollapsed()) {\n <svg lucidePanelLeftOpen [size]=\"16\"></svg>\n } @else {\n <svg lucidePanelLeftClose [size]=\"16\"></svg>\n }\n </span>\n <span class=\"collapse-bar-text\">Collapse sidebar</span>\n </button>\n </div>\n </ng-content>\n }\n </div>\n</div>", styles: [":host,talos-side-nav,.talos-side-nav-host{display:flex;flex-direction:column;width:var(--talos-sidebar-width, var(--sidebar-width, 260px));height:100%;min-height:0;background:var(--talos-nav-bg, var(--nav-bg, #ffffff));border-right:1px solid var(--talos-nav-border-color, var(--nav-border-color, #f1f5f9));transition:width .25s cubic-bezier(.4,0,.2,1);box-sizing:border-box;position:relative;overflow:hidden}:root[data-theme=dark] :host,:root.dark :host,[data-theme=dark] :host,[data-mode=dark] :host,.dark :host,.dark-theme :host,:host.dark-theme,talos-side-nav.dark-theme,.talos-side-nav-host.dark-theme{--talos-nav-bg: #090d16;--nav-bg: #090d16;--talos-card-bg: #0f172a;--talos-nav-border-color: rgba(255, 255, 255, .08);--nav-border-color: rgba(255, 255, 255, .08);--talos-border-color: rgba(255, 255, 255, .1);--border-color: rgba(255, 255, 255, .1);--talos-bg-color: #131d31;--bg-color: #131d31;--talos-text-color: #f8fafc;--text-color: #f8fafc;--talos-text-muted: #94a3b8;--text-muted: #94a3b8;--talos-nav-hover-bg: rgba(255, 255, 255, .06);--talos-nav-hover-text: #f8fafc;--talos-active-nav-bg: rgba(59, 130, 246, .16);--talos-active-nav-text: #ffffff}:root[data-theme=dark] :host .hamburger-toggle-btn,:root.dark :host .hamburger-toggle-btn,[data-theme=dark] :host .hamburger-toggle-btn,[data-mode=dark] :host .hamburger-toggle-btn,.dark :host .hamburger-toggle-btn,.dark-theme :host .hamburger-toggle-btn,:host.dark-theme .hamburger-toggle-btn,talos-side-nav.dark-theme .hamburger-toggle-btn,.talos-side-nav-host.dark-theme .hamburger-toggle-btn{background:#0f172a;border-color:#ffffff1a;color:#94a3b8}:root[data-theme=dark] :host .hamburger-toggle-btn:hover,:root.dark :host .hamburger-toggle-btn:hover,[data-theme=dark] :host .hamburger-toggle-btn:hover,[data-mode=dark] :host .hamburger-toggle-btn:hover,.dark :host .hamburger-toggle-btn:hover,.dark-theme :host .hamburger-toggle-btn:hover,:host.dark-theme .hamburger-toggle-btn:hover,talos-side-nav.dark-theme .hamburger-toggle-btn:hover,.talos-side-nav-host.dark-theme .hamburger-toggle-btn:hover{background:#131d31;color:var(--talos-primary, #3b82f6);border-color:var(--talos-primary, #3b82f6);box-shadow:0 0 12px #3b82f640}:root[data-theme=dark] :host .nav-group-title,:root.dark :host .nav-group-title,[data-theme=dark] :host .nav-group-title,[data-mode=dark] :host .nav-group-title,.dark :host .nav-group-title,.dark-theme :host .nav-group-title,:host.dark-theme .nav-group-title,talos-side-nav.dark-theme .nav-group-title,.talos-side-nav-host.dark-theme .nav-group-title{color:#94a3b8}:root[data-theme=dark] :host .nav-group-title.nav-group-header-btn:hover,:root.dark :host .nav-group-title.nav-group-header-btn:hover,[data-theme=dark] :host .nav-group-title.nav-group-header-btn:hover,[data-mode=dark] :host .nav-group-title.nav-group-header-btn:hover,.dark :host .nav-group-title.nav-group-header-btn:hover,.dark-theme :host .nav-group-title.nav-group-header-btn:hover,:host.dark-theme .nav-group-title.nav-group-header-btn:hover,talos-side-nav.dark-theme .nav-group-title.nav-group-header-btn:hover,.talos-side-nav-host.dark-theme .nav-group-title.nav-group-header-btn:hover{color:#f8fafc}:root[data-theme=dark] :host .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,:root.dark :host .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,[data-theme=dark] :host .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,[data-mode=dark] :host .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,.dark :host .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,.dark-theme :host .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,:host.dark-theme .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,talos-side-nav.dark-theme .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,.talos-side-nav-host.dark-theme .nav-group-title.nav-group-header-btn:hover .nav-group-chevron{color:#f8fafc}:root[data-theme=dark] :host .nav-link,:root.dark :host .nav-link,[data-theme=dark] :host .nav-link,[data-mode=dark] :host .nav-link,.dark :host .nav-link,.dark-theme :host .nav-link,:host.dark-theme .nav-link,talos-side-nav.dark-theme .nav-link,.talos-side-nav-host.dark-theme .nav-link{color:#94a3b8}:root[data-theme=dark] :host .nav-link .nav-icon,:root.dark :host .nav-link .nav-icon,[data-theme=dark] :host .nav-link .nav-icon,[data-mode=dark] :host .nav-link .nav-icon,.dark :host .nav-link .nav-icon,.dark-theme :host .nav-link .nav-icon,:host.dark-theme .nav-link .nav-icon,talos-side-nav.dark-theme .nav-link .nav-icon,.talos-side-nav-host.dark-theme .nav-link .nav-icon{color:#94a3b8}:root[data-theme=dark] :host .nav-link:hover,:root.dark :host .nav-link:hover,[data-theme=dark] :host .nav-link:hover,[data-mode=dark] :host .nav-link:hover,.dark :host .nav-link:hover,.dark-theme :host .nav-link:hover,:host.dark-theme .nav-link:hover,talos-side-nav.dark-theme .nav-link:hover,.talos-side-nav-host.dark-theme .nav-link:hover{background-color:#ffffff0f;color:#f8fafc}:root[data-theme=dark] :host .nav-link:hover .nav-icon,:root.dark :host .nav-link:hover .nav-icon,[data-theme=dark] :host .nav-link:hover .nav-icon,[data-mode=dark] :host .nav-link:hover .nav-icon,.dark :host .nav-link:hover .nav-icon,.dark-theme :host .nav-link:hover .nav-icon,:host.dark-theme .nav-link:hover .nav-icon,talos-side-nav.dark-theme .nav-link:hover .nav-icon,.talos-side-nav-host.dark-theme .nav-link:hover .nav-icon{color:#f8fafc}:root[data-theme=dark] :host .nav-link.active,:root.dark :host .nav-link.active,[data-theme=dark] :host .nav-link.active,[data-mode=dark] :host .nav-link.active,.dark :host .nav-link.active,.dark-theme :host .nav-link.active,:host.dark-theme .nav-link.active,talos-side-nav.dark-theme .nav-link.active,.talos-side-nav-host.dark-theme .nav-link.active{background-color:var(--talos-primary-subtle-bg, rgba(59, 130, 246, .16));color:#fff}:root[data-theme=dark] :host .nav-link.active .nav-icon,:root.dark :host .nav-link.active .nav-icon,[data-theme=dark] :host .nav-link.active .nav-icon,[data-mode=dark] :host .nav-link.active .nav-icon,.dark :host .nav-link.active .nav-icon,.dark-theme :host .nav-link.active .nav-icon,:host.dark-theme .nav-link.active .nav-icon,talos-side-nav.dark-theme .nav-link.active .nav-icon,.talos-side-nav-host.dark-theme .nav-link.active .nav-icon{color:var(--talos-primary, #3b82f6)}:root[data-theme=dark] :host .user-profile-card:hover,:root.dark :host .user-profile-card:hover,[data-theme=dark] :host .user-profile-card:hover,[data-mode=dark] :host .user-profile-card:hover,.dark :host .user-profile-card:hover,.dark-theme :host .user-profile-card:hover,:host.dark-theme .user-profile-card:hover,talos-side-nav.dark-theme .user-profile-card:hover,.talos-side-nav-host.dark-theme .user-profile-card:hover{background-color:#ffffff0f}:root[data-theme=dark] :host .user-profile-card .user-name,:root.dark :host .user-profile-card .user-name,[data-theme=dark] :host .user-profile-card .user-name,[data-mode=dark] :host .user-profile-card .user-name,.dark :host .user-profile-card .user-name,.dark-theme :host .user-profile-card .user-name,:host.dark-theme .user-profile-card .user-name,talos-side-nav.dark-theme .user-profile-card .user-name,.talos-side-nav-host.dark-theme .user-profile-card .user-name{color:#f8fafc}:root[data-theme=dark] :host .user-profile-card .user-email,:root.dark :host .user-profile-card .user-email,[data-theme=dark] :host .user-profile-card .user-email,[data-mode=dark] :host .user-profile-card .user-email,.dark :host .user-profile-card .user-email,.dark-theme :host .user-profile-card .user-email,:host.dark-theme .user-profile-card .user-email,talos-side-nav.dark-theme .user-profile-card .user-email,.talos-side-nav-host.dark-theme .user-profile-card .user-email{color:#94a3b8}:root[data-theme=dark] :host .footer-collapse-bar,:root.dark :host .footer-collapse-bar,[data-theme=dark] :host .footer-collapse-bar,[data-mode=dark] :host .footer-collapse-bar,.dark :host .footer-collapse-bar,.dark-theme :host .footer-collapse-bar,:host.dark-theme .footer-collapse-bar,talos-side-nav.dark-theme .footer-collapse-bar,.talos-side-nav-host.dark-theme .footer-collapse-bar{background:#0f172a;border-color:#ffffff1a;color:#94a3b8}:root[data-theme=dark] :host .footer-collapse-bar:hover,:root.dark :host .footer-collapse-bar:hover,[data-theme=dark] :host .footer-collapse-bar:hover,[data-mode=dark] :host .footer-collapse-bar:hover,.dark :host .footer-collapse-bar:hover,.dark-theme :host .footer-collapse-bar:hover,:host.dark-theme .footer-collapse-bar:hover,talos-side-nav.dark-theme .footer-collapse-bar:hover,.talos-side-nav-host.dark-theme .footer-collapse-bar:hover{background-color:#131d31;color:#f8fafc;border-color:#fff3}:root[data-theme=dark] :host .theme-toggle-btn,:root.dark :host .theme-toggle-btn,[data-theme=dark] :host .theme-toggle-btn,[data-mode=dark] :host .theme-toggle-btn,.dark :host .theme-toggle-btn,.dark-theme :host .theme-toggle-btn,:host.dark-theme .theme-toggle-btn,talos-side-nav.dark-theme .theme-toggle-btn,.talos-side-nav-host.dark-theme .theme-toggle-btn{background:#0f172a;border-color:#ffffff1a;color:#f8fafc}:root[data-theme=dark] :host .theme-toggle-btn:hover,:root.dark :host .theme-toggle-btn:hover,[data-theme=dark] :host .theme-toggle-btn:hover,[data-mode=dark] :host .theme-toggle-btn:hover,.dark :host .theme-toggle-btn:hover,.dark-theme :host .theme-toggle-btn:hover,:host.dark-theme .theme-toggle-btn:hover,talos-side-nav.dark-theme .theme-toggle-btn:hover,.talos-side-nav-host.dark-theme .theme-toggle-btn:hover{background-color:#131d31;color:var(--talos-primary, #3b82f6);border-color:var(--talos-primary, #3b82f6)}:host.is-collapsed,talos-side-nav.is-collapsed,.talos-side-nav-host.is-collapsed{width:var(--talos-sidebar-collapsed-width, var(--sidebar-collapsed-width, 68px))}:host.is-collapsed .side-nav-header,talos-side-nav.is-collapsed .side-nav-header,.talos-side-nav-host.is-collapsed .side-nav-header{flex-shrink:0}:host.is-collapsed .default-nav-header,talos-side-nav.is-collapsed .default-nav-header,.talos-side-nav-host.is-collapsed .default-nav-header{justify-content:center;padding:0;gap:0}:host.is-collapsed .brand-wrapper,talos-side-nav.is-collapsed .brand-wrapper,.talos-side-nav-host.is-collapsed .brand-wrapper{max-width:0;opacity:0;transform:translate(-15px);visibility:hidden;pointer-events:none}:host.is-collapsed .hamburger-toggle-btn,talos-side-nav.is-collapsed .hamburger-toggle-btn,.talos-side-nav-host.is-collapsed .hamburger-toggle-btn{margin:0 auto}:host.is-collapsed .side-nav-body,talos-side-nav.is-collapsed .side-nav-body,.talos-side-nav-host.is-collapsed .side-nav-body{padding:12px 6px;overflow-y:auto;overflow-x:hidden;min-height:0;flex:1}:host.is-collapsed .side-nav-body::-webkit-scrollbar,talos-side-nav.is-collapsed .side-nav-body::-webkit-scrollbar,.talos-side-nav-host.is-collapsed .side-nav-body::-webkit-scrollbar{width:3px}:host.is-collapsed .nav-groups-container,talos-side-nav.is-collapsed .nav-groups-container,.talos-side-nav-host.is-collapsed .nav-groups-container{gap:8px}:host.is-collapsed .nav-group-title,talos-side-nav.is-collapsed .nav-group-title,.talos-side-nav-host.is-collapsed .nav-group-title{max-height:0;opacity:0;margin-bottom:0;padding-top:0;padding-bottom:0;transform:translate(-12px);visibility:hidden;pointer-events:none}:host.is-collapsed .nav-link,talos-side-nav.is-collapsed .nav-link,.talos-side-nav-host.is-collapsed .nav-link{padding:0;gap:0;justify-content:center;width:38px;height:36px;margin:0 auto;border-radius:8px}:host.is-collapsed .nav-link .nav-icon,talos-side-nav.is-collapsed .nav-link .nav-icon,.talos-side-nav-host.is-collapsed .nav-link .nav-icon{margin:0}:host.is-collapsed .nav-label,talos-side-nav.is-collapsed .nav-label,.talos-side-nav-host.is-collapsed .nav-label{opacity:0;max-width:0;transform:translate(-12px);visibility:hidden;pointer-events:none}:host.is-collapsed .nav-badge,talos-side-nav.is-collapsed .nav-badge,.talos-side-nav-host.is-collapsed .nav-badge{opacity:0;max-width:0;padding:0;transform:translate(-12px);visibility:hidden;pointer-events:none}:host.is-collapsed .side-nav-footer,talos-side-nav.is-collapsed .side-nav-footer,.talos-side-nav-host.is-collapsed .side-nav-footer{padding:12px 6px 16px;flex-shrink:0}:host.is-collapsed .theme-toggle-btn,talos-side-nav.is-collapsed .theme-toggle-btn,.talos-side-nav-host.is-collapsed .theme-toggle-btn{padding:0;gap:0;justify-content:center;align-items:center;width:38px;height:36px;margin:0 auto}:host.is-collapsed .theme-toggle-btn .theme-toggle-icon,talos-side-nav.is-collapsed .theme-toggle-btn .theme-toggle-icon,.talos-side-nav-host.is-collapsed .theme-toggle-btn .theme-toggle-icon{display:flex;align-items:center;justify-content:center;margin:0}:host.is-collapsed .theme-toggle-label,talos-side-nav.is-collapsed .theme-toggle-label,.talos-side-nav-host.is-collapsed .theme-toggle-label{opacity:0;max-width:0;width:0;padding:0;margin:0;flex:0 0 0;overflow:hidden;transform:translate(-12px);visibility:hidden;pointer-events:none}:host.is-collapsed .theme-toggle-indicator,talos-side-nav.is-collapsed .theme-toggle-indicator,.talos-side-nav-host.is-collapsed .theme-toggle-indicator{display:none!important;opacity:0;max-width:0;width:0!important;height:0!important;padding:0!important;margin:0!important;border:none!important;flex:0 0 0!important;overflow:hidden;transform:translate(-12px);visibility:hidden;pointer-events:none}:host.is-collapsed .user-profile-card,talos-side-nav.is-collapsed .user-profile-card,.talos-side-nav-host.is-collapsed .user-profile-card{padding:0;gap:0;justify-content:center;align-items:center;width:38px;height:36px;margin:0 auto;box-sizing:border-box}:host.is-collapsed .user-info,:host.is-collapsed .profile-action,talos-side-nav.is-collapsed .user-info,talos-side-nav.is-collapsed .profile-action,.talos-side-nav-host.is-collapsed .user-info,.talos-side-nav-host.is-collapsed .profile-action{opacity:0;max-width:0;transform:translate(-12px);visibility:hidden;pointer-events:none}:host.is-collapsed .footer-collapse-bar,talos-side-nav.is-collapsed .footer-collapse-bar,.talos-side-nav-host.is-collapsed .footer-collapse-bar{padding:0;gap:0;justify-content:center;width:38px;height:36px;margin:0 auto}:host.is-collapsed .collapse-bar-text,talos-side-nav.is-collapsed .collapse-bar-text,.talos-side-nav-host.is-collapsed .collapse-bar-text{opacity:0;max-width:0;transform:translate(-12px);visibility:hidden;pointer-events:none}.side-nav-inner{display:flex;flex-direction:column;height:100%;min-height:0;position:relative;overflow:hidden}.side-nav-header{flex-shrink:0;min-height:64px;display:flex;align-items:center;padding:0 16px;border-bottom:1px solid var(--talos-nav-border-color, var(--nav-border-color, #f1f5f9))}.default-nav-header{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px}.brand-wrapper{display:flex;align-items:center;gap:10px;cursor:pointer;-webkit-user-select:none;user-select:none;overflow:hidden;max-width:180px;opacity:1;transform:translate(0);white-space:nowrap;transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}.brand-wrapper>*{display:flex;align-items:center;gap:10px;overflow:hidden;white-space:nowrap;max-width:100%}.brand-wrapper img,.brand-wrapper svg{flex-shrink:0;max-height:32px;object-fit:contain}.hamburger-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border-radius:8px;border:1px solid var(--talos-nav-border-color, var(--nav-border-color, #e2e8f0));background:var(--talos-card-bg, var(--talos-nav-bg, #ffffff));color:var(--talos-text-muted, var(--text-muted, #64748b));cursor:pointer;transition:all .15s ease;flex-shrink:0}.hamburger-toggle-btn:hover{background-color:var(--talos-bg-color, var(--bg-color, #f8fafc));color:var(--talos-primary-color, var(--primary-color, #2563eb));border-color:var(--talos-primary-color, var(--primary-color, #2563eb));box-shadow:0 2px 6px #2563eb26}.hamburger-toggle-btn .toggle-icon{display:block}.side-nav-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:16px 12px;transition:padding .25s cubic-bezier(.4,0,.2,1)}.side-nav-body::-webkit-scrollbar{width:4px}.side-nav-body::-webkit-scrollbar-thumb{background-color:var(--talos-border-color, #e2e8f0);border-radius:4px}.nav-groups-container{display:flex;flex-direction:column;gap:12px}.nav-group,talos-nav-group,.talos-nav-group{display:flex;flex-direction:column}.nav-item,talos-nav-item,.talos-nav-item{display:block}talos-nav-theme-toggle,.talos-nav-theme-toggle-host{display:block}.nav-group-title{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--talos-text-muted, var(--text-muted, #94a3b8));padding:0 10px;margin-bottom:4px;white-space:nowrap;overflow:hidden;max-height:22px;opacity:1;transform:translate(0);transition:max-height .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),margin .25s cubic-bezier(.4,0,.2,1),padding .25s cubic-bezier(.4,0,.2,1),visibility .25s}.nav-group-title.nav-group-header-btn{display:flex;align-items:center;justify-content:space-between;width:100%;height:22px;background:transparent;border:none;cursor:pointer;text-align:left;border-radius:6px;box-sizing:border-box;font-family:inherit}.nav-group-title.nav-group-header-btn:hover,.nav-group-title.nav-group-header-btn:hover .nav-group-chevron{color:var(--talos-text-color, var(--text-color, #1e293b))}.nav-group-title.nav-group-header-btn:focus-visible{outline:2px solid var(--talos-primary-color, var(--primary-color, #3b82f6));outline-offset:1px}.nav-group-chevron{display:inline-flex;align-items:center;justify-content:center;transition:transform .2s cubic-bezier(.4,0,.2,1),color .15s ease;color:var(--talos-text-muted, var(--text-muted, #94a3b8))}.nav-group-chevron.is-collapsed{transform:rotate(-90deg)}.nav-group-content{display:grid;grid-template-rows:1fr;transition:grid-template-rows .25s cubic-bezier(.4,0,.2,1),opacity .2s cubic-bezier(.4,0,.2,1);opacity:1;overflow:visible}.nav-group-content.is-collapsed{grid-template-rows:0fr;opacity:0;pointer-events:none;overflow:hidden}.nav-group-content.is-collapsed>.nav-item-list{overflow:hidden}.nav-group-content>.nav-item-list{min-height:0;overflow:visible}.nav-item-list,.footer-nav-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px}.nav-link{display:flex;align-items:center;width:100%;height:36px;padding:0 10px;border-radius:8px;border:none;background:transparent;color:var(--talos-text-muted, #64748b);font-size:13px;font-weight:500;line-height:1.4;cursor:pointer;transition:background-color .15s ease,color .15s ease,padding .25s cubic-bezier(.4,0,.2,1),gap .25s cubic-bezier(.4,0,.2,1);text-align:left;gap:10px;white-space:nowrap;outline:none}.nav-link:hover{background-color:var(--talos-nav-hover-bg, var(--talos-bg-subtle, #f1f5f9));color:var(--talos-nav-hover-text, var(--talos-text-primary, #0f172a))}.nav-link:hover .nav-icon{color:var(--talos-nav-hover-text, var(--talos-text-primary, #0f172a))}.nav-link.active{background-color:var(--talos-active-nav-bg, var(--talos-primary-subtle-bg, #eff6ff));color:var(--talos-active-nav-text, var(--talos-primary-text, #1d4ed8));font-weight:600}.nav-link.active .nav-icon{color:var(--talos-primary, #2563eb)}.nav-link .nav-icon{display:flex;align-items:center;justify-content:center;width:18px;height:18px;color:var(--talos-text-muted, #64748b);flex-shrink:0;transition:color .15s ease}.nav-link .nav-icon svg,.nav-link .nav-icon lucide-icon{width:17px;height:17px;stroke-width:1.85px}.nav-link .nav-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:1;transform:translate(0);max-width:180px;transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}.nav-link .nav-badge{font-size:10px;font-weight:600;padding:1.5px 6px;border-radius:10px;background-color:var(--talos-badge-bg, #eff6ff);color:var(--talos-primary-color, var(--primary-color, #2563eb));white-space:nowrap;overflow:hidden;opacity:1;transform:translate(0);max-width:60px;transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),padding .25s cubic-bezier(.4,0,.2,1),visibility .25s}.side-nav-footer{flex-shrink:0;padding:14px 10px;border-top:1px solid var(--talos-nav-border-color, var(--nav-border-color, #f1f5f9));transition:padding .25s cubic-bezier(.4,0,.2,1)}.default-nav-footer{display:flex;flex-direction:column;gap:10px}talos-nav-theme-toggle .theme-toggle-btn,.talos-nav-theme-toggle-host .theme-toggle-btn,.talos-side-nav-host .theme-toggle-btn{display:flex;align-items:center;width:100%;height:36px;padding:0 10px;border-radius:8px;border:1px solid var(--talos-nav-border-color, var(--nav-border-color, #e2e8f0));background:var(--talos-card-bg, var(--talos-nav-bg, #ffffff));color:var(--talos-text-color, var(--text-color, #0f172a));font-size:12.5px;font-weight:500;cursor:pointer;box-sizing:border-box;transition:background-color .15s ease,color .15s ease,border-color .15s ease,padding .25s cubic-bezier(.4,0,.2,1),gap .25s cubic-bezier(.4,0,.2,1);gap:9px;white-space:nowrap}talos-nav-theme-toggle .theme-toggle-btn:hover,.talos-nav-theme-toggle-host .theme-toggle-btn:hover,.talos-side-nav-host .theme-toggle-btn:hover{background-color:var(--talos-bg-color, var(--bg-color, #f8fafc));color:var(--talos-primary-color, var(--primary-color, #2563eb));border-color:var(--talos-primary-color, var(--primary-color, #2563eb))}talos-nav-theme-toggle .theme-toggle-btn:hover .theme-toggle-icon,.talos-nav-theme-toggle-host .theme-toggle-btn:hover .theme-toggle-icon,.talos-side-nav-host .theme-toggle-btn:hover .theme-toggle-icon{color:var(--talos-primary-color, var(--primary-color, #2563eb))}talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-icon,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-icon,.talos-side-nav-host .theme-toggle-btn .theme-toggle-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;color:var(--talos-primary-color, var(--primary-color, #2563eb));transition:color .15s ease}talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-icon svg,talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-icon lucide-icon,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-icon svg,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-icon lucide-icon,.talos-side-nav-host .theme-toggle-btn .theme-toggle-icon svg,.talos-side-nav-host .theme-toggle-btn .theme-toggle-icon lucide-icon{width:15px;height:15px}talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-label,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-label,.talos-side-nav-host .theme-toggle-btn .theme-toggle-label{flex:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:1;transform:translate(0);max-width:140px;transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-indicator,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-indicator,.talos-side-nav-host .theme-toggle-btn .theme-toggle-indicator{width:30px;height:16px;border-radius:9999px;background:var(--talos-border-color, #cbd5e1);position:relative;flex-shrink:0;display:flex;align-items:center;padding:2px;box-sizing:border-box;opacity:1;max-width:40px;transition:background-color .2s ease,opacity .18s cubic-bezier(.4,0,.2,1),max-width .25s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-indicator .indicator-thumb,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-indicator .indicator-thumb,.talos-side-nav-host .theme-toggle-btn .theme-toggle-indicator .indicator-thumb{display:block;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .2s cubic-bezier(.4,0,.2,1);transform:translate(0)}talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-indicator.is-dark,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-indicator.is-dark,.talos-side-nav-host .theme-toggle-btn .theme-toggle-indicator.is-dark{background:var(--talos-primary-color, var(--primary-color, #2563eb))}talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-indicator.is-dark .indicator-thumb,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-indicator.is-dark .indicator-thumb,.talos-side-nav-host .theme-toggle-btn .theme-toggle-indicator.is-dark .indicator-thumb{transform:translate(14px)}.user-profile-card{display:flex;align-items:center;gap:9px;padding:6px 8px;border-radius:8px;background:transparent;cursor:pointer;transition:background-color .15s ease,padding .25s cubic-bezier(.4,0,.2,1),gap .25s cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none}.user-profile-card:hover{background-color:var(--talos-bg-color, var(--bg-color, #f8fafc))}.user-profile-card:hover .profile-chevron{color:var(--talos-text-color, #334155)}.avatar-container{flex-shrink:0}.avatar-img{width:30px;height:30px;border-radius:50%;object-fit:cover}.avatar-placeholder{width:30px;height:30px;border-radius:50%;background:var(--talos-avatar-bg, #e0f2fe);color:var(--talos-primary-color, var(--primary-color, #0369a1));font-weight:600;font-size:12.5px;display:flex;align-items:center;justify-content:center}.user-info{flex:1;display:flex;flex-direction:column;overflow:hidden;max-width:150px;opacity:1;transform:translate(0);transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}.user-name{font-size:12.5px;font-weight:600;color:var(--talos-text-color, var(--text-color, #0f172a));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.user-email{font-size:11px;color:var(--talos-text-muted, var(--text-muted, #94a3b8));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.profile-action{flex-shrink:0;display:flex;align-items:center;max-width:20px;opacity:1;transform:translate(0);transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}.profile-chevron{color:var(--talos-text-muted, var(--text-muted, #94a3b8));transition:color .15s ease}.footer-collapse-bar{display:flex;align-items:center;gap:9px;width:100%;height:36px;padding:0 10px;border:1px solid var(--talos-nav-border-color, var(--nav-border-color, #e2e8f0));border-radius:8px;background:var(--talos-card-bg, var(--talos-nav-bg, #ffffff));color:var(--talos-text-muted, var(--text-muted, #64748b));font-size:12.5px;font-weight:500;cursor:pointer;box-sizing:border-box;transition:background-color .15s ease,color .15s ease,border-color .15s ease,padding .25s cubic-bezier(.4,0,.2,1),gap .25s cubic-bezier(.4,0,.2,1);white-space:nowrap}.footer-collapse-bar:hover{background-color:var(--talos-bg-color, var(--bg-color, #f8fafc));color:var(--talos-primary-color, var(--primary-color, #2563eb));border-color:var(--talos-primary-color, var(--primary-color, #2563eb))}.footer-collapse-bar .collapse-bar-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0}.footer-collapse-bar .collapse-bar-icon svg,.footer-collapse-bar .collapse-bar-icon lucide-icon{width:15px;height:15px}.collapse-bar-text{white-space:nowrap;overflow:hidden;max-width:140px;opacity:1;transform:translate(0);transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: LucidePanelLeft, selector: "svg[lucidePanelLeft], svg[lucideSidebar]" }, { kind: "component", type: LucideChevronsUpDown, selector: "svg[lucideChevronsUpDown]" }, { kind: "component", type: LucidePanelLeftOpen, selector: "svg[lucidePanelLeftOpen], svg[lucideSidebarOpen]" }, { kind: "component", type: LucidePanelLeftClose, selector: "svg[lucidePanelLeftClose], svg[lucideSidebarClose]" }, { kind: "component", type: TalosNavGroupComponent, selector: "talos-nav-group", inputs: ["title", "collapsible", "collapsed"], outputs: ["collapsedChange"] }, { kind: "component", type: TalosNavItemComponent, selector: "talos-nav-item", inputs: ["label", "icon", "active", "badge", "disabled", "route", "tooltip", "collapsed"], outputs: ["itemClick"] }, { kind: "component", type: TalosNavThemeToggleComponent, selector: "talos-nav-theme-toggle", inputs: ["themeMode", "isDarkMode", "showLabel", "systemLabel", "lightLabel", "darkLabel", "tooltip"], outputs: ["themeToggle", "themeModeChange", "isDarkModeChange"] }, { kind: "directive", type: TalosTooltipDirective, selector: "[talosTooltip], [tooltip]", inputs: ["talosTooltip", "tooltip", "tooltipPosition", "tooltipDisabled"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
467
|
+
}
|
|
468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SideNavComponent, decorators: [{
|
|
469
|
+
type: Component,
|
|
470
|
+
args: [{ selector: 'talos-side-nav', imports: [
|
|
471
|
+
NgComponentOutlet,
|
|
472
|
+
NgTemplateOutlet,
|
|
473
|
+
LucidePanelLeft,
|
|
474
|
+
LucideChevronsUpDown,
|
|
475
|
+
LucidePanelLeftOpen,
|
|
476
|
+
LucidePanelLeftClose,
|
|
477
|
+
TalosNavGroupComponent,
|
|
478
|
+
TalosNavItemComponent,
|
|
479
|
+
TalosNavThemeToggleComponent,
|
|
480
|
+
TalosTooltipDirective
|
|
481
|
+
], encapsulation: ViewEncapsulation.None, host: {
|
|
482
|
+
'class': 'talos-side-nav-host',
|
|
483
|
+
'[class.is-collapsed]': 'isCollapsed()',
|
|
484
|
+
'[class.dark-theme]': 'isDarkMode()',
|
|
485
|
+
'[attr.data-theme]': 'isDarkMode() ? "dark" : "light"',
|
|
486
|
+
'[attr.aria-hidden]': 'isCollapsed()',
|
|
487
|
+
'role': 'navigation'
|
|
488
|
+
}, template: "<div class=\"side-nav-inner\">\n <!-- Header -->\n @if (showHeader()) {\n <div class=\"side-nav-header\">\n @if (headerComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: headerComponentInputs()\" />\n } @else if (headerTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else {\n <ng-content select=\"[side-nav-header]\">\n <div class=\"default-nav-header\">\n <ng-content select=\"[side-nav-brand]\">\n @if (showLogo()) {\n <div class=\"brand-wrapper\" title=\"Logo\">\n @if (logoComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: logoComponentInputs()\" />\n } @else if (logoTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else {\n <ng-content select=\"[side-nav-logo]\" />\n }\n </div>\n }\n </ng-content>\n\n @if (showToggle()) {\n <button type=\"button\" class=\"hamburger-toggle-btn\" (click)=\"toggleCollapse()\"\n [attr.aria-label]=\"isCollapsed() ? 'Expand sidebar' : 'Collapse sidebar'\"\n [talosTooltip]=\"isCollapsed() ? 'Expand sidebar' : 'Collapse sidebar'\"\n tooltipPosition=\"right\">\n <svg lucidePanelLeft class=\"toggle-icon\" [size]=\"18\"></svg>\n </button>\n }\n </div>\n </ng-content>\n }\n </div>\n }\n\n <!-- Body Navigation Items -->\n <div class=\"side-nav-body\">\n @if (bodyComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: bodyComponentInputs()\" />\n } @else if (bodyTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else if (navGroups().length > 0) {\n <nav class=\"nav-groups-container\" aria-label=\"Sidebar Navigation\">\n @for (group of navGroups(); track group.title || $index) {\n <talos-nav-group [title]=\"group.title\" [collapsible]=\"group.collapsible ?? false\"\n [collapsed]=\"group.collapsed ?? false\">\n @for (item of group.items; track item.id || item.label) {\n <talos-nav-item [label]=\"item.label\" [icon]=\"item.icon\" [badge]=\"item.badge\" [disabled]=\"item.disabled ?? false\"\n [collapsed]=\"isCollapsed()\"\n [active]=\"(item.id && activeItemId() === item.id) || !!item.active\" (itemClick)=\"selectItem(item)\" />\n }\n </talos-nav-group>\n }\n </nav>\n } @else {\n <!-- Projected content slot for custom body content -->\n <ng-content select=\"[side-nav-body]\" />\n <ng-content />\n }\n </div>\n\n <!-- Footer -->\n <div class=\"side-nav-footer\">\n @if (footerComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: footerComponentInputs()\" />\n } @else if (footerTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else {\n <ng-content select=\"[side-nav-footer]\">\n <div class=\"default-nav-footer\">\n @if (footerItems().length > 0) {\n <ul class=\"footer-nav-list\">\n @for (item of footerItems(); track item.id || item.label) {\n <talos-nav-item [label]=\"item.label\" [icon]=\"item.icon\" [disabled]=\"item.disabled ?? false\"\n [collapsed]=\"isCollapsed()\"\n [active]=\"item.id ? activeItemId() === item.id : !!item.active\" (itemClick)=\"selectItem(item)\" />\n }\n </ul>\n }\n\n @if (showThemeToggle()) {\n <talos-nav-theme-toggle\n [themeMode]=\"themeMode()\"\n [isDarkMode]=\"isDarkMode()\"\n (themeToggle)=\"themeToggle.emit()\"\n (themeModeChange)=\"themeModeChange.emit($event)\"\n />\n }\n\n @if (userProfile(); as profile) {\n <div class=\"user-profile-card\"\n [talosTooltip]=\"profile.name + ' (' + profile.email + ')'\"\n [tooltipDisabled]=\"!isCollapsed()\"\n tooltipPosition=\"right\">\n <div class=\"avatar-container\">\n @if (profile.avatarUrl) {\n <img [src]=\"profile.avatarUrl\" [alt]=\"profile.name\" class=\"avatar-img\" />\n } @else {\n <div class=\"avatar-placeholder\">\n {{ profile.name.charAt(0) }}\n </div>\n }\n </div>\n <div class=\"user-info\">\n <span class=\"user-name\">{{ profile.name }}</span>\n <span class=\"user-email\">{{ profile.email }}</span>\n </div>\n <div class=\"profile-action\">\n <svg lucideChevronsUpDown class=\"profile-chevron\" [size]=\"14\"></svg>\n </div>\n </div>\n }\n\n <!-- Bottom Collapse/Expand Bar -->\n <button type=\"button\" class=\"footer-collapse-bar\" (click)=\"toggleCollapse()\"\n [attr.aria-label]=\"isCollapsed() ? 'Expand sidebar' : 'Collapse sidebar'\"\n [talosTooltip]=\"isCollapsed() ? 'Expand sidebar' : 'Collapse sidebar'\"\n [tooltipDisabled]=\"!isCollapsed()\"\n tooltipPosition=\"right\">\n <span class=\"collapse-bar-icon\">\n @if (isCollapsed()) {\n <svg lucidePanelLeftOpen [size]=\"16\"></svg>\n } @else {\n <svg lucidePanelLeftClose [size]=\"16\"></svg>\n }\n </span>\n <span class=\"collapse-bar-text\">Collapse sidebar</span>\n </button>\n </div>\n </ng-content>\n }\n </div>\n</div>", styles: [":host,talos-side-nav,.talos-side-nav-host{display:flex;flex-direction:column;width:var(--talos-sidebar-width, var(--sidebar-width, 260px));height:100%;min-height:0;background:var(--talos-nav-bg, var(--nav-bg, #ffffff));border-right:1px solid var(--talos-nav-border-color, var(--nav-border-color, #f1f5f9));transition:width .25s cubic-bezier(.4,0,.2,1);box-sizing:border-box;position:relative;overflow:hidden}:root[data-theme=dark] :host,:root.dark :host,[data-theme=dark] :host,[data-mode=dark] :host,.dark :host,.dark-theme :host,:host.dark-theme,talos-side-nav.dark-theme,.talos-side-nav-host.dark-theme{--talos-nav-bg: #090d16;--nav-bg: #090d16;--talos-card-bg: #0f172a;--talos-nav-border-color: rgba(255, 255, 255, .08);--nav-border-color: rgba(255, 255, 255, .08);--talos-border-color: rgba(255, 255, 255, .1);--border-color: rgba(255, 255, 255, .1);--talos-bg-color: #131d31;--bg-color: #131d31;--talos-text-color: #f8fafc;--text-color: #f8fafc;--talos-text-muted: #94a3b8;--text-muted: #94a3b8;--talos-nav-hover-bg: rgba(255, 255, 255, .06);--talos-nav-hover-text: #f8fafc;--talos-active-nav-bg: rgba(59, 130, 246, .16);--talos-active-nav-text: #ffffff}:root[data-theme=dark] :host .hamburger-toggle-btn,:root.dark :host .hamburger-toggle-btn,[data-theme=dark] :host .hamburger-toggle-btn,[data-mode=dark] :host .hamburger-toggle-btn,.dark :host .hamburger-toggle-btn,.dark-theme :host .hamburger-toggle-btn,:host.dark-theme .hamburger-toggle-btn,talos-side-nav.dark-theme .hamburger-toggle-btn,.talos-side-nav-host.dark-theme .hamburger-toggle-btn{background:#0f172a;border-color:#ffffff1a;color:#94a3b8}:root[data-theme=dark] :host .hamburger-toggle-btn:hover,:root.dark :host .hamburger-toggle-btn:hover,[data-theme=dark] :host .hamburger-toggle-btn:hover,[data-mode=dark] :host .hamburger-toggle-btn:hover,.dark :host .hamburger-toggle-btn:hover,.dark-theme :host .hamburger-toggle-btn:hover,:host.dark-theme .hamburger-toggle-btn:hover,talos-side-nav.dark-theme .hamburger-toggle-btn:hover,.talos-side-nav-host.dark-theme .hamburger-toggle-btn:hover{background:#131d31;color:var(--talos-primary, #3b82f6);border-color:var(--talos-primary, #3b82f6);box-shadow:0 0 12px #3b82f640}:root[data-theme=dark] :host .nav-group-title,:root.dark :host .nav-group-title,[data-theme=dark] :host .nav-group-title,[data-mode=dark] :host .nav-group-title,.dark :host .nav-group-title,.dark-theme :host .nav-group-title,:host.dark-theme .nav-group-title,talos-side-nav.dark-theme .nav-group-title,.talos-side-nav-host.dark-theme .nav-group-title{color:#94a3b8}:root[data-theme=dark] :host .nav-group-title.nav-group-header-btn:hover,:root.dark :host .nav-group-title.nav-group-header-btn:hover,[data-theme=dark] :host .nav-group-title.nav-group-header-btn:hover,[data-mode=dark] :host .nav-group-title.nav-group-header-btn:hover,.dark :host .nav-group-title.nav-group-header-btn:hover,.dark-theme :host .nav-group-title.nav-group-header-btn:hover,:host.dark-theme .nav-group-title.nav-group-header-btn:hover,talos-side-nav.dark-theme .nav-group-title.nav-group-header-btn:hover,.talos-side-nav-host.dark-theme .nav-group-title.nav-group-header-btn:hover{color:#f8fafc}:root[data-theme=dark] :host .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,:root.dark :host .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,[data-theme=dark] :host .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,[data-mode=dark] :host .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,.dark :host .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,.dark-theme :host .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,:host.dark-theme .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,talos-side-nav.dark-theme .nav-group-title.nav-group-header-btn:hover .nav-group-chevron,.talos-side-nav-host.dark-theme .nav-group-title.nav-group-header-btn:hover .nav-group-chevron{color:#f8fafc}:root[data-theme=dark] :host .nav-link,:root.dark :host .nav-link,[data-theme=dark] :host .nav-link,[data-mode=dark] :host .nav-link,.dark :host .nav-link,.dark-theme :host .nav-link,:host.dark-theme .nav-link,talos-side-nav.dark-theme .nav-link,.talos-side-nav-host.dark-theme .nav-link{color:#94a3b8}:root[data-theme=dark] :host .nav-link .nav-icon,:root.dark :host .nav-link .nav-icon,[data-theme=dark] :host .nav-link .nav-icon,[data-mode=dark] :host .nav-link .nav-icon,.dark :host .nav-link .nav-icon,.dark-theme :host .nav-link .nav-icon,:host.dark-theme .nav-link .nav-icon,talos-side-nav.dark-theme .nav-link .nav-icon,.talos-side-nav-host.dark-theme .nav-link .nav-icon{color:#94a3b8}:root[data-theme=dark] :host .nav-link:hover,:root.dark :host .nav-link:hover,[data-theme=dark] :host .nav-link:hover,[data-mode=dark] :host .nav-link:hover,.dark :host .nav-link:hover,.dark-theme :host .nav-link:hover,:host.dark-theme .nav-link:hover,talos-side-nav.dark-theme .nav-link:hover,.talos-side-nav-host.dark-theme .nav-link:hover{background-color:#ffffff0f;color:#f8fafc}:root[data-theme=dark] :host .nav-link:hover .nav-icon,:root.dark :host .nav-link:hover .nav-icon,[data-theme=dark] :host .nav-link:hover .nav-icon,[data-mode=dark] :host .nav-link:hover .nav-icon,.dark :host .nav-link:hover .nav-icon,.dark-theme :host .nav-link:hover .nav-icon,:host.dark-theme .nav-link:hover .nav-icon,talos-side-nav.dark-theme .nav-link:hover .nav-icon,.talos-side-nav-host.dark-theme .nav-link:hover .nav-icon{color:#f8fafc}:root[data-theme=dark] :host .nav-link.active,:root.dark :host .nav-link.active,[data-theme=dark] :host .nav-link.active,[data-mode=dark] :host .nav-link.active,.dark :host .nav-link.active,.dark-theme :host .nav-link.active,:host.dark-theme .nav-link.active,talos-side-nav.dark-theme .nav-link.active,.talos-side-nav-host.dark-theme .nav-link.active{background-color:var(--talos-primary-subtle-bg, rgba(59, 130, 246, .16));color:#fff}:root[data-theme=dark] :host .nav-link.active .nav-icon,:root.dark :host .nav-link.active .nav-icon,[data-theme=dark] :host .nav-link.active .nav-icon,[data-mode=dark] :host .nav-link.active .nav-icon,.dark :host .nav-link.active .nav-icon,.dark-theme :host .nav-link.active .nav-icon,:host.dark-theme .nav-link.active .nav-icon,talos-side-nav.dark-theme .nav-link.active .nav-icon,.talos-side-nav-host.dark-theme .nav-link.active .nav-icon{color:var(--talos-primary, #3b82f6)}:root[data-theme=dark] :host .user-profile-card:hover,:root.dark :host .user-profile-card:hover,[data-theme=dark] :host .user-profile-card:hover,[data-mode=dark] :host .user-profile-card:hover,.dark :host .user-profile-card:hover,.dark-theme :host .user-profile-card:hover,:host.dark-theme .user-profile-card:hover,talos-side-nav.dark-theme .user-profile-card:hover,.talos-side-nav-host.dark-theme .user-profile-card:hover{background-color:#ffffff0f}:root[data-theme=dark] :host .user-profile-card .user-name,:root.dark :host .user-profile-card .user-name,[data-theme=dark] :host .user-profile-card .user-name,[data-mode=dark] :host .user-profile-card .user-name,.dark :host .user-profile-card .user-name,.dark-theme :host .user-profile-card .user-name,:host.dark-theme .user-profile-card .user-name,talos-side-nav.dark-theme .user-profile-card .user-name,.talos-side-nav-host.dark-theme .user-profile-card .user-name{color:#f8fafc}:root[data-theme=dark] :host .user-profile-card .user-email,:root.dark :host .user-profile-card .user-email,[data-theme=dark] :host .user-profile-card .user-email,[data-mode=dark] :host .user-profile-card .user-email,.dark :host .user-profile-card .user-email,.dark-theme :host .user-profile-card .user-email,:host.dark-theme .user-profile-card .user-email,talos-side-nav.dark-theme .user-profile-card .user-email,.talos-side-nav-host.dark-theme .user-profile-card .user-email{color:#94a3b8}:root[data-theme=dark] :host .footer-collapse-bar,:root.dark :host .footer-collapse-bar,[data-theme=dark] :host .footer-collapse-bar,[data-mode=dark] :host .footer-collapse-bar,.dark :host .footer-collapse-bar,.dark-theme :host .footer-collapse-bar,:host.dark-theme .footer-collapse-bar,talos-side-nav.dark-theme .footer-collapse-bar,.talos-side-nav-host.dark-theme .footer-collapse-bar{background:#0f172a;border-color:#ffffff1a;color:#94a3b8}:root[data-theme=dark] :host .footer-collapse-bar:hover,:root.dark :host .footer-collapse-bar:hover,[data-theme=dark] :host .footer-collapse-bar:hover,[data-mode=dark] :host .footer-collapse-bar:hover,.dark :host .footer-collapse-bar:hover,.dark-theme :host .footer-collapse-bar:hover,:host.dark-theme .footer-collapse-bar:hover,talos-side-nav.dark-theme .footer-collapse-bar:hover,.talos-side-nav-host.dark-theme .footer-collapse-bar:hover{background-color:#131d31;color:#f8fafc;border-color:#fff3}:root[data-theme=dark] :host .theme-toggle-btn,:root.dark :host .theme-toggle-btn,[data-theme=dark] :host .theme-toggle-btn,[data-mode=dark] :host .theme-toggle-btn,.dark :host .theme-toggle-btn,.dark-theme :host .theme-toggle-btn,:host.dark-theme .theme-toggle-btn,talos-side-nav.dark-theme .theme-toggle-btn,.talos-side-nav-host.dark-theme .theme-toggle-btn{background:#0f172a;border-color:#ffffff1a;color:#f8fafc}:root[data-theme=dark] :host .theme-toggle-btn:hover,:root.dark :host .theme-toggle-btn:hover,[data-theme=dark] :host .theme-toggle-btn:hover,[data-mode=dark] :host .theme-toggle-btn:hover,.dark :host .theme-toggle-btn:hover,.dark-theme :host .theme-toggle-btn:hover,:host.dark-theme .theme-toggle-btn:hover,talos-side-nav.dark-theme .theme-toggle-btn:hover,.talos-side-nav-host.dark-theme .theme-toggle-btn:hover{background-color:#131d31;color:var(--talos-primary, #3b82f6);border-color:var(--talos-primary, #3b82f6)}:host.is-collapsed,talos-side-nav.is-collapsed,.talos-side-nav-host.is-collapsed{width:var(--talos-sidebar-collapsed-width, var(--sidebar-collapsed-width, 68px))}:host.is-collapsed .side-nav-header,talos-side-nav.is-collapsed .side-nav-header,.talos-side-nav-host.is-collapsed .side-nav-header{flex-shrink:0}:host.is-collapsed .default-nav-header,talos-side-nav.is-collapsed .default-nav-header,.talos-side-nav-host.is-collapsed .default-nav-header{justify-content:center;padding:0;gap:0}:host.is-collapsed .brand-wrapper,talos-side-nav.is-collapsed .brand-wrapper,.talos-side-nav-host.is-collapsed .brand-wrapper{max-width:0;opacity:0;transform:translate(-15px);visibility:hidden;pointer-events:none}:host.is-collapsed .hamburger-toggle-btn,talos-side-nav.is-collapsed .hamburger-toggle-btn,.talos-side-nav-host.is-collapsed .hamburger-toggle-btn{margin:0 auto}:host.is-collapsed .side-nav-body,talos-side-nav.is-collapsed .side-nav-body,.talos-side-nav-host.is-collapsed .side-nav-body{padding:12px 6px;overflow-y:auto;overflow-x:hidden;min-height:0;flex:1}:host.is-collapsed .side-nav-body::-webkit-scrollbar,talos-side-nav.is-collapsed .side-nav-body::-webkit-scrollbar,.talos-side-nav-host.is-collapsed .side-nav-body::-webkit-scrollbar{width:3px}:host.is-collapsed .nav-groups-container,talos-side-nav.is-collapsed .nav-groups-container,.talos-side-nav-host.is-collapsed .nav-groups-container{gap:8px}:host.is-collapsed .nav-group-title,talos-side-nav.is-collapsed .nav-group-title,.talos-side-nav-host.is-collapsed .nav-group-title{max-height:0;opacity:0;margin-bottom:0;padding-top:0;padding-bottom:0;transform:translate(-12px);visibility:hidden;pointer-events:none}:host.is-collapsed .nav-link,talos-side-nav.is-collapsed .nav-link,.talos-side-nav-host.is-collapsed .nav-link{padding:0;gap:0;justify-content:center;width:38px;height:36px;margin:0 auto;border-radius:8px}:host.is-collapsed .nav-link .nav-icon,talos-side-nav.is-collapsed .nav-link .nav-icon,.talos-side-nav-host.is-collapsed .nav-link .nav-icon{margin:0}:host.is-collapsed .nav-label,talos-side-nav.is-collapsed .nav-label,.talos-side-nav-host.is-collapsed .nav-label{opacity:0;max-width:0;transform:translate(-12px);visibility:hidden;pointer-events:none}:host.is-collapsed .nav-badge,talos-side-nav.is-collapsed .nav-badge,.talos-side-nav-host.is-collapsed .nav-badge{opacity:0;max-width:0;padding:0;transform:translate(-12px);visibility:hidden;pointer-events:none}:host.is-collapsed .side-nav-footer,talos-side-nav.is-collapsed .side-nav-footer,.talos-side-nav-host.is-collapsed .side-nav-footer{padding:12px 6px 16px;flex-shrink:0}:host.is-collapsed .theme-toggle-btn,talos-side-nav.is-collapsed .theme-toggle-btn,.talos-side-nav-host.is-collapsed .theme-toggle-btn{padding:0;gap:0;justify-content:center;align-items:center;width:38px;height:36px;margin:0 auto}:host.is-collapsed .theme-toggle-btn .theme-toggle-icon,talos-side-nav.is-collapsed .theme-toggle-btn .theme-toggle-icon,.talos-side-nav-host.is-collapsed .theme-toggle-btn .theme-toggle-icon{display:flex;align-items:center;justify-content:center;margin:0}:host.is-collapsed .theme-toggle-label,talos-side-nav.is-collapsed .theme-toggle-label,.talos-side-nav-host.is-collapsed .theme-toggle-label{opacity:0;max-width:0;width:0;padding:0;margin:0;flex:0 0 0;overflow:hidden;transform:translate(-12px);visibility:hidden;pointer-events:none}:host.is-collapsed .theme-toggle-indicator,talos-side-nav.is-collapsed .theme-toggle-indicator,.talos-side-nav-host.is-collapsed .theme-toggle-indicator{display:none!important;opacity:0;max-width:0;width:0!important;height:0!important;padding:0!important;margin:0!important;border:none!important;flex:0 0 0!important;overflow:hidden;transform:translate(-12px);visibility:hidden;pointer-events:none}:host.is-collapsed .user-profile-card,talos-side-nav.is-collapsed .user-profile-card,.talos-side-nav-host.is-collapsed .user-profile-card{padding:0;gap:0;justify-content:center;align-items:center;width:38px;height:36px;margin:0 auto;box-sizing:border-box}:host.is-collapsed .user-info,:host.is-collapsed .profile-action,talos-side-nav.is-collapsed .user-info,talos-side-nav.is-collapsed .profile-action,.talos-side-nav-host.is-collapsed .user-info,.talos-side-nav-host.is-collapsed .profile-action{opacity:0;max-width:0;transform:translate(-12px);visibility:hidden;pointer-events:none}:host.is-collapsed .footer-collapse-bar,talos-side-nav.is-collapsed .footer-collapse-bar,.talos-side-nav-host.is-collapsed .footer-collapse-bar{padding:0;gap:0;justify-content:center;width:38px;height:36px;margin:0 auto}:host.is-collapsed .collapse-bar-text,talos-side-nav.is-collapsed .collapse-bar-text,.talos-side-nav-host.is-collapsed .collapse-bar-text{opacity:0;max-width:0;transform:translate(-12px);visibility:hidden;pointer-events:none}.side-nav-inner{display:flex;flex-direction:column;height:100%;min-height:0;position:relative;overflow:hidden}.side-nav-header{flex-shrink:0;min-height:64px;display:flex;align-items:center;padding:0 16px;border-bottom:1px solid var(--talos-nav-border-color, var(--nav-border-color, #f1f5f9))}.default-nav-header{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px}.brand-wrapper{display:flex;align-items:center;gap:10px;cursor:pointer;-webkit-user-select:none;user-select:none;overflow:hidden;max-width:180px;opacity:1;transform:translate(0);white-space:nowrap;transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}.brand-wrapper>*{display:flex;align-items:center;gap:10px;overflow:hidden;white-space:nowrap;max-width:100%}.brand-wrapper img,.brand-wrapper svg{flex-shrink:0;max-height:32px;object-fit:contain}.hamburger-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border-radius:8px;border:1px solid var(--talos-nav-border-color, var(--nav-border-color, #e2e8f0));background:var(--talos-card-bg, var(--talos-nav-bg, #ffffff));color:var(--talos-text-muted, var(--text-muted, #64748b));cursor:pointer;transition:all .15s ease;flex-shrink:0}.hamburger-toggle-btn:hover{background-color:var(--talos-bg-color, var(--bg-color, #f8fafc));color:var(--talos-primary-color, var(--primary-color, #2563eb));border-color:var(--talos-primary-color, var(--primary-color, #2563eb));box-shadow:0 2px 6px #2563eb26}.hamburger-toggle-btn .toggle-icon{display:block}.side-nav-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:16px 12px;transition:padding .25s cubic-bezier(.4,0,.2,1)}.side-nav-body::-webkit-scrollbar{width:4px}.side-nav-body::-webkit-scrollbar-thumb{background-color:var(--talos-border-color, #e2e8f0);border-radius:4px}.nav-groups-container{display:flex;flex-direction:column;gap:12px}.nav-group,talos-nav-group,.talos-nav-group{display:flex;flex-direction:column}.nav-item,talos-nav-item,.talos-nav-item{display:block}talos-nav-theme-toggle,.talos-nav-theme-toggle-host{display:block}.nav-group-title{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--talos-text-muted, var(--text-muted, #94a3b8));padding:0 10px;margin-bottom:4px;white-space:nowrap;overflow:hidden;max-height:22px;opacity:1;transform:translate(0);transition:max-height .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),margin .25s cubic-bezier(.4,0,.2,1),padding .25s cubic-bezier(.4,0,.2,1),visibility .25s}.nav-group-title.nav-group-header-btn{display:flex;align-items:center;justify-content:space-between;width:100%;height:22px;background:transparent;border:none;cursor:pointer;text-align:left;border-radius:6px;box-sizing:border-box;font-family:inherit}.nav-group-title.nav-group-header-btn:hover,.nav-group-title.nav-group-header-btn:hover .nav-group-chevron{color:var(--talos-text-color, var(--text-color, #1e293b))}.nav-group-title.nav-group-header-btn:focus-visible{outline:2px solid var(--talos-primary-color, var(--primary-color, #3b82f6));outline-offset:1px}.nav-group-chevron{display:inline-flex;align-items:center;justify-content:center;transition:transform .2s cubic-bezier(.4,0,.2,1),color .15s ease;color:var(--talos-text-muted, var(--text-muted, #94a3b8))}.nav-group-chevron.is-collapsed{transform:rotate(-90deg)}.nav-group-content{display:grid;grid-template-rows:1fr;transition:grid-template-rows .25s cubic-bezier(.4,0,.2,1),opacity .2s cubic-bezier(.4,0,.2,1);opacity:1;overflow:visible}.nav-group-content.is-collapsed{grid-template-rows:0fr;opacity:0;pointer-events:none;overflow:hidden}.nav-group-content.is-collapsed>.nav-item-list{overflow:hidden}.nav-group-content>.nav-item-list{min-height:0;overflow:visible}.nav-item-list,.footer-nav-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px}.nav-link{display:flex;align-items:center;width:100%;height:36px;padding:0 10px;border-radius:8px;border:none;background:transparent;color:var(--talos-text-muted, #64748b);font-size:13px;font-weight:500;line-height:1.4;cursor:pointer;transition:background-color .15s ease,color .15s ease,padding .25s cubic-bezier(.4,0,.2,1),gap .25s cubic-bezier(.4,0,.2,1);text-align:left;gap:10px;white-space:nowrap;outline:none}.nav-link:hover{background-color:var(--talos-nav-hover-bg, var(--talos-bg-subtle, #f1f5f9));color:var(--talos-nav-hover-text, var(--talos-text-primary, #0f172a))}.nav-link:hover .nav-icon{color:var(--talos-nav-hover-text, var(--talos-text-primary, #0f172a))}.nav-link.active{background-color:var(--talos-active-nav-bg, var(--talos-primary-subtle-bg, #eff6ff));color:var(--talos-active-nav-text, var(--talos-primary-text, #1d4ed8));font-weight:600}.nav-link.active .nav-icon{color:var(--talos-primary, #2563eb)}.nav-link .nav-icon{display:flex;align-items:center;justify-content:center;width:18px;height:18px;color:var(--talos-text-muted, #64748b);flex-shrink:0;transition:color .15s ease}.nav-link .nav-icon svg,.nav-link .nav-icon lucide-icon{width:17px;height:17px;stroke-width:1.85px}.nav-link .nav-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:1;transform:translate(0);max-width:180px;transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}.nav-link .nav-badge{font-size:10px;font-weight:600;padding:1.5px 6px;border-radius:10px;background-color:var(--talos-badge-bg, #eff6ff);color:var(--talos-primary-color, var(--primary-color, #2563eb));white-space:nowrap;overflow:hidden;opacity:1;transform:translate(0);max-width:60px;transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),padding .25s cubic-bezier(.4,0,.2,1),visibility .25s}.side-nav-footer{flex-shrink:0;padding:14px 10px;border-top:1px solid var(--talos-nav-border-color, var(--nav-border-color, #f1f5f9));transition:padding .25s cubic-bezier(.4,0,.2,1)}.default-nav-footer{display:flex;flex-direction:column;gap:10px}talos-nav-theme-toggle .theme-toggle-btn,.talos-nav-theme-toggle-host .theme-toggle-btn,.talos-side-nav-host .theme-toggle-btn{display:flex;align-items:center;width:100%;height:36px;padding:0 10px;border-radius:8px;border:1px solid var(--talos-nav-border-color, var(--nav-border-color, #e2e8f0));background:var(--talos-card-bg, var(--talos-nav-bg, #ffffff));color:var(--talos-text-color, var(--text-color, #0f172a));font-size:12.5px;font-weight:500;cursor:pointer;box-sizing:border-box;transition:background-color .15s ease,color .15s ease,border-color .15s ease,padding .25s cubic-bezier(.4,0,.2,1),gap .25s cubic-bezier(.4,0,.2,1);gap:9px;white-space:nowrap}talos-nav-theme-toggle .theme-toggle-btn:hover,.talos-nav-theme-toggle-host .theme-toggle-btn:hover,.talos-side-nav-host .theme-toggle-btn:hover{background-color:var(--talos-bg-color, var(--bg-color, #f8fafc));color:var(--talos-primary-color, var(--primary-color, #2563eb));border-color:var(--talos-primary-color, var(--primary-color, #2563eb))}talos-nav-theme-toggle .theme-toggle-btn:hover .theme-toggle-icon,.talos-nav-theme-toggle-host .theme-toggle-btn:hover .theme-toggle-icon,.talos-side-nav-host .theme-toggle-btn:hover .theme-toggle-icon{color:var(--talos-primary-color, var(--primary-color, #2563eb))}talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-icon,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-icon,.talos-side-nav-host .theme-toggle-btn .theme-toggle-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;color:var(--talos-primary-color, var(--primary-color, #2563eb));transition:color .15s ease}talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-icon svg,talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-icon lucide-icon,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-icon svg,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-icon lucide-icon,.talos-side-nav-host .theme-toggle-btn .theme-toggle-icon svg,.talos-side-nav-host .theme-toggle-btn .theme-toggle-icon lucide-icon{width:15px;height:15px}talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-label,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-label,.talos-side-nav-host .theme-toggle-btn .theme-toggle-label{flex:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:1;transform:translate(0);max-width:140px;transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-indicator,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-indicator,.talos-side-nav-host .theme-toggle-btn .theme-toggle-indicator{width:30px;height:16px;border-radius:9999px;background:var(--talos-border-color, #cbd5e1);position:relative;flex-shrink:0;display:flex;align-items:center;padding:2px;box-sizing:border-box;opacity:1;max-width:40px;transition:background-color .2s ease,opacity .18s cubic-bezier(.4,0,.2,1),max-width .25s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-indicator .indicator-thumb,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-indicator .indicator-thumb,.talos-side-nav-host .theme-toggle-btn .theme-toggle-indicator .indicator-thumb{display:block;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .2s cubic-bezier(.4,0,.2,1);transform:translate(0)}talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-indicator.is-dark,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-indicator.is-dark,.talos-side-nav-host .theme-toggle-btn .theme-toggle-indicator.is-dark{background:var(--talos-primary-color, var(--primary-color, #2563eb))}talos-nav-theme-toggle .theme-toggle-btn .theme-toggle-indicator.is-dark .indicator-thumb,.talos-nav-theme-toggle-host .theme-toggle-btn .theme-toggle-indicator.is-dark .indicator-thumb,.talos-side-nav-host .theme-toggle-btn .theme-toggle-indicator.is-dark .indicator-thumb{transform:translate(14px)}.user-profile-card{display:flex;align-items:center;gap:9px;padding:6px 8px;border-radius:8px;background:transparent;cursor:pointer;transition:background-color .15s ease,padding .25s cubic-bezier(.4,0,.2,1),gap .25s cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none}.user-profile-card:hover{background-color:var(--talos-bg-color, var(--bg-color, #f8fafc))}.user-profile-card:hover .profile-chevron{color:var(--talos-text-color, #334155)}.avatar-container{flex-shrink:0}.avatar-img{width:30px;height:30px;border-radius:50%;object-fit:cover}.avatar-placeholder{width:30px;height:30px;border-radius:50%;background:var(--talos-avatar-bg, #e0f2fe);color:var(--talos-primary-color, var(--primary-color, #0369a1));font-weight:600;font-size:12.5px;display:flex;align-items:center;justify-content:center}.user-info{flex:1;display:flex;flex-direction:column;overflow:hidden;max-width:150px;opacity:1;transform:translate(0);transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}.user-name{font-size:12.5px;font-weight:600;color:var(--talos-text-color, var(--text-color, #0f172a));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.user-email{font-size:11px;color:var(--talos-text-muted, var(--text-muted, #94a3b8));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.profile-action{flex-shrink:0;display:flex;align-items:center;max-width:20px;opacity:1;transform:translate(0);transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}.profile-chevron{color:var(--talos-text-muted, var(--text-muted, #94a3b8));transition:color .15s ease}.footer-collapse-bar{display:flex;align-items:center;gap:9px;width:100%;height:36px;padding:0 10px;border:1px solid var(--talos-nav-border-color, var(--nav-border-color, #e2e8f0));border-radius:8px;background:var(--talos-card-bg, var(--talos-nav-bg, #ffffff));color:var(--talos-text-muted, var(--text-muted, #64748b));font-size:12.5px;font-weight:500;cursor:pointer;box-sizing:border-box;transition:background-color .15s ease,color .15s ease,border-color .15s ease,padding .25s cubic-bezier(.4,0,.2,1),gap .25s cubic-bezier(.4,0,.2,1);white-space:nowrap}.footer-collapse-bar:hover{background-color:var(--talos-bg-color, var(--bg-color, #f8fafc));color:var(--talos-primary-color, var(--primary-color, #2563eb));border-color:var(--talos-primary-color, var(--primary-color, #2563eb))}.footer-collapse-bar .collapse-bar-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0}.footer-collapse-bar .collapse-bar-icon svg,.footer-collapse-bar .collapse-bar-icon lucide-icon{width:15px;height:15px}.collapse-bar-text{white-space:nowrap;overflow:hidden;max-width:140px;opacity:1;transform:translate(0);transition:max-width .25s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1),transform .18s cubic-bezier(.4,0,.2,1),visibility .25s}\n"] }]
|
|
489
|
+
}], propDecorators: { collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }, { type: i0.Output, args: ["collapsedChange"] }], headerComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerComponent", required: false }] }], headerComponentInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerComponentInputs", required: false }] }], headerTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerTemplate", required: false }] }], logoComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoComponent", required: false }] }], logoComponentInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoComponentInputs", required: false }] }], logoTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoTemplate", required: false }] }], bodyComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "bodyComponent", required: false }] }], bodyComponentInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "bodyComponentInputs", required: false }] }], bodyTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "bodyTemplate", required: false }] }], footerComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerComponent", required: false }] }], footerComponentInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerComponentInputs", required: false }] }], footerTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerTemplate", required: false }] }], showHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "showHeader", required: false }] }], showLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLogo", required: false }] }], showToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showToggle", required: false }] }], showThemeToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showThemeToggle", required: false }] }], themeMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "themeMode", required: false }] }], isDarkMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDarkMode", required: false }] }], themeToggle: [{ type: i0.Output, args: ["themeToggle"] }], themeModeChange: [{ type: i0.Output, args: ["themeModeChange"] }], navGroups: [{ type: i0.Input, args: [{ isSignal: true, alias: "navGroups", required: false }] }], footerItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerItems", required: false }] }], userProfile: [{ type: i0.Input, args: [{ isSignal: true, alias: "userProfile", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }] } });
|
|
490
|
+
|
|
491
|
+
class TopNavComponent {
|
|
492
|
+
layoutService = inject(LayoutService, { optional: true });
|
|
493
|
+
router = inject(Router, { optional: true });
|
|
494
|
+
elementRef = inject(ElementRef);
|
|
495
|
+
/** Brand title displayed in left header */
|
|
496
|
+
brandTitle = input('Talos', /* @ts-ignore */
|
|
497
|
+
...(ngDevMode ? [{ debugName: "brandTitle" }] : /* istanbul ignore next */ []));
|
|
498
|
+
/** Brand subtitle or description */
|
|
499
|
+
brandSubtitle = input(undefined, /* @ts-ignore */
|
|
500
|
+
...(ngDevMode ? [{ debugName: "brandSubtitle" }] : /* istanbul ignore next */ []));
|
|
501
|
+
/** Badge displayed beside brand title */
|
|
502
|
+
brandBadge = input(undefined, /* @ts-ignore */
|
|
503
|
+
...(ngDevMode ? [{ debugName: "brandBadge" }] : /* istanbul ignore next */ []));
|
|
504
|
+
/** Icon component type for brand badge */
|
|
505
|
+
brandIcon = input(null, /* @ts-ignore */
|
|
506
|
+
...(ngDevMode ? [{ debugName: "brandIcon" }] : /* istanbul ignore next */ []));
|
|
507
|
+
/** Route link for brand header click */
|
|
508
|
+
brandRoute = input(undefined, /* @ts-ignore */
|
|
509
|
+
...(ngDevMode ? [{ debugName: "brandRoute" }] : /* istanbul ignore next */ []));
|
|
510
|
+
/** Direct href for brand header click */
|
|
511
|
+
brandUrl = input(undefined, /* @ts-ignore */
|
|
512
|
+
...(ngDevMode ? [{ debugName: "brandUrl" }] : /* istanbul ignore next */ []));
|
|
513
|
+
/** Whether to render brand title & badge */
|
|
514
|
+
showBrand = input(true, /* @ts-ignore */
|
|
515
|
+
...(ngDevMode ? [{ debugName: "showBrand" }] : /* istanbul ignore next */ []));
|
|
516
|
+
/** Whether to show logo in top-nav */
|
|
517
|
+
showLogo = input(true, /* @ts-ignore */
|
|
518
|
+
...(ngDevMode ? [{ debugName: "showLogo" }] : /* istanbul ignore next */ []));
|
|
519
|
+
/** Custom logo component */
|
|
520
|
+
logoComponent = input(null, /* @ts-ignore */
|
|
521
|
+
...(ngDevMode ? [{ debugName: "logoComponent" }] : /* istanbul ignore next */ []));
|
|
522
|
+
/** Inputs for custom logo component */
|
|
523
|
+
logoComponentInputs = input({}, /* @ts-ignore */
|
|
524
|
+
...(ngDevMode ? [{ debugName: "logoComponentInputs" }] : /* istanbul ignore next */ []));
|
|
525
|
+
/** Custom logo template */
|
|
526
|
+
logoTemplate = input(null, /* @ts-ignore */
|
|
527
|
+
...(ngDevMode ? [{ debugName: "logoTemplate" }] : /* istanbul ignore next */ []));
|
|
528
|
+
/** Whether to show sidebar collapse toggle button */
|
|
529
|
+
showSidebarToggle = input(true, /* @ts-ignore */
|
|
530
|
+
...(ngDevMode ? [{ debugName: "showSidebarToggle" }] : /* istanbul ignore next */ []));
|
|
531
|
+
/** Navigation items list with optional dropdown children */
|
|
532
|
+
items = input([], /* @ts-ignore */
|
|
533
|
+
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
534
|
+
/** Two-way active item identifier */
|
|
535
|
+
activeItemId = model(null, /* @ts-ignore */
|
|
536
|
+
...(ngDevMode ? [{ debugName: "activeItemId" }] : /* istanbul ignore next */ []));
|
|
537
|
+
/** Action buttons displayed in right section (e.g. notifications, docs) */
|
|
538
|
+
actions = input([], /* @ts-ignore */
|
|
539
|
+
...(ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []));
|
|
540
|
+
/** Whether to show theme dark/light mode toggle button */
|
|
541
|
+
showThemeToggle = input(true, /* @ts-ignore */
|
|
542
|
+
...(ngDevMode ? [{ debugName: "showThemeToggle" }] : /* istanbul ignore next */ []));
|
|
543
|
+
/** Explicit 3-way theme mode: 'system' | 'light' | 'dark' */
|
|
544
|
+
themeMode = input(null, /* @ts-ignore */
|
|
545
|
+
...(ngDevMode ? [{ debugName: "themeMode" }] : /* istanbul ignore next */ []));
|
|
546
|
+
/** Current dark mode state (boolean fallback) */
|
|
547
|
+
isDarkMode = input(false, /* @ts-ignore */
|
|
548
|
+
...(ngDevMode ? [{ debugName: "isDarkMode" }] : /* istanbul ignore next */ []));
|
|
549
|
+
/** User profile information and user dropdown items */
|
|
550
|
+
userProfile = input(null, /* @ts-ignore */
|
|
551
|
+
...(ngDevMode ? [{ debugName: "userProfile" }] : /* istanbul ignore next */ []));
|
|
552
|
+
/** Whether to show search bar */
|
|
553
|
+
showSearch = input(false, /* @ts-ignore */
|
|
554
|
+
...(ngDevMode ? [{ debugName: "showSearch" }] : /* istanbul ignore next */ []));
|
|
555
|
+
/** Placeholder text for search bar */
|
|
556
|
+
searchPlaceholder = input('Search...', /* @ts-ignore */
|
|
557
|
+
...(ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []));
|
|
558
|
+
/** Whether top navbar is sticky at top */
|
|
559
|
+
sticky = input(false, /* @ts-ignore */
|
|
560
|
+
...(ngDevMode ? [{ debugName: "sticky" }] : /* istanbul ignore next */ []));
|
|
561
|
+
/** Whether bottom border is rendered */
|
|
562
|
+
bordered = input(true, /* @ts-ignore */
|
|
563
|
+
...(ngDevMode ? [{ debugName: "bordered" }] : /* istanbul ignore next */ []));
|
|
564
|
+
/** Whether glassmorphism backdrop blur is applied */
|
|
565
|
+
glass = input(false, /* @ts-ignore */
|
|
566
|
+
...(ngDevMode ? [{ debugName: "glass" }] : /* istanbul ignore next */ []));
|
|
567
|
+
/** Size variant for height and spacing */
|
|
568
|
+
size = input('md', /* @ts-ignore */
|
|
569
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
570
|
+
/** Custom left section component */
|
|
571
|
+
leftComponent = input(null, /* @ts-ignore */
|
|
572
|
+
...(ngDevMode ? [{ debugName: "leftComponent" }] : /* istanbul ignore next */ []));
|
|
573
|
+
leftComponentInputs = input({}, /* @ts-ignore */
|
|
574
|
+
...(ngDevMode ? [{ debugName: "leftComponentInputs" }] : /* istanbul ignore next */ []));
|
|
575
|
+
leftTemplate = input(null, /* @ts-ignore */
|
|
576
|
+
...(ngDevMode ? [{ debugName: "leftTemplate" }] : /* istanbul ignore next */ []));
|
|
577
|
+
/** Custom center section component */
|
|
578
|
+
centerComponent = input(null, /* @ts-ignore */
|
|
579
|
+
...(ngDevMode ? [{ debugName: "centerComponent" }] : /* istanbul ignore next */ []));
|
|
580
|
+
centerComponentInputs = input({}, /* @ts-ignore */
|
|
581
|
+
...(ngDevMode ? [{ debugName: "centerComponentInputs" }] : /* istanbul ignore next */ []));
|
|
582
|
+
centerTemplate = input(null, /* @ts-ignore */
|
|
583
|
+
...(ngDevMode ? [{ debugName: "centerTemplate" }] : /* istanbul ignore next */ []));
|
|
584
|
+
/** Custom right section component */
|
|
585
|
+
rightComponent = input(null, /* @ts-ignore */
|
|
586
|
+
...(ngDevMode ? [{ debugName: "rightComponent" }] : /* istanbul ignore next */ []));
|
|
587
|
+
rightComponentInputs = input({}, /* @ts-ignore */
|
|
588
|
+
...(ngDevMode ? [{ debugName: "rightComponentInputs" }] : /* istanbul ignore next */ []));
|
|
589
|
+
rightTemplate = input(null, /* @ts-ignore */
|
|
590
|
+
...(ngDevMode ? [{ debugName: "rightTemplate" }] : /* istanbul ignore next */ []));
|
|
591
|
+
/** Optional external two-way binding for sidebar collapsed state. If omitted, syncs with LayoutService. */
|
|
592
|
+
sidebarCollapsed = model(undefined, /* @ts-ignore */
|
|
593
|
+
...(ngDevMode ? [{ debugName: "sidebarCollapsed" }] : /* istanbul ignore next */ []));
|
|
594
|
+
/** Effective sidebar collapsed state */
|
|
595
|
+
isSidebarCollapsed = computed(() => {
|
|
596
|
+
const ext = this.sidebarCollapsed();
|
|
597
|
+
if (ext !== undefined) {
|
|
598
|
+
return ext;
|
|
599
|
+
}
|
|
600
|
+
return this.layoutService?.isLeftNavCollapsed() ?? false;
|
|
601
|
+
}, /* @ts-ignore */
|
|
602
|
+
...(ngDevMode ? [{ debugName: "isSidebarCollapsed" }] : /* istanbul ignore next */ []));
|
|
603
|
+
/** Output emitted when a nav item or child item is clicked */
|
|
604
|
+
itemClick = output();
|
|
605
|
+
/** Output emitted when an action button is clicked */
|
|
606
|
+
actionClick = output();
|
|
607
|
+
/** Output emitted when user profile is clicked */
|
|
608
|
+
userClick = output();
|
|
609
|
+
/** Output emitted when theme toggle button is clicked */
|
|
610
|
+
themeToggle = output();
|
|
611
|
+
/** Output emitted with next theme mode */
|
|
612
|
+
themeModeChange = output();
|
|
613
|
+
/** Output emitted on search input change */
|
|
614
|
+
searchChange = output();
|
|
615
|
+
/** Output emitted when sidebar toggle button is clicked */
|
|
616
|
+
sidebarToggleClick = output();
|
|
617
|
+
/** Output emitted when brand logo or title is clicked */
|
|
618
|
+
brandClick = output();
|
|
619
|
+
/** Track active open dropdown item ID */
|
|
620
|
+
openDropdownId = signal(null, /* @ts-ignore */
|
|
621
|
+
...(ngDevMode ? [{ debugName: "openDropdownId" }] : /* istanbul ignore next */ []));
|
|
622
|
+
/** Track whether user profile dropdown menu is open */
|
|
623
|
+
isUserDropdownOpen = signal(false, /* @ts-ignore */
|
|
624
|
+
...(ngDevMode ? [{ debugName: "isUserDropdownOpen" }] : /* istanbul ignore next */ []));
|
|
625
|
+
/** Computed effective theme mode */
|
|
626
|
+
effectiveThemeMode = computed(() => {
|
|
627
|
+
const mode = this.themeMode();
|
|
628
|
+
if (mode)
|
|
629
|
+
return mode;
|
|
630
|
+
return this.isDarkMode() ? 'dark' : 'light';
|
|
631
|
+
}, /* @ts-ignore */
|
|
632
|
+
...(ngDevMode ? [{ debugName: "effectiveThemeMode" }] : /* istanbul ignore next */ []));
|
|
633
|
+
/** Computed next mode in cycle: system -> light -> dark -> system */
|
|
634
|
+
nextThemeMode = computed(() => {
|
|
635
|
+
switch (this.effectiveThemeMode()) {
|
|
636
|
+
case 'system': return 'light';
|
|
637
|
+
case 'light': return 'dark';
|
|
638
|
+
case 'dark': return 'system';
|
|
639
|
+
default: return 'system';
|
|
640
|
+
}
|
|
641
|
+
}, /* @ts-ignore */
|
|
642
|
+
...(ngDevMode ? [{ debugName: "nextThemeMode" }] : /* istanbul ignore next */ []));
|
|
643
|
+
/** Computed tooltip for theme toggle button */
|
|
644
|
+
themeToggleTooltip = computed(() => {
|
|
645
|
+
const mode = this.effectiveThemeMode();
|
|
646
|
+
const label = mode === 'system' ? 'System (Auto)' : mode === 'dark' ? 'Dark' : 'Light';
|
|
647
|
+
return `Theme: ${label} (Click to cycle)`;
|
|
648
|
+
}, /* @ts-ignore */
|
|
649
|
+
...(ngDevMode ? [{ debugName: "themeToggleTooltip" }] : /* istanbul ignore next */ []));
|
|
650
|
+
/** Computed aria label for theme toggle button */
|
|
651
|
+
themeToggleAriaLabel = computed(() => {
|
|
652
|
+
const next = this.nextThemeMode();
|
|
653
|
+
const nextName = next === 'system' ? 'System Mode' : next === 'dark' ? 'Dark Mode' : 'Light Mode';
|
|
654
|
+
return `Switch to ${nextName}`;
|
|
655
|
+
}, /* @ts-ignore */
|
|
656
|
+
...(ngDevMode ? [{ debugName: "themeToggleAriaLabel" }] : /* istanbul ignore next */ []));
|
|
657
|
+
handleThemeToggle() {
|
|
658
|
+
const next = this.nextThemeMode();
|
|
659
|
+
this.themeToggle.emit();
|
|
660
|
+
this.themeModeChange.emit(next);
|
|
661
|
+
}
|
|
662
|
+
/** Handle brand click */
|
|
663
|
+
handleBrandClick() {
|
|
664
|
+
if (this.brandUrl()) {
|
|
665
|
+
window.open(this.brandUrl(), '_self');
|
|
666
|
+
}
|
|
667
|
+
else if (this.brandRoute() !== undefined && this.router) {
|
|
668
|
+
const route = this.brandRoute();
|
|
669
|
+
this.router.navigate(Array.isArray(route) ? route : [route]);
|
|
670
|
+
}
|
|
671
|
+
this.brandClick.emit();
|
|
672
|
+
}
|
|
673
|
+
/** Toggle sidebar collapse state via model or LayoutService */
|
|
674
|
+
toggleSidebar() {
|
|
675
|
+
if (this.sidebarCollapsed() !== undefined) {
|
|
676
|
+
this.sidebarCollapsed.update((c) => !c);
|
|
677
|
+
}
|
|
678
|
+
else if (this.layoutService) {
|
|
679
|
+
this.layoutService.toggleLeftNav();
|
|
680
|
+
}
|
|
681
|
+
this.sidebarToggleClick.emit();
|
|
682
|
+
}
|
|
683
|
+
/** Toggle dropdown state for a given item */
|
|
684
|
+
toggleDropdown(itemId, event) {
|
|
685
|
+
if (event) {
|
|
686
|
+
event.stopPropagation();
|
|
687
|
+
}
|
|
688
|
+
this.isUserDropdownOpen.set(false);
|
|
689
|
+
this.openDropdownId.update((curr) => (curr === itemId ? null : itemId));
|
|
690
|
+
}
|
|
691
|
+
/** Toggle user profile dropdown menu */
|
|
692
|
+
toggleUserDropdown(event) {
|
|
693
|
+
if (event) {
|
|
694
|
+
event.stopPropagation();
|
|
695
|
+
}
|
|
696
|
+
this.openDropdownId.set(null);
|
|
697
|
+
this.isUserDropdownOpen.update((open) => !open);
|
|
698
|
+
if (this.userProfile()) {
|
|
699
|
+
this.userClick.emit(this.userProfile());
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
/** Select a navigation item */
|
|
703
|
+
selectItem(item, event) {
|
|
704
|
+
if (item.disabled)
|
|
705
|
+
return;
|
|
706
|
+
if (item.children && item.children.length > 0) {
|
|
707
|
+
this.toggleDropdown(item.id || item.label, event);
|
|
708
|
+
return;
|
|
709
|
+
}
|
|
710
|
+
if (item.id) {
|
|
711
|
+
this.activeItemId.set(item.id);
|
|
712
|
+
}
|
|
713
|
+
this.closeAllDropdowns();
|
|
714
|
+
if (item.href) {
|
|
715
|
+
window.open(item.href, item.target ?? '_self');
|
|
716
|
+
}
|
|
717
|
+
else if (item.route !== undefined && this.router) {
|
|
718
|
+
this.router.navigate(Array.isArray(item.route) ? item.route : [item.route]);
|
|
719
|
+
}
|
|
720
|
+
this.itemClick.emit(item);
|
|
721
|
+
}
|
|
722
|
+
/** Select a child item inside a dropdown menu */
|
|
723
|
+
selectChildItem(child, parent, event) {
|
|
724
|
+
if (child.disabled)
|
|
725
|
+
return;
|
|
726
|
+
if (event) {
|
|
727
|
+
event.stopPropagation();
|
|
728
|
+
}
|
|
729
|
+
if (child.id) {
|
|
730
|
+
this.activeItemId.set(child.id);
|
|
731
|
+
}
|
|
732
|
+
this.closeAllDropdowns();
|
|
733
|
+
if (child.href) {
|
|
734
|
+
window.open(child.href, child.target ?? '_self');
|
|
735
|
+
}
|
|
736
|
+
else if (child.route !== undefined && this.router) {
|
|
737
|
+
this.router.navigate(Array.isArray(child.route) ? child.route : [child.route]);
|
|
738
|
+
}
|
|
739
|
+
this.itemClick.emit(child);
|
|
740
|
+
}
|
|
741
|
+
/** Handle action button click */
|
|
742
|
+
handleActionClick(action, event) {
|
|
743
|
+
if (action.disabled)
|
|
744
|
+
return;
|
|
745
|
+
if (action.onClick) {
|
|
746
|
+
action.onClick(action, event);
|
|
747
|
+
}
|
|
748
|
+
if (action.href) {
|
|
749
|
+
window.open(action.href, action.target ?? '_blank');
|
|
750
|
+
}
|
|
751
|
+
else if (action.route !== undefined && this.router) {
|
|
752
|
+
this.router.navigate(Array.isArray(action.route) ? action.route : [action.route]);
|
|
753
|
+
}
|
|
754
|
+
this.actionClick.emit(action);
|
|
755
|
+
}
|
|
756
|
+
/** Handle search input changes */
|
|
757
|
+
onSearchInput(event) {
|
|
758
|
+
const value = event.target.value;
|
|
759
|
+
this.searchChange.emit(value);
|
|
760
|
+
}
|
|
761
|
+
/** Close all open dropdown menus */
|
|
762
|
+
closeAllDropdowns() {
|
|
763
|
+
this.openDropdownId.set(null);
|
|
764
|
+
this.isUserDropdownOpen.set(false);
|
|
765
|
+
}
|
|
766
|
+
/** Dismiss dropdowns when clicking outside the component */
|
|
767
|
+
onDocumentClick(event) {
|
|
768
|
+
const target = event.target;
|
|
769
|
+
if (target && !this.elementRef.nativeElement.contains(target)) {
|
|
770
|
+
this.closeAllDropdowns();
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TopNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
774
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: TopNavComponent, isStandalone: true, selector: "talos-top-nav, [talos-top-nav], [talosTopNav]", inputs: { brandTitle: { classPropertyName: "brandTitle", publicName: "brandTitle", isSignal: true, isRequired: false, transformFunction: null }, brandSubtitle: { classPropertyName: "brandSubtitle", publicName: "brandSubtitle", isSignal: true, isRequired: false, transformFunction: null }, brandBadge: { classPropertyName: "brandBadge", publicName: "brandBadge", isSignal: true, isRequired: false, transformFunction: null }, brandIcon: { classPropertyName: "brandIcon", publicName: "brandIcon", isSignal: true, isRequired: false, transformFunction: null }, brandRoute: { classPropertyName: "brandRoute", publicName: "brandRoute", isSignal: true, isRequired: false, transformFunction: null }, brandUrl: { classPropertyName: "brandUrl", publicName: "brandUrl", isSignal: true, isRequired: false, transformFunction: null }, showBrand: { classPropertyName: "showBrand", publicName: "showBrand", isSignal: true, isRequired: false, transformFunction: null }, showLogo: { classPropertyName: "showLogo", publicName: "showLogo", isSignal: true, isRequired: false, transformFunction: null }, logoComponent: { classPropertyName: "logoComponent", publicName: "logoComponent", isSignal: true, isRequired: false, transformFunction: null }, logoComponentInputs: { classPropertyName: "logoComponentInputs", publicName: "logoComponentInputs", isSignal: true, isRequired: false, transformFunction: null }, logoTemplate: { classPropertyName: "logoTemplate", publicName: "logoTemplate", isSignal: true, isRequired: false, transformFunction: null }, showSidebarToggle: { classPropertyName: "showSidebarToggle", publicName: "showSidebarToggle", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, activeItemId: { classPropertyName: "activeItemId", publicName: "activeItemId", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, showThemeToggle: { classPropertyName: "showThemeToggle", publicName: "showThemeToggle", isSignal: true, isRequired: false, transformFunction: null }, themeMode: { classPropertyName: "themeMode", publicName: "themeMode", isSignal: true, isRequired: false, transformFunction: null }, isDarkMode: { classPropertyName: "isDarkMode", publicName: "isDarkMode", isSignal: true, isRequired: false, transformFunction: null }, userProfile: { classPropertyName: "userProfile", publicName: "userProfile", isSignal: true, isRequired: false, transformFunction: null }, showSearch: { classPropertyName: "showSearch", publicName: "showSearch", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, glass: { classPropertyName: "glass", publicName: "glass", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, leftComponent: { classPropertyName: "leftComponent", publicName: "leftComponent", isSignal: true, isRequired: false, transformFunction: null }, leftComponentInputs: { classPropertyName: "leftComponentInputs", publicName: "leftComponentInputs", isSignal: true, isRequired: false, transformFunction: null }, leftTemplate: { classPropertyName: "leftTemplate", publicName: "leftTemplate", isSignal: true, isRequired: false, transformFunction: null }, centerComponent: { classPropertyName: "centerComponent", publicName: "centerComponent", isSignal: true, isRequired: false, transformFunction: null }, centerComponentInputs: { classPropertyName: "centerComponentInputs", publicName: "centerComponentInputs", isSignal: true, isRequired: false, transformFunction: null }, centerTemplate: { classPropertyName: "centerTemplate", publicName: "centerTemplate", isSignal: true, isRequired: false, transformFunction: null }, rightComponent: { classPropertyName: "rightComponent", publicName: "rightComponent", isSignal: true, isRequired: false, transformFunction: null }, rightComponentInputs: { classPropertyName: "rightComponentInputs", publicName: "rightComponentInputs", isSignal: true, isRequired: false, transformFunction: null }, rightTemplate: { classPropertyName: "rightTemplate", publicName: "rightTemplate", isSignal: true, isRequired: false, transformFunction: null }, sidebarCollapsed: { classPropertyName: "sidebarCollapsed", publicName: "sidebarCollapsed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeItemId: "activeItemIdChange", sidebarCollapsed: "sidebarCollapsedChange", itemClick: "itemClick", actionClick: "actionClick", userClick: "userClick", themeToggle: "themeToggle", themeModeChange: "themeModeChange", searchChange: "searchChange", sidebarToggleClick: "sidebarToggleClick", brandClick: "brandClick" }, host: { attributes: { "role": "banner" }, listeners: { "document:click": "onDocumentClick($event)", "document:keydown.escape": "closeAllDropdowns()" }, properties: { "class.is-sticky": "sticky()", "class.is-glass": "glass()", "class.is-bordered": "bordered()", "class.size-sm": "size() === \"sm\"", "class.size-md": "size() === \"md\"", "class.size-lg": "size() === \"lg\"", "class.dark-theme": "isDarkMode()", "attr.data-theme": "isDarkMode() ? \"dark\" : \"light\"" }, classAttribute: "talos-top-nav-host" }, ngImport: i0, template: "<div class=\"talos-top-nav-inner\">\n <!-- Left Section: Toggle, Brand, Logo -->\n <div class=\"top-nav-left\">\n @if (leftComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: leftComponentInputs()\" />\n } @else if (leftTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else {\n <ng-content select=\"[top-nav-left]\">\n <!-- Sidebar Collapse Toggle Button -->\n @if (showSidebarToggle()) {\n <ng-content select=\"[top-nav-toggle]\">\n <button type=\"button\" class=\"nav-toggle-btn\" (click)=\"toggleSidebar()\"\n [attr.aria-label]=\"isSidebarCollapsed() ? 'Expand sidebar' : 'Collapse sidebar'\"\n [talosTooltip]=\"isSidebarCollapsed() ? 'Expand sidebar' : 'Collapse sidebar'\">\n @if (isSidebarCollapsed()) {\n <svg lucidePanelLeftOpen [size]=\"18\"></svg>\n } @else {\n <svg lucidePanelLeftClose [size]=\"18\"></svg>\n }\n </button>\n </ng-content>\n }\n\n <!-- Brand / Logo Area -->\n @if (showLogo() || showBrand()) {\n <div class=\"brand-container\" (click)=\"handleBrandClick()\"\n [attr.tabindex]=\"(brandRoute() || brandUrl()) ? 0 : null\"\n [attr.role]=\"(brandRoute() || brandUrl()) ? 'link' : null\">\n @if (showLogo()) {\n <div class=\"brand-logo-wrapper\">\n @if (logoComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: logoComponentInputs()\" />\n } @else if (logoTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else {\n <ng-content select=\"[top-nav-logo]\" />\n }\n </div>\n }\n\n @if (showBrand()) {\n <ng-content select=\"[top-nav-brand]\">\n <div class=\"brand-text-group\">\n <div class=\"brand-title-row\">\n @if (brandIcon(); as iconComp) {\n <span class=\"brand-icon\">\n <ng-container *ngComponentOutlet=\"iconComp\" />\n </span>\n }\n <span class=\"brand-title\">{{ brandTitle() }}</span>\n @if (brandBadge(); as badge) {\n <span class=\"brand-badge\">{{ badge }}</span>\n }\n </div>\n @if (brandSubtitle(); as subtitle) {\n <span class=\"brand-subtitle\">{{ subtitle }}</span>\n }\n </div>\n </ng-content>\n }\n </div>\n }\n </ng-content>\n }\n </div>\n\n <!-- Center Section: Navigation Links & Search -->\n <div class=\"top-nav-center\">\n @if (centerComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: centerComponentInputs()\" />\n } @else if (centerTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else {\n <ng-content select=\"[top-nav-center]\">\n <!-- Direct Navigation Items -->\n @if (items().length > 0) {\n <nav class=\"nav-links-bar\" aria-label=\"Main Navigation\">\n @for (item of items(); track item.id || item.label) {\n @if (item.children && item.children.length > 0) {\n <!-- Item with Dropdown Menu -->\n <div class=\"nav-item-dropdown-container\" [class.is-open]=\"openDropdownId() === (item.id || item.label)\">\n <button type=\"button\" class=\"nav-link-btn has-dropdown\"\n [class.is-active]=\"activeItemId() === item.id || !!item.active\" [disabled]=\"item.disabled ?? false\"\n [attr.aria-haspopup]=\"'true'\" [attr.aria-expanded]=\"openDropdownId() === (item.id || item.label)\"\n (click)=\"toggleDropdown(item.id || item.label, $event)\">\n @if (item.icon; as itemIcon) {\n <span class=\"nav-link-icon\">\n <ng-container *ngComponentOutlet=\"itemIcon\" />\n </span>\n }\n <span class=\"nav-link-label\">{{ item.label }}</span>\n @if (item.badge) {\n <span class=\"nav-link-badge\" [class]=\"'badge-' + (item.badgeVariant ?? 'primary')\">\n {{ item.badge }}\n </span>\n }\n <svg lucideChevronDown class=\"dropdown-chevron\" [size]=\"14\"></svg>\n </button>\n\n <!-- Dropdown Panel -->\n @if (openDropdownId() === (item.id || item.label)) {\n <div class=\"top-nav-dropdown-menu\" role=\"menu\" (click)=\"$event.stopPropagation()\">\n @if (item.dropdownTemplate; as customTmpl) {\n <ng-container *ngTemplateOutlet=\"customTmpl\" />\n } @else {\n <ul class=\"dropdown-menu-list\">\n @for (child of item.children; track child.id || child.label) {\n @if (child.divider) {\n <li class=\"dropdown-divider\" role=\"separator\"></li>\n }\n <li role=\"none\">\n <button type=\"button\" class=\"dropdown-menu-item\" role=\"menuitem\"\n [class.is-active]=\"activeItemId() === child.id || !!child.active\" [disabled]=\"child.disabled ?? false\"\n (click)=\"selectChildItem(child, item, $event)\">\n @if (child.icon; as childIcon) {\n <span class=\"dropdown-item-icon\">\n <ng-container *ngComponentOutlet=\"childIcon\" />\n </span>\n }\n <div class=\"dropdown-item-content\">\n <span class=\"dropdown-item-label\">{{ child.label }}</span>\n @if (child.description) {\n <span class=\"dropdown-item-desc\">{{ child.description }}</span>\n }\n </div>\n @if (child.badge) {\n <span class=\"dropdown-item-badge\" [class]=\"'badge-' + (child.badgeVariant ?? 'subtle')\">\n {{ child.badge }}\n </span>\n }\n </button>\n </li>\n }\n </ul>\n }\n </div>\n }\n </div>\n } @else {\n <!-- Standard Single Nav Link -->\n <button type=\"button\" class=\"nav-link-btn\" [class.is-active]=\"activeItemId() === item.id || !!item.active\"\n [disabled]=\"item.disabled ?? false\" (click)=\"selectItem(item, $event)\">\n @if (item.icon; as itemIcon) {\n <span class=\"nav-link-icon\">\n <ng-container *ngComponentOutlet=\"itemIcon\" />\n </span>\n }\n <span class=\"nav-link-label\">{{ item.label }}</span>\n @if (item.badge) {\n <span class=\"nav-link-badge\" [class]=\"'badge-' + (item.badgeVariant ?? 'primary')\">\n {{ item.badge }}\n </span>\n }\n </button>\n }\n }\n </nav>\n }\n\n <!-- Search Input Slot -->\n @if (showSearch()) {\n <div class=\"search-bar-wrapper\">\n <svg lucideSearch class=\"search-icon\" [size]=\"15\"></svg>\n <input type=\"text\" class=\"top-nav-search-input\" [placeholder]=\"searchPlaceholder()\"\n (input)=\"onSearchInput($event)\" />\n </div>\n }\n\n <!-- Custom projected center content -->\n <ng-content select=\"[top-nav-links]\" />\n <ng-content />\n </ng-content>\n }\n </div>\n\n <!-- Right Section: Actions, Theme Toggle, User Profile -->\n <div class=\"top-nav-right\">\n @if (rightComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: rightComponentInputs()\" />\n } @else if (rightTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else {\n <ng-content select=\"[top-nav-right]\">\n <!-- Action Buttons -->\n @if (actions().length > 0) {\n <div class=\"actions-group\">\n @for (action of actions(); track action.id || action.label || $index) {\n <button type=\"button\" class=\"action-btn\" [class.has-label]=\"action.showLabel && !!action.label\"\n [disabled]=\"action.disabled ?? false\" [attr.aria-label]=\"action.label || 'Action'\"\n [talosTooltip]=\"action.showLabel ? '' : (action.label || '')\" (click)=\"handleActionClick(action, $event)\">\n @if (action.icon; as actIcon) {\n <span class=\"action-btn-icon\">\n <ng-container *ngComponentOutlet=\"actIcon\" />\n </span>\n }\n @if (action.showLabel && action.label) {\n <span class=\"action-btn-label\">{{ action.label }}</span>\n }\n @if (action.badge) {\n <span class=\"action-badge\" [class]=\"'badge-' + (action.badgeVariant ?? 'danger')\">\n {{ action.badge }}\n </span>\n }\n </button>\n }\n </div>\n }\n\n <ng-content select=\"[top-nav-actions]\" />\n\n <!-- 3-Way System/Light/Dark Theme Toggle -->\n @if (showThemeToggle()) {\n <button type=\"button\" class=\"theme-toggle-btn\" (click)=\"handleThemeToggle()\"\n [attr.aria-label]=\"themeToggleAriaLabel()\"\n [talosTooltip]=\"themeToggleTooltip()\">\n @if (effectiveThemeMode() === 'system') {\n <svg lucideMonitor [size]=\"16\"></svg>\n } @else if (effectiveThemeMode() === 'dark') {\n <svg lucideMoon [size]=\"16\"></svg>\n } @else {\n <svg lucideSun [size]=\"16\"></svg>\n }\n </button>\n }\n\n <!-- User Profile & User Dropdown Menu -->\n @if (userProfile(); as user) {\n <div class=\"user-profile-container\" [class.is-open]=\"isUserDropdownOpen()\">\n <button type=\"button\" class=\"user-profile-btn\" [attr.aria-haspopup]=\"'true'\"\n [attr.aria-expanded]=\"isUserDropdownOpen()\" (click)=\"toggleUserDropdown($event)\">\n <div class=\"user-avatar-circle\">\n @if (user.avatarUrl) {\n <img [src]=\"user.avatarUrl\" [alt]=\"user.name\" class=\"user-avatar-img\" />\n } @else {\n <span class=\"avatar-initials\">{{ user.name.charAt(0) }}</span>\n }\n </div>\n <div class=\"user-profile-meta\">\n <span class=\"user-name-text\">{{ user.name }}</span>\n @if (user.role) {\n <span class=\"user-role-text\">{{ user.role }}</span>\n }\n </div>\n @if (user.menuItems && user.menuItems.length > 0) {\n <svg lucideChevronDown class=\"user-dropdown-chevron\" [size]=\"13\"></svg>\n }\n </button>\n\n <!-- User Dropdown Panel -->\n @if (isUserDropdownOpen() && user.menuItems && user.menuItems.length > 0) {\n <div class=\"top-nav-dropdown-menu user-dropdown-menu\" role=\"menu\" (click)=\"$event.stopPropagation()\">\n <div class=\"user-menu-header\">\n <span class=\"user-menu-header-name\">{{ user.name }}</span>\n @if (user.email) {\n <span class=\"user-menu-header-email\">{{ user.email }}</span>\n }\n </div>\n <div class=\"dropdown-divider\" role=\"separator\"></div>\n <ul class=\"dropdown-menu-list\">\n @for (menuItem of user.menuItems; track menuItem.id || menuItem.label) {\n @if (menuItem.divider) {\n <li class=\"dropdown-divider\" role=\"separator\"></li>\n }\n <li role=\"none\">\n <button type=\"button\" class=\"dropdown-menu-item\" role=\"menuitem\"\n [class.is-active]=\"activeItemId() === menuItem.id || !!menuItem.active\"\n [disabled]=\"menuItem.disabled ?? false\" (click)=\"selectItem(menuItem, $event)\">\n @if (menuItem.icon; as menuIcon) {\n <span class=\"dropdown-item-icon\">\n <ng-container *ngComponentOutlet=\"menuIcon\" />\n </span>\n }\n <div class=\"dropdown-item-content\">\n <span class=\"dropdown-item-label\">{{ menuItem.label }}</span>\n @if (menuItem.description) {\n <span class=\"dropdown-item-desc\">{{ menuItem.description }}</span>\n }\n </div>\n @if (menuItem.badge) {\n <span class=\"dropdown-item-badge\" [class]=\"'badge-' + (menuItem.badgeVariant ?? 'subtle')\">\n {{ menuItem.badge }}\n </span>\n }\n </button>\n </li>\n }\n </ul>\n </div>\n }\n </div>\n }\n\n <ng-content select=\"[top-nav-user]\" />\n </ng-content>\n }\n </div>\n</div>", styles: [":host,talos-top-nav,.talos-top-nav-host{display:block;width:100%;box-sizing:border-box;z-index:50;position:relative;overflow:visible;container-type:inline-size;container-name:topnav;--talos-top-nav-height: 60px;--talos-top-nav-bg: var(--talos-header-bg, var(--talos-bg-surface, #ffffff));--talos-top-nav-border: var(--talos-header-border-color, var(--talos-border-default, #e2e8f0));--talos-top-nav-text: var(--talos-text-primary, #0f172a);--talos-top-nav-muted: var(--talos-text-muted, #64748b);--talos-top-nav-hover-bg: var(--talos-nav-hover-bg, rgba(0, 0, 0, .04));--talos-top-nav-active-bg: var(--talos-primary-subtle-bg, #eff6ff);--talos-top-nav-active-text: var(--talos-primary-text, #1d4ed8);--talos-top-nav-dropdown-bg: var(--talos-bg-surface, #ffffff);--talos-top-nav-dropdown-border: var(--talos-border-default, #e2e8f0);--talos-top-nav-dropdown-shadow: var(--talos-shadow-dropdown, 0 10px 25px -5px rgba(0, 0, 0, .08))}:host.size-sm,talos-top-nav.size-sm,.talos-top-nav-host.size-sm{--talos-top-nav-height: 48px}:host.size-md,talos-top-nav.size-md,.talos-top-nav-host.size-md{--talos-top-nav-height: 60px}:host.size-lg,talos-top-nav.size-lg,.talos-top-nav-host.size-lg{--talos-top-nav-height: 72px}:host.is-sticky,talos-top-nav.is-sticky,.talos-top-nav-host.is-sticky{position:sticky;top:0;z-index:50}:host.is-bordered,talos-top-nav.is-bordered,.talos-top-nav-host.is-bordered{border-bottom:1px solid var(--talos-top-nav-border)}:host.is-glass,talos-top-nav.is-glass,.talos-top-nav-host.is-glass{--talos-top-nav-bg: rgba(255, 255, 255, .85);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}:root[data-theme=dark] :host,:root.dark :host,[data-theme=dark] :host,[data-mode=dark] :host,.dark :host,.dark-theme :host,:root[data-theme=dark] talos-top-nav,:root.dark talos-top-nav,[data-theme=dark] talos-top-nav,[data-mode=dark] talos-top-nav,.dark talos-top-nav,.dark-theme talos-top-nav{--talos-top-nav-bg: var(--talos-header-bg, #090d16);--talos-top-nav-border: var(--talos-header-border-color, rgba(255, 255, 255, .08));--talos-top-nav-text: #f8fafc;--talos-top-nav-muted: #94a3b8;--talos-top-nav-hover-bg: rgba(255, 255, 255, .06);--talos-top-nav-active-bg: var(--talos-primary-subtle-bg, rgba(59, 130, 246, .16));--talos-top-nav-active-text: #ffffff;--talos-top-nav-dropdown-bg: #0f172a;--talos-top-nav-dropdown-border: rgba(255, 255, 255, .1);--talos-top-nav-dropdown-shadow: 0 16px 32px -4px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08)}:root[data-theme=dark] :host.is-glass,:root.dark :host.is-glass,[data-theme=dark] :host.is-glass,[data-mode=dark] :host.is-glass,.dark :host.is-glass,.dark-theme :host.is-glass,:root[data-theme=dark] talos-top-nav.is-glass,:root.dark talos-top-nav.is-glass,[data-theme=dark] talos-top-nav.is-glass,[data-mode=dark] talos-top-nav.is-glass,.dark talos-top-nav.is-glass,.dark-theme talos-top-nav.is-glass{--talos-top-nav-bg: rgba(9, 13, 22, .85)}.talos-top-nav-inner{display:flex;align-items:center;justify-content:space-between;height:var(--talos-top-nav-height);padding:0 20px;background:var(--talos-top-nav-bg);box-sizing:border-box;gap:12px;position:relative;overflow:visible}.top-nav-left{display:flex;align-items:center;gap:10px;flex-shrink:0}.nav-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--talos-top-nav-muted);cursor:pointer;transition:all .15s ease;flex-shrink:0}.nav-toggle-btn:hover{background:var(--talos-top-nav-hover-bg);color:var(--talos-top-nav-text)}.nav-toggle-btn:focus-visible{outline:none;border-color:var(--talos-primary-color, var(--primary-color, #2563eb));box-shadow:var(--talos-focus-ring, var(--focus-ring, 0 0 0 2px rgba(37, 99, 235, .2)))}.brand-container{display:flex;align-items:center;gap:6px;text-decoration:none;cursor:pointer}.brand-logo-wrapper{display:inline-flex;align-items:center;justify-content:center}.brand-text-group{display:flex;flex-direction:column;line-height:1.2}.brand-title-row{display:flex;align-items:center;gap:6px}.brand-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:7px;background:var(--talos-top-nav-brand-icon-bg, var(--talos-primary-light, var(--primary-light, #eff6ff)));color:var(--talos-top-nav-brand-icon-color, var(--talos-primary-color, var(--primary-color, #2563eb)));border:1px solid var(--talos-top-nav-brand-icon-border, rgba(37, 99, 235, .2));flex-shrink:0;transition:all .2s ease}.brand-icon svg,.brand-icon i-lucide,.brand-icon .lucide{width:15px;height:15px;display:block}.brand-title{font-size:.95rem;font-weight:700;letter-spacing:-.01em;color:var(--talos-top-nav-text);white-space:nowrap}.brand-badge{display:inline-flex;align-items:center;padding:1px 6px;border-radius:6px;font-size:.625rem;font-weight:600;letter-spacing:.02em;background:var(--talos-top-nav-brand-badge-bg, var(--talos-top-nav-brand-icon-bg, var(--talos-primary-light, var(--primary-light, #eff6ff))));color:var(--talos-top-nav-brand-badge-color, var(--talos-top-nav-brand-icon-color, var(--talos-primary-color, var(--primary-color, #2563eb))));border:1px solid var(--talos-top-nav-brand-badge-border, var(--talos-top-nav-brand-icon-border, rgba(37, 99, 235, .2)));white-space:nowrap}.brand-subtitle{font-size:.6875rem;color:var(--talos-top-nav-muted);white-space:nowrap}.top-nav-center{display:flex;align-items:center;gap:10px;flex:1;min-width:0;justify-content:flex-start;overflow:visible;position:relative}.nav-links-bar{display:flex;align-items:center;gap:3px;flex-wrap:nowrap;flex-shrink:0;overflow:visible;position:relative}.nav-item-dropdown-container{position:relative;display:inline-flex;overflow:visible}.nav-link-btn{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;height:32px;border-radius:6px;border:1px solid transparent;background:transparent;color:var(--talos-top-nav-muted);font-size:.8125rem;font-weight:500;cursor:pointer;transition:all .15s cubic-bezier(.4,0,.2,1);white-space:nowrap;text-decoration:none;flex-shrink:0}.nav-link-btn:hover{background:var(--talos-top-nav-hover-bg);color:var(--talos-top-nav-text)}.nav-link-btn.is-active{background:var(--talos-top-nav-active-bg);color:var(--talos-top-nav-active-text);font-weight:600}.nav-link-btn[disabled]{opacity:.5;cursor:not-allowed}.nav-link-btn:focus-visible{outline:none;border-color:var(--talos-primary-color, var(--primary-color, #2563eb));box-shadow:var(--talos-focus-ring, var(--focus-ring, 0 0 0 2px rgba(37, 99, 235, .2)))}.nav-link-btn .dropdown-chevron{transition:transform .2s ease;opacity:.7}.nav-link-btn.has-dropdown{padding-right:6px}.nav-item-dropdown-container.is-open .nav-link-btn .dropdown-chevron{transform:rotate(180deg)}.nav-link-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:16px;height:16px}.nav-link-icon svg,.nav-link-icon i-lucide,.nav-link-icon .lucide{width:15px;height:15px;display:block}.nav-link-badge,.dropdown-item-badge,.action-badge{display:inline-flex;align-items:center;justify-content:center;padding:1px 5px;border-radius:9999px;font-size:.625rem;font-weight:600;line-height:1.2}.nav-link-badge.badge-primary,.dropdown-item-badge.badge-primary,.action-badge.badge-primary{background:var(--talos-primary-light, var(--primary-light, #eff6ff));color:var(--talos-primary-color, var(--primary-color, #2563eb))}.nav-link-badge.badge-secondary,.dropdown-item-badge.badge-secondary,.action-badge.badge-secondary{background:#64748b1f;color:var(--text-muted, #64748b)}.nav-link-badge.badge-success,.dropdown-item-badge.badge-success,.action-badge.badge-success{background:#22c55e1f;color:#16a34a}.nav-link-badge.badge-warning,.dropdown-item-badge.badge-warning,.action-badge.badge-warning{background:#eab3081f;color:#ca8a04}.nav-link-badge.badge-danger,.dropdown-item-badge.badge-danger,.action-badge.badge-danger{background:#ef44441f;color:#dc2626}.nav-link-badge.badge-subtle,.dropdown-item-badge.badge-subtle,.action-badge.badge-subtle{background:#0000000d;color:var(--talos-top-nav-muted)}.top-nav-dropdown-menu{position:absolute;top:calc(100% + 6px);left:0;min-width:220px;max-width:320px;background:var(--talos-top-nav-dropdown-bg);border:1px solid var(--talos-top-nav-dropdown-border);border-radius:10px;box-shadow:var(--talos-top-nav-dropdown-shadow);padding:6px;z-index:1050;animation:dropdownFadeSlide .18s cubic-bezier(.16,1,.3,1);box-sizing:border-box}.top-nav-dropdown-menu.user-dropdown-menu{right:0;left:auto;min-width:240px}@keyframes dropdownFadeSlide{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.dropdown-menu-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}.dropdown-divider{height:1px;background:var(--talos-top-nav-dropdown-border);margin:4px 0}.dropdown-menu-item{width:100%;display:flex;align-items:center;gap:10px;padding:7px 9px;border-radius:6px;border:none;background:transparent;color:var(--talos-top-nav-text);font-size:.8125rem;font-weight:500;text-align:left;cursor:pointer;transition:all .12s ease;box-sizing:border-box}.dropdown-menu-item:hover{background:var(--talos-top-nav-hover-bg);color:var(--talos-primary-color, var(--talos-top-nav-text))}.dropdown-menu-item.is-active{background:var(--talos-top-nav-active-bg);color:var(--talos-top-nav-active-text);font-weight:600}.dropdown-menu-item[disabled]{opacity:.45;cursor:not-allowed}.dropdown-menu-item:focus-visible{outline:none;background:var(--talos-top-nav-hover-bg)}.dropdown-item-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--talos-top-nav-muted);flex-shrink:0;width:16px;height:16px}.dropdown-item-icon svg,.dropdown-item-icon i-lucide,.dropdown-item-icon .lucide{width:15px;height:15px;display:block}.dropdown-item-content{display:flex;flex-direction:column;flex:1;min-width:0}.dropdown-item-label{font-weight:500;color:var(--talos-top-nav-text)}.dropdown-item-desc{font-size:.6875rem;color:var(--talos-top-nav-muted);margin-top:1px}.search-bar-wrapper{display:flex;align-items:center;position:relative;flex:0 1 180px;min-width:100px;max-width:220px}.search-icon{position:absolute;left:9px;color:var(--talos-top-nav-muted);pointer-events:none}.top-nav-search-input{width:100%;height:30px;padding:0 8px 0 28px;border-radius:6px;border:1px solid var(--talos-top-nav-border);background:var(--talos-top-nav-hover-bg);color:var(--talos-top-nav-text);font-size:.75rem;transition:all .15s ease}.top-nav-search-input::placeholder{color:var(--talos-top-nav-muted)}.top-nav-search-input:focus{outline:none;border-color:var(--talos-primary-color, var(--primary-color, #2563eb));background:var(--talos-top-nav-dropdown-bg);box-shadow:var(--talos-focus-ring, var(--focus-ring, 0 0 0 2px rgba(37, 99, 235, .2)))}.top-nav-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.actions-group{display:flex;align-items:center;gap:3px}.action-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--talos-top-nav-muted);cursor:pointer;transition:all .15s ease;flex-shrink:0;gap:6px}.action-btn.has-label{width:auto;padding:0 10px;font-size:.8125rem;font-weight:500}.action-btn .action-btn-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:16px;height:16px}.action-btn .action-btn-icon svg,.action-btn .action-btn-icon i-lucide,.action-btn .action-btn-icon .lucide{width:15px;height:15px;display:block}.action-btn .action-btn-label{font-size:.8125rem;font-weight:500;white-space:nowrap}.action-btn:hover{background:var(--talos-top-nav-hover-bg);color:var(--talos-top-nav-text)}.action-btn[disabled]{opacity:.5;cursor:not-allowed}.action-btn:focus-visible{outline:none;border-color:var(--talos-primary-color, var(--primary-color, #2563eb));box-shadow:var(--talos-focus-ring, var(--focus-ring, 0 0 0 2px rgba(37, 99, 235, .2)))}.action-btn .action-badge{position:absolute;top:2px;right:2px;padding:1px 4px;font-size:.5625rem}.theme-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--talos-top-nav-muted);cursor:pointer;transition:all .15s ease;flex-shrink:0}.theme-toggle-btn:hover{background:var(--talos-top-nav-hover-bg);color:var(--talos-top-nav-text)}.theme-toggle-btn:focus-visible{outline:none;border-color:var(--talos-primary-color, var(--primary-color, #2563eb));box-shadow:var(--talos-focus-ring, var(--focus-ring, 0 0 0 2px rgba(37, 99, 235, .2)))}.user-profile-container{position:relative;display:inline-flex;flex-shrink:0}.user-profile-btn{display:flex;align-items:center;gap:7px;padding:3px 7px 3px 3px;border-radius:9999px;border:1px solid var(--talos-top-nav-border);background:transparent;cursor:pointer;transition:all .15s ease}.user-profile-btn:hover{background:var(--talos-top-nav-hover-bg)}.user-profile-btn:focus-visible{outline:none;border-color:var(--talos-primary-color, var(--primary-color, #2563eb));box-shadow:var(--talos-focus-ring, var(--focus-ring, 0 0 0 2px rgba(37, 99, 235, .2)))}.user-profile-btn .user-dropdown-chevron{color:var(--talos-top-nav-muted);transition:transform .2s ease}.user-profile-container.is-open .user-dropdown-chevron{transform:rotate(180deg)}.user-avatar-circle{width:26px;height:26px;border-radius:50%;background:var(--talos-primary-light, var(--primary-light, #eff6ff));color:var(--talos-primary-color, var(--primary-color, #2592eb));display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;overflow:hidden;flex-shrink:0}.user-avatar-img{width:100%;height:100%;object-fit:cover}.user-profile-meta{display:flex;flex-direction:column;text-align:left;line-height:1.15}.user-name-text{font-size:.75rem;font-weight:600;color:var(--talos-top-nav-text);white-space:nowrap}.user-role-text{font-size:.625rem;color:var(--talos-top-nav-muted);white-space:nowrap}.user-menu-header{padding:8px 10px 6px;display:flex;flex-direction:column;gap:2px}.user-menu-header-name{font-size:.8125rem;font-weight:600;color:var(--talos-top-nav-text)}.user-menu-header-email{font-size:.6875rem;color:var(--talos-top-nav-muted)}@container topnav (max-width: 840px){.brand-subtitle,.user-role-text{display:none}}@container topnav (max-width: 640px){.brand-badge,.user-profile-meta{display:none}.search-bar-wrapper{max-width:130px}}@container topnav (max-width: 480px){.search-bar-wrapper{display:none}}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: LucideChevronDown, selector: "svg[lucideChevronDown]" }, { kind: "component", type: LucidePanelLeftOpen, selector: "svg[lucidePanelLeftOpen], svg[lucideSidebarOpen]" }, { kind: "component", type: LucidePanelLeftClose, selector: "svg[lucidePanelLeftClose], svg[lucideSidebarClose]" }, { kind: "component", type: LucideSearch, selector: "svg[lucideSearch]" }, { kind: "component", type: LucideSun, selector: "svg[lucideSun]" }, { kind: "component", type: LucideMoon, selector: "svg[lucideMoon]" }, { kind: "component", type: LucideMonitor, selector: "svg[lucideMonitor]" }, { kind: "directive", type: TalosTooltipDirective, selector: "[talosTooltip], [tooltip]", inputs: ["talosTooltip", "tooltip", "tooltipPosition", "tooltipDisabled"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
775
|
+
}
|
|
776
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TopNavComponent, decorators: [{
|
|
777
|
+
type: Component,
|
|
778
|
+
args: [{ selector: 'talos-top-nav, [talos-top-nav], [talosTopNav]', imports: [
|
|
779
|
+
NgComponentOutlet,
|
|
780
|
+
NgTemplateOutlet,
|
|
781
|
+
LucideChevronDown,
|
|
782
|
+
LucidePanelLeftOpen,
|
|
783
|
+
LucidePanelLeftClose,
|
|
784
|
+
LucideSearch,
|
|
785
|
+
LucideSun,
|
|
786
|
+
LucideMoon,
|
|
787
|
+
LucideMonitor,
|
|
788
|
+
TalosTooltipDirective
|
|
789
|
+
], encapsulation: ViewEncapsulation.None, host: {
|
|
790
|
+
'class': 'talos-top-nav-host',
|
|
791
|
+
'[class.is-sticky]': 'sticky()',
|
|
792
|
+
'[class.is-glass]': 'glass()',
|
|
793
|
+
'[class.is-bordered]': 'bordered()',
|
|
794
|
+
'[class.size-sm]': 'size() === "sm"',
|
|
795
|
+
'[class.size-md]': 'size() === "md"',
|
|
796
|
+
'[class.size-lg]': 'size() === "lg"',
|
|
797
|
+
'[class.dark-theme]': 'isDarkMode()',
|
|
798
|
+
'[attr.data-theme]': 'isDarkMode() ? "dark" : "light"',
|
|
799
|
+
'role': 'banner',
|
|
800
|
+
'(document:click)': 'onDocumentClick($event)',
|
|
801
|
+
'(document:keydown.escape)': 'closeAllDropdowns()'
|
|
802
|
+
}, template: "<div class=\"talos-top-nav-inner\">\n <!-- Left Section: Toggle, Brand, Logo -->\n <div class=\"top-nav-left\">\n @if (leftComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: leftComponentInputs()\" />\n } @else if (leftTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else {\n <ng-content select=\"[top-nav-left]\">\n <!-- Sidebar Collapse Toggle Button -->\n @if (showSidebarToggle()) {\n <ng-content select=\"[top-nav-toggle]\">\n <button type=\"button\" class=\"nav-toggle-btn\" (click)=\"toggleSidebar()\"\n [attr.aria-label]=\"isSidebarCollapsed() ? 'Expand sidebar' : 'Collapse sidebar'\"\n [talosTooltip]=\"isSidebarCollapsed() ? 'Expand sidebar' : 'Collapse sidebar'\">\n @if (isSidebarCollapsed()) {\n <svg lucidePanelLeftOpen [size]=\"18\"></svg>\n } @else {\n <svg lucidePanelLeftClose [size]=\"18\"></svg>\n }\n </button>\n </ng-content>\n }\n\n <!-- Brand / Logo Area -->\n @if (showLogo() || showBrand()) {\n <div class=\"brand-container\" (click)=\"handleBrandClick()\"\n [attr.tabindex]=\"(brandRoute() || brandUrl()) ? 0 : null\"\n [attr.role]=\"(brandRoute() || brandUrl()) ? 'link' : null\">\n @if (showLogo()) {\n <div class=\"brand-logo-wrapper\">\n @if (logoComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: logoComponentInputs()\" />\n } @else if (logoTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else {\n <ng-content select=\"[top-nav-logo]\" />\n }\n </div>\n }\n\n @if (showBrand()) {\n <ng-content select=\"[top-nav-brand]\">\n <div class=\"brand-text-group\">\n <div class=\"brand-title-row\">\n @if (brandIcon(); as iconComp) {\n <span class=\"brand-icon\">\n <ng-container *ngComponentOutlet=\"iconComp\" />\n </span>\n }\n <span class=\"brand-title\">{{ brandTitle() }}</span>\n @if (brandBadge(); as badge) {\n <span class=\"brand-badge\">{{ badge }}</span>\n }\n </div>\n @if (brandSubtitle(); as subtitle) {\n <span class=\"brand-subtitle\">{{ subtitle }}</span>\n }\n </div>\n </ng-content>\n }\n </div>\n }\n </ng-content>\n }\n </div>\n\n <!-- Center Section: Navigation Links & Search -->\n <div class=\"top-nav-center\">\n @if (centerComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: centerComponentInputs()\" />\n } @else if (centerTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else {\n <ng-content select=\"[top-nav-center]\">\n <!-- Direct Navigation Items -->\n @if (items().length > 0) {\n <nav class=\"nav-links-bar\" aria-label=\"Main Navigation\">\n @for (item of items(); track item.id || item.label) {\n @if (item.children && item.children.length > 0) {\n <!-- Item with Dropdown Menu -->\n <div class=\"nav-item-dropdown-container\" [class.is-open]=\"openDropdownId() === (item.id || item.label)\">\n <button type=\"button\" class=\"nav-link-btn has-dropdown\"\n [class.is-active]=\"activeItemId() === item.id || !!item.active\" [disabled]=\"item.disabled ?? false\"\n [attr.aria-haspopup]=\"'true'\" [attr.aria-expanded]=\"openDropdownId() === (item.id || item.label)\"\n (click)=\"toggleDropdown(item.id || item.label, $event)\">\n @if (item.icon; as itemIcon) {\n <span class=\"nav-link-icon\">\n <ng-container *ngComponentOutlet=\"itemIcon\" />\n </span>\n }\n <span class=\"nav-link-label\">{{ item.label }}</span>\n @if (item.badge) {\n <span class=\"nav-link-badge\" [class]=\"'badge-' + (item.badgeVariant ?? 'primary')\">\n {{ item.badge }}\n </span>\n }\n <svg lucideChevronDown class=\"dropdown-chevron\" [size]=\"14\"></svg>\n </button>\n\n <!-- Dropdown Panel -->\n @if (openDropdownId() === (item.id || item.label)) {\n <div class=\"top-nav-dropdown-menu\" role=\"menu\" (click)=\"$event.stopPropagation()\">\n @if (item.dropdownTemplate; as customTmpl) {\n <ng-container *ngTemplateOutlet=\"customTmpl\" />\n } @else {\n <ul class=\"dropdown-menu-list\">\n @for (child of item.children; track child.id || child.label) {\n @if (child.divider) {\n <li class=\"dropdown-divider\" role=\"separator\"></li>\n }\n <li role=\"none\">\n <button type=\"button\" class=\"dropdown-menu-item\" role=\"menuitem\"\n [class.is-active]=\"activeItemId() === child.id || !!child.active\" [disabled]=\"child.disabled ?? false\"\n (click)=\"selectChildItem(child, item, $event)\">\n @if (child.icon; as childIcon) {\n <span class=\"dropdown-item-icon\">\n <ng-container *ngComponentOutlet=\"childIcon\" />\n </span>\n }\n <div class=\"dropdown-item-content\">\n <span class=\"dropdown-item-label\">{{ child.label }}</span>\n @if (child.description) {\n <span class=\"dropdown-item-desc\">{{ child.description }}</span>\n }\n </div>\n @if (child.badge) {\n <span class=\"dropdown-item-badge\" [class]=\"'badge-' + (child.badgeVariant ?? 'subtle')\">\n {{ child.badge }}\n </span>\n }\n </button>\n </li>\n }\n </ul>\n }\n </div>\n }\n </div>\n } @else {\n <!-- Standard Single Nav Link -->\n <button type=\"button\" class=\"nav-link-btn\" [class.is-active]=\"activeItemId() === item.id || !!item.active\"\n [disabled]=\"item.disabled ?? false\" (click)=\"selectItem(item, $event)\">\n @if (item.icon; as itemIcon) {\n <span class=\"nav-link-icon\">\n <ng-container *ngComponentOutlet=\"itemIcon\" />\n </span>\n }\n <span class=\"nav-link-label\">{{ item.label }}</span>\n @if (item.badge) {\n <span class=\"nav-link-badge\" [class]=\"'badge-' + (item.badgeVariant ?? 'primary')\">\n {{ item.badge }}\n </span>\n }\n </button>\n }\n }\n </nav>\n }\n\n <!-- Search Input Slot -->\n @if (showSearch()) {\n <div class=\"search-bar-wrapper\">\n <svg lucideSearch class=\"search-icon\" [size]=\"15\"></svg>\n <input type=\"text\" class=\"top-nav-search-input\" [placeholder]=\"searchPlaceholder()\"\n (input)=\"onSearchInput($event)\" />\n </div>\n }\n\n <!-- Custom projected center content -->\n <ng-content select=\"[top-nav-links]\" />\n <ng-content />\n </ng-content>\n }\n </div>\n\n <!-- Right Section: Actions, Theme Toggle, User Profile -->\n <div class=\"top-nav-right\">\n @if (rightComponent(); as comp) {\n <ng-container *ngComponentOutlet=\"comp; inputs: rightComponentInputs()\" />\n } @else if (rightTemplate(); as tmpl) {\n <ng-container *ngTemplateOutlet=\"tmpl\" />\n } @else {\n <ng-content select=\"[top-nav-right]\">\n <!-- Action Buttons -->\n @if (actions().length > 0) {\n <div class=\"actions-group\">\n @for (action of actions(); track action.id || action.label || $index) {\n <button type=\"button\" class=\"action-btn\" [class.has-label]=\"action.showLabel && !!action.label\"\n [disabled]=\"action.disabled ?? false\" [attr.aria-label]=\"action.label || 'Action'\"\n [talosTooltip]=\"action.showLabel ? '' : (action.label || '')\" (click)=\"handleActionClick(action, $event)\">\n @if (action.icon; as actIcon) {\n <span class=\"action-btn-icon\">\n <ng-container *ngComponentOutlet=\"actIcon\" />\n </span>\n }\n @if (action.showLabel && action.label) {\n <span class=\"action-btn-label\">{{ action.label }}</span>\n }\n @if (action.badge) {\n <span class=\"action-badge\" [class]=\"'badge-' + (action.badgeVariant ?? 'danger')\">\n {{ action.badge }}\n </span>\n }\n </button>\n }\n </div>\n }\n\n <ng-content select=\"[top-nav-actions]\" />\n\n <!-- 3-Way System/Light/Dark Theme Toggle -->\n @if (showThemeToggle()) {\n <button type=\"button\" class=\"theme-toggle-btn\" (click)=\"handleThemeToggle()\"\n [attr.aria-label]=\"themeToggleAriaLabel()\"\n [talosTooltip]=\"themeToggleTooltip()\">\n @if (effectiveThemeMode() === 'system') {\n <svg lucideMonitor [size]=\"16\"></svg>\n } @else if (effectiveThemeMode() === 'dark') {\n <svg lucideMoon [size]=\"16\"></svg>\n } @else {\n <svg lucideSun [size]=\"16\"></svg>\n }\n </button>\n }\n\n <!-- User Profile & User Dropdown Menu -->\n @if (userProfile(); as user) {\n <div class=\"user-profile-container\" [class.is-open]=\"isUserDropdownOpen()\">\n <button type=\"button\" class=\"user-profile-btn\" [attr.aria-haspopup]=\"'true'\"\n [attr.aria-expanded]=\"isUserDropdownOpen()\" (click)=\"toggleUserDropdown($event)\">\n <div class=\"user-avatar-circle\">\n @if (user.avatarUrl) {\n <img [src]=\"user.avatarUrl\" [alt]=\"user.name\" class=\"user-avatar-img\" />\n } @else {\n <span class=\"avatar-initials\">{{ user.name.charAt(0) }}</span>\n }\n </div>\n <div class=\"user-profile-meta\">\n <span class=\"user-name-text\">{{ user.name }}</span>\n @if (user.role) {\n <span class=\"user-role-text\">{{ user.role }}</span>\n }\n </div>\n @if (user.menuItems && user.menuItems.length > 0) {\n <svg lucideChevronDown class=\"user-dropdown-chevron\" [size]=\"13\"></svg>\n }\n </button>\n\n <!-- User Dropdown Panel -->\n @if (isUserDropdownOpen() && user.menuItems && user.menuItems.length > 0) {\n <div class=\"top-nav-dropdown-menu user-dropdown-menu\" role=\"menu\" (click)=\"$event.stopPropagation()\">\n <div class=\"user-menu-header\">\n <span class=\"user-menu-header-name\">{{ user.name }}</span>\n @if (user.email) {\n <span class=\"user-menu-header-email\">{{ user.email }}</span>\n }\n </div>\n <div class=\"dropdown-divider\" role=\"separator\"></div>\n <ul class=\"dropdown-menu-list\">\n @for (menuItem of user.menuItems; track menuItem.id || menuItem.label) {\n @if (menuItem.divider) {\n <li class=\"dropdown-divider\" role=\"separator\"></li>\n }\n <li role=\"none\">\n <button type=\"button\" class=\"dropdown-menu-item\" role=\"menuitem\"\n [class.is-active]=\"activeItemId() === menuItem.id || !!menuItem.active\"\n [disabled]=\"menuItem.disabled ?? false\" (click)=\"selectItem(menuItem, $event)\">\n @if (menuItem.icon; as menuIcon) {\n <span class=\"dropdown-item-icon\">\n <ng-container *ngComponentOutlet=\"menuIcon\" />\n </span>\n }\n <div class=\"dropdown-item-content\">\n <span class=\"dropdown-item-label\">{{ menuItem.label }}</span>\n @if (menuItem.description) {\n <span class=\"dropdown-item-desc\">{{ menuItem.description }}</span>\n }\n </div>\n @if (menuItem.badge) {\n <span class=\"dropdown-item-badge\" [class]=\"'badge-' + (menuItem.badgeVariant ?? 'subtle')\">\n {{ menuItem.badge }}\n </span>\n }\n </button>\n </li>\n }\n </ul>\n </div>\n }\n </div>\n }\n\n <ng-content select=\"[top-nav-user]\" />\n </ng-content>\n }\n </div>\n</div>", styles: [":host,talos-top-nav,.talos-top-nav-host{display:block;width:100%;box-sizing:border-box;z-index:50;position:relative;overflow:visible;container-type:inline-size;container-name:topnav;--talos-top-nav-height: 60px;--talos-top-nav-bg: var(--talos-header-bg, var(--talos-bg-surface, #ffffff));--talos-top-nav-border: var(--talos-header-border-color, var(--talos-border-default, #e2e8f0));--talos-top-nav-text: var(--talos-text-primary, #0f172a);--talos-top-nav-muted: var(--talos-text-muted, #64748b);--talos-top-nav-hover-bg: var(--talos-nav-hover-bg, rgba(0, 0, 0, .04));--talos-top-nav-active-bg: var(--talos-primary-subtle-bg, #eff6ff);--talos-top-nav-active-text: var(--talos-primary-text, #1d4ed8);--talos-top-nav-dropdown-bg: var(--talos-bg-surface, #ffffff);--talos-top-nav-dropdown-border: var(--talos-border-default, #e2e8f0);--talos-top-nav-dropdown-shadow: var(--talos-shadow-dropdown, 0 10px 25px -5px rgba(0, 0, 0, .08))}:host.size-sm,talos-top-nav.size-sm,.talos-top-nav-host.size-sm{--talos-top-nav-height: 48px}:host.size-md,talos-top-nav.size-md,.talos-top-nav-host.size-md{--talos-top-nav-height: 60px}:host.size-lg,talos-top-nav.size-lg,.talos-top-nav-host.size-lg{--talos-top-nav-height: 72px}:host.is-sticky,talos-top-nav.is-sticky,.talos-top-nav-host.is-sticky{position:sticky;top:0;z-index:50}:host.is-bordered,talos-top-nav.is-bordered,.talos-top-nav-host.is-bordered{border-bottom:1px solid var(--talos-top-nav-border)}:host.is-glass,talos-top-nav.is-glass,.talos-top-nav-host.is-glass{--talos-top-nav-bg: rgba(255, 255, 255, .85);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}:root[data-theme=dark] :host,:root.dark :host,[data-theme=dark] :host,[data-mode=dark] :host,.dark :host,.dark-theme :host,:root[data-theme=dark] talos-top-nav,:root.dark talos-top-nav,[data-theme=dark] talos-top-nav,[data-mode=dark] talos-top-nav,.dark talos-top-nav,.dark-theme talos-top-nav{--talos-top-nav-bg: var(--talos-header-bg, #090d16);--talos-top-nav-border: var(--talos-header-border-color, rgba(255, 255, 255, .08));--talos-top-nav-text: #f8fafc;--talos-top-nav-muted: #94a3b8;--talos-top-nav-hover-bg: rgba(255, 255, 255, .06);--talos-top-nav-active-bg: var(--talos-primary-subtle-bg, rgba(59, 130, 246, .16));--talos-top-nav-active-text: #ffffff;--talos-top-nav-dropdown-bg: #0f172a;--talos-top-nav-dropdown-border: rgba(255, 255, 255, .1);--talos-top-nav-dropdown-shadow: 0 16px 32px -4px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08)}:root[data-theme=dark] :host.is-glass,:root.dark :host.is-glass,[data-theme=dark] :host.is-glass,[data-mode=dark] :host.is-glass,.dark :host.is-glass,.dark-theme :host.is-glass,:root[data-theme=dark] talos-top-nav.is-glass,:root.dark talos-top-nav.is-glass,[data-theme=dark] talos-top-nav.is-glass,[data-mode=dark] talos-top-nav.is-glass,.dark talos-top-nav.is-glass,.dark-theme talos-top-nav.is-glass{--talos-top-nav-bg: rgba(9, 13, 22, .85)}.talos-top-nav-inner{display:flex;align-items:center;justify-content:space-between;height:var(--talos-top-nav-height);padding:0 20px;background:var(--talos-top-nav-bg);box-sizing:border-box;gap:12px;position:relative;overflow:visible}.top-nav-left{display:flex;align-items:center;gap:10px;flex-shrink:0}.nav-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--talos-top-nav-muted);cursor:pointer;transition:all .15s ease;flex-shrink:0}.nav-toggle-btn:hover{background:var(--talos-top-nav-hover-bg);color:var(--talos-top-nav-text)}.nav-toggle-btn:focus-visible{outline:none;border-color:var(--talos-primary-color, var(--primary-color, #2563eb));box-shadow:var(--talos-focus-ring, var(--focus-ring, 0 0 0 2px rgba(37, 99, 235, .2)))}.brand-container{display:flex;align-items:center;gap:6px;text-decoration:none;cursor:pointer}.brand-logo-wrapper{display:inline-flex;align-items:center;justify-content:center}.brand-text-group{display:flex;flex-direction:column;line-height:1.2}.brand-title-row{display:flex;align-items:center;gap:6px}.brand-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:7px;background:var(--talos-top-nav-brand-icon-bg, var(--talos-primary-light, var(--primary-light, #eff6ff)));color:var(--talos-top-nav-brand-icon-color, var(--talos-primary-color, var(--primary-color, #2563eb)));border:1px solid var(--talos-top-nav-brand-icon-border, rgba(37, 99, 235, .2));flex-shrink:0;transition:all .2s ease}.brand-icon svg,.brand-icon i-lucide,.brand-icon .lucide{width:15px;height:15px;display:block}.brand-title{font-size:.95rem;font-weight:700;letter-spacing:-.01em;color:var(--talos-top-nav-text);white-space:nowrap}.brand-badge{display:inline-flex;align-items:center;padding:1px 6px;border-radius:6px;font-size:.625rem;font-weight:600;letter-spacing:.02em;background:var(--talos-top-nav-brand-badge-bg, var(--talos-top-nav-brand-icon-bg, var(--talos-primary-light, var(--primary-light, #eff6ff))));color:var(--talos-top-nav-brand-badge-color, var(--talos-top-nav-brand-icon-color, var(--talos-primary-color, var(--primary-color, #2563eb))));border:1px solid var(--talos-top-nav-brand-badge-border, var(--talos-top-nav-brand-icon-border, rgba(37, 99, 235, .2)));white-space:nowrap}.brand-subtitle{font-size:.6875rem;color:var(--talos-top-nav-muted);white-space:nowrap}.top-nav-center{display:flex;align-items:center;gap:10px;flex:1;min-width:0;justify-content:flex-start;overflow:visible;position:relative}.nav-links-bar{display:flex;align-items:center;gap:3px;flex-wrap:nowrap;flex-shrink:0;overflow:visible;position:relative}.nav-item-dropdown-container{position:relative;display:inline-flex;overflow:visible}.nav-link-btn{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;height:32px;border-radius:6px;border:1px solid transparent;background:transparent;color:var(--talos-top-nav-muted);font-size:.8125rem;font-weight:500;cursor:pointer;transition:all .15s cubic-bezier(.4,0,.2,1);white-space:nowrap;text-decoration:none;flex-shrink:0}.nav-link-btn:hover{background:var(--talos-top-nav-hover-bg);color:var(--talos-top-nav-text)}.nav-link-btn.is-active{background:var(--talos-top-nav-active-bg);color:var(--talos-top-nav-active-text);font-weight:600}.nav-link-btn[disabled]{opacity:.5;cursor:not-allowed}.nav-link-btn:focus-visible{outline:none;border-color:var(--talos-primary-color, var(--primary-color, #2563eb));box-shadow:var(--talos-focus-ring, var(--focus-ring, 0 0 0 2px rgba(37, 99, 235, .2)))}.nav-link-btn .dropdown-chevron{transition:transform .2s ease;opacity:.7}.nav-link-btn.has-dropdown{padding-right:6px}.nav-item-dropdown-container.is-open .nav-link-btn .dropdown-chevron{transform:rotate(180deg)}.nav-link-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:16px;height:16px}.nav-link-icon svg,.nav-link-icon i-lucide,.nav-link-icon .lucide{width:15px;height:15px;display:block}.nav-link-badge,.dropdown-item-badge,.action-badge{display:inline-flex;align-items:center;justify-content:center;padding:1px 5px;border-radius:9999px;font-size:.625rem;font-weight:600;line-height:1.2}.nav-link-badge.badge-primary,.dropdown-item-badge.badge-primary,.action-badge.badge-primary{background:var(--talos-primary-light, var(--primary-light, #eff6ff));color:var(--talos-primary-color, var(--primary-color, #2563eb))}.nav-link-badge.badge-secondary,.dropdown-item-badge.badge-secondary,.action-badge.badge-secondary{background:#64748b1f;color:var(--text-muted, #64748b)}.nav-link-badge.badge-success,.dropdown-item-badge.badge-success,.action-badge.badge-success{background:#22c55e1f;color:#16a34a}.nav-link-badge.badge-warning,.dropdown-item-badge.badge-warning,.action-badge.badge-warning{background:#eab3081f;color:#ca8a04}.nav-link-badge.badge-danger,.dropdown-item-badge.badge-danger,.action-badge.badge-danger{background:#ef44441f;color:#dc2626}.nav-link-badge.badge-subtle,.dropdown-item-badge.badge-subtle,.action-badge.badge-subtle{background:#0000000d;color:var(--talos-top-nav-muted)}.top-nav-dropdown-menu{position:absolute;top:calc(100% + 6px);left:0;min-width:220px;max-width:320px;background:var(--talos-top-nav-dropdown-bg);border:1px solid var(--talos-top-nav-dropdown-border);border-radius:10px;box-shadow:var(--talos-top-nav-dropdown-shadow);padding:6px;z-index:1050;animation:dropdownFadeSlide .18s cubic-bezier(.16,1,.3,1);box-sizing:border-box}.top-nav-dropdown-menu.user-dropdown-menu{right:0;left:auto;min-width:240px}@keyframes dropdownFadeSlide{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.dropdown-menu-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}.dropdown-divider{height:1px;background:var(--talos-top-nav-dropdown-border);margin:4px 0}.dropdown-menu-item{width:100%;display:flex;align-items:center;gap:10px;padding:7px 9px;border-radius:6px;border:none;background:transparent;color:var(--talos-top-nav-text);font-size:.8125rem;font-weight:500;text-align:left;cursor:pointer;transition:all .12s ease;box-sizing:border-box}.dropdown-menu-item:hover{background:var(--talos-top-nav-hover-bg);color:var(--talos-primary-color, var(--talos-top-nav-text))}.dropdown-menu-item.is-active{background:var(--talos-top-nav-active-bg);color:var(--talos-top-nav-active-text);font-weight:600}.dropdown-menu-item[disabled]{opacity:.45;cursor:not-allowed}.dropdown-menu-item:focus-visible{outline:none;background:var(--talos-top-nav-hover-bg)}.dropdown-item-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--talos-top-nav-muted);flex-shrink:0;width:16px;height:16px}.dropdown-item-icon svg,.dropdown-item-icon i-lucide,.dropdown-item-icon .lucide{width:15px;height:15px;display:block}.dropdown-item-content{display:flex;flex-direction:column;flex:1;min-width:0}.dropdown-item-label{font-weight:500;color:var(--talos-top-nav-text)}.dropdown-item-desc{font-size:.6875rem;color:var(--talos-top-nav-muted);margin-top:1px}.search-bar-wrapper{display:flex;align-items:center;position:relative;flex:0 1 180px;min-width:100px;max-width:220px}.search-icon{position:absolute;left:9px;color:var(--talos-top-nav-muted);pointer-events:none}.top-nav-search-input{width:100%;height:30px;padding:0 8px 0 28px;border-radius:6px;border:1px solid var(--talos-top-nav-border);background:var(--talos-top-nav-hover-bg);color:var(--talos-top-nav-text);font-size:.75rem;transition:all .15s ease}.top-nav-search-input::placeholder{color:var(--talos-top-nav-muted)}.top-nav-search-input:focus{outline:none;border-color:var(--talos-primary-color, var(--primary-color, #2563eb));background:var(--talos-top-nav-dropdown-bg);box-shadow:var(--talos-focus-ring, var(--focus-ring, 0 0 0 2px rgba(37, 99, 235, .2)))}.top-nav-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.actions-group{display:flex;align-items:center;gap:3px}.action-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--talos-top-nav-muted);cursor:pointer;transition:all .15s ease;flex-shrink:0;gap:6px}.action-btn.has-label{width:auto;padding:0 10px;font-size:.8125rem;font-weight:500}.action-btn .action-btn-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:16px;height:16px}.action-btn .action-btn-icon svg,.action-btn .action-btn-icon i-lucide,.action-btn .action-btn-icon .lucide{width:15px;height:15px;display:block}.action-btn .action-btn-label{font-size:.8125rem;font-weight:500;white-space:nowrap}.action-btn:hover{background:var(--talos-top-nav-hover-bg);color:var(--talos-top-nav-text)}.action-btn[disabled]{opacity:.5;cursor:not-allowed}.action-btn:focus-visible{outline:none;border-color:var(--talos-primary-color, var(--primary-color, #2563eb));box-shadow:var(--talos-focus-ring, var(--focus-ring, 0 0 0 2px rgba(37, 99, 235, .2)))}.action-btn .action-badge{position:absolute;top:2px;right:2px;padding:1px 4px;font-size:.5625rem}.theme-toggle-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--talos-top-nav-muted);cursor:pointer;transition:all .15s ease;flex-shrink:0}.theme-toggle-btn:hover{background:var(--talos-top-nav-hover-bg);color:var(--talos-top-nav-text)}.theme-toggle-btn:focus-visible{outline:none;border-color:var(--talos-primary-color, var(--primary-color, #2563eb));box-shadow:var(--talos-focus-ring, var(--focus-ring, 0 0 0 2px rgba(37, 99, 235, .2)))}.user-profile-container{position:relative;display:inline-flex;flex-shrink:0}.user-profile-btn{display:flex;align-items:center;gap:7px;padding:3px 7px 3px 3px;border-radius:9999px;border:1px solid var(--talos-top-nav-border);background:transparent;cursor:pointer;transition:all .15s ease}.user-profile-btn:hover{background:var(--talos-top-nav-hover-bg)}.user-profile-btn:focus-visible{outline:none;border-color:var(--talos-primary-color, var(--primary-color, #2563eb));box-shadow:var(--talos-focus-ring, var(--focus-ring, 0 0 0 2px rgba(37, 99, 235, .2)))}.user-profile-btn .user-dropdown-chevron{color:var(--talos-top-nav-muted);transition:transform .2s ease}.user-profile-container.is-open .user-dropdown-chevron{transform:rotate(180deg)}.user-avatar-circle{width:26px;height:26px;border-radius:50%;background:var(--talos-primary-light, var(--primary-light, #eff6ff));color:var(--talos-primary-color, var(--primary-color, #2592eb));display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;overflow:hidden;flex-shrink:0}.user-avatar-img{width:100%;height:100%;object-fit:cover}.user-profile-meta{display:flex;flex-direction:column;text-align:left;line-height:1.15}.user-name-text{font-size:.75rem;font-weight:600;color:var(--talos-top-nav-text);white-space:nowrap}.user-role-text{font-size:.625rem;color:var(--talos-top-nav-muted);white-space:nowrap}.user-menu-header{padding:8px 10px 6px;display:flex;flex-direction:column;gap:2px}.user-menu-header-name{font-size:.8125rem;font-weight:600;color:var(--talos-top-nav-text)}.user-menu-header-email{font-size:.6875rem;color:var(--talos-top-nav-muted)}@container topnav (max-width: 840px){.brand-subtitle,.user-role-text{display:none}}@container topnav (max-width: 640px){.brand-badge,.user-profile-meta{display:none}.search-bar-wrapper{max-width:130px}}@container topnav (max-width: 480px){.search-bar-wrapper{display:none}}\n"] }]
|
|
803
|
+
}], propDecorators: { brandTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandTitle", required: false }] }], brandSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandSubtitle", required: false }] }], brandBadge: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandBadge", required: false }] }], brandIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandIcon", required: false }] }], brandRoute: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandRoute", required: false }] }], brandUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandUrl", required: false }] }], showBrand: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBrand", required: false }] }], showLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLogo", required: false }] }], logoComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoComponent", required: false }] }], logoComponentInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoComponentInputs", required: false }] }], logoTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoTemplate", required: false }] }], showSidebarToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSidebarToggle", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], activeItemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeItemId", required: false }] }, { type: i0.Output, args: ["activeItemIdChange"] }], actions: [{ type: i0.Input, args: [{ isSignal: true, alias: "actions", required: false }] }], showThemeToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showThemeToggle", required: false }] }], themeMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "themeMode", required: false }] }], isDarkMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDarkMode", required: false }] }], userProfile: [{ type: i0.Input, args: [{ isSignal: true, alias: "userProfile", required: false }] }], showSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSearch", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], sticky: [{ type: i0.Input, args: [{ isSignal: true, alias: "sticky", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], glass: [{ type: i0.Input, args: [{ isSignal: true, alias: "glass", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], leftComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "leftComponent", required: false }] }], leftComponentInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "leftComponentInputs", required: false }] }], leftTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "leftTemplate", required: false }] }], centerComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "centerComponent", required: false }] }], centerComponentInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "centerComponentInputs", required: false }] }], centerTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "centerTemplate", required: false }] }], rightComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "rightComponent", required: false }] }], rightComponentInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "rightComponentInputs", required: false }] }], rightTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "rightTemplate", required: false }] }], sidebarCollapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarCollapsed", required: false }] }, { type: i0.Output, args: ["sidebarCollapsedChange"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], actionClick: [{ type: i0.Output, args: ["actionClick"] }], userClick: [{ type: i0.Output, args: ["userClick"] }], themeToggle: [{ type: i0.Output, args: ["themeToggle"] }], themeModeChange: [{ type: i0.Output, args: ["themeModeChange"] }], searchChange: [{ type: i0.Output, args: ["searchChange"] }], sidebarToggleClick: [{ type: i0.Output, args: ["sidebarToggleClick"] }], brandClick: [{ type: i0.Output, args: ["brandClick"] }] } });
|
|
804
|
+
|
|
805
|
+
class TalosTopNavModule {
|
|
806
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTopNavModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
807
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: TalosTopNavModule, imports: [TopNavComponent], exports: [TopNavComponent] });
|
|
808
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTopNavModule, imports: [TopNavComponent] });
|
|
809
|
+
}
|
|
810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosTopNavModule, decorators: [{
|
|
811
|
+
type: NgModule,
|
|
812
|
+
args: [{
|
|
813
|
+
imports: [TopNavComponent],
|
|
814
|
+
exports: [TopNavComponent]
|
|
815
|
+
}]
|
|
816
|
+
}] });
|
|
817
|
+
|
|
818
|
+
class TalosSideNavModule {
|
|
819
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosSideNavModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
820
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: TalosSideNavModule, imports: [SideNavComponent,
|
|
821
|
+
TalosNavGroupComponent,
|
|
822
|
+
TalosNavItemComponent,
|
|
823
|
+
TalosNavThemeToggleComponent], exports: [SideNavComponent,
|
|
824
|
+
TalosNavGroupComponent,
|
|
825
|
+
TalosNavItemComponent,
|
|
826
|
+
TalosNavThemeToggleComponent] });
|
|
827
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosSideNavModule, imports: [SideNavComponent,
|
|
828
|
+
TalosNavGroupComponent,
|
|
829
|
+
TalosNavThemeToggleComponent] });
|
|
830
|
+
}
|
|
831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosSideNavModule, decorators: [{
|
|
832
|
+
type: NgModule,
|
|
833
|
+
args: [{
|
|
834
|
+
imports: [
|
|
835
|
+
SideNavComponent,
|
|
836
|
+
TalosNavGroupComponent,
|
|
837
|
+
TalosNavItemComponent,
|
|
838
|
+
TalosNavThemeToggleComponent
|
|
839
|
+
],
|
|
840
|
+
exports: [
|
|
841
|
+
SideNavComponent,
|
|
842
|
+
TalosNavGroupComponent,
|
|
843
|
+
TalosNavItemComponent,
|
|
844
|
+
TalosNavThemeToggleComponent
|
|
845
|
+
]
|
|
846
|
+
}]
|
|
847
|
+
}] });
|
|
848
|
+
class TalosNavModule {
|
|
849
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosNavModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
850
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: TalosNavModule, imports: [SideNavComponent,
|
|
851
|
+
TopNavComponent,
|
|
852
|
+
TalosNavGroupComponent,
|
|
853
|
+
TalosNavItemComponent,
|
|
854
|
+
TalosNavThemeToggleComponent,
|
|
855
|
+
TalosTopNavModule, TalosSideNavModule], exports: [SideNavComponent,
|
|
856
|
+
TopNavComponent,
|
|
857
|
+
TalosNavGroupComponent,
|
|
858
|
+
TalosNavItemComponent,
|
|
859
|
+
TalosNavThemeToggleComponent,
|
|
860
|
+
TalosTopNavModule, TalosSideNavModule] });
|
|
861
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosNavModule, imports: [SideNavComponent,
|
|
862
|
+
TopNavComponent,
|
|
863
|
+
TalosNavGroupComponent,
|
|
864
|
+
TalosNavThemeToggleComponent,
|
|
865
|
+
TalosTopNavModule,
|
|
866
|
+
TalosSideNavModule, TalosTopNavModule, TalosSideNavModule] });
|
|
867
|
+
}
|
|
868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: TalosNavModule, decorators: [{
|
|
869
|
+
type: NgModule,
|
|
870
|
+
args: [{
|
|
871
|
+
imports: [
|
|
872
|
+
SideNavComponent,
|
|
873
|
+
TopNavComponent,
|
|
874
|
+
TalosNavGroupComponent,
|
|
875
|
+
TalosNavItemComponent,
|
|
876
|
+
TalosNavThemeToggleComponent,
|
|
877
|
+
TalosTopNavModule,
|
|
878
|
+
TalosSideNavModule
|
|
879
|
+
],
|
|
880
|
+
exports: [
|
|
881
|
+
SideNavComponent,
|
|
882
|
+
TopNavComponent,
|
|
883
|
+
TalosNavGroupComponent,
|
|
884
|
+
TalosNavItemComponent,
|
|
885
|
+
TalosNavThemeToggleComponent,
|
|
886
|
+
TalosTopNavModule,
|
|
887
|
+
TalosSideNavModule
|
|
888
|
+
]
|
|
889
|
+
}]
|
|
890
|
+
}] });
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Generated bundle index. Do not edit.
|
|
894
|
+
*/
|
|
895
|
+
|
|
896
|
+
export { SideNavComponent, TalosNavGroupComponent, TalosNavItemComponent, TalosNavModule, TalosNavThemeToggleComponent, TalosSideNavModule, TalosTopNavModule, TopNavComponent };
|
|
897
|
+
//# sourceMappingURL=weeehaoooz-talos-ui-nav.mjs.map
|