@cngx/ui 0.1.0-rc.8 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +118 -59
  2. package/action-button/README.md +170 -53
  3. package/breadcrumb/README.md +5 -6
  4. package/collection/README.md +1 -1
  5. package/command-palette/README.md +9 -5
  6. package/data-grid-accordion/README.md +1 -1
  7. package/empty-state/README.md +2 -3
  8. package/feedback/README.md +1 -1
  9. package/fesm2022/cngx-ui-a11y.mjs +13 -23
  10. package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
  11. package/fesm2022/cngx-ui-accordion.mjs +55 -60
  12. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  13. package/fesm2022/cngx-ui-action-button.mjs +220 -339
  14. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  15. package/fesm2022/cngx-ui-breadcrumb.mjs +100 -80
  16. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  17. package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
  18. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
  19. package/fesm2022/cngx-ui-collection.mjs +28 -34
  20. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  21. package/fesm2022/cngx-ui-command-palette.mjs +29 -51
  22. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
  23. package/fesm2022/cngx-ui-context-menu.mjs +138 -89
  24. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
  25. package/fesm2022/cngx-ui-data-grid-accordion.mjs +135 -77
  26. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  27. package/fesm2022/cngx-ui-empty-state.mjs +17 -44
  28. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  29. package/fesm2022/cngx-ui-feedback.mjs +648 -495
  30. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  31. package/fesm2022/cngx-ui-layout.mjs +17 -13
  32. package/fesm2022/cngx-ui-layout.mjs.map +1 -1
  33. package/fesm2022/cngx-ui-mat-accordion.mjs +6 -7
  34. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  35. package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
  36. package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
  37. package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
  38. package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
  39. package/fesm2022/cngx-ui-mat-tabs.mjs +315 -134
  40. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  41. package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
  42. package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
  43. package/fesm2022/cngx-ui-overlay.mjs +9 -10
  44. package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
  45. package/fesm2022/cngx-ui-paginator.mjs +212 -188
  46. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  47. package/fesm2022/cngx-ui-sidenav.mjs +872 -721
  48. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  49. package/fesm2022/cngx-ui-skeleton.mjs +17 -19
  50. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  51. package/fesm2022/cngx-ui-speak.mjs +21 -74
  52. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  53. package/fesm2022/cngx-ui-stat-card.mjs +39 -62
  54. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
  55. package/fesm2022/cngx-ui-stepper.mjs +259 -130
  56. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  57. package/fesm2022/cngx-ui-tabs.mjs +148 -50
  58. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  59. package/fesm2022/cngx-ui-timeline.mjs +48 -32
  60. package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
  61. package/fesm2022/cngx-ui-toc.mjs +59 -48
  62. package/fesm2022/cngx-ui-toc.mjs.map +1 -1
  63. package/fesm2022/cngx-ui.mjs +5 -5
  64. package/fesm2022/cngx-ui.mjs.map +1 -1
  65. package/mat-tabs/README.md +57 -19
  66. package/mat-tabs/styles/mat-tabs.css +285 -163
  67. package/nav-rail/README.md +325 -0
  68. package/package.json +37 -8
  69. package/paginator/README.md +10 -0
  70. package/schematics/collection.json +9 -0
  71. package/schematics/ng-add/index.js +9 -0
  72. package/schematics/ng-add/schema.json +96 -0
  73. package/schematics/package.json +3 -0
  74. package/sidenav/README.md +150 -55
  75. package/skeleton/README.md +1 -1
  76. package/speak/README.md +1 -2
  77. package/stepper/README.md +20 -5
  78. package/tabs/README.md +13 -0
  79. package/timeline/README.md +1 -1
  80. package/toc/README.md +1 -1
  81. package/types/cngx-ui-a11y.d.ts +20 -38
  82. package/types/cngx-ui-accordion.d.ts +46 -71
  83. package/types/cngx-ui-action-button.d.ts +113 -151
  84. package/types/cngx-ui-breadcrumb.d.ts +60 -85
  85. package/types/cngx-ui-chart-panel.d.ts +22 -40
  86. package/types/cngx-ui-collection.d.ts +30 -43
  87. package/types/cngx-ui-command-palette.d.ts +40 -64
  88. package/types/cngx-ui-context-menu.d.ts +109 -48
  89. package/types/cngx-ui-data-grid-accordion.d.ts +50 -75
  90. package/types/cngx-ui-empty-state.d.ts +18 -8
  91. package/types/cngx-ui-feedback.d.ts +275 -292
  92. package/types/cngx-ui-layout.d.ts +4 -12
  93. package/types/cngx-ui-mat-accordion.d.ts +5 -5
  94. package/types/cngx-ui-mat-paginator.d.ts +4 -10
  95. package/types/cngx-ui-mat-stepper.d.ts +5 -10
  96. package/types/cngx-ui-mat-tabs.d.ts +86 -89
  97. package/types/cngx-ui-nav-rail.d.ts +416 -0
  98. package/types/cngx-ui-overlay.d.ts +4 -13
  99. package/types/cngx-ui-paginator.d.ts +186 -161
  100. package/types/cngx-ui-sidenav.d.ts +557 -437
  101. package/types/cngx-ui-skeleton.d.ts +7 -13
  102. package/types/cngx-ui-speak.d.ts +40 -24
  103. package/types/cngx-ui-stat-card.d.ts +45 -36
  104. package/types/cngx-ui-stepper.d.ts +205 -84
  105. package/types/cngx-ui-tabs.d.ts +104 -28
  106. package/types/cngx-ui-timeline.d.ts +31 -51
  107. package/types/cngx-ui-toc.d.ts +43 -54
  108. package/types/cngx-ui.d.ts +1 -1
@@ -1,14 +1,59 @@
1
1
  import { NgTemplateOutlet } from '@angular/common';
2
2
  import * as i0 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';
3
+ import { afterNextRender, input, inject, ElementRef, Injector, contentChildren, contentChild, signal, afterRenderEffect, linkedSignal, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, viewChild, DestroyRef, effect, untracked } from '@angular/core';
4
4
  import { injectDirection } from '@cngx/core';
5
5
  import * as i2 from '@cngx/common/a11y';
6
6
  import { CNGX_FOCUSABLE_SELECTOR, CngxLiveRegion, CngxFocusRestore, CngxActiveDescendant } from '@cngx/common/a11y';
7
+ import { CngxIconSvg } from '@cngx/common/display';
7
8
  import * as i1 from '@cngx/common/tabs';
8
- 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, createTabNavAnnouncement, CNGX_TAB_NAV_HOST, CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY, tabOverflowOptionId, CngxTabOverflowTrigger, CngxTabOverflowItem, createTabOverflowTemplateBindings, CNGX_DOM_ANCHOR_RETRY_FACTORY, CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY } from '@cngx/common/tabs';
9
+ import { CNGX_TAB_GROUP_HOST, injectTabsI18n, injectTabsConfig, 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, createTabNavAnnouncement, CNGX_TAB_NAV_HOST, CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY, tabOverflowOptionId, CngxTabOverflowTrigger, CngxTabOverflowItem, createTabOverflowTemplateBindings, CNGX_DOM_ANCHOR_RETRY_FACTORY, CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY } from '@cngx/common/tabs';
10
+ import { cngxDevWarn, CNGX_ICON_ALERT, CNGX_ICON_BAN, CNGX_ICON_X, CNGX_ICON_PLUS, CngxRuntimeError } from '@cngx/utils';
9
11
  import { CngxClickOutside } from '@cngx/common/interactive';
10
12
  import { CngxPopover, CngxPopoverTrigger } from '@cngx/common/popover';
11
13
 
14
+ /**
15
+ * One-shot post-mount checks of `<cngx-tab-group>`: CNGX3011 (icon-only
16
+ * layout without an icon template) and CNGX3025 (a tab without a `[label]`
17
+ * string). Runs once in an `afterNextRender`, off the reactive graph; must be
18
+ * called in an injection context. The caller guards the call with `ngDevMode`
19
+ * as well, so the production build drops the call and this module with it.
20
+ *
21
+ * @internal
22
+ */
23
+ function installTabGroupDevChecks(opts) {
24
+ if (!(typeof ngDevMode !== 'undefined' && ngDevMode)) {
25
+ return;
26
+ }
27
+ afterNextRender(() => {
28
+ // Icon-only hides the label, so a missing *cngxTabIcon template leaves
29
+ // the tab visually empty.
30
+ if (opts.iconLayout() === 'only' && !opts.iconTemplate()) {
31
+ cngxDevWarn('CNGX3011', "[cngx-tab-group] iconLayout='only' but no *cngxTabIcon template " +
32
+ 'is provided - tabs render no icon and the label is visually ' +
33
+ "hidden. Provide an <ng-template cngxTabIcon> or use 'start' / 'end' / 'top'.", opts.host);
34
+ }
35
+ const unlabeled = unlabeledTabPositions(opts);
36
+ if (unlabeled.length > 0) {
37
+ cngxDevWarn('CNGX3025', `[cngx-tab-group] tab(s) without a [label] string at position ${unlabeled.join(', ')}. ` +
38
+ 'Announcements, the close button and the overflow list call such a tab "Tab N". ' +
39
+ 'Bind [label] on every cngxTab, also when a *cngxTabLabel template renders it.', opts.host);
40
+ }
41
+ });
42
+ }
43
+ // The announcements, the close button and the overflow row need a label
44
+ // string; a *cngxTabLabel template only names the tab button.
45
+ function unlabeledTabPositions(opts) {
46
+ return opts.tabs().flatMap((tab, i) => {
47
+ if (tab.label()) {
48
+ return [];
49
+ }
50
+ const source = opts.hasLabelTemplate(tab.id)
51
+ ? 'named by its *cngxTabLabel template'
52
+ : 'no name source';
53
+ return [`${i + 1} (${source})`];
54
+ });
55
+ }
56
+
12
57
  /**
13
58
  * CNGX tab-group organism. \
14
59
  * Thin shell over {@link CngxTabGroupPresenter}
@@ -34,11 +79,9 @@ import { CngxPopover, CngxPopoverTrigger } from '@cngx/common/popover';
34
79
  * @playground Routed tabs with a CanDeactivate guard ./examples/routed-outlet/routed-outlet.component.ts
35
80
  * @see {@link CngxMatTabs} for the Material `<mat-tab-group>` variant with `[cngxMatTabError]`.
36
81
  *
37
- * @category ui/tabs
38
- * @docsKind primary
39
82
  * @wcag AA
40
83
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-group.component.ts
41
- * @since 0.1.0
84
+ * @since 0.3.0
42
85
  * @relatedTo CngxTabOverflow, CngxTabGroupPresenter, CngxTab, CngxFocusRestore
43
86
  * @slot cngxTabIcon Replaces a tab's leading icon; gets the tab.
44
87
  * @slot cngxTabAddIcon Replaces the glyph on the add-tab control.
@@ -46,17 +89,27 @@ import { CngxPopover, CngxPopoverTrigger } from '@cngx/common/popover';
46
89
  * @slot cngxTabErrorBadge Marks a tab whose panel holds validation errors.
47
90
  * @slot cngxTabBusySpinner Rendered on a tab while its switch commits.
48
91
  * @slot cngxTabRejectionIcon Marks a tab whose switch was refused.
49
- * <example-url>http://localhost:4200/#/ui/tabs/tab-commit-action/optimistic-pessimistic-commits-with-bridge-directives</example-url>
50
- * <example-url>http://localhost:4200/#/ui/tabs/tab-error-aggregation/per-tab-error-badges</example-url>
51
- * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/all-skins-side-by-side</example-url>
52
- * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/contained</example-url>
53
- * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/line</example-url>
54
- * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/pill</example-url>
55
- * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/pill-vs-toggle-group</example-url>
56
- * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/vertical-skins</example-url>
92
+ * <example-url>/#/ui/tabs/tab-commit-action/optimistic-pessimistic-commits-with-bridge-directives</example-url>
93
+ * <example-url>/#/ui/tabs/tab-error-aggregation/per-tab-error-badges</example-url>
94
+ * <example-url>/#/ui/tabs/tab-skins/all-skins-side-by-side</example-url>
95
+ * <example-url>/#/ui/tabs/tab-skins/contained</example-url>
96
+ * <example-url>/#/ui/tabs/tab-skins/line</example-url>
97
+ * <example-url>/#/ui/tabs/tab-skins/pill</example-url>
98
+ * <example-url>/#/ui/tabs/tab-skins/pill-vs-toggle-group</example-url>
99
+ * <example-url>/#/ui/tabs/tab-skins/vertical-skins</example-url>
100
+ * @axis level organism
57
101
  */
58
102
  class CngxTabGroup {
103
+ /**
104
+ * Accessible name of the tab group host, bound as `[aria-label]`. When unset it falls back to the
105
+ * `tabsLabel` i18n copy, which names the group by default. It is dropped while a non-empty
106
+ * `[aria-labelledby]` is set.
107
+ */
59
108
  ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
109
+ /**
110
+ * Id reference of the element that names the tab group host, bound as `[aria-labelledby]`. A non-empty
111
+ * value suppresses the host `aria-label`, including the i18n fallback. Unset by default.
112
+ */
60
113
  ariaLabelledBy = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabelledBy" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
61
114
  /**
62
115
  * Visual skin. Cascade `input ?? config ?? 'line'`, resolved by
@@ -103,8 +156,11 @@ class CngxTabGroup {
103
156
  presenter = inject(CNGX_TAB_GROUP_HOST);
104
157
  i18n = injectTabsI18n();
105
158
  config = injectTabsConfig();
106
- /** Default-glyph table for the template's fallback spans. */
107
- glyphs = CNGX_TABS_GLYPHS;
159
+ /** Default icons for the template's fallback spans. */
160
+ alertIcon = CNGX_ICON_ALERT;
161
+ banIcon = CNGX_ICON_BAN;
162
+ closeIcon = CNGX_ICON_X;
163
+ addIcon = CNGX_ICON_PLUS;
108
164
  hostElement = inject(ElementRef).nativeElement;
109
165
  injector = inject(Injector);
110
166
  tabDirectives = contentChildren(CngxTab, { ...(ngDevMode ? { debugName: "tabDirectives" } : /* istanbul ignore next */ {}), descendants: true });
@@ -209,16 +265,13 @@ class CngxTabGroup {
209
265
  const panel = this.hostElement.querySelector('.cngx-tabs__panel:not([hidden])');
210
266
  this.activePanelHasFocusable.set(panel?.querySelector(CNGX_FOCUSABLE_SELECTOR) != null);
211
267
  });
212
- if (isDevMode()) {
213
- // One-shot post-mount check: icon-only hides the label, so a
214
- // missing *cngxTabIcon template leaves the tab visually empty.
215
- // afterNextRender runs once, off the reactive graph.
216
- afterNextRender(() => {
217
- if (this.hostAttrs.resolvedIconLayout() === 'only' && !this.iconSlot()) {
218
- console.warn("[cngx-tab-group] iconLayout='only' but no *cngxTabIcon template " +
219
- 'is provided - tabs render no icon and the label is visually ' +
220
- "hidden. Provide an <ng-template cngxTabIcon> or use 'start' / 'end' / 'top'.");
221
- }
268
+ if (typeof ngDevMode !== 'undefined' && ngDevMode) {
269
+ installTabGroupDevChecks({
270
+ iconLayout: this.hostAttrs.resolvedIconLayout,
271
+ iconTemplate: this.templates.icon,
272
+ tabs: this.presenter.tabs,
273
+ hasLabelTemplate: (id) => this.labelTemplateFor(id) !== null,
274
+ host: this.hostElement,
222
275
  });
223
276
  }
224
277
  }
@@ -373,14 +426,16 @@ class CngxTabGroup {
373
426
  }
374
427
  /**
375
428
  * Context for `*cngxTabRejectionIcon`. `originLabel` matches the
376
- * `liveAnnouncement` priority chain so visual + SR phrasing align.
377
- * Allocates fresh per CD for the same reason as
429
+ * `liveAnnouncement` priority chain so visual + SR phrasing align;
430
+ * `reason` is the kind of the outcome that set the marker (a refusal
431
+ * or a failure). Allocates fresh per CD for the same reason as
378
432
  * {@link busySpinnerContextFor}.
379
433
  */
380
434
  rejectionIconContextFor(failedIndex) {
381
435
  const originIdx = this.presenter.originIndexDuringCommit();
382
436
  const originLabel = originIdx !== undefined ? this.presenter.tabs()[originIdx]?.label() : undefined;
383
- return { failedIndex, originLabel };
437
+ const reason = this.presenter.lastOutcome()?.kind === 'refused' ? 'refused' : 'failed';
438
+ return { failedIndex, originLabel, reason };
384
439
  }
385
440
  handleHeaderClick(tab) {
386
441
  if (tab.disabled()) {
@@ -413,6 +468,12 @@ class CngxTabGroup {
413
468
  }
414
469
  // CngxTabPanelHost contract - presenter owns clamping, disabled-skip,
415
470
  // commit-action gating.
471
+ /**
472
+ * Activates the tab registered under the given id. `CngxTabPanelHost` contract method, called by the
473
+ * overflow menu when a hidden tab is picked. An unknown id is ignored; otherwise it goes through the
474
+ * presenter `select`, which does nothing for the active or a disabled tab and defers to `commitAction`
475
+ * when one is set.
476
+ */
416
477
  selectById(id) {
417
478
  this.presenter.selectById(id);
418
479
  }
@@ -424,21 +485,34 @@ class CngxTabGroup {
424
485
  clearLastFailed() {
425
486
  this.presenter.clearLastFailed();
426
487
  }
488
+ /**
489
+ * Returns the `*cngxTabLabel` template of the tab with the given id, or `null` when the id is unknown
490
+ * or the tab has no label slot. `CngxTabPanelHost` contract method: the tab group template calls it per
491
+ * tab, and a skin sub-component can call it through `CNGX_TAB_PANEL_HOST`.
492
+ */
427
493
  labelTemplateFor(id) {
428
494
  return this.tabDirectiveById().get(id)?.labelTemplate()?.templateRef ?? null;
429
495
  }
496
+ /**
497
+ * @internal
498
+ */
430
499
  subLabelTemplateFor(id) {
431
500
  return this.tabDirectiveById().get(id)?.subLabelTemplate()?.templateRef ?? null;
432
501
  }
502
+ /**
503
+ * Returns the `*cngxTabContent` template of the tab with the given id, or `null` when the id is unknown
504
+ * or the tab has no content slot. `CngxTabPanelHost` contract method: the tab group template calls it per
505
+ * tab, and a skin sub-component can call it through `CNGX_TAB_PANEL_HOST`.
506
+ */
433
507
  contentTemplateFor(id) {
434
508
  return this.tabDirectiveById().get(id)?.contentTemplate()?.templateRef ?? null;
435
509
  }
436
510
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTabGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
437
- 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]=\"tabDescribedBy(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 data-tab-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: true; initial-value: .5rem;}@property --cngx-tab-strip-padding{syntax: \"*\"; inherits: true; initial-value: .5rem 0;}@property --cngx-tab-strip-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-padding{syntax: \"*\"; inherits: true; 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-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-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25 / .1);}@property --cngx-tab-rejected-radius{syntax: \"<length>\"; inherits: false; initial-value: 6px;}@property --cngx-tab-rejected-accent-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-rejected-outline{syntax: \"*\"; inherits: false; initial-value: none;}@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{--cngx-tab-gap: var(--cngx-space-sm);--cngx-tab-strip-padding: var(--cngx-space-sm) 0;--cngx-tab-padding: var(--cngx-space-sm) var(--cngx-space-sm);--cngx-tab-vertical-gap: var(--cngx-space-md);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);min-block-size:var(--cngx-target-min, 0px);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;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent)}.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{background:var(--cngx-tab-rejected-bg, oklch(.45 .15 25 / .1));border-radius:var(--cngx-tab-rejected-radius, .375rem) var(--cngx-tab-rejected-radius, .375rem) 0 0;box-shadow:inset 0 calc(-1 * var(--cngx-tab-rejected-accent-width, 2px)) 0 0 var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25));outline:var(--cngx-tab-rejected-outline, none);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-rejected-bg, oklch(.45 .15 25 / .1))}}@media(forced-colors:active){.cngx-tabs__tab[aria-selected=true]{box-sizing:border-box;border-bottom:var(--cngx-tab-active-indicator-width, 2px) solid Highlight}.cngx-tabs__tab[aria-disabled=true]{color:GrayText}}\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: true; initial-value: .15s;}:where(.cngx-tab-group){--cngx-tab-transition-duration: var(--cngx-duration-fast)}@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: calc(var(--cngx-space-sm) + 2px) var(--cngx-space-md);--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: var(--cngx-space-sm) var(--cngx-space-md)}.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;unicode-bidi:var(--cngx-tab-badge-bidi, isolate)}.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: calc(var(--cngx-space-sm) + 2px) calc(var(--cngx-space-md) + 4px);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-pill-gap: var(--cngx-space-xs, .375rem);--cngx-tab-pill-strip-padding: var(--cngx-space-xs, .25rem);--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: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--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: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);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-gap: var(--cngx-space-xs, .375rem);--cngx-tab-pill-strip-padding: var(--cngx-space-xs, .25rem);--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: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--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-gap: var(--cngx-space-xs, .25rem);--cngx-tab-segmented-track-padding: var(--cngx-space-xs, .25rem);--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: var(--cngx-space-sm) calc(var(--cngx-space-md) - 2px);--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: var(--cngx-space-sm) var(--cngx-space-md);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: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);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 });
511
+ 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<!-- Kind behind the rejection marker ('refused' | 'failed'): the data-reason hook and the default glyph. -->\n@let rejectionKind = presenter.lastOutcome()?.kind;\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 @let labelTpl = labelTemplateFor(tab.id);\n @let subLabelTpl = subLabelTemplateFor(tab.id);\n @let labelledBy = announcements.tabLabelledBy(tab, !!labelTpl, !!subLabelTpl);\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 [attr.data-reason]=\"failedIdx === i ? rejectionKind : null\"\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]=\"labelledBy ? null : announcements.tabAriaLabel(tab, i + 1)\"\n [attr.aria-labelledby]=\"labelledBy\"\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]=\"tabDescribedBy(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\" [id]=\"announcements.tabLabelId(tab)\">\n @if (labelTpl) {\n <ng-container *ngTemplateOutlet=\"labelTpl\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </span>\n @if (subLabelTpl || tab.subLabel()) {\n <span class=\"cngx-tabs__sublabel\" [id]=\"announcements.tabSubLabelId(tab)\">\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 ><svg [cngxIconSvg]=\"alertIcon\"></svg\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\n class=\"cngx-tabs__rejection-icon\"\n aria-hidden=\"true\"\n [attr.data-reason]=\"rejectionKind\"\n ><svg [cngxIconSvg]=\"rejectionKind === 'refused' ? banIcon : alertIcon\"></svg></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\"><svg [cngxIconSvg]=\"closeIcon\"></svg></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 data-tab-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\"><svg [cngxIconSvg]=\"addIcon\"></svg></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: true; initial-value: .5rem;}@property --cngx-tab-strip-padding{syntax: \"*\"; inherits: true; initial-value: .5rem 0;}@property --cngx-tab-strip-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-padding{syntax: \"*\"; inherits: true; 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-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: \"*\"; inherits: true;}@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: true; initial-value: 1.15em;}@property --cngx-tab-rejection-icon-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-failed-text-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-rejection-tint{syntax: \"<percentage>\"; inherits: true; initial-value: 18%;}@property --cngx-tab-rejected-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: .6s;}@property --cngx-tab-refused-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-refused-text-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-affordance-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-affordance-target-min{syntax: \"*\"; inherits: true; initial-value: 24px;}@property --cngx-tab-affordance-radius{syntax: \"*\"; inherits: false; initial-value: 9999px;}@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{--cngx-tab-gap: var(--cngx-space-sm);--cngx-tab-strip-padding: var(--cngx-space-sm) 0;--cngx-tab-padding: var(--cngx-space-sm) var(--cngx-space-sm);--cngx-tab-vertical-gap: var(--cngx-space-md);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);min-block-size:var(--cngx-target-min, 0px);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;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent)}.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, 9999px);background:transparent;color:inherit;font:inherit;line-height:1;cursor:pointer}.cngx-tabs__close:before,.cngx-tabs__add:before{content:\"\";position:absolute;inset:calc(-.5*max(0px,max(var(--cngx-tab-affordance-target-min, 24px),var(--cngx-target-min, 0px)) - var(--cngx-tab-affordance-size, 1.25rem)))}.cngx-tabs__close{position:absolute;inset-inline-end:var(--cngx-tab-gap, .5rem);top:50%;transform:translateY(-50%);z-index:1}.cngx-tabs__add{position:relative;width:auto;min-width:var(--cngx-tab-affordance-size, 1.25rem);padding-inline:calc(var(--cngx-tab-gap, .5rem) / 2);margin-inline-start:var(--cngx-tab-gap, .5rem);align-self:center;white-space:nowrap}.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;flex:0 0 auto;color:var(--cngx-tab-error-badge-color, var(--cngx-color-danger, oklch(.6 .18 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;flex:0 0 auto;color:var(--cngx-tab-rejection-icon-color, var(--cngx-color-danger, oklch(.6 .18 25)));margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__rejection-icon[data-reason=refused]{color:var( --cngx-tab-refused-color, color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 70%, var(--cngx-color-text, oklch(.2 .01 250)) ) )}.cngx-tabs__tab.cngx-tab--rejected{--_cngx-tab-rejection-color: var( --cngx-tab-rejection-icon-color, var(--cngx-color-danger, oklch(.6 .18 25)) );background:color-mix(in oklab,var(--_cngx-tab-rejection-color, oklch(.6 .18 25)) var(--cngx-tab-rejection-tint, 18%),transparent)}.cngx-tabs__tab.cngx-tab--rejected[data-reason=refused]{--_cngx-tab-rejection-color: var( --cngx-tab-refused-color, color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 70%, var(--cngx-color-text, oklch(.2 .01 250)) ) )}@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:color-mix(in oklab,var(--_cngx-tab-rejection-color, oklch(.6 .18 25)) calc(var(--cngx-tab-rejection-tint, 18%) * 2),transparent)}}@media(forced-colors:active){.cngx-tabs__tab[aria-selected=true]{box-sizing:border-box;border-bottom:var(--cngx-tab-active-indicator-width, 2px) solid Highlight}.cngx-tabs__tab[aria-disabled=true]{color:GrayText}.cngx-tabs__badge,.cngx-tabs__rejection-icon{color:CanvasText}.cngx-tabs__tab.cngx-tab--rejected:not(:focus-visible){outline:2px solid CanvasText;outline-offset:-2px}}\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: true; initial-value: .15s;}:where(.cngx-tab-group){--cngx-tab-transition-duration: var(--cngx-duration-fast)}@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: true; initial-value: 1.15em;}@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);gap:0;padding:0}.cngx-tabs__tab{position:relative;--cngx-tab-padding: calc(var(--cngx-space-sm) + 2px) var(--cngx-space-md);--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: var(--cngx-space-sm) var(--cngx-space-md)}.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)}.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);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{unicode-bidi:var(--cngx-tab-badge-bidi, isolate)}.cngx-tabs__badge>.cngx-icon-svg{--cngx-icon-svg-size: var(--cngx-tab-badge-size, 1.15em);--cngx-icon-svg-stroke-width: 2}.cngx-tabs__rejection-icon>.cngx-icon-svg{--cngx-icon-svg-size: var(--cngx-tab-rejection-icon-size, 1.15em);--cngx-icon-svg-stroke-width: 2}:scope:is([data-skin=line],:not([data-skin])) .cngx-tabs__tab.cngx-tab--rejected{background:transparent;animation:none}:scope:is([data-skin=line],:not([data-skin])) .cngx-tab--rejected .cngx-tabs__label{color:var( --cngx-tab-failed-text-color, var( --cngx-color-danger-text, oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .46 c h) ) )}:scope:is([data-skin=line],:not([data-skin])) .cngx-tab--rejected[data-reason=refused] .cngx-tabs__label{color:var( --cngx-tab-refused-text-color, color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 55%, var(--cngx-color-text, oklch(.2 .01 250)) ) )}:is(.cngx-tabs__close,.cngx-tabs__add)>span>.cngx-icon-svg{--cngx-icon-svg-size: max(.75em, var(--cngx-icon-svg-micro-floor, .75rem));display:block}.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: calc(var(--cngx-space-sm) + 2px) calc(var(--cngx-space-md) + 4px);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))}.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);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)}}@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-pill-gap: var(--cngx-space-xs, .375rem);--cngx-tab-pill-strip-padding: var(--cngx-space-xs, .25rem);--cngx-tab-active-bg: var( --cngx-color-primary-strong, oklch(from var(--cngx-color-primary, oklch(.66 .19 50)) .58 c h) );--cngx-tab-pill-active-color: var(--cngx-color-on-primary-strong, 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: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--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);color:var(--cngx-tab-pill-active-color);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: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);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-gap: var(--cngx-space-xs, .375rem);--cngx-tab-pill-strip-padding: var(--cngx-space-xs, .25rem);--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: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--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-gap: var(--cngx-space-xs, .25rem);--cngx-tab-segmented-track-padding: var(--cngx-space-xs, .25rem);--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: var(--cngx-space-sm) calc(var(--cngx-space-md) - 2px);--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);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: var(--cngx-space-sm) var(--cngx-space-md);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: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);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: "component", type: CngxIconSvg, selector: "svg[cngxIconSvg]", inputs: ["cngxIconSvg"] }, { kind: "directive", type: CngxLiveRegion, selector: "[cngxLiveRegion]", inputs: ["politeness", "atomic", "relevant"], exportAs: ["cngxLiveRegion"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
438
512
  }
439
513
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTabGroup, decorators: [{
440
514
  type: Component,
441
- args: [{ selector: 'cngx-tab-group', exportAs: 'cngxTabGroup', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet, CngxLiveRegion], encapsulation: ViewEncapsulation.None, hostDirectives: [
515
+ args: [{ selector: 'cngx-tab-group', exportAs: 'cngxTabGroup', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet, CngxIconSvg, CngxLiveRegion], encapsulation: ViewEncapsulation.None, hostDirectives: [
442
516
  {
443
517
  directive: CngxTabGroupPresenter,
444
518
  inputs: ['activeIndex', 'orientation', 'loop', 'commitAction', 'commitMode'],
@@ -459,7 +533,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
459
533
  '[attr.aria-label]': 'announcements.resolvedAriaLabel()',
460
534
  '[attr.aria-labelledby]': 'ariaLabelledBy()',
461
535
  '[class.cngx-tabs]': 'true',
462
- }, 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]=\"tabDescribedBy(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 data-tab-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: true; initial-value: .5rem;}@property --cngx-tab-strip-padding{syntax: \"*\"; inherits: true; initial-value: .5rem 0;}@property --cngx-tab-strip-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-padding{syntax: \"*\"; inherits: true; 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-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-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25 / .1);}@property --cngx-tab-rejected-radius{syntax: \"<length>\"; inherits: false; initial-value: 6px;}@property --cngx-tab-rejected-accent-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-rejected-outline{syntax: \"*\"; inherits: false; initial-value: none;}@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{--cngx-tab-gap: var(--cngx-space-sm);--cngx-tab-strip-padding: var(--cngx-space-sm) 0;--cngx-tab-padding: var(--cngx-space-sm) var(--cngx-space-sm);--cngx-tab-vertical-gap: var(--cngx-space-md);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);min-block-size:var(--cngx-target-min, 0px);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;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent)}.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{background:var(--cngx-tab-rejected-bg, oklch(.45 .15 25 / .1));border-radius:var(--cngx-tab-rejected-radius, .375rem) var(--cngx-tab-rejected-radius, .375rem) 0 0;box-shadow:inset 0 calc(-1 * var(--cngx-tab-rejected-accent-width, 2px)) 0 0 var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25));outline:var(--cngx-tab-rejected-outline, none);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-rejected-bg, oklch(.45 .15 25 / .1))}}@media(forced-colors:active){.cngx-tabs__tab[aria-selected=true]{box-sizing:border-box;border-bottom:var(--cngx-tab-active-indicator-width, 2px) solid Highlight}.cngx-tabs__tab[aria-disabled=true]{color:GrayText}}\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: true; initial-value: .15s;}:where(.cngx-tab-group){--cngx-tab-transition-duration: var(--cngx-duration-fast)}@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: calc(var(--cngx-space-sm) + 2px) var(--cngx-space-md);--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: var(--cngx-space-sm) var(--cngx-space-md)}.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;unicode-bidi:var(--cngx-tab-badge-bidi, isolate)}.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: calc(var(--cngx-space-sm) + 2px) calc(var(--cngx-space-md) + 4px);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-pill-gap: var(--cngx-space-xs, .375rem);--cngx-tab-pill-strip-padding: var(--cngx-space-xs, .25rem);--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: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--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: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);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-gap: var(--cngx-space-xs, .375rem);--cngx-tab-pill-strip-padding: var(--cngx-space-xs, .25rem);--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: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--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-gap: var(--cngx-space-xs, .25rem);--cngx-tab-segmented-track-padding: var(--cngx-space-xs, .25rem);--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: var(--cngx-space-sm) calc(var(--cngx-space-md) - 2px);--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: var(--cngx-space-sm) var(--cngx-space-md);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: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);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"] }]
536
+ }, template: "<div class=\"cngx-tabs__strip-wrapper\">\n@let failedIdx = presenter.lastFailedIndex();\n<!-- Kind behind the rejection marker ('refused' | 'failed'): the data-reason hook and the default glyph. -->\n@let rejectionKind = presenter.lastOutcome()?.kind;\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 @let labelTpl = labelTemplateFor(tab.id);\n @let subLabelTpl = subLabelTemplateFor(tab.id);\n @let labelledBy = announcements.tabLabelledBy(tab, !!labelTpl, !!subLabelTpl);\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 [attr.data-reason]=\"failedIdx === i ? rejectionKind : null\"\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]=\"labelledBy ? null : announcements.tabAriaLabel(tab, i + 1)\"\n [attr.aria-labelledby]=\"labelledBy\"\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]=\"tabDescribedBy(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\" [id]=\"announcements.tabLabelId(tab)\">\n @if (labelTpl) {\n <ng-container *ngTemplateOutlet=\"labelTpl\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </span>\n @if (subLabelTpl || tab.subLabel()) {\n <span class=\"cngx-tabs__sublabel\" [id]=\"announcements.tabSubLabelId(tab)\">\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 ><svg [cngxIconSvg]=\"alertIcon\"></svg\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\n class=\"cngx-tabs__rejection-icon\"\n aria-hidden=\"true\"\n [attr.data-reason]=\"rejectionKind\"\n ><svg [cngxIconSvg]=\"rejectionKind === 'refused' ? banIcon : alertIcon\"></svg></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\"><svg [cngxIconSvg]=\"closeIcon\"></svg></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 data-tab-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\"><svg [cngxIconSvg]=\"addIcon\"></svg></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: true; initial-value: .5rem;}@property --cngx-tab-strip-padding{syntax: \"*\"; inherits: true; initial-value: .5rem 0;}@property --cngx-tab-strip-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-padding{syntax: \"*\"; inherits: true; 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-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: \"*\"; inherits: true;}@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: true; initial-value: 1.15em;}@property --cngx-tab-rejection-icon-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-failed-text-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-rejection-tint{syntax: \"<percentage>\"; inherits: true; initial-value: 18%;}@property --cngx-tab-rejected-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: .6s;}@property --cngx-tab-refused-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-refused-text-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-affordance-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-affordance-target-min{syntax: \"*\"; inherits: true; initial-value: 24px;}@property --cngx-tab-affordance-radius{syntax: \"*\"; inherits: false; initial-value: 9999px;}@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{--cngx-tab-gap: var(--cngx-space-sm);--cngx-tab-strip-padding: var(--cngx-space-sm) 0;--cngx-tab-padding: var(--cngx-space-sm) var(--cngx-space-sm);--cngx-tab-vertical-gap: var(--cngx-space-md);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);min-block-size:var(--cngx-target-min, 0px);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;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent)}.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, 9999px);background:transparent;color:inherit;font:inherit;line-height:1;cursor:pointer}.cngx-tabs__close:before,.cngx-tabs__add:before{content:\"\";position:absolute;inset:calc(-.5*max(0px,max(var(--cngx-tab-affordance-target-min, 24px),var(--cngx-target-min, 0px)) - var(--cngx-tab-affordance-size, 1.25rem)))}.cngx-tabs__close{position:absolute;inset-inline-end:var(--cngx-tab-gap, .5rem);top:50%;transform:translateY(-50%);z-index:1}.cngx-tabs__add{position:relative;width:auto;min-width:var(--cngx-tab-affordance-size, 1.25rem);padding-inline:calc(var(--cngx-tab-gap, .5rem) / 2);margin-inline-start:var(--cngx-tab-gap, .5rem);align-self:center;white-space:nowrap}.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;flex:0 0 auto;color:var(--cngx-tab-error-badge-color, var(--cngx-color-danger, oklch(.6 .18 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;flex:0 0 auto;color:var(--cngx-tab-rejection-icon-color, var(--cngx-color-danger, oklch(.6 .18 25)));margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__rejection-icon[data-reason=refused]{color:var( --cngx-tab-refused-color, color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 70%, var(--cngx-color-text, oklch(.2 .01 250)) ) )}.cngx-tabs__tab.cngx-tab--rejected{--_cngx-tab-rejection-color: var( --cngx-tab-rejection-icon-color, var(--cngx-color-danger, oklch(.6 .18 25)) );background:color-mix(in oklab,var(--_cngx-tab-rejection-color, oklch(.6 .18 25)) var(--cngx-tab-rejection-tint, 18%),transparent)}.cngx-tabs__tab.cngx-tab--rejected[data-reason=refused]{--_cngx-tab-rejection-color: var( --cngx-tab-refused-color, color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 70%, var(--cngx-color-text, oklch(.2 .01 250)) ) )}@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:color-mix(in oklab,var(--_cngx-tab-rejection-color, oklch(.6 .18 25)) calc(var(--cngx-tab-rejection-tint, 18%) * 2),transparent)}}@media(forced-colors:active){.cngx-tabs__tab[aria-selected=true]{box-sizing:border-box;border-bottom:var(--cngx-tab-active-indicator-width, 2px) solid Highlight}.cngx-tabs__tab[aria-disabled=true]{color:GrayText}.cngx-tabs__badge,.cngx-tabs__rejection-icon{color:CanvasText}.cngx-tabs__tab.cngx-tab--rejected:not(:focus-visible){outline:2px solid CanvasText;outline-offset:-2px}}\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: true; initial-value: .15s;}:where(.cngx-tab-group){--cngx-tab-transition-duration: var(--cngx-duration-fast)}@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: true; initial-value: 1.15em;}@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);gap:0;padding:0}.cngx-tabs__tab{position:relative;--cngx-tab-padding: calc(var(--cngx-space-sm) + 2px) var(--cngx-space-md);--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: var(--cngx-space-sm) var(--cngx-space-md)}.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)}.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);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{unicode-bidi:var(--cngx-tab-badge-bidi, isolate)}.cngx-tabs__badge>.cngx-icon-svg{--cngx-icon-svg-size: var(--cngx-tab-badge-size, 1.15em);--cngx-icon-svg-stroke-width: 2}.cngx-tabs__rejection-icon>.cngx-icon-svg{--cngx-icon-svg-size: var(--cngx-tab-rejection-icon-size, 1.15em);--cngx-icon-svg-stroke-width: 2}:scope:is([data-skin=line],:not([data-skin])) .cngx-tabs__tab.cngx-tab--rejected{background:transparent;animation:none}:scope:is([data-skin=line],:not([data-skin])) .cngx-tab--rejected .cngx-tabs__label{color:var( --cngx-tab-failed-text-color, var( --cngx-color-danger-text, oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .46 c h) ) )}:scope:is([data-skin=line],:not([data-skin])) .cngx-tab--rejected[data-reason=refused] .cngx-tabs__label{color:var( --cngx-tab-refused-text-color, color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 55%, var(--cngx-color-text, oklch(.2 .01 250)) ) )}:is(.cngx-tabs__close,.cngx-tabs__add)>span>.cngx-icon-svg{--cngx-icon-svg-size: max(.75em, var(--cngx-icon-svg-micro-floor, .75rem));display:block}.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: calc(var(--cngx-space-sm) + 2px) calc(var(--cngx-space-md) + 4px);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))}.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);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)}}@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-pill-gap: var(--cngx-space-xs, .375rem);--cngx-tab-pill-strip-padding: var(--cngx-space-xs, .25rem);--cngx-tab-active-bg: var( --cngx-color-primary-strong, oklch(from var(--cngx-color-primary, oklch(.66 .19 50)) .58 c h) );--cngx-tab-pill-active-color: var(--cngx-color-on-primary-strong, 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: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--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);color:var(--cngx-tab-pill-active-color);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: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);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-gap: var(--cngx-space-xs, .375rem);--cngx-tab-pill-strip-padding: var(--cngx-space-xs, .25rem);--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: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--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-gap: var(--cngx-space-xs, .25rem);--cngx-tab-segmented-track-padding: var(--cngx-space-xs, .25rem);--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: var(--cngx-space-sm) calc(var(--cngx-space-md) - 2px);--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);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: var(--cngx-space-sm) var(--cngx-space-md);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: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);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"] }]
463
537
  }], 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), { ...{
464
538
  descendants: true,
465
539
  }, 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 }] }] } });
@@ -498,15 +572,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
498
572
  * @playground Native router tabs with a CanDeactivate guard ./examples/routed-nav/routed-nav.component.ts
499
573
  * @see {@link CngxTabGroup} for the programmatic tablist organism.
500
574
  *
501
- * @category ui/tabs
502
- * @docsKind primary
503
575
  * @wcag AA
504
576
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-nav.component.ts
505
- * @since 0.1.0
577
+ * @since 0.3.0
506
578
  * @relatedTo CngxTabLink, CngxTabsRouteSync, CngxTabGroup, CngxMatTabNav
579
+ * @axis level organism
507
580
  */
508
581
  class CngxTabNav {
582
+ /**
583
+ * Accessible name of the navigation host, bound straight to `[attr.aria-label]` through the
584
+ * `[aria-label]` alias. There is no config or i18n fallback: unset renders no attribute, and it stays
585
+ * set next to `[aria-labelledby]`.
586
+ */
509
587
  ariaLabel = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
588
+ /**
589
+ * Id reference of the element that names the navigation host, bound straight to
590
+ * `[attr.aria-labelledby]` through the `[aria-labelledby]` alias. It does not clear `[aria-label]`;
591
+ * unset renders no attribute.
592
+ */
510
593
  ariaLabelledBy = input(undefined, { ...(ngDevMode ? { debugName: "ariaLabelledBy" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
511
594
  /**
512
595
  * Visual skin. Cascade `input ?? config ?? 'line'`, reflected onto
@@ -530,7 +613,7 @@ class CngxTabNav {
530
613
  injector: inject(Injector),
531
614
  }).liveAnnouncement;
532
615
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTabNav, deps: [], target: i0.ɵɵFactoryTarget.Component });
533
- 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" }, providers: [{ provide: CNGX_TAB_NAV_HOST, useValue: true }], 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: true; initial-value: .5rem;}@property --cngx-tab-strip-padding{syntax: \"*\"; inherits: true; initial-value: .5rem 0;}@property --cngx-tab-strip-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-padding{syntax: \"*\"; inherits: true; 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-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-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25 / .1);}@property --cngx-tab-rejected-radius{syntax: \"<length>\"; inherits: false; initial-value: 6px;}@property --cngx-tab-rejected-accent-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-rejected-outline{syntax: \"*\"; inherits: false; initial-value: none;}@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{--cngx-tab-gap: var(--cngx-space-sm);--cngx-tab-strip-padding: var(--cngx-space-sm) 0;--cngx-tab-padding: var(--cngx-space-sm) var(--cngx-space-sm);--cngx-tab-vertical-gap: var(--cngx-space-md);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);min-block-size:var(--cngx-target-min, 0px);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;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent)}.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{background:var(--cngx-tab-rejected-bg, oklch(.45 .15 25 / .1));border-radius:var(--cngx-tab-rejected-radius, .375rem) var(--cngx-tab-rejected-radius, .375rem) 0 0;box-shadow:inset 0 calc(-1 * var(--cngx-tab-rejected-accent-width, 2px)) 0 0 var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25));outline:var(--cngx-tab-rejected-outline, none);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-rejected-bg, oklch(.45 .15 25 / .1))}}@media(forced-colors:active){.cngx-tabs__tab[aria-selected=true]{box-sizing:border-box;border-bottom:var(--cngx-tab-active-indicator-width, 2px) solid Highlight}.cngx-tabs__tab[aria-disabled=true]{color:GrayText}}\n", "@layer cngx.components{@scope(.cngx-tab-nav){:scope{display:flex;align-items:stretch;gap:var(--cngx-tab-gap);border-bottom:var( --cngx-tab-strip-border, 1px solid var(--cngx-color-border, oklch(.88 .005 250)) );--cngx-tab-gap: var(--cngx-space-sm);--cngx-tab-padding: calc(var(--cngx-space-sm) + 2px) var(--cngx-space-md);--cngx-tab-affordance-gap: var(--cngx-space-xs);--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);padding:var(--cngx-tab-padding);min-block-size:var(--cngx-target-min, 0px);--cngx-tab-focus-offset: -2px;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)}.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)}.cngx-tab-nav__link--error:before{content:var(--cngx-tab-error-glyph, \"!\") / \"\";font-size:var(--cngx-tab-rejection-icon-font-size, .75em);font-weight:700;color:var(--cngx-tab-error-badge-color)}}@scope(.cngx-tab-nav[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 );gap:var(--cngx-tab-pill-gap, .375rem);border-bottom:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--cngx-tab-focus-offset: 1px;background:transparent;border:0;border-radius:var(--cngx-tab-pill-radius, 100px)}.cngx-tab-nav__link:after{display:none}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){background:var(--cngx-tab-pill-hover-bg, oklch(.95 0 0))}.cngx-tab-nav__link--active{background:var(--cngx-tab-active-bg, oklch(.66 .19 50));color:var(--cngx-tab-pill-active-color, oklch(1 0 0))}}@scope(.cngx-tab-nav[data-skin=pill][data-orientation=vertical]){:scope[data-orientation=vertical]{border-inline-end:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);justify-content:center;text-align:center}}@scope(.cngx-tab-nav[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 );gap:var(--cngx-tab-pill-gap, .375rem);border-bottom:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--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)}.cngx-tab-nav__link:after{display:none}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){border-color:var(--cngx-tab-surface-border-color, oklch(.87 0 0))}.cngx-tab-nav__link--active{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))}}@scope(.cngx-tab-nav[data-skin=pill-outline][data-orientation=vertical]){:scope[data-orientation=vertical]{border-inline-end:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);border:var(--cngx-tab-surface-border-width, 1px) solid transparent;justify-content:center;text-align:center}.cngx-tab-nav__link--active{border-color:var(--cngx-tab-pill-outline-color, oklch(.66 .19 50))}}@scope(.cngx-tab-nav[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% );display:inline-flex;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)}.cngx-tab-nav__link{--cngx-tab-padding: var(--cngx-space-sm) calc(var(--cngx-space-md) - 2px);--cngx-tab-focus-offset: 1px;background:transparent;border:0;border-radius:calc(var(--cngx-tab-radius, .5rem) - .125rem)}.cngx-tab-nav__link:after{display:none}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){background:var(--cngx-tab-segmented-hover-bg, oklch(.93 0 0))}.cngx-tab-nav__link--active{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-nav[data-skin=segmented][data-orientation=vertical]){:scope[data-orientation=vertical]{border-inline-end:0;padding:var(--cngx-tab-segmented-track-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: var(--cngx-space-sm) var(--cngx-space-md)}}@scope(.cngx-tab-nav[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));gap:0}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) + 2px) calc(var(--cngx-space-md) + 4px);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-inline-end:calc(-1 * var(--cngx-tab-surface-border-width, 1px))}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){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-tab-nav__link--active{background:var(--cngx-tab-active-bg, oklch(1 0 0));color:var(--cngx-tab-active-color, currentColor);font-weight:var(--cngx-tab-active-font-weight, 600);border-bottom:0;margin-bottom:calc(-1 * var(--cngx-tab-surface-border-width, 1px));z-index:1}.cngx-tab-nav__link:after{top:calc(-1 * var(--cngx-tab-surface-border-width, 1px));bottom:auto;inset-inline:0;block-size:var(--cngx-tab-contained-accent-thickness, 3px);border-radius:0;background:var(--cngx-tab-contained-accent-color, oklch(.66 .19 50));transform:scaleX(0)}.cngx-tab-nav__link--active:after{transform:scaleX(1)}}@scope(.cngx-tab-nav[data-skin=contained][data-orientation=vertical]){.cngx-tab-nav__link{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(-1 * var(--cngx-tab-surface-border-width, 1px))}.cngx-tab-nav__link--active{border-inline-end:0;margin-inline-end:calc(-1 * var(--cngx-tab-surface-border-width, 1px));z-index:1}:scope[data-orientation=vertical] .cngx-tab-nav__link:after{inset-inline-start:calc(-1 * var(--cngx-tab-surface-border-width, 1px));inset-inline-end:auto;inline-size:var(--cngx-tab-contained-accent-thickness, 3px);border-radius:0;background:var(--cngx-tab-contained-accent-color, oklch(.66 .19 50))}}}@media(prefers-reduced-motion:reduce){.cngx-tab-nav__link,.cngx-tab-nav__link:after{transition:none!important}}@media(prefers-color-scheme:dark){.cngx-tab-nav[data-skin=segmented]{--cngx-tab-segmented-active-shadow: 0 1px 3px oklch(0 0 0 / .3)}}\n"], dependencies: [{ kind: "directive", type: CngxLiveRegion, selector: "[cngxLiveRegion]", inputs: ["politeness", "atomic", "relevant"], exportAs: ["cngxLiveRegion"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
616
+ 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" }, providers: [{ provide: CNGX_TAB_NAV_HOST, useValue: true }], 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: true; initial-value: .5rem;}@property --cngx-tab-strip-padding{syntax: \"*\"; inherits: true; initial-value: .5rem 0;}@property --cngx-tab-strip-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-padding{syntax: \"*\"; inherits: true; 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-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: \"*\"; inherits: true;}@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: true; initial-value: 1.15em;}@property --cngx-tab-rejection-icon-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-failed-text-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-rejection-tint{syntax: \"<percentage>\"; inherits: true; initial-value: 18%;}@property --cngx-tab-rejected-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: .6s;}@property --cngx-tab-refused-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-refused-text-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-affordance-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-affordance-target-min{syntax: \"*\"; inherits: true; initial-value: 24px;}@property --cngx-tab-affordance-radius{syntax: \"*\"; inherits: false; initial-value: 9999px;}@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{--cngx-tab-gap: var(--cngx-space-sm);--cngx-tab-strip-padding: var(--cngx-space-sm) 0;--cngx-tab-padding: var(--cngx-space-sm) var(--cngx-space-sm);--cngx-tab-vertical-gap: var(--cngx-space-md);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);min-block-size:var(--cngx-target-min, 0px);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;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent)}.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, 9999px);background:transparent;color:inherit;font:inherit;line-height:1;cursor:pointer}.cngx-tabs__close:before,.cngx-tabs__add:before{content:\"\";position:absolute;inset:calc(-.5*max(0px,max(var(--cngx-tab-affordance-target-min, 24px),var(--cngx-target-min, 0px)) - var(--cngx-tab-affordance-size, 1.25rem)))}.cngx-tabs__close{position:absolute;inset-inline-end:var(--cngx-tab-gap, .5rem);top:50%;transform:translateY(-50%);z-index:1}.cngx-tabs__add{position:relative;width:auto;min-width:var(--cngx-tab-affordance-size, 1.25rem);padding-inline:calc(var(--cngx-tab-gap, .5rem) / 2);margin-inline-start:var(--cngx-tab-gap, .5rem);align-self:center;white-space:nowrap}.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;flex:0 0 auto;color:var(--cngx-tab-error-badge-color, var(--cngx-color-danger, oklch(.6 .18 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;flex:0 0 auto;color:var(--cngx-tab-rejection-icon-color, var(--cngx-color-danger, oklch(.6 .18 25)));margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__rejection-icon[data-reason=refused]{color:var( --cngx-tab-refused-color, color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 70%, var(--cngx-color-text, oklch(.2 .01 250)) ) )}.cngx-tabs__tab.cngx-tab--rejected{--_cngx-tab-rejection-color: var( --cngx-tab-rejection-icon-color, var(--cngx-color-danger, oklch(.6 .18 25)) );background:color-mix(in oklab,var(--_cngx-tab-rejection-color, oklch(.6 .18 25)) var(--cngx-tab-rejection-tint, 18%),transparent)}.cngx-tabs__tab.cngx-tab--rejected[data-reason=refused]{--_cngx-tab-rejection-color: var( --cngx-tab-refused-color, color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 70%, var(--cngx-color-text, oklch(.2 .01 250)) ) )}@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:color-mix(in oklab,var(--_cngx-tab-rejection-color, oklch(.6 .18 25)) calc(var(--cngx-tab-rejection-tint, 18%) * 2),transparent)}}@media(forced-colors:active){.cngx-tabs__tab[aria-selected=true]{box-sizing:border-box;border-bottom:var(--cngx-tab-active-indicator-width, 2px) solid Highlight}.cngx-tabs__tab[aria-disabled=true]{color:GrayText}.cngx-tabs__badge,.cngx-tabs__rejection-icon{color:CanvasText}.cngx-tabs__tab.cngx-tab--rejected:not(:focus-visible){outline:2px solid CanvasText;outline-offset:-2px}}\n", "@layer cngx.components{@scope(.cngx-tab-nav){:scope{display:flex;align-items:stretch;gap:var(--cngx-tab-gap);border-bottom:var( --cngx-tab-strip-border, 1px solid var(--cngx-color-border, oklch(.88 .005 250)) );--cngx-tab-gap: var(--cngx-space-sm);--cngx-tab-padding: calc(var(--cngx-space-sm) + 2px) var(--cngx-space-md);--cngx-tab-affordance-gap: var(--cngx-space-xs);--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);padding:var(--cngx-tab-padding);min-block-size:var(--cngx-target-min, 0px);--cngx-tab-focus-offset: -2px;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 currentColor);outline-offset:var(--cngx-tab-focus-offset)}.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, var( --cngx-color-danger-text, oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .46 c h) ) )}.cngx-tab-link__error-icon{display:inline-flex;flex:none}.cngx-tab-link__icon-svg{--cngx-icon-svg-size: var(--cngx-tab-badge-size, 1.15em);--cngx-icon-svg-stroke-width: 2;display:block}}@scope(.cngx-tab-nav[data-skin=pill]){:scope{--cngx-tab-active-bg: var( --cngx-color-primary-strong, oklch(from var(--cngx-color-primary, oklch(.66 .19 50)) .58 c h) );--cngx-tab-pill-active-color: var(--cngx-color-on-primary-strong, oklch(1 0 0));--cngx-tab-pill-hover-bg: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 8%, transparent );gap:var(--cngx-tab-pill-gap, .375rem);border-bottom:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--cngx-tab-focus-offset: 1px;background:transparent;border:0;border-radius:var(--cngx-tab-pill-radius, 100px)}.cngx-tab-nav__link:after{display:none}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){background:var(--cngx-tab-pill-hover-bg, oklch(.95 0 0))}.cngx-tab-nav__link--active{background:var(--cngx-tab-active-bg, oklch(.66 .19 50));color:var(--cngx-tab-pill-active-color, oklch(1 0 0))}}@scope(.cngx-tab-nav[data-skin=pill][data-orientation=vertical]){:scope[data-orientation=vertical]{border-inline-end:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);justify-content:center;text-align:center}}@scope(.cngx-tab-nav[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 );gap:var(--cngx-tab-pill-gap, .375rem);border-bottom:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--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)}.cngx-tab-nav__link:after{display:none}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){border-color:var(--cngx-tab-surface-border-color, oklch(.87 0 0))}.cngx-tab-nav__link--active{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))}}@scope(.cngx-tab-nav[data-skin=pill-outline][data-orientation=vertical]){:scope[data-orientation=vertical]{border-inline-end:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);border:var(--cngx-tab-surface-border-width, 1px) solid transparent;justify-content:center;text-align:center}.cngx-tab-nav__link--active{border-color:var(--cngx-tab-pill-outline-color, oklch(.66 .19 50))}}@scope(.cngx-tab-nav[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% );display:inline-flex;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)}.cngx-tab-nav__link{--cngx-tab-padding: var(--cngx-space-sm) calc(var(--cngx-space-md) - 2px);--cngx-tab-focus-offset: 1px;background:transparent;border:0;border-radius:calc(var(--cngx-tab-radius, .5rem) - .125rem)}.cngx-tab-nav__link:after{display:none}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){background:var(--cngx-tab-segmented-hover-bg, oklch(.93 0 0))}.cngx-tab-nav__link--active{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-nav[data-skin=segmented][data-orientation=vertical]){:scope[data-orientation=vertical]{border-inline-end:0;padding:var(--cngx-tab-segmented-track-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: var(--cngx-space-sm) var(--cngx-space-md)}}@scope(.cngx-tab-nav[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));gap:0}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) + 2px) calc(var(--cngx-space-md) + 4px);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-inline-end:calc(-1 * var(--cngx-tab-surface-border-width, 1px))}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){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-tab-nav__link--active{background:var(--cngx-tab-active-bg, oklch(1 0 0));color:var(--cngx-tab-active-color, currentColor);font-weight:var(--cngx-tab-active-font-weight, 600);border-bottom:0;margin-bottom:calc(-1 * var(--cngx-tab-surface-border-width, 1px));z-index:1}.cngx-tab-nav__link:after{top:calc(-1 * var(--cngx-tab-surface-border-width, 1px));bottom:auto;inset-inline:0;block-size:var(--cngx-tab-contained-accent-thickness, 3px);border-radius:0;background:var(--cngx-tab-contained-accent-color, oklch(.66 .19 50));transform:scaleX(0)}.cngx-tab-nav__link--active:after{transform:scaleX(1)}}@scope(.cngx-tab-nav[data-skin=contained][data-orientation=vertical]){.cngx-tab-nav__link{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(-1 * var(--cngx-tab-surface-border-width, 1px))}.cngx-tab-nav__link--active{border-inline-end:0;margin-inline-end:calc(-1 * var(--cngx-tab-surface-border-width, 1px));z-index:1}:scope[data-orientation=vertical] .cngx-tab-nav__link:after{inset-inline-start:calc(-1 * var(--cngx-tab-surface-border-width, 1px));inset-inline-end:auto;inline-size:var(--cngx-tab-contained-accent-thickness, 3px);border-radius:0;background:var(--cngx-tab-contained-accent-color, oklch(.66 .19 50))}}}@media(prefers-reduced-motion:reduce){.cngx-tab-nav__link,.cngx-tab-nav__link:after{transition:none!important}}@media(prefers-color-scheme:dark){.cngx-tab-nav[data-skin=segmented]{--cngx-tab-segmented-active-shadow: 0 1px 3px oklch(0 0 0 / .3)}}\n"], dependencies: [{ kind: "directive", type: CngxLiveRegion, selector: "[cngxLiveRegion]", inputs: ["politeness", "atomic", "relevant"], exportAs: ["cngxLiveRegion"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
534
617
  }
535
618
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTabNav, decorators: [{
536
619
  type: Component,
@@ -548,7 +631,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
548
631
  '[attr.aria-orientation]': 'presenter.orientation()',
549
632
  '[attr.aria-label]': 'ariaLabel()',
550
633
  '[attr.aria-labelledby]': 'ariaLabelledBy()',
551
- }, 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: true; initial-value: .5rem;}@property --cngx-tab-strip-padding{syntax: \"*\"; inherits: true; initial-value: .5rem 0;}@property --cngx-tab-strip-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-padding{syntax: \"*\"; inherits: true; 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-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-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25 / .1);}@property --cngx-tab-rejected-radius{syntax: \"<length>\"; inherits: false; initial-value: 6px;}@property --cngx-tab-rejected-accent-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-tab-rejected-outline{syntax: \"*\"; inherits: false; initial-value: none;}@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{--cngx-tab-gap: var(--cngx-space-sm);--cngx-tab-strip-padding: var(--cngx-space-sm) 0;--cngx-tab-padding: var(--cngx-space-sm) var(--cngx-space-sm);--cngx-tab-vertical-gap: var(--cngx-space-md);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);min-block-size:var(--cngx-target-min, 0px);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;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent)}.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{background:var(--cngx-tab-rejected-bg, oklch(.45 .15 25 / .1));border-radius:var(--cngx-tab-rejected-radius, .375rem) var(--cngx-tab-rejected-radius, .375rem) 0 0;box-shadow:inset 0 calc(-1 * var(--cngx-tab-rejected-accent-width, 2px)) 0 0 var(--cngx-tab-rejection-icon-color, oklch(.45 .15 25));outline:var(--cngx-tab-rejected-outline, none);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-rejected-bg, oklch(.45 .15 25 / .1))}}@media(forced-colors:active){.cngx-tabs__tab[aria-selected=true]{box-sizing:border-box;border-bottom:var(--cngx-tab-active-indicator-width, 2px) solid Highlight}.cngx-tabs__tab[aria-disabled=true]{color:GrayText}}\n", "@layer cngx.components{@scope(.cngx-tab-nav){:scope{display:flex;align-items:stretch;gap:var(--cngx-tab-gap);border-bottom:var( --cngx-tab-strip-border, 1px solid var(--cngx-color-border, oklch(.88 .005 250)) );--cngx-tab-gap: var(--cngx-space-sm);--cngx-tab-padding: calc(var(--cngx-space-sm) + 2px) var(--cngx-space-md);--cngx-tab-affordance-gap: var(--cngx-space-xs);--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);padding:var(--cngx-tab-padding);min-block-size:var(--cngx-target-min, 0px);--cngx-tab-focus-offset: -2px;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)}.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)}.cngx-tab-nav__link--error:before{content:var(--cngx-tab-error-glyph, \"!\") / \"\";font-size:var(--cngx-tab-rejection-icon-font-size, .75em);font-weight:700;color:var(--cngx-tab-error-badge-color)}}@scope(.cngx-tab-nav[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 );gap:var(--cngx-tab-pill-gap, .375rem);border-bottom:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--cngx-tab-focus-offset: 1px;background:transparent;border:0;border-radius:var(--cngx-tab-pill-radius, 100px)}.cngx-tab-nav__link:after{display:none}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){background:var(--cngx-tab-pill-hover-bg, oklch(.95 0 0))}.cngx-tab-nav__link--active{background:var(--cngx-tab-active-bg, oklch(.66 .19 50));color:var(--cngx-tab-pill-active-color, oklch(1 0 0))}}@scope(.cngx-tab-nav[data-skin=pill][data-orientation=vertical]){:scope[data-orientation=vertical]{border-inline-end:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);justify-content:center;text-align:center}}@scope(.cngx-tab-nav[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 );gap:var(--cngx-tab-pill-gap, .375rem);border-bottom:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--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)}.cngx-tab-nav__link:after{display:none}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){border-color:var(--cngx-tab-surface-border-color, oklch(.87 0 0))}.cngx-tab-nav__link--active{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))}}@scope(.cngx-tab-nav[data-skin=pill-outline][data-orientation=vertical]){:scope[data-orientation=vertical]{border-inline-end:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);border:var(--cngx-tab-surface-border-width, 1px) solid transparent;justify-content:center;text-align:center}.cngx-tab-nav__link--active{border-color:var(--cngx-tab-pill-outline-color, oklch(.66 .19 50))}}@scope(.cngx-tab-nav[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% );display:inline-flex;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)}.cngx-tab-nav__link{--cngx-tab-padding: var(--cngx-space-sm) calc(var(--cngx-space-md) - 2px);--cngx-tab-focus-offset: 1px;background:transparent;border:0;border-radius:calc(var(--cngx-tab-radius, .5rem) - .125rem)}.cngx-tab-nav__link:after{display:none}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){background:var(--cngx-tab-segmented-hover-bg, oklch(.93 0 0))}.cngx-tab-nav__link--active{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-nav[data-skin=segmented][data-orientation=vertical]){:scope[data-orientation=vertical]{border-inline-end:0;padding:var(--cngx-tab-segmented-track-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: var(--cngx-space-sm) var(--cngx-space-md)}}@scope(.cngx-tab-nav[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));gap:0}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) + 2px) calc(var(--cngx-space-md) + 4px);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-inline-end:calc(-1 * var(--cngx-tab-surface-border-width, 1px))}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){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-tab-nav__link--active{background:var(--cngx-tab-active-bg, oklch(1 0 0));color:var(--cngx-tab-active-color, currentColor);font-weight:var(--cngx-tab-active-font-weight, 600);border-bottom:0;margin-bottom:calc(-1 * var(--cngx-tab-surface-border-width, 1px));z-index:1}.cngx-tab-nav__link:after{top:calc(-1 * var(--cngx-tab-surface-border-width, 1px));bottom:auto;inset-inline:0;block-size:var(--cngx-tab-contained-accent-thickness, 3px);border-radius:0;background:var(--cngx-tab-contained-accent-color, oklch(.66 .19 50));transform:scaleX(0)}.cngx-tab-nav__link--active:after{transform:scaleX(1)}}@scope(.cngx-tab-nav[data-skin=contained][data-orientation=vertical]){.cngx-tab-nav__link{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(-1 * var(--cngx-tab-surface-border-width, 1px))}.cngx-tab-nav__link--active{border-inline-end:0;margin-inline-end:calc(-1 * var(--cngx-tab-surface-border-width, 1px));z-index:1}:scope[data-orientation=vertical] .cngx-tab-nav__link:after{inset-inline-start:calc(-1 * var(--cngx-tab-surface-border-width, 1px));inset-inline-end:auto;inline-size:var(--cngx-tab-contained-accent-thickness, 3px);border-radius:0;background:var(--cngx-tab-contained-accent-color, oklch(.66 .19 50))}}}@media(prefers-reduced-motion:reduce){.cngx-tab-nav__link,.cngx-tab-nav__link:after{transition:none!important}}@media(prefers-color-scheme:dark){.cngx-tab-nav[data-skin=segmented]{--cngx-tab-segmented-active-shadow: 0 1px 3px oklch(0 0 0 / .3)}}\n"] }]
634
+ }, 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: true; initial-value: .5rem;}@property --cngx-tab-strip-padding{syntax: \"*\"; inherits: true; initial-value: .5rem 0;}@property --cngx-tab-strip-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-tab-padding{syntax: \"*\"; inherits: true; 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-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: \"*\"; inherits: true;}@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: true; initial-value: 1.15em;}@property --cngx-tab-rejection-icon-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-failed-text-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-rejection-tint{syntax: \"<percentage>\"; inherits: true; initial-value: 18%;}@property --cngx-tab-rejected-pulse-duration{syntax: \"<time>\"; inherits: false; initial-value: .6s;}@property --cngx-tab-refused-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-refused-text-color{syntax: \"*\"; inherits: true;}@property --cngx-tab-affordance-size{syntax: \"*\"; inherits: false; initial-value: 1.25rem;}@property --cngx-tab-affordance-target-min{syntax: \"*\"; inherits: true; initial-value: 24px;}@property --cngx-tab-affordance-radius{syntax: \"*\"; inherits: false; initial-value: 9999px;}@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{--cngx-tab-gap: var(--cngx-space-sm);--cngx-tab-strip-padding: var(--cngx-space-sm) 0;--cngx-tab-padding: var(--cngx-space-sm) var(--cngx-space-sm);--cngx-tab-vertical-gap: var(--cngx-space-md);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);min-block-size:var(--cngx-target-min, 0px);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;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent)}.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, 9999px);background:transparent;color:inherit;font:inherit;line-height:1;cursor:pointer}.cngx-tabs__close:before,.cngx-tabs__add:before{content:\"\";position:absolute;inset:calc(-.5*max(0px,max(var(--cngx-tab-affordance-target-min, 24px),var(--cngx-target-min, 0px)) - var(--cngx-tab-affordance-size, 1.25rem)))}.cngx-tabs__close{position:absolute;inset-inline-end:var(--cngx-tab-gap, .5rem);top:50%;transform:translateY(-50%);z-index:1}.cngx-tabs__add{position:relative;width:auto;min-width:var(--cngx-tab-affordance-size, 1.25rem);padding-inline:calc(var(--cngx-tab-gap, .5rem) / 2);margin-inline-start:var(--cngx-tab-gap, .5rem);align-self:center;white-space:nowrap}.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;flex:0 0 auto;color:var(--cngx-tab-error-badge-color, var(--cngx-color-danger, oklch(.6 .18 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;flex:0 0 auto;color:var(--cngx-tab-rejection-icon-color, var(--cngx-color-danger, oklch(.6 .18 25)));margin-inline-start:var(--cngx-tab-gap, .5rem)}.cngx-tabs__rejection-icon[data-reason=refused]{color:var( --cngx-tab-refused-color, color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 70%, var(--cngx-color-text, oklch(.2 .01 250)) ) )}.cngx-tabs__tab.cngx-tab--rejected{--_cngx-tab-rejection-color: var( --cngx-tab-rejection-icon-color, var(--cngx-color-danger, oklch(.6 .18 25)) );background:color-mix(in oklab,var(--_cngx-tab-rejection-color, oklch(.6 .18 25)) var(--cngx-tab-rejection-tint, 18%),transparent)}.cngx-tabs__tab.cngx-tab--rejected[data-reason=refused]{--_cngx-tab-rejection-color: var( --cngx-tab-refused-color, color-mix( in oklab, var(--cngx-color-warning, oklch(.72 .15 75)) 70%, var(--cngx-color-text, oklch(.2 .01 250)) ) )}@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:color-mix(in oklab,var(--_cngx-tab-rejection-color, oklch(.6 .18 25)) calc(var(--cngx-tab-rejection-tint, 18%) * 2),transparent)}}@media(forced-colors:active){.cngx-tabs__tab[aria-selected=true]{box-sizing:border-box;border-bottom:var(--cngx-tab-active-indicator-width, 2px) solid Highlight}.cngx-tabs__tab[aria-disabled=true]{color:GrayText}.cngx-tabs__badge,.cngx-tabs__rejection-icon{color:CanvasText}.cngx-tabs__tab.cngx-tab--rejected:not(:focus-visible){outline:2px solid CanvasText;outline-offset:-2px}}\n", "@layer cngx.components{@scope(.cngx-tab-nav){:scope{display:flex;align-items:stretch;gap:var(--cngx-tab-gap);border-bottom:var( --cngx-tab-strip-border, 1px solid var(--cngx-color-border, oklch(.88 .005 250)) );--cngx-tab-gap: var(--cngx-space-sm);--cngx-tab-padding: calc(var(--cngx-space-sm) + 2px) var(--cngx-space-md);--cngx-tab-affordance-gap: var(--cngx-space-xs);--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);padding:var(--cngx-tab-padding);min-block-size:var(--cngx-target-min, 0px);--cngx-tab-focus-offset: -2px;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 currentColor);outline-offset:var(--cngx-tab-focus-offset)}.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, var( --cngx-color-danger-text, oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .46 c h) ) )}.cngx-tab-link__error-icon{display:inline-flex;flex:none}.cngx-tab-link__icon-svg{--cngx-icon-svg-size: var(--cngx-tab-badge-size, 1.15em);--cngx-icon-svg-stroke-width: 2;display:block}}@scope(.cngx-tab-nav[data-skin=pill]){:scope{--cngx-tab-active-bg: var( --cngx-color-primary-strong, oklch(from var(--cngx-color-primary, oklch(.66 .19 50)) .58 c h) );--cngx-tab-pill-active-color: var(--cngx-color-on-primary-strong, oklch(1 0 0));--cngx-tab-pill-hover-bg: color-mix( in oklch, var(--cngx-color-primary, oklch(.66 .19 50)) 8%, transparent );gap:var(--cngx-tab-pill-gap, .375rem);border-bottom:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--cngx-tab-focus-offset: 1px;background:transparent;border:0;border-radius:var(--cngx-tab-pill-radius, 100px)}.cngx-tab-nav__link:after{display:none}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){background:var(--cngx-tab-pill-hover-bg, oklch(.95 0 0))}.cngx-tab-nav__link--active{background:var(--cngx-tab-active-bg, oklch(.66 .19 50));color:var(--cngx-tab-pill-active-color, oklch(1 0 0))}}@scope(.cngx-tab-nav[data-skin=pill][data-orientation=vertical]){:scope[data-orientation=vertical]{border-inline-end:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);justify-content:center;text-align:center}}@scope(.cngx-tab-nav[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 );gap:var(--cngx-tab-pill-gap, .375rem);border-bottom:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) calc(var(--cngx-space-md) - 2px);--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)}.cngx-tab-nav__link:after{display:none}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){border-color:var(--cngx-tab-surface-border-color, oklch(.87 0 0))}.cngx-tab-nav__link--active{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))}}@scope(.cngx-tab-nav[data-skin=pill-outline][data-orientation=vertical]){:scope[data-orientation=vertical]{border-inline-end:0;padding:var(--cngx-tab-pill-strip-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) - 1px) var(--cngx-space-md);border:var(--cngx-tab-surface-border-width, 1px) solid transparent;justify-content:center;text-align:center}.cngx-tab-nav__link--active{border-color:var(--cngx-tab-pill-outline-color, oklch(.66 .19 50))}}@scope(.cngx-tab-nav[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% );display:inline-flex;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)}.cngx-tab-nav__link{--cngx-tab-padding: var(--cngx-space-sm) calc(var(--cngx-space-md) - 2px);--cngx-tab-focus-offset: 1px;background:transparent;border:0;border-radius:calc(var(--cngx-tab-radius, .5rem) - .125rem)}.cngx-tab-nav__link:after{display:none}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){background:var(--cngx-tab-segmented-hover-bg, oklch(.93 0 0))}.cngx-tab-nav__link--active{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-nav[data-skin=segmented][data-orientation=vertical]){:scope[data-orientation=vertical]{border-inline-end:0;padding:var(--cngx-tab-segmented-track-padding, .25rem)}.cngx-tab-nav__link{--cngx-tab-padding: var(--cngx-space-sm) var(--cngx-space-md)}}@scope(.cngx-tab-nav[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));gap:0}.cngx-tab-nav__link{--cngx-tab-padding: calc(var(--cngx-space-sm) + 2px) calc(var(--cngx-space-md) + 4px);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-inline-end:calc(-1 * var(--cngx-tab-surface-border-width, 1px))}.cngx-tab-nav__link:hover:not(.cngx-tab-nav__link--active){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-tab-nav__link--active{background:var(--cngx-tab-active-bg, oklch(1 0 0));color:var(--cngx-tab-active-color, currentColor);font-weight:var(--cngx-tab-active-font-weight, 600);border-bottom:0;margin-bottom:calc(-1 * var(--cngx-tab-surface-border-width, 1px));z-index:1}.cngx-tab-nav__link:after{top:calc(-1 * var(--cngx-tab-surface-border-width, 1px));bottom:auto;inset-inline:0;block-size:var(--cngx-tab-contained-accent-thickness, 3px);border-radius:0;background:var(--cngx-tab-contained-accent-color, oklch(.66 .19 50));transform:scaleX(0)}.cngx-tab-nav__link--active:after{transform:scaleX(1)}}@scope(.cngx-tab-nav[data-skin=contained][data-orientation=vertical]){.cngx-tab-nav__link{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(-1 * var(--cngx-tab-surface-border-width, 1px))}.cngx-tab-nav__link--active{border-inline-end:0;margin-inline-end:calc(-1 * var(--cngx-tab-surface-border-width, 1px));z-index:1}:scope[data-orientation=vertical] .cngx-tab-nav__link:after{inset-inline-start:calc(-1 * var(--cngx-tab-surface-border-width, 1px));inset-inline-end:auto;inline-size:var(--cngx-tab-contained-accent-thickness, 3px);border-radius:0;background:var(--cngx-tab-contained-accent-color, oklch(.66 .19 50))}}}@media(prefers-reduced-motion:reduce){.cngx-tab-nav__link,.cngx-tab-nav__link:after{transition:none!important}}@media(prefers-color-scheme:dark){.cngx-tab-nav[data-skin=segmented]{--cngx-tab-segmented-active-shadow: 0 1px 3px oklch(0 0 0 / .3)}}\n"] }]
552
635
  }], 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 }] }] } });
553
636
 
554
637
  /**
@@ -613,22 +696,21 @@ function mapBoolEqual(a, b) {
613
696
  *
614
697
  * @playground Overflow showcase ./examples/overflow-showcase/overflow-showcase.component.ts
615
698
  *
616
- * @category ui/tabs
617
- * @docsKind primary
618
699
  * @wcag AA
619
700
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-overflow.component.ts
620
- * @since 0.1.0
701
+ * @since 0.3.0
621
702
  * @relatedTo CngxTabGroup, CngxPopover, CngxActiveDescendant
622
703
  * @slot cngxTabOverflowTrigger Replaces the control that opens the overflow menu.
623
704
  * @slot cngxTabOverflowItem Replaces a row in the overflow menu; gets the tab.
624
- * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/8-tabs-in-a-narrow-container</example-url>
625
- * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/all-skins-horizontal</example-url>
626
- * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/all-skins-vertical</example-url>
705
+ * <example-url>/#/ui/tabs/tab-overflow/8-tabs-in-a-narrow-container</example-url>
706
+ * <example-url>/#/ui/tabs/tab-overflow/all-skins-horizontal</example-url>
707
+ * <example-url>/#/ui/tabs/tab-overflow/all-skins-vertical</example-url>
708
+ * @axis level organism
627
709
  */
628
710
  class CngxTabOverflow {
629
711
  // Projected via <ng-content>, so DI walks up to the parent's injector.
630
712
  // `{ host: true }` would scope to the molecule and miss the provider.
631
- panelHost = inject(CNGX_TAB_PANEL_HOST);
713
+ panelHost = injectTabPanelHost();
632
714
  i18n = injectTabsI18n();
633
715
  popover = viewChild.required(CngxPopover);
634
716
  adRef = viewChild.required(CngxActiveDescendant);
@@ -725,11 +807,11 @@ class CngxTabOverflow {
725
807
  return () => cancelAnimationFrame(handle);
726
808
  },
727
809
  onGiveUp: () => {
728
- if (isDevMode()) {
729
- console.warn('[CngxTabOverflow] Strip wrapper not found after 60 attach ' +
810
+ if (typeof ngDevMode !== 'undefined' && ngDevMode) {
811
+ cngxDevWarn('CNGX3012', '[cngx-tab-overflow] strip wrapper not found after 60 attach ' +
730
812
  'attempts; the More popover will not surface clipped tabs. ' +
731
- 'Verify the molecule is projected inside <cngx-tab-group> ' +
732
- 'via its <ng-content> slot.');
813
+ 'Verify the molecule sits inside the tab strip it watches: a direct ' +
814
+ 'child of <cngx-tab-group>, or the one [cngxMatTabs] places in the Material header.');
733
815
  }
734
816
  },
735
817
  });
@@ -852,7 +934,7 @@ class CngxTabOverflow {
852
934
  return this.adapter.resolveStripRoot(this.panelHost, this.hostElement);
853
935
  }
854
936
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTabOverflow, deps: [], target: i0.ɵɵFactoryTarget.Component });
855
- 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 - selecting an item triggers `selectById`,\n not a value commit - 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 {{ templates.itemLabel(tab) }}\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: true; initial-value: .25rem 0;}@property --cngx-tab-overflow-item-padding{syntax: \"*\"; inherits: true; 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{--cngx-tab-overflow-popover-padding: var(--cngx-space-xs) 0;--cngx-tab-overflow-item-padding: var(--cngx-space-sm) var(--cngx-space-sm);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);min-inline-size:var(--cngx-target-min, 0px);min-block-size:var(--cngx-target-min, 0px);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);min-block-size:var(--cngx-target-min, 0px);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;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent)}}}@media(forced-colors:active){.cngx-tab-overflow__item[aria-disabled=true]{color:GrayText}}\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", "windowStart"], outputs: ["activated", "highlighted", "typeaheadMissed"], 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", "closeOnOutsideClick", "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 });
937
+ 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 [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 - selecting an item triggers `selectById`,\n not a value commit - 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 {{ templates.itemLabel(tab) }}\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: true; initial-value: oklch(1 0 0);}@property --cngx-tab-overflow-popover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@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: true; initial-value: .25rem 0;}@property --cngx-tab-overflow-item-padding{syntax: \"*\"; inherits: true; 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;}:root{--cngx-tab-overflow-popover-bg: var(--cngx-color-surface);--cngx-tab-overflow-popover-color: var(--cngx-color-text)}:where(.cngx-tab-overflow__item--active){--cngx-tab-overflow-item-active-bg: var(--cngx-tab-overflow-item-hover-bg)}}@layer cngx.components{@scope(.cngx-tab-overflow){:scope{--cngx-tab-overflow-popover-padding: var(--cngx-space-xs) 0;--cngx-tab-overflow-item-padding: var(--cngx-space-sm) var(--cngx-space-sm);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);min-inline-size:var(--cngx-target-min, 0px);min-block-size:var(--cngx-target-min, 0px);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{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);color:var(--cngx-tab-overflow-popover-color);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);min-block-size:var(--cngx-target-min, 0px);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)}.cngx-tab-overflow__item--active{background:var(--cngx-tab-overflow-item-active-bg);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;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent)}}}@media(forced-colors:active){.cngx-tab-overflow__item[aria-disabled=true]{color:GrayText}}\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", "windowStart", "typeaheadItems", "compareWith"], outputs: ["activated", "highlighted", "typeaheadMissed"], 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", "closeOnOutsideClick", "mode", "cngxPopoverOpen", "exclusive"], outputs: ["opened", "closed"], exportAs: ["cngxPopover"] }, { kind: "directive", type: CngxPopoverTrigger, selector: "[cngxPopoverTrigger]", inputs: ["cngxPopoverTrigger", "haspopup", "controls", "restoreFocus"], exportAs: ["cngxPopoverTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
856
938
  }
857
939
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTabOverflow, decorators: [{
858
940
  type: Component,
@@ -864,11 +946,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
864
946
  CngxPopoverTrigger,
865
947
  ], encapsulation: ViewEncapsulation.None, host: {
866
948
  '[class.cngx-tab-overflow]': 'true',
867
- }, 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 - selecting an item triggers `selectById`,\n not a value commit - 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 {{ templates.itemLabel(tab) }}\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: true; initial-value: .25rem 0;}@property --cngx-tab-overflow-item-padding{syntax: \"*\"; inherits: true; 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{--cngx-tab-overflow-popover-padding: var(--cngx-space-xs) 0;--cngx-tab-overflow-item-padding: var(--cngx-space-sm) var(--cngx-space-sm);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);min-inline-size:var(--cngx-target-min, 0px);min-block-size:var(--cngx-target-min, 0px);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);min-block-size:var(--cngx-target-min, 0px);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;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent)}}}@media(forced-colors:active){.cngx-tab-overflow__item[aria-disabled=true]{color:GrayText}}\n"] }]
949
+ }, 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 [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 - selecting an item triggers `selectById`,\n not a value commit - 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 {{ templates.itemLabel(tab) }}\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: true; initial-value: oklch(1 0 0);}@property --cngx-tab-overflow-popover-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.2 .01 250);}@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: true; initial-value: .25rem 0;}@property --cngx-tab-overflow-item-padding{syntax: \"*\"; inherits: true; 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;}:root{--cngx-tab-overflow-popover-bg: var(--cngx-color-surface);--cngx-tab-overflow-popover-color: var(--cngx-color-text)}:where(.cngx-tab-overflow__item--active){--cngx-tab-overflow-item-active-bg: var(--cngx-tab-overflow-item-hover-bg)}}@layer cngx.components{@scope(.cngx-tab-overflow){:scope{--cngx-tab-overflow-popover-padding: var(--cngx-space-xs) 0;--cngx-tab-overflow-item-padding: var(--cngx-space-sm) var(--cngx-space-sm);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);min-inline-size:var(--cngx-target-min, 0px);min-block-size:var(--cngx-target-min, 0px);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{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);color:var(--cngx-tab-overflow-popover-color);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);min-block-size:var(--cngx-target-min, 0px);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)}.cngx-tab-overflow__item--active{background:var(--cngx-tab-overflow-item-active-bg);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;color:color-mix(in oklab,var(--cngx-color-text, oklch(.2 .01 250)) 38%,transparent)}}}@media(forced-colors:active){.cngx-tab-overflow__item[aria-disabled=true]{color:GrayText}}\n"] }]
868
950
  }], 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 }] }] } });
951
+ /**
952
+ * Inject the {@link CNGX_TAB_PANEL_HOST} of the surrounding tab group for
953
+ * {@link CngxTabOverflow}. Throws a `CngxRuntimeError` with code `CNGX3023`
954
+ * when no tab group is above it, in development and production alike.
955
+ *
956
+ * @internal
957
+ */
958
+ function injectTabPanelHost() {
959
+ const host = inject(CNGX_TAB_PANEL_HOST, { optional: true });
960
+ if (!host) {
961
+ throw new CngxRuntimeError('CNGX3023', typeof ngDevMode !== 'undefined' &&
962
+ ngDevMode &&
963
+ '[cngx-tab-overflow] must be placed inside <cngx-tab-group> or <mat-tab-group cngxMatTabs>.');
964
+ }
965
+ return host;
966
+ }
869
967
 
870
968
  /**
871
- * @module @cngx/ui/tabs
969
+ * @module `@cngx/ui/tabs`
872
970
  */
873
971
 
874
972
  /**