@cngx/ui 0.1.0-rc.0 → 0.1.0-rc.2

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.
@@ -1,24 +1,34 @@
1
1
  import { NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { input, inject, ElementRef, Injector, contentChildren, contentChild, ViewEncapsulation, ChangeDetectionStrategy, Component, viewChild, DestroyRef, linkedSignal, computed, isDevMode, afterNextRender, effect, untracked } from '@angular/core';
3
+ import { input, inject, ElementRef, Injector, contentChildren, contentChild, signal, afterRenderEffect, isDevMode, afterNextRender, linkedSignal, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, viewChild, DestroyRef, effect, untracked } from '@angular/core';
4
4
  import * as i2 from '@cngx/common/a11y';
5
- import { CngxLiveRegion, CngxRovingItem, CngxRovingTabindex, CngxFocusRestore, CngxActiveDescendant } from '@cngx/common/a11y';
5
+ import { CNGX_FOCUSABLE_SELECTOR, CngxLiveRegion, CngxFocusRestore, CngxActiveDescendant } from '@cngx/common/a11y';
6
6
  import * as i1 from '@cngx/common/tabs';
7
- import { CNGX_TAB_GROUP_HOST, injectTabsI18n, injectTabsConfig, CNGX_TABS_GLYPHS, CngxTab, CngxTabErrorBadge, CngxTabRejectionIcon, CngxTabBusySpinner, createTabGroupAnnouncements, CNGX_ORGANISM_SCROLL_SYNC_FACTORY, CNGX_DIRECTIVE_BY_ID_MAP_FACTORY, createTabGroupTemplateBindings, CNGX_TAB_PANEL_HOST, CngxTabGroupPresenter, CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY, tabOverflowOptionId, CngxTabOverflowTrigger, CngxTabOverflowItem, createTabOverflowTemplateBindings, CNGX_DOM_ANCHOR_RETRY_FACTORY, CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY } from '@cngx/common/tabs';
7
+ import { CNGX_TAB_GROUP_HOST, injectTabsI18n, injectTabsConfig, CNGX_TABS_GLYPHS, CngxTab, CngxTabErrorBadge, CngxTabRejectionIcon, CngxTabBusySpinner, CngxTabIcon, CngxTabCloseIcon, CngxTabAddIcon, createTabDismissals, createTabKeyboardNav, createTabGroupAnnouncements, createTabsHostAttrs, CNGX_ORGANISM_SCROLL_SYNC_FACTORY, CNGX_DIRECTIVE_BY_ID_MAP_FACTORY, createTabGroupTemplateBindings, CNGX_TAB_PANEL_HOST, CngxTabGroupPresenter, CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY, tabOverflowOptionId, CngxTabOverflowTrigger, CngxTabOverflowItem, createTabOverflowTemplateBindings, CNGX_DOM_ANCHOR_RETRY_FACTORY, CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY } from '@cngx/common/tabs';
8
8
  import { CngxClickOutside } from '@cngx/common/interactive';
9
9
  import { CngxPopover, CngxPopoverTrigger } from '@cngx/common/popover';
10
10
 
11
11
  /**
12
- * CNGX tab-group organism. Thin shell over {@link CngxTabGroupPresenter}
13
- * + `CngxRovingTabindex` + `CngxFocusRestore` via `hostDirectives`.
14
- * Material variant lives at `[cngxMatTabs]` in `@cngx/ui/mat-tabs`.
12
+ * CNGX tab-group organism. \
13
+ * Thin shell over {@link CngxTabGroupPresenter}
14
+ * and `CngxFocusRestore` via `hostDirectives`. The APG tablist keyboard
15
+ * model (automatic activation: arrow keys move focus AND select; Home/End
16
+ * jump to first/last; the active tab is the lone tab stop) lives in
17
+ * {@link createTabKeyboardNav}, deriving the roving stop from the
18
+ * presenter's `activeId` rather than a competing index. Material variant
19
+ * lives at `[cngxMatTabs]` in `@cngx/ui/mat-tabs`.
15
20
  *
16
21
  * All ARIA attrs are signal-driven - never one-shot bindings.
17
22
  * `CngxLiveRegion` is mounted as a child `<span>` rather than a
18
23
  * host directive: its `role="status"` would clobber the wrapper's
19
24
  * `role="group"` landmark.
20
25
  *
26
+ * @playground Material theme coverage across all skins ./examples/material-theme-coverage/skins-coverage.component.ts
27
+ * @playground Overflow "More" menu under resize ./examples/overflow-resize/overflow-resize.component.ts
28
+ * @playground Async commit-action (optimistic / pessimistic) ./examples/async-commit/async-commit.component.ts
29
+ * @playground Dismissable + addable tabs ./examples/dynamic-tabs/dynamic-tabs.component.ts
21
30
  * @playground Form error aggregation ./examples/form-errors/form-errors.component.ts
31
+ * @playground Routed tabs with a CanDeactivate guard ./examples/routed-outlet/routed-outlet.component.ts
22
32
  * @see {@link CngxMatTabs} for the Material `<mat-tab-group>` variant with `[cngxMatTabError]`.
23
33
  *
24
34
  * @category ui/tabs
@@ -26,23 +36,65 @@ import { CngxPopover, CngxPopoverTrigger } from '@cngx/common/popover';
26
36
  * @wcag AA
27
37
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-group.component.ts
28
38
  * @since 0.1.0
29
- * @relatedTo CngxTabOverflow, CngxTabGroupPresenter, CngxTab, CngxRovingTabindex, CngxFocusRestore
39
+ * @relatedTo CngxTabOverflow, CngxTabGroupPresenter, CngxTab, CngxFocusRestore
30
40
  * <example-url>http://localhost:4200/#/ui/tabs/tab-commit-action/optimistic-pessimistic-commits-with-bridge-directives</example-url>
31
41
  * <example-url>http://localhost:4200/#/ui/tabs/tab-error-aggregation/per-tab-error-badges</example-url>
32
- * <example-url>http://localhost:4200/#/ui/tabs/tab-group-vertical/vertical-sidebar-tabs</example-url>
33
- * <example-url>http://localhost:4200/#/ui/tabs/tab-group/three-tab-navigation</example-url>
34
- * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/8-tabs-in-a-narrow-container</example-url>
35
- * <example-url>http://localhost:4200/#/ui/tabs/tab-slot-overrides/custom-busy-spinner-via-code-cngxtabbusyspinner-code</example-url>
36
- * <example-url>http://localhost:4200/#/ui/tabs/tab-slot-overrides/custom-error-badge-via-code-cngxtaberrorbadge-code</example-url>
37
- * <example-url>http://localhost:4200/#/ui/tabs/tab-slot-overrides/rejection-decoration-via-code-cngxtabrejectionicon-code</example-url>
42
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/all-skins-side-by-side</example-url>
43
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/contained</example-url>
44
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/line</example-url>
45
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/pill</example-url>
46
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/pill-vs-toggle-group</example-url>
47
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/vertical-skins</example-url>
38
48
  */
39
49
  class CngxTabGroup {
40
50
  ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
41
51
  ariaLabelledBy = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabelledBy" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
52
+ /**
53
+ * Visual skin. Cascade `input ?? config ?? 'line'`, resolved by
54
+ * {@link hostAttrs} and reflected onto `[data-skin]`. The skin is a
55
+ * pure CSS concern - structure, slots, ARIA, and keyboard behaviour
56
+ * are identical across all values. Public (consumer-facing input,
57
+ * like `ariaLabel`); the resolved value, not the raw input, is what
58
+ * the host binding reads.
59
+ */
60
+ skin = input(undefined, ...(ngDevMode ? [{ debugName: "skin" }] : /* istanbul ignore next */ []));
61
+ /**
62
+ * Icon layout. Cascade `input ?? config ?? 'start'`, reflected onto
63
+ * `[data-icon-layout]`. Orthogonal to skin and orientation.
64
+ */
65
+ iconLayout = input(undefined, ...(ngDevMode ? [{ debugName: "iconLayout" }] : /* istanbul ignore next */ []));
66
+ /**
67
+ * Panel render strategy. Cascade `input ?? config ?? 'eager'`,
68
+ * reflected onto `[data-panel-mode]`. `'eager'` (default) renders every
69
+ * panel's content up front (byte-identical to before this input
70
+ * existed); `'lazy'` keep-alives content after first activation;
71
+ * `'lazy-destroy'` renders only the active panel's content. The panel
72
+ * `<div>` always stays in the DOM regardless.
73
+ */
74
+ panelMode = input(undefined, ...(ngDevMode ? [{ debugName: "panelMode" }] : /* istanbul ignore next */ []));
75
+ /** Stretch tabs to fill the strip width (horizontal only); reflects `[data-fitted]`. Cascade `input ?? config ?? false`. */
76
+ fitted = input(undefined, ...(ngDevMode ? [{ debugName: "fitted" }] : /* istanbul ignore next */ []));
77
+ /** Tab-cluster alignment when not fitted (horizontal only); reflects `[data-tab-align]`. Cascade `input ?? config ?? 'start'`. */
78
+ tabAlign = input(undefined, ...(ngDevMode ? [{ debugName: "tabAlign" }] : /* istanbul ignore next */ []));
79
+ /**
80
+ * Whether tabs render a close affordance. Cascade
81
+ * `input ?? config ?? false`. A per-`CngxTab` `[closable]` override
82
+ * wins over this group default. When on, each closable tab gets a
83
+ * close button (and Delete on the focused tab closes it); the
84
+ * `(tabClose)` output fires with the tab id and index for the
85
+ * consumer to remove from its data.
86
+ */
87
+ closable = input(undefined, ...(ngDevMode ? [{ debugName: "closable" }] : /* istanbul ignore next */ []));
88
+ /**
89
+ * Whether the group renders an add-tab button after the strip. Cascade
90
+ * `input ?? config ?? false`. When on, the `(tabAdd)` output fires for
91
+ * the consumer to append a tab to its data.
92
+ */
93
+ addable = input(undefined, ...(ngDevMode ? [{ debugName: "addable" }] : /* istanbul ignore next */ []));
42
94
  presenter = inject(CNGX_TAB_GROUP_HOST);
43
95
  i18n = injectTabsI18n();
44
96
  config = injectTabsConfig();
45
- /** Default-glyph table for the template's fallback spans. Pillar 1. */
97
+ /** Default-glyph table for the template's fallback spans. */
46
98
  glyphs = CNGX_TABS_GLYPHS;
47
99
  hostElement = inject(ElementRef).nativeElement;
48
100
  injector = inject(Injector);
@@ -56,6 +108,34 @@ class CngxTabGroup {
56
108
  errorBadgeSlot = contentChild(CngxTabErrorBadge, ...(ngDevMode ? [{ debugName: "errorBadgeSlot" }] : /* istanbul ignore next */ []));
57
109
  rejectionIconSlot = contentChild(CngxTabRejectionIcon, ...(ngDevMode ? [{ debugName: "rejectionIconSlot" }] : /* istanbul ignore next */ []));
58
110
  busySpinnerSlot = contentChild(CngxTabBusySpinner, ...(ngDevMode ? [{ debugName: "busySpinnerSlot" }] : /* istanbul ignore next */ []));
111
+ iconSlot = contentChild(CngxTabIcon, ...(ngDevMode ? [{ debugName: "iconSlot" }] : /* istanbul ignore next */ []));
112
+ closeIconSlot = contentChild(CngxTabCloseIcon, ...(ngDevMode ? [{ debugName: "closeIconSlot" }] : /* istanbul ignore next */ []));
113
+ addIconSlot = contentChild(CngxTabAddIcon, ...(ngDevMode ? [{ debugName: "addIconSlot" }] : /* istanbul ignore next */ []));
114
+ /**
115
+ * Dismissable / addable affordance surface (close + add resolution,
116
+ * close interaction, focus restoration). Level-2 helper keeps the
117
+ * cascade + handlers off the organism class (LOC guard).
118
+ */
119
+ dismiss = createTabDismissals({
120
+ host: this.presenter,
121
+ config: this.config,
122
+ i18n: this.i18n,
123
+ closable: this.closable,
124
+ addable: this.addable,
125
+ hostElement: this.hostElement,
126
+ injector: this.injector,
127
+ });
128
+ /**
129
+ * APG tablist keyboard model (automatic activation). Owns arrow / Home /
130
+ * End resolution, the `host.select()` activation, and focus movement;
131
+ * derives each tab's roving `tabindex` from the presenter's `activeId`
132
+ * (single source of truth). Level-2 helper keeps the keyboard logic off
133
+ * the organism class (LOC guard).
134
+ */
135
+ keyboard = createTabKeyboardNav({
136
+ host: this.presenter,
137
+ hostElement: this.hostElement,
138
+ });
59
139
  /**
60
140
  * AT-announcement bundle from `@cngx/common/tabs/announcements/`.
61
141
  * Owns role descriptions, resolved aria-label, live-region phrasing,
@@ -69,6 +149,29 @@ class CngxTabGroup {
69
149
  ariaLabel: this.ariaLabel,
70
150
  ariaLabelledBy: this.ariaLabelledBy,
71
151
  });
152
+ /**
153
+ * Resolved skin / icon-layout cascade (`input ?? config ?? default`),
154
+ * read by the `[data-skin]` / `[data-icon-layout]` host bindings. The
155
+ * Level-2 helper keeps the cascade off the organism class (LOC guard).
156
+ */
157
+ hostAttrs = createTabsHostAttrs({
158
+ skin: this.skin,
159
+ iconLayout: this.iconLayout,
160
+ panelMode: this.panelMode,
161
+ fitted: this.fitted,
162
+ tabAlign: this.tabAlign,
163
+ config: this.config,
164
+ });
165
+ /**
166
+ * Whether the active panel contains a natively-focusable descendant.
167
+ * Resolved by a post-render DOM probe (the only way to know - the
168
+ * panel content is consumer-projected). Drives {@link panelTabindex}:
169
+ * a panel with no focusable child earns one tab stop so keyboard users
170
+ * can still reach its content (APG tabpanel pattern); a panel that
171
+ * already has reachable content does not (no redundant stop). Boolean
172
+ * with default `Object.is`, so a stable probe never re-triggers CD.
173
+ */
174
+ activePanelHasFocusable = signal(false, ...(ngDevMode ? [{ debugName: "activePanelHasFocusable" }] : /* istanbul ignore next */ []));
72
175
  constructor() {
73
176
  // Self-healing scroll loop: activeId change -> scrollIntoView ->
74
177
  // overflow IO sees new visibility -> More dropdown self-trims.
@@ -78,6 +181,34 @@ class CngxTabGroup {
78
181
  hostElement: this.hostElement,
79
182
  injector: this.injector,
80
183
  });
184
+ // APG tabpanel focus probe. afterRenderEffect re-runs after render
185
+ // whenever its tracked dep (the active panel id) changes - i.e. on
186
+ // every tab switch, which is when the active panel (always rendered
187
+ // in every panelMode) gets its current content. Reading the DOM is
188
+ // the only way to know whether the consumer-projected content is
189
+ // focusable. The boolean set is not read inside the effect, so it
190
+ // never re-triggers itself, and its default Object.is equality makes
191
+ // a stable probe a no-op. Scope: content that mutates inside the
192
+ // already-active panel without a tab switch (late async content) is
193
+ // not re-probed - an accepted heuristic limit, not a correctness bug.
194
+ afterRenderEffect(() => {
195
+ // Tracked: re-probe when the active panel changes.
196
+ this.presenter.activeId();
197
+ const panel = this.hostElement.querySelector('.cngx-tabs__panel:not([hidden])');
198
+ this.activePanelHasFocusable.set(panel?.querySelector(CNGX_FOCUSABLE_SELECTOR) != null);
199
+ });
200
+ if (isDevMode()) {
201
+ // One-shot post-mount check: icon-only hides the label, so a
202
+ // missing *cngxTabIcon template leaves the tab visually empty.
203
+ // afterNextRender runs once, off the reactive graph.
204
+ afterNextRender(() => {
205
+ if (this.hostAttrs.resolvedIconLayout() === 'only' && !this.iconSlot()) {
206
+ console.warn("[cngx-tab-group] iconLayout='only' but no *cngxTabIcon template " +
207
+ 'is provided - tabs render no icon and the label is visually ' +
208
+ "hidden. Provide an <ng-template cngxTabIcon> or use 'start' / 'end' / 'top'.");
209
+ }
210
+ });
211
+ }
81
212
  }
82
213
  // Map<id, CngxTab> for O(1) labelTemplateFor / contentTemplateFor.
83
214
  // Structural equal on id-set + directive identity prevents cascade
@@ -86,13 +217,17 @@ class CngxTabGroup {
86
217
  source: this.tabDirectives,
87
218
  });
88
219
  /**
89
- * Resolved 3-stage cascade for `errorBadge`, `rejectionIcon`, `busySpinner`.
90
- * `null` -> render built-in default span.
220
+ * Resolved 3-stage cascade for `errorBadge`, `rejectionIcon`,
221
+ * `busySpinner`, `icon`. `null` -> render built-in default (or, for
222
+ * `icon`, render nothing).
91
223
  */
92
224
  templates = createTabGroupTemplateBindings({
93
225
  errorBadgeSlot: this.errorBadgeSlot,
94
226
  rejectionIconSlot: this.rejectionIconSlot,
95
227
  busySpinnerSlot: this.busySpinnerSlot,
228
+ iconSlot: this.iconSlot,
229
+ closeIconSlot: this.closeIconSlot,
230
+ addIconSlot: this.addIconSlot,
96
231
  config: this.config,
97
232
  });
98
233
  tabs = this.presenter.tabs;
@@ -118,12 +253,74 @@ class CngxTabGroup {
118
253
  tabPanelId(tab) {
119
254
  return `${tab.id}-panel`;
120
255
  }
256
+ /**
257
+ * APG tabpanel `tabindex`: `0` only when the selected panel has no
258
+ * focusable descendant (so its content is keyboard-reachable from the
259
+ * tablist), else `null` - never a redundant tab stop. Inactive panels
260
+ * are `null` (they are `[hidden]`).
261
+ */
262
+ panelTabindex(tab) {
263
+ return this.isSelected(tab) && !this.activePanelHasFocusable() ? 0 : null;
264
+ }
265
+ /**
266
+ * Keep-alive set for `panelMode='lazy'`: the ids of every tab that has
267
+ * ever been activated. Derived history (Pillar 1) - a `linkedSignal`
268
+ * accumulating onto its own previous value as `activeId` moves, NOT an
269
+ * `effect` that writes a set. The structural `equal` (size + membership)
270
+ * means re-activating an already-seen tab returns an equal set, so the
271
+ * reference is stable and downstream `shouldRenderContent` reads do not
272
+ * churn. Unbounded by design: `lazy` trades retention (every visited
273
+ * panel's content stays alive for the directive's life) for keep-alive;
274
+ * the set is bounded by tab count, and `lazy-destroy` is the bounded
275
+ * alternative when retention is unwanted.
276
+ */
277
+ seenIds = linkedSignal({ ...(ngDevMode ? { debugName: "seenIds" } : /* istanbul ignore next */ {}), source: () => this.presenter.activeId(),
278
+ computation: (id, prev) => {
279
+ const next = new Set(prev?.value ?? []);
280
+ if (id != null) {
281
+ next.add(id);
282
+ }
283
+ return next;
284
+ },
285
+ equal: (a, b) => a.size === b.size && [...a].every((x) => b.has(x)) });
286
+ /**
287
+ * Whether a tab's panel content should be rendered now. The panel
288
+ * `<div>` is always in the DOM (the `aria-controls` target); only its
289
+ * inner content is gated. `eager` is byte-identical to the original
290
+ * behaviour (everything rendered, visibility toggled via `[hidden]`).
291
+ */
292
+ shouldRenderContent(tab) {
293
+ switch (this.hostAttrs.resolvedPanelMode()) {
294
+ case 'lazy':
295
+ return this.seenIds().has(tab.id);
296
+ case 'lazy-destroy':
297
+ return this.isSelected(tab);
298
+ default:
299
+ return true;
300
+ }
301
+ }
121
302
  tabDescriptorId(tab) {
122
303
  return `${tab.id}-desc`;
123
304
  }
124
- /** `true` when a bound error-aggregator opted in to revealing errors. */
305
+ /**
306
+ * `true` when the tab is in error - the folded `hasError` (direct
307
+ * `[error]` flag OR the aggregator's reveal-gated `shouldShow()`), so
308
+ * a direct-error tab lights the badge without an aggregator while
309
+ * deferred-reveal aggregators stay silent until revealed.
310
+ */
125
311
  showErrorBadge(tab) {
126
- return !!tab.errorAggregator()?.shouldShow();
312
+ return tab.hasError();
313
+ }
314
+ /**
315
+ * Context for `*cngxTabIcon`. Allocates fresh per CD - `active` is
316
+ * reactive (selection), and `*ngTemplateOutlet` only re-evaluates
317
+ * `let-*` bindings when the context reference changes (`Object.is`
318
+ * input-diff); a `WeakMap`-cached object with a mutated `active`
319
+ * would leave consumer bindings stale. Same pattern as
320
+ * {@link busySpinnerContextFor}.
321
+ */
322
+ iconContextFor(tab, index) {
323
+ return { tab, active: this.isSelected(tab), index };
127
324
  }
128
325
  /**
129
326
  * Stable per-tab `*cngxTabErrorBadge` context cache. Context is
@@ -172,6 +369,26 @@ class CngxTabGroup {
172
369
  this.presenter.select(idx);
173
370
  }
174
371
  }
372
+ /**
373
+ * Roving `tabindex` for a tab button: `0` for the active tab, `-1` for
374
+ * the rest, so the tablist is a single tab stop (APG) and `Tab` lands
375
+ * on the active tab. Derived in {@link keyboard} from `activeId`.
376
+ */
377
+ tabTabindex(tab) {
378
+ return this.keyboard.tabTabindex(tab);
379
+ }
380
+ /**
381
+ * Single `(keydown)` entry for a tab button: APG navigation
382
+ * (arrows / Home / End, automatic activation) first, then Delete-to-close
383
+ * when navigation did not consume the event.
384
+ */
385
+ handleTabKeydown(tab, event) {
386
+ this.keyboard.handleKeydown(event);
387
+ if (event.defaultPrevented) {
388
+ return;
389
+ }
390
+ this.dismiss.handleTabKeydown(tab, event);
391
+ }
175
392
  // CngxTabPanelHost contract - presenter owns clamping, disabled-skip,
176
393
  // commit-action gating.
177
394
  selectById(id) {
@@ -188,23 +405,22 @@ class CngxTabGroup {
188
405
  labelTemplateFor(id) {
189
406
  return this.tabDirectiveById().get(id)?.labelTemplate()?.templateRef ?? null;
190
407
  }
408
+ subLabelTemplateFor(id) {
409
+ return this.tabDirectiveById().get(id)?.subLabelTemplate()?.templateRef ?? null;
410
+ }
191
411
  contentTemplateFor(id) {
192
412
  return this.tabDirectiveById().get(id)?.contentTemplate()?.templateRef ?? null;
193
413
  }
194
414
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTabGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
195
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxTabGroup, isStandalone: true, selector: "cngx-tab-group", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "attr.aria-roledescription": "announcements.tabsRoleDescription()", "attr.aria-orientation": "presenter.orientation()", "attr.data-orientation": "presenter.orientation()", "attr.aria-label": "announcements.resolvedAriaLabel()", "attr.aria-labelledby": "ariaLabelledBy()", "class.cngx-tabs": "true" }, classAttribute: "cngx-tab-group" }, providers: [{ provide: CNGX_TAB_PANEL_HOST, useExisting: CngxTabGroup }], queries: [{ propertyName: "tabDirectives", predicate: CngxTab, descendants: true, isSignal: true }, { propertyName: "errorBadgeSlot", first: true, predicate: CngxTabErrorBadge, descendants: true, isSignal: true }, { propertyName: "rejectionIconSlot", first: true, predicate: CngxTabRejectionIcon, descendants: true, isSignal: true }, { propertyName: "busySpinnerSlot", first: true, predicate: CngxTabBusySpinner, descendants: true, isSignal: true }], exportAs: ["cngxTabGroup"], hostDirectives: [{ directive: i1.CngxTabGroupPresenter, inputs: ["activeIndex", "activeIndex", "orientation", "orientation", "loop", "loop", "commitAction", "commitAction", "commitMode", "commitMode"], outputs: ["activeIndexChange", "activeIndexChange"] }, { directive: i2.CngxRovingTabindex, inputs: ["orientation", "orientation", "loop", "loop"] }, { directive: i2.CngxFocusRestore }], ngImport: i0, template: "<div class=\"cngx-tabs__strip-wrapper\">\n@let failedIdx = presenter.lastFailedIndex();\n<div\n class=\"cngx-tabs__strip\"\n role=\"tablist\"\n [attr.aria-orientation]=\"presenter.orientation()\"\n>\n @for (tab of tabs(); track tab.id; let i = $index) {\n <button\n type=\"button\"\n cngxRovingItem\n class=\"cngx-tabs__tab\"\n [class.cngx-tab--rejected]=\"failedIdx === i\"\n role=\"tab\"\n [id]=\"tabHeaderId(tab)\"\n [attr.aria-label]=\"announcements.tabAriaLabel(tab, i + 1)\"\n [attr.aria-selected]=\"isSelected(tab) ? 'true' : 'false'\"\n [attr.aria-controls]=\"tabPanelId(tab)\"\n [attr.aria-disabled]=\"tab.disabled() ? 'true' : null\"\n [attr.aria-busy]=\"isTabBusy(tab) ? 'true' : null\"\n [attr.aria-describedby]=\"tabDescriptorId(tab)\"\n [cngxRovingItemDisabled]=\"tab.disabled()\"\n (click)=\"handleHeaderClick(tab)\"\n >\n <span class=\"cngx-tabs__label\">\n @let labelTpl = labelTemplateFor(tab.id);\n @if (labelTpl) {\n <ng-container *ngTemplateOutlet=\"labelTpl\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </span>\n @if (showErrorBadge(tab)) {\n @let errorBadgeTpl = templates.errorBadge();\n @if (errorBadgeTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n errorBadgeTpl;\n context: errorBadgeContextFor(tab)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__badge\" aria-hidden=\"true\">{{\n glyphs.errorBadge\n }}</span>\n }\n }\n @if (failedIdx === i) {\n @let rejectionIconTpl = templates.rejectionIcon();\n @if (rejectionIconTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n rejectionIconTpl;\n context: rejectionIconContextFor(i)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__rejection-icon\" aria-hidden=\"true\">{{\n glyphs.rejectionIcon\n }}</span>\n }\n }\n @if (isTabBusy(tab)) {\n @let busySpinnerTpl = templates.busySpinner();\n @if (busySpinnerTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n busySpinnerTpl;\n context: busySpinnerContextFor(tab)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__busy-spinner\" aria-hidden=\"true\"></span>\n }\n }\n <span class=\"cngx-sr-only\" [id]=\"tabDescriptorId(tab)\">{{\n announcements.statusPhrase(tab)\n }}</span>\n </button>\n }\n</div>\n<ng-content select=\"cngx-tab-overflow\"></ng-content>\n</div>\n\n<div class=\"cngx-tabs__panels\">\n @for (tab of tabs(); track tab.id) {\n <div\n class=\"cngx-tabs__panel\"\n role=\"tabpanel\"\n [id]=\"tabPanelId(tab)\"\n [attr.aria-labelledby]=\"tabHeaderId(tab)\"\n [attr.aria-roledescription]=\"announcements.tabPanelRoleDescription()\"\n [hidden]=\"!isSelected(tab)\"\n >\n @let contentTpl = contentTemplateFor(tab.id);\n @if (contentTpl) {\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n }\n </div>\n }\n</div>\n\n<span class=\"cngx-tabs__live-region cngx-sr-only\" cngxLiveRegion>{{\n announcements.liveAnnouncement()\n}}</span>\n\n<!--\n Generic slot for opt-in skin sub-components other than the\n overflow molecule (which projects into the strip-wrapper via the\n named `select=\"cngx-tab-overflow\"` slot above). Projected content\n sees `CNGX_TAB_PANEL_HOST` via the organism's provider, so\n molecules inject the contract without reaching for the concrete\n `CngxTabGroup` class.\n-->\n<ng-content></ng-content>\n", styles: ["@layer cngx.tokens{@property --cngx-tab-gap{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-tab-strip-padding{syntax: \"*\"; inherits: false; initial-value: .5rem 0;}@property --cngx-tab-strip-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-padding{syntax: \"*\"; inherits: false; initial-value: .5rem .75rem;}@property --cngx-tab-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-indicator-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-tab-active-indicator-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .55;}@property --cngx-tab-focus-ring{syntax: \"*\"; inherits: false; initial-value: 2px solid currentColor;}@property --cngx-tab-focus-offset{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-error-badge-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-tab-busy-spinner-size{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-tab-busy-spinner-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-rejection-icon-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-rejection-icon-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-tab-rejection-icon-text{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-tab-rejection-icon-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-tab-rejected-outline{syntax: \"*\"; inherits: false; initial-value: 2px solid oklch(.45 .15 25);}@property --cngx-tab-rejected-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-tab-rejected-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: .6s;}@property --cngx-tab-rejected-pulse-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25 / .18);}:root{--cngx-tab-active-indicator-color: var(--cngx-color-primary, oklch(.66 .19 50))}}@layer cngx.components{cngx-tab-group{display:block}.cngx-tabs__strip-wrapper{display:flex;flex-direction:row;align-items:stretch;position:relative}.cngx-tabs__strip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;flex:1 1 auto;min-width:0;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-strip-padding, .5rem 0);background:var(--cngx-tab-strip-bg, transparent);overflow-x:hidden;overflow-y:hidden;scroll-snap-type:x proximity}.cngx-tabs__tab{display:inline-flex;align-items:center;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-padding, .5rem .75rem);border:0;background:var(--cngx-tab-bg, transparent);color:var(--cngx-tab-color, currentColor);cursor:pointer;font:inherit;text-align:start;white-space:nowrap;scroll-snap-align:start}.cngx-tabs__tab[aria-selected=true]{color:var(--cngx-tab-active-color, currentColor);box-shadow:inset 0 calc(var(--cngx-tab-active-indicator-width, 2px) * -1) 0 var(--cngx-tab-active-indicator-color, oklch(.66 .19 50))}.cngx-tabs__tab[aria-disabled=true]{cursor:not-allowed;opacity:var(--cngx-tab-disabled-opacity, .55)}.cngx-tabs__tab:focus-visible{outline:var(--cngx-tab-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-tab-focus-offset, 2px)}.cngx-tabs__tab[aria-busy=true]{cursor:progress}.cngx-tabs__label{flex:1 1 auto;min-width:0}.cngx-tabs__badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:var(--cngx-tab-error-badge-color, oklch(.45 .15 25));margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__busy-spinner{display:inline-block;width:var(--cngx-tab-busy-spinner-size, 1rem);height:var(--cngx-tab-busy-spinner-size, 1rem);border:2px solid transparent;border-top-color:var(--cngx-tab-busy-spinner-color, currentColor);border-right-color:var(--cngx-tab-busy-spinner-color, currentColor);border-radius:50%;flex:0 0 auto;margin-inline-start:var(--cngx-tab-gap, .5rem);animation:cngx-tabs-spin .75s linear infinite}.cngx-tabs__panels{display:block}.cngx-tabs__panel{display:block;padding:var(--cngx-tab-padding, .5rem .75rem)}.cngx-tabs__panel[hidden]{display:none}.cngx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}cngx-tab-group[data-orientation=vertical]{display:grid;grid-template-columns:minmax(8rem,max-content) 1fr;gap:var(--cngx-tab-gap, .5rem);align-items:start}cngx-tab-group[data-orientation=vertical] .cngx-tabs__strip{flex-direction:column;flex-wrap:nowrap;overflow-x:hidden;overflow-y:auto;scroll-snap-type:y proximity}cngx-tab-group[data-orientation=vertical] .cngx-tabs__tab{scroll-snap-align:start;white-space:normal}@media(prefers-reduced-motion:reduce){.cngx-tabs__busy-spinner{animation:none!important}}.cngx-tabs__rejection-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:var(--cngx-tab-rejection-icon-size, 1.25rem);height:var(--cngx-tab-rejection-icon-size, 1.25rem);border-radius:50%;background:var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25));color:var(--cngx-tab-rejection-icon-text, oklch(1 0 0));font-size:var(--cngx-tab-rejection-icon-font-size, .875rem);font-weight:700;line-height:1;margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__tab.cngx-tab--rejected{outline:var( --cngx-tab-rejected-outline, 2px solid var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25)) );outline-offset:var(--cngx-tab-rejected-outline-offset, 1px)}@media(prefers-reduced-motion:no-preference){.cngx-tabs__tab.cngx-tab--rejected{animation:cngx-tab-pulse-error var(--cngx-tab-rejected-pulse-duration, .6s) ease-out}}}@keyframes cngx-tabs-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes cngx-tab-pulse-error{0%{background:var(--cngx-tab-bg, transparent)}50%{background:var(--cngx-tab-rejected-pulse-bg, oklch(.45 .15 25 / .18))}to{background:var(--cngx-tab-bg, transparent)}}\n", "@layer cngx.tokens{@property --cngx-tab-strip-border{syntax: \"*\"; inherits: false; initial-value: 1px solid currentColor;}@property --cngx-tab-indicator-thickness{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .15s;}@property --cngx-tab-hover-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-indicator-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-badge-size{syntax: \"<length>\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-error-badge-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-tab-badge-font-size{syntax: \"*\"; inherits: false; initial-value: .75em;}@property --cngx-tab-badge-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 700;}}@layer cngx.components{@scope(.cngx-tab-group){:scope{font:inherit}.cngx-tabs__strip{border-bottom:var(--cngx-tab-strip-border, 1px solid currentColor)}.cngx-tabs__tab{position:relative;border-bottom:var(--cngx-tab-indicator-thickness, 2px) solid transparent;margin-bottom:calc(var(--cngx-tab-indicator-thickness, 2px) * -1);transition:color var(--cngx-tab-transition-duration, .15s) ease,border-color var(--cngx-tab-transition-duration, .15s) ease}.cngx-tabs__tab:hover:not([aria-disabled=true]){color:var(--cngx-tab-hover-color, var(--cngx-tab-active-color))}.cngx-tabs__tab[aria-selected=true]{color:var(--cngx-tab-active-color);border-bottom-color:var(--cngx-tab-active-indicator-color, currentColor)}:scope[data-orientation=vertical] .cngx-tabs__strip{border-bottom:0;border-inline-end:var(--cngx-tab-strip-border, 1px solid currentColor)}:scope[data-orientation=vertical] .cngx-tabs__tab{border-bottom:0;margin-bottom:0;border-inline-end:var(--cngx-tab-indicator-thickness, 2px) solid transparent;margin-inline-end:calc(var(--cngx-tab-indicator-thickness, 2px) * -1)}:scope[data-orientation=vertical] .cngx-tabs__tab[aria-selected=true]{border-inline-end-color:var(--cngx-tab-active-indicator-color, currentColor)}.cngx-tabs__badge{width:var(--cngx-tab-badge-size, 1.25rem);height:var(--cngx-tab-badge-size, 1.25rem);border-radius:50%;color:var(--cngx-tab-error-badge-text-color, oklch(1 0 0));font-size:var(--cngx-tab-badge-font-size, .75em);font-weight:var(--cngx-tab-badge-font-weight, 700);line-height:1}@media(prefers-reduced-motion:reduce){.cngx-tabs__tab{transition:none!important}}}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CngxLiveRegion, selector: "[cngxLiveRegion]", inputs: ["politeness", "atomic", "relevant"], exportAs: ["cngxLiveRegion"] }, { kind: "directive", type: CngxRovingItem, selector: "[cngxRovingItem]", inputs: ["cngxRovingItemDisabled"], exportAs: ["cngxRovingItem"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
415
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxTabGroup, isStandalone: true, selector: "cngx-tab-group", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, skin: { classPropertyName: "skin", publicName: "skin", isSignal: true, isRequired: false, transformFunction: null }, iconLayout: { classPropertyName: "iconLayout", publicName: "iconLayout", isSignal: true, isRequired: false, transformFunction: null }, panelMode: { classPropertyName: "panelMode", publicName: "panelMode", isSignal: true, isRequired: false, transformFunction: null }, fitted: { classPropertyName: "fitted", publicName: "fitted", isSignal: true, isRequired: false, transformFunction: null }, tabAlign: { classPropertyName: "tabAlign", publicName: "tabAlign", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, addable: { classPropertyName: "addable", publicName: "addable", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "attr.aria-roledescription": "announcements.tabsRoleDescription()", "attr.aria-orientation": "presenter.orientation()", "attr.data-orientation": "presenter.orientation()", "attr.data-skin": "hostAttrs.resolvedSkin()", "attr.data-icon-layout": "hostAttrs.resolvedIconLayout()", "attr.data-panel-mode": "hostAttrs.resolvedPanelMode()", "attr.data-fitted": "hostAttrs.resolvedFitted() ? '' : null", "attr.data-tab-align": "hostAttrs.resolvedTabAlign()", "attr.aria-label": "announcements.resolvedAriaLabel()", "attr.aria-labelledby": "ariaLabelledBy()", "class.cngx-tabs": "true" }, classAttribute: "cngx-tab-group" }, providers: [{ provide: CNGX_TAB_PANEL_HOST, useExisting: CngxTabGroup }], queries: [{ propertyName: "tabDirectives", predicate: CngxTab, descendants: true, isSignal: true }, { propertyName: "errorBadgeSlot", first: true, predicate: CngxTabErrorBadge, descendants: true, isSignal: true }, { propertyName: "rejectionIconSlot", first: true, predicate: CngxTabRejectionIcon, descendants: true, isSignal: true }, { propertyName: "busySpinnerSlot", first: true, predicate: CngxTabBusySpinner, descendants: true, isSignal: true }, { propertyName: "iconSlot", first: true, predicate: CngxTabIcon, descendants: true, isSignal: true }, { propertyName: "closeIconSlot", first: true, predicate: CngxTabCloseIcon, descendants: true, isSignal: true }, { propertyName: "addIconSlot", first: true, predicate: CngxTabAddIcon, descendants: true, isSignal: true }], exportAs: ["cngxTabGroup"], hostDirectives: [{ directive: i1.CngxTabGroupPresenter, inputs: ["activeIndex", "activeIndex", "orientation", "orientation", "loop", "loop", "commitAction", "commitAction", "commitMode", "commitMode"], outputs: ["activeIndexChange", "activeIndexChange", "tabClose", "tabClose", "tabAdd", "tabAdd"] }, { directive: i2.CngxFocusRestore }], ngImport: i0, template: "<div class=\"cngx-tabs__strip-wrapper\">\n@let failedIdx = presenter.lastFailedIndex();\n<div\n class=\"cngx-tabs__strip\"\n role=\"tablist\"\n [attr.aria-orientation]=\"presenter.orientation()\"\n>\n @for (tab of tabs(); track tab.id; let i = $index) {\n <div class=\"cngx-tabs__tab-wrapper\" role=\"presentation\">\n <button\n type=\"button\"\n class=\"cngx-tabs__tab\"\n [class.cngx-tab--rejected]=\"failedIdx === i\"\n [class.cngx-tabs__tab--closable]=\"dismiss.isTabClosable(tab)\"\n role=\"tab\"\n [id]=\"tabHeaderId(tab)\"\n [attr.data-tab-id]=\"tab.id\"\n [attr.tabindex]=\"tabTabindex(tab)\"\n [attr.aria-label]=\"announcements.tabAriaLabel(tab, i + 1)\"\n [attr.aria-selected]=\"isSelected(tab) ? 'true' : 'false'\"\n [attr.aria-controls]=\"tabPanelId(tab)\"\n [attr.aria-disabled]=\"tab.disabled() ? 'true' : null\"\n [attr.aria-busy]=\"isTabBusy(tab) ? 'true' : null\"\n [attr.aria-describedby]=\"tabDescriptorId(tab)\"\n [attr.aria-keyshortcuts]=\"dismiss.isTabClosable(tab) ? 'Delete' : null\"\n (click)=\"handleHeaderClick(tab)\"\n (keydown)=\"handleTabKeydown(tab, $event)\"\n >\n @let iconTpl = templates.icon();\n @if (iconTpl) {\n <span class=\"cngx-tabs__icon\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"iconTpl; context: iconContextFor(tab, i)\"\n ></ng-container>\n </span>\n }\n <span class=\"cngx-tabs__text\">\n <span class=\"cngx-tabs__label\">\n @let labelTpl = labelTemplateFor(tab.id);\n @if (labelTpl) {\n <ng-container *ngTemplateOutlet=\"labelTpl\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </span>\n @let subLabelTpl = subLabelTemplateFor(tab.id);\n @if (subLabelTpl || tab.subLabel()) {\n <span class=\"cngx-tabs__sublabel\">\n @if (subLabelTpl) {\n <ng-container *ngTemplateOutlet=\"subLabelTpl\"></ng-container>\n } @else {\n {{ tab.subLabel() }}\n }\n </span>\n }\n </span>\n @if (showErrorBadge(tab)) {\n @let errorBadgeTpl = templates.errorBadge();\n @if (errorBadgeTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n errorBadgeTpl;\n context: errorBadgeContextFor(tab)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__badge\" aria-hidden=\"true\">{{\n glyphs.errorBadge\n }}</span>\n }\n }\n @if (failedIdx === i) {\n @let rejectionIconTpl = templates.rejectionIcon();\n @if (rejectionIconTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n rejectionIconTpl;\n context: rejectionIconContextFor(i)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__rejection-icon\" aria-hidden=\"true\">{{\n glyphs.rejectionIcon\n }}</span>\n }\n }\n @if (isTabBusy(tab)) {\n @let busySpinnerTpl = templates.busySpinner();\n @if (busySpinnerTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n busySpinnerTpl;\n context: busySpinnerContextFor(tab)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__busy-spinner\" aria-hidden=\"true\"></span>\n }\n }\n <span class=\"cngx-sr-only\" [id]=\"tabDescriptorId(tab)\">{{\n announcements.statusPhrase(tab)\n }}</span>\n </button>\n @if (dismiss.isTabClosable(tab)) {\n <button\n type=\"button\"\n class=\"cngx-tabs__close\"\n tabindex=\"-1\"\n [attr.aria-label]=\"dismiss.closeButtonLabel(tab)\"\n (click)=\"dismiss.handleClose(tab, $event)\"\n >\n @let closeIconTpl = templates.closeIcon();\n @if (closeIconTpl) {\n <ng-container\n *ngTemplateOutlet=\"closeIconTpl; context: dismiss.closeIconContextFor(tab)\"\n ></ng-container>\n } @else {\n <span aria-hidden=\"true\">{{ glyphs.closeIcon }}</span>\n }\n </button>\n }\n </div>\n }\n</div>\n@if (dismiss.resolvedAddable()) {\n <button\n type=\"button\"\n class=\"cngx-tabs__add\"\n [attr.aria-label]=\"i18n.addTab\"\n (click)=\"dismiss.handleAdd()\"\n >\n @let addIconTpl = templates.addIcon();\n @if (addIconTpl) {\n <ng-container *ngTemplateOutlet=\"addIconTpl\"></ng-container>\n } @else {\n <span aria-hidden=\"true\">{{ glyphs.addIcon }}</span>\n }\n </button>\n}\n<ng-content select=\"cngx-tab-overflow\"></ng-content>\n</div>\n\n<div class=\"cngx-tabs__panels\">\n @for (tab of tabs(); track tab.id) {\n <div\n class=\"cngx-tabs__panel\"\n role=\"tabpanel\"\n [id]=\"tabPanelId(tab)\"\n [attr.aria-labelledby]=\"tabHeaderId(tab)\"\n [attr.aria-roledescription]=\"announcements.tabPanelRoleDescription()\"\n [attr.tabindex]=\"panelTabindex(tab)\"\n [hidden]=\"!isSelected(tab)\"\n >\n @if (shouldRenderContent(tab)) {\n @let contentTpl = contentTemplateFor(tab.id);\n @if (contentTpl) {\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n }\n }\n </div>\n }\n</div>\n\n<span class=\"cngx-tabs__live-region cngx-sr-only\" cngxLiveRegion>{{\n announcements.liveAnnouncement()\n}}</span>\n\n<!--\n Generic slot for opt-in skin sub-components other than the\n overflow molecule (which projects into the strip-wrapper via the\n named `select=\"cngx-tab-overflow\"` slot above). Projected content\n sees `CNGX_TAB_PANEL_HOST` via the organism's provider, so\n molecules inject the contract without reaching for the concrete\n `CngxTabGroup` class.\n-->\n<ng-content></ng-content>\n", styles: ["@layer cngx.tokens{@property --cngx-tab-gap{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-tab-strip-padding{syntax: \"*\"; inherits: false; initial-value: .5rem 0;}@property --cngx-tab-strip-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-padding{syntax: \"*\"; inherits: false; initial-value: .5rem .75rem;}@property --cngx-tab-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-indicator-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-tab-active-indicator-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .55;}@property --cngx-tab-focus-ring{syntax: \"*\"; inherits: false; initial-value: 2px solid currentColor;}@property --cngx-tab-focus-offset{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-error-badge-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-tab-busy-spinner-size{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-tab-busy-spinner-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-rejection-icon-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-rejection-icon-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-tab-rejection-icon-text{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-tab-rejection-icon-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-tab-rejected-outline{syntax: \"*\"; inherits: false; initial-value: 2px solid oklch(.45 .15 25);}@property --cngx-tab-rejected-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-tab-rejected-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: .6s;}@property --cngx-tab-rejected-pulse-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25 / .18);}@property --cngx-tab-affordance-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-affordance-radius{syntax: \"*\"; inherits: false; initial-value: 50%;}@property --cngx-tab-affordance-hover-bg{syntax: \"*\"; inherits: false; initial-value: color-mix(in oklch,currentColor 14%,transparent);}@property --cngx-tab-label-line-height{syntax: \"*\"; inherits: true; initial-value: 1.4;}@property --cngx-tab-sublabel-font-size{syntax: \"*\"; inherits: true; initial-value: .8125rem;}@property --cngx-tab-sublabel-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in oklab,currentColor 65%,transparent);}:root{--cngx-tab-active-indicator-color: var(--cngx-color-primary, oklch(.66 .19 50))}}@layer cngx.components{cngx-tab-group{display:block}.cngx-tabs__strip-wrapper{display:flex;flex-direction:row;align-items:stretch;position:relative}.cngx-tabs__strip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;flex:1 1 auto;min-width:0;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-strip-padding, .5rem 0);background:var(--cngx-tab-strip-bg, transparent);overflow-x:hidden;overflow-y:hidden;scroll-snap-type:x proximity}.cngx-tabs__tab{display:inline-flex;align-items:center;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-padding, .5rem .75rem);border:0;background:var(--cngx-tab-bg, transparent);color:var(--cngx-tab-color, currentColor);cursor:pointer;font:inherit;text-align:start;white-space:nowrap;scroll-snap-align:start}.cngx-tabs__tab[aria-selected=true]{color:var(--cngx-tab-active-color, currentColor);box-shadow:inset 0 calc(var(--cngx-tab-active-indicator-width, 2px) * -1) 0 var(--cngx-tab-active-indicator-color, oklch(.66 .19 50))}.cngx-tabs__tab[aria-disabled=true]{cursor:not-allowed;opacity:var(--cngx-tab-disabled-opacity, .55)}.cngx-tabs__tab:focus-visible{outline:var(--cngx-tab-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-tab-focus-offset, 2px)}.cngx-tabs__tab[aria-busy=true]{cursor:progress}.cngx-tabs__text{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}.cngx-tabs__label{min-width:0;overflow:hidden;text-overflow:ellipsis;line-height:var(--cngx-tab-label-line-height, 1.4)}.cngx-tabs__sublabel{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:var(--cngx-tab-sublabel-font-size, .8125rem);color:var(--cngx-tab-sublabel-color, color-mix(in oklab, currentColor 65%, transparent))}.cngx-tabs__tab-wrapper{position:relative;display:inline-flex;align-items:stretch}.cngx-tabs__tab--closable{padding-inline-end:calc(var(--cngx-tab-affordance-size, 1.25rem) + var(--cngx-tab-gap, .5rem) * 2)}.cngx-tabs__close,.cngx-tabs__add{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;box-sizing:border-box;width:var(--cngx-tab-affordance-size, 1.25rem);height:var(--cngx-tab-affordance-size, 1.25rem);padding:0;border:0;border-radius:var(--cngx-tab-affordance-radius, 50%);background:transparent;color:inherit;font:inherit;line-height:1;cursor:pointer}.cngx-tabs__close{position:absolute;inset-inline-end:var(--cngx-tab-gap, .5rem);top:50%;transform:translateY(-50%);z-index:1}.cngx-tabs__add{margin-inline-start:var(--cngx-tab-gap, .5rem);align-self:center}.cngx-tabs__close:hover,.cngx-tabs__add:hover{background:var( --cngx-tab-affordance-hover-bg, color-mix(in oklch, currentColor 14%, transparent) )}.cngx-tabs__close:focus-visible,.cngx-tabs__add:focus-visible{outline:var(--cngx-tab-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-tab-focus-offset, 2px)}cngx-tab-group[data-orientation=vertical] .cngx-tabs__add{margin-inline-start:0;margin-block-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:var(--cngx-tab-error-badge-color, oklch(.45 .15 25));margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__busy-spinner{display:inline-block;width:var(--cngx-tab-busy-spinner-size, 1rem);height:var(--cngx-tab-busy-spinner-size, 1rem);border:2px solid transparent;border-top-color:var(--cngx-tab-busy-spinner-color, currentColor);border-right-color:var(--cngx-tab-busy-spinner-color, currentColor);border-radius:50%;flex:0 0 auto;margin-inline-start:var(--cngx-tab-gap, .5rem);animation:cngx-tabs-spin .75s linear infinite}.cngx-tabs__panels{display:block}.cngx-tabs__panel{display:block;padding:var(--cngx-tab-padding, .5rem .75rem)}.cngx-tabs__panel[hidden]{display:none}.cngx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}cngx-tab-group[data-orientation=vertical]{display:grid;grid-template-columns:max-content 1fr;gap:var(--cngx-tab-vertical-gap, 1rem);align-items:start}cngx-tab-group[data-orientation=vertical] .cngx-tabs__strip{flex-direction:column;flex-wrap:nowrap;overflow-x:hidden;overflow-y:hidden;scroll-snap-type:y proximity}cngx-tab-group[data-orientation=vertical] .cngx-tabs__tab{scroll-snap-align:start;white-space:normal;box-sizing:border-box;min-inline-size:100%}cngx-tab-group[data-orientation=vertical] .cngx-tabs__label{min-inline-size:auto;overflow:visible;text-overflow:clip}cngx-tab-group[data-fitted]:not([data-orientation=vertical]) .cngx-tabs__tab-wrapper{flex:1 1 0}cngx-tab-group[data-fitted]:not([data-orientation=vertical]) .cngx-tabs__tab{inline-size:100%;justify-content:center;text-align:center}cngx-tab-group[data-tab-align=center]:not([data-orientation=vertical]) .cngx-tabs__strip{justify-content:center}cngx-tab-group[data-tab-align=end]:not([data-orientation=vertical]) .cngx-tabs__strip{justify-content:flex-end}@media(prefers-reduced-motion:reduce){.cngx-tabs__busy-spinner{animation:none!important}}.cngx-tabs__rejection-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:var(--cngx-tab-rejection-icon-size, 1.25rem);height:var(--cngx-tab-rejection-icon-size, 1.25rem);border-radius:50%;background:var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25));color:var(--cngx-tab-rejection-icon-text, oklch(1 0 0));font-size:var(--cngx-tab-rejection-icon-font-size, .875rem);font-weight:700;line-height:1;margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__tab.cngx-tab--rejected{outline:var( --cngx-tab-rejected-outline, 2px solid var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25)) );outline-offset:var(--cngx-tab-rejected-outline-offset, 1px)}@media(prefers-reduced-motion:no-preference){.cngx-tabs__tab.cngx-tab--rejected{animation:cngx-tab-pulse-error var(--cngx-tab-rejected-pulse-duration, .6s) ease-out}}}@keyframes cngx-tabs-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes cngx-tab-pulse-error{0%{background:var(--cngx-tab-bg, transparent)}50%{background:var(--cngx-tab-rejected-pulse-bg, oklch(.45 .15 25 / .18))}to{background:var(--cngx-tab-bg, transparent)}}\n", "@layer cngx.tokens{@property --cngx-tab-strip-border{syntax: \"*\"; inherits: true; initial-value: 1px solid oklch(.87 0 0);}@property --cngx-tab-indicator-thickness{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .15s;}@property --cngx-tab-hover-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-indicator-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-badge-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-error-badge-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-tab-badge-font-size{syntax: \"*\"; inherits: false; initial-value: .75em;}@property --cngx-tab-badge-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 700;}@property --cngx-tab-radius{syntax: \"*\"; inherits: true; initial-value: .5rem;}@property --cngx-tab-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-tab-inactive-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 0 0);}@property --cngx-tab-surface-border-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.87 0 0);}@property --cngx-tab-surface-border-width{syntax: \"<length>\"; inherits: true; initial-value: 1px;}@property --cngx-tab-pill-active-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-pill-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.95 0 0);}@property --cngx-tab-segmented-track-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 0 0);}@property --cngx-tab-segmented-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.93 0 0);}@property --cngx-tab-segmented-active-shadow{syntax: \"*\"; inherits: true; initial-value: 0 1px 2px oklch(0 0 0 / .06);}@property --cngx-tab-pill-outline-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-tab-pill-outline-bg{syntax: \"<color>\"; inherits: true; initial-value: color-mix(in oklch,oklch(.66 .19 50) 12%,transparent);}@property --cngx-tab-pill-radius{syntax: \"<length>\"; inherits: true; initial-value: 100px;}@property --cngx-tab-contained-accent-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-tab-contained-accent-thickness{syntax: \"<length>\"; inherits: true; initial-value: 3px;}}@layer cngx.components{@scope(.cngx-tab-group){:scope{font:inherit;--cngx-tab-active-indicator-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-tab-strip-border: 1px solid var(--cngx-color-border, oklch(.88 .005 250))}.cngx-tabs__panel{container-type:inline-size;container-name:var(--cngx-tab-panel-container-name, cngx-tab-panel)}.cngx-tabs__strip{border-bottom:var(--cngx-tab-strip-border, 1px solid currentColor);gap:0;padding:0}.cngx-tabs__tab{position:relative;--cngx-tab-padding: .625rem 1rem;--cngx-tab-focus-ring: var(--cngx-tab-focus-ring-width, 2px) solid var(--cngx-color-primary, oklch(.66 .19 50));--cngx-tab-focus-offset: -2px;font-size:var(--cngx-tab-font-size, .875rem);font-weight:var(--cngx-tab-font-weight, 500);transition:color var(--cngx-tab-transition-duration, .15s) ease,background var(--cngx-tab-transition-duration, .15s) ease,box-shadow var(--cngx-tab-transition-duration, .15s) ease}:where(:scope[data-orientation=vertical]) .cngx-tabs__tab{--cngx-tab-padding: .5rem 1rem}.cngx-tabs__tab:after{content:\"\";position:absolute;inset-inline:0;bottom:0;block-size:var(--cngx-tab-indicator-thickness, 2px);background:var(--cngx-tab-active-indicator-color, currentColor);border-radius:var(--cngx-tab-indicator-thickness, 2px) var(--cngx-tab-indicator-thickness, 2px) 0 0;transform:scaleX(0);transition:transform var(--cngx-tab-transition-duration, .15s) ease}.cngx-tabs__tab:hover:not([aria-disabled=true]):not([aria-selected=true]){color:var(--cngx-tab-hover-color, var(--cngx-tab-active-color))}.cngx-tabs__tab[aria-selected=true]{color:var(--cngx-tab-active-color);box-shadow:none}.cngx-tabs__tab[aria-selected=true]:after{transform:scaleX(1)}:scope[data-orientation=vertical] .cngx-tabs__strip{border-bottom:0;border-inline-end:var(--cngx-tab-strip-border, 1px solid currentColor);padding:0}:scope[data-orientation=vertical] .cngx-tabs__tab:after{inset-inline:auto;inset-block:0;inset-inline-end:0;inline-size:var(--cngx-tab-indicator-thickness, 2px);block-size:auto;border-start-start-radius:var(--cngx-tab-indicator-thickness, 2px);border-end-start-radius:var(--cngx-tab-indicator-thickness, 2px);border-start-end-radius:0;border-end-end-radius:0;transform:scaleY(0)}:scope[data-orientation=vertical] .cngx-tabs__tab[aria-selected=true]:after{transform:scaleY(1)}.cngx-tabs__badge{width:var(--cngx-tab-badge-size, 1.25rem);height:var(--cngx-tab-badge-size, 1.25rem);border-radius:50%;color:var(--cngx-tab-error-badge-text-color, oklch(1 0 0));font-size:var(--cngx-tab-badge-font-size, .75em);font-weight:var(--cngx-tab-badge-font-weight, 700);line-height:1}.cngx-tabs__icon{display:inline-flex;align-items:center;flex:0 0 auto}:scope[data-icon-layout=start] .cngx-tabs__tab{flex-direction:row}:scope[data-icon-layout=end] .cngx-tabs__tab{flex-direction:row-reverse}:scope[data-icon-layout=top] .cngx-tabs__tab{flex-direction:column;align-items:center;text-align:center}:scope[data-icon-layout=start] .cngx-tabs__icon,:scope[data-icon-layout=end] .cngx-tabs__icon{align-self:flex-start;min-height:calc(var(--cngx-tab-label-line-height, 1.4) * 1em)}:scope[data-icon-layout=only] .cngx-tabs__text,:scope[data-icon-layout=only] .cngx-tabs__label,:scope[data-icon-layout=only] .cngx-tabs__sublabel{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.cngx-tabs__tab,.cngx-tabs__tab:before,.cngx-tabs__tab:after{transition:none!important}}}@scope(.cngx-tab-group[data-skin=contained]){:scope{--cngx-tab-active-bg: var(--cngx-color-surface, oklch(1 0 0));--cngx-tab-inactive-bg: color-mix( in oklch, var(--cngx-color-surface, oklch(1 0 0)), var(--cngx-color-border, oklch(.88 .005 250)) 25% );--cngx-tab-surface-border-color: var(--cngx-color-border, oklch(.88 .005 250));--cngx-tab-contained-accent-color: var(--cngx-color-primary, oklch(.66 .19 50))}.cngx-tabs__tab:after{display:none}.cngx-tabs__strip{border-bottom:0;gap:0;padding:0}.cngx-tabs__strip-wrapper{position:relative;z-index:1}.cngx-tabs__tab{--cngx-tab-padding: .625rem 1.25rem;background:var(--cngx-tab-inactive-bg, oklch(.97 0 0));border:var(--cngx-tab-surface-border-width, 1px) solid var(--cngx-tab-surface-border-color, oklch(.87 0 0));border-bottom:0;border-radius:0;margin-bottom:0;margin-inline-end:-1px}.cngx-tabs__tab[aria-selected=true]{font-weight:var(--cngx-tab-active-font-weight, 600)}.cngx-tabs__tab:before{content:\"\";position:absolute;inset-inline:0;top:-1px;height:var(--cngx-tab-contained-accent-thickness, 3px);background:var(--cngx-tab-contained-accent-color, oklch(.66 .19 50));transform:scaleX(0);transition:transform var(--cngx-tab-transition-duration, .15s) ease}.cngx-tabs__tab:hover:not([aria-disabled=true]):not([aria-selected=true]){background:color-mix(in oklch,var(--cngx-tab-inactive-bg, oklch(.97 0 0)) 60%,var(--cngx-tab-active-bg, oklch(1 0 0)))}.cngx-tabs__tab+.cngx-tabs__tab{margin-inline-start:calc(var(--cngx-tab-surface-border-width, 1px) * -1)}.cngx-tabs__tab[aria-selected=true]{background:var(--cngx-tab-active-bg, oklch(1 0 0));color:var(--cngx-tab-active-color, currentColor);box-shadow:none;margin-bottom:0;position:relative;z-index:1}.cngx-tabs__tab[aria-selected=true]:before{transform:scaleX(1)}.cngx-tabs__panels{border:var(--cngx-tab-surface-border-width, 1px) solid var(--cngx-tab-surface-border-color, oklch(.87 0 0));border-radius:0;margin-block-start:calc(var(--cngx-tab-surface-border-width, 1px) * -1);background:var(--cngx-tab-active-bg, oklch(1 0 0))}}@scope(.cngx-tab-group[data-skin=contained][data-orientation=vertical]){:scope[data-orientation=vertical]{--cngx-tab-vertical-gap: 0;align-items:stretch}:scope[data-orientation=vertical] .cngx-tabs__strip{border-bottom:0;border-inline-end:0;padding:0}.cngx-tabs__tab{border:var(--cngx-tab-surface-border-width, 1px) solid var(--cngx-tab-surface-border-color, oklch(.87 0 0));border-radius:0;margin-inline-end:0;margin-bottom:calc(var(--cngx-tab-surface-border-width, 1px) * -1)}.cngx-tabs__tab:before{inset-inline:auto;inset-inline-start:-1px;inset-block:0;width:var(--cngx-tab-contained-accent-thickness, 3px);height:auto;transform:scaleY(0)}.cngx-tabs__tab[aria-selected=true]:before{transform:scaleY(1)}.cngx-tabs__tab[aria-selected=true]{border-inline-end:0;margin-bottom:calc(var(--cngx-tab-surface-border-width, 1px) * -1);margin-inline-end:0}.cngx-tabs__tab-wrapper:last-child .cngx-tabs__tab{margin-bottom:0}.cngx-tabs__panels{border-block-start:var(--cngx-tab-surface-border-width, 1px) solid var(--cngx-tab-surface-border-color, oklch(.87 0 0));border-inline-start:0;margin-block-start:0}}@scope(.cngx-tab-group[data-skin=pill]){:scope{--cngx-tab-active-bg: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-tab-pill-active-color: var(--cngx-color-on-primary, oklch(1 0 0));--cngx-tab-pill-hover-bg: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 8%, transparent )}.cngx-tabs__strip{border-bottom:0;gap:var(--cngx-tab-pill-gap, .375rem);padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tabs__tab{--cngx-tab-padding: .4375rem .875rem;--cngx-tab-focus-offset: 1px;background:transparent;border:0;border-radius:var(--cngx-tab-pill-radius, 100px);margin-bottom:0}.cngx-tabs__tab:after{display:none}.cngx-tabs__tab:hover:not([aria-disabled=true]):not([aria-selected=true]){background:var(--cngx-tab-pill-hover-bg, oklch(.95 0 0))}.cngx-tabs__tab[aria-selected=true]{background:var(--cngx-tab-active-bg, oklch(.66 .19 50));color:var(--cngx-tab-pill-active-color, oklch(1 0 0));box-shadow:none}}@scope(.cngx-tab-group[data-skin=pill][data-orientation=vertical]){:scope[data-orientation=vertical] .cngx-tabs__strip{border-inline-end:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}:scope[data-orientation=vertical] .cngx-tabs__tab{--cngx-tab-padding: .4375rem 1rem;border-inline-end:0;margin-inline-end:0;justify-content:center;text-align:center}}@scope(.cngx-tab-group[data-skin=pill-outline]){:scope{--cngx-tab-pill-outline-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-tab-pill-outline-bg: color-mix( in oklch, var(--cngx-tab-pill-outline-color, oklch(.66 .19 50)) 12%, transparent )}.cngx-tabs__strip{border-bottom:0;gap:var(--cngx-tab-pill-gap, .375rem);padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tabs__tab{--cngx-tab-padding: .4375rem .875rem;--cngx-tab-focus-offset: 1px;background:transparent;border:var(--cngx-tab-surface-border-width, 1px) solid transparent;border-radius:var(--cngx-tab-pill-radius, 100px);margin-bottom:0}.cngx-tabs__tab:after{display:none}.cngx-tabs__tab:hover:not([aria-disabled=true]):not([aria-selected=true]){border-color:var(--cngx-tab-surface-border-color, oklch(.87 0 0))}.cngx-tabs__tab[aria-selected=true]{background:var(--cngx-tab-pill-outline-bg);border-color:var(--cngx-tab-pill-outline-color, oklch(.66 .19 50));color:var(--cngx-tab-pill-outline-color, oklch(.66 .19 50));box-shadow:none}}@scope(.cngx-tab-group[data-skin=segmented]){:scope{--cngx-tab-segmented-track-bg: color-mix( in oklch, var(--cngx-color-surface, oklch(1 0 0)), var(--cngx-color-border, oklch(.88 .005 250)) 25% );--cngx-tab-active-bg: var(--cngx-color-surface, oklch(1 0 0));--cngx-tab-segmented-hover-bg: color-mix( in oklch, var(--cngx-color-surface, oklch(1 0 0)), var(--cngx-color-border, oklch(.88 .005 250)) 45% )}.cngx-tabs__strip{background:var(--cngx-tab-segmented-track-bg, oklch(.96 0 0));border-bottom:0;border-radius:var(--cngx-tab-radius, .5rem);gap:var(--cngx-tab-segmented-gap, .25rem);padding:var(--cngx-tab-segmented-track-padding, .25rem);flex:0 1 auto;align-self:start}:scope[data-fitted]:not([data-orientation=vertical]) .cngx-tabs__strip{flex:1 1 auto}:scope[data-tab-align=center]:not([data-orientation=vertical]) .cngx-tabs__strip{margin-inline:auto}:scope[data-tab-align=end]:not([data-orientation=vertical]) .cngx-tabs__strip{margin-inline-start:auto}.cngx-tabs__tab{--cngx-tab-padding: .5rem .875rem;--cngx-tab-focus-offset: 1px;background:transparent;border:0;border-radius:calc(var(--cngx-tab-radius, .5rem) - .125rem);margin-bottom:0}.cngx-tabs__tab:after{display:none}.cngx-tabs__tab:hover:not([aria-disabled=true]):not([aria-selected=true]){background:var(--cngx-tab-segmented-hover-bg, oklch(.93 0 0))}.cngx-tabs__tab[aria-selected=true]{background:var(--cngx-tab-active-bg, oklch(1 0 0));color:var(--cngx-tab-active-color, currentColor);box-shadow:var(--cngx-tab-segmented-active-shadow, 0 1px 2px oklch(0 0 0 / .06))}}@scope(.cngx-tab-group[data-skin=segmented][data-orientation=vertical]){:scope[data-orientation=vertical] .cngx-tabs__strip{border-inline-end:0;align-self:start;padding:var(--cngx-tab-segmented-track-padding, .25rem)}:scope[data-orientation=vertical] .cngx-tabs__tab{--cngx-tab-padding: .5rem 1rem;border-inline-end:0;margin-inline-end:0}}@scope(.cngx-tab-group[data-skin=pill-outline][data-orientation=vertical]){:scope[data-orientation=vertical] .cngx-tabs__strip{border-inline-end:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}:scope[data-orientation=vertical] .cngx-tabs__tab{--cngx-tab-padding: .4375rem 1rem;border:var(--cngx-tab-surface-border-width, 1px) solid transparent;margin-bottom:0;margin-inline-end:0;justify-content:center;text-align:center}:scope[data-orientation=vertical] .cngx-tabs__tab[aria-selected=true]{border-color:var(--cngx-tab-pill-outline-color, oklch(.66 .19 50))}}}@media(prefers-color-scheme:dark){.cngx-tab-group[data-skin=segmented]{--cngx-tab-segmented-active-shadow: 0 1px 3px oklch(0 0 0 / .3)}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CngxLiveRegion, selector: "[cngxLiveRegion]", inputs: ["politeness", "atomic", "relevant"], exportAs: ["cngxLiveRegion"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
196
416
  }
197
417
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTabGroup, decorators: [{
198
418
  type: Component,
199
- args: [{ selector: 'cngx-tab-group', exportAs: 'cngxTabGroup', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet, CngxLiveRegion, CngxRovingItem], encapsulation: ViewEncapsulation.None, hostDirectives: [
419
+ args: [{ selector: 'cngx-tab-group', exportAs: 'cngxTabGroup', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet, CngxLiveRegion], encapsulation: ViewEncapsulation.None, hostDirectives: [
200
420
  {
201
421
  directive: CngxTabGroupPresenter,
202
422
  inputs: ['activeIndex', 'orientation', 'loop', 'commitAction', 'commitMode'],
203
- outputs: ['activeIndexChange'],
204
- },
205
- {
206
- directive: CngxRovingTabindex,
207
- inputs: ['orientation', 'loop'],
423
+ outputs: ['activeIndexChange', 'tabClose', 'tabAdd'],
208
424
  },
209
425
  { directive: CngxFocusRestore },
210
426
  ], providers: [{ provide: CNGX_TAB_PANEL_HOST, useExisting: CngxTabGroup }], host: {
@@ -213,13 +429,108 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
213
429
  '[attr.aria-roledescription]': 'announcements.tabsRoleDescription()',
214
430
  '[attr.aria-orientation]': 'presenter.orientation()',
215
431
  '[attr.data-orientation]': 'presenter.orientation()',
432
+ '[attr.data-skin]': 'hostAttrs.resolvedSkin()',
433
+ '[attr.data-icon-layout]': 'hostAttrs.resolvedIconLayout()',
434
+ '[attr.data-panel-mode]': 'hostAttrs.resolvedPanelMode()',
435
+ '[attr.data-fitted]': "hostAttrs.resolvedFitted() ? '' : null",
436
+ '[attr.data-tab-align]': 'hostAttrs.resolvedTabAlign()',
216
437
  '[attr.aria-label]': 'announcements.resolvedAriaLabel()',
217
438
  '[attr.aria-labelledby]': 'ariaLabelledBy()',
218
439
  '[class.cngx-tabs]': 'true',
219
- }, template: "<div class=\"cngx-tabs__strip-wrapper\">\n@let failedIdx = presenter.lastFailedIndex();\n<div\n class=\"cngx-tabs__strip\"\n role=\"tablist\"\n [attr.aria-orientation]=\"presenter.orientation()\"\n>\n @for (tab of tabs(); track tab.id; let i = $index) {\n <button\n type=\"button\"\n cngxRovingItem\n class=\"cngx-tabs__tab\"\n [class.cngx-tab--rejected]=\"failedIdx === i\"\n role=\"tab\"\n [id]=\"tabHeaderId(tab)\"\n [attr.aria-label]=\"announcements.tabAriaLabel(tab, i + 1)\"\n [attr.aria-selected]=\"isSelected(tab) ? 'true' : 'false'\"\n [attr.aria-controls]=\"tabPanelId(tab)\"\n [attr.aria-disabled]=\"tab.disabled() ? 'true' : null\"\n [attr.aria-busy]=\"isTabBusy(tab) ? 'true' : null\"\n [attr.aria-describedby]=\"tabDescriptorId(tab)\"\n [cngxRovingItemDisabled]=\"tab.disabled()\"\n (click)=\"handleHeaderClick(tab)\"\n >\n <span class=\"cngx-tabs__label\">\n @let labelTpl = labelTemplateFor(tab.id);\n @if (labelTpl) {\n <ng-container *ngTemplateOutlet=\"labelTpl\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </span>\n @if (showErrorBadge(tab)) {\n @let errorBadgeTpl = templates.errorBadge();\n @if (errorBadgeTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n errorBadgeTpl;\n context: errorBadgeContextFor(tab)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__badge\" aria-hidden=\"true\">{{\n glyphs.errorBadge\n }}</span>\n }\n }\n @if (failedIdx === i) {\n @let rejectionIconTpl = templates.rejectionIcon();\n @if (rejectionIconTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n rejectionIconTpl;\n context: rejectionIconContextFor(i)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__rejection-icon\" aria-hidden=\"true\">{{\n glyphs.rejectionIcon\n }}</span>\n }\n }\n @if (isTabBusy(tab)) {\n @let busySpinnerTpl = templates.busySpinner();\n @if (busySpinnerTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n busySpinnerTpl;\n context: busySpinnerContextFor(tab)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__busy-spinner\" aria-hidden=\"true\"></span>\n }\n }\n <span class=\"cngx-sr-only\" [id]=\"tabDescriptorId(tab)\">{{\n announcements.statusPhrase(tab)\n }}</span>\n </button>\n }\n</div>\n<ng-content select=\"cngx-tab-overflow\"></ng-content>\n</div>\n\n<div class=\"cngx-tabs__panels\">\n @for (tab of tabs(); track tab.id) {\n <div\n class=\"cngx-tabs__panel\"\n role=\"tabpanel\"\n [id]=\"tabPanelId(tab)\"\n [attr.aria-labelledby]=\"tabHeaderId(tab)\"\n [attr.aria-roledescription]=\"announcements.tabPanelRoleDescription()\"\n [hidden]=\"!isSelected(tab)\"\n >\n @let contentTpl = contentTemplateFor(tab.id);\n @if (contentTpl) {\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n }\n </div>\n }\n</div>\n\n<span class=\"cngx-tabs__live-region cngx-sr-only\" cngxLiveRegion>{{\n announcements.liveAnnouncement()\n}}</span>\n\n<!--\n Generic slot for opt-in skin sub-components other than the\n overflow molecule (which projects into the strip-wrapper via the\n named `select=\"cngx-tab-overflow\"` slot above). Projected content\n sees `CNGX_TAB_PANEL_HOST` via the organism's provider, so\n molecules inject the contract without reaching for the concrete\n `CngxTabGroup` class.\n-->\n<ng-content></ng-content>\n", styles: ["@layer cngx.tokens{@property --cngx-tab-gap{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-tab-strip-padding{syntax: \"*\"; inherits: false; initial-value: .5rem 0;}@property --cngx-tab-strip-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-padding{syntax: \"*\"; inherits: false; initial-value: .5rem .75rem;}@property --cngx-tab-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-indicator-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-tab-active-indicator-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .55;}@property --cngx-tab-focus-ring{syntax: \"*\"; inherits: false; initial-value: 2px solid currentColor;}@property --cngx-tab-focus-offset{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-error-badge-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-tab-busy-spinner-size{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-tab-busy-spinner-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-rejection-icon-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-rejection-icon-color{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-tab-rejection-icon-text{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-tab-rejection-icon-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-tab-rejected-outline{syntax: \"*\"; inherits: false; initial-value: 2px solid oklch(.45 .15 25);}@property --cngx-tab-rejected-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-tab-rejected-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: .6s;}@property --cngx-tab-rejected-pulse-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25 / .18);}:root{--cngx-tab-active-indicator-color: var(--cngx-color-primary, oklch(.66 .19 50))}}@layer cngx.components{cngx-tab-group{display:block}.cngx-tabs__strip-wrapper{display:flex;flex-direction:row;align-items:stretch;position:relative}.cngx-tabs__strip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;flex:1 1 auto;min-width:0;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-strip-padding, .5rem 0);background:var(--cngx-tab-strip-bg, transparent);overflow-x:hidden;overflow-y:hidden;scroll-snap-type:x proximity}.cngx-tabs__tab{display:inline-flex;align-items:center;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-padding, .5rem .75rem);border:0;background:var(--cngx-tab-bg, transparent);color:var(--cngx-tab-color, currentColor);cursor:pointer;font:inherit;text-align:start;white-space:nowrap;scroll-snap-align:start}.cngx-tabs__tab[aria-selected=true]{color:var(--cngx-tab-active-color, currentColor);box-shadow:inset 0 calc(var(--cngx-tab-active-indicator-width, 2px) * -1) 0 var(--cngx-tab-active-indicator-color, oklch(.66 .19 50))}.cngx-tabs__tab[aria-disabled=true]{cursor:not-allowed;opacity:var(--cngx-tab-disabled-opacity, .55)}.cngx-tabs__tab:focus-visible{outline:var(--cngx-tab-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-tab-focus-offset, 2px)}.cngx-tabs__tab[aria-busy=true]{cursor:progress}.cngx-tabs__label{flex:1 1 auto;min-width:0}.cngx-tabs__badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:var(--cngx-tab-error-badge-color, oklch(.45 .15 25));margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__busy-spinner{display:inline-block;width:var(--cngx-tab-busy-spinner-size, 1rem);height:var(--cngx-tab-busy-spinner-size, 1rem);border:2px solid transparent;border-top-color:var(--cngx-tab-busy-spinner-color, currentColor);border-right-color:var(--cngx-tab-busy-spinner-color, currentColor);border-radius:50%;flex:0 0 auto;margin-inline-start:var(--cngx-tab-gap, .5rem);animation:cngx-tabs-spin .75s linear infinite}.cngx-tabs__panels{display:block}.cngx-tabs__panel{display:block;padding:var(--cngx-tab-padding, .5rem .75rem)}.cngx-tabs__panel[hidden]{display:none}.cngx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}cngx-tab-group[data-orientation=vertical]{display:grid;grid-template-columns:minmax(8rem,max-content) 1fr;gap:var(--cngx-tab-gap, .5rem);align-items:start}cngx-tab-group[data-orientation=vertical] .cngx-tabs__strip{flex-direction:column;flex-wrap:nowrap;overflow-x:hidden;overflow-y:auto;scroll-snap-type:y proximity}cngx-tab-group[data-orientation=vertical] .cngx-tabs__tab{scroll-snap-align:start;white-space:normal}@media(prefers-reduced-motion:reduce){.cngx-tabs__busy-spinner{animation:none!important}}.cngx-tabs__rejection-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:var(--cngx-tab-rejection-icon-size, 1.25rem);height:var(--cngx-tab-rejection-icon-size, 1.25rem);border-radius:50%;background:var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25));color:var(--cngx-tab-rejection-icon-text, oklch(1 0 0));font-size:var(--cngx-tab-rejection-icon-font-size, .875rem);font-weight:700;line-height:1;margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__tab.cngx-tab--rejected{outline:var( --cngx-tab-rejected-outline, 2px solid var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25)) );outline-offset:var(--cngx-tab-rejected-outline-offset, 1px)}@media(prefers-reduced-motion:no-preference){.cngx-tabs__tab.cngx-tab--rejected{animation:cngx-tab-pulse-error var(--cngx-tab-rejected-pulse-duration, .6s) ease-out}}}@keyframes cngx-tabs-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes cngx-tab-pulse-error{0%{background:var(--cngx-tab-bg, transparent)}50%{background:var(--cngx-tab-rejected-pulse-bg, oklch(.45 .15 25 / .18))}to{background:var(--cngx-tab-bg, transparent)}}\n", "@layer cngx.tokens{@property --cngx-tab-strip-border{syntax: \"*\"; inherits: false; initial-value: 1px solid currentColor;}@property --cngx-tab-indicator-thickness{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .15s;}@property --cngx-tab-hover-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-indicator-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-badge-size{syntax: \"<length>\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-error-badge-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-tab-badge-font-size{syntax: \"*\"; inherits: false; initial-value: .75em;}@property --cngx-tab-badge-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 700;}}@layer cngx.components{@scope(.cngx-tab-group){:scope{font:inherit}.cngx-tabs__strip{border-bottom:var(--cngx-tab-strip-border, 1px solid currentColor)}.cngx-tabs__tab{position:relative;border-bottom:var(--cngx-tab-indicator-thickness, 2px) solid transparent;margin-bottom:calc(var(--cngx-tab-indicator-thickness, 2px) * -1);transition:color var(--cngx-tab-transition-duration, .15s) ease,border-color var(--cngx-tab-transition-duration, .15s) ease}.cngx-tabs__tab:hover:not([aria-disabled=true]){color:var(--cngx-tab-hover-color, var(--cngx-tab-active-color))}.cngx-tabs__tab[aria-selected=true]{color:var(--cngx-tab-active-color);border-bottom-color:var(--cngx-tab-active-indicator-color, currentColor)}:scope[data-orientation=vertical] .cngx-tabs__strip{border-bottom:0;border-inline-end:var(--cngx-tab-strip-border, 1px solid currentColor)}:scope[data-orientation=vertical] .cngx-tabs__tab{border-bottom:0;margin-bottom:0;border-inline-end:var(--cngx-tab-indicator-thickness, 2px) solid transparent;margin-inline-end:calc(var(--cngx-tab-indicator-thickness, 2px) * -1)}:scope[data-orientation=vertical] .cngx-tabs__tab[aria-selected=true]{border-inline-end-color:var(--cngx-tab-active-indicator-color, currentColor)}.cngx-tabs__badge{width:var(--cngx-tab-badge-size, 1.25rem);height:var(--cngx-tab-badge-size, 1.25rem);border-radius:50%;color:var(--cngx-tab-error-badge-text-color, oklch(1 0 0));font-size:var(--cngx-tab-badge-font-size, .75em);font-weight:var(--cngx-tab-badge-font-weight, 700);line-height:1}@media(prefers-reduced-motion:reduce){.cngx-tabs__tab{transition:none!important}}}}\n"] }]
220
- }], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], tabDirectives: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => CngxTab), { ...{
440
+ }, template: "<div class=\"cngx-tabs__strip-wrapper\">\n@let failedIdx = presenter.lastFailedIndex();\n<div\n class=\"cngx-tabs__strip\"\n role=\"tablist\"\n [attr.aria-orientation]=\"presenter.orientation()\"\n>\n @for (tab of tabs(); track tab.id; let i = $index) {\n <div class=\"cngx-tabs__tab-wrapper\" role=\"presentation\">\n <button\n type=\"button\"\n class=\"cngx-tabs__tab\"\n [class.cngx-tab--rejected]=\"failedIdx === i\"\n [class.cngx-tabs__tab--closable]=\"dismiss.isTabClosable(tab)\"\n role=\"tab\"\n [id]=\"tabHeaderId(tab)\"\n [attr.data-tab-id]=\"tab.id\"\n [attr.tabindex]=\"tabTabindex(tab)\"\n [attr.aria-label]=\"announcements.tabAriaLabel(tab, i + 1)\"\n [attr.aria-selected]=\"isSelected(tab) ? 'true' : 'false'\"\n [attr.aria-controls]=\"tabPanelId(tab)\"\n [attr.aria-disabled]=\"tab.disabled() ? 'true' : null\"\n [attr.aria-busy]=\"isTabBusy(tab) ? 'true' : null\"\n [attr.aria-describedby]=\"tabDescriptorId(tab)\"\n [attr.aria-keyshortcuts]=\"dismiss.isTabClosable(tab) ? 'Delete' : null\"\n (click)=\"handleHeaderClick(tab)\"\n (keydown)=\"handleTabKeydown(tab, $event)\"\n >\n @let iconTpl = templates.icon();\n @if (iconTpl) {\n <span class=\"cngx-tabs__icon\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"iconTpl; context: iconContextFor(tab, i)\"\n ></ng-container>\n </span>\n }\n <span class=\"cngx-tabs__text\">\n <span class=\"cngx-tabs__label\">\n @let labelTpl = labelTemplateFor(tab.id);\n @if (labelTpl) {\n <ng-container *ngTemplateOutlet=\"labelTpl\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </span>\n @let subLabelTpl = subLabelTemplateFor(tab.id);\n @if (subLabelTpl || tab.subLabel()) {\n <span class=\"cngx-tabs__sublabel\">\n @if (subLabelTpl) {\n <ng-container *ngTemplateOutlet=\"subLabelTpl\"></ng-container>\n } @else {\n {{ tab.subLabel() }}\n }\n </span>\n }\n </span>\n @if (showErrorBadge(tab)) {\n @let errorBadgeTpl = templates.errorBadge();\n @if (errorBadgeTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n errorBadgeTpl;\n context: errorBadgeContextFor(tab)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__badge\" aria-hidden=\"true\">{{\n glyphs.errorBadge\n }}</span>\n }\n }\n @if (failedIdx === i) {\n @let rejectionIconTpl = templates.rejectionIcon();\n @if (rejectionIconTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n rejectionIconTpl;\n context: rejectionIconContextFor(i)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__rejection-icon\" aria-hidden=\"true\">{{\n glyphs.rejectionIcon\n }}</span>\n }\n }\n @if (isTabBusy(tab)) {\n @let busySpinnerTpl = templates.busySpinner();\n @if (busySpinnerTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n busySpinnerTpl;\n context: busySpinnerContextFor(tab)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__busy-spinner\" aria-hidden=\"true\"></span>\n }\n }\n <span class=\"cngx-sr-only\" [id]=\"tabDescriptorId(tab)\">{{\n announcements.statusPhrase(tab)\n }}</span>\n </button>\n @if (dismiss.isTabClosable(tab)) {\n <button\n type=\"button\"\n class=\"cngx-tabs__close\"\n tabindex=\"-1\"\n [attr.aria-label]=\"dismiss.closeButtonLabel(tab)\"\n (click)=\"dismiss.handleClose(tab, $event)\"\n >\n @let closeIconTpl = templates.closeIcon();\n @if (closeIconTpl) {\n <ng-container\n *ngTemplateOutlet=\"closeIconTpl; context: dismiss.closeIconContextFor(tab)\"\n ></ng-container>\n } @else {\n <span aria-hidden=\"true\">{{ glyphs.closeIcon }}</span>\n }\n </button>\n }\n </div>\n }\n</div>\n@if (dismiss.resolvedAddable()) {\n <button\n type=\"button\"\n class=\"cngx-tabs__add\"\n [attr.aria-label]=\"i18n.addTab\"\n (click)=\"dismiss.handleAdd()\"\n >\n @let addIconTpl = templates.addIcon();\n @if (addIconTpl) {\n <ng-container *ngTemplateOutlet=\"addIconTpl\"></ng-container>\n } @else {\n <span aria-hidden=\"true\">{{ glyphs.addIcon }}</span>\n }\n </button>\n}\n<ng-content select=\"cngx-tab-overflow\"></ng-content>\n</div>\n\n<div class=\"cngx-tabs__panels\">\n @for (tab of tabs(); track tab.id) {\n <div\n class=\"cngx-tabs__panel\"\n role=\"tabpanel\"\n [id]=\"tabPanelId(tab)\"\n [attr.aria-labelledby]=\"tabHeaderId(tab)\"\n [attr.aria-roledescription]=\"announcements.tabPanelRoleDescription()\"\n [attr.tabindex]=\"panelTabindex(tab)\"\n [hidden]=\"!isSelected(tab)\"\n >\n @if (shouldRenderContent(tab)) {\n @let contentTpl = contentTemplateFor(tab.id);\n @if (contentTpl) {\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n }\n }\n </div>\n }\n</div>\n\n<span class=\"cngx-tabs__live-region cngx-sr-only\" cngxLiveRegion>{{\n announcements.liveAnnouncement()\n}}</span>\n\n<!--\n Generic slot for opt-in skin sub-components other than the\n overflow molecule (which projects into the strip-wrapper via the\n named `select=\"cngx-tab-overflow\"` slot above). Projected content\n sees `CNGX_TAB_PANEL_HOST` via the organism's provider, so\n molecules inject the contract without reaching for the concrete\n `CngxTabGroup` class.\n-->\n<ng-content></ng-content>\n", styles: ["@layer cngx.tokens{@property --cngx-tab-gap{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-tab-strip-padding{syntax: \"*\"; inherits: false; initial-value: .5rem 0;}@property --cngx-tab-strip-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-padding{syntax: \"*\"; inherits: false; initial-value: .5rem .75rem;}@property --cngx-tab-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-indicator-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-tab-active-indicator-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .55;}@property --cngx-tab-focus-ring{syntax: \"*\"; inherits: false; initial-value: 2px solid currentColor;}@property --cngx-tab-focus-offset{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-error-badge-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-tab-busy-spinner-size{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-tab-busy-spinner-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-rejection-icon-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-rejection-icon-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-tab-rejection-icon-text{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-tab-rejection-icon-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-tab-rejected-outline{syntax: \"*\"; inherits: false; initial-value: 2px solid oklch(.45 .15 25);}@property --cngx-tab-rejected-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-tab-rejected-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: .6s;}@property --cngx-tab-rejected-pulse-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25 / .18);}@property --cngx-tab-affordance-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-affordance-radius{syntax: \"*\"; inherits: false; initial-value: 50%;}@property --cngx-tab-affordance-hover-bg{syntax: \"*\"; inherits: false; initial-value: color-mix(in oklch,currentColor 14%,transparent);}@property --cngx-tab-label-line-height{syntax: \"*\"; inherits: true; initial-value: 1.4;}@property --cngx-tab-sublabel-font-size{syntax: \"*\"; inherits: true; initial-value: .8125rem;}@property --cngx-tab-sublabel-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in oklab,currentColor 65%,transparent);}:root{--cngx-tab-active-indicator-color: var(--cngx-color-primary, oklch(.66 .19 50))}}@layer cngx.components{cngx-tab-group{display:block}.cngx-tabs__strip-wrapper{display:flex;flex-direction:row;align-items:stretch;position:relative}.cngx-tabs__strip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;flex:1 1 auto;min-width:0;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-strip-padding, .5rem 0);background:var(--cngx-tab-strip-bg, transparent);overflow-x:hidden;overflow-y:hidden;scroll-snap-type:x proximity}.cngx-tabs__tab{display:inline-flex;align-items:center;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-padding, .5rem .75rem);border:0;background:var(--cngx-tab-bg, transparent);color:var(--cngx-tab-color, currentColor);cursor:pointer;font:inherit;text-align:start;white-space:nowrap;scroll-snap-align:start}.cngx-tabs__tab[aria-selected=true]{color:var(--cngx-tab-active-color, currentColor);box-shadow:inset 0 calc(var(--cngx-tab-active-indicator-width, 2px) * -1) 0 var(--cngx-tab-active-indicator-color, oklch(.66 .19 50))}.cngx-tabs__tab[aria-disabled=true]{cursor:not-allowed;opacity:var(--cngx-tab-disabled-opacity, .55)}.cngx-tabs__tab:focus-visible{outline:var(--cngx-tab-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-tab-focus-offset, 2px)}.cngx-tabs__tab[aria-busy=true]{cursor:progress}.cngx-tabs__text{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}.cngx-tabs__label{min-width:0;overflow:hidden;text-overflow:ellipsis;line-height:var(--cngx-tab-label-line-height, 1.4)}.cngx-tabs__sublabel{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:var(--cngx-tab-sublabel-font-size, .8125rem);color:var(--cngx-tab-sublabel-color, color-mix(in oklab, currentColor 65%, transparent))}.cngx-tabs__tab-wrapper{position:relative;display:inline-flex;align-items:stretch}.cngx-tabs__tab--closable{padding-inline-end:calc(var(--cngx-tab-affordance-size, 1.25rem) + var(--cngx-tab-gap, .5rem) * 2)}.cngx-tabs__close,.cngx-tabs__add{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;box-sizing:border-box;width:var(--cngx-tab-affordance-size, 1.25rem);height:var(--cngx-tab-affordance-size, 1.25rem);padding:0;border:0;border-radius:var(--cngx-tab-affordance-radius, 50%);background:transparent;color:inherit;font:inherit;line-height:1;cursor:pointer}.cngx-tabs__close{position:absolute;inset-inline-end:var(--cngx-tab-gap, .5rem);top:50%;transform:translateY(-50%);z-index:1}.cngx-tabs__add{margin-inline-start:var(--cngx-tab-gap, .5rem);align-self:center}.cngx-tabs__close:hover,.cngx-tabs__add:hover{background:var( --cngx-tab-affordance-hover-bg, color-mix(in oklch, currentColor 14%, transparent) )}.cngx-tabs__close:focus-visible,.cngx-tabs__add:focus-visible{outline:var(--cngx-tab-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-tab-focus-offset, 2px)}cngx-tab-group[data-orientation=vertical] .cngx-tabs__add{margin-inline-start:0;margin-block-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:var(--cngx-tab-error-badge-color, oklch(.45 .15 25));margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__busy-spinner{display:inline-block;width:var(--cngx-tab-busy-spinner-size, 1rem);height:var(--cngx-tab-busy-spinner-size, 1rem);border:2px solid transparent;border-top-color:var(--cngx-tab-busy-spinner-color, currentColor);border-right-color:var(--cngx-tab-busy-spinner-color, currentColor);border-radius:50%;flex:0 0 auto;margin-inline-start:var(--cngx-tab-gap, .5rem);animation:cngx-tabs-spin .75s linear infinite}.cngx-tabs__panels{display:block}.cngx-tabs__panel{display:block;padding:var(--cngx-tab-padding, .5rem .75rem)}.cngx-tabs__panel[hidden]{display:none}.cngx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}cngx-tab-group[data-orientation=vertical]{display:grid;grid-template-columns:max-content 1fr;gap:var(--cngx-tab-vertical-gap, 1rem);align-items:start}cngx-tab-group[data-orientation=vertical] .cngx-tabs__strip{flex-direction:column;flex-wrap:nowrap;overflow-x:hidden;overflow-y:hidden;scroll-snap-type:y proximity}cngx-tab-group[data-orientation=vertical] .cngx-tabs__tab{scroll-snap-align:start;white-space:normal;box-sizing:border-box;min-inline-size:100%}cngx-tab-group[data-orientation=vertical] .cngx-tabs__label{min-inline-size:auto;overflow:visible;text-overflow:clip}cngx-tab-group[data-fitted]:not([data-orientation=vertical]) .cngx-tabs__tab-wrapper{flex:1 1 0}cngx-tab-group[data-fitted]:not([data-orientation=vertical]) .cngx-tabs__tab{inline-size:100%;justify-content:center;text-align:center}cngx-tab-group[data-tab-align=center]:not([data-orientation=vertical]) .cngx-tabs__strip{justify-content:center}cngx-tab-group[data-tab-align=end]:not([data-orientation=vertical]) .cngx-tabs__strip{justify-content:flex-end}@media(prefers-reduced-motion:reduce){.cngx-tabs__busy-spinner{animation:none!important}}.cngx-tabs__rejection-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:var(--cngx-tab-rejection-icon-size, 1.25rem);height:var(--cngx-tab-rejection-icon-size, 1.25rem);border-radius:50%;background:var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25));color:var(--cngx-tab-rejection-icon-text, oklch(1 0 0));font-size:var(--cngx-tab-rejection-icon-font-size, .875rem);font-weight:700;line-height:1;margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__tab.cngx-tab--rejected{outline:var( --cngx-tab-rejected-outline, 2px solid var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25)) );outline-offset:var(--cngx-tab-rejected-outline-offset, 1px)}@media(prefers-reduced-motion:no-preference){.cngx-tabs__tab.cngx-tab--rejected{animation:cngx-tab-pulse-error var(--cngx-tab-rejected-pulse-duration, .6s) ease-out}}}@keyframes cngx-tabs-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes cngx-tab-pulse-error{0%{background:var(--cngx-tab-bg, transparent)}50%{background:var(--cngx-tab-rejected-pulse-bg, oklch(.45 .15 25 / .18))}to{background:var(--cngx-tab-bg, transparent)}}\n", "@layer cngx.tokens{@property --cngx-tab-strip-border{syntax: \"*\"; inherits: true; initial-value: 1px solid oklch(.87 0 0);}@property --cngx-tab-indicator-thickness{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-transition-duration{syntax: \"<time>\"; inherits: false; initial-value: .15s;}@property --cngx-tab-hover-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-indicator-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-badge-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-error-badge-text-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-tab-badge-font-size{syntax: \"*\"; inherits: false; initial-value: .75em;}@property --cngx-tab-badge-font-weight{syntax: \"<number>\"; inherits: false; initial-value: 700;}@property --cngx-tab-radius{syntax: \"*\"; inherits: true; initial-value: .5rem;}@property --cngx-tab-active-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-tab-inactive-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.97 0 0);}@property --cngx-tab-surface-border-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.87 0 0);}@property --cngx-tab-surface-border-width{syntax: \"<length>\"; inherits: true; initial-value: 1px;}@property --cngx-tab-pill-active-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-pill-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.95 0 0);}@property --cngx-tab-segmented-track-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.96 0 0);}@property --cngx-tab-segmented-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.93 0 0);}@property --cngx-tab-segmented-active-shadow{syntax: \"*\"; inherits: true; initial-value: 0 1px 2px oklch(0 0 0 / .06);}@property --cngx-tab-pill-outline-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-tab-pill-outline-bg{syntax: \"<color>\"; inherits: true; initial-value: color-mix(in oklch,oklch(.66 .19 50) 12%,transparent);}@property --cngx-tab-pill-radius{syntax: \"<length>\"; inherits: true; initial-value: 100px;}@property --cngx-tab-contained-accent-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-tab-contained-accent-thickness{syntax: \"<length>\"; inherits: true; initial-value: 3px;}}@layer cngx.components{@scope(.cngx-tab-group){:scope{font:inherit;--cngx-tab-active-indicator-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-tab-strip-border: 1px solid var(--cngx-color-border, oklch(.88 .005 250))}.cngx-tabs__panel{container-type:inline-size;container-name:var(--cngx-tab-panel-container-name, cngx-tab-panel)}.cngx-tabs__strip{border-bottom:var(--cngx-tab-strip-border, 1px solid currentColor);gap:0;padding:0}.cngx-tabs__tab{position:relative;--cngx-tab-padding: .625rem 1rem;--cngx-tab-focus-ring: var(--cngx-tab-focus-ring-width, 2px) solid var(--cngx-color-primary, oklch(.66 .19 50));--cngx-tab-focus-offset: -2px;font-size:var(--cngx-tab-font-size, .875rem);font-weight:var(--cngx-tab-font-weight, 500);transition:color var(--cngx-tab-transition-duration, .15s) ease,background var(--cngx-tab-transition-duration, .15s) ease,box-shadow var(--cngx-tab-transition-duration, .15s) ease}:where(:scope[data-orientation=vertical]) .cngx-tabs__tab{--cngx-tab-padding: .5rem 1rem}.cngx-tabs__tab:after{content:\"\";position:absolute;inset-inline:0;bottom:0;block-size:var(--cngx-tab-indicator-thickness, 2px);background:var(--cngx-tab-active-indicator-color, currentColor);border-radius:var(--cngx-tab-indicator-thickness, 2px) var(--cngx-tab-indicator-thickness, 2px) 0 0;transform:scaleX(0);transition:transform var(--cngx-tab-transition-duration, .15s) ease}.cngx-tabs__tab:hover:not([aria-disabled=true]):not([aria-selected=true]){color:var(--cngx-tab-hover-color, var(--cngx-tab-active-color))}.cngx-tabs__tab[aria-selected=true]{color:var(--cngx-tab-active-color);box-shadow:none}.cngx-tabs__tab[aria-selected=true]:after{transform:scaleX(1)}:scope[data-orientation=vertical] .cngx-tabs__strip{border-bottom:0;border-inline-end:var(--cngx-tab-strip-border, 1px solid currentColor);padding:0}:scope[data-orientation=vertical] .cngx-tabs__tab:after{inset-inline:auto;inset-block:0;inset-inline-end:0;inline-size:var(--cngx-tab-indicator-thickness, 2px);block-size:auto;border-start-start-radius:var(--cngx-tab-indicator-thickness, 2px);border-end-start-radius:var(--cngx-tab-indicator-thickness, 2px);border-start-end-radius:0;border-end-end-radius:0;transform:scaleY(0)}:scope[data-orientation=vertical] .cngx-tabs__tab[aria-selected=true]:after{transform:scaleY(1)}.cngx-tabs__badge{width:var(--cngx-tab-badge-size, 1.25rem);height:var(--cngx-tab-badge-size, 1.25rem);border-radius:50%;color:var(--cngx-tab-error-badge-text-color, oklch(1 0 0));font-size:var(--cngx-tab-badge-font-size, .75em);font-weight:var(--cngx-tab-badge-font-weight, 700);line-height:1}.cngx-tabs__icon{display:inline-flex;align-items:center;flex:0 0 auto}:scope[data-icon-layout=start] .cngx-tabs__tab{flex-direction:row}:scope[data-icon-layout=end] .cngx-tabs__tab{flex-direction:row-reverse}:scope[data-icon-layout=top] .cngx-tabs__tab{flex-direction:column;align-items:center;text-align:center}:scope[data-icon-layout=start] .cngx-tabs__icon,:scope[data-icon-layout=end] .cngx-tabs__icon{align-self:flex-start;min-height:calc(var(--cngx-tab-label-line-height, 1.4) * 1em)}:scope[data-icon-layout=only] .cngx-tabs__text,:scope[data-icon-layout=only] .cngx-tabs__label,:scope[data-icon-layout=only] .cngx-tabs__sublabel{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.cngx-tabs__tab,.cngx-tabs__tab:before,.cngx-tabs__tab:after{transition:none!important}}}@scope(.cngx-tab-group[data-skin=contained]){:scope{--cngx-tab-active-bg: var(--cngx-color-surface, oklch(1 0 0));--cngx-tab-inactive-bg: color-mix( in oklch, var(--cngx-color-surface, oklch(1 0 0)), var(--cngx-color-border, oklch(.88 .005 250)) 25% );--cngx-tab-surface-border-color: var(--cngx-color-border, oklch(.88 .005 250));--cngx-tab-contained-accent-color: var(--cngx-color-primary, oklch(.66 .19 50))}.cngx-tabs__tab:after{display:none}.cngx-tabs__strip{border-bottom:0;gap:0;padding:0}.cngx-tabs__strip-wrapper{position:relative;z-index:1}.cngx-tabs__tab{--cngx-tab-padding: .625rem 1.25rem;background:var(--cngx-tab-inactive-bg, oklch(.97 0 0));border:var(--cngx-tab-surface-border-width, 1px) solid var(--cngx-tab-surface-border-color, oklch(.87 0 0));border-bottom:0;border-radius:0;margin-bottom:0;margin-inline-end:-1px}.cngx-tabs__tab[aria-selected=true]{font-weight:var(--cngx-tab-active-font-weight, 600)}.cngx-tabs__tab:before{content:\"\";position:absolute;inset-inline:0;top:-1px;height:var(--cngx-tab-contained-accent-thickness, 3px);background:var(--cngx-tab-contained-accent-color, oklch(.66 .19 50));transform:scaleX(0);transition:transform var(--cngx-tab-transition-duration, .15s) ease}.cngx-tabs__tab:hover:not([aria-disabled=true]):not([aria-selected=true]){background:color-mix(in oklch,var(--cngx-tab-inactive-bg, oklch(.97 0 0)) 60%,var(--cngx-tab-active-bg, oklch(1 0 0)))}.cngx-tabs__tab+.cngx-tabs__tab{margin-inline-start:calc(var(--cngx-tab-surface-border-width, 1px) * -1)}.cngx-tabs__tab[aria-selected=true]{background:var(--cngx-tab-active-bg, oklch(1 0 0));color:var(--cngx-tab-active-color, currentColor);box-shadow:none;margin-bottom:0;position:relative;z-index:1}.cngx-tabs__tab[aria-selected=true]:before{transform:scaleX(1)}.cngx-tabs__panels{border:var(--cngx-tab-surface-border-width, 1px) solid var(--cngx-tab-surface-border-color, oklch(.87 0 0));border-radius:0;margin-block-start:calc(var(--cngx-tab-surface-border-width, 1px) * -1);background:var(--cngx-tab-active-bg, oklch(1 0 0))}}@scope(.cngx-tab-group[data-skin=contained][data-orientation=vertical]){:scope[data-orientation=vertical]{--cngx-tab-vertical-gap: 0;align-items:stretch}:scope[data-orientation=vertical] .cngx-tabs__strip{border-bottom:0;border-inline-end:0;padding:0}.cngx-tabs__tab{border:var(--cngx-tab-surface-border-width, 1px) solid var(--cngx-tab-surface-border-color, oklch(.87 0 0));border-radius:0;margin-inline-end:0;margin-bottom:calc(var(--cngx-tab-surface-border-width, 1px) * -1)}.cngx-tabs__tab:before{inset-inline:auto;inset-inline-start:-1px;inset-block:0;width:var(--cngx-tab-contained-accent-thickness, 3px);height:auto;transform:scaleY(0)}.cngx-tabs__tab[aria-selected=true]:before{transform:scaleY(1)}.cngx-tabs__tab[aria-selected=true]{border-inline-end:0;margin-bottom:calc(var(--cngx-tab-surface-border-width, 1px) * -1);margin-inline-end:0}.cngx-tabs__tab-wrapper:last-child .cngx-tabs__tab{margin-bottom:0}.cngx-tabs__panels{border-block-start:var(--cngx-tab-surface-border-width, 1px) solid var(--cngx-tab-surface-border-color, oklch(.87 0 0));border-inline-start:0;margin-block-start:0}}@scope(.cngx-tab-group[data-skin=pill]){:scope{--cngx-tab-active-bg: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-tab-pill-active-color: var(--cngx-color-on-primary, oklch(1 0 0));--cngx-tab-pill-hover-bg: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 8%, transparent )}.cngx-tabs__strip{border-bottom:0;gap:var(--cngx-tab-pill-gap, .375rem);padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tabs__tab{--cngx-tab-padding: .4375rem .875rem;--cngx-tab-focus-offset: 1px;background:transparent;border:0;border-radius:var(--cngx-tab-pill-radius, 100px);margin-bottom:0}.cngx-tabs__tab:after{display:none}.cngx-tabs__tab:hover:not([aria-disabled=true]):not([aria-selected=true]){background:var(--cngx-tab-pill-hover-bg, oklch(.95 0 0))}.cngx-tabs__tab[aria-selected=true]{background:var(--cngx-tab-active-bg, oklch(.66 .19 50));color:var(--cngx-tab-pill-active-color, oklch(1 0 0));box-shadow:none}}@scope(.cngx-tab-group[data-skin=pill][data-orientation=vertical]){:scope[data-orientation=vertical] .cngx-tabs__strip{border-inline-end:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}:scope[data-orientation=vertical] .cngx-tabs__tab{--cngx-tab-padding: .4375rem 1rem;border-inline-end:0;margin-inline-end:0;justify-content:center;text-align:center}}@scope(.cngx-tab-group[data-skin=pill-outline]){:scope{--cngx-tab-pill-outline-color: var(--cngx-color-primary, oklch(.66 .19 50));--cngx-tab-pill-outline-bg: color-mix( in oklch, var(--cngx-tab-pill-outline-color, oklch(.66 .19 50)) 12%, transparent )}.cngx-tabs__strip{border-bottom:0;gap:var(--cngx-tab-pill-gap, .375rem);padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tabs__tab{--cngx-tab-padding: .4375rem .875rem;--cngx-tab-focus-offset: 1px;background:transparent;border:var(--cngx-tab-surface-border-width, 1px) solid transparent;border-radius:var(--cngx-tab-pill-radius, 100px);margin-bottom:0}.cngx-tabs__tab:after{display:none}.cngx-tabs__tab:hover:not([aria-disabled=true]):not([aria-selected=true]){border-color:var(--cngx-tab-surface-border-color, oklch(.87 0 0))}.cngx-tabs__tab[aria-selected=true]{background:var(--cngx-tab-pill-outline-bg);border-color:var(--cngx-tab-pill-outline-color, oklch(.66 .19 50));color:var(--cngx-tab-pill-outline-color, oklch(.66 .19 50));box-shadow:none}}@scope(.cngx-tab-group[data-skin=segmented]){:scope{--cngx-tab-segmented-track-bg: color-mix( in oklch, var(--cngx-color-surface, oklch(1 0 0)), var(--cngx-color-border, oklch(.88 .005 250)) 25% );--cngx-tab-active-bg: var(--cngx-color-surface, oklch(1 0 0));--cngx-tab-segmented-hover-bg: color-mix( in oklch, var(--cngx-color-surface, oklch(1 0 0)), var(--cngx-color-border, oklch(.88 .005 250)) 45% )}.cngx-tabs__strip{background:var(--cngx-tab-segmented-track-bg, oklch(.96 0 0));border-bottom:0;border-radius:var(--cngx-tab-radius, .5rem);gap:var(--cngx-tab-segmented-gap, .25rem);padding:var(--cngx-tab-segmented-track-padding, .25rem);flex:0 1 auto;align-self:start}:scope[data-fitted]:not([data-orientation=vertical]) .cngx-tabs__strip{flex:1 1 auto}:scope[data-tab-align=center]:not([data-orientation=vertical]) .cngx-tabs__strip{margin-inline:auto}:scope[data-tab-align=end]:not([data-orientation=vertical]) .cngx-tabs__strip{margin-inline-start:auto}.cngx-tabs__tab{--cngx-tab-padding: .5rem .875rem;--cngx-tab-focus-offset: 1px;background:transparent;border:0;border-radius:calc(var(--cngx-tab-radius, .5rem) - .125rem);margin-bottom:0}.cngx-tabs__tab:after{display:none}.cngx-tabs__tab:hover:not([aria-disabled=true]):not([aria-selected=true]){background:var(--cngx-tab-segmented-hover-bg, oklch(.93 0 0))}.cngx-tabs__tab[aria-selected=true]{background:var(--cngx-tab-active-bg, oklch(1 0 0));color:var(--cngx-tab-active-color, currentColor);box-shadow:var(--cngx-tab-segmented-active-shadow, 0 1px 2px oklch(0 0 0 / .06))}}@scope(.cngx-tab-group[data-skin=segmented][data-orientation=vertical]){:scope[data-orientation=vertical] .cngx-tabs__strip{border-inline-end:0;align-self:start;padding:var(--cngx-tab-segmented-track-padding, .25rem)}:scope[data-orientation=vertical] .cngx-tabs__tab{--cngx-tab-padding: .5rem 1rem;border-inline-end:0;margin-inline-end:0}}@scope(.cngx-tab-group[data-skin=pill-outline][data-orientation=vertical]){:scope[data-orientation=vertical] .cngx-tabs__strip{border-inline-end:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}:scope[data-orientation=vertical] .cngx-tabs__tab{--cngx-tab-padding: .4375rem 1rem;border:var(--cngx-tab-surface-border-width, 1px) solid transparent;margin-bottom:0;margin-inline-end:0;justify-content:center;text-align:center}:scope[data-orientation=vertical] .cngx-tabs__tab[aria-selected=true]{border-color:var(--cngx-tab-pill-outline-color, oklch(.66 .19 50))}}}@media(prefers-color-scheme:dark){.cngx-tab-group[data-skin=segmented]{--cngx-tab-segmented-active-shadow: 0 1px 3px oklch(0 0 0 / .3)}}\n"] }]
441
+ }], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], skin: [{ type: i0.Input, args: [{ isSignal: true, alias: "skin", required: false }] }], iconLayout: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLayout", required: false }] }], panelMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelMode", required: false }] }], fitted: [{ type: i0.Input, args: [{ isSignal: true, alias: "fitted", required: false }] }], tabAlign: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabAlign", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], addable: [{ type: i0.Input, args: [{ isSignal: true, alias: "addable", required: false }] }], tabDirectives: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => CngxTab), { ...{
221
442
  descendants: true,
222
- }, isSignal: true }] }], errorBadgeSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTabErrorBadge), { isSignal: true }] }], rejectionIconSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTabRejectionIcon), { isSignal: true }] }], busySpinnerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTabBusySpinner), { isSignal: true }] }] } });
443
+ }, isSignal: true }] }], errorBadgeSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTabErrorBadge), { isSignal: true }] }], rejectionIconSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTabRejectionIcon), { isSignal: true }] }], busySpinnerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTabBusySpinner), { isSignal: true }] }], iconSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTabIcon), { isSignal: true }] }], closeIconSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTabCloseIcon), { isSignal: true }] }], addIconSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTabAddIcon), { isSignal: true }] }] } });
444
+
445
+ /**
446
+ * CNGX tab-nav organism. \
447
+ * A `role="navigation"` landmark that wraps consumer-authored
448
+ * `<a cngxTabLink routerLink>` anchors into a tab bar. Native parallel of
449
+ * `[cngxMatTabNav]` in `@cngx/ui/mat-tabs`, and the link-driven sibling of
450
+ * the programmatic `<cngx-tab-group>` tablist: a navigation of natively
451
+ * focusable links is a different WAI-ARIA pattern than an automatic-
452
+ * activation tablist, so it is a separate organism, not a skin flag.
453
+ *
454
+ * Thin shell over {@link CngxTabGroupPresenter} via `hostDirectives` - the
455
+ * registry, `activeIndex`, and `activeId` come from the same brain the
456
+ * tablist organism and the Material bridge compose. There is no keyboard
457
+ * model and no commit gating: links are natural `Tab` stops, `Enter`
458
+ * activates the `routerLink`, and the router runs `CanDeactivate` natively.
459
+ * Add `[cngxTabsRouteSync]` to drive the active link from the route - it
460
+ * reflects `NavigationEnd` onto `activeIndex`; its commit-action stays
461
+ * dormant because nothing here calls `presenter.select()`.
462
+ *
463
+ * `CngxLiveRegion` is mounted as a child `<span>` rather than a host
464
+ * directive: its `role="status"` would clobber the host's `role="navigation"`
465
+ * landmark. Its content is the active link's label (Pillar 2 - the active
466
+ * change is announced).
467
+ *
468
+ * ```html
469
+ * <cngx-tab-nav cngxTabsRouteSync aria-label="Sections">
470
+ * <a cngxTabLink id="overview" routerLink="overview">Overview</a>
471
+ * <a cngxTabLink id="profile" routerLink="profile">Profile</a>
472
+ * </cngx-tab-nav>
473
+ * <router-outlet></router-outlet>
474
+ * ```
475
+ *
476
+ * @playground Native router tabs with a CanDeactivate guard ./examples/routed-nav/routed-nav.component.ts
477
+ * @see {@link CngxTabGroup} for the programmatic tablist organism.
478
+ *
479
+ * @category ui/tabs
480
+ * @docsKind primary
481
+ * @wcag AA
482
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-nav.component.ts
483
+ * @since 0.1.0
484
+ * @relatedTo CngxTabLink, CngxTabsRouteSync, CngxTabGroup, CngxMatTabNav
485
+ */
486
+ class CngxTabNav {
487
+ ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
488
+ ariaLabelledBy = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabelledBy" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
489
+ /**
490
+ * Visual skin. Cascade `input ?? config ?? 'line'`, reflected onto
491
+ * `[data-skin]`. Resolved inline (single axis) rather than via
492
+ * `createTabsHostAttrs`: that helper resolves five tablist axes the nav
493
+ * does not use, so pulling it here would fabricate dead inputs - inline
494
+ * resolution is Komposition statt Konfiguration (Pillar 3).
495
+ */
496
+ skin = input(undefined, ...(ngDevMode ? [{ debugName: "skin" }] : /* istanbul ignore next */ []));
497
+ presenter = inject(CNGX_TAB_GROUP_HOST);
498
+ config = injectTabsConfig();
499
+ resolvedSkin = computed(() => this.skin() ?? this.config.skin ?? 'line', ...(ngDevMode ? [{ debugName: "resolvedSkin" }] : /* istanbul ignore next */ []));
500
+ /**
501
+ * Active link's accessible label, fed to the polite live region. Derived
502
+ * from `activeId` through the registered handle (Pillar 1 - single
503
+ * source, the route-fed active index). Empty string before any link is
504
+ * active so the region stays silent.
505
+ */
506
+ liveAnnouncement = computed(() => {
507
+ const id = this.presenter.activeId();
508
+ if (id === null) {
509
+ return '';
510
+ }
511
+ return this.presenter.tabs().find((tab) => tab.id === id)?.label() ?? '';
512
+ }, ...(ngDevMode ? [{ debugName: "liveAnnouncement" }] : /* istanbul ignore next */ []));
513
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTabNav, deps: [], target: i0.ɵɵFactoryTarget.Component });
514
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: CngxTabNav, isStandalone: true, selector: "cngx-tab-nav", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, skin: { classPropertyName: "skin", publicName: "skin", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "navigation" }, properties: { "attr.data-skin": "resolvedSkin()", "attr.data-orientation": "presenter.orientation()", "attr.aria-orientation": "presenter.orientation()", "attr.aria-label": "ariaLabel()", "attr.aria-labelledby": "ariaLabelledBy()" }, classAttribute: "cngx-tab-nav" }, exportAs: ["cngxTabNav"], hostDirectives: [{ directive: i1.CngxTabGroupPresenter, inputs: ["activeIndex", "activeIndex", "orientation", "orientation"], outputs: ["activeIndexChange", "activeIndexChange"] }], ngImport: i0, template: "<ng-content></ng-content>\n<span class=\"cngx-tab-nav__live-region cngx-sr-only\" cngxLiveRegion>{{ liveAnnouncement() }}</span>\n", styles: ["@layer cngx.tokens{@property --cngx-tab-gap{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-tab-strip-padding{syntax: \"*\"; inherits: false; initial-value: .5rem 0;}@property --cngx-tab-strip-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-padding{syntax: \"*\"; inherits: false; initial-value: .5rem .75rem;}@property --cngx-tab-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-indicator-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-tab-active-indicator-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .55;}@property --cngx-tab-focus-ring{syntax: \"*\"; inherits: false; initial-value: 2px solid currentColor;}@property --cngx-tab-focus-offset{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-error-badge-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-tab-busy-spinner-size{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-tab-busy-spinner-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-rejection-icon-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-rejection-icon-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-tab-rejection-icon-text{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-tab-rejection-icon-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-tab-rejected-outline{syntax: \"*\"; inherits: false; initial-value: 2px solid oklch(.45 .15 25);}@property --cngx-tab-rejected-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-tab-rejected-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: .6s;}@property --cngx-tab-rejected-pulse-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25 / .18);}@property --cngx-tab-affordance-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-affordance-radius{syntax: \"*\"; inherits: false; initial-value: 50%;}@property --cngx-tab-affordance-hover-bg{syntax: \"*\"; inherits: false; initial-value: color-mix(in oklch,currentColor 14%,transparent);}@property --cngx-tab-label-line-height{syntax: \"*\"; inherits: true; initial-value: 1.4;}@property --cngx-tab-sublabel-font-size{syntax: \"*\"; inherits: true; initial-value: .8125rem;}@property --cngx-tab-sublabel-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in oklab,currentColor 65%,transparent);}:root{--cngx-tab-active-indicator-color: var(--cngx-color-primary, oklch(.66 .19 50))}}@layer cngx.components{cngx-tab-group{display:block}.cngx-tabs__strip-wrapper{display:flex;flex-direction:row;align-items:stretch;position:relative}.cngx-tabs__strip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;flex:1 1 auto;min-width:0;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-strip-padding, .5rem 0);background:var(--cngx-tab-strip-bg, transparent);overflow-x:hidden;overflow-y:hidden;scroll-snap-type:x proximity}.cngx-tabs__tab{display:inline-flex;align-items:center;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-padding, .5rem .75rem);border:0;background:var(--cngx-tab-bg, transparent);color:var(--cngx-tab-color, currentColor);cursor:pointer;font:inherit;text-align:start;white-space:nowrap;scroll-snap-align:start}.cngx-tabs__tab[aria-selected=true]{color:var(--cngx-tab-active-color, currentColor);box-shadow:inset 0 calc(var(--cngx-tab-active-indicator-width, 2px) * -1) 0 var(--cngx-tab-active-indicator-color, oklch(.66 .19 50))}.cngx-tabs__tab[aria-disabled=true]{cursor:not-allowed;opacity:var(--cngx-tab-disabled-opacity, .55)}.cngx-tabs__tab:focus-visible{outline:var(--cngx-tab-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-tab-focus-offset, 2px)}.cngx-tabs__tab[aria-busy=true]{cursor:progress}.cngx-tabs__text{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}.cngx-tabs__label{min-width:0;overflow:hidden;text-overflow:ellipsis;line-height:var(--cngx-tab-label-line-height, 1.4)}.cngx-tabs__sublabel{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:var(--cngx-tab-sublabel-font-size, .8125rem);color:var(--cngx-tab-sublabel-color, color-mix(in oklab, currentColor 65%, transparent))}.cngx-tabs__tab-wrapper{position:relative;display:inline-flex;align-items:stretch}.cngx-tabs__tab--closable{padding-inline-end:calc(var(--cngx-tab-affordance-size, 1.25rem) + var(--cngx-tab-gap, .5rem) * 2)}.cngx-tabs__close,.cngx-tabs__add{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;box-sizing:border-box;width:var(--cngx-tab-affordance-size, 1.25rem);height:var(--cngx-tab-affordance-size, 1.25rem);padding:0;border:0;border-radius:var(--cngx-tab-affordance-radius, 50%);background:transparent;color:inherit;font:inherit;line-height:1;cursor:pointer}.cngx-tabs__close{position:absolute;inset-inline-end:var(--cngx-tab-gap, .5rem);top:50%;transform:translateY(-50%);z-index:1}.cngx-tabs__add{margin-inline-start:var(--cngx-tab-gap, .5rem);align-self:center}.cngx-tabs__close:hover,.cngx-tabs__add:hover{background:var( --cngx-tab-affordance-hover-bg, color-mix(in oklch, currentColor 14%, transparent) )}.cngx-tabs__close:focus-visible,.cngx-tabs__add:focus-visible{outline:var(--cngx-tab-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-tab-focus-offset, 2px)}cngx-tab-group[data-orientation=vertical] .cngx-tabs__add{margin-inline-start:0;margin-block-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:var(--cngx-tab-error-badge-color, oklch(.45 .15 25));margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__busy-spinner{display:inline-block;width:var(--cngx-tab-busy-spinner-size, 1rem);height:var(--cngx-tab-busy-spinner-size, 1rem);border:2px solid transparent;border-top-color:var(--cngx-tab-busy-spinner-color, currentColor);border-right-color:var(--cngx-tab-busy-spinner-color, currentColor);border-radius:50%;flex:0 0 auto;margin-inline-start:var(--cngx-tab-gap, .5rem);animation:cngx-tabs-spin .75s linear infinite}.cngx-tabs__panels{display:block}.cngx-tabs__panel{display:block;padding:var(--cngx-tab-padding, .5rem .75rem)}.cngx-tabs__panel[hidden]{display:none}.cngx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}cngx-tab-group[data-orientation=vertical]{display:grid;grid-template-columns:max-content 1fr;gap:var(--cngx-tab-vertical-gap, 1rem);align-items:start}cngx-tab-group[data-orientation=vertical] .cngx-tabs__strip{flex-direction:column;flex-wrap:nowrap;overflow-x:hidden;overflow-y:hidden;scroll-snap-type:y proximity}cngx-tab-group[data-orientation=vertical] .cngx-tabs__tab{scroll-snap-align:start;white-space:normal;box-sizing:border-box;min-inline-size:100%}cngx-tab-group[data-orientation=vertical] .cngx-tabs__label{min-inline-size:auto;overflow:visible;text-overflow:clip}cngx-tab-group[data-fitted]:not([data-orientation=vertical]) .cngx-tabs__tab-wrapper{flex:1 1 0}cngx-tab-group[data-fitted]:not([data-orientation=vertical]) .cngx-tabs__tab{inline-size:100%;justify-content:center;text-align:center}cngx-tab-group[data-tab-align=center]:not([data-orientation=vertical]) .cngx-tabs__strip{justify-content:center}cngx-tab-group[data-tab-align=end]:not([data-orientation=vertical]) .cngx-tabs__strip{justify-content:flex-end}@media(prefers-reduced-motion:reduce){.cngx-tabs__busy-spinner{animation:none!important}}.cngx-tabs__rejection-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:var(--cngx-tab-rejection-icon-size, 1.25rem);height:var(--cngx-tab-rejection-icon-size, 1.25rem);border-radius:50%;background:var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25));color:var(--cngx-tab-rejection-icon-text, oklch(1 0 0));font-size:var(--cngx-tab-rejection-icon-font-size, .875rem);font-weight:700;line-height:1;margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__tab.cngx-tab--rejected{outline:var( --cngx-tab-rejected-outline, 2px solid var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25)) );outline-offset:var(--cngx-tab-rejected-outline-offset, 1px)}@media(prefers-reduced-motion:no-preference){.cngx-tabs__tab.cngx-tab--rejected{animation:cngx-tab-pulse-error var(--cngx-tab-rejected-pulse-duration, .6s) ease-out}}}@keyframes cngx-tabs-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes cngx-tab-pulse-error{0%{background:var(--cngx-tab-bg, transparent)}50%{background:var(--cngx-tab-rejected-pulse-bg, oklch(.45 .15 25 / .18))}to{background:var(--cngx-tab-bg, transparent)}}\n", "@layer cngx.components{@scope(.cngx-tab-nav){:scope{display:flex;align-items:stretch;gap:var(--cngx-tab-gap, 0);border-bottom:var( --cngx-tab-strip-border, 1px solid var(--cngx-color-border, oklch(.88 .005 250)) );--cngx-tab-active-indicator-color: var(--cngx-color-primary, oklch(.66 .19 50))}:scope[data-orientation=vertical]{flex-direction:column;border-bottom:0;border-inline-end:var( --cngx-tab-strip-border, 1px solid var(--cngx-color-border, oklch(.88 .005 250)) )}.cngx-tab-nav__link{position:relative;display:inline-flex;align-items:center;gap:var(--cngx-tab-affordance-gap, .375rem);padding:var(--cngx-tab-padding, .625rem 1rem);color:var(--cngx-tab-color, inherit);font:inherit;font-size:var(--cngx-tab-font-size, .875rem);font-weight:var(--cngx-tab-font-weight, 500);text-decoration:none;cursor:pointer;transition:color var(--cngx-tab-transition-duration, .15s) ease}.cngx-tab-nav__link:after{content:\"\";position:absolute;inset-inline:0;bottom:0;block-size:var(--cngx-tab-indicator-thickness, 2px);background:var(--cngx-tab-active-indicator-color, currentColor);border-radius:var(--cngx-tab-indicator-thickness, 2px) var(--cngx-tab-indicator-thickness, 2px) 0 0;transform:scaleX(0);transition:transform var(--cngx-tab-transition-duration, .15s) ease}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){color:var(--cngx-tab-hover-color, var(--cngx-tab-active-color, currentColor))}.cngx-tab-nav__link:focus-visible{outline:var( --cngx-tab-focus-ring, 2px solid var(--cngx-color-primary, oklch(.66 .19 50)) );outline-offset:var(--cngx-tab-focus-offset, -2px)}.cngx-tab-nav__link--active{color:var(--cngx-tab-active-color, currentColor)}.cngx-tab-nav__link--active:after{transform:scaleX(1)}:scope[data-orientation=vertical] .cngx-tab-nav__link:after{inset-inline:auto;inset-block:0;inset-inline-end:0;inline-size:var(--cngx-tab-indicator-thickness, 2px);block-size:auto;transform:scaleY(0)}:scope[data-orientation=vertical] .cngx-tab-nav__link--active:after{transform:scaleY(1)}.cngx-tab-nav__link--error{color:var(--cngx-tab-error-badge-color, oklch(.55 .2 27))}.cngx-tab-nav__link--error:before{content:var(--cngx-tab-rejection-icon-text, \"!\");font-size:var(--cngx-tab-rejection-icon-font-size, .75em);font-weight:700;color:var(--cngx-tab-error-badge-color, oklch(.55 .2 27))}}}@media(prefers-reduced-motion:reduce){.cngx-tab-nav__link,.cngx-tab-nav__link:after{transition:none!important}}\n"], dependencies: [{ kind: "directive", type: CngxLiveRegion, selector: "[cngxLiveRegion]", inputs: ["politeness", "atomic", "relevant"], exportAs: ["cngxLiveRegion"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
515
+ }
516
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTabNav, decorators: [{
517
+ type: Component,
518
+ args: [{ selector: 'cngx-tab-nav', exportAs: 'cngxTabNav', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CngxLiveRegion], encapsulation: ViewEncapsulation.None, hostDirectives: [
519
+ {
520
+ directive: CngxTabGroupPresenter,
521
+ inputs: ['activeIndex', 'orientation'],
522
+ outputs: ['activeIndexChange'],
523
+ },
524
+ ], host: {
525
+ class: 'cngx-tab-nav',
526
+ role: 'navigation',
527
+ '[attr.data-skin]': 'resolvedSkin()',
528
+ '[attr.data-orientation]': 'presenter.orientation()',
529
+ '[attr.aria-orientation]': 'presenter.orientation()',
530
+ '[attr.aria-label]': 'ariaLabel()',
531
+ '[attr.aria-labelledby]': 'ariaLabelledBy()',
532
+ }, template: "<ng-content></ng-content>\n<span class=\"cngx-tab-nav__live-region cngx-sr-only\" cngxLiveRegion>{{ liveAnnouncement() }}</span>\n", styles: ["@layer cngx.tokens{@property --cngx-tab-gap{syntax: \"*\"; inherits: false; initial-value: .5rem;}@property --cngx-tab-strip-padding{syntax: \"*\"; inherits: false; initial-value: .5rem 0;}@property --cngx-tab-strip-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-padding{syntax: \"*\"; inherits: false; initial-value: .5rem .75rem;}@property --cngx-tab-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-active-indicator-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-tab-active-indicator-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .55;}@property --cngx-tab-focus-ring{syntax: \"*\"; inherits: false; initial-value: 2px solid currentColor;}@property --cngx-tab-focus-offset{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-error-badge-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-tab-busy-spinner-size{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-tab-busy-spinner-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-tab-rejection-icon-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-rejection-icon-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-tab-rejection-icon-text{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-tab-rejection-icon-font-size{syntax: \"*\"; inherits: false; initial-value: .875rem;}@property --cngx-tab-rejected-outline{syntax: \"*\"; inherits: false; initial-value: 2px solid oklch(.45 .15 25);}@property --cngx-tab-rejected-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-tab-rejected-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: .6s;}@property --cngx-tab-rejected-pulse-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25 / .18);}@property --cngx-tab-affordance-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-affordance-radius{syntax: \"*\"; inherits: false; initial-value: 50%;}@property --cngx-tab-affordance-hover-bg{syntax: \"*\"; inherits: false; initial-value: color-mix(in oklch,currentColor 14%,transparent);}@property --cngx-tab-label-line-height{syntax: \"*\"; inherits: true; initial-value: 1.4;}@property --cngx-tab-sublabel-font-size{syntax: \"*\"; inherits: true; initial-value: .8125rem;}@property --cngx-tab-sublabel-color{syntax: \"*\"; inherits: true; initial-value: color-mix(in oklab,currentColor 65%,transparent);}:root{--cngx-tab-active-indicator-color: var(--cngx-color-primary, oklch(.66 .19 50))}}@layer cngx.components{cngx-tab-group{display:block}.cngx-tabs__strip-wrapper{display:flex;flex-direction:row;align-items:stretch;position:relative}.cngx-tabs__strip{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;flex:1 1 auto;min-width:0;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-strip-padding, .5rem 0);background:var(--cngx-tab-strip-bg, transparent);overflow-x:hidden;overflow-y:hidden;scroll-snap-type:x proximity}.cngx-tabs__tab{display:inline-flex;align-items:center;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-padding, .5rem .75rem);border:0;background:var(--cngx-tab-bg, transparent);color:var(--cngx-tab-color, currentColor);cursor:pointer;font:inherit;text-align:start;white-space:nowrap;scroll-snap-align:start}.cngx-tabs__tab[aria-selected=true]{color:var(--cngx-tab-active-color, currentColor);box-shadow:inset 0 calc(var(--cngx-tab-active-indicator-width, 2px) * -1) 0 var(--cngx-tab-active-indicator-color, oklch(.66 .19 50))}.cngx-tabs__tab[aria-disabled=true]{cursor:not-allowed;opacity:var(--cngx-tab-disabled-opacity, .55)}.cngx-tabs__tab:focus-visible{outline:var(--cngx-tab-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-tab-focus-offset, 2px)}.cngx-tabs__tab[aria-busy=true]{cursor:progress}.cngx-tabs__text{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}.cngx-tabs__label{min-width:0;overflow:hidden;text-overflow:ellipsis;line-height:var(--cngx-tab-label-line-height, 1.4)}.cngx-tabs__sublabel{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:var(--cngx-tab-sublabel-font-size, .8125rem);color:var(--cngx-tab-sublabel-color, color-mix(in oklab, currentColor 65%, transparent))}.cngx-tabs__tab-wrapper{position:relative;display:inline-flex;align-items:stretch}.cngx-tabs__tab--closable{padding-inline-end:calc(var(--cngx-tab-affordance-size, 1.25rem) + var(--cngx-tab-gap, .5rem) * 2)}.cngx-tabs__close,.cngx-tabs__add{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;box-sizing:border-box;width:var(--cngx-tab-affordance-size, 1.25rem);height:var(--cngx-tab-affordance-size, 1.25rem);padding:0;border:0;border-radius:var(--cngx-tab-affordance-radius, 50%);background:transparent;color:inherit;font:inherit;line-height:1;cursor:pointer}.cngx-tabs__close{position:absolute;inset-inline-end:var(--cngx-tab-gap, .5rem);top:50%;transform:translateY(-50%);z-index:1}.cngx-tabs__add{margin-inline-start:var(--cngx-tab-gap, .5rem);align-self:center}.cngx-tabs__close:hover,.cngx-tabs__add:hover{background:var( --cngx-tab-affordance-hover-bg, color-mix(in oklch, currentColor 14%, transparent) )}.cngx-tabs__close:focus-visible,.cngx-tabs__add:focus-visible{outline:var(--cngx-tab-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-tab-focus-offset, 2px)}cngx-tab-group[data-orientation=vertical] .cngx-tabs__add{margin-inline-start:0;margin-block-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:var(--cngx-tab-error-badge-color, oklch(.45 .15 25));margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__busy-spinner{display:inline-block;width:var(--cngx-tab-busy-spinner-size, 1rem);height:var(--cngx-tab-busy-spinner-size, 1rem);border:2px solid transparent;border-top-color:var(--cngx-tab-busy-spinner-color, currentColor);border-right-color:var(--cngx-tab-busy-spinner-color, currentColor);border-radius:50%;flex:0 0 auto;margin-inline-start:var(--cngx-tab-gap, .5rem);animation:cngx-tabs-spin .75s linear infinite}.cngx-tabs__panels{display:block}.cngx-tabs__panel{display:block;padding:var(--cngx-tab-padding, .5rem .75rem)}.cngx-tabs__panel[hidden]{display:none}.cngx-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}cngx-tab-group[data-orientation=vertical]{display:grid;grid-template-columns:max-content 1fr;gap:var(--cngx-tab-vertical-gap, 1rem);align-items:start}cngx-tab-group[data-orientation=vertical] .cngx-tabs__strip{flex-direction:column;flex-wrap:nowrap;overflow-x:hidden;overflow-y:hidden;scroll-snap-type:y proximity}cngx-tab-group[data-orientation=vertical] .cngx-tabs__tab{scroll-snap-align:start;white-space:normal;box-sizing:border-box;min-inline-size:100%}cngx-tab-group[data-orientation=vertical] .cngx-tabs__label{min-inline-size:auto;overflow:visible;text-overflow:clip}cngx-tab-group[data-fitted]:not([data-orientation=vertical]) .cngx-tabs__tab-wrapper{flex:1 1 0}cngx-tab-group[data-fitted]:not([data-orientation=vertical]) .cngx-tabs__tab{inline-size:100%;justify-content:center;text-align:center}cngx-tab-group[data-tab-align=center]:not([data-orientation=vertical]) .cngx-tabs__strip{justify-content:center}cngx-tab-group[data-tab-align=end]:not([data-orientation=vertical]) .cngx-tabs__strip{justify-content:flex-end}@media(prefers-reduced-motion:reduce){.cngx-tabs__busy-spinner{animation:none!important}}.cngx-tabs__rejection-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:var(--cngx-tab-rejection-icon-size, 1.25rem);height:var(--cngx-tab-rejection-icon-size, 1.25rem);border-radius:50%;background:var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25));color:var(--cngx-tab-rejection-icon-text, oklch(1 0 0));font-size:var(--cngx-tab-rejection-icon-font-size, .875rem);font-weight:700;line-height:1;margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__tab.cngx-tab--rejected{outline:var( --cngx-tab-rejected-outline, 2px solid var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25)) );outline-offset:var(--cngx-tab-rejected-outline-offset, 1px)}@media(prefers-reduced-motion:no-preference){.cngx-tabs__tab.cngx-tab--rejected{animation:cngx-tab-pulse-error var(--cngx-tab-rejected-pulse-duration, .6s) ease-out}}}@keyframes cngx-tabs-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes cngx-tab-pulse-error{0%{background:var(--cngx-tab-bg, transparent)}50%{background:var(--cngx-tab-rejected-pulse-bg, oklch(.45 .15 25 / .18))}to{background:var(--cngx-tab-bg, transparent)}}\n", "@layer cngx.components{@scope(.cngx-tab-nav){:scope{display:flex;align-items:stretch;gap:var(--cngx-tab-gap, 0);border-bottom:var( --cngx-tab-strip-border, 1px solid var(--cngx-color-border, oklch(.88 .005 250)) );--cngx-tab-active-indicator-color: var(--cngx-color-primary, oklch(.66 .19 50))}:scope[data-orientation=vertical]{flex-direction:column;border-bottom:0;border-inline-end:var( --cngx-tab-strip-border, 1px solid var(--cngx-color-border, oklch(.88 .005 250)) )}.cngx-tab-nav__link{position:relative;display:inline-flex;align-items:center;gap:var(--cngx-tab-affordance-gap, .375rem);padding:var(--cngx-tab-padding, .625rem 1rem);color:var(--cngx-tab-color, inherit);font:inherit;font-size:var(--cngx-tab-font-size, .875rem);font-weight:var(--cngx-tab-font-weight, 500);text-decoration:none;cursor:pointer;transition:color var(--cngx-tab-transition-duration, .15s) ease}.cngx-tab-nav__link:after{content:\"\";position:absolute;inset-inline:0;bottom:0;block-size:var(--cngx-tab-indicator-thickness, 2px);background:var(--cngx-tab-active-indicator-color, currentColor);border-radius:var(--cngx-tab-indicator-thickness, 2px) var(--cngx-tab-indicator-thickness, 2px) 0 0;transform:scaleX(0);transition:transform var(--cngx-tab-transition-duration, .15s) ease}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){color:var(--cngx-tab-hover-color, var(--cngx-tab-active-color, currentColor))}.cngx-tab-nav__link:focus-visible{outline:var( --cngx-tab-focus-ring, 2px solid var(--cngx-color-primary, oklch(.66 .19 50)) );outline-offset:var(--cngx-tab-focus-offset, -2px)}.cngx-tab-nav__link--active{color:var(--cngx-tab-active-color, currentColor)}.cngx-tab-nav__link--active:after{transform:scaleX(1)}:scope[data-orientation=vertical] .cngx-tab-nav__link:after{inset-inline:auto;inset-block:0;inset-inline-end:0;inline-size:var(--cngx-tab-indicator-thickness, 2px);block-size:auto;transform:scaleY(0)}:scope[data-orientation=vertical] .cngx-tab-nav__link--active:after{transform:scaleY(1)}.cngx-tab-nav__link--error{color:var(--cngx-tab-error-badge-color, oklch(.55 .2 27))}.cngx-tab-nav__link--error:before{content:var(--cngx-tab-rejection-icon-text, \"!\");font-size:var(--cngx-tab-rejection-icon-font-size, .75em);font-weight:700;color:var(--cngx-tab-error-badge-color, oklch(.55 .2 27))}}}@media(prefers-reduced-motion:reduce){.cngx-tab-nav__link,.cngx-tab-nav__link:after{transition:none!important}}\n"] }]
533
+ }], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], skin: [{ type: i0.Input, args: [{ isSignal: true, alias: "skin", required: false }] }] } });
223
534
 
224
535
  /**
225
536
  * Structural equal for `hiddenTabs` - same ids in same order.
@@ -290,6 +601,8 @@ function mapBoolEqual(a, b) {
290
601
  * @since 0.1.0
291
602
  * @relatedTo CngxTabGroup, CngxPopover, CngxActiveDescendant
292
603
  * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/8-tabs-in-a-narrow-container</example-url>
604
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/all-skins-horizontal</example-url>
605
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/all-skins-vertical</example-url>
293
606
  */
294
607
  class CngxTabOverflow {
295
608
  // Projected via <ng-content>, so DI walks up to the parent's injector.
@@ -516,7 +829,7 @@ class CngxTabOverflow {
516
829
  return this.adapter.resolveStripRoot(this.panelHost, this.hostElement);
517
830
  }
518
831
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTabOverflow, deps: [], target: i0.ɵɵFactoryTarget.Component });
519
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxTabOverflow, isStandalone: true, selector: "cngx-tab-overflow", host: { properties: { "class.cngx-tab-overflow": "true" } }, queries: [{ propertyName: "triggerSlot", first: true, predicate: CngxTabOverflowTrigger, descendants: true, isSignal: true }, { propertyName: "itemSlot", first: true, predicate: CngxTabOverflowItem, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: CngxPopover, descendants: true, isSignal: true }, { propertyName: "adRef", first: true, predicate: CngxActiveDescendant, descendants: true, isSignal: true }], exportAs: ["cngxTabOverflow"], ngImport: i0, template: "<button\n type=\"button\"\n class=\"cngx-tab-overflow__trigger\"\n cngxActiveDescendant\n #ad=\"cngxActiveDescendant\"\n [items]=\"templates.adItems()\"\n [cngxPopoverTrigger]=\"overflowPopover\"\n [haspopup]=\"'menu'\"\n [hidden]=\"!hasHiddenTabs()\"\n [attr.aria-label]=\"i18n.moreTabsLabel(hiddenCount())\"\n (activated)=\"handleAdActivated($event)\"\n (keydown)=\"handleTriggerKeydown($event)\"\n (click)=\"overflowPopover.toggle()\"\n>\n @let triggerTpl = templates.triggerTemplate();\n @if (triggerTpl) {\n <ng-container\n *ngTemplateOutlet=\"triggerTpl; context: templates.triggerContext()\"\n />\n } @else {\n {{ i18n.moreTabsLabel(hiddenCount()) }}\n }\n</button>\n\n<div\n cngxPopover\n #overflowPopover=\"cngxPopover\"\n cngxClickOutside\n [eventType]=\"'click'\"\n [enabled]=\"overflowPopover.isVisible()\"\n (clickOutside)=\"overflowPopover.hide()\"\n role=\"menu\"\n class=\"cngx-tab-overflow__panel\"\n placement=\"bottom-end\"\n panelClass=\"cngx-tab-overflow__panel-surface\"\n [attr.aria-label]=\"i18n.moreTabsLabel(hiddenCount())\"\n>\n <!--\n `role=\"presentation\"` flattens the <ul> away from the\n accessibility tree so each <li role=\"menuitem\"> is exposed as a\n direct child of the role=\"menu\" landmark on the popover surface.\n Each item carries a stable id derived from the tab handle id;\n CngxActiveDescendant on the trigger steers `aria-activedescendant`\n at one of these ids while the user navigates with\n ArrowUp/Down/Home/End/typeahead. The popover is a quick-jump\n navigation surface \u2014 selecting an item triggers `selectById`,\n not a value commit \u2014 so menu/menuitem is the spec-correct pattern\n (listbox/option carries `aria-selected` semantics that do not\n apply to a transient navigation popup).\n -->\n <ul class=\"cngx-tab-overflow__list\" role=\"presentation\">\n @for (tab of hiddenTabs(); track tab.id; let i = $index) {\n <li\n role=\"menuitem\"\n class=\"cngx-tab-overflow__item\"\n [class.cngx-tab-overflow__item--active]=\"ad.activeId() === adItemId(tab)\"\n [id]=\"adItemId(tab)\"\n [attr.data-tab-id]=\"tab.id\"\n [attr.aria-disabled]=\"tab.disabled() ? 'true' : 'false'\"\n (click)=\"!tab.disabled() && pickTab(tab)\"\n >\n @let itemTpl = templates.itemTemplate();\n @if (itemTpl) {\n <ng-container\n *ngTemplateOutlet=\"itemTpl; context: templates.buildItemContext(tab, i)\"\n />\n } @else {\n {{ tab.label() ?? tab.id }}\n }\n </li>\n }\n </ul>\n</div>\n", styles: ["@layer cngx.tokens{@property --cngx-tab-overflow-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-overflow-button-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-overflow-button-radius{syntax: \"<length>\"; inherits: false; initial-value: .25rem;}@property --cngx-tab-overflow-popover-min-width{syntax: \"*\"; inherits: false; initial-value: 12rem;}@property --cngx-tab-overflow-popover-max-height{syntax: \"*\"; inherits: false; initial-value: 16rem;}@property --cngx-tab-overflow-popover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(1 0 0);}@property --cngx-tab-overflow-popover-border{syntax: \"*\"; inherits: false; initial-value: 1px solid currentColor;}@property --cngx-tab-overflow-popover-radius{syntax: \"<length>\"; inherits: false; initial-value: .25rem;}@property --cngx-tab-overflow-popover-padding{syntax: \"*\"; inherits: false; initial-value: .25rem 0;}@property --cngx-tab-overflow-item-padding{syntax: \"*\"; inherits: false; initial-value: .5rem .75rem;}@property --cngx-tab-overflow-item-hover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .05);}@property --cngx-tab-overflow-item-active-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .08);}@property --cngx-tab-overflow-item-active-outline{syntax: \"*\"; inherits: false; initial-value: 2px solid currentColor;}@property --cngx-tab-overflow-item-active-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: -2px;}}@layer cngx.components{@scope(.cngx-tab-overflow){:scope{display:inline-flex;align-items:center;flex:0 0 auto;background:var(--cngx-tab-overflow-bg, var(--cngx-tab-strip-bg, transparent))}.cngx-tab-overflow__trigger{display:inline-flex;align-items:center;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-padding, .5rem .75rem);border:0;background:var(--cngx-tab-overflow-button-bg, transparent);color:var(--cngx-tab-color);cursor:pointer;font:inherit;border-radius:var(--cngx-tab-overflow-button-radius, .25rem)}.cngx-tab-overflow__trigger[hidden]{display:none}.cngx-tab-overflow__trigger:focus-visible{outline:var(--cngx-tab-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-tab-focus-offset, 2px)}.cngx-tab-overflow__panel-surface{min-width:var(--cngx-tab-overflow-popover-min-width, 12rem);max-height:var(--cngx-tab-overflow-popover-max-height, 16rem);background:var(--cngx-tab-overflow-popover-bg, oklch(1 0 0));border:var(--cngx-tab-overflow-popover-border, 1px solid currentColor);border-radius:var(--cngx-tab-overflow-popover-radius, .25rem);overflow:auto;padding:var(--cngx-tab-overflow-popover-padding, .25rem 0)}.cngx-tab-overflow__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.cngx-tab-overflow__item{padding:var(--cngx-tab-overflow-item-padding, .5rem .75rem);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap}.cngx-tab-overflow__item:hover{background:var(--cngx-tab-overflow-item-hover-bg, oklch(0 0 0 / .05))}.cngx-tab-overflow__item--active{background:var( --cngx-tab-overflow-item-active-bg, var(--cngx-tab-overflow-item-hover-bg, oklch(0 0 0 / .08)) );outline:var(--cngx-tab-overflow-item-active-outline, 2px solid currentColor);outline-offset:var(--cngx-tab-overflow-item-active-outline-offset, -2px)}.cngx-tab-overflow__item[aria-disabled=true]{cursor:not-allowed;opacity:var(--cngx-tab-disabled-opacity, .55)}}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CngxActiveDescendant, selector: "[cngxActiveDescendant]", inputs: ["items", "orientation", "loop", "typeahead", "typeaheadDebounce", "autoHighlightFirst", "skipDisabled", "virtualCount"], outputs: ["activated", "highlighted"], exportAs: ["cngxActiveDescendant"] }, { kind: "directive", type: CngxClickOutside, selector: "[cngxClickOutside]", inputs: ["eventType", "enabled"], outputs: ["clickOutside"], exportAs: ["cngxClickOutside"] }, { kind: "directive", type: CngxPopover, selector: "[cngxPopover]", inputs: ["placement", "positionTryFallbacks", "offset", "closeOnEscape", "mode", "cngxPopoverOpen", "exclusive"], exportAs: ["cngxPopover"] }, { kind: "directive", type: CngxPopoverTrigger, selector: "[cngxPopoverTrigger]", inputs: ["cngxPopoverTrigger", "haspopup", "restoreFocus"], exportAs: ["cngxPopoverTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
832
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxTabOverflow, isStandalone: true, selector: "cngx-tab-overflow", host: { properties: { "class.cngx-tab-overflow": "true" } }, queries: [{ propertyName: "triggerSlot", first: true, predicate: CngxTabOverflowTrigger, descendants: true, isSignal: true }, { propertyName: "itemSlot", first: true, predicate: CngxTabOverflowItem, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: CngxPopover, descendants: true, isSignal: true }, { propertyName: "adRef", first: true, predicate: CngxActiveDescendant, descendants: true, isSignal: true }], exportAs: ["cngxTabOverflow"], ngImport: i0, template: "<button\n type=\"button\"\n class=\"cngx-tab-overflow__trigger\"\n cngxActiveDescendant\n #ad=\"cngxActiveDescendant\"\n [items]=\"templates.adItems()\"\n [cngxPopoverTrigger]=\"overflowPopover\"\n [haspopup]=\"'menu'\"\n [hidden]=\"!hasHiddenTabs()\"\n [attr.aria-label]=\"i18n.moreTabsLabel(hiddenCount())\"\n (activated)=\"handleAdActivated($event)\"\n (keydown)=\"handleTriggerKeydown($event)\"\n (click)=\"overflowPopover.toggle()\"\n>\n @let triggerTpl = templates.triggerTemplate();\n @if (triggerTpl) {\n <ng-container\n *ngTemplateOutlet=\"triggerTpl; context: templates.triggerContext()\"\n />\n } @else {\n {{ i18n.moreTabsLabel(hiddenCount()) }}\n }\n</button>\n\n<div\n cngxPopover\n #overflowPopover=\"cngxPopover\"\n cngxClickOutside\n [eventType]=\"'click'\"\n [enabled]=\"overflowPopover.isVisible()\"\n (clickOutside)=\"overflowPopover.hide()\"\n role=\"menu\"\n class=\"cngx-tab-overflow__panel\"\n placement=\"bottom-end\"\n panelClass=\"cngx-tab-overflow__panel-surface\"\n [attr.aria-label]=\"i18n.moreTabsLabel(hiddenCount())\"\n>\n <!--\n `role=\"presentation\"` flattens the <ul> away from the\n accessibility tree so each <li role=\"menuitem\"> is exposed as a\n direct child of the role=\"menu\" landmark on the popover surface.\n Each item carries a stable id derived from the tab handle id;\n CngxActiveDescendant on the trigger steers `aria-activedescendant`\n at one of these ids while the user navigates with\n ArrowUp/Down/Home/End/typeahead. The popover is a quick-jump\n navigation surface \u2014 selecting an item triggers `selectById`,\n not a value commit \u2014 so menu/menuitem is the spec-correct pattern\n (listbox/option carries `aria-selected` semantics that do not\n apply to a transient navigation popup).\n -->\n <ul class=\"cngx-tab-overflow__list\" role=\"presentation\">\n @for (tab of hiddenTabs(); track tab.id; let i = $index) {\n <li\n role=\"menuitem\"\n class=\"cngx-tab-overflow__item\"\n [class.cngx-tab-overflow__item--active]=\"ad.activeId() === adItemId(tab)\"\n [id]=\"adItemId(tab)\"\n [attr.data-tab-id]=\"tab.id\"\n [attr.aria-disabled]=\"tab.disabled() ? 'true' : 'false'\"\n (click)=\"!tab.disabled() && pickTab(tab)\"\n >\n @let itemTpl = templates.itemTemplate();\n @if (itemTpl) {\n <ng-container\n *ngTemplateOutlet=\"itemTpl; context: templates.buildItemContext(tab, i)\"\n />\n } @else {\n {{ tab.label() ?? tab.id }}\n }\n </li>\n }\n </ul>\n</div>\n", styles: ["@layer cngx.tokens{@property --cngx-tab-overflow-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-overflow-button-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-overflow-button-radius{syntax: \"*\"; inherits: false; initial-value: .25rem;}@property --cngx-tab-overflow-popover-min-width{syntax: \"*\"; inherits: false; initial-value: 12rem;}@property --cngx-tab-overflow-popover-max-height{syntax: \"*\"; inherits: false; initial-value: 16rem;}@property --cngx-tab-overflow-popover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(1 0 0);}@property --cngx-tab-overflow-popover-border{syntax: \"*\"; inherits: false; initial-value: 1px solid currentColor;}@property --cngx-tab-overflow-popover-radius{syntax: \"*\"; inherits: false; initial-value: .25rem;}@property --cngx-tab-overflow-popover-padding{syntax: \"*\"; inherits: false; initial-value: .25rem 0;}@property --cngx-tab-overflow-item-padding{syntax: \"*\"; inherits: false; initial-value: .5rem .75rem;}@property --cngx-tab-overflow-item-hover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .05);}@property --cngx-tab-overflow-item-active-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .08);}@property --cngx-tab-overflow-item-active-outline{syntax: \"*\"; inherits: false; initial-value: 2px solid currentColor;}@property --cngx-tab-overflow-item-active-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: -2px;}}@layer cngx.components{@scope(.cngx-tab-overflow){:scope{display:inline-flex;align-items:center;flex:0 0 auto;background:var(--cngx-tab-overflow-bg, var(--cngx-tab-strip-bg, transparent))}.cngx-tab-overflow__trigger{display:inline-flex;align-items:center;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-padding, .5rem .75rem);border:0;background:var(--cngx-tab-overflow-button-bg, transparent);color:var(--cngx-tab-color);cursor:pointer;font:inherit;border-radius:var(--cngx-tab-overflow-button-radius, .25rem)}.cngx-tab-overflow__trigger[hidden]{display:none}.cngx-tab-overflow__trigger:focus-visible{outline:var(--cngx-tab-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-tab-focus-offset, 2px)}.cngx-tab-overflow__panel-surface{min-width:var(--cngx-tab-overflow-popover-min-width, 12rem);max-height:var(--cngx-tab-overflow-popover-max-height, 16rem);background:var(--cngx-tab-overflow-popover-bg, oklch(1 0 0));border:var(--cngx-tab-overflow-popover-border, 1px solid currentColor);border-radius:var(--cngx-tab-overflow-popover-radius, .25rem);overflow:auto;padding:var(--cngx-tab-overflow-popover-padding, .25rem 0)}.cngx-tab-overflow__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.cngx-tab-overflow__item{padding:var(--cngx-tab-overflow-item-padding, .5rem .75rem);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap}.cngx-tab-overflow__item:hover{background:var(--cngx-tab-overflow-item-hover-bg, oklch(0 0 0 / .05))}.cngx-tab-overflow__item--active{background:var( --cngx-tab-overflow-item-active-bg, var(--cngx-tab-overflow-item-hover-bg, oklch(0 0 0 / .08)) );outline:var(--cngx-tab-overflow-item-active-outline, 2px solid currentColor);outline-offset:var(--cngx-tab-overflow-item-active-outline-offset, -2px)}.cngx-tab-overflow__item[aria-disabled=true]{cursor:not-allowed;opacity:var(--cngx-tab-disabled-opacity, .55)}}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CngxActiveDescendant, selector: "[cngxActiveDescendant]", inputs: ["items", "orientation", "loop", "typeahead", "typeaheadDebounce", "autoHighlightFirst", "skipDisabled", "virtualCount"], outputs: ["activated", "highlighted"], exportAs: ["cngxActiveDescendant"] }, { kind: "directive", type: CngxClickOutside, selector: "[cngxClickOutside]", inputs: ["eventType", "enabled"], outputs: ["clickOutside"], exportAs: ["cngxClickOutside"] }, { kind: "directive", type: CngxPopover, selector: "[cngxPopover]", inputs: ["placement", "positionTryFallbacks", "offset", "closeOnEscape", "mode", "cngxPopoverOpen", "exclusive"], exportAs: ["cngxPopover"] }, { kind: "directive", type: CngxPopoverTrigger, selector: "[cngxPopoverTrigger]", inputs: ["cngxPopoverTrigger", "haspopup", "restoreFocus"], exportAs: ["cngxPopoverTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
520
833
  }
521
834
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTabOverflow, decorators: [{
522
835
  type: Component,
@@ -528,7 +841,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
528
841
  CngxPopoverTrigger,
529
842
  ], encapsulation: ViewEncapsulation.None, host: {
530
843
  '[class.cngx-tab-overflow]': 'true',
531
- }, template: "<button\n type=\"button\"\n class=\"cngx-tab-overflow__trigger\"\n cngxActiveDescendant\n #ad=\"cngxActiveDescendant\"\n [items]=\"templates.adItems()\"\n [cngxPopoverTrigger]=\"overflowPopover\"\n [haspopup]=\"'menu'\"\n [hidden]=\"!hasHiddenTabs()\"\n [attr.aria-label]=\"i18n.moreTabsLabel(hiddenCount())\"\n (activated)=\"handleAdActivated($event)\"\n (keydown)=\"handleTriggerKeydown($event)\"\n (click)=\"overflowPopover.toggle()\"\n>\n @let triggerTpl = templates.triggerTemplate();\n @if (triggerTpl) {\n <ng-container\n *ngTemplateOutlet=\"triggerTpl; context: templates.triggerContext()\"\n />\n } @else {\n {{ i18n.moreTabsLabel(hiddenCount()) }}\n }\n</button>\n\n<div\n cngxPopover\n #overflowPopover=\"cngxPopover\"\n cngxClickOutside\n [eventType]=\"'click'\"\n [enabled]=\"overflowPopover.isVisible()\"\n (clickOutside)=\"overflowPopover.hide()\"\n role=\"menu\"\n class=\"cngx-tab-overflow__panel\"\n placement=\"bottom-end\"\n panelClass=\"cngx-tab-overflow__panel-surface\"\n [attr.aria-label]=\"i18n.moreTabsLabel(hiddenCount())\"\n>\n <!--\n `role=\"presentation\"` flattens the <ul> away from the\n accessibility tree so each <li role=\"menuitem\"> is exposed as a\n direct child of the role=\"menu\" landmark on the popover surface.\n Each item carries a stable id derived from the tab handle id;\n CngxActiveDescendant on the trigger steers `aria-activedescendant`\n at one of these ids while the user navigates with\n ArrowUp/Down/Home/End/typeahead. The popover is a quick-jump\n navigation surface \u2014 selecting an item triggers `selectById`,\n not a value commit \u2014 so menu/menuitem is the spec-correct pattern\n (listbox/option carries `aria-selected` semantics that do not\n apply to a transient navigation popup).\n -->\n <ul class=\"cngx-tab-overflow__list\" role=\"presentation\">\n @for (tab of hiddenTabs(); track tab.id; let i = $index) {\n <li\n role=\"menuitem\"\n class=\"cngx-tab-overflow__item\"\n [class.cngx-tab-overflow__item--active]=\"ad.activeId() === adItemId(tab)\"\n [id]=\"adItemId(tab)\"\n [attr.data-tab-id]=\"tab.id\"\n [attr.aria-disabled]=\"tab.disabled() ? 'true' : 'false'\"\n (click)=\"!tab.disabled() && pickTab(tab)\"\n >\n @let itemTpl = templates.itemTemplate();\n @if (itemTpl) {\n <ng-container\n *ngTemplateOutlet=\"itemTpl; context: templates.buildItemContext(tab, i)\"\n />\n } @else {\n {{ tab.label() ?? tab.id }}\n }\n </li>\n }\n </ul>\n</div>\n", styles: ["@layer cngx.tokens{@property --cngx-tab-overflow-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-overflow-button-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-overflow-button-radius{syntax: \"<length>\"; inherits: false; initial-value: .25rem;}@property --cngx-tab-overflow-popover-min-width{syntax: \"*\"; inherits: false; initial-value: 12rem;}@property --cngx-tab-overflow-popover-max-height{syntax: \"*\"; inherits: false; initial-value: 16rem;}@property --cngx-tab-overflow-popover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(1 0 0);}@property --cngx-tab-overflow-popover-border{syntax: \"*\"; inherits: false; initial-value: 1px solid currentColor;}@property --cngx-tab-overflow-popover-radius{syntax: \"<length>\"; inherits: false; initial-value: .25rem;}@property --cngx-tab-overflow-popover-padding{syntax: \"*\"; inherits: false; initial-value: .25rem 0;}@property --cngx-tab-overflow-item-padding{syntax: \"*\"; inherits: false; initial-value: .5rem .75rem;}@property --cngx-tab-overflow-item-hover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .05);}@property --cngx-tab-overflow-item-active-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .08);}@property --cngx-tab-overflow-item-active-outline{syntax: \"*\"; inherits: false; initial-value: 2px solid currentColor;}@property --cngx-tab-overflow-item-active-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: -2px;}}@layer cngx.components{@scope(.cngx-tab-overflow){:scope{display:inline-flex;align-items:center;flex:0 0 auto;background:var(--cngx-tab-overflow-bg, var(--cngx-tab-strip-bg, transparent))}.cngx-tab-overflow__trigger{display:inline-flex;align-items:center;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-padding, .5rem .75rem);border:0;background:var(--cngx-tab-overflow-button-bg, transparent);color:var(--cngx-tab-color);cursor:pointer;font:inherit;border-radius:var(--cngx-tab-overflow-button-radius, .25rem)}.cngx-tab-overflow__trigger[hidden]{display:none}.cngx-tab-overflow__trigger:focus-visible{outline:var(--cngx-tab-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-tab-focus-offset, 2px)}.cngx-tab-overflow__panel-surface{min-width:var(--cngx-tab-overflow-popover-min-width, 12rem);max-height:var(--cngx-tab-overflow-popover-max-height, 16rem);background:var(--cngx-tab-overflow-popover-bg, oklch(1 0 0));border:var(--cngx-tab-overflow-popover-border, 1px solid currentColor);border-radius:var(--cngx-tab-overflow-popover-radius, .25rem);overflow:auto;padding:var(--cngx-tab-overflow-popover-padding, .25rem 0)}.cngx-tab-overflow__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.cngx-tab-overflow__item{padding:var(--cngx-tab-overflow-item-padding, .5rem .75rem);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap}.cngx-tab-overflow__item:hover{background:var(--cngx-tab-overflow-item-hover-bg, oklch(0 0 0 / .05))}.cngx-tab-overflow__item--active{background:var( --cngx-tab-overflow-item-active-bg, var(--cngx-tab-overflow-item-hover-bg, oklch(0 0 0 / .08)) );outline:var(--cngx-tab-overflow-item-active-outline, 2px solid currentColor);outline-offset:var(--cngx-tab-overflow-item-active-outline-offset, -2px)}.cngx-tab-overflow__item[aria-disabled=true]{cursor:not-allowed;opacity:var(--cngx-tab-disabled-opacity, .55)}}}\n"] }]
844
+ }, template: "<button\n type=\"button\"\n class=\"cngx-tab-overflow__trigger\"\n cngxActiveDescendant\n #ad=\"cngxActiveDescendant\"\n [items]=\"templates.adItems()\"\n [cngxPopoverTrigger]=\"overflowPopover\"\n [haspopup]=\"'menu'\"\n [hidden]=\"!hasHiddenTabs()\"\n [attr.aria-label]=\"i18n.moreTabsLabel(hiddenCount())\"\n (activated)=\"handleAdActivated($event)\"\n (keydown)=\"handleTriggerKeydown($event)\"\n (click)=\"overflowPopover.toggle()\"\n>\n @let triggerTpl = templates.triggerTemplate();\n @if (triggerTpl) {\n <ng-container\n *ngTemplateOutlet=\"triggerTpl; context: templates.triggerContext()\"\n />\n } @else {\n {{ i18n.moreTabsLabel(hiddenCount()) }}\n }\n</button>\n\n<div\n cngxPopover\n #overflowPopover=\"cngxPopover\"\n cngxClickOutside\n [eventType]=\"'click'\"\n [enabled]=\"overflowPopover.isVisible()\"\n (clickOutside)=\"overflowPopover.hide()\"\n role=\"menu\"\n class=\"cngx-tab-overflow__panel\"\n placement=\"bottom-end\"\n panelClass=\"cngx-tab-overflow__panel-surface\"\n [attr.aria-label]=\"i18n.moreTabsLabel(hiddenCount())\"\n>\n <!--\n `role=\"presentation\"` flattens the <ul> away from the\n accessibility tree so each <li role=\"menuitem\"> is exposed as a\n direct child of the role=\"menu\" landmark on the popover surface.\n Each item carries a stable id derived from the tab handle id;\n CngxActiveDescendant on the trigger steers `aria-activedescendant`\n at one of these ids while the user navigates with\n ArrowUp/Down/Home/End/typeahead. The popover is a quick-jump\n navigation surface \u2014 selecting an item triggers `selectById`,\n not a value commit \u2014 so menu/menuitem is the spec-correct pattern\n (listbox/option carries `aria-selected` semantics that do not\n apply to a transient navigation popup).\n -->\n <ul class=\"cngx-tab-overflow__list\" role=\"presentation\">\n @for (tab of hiddenTabs(); track tab.id; let i = $index) {\n <li\n role=\"menuitem\"\n class=\"cngx-tab-overflow__item\"\n [class.cngx-tab-overflow__item--active]=\"ad.activeId() === adItemId(tab)\"\n [id]=\"adItemId(tab)\"\n [attr.data-tab-id]=\"tab.id\"\n [attr.aria-disabled]=\"tab.disabled() ? 'true' : 'false'\"\n (click)=\"!tab.disabled() && pickTab(tab)\"\n >\n @let itemTpl = templates.itemTemplate();\n @if (itemTpl) {\n <ng-container\n *ngTemplateOutlet=\"itemTpl; context: templates.buildItemContext(tab, i)\"\n />\n } @else {\n {{ tab.label() ?? tab.id }}\n }\n </li>\n }\n </ul>\n</div>\n", styles: ["@layer cngx.tokens{@property --cngx-tab-overflow-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-overflow-button-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-overflow-button-radius{syntax: \"*\"; inherits: false; initial-value: .25rem;}@property --cngx-tab-overflow-popover-min-width{syntax: \"*\"; inherits: false; initial-value: 12rem;}@property --cngx-tab-overflow-popover-max-height{syntax: \"*\"; inherits: false; initial-value: 16rem;}@property --cngx-tab-overflow-popover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(1 0 0);}@property --cngx-tab-overflow-popover-border{syntax: \"*\"; inherits: false; initial-value: 1px solid currentColor;}@property --cngx-tab-overflow-popover-radius{syntax: \"*\"; inherits: false; initial-value: .25rem;}@property --cngx-tab-overflow-popover-padding{syntax: \"*\"; inherits: false; initial-value: .25rem 0;}@property --cngx-tab-overflow-item-padding{syntax: \"*\"; inherits: false; initial-value: .5rem .75rem;}@property --cngx-tab-overflow-item-hover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .05);}@property --cngx-tab-overflow-item-active-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .08);}@property --cngx-tab-overflow-item-active-outline{syntax: \"*\"; inherits: false; initial-value: 2px solid currentColor;}@property --cngx-tab-overflow-item-active-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: -2px;}}@layer cngx.components{@scope(.cngx-tab-overflow){:scope{display:inline-flex;align-items:center;flex:0 0 auto;background:var(--cngx-tab-overflow-bg, var(--cngx-tab-strip-bg, transparent))}.cngx-tab-overflow__trigger{display:inline-flex;align-items:center;gap:var(--cngx-tab-gap, .5rem);padding:var(--cngx-tab-padding, .5rem .75rem);border:0;background:var(--cngx-tab-overflow-button-bg, transparent);color:var(--cngx-tab-color);cursor:pointer;font:inherit;border-radius:var(--cngx-tab-overflow-button-radius, .25rem)}.cngx-tab-overflow__trigger[hidden]{display:none}.cngx-tab-overflow__trigger:focus-visible{outline:var(--cngx-tab-focus-ring, 2px solid currentColor);outline-offset:var(--cngx-tab-focus-offset, 2px)}.cngx-tab-overflow__panel-surface{min-width:var(--cngx-tab-overflow-popover-min-width, 12rem);max-height:var(--cngx-tab-overflow-popover-max-height, 16rem);background:var(--cngx-tab-overflow-popover-bg, oklch(1 0 0));border:var(--cngx-tab-overflow-popover-border, 1px solid currentColor);border-radius:var(--cngx-tab-overflow-popover-radius, .25rem);overflow:auto;padding:var(--cngx-tab-overflow-popover-padding, .25rem 0)}.cngx-tab-overflow__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.cngx-tab-overflow__item{padding:var(--cngx-tab-overflow-item-padding, .5rem .75rem);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap}.cngx-tab-overflow__item:hover{background:var(--cngx-tab-overflow-item-hover-bg, oklch(0 0 0 / .05))}.cngx-tab-overflow__item--active{background:var( --cngx-tab-overflow-item-active-bg, var(--cngx-tab-overflow-item-hover-bg, oklch(0 0 0 / .08)) );outline:var(--cngx-tab-overflow-item-active-outline, 2px solid currentColor);outline-offset:var(--cngx-tab-overflow-item-active-outline-offset, -2px)}.cngx-tab-overflow__item[aria-disabled=true]{cursor:not-allowed;opacity:var(--cngx-tab-disabled-opacity, .55)}}}\n"] }]
532
845
  }], ctorParameters: () => [], propDecorators: { popover: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CngxPopover), { isSignal: true }] }], adRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CngxActiveDescendant), { isSignal: true }] }], triggerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTabOverflowTrigger), { isSignal: true }] }], itemSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTabOverflowItem), { isSignal: true }] }] } });
533
846
 
534
847
  /**
@@ -539,5 +852,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
539
852
  * Generated bundle index. Do not edit.
540
853
  */
541
854
 
542
- export { CngxTabGroup, CngxTabOverflow };
855
+ export { CngxTabGroup, CngxTabNav, CngxTabOverflow };
543
856
  //# sourceMappingURL=cngx-ui-tabs.mjs.map