@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,401 +1,805 @@
1
- import { NgTemplateOutlet } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, TemplateRef, Directive, viewChild, signal, model, input, booleanAttribute, output, contentChild, computed, forwardRef, Component } from '@angular/core';
4
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
5
-
6
- class AerisAutoCompleteOptionTemplate {
7
- template = inject(TemplateRef);
8
- static ngTemplateContextGuard(_directive, context) {
9
- return true;
10
- }
11
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisAutoCompleteOptionTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
12
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisAutoCompleteOptionTemplate, isStandalone: true, selector: "ng-template[aerisAutoCompleteOption]", ngImport: i0 });
13
- }
14
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisAutoCompleteOptionTemplate, decorators: [{
15
- type: Directive,
16
- args: [{ selector: 'ng-template[aerisAutoCompleteOption]' }]
17
- }] });
18
- class AerisAutoCompleteGroupTemplate {
19
- template = inject(TemplateRef);
20
- static ngTemplateContextGuard(_directive, context) {
21
- return true;
22
- }
23
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisAutoCompleteGroupTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
24
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisAutoCompleteGroupTemplate, isStandalone: true, selector: "ng-template[aerisAutoCompleteGroup]", ngImport: i0 });
25
- }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisAutoCompleteGroupTemplate, decorators: [{
27
- type: Directive,
28
- args: [{ selector: 'ng-template[aerisAutoCompleteGroup]' }]
29
- }] });
30
- class AerisAutoCompleteEmptyTemplate {
31
- template = inject(TemplateRef);
32
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisAutoCompleteEmptyTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
33
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisAutoCompleteEmptyTemplate, isStandalone: true, selector: "ng-template[aerisAutoCompleteEmpty]", ngImport: i0 });
34
- }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisAutoCompleteEmptyTemplate, decorators: [{
36
- type: Directive,
37
- args: [{ selector: 'ng-template[aerisAutoCompleteEmpty]' }]
38
- }] });
39
- class AerisAutoCompleteLoadingTemplate {
40
- template = inject(TemplateRef);
41
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisAutoCompleteLoadingTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
42
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisAutoCompleteLoadingTemplate, isStandalone: true, selector: "ng-template[aerisAutoCompleteLoading]", ngImport: i0 });
43
- }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisAutoCompleteLoadingTemplate, decorators: [{
45
- type: Directive,
46
- args: [{ selector: 'ng-template[aerisAutoCompleteLoading]' }]
47
- }] });
1
+ import { NgTemplateOutlet } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { Component, Directive, TemplateRef, booleanAttribute, computed, contentChild, forwardRef, inject, input, model, output, signal, viewChild } from "@angular/core";
4
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
5
+ import { ɵAerisAppendTo, ɵAerisIcon, ɵaerisDisplayInvalid } from "@aeris-ui/core";
6
+ var AerisAutoCompleteOptionTemplate = class AerisAutoCompleteOptionTemplate {
7
+ template = inject(TemplateRef);
8
+ static ngTemplateContextGuard(_directive, context) {
9
+ return true;
10
+ }
11
+ static ɵfac = i0.ɵɵngDeclareFactory({
12
+ minVersion: "12.0.0",
13
+ version: "22.2.3",
14
+ ngImport: i0,
15
+ type: AerisAutoCompleteOptionTemplate,
16
+ deps: [],
17
+ target: i0.ɵɵFactoryTarget.Directive
18
+ });
19
+ static ɵdir = i0.ɵɵngDeclareDirective({
20
+ minVersion: "14.0.0",
21
+ version: "22.2.3",
22
+ type: AerisAutoCompleteOptionTemplate,
23
+ isStandalone: true,
24
+ selector: "ng-template[aerisAutoCompleteOption]",
25
+ ngImport: i0
26
+ });
27
+ };
28
+ i0.ɵɵngDeclareClassMetadata({
29
+ minVersion: "12.0.0",
30
+ version: "22.2.3",
31
+ ngImport: i0,
32
+ type: AerisAutoCompleteOptionTemplate,
33
+ decorators: [{
34
+ type: Directive,
35
+ args: [{ selector: "ng-template[aerisAutoCompleteOption]" }]
36
+ }]
37
+ });
38
+ var AerisAutoCompleteGroupTemplate = class AerisAutoCompleteGroupTemplate {
39
+ template = inject(TemplateRef);
40
+ static ngTemplateContextGuard(_directive, context) {
41
+ return true;
42
+ }
43
+ static ɵfac = i0.ɵɵngDeclareFactory({
44
+ minVersion: "12.0.0",
45
+ version: "22.2.3",
46
+ ngImport: i0,
47
+ type: AerisAutoCompleteGroupTemplate,
48
+ deps: [],
49
+ target: i0.ɵɵFactoryTarget.Directive
50
+ });
51
+ static ɵdir = i0.ɵɵngDeclareDirective({
52
+ minVersion: "14.0.0",
53
+ version: "22.2.3",
54
+ type: AerisAutoCompleteGroupTemplate,
55
+ isStandalone: true,
56
+ selector: "ng-template[aerisAutoCompleteGroup]",
57
+ ngImport: i0
58
+ });
59
+ };
60
+ i0.ɵɵngDeclareClassMetadata({
61
+ minVersion: "12.0.0",
62
+ version: "22.2.3",
63
+ ngImport: i0,
64
+ type: AerisAutoCompleteGroupTemplate,
65
+ decorators: [{
66
+ type: Directive,
67
+ args: [{ selector: "ng-template[aerisAutoCompleteGroup]" }]
68
+ }]
69
+ });
70
+ var AerisAutoCompleteEmptyTemplate = class AerisAutoCompleteEmptyTemplate {
71
+ template = inject(TemplateRef);
72
+ static ɵfac = i0.ɵɵngDeclareFactory({
73
+ minVersion: "12.0.0",
74
+ version: "22.2.3",
75
+ ngImport: i0,
76
+ type: AerisAutoCompleteEmptyTemplate,
77
+ deps: [],
78
+ target: i0.ɵɵFactoryTarget.Directive
79
+ });
80
+ static ɵdir = i0.ɵɵngDeclareDirective({
81
+ minVersion: "14.0.0",
82
+ version: "22.2.3",
83
+ type: AerisAutoCompleteEmptyTemplate,
84
+ isStandalone: true,
85
+ selector: "ng-template[aerisAutoCompleteEmpty]",
86
+ ngImport: i0
87
+ });
88
+ };
89
+ i0.ɵɵngDeclareClassMetadata({
90
+ minVersion: "12.0.0",
91
+ version: "22.2.3",
92
+ ngImport: i0,
93
+ type: AerisAutoCompleteEmptyTemplate,
94
+ decorators: [{
95
+ type: Directive,
96
+ args: [{ selector: "ng-template[aerisAutoCompleteEmpty]" }]
97
+ }]
98
+ });
99
+ var AerisAutoCompleteLoadingTemplate = class AerisAutoCompleteLoadingTemplate {
100
+ template = inject(TemplateRef);
101
+ static ɵfac = i0.ɵɵngDeclareFactory({
102
+ minVersion: "12.0.0",
103
+ version: "22.2.3",
104
+ ngImport: i0,
105
+ type: AerisAutoCompleteLoadingTemplate,
106
+ deps: [],
107
+ target: i0.ɵɵFactoryTarget.Directive
108
+ });
109
+ static ɵdir = i0.ɵɵngDeclareDirective({
110
+ minVersion: "14.0.0",
111
+ version: "22.2.3",
112
+ type: AerisAutoCompleteLoadingTemplate,
113
+ isStandalone: true,
114
+ selector: "ng-template[aerisAutoCompleteLoading]",
115
+ ngImport: i0
116
+ });
117
+ };
118
+ i0.ɵɵngDeclareClassMetadata({
119
+ minVersion: "12.0.0",
120
+ version: "22.2.3",
121
+ ngImport: i0,
122
+ type: AerisAutoCompleteLoadingTemplate,
123
+ decorators: [{
124
+ type: Directive,
125
+ args: [{ selector: "ng-template[aerisAutoCompleteLoading]" }]
126
+ }]
127
+ });
48
128
  let nextAutoCompleteId = 0;
49
- class AerisAutoComplete {
50
- inputElement = viewChild('textInput', /* @ts-ignore */
51
- ...(ngDevMode ? [{ debugName: "inputElement" }] : /* istanbul ignore next */ []));
52
- generatedId = `aeris-auto-complete-${++nextAutoCompleteId}`;
53
- formDisabled = signal(false, /* @ts-ignore */
54
- ...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
55
- activeValue = signal(null, /* @ts-ignore */
56
- ...(ngDevMode ? [{ debugName: "activeValue" }] : /* istanbul ignore next */ []));
57
- panelOpen = signal(false, /* @ts-ignore */
58
- ...(ngDevMode ? [{ debugName: "panelOpen" }] : /* istanbul ignore next */ []));
59
- suppressNextFocusOpen = false;
60
- onChange = () => undefined;
61
- onTouched = () => undefined;
62
- value = model('', /* @ts-ignore */
63
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
64
- suggestions = input([], /* @ts-ignore */
65
- ...(ngDevMode ? [{ debugName: "suggestions" }] : /* istanbul ignore next */ []));
66
- inputId = input('', /* @ts-ignore */
67
- ...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
68
- name = input('', /* @ts-ignore */
69
- ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
70
- placeholder = input('', /* @ts-ignore */
71
- ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
72
- autocomplete = input('off', /* @ts-ignore */
73
- ...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
74
- ariaLabel = input(/* @ts-ignore */
75
- ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
76
- ariaLabelledby = input(/* @ts-ignore */
77
- ...(ngDevMode ? [undefined, { debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
78
- ariaDescribedby = input(/* @ts-ignore */
79
- ...(ngDevMode ? [undefined, { debugName: "ariaDescribedby" }] : /* istanbul ignore next */ []));
80
- listboxAriaLabel = input('Suggestions', /* @ts-ignore */
81
- ...(ngDevMode ? [{ debugName: "listboxAriaLabel" }] : /* istanbul ignore next */ []));
82
- dropdownAriaLabel = input('Show suggestions', /* @ts-ignore */
83
- ...(ngDevMode ? [{ debugName: "dropdownAriaLabel" }] : /* istanbul ignore next */ []));
84
- clearButtonAriaLabel = input('Clear value', /* @ts-ignore */
85
- ...(ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []));
86
- emptyMessage = input('No suggestions found', /* @ts-ignore */
87
- ...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
88
- loadingMessage = input('Loading suggestions', /* @ts-ignore */
89
- ...(ngDevMode ? [{ debugName: "loadingMessage" }] : /* istanbul ignore next */ []));
90
- size = input('md', /* @ts-ignore */
91
- ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
92
- appearance = input('outline', /* @ts-ignore */
93
- ...(ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []));
94
- filterMatchMode = input('contains', /* @ts-ignore */
95
- ...(ngDevMode ? [{ debugName: "filterMatchMode" }] : /* istanbul ignore next */ []));
96
- minLength = input(1, /* @ts-ignore */
97
- ...(ngDevMode ? [{ debugName: "minLength" }] : /* istanbul ignore next */ []));
98
- panelMaxHeight = input('16rem', /* @ts-ignore */
99
- ...(ngDevMode ? [{ debugName: "panelMaxHeight" }] : /* istanbul ignore next */ []));
100
- invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
101
- disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
102
- readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
103
- required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
104
- fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
105
- clearable = input(false, { ...(ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
106
- dropdown = input(false, { ...(ngDevMode ? { debugName: "dropdown" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
107
- completeOnFocus = input(false, { ...(ngDevMode ? { debugName: "completeOnFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
108
- forceSelection = input(false, { ...(ngDevMode ? { debugName: "forceSelection" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
109
- autoHighlight = input(true, { ...(ngDevMode ? { debugName: "autoHighlight" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
110
- grouped = input(false, { ...(ngDevMode ? { debugName: "grouped" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
111
- loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
112
- valueInput = output();
113
- completed = output();
114
- selected = output();
115
- cleared = output();
116
- opened = output();
117
- closed = output();
118
- focused = output();
119
- blurred = output();
120
- touch = output();
121
- optionTemplate = contentChild(AerisAutoCompleteOptionTemplate, /* @ts-ignore */
122
- ...(ngDevMode ? [{ debugName: "optionTemplate" }] : /* istanbul ignore next */ []));
123
- groupTemplate = contentChild(AerisAutoCompleteGroupTemplate, /* @ts-ignore */
124
- ...(ngDevMode ? [{ debugName: "groupTemplate" }] : /* istanbul ignore next */ []));
125
- emptyTemplate = contentChild(AerisAutoCompleteEmptyTemplate, /* @ts-ignore */
126
- ...(ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []));
127
- loadingTemplate = contentChild(AerisAutoCompleteLoadingTemplate, /* @ts-ignore */
128
- ...(ngDevMode ? [{ debugName: "loadingTemplate" }] : /* istanbul ignore next */ []));
129
- panelId = `${this.generatedId}-panel`;
130
- resolvedInputId = computed(() => this.inputId() || this.generatedId, /* @ts-ignore */
131
- ...(ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []));
132
- open = computed(() => this.panelOpen(), /* @ts-ignore */
133
- ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
134
- effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), /* @ts-ignore */
135
- ...(ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []));
136
- showClearButton = computed(() => this.clearable() &&
137
- this.value().length > 0 &&
138
- !this.effectiveDisabled() &&
139
- !this.readonly(), /* @ts-ignore */
140
- ...(ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []));
141
- filteredOptions = computed(() => {
142
- const query = this.value().trim();
143
- if (!this.panelOpen() || (!this.completeOnFocus() && query.length < this.minLength())) {
144
- return [];
145
- }
146
- return this.suggestions().filter((option) => this.matchesOption(option, query));
147
- }, /* @ts-ignore */
148
- ...(ngDevMode ? [{ debugName: "filteredOptions" }] : /* istanbul ignore next */ []));
149
- optionGroups = computed(() => {
150
- const groups = new Map();
151
- for (const option of this.filteredOptions()) {
152
- const group = option.group || 'Options';
153
- groups.set(group, [...(groups.get(group) ?? []), option]);
154
- }
155
- return [...groups.entries()].map(([label, options]) => ({ label, options }));
156
- }, /* @ts-ignore */
157
- ...(ngDevMode ? [{ debugName: "optionGroups" }] : /* istanbul ignore next */ []));
158
- activeOptionId = computed(() => {
159
- const active = this.activeValue();
160
- return active ? this.optionId(active) : null;
161
- }, /* @ts-ignore */
162
- ...(ngDevMode ? [{ debugName: "activeOptionId" }] : /* istanbul ignore next */ []));
163
- writeValue(value) {
164
- this.value.set(typeof value === 'string' ? value : value == null ? '' : String(value));
165
- }
166
- registerOnChange(callback) {
167
- this.onChange = callback;
168
- }
169
- registerOnTouched(callback) {
170
- this.onTouched = callback;
171
- }
172
- setDisabledState(disabled) {
173
- this.formDisabled.set(disabled);
174
- }
175
- focus(options) {
176
- this.inputElement()?.nativeElement.focus(options);
177
- }
178
- openPanel(event) {
179
- if (this.effectiveDisabled() || this.readonly())
180
- return;
181
- if (!this.panelOpen()) {
182
- this.panelOpen.set(true);
183
- this.opened.emit();
184
- }
185
- this.completed.emit({ originalEvent: event ?? new Event('complete'), query: this.value() });
186
- this.setInitialActiveOption();
187
- }
188
- closePanel() {
189
- if (!this.panelOpen())
190
- return;
191
- this.panelOpen.set(false);
192
- this.activeValue.set(null);
193
- this.closed.emit();
194
- }
195
- togglePanel(event) {
196
- event.preventDefault();
197
- this.focus();
198
- if (this.panelOpen()) {
199
- this.closePanel();
200
- }
201
- else {
202
- this.openPanel(event);
203
- }
204
- }
205
- clear() {
206
- if (this.effectiveDisabled() || this.readonly())
207
- return;
208
- this.setValue('');
209
- this.activeValue.set(null);
210
- this.cleared.emit();
211
- this.closePanel();
212
- this.focus();
213
- }
214
- reset() {
215
- this.setValue('');
216
- this.closePanel();
217
- }
218
- handleInput(event) {
219
- const query = event.target.value;
220
- this.setValue(query);
221
- this.openPanel(event);
222
- }
223
- handleInputClick() {
224
- if (this.completeOnFocus() || this.dropdown())
225
- this.openPanel();
226
- }
227
- handleFocus(event) {
228
- this.focused.emit(event);
229
- if (this.suppressNextFocusOpen) {
230
- this.suppressNextFocusOpen = false;
231
- return;
232
- }
233
- if (this.completeOnFocus())
234
- this.openPanel(event);
235
- }
236
- handleBlur(event) {
237
- this.applyForceSelection();
238
- this.touch.emit();
239
- this.onTouched();
240
- this.blurred.emit(event);
241
- }
242
- handleFocusOut(event) {
243
- const nextTarget = event.relatedTarget;
244
- const currentTarget = event.currentTarget;
245
- if (!nextTarget || !currentTarget.contains(nextTarget)) {
246
- this.closePanel();
247
- }
248
- }
249
- handleInputKeydown(event) {
250
- switch (event.key) {
251
- case 'ArrowDown':
252
- event.preventDefault();
253
- this.openPanel(event);
254
- this.moveActive(1);
255
- break;
256
- case 'ArrowUp':
257
- event.preventDefault();
258
- this.openPanel(event);
259
- this.moveActive(-1);
260
- break;
261
- case 'Home':
262
- if (this.panelOpen()) {
263
- event.preventDefault();
264
- this.setBoundaryActive('first');
265
- }
266
- break;
267
- case 'End':
268
- if (this.panelOpen()) {
269
- event.preventDefault();
270
- this.setBoundaryActive('last');
271
- }
272
- break;
273
- case 'Enter':
274
- if (this.panelOpen() && this.activeValue()) {
275
- event.preventDefault();
276
- const active = this.enabledOptions().find((option) => option.value === this.activeValue());
277
- if (active)
278
- this.selectOption(active, event);
279
- }
280
- break;
281
- case 'Escape':
282
- if (this.panelOpen()) {
283
- event.preventDefault();
284
- this.closePanel();
285
- }
286
- break;
287
- default:
288
- break;
289
- }
290
- }
291
- selectOption(option, originalEvent) {
292
- if (option.disabled || this.effectiveDisabled() || this.readonly())
293
- return;
294
- this.setValue(option.value);
295
- this.selected.emit({ originalEvent, value: option.value, option });
296
- this.closePanel();
297
- this.suppressNextFocusOpen = true;
298
- this.focus();
299
- }
300
- optionId(value) {
301
- return `${this.panelId}-${this.sanitizeId(value)}`;
302
- }
303
- isSelected(option) {
304
- return this.value() === option.value;
305
- }
306
- isActive(option) {
307
- return this.activeValue() === option.value;
308
- }
309
- setValue(value) {
310
- if (this.value() === value)
311
- return;
312
- this.value.set(value);
313
- this.valueInput.emit(value);
314
- this.onChange(value);
315
- }
316
- enabledOptions() {
317
- return this.filteredOptions().filter((option) => !option.disabled);
318
- }
319
- setInitialActiveOption() {
320
- const options = this.enabledOptions();
321
- if (!this.autoHighlight() || options.length === 0) {
322
- this.activeValue.set(null);
323
- return;
324
- }
325
- const selected = options.find((option) => option.value === this.value());
326
- this.activeValue.set((selected ?? options[0]).value);
327
- }
328
- moveActive(direction) {
329
- const options = this.enabledOptions();
330
- if (options.length === 0) {
331
- this.activeValue.set(null);
332
- return;
333
- }
334
- const currentIndex = options.findIndex((option) => option.value === this.activeValue());
335
- const nextIndex = currentIndex < 0
336
- ? direction > 0
337
- ? 0
338
- : options.length - 1
339
- : (currentIndex + direction + options.length) % options.length;
340
- this.activeValue.set(options[nextIndex]?.value ?? null);
341
- }
342
- setBoundaryActive(boundary) {
343
- const options = this.enabledOptions();
344
- this.activeValue.set(boundary === 'first'
345
- ? options[0]?.value ?? null
346
- : options.at(-1)?.value ?? null);
347
- }
348
- matchesOption(option, query) {
349
- if (query.length === 0)
350
- return true;
351
- const candidate = `${option.label} ${option.value} ${option.description ?? ''} ${option.group ?? ''}`
352
- .trim()
353
- .toLocaleLowerCase();
354
- const normalizedQuery = query.toLocaleLowerCase();
355
- switch (this.filterMatchMode()) {
356
- case 'startsWith':
357
- return candidate.startsWith(normalizedQuery);
358
- case 'endsWith':
359
- return candidate.endsWith(normalizedQuery);
360
- case 'equals':
361
- return candidate === normalizedQuery;
362
- case 'contains':
363
- return candidate.includes(normalizedQuery);
364
- default:
365
- return false;
366
- }
367
- }
368
- applyForceSelection() {
369
- if (!this.forceSelection() || this.value().trim().length === 0)
370
- return;
371
- const normalizedValue = this.value().trim().toLocaleLowerCase();
372
- const match = this.suggestions().find((option) => option.value.toLocaleLowerCase() === normalizedValue ||
373
- option.label.toLocaleLowerCase() === normalizedValue);
374
- if (!match) {
375
- this.setValue('');
376
- }
377
- else if (match.value !== this.value()) {
378
- this.setValue(match.value);
379
- }
380
- }
381
- sanitizeId(value) {
382
- const sanitized = value.toLocaleLowerCase().replace(/[^a-z0-9_-]+/g, '-');
383
- return sanitized || 'option';
384
- }
385
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisAutoComplete, deps: [], target: i0.ɵɵFactoryTarget.Component });
386
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisAutoComplete, isStandalone: true, selector: "aeris-auto-complete", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, suggestions: { classPropertyName: "suggestions", publicName: "suggestions", 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 }, 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 }, listboxAriaLabel: { classPropertyName: "listboxAriaLabel", publicName: "listboxAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, dropdownAriaLabel: { classPropertyName: "dropdownAriaLabel", publicName: "dropdownAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, clearButtonAriaLabel: { classPropertyName: "clearButtonAriaLabel", publicName: "clearButtonAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, loadingMessage: { classPropertyName: "loadingMessage", publicName: "loadingMessage", 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 }, filterMatchMode: { classPropertyName: "filterMatchMode", publicName: "filterMatchMode", isSignal: true, isRequired: false, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null }, panelMaxHeight: { classPropertyName: "panelMaxHeight", publicName: "panelMaxHeight", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", 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 }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, clearable: { classPropertyName: "clearable", publicName: "clearable", isSignal: true, isRequired: false, transformFunction: null }, dropdown: { classPropertyName: "dropdown", publicName: "dropdown", isSignal: true, isRequired: false, transformFunction: null }, completeOnFocus: { classPropertyName: "completeOnFocus", publicName: "completeOnFocus", isSignal: true, isRequired: false, transformFunction: null }, forceSelection: { classPropertyName: "forceSelection", publicName: "forceSelection", isSignal: true, isRequired: false, transformFunction: null }, autoHighlight: { classPropertyName: "autoHighlight", publicName: "autoHighlight", isSignal: true, isRequired: false, transformFunction: null }, grouped: { classPropertyName: "grouped", publicName: "grouped", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valueInput: "valueInput", completed: "completed", selected: "selected", cleared: "cleared", opened: "opened", closed: "closed", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-fluid": "fluid() || null" } }, providers: [
387
- {
388
- provide: NG_VALUE_ACCESSOR,
389
- useExisting: forwardRef(() => AerisAutoComplete),
390
- multi: true,
391
- },
392
- ], queries: [{ propertyName: "optionTemplate", first: true, predicate: AerisAutoCompleteOptionTemplate, descendants: true, isSignal: true }, { propertyName: "groupTemplate", first: true, predicate: AerisAutoCompleteGroupTemplate, descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: AerisAutoCompleteEmptyTemplate, descendants: true, isSignal: true }, { propertyName: "loadingTemplate", first: true, predicate: AerisAutoCompleteLoadingTemplate, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["textInput"], descendants: true, isSignal: true }], ngImport: i0, template: `
129
+ var AerisAutoComplete = class AerisAutoComplete {
130
+ clearIconTemplate = input(...ngDevMode ? [void 0, { debugName: "clearIconTemplate" }] : /* istanbul ignore next */ []);
131
+ dropdownIconTemplate = input(...ngDevMode ? [void 0, { debugName: "dropdownIconTemplate" }] : /* istanbul ignore next */ []);
132
+ dismissOverlay = () => {
133
+ this.closePanel();
134
+ return true;
135
+ };
136
+ controlElement = viewChild("control", ...ngDevMode ? [{ debugName: "controlElement" }] : /* istanbul ignore next */ []);
137
+ inputElement = viewChild("textInput", ...ngDevMode ? [{ debugName: "inputElement" }] : /* istanbul ignore next */ []);
138
+ suggestionsPanel = viewChild("suggestionsPanel", ...ngDevMode ? [{ debugName: "suggestionsPanel" }] : /* istanbul ignore next */ []);
139
+ panelPortal = viewChild(ɵAerisAppendTo, ...ngDevMode ? [{ debugName: "panelPortal" }] : /* istanbul ignore next */ []);
140
+ generatedId = `aeris-auto-complete-${++nextAutoCompleteId}`;
141
+ formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
142
+ activeValue = signal(null, ...ngDevMode ? [{ debugName: "activeValue" }] : /* istanbul ignore next */ []);
143
+ panelOpen = signal(false, ...ngDevMode ? [{ debugName: "panelOpen" }] : /* istanbul ignore next */ []);
144
+ suppressNextFocusOpen = false;
145
+ onChange = () => void 0;
146
+ onTouched = () => void 0;
147
+ value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
148
+ suggestions = input([], ...ngDevMode ? [{ debugName: "suggestions" }] : /* istanbul ignore next */ []);
149
+ inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
150
+ name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
151
+ placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
152
+ autocomplete = input("off", ...ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []);
153
+ ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
154
+ ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
155
+ ariaDescribedBy = input(...ngDevMode ? [void 0, { debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
156
+ listboxAriaLabel = input("Suggestions", ...ngDevMode ? [{ debugName: "listboxAriaLabel" }] : /* istanbul ignore next */ []);
157
+ dropdownAriaLabel = input("Show suggestions", ...ngDevMode ? [{ debugName: "dropdownAriaLabel" }] : /* istanbul ignore next */ []);
158
+ clearButtonAriaLabel = input("Clear value", ...ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []);
159
+ emptyMessage = input("No suggestions found", ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
160
+ loadingMessage = input("Loading suggestions", ...ngDevMode ? [{ debugName: "loadingMessage" }] : /* istanbul ignore next */ []);
161
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
162
+ appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
163
+ filterMatchMode = input("contains", ...ngDevMode ? [{ debugName: "filterMatchMode" }] : /* istanbul ignore next */ []);
164
+ minLength = input(1, ...ngDevMode ? [{ debugName: "minLength" }] : /* istanbul ignore next */ []);
165
+ panelMaxHeight = input("16rem", ...ngDevMode ? [{ debugName: "panelMaxHeight" }] : /* istanbul ignore next */ []);
166
+ appendTo = input(...ngDevMode ? [void 0, { debugName: "appendTo" }] : /* istanbul ignore next */ []);
167
+ viewportMargin = input(8, ...ngDevMode ? [{ debugName: "viewportMargin" }] : /* istanbul ignore next */ []);
168
+ invalid = input(false, {
169
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
170
+ transform: booleanAttribute
171
+ });
172
+ touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
173
+ displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
174
+ disabled = input(false, {
175
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
176
+ transform: booleanAttribute
177
+ });
178
+ readonly = input(false, {
179
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
180
+ transform: booleanAttribute
181
+ });
182
+ required = input(false, {
183
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
184
+ transform: booleanAttribute
185
+ });
186
+ fluid = input(false, {
187
+ ...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
188
+ transform: booleanAttribute
189
+ });
190
+ clearable = input(false, {
191
+ ...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
192
+ transform: booleanAttribute
193
+ });
194
+ dropdown = input(false, {
195
+ ...ngDevMode ? { debugName: "dropdown" } : /* istanbul ignore next */ {},
196
+ transform: booleanAttribute
197
+ });
198
+ completeOnFocus = input(false, {
199
+ ...ngDevMode ? { debugName: "completeOnFocus" } : /* istanbul ignore next */ {},
200
+ transform: booleanAttribute
201
+ });
202
+ forceSelection = input(false, {
203
+ ...ngDevMode ? { debugName: "forceSelection" } : /* istanbul ignore next */ {},
204
+ transform: booleanAttribute
205
+ });
206
+ autoHighlight = input(true, {
207
+ ...ngDevMode ? { debugName: "autoHighlight" } : /* istanbul ignore next */ {},
208
+ transform: booleanAttribute
209
+ });
210
+ grouped = input(false, {
211
+ ...ngDevMode ? { debugName: "grouped" } : /* istanbul ignore next */ {},
212
+ transform: booleanAttribute
213
+ });
214
+ loading = input(false, {
215
+ ...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
216
+ transform: booleanAttribute
217
+ });
218
+ completed = output();
219
+ selected = output();
220
+ cleared = output();
221
+ opened = output();
222
+ closed = output();
223
+ focused = output();
224
+ blurred = output();
225
+ touch = output();
226
+ optionTemplate = contentChild(AerisAutoCompleteOptionTemplate, ...ngDevMode ? [{ debugName: "optionTemplate" }] : /* istanbul ignore next */ []);
227
+ groupTemplate = contentChild(AerisAutoCompleteGroupTemplate, ...ngDevMode ? [{ debugName: "groupTemplate" }] : /* istanbul ignore next */ []);
228
+ emptyTemplate = contentChild(AerisAutoCompleteEmptyTemplate, ...ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []);
229
+ loadingTemplate = contentChild(AerisAutoCompleteLoadingTemplate, ...ngDevMode ? [{ debugName: "loadingTemplate" }] : /* istanbul ignore next */ []);
230
+ panelId = `${this.generatedId}-panel`;
231
+ resolvedInputId = computed(() => this.inputId() || this.generatedId, ...ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []);
232
+ open = computed(() => this.panelOpen(), ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
233
+ effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
234
+ showClearButton = computed(() => this.clearable() && this.value().length > 0 && !this.effectiveDisabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []);
235
+ filteredOptions = computed(() => {
236
+ const query = this.value().trim();
237
+ if (!this.panelOpen() || !this.completeOnFocus() && query.length < this.minLength()) return [];
238
+ return this.suggestions().filter((option) => this.matchesOption(option, query));
239
+ }, ...ngDevMode ? [{ debugName: "filteredOptions" }] : /* istanbul ignore next */ []);
240
+ optionGroups = computed(() => {
241
+ const groups = /* @__PURE__ */ new Map();
242
+ for (const option of this.filteredOptions()) {
243
+ const group = option.group || "Options";
244
+ groups.set(group, [...groups.get(group) ?? [], option]);
245
+ }
246
+ return [...groups.entries()].map(([label, options]) => ({
247
+ label,
248
+ options
249
+ }));
250
+ }, ...ngDevMode ? [{ debugName: "optionGroups" }] : /* istanbul ignore next */ []);
251
+ activeOptionId = computed(() => {
252
+ const active = this.activeValue();
253
+ return active ? this.optionId(active) : null;
254
+ }, ...ngDevMode ? [{ debugName: "activeOptionId" }] : /* istanbul ignore next */ []);
255
+ writeValue(value) {
256
+ this.value.set(typeof value === "string" ? value : value == null ? "" : String(value));
257
+ }
258
+ registerOnChange(callback) {
259
+ this.onChange = callback;
260
+ }
261
+ registerOnTouched(callback) {
262
+ this.onTouched = callback;
263
+ }
264
+ setDisabledState(disabled) {
265
+ this.formDisabled.set(disabled);
266
+ }
267
+ focus(options) {
268
+ this.inputElement()?.nativeElement.focus(options);
269
+ }
270
+ openPanel(event) {
271
+ if (this.effectiveDisabled() || this.readonly()) return;
272
+ if (!this.panelOpen()) {
273
+ this.panelOpen.set(true);
274
+ this.opened.emit();
275
+ }
276
+ this.completed.emit({
277
+ originalEvent: event ?? new Event("complete"),
278
+ query: this.value()
279
+ });
280
+ this.setInitialActiveOption();
281
+ }
282
+ closePanel() {
283
+ if (!this.panelOpen()) return;
284
+ this.panelPortal()?.restore();
285
+ this.panelOpen.set(false);
286
+ this.activeValue.set(null);
287
+ this.closed.emit();
288
+ }
289
+ togglePanel(event) {
290
+ event.preventDefault();
291
+ this.focus();
292
+ if (this.panelOpen()) this.closePanel();
293
+ else this.openPanel(event);
294
+ }
295
+ clear() {
296
+ if (this.effectiveDisabled() || this.readonly()) return;
297
+ this.setValue("");
298
+ this.activeValue.set(null);
299
+ this.cleared.emit();
300
+ this.closePanel();
301
+ this.focus();
302
+ }
303
+ reset() {
304
+ this.setValue("");
305
+ this.closePanel();
306
+ }
307
+ handleInput(event) {
308
+ const query = event.target.value;
309
+ this.setValue(query);
310
+ this.openPanel(event);
311
+ }
312
+ handleInputClick() {
313
+ if (this.completeOnFocus() || this.dropdown()) this.openPanel();
314
+ }
315
+ handleFocus(event) {
316
+ this.focused.emit(event);
317
+ if (this.suppressNextFocusOpen) {
318
+ this.suppressNextFocusOpen = false;
319
+ return;
320
+ }
321
+ if (this.completeOnFocus()) this.openPanel(event);
322
+ }
323
+ handleBlur(event) {
324
+ this.applyForceSelection();
325
+ this.touch.emit();
326
+ this.onTouched();
327
+ this.blurred.emit(event);
328
+ }
329
+ handleFocusOut(event) {
330
+ const nextTarget = event.relatedTarget;
331
+ const currentTarget = event.currentTarget;
332
+ if (!nextTarget || !currentTarget.contains(nextTarget) && !this.suggestionsPanel()?.nativeElement.contains(nextTarget)) this.closePanel();
333
+ }
334
+ handleInputKeydown(event) {
335
+ switch (event.key) {
336
+ case "ArrowDown":
337
+ event.preventDefault();
338
+ this.openPanel(event);
339
+ this.moveActive(1);
340
+ break;
341
+ case "ArrowUp":
342
+ event.preventDefault();
343
+ this.openPanel(event);
344
+ this.moveActive(-1);
345
+ break;
346
+ case "Home":
347
+ if (this.panelOpen()) {
348
+ event.preventDefault();
349
+ this.setBoundaryActive("first");
350
+ }
351
+ break;
352
+ case "End":
353
+ if (this.panelOpen()) {
354
+ event.preventDefault();
355
+ this.setBoundaryActive("last");
356
+ }
357
+ break;
358
+ case "Enter":
359
+ if (this.panelOpen() && this.activeValue()) {
360
+ event.preventDefault();
361
+ const active = this.enabledOptions().find((option) => option.value === this.activeValue());
362
+ if (active) this.selectOption(active, event);
363
+ }
364
+ break;
365
+ case "Escape": if (this.panelOpen()) {
366
+ event.preventDefault();
367
+ this.closePanel();
368
+ }
369
+ }
370
+ }
371
+ selectOption(option, originalEvent) {
372
+ if (option.disabled || this.effectiveDisabled() || this.readonly()) return;
373
+ this.setValue(option.value);
374
+ this.selected.emit({
375
+ originalEvent,
376
+ value: option.value,
377
+ option
378
+ });
379
+ this.closePanel();
380
+ this.suppressNextFocusOpen = true;
381
+ this.focus();
382
+ }
383
+ optionId(value) {
384
+ return `${this.panelId}-${this.sanitizeId(value)}`;
385
+ }
386
+ isSelected(option) {
387
+ return this.value() === option.value;
388
+ }
389
+ isActive(option) {
390
+ return this.activeValue() === option.value;
391
+ }
392
+ setValue(value) {
393
+ if (this.value() === value) return;
394
+ this.value.set(value);
395
+ this.onChange(value);
396
+ }
397
+ enabledOptions() {
398
+ return this.filteredOptions().filter((option) => !option.disabled);
399
+ }
400
+ setInitialActiveOption() {
401
+ const options = this.enabledOptions();
402
+ if (!this.autoHighlight() || options.length === 0) {
403
+ this.activeValue.set(null);
404
+ return;
405
+ }
406
+ const selected = options.find((option) => option.value === this.value());
407
+ this.activeValue.set((selected ?? options[0]).value);
408
+ }
409
+ moveActive(direction) {
410
+ const options = this.enabledOptions();
411
+ if (options.length === 0) {
412
+ this.activeValue.set(null);
413
+ return;
414
+ }
415
+ const currentIndex = options.findIndex((option) => option.value === this.activeValue());
416
+ const nextIndex = currentIndex < 0 ? direction > 0 ? 0 : options.length - 1 : (currentIndex + direction + options.length) % options.length;
417
+ this.activeValue.set(options[nextIndex]?.value ?? null);
418
+ }
419
+ setBoundaryActive(boundary) {
420
+ const options = this.enabledOptions();
421
+ this.activeValue.set(boundary === "first" ? options[0]?.value ?? null : options.at(-1)?.value ?? null);
422
+ }
423
+ matchesOption(option, query) {
424
+ if (query.length === 0) return true;
425
+ const candidate = `${option.label} ${option.value} ${option.description ?? ""} ${option.group ?? ""}`.trim().toLocaleLowerCase();
426
+ const normalizedQuery = query.toLocaleLowerCase();
427
+ switch (this.filterMatchMode()) {
428
+ case "startsWith": return candidate.startsWith(normalizedQuery);
429
+ case "endsWith": return candidate.endsWith(normalizedQuery);
430
+ case "equals": return candidate === normalizedQuery;
431
+ case "contains": return candidate.includes(normalizedQuery);
432
+ default: return false;
433
+ }
434
+ }
435
+ applyForceSelection() {
436
+ if (!this.forceSelection() || this.value().trim().length === 0) return;
437
+ const normalizedValue = this.value().trim().toLocaleLowerCase();
438
+ const match = this.suggestions().find((option) => option.value.toLocaleLowerCase() === normalizedValue || option.label.toLocaleLowerCase() === normalizedValue);
439
+ if (!match) this.setValue("");
440
+ else if (match.value !== this.value()) this.setValue(match.value);
441
+ }
442
+ sanitizeId(value) {
443
+ const readable = value.toLowerCase().replace(/[^a-z0-9_-]+/g, "-");
444
+ const exact = Array.from(value, (character) => (character.codePointAt(0) ?? 0).toString(16)).join("-");
445
+ return `${readable || "option"}--${exact || "empty"}`;
446
+ }
447
+ preservePointerFocus(event) {
448
+ if (event.pointerType === "mouse") event.preventDefault();
449
+ }
450
+ static ɵfac = i0.ɵɵngDeclareFactory({
451
+ minVersion: "12.0.0",
452
+ version: "22.2.3",
453
+ ngImport: i0,
454
+ type: AerisAutoComplete,
455
+ deps: [],
456
+ target: i0.ɵɵFactoryTarget.Component
457
+ });
458
+ static ɵcmp = i0.ɵɵngDeclareComponent({
459
+ minVersion: "17.0.0",
460
+ version: "22.2.3",
461
+ type: AerisAutoComplete,
462
+ isStandalone: true,
463
+ selector: "aeris-auto-complete",
464
+ inputs: {
465
+ clearIconTemplate: {
466
+ classPropertyName: "clearIconTemplate",
467
+ publicName: "clearIconTemplate",
468
+ isSignal: true,
469
+ isRequired: false,
470
+ transformFunction: null
471
+ },
472
+ dropdownIconTemplate: {
473
+ classPropertyName: "dropdownIconTemplate",
474
+ publicName: "dropdownIconTemplate",
475
+ isSignal: true,
476
+ isRequired: false,
477
+ transformFunction: null
478
+ },
479
+ value: {
480
+ classPropertyName: "value",
481
+ publicName: "value",
482
+ isSignal: true,
483
+ isRequired: false,
484
+ transformFunction: null
485
+ },
486
+ suggestions: {
487
+ classPropertyName: "suggestions",
488
+ publicName: "suggestions",
489
+ isSignal: true,
490
+ isRequired: false,
491
+ transformFunction: null
492
+ },
493
+ inputId: {
494
+ classPropertyName: "inputId",
495
+ publicName: "inputId",
496
+ isSignal: true,
497
+ isRequired: false,
498
+ transformFunction: null
499
+ },
500
+ name: {
501
+ classPropertyName: "name",
502
+ publicName: "name",
503
+ isSignal: true,
504
+ isRequired: false,
505
+ transformFunction: null
506
+ },
507
+ placeholder: {
508
+ classPropertyName: "placeholder",
509
+ publicName: "placeholder",
510
+ isSignal: true,
511
+ isRequired: false,
512
+ transformFunction: null
513
+ },
514
+ autocomplete: {
515
+ classPropertyName: "autocomplete",
516
+ publicName: "autocomplete",
517
+ isSignal: true,
518
+ isRequired: false,
519
+ transformFunction: null
520
+ },
521
+ ariaLabel: {
522
+ classPropertyName: "ariaLabel",
523
+ publicName: "ariaLabel",
524
+ isSignal: true,
525
+ isRequired: false,
526
+ transformFunction: null
527
+ },
528
+ ariaLabelledBy: {
529
+ classPropertyName: "ariaLabelledBy",
530
+ publicName: "ariaLabelledBy",
531
+ isSignal: true,
532
+ isRequired: false,
533
+ transformFunction: null
534
+ },
535
+ ariaDescribedBy: {
536
+ classPropertyName: "ariaDescribedBy",
537
+ publicName: "ariaDescribedBy",
538
+ isSignal: true,
539
+ isRequired: false,
540
+ transformFunction: null
541
+ },
542
+ listboxAriaLabel: {
543
+ classPropertyName: "listboxAriaLabel",
544
+ publicName: "listboxAriaLabel",
545
+ isSignal: true,
546
+ isRequired: false,
547
+ transformFunction: null
548
+ },
549
+ dropdownAriaLabel: {
550
+ classPropertyName: "dropdownAriaLabel",
551
+ publicName: "dropdownAriaLabel",
552
+ isSignal: true,
553
+ isRequired: false,
554
+ transformFunction: null
555
+ },
556
+ clearButtonAriaLabel: {
557
+ classPropertyName: "clearButtonAriaLabel",
558
+ publicName: "clearButtonAriaLabel",
559
+ isSignal: true,
560
+ isRequired: false,
561
+ transformFunction: null
562
+ },
563
+ emptyMessage: {
564
+ classPropertyName: "emptyMessage",
565
+ publicName: "emptyMessage",
566
+ isSignal: true,
567
+ isRequired: false,
568
+ transformFunction: null
569
+ },
570
+ loadingMessage: {
571
+ classPropertyName: "loadingMessage",
572
+ publicName: "loadingMessage",
573
+ isSignal: true,
574
+ isRequired: false,
575
+ transformFunction: null
576
+ },
577
+ size: {
578
+ classPropertyName: "size",
579
+ publicName: "size",
580
+ isSignal: true,
581
+ isRequired: false,
582
+ transformFunction: null
583
+ },
584
+ appearance: {
585
+ classPropertyName: "appearance",
586
+ publicName: "appearance",
587
+ isSignal: true,
588
+ isRequired: false,
589
+ transformFunction: null
590
+ },
591
+ filterMatchMode: {
592
+ classPropertyName: "filterMatchMode",
593
+ publicName: "filterMatchMode",
594
+ isSignal: true,
595
+ isRequired: false,
596
+ transformFunction: null
597
+ },
598
+ minLength: {
599
+ classPropertyName: "minLength",
600
+ publicName: "minLength",
601
+ isSignal: true,
602
+ isRequired: false,
603
+ transformFunction: null
604
+ },
605
+ panelMaxHeight: {
606
+ classPropertyName: "panelMaxHeight",
607
+ publicName: "panelMaxHeight",
608
+ isSignal: true,
609
+ isRequired: false,
610
+ transformFunction: null
611
+ },
612
+ appendTo: {
613
+ classPropertyName: "appendTo",
614
+ publicName: "appendTo",
615
+ isSignal: true,
616
+ isRequired: false,
617
+ transformFunction: null
618
+ },
619
+ viewportMargin: {
620
+ classPropertyName: "viewportMargin",
621
+ publicName: "viewportMargin",
622
+ isSignal: true,
623
+ isRequired: false,
624
+ transformFunction: null
625
+ },
626
+ invalid: {
627
+ classPropertyName: "invalid",
628
+ publicName: "invalid",
629
+ isSignal: true,
630
+ isRequired: false,
631
+ transformFunction: null
632
+ },
633
+ touched: {
634
+ classPropertyName: "touched",
635
+ publicName: "touched",
636
+ isSignal: true,
637
+ isRequired: false,
638
+ transformFunction: null
639
+ },
640
+ disabled: {
641
+ classPropertyName: "disabled",
642
+ publicName: "disabled",
643
+ isSignal: true,
644
+ isRequired: false,
645
+ transformFunction: null
646
+ },
647
+ readonly: {
648
+ classPropertyName: "readonly",
649
+ publicName: "readonly",
650
+ isSignal: true,
651
+ isRequired: false,
652
+ transformFunction: null
653
+ },
654
+ required: {
655
+ classPropertyName: "required",
656
+ publicName: "required",
657
+ isSignal: true,
658
+ isRequired: false,
659
+ transformFunction: null
660
+ },
661
+ fluid: {
662
+ classPropertyName: "fluid",
663
+ publicName: "fluid",
664
+ isSignal: true,
665
+ isRequired: false,
666
+ transformFunction: null
667
+ },
668
+ clearable: {
669
+ classPropertyName: "clearable",
670
+ publicName: "clearable",
671
+ isSignal: true,
672
+ isRequired: false,
673
+ transformFunction: null
674
+ },
675
+ dropdown: {
676
+ classPropertyName: "dropdown",
677
+ publicName: "dropdown",
678
+ isSignal: true,
679
+ isRequired: false,
680
+ transformFunction: null
681
+ },
682
+ completeOnFocus: {
683
+ classPropertyName: "completeOnFocus",
684
+ publicName: "completeOnFocus",
685
+ isSignal: true,
686
+ isRequired: false,
687
+ transformFunction: null
688
+ },
689
+ forceSelection: {
690
+ classPropertyName: "forceSelection",
691
+ publicName: "forceSelection",
692
+ isSignal: true,
693
+ isRequired: false,
694
+ transformFunction: null
695
+ },
696
+ autoHighlight: {
697
+ classPropertyName: "autoHighlight",
698
+ publicName: "autoHighlight",
699
+ isSignal: true,
700
+ isRequired: false,
701
+ transformFunction: null
702
+ },
703
+ grouped: {
704
+ classPropertyName: "grouped",
705
+ publicName: "grouped",
706
+ isSignal: true,
707
+ isRequired: false,
708
+ transformFunction: null
709
+ },
710
+ loading: {
711
+ classPropertyName: "loading",
712
+ publicName: "loading",
713
+ isSignal: true,
714
+ isRequired: false,
715
+ transformFunction: null
716
+ }
717
+ },
718
+ outputs: {
719
+ value: "valueChange",
720
+ completed: "completed",
721
+ selected: "selected",
722
+ cleared: "cleared",
723
+ opened: "opened",
724
+ closed: "closed",
725
+ focused: "focused",
726
+ blurred: "blurred",
727
+ touch: "touch"
728
+ },
729
+ host: { properties: { "attr.data-fluid": "fluid() || null" } },
730
+ providers: [{
731
+ provide: NG_VALUE_ACCESSOR,
732
+ useExisting: forwardRef(() => AerisAutoComplete),
733
+ multi: true
734
+ }],
735
+ queries: [
736
+ {
737
+ propertyName: "optionTemplate",
738
+ first: true,
739
+ predicate: AerisAutoCompleteOptionTemplate,
740
+ descendants: true,
741
+ isSignal: true
742
+ },
743
+ {
744
+ propertyName: "groupTemplate",
745
+ first: true,
746
+ predicate: AerisAutoCompleteGroupTemplate,
747
+ descendants: true,
748
+ isSignal: true
749
+ },
750
+ {
751
+ propertyName: "emptyTemplate",
752
+ first: true,
753
+ predicate: AerisAutoCompleteEmptyTemplate,
754
+ descendants: true,
755
+ isSignal: true
756
+ },
757
+ {
758
+ propertyName: "loadingTemplate",
759
+ first: true,
760
+ predicate: AerisAutoCompleteLoadingTemplate,
761
+ descendants: true,
762
+ isSignal: true
763
+ }
764
+ ],
765
+ viewQueries: [
766
+ {
767
+ propertyName: "controlElement",
768
+ first: true,
769
+ predicate: ["control"],
770
+ descendants: true,
771
+ isSignal: true
772
+ },
773
+ {
774
+ propertyName: "inputElement",
775
+ first: true,
776
+ predicate: ["textInput"],
777
+ descendants: true,
778
+ isSignal: true
779
+ },
780
+ {
781
+ propertyName: "suggestionsPanel",
782
+ first: true,
783
+ predicate: ["suggestionsPanel"],
784
+ descendants: true,
785
+ isSignal: true
786
+ },
787
+ {
788
+ propertyName: "panelPortal",
789
+ first: true,
790
+ predicate: ɵAerisAppendTo,
791
+ descendants: true,
792
+ isSignal: true
793
+ }
794
+ ],
795
+ ngImport: i0,
796
+ template: `
393
797
  <div
394
798
  class="aeris-auto-complete"
395
799
  [attr.data-size]="size()"
396
800
  [attr.data-appearance]="appearance()"
397
801
  [attr.data-open]="open() || null"
398
- [attr.data-invalid]="invalid() || null"
802
+ [attr.data-invalid]="displayInvalid() || null"
399
803
  [attr.data-disabled]="effectiveDisabled() || null"
400
804
  [attr.data-fluid]="fluid() || null"
401
805
  (focusout)="handleFocusOut($event)"
@@ -404,7 +808,7 @@ class AerisAutoComplete {
404
808
  <input type="hidden" [name]="name()" [value]="value()" />
405
809
  }
406
810
 
407
- <div class="aeris-auto-complete__control">
811
+ <div #control class="aeris-auto-complete__control">
408
812
  <input
409
813
  #textInput
410
814
  class="aeris-auto-complete__input"
@@ -423,9 +827,9 @@ class AerisAutoComplete {
423
827
  [attr.aria-controls]="panelId"
424
828
  [attr.aria-activedescendant]="open() ? activeOptionId() : null"
425
829
  [attr.aria-label]="ariaLabel() || null"
426
- [attr.aria-labelledby]="ariaLabelledby() || null"
427
- [attr.aria-describedby]="ariaDescribedby() || null"
428
- [attr.aria-invalid]="invalid() || null"
830
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
831
+ [attr.aria-describedby]="ariaDescribedBy() || null"
832
+ [attr.aria-invalid]="displayInvalid() || null"
429
833
  [attr.aria-required]="required() || null"
430
834
  (click)="handleInputClick()"
431
835
  (input)="handleInput($event)"
@@ -441,7 +845,13 @@ class AerisAutoComplete {
441
845
  [attr.aria-label]="clearButtonAriaLabel()"
442
846
  (click)="clear()"
443
847
  >
444
- <span aria-hidden="true"></span>
848
+ @if (clearIconTemplate(); as customIcon) {
849
+ <span aria-hidden="true" data-aeris-custom-icon
850
+ ><ng-container [ngTemplateOutlet]="customIcon"
851
+ /></span>
852
+ } @else {
853
+ <span aerisInternalIcon="close" aria-hidden="true"></span>
854
+ }
445
855
  </button>
446
856
  }
447
857
 
@@ -455,22 +865,27 @@ class AerisAutoComplete {
455
865
  [disabled]="effectiveDisabled() || readonly()"
456
866
  (click)="togglePanel($event)"
457
867
  >
458
- <span aria-hidden="true"></span>
868
+ @if (dropdownIconTemplate(); as customIcon) {
869
+ <span aria-hidden="true" data-aeris-custom-icon
870
+ ><ng-container [ngTemplateOutlet]="customIcon"
871
+ /></span>
872
+ } @else {
873
+ <span aerisInternalIcon="chevron" aria-hidden="true"></span>
874
+ }
459
875
  </button>
460
876
  }
461
877
  </div>
462
878
 
463
879
  @if (open()) {
464
- <button
465
- type="button"
466
- class="aeris-auto-complete__dismiss"
467
- tabindex="-1"
468
- aria-hidden="true"
469
- (click)="closePanel()"
470
- ></button>
471
-
472
880
  <div
881
+ #suggestionsPanel
473
882
  class="aeris-auto-complete__panel"
883
+ [aerisInternalAppendTo]="appendTo()"
884
+ [aerisInternalAppendToAnchor]="controlElement()?.nativeElement ?? null"
885
+ [aerisInternalAppendToMatchWidth]="true"
886
+ [aerisInternalAppendToCollisionPadding]="viewportMargin()"
887
+ (aerisInternalAppendToOutside)="closePanel()"
888
+ [aerisInternalAppendToDismiss]="dismissOverlay"
474
889
  [id]="panelId"
475
890
  role="listbox"
476
891
  [attr.aria-label]="listboxAriaLabel()"
@@ -513,12 +928,17 @@ class AerisAutoComplete {
513
928
  [disabled]="option.disabled"
514
929
  [attr.aria-selected]="isSelected(option)"
515
930
  [attr.data-active]="isActive(option) || null"
516
- (mousedown)="$event.preventDefault()"
931
+ (pointerdown)="preservePointerFocus($event)"
517
932
  (click)="selectOption(option, $event)"
518
933
  >
519
934
  <ng-container
520
935
  [ngTemplateOutlet]="optionContent"
521
- [ngTemplateOutletContext]="{ $implicit: option, option, selected: isSelected(option), active: isActive(option) }"
936
+ [ngTemplateOutletContext]="{
937
+ $implicit: option,
938
+ option,
939
+ selected: isSelected(option),
940
+ active: isActive(option),
941
+ }"
522
942
  />
523
943
  </button>
524
944
  }
@@ -533,12 +953,17 @@ class AerisAutoComplete {
533
953
  [disabled]="option.disabled"
534
954
  [attr.aria-selected]="isSelected(option)"
535
955
  [attr.data-active]="isActive(option) || null"
536
- (mousedown)="$event.preventDefault()"
956
+ (pointerdown)="preservePointerFocus($event)"
537
957
  (click)="selectOption(option, $event)"
538
958
  >
539
959
  <ng-container
540
960
  [ngTemplateOutlet]="optionContent"
541
- [ngTemplateOutletContext]="{ $implicit: option, option, selected: isSelected(option), active: isActive(option) }"
961
+ [ngTemplateOutletContext]="{
962
+ $implicit: option,
963
+ option,
964
+ selected: isSelected(option),
965
+ active: isActive(option),
966
+ }"
542
967
  />
543
968
  </button>
544
969
  }
@@ -560,17 +985,68 @@ class AerisAutoComplete {
560
985
  }
561
986
  }
562
987
  </ng-template>
563
- `, isInline: true, styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:inline-block;min-width:12rem;max-width:100%;color:var(--aeris-auto-complete-text, var(--aeris-text, #222222));font:inherit}:host([data-fluid]){width:100%}.aeris-auto-complete{--aeris-auto-complete-height: var(--aeris-control-height, 2.625rem);--aeris-auto-complete-font-size: .875rem;--aeris-auto-complete-padding: var(--aeris-control-padding-x, .75rem);--aeris-auto-complete-density-gap: var(--aeris-density-gap, .5rem);position:relative;width:100%}.aeris-auto-complete[data-size=xs]{--aeris-auto-complete-height: 1.875rem;--aeris-auto-complete-font-size: .75rem;--aeris-auto-complete-padding: .5625rem}.aeris-auto-complete[data-size=sm]{--aeris-auto-complete-height: 2.25rem;--aeris-auto-complete-font-size: .8125rem;--aeris-auto-complete-padding: .6875rem}.aeris-auto-complete[data-size=lg]{--aeris-auto-complete-height: 3rem;--aeris-auto-complete-font-size: .9375rem;--aeris-auto-complete-padding: .875rem}.aeris-auto-complete__control{position:relative}.aeris-auto-complete__input{width:100%;min-height:var(--aeris-auto-complete-height);padding:0 var(--aeris-auto-complete-padding);border:1px solid var(--aeris-auto-complete-border, var(--aeris-border-strong, #c7c9c0));border-radius:var(--aeris-auto-complete-radius, var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem)));background:var(--aeris-auto-complete-background, var(--aeris-surface, #fff));color:inherit;font:inherit;font-size:var(--aeris-auto-complete-font-size);line-height:1.35;outline:0;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.aeris-auto-complete__input::placeholder{color:var(--aeris-auto-complete-placeholder, var(--aeris-text-2, #555555))}.aeris-auto-complete__control:has(.aeris-auto-complete__clear) .aeris-auto-complete__input{padding-right:3.25rem}.aeris-auto-complete__control:has(.aeris-auto-complete__dropdown) .aeris-auto-complete__input{padding-right:3rem}.aeris-auto-complete__control:has(.aeris-auto-complete__clear):has(.aeris-auto-complete__dropdown) .aeris-auto-complete__input{padding-right:5rem}.aeris-auto-complete[data-appearance=filled] .aeris-auto-complete__input{border-color:transparent;background:var(--aeris-auto-complete-filled-background, var(--aeris-surface-2, #f2f0ec))}.aeris-auto-complete__input:hover,.aeris-auto-complete[data-open] .aeris-auto-complete__input{border-color:var(--aeris-auto-complete-hover-border, var(--aeris-focus, #536437))}.aeris-auto-complete__input:focus-visible{border-color:var(--aeris-auto-complete-focus, var(--aeris-focus, #536437));box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-auto-complete-focus, var(--aeris-focus, #536437)) 22%,transparent)}.aeris-auto-complete[data-invalid] .aeris-auto-complete__input{border-color:var(--aeris-danger, #c81e2a)}.aeris-auto-complete[data-invalid] .aeris-auto-complete__input:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-danger, #c81e2a) 20%,transparent)}.aeris-auto-complete[data-disabled] .aeris-auto-complete__input{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-auto-complete__clear,.aeris-auto-complete__dropdown{position:absolute;top:50%;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-auto-complete-icon, var(--aeris-text-2, #555555));transform:translateY(-50%);cursor:pointer}.aeris-auto-complete__clear{right:2.25rem}.aeris-auto-complete__dropdown{right:var(--aeris-auto-complete-padding)}.aeris-auto-complete__control:not(:has(.aeris-auto-complete__dropdown)) .aeris-auto-complete__clear{right:var(--aeris-auto-complete-padding)}.aeris-auto-complete__clear:hover,.aeris-auto-complete__dropdown:hover{background:var(--aeris-auto-complete-option-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec)));color:var(--aeris-text, #222222)}.aeris-auto-complete__clear:focus-visible,.aeris-auto-complete__dropdown:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:1px}.aeris-auto-complete__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-auto-complete__dropdown>span{position:relative;width:1rem;height:1rem}.aeris-auto-complete__dropdown>span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);transition:transform .15s ease;-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-auto-complete[data-open] .aeris-auto-complete__dropdown>span:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-auto-complete__dismiss{position:fixed;z-index:89;inset:0;width:100vw;height:100vh;height:100dvh;padding:0;border:0;background:transparent;cursor:default}.aeris-auto-complete__panel{position:absolute;z-index:90;top:calc(100% + .4375rem);right:0;left:0;min-width:100%;max-width:calc(100vw - 2rem);overflow:auto;scrollbar-color:var(--aeris-border-strong, #c7c9c0) transparent;scrollbar-width:thin;padding:calc(var(--aeris-auto-complete-density-gap) * .75);border:1px solid var(--aeris-auto-complete-panel-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-auto-complete-panel-radius, var(--aeris-radius-md, .6875rem));background:var(--aeris-auto-complete-panel-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-auto-complete-panel-shadow, 0 1rem 2.5rem rgba(31, 35, 27, .16))}.aeris-auto-complete__panel::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-auto-complete__panel::-webkit-scrollbar-track,.aeris-auto-complete__panel::-webkit-scrollbar-corner{background:transparent}.aeris-auto-complete__panel::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border-strong, #c7c9c0);background-clip:content-box}.aeris-auto-complete__group{padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem) calc(var(--aeris-item-padding-y, .5rem) * .75);color:var(--aeris-text-3, #707070);font-size:.6875rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.aeris-auto-complete__option{width:100%;min-height:var(--aeris-item-height, 2.5rem);display:grid;gap:calc(var(--aeris-auto-complete-density-gap) * .25);padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:inherit;font:inherit;font-size:.875rem;line-height:1.35;text-align:left;cursor:pointer}.aeris-auto-complete__option:hover,.aeris-auto-complete__option[data-active]{background:var(--aeris-auto-complete-option-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec)))}.aeris-auto-complete__option[aria-selected=true]{background:var(--aeris-auto-complete-option-selected, var(--aeris-primary-soft, #e7eddc));color:var(--aeris-auto-complete-option-selected-text, var(--aeris-text, #222222));font-weight:650}.aeris-auto-complete__option:disabled{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-auto-complete__option-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-auto-complete__option-description{color:var(--aeris-text-2, #555555);font-size:.75rem}.aeris-auto-complete__state{padding:calc(var(--aeris-item-padding-y, .5rem) * 1.75) calc(var(--aeris-item-padding-x, .75rem) * 1.15);color:var(--aeris-text-2, #555555);font-size:.875rem}@media(prefers-reduced-motion:reduce){.aeris-auto-complete__input,.aeris-auto-complete__dropdown>span:before{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
564
- }
565
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisAutoComplete, decorators: [{
566
- type: Component,
567
- args: [{ selector: 'aeris-auto-complete', imports: [NgTemplateOutlet], template: `
988
+ `,
989
+ isInline: true,
990
+ styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m6 9 6 6 6-6\"/%3E%3C/svg%3E') );display:inline-block;min-width:12rem;max-width:100%;color:var(--aeris-auto-complete-text, var(--aeris-text, #111111));font:inherit}:host([data-fluid]){width:100%}.aeris-auto-complete{--aeris-auto-complete-height: var(--aeris-control-height, 2.625rem);--aeris-auto-complete-font-size: var(--aeris-font-size-lg, .875rem);--aeris-auto-complete-padding: var(--aeris-control-padding-x, .75rem);--aeris-auto-complete-density-gap: var(--aeris-density-gap, .5rem);position:relative;width:100%}.aeris-auto-complete[data-size=xs]{--aeris-auto-complete-height: calc(var(--aeris-control-height, 2.625rem) - .875rem);--aeris-auto-complete-font-size: var(--aeris-font-size-sm, .75rem);--aeris-auto-complete-padding: calc(var(--aeris-control-padding-x, .75rem) * .75)}.aeris-auto-complete[data-size=sm]{--aeris-auto-complete-height: calc(var(--aeris-control-height, 2.625rem) - .5rem);--aeris-auto-complete-font-size: var(--aeris-font-size-md, .8125rem);--aeris-auto-complete-padding: calc(var(--aeris-control-padding-x, .75rem) * .85)}.aeris-auto-complete[data-size=lg]{--aeris-auto-complete-height: calc(var(--aeris-control-height, 2.625rem) + .5rem);--aeris-auto-complete-font-size: var(--aeris-font-size-xl, .9375rem);--aeris-auto-complete-padding: calc(var(--aeris-control-padding-x, .75rem) * 1.15)}.aeris-auto-complete__control{position:relative}.aeris-auto-complete__input{width:100%;min-height:var(--aeris-auto-complete-height);padding:0 var(--aeris-auto-complete-padding);border:1px solid var(--aeris-auto-complete-border, var(--aeris-border, #efefef));border-radius:var(--aeris-auto-complete-radius, var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem)));background:var(--aeris-auto-complete-background, var(--aeris-surface, #fff));color:inherit;font:inherit;font-size:var(--aeris-auto-complete-font-size);line-height:1.35;outline:0;box-shadow:none;transition:border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-auto-complete__input::placeholder{color:var(--aeris-auto-complete-placeholder, var(--aeris-text-2, #454545))}.aeris-auto-complete__control:has(.aeris-auto-complete__clear) .aeris-auto-complete__input{padding-right:3.25rem}.aeris-auto-complete__control:has(.aeris-auto-complete__dropdown) .aeris-auto-complete__input{padding-right:3rem}.aeris-auto-complete__control:has(.aeris-auto-complete__clear):has(.aeris-auto-complete__dropdown) .aeris-auto-complete__input{padding-right:5rem}.aeris-auto-complete[data-appearance=filled] .aeris-auto-complete__input{border-color:transparent;background:var(--aeris-auto-complete-filled-background, var(--aeris-surface-2, #f3f3f3))}.aeris-auto-complete[data-open] .aeris-auto-complete__input{border-color:var(--aeris-auto-complete-hover-border, var(--aeris-control-hover-border, var(--aeris-primary, #111111)))}@media(hover:hover){.aeris-auto-complete__input:hover{border-color:var(--aeris-auto-complete-hover-border, var(--aeris-control-hover-border, var(--aeris-primary, #111111)))}}.aeris-auto-complete__input:focus-visible{border-color:var(--aeris-auto-complete-focus, var(--aeris-control-focus-border, var(--aeris-focus, #111111)));box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-focus-ring-color, var(--aeris-focus-ring-color, transparent))}.aeris-auto-complete[data-invalid] .aeris-auto-complete__input,.aeris-auto-complete__input:user-invalid{border-color:var(--aeris-control-invalid-border, var(--aeris-danger, #c81e2a))}.aeris-auto-complete[data-invalid] .aeris-auto-complete__input:focus-visible,.aeris-auto-complete__input:user-invalid:focus-visible{box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-invalid-focus-ring-color, transparent)}.aeris-auto-complete[data-disabled] .aeris-auto-complete__input{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-auto-complete__clear,.aeris-auto-complete__dropdown{position:absolute;top:50%;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-auto-complete-icon, var(--aeris-text-2, #454545));transform:translateY(-50%);cursor:pointer}.aeris-auto-complete__clear{right:2.25rem}.aeris-auto-complete__dropdown{right:var(--aeris-auto-complete-padding)}.aeris-auto-complete__control:not(:has(.aeris-auto-complete__dropdown)) .aeris-auto-complete__clear{right:var(--aeris-auto-complete-padding)}.aeris-auto-complete__clear:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}@media(hover:hover){.aeris-auto-complete__clear:hover,.aeris-auto-complete__dropdown:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-auto-complete__clear:focus-visible,.aeris-auto-complete__dropdown:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-auto-complete__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-auto-complete__dropdown>span{position:relative;width:1rem;height:1rem}.aeris-auto-complete__dropdown>span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-auto-complete[data-open] .aeris-auto-complete__dropdown>span:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-auto-complete__panel{position:absolute;z-index:90;top:calc(100% + .4375rem);right:0;left:0;min-width:100%;max-width:calc(100vw - 2rem);overflow:auto;scrollbar-color:var(--aeris-border, #efefef) transparent;scrollbar-width:thin;padding:var(--aeris-overlay-padding, calc(var(--aeris-auto-complete-density-gap) * .75));border:1px solid var(--aeris-auto-complete-panel-border, var(--aeris-border));border-radius:var(--aeris-auto-complete-panel-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-auto-complete-panel-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-auto-complete-panel-shadow, var(--aeris-overlay-shadow, var(--aeris-shadow-lg, 0 18px 48px rgba(0, 0, 0, .18))))}.aeris-auto-complete__panel::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-auto-complete__panel::-webkit-scrollbar-track,.aeris-auto-complete__panel::-webkit-scrollbar-corner{background:transparent}.aeris-auto-complete__panel::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border, #efefef);background-clip:content-box}.aeris-auto-complete__group{padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem) calc(var(--aeris-item-padding-y, .5rem) * .75);color:var(--aeris-text-3, #707070);font-size:var(--aeris-font-size-xs, .6875rem);font-weight:var(--aeris-font-weight-bold, 700);letter-spacing:.08em;text-transform:uppercase}.aeris-auto-complete__option{width:100%;min-height:var(--aeris-item-height, 2.5rem);display:grid;gap:calc(var(--aeris-auto-complete-density-gap) * .25);padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:inherit;font:inherit;font-size:var(--aeris-item-font-size, .875rem);line-height:1.35;text-align:left;cursor:pointer}.aeris-auto-complete__option[data-active]{background:var(--aeris-auto-complete-option-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)))}@media(hover:hover){.aeris-auto-complete__option:hover{background:var(--aeris-auto-complete-option-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)))}}.aeris-auto-complete__option[aria-selected=true]{background:var(--aeris-auto-complete-option-selected, var(--aeris-primary-soft, #e7eddc));color:var(--aeris-auto-complete-option-selected-text, var(--aeris-text, #111111));font-weight:var(--aeris-font-weight-bold, 700)}.aeris-auto-complete__option:disabled{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-auto-complete__option-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-auto-complete__option-description{color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem)}.aeris-auto-complete__state{padding:calc(var(--aeris-item-padding-y, .5rem) * 1.75) calc(var(--aeris-item-padding-x, .75rem) * 1.15);color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-lg, .875rem)}@media(prefers-reduced-motion:reduce){.aeris-auto-complete__input,.aeris-auto-complete__dropdown>span:before{transition:none}}@media(pointer:coarse){input{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}.aeris-auto-complete__dropdown>span[data-aeris-custom-icon]{transition:rotate var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-auto-complete[data-open] .aeris-auto-complete__dropdown>span[data-aeris-custom-icon]{rotate:180deg}@media(prefers-reduced-motion:reduce){.aeris-auto-complete__dropdown>span[data-aeris-custom-icon]{transition:none}}\n"],
991
+ dependencies: [
992
+ {
993
+ kind: "component",
994
+ type: ɵAerisIcon,
995
+ selector: "span[aerisInternalIcon]",
996
+ inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
997
+ },
998
+ {
999
+ kind: "directive",
1000
+ type: NgTemplateOutlet,
1001
+ selector: "[ngTemplateOutlet]",
1002
+ inputs: [
1003
+ "ngTemplateOutletContext",
1004
+ "ngTemplateOutlet",
1005
+ "ngTemplateOutletInjector"
1006
+ ]
1007
+ },
1008
+ {
1009
+ kind: "directive",
1010
+ type: ɵAerisAppendTo,
1011
+ selector: "[aerisInternalAppendTo]",
1012
+ inputs: [
1013
+ "aerisInternalAppendTo",
1014
+ "aerisInternalAppendToDefault",
1015
+ "aerisInternalAppendToAnchor",
1016
+ "aerisInternalAppendToOffset",
1017
+ "aerisInternalAppendToMatchWidth",
1018
+ "aerisInternalAppendToPlacement",
1019
+ "aerisInternalAppendToAlignment",
1020
+ "aerisInternalAppendToCollisionPadding",
1021
+ "aerisInternalAppendToPositionSelf",
1022
+ "aerisInternalAppendToDismiss"
1023
+ ],
1024
+ outputs: ["aerisInternalAppendToOutside"]
1025
+ }
1026
+ ]
1027
+ });
1028
+ };
1029
+ i0.ɵɵngDeclareClassMetadata({
1030
+ minVersion: "12.0.0",
1031
+ version: "22.2.3",
1032
+ ngImport: i0,
1033
+ type: AerisAutoComplete,
1034
+ decorators: [{
1035
+ type: Component,
1036
+ args: [{
1037
+ selector: "aeris-auto-complete",
1038
+ imports: [
1039
+ ɵAerisIcon,
1040
+ NgTemplateOutlet,
1041
+ ɵAerisAppendTo
1042
+ ],
1043
+ template: `
568
1044
  <div
569
1045
  class="aeris-auto-complete"
570
1046
  [attr.data-size]="size()"
571
1047
  [attr.data-appearance]="appearance()"
572
1048
  [attr.data-open]="open() || null"
573
- [attr.data-invalid]="invalid() || null"
1049
+ [attr.data-invalid]="displayInvalid() || null"
574
1050
  [attr.data-disabled]="effectiveDisabled() || null"
575
1051
  [attr.data-fluid]="fluid() || null"
576
1052
  (focusout)="handleFocusOut($event)"
@@ -579,7 +1055,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
579
1055
  <input type="hidden" [name]="name()" [value]="value()" />
580
1056
  }
581
1057
 
582
- <div class="aeris-auto-complete__control">
1058
+ <div #control class="aeris-auto-complete__control">
583
1059
  <input
584
1060
  #textInput
585
1061
  class="aeris-auto-complete__input"
@@ -598,9 +1074,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
598
1074
  [attr.aria-controls]="panelId"
599
1075
  [attr.aria-activedescendant]="open() ? activeOptionId() : null"
600
1076
  [attr.aria-label]="ariaLabel() || null"
601
- [attr.aria-labelledby]="ariaLabelledby() || null"
602
- [attr.aria-describedby]="ariaDescribedby() || null"
603
- [attr.aria-invalid]="invalid() || null"
1077
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
1078
+ [attr.aria-describedby]="ariaDescribedBy() || null"
1079
+ [attr.aria-invalid]="displayInvalid() || null"
604
1080
  [attr.aria-required]="required() || null"
605
1081
  (click)="handleInputClick()"
606
1082
  (input)="handleInput($event)"
@@ -616,7 +1092,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
616
1092
  [attr.aria-label]="clearButtonAriaLabel()"
617
1093
  (click)="clear()"
618
1094
  >
619
- <span aria-hidden="true"></span>
1095
+ @if (clearIconTemplate(); as customIcon) {
1096
+ <span aria-hidden="true" data-aeris-custom-icon
1097
+ ><ng-container [ngTemplateOutlet]="customIcon"
1098
+ /></span>
1099
+ } @else {
1100
+ <span aerisInternalIcon="close" aria-hidden="true"></span>
1101
+ }
620
1102
  </button>
621
1103
  }
622
1104
 
@@ -630,22 +1112,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
630
1112
  [disabled]="effectiveDisabled() || readonly()"
631
1113
  (click)="togglePanel($event)"
632
1114
  >
633
- <span aria-hidden="true"></span>
1115
+ @if (dropdownIconTemplate(); as customIcon) {
1116
+ <span aria-hidden="true" data-aeris-custom-icon
1117
+ ><ng-container [ngTemplateOutlet]="customIcon"
1118
+ /></span>
1119
+ } @else {
1120
+ <span aerisInternalIcon="chevron" aria-hidden="true"></span>
1121
+ }
634
1122
  </button>
635
1123
  }
636
1124
  </div>
637
1125
 
638
1126
  @if (open()) {
639
- <button
640
- type="button"
641
- class="aeris-auto-complete__dismiss"
642
- tabindex="-1"
643
- aria-hidden="true"
644
- (click)="closePanel()"
645
- ></button>
646
-
647
1127
  <div
1128
+ #suggestionsPanel
648
1129
  class="aeris-auto-complete__panel"
1130
+ [aerisInternalAppendTo]="appendTo()"
1131
+ [aerisInternalAppendToAnchor]="controlElement()?.nativeElement ?? null"
1132
+ [aerisInternalAppendToMatchWidth]="true"
1133
+ [aerisInternalAppendToCollisionPadding]="viewportMargin()"
1134
+ (aerisInternalAppendToOutside)="closePanel()"
1135
+ [aerisInternalAppendToDismiss]="dismissOverlay"
649
1136
  [id]="panelId"
650
1137
  role="listbox"
651
1138
  [attr.aria-label]="listboxAriaLabel()"
@@ -688,12 +1175,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
688
1175
  [disabled]="option.disabled"
689
1176
  [attr.aria-selected]="isSelected(option)"
690
1177
  [attr.data-active]="isActive(option) || null"
691
- (mousedown)="$event.preventDefault()"
1178
+ (pointerdown)="preservePointerFocus($event)"
692
1179
  (click)="selectOption(option, $event)"
693
1180
  >
694
1181
  <ng-container
695
1182
  [ngTemplateOutlet]="optionContent"
696
- [ngTemplateOutletContext]="{ $implicit: option, option, selected: isSelected(option), active: isActive(option) }"
1183
+ [ngTemplateOutletContext]="{
1184
+ $implicit: option,
1185
+ option,
1186
+ selected: isSelected(option),
1187
+ active: isActive(option),
1188
+ }"
697
1189
  />
698
1190
  </button>
699
1191
  }
@@ -708,12 +1200,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
708
1200
  [disabled]="option.disabled"
709
1201
  [attr.aria-selected]="isSelected(option)"
710
1202
  [attr.data-active]="isActive(option) || null"
711
- (mousedown)="$event.preventDefault()"
1203
+ (pointerdown)="preservePointerFocus($event)"
712
1204
  (click)="selectOption(option, $event)"
713
1205
  >
714
1206
  <ng-container
715
1207
  [ngTemplateOutlet]="optionContent"
716
- [ngTemplateOutletContext]="{ $implicit: option, option, selected: isSelected(option), active: isActive(option) }"
1208
+ [ngTemplateOutletContext]="{
1209
+ $implicit: option,
1210
+ option,
1211
+ selected: isSelected(option),
1212
+ active: isActive(option),
1213
+ }"
717
1214
  />
718
1215
  </button>
719
1216
  }
@@ -735,20 +1232,374 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
735
1232
  }
736
1233
  }
737
1234
  </ng-template>
738
- `, providers: [
739
- {
740
- provide: NG_VALUE_ACCESSOR,
741
- useExisting: forwardRef(() => AerisAutoComplete),
742
- multi: true,
743
- },
744
- ], host: {
745
- '[attr.data-fluid]': 'fluid() || null',
746
- }, styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:inline-block;min-width:12rem;max-width:100%;color:var(--aeris-auto-complete-text, var(--aeris-text, #222222));font:inherit}:host([data-fluid]){width:100%}.aeris-auto-complete{--aeris-auto-complete-height: var(--aeris-control-height, 2.625rem);--aeris-auto-complete-font-size: .875rem;--aeris-auto-complete-padding: var(--aeris-control-padding-x, .75rem);--aeris-auto-complete-density-gap: var(--aeris-density-gap, .5rem);position:relative;width:100%}.aeris-auto-complete[data-size=xs]{--aeris-auto-complete-height: 1.875rem;--aeris-auto-complete-font-size: .75rem;--aeris-auto-complete-padding: .5625rem}.aeris-auto-complete[data-size=sm]{--aeris-auto-complete-height: 2.25rem;--aeris-auto-complete-font-size: .8125rem;--aeris-auto-complete-padding: .6875rem}.aeris-auto-complete[data-size=lg]{--aeris-auto-complete-height: 3rem;--aeris-auto-complete-font-size: .9375rem;--aeris-auto-complete-padding: .875rem}.aeris-auto-complete__control{position:relative}.aeris-auto-complete__input{width:100%;min-height:var(--aeris-auto-complete-height);padding:0 var(--aeris-auto-complete-padding);border:1px solid var(--aeris-auto-complete-border, var(--aeris-border-strong, #c7c9c0));border-radius:var(--aeris-auto-complete-radius, var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem)));background:var(--aeris-auto-complete-background, var(--aeris-surface, #fff));color:inherit;font:inherit;font-size:var(--aeris-auto-complete-font-size);line-height:1.35;outline:0;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.aeris-auto-complete__input::placeholder{color:var(--aeris-auto-complete-placeholder, var(--aeris-text-2, #555555))}.aeris-auto-complete__control:has(.aeris-auto-complete__clear) .aeris-auto-complete__input{padding-right:3.25rem}.aeris-auto-complete__control:has(.aeris-auto-complete__dropdown) .aeris-auto-complete__input{padding-right:3rem}.aeris-auto-complete__control:has(.aeris-auto-complete__clear):has(.aeris-auto-complete__dropdown) .aeris-auto-complete__input{padding-right:5rem}.aeris-auto-complete[data-appearance=filled] .aeris-auto-complete__input{border-color:transparent;background:var(--aeris-auto-complete-filled-background, var(--aeris-surface-2, #f2f0ec))}.aeris-auto-complete__input:hover,.aeris-auto-complete[data-open] .aeris-auto-complete__input{border-color:var(--aeris-auto-complete-hover-border, var(--aeris-focus, #536437))}.aeris-auto-complete__input:focus-visible{border-color:var(--aeris-auto-complete-focus, var(--aeris-focus, #536437));box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-auto-complete-focus, var(--aeris-focus, #536437)) 22%,transparent)}.aeris-auto-complete[data-invalid] .aeris-auto-complete__input{border-color:var(--aeris-danger, #c81e2a)}.aeris-auto-complete[data-invalid] .aeris-auto-complete__input:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-danger, #c81e2a) 20%,transparent)}.aeris-auto-complete[data-disabled] .aeris-auto-complete__input{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-auto-complete__clear,.aeris-auto-complete__dropdown{position:absolute;top:50%;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-auto-complete-icon, var(--aeris-text-2, #555555));transform:translateY(-50%);cursor:pointer}.aeris-auto-complete__clear{right:2.25rem}.aeris-auto-complete__dropdown{right:var(--aeris-auto-complete-padding)}.aeris-auto-complete__control:not(:has(.aeris-auto-complete__dropdown)) .aeris-auto-complete__clear{right:var(--aeris-auto-complete-padding)}.aeris-auto-complete__clear:hover,.aeris-auto-complete__dropdown:hover{background:var(--aeris-auto-complete-option-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec)));color:var(--aeris-text, #222222)}.aeris-auto-complete__clear:focus-visible,.aeris-auto-complete__dropdown:focus-visible{outline:2px solid var(--aeris-focus, #536437);outline-offset:1px}.aeris-auto-complete__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-auto-complete__dropdown>span{position:relative;width:1rem;height:1rem}.aeris-auto-complete__dropdown>span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);transition:transform .15s ease;-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-auto-complete[data-open] .aeris-auto-complete__dropdown>span:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-auto-complete__dismiss{position:fixed;z-index:89;inset:0;width:100vw;height:100vh;height:100dvh;padding:0;border:0;background:transparent;cursor:default}.aeris-auto-complete__panel{position:absolute;z-index:90;top:calc(100% + .4375rem);right:0;left:0;min-width:100%;max-width:calc(100vw - 2rem);overflow:auto;scrollbar-color:var(--aeris-border-strong, #c7c9c0) transparent;scrollbar-width:thin;padding:calc(var(--aeris-auto-complete-density-gap) * .75);border:1px solid var(--aeris-auto-complete-panel-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-auto-complete-panel-radius, var(--aeris-radius-md, .6875rem));background:var(--aeris-auto-complete-panel-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-auto-complete-panel-shadow, 0 1rem 2.5rem rgba(31, 35, 27, .16))}.aeris-auto-complete__panel::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-auto-complete__panel::-webkit-scrollbar-track,.aeris-auto-complete__panel::-webkit-scrollbar-corner{background:transparent}.aeris-auto-complete__panel::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border-strong, #c7c9c0);background-clip:content-box}.aeris-auto-complete__group{padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem) calc(var(--aeris-item-padding-y, .5rem) * .75);color:var(--aeris-text-3, #707070);font-size:.6875rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.aeris-auto-complete__option{width:100%;min-height:var(--aeris-item-height, 2.5rem);display:grid;gap:calc(var(--aeris-auto-complete-density-gap) * .25);padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:inherit;font:inherit;font-size:.875rem;line-height:1.35;text-align:left;cursor:pointer}.aeris-auto-complete__option:hover,.aeris-auto-complete__option[data-active]{background:var(--aeris-auto-complete-option-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec)))}.aeris-auto-complete__option[aria-selected=true]{background:var(--aeris-auto-complete-option-selected, var(--aeris-primary-soft, #e7eddc));color:var(--aeris-auto-complete-option-selected-text, var(--aeris-text, #222222));font-weight:650}.aeris-auto-complete__option:disabled{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-auto-complete__option-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-auto-complete__option-description{color:var(--aeris-text-2, #555555);font-size:.75rem}.aeris-auto-complete__state{padding:calc(var(--aeris-item-padding-y, .5rem) * 1.75) calc(var(--aeris-item-padding-x, .75rem) * 1.15);color:var(--aeris-text-2, #555555);font-size:.875rem}@media(prefers-reduced-motion:reduce){.aeris-auto-complete__input,.aeris-auto-complete__dropdown>span:before{transition:none}}\n"] }]
747
- }], propDecorators: { inputElement: [{ type: i0.ViewChild, args: ['textInput', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], suggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestions", required: false }] }], 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 }] }], 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 }] }], listboxAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "listboxAriaLabel", required: false }] }], dropdownAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownAriaLabel", required: false }] }], clearButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonAriaLabel", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], loadingMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingMessage", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], filterMatchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMatchMode", required: false }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }], panelMaxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelMaxHeight", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", 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 }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], dropdown: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdown", required: false }] }], completeOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "completeOnFocus", required: false }] }], forceSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "forceSelection", required: false }] }], autoHighlight: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoHighlight", required: false }] }], grouped: [{ type: i0.Input, args: [{ isSignal: true, alias: "grouped", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], valueInput: [{ type: i0.Output, args: ["valueInput"] }], completed: [{ type: i0.Output, args: ["completed"] }], selected: [{ type: i0.Output, args: ["selected"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }], optionTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisAutoCompleteOptionTemplate), { isSignal: true }] }], groupTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisAutoCompleteGroupTemplate), { isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisAutoCompleteEmptyTemplate), { isSignal: true }] }], loadingTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisAutoCompleteLoadingTemplate), { isSignal: true }] }] } });
748
-
749
- /**
750
- * Generated bundle index. Do not edit.
751
- */
752
-
1235
+ `,
1236
+ providers: [{
1237
+ provide: NG_VALUE_ACCESSOR,
1238
+ useExisting: forwardRef(() => AerisAutoComplete),
1239
+ multi: true
1240
+ }],
1241
+ host: { "[attr.data-fluid]": "fluid() || null" },
1242
+ styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m6 9 6 6 6-6\"/%3E%3C/svg%3E') );display:inline-block;min-width:12rem;max-width:100%;color:var(--aeris-auto-complete-text, var(--aeris-text, #111111));font:inherit}:host([data-fluid]){width:100%}.aeris-auto-complete{--aeris-auto-complete-height: var(--aeris-control-height, 2.625rem);--aeris-auto-complete-font-size: var(--aeris-font-size-lg, .875rem);--aeris-auto-complete-padding: var(--aeris-control-padding-x, .75rem);--aeris-auto-complete-density-gap: var(--aeris-density-gap, .5rem);position:relative;width:100%}.aeris-auto-complete[data-size=xs]{--aeris-auto-complete-height: calc(var(--aeris-control-height, 2.625rem) - .875rem);--aeris-auto-complete-font-size: var(--aeris-font-size-sm, .75rem);--aeris-auto-complete-padding: calc(var(--aeris-control-padding-x, .75rem) * .75)}.aeris-auto-complete[data-size=sm]{--aeris-auto-complete-height: calc(var(--aeris-control-height, 2.625rem) - .5rem);--aeris-auto-complete-font-size: var(--aeris-font-size-md, .8125rem);--aeris-auto-complete-padding: calc(var(--aeris-control-padding-x, .75rem) * .85)}.aeris-auto-complete[data-size=lg]{--aeris-auto-complete-height: calc(var(--aeris-control-height, 2.625rem) + .5rem);--aeris-auto-complete-font-size: var(--aeris-font-size-xl, .9375rem);--aeris-auto-complete-padding: calc(var(--aeris-control-padding-x, .75rem) * 1.15)}.aeris-auto-complete__control{position:relative}.aeris-auto-complete__input{width:100%;min-height:var(--aeris-auto-complete-height);padding:0 var(--aeris-auto-complete-padding);border:1px solid var(--aeris-auto-complete-border, var(--aeris-border, #efefef));border-radius:var(--aeris-auto-complete-radius, var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem)));background:var(--aeris-auto-complete-background, var(--aeris-surface, #fff));color:inherit;font:inherit;font-size:var(--aeris-auto-complete-font-size);line-height:1.35;outline:0;box-shadow:none;transition:border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-auto-complete__input::placeholder{color:var(--aeris-auto-complete-placeholder, var(--aeris-text-2, #454545))}.aeris-auto-complete__control:has(.aeris-auto-complete__clear) .aeris-auto-complete__input{padding-right:3.25rem}.aeris-auto-complete__control:has(.aeris-auto-complete__dropdown) .aeris-auto-complete__input{padding-right:3rem}.aeris-auto-complete__control:has(.aeris-auto-complete__clear):has(.aeris-auto-complete__dropdown) .aeris-auto-complete__input{padding-right:5rem}.aeris-auto-complete[data-appearance=filled] .aeris-auto-complete__input{border-color:transparent;background:var(--aeris-auto-complete-filled-background, var(--aeris-surface-2, #f3f3f3))}.aeris-auto-complete[data-open] .aeris-auto-complete__input{border-color:var(--aeris-auto-complete-hover-border, var(--aeris-control-hover-border, var(--aeris-primary, #111111)))}@media(hover:hover){.aeris-auto-complete__input:hover{border-color:var(--aeris-auto-complete-hover-border, var(--aeris-control-hover-border, var(--aeris-primary, #111111)))}}.aeris-auto-complete__input:focus-visible{border-color:var(--aeris-auto-complete-focus, var(--aeris-control-focus-border, var(--aeris-focus, #111111)));box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-focus-ring-color, var(--aeris-focus-ring-color, transparent))}.aeris-auto-complete[data-invalid] .aeris-auto-complete__input,.aeris-auto-complete__input:user-invalid{border-color:var(--aeris-control-invalid-border, var(--aeris-danger, #c81e2a))}.aeris-auto-complete[data-invalid] .aeris-auto-complete__input:focus-visible,.aeris-auto-complete__input:user-invalid:focus-visible{box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-invalid-focus-ring-color, transparent)}.aeris-auto-complete[data-disabled] .aeris-auto-complete__input{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-auto-complete__clear,.aeris-auto-complete__dropdown{position:absolute;top:50%;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-auto-complete-icon, var(--aeris-text-2, #454545));transform:translateY(-50%);cursor:pointer}.aeris-auto-complete__clear{right:2.25rem}.aeris-auto-complete__dropdown{right:var(--aeris-auto-complete-padding)}.aeris-auto-complete__control:not(:has(.aeris-auto-complete__dropdown)) .aeris-auto-complete__clear{right:var(--aeris-auto-complete-padding)}.aeris-auto-complete__clear:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}@media(hover:hover){.aeris-auto-complete__clear:hover,.aeris-auto-complete__dropdown:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-auto-complete__clear:focus-visible,.aeris-auto-complete__dropdown:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-auto-complete__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-auto-complete__dropdown>span{position:relative;width:1rem;height:1rem}.aeris-auto-complete__dropdown>span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-auto-complete[data-open] .aeris-auto-complete__dropdown>span:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-auto-complete__panel{position:absolute;z-index:90;top:calc(100% + .4375rem);right:0;left:0;min-width:100%;max-width:calc(100vw - 2rem);overflow:auto;scrollbar-color:var(--aeris-border, #efefef) transparent;scrollbar-width:thin;padding:var(--aeris-overlay-padding, calc(var(--aeris-auto-complete-density-gap) * .75));border:1px solid var(--aeris-auto-complete-panel-border, var(--aeris-border));border-radius:var(--aeris-auto-complete-panel-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-auto-complete-panel-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-auto-complete-panel-shadow, var(--aeris-overlay-shadow, var(--aeris-shadow-lg, 0 18px 48px rgba(0, 0, 0, .18))))}.aeris-auto-complete__panel::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-auto-complete__panel::-webkit-scrollbar-track,.aeris-auto-complete__panel::-webkit-scrollbar-corner{background:transparent}.aeris-auto-complete__panel::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border, #efefef);background-clip:content-box}.aeris-auto-complete__group{padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem) calc(var(--aeris-item-padding-y, .5rem) * .75);color:var(--aeris-text-3, #707070);font-size:var(--aeris-font-size-xs, .6875rem);font-weight:var(--aeris-font-weight-bold, 700);letter-spacing:.08em;text-transform:uppercase}.aeris-auto-complete__option{width:100%;min-height:var(--aeris-item-height, 2.5rem);display:grid;gap:calc(var(--aeris-auto-complete-density-gap) * .25);padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:inherit;font:inherit;font-size:var(--aeris-item-font-size, .875rem);line-height:1.35;text-align:left;cursor:pointer}.aeris-auto-complete__option[data-active]{background:var(--aeris-auto-complete-option-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)))}@media(hover:hover){.aeris-auto-complete__option:hover{background:var(--aeris-auto-complete-option-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)))}}.aeris-auto-complete__option[aria-selected=true]{background:var(--aeris-auto-complete-option-selected, var(--aeris-primary-soft, #e7eddc));color:var(--aeris-auto-complete-option-selected-text, var(--aeris-text, #111111));font-weight:var(--aeris-font-weight-bold, 700)}.aeris-auto-complete__option:disabled{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-auto-complete__option-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-auto-complete__option-description{color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem)}.aeris-auto-complete__state{padding:calc(var(--aeris-item-padding-y, .5rem) * 1.75) calc(var(--aeris-item-padding-x, .75rem) * 1.15);color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-lg, .875rem)}@media(prefers-reduced-motion:reduce){.aeris-auto-complete__input,.aeris-auto-complete__dropdown>span:before{transition:none}}@media(pointer:coarse){input{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}.aeris-auto-complete__dropdown>span[data-aeris-custom-icon]{transition:rotate var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-auto-complete[data-open] .aeris-auto-complete__dropdown>span[data-aeris-custom-icon]{rotate:180deg}@media(prefers-reduced-motion:reduce){.aeris-auto-complete__dropdown>span[data-aeris-custom-icon]{transition:none}}\n"]
1243
+ }]
1244
+ }],
1245
+ propDecorators: {
1246
+ clearIconTemplate: [{
1247
+ type: i0.Input,
1248
+ args: [{
1249
+ isSignal: true,
1250
+ alias: "clearIconTemplate",
1251
+ required: false
1252
+ }]
1253
+ }],
1254
+ dropdownIconTemplate: [{
1255
+ type: i0.Input,
1256
+ args: [{
1257
+ isSignal: true,
1258
+ alias: "dropdownIconTemplate",
1259
+ required: false
1260
+ }]
1261
+ }],
1262
+ controlElement: [{
1263
+ type: i0.ViewChild,
1264
+ args: ["control", { isSignal: true }]
1265
+ }],
1266
+ inputElement: [{
1267
+ type: i0.ViewChild,
1268
+ args: ["textInput", { isSignal: true }]
1269
+ }],
1270
+ suggestionsPanel: [{
1271
+ type: i0.ViewChild,
1272
+ args: ["suggestionsPanel", { isSignal: true }]
1273
+ }],
1274
+ panelPortal: [{
1275
+ type: i0.ViewChild,
1276
+ args: [i0.forwardRef(() => ɵAerisAppendTo), { isSignal: true }]
1277
+ }],
1278
+ value: [{
1279
+ type: i0.Input,
1280
+ args: [{
1281
+ isSignal: true,
1282
+ alias: "value",
1283
+ required: false
1284
+ }]
1285
+ }, {
1286
+ type: i0.Output,
1287
+ args: ["valueChange"]
1288
+ }],
1289
+ suggestions: [{
1290
+ type: i0.Input,
1291
+ args: [{
1292
+ isSignal: true,
1293
+ alias: "suggestions",
1294
+ required: false
1295
+ }]
1296
+ }],
1297
+ inputId: [{
1298
+ type: i0.Input,
1299
+ args: [{
1300
+ isSignal: true,
1301
+ alias: "inputId",
1302
+ required: false
1303
+ }]
1304
+ }],
1305
+ name: [{
1306
+ type: i0.Input,
1307
+ args: [{
1308
+ isSignal: true,
1309
+ alias: "name",
1310
+ required: false
1311
+ }]
1312
+ }],
1313
+ placeholder: [{
1314
+ type: i0.Input,
1315
+ args: [{
1316
+ isSignal: true,
1317
+ alias: "placeholder",
1318
+ required: false
1319
+ }]
1320
+ }],
1321
+ autocomplete: [{
1322
+ type: i0.Input,
1323
+ args: [{
1324
+ isSignal: true,
1325
+ alias: "autocomplete",
1326
+ required: false
1327
+ }]
1328
+ }],
1329
+ ariaLabel: [{
1330
+ type: i0.Input,
1331
+ args: [{
1332
+ isSignal: true,
1333
+ alias: "ariaLabel",
1334
+ required: false
1335
+ }]
1336
+ }],
1337
+ ariaLabelledBy: [{
1338
+ type: i0.Input,
1339
+ args: [{
1340
+ isSignal: true,
1341
+ alias: "ariaLabelledBy",
1342
+ required: false
1343
+ }]
1344
+ }],
1345
+ ariaDescribedBy: [{
1346
+ type: i0.Input,
1347
+ args: [{
1348
+ isSignal: true,
1349
+ alias: "ariaDescribedBy",
1350
+ required: false
1351
+ }]
1352
+ }],
1353
+ listboxAriaLabel: [{
1354
+ type: i0.Input,
1355
+ args: [{
1356
+ isSignal: true,
1357
+ alias: "listboxAriaLabel",
1358
+ required: false
1359
+ }]
1360
+ }],
1361
+ dropdownAriaLabel: [{
1362
+ type: i0.Input,
1363
+ args: [{
1364
+ isSignal: true,
1365
+ alias: "dropdownAriaLabel",
1366
+ required: false
1367
+ }]
1368
+ }],
1369
+ clearButtonAriaLabel: [{
1370
+ type: i0.Input,
1371
+ args: [{
1372
+ isSignal: true,
1373
+ alias: "clearButtonAriaLabel",
1374
+ required: false
1375
+ }]
1376
+ }],
1377
+ emptyMessage: [{
1378
+ type: i0.Input,
1379
+ args: [{
1380
+ isSignal: true,
1381
+ alias: "emptyMessage",
1382
+ required: false
1383
+ }]
1384
+ }],
1385
+ loadingMessage: [{
1386
+ type: i0.Input,
1387
+ args: [{
1388
+ isSignal: true,
1389
+ alias: "loadingMessage",
1390
+ required: false
1391
+ }]
1392
+ }],
1393
+ size: [{
1394
+ type: i0.Input,
1395
+ args: [{
1396
+ isSignal: true,
1397
+ alias: "size",
1398
+ required: false
1399
+ }]
1400
+ }],
1401
+ appearance: [{
1402
+ type: i0.Input,
1403
+ args: [{
1404
+ isSignal: true,
1405
+ alias: "appearance",
1406
+ required: false
1407
+ }]
1408
+ }],
1409
+ filterMatchMode: [{
1410
+ type: i0.Input,
1411
+ args: [{
1412
+ isSignal: true,
1413
+ alias: "filterMatchMode",
1414
+ required: false
1415
+ }]
1416
+ }],
1417
+ minLength: [{
1418
+ type: i0.Input,
1419
+ args: [{
1420
+ isSignal: true,
1421
+ alias: "minLength",
1422
+ required: false
1423
+ }]
1424
+ }],
1425
+ panelMaxHeight: [{
1426
+ type: i0.Input,
1427
+ args: [{
1428
+ isSignal: true,
1429
+ alias: "panelMaxHeight",
1430
+ required: false
1431
+ }]
1432
+ }],
1433
+ appendTo: [{
1434
+ type: i0.Input,
1435
+ args: [{
1436
+ isSignal: true,
1437
+ alias: "appendTo",
1438
+ required: false
1439
+ }]
1440
+ }],
1441
+ viewportMargin: [{
1442
+ type: i0.Input,
1443
+ args: [{
1444
+ isSignal: true,
1445
+ alias: "viewportMargin",
1446
+ required: false
1447
+ }]
1448
+ }],
1449
+ invalid: [{
1450
+ type: i0.Input,
1451
+ args: [{
1452
+ isSignal: true,
1453
+ alias: "invalid",
1454
+ required: false
1455
+ }]
1456
+ }],
1457
+ touched: [{
1458
+ type: i0.Input,
1459
+ args: [{
1460
+ isSignal: true,
1461
+ alias: "touched",
1462
+ required: false
1463
+ }]
1464
+ }],
1465
+ disabled: [{
1466
+ type: i0.Input,
1467
+ args: [{
1468
+ isSignal: true,
1469
+ alias: "disabled",
1470
+ required: false
1471
+ }]
1472
+ }],
1473
+ readonly: [{
1474
+ type: i0.Input,
1475
+ args: [{
1476
+ isSignal: true,
1477
+ alias: "readonly",
1478
+ required: false
1479
+ }]
1480
+ }],
1481
+ required: [{
1482
+ type: i0.Input,
1483
+ args: [{
1484
+ isSignal: true,
1485
+ alias: "required",
1486
+ required: false
1487
+ }]
1488
+ }],
1489
+ fluid: [{
1490
+ type: i0.Input,
1491
+ args: [{
1492
+ isSignal: true,
1493
+ alias: "fluid",
1494
+ required: false
1495
+ }]
1496
+ }],
1497
+ clearable: [{
1498
+ type: i0.Input,
1499
+ args: [{
1500
+ isSignal: true,
1501
+ alias: "clearable",
1502
+ required: false
1503
+ }]
1504
+ }],
1505
+ dropdown: [{
1506
+ type: i0.Input,
1507
+ args: [{
1508
+ isSignal: true,
1509
+ alias: "dropdown",
1510
+ required: false
1511
+ }]
1512
+ }],
1513
+ completeOnFocus: [{
1514
+ type: i0.Input,
1515
+ args: [{
1516
+ isSignal: true,
1517
+ alias: "completeOnFocus",
1518
+ required: false
1519
+ }]
1520
+ }],
1521
+ forceSelection: [{
1522
+ type: i0.Input,
1523
+ args: [{
1524
+ isSignal: true,
1525
+ alias: "forceSelection",
1526
+ required: false
1527
+ }]
1528
+ }],
1529
+ autoHighlight: [{
1530
+ type: i0.Input,
1531
+ args: [{
1532
+ isSignal: true,
1533
+ alias: "autoHighlight",
1534
+ required: false
1535
+ }]
1536
+ }],
1537
+ grouped: [{
1538
+ type: i0.Input,
1539
+ args: [{
1540
+ isSignal: true,
1541
+ alias: "grouped",
1542
+ required: false
1543
+ }]
1544
+ }],
1545
+ loading: [{
1546
+ type: i0.Input,
1547
+ args: [{
1548
+ isSignal: true,
1549
+ alias: "loading",
1550
+ required: false
1551
+ }]
1552
+ }],
1553
+ completed: [{
1554
+ type: i0.Output,
1555
+ args: ["completed"]
1556
+ }],
1557
+ selected: [{
1558
+ type: i0.Output,
1559
+ args: ["selected"]
1560
+ }],
1561
+ cleared: [{
1562
+ type: i0.Output,
1563
+ args: ["cleared"]
1564
+ }],
1565
+ opened: [{
1566
+ type: i0.Output,
1567
+ args: ["opened"]
1568
+ }],
1569
+ closed: [{
1570
+ type: i0.Output,
1571
+ args: ["closed"]
1572
+ }],
1573
+ focused: [{
1574
+ type: i0.Output,
1575
+ args: ["focused"]
1576
+ }],
1577
+ blurred: [{
1578
+ type: i0.Output,
1579
+ args: ["blurred"]
1580
+ }],
1581
+ touch: [{
1582
+ type: i0.Output,
1583
+ args: ["touch"]
1584
+ }],
1585
+ optionTemplate: [{
1586
+ type: i0.ContentChild,
1587
+ args: [i0.forwardRef(() => AerisAutoCompleteOptionTemplate), { isSignal: true }]
1588
+ }],
1589
+ groupTemplate: [{
1590
+ type: i0.ContentChild,
1591
+ args: [i0.forwardRef(() => AerisAutoCompleteGroupTemplate), { isSignal: true }]
1592
+ }],
1593
+ emptyTemplate: [{
1594
+ type: i0.ContentChild,
1595
+ args: [i0.forwardRef(() => AerisAutoCompleteEmptyTemplate), { isSignal: true }]
1596
+ }],
1597
+ loadingTemplate: [{
1598
+ type: i0.ContentChild,
1599
+ args: [i0.forwardRef(() => AerisAutoCompleteLoadingTemplate), { isSignal: true }]
1600
+ }]
1601
+ }
1602
+ });
753
1603
  export { AerisAutoComplete, AerisAutoCompleteEmptyTemplate, AerisAutoCompleteGroupTemplate, AerisAutoCompleteLoadingTemplate, AerisAutoCompleteOptionTemplate };
754
- //# sourceMappingURL=aeris-ui-core-auto-complete.mjs.map
1604
+
1605
+ //# sourceMappingURL=aeris-ui-core-auto-complete.mjs.map