@4sh/ui-kit 0.1.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 (202) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +7 -0
  3. package/README.md +229 -0
  4. package/fesm2022/4sh-ui-kit-forms.mjs +501 -0
  5. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -0
  6. package/fesm2022/4sh-ui-kit-motion.mjs +155 -0
  7. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -0
  8. package/fesm2022/4sh-ui-kit-overlay.mjs +61 -0
  9. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -0
  10. package/fesm2022/4sh-ui-kit-theming.mjs +120 -0
  11. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -0
  12. package/fesm2022/4sh-ui-kit-types.mjs +12 -0
  13. package/fesm2022/4sh-ui-kit-types.mjs.map +1 -0
  14. package/fesm2022/4sh-ui-kit-ui-accordion.mjs +244 -0
  15. package/fesm2022/4sh-ui-kit-ui-accordion.mjs.map +1 -0
  16. package/fesm2022/4sh-ui-kit-ui-alert.mjs +160 -0
  17. package/fesm2022/4sh-ui-kit-ui-alert.mjs.map +1 -0
  18. package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs +926 -0
  19. package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs.map +1 -0
  20. package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs +34 -0
  21. package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs.map +1 -0
  22. package/fesm2022/4sh-ui-kit-ui-avatar.mjs +122 -0
  23. package/fesm2022/4sh-ui-kit-ui-avatar.mjs.map +1 -0
  24. package/fesm2022/4sh-ui-kit-ui-badge.mjs +95 -0
  25. package/fesm2022/4sh-ui-kit-ui-badge.mjs.map +1 -0
  26. package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs +190 -0
  27. package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs.map +1 -0
  28. package/fesm2022/4sh-ui-kit-ui-button-split.mjs +151 -0
  29. package/fesm2022/4sh-ui-kit-ui-button-split.mjs.map +1 -0
  30. package/fesm2022/4sh-ui-kit-ui-button.mjs +222 -0
  31. package/fesm2022/4sh-ui-kit-ui-button.mjs.map +1 -0
  32. package/fesm2022/4sh-ui-kit-ui-card.mjs +164 -0
  33. package/fesm2022/4sh-ui-kit-ui-card.mjs.map +1 -0
  34. package/fesm2022/4sh-ui-kit-ui-checkbox.mjs +118 -0
  35. package/fesm2022/4sh-ui-kit-ui-checkbox.mjs.map +1 -0
  36. package/fesm2022/4sh-ui-kit-ui-chip.mjs +205 -0
  37. package/fesm2022/4sh-ui-kit-ui-chip.mjs.map +1 -0
  38. package/fesm2022/4sh-ui-kit-ui-context-menu.mjs +219 -0
  39. package/fesm2022/4sh-ui-kit-ui-context-menu.mjs.map +1 -0
  40. package/fesm2022/4sh-ui-kit-ui-datepicker.mjs +1508 -0
  41. package/fesm2022/4sh-ui-kit-ui-datepicker.mjs.map +1 -0
  42. package/fesm2022/4sh-ui-kit-ui-drawer.mjs +300 -0
  43. package/fesm2022/4sh-ui-kit-ui-drawer.mjs.map +1 -0
  44. package/fesm2022/4sh-ui-kit-ui-empty-state.mjs +148 -0
  45. package/fesm2022/4sh-ui-kit-ui-empty-state.mjs.map +1 -0
  46. package/fesm2022/4sh-ui-kit-ui-field.mjs +102 -0
  47. package/fesm2022/4sh-ui-kit-ui-field.mjs.map +1 -0
  48. package/fesm2022/4sh-ui-kit-ui-file-upload.mjs +568 -0
  49. package/fesm2022/4sh-ui-kit-ui-file-upload.mjs.map +1 -0
  50. package/fesm2022/4sh-ui-kit-ui-helper.mjs +85 -0
  51. package/fesm2022/4sh-ui-kit-ui-helper.mjs.map +1 -0
  52. package/fesm2022/4sh-ui-kit-ui-icon.mjs +98 -0
  53. package/fesm2022/4sh-ui-kit-ui-icon.mjs.map +1 -0
  54. package/fesm2022/4sh-ui-kit-ui-image.mjs +201 -0
  55. package/fesm2022/4sh-ui-kit-ui-image.mjs.map +1 -0
  56. package/fesm2022/4sh-ui-kit-ui-input-group.mjs +119 -0
  57. package/fesm2022/4sh-ui-kit-ui-input-group.mjs.map +1 -0
  58. package/fesm2022/4sh-ui-kit-ui-input-mask.mjs +125 -0
  59. package/fesm2022/4sh-ui-kit-ui-input-mask.mjs.map +1 -0
  60. package/fesm2022/4sh-ui-kit-ui-input-number.mjs +234 -0
  61. package/fesm2022/4sh-ui-kit-ui-input-number.mjs.map +1 -0
  62. package/fesm2022/4sh-ui-kit-ui-input-otp.mjs +288 -0
  63. package/fesm2022/4sh-ui-kit-ui-input-otp.mjs.map +1 -0
  64. package/fesm2022/4sh-ui-kit-ui-input-tags.mjs +679 -0
  65. package/fesm2022/4sh-ui-kit-ui-input-tags.mjs.map +1 -0
  66. package/fesm2022/4sh-ui-kit-ui-input.mjs +121 -0
  67. package/fesm2022/4sh-ui-kit-ui-input.mjs.map +1 -0
  68. package/fesm2022/4sh-ui-kit-ui-label.mjs +61 -0
  69. package/fesm2022/4sh-ui-kit-ui-label.mjs.map +1 -0
  70. package/fesm2022/4sh-ui-kit-ui-link.mjs +147 -0
  71. package/fesm2022/4sh-ui-kit-ui-link.mjs.map +1 -0
  72. package/fesm2022/4sh-ui-kit-ui-menu.mjs +484 -0
  73. package/fesm2022/4sh-ui-kit-ui-menu.mjs.map +1 -0
  74. package/fesm2022/4sh-ui-kit-ui-modal.mjs +555 -0
  75. package/fesm2022/4sh-ui-kit-ui-modal.mjs.map +1 -0
  76. package/fesm2022/4sh-ui-kit-ui-nudger.mjs +168 -0
  77. package/fesm2022/4sh-ui-kit-ui-nudger.mjs.map +1 -0
  78. package/fesm2022/4sh-ui-kit-ui-paginator.mjs +245 -0
  79. package/fesm2022/4sh-ui-kit-ui-paginator.mjs.map +1 -0
  80. package/fesm2022/4sh-ui-kit-ui-popover.mjs +296 -0
  81. package/fesm2022/4sh-ui-kit-ui-popover.mjs.map +1 -0
  82. package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs +124 -0
  83. package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs.map +1 -0
  84. package/fesm2022/4sh-ui-kit-ui-radio.mjs +92 -0
  85. package/fesm2022/4sh-ui-kit-ui-radio.mjs.map +1 -0
  86. package/fesm2022/4sh-ui-kit-ui-rating.mjs +185 -0
  87. package/fesm2022/4sh-ui-kit-ui-rating.mjs.map +1 -0
  88. package/fesm2022/4sh-ui-kit-ui-read-only.mjs +146 -0
  89. package/fesm2022/4sh-ui-kit-ui-read-only.mjs.map +1 -0
  90. package/fesm2022/4sh-ui-kit-ui-segment-control.mjs +386 -0
  91. package/fesm2022/4sh-ui-kit-ui-segment-control.mjs.map +1 -0
  92. package/fesm2022/4sh-ui-kit-ui-select.mjs +868 -0
  93. package/fesm2022/4sh-ui-kit-ui-select.mjs.map +1 -0
  94. package/fesm2022/4sh-ui-kit-ui-separator.mjs +77 -0
  95. package/fesm2022/4sh-ui-kit-ui-separator.mjs.map +1 -0
  96. package/fesm2022/4sh-ui-kit-ui-sidebar.mjs +577 -0
  97. package/fesm2022/4sh-ui-kit-ui-sidebar.mjs.map +1 -0
  98. package/fesm2022/4sh-ui-kit-ui-skeleton.mjs +81 -0
  99. package/fesm2022/4sh-ui-kit-ui-skeleton.mjs.map +1 -0
  100. package/fesm2022/4sh-ui-kit-ui-slider.mjs +340 -0
  101. package/fesm2022/4sh-ui-kit-ui-slider.mjs.map +1 -0
  102. package/fesm2022/4sh-ui-kit-ui-spinner.mjs +132 -0
  103. package/fesm2022/4sh-ui-kit-ui-spinner.mjs.map +1 -0
  104. package/fesm2022/4sh-ui-kit-ui-stepper.mjs +389 -0
  105. package/fesm2022/4sh-ui-kit-ui-stepper.mjs.map +1 -0
  106. package/fesm2022/4sh-ui-kit-ui-table.mjs +1406 -0
  107. package/fesm2022/4sh-ui-kit-ui-table.mjs.map +1 -0
  108. package/fesm2022/4sh-ui-kit-ui-tabs.mjs +503 -0
  109. package/fesm2022/4sh-ui-kit-ui-tabs.mjs.map +1 -0
  110. package/fesm2022/4sh-ui-kit-ui-tag.mjs +84 -0
  111. package/fesm2022/4sh-ui-kit-ui-tag.mjs.map +1 -0
  112. package/fesm2022/4sh-ui-kit-ui-textarea.mjs +119 -0
  113. package/fesm2022/4sh-ui-kit-ui-textarea.mjs.map +1 -0
  114. package/fesm2022/4sh-ui-kit-ui-toast.mjs +424 -0
  115. package/fesm2022/4sh-ui-kit-ui-toast.mjs.map +1 -0
  116. package/fesm2022/4sh-ui-kit-ui-toggle.mjs +120 -0
  117. package/fesm2022/4sh-ui-kit-ui-toggle.mjs.map +1 -0
  118. package/fesm2022/4sh-ui-kit-ui-tooltip.mjs +445 -0
  119. package/fesm2022/4sh-ui-kit-ui-tooltip.mjs.map +1 -0
  120. package/fesm2022/4sh-ui-kit.mjs +16 -0
  121. package/fesm2022/4sh-ui-kit.mjs.map +1 -0
  122. package/package.json +287 -0
  123. package/styles/base/_base.scss +19 -0
  124. package/styles/base/_motion.scss +144 -0
  125. package/styles/base/_typography.scss +99 -0
  126. package/styles/generated/_tokens-breakpoint.scss +8 -0
  127. package/styles/generated/_tokens-metrics.scss +37 -0
  128. package/styles/generated/_tokens-primitives.scss +284 -0
  129. package/styles/generated/_tokens-responsive.scss +99 -0
  130. package/styles/generated/_tokens-semantics.scss +1274 -0
  131. package/styles/generated/_tokens-styles.scss +35 -0
  132. package/styles/generated/_tokens-transitions.scss +11 -0
  133. package/styles/generated/_tokens-typography.scss +14 -0
  134. package/styles/generated/_tokens.scss +10 -0
  135. package/styles/index.scss +25 -0
  136. package/styles/settings/_ui-config.scss +67 -0
  137. package/styles/utils/_functions.scss +67 -0
  138. package/styles/utils/_helpers.scss +129 -0
  139. package/styles/utils/_mixins.scss +186 -0
  140. package/styles/utils/_motion.scss +47 -0
  141. package/styles/utils/_overlay.scss +26 -0
  142. package/styles/utils.scss +15 -0
  143. package/styles.css +1 -0
  144. package/types/4sh-ui-kit-forms.d.ts +259 -0
  145. package/types/4sh-ui-kit-motion.d.ts +111 -0
  146. package/types/4sh-ui-kit-overlay.d.ts +31 -0
  147. package/types/4sh-ui-kit-theming.d.ts +54 -0
  148. package/types/4sh-ui-kit-types.d.ts +13 -0
  149. package/types/4sh-ui-kit-ui-accordion.d.ts +140 -0
  150. package/types/4sh-ui-kit-ui-alert.d.ts +89 -0
  151. package/types/4sh-ui-kit-ui-autocomplete.d.ts +411 -0
  152. package/types/4sh-ui-kit-ui-avatar-group.d.ts +17 -0
  153. package/types/4sh-ui-kit-ui-avatar.d.ts +55 -0
  154. package/types/4sh-ui-kit-ui-badge.d.ts +38 -0
  155. package/types/4sh-ui-kit-ui-breadcrumb.d.ts +131 -0
  156. package/types/4sh-ui-kit-ui-button-split.d.ts +102 -0
  157. package/types/4sh-ui-kit-ui-button.d.ts +91 -0
  158. package/types/4sh-ui-kit-ui-card.d.ts +102 -0
  159. package/types/4sh-ui-kit-ui-checkbox.d.ts +54 -0
  160. package/types/4sh-ui-kit-ui-chip.d.ts +114 -0
  161. package/types/4sh-ui-kit-ui-context-menu.d.ts +105 -0
  162. package/types/4sh-ui-kit-ui-datepicker.d.ts +539 -0
  163. package/types/4sh-ui-kit-ui-drawer.d.ts +147 -0
  164. package/types/4sh-ui-kit-ui-empty-state.d.ts +93 -0
  165. package/types/4sh-ui-kit-ui-field.d.ts +53 -0
  166. package/types/4sh-ui-kit-ui-file-upload.d.ts +268 -0
  167. package/types/4sh-ui-kit-ui-helper.d.ts +46 -0
  168. package/types/4sh-ui-kit-ui-icon.d.ts +69 -0
  169. package/types/4sh-ui-kit-ui-image.d.ts +88 -0
  170. package/types/4sh-ui-kit-ui-input-group.d.ts +54 -0
  171. package/types/4sh-ui-kit-ui-input-mask.d.ts +63 -0
  172. package/types/4sh-ui-kit-ui-input-number.d.ts +96 -0
  173. package/types/4sh-ui-kit-ui-input-otp.d.ts +130 -0
  174. package/types/4sh-ui-kit-ui-input-tags.d.ts +350 -0
  175. package/types/4sh-ui-kit-ui-input.d.ts +78 -0
  176. package/types/4sh-ui-kit-ui-label.d.ts +36 -0
  177. package/types/4sh-ui-kit-ui-link.d.ts +72 -0
  178. package/types/4sh-ui-kit-ui-menu.d.ts +235 -0
  179. package/types/4sh-ui-kit-ui-modal.d.ts +241 -0
  180. package/types/4sh-ui-kit-ui-nudger.d.ts +79 -0
  181. package/types/4sh-ui-kit-ui-paginator.d.ts +150 -0
  182. package/types/4sh-ui-kit-ui-popover.d.ts +125 -0
  183. package/types/4sh-ui-kit-ui-progress-bar.d.ts +82 -0
  184. package/types/4sh-ui-kit-ui-radio.d.ts +44 -0
  185. package/types/4sh-ui-kit-ui-rating.d.ts +90 -0
  186. package/types/4sh-ui-kit-ui-read-only.d.ts +70 -0
  187. package/types/4sh-ui-kit-ui-segment-control.d.ts +184 -0
  188. package/types/4sh-ui-kit-ui-select.d.ts +392 -0
  189. package/types/4sh-ui-kit-ui-separator.d.ts +43 -0
  190. package/types/4sh-ui-kit-ui-sidebar.d.ts +358 -0
  191. package/types/4sh-ui-kit-ui-skeleton.d.ts +52 -0
  192. package/types/4sh-ui-kit-ui-slider.d.ts +127 -0
  193. package/types/4sh-ui-kit-ui-spinner.d.ts +67 -0
  194. package/types/4sh-ui-kit-ui-stepper.d.ts +220 -0
  195. package/types/4sh-ui-kit-ui-table.d.ts +570 -0
  196. package/types/4sh-ui-kit-ui-tabs.d.ts +225 -0
  197. package/types/4sh-ui-kit-ui-tag.d.ts +46 -0
  198. package/types/4sh-ui-kit-ui-textarea.d.ts +61 -0
  199. package/types/4sh-ui-kit-ui-toast.d.ts +247 -0
  200. package/types/4sh-ui-kit-ui-toggle.d.ts +67 -0
  201. package/types/4sh-ui-kit-ui-tooltip.d.ts +167 -0
  202. package/types/4sh-ui-kit.d.ts +4 -0
@@ -0,0 +1,503 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, booleanAttribute, inject, viewChild, computed, Component, contentChild, signal, effect, DestroyRef, contentChildren, afterNextRender, afterRenderEffect, untracked, model, numberAttribute, output, forwardRef } from '@angular/core';
3
+ import { NgTemplateOutlet } from '@angular/common';
4
+ import { UiIcon } from '@4sh/ui-kit/ui-icon';
5
+
6
+ /** Process-wide counter for unique tab/panel ids (aria wiring). */
7
+ let nextUid = 0;
8
+ /**
9
+ * ui-tab , a single tab button inside a {@link UiTabList}.
10
+ *
11
+ * Renders a real native `<button role="tab">` (the `ui-tab` host is
12
+ * `display: contents`, so the button sits directly inside the `role="tablist"`).
13
+ * Keyboard roving and the active indicator are driven by the list; this element
14
+ * only reports its value/state and activates on click or `selectOnFocus`.
15
+ *
16
+ * Declared before {@link UiTabList} / {@link UiTabs} so their content queries
17
+ * can reference it without a temporal-dead-zone error at class-definition time.
18
+ */
19
+ class UiTab {
20
+ constructor() {
21
+ /** Identifier of this tab (matched against the container `value`). */
22
+ this.value = input.required(/* @ts-ignore */
23
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
24
+ /** Disable the tab (not selectable, skipped by keyboard navigation). */
25
+ this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
26
+ /** Optional leading (or trailing) icon name. */
27
+ this.icon = input(/* @ts-ignore */
28
+ ...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
29
+ /** Icon position relative to the label. */
30
+ this.iconPos = input('left', /* @ts-ignore */
31
+ ...(ngDevMode ? [{ debugName: "iconPos" }] : /* istanbul ignore next */ []));
32
+ /** Accessible name override (falls back to the projected label). */
33
+ this.ariaLabel = input(/* @ts-ignore */
34
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
35
+ /** @ignore Parent container (owns the active state + group options). */
36
+ this.tabs = inject(UiTabs);
37
+ /** @ignore The native tab button (for focus + indicator measurement). */
38
+ this.buttonEl = viewChild.required('tabBtn', /* @ts-ignore */
39
+ ...(ngDevMode ? [{ debugName: "buttonEl" }] : /* istanbul ignore next */ []));
40
+ /** @ignore Whether this tab is the active one. */
41
+ this.active = computed(() => this.tabs.isActive(this.value()), /* @ts-ignore */
42
+ ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
43
+ /** @ignore Roving tabindex: only the group's tab stop is reachable via Tab. */
44
+ this.tabindex = computed(() => this.tabs.tabStopValue() === this.value() ? this.tabs.tabindex() : -1, /* @ts-ignore */
45
+ ...(ngDevMode ? [{ debugName: "tabindex" }] : /* istanbul ignore next */ []));
46
+ }
47
+ /** Move focus to this tab's button. */
48
+ focus(options) {
49
+ this.buttonEl().nativeElement.focus(options);
50
+ }
51
+ /** @ignore */
52
+ onClick(event) {
53
+ if (this.disabled())
54
+ return;
55
+ this.tabs.updateValue(this.value(), event);
56
+ }
57
+ /** @ignore Automatic activation on focus (when the group opts in). */
58
+ onFocus(event) {
59
+ if (this.tabs.selectOnFocus() && !this.disabled()) {
60
+ this.tabs.updateValue(this.value(), event);
61
+ }
62
+ }
63
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiTab, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
64
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiTab, isStandalone: true, selector: "ui-tab", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, iconPos: { classPropertyName: "iconPos", publicName: "iconPos", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class._active": "active()", "class._disabled": "disabled()", "class._icon-right": "iconPos() === 'right'", "class._vertical": "tabs.orientation() === 'vertical'" }, classAttribute: "ui-tab" }, viewQueries: [{ propertyName: "buttonEl", first: true, predicate: ["tabBtn"], descendants: true, isSignal: true }], ngImport: i0, template: `
65
+ <button
66
+ #tabBtn
67
+ type="button"
68
+ role="tab"
69
+ class="ui-tab-button"
70
+ [id]="tabs.tabId(value())"
71
+ [attr.aria-controls]="tabs.panelId(value())"
72
+ [attr.aria-selected]="active()"
73
+ [attr.aria-label]="ariaLabel() || null"
74
+ [disabled]="disabled()"
75
+ [attr.tabindex]="tabindex()"
76
+ (click)="onClick($event)"
77
+ (focus)="onFocus($event)"
78
+ >
79
+ @if (icon(); as name) {
80
+ <ui-icon class="ui-tab-icon" [name]="name" size="default" />
81
+ }
82
+ <span class="ui-tab-label"><ng-content /></span>
83
+ </button>
84
+ `, isInline: true, styles: [":host{display:contents}.ui-tab-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--units-sm);box-sizing:border-box;min-height:2.75rem;margin:0;padding:0 var(--units-default);border:0;background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--size-typography-text-default);line-height:1.2;white-space:nowrap;cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),background-color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-tab-button:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-tab-button:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--units-2xs) var(--global-border-focus)}.ui-tab-button:disabled{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled);cursor:not-allowed}:host._icon-right .ui-tab-button{flex-direction:row-reverse}:host._active .ui-tab-button{background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}:host._vertical .ui-tab-button{width:100%;justify-content:flex-start}:host._vertical._icon-right .ui-tab-button{justify-content:space-between}.ui-tab-icon{line-height:0}.ui-tab-label{min-width:0}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
85
+ }
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiTab, decorators: [{
87
+ type: Component,
88
+ args: [{ selector: 'ui-tab', imports: [UiIcon], template: `
89
+ <button
90
+ #tabBtn
91
+ type="button"
92
+ role="tab"
93
+ class="ui-tab-button"
94
+ [id]="tabs.tabId(value())"
95
+ [attr.aria-controls]="tabs.panelId(value())"
96
+ [attr.aria-selected]="active()"
97
+ [attr.aria-label]="ariaLabel() || null"
98
+ [disabled]="disabled()"
99
+ [attr.tabindex]="tabindex()"
100
+ (click)="onClick($event)"
101
+ (focus)="onFocus($event)"
102
+ >
103
+ @if (icon(); as name) {
104
+ <ui-icon class="ui-tab-icon" [name]="name" size="default" />
105
+ }
106
+ <span class="ui-tab-label"><ng-content /></span>
107
+ </button>
108
+ `, host: {
109
+ class: 'ui-tab',
110
+ '[class._active]': 'active()',
111
+ '[class._disabled]': 'disabled()',
112
+ '[class._icon-right]': "iconPos() === 'right'",
113
+ '[class._vertical]': "tabs.orientation() === 'vertical'",
114
+ }, styles: [":host{display:contents}.ui-tab-button{display:inline-flex;align-items:center;justify-content:center;gap:var(--units-sm);box-sizing:border-box;min-height:2.75rem;margin:0;padding:0 var(--units-default);border:0;background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);font-family:var(--fontfamily-base);font-weight:var(--weight-bold);font-size:var(--size-typography-text-default);line-height:1.2;white-space:nowrap;cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),background-color var(--transition-default) var(--transition-easeinout),box-shadow var(--transition-default) var(--transition-easeinout)}.ui-tab-button:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-tab-button:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--units-2xs) var(--global-border-focus)}.ui-tab-button:disabled{background-color:var(--navigation-high-surface-disabled);color:var(--navigation-high-content-disabled);cursor:not-allowed}:host._icon-right .ui-tab-button{flex-direction:row-reverse}:host._active .ui-tab-button{background-color:var(--navigation-high-surface-active);color:var(--navigation-high-content-active)}:host._vertical .ui-tab-button{width:100%;justify-content:flex-start}:host._vertical._icon-right .ui-tab-button{justify-content:space-between}.ui-tab-icon{line-height:0}.ui-tab-label{min-width:0}\n"] }]
115
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], iconPos: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconPos", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], buttonEl: [{ type: i0.ViewChild, args: ['tabBtn', { isSignal: true }] }] } });
116
+ /**
117
+ * ui-tab-panel , the content region tied to a {@link UiTab} by shared `value`.
118
+ *
119
+ * The panel stays in the DOM but is `hidden` (and skipped by AT) when inactive,
120
+ * so its state is preserved. With `lazy` (per panel or group-wide) the content
121
+ * is rendered only once the panel is first activated; wrap expensive content in
122
+ * a `<ng-template #content>` so it initialises lazily.
123
+ */
124
+ class UiTabPanel {
125
+ constructor() {
126
+ /** Identifier of this panel (matched against the container `value`). */
127
+ this.value = input.required(/* @ts-ignore */
128
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
129
+ /** Render this panel's content only once it is first activated (overrides the group default). */
130
+ this.lazy = input(undefined, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: (v) => (v == null ? undefined : booleanAttribute(v)) });
131
+ /** Optional lazy content template (`<ng-template #content>`). */
132
+ this.content = contentChild('content', /* @ts-ignore */
133
+ ...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
134
+ /** @ignore Parent container (active state + group `lazy` default). */
135
+ this.tabs = inject(UiTabs);
136
+ /** @ignore */
137
+ this.active = computed(() => this.tabs.isActive(this.value()), /* @ts-ignore */
138
+ ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
139
+ /** @ignore Panel-level `lazy` overrides the group default when explicitly set. */
140
+ this.isLazy = computed(() => this.lazy() ?? this.tabs.lazy(), /* @ts-ignore */
141
+ ...(ngDevMode ? [{ debugName: "isLazy" }] : /* istanbul ignore next */ []));
142
+ /** @ignore Sticks once the panel has been activated at least once. */
143
+ this.hasRendered = signal(false, /* @ts-ignore */
144
+ ...(ngDevMode ? [{ debugName: "hasRendered" }] : /* istanbul ignore next */ []));
145
+ /** @ignore Eager panels always render; lazy ones only after first activation. */
146
+ this.shouldRender = computed(() => !this.isLazy() || this.hasRendered() || this.active(), /* @ts-ignore */
147
+ ...(ngDevMode ? [{ debugName: "shouldRender" }] : /* istanbul ignore next */ []));
148
+ effect(() => {
149
+ if (this.active())
150
+ this.hasRendered.set(true);
151
+ });
152
+ }
153
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiTabPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
154
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiTabPanel, isStandalone: true, selector: "ui-tab-panel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tabpanel", "tabindex": "0" }, properties: { "id": "tabs.panelId(value())", "attr.aria-labelledby": "tabs.tabId(value())", "hidden": "!active()", "class._active": "active()", "class._no-motion": "!tabs.motion()" }, classAttribute: "ui-tab-panel" }, queries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
155
+ <ng-template #defaultContent><ng-content /></ng-template>
156
+ @if (shouldRender()) {
157
+ <ng-container [ngTemplateOutlet]="content() ?? defaultContent" />
158
+ }
159
+ `, isInline: true, styles: [":host{display:block;padding:var(--units-default) 0;color:var(--global-text-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);line-height:1.5;outline:none}:host([hidden]){display:none}:host(._active:not(._no-motion)){animation:ui-motion-fade-in var(--transition-default) var(--transition-easeout) both}@media(prefers-reduced-motion:reduce){:host(._active:not(._no-motion)){animation-duration:.01ms}}:root[data-motion=off] :host(._active:not(._no-motion)){animation-duration:.01ms}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
160
+ }
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiTabPanel, decorators: [{
162
+ type: Component,
163
+ args: [{ selector: 'ui-tab-panel', imports: [NgTemplateOutlet], template: `
164
+ <ng-template #defaultContent><ng-content /></ng-template>
165
+ @if (shouldRender()) {
166
+ <ng-container [ngTemplateOutlet]="content() ?? defaultContent" />
167
+ }
168
+ `, host: {
169
+ class: 'ui-tab-panel',
170
+ role: 'tabpanel',
171
+ tabindex: '0',
172
+ '[id]': 'tabs.panelId(value())',
173
+ '[attr.aria-labelledby]': 'tabs.tabId(value())',
174
+ '[hidden]': '!active()',
175
+ '[class._active]': 'active()',
176
+ '[class._no-motion]': '!tabs.motion()',
177
+ }, styles: [":host{display:block;padding:var(--units-default) 0;color:var(--global-text-default);font-family:var(--fontfamily-base);font-size:var(--size-typography-text-default);line-height:1.5;outline:none}:host([hidden]){display:none}:host(._active:not(._no-motion)){animation:ui-motion-fade-in var(--transition-default) var(--transition-easeout) both}@media(prefers-reduced-motion:reduce){:host(._active:not(._no-motion)){animation-duration:.01ms}}:root[data-motion=off] :host(._active:not(._no-motion)){animation-duration:.01ms}\n"] }]
178
+ }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], content: [{ type: i0.ContentChild, args: ['content', { isSignal: true }] }] } });
179
+ /**
180
+ * ui-tab-list , the horizontal (or vertical) strip of {@link UiTab} buttons.
181
+ *
182
+ * Owns the WAI-ARIA `role="tablist"`, the roving-focus keyboard navigation
183
+ * (Arrow keys along the axis, Home/End), the sliding active indicator measured
184
+ * from the active tab, and , when the container is `scrollable` , the prev/next
185
+ * navigators that scroll the overflowing strip.
186
+ */
187
+ class UiTabList {
188
+ constructor() {
189
+ /** Accessible name for the tab list (recommended). */
190
+ this.ariaLabel = input(/* @ts-ignore */
191
+ ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
192
+ /** @ignore Parent container (state + group options). */
193
+ this.tabs = inject(UiTabs);
194
+ /** @ignore */
195
+ this.destroyRef = inject(DestroyRef);
196
+ /** @ignore Tabs projected into this list, in DOM order. */
197
+ this.tabItems = contentChildren(UiTab, /* @ts-ignore */
198
+ ...(ngDevMode ? [{ debugName: "tabItems" }] : /* istanbul ignore next */ []));
199
+ /** @ignore Scroll viewport around the tab strip. */
200
+ this.scrollEl = viewChild.required('scroll', /* @ts-ignore */
201
+ ...(ngDevMode ? [{ debugName: "scrollEl" }] : /* istanbul ignore next */ []));
202
+ /** @ignore The `role="tablist"` inner element (indicator's offset parent). */
203
+ this.innerEl = viewChild.required('inner', /* @ts-ignore */
204
+ ...(ngDevMode ? [{ debugName: "innerEl" }] : /* istanbul ignore next */ []));
205
+ /** @ignore Measured indicator geometry (null when there is no active tab). */
206
+ this.bar = signal(null, /* @ts-ignore */
207
+ ...(ngDevMode ? [{ debugName: "bar" }] : /* istanbul ignore next */ []));
208
+ /** @ignore Bumped by the ResizeObserver / scroll to re-measure. */
209
+ this.resizeTick = signal(0, /* @ts-ignore */
210
+ ...(ngDevMode ? [{ debugName: "resizeTick" }] : /* istanbul ignore next */ []));
211
+ /** @ignore Whether scrolling further back is possible. */
212
+ this.prevEnabled = signal(false, /* @ts-ignore */
213
+ ...(ngDevMode ? [{ debugName: "prevEnabled" }] : /* istanbul ignore next */ []));
214
+ /** @ignore Whether scrolling further forward is possible. */
215
+ this.nextEnabled = signal(false, /* @ts-ignore */
216
+ ...(ngDevMode ? [{ debugName: "nextEnabled" }] : /* istanbul ignore next */ []));
217
+ /** @ignore */
218
+ this.orientation = computed(() => this.tabs.orientation(), /* @ts-ignore */
219
+ ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
220
+ /** @ignore */
221
+ this.scrollable = computed(() => this.tabs.scrollable(), /* @ts-ignore */
222
+ ...(ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []));
223
+ /** @ignore Navigators render only when scrollable AND explicitly enabled. */
224
+ this.showNavigators = computed(() => this.scrollable() && this.tabs.showNavigators(), /* @ts-ignore */
225
+ ...(ngDevMode ? [{ debugName: "showNavigators" }] : /* istanbul ignore next */ []));
226
+ /** @ignore CSS transform positioning the indicator along the main axis. */
227
+ this.barTransform = computed(() => {
228
+ const b = this.bar();
229
+ if (!b)
230
+ return null;
231
+ return this.orientation() === 'horizontal'
232
+ ? `translateX(${b.offset}px)`
233
+ : `translateY(${b.offset}px)`;
234
+ }, /* @ts-ignore */
235
+ ...(ngDevMode ? [{ debugName: "barTransform" }] : /* istanbul ignore next */ []));
236
+ // Re-measure the indicator and the navigator state on any geometry change.
237
+ afterNextRender(() => {
238
+ const ro = new ResizeObserver(() => {
239
+ this.resizeTick.update((v) => v + 1);
240
+ this.updateNavigators();
241
+ });
242
+ ro.observe(this.scrollEl().nativeElement);
243
+ ro.observe(this.innerEl().nativeElement);
244
+ this.updateNavigators();
245
+ this.destroyRef.onDestroy(() => ro.disconnect());
246
+ });
247
+ // Track the active tab with the sliding indicator.
248
+ afterRenderEffect(() => {
249
+ const activeValue = this.tabs.value();
250
+ this.orientation();
251
+ this.resizeTick();
252
+ const items = this.tabItems();
253
+ const item = items.find((t) => t.value() === activeValue && !t.disabled());
254
+ if (!item) {
255
+ this.bar.set(null);
256
+ return;
257
+ }
258
+ const btn = item.buttonEl().nativeElement;
259
+ const horizontal = this.orientation() === 'horizontal';
260
+ const next = horizontal
261
+ ? { offset: btn.offsetLeft, length: btn.offsetWidth }
262
+ : { offset: btn.offsetTop, length: btn.offsetHeight };
263
+ const cur = untracked(this.bar);
264
+ if (!cur || cur.offset !== next.offset || cur.length !== next.length) {
265
+ this.bar.set(next);
266
+ }
267
+ });
268
+ afterRenderEffect(() => {
269
+ const activeValue = this.tabs.value();
270
+ if (!this.scrollable())
271
+ return;
272
+ const item = this.tabItems().find((t) => t.value() === activeValue && !t.disabled());
273
+ if (item)
274
+ this.scrollIntoView(item.buttonEl().nativeElement);
275
+ });
276
+ }
277
+ /** @ignore Roving focus across enabled tabs (WAI-ARIA tabs pattern). */
278
+ onKeydown(event) {
279
+ const horizontal = this.orientation() === 'horizontal';
280
+ const nextKey = horizontal ? 'ArrowRight' : 'ArrowDown';
281
+ const prevKey = horizontal ? 'ArrowLeft' : 'ArrowUp';
282
+ if (![nextKey, prevKey, 'Home', 'End'].includes(event.key))
283
+ return;
284
+ const enabled = this.tabItems().filter((t) => !t.disabled());
285
+ if (!enabled.length)
286
+ return;
287
+ const active = document.activeElement;
288
+ let pos = enabled.findIndex((t) => t.buttonEl().nativeElement === active);
289
+ if (pos === -1)
290
+ return; // focus is not on a tab , let the event through.
291
+ event.preventDefault();
292
+ switch (event.key) {
293
+ case nextKey:
294
+ pos = (pos + 1) % enabled.length;
295
+ break;
296
+ case prevKey:
297
+ pos = (pos - 1 + enabled.length) % enabled.length;
298
+ break;
299
+ case 'Home':
300
+ pos = 0;
301
+ break;
302
+ case 'End':
303
+ pos = enabled.length - 1;
304
+ break;
305
+ }
306
+ const target = enabled[pos];
307
+ target.focus();
308
+ this.scrollIntoView(target.buttonEl().nativeElement);
309
+ }
310
+ /**
311
+ * @ignore Bring the given tab fully inside the scroll viewport, scrolling by
312
+ * the minimum needed along the active axis. Uses the viewport's own metrics
313
+ * (never the page): a tab clipped at either edge slides back into view.
314
+ */
315
+ scrollIntoView(el) {
316
+ if (!this.scrollable())
317
+ return;
318
+ const viewport = this.scrollEl().nativeElement;
319
+ const horizontal = this.orientation() === 'horizontal';
320
+ const start = horizontal ? el.offsetLeft : el.offsetTop;
321
+ const size = horizontal ? el.offsetWidth : el.offsetHeight;
322
+ const viewStart = horizontal ? viewport.scrollLeft : viewport.scrollTop;
323
+ const viewSize = horizontal ? viewport.clientWidth : viewport.clientHeight;
324
+ if (viewSize === 0)
325
+ return; // not laid out yet , a later pass will re-run.
326
+ let target = viewStart;
327
+ if (start < viewStart) {
328
+ target = start; // clipped at the start edge , align to it.
329
+ }
330
+ else if (start + size > viewStart + viewSize) {
331
+ target = start + size - viewSize; // clipped at the end edge , align flush.
332
+ }
333
+ else {
334
+ return; // already fully visible.
335
+ }
336
+ // Plain scrollTo (no `behavior` option) , the animation comes from the
337
+ // container's CSS `scroll-behavior`, which the motion system tunes and
338
+ // reduced-motion disables.
339
+ viewport.scrollTo(horizontal ? { left: target } : { top: target });
340
+ }
341
+ /** @ignore Refresh the prev/next enabled state from the scroll position. */
342
+ updateNavigators() {
343
+ if (!this.scrollable())
344
+ return;
345
+ const el = this.scrollEl().nativeElement;
346
+ if (this.orientation() === 'horizontal') {
347
+ const max = el.scrollWidth - el.clientWidth;
348
+ this.prevEnabled.set(el.scrollLeft > 1);
349
+ this.nextEnabled.set(el.scrollLeft < max - 1);
350
+ }
351
+ else {
352
+ const max = el.scrollHeight - el.clientHeight;
353
+ this.prevEnabled.set(el.scrollTop > 1);
354
+ this.nextEnabled.set(el.scrollTop < max - 1);
355
+ }
356
+ }
357
+ /** @ignore */
358
+ onScroll() {
359
+ this.updateNavigators();
360
+ }
361
+ /**
362
+ * @ignore Scroll the strip by roughly one viewport in the given direction.
363
+ * Smoothness comes from the container's CSS `scroll-behavior` (motion-aware),
364
+ * not the JS `behavior` option.
365
+ */
366
+ scrollBy(direction) {
367
+ const el = this.scrollEl().nativeElement;
368
+ if (this.orientation() === 'horizontal') {
369
+ el.scrollBy({ left: direction * el.clientWidth * 0.8 });
370
+ }
371
+ else {
372
+ el.scrollBy({ top: direction * el.clientHeight * 0.8 });
373
+ }
374
+ }
375
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiTabList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
376
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: UiTabList, isStandalone: true, selector: "ui-tab-list", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "keydown": "onKeydown($event)" }, properties: { "class._vertical": "orientation() === 'vertical'", "class._scrollable": "scrollable()", "class._no-motion": "!tabs.motion()" }, classAttribute: "ui-tab-list" }, queries: [{ propertyName: "tabItems", predicate: UiTab, isSignal: true }], viewQueries: [{ propertyName: "scrollEl", first: true, predicate: ["scroll"], descendants: true, isSignal: true }, { propertyName: "innerEl", first: true, predicate: ["inner"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (showNavigators()) {\n <button\n type=\"button\"\n class=\"ui-tab-list-nav _prev\"\n aria-label=\"D\u00E9filer vers les onglets pr\u00E9c\u00E9dents\"\n tabindex=\"-1\"\n [disabled]=\"!prevEnabled()\"\n (click)=\"scrollBy(-1)\"\n >\n <ui-icon [name]=\"orientation() === 'vertical' ? 'chevron-up' : 'chevron-left'\" size=\"sm\" />\n </button>\n}\n\n<div #scroll class=\"ui-tab-list-scroll\" (scroll)=\"onScroll()\">\n <div\n #inner\n class=\"ui-tab-list-tabs\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-orientation]=\"orientation()\"\n >\n <ng-content />\n\n <span\n class=\"ui-tab-list-active-bar\"\n aria-hidden=\"true\"\n [class._hidden]=\"!bar()\"\n [style.transform]=\"barTransform()\"\n [style.width.px]=\"orientation() === 'horizontal' ? bar()?.length : null\"\n [style.height.px]=\"orientation() === 'vertical' ? bar()?.length : null\"\n ></span>\n </div>\n</div>\n\n@if (showNavigators()) {\n <button\n type=\"button\"\n class=\"ui-tab-list-nav _next\"\n aria-label=\"D\u00E9filer vers les onglets suivants\"\n tabindex=\"-1\"\n [disabled]=\"!nextEnabled()\"\n (click)=\"scrollBy(1)\"\n >\n <ui-icon [name]=\"orientation() === 'vertical' ? 'chevron-down' : 'chevron-right'\" size=\"sm\" />\n </button>\n}\n", styles: [":host{display:flex;flex-direction:row;align-items:stretch;position:relative;min-width:0;box-shadow:inset 0 calc(-1 * var(--stroke-sm)) 0 0 var(--global-border-default)}.ui-tab-list-scroll{flex:1 1 auto;min-width:0;overflow:hidden}:host._scrollable .ui-tab-list-scroll{overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none}:host._scrollable .ui-tab-list-scroll::-webkit-scrollbar{display:none}@media(prefers-reduced-motion:reduce){:host._scrollable .ui-tab-list-scroll{scroll-behavior:auto}}:root[data-motion=off] :host._scrollable .ui-tab-list-scroll{scroll-behavior:auto}:host._no-motion .ui-tab-list-scroll{scroll-behavior:auto}.ui-tab-list-tabs{position:relative;display:flex;flex-direction:row;align-items:stretch;width:max-content;min-width:100%}.ui-tab-list-active-bar{position:absolute;bottom:0;left:0;height:var(--ui-tabs-active-bar-size, var(--stroke-default));border-radius:var(--radius-full);background-color:var(--ui-tabs-active-bar-color, var(--navigation-high-stroke-active));pointer-events:none;will-change:transform,width;transition:transform var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),width var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),height var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-tab-list-active-bar._hidden{opacity:0}@media(prefers-reduced-motion:reduce){.ui-tab-list-active-bar{transition:none}}:root[data-motion=off] .ui-tab-list-active-bar{transition:none}:host._no-motion .ui-tab-list-active-bar{transition:none}.ui-tab-list-nav{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:2.5rem;align-self:stretch;border:0;background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),background-color var(--transition-default) var(--transition-easeinout)}.ui-tab-list-nav:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-tab-list-nav:disabled{color:var(--navigation-high-content-disabled);cursor:default}:host._vertical{flex-direction:column;align-items:stretch;box-shadow:inset calc(-1 * var(--stroke-sm)) 0 0 0 var(--global-border-default)}:host._vertical .ui-tab-list-tabs{flex-direction:column;width:100%}:host._vertical._scrollable .ui-tab-list-scroll{overflow-x:hidden;overflow-y:auto}:host._vertical .ui-tab-list-active-bar{inset:0 0 auto auto;width:var(--ui-tabs-active-bar-size, var(--stroke-default));height:auto}:host._vertical .ui-tab-list-nav{width:auto;height:2.5rem;align-self:auto}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
377
+ }
378
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiTabList, decorators: [{
379
+ type: Component,
380
+ args: [{ selector: 'ui-tab-list', imports: [UiIcon], host: {
381
+ class: 'ui-tab-list',
382
+ '[class._vertical]': "orientation() === 'vertical'",
383
+ '[class._scrollable]': 'scrollable()',
384
+ '[class._no-motion]': '!tabs.motion()',
385
+ '(keydown)': 'onKeydown($event)',
386
+ }, template: "@if (showNavigators()) {\n <button\n type=\"button\"\n class=\"ui-tab-list-nav _prev\"\n aria-label=\"D\u00E9filer vers les onglets pr\u00E9c\u00E9dents\"\n tabindex=\"-1\"\n [disabled]=\"!prevEnabled()\"\n (click)=\"scrollBy(-1)\"\n >\n <ui-icon [name]=\"orientation() === 'vertical' ? 'chevron-up' : 'chevron-left'\" size=\"sm\" />\n </button>\n}\n\n<div #scroll class=\"ui-tab-list-scroll\" (scroll)=\"onScroll()\">\n <div\n #inner\n class=\"ui-tab-list-tabs\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-orientation]=\"orientation()\"\n >\n <ng-content />\n\n <span\n class=\"ui-tab-list-active-bar\"\n aria-hidden=\"true\"\n [class._hidden]=\"!bar()\"\n [style.transform]=\"barTransform()\"\n [style.width.px]=\"orientation() === 'horizontal' ? bar()?.length : null\"\n [style.height.px]=\"orientation() === 'vertical' ? bar()?.length : null\"\n ></span>\n </div>\n</div>\n\n@if (showNavigators()) {\n <button\n type=\"button\"\n class=\"ui-tab-list-nav _next\"\n aria-label=\"D\u00E9filer vers les onglets suivants\"\n tabindex=\"-1\"\n [disabled]=\"!nextEnabled()\"\n (click)=\"scrollBy(1)\"\n >\n <ui-icon [name]=\"orientation() === 'vertical' ? 'chevron-down' : 'chevron-right'\" size=\"sm\" />\n </button>\n}\n", styles: [":host{display:flex;flex-direction:row;align-items:stretch;position:relative;min-width:0;box-shadow:inset 0 calc(-1 * var(--stroke-sm)) 0 0 var(--global-border-default)}.ui-tab-list-scroll{flex:1 1 auto;min-width:0;overflow:hidden}:host._scrollable .ui-tab-list-scroll{overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none}:host._scrollable .ui-tab-list-scroll::-webkit-scrollbar{display:none}@media(prefers-reduced-motion:reduce){:host._scrollable .ui-tab-list-scroll{scroll-behavior:auto}}:root[data-motion=off] :host._scrollable .ui-tab-list-scroll{scroll-behavior:auto}:host._no-motion .ui-tab-list-scroll{scroll-behavior:auto}.ui-tab-list-tabs{position:relative;display:flex;flex-direction:row;align-items:stretch;width:max-content;min-width:100%}.ui-tab-list-active-bar{position:absolute;bottom:0;left:0;height:var(--ui-tabs-active-bar-size, var(--stroke-default));border-radius:var(--radius-full);background-color:var(--ui-tabs-active-bar-color, var(--navigation-high-stroke-active));pointer-events:none;will-change:transform,width;transition:transform var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),width var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms),height var(--ui-motion-duration, var(--transition-default)) var(--ui-motion-easing, var(--transition-easeinout)) var(--ui-motion-delay, 0ms)}.ui-tab-list-active-bar._hidden{opacity:0}@media(prefers-reduced-motion:reduce){.ui-tab-list-active-bar{transition:none}}:root[data-motion=off] .ui-tab-list-active-bar{transition:none}:host._no-motion .ui-tab-list-active-bar{transition:none}.ui-tab-list-nav{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:2.5rem;align-self:stretch;border:0;background-color:var(--navigation-high-surface-default);color:var(--navigation-high-content-default);cursor:pointer;transition:color var(--transition-default) var(--transition-easeinout),background-color var(--transition-default) var(--transition-easeinout)}.ui-tab-list-nav:hover:not(:disabled){background-color:var(--navigation-high-surface-hover);color:var(--navigation-high-content-hover)}.ui-tab-list-nav:disabled{color:var(--navigation-high-content-disabled);cursor:default}:host._vertical{flex-direction:column;align-items:stretch;box-shadow:inset calc(-1 * var(--stroke-sm)) 0 0 0 var(--global-border-default)}:host._vertical .ui-tab-list-tabs{flex-direction:column;width:100%}:host._vertical._scrollable .ui-tab-list-scroll{overflow-x:hidden;overflow-y:auto}:host._vertical .ui-tab-list-active-bar{inset:0 0 auto auto;width:var(--ui-tabs-active-bar-size, var(--stroke-default));height:auto}:host._vertical .ui-tab-list-nav{width:auto;height:2.5rem;align-self:auto}\n"] }]
387
+ }], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], tabItems: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => UiTab), { isSignal: true }] }], scrollEl: [{ type: i0.ViewChild, args: ['scroll', { isSignal: true }] }], innerEl: [{ type: i0.ViewChild, args: ['inner', { isSignal: true }] }] } });
388
+ /**
389
+ * ui-tab-panels , thin wrapper grouping the {@link UiTabPanel}s. Fills the
390
+ * remaining space beside/under the tab list.
391
+ */
392
+ class UiTabPanels {
393
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiTabPanels, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
394
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: UiTabPanels, isStandalone: true, selector: "ui-tab-panels", host: { classAttribute: "ui-tab-panels" }, ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:block;flex:1 1 auto;min-width:0}\n"] }); }
395
+ }
396
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiTabPanels, decorators: [{
397
+ type: Component,
398
+ args: [{ selector: 'ui-tab-panels', template: '<ng-content />', host: { class: 'ui-tab-panels' }, styles: [":host{display:block;flex:1 1 auto;min-width:0}\n"] }]
399
+ }] });
400
+ /**
401
+ * ui-tabs , headless container orchestrating a set of tabs and their panels.
402
+ *
403
+ * Composition API: a root `ui-tabs` owns the shared state (`value` two-way
404
+ * model, `orientation`, `scrollable`, `lazy`, `selectOnFocus`, `motion`), a
405
+ * `ui-tab-list` renders the strip of `ui-tab` buttons (plus the sliding active
406
+ * indicator and, when scrollable, the prev/next navigators), and a
407
+ * `ui-tab-panels` holds one `ui-tab-panel` per tab. Every colour/metric comes
408
+ * from the `navigation.*` design tokens; the active indicator glides , and each
409
+ * panel fades in , via the shared motion system (reduced-motion aware).
410
+ *
411
+ * @example
412
+ * ```html
413
+ * <ui-tabs [(value)]="active">
414
+ * <ui-tab-list ariaLabel="Sections">
415
+ * <ui-tab [value]="0">Onglet 1</ui-tab>
416
+ * <ui-tab [value]="1">Onglet 2</ui-tab>
417
+ * </ui-tab-list>
418
+ * <ui-tab-panels>
419
+ * <ui-tab-panel [value]="0">Contenu 1…</ui-tab-panel>
420
+ * <ui-tab-panel [value]="1">Contenu 2…</ui-tab-panel>
421
+ * </ui-tab-panels>
422
+ * </ui-tabs>
423
+ * ```
424
+ */
425
+ class UiTabs {
426
+ constructor() {
427
+ /** Value of the active tab (two-way). `undefined` = no active tab. */
428
+ this.value = model(undefined, /* @ts-ignore */
429
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
430
+ /** Layout axis: `horizontal` (list on top) or `vertical` (list on the side). */
431
+ this.orientation = input('horizontal', /* @ts-ignore */
432
+ ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
433
+ /** Enable overflow scrolling of the tab list with prev/next navigators. */
434
+ this.scrollable = input(false, { ...(ngDevMode ? { debugName: "scrollable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
435
+ /** Group default: render an inactive tab's panel only once it is first activated. */
436
+ this.lazy = input(false, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
437
+ /** Activate a tab as soon as it receives keyboard focus (automatic activation). */
438
+ this.selectOnFocus = input(false, { ...(ngDevMode ? { debugName: "selectOnFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
439
+ /** Show the prev/next navigators when `scrollable` (they still gate on overflow). */
440
+ this.showNavigators = input(true, { ...(ngDevMode ? { debugName: "showNavigators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
441
+ /** Animate the active indicator and panel transitions (reduced-motion always wins). */
442
+ this.motion = input(true, { ...(ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
443
+ /** Tabindex applied to the active tab (the group's single tab stop). */
444
+ this.tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
445
+ /** Fired whenever the active tab changes (user click / keyboard / focus). */
446
+ this.tabChange = output();
447
+ /** @ignore Unique id root for aria wiring between tabs and panels. */
448
+ this.id = `ui-tabs-${nextUid++}`;
449
+ /** @ignore All tabs projected under this container (across the list boundary). */
450
+ this.tabs = contentChildren(forwardRef(() => UiTab), { ...(ngDevMode ? { debugName: "tabs" } : /* istanbul ignore next */ {}), descendants: true });
451
+ /**
452
+ * @ignore Value that owns the group's single tab stop (roving tabindex):
453
+ * the active tab, or the first enabled tab when none is active.
454
+ */
455
+ this.tabStopValue = computed(() => {
456
+ const enabled = this.tabs().filter((t) => !t.disabled());
457
+ if (!enabled.length)
458
+ return undefined;
459
+ const active = enabled.find((t) => t.value() === this.value());
460
+ return (active ?? enabled[0]).value();
461
+ }, /* @ts-ignore */
462
+ ...(ngDevMode ? [{ debugName: "tabStopValue" }] : /* istanbul ignore next */ []));
463
+ }
464
+ /** @ignore id of the tab button for a given value. */
465
+ tabId(value) {
466
+ return `${this.id}-tab-${value}`;
467
+ }
468
+ /** @ignore id of the panel for a given value. */
469
+ panelId(value) {
470
+ return `${this.id}-panel-${value}`;
471
+ }
472
+ /** @ignore Whether the given value is the active tab. */
473
+ isActive(value) {
474
+ return this.value() === value;
475
+ }
476
+ /** @ignore Activate a tab (no-op if already active); emits `tabChange`. */
477
+ updateValue(value, event) {
478
+ if (this.value() === value)
479
+ return;
480
+ this.value.set(value);
481
+ this.tabChange.emit({ value, originalEvent: event });
482
+ }
483
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiTabs, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
484
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: UiTabs, isStandalone: true, selector: "ui-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, showNavigators: { classPropertyName: "showNavigators", publicName: "showNavigators", isSignal: true, isRequired: false, transformFunction: null }, motion: { classPropertyName: "motion", publicName: "motion", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", tabChange: "tabChange" }, host: { properties: { "class._vertical": "orientation() === 'vertical'" }, classAttribute: "ui-tabs" }, queries: [{ propertyName: "tabs", predicate: i0.forwardRef(() => UiTab), descendants: true, isSignal: true }], ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:flex;flex-direction:column;width:100%}:host(._vertical){flex-direction:row;align-items:flex-start}\n"] }); }
485
+ }
486
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: UiTabs, decorators: [{
487
+ type: Component,
488
+ args: [{ selector: 'ui-tabs', template: '<ng-content />', host: {
489
+ class: 'ui-tabs',
490
+ '[class._vertical]': "orientation() === 'vertical'",
491
+ }, styles: [":host{display:flex;flex-direction:column;width:100%}:host(._vertical){flex-direction:row;align-items:flex-start}\n"] }]
492
+ }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], showNavigators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showNavigators", required: false }] }], motion: [{ type: i0.Input, args: [{ isSignal: true, alias: "motion", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], tabChange: [{ type: i0.Output, args: ["tabChange"] }], tabs: [{ type: i0.ContentChildren, args: [forwardRef(() => UiTab), { ...{ descendants: true }, isSignal: true }] }] } });
493
+
494
+ /*
495
+ * Public API Surface of ui-kit/ui-tabs
496
+ */
497
+
498
+ /**
499
+ * Generated bundle index. Do not edit.
500
+ */
501
+
502
+ export { UiTab, UiTabList, UiTabPanel, UiTabPanels, UiTabs };
503
+ //# sourceMappingURL=4sh-ui-kit-ui-tabs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4sh-ui-kit-ui-tabs.mjs","sources":["../../../projects/ui-kit/ui-tabs/src/lib/ui-tabs.ts","../../../projects/ui-kit/ui-tabs/src/lib/ui-tab-list.html","../../../projects/ui-kit/ui-tabs/src/public-api.ts","../../../projects/ui-kit/ui-tabs/src/4sh-ui-kit-ui-tabs.ts"],"sourcesContent":["import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n Component,\n computed,\n contentChild,\n contentChildren,\n DestroyRef,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { UiIcon } from '@4sh/ui-kit/ui-icon';\n\n/** Identifier of a tab / panel pair (matched against the container `value`). */\nexport type UiTabValue = string | number;\n/** Layout axis of the tab list. */\nexport type UiTabsOrientation = 'horizontal' | 'vertical';\n/** Position of a tab's icon relative to its label. */\nexport type UiTabIconPos = 'left' | 'right';\n\n/** Payload emitted when the active tab changes. */\nexport interface UiTabsChangeEvent {\n /** Value of the tab that became active. */\n value: UiTabValue;\n /** Originating DOM event (click / keyboard / focus). */\n originalEvent: Event;\n}\n\n/** @ignore Measured geometry of the active-tab indicator bar. */\ninterface ActiveBarMetrics {\n /** Offset along the main axis (px) from the tab list origin. */\n offset: number;\n /** Length along the main axis (px): tab width (horizontal) or height (vertical). */\n length: number;\n}\n\n/** Process-wide counter for unique tab/panel ids (aria wiring). */\nlet nextUid = 0;\n\n/**\n * ui-tab , a single tab button inside a {@link UiTabList}.\n *\n * Renders a real native `<button role=\"tab\">` (the `ui-tab` host is\n * `display: contents`, so the button sits directly inside the `role=\"tablist\"`).\n * Keyboard roving and the active indicator are driven by the list; this element\n * only reports its value/state and activates on click or `selectOnFocus`.\n *\n * Declared before {@link UiTabList} / {@link UiTabs} so their content queries\n * can reference it without a temporal-dead-zone error at class-definition time.\n */\n@Component({\n selector: 'ui-tab',\n imports: [UiIcon],\n template: `\n <button\n #tabBtn\n type=\"button\"\n role=\"tab\"\n class=\"ui-tab-button\"\n [id]=\"tabs.tabId(value())\"\n [attr.aria-controls]=\"tabs.panelId(value())\"\n [attr.aria-selected]=\"active()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [disabled]=\"disabled()\"\n [attr.tabindex]=\"tabindex()\"\n (click)=\"onClick($event)\"\n (focus)=\"onFocus($event)\"\n >\n @if (icon(); as name) {\n <ui-icon class=\"ui-tab-icon\" [name]=\"name\" size=\"default\" />\n }\n <span class=\"ui-tab-label\"><ng-content /></span>\n </button>\n `,\n styleUrl: './ui-tab.scss',\n host: {\n class: 'ui-tab',\n '[class._active]': 'active()',\n '[class._disabled]': 'disabled()',\n '[class._icon-right]': \"iconPos() === 'right'\",\n '[class._vertical]': \"tabs.orientation() === 'vertical'\",\n },\n})\nexport class UiTab {\n /** Identifier of this tab (matched against the container `value`). */\n value = input.required<UiTabValue>();\n /** Disable the tab (not selectable, skipped by keyboard navigation). */\n disabled = input(false, { transform: booleanAttribute });\n /** Optional leading (or trailing) icon name. */\n icon = input<string>();\n /** Icon position relative to the label. */\n iconPos = input<UiTabIconPos>('left');\n /** Accessible name override (falls back to the projected label). */\n ariaLabel = input<string>();\n\n /** @ignore Parent container (owns the active state + group options). */\n protected readonly tabs = inject(UiTabs);\n\n /** @ignore The native tab button (for focus + indicator measurement). */\n readonly buttonEl = viewChild.required<ElementRef<HTMLButtonElement>>('tabBtn');\n\n /** @ignore Whether this tab is the active one. */\n readonly active = computed(() => this.tabs.isActive(this.value()));\n\n /** @ignore Roving tabindex: only the group's tab stop is reachable via Tab. */\n protected readonly tabindex = computed(() =>\n this.tabs.tabStopValue() === this.value() ? this.tabs.tabindex() : -1,\n );\n\n /** Move focus to this tab's button. */\n focus(options?: FocusOptions): void {\n this.buttonEl().nativeElement.focus(options);\n }\n\n /** @ignore */\n protected onClick(event: MouseEvent): void {\n if (this.disabled()) return;\n this.tabs.updateValue(this.value(), event);\n }\n\n /** @ignore Automatic activation on focus (when the group opts in). */\n protected onFocus(event: FocusEvent): void {\n if (this.tabs.selectOnFocus() && !this.disabled()) {\n this.tabs.updateValue(this.value(), event);\n }\n }\n}\n\n/**\n * ui-tab-panel , the content region tied to a {@link UiTab} by shared `value`.\n *\n * The panel stays in the DOM but is `hidden` (and skipped by AT) when inactive,\n * so its state is preserved. With `lazy` (per panel or group-wide) the content\n * is rendered only once the panel is first activated; wrap expensive content in\n * a `<ng-template #content>` so it initialises lazily.\n */\n@Component({\n selector: 'ui-tab-panel',\n imports: [NgTemplateOutlet],\n template: `\n <ng-template #defaultContent><ng-content /></ng-template>\n @if (shouldRender()) {\n <ng-container [ngTemplateOutlet]=\"content() ?? defaultContent\" />\n }\n `,\n styleUrl: './ui-tab-panel.scss',\n host: {\n class: 'ui-tab-panel',\n role: 'tabpanel',\n tabindex: '0',\n '[id]': 'tabs.panelId(value())',\n '[attr.aria-labelledby]': 'tabs.tabId(value())',\n '[hidden]': '!active()',\n '[class._active]': 'active()',\n '[class._no-motion]': '!tabs.motion()',\n },\n})\nexport class UiTabPanel {\n /** Identifier of this panel (matched against the container `value`). */\n value = input.required<UiTabValue>();\n /** Render this panel's content only once it is first activated (overrides the group default). */\n lazy = input<boolean, unknown>(undefined, { transform: (v) => (v == null ? undefined : booleanAttribute(v)) });\n\n /** Optional lazy content template (`<ng-template #content>`). */\n protected readonly content = contentChild<TemplateRef<unknown>>('content');\n\n /** @ignore Parent container (active state + group `lazy` default). */\n protected readonly tabs = inject(UiTabs);\n\n /** @ignore */\n protected readonly active = computed(() => this.tabs.isActive(this.value()));\n /** @ignore Panel-level `lazy` overrides the group default when explicitly set. */\n private readonly isLazy = computed(() => this.lazy() ?? this.tabs.lazy());\n /** @ignore Sticks once the panel has been activated at least once. */\n private readonly hasRendered = signal(false);\n\n constructor() {\n effect(() => {\n if (this.active()) this.hasRendered.set(true);\n });\n }\n\n /** @ignore Eager panels always render; lazy ones only after first activation. */\n protected readonly shouldRender = computed(\n () => !this.isLazy() || this.hasRendered() || this.active(),\n );\n}\n\n/**\n * ui-tab-list , the horizontal (or vertical) strip of {@link UiTab} buttons.\n *\n * Owns the WAI-ARIA `role=\"tablist\"`, the roving-focus keyboard navigation\n * (Arrow keys along the axis, Home/End), the sliding active indicator measured\n * from the active tab, and , when the container is `scrollable` , the prev/next\n * navigators that scroll the overflowing strip.\n */\n@Component({\n selector: 'ui-tab-list',\n imports: [UiIcon],\n templateUrl: './ui-tab-list.html',\n styleUrl: './ui-tab-list.scss',\n host: {\n class: 'ui-tab-list',\n '[class._vertical]': \"orientation() === 'vertical'\",\n '[class._scrollable]': 'scrollable()',\n '[class._no-motion]': '!tabs.motion()',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class UiTabList {\n /** Accessible name for the tab list (recommended). */\n ariaLabel = input<string>();\n\n /** @ignore Parent container (state + group options). */\n protected readonly tabs = inject(UiTabs);\n /** @ignore */\n private readonly destroyRef = inject(DestroyRef);\n\n /** @ignore Tabs projected into this list, in DOM order. */\n private readonly tabItems = contentChildren(UiTab);\n /** @ignore Scroll viewport around the tab strip. */\n private readonly scrollEl = viewChild.required<ElementRef<HTMLElement>>('scroll');\n /** @ignore The `role=\"tablist\"` inner element (indicator's offset parent). */\n private readonly innerEl = viewChild.required<ElementRef<HTMLElement>>('inner');\n\n /** @ignore Measured indicator geometry (null when there is no active tab). */\n protected readonly bar = signal<ActiveBarMetrics | null>(null);\n /** @ignore Bumped by the ResizeObserver / scroll to re-measure. */\n private readonly resizeTick = signal(0);\n /** @ignore Whether scrolling further back is possible. */\n protected readonly prevEnabled = signal(false);\n /** @ignore Whether scrolling further forward is possible. */\n protected readonly nextEnabled = signal(false);\n\n /** @ignore */\n protected readonly orientation = computed(() => this.tabs.orientation());\n /** @ignore */\n protected readonly scrollable = computed(() => this.tabs.scrollable());\n /** @ignore Navigators render only when scrollable AND explicitly enabled. */\n protected readonly showNavigators = computed(\n () => this.scrollable() && this.tabs.showNavigators(),\n );\n\n constructor() {\n // Re-measure the indicator and the navigator state on any geometry change.\n afterNextRender(() => {\n const ro = new ResizeObserver(() => {\n this.resizeTick.update((v) => v + 1);\n this.updateNavigators();\n });\n ro.observe(this.scrollEl().nativeElement);\n ro.observe(this.innerEl().nativeElement);\n this.updateNavigators();\n this.destroyRef.onDestroy(() => ro.disconnect());\n });\n\n // Track the active tab with the sliding indicator.\n afterRenderEffect(() => {\n const activeValue = this.tabs.value();\n this.orientation();\n this.resizeTick();\n const items = this.tabItems();\n\n const item = items.find((t) => t.value() === activeValue && !t.disabled());\n if (!item) {\n this.bar.set(null);\n return;\n }\n const btn = item.buttonEl().nativeElement;\n const horizontal = this.orientation() === 'horizontal';\n const next: ActiveBarMetrics = horizontal\n ? { offset: btn.offsetLeft, length: btn.offsetWidth }\n : { offset: btn.offsetTop, length: btn.offsetHeight };\n\n const cur = untracked(this.bar);\n if (!cur || cur.offset !== next.offset || cur.length !== next.length) {\n this.bar.set(next);\n }\n });\n\n afterRenderEffect(() => {\n const activeValue = this.tabs.value();\n if (!this.scrollable()) return;\n const item = this.tabItems().find((t) => t.value() === activeValue && !t.disabled());\n if (item) this.scrollIntoView(item.buttonEl().nativeElement);\n });\n }\n\n /** @ignore CSS transform positioning the indicator along the main axis. */\n protected readonly barTransform = computed(() => {\n const b = this.bar();\n if (!b) return null;\n return this.orientation() === 'horizontal'\n ? `translateX(${b.offset}px)`\n : `translateY(${b.offset}px)`;\n });\n\n /** @ignore Roving focus across enabled tabs (WAI-ARIA tabs pattern). */\n protected onKeydown(event: KeyboardEvent): void {\n const horizontal = this.orientation() === 'horizontal';\n const nextKey = horizontal ? 'ArrowRight' : 'ArrowDown';\n const prevKey = horizontal ? 'ArrowLeft' : 'ArrowUp';\n if (![nextKey, prevKey, 'Home', 'End'].includes(event.key)) return;\n\n const enabled = this.tabItems().filter((t) => !t.disabled());\n if (!enabled.length) return;\n\n const active = document.activeElement;\n let pos = enabled.findIndex((t) => t.buttonEl().nativeElement === active);\n if (pos === -1) return; // focus is not on a tab , let the event through.\n\n event.preventDefault();\n switch (event.key) {\n case nextKey: pos = (pos + 1) % enabled.length; break;\n case prevKey: pos = (pos - 1 + enabled.length) % enabled.length; break;\n case 'Home': pos = 0; break;\n case 'End': pos = enabled.length - 1; break;\n }\n const target = enabled[pos];\n target.focus();\n this.scrollIntoView(target.buttonEl().nativeElement);\n }\n\n /**\n * @ignore Bring the given tab fully inside the scroll viewport, scrolling by\n * the minimum needed along the active axis. Uses the viewport's own metrics\n * (never the page): a tab clipped at either edge slides back into view.\n */\n private scrollIntoView(el: HTMLElement): void {\n if (!this.scrollable()) return;\n const viewport = this.scrollEl().nativeElement;\n const horizontal = this.orientation() === 'horizontal';\n const start = horizontal ? el.offsetLeft : el.offsetTop;\n const size = horizontal ? el.offsetWidth : el.offsetHeight;\n const viewStart = horizontal ? viewport.scrollLeft : viewport.scrollTop;\n const viewSize = horizontal ? viewport.clientWidth : viewport.clientHeight;\n if (viewSize === 0) return; // not laid out yet , a later pass will re-run.\n\n let target = viewStart;\n if (start < viewStart) {\n target = start; // clipped at the start edge , align to it.\n } else if (start + size > viewStart + viewSize) {\n target = start + size - viewSize; // clipped at the end edge , align flush.\n } else {\n return; // already fully visible.\n }\n // Plain scrollTo (no `behavior` option) , the animation comes from the\n // container's CSS `scroll-behavior`, which the motion system tunes and\n // reduced-motion disables.\n viewport.scrollTo(horizontal ? { left: target } : { top: target });\n }\n\n /** @ignore Refresh the prev/next enabled state from the scroll position. */\n private updateNavigators(): void {\n if (!this.scrollable()) return;\n const el = this.scrollEl().nativeElement;\n if (this.orientation() === 'horizontal') {\n const max = el.scrollWidth - el.clientWidth;\n this.prevEnabled.set(el.scrollLeft > 1);\n this.nextEnabled.set(el.scrollLeft < max - 1);\n } else {\n const max = el.scrollHeight - el.clientHeight;\n this.prevEnabled.set(el.scrollTop > 1);\n this.nextEnabled.set(el.scrollTop < max - 1);\n }\n }\n\n /** @ignore */\n protected onScroll(): void {\n this.updateNavigators();\n }\n\n /**\n * @ignore Scroll the strip by roughly one viewport in the given direction.\n * Smoothness comes from the container's CSS `scroll-behavior` (motion-aware),\n * not the JS `behavior` option.\n */\n protected scrollBy(direction: -1 | 1): void {\n const el = this.scrollEl().nativeElement;\n if (this.orientation() === 'horizontal') {\n el.scrollBy({ left: direction * el.clientWidth * 0.8 });\n } else {\n el.scrollBy({ top: direction * el.clientHeight * 0.8 });\n }\n }\n}\n\n/**\n * ui-tab-panels , thin wrapper grouping the {@link UiTabPanel}s. Fills the\n * remaining space beside/under the tab list.\n */\n@Component({\n selector: 'ui-tab-panels',\n template: '<ng-content />',\n styles: `\n :host {\n display: block;\n flex: 1 1 auto;\n min-width: 0;\n }\n `,\n host: { class: 'ui-tab-panels' },\n})\nexport class UiTabPanels {}\n\n/**\n * ui-tabs , headless container orchestrating a set of tabs and their panels.\n *\n * Composition API: a root `ui-tabs` owns the shared state (`value` two-way\n * model, `orientation`, `scrollable`, `lazy`, `selectOnFocus`, `motion`), a\n * `ui-tab-list` renders the strip of `ui-tab` buttons (plus the sliding active\n * indicator and, when scrollable, the prev/next navigators), and a\n * `ui-tab-panels` holds one `ui-tab-panel` per tab. Every colour/metric comes\n * from the `navigation.*` design tokens; the active indicator glides , and each\n * panel fades in , via the shared motion system (reduced-motion aware).\n *\n * @example\n * ```html\n * <ui-tabs [(value)]=\"active\">\n * <ui-tab-list ariaLabel=\"Sections\">\n * <ui-tab [value]=\"0\">Onglet 1</ui-tab>\n * <ui-tab [value]=\"1\">Onglet 2</ui-tab>\n * </ui-tab-list>\n * <ui-tab-panels>\n * <ui-tab-panel [value]=\"0\">Contenu 1…</ui-tab-panel>\n * <ui-tab-panel [value]=\"1\">Contenu 2…</ui-tab-panel>\n * </ui-tab-panels>\n * </ui-tabs>\n * ```\n */\n@Component({\n selector: 'ui-tabs',\n template: '<ng-content />',\n styles: `\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n :host(._vertical) {\n flex-direction: row;\n align-items: flex-start;\n }\n `,\n host: {\n class: 'ui-tabs',\n '[class._vertical]': \"orientation() === 'vertical'\",\n },\n})\nexport class UiTabs {\n /** Value of the active tab (two-way). `undefined` = no active tab. */\n value = model<UiTabValue | undefined>(undefined);\n /** Layout axis: `horizontal` (list on top) or `vertical` (list on the side). */\n orientation = input<UiTabsOrientation>('horizontal');\n /** Enable overflow scrolling of the tab list with prev/next navigators. */\n scrollable = input(false, { transform: booleanAttribute });\n /** Group default: render an inactive tab's panel only once it is first activated. */\n lazy = input(false, { transform: booleanAttribute });\n /** Activate a tab as soon as it receives keyboard focus (automatic activation). */\n selectOnFocus = input(false, { transform: booleanAttribute });\n /** Show the prev/next navigators when `scrollable` (they still gate on overflow). */\n showNavigators = input(true, { transform: booleanAttribute });\n /** Animate the active indicator and panel transitions (reduced-motion always wins). */\n motion = input(true, { transform: booleanAttribute });\n /** Tabindex applied to the active tab (the group's single tab stop). */\n tabindex = input(0, { transform: numberAttribute });\n\n /** Fired whenever the active tab changes (user click / keyboard / focus). */\n tabChange = output<UiTabsChangeEvent>();\n\n /** @ignore Unique id root for aria wiring between tabs and panels. */\n readonly id = `ui-tabs-${nextUid++}`;\n\n /** @ignore All tabs projected under this container (across the list boundary). */\n private readonly tabs = contentChildren(forwardRef(() => UiTab), { descendants: true });\n\n /** @ignore id of the tab button for a given value. */\n tabId(value: UiTabValue): string {\n return `${this.id}-tab-${value}`;\n }\n /** @ignore id of the panel for a given value. */\n panelId(value: UiTabValue): string {\n return `${this.id}-panel-${value}`;\n }\n\n /** @ignore Whether the given value is the active tab. */\n isActive(value: UiTabValue): boolean {\n return this.value() === value;\n }\n\n /**\n * @ignore Value that owns the group's single tab stop (roving tabindex):\n * the active tab, or the first enabled tab when none is active.\n */\n readonly tabStopValue = computed<UiTabValue | undefined>(() => {\n const enabled = this.tabs().filter((t) => !t.disabled());\n if (!enabled.length) return undefined;\n const active = enabled.find((t) => t.value() === this.value());\n return (active ?? enabled[0]).value();\n });\n\n /** @ignore Activate a tab (no-op if already active); emits `tabChange`. */\n updateValue(value: UiTabValue, event: Event): void {\n if (this.value() === value) return;\n this.value.set(value);\n this.tabChange.emit({ value, originalEvent: event });\n }\n}\n","@if (showNavigators()) {\n <button\n type=\"button\"\n class=\"ui-tab-list-nav _prev\"\n aria-label=\"Défiler vers les onglets précédents\"\n tabindex=\"-1\"\n [disabled]=\"!prevEnabled()\"\n (click)=\"scrollBy(-1)\"\n >\n <ui-icon [name]=\"orientation() === 'vertical' ? 'chevron-up' : 'chevron-left'\" size=\"sm\" />\n </button>\n}\n\n<div #scroll class=\"ui-tab-list-scroll\" (scroll)=\"onScroll()\">\n <div\n #inner\n class=\"ui-tab-list-tabs\"\n role=\"tablist\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-orientation]=\"orientation()\"\n >\n <ng-content />\n\n <span\n class=\"ui-tab-list-active-bar\"\n aria-hidden=\"true\"\n [class._hidden]=\"!bar()\"\n [style.transform]=\"barTransform()\"\n [style.width.px]=\"orientation() === 'horizontal' ? bar()?.length : null\"\n [style.height.px]=\"orientation() === 'vertical' ? bar()?.length : null\"\n ></span>\n </div>\n</div>\n\n@if (showNavigators()) {\n <button\n type=\"button\"\n class=\"ui-tab-list-nav _next\"\n aria-label=\"Défiler vers les onglets suivants\"\n tabindex=\"-1\"\n [disabled]=\"!nextEnabled()\"\n (click)=\"scrollBy(1)\"\n >\n <ui-icon [name]=\"orientation() === 'vertical' ? 'chevron-down' : 'chevron-right'\" size=\"sm\" />\n </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