@ojiepermana/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.
Files changed (108) hide show
  1. package/fesm2022/ojiepermana-angular-chart-area.mjs +3 -3
  2. package/fesm2022/ojiepermana-angular-chart-bar.mjs +3 -3
  3. package/fesm2022/ojiepermana-angular-chart-core.mjs +34 -34
  4. package/fesm2022/ojiepermana-angular-chart-line.mjs +3 -3
  5. package/fesm2022/ojiepermana-angular-chart-pie.mjs +3 -3
  6. package/fesm2022/ojiepermana-angular-chart-primitives.mjs +33 -33
  7. package/fesm2022/ojiepermana-angular-chart-radar.mjs +3 -3
  8. package/fesm2022/ojiepermana-angular-chart-radial.mjs +3 -3
  9. package/fesm2022/ojiepermana-angular-chart-scatter.mjs +3 -3
  10. package/fesm2022/ojiepermana-angular-component-accordion.mjs +15 -15
  11. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +27 -27
  12. package/fesm2022/ojiepermana-angular-component-alert.mjs +12 -12
  13. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +3 -3
  14. package/fesm2022/ojiepermana-angular-component-avatar.mjs +18 -18
  15. package/fesm2022/ojiepermana-angular-component-badge.mjs +3 -3
  16. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +21 -21
  17. package/fesm2022/ojiepermana-angular-component-button-group.mjs +9 -9
  18. package/fesm2022/ojiepermana-angular-component-button.mjs +3 -3
  19. package/fesm2022/ojiepermana-angular-component-calendar.mjs +3 -3
  20. package/fesm2022/ojiepermana-angular-component-card.mjs +21 -21
  21. package/fesm2022/ojiepermana-angular-component-carousel.mjs +18 -18
  22. package/fesm2022/ojiepermana-angular-component-checkbox.mjs +3 -3
  23. package/fesm2022/ojiepermana-angular-component-collapsible.mjs +12 -12
  24. package/fesm2022/ojiepermana-angular-component-combobox.mjs +3 -3
  25. package/fesm2022/ojiepermana-angular-component-command.mjs +27 -27
  26. package/fesm2022/ojiepermana-angular-component-composer.mjs +21 -21
  27. package/fesm2022/ojiepermana-angular-component-context-menu.mjs +3 -3
  28. package/fesm2022/ojiepermana-angular-component-date-picker.mjs +3 -3
  29. package/fesm2022/ojiepermana-angular-component-dialog.mjs +21 -21
  30. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +39 -39
  31. package/fesm2022/ojiepermana-angular-component-editor.mjs +18 -18
  32. package/fesm2022/ojiepermana-angular-component-empty.mjs +18 -18
  33. package/fesm2022/ojiepermana-angular-component-form.mjs +36 -36
  34. package/fesm2022/ojiepermana-angular-component-hover-card.mjs +9 -9
  35. package/fesm2022/ojiepermana-angular-component-icon.mjs +6 -6
  36. package/fesm2022/ojiepermana-angular-component-input-group.mjs +18 -18
  37. package/fesm2022/ojiepermana-angular-component-input-otp.mjs +15 -15
  38. package/fesm2022/ojiepermana-angular-component-input.mjs +3 -3
  39. package/fesm2022/ojiepermana-angular-component-item.mjs +30 -30
  40. package/fesm2022/ojiepermana-angular-component-kanban.mjs +27 -27
  41. package/fesm2022/ojiepermana-angular-component-kbd.mjs +6 -6
  42. package/fesm2022/ojiepermana-angular-component-label.mjs +3 -3
  43. package/fesm2022/ojiepermana-angular-component-menubar.mjs +12 -12
  44. package/fesm2022/ojiepermana-angular-component-native-select.mjs +9 -9
  45. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +21 -21
  46. package/fesm2022/ojiepermana-angular-component-pagination.mjs +3 -3
  47. package/fesm2022/ojiepermana-angular-component-pillbox.mjs +15 -15
  48. package/fesm2022/ojiepermana-angular-component-popover.mjs +6 -6
  49. package/fesm2022/ojiepermana-angular-component-progress.mjs +3 -3
  50. package/fesm2022/ojiepermana-angular-component-radio.mjs +6 -6
  51. package/fesm2022/ojiepermana-angular-component-resizable.mjs +12 -12
  52. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +3 -3
  53. package/fesm2022/ojiepermana-angular-component-segmented-control.mjs +9 -7
  54. package/fesm2022/ojiepermana-angular-component-select.mjs +6 -6
  55. package/fesm2022/ojiepermana-angular-component-separator.mjs +3 -3
  56. package/fesm2022/ojiepermana-angular-component-sheet.mjs +21 -21
  57. package/fesm2022/ojiepermana-angular-component-skeleton.mjs +3 -3
  58. package/fesm2022/ojiepermana-angular-component-slider.mjs +6 -6
  59. package/fesm2022/ojiepermana-angular-component-spinner.mjs +3 -3
  60. package/fesm2022/ojiepermana-angular-component-switch.mjs +3 -3
  61. package/fesm2022/ojiepermana-angular-component-table.mjs +24 -24
  62. package/fesm2022/ojiepermana-angular-component-tabs.mjs +18 -18
  63. package/fesm2022/ojiepermana-angular-component-textarea.mjs +3 -3
  64. package/fesm2022/ojiepermana-angular-component-timeline.mjs +18 -18
  65. package/fesm2022/ojiepermana-angular-component-toast.mjs +3 -3
  66. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +9 -9
  67. package/fesm2022/ojiepermana-angular-component-toggle.mjs +3 -3
  68. package/fesm2022/ojiepermana-angular-component-tooltip.mjs +15 -15
  69. package/fesm2022/ojiepermana-angular-component-utils-core.mjs +420 -4
  70. package/fesm2022/ojiepermana-angular-component-utils-scale.mjs +3 -3
  71. package/fesm2022/ojiepermana-angular-navigation-icon.mjs +3 -3
  72. package/fesm2022/{ojiepermana-angular-navigation-navigation-badge-count.component-BxWVj145.mjs → ojiepermana-angular-navigation-navigation-badge-count.component-Bx89vXtg.mjs} +3 -3
  73. package/fesm2022/{ojiepermana-angular-navigation-navigation-dockbar-menu.component-Q6Ef4ut3.mjs → ojiepermana-angular-navigation-navigation-dockbar-menu.component-DwOSHmKC.mjs} +30 -7
  74. package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-XxQv3yxu.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-DtRHbiBM.mjs} +60 -21
  75. package/fesm2022/{ojiepermana-angular-navigation-navigation-flyout-menu.component-BBz0IwXv.mjs → ojiepermana-angular-navigation-navigation-flyout-menu.component-Bo2nIOJk.mjs} +9 -7
  76. package/fesm2022/{ojiepermana-angular-navigation-navigation-horizontal.component-aFxLw5XV.mjs → ojiepermana-angular-navigation-navigation-horizontal.component-DUyMjBKb.mjs} +10 -8
  77. package/fesm2022/{ojiepermana-angular-navigation-navigation-item.component-DlazoaD2.mjs → ojiepermana-angular-navigation-navigation-item.component-BKmO7Pqa.mjs} +177 -53
  78. package/fesm2022/{ojiepermana-angular-navigation-navigation-list.component-Cgj0SLHr.mjs → ojiepermana-angular-navigation-navigation-list.component-DI-En6rE.mjs} +24 -4
  79. package/fesm2022/ojiepermana-angular-navigation-service.mjs +7 -7
  80. package/fesm2022/ojiepermana-angular-navigation.mjs +90 -66
  81. package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +88 -23
  82. package/fesm2022/ojiepermana-angular-theme-layout-services.mjs +7 -7
  83. package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +54 -30
  84. package/fesm2022/ojiepermana-angular-theme-layout.mjs +25 -25
  85. package/fesm2022/ojiepermana-angular-theme-on-fill.mjs +3 -3
  86. package/fesm2022/ojiepermana-angular-theme-page-core.mjs +3 -3
  87. package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +6 -6
  88. package/fesm2022/ojiepermana-angular-theme-page-overview.mjs +3 -3
  89. package/fesm2022/ojiepermana-angular-theme-page-root.mjs +4 -3
  90. package/fesm2022/ojiepermana-angular-theme-page-side.mjs +6 -6
  91. package/fesm2022/ojiepermana-angular-theme-page-slots.mjs +12 -12
  92. package/fesm2022/ojiepermana-angular-theme-shell-services.mjs +4 -4
  93. package/fesm2022/ojiepermana-angular-theme-shell.mjs +10 -9
  94. package/fesm2022/ojiepermana-angular-theme-styles.mjs +109 -178
  95. package/navigation/README.md +32 -2
  96. package/package.json +2 -2
  97. package/theme/component/settings/README.md +15 -0
  98. package/theme/styles/README.md +71 -1
  99. package/theme/styles/css/base/components.css +29 -75
  100. package/theme/styles/css/base/theme.css +3 -3
  101. package/theme/styles/css/base/tokens.css +8 -0
  102. package/types/ojiepermana-angular-component-segmented-control.d.ts +3 -3
  103. package/types/ojiepermana-angular-component-utils-core.d.ts +147 -3
  104. package/types/ojiepermana-angular-navigation-types.d.ts +2 -0
  105. package/types/ojiepermana-angular-navigation.d.ts +8 -1
  106. package/types/ojiepermana-angular-theme-component-settings.d.ts +9 -1
  107. package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +8 -1
  108. package/types/ojiepermana-angular-theme-styles.d.ts +30 -26
@@ -1,4 +1,4 @@
1
- import { i as hasNavigationCountBadge, s as navigationDescendantBadgeSources, t as NavigationBadgeCountComponent } from "./ojiepermana-angular-navigation-navigation-badge-count.component-BxWVj145.mjs";
1
+ import { i as hasNavigationCountBadge, s as navigationDescendantBadgeSources, t as NavigationBadgeCountComponent } from "./ojiepermana-angular-navigation-navigation-badge-count.component-Bx89vXtg.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.4",
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.4",
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.4",
105
+ version: "22.2.6",
106
106
  ngImport: i0,
107
107
  type: NavigationItemBadgeComponent,
108
108
  decorators: [{
@@ -169,6 +169,17 @@ 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 navigationActiveRailClasses(segment, stairsRail, firstInBranch) {
174
+ if (!segment || stairsRail && segment === "end") return "";
175
+ 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");
176
+ }
177
+ function navigationInteractiveStateClasses(active, orientation, compact, parent, stairsRail, connectsChildren) {
178
+ 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-['']" : "";
179
+ 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-['']");
180
+ 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");
181
+ return active ? "text-primary-foreground bg-primary" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground";
182
+ }
172
183
  var NavigationItemContentComponent = class NavigationItemContentComponent {
173
184
  hasCountBadge = hasNavigationCountBadge;
174
185
  nav = inject(NAVIGATION_ADAPTER);
@@ -179,11 +190,12 @@ var NavigationItemContentComponent = class NavigationItemContentComponent {
179
190
  orientation = input("vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
180
191
  level = input(0, ...ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []);
181
192
  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
- iconSlotClasses = computed(() => cn("relative z-10 inline-flex shrink-0 items-center justify-center transition-colors duration-normal", this.compact() && "mx-auto", this.active() ? "text-current" : "text-muted-foreground group-hover/nav:text-current"), ...ngDevMode ? [{ debugName: "iconSlotClasses" }] : /* istanbul ignore next */ []);
184
- titleClasses = computed(() => cn("block truncate", this.active() && "text-foreground", this.item().classes?.title), ...ngDevMode ? [{ debugName: "titleClasses" }] : /* istanbul ignore next */ []);
193
+ hasIconSlot = computed(() => !!this.item().icon || hasNavigationCountBadge(this.item()) || this.compact() && this.item().children.length > 0, ...ngDevMode ? [{ debugName: "hasIconSlot" }] : /* istanbul ignore next */ []);
194
+ activeParent = computed(() => this.active() && this.item().children.length > 0 && (this.orientation() === "vertical" || this.level() > 0), ...ngDevMode ? [{ debugName: "activeParent" }] : /* istanbul ignore next */ []);
195
+ 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 */ []);
196
+ titleClasses = computed(() => cn("block truncate", this.item().classes?.title), ...ngDevMode ? [{ debugName: "titleClasses" }] : /* istanbul ignore next */ []);
185
197
  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 */ []);
198
+ 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
199
  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
200
  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
201
  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 +205,7 @@ var NavigationItemContentComponent = class NavigationItemContentComponent {
193
205
  }
194
206
  static ɵfac = i0.ɵɵngDeclareFactory({
195
207
  minVersion: "12.0.0",
196
- version: "22.2.4",
208
+ version: "22.2.6",
197
209
  ngImport: i0,
198
210
  type: NavigationItemContentComponent,
199
211
  deps: [],
@@ -201,7 +213,7 @@ var NavigationItemContentComponent = class NavigationItemContentComponent {
201
213
  });
202
214
  static ɵcmp = i0.ɵɵngDeclareComponent({
203
215
  minVersion: "17.0.0",
204
- version: "22.2.4",
216
+ version: "22.2.6",
205
217
  type: NavigationItemContentComponent,
206
218
  isStandalone: true,
207
219
  selector: "NavigationItemContent",
@@ -263,6 +275,9 @@ var NavigationItemContentComponent = class NavigationItemContentComponent {
263
275
  must not lose their last emission or restart subscriptions just to move a badge. -->
264
276
  <span
265
277
  [attr.data-navigation-icon-slot]="compact() && hasIconSlot() ? 'true' : null"
278
+ [attr.data-navigation-active-parent-icon]="
279
+ compact() && hasIconSlot() && activeParent() ? 'true' : null
280
+ "
266
281
  [class]="compact() && hasIconSlot() ? iconSlotClasses() : 'contents'"
267
282
  >
268
283
  @if (compact() && hasCountBadge(item())) {
@@ -271,6 +286,7 @@ var NavigationItemContentComponent = class NavigationItemContentComponent {
271
286
  @if (item().icon; as iconName) {
272
287
  <span
273
288
  [attr.data-navigation-icon-slot]="compact() ? null : 'true'"
289
+ [attr.data-navigation-active-parent-icon]="!compact() && activeParent() ? 'true' : null"
274
290
  [class]="compact() ? 'contents' : iconSlotClasses()"
275
291
  >
276
292
  @if (iconTemplate(); as customIcon) {
@@ -343,7 +359,7 @@ var NavigationItemContentComponent = class NavigationItemContentComponent {
343
359
  };
344
360
  i0.ɵɵngDeclareClassMetadata({
345
361
  minVersion: "12.0.0",
346
- version: "22.2.4",
362
+ version: "22.2.6",
347
363
  ngImport: i0,
348
364
  type: NavigationItemContentComponent,
349
365
  decorators: [{
@@ -361,6 +377,9 @@ i0.ɵɵngDeclareClassMetadata({
361
377
  must not lose their last emission or restart subscriptions just to move a badge. -->
362
378
  <span
363
379
  [attr.data-navigation-icon-slot]="compact() && hasIconSlot() ? 'true' : null"
380
+ [attr.data-navigation-active-parent-icon]="
381
+ compact() && hasIconSlot() && activeParent() ? 'true' : null
382
+ "
364
383
  [class]="compact() && hasIconSlot() ? iconSlotClasses() : 'contents'"
365
384
  >
366
385
  @if (compact() && hasCountBadge(item())) {
@@ -369,6 +388,7 @@ i0.ɵɵngDeclareClassMetadata({
369
388
  @if (item().icon; as iconName) {
370
389
  <span
371
390
  [attr.data-navigation-icon-slot]="compact() ? null : 'true'"
391
+ [attr.data-navigation-active-parent-icon]="!compact() && activeParent() ? 'true' : null"
372
392
  [class]="compact() ? 'contents' : iconSlotClasses()"
373
393
  >
374
394
  @if (iconTemplate(); as customIcon) {
@@ -492,6 +512,8 @@ var NavigationItemComponent = class NavigationItemComponent {
492
512
  alias: "tooltip-position"
493
513
  });
494
514
  collapseTree = input("stairs", ...ngDevMode ? [{ debugName: "collapseTree" }] : /* istanbul ignore next */ []);
515
+ rail = input("default", ...ngDevMode ? [{ debugName: "rail" }] : /* istanbul ignore next */ []);
516
+ railSegment = input(null, ...ngDevMode ? [{ debugName: "railSegment" }] : /* istanbul ignore next */ []);
495
517
  straightRail = input(false, ...ngDevMode ? [{ debugName: "straightRail" }] : /* istanbul ignore next */ []);
496
518
  stairsRail = input(false, ...ngDevMode ? [{ debugName: "stairsRail" }] : /* istanbul ignore next */ []);
497
519
  straightRailActive = input(false, ...ngDevMode ? [{ debugName: "straightRailActive" }] : /* istanbul ignore next */ []);
@@ -500,6 +522,7 @@ var NavigationItemComponent = class NavigationItemComponent {
500
522
  openedIds = input([], ...ngDevMode ? [{ debugName: "openedIds" }] : /* istanbul ignore next */ []);
501
523
  openedIdsChange = output();
502
524
  itemSelected = output();
525
+ sidebarGroup = computed(() => this.item().type === "group" && this.shell?.displayState().type === "sidebar", ...ngDevMode ? [{ debugName: "sidebarGroup" }] : /* istanbul ignore next */ []);
503
526
  showGroupBadge = computed(() => {
504
527
  const badge = this.item().badge;
505
528
  return this.shell?.displayState().type !== "sidebar" || !badge?.source && !!badge?.title;
@@ -516,12 +539,21 @@ var NavigationItemComponent = class NavigationItemComponent {
516
539
  }, ...ngDevMode ? [{ debugName: "isRouteActive" }] : /* istanbul ignore next */ []);
517
540
  isRouterItemActive = computed(() => this.isRouteActive() || this.isActive(), ...ngDevMode ? [{ debugName: "isRouterItemActive" }] : /* istanbul ignore next */ []);
518
541
  showChildren = computed(() => !this.compact() && this.isOpen(), ...ngDevMode ? [{ debugName: "showChildren" }] : /* istanbul ignore next */ []);
519
- hostClasses = computed(() => {
542
+ lastActiveChildIndex = computed(() => {
543
+ const activeIds = this.activeIds();
544
+ const activeUrl = this.activeUrl();
545
+ const children = this.item().children;
546
+ for (let index = children.length - 1; index >= 0; index--) if (this.nav.isItemActive(children[index], activeIds, activeUrl)) return index;
547
+ return -1;
548
+ }, ...ngDevMode ? [{ debugName: "lastActiveChildIndex" }] : /* istanbul ignore next */ []);
549
+ 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 */ []);
550
+ hostClasses = computed(() => cn(this.containerClasses(), navigationActiveRailClasses(this.visibleRailSegment(), this.stairsRail(), this.firstInBranch())), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
551
+ containerClasses() {
520
552
  if (this.item().type === "divider") return this.dividerClasses();
521
553
  if (this.item().type === "spacer") return "flex-1";
522
554
  if (this.item().type === "group" || this.item().type === "mega") return this.groupContainerClasses();
523
555
  return this.itemContainerClasses();
524
- }, ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
556
+ }
525
557
  hostRole = computed(() => {
526
558
  return this.orientation() === "horizontal" ? "none" : null;
527
559
  }, ...ngDevMode ? [{ debugName: "hostRole" }] : /* istanbul ignore next */ []);
@@ -591,9 +623,7 @@ var NavigationItemComponent = class NavigationItemComponent {
591
623
  return cn("nav-trigger nav-text group/nav inline-flex 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", this.orientation() === "horizontal" && this.level() === 0 ? "h-(--nav-item-height) px-(--nav-item-padding-x)" : "min-h-(--nav-item-height) w-full px-(--nav-item-padding-x) py-1 text-left", "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
624
  }
593
625
  interactiveStateClasses(active) {
594
- const showsNestedActiveConnector = active && this.orientation() === "vertical" && !this.compact() && this.stairsRail();
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";
626
+ 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
627
  }
598
628
  chevronClasses() {
599
629
  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 +640,12 @@ var NavigationItemComponent = class NavigationItemComponent {
610
640
  groupHeadingClasses() {
611
641
  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
642
  }
643
+ 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 */ []);
644
+ headingIconContext = computed(() => this.nav.iconContext(this.item(), this.isActive(), this.level(), this.orientation()), ...ngDevMode ? [{ debugName: "headingIconContext" }] : /* istanbul ignore next */ []);
613
645
  childListClasses() {
614
646
  const isGroupedBranch = this.item().type === "group" || this.item().type === "mega";
615
647
  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:rounded-full before:content-['']", this.isActive() ? "before:bg-current/25" : "before:bg-border"));
648
+ 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
649
  }
618
650
  showsStairsRailForChildren() {
619
651
  return !this.compact() && this.collapseTree() === "stairs" && this.item().type !== "group" && this.item().type !== "mega";
@@ -622,12 +654,12 @@ var NavigationItemComponent = class NavigationItemComponent {
622
654
  return !this.compact() && this.collapseTree() === "straight" && this.item().type !== "group" && this.item().type !== "mega";
623
655
  }
624
656
  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/50" : "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");
657
+ if (this.rail() === "rail-active" || !this.straightRail() || this.orientation() !== "vertical" && this.level() === 0 || this.compact()) return "";
658
+ 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
659
  }
628
660
  static ɵfac = i0.ɵɵngDeclareFactory({
629
661
  minVersion: "12.0.0",
630
- version: "22.2.4",
662
+ version: "22.2.6",
631
663
  ngImport: i0,
632
664
  type: NavigationItemComponent,
633
665
  deps: [],
@@ -635,7 +667,7 @@ var NavigationItemComponent = class NavigationItemComponent {
635
667
  });
636
668
  static ɵcmp = i0.ɵɵngDeclareComponent({
637
669
  minVersion: "17.0.0",
638
- version: "22.2.4",
670
+ version: "22.2.6",
639
671
  type: NavigationItemComponent,
640
672
  isStandalone: true,
641
673
  selector: "li[NavigationItem]",
@@ -724,6 +756,20 @@ var NavigationItemComponent = class NavigationItemComponent {
724
756
  isRequired: false,
725
757
  transformFunction: null
726
758
  },
759
+ rail: {
760
+ classPropertyName: "rail",
761
+ publicName: "rail",
762
+ isSignal: true,
763
+ isRequired: false,
764
+ transformFunction: null
765
+ },
766
+ railSegment: {
767
+ classPropertyName: "railSegment",
768
+ publicName: "railSegment",
769
+ isSignal: true,
770
+ isRequired: false,
771
+ transformFunction: null
772
+ },
727
773
  straightRail: {
728
774
  classPropertyName: "straightRail",
729
775
  publicName: "straightRail",
@@ -775,6 +821,7 @@ var NavigationItemComponent = class NavigationItemComponent {
775
821
  "class": "hostClasses()",
776
822
  "attr.role": "hostRole()",
777
823
  "attr.data-navigation-item-key": "item().key",
824
+ "attr.data-navigation-rail-segment": "visibleRailSegment()",
778
825
  "attr.aria-hidden": "item().type === \"spacer\" || item().type === \"divider\" ? \"true\" : null"
779
826
  } },
780
827
  providers: [provideIcons({
@@ -794,6 +841,7 @@ var NavigationItemComponent = class NavigationItemComponent {
794
841
  @case ('group') {
795
842
  @if (!compact() && item().title) {
796
843
  <div [id]="headingId()" [class]="groupHeadingClasses()">
844
+ <ng-container [ngTemplateOutlet]="headingIcon" />
797
845
  <span class="min-w-0 flex-1">
798
846
  <span class="block truncate">{{ item().title }}</span>
799
847
 
@@ -818,7 +866,7 @@ var NavigationItemComponent = class NavigationItemComponent {
818
866
 
819
867
  <ul
820
868
  [class]="childListClasses()"
821
- role="list"
869
+ [attr.role]="orientation() === 'horizontal' ? 'group' : 'list'"
822
870
  [attr.aria-labelledby]="item().title ? headingId() : null"
823
871
  >
824
872
  <ng-container [ngTemplateOutlet]="childItems" />
@@ -829,6 +877,7 @@ var NavigationItemComponent = class NavigationItemComponent {
829
877
  <button
830
878
  type="button"
831
879
  [class]="triggerClasses(isActive())"
880
+ [attr.role]="itemRole()"
832
881
  [attr.aria-expanded]="showChildren()"
833
882
  [attr.aria-controls]="showChildren() ? panelId() : null"
834
883
  [attr.aria-label]="hasCountBadge(item()) ? null : compactLabel()"
@@ -854,7 +903,11 @@ var NavigationItemComponent = class NavigationItemComponent {
854
903
  </button>
855
904
 
856
905
  @if (showChildren()) {
857
- <ul [id]="panelId()" [class]="childListClasses()" role="list">
906
+ <ul
907
+ [id]="panelId()"
908
+ [class]="childListClasses()"
909
+ [attr.role]="orientation() === 'horizontal' ? 'group' : 'list'"
910
+ >
858
911
  <ng-container [ngTemplateOutlet]="childItems" />
859
912
  </ul>
860
913
  }
@@ -863,6 +916,7 @@ var NavigationItemComponent = class NavigationItemComponent {
863
916
  @case ('mega') {
864
917
  @if (!compact() && item().title) {
865
918
  <div [id]="headingId()" [class]="groupHeadingClasses()">
919
+ <ng-container [ngTemplateOutlet]="headingIcon" />
866
920
  <span class="min-w-0 flex-1 truncate">{{ item().title }}</span>
867
921
  <NavigationItemBadge
868
922
  [children]="item().children"
@@ -874,7 +928,7 @@ var NavigationItemComponent = class NavigationItemComponent {
874
928
 
875
929
  <ul
876
930
  [class]="childListClasses()"
877
- role="list"
931
+ [attr.role]="orientation() === 'horizontal' ? 'group' : 'list'"
878
932
  [attr.aria-labelledby]="item().title ? headingId() : null"
879
933
  >
880
934
  <ng-container [ngTemplateOutlet]="childItems" />
@@ -967,20 +1021,34 @@ var NavigationItemComponent = class NavigationItemComponent {
967
1021
  }
968
1022
  }
969
1023
  }
970
- <!--
971
- The recursive child list, defined once.
972
-
973
- It was written out three times, in the group, collapsible, and mega
974
- branches, 25 identical lines each. Nothing needs passing in: every binding
975
- is a member of this component and so is lexically in scope here, and
976
- isFirst / isLast are @for locals declared inside.
1024
+ <ng-template #headingIcon>
1025
+ @if (!sidebarGroup() && item().icon; as icon) {
1026
+ <span
1027
+ aria-hidden="true"
1028
+ data-navigation-icon-slot="true"
1029
+ [attr.data-navigation-active-parent-icon]="isActive() ? 'true' : null"
1030
+ [class]="headingIconClasses()"
1031
+ >
1032
+ @if (iconTemplate(); as customIcon) {
1033
+ <ng-container
1034
+ [ngTemplateOutlet]="customIcon.template"
1035
+ [ngTemplateOutletContext]="headingIconContext()"
1036
+ />
1037
+ } @else {
1038
+ <Icon [name]="icon" size="inherit" />
1039
+ }
1040
+ </span>
1041
+ }
1042
+ </ng-template>
977
1043
 
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
1044
  <ng-template #childItems>
983
- @for (child of item().children; track child.key; let isFirst = $first; let isLast = $last) {
1045
+ @for (
1046
+ child of item().children;
1047
+ track child.key;
1048
+ let index = $index;
1049
+ let isFirst = $first;
1050
+ let isLast = $last
1051
+ ) {
984
1052
  <li
985
1053
  NavigationItem
986
1054
  [navId]="navId()"
@@ -995,6 +1063,14 @@ var NavigationItemComponent = class NavigationItemComponent {
995
1063
  [iconTemplate]="iconTemplate()"
996
1064
  [tooltip-position]="tooltipPosition()"
997
1065
  [collapseTree]="collapseTree()"
1066
+ [rail]="rail()"
1067
+ [railSegment]="
1068
+ index < lastActiveChildIndex()
1069
+ ? 'through'
1070
+ : index === lastActiveChildIndex()
1071
+ ? 'end'
1072
+ : null
1073
+ "
998
1074
  [straightRail]="showStraightRailForChildren()"
999
1075
  [stairsRail]="showsStairsRailForChildren()"
1000
1076
  [straightRailActive]="isActive()"
@@ -1026,6 +1102,8 @@ var NavigationItemComponent = class NavigationItemComponent {
1026
1102
  "iconTemplate",
1027
1103
  "tooltip-position",
1028
1104
  "collapseTree",
1105
+ "rail",
1106
+ "railSegment",
1029
1107
  "straightRail",
1030
1108
  "stairsRail",
1031
1109
  "straightRailActive",
@@ -1120,7 +1198,7 @@ var NavigationItemComponent = class NavigationItemComponent {
1120
1198
  };
1121
1199
  i0.ɵɵngDeclareClassMetadata({
1122
1200
  minVersion: "12.0.0",
1123
- version: "22.2.4",
1201
+ version: "22.2.6",
1124
1202
  ngImport: i0,
1125
1203
  type: NavigationItemComponent,
1126
1204
  decorators: [{
@@ -1144,6 +1222,7 @@ i0.ɵɵngDeclareClassMetadata({
1144
1222
  "[class]": "hostClasses()",
1145
1223
  "[attr.role]": "hostRole()",
1146
1224
  "[attr.data-navigation-item-key]": "item().key",
1225
+ "[attr.data-navigation-rail-segment]": "visibleRailSegment()",
1147
1226
  "[attr.aria-hidden]": "item().type === \"spacer\" || item().type === \"divider\" ? \"true\" : null"
1148
1227
  },
1149
1228
  template: `
@@ -1157,6 +1236,7 @@ i0.ɵɵngDeclareClassMetadata({
1157
1236
  @case ('group') {
1158
1237
  @if (!compact() && item().title) {
1159
1238
  <div [id]="headingId()" [class]="groupHeadingClasses()">
1239
+ <ng-container [ngTemplateOutlet]="headingIcon" />
1160
1240
  <span class="min-w-0 flex-1">
1161
1241
  <span class="block truncate">{{ item().title }}</span>
1162
1242
 
@@ -1181,7 +1261,7 @@ i0.ɵɵngDeclareClassMetadata({
1181
1261
 
1182
1262
  <ul
1183
1263
  [class]="childListClasses()"
1184
- role="list"
1264
+ [attr.role]="orientation() === 'horizontal' ? 'group' : 'list'"
1185
1265
  [attr.aria-labelledby]="item().title ? headingId() : null"
1186
1266
  >
1187
1267
  <ng-container [ngTemplateOutlet]="childItems" />
@@ -1192,6 +1272,7 @@ i0.ɵɵngDeclareClassMetadata({
1192
1272
  <button
1193
1273
  type="button"
1194
1274
  [class]="triggerClasses(isActive())"
1275
+ [attr.role]="itemRole()"
1195
1276
  [attr.aria-expanded]="showChildren()"
1196
1277
  [attr.aria-controls]="showChildren() ? panelId() : null"
1197
1278
  [attr.aria-label]="hasCountBadge(item()) ? null : compactLabel()"
@@ -1217,7 +1298,11 @@ i0.ɵɵngDeclareClassMetadata({
1217
1298
  </button>
1218
1299
 
1219
1300
  @if (showChildren()) {
1220
- <ul [id]="panelId()" [class]="childListClasses()" role="list">
1301
+ <ul
1302
+ [id]="panelId()"
1303
+ [class]="childListClasses()"
1304
+ [attr.role]="orientation() === 'horizontal' ? 'group' : 'list'"
1305
+ >
1221
1306
  <ng-container [ngTemplateOutlet]="childItems" />
1222
1307
  </ul>
1223
1308
  }
@@ -1226,6 +1311,7 @@ i0.ɵɵngDeclareClassMetadata({
1226
1311
  @case ('mega') {
1227
1312
  @if (!compact() && item().title) {
1228
1313
  <div [id]="headingId()" [class]="groupHeadingClasses()">
1314
+ <ng-container [ngTemplateOutlet]="headingIcon" />
1229
1315
  <span class="min-w-0 flex-1 truncate">{{ item().title }}</span>
1230
1316
  <NavigationItemBadge
1231
1317
  [children]="item().children"
@@ -1237,7 +1323,7 @@ i0.ɵɵngDeclareClassMetadata({
1237
1323
 
1238
1324
  <ul
1239
1325
  [class]="childListClasses()"
1240
- role="list"
1326
+ [attr.role]="orientation() === 'horizontal' ? 'group' : 'list'"
1241
1327
  [attr.aria-labelledby]="item().title ? headingId() : null"
1242
1328
  >
1243
1329
  <ng-container [ngTemplateOutlet]="childItems" />
@@ -1330,20 +1416,34 @@ i0.ɵɵngDeclareClassMetadata({
1330
1416
  }
1331
1417
  }
1332
1418
  }
1333
- <!--
1334
- The recursive child list, defined once.
1335
-
1336
- It was written out three times, in the group, collapsible, and mega
1337
- branches, 25 identical lines each. Nothing needs passing in: every binding
1338
- is a member of this component and so is lexically in scope here, and
1339
- isFirst / isLast are @for locals declared inside.
1419
+ <ng-template #headingIcon>
1420
+ @if (!sidebarGroup() && item().icon; as icon) {
1421
+ <span
1422
+ aria-hidden="true"
1423
+ data-navigation-icon-slot="true"
1424
+ [attr.data-navigation-active-parent-icon]="isActive() ? 'true' : null"
1425
+ [class]="headingIconClasses()"
1426
+ >
1427
+ @if (iconTemplate(); as customIcon) {
1428
+ <ng-container
1429
+ [ngTemplateOutlet]="customIcon.template"
1430
+ [ngTemplateOutletContext]="headingIconContext()"
1431
+ />
1432
+ } @else {
1433
+ <Icon [name]="icon" size="inherit" />
1434
+ }
1435
+ </span>
1436
+ }
1437
+ </ng-template>
1340
1438
 
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
1439
  <ng-template #childItems>
1346
- @for (child of item().children; track child.key; let isFirst = $first; let isLast = $last) {
1440
+ @for (
1441
+ child of item().children;
1442
+ track child.key;
1443
+ let index = $index;
1444
+ let isFirst = $first;
1445
+ let isLast = $last
1446
+ ) {
1347
1447
  <li
1348
1448
  NavigationItem
1349
1449
  [navId]="navId()"
@@ -1358,6 +1458,14 @@ i0.ɵɵngDeclareClassMetadata({
1358
1458
  [iconTemplate]="iconTemplate()"
1359
1459
  [tooltip-position]="tooltipPosition()"
1360
1460
  [collapseTree]="collapseTree()"
1461
+ [rail]="rail()"
1462
+ [railSegment]="
1463
+ index < lastActiveChildIndex()
1464
+ ? 'through'
1465
+ : index === lastActiveChildIndex()
1466
+ ? 'end'
1467
+ : null
1468
+ "
1361
1469
  [straightRail]="showStraightRailForChildren()"
1362
1470
  [stairsRail]="showsStairsRailForChildren()"
1363
1471
  [straightRailActive]="isActive()"
@@ -1469,6 +1577,22 @@ i0.ɵɵngDeclareClassMetadata({
1469
1577
  required: false
1470
1578
  }]
1471
1579
  }],
1580
+ rail: [{
1581
+ type: i0.Input,
1582
+ args: [{
1583
+ isSignal: true,
1584
+ alias: "rail",
1585
+ required: false
1586
+ }]
1587
+ }],
1588
+ railSegment: [{
1589
+ type: i0.Input,
1590
+ args: [{
1591
+ isSignal: true,
1592
+ alias: "railSegment",
1593
+ required: false
1594
+ }]
1595
+ }],
1472
1596
  straightRail: [{
1473
1597
  type: i0.Input,
1474
1598
  args: [{
@@ -1527,4 +1651,4 @@ i0.ɵɵngDeclareClassMetadata({
1527
1651
  }]
1528
1652
  }
1529
1653
  });
1530
- export { NAVIGATION_SHELL as a, NavigationItemBadgeComponent as i, navigationPanelId as n, NavigationItemContentComponent as r, NavigationItemComponent as t };
1654
+ 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 "./ojiepermana-angular-navigation-navigation-item.component-DlazoaD2.mjs";
1
+ import { t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-BKmO7Pqa.mjs";
2
2
  import * as i0 from "@angular/core";
3
3
  import { Component, computed, input, output } from "@angular/core";
4
4
  import { cn } from "@ojiepermana/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.4",
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.4",
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.4",
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: [{