@edsis/angular 22.2.11 → 22.2.14
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/fesm2022/edsis-angular-chart-area.mjs +3 -3
- package/fesm2022/edsis-angular-chart-bar.mjs +3 -3
- package/fesm2022/edsis-angular-chart-core.mjs +34 -34
- package/fesm2022/edsis-angular-chart-line.mjs +3 -3
- package/fesm2022/edsis-angular-chart-pie.mjs +3 -3
- package/fesm2022/edsis-angular-chart-primitives.mjs +33 -33
- package/fesm2022/edsis-angular-chart-radar.mjs +3 -3
- package/fesm2022/edsis-angular-chart-radial.mjs +3 -3
- package/fesm2022/edsis-angular-chart-scatter.mjs +3 -3
- package/fesm2022/edsis-angular-component-accordion.mjs +15 -15
- package/fesm2022/edsis-angular-component-alert-dialog.mjs +27 -27
- package/fesm2022/edsis-angular-component-alert.mjs +12 -12
- package/fesm2022/edsis-angular-component-aspect-ratio.mjs +3 -3
- package/fesm2022/edsis-angular-component-avatar.mjs +18 -18
- package/fesm2022/edsis-angular-component-badge.mjs +3 -3
- package/fesm2022/edsis-angular-component-breadcrumb.mjs +21 -21
- package/fesm2022/edsis-angular-component-button-group.mjs +9 -9
- package/fesm2022/edsis-angular-component-button.mjs +3 -3
- package/fesm2022/edsis-angular-component-calendar.mjs +3 -3
- package/fesm2022/edsis-angular-component-card.mjs +21 -21
- package/fesm2022/edsis-angular-component-carousel.mjs +18 -18
- package/fesm2022/edsis-angular-component-checkbox.mjs +3 -3
- package/fesm2022/edsis-angular-component-collapsible.mjs +12 -12
- package/fesm2022/edsis-angular-component-combobox.mjs +3 -3
- package/fesm2022/edsis-angular-component-command.mjs +27 -27
- package/fesm2022/edsis-angular-component-composer.mjs +21 -21
- package/fesm2022/edsis-angular-component-context-menu.mjs +3 -3
- package/fesm2022/edsis-angular-component-date-picker.mjs +3 -3
- package/fesm2022/edsis-angular-component-dialog.mjs +21 -21
- package/fesm2022/edsis-angular-component-dropdown-menu.mjs +39 -39
- package/fesm2022/edsis-angular-component-editor.mjs +18 -18
- package/fesm2022/edsis-angular-component-empty.mjs +18 -18
- package/fesm2022/edsis-angular-component-form.mjs +36 -36
- package/fesm2022/edsis-angular-component-hover-card.mjs +9 -9
- package/fesm2022/edsis-angular-component-icon.mjs +6 -6
- package/fesm2022/edsis-angular-component-input-group.mjs +18 -18
- package/fesm2022/edsis-angular-component-input-otp.mjs +15 -15
- package/fesm2022/edsis-angular-component-input.mjs +3 -3
- package/fesm2022/edsis-angular-component-item.mjs +30 -30
- package/fesm2022/edsis-angular-component-kanban.mjs +27 -27
- package/fesm2022/edsis-angular-component-kbd.mjs +6 -6
- package/fesm2022/edsis-angular-component-label.mjs +3 -3
- package/fesm2022/edsis-angular-component-menubar.mjs +12 -12
- package/fesm2022/edsis-angular-component-native-select.mjs +9 -9
- package/fesm2022/edsis-angular-component-navigation-menu.mjs +21 -21
- package/fesm2022/edsis-angular-component-pagination.mjs +3 -3
- package/fesm2022/edsis-angular-component-pillbox.mjs +15 -15
- package/fesm2022/edsis-angular-component-popover.mjs +6 -6
- package/fesm2022/edsis-angular-component-progress.mjs +3 -3
- package/fesm2022/edsis-angular-component-radio.mjs +6 -6
- package/fesm2022/edsis-angular-component-resizable.mjs +12 -12
- package/fesm2022/edsis-angular-component-scroll-area.mjs +3 -3
- package/fesm2022/edsis-angular-component-segmented-control.mjs +9 -7
- package/fesm2022/edsis-angular-component-select.mjs +6 -6
- package/fesm2022/edsis-angular-component-separator.mjs +3 -3
- package/fesm2022/edsis-angular-component-sheet.mjs +21 -21
- package/fesm2022/edsis-angular-component-skeleton.mjs +3 -3
- package/fesm2022/edsis-angular-component-slider.mjs +6 -6
- package/fesm2022/edsis-angular-component-spinner.mjs +3 -3
- package/fesm2022/edsis-angular-component-switch.mjs +3 -3
- package/fesm2022/edsis-angular-component-table.mjs +24 -24
- package/fesm2022/edsis-angular-component-tabs.mjs +18 -18
- package/fesm2022/edsis-angular-component-textarea.mjs +3 -3
- package/fesm2022/edsis-angular-component-timeline.mjs +18 -18
- package/fesm2022/edsis-angular-component-toast.mjs +3 -3
- package/fesm2022/edsis-angular-component-toggle-group.mjs +9 -9
- package/fesm2022/edsis-angular-component-toggle.mjs +3 -3
- package/fesm2022/edsis-angular-component-tooltip.mjs +15 -15
- package/fesm2022/edsis-angular-component-utils-core.mjs +420 -4
- package/fesm2022/edsis-angular-component-utils-scale.mjs +3 -3
- package/fesm2022/edsis-angular-navigation-icon.mjs +3 -3
- package/fesm2022/{edsis-angular-navigation-navigation-badge-count.component-D70Ju6_f.mjs → edsis-angular-navigation-navigation-badge-count.component-CLXtMyMX.mjs} +3 -3
- package/fesm2022/{edsis-angular-navigation-navigation-dockbar-menu.component-Wtnee3lp.mjs → edsis-angular-navigation-navigation-dockbar-menu.component-BNduIDrI.mjs} +30 -7
- package/fesm2022/{edsis-angular-navigation-navigation-entry-grid.component-CjxqB5LR.mjs → edsis-angular-navigation-navigation-entry-grid.component-CsD4tbBb.mjs} +60 -21
- package/fesm2022/{edsis-angular-navigation-navigation-flyout-menu.component-DGq4YT1o.mjs → edsis-angular-navigation-navigation-flyout-menu.component-Bs4PLVd6.mjs} +9 -7
- package/fesm2022/{edsis-angular-navigation-navigation-horizontal.component-CG8KNHK2.mjs → edsis-angular-navigation-navigation-horizontal.component-B1XQjUwa.mjs} +10 -8
- package/fesm2022/{edsis-angular-navigation-navigation-item.component-DLHZ8--d.mjs → edsis-angular-navigation-navigation-item.component-CIt0rwpl.mjs} +182 -55
- package/fesm2022/{edsis-angular-navigation-navigation-list.component-I8GW0_HG.mjs → edsis-angular-navigation-navigation-list.component-Dpre1l6O.mjs} +24 -4
- package/fesm2022/edsis-angular-navigation-service.mjs +7 -7
- package/fesm2022/edsis-angular-navigation.mjs +90 -66
- package/fesm2022/edsis-angular-theme-component-settings.mjs +88 -23
- package/fesm2022/edsis-angular-theme-layout-services.mjs +7 -7
- package/fesm2022/edsis-angular-theme-layout-wrapper.mjs +54 -30
- package/fesm2022/edsis-angular-theme-layout.mjs +26 -29
- package/fesm2022/edsis-angular-theme-on-fill.mjs +3 -3
- package/fesm2022/edsis-angular-theme-page-core.mjs +3 -3
- package/fesm2022/edsis-angular-theme-page-filter.mjs +6 -6
- package/fesm2022/edsis-angular-theme-page-overview.mjs +3 -3
- package/fesm2022/edsis-angular-theme-page-root.mjs +4 -3
- package/fesm2022/edsis-angular-theme-page-side.mjs +6 -6
- package/fesm2022/edsis-angular-theme-page-slots.mjs +12 -12
- package/fesm2022/edsis-angular-theme-shell-services.mjs +4 -4
- package/fesm2022/edsis-angular-theme-shell.mjs +10 -9
- package/fesm2022/edsis-angular-theme-styles.mjs +109 -178
- package/navigation/README.md +32 -2
- package/package.json +2 -2
- package/theme/component/settings/README.md +15 -0
- package/theme/styles/README.md +71 -1
- package/theme/styles/css/base/components.css +29 -75
- package/theme/styles/css/base/theme.css +3 -3
- package/theme/styles/css/base/tokens.css +8 -0
- package/types/edsis-angular-component-card.d.ts +1 -1
- package/types/edsis-angular-component-command.d.ts +1 -1
- package/types/edsis-angular-component-segmented-control.d.ts +3 -3
- package/types/edsis-angular-component-utils-core.d.ts +147 -3
- package/types/edsis-angular-navigation-types.d.ts +2 -0
- package/types/edsis-angular-navigation.d.ts +8 -1
- package/types/edsis-angular-theme-component-settings.d.ts +9 -1
- package/types/edsis-angular-theme-layout-wrapper.d.ts +9 -2
- package/types/edsis-angular-theme-layout.d.ts +0 -1
- package/types/edsis-angular-theme-styles.d.ts +30 -26
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as hasNavigationCountBadge, s as navigationDescendantBadgeSources, t as NavigationBadgeCountComponent } from "./edsis-angular-navigation-navigation-badge-count.component-
|
|
1
|
+
import { i as hasNavigationCountBadge, s as navigationDescendantBadgeSources, t as NavigationBadgeCountComponent } from "./edsis-angular-navigation-navigation-badge-count.component-CLXtMyMX.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, InjectionToken, computed, inject, input, output, signal } from "@angular/core";
|
|
4
4
|
import { ActivatedRoute, Router, RouterLink } from "@angular/router";
|
|
@@ -23,7 +23,7 @@ var NavigationItemBadgeComponent = class NavigationItemBadgeComponent {
|
|
|
23
23
|
}, ...ngDevMode ? [{ debugName: "source" }] : /* istanbul ignore next */ []);
|
|
24
24
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
25
25
|
minVersion: "12.0.0",
|
|
26
|
-
version: "22.2.
|
|
26
|
+
version: "22.2.6",
|
|
27
27
|
ngImport: i0,
|
|
28
28
|
type: NavigationItemBadgeComponent,
|
|
29
29
|
deps: [],
|
|
@@ -31,7 +31,7 @@ var NavigationItemBadgeComponent = class NavigationItemBadgeComponent {
|
|
|
31
31
|
});
|
|
32
32
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
33
33
|
minVersion: "17.0.0",
|
|
34
|
-
version: "22.2.
|
|
34
|
+
version: "22.2.6",
|
|
35
35
|
type: NavigationItemBadgeComponent,
|
|
36
36
|
isStandalone: true,
|
|
37
37
|
selector: "NavigationItemBadge",
|
|
@@ -102,7 +102,7 @@ var NavigationItemBadgeComponent = class NavigationItemBadgeComponent {
|
|
|
102
102
|
};
|
|
103
103
|
i0.ɵɵngDeclareClassMetadata({
|
|
104
104
|
minVersion: "12.0.0",
|
|
105
|
-
version: "22.2.
|
|
105
|
+
version: "22.2.6",
|
|
106
106
|
ngImport: i0,
|
|
107
107
|
type: NavigationItemBadgeComponent,
|
|
108
108
|
decorators: [{
|
|
@@ -169,6 +169,20 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
169
169
|
}]
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
|
+
const NAVIGATION_ACTIVE_PARENT_ICON_CLASSES = "isolate text-primary-foreground before:pointer-events-none before:absolute before:-inset-1 before:-z-10 before:rounded-md before:border before:border-primary before:bg-primary before:content-['']";
|
|
173
|
+
function navigationTargetLayoutClasses(orientation, level) {
|
|
174
|
+
return orientation === "horizontal" && level === 0 ? "inline-flex h-(--nav-item-height) px-(--nav-item-padding-x)" : "flex min-h-(--nav-item-height) w-full px-(--nav-item-padding-x) py-1 text-left";
|
|
175
|
+
}
|
|
176
|
+
function navigationActiveRailClasses(segment, stairsRail, firstInBranch) {
|
|
177
|
+
if (!segment || stairsRail && segment === "end") return "";
|
|
178
|
+
return cn("relative", "before:pointer-events-none before:absolute before:content-['']", stairsRail ? "before:-left-[calc(var(--nav-indent)-var(--nav-rail-offset))] before:-translate-x-1/2 before:w-px before:bg-primary before:-top-0.5" : cn("before:left-(--nav-rail-offset) before:w-0 before:-z-10 before:border-l before:border-dotted before:border-primary", firstInBranch ? "before:-top-[calc(var(--nav-item-height)/2+var(--spacing-base)*0.5)]" : "before:-top-0.5"), segment === "end" ? "before:bottom-[calc(100%-var(--nav-item-height)/2)]" : "before:-bottom-0.5");
|
|
179
|
+
}
|
|
180
|
+
function navigationInteractiveStateClasses(active, orientation, compact, parent, stairsRail, connectsChildren) {
|
|
181
|
+
const connectorClasses = active && orientation === "vertical" && !compact && stairsRail ? "after:pointer-events-none after:absolute after:left-[calc(var(--nav-rail-offset)-var(--nav-indent)-0.5px)] after:bottom-[calc(50%-0.5px)] after:-z-10 after:h-[calc(50%+var(--spacing-base)*0.5+0.5px)] after:w-[calc(var(--nav-rail-branch-width)+1px)] after:rounded-bl-(--nav-rail-radius) after:border-b after:border-l after:border-primary after:content-['']" : "";
|
|
182
|
+
if (active && parent && orientation === "vertical") return cn("relative isolate text-foreground", connectorClasses, connectsChildren && "before:pointer-events-none before:absolute before:top-1/2 before:bottom-0 before:left-(--nav-rail-offset) before:-z-10 before:w-px before:-translate-x-1/2 before:bg-primary before:content-['']");
|
|
183
|
+
if (orientation === "vertical" && !compact) return cn("relative isolate", "before:pointer-events-none before:absolute before:inset-y-0 before:left-2 before:right-2 before:-z-10 before:rounded-md before:border before:border-transparent before:bg-transparent before:transition-colors before:duration-normal before:content-['']", connectorClasses, active ? "text-primary-foreground before:bg-primary" : "text-foreground/80 hover:text-accent-foreground hover:before:bg-accent");
|
|
184
|
+
return active ? "text-primary-foreground bg-primary" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground";
|
|
185
|
+
}
|
|
172
186
|
var NavigationItemContentComponent = class NavigationItemContentComponent {
|
|
173
187
|
hasCountBadge = hasNavigationCountBadge;
|
|
174
188
|
nav = inject(NAVIGATION_ADAPTER);
|
|
@@ -179,11 +193,12 @@ var NavigationItemContentComponent = class NavigationItemContentComponent {
|
|
|
179
193
|
orientation = input("vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
|
|
180
194
|
level = input(0, ...ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []);
|
|
181
195
|
iconTemplate = input(void 0, ...ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []);
|
|
182
|
-
hasIconSlot = computed(() => !!this.item().icon || hasNavigationCountBadge(this.item()), ...ngDevMode ? [{ debugName: "hasIconSlot" }] : /* istanbul ignore next */ []);
|
|
183
|
-
|
|
184
|
-
|
|
196
|
+
hasIconSlot = computed(() => !!this.item().icon || hasNavigationCountBadge(this.item()) || this.compact() && this.item().children.length > 0, ...ngDevMode ? [{ debugName: "hasIconSlot" }] : /* istanbul ignore next */ []);
|
|
197
|
+
activeParent = computed(() => this.active() && this.item().children.length > 0 && (this.orientation() === "vertical" || this.level() > 0), ...ngDevMode ? [{ debugName: "activeParent" }] : /* istanbul ignore next */ []);
|
|
198
|
+
iconSlotClasses = computed(() => cn("relative z-10 inline-flex shrink-0 items-center justify-center transition-colors duration-normal", this.compact() && "mx-auto", this.activeParent() ? NAVIGATION_ACTIVE_PARENT_ICON_CLASSES : this.active() ? "text-current" : "text-muted-foreground group-hover/nav:text-current"), ...ngDevMode ? [{ debugName: "iconSlotClasses" }] : /* istanbul ignore next */ []);
|
|
199
|
+
titleClasses = computed(() => cn("block truncate", this.item().classes?.title), ...ngDevMode ? [{ debugName: "titleClasses" }] : /* istanbul ignore next */ []);
|
|
185
200
|
showSubtitle = computed(() => !!this.item().subtitle && !(this.orientation() === "horizontal" && this.level() === 0), ...ngDevMode ? [{ debugName: "showSubtitle" }] : /* istanbul ignore next */ []);
|
|
186
|
-
subtitleClasses = computed(() => cn("nav-subtitle block truncate text-muted-foreground", this.item().classes?.subtitle), ...ngDevMode ? [{ debugName: "subtitleClasses" }] : /* istanbul ignore next */ []);
|
|
201
|
+
subtitleClasses = computed(() => cn("nav-subtitle block truncate", this.active() && !this.activeParent() ? "text-current" : "text-muted-foreground", this.item().classes?.subtitle), ...ngDevMode ? [{ debugName: "subtitleClasses" }] : /* istanbul ignore next */ []);
|
|
187
202
|
compactFallbackClasses = computed(() => cn("inline-flex h-5 min-w-5 items-center justify-center text-(length:--nav-icon-size-sub) font-semibold uppercase"), ...ngDevMode ? [{ debugName: "compactFallbackClasses" }] : /* istanbul ignore next */ []);
|
|
188
203
|
defaultBadgeClasses = computed(() => cn("nav-badge ml-auto inline-flex h-5 shrink-0 items-center rounded-full px-2", this.active() ? "bg-background text-foreground" : "bg-muted text-muted-foreground"), ...ngDevMode ? [{ debugName: "defaultBadgeClasses" }] : /* istanbul ignore next */ []);
|
|
189
204
|
defaultIconClasses = computed(() => cn(this.compact() ? "text-(length:--nav-icon-size-rail)" : "text-(length:--nav-icon-size)", "text-current", this.item().classes?.icon), ...ngDevMode ? [{ debugName: "defaultIconClasses" }] : /* istanbul ignore next */ []);
|
|
@@ -193,7 +208,7 @@ var NavigationItemContentComponent = class NavigationItemContentComponent {
|
|
|
193
208
|
}
|
|
194
209
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
195
210
|
minVersion: "12.0.0",
|
|
196
|
-
version: "22.2.
|
|
211
|
+
version: "22.2.6",
|
|
197
212
|
ngImport: i0,
|
|
198
213
|
type: NavigationItemContentComponent,
|
|
199
214
|
deps: [],
|
|
@@ -201,7 +216,7 @@ var NavigationItemContentComponent = class NavigationItemContentComponent {
|
|
|
201
216
|
});
|
|
202
217
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
203
218
|
minVersion: "17.0.0",
|
|
204
|
-
version: "22.2.
|
|
219
|
+
version: "22.2.6",
|
|
205
220
|
type: NavigationItemContentComponent,
|
|
206
221
|
isStandalone: true,
|
|
207
222
|
selector: "NavigationItemContent",
|
|
@@ -263,6 +278,9 @@ var NavigationItemContentComponent = class NavigationItemContentComponent {
|
|
|
263
278
|
must not lose their last emission or restart subscriptions just to move a badge. -->
|
|
264
279
|
<span
|
|
265
280
|
[attr.data-navigation-icon-slot]="compact() && hasIconSlot() ? 'true' : null"
|
|
281
|
+
[attr.data-navigation-active-parent-icon]="
|
|
282
|
+
compact() && hasIconSlot() && activeParent() ? 'true' : null
|
|
283
|
+
"
|
|
266
284
|
[class]="compact() && hasIconSlot() ? iconSlotClasses() : 'contents'"
|
|
267
285
|
>
|
|
268
286
|
@if (compact() && hasCountBadge(item())) {
|
|
@@ -271,6 +289,7 @@ var NavigationItemContentComponent = class NavigationItemContentComponent {
|
|
|
271
289
|
@if (item().icon; as iconName) {
|
|
272
290
|
<span
|
|
273
291
|
[attr.data-navigation-icon-slot]="compact() ? null : 'true'"
|
|
292
|
+
[attr.data-navigation-active-parent-icon]="!compact() && activeParent() ? 'true' : null"
|
|
274
293
|
[class]="compact() ? 'contents' : iconSlotClasses()"
|
|
275
294
|
>
|
|
276
295
|
@if (iconTemplate(); as customIcon) {
|
|
@@ -343,7 +362,7 @@ var NavigationItemContentComponent = class NavigationItemContentComponent {
|
|
|
343
362
|
};
|
|
344
363
|
i0.ɵɵngDeclareClassMetadata({
|
|
345
364
|
minVersion: "12.0.0",
|
|
346
|
-
version: "22.2.
|
|
365
|
+
version: "22.2.6",
|
|
347
366
|
ngImport: i0,
|
|
348
367
|
type: NavigationItemContentComponent,
|
|
349
368
|
decorators: [{
|
|
@@ -361,6 +380,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
361
380
|
must not lose their last emission or restart subscriptions just to move a badge. -->
|
|
362
381
|
<span
|
|
363
382
|
[attr.data-navigation-icon-slot]="compact() && hasIconSlot() ? 'true' : null"
|
|
383
|
+
[attr.data-navigation-active-parent-icon]="
|
|
384
|
+
compact() && hasIconSlot() && activeParent() ? 'true' : null
|
|
385
|
+
"
|
|
364
386
|
[class]="compact() && hasIconSlot() ? iconSlotClasses() : 'contents'"
|
|
365
387
|
>
|
|
366
388
|
@if (compact() && hasCountBadge(item())) {
|
|
@@ -369,6 +391,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
369
391
|
@if (item().icon; as iconName) {
|
|
370
392
|
<span
|
|
371
393
|
[attr.data-navigation-icon-slot]="compact() ? null : 'true'"
|
|
394
|
+
[attr.data-navigation-active-parent-icon]="!compact() && activeParent() ? 'true' : null"
|
|
372
395
|
[class]="compact() ? 'contents' : iconSlotClasses()"
|
|
373
396
|
>
|
|
374
397
|
@if (iconTemplate(); as customIcon) {
|
|
@@ -492,6 +515,8 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
492
515
|
alias: "tooltip-position"
|
|
493
516
|
});
|
|
494
517
|
collapseTree = input("stairs", ...ngDevMode ? [{ debugName: "collapseTree" }] : /* istanbul ignore next */ []);
|
|
518
|
+
rail = input("default", ...ngDevMode ? [{ debugName: "rail" }] : /* istanbul ignore next */ []);
|
|
519
|
+
railSegment = input(null, ...ngDevMode ? [{ debugName: "railSegment" }] : /* istanbul ignore next */ []);
|
|
495
520
|
straightRail = input(false, ...ngDevMode ? [{ debugName: "straightRail" }] : /* istanbul ignore next */ []);
|
|
496
521
|
stairsRail = input(false, ...ngDevMode ? [{ debugName: "stairsRail" }] : /* istanbul ignore next */ []);
|
|
497
522
|
straightRailActive = input(false, ...ngDevMode ? [{ debugName: "straightRailActive" }] : /* istanbul ignore next */ []);
|
|
@@ -500,6 +525,7 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
500
525
|
openedIds = input([], ...ngDevMode ? [{ debugName: "openedIds" }] : /* istanbul ignore next */ []);
|
|
501
526
|
openedIdsChange = output();
|
|
502
527
|
itemSelected = output();
|
|
528
|
+
sidebarGroup = computed(() => this.item().type === "group" && this.shell?.displayState().type === "sidebar", ...ngDevMode ? [{ debugName: "sidebarGroup" }] : /* istanbul ignore next */ []);
|
|
503
529
|
showGroupBadge = computed(() => {
|
|
504
530
|
const badge = this.item().badge;
|
|
505
531
|
return this.shell?.displayState().type !== "sidebar" || !badge?.source && !!badge?.title;
|
|
@@ -516,12 +542,21 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
516
542
|
}, ...ngDevMode ? [{ debugName: "isRouteActive" }] : /* istanbul ignore next */ []);
|
|
517
543
|
isRouterItemActive = computed(() => this.isRouteActive() || this.isActive(), ...ngDevMode ? [{ debugName: "isRouterItemActive" }] : /* istanbul ignore next */ []);
|
|
518
544
|
showChildren = computed(() => !this.compact() && this.isOpen(), ...ngDevMode ? [{ debugName: "showChildren" }] : /* istanbul ignore next */ []);
|
|
519
|
-
|
|
545
|
+
lastActiveChildIndex = computed(() => {
|
|
546
|
+
const activeIds = this.activeIds();
|
|
547
|
+
const activeUrl = this.activeUrl();
|
|
548
|
+
const children = this.item().children;
|
|
549
|
+
for (let index = children.length - 1; index >= 0; index--) if (this.nav.isItemActive(children[index], activeIds, activeUrl)) return index;
|
|
550
|
+
return -1;
|
|
551
|
+
}, ...ngDevMode ? [{ debugName: "lastActiveChildIndex" }] : /* istanbul ignore next */ []);
|
|
552
|
+
visibleRailSegment = computed(() => this.rail() === "rail-active" && (this.orientation() === "vertical" || this.level() > 0) && !this.compact() && (this.stairsRail() || this.straightRail()) ? this.railSegment() : null, ...ngDevMode ? [{ debugName: "visibleRailSegment" }] : /* istanbul ignore next */ []);
|
|
553
|
+
hostClasses = computed(() => cn(this.containerClasses(), navigationActiveRailClasses(this.visibleRailSegment(), this.stairsRail(), this.firstInBranch())), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
|
|
554
|
+
containerClasses() {
|
|
520
555
|
if (this.item().type === "divider") return this.dividerClasses();
|
|
521
556
|
if (this.item().type === "spacer") return "flex-1";
|
|
522
557
|
if (this.item().type === "group" || this.item().type === "mega") return this.groupContainerClasses();
|
|
523
558
|
return this.itemContainerClasses();
|
|
524
|
-
}
|
|
559
|
+
}
|
|
525
560
|
hostRole = computed(() => {
|
|
526
561
|
return this.orientation() === "horizontal" ? "none" : null;
|
|
527
562
|
}, ...ngDevMode ? [{ debugName: "hostRole" }] : /* istanbul ignore next */ []);
|
|
@@ -585,15 +620,13 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
585
620
|
this.nav.closeDrawer(this.navId());
|
|
586
621
|
}
|
|
587
622
|
leafClasses(active) {
|
|
588
|
-
return cn("NavigationItem nav-text group/nav
|
|
623
|
+
return cn("NavigationItem nav-text group/nav min-w-0 items-center rounded-md transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", navigationTargetLayoutClasses(this.orientation(), this.level()), "gap-(--nav-item-gap)", this.compact() && "size-(--nav-rail-item-size) justify-center gap-0 px-0 py-0 text-center", this.interactiveStateClasses(active), this.item().disabled && "pointer-events-none opacity-50", this.item().classes?.wrapper, this.itemClass());
|
|
589
624
|
}
|
|
590
625
|
triggerClasses(active) {
|
|
591
|
-
return cn("nav-trigger nav-text group/nav
|
|
626
|
+
return cn("nav-trigger nav-text group/nav min-w-0 items-center rounded-md transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", navigationTargetLayoutClasses(this.orientation(), this.level()), "gap-(--nav-item-gap)", this.compact() && "size-(--nav-rail-item-size) justify-center gap-0 px-0 py-0 text-center", this.interactiveStateClasses(active), this.item().classes?.wrapper, this.itemClass());
|
|
592
627
|
}
|
|
593
628
|
interactiveStateClasses(active) {
|
|
594
|
-
|
|
595
|
-
if (this.orientation() === "vertical" && !this.compact()) return cn("relative isolate", "before:pointer-events-none before:absolute before:inset-y-0 before:left-2 before:right-2 before:-z-10 before:rounded-md before:border before:border-transparent before:bg-transparent before:transition-colors before:duration-normal before:content-['']", showsNestedActiveConnector && "after:pointer-events-none after:absolute after:-left-[calc(var(--nav-indent)-var(--nav-rail-offset))] after:top-1/2 after:-z-10 after:h-px after:w-[calc(var(--nav-indent)-var(--nav-rail-offset)+var(--spacing-base)*2)] after:-translate-y-1/2 after:rounded-full after:bg-current/25 after:content-['']", active ? "text-foreground before:bg-accent" : "text-foreground/80 hover:text-accent-foreground hover:before:bg-accent");
|
|
596
|
-
return active ? "text-foreground bg-accent" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground";
|
|
629
|
+
return navigationInteractiveStateClasses(active, this.level() > 0 ? "vertical" : this.orientation(), this.compact(), this.item().children.length > 0, this.stairsRail(), this.showChildren() && this.showsStairsRailForChildren() && (this.rail() === "default" || this.lastActiveChildIndex() >= 0));
|
|
597
630
|
}
|
|
598
631
|
chevronClasses() {
|
|
599
632
|
return cn("ml-auto shrink-0 self-center text-(length:--nav-icon-size-sub) text-muted-foreground transition-transform duration-normal", this.isOpen() && "rotate-90");
|
|
@@ -610,10 +643,12 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
610
643
|
groupHeadingClasses() {
|
|
611
644
|
return cn("nav-heading flex min-w-0 items-center gap-(--nav-item-gap) px-(--nav-item-padding-x) pt-4 pb-1 text-muted-foreground", this.item().classes?.title);
|
|
612
645
|
}
|
|
646
|
+
headingIconClasses = computed(() => cn("relative z-10 inline-flex shrink-0 items-center justify-center text-(length:--nav-icon-size)", this.isActive() && "isolate text-primary-foreground before:pointer-events-none before:absolute before:-inset-1 before:-z-10 before:rounded-md before:border before:border-primary before:bg-primary before:content-['']"), ...ngDevMode ? [{ debugName: "headingIconClasses" }] : /* istanbul ignore next */ []);
|
|
647
|
+
headingIconContext = computed(() => this.nav.iconContext(this.item(), this.isActive(), this.level(), this.orientation()), ...ngDevMode ? [{ debugName: "headingIconContext" }] : /* istanbul ignore next */ []);
|
|
613
648
|
childListClasses() {
|
|
614
649
|
const isGroupedBranch = this.item().type === "group" || this.item().type === "mega";
|
|
615
650
|
const usesStairsTree = this.collapseTree() === "stairs";
|
|
616
|
-
return cn("flex list-none flex-col gap-0.5 p-0", !this.compact() && "mt-0.5", this.level() >= 0 && !this.compact() && !isGroupedBranch && usesStairsTree && cn("relative ml-(--nav-rail-offset) pl-[calc(var(--nav-indent)-var(--nav-rail-offset))] before:absolute before:-top-0.5 before:bottom-0 before:left-0 before:w-px before:-translate-x-1/2 before:
|
|
651
|
+
return cn("flex list-none flex-col gap-0.5 p-0", !this.compact() && "mt-0.5", this.orientation() === "horizontal" && !this.compact() && (isGroupedBranch || !usesStairsTree) && "pl-(--nav-indent)", this.level() >= 0 && !this.compact() && !isGroupedBranch && usesStairsTree && cn("relative ml-(--nav-rail-offset) pl-[calc(var(--nav-indent)-var(--nav-rail-offset))]", this.rail() === "default" && cn("before:absolute before:-top-0.5 before:bottom-0 before:left-0 before:w-px before:-translate-x-1/2 before:content-['']", this.isActive() ? "before:bg-primary" : "before:bg-border")));
|
|
617
652
|
}
|
|
618
653
|
showsStairsRailForChildren() {
|
|
619
654
|
return !this.compact() && this.collapseTree() === "stairs" && this.item().type !== "group" && this.item().type !== "mega";
|
|
@@ -622,12 +657,12 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
622
657
|
return !this.compact() && this.collapseTree() === "straight" && this.item().type !== "group" && this.item().type !== "mega";
|
|
623
658
|
}
|
|
624
659
|
straightRailClasses() {
|
|
625
|
-
if (!this.straightRail() || this.orientation() !== "vertical" || this.compact()) return "";
|
|
626
|
-
return cn("relative", "before:pointer-events-none before:absolute before:left-(--nav-rail-offset) before:w-0 before:-z-10 before:border-l before:border-dotted before:content-['']", this.straightRailActive() ? "before:border-primary
|
|
660
|
+
if (this.rail() === "rail-active" || !this.straightRail() || this.orientation() !== "vertical" && this.level() === 0 || this.compact()) return "";
|
|
661
|
+
return cn("relative", "before:pointer-events-none before:absolute before:left-(--nav-rail-offset) before:w-0 before:-z-10 before:border-l before:border-dotted before:content-['']", this.straightRailActive() ? "before:border-primary" : "before:border-border/50", this.firstInBranch() ? "before:-top-[calc(var(--nav-item-height)/2+var(--spacing-base)*0.5)]" : "before:-top-0.5", this.lastInBranch() ? "before:bottom-[calc(100%-var(--nav-item-height)/2)]" : "before:-bottom-0.5");
|
|
627
662
|
}
|
|
628
663
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
629
664
|
minVersion: "12.0.0",
|
|
630
|
-
version: "22.2.
|
|
665
|
+
version: "22.2.6",
|
|
631
666
|
ngImport: i0,
|
|
632
667
|
type: NavigationItemComponent,
|
|
633
668
|
deps: [],
|
|
@@ -635,7 +670,7 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
635
670
|
});
|
|
636
671
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
637
672
|
minVersion: "17.0.0",
|
|
638
|
-
version: "22.2.
|
|
673
|
+
version: "22.2.6",
|
|
639
674
|
type: NavigationItemComponent,
|
|
640
675
|
isStandalone: true,
|
|
641
676
|
selector: "li[NavigationItem]",
|
|
@@ -724,6 +759,20 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
724
759
|
isRequired: false,
|
|
725
760
|
transformFunction: null
|
|
726
761
|
},
|
|
762
|
+
rail: {
|
|
763
|
+
classPropertyName: "rail",
|
|
764
|
+
publicName: "rail",
|
|
765
|
+
isSignal: true,
|
|
766
|
+
isRequired: false,
|
|
767
|
+
transformFunction: null
|
|
768
|
+
},
|
|
769
|
+
railSegment: {
|
|
770
|
+
classPropertyName: "railSegment",
|
|
771
|
+
publicName: "railSegment",
|
|
772
|
+
isSignal: true,
|
|
773
|
+
isRequired: false,
|
|
774
|
+
transformFunction: null
|
|
775
|
+
},
|
|
727
776
|
straightRail: {
|
|
728
777
|
classPropertyName: "straightRail",
|
|
729
778
|
publicName: "straightRail",
|
|
@@ -775,6 +824,7 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
775
824
|
"class": "hostClasses()",
|
|
776
825
|
"attr.role": "hostRole()",
|
|
777
826
|
"attr.data-navigation-item-key": "item().key",
|
|
827
|
+
"attr.data-navigation-rail-segment": "visibleRailSegment()",
|
|
778
828
|
"attr.aria-hidden": "item().type === \"spacer\" || item().type === \"divider\" ? \"true\" : null"
|
|
779
829
|
} },
|
|
780
830
|
providers: [provideIcons({
|
|
@@ -794,6 +844,7 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
794
844
|
@case ('group') {
|
|
795
845
|
@if (!compact() && item().title) {
|
|
796
846
|
<div [id]="headingId()" [class]="groupHeadingClasses()">
|
|
847
|
+
<ng-container [ngTemplateOutlet]="headingIcon" />
|
|
797
848
|
<span class="min-w-0 flex-1">
|
|
798
849
|
<span class="block truncate">{{ item().title }}</span>
|
|
799
850
|
|
|
@@ -818,7 +869,7 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
818
869
|
|
|
819
870
|
<ul
|
|
820
871
|
[class]="childListClasses()"
|
|
821
|
-
role="list"
|
|
872
|
+
[attr.role]="orientation() === 'horizontal' ? 'group' : 'list'"
|
|
822
873
|
[attr.aria-labelledby]="item().title ? headingId() : null"
|
|
823
874
|
>
|
|
824
875
|
<ng-container [ngTemplateOutlet]="childItems" />
|
|
@@ -829,6 +880,7 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
829
880
|
<button
|
|
830
881
|
type="button"
|
|
831
882
|
[class]="triggerClasses(isActive())"
|
|
883
|
+
[attr.role]="itemRole()"
|
|
832
884
|
[attr.aria-expanded]="showChildren()"
|
|
833
885
|
[attr.aria-controls]="showChildren() ? panelId() : null"
|
|
834
886
|
[attr.aria-label]="hasCountBadge(item()) ? null : compactLabel()"
|
|
@@ -854,7 +906,11 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
854
906
|
</button>
|
|
855
907
|
|
|
856
908
|
@if (showChildren()) {
|
|
857
|
-
<ul
|
|
909
|
+
<ul
|
|
910
|
+
[id]="panelId()"
|
|
911
|
+
[class]="childListClasses()"
|
|
912
|
+
[attr.role]="orientation() === 'horizontal' ? 'group' : 'list'"
|
|
913
|
+
>
|
|
858
914
|
<ng-container [ngTemplateOutlet]="childItems" />
|
|
859
915
|
</ul>
|
|
860
916
|
}
|
|
@@ -863,6 +919,7 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
863
919
|
@case ('mega') {
|
|
864
920
|
@if (!compact() && item().title) {
|
|
865
921
|
<div [id]="headingId()" [class]="groupHeadingClasses()">
|
|
922
|
+
<ng-container [ngTemplateOutlet]="headingIcon" />
|
|
866
923
|
<span class="min-w-0 flex-1 truncate">{{ item().title }}</span>
|
|
867
924
|
<NavigationItemBadge
|
|
868
925
|
[children]="item().children"
|
|
@@ -874,7 +931,7 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
874
931
|
|
|
875
932
|
<ul
|
|
876
933
|
[class]="childListClasses()"
|
|
877
|
-
role="list"
|
|
934
|
+
[attr.role]="orientation() === 'horizontal' ? 'group' : 'list'"
|
|
878
935
|
[attr.aria-labelledby]="item().title ? headingId() : null"
|
|
879
936
|
>
|
|
880
937
|
<ng-container [ngTemplateOutlet]="childItems" />
|
|
@@ -967,20 +1024,34 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
967
1024
|
}
|
|
968
1025
|
}
|
|
969
1026
|
}
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
1027
|
+
<ng-template #headingIcon>
|
|
1028
|
+
@if (!sidebarGroup() && item().icon; as icon) {
|
|
1029
|
+
<span
|
|
1030
|
+
aria-hidden="true"
|
|
1031
|
+
data-navigation-icon-slot="true"
|
|
1032
|
+
[attr.data-navigation-active-parent-icon]="isActive() ? 'true' : null"
|
|
1033
|
+
[class]="headingIconClasses()"
|
|
1034
|
+
>
|
|
1035
|
+
@if (iconTemplate(); as customIcon) {
|
|
1036
|
+
<ng-container
|
|
1037
|
+
[ngTemplateOutlet]="customIcon.template"
|
|
1038
|
+
[ngTemplateOutletContext]="headingIconContext()"
|
|
1039
|
+
/>
|
|
1040
|
+
} @else {
|
|
1041
|
+
<Icon [name]="icon" size="inherit" />
|
|
1042
|
+
}
|
|
1043
|
+
</span>
|
|
1044
|
+
}
|
|
1045
|
+
</ng-template>
|
|
977
1046
|
|
|
978
|
-
The collapsible copy used to hardcode compact="false". That is the same
|
|
979
|
-
value there: its list only renders under showChildren(), which already
|
|
980
|
-
requires compact() to be false.
|
|
981
|
-
-->
|
|
982
1047
|
<ng-template #childItems>
|
|
983
|
-
@for (
|
|
1048
|
+
@for (
|
|
1049
|
+
child of item().children;
|
|
1050
|
+
track child.key;
|
|
1051
|
+
let index = $index;
|
|
1052
|
+
let isFirst = $first;
|
|
1053
|
+
let isLast = $last
|
|
1054
|
+
) {
|
|
984
1055
|
<li
|
|
985
1056
|
NavigationItem
|
|
986
1057
|
[navId]="navId()"
|
|
@@ -995,6 +1066,14 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
995
1066
|
[iconTemplate]="iconTemplate()"
|
|
996
1067
|
[tooltip-position]="tooltipPosition()"
|
|
997
1068
|
[collapseTree]="collapseTree()"
|
|
1069
|
+
[rail]="rail()"
|
|
1070
|
+
[railSegment]="
|
|
1071
|
+
index < lastActiveChildIndex()
|
|
1072
|
+
? 'through'
|
|
1073
|
+
: index === lastActiveChildIndex()
|
|
1074
|
+
? 'end'
|
|
1075
|
+
: null
|
|
1076
|
+
"
|
|
998
1077
|
[straightRail]="showStraightRailForChildren()"
|
|
999
1078
|
[stairsRail]="showsStairsRailForChildren()"
|
|
1000
1079
|
[straightRailActive]="isActive()"
|
|
@@ -1026,6 +1105,8 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
1026
1105
|
"iconTemplate",
|
|
1027
1106
|
"tooltip-position",
|
|
1028
1107
|
"collapseTree",
|
|
1108
|
+
"rail",
|
|
1109
|
+
"railSegment",
|
|
1029
1110
|
"straightRail",
|
|
1030
1111
|
"stairsRail",
|
|
1031
1112
|
"straightRailActive",
|
|
@@ -1120,7 +1201,7 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
1120
1201
|
};
|
|
1121
1202
|
i0.ɵɵngDeclareClassMetadata({
|
|
1122
1203
|
minVersion: "12.0.0",
|
|
1123
|
-
version: "22.2.
|
|
1204
|
+
version: "22.2.6",
|
|
1124
1205
|
ngImport: i0,
|
|
1125
1206
|
type: NavigationItemComponent,
|
|
1126
1207
|
decorators: [{
|
|
@@ -1144,6 +1225,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1144
1225
|
"[class]": "hostClasses()",
|
|
1145
1226
|
"[attr.role]": "hostRole()",
|
|
1146
1227
|
"[attr.data-navigation-item-key]": "item().key",
|
|
1228
|
+
"[attr.data-navigation-rail-segment]": "visibleRailSegment()",
|
|
1147
1229
|
"[attr.aria-hidden]": "item().type === \"spacer\" || item().type === \"divider\" ? \"true\" : null"
|
|
1148
1230
|
},
|
|
1149
1231
|
template: `
|
|
@@ -1157,6 +1239,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1157
1239
|
@case ('group') {
|
|
1158
1240
|
@if (!compact() && item().title) {
|
|
1159
1241
|
<div [id]="headingId()" [class]="groupHeadingClasses()">
|
|
1242
|
+
<ng-container [ngTemplateOutlet]="headingIcon" />
|
|
1160
1243
|
<span class="min-w-0 flex-1">
|
|
1161
1244
|
<span class="block truncate">{{ item().title }}</span>
|
|
1162
1245
|
|
|
@@ -1181,7 +1264,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1181
1264
|
|
|
1182
1265
|
<ul
|
|
1183
1266
|
[class]="childListClasses()"
|
|
1184
|
-
role="list"
|
|
1267
|
+
[attr.role]="orientation() === 'horizontal' ? 'group' : 'list'"
|
|
1185
1268
|
[attr.aria-labelledby]="item().title ? headingId() : null"
|
|
1186
1269
|
>
|
|
1187
1270
|
<ng-container [ngTemplateOutlet]="childItems" />
|
|
@@ -1192,6 +1275,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1192
1275
|
<button
|
|
1193
1276
|
type="button"
|
|
1194
1277
|
[class]="triggerClasses(isActive())"
|
|
1278
|
+
[attr.role]="itemRole()"
|
|
1195
1279
|
[attr.aria-expanded]="showChildren()"
|
|
1196
1280
|
[attr.aria-controls]="showChildren() ? panelId() : null"
|
|
1197
1281
|
[attr.aria-label]="hasCountBadge(item()) ? null : compactLabel()"
|
|
@@ -1217,7 +1301,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1217
1301
|
</button>
|
|
1218
1302
|
|
|
1219
1303
|
@if (showChildren()) {
|
|
1220
|
-
<ul
|
|
1304
|
+
<ul
|
|
1305
|
+
[id]="panelId()"
|
|
1306
|
+
[class]="childListClasses()"
|
|
1307
|
+
[attr.role]="orientation() === 'horizontal' ? 'group' : 'list'"
|
|
1308
|
+
>
|
|
1221
1309
|
<ng-container [ngTemplateOutlet]="childItems" />
|
|
1222
1310
|
</ul>
|
|
1223
1311
|
}
|
|
@@ -1226,6 +1314,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1226
1314
|
@case ('mega') {
|
|
1227
1315
|
@if (!compact() && item().title) {
|
|
1228
1316
|
<div [id]="headingId()" [class]="groupHeadingClasses()">
|
|
1317
|
+
<ng-container [ngTemplateOutlet]="headingIcon" />
|
|
1229
1318
|
<span class="min-w-0 flex-1 truncate">{{ item().title }}</span>
|
|
1230
1319
|
<NavigationItemBadge
|
|
1231
1320
|
[children]="item().children"
|
|
@@ -1237,7 +1326,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1237
1326
|
|
|
1238
1327
|
<ul
|
|
1239
1328
|
[class]="childListClasses()"
|
|
1240
|
-
role="list"
|
|
1329
|
+
[attr.role]="orientation() === 'horizontal' ? 'group' : 'list'"
|
|
1241
1330
|
[attr.aria-labelledby]="item().title ? headingId() : null"
|
|
1242
1331
|
>
|
|
1243
1332
|
<ng-container [ngTemplateOutlet]="childItems" />
|
|
@@ -1330,20 +1419,34 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1330
1419
|
}
|
|
1331
1420
|
}
|
|
1332
1421
|
}
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1422
|
+
<ng-template #headingIcon>
|
|
1423
|
+
@if (!sidebarGroup() && item().icon; as icon) {
|
|
1424
|
+
<span
|
|
1425
|
+
aria-hidden="true"
|
|
1426
|
+
data-navigation-icon-slot="true"
|
|
1427
|
+
[attr.data-navigation-active-parent-icon]="isActive() ? 'true' : null"
|
|
1428
|
+
[class]="headingIconClasses()"
|
|
1429
|
+
>
|
|
1430
|
+
@if (iconTemplate(); as customIcon) {
|
|
1431
|
+
<ng-container
|
|
1432
|
+
[ngTemplateOutlet]="customIcon.template"
|
|
1433
|
+
[ngTemplateOutletContext]="headingIconContext()"
|
|
1434
|
+
/>
|
|
1435
|
+
} @else {
|
|
1436
|
+
<Icon [name]="icon" size="inherit" />
|
|
1437
|
+
}
|
|
1438
|
+
</span>
|
|
1439
|
+
}
|
|
1440
|
+
</ng-template>
|
|
1340
1441
|
|
|
1341
|
-
The collapsible copy used to hardcode compact="false". That is the same
|
|
1342
|
-
value there: its list only renders under showChildren(), which already
|
|
1343
|
-
requires compact() to be false.
|
|
1344
|
-
-->
|
|
1345
1442
|
<ng-template #childItems>
|
|
1346
|
-
@for (
|
|
1443
|
+
@for (
|
|
1444
|
+
child of item().children;
|
|
1445
|
+
track child.key;
|
|
1446
|
+
let index = $index;
|
|
1447
|
+
let isFirst = $first;
|
|
1448
|
+
let isLast = $last
|
|
1449
|
+
) {
|
|
1347
1450
|
<li
|
|
1348
1451
|
NavigationItem
|
|
1349
1452
|
[navId]="navId()"
|
|
@@ -1358,6 +1461,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1358
1461
|
[iconTemplate]="iconTemplate()"
|
|
1359
1462
|
[tooltip-position]="tooltipPosition()"
|
|
1360
1463
|
[collapseTree]="collapseTree()"
|
|
1464
|
+
[rail]="rail()"
|
|
1465
|
+
[railSegment]="
|
|
1466
|
+
index < lastActiveChildIndex()
|
|
1467
|
+
? 'through'
|
|
1468
|
+
: index === lastActiveChildIndex()
|
|
1469
|
+
? 'end'
|
|
1470
|
+
: null
|
|
1471
|
+
"
|
|
1361
1472
|
[straightRail]="showStraightRailForChildren()"
|
|
1362
1473
|
[stairsRail]="showsStairsRailForChildren()"
|
|
1363
1474
|
[straightRailActive]="isActive()"
|
|
@@ -1469,6 +1580,22 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1469
1580
|
required: false
|
|
1470
1581
|
}]
|
|
1471
1582
|
}],
|
|
1583
|
+
rail: [{
|
|
1584
|
+
type: i0.Input,
|
|
1585
|
+
args: [{
|
|
1586
|
+
isSignal: true,
|
|
1587
|
+
alias: "rail",
|
|
1588
|
+
required: false
|
|
1589
|
+
}]
|
|
1590
|
+
}],
|
|
1591
|
+
railSegment: [{
|
|
1592
|
+
type: i0.Input,
|
|
1593
|
+
args: [{
|
|
1594
|
+
isSignal: true,
|
|
1595
|
+
alias: "railSegment",
|
|
1596
|
+
required: false
|
|
1597
|
+
}]
|
|
1598
|
+
}],
|
|
1472
1599
|
straightRail: [{
|
|
1473
1600
|
type: i0.Input,
|
|
1474
1601
|
args: [{
|
|
@@ -1527,4 +1654,4 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1527
1654
|
}]
|
|
1528
1655
|
}
|
|
1529
1656
|
});
|
|
1530
|
-
export {
|
|
1657
|
+
export { navigationInteractiveStateClasses as a, NAVIGATION_ACTIVE_PARENT_ICON_CLASSES as i, navigationPanelId as n, NavigationItemBadgeComponent as o, NavigationItemContentComponent as r, NAVIGATION_SHELL as s, NavigationItemComponent as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-
|
|
1
|
+
import { t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-CIt0rwpl.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, computed, input, output } from "@angular/core";
|
|
4
4
|
import { cn } from "@edsis/angular/component/utils/core";
|
|
@@ -15,6 +15,7 @@ var NavigationListComponent = class NavigationListComponent {
|
|
|
15
15
|
activeUrl = input(null, ...ngDevMode ? [{ debugName: "activeUrl" }] : /* istanbul ignore next */ []);
|
|
16
16
|
iconTemplate = input(void 0, ...ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []);
|
|
17
17
|
collapseTree = input("stairs", ...ngDevMode ? [{ debugName: "collapseTree" }] : /* istanbul ignore next */ []);
|
|
18
|
+
rail = input("default", ...ngDevMode ? [{ debugName: "rail" }] : /* istanbul ignore next */ []);
|
|
18
19
|
openedIds = input([], ...ngDevMode ? [{ debugName: "openedIds" }] : /* istanbul ignore next */ []);
|
|
19
20
|
openedIdsChange = output();
|
|
20
21
|
itemSelected = output();
|
|
@@ -23,7 +24,7 @@ var NavigationListComponent = class NavigationListComponent {
|
|
|
23
24
|
listClasses = computed(() => cn(this.isCollapsed() ? "flex list-none flex-col items-center gap-0.5 p-0" : cn("flex list-none flex-col gap-0.5 p-0", this.position() === "right" && "items-end"), this.fill() && "flex-1"), ...ngDevMode ? [{ debugName: "listClasses" }] : /* istanbul ignore next */ []);
|
|
24
25
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
25
26
|
minVersion: "12.0.0",
|
|
26
|
-
version: "22.2.
|
|
27
|
+
version: "22.2.6",
|
|
27
28
|
ngImport: i0,
|
|
28
29
|
type: NavigationListComponent,
|
|
29
30
|
deps: [],
|
|
@@ -31,7 +32,7 @@ var NavigationListComponent = class NavigationListComponent {
|
|
|
31
32
|
});
|
|
32
33
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
33
34
|
minVersion: "17.0.0",
|
|
34
|
-
version: "22.2.
|
|
35
|
+
version: "22.2.6",
|
|
35
36
|
type: NavigationListComponent,
|
|
36
37
|
isStandalone: true,
|
|
37
38
|
selector: "NavigationList",
|
|
@@ -120,6 +121,13 @@ var NavigationListComponent = class NavigationListComponent {
|
|
|
120
121
|
isRequired: false,
|
|
121
122
|
transformFunction: null
|
|
122
123
|
},
|
|
124
|
+
rail: {
|
|
125
|
+
classPropertyName: "rail",
|
|
126
|
+
publicName: "rail",
|
|
127
|
+
isSignal: true,
|
|
128
|
+
isRequired: false,
|
|
129
|
+
transformFunction: null
|
|
130
|
+
},
|
|
123
131
|
openedIds: {
|
|
124
132
|
classPropertyName: "openedIds",
|
|
125
133
|
publicName: "openedIds",
|
|
@@ -153,6 +161,7 @@ var NavigationListComponent = class NavigationListComponent {
|
|
|
153
161
|
[badgeContext]="badgeContext()"
|
|
154
162
|
[iconTemplate]="iconTemplate()"
|
|
155
163
|
[collapseTree]="collapseTree()"
|
|
164
|
+
[rail]="rail()"
|
|
156
165
|
[openedIds]="openedIds()"
|
|
157
166
|
(openedIdsChange)="openedIdsChange.emit($event)"
|
|
158
167
|
(itemSelected)="itemSelected.emit($event)"
|
|
@@ -178,6 +187,8 @@ var NavigationListComponent = class NavigationListComponent {
|
|
|
178
187
|
"iconTemplate",
|
|
179
188
|
"tooltip-position",
|
|
180
189
|
"collapseTree",
|
|
190
|
+
"rail",
|
|
191
|
+
"railSegment",
|
|
181
192
|
"straightRail",
|
|
182
193
|
"stairsRail",
|
|
183
194
|
"straightRailActive",
|
|
@@ -191,7 +202,7 @@ var NavigationListComponent = class NavigationListComponent {
|
|
|
191
202
|
};
|
|
192
203
|
i0.ɵɵngDeclareClassMetadata({
|
|
193
204
|
minVersion: "12.0.0",
|
|
194
|
-
version: "22.2.
|
|
205
|
+
version: "22.2.6",
|
|
195
206
|
ngImport: i0,
|
|
196
207
|
type: NavigationListComponent,
|
|
197
208
|
decorators: [{
|
|
@@ -219,6 +230,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
219
230
|
[badgeContext]="badgeContext()"
|
|
220
231
|
[iconTemplate]="iconTemplate()"
|
|
221
232
|
[collapseTree]="collapseTree()"
|
|
233
|
+
[rail]="rail()"
|
|
222
234
|
[openedIds]="openedIds()"
|
|
223
235
|
(openedIdsChange)="openedIdsChange.emit($event)"
|
|
224
236
|
(itemSelected)="itemSelected.emit($event)"
|
|
@@ -325,6 +337,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
325
337
|
required: false
|
|
326
338
|
}]
|
|
327
339
|
}],
|
|
340
|
+
rail: [{
|
|
341
|
+
type: i0.Input,
|
|
342
|
+
args: [{
|
|
343
|
+
isSignal: true,
|
|
344
|
+
alias: "rail",
|
|
345
|
+
required: false
|
|
346
|
+
}]
|
|
347
|
+
}],
|
|
328
348
|
openedIds: [{
|
|
329
349
|
type: i0.Input,
|
|
330
350
|
args: [{
|