@cngx/ui 0.1.0-rc.7 → 0.1.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/a11y/README.md +11 -5
- package/accordion/README.md +4 -2
- package/breadcrumb/README.md +262 -0
- package/collection/README.md +6 -0
- package/command-palette/README.md +227 -0
- package/data-grid-accordion/README.md +76 -2
- package/feedback/README.md +40 -0
- package/fesm2022/cngx-ui-a11y.mjs +189 -57
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +120 -36
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +121 -56
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +228 -108
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +180 -23
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +204 -62
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +395 -119
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +209 -40
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +498 -101
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +16 -6
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +1074 -460
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +76 -7
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +555 -204
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-overlay.mjs +69 -13
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +553 -198
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +344 -109
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +4 -16
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +107 -8
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +146 -46
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +234 -99
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +88 -25
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +98 -23
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +101 -33
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +15 -20
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-paginator/README.md +9 -2
- package/mat-tabs/README.md +30 -6
- package/mat-tabs/styles/mat-tabs.css +188 -42
- package/overlay/README.md +9 -4
- package/package.json +31 -7
- package/paginator/README.md +8 -4
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +91 -0
- package/schematics/package.json +3 -0
- package/sidenav/README.md +33 -11
- package/speak/README.md +3 -2
- package/stepper/README.md +14 -2
- package/timeline/README.md +1 -1
- package/toc/README.md +4 -1
- package/types/cngx-ui-a11y.d.ts +121 -30
- package/types/cngx-ui-accordion.d.ts +100 -28
- package/types/cngx-ui-action-button.d.ts +44 -3
- package/types/cngx-ui-breadcrumb.d.ts +167 -60
- package/types/cngx-ui-chart-panel.d.ts +122 -18
- package/types/cngx-ui-collection.d.ts +157 -55
- package/types/cngx-ui-command-palette.d.ts +297 -183
- package/types/cngx-ui-context-menu.d.ts +140 -10
- package/types/cngx-ui-data-grid-accordion.d.ts +278 -39
- package/types/cngx-ui-empty-state.d.ts +9 -2
- package/types/cngx-ui-feedback.d.ts +605 -59
- package/types/cngx-ui-mat-accordion.d.ts +30 -1
- package/types/cngx-ui-mat-paginator.d.ts +37 -8
- package/types/cngx-ui-mat-stepper.d.ts +23 -11
- package/types/cngx-ui-mat-tabs.d.ts +250 -34
- package/types/cngx-ui-overlay.d.ts +56 -10
- package/types/cngx-ui-paginator.d.ts +425 -136
- package/types/cngx-ui-sidenav.d.ts +248 -74
- package/types/cngx-ui-skeleton.d.ts +6 -7
- package/types/cngx-ui-speak.d.ts +118 -5
- package/types/cngx-ui-stat-card.d.ts +117 -33
- package/types/cngx-ui-stepper.d.ts +88 -49
- package/types/cngx-ui-tabs.d.ts +6 -4
- package/types/cngx-ui-timeline.d.ts +35 -11
- package/types/cngx-ui-toc.d.ts +93 -16
- package/types/cngx-ui.d.ts +7 -4
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { NgTemplateOutlet } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, TemplateRef, Directive, InjectionToken, input, contentChild, ViewEncapsulation, ChangeDetectionStrategy, Component,
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { createControlledSource } from '@cngx/core/utils';
|
|
3
|
+
import { inject, TemplateRef, Directive, isSignal, InjectionToken, input, computed, contentChild, ViewEncapsulation, ChangeDetectionStrategy, Component, ElementRef, afterNextRender, signal, DestroyRef, makeEnvironmentProviders } from '@angular/core';
|
|
4
|
+
import { CngxMenu, CngxMenuItem, CngxMenuTrigger, CNGX_BREADCRUMB, CngxBreadcrumb, CngxBreadcrumbItem, CngxBreadcrumbSeparator } from '@cngx/common/interactive';
|
|
5
|
+
import { injectContainerSize } from '@cngx/common/layout';
|
|
6
|
+
import { createFilledOverrideMerge, createControlledSource, createOverrideMerge } from '@cngx/core/utils';
|
|
8
7
|
import { CngxPopoverPanel, CngxPopoverTrigger } from '@cngx/common/popover';
|
|
8
|
+
import { CngxRuntimeError, cngxDevWarn } from '@cngx/utils';
|
|
9
|
+
import { createLanguageSection } from '@cngx/core/i18n';
|
|
9
10
|
import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
10
|
-
import { Router, NavigationEnd } from '@angular/router';
|
|
11
|
+
import { Router, ActivatedRoute, NavigationEnd } from '@angular/router';
|
|
11
12
|
import { filter } from 'rxjs/operators';
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -142,28 +143,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
142
143
|
}] });
|
|
143
144
|
|
|
144
145
|
/**
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
146
|
+
* The English breadcrumb section: the single source of the breadcrumb family's
|
|
147
|
+
* English copy. The `CNGX_BREADCRUMB_CONFIG` names default to it.
|
|
148
|
+
*
|
|
149
|
+
* @category ui/breadcrumb/i18n
|
|
150
|
+
* @since 0.1.0
|
|
151
|
+
* @relatedTo CNGX_BREADCRUMB_CONFIG
|
|
152
|
+
*/
|
|
153
|
+
const CNGX_BREADCRUMB_LANGUAGE_EN = {
|
|
154
|
+
bar: 'Breadcrumb',
|
|
155
|
+
overflowTrigger: 'Show collapsed breadcrumbs',
|
|
156
|
+
overflowMenu: 'Collapsed breadcrumbs',
|
|
157
|
+
siblingsTrigger: 'Show sibling pages',
|
|
158
|
+
siblingsMenu: 'Sibling pages',
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* The text of a route's breadcrumb data, or `undefined` when it carries none.
|
|
163
|
+
* A `Signal` is read, so a caller inside a `computed()` tracks it.
|
|
164
|
+
*
|
|
165
|
+
* @internal
|
|
166
|
+
*/
|
|
167
|
+
function routeLabelText(raw) {
|
|
168
|
+
const text = isSignal(raw) ? raw() : raw;
|
|
169
|
+
return typeof text === 'string' && text.length > 0 ? text : undefined;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* @internal The breadcrumb section of the active pack over the English section,
|
|
173
|
+
* shared app-wide. Consumers override copy through `withBreadcrumbAriaLabels`.
|
|
174
|
+
*/
|
|
175
|
+
const injectBreadcrumbSiteCopy = createLanguageSection('breadcrumb', CNGX_BREADCRUMB_LANGUAGE_EN);
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Library defaults for the breadcrumb configuration cascade. Carries no copy:
|
|
179
|
+
* the accessible-name defaults are the `breadcrumb` section of the language
|
|
180
|
+
* pack; single keys ride the `withBreadcrumbAriaLabels` feature.
|
|
150
181
|
*
|
|
151
182
|
* Exported for intra-lib consumers (`provideBreadcrumbConfig` deep-merges with
|
|
152
|
-
* this base) but **NOT** re-exported from `public-api.ts
|
|
153
|
-
* consumers reach the defaults via `inject(CNGX_BREADCRUMB_CONFIG)` so
|
|
154
|
-
* `provideBreadcrumbConfig` / `provideBreadcrumbConfigAt` overrides take
|
|
155
|
-
* precedence.
|
|
183
|
+
* this base) but **NOT** re-exported from `public-api.ts`.
|
|
156
184
|
*
|
|
157
185
|
* @internal
|
|
158
186
|
*/
|
|
159
187
|
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
188
|
router: {
|
|
168
189
|
dataKey: 'breadcrumb',
|
|
169
190
|
iconKey: 'icon',
|
|
@@ -202,10 +223,13 @@ const CNGX_BREADCRUMB_CONFIG = new InjectionToken('CNGX_BREADCRUMB_CONFIG', {
|
|
|
202
223
|
* exists so consumers don't import the token directly. Mirrors
|
|
203
224
|
* `injectTagConfig` in `@cngx/common/display`.
|
|
204
225
|
*
|
|
226
|
+
* `ariaLabels` may hold a `Signal`; read the resolved bundle through
|
|
227
|
+
* {@link injectBreadcrumbAriaLabels}.
|
|
228
|
+
*
|
|
205
229
|
* ```ts
|
|
206
|
-
* export class
|
|
230
|
+
* export class MyTrail {
|
|
207
231
|
* private readonly cfg = injectBreadcrumbConfig();
|
|
208
|
-
* readonly
|
|
232
|
+
* protected readonly skin = computed(() => this.cfg.skin ?? 'classic');
|
|
209
233
|
* }
|
|
210
234
|
* ```
|
|
211
235
|
*
|
|
@@ -215,6 +239,26 @@ const CNGX_BREADCRUMB_CONFIG = new InjectionToken('CNGX_BREADCRUMB_CONFIG', {
|
|
|
215
239
|
function injectBreadcrumbConfig() {
|
|
216
240
|
return inject(CNGX_BREADCRUMB_CONFIG);
|
|
217
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* The resolved accessible names of the breadcrumb config in scope, every key
|
|
244
|
+
* the config leaves unset (also a key an override sets to `undefined`) filled
|
|
245
|
+
* from the `breadcrumb` section of the active pack, as a Signal that follows a
|
|
246
|
+
* runtime language switch. Runs in injection context; read it inside a `computed()`,
|
|
247
|
+
* a template or a handler.
|
|
248
|
+
*
|
|
249
|
+
* ```ts
|
|
250
|
+
* export class MyTrail {
|
|
251
|
+
* private readonly labels = injectBreadcrumbAriaLabels();
|
|
252
|
+
* protected readonly name = computed(() => this.labels().bar);
|
|
253
|
+
* }
|
|
254
|
+
* ```
|
|
255
|
+
*
|
|
256
|
+
* @category ui/breadcrumb
|
|
257
|
+
* @since 0.1.0
|
|
258
|
+
*/
|
|
259
|
+
function injectBreadcrumbAriaLabels() {
|
|
260
|
+
return createFilledOverrideMerge(injectBreadcrumbSiteCopy(), injectBreadcrumbConfig().ariaLabels);
|
|
261
|
+
}
|
|
218
262
|
|
|
219
263
|
/**
|
|
220
264
|
* Drop-in overflow menu for {@link CngxBreadcrumbBar}. Presents the crumbs the
|
|
@@ -246,12 +290,14 @@ function injectBreadcrumbConfig() {
|
|
|
246
290
|
*/
|
|
247
291
|
class CngxBreadcrumbOverflow {
|
|
248
292
|
/** Collapse-set contract, provided by the surrounding `cngxBreadcrumb`. */
|
|
249
|
-
breadcrumb =
|
|
250
|
-
|
|
251
|
-
/** Accessible name of the ellipsis trigger.
|
|
252
|
-
triggerLabel = input(
|
|
253
|
-
/** Accessible name of the collapsed-crumb menu.
|
|
254
|
-
menuLabel = input(
|
|
293
|
+
breadcrumb = injectOverflowBreadcrumb();
|
|
294
|
+
ariaLabels = injectBreadcrumbAriaLabels();
|
|
295
|
+
/** Accessible name of the ellipsis trigger. Unbound (`undefined`), it falls back through the config cascade to the EN default. */
|
|
296
|
+
triggerLabel = input(undefined, ...(ngDevMode ? [{ debugName: "triggerLabel" }] : /* istanbul ignore next */ []));
|
|
297
|
+
/** Accessible name of the collapsed-crumb menu. Unbound (`undefined`), it falls back through the config cascade to the EN default. */
|
|
298
|
+
menuLabel = input(undefined, ...(ngDevMode ? [{ debugName: "menuLabel" }] : /* istanbul ignore next */ []));
|
|
299
|
+
resolvedTriggerLabel = computed(() => this.triggerLabel() ?? this.ariaLabels().overflowTrigger, ...(ngDevMode ? [{ debugName: "resolvedTriggerLabel" }] : /* istanbul ignore next */ []));
|
|
300
|
+
resolvedMenuLabel = computed(() => this.menuLabel() ?? this.ariaLabels().overflowMenu, ...(ngDevMode ? [{ debugName: "resolvedMenuLabel" }] : /* istanbul ignore next */ []));
|
|
255
301
|
/**
|
|
256
302
|
* Per-row template forwarded by {@link CngxBreadcrumbBar}. Lets the bar pass a
|
|
257
303
|
* consumer-projected `*cngxBreadcrumbOverflowItem` into this composed overflow,
|
|
@@ -264,7 +310,7 @@ class CngxBreadcrumbOverflow {
|
|
|
264
310
|
/** Resolved row template: a bar-forwarded input wins, else the directly-projected slot. */
|
|
265
311
|
itemTemplate = createControlledSource(this.itemTemplateInput, this.itemTemplateQuery);
|
|
266
312
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbOverflow, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
267
|
-
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]=\"
|
|
313
|
+
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]=\"resolvedTriggerLabel()\"\n (click)=\"panel.popover.toggle()\"\n >\n <ng-content select=\":not([cngxBreadcrumbOverflowItem])\">…</ng-content>\n </button>\n\n <cngx-popover-panel #panel role=\"group\" placement=\"bottom-start\">\n <ul cngxMenu #menu=\"cngxMenu\" [label]=\"resolvedMenuLabel()\" 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);min-inline-size:var(--cngx-target-min, 0px);min-block-size:var(--cngx-target-min, 0px);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 var(--cngx-duration-base, .2s) ease,color var(--cngx-duration-base, .2s) ease,border-color var(--cngx-duration-base, .2s) 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-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250)))));border-color:var( --cngx-breadcrumb-overflow-trigger-hover-border, var(--cngx-color-primary, oklch(.66 .19 50)) )}.cngx-breadcrumb__overflow-menu{--cngx-breadcrumb-overflow-menu-padding: var(--cngx-space-xs, .25rem) 0;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{--cngx-breadcrumb-overflow-item-padding: var(--cngx-space-sm, .5em) var(--cngx-space-sm, .6em);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", "controls", "restoreFocus"], exportAs: ["cngxPopoverTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
268
314
|
}
|
|
269
315
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbOverflow, decorators: [{
|
|
270
316
|
type: Component,
|
|
@@ -275,10 +321,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
275
321
|
CngxMenuTrigger,
|
|
276
322
|
CngxPopoverPanel,
|
|
277
323
|
CngxPopoverTrigger,
|
|
278
|
-
], 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]=\"
|
|
324
|
+
], 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]=\"resolvedTriggerLabel()\"\n (click)=\"panel.popover.toggle()\"\n >\n <ng-content select=\":not([cngxBreadcrumbOverflowItem])\">…</ng-content>\n </button>\n\n <cngx-popover-panel #panel role=\"group\" placement=\"bottom-start\">\n <ul cngxMenu #menu=\"cngxMenu\" [label]=\"resolvedMenuLabel()\" 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);min-inline-size:var(--cngx-target-min, 0px);min-block-size:var(--cngx-target-min, 0px);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 var(--cngx-duration-base, .2s) ease,color var(--cngx-duration-base, .2s) ease,border-color var(--cngx-duration-base, .2s) 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-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250)))));border-color:var( --cngx-breadcrumb-overflow-trigger-hover-border, var(--cngx-color-primary, oklch(.66 .19 50)) )}.cngx-breadcrumb__overflow-menu{--cngx-breadcrumb-overflow-menu-padding: var(--cngx-space-xs, .25rem) 0;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{--cngx-breadcrumb-overflow-item-padding: var(--cngx-space-sm, .5em) var(--cngx-space-sm, .6em);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"] }]
|
|
279
325
|
}], 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), { ...{
|
|
280
326
|
read: TemplateRef,
|
|
281
327
|
}, isSignal: true }] }] } });
|
|
328
|
+
/**
|
|
329
|
+
* Inject the {@link CNGX_BREADCRUMB} of the surrounding breadcrumb for
|
|
330
|
+
* {@link CngxBreadcrumbOverflow}. Throws a `CngxRuntimeError` with code
|
|
331
|
+
* `CNGX3024` when no breadcrumb is above it, in development and production
|
|
332
|
+
* alike.
|
|
333
|
+
*
|
|
334
|
+
* @internal
|
|
335
|
+
*/
|
|
336
|
+
function injectOverflowBreadcrumb() {
|
|
337
|
+
const breadcrumb = inject(CNGX_BREADCRUMB, { optional: true });
|
|
338
|
+
if (!breadcrumb) {
|
|
339
|
+
throw new CngxRuntimeError('CNGX3024', typeof ngDevMode !== 'undefined' &&
|
|
340
|
+
ngDevMode &&
|
|
341
|
+
'[cngx-breadcrumb-overflow] must be placed inside an element with [cngxBreadcrumb].');
|
|
342
|
+
}
|
|
343
|
+
return breadcrumb;
|
|
344
|
+
}
|
|
282
345
|
|
|
283
346
|
/**
|
|
284
347
|
* Structural slot for the per-row body inside the {@link CngxBreadcrumbSiblings}
|
|
@@ -370,11 +433,13 @@ const CNGX_BREADCRUMB_SIBLINGS_SOURCE = new InjectionToken('CNGX_BREADCRUMB_SIBL
|
|
|
370
433
|
class CngxBreadcrumbSiblings {
|
|
371
434
|
/** Static sibling rows. Superseded by a provided `CNGX_BREADCRUMB_SIBLINGS_SOURCE`. */
|
|
372
435
|
siblingsInput = input([], { ...(ngDevMode ? { debugName: "siblingsInput" } : /* istanbul ignore next */ {}), alias: 'siblings' });
|
|
373
|
-
|
|
374
|
-
/** Accessible name of the chevron trigger.
|
|
375
|
-
triggerLabel = input(
|
|
376
|
-
/** Accessible name of the sibling list (kept as `menuLabel` for overflow symmetry).
|
|
377
|
-
menuLabel = input(
|
|
436
|
+
ariaLabels = injectBreadcrumbAriaLabels();
|
|
437
|
+
/** Accessible name of the chevron trigger. Unbound (`undefined`), it falls back through the config cascade to the EN default. */
|
|
438
|
+
triggerLabel = input(undefined, ...(ngDevMode ? [{ debugName: "triggerLabel" }] : /* istanbul ignore next */ []));
|
|
439
|
+
/** Accessible name of the sibling list (kept as `menuLabel` for overflow symmetry). Unbound (`undefined`), it falls back through the config cascade to the EN default. */
|
|
440
|
+
menuLabel = input(undefined, ...(ngDevMode ? [{ debugName: "menuLabel" }] : /* istanbul ignore next */ []));
|
|
441
|
+
resolvedTriggerLabel = computed(() => this.triggerLabel() ?? this.ariaLabels().siblingsTrigger, ...(ngDevMode ? [{ debugName: "resolvedTriggerLabel" }] : /* istanbul ignore next */ []));
|
|
442
|
+
resolvedMenuLabel = computed(() => this.menuLabel() ?? this.ariaLabels().siblingsMenu, ...(ngDevMode ? [{ debugName: "resolvedMenuLabel" }] : /* istanbul ignore next */ []));
|
|
378
443
|
/** Opt-in controlled source (router-sync directive) - wins over `[siblings]`. */
|
|
379
444
|
source = inject(CNGX_BREADCRUMB_SIBLINGS_SOURCE, { optional: true });
|
|
380
445
|
/** Rows the dropdown renders: controlled source wins, else the static input. */
|
|
@@ -384,11 +449,11 @@ class CngxBreadcrumbSiblings {
|
|
|
384
449
|
/** Per-row template overriding the default sibling row, when projected. */
|
|
385
450
|
itemTemplate = contentChild(CngxBreadcrumbSiblingItem, { ...(ngDevMode ? { debugName: "itemTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
|
|
386
451
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbSiblings, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
387
|
-
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]=\"
|
|
452
|
+
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]=\"resolvedTriggerLabel()\"\n (click)=\"panel.popover.toggle()\"\n >\n <ng-content select=\":not([cngxBreadcrumbSiblingItem])\">▾</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]=\"resolvedMenuLabel()\">\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:max(var(--cngx-breadcrumb-siblings-trigger-size, 22px),var(--cngx-target-min, 0px));height:max(var(--cngx-breadcrumb-siblings-trigger-size, 22px),var(--cngx-target-min, 0px));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 var(--cngx-duration-base, .2s) ease,color var(--cngx-duration-base, .2s) ease,transform var(--cngx-duration-base, .2s) 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-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250)))));transform:rotate(180deg)}.cngx-breadcrumb__siblings-menu{--cngx-breadcrumb-siblings-menu-padding: var(--cngx-space-xs, .25rem) 0;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{--cngx-breadcrumb-siblings-item-padding: var(--cngx-space-sm, .45em) var(--cngx-space-sm, .55em);display:flex;align-items:center;padding:var(--cngx-breadcrumb-siblings-item-padding, .45em .55em);min-block-size:var(--cngx-target-min, 0px);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-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250)))));font-weight:600}.cngx-breadcrumb__siblings-link{color:var(--cngx-breadcrumb-siblings-link-color, inherit);text-decoration:var(--cngx-breadcrumb-siblings-link-decoration, none)}@media(forced-colors:active){.cngx-breadcrumb__siblings-item[aria-current=page]{--_cngx-forced-ink: HighlightText;forced-color-adjust:none;background:Highlight;color:var(--_cngx-forced-ink, HighlightText)}}\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", "controls", "restoreFocus"], exportAs: ["cngxPopoverTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
388
453
|
}
|
|
389
454
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbSiblings, decorators: [{
|
|
390
455
|
type: Component,
|
|
391
|
-
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]=\"
|
|
456
|
+
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]=\"resolvedTriggerLabel()\"\n (click)=\"panel.popover.toggle()\"\n >\n <ng-content select=\":not([cngxBreadcrumbSiblingItem])\">▾</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]=\"resolvedMenuLabel()\">\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:max(var(--cngx-breadcrumb-siblings-trigger-size, 22px),var(--cngx-target-min, 0px));height:max(var(--cngx-breadcrumb-siblings-trigger-size, 22px),var(--cngx-target-min, 0px));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 var(--cngx-duration-base, .2s) ease,color var(--cngx-duration-base, .2s) ease,transform var(--cngx-duration-base, .2s) 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-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250)))));transform:rotate(180deg)}.cngx-breadcrumb__siblings-menu{--cngx-breadcrumb-siblings-menu-padding: var(--cngx-space-xs, .25rem) 0;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{--cngx-breadcrumb-siblings-item-padding: var(--cngx-space-sm, .45em) var(--cngx-space-sm, .55em);display:flex;align-items:center;padding:var(--cngx-breadcrumb-siblings-item-padding, .45em .55em);min-block-size:var(--cngx-target-min, 0px);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-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250)))));font-weight:600}.cngx-breadcrumb__siblings-link{color:var(--cngx-breadcrumb-siblings-link-color, inherit);text-decoration:var(--cngx-breadcrumb-siblings-link-decoration, none)}@media(forced-colors:active){.cngx-breadcrumb__siblings-item[aria-current=page]{--_cngx-forced-ink: HighlightText;forced-color-adjust:none;background:Highlight;color:var(--_cngx-forced-ink, HighlightText)}}\n"] }]
|
|
392
457
|
}], 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 }] }] } });
|
|
393
458
|
|
|
394
459
|
/**
|
|
@@ -420,6 +485,12 @@ const CNGX_BREADCRUMB_ITEMS_SOURCE = new InjectionToken('CNGX_BREADCRUMB_ITEMS_S
|
|
|
420
485
|
* <cngx-breadcrumb [items]="crumbs" [maxVisible]="4" skin="pill" />
|
|
421
486
|
* ```
|
|
422
487
|
*
|
|
488
|
+
* Left alone, the crumb cap comes from the bar's own width: 2 crumbs below
|
|
489
|
+
* `30rem`, 4 below `48rem`, 6 above. The thresholds live once, in
|
|
490
|
+
* `breadcrumb-bar.component.css`, as `--cngx-breadcrumb-max-visible` written
|
|
491
|
+
* by `@container` rules on `.cngx-breadcrumb::after`; consumer CSS re-aims
|
|
492
|
+
* them. `[maxVisible]` pins the count and overrides the derivation entirely.
|
|
493
|
+
*
|
|
423
494
|
* @category ui/breadcrumb
|
|
424
495
|
* @docsKind primary
|
|
425
496
|
* @wcag AA
|
|
@@ -430,29 +501,43 @@ const CNGX_BREADCRUMB_ITEMS_SOURCE = new InjectionToken('CNGX_BREADCRUMB_ITEMS_S
|
|
|
430
501
|
* @slot cngxBreadcrumbItemAccessory Trailing control on a crumb, e.g. a siblings dropdown trigger.
|
|
431
502
|
* @slot cngxBreadcrumbOverflowItem Replaces a row inside the collapsed-crumbs menu.
|
|
432
503
|
* <example-url>http://localhost:4200/#/ui/breadcrumb/basic/explicit-items</example-url>
|
|
504
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/variants</example-url>
|
|
505
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/chips</example-url>
|
|
506
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/editorial</example-url>
|
|
507
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/header</example-url>
|
|
508
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/iconlabel</example-url>
|
|
509
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/icononly</example-url>
|
|
510
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/metro</example-url>
|
|
511
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/path</example-url>
|
|
512
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/record</example-url>
|
|
513
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/ribbon</example-url>
|
|
514
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/shell</example-url>
|
|
515
|
+
* <example-url>http://localhost:4200/#/ui/breadcrumb/skins/toolbar</example-url>
|
|
433
516
|
*/
|
|
434
517
|
class CngxBreadcrumbBar {
|
|
435
518
|
/** Uncontrolled trail. Ignored when a {@link CNGX_BREADCRUMB_ITEMS_SOURCE} is provided. */
|
|
436
519
|
itemsInput = input([], { ...(ngDevMode ? { debugName: "itemsInput" } : /* istanbul ignore next */ {}), alias: 'items' });
|
|
437
520
|
/**
|
|
438
|
-
* Maximum crumbs to show before the middle collapses.
|
|
439
|
-
*
|
|
440
|
-
*
|
|
521
|
+
* Maximum crumbs to show before the middle collapses. Pins the count: an
|
|
522
|
+
* explicit value always wins over the width-derived one
|
|
523
|
+
* (controlled/uncontrolled), resolved by {@link effectiveMaxVisible}. Unset,
|
|
524
|
+
* the bar derives the count from its own width - that is the default, there
|
|
525
|
+
* is nothing to switch on.
|
|
441
526
|
*/
|
|
442
527
|
maxVisible = input(undefined, ...(ngDevMode ? [{ debugName: "maxVisible" }] : /* istanbul ignore next */ []));
|
|
528
|
+
// The bar is its own query container (breadcrumb-bar.component.css declares
|
|
529
|
+
// both container properties) and the only reader of the cap, so it observes
|
|
530
|
+
// itself and provides nothing to descendants. The flag lands on ::after
|
|
531
|
+
// because a @container rule cannot style its own container.
|
|
532
|
+
host = inject(ElementRef).nativeElement;
|
|
533
|
+
container = injectContainerSize(this.host);
|
|
534
|
+
cfg = injectBreadcrumbConfig();
|
|
535
|
+
ariaLabels = injectBreadcrumbAriaLabels();
|
|
443
536
|
/**
|
|
444
|
-
*
|
|
445
|
-
*
|
|
446
|
-
* `resolveBreadcrumbTier`. No hand-wired observer or `computed` needed - one
|
|
447
|
-
* attribute makes every skin responsive. Ignored when {@link maxVisible} is set.
|
|
537
|
+
* Accessible name of the `nav` landmark. Unbound (`undefined`), it falls back
|
|
538
|
+
* through the config cascade to the EN default and follows a language switch.
|
|
448
539
|
*/
|
|
449
|
-
|
|
450
|
-
/** Width tiers driving the responsive collapse. Defaults to {@link DEFAULT_BREADCRUMB_WIDTH_TIERS}. */
|
|
451
|
-
responsiveTiers = input(DEFAULT_BREADCRUMB_WIDTH_TIERS, ...(ngDevMode ? [{ debugName: "responsiveTiers" }] : /* istanbul ignore next */ []));
|
|
452
|
-
resize = inject(CngxResizeObserver, { host: true });
|
|
453
|
-
cfg = injectBreadcrumbConfig();
|
|
454
|
-
/** Accessible name of the `nav` landmark. Falls back through the config cascade to the EN default. */
|
|
455
|
-
label = input(this.cfg.ariaLabels?.bar ?? 'Breadcrumb', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
540
|
+
label = input(undefined, ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
456
541
|
/**
|
|
457
542
|
* Visual skin, reflected onto `[data-skin]`. Cascade `input ?? config.skin ??
|
|
458
543
|
* 'classic'`, resolved by {@link resolvedSkin}. Pure thematic concern -
|
|
@@ -483,23 +568,33 @@ class CngxBreadcrumbBar {
|
|
|
483
568
|
overflowRow = contentChild(CngxBreadcrumbOverflowItem, { ...(ngDevMode ? { debugName: "overflowRow" } : /* istanbul ignore next */ {}), read: TemplateRef });
|
|
484
569
|
/** The rendered trail: a provided source wins over the `[items]` input (controlled/uncontrolled). */
|
|
485
570
|
items = createControlledSource(this.itemsSource?.crumbs, this.itemsInput);
|
|
571
|
+
/** Resolved landmark name (`input ?? config.ariaLabels.bar ?? EN default`). */
|
|
572
|
+
resolvedLabel = computed(() => this.label() ?? this.ariaLabels().bar, ...(ngDevMode ? [{ debugName: "resolvedLabel" }] : /* istanbul ignore next */ []));
|
|
486
573
|
/** Resolved skin (`input ?? config.skin ?? 'classic'`), reflected onto `[data-skin]`. */
|
|
487
574
|
resolvedSkin = computed(() => this.skin() ?? this.cfg.skin ?? 'classic', ...(ngDevMode ? [{ debugName: "resolvedSkin" }] : /* istanbul ignore next */ []));
|
|
575
|
+
/** Raw `--cngx-breadcrumb-max-visible`, resolved on the bar's own `::after`. */
|
|
576
|
+
capProperty = this.container.property('--cngx-breadcrumb-max-visible', this.host, '::after');
|
|
488
577
|
/**
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
* a
|
|
492
|
-
* the ResizeObserver fires.
|
|
578
|
+
* Container-derived crumb cap. `undefined` until the first observation (the
|
|
579
|
+
* property reads as the empty string then), so a narrow mount never
|
|
580
|
+
* mis-collapses on a zero-width first read - the sub-frame full-trail
|
|
581
|
+
* transient settles once the `ResizeObserver` fires. The finite check means a
|
|
582
|
+
* malformed consumer override can never reach the collapse as a `NaN`.
|
|
493
583
|
*/
|
|
494
|
-
autoMaxVisible = computed(() =>
|
|
584
|
+
autoMaxVisible = computed(() => {
|
|
585
|
+
const raw = this.capProperty();
|
|
586
|
+
const parsed = Number(raw);
|
|
587
|
+
return raw === '' || !Number.isFinite(parsed) ? undefined : parsed;
|
|
588
|
+
}, ...(ngDevMode ? [{ debugName: "autoMaxVisible" }] : /* istanbul ignore next */ []));
|
|
495
589
|
/**
|
|
496
|
-
* The `maxVisible` forwarded to the inner collapse: explicit
|
|
497
|
-
*
|
|
498
|
-
*
|
|
590
|
+
* The `maxVisible` forwarded to the inner collapse: an explicit
|
|
591
|
+
* `[maxVisible]` pins the count, otherwise the container-derived value
|
|
592
|
+
* applies. Before the first observation `autoMaxVisible` is `undefined`,
|
|
593
|
+
* which renders the full trail rather than guessing at a width.
|
|
499
594
|
*/
|
|
500
|
-
effectiveMaxVisible = computed(() => this.maxVisible() ??
|
|
595
|
+
effectiveMaxVisible = computed(() => this.maxVisible() ?? this.autoMaxVisible(), ...(ngDevMode ? [{ debugName: "effectiveMaxVisible" }] : /* istanbul ignore next */ []));
|
|
501
596
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbBar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
502
|
-
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{--cngx-breadcrumb-gap: var(--cngx-space-sm, .5rem);display:block;font:inherit}.cngx-breadcrumb:dir(rtl){--cngx-breadcrumb-separator: \"\\2039\"}.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{--cngx-breadcrumb-ribbon-notch: 12px;display:inline-flex;align-items:center;padding:.5em 1.1em .5em 1.4em;margin-inline-start:-10px;clip-path:polygon(0 0,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 0,100% 50%,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 100%,0 100%,var(--cngx-breadcrumb-ribbon-notch, 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__link:dir(rtl){clip-path:polygon(100% 0,var(--cngx-breadcrumb-ribbon-notch, 12px) 0,0 50%,var(--cngx-breadcrumb-ribbon-notch, 12px) 100%,100% 100%,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 50%)}.cngx-breadcrumb__crumb:first-child .cngx-breadcrumb__link{padding-inline-start:1em;margin-inline-start:0;clip-path:polygon(0 0,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 0,100% 50%,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 100%,0 100%);border-radius:var(--cngx-breadcrumb-ribbon-radius) 0 0 var(--cngx-breadcrumb-ribbon-radius)}.cngx-breadcrumb__crumb:first-child .cngx-breadcrumb__link:dir(rtl){clip-path:polygon(100% 0,var(--cngx-breadcrumb-ribbon-notch, 12px) 0,0 50%,var(--cngx-breadcrumb-ribbon-notch, 12px) 100%,100% 100%);border-radius:0 var(--cngx-breadcrumb-ribbon-radius) var(--cngx-breadcrumb-ribbon-radius) 0}.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:var(--cngx-breadcrumb-separator, \"\\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-inline-end: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-inline-end: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:var(--cngx-breadcrumb-separator, \"\\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:var(--cngx-breadcrumb-separator, \"\\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:var(--cngx-breadcrumb-separator, \"\\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:var(--cngx-breadcrumb-separator, \"\\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:var(--cngx-breadcrumb-separator, \"\\203a\");font-size:var(--cngx-breadcrumb-record-font-size)}}@media(forced-colors:active){.cngx-breadcrumb__link[aria-current=page]{background:Highlight!important;color:HighlightText!important}}\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 });
|
|
597
|
+
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 }, 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"], ngImport: i0, template: "<nav cngxBreadcrumb [maxVisible]=\"effectiveMaxVisible()\" [label]=\"resolvedLabel()\" #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{--cngx-breadcrumb-gap: var(--cngx-space-sm, .5rem);display:block;font:inherit;container-type:inline-size;container-name:cngx-breadcrumb}.cngx-breadcrumb:after{--cngx-breadcrumb-max-visible: 2}@container cngx-breadcrumb (min-inline-size: 30rem){.cngx-breadcrumb:after{--cngx-breadcrumb-max-visible: 4}}@container cngx-breadcrumb (min-inline-size: 48rem){.cngx-breadcrumb:after{--cngx-breadcrumb-max-visible: 6}}.cngx-breadcrumb:dir(rtl){--cngx-breadcrumb-separator: \"\\2039\"}:root,[data-color-scheme=light],.light{--_cngx-breadcrumb-fill-ink: var(--cngx-color-text, oklch(.2 .01 250))}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--_cngx-breadcrumb-fill-ink: var(--cngx-color-surface, oklch(.2 .01 250))}}[data-color-scheme=dark],.dark{--_cngx-breadcrumb-fill-ink: var(--cngx-color-surface, oklch(.2 .01 250))}.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-max-visible{syntax: \"<integer>\"; inherits: false; initial-value: 2;}@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(.2 .01 250);}@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, var(--_cngx-breadcrumb-fill-ink, oklch(.2 .01 250)));--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(.2 .01 250);}@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, var(--_cngx-breadcrumb-fill-ink, oklch(.2 .01 250)));--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{--cngx-breadcrumb-ribbon-notch: 12px;display:inline-flex;align-items:center;padding:.5em 1.1em .5em 1.4em;margin-inline-start:-10px;clip-path:polygon(0 0,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 0,100% 50%,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 100%,0 100%,var(--cngx-breadcrumb-ribbon-notch, 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__link:dir(rtl){clip-path:polygon(100% 0,var(--cngx-breadcrumb-ribbon-notch, 12px) 0,0 50%,var(--cngx-breadcrumb-ribbon-notch, 12px) 100%,100% 100%,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 50%)}.cngx-breadcrumb__crumb:first-child .cngx-breadcrumb__link{padding-inline-start:1em;margin-inline-start:0;clip-path:polygon(0 0,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 0,100% 50%,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 100%,0 100%);border-radius:var(--cngx-breadcrumb-ribbon-radius) 0 0 var(--cngx-breadcrumb-ribbon-radius)}.cngx-breadcrumb__crumb:first-child .cngx-breadcrumb__link:dir(rtl){clip-path:polygon(100% 0,var(--cngx-breadcrumb-ribbon-notch, 12px) 0,0 50%,var(--cngx-breadcrumb-ribbon-notch, 12px) 100%,100% 100%);border-radius:0 var(--cngx-breadcrumb-ribbon-radius) var(--cngx-breadcrumb-ribbon-radius) 0}.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 var(--cngx-duration-base, .2s) ease,color var(--cngx-duration-base, .2s) 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-color-primary-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250)))),color-mix(in oklch,var(--cngx-color-primary-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250)))) 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:var(--cngx-breadcrumb-separator, \"\\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 var(--cngx-duration-base, .2s) ease,transform var(--cngx-duration-base, .2s) 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(.52 .13 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-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250))));--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-inline-end: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-inline-end: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(.52 .13 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-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250))));--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:var(--cngx-breadcrumb-separator, \"\\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(.52 .13 50);}@property --cngx-breadcrumb-path-sep-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .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-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250))));--cngx-breadcrumb-path-sep-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--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(.52 .13 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-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250))));--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:var(--cngx-breadcrumb-separator, \"\\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(.2 .01 250);}@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, var(--_cngx-breadcrumb-fill-ink, oklch(.2 .01 250)));--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 var(--cngx-duration-base, .2s) 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:var(--cngx-breadcrumb-separator, \"\\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:var(--cngx-breadcrumb-separator, \"\\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:var(--cngx-breadcrumb-separator, \"\\203a\") / \"\";font-size:var(--cngx-breadcrumb-record-font-size)}}@media(forced-colors:active){.cngx-breadcrumb__link[aria-current=page]{background:Highlight!important;color:HighlightText!important;forced-color-adjust:none}}\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 });
|
|
503
598
|
}
|
|
504
599
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbBar, decorators: [{
|
|
505
600
|
type: Component,
|
|
@@ -510,11 +605,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
510
605
|
CngxBreadcrumbSeparator,
|
|
511
606
|
CngxBreadcrumbOverflow,
|
|
512
607
|
CngxBreadcrumbSiblings,
|
|
513
|
-
],
|
|
608
|
+
], host: {
|
|
514
609
|
class: 'cngx-breadcrumb',
|
|
515
610
|
'[attr.data-skin]': 'resolvedSkin()',
|
|
516
|
-
}, 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{--cngx-breadcrumb-gap: var(--cngx-space-sm, .5rem);display:block;font:inherit}.cngx-breadcrumb:dir(rtl){--cngx-breadcrumb-separator: \"\\2039\"}.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{--cngx-breadcrumb-ribbon-notch: 12px;display:inline-flex;align-items:center;padding:.5em 1.1em .5em 1.4em;margin-inline-start:-10px;clip-path:polygon(0 0,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 0,100% 50%,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 100%,0 100%,var(--cngx-breadcrumb-ribbon-notch, 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__link:dir(rtl){clip-path:polygon(100% 0,var(--cngx-breadcrumb-ribbon-notch, 12px) 0,0 50%,var(--cngx-breadcrumb-ribbon-notch, 12px) 100%,100% 100%,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 50%)}.cngx-breadcrumb__crumb:first-child .cngx-breadcrumb__link{padding-inline-start:1em;margin-inline-start:0;clip-path:polygon(0 0,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 0,100% 50%,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 100%,0 100%);border-radius:var(--cngx-breadcrumb-ribbon-radius) 0 0 var(--cngx-breadcrumb-ribbon-radius)}.cngx-breadcrumb__crumb:first-child .cngx-breadcrumb__link:dir(rtl){clip-path:polygon(100% 0,var(--cngx-breadcrumb-ribbon-notch, 12px) 0,0 50%,var(--cngx-breadcrumb-ribbon-notch, 12px) 100%,100% 100%);border-radius:0 var(--cngx-breadcrumb-ribbon-radius) var(--cngx-breadcrumb-ribbon-radius) 0}.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:var(--cngx-breadcrumb-separator, \"\\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-inline-end: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-inline-end: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:var(--cngx-breadcrumb-separator, \"\\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:var(--cngx-breadcrumb-separator, \"\\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:var(--cngx-breadcrumb-separator, \"\\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:var(--cngx-breadcrumb-separator, \"\\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:var(--cngx-breadcrumb-separator, \"\\203a\");font-size:var(--cngx-breadcrumb-record-font-size)}}@media(forced-colors:active){.cngx-breadcrumb__link[aria-current=page]{background:Highlight!important;color:HighlightText!important}}\n"] }]
|
|
517
|
-
}], propDecorators: { itemsInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], maxVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisible", required: false }] }],
|
|
611
|
+
}, template: "<nav cngxBreadcrumb [maxVisible]=\"effectiveMaxVisible()\" [label]=\"resolvedLabel()\" #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{--cngx-breadcrumb-gap: var(--cngx-space-sm, .5rem);display:block;font:inherit;container-type:inline-size;container-name:cngx-breadcrumb}.cngx-breadcrumb:after{--cngx-breadcrumb-max-visible: 2}@container cngx-breadcrumb (min-inline-size: 30rem){.cngx-breadcrumb:after{--cngx-breadcrumb-max-visible: 4}}@container cngx-breadcrumb (min-inline-size: 48rem){.cngx-breadcrumb:after{--cngx-breadcrumb-max-visible: 6}}.cngx-breadcrumb:dir(rtl){--cngx-breadcrumb-separator: \"\\2039\"}:root,[data-color-scheme=light],.light{--_cngx-breadcrumb-fill-ink: var(--cngx-color-text, oklch(.2 .01 250))}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--_cngx-breadcrumb-fill-ink: var(--cngx-color-surface, oklch(.2 .01 250))}}[data-color-scheme=dark],.dark{--_cngx-breadcrumb-fill-ink: var(--cngx-color-surface, oklch(.2 .01 250))}.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-max-visible{syntax: \"<integer>\"; inherits: false; initial-value: 2;}@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(.2 .01 250);}@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, var(--_cngx-breadcrumb-fill-ink, oklch(.2 .01 250)));--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(.2 .01 250);}@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, var(--_cngx-breadcrumb-fill-ink, oklch(.2 .01 250)));--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{--cngx-breadcrumb-ribbon-notch: 12px;display:inline-flex;align-items:center;padding:.5em 1.1em .5em 1.4em;margin-inline-start:-10px;clip-path:polygon(0 0,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 0,100% 50%,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 100%,0 100%,var(--cngx-breadcrumb-ribbon-notch, 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__link:dir(rtl){clip-path:polygon(100% 0,var(--cngx-breadcrumb-ribbon-notch, 12px) 0,0 50%,var(--cngx-breadcrumb-ribbon-notch, 12px) 100%,100% 100%,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 50%)}.cngx-breadcrumb__crumb:first-child .cngx-breadcrumb__link{padding-inline-start:1em;margin-inline-start:0;clip-path:polygon(0 0,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 0,100% 50%,calc(100% - var(--cngx-breadcrumb-ribbon-notch, 12px)) 100%,0 100%);border-radius:var(--cngx-breadcrumb-ribbon-radius) 0 0 var(--cngx-breadcrumb-ribbon-radius)}.cngx-breadcrumb__crumb:first-child .cngx-breadcrumb__link:dir(rtl){clip-path:polygon(100% 0,var(--cngx-breadcrumb-ribbon-notch, 12px) 0,0 50%,var(--cngx-breadcrumb-ribbon-notch, 12px) 100%,100% 100%);border-radius:0 var(--cngx-breadcrumb-ribbon-radius) var(--cngx-breadcrumb-ribbon-radius) 0}.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 var(--cngx-duration-base, .2s) ease,color var(--cngx-duration-base, .2s) 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-color-primary-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250)))),color-mix(in oklch,var(--cngx-color-primary-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250)))) 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:var(--cngx-breadcrumb-separator, \"\\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 var(--cngx-duration-base, .2s) ease,transform var(--cngx-duration-base, .2s) 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(.52 .13 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-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250))));--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-inline-end: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-inline-end: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(.52 .13 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-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250))));--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:var(--cngx-breadcrumb-separator, \"\\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(.52 .13 50);}@property --cngx-breadcrumb-path-sep-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .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-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250))));--cngx-breadcrumb-path-sep-color: var(--cngx-color-text-muted, oklch(.5 .01 250));--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(.52 .13 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-text, color-mix(in oklab, var(--cngx-color-primary, oklch(.66 .19 50)) 70%, var(--cngx-color-text, oklch(.2 .01 250))));--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:var(--cngx-breadcrumb-separator, \"\\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(.2 .01 250);}@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, var(--_cngx-breadcrumb-fill-ink, oklch(.2 .01 250)));--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 var(--cngx-duration-base, .2s) 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:var(--cngx-breadcrumb-separator, \"\\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:var(--cngx-breadcrumb-separator, \"\\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:var(--cngx-breadcrumb-separator, \"\\203a\") / \"\";font-size:var(--cngx-breadcrumb-record-font-size)}}@media(forced-colors:active){.cngx-breadcrumb__link[aria-current=page]{background:Highlight!important;color:HighlightText!important;forced-color-adjust:none}}\n"] }]
|
|
612
|
+
}], propDecorators: { itemsInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], maxVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisible", 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 }] }] } });
|
|
518
613
|
|
|
519
614
|
/**
|
|
520
615
|
* Positional shape equality for two crumb trails. The router source maps a
|
|
@@ -546,8 +641,9 @@ function crumbsEqual(a, b) {
|
|
|
546
641
|
* Opt-in router mode for {@link CngxBreadcrumbBar}. Add `routerSync` to a
|
|
547
642
|
* `<cngx-breadcrumb>` and the trail is derived from the activated route tree -
|
|
548
643
|
* every route whose `data[dataKey]` (default `data.breadcrumb`) is a non-empty
|
|
549
|
-
* string
|
|
550
|
-
*
|
|
644
|
+
* string or a `Signal` of one ({@link CngxBreadcrumbRouteLabel}, the app's own
|
|
645
|
+
* translation) contributes a crumb, terminal marking follows from
|
|
646
|
+
* position. The bar reads the trail through the {@link CNGX_BREADCRUMB_ITEMS_SOURCE} seam
|
|
551
647
|
* (provided here via `useExisting`), so the directive never writes the bar's
|
|
552
648
|
* `[items]` input and never injects the concrete bar class - decompose-clean
|
|
553
649
|
* (Pillar 1; reference_atomic_decompose rule 4).
|
|
@@ -595,29 +691,33 @@ class CngxBreadcrumbRouterSync {
|
|
|
595
691
|
/** The router-derived trail. Wins over the bar's `[items]` input. */
|
|
596
692
|
crumbs;
|
|
597
693
|
constructor() {
|
|
694
|
+
// Router is providedIn: 'root' and resolves without provideRouter(...);
|
|
695
|
+
// ActivatedRoute does not, so it is the "router is set up" signal.
|
|
696
|
+
const route = inject(ActivatedRoute, { optional: true });
|
|
598
697
|
const router = this.router;
|
|
599
|
-
if (!router) {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
'
|
|
603
|
-
|
|
698
|
+
if (!router || !route) {
|
|
699
|
+
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
700
|
+
afterNextRender(() => {
|
|
701
|
+
cngxDevWarn('CNGX3001', '[cngxRouterSync] on <cngx-breadcrumb>: no Router / ActivatedRoute available - directive is a no-op. ' +
|
|
702
|
+
'Provide @angular/router via provideRouter(...) to enable router-driven crumbs.');
|
|
703
|
+
});
|
|
704
|
+
}
|
|
604
705
|
this.crumbs = signal([]).asReadonly();
|
|
605
706
|
return;
|
|
606
707
|
}
|
|
607
708
|
const destroyRef = inject(DestroyRef);
|
|
608
709
|
const navEnd = toSignal(router.events.pipe(filter((e) => e instanceof NavigationEnd), takeUntilDestroyed(destroyRef)), { initialValue: null });
|
|
609
|
-
// Derive the trail from the navigation trigger
|
|
610
|
-
// so a runtime dataKey change
|
|
611
|
-
//
|
|
710
|
+
// Derive the trail from the navigation trigger, dataKey and any Signal
|
|
711
|
+
// route label - all tracked, so a runtime dataKey change or the app's
|
|
712
|
+
// language switch re-reads the tree too. The route snapshot is read
|
|
713
|
+
// imperatively per recompute; navEnd is the tracked trigger (Pillar 1).
|
|
612
714
|
this.crumbs = computed(() => {
|
|
613
715
|
navEnd();
|
|
614
716
|
return buildCrumbs(router, this.dataKey(), this.iconKey());
|
|
615
717
|
}, { ...(ngDevMode ? { debugName: "crumbs" } : /* istanbul ignore next */ {}), equal: crumbsEqual });
|
|
616
718
|
}
|
|
617
719
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbRouterSync, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
618
|
-
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: [
|
|
619
|
-
{ provide: CNGX_BREADCRUMB_ITEMS_SOURCE, useExisting: CngxBreadcrumbRouterSync },
|
|
620
|
-
], exportAs: ["cngxBreadcrumbRouterSync"], ngImport: i0 });
|
|
720
|
+
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: [{ provide: CNGX_BREADCRUMB_ITEMS_SOURCE, useExisting: CngxBreadcrumbRouterSync }], exportAs: ["cngxBreadcrumbRouterSync"], ngImport: i0 });
|
|
621
721
|
}
|
|
622
722
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxBreadcrumbRouterSync, decorators: [{
|
|
623
723
|
type: Directive,
|
|
@@ -625,33 +725,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
625
725
|
selector: 'cngx-breadcrumb[cngxRouterSync]',
|
|
626
726
|
exportAs: 'cngxBreadcrumbRouterSync',
|
|
627
727
|
standalone: true,
|
|
628
|
-
providers: [
|
|
629
|
-
{ provide: CNGX_BREADCRUMB_ITEMS_SOURCE, useExisting: CngxBreadcrumbRouterSync },
|
|
630
|
-
],
|
|
728
|
+
providers: [{ provide: CNGX_BREADCRUMB_ITEMS_SOURCE, useExisting: CngxBreadcrumbRouterSync }],
|
|
631
729
|
}]
|
|
632
730
|
}], ctorParameters: () => [], propDecorators: { dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], iconKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconKey", required: false }] }] } });
|
|
633
731
|
/**
|
|
634
732
|
* Walks the activated route tree from the root down the firstChild chain,
|
|
635
733
|
* accumulating the URL and emitting one crumb per route whose `data[dataKey]`
|
|
636
|
-
* is a non-empty string
|
|
637
|
-
*
|
|
638
|
-
*
|
|
734
|
+
* is a non-empty string or a `Signal` of one (read here, so the trail tracks
|
|
735
|
+
* it). A non-empty `data[iconKey]` string rides onto the crumb's opaque `icon`
|
|
736
|
+
* (the leading icon slot renders it; deepest wins on the componentless-collapse
|
|
737
|
+
* branch, like the label).
|
|
639
738
|
*/
|
|
640
739
|
function buildCrumbs(router, dataKey, iconKey) {
|
|
641
740
|
const crumbs = [];
|
|
642
741
|
let route = router.routerState.snapshot.root;
|
|
643
742
|
let url = '';
|
|
644
743
|
while (route) {
|
|
645
|
-
|
|
744
|
+
// toString(), not .path: the serialized segment keeps percent-encoding
|
|
745
|
+
// (reserved chars in a param value) and matrix params; the raw decoded
|
|
746
|
+
// path would emit hrefs the router cannot round-trip.
|
|
747
|
+
const segment = route.url.map((s) => s.toString()).join('/');
|
|
646
748
|
if (segment) {
|
|
647
749
|
url += `/${segment}`;
|
|
648
750
|
}
|
|
649
|
-
const
|
|
650
|
-
if (
|
|
751
|
+
const label = routeLabelText(route.data[dataKey]);
|
|
752
|
+
if (label !== undefined) {
|
|
651
753
|
const href = url || '/';
|
|
652
754
|
const rawIcon = route.data[iconKey];
|
|
653
755
|
const icon = typeof rawIcon === 'string' && rawIcon.length > 0 ? rawIcon : undefined;
|
|
654
|
-
const next = icon !== undefined ? { label
|
|
756
|
+
const next = icon !== undefined ? { label, href, icon } : { label, href };
|
|
655
757
|
const prev = crumbs[crumbs.length - 1];
|
|
656
758
|
if (prev?.href === href) {
|
|
657
759
|
// A segment-less (componentless) route carrying a breadcrumb reuses the
|
|
@@ -711,6 +813,12 @@ function siblingsEqual(a, b) {
|
|
|
711
813
|
* navigation does not cascade. `Router` is optional - without it the directive
|
|
712
814
|
* logs a dev warning and stays an empty source.
|
|
713
815
|
*
|
|
816
|
+
* Sibling hrefs are built from the static route-config `path` patterns, so a
|
|
817
|
+
* parameterized sibling (`:id`) emits its pattern verbatim - such routes have
|
|
818
|
+
* no single static URL. Supply `[siblings]` directly (or a custom
|
|
819
|
+
* {@link CNGX_BREADCRUMB_SIBLINGS_SOURCE}) when sibling links need resolved
|
|
820
|
+
* route params.
|
|
821
|
+
*
|
|
714
822
|
* ```html
|
|
715
823
|
* <cngx-breadcrumb-siblings cngxRouterSync [depth]="1" />
|
|
716
824
|
* ```
|
|
@@ -750,21 +858,26 @@ class CngxBreadcrumbSiblingsRouterSync {
|
|
|
750
858
|
/** The router-derived siblings. Wins over the component's `[siblings]` input. */
|
|
751
859
|
siblings;
|
|
752
860
|
constructor() {
|
|
861
|
+
// Router is providedIn: 'root' and resolves without provideRouter(...);
|
|
862
|
+
// ActivatedRoute does not, so it is the "router is set up" signal.
|
|
863
|
+
const route = inject(ActivatedRoute, { optional: true });
|
|
753
864
|
const router = this.router;
|
|
754
|
-
if (!router) {
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
'
|
|
758
|
-
|
|
865
|
+
if (!router || !route) {
|
|
866
|
+
if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
867
|
+
afterNextRender(() => {
|
|
868
|
+
cngxDevWarn('CNGX3001', '[cngxRouterSync] on <cngx-breadcrumb-siblings>: no Router / ActivatedRoute available - directive is a no-op. ' +
|
|
869
|
+
'Provide @angular/router via provideRouter(...) to enable router-driven siblings.');
|
|
870
|
+
});
|
|
871
|
+
}
|
|
759
872
|
this.siblings = signal([]).asReadonly();
|
|
760
873
|
return;
|
|
761
874
|
}
|
|
762
875
|
const destroyRef = inject(DestroyRef);
|
|
763
876
|
const navEnd = toSignal(router.events.pipe(filter((e) => e instanceof NavigationEnd), takeUntilDestroyed(destroyRef)), { initialValue: null });
|
|
764
|
-
// Derive the set from the navigation trigger, depth, and
|
|
765
|
-
//
|
|
766
|
-
//
|
|
767
|
-
// trigger (Pillar 1).
|
|
877
|
+
// Derive the set from the navigation trigger, depth, dataKey and any Signal
|
|
878
|
+
// route label - all tracked, so a runtime depth/dataKey change or the app's
|
|
879
|
+
// language switch re-reads the tree too. The route snapshot is read
|
|
880
|
+
// imperatively per recompute; navEnd is the tracked trigger (Pillar 1).
|
|
768
881
|
this.siblings = computed(() => {
|
|
769
882
|
navEnd();
|
|
770
883
|
return buildSiblings(router, this.depth(), this.dataKey());
|
|
@@ -789,7 +902,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
789
902
|
/**
|
|
790
903
|
* Enumerates the sibling routes at `depth` in the activated route chain: the
|
|
791
904
|
* children of that level's parent (or the root config at depth 0) whose
|
|
792
|
-
* `data[dataKey]` is a non-empty string, marking the active
|
|
905
|
+
* `data[dataKey]` is a non-empty string or a `Signal` of one, marking the active
|
|
906
|
+
* child `current`.
|
|
793
907
|
* Sibling configs come from the static route configuration, not the activated
|
|
794
908
|
* snapshot (which only holds the one active child), so the whole set of
|
|
795
909
|
* alternatives is visible. Duplicate hrefs are collapsed like `buildCrumbs`.
|
|
@@ -813,7 +927,9 @@ function buildSiblings(router, depth, dataKey) {
|
|
|
813
927
|
const parent = chain[depth - 1];
|
|
814
928
|
siblingConfigs = parent?.routeConfig?.children ?? [];
|
|
815
929
|
for (let i = 0; i < depth && i < chain.length; i++) {
|
|
816
|
-
|
|
930
|
+
// toString(), not .path: keeps percent-encoding and matrix params in
|
|
931
|
+
// the accumulated prefix (same rule as the crumb sync).
|
|
932
|
+
const seg = chain[i].url.map((s) => s.toString()).join('/');
|
|
817
933
|
if (seg) {
|
|
818
934
|
prefix += `/${seg}`;
|
|
819
935
|
}
|
|
@@ -821,8 +937,8 @@ function buildSiblings(router, depth, dataKey) {
|
|
|
821
937
|
}
|
|
822
938
|
const out = [];
|
|
823
939
|
for (const cfg of siblingConfigs) {
|
|
824
|
-
const
|
|
825
|
-
if (
|
|
940
|
+
const label = routeLabelText(cfg.data?.[dataKey]);
|
|
941
|
+
if (label === undefined) {
|
|
826
942
|
continue;
|
|
827
943
|
}
|
|
828
944
|
const seg = cfg.path ?? '';
|
|
@@ -833,10 +949,12 @@ function buildSiblings(router, depth, dataKey) {
|
|
|
833
949
|
// A path-less sibling reuses the parent URL; collapse it - deepest label
|
|
834
950
|
// wins, current stays set if either matched - so the set never emits a
|
|
835
951
|
// duplicate href (the dropdown's @for track would otherwise collide).
|
|
836
|
-
|
|
952
|
+
// Boolean either-matched, deliberately not ?? - a false on the earlier
|
|
953
|
+
// row must not eat the active config's match.
|
|
954
|
+
out[out.length - 1] = { label, href, current: !!prev.current || current };
|
|
837
955
|
}
|
|
838
956
|
else {
|
|
839
|
-
out.push({ label
|
|
957
|
+
out.push({ label, href, current });
|
|
840
958
|
}
|
|
841
959
|
}
|
|
842
960
|
return out;
|
|
@@ -846,7 +964,8 @@ function buildSiblings(router, depth, dataKey) {
|
|
|
846
964
|
* Override the breadcrumb family's ARIA-string fallbacks - the bar landmark
|
|
847
965
|
* name and the overflow/siblings trigger + list labels. Per-instance
|
|
848
966
|
* `[label]` / `[triggerLabel]` / `[menuLabel]` bindings still win over the
|
|
849
|
-
* cascade; this only sets the fallback.
|
|
967
|
+
* cascade; this only sets the fallback. Pass a `Signal` to switch the
|
|
968
|
+
* language at runtime.
|
|
850
969
|
*
|
|
851
970
|
* ```ts
|
|
852
971
|
* provideBreadcrumbConfig(
|
|
@@ -907,6 +1026,7 @@ function withBreadcrumbSkin(skin) {
|
|
|
907
1026
|
return { kind: 'skin', payload: { skin } };
|
|
908
1027
|
}
|
|
909
1028
|
|
|
1029
|
+
const NO_ARIA_LABELS = {};
|
|
910
1030
|
/**
|
|
911
1031
|
* Reduces a list of feature objects into a partial config - last write wins
|
|
912
1032
|
* per sub-tree. Inner objects are spread-merged so partial overrides compose
|
|
@@ -919,7 +1039,7 @@ function reduceFeatures(features) {
|
|
|
919
1039
|
for (const f of features) {
|
|
920
1040
|
switch (f.kind) {
|
|
921
1041
|
case 'ariaLabels':
|
|
922
|
-
out.ariaLabels =
|
|
1042
|
+
out.ariaLabels = createOverrideMerge(out.ariaLabels ?? NO_ARIA_LABELS, f.payload);
|
|
923
1043
|
break;
|
|
924
1044
|
case 'router':
|
|
925
1045
|
out.router = { ...out.router, ...f.payload };
|
|
@@ -944,7 +1064,7 @@ function reduceFeatures(features) {
|
|
|
944
1064
|
*/
|
|
945
1065
|
function mergeConfig(base, partial) {
|
|
946
1066
|
return {
|
|
947
|
-
ariaLabels:
|
|
1067
|
+
ariaLabels: createOverrideMerge(base.ariaLabels ?? NO_ARIA_LABELS, partial.ariaLabels),
|
|
948
1068
|
router: { ...base.router, ...partial.router },
|
|
949
1069
|
skin: partial.skin ?? base.skin,
|
|
950
1070
|
};
|
|
@@ -1045,5 +1165,5 @@ function provideBreadcrumbConfigAt(...features) {
|
|
|
1045
1165
|
* Generated bundle index. Do not edit.
|
|
1046
1166
|
*/
|
|
1047
1167
|
|
|
1048
|
-
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 };
|
|
1168
|
+
export { CNGX_BREADCRUMB_CONFIG, CNGX_BREADCRUMB_ITEMS_SOURCE, CNGX_BREADCRUMB_LANGUAGE_EN, CNGX_BREADCRUMB_SIBLINGS_SOURCE, CngxBreadcrumbBar, CngxBreadcrumbIcon, CngxBreadcrumbItemAccessory, CngxBreadcrumbOverflow, CngxBreadcrumbOverflowItem, CngxBreadcrumbRouterSync, CngxBreadcrumbSiblingItem, CngxBreadcrumbSiblings, CngxBreadcrumbSiblingsRouterSync, injectBreadcrumbAriaLabels, injectBreadcrumbConfig, provideBreadcrumbConfig, provideBreadcrumbConfigAt, withBreadcrumbAriaLabels, withBreadcrumbDataKey, withBreadcrumbIconKey, withBreadcrumbSkin };
|
|
1049
1169
|
//# sourceMappingURL=cngx-ui-breadcrumb.mjs.map
|