@ojiepermana/angular 22.2.14 → 22.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/SUPPORT.md +23 -9
- package/component/composer/README.md +3 -0
- package/component/editor/README.md +3 -0
- package/fesm2022/ojiepermana-angular-chart-primitives.mjs +9 -1
- package/fesm2022/ojiepermana-angular-component-alert.mjs +4 -2
- package/fesm2022/ojiepermana-angular-component-button.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-composer.mjs +68 -19
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-editor.mjs +68 -12
- package/fesm2022/ojiepermana-angular-component-form.mjs +2 -2
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-input.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-select.mjs +2 -2
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +1 -1
- package/fesm2022/ojiepermana-angular-component-utils-core.mjs +7 -1
- package/fesm2022/{ojiepermana-angular-navigation-navigation-badge-count.component-Bx89vXtg.mjs → ojiepermana-angular-navigation-navigation-badge-count.component-RkecLYjX.mjs} +28 -18
- package/fesm2022/{ojiepermana-angular-navigation-navigation-dockbar-menu.component-B2o_omfJ.mjs → ojiepermana-angular-navigation-navigation-dockbar-menu.component-Dl7VAyfV.mjs} +3 -3
- package/fesm2022/{ojiepermana-angular-navigation-navigation-entry-grid.component-CJGBKA8c.mjs → ojiepermana-angular-navigation-navigation-entry-grid.component-2Jw-868m.mjs} +6 -4
- package/fesm2022/{ojiepermana-angular-navigation-navigation-flyout-menu.component-CHVjP7ew.mjs → ojiepermana-angular-navigation-navigation-flyout-menu.component-QHUdqD1N.mjs} +8 -8
- package/fesm2022/{ojiepermana-angular-navigation-navigation-horizontal.component-znRwi38r.mjs → ojiepermana-angular-navigation-navigation-horizontal.component-CoX6X3C2.mjs} +5 -5
- package/fesm2022/{ojiepermana-angular-navigation-navigation-item.component-CIy9MVBy.mjs → ojiepermana-angular-navigation-navigation-item.component-DTVh0wjc.mjs} +15 -5
- package/fesm2022/{ojiepermana-angular-navigation-navigation-list.component-BIQM2uf1.mjs → ojiepermana-angular-navigation-navigation-list.component-CRRaXJz4.mjs} +1 -1
- package/fesm2022/ojiepermana-angular-navigation.mjs +45 -23
- package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +17 -5
- package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +72 -18
- package/fesm2022/ojiepermana-angular-theme-page-core.mjs +160 -92
- package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +9 -17
- package/fesm2022/ojiepermana-angular-theme-page-root.mjs +16 -6
- package/fesm2022/ojiepermana-angular-theme-page-side.mjs +10 -18
- package/fesm2022/ojiepermana-angular-theme-shell.mjs +2 -0
- package/fesm2022/ojiepermana-angular-theme-styles.mjs +22 -3
- package/navigation/README.md +17 -0
- package/package.json +5 -5
- package/sdk/README.md +15 -4
- package/sdk/schematics/sdk/index.js +84 -12
- package/theme/layout/README.md +2 -1
- package/theme/page/README.md +5 -3
- package/theme/styles/css/base/components.css +90 -0
- package/theme/styles/css/base/prefers-dark.css +1 -0
- package/theme/styles/css/base/tailwind.css +6 -0
- package/theme/styles/css/base/theme.css +3 -0
- package/theme/styles/css/base/tokens.css +13 -0
- package/theme/styles/css/color/brand.css +16 -0
- package/types/ojiepermana-angular-component-composer.d.ts +5 -1
- package/types/ojiepermana-angular-component-editor.d.ts +4 -0
- package/types/ojiepermana-angular-navigation-types.d.ts +6 -0
- package/types/ojiepermana-angular-navigation.d.ts +13 -3
- package/types/ojiepermana-angular-theme-component-settings.d.ts +10 -0
- package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +24 -1
- package/types/ojiepermana-angular-theme-page-core.d.ts +8 -9
- package/types/ojiepermana-angular-theme-page-root.d.ts +1 -0
- package/types/ojiepermana-angular-theme-styles.d.ts +3 -2
|
@@ -338,13 +338,19 @@ var StorageCoordinator = class {
|
|
|
338
338
|
this.fail();
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
341
|
+
let actionFailed = false;
|
|
341
342
|
await manager.request(LOCK_NAME, {
|
|
342
343
|
mode: "exclusive",
|
|
343
344
|
signal: controller.signal
|
|
344
345
|
}, () => {
|
|
345
346
|
clearTimeout(timeout);
|
|
346
|
-
|
|
347
|
+
try {
|
|
348
|
+
if (!this.destroyed && !controller.signal.aborted) action();
|
|
349
|
+
} catch {
|
|
350
|
+
actionFailed = true;
|
|
351
|
+
}
|
|
347
352
|
});
|
|
353
|
+
if (actionFailed) this.fail();
|
|
348
354
|
} catch {
|
|
349
355
|
this.fail();
|
|
350
356
|
} finally {
|
|
@@ -163,15 +163,20 @@ var NavigationBadgeCountComponent = class NavigationBadgeCountComponent {
|
|
|
163
163
|
ngImport: i0,
|
|
164
164
|
template: `
|
|
165
165
|
@if (resolvedBadge(); as resolved) {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
166
|
+
<!-- The slot is layout neutral (display: contents) except under
|
|
167
|
+
badge-indicator="dot", where it anchors the dot. It sits outside the
|
|
168
|
+
badge so the dot inherits the item's text color, not the badge's. -->
|
|
169
|
+
<span data-navigation-badge-slot="true" class="contents">
|
|
170
|
+
<span
|
|
171
|
+
role="status"
|
|
172
|
+
aria-atomic="true"
|
|
173
|
+
data-navigation-badge="true"
|
|
174
|
+
[attr.data-navigation-badge-count]="resolved.count"
|
|
175
|
+
[attr.aria-label]="resolved.accessibleLabel"
|
|
176
|
+
[class]="badgeClasses()"
|
|
177
|
+
>
|
|
178
|
+
{{ resolved.display }}
|
|
179
|
+
</span>
|
|
175
180
|
</span>
|
|
176
181
|
}
|
|
177
182
|
`,
|
|
@@ -190,15 +195,20 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
190
195
|
host: { class: "contents" },
|
|
191
196
|
template: `
|
|
192
197
|
@if (resolvedBadge(); as resolved) {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
198
|
+
<!-- The slot is layout neutral (display: contents) except under
|
|
199
|
+
badge-indicator="dot", where it anchors the dot. It sits outside the
|
|
200
|
+
badge so the dot inherits the item's text color, not the badge's. -->
|
|
201
|
+
<span data-navigation-badge-slot="true" class="contents">
|
|
202
|
+
<span
|
|
203
|
+
role="status"
|
|
204
|
+
aria-atomic="true"
|
|
205
|
+
data-navigation-badge="true"
|
|
206
|
+
[attr.data-navigation-badge-count]="resolved.count"
|
|
207
|
+
[attr.aria-label]="resolved.accessibleLabel"
|
|
208
|
+
[class]="badgeClasses()"
|
|
209
|
+
>
|
|
210
|
+
{{ resolved.display }}
|
|
211
|
+
</span>
|
|
202
212
|
</span>
|
|
203
213
|
}
|
|
204
214
|
`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as hasNavigationCountBadge } from "./ojiepermana-angular-navigation-navigation-badge-count.component-
|
|
2
|
-
import { r as NavigationItemContentComponent, s as NAVIGATION_SHELL, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-
|
|
3
|
-
import { t as NavigationListComponent } from "./ojiepermana-angular-navigation-navigation-list.component-
|
|
1
|
+
import { i as hasNavigationCountBadge } from "./ojiepermana-angular-navigation-navigation-badge-count.component-RkecLYjX.mjs";
|
|
2
|
+
import { r as NavigationItemContentComponent, s as NAVIGATION_SHELL, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-DTVh0wjc.mjs";
|
|
3
|
+
import { t as NavigationListComponent } from "./ojiepermana-angular-navigation-navigation-list.component-CRRaXJz4.mjs";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { Component, ElementRef, Injector, afterNextRender, computed, inject, input, output, signal } from "@angular/core";
|
|
6
6
|
import { cn } from "@ojiepermana/angular/component/utils/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as navigationPanelId, o as NavigationItemBadgeComponent, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-
|
|
1
|
+
import { n as navigationPanelId, o as NavigationItemBadgeComponent, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-DTVh0wjc.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, computed, inject, input, output, signal } from "@angular/core";
|
|
4
4
|
import { ActivatedRoute, Router, RouterLink } from "@angular/router";
|
|
@@ -25,7 +25,7 @@ var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
|
25
25
|
openedIdsChange = output();
|
|
26
26
|
itemSelected = output();
|
|
27
27
|
isBorderRail = computed(() => this.typeStyle() === "border-rail", ...ngDevMode ? [{ debugName: "isBorderRail" }] : /* istanbul ignore next */ []);
|
|
28
|
-
navItemClass = computed(() => cn(this.itemClass(), this.isBorderRail() && "rounded-none [&:not([aria-current=page]):hover]:bg-transparent [&:not([aria-current=page]):hover]:text-primary"), ...ngDevMode ? [{ debugName: "navItemClass" }] : /* istanbul ignore next */ []);
|
|
28
|
+
navItemClass = computed(() => cn(this.itemClass(), this.isBorderRail() && "rounded-none [&:not([aria-current=page]):hover]:bg-transparent [&:not([aria-current=page]):hover]:text-primary-ink"), ...ngDevMode ? [{ debugName: "navItemClass" }] : /* istanbul ignore next */ []);
|
|
29
29
|
collapsedEntryKeys = signal(/* @__PURE__ */ new Set(), ...ngDevMode ? [{ debugName: "collapsedEntryKeys" }] : /* istanbul ignore next */ []);
|
|
30
30
|
entryState = computed(() => {
|
|
31
31
|
const activeIds = this.activeIds();
|
|
@@ -102,12 +102,12 @@ var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
|
102
102
|
return index < lastActive ? "through" : index === lastActive ? "end" : null;
|
|
103
103
|
}
|
|
104
104
|
entryClasses(item, active) {
|
|
105
|
-
return cn("relative isolate group/nav nav-text flex w-full items-center gap-(--nav-item-gap) px-(--nav-item-padding-x) py-2 text-left transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", active ? "rounded-md bg-primary text-primary-foreground" : this.isBorderRail() ? "rounded-none text-foreground hover:text-primary" : "rounded-lg text-foreground hover:bg-accent hover:text-accent-foreground", active && item.children.length > 0 && this.isEntryOpen(item) && this.collapseTree() === "stairs" && "before:pointer-events-none before:absolute before:top-1/2 before:bottom-0 before:left-(--nav-rail-offset) before:-z-10 before:w-px before:-translate-x-1/2 before:bg-primary before:content-['']", item.disabled && "pointer-events-none opacity-50", item.classes?.wrapper, this.itemClass());
|
|
105
|
+
return cn("relative isolate group/nav nav-text flex w-full items-center gap-(--nav-item-gap) px-(--nav-item-padding-x) py-2 text-left transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", active ? "rounded-md bg-primary text-primary-foreground" : this.isBorderRail() ? "rounded-none text-foreground hover:text-primary-ink" : "rounded-lg text-foreground hover:bg-accent hover:text-accent-foreground", active && item.children.length > 0 && this.isEntryOpen(item) && this.collapseTree() === "stairs" && "before:pointer-events-none before:absolute before:top-1/2 before:bottom-0 before:left-(--nav-rail-offset) before:-z-10 before:w-px before:-translate-x-1/2 before:bg-primary before:content-['']", item.disabled && "pointer-events-none opacity-50", item.classes?.wrapper, this.itemClass());
|
|
106
106
|
}
|
|
107
107
|
entryIconClasses(active, parent) {
|
|
108
108
|
if (parent) return cn("relative inline-flex size-(--nav-icon-size) shrink-0 items-center justify-center self-center", active ? "text-current" : "text-muted-foreground group-hover/nav:text-current");
|
|
109
109
|
if (active) return "relative flex size-(--nav-entry-box-size) shrink-0 items-center justify-center self-center text-current";
|
|
110
|
-
if (this.isBorderRail()) return "relative flex size-(--nav-entry-box-size) shrink-0 items-center justify-center self-center text-foreground transition-colors group-hover/nav:text-primary";
|
|
110
|
+
if (this.isBorderRail()) return "relative flex size-(--nav-entry-box-size) shrink-0 items-center justify-center self-center text-foreground transition-colors group-hover/nav:text-primary-ink";
|
|
111
111
|
return cn("relative flex size-(--nav-entry-box-size) shrink-0 items-center justify-center self-center rounded-lg border bg-background text-foreground shadow-sm transition-colors", "border-[hsl(var(--border)/var(--section-border-opacity))]");
|
|
112
112
|
}
|
|
113
113
|
entryIconGlyphClasses(item) {
|
|
@@ -263,6 +263,7 @@ var NavigationEntryGridComponent = class NavigationEntryGridComponent {
|
|
|
263
263
|
<Icon
|
|
264
264
|
name="chevron-right"
|
|
265
265
|
size="inherit"
|
|
266
|
+
data-navigation-chevron="true"
|
|
266
267
|
[class]="entryChevronClasses(child)"
|
|
267
268
|
/>
|
|
268
269
|
</button>
|
|
@@ -593,6 +594,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
593
594
|
<Icon
|
|
594
595
|
name="chevron-right"
|
|
595
596
|
size="inherit"
|
|
597
|
+
data-navigation-chevron="true"
|
|
596
598
|
[class]="entryChevronClasses(child)"
|
|
597
599
|
/>
|
|
598
600
|
</button>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as navigationInteractiveStateClasses, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-
|
|
2
|
-
import { t as NavigationEntryGridComponent } from "./ojiepermana-angular-navigation-navigation-entry-grid.component-
|
|
1
|
+
import { a as navigationInteractiveStateClasses, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-DTVh0wjc.mjs";
|
|
2
|
+
import { t as NavigationEntryGridComponent } from "./ojiepermana-angular-navigation-navigation-entry-grid.component-2Jw-868m.mjs";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import { Component, ElementRef, Injector, afterNextRender, computed, effect, inject, input, output, signal } from "@angular/core";
|
|
5
5
|
import { cn } from "@ojiepermana/angular/component/utils/core";
|
|
@@ -42,7 +42,7 @@ var NavigationFlyoutMenuComponent = class NavigationFlyoutMenuComponent {
|
|
|
42
42
|
isBottom = computed(() => this.position() === "bottom", ...ngDevMode ? [{ debugName: "isBottom" }] : /* istanbul ignore next */ []);
|
|
43
43
|
showIconOnly = computed(() => this.compact() || this.iconOnly(), ...ngDevMode ? [{ debugName: "showIconOnly" }] : /* istanbul ignore next */ []);
|
|
44
44
|
triggerIcon = computed(() => this.icon() ?? (this.showIconOnly() ? "menu" : null), ...ngDevMode ? [{ debugName: "triggerIcon" }] : /* istanbul ignore next */ []);
|
|
45
|
-
navItemClass = computed(() => cn(this.itemClass(), this.isBorderRail() && "h-(--nav-item-height) rounded-none [&:not([aria-current=page]):hover]:bg-transparent [&:not([aria-current=page]):hover]:text-primary"), ...ngDevMode ? [{ debugName: "navItemClass" }] : /* istanbul ignore next */ []);
|
|
45
|
+
navItemClass = computed(() => cn(this.itemClass(), this.isBorderRail() && "h-(--nav-item-height) rounded-none [&:not([aria-current=page]):hover]:bg-transparent [&:not([aria-current=page]):hover]:text-primary-ink"), ...ngDevMode ? [{ debugName: "navItemClass" }] : /* istanbul ignore next */ []);
|
|
46
46
|
branches = computed(() => this.items().filter((item) => item.children.length > 0), ...ngDevMode ? [{ debugName: "branches" }] : /* istanbul ignore next */ []);
|
|
47
47
|
activeBranch = computed(() => {
|
|
48
48
|
const key = this.nav.currentPanelKey(this.navId());
|
|
@@ -156,9 +156,9 @@ var NavigationFlyoutMenuComponent = class NavigationFlyoutMenuComponent {
|
|
|
156
156
|
triggerClasses() {
|
|
157
157
|
const iconOnly = this.showIconOnly();
|
|
158
158
|
const base = "nav-trigger group/nav inline-flex min-w-0 items-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";
|
|
159
|
-
if (this.variant() === "link") return cn(base, "nav-text underline-offset-4 hover:underline", iconOnly ? "h-(--nav-item-height) w-(--nav-item-height) justify-center gap-0" : "gap-1.5", this.isOpen() ? "text-primary underline" : "text-primary/90 hover:text-primary", this.itemClass(), this.triggerButtonClass());
|
|
159
|
+
if (this.variant() === "link") return cn(base, "nav-text underline-offset-4 hover:underline", iconOnly ? "h-(--nav-item-height) w-(--nav-item-height) justify-center gap-0" : "gap-1.5", this.isOpen() ? "text-primary-ink underline" : "text-primary-ink/90 hover:text-primary-ink", this.itemClass(), this.triggerButtonClass());
|
|
160
160
|
if (this.variant() === "plain") return cn(base, "gap-(--nav-item-gap) rounded-md nav-text", iconOnly ? "h-(--nav-item-height) w-(--nav-item-height) justify-center" : "h-(--nav-item-height) px-(--nav-item-padding-x)", this.isOpen() ? "bg-accent text-foreground" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground", this.itemClass(), this.triggerButtonClass());
|
|
161
|
-
return cn(base, "h-(--nav-item-height) gap-(--nav-item-gap) rounded-full border border-[hsl(var(--border)/var(--section-border-opacity))] bg-background px-4 nav-text shadow-sm", iconOnly && "w-(--nav-item-height) justify-center gap-0 px-0", this.isBorderRail() ? this.isOpen() ? "text-primary" : "text-foreground/80 hover:text-primary" : this.isOpen() ? "bg-accent text-foreground" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground", this.itemClass(), this.triggerButtonClass());
|
|
161
|
+
return cn(base, "h-(--nav-item-height) gap-(--nav-item-gap) rounded-full border border-[hsl(var(--border)/var(--section-border-opacity))] bg-background px-4 nav-text shadow-sm", iconOnly && "w-(--nav-item-height) justify-center gap-0 px-0", this.isBorderRail() ? this.isOpen() ? "text-primary-ink" : "text-foreground/80 hover:text-primary-ink" : this.isOpen() ? "bg-accent text-foreground" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground", this.itemClass(), this.triggerButtonClass());
|
|
162
162
|
}
|
|
163
163
|
panelCardClasses() {
|
|
164
164
|
if (this.floating()) return cn("relative flex flex-col rounded-xl border border-[hsl(var(--border)/var(--section-border-opacity))] bg-popover text-popover-foreground shadow-2xl", "max-h-[min(28rem,70vh)] overflow-hidden");
|
|
@@ -174,7 +174,7 @@ var NavigationFlyoutMenuComponent = class NavigationFlyoutMenuComponent {
|
|
|
174
174
|
return this.itemState().get(item)?.tabClasses ?? "";
|
|
175
175
|
}
|
|
176
176
|
computeTabClasses(item, active, open) {
|
|
177
|
-
return cn("nav-trigger nav-text group/nav inline-flex h-full min-h-(--nav-item-height) min-w-0 items-center gap-(--nav-item-gap) rounded-md px-(--nav-item-padding-x) transition-colors", active ? "rounded-md" : this.isBottom() ? "rounded-t-none" : "rounded-b-none", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", active ? navigationInteractiveStateClasses(true, "horizontal", false, item.children.length > 0, false, false) : this.isBorderRail() ? open ? "rounded-none text-primary" : "rounded-none text-foreground/80 hover:text-primary" : open ? "bg-accent text-foreground" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground", item.classes?.wrapper, this.itemClass());
|
|
177
|
+
return cn("nav-trigger nav-text group/nav inline-flex h-full min-h-(--nav-item-height) min-w-0 items-center gap-(--nav-item-gap) rounded-md px-(--nav-item-padding-x) transition-colors", active ? "rounded-md" : this.isBottom() ? "rounded-t-none" : "rounded-b-none", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", active ? navigationInteractiveStateClasses(true, "horizontal", false, item.children.length > 0, false, false) : this.isBorderRail() ? open ? "rounded-none text-primary-ink" : "rounded-none text-foreground/80 hover:text-primary-ink" : open ? "bg-accent text-foreground" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground", item.classes?.wrapper, this.itemClass());
|
|
178
178
|
}
|
|
179
179
|
tabChevronClasses(item) {
|
|
180
180
|
return cn("shrink-0 self-center text-(length:--nav-icon-size-sub) text-current transition-transform duration-normal", this.isBranchOpen(item) && "rotate-90");
|
|
@@ -387,7 +387,7 @@ var NavigationFlyoutMenuComponent = class NavigationFlyoutMenuComponent {
|
|
|
387
387
|
node: Menu
|
|
388
388
|
})],
|
|
389
389
|
ngImport: i0,
|
|
390
|
-
template: "<button\n type=\"button\"\n data-navigation-flyout-trigger=\"true\"\n [class]=\"triggerClasses()\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId() : null\"\n [attr.aria-label]=\"showIconOnly() ? label() : null\"\n [attr.title]=\"showIconOnly() ? label() : null\"\n (click)=\"toggleFlyout()\"\n>\n @if (showIconOnly()) {\n <Icon\n [name]=\"triggerIcon() ?? 'menu'\"\n size=\"inherit\"\n class=\"text-(length:--nav-icon-size) text-current\"\n />\n } @else {\n @if (iconPosition() === 'start' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n\n <span class=\"truncate\">{{ label() }}</span>\n\n @if (iconPosition() === 'end' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n }\n</button>\n\n@if (isOpen()) {\n <div\n [id]=\"panelId()\"\n data-navigation-flyout-panel=\"true\"\n [attr.data-navigation-flyout-floating]=\"floating() ? 'true' : null\"\n [class]=\"panelWrapperClasses()\"\n [style.left.px]=\"floating() ? null : panelPlacement()?.left\"\n [style.top.px]=\"floating() || isBottom() ? null : panelPlacement()?.top\"\n [style.bottom.px]=\"!floating() && isBottom() ? panelPlacement()?.bottom : null\"\n [style.width.px]=\"floating() ? null : panelPlacement()?.width\"\n >\n <div\n [attr.data-navigation-flyout-floating-card]=\"floating() ? 'true' : null\"\n [class]=\"panelCardClasses()\"\n >\n <div data-navigation-flyout-menu-layout=\"true\" [class]=\"menuClasses()\">\n <!-- ROW 1 = bar (sticky, menutup bar trigger), struktur seperti bar navbar:\n Header (kiri) | menu item (tengah) | Footer (kanan). Hanya ROW 2 (grid child)\n di bawah bar yang ikut scroll. -->\n <div data-navigation-flyout-bar=\"true\" [class]=\"barRowClasses()\">\n <ng-content select=\"NavigationHeader\" />\n\n <ul\n role=\"menu\"\n tabindex=\"-1\"\n data-navigation-flyout-row=\"true\"\n [class]=\"rowClasses()\"\n [attr.aria-label]=\"label()\"\n (keydown)=\"onRowKeydown($event)\"\n >\n @for (item of items(); track item.key) {\n @switch (item.type) {\n @case ('divider') {\n <li role=\"separator\" class=\"mx-1 h-5 w-px bg-border\"></li>\n }\n @case ('spacer') {\n <li role=\"none\" aria-hidden=\"true\" class=\"flex-1\"></li>\n }\n @default {\n @if (item.children.length > 0) {\n <li\n role=\"none\"\n [class]=\"groupContainerClasses(item)\"\n [attr.data-navigation-item-key]=\"item.key\"\n >\n <button\n type=\"button\"\n role=\"menuitem\"\n data-navigation-flyout-tab=\"true\"\n [class]=\"tabClasses(item)\"\n [attr.aria-expanded]=\"isBranchOpen(item)\"\n [attr.aria-controls]=\"isBranchOpen(item) ? panelContentId() : null\"\n [disabled]=\"item.disabled || null\"\n (click)=\"openBranch(item)\"\n >\n <NavigationItemContent\n [item]=\"item\"\n [active]=\"isItemActive(item)\"\n [compact]=\"false\"\n [orientation]=\"'horizontal'\"\n [level]=\"0\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n />\n <Icon\n name=\"chevron-right\"\n size=\"inherit\"\n [class]=\"tabChevronClasses(item)\"\n />\n </button>\n </li>\n } @else {\n <li\n NavigationItem\n [navId]=\"navId()\"\n [item]=\"item\"\n [level]=\"0\"\n [orientation]=\"'horizontal'\"\n [compact]=\"false\"\n [itemClass]=\"navItemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n ></li>\n }\n }\n }\n }\n </ul>\n\n <ng-content select=\"NavigationFooter\" />\n </div>\n\n <!-- ROW 2 = child dari menu item aktif; HANYA area ini yang men-scroll. -->\n <div\n [id]=\"panelContentId()\"\n data-navigation-flyout-scroll=\"true\"\n [attr.role]=\"activeBranch() ? 'menu' : null\"\n [attr.aria-label]=\"activeBranch()?.title || null\"\n [class]=\"scrollRegionClasses()\"\n >\n @if (activeBranch(); as branch) {\n <NavigationEntryGrid\n [navId]=\"navId()\"\n [branch]=\"branch\"\n [typeStyle]=\"typeStyle()\"\n [itemClass]=\"itemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n />\n }\n </div>\n </div>\n </div>\n </div>\n}\n",
|
|
390
|
+
template: "<button\n type=\"button\"\n data-navigation-flyout-trigger=\"true\"\n [class]=\"triggerClasses()\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId() : null\"\n [attr.aria-label]=\"showIconOnly() ? label() : null\"\n [attr.title]=\"showIconOnly() ? label() : null\"\n (click)=\"toggleFlyout()\"\n>\n @if (showIconOnly()) {\n <Icon\n [name]=\"triggerIcon() ?? 'menu'\"\n size=\"inherit\"\n class=\"text-(length:--nav-icon-size) text-current\"\n />\n } @else {\n @if (iconPosition() === 'start' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n\n <span class=\"truncate\">{{ label() }}</span>\n\n @if (iconPosition() === 'end' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n }\n</button>\n\n@if (isOpen()) {\n <div\n [id]=\"panelId()\"\n data-navigation-flyout-panel=\"true\"\n [attr.data-navigation-flyout-floating]=\"floating() ? 'true' : null\"\n [class]=\"panelWrapperClasses()\"\n [style.left.px]=\"floating() ? null : panelPlacement()?.left\"\n [style.top.px]=\"floating() || isBottom() ? null : panelPlacement()?.top\"\n [style.bottom.px]=\"!floating() && isBottom() ? panelPlacement()?.bottom : null\"\n [style.width.px]=\"floating() ? null : panelPlacement()?.width\"\n >\n <div\n [attr.data-navigation-flyout-floating-card]=\"floating() ? 'true' : null\"\n [class]=\"panelCardClasses()\"\n >\n <div data-navigation-flyout-menu-layout=\"true\" [class]=\"menuClasses()\">\n <!-- ROW 1 = bar (sticky, menutup bar trigger), struktur seperti bar navbar:\n Header (kiri) | menu item (tengah) | Footer (kanan). Hanya ROW 2 (grid child)\n di bawah bar yang ikut scroll. -->\n <div data-navigation-flyout-bar=\"true\" [class]=\"barRowClasses()\">\n <ng-content select=\"NavigationHeader\" />\n\n <ul\n role=\"menu\"\n tabindex=\"-1\"\n data-navigation-flyout-row=\"true\"\n [class]=\"rowClasses()\"\n [attr.aria-label]=\"label()\"\n (keydown)=\"onRowKeydown($event)\"\n >\n @for (item of items(); track item.key) {\n @switch (item.type) {\n @case ('divider') {\n <li role=\"separator\" class=\"mx-1 h-5 w-px bg-border\"></li>\n }\n @case ('spacer') {\n <li role=\"none\" aria-hidden=\"true\" class=\"flex-1\"></li>\n }\n @default {\n @if (item.children.length > 0) {\n <li\n role=\"none\"\n [class]=\"groupContainerClasses(item)\"\n [attr.data-navigation-item-key]=\"item.key\"\n >\n <button\n type=\"button\"\n role=\"menuitem\"\n data-navigation-flyout-tab=\"true\"\n [class]=\"tabClasses(item)\"\n [attr.aria-expanded]=\"isBranchOpen(item)\"\n [attr.aria-controls]=\"isBranchOpen(item) ? panelContentId() : null\"\n [disabled]=\"item.disabled || null\"\n (click)=\"openBranch(item)\"\n >\n <NavigationItemContent\n [item]=\"item\"\n [active]=\"isItemActive(item)\"\n [compact]=\"false\"\n [orientation]=\"'horizontal'\"\n [level]=\"0\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n />\n <Icon\n name=\"chevron-right\"\n size=\"inherit\"\n data-navigation-chevron=\"true\"\n [class]=\"tabChevronClasses(item)\"\n />\n </button>\n </li>\n } @else {\n <li\n NavigationItem\n [navId]=\"navId()\"\n [item]=\"item\"\n [level]=\"0\"\n [orientation]=\"'horizontal'\"\n [compact]=\"false\"\n [itemClass]=\"navItemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n ></li>\n }\n }\n }\n }\n </ul>\n\n <ng-content select=\"NavigationFooter\" />\n </div>\n\n <!-- ROW 2 = child dari menu item aktif; HANYA area ini yang men-scroll. -->\n <div\n [id]=\"panelContentId()\"\n data-navigation-flyout-scroll=\"true\"\n [attr.role]=\"activeBranch() ? 'menu' : null\"\n [attr.aria-label]=\"activeBranch()?.title || null\"\n [class]=\"scrollRegionClasses()\"\n >\n @if (activeBranch(); as branch) {\n <NavigationEntryGrid\n [navId]=\"navId()\"\n [branch]=\"branch\"\n [typeStyle]=\"typeStyle()\"\n [itemClass]=\"itemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n />\n }\n </div>\n </div>\n </div>\n </div>\n}\n",
|
|
391
391
|
styles: ["[data-navigation-flyout-floating=true]{width:var(--nav-flyout-floating-width, min(22rem, 85vw));max-width:var(--nav-flyout-floating-max-width, 85vw)}[data-navigation-flyout-floating-card=true]{border-radius:var(--nav-flyout-floating-radius, var(--radius-xl))}[data-navigation-flyout-panel=true]{-webkit-app-region:no-drag;app-region:no-drag}\n"],
|
|
392
392
|
dependencies: [
|
|
393
393
|
{
|
|
@@ -493,7 +493,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
493
493
|
"[class]": "hostClasses()",
|
|
494
494
|
"(keydown.escape)": "onEscape($event)"
|
|
495
495
|
},
|
|
496
|
-
template: "<button\n type=\"button\"\n data-navigation-flyout-trigger=\"true\"\n [class]=\"triggerClasses()\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId() : null\"\n [attr.aria-label]=\"showIconOnly() ? label() : null\"\n [attr.title]=\"showIconOnly() ? label() : null\"\n (click)=\"toggleFlyout()\"\n>\n @if (showIconOnly()) {\n <Icon\n [name]=\"triggerIcon() ?? 'menu'\"\n size=\"inherit\"\n class=\"text-(length:--nav-icon-size) text-current\"\n />\n } @else {\n @if (iconPosition() === 'start' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n\n <span class=\"truncate\">{{ label() }}</span>\n\n @if (iconPosition() === 'end' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n }\n</button>\n\n@if (isOpen()) {\n <div\n [id]=\"panelId()\"\n data-navigation-flyout-panel=\"true\"\n [attr.data-navigation-flyout-floating]=\"floating() ? 'true' : null\"\n [class]=\"panelWrapperClasses()\"\n [style.left.px]=\"floating() ? null : panelPlacement()?.left\"\n [style.top.px]=\"floating() || isBottom() ? null : panelPlacement()?.top\"\n [style.bottom.px]=\"!floating() && isBottom() ? panelPlacement()?.bottom : null\"\n [style.width.px]=\"floating() ? null : panelPlacement()?.width\"\n >\n <div\n [attr.data-navigation-flyout-floating-card]=\"floating() ? 'true' : null\"\n [class]=\"panelCardClasses()\"\n >\n <div data-navigation-flyout-menu-layout=\"true\" [class]=\"menuClasses()\">\n <!-- ROW 1 = bar (sticky, menutup bar trigger), struktur seperti bar navbar:\n Header (kiri) | menu item (tengah) | Footer (kanan). Hanya ROW 2 (grid child)\n di bawah bar yang ikut scroll. -->\n <div data-navigation-flyout-bar=\"true\" [class]=\"barRowClasses()\">\n <ng-content select=\"NavigationHeader\" />\n\n <ul\n role=\"menu\"\n tabindex=\"-1\"\n data-navigation-flyout-row=\"true\"\n [class]=\"rowClasses()\"\n [attr.aria-label]=\"label()\"\n (keydown)=\"onRowKeydown($event)\"\n >\n @for (item of items(); track item.key) {\n @switch (item.type) {\n @case ('divider') {\n <li role=\"separator\" class=\"mx-1 h-5 w-px bg-border\"></li>\n }\n @case ('spacer') {\n <li role=\"none\" aria-hidden=\"true\" class=\"flex-1\"></li>\n }\n @default {\n @if (item.children.length > 0) {\n <li\n role=\"none\"\n [class]=\"groupContainerClasses(item)\"\n [attr.data-navigation-item-key]=\"item.key\"\n >\n <button\n type=\"button\"\n role=\"menuitem\"\n data-navigation-flyout-tab=\"true\"\n [class]=\"tabClasses(item)\"\n [attr.aria-expanded]=\"isBranchOpen(item)\"\n [attr.aria-controls]=\"isBranchOpen(item) ? panelContentId() : null\"\n [disabled]=\"item.disabled || null\"\n (click)=\"openBranch(item)\"\n >\n <NavigationItemContent\n [item]=\"item\"\n [active]=\"isItemActive(item)\"\n [compact]=\"false\"\n [orientation]=\"'horizontal'\"\n [level]=\"0\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n />\n <Icon\n name=\"chevron-right\"\n size=\"inherit\"\n [class]=\"tabChevronClasses(item)\"\n />\n </button>\n </li>\n } @else {\n <li\n NavigationItem\n [navId]=\"navId()\"\n [item]=\"item\"\n [level]=\"0\"\n [orientation]=\"'horizontal'\"\n [compact]=\"false\"\n [itemClass]=\"navItemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n ></li>\n }\n }\n }\n }\n </ul>\n\n <ng-content select=\"NavigationFooter\" />\n </div>\n\n <!-- ROW 2 = child dari menu item aktif; HANYA area ini yang men-scroll. -->\n <div\n [id]=\"panelContentId()\"\n data-navigation-flyout-scroll=\"true\"\n [attr.role]=\"activeBranch() ? 'menu' : null\"\n [attr.aria-label]=\"activeBranch()?.title || null\"\n [class]=\"scrollRegionClasses()\"\n >\n @if (activeBranch(); as branch) {\n <NavigationEntryGrid\n [navId]=\"navId()\"\n [branch]=\"branch\"\n [typeStyle]=\"typeStyle()\"\n [itemClass]=\"itemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n />\n }\n </div>\n </div>\n </div>\n </div>\n}\n",
|
|
496
|
+
template: "<button\n type=\"button\"\n data-navigation-flyout-trigger=\"true\"\n [class]=\"triggerClasses()\"\n aria-haspopup=\"menu\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId() : null\"\n [attr.aria-label]=\"showIconOnly() ? label() : null\"\n [attr.title]=\"showIconOnly() ? label() : null\"\n (click)=\"toggleFlyout()\"\n>\n @if (showIconOnly()) {\n <Icon\n [name]=\"triggerIcon() ?? 'menu'\"\n size=\"inherit\"\n class=\"text-(length:--nav-icon-size) text-current\"\n />\n } @else {\n @if (iconPosition() === 'start' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n\n <span class=\"truncate\">{{ label() }}</span>\n\n @if (iconPosition() === 'end' && triggerIcon(); as iconName) {\n <Icon\n [name]=\"iconName\"\n size=\"inherit\"\n class=\"shrink-0 text-(length:--nav-icon-size) text-current\"\n />\n }\n }\n</button>\n\n@if (isOpen()) {\n <div\n [id]=\"panelId()\"\n data-navigation-flyout-panel=\"true\"\n [attr.data-navigation-flyout-floating]=\"floating() ? 'true' : null\"\n [class]=\"panelWrapperClasses()\"\n [style.left.px]=\"floating() ? null : panelPlacement()?.left\"\n [style.top.px]=\"floating() || isBottom() ? null : panelPlacement()?.top\"\n [style.bottom.px]=\"!floating() && isBottom() ? panelPlacement()?.bottom : null\"\n [style.width.px]=\"floating() ? null : panelPlacement()?.width\"\n >\n <div\n [attr.data-navigation-flyout-floating-card]=\"floating() ? 'true' : null\"\n [class]=\"panelCardClasses()\"\n >\n <div data-navigation-flyout-menu-layout=\"true\" [class]=\"menuClasses()\">\n <!-- ROW 1 = bar (sticky, menutup bar trigger), struktur seperti bar navbar:\n Header (kiri) | menu item (tengah) | Footer (kanan). Hanya ROW 2 (grid child)\n di bawah bar yang ikut scroll. -->\n <div data-navigation-flyout-bar=\"true\" [class]=\"barRowClasses()\">\n <ng-content select=\"NavigationHeader\" />\n\n <ul\n role=\"menu\"\n tabindex=\"-1\"\n data-navigation-flyout-row=\"true\"\n [class]=\"rowClasses()\"\n [attr.aria-label]=\"label()\"\n (keydown)=\"onRowKeydown($event)\"\n >\n @for (item of items(); track item.key) {\n @switch (item.type) {\n @case ('divider') {\n <li role=\"separator\" class=\"mx-1 h-5 w-px bg-border\"></li>\n }\n @case ('spacer') {\n <li role=\"none\" aria-hidden=\"true\" class=\"flex-1\"></li>\n }\n @default {\n @if (item.children.length > 0) {\n <li\n role=\"none\"\n [class]=\"groupContainerClasses(item)\"\n [attr.data-navigation-item-key]=\"item.key\"\n >\n <button\n type=\"button\"\n role=\"menuitem\"\n data-navigation-flyout-tab=\"true\"\n [class]=\"tabClasses(item)\"\n [attr.aria-expanded]=\"isBranchOpen(item)\"\n [attr.aria-controls]=\"isBranchOpen(item) ? panelContentId() : null\"\n [disabled]=\"item.disabled || null\"\n (click)=\"openBranch(item)\"\n >\n <NavigationItemContent\n [item]=\"item\"\n [active]=\"isItemActive(item)\"\n [compact]=\"false\"\n [orientation]=\"'horizontal'\"\n [level]=\"0\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n />\n <Icon\n name=\"chevron-right\"\n size=\"inherit\"\n data-navigation-chevron=\"true\"\n [class]=\"tabChevronClasses(item)\"\n />\n </button>\n </li>\n } @else {\n <li\n NavigationItem\n [navId]=\"navId()\"\n [item]=\"item\"\n [level]=\"0\"\n [orientation]=\"'horizontal'\"\n [compact]=\"false\"\n [itemClass]=\"navItemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n ></li>\n }\n }\n }\n }\n </ul>\n\n <ng-content select=\"NavigationFooter\" />\n </div>\n\n <!-- ROW 2 = child dari menu item aktif; HANYA area ini yang men-scroll. -->\n <div\n [id]=\"panelContentId()\"\n data-navigation-flyout-scroll=\"true\"\n [attr.role]=\"activeBranch() ? 'menu' : null\"\n [attr.aria-label]=\"activeBranch()?.title || null\"\n [class]=\"scrollRegionClasses()\"\n >\n @if (activeBranch(); as branch) {\n <NavigationEntryGrid\n [navId]=\"navId()\"\n [branch]=\"branch\"\n [typeStyle]=\"typeStyle()\"\n [itemClass]=\"itemClass()\"\n [activeIds]=\"activeIds()\"\n [activeUrl]=\"activeUrl()\"\n [badgeContext]=\"badgeContext()\"\n [iconTemplate]=\"iconTemplate()\"\n [collapseTree]=\"collapseTree()\"\n [openedIds]=\"openedIds()\"\n (openedIdsChange)=\"openedIdsChange.emit($event)\"\n (itemSelected)=\"itemSelected.emit($event)\"\n />\n }\n </div>\n </div>\n </div>\n </div>\n}\n",
|
|
497
497
|
styles: ["[data-navigation-flyout-floating=true]{width:var(--nav-flyout-floating-width, min(22rem, 85vw));max-width:var(--nav-flyout-floating-max-width, 85vw)}[data-navigation-flyout-floating-card=true]{border-radius:var(--nav-flyout-floating-radius, var(--radius-xl))}[data-navigation-flyout-panel=true]{-webkit-app-region:no-drag;app-region:no-drag}\n"]
|
|
498
498
|
}]
|
|
499
499
|
}],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as hasNavigationCountBadge } from "./ojiepermana-angular-navigation-navigation-badge-count.component-
|
|
2
|
-
import { t as NavigationEntryGridComponent } from "./ojiepermana-angular-navigation-navigation-entry-grid.component-
|
|
3
|
-
import { a as navigationInteractiveStateClasses, n as navigationPanelId, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-
|
|
1
|
+
import { i as hasNavigationCountBadge } from "./ojiepermana-angular-navigation-navigation-badge-count.component-RkecLYjX.mjs";
|
|
2
|
+
import { t as NavigationEntryGridComponent } from "./ojiepermana-angular-navigation-navigation-entry-grid.component-2Jw-868m.mjs";
|
|
3
|
+
import { a as navigationInteractiveStateClasses, n as navigationPanelId, r as NavigationItemContentComponent, t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-DTVh0wjc.mjs";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { Component, ElementRef, Injector, afterNextRender, computed, effect, inject, input, output, signal } from "@angular/core";
|
|
6
6
|
import { cn } from "@ojiepermana/angular/component/utils/core";
|
|
@@ -29,7 +29,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
|
|
|
29
29
|
itemSelected = output();
|
|
30
30
|
isBorderRail = computed(() => this.typeStyle() === "border-rail", ...ngDevMode ? [{ debugName: "isBorderRail" }] : /* istanbul ignore next */ []);
|
|
31
31
|
isBottom = computed(() => this.position() === "bottom", ...ngDevMode ? [{ debugName: "isBottom" }] : /* istanbul ignore next */ []);
|
|
32
|
-
navItemClass = computed(() => cn(this.itemClass(), this.isBorderRail() && "rounded-none [&:not([aria-current=page]):hover]:bg-transparent [&:not([aria-current=page]):hover]:text-primary"), ...ngDevMode ? [{ debugName: "navItemClass" }] : /* istanbul ignore next */ []);
|
|
32
|
+
navItemClass = computed(() => cn(this.itemClass(), this.isBorderRail() && "rounded-none [&:not([aria-current=page]):hover]:bg-transparent [&:not([aria-current=page]):hover]:text-primary-ink"), ...ngDevMode ? [{ debugName: "navItemClass" }] : /* istanbul ignore next */ []);
|
|
33
33
|
listClasses = computed(() => cn("flex h-full min-w-0 items-center justify-center gap-1 list-none p-0"), ...ngDevMode ? [{ debugName: "listClasses" }] : /* istanbul ignore next */ []);
|
|
34
34
|
openPanelKey = computed(() => this.nav.currentPanelKey(this.navId()), ...ngDevMode ? [{ debugName: "openPanelKey" }] : /* istanbul ignore next */ []);
|
|
35
35
|
itemState = computed(() => {
|
|
@@ -108,7 +108,7 @@ var NavigationHorizontalComponent = class NavigationHorizontalComponent {
|
|
|
108
108
|
return this.itemState().get(item)?.triggerClasses ?? "";
|
|
109
109
|
}
|
|
110
110
|
computeTriggerClasses(item, active, open) {
|
|
111
|
-
return cn("nav-trigger nav-text group/nav inline-flex min-w-0 items-center gap-(--nav-item-gap) rounded-md transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", "h-(--nav-item-height) px-(--nav-item-padding-x)", this.compact() && "size-(--nav-rail-item-size) justify-center gap-0 px-0", active ? navigationInteractiveStateClasses(true, "horizontal", this.compact(), item.children.length > 0, false, false) : this.isBorderRail() ? open ? "rounded-none text-primary" : "rounded-none text-foreground/80 hover:text-primary" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground", item.classes?.wrapper, this.itemClass());
|
|
111
|
+
return cn("nav-trigger nav-text group/nav inline-flex min-w-0 items-center gap-(--nav-item-gap) rounded-md transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", "h-(--nav-item-height) px-(--nav-item-padding-x)", this.compact() && "size-(--nav-rail-item-size) justify-center gap-0 px-0", active ? navigationInteractiveStateClasses(true, "horizontal", this.compact(), item.children.length > 0, false, false) : this.isBorderRail() ? open ? "rounded-none text-primary-ink" : "rounded-none text-foreground/80 hover:text-primary-ink" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground", item.classes?.wrapper, this.itemClass());
|
|
112
112
|
}
|
|
113
113
|
panelClasses() {
|
|
114
114
|
return cn("absolute z-50 bg-popover text-popover-foreground shadow-lg", "max-h-[calc(100dvh-5rem)] overflow-x-hidden overflow-y-auto overscroll-contain", this.isBottom() ? "bottom-full" : "top-full", !this.panelPlacement() && "inset-x-0", this.isBorderRail() ? "rounded-none border-y border-border" : cn("rounded-xl border border-[hsl(var(--border)/var(--section-border-opacity))]", this.isBottom() ? "rounded-b-none" : "rounded-t-none"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as hasNavigationCountBadge, s as navigationDescendantBadgeSources, t as NavigationBadgeCountComponent } from "./ojiepermana-angular-navigation-navigation-badge-count.component-
|
|
1
|
+
import { i as hasNavigationCountBadge, s as navigationDescendantBadgeSources, t as NavigationBadgeCountComponent } from "./ojiepermana-angular-navigation-navigation-badge-count.component-RkecLYjX.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";
|
|
@@ -846,7 +846,7 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
846
846
|
<div [id]="headingId()" [class]="groupHeadingClasses()">
|
|
847
847
|
<ng-container [ngTemplateOutlet]="headingIcon" />
|
|
848
848
|
<span class="min-w-0 flex-1">
|
|
849
|
-
<span class="block truncate">{{ item().title }}</span>
|
|
849
|
+
<span class="block truncate" data-navigation-group-title>{{ item().title }}</span>
|
|
850
850
|
|
|
851
851
|
@if (item().subtitle) {
|
|
852
852
|
<span
|
|
@@ -901,7 +901,12 @@ var NavigationItemComponent = class NavigationItemComponent {
|
|
|
901
901
|
/>
|
|
902
902
|
|
|
903
903
|
@if (!compact()) {
|
|
904
|
-
<Icon
|
|
904
|
+
<Icon
|
|
905
|
+
name="chevron-right"
|
|
906
|
+
size="inherit"
|
|
907
|
+
data-navigation-chevron="true"
|
|
908
|
+
[class]="chevronClasses()"
|
|
909
|
+
/>
|
|
905
910
|
}
|
|
906
911
|
</button>
|
|
907
912
|
|
|
@@ -1241,7 +1246,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1241
1246
|
<div [id]="headingId()" [class]="groupHeadingClasses()">
|
|
1242
1247
|
<ng-container [ngTemplateOutlet]="headingIcon" />
|
|
1243
1248
|
<span class="min-w-0 flex-1">
|
|
1244
|
-
<span class="block truncate">{{ item().title }}</span>
|
|
1249
|
+
<span class="block truncate" data-navigation-group-title>{{ item().title }}</span>
|
|
1245
1250
|
|
|
1246
1251
|
@if (item().subtitle) {
|
|
1247
1252
|
<span
|
|
@@ -1296,7 +1301,12 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1296
1301
|
/>
|
|
1297
1302
|
|
|
1298
1303
|
@if (!compact()) {
|
|
1299
|
-
<Icon
|
|
1304
|
+
<Icon
|
|
1305
|
+
name="chevron-right"
|
|
1306
|
+
size="inherit"
|
|
1307
|
+
data-navigation-chevron="true"
|
|
1308
|
+
[class]="chevronClasses()"
|
|
1309
|
+
/>
|
|
1300
1310
|
}
|
|
1301
1311
|
</button>
|
|
1302
1312
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-
|
|
1
|
+
import { t as NavigationItemComponent } from "./ojiepermana-angular-navigation-navigation-item.component-DTVh0wjc.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as injectNavigationBadgeTotal, o as navigationBadgeSourceKeys, r as NAVIGATION_BADGE_STREAMS, s as navigationDescendantBadgeSources } from "./ojiepermana-angular-navigation-navigation-badge-count.component-
|
|
2
|
-
import { s as NAVIGATION_SHELL } from "./ojiepermana-angular-navigation-navigation-item.component-
|
|
3
|
-
import { t as NavigationListComponent } from "./ojiepermana-angular-navigation-navigation-list.component-
|
|
1
|
+
import { a as injectNavigationBadgeTotal, o as navigationBadgeSourceKeys, r as NAVIGATION_BADGE_STREAMS, s as navigationDescendantBadgeSources } from "./ojiepermana-angular-navigation-navigation-badge-count.component-RkecLYjX.mjs";
|
|
2
|
+
import { s as NAVIGATION_SHELL } from "./ojiepermana-angular-navigation-navigation-item.component-DTVh0wjc.mjs";
|
|
3
|
+
import { t as NavigationListComponent } from "./ojiepermana-angular-navigation-navigation-list.component-CRRaXJz4.mjs";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import { Component, DestroyRef, Directive, ElementRef, Injector, TemplateRef, ViewContainerRef, afterNextRender, booleanAttribute, computed, contentChild, effect, forwardRef, inject, input, isDevMode, model, output, signal } from "@angular/core";
|
|
6
6
|
import { ActivatedRoute } from "@angular/router";
|
|
@@ -9,7 +9,7 @@ import { NavigationIconDirective, NavigationIconDirective as NavigationIconDirec
|
|
|
9
9
|
import { NAVIGATION_ADAPTER, NAVIGATION_ROUTE_CONTEXT_ADAPTER } from "@ojiepermana/angular/navigation/core";
|
|
10
10
|
import { NAVIGATION_DOCKBAR_FALLBACK_ICON, NAVIGATION_DOCKBAR_FALLBACK_ICON as NAVIGATION_DOCKBAR_FALLBACK_ICON$1, formatNavigationBadgeCount, normalizeUiNavItems, normalizeUiNavItems as normalizeUiNavItems$1, toMinidockItems, ɵassertMinidockItems, ɵcompactNavigationDividers } from "@ojiepermana/angular/navigation/types";
|
|
11
11
|
import { NgTemplateOutlet } from "@angular/common";
|
|
12
|
-
import {
|
|
12
|
+
import { Route, SquarePaddingLeft, SquarePaddingRight } from "lucide";
|
|
13
13
|
import { IconComponent, provideIcons } from "@ojiepermana/angular/component/icon";
|
|
14
14
|
import { TooltipDirective } from "@ojiepermana/angular/component/tooltip";
|
|
15
15
|
export * from "@ojiepermana/angular/navigation/core";
|
|
@@ -86,6 +86,10 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
86
86
|
alias: "collapse-tree"
|
|
87
87
|
});
|
|
88
88
|
rail = input("default", ...ngDevMode ? [{ debugName: "rail" }] : /* istanbul ignore next */ []);
|
|
89
|
+
badgeIndicator = input("chevron", {
|
|
90
|
+
...ngDevMode ? { debugName: "badgeIndicator" } : /* istanbul ignore next */ {},
|
|
91
|
+
alias: "badge-indicator"
|
|
92
|
+
});
|
|
89
93
|
class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
|
|
90
94
|
itemClass = input("", ...ngDevMode ? [{ debugName: "itemClass" }] : /* istanbul ignore next */ []);
|
|
91
95
|
groupClass = input("", {
|
|
@@ -390,6 +394,13 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
390
394
|
isRequired: false,
|
|
391
395
|
transformFunction: null
|
|
392
396
|
},
|
|
397
|
+
badgeIndicator: {
|
|
398
|
+
classPropertyName: "badgeIndicator",
|
|
399
|
+
publicName: "badge-indicator",
|
|
400
|
+
isSignal: true,
|
|
401
|
+
isRequired: false,
|
|
402
|
+
transformFunction: null
|
|
403
|
+
},
|
|
393
404
|
class: {
|
|
394
405
|
classPropertyName: "class",
|
|
395
406
|
publicName: "class",
|
|
@@ -457,6 +468,7 @@ var NavigationContainerComponent = class NavigationContainerComponent {
|
|
|
457
468
|
"attr.data-type-style": "typeStyle()",
|
|
458
469
|
"attr.data-position": "resolvedState().position",
|
|
459
470
|
"attr.data-collapse-tree": "collapseTree()",
|
|
471
|
+
"attr.data-navigation-badge-indicator": "badgeIndicator() === \"dot\" ? \"dot\" : null",
|
|
460
472
|
"attr.data-preview-expanded": "previewRailExpanded() ? \"true\" : null",
|
|
461
473
|
"attr.data-motion": "motionArmed() ? null : \"off\""
|
|
462
474
|
}
|
|
@@ -507,6 +519,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
507
519
|
"[attr.data-type-style]": "typeStyle()",
|
|
508
520
|
"[attr.data-position]": "resolvedState().position",
|
|
509
521
|
"[attr.data-collapse-tree]": "collapseTree()",
|
|
522
|
+
"[attr.data-navigation-badge-indicator]": "badgeIndicator() === \"dot\" ? \"dot\" : null",
|
|
510
523
|
"[attr.data-preview-expanded]": "previewRailExpanded() ? \"true\" : null",
|
|
511
524
|
"[attr.data-motion]": "motionArmed() ? null : \"off\"",
|
|
512
525
|
"(document:pointerdown)": "armMotion()",
|
|
@@ -585,6 +598,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
585
598
|
required: false
|
|
586
599
|
}]
|
|
587
600
|
}],
|
|
601
|
+
badgeIndicator: [{
|
|
602
|
+
type: i0.Input,
|
|
603
|
+
args: [{
|
|
604
|
+
isSignal: true,
|
|
605
|
+
alias: "badge-indicator",
|
|
606
|
+
required: false
|
|
607
|
+
}]
|
|
608
|
+
}],
|
|
588
609
|
class: [{
|
|
589
610
|
type: i0.Input,
|
|
590
611
|
args: [{
|
|
@@ -820,9 +841,9 @@ var NavigationContentComponent = class NavigationContentComponent {
|
|
|
820
841
|
outputs: ["openedIdsChange", "itemSelected"]
|
|
821
842
|
}],
|
|
822
843
|
deferBlockDependencies: [
|
|
823
|
-
() => [import("./ojiepermana-angular-navigation-navigation-flyout-menu.component-
|
|
824
|
-
() => [import("./ojiepermana-angular-navigation-navigation-horizontal.component-
|
|
825
|
-
() => [import("./ojiepermana-angular-navigation-navigation-dockbar-menu.component-
|
|
844
|
+
() => [import("./ojiepermana-angular-navigation-navigation-flyout-menu.component-QHUdqD1N.mjs").then((m) => m.NavigationFlyoutMenuComponent)],
|
|
845
|
+
() => [import("./ojiepermana-angular-navigation-navigation-horizontal.component-CoX6X3C2.mjs").then((m) => m.NavigationHorizontalComponent)],
|
|
846
|
+
() => [import("./ojiepermana-angular-navigation-navigation-dockbar-menu.component-Dl7VAyfV.mjs").then((m) => m.NavigationDockbarMenuComponent)]
|
|
826
847
|
]
|
|
827
848
|
});
|
|
828
849
|
};
|
|
@@ -832,9 +853,9 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
832
853
|
ngImport: i0,
|
|
833
854
|
type: NavigationContentComponent,
|
|
834
855
|
resolveDeferredDeps: () => [
|
|
835
|
-
import("./ojiepermana-angular-navigation-navigation-flyout-menu.component-
|
|
836
|
-
import("./ojiepermana-angular-navigation-navigation-horizontal.component-
|
|
837
|
-
import("./ojiepermana-angular-navigation-navigation-dockbar-menu.component-
|
|
856
|
+
import("./ojiepermana-angular-navigation-navigation-flyout-menu.component-QHUdqD1N.mjs").then((m) => m.NavigationFlyoutMenuComponent),
|
|
857
|
+
import("./ojiepermana-angular-navigation-navigation-horizontal.component-CoX6X3C2.mjs").then((m) => m.NavigationHorizontalComponent),
|
|
858
|
+
import("./ojiepermana-angular-navigation-navigation-dockbar-menu.component-Dl7VAyfV.mjs").then((m) => m.NavigationDockbarMenuComponent)
|
|
838
859
|
],
|
|
839
860
|
resolveMetadata: (NavigationFlyoutMenuComponent, NavigationHorizontalComponent, NavigationDockbarMenuComponent) => ({
|
|
840
861
|
decorators: [{
|
|
@@ -1072,6 +1093,7 @@ var NavigationHeaderComponent = class NavigationHeaderComponent {
|
|
|
1072
1093
|
rowClasses = computed(() => cn("flex h-full items-center", !this.isHorizontal() && this.displayCollapsed() ? "justify-center" : "gap-3 px-3"), ...ngDevMode ? [{ debugName: "rowClasses" }] : /* istanbul ignore next */ []);
|
|
1073
1094
|
contentClasses = computed(() => {
|
|
1074
1095
|
if (this.isHorizontal()) return "flex min-w-0 items-center gap-3";
|
|
1096
|
+
if (this.displayCollapsed() && this.showToggle()) return "hidden";
|
|
1075
1097
|
return this.displayCollapsed() ? "flex min-w-0 items-center justify-center" : "flex min-w-0 flex-1 items-center gap-3";
|
|
1076
1098
|
}, ...ngDevMode ? [{ debugName: "contentClasses" }] : /* istanbul ignore next */ []);
|
|
1077
1099
|
hostClasses = computed(() => cn(this.isHorizontal() ? "relative z-10 block h-full w-auto shrink-0" : "sticky top-0 z-10 block h-(--layout-topbar-height) shrink-0 border-b border-[hsl(var(--border)/var(--section-border-opacity))]", this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
|
|
@@ -1113,13 +1135,13 @@ var NavigationHeaderComponent = class NavigationHeaderComponent {
|
|
|
1113
1135
|
"attr.data-collapsed": "displayCollapsed()"
|
|
1114
1136
|
} },
|
|
1115
1137
|
providers: [provideIcons({
|
|
1116
|
-
name: "
|
|
1138
|
+
name: "square-padding-left",
|
|
1117
1139
|
size: 24,
|
|
1118
|
-
node:
|
|
1140
|
+
node: SquarePaddingLeft
|
|
1119
1141
|
}, {
|
|
1120
|
-
name: "
|
|
1142
|
+
name: "square-padding-right",
|
|
1121
1143
|
size: 24,
|
|
1122
|
-
node:
|
|
1144
|
+
node: SquarePaddingRight
|
|
1123
1145
|
})],
|
|
1124
1146
|
ngImport: i0,
|
|
1125
1147
|
template: `
|
|
@@ -1139,7 +1161,7 @@ var NavigationHeaderComponent = class NavigationHeaderComponent {
|
|
|
1139
1161
|
>
|
|
1140
1162
|
<Icon
|
|
1141
1163
|
data-navigation-header-toggle-icon="true"
|
|
1142
|
-
[name]="collapsed() ? '
|
|
1164
|
+
[name]="collapsed() ? 'square-padding-right' : 'square-padding-left'"
|
|
1143
1165
|
size="inherit"
|
|
1144
1166
|
class="text-(length:--nav-icon-size)"
|
|
1145
1167
|
/>
|
|
@@ -1173,13 +1195,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1173
1195
|
selector: "NavigationHeader",
|
|
1174
1196
|
imports: [IconComponent],
|
|
1175
1197
|
providers: [provideIcons({
|
|
1176
|
-
name: "
|
|
1198
|
+
name: "square-padding-left",
|
|
1177
1199
|
size: 24,
|
|
1178
|
-
node:
|
|
1200
|
+
node: SquarePaddingLeft
|
|
1179
1201
|
}, {
|
|
1180
|
-
name: "
|
|
1202
|
+
name: "square-padding-right",
|
|
1181
1203
|
size: 24,
|
|
1182
|
-
node:
|
|
1204
|
+
node: SquarePaddingRight
|
|
1183
1205
|
})],
|
|
1184
1206
|
host: {
|
|
1185
1207
|
"[class]": "hostClasses()",
|
|
@@ -1202,7 +1224,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1202
1224
|
>
|
|
1203
1225
|
<Icon
|
|
1204
1226
|
data-navigation-header-toggle-icon="true"
|
|
1205
|
-
[name]="collapsed() ? '
|
|
1227
|
+
[name]="collapsed() ? 'square-padding-right' : 'square-padding-left'"
|
|
1206
1228
|
size="inherit"
|
|
1207
1229
|
class="text-(length:--nav-icon-size)"
|
|
1208
1230
|
/>
|
|
@@ -1772,7 +1794,7 @@ var NavigationDockbarComponent = class NavigationDockbarComponent {
|
|
|
1772
1794
|
exportAs: ["Tooltip"]
|
|
1773
1795
|
}
|
|
1774
1796
|
],
|
|
1775
|
-
deferBlockDependencies: [() => [import("./ojiepermana-angular-navigation-navigation-badge-count.component-
|
|
1797
|
+
deferBlockDependencies: [() => [import("./ojiepermana-angular-navigation-navigation-badge-count.component-RkecLYjX.mjs").then((n) => n.n).then((m) => m.NavigationBadgeCountComponent)]]
|
|
1776
1798
|
});
|
|
1777
1799
|
};
|
|
1778
1800
|
i0.ɵɵngDeclareClassMetadataAsync({
|
|
@@ -1780,7 +1802,7 @@ i0.ɵɵngDeclareClassMetadataAsync({
|
|
|
1780
1802
|
version: "22.2.6",
|
|
1781
1803
|
ngImport: i0,
|
|
1782
1804
|
type: NavigationDockbarComponent,
|
|
1783
|
-
resolveDeferredDeps: () => [import("./ojiepermana-angular-navigation-navigation-badge-count.component-
|
|
1805
|
+
resolveDeferredDeps: () => [import("./ojiepermana-angular-navigation-navigation-badge-count.component-RkecLYjX.mjs").then((n) => n.n).then((m) => m.NavigationBadgeCountComponent)],
|
|
1784
1806
|
resolveMetadata: (NavigationBadgeCountComponent) => ({
|
|
1785
1807
|
decorators: [{
|
|
1786
1808
|
type: Component,
|
|
@@ -2777,7 +2799,7 @@ function deriveNavigationInitials(name) {
|
|
|
2777
2799
|
const last = parts[parts.length - 1] ?? "";
|
|
2778
2800
|
return (first.charAt(0) + last.charAt(0)).toUpperCase();
|
|
2779
2801
|
}
|
|
2780
|
-
const INITIAL_HOST_CLASSES = "inline-flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-md bg-primary
|
|
2802
|
+
const INITIAL_HOST_CLASSES = "inline-flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-md bg-primary text-primary-foreground";
|
|
2781
2803
|
function setupNavigationInitial(sources) {
|
|
2782
2804
|
return {
|
|
2783
2805
|
resolvedInitials: computed(() => sources.initials()?.slice(0, 2).toUpperCase() || deriveNavigationInitials(sources.name())),
|