@4sh/ui-kit 0.16.0 → 0.17.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 (219) hide show
  1. package/README.fr.md +10 -10
  2. package/README.md +10 -10
  3. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs +542 -150
  4. package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +622 -248
  6. package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs +385 -152
  8. package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +748 -433
  10. package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs +227 -135
  12. package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-base-ui-image.mjs +1200 -633
  14. package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +1675 -1000
  16. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs +243 -117
  18. package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
  19. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +2294 -2048
  20. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  21. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1058 -1113
  22. package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -1
  23. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs +1108 -0
  24. package/fesm2022/4sh-ui-kit-forms-ui-field-sign.mjs.map +1 -0
  25. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +397 -141
  26. package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
  27. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs +1529 -583
  28. package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
  29. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs +383 -224
  30. package/fesm2022/4sh-ui-kit-forms-ui-input-date.mjs.map +1 -1
  31. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs +345 -177
  32. package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
  33. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +280 -138
  34. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  35. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +507 -257
  36. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  37. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +401 -312
  38. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  39. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +1277 -697
  40. package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
  41. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +467 -199
  42. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  43. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs +394 -270
  44. package/fesm2022/4sh-ui-kit-forms-ui-knob.mjs.map +1 -1
  45. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +140 -60
  46. package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
  47. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs +386 -167
  48. package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
  49. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs +150 -87
  50. package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
  51. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs +345 -180
  52. package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
  53. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs +582 -392
  54. package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
  55. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +1552 -888
  56. package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
  57. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs +485 -338
  58. package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
  59. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +503 -311
  60. package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -1
  61. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +271 -137
  62. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  63. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs +457 -214
  64. package/fesm2022/4sh-ui-kit-forms-ui-toggle-block.mjs.map +1 -1
  65. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +711 -371
  66. package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -1
  67. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs +235 -121
  68. package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
  69. package/fesm2022/4sh-ui-kit-forms.mjs +721 -638
  70. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  71. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs +546 -242
  72. package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
  73. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs +335 -157
  74. package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
  75. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs +53 -33
  76. package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
  77. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs +218 -121
  78. package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
  79. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +192 -100
  80. package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
  81. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +456 -204
  82. package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
  83. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs +314 -147
  84. package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
  85. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs +179 -82
  86. package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
  87. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs +268 -123
  88. package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
  89. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs +391 -146
  90. package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
  91. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs +158 -76
  92. package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
  93. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs +159 -80
  94. package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
  95. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs +295 -131
  96. package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
  97. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +211 -83
  98. package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
  99. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs +784 -414
  100. package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
  101. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +822 -476
  102. package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
  103. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs +1014 -599
  104. package/fesm2022/4sh-ui-kit-layout-ui-bottom-sheet.mjs.map +1 -1
  105. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs +403 -189
  106. package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
  107. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs +707 -272
  108. package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
  109. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +1146 -568
  110. package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
  111. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs +519 -308
  112. package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
  113. package/fesm2022/4sh-ui-kit-motion.mjs +252 -150
  114. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
  115. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs +793 -341
  116. package/fesm2022/4sh-ui-kit-navigation-ui-bottom-tab-bar.mjs.map +1 -1
  117. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +351 -194
  118. package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
  119. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs +511 -220
  120. package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
  121. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs +910 -548
  122. package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
  123. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs +1128 -555
  124. package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
  125. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +915 -470
  126. package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
  127. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +931 -474
  128. package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
  129. package/fesm2022/4sh-ui-kit-overlay.mjs +26 -109
  130. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
  131. package/fesm2022/4sh-ui-kit-ripple.mjs +329 -290
  132. package/fesm2022/4sh-ui-kit-ripple.mjs.map +1 -1
  133. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs +709 -248
  134. package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
  135. package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2633 -1370
  136. package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
  137. package/fesm2022/4sh-ui-kit-theming.mjs +112 -113
  138. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
  139. package/fesm2022/4sh-ui-kit-types.mjs +0 -12
  140. package/fesm2022/4sh-ui-kit.mjs +3 -15
  141. package/fesm2022/4sh-ui-kit.mjs.map +1 -1
  142. package/mcp/data/component-api.json +299 -2
  143. package/mcp/data/text-search-docs.json +149 -9
  144. package/mcp/data/ui-config.json +378 -1
  145. package/mcp/index.js +8190 -2876
  146. package/mcp/package.json +1 -1
  147. package/package.json +5 -1
  148. package/styles/component-vars.scss +22 -1
  149. package/types/4sh-ui-kit-actions-ui-button-split.d.ts +198 -87
  150. package/types/4sh-ui-kit-actions-ui-button.d.ts +240 -116
  151. package/types/4sh-ui-kit-actions-ui-link.d.ts +136 -67
  152. package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +287 -180
  153. package/types/4sh-ui-kit-base-ui-icon.d.ts +92 -58
  154. package/types/4sh-ui-kit-base-ui-image.d.ts +406 -205
  155. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +573 -376
  156. package/types/4sh-ui-kit-forms-ui-checkbox.d.ts +77 -42
  157. package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +953 -700
  158. package/types/4sh-ui-kit-forms-ui-editor.d.ts +374 -340
  159. package/types/4sh-ui-kit-forms-ui-field-sign.d.ts +325 -0
  160. package/types/4sh-ui-kit-forms-ui-field.d.ts +150 -64
  161. package/types/4sh-ui-kit-forms-ui-file-upload.d.ts +583 -241
  162. package/types/4sh-ui-kit-forms-ui-input-date.d.ts +152 -103
  163. package/types/4sh-ui-kit-forms-ui-input-group.d.ts +109 -63
  164. package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +93 -59
  165. package/types/4sh-ui-kit-forms-ui-input-number.d.ts +171 -96
  166. package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +137 -104
  167. package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +469 -309
  168. package/types/4sh-ui-kit-forms-ui-input.d.ts +198 -118
  169. package/types/4sh-ui-kit-forms-ui-knob.d.ts +132 -80
  170. package/types/4sh-ui-kit-forms-ui-label.d.ts +47 -22
  171. package/types/4sh-ui-kit-forms-ui-nudger.d.ts +134 -67
  172. package/types/4sh-ui-kit-forms-ui-radio.d.ts +48 -33
  173. package/types/4sh-ui-kit-forms-ui-rating.d.ts +120 -86
  174. package/types/4sh-ui-kit-forms-ui-segment-control.d.ts +221 -147
  175. package/types/4sh-ui-kit-forms-ui-select.d.ts +561 -357
  176. package/types/4sh-ui-kit-forms-ui-slider.d.ts +156 -105
  177. package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +133 -97
  178. package/types/4sh-ui-kit-forms-ui-textarea.d.ts +90 -56
  179. package/types/4sh-ui-kit-forms-ui-toggle-block.d.ts +158 -94
  180. package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +314 -178
  181. package/types/4sh-ui-kit-forms-ui-toggle.d.ts +88 -54
  182. package/types/4sh-ui-kit-forms.d.ts +275 -194
  183. package/types/4sh-ui-kit-informative-ui-accordion.d.ts +162 -92
  184. package/types/4sh-ui-kit-informative-ui-alert.d.ts +128 -62
  185. package/types/4sh-ui-kit-informative-ui-avatar-group.d.ts +8 -8
  186. package/types/4sh-ui-kit-informative-ui-avatar.d.ts +81 -44
  187. package/types/4sh-ui-kit-informative-ui-badge.d.ts +71 -41
  188. package/types/4sh-ui-kit-informative-ui-chip.d.ts +194 -99
  189. package/types/4sh-ui-kit-informative-ui-empty-state.d.ts +105 -65
  190. package/types/4sh-ui-kit-informative-ui-helper.d.ts +64 -34
  191. package/types/4sh-ui-kit-informative-ui-progress-bar.d.ts +120 -65
  192. package/types/4sh-ui-kit-informative-ui-read-only.d.ts +147 -67
  193. package/types/4sh-ui-kit-informative-ui-separator.d.ts +65 -35
  194. package/types/4sh-ui-kit-informative-ui-skeleton.d.ts +62 -32
  195. package/types/4sh-ui-kit-informative-ui-spinner.d.ts +111 -50
  196. package/types/4sh-ui-kit-informative-ui-tag.d.ts +77 -37
  197. package/types/4sh-ui-kit-informative-ui-toast.d.ts +300 -180
  198. package/types/4sh-ui-kit-informative-ui-tooltip.d.ts +269 -141
  199. package/types/4sh-ui-kit-layout-ui-bottom-sheet.d.ts +360 -221
  200. package/types/4sh-ui-kit-layout-ui-card.d.ts +119 -79
  201. package/types/4sh-ui-kit-layout-ui-drawer.d.ts +244 -120
  202. package/types/4sh-ui-kit-layout-ui-modal.d.ts +409 -222
  203. package/types/4sh-ui-kit-layout-ui-popover.d.ts +149 -91
  204. package/types/4sh-ui-kit-motion.d.ts +117 -67
  205. package/types/4sh-ui-kit-navigation-ui-bottom-tab-bar.d.ts +279 -145
  206. package/types/4sh-ui-kit-navigation-ui-breadcrumb.d.ts +134 -96
  207. package/types/4sh-ui-kit-navigation-ui-context-menu.d.ts +148 -89
  208. package/types/4sh-ui-kit-navigation-ui-menu.d.ts +282 -201
  209. package/types/4sh-ui-kit-navigation-ui-sidebar.d.ts +425 -261
  210. package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +279 -183
  211. package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +275 -173
  212. package/types/4sh-ui-kit-overlay.d.ts +6 -6
  213. package/types/4sh-ui-kit-ripple.d.ts +99 -74
  214. package/types/4sh-ui-kit-table-ui-paginator.d.ts +237 -133
  215. package/types/4sh-ui-kit-table-ui-table.d.ts +769 -470
  216. package/types/4sh-ui-kit-theming.d.ts +27 -29
  217. package/types/4sh-ui-kit-types.d.ts +6 -5
  218. package/types/4sh-ui-kit.d.ts +4 -3
  219. package/fesm2022/4sh-ui-kit-types.mjs.map +0 -1
@@ -1,67 +1,105 @@
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/base/ui-icon';
5
-
6
- /** Process-wide counter for unique tab/panel ids (aria wiring). */
1
+ import * as i0 from "@angular/core";
2
+ import { Component, DestroyRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, contentChildren, effect, forwardRef, inject, input, model, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
3
+ import { NgTemplateOutlet } from "@angular/common";
4
+ import { UiIcon } from "@4sh/ui-kit/base/ui-icon";
7
5
  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.1.7", ngImport: i0, type: UiTab, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
64
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", 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: `
6
+ var UiTab = class UiTab {
7
+ constructor() {
8
+ this.value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
9
+ this.disabled = input(false, {
10
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
11
+ transform: booleanAttribute
12
+ });
13
+ this.icon = input(...ngDevMode ? [void 0, { debugName: "icon" }] : /* istanbul ignore next */ []);
14
+ this.iconPos = input("left", ...ngDevMode ? [{ debugName: "iconPos" }] : /* istanbul ignore next */ []);
15
+ this.ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
16
+ this.tabs = inject(UiTabs);
17
+ this.buttonEl = viewChild.required("tabBtn", ...ngDevMode ? [{ debugName: "buttonEl" }] : /* istanbul ignore next */ []);
18
+ this.active = computed(() => this.tabs.isActive(this.value()), ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
19
+ this.tabindex = computed(() => this.tabs.tabStopValue() === this.value() ? this.tabs.tabindex() : -1, ...ngDevMode ? [{ debugName: "tabindex" }] : /* istanbul ignore next */ []);
20
+ }
21
+ focus(options) {
22
+ this.buttonEl().nativeElement.focus(options);
23
+ }
24
+ onClick(event) {
25
+ if (this.disabled()) return;
26
+ this.tabs.updateValue(this.value(), event);
27
+ }
28
+ onFocus(event) {
29
+ if (this.tabs.selectOnFocus() && !this.disabled()) this.tabs.updateValue(this.value(), event);
30
+ }
31
+ static {
32
+ this.ɵfac = i0.ɵɵngDeclareFactory({
33
+ minVersion: "12.0.0",
34
+ version: "22.3.0",
35
+ ngImport: i0,
36
+ type: UiTab,
37
+ deps: [],
38
+ target: i0.ɵɵFactoryTarget.Component
39
+ });
40
+ }
41
+ static {
42
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
43
+ minVersion: "17.0.0",
44
+ version: "22.3.0",
45
+ type: UiTab,
46
+ isStandalone: true,
47
+ selector: "ui-tab",
48
+ inputs: {
49
+ value: {
50
+ classPropertyName: "value",
51
+ publicName: "value",
52
+ isSignal: true,
53
+ isRequired: true,
54
+ transformFunction: null
55
+ },
56
+ disabled: {
57
+ classPropertyName: "disabled",
58
+ publicName: "disabled",
59
+ isSignal: true,
60
+ isRequired: false,
61
+ transformFunction: null
62
+ },
63
+ icon: {
64
+ classPropertyName: "icon",
65
+ publicName: "icon",
66
+ isSignal: true,
67
+ isRequired: false,
68
+ transformFunction: null
69
+ },
70
+ iconPos: {
71
+ classPropertyName: "iconPos",
72
+ publicName: "iconPos",
73
+ isSignal: true,
74
+ isRequired: false,
75
+ transformFunction: null
76
+ },
77
+ ariaLabel: {
78
+ classPropertyName: "ariaLabel",
79
+ publicName: "ariaLabel",
80
+ isSignal: true,
81
+ isRequired: false,
82
+ transformFunction: null
83
+ }
84
+ },
85
+ host: {
86
+ properties: {
87
+ "class._active": "active()",
88
+ "class._disabled": "disabled()",
89
+ "class._icon-right": "iconPos() === 'right'",
90
+ "class._vertical": "tabs.orientation() === 'vertical'"
91
+ },
92
+ classAttribute: "ui-tab"
93
+ },
94
+ viewQueries: [{
95
+ propertyName: "buttonEl",
96
+ first: true,
97
+ predicate: ["tabBtn"],
98
+ descendants: true,
99
+ isSignal: true
100
+ }],
101
+ ngImport: i0,
102
+ template: `
65
103
  <button
66
104
  #tabBtn
67
105
  type="button"
@@ -82,11 +120,36 @@ class UiTab {
82
120
  }
83
121
  <span class="ui-tab-label"><ng-content /></span>
84
122
  </button>
85
- `, 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:var(--ui-tabs-min-height, 2.75rem);margin:0;padding:0 var(--units-default);border:0;background-color:var(--ui-tabs-tab-surface, var(--navigation-highoutlined-surface-default));color:var(--ui-tabs-tab-color, var(--navigation-highoutlined-content-default));font-family:var(--ui-tabs-font-family, var(--fontfamily-base));font-weight:var(--ui-tabs-weight, var(--weight-bold));font-size:var(--size-typography-text-default);line-height:1.2;white-space:nowrap;cursor:pointer;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-tab-button:hover:not(:disabled){background-color:var(--ui-tabs-tab-surface-hover, var(--navigation-highoutlined-surface-hover));color:var(--ui-tabs-tab-color-hover, var(--navigation-highoutlined-content-hover))}.ui-tab-button:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--ui-tabs-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-tabs-tab-focus-ring-color, var(--global-border-focus))}.ui-tab-button:disabled{background-color:var(--ui-tabs-tab-surface-disabled, var(--navigation-highoutlined-surface-disabled));color:var(--ui-tabs-tab-color-disabled, var(--navigation-highoutlined-content-disabled));cursor:not-allowed}:host._icon-right .ui-tab-button{flex-direction:row-reverse}:host._active .ui-tab-button{background-color:var(--ui-tabs-tab-surface-active, var(--navigation-highoutlined-surface-active));color:var(--ui-tabs-tab-color-active, var(--navigation-highoutlined-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"] }] }); }
86
- }
87
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiTab, decorators: [{
88
- type: Component,
89
- args: [{ selector: 'ui-tab', imports: [UiIcon], template: `
123
+ `,
124
+ isInline: true,
125
+ 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:var(--ui-tabs-min-height, 2.75rem);margin:0;padding:0 var(--units-default);border:0;background-color:var(--ui-tabs-tab-surface, var(--navigation-highoutlined-surface-default));color:var(--ui-tabs-tab-color, var(--navigation-highoutlined-content-default));font-family:var(--ui-tabs-font-family, var(--fontfamily-base));font-weight:var(--ui-tabs-weight, var(--weight-bold));font-size:var(--size-typography-text-default);line-height:1.2;white-space:nowrap;cursor:pointer;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-tab-button:hover:not(:disabled){background-color:var(--ui-tabs-tab-surface-hover, var(--navigation-highoutlined-surface-hover));color:var(--ui-tabs-tab-color-hover, var(--navigation-highoutlined-content-hover))}.ui-tab-button:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--ui-tabs-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-tabs-tab-focus-ring-color, var(--global-border-focus))}.ui-tab-button:disabled{background-color:var(--ui-tabs-tab-surface-disabled, var(--navigation-highoutlined-surface-disabled));color:var(--ui-tabs-tab-color-disabled, var(--navigation-highoutlined-content-disabled));cursor:not-allowed}:host._icon-right .ui-tab-button{flex-direction:row-reverse}:host._active .ui-tab-button{background-color:var(--ui-tabs-tab-surface-active, var(--navigation-highoutlined-surface-active));color:var(--ui-tabs-tab-color-active, var(--navigation-highoutlined-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"],
126
+ dependencies: [{
127
+ kind: "component",
128
+ type: UiIcon,
129
+ selector: "ui-icon",
130
+ inputs: [
131
+ "name",
132
+ "size",
133
+ "type",
134
+ "family",
135
+ "decorative",
136
+ "ariaLabel"
137
+ ]
138
+ }]
139
+ });
140
+ }
141
+ };
142
+ i0.ɵɵngDeclareClassMetadata({
143
+ minVersion: "12.0.0",
144
+ version: "22.3.0",
145
+ ngImport: i0,
146
+ type: UiTab,
147
+ decorators: [{
148
+ type: Component,
149
+ args: [{
150
+ selector: "ui-tab",
151
+ imports: [UiIcon],
152
+ template: `
90
153
  <button
91
154
  #tabBtn
92
155
  type="button"
@@ -107,418 +170,812 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
107
170
  }
108
171
  <span class="ui-tab-label"><ng-content /></span>
109
172
  </button>
110
- `, host: {
111
- class: 'ui-tab',
112
- '[class._active]': 'active()',
113
- '[class._disabled]': 'disabled()',
114
- '[class._icon-right]': "iconPos() === 'right'",
115
- '[class._vertical]': "tabs.orientation() === 'vertical'",
116
- }, 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:var(--ui-tabs-min-height, 2.75rem);margin:0;padding:0 var(--units-default);border:0;background-color:var(--ui-tabs-tab-surface, var(--navigation-highoutlined-surface-default));color:var(--ui-tabs-tab-color, var(--navigation-highoutlined-content-default));font-family:var(--ui-tabs-font-family, var(--fontfamily-base));font-weight:var(--ui-tabs-weight, var(--weight-bold));font-size:var(--size-typography-text-default);line-height:1.2;white-space:nowrap;cursor:pointer;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-tab-button:hover:not(:disabled){background-color:var(--ui-tabs-tab-surface-hover, var(--navigation-highoutlined-surface-hover));color:var(--ui-tabs-tab-color-hover, var(--navigation-highoutlined-content-hover))}.ui-tab-button:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--ui-tabs-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-tabs-tab-focus-ring-color, var(--global-border-focus))}.ui-tab-button:disabled{background-color:var(--ui-tabs-tab-surface-disabled, var(--navigation-highoutlined-surface-disabled));color:var(--ui-tabs-tab-color-disabled, var(--navigation-highoutlined-content-disabled));cursor:not-allowed}:host._icon-right .ui-tab-button{flex-direction:row-reverse}:host._active .ui-tab-button{background-color:var(--ui-tabs-tab-surface-active, var(--navigation-highoutlined-surface-active));color:var(--ui-tabs-tab-color-active, var(--navigation-highoutlined-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"] }]
117
- }], 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 }] }] } });
118
- /**
119
- * ui-tab-panel , the content region tied to a {@link UiTab} by shared `value`.
120
- *
121
- * The panel stays in the DOM but is `hidden` (and skipped by AT) when inactive,
122
- * so its state is preserved. With `lazy` (per panel or group-wide) the content
123
- * is rendered only once the panel is first activated; wrap expensive content in
124
- * a `<ng-template #content>` so it initialises lazily.
125
- */
126
- class UiTabPanel {
127
- constructor() {
128
- /** Identifier of this panel (matched against the container `value`). */
129
- this.value = input.required(/* @ts-ignore */
130
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
131
- /** Render this panel's content only once it is first activated (overrides the group default). */
132
- this.lazy = input(undefined, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: (v) => (v == null ? undefined : booleanAttribute(v)) });
133
- /** Optional lazy content template (`<ng-template #content>`). */
134
- this.content = contentChild('content', /* @ts-ignore */
135
- ...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
136
- /** @ignore Parent container (active state + group `lazy` default). */
137
- this.tabs = inject(UiTabs);
138
- /** @ignore */
139
- this.active = computed(() => this.tabs.isActive(this.value()), /* @ts-ignore */
140
- ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
141
- /** @ignore Panel-level `lazy` overrides the group default when explicitly set. */
142
- this.isLazy = computed(() => this.lazy() ?? this.tabs.lazy(), /* @ts-ignore */
143
- ...(ngDevMode ? [{ debugName: "isLazy" }] : /* istanbul ignore next */ []));
144
- /** @ignore Sticks once the panel has been activated at least once. */
145
- this.hasRendered = signal(false, /* @ts-ignore */
146
- ...(ngDevMode ? [{ debugName: "hasRendered" }] : /* istanbul ignore next */ []));
147
- /** @ignore Eager panels always render; lazy ones only after first activation. */
148
- this.shouldRender = computed(() => !this.isLazy() || this.hasRendered() || this.active(), /* @ts-ignore */
149
- ...(ngDevMode ? [{ debugName: "shouldRender" }] : /* istanbul ignore next */ []));
150
- effect(() => {
151
- if (this.active())
152
- this.hasRendered.set(true);
153
- });
154
- }
155
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiTabPanel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
156
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", 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: `
173
+ `,
174
+ host: {
175
+ class: "ui-tab",
176
+ "[class._active]": "active()",
177
+ "[class._disabled]": "disabled()",
178
+ "[class._icon-right]": "iconPos() === 'right'",
179
+ "[class._vertical]": "tabs.orientation() === 'vertical'"
180
+ },
181
+ 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:var(--ui-tabs-min-height, 2.75rem);margin:0;padding:0 var(--units-default);border:0;background-color:var(--ui-tabs-tab-surface, var(--navigation-highoutlined-surface-default));color:var(--ui-tabs-tab-color, var(--navigation-highoutlined-content-default));font-family:var(--ui-tabs-font-family, var(--fontfamily-base));font-weight:var(--ui-tabs-weight, var(--weight-bold));font-size:var(--size-typography-text-default);line-height:1.2;white-space:nowrap;cursor:pointer;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),box-shadow var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-tab-button:hover:not(:disabled){background-color:var(--ui-tabs-tab-surface-hover, var(--navigation-highoutlined-surface-hover));color:var(--ui-tabs-tab-color-hover, var(--navigation-highoutlined-content-hover))}.ui-tab-button:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--ui-tabs-focus-ring-width, var(--ui-focus-ring-width, var(--units-2xs))) var(--ui-tabs-tab-focus-ring-color, var(--global-border-focus))}.ui-tab-button:disabled{background-color:var(--ui-tabs-tab-surface-disabled, var(--navigation-highoutlined-surface-disabled));color:var(--ui-tabs-tab-color-disabled, var(--navigation-highoutlined-content-disabled));cursor:not-allowed}:host._icon-right .ui-tab-button{flex-direction:row-reverse}:host._active .ui-tab-button{background-color:var(--ui-tabs-tab-surface-active, var(--navigation-highoutlined-surface-active));color:var(--ui-tabs-tab-color-active, var(--navigation-highoutlined-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"]
182
+ }]
183
+ }],
184
+ propDecorators: {
185
+ value: [{
186
+ type: i0.Input,
187
+ args: [{
188
+ isSignal: true,
189
+ alias: "value",
190
+ required: true
191
+ }]
192
+ }],
193
+ disabled: [{
194
+ type: i0.Input,
195
+ args: [{
196
+ isSignal: true,
197
+ alias: "disabled",
198
+ required: false
199
+ }]
200
+ }],
201
+ icon: [{
202
+ type: i0.Input,
203
+ args: [{
204
+ isSignal: true,
205
+ alias: "icon",
206
+ required: false
207
+ }]
208
+ }],
209
+ iconPos: [{
210
+ type: i0.Input,
211
+ args: [{
212
+ isSignal: true,
213
+ alias: "iconPos",
214
+ required: false
215
+ }]
216
+ }],
217
+ ariaLabel: [{
218
+ type: i0.Input,
219
+ args: [{
220
+ isSignal: true,
221
+ alias: "ariaLabel",
222
+ required: false
223
+ }]
224
+ }],
225
+ buttonEl: [{
226
+ type: i0.ViewChild,
227
+ args: ["tabBtn", { isSignal: true }]
228
+ }]
229
+ }
230
+ });
231
+ var UiTabPanel = class UiTabPanel {
232
+ constructor() {
233
+ this.value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
234
+ this.lazy = input(void 0, {
235
+ ...ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {},
236
+ transform: (v) => v == null ? void 0 : booleanAttribute(v)
237
+ });
238
+ this.content = contentChild("content", ...ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []);
239
+ this.tabs = inject(UiTabs);
240
+ this.active = computed(() => this.tabs.isActive(this.value()), ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
241
+ this.isLazy = computed(() => this.lazy() ?? this.tabs.lazy(), ...ngDevMode ? [{ debugName: "isLazy" }] : /* istanbul ignore next */ []);
242
+ this.hasRendered = signal(false, ...ngDevMode ? [{ debugName: "hasRendered" }] : /* istanbul ignore next */ []);
243
+ this.shouldRender = computed(() => !this.isLazy() || this.hasRendered() || this.active(), ...ngDevMode ? [{ debugName: "shouldRender" }] : /* istanbul ignore next */ []);
244
+ effect(() => {
245
+ if (this.active()) this.hasRendered.set(true);
246
+ });
247
+ }
248
+ static {
249
+ this.ɵfac = i0.ɵɵngDeclareFactory({
250
+ minVersion: "12.0.0",
251
+ version: "22.3.0",
252
+ ngImport: i0,
253
+ type: UiTabPanel,
254
+ deps: [],
255
+ target: i0.ɵɵFactoryTarget.Component
256
+ });
257
+ }
258
+ static {
259
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
260
+ minVersion: "17.0.0",
261
+ version: "22.3.0",
262
+ type: UiTabPanel,
263
+ isStandalone: true,
264
+ selector: "ui-tab-panel",
265
+ inputs: {
266
+ value: {
267
+ classPropertyName: "value",
268
+ publicName: "value",
269
+ isSignal: true,
270
+ isRequired: true,
271
+ transformFunction: null
272
+ },
273
+ lazy: {
274
+ classPropertyName: "lazy",
275
+ publicName: "lazy",
276
+ isSignal: true,
277
+ isRequired: false,
278
+ transformFunction: null
279
+ }
280
+ },
281
+ host: {
282
+ attributes: {
283
+ "role": "tabpanel",
284
+ "tabindex": "0"
285
+ },
286
+ properties: {
287
+ "id": "tabs.panelId(value())",
288
+ "attr.aria-labelledby": "tabs.tabId(value())",
289
+ "hidden": "!active()",
290
+ "class._active": "active()",
291
+ "class._no-motion": "!tabs.motion()"
292
+ },
293
+ classAttribute: "ui-tab-panel"
294
+ },
295
+ queries: [{
296
+ propertyName: "content",
297
+ first: true,
298
+ predicate: ["content"],
299
+ descendants: true,
300
+ isSignal: true
301
+ }],
302
+ ngImport: i0,
303
+ template: `
157
304
  <ng-template #defaultContent><ng-content /></ng-template>
158
305
  @if (shouldRender()) {
159
306
  <ng-container [ngTemplateOutlet]="content() ?? defaultContent" />
160
307
  }
161
- `, isInline: true, styles: [":host{display:block;padding:var(--units-default) 0;color:var(--ui-tabs-panel-color, var(--global-text-default));font-family:var(--ui-tabs-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(--motion-overlay-in-duration, var(--transition-default)) var(--motion-overlay-in-easing, 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"] }] }); }
162
- }
163
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiTabPanel, decorators: [{
164
- type: Component,
165
- args: [{ selector: 'ui-tab-panel', imports: [NgTemplateOutlet], template: `
308
+ `,
309
+ isInline: true,
310
+ styles: [":host{display:block;padding:var(--units-default) 0;color:var(--ui-tabs-panel-color, var(--global-text-default));font-family:var(--ui-tabs-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(--motion-overlay-in-duration, var(--transition-default)) var(--motion-overlay-in-easing, 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"],
311
+ dependencies: [{
312
+ kind: "directive",
313
+ type: NgTemplateOutlet,
314
+ selector: "[ngTemplateOutlet]",
315
+ inputs: [
316
+ "ngTemplateOutletContext",
317
+ "ngTemplateOutlet",
318
+ "ngTemplateOutletInjector"
319
+ ]
320
+ }]
321
+ });
322
+ }
323
+ };
324
+ i0.ɵɵngDeclareClassMetadata({
325
+ minVersion: "12.0.0",
326
+ version: "22.3.0",
327
+ ngImport: i0,
328
+ type: UiTabPanel,
329
+ decorators: [{
330
+ type: Component,
331
+ args: [{
332
+ selector: "ui-tab-panel",
333
+ imports: [NgTemplateOutlet],
334
+ template: `
166
335
  <ng-template #defaultContent><ng-content /></ng-template>
167
336
  @if (shouldRender()) {
168
337
  <ng-container [ngTemplateOutlet]="content() ?? defaultContent" />
169
338
  }
170
- `, host: {
171
- class: 'ui-tab-panel',
172
- role: 'tabpanel',
173
- tabindex: '0',
174
- '[id]': 'tabs.panelId(value())',
175
- '[attr.aria-labelledby]': 'tabs.tabId(value())',
176
- '[hidden]': '!active()',
177
- '[class._active]': 'active()',
178
- '[class._no-motion]': '!tabs.motion()',
179
- }, styles: [":host{display:block;padding:var(--units-default) 0;color:var(--ui-tabs-panel-color, var(--global-text-default));font-family:var(--ui-tabs-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(--motion-overlay-in-duration, var(--transition-default)) var(--motion-overlay-in-easing, 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"] }]
180
- }], 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 }] }] } });
181
- /**
182
- * ui-tab-list , the horizontal (or vertical) strip of {@link UiTab} buttons.
183
- *
184
- * Owns the WAI-ARIA `role="tablist"`, the roving-focus keyboard navigation
185
- * (Arrow keys along the axis, Home/End), the sliding active indicator measured
186
- * from the active tab, and , when the container is `scrollable` , the prev/next
187
- * navigators that scroll the overflowing strip.
188
- */
189
- class UiTabList {
190
- constructor() {
191
- /** Accessible name for the tab list (recommended). */
192
- this.ariaLabel = input(/* @ts-ignore */
193
- ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
194
- /** Accessible name of the "previous" scroll navigator. */
195
- this.prevAriaLabel = input('Défiler vers les onglets précédents', /* @ts-ignore */
196
- ...(ngDevMode ? [{ debugName: "prevAriaLabel" }] : /* istanbul ignore next */ []));
197
- /** Accessible name of the "next" scroll navigator. */
198
- this.nextAriaLabel = input('Défiler vers les onglets suivants', /* @ts-ignore */
199
- ...(ngDevMode ? [{ debugName: "nextAriaLabel" }] : /* istanbul ignore next */ []));
200
- /** @ignore Parent container (state + group options). */
201
- this.tabs = inject(UiTabs);
202
- /** @ignore */
203
- this.destroyRef = inject(DestroyRef);
204
- /** @ignore Tabs projected into this list, in DOM order. */
205
- this.tabItems = contentChildren(UiTab, /* @ts-ignore */
206
- ...(ngDevMode ? [{ debugName: "tabItems" }] : /* istanbul ignore next */ []));
207
- /** @ignore Scroll viewport around the tab strip. */
208
- this.scrollEl = viewChild.required('scroll', /* @ts-ignore */
209
- ...(ngDevMode ? [{ debugName: "scrollEl" }] : /* istanbul ignore next */ []));
210
- /** @ignore The `role="tablist"` inner element (indicator's offset parent). */
211
- this.innerEl = viewChild.required('inner', /* @ts-ignore */
212
- ...(ngDevMode ? [{ debugName: "innerEl" }] : /* istanbul ignore next */ []));
213
- /** @ignore Measured indicator geometry (null when there is no active tab). */
214
- this.bar = signal(null, /* @ts-ignore */
215
- ...(ngDevMode ? [{ debugName: "bar" }] : /* istanbul ignore next */ []));
216
- /** @ignore Bumped by the ResizeObserver / scroll to re-measure. */
217
- this.resizeTick = signal(0, /* @ts-ignore */
218
- ...(ngDevMode ? [{ debugName: "resizeTick" }] : /* istanbul ignore next */ []));
219
- /** @ignore Whether scrolling further back is possible. */
220
- this.prevEnabled = signal(false, /* @ts-ignore */
221
- ...(ngDevMode ? [{ debugName: "prevEnabled" }] : /* istanbul ignore next */ []));
222
- /** @ignore Whether scrolling further forward is possible. */
223
- this.nextEnabled = signal(false, /* @ts-ignore */
224
- ...(ngDevMode ? [{ debugName: "nextEnabled" }] : /* istanbul ignore next */ []));
225
- /** @ignore */
226
- this.orientation = computed(() => this.tabs.orientation(), /* @ts-ignore */
227
- ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
228
- /** @ignore */
229
- this.scrollable = computed(() => this.tabs.scrollable(), /* @ts-ignore */
230
- ...(ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []));
231
- /** @ignore Navigators render only when scrollable AND explicitly enabled. */
232
- this.showNavigators = computed(() => this.scrollable() && this.tabs.showNavigators(), /* @ts-ignore */
233
- ...(ngDevMode ? [{ debugName: "showNavigators" }] : /* istanbul ignore next */ []));
234
- /** @ignore CSS transform positioning the indicator along the main axis. */
235
- this.barTransform = computed(() => {
236
- const b = this.bar();
237
- if (!b)
238
- return null;
239
- return this.orientation() === 'horizontal'
240
- ? `translateX(${b.offset}px)`
241
- : `translateY(${b.offset}px)`;
242
- }, /* @ts-ignore */
243
- ...(ngDevMode ? [{ debugName: "barTransform" }] : /* istanbul ignore next */ []));
244
- // Re-measure the indicator and the navigator state on any geometry change.
245
- afterNextRender(() => {
246
- const ro = new ResizeObserver(() => {
247
- this.resizeTick.update((v) => v + 1);
248
- this.updateNavigators();
249
- });
250
- ro.observe(this.scrollEl().nativeElement);
251
- ro.observe(this.innerEl().nativeElement);
252
- this.updateNavigators();
253
- this.destroyRef.onDestroy(() => ro.disconnect());
254
- });
255
- // Track the active tab with the sliding indicator.
256
- afterRenderEffect(() => {
257
- const activeValue = this.tabs.value();
258
- this.orientation();
259
- this.resizeTick();
260
- const items = this.tabItems();
261
- const item = items.find((t) => t.value() === activeValue && !t.disabled());
262
- if (!item) {
263
- this.bar.set(null);
264
- return;
265
- }
266
- const btn = item.buttonEl().nativeElement;
267
- const horizontal = this.orientation() === 'horizontal';
268
- const next = horizontal
269
- ? { offset: btn.offsetLeft, length: btn.offsetWidth }
270
- : { offset: btn.offsetTop, length: btn.offsetHeight };
271
- const cur = untracked(this.bar);
272
- if (!cur || cur.offset !== next.offset || cur.length !== next.length) {
273
- this.bar.set(next);
274
- }
275
- });
276
- afterRenderEffect(() => {
277
- const activeValue = this.tabs.value();
278
- if (!this.scrollable())
279
- return;
280
- const item = this.tabItems().find((t) => t.value() === activeValue && !t.disabled());
281
- if (item)
282
- this.scrollIntoView(item.buttonEl().nativeElement);
283
- });
284
- }
285
- /** @ignore Roving focus across enabled tabs (WAI-ARIA tabs pattern). */
286
- onKeydown(event) {
287
- const horizontal = this.orientation() === 'horizontal';
288
- const nextKey = horizontal ? 'ArrowRight' : 'ArrowDown';
289
- const prevKey = horizontal ? 'ArrowLeft' : 'ArrowUp';
290
- if (![nextKey, prevKey, 'Home', 'End'].includes(event.key))
291
- return;
292
- const enabled = this.tabItems().filter((t) => !t.disabled());
293
- if (!enabled.length)
294
- return;
295
- const active = document.activeElement;
296
- let pos = enabled.findIndex((t) => t.buttonEl().nativeElement === active);
297
- if (pos === -1)
298
- return; // focus is not on a tab , let the event through.
299
- event.preventDefault();
300
- switch (event.key) {
301
- case nextKey:
302
- pos = (pos + 1) % enabled.length;
303
- break;
304
- case prevKey:
305
- pos = (pos - 1 + enabled.length) % enabled.length;
306
- break;
307
- case 'Home':
308
- pos = 0;
309
- break;
310
- case 'End':
311
- pos = enabled.length - 1;
312
- break;
313
- }
314
- const target = enabled[pos];
315
- target.focus();
316
- this.scrollIntoView(target.buttonEl().nativeElement);
317
- }
318
- /**
319
- * @ignore Bring the given tab fully inside the scroll viewport, scrolling by
320
- * the minimum needed along the active axis. Uses the viewport's own metrics
321
- * (never the page): a tab clipped at either edge slides back into view.
322
- */
323
- scrollIntoView(el) {
324
- if (!this.scrollable())
325
- return;
326
- const viewport = this.scrollEl().nativeElement;
327
- const horizontal = this.orientation() === 'horizontal';
328
- const start = horizontal ? el.offsetLeft : el.offsetTop;
329
- const size = horizontal ? el.offsetWidth : el.offsetHeight;
330
- const viewStart = horizontal ? viewport.scrollLeft : viewport.scrollTop;
331
- const viewSize = horizontal ? viewport.clientWidth : viewport.clientHeight;
332
- if (viewSize === 0)
333
- return; // not laid out yet , a later pass will re-run.
334
- let target;
335
- if (start < viewStart) {
336
- target = start; // clipped at the start edge , align to it.
337
- }
338
- else if (start + size > viewStart + viewSize) {
339
- target = start + size - viewSize; // clipped at the end edge , align flush.
340
- }
341
- else {
342
- return; // already fully visible.
343
- }
344
- // Plain scrollTo (no `behavior` option) , the animation comes from the
345
- // container's CSS `scroll-behavior`, which the motion system tunes and
346
- // reduced-motion disables.
347
- viewport.scrollTo(horizontal ? { left: target } : { top: target });
348
- }
349
- /** @ignore Refresh the prev/next enabled state from the scroll position. */
350
- updateNavigators() {
351
- if (!this.scrollable())
352
- return;
353
- const el = this.scrollEl().nativeElement;
354
- if (this.orientation() === 'horizontal') {
355
- const max = el.scrollWidth - el.clientWidth;
356
- this.prevEnabled.set(el.scrollLeft > 1);
357
- this.nextEnabled.set(el.scrollLeft < max - 1);
358
- }
359
- else {
360
- const max = el.scrollHeight - el.clientHeight;
361
- this.prevEnabled.set(el.scrollTop > 1);
362
- this.nextEnabled.set(el.scrollTop < max - 1);
363
- }
364
- }
365
- /** @ignore */
366
- onScroll() {
367
- this.updateNavigators();
368
- }
369
- /**
370
- * @ignore Scroll the strip by roughly one viewport in the given direction.
371
- * Smoothness comes from the container's CSS `scroll-behavior` (motion-aware),
372
- * not the JS `behavior` option.
373
- */
374
- scrollBy(direction) {
375
- const el = this.scrollEl().nativeElement;
376
- if (this.orientation() === 'horizontal') {
377
- el.scrollBy({ left: direction * el.clientWidth * 0.8 });
378
- }
379
- else {
380
- el.scrollBy({ top: direction * el.clientHeight * 0.8 });
381
- }
382
- }
383
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiTabList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
384
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: UiTabList, isStandalone: true, selector: "ui-tab-list", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, prevAriaLabel: { classPropertyName: "prevAriaLabel", publicName: "prevAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, nextAriaLabel: { classPropertyName: "nextAriaLabel", publicName: "nextAriaLabel", 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 [attr.aria-label]=\"prevAriaLabel() || null\"\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 [attr.aria-label]=\"nextAriaLabel() || null\"\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(--ui-tabs-track-thickness, var(--stroke-sm))) 0 0 var(--ui-tabs-track-stroke, 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-indicator-thickness, var(--ui-tabs-active-bar-size, var(--stroke-default)));border-radius:var(--radius-full);background-color:var(--ui-tabs-indicator-color, var(--ui-tabs-active-bar-color, var(--navigation-highoutlined-stroke-active)));pointer-events:none;will-change:transform,width;transition:transform var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),width var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),height var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-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:var(--ui-tabs-nav-size, 2.5rem);align-self:stretch;border:0;background-color:var(--ui-tabs-nav-surface, var(--navigation-highoutlined-surface-default));color:var(--ui-tabs-nav-color, var(--navigation-highoutlined-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-tab-list-nav:hover:not(:disabled){background-color:var(--ui-tabs-nav-surface-hover, var(--navigation-highoutlined-surface-hover));color:var(--ui-tabs-nav-color-hover, var(--navigation-highoutlined-content-hover))}.ui-tab-list-nav:disabled{color:var(--ui-tabs-nav-color-disabled, var(--navigation-highoutlined-content-disabled));cursor:default}:host._vertical{flex-direction:column;align-items:stretch;box-shadow:inset calc(-1 * var(--ui-tabs-track-thickness, var(--stroke-sm))) 0 0 0 var(--ui-tabs-track-stroke, 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-indicator-thickness, var(--ui-tabs-active-bar-size, var(--stroke-default)));height:auto}:host._vertical .ui-tab-list-nav{width:auto;height:var(--ui-tabs-nav-size, 2.5rem);align-self:auto}\n"], dependencies: [{ kind: "component", type: UiIcon, selector: "ui-icon", inputs: ["name", "size", "type", "family", "decorative", "ariaLabel"] }] }); }
385
- }
386
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiTabList, decorators: [{
387
- type: Component,
388
- args: [{ selector: 'ui-tab-list', imports: [UiIcon], host: {
389
- class: 'ui-tab-list',
390
- '[class._vertical]': "orientation() === 'vertical'",
391
- '[class._scrollable]': 'scrollable()',
392
- '[class._no-motion]': '!tabs.motion()',
393
- '(keydown)': 'onKeydown($event)',
394
- }, template: "@if (showNavigators()) {\n <button\n type=\"button\"\n class=\"ui-tab-list-nav _prev\"\n [attr.aria-label]=\"prevAriaLabel() || null\"\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 [attr.aria-label]=\"nextAriaLabel() || null\"\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(--ui-tabs-track-thickness, var(--stroke-sm))) 0 0 var(--ui-tabs-track-stroke, 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-indicator-thickness, var(--ui-tabs-active-bar-size, var(--stroke-default)));border-radius:var(--radius-full);background-color:var(--ui-tabs-indicator-color, var(--ui-tabs-active-bar-color, var(--navigation-highoutlined-stroke-active)));pointer-events:none;will-change:transform,width;transition:transform var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),width var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),height var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-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:var(--ui-tabs-nav-size, 2.5rem);align-self:stretch;border:0;background-color:var(--ui-tabs-nav-surface, var(--navigation-highoutlined-surface-default));color:var(--ui-tabs-nav-color, var(--navigation-highoutlined-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-tab-list-nav:hover:not(:disabled){background-color:var(--ui-tabs-nav-surface-hover, var(--navigation-highoutlined-surface-hover));color:var(--ui-tabs-nav-color-hover, var(--navigation-highoutlined-content-hover))}.ui-tab-list-nav:disabled{color:var(--ui-tabs-nav-color-disabled, var(--navigation-highoutlined-content-disabled));cursor:default}:host._vertical{flex-direction:column;align-items:stretch;box-shadow:inset calc(-1 * var(--ui-tabs-track-thickness, var(--stroke-sm))) 0 0 0 var(--ui-tabs-track-stroke, 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-indicator-thickness, var(--ui-tabs-active-bar-size, var(--stroke-default)));height:auto}:host._vertical .ui-tab-list-nav{width:auto;height:var(--ui-tabs-nav-size, 2.5rem);align-self:auto}\n"] }]
395
- }], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], prevAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "prevAriaLabel", required: false }] }], nextAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextAriaLabel", 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 }] }] } });
396
- /**
397
- * ui-tab-panels , thin wrapper grouping the {@link UiTabPanel}s. Fills the
398
- * remaining space beside/under the tab list.
399
- */
400
- class UiTabPanels {
401
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiTabPanels, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
402
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.7", 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"] }); }
403
- }
404
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiTabPanels, decorators: [{
405
- type: Component,
406
- 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"] }]
407
- }] });
408
- /**
409
- * ui-tabs , headless container orchestrating a set of tabs and their panels.
410
- *
411
- * Composition API: a root `ui-tabs` owns the shared state (`value` two-way
412
- * model, `orientation`, `scrollable`, `lazy`, `selectOnFocus`, `motion`), a
413
- * `ui-tab-list` renders the strip of `ui-tab` buttons (plus the sliding active
414
- * indicator and, when scrollable, the prev/next navigators), and a
415
- * `ui-tab-panels` holds one `ui-tab-panel` per tab. Every colour/metric comes
416
- * from the `navigation.*` design tokens; the active indicator glides , and each
417
- * panel fades in , via the shared motion system (reduced-motion aware).
418
- *
419
- * @example
420
- * ```html
421
- * <ui-tabs [(value)]="active">
422
- * <ui-tab-list ariaLabel="Sections">
423
- * <ui-tab [value]="0">Onglet 1</ui-tab>
424
- * <ui-tab [value]="1">Onglet 2</ui-tab>
425
- * </ui-tab-list>
426
- * <ui-tab-panels>
427
- * <ui-tab-panel [value]="0">Contenu 1…</ui-tab-panel>
428
- * <ui-tab-panel [value]="1">Contenu 2…</ui-tab-panel>
429
- * </ui-tab-panels>
430
- * </ui-tabs>
431
- * ```
432
- */
433
- class UiTabs {
434
- constructor() {
435
- /** Value of the active tab (two-way). `undefined` = no active tab. */
436
- this.value = model(undefined, /* @ts-ignore */
437
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
438
- /** Layout axis: `horizontal` (list on top) or `vertical` (list on the side). */
439
- this.orientation = input('horizontal', /* @ts-ignore */
440
- ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
441
- /** Enable overflow scrolling of the tab list with prev/next navigators. */
442
- this.scrollable = input(false, { ...(ngDevMode ? { debugName: "scrollable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
443
- /** Group default: render an inactive tab's panel only once it is first activated. */
444
- this.lazy = input(false, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
445
- /** Activate a tab as soon as it receives keyboard focus (automatic activation). */
446
- this.selectOnFocus = input(false, { ...(ngDevMode ? { debugName: "selectOnFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
447
- /** Show the prev/next navigators when `scrollable` (they still gate on overflow). */
448
- this.showNavigators = input(true, { ...(ngDevMode ? { debugName: "showNavigators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
449
- /** Animate the active indicator and panel transitions (reduced-motion always wins). */
450
- this.motion = input(true, { ...(ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
451
- /** Ripple Effect */
452
- this.ripple = input(true, { ...(ngDevMode ? { debugName: "ripple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
453
- /** Tabindex applied to the active tab (the group's single tab stop). */
454
- this.tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
455
- /** Fired whenever the active tab changes (user click / keyboard / focus). */
456
- this.tabChange = output();
457
- /** @ignore Unique id root for aria wiring between tabs and panels. */
458
- this.id = `ui-tabs-${nextUid++}`;
459
- /** @ignore All tabs projected under this container (across the list boundary). */
460
- this.tabs = contentChildren(forwardRef(() => UiTab), { ...(ngDevMode ? { debugName: "tabs" } : /* istanbul ignore next */ {}), descendants: true });
461
- /** @ignore Whether a `ui-tab-panels` wrapper is projected at all — some consumers use
462
- * `ui-tabs` as a navigation menu with no panel (a router outlet renders the content
463
- * instead, see the `TabMenu` story). `aria-controls` must not point at an id that resolves
464
- * to nothing. A single presence check on the wrapper (rather than a second
465
- * `contentChildren` query matched per tab value) — two sibling content-children queries on
466
- * this component broke `<ng-content>` projection for every `UiTab` but the first, a real
467
- * Angular/Ivy interaction, not something worth chasing further; this is the query-count-1
468
- * workaround. */
469
- this.hasPanels = contentChild(forwardRef(() => UiTabPanels), { ...(ngDevMode ? { debugName: "hasPanels" } : /* istanbul ignore next */ {}), descendants: true });
470
- /**
471
- * @ignore Value that owns the group's single tab stop (roving tabindex):
472
- * the active tab, or the first enabled tab when none is active.
473
- */
474
- this.tabStopValue = computed(() => {
475
- const enabled = this.tabs().filter((t) => !t.disabled());
476
- if (!enabled.length)
477
- return undefined;
478
- const active = enabled.find((t) => t.value() === this.value());
479
- return (active ?? enabled[0]).value();
480
- }, /* @ts-ignore */
481
- ...(ngDevMode ? [{ debugName: "tabStopValue" }] : /* istanbul ignore next */ []));
482
- }
483
- /** @ignore id of the tab button for a given value. */
484
- tabId(value) {
485
- return `${this.id}-tab-${value}`;
486
- }
487
- /** @ignore id of the panel for a given value — `null` when no `ui-tab-panels` wrapper is
488
- * projected at all (see `hasPanels` above), so the tab omits `aria-controls` rather than
489
- * dangle it. */
490
- panelId(value) {
491
- return this.hasPanels() ? `${this.id}-panel-${value}` : null;
492
- }
493
- /** @ignore Whether the given value is the active tab. */
494
- isActive(value) {
495
- return this.value() === value;
496
- }
497
- /** @ignore Activate a tab (no-op if already active); emits `tabChange`. */
498
- updateValue(value, event) {
499
- if (this.value() === value)
500
- return;
501
- this.value.set(value);
502
- this.tabChange.emit({ value, originalEvent: event });
503
- }
504
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiTabs, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
505
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.7", 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 }, ripple: { classPropertyName: "ripple", publicName: "ripple", 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 }, { propertyName: "hasPanels", first: true, predicate: i0.forwardRef(() => UiTabPanels), 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"] }); }
506
- }
507
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: UiTabs, decorators: [{
508
- type: Component,
509
- args: [{ selector: 'ui-tabs', template: '<ng-content />', host: {
510
- class: 'ui-tabs',
511
- '[class._vertical]': "orientation() === 'vertical'",
512
- }, styles: [":host{display:flex;flex-direction:column;width:100%}:host(._vertical){flex-direction:row;align-items:flex-start}\n"] }]
513
- }], 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 }] }], ripple: [{ type: i0.Input, args: [{ isSignal: true, alias: "ripple", 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 }] }], hasPanels: [{ type: i0.ContentChild, args: [forwardRef(() => UiTabPanels), { ...{ descendants: true }, isSignal: true }] }] } });
514
-
515
- /*
516
- * Public API Surface of ui-kit/ui-tabs
517
- */
518
-
519
- /**
520
- * Generated bundle index. Do not edit.
521
- */
522
-
339
+ `,
340
+ host: {
341
+ class: "ui-tab-panel",
342
+ role: "tabpanel",
343
+ tabindex: "0",
344
+ "[id]": "tabs.panelId(value())",
345
+ "[attr.aria-labelledby]": "tabs.tabId(value())",
346
+ "[hidden]": "!active()",
347
+ "[class._active]": "active()",
348
+ "[class._no-motion]": "!tabs.motion()"
349
+ },
350
+ styles: [":host{display:block;padding:var(--units-default) 0;color:var(--ui-tabs-panel-color, var(--global-text-default));font-family:var(--ui-tabs-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(--motion-overlay-in-duration, var(--transition-default)) var(--motion-overlay-in-easing, 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"]
351
+ }]
352
+ }],
353
+ ctorParameters: () => [],
354
+ propDecorators: {
355
+ value: [{
356
+ type: i0.Input,
357
+ args: [{
358
+ isSignal: true,
359
+ alias: "value",
360
+ required: true
361
+ }]
362
+ }],
363
+ lazy: [{
364
+ type: i0.Input,
365
+ args: [{
366
+ isSignal: true,
367
+ alias: "lazy",
368
+ required: false
369
+ }]
370
+ }],
371
+ content: [{
372
+ type: i0.ContentChild,
373
+ args: ["content", { isSignal: true }]
374
+ }]
375
+ }
376
+ });
377
+ var UiTabList = class UiTabList {
378
+ constructor() {
379
+ this.ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
380
+ this.prevAriaLabel = input("Défiler vers les onglets précédents", ...ngDevMode ? [{ debugName: "prevAriaLabel" }] : /* istanbul ignore next */ []);
381
+ this.nextAriaLabel = input("Défiler vers les onglets suivants", ...ngDevMode ? [{ debugName: "nextAriaLabel" }] : /* istanbul ignore next */ []);
382
+ this.tabs = inject(UiTabs);
383
+ this.destroyRef = inject(DestroyRef);
384
+ this.tabItems = contentChildren(UiTab, ...ngDevMode ? [{ debugName: "tabItems" }] : /* istanbul ignore next */ []);
385
+ this.scrollEl = viewChild.required("scroll", ...ngDevMode ? [{ debugName: "scrollEl" }] : /* istanbul ignore next */ []);
386
+ this.innerEl = viewChild.required("inner", ...ngDevMode ? [{ debugName: "innerEl" }] : /* istanbul ignore next */ []);
387
+ this.bar = signal(null, ...ngDevMode ? [{ debugName: "bar" }] : /* istanbul ignore next */ []);
388
+ this.resizeTick = signal(0, ...ngDevMode ? [{ debugName: "resizeTick" }] : /* istanbul ignore next */ []);
389
+ this.prevEnabled = signal(false, ...ngDevMode ? [{ debugName: "prevEnabled" }] : /* istanbul ignore next */ []);
390
+ this.nextEnabled = signal(false, ...ngDevMode ? [{ debugName: "nextEnabled" }] : /* istanbul ignore next */ []);
391
+ this.orientation = computed(() => this.tabs.orientation(), ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
392
+ this.scrollable = computed(() => this.tabs.scrollable(), ...ngDevMode ? [{ debugName: "scrollable" }] : /* istanbul ignore next */ []);
393
+ this.showNavigators = computed(() => this.scrollable() && this.tabs.showNavigators(), ...ngDevMode ? [{ debugName: "showNavigators" }] : /* istanbul ignore next */ []);
394
+ this.barTransform = computed(() => {
395
+ const b = this.bar();
396
+ if (!b) return null;
397
+ return this.orientation() === "horizontal" ? `translateX(${b.offset}px)` : `translateY(${b.offset}px)`;
398
+ }, ...ngDevMode ? [{ debugName: "barTransform" }] : /* istanbul ignore next */ []);
399
+ afterNextRender(() => {
400
+ const ro = new ResizeObserver(() => {
401
+ this.resizeTick.update((v) => v + 1);
402
+ this.updateNavigators();
403
+ });
404
+ ro.observe(this.scrollEl().nativeElement);
405
+ ro.observe(this.innerEl().nativeElement);
406
+ this.updateNavigators();
407
+ this.destroyRef.onDestroy(() => ro.disconnect());
408
+ });
409
+ afterRenderEffect(() => {
410
+ const activeValue = this.tabs.value();
411
+ this.orientation();
412
+ this.resizeTick();
413
+ const item = this.tabItems().find((t) => t.value() === activeValue && !t.disabled());
414
+ if (!item) {
415
+ this.bar.set(null);
416
+ return;
417
+ }
418
+ const btn = item.buttonEl().nativeElement;
419
+ const next = this.orientation() === "horizontal" ? {
420
+ offset: btn.offsetLeft,
421
+ length: btn.offsetWidth
422
+ } : {
423
+ offset: btn.offsetTop,
424
+ length: btn.offsetHeight
425
+ };
426
+ const cur = untracked(this.bar);
427
+ if (!cur || cur.offset !== next.offset || cur.length !== next.length) this.bar.set(next);
428
+ });
429
+ afterRenderEffect(() => {
430
+ const activeValue = this.tabs.value();
431
+ if (!this.scrollable()) return;
432
+ const item = this.tabItems().find((t) => t.value() === activeValue && !t.disabled());
433
+ if (item) this.scrollIntoView(item.buttonEl().nativeElement);
434
+ });
435
+ }
436
+ onKeydown(event) {
437
+ const horizontal = this.orientation() === "horizontal";
438
+ const nextKey = horizontal ? "ArrowRight" : "ArrowDown";
439
+ const prevKey = horizontal ? "ArrowLeft" : "ArrowUp";
440
+ if (![
441
+ nextKey,
442
+ prevKey,
443
+ "Home",
444
+ "End"
445
+ ].includes(event.key)) return;
446
+ const enabled = this.tabItems().filter((t) => !t.disabled());
447
+ if (!enabled.length) return;
448
+ const active = document.activeElement;
449
+ let pos = enabled.findIndex((t) => t.buttonEl().nativeElement === active);
450
+ if (pos === -1) return;
451
+ event.preventDefault();
452
+ switch (event.key) {
453
+ case nextKey:
454
+ pos = (pos + 1) % enabled.length;
455
+ break;
456
+ case prevKey:
457
+ pos = (pos - 1 + enabled.length) % enabled.length;
458
+ break;
459
+ case "Home":
460
+ pos = 0;
461
+ break;
462
+ case "End": pos = enabled.length - 1;
463
+ }
464
+ const target = enabled[pos];
465
+ target.focus();
466
+ this.scrollIntoView(target.buttonEl().nativeElement);
467
+ }
468
+ scrollIntoView(el) {
469
+ if (!this.scrollable()) return;
470
+ const viewport = this.scrollEl().nativeElement;
471
+ const horizontal = this.orientation() === "horizontal";
472
+ const start = horizontal ? el.offsetLeft : el.offsetTop;
473
+ const size = horizontal ? el.offsetWidth : el.offsetHeight;
474
+ const viewStart = horizontal ? viewport.scrollLeft : viewport.scrollTop;
475
+ const viewSize = horizontal ? viewport.clientWidth : viewport.clientHeight;
476
+ if (viewSize === 0) return;
477
+ let target;
478
+ if (start < viewStart) target = start;
479
+ else if (start + size > viewStart + viewSize) target = start + size - viewSize;
480
+ else return;
481
+ viewport.scrollTo(horizontal ? { left: target } : { top: target });
482
+ }
483
+ updateNavigators() {
484
+ if (!this.scrollable()) return;
485
+ const el = this.scrollEl().nativeElement;
486
+ if (this.orientation() === "horizontal") {
487
+ const max = el.scrollWidth - el.clientWidth;
488
+ this.prevEnabled.set(el.scrollLeft > 1);
489
+ this.nextEnabled.set(el.scrollLeft < max - 1);
490
+ } else {
491
+ const max = el.scrollHeight - el.clientHeight;
492
+ this.prevEnabled.set(el.scrollTop > 1);
493
+ this.nextEnabled.set(el.scrollTop < max - 1);
494
+ }
495
+ }
496
+ onScroll() {
497
+ this.updateNavigators();
498
+ }
499
+ scrollBy(direction) {
500
+ const el = this.scrollEl().nativeElement;
501
+ if (this.orientation() === "horizontal") el.scrollBy({ left: direction * el.clientWidth * .8 });
502
+ else el.scrollBy({ top: direction * el.clientHeight * .8 });
503
+ }
504
+ static {
505
+ this.ɵfac = i0.ɵɵngDeclareFactory({
506
+ minVersion: "12.0.0",
507
+ version: "22.3.0",
508
+ ngImport: i0,
509
+ type: UiTabList,
510
+ deps: [],
511
+ target: i0.ɵɵFactoryTarget.Component
512
+ });
513
+ }
514
+ static {
515
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
516
+ minVersion: "17.0.0",
517
+ version: "22.3.0",
518
+ type: UiTabList,
519
+ isStandalone: true,
520
+ selector: "ui-tab-list",
521
+ inputs: {
522
+ ariaLabel: {
523
+ classPropertyName: "ariaLabel",
524
+ publicName: "ariaLabel",
525
+ isSignal: true,
526
+ isRequired: false,
527
+ transformFunction: null
528
+ },
529
+ prevAriaLabel: {
530
+ classPropertyName: "prevAriaLabel",
531
+ publicName: "prevAriaLabel",
532
+ isSignal: true,
533
+ isRequired: false,
534
+ transformFunction: null
535
+ },
536
+ nextAriaLabel: {
537
+ classPropertyName: "nextAriaLabel",
538
+ publicName: "nextAriaLabel",
539
+ isSignal: true,
540
+ isRequired: false,
541
+ transformFunction: null
542
+ }
543
+ },
544
+ host: {
545
+ listeners: { "keydown": "onKeydown($event)" },
546
+ properties: {
547
+ "class._vertical": "orientation() === 'vertical'",
548
+ "class._scrollable": "scrollable()",
549
+ "class._no-motion": "!tabs.motion()"
550
+ },
551
+ classAttribute: "ui-tab-list"
552
+ },
553
+ queries: [{
554
+ propertyName: "tabItems",
555
+ predicate: UiTab,
556
+ isSignal: true
557
+ }],
558
+ viewQueries: [{
559
+ propertyName: "scrollEl",
560
+ first: true,
561
+ predicate: ["scroll"],
562
+ descendants: true,
563
+ isSignal: true
564
+ }, {
565
+ propertyName: "innerEl",
566
+ first: true,
567
+ predicate: ["inner"],
568
+ descendants: true,
569
+ isSignal: true
570
+ }],
571
+ ngImport: i0,
572
+ template: "@if (showNavigators()) {\n <button\n type=\"button\"\n class=\"ui-tab-list-nav _prev\"\n [attr.aria-label]=\"prevAriaLabel() || null\"\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 [attr.aria-label]=\"nextAriaLabel() || null\"\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",
573
+ styles: [":host{display:flex;flex-direction:row;align-items:stretch;position:relative;min-width:0;box-shadow:inset 0 calc(-1 * var(--ui-tabs-track-thickness, var(--stroke-sm))) 0 0 var(--ui-tabs-track-stroke, 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-indicator-thickness, var(--ui-tabs-active-bar-size, var(--stroke-default)));border-radius:var(--radius-full);background-color:var(--ui-tabs-indicator-color, var(--ui-tabs-active-bar-color, var(--navigation-highoutlined-stroke-active)));pointer-events:none;will-change:transform,width;transition:transform var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),width var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),height var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-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:var(--ui-tabs-nav-size, 2.5rem);align-self:stretch;border:0;background-color:var(--ui-tabs-nav-surface, var(--navigation-highoutlined-surface-default));color:var(--ui-tabs-nav-color, var(--navigation-highoutlined-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-tab-list-nav:hover:not(:disabled){background-color:var(--ui-tabs-nav-surface-hover, var(--navigation-highoutlined-surface-hover));color:var(--ui-tabs-nav-color-hover, var(--navigation-highoutlined-content-hover))}.ui-tab-list-nav:disabled{color:var(--ui-tabs-nav-color-disabled, var(--navigation-highoutlined-content-disabled));cursor:default}:host._vertical{flex-direction:column;align-items:stretch;box-shadow:inset calc(-1 * var(--ui-tabs-track-thickness, var(--stroke-sm))) 0 0 0 var(--ui-tabs-track-stroke, 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-indicator-thickness, var(--ui-tabs-active-bar-size, var(--stroke-default)));height:auto}:host._vertical .ui-tab-list-nav{width:auto;height:var(--ui-tabs-nav-size, 2.5rem);align-self:auto}\n"],
574
+ dependencies: [{
575
+ kind: "component",
576
+ type: UiIcon,
577
+ selector: "ui-icon",
578
+ inputs: [
579
+ "name",
580
+ "size",
581
+ "type",
582
+ "family",
583
+ "decorative",
584
+ "ariaLabel"
585
+ ]
586
+ }]
587
+ });
588
+ }
589
+ };
590
+ i0.ɵɵngDeclareClassMetadata({
591
+ minVersion: "12.0.0",
592
+ version: "22.3.0",
593
+ ngImport: i0,
594
+ type: UiTabList,
595
+ decorators: [{
596
+ type: Component,
597
+ args: [{
598
+ selector: "ui-tab-list",
599
+ imports: [UiIcon],
600
+ host: {
601
+ class: "ui-tab-list",
602
+ "[class._vertical]": "orientation() === 'vertical'",
603
+ "[class._scrollable]": "scrollable()",
604
+ "[class._no-motion]": "!tabs.motion()",
605
+ "(keydown)": "onKeydown($event)"
606
+ },
607
+ template: "@if (showNavigators()) {\n <button\n type=\"button\"\n class=\"ui-tab-list-nav _prev\"\n [attr.aria-label]=\"prevAriaLabel() || null\"\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 [attr.aria-label]=\"nextAriaLabel() || null\"\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",
608
+ styles: [":host{display:flex;flex-direction:row;align-items:stretch;position:relative;min-width:0;box-shadow:inset 0 calc(-1 * var(--ui-tabs-track-thickness, var(--stroke-sm))) 0 0 var(--ui-tabs-track-stroke, 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-indicator-thickness, var(--ui-tabs-active-bar-size, var(--stroke-default)));border-radius:var(--radius-full);background-color:var(--ui-tabs-indicator-color, var(--ui-tabs-active-bar-color, var(--navigation-highoutlined-stroke-active)));pointer-events:none;will-change:transform,width;transition:transform var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),width var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-easing, var(--transition-easeinout))) var(--ui-motion-delay, 0ms),height var(--ui-motion-duration, var(--motion-toggle-duration, var(--transition-default))) var(--ui-motion-easing, var(--motion-toggle-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:var(--ui-tabs-nav-size, 2.5rem);align-self:stretch;border:0;background-color:var(--ui-tabs-nav-surface, var(--navigation-highoutlined-surface-default));color:var(--ui-tabs-nav-color, var(--navigation-highoutlined-content-default));cursor:pointer;transition:color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout))),background-color var(--ui-control-transition-duration, var(--motion-hover-duration, var(--transition-default))) var(--ui-control-transition-easing, var(--motion-hover-easing, var(--transition-easeinout)))}.ui-tab-list-nav:hover:not(:disabled){background-color:var(--ui-tabs-nav-surface-hover, var(--navigation-highoutlined-surface-hover));color:var(--ui-tabs-nav-color-hover, var(--navigation-highoutlined-content-hover))}.ui-tab-list-nav:disabled{color:var(--ui-tabs-nav-color-disabled, var(--navigation-highoutlined-content-disabled));cursor:default}:host._vertical{flex-direction:column;align-items:stretch;box-shadow:inset calc(-1 * var(--ui-tabs-track-thickness, var(--stroke-sm))) 0 0 0 var(--ui-tabs-track-stroke, 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-indicator-thickness, var(--ui-tabs-active-bar-size, var(--stroke-default)));height:auto}:host._vertical .ui-tab-list-nav{width:auto;height:var(--ui-tabs-nav-size, 2.5rem);align-self:auto}\n"]
609
+ }]
610
+ }],
611
+ ctorParameters: () => [],
612
+ propDecorators: {
613
+ ariaLabel: [{
614
+ type: i0.Input,
615
+ args: [{
616
+ isSignal: true,
617
+ alias: "ariaLabel",
618
+ required: false
619
+ }]
620
+ }],
621
+ prevAriaLabel: [{
622
+ type: i0.Input,
623
+ args: [{
624
+ isSignal: true,
625
+ alias: "prevAriaLabel",
626
+ required: false
627
+ }]
628
+ }],
629
+ nextAriaLabel: [{
630
+ type: i0.Input,
631
+ args: [{
632
+ isSignal: true,
633
+ alias: "nextAriaLabel",
634
+ required: false
635
+ }]
636
+ }],
637
+ tabItems: [{
638
+ type: i0.ContentChildren,
639
+ args: [i0.forwardRef(() => UiTab), { isSignal: true }]
640
+ }],
641
+ scrollEl: [{
642
+ type: i0.ViewChild,
643
+ args: ["scroll", { isSignal: true }]
644
+ }],
645
+ innerEl: [{
646
+ type: i0.ViewChild,
647
+ args: ["inner", { isSignal: true }]
648
+ }]
649
+ }
650
+ });
651
+ var UiTabPanels = class UiTabPanels {
652
+ static {
653
+ this.ɵfac = i0.ɵɵngDeclareFactory({
654
+ minVersion: "12.0.0",
655
+ version: "22.3.0",
656
+ ngImport: i0,
657
+ type: UiTabPanels,
658
+ deps: [],
659
+ target: i0.ɵɵFactoryTarget.Component
660
+ });
661
+ }
662
+ static {
663
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
664
+ minVersion: "14.0.0",
665
+ version: "22.3.0",
666
+ type: UiTabPanels,
667
+ isStandalone: true,
668
+ selector: "ui-tab-panels",
669
+ host: { classAttribute: "ui-tab-panels" },
670
+ ngImport: i0,
671
+ template: "<ng-content />",
672
+ isInline: true,
673
+ styles: [":host{display:block;flex:1 1 auto;min-width:0}\n"]
674
+ });
675
+ }
676
+ };
677
+ i0.ɵɵngDeclareClassMetadata({
678
+ minVersion: "12.0.0",
679
+ version: "22.3.0",
680
+ ngImport: i0,
681
+ type: UiTabPanels,
682
+ decorators: [{
683
+ type: Component,
684
+ args: [{
685
+ selector: "ui-tab-panels",
686
+ template: "<ng-content />",
687
+ host: { class: "ui-tab-panels" },
688
+ styles: [":host{display:block;flex:1 1 auto;min-width:0}\n"]
689
+ }]
690
+ }]
691
+ });
692
+ var UiTabs = class UiTabs {
693
+ constructor() {
694
+ this.value = model(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
695
+ this.orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
696
+ this.scrollable = input(false, {
697
+ ...ngDevMode ? { debugName: "scrollable" } : /* istanbul ignore next */ {},
698
+ transform: booleanAttribute
699
+ });
700
+ this.lazy = input(false, {
701
+ ...ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {},
702
+ transform: booleanAttribute
703
+ });
704
+ this.selectOnFocus = input(false, {
705
+ ...ngDevMode ? { debugName: "selectOnFocus" } : /* istanbul ignore next */ {},
706
+ transform: booleanAttribute
707
+ });
708
+ this.showNavigators = input(true, {
709
+ ...ngDevMode ? { debugName: "showNavigators" } : /* istanbul ignore next */ {},
710
+ transform: booleanAttribute
711
+ });
712
+ this.motion = input(true, {
713
+ ...ngDevMode ? { debugName: "motion" } : /* istanbul ignore next */ {},
714
+ transform: booleanAttribute
715
+ });
716
+ this.ripple = input(true, {
717
+ ...ngDevMode ? { debugName: "ripple" } : /* istanbul ignore next */ {},
718
+ transform: booleanAttribute
719
+ });
720
+ this.tabindex = input(0, {
721
+ ...ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {},
722
+ transform: numberAttribute
723
+ });
724
+ this.tabChange = output();
725
+ this.id = `ui-tabs-${nextUid++}`;
726
+ this.tabs = contentChildren(forwardRef(() => UiTab), {
727
+ ...ngDevMode ? { debugName: "tabs" } : /* istanbul ignore next */ {},
728
+ descendants: true
729
+ });
730
+ this.hasPanels = contentChild(forwardRef(() => UiTabPanels), {
731
+ ...ngDevMode ? { debugName: "hasPanels" } : /* istanbul ignore next */ {},
732
+ descendants: true
733
+ });
734
+ this.tabStopValue = computed(() => {
735
+ const enabled = this.tabs().filter((t) => !t.disabled());
736
+ if (!enabled.length) return void 0;
737
+ return (enabled.find((t) => t.value() === this.value()) ?? enabled[0]).value();
738
+ }, ...ngDevMode ? [{ debugName: "tabStopValue" }] : /* istanbul ignore next */ []);
739
+ }
740
+ tabId(value) {
741
+ return `${this.id}-tab-${value}`;
742
+ }
743
+ panelId(value) {
744
+ return this.hasPanels() ? `${this.id}-panel-${value}` : null;
745
+ }
746
+ isActive(value) {
747
+ return this.value() === value;
748
+ }
749
+ updateValue(value, event) {
750
+ if (this.value() === value) return;
751
+ this.value.set(value);
752
+ this.tabChange.emit({
753
+ value,
754
+ originalEvent: event
755
+ });
756
+ }
757
+ static {
758
+ this.ɵfac = i0.ɵɵngDeclareFactory({
759
+ minVersion: "12.0.0",
760
+ version: "22.3.0",
761
+ ngImport: i0,
762
+ type: UiTabs,
763
+ deps: [],
764
+ target: i0.ɵɵFactoryTarget.Component
765
+ });
766
+ }
767
+ static {
768
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
769
+ minVersion: "17.2.0",
770
+ version: "22.3.0",
771
+ type: UiTabs,
772
+ isStandalone: true,
773
+ selector: "ui-tabs",
774
+ inputs: {
775
+ value: {
776
+ classPropertyName: "value",
777
+ publicName: "value",
778
+ isSignal: true,
779
+ isRequired: false,
780
+ transformFunction: null
781
+ },
782
+ orientation: {
783
+ classPropertyName: "orientation",
784
+ publicName: "orientation",
785
+ isSignal: true,
786
+ isRequired: false,
787
+ transformFunction: null
788
+ },
789
+ scrollable: {
790
+ classPropertyName: "scrollable",
791
+ publicName: "scrollable",
792
+ isSignal: true,
793
+ isRequired: false,
794
+ transformFunction: null
795
+ },
796
+ lazy: {
797
+ classPropertyName: "lazy",
798
+ publicName: "lazy",
799
+ isSignal: true,
800
+ isRequired: false,
801
+ transformFunction: null
802
+ },
803
+ selectOnFocus: {
804
+ classPropertyName: "selectOnFocus",
805
+ publicName: "selectOnFocus",
806
+ isSignal: true,
807
+ isRequired: false,
808
+ transformFunction: null
809
+ },
810
+ showNavigators: {
811
+ classPropertyName: "showNavigators",
812
+ publicName: "showNavigators",
813
+ isSignal: true,
814
+ isRequired: false,
815
+ transformFunction: null
816
+ },
817
+ motion: {
818
+ classPropertyName: "motion",
819
+ publicName: "motion",
820
+ isSignal: true,
821
+ isRequired: false,
822
+ transformFunction: null
823
+ },
824
+ ripple: {
825
+ classPropertyName: "ripple",
826
+ publicName: "ripple",
827
+ isSignal: true,
828
+ isRequired: false,
829
+ transformFunction: null
830
+ },
831
+ tabindex: {
832
+ classPropertyName: "tabindex",
833
+ publicName: "tabindex",
834
+ isSignal: true,
835
+ isRequired: false,
836
+ transformFunction: null
837
+ }
838
+ },
839
+ outputs: {
840
+ value: "valueChange",
841
+ tabChange: "tabChange"
842
+ },
843
+ host: {
844
+ properties: { "class._vertical": "orientation() === 'vertical'" },
845
+ classAttribute: "ui-tabs"
846
+ },
847
+ queries: [{
848
+ propertyName: "tabs",
849
+ predicate: i0.forwardRef(() => UiTab),
850
+ descendants: true,
851
+ isSignal: true
852
+ }, {
853
+ propertyName: "hasPanels",
854
+ first: true,
855
+ predicate: i0.forwardRef(() => UiTabPanels),
856
+ descendants: true,
857
+ isSignal: true
858
+ }],
859
+ ngImport: i0,
860
+ template: "<ng-content />",
861
+ isInline: true,
862
+ styles: [":host{display:flex;flex-direction:column;width:100%}:host(._vertical){flex-direction:row;align-items:flex-start}\n"]
863
+ });
864
+ }
865
+ };
866
+ i0.ɵɵngDeclareClassMetadata({
867
+ minVersion: "12.0.0",
868
+ version: "22.3.0",
869
+ ngImport: i0,
870
+ type: UiTabs,
871
+ decorators: [{
872
+ type: Component,
873
+ args: [{
874
+ selector: "ui-tabs",
875
+ template: "<ng-content />",
876
+ host: {
877
+ class: "ui-tabs",
878
+ "[class._vertical]": "orientation() === 'vertical'"
879
+ },
880
+ styles: [":host{display:flex;flex-direction:column;width:100%}:host(._vertical){flex-direction:row;align-items:flex-start}\n"]
881
+ }]
882
+ }],
883
+ propDecorators: {
884
+ value: [{
885
+ type: i0.Input,
886
+ args: [{
887
+ isSignal: true,
888
+ alias: "value",
889
+ required: false
890
+ }]
891
+ }, {
892
+ type: i0.Output,
893
+ args: ["valueChange"]
894
+ }],
895
+ orientation: [{
896
+ type: i0.Input,
897
+ args: [{
898
+ isSignal: true,
899
+ alias: "orientation",
900
+ required: false
901
+ }]
902
+ }],
903
+ scrollable: [{
904
+ type: i0.Input,
905
+ args: [{
906
+ isSignal: true,
907
+ alias: "scrollable",
908
+ required: false
909
+ }]
910
+ }],
911
+ lazy: [{
912
+ type: i0.Input,
913
+ args: [{
914
+ isSignal: true,
915
+ alias: "lazy",
916
+ required: false
917
+ }]
918
+ }],
919
+ selectOnFocus: [{
920
+ type: i0.Input,
921
+ args: [{
922
+ isSignal: true,
923
+ alias: "selectOnFocus",
924
+ required: false
925
+ }]
926
+ }],
927
+ showNavigators: [{
928
+ type: i0.Input,
929
+ args: [{
930
+ isSignal: true,
931
+ alias: "showNavigators",
932
+ required: false
933
+ }]
934
+ }],
935
+ motion: [{
936
+ type: i0.Input,
937
+ args: [{
938
+ isSignal: true,
939
+ alias: "motion",
940
+ required: false
941
+ }]
942
+ }],
943
+ ripple: [{
944
+ type: i0.Input,
945
+ args: [{
946
+ isSignal: true,
947
+ alias: "ripple",
948
+ required: false
949
+ }]
950
+ }],
951
+ tabindex: [{
952
+ type: i0.Input,
953
+ args: [{
954
+ isSignal: true,
955
+ alias: "tabindex",
956
+ required: false
957
+ }]
958
+ }],
959
+ tabChange: [{
960
+ type: i0.Output,
961
+ args: ["tabChange"]
962
+ }],
963
+ tabs: [{
964
+ type: i0.ContentChildren,
965
+ args: [forwardRef(() => UiTab), {
966
+ descendants: true,
967
+ isSignal: true
968
+ }]
969
+ }],
970
+ hasPanels: [{
971
+ type: i0.ContentChild,
972
+ args: [forwardRef(() => UiTabPanels), {
973
+ descendants: true,
974
+ isSignal: true
975
+ }]
976
+ }]
977
+ }
978
+ });
523
979
  export { UiTab, UiTabList, UiTabPanel, UiTabPanels, UiTabs };
524
- //# sourceMappingURL=4sh-ui-kit-navigation-ui-tabs.mjs.map
980
+
981
+ //# sourceMappingURL=4sh-ui-kit-navigation-ui-tabs.mjs.map