@edsis/angular 22.2.11 → 22.2.12
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-CSXPm1pJ.mjs} +30 -7
- package/fesm2022/{edsis-angular-navigation-navigation-entry-grid.component-CjxqB5LR.mjs → edsis-angular-navigation-navigation-entry-grid.component-BJgfe_dF.mjs} +60 -21
- package/fesm2022/{edsis-angular-navigation-navigation-flyout-menu.component-DGq4YT1o.mjs → edsis-angular-navigation-navigation-flyout-menu.component-CacQc46w.mjs} +9 -7
- package/fesm2022/{edsis-angular-navigation-navigation-horizontal.component-CG8KNHK2.mjs → edsis-angular-navigation-navigation-horizontal.component-B30vIs1R.mjs} +10 -8
- package/fesm2022/{edsis-angular-navigation-navigation-item.component-DLHZ8--d.mjs → edsis-angular-navigation-navigation-item.component-ByQVStr8.mjs} +177 -53
- package/fesm2022/{edsis-angular-navigation-navigation-list.component-I8GW0_HG.mjs → edsis-angular-navigation-navigation-list.component-R-2HuZnv.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 +25 -25
- 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-styles.d.ts +30 -26
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as hasNavigationCountBadge } from "./edsis-angular-navigation-navigation-badge-count.component-
|
|
2
|
-
import {
|
|
3
|
-
import { t as NavigationListComponent } from "./edsis-angular-navigation-navigation-list.component-
|
|
1
|
+
import { i as hasNavigationCountBadge } from "./edsis-angular-navigation-navigation-badge-count.component-CLXtMyMX.mjs";
|
|
2
|
+
import { r as NavigationItemContentComponent, s as NAVIGATION_SHELL, t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-ByQVStr8.mjs";
|
|
3
|
+
import { t as NavigationListComponent } from "./edsis-angular-navigation-navigation-list.component-R-2HuZnv.mjs";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { Component, ElementRef, Injector, afterNextRender, computed, inject, input, output, signal } from "@angular/core";
|
|
6
6
|
import { cn } from "@edsis/angular/component/utils/core";
|
|
@@ -29,6 +29,7 @@ var NavigationDockbarMenuComponent = class NavigationDockbarMenuComponent {
|
|
|
29
29
|
resolvedGroup = input(void 0, ...ngDevMode ? [{ debugName: "resolvedGroup" }] : /* istanbul ignore next */ []);
|
|
30
30
|
iconTemplate = input(void 0, ...ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []);
|
|
31
31
|
collapseTree = input("stairs", ...ngDevMode ? [{ debugName: "collapseTree" }] : /* istanbul ignore next */ []);
|
|
32
|
+
rail = input("default", ...ngDevMode ? [{ debugName: "rail" }] : /* istanbul ignore next */ []);
|
|
32
33
|
openedIds = input([], ...ngDevMode ? [{ debugName: "openedIds" }] : /* istanbul ignore next */ []);
|
|
33
34
|
asideFooterTemplate = input(null, ...ngDevMode ? [{ debugName: "asideFooterTemplate" }] : /* istanbul ignore next */ []);
|
|
34
35
|
openedIdsChange = output();
|
|
@@ -110,7 +111,7 @@ var NavigationDockbarMenuComponent = class NavigationDockbarMenuComponent {
|
|
|
110
111
|
return this.entryState().get(entry)?.triggerClasses ?? "";
|
|
111
112
|
}
|
|
112
113
|
computeTriggerClasses(entry, active, open) {
|
|
113
|
-
return cn("nav-text group/nav inline-flex size-(--nav-rail-item-size) items-center justify-center rounded-md transition-colors", "relative", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
|
114
|
+
return cn("nav-text group/nav inline-flex size-(--nav-rail-item-size) items-center justify-center rounded-md transition-colors", "relative", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", active ? "text-foreground" : open ? "bg-accent text-foreground" : "text-muted-foreground hover:bg-accent/60 hover:text-foreground", entry.classes?.wrapper, this.itemClass());
|
|
114
115
|
}
|
|
115
116
|
toggleGroup(entry) {
|
|
116
117
|
const wasOpen = this.isGroupOpen(entry);
|
|
@@ -171,7 +172,7 @@ var NavigationDockbarMenuComponent = class NavigationDockbarMenuComponent {
|
|
|
171
172
|
}
|
|
172
173
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
173
174
|
minVersion: "12.0.0",
|
|
174
|
-
version: "22.2.
|
|
175
|
+
version: "22.2.6",
|
|
175
176
|
ngImport: i0,
|
|
176
177
|
type: NavigationDockbarMenuComponent,
|
|
177
178
|
deps: [],
|
|
@@ -179,7 +180,7 @@ var NavigationDockbarMenuComponent = class NavigationDockbarMenuComponent {
|
|
|
179
180
|
});
|
|
180
181
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
181
182
|
minVersion: "17.0.0",
|
|
182
|
-
version: "22.2.
|
|
183
|
+
version: "22.2.6",
|
|
183
184
|
type: NavigationDockbarMenuComponent,
|
|
184
185
|
isStandalone: true,
|
|
185
186
|
selector: "NavigationDockbarMenu",
|
|
@@ -268,6 +269,13 @@ var NavigationDockbarMenuComponent = class NavigationDockbarMenuComponent {
|
|
|
268
269
|
isRequired: false,
|
|
269
270
|
transformFunction: null
|
|
270
271
|
},
|
|
272
|
+
rail: {
|
|
273
|
+
classPropertyName: "rail",
|
|
274
|
+
publicName: "rail",
|
|
275
|
+
isSignal: true,
|
|
276
|
+
isRequired: false,
|
|
277
|
+
transformFunction: null
|
|
278
|
+
},
|
|
271
279
|
openedIds: {
|
|
272
280
|
classPropertyName: "openedIds",
|
|
273
281
|
publicName: "openedIds",
|
|
@@ -354,6 +362,7 @@ var NavigationDockbarMenuComponent = class NavigationDockbarMenuComponent {
|
|
|
354
362
|
[iconTemplate]="iconTemplate()"
|
|
355
363
|
[tooltip-position]="tooltipPosition()"
|
|
356
364
|
[collapseTree]="collapseTree()"
|
|
365
|
+
[rail]="rail()"
|
|
357
366
|
[openedIds]="openedIds()"
|
|
358
367
|
(openedIdsChange)="openedIdsChange.emit($event)"
|
|
359
368
|
(itemSelected)="itemSelected.emit($event)"
|
|
@@ -424,6 +433,7 @@ var NavigationDockbarMenuComponent = class NavigationDockbarMenuComponent {
|
|
|
424
433
|
[badgeContext]="badgeContext()"
|
|
425
434
|
[iconTemplate]="iconTemplate()"
|
|
426
435
|
[collapseTree]="collapseTree()"
|
|
436
|
+
[rail]="rail()"
|
|
427
437
|
[openedIds]="openedIds()"
|
|
428
438
|
(openedIdsChange)="openedIdsChange.emit($event)"
|
|
429
439
|
(itemSelected)="itemSelected.emit($event)"
|
|
@@ -475,6 +485,8 @@ var NavigationDockbarMenuComponent = class NavigationDockbarMenuComponent {
|
|
|
475
485
|
"iconTemplate",
|
|
476
486
|
"tooltip-position",
|
|
477
487
|
"collapseTree",
|
|
488
|
+
"rail",
|
|
489
|
+
"railSegment",
|
|
478
490
|
"straightRail",
|
|
479
491
|
"stairsRail",
|
|
480
492
|
"straightRailActive",
|
|
@@ -515,6 +527,7 @@ var NavigationDockbarMenuComponent = class NavigationDockbarMenuComponent {
|
|
|
515
527
|
"activeUrl",
|
|
516
528
|
"iconTemplate",
|
|
517
529
|
"collapseTree",
|
|
530
|
+
"rail",
|
|
518
531
|
"openedIds"
|
|
519
532
|
],
|
|
520
533
|
outputs: ["openedIdsChange", "itemSelected"]
|
|
@@ -547,7 +560,7 @@ var NavigationDockbarMenuComponent = class NavigationDockbarMenuComponent {
|
|
|
547
560
|
};
|
|
548
561
|
i0.ɵɵngDeclareClassMetadata({
|
|
549
562
|
minVersion: "12.0.0",
|
|
550
|
-
version: "22.2.
|
|
563
|
+
version: "22.2.6",
|
|
551
564
|
ngImport: i0,
|
|
552
565
|
type: NavigationDockbarMenuComponent,
|
|
553
566
|
decorators: [{
|
|
@@ -624,6 +637,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
624
637
|
[iconTemplate]="iconTemplate()"
|
|
625
638
|
[tooltip-position]="tooltipPosition()"
|
|
626
639
|
[collapseTree]="collapseTree()"
|
|
640
|
+
[rail]="rail()"
|
|
627
641
|
[openedIds]="openedIds()"
|
|
628
642
|
(openedIdsChange)="openedIdsChange.emit($event)"
|
|
629
643
|
(itemSelected)="itemSelected.emit($event)"
|
|
@@ -694,6 +708,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
694
708
|
[badgeContext]="badgeContext()"
|
|
695
709
|
[iconTemplate]="iconTemplate()"
|
|
696
710
|
[collapseTree]="collapseTree()"
|
|
711
|
+
[rail]="rail()"
|
|
697
712
|
[openedIds]="openedIds()"
|
|
698
713
|
(openedIdsChange)="openedIdsChange.emit($event)"
|
|
699
714
|
(itemSelected)="itemSelected.emit($event)"
|
|
@@ -813,6 +828,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
813
828
|
required: false
|
|
814
829
|
}]
|
|
815
830
|
}],
|
|
831
|
+
rail: [{
|
|
832
|
+
type: i0.Input,
|
|
833
|
+
args: [{
|
|
834
|
+
isSignal: true,
|
|
835
|
+
alias: "rail",
|
|
836
|
+
required: false
|
|
837
|
+
}]
|
|
838
|
+
}],
|
|
816
839
|
openedIds: [{
|
|
817
840
|
type: i0.Input,
|
|
818
841
|
args: [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as navigationPanelId, o as NavigationItemBadgeComponent, t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-ByQVStr8.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, computed, inject, input, output, signal } from "@angular/core";
|
|
4
4
|
import { ActivatedRoute, Router, RouterLink } from "@angular/router";
|
|
@@ -25,7 +25,7 @@ var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
|
25
25
|
openedIdsChange = output();
|
|
26
26
|
itemSelected = output();
|
|
27
27
|
isBorderRail = computed(() => this.typeStyle() === "border-rail", ...ngDevMode ? [{ debugName: "isBorderRail" }] : /* istanbul ignore next */ []);
|
|
28
|
-
navItemClass = computed(() => cn(this.itemClass(), this.isBorderRail() && "rounded-none hover:bg-transparent hover:text-primary"), ...ngDevMode ? [{ debugName: "navItemClass" }] : /* istanbul ignore next */ []);
|
|
28
|
+
navItemClass = computed(() => cn(this.itemClass(), this.isBorderRail() && "rounded-none [&:not([aria-current=page]):hover]:bg-transparent [&:not([aria-current=page]):hover]:text-primary"), ...ngDevMode ? [{ debugName: "navItemClass" }] : /* istanbul ignore next */ []);
|
|
29
29
|
collapsedEntryKeys = signal(/* @__PURE__ */ new Set(), ...ngDevMode ? [{ debugName: "collapsedEntryKeys" }] : /* istanbul ignore next */ []);
|
|
30
30
|
entryState = computed(() => {
|
|
31
31
|
const activeIds = this.activeIds();
|
|
@@ -34,7 +34,8 @@ var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
|
34
34
|
return new Map(this.branch().children.map((child) => [child, {
|
|
35
35
|
active: this.nav.isItemActive(child, activeIds, activeUrl),
|
|
36
36
|
routeActive: this.nav.isRouterItem(child) && this.isRouteActive(child),
|
|
37
|
-
panelId: navigationPanelId(navId, child)
|
|
37
|
+
panelId: navigationPanelId(navId, child),
|
|
38
|
+
lastActiveChild: child.children.reduce((last, nested, index) => this.nav.isItemActive(nested, activeIds, activeUrl) ? index : last, -1)
|
|
38
39
|
}]));
|
|
39
40
|
}, ...ngDevMode ? [{ debugName: "entryState" }] : /* istanbul ignore next */ []);
|
|
40
41
|
isItemActive(item) {
|
|
@@ -96,31 +97,37 @@ var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
|
96
97
|
const columns = Math.min(Math.max(branch.columns ?? 4, 1), 4);
|
|
97
98
|
return cn("m-0 grid list-none grid-cols-1 gap-1 p-0", columns >= 2 && "sm:grid-cols-2", columns >= 3 && "md:grid-cols-3", columns >= 4 && "lg:grid-cols-4");
|
|
98
99
|
}
|
|
100
|
+
childRailSegment(item, index) {
|
|
101
|
+
const lastActive = this.entryState().get(item)?.lastActiveChild ?? -1;
|
|
102
|
+
return index < lastActive ? "through" : index === lastActive ? "end" : null;
|
|
103
|
+
}
|
|
99
104
|
entryClasses(item, active) {
|
|
100
|
-
return cn("group/nav nav-text flex w-full items-center gap-
|
|
105
|
+
return cn("relative isolate group/nav nav-text flex w-full items-center gap-(--nav-item-gap) px-(--nav-item-padding-x) py-2 text-left transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", active ? "rounded-md bg-primary text-primary-foreground" : this.isBorderRail() ? "rounded-none text-foreground hover:text-primary" : "rounded-lg text-foreground hover:bg-accent hover:text-accent-foreground", active && item.children.length > 0 && this.isEntryOpen(item) && this.collapseTree() === "stairs" && "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-['']", item.disabled && "pointer-events-none opacity-50", item.classes?.wrapper, this.itemClass());
|
|
101
106
|
}
|
|
102
|
-
entryIconClasses(active) {
|
|
103
|
-
if (
|
|
104
|
-
return
|
|
107
|
+
entryIconClasses(active, parent) {
|
|
108
|
+
if (parent) return cn("relative inline-flex size-(--nav-icon-size) shrink-0 items-center justify-center self-center", active ? "text-current" : "text-muted-foreground group-hover/nav:text-current");
|
|
109
|
+
if (active) return "relative flex size-(--nav-entry-box-size) shrink-0 items-center justify-center self-center text-current";
|
|
110
|
+
if (this.isBorderRail()) return "relative flex size-(--nav-entry-box-size) shrink-0 items-center justify-center self-center text-foreground transition-colors group-hover/nav:text-primary";
|
|
111
|
+
return cn("relative flex size-(--nav-entry-box-size) shrink-0 items-center justify-center self-center rounded-lg border bg-background text-foreground shadow-sm transition-colors", "border-[hsl(var(--border)/var(--section-border-opacity))]");
|
|
105
112
|
}
|
|
106
113
|
entryIconGlyphClasses(item) {
|
|
107
114
|
return cn("text-(length:--nav-icon-size) text-current", item.classes?.icon);
|
|
108
115
|
}
|
|
109
116
|
entryTitleClasses(item) {
|
|
110
|
-
return cn("block truncate",
|
|
117
|
+
return cn("block truncate", "text-current", item.classes?.title);
|
|
111
118
|
}
|
|
112
|
-
entrySubtitleClasses(item) {
|
|
113
|
-
return cn("nav-subtitle mt-0.5 block truncate text-muted-foreground", item.classes?.subtitle);
|
|
119
|
+
entrySubtitleClasses(item, active) {
|
|
120
|
+
return cn("nav-subtitle mt-0.5 block truncate", active ? "text-current" : "text-muted-foreground", item.classes?.subtitle);
|
|
114
121
|
}
|
|
115
122
|
entryChevronClasses(item) {
|
|
116
|
-
return cn("shrink-0 self-center text-(length:--nav-icon-size-sub)
|
|
123
|
+
return cn("shrink-0 self-center text-(length:--nav-icon-size-sub) transition-transform duration-normal", this.isItemActive(item) ? "text-current" : "text-muted-foreground", this.isEntryOpen(item) && "rotate-90");
|
|
117
124
|
}
|
|
118
125
|
nestedListClasses() {
|
|
119
|
-
return cn("relative
|
|
126
|
+
return cn("relative flex list-none flex-col gap-0.5 p-0 pt-0.5", this.collapseTree() === "stairs" ? "ml-(--nav-rail-offset) pl-[calc(var(--nav-indent)-var(--nav-rail-offset))]" : "pl-(--nav-indent)");
|
|
120
127
|
}
|
|
121
128
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
122
129
|
minVersion: "12.0.0",
|
|
123
|
-
version: "22.2.
|
|
130
|
+
version: "22.2.6",
|
|
124
131
|
ngImport: i0,
|
|
125
132
|
type: NavigationEntryGridComponent,
|
|
126
133
|
deps: [],
|
|
@@ -128,7 +135,7 @@ var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
|
128
135
|
});
|
|
129
136
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
130
137
|
minVersion: "17.0.0",
|
|
131
|
-
version: "22.2.
|
|
138
|
+
version: "22.2.6",
|
|
132
139
|
type: NavigationEntryGridComponent,
|
|
133
140
|
isStandalone: true,
|
|
134
141
|
selector: "NavigationEntryGrid",
|
|
@@ -262,7 +269,13 @@ var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
|
262
269
|
|
|
263
270
|
@if (isEntryOpen(child)) {
|
|
264
271
|
<ul [id]="panelIdFor(child)" role="none" [class]="nestedListClasses()">
|
|
265
|
-
@for (
|
|
272
|
+
@for (
|
|
273
|
+
nested of child.children;
|
|
274
|
+
track nested.key;
|
|
275
|
+
let index = $index;
|
|
276
|
+
let first = $first;
|
|
277
|
+
let last = $last
|
|
278
|
+
) {
|
|
266
279
|
<li
|
|
267
280
|
NavigationItem
|
|
268
281
|
[navId]="navId()"
|
|
@@ -276,6 +289,12 @@ var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
|
276
289
|
[badgeContext]="badgeContext()"
|
|
277
290
|
[iconTemplate]="iconTemplate()"
|
|
278
291
|
[collapseTree]="collapseTree()"
|
|
292
|
+
[rail]="'rail-active'"
|
|
293
|
+
[stairsRail]="collapseTree() === 'stairs'"
|
|
294
|
+
[straightRail]="collapseTree() === 'straight'"
|
|
295
|
+
[railSegment]="childRailSegment(child, index)"
|
|
296
|
+
[firstInBranch]="first"
|
|
297
|
+
[lastInBranch]="last"
|
|
279
298
|
[openedIds]="openedIds()"
|
|
280
299
|
(openedIdsChange)="openedIdsChange.emit($event)"
|
|
281
300
|
(itemSelected)="itemSelected.emit($event)"
|
|
@@ -356,7 +375,10 @@ var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
|
356
375
|
</div>
|
|
357
376
|
|
|
358
377
|
<ng-template #entryContent let-child let-active="active">
|
|
359
|
-
<span
|
|
378
|
+
<span
|
|
379
|
+
[class]="entryIconClasses(active, child.children.length > 0)"
|
|
380
|
+
data-navigation-icon-slot="true"
|
|
381
|
+
>
|
|
360
382
|
@if (isBorderRail()) {
|
|
361
383
|
<span
|
|
362
384
|
aria-hidden="true"
|
|
@@ -411,7 +433,7 @@ var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
|
411
433
|
<span class="min-w-0 flex-1">
|
|
412
434
|
<span [class]="entryTitleClasses(child)">{{ child.title }}</span>
|
|
413
435
|
@if (child.subtitle) {
|
|
414
|
-
<span [class]="entrySubtitleClasses(child)">{{ child.subtitle }}</span>
|
|
436
|
+
<span [class]="entrySubtitleClasses(child, active)">{{ child.subtitle }}</span>
|
|
415
437
|
}
|
|
416
438
|
</span>
|
|
417
439
|
|
|
@@ -482,6 +504,8 @@ var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
|
482
504
|
"iconTemplate",
|
|
483
505
|
"tooltip-position",
|
|
484
506
|
"collapseTree",
|
|
507
|
+
"rail",
|
|
508
|
+
"railSegment",
|
|
485
509
|
"straightRail",
|
|
486
510
|
"stairsRail",
|
|
487
511
|
"straightRailActive",
|
|
@@ -508,7 +532,7 @@ var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
|
508
532
|
};
|
|
509
533
|
i0.ɵɵngDeclareClassMetadata({
|
|
510
534
|
minVersion: "12.0.0",
|
|
511
|
-
version: "22.2.
|
|
535
|
+
version: "22.2.6",
|
|
512
536
|
ngImport: i0,
|
|
513
537
|
type: NavigationEntryGridComponent,
|
|
514
538
|
decorators: [{
|
|
@@ -575,7 +599,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
575
599
|
|
|
576
600
|
@if (isEntryOpen(child)) {
|
|
577
601
|
<ul [id]="panelIdFor(child)" role="none" [class]="nestedListClasses()">
|
|
578
|
-
@for (
|
|
602
|
+
@for (
|
|
603
|
+
nested of child.children;
|
|
604
|
+
track nested.key;
|
|
605
|
+
let index = $index;
|
|
606
|
+
let first = $first;
|
|
607
|
+
let last = $last
|
|
608
|
+
) {
|
|
579
609
|
<li
|
|
580
610
|
NavigationItem
|
|
581
611
|
[navId]="navId()"
|
|
@@ -589,6 +619,12 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
589
619
|
[badgeContext]="badgeContext()"
|
|
590
620
|
[iconTemplate]="iconTemplate()"
|
|
591
621
|
[collapseTree]="collapseTree()"
|
|
622
|
+
[rail]="'rail-active'"
|
|
623
|
+
[stairsRail]="collapseTree() === 'stairs'"
|
|
624
|
+
[straightRail]="collapseTree() === 'straight'"
|
|
625
|
+
[railSegment]="childRailSegment(child, index)"
|
|
626
|
+
[firstInBranch]="first"
|
|
627
|
+
[lastInBranch]="last"
|
|
592
628
|
[openedIds]="openedIds()"
|
|
593
629
|
(openedIdsChange)="openedIdsChange.emit($event)"
|
|
594
630
|
(itemSelected)="itemSelected.emit($event)"
|
|
@@ -669,7 +705,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
669
705
|
</div>
|
|
670
706
|
|
|
671
707
|
<ng-template #entryContent let-child let-active="active">
|
|
672
|
-
<span
|
|
708
|
+
<span
|
|
709
|
+
[class]="entryIconClasses(active, child.children.length > 0)"
|
|
710
|
+
data-navigation-icon-slot="true"
|
|
711
|
+
>
|
|
673
712
|
@if (isBorderRail()) {
|
|
674
713
|
<span
|
|
675
714
|
aria-hidden="true"
|
|
@@ -724,7 +763,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
724
763
|
<span class="min-w-0 flex-1">
|
|
725
764
|
<span [class]="entryTitleClasses(child)">{{ child.title }}</span>
|
|
726
765
|
@if (child.subtitle) {
|
|
727
|
-
<span [class]="entrySubtitleClasses(child)">{{ child.subtitle }}</span>
|
|
766
|
+
<span [class]="entrySubtitleClasses(child, active)">{{ child.subtitle }}</span>
|
|
728
767
|
}
|
|
729
768
|
</span>
|
|
730
769
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as NavigationItemContentComponent, t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-
|
|
2
|
-
import { t as NavigationEntryGridComponent } from "./edsis-angular-navigation-navigation-entry-grid.component-
|
|
1
|
+
import { a as navigationInteractiveStateClasses, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-ByQVStr8.mjs";
|
|
2
|
+
import { t as NavigationEntryGridComponent } from "./edsis-angular-navigation-navigation-entry-grid.component-BJgfe_dF.mjs";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import { Component, ElementRef, Injector, afterNextRender, computed, effect, inject, input, output, signal } from "@angular/core";
|
|
5
5
|
import { cn } from "@edsis/angular/component/utils/core";
|
|
@@ -42,7 +42,7 @@ var NavigationFlyoutMenuComponent = class NavigationFlyoutMenuComponent {
|
|
|
42
42
|
isBottom = computed(() => this.position() === "bottom", ...ngDevMode ? [{ debugName: "isBottom" }] : /* istanbul ignore next */ []);
|
|
43
43
|
showIconOnly = computed(() => this.compact() || this.iconOnly(), ...ngDevMode ? [{ debugName: "showIconOnly" }] : /* istanbul ignore next */ []);
|
|
44
44
|
triggerIcon = computed(() => this.icon() ?? (this.showIconOnly() ? "menu" : null), ...ngDevMode ? [{ debugName: "triggerIcon" }] : /* istanbul ignore next */ []);
|
|
45
|
-
navItemClass = computed(() => cn(this.itemClass(), this.isBorderRail() && "h-(--nav-item-height) rounded-none hover:bg-transparent hover:text-primary"), ...ngDevMode ? [{ debugName: "navItemClass" }] : /* istanbul ignore next */ []);
|
|
45
|
+
navItemClass = computed(() => cn(this.itemClass(), this.isBorderRail() && "h-(--nav-item-height) rounded-none [&:not([aria-current=page]):hover]:bg-transparent [&:not([aria-current=page]):hover]:text-primary"), ...ngDevMode ? [{ debugName: "navItemClass" }] : /* istanbul ignore next */ []);
|
|
46
46
|
branches = computed(() => this.items().filter((item) => item.children.length > 0), ...ngDevMode ? [{ debugName: "branches" }] : /* istanbul ignore next */ []);
|
|
47
47
|
activeBranch = computed(() => {
|
|
48
48
|
const key = this.nav.currentPanelKey(this.navId());
|
|
@@ -174,7 +174,7 @@ var NavigationFlyoutMenuComponent = class NavigationFlyoutMenuComponent {
|
|
|
174
174
|
return this.itemState().get(item)?.tabClasses ?? "";
|
|
175
175
|
}
|
|
176
176
|
computeTabClasses(item, active, open) {
|
|
177
|
-
return cn("nav-trigger nav-text group/nav inline-flex h-full min-h-(--nav-item-height) min-w-0 items-center gap-(--nav-item-gap) rounded-md px-(--nav-item-padding-x) transition-colors", this.isBottom() ? "rounded-t-none" : "rounded-b-none", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", this.isBorderRail() ? open
|
|
177
|
+
return cn("nav-trigger nav-text group/nav inline-flex h-full min-h-(--nav-item-height) min-w-0 items-center gap-(--nav-item-gap) rounded-md px-(--nav-item-padding-x) transition-colors", active ? "rounded-md" : this.isBottom() ? "rounded-t-none" : "rounded-b-none", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", active ? navigationInteractiveStateClasses(true, "horizontal", false, item.children.length > 0, false, false) : this.isBorderRail() ? open ? "rounded-none text-primary" : "rounded-none text-foreground/80 hover:text-primary" : open ? "bg-accent text-foreground" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground", item.classes?.wrapper, this.itemClass());
|
|
178
178
|
}
|
|
179
179
|
tabChevronClasses(item) {
|
|
180
180
|
return cn("shrink-0 self-center text-(length:--nav-icon-size-sub) text-current transition-transform duration-normal", this.isBranchOpen(item) && "rotate-90");
|
|
@@ -201,7 +201,7 @@ var NavigationFlyoutMenuComponent = class NavigationFlyoutMenuComponent {
|
|
|
201
201
|
}
|
|
202
202
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
203
203
|
minVersion: "12.0.0",
|
|
204
|
-
version: "22.2.
|
|
204
|
+
version: "22.2.6",
|
|
205
205
|
ngImport: i0,
|
|
206
206
|
type: NavigationFlyoutMenuComponent,
|
|
207
207
|
deps: [],
|
|
@@ -209,7 +209,7 @@ var NavigationFlyoutMenuComponent = class NavigationFlyoutMenuComponent {
|
|
|
209
209
|
});
|
|
210
210
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
211
211
|
minVersion: "17.0.0",
|
|
212
|
-
version: "22.2.
|
|
212
|
+
version: "22.2.6",
|
|
213
213
|
type: NavigationFlyoutMenuComponent,
|
|
214
214
|
isStandalone: true,
|
|
215
215
|
selector: "NavigationFlyoutMenu",
|
|
@@ -437,6 +437,8 @@ var NavigationFlyoutMenuComponent = class NavigationFlyoutMenuComponent {
|
|
|
437
437
|
"iconTemplate",
|
|
438
438
|
"tooltip-position",
|
|
439
439
|
"collapseTree",
|
|
440
|
+
"rail",
|
|
441
|
+
"railSegment",
|
|
440
442
|
"straightRail",
|
|
441
443
|
"stairsRail",
|
|
442
444
|
"straightRailActive",
|
|
@@ -465,7 +467,7 @@ var NavigationFlyoutMenuComponent = class NavigationFlyoutMenuComponent {
|
|
|
465
467
|
};
|
|
466
468
|
i0.ɵɵngDeclareClassMetadata({
|
|
467
469
|
minVersion: "12.0.0",
|
|
468
|
-
version: "22.2.
|
|
470
|
+
version: "22.2.6",
|
|
469
471
|
ngImport: i0,
|
|
470
472
|
type: NavigationFlyoutMenuComponent,
|
|
471
473
|
decorators: [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as hasNavigationCountBadge } from "./edsis-angular-navigation-navigation-badge-count.component-
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
1
|
+
import { i as hasNavigationCountBadge } from "./edsis-angular-navigation-navigation-badge-count.component-CLXtMyMX.mjs";
|
|
2
|
+
import { t as NavigationEntryGridComponent } from "./edsis-angular-navigation-navigation-entry-grid.component-BJgfe_dF.mjs";
|
|
3
|
+
import { a as navigationInteractiveStateClasses, n as navigationPanelId, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./edsis-angular-navigation-navigation-item.component-ByQVStr8.mjs";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { Component, ElementRef, Injector, afterNextRender, computed, effect, inject, input, output, signal } from "@angular/core";
|
|
6
6
|
import { cn } from "@edsis/angular/component/utils/core";
|
|
@@ -29,7 +29,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
|
|
|
29
29
|
itemSelected = output();
|
|
30
30
|
isBorderRail = computed(() => this.typeStyle() === "border-rail", ...ngDevMode ? [{ debugName: "isBorderRail" }] : /* istanbul ignore next */ []);
|
|
31
31
|
isBottom = computed(() => this.position() === "bottom", ...ngDevMode ? [{ debugName: "isBottom" }] : /* istanbul ignore next */ []);
|
|
32
|
-
navItemClass = computed(() => cn(this.itemClass(), this.isBorderRail() && "rounded-none hover:bg-transparent hover:text-primary"), ...ngDevMode ? [{ debugName: "navItemClass" }] : /* istanbul ignore next */ []);
|
|
32
|
+
navItemClass = computed(() => cn(this.itemClass(), this.isBorderRail() && "rounded-none [&:not([aria-current=page]):hover]:bg-transparent [&:not([aria-current=page]):hover]:text-primary"), ...ngDevMode ? [{ debugName: "navItemClass" }] : /* istanbul ignore next */ []);
|
|
33
33
|
listClasses = computed(() => cn("flex h-full min-w-0 items-center justify-center gap-1 list-none p-0"), ...ngDevMode ? [{ debugName: "listClasses" }] : /* istanbul ignore next */ []);
|
|
34
34
|
openPanelKey = computed(() => this.nav.currentPanelKey(this.navId()), ...ngDevMode ? [{ debugName: "openPanelKey" }] : /* istanbul ignore next */ []);
|
|
35
35
|
itemState = computed(() => {
|
|
@@ -108,7 +108,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
|
|
|
108
108
|
return this.itemState().get(item)?.triggerClasses ?? "";
|
|
109
109
|
}
|
|
110
110
|
computeTriggerClasses(item, active, open) {
|
|
111
|
-
return cn("nav-trigger nav-text group/nav inline-flex min-w-0 items-center gap-(--nav-item-gap) rounded-md transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", "h-(--nav-item-height) px-(--nav-item-padding-x)", this.compact() && "size-(--nav-rail-item-size) justify-center gap-0 px-0", this.isBorderRail() ? open
|
|
111
|
+
return cn("nav-trigger nav-text group/nav inline-flex min-w-0 items-center gap-(--nav-item-gap) rounded-md transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", "h-(--nav-item-height) px-(--nav-item-padding-x)", this.compact() && "size-(--nav-rail-item-size) justify-center gap-0 px-0", active ? navigationInteractiveStateClasses(true, "horizontal", this.compact(), item.children.length > 0, false, false) : this.isBorderRail() ? open ? "rounded-none text-primary" : "rounded-none text-foreground/80 hover:text-primary" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground", item.classes?.wrapper, this.itemClass());
|
|
112
112
|
}
|
|
113
113
|
panelClasses() {
|
|
114
114
|
return cn("absolute z-50 bg-popover text-popover-foreground shadow-lg", "max-h-[calc(100dvh-5rem)] overflow-x-hidden overflow-y-auto overscroll-contain", this.isBottom() ? "bottom-full" : "top-full", !this.panelPlacement() && "inset-x-0", this.isBorderRail() ? "rounded-none border-y border-border" : cn("rounded-xl border border-[hsl(var(--border)/var(--section-border-opacity))]", this.isBottom() ? "rounded-b-none" : "rounded-t-none"));
|
|
@@ -158,7 +158,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
|
|
|
158
158
|
}
|
|
159
159
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
160
160
|
minVersion: "12.0.0",
|
|
161
|
-
version: "22.2.
|
|
161
|
+
version: "22.2.6",
|
|
162
162
|
ngImport: i0,
|
|
163
163
|
type: NavigationHorizontalComponent,
|
|
164
164
|
deps: [],
|
|
@@ -166,7 +166,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
|
|
|
166
166
|
});
|
|
167
167
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
168
168
|
minVersion: "17.0.0",
|
|
169
|
-
version: "22.2.
|
|
169
|
+
version: "22.2.6",
|
|
170
170
|
type: NavigationHorizontalComponent,
|
|
171
171
|
isStandalone: true,
|
|
172
172
|
selector: "NavigationHorizontal",
|
|
@@ -421,6 +421,8 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
|
|
|
421
421
|
"iconTemplate",
|
|
422
422
|
"tooltip-position",
|
|
423
423
|
"collapseTree",
|
|
424
|
+
"rail",
|
|
425
|
+
"railSegment",
|
|
424
426
|
"straightRail",
|
|
425
427
|
"stairsRail",
|
|
426
428
|
"straightRailActive",
|
|
@@ -449,7 +451,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
|
|
|
449
451
|
};
|
|
450
452
|
i0.ɵɵngDeclareClassMetadata({
|
|
451
453
|
minVersion: "12.0.0",
|
|
452
|
-
version: "22.2.
|
|
454
|
+
version: "22.2.6",
|
|
453
455
|
ngImport: i0,
|
|
454
456
|
type: NavigationHorizontalComponent,
|
|
455
457
|
decorators: [{
|