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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/README.md +200 -191
  2. package/fesm2022/aeris-ui-core-accordion.mjs +646 -255
  3. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  4. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs +1228 -446
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  8. package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  10. package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
  11. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  12. package/fesm2022/aeris-ui-core-badge.mjs +562 -115
  13. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  14. package/fesm2022/aeris-ui-core-block-ui.mjs +209 -101
  15. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  16. package/fesm2022/aeris-ui-core-breadcrumb.mjs +581 -189
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  18. package/fesm2022/aeris-ui-core-button-group.mjs +153 -38
  19. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  20. package/fesm2022/aeris-ui-core-button.mjs +741 -139
  21. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  22. package/fesm2022/aeris-ui-core-card.mjs +371 -101
  23. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-carousel.mjs +773 -369
  25. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-cascade-select.mjs +1171 -521
  27. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-chart.mjs +455 -258
  29. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-checkbox.mjs +440 -140
  31. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-chip.mjs +430 -117
  33. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  34. package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
  35. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  36. package/fesm2022/aeris-ui-core-code-block.mjs +637 -0
  37. package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
  38. package/fesm2022/aeris-ui-core-color-picker.mjs +1340 -700
  39. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  40. package/fesm2022/aeris-ui-core-compare.mjs +823 -318
  41. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  42. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1404 -555
  43. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  44. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1471 -740
  45. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  46. package/fesm2022/aeris-ui-core-context-menu.mjs +918 -443
  47. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  48. package/fesm2022/aeris-ui-core-date-picker.mjs +1942 -1123
  49. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  50. package/fesm2022/aeris-ui-core-dialog.mjs +1079 -346
  51. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  52. package/fesm2022/aeris-ui-core-divider.mjs +204 -43
  53. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  54. package/fesm2022/aeris-ui-core-drawer.mjs +1015 -322
  55. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +410 -254
  57. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-editor.mjs +967 -587
  59. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-file-upload.mjs +1379 -522
  61. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
  63. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
  65. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
  67. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  68. package/fesm2022/aeris-ui-core-form-field.mjs +688 -0
  69. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
  70. package/fesm2022/aeris-ui-core-galleria.mjs +2446 -1117
  71. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  72. package/fesm2022/aeris-ui-core-glass.mjs +110 -33
  73. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-icon-field.mjs +426 -98
  75. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-inplace.mjs +452 -130
  77. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-input-group.mjs +413 -107
  79. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  80. package/fesm2022/aeris-ui-core-input-mask.mjs +658 -255
  81. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  82. package/fesm2022/aeris-ui-core-input-number.mjs +926 -291
  83. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
  85. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  86. package/fesm2022/aeris-ui-core-input-text.mjs +625 -158
  87. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  88. package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
  89. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-mega-menu.mjs +613 -382
  91. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-menu.mjs +1062 -472
  93. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-menubar.mjs +994 -393
  95. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-message.mjs +477 -145
  97. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-meter-group.mjs +623 -230
  99. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-multi-select.mjs +1598 -561
  101. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  102. package/fesm2022/aeris-ui-core-order-list.mjs +592 -220
  103. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-organization-chart.mjs +485 -199
  105. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-paginator.mjs +428 -123
  107. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-panel.mjs +596 -196
  109. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-password.mjs +925 -249
  111. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-pick-list.mjs +1280 -659
  113. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-popover.mjs +912 -375
  115. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-progress-bar.mjs +549 -176
  117. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-progress-spinner.mjs +410 -133
  119. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-radio-button.mjs +394 -124
  121. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-rating.mjs +506 -231
  123. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
  125. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  126. package/fesm2022/aeris-ui-core-scroll-top.mjs +226 -63
  127. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  128. package/fesm2022/aeris-ui-core-select.mjs +1845 -648
  129. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  130. package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
  131. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  132. package/fesm2022/aeris-ui-core-slider.mjs +884 -430
  133. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  134. package/fesm2022/aeris-ui-core-speed-dial.mjs +861 -337
  135. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  136. package/fesm2022/aeris-ui-core-split-button.mjs +955 -266
  137. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  138. package/fesm2022/aeris-ui-core-splitter.mjs +812 -352
  139. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  140. package/fesm2022/aeris-ui-core-stepper.mjs +697 -254
  141. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  142. package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
  143. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  144. package/fesm2022/aeris-ui-core-table.mjs +2034 -869
  145. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-tabs.mjs +789 -279
  147. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-textarea.mjs +856 -219
  149. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  150. package/fesm2022/aeris-ui-core-theme-builder.mjs +1284 -1399
  151. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  152. package/fesm2022/aeris-ui-core-theming.mjs +132 -144
  153. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  154. package/fesm2022/aeris-ui-core-tiered-menu.mjs +909 -441
  155. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  156. package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
  157. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  158. package/fesm2022/aeris-ui-core-toast.mjs +1076 -384
  159. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  160. package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
  161. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  162. package/fesm2022/aeris-ui-core-toolbar.mjs +458 -121
  163. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  164. package/fesm2022/aeris-ui-core-tooltip.mjs +625 -330
  165. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  166. package/fesm2022/aeris-ui-core-tree-select.mjs +1453 -621
  167. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  168. package/fesm2022/aeris-ui-core-tree-table.mjs +2019 -940
  169. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  170. package/fesm2022/aeris-ui-core-tree.mjs +1107 -658
  171. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  172. package/fesm2022/aeris-ui-core.mjs +985 -316
  173. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  174. package/package.json +20 -8
  175. package/schematics/ng-add/schema.json +1 -1
  176. package/schematics/runtime/schematics/ng-add/options.js +4 -4
  177. package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
  178. package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
  179. package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
  180. package/schematics/runtime/theme-builder/aeris-contrast.js +6 -17
  181. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  182. package/schematics/runtime/theme-builder/aeris-foundation.js +10 -4
  183. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  184. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +28 -5
  185. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
  186. package/schematics/runtime/theme-builder/aeris-theme-generator.js +2 -2
  187. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
  188. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +22 -8
  189. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
  190. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +12 -4
  191. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
  192. package/schematics/runtime/theme-builder/aeris-theme-validation.js +7 -1
  193. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
  194. package/schematics/runtime/theme-builder/aeris-theme.js +49 -33
  195. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  196. package/styles/_fallback-colors.scss +10 -0
  197. package/styles/_mobile.scss +16 -0
  198. package/styles/_tokens.scss +5 -5
  199. package/styles/aeris.css +412 -125
  200. package/styles/controls.css +61 -29
  201. package/tools/aeris-theme.mjs +2 -2
  202. package/tools/aeris-theme.schema.json +5 -2
  203. package/types/aeris-ui-core-accordion.d.ts +167 -93
  204. package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
  205. package/types/aeris-ui-core-auto-complete.d.ts +327 -140
  206. package/types/aeris-ui-core-auto-focus.d.ts +24 -16
  207. package/types/aeris-ui-core-avatar.d.ts +112 -42
  208. package/types/aeris-ui-core-badge.d.ts +160 -46
  209. package/types/aeris-ui-core-block-ui.d.ts +47 -27
  210. package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
  211. package/types/aeris-ui-core-button-group.d.ts +37 -16
  212. package/types/aeris-ui-core-button.d.ts +226 -67
  213. package/types/aeris-ui-core-card.d.ts +74 -37
  214. package/types/aeris-ui-core-carousel.d.ts +201 -117
  215. package/types/aeris-ui-core-cascade-select.d.ts +257 -123
  216. package/types/aeris-ui-core-chart.d.ts +134 -84
  217. package/types/aeris-ui-core-checkbox.d.ts +139 -54
  218. package/types/aeris-ui-core-chip.d.ts +116 -51
  219. package/types/aeris-ui-core-class-names.d.ts +22 -20
  220. package/types/aeris-ui-core-code-block.d.ts +188 -0
  221. package/types/aeris-ui-core-color-picker.d.ts +348 -143
  222. package/types/aeris-ui-core-compare.d.ts +224 -102
  223. package/types/aeris-ui-core-confirm-dialog.d.ts +442 -245
  224. package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
  225. package/types/aeris-ui-core-context-menu.d.ts +264 -146
  226. package/types/aeris-ui-core-date-picker.d.ts +489 -217
  227. package/types/aeris-ui-core-dialog.d.ts +288 -117
  228. package/types/aeris-ui-core-divider.d.ts +58 -20
  229. package/types/aeris-ui-core-drawer.d.ts +273 -112
  230. package/types/aeris-ui-core-dynamic-dialog.d.ts +158 -137
  231. package/types/aeris-ui-core-editor.d.ts +250 -123
  232. package/types/aeris-ui-core-file-upload.d.ts +367 -197
  233. package/types/aeris-ui-core-filter-service.d.ts +48 -52
  234. package/types/aeris-ui-core-fluid.d.ts +12 -9
  235. package/types/aeris-ui-core-focus-trap.d.ts +39 -31
  236. package/types/aeris-ui-core-form-field.d.ts +163 -0
  237. package/types/aeris-ui-core-galleria.d.ts +588 -256
  238. package/types/aeris-ui-core-glass.d.ts +24 -11
  239. package/types/aeris-ui-core-icon-field.d.ts +94 -32
  240. package/types/aeris-ui-core-inplace.d.ts +123 -62
  241. package/types/aeris-ui-core-input-group.d.ts +84 -33
  242. package/types/aeris-ui-core-input-mask.d.ts +194 -69
  243. package/types/aeris-ui-core-input-number.d.ts +272 -87
  244. package/types/aeris-ui-core-input-otp.d.ts +191 -81
  245. package/types/aeris-ui-core-input-text.d.ts +185 -60
  246. package/types/aeris-ui-core-key-filter.d.ts +53 -39
  247. package/types/aeris-ui-core-mega-menu.d.ts +175 -121
  248. package/types/aeris-ui-core-menu.d.ts +277 -168
  249. package/types/aeris-ui-core-menubar.d.ts +273 -135
  250. package/types/aeris-ui-core-message.d.ts +132 -60
  251. package/types/aeris-ui-core-meter-group.d.ts +163 -90
  252. package/types/aeris-ui-core-multi-select.d.ts +439 -180
  253. package/types/aeris-ui-core-order-list.d.ts +144 -66
  254. package/types/aeris-ui-core-organization-chart.d.ts +133 -77
  255. package/types/aeris-ui-core-paginator.d.ts +93 -38
  256. package/types/aeris-ui-core-panel.d.ts +149 -78
  257. package/types/aeris-ui-core-password.d.ts +258 -102
  258. package/types/aeris-ui-core-pick-list.d.ts +374 -179
  259. package/types/aeris-ui-core-popover.d.ts +219 -105
  260. package/types/aeris-ui-core-progress-bar.d.ts +157 -73
  261. package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
  262. package/types/aeris-ui-core-radio-button.d.ts +124 -50
  263. package/types/aeris-ui-core-rating.d.ts +149 -76
  264. package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
  265. package/types/aeris-ui-core-scroll-top.d.ts +66 -29
  266. package/types/aeris-ui-core-select.d.ts +475 -217
  267. package/types/aeris-ui-core-skeleton.d.ts +39 -17
  268. package/types/aeris-ui-core-slider.d.ts +270 -115
  269. package/types/aeris-ui-core-speed-dial.d.ts +241 -111
  270. package/types/aeris-ui-core-split-button.d.ts +267 -113
  271. package/types/aeris-ui-core-splitter.d.ts +225 -106
  272. package/types/aeris-ui-core-stepper.d.ts +184 -91
  273. package/types/aeris-ui-core-style-class.d.ts +141 -71
  274. package/types/aeris-ui-core-table.d.ts +596 -304
  275. package/types/aeris-ui-core-tabs.d.ts +181 -76
  276. package/types/aeris-ui-core-textarea.d.ts +261 -78
  277. package/types/aeris-ui-core-theme-builder.d.ts +472 -450
  278. package/types/aeris-ui-core-theming.d.ts +42 -45
  279. package/types/aeris-ui-core-tiered-menu.d.ts +251 -142
  280. package/types/aeris-ui-core-timeline.d.ts +109 -71
  281. package/types/aeris-ui-core-toast.d.ts +225 -115
  282. package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
  283. package/types/aeris-ui-core-toolbar.d.ts +98 -41
  284. package/types/aeris-ui-core-tooltip.d.ts +157 -88
  285. package/types/aeris-ui-core-tree-select.d.ts +364 -171
  286. package/types/aeris-ui-core-tree-table.d.ts +566 -286
  287. package/types/aeris-ui-core-tree.d.ts +270 -165
  288. package/types/aeris-ui-core.d.ts +197 -72
@@ -1,196 +1,552 @@
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 * as i0 from "@angular/core";
2
+ import { Component, Directive, booleanAttribute, computed, forwardRef, input, model, output, signal, viewChild } from "@angular/core";
3
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
4
+ import { ɵaerisDisplayInvalid } from "@aeris-ui/core";
5
+ var AerisTextareaDirective = class AerisTextareaDirective {
6
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
7
+ appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
8
+ resize = input("vertical", ...ngDevMode ? [{ debugName: "resize" }] : /* istanbul ignore next */ []);
9
+ invalid = input(false, {
10
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
11
+ transform: booleanAttribute
12
+ });
13
+ touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
14
+ fluid = input(false, {
15
+ ...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
16
+ transform: booleanAttribute
17
+ });
18
+ displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
19
+ static ɵfac = i0.ɵɵngDeclareFactory({
20
+ minVersion: "12.0.0",
21
+ version: "22.2.2",
22
+ ngImport: i0,
23
+ type: AerisTextareaDirective,
24
+ deps: [],
25
+ target: i0.ɵɵFactoryTarget.Directive
26
+ });
27
+ static ɵdir = i0.ɵɵngDeclareDirective({
28
+ minVersion: "17.1.0",
29
+ version: "22.2.2",
30
+ type: AerisTextareaDirective,
31
+ isStandalone: true,
32
+ selector: "textarea[aerisTextarea]",
33
+ inputs: {
34
+ size: {
35
+ classPropertyName: "size",
36
+ publicName: "size",
37
+ isSignal: true,
38
+ isRequired: false,
39
+ transformFunction: null
40
+ },
41
+ appearance: {
42
+ classPropertyName: "appearance",
43
+ publicName: "appearance",
44
+ isSignal: true,
45
+ isRequired: false,
46
+ transformFunction: null
47
+ },
48
+ resize: {
49
+ classPropertyName: "resize",
50
+ publicName: "resize",
51
+ isSignal: true,
52
+ isRequired: false,
53
+ transformFunction: null
54
+ },
55
+ invalid: {
56
+ classPropertyName: "invalid",
57
+ publicName: "invalid",
58
+ isSignal: true,
59
+ isRequired: false,
60
+ transformFunction: null
61
+ },
62
+ touched: {
63
+ classPropertyName: "touched",
64
+ publicName: "touched",
65
+ isSignal: true,
66
+ isRequired: false,
67
+ transformFunction: null
68
+ },
69
+ fluid: {
70
+ classPropertyName: "fluid",
71
+ publicName: "fluid",
72
+ isSignal: true,
73
+ isRequired: false,
74
+ transformFunction: null
75
+ }
76
+ },
77
+ host: {
78
+ properties: {
79
+ "class.aeris-textarea--xs": "size() === \"xs\"",
80
+ "class.aeris-textarea--sm": "size() === \"sm\"",
81
+ "class.aeris-textarea--md": "size() === \"md\"",
82
+ "class.aeris-textarea--lg": "size() === \"lg\"",
83
+ "class.aeris-textarea--filled": "appearance() === \"filled\"",
84
+ "class.aeris-textarea--invalid": "displayInvalid()",
85
+ "class.aeris-textarea--fluid": "fluid()",
86
+ "attr.data-resize": "resize()",
87
+ "attr.aria-invalid": "displayInvalid() || null"
88
+ },
89
+ classAttribute: "aeris-textarea"
90
+ },
91
+ ngImport: i0
92
+ });
93
+ };
94
+ i0.ɵɵngDeclareClassMetadata({
95
+ minVersion: "12.0.0",
96
+ version: "22.2.2",
97
+ ngImport: i0,
98
+ type: AerisTextareaDirective,
99
+ decorators: [{
100
+ type: Directive,
101
+ args: [{
102
+ selector: "textarea[aerisTextarea]",
103
+ host: {
104
+ class: "aeris-textarea",
105
+ "[class.aeris-textarea--xs]": "size() === \"xs\"",
106
+ "[class.aeris-textarea--sm]": "size() === \"sm\"",
107
+ "[class.aeris-textarea--md]": "size() === \"md\"",
108
+ "[class.aeris-textarea--lg]": "size() === \"lg\"",
109
+ "[class.aeris-textarea--filled]": "appearance() === \"filled\"",
110
+ "[class.aeris-textarea--invalid]": "displayInvalid()",
111
+ "[class.aeris-textarea--fluid]": "fluid()",
112
+ "[attr.data-resize]": "resize()",
113
+ "[attr.aria-invalid]": "displayInvalid() || null"
114
+ }
115
+ }]
116
+ }],
117
+ propDecorators: {
118
+ size: [{
119
+ type: i0.Input,
120
+ args: [{
121
+ isSignal: true,
122
+ alias: "size",
123
+ required: false
124
+ }]
125
+ }],
126
+ appearance: [{
127
+ type: i0.Input,
128
+ args: [{
129
+ isSignal: true,
130
+ alias: "appearance",
131
+ required: false
132
+ }]
133
+ }],
134
+ resize: [{
135
+ type: i0.Input,
136
+ args: [{
137
+ isSignal: true,
138
+ alias: "resize",
139
+ required: false
140
+ }]
141
+ }],
142
+ invalid: [{
143
+ type: i0.Input,
144
+ args: [{
145
+ isSignal: true,
146
+ alias: "invalid",
147
+ required: false
148
+ }]
149
+ }],
150
+ touched: [{
151
+ type: i0.Input,
152
+ args: [{
153
+ isSignal: true,
154
+ alias: "touched",
155
+ required: false
156
+ }]
157
+ }],
158
+ fluid: [{
159
+ type: i0.Input,
160
+ args: [{
161
+ isSignal: true,
162
+ alias: "fluid",
163
+ required: false
164
+ }]
165
+ }]
166
+ }
167
+ });
35
168
  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: `
169
+ var AerisTextareaComponent = class AerisTextareaComponent {
170
+ value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
171
+ inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
172
+ name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
173
+ placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
174
+ autocomplete = input("off", ...ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []);
175
+ rows = input(3, ...ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []);
176
+ cols = input(...ngDevMode ? [void 0, { debugName: "cols" }] : /* istanbul ignore next */ []);
177
+ wrap = input("soft", ...ngDevMode ? [{ debugName: "wrap" }] : /* istanbul ignore next */ []);
178
+ minLength = input(...ngDevMode ? [void 0, { debugName: "minLength" }] : /* istanbul ignore next */ []);
179
+ maxLength = input(...ngDevMode ? [void 0, { debugName: "maxLength" }] : /* istanbul ignore next */ []);
180
+ ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
181
+ ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
182
+ ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
183
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
184
+ appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
185
+ resize = input("vertical", ...ngDevMode ? [{ debugName: "resize" }] : /* istanbul ignore next */ []);
186
+ disabled = input(false, {
187
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
188
+ transform: booleanAttribute
189
+ });
190
+ readonly = input(false, {
191
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
192
+ transform: booleanAttribute
193
+ });
194
+ required = input(false, {
195
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
196
+ transform: booleanAttribute
197
+ });
198
+ invalid = input(false, {
199
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
200
+ transform: booleanAttribute
201
+ });
202
+ touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
203
+ fluid = input(false, {
204
+ ...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
205
+ transform: booleanAttribute
206
+ });
207
+ autoResize = input(false, {
208
+ ...ngDevMode ? { debugName: "autoResize" } : /* istanbul ignore next */ {},
209
+ transform: booleanAttribute
210
+ });
211
+ minRows = input(3, ...ngDevMode ? [{ debugName: "minRows" }] : /* istanbul ignore next */ []);
212
+ maxRows = input(...ngDevMode ? [void 0, { debugName: "maxRows" }] : /* istanbul ignore next */ []);
213
+ showCount = input(false, {
214
+ ...ngDevMode ? { debugName: "showCount" } : /* istanbul ignore next */ {},
215
+ transform: booleanAttribute
216
+ });
217
+ countLive = input(false, {
218
+ ...ngDevMode ? { debugName: "countLive" } : /* istanbul ignore next */ {},
219
+ transform: booleanAttribute
220
+ });
221
+ clearable = input(false, {
222
+ ...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
223
+ transform: booleanAttribute
224
+ });
225
+ clearButtonAriaLabel = input("Clear text", ...ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []);
226
+ focused = output();
227
+ blurred = output();
228
+ scrolled = output();
229
+ touch = output();
230
+ cleared = output();
231
+ formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
232
+ autoHeight = signal(null, ...ngDevMode ? [{ debugName: "autoHeight" }] : /* istanbul ignore next */ []);
233
+ atMaximumHeight = signal(false, ...ngDevMode ? [{ debugName: "atMaximumHeight" }] : /* istanbul ignore next */ []);
234
+ effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
235
+ displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
236
+ generatedId = `aeris-textarea-${++textareaId}`;
237
+ resolvedInputId = computed(() => this.inputId() || this.generatedId, ...ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []);
238
+ characterCount = computed(() => Array.from(this.value()).length, ...ngDevMode ? [{ debugName: "characterCount" }] : /* istanbul ignore next */ []);
239
+ showClearButton = computed(() => this.clearable() && this.value().length > 0 && !this.effectiveDisabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []);
240
+ textarea = viewChild("textarea", ...ngDevMode ? [{ debugName: "textarea" }] : /* istanbul ignore next */ []);
241
+ onChange = () => void 0;
242
+ onTouched = () => void 0;
243
+ writeValue(value) {
244
+ this.value.set(value == null ? "" : String(value));
245
+ this.scheduleResize();
246
+ }
247
+ registerOnChange(callback) {
248
+ this.onChange = callback;
249
+ }
250
+ registerOnTouched(callback) {
251
+ this.onTouched = callback;
252
+ }
253
+ setDisabledState(disabled) {
254
+ this.formDisabled.set(disabled);
255
+ }
256
+ focus(options) {
257
+ this.textarea()?.nativeElement.focus(options);
258
+ }
259
+ reset() {
260
+ this.setValue("");
261
+ this.scheduleResize();
262
+ }
263
+ clear() {
264
+ if (this.effectiveDisabled() || this.readonly()) return;
265
+ this.setValue("");
266
+ this.cleared.emit();
267
+ this.scheduleResize();
268
+ queueMicrotask(() => this.focus());
269
+ }
270
+ resizeToContent() {
271
+ if (!this.autoResize()) return;
272
+ const element = this.textarea()?.nativeElement;
273
+ if (!element) return;
274
+ const styles = getComputedStyle(element);
275
+ const configuredRowHeight = cssPixelValue(styles, "--aeris-textarea-row-height", 21);
276
+ const rowHeight = Math.max(configuredRowHeight, cssPixelValue(styles, "line-height", configuredRowHeight));
277
+ const verticalPadding = cssPixelValue(styles, "--aeris-textarea-vertical-padding", 20);
278
+ const minimum = Math.max(1, this.minRows()) * rowHeight + verticalPadding;
279
+ const maximumRows = this.maxRows();
280
+ const maximum = maximumRows === void 0 ? Number.POSITIVE_INFINITY : Math.max(this.minRows(), maximumRows) * rowHeight + verticalPadding;
281
+ const height = Math.min(maximum, Math.max(minimum, element.scrollHeight));
282
+ this.autoHeight.set(height);
283
+ this.atMaximumHeight.set(Number.isFinite(maximum) && element.scrollHeight > maximum);
284
+ }
285
+ handleInput(event) {
286
+ this.setValue(event.target.value);
287
+ this.resizeToContent();
288
+ }
289
+ handleBlur(event) {
290
+ this.onTouched();
291
+ this.touch.emit();
292
+ this.blurred.emit(event);
293
+ }
294
+ setValue(value) {
295
+ if (this.value() === value) return;
296
+ this.value.set(value);
297
+ this.onChange(value);
298
+ }
299
+ scheduleResize() {
300
+ if (this.autoResize()) queueMicrotask(() => this.resizeToContent());
301
+ }
302
+ static ɵfac = i0.ɵɵngDeclareFactory({
303
+ minVersion: "12.0.0",
304
+ version: "22.2.2",
305
+ ngImport: i0,
306
+ type: AerisTextareaComponent,
307
+ deps: [],
308
+ target: i0.ɵɵFactoryTarget.Component
309
+ });
310
+ static ɵcmp = i0.ɵɵngDeclareComponent({
311
+ minVersion: "17.0.0",
312
+ version: "22.2.2",
313
+ type: AerisTextareaComponent,
314
+ isStandalone: true,
315
+ selector: "aeris-textarea",
316
+ inputs: {
317
+ value: {
318
+ classPropertyName: "value",
319
+ publicName: "value",
320
+ isSignal: true,
321
+ isRequired: false,
322
+ transformFunction: null
323
+ },
324
+ inputId: {
325
+ classPropertyName: "inputId",
326
+ publicName: "inputId",
327
+ isSignal: true,
328
+ isRequired: false,
329
+ transformFunction: null
330
+ },
331
+ name: {
332
+ classPropertyName: "name",
333
+ publicName: "name",
334
+ isSignal: true,
335
+ isRequired: false,
336
+ transformFunction: null
337
+ },
338
+ placeholder: {
339
+ classPropertyName: "placeholder",
340
+ publicName: "placeholder",
341
+ isSignal: true,
342
+ isRequired: false,
343
+ transformFunction: null
344
+ },
345
+ autocomplete: {
346
+ classPropertyName: "autocomplete",
347
+ publicName: "autocomplete",
348
+ isSignal: true,
349
+ isRequired: false,
350
+ transformFunction: null
351
+ },
352
+ rows: {
353
+ classPropertyName: "rows",
354
+ publicName: "rows",
355
+ isSignal: true,
356
+ isRequired: false,
357
+ transformFunction: null
358
+ },
359
+ cols: {
360
+ classPropertyName: "cols",
361
+ publicName: "cols",
362
+ isSignal: true,
363
+ isRequired: false,
364
+ transformFunction: null
365
+ },
366
+ wrap: {
367
+ classPropertyName: "wrap",
368
+ publicName: "wrap",
369
+ isSignal: true,
370
+ isRequired: false,
371
+ transformFunction: null
372
+ },
373
+ minLength: {
374
+ classPropertyName: "minLength",
375
+ publicName: "minLength",
376
+ isSignal: true,
377
+ isRequired: false,
378
+ transformFunction: null
379
+ },
380
+ maxLength: {
381
+ classPropertyName: "maxLength",
382
+ publicName: "maxLength",
383
+ isSignal: true,
384
+ isRequired: false,
385
+ transformFunction: null
386
+ },
387
+ ariaLabel: {
388
+ classPropertyName: "ariaLabel",
389
+ publicName: "ariaLabel",
390
+ isSignal: true,
391
+ isRequired: false,
392
+ transformFunction: null
393
+ },
394
+ ariaLabelledBy: {
395
+ classPropertyName: "ariaLabelledBy",
396
+ publicName: "ariaLabelledBy",
397
+ isSignal: true,
398
+ isRequired: false,
399
+ transformFunction: null
400
+ },
401
+ ariaDescribedBy: {
402
+ classPropertyName: "ariaDescribedBy",
403
+ publicName: "ariaDescribedBy",
404
+ isSignal: true,
405
+ isRequired: false,
406
+ transformFunction: null
407
+ },
408
+ size: {
409
+ classPropertyName: "size",
410
+ publicName: "size",
411
+ isSignal: true,
412
+ isRequired: false,
413
+ transformFunction: null
414
+ },
415
+ appearance: {
416
+ classPropertyName: "appearance",
417
+ publicName: "appearance",
418
+ isSignal: true,
419
+ isRequired: false,
420
+ transformFunction: null
421
+ },
422
+ resize: {
423
+ classPropertyName: "resize",
424
+ publicName: "resize",
425
+ isSignal: true,
426
+ isRequired: false,
427
+ transformFunction: null
428
+ },
429
+ disabled: {
430
+ classPropertyName: "disabled",
431
+ publicName: "disabled",
432
+ isSignal: true,
433
+ isRequired: false,
434
+ transformFunction: null
435
+ },
436
+ readonly: {
437
+ classPropertyName: "readonly",
438
+ publicName: "readonly",
439
+ isSignal: true,
440
+ isRequired: false,
441
+ transformFunction: null
442
+ },
443
+ required: {
444
+ classPropertyName: "required",
445
+ publicName: "required",
446
+ isSignal: true,
447
+ isRequired: false,
448
+ transformFunction: null
449
+ },
450
+ invalid: {
451
+ classPropertyName: "invalid",
452
+ publicName: "invalid",
453
+ isSignal: true,
454
+ isRequired: false,
455
+ transformFunction: null
456
+ },
457
+ touched: {
458
+ classPropertyName: "touched",
459
+ publicName: "touched",
460
+ isSignal: true,
461
+ isRequired: false,
462
+ transformFunction: null
463
+ },
464
+ fluid: {
465
+ classPropertyName: "fluid",
466
+ publicName: "fluid",
467
+ isSignal: true,
468
+ isRequired: false,
469
+ transformFunction: null
470
+ },
471
+ autoResize: {
472
+ classPropertyName: "autoResize",
473
+ publicName: "autoResize",
474
+ isSignal: true,
475
+ isRequired: false,
476
+ transformFunction: null
477
+ },
478
+ minRows: {
479
+ classPropertyName: "minRows",
480
+ publicName: "minRows",
481
+ isSignal: true,
482
+ isRequired: false,
483
+ transformFunction: null
484
+ },
485
+ maxRows: {
486
+ classPropertyName: "maxRows",
487
+ publicName: "maxRows",
488
+ isSignal: true,
489
+ isRequired: false,
490
+ transformFunction: null
491
+ },
492
+ showCount: {
493
+ classPropertyName: "showCount",
494
+ publicName: "showCount",
495
+ isSignal: true,
496
+ isRequired: false,
497
+ transformFunction: null
498
+ },
499
+ countLive: {
500
+ classPropertyName: "countLive",
501
+ publicName: "countLive",
502
+ isSignal: true,
503
+ isRequired: false,
504
+ transformFunction: null
505
+ },
506
+ clearable: {
507
+ classPropertyName: "clearable",
508
+ publicName: "clearable",
509
+ isSignal: true,
510
+ isRequired: false,
511
+ transformFunction: null
512
+ },
513
+ clearButtonAriaLabel: {
514
+ classPropertyName: "clearButtonAriaLabel",
515
+ publicName: "clearButtonAriaLabel",
516
+ isSignal: true,
517
+ isRequired: false,
518
+ transformFunction: null
519
+ }
520
+ },
521
+ outputs: {
522
+ value: "valueChange",
523
+ focused: "focused",
524
+ blurred: "blurred",
525
+ scrolled: "scrolled",
526
+ touch: "touch",
527
+ cleared: "cleared"
528
+ },
529
+ host: { properties: { "attr.data-fluid": "fluid() || null" } },
530
+ providers: [{
531
+ provide: NG_VALUE_ACCESSOR,
532
+ useExisting: forwardRef(() => AerisTextareaComponent),
533
+ multi: true
534
+ }],
535
+ viewQueries: [{
536
+ propertyName: "textarea",
537
+ first: true,
538
+ predicate: ["textarea"],
539
+ descendants: true,
540
+ isSignal: true
541
+ }],
542
+ ngImport: i0,
543
+ template: `
188
544
  <span
189
545
  class="aeris-textarea-component"
190
546
  [attr.data-size]="size()"
191
547
  [attr.data-fluid]="fluid() || null"
192
548
  [attr.data-disabled]="effectiveDisabled() || null"
193
- [attr.data-invalid]="invalid() || null"
549
+ [attr.data-invalid]="displayInvalid() || null"
194
550
  >
195
551
  <span class="aeris-textarea-component__field">
196
552
  <textarea
@@ -208,6 +564,7 @@ class AerisTextareaComponent {
208
564
  [appearance]="appearance()"
209
565
  [resize]="autoResize() ? 'none' : resize()"
210
566
  [invalid]="invalid()"
567
+ [touched]="touched()"
211
568
  [disabled]="effectiveDisabled()"
212
569
  [readOnly]="readonly()"
213
570
  [required]="required()"
@@ -215,8 +572,8 @@ class AerisTextareaComponent {
215
572
  [attr.minlength]="minLength() ?? null"
216
573
  [attr.maxlength]="maxLength() ?? null"
217
574
  [attr.aria-label]="ariaLabel() || null"
218
- [attr.aria-labelledby]="ariaLabelledby() || null"
219
- [attr.aria-describedby]="ariaDescribedby() || null"
575
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
576
+ [attr.aria-describedby]="ariaDescribedBy() || null"
220
577
  [attr.aria-required]="required() || null"
221
578
  [style.height.px]="autoResize() ? autoHeight() : null"
222
579
  [style.overflow-y]="autoResize() && atMaximumHeight() ? 'auto' : null"
@@ -251,17 +608,41 @@ class AerisTextareaComponent {
251
608
  </span>
252
609
  }
253
610
  </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: `
611
+ `,
612
+ isInline: true,
613
+ 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)}}\n"],
614
+ dependencies: [{
615
+ kind: "directive",
616
+ type: AerisTextareaDirective,
617
+ selector: "textarea[aerisTextarea]",
618
+ inputs: [
619
+ "size",
620
+ "appearance",
621
+ "resize",
622
+ "invalid",
623
+ "touched",
624
+ "fluid"
625
+ ]
626
+ }]
627
+ });
628
+ };
629
+ i0.ɵɵngDeclareClassMetadata({
630
+ minVersion: "12.0.0",
631
+ version: "22.2.2",
632
+ ngImport: i0,
633
+ type: AerisTextareaComponent,
634
+ decorators: [{
635
+ type: Component,
636
+ args: [{
637
+ selector: "aeris-textarea",
638
+ imports: [AerisTextareaDirective],
639
+ template: `
259
640
  <span
260
641
  class="aeris-textarea-component"
261
642
  [attr.data-size]="size()"
262
643
  [attr.data-fluid]="fluid() || null"
263
644
  [attr.data-disabled]="effectiveDisabled() || null"
264
- [attr.data-invalid]="invalid() || null"
645
+ [attr.data-invalid]="displayInvalid() || null"
265
646
  >
266
647
  <span class="aeris-textarea-component__field">
267
648
  <textarea
@@ -279,6 +660,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
279
660
  [appearance]="appearance()"
280
661
  [resize]="autoResize() ? 'none' : resize()"
281
662
  [invalid]="invalid()"
663
+ [touched]="touched()"
282
664
  [disabled]="effectiveDisabled()"
283
665
  [readOnly]="readonly()"
284
666
  [required]="required()"
@@ -286,8 +668,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
286
668
  [attr.minlength]="minLength() ?? null"
287
669
  [attr.maxlength]="maxLength() ?? null"
288
670
  [attr.aria-label]="ariaLabel() || null"
289
- [attr.aria-labelledby]="ariaLabelledby() || null"
290
- [attr.aria-describedby]="ariaDescribedby() || null"
671
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
672
+ [attr.aria-describedby]="ariaDescribedBy() || null"
291
673
  [attr.aria-required]="required() || null"
292
674
  [style.height.px]="autoResize() ? autoHeight() : null"
293
675
  [style.overflow-y]="autoResize() && atMaximumHeight() ? 'auto' : null"
@@ -322,28 +704,283 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
322
704
  </span>
323
705
  }
324
706
  </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
- ];
707
+ `,
708
+ providers: [{
709
+ provide: NG_VALUE_ACCESSOR,
710
+ useExisting: forwardRef(() => AerisTextareaComponent),
711
+ multi: true
712
+ }],
713
+ host: { "[attr.data-fluid]": "fluid() || null" },
714
+ 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)}}\n"]
715
+ }]
716
+ }],
717
+ propDecorators: {
718
+ value: [{
719
+ type: i0.Input,
720
+ args: [{
721
+ isSignal: true,
722
+ alias: "value",
723
+ required: false
724
+ }]
725
+ }, {
726
+ type: i0.Output,
727
+ args: ["valueChange"]
728
+ }],
729
+ inputId: [{
730
+ type: i0.Input,
731
+ args: [{
732
+ isSignal: true,
733
+ alias: "inputId",
734
+ required: false
735
+ }]
736
+ }],
737
+ name: [{
738
+ type: i0.Input,
739
+ args: [{
740
+ isSignal: true,
741
+ alias: "name",
742
+ required: false
743
+ }]
744
+ }],
745
+ placeholder: [{
746
+ type: i0.Input,
747
+ args: [{
748
+ isSignal: true,
749
+ alias: "placeholder",
750
+ required: false
751
+ }]
752
+ }],
753
+ autocomplete: [{
754
+ type: i0.Input,
755
+ args: [{
756
+ isSignal: true,
757
+ alias: "autocomplete",
758
+ required: false
759
+ }]
760
+ }],
761
+ rows: [{
762
+ type: i0.Input,
763
+ args: [{
764
+ isSignal: true,
765
+ alias: "rows",
766
+ required: false
767
+ }]
768
+ }],
769
+ cols: [{
770
+ type: i0.Input,
771
+ args: [{
772
+ isSignal: true,
773
+ alias: "cols",
774
+ required: false
775
+ }]
776
+ }],
777
+ wrap: [{
778
+ type: i0.Input,
779
+ args: [{
780
+ isSignal: true,
781
+ alias: "wrap",
782
+ required: false
783
+ }]
784
+ }],
785
+ minLength: [{
786
+ type: i0.Input,
787
+ args: [{
788
+ isSignal: true,
789
+ alias: "minLength",
790
+ required: false
791
+ }]
792
+ }],
793
+ maxLength: [{
794
+ type: i0.Input,
795
+ args: [{
796
+ isSignal: true,
797
+ alias: "maxLength",
798
+ required: false
799
+ }]
800
+ }],
801
+ ariaLabel: [{
802
+ type: i0.Input,
803
+ args: [{
804
+ isSignal: true,
805
+ alias: "ariaLabel",
806
+ required: false
807
+ }]
808
+ }],
809
+ ariaLabelledBy: [{
810
+ type: i0.Input,
811
+ args: [{
812
+ isSignal: true,
813
+ alias: "ariaLabelledBy",
814
+ required: false
815
+ }]
816
+ }],
817
+ ariaDescribedBy: [{
818
+ type: i0.Input,
819
+ args: [{
820
+ isSignal: true,
821
+ alias: "ariaDescribedBy",
822
+ required: false
823
+ }]
824
+ }],
825
+ size: [{
826
+ type: i0.Input,
827
+ args: [{
828
+ isSignal: true,
829
+ alias: "size",
830
+ required: false
831
+ }]
832
+ }],
833
+ appearance: [{
834
+ type: i0.Input,
835
+ args: [{
836
+ isSignal: true,
837
+ alias: "appearance",
838
+ required: false
839
+ }]
840
+ }],
841
+ resize: [{
842
+ type: i0.Input,
843
+ args: [{
844
+ isSignal: true,
845
+ alias: "resize",
846
+ required: false
847
+ }]
848
+ }],
849
+ disabled: [{
850
+ type: i0.Input,
851
+ args: [{
852
+ isSignal: true,
853
+ alias: "disabled",
854
+ required: false
855
+ }]
856
+ }],
857
+ readonly: [{
858
+ type: i0.Input,
859
+ args: [{
860
+ isSignal: true,
861
+ alias: "readonly",
862
+ required: false
863
+ }]
864
+ }],
865
+ required: [{
866
+ type: i0.Input,
867
+ args: [{
868
+ isSignal: true,
869
+ alias: "required",
870
+ required: false
871
+ }]
872
+ }],
873
+ invalid: [{
874
+ type: i0.Input,
875
+ args: [{
876
+ isSignal: true,
877
+ alias: "invalid",
878
+ required: false
879
+ }]
880
+ }],
881
+ touched: [{
882
+ type: i0.Input,
883
+ args: [{
884
+ isSignal: true,
885
+ alias: "touched",
886
+ required: false
887
+ }]
888
+ }],
889
+ fluid: [{
890
+ type: i0.Input,
891
+ args: [{
892
+ isSignal: true,
893
+ alias: "fluid",
894
+ required: false
895
+ }]
896
+ }],
897
+ autoResize: [{
898
+ type: i0.Input,
899
+ args: [{
900
+ isSignal: true,
901
+ alias: "autoResize",
902
+ required: false
903
+ }]
904
+ }],
905
+ minRows: [{
906
+ type: i0.Input,
907
+ args: [{
908
+ isSignal: true,
909
+ alias: "minRows",
910
+ required: false
911
+ }]
912
+ }],
913
+ maxRows: [{
914
+ type: i0.Input,
915
+ args: [{
916
+ isSignal: true,
917
+ alias: "maxRows",
918
+ required: false
919
+ }]
920
+ }],
921
+ showCount: [{
922
+ type: i0.Input,
923
+ args: [{
924
+ isSignal: true,
925
+ alias: "showCount",
926
+ required: false
927
+ }]
928
+ }],
929
+ countLive: [{
930
+ type: i0.Input,
931
+ args: [{
932
+ isSignal: true,
933
+ alias: "countLive",
934
+ required: false
935
+ }]
936
+ }],
937
+ clearable: [{
938
+ type: i0.Input,
939
+ args: [{
940
+ isSignal: true,
941
+ alias: "clearable",
942
+ required: false
943
+ }]
944
+ }],
945
+ clearButtonAriaLabel: [{
946
+ type: i0.Input,
947
+ args: [{
948
+ isSignal: true,
949
+ alias: "clearButtonAriaLabel",
950
+ required: false
951
+ }]
952
+ }],
953
+ focused: [{
954
+ type: i0.Output,
955
+ args: ["focused"]
956
+ }],
957
+ blurred: [{
958
+ type: i0.Output,
959
+ args: ["blurred"]
960
+ }],
961
+ scrolled: [{
962
+ type: i0.Output,
963
+ args: ["scrolled"]
964
+ }],
965
+ touch: [{
966
+ type: i0.Output,
967
+ args: ["touch"]
968
+ }],
969
+ cleared: [{
970
+ type: i0.Output,
971
+ args: ["cleared"]
972
+ }],
973
+ textarea: [{
974
+ type: i0.ViewChild,
975
+ args: ["textarea", { isSignal: true }]
976
+ }]
977
+ }
978
+ });
979
+ const AerisTextarea = [AerisTextareaDirective, AerisTextareaComponent];
339
980
  function cssPixelValue(styles, property, fallback) {
340
- const value = Number.parseFloat(styles.getPropertyValue(property));
341
- return Number.isFinite(value) ? value : fallback;
981
+ const value = Number.parseFloat(styles.getPropertyValue(property));
982
+ return Number.isFinite(value) ? value : fallback;
342
983
  }
343
-
344
- /**
345
- * Generated bundle index. Do not edit.
346
- */
347
-
348
984
  export { AerisTextarea, AerisTextareaComponent, AerisTextareaDirective };
349
- //# sourceMappingURL=aeris-ui-core-textarea.mjs.map
985
+
986
+ //# sourceMappingURL=aeris-ui-core-textarea.mjs.map