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

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 (318) hide show
  1. package/README.md +232 -191
  2. package/THIRD_PARTY_LICENSES.md +48 -0
  3. package/fesm2022/aeris-ui-core-accordion.mjs +666 -273
  4. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
  6. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs +1301 -450
  8. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
  10. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  11. package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
  12. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  13. package/fesm2022/aeris-ui-core-badge.mjs +562 -115
  14. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  15. package/fesm2022/aeris-ui-core-block-ui.mjs +221 -101
  16. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs +609 -199
  18. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  19. package/fesm2022/aeris-ui-core-button-forms.mjs +78 -0
  20. package/fesm2022/aeris-ui-core-button-forms.mjs.map +1 -0
  21. package/fesm2022/aeris-ui-core-button-group.mjs +554 -36
  22. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  23. package/fesm2022/aeris-ui-core-button.mjs +911 -137
  24. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  25. package/fesm2022/aeris-ui-core-card.mjs +371 -101
  26. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  27. package/fesm2022/aeris-ui-core-carousel.mjs +835 -369
  28. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  29. package/fesm2022/aeris-ui-core-cascade-select.mjs +1294 -525
  30. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  31. package/fesm2022/aeris-ui-core-chart.mjs +594 -262
  32. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  33. package/fesm2022/aeris-ui-core-checkbox.mjs +619 -150
  34. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  35. package/fesm2022/aeris-ui-core-chip.mjs +1109 -121
  36. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  37. package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
  38. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  39. package/fesm2022/aeris-ui-core-code-block.mjs +687 -0
  40. package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
  41. package/fesm2022/aeris-ui-core-color-picker.mjs +2436 -1076
  42. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  43. package/fesm2022/aeris-ui-core-command-palette.mjs +996 -0
  44. package/fesm2022/aeris-ui-core-command-palette.mjs.map +1 -0
  45. package/fesm2022/aeris-ui-core-compare.mjs +870 -338
  46. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  47. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1454 -575
  48. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  49. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1499 -760
  50. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  51. package/fesm2022/aeris-ui-core-context-menu.mjs +975 -449
  52. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  53. package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs +946 -0
  54. package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map +1 -0
  55. package/fesm2022/aeris-ui-core-date-picker.mjs +2538 -1183
  56. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  57. package/fesm2022/aeris-ui-core-dialog.mjs +1187 -368
  58. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  59. package/fesm2022/aeris-ui-core-divider.mjs +204 -43
  60. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  61. package/fesm2022/aeris-ui-core-drawer.mjs +1712 -345
  62. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  63. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +418 -254
  64. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  65. package/fesm2022/aeris-ui-core-editor.mjs +1808 -783
  66. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  67. package/fesm2022/aeris-ui-core-file-upload.mjs +1529 -536
  68. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  69. package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
  70. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  71. package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
  72. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  73. package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
  74. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  75. package/fesm2022/aeris-ui-core-form-field.mjs +688 -0
  76. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
  77. package/fesm2022/aeris-ui-core-galleria.mjs +2821 -1143
  78. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  79. package/fesm2022/aeris-ui-core-glass.mjs +110 -33
  80. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  81. package/fesm2022/aeris-ui-core-icon-field.mjs +426 -98
  82. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  83. package/fesm2022/aeris-ui-core-inplace.mjs +496 -132
  84. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  85. package/fesm2022/aeris-ui-core-input-group.mjs +413 -107
  86. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  87. package/fesm2022/aeris-ui-core-input-mask.mjs +713 -257
  88. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  89. package/fesm2022/aeris-ui-core-input-number.mjs +1095 -297
  90. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  91. package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
  92. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  93. package/fesm2022/aeris-ui-core-input-text.mjs +703 -160
  94. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  95. package/fesm2022/aeris-ui-core-kbd.mjs +243 -0
  96. package/fesm2022/aeris-ui-core-kbd.mjs.map +1 -0
  97. package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
  98. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  99. package/fesm2022/aeris-ui-core-listbox.mjs +789 -0
  100. package/fesm2022/aeris-ui-core-listbox.mjs.map +1 -0
  101. package/fesm2022/aeris-ui-core-mega-menu.mjs +662 -388
  102. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  103. package/fesm2022/aeris-ui-core-menu.mjs +1111 -478
  104. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  105. package/fesm2022/aeris-ui-core-menubar.mjs +1081 -411
  106. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  107. package/fesm2022/aeris-ui-core-message.mjs +513 -147
  108. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  109. package/fesm2022/aeris-ui-core-meter-group.mjs +641 -230
  110. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  111. package/fesm2022/aeris-ui-core-multi-select.mjs +1832 -577
  112. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  113. package/fesm2022/aeris-ui-core-navbar.mjs +1407 -0
  114. package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -0
  115. package/fesm2022/aeris-ui-core-order-list.mjs +748 -220
  116. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  117. package/fesm2022/aeris-ui-core-organization-chart.mjs +521 -201
  118. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  119. package/fesm2022/aeris-ui-core-paginator.mjs +671 -127
  120. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  121. package/fesm2022/aeris-ui-core-panel.mjs +602 -210
  122. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  123. package/fesm2022/aeris-ui-core-password.mjs +1046 -269
  124. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  125. package/fesm2022/aeris-ui-core-pick-list.mjs +1796 -703
  126. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  127. package/fesm2022/aeris-ui-core-popover.mjs +1354 -385
  128. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  129. package/fesm2022/aeris-ui-core-progress-bar.mjs +609 -182
  130. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  131. package/fesm2022/aeris-ui-core-progress-spinner.mjs +428 -133
  132. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  133. package/fesm2022/aeris-ui-core-radio-button.mjs +502 -132
  134. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  135. package/fesm2022/aeris-ui-core-rating.mjs +506 -231
  136. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  137. package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
  138. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  139. package/fesm2022/aeris-ui-core-scroll-top.mjs +279 -69
  140. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  141. package/fesm2022/aeris-ui-core-select-native.mjs +145 -0
  142. package/fesm2022/aeris-ui-core-select-native.mjs.map +1 -0
  143. package/fesm2022/aeris-ui-core-select.mjs +1984 -668
  144. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  145. package/fesm2022/aeris-ui-core-sidebar.mjs +1293 -0
  146. package/fesm2022/aeris-ui-core-sidebar.mjs.map +1 -0
  147. package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
  148. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  149. package/fesm2022/aeris-ui-core-slider.mjs +884 -430
  150. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  151. package/fesm2022/aeris-ui-core-speed-dial.mjs +882 -337
  152. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  153. package/fesm2022/aeris-ui-core-split-button.mjs +972 -268
  154. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  155. package/fesm2022/aeris-ui-core-splitter.mjs +831 -356
  156. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  157. package/fesm2022/aeris-ui-core-stepper.mjs +705 -256
  158. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  159. package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
  160. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  161. package/fesm2022/aeris-ui-core-table.mjs +2927 -923
  162. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  163. package/fesm2022/aeris-ui-core-tabs.mjs +855 -283
  164. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  165. package/fesm2022/aeris-ui-core-textarea.mjs +919 -221
  166. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  167. package/fesm2022/aeris-ui-core-theme-builder.mjs +1368 -1407
  168. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  169. package/fesm2022/aeris-ui-core-theming.mjs +132 -144
  170. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  171. package/fesm2022/aeris-ui-core-tiered-menu.mjs +966 -447
  172. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  173. package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
  174. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  175. package/fesm2022/aeris-ui-core-toast.mjs +1109 -384
  176. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  177. package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
  178. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  179. package/fesm2022/aeris-ui-core-toolbar.mjs +1340 -131
  180. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  181. package/fesm2022/aeris-ui-core-tooltip.mjs +625 -330
  182. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  183. package/fesm2022/aeris-ui-core-tree-select.mjs +1650 -627
  184. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  185. package/fesm2022/aeris-ui-core-tree-table.mjs +2442 -994
  186. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  187. package/fesm2022/aeris-ui-core-tree.mjs +1257 -670
  188. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  189. package/fesm2022/aeris-ui-core.mjs +1601 -312
  190. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  191. package/package.json +48 -8
  192. package/schematics/ng-add/schema.json +1 -1
  193. package/schematics/runtime/schematics/ng-add/options.js +4 -4
  194. package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
  195. package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
  196. package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
  197. package/schematics/runtime/theme-builder/aeris-color-derivation.js +1 -1
  198. package/schematics/runtime/theme-builder/aeris-contrast.js +38 -17
  199. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  200. package/schematics/runtime/theme-builder/aeris-foundation.js +13 -8
  201. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  202. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +33 -23
  203. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
  204. package/schematics/runtime/theme-builder/aeris-theme-generator.js +8 -2
  205. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
  206. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +63 -76
  207. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
  208. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +15 -5
  209. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
  210. package/schematics/runtime/theme-builder/aeris-theme-validation.js +18 -2
  211. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
  212. package/schematics/runtime/theme-builder/aeris-theme.js +121 -34
  213. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  214. package/styles/_choice-card.scss +93 -0
  215. package/styles/_fallback-colors.scss +10 -0
  216. package/styles/_icon-artwork.scss +14 -0
  217. package/styles/_icon-template.scss +42 -0
  218. package/styles/_mobile.scss +16 -0
  219. package/styles/_selection-icons.scss +12 -0
  220. package/styles/_table-pinning.scss +119 -0
  221. package/styles/_tokens.scss +5 -5
  222. package/styles/aeris.css +447 -137
  223. package/styles/controls.css +205 -35
  224. package/tools/aeris-theme.mjs +4 -4
  225. package/tools/aeris-theme.schema.json +18 -13
  226. package/types/aeris-ui-core-accordion.d.ts +167 -93
  227. package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
  228. package/types/aeris-ui-core-auto-complete.d.ts +339 -140
  229. package/types/aeris-ui-core-auto-focus.d.ts +24 -16
  230. package/types/aeris-ui-core-avatar.d.ts +112 -42
  231. package/types/aeris-ui-core-badge.d.ts +160 -46
  232. package/types/aeris-ui-core-block-ui.d.ts +48 -27
  233. package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
  234. package/types/aeris-ui-core-button-forms.d.ts +18 -0
  235. package/types/aeris-ui-core-button-group.d.ts +150 -16
  236. package/types/aeris-ui-core-button.d.ts +274 -67
  237. package/types/aeris-ui-core-card.d.ts +74 -37
  238. package/types/aeris-ui-core-carousel.d.ts +213 -117
  239. package/types/aeris-ui-core-cascade-select.d.ts +275 -123
  240. package/types/aeris-ui-core-chart.d.ts +150 -84
  241. package/types/aeris-ui-core-checkbox.d.ts +173 -54
  242. package/types/aeris-ui-core-chip.d.ts +316 -56
  243. package/types/aeris-ui-core-class-names.d.ts +22 -20
  244. package/types/aeris-ui-core-code-block.d.ts +201 -0
  245. package/types/aeris-ui-core-color-picker.d.ts +450 -143
  246. package/types/aeris-ui-core-command-palette.d.ts +267 -0
  247. package/types/aeris-ui-core-compare.d.ts +230 -102
  248. package/types/aeris-ui-core-confirm-dialog.d.ts +450 -245
  249. package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
  250. package/types/aeris-ui-core-context-menu.d.ts +270 -146
  251. package/types/aeris-ui-core-date-picker.d.ts +594 -219
  252. package/types/aeris-ui-core-dialog.d.ts +301 -117
  253. package/types/aeris-ui-core-divider.d.ts +58 -20
  254. package/types/aeris-ui-core-drawer.d.ts +380 -112
  255. package/types/aeris-ui-core-dynamic-dialog.d.ts +162 -137
  256. package/types/aeris-ui-core-editor.d.ts +257 -123
  257. package/types/aeris-ui-core-file-upload.d.ts +385 -197
  258. package/types/aeris-ui-core-filter-service.d.ts +48 -52
  259. package/types/aeris-ui-core-fluid.d.ts +12 -9
  260. package/types/aeris-ui-core-focus-trap.d.ts +39 -31
  261. package/types/aeris-ui-core-form-field.d.ts +163 -0
  262. package/types/aeris-ui-core-galleria.d.ts +636 -256
  263. package/types/aeris-ui-core-glass.d.ts +24 -11
  264. package/types/aeris-ui-core-icon-field.d.ts +94 -32
  265. package/types/aeris-ui-core-inplace.d.ts +129 -62
  266. package/types/aeris-ui-core-input-group.d.ts +84 -33
  267. package/types/aeris-ui-core-input-mask.d.ts +201 -69
  268. package/types/aeris-ui-core-input-number.d.ts +291 -87
  269. package/types/aeris-ui-core-input-otp.d.ts +191 -81
  270. package/types/aeris-ui-core-input-text.d.ts +195 -60
  271. package/types/aeris-ui-core-kbd.d.ts +74 -0
  272. package/types/aeris-ui-core-key-filter.d.ts +53 -39
  273. package/types/aeris-ui-core-listbox.d.ts +222 -0
  274. package/types/aeris-ui-core-mega-menu.d.ts +181 -121
  275. package/types/aeris-ui-core-menu.d.ts +283 -168
  276. package/types/aeris-ui-core-menubar.d.ts +289 -135
  277. package/types/aeris-ui-core-message.d.ts +138 -60
  278. package/types/aeris-ui-core-meter-group.d.ts +169 -90
  279. package/types/aeris-ui-core-multi-select.d.ts +469 -180
  280. package/types/aeris-ui-core-navbar.d.ts +208 -0
  281. package/types/aeris-ui-core-order-list.d.ts +168 -66
  282. package/types/aeris-ui-core-organization-chart.d.ts +139 -77
  283. package/types/aeris-ui-core-paginator.d.ts +129 -38
  284. package/types/aeris-ui-core-panel.d.ts +149 -78
  285. package/types/aeris-ui-core-password.d.ts +276 -102
  286. package/types/aeris-ui-core-pick-list.d.ts +428 -179
  287. package/types/aeris-ui-core-popover.d.ts +294 -105
  288. package/types/aeris-ui-core-progress-bar.d.ts +163 -73
  289. package/types/aeris-ui-core-progress-spinner.d.ts +116 -48
  290. package/types/aeris-ui-core-radio-button.d.ts +146 -50
  291. package/types/aeris-ui-core-rating.d.ts +149 -76
  292. package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
  293. package/types/aeris-ui-core-scroll-top.d.ts +73 -29
  294. package/types/aeris-ui-core-select-native.d.ts +40 -0
  295. package/types/aeris-ui-core-select.d.ts +487 -217
  296. package/types/aeris-ui-core-sidebar.d.ts +220 -0
  297. package/types/aeris-ui-core-skeleton.d.ts +39 -17
  298. package/types/aeris-ui-core-slider.d.ts +270 -115
  299. package/types/aeris-ui-core-speed-dial.d.ts +241 -111
  300. package/types/aeris-ui-core-split-button.d.ts +267 -113
  301. package/types/aeris-ui-core-splitter.d.ts +224 -106
  302. package/types/aeris-ui-core-stepper.d.ts +184 -91
  303. package/types/aeris-ui-core-style-class.d.ts +141 -71
  304. package/types/aeris-ui-core-table.d.ts +729 -304
  305. package/types/aeris-ui-core-tabs.d.ts +193 -76
  306. package/types/aeris-ui-core-textarea.d.ts +271 -78
  307. package/types/aeris-ui-core-theme-builder.d.ts +220 -463
  308. package/types/aeris-ui-core-theming.d.ts +42 -45
  309. package/types/aeris-ui-core-tiered-menu.d.ts +257 -142
  310. package/types/aeris-ui-core-timeline.d.ts +109 -71
  311. package/types/aeris-ui-core-toast.d.ts +231 -115
  312. package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
  313. package/types/aeris-ui-core-toolbar.d.ts +314 -47
  314. package/types/aeris-ui-core-tooltip.d.ts +157 -88
  315. package/types/aeris-ui-core-tree-select.d.ts +394 -171
  316. package/types/aeris-ui-core-tree-table.d.ts +629 -288
  317. package/types/aeris-ui-core-tree.d.ts +294 -165
  318. package/types/aeris-ui-core.d.ts +338 -74
@@ -1,196 +1,567 @@
1
- import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, Directive, model, output, signal, computed, viewChild, forwardRef, Component } from '@angular/core';
3
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
-
5
- class AerisTextareaDirective {
6
- size = input('md', /* @ts-ignore */
7
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
8
- appearance = input('outline', /* @ts-ignore */
9
- ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
10
- resize = input('vertical', /* @ts-ignore */
11
- ...(ngDevMode ? [{ debugName: "resize" }] : /* istanbul ignore next */ []));
12
- invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
13
- fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
14
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTextareaDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
15
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.6", type: AerisTextareaDirective, isStandalone: true, selector: "textarea[aerisTextarea]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, resize: { classPropertyName: "resize", publicName: "resize", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.aeris-textarea--xs": "size() === \"xs\"", "class.aeris-textarea--sm": "size() === \"sm\"", "class.aeris-textarea--md": "size() === \"md\"", "class.aeris-textarea--lg": "size() === \"lg\"", "class.aeris-textarea--filled": "appearance() === \"filled\"", "class.aeris-textarea--invalid": "invalid()", "class.aeris-textarea--fluid": "fluid()", "attr.data-resize": "resize()", "attr.aria-invalid": "invalid() || null" }, classAttribute: "aeris-textarea" }, ngImport: i0 });
16
- }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTextareaDirective, decorators: [{
18
- type: Directive,
19
- args: [{
20
- selector: 'textarea[aerisTextarea]',
21
- host: {
22
- class: 'aeris-textarea',
23
- '[class.aeris-textarea--xs]': 'size() === "xs"',
24
- '[class.aeris-textarea--sm]': 'size() === "sm"',
25
- '[class.aeris-textarea--md]': 'size() === "md"',
26
- '[class.aeris-textarea--lg]': 'size() === "lg"',
27
- '[class.aeris-textarea--filled]': 'appearance() === "filled"',
28
- '[class.aeris-textarea--invalid]': 'invalid()',
29
- '[class.aeris-textarea--fluid]': 'fluid()',
30
- '[attr.data-resize]': 'resize()',
31
- '[attr.aria-invalid]': 'invalid() || null',
32
- },
33
- }]
34
- }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], resize: [{ type: i0.Input, args: [{ isSignal: true, alias: "resize", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }] } });
1
+ import { NgTemplateOutlet } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { Component, Directive, booleanAttribute, computed, forwardRef, inject, input, model, output, signal, viewChild } from "@angular/core";
4
+ import { COMPOSITION_BUFFER_MODE, NG_VALUE_ACCESSOR } from "@angular/forms";
5
+ import { ɵAerisIcon, ɵaerisDisplayInvalid } from "@aeris-ui/core";
6
+ var AerisTextareaDirective = class AerisTextareaDirective {
7
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
8
+ appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
9
+ resize = input("vertical", ...ngDevMode ? [{ debugName: "resize" }] : /* istanbul ignore next */ []);
10
+ invalid = input(false, {
11
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
12
+ transform: booleanAttribute
13
+ });
14
+ touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
15
+ fluid = input(false, {
16
+ ...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
17
+ transform: booleanAttribute
18
+ });
19
+ displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
20
+ static ɵfac = i0.ɵɵngDeclareFactory({
21
+ minVersion: "12.0.0",
22
+ version: "22.2.3",
23
+ ngImport: i0,
24
+ type: AerisTextareaDirective,
25
+ deps: [],
26
+ target: i0.ɵɵFactoryTarget.Directive
27
+ });
28
+ static ɵdir = i0.ɵɵngDeclareDirective({
29
+ minVersion: "17.1.0",
30
+ version: "22.2.3",
31
+ type: AerisTextareaDirective,
32
+ isStandalone: true,
33
+ selector: "textarea[aerisTextarea]",
34
+ inputs: {
35
+ size: {
36
+ classPropertyName: "size",
37
+ publicName: "size",
38
+ isSignal: true,
39
+ isRequired: false,
40
+ transformFunction: null
41
+ },
42
+ appearance: {
43
+ classPropertyName: "appearance",
44
+ publicName: "appearance",
45
+ isSignal: true,
46
+ isRequired: false,
47
+ transformFunction: null
48
+ },
49
+ resize: {
50
+ classPropertyName: "resize",
51
+ publicName: "resize",
52
+ isSignal: true,
53
+ isRequired: false,
54
+ transformFunction: null
55
+ },
56
+ invalid: {
57
+ classPropertyName: "invalid",
58
+ publicName: "invalid",
59
+ isSignal: true,
60
+ isRequired: false,
61
+ transformFunction: null
62
+ },
63
+ touched: {
64
+ classPropertyName: "touched",
65
+ publicName: "touched",
66
+ isSignal: true,
67
+ isRequired: false,
68
+ transformFunction: null
69
+ },
70
+ fluid: {
71
+ classPropertyName: "fluid",
72
+ publicName: "fluid",
73
+ isSignal: true,
74
+ isRequired: false,
75
+ transformFunction: null
76
+ }
77
+ },
78
+ host: {
79
+ properties: {
80
+ "class.aeris-textarea--xs": "size() === \"xs\"",
81
+ "class.aeris-textarea--sm": "size() === \"sm\"",
82
+ "class.aeris-textarea--md": "size() === \"md\"",
83
+ "class.aeris-textarea--lg": "size() === \"lg\"",
84
+ "class.aeris-textarea--filled": "appearance() === \"filled\"",
85
+ "class.aeris-textarea--invalid": "displayInvalid()",
86
+ "class.aeris-textarea--fluid": "fluid()",
87
+ "attr.data-resize": "resize()",
88
+ "attr.aria-invalid": "displayInvalid() || null"
89
+ },
90
+ classAttribute: "aeris-textarea"
91
+ },
92
+ ngImport: i0
93
+ });
94
+ };
95
+ i0.ɵɵngDeclareClassMetadata({
96
+ minVersion: "12.0.0",
97
+ version: "22.2.3",
98
+ ngImport: i0,
99
+ type: AerisTextareaDirective,
100
+ decorators: [{
101
+ type: Directive,
102
+ args: [{
103
+ selector: "textarea[aerisTextarea]",
104
+ host: {
105
+ class: "aeris-textarea",
106
+ "[class.aeris-textarea--xs]": "size() === \"xs\"",
107
+ "[class.aeris-textarea--sm]": "size() === \"sm\"",
108
+ "[class.aeris-textarea--md]": "size() === \"md\"",
109
+ "[class.aeris-textarea--lg]": "size() === \"lg\"",
110
+ "[class.aeris-textarea--filled]": "appearance() === \"filled\"",
111
+ "[class.aeris-textarea--invalid]": "displayInvalid()",
112
+ "[class.aeris-textarea--fluid]": "fluid()",
113
+ "[attr.data-resize]": "resize()",
114
+ "[attr.aria-invalid]": "displayInvalid() || null"
115
+ }
116
+ }]
117
+ }],
118
+ propDecorators: {
119
+ size: [{
120
+ type: i0.Input,
121
+ args: [{
122
+ isSignal: true,
123
+ alias: "size",
124
+ required: false
125
+ }]
126
+ }],
127
+ appearance: [{
128
+ type: i0.Input,
129
+ args: [{
130
+ isSignal: true,
131
+ alias: "appearance",
132
+ required: false
133
+ }]
134
+ }],
135
+ resize: [{
136
+ type: i0.Input,
137
+ args: [{
138
+ isSignal: true,
139
+ alias: "resize",
140
+ required: false
141
+ }]
142
+ }],
143
+ invalid: [{
144
+ type: i0.Input,
145
+ args: [{
146
+ isSignal: true,
147
+ alias: "invalid",
148
+ required: false
149
+ }]
150
+ }],
151
+ touched: [{
152
+ type: i0.Input,
153
+ args: [{
154
+ isSignal: true,
155
+ alias: "touched",
156
+ required: false
157
+ }]
158
+ }],
159
+ fluid: [{
160
+ type: i0.Input,
161
+ args: [{
162
+ isSignal: true,
163
+ alias: "fluid",
164
+ required: false
165
+ }]
166
+ }]
167
+ }
168
+ });
35
169
  let textareaId = 0;
36
- class AerisTextareaComponent {
37
- value = model('', /* @ts-ignore */
38
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
39
- inputId = input('', /* @ts-ignore */
40
- ...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
41
- name = input('', /* @ts-ignore */
42
- ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
43
- placeholder = input('', /* @ts-ignore */
44
- ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
45
- autocomplete = input('off', /* @ts-ignore */
46
- ...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
47
- rows = input(3, /* @ts-ignore */
48
- ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
49
- cols = input(/* @ts-ignore */
50
- ...(ngDevMode ? [undefined, { debugName: "cols" }] : /* istanbul ignore next */ []));
51
- wrap = input('soft', /* @ts-ignore */
52
- ...(ngDevMode ? [{ debugName: "wrap" }] : /* istanbul ignore next */ []));
53
- minLength = input(/* @ts-ignore */
54
- ...(ngDevMode ? [undefined, { debugName: "minLength" }] : /* istanbul ignore next */ []));
55
- maxLength = input(/* @ts-ignore */
56
- ...(ngDevMode ? [undefined, { debugName: "maxLength" }] : /* istanbul ignore next */ []));
57
- ariaLabel = input('', /* @ts-ignore */
58
- ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
59
- ariaLabelledby = input('', /* @ts-ignore */
60
- ...(ngDevMode ? [{ debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
61
- ariaDescribedby = input('', /* @ts-ignore */
62
- ...(ngDevMode ? [{ debugName: "ariaDescribedby" }] : /* istanbul ignore next */ []));
63
- size = input('md', /* @ts-ignore */
64
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
65
- appearance = input('outline', /* @ts-ignore */
66
- ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
67
- resize = input('vertical', /* @ts-ignore */
68
- ...(ngDevMode ? [{ debugName: "resize" }] : /* istanbul ignore next */ []));
69
- disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
70
- readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
71
- required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
72
- invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
73
- fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
74
- autoResize = input(false, { ...(ngDevMode ? { debugName: "autoResize" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
75
- minRows = input(3, /* @ts-ignore */
76
- ...(ngDevMode ? [{ debugName: "minRows" }] : /* istanbul ignore next */ []));
77
- maxRows = input(/* @ts-ignore */
78
- ...(ngDevMode ? [undefined, { debugName: "maxRows" }] : /* istanbul ignore next */ []));
79
- showCount = input(false, { ...(ngDevMode ? { debugName: "showCount" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
80
- countLive = input(false, { ...(ngDevMode ? { debugName: "countLive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
81
- clearable = input(false, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
82
- clearButtonAriaLabel = input('Clear text', /* @ts-ignore */
83
- ...(ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []));
84
- valueInput = output();
85
- focused = output();
86
- blurred = output();
87
- scrolled = output();
88
- touch = output();
89
- cleared = output();
90
- formDisabled = signal(false, /* @ts-ignore */
91
- ...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
92
- autoHeight = signal(null, /* @ts-ignore */
93
- ...(ngDevMode ? [{ debugName: "autoHeight" }] : /* istanbul ignore next */ []));
94
- atMaximumHeight = signal(false, /* @ts-ignore */
95
- ...(ngDevMode ? [{ debugName: "atMaximumHeight" }] : /* istanbul ignore next */ []));
96
- effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), /* @ts-ignore */
97
- ...(ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []));
98
- generatedId = `aeris-textarea-${++textareaId}`;
99
- resolvedInputId = computed(() => this.inputId() || this.generatedId, /* @ts-ignore */
100
- ...(ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []));
101
- characterCount = computed(() => Array.from(this.value()).length, /* @ts-ignore */
102
- ...(ngDevMode ? [{ debugName: "characterCount" }] : /* istanbul ignore next */ []));
103
- showClearButton = computed(() => this.clearable() &&
104
- this.value().length > 0 &&
105
- !this.effectiveDisabled() &&
106
- !this.readonly(), /* @ts-ignore */
107
- ...(ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []));
108
- textarea = viewChild('textarea', /* @ts-ignore */
109
- ...(ngDevMode ? [{ debugName: "textarea" }] : /* istanbul ignore next */ []));
110
- onChange = () => undefined;
111
- onTouched = () => undefined;
112
- writeValue(value) {
113
- this.value.set(value == null ? '' : String(value));
114
- this.scheduleResize();
115
- }
116
- registerOnChange(callback) {
117
- this.onChange = callback;
118
- }
119
- registerOnTouched(callback) {
120
- this.onTouched = callback;
121
- }
122
- setDisabledState(disabled) {
123
- this.formDisabled.set(disabled);
124
- }
125
- focus(options) {
126
- this.textarea()?.nativeElement.focus(options);
127
- }
128
- reset() {
129
- this.setValue('');
130
- this.scheduleResize();
131
- }
132
- clear() {
133
- if (this.effectiveDisabled() || this.readonly())
134
- return;
135
- this.setValue('');
136
- this.cleared.emit();
137
- this.scheduleResize();
138
- queueMicrotask(() => this.focus());
139
- }
140
- resizeToContent() {
141
- if (!this.autoResize())
142
- return;
143
- const element = this.textarea()?.nativeElement;
144
- if (!element)
145
- return;
146
- const styles = getComputedStyle(element);
147
- const rowHeight = cssPixelValue(styles, '--aeris-textarea-row-height', 21);
148
- const verticalPadding = cssPixelValue(styles, '--aeris-textarea-vertical-padding', 20);
149
- const minimum = Math.max(1, this.minRows()) * rowHeight + verticalPadding;
150
- const maximumRows = this.maxRows();
151
- const maximum = maximumRows === undefined
152
- ? Number.POSITIVE_INFINITY
153
- : Math.max(this.minRows(), maximumRows) * rowHeight +
154
- verticalPadding;
155
- const height = Math.min(maximum, Math.max(minimum, element.scrollHeight));
156
- this.autoHeight.set(height);
157
- this.atMaximumHeight.set(Number.isFinite(maximum) && element.scrollHeight > maximum);
158
- }
159
- handleInput(event) {
160
- this.setValue(event.target.value);
161
- this.resizeToContent();
162
- }
163
- handleBlur(event) {
164
- this.onTouched();
165
- this.touch.emit();
166
- this.blurred.emit(event);
167
- }
168
- setValue(value) {
169
- if (this.value() === value)
170
- return;
171
- this.value.set(value);
172
- this.valueInput.emit(value);
173
- this.onChange(value);
174
- }
175
- scheduleResize() {
176
- if (this.autoResize()) {
177
- queueMicrotask(() => this.resizeToContent());
178
- }
179
- }
180
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
181
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisTextareaComponent, isStandalone: true, selector: "aeris-textarea", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, cols: { classPropertyName: "cols", publicName: "cols", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", 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 }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null }, resize: { classPropertyName: "resize", publicName: "resize", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, autoResize: { classPropertyName: "autoResize", publicName: "autoResize", isSignal: true, isRequired: false, transformFunction: null }, minRows: { classPropertyName: "minRows", publicName: "minRows", isSignal: true, isRequired: false, transformFunction: null }, maxRows: { classPropertyName: "maxRows", publicName: "maxRows", isSignal: true, isRequired: false, transformFunction: null }, showCount: { classPropertyName: "showCount", publicName: "showCount", isSignal: true, isRequired: false, transformFunction: null }, countLive: { classPropertyName: "countLive", publicName: "countLive", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, clearButtonAriaLabel: { classPropertyName: "clearButtonAriaLabel", publicName: "clearButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueInput: "valueInput", focused: "focused", blurred: "blurred", scrolled: "scrolled", touch: "touch", cleared: "cleared" }, host: { properties: { "attr.data-fluid": "fluid() || null" } }, providers: [
182
- {
183
- provide: NG_VALUE_ACCESSOR,
184
- useExisting: forwardRef(() => AerisTextareaComponent),
185
- multi: true,
186
- },
187
- ], viewQueries: [{ propertyName: "textarea", first: true, predicate: ["textarea"], descendants: true, isSignal: true }], ngImport: i0, template: `
170
+ var AerisTextareaComponent = class AerisTextareaComponent {
171
+ bufferComposition = inject(COMPOSITION_BUFFER_MODE, { optional: true }) ?? true;
172
+ composing = false;
173
+ clearIconTemplate = input(...ngDevMode ? [void 0, { debugName: "clearIconTemplate" }] : /* istanbul ignore next */ []);
174
+ value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
175
+ inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
176
+ name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
177
+ placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
178
+ autocomplete = input("off", ...ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []);
179
+ rows = input(3, ...ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []);
180
+ cols = input(...ngDevMode ? [void 0, { debugName: "cols" }] : /* istanbul ignore next */ []);
181
+ wrap = input("soft", ...ngDevMode ? [{ debugName: "wrap" }] : /* istanbul ignore next */ []);
182
+ minLength = input(...ngDevMode ? [void 0, { debugName: "minLength" }] : /* istanbul ignore next */ []);
183
+ maxLength = input(...ngDevMode ? [void 0, { debugName: "maxLength" }] : /* istanbul ignore next */ []);
184
+ ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
185
+ ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
186
+ ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
187
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
188
+ appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
189
+ resize = input("vertical", ...ngDevMode ? [{ debugName: "resize" }] : /* istanbul ignore next */ []);
190
+ disabled = input(false, {
191
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
192
+ transform: booleanAttribute
193
+ });
194
+ readonly = input(false, {
195
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
196
+ transform: booleanAttribute
197
+ });
198
+ required = input(false, {
199
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
200
+ transform: booleanAttribute
201
+ });
202
+ invalid = input(false, {
203
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
204
+ transform: booleanAttribute
205
+ });
206
+ touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
207
+ fluid = input(false, {
208
+ ...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
209
+ transform: booleanAttribute
210
+ });
211
+ autoResize = input(false, {
212
+ ...ngDevMode ? { debugName: "autoResize" } : /* istanbul ignore next */ {},
213
+ transform: booleanAttribute
214
+ });
215
+ minRows = input(3, ...ngDevMode ? [{ debugName: "minRows" }] : /* istanbul ignore next */ []);
216
+ maxRows = input(...ngDevMode ? [void 0, { debugName: "maxRows" }] : /* istanbul ignore next */ []);
217
+ showCount = input(false, {
218
+ ...ngDevMode ? { debugName: "showCount" } : /* istanbul ignore next */ {},
219
+ transform: booleanAttribute
220
+ });
221
+ countLive = input(false, {
222
+ ...ngDevMode ? { debugName: "countLive" } : /* istanbul ignore next */ {},
223
+ transform: booleanAttribute
224
+ });
225
+ clearable = input(false, {
226
+ ...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
227
+ transform: booleanAttribute
228
+ });
229
+ clearButtonAriaLabel = input("Clear text", ...ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []);
230
+ focused = output();
231
+ blurred = output();
232
+ scrolled = output();
233
+ touch = output();
234
+ cleared = output();
235
+ formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
236
+ autoHeight = signal(null, ...ngDevMode ? [{ debugName: "autoHeight" }] : /* istanbul ignore next */ []);
237
+ atMaximumHeight = signal(false, ...ngDevMode ? [{ debugName: "atMaximumHeight" }] : /* istanbul ignore next */ []);
238
+ effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
239
+ displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
240
+ generatedId = `aeris-textarea-${++textareaId}`;
241
+ resolvedInputId = computed(() => this.inputId() || this.generatedId, ...ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []);
242
+ characterCount = computed(() => Array.from(this.value()).length, ...ngDevMode ? [{ debugName: "characterCount" }] : /* istanbul ignore next */ []);
243
+ showClearButton = computed(() => this.clearable() && this.value().length > 0 && !this.effectiveDisabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []);
244
+ textarea = viewChild("textarea", ...ngDevMode ? [{ debugName: "textarea" }] : /* istanbul ignore next */ []);
245
+ onChange = () => void 0;
246
+ onTouched = () => void 0;
247
+ writeValue(value) {
248
+ this.value.set(value == null ? "" : String(value));
249
+ this.scheduleResize();
250
+ }
251
+ registerOnChange(callback) {
252
+ this.onChange = callback;
253
+ }
254
+ registerOnTouched(callback) {
255
+ this.onTouched = callback;
256
+ }
257
+ setDisabledState(disabled) {
258
+ this.formDisabled.set(disabled);
259
+ }
260
+ focus(options) {
261
+ this.textarea()?.nativeElement.focus(options);
262
+ }
263
+ reset() {
264
+ this.setValue("");
265
+ this.scheduleResize();
266
+ }
267
+ clear() {
268
+ if (this.effectiveDisabled() || this.readonly()) return;
269
+ this.setValue("");
270
+ this.cleared.emit();
271
+ this.scheduleResize();
272
+ queueMicrotask(() => this.focus());
273
+ }
274
+ resizeToContent() {
275
+ if (!this.autoResize()) return;
276
+ const element = this.textarea()?.nativeElement;
277
+ if (!element) return;
278
+ const styles = getComputedStyle(element);
279
+ const configuredRowHeight = cssPixelValue(styles, "--aeris-textarea-row-height", 21);
280
+ const rowHeight = Math.max(configuredRowHeight, cssPixelValue(styles, "line-height", configuredRowHeight));
281
+ const verticalPadding = cssPixelValue(styles, "--aeris-textarea-vertical-padding", 20);
282
+ const minimum = Math.max(1, this.minRows()) * rowHeight + verticalPadding;
283
+ const maximumRows = this.maxRows();
284
+ const maximum = maximumRows === void 0 ? Number.POSITIVE_INFINITY : Math.max(this.minRows(), maximumRows) * rowHeight + verticalPadding;
285
+ const height = Math.min(maximum, Math.max(minimum, element.scrollHeight));
286
+ this.autoHeight.set(height);
287
+ this.atMaximumHeight.set(Number.isFinite(maximum) && element.scrollHeight > maximum);
288
+ }
289
+ handleInput(event) {
290
+ if (!this.bufferComposition || !(this.composing || event.isComposing)) this.setValue(event.target.value);
291
+ this.resizeToContent();
292
+ }
293
+ handleCompositionEnd(event) {
294
+ this.composing = false;
295
+ if (this.bufferComposition) this.handleInput(event);
296
+ }
297
+ handleBlur(event) {
298
+ this.onTouched();
299
+ this.touch.emit();
300
+ this.blurred.emit(event);
301
+ }
302
+ setValue(value) {
303
+ if (this.value() === value) return;
304
+ this.value.set(value);
305
+ this.onChange(value);
306
+ }
307
+ scheduleResize() {
308
+ if (this.autoResize()) queueMicrotask(() => this.resizeToContent());
309
+ }
310
+ static ɵfac = i0.ɵɵngDeclareFactory({
311
+ minVersion: "12.0.0",
312
+ version: "22.2.3",
313
+ ngImport: i0,
314
+ type: AerisTextareaComponent,
315
+ deps: [],
316
+ target: i0.ɵɵFactoryTarget.Component
317
+ });
318
+ static ɵcmp = i0.ɵɵngDeclareComponent({
319
+ minVersion: "17.0.0",
320
+ version: "22.2.3",
321
+ type: AerisTextareaComponent,
322
+ isStandalone: true,
323
+ selector: "aeris-textarea",
324
+ inputs: {
325
+ clearIconTemplate: {
326
+ classPropertyName: "clearIconTemplate",
327
+ publicName: "clearIconTemplate",
328
+ isSignal: true,
329
+ isRequired: false,
330
+ transformFunction: null
331
+ },
332
+ value: {
333
+ classPropertyName: "value",
334
+ publicName: "value",
335
+ isSignal: true,
336
+ isRequired: false,
337
+ transformFunction: null
338
+ },
339
+ inputId: {
340
+ classPropertyName: "inputId",
341
+ publicName: "inputId",
342
+ isSignal: true,
343
+ isRequired: false,
344
+ transformFunction: null
345
+ },
346
+ name: {
347
+ classPropertyName: "name",
348
+ publicName: "name",
349
+ isSignal: true,
350
+ isRequired: false,
351
+ transformFunction: null
352
+ },
353
+ placeholder: {
354
+ classPropertyName: "placeholder",
355
+ publicName: "placeholder",
356
+ isSignal: true,
357
+ isRequired: false,
358
+ transformFunction: null
359
+ },
360
+ autocomplete: {
361
+ classPropertyName: "autocomplete",
362
+ publicName: "autocomplete",
363
+ isSignal: true,
364
+ isRequired: false,
365
+ transformFunction: null
366
+ },
367
+ rows: {
368
+ classPropertyName: "rows",
369
+ publicName: "rows",
370
+ isSignal: true,
371
+ isRequired: false,
372
+ transformFunction: null
373
+ },
374
+ cols: {
375
+ classPropertyName: "cols",
376
+ publicName: "cols",
377
+ isSignal: true,
378
+ isRequired: false,
379
+ transformFunction: null
380
+ },
381
+ wrap: {
382
+ classPropertyName: "wrap",
383
+ publicName: "wrap",
384
+ isSignal: true,
385
+ isRequired: false,
386
+ transformFunction: null
387
+ },
388
+ minLength: {
389
+ classPropertyName: "minLength",
390
+ publicName: "minLength",
391
+ isSignal: true,
392
+ isRequired: false,
393
+ transformFunction: null
394
+ },
395
+ maxLength: {
396
+ classPropertyName: "maxLength",
397
+ publicName: "maxLength",
398
+ isSignal: true,
399
+ isRequired: false,
400
+ transformFunction: null
401
+ },
402
+ ariaLabel: {
403
+ classPropertyName: "ariaLabel",
404
+ publicName: "ariaLabel",
405
+ isSignal: true,
406
+ isRequired: false,
407
+ transformFunction: null
408
+ },
409
+ ariaLabelledBy: {
410
+ classPropertyName: "ariaLabelledBy",
411
+ publicName: "ariaLabelledBy",
412
+ isSignal: true,
413
+ isRequired: false,
414
+ transformFunction: null
415
+ },
416
+ ariaDescribedBy: {
417
+ classPropertyName: "ariaDescribedBy",
418
+ publicName: "ariaDescribedBy",
419
+ isSignal: true,
420
+ isRequired: false,
421
+ transformFunction: null
422
+ },
423
+ size: {
424
+ classPropertyName: "size",
425
+ publicName: "size",
426
+ isSignal: true,
427
+ isRequired: false,
428
+ transformFunction: null
429
+ },
430
+ appearance: {
431
+ classPropertyName: "appearance",
432
+ publicName: "appearance",
433
+ isSignal: true,
434
+ isRequired: false,
435
+ transformFunction: null
436
+ },
437
+ resize: {
438
+ classPropertyName: "resize",
439
+ publicName: "resize",
440
+ isSignal: true,
441
+ isRequired: false,
442
+ transformFunction: null
443
+ },
444
+ disabled: {
445
+ classPropertyName: "disabled",
446
+ publicName: "disabled",
447
+ isSignal: true,
448
+ isRequired: false,
449
+ transformFunction: null
450
+ },
451
+ readonly: {
452
+ classPropertyName: "readonly",
453
+ publicName: "readonly",
454
+ isSignal: true,
455
+ isRequired: false,
456
+ transformFunction: null
457
+ },
458
+ required: {
459
+ classPropertyName: "required",
460
+ publicName: "required",
461
+ isSignal: true,
462
+ isRequired: false,
463
+ transformFunction: null
464
+ },
465
+ invalid: {
466
+ classPropertyName: "invalid",
467
+ publicName: "invalid",
468
+ isSignal: true,
469
+ isRequired: false,
470
+ transformFunction: null
471
+ },
472
+ touched: {
473
+ classPropertyName: "touched",
474
+ publicName: "touched",
475
+ isSignal: true,
476
+ isRequired: false,
477
+ transformFunction: null
478
+ },
479
+ fluid: {
480
+ classPropertyName: "fluid",
481
+ publicName: "fluid",
482
+ isSignal: true,
483
+ isRequired: false,
484
+ transformFunction: null
485
+ },
486
+ autoResize: {
487
+ classPropertyName: "autoResize",
488
+ publicName: "autoResize",
489
+ isSignal: true,
490
+ isRequired: false,
491
+ transformFunction: null
492
+ },
493
+ minRows: {
494
+ classPropertyName: "minRows",
495
+ publicName: "minRows",
496
+ isSignal: true,
497
+ isRequired: false,
498
+ transformFunction: null
499
+ },
500
+ maxRows: {
501
+ classPropertyName: "maxRows",
502
+ publicName: "maxRows",
503
+ isSignal: true,
504
+ isRequired: false,
505
+ transformFunction: null
506
+ },
507
+ showCount: {
508
+ classPropertyName: "showCount",
509
+ publicName: "showCount",
510
+ isSignal: true,
511
+ isRequired: false,
512
+ transformFunction: null
513
+ },
514
+ countLive: {
515
+ classPropertyName: "countLive",
516
+ publicName: "countLive",
517
+ isSignal: true,
518
+ isRequired: false,
519
+ transformFunction: null
520
+ },
521
+ clearable: {
522
+ classPropertyName: "clearable",
523
+ publicName: "clearable",
524
+ isSignal: true,
525
+ isRequired: false,
526
+ transformFunction: null
527
+ },
528
+ clearButtonAriaLabel: {
529
+ classPropertyName: "clearButtonAriaLabel",
530
+ publicName: "clearButtonAriaLabel",
531
+ isSignal: true,
532
+ isRequired: false,
533
+ transformFunction: null
534
+ }
535
+ },
536
+ outputs: {
537
+ value: "valueChange",
538
+ focused: "focused",
539
+ blurred: "blurred",
540
+ scrolled: "scrolled",
541
+ touch: "touch",
542
+ cleared: "cleared"
543
+ },
544
+ host: { properties: { "attr.data-fluid": "fluid() || null" } },
545
+ providers: [{
546
+ provide: NG_VALUE_ACCESSOR,
547
+ useExisting: forwardRef(() => AerisTextareaComponent),
548
+ multi: true
549
+ }],
550
+ viewQueries: [{
551
+ propertyName: "textarea",
552
+ first: true,
553
+ predicate: ["textarea"],
554
+ descendants: true,
555
+ isSignal: true
556
+ }],
557
+ ngImport: i0,
558
+ template: `
188
559
  <span
189
560
  class="aeris-textarea-component"
190
561
  [attr.data-size]="size()"
191
562
  [attr.data-fluid]="fluid() || null"
192
563
  [attr.data-disabled]="effectiveDisabled() || null"
193
- [attr.data-invalid]="invalid() || null"
564
+ [attr.data-invalid]="displayInvalid() || null"
194
565
  >
195
566
  <span class="aeris-textarea-component__field">
196
567
  <textarea
@@ -208,6 +579,7 @@ class AerisTextareaComponent {
208
579
  [appearance]="appearance()"
209
580
  [resize]="autoResize() ? 'none' : resize()"
210
581
  [invalid]="invalid()"
582
+ [touched]="touched()"
211
583
  [disabled]="effectiveDisabled()"
212
584
  [readOnly]="readonly()"
213
585
  [required]="required()"
@@ -215,12 +587,14 @@ class AerisTextareaComponent {
215
587
  [attr.minlength]="minLength() ?? null"
216
588
  [attr.maxlength]="maxLength() ?? null"
217
589
  [attr.aria-label]="ariaLabel() || null"
218
- [attr.aria-labelledby]="ariaLabelledby() || null"
219
- [attr.aria-describedby]="ariaDescribedby() || null"
590
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
591
+ [attr.aria-describedby]="ariaDescribedBy() || null"
220
592
  [attr.aria-required]="required() || null"
221
593
  [style.height.px]="autoResize() ? autoHeight() : null"
222
594
  [style.overflow-y]="autoResize() && atMaximumHeight() ? 'auto' : null"
223
595
  (input)="handleInput($event)"
596
+ (compositionstart)="composing = true"
597
+ (compositionend)="handleCompositionEnd($event)"
224
598
  (focus)="focused.emit($event)"
225
599
  (blur)="handleBlur($event)"
226
600
  (scroll)="scrolled.emit($event)"
@@ -233,7 +607,13 @@ class AerisTextareaComponent {
233
607
  [attr.aria-label]="clearButtonAriaLabel()"
234
608
  (click)="clear()"
235
609
  >
236
- <span aria-hidden="true"></span>
610
+ @if (clearIconTemplate(); as customIcon) {
611
+ <span aria-hidden="true" data-aeris-custom-icon
612
+ ><ng-container [ngTemplateOutlet]="customIcon"
613
+ /></span>
614
+ } @else {
615
+ <span aerisInternalIcon="close" aria-hidden="true"></span>
616
+ }
237
617
  </button>
238
618
  }
239
619
  </span>
@@ -251,17 +631,63 @@ class AerisTextareaComponent {
251
631
  </span>
252
632
  }
253
633
  </span>
254
- `, isInline: true, styles: [":host{display:inline-block;max-width:100%;font:inherit}:host([data-fluid]){width:100%}.aeris-textarea-component{display:inline-grid;max-width:100%;gap:.375rem}.aeris-textarea-component[data-fluid]{width:100%}.aeris-textarea-component__field{position:relative;display:block}.aeris-textarea-component__field textarea{display:block}.aeris-textarea-component__field:has(.aeris-textarea-component__clear) textarea{padding-right:2.75rem}.aeris-textarea-component__clear{position:absolute;top:.5rem;right:.5rem;width:1.75rem;height:1.75rem;display:grid;place-items:center;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-textarea-component__clear:hover{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-textarea-component__clear:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:1px}.aeris-textarea-component__clear span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-textarea-component__count{justify-self:end;color:var(--aeris-text-2, #555555);font-size:.75rem;line-height:1.4}.aeris-textarea-component[data-disabled]{cursor:not-allowed}\n"], dependencies: [{ kind: "directive", type: AerisTextareaDirective, selector: "textarea[aerisTextarea]", inputs: ["size", "appearance", "resize", "invalid", "fluid"] }] });
255
- }
256
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisTextareaComponent, decorators: [{
257
- type: Component,
258
- args: [{ selector: 'aeris-textarea', imports: [AerisTextareaDirective], template: `
634
+ `,
635
+ isInline: true,
636
+ styles: [":host{display:inline-block;max-width:100%;font:inherit}:host([data-fluid]){width:100%}.aeris-textarea-component{display:inline-grid;max-width:100%;gap:.375rem}.aeris-textarea-component[data-fluid]{width:100%}.aeris-textarea-component__field{position:relative;display:block}.aeris-textarea-component__field textarea{display:block}.aeris-textarea-component__field:has(.aeris-textarea-component__clear) textarea{padding-right:2.75rem}.aeris-textarea-component__clear{position:absolute;top:.5rem;right:.5rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #454545);cursor:pointer}.aeris-textarea-component__clear:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}@media(hover:hover){.aeris-textarea-component__clear:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-textarea-component__clear:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-textarea-component__clear span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-textarea-component__count{justify-self:end;color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem);line-height:1.4}.aeris-textarea-component[data-disabled]{cursor:not-allowed}@media(pointer:coarse){textarea{font-size:var(--aeris-mobile-input-font-size, 1rem)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}\n"],
637
+ dependencies: [
638
+ {
639
+ kind: "component",
640
+ type: ɵAerisIcon,
641
+ selector: "span[aerisInternalIcon]",
642
+ inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
643
+ },
644
+ {
645
+ kind: "directive",
646
+ type: NgTemplateOutlet,
647
+ selector: "[ngTemplateOutlet]",
648
+ inputs: [
649
+ "ngTemplateOutletContext",
650
+ "ngTemplateOutlet",
651
+ "ngTemplateOutletInjector"
652
+ ]
653
+ },
654
+ {
655
+ kind: "directive",
656
+ type: AerisTextareaDirective,
657
+ selector: "textarea[aerisTextarea]",
658
+ inputs: [
659
+ "size",
660
+ "appearance",
661
+ "resize",
662
+ "invalid",
663
+ "touched",
664
+ "fluid"
665
+ ]
666
+ }
667
+ ]
668
+ });
669
+ };
670
+ i0.ɵɵngDeclareClassMetadata({
671
+ minVersion: "12.0.0",
672
+ version: "22.2.3",
673
+ ngImport: i0,
674
+ type: AerisTextareaComponent,
675
+ decorators: [{
676
+ type: Component,
677
+ args: [{
678
+ selector: "aeris-textarea",
679
+ imports: [
680
+ ɵAerisIcon,
681
+ NgTemplateOutlet,
682
+ AerisTextareaDirective
683
+ ],
684
+ template: `
259
685
  <span
260
686
  class="aeris-textarea-component"
261
687
  [attr.data-size]="size()"
262
688
  [attr.data-fluid]="fluid() || null"
263
689
  [attr.data-disabled]="effectiveDisabled() || null"
264
- [attr.data-invalid]="invalid() || null"
690
+ [attr.data-invalid]="displayInvalid() || null"
265
691
  >
266
692
  <span class="aeris-textarea-component__field">
267
693
  <textarea
@@ -279,6 +705,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
279
705
  [appearance]="appearance()"
280
706
  [resize]="autoResize() ? 'none' : resize()"
281
707
  [invalid]="invalid()"
708
+ [touched]="touched()"
282
709
  [disabled]="effectiveDisabled()"
283
710
  [readOnly]="readonly()"
284
711
  [required]="required()"
@@ -286,12 +713,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
286
713
  [attr.minlength]="minLength() ?? null"
287
714
  [attr.maxlength]="maxLength() ?? null"
288
715
  [attr.aria-label]="ariaLabel() || null"
289
- [attr.aria-labelledby]="ariaLabelledby() || null"
290
- [attr.aria-describedby]="ariaDescribedby() || null"
716
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
717
+ [attr.aria-describedby]="ariaDescribedBy() || null"
291
718
  [attr.aria-required]="required() || null"
292
719
  [style.height.px]="autoResize() ? autoHeight() : null"
293
720
  [style.overflow-y]="autoResize() && atMaximumHeight() ? 'auto' : null"
294
721
  (input)="handleInput($event)"
722
+ (compositionstart)="composing = true"
723
+ (compositionend)="handleCompositionEnd($event)"
295
724
  (focus)="focused.emit($event)"
296
725
  (blur)="handleBlur($event)"
297
726
  (scroll)="scrolled.emit($event)"
@@ -304,7 +733,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
304
733
  [attr.aria-label]="clearButtonAriaLabel()"
305
734
  (click)="clear()"
306
735
  >
307
- <span aria-hidden="true"></span>
736
+ @if (clearIconTemplate(); as customIcon) {
737
+ <span aria-hidden="true" data-aeris-custom-icon
738
+ ><ng-container [ngTemplateOutlet]="customIcon"
739
+ /></span>
740
+ } @else {
741
+ <span aerisInternalIcon="close" aria-hidden="true"></span>
742
+ }
308
743
  </button>
309
744
  }
310
745
  </span>
@@ -322,28 +757,291 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
322
757
  </span>
323
758
  }
324
759
  </span>
325
- `, providers: [
326
- {
327
- provide: NG_VALUE_ACCESSOR,
328
- useExisting: forwardRef(() => AerisTextareaComponent),
329
- multi: true,
330
- },
331
- ], host: {
332
- '[attr.data-fluid]': 'fluid() || null',
333
- }, styles: [":host{display:inline-block;max-width:100%;font:inherit}:host([data-fluid]){width:100%}.aeris-textarea-component{display:inline-grid;max-width:100%;gap:.375rem}.aeris-textarea-component[data-fluid]{width:100%}.aeris-textarea-component__field{position:relative;display:block}.aeris-textarea-component__field textarea{display:block}.aeris-textarea-component__field:has(.aeris-textarea-component__clear) textarea{padding-right:2.75rem}.aeris-textarea-component__clear{position:absolute;top:.5rem;right:.5rem;width:1.75rem;height:1.75rem;display:grid;place-items:center;padding:0;border:0;border-radius:.375rem;background:transparent;color:var(--aeris-text-2, #555555);cursor:pointer}.aeris-textarea-component__clear:hover{background:var(--aeris-surface-2, #f2f0ec);color:var(--aeris-text, #222222)}.aeris-textarea-component__clear:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:1px}.aeris-textarea-component__clear span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-textarea-component__count{justify-self:end;color:var(--aeris-text-2, #555555);font-size:.75rem;line-height:1.4}.aeris-textarea-component[data-disabled]{cursor:not-allowed}\n"] }]
334
- }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], cols: [{ type: i0.Input, args: [{ isSignal: true, alias: "cols", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedby", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], resize: [{ type: i0.Input, args: [{ isSignal: true, alias: "resize", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], autoResize: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoResize", required: false }] }], minRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "minRows", required: false }] }], maxRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxRows", required: false }] }], showCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCount", required: false }] }], countLive: [{ type: i0.Input, args: [{ isSignal: true, alias: "countLive", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], clearButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonAriaLabel", required: false }] }], valueInput: [{ type: i0.Output, args: ["valueInput"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], scrolled: [{ type: i0.Output, args: ["scrolled"] }], touch: [{ type: i0.Output, args: ["touch"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], textarea: [{ type: i0.ViewChild, args: ['textarea', { isSignal: true }] }] } });
335
- const AerisTextarea = [
336
- AerisTextareaDirective,
337
- AerisTextareaComponent,
338
- ];
760
+ `,
761
+ providers: [{
762
+ provide: NG_VALUE_ACCESSOR,
763
+ useExisting: forwardRef(() => AerisTextareaComponent),
764
+ multi: true
765
+ }],
766
+ host: { "[attr.data-fluid]": "fluid() || null" },
767
+ styles: [":host{display:inline-block;max-width:100%;font:inherit}:host([data-fluid]){width:100%}.aeris-textarea-component{display:inline-grid;max-width:100%;gap:.375rem}.aeris-textarea-component[data-fluid]{width:100%}.aeris-textarea-component__field{position:relative;display:block}.aeris-textarea-component__field textarea{display:block}.aeris-textarea-component__field:has(.aeris-textarea-component__clear) textarea{padding-right:2.75rem}.aeris-textarea-component__clear{position:absolute;top:.5rem;right:.5rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #454545);cursor:pointer}.aeris-textarea-component__clear:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}@media(hover:hover){.aeris-textarea-component__clear:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-textarea-component__clear:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-textarea-component__clear span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-textarea-component__count{justify-self:end;color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem);line-height:1.4}.aeris-textarea-component[data-disabled]{cursor:not-allowed}@media(pointer:coarse){textarea{font-size:var(--aeris-mobile-input-font-size, 1rem)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}\n"]
768
+ }]
769
+ }],
770
+ propDecorators: {
771
+ clearIconTemplate: [{
772
+ type: i0.Input,
773
+ args: [{
774
+ isSignal: true,
775
+ alias: "clearIconTemplate",
776
+ required: false
777
+ }]
778
+ }],
779
+ value: [{
780
+ type: i0.Input,
781
+ args: [{
782
+ isSignal: true,
783
+ alias: "value",
784
+ required: false
785
+ }]
786
+ }, {
787
+ type: i0.Output,
788
+ args: ["valueChange"]
789
+ }],
790
+ inputId: [{
791
+ type: i0.Input,
792
+ args: [{
793
+ isSignal: true,
794
+ alias: "inputId",
795
+ required: false
796
+ }]
797
+ }],
798
+ name: [{
799
+ type: i0.Input,
800
+ args: [{
801
+ isSignal: true,
802
+ alias: "name",
803
+ required: false
804
+ }]
805
+ }],
806
+ placeholder: [{
807
+ type: i0.Input,
808
+ args: [{
809
+ isSignal: true,
810
+ alias: "placeholder",
811
+ required: false
812
+ }]
813
+ }],
814
+ autocomplete: [{
815
+ type: i0.Input,
816
+ args: [{
817
+ isSignal: true,
818
+ alias: "autocomplete",
819
+ required: false
820
+ }]
821
+ }],
822
+ rows: [{
823
+ type: i0.Input,
824
+ args: [{
825
+ isSignal: true,
826
+ alias: "rows",
827
+ required: false
828
+ }]
829
+ }],
830
+ cols: [{
831
+ type: i0.Input,
832
+ args: [{
833
+ isSignal: true,
834
+ alias: "cols",
835
+ required: false
836
+ }]
837
+ }],
838
+ wrap: [{
839
+ type: i0.Input,
840
+ args: [{
841
+ isSignal: true,
842
+ alias: "wrap",
843
+ required: false
844
+ }]
845
+ }],
846
+ minLength: [{
847
+ type: i0.Input,
848
+ args: [{
849
+ isSignal: true,
850
+ alias: "minLength",
851
+ required: false
852
+ }]
853
+ }],
854
+ maxLength: [{
855
+ type: i0.Input,
856
+ args: [{
857
+ isSignal: true,
858
+ alias: "maxLength",
859
+ required: false
860
+ }]
861
+ }],
862
+ ariaLabel: [{
863
+ type: i0.Input,
864
+ args: [{
865
+ isSignal: true,
866
+ alias: "ariaLabel",
867
+ required: false
868
+ }]
869
+ }],
870
+ ariaLabelledBy: [{
871
+ type: i0.Input,
872
+ args: [{
873
+ isSignal: true,
874
+ alias: "ariaLabelledBy",
875
+ required: false
876
+ }]
877
+ }],
878
+ ariaDescribedBy: [{
879
+ type: i0.Input,
880
+ args: [{
881
+ isSignal: true,
882
+ alias: "ariaDescribedBy",
883
+ required: false
884
+ }]
885
+ }],
886
+ size: [{
887
+ type: i0.Input,
888
+ args: [{
889
+ isSignal: true,
890
+ alias: "size",
891
+ required: false
892
+ }]
893
+ }],
894
+ appearance: [{
895
+ type: i0.Input,
896
+ args: [{
897
+ isSignal: true,
898
+ alias: "appearance",
899
+ required: false
900
+ }]
901
+ }],
902
+ resize: [{
903
+ type: i0.Input,
904
+ args: [{
905
+ isSignal: true,
906
+ alias: "resize",
907
+ required: false
908
+ }]
909
+ }],
910
+ disabled: [{
911
+ type: i0.Input,
912
+ args: [{
913
+ isSignal: true,
914
+ alias: "disabled",
915
+ required: false
916
+ }]
917
+ }],
918
+ readonly: [{
919
+ type: i0.Input,
920
+ args: [{
921
+ isSignal: true,
922
+ alias: "readonly",
923
+ required: false
924
+ }]
925
+ }],
926
+ required: [{
927
+ type: i0.Input,
928
+ args: [{
929
+ isSignal: true,
930
+ alias: "required",
931
+ required: false
932
+ }]
933
+ }],
934
+ invalid: [{
935
+ type: i0.Input,
936
+ args: [{
937
+ isSignal: true,
938
+ alias: "invalid",
939
+ required: false
940
+ }]
941
+ }],
942
+ touched: [{
943
+ type: i0.Input,
944
+ args: [{
945
+ isSignal: true,
946
+ alias: "touched",
947
+ required: false
948
+ }]
949
+ }],
950
+ fluid: [{
951
+ type: i0.Input,
952
+ args: [{
953
+ isSignal: true,
954
+ alias: "fluid",
955
+ required: false
956
+ }]
957
+ }],
958
+ autoResize: [{
959
+ type: i0.Input,
960
+ args: [{
961
+ isSignal: true,
962
+ alias: "autoResize",
963
+ required: false
964
+ }]
965
+ }],
966
+ minRows: [{
967
+ type: i0.Input,
968
+ args: [{
969
+ isSignal: true,
970
+ alias: "minRows",
971
+ required: false
972
+ }]
973
+ }],
974
+ maxRows: [{
975
+ type: i0.Input,
976
+ args: [{
977
+ isSignal: true,
978
+ alias: "maxRows",
979
+ required: false
980
+ }]
981
+ }],
982
+ showCount: [{
983
+ type: i0.Input,
984
+ args: [{
985
+ isSignal: true,
986
+ alias: "showCount",
987
+ required: false
988
+ }]
989
+ }],
990
+ countLive: [{
991
+ type: i0.Input,
992
+ args: [{
993
+ isSignal: true,
994
+ alias: "countLive",
995
+ required: false
996
+ }]
997
+ }],
998
+ clearable: [{
999
+ type: i0.Input,
1000
+ args: [{
1001
+ isSignal: true,
1002
+ alias: "clearable",
1003
+ required: false
1004
+ }]
1005
+ }],
1006
+ clearButtonAriaLabel: [{
1007
+ type: i0.Input,
1008
+ args: [{
1009
+ isSignal: true,
1010
+ alias: "clearButtonAriaLabel",
1011
+ required: false
1012
+ }]
1013
+ }],
1014
+ focused: [{
1015
+ type: i0.Output,
1016
+ args: ["focused"]
1017
+ }],
1018
+ blurred: [{
1019
+ type: i0.Output,
1020
+ args: ["blurred"]
1021
+ }],
1022
+ scrolled: [{
1023
+ type: i0.Output,
1024
+ args: ["scrolled"]
1025
+ }],
1026
+ touch: [{
1027
+ type: i0.Output,
1028
+ args: ["touch"]
1029
+ }],
1030
+ cleared: [{
1031
+ type: i0.Output,
1032
+ args: ["cleared"]
1033
+ }],
1034
+ textarea: [{
1035
+ type: i0.ViewChild,
1036
+ args: ["textarea", { isSignal: true }]
1037
+ }]
1038
+ }
1039
+ });
1040
+ const AerisTextarea = [AerisTextareaDirective, AerisTextareaComponent];
339
1041
  function cssPixelValue(styles, property, fallback) {
340
- const value = Number.parseFloat(styles.getPropertyValue(property));
341
- return Number.isFinite(value) ? value : fallback;
1042
+ const value = Number.parseFloat(styles.getPropertyValue(property));
1043
+ return Number.isFinite(value) ? value : fallback;
342
1044
  }
343
-
344
- /**
345
- * Generated bundle index. Do not edit.
346
- */
347
-
348
1045
  export { AerisTextarea, AerisTextareaComponent, AerisTextareaDirective };
349
- //# sourceMappingURL=aeris-ui-core-textarea.mjs.map
1046
+
1047
+ //# sourceMappingURL=aeris-ui-core-textarea.mjs.map