@aeris-ui/core 22.0.0-alpha.8 → 22.0.0-alpha.9

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 (257) hide show
  1. package/README.md +2 -2
  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 +1171 -428
  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 +205 -101
  15. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  16. package/fesm2022/aeris-ui-core-breadcrumb.mjs +547 -177
  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 +730 -110
  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 +690 -353
  25. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-cascade-select.mjs +915 -423
  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 +432 -135
  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-color-picker.mjs +1313 -683
  37. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  38. package/fesm2022/aeris-ui-core-compare.mjs +819 -310
  39. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  40. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1392 -551
  41. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  42. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1447 -744
  43. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  44. package/fesm2022/aeris-ui-core-context-menu.mjs +900 -450
  45. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  46. package/fesm2022/aeris-ui-core-date-picker.mjs +1656 -863
  47. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  48. package/fesm2022/aeris-ui-core-dialog.mjs +1066 -355
  49. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  50. package/fesm2022/aeris-ui-core-divider.mjs +204 -43
  51. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  52. package/fesm2022/aeris-ui-core-drawer.mjs +1002 -326
  53. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  54. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +402 -249
  55. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-editor.mjs +934 -572
  57. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-file-upload.mjs +1313 -511
  59. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
  61. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
  63. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
  65. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-form-field.mjs +672 -170
  67. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -1
  68. package/fesm2022/aeris-ui-core-galleria.mjs +1987 -797
  69. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  70. package/fesm2022/aeris-ui-core-glass.mjs +110 -33
  71. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  72. package/fesm2022/aeris-ui-core-icon-field.mjs +426 -106
  73. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-inplace.mjs +452 -130
  75. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-input-group.mjs +413 -114
  77. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-input-mask.mjs +650 -248
  79. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  80. package/fesm2022/aeris-ui-core-input-number.mjs +902 -334
  81. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  82. package/fesm2022/aeris-ui-core-input-otp.mjs +667 -253
  83. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-input-text.mjs +618 -152
  85. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  86. package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
  87. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  88. package/fesm2022/aeris-ui-core-mega-menu.mjs +601 -388
  89. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-menu.mjs +1032 -495
  91. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-menubar.mjs +960 -491
  93. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-message.mjs +477 -145
  95. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-meter-group.mjs +587 -196
  97. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-multi-select.mjs +1550 -552
  99. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-order-list.mjs +518 -202
  101. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  102. package/fesm2022/aeris-ui-core-organization-chart.mjs +455 -177
  103. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-paginator.mjs +329 -127
  105. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-panel.mjs +596 -196
  107. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-password.mjs +894 -247
  109. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-pick-list.mjs +1280 -659
  111. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-popover.mjs +892 -386
  113. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-progress-bar.mjs +545 -177
  115. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-progress-spinner.mjs +410 -133
  117. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-radio-button.mjs +386 -119
  119. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-rating.mjs +502 -225
  121. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
  123. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-scroll-top.mjs +204 -63
  125. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  126. package/fesm2022/aeris-ui-core-select.mjs +1794 -643
  127. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  128. package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
  129. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  130. package/fesm2022/aeris-ui-core-slider.mjs +868 -404
  131. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  132. package/fesm2022/aeris-ui-core-speed-dial.mjs +800 -329
  133. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  134. package/fesm2022/aeris-ui-core-split-button.mjs +880 -270
  135. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  136. package/fesm2022/aeris-ui-core-splitter.mjs +812 -352
  137. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  138. package/fesm2022/aeris-ui-core-stepper.mjs +697 -254
  139. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  140. package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
  141. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  142. package/fesm2022/aeris-ui-core-table.mjs +1984 -865
  143. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  144. package/fesm2022/aeris-ui-core-tabs.mjs +686 -324
  145. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-textarea.mjs +846 -212
  147. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-theme-builder.mjs +1256 -1423
  149. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  150. package/fesm2022/aeris-ui-core-theming.mjs +132 -147
  151. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  152. package/fesm2022/aeris-ui-core-tiered-menu.mjs +885 -465
  153. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  154. package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
  155. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  156. package/fesm2022/aeris-ui-core-toast.mjs +855 -615
  157. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  158. package/fesm2022/aeris-ui-core-toggle-switch.mjs +390 -127
  159. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  160. package/fesm2022/aeris-ui-core-toolbar.mjs +458 -121
  161. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  162. package/fesm2022/aeris-ui-core-tooltip.mjs +623 -345
  163. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  164. package/fesm2022/aeris-ui-core-tree-select.mjs +1356 -601
  165. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  166. package/fesm2022/aeris-ui-core-tree-table.mjs +2001 -942
  167. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  168. package/fesm2022/aeris-ui-core-tree.mjs +1103 -658
  169. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  170. package/fesm2022/aeris-ui-core.mjs +861 -842
  171. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  172. package/package.json +1 -1
  173. package/types/aeris-ui-core-accordion.d.ts +166 -93
  174. package/types/aeris-ui-core-animate-on-scroll.d.ts +71 -31
  175. package/types/aeris-ui-core-auto-complete.d.ts +326 -149
  176. package/types/aeris-ui-core-auto-focus.d.ts +24 -16
  177. package/types/aeris-ui-core-avatar.d.ts +112 -42
  178. package/types/aeris-ui-core-badge.d.ts +160 -47
  179. package/types/aeris-ui-core-block-ui.d.ts +47 -27
  180. package/types/aeris-ui-core-breadcrumb.d.ts +162 -92
  181. package/types/aeris-ui-core-button-group.d.ts +37 -16
  182. package/types/aeris-ui-core-button.d.ts +226 -64
  183. package/types/aeris-ui-core-card.d.ts +74 -37
  184. package/types/aeris-ui-core-carousel.d.ts +197 -117
  185. package/types/aeris-ui-core-cascade-select.d.ts +252 -131
  186. package/types/aeris-ui-core-chart.d.ts +134 -84
  187. package/types/aeris-ui-core-checkbox.d.ts +139 -55
  188. package/types/aeris-ui-core-chip.d.ts +116 -51
  189. package/types/aeris-ui-core-class-names.d.ts +22 -20
  190. package/types/aeris-ui-core-color-picker.d.ts +347 -150
  191. package/types/aeris-ui-core-compare.d.ts +224 -101
  192. package/types/aeris-ui-core-confirm-dialog.d.ts +441 -249
  193. package/types/aeris-ui-core-confirm-popup.d.ts +440 -268
  194. package/types/aeris-ui-core-context-menu.d.ts +262 -150
  195. package/types/aeris-ui-core-date-picker.d.ts +488 -226
  196. package/types/aeris-ui-core-dialog.d.ts +288 -121
  197. package/types/aeris-ui-core-divider.d.ts +58 -20
  198. package/types/aeris-ui-core-drawer.d.ts +273 -116
  199. package/types/aeris-ui-core-dynamic-dialog.d.ts +157 -140
  200. package/types/aeris-ui-core-editor.d.ts +243 -124
  201. package/types/aeris-ui-core-file-upload.d.ts +366 -197
  202. package/types/aeris-ui-core-filter-service.d.ts +48 -52
  203. package/types/aeris-ui-core-fluid.d.ts +12 -9
  204. package/types/aeris-ui-core-focus-trap.d.ts +39 -31
  205. package/types/aeris-ui-core-form-field.d.ts +158 -62
  206. package/types/aeris-ui-core-galleria.d.ts +589 -256
  207. package/types/aeris-ui-core-glass.d.ts +24 -11
  208. package/types/aeris-ui-core-icon-field.d.ts +94 -34
  209. package/types/aeris-ui-core-inplace.d.ts +123 -62
  210. package/types/aeris-ui-core-input-group.d.ts +84 -35
  211. package/types/aeris-ui-core-input-mask.d.ts +194 -71
  212. package/types/aeris-ui-core-input-number.d.ts +272 -90
  213. package/types/aeris-ui-core-input-otp.d.ts +190 -82
  214. package/types/aeris-ui-core-input-text.d.ts +185 -62
  215. package/types/aeris-ui-core-key-filter.d.ts +53 -39
  216. package/types/aeris-ui-core-mega-menu.d.ts +174 -123
  217. package/types/aeris-ui-core-menu.d.ts +275 -172
  218. package/types/aeris-ui-core-menubar.d.ts +272 -160
  219. package/types/aeris-ui-core-message.d.ts +132 -61
  220. package/types/aeris-ui-core-meter-group.d.ts +162 -90
  221. package/types/aeris-ui-core-multi-select.d.ts +435 -187
  222. package/types/aeris-ui-core-order-list.d.ts +143 -66
  223. package/types/aeris-ui-core-organization-chart.d.ts +132 -77
  224. package/types/aeris-ui-core-paginator.d.ts +92 -46
  225. package/types/aeris-ui-core-panel.d.ts +149 -78
  226. package/types/aeris-ui-core-password.d.ts +257 -108
  227. package/types/aeris-ui-core-pick-list.d.ts +373 -179
  228. package/types/aeris-ui-core-popover.d.ts +218 -107
  229. package/types/aeris-ui-core-progress-bar.d.ts +156 -74
  230. package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
  231. package/types/aeris-ui-core-radio-button.d.ts +124 -51
  232. package/types/aeris-ui-core-rating.d.ts +149 -76
  233. package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
  234. package/types/aeris-ui-core-scroll-top.d.ts +64 -29
  235. package/types/aeris-ui-core-select.d.ts +474 -226
  236. package/types/aeris-ui-core-skeleton.d.ts +39 -17
  237. package/types/aeris-ui-core-slider.d.ts +270 -116
  238. package/types/aeris-ui-core-speed-dial.d.ts +240 -112
  239. package/types/aeris-ui-core-split-button.d.ts +264 -121
  240. package/types/aeris-ui-core-splitter.d.ts +224 -106
  241. package/types/aeris-ui-core-stepper.d.ts +183 -91
  242. package/types/aeris-ui-core-style-class.d.ts +141 -71
  243. package/types/aeris-ui-core-table.d.ts +595 -308
  244. package/types/aeris-ui-core-tabs.d.ts +163 -90
  245. package/types/aeris-ui-core-textarea.d.ts +261 -81
  246. package/types/aeris-ui-core-theme-builder.d.ts +463 -475
  247. package/types/aeris-ui-core-theming.d.ts +42 -49
  248. package/types/aeris-ui-core-tiered-menu.d.ts +249 -147
  249. package/types/aeris-ui-core-timeline.d.ts +108 -71
  250. package/types/aeris-ui-core-toast.d.ts +219 -155
  251. package/types/aeris-ui-core-toggle-switch.d.ts +125 -52
  252. package/types/aeris-ui-core-toolbar.d.ts +98 -41
  253. package/types/aeris-ui-core-tooltip.d.ts +157 -92
  254. package/types/aeris-ui-core-tree-select.d.ts +359 -179
  255. package/types/aeris-ui-core-tree-table.d.ts +565 -290
  256. package/types/aeris-ui-core-tree.d.ts +269 -165
  257. package/types/aeris-ui-core.d.ts +161 -125
@@ -1,302 +1,535 @@
1
- import { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { InjectionToken, inject, TemplateRef, Directive, input, booleanAttribute, viewChild, contentChild, computed, Component, ElementRef, PLATFORM_ID, DestroyRef, model, output, contentChildren, viewChildren, signal, afterNextRender, effect, afterRenderEffect } from '@angular/core';
4
-
5
- const AERIS_TABS_OWNER = new InjectionToken('AerisTabsOwner');
6
- class AerisTabHeaderTemplate {
7
- template = inject(TemplateRef);
8
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisTabHeaderTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.6", type: AerisTabHeaderTemplate, isStandalone: true, selector: "ng-template[aerisTabHeader]", ngImport: i0 });
10
- }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisTabHeaderTemplate, decorators: [{
12
- type: Directive,
13
- args: [{ selector: 'ng-template[aerisTabHeader]' }]
14
- }] });
15
- class AerisTabContentTemplate {
16
- template = inject(TemplateRef);
17
- renderStrategy = input('preserve', { ...(ngDevMode ? { debugName: "renderStrategy" } : /* istanbul ignore next */ {}), alias: 'aerisTabContent',
18
- transform: (value) => value || 'preserve' });
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisTabContentTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
20
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.6", type: AerisTabContentTemplate, isStandalone: true, selector: "ng-template[aerisTabContent]", inputs: { renderStrategy: { classPropertyName: "renderStrategy", publicName: "aerisTabContent", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
21
- }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisTabContentTemplate, decorators: [{
23
- type: Directive,
24
- args: [{ selector: 'ng-template[aerisTabContent]' }]
25
- }], propDecorators: { renderStrategy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aerisTabContent", required: false }] }] } });
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.1",
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.1",
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.1",
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.1",
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.1",
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.1",
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
+ });
26
83
  let nextPanelId = 0;
27
- class AerisTabPanel {
28
- owner = inject(AERIS_TABS_OWNER, { optional: true });
29
- instanceId = nextPanelId++;
30
- value = input.required(/* @ts-ignore */
31
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
32
- label = input.required(/* @ts-ignore */
33
- ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
34
- disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
35
- panelId = `aeris-tab-panel-${this.instanceId}`;
36
- tabId = `aeris-tab-${this.instanceId}`;
37
- projectedContent = viewChild.required('content', /* @ts-ignore */
38
- ...(ngDevMode ? [{ debugName: "projectedContent" }] : /* istanbul ignore next */ []));
39
- deferredContent = contentChild(AerisTabContentTemplate, { ...(ngDevMode ? { debugName: "deferredContent" } : /* istanbul ignore next */ {}), descendants: false });
40
- headerTemplate = contentChild(AerisTabHeaderTemplate, { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
41
- content = computed(() => this.deferredContent()?.template ?? this.projectedContent(), /* @ts-ignore */
42
- ...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
43
- renderStrategy = computed(() => this.deferredContent()?.renderStrategy() ?? 'eager', /* @ts-ignore */
44
- ...(ngDevMode ? [{ debugName: "renderStrategy" }] : /* istanbul ignore next */ []));
45
- isDirectPanelOf(tabsHost) {
46
- return this.owner?.host === tabsHost;
47
- }
48
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisTabPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });
49
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.1.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: "deferredContent", first: true, predicate: AerisTabContentTemplate, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: AerisTabHeaderTemplate, isSignal: true }], viewQueries: [{ propertyName: "projectedContent", 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.1",
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.1",
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: `
50
167
  <ng-template #content>
51
168
  <ng-content />
52
169
  </ng-template>
53
- `, isInline: true });
54
- }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisTabPanel, decorators: [{
56
- type: Component,
57
- args: [{
58
- selector: 'aeris-tab-panel',
59
- template: `
170
+ `,
171
+ isInline: true
172
+ });
173
+ };
174
+ i0.ɵɵngDeclareClassMetadata({
175
+ minVersion: "12.0.0",
176
+ version: "22.2.1",
177
+ ngImport: i0,
178
+ type: AerisTabPanel,
179
+ decorators: [{
180
+ type: Component,
181
+ args: [{
182
+ selector: "aeris-tab-panel",
183
+ template: `
60
184
  <ng-template #content>
61
185
  <ng-content />
62
186
  </ng-template>
63
187
  `,
64
- host: {
65
- '[style.display]': '"none"',
66
- },
67
- }]
68
- }], 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 }] }], projectedContent: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], deferredContent: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisTabContentTemplate), { ...{
69
- descendants: false,
70
- }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisTabHeaderTemplate), { ...{
71
- descendants: false,
72
- }, isSignal: true }] }] } });
73
- class AerisTabs {
74
- hostElement = inject(ElementRef).nativeElement;
75
- isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
76
- destroyRef = inject(DestroyRef);
77
- value = model('', /* @ts-ignore */
78
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
79
- ariaLabel = input('', /* @ts-ignore */
80
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
81
- ariaLabelledBy = input('', /* @ts-ignore */
82
- ...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
83
- orientation = input('horizontal', /* @ts-ignore */
84
- ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
85
- activationMode = input('automatic', /* @ts-ignore */
86
- ...(ngDevMode ? [{ debugName: "activationMode" }] : /* istanbul ignore next */ []));
87
- variant = input('line', /* @ts-ignore */
88
- ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
89
- size = input('md', /* @ts-ignore */
90
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
91
- justify = input('start', /* @ts-ignore */
92
- ...(ngDevMode ? [{ debugName: "justify" }] : /* istanbul ignore next */ []));
93
- scrollable = input(true, { ...(ngDevMode ? { debugName: "scrollable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
94
- panelTabIndex = input(0, /* @ts-ignore */
95
- ...(ngDevMode ? [{ debugName: "panelTabIndex" }] : /* istanbul ignore next */ []));
96
- changed = output();
97
- tabFocused = output();
98
- discoveredPanels = contentChildren(AerisTabPanel, { ...(ngDevMode ? { debugName: "discoveredPanels" } : /* istanbul ignore next */ {}), descendants: true });
99
- panels = computed(() => this.discoveredPanels().filter((panel) => panel.isDirectPanelOf(this.hostElement)), /* @ts-ignore */
100
- ...(ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []));
101
- tabButtons = viewChildren('tabButton', /* @ts-ignore */
102
- ...(ngDevMode ? [{ debugName: "tabButtons" }] : /* istanbul ignore next */ []));
103
- tabList = viewChild('tabList', /* @ts-ignore */
104
- ...(ngDevMode ? [{ debugName: "tabList" }] : /* istanbul ignore next */ []));
105
- tabHeader = viewChild('tabHeader', /* @ts-ignore */
106
- ...(ngDevMode ? [{ debugName: "tabHeader" }] : /* istanbul ignore next */ []));
107
- focusedValue = signal('', /* @ts-ignore */
108
- ...(ngDevMode ? [{ debugName: "focusedValue" }] : /* istanbul ignore next */ []));
109
- activatedPanels = signal(new Set(), /* @ts-ignore */
110
- ...(ngDevMode ? [{ debugName: "activatedPanels" }] : /* istanbul ignore next */ []));
111
- hasOverflow = signal(false, /* @ts-ignore */
112
- ...(ngDevMode ? [{ debugName: "hasOverflow" }] : /* istanbul ignore next */ []));
113
- canScrollPrevious = signal(false, /* @ts-ignore */
114
- ...(ngDevMode ? [{ debugName: "canScrollPrevious" }] : /* istanbul ignore next */ []));
115
- canScrollNext = signal(false, /* @ts-ignore */
116
- ...(ngDevMode ? [{ debugName: "canScrollNext" }] : /* istanbul ignore next */ []));
117
- showScrollControls = computed(() => this.scrollable() && this.orientation() === 'horizontal' && this.hasOverflow(), /* @ts-ignore */
118
- ...(ngDevMode ? [{ debugName: "showScrollControls" }] : /* istanbul ignore next */ []));
119
- activePanel = computed(() => this.panels().find((panel) => !panel.disabled() && panel.value() === this.value()) ??
120
- this.panels().find((panel) => !panel.disabled()), /* @ts-ignore */
121
- ...(ngDevMode ? [{ debugName: "activePanel" }] : /* istanbul ignore next */ []));
122
- focusedPanel = computed(() => this.panels().find((panel) => !panel.disabled() && panel.value() === this.focusedValue()) ??
123
- this.activePanel(), /* @ts-ignore */
124
- ...(ngDevMode ? [{ debugName: "focusedPanel" }] : /* istanbul ignore next */ []));
125
- panelViews = computed(() => {
126
- const activePanel = this.activePanel();
127
- const activatedPanels = this.activatedPanels();
128
- return this.panels().map((panel) => {
129
- const active = panel === activePanel;
130
- const strategy = panel.renderStrategy();
131
- return {
132
- panel,
133
- active,
134
- rendered: strategy === 'eager' || active || (strategy === 'preserve' && activatedPanels.has(panel)),
135
- };
136
- });
137
- }, /* @ts-ignore */
138
- ...(ngDevMode ? [{ debugName: "panelViews" }] : /* istanbul ignore next */ []));
139
- constructor() {
140
- afterNextRender(() => {
141
- this.updateScrollState();
142
- this.observeTabSizing();
143
- });
144
- effect(() => {
145
- const panelCount = this.panels().length;
146
- this.tabButtons();
147
- if (panelCount === 0)
148
- return;
149
- queueMicrotask(() => this.updateScrollState());
150
- });
151
- afterRenderEffect(() => {
152
- const panel = this.activePanel();
153
- if (!panel || this.activatedPanels().has(panel))
154
- return;
155
- this.activatedPanels.update((current) => new Set(current).add(panel));
156
- });
157
- }
158
- select(valueOrPanel, originalEvent = null) {
159
- const panel = typeof valueOrPanel === 'string'
160
- ? this.panels().find((candidate) => candidate.value() === valueOrPanel)
161
- : valueOrPanel;
162
- if (!panel || panel.disabled())
163
- return;
164
- const previousValue = this.activePanel()?.value() ?? '';
165
- this.focusedValue.set(panel.value());
166
- if (previousValue === panel.value() && this.value() === panel.value())
167
- return;
168
- this.value.set(panel.value());
169
- this.changed.emit({
170
- originalEvent,
171
- value: panel.value(),
172
- previousValue,
173
- });
174
- }
175
- focusTab(value, options) {
176
- const panelIndex = this.panels().findIndex((panel) => !panel.disabled() && panel.value() === value);
177
- if (panelIndex < 0)
178
- return;
179
- this.focusedValue.set(value);
180
- this.tabButtons()[panelIndex]?.nativeElement.focus(options);
181
- }
182
- handleKeydown(event) {
183
- if (this.activationMode() === 'manual' && (event.key === 'Enter' || event.key === ' ')) {
184
- event.preventDefault();
185
- const panel = this.focusedPanel();
186
- if (panel)
187
- this.select(panel, event);
188
- return;
189
- }
190
- const direction = this.keyDirection(event.key);
191
- if (direction === undefined)
192
- return;
193
- event.preventDefault();
194
- const enabledPanels = this.panels().filter((panel) => !panel.disabled());
195
- if (enabledPanels.length === 0)
196
- return;
197
- const currentPanel = this.focusedPanel() ?? this.activePanel();
198
- const currentIndex = Math.max(enabledPanels.indexOf(currentPanel), 0);
199
- const nextIndex = direction === 'first'
200
- ? 0
201
- : direction === 'last'
202
- ? enabledPanels.length - 1
203
- : (currentIndex + direction + enabledPanels.length) % enabledPanels.length;
204
- const nextPanel = enabledPanels[nextIndex];
205
- if (!nextPanel)
206
- return;
207
- this.focusedValue.set(nextPanel.value());
208
- if (this.activationMode() === 'automatic')
209
- this.select(nextPanel, event);
210
- this.focusTab(nextPanel.value());
211
- this.scrollPanelIntoView(nextPanel);
212
- }
213
- handleTabFocus(panel, event) {
214
- this.focusedValue.set(panel.value());
215
- this.tabFocused.emit(panel.value());
216
- if (this.activationMode() === 'automatic' && panel !== this.activePanel()) {
217
- this.select(panel, event);
218
- }
219
- }
220
- scrollTabs(direction) {
221
- const list = this.tabList()?.nativeElement;
222
- if (!list)
223
- return;
224
- const left = direction * Math.max(list.clientWidth * 0.75, 160);
225
- if (typeof list.scrollBy === 'function') {
226
- list.scrollBy({ left, behavior: 'smooth' });
227
- }
228
- else {
229
- list.scrollLeft += left;
230
- }
231
- queueMicrotask(() => this.updateScrollState());
232
- }
233
- updateScrollState() {
234
- const list = this.tabList()?.nativeElement;
235
- const header = this.tabHeader()?.nativeElement;
236
- if (!list || !header)
237
- return;
238
- const overflow = this.scrollable() &&
239
- this.orientation() === 'horizontal' &&
240
- list.scrollWidth > header.clientWidth + 1;
241
- this.hasOverflow.set(overflow);
242
- if (!overflow) {
243
- this.canScrollPrevious.set(false);
244
- this.canScrollNext.set(false);
245
- return;
246
- }
247
- this.canScrollPrevious.set(list.scrollLeft > 1);
248
- this.canScrollNext.set(list.scrollLeft + list.clientWidth < list.scrollWidth - 1);
249
- }
250
- observeTabSizing() {
251
- if (!this.isBrowser || typeof globalThis.ResizeObserver !== 'function')
252
- return;
253
- const header = this.tabHeader()?.nativeElement;
254
- const list = this.tabList()?.nativeElement;
255
- if (!header || !list)
256
- return;
257
- const observer = new ResizeObserver(() => this.updateScrollState());
258
- observer.observe(header);
259
- observer.observe(list);
260
- for (const button of this.tabButtons())
261
- observer.observe(button.nativeElement);
262
- this.destroyRef.onDestroy(() => observer.disconnect());
263
- }
264
- scrollPanelIntoView(panel) {
265
- const panelIndex = this.panels().indexOf(panel);
266
- const tab = this.tabButtons()[panelIndex]?.nativeElement;
267
- if (typeof tab?.scrollIntoView === 'function') {
268
- tab.scrollIntoView({
269
- behavior: this.isBrowser ? 'smooth' : 'auto',
270
- block: 'nearest',
271
- inline: 'nearest',
272
- });
273
- }
274
- queueMicrotask(() => this.updateScrollState());
275
- }
276
- keyDirection(key) {
277
- if (key === 'Home')
278
- return 'first';
279
- if (key === 'End')
280
- return 'last';
281
- if ((this.orientation() === 'horizontal' && key === 'ArrowLeft') ||
282
- (this.orientation() === 'vertical' && key === 'ArrowUp')) {
283
- return -1;
284
- }
285
- if ((this.orientation() === 'horizontal' && key === 'ArrowRight') ||
286
- (this.orientation() === 'vertical' && key === 'ArrowDown')) {
287
- return 1;
288
- }
289
- return undefined;
290
- }
291
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisTabs, deps: [], target: i0.ɵɵFactoryTarget.Component });
292
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.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" }, providers: [
293
- {
294
- provide: AERIS_TABS_OWNER,
295
- useFactory: () => ({
296
- host: inject(ElementRef).nativeElement,
297
- }),
298
- },
299
- ], 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
+ canScrollPrevious = signal(false, ...ngDevMode ? [{ debugName: "canScrollPrevious" }] : /* istanbul ignore next */ []);
267
+ canScrollNext = signal(false, ...ngDevMode ? [{ debugName: "canScrollNext" }] : /* istanbul ignore next */ []);
268
+ showScrollControls = computed(() => this.scrollable() && this.orientation() === "horizontal" && this.hasOverflow(), ...ngDevMode ? [{ debugName: "showScrollControls" }] : /* istanbul ignore next */ []);
269
+ activePanel = computed(() => this.panels().find((panel) => !panel.disabled() && panel.value() === this.value()) ?? this.panels().find((panel) => !panel.disabled()), ...ngDevMode ? [{ debugName: "activePanel" }] : /* istanbul ignore next */ []);
270
+ focusedPanel = computed(() => this.panels().find((panel) => !panel.disabled() && panel.value() === this.focusedValue()) ?? this.activePanel(), ...ngDevMode ? [{ debugName: "focusedPanel" }] : /* istanbul ignore next */ []);
271
+ panelViews = computed(() => {
272
+ const activePanel = this.activePanel();
273
+ const activatedPanels = this.activatedPanels();
274
+ return this.panels().map((panel) => {
275
+ const active = panel === activePanel;
276
+ const strategy = panel.renderStrategy();
277
+ return {
278
+ panel,
279
+ active,
280
+ rendered: strategy === "eager" || active || strategy === "preserve" && activatedPanels.has(panel)
281
+ };
282
+ });
283
+ }, ...ngDevMode ? [{ debugName: "panelViews" }] : /* istanbul ignore next */ []);
284
+ constructor() {
285
+ afterNextRender(() => {
286
+ this.updateScrollState();
287
+ this.observeTabSizing();
288
+ });
289
+ effect(() => {
290
+ const panelCount = this.panels().length;
291
+ this.tabButtons();
292
+ if (panelCount === 0) return;
293
+ queueMicrotask(() => this.updateScrollState());
294
+ });
295
+ afterRenderEffect(() => {
296
+ const panel = this.activePanel();
297
+ if (!panel || this.activatedPanels().has(panel)) return;
298
+ this.activatedPanels.update((current) => new Set(current).add(panel));
299
+ });
300
+ }
301
+ select(valueOrPanel, originalEvent = null) {
302
+ const panel = typeof valueOrPanel === "string" ? this.panels().find((candidate) => candidate.value() === valueOrPanel) : valueOrPanel;
303
+ if (!panel || panel.disabled()) return;
304
+ const previousValue = this.activePanel()?.value() ?? "";
305
+ this.focusedValue.set(panel.value());
306
+ if (previousValue === panel.value() && this.value() === panel.value()) return;
307
+ this.value.set(panel.value());
308
+ this.changed.emit({
309
+ originalEvent,
310
+ value: panel.value(),
311
+ previousValue
312
+ });
313
+ }
314
+ focusTab(value, options) {
315
+ const panelIndex = this.panels().findIndex((panel) => !panel.disabled() && panel.value() === value);
316
+ if (panelIndex < 0) return;
317
+ this.focusedValue.set(value);
318
+ this.tabButtons()[panelIndex]?.nativeElement.focus(options);
319
+ }
320
+ handleKeydown(event) {
321
+ if (this.activationMode() === "manual" && (event.key === "Enter" || event.key === " ")) {
322
+ event.preventDefault();
323
+ const panel = this.focusedPanel();
324
+ if (panel) this.select(panel, event);
325
+ return;
326
+ }
327
+ const direction = this.keyDirection(event.key);
328
+ if (direction === void 0) return;
329
+ event.preventDefault();
330
+ const enabledPanels = this.panels().filter((panel) => !panel.disabled());
331
+ if (enabledPanels.length === 0) return;
332
+ const currentPanel = this.focusedPanel() ?? this.activePanel();
333
+ const currentIndex = Math.max(enabledPanels.indexOf(currentPanel), 0);
334
+ const nextPanel = enabledPanels[direction === "first" ? 0 : direction === "last" ? enabledPanels.length - 1 : (currentIndex + direction + enabledPanels.length) % enabledPanels.length];
335
+ if (!nextPanel) return;
336
+ this.focusedValue.set(nextPanel.value());
337
+ if (this.activationMode() === "automatic") this.select(nextPanel, event);
338
+ this.focusTab(nextPanel.value());
339
+ this.scrollPanelIntoView(nextPanel);
340
+ }
341
+ handleTabFocus(panel, event) {
342
+ this.focusedValue.set(panel.value());
343
+ this.tabFocused.emit(panel.value());
344
+ if (this.activationMode() === "automatic" && panel !== this.activePanel()) this.select(panel, event);
345
+ }
346
+ scrollTabs(direction) {
347
+ const list = this.tabList()?.nativeElement;
348
+ if (!list) return;
349
+ const left = direction * Math.max(list.clientWidth * .75, 160);
350
+ if (typeof list.scrollBy === "function") list.scrollBy({
351
+ left,
352
+ behavior: "smooth"
353
+ });
354
+ else list.scrollLeft += left;
355
+ queueMicrotask(() => this.updateScrollState());
356
+ }
357
+ updateScrollState() {
358
+ const list = this.tabList()?.nativeElement;
359
+ const header = this.tabHeader()?.nativeElement;
360
+ if (!list || !header) return;
361
+ const overflow = this.scrollable() && this.orientation() === "horizontal" && list.scrollWidth > header.clientWidth + 1;
362
+ this.hasOverflow.set(overflow);
363
+ if (!overflow) {
364
+ this.canScrollPrevious.set(false);
365
+ this.canScrollNext.set(false);
366
+ return;
367
+ }
368
+ this.canScrollPrevious.set(list.scrollLeft > 1);
369
+ this.canScrollNext.set(list.scrollLeft + list.clientWidth < list.scrollWidth - 1);
370
+ }
371
+ observeTabSizing() {
372
+ if (!this.isBrowser || typeof globalThis.ResizeObserver !== "function") return;
373
+ const header = this.tabHeader()?.nativeElement;
374
+ const list = this.tabList()?.nativeElement;
375
+ if (!header || !list) return;
376
+ const observer = new ResizeObserver(() => this.updateScrollState());
377
+ observer.observe(header);
378
+ observer.observe(list);
379
+ for (const button of this.tabButtons()) observer.observe(button.nativeElement);
380
+ this.destroyRef.onDestroy(() => observer.disconnect());
381
+ }
382
+ scrollPanelIntoView(panel) {
383
+ const panelIndex = this.panels().indexOf(panel);
384
+ const tab = this.tabButtons()[panelIndex]?.nativeElement;
385
+ if (typeof tab?.scrollIntoView === "function") tab.scrollIntoView({
386
+ behavior: this.isBrowser ? "smooth" : "auto",
387
+ block: "nearest",
388
+ inline: "nearest"
389
+ });
390
+ queueMicrotask(() => this.updateScrollState());
391
+ }
392
+ keyDirection(key) {
393
+ if (key === "Home") return "first";
394
+ if (key === "End") return "last";
395
+ if (this.orientation() === "horizontal" && key === "ArrowLeft" || this.orientation() === "vertical" && key === "ArrowUp") return -1;
396
+ if (this.orientation() === "horizontal" && key === "ArrowRight" || this.orientation() === "vertical" && key === "ArrowDown") return 1;
397
+ }
398
+ static ɵfac = i0.ɵɵngDeclareFactory({
399
+ minVersion: "12.0.0",
400
+ version: "22.2.1",
401
+ ngImport: i0,
402
+ type: AerisTabs,
403
+ deps: [],
404
+ target: i0.ɵɵFactoryTarget.Component
405
+ });
406
+ static ɵcmp = i0.ɵɵngDeclareComponent({
407
+ minVersion: "17.0.0",
408
+ version: "22.2.1",
409
+ type: AerisTabs,
410
+ isStandalone: true,
411
+ selector: "aeris-tabs",
412
+ inputs: {
413
+ value: {
414
+ classPropertyName: "value",
415
+ publicName: "value",
416
+ isSignal: true,
417
+ isRequired: false,
418
+ transformFunction: null
419
+ },
420
+ ariaLabel: {
421
+ classPropertyName: "ariaLabel",
422
+ publicName: "ariaLabel",
423
+ isSignal: true,
424
+ isRequired: false,
425
+ transformFunction: null
426
+ },
427
+ ariaLabelledBy: {
428
+ classPropertyName: "ariaLabelledBy",
429
+ publicName: "ariaLabelledBy",
430
+ isSignal: true,
431
+ isRequired: false,
432
+ transformFunction: null
433
+ },
434
+ orientation: {
435
+ classPropertyName: "orientation",
436
+ publicName: "orientation",
437
+ isSignal: true,
438
+ isRequired: false,
439
+ transformFunction: null
440
+ },
441
+ activationMode: {
442
+ classPropertyName: "activationMode",
443
+ publicName: "activationMode",
444
+ isSignal: true,
445
+ isRequired: false,
446
+ transformFunction: null
447
+ },
448
+ variant: {
449
+ classPropertyName: "variant",
450
+ publicName: "variant",
451
+ isSignal: true,
452
+ isRequired: false,
453
+ transformFunction: null
454
+ },
455
+ size: {
456
+ classPropertyName: "size",
457
+ publicName: "size",
458
+ isSignal: true,
459
+ isRequired: false,
460
+ transformFunction: null
461
+ },
462
+ justify: {
463
+ classPropertyName: "justify",
464
+ publicName: "justify",
465
+ isSignal: true,
466
+ isRequired: false,
467
+ transformFunction: null
468
+ },
469
+ scrollable: {
470
+ classPropertyName: "scrollable",
471
+ publicName: "scrollable",
472
+ isSignal: true,
473
+ isRequired: false,
474
+ transformFunction: null
475
+ },
476
+ panelTabIndex: {
477
+ classPropertyName: "panelTabIndex",
478
+ publicName: "panelTabIndex",
479
+ isSignal: true,
480
+ isRequired: false,
481
+ transformFunction: null
482
+ }
483
+ },
484
+ outputs: {
485
+ value: "valueChange",
486
+ changed: "changed",
487
+ tabFocused: "tabFocused"
488
+ },
489
+ host: {
490
+ properties: {
491
+ "attr.data-orientation": "orientation()",
492
+ "attr.data-variant": "variant()",
493
+ "attr.data-size": "size()",
494
+ "attr.data-justify": "justify()",
495
+ "attr.data-scrollable": "scrollable() || null"
496
+ },
497
+ classAttribute: "aeris-tabs"
498
+ },
499
+ providers: [{
500
+ provide: AERIS_TABS_OWNER,
501
+ useFactory: () => ({ host: inject(ElementRef).nativeElement })
502
+ }],
503
+ queries: [{
504
+ propertyName: "discoveredPanels",
505
+ predicate: AerisTabPanel,
506
+ descendants: true,
507
+ isSignal: true
508
+ }],
509
+ viewQueries: [
510
+ {
511
+ propertyName: "tabButtons",
512
+ predicate: ["tabButton"],
513
+ descendants: true,
514
+ isSignal: true
515
+ },
516
+ {
517
+ propertyName: "tabList",
518
+ first: true,
519
+ predicate: ["tabList"],
520
+ descendants: true,
521
+ isSignal: true
522
+ },
523
+ {
524
+ propertyName: "tabHeader",
525
+ first: true,
526
+ predicate: ["tabHeader"],
527
+ descendants: true,
528
+ isSignal: true
529
+ }
530
+ ],
531
+ ngImport: i0,
532
+ template: `
300
533
  <div class="aeris-tabs__panel-source" aria-hidden="true">
301
534
  <ng-content />
302
535
  </div>
@@ -380,18 +613,36 @@ class AerisTabs {
380
613
  }
381
614
  </div>
382
615
  }
383
- `, 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));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, var(--aeris-radius-control, .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, #2c694b))}.aeris-tabs__list button[aria-selected=true]{color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #2c694b))}.aeris-tabs__list button[aria-selected=true]:after{background:var(--aeris-tabs-indicator, var(--aeris-primary, #2c694b))}.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, #2c432c);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, #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));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));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));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"] }] });
384
- }
385
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisTabs, decorators: [{
386
- type: Component,
387
- args: [{ selector: 'aeris-tabs', providers: [
388
- {
389
- provide: AERIS_TABS_OWNER,
390
- useFactory: () => ({
391
- host: inject(ElementRef).nativeElement,
392
- }),
393
- },
394
- ], imports: [NgTemplateOutlet], template: `
616
+ `,
617
+ isInline: true,
618
+ 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));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, var(--aeris-radius-control, .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, #2c694b))}.aeris-tabs__list button[aria-selected=true]{color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #2c694b))}.aeris-tabs__list button[aria-selected=true]:after{background:var(--aeris-tabs-indicator, var(--aeris-primary, #2c694b))}.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, #2c432c);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, #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));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));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));overflow-x:auto}}@media(prefers-reduced-motion:reduce){.aeris-tabs__list{scroll-behavior:auto}}\n"],
619
+ dependencies: [{
620
+ kind: "directive",
621
+ type: NgTemplateOutlet,
622
+ selector: "[ngTemplateOutlet]",
623
+ inputs: [
624
+ "ngTemplateOutletContext",
625
+ "ngTemplateOutlet",
626
+ "ngTemplateOutletInjector"
627
+ ]
628
+ }]
629
+ });
630
+ };
631
+ i0.ɵɵngDeclareClassMetadata({
632
+ minVersion: "12.0.0",
633
+ version: "22.2.1",
634
+ ngImport: i0,
635
+ type: AerisTabs,
636
+ decorators: [{
637
+ type: Component,
638
+ args: [{
639
+ selector: "aeris-tabs",
640
+ providers: [{
641
+ provide: AERIS_TABS_OWNER,
642
+ useFactory: () => ({ host: inject(ElementRef).nativeElement })
643
+ }],
644
+ imports: [NgTemplateOutlet],
645
+ template: `
395
646
  <div class="aeris-tabs__panel-source" aria-hidden="true">
396
647
  <ng-content />
397
648
  </div>
@@ -475,27 +726,138 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
475
726
  }
476
727
  </div>
477
728
  }
478
- `, host: {
479
- class: 'aeris-tabs',
480
- '[attr.data-orientation]': 'orientation()',
481
- '[attr.data-variant]': 'variant()',
482
- '[attr.data-size]': 'size()',
483
- '[attr.data-justify]': 'justify()',
484
- '[attr.data-scrollable]': 'scrollable() || null',
485
- }, 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));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, var(--aeris-radius-control, .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, #2c694b))}.aeris-tabs__list button[aria-selected=true]{color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #2c694b))}.aeris-tabs__list button[aria-selected=true]:after{background:var(--aeris-tabs-indicator, var(--aeris-primary, #2c694b))}.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, #2c432c);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, #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));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));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));overflow-x:auto}}@media(prefers-reduced-motion:reduce){.aeris-tabs__list{scroll-behavior:auto}}\n"] }]
486
- }], 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), { ...{
487
- descendants: true,
488
- }, 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 }] }] } });
729
+ `,
730
+ host: {
731
+ class: "aeris-tabs",
732
+ "[attr.data-orientation]": "orientation()",
733
+ "[attr.data-variant]": "variant()",
734
+ "[attr.data-size]": "size()",
735
+ "[attr.data-justify]": "justify()",
736
+ "[attr.data-scrollable]": "scrollable() || null"
737
+ },
738
+ 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));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, var(--aeris-radius-control, .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, #2c694b))}.aeris-tabs__list button[aria-selected=true]{color:var(--aeris-tabs-active-text, var(--aeris-primary-text, #2c694b))}.aeris-tabs__list button[aria-selected=true]:after{background:var(--aeris-tabs-indicator, var(--aeris-primary, #2c694b))}.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, #2c432c);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, #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));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));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));overflow-x:auto}}@media(prefers-reduced-motion:reduce){.aeris-tabs__list{scroll-behavior:auto}}\n"]
739
+ }]
740
+ }],
741
+ ctorParameters: () => [],
742
+ propDecorators: {
743
+ value: [{
744
+ type: i0.Input,
745
+ args: [{
746
+ isSignal: true,
747
+ alias: "value",
748
+ required: false
749
+ }]
750
+ }, {
751
+ type: i0.Output,
752
+ args: ["valueChange"]
753
+ }],
754
+ ariaLabel: [{
755
+ type: i0.Input,
756
+ args: [{
757
+ isSignal: true,
758
+ alias: "ariaLabel",
759
+ required: false
760
+ }]
761
+ }],
762
+ ariaLabelledBy: [{
763
+ type: i0.Input,
764
+ args: [{
765
+ isSignal: true,
766
+ alias: "ariaLabelledBy",
767
+ required: false
768
+ }]
769
+ }],
770
+ orientation: [{
771
+ type: i0.Input,
772
+ args: [{
773
+ isSignal: true,
774
+ alias: "orientation",
775
+ required: false
776
+ }]
777
+ }],
778
+ activationMode: [{
779
+ type: i0.Input,
780
+ args: [{
781
+ isSignal: true,
782
+ alias: "activationMode",
783
+ required: false
784
+ }]
785
+ }],
786
+ variant: [{
787
+ type: i0.Input,
788
+ args: [{
789
+ isSignal: true,
790
+ alias: "variant",
791
+ required: false
792
+ }]
793
+ }],
794
+ size: [{
795
+ type: i0.Input,
796
+ args: [{
797
+ isSignal: true,
798
+ alias: "size",
799
+ required: false
800
+ }]
801
+ }],
802
+ justify: [{
803
+ type: i0.Input,
804
+ args: [{
805
+ isSignal: true,
806
+ alias: "justify",
807
+ required: false
808
+ }]
809
+ }],
810
+ scrollable: [{
811
+ type: i0.Input,
812
+ args: [{
813
+ isSignal: true,
814
+ alias: "scrollable",
815
+ required: false
816
+ }]
817
+ }],
818
+ panelTabIndex: [{
819
+ type: i0.Input,
820
+ args: [{
821
+ isSignal: true,
822
+ alias: "panelTabIndex",
823
+ required: false
824
+ }]
825
+ }],
826
+ changed: [{
827
+ type: i0.Output,
828
+ args: ["changed"]
829
+ }],
830
+ tabFocused: [{
831
+ type: i0.Output,
832
+ args: ["tabFocused"]
833
+ }],
834
+ discoveredPanels: [{
835
+ type: i0.ContentChildren,
836
+ args: [i0.forwardRef(() => AerisTabPanel), {
837
+ descendants: true,
838
+ isSignal: true
839
+ }]
840
+ }],
841
+ tabButtons: [{
842
+ type: i0.ViewChildren,
843
+ args: ["tabButton", { isSignal: true }]
844
+ }],
845
+ tabList: [{
846
+ type: i0.ViewChild,
847
+ args: ["tabList", { isSignal: true }]
848
+ }],
849
+ tabHeader: [{
850
+ type: i0.ViewChild,
851
+ args: ["tabHeader", { isSignal: true }]
852
+ }]
853
+ }
854
+ });
489
855
  const AerisTabsModule = [
490
- AerisTabs,
491
- AerisTabPanel,
492
- AerisTabHeaderTemplate,
493
- AerisTabContentTemplate,
856
+ AerisTabs,
857
+ AerisTabPanel,
858
+ AerisTabHeaderTemplate,
859
+ AerisTabContentTemplate
494
860
  ];
495
-
496
- /**
497
- * Generated bundle index. Do not edit.
498
- */
499
-
500
861
  export { AerisTabContentTemplate, AerisTabHeaderTemplate, AerisTabPanel, AerisTabs, AerisTabsModule };
501
- //# sourceMappingURL=aeris-ui-core-tabs.mjs.map
862
+
863
+ //# sourceMappingURL=aeris-ui-core-tabs.mjs.map