@aeris-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.10

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 (288) hide show
  1. package/README.md +200 -191
  2. package/fesm2022/aeris-ui-core-accordion.mjs +646 -255
  3. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  4. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs +1228 -446
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  8. package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  10. package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
  11. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  12. package/fesm2022/aeris-ui-core-badge.mjs +562 -115
  13. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  14. package/fesm2022/aeris-ui-core-block-ui.mjs +209 -101
  15. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  16. package/fesm2022/aeris-ui-core-breadcrumb.mjs +581 -189
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  18. package/fesm2022/aeris-ui-core-button-group.mjs +153 -38
  19. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  20. package/fesm2022/aeris-ui-core-button.mjs +741 -139
  21. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  22. package/fesm2022/aeris-ui-core-card.mjs +371 -101
  23. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-carousel.mjs +773 -369
  25. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-cascade-select.mjs +1171 -521
  27. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-chart.mjs +455 -258
  29. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-checkbox.mjs +440 -140
  31. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-chip.mjs +430 -117
  33. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  34. package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
  35. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  36. package/fesm2022/aeris-ui-core-code-block.mjs +637 -0
  37. package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
  38. package/fesm2022/aeris-ui-core-color-picker.mjs +1340 -700
  39. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  40. package/fesm2022/aeris-ui-core-compare.mjs +823 -318
  41. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  42. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1404 -555
  43. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  44. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1471 -740
  45. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  46. package/fesm2022/aeris-ui-core-context-menu.mjs +918 -443
  47. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  48. package/fesm2022/aeris-ui-core-date-picker.mjs +1942 -1123
  49. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  50. package/fesm2022/aeris-ui-core-dialog.mjs +1079 -346
  51. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  52. package/fesm2022/aeris-ui-core-divider.mjs +204 -43
  53. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  54. package/fesm2022/aeris-ui-core-drawer.mjs +1015 -322
  55. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +410 -254
  57. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-editor.mjs +967 -587
  59. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-file-upload.mjs +1379 -522
  61. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
  63. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
  65. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
  67. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  68. package/fesm2022/aeris-ui-core-form-field.mjs +688 -0
  69. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
  70. package/fesm2022/aeris-ui-core-galleria.mjs +2446 -1117
  71. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  72. package/fesm2022/aeris-ui-core-glass.mjs +110 -33
  73. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-icon-field.mjs +426 -98
  75. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-inplace.mjs +452 -130
  77. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-input-group.mjs +413 -107
  79. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  80. package/fesm2022/aeris-ui-core-input-mask.mjs +658 -255
  81. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  82. package/fesm2022/aeris-ui-core-input-number.mjs +926 -291
  83. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
  85. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  86. package/fesm2022/aeris-ui-core-input-text.mjs +625 -158
  87. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  88. package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
  89. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-mega-menu.mjs +613 -382
  91. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-menu.mjs +1062 -472
  93. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-menubar.mjs +994 -393
  95. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-message.mjs +477 -145
  97. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-meter-group.mjs +623 -230
  99. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-multi-select.mjs +1598 -561
  101. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  102. package/fesm2022/aeris-ui-core-order-list.mjs +592 -220
  103. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-organization-chart.mjs +485 -199
  105. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-paginator.mjs +428 -123
  107. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-panel.mjs +596 -196
  109. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-password.mjs +925 -249
  111. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-pick-list.mjs +1280 -659
  113. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-popover.mjs +912 -375
  115. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-progress-bar.mjs +549 -176
  117. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-progress-spinner.mjs +410 -133
  119. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-radio-button.mjs +394 -124
  121. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-rating.mjs +506 -231
  123. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
  125. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  126. package/fesm2022/aeris-ui-core-scroll-top.mjs +226 -63
  127. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  128. package/fesm2022/aeris-ui-core-select.mjs +1845 -648
  129. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  130. package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
  131. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  132. package/fesm2022/aeris-ui-core-slider.mjs +884 -430
  133. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  134. package/fesm2022/aeris-ui-core-speed-dial.mjs +861 -337
  135. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  136. package/fesm2022/aeris-ui-core-split-button.mjs +955 -266
  137. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  138. package/fesm2022/aeris-ui-core-splitter.mjs +812 -352
  139. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  140. package/fesm2022/aeris-ui-core-stepper.mjs +697 -254
  141. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  142. package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
  143. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  144. package/fesm2022/aeris-ui-core-table.mjs +2034 -869
  145. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-tabs.mjs +789 -279
  147. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-textarea.mjs +856 -219
  149. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  150. package/fesm2022/aeris-ui-core-theme-builder.mjs +1284 -1399
  151. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  152. package/fesm2022/aeris-ui-core-theming.mjs +132 -144
  153. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  154. package/fesm2022/aeris-ui-core-tiered-menu.mjs +909 -441
  155. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  156. package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
  157. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  158. package/fesm2022/aeris-ui-core-toast.mjs +1076 -384
  159. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  160. package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
  161. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  162. package/fesm2022/aeris-ui-core-toolbar.mjs +458 -121
  163. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  164. package/fesm2022/aeris-ui-core-tooltip.mjs +625 -330
  165. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  166. package/fesm2022/aeris-ui-core-tree-select.mjs +1453 -621
  167. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  168. package/fesm2022/aeris-ui-core-tree-table.mjs +2019 -940
  169. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  170. package/fesm2022/aeris-ui-core-tree.mjs +1107 -658
  171. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  172. package/fesm2022/aeris-ui-core.mjs +985 -316
  173. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  174. package/package.json +20 -8
  175. package/schematics/ng-add/schema.json +1 -1
  176. package/schematics/runtime/schematics/ng-add/options.js +4 -4
  177. package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
  178. package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
  179. package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
  180. package/schematics/runtime/theme-builder/aeris-contrast.js +6 -17
  181. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  182. package/schematics/runtime/theme-builder/aeris-foundation.js +10 -4
  183. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  184. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +28 -5
  185. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
  186. package/schematics/runtime/theme-builder/aeris-theme-generator.js +2 -2
  187. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
  188. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +22 -8
  189. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
  190. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +12 -4
  191. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
  192. package/schematics/runtime/theme-builder/aeris-theme-validation.js +7 -1
  193. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
  194. package/schematics/runtime/theme-builder/aeris-theme.js +49 -33
  195. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  196. package/styles/_fallback-colors.scss +10 -0
  197. package/styles/_mobile.scss +16 -0
  198. package/styles/_tokens.scss +5 -5
  199. package/styles/aeris.css +412 -125
  200. package/styles/controls.css +61 -29
  201. package/tools/aeris-theme.mjs +2 -2
  202. package/tools/aeris-theme.schema.json +5 -2
  203. package/types/aeris-ui-core-accordion.d.ts +167 -93
  204. package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
  205. package/types/aeris-ui-core-auto-complete.d.ts +327 -140
  206. package/types/aeris-ui-core-auto-focus.d.ts +24 -16
  207. package/types/aeris-ui-core-avatar.d.ts +112 -42
  208. package/types/aeris-ui-core-badge.d.ts +160 -46
  209. package/types/aeris-ui-core-block-ui.d.ts +47 -27
  210. package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
  211. package/types/aeris-ui-core-button-group.d.ts +37 -16
  212. package/types/aeris-ui-core-button.d.ts +226 -67
  213. package/types/aeris-ui-core-card.d.ts +74 -37
  214. package/types/aeris-ui-core-carousel.d.ts +201 -117
  215. package/types/aeris-ui-core-cascade-select.d.ts +257 -123
  216. package/types/aeris-ui-core-chart.d.ts +134 -84
  217. package/types/aeris-ui-core-checkbox.d.ts +139 -54
  218. package/types/aeris-ui-core-chip.d.ts +116 -51
  219. package/types/aeris-ui-core-class-names.d.ts +22 -20
  220. package/types/aeris-ui-core-code-block.d.ts +188 -0
  221. package/types/aeris-ui-core-color-picker.d.ts +348 -143
  222. package/types/aeris-ui-core-compare.d.ts +224 -102
  223. package/types/aeris-ui-core-confirm-dialog.d.ts +442 -245
  224. package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
  225. package/types/aeris-ui-core-context-menu.d.ts +264 -146
  226. package/types/aeris-ui-core-date-picker.d.ts +489 -217
  227. package/types/aeris-ui-core-dialog.d.ts +288 -117
  228. package/types/aeris-ui-core-divider.d.ts +58 -20
  229. package/types/aeris-ui-core-drawer.d.ts +273 -112
  230. package/types/aeris-ui-core-dynamic-dialog.d.ts +158 -137
  231. package/types/aeris-ui-core-editor.d.ts +250 -123
  232. package/types/aeris-ui-core-file-upload.d.ts +367 -197
  233. package/types/aeris-ui-core-filter-service.d.ts +48 -52
  234. package/types/aeris-ui-core-fluid.d.ts +12 -9
  235. package/types/aeris-ui-core-focus-trap.d.ts +39 -31
  236. package/types/aeris-ui-core-form-field.d.ts +163 -0
  237. package/types/aeris-ui-core-galleria.d.ts +588 -256
  238. package/types/aeris-ui-core-glass.d.ts +24 -11
  239. package/types/aeris-ui-core-icon-field.d.ts +94 -32
  240. package/types/aeris-ui-core-inplace.d.ts +123 -62
  241. package/types/aeris-ui-core-input-group.d.ts +84 -33
  242. package/types/aeris-ui-core-input-mask.d.ts +194 -69
  243. package/types/aeris-ui-core-input-number.d.ts +272 -87
  244. package/types/aeris-ui-core-input-otp.d.ts +191 -81
  245. package/types/aeris-ui-core-input-text.d.ts +185 -60
  246. package/types/aeris-ui-core-key-filter.d.ts +53 -39
  247. package/types/aeris-ui-core-mega-menu.d.ts +175 -121
  248. package/types/aeris-ui-core-menu.d.ts +277 -168
  249. package/types/aeris-ui-core-menubar.d.ts +273 -135
  250. package/types/aeris-ui-core-message.d.ts +132 -60
  251. package/types/aeris-ui-core-meter-group.d.ts +163 -90
  252. package/types/aeris-ui-core-multi-select.d.ts +439 -180
  253. package/types/aeris-ui-core-order-list.d.ts +144 -66
  254. package/types/aeris-ui-core-organization-chart.d.ts +133 -77
  255. package/types/aeris-ui-core-paginator.d.ts +93 -38
  256. package/types/aeris-ui-core-panel.d.ts +149 -78
  257. package/types/aeris-ui-core-password.d.ts +258 -102
  258. package/types/aeris-ui-core-pick-list.d.ts +374 -179
  259. package/types/aeris-ui-core-popover.d.ts +219 -105
  260. package/types/aeris-ui-core-progress-bar.d.ts +157 -73
  261. package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
  262. package/types/aeris-ui-core-radio-button.d.ts +124 -50
  263. package/types/aeris-ui-core-rating.d.ts +149 -76
  264. package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
  265. package/types/aeris-ui-core-scroll-top.d.ts +66 -29
  266. package/types/aeris-ui-core-select.d.ts +475 -217
  267. package/types/aeris-ui-core-skeleton.d.ts +39 -17
  268. package/types/aeris-ui-core-slider.d.ts +270 -115
  269. package/types/aeris-ui-core-speed-dial.d.ts +241 -111
  270. package/types/aeris-ui-core-split-button.d.ts +267 -113
  271. package/types/aeris-ui-core-splitter.d.ts +225 -106
  272. package/types/aeris-ui-core-stepper.d.ts +184 -91
  273. package/types/aeris-ui-core-style-class.d.ts +141 -71
  274. package/types/aeris-ui-core-table.d.ts +596 -304
  275. package/types/aeris-ui-core-tabs.d.ts +181 -76
  276. package/types/aeris-ui-core-textarea.d.ts +261 -78
  277. package/types/aeris-ui-core-theme-builder.d.ts +472 -450
  278. package/types/aeris-ui-core-theming.d.ts +42 -45
  279. package/types/aeris-ui-core-tiered-menu.d.ts +251 -142
  280. package/types/aeris-ui-core-timeline.d.ts +109 -71
  281. package/types/aeris-ui-core-toast.d.ts +225 -115
  282. package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
  283. package/types/aeris-ui-core-toolbar.d.ts +98 -41
  284. package/types/aeris-ui-core-tooltip.d.ts +157 -88
  285. package/types/aeris-ui-core-tree-select.d.ts +364 -171
  286. package/types/aeris-ui-core-tree-table.d.ts +566 -286
  287. package/types/aeris-ui-core-tree.d.ts +270 -165
  288. package/types/aeris-ui-core.d.ts +197 -72
@@ -1,257 +1,600 @@
1
- import { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, TemplateRef, Directive, ElementRef, input, booleanAttribute, viewChild, contentChild, Component, PLATFORM_ID, DestroyRef, model, output, contentChildren, computed, viewChildren, signal, afterNextRender, effect } from '@angular/core';
4
-
5
- class AerisTabHeaderTemplate {
6
- template = inject(TemplateRef);
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTabHeaderTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisTabHeaderTemplate, isStandalone: true, selector: "ng-template[aerisTabHeader]", ngImport: i0 });
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTabHeaderTemplate, decorators: [{
11
- type: Directive,
12
- args: [{ selector: 'ng-template[aerisTabHeader]' }]
13
- }] });
1
+ import { NgTemplateOutlet, isPlatformBrowser } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { Component, DestroyRef, Directive, ElementRef, InjectionToken, PLATFORM_ID, TemplateRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, contentChildren, effect, inject, input, model, output, signal, viewChild, viewChildren } from "@angular/core";
4
+ const AERIS_TABS_OWNER = new InjectionToken("AerisTabsOwner");
5
+ var AerisTabHeaderTemplate = class AerisTabHeaderTemplate {
6
+ template = inject(TemplateRef);
7
+ static ɵfac = i0.ɵɵngDeclareFactory({
8
+ minVersion: "12.0.0",
9
+ version: "22.2.2",
10
+ ngImport: i0,
11
+ type: AerisTabHeaderTemplate,
12
+ deps: [],
13
+ target: i0.ɵɵFactoryTarget.Directive
14
+ });
15
+ static ɵdir = i0.ɵɵngDeclareDirective({
16
+ minVersion: "14.0.0",
17
+ version: "22.2.2",
18
+ type: AerisTabHeaderTemplate,
19
+ isStandalone: true,
20
+ selector: "ng-template[aerisTabHeader]",
21
+ ngImport: i0
22
+ });
23
+ };
24
+ i0.ɵɵngDeclareClassMetadata({
25
+ minVersion: "12.0.0",
26
+ version: "22.2.2",
27
+ ngImport: i0,
28
+ type: AerisTabHeaderTemplate,
29
+ decorators: [{
30
+ type: Directive,
31
+ args: [{ selector: "ng-template[aerisTabHeader]" }]
32
+ }]
33
+ });
34
+ var AerisTabContentTemplate = class AerisTabContentTemplate {
35
+ template = inject(TemplateRef);
36
+ renderStrategy = input("preserve", {
37
+ ...ngDevMode ? { debugName: "renderStrategy" } : /* istanbul ignore next */ {},
38
+ alias: "aerisTabContent",
39
+ transform: (value) => value || "preserve"
40
+ });
41
+ static ɵfac = i0.ɵɵngDeclareFactory({
42
+ minVersion: "12.0.0",
43
+ version: "22.2.2",
44
+ ngImport: i0,
45
+ type: AerisTabContentTemplate,
46
+ deps: [],
47
+ target: i0.ɵɵFactoryTarget.Directive
48
+ });
49
+ static ɵdir = i0.ɵɵngDeclareDirective({
50
+ minVersion: "17.1.0",
51
+ version: "22.2.2",
52
+ type: AerisTabContentTemplate,
53
+ isStandalone: true,
54
+ selector: "ng-template[aerisTabContent]",
55
+ inputs: { renderStrategy: {
56
+ classPropertyName: "renderStrategy",
57
+ publicName: "aerisTabContent",
58
+ isSignal: true,
59
+ isRequired: false,
60
+ transformFunction: null
61
+ } },
62
+ ngImport: i0
63
+ });
64
+ };
65
+ i0.ɵɵngDeclareClassMetadata({
66
+ minVersion: "12.0.0",
67
+ version: "22.2.2",
68
+ ngImport: i0,
69
+ type: AerisTabContentTemplate,
70
+ decorators: [{
71
+ type: Directive,
72
+ args: [{ selector: "ng-template[aerisTabContent]" }]
73
+ }],
74
+ propDecorators: { renderStrategy: [{
75
+ type: i0.Input,
76
+ args: [{
77
+ isSignal: true,
78
+ alias: "aerisTabContent",
79
+ required: false
80
+ }]
81
+ }] }
82
+ });
14
83
  let nextPanelId = 0;
15
- class AerisTabPanel {
16
- element = inject(ElementRef);
17
- instanceId = nextPanelId++;
18
- value = input.required(/* @ts-ignore */
19
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
20
- label = input.required(/* @ts-ignore */
21
- ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
22
- disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
23
- panelId = `aeris-tab-panel-${this.instanceId}`;
24
- tabId = `aeris-tab-${this.instanceId}`;
25
- content = viewChild.required('content', /* @ts-ignore */
26
- ...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
27
- headerTemplate = contentChild(AerisTabHeaderTemplate, { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
28
- isDirectPanelOf(tabsHost) {
29
- const parent = this.element.nativeElement.parentElement;
30
- return (parent?.classList.contains('aeris-tabs__panel-source') === true &&
31
- parent.parentElement === tabsHost);
32
- }
33
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTabPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });
34
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.6", type: AerisTabPanel, isStandalone: true, selector: "aeris-tab-panel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.display": "\"none\"" } }, queries: [{ propertyName: "headerTemplate", first: true, predicate: AerisTabHeaderTemplate, isSignal: true }], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
84
+ var AerisTabPanel = class AerisTabPanel {
85
+ owner = inject(AERIS_TABS_OWNER, { optional: true });
86
+ instanceId = nextPanelId++;
87
+ value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
88
+ label = input.required(...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
89
+ disabled = input(false, {
90
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
91
+ transform: booleanAttribute
92
+ });
93
+ panelId = `aeris-tab-panel-${this.instanceId}`;
94
+ tabId = `aeris-tab-${this.instanceId}`;
95
+ projectedContent = viewChild.required("content", ...ngDevMode ? [{ debugName: "projectedContent" }] : /* istanbul ignore next */ []);
96
+ deferredContent = contentChild(AerisTabContentTemplate, {
97
+ ...ngDevMode ? { debugName: "deferredContent" } : /* istanbul ignore next */ {},
98
+ descendants: false
99
+ });
100
+ headerTemplate = contentChild(AerisTabHeaderTemplate, {
101
+ ...ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {},
102
+ descendants: false
103
+ });
104
+ content = computed(() => this.deferredContent()?.template ?? this.projectedContent(), ...ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []);
105
+ renderStrategy = computed(() => this.deferredContent()?.renderStrategy() ?? "eager", ...ngDevMode ? [{ debugName: "renderStrategy" }] : /* istanbul ignore next */ []);
106
+ isDirectPanelOf(tabsHost) {
107
+ return this.owner?.host === tabsHost;
108
+ }
109
+ static ɵfac = i0.ɵɵngDeclareFactory({
110
+ minVersion: "12.0.0",
111
+ version: "22.2.2",
112
+ ngImport: i0,
113
+ type: AerisTabPanel,
114
+ deps: [],
115
+ target: i0.ɵɵFactoryTarget.Component
116
+ });
117
+ static ɵcmp = i0.ɵɵngDeclareComponent({
118
+ minVersion: "17.2.0",
119
+ version: "22.2.2",
120
+ type: AerisTabPanel,
121
+ isStandalone: true,
122
+ selector: "aeris-tab-panel",
123
+ inputs: {
124
+ value: {
125
+ classPropertyName: "value",
126
+ publicName: "value",
127
+ isSignal: true,
128
+ isRequired: true,
129
+ transformFunction: null
130
+ },
131
+ label: {
132
+ classPropertyName: "label",
133
+ publicName: "label",
134
+ isSignal: true,
135
+ isRequired: true,
136
+ transformFunction: null
137
+ },
138
+ disabled: {
139
+ classPropertyName: "disabled",
140
+ publicName: "disabled",
141
+ isSignal: true,
142
+ isRequired: false,
143
+ transformFunction: null
144
+ }
145
+ },
146
+ host: { properties: { "style.display": "\"none\"" } },
147
+ queries: [{
148
+ propertyName: "deferredContent",
149
+ first: true,
150
+ predicate: AerisTabContentTemplate,
151
+ isSignal: true
152
+ }, {
153
+ propertyName: "headerTemplate",
154
+ first: true,
155
+ predicate: AerisTabHeaderTemplate,
156
+ isSignal: true
157
+ }],
158
+ viewQueries: [{
159
+ propertyName: "projectedContent",
160
+ first: true,
161
+ predicate: ["content"],
162
+ descendants: true,
163
+ isSignal: true
164
+ }],
165
+ ngImport: i0,
166
+ template: `
35
167
  <ng-template #content>
36
168
  <ng-content />
37
169
  </ng-template>
38
- `, isInline: true });
39
- }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTabPanel, decorators: [{
41
- type: Component,
42
- args: [{
43
- selector: 'aeris-tab-panel',
44
- template: `
170
+ `,
171
+ isInline: true
172
+ });
173
+ };
174
+ i0.ɵɵngDeclareClassMetadata({
175
+ minVersion: "12.0.0",
176
+ version: "22.2.2",
177
+ ngImport: i0,
178
+ type: AerisTabPanel,
179
+ decorators: [{
180
+ type: Component,
181
+ args: [{
182
+ selector: "aeris-tab-panel",
183
+ template: `
45
184
  <ng-template #content>
46
185
  <ng-content />
47
186
  </ng-template>
48
187
  `,
49
- host: {
50
- '[style.display]': '"none"',
51
- },
52
- }]
53
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], content: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisTabHeaderTemplate), { ...{
54
- descendants: false,
55
- }, isSignal: true }] }] } });
56
- class AerisTabs {
57
- hostElement = inject(ElementRef).nativeElement;
58
- isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
59
- destroyRef = inject(DestroyRef);
60
- value = model('', /* @ts-ignore */
61
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
62
- ariaLabel = input('', /* @ts-ignore */
63
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
64
- ariaLabelledBy = input('', /* @ts-ignore */
65
- ...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
66
- orientation = input('horizontal', /* @ts-ignore */
67
- ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
68
- activationMode = input('automatic', /* @ts-ignore */
69
- ...(ngDevMode ? [{ debugName: "activationMode" }] : /* istanbul ignore next */ []));
70
- variant = input('line', /* @ts-ignore */
71
- ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
72
- size = input('md', /* @ts-ignore */
73
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
74
- justify = input('start', /* @ts-ignore */
75
- ...(ngDevMode ? [{ debugName: "justify" }] : /* istanbul ignore next */ []));
76
- scrollable = input(true, { ...(ngDevMode ? { debugName: "scrollable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
77
- panelTabIndex = input(0, /* @ts-ignore */
78
- ...(ngDevMode ? [{ debugName: "panelTabIndex" }] : /* istanbul ignore next */ []));
79
- changed = output();
80
- tabFocused = output();
81
- discoveredPanels = contentChildren(AerisTabPanel, { ...(ngDevMode ? { debugName: "discoveredPanels" } : /* istanbul ignore next */ {}), descendants: true });
82
- panels = computed(() => this.discoveredPanels().filter((panel) => panel.isDirectPanelOf(this.hostElement)), /* @ts-ignore */
83
- ...(ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []));
84
- tabButtons = viewChildren('tabButton', /* @ts-ignore */
85
- ...(ngDevMode ? [{ debugName: "tabButtons" }] : /* istanbul ignore next */ []));
86
- tabList = viewChild('tabList', /* @ts-ignore */
87
- ...(ngDevMode ? [{ debugName: "tabList" }] : /* istanbul ignore next */ []));
88
- tabHeader = viewChild('tabHeader', /* @ts-ignore */
89
- ...(ngDevMode ? [{ debugName: "tabHeader" }] : /* istanbul ignore next */ []));
90
- focusedValue = signal('', /* @ts-ignore */
91
- ...(ngDevMode ? [{ debugName: "focusedValue" }] : /* istanbul ignore next */ []));
92
- hasOverflow = signal(false, /* @ts-ignore */
93
- ...(ngDevMode ? [{ debugName: "hasOverflow" }] : /* istanbul ignore next */ []));
94
- canScrollPrevious = signal(false, /* @ts-ignore */
95
- ...(ngDevMode ? [{ debugName: "canScrollPrevious" }] : /* istanbul ignore next */ []));
96
- canScrollNext = signal(false, /* @ts-ignore */
97
- ...(ngDevMode ? [{ debugName: "canScrollNext" }] : /* istanbul ignore next */ []));
98
- showScrollControls = computed(() => this.scrollable() && this.orientation() === 'horizontal' && this.hasOverflow(), /* @ts-ignore */
99
- ...(ngDevMode ? [{ debugName: "showScrollControls" }] : /* istanbul ignore next */ []));
100
- activePanel = computed(() => this.panels().find((panel) => !panel.disabled() && panel.value() === this.value()) ??
101
- this.panels().find((panel) => !panel.disabled()), /* @ts-ignore */
102
- ...(ngDevMode ? [{ debugName: "activePanel" }] : /* istanbul ignore next */ []));
103
- focusedPanel = computed(() => this.panels().find((panel) => !panel.disabled() && panel.value() === this.focusedValue()) ??
104
- this.activePanel(), /* @ts-ignore */
105
- ...(ngDevMode ? [{ debugName: "focusedPanel" }] : /* istanbul ignore next */ []));
106
- constructor() {
107
- afterNextRender(() => {
108
- this.updateScrollState();
109
- this.observeTabSizing();
110
- });
111
- effect(() => {
112
- const panelSignature = this.panels()
113
- .map((panel) => `${panel.value()}:${panel.label()}:${panel.disabled()}`)
114
- .join('|');
115
- if (!panelSignature)
116
- return;
117
- queueMicrotask(() => this.updateScrollState());
118
- });
119
- }
120
- select(valueOrPanel, originalEvent = null) {
121
- const panel = typeof valueOrPanel === 'string'
122
- ? this.panels().find((candidate) => candidate.value() === valueOrPanel)
123
- : valueOrPanel;
124
- if (!panel || panel.disabled())
125
- return;
126
- const previousValue = this.activePanel()?.value() ?? '';
127
- this.focusedValue.set(panel.value());
128
- if (previousValue === panel.value() && this.value() === panel.value())
129
- return;
130
- this.value.set(panel.value());
131
- this.changed.emit({
132
- originalEvent,
133
- value: panel.value(),
134
- previousValue,
135
- });
136
- }
137
- focusTab(value, options) {
138
- const panelIndex = this.panels().findIndex((panel) => !panel.disabled() && panel.value() === value);
139
- if (panelIndex < 0)
140
- return;
141
- this.focusedValue.set(value);
142
- this.tabButtons()[panelIndex]?.nativeElement.focus(options);
143
- }
144
- handleKeydown(event) {
145
- if (this.activationMode() === 'manual' && (event.key === 'Enter' || event.key === ' ')) {
146
- event.preventDefault();
147
- const panel = this.focusedPanel();
148
- if (panel)
149
- this.select(panel, event);
150
- return;
151
- }
152
- const direction = this.keyDirection(event.key);
153
- if (direction === undefined)
154
- return;
155
- event.preventDefault();
156
- const enabledPanels = this.panels().filter((panel) => !panel.disabled());
157
- if (enabledPanels.length === 0)
158
- return;
159
- const currentPanel = this.focusedPanel() ?? this.activePanel();
160
- const currentIndex = Math.max(enabledPanels.indexOf(currentPanel), 0);
161
- const nextIndex = direction === 'first'
162
- ? 0
163
- : direction === 'last'
164
- ? enabledPanels.length - 1
165
- : (currentIndex + direction + enabledPanels.length) % enabledPanels.length;
166
- const nextPanel = enabledPanels[nextIndex];
167
- if (!nextPanel)
168
- return;
169
- this.focusedValue.set(nextPanel.value());
170
- if (this.activationMode() === 'automatic')
171
- this.select(nextPanel, event);
172
- this.focusTab(nextPanel.value());
173
- this.scrollPanelIntoView(nextPanel);
174
- }
175
- handleTabFocus(panel, event) {
176
- this.focusedValue.set(panel.value());
177
- this.tabFocused.emit(panel.value());
178
- if (this.activationMode() === 'automatic' && panel !== this.activePanel()) {
179
- this.select(panel, event);
180
- }
181
- }
182
- scrollTabs(direction) {
183
- const list = this.tabList()?.nativeElement;
184
- if (!list)
185
- return;
186
- const left = direction * Math.max(list.clientWidth * 0.75, 160);
187
- if (typeof list.scrollBy === 'function') {
188
- list.scrollBy({ left, behavior: 'smooth' });
189
- }
190
- else {
191
- list.scrollLeft += left;
192
- }
193
- queueMicrotask(() => this.updateScrollState());
194
- }
195
- updateScrollState() {
196
- const list = this.tabList()?.nativeElement;
197
- const header = this.tabHeader()?.nativeElement;
198
- if (!list || !header)
199
- return;
200
- const overflow = this.scrollable() &&
201
- this.orientation() === 'horizontal' &&
202
- list.scrollWidth > header.clientWidth + 1;
203
- this.hasOverflow.set(overflow);
204
- if (!overflow) {
205
- this.canScrollPrevious.set(false);
206
- this.canScrollNext.set(false);
207
- return;
208
- }
209
- this.canScrollPrevious.set(list.scrollLeft > 1);
210
- this.canScrollNext.set(list.scrollLeft + list.clientWidth < list.scrollWidth - 1);
211
- }
212
- observeTabSizing() {
213
- if (!this.isBrowser || typeof globalThis.ResizeObserver !== 'function')
214
- return;
215
- const header = this.tabHeader()?.nativeElement;
216
- const list = this.tabList()?.nativeElement;
217
- if (!header || !list)
218
- return;
219
- const observer = new ResizeObserver(() => this.updateScrollState());
220
- observer.observe(header);
221
- observer.observe(list);
222
- for (const button of this.tabButtons())
223
- observer.observe(button.nativeElement);
224
- this.destroyRef.onDestroy(() => observer.disconnect());
225
- }
226
- scrollPanelIntoView(panel) {
227
- const panelIndex = this.panels().indexOf(panel);
228
- const tab = this.tabButtons()[panelIndex]?.nativeElement;
229
- if (typeof tab?.scrollIntoView === 'function') {
230
- tab.scrollIntoView({
231
- behavior: this.isBrowser ? 'smooth' : 'auto',
232
- block: 'nearest',
233
- inline: 'nearest',
234
- });
235
- }
236
- queueMicrotask(() => this.updateScrollState());
237
- }
238
- keyDirection(key) {
239
- if (key === 'Home')
240
- return 'first';
241
- if (key === 'End')
242
- return 'last';
243
- if ((this.orientation() === 'horizontal' && key === 'ArrowLeft') ||
244
- (this.orientation() === 'vertical' && key === 'ArrowUp')) {
245
- return -1;
246
- }
247
- if ((this.orientation() === 'horizontal' && key === 'ArrowRight') ||
248
- (this.orientation() === 'vertical' && key === 'ArrowDown')) {
249
- return 1;
250
- }
251
- return undefined;
252
- }
253
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTabs, deps: [], target: i0.ɵɵFactoryTarget.Component });
254
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisTabs, isStandalone: true, selector: "aeris-tabs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, activationMode: { classPropertyName: "activationMode", publicName: "activationMode", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, justify: { classPropertyName: "justify", publicName: "justify", isSignal: true, isRequired: false, transformFunction: null }, scrollable: { classPropertyName: "scrollable", publicName: "scrollable", isSignal: true, isRequired: false, transformFunction: null }, panelTabIndex: { classPropertyName: "panelTabIndex", publicName: "panelTabIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", changed: "changed", tabFocused: "tabFocused" }, host: { properties: { "attr.data-orientation": "orientation()", "attr.data-variant": "variant()", "attr.data-size": "size()", "attr.data-justify": "justify()", "attr.data-scrollable": "scrollable() || null" }, classAttribute: "aeris-tabs" }, queries: [{ propertyName: "discoveredPanels", predicate: AerisTabPanel, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "tabButtons", predicate: ["tabButton"], descendants: true, isSignal: true }, { propertyName: "tabList", first: true, predicate: ["tabList"], descendants: true, isSignal: true }, { propertyName: "tabHeader", first: true, predicate: ["tabHeader"], descendants: true, isSignal: true }], ngImport: i0, template: `
188
+ host: { "[style.display]": "\"none\"" }
189
+ }]
190
+ }],
191
+ propDecorators: {
192
+ value: [{
193
+ type: i0.Input,
194
+ args: [{
195
+ isSignal: true,
196
+ alias: "value",
197
+ required: true
198
+ }]
199
+ }],
200
+ label: [{
201
+ type: i0.Input,
202
+ args: [{
203
+ isSignal: true,
204
+ alias: "label",
205
+ required: true
206
+ }]
207
+ }],
208
+ disabled: [{
209
+ type: i0.Input,
210
+ args: [{
211
+ isSignal: true,
212
+ alias: "disabled",
213
+ required: false
214
+ }]
215
+ }],
216
+ projectedContent: [{
217
+ type: i0.ViewChild,
218
+ args: ["content", { isSignal: true }]
219
+ }],
220
+ deferredContent: [{
221
+ type: i0.ContentChild,
222
+ args: [i0.forwardRef(() => AerisTabContentTemplate), {
223
+ descendants: false,
224
+ isSignal: true
225
+ }]
226
+ }],
227
+ headerTemplate: [{
228
+ type: i0.ContentChild,
229
+ args: [i0.forwardRef(() => AerisTabHeaderTemplate), {
230
+ descendants: false,
231
+ isSignal: true
232
+ }]
233
+ }]
234
+ }
235
+ });
236
+ var AerisTabs = class AerisTabs {
237
+ hostElement = inject(ElementRef).nativeElement;
238
+ isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
239
+ destroyRef = inject(DestroyRef);
240
+ value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
241
+ ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
242
+ ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
243
+ orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
244
+ activationMode = input("automatic", ...ngDevMode ? [{ debugName: "activationMode" }] : /* istanbul ignore next */ []);
245
+ variant = input("line", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
246
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
247
+ justify = input("start", ...ngDevMode ? [{ debugName: "justify" }] : /* istanbul ignore next */ []);
248
+ scrollable = input(true, {
249
+ ...ngDevMode ? { debugName: "scrollable" } : /* istanbul ignore next */ {},
250
+ transform: booleanAttribute
251
+ });
252
+ panelTabIndex = input(0, ...ngDevMode ? [{ debugName: "panelTabIndex" }] : /* istanbul ignore next */ []);
253
+ changed = output();
254
+ tabFocused = output();
255
+ discoveredPanels = contentChildren(AerisTabPanel, {
256
+ ...ngDevMode ? { debugName: "discoveredPanels" } : /* istanbul ignore next */ {},
257
+ descendants: true
258
+ });
259
+ panels = computed(() => this.discoveredPanels().filter((panel) => panel.isDirectPanelOf(this.hostElement)), ...ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []);
260
+ tabButtons = viewChildren("tabButton", ...ngDevMode ? [{ debugName: "tabButtons" }] : /* istanbul ignore next */ []);
261
+ tabList = viewChild("tabList", ...ngDevMode ? [{ debugName: "tabList" }] : /* istanbul ignore next */ []);
262
+ tabHeader = viewChild("tabHeader", ...ngDevMode ? [{ debugName: "tabHeader" }] : /* istanbul ignore next */ []);
263
+ focusedValue = signal("", ...ngDevMode ? [{ debugName: "focusedValue" }] : /* istanbul ignore next */ []);
264
+ activatedPanels = signal(/* @__PURE__ */ new Set(), ...ngDevMode ? [{ debugName: "activatedPanels" }] : /* istanbul ignore next */ []);
265
+ hasOverflow = signal(false, ...ngDevMode ? [{ debugName: "hasOverflow" }] : /* istanbul ignore next */ []);
266
+ indicatorRect = signal(null, ...ngDevMode ? [{ debugName: "indicatorRect" }] : /* istanbul ignore next */ []);
267
+ indicatorReady = signal(false, ...ngDevMode ? [{ debugName: "indicatorReady" }] : /* istanbul ignore next */ []);
268
+ indicatorTransform = computed(() => {
269
+ const indicator = this.indicatorRect();
270
+ return indicator ? `translate3d(${indicator.x}px, ${indicator.y}px, 0)` : "none";
271
+ }, ...ngDevMode ? [{ debugName: "indicatorTransform" }] : /* istanbul ignore next */ []);
272
+ indicatorFrame = null;
273
+ indicatorReadyFrame = null;
274
+ canScrollPrevious = signal(false, ...ngDevMode ? [{ debugName: "canScrollPrevious" }] : /* istanbul ignore next */ []);
275
+ canScrollNext = signal(false, ...ngDevMode ? [{ debugName: "canScrollNext" }] : /* istanbul ignore next */ []);
276
+ showScrollControls = computed(() => this.scrollable() && this.orientation() === "horizontal" && this.hasOverflow(), ...ngDevMode ? [{ debugName: "showScrollControls" }] : /* istanbul ignore next */ []);
277
+ activePanel = computed(() => this.panels().find((panel) => !panel.disabled() && panel.value() === this.value()) ?? this.panels().find((panel) => !panel.disabled()), ...ngDevMode ? [{ debugName: "activePanel" }] : /* istanbul ignore next */ []);
278
+ focusedPanel = computed(() => this.panels().find((panel) => !panel.disabled() && panel.value() === this.focusedValue()) ?? this.activePanel(), ...ngDevMode ? [{ debugName: "focusedPanel" }] : /* istanbul ignore next */ []);
279
+ panelViews = computed(() => {
280
+ const activePanel = this.activePanel();
281
+ const activatedPanels = this.activatedPanels();
282
+ return this.panels().map((panel) => {
283
+ const active = panel === activePanel;
284
+ const strategy = panel.renderStrategy();
285
+ return {
286
+ panel,
287
+ active,
288
+ rendered: strategy === "eager" || active || strategy === "preserve" && activatedPanels.has(panel)
289
+ };
290
+ });
291
+ }, ...ngDevMode ? [{ debugName: "panelViews" }] : /* istanbul ignore next */ []);
292
+ constructor() {
293
+ afterNextRender(() => {
294
+ this.updateScrollState();
295
+ this.observeTabSizing();
296
+ this.scheduleIndicatorUpdate();
297
+ });
298
+ effect(() => {
299
+ const panelCount = this.panels().length;
300
+ this.tabButtons();
301
+ if (panelCount === 0) return;
302
+ queueMicrotask(() => this.updateScrollState());
303
+ });
304
+ afterRenderEffect(() => {
305
+ const panel = this.activePanel();
306
+ this.variant();
307
+ this.orientation();
308
+ this.justify();
309
+ this.tabButtons();
310
+ this.scheduleIndicatorUpdate();
311
+ if (panel && !this.activatedPanels().has(panel)) this.activatedPanels.update((current) => new Set(current).add(panel));
312
+ });
313
+ this.destroyRef.onDestroy(() => {
314
+ if (this.indicatorFrame !== null) cancelAnimationFrame(this.indicatorFrame);
315
+ if (this.indicatorReadyFrame !== null) cancelAnimationFrame(this.indicatorReadyFrame);
316
+ });
317
+ }
318
+ select(valueOrPanel, originalEvent = null) {
319
+ const panel = typeof valueOrPanel === "string" ? this.panels().find((candidate) => candidate.value() === valueOrPanel) : valueOrPanel;
320
+ if (!panel || panel.disabled()) return;
321
+ const previousValue = this.activePanel()?.value() ?? "";
322
+ this.focusedValue.set(panel.value());
323
+ if (previousValue === panel.value() && this.value() === panel.value()) return;
324
+ this.value.set(panel.value());
325
+ this.changed.emit({
326
+ originalEvent,
327
+ value: panel.value(),
328
+ previousValue
329
+ });
330
+ }
331
+ focusTab(value, options) {
332
+ const panelIndex = this.panels().findIndex((panel) => !panel.disabled() && panel.value() === value);
333
+ if (panelIndex < 0) return;
334
+ this.focusedValue.set(value);
335
+ this.tabButtons()[panelIndex]?.nativeElement.focus(options);
336
+ }
337
+ handleKeydown(event) {
338
+ if (this.activationMode() === "manual" && (event.key === "Enter" || event.key === " ")) {
339
+ event.preventDefault();
340
+ const panel = this.focusedPanel();
341
+ if (panel) this.select(panel, event);
342
+ return;
343
+ }
344
+ const direction = this.keyDirection(event.key);
345
+ if (direction === void 0) return;
346
+ event.preventDefault();
347
+ const enabledPanels = this.panels().filter((panel) => !panel.disabled());
348
+ if (enabledPanels.length === 0) return;
349
+ const currentPanel = this.focusedPanel() ?? this.activePanel();
350
+ const currentIndex = Math.max(enabledPanels.indexOf(currentPanel), 0);
351
+ const nextPanel = enabledPanels[direction === "first" ? 0 : direction === "last" ? enabledPanels.length - 1 : (currentIndex + direction + enabledPanels.length) % enabledPanels.length];
352
+ if (!nextPanel) return;
353
+ this.focusedValue.set(nextPanel.value());
354
+ if (this.activationMode() === "automatic") this.select(nextPanel, event);
355
+ this.focusTab(nextPanel.value());
356
+ this.scrollPanelIntoView(nextPanel);
357
+ }
358
+ handleTabFocus(panel, event) {
359
+ this.focusedValue.set(panel.value());
360
+ this.tabFocused.emit(panel.value());
361
+ if (this.activationMode() === "automatic" && panel !== this.activePanel()) this.select(panel, event);
362
+ }
363
+ scrollTabs(direction) {
364
+ const list = this.tabList()?.nativeElement;
365
+ if (!list) return;
366
+ const left = direction * Math.max(list.clientWidth * .75, 160);
367
+ if (typeof list.scrollBy === "function") list.scrollBy({
368
+ left,
369
+ behavior: "smooth"
370
+ });
371
+ else list.scrollLeft += left;
372
+ queueMicrotask(() => this.updateScrollState());
373
+ }
374
+ updateScrollState() {
375
+ const list = this.tabList()?.nativeElement;
376
+ const header = this.tabHeader()?.nativeElement;
377
+ if (!list || !header) return;
378
+ const overflow = this.scrollable() && this.orientation() === "horizontal" && list.scrollWidth > header.clientWidth + 1;
379
+ this.hasOverflow.set(overflow);
380
+ if (!overflow) {
381
+ this.canScrollPrevious.set(false);
382
+ this.canScrollNext.set(false);
383
+ return;
384
+ }
385
+ this.canScrollPrevious.set(list.scrollLeft > 1);
386
+ this.canScrollNext.set(list.scrollLeft + list.clientWidth < list.scrollWidth - 1);
387
+ }
388
+ observeTabSizing() {
389
+ if (!this.isBrowser || typeof globalThis.ResizeObserver !== "function") return;
390
+ const header = this.tabHeader()?.nativeElement;
391
+ const list = this.tabList()?.nativeElement;
392
+ if (!header || !list) return;
393
+ const observer = new ResizeObserver(() => {
394
+ this.updateScrollState();
395
+ this.scheduleIndicatorUpdate();
396
+ });
397
+ observer.observe(header);
398
+ observer.observe(list);
399
+ for (const button of this.tabButtons()) observer.observe(button.nativeElement);
400
+ this.destroyRef.onDestroy(() => observer.disconnect());
401
+ }
402
+ scheduleIndicatorUpdate() {
403
+ if (!this.isBrowser) return;
404
+ if (this.indicatorFrame !== null) cancelAnimationFrame(this.indicatorFrame);
405
+ this.indicatorFrame = requestAnimationFrame(() => {
406
+ this.indicatorFrame = null;
407
+ this.updateIndicator();
408
+ });
409
+ }
410
+ updateIndicator() {
411
+ const panel = this.activePanel();
412
+ const list = this.tabList()?.nativeElement;
413
+ const panelIndex = panel ? this.panels().indexOf(panel) : -1;
414
+ const button = panelIndex >= 0 ? this.tabButtons()[panelIndex]?.nativeElement : void 0;
415
+ if (!list || !button) {
416
+ this.indicatorReady.set(false);
417
+ this.indicatorRect.set(null);
418
+ return;
419
+ }
420
+ const pill = this.variant() === "pill";
421
+ const vertical = getComputedStyle(list).flexDirection === "column";
422
+ const rect = pill ? {
423
+ x: button.offsetLeft,
424
+ y: button.offsetTop,
425
+ width: button.offsetWidth,
426
+ height: button.offsetHeight
427
+ } : vertical ? {
428
+ x: list.clientWidth - 2,
429
+ y: button.offsetTop + 8,
430
+ width: 2,
431
+ height: Math.max(button.offsetHeight - 16, 2)
432
+ } : {
433
+ x: button.offsetLeft + 12,
434
+ y: button.offsetTop + button.offsetHeight - 2,
435
+ width: Math.max(button.offsetWidth - 24, 2),
436
+ height: 2
437
+ };
438
+ const currentRect = this.indicatorRect();
439
+ if (!currentRect || currentRect.x !== rect.x || currentRect.y !== rect.y || currentRect.width !== rect.width || currentRect.height !== rect.height) this.indicatorRect.set(rect);
440
+ if (this.indicatorReady()) return;
441
+ if (this.indicatorReadyFrame !== null) cancelAnimationFrame(this.indicatorReadyFrame);
442
+ this.indicatorReadyFrame = requestAnimationFrame(() => {
443
+ this.indicatorReadyFrame = null;
444
+ this.indicatorReady.set(true);
445
+ });
446
+ }
447
+ scrollPanelIntoView(panel) {
448
+ const panelIndex = this.panels().indexOf(panel);
449
+ const tab = this.tabButtons()[panelIndex]?.nativeElement;
450
+ if (typeof tab?.scrollIntoView === "function") tab.scrollIntoView({
451
+ behavior: this.isBrowser ? "smooth" : "auto",
452
+ block: "nearest",
453
+ inline: "nearest"
454
+ });
455
+ queueMicrotask(() => this.updateScrollState());
456
+ }
457
+ keyDirection(key) {
458
+ if (key === "Home") return "first";
459
+ if (key === "End") return "last";
460
+ if (this.orientation() === "horizontal" && key === "ArrowLeft" || this.orientation() === "vertical" && key === "ArrowUp") return -1;
461
+ if (this.orientation() === "horizontal" && key === "ArrowRight" || this.orientation() === "vertical" && key === "ArrowDown") return 1;
462
+ }
463
+ static ɵfac = i0.ɵɵngDeclareFactory({
464
+ minVersion: "12.0.0",
465
+ version: "22.2.2",
466
+ ngImport: i0,
467
+ type: AerisTabs,
468
+ deps: [],
469
+ target: i0.ɵɵFactoryTarget.Component
470
+ });
471
+ static ɵcmp = i0.ɵɵngDeclareComponent({
472
+ minVersion: "17.0.0",
473
+ version: "22.2.2",
474
+ type: AerisTabs,
475
+ isStandalone: true,
476
+ selector: "aeris-tabs",
477
+ inputs: {
478
+ value: {
479
+ classPropertyName: "value",
480
+ publicName: "value",
481
+ isSignal: true,
482
+ isRequired: false,
483
+ transformFunction: null
484
+ },
485
+ ariaLabel: {
486
+ classPropertyName: "ariaLabel",
487
+ publicName: "ariaLabel",
488
+ isSignal: true,
489
+ isRequired: false,
490
+ transformFunction: null
491
+ },
492
+ ariaLabelledBy: {
493
+ classPropertyName: "ariaLabelledBy",
494
+ publicName: "ariaLabelledBy",
495
+ isSignal: true,
496
+ isRequired: false,
497
+ transformFunction: null
498
+ },
499
+ orientation: {
500
+ classPropertyName: "orientation",
501
+ publicName: "orientation",
502
+ isSignal: true,
503
+ isRequired: false,
504
+ transformFunction: null
505
+ },
506
+ activationMode: {
507
+ classPropertyName: "activationMode",
508
+ publicName: "activationMode",
509
+ isSignal: true,
510
+ isRequired: false,
511
+ transformFunction: null
512
+ },
513
+ variant: {
514
+ classPropertyName: "variant",
515
+ publicName: "variant",
516
+ isSignal: true,
517
+ isRequired: false,
518
+ transformFunction: null
519
+ },
520
+ size: {
521
+ classPropertyName: "size",
522
+ publicName: "size",
523
+ isSignal: true,
524
+ isRequired: false,
525
+ transformFunction: null
526
+ },
527
+ justify: {
528
+ classPropertyName: "justify",
529
+ publicName: "justify",
530
+ isSignal: true,
531
+ isRequired: false,
532
+ transformFunction: null
533
+ },
534
+ scrollable: {
535
+ classPropertyName: "scrollable",
536
+ publicName: "scrollable",
537
+ isSignal: true,
538
+ isRequired: false,
539
+ transformFunction: null
540
+ },
541
+ panelTabIndex: {
542
+ classPropertyName: "panelTabIndex",
543
+ publicName: "panelTabIndex",
544
+ isSignal: true,
545
+ isRequired: false,
546
+ transformFunction: null
547
+ }
548
+ },
549
+ outputs: {
550
+ value: "valueChange",
551
+ changed: "changed",
552
+ tabFocused: "tabFocused"
553
+ },
554
+ host: {
555
+ properties: {
556
+ "attr.data-orientation": "orientation()",
557
+ "attr.data-variant": "variant()",
558
+ "attr.data-size": "size()",
559
+ "attr.data-justify": "justify()",
560
+ "attr.data-scrollable": "scrollable() || null"
561
+ },
562
+ classAttribute: "aeris-tabs"
563
+ },
564
+ providers: [{
565
+ provide: AERIS_TABS_OWNER,
566
+ useFactory: () => ({ host: inject(ElementRef).nativeElement })
567
+ }],
568
+ queries: [{
569
+ propertyName: "discoveredPanels",
570
+ predicate: AerisTabPanel,
571
+ descendants: true,
572
+ isSignal: true
573
+ }],
574
+ viewQueries: [
575
+ {
576
+ propertyName: "tabButtons",
577
+ predicate: ["tabButton"],
578
+ descendants: true,
579
+ isSignal: true
580
+ },
581
+ {
582
+ propertyName: "tabList",
583
+ first: true,
584
+ predicate: ["tabList"],
585
+ descendants: true,
586
+ isSignal: true
587
+ },
588
+ {
589
+ propertyName: "tabHeader",
590
+ first: true,
591
+ predicate: ["tabHeader"],
592
+ descendants: true,
593
+ isSignal: true
594
+ }
595
+ ],
596
+ ngImport: i0,
597
+ template: `
255
598
  <div class="aeris-tabs__panel-source" aria-hidden="true">
256
599
  <ng-content />
257
600
  </div>
@@ -279,6 +622,16 @@ class AerisTabs {
279
622
  (keydown)="handleKeydown($event)"
280
623
  (scroll)="updateScrollState()"
281
624
  >
625
+ @if (indicatorRect(); as indicator) {
626
+ <span
627
+ class="aeris-tabs__indicator"
628
+ aria-hidden="true"
629
+ [attr.data-ready]="indicatorReady() || null"
630
+ [style.width.px]="indicator.width"
631
+ [style.height.px]="indicator.height"
632
+ [style.transform]="indicatorTransform()"
633
+ ></span>
634
+ }
282
635
  @for (panel of panels(); track panel.value()) {
283
636
  <button
284
637
  #tabButton
@@ -321,22 +674,50 @@ class AerisTabs {
321
674
  }
322
675
  </div>
323
676
 
324
- @if (activePanel(); as panel) {
677
+ @for (view of panelViews(); track view.panel.panelId) {
325
678
  <div
326
679
  class="aeris-tabs__panel"
327
680
  role="tabpanel"
328
- [id]="panel.panelId"
329
- [attr.aria-labelledby]="panel.tabId"
330
- [attr.tabindex]="panelTabIndex()"
681
+ [id]="view.panel.panelId"
682
+ [attr.aria-labelledby]="view.panel.tabId"
683
+ [attr.tabindex]="view.active ? panelTabIndex() : -1"
684
+ [hidden]="!view.active"
331
685
  >
332
- <ng-container [ngTemplateOutlet]="panel.content()" />
686
+ @if (view.rendered) {
687
+ <ng-container [ngTemplateOutlet]="view.panel.content()" />
688
+ }
333
689
  </div>
334
690
  }
335
- `, isInline: true, styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );--_tab-height: 3rem;--_tab-padding: 1rem;--_tab-font-size: .875rem;display:block;min-width:0}:host([data-size=sm]){--_tab-height: 2.25rem;--_tab-padding: .75rem;--_tab-font-size: .75rem}:host([data-size=lg]){--_tab-height: 3.5rem;--_tab-padding: 1.25rem;--_tab-font-size: .9375rem}.aeris-tabs__header{display:flex;align-items:stretch;min-width:0}.aeris-tabs__list{min-width:0;display:flex;flex:1 1 auto;gap:.25rem;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));overflow:visible;scrollbar-width:none}.aeris-tabs__list::-webkit-scrollbar{display:none}:host([data-scrollable][data-orientation=horizontal]) .aeris-tabs__list{overflow-x:auto;overscroll-behavior-inline:contain}.aeris-tabs__list button{position:relative;min-height:var(--_tab-height);flex:0 0 auto;padding:0 var(--_tab-padding);border:0;border-radius:var(--aeris-tabs-radius, .4375rem);background:transparent;color:var(--aeris-tabs-text, var(--aeris-text-2, #555555));font:inherit;font-size:var(--_tab-font-size);font-weight:600;white-space:nowrap;cursor:pointer}.aeris-tabs__list button:after{position:absolute;right:.75rem;bottom:-1px;left:.75rem;height:2px;border-radius:99px 99px 0 0;background:transparent;content:\"\"}.aeris-tabs__list button:hover:not(:disabled){background:transparent;color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #566137))}.aeris-tabs__list button[aria-selected=true]{color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #566137))}.aeris-tabs__list button[aria-selected=true]:after{background:var(--aeris-tabs-indicator, var(--aeris-primary, #879566))}.aeris-tabs__list button:disabled{opacity:var(--aeris-disabled-opacity, .45);cursor:not-allowed}.aeris-tabs__list button:focus-visible,.aeris-tabs__scroll:focus-visible{z-index:1;outline:2px solid var(--aeris-focus, #536437);outline-offset:-2px}:host([data-variant=pill]) .aeris-tabs__list{gap:.25rem;padding:.25rem;border:0;border-radius:calc(var(--aeris-tabs-radius, .4375rem) + .25rem);background:var(--aeris-tabs-list-background, var(--aeris-surface-2, #f2f0ec))}:host([data-variant=pill]) .aeris-tabs__list button{min-height:calc(var(--_tab-height) - .5rem)}:host([data-variant=pill]) .aeris-tabs__list button:after{display:none}:host([data-variant=pill]) .aeris-tabs__list button:hover:not(:disabled){background:var(--aeris-tabs-hover, color-mix(in srgb, var(--aeris-surface, #fff) 76%, transparent));color:var(--aeris-text, #222222)}:host([data-variant=pill]) .aeris-tabs__list button[aria-selected=true]{background:var(--aeris-tabs-active-background, var(--aeris-surface, #fff));box-shadow:0 1px 3px #1f231b1a;color:var(--aeris-text, #222222)}:host([data-justify=center]) .aeris-tabs__list{justify-content:center}:host([data-justify=end]) .aeris-tabs__list{justify-content:flex-end}:host([data-justify=stretch]) .aeris-tabs__list button{flex:1 1 0}.aeris-tabs__scroll{width:2.25rem;flex:0 0 2.25rem;display:grid;place-items:center;padding:0;border:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-tabs__scroll:disabled{opacity:.3;cursor:default}.aeris-tabs__scroll span{position:relative;width:1rem;height:1rem}.aeris-tabs__scroll span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%) rotate(90deg);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-tabs__scroll--next span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-tabs__panel-source{display:none}.aeris-tabs__panel{min-width:0;padding-top:var(--aeris-tabs-panel-padding, 1rem)}:host([data-orientation=vertical]){display:grid;grid-template-columns:max-content minmax(0,1fr)}:host([data-orientation=vertical]) .aeris-tabs__header{display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:column;border-right:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));border-bottom:0}:host([data-orientation=vertical]) .aeris-tabs__list button{text-align:left}:host([data-orientation=vertical]) .aeris-tabs__list button:after{top:.5rem;right:-1px;bottom:.5rem;left:auto;width:2px;height:auto}@media(max-width:40rem){:host([data-orientation=vertical]){display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:row;border-right:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));overflow-x:auto}}@media(prefers-reduced-motion:reduce){.aeris-tabs__list{scroll-behavior:auto}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
336
- }
337
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTabs, decorators: [{
338
- type: Component,
339
- args: [{ selector: 'aeris-tabs', imports: [NgTemplateOutlet], template: `
691
+ `,
692
+ isInline: true,
693
+ styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );--_tab-height: 3rem;--_tab-padding: 1rem;--_tab-font-size: var(--aeris-font-size-lg, .875rem);display:block;min-width:0}:host([data-size=sm]){--_tab-height: 2.25rem;--_tab-padding: .75rem;--_tab-font-size: var(--aeris-font-size-sm, .75rem)}:host([data-size=lg]){--_tab-height: 3.5rem;--_tab-padding: 1.25rem;--_tab-font-size: var(--aeris-font-size-xl, .9375rem)}.aeris-tabs__header{display:flex;align-items:stretch;min-width:0}.aeris-tabs__list{position:relative;isolation:isolate;min-width:0;display:flex;flex:1 1 auto;gap:.25rem;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border));overflow:visible;scrollbar-width:none}.aeris-tabs__list::-webkit-scrollbar{display:none}:host([data-scrollable][data-orientation=horizontal]) .aeris-tabs__list{overflow-x:auto;overscroll-behavior-inline:contain}.aeris-tabs__list button{position:relative;z-index:1;min-height:var(--_tab-height);flex:0 0 auto;padding:0 var(--_tab-padding);border:0;border-radius:var(--aeris-tabs-radius, var(--aeris-radius-control, .4375rem));background:transparent;color:var(--aeris-tabs-text, var(--aeris-text-2, #454545));font:inherit;font-size:var(--_tab-font-size);font-weight:var(--aeris-font-weight-semibold, 600);white-space:nowrap;cursor:pointer;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}@media(hover:hover){.aeris-tabs__list button:hover:not(:disabled){background:transparent;color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #111111))}}.aeris-tabs__list button[aria-selected=true]{color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #111111))}.aeris-tabs__list button:disabled{opacity:var(--aeris-disabled-opacity, .45);cursor:not-allowed}.aeris-tabs__list button:focus-visible,.aeris-tabs__scroll:focus-visible{z-index:1;outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:-2px}:host([data-variant=pill]) .aeris-tabs__list{gap:.25rem;padding:.25rem;border:0;border-radius:calc(min(var(--aeris-tabs-radius, var(--aeris-radius-control, .4375rem)),1rem) + .25rem);background:var(--aeris-tabs-list-background, var(--aeris-surface-2, #f3f3f3))}:host([data-variant=pill]) .aeris-tabs__list button{min-height:calc(var(--_tab-height) - .5rem)}@media(hover:hover){:host([data-variant=pill]) .aeris-tabs__list button:hover:not(:disabled){background:var(--aeris-tabs-hover, color-mix(in srgb, var(--aeris-surface, #fff) 76%, transparent));color:var(--aeris-text, #111111)}}:host([data-variant=pill]) .aeris-tabs__list button[aria-selected=true]{background:transparent;color:var(--aeris-text, #111111)}.aeris-tabs__indicator{position:absolute;z-index:2;top:0;left:0;border-radius:var(--aeris-radius-pill, 999px) var(--aeris-radius-pill, 999px) 0 0;background:var(--aeris-tabs-indicator, var(--aeris-primary, #111111));pointer-events:none;will-change:transform,width,height}.aeris-tabs__indicator[data-ready]{transition:width var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, cubic-bezier(.2, 0, 0, 1)),height var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, cubic-bezier(.2, 0, 0, 1)),transform var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, cubic-bezier(.2, 0, 0, 1))}:host([data-variant=pill]) .aeris-tabs__indicator{z-index:0;border-radius:var(--aeris-tabs-radius, var(--aeris-radius-control, .4375rem));background:var(--aeris-tabs-active-background, var(--aeris-surface, #fff));box-shadow:0 1px 3px #1f231b1a}:host([data-justify=center]) .aeris-tabs__list{justify-content:center}:host([data-justify=end]) .aeris-tabs__list{justify-content:flex-end}:host([data-justify=stretch]) .aeris-tabs__list button{flex:1 1 0}.aeris-tabs__scroll{width:2.25rem;flex:0 0 2.25rem;display:grid;place-items:center;padding:0;border:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border));background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #454545);cursor:pointer}.aeris-tabs__scroll:disabled{opacity:.3;cursor:default}.aeris-tabs__scroll span{position:relative;width:1rem;height:1rem}.aeris-tabs__scroll span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%) rotate(90deg);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-tabs__scroll--next span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-tabs__panel-source{display:none}.aeris-tabs__panel{min-width:0;padding-top:var(--aeris-tabs-panel-padding, 1rem)}:host([data-orientation=vertical]){display:grid;grid-template-columns:max-content minmax(0,1fr)}:host([data-orientation=vertical]) .aeris-tabs__header{display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:column;border-right:1px solid var(--aeris-tabs-border, var(--aeris-border));border-bottom:0}:host([data-orientation=vertical]) .aeris-tabs__list button{text-align:left}@media(max-width:40rem){:host([data-orientation=vertical]){display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:row;border-right:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border));overflow-x:auto}}@media(prefers-reduced-motion:reduce){.aeris-tabs__list{scroll-behavior:auto}.aeris-tabs__indicator,.aeris-tabs__list button{transition:none}}\n"],
694
+ dependencies: [{
695
+ kind: "directive",
696
+ type: NgTemplateOutlet,
697
+ selector: "[ngTemplateOutlet]",
698
+ inputs: [
699
+ "ngTemplateOutletContext",
700
+ "ngTemplateOutlet",
701
+ "ngTemplateOutletInjector"
702
+ ]
703
+ }]
704
+ });
705
+ };
706
+ i0.ɵɵngDeclareClassMetadata({
707
+ minVersion: "12.0.0",
708
+ version: "22.2.2",
709
+ ngImport: i0,
710
+ type: AerisTabs,
711
+ decorators: [{
712
+ type: Component,
713
+ args: [{
714
+ selector: "aeris-tabs",
715
+ providers: [{
716
+ provide: AERIS_TABS_OWNER,
717
+ useFactory: () => ({ host: inject(ElementRef).nativeElement })
718
+ }],
719
+ imports: [NgTemplateOutlet],
720
+ template: `
340
721
  <div class="aeris-tabs__panel-source" aria-hidden="true">
341
722
  <ng-content />
342
723
  </div>
@@ -364,6 +745,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
364
745
  (keydown)="handleKeydown($event)"
365
746
  (scroll)="updateScrollState()"
366
747
  >
748
+ @if (indicatorRect(); as indicator) {
749
+ <span
750
+ class="aeris-tabs__indicator"
751
+ aria-hidden="true"
752
+ [attr.data-ready]="indicatorReady() || null"
753
+ [style.width.px]="indicator.width"
754
+ [style.height.px]="indicator.height"
755
+ [style.transform]="indicatorTransform()"
756
+ ></span>
757
+ }
367
758
  @for (panel of panels(); track panel.value()) {
368
759
  <button
369
760
  #tabButton
@@ -406,33 +797,152 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
406
797
  }
407
798
  </div>
408
799
 
409
- @if (activePanel(); as panel) {
800
+ @for (view of panelViews(); track view.panel.panelId) {
410
801
  <div
411
802
  class="aeris-tabs__panel"
412
803
  role="tabpanel"
413
- [id]="panel.panelId"
414
- [attr.aria-labelledby]="panel.tabId"
415
- [attr.tabindex]="panelTabIndex()"
804
+ [id]="view.panel.panelId"
805
+ [attr.aria-labelledby]="view.panel.tabId"
806
+ [attr.tabindex]="view.active ? panelTabIndex() : -1"
807
+ [hidden]="!view.active"
416
808
  >
417
- <ng-container [ngTemplateOutlet]="panel.content()" />
809
+ @if (view.rendered) {
810
+ <ng-container [ngTemplateOutlet]="view.panel.content()" />
811
+ }
418
812
  </div>
419
813
  }
420
- `, host: {
421
- class: 'aeris-tabs',
422
- '[attr.data-orientation]': 'orientation()',
423
- '[attr.data-variant]': 'variant()',
424
- '[attr.data-size]': 'size()',
425
- '[attr.data-justify]': 'justify()',
426
- '[attr.data-scrollable]': 'scrollable() || null',
427
- }, styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );--_tab-height: 3rem;--_tab-padding: 1rem;--_tab-font-size: .875rem;display:block;min-width:0}:host([data-size=sm]){--_tab-height: 2.25rem;--_tab-padding: .75rem;--_tab-font-size: .75rem}:host([data-size=lg]){--_tab-height: 3.5rem;--_tab-padding: 1.25rem;--_tab-font-size: .9375rem}.aeris-tabs__header{display:flex;align-items:stretch;min-width:0}.aeris-tabs__list{min-width:0;display:flex;flex:1 1 auto;gap:.25rem;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));overflow:visible;scrollbar-width:none}.aeris-tabs__list::-webkit-scrollbar{display:none}:host([data-scrollable][data-orientation=horizontal]) .aeris-tabs__list{overflow-x:auto;overscroll-behavior-inline:contain}.aeris-tabs__list button{position:relative;min-height:var(--_tab-height);flex:0 0 auto;padding:0 var(--_tab-padding);border:0;border-radius:var(--aeris-tabs-radius, .4375rem);background:transparent;color:var(--aeris-tabs-text, var(--aeris-text-2, #555555));font:inherit;font-size:var(--_tab-font-size);font-weight:600;white-space:nowrap;cursor:pointer}.aeris-tabs__list button:after{position:absolute;right:.75rem;bottom:-1px;left:.75rem;height:2px;border-radius:99px 99px 0 0;background:transparent;content:\"\"}.aeris-tabs__list button:hover:not(:disabled){background:transparent;color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #566137))}.aeris-tabs__list button[aria-selected=true]{color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #566137))}.aeris-tabs__list button[aria-selected=true]:after{background:var(--aeris-tabs-indicator, var(--aeris-primary, #879566))}.aeris-tabs__list button:disabled{opacity:var(--aeris-disabled-opacity, .45);cursor:not-allowed}.aeris-tabs__list button:focus-visible,.aeris-tabs__scroll:focus-visible{z-index:1;outline:2px solid var(--aeris-focus, #536437);outline-offset:-2px}:host([data-variant=pill]) .aeris-tabs__list{gap:.25rem;padding:.25rem;border:0;border-radius:calc(var(--aeris-tabs-radius, .4375rem) + .25rem);background:var(--aeris-tabs-list-background, var(--aeris-surface-2, #f2f0ec))}:host([data-variant=pill]) .aeris-tabs__list button{min-height:calc(var(--_tab-height) - .5rem)}:host([data-variant=pill]) .aeris-tabs__list button:after{display:none}:host([data-variant=pill]) .aeris-tabs__list button:hover:not(:disabled){background:var(--aeris-tabs-hover, color-mix(in srgb, var(--aeris-surface, #fff) 76%, transparent));color:var(--aeris-text, #222222)}:host([data-variant=pill]) .aeris-tabs__list button[aria-selected=true]{background:var(--aeris-tabs-active-background, var(--aeris-surface, #fff));box-shadow:0 1px 3px #1f231b1a;color:var(--aeris-text, #222222)}:host([data-justify=center]) .aeris-tabs__list{justify-content:center}:host([data-justify=end]) .aeris-tabs__list{justify-content:flex-end}:host([data-justify=stretch]) .aeris-tabs__list button{flex:1 1 0}.aeris-tabs__scroll{width:2.25rem;flex:0 0 2.25rem;display:grid;place-items:center;padding:0;border:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-tabs__scroll:disabled{opacity:.3;cursor:default}.aeris-tabs__scroll span{position:relative;width:1rem;height:1rem}.aeris-tabs__scroll span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%) rotate(90deg);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-tabs__scroll--next span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-tabs__panel-source{display:none}.aeris-tabs__panel{min-width:0;padding-top:var(--aeris-tabs-panel-padding, 1rem)}:host([data-orientation=vertical]){display:grid;grid-template-columns:max-content minmax(0,1fr)}:host([data-orientation=vertical]) .aeris-tabs__header{display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:column;border-right:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));border-bottom:0}:host([data-orientation=vertical]) .aeris-tabs__list button{text-align:left}:host([data-orientation=vertical]) .aeris-tabs__list button:after{top:.5rem;right:-1px;bottom:.5rem;left:auto;width:2px;height:auto}@media(max-width:40rem){:host([data-orientation=vertical]){display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:row;border-right:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border, #deddd7));overflow-x:auto}}@media(prefers-reduced-motion:reduce){.aeris-tabs__list{scroll-behavior:auto}}\n"] }]
428
- }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], activationMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "activationMode", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], justify: [{ type: i0.Input, args: [{ isSignal: true, alias: "justify", required: false }] }], scrollable: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollable", required: false }] }], panelTabIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelTabIndex", required: false }] }], changed: [{ type: i0.Output, args: ["changed"] }], tabFocused: [{ type: i0.Output, args: ["tabFocused"] }], discoveredPanels: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AerisTabPanel), { ...{
429
- descendants: true,
430
- }, isSignal: true }] }], tabButtons: [{ type: i0.ViewChildren, args: ['tabButton', { isSignal: true }] }], tabList: [{ type: i0.ViewChild, args: ['tabList', { isSignal: true }] }], tabHeader: [{ type: i0.ViewChild, args: ['tabHeader', { isSignal: true }] }] } });
431
- const AerisTabsModule = [AerisTabs, AerisTabPanel, AerisTabHeaderTemplate];
432
-
433
- /**
434
- * Generated bundle index. Do not edit.
435
- */
814
+ `,
815
+ host: {
816
+ class: "aeris-tabs",
817
+ "[attr.data-orientation]": "orientation()",
818
+ "[attr.data-variant]": "variant()",
819
+ "[attr.data-size]": "size()",
820
+ "[attr.data-justify]": "justify()",
821
+ "[attr.data-scrollable]": "scrollable() || null"
822
+ },
823
+ styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );--_tab-height: 3rem;--_tab-padding: 1rem;--_tab-font-size: var(--aeris-font-size-lg, .875rem);display:block;min-width:0}:host([data-size=sm]){--_tab-height: 2.25rem;--_tab-padding: .75rem;--_tab-font-size: var(--aeris-font-size-sm, .75rem)}:host([data-size=lg]){--_tab-height: 3.5rem;--_tab-padding: 1.25rem;--_tab-font-size: var(--aeris-font-size-xl, .9375rem)}.aeris-tabs__header{display:flex;align-items:stretch;min-width:0}.aeris-tabs__list{position:relative;isolation:isolate;min-width:0;display:flex;flex:1 1 auto;gap:.25rem;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border));overflow:visible;scrollbar-width:none}.aeris-tabs__list::-webkit-scrollbar{display:none}:host([data-scrollable][data-orientation=horizontal]) .aeris-tabs__list{overflow-x:auto;overscroll-behavior-inline:contain}.aeris-tabs__list button{position:relative;z-index:1;min-height:var(--_tab-height);flex:0 0 auto;padding:0 var(--_tab-padding);border:0;border-radius:var(--aeris-tabs-radius, var(--aeris-radius-control, .4375rem));background:transparent;color:var(--aeris-tabs-text, var(--aeris-text-2, #454545));font:inherit;font-size:var(--_tab-font-size);font-weight:var(--aeris-font-weight-semibold, 600);white-space:nowrap;cursor:pointer;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}@media(hover:hover){.aeris-tabs__list button:hover:not(:disabled){background:transparent;color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #111111))}}.aeris-tabs__list button[aria-selected=true]{color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #111111))}.aeris-tabs__list button:disabled{opacity:var(--aeris-disabled-opacity, .45);cursor:not-allowed}.aeris-tabs__list button:focus-visible,.aeris-tabs__scroll:focus-visible{z-index:1;outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:-2px}:host([data-variant=pill]) .aeris-tabs__list{gap:.25rem;padding:.25rem;border:0;border-radius:calc(min(var(--aeris-tabs-radius, var(--aeris-radius-control, .4375rem)),1rem) + .25rem);background:var(--aeris-tabs-list-background, var(--aeris-surface-2, #f3f3f3))}:host([data-variant=pill]) .aeris-tabs__list button{min-height:calc(var(--_tab-height) - .5rem)}@media(hover:hover){:host([data-variant=pill]) .aeris-tabs__list button:hover:not(:disabled){background:var(--aeris-tabs-hover, color-mix(in srgb, var(--aeris-surface, #fff) 76%, transparent));color:var(--aeris-text, #111111)}}:host([data-variant=pill]) .aeris-tabs__list button[aria-selected=true]{background:transparent;color:var(--aeris-text, #111111)}.aeris-tabs__indicator{position:absolute;z-index:2;top:0;left:0;border-radius:var(--aeris-radius-pill, 999px) var(--aeris-radius-pill, 999px) 0 0;background:var(--aeris-tabs-indicator, var(--aeris-primary, #111111));pointer-events:none;will-change:transform,width,height}.aeris-tabs__indicator[data-ready]{transition:width var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, cubic-bezier(.2, 0, 0, 1)),height var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, cubic-bezier(.2, 0, 0, 1)),transform var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, cubic-bezier(.2, 0, 0, 1))}:host([data-variant=pill]) .aeris-tabs__indicator{z-index:0;border-radius:var(--aeris-tabs-radius, var(--aeris-radius-control, .4375rem));background:var(--aeris-tabs-active-background, var(--aeris-surface, #fff));box-shadow:0 1px 3px #1f231b1a}:host([data-justify=center]) .aeris-tabs__list{justify-content:center}:host([data-justify=end]) .aeris-tabs__list{justify-content:flex-end}:host([data-justify=stretch]) .aeris-tabs__list button{flex:1 1 0}.aeris-tabs__scroll{width:2.25rem;flex:0 0 2.25rem;display:grid;place-items:center;padding:0;border:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border));background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #454545);cursor:pointer}.aeris-tabs__scroll:disabled{opacity:.3;cursor:default}.aeris-tabs__scroll span{position:relative;width:1rem;height:1rem}.aeris-tabs__scroll span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%) rotate(90deg);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-tabs__scroll--next span:before{transform:translate(-50%,-50%) rotate(-90deg)}.aeris-tabs__panel-source{display:none}.aeris-tabs__panel{min-width:0;padding-top:var(--aeris-tabs-panel-padding, 1rem)}:host([data-orientation=vertical]){display:grid;grid-template-columns:max-content minmax(0,1fr)}:host([data-orientation=vertical]) .aeris-tabs__header{display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:column;border-right:1px solid var(--aeris-tabs-border, var(--aeris-border));border-bottom:0}:host([data-orientation=vertical]) .aeris-tabs__list button{text-align:left}@media(max-width:40rem){:host([data-orientation=vertical]){display:block}:host([data-orientation=vertical]) .aeris-tabs__list{flex-direction:row;border-right:0;border-bottom:1px solid var(--aeris-tabs-border, var(--aeris-border));overflow-x:auto}}@media(prefers-reduced-motion:reduce){.aeris-tabs__list{scroll-behavior:auto}.aeris-tabs__indicator,.aeris-tabs__list button{transition:none}}\n"]
824
+ }]
825
+ }],
826
+ ctorParameters: () => [],
827
+ propDecorators: {
828
+ value: [{
829
+ type: i0.Input,
830
+ args: [{
831
+ isSignal: true,
832
+ alias: "value",
833
+ required: false
834
+ }]
835
+ }, {
836
+ type: i0.Output,
837
+ args: ["valueChange"]
838
+ }],
839
+ ariaLabel: [{
840
+ type: i0.Input,
841
+ args: [{
842
+ isSignal: true,
843
+ alias: "ariaLabel",
844
+ required: false
845
+ }]
846
+ }],
847
+ ariaLabelledBy: [{
848
+ type: i0.Input,
849
+ args: [{
850
+ isSignal: true,
851
+ alias: "ariaLabelledBy",
852
+ required: false
853
+ }]
854
+ }],
855
+ orientation: [{
856
+ type: i0.Input,
857
+ args: [{
858
+ isSignal: true,
859
+ alias: "orientation",
860
+ required: false
861
+ }]
862
+ }],
863
+ activationMode: [{
864
+ type: i0.Input,
865
+ args: [{
866
+ isSignal: true,
867
+ alias: "activationMode",
868
+ required: false
869
+ }]
870
+ }],
871
+ variant: [{
872
+ type: i0.Input,
873
+ args: [{
874
+ isSignal: true,
875
+ alias: "variant",
876
+ required: false
877
+ }]
878
+ }],
879
+ size: [{
880
+ type: i0.Input,
881
+ args: [{
882
+ isSignal: true,
883
+ alias: "size",
884
+ required: false
885
+ }]
886
+ }],
887
+ justify: [{
888
+ type: i0.Input,
889
+ args: [{
890
+ isSignal: true,
891
+ alias: "justify",
892
+ required: false
893
+ }]
894
+ }],
895
+ scrollable: [{
896
+ type: i0.Input,
897
+ args: [{
898
+ isSignal: true,
899
+ alias: "scrollable",
900
+ required: false
901
+ }]
902
+ }],
903
+ panelTabIndex: [{
904
+ type: i0.Input,
905
+ args: [{
906
+ isSignal: true,
907
+ alias: "panelTabIndex",
908
+ required: false
909
+ }]
910
+ }],
911
+ changed: [{
912
+ type: i0.Output,
913
+ args: ["changed"]
914
+ }],
915
+ tabFocused: [{
916
+ type: i0.Output,
917
+ args: ["tabFocused"]
918
+ }],
919
+ discoveredPanels: [{
920
+ type: i0.ContentChildren,
921
+ args: [i0.forwardRef(() => AerisTabPanel), {
922
+ descendants: true,
923
+ isSignal: true
924
+ }]
925
+ }],
926
+ tabButtons: [{
927
+ type: i0.ViewChildren,
928
+ args: ["tabButton", { isSignal: true }]
929
+ }],
930
+ tabList: [{
931
+ type: i0.ViewChild,
932
+ args: ["tabList", { isSignal: true }]
933
+ }],
934
+ tabHeader: [{
935
+ type: i0.ViewChild,
936
+ args: ["tabHeader", { isSignal: true }]
937
+ }]
938
+ }
939
+ });
940
+ const AerisTabsModule = [
941
+ AerisTabs,
942
+ AerisTabPanel,
943
+ AerisTabHeaderTemplate,
944
+ AerisTabContentTemplate
945
+ ];
946
+ export { AerisTabContentTemplate, AerisTabHeaderTemplate, AerisTabPanel, AerisTabs, AerisTabsModule };
436
947
 
437
- export { AerisTabHeaderTemplate, AerisTabPanel, AerisTabs, AerisTabsModule };
438
- //# sourceMappingURL=aeris-ui-core-tabs.mjs.map
948
+ //# sourceMappingURL=aeris-ui-core-tabs.mjs.map