@cngx/ui 0.1.0-rc.3 → 0.1.0-rc.5

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 (37) hide show
  1. package/accordion/README.md +86 -0
  2. package/collection/README.md +167 -0
  3. package/data-grid-accordion/README.md +137 -0
  4. package/fesm2022/cngx-ui-accordion.mjs +853 -0
  5. package/fesm2022/cngx-ui-accordion.mjs.map +1 -0
  6. package/fesm2022/cngx-ui-action-button.mjs +2 -2
  7. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  8. package/fesm2022/cngx-ui-breadcrumb.mjs +1044 -0
  9. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -0
  10. package/fesm2022/cngx-ui-collection.mjs +645 -0
  11. package/fesm2022/cngx-ui-collection.mjs.map +1 -0
  12. package/fesm2022/cngx-ui-data-grid-accordion.mjs +1135 -0
  13. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -0
  14. package/fesm2022/cngx-ui-empty-state.mjs +2 -2
  15. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  16. package/fesm2022/cngx-ui-feedback.mjs +10 -10
  17. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  18. package/fesm2022/cngx-ui-mat-accordion.mjs +229 -0
  19. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -0
  20. package/fesm2022/cngx-ui-paginator.mjs +324 -255
  21. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  22. package/fesm2022/cngx-ui-sidenav.mjs +547 -65
  23. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  24. package/fesm2022/cngx-ui-tabs.mjs +6 -6
  25. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  26. package/fesm2022/cngx-ui.mjs +1 -1
  27. package/mat-accordion/README.md +48 -0
  28. package/package.json +21 -1
  29. package/paginator/README.md +9 -6
  30. package/sidenav/README.md +89 -3
  31. package/types/cngx-ui-accordion.d.ts +801 -0
  32. package/types/cngx-ui-breadcrumb.d.ts +890 -0
  33. package/types/cngx-ui-collection.d.ts +396 -0
  34. package/types/cngx-ui-data-grid-accordion.d.ts +912 -0
  35. package/types/cngx-ui-mat-accordion.d.ts +63 -0
  36. package/types/cngx-ui-paginator.d.ts +258 -146
  37. package/types/cngx-ui-sidenav.d.ts +429 -21
@@ -0,0 +1,1044 @@
1
+ import { NgTemplateOutlet } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { inject, TemplateRef, Directive, InjectionToken, input, contentChild, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, booleanAttribute, afterNextRender, signal, DestroyRef, makeEnvironmentProviders } from '@angular/core';
4
+ import { CNGX_BREADCRUMB, CngxMenu, CngxMenuItem, CngxMenuTrigger, DEFAULT_BREADCRUMB_WIDTH_TIERS, resolveBreadcrumbTier, CngxBreadcrumb, CngxBreadcrumbItem, CngxBreadcrumbSeparator } from '@cngx/common/interactive';
5
+ import * as i1 from '@cngx/common/layout';
6
+ import { CngxResizeObserver } from '@cngx/common/layout';
7
+ import { createControlledSource } from '@cngx/core/utils';
8
+ import { CngxPopoverPanel, CngxPopoverTrigger } from '@cngx/common/popover';
9
+ import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
10
+ import { Router, NavigationEnd } from '@angular/router';
11
+ import { filter } from 'rxjs/operators';
12
+
13
+ /**
14
+ * Structural slot for a leading per-crumb icon inside the {@link CngxBreadcrumbBar}
15
+ * trail. Projected once, it renders inside every crumb's link (`<a>`), *before*
16
+ * the label span - the counterpart to the trailing
17
+ * {@link CngxBreadcrumbItemAccessory} slot, which cannot lead because it renders
18
+ * after the link and is siblings-owned. cngx never interprets the icon: it hands
19
+ * the crumb's opaque {@link CngxBreadcrumbCrumb.icon} token to this template and
20
+ * the consumer renders it with whatever system they use - `<mat-icon>`, an icon
21
+ * font, inline SVG, or an `<app-icon>` component. cngx ships no icon set.
22
+ *
23
+ * ```html
24
+ * <cngx-breadcrumb [items]="crumbs" skin="iconlabel">
25
+ * <ng-template cngxBreadcrumbIcon let-crumb>
26
+ * <mat-icon aria-hidden="true">{{ crumb.icon }}</mat-icon>
27
+ * </ng-template>
28
+ * </cngx-breadcrumb>
29
+ * ```
30
+ *
31
+ * The content skins style consumer markup projected here by class:
32
+ * `shell` paints a leading root `.product-mark`, `record` a mono `.rec-id`;
33
+ * `record` additionally styles a `.status-dot` / `.status-label` projected
34
+ * through the trailing accessory slot. Those classes are the public markup
35
+ * contract those skins paint against.
36
+ *
37
+ * @category ui/breadcrumb
38
+ * @wcag AA
39
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/breadcrumb-icon.directive.ts
40
+ * @since 0.1.0
41
+ * @relatedTo CngxBreadcrumbBar, CngxBreadcrumbItemAccessory
42
+ * <example-url>http://localhost:4200/#/ui/breadcrumb/skins/iconlabel</example-url>
43
+ */
44
+ class CngxBreadcrumbIcon {
45
+ templateRef = inject(TemplateRef);
46
+ /** Narrows `let-` bindings to {@link CngxBreadcrumbIconContext} under strict templates. */
47
+ static ngTemplateContextGuard(_dir, _ctx) {
48
+ return true;
49
+ }
50
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
51
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: CngxBreadcrumbIcon, isStandalone: true, selector: "ng-template[cngxBreadcrumbIcon]", exportAs: ["cngxBreadcrumbIcon"], ngImport: i0 });
52
+ }
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbIcon, decorators: [{
54
+ type: Directive,
55
+ args: [{
56
+ selector: 'ng-template[cngxBreadcrumbIcon]',
57
+ exportAs: 'cngxBreadcrumbIcon',
58
+ standalone: true,
59
+ }]
60
+ }] });
61
+
62
+ /**
63
+ * Structural slot for a per-crumb accessory inside the {@link CngxBreadcrumbBar}
64
+ * trail. Projected once, it renders inside every crumb's `<li>` (after the link),
65
+ * so a consumer can attach custom chrome or the router-driven siblings source
66
+ * that the declarative `crumb.siblings` field cannot reach (the bar stays free of
67
+ * `@angular/router`). When present, the slot wins globally over the declarative
68
+ * auto-render - one predictable owner of the accessory area.
69
+ *
70
+ * ```html
71
+ * <cngx-breadcrumb [items]="crumbs">
72
+ * <ng-template cngxBreadcrumbItemAccessory let-crumb>
73
+ * @if (crumb.siblings; as sibs) {
74
+ * <cngx-breadcrumb-siblings [siblings]="sibs" />
75
+ * }
76
+ * </ng-template>
77
+ * </cngx-breadcrumb>
78
+ * ```
79
+ *
80
+ * @category ui/breadcrumb
81
+ * @wcag AA
82
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/breadcrumb-item-accessory.directive.ts
83
+ * @since 0.1.0
84
+ * @relatedTo CngxBreadcrumbBar, CngxBreadcrumbSiblings
85
+ * <example-url>http://localhost:4200/#/ui/breadcrumb/siblings/accessory-slot</example-url>
86
+ */
87
+ class CngxBreadcrumbItemAccessory {
88
+ templateRef = inject(TemplateRef);
89
+ /** Narrows `let-` bindings to {@link CngxBreadcrumbItemAccessoryContext} under strict templates. */
90
+ static ngTemplateContextGuard(_dir, _ctx) {
91
+ return true;
92
+ }
93
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbItemAccessory, deps: [], target: i0.ɵɵFactoryTarget.Directive });
94
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: CngxBreadcrumbItemAccessory, isStandalone: true, selector: "ng-template[cngxBreadcrumbItemAccessory]", exportAs: ["cngxBreadcrumbItemAccessory"], ngImport: i0 });
95
+ }
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbItemAccessory, decorators: [{
97
+ type: Directive,
98
+ args: [{
99
+ selector: 'ng-template[cngxBreadcrumbItemAccessory]',
100
+ exportAs: 'cngxBreadcrumbItemAccessory',
101
+ standalone: true,
102
+ }]
103
+ }] });
104
+
105
+ /**
106
+ * Structural slot for the per-row body inside the {@link CngxBreadcrumbOverflow}
107
+ * menu. Replaces the default label row so a consumer can render a navigable
108
+ * crumb (an `<a href>` or `[routerLink]`); the `<li cngxMenuItem>` shell stays
109
+ * library-owned.
110
+ *
111
+ * ```html
112
+ * <cngx-breadcrumb-overflow>
113
+ * <ng-template cngxBreadcrumbOverflowItem let-crumb>
114
+ * <a [href]="hrefFor(crumb)">{{ crumb.resolvedLabel() }}</a>
115
+ * </ng-template>
116
+ * </cngx-breadcrumb-overflow>
117
+ * ```
118
+ *
119
+ * @category ui/breadcrumb
120
+ * @wcag AA
121
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/breadcrumb-overflow-item.directive.ts
122
+ * @since 0.1.0
123
+ * @relatedTo CngxBreadcrumbOverflow, CngxBreadcrumbBar
124
+ * <example-url>http://localhost:4200/#/ui/breadcrumb/overflow/custom-overflow-row</example-url>
125
+ */
126
+ class CngxBreadcrumbOverflowItem {
127
+ templateRef = inject(TemplateRef);
128
+ /** Narrows `let-` bindings to {@link CngxBreadcrumbOverflowItemContext} under strict templates. */
129
+ static ngTemplateContextGuard(_dir, _ctx) {
130
+ return true;
131
+ }
132
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbOverflowItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
133
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: CngxBreadcrumbOverflowItem, isStandalone: true, selector: "ng-template[cngxBreadcrumbOverflowItem]", exportAs: ["cngxBreadcrumbOverflowItem"], ngImport: i0 });
134
+ }
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbOverflowItem, decorators: [{
136
+ type: Directive,
137
+ args: [{
138
+ selector: 'ng-template[cngxBreadcrumbOverflowItem]',
139
+ exportAs: 'cngxBreadcrumbOverflowItem',
140
+ standalone: true,
141
+ }]
142
+ }] });
143
+
144
+ /**
145
+ * Library defaults for the breadcrumb configuration cascade. English by
146
+ * default per `feedback_en_default_locale`; locale overrides ride the
147
+ * `withBreadcrumbAriaLabels` feature. The values are byte-identical to the
148
+ * per-instance input defaults the components shipped before the cascade, so
149
+ * an un-configured consumer sees no change.
150
+ *
151
+ * Exported for intra-lib consumers (`provideBreadcrumbConfig` deep-merges with
152
+ * this base) but **NOT** re-exported from `public-api.ts` - downstream
153
+ * consumers reach the defaults via `inject(CNGX_BREADCRUMB_CONFIG)` so
154
+ * `provideBreadcrumbConfig` / `provideBreadcrumbConfigAt` overrides take
155
+ * precedence.
156
+ *
157
+ * @internal
158
+ */
159
+ const CNGX_BREADCRUMB_DEFAULTS = {
160
+ ariaLabels: {
161
+ bar: 'Breadcrumb',
162
+ overflowTrigger: 'Show collapsed breadcrumbs',
163
+ overflowMenu: 'Collapsed breadcrumbs',
164
+ siblingsTrigger: 'Show sibling pages',
165
+ siblingsMenu: 'Sibling pages',
166
+ },
167
+ router: {
168
+ dataKey: 'breadcrumb',
169
+ iconKey: 'icon',
170
+ },
171
+ };
172
+ /**
173
+ * App-wide configuration cascade for the breadcrumb family. Resolves in
174
+ * priority order:
175
+ *
176
+ * 1. Per-instance Input binding.
177
+ * 2. `provideBreadcrumbConfigAt(...)` in a parent component's `viewProviders`.
178
+ * 3. `provideBreadcrumbConfig(...)` at the application root.
179
+ * 4. Library defaults (this token's `factory`).
180
+ *
181
+ * `providedIn: 'root'` with a default factory means consumers never need to
182
+ * provide the token explicitly - `inject(CNGX_BREADCRUMB_CONFIG)` always
183
+ * resolves. Consumers who want overrides call `provideBreadcrumbConfig(...)`
184
+ * in `bootstrapApplication` providers (root cascade) or
185
+ * `provideBreadcrumbConfigAt(...)` in a component's `viewProviders`
186
+ * (sub-tree cascade).
187
+ *
188
+ * @category ui/breadcrumb
189
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/config/breadcrumb.config.defaults.ts
190
+ * @since 0.1.0
191
+ */
192
+ const CNGX_BREADCRUMB_CONFIG = new InjectionToken('CNGX_BREADCRUMB_CONFIG', {
193
+ providedIn: 'root',
194
+ factory: () => CNGX_BREADCRUMB_DEFAULTS,
195
+ });
196
+
197
+ /**
198
+ * Convenience accessor for the breadcrumb configuration cascade. Runs in
199
+ * injection context; resolves through the priority chain (per-instance Input
200
+ * -> `provideBreadcrumbConfigAt` -> `provideBreadcrumbConfig` -> library
201
+ * defaults). Equivalent to `inject(CNGX_BREADCRUMB_CONFIG)` - the helper
202
+ * exists so consumers don't import the token directly. Mirrors
203
+ * `injectTagConfig` in `@cngx/common/display`.
204
+ *
205
+ * ```ts
206
+ * export class CngxBreadcrumbBar {
207
+ * private readonly cfg = injectBreadcrumbConfig();
208
+ * readonly label = input<string>(this.cfg.ariaLabels?.bar ?? 'Breadcrumb');
209
+ * }
210
+ * ```
211
+ *
212
+ * @category ui/breadcrumb
213
+ * @since 0.1.0
214
+ */
215
+ function injectBreadcrumbConfig() {
216
+ return inject(CNGX_BREADCRUMB_CONFIG);
217
+ }
218
+
219
+ /**
220
+ * Drop-in overflow menu for {@link CngxBreadcrumbBar}. Presents the crumbs the
221
+ * headless trail collapsed as a real dropdown: an ellipsis trigger plus a
222
+ * {@link CngxPopoverPanel} surface hosting a {@link CngxMenu} of the collapsed
223
+ * crumbs. It reads the collapse set through the {@link CNGX_BREADCRUMB} DI
224
+ * contract - never the concrete coordinator - so it stays decompose-clean, and
225
+ * self-hides when nothing is collapsed, which makes it an unconditional drop-in.
226
+ *
227
+ * The default row lists `resolvedLabel()` and does not navigate. Project
228
+ * `*cngxBreadcrumbOverflowItem` to render a navigable row (an `<a href>` or
229
+ * `[routerLink]`) when the collapsed crumbs must link.
230
+ *
231
+ * ```html
232
+ * <nav cngxBreadcrumb [maxVisible]="4">
233
+ * <a cngxBreadcrumbItem href="/">Home</a>
234
+ * <cngx-breadcrumb-overflow />
235
+ * ...
236
+ * </nav>
237
+ * ```
238
+ *
239
+ * @category ui/breadcrumb
240
+ * @wcag AA
241
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/breadcrumb-overflow.component.ts
242
+ * @since 0.1.0
243
+ * @relatedTo CngxBreadcrumbBar, CngxBreadcrumbOverflowItem, CngxPopoverPanel, CngxPopoverTrigger, CngxMenu, CngxMenuTrigger
244
+ * <example-url>http://localhost:4200/#/ui/breadcrumb/overflow/collapsed-menu</example-url>
245
+ */
246
+ class CngxBreadcrumbOverflow {
247
+ /** Collapse-set contract, provided by the surrounding `cngxBreadcrumb`. */
248
+ breadcrumb = inject(CNGX_BREADCRUMB);
249
+ cfg = injectBreadcrumbConfig();
250
+ /** Accessible name of the ellipsis trigger. Falls back through the config cascade to the EN default. */
251
+ triggerLabel = input(this.cfg.ariaLabels?.overflowTrigger ?? 'Show collapsed breadcrumbs', ...(ngDevMode ? [{ debugName: "triggerLabel" }] : /* istanbul ignore next */ []));
252
+ /** Accessible name of the collapsed-crumb menu. Falls back through the config cascade to the EN default. */
253
+ menuLabel = input(this.cfg.ariaLabels?.overflowMenu ?? 'Collapsed breadcrumbs', ...(ngDevMode ? [{ debugName: "menuLabel" }] : /* istanbul ignore next */ []));
254
+ /**
255
+ * Per-row template forwarded by {@link CngxBreadcrumbBar}. Lets the bar pass a
256
+ * consumer-projected `*cngxBreadcrumbOverflowItem` into this composed overflow,
257
+ * which it cannot reach as `contentChild`. Wins over the directly-projected
258
+ * slot (controlled/uncontrolled: input first, query fallback).
259
+ */
260
+ itemTemplateInput = input(undefined, { ...(ngDevMode ? { debugName: "itemTemplateInput" } : /* istanbul ignore next */ {}), alias: 'itemTemplate' });
261
+ /** Per-row template projected directly into this component (headless drop-in use). */
262
+ itemTemplateQuery = contentChild(CngxBreadcrumbOverflowItem, { ...(ngDevMode ? { debugName: "itemTemplateQuery" } : /* istanbul ignore next */ {}), read: TemplateRef });
263
+ /** Resolved row template: a bar-forwarded input wins, else the directly-projected slot. */
264
+ itemTemplate = createControlledSource(this.itemTemplateInput, this.itemTemplateQuery);
265
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbOverflow, deps: [], target: i0.ɵɵFactoryTarget.Component });
266
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxBreadcrumbOverflow, isStandalone: true, selector: "cngx-breadcrumb-overflow", inputs: { triggerLabel: { classPropertyName: "triggerLabel", publicName: "triggerLabel", isSignal: true, isRequired: false, transformFunction: null }, menuLabel: { classPropertyName: "menuLabel", publicName: "menuLabel", isSignal: true, isRequired: false, transformFunction: null }, itemTemplateInput: { classPropertyName: "itemTemplateInput", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "itemTemplateQuery", first: true, predicate: CngxBreadcrumbOverflowItem, descendants: true, read: TemplateRef, isSignal: true }], exportAs: ["cngxBreadcrumbOverflow"], ngImport: i0, template: "@if (breadcrumb.hasCollapsed()) {\n <button\n type=\"button\"\n class=\"cngx-breadcrumb__overflow-trigger\"\n [cngxMenuTrigger]=\"menu\"\n [cngxPopoverTrigger]=\"panel.popover\"\n [haspopup]=\"'menu'\"\n [popover]=\"panel.popover\"\n [attr.aria-label]=\"triggerLabel()\"\n (click)=\"panel.popover.toggle()\"\n >\n <ng-content select=\":not([cngxBreadcrumbOverflowItem])\">&hellip;</ng-content>\n </button>\n\n <cngx-popover-panel #panel role=\"group\" placement=\"bottom-start\">\n <ul cngxMenu #menu=\"cngxMenu\" [label]=\"menuLabel()\" class=\"cngx-breadcrumb__overflow-menu\">\n @for (crumb of breadcrumb.collapsedItems(); track crumb; let i = $index) {\n <li cngxMenuItem class=\"cngx-breadcrumb__overflow-item\">\n @if (itemTemplate(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: crumb, crumb: crumb, index: i }\"\n />\n } @else {\n {{ crumb.resolvedLabel() }}\n }\n </li>\n }\n </ul>\n </cngx-popover-panel>\n}\n", styles: [".cngx-breadcrumb__overflow-trigger{display:inline-flex;align-items:center;justify-content:center;gap:2px;width:var(--cngx-breadcrumb-overflow-trigger-width, 32px);height:var(--cngx-breadcrumb-overflow-trigger-height, 26px);padding:0;border:1px solid var(--cngx-breadcrumb-overflow-trigger-border, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-breadcrumb-overflow-trigger-radius, var(--cngx-radius-sm, 4px));background:var( --cngx-breadcrumb-overflow-trigger-bg, color-mix(in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0))) );font:inherit;line-height:1;color:var(--cngx-breadcrumb-overflow-trigger-color, var(--cngx-color-text-muted, oklch(.5 .01 250)));cursor:pointer;transition:background .18s ease,color .18s ease,border-color .18s ease}.cngx-breadcrumb__overflow-trigger:hover{background:var( --cngx-breadcrumb-overflow-trigger-hover-bg, color-mix(in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent) );color:var(--cngx-breadcrumb-overflow-trigger-hover-color, var(--cngx-color-primary, oklch(.66 .19 50)));border-color:var( --cngx-breadcrumb-overflow-trigger-hover-border, var(--cngx-color-primary, oklch(.66 .19 50)) )}.cngx-breadcrumb__overflow-menu{margin:0;padding:var(--cngx-breadcrumb-overflow-menu-padding, .25rem 0);list-style:none;min-width:var(--cngx-breadcrumb-overflow-menu-min-width, 11.875rem)}.cngx-breadcrumb__overflow-item{display:flex;align-items:center;gap:.5em;padding:var(--cngx-breadcrumb-overflow-item-padding, .5em .6em);border-radius:var(--cngx-breadcrumb-overflow-item-radius, var(--cngx-radius-sm, 4px));white-space:nowrap;color:var(--cngx-breadcrumb-overflow-item-color, var(--cngx-color-text-muted, oklch(.5 .01 250)));cursor:pointer}.cngx-breadcrumb__overflow-item:hover{background:var( --cngx-breadcrumb-overflow-item-hover-bg, color-mix(in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0))) );color:var(--cngx-breadcrumb-overflow-item-hover-color, var(--cngx-color-text, oklch(.2 .01 250)))}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CngxMenu, selector: "[cngxMenu]", inputs: ["label"], outputs: ["itemActivated"], exportAs: ["cngxMenu"] }, { kind: "directive", type: CngxMenuItem, selector: "[cngxMenuItem]", inputs: ["value", "disabled", "label"], exportAs: ["cngxMenuItem"] }, { kind: "directive", type: CngxMenuTrigger, selector: "[cngxMenuTrigger]", inputs: ["cngxMenuTrigger", "popover"], exportAs: ["cngxMenuTrigger"] }, { kind: "component", type: CngxPopoverPanel, selector: "cngx-popover-panel", inputs: ["variant", "role", "showClose", "showArrow", "state", "loading", "error", "empty"], exportAs: ["cngxPopoverPanel"] }, { kind: "directive", type: CngxPopoverTrigger, selector: "[cngxPopoverTrigger]", inputs: ["cngxPopoverTrigger", "haspopup", "restoreFocus"], exportAs: ["cngxPopoverTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
267
+ }
268
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbOverflow, decorators: [{
269
+ type: Component,
270
+ args: [{ selector: 'cngx-breadcrumb-overflow', exportAs: 'cngxBreadcrumbOverflow', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [
271
+ NgTemplateOutlet,
272
+ CngxMenu,
273
+ CngxMenuItem,
274
+ CngxMenuTrigger,
275
+ CngxPopoverPanel,
276
+ CngxPopoverTrigger,
277
+ ], template: "@if (breadcrumb.hasCollapsed()) {\n <button\n type=\"button\"\n class=\"cngx-breadcrumb__overflow-trigger\"\n [cngxMenuTrigger]=\"menu\"\n [cngxPopoverTrigger]=\"panel.popover\"\n [haspopup]=\"'menu'\"\n [popover]=\"panel.popover\"\n [attr.aria-label]=\"triggerLabel()\"\n (click)=\"panel.popover.toggle()\"\n >\n <ng-content select=\":not([cngxBreadcrumbOverflowItem])\">&hellip;</ng-content>\n </button>\n\n <cngx-popover-panel #panel role=\"group\" placement=\"bottom-start\">\n <ul cngxMenu #menu=\"cngxMenu\" [label]=\"menuLabel()\" class=\"cngx-breadcrumb__overflow-menu\">\n @for (crumb of breadcrumb.collapsedItems(); track crumb; let i = $index) {\n <li cngxMenuItem class=\"cngx-breadcrumb__overflow-item\">\n @if (itemTemplate(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: crumb, crumb: crumb, index: i }\"\n />\n } @else {\n {{ crumb.resolvedLabel() }}\n }\n </li>\n }\n </ul>\n </cngx-popover-panel>\n}\n", styles: [".cngx-breadcrumb__overflow-trigger{display:inline-flex;align-items:center;justify-content:center;gap:2px;width:var(--cngx-breadcrumb-overflow-trigger-width, 32px);height:var(--cngx-breadcrumb-overflow-trigger-height, 26px);padding:0;border:1px solid var(--cngx-breadcrumb-overflow-trigger-border, var(--cngx-color-border, oklch(.88 .005 250)));border-radius:var(--cngx-breadcrumb-overflow-trigger-radius, var(--cngx-radius-sm, 4px));background:var( --cngx-breadcrumb-overflow-trigger-bg, color-mix(in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0))) );font:inherit;line-height:1;color:var(--cngx-breadcrumb-overflow-trigger-color, var(--cngx-color-text-muted, oklch(.5 .01 250)));cursor:pointer;transition:background .18s ease,color .18s ease,border-color .18s ease}.cngx-breadcrumb__overflow-trigger:hover{background:var( --cngx-breadcrumb-overflow-trigger-hover-bg, color-mix(in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent) );color:var(--cngx-breadcrumb-overflow-trigger-hover-color, var(--cngx-color-primary, oklch(.66 .19 50)));border-color:var( --cngx-breadcrumb-overflow-trigger-hover-border, var(--cngx-color-primary, oklch(.66 .19 50)) )}.cngx-breadcrumb__overflow-menu{margin:0;padding:var(--cngx-breadcrumb-overflow-menu-padding, .25rem 0);list-style:none;min-width:var(--cngx-breadcrumb-overflow-menu-min-width, 11.875rem)}.cngx-breadcrumb__overflow-item{display:flex;align-items:center;gap:.5em;padding:var(--cngx-breadcrumb-overflow-item-padding, .5em .6em);border-radius:var(--cngx-breadcrumb-overflow-item-radius, var(--cngx-radius-sm, 4px));white-space:nowrap;color:var(--cngx-breadcrumb-overflow-item-color, var(--cngx-color-text-muted, oklch(.5 .01 250)));cursor:pointer}.cngx-breadcrumb__overflow-item:hover{background:var( --cngx-breadcrumb-overflow-item-hover-bg, color-mix(in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0))) );color:var(--cngx-breadcrumb-overflow-item-hover-color, var(--cngx-color-text, oklch(.2 .01 250)))}\n"] }]
278
+ }], propDecorators: { triggerLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerLabel", required: false }] }], menuLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuLabel", required: false }] }], itemTemplateInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], itemTemplateQuery: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxBreadcrumbOverflowItem), { ...{
279
+ read: TemplateRef,
280
+ }, isSignal: true }] }] } });
281
+
282
+ /**
283
+ * Structural slot for the per-row body inside the {@link CngxBreadcrumbSiblings}
284
+ * menu. Replaces the default sibling row so a consumer can render a richer row
285
+ * (an icon + label, a navigable `<a href>`); the `<li cngxMenuItem>` shell stays
286
+ * library-owned.
287
+ *
288
+ * ```html
289
+ * <cngx-breadcrumb-siblings [siblings]="siblings">
290
+ * <ng-template cngxBreadcrumbSiblingItem let-sibling>
291
+ * <a [href]="sibling.href">{{ sibling.label }}</a>
292
+ * </ng-template>
293
+ * </cngx-breadcrumb-siblings>
294
+ * ```
295
+ *
296
+ * @category ui/breadcrumb
297
+ * @wcag AA
298
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/breadcrumb-sibling-item.directive.ts
299
+ * @since 0.1.0
300
+ * @relatedTo CngxBreadcrumbSiblings
301
+ * <example-url>http://localhost:4200/#/ui/breadcrumb/siblings/custom-row</example-url>
302
+ */
303
+ class CngxBreadcrumbSiblingItem {
304
+ templateRef = inject(TemplateRef);
305
+ /** Narrows `let-` bindings to {@link CngxBreadcrumbSiblingItemContext} under strict templates. */
306
+ static ngTemplateContextGuard(_dir, _ctx) {
307
+ return true;
308
+ }
309
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbSiblingItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
310
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.4", type: CngxBreadcrumbSiblingItem, isStandalone: true, selector: "ng-template[cngxBreadcrumbSiblingItem]", exportAs: ["cngxBreadcrumbSiblingItem"], ngImport: i0 });
311
+ }
312
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbSiblingItem, decorators: [{
313
+ type: Directive,
314
+ args: [{
315
+ selector: 'ng-template[cngxBreadcrumbSiblingItem]',
316
+ exportAs: 'cngxBreadcrumbSiblingItem',
317
+ standalone: true,
318
+ }]
319
+ }] });
320
+
321
+ /**
322
+ * DI seam a sibling producer (e.g. the router-sync directive) provides via
323
+ * `useExisting` to feed {@link CngxBreadcrumbSiblings} without writing its
324
+ * `[siblings]` input.
325
+ *
326
+ * @category ui/breadcrumb
327
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/breadcrumb-siblings-source.token.ts
328
+ * @since 0.1.0
329
+ * @relatedTo CngxBreadcrumbSiblings, CngxBreadcrumbSiblingsSource
330
+ */
331
+ const CNGX_BREADCRUMB_SIBLINGS_SOURCE = new InjectionToken('CNGX_BREADCRUMB_SIBLINGS_SOURCE');
332
+
333
+ /**
334
+ * Per-crumb lateral-navigation dropdown for a hand-composed breadcrumb trail.
335
+ * Where {@link CngxBreadcrumbOverflow} lists the *collapsed ancestors* of the
336
+ * current trail, this lists the *siblings at one level* - the alternatives a
337
+ * user can jump sideways to (`Home > Region EU > Berlin` offering `Munich`,
338
+ * `Hamburg`). It is a disclosure over lateral navigation: a
339
+ * {@link CngxPopoverTrigger}-owned chevron reveals a {@link CngxPopoverPanel}
340
+ * surface holding a `role="list"` of native `<a href>` anchors, and it
341
+ * self-hides when there are no siblings. Native link semantics give keyboard
342
+ * activation, screen-reader link roles, and middle-click for free - a command
343
+ * menu would intercept activation and never navigate.
344
+ *
345
+ * It owns its own sibling data and never injects the collapse coordinator, so it
346
+ * drops in anywhere a crumb needs a sideways picker. Rows come from the static
347
+ * `[siblings]` input, or - opt-in - from a `CNGX_BREADCRUMB_SIBLINGS_SOURCE`
348
+ * provider (the router-sync directive); the controlled source wins over the
349
+ * input via a `computed` (Pillar 1: no effect writes). The active level carries
350
+ * `aria-current="page"` and renders no link.
351
+ *
352
+ * ```html
353
+ * <nav cngxBreadcrumb>
354
+ * <a cngxBreadcrumbItem href="/">Home</a>
355
+ * <a cngxBreadcrumbItem href="/eu">Region EU</a>
356
+ * <cngx-breadcrumb-siblings [siblings]="cities" />
357
+ * </nav>
358
+ * ```
359
+ *
360
+ * @category ui/breadcrumb
361
+ * @docsKind primary
362
+ * @wcag AA
363
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/breadcrumb-siblings.component.ts
364
+ * @since 0.1.0
365
+ * @relatedTo CngxBreadcrumbSiblingItem, CngxBreadcrumbSiblingsRouterSync, CngxBreadcrumbSiblingsSource, CngxBreadcrumbBar, CngxPopoverPanel, CngxPopoverTrigger
366
+ * <example-url>http://localhost:4200/#/ui/breadcrumb/siblings/static-siblings</example-url>
367
+ */
368
+ class CngxBreadcrumbSiblings {
369
+ /** Static sibling rows. Superseded by a provided `CNGX_BREADCRUMB_SIBLINGS_SOURCE`. */
370
+ siblingsInput = input([], { ...(ngDevMode ? { debugName: "siblingsInput" } : /* istanbul ignore next */ {}), alias: 'siblings' });
371
+ cfg = injectBreadcrumbConfig();
372
+ /** Accessible name of the chevron trigger. Falls back through the config cascade to the EN default. */
373
+ triggerLabel = input(this.cfg.ariaLabels?.siblingsTrigger ?? 'Show sibling pages', ...(ngDevMode ? [{ debugName: "triggerLabel" }] : /* istanbul ignore next */ []));
374
+ /** Accessible name of the sibling list (kept as `menuLabel` for overflow symmetry). Falls back through the config cascade to the EN default. */
375
+ menuLabel = input(this.cfg.ariaLabels?.siblingsMenu ?? 'Sibling pages', ...(ngDevMode ? [{ debugName: "menuLabel" }] : /* istanbul ignore next */ []));
376
+ /** Opt-in controlled source (router-sync directive) - wins over `[siblings]`. */
377
+ source = inject(CNGX_BREADCRUMB_SIBLINGS_SOURCE, { optional: true });
378
+ /** Rows the dropdown renders: controlled source wins, else the static input. */
379
+ items = createControlledSource(this.source?.siblings, this.siblingsInput);
380
+ /** Drives the self-hide: no trigger, no panel when there are no siblings. */
381
+ hasSiblings = computed(() => this.items().length > 0, ...(ngDevMode ? [{ debugName: "hasSiblings" }] : /* istanbul ignore next */ []));
382
+ /** Per-row template overriding the default sibling row, when projected. */
383
+ itemTemplate = contentChild(CngxBreadcrumbSiblingItem, { ...(ngDevMode ? { debugName: "itemTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
384
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbSiblings, deps: [], target: i0.ɵɵFactoryTarget.Component });
385
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxBreadcrumbSiblings, isStandalone: true, selector: "cngx-breadcrumb-siblings", inputs: { siblingsInput: { classPropertyName: "siblingsInput", publicName: "siblings", isSignal: true, isRequired: false, transformFunction: null }, triggerLabel: { classPropertyName: "triggerLabel", publicName: "triggerLabel", isSignal: true, isRequired: false, transformFunction: null }, menuLabel: { classPropertyName: "menuLabel", publicName: "menuLabel", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "itemTemplate", first: true, predicate: CngxBreadcrumbSiblingItem, descendants: true, read: TemplateRef, isSignal: true }], exportAs: ["cngxBreadcrumbSiblings"], ngImport: i0, template: "@if (hasSiblings()) {\n <button\n type=\"button\"\n class=\"cngx-breadcrumb__siblings-trigger\"\n [cngxPopoverTrigger]=\"panel.popover\"\n [haspopup]=\"'none'\"\n [restoreFocus]=\"true\"\n [attr.aria-label]=\"triggerLabel()\"\n (click)=\"panel.popover.toggle()\"\n >\n <ng-content select=\":not([cngxBreadcrumbSiblingItem])\">&#9662;</ng-content>\n </button>\n\n <cngx-popover-panel #panel mode=\"auto\" placement=\"bottom-start\">\n <ul class=\"cngx-breadcrumb__siblings-menu\" role=\"list\" [attr.aria-label]=\"menuLabel()\">\n @for (sib of items(); track sib; let i = $index) {\n <li\n class=\"cngx-breadcrumb__siblings-item\"\n [attr.aria-current]=\"sib.current ? 'page' : null\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: sib, sibling: sib, index: i }\"\n />\n } @else {\n @if (sib.href && !sib.current) {\n <a class=\"cngx-breadcrumb__siblings-link\" [attr.href]=\"sib.href\">{{ sib.label }}</a>\n } @else {\n {{ sib.label }}\n }\n }\n </li>\n }\n </ul>\n </cngx-popover-panel>\n}\n", styles: [".cngx-breadcrumb__siblings-trigger{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-breadcrumb-siblings-trigger-size, 22px);height:var(--cngx-breadcrumb-siblings-trigger-size, 22px);padding:0;border:0;border-radius:var(--cngx-breadcrumb-siblings-trigger-radius, var(--cngx-radius-sm, 4px));background:none;font:inherit;line-height:1;color:var(--cngx-breadcrumb-siblings-trigger-color, var(--cngx-color-text-muted, oklch(.5 .01 250)));cursor:pointer;transition:background .18s ease,color .18s ease,transform .18s ease}.cngx-breadcrumb__siblings-trigger:hover{background:var( --cngx-breadcrumb-siblings-trigger-hover-bg, color-mix(in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0))) );color:var(--cngx-breadcrumb-siblings-trigger-hover-color, var(--cngx-color-text, oklch(.2 .01 250)))}.cngx-breadcrumb__siblings-trigger[aria-expanded=true]{background:var( --cngx-breadcrumb-siblings-trigger-open-bg, color-mix(in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent) );color:var(--cngx-breadcrumb-siblings-trigger-open-color, var(--cngx-color-primary, oklch(.66 .19 50)));transform:rotate(180deg)}.cngx-breadcrumb__siblings-menu{margin:0;padding:var(--cngx-breadcrumb-siblings-menu-padding, .25rem 0);list-style:none;min-width:var(--cngx-breadcrumb-siblings-menu-min-width, 11.25rem)}.cngx-breadcrumb__siblings-item{display:flex;align-items:center;padding:var(--cngx-breadcrumb-siblings-item-padding, .45em .55em);border-radius:var(--cngx-breadcrumb-siblings-item-radius, var(--cngx-radius-sm, 4px));white-space:nowrap;color:var(--cngx-breadcrumb-siblings-item-color, var(--cngx-color-text-muted, oklch(.5 .01 250)));cursor:pointer}.cngx-breadcrumb__siblings-item:hover{background:var( --cngx-breadcrumb-siblings-item-hover-bg, color-mix(in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0))) );color:var(--cngx-breadcrumb-siblings-item-hover-color, var(--cngx-color-text, oklch(.2 .01 250)))}.cngx-breadcrumb__siblings-item[aria-current=page]{color:var(--cngx-breadcrumb-siblings-item-current-color, var(--cngx-color-primary, oklch(.66 .19 50)));font-weight:600}.cngx-breadcrumb__siblings-link{color:var(--cngx-breadcrumb-siblings-link-color, inherit);text-decoration:var(--cngx-breadcrumb-siblings-link-decoration, none)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CngxPopoverPanel, selector: "cngx-popover-panel", inputs: ["variant", "role", "showClose", "showArrow", "state", "loading", "error", "empty"], exportAs: ["cngxPopoverPanel"] }, { kind: "directive", type: CngxPopoverTrigger, selector: "[cngxPopoverTrigger]", inputs: ["cngxPopoverTrigger", "haspopup", "restoreFocus"], exportAs: ["cngxPopoverTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
386
+ }
387
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbSiblings, decorators: [{
388
+ type: Component,
389
+ args: [{ selector: 'cngx-breadcrumb-siblings', exportAs: 'cngxBreadcrumbSiblings', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [NgTemplateOutlet, CngxPopoverPanel, CngxPopoverTrigger], template: "@if (hasSiblings()) {\n <button\n type=\"button\"\n class=\"cngx-breadcrumb__siblings-trigger\"\n [cngxPopoverTrigger]=\"panel.popover\"\n [haspopup]=\"'none'\"\n [restoreFocus]=\"true\"\n [attr.aria-label]=\"triggerLabel()\"\n (click)=\"panel.popover.toggle()\"\n >\n <ng-content select=\":not([cngxBreadcrumbSiblingItem])\">&#9662;</ng-content>\n </button>\n\n <cngx-popover-panel #panel mode=\"auto\" placement=\"bottom-start\">\n <ul class=\"cngx-breadcrumb__siblings-menu\" role=\"list\" [attr.aria-label]=\"menuLabel()\">\n @for (sib of items(); track sib; let i = $index) {\n <li\n class=\"cngx-breadcrumb__siblings-item\"\n [attr.aria-current]=\"sib.current ? 'page' : null\"\n >\n @if (itemTemplate(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: sib, sibling: sib, index: i }\"\n />\n } @else {\n @if (sib.href && !sib.current) {\n <a class=\"cngx-breadcrumb__siblings-link\" [attr.href]=\"sib.href\">{{ sib.label }}</a>\n } @else {\n {{ sib.label }}\n }\n }\n </li>\n }\n </ul>\n </cngx-popover-panel>\n}\n", styles: [".cngx-breadcrumb__siblings-trigger{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-breadcrumb-siblings-trigger-size, 22px);height:var(--cngx-breadcrumb-siblings-trigger-size, 22px);padding:0;border:0;border-radius:var(--cngx-breadcrumb-siblings-trigger-radius, var(--cngx-radius-sm, 4px));background:none;font:inherit;line-height:1;color:var(--cngx-breadcrumb-siblings-trigger-color, var(--cngx-color-text-muted, oklch(.5 .01 250)));cursor:pointer;transition:background .18s ease,color .18s ease,transform .18s ease}.cngx-breadcrumb__siblings-trigger:hover{background:var( --cngx-breadcrumb-siblings-trigger-hover-bg, color-mix(in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0))) );color:var(--cngx-breadcrumb-siblings-trigger-hover-color, var(--cngx-color-text, oklch(.2 .01 250)))}.cngx-breadcrumb__siblings-trigger[aria-expanded=true]{background:var( --cngx-breadcrumb-siblings-trigger-open-bg, color-mix(in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent) );color:var(--cngx-breadcrumb-siblings-trigger-open-color, var(--cngx-color-primary, oklch(.66 .19 50)));transform:rotate(180deg)}.cngx-breadcrumb__siblings-menu{margin:0;padding:var(--cngx-breadcrumb-siblings-menu-padding, .25rem 0);list-style:none;min-width:var(--cngx-breadcrumb-siblings-menu-min-width, 11.25rem)}.cngx-breadcrumb__siblings-item{display:flex;align-items:center;padding:var(--cngx-breadcrumb-siblings-item-padding, .45em .55em);border-radius:var(--cngx-breadcrumb-siblings-item-radius, var(--cngx-radius-sm, 4px));white-space:nowrap;color:var(--cngx-breadcrumb-siblings-item-color, var(--cngx-color-text-muted, oklch(.5 .01 250)));cursor:pointer}.cngx-breadcrumb__siblings-item:hover{background:var( --cngx-breadcrumb-siblings-item-hover-bg, color-mix(in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0))) );color:var(--cngx-breadcrumb-siblings-item-hover-color, var(--cngx-color-text, oklch(.2 .01 250)))}.cngx-breadcrumb__siblings-item[aria-current=page]{color:var(--cngx-breadcrumb-siblings-item-current-color, var(--cngx-color-primary, oklch(.66 .19 50)));font-weight:600}.cngx-breadcrumb__siblings-link{color:var(--cngx-breadcrumb-siblings-link-color, inherit);text-decoration:var(--cngx-breadcrumb-siblings-link-decoration, none)}\n"] }]
390
+ }], propDecorators: { siblingsInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "siblings", required: false }] }], triggerLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerLabel", required: false }] }], menuLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuLabel", required: false }] }], itemTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxBreadcrumbSiblingItem), { ...{ read: TemplateRef }, isSignal: true }] }] } });
391
+
392
+ /**
393
+ * DI seam a crumb producer (e.g. the router-sync directive) provides via
394
+ * `useExisting` to feed {@link CngxBreadcrumbBar} without writing its
395
+ * `[items]` input.
396
+ *
397
+ * @category ui/breadcrumb
398
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/breadcrumb-items-source.token.ts
399
+ * @since 0.1.0
400
+ * @relatedTo CngxBreadcrumbBar, CngxBreadcrumbItemsSource
401
+ */
402
+ const CNGX_BREADCRUMB_ITEMS_SOURCE = new InjectionToken('CNGX_BREADCRUMB_ITEMS_SOURCE');
403
+
404
+ /**
405
+ * Breadcrumb bar organism. A thin `<cngx-breadcrumb [items]="...">` shell that
406
+ * renders a trail through the headless `@cngx/common/interactive` trio
407
+ * (`CngxBreadcrumb` / `CngxBreadcrumbItem` / `CngxBreadcrumbSeparator`) - the
408
+ * bar forwards inputs and owns the skin, the trio owns the collapse, terminal
409
+ * marking, and landmark a11y. Everything derives (Pillar 1); nothing here syncs.
410
+ *
411
+ * Two data modes without baking `@angular/router` into the base component:
412
+ * the uncontrolled `[items]` input, and an opt-in controlled source provided
413
+ * through {@link CNGX_BREADCRUMB_ITEMS_SOURCE} (the router-sync directive). The
414
+ * source wins over the input via `computed`, so an external producer augments
415
+ * the trail through a token, never by writing this component's `input()`.
416
+ *
417
+ * ```html
418
+ * <cngx-breadcrumb [items]="crumbs" [maxVisible]="4" skin="pill" />
419
+ * ```
420
+ *
421
+ * @category ui/breadcrumb
422
+ * @docsKind primary
423
+ * @wcag AA
424
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/breadcrumb-bar.component.ts
425
+ * @since 0.1.0
426
+ * @relatedTo CngxBreadcrumb, CngxBreadcrumbItem, CngxBreadcrumbSeparator, CngxBreadcrumbOverflow, CngxBreadcrumbSiblings, CngxBreadcrumbItemAccessory, CngxBreadcrumbOverflowItem, CngxBreadcrumbRouterSync
427
+ * <example-url>http://localhost:4200/#/ui/breadcrumb/basic/explicit-items</example-url>
428
+ */
429
+ class CngxBreadcrumbBar {
430
+ /** Uncontrolled trail. Ignored when a {@link CNGX_BREADCRUMB_ITEMS_SOURCE} is provided. */
431
+ itemsInput = input([], { ...(ngDevMode ? { debugName: "itemsInput" } : /* istanbul ignore next */ {}), alias: 'items' });
432
+ /**
433
+ * Maximum crumbs to show before the middle collapses. Unset = never collapse,
434
+ * unless {@link responsive} is on. An explicit value always wins over the
435
+ * width-derived one (controlled/uncontrolled), resolved by {@link effectiveMaxVisible}.
436
+ */
437
+ maxVisible = input(undefined, ...(ngDevMode ? [{ debugName: "maxVisible" }] : /* istanbul ignore next */ []));
438
+ /**
439
+ * Opt in to width-responsive collapse: the bar derives `maxVisible` from its own
440
+ * width via the {@link CngxResizeObserver} hostDirective and the pure
441
+ * `resolveBreadcrumbTier`. No hand-wired observer or `computed` needed - one
442
+ * attribute makes every skin responsive. Ignored when {@link maxVisible} is set.
443
+ */
444
+ responsive = input(false, { ...(ngDevMode ? { debugName: "responsive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
445
+ /** Width tiers driving the responsive collapse. Defaults to {@link DEFAULT_BREADCRUMB_WIDTH_TIERS}. */
446
+ responsiveTiers = input(DEFAULT_BREADCRUMB_WIDTH_TIERS, ...(ngDevMode ? [{ debugName: "responsiveTiers" }] : /* istanbul ignore next */ []));
447
+ resize = inject(CngxResizeObserver, { host: true });
448
+ cfg = injectBreadcrumbConfig();
449
+ /** Accessible name of the `nav` landmark. Falls back through the config cascade to the EN default. */
450
+ label = input(this.cfg.ariaLabels?.bar ?? 'Breadcrumb', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
451
+ /**
452
+ * Visual skin, reflected onto `[data-skin]`. Cascade `input ?? config.skin ??
453
+ * 'classic'`, resolved by {@link resolvedSkin}. Pure thematic concern -
454
+ * structure, slots, and ARIA are identical across values.
455
+ */
456
+ skin = input(undefined, ...(ngDevMode ? [{ debugName: "skin" }] : /* istanbul ignore next */ []));
457
+ itemsSource = inject(CNGX_BREADCRUMB_ITEMS_SOURCE, { optional: true });
458
+ /**
459
+ * Projected per-crumb accessory template. When present it wins over the
460
+ * declarative `crumb.siblings` auto-render for every crumb (one predictable
461
+ * owner of the accessory area). The `contentChild` is already a
462
+ * `Signal<TemplateRef | undefined>` - bound directly, no pass-through `computed`.
463
+ */
464
+ accessory = contentChild(CngxBreadcrumbItemAccessory, { ...(ngDevMode ? { debugName: "accessory" } : /* istanbul ignore next */ {}), read: TemplateRef });
465
+ /**
466
+ * Projected leading per-crumb icon template. Rendered inside every crumb link
467
+ * (`<a>`) before the label span, fed the `{ crumb, index }` context so the
468
+ * consumer renders the opaque `crumb.icon` with any icon system. Direct
469
+ * `Signal<TemplateRef | undefined>` - bound in the template, no pass-through.
470
+ */
471
+ icon = contentChild(CngxBreadcrumbIcon, { ...(ngDevMode ? { debugName: "icon" } : /* istanbul ignore next */ {}), read: TemplateRef });
472
+ /**
473
+ * Projected overflow-row template, forwarded to the composed
474
+ * {@link CngxBreadcrumbOverflow} (which the consumer cannot reach as
475
+ * `contentChild` through the bar). Lets a consumer customize the collapsed-crumb
476
+ * rows without hand-composing the headless trail.
477
+ */
478
+ overflowRow = contentChild(CngxBreadcrumbOverflowItem, { ...(ngDevMode ? { debugName: "overflowRow" } : /* istanbul ignore next */ {}), read: TemplateRef });
479
+ /** The rendered trail: a provided source wins over the `[items]` input (controlled/uncontrolled). */
480
+ items = createControlledSource(this.itemsSource?.crumbs, this.itemsInput);
481
+ /** Resolved skin (`input ?? config.skin ?? 'classic'`), reflected onto `[data-skin]`. */
482
+ resolvedSkin = computed(() => this.skin() ?? this.cfg.skin ?? 'classic', ...(ngDevMode ? [{ debugName: "resolvedSkin" }] : /* istanbul ignore next */ []));
483
+ /**
484
+ * Width-derived crumb cap. `undefined` until the observer's first measurement
485
+ * ({@link CngxResizeObserver.isReady}), so a narrow mount never mis-collapses on
486
+ * a `width() == 0` first read - the sub-frame full-trail transient settles once
487
+ * the ResizeObserver fires.
488
+ */
489
+ autoMaxVisible = computed(() => this.resize.isReady() ? resolveBreadcrumbTier(this.resize.width(), this.responsiveTiers()) : undefined, ...(ngDevMode ? [{ debugName: "autoMaxVisible" }] : /* istanbul ignore next */ []));
490
+ /**
491
+ * The `maxVisible` forwarded to the inner collapse: explicit `[maxVisible]` wins,
492
+ * else the width-derived value when {@link responsive} is on, else `undefined`
493
+ * (no collapse - the current default behaviour).
494
+ */
495
+ effectiveMaxVisible = computed(() => this.maxVisible() ?? (this.responsive() ? this.autoMaxVisible() : undefined), ...(ngDevMode ? [{ debugName: "effectiveMaxVisible" }] : /* istanbul ignore next */ []));
496
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbBar, deps: [], target: i0.ɵɵFactoryTarget.Component });
497
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxBreadcrumbBar, isStandalone: true, selector: "cngx-breadcrumb", inputs: { itemsInput: { classPropertyName: "itemsInput", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, maxVisible: { classPropertyName: "maxVisible", publicName: "maxVisible", isSignal: true, isRequired: false, transformFunction: null }, responsive: { classPropertyName: "responsive", publicName: "responsive", isSignal: true, isRequired: false, transformFunction: null }, responsiveTiers: { classPropertyName: "responsiveTiers", publicName: "responsiveTiers", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, skin: { classPropertyName: "skin", publicName: "skin", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-skin": "resolvedSkin()" }, classAttribute: "cngx-breadcrumb" }, queries: [{ propertyName: "accessory", first: true, predicate: CngxBreadcrumbItemAccessory, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "icon", first: true, predicate: CngxBreadcrumbIcon, descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "overflowRow", first: true, predicate: CngxBreadcrumbOverflowItem, descendants: true, read: TemplateRef, isSignal: true }], exportAs: ["cngxBreadcrumbBar"], hostDirectives: [{ directive: i1.CngxResizeObserver }], ngImport: i0, template: "<nav cngxBreadcrumb [maxVisible]=\"effectiveMaxVisible()\" [label]=\"label()\" #bc=\"cngxBreadcrumb\">\n <ol class=\"cngx-breadcrumb__list\">\n @for (crumb of items(); track crumb.href ?? crumb.label; let last = $last; let first = $first) {\n <li class=\"cngx-breadcrumb__crumb\" [style.display]=\"bc.isCollapsed(crumbRef) ? 'none' : null\">\n <a\n cngxBreadcrumbItem\n #crumbRef=\"cngxBreadcrumbItem\"\n class=\"cngx-breadcrumb__link\"\n [cngxBreadcrumbItemLabel]=\"crumb.label\"\n [attr.href]=\"last ? null : (crumb.href ?? null)\"\n [attr.data-label]=\"crumb.label\"\n >\n @if (icon(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: crumb, crumb: crumb, index: $index }\"\n />\n }\n <span class=\"cngx-breadcrumb__label\">{{ crumb.label }}</span>\n </a>\n @if (accessory(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: crumb, crumb: crumb, index: $index }\"\n />\n } @else if (crumb.siblings; as sibs) {\n @if (sibs.length) {\n <cngx-breadcrumb-siblings [siblings]=\"sibs\" />\n }\n }\n </li>\n @if (!last) {\n <li\n cngxBreadcrumbSeparator\n class=\"cngx-breadcrumb__separator\"\n [style.display]=\"bc.isCollapsed(crumbRef) ? 'none' : null\"\n >\n /\n </li>\n }\n @if (first && bc.hasCollapsed()) {\n <li class=\"cngx-breadcrumb__overflow\">\n <cngx-breadcrumb-overflow [itemTemplate]=\"overflowRow()\" />\n </li>\n <li cngxBreadcrumbSeparator class=\"cngx-breadcrumb__separator\">/</li>\n }\n }\n </ol>\n</nav>\n", styles: [".cngx-breadcrumb{display:block;font:inherit}.cngx-breadcrumb__list{display:flex;flex-wrap:wrap;align-items:center;gap:var(--cngx-breadcrumb-gap, .5rem);margin:0;padding:0;list-style:none}.cngx-breadcrumb__crumb{display:inline-flex;align-items:center}.cngx-breadcrumb__link{color:var(--cngx-breadcrumb-link-color, inherit);text-decoration:var(--cngx-breadcrumb-link-decoration, underline)}.cngx-breadcrumb__link[aria-current=page]{color:var(--cngx-breadcrumb-current-color, inherit);font-weight:var(--cngx-breadcrumb-current-weight, 600);text-decoration:none}.cngx-breadcrumb__separator{color:var(--cngx-breadcrumb-separator-color, inherit);-webkit-user-select:none;user-select:none}@property --cngx-breadcrumb-plain-link-decoration{syntax: \"*\"; inherits: true; initial-value: none;}@property --cngx-breadcrumb-contained-padding{syntax: \"*\"; inherits: true; initial-value: .375rem .75rem;}@property --cngx-breadcrumb-contained-bg{syntax: \"<color>\"; inherits: true; initial-value: #f4f4f5;}@property --cngx-breadcrumb-contained-border{syntax: \"*\"; inherits: true; initial-value: 1px solid;}@property --cngx-breadcrumb-contained-border-color{syntax: \"<color>\"; inherits: true; initial-value: #e4e4e7;}@property --cngx-breadcrumb-contained-radius{syntax: \"*\"; inherits: true; initial-value: .375rem;}@property --cngx-breadcrumb-pill-track-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-pill-track-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-breadcrumb-pill-radius{syntax: \"*\"; inherits: true; initial-value: 999px;}@property --cngx-breadcrumb-pill-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-pill-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.95 .03 50);}@property --cngx-breadcrumb-pill-hover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-pill-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-pill-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-pill-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@scope(.cngx-breadcrumb[data-skin=plain]){:scope{--cngx-breadcrumb-link-decoration: var(--cngx-breadcrumb-plain-link-decoration, none)}}@scope(.cngx-breadcrumb[data-skin=contained]){:scope{--cngx-breadcrumb-contained-padding: var(--cngx-space-xs) var(--cngx-space-sm);--cngx-breadcrumb-contained-bg: var(--cngx-color-surface, #f4f4f5);--cngx-breadcrumb-contained-border-color: var(--cngx-color-border, #e4e4e7)}.cngx-breadcrumb__list{padding:var(--cngx-breadcrumb-contained-padding, .375rem .75rem);background:var(--cngx-breadcrumb-contained-bg);border:var(--cngx-breadcrumb-contained-border, 1px solid) var(--cngx-breadcrumb-contained-border-color);border-radius:var(--cngx-breadcrumb-contained-radius, .375rem)}}@scope(.cngx-breadcrumb[data-skin=pill]){:scope{--cngx-breadcrumb-pill-track-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-pill-track-border: var(--cngx-color-border, oklch(.88 .005 250));--cngx-breadcrumb-pill-radius: var(--cngx-radius-pill, 999px);--cngx-breadcrumb-pill-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-pill-hover-bg: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent );--cngx-breadcrumb-pill-hover-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-pill-active-bg: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-pill-active-color: var(--cngx-color-on-primary, oklch(1 0 0));--cngx-breadcrumb-pill-font-size: var(--cngx-font-size-sm, .875rem)}.cngx-breadcrumb__list{gap:0;padding:4px;background:var(--cngx-breadcrumb-pill-track-bg);border:1px solid var(--cngx-breadcrumb-pill-track-border);border-radius:var(--cngx-breadcrumb-pill-radius)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;padding:.38em .9em;border-radius:var(--cngx-breadcrumb-pill-radius);font-size:var(--cngx-breadcrumb-pill-font-size);font-weight:560;text-decoration:none;color:var(--cngx-breadcrumb-pill-color)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-pill-hover-bg);color:var(--cngx-breadcrumb-pill-hover-color)}.cngx-breadcrumb__link[aria-current=page]{background:var(--cngx-breadcrumb-pill-active-bg);color:var(--cngx-breadcrumb-pill-active-color);box-shadow:var(--cngx-shadow-sm, 0 1px 2px oklch(0 0 0 / .08))}.cngx-breadcrumb__separator{display:none}}@property --cngx-breadcrumb-ribbon-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-ribbon-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-ribbon-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.95 .03 50);}@property --cngx-breadcrumb-ribbon-hover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-ribbon-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-ribbon-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-ribbon-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@property --cngx-breadcrumb-ribbon-radius{syntax: \"*\"; inherits: true; initial-value: 4px;}@scope(.cngx-breadcrumb[data-skin=ribbon]){:scope{--cngx-breadcrumb-ribbon-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-ribbon-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-ribbon-hover-bg: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent );--cngx-breadcrumb-ribbon-hover-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-ribbon-active-bg: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-ribbon-active-color: var(--cngx-color-on-primary, oklch(1 0 0));--cngx-breadcrumb-ribbon-font-size: var(--cngx-font-size-sm, .875rem);--cngx-breadcrumb-ribbon-radius: var(--cngx-radius-sm, 4px)}.cngx-breadcrumb__list{gap:0}.cngx-breadcrumb__crumb{position:relative}.cngx-breadcrumb__link{display:inline-flex;align-items:center;padding:.5em 1.1em .5em 1.4em;margin-left:-10px;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%,12px 50%);font-size:var(--cngx-breadcrumb-ribbon-font-size);font-weight:560;text-decoration:none;background:var(--cngx-breadcrumb-ribbon-bg);color:var(--cngx-breadcrumb-ribbon-color)}.cngx-breadcrumb__crumb:first-child .cngx-breadcrumb__link{padding-left:1em;margin-left:0;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%);border-radius:var(--cngx-breadcrumb-ribbon-radius) 0 0 var(--cngx-breadcrumb-ribbon-radius)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-ribbon-hover-bg);color:var(--cngx-breadcrumb-ribbon-hover-color)}.cngx-breadcrumb__link[aria-current=page]{background:var(--cngx-breadcrumb-ribbon-active-bg);color:var(--cngx-breadcrumb-ribbon-active-color)}.cngx-breadcrumb__separator{display:none}}@property --cngx-breadcrumb-editorial-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-editorial-text{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-editorial-font-size{syntax: \"*\"; inherits: true; initial-value: 1rem;}@scope(.cngx-breadcrumb[data-skin=editorial]){:scope{--cngx-breadcrumb-editorial-accent: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-editorial-text: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-editorial-font-size: var(--cngx-font-size-md, 1rem)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;padding:.2em .1em .25em;font-size:var(--cngx-breadcrumb-editorial-font-size);text-decoration:none;color:var(--cngx-breadcrumb-editorial-text);background-image:linear-gradient(90deg,var(--cngx-breadcrumb-editorial-accent),color-mix(in oklch,var(--cngx-breadcrumb-editorial-accent) 40%,var(--cngx-breadcrumb-editorial-text)));background-repeat:no-repeat;background-position:0 100%;background-size:0% 2px;transition:background-size .18s ease,color .18s ease}.cngx-breadcrumb__link:hover{background-size:100% 2px;color:var(--cngx-breadcrumb-editorial-text)}.cngx-breadcrumb__link[aria-current=page]{background-image:linear-gradient(90deg,var(--cngx-breadcrumb-editorial-accent),color-mix(in oklch,var(--cngx-breadcrumb-editorial-accent) 50%,var(--cngx-breadcrumb-editorial-text)));background-position:0 0;background-size:100% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:700}.cngx-breadcrumb__separator{font-size:0}.cngx-breadcrumb__separator:after{content:\"\\b7\";font-size:var(--cngx-breadcrumb-editorial-font-size)}}@property --cngx-breadcrumb-header-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-header-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-header-text{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-header-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@property --cngx-breadcrumb-header-leaf-font-size{syntax: \"*\"; inherits: true; initial-value: 1.125rem;}@property --cngx-breadcrumb-header-radius{syntax: \"*\"; inherits: true; initial-value: 4px;}@scope(.cngx-breadcrumb[data-skin=header]){:scope{width:100%;--cngx-breadcrumb-header-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-header-hover-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-header-text: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-header-font-size: var(--cngx-font-size-sm, .875rem);--cngx-breadcrumb-header-leaf-font-size: var(--cngx-font-size-lg, 1.125rem);--cngx-breadcrumb-header-radius: var(--cngx-radius-sm, 4px)}.cngx-breadcrumb__list{row-gap:var(--cngx-space-sm, .5rem)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;padding:.2em .35em;border-radius:var(--cngx-breadcrumb-header-radius);font-size:var(--cngx-breadcrumb-header-font-size);font-weight:550;text-decoration:none;color:var(--cngx-breadcrumb-header-color)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-header-hover-bg);color:var(--cngx-breadcrumb-header-text)}.cngx-breadcrumb__crumb:has(.cngx-breadcrumb__link[aria-current=page]){flex-basis:100%}.cngx-breadcrumb__link[aria-current=page]{font-size:var(--cngx-breadcrumb-header-leaf-font-size);font-weight:700;letter-spacing:-.01em;line-height:1.2;white-space:normal;color:var(--cngx-breadcrumb-header-text)}.cngx-breadcrumb__separator{font-size:0}.cngx-breadcrumb__separator:after{content:\"\\203a\";font-size:var(--cngx-breadcrumb-header-font-size)}.cngx-breadcrumb__separator:has(+.cngx-breadcrumb__crumb .cngx-breadcrumb__link[aria-current=page]){display:none}}@property --cngx-breadcrumb-metro-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-metro-surface{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-metro-hover-dot{syntax: \"<color>\"; inherits: true; initial-value: oklch(.95 .03 50);}@property --cngx-breadcrumb-metro-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-metro-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-metro-rail{syntax: \"<color>\"; inherits: true; initial-value: oklch(.8 .06 50);}@property --cngx-breadcrumb-metro-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@scope(.cngx-breadcrumb[data-skin=metro]){:scope{--cngx-breadcrumb-metro-accent: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-metro-surface: var(--cngx-color-surface, oklch(1 0 0));--cngx-breadcrumb-metro-hover-dot: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent );--cngx-breadcrumb-metro-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-metro-active-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-metro-rail: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 45%, var(--cngx-color-border, oklch(.88 .005 250)) );--cngx-breadcrumb-metro-font-size: var(--cngx-font-size-sm, .875rem)}.cngx-breadcrumb__list{gap:0}.cngx-breadcrumb__link{display:inline-flex;align-items:center;gap:.5em;padding:.3em .25em;font-size:var(--cngx-breadcrumb-metro-font-size);font-weight:560;text-decoration:none;color:var(--cngx-breadcrumb-metro-color)}.cngx-breadcrumb__link:before{content:\"\";flex:none;width:11px;height:11px;border-radius:50%;border:2.5px solid var(--cngx-breadcrumb-metro-accent);background:var(--cngx-breadcrumb-metro-surface);transition:background .18s ease,transform .18s ease}.cngx-breadcrumb__link:hover{color:var(--cngx-breadcrumb-metro-active-color)}.cngx-breadcrumb__link:hover:before{background:var(--cngx-breadcrumb-metro-hover-dot);transform:scale(1.15)}.cngx-breadcrumb__link[aria-current=page]{color:var(--cngx-breadcrumb-metro-active-color)}.cngx-breadcrumb__link[aria-current=page]:before{background:var(--cngx-breadcrumb-metro-accent);box-shadow:0 0 0 3px color-mix(in oklch,var(--cngx-breadcrumb-metro-accent) 22%,transparent)}.cngx-breadcrumb__separator{width:30px;height:3px;margin-inline:3px;border-radius:2px;font-size:0;background:var(--cngx-breadcrumb-metro-rail)}}@property --cngx-breadcrumb-toolbar-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-toolbar-border-strong{syntax: \"<color>\"; inherits: true; initial-value: oklch(.78 .01 250);}@property --cngx-breadcrumb-toolbar-cell-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-breadcrumb-toolbar-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-toolbar-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-toolbar-hover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-toolbar-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.95 .03 50);}@property --cngx-breadcrumb-toolbar-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-toolbar-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@property --cngx-breadcrumb-toolbar-radius{syntax: \"*\"; inherits: true; initial-value: 4px;}@scope(.cngx-breadcrumb[data-skin=toolbar]){:scope{width:100%;--cngx-breadcrumb-toolbar-bg: var(--cngx-color-surface, oklch(1 0 0));--cngx-breadcrumb-toolbar-border-strong: color-mix( in oklch, var(--cngx-color-border, oklch(.88 .005 250)) 50%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-breadcrumb-toolbar-cell-border: var(--cngx-color-border, oklch(.88 .005 250));--cngx-breadcrumb-toolbar-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-toolbar-hover-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-toolbar-hover-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-toolbar-active-bg: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent );--cngx-breadcrumb-toolbar-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-toolbar-font-size: var(--cngx-font-size-sm, .875rem);--cngx-breadcrumb-toolbar-radius: var(--cngx-radius-sm, 4px)}.cngx-breadcrumb__list{width:100%;gap:0;flex-wrap:nowrap;overflow:hidden;background:var(--cngx-breadcrumb-toolbar-bg);border:1px solid var(--cngx-breadcrumb-toolbar-border-strong);border-radius:var(--cngx-breadcrumb-toolbar-radius)}.cngx-breadcrumb__crumb{align-self:stretch}.cngx-breadcrumb__link{display:inline-flex;align-items:center;padding:.55em .95em;font-size:var(--cngx-breadcrumb-toolbar-font-size);font-weight:550;text-decoration:none;border-right:1px solid var(--cngx-breadcrumb-toolbar-cell-border);border-radius:0;color:var(--cngx-breadcrumb-toolbar-color)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-toolbar-hover-bg);color:var(--cngx-breadcrumb-toolbar-hover-color)}.cngx-breadcrumb__link[aria-current=page]{background:var(--cngx-breadcrumb-toolbar-active-bg);color:var(--cngx-breadcrumb-toolbar-active-color);font-weight:640;border-right:none}.cngx-breadcrumb__separator{display:none}}@property --cngx-breadcrumb-chips-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-chips-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-breadcrumb-chips-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-chips-hover-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.78 .01 250);}@property --cngx-breadcrumb-chips-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-chips-hover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-chips-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.95 .03 50);}@property --cngx-breadcrumb-chips-active-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.82 .08 50);}@property --cngx-breadcrumb-chips-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-chips-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@property --cngx-breadcrumb-chips-radius{syntax: \"*\"; inherits: true; initial-value: 999px;}@scope(.cngx-breadcrumb[data-skin=chips]){:scope{--cngx-breadcrumb-chips-bg: var(--cngx-color-surface, oklch(1 0 0));--cngx-breadcrumb-chips-border: var(--cngx-color-border, oklch(.88 .005 250));--cngx-breadcrumb-chips-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-chips-hover-border: color-mix( in oklch, var(--cngx-color-border, oklch(.88 .005 250)) 50%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-breadcrumb-chips-hover-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-chips-hover-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-chips-active-bg: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent );--cngx-breadcrumb-chips-active-border: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 35%, var(--cngx-color-border, oklch(.88 .005 250)) );--cngx-breadcrumb-chips-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-chips-font-size: var(--cngx-font-size-sm, .875rem);--cngx-breadcrumb-chips-radius: var(--cngx-radius-pill, 999px)}.cngx-breadcrumb__list{gap:var(--cngx-space-sm, .5rem)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;padding:.32em .8em;font-size:var(--cngx-breadcrumb-chips-font-size);font-weight:550;text-decoration:none;border:1px solid var(--cngx-breadcrumb-chips-border);border-radius:var(--cngx-breadcrumb-chips-radius);background:var(--cngx-breadcrumb-chips-bg);color:var(--cngx-breadcrumb-chips-color)}.cngx-breadcrumb__link:hover{border-color:var(--cngx-breadcrumb-chips-hover-border);background:var(--cngx-breadcrumb-chips-hover-bg);color:var(--cngx-breadcrumb-chips-hover-color)}.cngx-breadcrumb__link[aria-current=page]{background:var(--cngx-breadcrumb-chips-active-bg);border-color:var(--cngx-breadcrumb-chips-active-border);color:var(--cngx-breadcrumb-chips-active-color);font-weight:640}.cngx-breadcrumb__separator{font-size:0}.cngx-breadcrumb__separator:after{content:\"\\203a\";font-size:var(--cngx-breadcrumb-chips-font-size)}}@property --cngx-breadcrumb-path-track-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-path-track-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-breadcrumb-path-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-path-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-path-hover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-path-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-path-sep-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .01 250);}@property --cngx-breadcrumb-path-radius{syntax: \"*\"; inherits: true; initial-value: 8px;}@property --cngx-breadcrumb-path-link-radius{syntax: \"*\"; inherits: true; initial-value: 4px;}@property --cngx-breadcrumb-path-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@scope(.cngx-breadcrumb[data-skin=path]){:scope{font-family:var(--cngx-font-family-mono, ui-monospace, \"SFMono-Regular\", \"Menlo\", monospace);--cngx-breadcrumb-path-track-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-path-track-border: var(--cngx-color-border, oklch(.88 .005 250));--cngx-breadcrumb-path-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-path-hover-bg: var(--cngx-color-surface, oklch(1 0 0));--cngx-breadcrumb-path-hover-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-path-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-path-sep-color: color-mix( in oklch, var(--cngx-color-text-muted, oklch(.5 .01 250)) 55%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-path-radius: var(--cngx-radius-md, 8px);--cngx-breadcrumb-path-link-radius: var(--cngx-radius-sm, 4px);--cngx-breadcrumb-path-font-size: var(--cngx-font-size-sm, .875rem)}.cngx-breadcrumb__list{gap:var(--cngx-space-xs, .25rem);padding:.5em .7em;background:var(--cngx-breadcrumb-path-track-bg);border:1px solid var(--cngx-breadcrumb-path-track-border);border-radius:var(--cngx-breadcrumb-path-radius)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;gap:.4em;padding:.2em .45em;font-size:var(--cngx-breadcrumb-path-font-size);text-decoration:none;border-radius:var(--cngx-breadcrumb-path-link-radius);color:var(--cngx-breadcrumb-path-color)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-path-hover-bg);color:var(--cngx-breadcrumb-path-hover-color)}.cngx-breadcrumb__link[aria-current=page]{color:var(--cngx-breadcrumb-path-active-color)}.cngx-breadcrumb__separator{color:var(--cngx-breadcrumb-path-sep-color)}}@property --cngx-breadcrumb-iconlabel-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-iconlabel-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-iconlabel-hover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-iconlabel-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.95 .03 50);}@property --cngx-breadcrumb-iconlabel-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-iconlabel-radius{syntax: \"*\"; inherits: true; initial-value: 999px;}@property --cngx-breadcrumb-iconlabel-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@scope(.cngx-breadcrumb[data-skin=iconlabel]){:scope{--cngx-breadcrumb-iconlabel-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-iconlabel-hover-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-iconlabel-hover-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-iconlabel-active-bg: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent );--cngx-breadcrumb-iconlabel-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-iconlabel-radius: var(--cngx-radius-pill, 999px);--cngx-breadcrumb-iconlabel-font-size: var(--cngx-font-size-sm, .875rem)}.cngx-breadcrumb__crumb{color:var(--cngx-breadcrumb-iconlabel-color)}.cngx-breadcrumb__crumb:has(.cngx-breadcrumb__link[aria-current=page]){color:var(--cngx-breadcrumb-iconlabel-active-color)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;gap:.4em;padding:.4em .7em;border-radius:var(--cngx-breadcrumb-iconlabel-radius);font-size:var(--cngx-breadcrumb-iconlabel-font-size);font-weight:550;text-decoration:none;color:var(--cngx-breadcrumb-iconlabel-color)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-iconlabel-hover-bg);color:var(--cngx-breadcrumb-iconlabel-hover-color)}.cngx-breadcrumb__link[aria-current=page]{background:var(--cngx-breadcrumb-iconlabel-active-bg);color:var(--cngx-breadcrumb-iconlabel-active-color)}.cngx-breadcrumb__separator{font-size:0}.cngx-breadcrumb__separator:after{content:\"\\203a\";font-size:var(--cngx-breadcrumb-iconlabel-font-size)}}@property --cngx-breadcrumb-icononly-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-icononly-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-icononly-hover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-icononly-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-icononly-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-icononly-tip-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-icononly-tip-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-icononly-radius{syntax: \"*\"; inherits: true; initial-value: 4px;}@property --cngx-breadcrumb-icononly-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@scope(.cngx-breadcrumb[data-skin=icononly]){:scope{--cngx-breadcrumb-icononly-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-icononly-hover-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-icononly-hover-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-icononly-active-bg: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-icononly-active-color: var(--cngx-color-on-primary, oklch(1 0 0));--cngx-breadcrumb-icononly-tip-bg: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-icononly-tip-color: var(--cngx-color-surface, oklch(1 0 0));--cngx-breadcrumb-icononly-radius: var(--cngx-radius-sm, 4px);--cngx-breadcrumb-icononly-font-size: var(--cngx-font-size-sm, .875rem)}.cngx-breadcrumb__list{gap:var(--cngx-space-xs, .25rem)}.cngx-breadcrumb__link{position:relative;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:var(--cngx-breadcrumb-icononly-radius);text-decoration:none;color:var(--cngx-breadcrumb-icononly-color)}.cngx-breadcrumb__label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-icononly-hover-bg);color:var(--cngx-breadcrumb-icononly-hover-color)}.cngx-breadcrumb__link[aria-current=page]{background:var(--cngx-breadcrumb-icononly-active-bg);color:var(--cngx-breadcrumb-icononly-active-color)}.cngx-breadcrumb__link:after{content:attr(data-label) / \"\";position:absolute;bottom:calc(100% + 8px);left:50%;translate:-50% 0;padding:.3em .6em;border-radius:var(--cngx-breadcrumb-icononly-radius);background:var(--cngx-breadcrumb-icononly-tip-bg);color:var(--cngx-breadcrumb-icononly-tip-color);font-size:.75rem;font-weight:600;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .18s ease;box-shadow:var(--cngx-shadow-md, 0 4px 12px oklch(0 0 0 / .15));z-index:30}.cngx-breadcrumb__link:hover:after,.cngx-breadcrumb__link:focus-visible:after{opacity:1}.cngx-breadcrumb__separator{font-size:0}.cngx-breadcrumb__separator:after{content:\"\\203a\";font-size:var(--cngx-breadcrumb-icononly-font-size)}}@property --cngx-breadcrumb-shell-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-shell-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-shell-text{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-shell-mark-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-shell-mark-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-shell-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@property --cngx-breadcrumb-shell-radius{syntax: \"*\"; inherits: true; initial-value: 4px;}@scope(.cngx-breadcrumb[data-skin=shell]){:scope{--cngx-breadcrumb-shell-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-shell-hover-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-shell-text: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-shell-mark-bg: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-shell-mark-color: var(--cngx-color-on-primary, oklch(1 0 0));--cngx-breadcrumb-shell-font-size: var(--cngx-font-size-sm, .875rem);--cngx-breadcrumb-shell-radius: var(--cngx-radius-sm, 4px)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;gap:.5em;padding:.3em .5em;border-radius:var(--cngx-breadcrumb-shell-radius);font-size:var(--cngx-breadcrumb-shell-font-size);font-weight:550;text-decoration:none;color:var(--cngx-breadcrumb-shell-color)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-shell-hover-bg);color:var(--cngx-breadcrumb-shell-text)}.cngx-breadcrumb__link[aria-current=page]{color:var(--cngx-breadcrumb-shell-text);font-weight:660}.cngx-breadcrumb__crumb:first-child .cngx-breadcrumb__link{font-weight:650;color:var(--cngx-breadcrumb-shell-text)}.product-mark{flex:none;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:var(--cngx-breadcrumb-shell-mark-bg);color:var(--cngx-breadcrumb-shell-mark-color);font-size:.6875rem;font-weight:700;letter-spacing:.02em}.cngx-breadcrumb__separator{font-size:0}.cngx-breadcrumb__separator:after{content:\"\\203a\";font-size:var(--cngx-breadcrumb-shell-font-size)}}@property --cngx-breadcrumb-record-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-record-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-record-text{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-record-chip-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-record-chip-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.78 .01 250);}@property --cngx-breadcrumb-record-status{syntax: \"<color>\"; inherits: true; initial-value: oklch(.7 .17 145);}@property --cngx-breadcrumb-record-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@property --cngx-breadcrumb-record-radius{syntax: \"*\"; inherits: true; initial-value: 4px;}@property --cngx-breadcrumb-record-chip-radius{syntax: \"*\"; inherits: true; initial-value: 999px;}@scope(.cngx-breadcrumb[data-skin=record]){:scope{--cngx-breadcrumb-record-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-record-hover-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-record-text: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-record-chip-bg: var(--cngx-color-surface, oklch(1 0 0));--cngx-breadcrumb-record-chip-border: color-mix( in oklch, var(--cngx-color-border, oklch(.88 .005 250)) 50%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-breadcrumb-record-status: var(--cngx-color-success, oklch(.7 .17 145));--cngx-breadcrumb-record-font-size: var(--cngx-font-size-sm, .875rem);--cngx-breadcrumb-record-radius: var(--cngx-radius-sm, 4px);--cngx-breadcrumb-record-chip-radius: var(--cngx-radius-pill, 999px)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;gap:.4em;padding:.3em .45em;border-radius:var(--cngx-breadcrumb-record-radius);font-size:var(--cngx-breadcrumb-record-font-size);text-decoration:none;color:var(--cngx-breadcrumb-record-color)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-record-hover-bg);color:var(--cngx-breadcrumb-record-text)}.cngx-breadcrumb__link[aria-current=page]{background:transparent;color:var(--cngx-breadcrumb-record-text);font-weight:620}.cngx-breadcrumb__crumb:has(.cngx-breadcrumb__link[aria-current=page]){gap:.55em;padding:.32em .8em;background:var(--cngx-breadcrumb-record-chip-bg);border:1px solid var(--cngx-breadcrumb-record-chip-border);border-radius:var(--cngx-breadcrumb-record-chip-radius);box-shadow:var(--cngx-shadow-sm, 0 1px 2px oklch(0 0 0 / .08))}.rec-id{font-family:var(--cngx-font-family-mono, ui-monospace, \"SFMono-Regular\", \"Menlo\", monospace);font-size:.95em}.status-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--cngx-breadcrumb-record-status);box-shadow:0 0 0 3px color-mix(in oklch,var(--cngx-breadcrumb-record-status) 20%,transparent)}.status-label{font-size:.65625rem;font-weight:680;color:var(--cngx-breadcrumb-record-status);text-transform:uppercase;letter-spacing:.06em}.cngx-breadcrumb__separator{font-size:0}.cngx-breadcrumb__separator:after{content:\"\\203a\";font-size:var(--cngx-breadcrumb-record-font-size)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CngxBreadcrumb, selector: "[cngxBreadcrumb]", inputs: ["label", "maxVisible"], exportAs: ["cngxBreadcrumb"] }, { kind: "directive", type: CngxBreadcrumbItem, selector: "[cngxBreadcrumbItem]", inputs: ["cngxBreadcrumbItemLabel"], exportAs: ["cngxBreadcrumbItem"] }, { kind: "directive", type: CngxBreadcrumbSeparator, selector: "[cngxBreadcrumbSeparator]", exportAs: ["cngxBreadcrumbSeparator"] }, { kind: "component", type: CngxBreadcrumbOverflow, selector: "cngx-breadcrumb-overflow", inputs: ["triggerLabel", "menuLabel", "itemTemplate"], exportAs: ["cngxBreadcrumbOverflow"] }, { kind: "component", type: CngxBreadcrumbSiblings, selector: "cngx-breadcrumb-siblings", inputs: ["siblings", "triggerLabel", "menuLabel"], exportAs: ["cngxBreadcrumbSiblings"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
498
+ }
499
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbBar, decorators: [{
500
+ type: Component,
501
+ args: [{ selector: 'cngx-breadcrumb', exportAs: 'cngxBreadcrumbBar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [
502
+ NgTemplateOutlet,
503
+ CngxBreadcrumb,
504
+ CngxBreadcrumbItem,
505
+ CngxBreadcrumbSeparator,
506
+ CngxBreadcrumbOverflow,
507
+ CngxBreadcrumbSiblings,
508
+ ], hostDirectives: [CngxResizeObserver], host: {
509
+ class: 'cngx-breadcrumb',
510
+ '[attr.data-skin]': 'resolvedSkin()',
511
+ }, template: "<nav cngxBreadcrumb [maxVisible]=\"effectiveMaxVisible()\" [label]=\"label()\" #bc=\"cngxBreadcrumb\">\n <ol class=\"cngx-breadcrumb__list\">\n @for (crumb of items(); track crumb.href ?? crumb.label; let last = $last; let first = $first) {\n <li class=\"cngx-breadcrumb__crumb\" [style.display]=\"bc.isCollapsed(crumbRef) ? 'none' : null\">\n <a\n cngxBreadcrumbItem\n #crumbRef=\"cngxBreadcrumbItem\"\n class=\"cngx-breadcrumb__link\"\n [cngxBreadcrumbItemLabel]=\"crumb.label\"\n [attr.href]=\"last ? null : (crumb.href ?? null)\"\n [attr.data-label]=\"crumb.label\"\n >\n @if (icon(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: crumb, crumb: crumb, index: $index }\"\n />\n }\n <span class=\"cngx-breadcrumb__label\">{{ crumb.label }}</span>\n </a>\n @if (accessory(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl; context: { $implicit: crumb, crumb: crumb, index: $index }\"\n />\n } @else if (crumb.siblings; as sibs) {\n @if (sibs.length) {\n <cngx-breadcrumb-siblings [siblings]=\"sibs\" />\n }\n }\n </li>\n @if (!last) {\n <li\n cngxBreadcrumbSeparator\n class=\"cngx-breadcrumb__separator\"\n [style.display]=\"bc.isCollapsed(crumbRef) ? 'none' : null\"\n >\n /\n </li>\n }\n @if (first && bc.hasCollapsed()) {\n <li class=\"cngx-breadcrumb__overflow\">\n <cngx-breadcrumb-overflow [itemTemplate]=\"overflowRow()\" />\n </li>\n <li cngxBreadcrumbSeparator class=\"cngx-breadcrumb__separator\">/</li>\n }\n }\n </ol>\n</nav>\n", styles: [".cngx-breadcrumb{display:block;font:inherit}.cngx-breadcrumb__list{display:flex;flex-wrap:wrap;align-items:center;gap:var(--cngx-breadcrumb-gap, .5rem);margin:0;padding:0;list-style:none}.cngx-breadcrumb__crumb{display:inline-flex;align-items:center}.cngx-breadcrumb__link{color:var(--cngx-breadcrumb-link-color, inherit);text-decoration:var(--cngx-breadcrumb-link-decoration, underline)}.cngx-breadcrumb__link[aria-current=page]{color:var(--cngx-breadcrumb-current-color, inherit);font-weight:var(--cngx-breadcrumb-current-weight, 600);text-decoration:none}.cngx-breadcrumb__separator{color:var(--cngx-breadcrumb-separator-color, inherit);-webkit-user-select:none;user-select:none}@property --cngx-breadcrumb-plain-link-decoration{syntax: \"*\"; inherits: true; initial-value: none;}@property --cngx-breadcrumb-contained-padding{syntax: \"*\"; inherits: true; initial-value: .375rem .75rem;}@property --cngx-breadcrumb-contained-bg{syntax: \"<color>\"; inherits: true; initial-value: #f4f4f5;}@property --cngx-breadcrumb-contained-border{syntax: \"*\"; inherits: true; initial-value: 1px solid;}@property --cngx-breadcrumb-contained-border-color{syntax: \"<color>\"; inherits: true; initial-value: #e4e4e7;}@property --cngx-breadcrumb-contained-radius{syntax: \"*\"; inherits: true; initial-value: .375rem;}@property --cngx-breadcrumb-pill-track-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-pill-track-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-breadcrumb-pill-radius{syntax: \"*\"; inherits: true; initial-value: 999px;}@property --cngx-breadcrumb-pill-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-pill-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.95 .03 50);}@property --cngx-breadcrumb-pill-hover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-pill-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-pill-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-pill-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@scope(.cngx-breadcrumb[data-skin=plain]){:scope{--cngx-breadcrumb-link-decoration: var(--cngx-breadcrumb-plain-link-decoration, none)}}@scope(.cngx-breadcrumb[data-skin=contained]){:scope{--cngx-breadcrumb-contained-padding: var(--cngx-space-xs) var(--cngx-space-sm);--cngx-breadcrumb-contained-bg: var(--cngx-color-surface, #f4f4f5);--cngx-breadcrumb-contained-border-color: var(--cngx-color-border, #e4e4e7)}.cngx-breadcrumb__list{padding:var(--cngx-breadcrumb-contained-padding, .375rem .75rem);background:var(--cngx-breadcrumb-contained-bg);border:var(--cngx-breadcrumb-contained-border, 1px solid) var(--cngx-breadcrumb-contained-border-color);border-radius:var(--cngx-breadcrumb-contained-radius, .375rem)}}@scope(.cngx-breadcrumb[data-skin=pill]){:scope{--cngx-breadcrumb-pill-track-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-pill-track-border: var(--cngx-color-border, oklch(.88 .005 250));--cngx-breadcrumb-pill-radius: var(--cngx-radius-pill, 999px);--cngx-breadcrumb-pill-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-pill-hover-bg: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent );--cngx-breadcrumb-pill-hover-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-pill-active-bg: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-pill-active-color: var(--cngx-color-on-primary, oklch(1 0 0));--cngx-breadcrumb-pill-font-size: var(--cngx-font-size-sm, .875rem)}.cngx-breadcrumb__list{gap:0;padding:4px;background:var(--cngx-breadcrumb-pill-track-bg);border:1px solid var(--cngx-breadcrumb-pill-track-border);border-radius:var(--cngx-breadcrumb-pill-radius)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;padding:.38em .9em;border-radius:var(--cngx-breadcrumb-pill-radius);font-size:var(--cngx-breadcrumb-pill-font-size);font-weight:560;text-decoration:none;color:var(--cngx-breadcrumb-pill-color)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-pill-hover-bg);color:var(--cngx-breadcrumb-pill-hover-color)}.cngx-breadcrumb__link[aria-current=page]{background:var(--cngx-breadcrumb-pill-active-bg);color:var(--cngx-breadcrumb-pill-active-color);box-shadow:var(--cngx-shadow-sm, 0 1px 2px oklch(0 0 0 / .08))}.cngx-breadcrumb__separator{display:none}}@property --cngx-breadcrumb-ribbon-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-ribbon-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-ribbon-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.95 .03 50);}@property --cngx-breadcrumb-ribbon-hover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-ribbon-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-ribbon-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-ribbon-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@property --cngx-breadcrumb-ribbon-radius{syntax: \"*\"; inherits: true; initial-value: 4px;}@scope(.cngx-breadcrumb[data-skin=ribbon]){:scope{--cngx-breadcrumb-ribbon-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-ribbon-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-ribbon-hover-bg: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent );--cngx-breadcrumb-ribbon-hover-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-ribbon-active-bg: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-ribbon-active-color: var(--cngx-color-on-primary, oklch(1 0 0));--cngx-breadcrumb-ribbon-font-size: var(--cngx-font-size-sm, .875rem);--cngx-breadcrumb-ribbon-radius: var(--cngx-radius-sm, 4px)}.cngx-breadcrumb__list{gap:0}.cngx-breadcrumb__crumb{position:relative}.cngx-breadcrumb__link{display:inline-flex;align-items:center;padding:.5em 1.1em .5em 1.4em;margin-left:-10px;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%,12px 50%);font-size:var(--cngx-breadcrumb-ribbon-font-size);font-weight:560;text-decoration:none;background:var(--cngx-breadcrumb-ribbon-bg);color:var(--cngx-breadcrumb-ribbon-color)}.cngx-breadcrumb__crumb:first-child .cngx-breadcrumb__link{padding-left:1em;margin-left:0;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%);border-radius:var(--cngx-breadcrumb-ribbon-radius) 0 0 var(--cngx-breadcrumb-ribbon-radius)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-ribbon-hover-bg);color:var(--cngx-breadcrumb-ribbon-hover-color)}.cngx-breadcrumb__link[aria-current=page]{background:var(--cngx-breadcrumb-ribbon-active-bg);color:var(--cngx-breadcrumb-ribbon-active-color)}.cngx-breadcrumb__separator{display:none}}@property --cngx-breadcrumb-editorial-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-editorial-text{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-editorial-font-size{syntax: \"*\"; inherits: true; initial-value: 1rem;}@scope(.cngx-breadcrumb[data-skin=editorial]){:scope{--cngx-breadcrumb-editorial-accent: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-editorial-text: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-editorial-font-size: var(--cngx-font-size-md, 1rem)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;padding:.2em .1em .25em;font-size:var(--cngx-breadcrumb-editorial-font-size);text-decoration:none;color:var(--cngx-breadcrumb-editorial-text);background-image:linear-gradient(90deg,var(--cngx-breadcrumb-editorial-accent),color-mix(in oklch,var(--cngx-breadcrumb-editorial-accent) 40%,var(--cngx-breadcrumb-editorial-text)));background-repeat:no-repeat;background-position:0 100%;background-size:0% 2px;transition:background-size .18s ease,color .18s ease}.cngx-breadcrumb__link:hover{background-size:100% 2px;color:var(--cngx-breadcrumb-editorial-text)}.cngx-breadcrumb__link[aria-current=page]{background-image:linear-gradient(90deg,var(--cngx-breadcrumb-editorial-accent),color-mix(in oklch,var(--cngx-breadcrumb-editorial-accent) 50%,var(--cngx-breadcrumb-editorial-text)));background-position:0 0;background-size:100% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:700}.cngx-breadcrumb__separator{font-size:0}.cngx-breadcrumb__separator:after{content:\"\\b7\";font-size:var(--cngx-breadcrumb-editorial-font-size)}}@property --cngx-breadcrumb-header-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-header-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-header-text{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-header-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@property --cngx-breadcrumb-header-leaf-font-size{syntax: \"*\"; inherits: true; initial-value: 1.125rem;}@property --cngx-breadcrumb-header-radius{syntax: \"*\"; inherits: true; initial-value: 4px;}@scope(.cngx-breadcrumb[data-skin=header]){:scope{width:100%;--cngx-breadcrumb-header-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-header-hover-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-header-text: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-header-font-size: var(--cngx-font-size-sm, .875rem);--cngx-breadcrumb-header-leaf-font-size: var(--cngx-font-size-lg, 1.125rem);--cngx-breadcrumb-header-radius: var(--cngx-radius-sm, 4px)}.cngx-breadcrumb__list{row-gap:var(--cngx-space-sm, .5rem)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;padding:.2em .35em;border-radius:var(--cngx-breadcrumb-header-radius);font-size:var(--cngx-breadcrumb-header-font-size);font-weight:550;text-decoration:none;color:var(--cngx-breadcrumb-header-color)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-header-hover-bg);color:var(--cngx-breadcrumb-header-text)}.cngx-breadcrumb__crumb:has(.cngx-breadcrumb__link[aria-current=page]){flex-basis:100%}.cngx-breadcrumb__link[aria-current=page]{font-size:var(--cngx-breadcrumb-header-leaf-font-size);font-weight:700;letter-spacing:-.01em;line-height:1.2;white-space:normal;color:var(--cngx-breadcrumb-header-text)}.cngx-breadcrumb__separator{font-size:0}.cngx-breadcrumb__separator:after{content:\"\\203a\";font-size:var(--cngx-breadcrumb-header-font-size)}.cngx-breadcrumb__separator:has(+.cngx-breadcrumb__crumb .cngx-breadcrumb__link[aria-current=page]){display:none}}@property --cngx-breadcrumb-metro-accent{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-metro-surface{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-metro-hover-dot{syntax: \"<color>\"; inherits: true; initial-value: oklch(.95 .03 50);}@property --cngx-breadcrumb-metro-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-metro-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-metro-rail{syntax: \"<color>\"; inherits: true; initial-value: oklch(.8 .06 50);}@property --cngx-breadcrumb-metro-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@scope(.cngx-breadcrumb[data-skin=metro]){:scope{--cngx-breadcrumb-metro-accent: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-metro-surface: var(--cngx-color-surface, oklch(1 0 0));--cngx-breadcrumb-metro-hover-dot: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent );--cngx-breadcrumb-metro-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-metro-active-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-metro-rail: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 45%, var(--cngx-color-border, oklch(.88 .005 250)) );--cngx-breadcrumb-metro-font-size: var(--cngx-font-size-sm, .875rem)}.cngx-breadcrumb__list{gap:0}.cngx-breadcrumb__link{display:inline-flex;align-items:center;gap:.5em;padding:.3em .25em;font-size:var(--cngx-breadcrumb-metro-font-size);font-weight:560;text-decoration:none;color:var(--cngx-breadcrumb-metro-color)}.cngx-breadcrumb__link:before{content:\"\";flex:none;width:11px;height:11px;border-radius:50%;border:2.5px solid var(--cngx-breadcrumb-metro-accent);background:var(--cngx-breadcrumb-metro-surface);transition:background .18s ease,transform .18s ease}.cngx-breadcrumb__link:hover{color:var(--cngx-breadcrumb-metro-active-color)}.cngx-breadcrumb__link:hover:before{background:var(--cngx-breadcrumb-metro-hover-dot);transform:scale(1.15)}.cngx-breadcrumb__link[aria-current=page]{color:var(--cngx-breadcrumb-metro-active-color)}.cngx-breadcrumb__link[aria-current=page]:before{background:var(--cngx-breadcrumb-metro-accent);box-shadow:0 0 0 3px color-mix(in oklch,var(--cngx-breadcrumb-metro-accent) 22%,transparent)}.cngx-breadcrumb__separator{width:30px;height:3px;margin-inline:3px;border-radius:2px;font-size:0;background:var(--cngx-breadcrumb-metro-rail)}}@property --cngx-breadcrumb-toolbar-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-toolbar-border-strong{syntax: \"<color>\"; inherits: true; initial-value: oklch(.78 .01 250);}@property --cngx-breadcrumb-toolbar-cell-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-breadcrumb-toolbar-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-toolbar-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-toolbar-hover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-toolbar-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.95 .03 50);}@property --cngx-breadcrumb-toolbar-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-toolbar-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@property --cngx-breadcrumb-toolbar-radius{syntax: \"*\"; inherits: true; initial-value: 4px;}@scope(.cngx-breadcrumb[data-skin=toolbar]){:scope{width:100%;--cngx-breadcrumb-toolbar-bg: var(--cngx-color-surface, oklch(1 0 0));--cngx-breadcrumb-toolbar-border-strong: color-mix( in oklch, var(--cngx-color-border, oklch(.88 .005 250)) 50%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-breadcrumb-toolbar-cell-border: var(--cngx-color-border, oklch(.88 .005 250));--cngx-breadcrumb-toolbar-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-toolbar-hover-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-toolbar-hover-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-toolbar-active-bg: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent );--cngx-breadcrumb-toolbar-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-toolbar-font-size: var(--cngx-font-size-sm, .875rem);--cngx-breadcrumb-toolbar-radius: var(--cngx-radius-sm, 4px)}.cngx-breadcrumb__list{width:100%;gap:0;flex-wrap:nowrap;overflow:hidden;background:var(--cngx-breadcrumb-toolbar-bg);border:1px solid var(--cngx-breadcrumb-toolbar-border-strong);border-radius:var(--cngx-breadcrumb-toolbar-radius)}.cngx-breadcrumb__crumb{align-self:stretch}.cngx-breadcrumb__link{display:inline-flex;align-items:center;padding:.55em .95em;font-size:var(--cngx-breadcrumb-toolbar-font-size);font-weight:550;text-decoration:none;border-right:1px solid var(--cngx-breadcrumb-toolbar-cell-border);border-radius:0;color:var(--cngx-breadcrumb-toolbar-color)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-toolbar-hover-bg);color:var(--cngx-breadcrumb-toolbar-hover-color)}.cngx-breadcrumb__link[aria-current=page]{background:var(--cngx-breadcrumb-toolbar-active-bg);color:var(--cngx-breadcrumb-toolbar-active-color);font-weight:640;border-right:none}.cngx-breadcrumb__separator{display:none}}@property --cngx-breadcrumb-chips-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-chips-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-breadcrumb-chips-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-chips-hover-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.78 .01 250);}@property --cngx-breadcrumb-chips-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-chips-hover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-chips-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.95 .03 50);}@property --cngx-breadcrumb-chips-active-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.82 .08 50);}@property --cngx-breadcrumb-chips-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-chips-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@property --cngx-breadcrumb-chips-radius{syntax: \"*\"; inherits: true; initial-value: 999px;}@scope(.cngx-breadcrumb[data-skin=chips]){:scope{--cngx-breadcrumb-chips-bg: var(--cngx-color-surface, oklch(1 0 0));--cngx-breadcrumb-chips-border: var(--cngx-color-border, oklch(.88 .005 250));--cngx-breadcrumb-chips-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-chips-hover-border: color-mix( in oklch, var(--cngx-color-border, oklch(.88 .005 250)) 50%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-breadcrumb-chips-hover-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-chips-hover-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-chips-active-bg: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent );--cngx-breadcrumb-chips-active-border: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 35%, var(--cngx-color-border, oklch(.88 .005 250)) );--cngx-breadcrumb-chips-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-chips-font-size: var(--cngx-font-size-sm, .875rem);--cngx-breadcrumb-chips-radius: var(--cngx-radius-pill, 999px)}.cngx-breadcrumb__list{gap:var(--cngx-space-sm, .5rem)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;padding:.32em .8em;font-size:var(--cngx-breadcrumb-chips-font-size);font-weight:550;text-decoration:none;border:1px solid var(--cngx-breadcrumb-chips-border);border-radius:var(--cngx-breadcrumb-chips-radius);background:var(--cngx-breadcrumb-chips-bg);color:var(--cngx-breadcrumb-chips-color)}.cngx-breadcrumb__link:hover{border-color:var(--cngx-breadcrumb-chips-hover-border);background:var(--cngx-breadcrumb-chips-hover-bg);color:var(--cngx-breadcrumb-chips-hover-color)}.cngx-breadcrumb__link[aria-current=page]{background:var(--cngx-breadcrumb-chips-active-bg);border-color:var(--cngx-breadcrumb-chips-active-border);color:var(--cngx-breadcrumb-chips-active-color);font-weight:640}.cngx-breadcrumb__separator{font-size:0}.cngx-breadcrumb__separator:after{content:\"\\203a\";font-size:var(--cngx-breadcrumb-chips-font-size)}}@property --cngx-breadcrumb-path-track-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-path-track-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.88 .005 250);}@property --cngx-breadcrumb-path-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-path-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-path-hover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-path-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-path-sep-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .01 250);}@property --cngx-breadcrumb-path-radius{syntax: \"*\"; inherits: true; initial-value: 8px;}@property --cngx-breadcrumb-path-link-radius{syntax: \"*\"; inherits: true; initial-value: 4px;}@property --cngx-breadcrumb-path-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@scope(.cngx-breadcrumb[data-skin=path]){:scope{font-family:var(--cngx-font-family-mono, ui-monospace, \"SFMono-Regular\", \"Menlo\", monospace);--cngx-breadcrumb-path-track-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-path-track-border: var(--cngx-color-border, oklch(.88 .005 250));--cngx-breadcrumb-path-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-path-hover-bg: var(--cngx-color-surface, oklch(1 0 0));--cngx-breadcrumb-path-hover-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-path-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-path-sep-color: color-mix( in oklch, var(--cngx-color-text-muted, oklch(.5 .01 250)) 55%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-path-radius: var(--cngx-radius-md, 8px);--cngx-breadcrumb-path-link-radius: var(--cngx-radius-sm, 4px);--cngx-breadcrumb-path-font-size: var(--cngx-font-size-sm, .875rem)}.cngx-breadcrumb__list{gap:var(--cngx-space-xs, .25rem);padding:.5em .7em;background:var(--cngx-breadcrumb-path-track-bg);border:1px solid var(--cngx-breadcrumb-path-track-border);border-radius:var(--cngx-breadcrumb-path-radius)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;gap:.4em;padding:.2em .45em;font-size:var(--cngx-breadcrumb-path-font-size);text-decoration:none;border-radius:var(--cngx-breadcrumb-path-link-radius);color:var(--cngx-breadcrumb-path-color)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-path-hover-bg);color:var(--cngx-breadcrumb-path-hover-color)}.cngx-breadcrumb__link[aria-current=page]{color:var(--cngx-breadcrumb-path-active-color)}.cngx-breadcrumb__separator{color:var(--cngx-breadcrumb-path-sep-color)}}@property --cngx-breadcrumb-iconlabel-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-iconlabel-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-iconlabel-hover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-iconlabel-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.95 .03 50);}@property --cngx-breadcrumb-iconlabel-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-iconlabel-radius{syntax: \"*\"; inherits: true; initial-value: 999px;}@property --cngx-breadcrumb-iconlabel-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@scope(.cngx-breadcrumb[data-skin=iconlabel]){:scope{--cngx-breadcrumb-iconlabel-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-iconlabel-hover-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-iconlabel-hover-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-iconlabel-active-bg: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 12%, transparent );--cngx-breadcrumb-iconlabel-active-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-iconlabel-radius: var(--cngx-radius-pill, 999px);--cngx-breadcrumb-iconlabel-font-size: var(--cngx-font-size-sm, .875rem)}.cngx-breadcrumb__crumb{color:var(--cngx-breadcrumb-iconlabel-color)}.cngx-breadcrumb__crumb:has(.cngx-breadcrumb__link[aria-current=page]){color:var(--cngx-breadcrumb-iconlabel-active-color)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;gap:.4em;padding:.4em .7em;border-radius:var(--cngx-breadcrumb-iconlabel-radius);font-size:var(--cngx-breadcrumb-iconlabel-font-size);font-weight:550;text-decoration:none;color:var(--cngx-breadcrumb-iconlabel-color)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-iconlabel-hover-bg);color:var(--cngx-breadcrumb-iconlabel-hover-color)}.cngx-breadcrumb__link[aria-current=page]{background:var(--cngx-breadcrumb-iconlabel-active-bg);color:var(--cngx-breadcrumb-iconlabel-active-color)}.cngx-breadcrumb__separator{font-size:0}.cngx-breadcrumb__separator:after{content:\"\\203a\";font-size:var(--cngx-breadcrumb-iconlabel-font-size)}}@property --cngx-breadcrumb-icononly-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-icononly-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-icononly-hover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-icononly-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-icononly-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-icononly-tip-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-icononly-tip-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-icononly-radius{syntax: \"*\"; inherits: true; initial-value: 4px;}@property --cngx-breadcrumb-icononly-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@scope(.cngx-breadcrumb[data-skin=icononly]){:scope{--cngx-breadcrumb-icononly-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-icononly-hover-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-icononly-hover-color: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-icononly-active-bg: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-icononly-active-color: var(--cngx-color-on-primary, oklch(1 0 0));--cngx-breadcrumb-icononly-tip-bg: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-icononly-tip-color: var(--cngx-color-surface, oklch(1 0 0));--cngx-breadcrumb-icononly-radius: var(--cngx-radius-sm, 4px);--cngx-breadcrumb-icononly-font-size: var(--cngx-font-size-sm, .875rem)}.cngx-breadcrumb__list{gap:var(--cngx-space-xs, .25rem)}.cngx-breadcrumb__link{position:relative;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:var(--cngx-breadcrumb-icononly-radius);text-decoration:none;color:var(--cngx-breadcrumb-icononly-color)}.cngx-breadcrumb__label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-icononly-hover-bg);color:var(--cngx-breadcrumb-icononly-hover-color)}.cngx-breadcrumb__link[aria-current=page]{background:var(--cngx-breadcrumb-icononly-active-bg);color:var(--cngx-breadcrumb-icononly-active-color)}.cngx-breadcrumb__link:after{content:attr(data-label) / \"\";position:absolute;bottom:calc(100% + 8px);left:50%;translate:-50% 0;padding:.3em .6em;border-radius:var(--cngx-breadcrumb-icononly-radius);background:var(--cngx-breadcrumb-icononly-tip-bg);color:var(--cngx-breadcrumb-icononly-tip-color);font-size:.75rem;font-weight:600;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .18s ease;box-shadow:var(--cngx-shadow-md, 0 4px 12px oklch(0 0 0 / .15));z-index:30}.cngx-breadcrumb__link:hover:after,.cngx-breadcrumb__link:focus-visible:after{opacity:1}.cngx-breadcrumb__separator{font-size:0}.cngx-breadcrumb__separator:after{content:\"\\203a\";font-size:var(--cngx-breadcrumb-icononly-font-size)}}@property --cngx-breadcrumb-shell-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-shell-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-shell-text{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-shell-mark-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-breadcrumb-shell-mark-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-shell-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@property --cngx-breadcrumb-shell-radius{syntax: \"*\"; inherits: true; initial-value: 4px;}@scope(.cngx-breadcrumb[data-skin=shell]){:scope{--cngx-breadcrumb-shell-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-shell-hover-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-shell-text: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-shell-mark-bg: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-breadcrumb-shell-mark-color: var(--cngx-color-on-primary, oklch(1 0 0));--cngx-breadcrumb-shell-font-size: var(--cngx-font-size-sm, .875rem);--cngx-breadcrumb-shell-radius: var(--cngx-radius-sm, 4px)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;gap:.5em;padding:.3em .5em;border-radius:var(--cngx-breadcrumb-shell-radius);font-size:var(--cngx-breadcrumb-shell-font-size);font-weight:550;text-decoration:none;color:var(--cngx-breadcrumb-shell-color)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-shell-hover-bg);color:var(--cngx-breadcrumb-shell-text)}.cngx-breadcrumb__link[aria-current=page]{color:var(--cngx-breadcrumb-shell-text);font-weight:660}.cngx-breadcrumb__crumb:first-child .cngx-breadcrumb__link{font-weight:650;color:var(--cngx-breadcrumb-shell-text)}.product-mark{flex:none;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:var(--cngx-breadcrumb-shell-mark-bg);color:var(--cngx-breadcrumb-shell-mark-color);font-size:.6875rem;font-weight:700;letter-spacing:.02em}.cngx-breadcrumb__separator{font-size:0}.cngx-breadcrumb__separator:after{content:\"\\203a\";font-size:var(--cngx-breadcrumb-shell-font-size)}}@property --cngx-breadcrumb-record-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .01 250);}@property --cngx-breadcrumb-record-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 .005 250);}@property --cngx-breadcrumb-record-text{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@property --cngx-breadcrumb-record-chip-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-breadcrumb-record-chip-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(.78 .01 250);}@property --cngx-breadcrumb-record-status{syntax: \"<color>\"; inherits: true; initial-value: oklch(.7 .17 145);}@property --cngx-breadcrumb-record-font-size{syntax: \"*\"; inherits: true; initial-value: .875rem;}@property --cngx-breadcrumb-record-radius{syntax: \"*\"; inherits: true; initial-value: 4px;}@property --cngx-breadcrumb-record-chip-radius{syntax: \"*\"; inherits: true; initial-value: 999px;}@scope(.cngx-breadcrumb[data-skin=record]){:scope{--cngx-breadcrumb-record-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--cngx-breadcrumb-record-hover-bg: color-mix( in oklch, var(--cngx-color-text, oklch(.2 .01 250)) 5%, var(--cngx-color-surface, oklch(1 0 0)) );--cngx-breadcrumb-record-text: var(--cngx-color-text, oklch(.2 .01 250));--cngx-breadcrumb-record-chip-bg: var(--cngx-color-surface, oklch(1 0 0));--cngx-breadcrumb-record-chip-border: color-mix( in oklch, var(--cngx-color-border, oklch(.88 .005 250)) 50%, var(--cngx-color-text, oklch(.2 .01 250)) );--cngx-breadcrumb-record-status: var(--cngx-color-success, oklch(.7 .17 145));--cngx-breadcrumb-record-font-size: var(--cngx-font-size-sm, .875rem);--cngx-breadcrumb-record-radius: var(--cngx-radius-sm, 4px);--cngx-breadcrumb-record-chip-radius: var(--cngx-radius-pill, 999px)}.cngx-breadcrumb__link{display:inline-flex;align-items:center;gap:.4em;padding:.3em .45em;border-radius:var(--cngx-breadcrumb-record-radius);font-size:var(--cngx-breadcrumb-record-font-size);text-decoration:none;color:var(--cngx-breadcrumb-record-color)}.cngx-breadcrumb__link:hover{background:var(--cngx-breadcrumb-record-hover-bg);color:var(--cngx-breadcrumb-record-text)}.cngx-breadcrumb__link[aria-current=page]{background:transparent;color:var(--cngx-breadcrumb-record-text);font-weight:620}.cngx-breadcrumb__crumb:has(.cngx-breadcrumb__link[aria-current=page]){gap:.55em;padding:.32em .8em;background:var(--cngx-breadcrumb-record-chip-bg);border:1px solid var(--cngx-breadcrumb-record-chip-border);border-radius:var(--cngx-breadcrumb-record-chip-radius);box-shadow:var(--cngx-shadow-sm, 0 1px 2px oklch(0 0 0 / .08))}.rec-id{font-family:var(--cngx-font-family-mono, ui-monospace, \"SFMono-Regular\", \"Menlo\", monospace);font-size:.95em}.status-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--cngx-breadcrumb-record-status);box-shadow:0 0 0 3px color-mix(in oklch,var(--cngx-breadcrumb-record-status) 20%,transparent)}.status-label{font-size:.65625rem;font-weight:680;color:var(--cngx-breadcrumb-record-status);text-transform:uppercase;letter-spacing:.06em}.cngx-breadcrumb__separator{font-size:0}.cngx-breadcrumb__separator:after{content:\"\\203a\";font-size:var(--cngx-breadcrumb-record-font-size)}}\n"] }]
512
+ }], propDecorators: { itemsInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], maxVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisible", required: false }] }], responsive: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsive", required: false }] }], responsiveTiers: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsiveTiers", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], skin: [{ type: i0.Input, args: [{ isSignal: true, alias: "skin", required: false }] }], accessory: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxBreadcrumbItemAccessory), { ...{ read: TemplateRef }, isSignal: true }] }], icon: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxBreadcrumbIcon), { ...{ read: TemplateRef }, isSignal: true }] }], overflowRow: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxBreadcrumbOverflowItem), { ...{ read: TemplateRef }, isSignal: true }] }] } });
513
+
514
+ /**
515
+ * Positional shape equality for two crumb trails. The router source maps a
516
+ * fresh crumb literal per navigation, so reference equality (`Object.is`)
517
+ * would treat every `NavigationEnd` as a change; comparing `label`/`href`/`icon`
518
+ * lets a same-shape navigation keep the previous signal reference and stops
519
+ * it cascading the bar (reference_signal_architecture Equality Rule).
520
+ *
521
+ * The router source populates `label`, `href`, and (from `data[iconKey]`)
522
+ * `icon`, so those three fully describe a crumb's identity here - `icon` must be
523
+ * compared or an icon-only route-data change never propagates. When SPA-link
524
+ * emission lands, its equality is defined alongside it.
525
+ */
526
+ function crumbsEqual(a, b) {
527
+ if (a === b) {
528
+ return true;
529
+ }
530
+ if (a.length !== b.length) {
531
+ return false;
532
+ }
533
+ for (let i = 0; i < a.length; i++) {
534
+ if (a[i].label !== b[i].label || a[i].href !== b[i].href || a[i].icon !== b[i].icon) {
535
+ return false;
536
+ }
537
+ }
538
+ return true;
539
+ }
540
+ /**
541
+ * Opt-in router mode for {@link CngxBreadcrumbBar}. Add `routerSync` to a
542
+ * `<cngx-breadcrumb>` and the trail is derived from the activated route tree -
543
+ * every route whose `data[dataKey]` (default `data.breadcrumb`) is a non-empty
544
+ * string contributes a crumb, terminal marking follows from position. The bar
545
+ * reads the trail through the {@link CNGX_BREADCRUMB_ITEMS_SOURCE} seam
546
+ * (provided here via `useExisting`), so the directive never writes the bar's
547
+ * `[items]` input and never injects the concrete bar class - decompose-clean
548
+ * (Pillar 1; reference_atomic_decompose rule 4).
549
+ *
550
+ * The navigation stream converts to a signal at the boundary via `toSignal`
551
+ * (Pillar 1, no raw subscription); the trail is a `computed` over that trigger
552
+ * and `dataKey`, carrying a shape-based `equal` so a same-shape navigation does
553
+ * not cascade the trail. `Router` is optional - without it the directive logs a
554
+ * dev warning and stays an empty source.
555
+ *
556
+ * ```html
557
+ * <cngx-breadcrumb cngxRouterSync />
558
+ * ```
559
+ *
560
+ * ```typescript
561
+ * // Route config supplies the crumb labels:
562
+ * { path: 'catalog', data: { breadcrumb: 'Catalog' }, children: [
563
+ * { path: 'books', data: { breadcrumb: 'Books' } },
564
+ * ] }
565
+ * ```
566
+ *
567
+ * @category ui/breadcrumb
568
+ * @docsKind primary
569
+ * @wcag AA
570
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/breadcrumb-router-sync.directive.ts
571
+ * @since 0.1.0
572
+ * @relatedTo CngxBreadcrumbBar, CngxBreadcrumbItemsSource
573
+ * <example-url>http://localhost:4200/#/ui/breadcrumb/router/router-driven</example-url>
574
+ */
575
+ class CngxBreadcrumbRouterSync {
576
+ router = inject(Router, { optional: true });
577
+ cfg = injectBreadcrumbConfig();
578
+ /**
579
+ * Route `data` key the trail is read from. Falls back through the config
580
+ * cascade to `'breadcrumb'`; override per-instance to read a different key
581
+ * (mirrors the sibling's `paramName`).
582
+ */
583
+ dataKey = input(this.cfg.router?.dataKey ?? 'breadcrumb', ...(ngDevMode ? [{ debugName: "dataKey" }] : /* istanbul ignore next */ []));
584
+ /**
585
+ * Route `data` key each crumb's opaque icon token is read from. Falls back
586
+ * through the config cascade to `'icon'`; override per-instance to read a
587
+ * different key (mirrors `dataKey`).
588
+ */
589
+ iconKey = input(this.cfg.router?.iconKey ?? 'icon', ...(ngDevMode ? [{ debugName: "iconKey" }] : /* istanbul ignore next */ []));
590
+ /** The router-derived trail. Wins over the bar's `[items]` input. */
591
+ crumbs;
592
+ constructor() {
593
+ const router = this.router;
594
+ if (!router) {
595
+ afterNextRender(() => {
596
+ console.warn('CngxBreadcrumbRouterSync: no Router available - directive is a no-op. ' +
597
+ 'Provide @angular/router via provideRouter(...) to enable router-driven crumbs.');
598
+ });
599
+ this.crumbs = signal([]).asReadonly();
600
+ return;
601
+ }
602
+ const destroyRef = inject(DestroyRef);
603
+ const navEnd = toSignal(router.events.pipe(filter((e) => e instanceof NavigationEnd), takeUntilDestroyed(destroyRef)), { initialValue: null });
604
+ // Derive the trail from the navigation trigger and dataKey - both reactive,
605
+ // so a runtime dataKey change re-reads the tree too. The route snapshot is
606
+ // read imperatively per recompute; navEnd is the tracked trigger (Pillar 1).
607
+ this.crumbs = computed(() => {
608
+ navEnd();
609
+ return buildCrumbs(router, this.dataKey(), this.iconKey());
610
+ }, { ...(ngDevMode ? { debugName: "crumbs" } : /* istanbul ignore next */ {}), equal: crumbsEqual });
611
+ }
612
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbRouterSync, deps: [], target: i0.ɵɵFactoryTarget.Directive });
613
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.4", type: CngxBreadcrumbRouterSync, isStandalone: true, selector: "cngx-breadcrumb[cngxRouterSync]", inputs: { dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, iconKey: { classPropertyName: "iconKey", publicName: "iconKey", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
614
+ { provide: CNGX_BREADCRUMB_ITEMS_SOURCE, useExisting: CngxBreadcrumbRouterSync },
615
+ ], exportAs: ["cngxBreadcrumbRouterSync"], ngImport: i0 });
616
+ }
617
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbRouterSync, decorators: [{
618
+ type: Directive,
619
+ args: [{
620
+ selector: 'cngx-breadcrumb[cngxRouterSync]',
621
+ exportAs: 'cngxBreadcrumbRouterSync',
622
+ standalone: true,
623
+ providers: [
624
+ { provide: CNGX_BREADCRUMB_ITEMS_SOURCE, useExisting: CngxBreadcrumbRouterSync },
625
+ ],
626
+ }]
627
+ }], ctorParameters: () => [], propDecorators: { dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], iconKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconKey", required: false }] }] } });
628
+ /**
629
+ * Walks the activated route tree from the root down the firstChild chain,
630
+ * accumulating the URL and emitting one crumb per route whose `data[dataKey]`
631
+ * is a non-empty string. A non-empty `data[iconKey]` string rides onto the
632
+ * crumb's opaque `icon` (the leading icon slot renders it; deepest wins on the
633
+ * componentless-collapse branch, like the label).
634
+ */
635
+ function buildCrumbs(router, dataKey, iconKey) {
636
+ const crumbs = [];
637
+ let route = router.routerState.snapshot.root;
638
+ let url = '';
639
+ while (route) {
640
+ const segment = route.url.map((s) => s.path).join('/');
641
+ if (segment) {
642
+ url += `/${segment}`;
643
+ }
644
+ const raw = route.data[dataKey];
645
+ if (typeof raw === 'string' && raw.length > 0) {
646
+ const href = url || '/';
647
+ const rawIcon = route.data[iconKey];
648
+ const icon = typeof rawIcon === 'string' && rawIcon.length > 0 ? rawIcon : undefined;
649
+ const next = icon !== undefined ? { label: raw, href, icon } : { label: raw, href };
650
+ const prev = crumbs[crumbs.length - 1];
651
+ if (prev?.href === href) {
652
+ // A segment-less (componentless) route carrying a breadcrumb reuses the
653
+ // parent URL; collapse it into one crumb - deepest label/icon wins - so
654
+ // the trail never emits a duplicate href, which is the bar's @for track
655
+ // key and would throw NG0955 on a duplicate.
656
+ crumbs[crumbs.length - 1] = next;
657
+ }
658
+ else {
659
+ crumbs.push(next);
660
+ }
661
+ }
662
+ route = route.firstChild;
663
+ }
664
+ return crumbs;
665
+ }
666
+
667
+ /**
668
+ * Positional shape equality for two sibling sets. The router source maps a
669
+ * fresh sibling literal per navigation, so reference equality (`Object.is`)
670
+ * would treat every `NavigationEnd` as a change; comparing
671
+ * `label`/`href`/`current` lets a same-shape navigation keep the previous
672
+ * signal reference and stops it cascading the dropdown
673
+ * (reference_signal_architecture Equality Rule). Mirrors `crumbsEqual`.
674
+ *
675
+ * `current` is compared because the same set of siblings with a different
676
+ * active member is a genuine change - the `aria-current` marker moves.
677
+ */
678
+ function siblingsEqual(a, b) {
679
+ if (a === b) {
680
+ return true;
681
+ }
682
+ if (a.length !== b.length) {
683
+ return false;
684
+ }
685
+ for (let i = 0; i < a.length; i++) {
686
+ if (a[i].label !== b[i].label || a[i].href !== b[i].href || !!a[i].current !== !!b[i].current) {
687
+ return false;
688
+ }
689
+ }
690
+ return true;
691
+ }
692
+ /**
693
+ * Opt-in router mode for {@link CngxBreadcrumbSiblings}. Add `cngxRouterSync`
694
+ * to a `<cngx-breadcrumb-siblings>` and its rows are derived from the activated
695
+ * route tree: the sibling routes at `[depth]` (the other children of that
696
+ * level's parent) whose `data[dataKey]` is a non-empty string each become a
697
+ * row, and the active child is marked `current`. The dropdown reads the set
698
+ * through the {@link CNGX_BREADCRUMB_SIBLINGS_SOURCE} seam (provided here via
699
+ * `useExisting`), so the directive never writes the component's `[siblings]`
700
+ * input and never injects the concrete component class - decompose-clean
701
+ * (Pillar 1; reference_atomic_decompose rule 4).
702
+ *
703
+ * The navigation stream converts to a signal at the boundary via `toSignal`
704
+ * (Pillar 1, no raw subscription); the set is a `computed` over that trigger,
705
+ * `depth`, and `dataKey`, carrying a shape-based `equal` so a same-shape
706
+ * navigation does not cascade. `Router` is optional - without it the directive
707
+ * logs a dev warning and stays an empty source.
708
+ *
709
+ * ```html
710
+ * <cngx-breadcrumb-siblings cngxRouterSync [depth]="1" />
711
+ * ```
712
+ *
713
+ * ```typescript
714
+ * // Route config supplies the sibling labels:
715
+ * { path: 'eu', data: { breadcrumb: 'Region EU' }, children: [
716
+ * { path: 'munich', data: { breadcrumb: 'Munich' } },
717
+ * { path: 'berlin', data: { breadcrumb: 'Berlin' } },
718
+ * ] }
719
+ * ```
720
+ *
721
+ * @playground Router-driven siblings over a nested route tree ./examples/router-driven/router-driven.component.ts
722
+ * @category ui/breadcrumb
723
+ * @docsKind primary
724
+ * @wcag AA
725
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/breadcrumb/breadcrumb-siblings-router-sync.directive.ts
726
+ * @since 0.1.0
727
+ * @relatedTo CngxBreadcrumbSiblings, CngxBreadcrumbSiblingsSource
728
+ */
729
+ class CngxBreadcrumbSiblingsRouterSync {
730
+ router = inject(Router, { optional: true });
731
+ cfg = injectBreadcrumbConfig();
732
+ /**
733
+ * Index into the activated route chain (root's first real child is `0`)
734
+ * whose siblings are listed. `0` lists the top-level routes; `1` lists the
735
+ * children of the first-level active route, and so on. The directive owns
736
+ * this keying as its own input (mirrors the trail sync owning `dataKey`).
737
+ */
738
+ depth = input(0, ...(ngDevMode ? [{ debugName: "depth" }] : /* istanbul ignore next */ []));
739
+ /**
740
+ * Route `data` key the sibling labels are read from. Falls back through the
741
+ * config cascade to `'breadcrumb'`; override per-instance to read a different
742
+ * key.
743
+ */
744
+ dataKey = input(this.cfg.router?.dataKey ?? 'breadcrumb', ...(ngDevMode ? [{ debugName: "dataKey" }] : /* istanbul ignore next */ []));
745
+ /** The router-derived siblings. Wins over the component's `[siblings]` input. */
746
+ siblings;
747
+ constructor() {
748
+ const router = this.router;
749
+ if (!router) {
750
+ afterNextRender(() => {
751
+ console.warn('CngxBreadcrumbSiblingsRouterSync: no Router available - directive is a no-op. ' +
752
+ 'Provide @angular/router via provideRouter(...) to enable router-driven siblings.');
753
+ });
754
+ this.siblings = signal([]).asReadonly();
755
+ return;
756
+ }
757
+ const destroyRef = inject(DestroyRef);
758
+ const navEnd = toSignal(router.events.pipe(filter((e) => e instanceof NavigationEnd), takeUntilDestroyed(destroyRef)), { initialValue: null });
759
+ // Derive the set from the navigation trigger, depth, and dataKey - all
760
+ // reactive, so a runtime depth/dataKey change re-reads the tree too. The
761
+ // route snapshot is read imperatively per recompute; navEnd is the tracked
762
+ // trigger (Pillar 1).
763
+ this.siblings = computed(() => {
764
+ navEnd();
765
+ return buildSiblings(router, this.depth(), this.dataKey());
766
+ }, { ...(ngDevMode ? { debugName: "siblings" } : /* istanbul ignore next */ {}), equal: siblingsEqual });
767
+ }
768
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbSiblingsRouterSync, deps: [], target: i0.ɵɵFactoryTarget.Directive });
769
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.4", type: CngxBreadcrumbSiblingsRouterSync, isStandalone: true, selector: "cngx-breadcrumb-siblings[cngxRouterSync]", inputs: { depth: { classPropertyName: "depth", publicName: "depth", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
770
+ { provide: CNGX_BREADCRUMB_SIBLINGS_SOURCE, useExisting: CngxBreadcrumbSiblingsRouterSync },
771
+ ], exportAs: ["cngxBreadcrumbSiblingsRouterSync"], ngImport: i0 });
772
+ }
773
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbSiblingsRouterSync, decorators: [{
774
+ type: Directive,
775
+ args: [{
776
+ selector: 'cngx-breadcrumb-siblings[cngxRouterSync]',
777
+ exportAs: 'cngxBreadcrumbSiblingsRouterSync',
778
+ standalone: true,
779
+ providers: [
780
+ { provide: CNGX_BREADCRUMB_SIBLINGS_SOURCE, useExisting: CngxBreadcrumbSiblingsRouterSync },
781
+ ],
782
+ }]
783
+ }], ctorParameters: () => [], propDecorators: { depth: [{ type: i0.Input, args: [{ isSignal: true, alias: "depth", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }] } });
784
+ /**
785
+ * Enumerates the sibling routes at `depth` in the activated route chain: the
786
+ * children of that level's parent (or the root config at depth 0) whose
787
+ * `data[dataKey]` is a non-empty string, marking the active child `current`.
788
+ * Sibling configs come from the static route configuration, not the activated
789
+ * snapshot (which only holds the one active child), so the whole set of
790
+ * alternatives is visible. Duplicate hrefs are collapsed like `buildCrumbs`.
791
+ */
792
+ function buildSiblings(router, depth, dataKey) {
793
+ // Active chain of real routes, skipping the componentless root.
794
+ const chain = [];
795
+ let route = router.routerState.snapshot.root.firstChild;
796
+ while (route) {
797
+ chain.push(route);
798
+ route = route.firstChild;
799
+ }
800
+ const target = depth >= 0 ? chain[depth] : undefined;
801
+ const targetConfig = target?.routeConfig ?? null;
802
+ let siblingConfigs;
803
+ let prefix = '';
804
+ if (depth <= 0) {
805
+ siblingConfigs = router.config;
806
+ }
807
+ else {
808
+ const parent = chain[depth - 1];
809
+ siblingConfigs = parent?.routeConfig?.children ?? [];
810
+ for (let i = 0; i < depth && i < chain.length; i++) {
811
+ const seg = chain[i].url.map((s) => s.path).join('/');
812
+ if (seg) {
813
+ prefix += `/${seg}`;
814
+ }
815
+ }
816
+ }
817
+ const out = [];
818
+ for (const cfg of siblingConfigs) {
819
+ const raw = cfg.data?.[dataKey];
820
+ if (typeof raw !== 'string' || raw.length === 0) {
821
+ continue;
822
+ }
823
+ const seg = cfg.path ?? '';
824
+ const href = seg ? `${prefix}/${seg}` : prefix || '/';
825
+ const current = targetConfig !== null && cfg === targetConfig;
826
+ const prev = out.at(-1);
827
+ if (prev?.href === href) {
828
+ // A path-less sibling reuses the parent URL; collapse it - deepest label
829
+ // wins, current stays set if either matched - so the set never emits a
830
+ // duplicate href (the dropdown's @for track would otherwise collide).
831
+ out[out.length - 1] = { label: raw, href, current: prev.current ?? current };
832
+ }
833
+ else {
834
+ out.push({ label: raw, href, current });
835
+ }
836
+ }
837
+ return out;
838
+ }
839
+
840
+ /**
841
+ * Override the breadcrumb family's ARIA-string fallbacks - the bar landmark
842
+ * name and the overflow/siblings trigger + list labels. Per-instance
843
+ * `[label]` / `[triggerLabel]` / `[menuLabel]` bindings still win over the
844
+ * cascade; this only sets the fallback.
845
+ *
846
+ * ```ts
847
+ * provideBreadcrumbConfig(
848
+ * withBreadcrumbAriaLabels({ bar: 'Navigation trail' }),
849
+ * );
850
+ * ```
851
+ *
852
+ * @category ui/breadcrumb
853
+ * @since 0.1.0
854
+ */
855
+ function withBreadcrumbAriaLabels(payload) {
856
+ return { kind: 'ariaLabels', payload };
857
+ }
858
+ /**
859
+ * Override the route-data key the breadcrumb router-sync directives
860
+ * (`CngxBreadcrumbRouterSync`, `CngxBreadcrumbSiblingsRouterSync`) read
861
+ * crumbs and siblings from. Per-instance `[dataKey]` still wins.
862
+ *
863
+ * ```ts
864
+ * provideBreadcrumbConfig(withBreadcrumbDataKey('crumb'));
865
+ * ```
866
+ *
867
+ * @category ui/breadcrumb
868
+ * @since 0.1.0
869
+ */
870
+ function withBreadcrumbDataKey(dataKey) {
871
+ return { kind: 'router', payload: { dataKey } };
872
+ }
873
+ /**
874
+ * Override the route-data key `CngxBreadcrumbRouterSync` reads the per-crumb
875
+ * opaque icon token from (default `'icon'`). Per-instance `[iconKey]` still
876
+ * wins. Mirrors `withBreadcrumbDataKey` for cascade parity.
877
+ *
878
+ * ```ts
879
+ * provideBreadcrumbConfig(withBreadcrumbIconKey('glyph'));
880
+ * ```
881
+ *
882
+ * @category ui/breadcrumb
883
+ * @since 0.1.0
884
+ */
885
+ function withBreadcrumbIconKey(iconKey) {
886
+ return { kind: 'router', payload: { iconKey } };
887
+ }
888
+ /**
889
+ * Select the app-wide default visual skin for `CngxBreadcrumbBar`. Per-instance
890
+ * `[skin]` still wins; this only moves the cascade default. Structure, slots,
891
+ * and ARIA are identical across skins - only the `[data-skin]` host attribute
892
+ * changes which `@scope` paint applies.
893
+ *
894
+ * ```ts
895
+ * provideBreadcrumbConfig(withBreadcrumbSkin('pill'));
896
+ * ```
897
+ *
898
+ * @category ui/breadcrumb
899
+ * @since 0.1.0
900
+ */
901
+ function withBreadcrumbSkin(skin) {
902
+ return { kind: 'skin', payload: { skin } };
903
+ }
904
+
905
+ /**
906
+ * Reduces a list of feature objects into a partial config - last write wins
907
+ * per sub-tree. Inner objects are spread-merged so partial overrides compose
908
+ * cleanly with prior writes.
909
+ *
910
+ * @internal
911
+ */
912
+ function reduceFeatures(features) {
913
+ const out = {};
914
+ for (const f of features) {
915
+ switch (f.kind) {
916
+ case 'ariaLabels':
917
+ out.ariaLabels = { ...out.ariaLabels, ...f.payload };
918
+ break;
919
+ case 'router':
920
+ out.router = { ...out.router, ...f.payload };
921
+ break;
922
+ case 'skin':
923
+ out.skin = f.payload.skin;
924
+ break;
925
+ }
926
+ }
927
+ return out;
928
+ }
929
+ /**
930
+ * Two-level deep merge: nested sub-tree keys (`ariaLabels` / `router`) are
931
+ * spread-merged so the partial fills in missing keys without nuking unrelated
932
+ * config sub-trees; the flat top-level scalar `skin` takes the partial when
933
+ * present, else the base. Inner objects are flat (one level), so a single
934
+ * spread per key suffices. Invariant: a config key nested more than one level
935
+ * deep would shallow-merge silently here - if the config ever grows a nested
936
+ * sub-tree, add a dedicated spread for it rather than relying on this pass.
937
+ *
938
+ * @internal
939
+ */
940
+ function mergeConfig(base, partial) {
941
+ return {
942
+ ariaLabels: { ...base.ariaLabels, ...partial.ariaLabels },
943
+ router: { ...base.router, ...partial.router },
944
+ skin: partial.skin ?? base.skin,
945
+ };
946
+ }
947
+ /**
948
+ * Application-root configuration cascade for the breadcrumb family. Pass any
949
+ * combination of `withBreadcrumbAriaLabels`, `withBreadcrumbDataKey`,
950
+ * `withBreadcrumbIconKey`, and `withBreadcrumbSkin` features in
951
+ * `bootstrapApplication`'s providers array.
952
+ *
953
+ * Resolution priority (high -> low):
954
+ * 1. Per-instance Input binding.
955
+ * 2. `provideBreadcrumbConfigAt(...)` in a parent component's `viewProviders`.
956
+ * 3. `provideBreadcrumbConfig(...)` at the application root.
957
+ * 4. Library defaults (`CNGX_BREADCRUMB_DEFAULTS`).
958
+ *
959
+ * The provider deep-merges supplied features with the library defaults so
960
+ * consumers only declare keys they want to override.
961
+ *
962
+ * ```ts
963
+ * bootstrapApplication(AppComponent, {
964
+ * providers: [
965
+ * provideBreadcrumbConfig(
966
+ * withBreadcrumbAriaLabels({ bar: 'Navigation trail' }),
967
+ * withBreadcrumbDataKey('crumb'),
968
+ * ),
969
+ * ],
970
+ * });
971
+ * ```
972
+ *
973
+ * @category ui/breadcrumb
974
+ * @since 0.1.0
975
+ */
976
+ function provideBreadcrumbConfig(...features) {
977
+ // Empty-features: skip the override so the root factory's
978
+ // CNGX_BREADCRUMB_DEFAULTS reference flows through untouched. A fresh
979
+ // mergeConfig(...) would allocate identical content under a new reference
980
+ // and bust downstream identity comparisons.
981
+ if (features.length === 0) {
982
+ return makeEnvironmentProviders([]);
983
+ }
984
+ const partial = reduceFeatures(features);
985
+ return makeEnvironmentProviders([
986
+ {
987
+ provide: CNGX_BREADCRUMB_CONFIG,
988
+ useValue: mergeConfig(CNGX_BREADCRUMB_DEFAULTS, partial),
989
+ },
990
+ ]);
991
+ }
992
+ /**
993
+ * Component-scoped configuration cascade for the breadcrumb family. Pass any
994
+ * combination of feature factories in a parent component's `viewProviders`
995
+ * array.
996
+ *
997
+ * Unlike `provideBreadcrumbConfig` (root-only), `provideBreadcrumbConfigAt`
998
+ * injects the parent injector's `CNGX_BREADCRUMB_CONFIG` value (resolves
999
+ * through the priority chain - root provider, library defaults, or another
1000
+ * `provideBreadcrumbConfigAt` further up) and deep-merges the supplied
1001
+ * features on top. Descendant breadcrumb instances see the merged config;
1002
+ * sibling sub-trees keep the inherited value untouched.
1003
+ *
1004
+ * ```ts
1005
+ * @Component({
1006
+ * viewProviders: [
1007
+ * provideBreadcrumbConfigAt(withBreadcrumbAriaLabels({ bar: 'Trail' })),
1008
+ * ],
1009
+ * template: '<cngx-breadcrumb [items]="crumbs" />',
1010
+ * })
1011
+ * class Section {}
1012
+ * ```
1013
+ *
1014
+ * @category ui/breadcrumb
1015
+ * @since 0.1.0
1016
+ */
1017
+ function provideBreadcrumbConfigAt(...features) {
1018
+ // Empty-features call: parent value flows through untouched. Skipping the
1019
+ // factory preserves reference identity through the sub-tree.
1020
+ if (features.length === 0) {
1021
+ return [];
1022
+ }
1023
+ const partial = reduceFeatures(features);
1024
+ return [
1025
+ {
1026
+ provide: CNGX_BREADCRUMB_CONFIG,
1027
+ useFactory: () => {
1028
+ const parent = inject(CNGX_BREADCRUMB_CONFIG, { skipSelf: true });
1029
+ return mergeConfig(parent, partial);
1030
+ },
1031
+ },
1032
+ ];
1033
+ }
1034
+
1035
+ /**
1036
+ * @module @cngx/ui/breadcrumb
1037
+ */
1038
+
1039
+ /**
1040
+ * Generated bundle index. Do not edit.
1041
+ */
1042
+
1043
+ export { CNGX_BREADCRUMB_CONFIG, CNGX_BREADCRUMB_ITEMS_SOURCE, CNGX_BREADCRUMB_SIBLINGS_SOURCE, CngxBreadcrumbBar, CngxBreadcrumbIcon, CngxBreadcrumbItemAccessory, CngxBreadcrumbOverflow, CngxBreadcrumbOverflowItem, CngxBreadcrumbRouterSync, CngxBreadcrumbSiblingItem, CngxBreadcrumbSiblings, CngxBreadcrumbSiblingsRouterSync, injectBreadcrumbConfig, provideBreadcrumbConfig, provideBreadcrumbConfigAt, withBreadcrumbAriaLabels, withBreadcrumbDataKey, withBreadcrumbIconKey, withBreadcrumbSkin };
1044
+ //# sourceMappingURL=cngx-ui-breadcrumb.mjs.map