@ojiepermana/angular 0.0.3 → 0.1.1

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 (41) hide show
  1. package/README.md +55 -9
  2. package/fesm2022/ojiepermana-angular-internal.mjs +433 -2
  3. package/fesm2022/ojiepermana-angular-internal.mjs.map +1 -1
  4. package/fesm2022/ojiepermana-angular-layout.mjs +52 -59
  5. package/fesm2022/ojiepermana-angular-layout.mjs.map +1 -1
  6. package/fesm2022/ojiepermana-angular-navigation-horizontal.mjs +721 -0
  7. package/fesm2022/ojiepermana-angular-navigation-horizontal.mjs.map +1 -0
  8. package/fesm2022/ojiepermana-angular-navigation-vertical.mjs +1647 -0
  9. package/fesm2022/ojiepermana-angular-navigation-vertical.mjs.map +1 -0
  10. package/fesm2022/ojiepermana-angular-navigation.mjs +472 -0
  11. package/fesm2022/ojiepermana-angular-navigation.mjs.map +1 -0
  12. package/fesm2022/ojiepermana-angular-shell.mjs +6 -1
  13. package/fesm2022/ojiepermana-angular-shell.mjs.map +1 -1
  14. package/fesm2022/ojiepermana-angular-theme-component.mjs +12 -26
  15. package/fesm2022/ojiepermana-angular-theme-component.mjs.map +1 -1
  16. package/fesm2022/ojiepermana-angular-theme-service.mjs +2 -6
  17. package/fesm2022/ojiepermana-angular-theme-service.mjs.map +1 -1
  18. package/fesm2022/ojiepermana-angular.mjs.map +1 -1
  19. package/layout/README.md +3 -3
  20. package/{theme/styles/layout → layout/src/component/horizontal}/horizontal.css +39 -26
  21. package/{theme/styles/layout → layout/src/component/vertical}/vertical.css +10 -12
  22. package/{theme/styles/layout/index.css → layout/src/layout.css} +0 -3
  23. package/navigation/README.md +301 -0
  24. package/navigation/horizontal/README.md +49 -0
  25. package/navigation/vertical/README.md +0 -0
  26. package/package.json +13 -1
  27. package/shell/README.md +5 -1
  28. package/styles/index.css +1 -1
  29. package/theme/README.md +3 -6
  30. package/theme/styles/adapters/material-ui/index.css +1 -5
  31. package/theme/styles/presets/styles/flat.css +3 -6
  32. package/theme/styles/presets/styles/glass.css +1 -7
  33. package/theme/styles/presets/styles/index.css +1 -1
  34. package/theme/styles/roles/index.css +18 -0
  35. package/theme/styles/tokens/foundation.css +4 -7
  36. package/types/ojiepermana-angular-internal.d.ts +65 -1
  37. package/types/ojiepermana-angular-layout.d.ts +1 -1
  38. package/types/ojiepermana-angular-navigation-horizontal.d.ts +81 -0
  39. package/types/ojiepermana-angular-navigation-vertical.d.ts +262 -0
  40. package/types/ojiepermana-angular-navigation.d.ts +228 -0
  41. package/types/ojiepermana-angular-shell.d.ts +2 -0
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @ojiepermana/angular
2
2
 
3
- Theme and layout primitives for Angular applications.
3
+ Theme, layout, and navigation primitives for Angular applications.
4
4
 
5
5
  This package is organized around secondary entry points. The root TypeScript package is intentionally empty, so application code should not import APIs from `@ojiepermana/angular` directly.
6
6
 
@@ -12,6 +12,9 @@ Use these entry points in application code:
12
12
  - `@ojiepermana/angular/theme/component`
13
13
  - `@ojiepermana/angular/theme/directive`
14
14
  - `@ojiepermana/angular/layout`
15
+ - `@ojiepermana/angular/navigation`
16
+ - `@ojiepermana/angular/navigation/vertical`
17
+ - `@ojiepermana/angular/navigation/horizontal`
15
18
  - `@ojiepermana/angular/shell`
16
19
  - `@ojiepermana/angular/styles/index.css`
17
20
  - `@ojiepermana/angular/styles/resets.css` for optional application-level resets
@@ -31,6 +34,8 @@ Do not import consumer code from:
31
34
  - Layout host mirroring through `LayoutHostDirective`.
32
35
  - Reusable shell components through `LayoutVerticalComponent` and `LayoutHorizontalComponent`.
33
36
  - Layout controls through `LayoutModeSwitcherComponent` and `LayoutContainerSwitcherComponent`.
37
+ - Navigation runtime state through `NavigationService` and shared navigation utilities.
38
+ - Reusable navigation components through `HorizontalNavigation` and the vertical navigation variants.
34
39
  - A combined stylesheet bundle through `@ojiepermana/angular/styles/index.css`.
35
40
 
36
41
  ## Requirements
@@ -44,7 +49,7 @@ The published package currently declares peer dependencies for:
44
49
  - `@lucide/angular` `>=1.0.0`
45
50
  - `tailwindcss` `>=4.0.0`
46
51
 
47
- If you use the layout shells, your application should also already be using Angular Router because the shell components render `RouterOutlet`.
52
+ If you use the layout shells or the navigation components, your application should also already be using Angular Router because those APIs render router primitives such as `RouterOutlet` and `RouterLink`.
48
53
 
49
54
  ## Runtime Contract
50
55
 
@@ -84,9 +89,9 @@ Theme color labels can be localized through `provideNgTheme({ colorLabels: { ...
84
89
 
85
90
  ## Styling Model
86
91
 
87
- - `@ojiepermana/angular/styles/index.css` is the canonical aggregate bundle for applications. It imports theme first, then layout.
92
+ - `@ojiepermana/angular/styles/index.css` is the canonical aggregate bundle for applications. It imports theme first, then the layout-wide `data-layout-*` rules.
88
93
  - Application-level resets are intentionally not bundled. Import `@ojiepermana/angular/styles/resets.css` only if you want the library's optional reset helpers.
89
- - Theme and layout stylesheet sources remain internal composition layers behind the aggregate bundle.
94
+ - Theme styles remain in the aggregate bundle, while horizontal and vertical shell CSS are colocated with their standalone layout components.
90
95
  - Semantic tokens are the visual source of truth.
91
96
  - Angular Material is the behavior layer and consumes the shared theme variables.
92
97
 
@@ -141,10 +146,7 @@ If your application also wants the library's optional reset helpers, add this be
141
146
 
142
147
  ```ts
143
148
  import { ChangeDetectionStrategy, Component } from '@angular/core';
144
- import {
145
- LayoutContainerSwitcherComponent,
146
- LayoutVerticalComponent,
147
- } from '@ojiepermana/angular/layout';
149
+ import { LayoutContainerSwitcherComponent, LayoutVerticalComponent } from '@ojiepermana/angular/layout';
148
150
  import {
149
151
  StyleSwitcherComponent,
150
152
  ColorPickerComponent,
@@ -223,6 +225,50 @@ export class AppShellComponent {}
223
225
  - `LayoutModeSwitcherComponent`
224
226
  - `LayoutContainerSwitcherComponent`
225
227
 
228
+ ### `@ojiepermana/angular/navigation`
229
+
230
+ - `provideNgNavigation`
231
+ - `NG_NAVIGATION_CONFIG`
232
+ - `NgNavigationConfig`
233
+ - `NavigationPreferencesService`
234
+ - `NavigationService`
235
+ - `NavigationItem`
236
+ - `NavigationBranchItem`
237
+ - `NavigationLeafItem`
238
+ - `NavigationBasicItem`
239
+ - `NavigationAsideItem`
240
+ - `NavigationCollapsableItem`
241
+ - `NavigationGroupItem`
242
+ - `NavigationDividerItem`
243
+ - `NavigationSpacerItem`
244
+ - `HorizontalNavigationVariant`
245
+ - `VerticalNavigationAppearance`
246
+ - `VerticalNavigationMode`
247
+ - `VerticalNavigationPosition`
248
+ - `getNavigationItemAction`
249
+ - `getNavigationChildren`
250
+ - `getNavigationItemVisibilityHandler`
251
+ - `hasNavigationChildren`
252
+ - `isNavigationItemHidden`
253
+ - `isNavigationRoutableItem`
254
+ - `shouldRenderNavigationItem`
255
+
256
+ ### `@ojiepermana/angular/navigation/vertical`
257
+
258
+ - `VerticalNavigationCollapsibleComponent`
259
+ - `VerticalNavigationDefaultComponent`
260
+ - `VerticalNavigationAsideItemComponent`
261
+ - `VerticalNavigationBasicItemComponent`
262
+ - `VerticalNavigationCollapsableItemComponent`
263
+ - `VerticalNavigationDividerItemComponent`
264
+ - `VerticalNavigationGroupItemComponent`
265
+ - `VerticalNavigationSpacerItemComponent`
266
+
267
+ ### `@ojiepermana/angular/navigation/horizontal`
268
+
269
+ - `HorizontalNavigation`
270
+ - `HorizontalNavigationBranchItem`
271
+
226
272
  ### `@ojiepermana/angular/shell`
227
273
 
228
274
  - `provideNgShell`
@@ -234,4 +280,4 @@ export class AppShellComponent {}
234
280
  - Document `@ojiepermana/angular/styles/index.css` as the consumer stylesheet entry point.
235
281
  - Treat `@ojiepermana/angular/internal` as implementation-only. It exists so library entry points can share code without turning that code into a supported consumer contract.
236
282
  - Do not add exports to `@ojiepermana/angular` unless the package contract changes intentionally.
237
- - Keep the root README, theme README, layout README, and entrypoint smoke tests aligned whenever the public surface changes.
283
+ - Keep the root README, theme README, layout README, navigation README, and entrypoint smoke tests aligned whenever the public surface changes.
@@ -1,4 +1,8 @@
1
- import { provideLucideConfig } from '@lucide/angular';
1
+ import { provideLucideConfig, icons, LucideDynamicIcon } from '@lucide/angular';
2
+ import * as i0 from '@angular/core';
3
+ import { input, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, forwardRef } from '@angular/core';
4
+ import { NgTemplateOutlet } from '@angular/common';
5
+ import { getNavigationChildren, hasNavigationChildren, shouldRenderNavigationItem } from '@ojiepermana/angular/navigation';
2
6
 
3
7
  const libraryLucideConfigProvider = provideLucideConfig({
4
8
  absoluteStrokeWidth: true,
@@ -24,6 +28,22 @@ class LocalStorageStateAdapter {
24
28
  this.config.storage.setItem(this.key(axis), value);
25
29
  this.config.storage.removeItem(this.legacyKey(axis));
26
30
  }
31
+ readValue(axis) {
32
+ if (!this.config.isBrowser || !this.config.storage) {
33
+ return null;
34
+ }
35
+ const storedValue = this.config.storage.getItem(this.key(axis));
36
+ if (storedValue !== null) {
37
+ return storedValue;
38
+ }
39
+ const legacyValue = this.config.storage.getItem(this.legacyKey(axis));
40
+ if (legacyValue !== null) {
41
+ this.config.storage.setItem(this.key(axis), legacyValue);
42
+ this.config.storage.removeItem(this.legacyKey(axis));
43
+ return legacyValue;
44
+ }
45
+ return null;
46
+ }
27
47
  read(axis, fallback, isValid) {
28
48
  if (!this.config.isBrowser || !this.config.storage) {
29
49
  return fallback;
@@ -48,11 +68,422 @@ class LocalStorageStateAdapter {
48
68
  }
49
69
  }
50
70
 
71
+ const navigationLucideIconRegistry = buildNavigationLucideIconRegistry();
72
+ function buildNavigationLucideIconRegistry() {
73
+ const registry = new Map();
74
+ for (const icon of Object.values(icons)) {
75
+ registry.set(icon.icon.name, icon);
76
+ for (const alias of icon.icon.aliases ?? []) {
77
+ registry.set(alias, icon);
78
+ }
79
+ }
80
+ return registry;
81
+ }
82
+ class NavigationItemContent {
83
+ item = input.required(...(ngDevMode ? [{ debugName: "item" }] : /* istanbul ignore next */ []));
84
+ level = input(0, ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
85
+ variant = input('horizontal', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
86
+ resolvedIcon = computed(() => {
87
+ const iconName = this.item().icon;
88
+ return iconName ? (navigationLucideIconRegistry.get(iconName) ?? null) : null;
89
+ }, ...(ngDevMode ? [{ debugName: "resolvedIcon" }] : /* istanbul ignore next */ []));
90
+ horizontalIconClass = computed(() => this.joinClasses('horizontal-navigation-item-icon', this.item().classes?.icon), ...(ngDevMode ? [{ debugName: "horizontalIconClass" }] : /* istanbul ignore next */ []));
91
+ verticalIconClass = computed(() => this.joinClasses('kit-navigation-item-icon', this.item().classes?.icon), ...(ngDevMode ? [{ debugName: "verticalIconClass" }] : /* istanbul ignore next */ []));
92
+ horizontalTitleClass = computed(() => this.joinClasses('horizontal-navigation-item-label', this.item().classes?.title), ...(ngDevMode ? [{ debugName: "horizontalTitleClass" }] : /* istanbul ignore next */ []));
93
+ titleClass = computed(() => this.item().classes?.title ?? null, ...(ngDevMode ? [{ debugName: "titleClass" }] : /* istanbul ignore next */ []));
94
+ subtitleClass = computed(() => this.item().classes?.subtitle ?? null, ...(ngDevMode ? [{ debugName: "subtitleClass" }] : /* istanbul ignore next */ []));
95
+ horizontalBadgeClass = computed(() => this.joinClasses('horizontal-navigation-item-badge', !this.item().badge?.classes ? 'bg-primary text-primary-foreground' : null, this.item().badge?.classes), ...(ngDevMode ? [{ debugName: "horizontalBadgeClass" }] : /* istanbul ignore next */ []));
96
+ verticalBadgeClass = computed(() => this.joinClasses('kit-navigation-item-badge-content', this.item().badge?.classes), ...(ngDevMode ? [{ debugName: "verticalBadgeClass" }] : /* istanbul ignore next */ []));
97
+ titleContainerClass = computed(() => this.variant() === 'vertical-group' ? 'kit-navigation-group-title' : 'kit-navigation-item-title', ...(ngDevMode ? [{ debugName: "titleContainerClass" }] : /* istanbul ignore next */ []));
98
+ subtitleContainerClass = computed(() => this.variant() === 'vertical-group' ? 'kit-navigation-group-subtitle' : 'kit-navigation-item-subtitle', ...(ngDevMode ? [{ debugName: "subtitleContainerClass" }] : /* istanbul ignore next */ []));
99
+ joinClasses(...classNames) {
100
+ const value = classNames.filter((className) => !!className).join(' ');
101
+ return value || null;
102
+ }
103
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: NavigationItemContent, deps: [], target: i0.ɵɵFactoryTarget.Component });
104
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: NavigationItemContent, isStandalone: true, selector: "navigation-item-content", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: true, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, providers: [libraryLucideConfigProvider], ngImport: i0, template: `
105
+ @if (variant() === 'horizontal') {
106
+ <span class="horizontal-navigation-item-body">
107
+ <span
108
+ class="horizontal-navigation-item-leading"
109
+ [class.horizontal-navigation-item-leading--nested]="level() > 0">
110
+ @if (resolvedIcon(); as icon) {
111
+ <svg
112
+ [lucideIcon]="icon"
113
+ [absoluteStrokeWidth]="true"
114
+ [attr.class]="horizontalIconClass()"
115
+ aria-hidden="true"></svg>
116
+ }
117
+ <span [attr.class]="horizontalTitleClass()">
118
+ {{ item().title }}
119
+ </span>
120
+ </span>
121
+
122
+ @if (item().badge?.title) {
123
+ <span [attr.class]="horizontalBadgeClass()">
124
+ {{ item().badge?.title }}
125
+ </span>
126
+ }
127
+ </span>
128
+ } @else {
129
+ <span class="kit-navigation-item-content">
130
+ @if (resolvedIcon(); as icon) {
131
+ <svg
132
+ [lucideIcon]="icon"
133
+ [absoluteStrokeWidth]="true"
134
+ [attr.class]="verticalIconClass()"
135
+ [size]="18"
136
+ aria-hidden="true"></svg>
137
+ }
138
+
139
+ <div class="kit-navigation-item-title-wrapper">
140
+ <div [class]="titleContainerClass()">
141
+ <span [attr.class]="titleClass()">
142
+ {{ item().title }}
143
+ </span>
144
+ </div>
145
+
146
+ @if (item().subtitle) {
147
+ <div [class]="subtitleContainerClass()">
148
+ <span [attr.class]="subtitleClass()">
149
+ {{ item().subtitle }}
150
+ </span>
151
+ </div>
152
+ }
153
+ </div>
154
+
155
+ @if (item().badge?.title) {
156
+ <div class="kit-navigation-item-badge">
157
+ <div [attr.class]="verticalBadgeClass()">
158
+ {{ item().badge?.title }}
159
+ </div>
160
+ </div>
161
+ }
162
+ </span>
163
+ }
164
+ `, isInline: true, styles: [":host{display:contents}.kit-navigation-item-content{display:flex;align-items:center;width:100%;min-width:0}.kit-navigation-item-title-wrapper{display:flex;flex:1 1 auto;min-width:0;flex-direction:column}.kit-navigation-item-title,.kit-navigation-group-title,.kit-navigation-item-subtitle,.kit-navigation-group-subtitle{min-width:0}\n"], dependencies: [{ kind: "component", type: LucideDynamicIcon, selector: "svg[lucideIcon]", inputs: ["lucideIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
165
+ }
166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: NavigationItemContent, decorators: [{
167
+ type: Component,
168
+ args: [{ selector: 'navigation-item-content', template: `
169
+ @if (variant() === 'horizontal') {
170
+ <span class="horizontal-navigation-item-body">
171
+ <span
172
+ class="horizontal-navigation-item-leading"
173
+ [class.horizontal-navigation-item-leading--nested]="level() > 0">
174
+ @if (resolvedIcon(); as icon) {
175
+ <svg
176
+ [lucideIcon]="icon"
177
+ [absoluteStrokeWidth]="true"
178
+ [attr.class]="horizontalIconClass()"
179
+ aria-hidden="true"></svg>
180
+ }
181
+ <span [attr.class]="horizontalTitleClass()">
182
+ {{ item().title }}
183
+ </span>
184
+ </span>
185
+
186
+ @if (item().badge?.title) {
187
+ <span [attr.class]="horizontalBadgeClass()">
188
+ {{ item().badge?.title }}
189
+ </span>
190
+ }
191
+ </span>
192
+ } @else {
193
+ <span class="kit-navigation-item-content">
194
+ @if (resolvedIcon(); as icon) {
195
+ <svg
196
+ [lucideIcon]="icon"
197
+ [absoluteStrokeWidth]="true"
198
+ [attr.class]="verticalIconClass()"
199
+ [size]="18"
200
+ aria-hidden="true"></svg>
201
+ }
202
+
203
+ <div class="kit-navigation-item-title-wrapper">
204
+ <div [class]="titleContainerClass()">
205
+ <span [attr.class]="titleClass()">
206
+ {{ item().title }}
207
+ </span>
208
+ </div>
209
+
210
+ @if (item().subtitle) {
211
+ <div [class]="subtitleContainerClass()">
212
+ <span [attr.class]="subtitleClass()">
213
+ {{ item().subtitle }}
214
+ </span>
215
+ </div>
216
+ }
217
+ </div>
218
+
219
+ @if (item().badge?.title) {
220
+ <div class="kit-navigation-item-badge">
221
+ <div [attr.class]="verticalBadgeClass()">
222
+ {{ item().badge?.title }}
223
+ </div>
224
+ </div>
225
+ }
226
+ </span>
227
+ }
228
+ `, imports: [LucideDynamicIcon], providers: [libraryLucideConfigProvider], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [":host{display:contents}.kit-navigation-item-content{display:flex;align-items:center;width:100%;min-width:0}.kit-navigation-item-title-wrapper{display:flex;flex:1 1 auto;min-width:0;flex-direction:column}.kit-navigation-item-title,.kit-navigation-group-title,.kit-navigation-item-subtitle,.kit-navigation-group-subtitle{min-width:0}\n"] }]
229
+ }], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: true }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
230
+
231
+ function trackNavigationTreeItem(index, item) {
232
+ return item.id || item.title || index;
233
+ }
234
+ function getNavigationTreePathKey(parentKey, item) {
235
+ const key = item.id || item.title;
236
+ if (!key) {
237
+ return parentKey;
238
+ }
239
+ return `${parentKey}/${key}`;
240
+ }
241
+ function isNavigationTreeItemExpanded(expandedByParent, parentKey, item) {
242
+ return expandedByParent[parentKey] === getNavigationTreePathKey(parentKey, item);
243
+ }
244
+ function toggleNavigationTreeItemExpanded(expandedByParent, parentKey, item) {
245
+ const key = getNavigationTreePathKey(parentKey, item);
246
+ if (expandedByParent[parentKey] === key) {
247
+ const next = { ...expandedByParent };
248
+ delete next[parentKey];
249
+ return next;
250
+ }
251
+ return {
252
+ ...expandedByParent,
253
+ [parentKey]: key,
254
+ };
255
+ }
256
+ function hasActiveNavigationDescendant(item, isItemActive) {
257
+ for (const child of getNavigationChildren(item)) {
258
+ if (isItemActive(child)) {
259
+ return true;
260
+ }
261
+ if (hasNavigationChildren(child) && hasActiveNavigationDescendant(child, isItemActive)) {
262
+ return true;
263
+ }
264
+ }
265
+ return false;
266
+ }
267
+ function isNavigationTreeDescendant(parent, item) {
268
+ for (const child of getNavigationChildren(parent)) {
269
+ if (child === item) {
270
+ return true;
271
+ }
272
+ if (hasNavigationChildren(child) && isNavigationTreeDescendant(child, item)) {
273
+ return true;
274
+ }
275
+ }
276
+ return false;
277
+ }
278
+
279
+ class NavigationTreeOutlet {
280
+ items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
281
+ level = input(0, ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
282
+ parentKey = input('root', ...(ngDevMode ? [{ debugName: "parentKey" }] : /* istanbul ignore next */ []));
283
+ data = input(null, ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
284
+ branchTemplate = input.required(...(ngDevMode ? [{ debugName: "branchTemplate" }] : /* istanbul ignore next */ []));
285
+ leafTemplate = input.required(...(ngDevMode ? [{ debugName: "leafTemplate" }] : /* istanbul ignore next */ []));
286
+ groupTemplate = input.required(...(ngDevMode ? [{ debugName: "groupTemplate" }] : /* istanbul ignore next */ []));
287
+ dividerTemplate = input(null, ...(ngDevMode ? [{ debugName: "dividerTemplate" }] : /* istanbul ignore next */ []));
288
+ spacerTemplate = input(null, ...(ngDevMode ? [{ debugName: "spacerTemplate" }] : /* istanbul ignore next */ []));
289
+ trackByFn = input(trackNavigationTreeItem, ...(ngDevMode ? [{ debugName: "trackByFn" }] : /* istanbul ignore next */ []));
290
+ shouldRenderItemFn = input(shouldRenderNavigationItem, ...(ngDevMode ? [{ debugName: "shouldRenderItemFn" }] : /* istanbul ignore next */ []));
291
+ hasChildrenFn = input(hasNavigationChildren, ...(ngDevMode ? [{ debugName: "hasChildrenFn" }] : /* istanbul ignore next */ []));
292
+ resolveParentKeyFn = input(getNavigationTreePathKey, ...(ngDevMode ? [{ debugName: "resolveParentKeyFn" }] : /* istanbul ignore next */ []));
293
+ trackItem(index, item) {
294
+ return this.trackByFn()(index, item);
295
+ }
296
+ shouldRender(item) {
297
+ return this.shouldRenderItemFn()(item);
298
+ }
299
+ hasChildren(item) {
300
+ return this.hasChildrenFn()(item);
301
+ }
302
+ resolveParentKey(parentKey, item) {
303
+ return this.resolveParentKeyFn()(parentKey, item);
304
+ }
305
+ templateContext(item, isLast) {
306
+ return {
307
+ $implicit: item,
308
+ level: this.level(),
309
+ parentKey: this.parentKey(),
310
+ isLast,
311
+ data: this.data(),
312
+ };
313
+ }
314
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: NavigationTreeOutlet, deps: [], target: i0.ɵɵFactoryTarget.Component });
315
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: NavigationTreeOutlet, isStandalone: true, selector: "navigation-tree-outlet", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, parentKey: { classPropertyName: "parentKey", publicName: "parentKey", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, branchTemplate: { classPropertyName: "branchTemplate", publicName: "branchTemplate", isSignal: true, isRequired: true, transformFunction: null }, leafTemplate: { classPropertyName: "leafTemplate", publicName: "leafTemplate", isSignal: true, isRequired: true, transformFunction: null }, groupTemplate: { classPropertyName: "groupTemplate", publicName: "groupTemplate", isSignal: true, isRequired: true, transformFunction: null }, dividerTemplate: { classPropertyName: "dividerTemplate", publicName: "dividerTemplate", isSignal: true, isRequired: false, transformFunction: null }, spacerTemplate: { classPropertyName: "spacerTemplate", publicName: "spacerTemplate", isSignal: true, isRequired: false, transformFunction: null }, trackByFn: { classPropertyName: "trackByFn", publicName: "trackByFn", isSignal: true, isRequired: false, transformFunction: null }, shouldRenderItemFn: { classPropertyName: "shouldRenderItemFn", publicName: "shouldRenderItemFn", isSignal: true, isRequired: false, transformFunction: null }, hasChildrenFn: { classPropertyName: "hasChildrenFn", publicName: "hasChildrenFn", isSignal: true, isRequired: false, transformFunction: null }, resolveParentKeyFn: { classPropertyName: "resolveParentKeyFn", publicName: "resolveParentKeyFn", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
316
+ @for (child of items(); track trackItem($index, child); let isLast = $last) {
317
+ @if (shouldRender(child)) {
318
+ @switch (child.type) {
319
+ @case ('basic') {
320
+ <ng-container
321
+ [ngTemplateOutlet]="leafTemplate()"
322
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
323
+ }
324
+
325
+ @case ('aside') {
326
+ @if (hasChildren(child)) {
327
+ <ng-container
328
+ [ngTemplateOutlet]="branchTemplate()"
329
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
330
+ } @else {
331
+ <ng-container
332
+ [ngTemplateOutlet]="leafTemplate()"
333
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
334
+ }
335
+ }
336
+
337
+ @case ('collapsable') {
338
+ @if (hasChildren(child)) {
339
+ <ng-container
340
+ [ngTemplateOutlet]="branchTemplate()"
341
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
342
+ } @else {
343
+ <ng-container
344
+ [ngTemplateOutlet]="leafTemplate()"
345
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
346
+ }
347
+ }
348
+
349
+ @case ('group') {
350
+ @if (hasChildren(child)) {
351
+ <ng-container
352
+ [ngTemplateOutlet]="groupTemplate()"
353
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
354
+ <navigation-tree-outlet
355
+ [items]="child.children || []"
356
+ [level]="level() + 1"
357
+ [parentKey]="resolveParentKey(parentKey(), child)"
358
+ [data]="data()"
359
+ [branchTemplate]="branchTemplate()"
360
+ [leafTemplate]="leafTemplate()"
361
+ [groupTemplate]="groupTemplate()"
362
+ [dividerTemplate]="dividerTemplate()"
363
+ [spacerTemplate]="spacerTemplate()"
364
+ [trackByFn]="trackByFn()"
365
+ [shouldRenderItemFn]="shouldRenderItemFn()"
366
+ [hasChildrenFn]="hasChildrenFn()"
367
+ [resolveParentKeyFn]="resolveParentKeyFn()" />
368
+ }
369
+ }
370
+
371
+ @case ('divider') {
372
+ @if (dividerTemplate()) {
373
+ <ng-container
374
+ [ngTemplateOutlet]="dividerTemplate()"
375
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
376
+ }
377
+ }
378
+
379
+ @case ('spacer') {
380
+ @if (spacerTemplate()) {
381
+ <ng-container
382
+ [ngTemplateOutlet]="spacerTemplate()"
383
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
384
+ }
385
+ }
386
+
387
+ @default {
388
+ <ng-container
389
+ [ngTemplateOutlet]="leafTemplate()"
390
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
391
+ }
392
+ }
393
+ }
394
+ }
395
+ `, isInline: true, styles: [":host{display:block}\n"], dependencies: [{ kind: "component", type: i0.forwardRef(() => NavigationTreeOutlet), selector: "navigation-tree-outlet", inputs: ["items", "level", "parentKey", "data", "branchTemplate", "leafTemplate", "groupTemplate", "dividerTemplate", "spacerTemplate", "trackByFn", "shouldRenderItemFn", "hasChildrenFn", "resolveParentKeyFn"] }, { kind: "directive", type: i0.forwardRef(() => NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
396
+ }
397
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: NavigationTreeOutlet, decorators: [{
398
+ type: Component,
399
+ args: [{ selector: 'navigation-tree-outlet', template: `
400
+ @for (child of items(); track trackItem($index, child); let isLast = $last) {
401
+ @if (shouldRender(child)) {
402
+ @switch (child.type) {
403
+ @case ('basic') {
404
+ <ng-container
405
+ [ngTemplateOutlet]="leafTemplate()"
406
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
407
+ }
408
+
409
+ @case ('aside') {
410
+ @if (hasChildren(child)) {
411
+ <ng-container
412
+ [ngTemplateOutlet]="branchTemplate()"
413
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
414
+ } @else {
415
+ <ng-container
416
+ [ngTemplateOutlet]="leafTemplate()"
417
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
418
+ }
419
+ }
420
+
421
+ @case ('collapsable') {
422
+ @if (hasChildren(child)) {
423
+ <ng-container
424
+ [ngTemplateOutlet]="branchTemplate()"
425
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
426
+ } @else {
427
+ <ng-container
428
+ [ngTemplateOutlet]="leafTemplate()"
429
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
430
+ }
431
+ }
432
+
433
+ @case ('group') {
434
+ @if (hasChildren(child)) {
435
+ <ng-container
436
+ [ngTemplateOutlet]="groupTemplate()"
437
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
438
+ <navigation-tree-outlet
439
+ [items]="child.children || []"
440
+ [level]="level() + 1"
441
+ [parentKey]="resolveParentKey(parentKey(), child)"
442
+ [data]="data()"
443
+ [branchTemplate]="branchTemplate()"
444
+ [leafTemplate]="leafTemplate()"
445
+ [groupTemplate]="groupTemplate()"
446
+ [dividerTemplate]="dividerTemplate()"
447
+ [spacerTemplate]="spacerTemplate()"
448
+ [trackByFn]="trackByFn()"
449
+ [shouldRenderItemFn]="shouldRenderItemFn()"
450
+ [hasChildrenFn]="hasChildrenFn()"
451
+ [resolveParentKeyFn]="resolveParentKeyFn()" />
452
+ }
453
+ }
454
+
455
+ @case ('divider') {
456
+ @if (dividerTemplate()) {
457
+ <ng-container
458
+ [ngTemplateOutlet]="dividerTemplate()"
459
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
460
+ }
461
+ }
462
+
463
+ @case ('spacer') {
464
+ @if (spacerTemplate()) {
465
+ <ng-container
466
+ [ngTemplateOutlet]="spacerTemplate()"
467
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
468
+ }
469
+ }
470
+
471
+ @default {
472
+ <ng-container
473
+ [ngTemplateOutlet]="leafTemplate()"
474
+ [ngTemplateOutletContext]="templateContext(child, isLast)"></ng-container>
475
+ }
476
+ }
477
+ }
478
+ }
479
+ `, imports: [NgTemplateOutlet, forwardRef(() => NavigationTreeOutlet)], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [":host{display:block}\n"] }]
480
+ }], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], parentKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "parentKey", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], branchTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "branchTemplate", required: true }] }], leafTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "leafTemplate", required: true }] }], groupTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupTemplate", required: true }] }], dividerTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "dividerTemplate", required: false }] }], spacerTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacerTemplate", required: false }] }], trackByFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackByFn", required: false }] }], shouldRenderItemFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "shouldRenderItemFn", required: false }] }], hasChildrenFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasChildrenFn", required: false }] }], resolveParentKeyFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "resolveParentKeyFn", required: false }] }] } });
481
+
51
482
  /* Internal composition utilities for library entrypoints. Not part of the supported consumer API. */
52
483
 
53
484
  /**
54
485
  * Generated bundle index. Do not edit.
55
486
  */
56
487
 
57
- export { LocalStorageStateAdapter, libraryLucideConfigProvider };
488
+ export { LocalStorageStateAdapter, NavigationItemContent, NavigationTreeOutlet, getNavigationTreePathKey, hasActiveNavigationDescendant, isNavigationTreeDescendant, isNavigationTreeItemExpanded, libraryLucideConfigProvider, toggleNavigationTreeItemExpanded, trackNavigationTreeItem };
58
489
  //# sourceMappingURL=ojiepermana-angular-internal.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ojiepermana-angular-internal.mjs","sources":["../../../projects/library/internal/src/lucide-config.provider.ts","../../../projects/library/internal/src/local-storage-state.ts","../../../projects/library/internal/public-api.ts","../../../projects/library/internal/ojiepermana-angular-internal.ts"],"sourcesContent":["import { provideLucideConfig } from '@lucide/angular';\n\nexport const libraryLucideConfigProvider = provideLucideConfig({\n absoluteStrokeWidth: true,\n strokeWidth: 1.35,\n});\n","interface StorageLike {\n getItem(key: string): string | null;\n setItem(key: string, value: string): void;\n removeItem(key: string): void;\n}\n\ninterface LocalStorageStateAdapterConfig<Axis extends string> {\n readonly isBrowser: boolean;\n readonly storage: StorageLike | null;\n readonly keys: Record<Axis, string>;\n readonly legacyPrefix: string;\n}\n\nexport class LocalStorageStateAdapter<Axis extends string> {\n constructor(private readonly config: LocalStorageStateAdapterConfig<Axis>) {}\n\n clear(axis: Axis): void {\n if (!this.config.isBrowser || !this.config.storage) {\n return;\n }\n\n this.config.storage.removeItem(this.key(axis));\n this.config.storage.removeItem(this.legacyKey(axis));\n }\n\n persist(axis: Axis, value: string): void {\n if (!this.config.isBrowser || !this.config.storage) {\n return;\n }\n\n this.config.storage.setItem(this.key(axis), value);\n this.config.storage.removeItem(this.legacyKey(axis));\n }\n\n read<T extends string>(axis: Axis, fallback: T, isValid: (value: string) => value is T): T {\n if (!this.config.isBrowser || !this.config.storage) {\n return fallback;\n }\n\n const storedValue = this.config.storage.getItem(this.key(axis));\n\n if (storedValue && isValid(storedValue)) {\n return storedValue;\n }\n\n const legacyValue = this.config.storage.getItem(this.legacyKey(axis));\n\n if (legacyValue && isValid(legacyValue)) {\n this.config.storage.setItem(this.key(axis), legacyValue);\n this.config.storage.removeItem(this.legacyKey(axis));\n return legacyValue;\n }\n\n return fallback;\n }\n\n private key(axis: Axis): string {\n return this.config.keys[axis];\n }\n\n private legacyKey(axis: Axis): string {\n return `${this.config.legacyPrefix}:${axis}`;\n }\n}\n","/* Internal composition utilities for library entrypoints. Not part of the supported consumer API. */\n\nexport { libraryLucideConfigProvider } from './src/lucide-config.provider';\nexport { LocalStorageStateAdapter } from './src/local-storage-state';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;AAEO,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;AAC7D,IAAA,mBAAmB,EAAE,IAAI;AACzB,IAAA,WAAW,EAAE,IAAI;AAClB,CAAA;;MCQY,wBAAwB,CAAA;AACN,IAAA,MAAA;AAA7B,IAAA,WAAA,CAA6B,MAA4C,EAAA;QAA5C,IAAA,CAAA,MAAM,GAAN,MAAM;IAAyC;AAE5E,IAAA,KAAK,CAAC,IAAU,EAAA;AACd,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YAClD;QACF;AAEA,QAAA,IAAI,CAAC,MAAM,CAAC,O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CAAC,EAAE,WAAW,CAAC;AACxD,YAAA,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AACpD,YAAA,OAAO,WAAW;QACpB;AAEA,QAAA,OAAO,QAAQ;IACjB;AAEQ,IAAA,GAAG,CAAC,IAAU,EAAA;QACpB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;IAC/B;AAEQ,IAAA,SAAS,CAAC,IAAU,EAAA;QAC1B,OAAO,CAAA,EAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAA,CAAA,EAAI,IAAI,CAAA,CAAE;IAC9C;AACD;;AC/DD;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"ojiepermana-angular-internal.mjs","sources":["../../../projects/library/internal/src/lucide-config.provider.ts","../../../projects/library/internal/src/local-storage-state.ts","../../../projects/library/internal/src/navigation/navigation-item-content.ts","../../../projects/library/internal/src/navigation/navigation-tree.utils.ts","../../../projects/library/internal/src/navigation/navigation-tree-outlet.ts","../../../projects/library/internal/public-api.ts","../../../projects/library/internal/ojiepermana-angular-internal.ts"],"sourcesContent":["import { provideLucideConfig } from '@lucide/angular';\n\nexport const libraryLucideConfigProvider = provideLucideConfig({\n absoluteStrokeWidth: true,\n strokeWidth: 1.35,\n});\n","interface StorageLike {\n getItem(key: string): string | null;\n setItem(key: string, value: string): void;\n removeItem(key: string): void;\n}\n\ninterface LocalStorageStateAdapterConfig<Axis extends string> {\n readonly isBrowser: boolean;\n readonly storage: StorageLike | null;\n readonly keys: Record<Axis, string>;\n readonly legacyPrefix: string;\n}\n\nexport class LocalStorageStateAdapter<Axis extends string> {\n constructor(private readonly config: LocalStorageStateAdapterConfig<Axis>) {}\n\n clear(axis: Axis): void {\n if (!this.config.isBrowser || !this.config.storage) {\n return;\n }\n\n this.config.storage.removeItem(this.key(axis));\n this.config.storage.removeItem(this.legacyKey(axis));\n }\n\n persist(axis: Axis, value: string): void {\n if (!this.config.isBrowser || !this.config.storage) {\n return;\n }\n\n this.config.storage.setItem(this.key(axis), value);\n this.config.storage.removeItem(this.legacyKey(axis));\n }\n\n readValue(axis: Axis): string | null {\n if (!this.config.isBrowser || !this.config.storage) {\n return null;\n }\n\n const storedValue = this.config.storage.getItem(this.key(axis));\n\n if (storedValue !== null) {\n return storedValue;\n }\n\n const legacyValue = this.config.storage.getItem(this.legacyKey(axis));\n\n if (legacyValue !== null) {\n this.config.storage.setItem(this.key(axis), legacyValue);\n this.config.storage.removeItem(this.legacyKey(axis));\n return legacyValue;\n }\n\n return null;\n }\n\n read<T extends string>(axis: Axis, fallback: T, isValid: (value: string) => value is T): T {\n if (!this.config.isBrowser || !this.config.storage) {\n return fallback;\n }\n\n const storedValue = this.config.storage.getItem(this.key(axis));\n\n if (storedValue && isValid(storedValue)) {\n return storedValue;\n }\n\n const legacyValue = this.config.storage.getItem(this.legacyKey(axis));\n\n if (legacyValue && isValid(legacyValue)) {\n this.config.storage.setItem(this.key(axis), legacyValue);\n this.config.storage.removeItem(this.legacyKey(axis));\n return legacyValue;\n }\n\n return fallback;\n }\n\n private key(axis: Axis): string {\n return this.config.keys[axis];\n }\n\n private legacyKey(axis: Axis): string {\n return `${this.config.legacyPrefix}:${axis}`;\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { LucideDynamicIcon, icons as lucideIcons, type LucideIcon } from '@lucide/angular';\nimport { NavigationItem } from '@ojiepermana/angular/navigation';\n\nimport { libraryLucideConfigProvider } from '../lucide-config.provider';\n\ntype NavigationItemContentVariant = 'horizontal' | 'vertical' | 'vertical-group';\n\nconst navigationLucideIconRegistry = buildNavigationLucideIconRegistry();\n\nfunction buildNavigationLucideIconRegistry(): ReadonlyMap<string, LucideIcon> {\n const registry = new Map<string, LucideIcon>();\n\n for (const icon of Object.values(lucideIcons) as LucideIcon[]) {\n registry.set(icon.icon.name, icon);\n\n for (const alias of icon.icon.aliases ?? []) {\n registry.set(alias, icon);\n }\n }\n\n return registry;\n}\n\n@Component({\n selector: 'navigation-item-content',\n template: `\n @if (variant() === 'horizontal') {\n <span class=\"horizontal-navigation-item-body\">\n <span\n class=\"horizontal-navigation-item-leading\"\n [class.horizontal-navigation-item-leading--nested]=\"level() > 0\">\n @if (resolvedIcon(); as icon) {\n <svg\n [lucideIcon]=\"icon\"\n [absoluteStrokeWidth]=\"true\"\n [attr.class]=\"horizontalIconClass()\"\n aria-hidden=\"true\"></svg>\n }\n <span [attr.class]=\"horizontalTitleClass()\">\n {{ item().title }}\n </span>\n </span>\n\n @if (item().badge?.title) {\n <span [attr.class]=\"horizontalBadgeClass()\">\n {{ item().badge?.title }}\n </span>\n }\n </span>\n } @else {\n <span class=\"kit-navigation-item-content\">\n @if (resolvedIcon(); as icon) {\n <svg\n [lucideIcon]=\"icon\"\n [absoluteStrokeWidth]=\"true\"\n [attr.class]=\"verticalIconClass()\"\n [size]=\"18\"\n aria-hidden=\"true\"></svg>\n }\n\n <div class=\"kit-navigation-item-title-wrapper\">\n <div [class]=\"titleContainerClass()\">\n <span [attr.class]=\"titleClass()\">\n {{ item().title }}\n </span>\n </div>\n\n @if (item().subtitle) {\n <div [class]=\"subtitleContainerClass()\">\n <span [attr.class]=\"subtitleClass()\">\n {{ item().subtitle }}\n </span>\n </div>\n }\n </div>\n\n @if (item().badge?.title) {\n <div class=\"kit-navigation-item-badge\">\n <div [attr.class]=\"verticalBadgeClass()\">\n {{ item().badge?.title }}\n </div>\n </div>\n }\n </span>\n }\n `,\n styles: [\n `\n :host {\n display: contents;\n }\n\n .kit-navigation-item-content {\n display: flex;\n align-items: center;\n width: 100%;\n min-width: 0;\n }\n\n .kit-navigation-item-title-wrapper {\n display: flex;\n flex: 1 1 auto;\n min-width: 0;\n flex-direction: column;\n }\n\n .kit-navigation-item-title,\n .kit-navigation-group-title,\n .kit-navigation-item-subtitle,\n .kit-navigation-group-subtitle {\n min-width: 0;\n }\n `,\n ],\n imports: [LucideDynamicIcon],\n providers: [libraryLucideConfigProvider],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class NavigationItemContent {\n item = input.required<NavigationItem>();\n level = input(0);\n variant = input<NavigationItemContentVariant>('horizontal');\n\n protected readonly resolvedIcon = computed(() => {\n const iconName = this.item().icon;\n return iconName ? (navigationLucideIconRegistry.get(iconName) ?? null) : null;\n });\n\n protected readonly horizontalIconClass = computed(() =>\n this.joinClasses('horizontal-navigation-item-icon', this.item().classes?.icon),\n );\n protected readonly verticalIconClass = computed(() =>\n this.joinClasses('kit-navigation-item-icon', this.item().classes?.icon),\n );\n protected readonly horizontalTitleClass = computed(() =>\n this.joinClasses('horizontal-navigation-item-label', this.item().classes?.title),\n );\n protected readonly titleClass = computed(() => this.item().classes?.title ?? null);\n protected readonly subtitleClass = computed(() => this.item().classes?.subtitle ?? null);\n protected readonly horizontalBadgeClass = computed(() =>\n this.joinClasses(\n 'horizontal-navigation-item-badge',\n !this.item().badge?.classes ? 'bg-primary text-primary-foreground' : null,\n this.item().badge?.classes,\n ),\n );\n protected readonly verticalBadgeClass = computed(() =>\n this.joinClasses('kit-navigation-item-badge-content', this.item().badge?.classes),\n );\n protected readonly titleContainerClass = computed(() =>\n this.variant() === 'vertical-group' ? 'kit-navigation-group-title' : 'kit-navigation-item-title',\n );\n protected readonly subtitleContainerClass = computed(() =>\n this.variant() === 'vertical-group' ? 'kit-navigation-group-subtitle' : 'kit-navigation-item-subtitle',\n );\n\n private joinClasses(...classNames: Array<string | null | undefined | false>): string | null {\n const value = classNames.filter((className): className is string => !!className).join(' ');\n return value || null;\n }\n}\n","import { NavigationItem, getNavigationChildren, hasNavigationChildren } from '@ojiepermana/angular/navigation';\n\nexport type NavigationExpandedItemsByParent = Record<string, string>;\n\nexport function trackNavigationTreeItem(index: number, item: NavigationItem): string | number | undefined {\n return item.id || item.title || index;\n}\n\nexport function getNavigationTreePathKey(parentKey: string, item: NavigationItem): string {\n const key = item.id || item.title;\n if (!key) {\n return parentKey;\n }\n\n return `${parentKey}/${key}`;\n}\n\nexport function isNavigationTreeItemExpanded(\n expandedByParent: NavigationExpandedItemsByParent,\n parentKey: string,\n item: NavigationItem,\n): boolean {\n return expandedByParent[parentKey] === getNavigationTreePathKey(parentKey, item);\n}\n\nexport function toggleNavigationTreeItemExpanded(\n expandedByParent: NavigationExpandedItemsByParent,\n parentKey: string,\n item: NavigationItem,\n): NavigationExpandedItemsByParent {\n const key = getNavigationTreePathKey(parentKey, item);\n\n if (expandedByParent[parentKey] === key) {\n const next = { ...expandedByParent };\n delete next[parentKey];\n return next;\n }\n\n return {\n ...expandedByParent,\n [parentKey]: key,\n };\n}\n\nexport function hasActiveNavigationDescendant(\n item: NavigationItem,\n isItemActive: (item: NavigationItem) => boolean,\n): boolean {\n for (const child of getNavigationChildren(item)) {\n if (isItemActive(child)) {\n return true;\n }\n\n if (hasNavigationChildren(child) && hasActiveNavigationDescendant(child, isItemActive)) {\n return true;\n }\n }\n\n return false;\n}\n\nexport function isNavigationTreeDescendant(parent: NavigationItem, item: NavigationItem): boolean {\n for (const child of getNavigationChildren(parent)) {\n if (child === item) {\n return true;\n }\n\n if (hasNavigationChildren(child) && isNavigationTreeDescendant(child, item)) {\n return true;\n }\n }\n\n return false;\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, forwardRef, input, TemplateRef, ViewEncapsulation } from '@angular/core';\nimport { NavigationItem, hasNavigationChildren, shouldRenderNavigationItem } from '@ojiepermana/angular/navigation';\n\nimport { getNavigationTreePathKey, trackNavigationTreeItem } from './navigation-tree.utils';\n\nexport type NavigationTreeTemplateData = Record<string, unknown>;\n\nexport interface NavigationTreeItemContext {\n $implicit: NavigationItem;\n level: number;\n parentKey: string;\n isLast: boolean;\n data: NavigationTreeTemplateData | null;\n}\n\n@Component({\n selector: 'navigation-tree-outlet',\n template: `\n @for (child of items(); track trackItem($index, child); let isLast = $last) {\n @if (shouldRender(child)) {\n @switch (child.type) {\n @case ('basic') {\n <ng-container\n [ngTemplateOutlet]=\"leafTemplate()\"\n [ngTemplateOutletContext]=\"templateContext(child, isLast)\"></ng-container>\n }\n\n @case ('aside') {\n @if (hasChildren(child)) {\n <ng-container\n [ngTemplateOutlet]=\"branchTemplate()\"\n [ngTemplateOutletContext]=\"templateContext(child, isLast)\"></ng-container>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"leafTemplate()\"\n [ngTemplateOutletContext]=\"templateContext(child, isLast)\"></ng-container>\n }\n }\n\n @case ('collapsable') {\n @if (hasChildren(child)) {\n <ng-container\n [ngTemplateOutlet]=\"branchTemplate()\"\n [ngTemplateOutletContext]=\"templateContext(child, isLast)\"></ng-container>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"leafTemplate()\"\n [ngTemplateOutletContext]=\"templateContext(child, isLast)\"></ng-container>\n }\n }\n\n @case ('group') {\n @if (hasChildren(child)) {\n <ng-container\n [ngTemplateOutlet]=\"groupTemplate()\"\n [ngTemplateOutletContext]=\"templateContext(child, isLast)\"></ng-container>\n <navigation-tree-outlet\n [items]=\"child.children || []\"\n [level]=\"level() + 1\"\n [parentKey]=\"resolveParentKey(parentKey(), child)\"\n [data]=\"data()\"\n [branchTemplate]=\"branchTemplate()\"\n [leafTemplate]=\"leafTemplate()\"\n [groupTemplate]=\"groupTemplate()\"\n [dividerTemplate]=\"dividerTemplate()\"\n [spacerTemplate]=\"spacerTemplate()\"\n [trackByFn]=\"trackByFn()\"\n [shouldRenderItemFn]=\"shouldRenderItemFn()\"\n [hasChildrenFn]=\"hasChildrenFn()\"\n [resolveParentKeyFn]=\"resolveParentKeyFn()\" />\n }\n }\n\n @case ('divider') {\n @if (dividerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"dividerTemplate()\"\n [ngTemplateOutletContext]=\"templateContext(child, isLast)\"></ng-container>\n }\n }\n\n @case ('spacer') {\n @if (spacerTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"spacerTemplate()\"\n [ngTemplateOutletContext]=\"templateContext(child, isLast)\"></ng-container>\n }\n }\n\n @default {\n <ng-container\n [ngTemplateOutlet]=\"leafTemplate()\"\n [ngTemplateOutletContext]=\"templateContext(child, isLast)\"></ng-container>\n }\n }\n }\n }\n `,\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n imports: [NgTemplateOutlet, forwardRef(() => NavigationTreeOutlet)],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class NavigationTreeOutlet {\n items = input<NavigationItem[]>([]);\n level = input(0);\n parentKey = input('root');\n data = input<NavigationTreeTemplateData | null>(null);\n\n branchTemplate = input.required<TemplateRef<NavigationTreeItemContext>>();\n leafTemplate = input.required<TemplateRef<NavigationTreeItemContext>>();\n groupTemplate = input.required<TemplateRef<NavigationTreeItemContext>>();\n dividerTemplate = input<TemplateRef<NavigationTreeItemContext> | null>(null);\n spacerTemplate = input<TemplateRef<NavigationTreeItemContext> | null>(null);\n\n trackByFn = input<(index: number, item: NavigationItem) => string | number | undefined>(trackNavigationTreeItem);\n shouldRenderItemFn = input<(item: NavigationItem) => boolean>(shouldRenderNavigationItem);\n hasChildrenFn = input<(item: NavigationItem) => boolean>(hasNavigationChildren);\n resolveParentKeyFn = input<(parentKey: string, item: NavigationItem) => string>(getNavigationTreePathKey);\n\n trackItem(index: number, item: NavigationItem): string | number | undefined {\n return this.trackByFn()(index, item);\n }\n\n shouldRender(item: NavigationItem): boolean {\n return this.shouldRenderItemFn()(item);\n }\n\n hasChildren(item: NavigationItem): boolean {\n return this.hasChildrenFn()(item);\n }\n\n resolveParentKey(parentKey: string, item: NavigationItem): string {\n return this.resolveParentKeyFn()(parentKey, item);\n }\n\n templateContext(item: NavigationItem, isLast: boolean): NavigationTreeItemContext {\n return {\n $implicit: item,\n level: this.level(),\n parentKey: this.parentKey(),\n isLast,\n data: this.data(),\n };\n }\n}\n","/* Internal composition utilities for library entrypoints. Not part of the supported consumer API. */\n\nexport { libraryLucideConfigProvider } from './src/lucide-config.provider';\nexport { LocalStorageStateAdapter } from './src/local-storage-state';\nexport { NavigationItemContent } from './src/navigation/navigation-item-content';\nexport {\n NavigationTreeOutlet,\n type NavigationTreeItemContext,\n type NavigationTreeTemplateData,\n} from './src/navigation/navigation-tree-outlet';\nexport {\n getNavigationTreePathKey,\n hasActiveNavigationDescendant,\n isNavigationTreeDescendant,\n isNavigationTreeItemExpanded,\n toggleNavigationTreeItemExpanded,\n trackNavigationTreeItem,\n type NavigationExpandedItemsByParent,\n} from './src/navigation/navigation-tree.utils';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["lucideIcons"],"mappings":";;;;;;AAEO,MAAM,2BAA2B,GAAG,mBAAmB,CAAC;AAC7D,IAAA,mBAAmB,EAAE,IAAI;AACzB,IAAA,WAAW,EAAE,IAAI;AAClB,CAAA;;MCQY,wBAAwB,CAAA;AACN,IAAA,MAAA;AAA7B,IAAA,WAAA,CAA6B,MAA4C,EAAA;QAA5C,IAAA,CAAA,MAAM,GAAN,MAAM;IAAyC;AAE5E,IAAA,KAAK,CAAC,IAAU,EAAA;AACd,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YAClD;QACF;AAEA,QAAA,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC9C,QAAA,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACtD;IAEA,OAAO,CAAC,IAAU,EAAE,KAAa,EAAA;AAC/B,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;YAClD;QACF;AAEA,QAAA,IAAI,CAAC,MAAM,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