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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/README.md +200 -191
  2. package/fesm2022/aeris-ui-core-accordion.mjs +646 -255
  3. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  4. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs +1228 -446
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  8. package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  10. package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
  11. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  12. package/fesm2022/aeris-ui-core-badge.mjs +562 -115
  13. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  14. package/fesm2022/aeris-ui-core-block-ui.mjs +209 -101
  15. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  16. package/fesm2022/aeris-ui-core-breadcrumb.mjs +581 -189
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  18. package/fesm2022/aeris-ui-core-button-group.mjs +153 -38
  19. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  20. package/fesm2022/aeris-ui-core-button.mjs +741 -139
  21. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  22. package/fesm2022/aeris-ui-core-card.mjs +371 -101
  23. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-carousel.mjs +773 -369
  25. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-cascade-select.mjs +1171 -521
  27. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-chart.mjs +455 -258
  29. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-checkbox.mjs +440 -140
  31. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-chip.mjs +430 -117
  33. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  34. package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
  35. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  36. package/fesm2022/aeris-ui-core-code-block.mjs +637 -0
  37. package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
  38. package/fesm2022/aeris-ui-core-color-picker.mjs +1340 -700
  39. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  40. package/fesm2022/aeris-ui-core-compare.mjs +823 -318
  41. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  42. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1404 -555
  43. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  44. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1471 -740
  45. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  46. package/fesm2022/aeris-ui-core-context-menu.mjs +918 -443
  47. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  48. package/fesm2022/aeris-ui-core-date-picker.mjs +1942 -1123
  49. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  50. package/fesm2022/aeris-ui-core-dialog.mjs +1079 -346
  51. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  52. package/fesm2022/aeris-ui-core-divider.mjs +204 -43
  53. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  54. package/fesm2022/aeris-ui-core-drawer.mjs +1015 -322
  55. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +410 -254
  57. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-editor.mjs +967 -587
  59. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-file-upload.mjs +1379 -522
  61. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
  63. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
  65. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
  67. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  68. package/fesm2022/aeris-ui-core-form-field.mjs +688 -0
  69. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
  70. package/fesm2022/aeris-ui-core-galleria.mjs +2446 -1117
  71. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  72. package/fesm2022/aeris-ui-core-glass.mjs +110 -33
  73. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-icon-field.mjs +426 -98
  75. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-inplace.mjs +452 -130
  77. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-input-group.mjs +413 -107
  79. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  80. package/fesm2022/aeris-ui-core-input-mask.mjs +658 -255
  81. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  82. package/fesm2022/aeris-ui-core-input-number.mjs +926 -291
  83. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
  85. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  86. package/fesm2022/aeris-ui-core-input-text.mjs +625 -158
  87. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  88. package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
  89. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-mega-menu.mjs +613 -382
  91. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-menu.mjs +1062 -472
  93. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-menubar.mjs +994 -393
  95. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-message.mjs +477 -145
  97. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-meter-group.mjs +623 -230
  99. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-multi-select.mjs +1598 -561
  101. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  102. package/fesm2022/aeris-ui-core-order-list.mjs +592 -220
  103. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-organization-chart.mjs +485 -199
  105. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-paginator.mjs +428 -123
  107. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-panel.mjs +596 -196
  109. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-password.mjs +925 -249
  111. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-pick-list.mjs +1280 -659
  113. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-popover.mjs +912 -375
  115. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-progress-bar.mjs +549 -176
  117. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-progress-spinner.mjs +410 -133
  119. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-radio-button.mjs +394 -124
  121. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-rating.mjs +506 -231
  123. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
  125. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  126. package/fesm2022/aeris-ui-core-scroll-top.mjs +226 -63
  127. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  128. package/fesm2022/aeris-ui-core-select.mjs +1845 -648
  129. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  130. package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
  131. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  132. package/fesm2022/aeris-ui-core-slider.mjs +884 -430
  133. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  134. package/fesm2022/aeris-ui-core-speed-dial.mjs +861 -337
  135. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  136. package/fesm2022/aeris-ui-core-split-button.mjs +955 -266
  137. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  138. package/fesm2022/aeris-ui-core-splitter.mjs +812 -352
  139. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  140. package/fesm2022/aeris-ui-core-stepper.mjs +697 -254
  141. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  142. package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
  143. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  144. package/fesm2022/aeris-ui-core-table.mjs +2034 -869
  145. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-tabs.mjs +789 -279
  147. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-textarea.mjs +856 -219
  149. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  150. package/fesm2022/aeris-ui-core-theme-builder.mjs +1284 -1399
  151. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  152. package/fesm2022/aeris-ui-core-theming.mjs +132 -144
  153. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  154. package/fesm2022/aeris-ui-core-tiered-menu.mjs +909 -441
  155. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  156. package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
  157. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  158. package/fesm2022/aeris-ui-core-toast.mjs +1076 -384
  159. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  160. package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
  161. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  162. package/fesm2022/aeris-ui-core-toolbar.mjs +458 -121
  163. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  164. package/fesm2022/aeris-ui-core-tooltip.mjs +625 -330
  165. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  166. package/fesm2022/aeris-ui-core-tree-select.mjs +1453 -621
  167. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  168. package/fesm2022/aeris-ui-core-tree-table.mjs +2019 -940
  169. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  170. package/fesm2022/aeris-ui-core-tree.mjs +1107 -658
  171. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  172. package/fesm2022/aeris-ui-core.mjs +985 -316
  173. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  174. package/package.json +20 -8
  175. package/schematics/ng-add/schema.json +1 -1
  176. package/schematics/runtime/schematics/ng-add/options.js +4 -4
  177. package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
  178. package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
  179. package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
  180. package/schematics/runtime/theme-builder/aeris-contrast.js +6 -17
  181. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  182. package/schematics/runtime/theme-builder/aeris-foundation.js +10 -4
  183. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  184. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +28 -5
  185. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
  186. package/schematics/runtime/theme-builder/aeris-theme-generator.js +2 -2
  187. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
  188. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +22 -8
  189. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
  190. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +12 -4
  191. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
  192. package/schematics/runtime/theme-builder/aeris-theme-validation.js +7 -1
  193. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
  194. package/schematics/runtime/theme-builder/aeris-theme.js +49 -33
  195. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  196. package/styles/_fallback-colors.scss +10 -0
  197. package/styles/_mobile.scss +16 -0
  198. package/styles/_tokens.scss +5 -5
  199. package/styles/aeris.css +412 -125
  200. package/styles/controls.css +61 -29
  201. package/tools/aeris-theme.mjs +2 -2
  202. package/tools/aeris-theme.schema.json +5 -2
  203. package/types/aeris-ui-core-accordion.d.ts +167 -93
  204. package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
  205. package/types/aeris-ui-core-auto-complete.d.ts +327 -140
  206. package/types/aeris-ui-core-auto-focus.d.ts +24 -16
  207. package/types/aeris-ui-core-avatar.d.ts +112 -42
  208. package/types/aeris-ui-core-badge.d.ts +160 -46
  209. package/types/aeris-ui-core-block-ui.d.ts +47 -27
  210. package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
  211. package/types/aeris-ui-core-button-group.d.ts +37 -16
  212. package/types/aeris-ui-core-button.d.ts +226 -67
  213. package/types/aeris-ui-core-card.d.ts +74 -37
  214. package/types/aeris-ui-core-carousel.d.ts +201 -117
  215. package/types/aeris-ui-core-cascade-select.d.ts +257 -123
  216. package/types/aeris-ui-core-chart.d.ts +134 -84
  217. package/types/aeris-ui-core-checkbox.d.ts +139 -54
  218. package/types/aeris-ui-core-chip.d.ts +116 -51
  219. package/types/aeris-ui-core-class-names.d.ts +22 -20
  220. package/types/aeris-ui-core-code-block.d.ts +188 -0
  221. package/types/aeris-ui-core-color-picker.d.ts +348 -143
  222. package/types/aeris-ui-core-compare.d.ts +224 -102
  223. package/types/aeris-ui-core-confirm-dialog.d.ts +442 -245
  224. package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
  225. package/types/aeris-ui-core-context-menu.d.ts +264 -146
  226. package/types/aeris-ui-core-date-picker.d.ts +489 -217
  227. package/types/aeris-ui-core-dialog.d.ts +288 -117
  228. package/types/aeris-ui-core-divider.d.ts +58 -20
  229. package/types/aeris-ui-core-drawer.d.ts +273 -112
  230. package/types/aeris-ui-core-dynamic-dialog.d.ts +158 -137
  231. package/types/aeris-ui-core-editor.d.ts +250 -123
  232. package/types/aeris-ui-core-file-upload.d.ts +367 -197
  233. package/types/aeris-ui-core-filter-service.d.ts +48 -52
  234. package/types/aeris-ui-core-fluid.d.ts +12 -9
  235. package/types/aeris-ui-core-focus-trap.d.ts +39 -31
  236. package/types/aeris-ui-core-form-field.d.ts +163 -0
  237. package/types/aeris-ui-core-galleria.d.ts +588 -256
  238. package/types/aeris-ui-core-glass.d.ts +24 -11
  239. package/types/aeris-ui-core-icon-field.d.ts +94 -32
  240. package/types/aeris-ui-core-inplace.d.ts +123 -62
  241. package/types/aeris-ui-core-input-group.d.ts +84 -33
  242. package/types/aeris-ui-core-input-mask.d.ts +194 -69
  243. package/types/aeris-ui-core-input-number.d.ts +272 -87
  244. package/types/aeris-ui-core-input-otp.d.ts +191 -81
  245. package/types/aeris-ui-core-input-text.d.ts +185 -60
  246. package/types/aeris-ui-core-key-filter.d.ts +53 -39
  247. package/types/aeris-ui-core-mega-menu.d.ts +175 -121
  248. package/types/aeris-ui-core-menu.d.ts +277 -168
  249. package/types/aeris-ui-core-menubar.d.ts +273 -135
  250. package/types/aeris-ui-core-message.d.ts +132 -60
  251. package/types/aeris-ui-core-meter-group.d.ts +163 -90
  252. package/types/aeris-ui-core-multi-select.d.ts +439 -180
  253. package/types/aeris-ui-core-order-list.d.ts +144 -66
  254. package/types/aeris-ui-core-organization-chart.d.ts +133 -77
  255. package/types/aeris-ui-core-paginator.d.ts +93 -38
  256. package/types/aeris-ui-core-panel.d.ts +149 -78
  257. package/types/aeris-ui-core-password.d.ts +258 -102
  258. package/types/aeris-ui-core-pick-list.d.ts +374 -179
  259. package/types/aeris-ui-core-popover.d.ts +219 -105
  260. package/types/aeris-ui-core-progress-bar.d.ts +157 -73
  261. package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
  262. package/types/aeris-ui-core-radio-button.d.ts +124 -50
  263. package/types/aeris-ui-core-rating.d.ts +149 -76
  264. package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
  265. package/types/aeris-ui-core-scroll-top.d.ts +66 -29
  266. package/types/aeris-ui-core-select.d.ts +475 -217
  267. package/types/aeris-ui-core-skeleton.d.ts +39 -17
  268. package/types/aeris-ui-core-slider.d.ts +270 -115
  269. package/types/aeris-ui-core-speed-dial.d.ts +241 -111
  270. package/types/aeris-ui-core-split-button.d.ts +267 -113
  271. package/types/aeris-ui-core-splitter.d.ts +225 -106
  272. package/types/aeris-ui-core-stepper.d.ts +184 -91
  273. package/types/aeris-ui-core-style-class.d.ts +141 -71
  274. package/types/aeris-ui-core-table.d.ts +596 -304
  275. package/types/aeris-ui-core-tabs.d.ts +181 -76
  276. package/types/aeris-ui-core-textarea.d.ts +261 -78
  277. package/types/aeris-ui-core-theme-builder.d.ts +472 -450
  278. package/types/aeris-ui-core-theming.d.ts +42 -45
  279. package/types/aeris-ui-core-tiered-menu.d.ts +251 -142
  280. package/types/aeris-ui-core-timeline.d.ts +109 -71
  281. package/types/aeris-ui-core-toast.d.ts +225 -115
  282. package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
  283. package/types/aeris-ui-core-toolbar.d.ts +98 -41
  284. package/types/aeris-ui-core-tooltip.d.ts +157 -88
  285. package/types/aeris-ui-core-tree-select.d.ts +364 -171
  286. package/types/aeris-ui-core-tree-table.d.ts +566 -286
  287. package/types/aeris-ui-core-tree.d.ts +270 -165
  288. package/types/aeris-ui-core.d.ts +197 -72
@@ -1,401 +1,789 @@
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, ɵ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.2",
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.2",
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.2",
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.2",
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.2",
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.2",
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.2",
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.2",
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.2",
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.2",
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.2",
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.2",
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
+ dismissOverlay = () => {
131
+ this.closePanel();
132
+ return true;
133
+ };
134
+ controlElement = viewChild("control", ...ngDevMode ? [{ debugName: "controlElement" }] : /* istanbul ignore next */ []);
135
+ inputElement = viewChild("textInput", ...ngDevMode ? [{ debugName: "inputElement" }] : /* istanbul ignore next */ []);
136
+ suggestionsPanel = viewChild("suggestionsPanel", ...ngDevMode ? [{ debugName: "suggestionsPanel" }] : /* istanbul ignore next */ []);
137
+ panelPortal = viewChild(ɵAerisAppendTo, ...ngDevMode ? [{ debugName: "panelPortal" }] : /* istanbul ignore next */ []);
138
+ generatedId = `aeris-auto-complete-${++nextAutoCompleteId}`;
139
+ formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
140
+ activeValue = signal(null, ...ngDevMode ? [{ debugName: "activeValue" }] : /* istanbul ignore next */ []);
141
+ panelOpen = signal(false, ...ngDevMode ? [{ debugName: "panelOpen" }] : /* istanbul ignore next */ []);
142
+ suppressNextFocusOpen = false;
143
+ onChange = () => void 0;
144
+ onTouched = () => void 0;
145
+ value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
146
+ suggestions = input([], ...ngDevMode ? [{ debugName: "suggestions" }] : /* istanbul ignore next */ []);
147
+ inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
148
+ name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
149
+ placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
150
+ autocomplete = input("off", ...ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []);
151
+ ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
152
+ ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
153
+ ariaDescribedBy = input(...ngDevMode ? [void 0, { debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
154
+ listboxAriaLabel = input("Suggestions", ...ngDevMode ? [{ debugName: "listboxAriaLabel" }] : /* istanbul ignore next */ []);
155
+ dropdownAriaLabel = input("Show suggestions", ...ngDevMode ? [{ debugName: "dropdownAriaLabel" }] : /* istanbul ignore next */ []);
156
+ clearButtonAriaLabel = input("Clear value", ...ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []);
157
+ emptyMessage = input("No suggestions found", ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
158
+ loadingMessage = input("Loading suggestions", ...ngDevMode ? [{ debugName: "loadingMessage" }] : /* istanbul ignore next */ []);
159
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
160
+ appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
161
+ filterMatchMode = input("contains", ...ngDevMode ? [{ debugName: "filterMatchMode" }] : /* istanbul ignore next */ []);
162
+ minLength = input(1, ...ngDevMode ? [{ debugName: "minLength" }] : /* istanbul ignore next */ []);
163
+ panelMaxHeight = input("16rem", ...ngDevMode ? [{ debugName: "panelMaxHeight" }] : /* istanbul ignore next */ []);
164
+ appendTo = input(...ngDevMode ? [void 0, { debugName: "appendTo" }] : /* istanbul ignore next */ []);
165
+ viewportMargin = input(8, ...ngDevMode ? [{ debugName: "viewportMargin" }] : /* istanbul ignore next */ []);
166
+ invalid = input(false, {
167
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
168
+ transform: booleanAttribute
169
+ });
170
+ touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
171
+ displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
172
+ disabled = input(false, {
173
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
174
+ transform: booleanAttribute
175
+ });
176
+ readonly = input(false, {
177
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
178
+ transform: booleanAttribute
179
+ });
180
+ required = input(false, {
181
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
182
+ transform: booleanAttribute
183
+ });
184
+ fluid = input(false, {
185
+ ...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
186
+ transform: booleanAttribute
187
+ });
188
+ clearable = input(false, {
189
+ ...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
190
+ transform: booleanAttribute
191
+ });
192
+ dropdown = input(false, {
193
+ ...ngDevMode ? { debugName: "dropdown" } : /* istanbul ignore next */ {},
194
+ transform: booleanAttribute
195
+ });
196
+ completeOnFocus = input(false, {
197
+ ...ngDevMode ? { debugName: "completeOnFocus" } : /* istanbul ignore next */ {},
198
+ transform: booleanAttribute
199
+ });
200
+ forceSelection = input(false, {
201
+ ...ngDevMode ? { debugName: "forceSelection" } : /* istanbul ignore next */ {},
202
+ transform: booleanAttribute
203
+ });
204
+ autoHighlight = input(true, {
205
+ ...ngDevMode ? { debugName: "autoHighlight" } : /* istanbul ignore next */ {},
206
+ transform: booleanAttribute
207
+ });
208
+ grouped = input(false, {
209
+ ...ngDevMode ? { debugName: "grouped" } : /* istanbul ignore next */ {},
210
+ transform: booleanAttribute
211
+ });
212
+ loading = input(false, {
213
+ ...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
214
+ transform: booleanAttribute
215
+ });
216
+ completed = output();
217
+ selected = output();
218
+ cleared = output();
219
+ opened = output();
220
+ closed = output();
221
+ focused = output();
222
+ blurred = output();
223
+ touch = output();
224
+ optionTemplate = contentChild(AerisAutoCompleteOptionTemplate, ...ngDevMode ? [{ debugName: "optionTemplate" }] : /* istanbul ignore next */ []);
225
+ groupTemplate = contentChild(AerisAutoCompleteGroupTemplate, ...ngDevMode ? [{ debugName: "groupTemplate" }] : /* istanbul ignore next */ []);
226
+ emptyTemplate = contentChild(AerisAutoCompleteEmptyTemplate, ...ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []);
227
+ loadingTemplate = contentChild(AerisAutoCompleteLoadingTemplate, ...ngDevMode ? [{ debugName: "loadingTemplate" }] : /* istanbul ignore next */ []);
228
+ panelId = `${this.generatedId}-panel`;
229
+ resolvedInputId = computed(() => this.inputId() || this.generatedId, ...ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []);
230
+ open = computed(() => this.panelOpen(), ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
231
+ effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
232
+ showClearButton = computed(() => this.clearable() && this.value().length > 0 && !this.effectiveDisabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []);
233
+ filteredOptions = computed(() => {
234
+ const query = this.value().trim();
235
+ if (!this.panelOpen() || !this.completeOnFocus() && query.length < this.minLength()) return [];
236
+ return this.suggestions().filter((option) => this.matchesOption(option, query));
237
+ }, ...ngDevMode ? [{ debugName: "filteredOptions" }] : /* istanbul ignore next */ []);
238
+ optionGroups = computed(() => {
239
+ const groups = /* @__PURE__ */ new Map();
240
+ for (const option of this.filteredOptions()) {
241
+ const group = option.group || "Options";
242
+ groups.set(group, [...groups.get(group) ?? [], option]);
243
+ }
244
+ return [...groups.entries()].map(([label, options]) => ({
245
+ label,
246
+ options
247
+ }));
248
+ }, ...ngDevMode ? [{ debugName: "optionGroups" }] : /* istanbul ignore next */ []);
249
+ activeOptionId = computed(() => {
250
+ const active = this.activeValue();
251
+ return active ? this.optionId(active) : null;
252
+ }, ...ngDevMode ? [{ debugName: "activeOptionId" }] : /* istanbul ignore next */ []);
253
+ writeValue(value) {
254
+ this.value.set(typeof value === "string" ? value : value == null ? "" : String(value));
255
+ }
256
+ registerOnChange(callback) {
257
+ this.onChange = callback;
258
+ }
259
+ registerOnTouched(callback) {
260
+ this.onTouched = callback;
261
+ }
262
+ setDisabledState(disabled) {
263
+ this.formDisabled.set(disabled);
264
+ }
265
+ focus(options) {
266
+ this.inputElement()?.nativeElement.focus(options);
267
+ }
268
+ openPanel(event) {
269
+ if (this.effectiveDisabled() || this.readonly()) return;
270
+ if (!this.panelOpen()) {
271
+ this.panelOpen.set(true);
272
+ this.opened.emit();
273
+ }
274
+ this.completed.emit({
275
+ originalEvent: event ?? new Event("complete"),
276
+ query: this.value()
277
+ });
278
+ this.setInitialActiveOption();
279
+ }
280
+ closePanel() {
281
+ if (!this.panelOpen()) return;
282
+ this.panelPortal()?.restore();
283
+ this.panelOpen.set(false);
284
+ this.activeValue.set(null);
285
+ this.closed.emit();
286
+ }
287
+ togglePanel(event) {
288
+ event.preventDefault();
289
+ this.focus();
290
+ if (this.panelOpen()) this.closePanel();
291
+ else this.openPanel(event);
292
+ }
293
+ clear() {
294
+ if (this.effectiveDisabled() || this.readonly()) return;
295
+ this.setValue("");
296
+ this.activeValue.set(null);
297
+ this.cleared.emit();
298
+ this.closePanel();
299
+ this.focus();
300
+ }
301
+ reset() {
302
+ this.setValue("");
303
+ this.closePanel();
304
+ }
305
+ handleInput(event) {
306
+ const query = event.target.value;
307
+ this.setValue(query);
308
+ this.openPanel(event);
309
+ }
310
+ handleInputClick() {
311
+ if (this.completeOnFocus() || this.dropdown()) this.openPanel();
312
+ }
313
+ handleFocus(event) {
314
+ this.focused.emit(event);
315
+ if (this.suppressNextFocusOpen) {
316
+ this.suppressNextFocusOpen = false;
317
+ return;
318
+ }
319
+ if (this.completeOnFocus()) this.openPanel(event);
320
+ }
321
+ handleBlur(event) {
322
+ this.applyForceSelection();
323
+ this.touch.emit();
324
+ this.onTouched();
325
+ this.blurred.emit(event);
326
+ }
327
+ handleFocusOut(event) {
328
+ const nextTarget = event.relatedTarget;
329
+ const currentTarget = event.currentTarget;
330
+ if (!nextTarget || !currentTarget.contains(nextTarget) && !this.suggestionsPanel()?.nativeElement.contains(nextTarget)) this.closePanel();
331
+ }
332
+ handleInputKeydown(event) {
333
+ switch (event.key) {
334
+ case "ArrowDown":
335
+ event.preventDefault();
336
+ this.openPanel(event);
337
+ this.moveActive(1);
338
+ break;
339
+ case "ArrowUp":
340
+ event.preventDefault();
341
+ this.openPanel(event);
342
+ this.moveActive(-1);
343
+ break;
344
+ case "Home":
345
+ if (this.panelOpen()) {
346
+ event.preventDefault();
347
+ this.setBoundaryActive("first");
348
+ }
349
+ break;
350
+ case "End":
351
+ if (this.panelOpen()) {
352
+ event.preventDefault();
353
+ this.setBoundaryActive("last");
354
+ }
355
+ break;
356
+ case "Enter":
357
+ if (this.panelOpen() && this.activeValue()) {
358
+ event.preventDefault();
359
+ const active = this.enabledOptions().find((option) => option.value === this.activeValue());
360
+ if (active) this.selectOption(active, event);
361
+ }
362
+ break;
363
+ case "Escape": if (this.panelOpen()) {
364
+ event.preventDefault();
365
+ this.closePanel();
366
+ }
367
+ }
368
+ }
369
+ selectOption(option, originalEvent) {
370
+ if (option.disabled || this.effectiveDisabled() || this.readonly()) return;
371
+ this.setValue(option.value);
372
+ this.selected.emit({
373
+ originalEvent,
374
+ value: option.value,
375
+ option
376
+ });
377
+ this.closePanel();
378
+ this.suppressNextFocusOpen = true;
379
+ this.focus();
380
+ }
381
+ optionId(value) {
382
+ return `${this.panelId}-${this.sanitizeId(value)}`;
383
+ }
384
+ isSelected(option) {
385
+ return this.value() === option.value;
386
+ }
387
+ isActive(option) {
388
+ return this.activeValue() === option.value;
389
+ }
390
+ setValue(value) {
391
+ if (this.value() === value) return;
392
+ this.value.set(value);
393
+ this.onChange(value);
394
+ }
395
+ enabledOptions() {
396
+ return this.filteredOptions().filter((option) => !option.disabled);
397
+ }
398
+ setInitialActiveOption() {
399
+ const options = this.enabledOptions();
400
+ if (!this.autoHighlight() || options.length === 0) {
401
+ this.activeValue.set(null);
402
+ return;
403
+ }
404
+ const selected = options.find((option) => option.value === this.value());
405
+ this.activeValue.set((selected ?? options[0]).value);
406
+ }
407
+ moveActive(direction) {
408
+ const options = this.enabledOptions();
409
+ if (options.length === 0) {
410
+ this.activeValue.set(null);
411
+ return;
412
+ }
413
+ const currentIndex = options.findIndex((option) => option.value === this.activeValue());
414
+ const nextIndex = currentIndex < 0 ? direction > 0 ? 0 : options.length - 1 : (currentIndex + direction + options.length) % options.length;
415
+ this.activeValue.set(options[nextIndex]?.value ?? null);
416
+ }
417
+ setBoundaryActive(boundary) {
418
+ const options = this.enabledOptions();
419
+ this.activeValue.set(boundary === "first" ? options[0]?.value ?? null : options.at(-1)?.value ?? null);
420
+ }
421
+ matchesOption(option, query) {
422
+ if (query.length === 0) return true;
423
+ const candidate = `${option.label} ${option.value} ${option.description ?? ""} ${option.group ?? ""}`.trim().toLocaleLowerCase();
424
+ const normalizedQuery = query.toLocaleLowerCase();
425
+ switch (this.filterMatchMode()) {
426
+ case "startsWith": return candidate.startsWith(normalizedQuery);
427
+ case "endsWith": return candidate.endsWith(normalizedQuery);
428
+ case "equals": return candidate === normalizedQuery;
429
+ case "contains": return candidate.includes(normalizedQuery);
430
+ default: return false;
431
+ }
432
+ }
433
+ applyForceSelection() {
434
+ if (!this.forceSelection() || this.value().trim().length === 0) return;
435
+ const normalizedValue = this.value().trim().toLocaleLowerCase();
436
+ const match = this.suggestions().find((option) => option.value.toLocaleLowerCase() === normalizedValue || option.label.toLocaleLowerCase() === normalizedValue);
437
+ if (!match) this.setValue("");
438
+ else if (match.value !== this.value()) this.setValue(match.value);
439
+ }
440
+ sanitizeId(value) {
441
+ const readable = value.toLowerCase().replace(/[^a-z0-9_-]+/g, "-");
442
+ const exact = Array.from(value, (character) => (character.codePointAt(0) ?? 0).toString(16)).join("-");
443
+ return `${readable || "option"}--${exact || "empty"}`;
444
+ }
445
+ preservePointerFocus(event) {
446
+ if (event.pointerType === "mouse") event.preventDefault();
447
+ }
448
+ static ɵfac = i0.ɵɵngDeclareFactory({
449
+ minVersion: "12.0.0",
450
+ version: "22.2.2",
451
+ ngImport: i0,
452
+ type: AerisAutoComplete,
453
+ deps: [],
454
+ target: i0.ɵɵFactoryTarget.Component
455
+ });
456
+ static ɵcmp = i0.ɵɵngDeclareComponent({
457
+ minVersion: "17.0.0",
458
+ version: "22.2.2",
459
+ type: AerisAutoComplete,
460
+ isStandalone: true,
461
+ selector: "aeris-auto-complete",
462
+ inputs: {
463
+ value: {
464
+ classPropertyName: "value",
465
+ publicName: "value",
466
+ isSignal: true,
467
+ isRequired: false,
468
+ transformFunction: null
469
+ },
470
+ suggestions: {
471
+ classPropertyName: "suggestions",
472
+ publicName: "suggestions",
473
+ isSignal: true,
474
+ isRequired: false,
475
+ transformFunction: null
476
+ },
477
+ inputId: {
478
+ classPropertyName: "inputId",
479
+ publicName: "inputId",
480
+ isSignal: true,
481
+ isRequired: false,
482
+ transformFunction: null
483
+ },
484
+ name: {
485
+ classPropertyName: "name",
486
+ publicName: "name",
487
+ isSignal: true,
488
+ isRequired: false,
489
+ transformFunction: null
490
+ },
491
+ placeholder: {
492
+ classPropertyName: "placeholder",
493
+ publicName: "placeholder",
494
+ isSignal: true,
495
+ isRequired: false,
496
+ transformFunction: null
497
+ },
498
+ autocomplete: {
499
+ classPropertyName: "autocomplete",
500
+ publicName: "autocomplete",
501
+ isSignal: true,
502
+ isRequired: false,
503
+ transformFunction: null
504
+ },
505
+ ariaLabel: {
506
+ classPropertyName: "ariaLabel",
507
+ publicName: "ariaLabel",
508
+ isSignal: true,
509
+ isRequired: false,
510
+ transformFunction: null
511
+ },
512
+ ariaLabelledBy: {
513
+ classPropertyName: "ariaLabelledBy",
514
+ publicName: "ariaLabelledBy",
515
+ isSignal: true,
516
+ isRequired: false,
517
+ transformFunction: null
518
+ },
519
+ ariaDescribedBy: {
520
+ classPropertyName: "ariaDescribedBy",
521
+ publicName: "ariaDescribedBy",
522
+ isSignal: true,
523
+ isRequired: false,
524
+ transformFunction: null
525
+ },
526
+ listboxAriaLabel: {
527
+ classPropertyName: "listboxAriaLabel",
528
+ publicName: "listboxAriaLabel",
529
+ isSignal: true,
530
+ isRequired: false,
531
+ transformFunction: null
532
+ },
533
+ dropdownAriaLabel: {
534
+ classPropertyName: "dropdownAriaLabel",
535
+ publicName: "dropdownAriaLabel",
536
+ isSignal: true,
537
+ isRequired: false,
538
+ transformFunction: null
539
+ },
540
+ clearButtonAriaLabel: {
541
+ classPropertyName: "clearButtonAriaLabel",
542
+ publicName: "clearButtonAriaLabel",
543
+ isSignal: true,
544
+ isRequired: false,
545
+ transformFunction: null
546
+ },
547
+ emptyMessage: {
548
+ classPropertyName: "emptyMessage",
549
+ publicName: "emptyMessage",
550
+ isSignal: true,
551
+ isRequired: false,
552
+ transformFunction: null
553
+ },
554
+ loadingMessage: {
555
+ classPropertyName: "loadingMessage",
556
+ publicName: "loadingMessage",
557
+ isSignal: true,
558
+ isRequired: false,
559
+ transformFunction: null
560
+ },
561
+ size: {
562
+ classPropertyName: "size",
563
+ publicName: "size",
564
+ isSignal: true,
565
+ isRequired: false,
566
+ transformFunction: null
567
+ },
568
+ appearance: {
569
+ classPropertyName: "appearance",
570
+ publicName: "appearance",
571
+ isSignal: true,
572
+ isRequired: false,
573
+ transformFunction: null
574
+ },
575
+ filterMatchMode: {
576
+ classPropertyName: "filterMatchMode",
577
+ publicName: "filterMatchMode",
578
+ isSignal: true,
579
+ isRequired: false,
580
+ transformFunction: null
581
+ },
582
+ minLength: {
583
+ classPropertyName: "minLength",
584
+ publicName: "minLength",
585
+ isSignal: true,
586
+ isRequired: false,
587
+ transformFunction: null
588
+ },
589
+ panelMaxHeight: {
590
+ classPropertyName: "panelMaxHeight",
591
+ publicName: "panelMaxHeight",
592
+ isSignal: true,
593
+ isRequired: false,
594
+ transformFunction: null
595
+ },
596
+ appendTo: {
597
+ classPropertyName: "appendTo",
598
+ publicName: "appendTo",
599
+ isSignal: true,
600
+ isRequired: false,
601
+ transformFunction: null
602
+ },
603
+ viewportMargin: {
604
+ classPropertyName: "viewportMargin",
605
+ publicName: "viewportMargin",
606
+ isSignal: true,
607
+ isRequired: false,
608
+ transformFunction: null
609
+ },
610
+ invalid: {
611
+ classPropertyName: "invalid",
612
+ publicName: "invalid",
613
+ isSignal: true,
614
+ isRequired: false,
615
+ transformFunction: null
616
+ },
617
+ touched: {
618
+ classPropertyName: "touched",
619
+ publicName: "touched",
620
+ isSignal: true,
621
+ isRequired: false,
622
+ transformFunction: null
623
+ },
624
+ disabled: {
625
+ classPropertyName: "disabled",
626
+ publicName: "disabled",
627
+ isSignal: true,
628
+ isRequired: false,
629
+ transformFunction: null
630
+ },
631
+ readonly: {
632
+ classPropertyName: "readonly",
633
+ publicName: "readonly",
634
+ isSignal: true,
635
+ isRequired: false,
636
+ transformFunction: null
637
+ },
638
+ required: {
639
+ classPropertyName: "required",
640
+ publicName: "required",
641
+ isSignal: true,
642
+ isRequired: false,
643
+ transformFunction: null
644
+ },
645
+ fluid: {
646
+ classPropertyName: "fluid",
647
+ publicName: "fluid",
648
+ isSignal: true,
649
+ isRequired: false,
650
+ transformFunction: null
651
+ },
652
+ clearable: {
653
+ classPropertyName: "clearable",
654
+ publicName: "clearable",
655
+ isSignal: true,
656
+ isRequired: false,
657
+ transformFunction: null
658
+ },
659
+ dropdown: {
660
+ classPropertyName: "dropdown",
661
+ publicName: "dropdown",
662
+ isSignal: true,
663
+ isRequired: false,
664
+ transformFunction: null
665
+ },
666
+ completeOnFocus: {
667
+ classPropertyName: "completeOnFocus",
668
+ publicName: "completeOnFocus",
669
+ isSignal: true,
670
+ isRequired: false,
671
+ transformFunction: null
672
+ },
673
+ forceSelection: {
674
+ classPropertyName: "forceSelection",
675
+ publicName: "forceSelection",
676
+ isSignal: true,
677
+ isRequired: false,
678
+ transformFunction: null
679
+ },
680
+ autoHighlight: {
681
+ classPropertyName: "autoHighlight",
682
+ publicName: "autoHighlight",
683
+ isSignal: true,
684
+ isRequired: false,
685
+ transformFunction: null
686
+ },
687
+ grouped: {
688
+ classPropertyName: "grouped",
689
+ publicName: "grouped",
690
+ isSignal: true,
691
+ isRequired: false,
692
+ transformFunction: null
693
+ },
694
+ loading: {
695
+ classPropertyName: "loading",
696
+ publicName: "loading",
697
+ isSignal: true,
698
+ isRequired: false,
699
+ transformFunction: null
700
+ }
701
+ },
702
+ outputs: {
703
+ value: "valueChange",
704
+ completed: "completed",
705
+ selected: "selected",
706
+ cleared: "cleared",
707
+ opened: "opened",
708
+ closed: "closed",
709
+ focused: "focused",
710
+ blurred: "blurred",
711
+ touch: "touch"
712
+ },
713
+ host: { properties: { "attr.data-fluid": "fluid() || null" } },
714
+ providers: [{
715
+ provide: NG_VALUE_ACCESSOR,
716
+ useExisting: forwardRef(() => AerisAutoComplete),
717
+ multi: true
718
+ }],
719
+ queries: [
720
+ {
721
+ propertyName: "optionTemplate",
722
+ first: true,
723
+ predicate: AerisAutoCompleteOptionTemplate,
724
+ descendants: true,
725
+ isSignal: true
726
+ },
727
+ {
728
+ propertyName: "groupTemplate",
729
+ first: true,
730
+ predicate: AerisAutoCompleteGroupTemplate,
731
+ descendants: true,
732
+ isSignal: true
733
+ },
734
+ {
735
+ propertyName: "emptyTemplate",
736
+ first: true,
737
+ predicate: AerisAutoCompleteEmptyTemplate,
738
+ descendants: true,
739
+ isSignal: true
740
+ },
741
+ {
742
+ propertyName: "loadingTemplate",
743
+ first: true,
744
+ predicate: AerisAutoCompleteLoadingTemplate,
745
+ descendants: true,
746
+ isSignal: true
747
+ }
748
+ ],
749
+ viewQueries: [
750
+ {
751
+ propertyName: "controlElement",
752
+ first: true,
753
+ predicate: ["control"],
754
+ descendants: true,
755
+ isSignal: true
756
+ },
757
+ {
758
+ propertyName: "inputElement",
759
+ first: true,
760
+ predicate: ["textInput"],
761
+ descendants: true,
762
+ isSignal: true
763
+ },
764
+ {
765
+ propertyName: "suggestionsPanel",
766
+ first: true,
767
+ predicate: ["suggestionsPanel"],
768
+ descendants: true,
769
+ isSignal: true
770
+ },
771
+ {
772
+ propertyName: "panelPortal",
773
+ first: true,
774
+ predicate: ɵAerisAppendTo,
775
+ descendants: true,
776
+ isSignal: true
777
+ }
778
+ ],
779
+ ngImport: i0,
780
+ template: `
393
781
  <div
394
782
  class="aeris-auto-complete"
395
783
  [attr.data-size]="size()"
396
784
  [attr.data-appearance]="appearance()"
397
785
  [attr.data-open]="open() || null"
398
- [attr.data-invalid]="invalid() || null"
786
+ [attr.data-invalid]="displayInvalid() || null"
399
787
  [attr.data-disabled]="effectiveDisabled() || null"
400
788
  [attr.data-fluid]="fluid() || null"
401
789
  (focusout)="handleFocusOut($event)"
@@ -404,7 +792,7 @@ class AerisAutoComplete {
404
792
  <input type="hidden" [name]="name()" [value]="value()" />
405
793
  }
406
794
 
407
- <div class="aeris-auto-complete__control">
795
+ <div #control class="aeris-auto-complete__control">
408
796
  <input
409
797
  #textInput
410
798
  class="aeris-auto-complete__input"
@@ -423,9 +811,9 @@ class AerisAutoComplete {
423
811
  [attr.aria-controls]="panelId"
424
812
  [attr.aria-activedescendant]="open() ? activeOptionId() : null"
425
813
  [attr.aria-label]="ariaLabel() || null"
426
- [attr.aria-labelledby]="ariaLabelledby() || null"
427
- [attr.aria-describedby]="ariaDescribedby() || null"
428
- [attr.aria-invalid]="invalid() || null"
814
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
815
+ [attr.aria-describedby]="ariaDescribedBy() || null"
816
+ [attr.aria-invalid]="displayInvalid() || null"
429
817
  [attr.aria-required]="required() || null"
430
818
  (click)="handleInputClick()"
431
819
  (input)="handleInput($event)"
@@ -461,16 +849,15 @@ class AerisAutoComplete {
461
849
  </div>
462
850
 
463
851
  @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
852
  <div
853
+ #suggestionsPanel
473
854
  class="aeris-auto-complete__panel"
855
+ [aerisInternalAppendTo]="appendTo()"
856
+ [aerisInternalAppendToAnchor]="controlElement()?.nativeElement ?? null"
857
+ [aerisInternalAppendToMatchWidth]="true"
858
+ [aerisInternalAppendToCollisionPadding]="viewportMargin()"
859
+ (aerisInternalAppendToOutside)="closePanel()"
860
+ [aerisInternalAppendToDismiss]="dismissOverlay"
474
861
  [id]="panelId"
475
862
  role="listbox"
476
863
  [attr.aria-label]="listboxAriaLabel()"
@@ -513,12 +900,17 @@ class AerisAutoComplete {
513
900
  [disabled]="option.disabled"
514
901
  [attr.aria-selected]="isSelected(option)"
515
902
  [attr.data-active]="isActive(option) || null"
516
- (mousedown)="$event.preventDefault()"
903
+ (pointerdown)="preservePointerFocus($event)"
517
904
  (click)="selectOption(option, $event)"
518
905
  >
519
906
  <ng-container
520
907
  [ngTemplateOutlet]="optionContent"
521
- [ngTemplateOutletContext]="{ $implicit: option, option, selected: isSelected(option), active: isActive(option) }"
908
+ [ngTemplateOutletContext]="{
909
+ $implicit: option,
910
+ option,
911
+ selected: isSelected(option),
912
+ active: isActive(option),
913
+ }"
522
914
  />
523
915
  </button>
524
916
  }
@@ -533,12 +925,17 @@ class AerisAutoComplete {
533
925
  [disabled]="option.disabled"
534
926
  [attr.aria-selected]="isSelected(option)"
535
927
  [attr.data-active]="isActive(option) || null"
536
- (mousedown)="$event.preventDefault()"
928
+ (pointerdown)="preservePointerFocus($event)"
537
929
  (click)="selectOption(option, $event)"
538
930
  >
539
931
  <ng-container
540
932
  [ngTemplateOutlet]="optionContent"
541
- [ngTemplateOutletContext]="{ $implicit: option, option, selected: isSelected(option), active: isActive(option) }"
933
+ [ngTemplateOutletContext]="{
934
+ $implicit: option,
935
+ option,
936
+ selected: isSelected(option),
937
+ active: isActive(option),
938
+ }"
542
939
  />
543
940
  </button>
544
941
  }
@@ -560,17 +957,55 @@ class AerisAutoComplete {
560
957
  }
561
958
  }
562
959
  </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: `
960
+ `,
961
+ isInline: true,
962
+ 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, #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)}}\n"],
963
+ dependencies: [{
964
+ kind: "directive",
965
+ type: NgTemplateOutlet,
966
+ selector: "[ngTemplateOutlet]",
967
+ inputs: [
968
+ "ngTemplateOutletContext",
969
+ "ngTemplateOutlet",
970
+ "ngTemplateOutletInjector"
971
+ ]
972
+ }, {
973
+ kind: "directive",
974
+ type: ɵAerisAppendTo,
975
+ selector: "[aerisInternalAppendTo]",
976
+ inputs: [
977
+ "aerisInternalAppendTo",
978
+ "aerisInternalAppendToDefault",
979
+ "aerisInternalAppendToAnchor",
980
+ "aerisInternalAppendToOffset",
981
+ "aerisInternalAppendToMatchWidth",
982
+ "aerisInternalAppendToPlacement",
983
+ "aerisInternalAppendToAlignment",
984
+ "aerisInternalAppendToCollisionPadding",
985
+ "aerisInternalAppendToPositionSelf",
986
+ "aerisInternalAppendToDismiss"
987
+ ],
988
+ outputs: ["aerisInternalAppendToOutside"]
989
+ }]
990
+ });
991
+ };
992
+ i0.ɵɵngDeclareClassMetadata({
993
+ minVersion: "12.0.0",
994
+ version: "22.2.2",
995
+ ngImport: i0,
996
+ type: AerisAutoComplete,
997
+ decorators: [{
998
+ type: Component,
999
+ args: [{
1000
+ selector: "aeris-auto-complete",
1001
+ imports: [NgTemplateOutlet, ɵAerisAppendTo],
1002
+ template: `
568
1003
  <div
569
1004
  class="aeris-auto-complete"
570
1005
  [attr.data-size]="size()"
571
1006
  [attr.data-appearance]="appearance()"
572
1007
  [attr.data-open]="open() || null"
573
- [attr.data-invalid]="invalid() || null"
1008
+ [attr.data-invalid]="displayInvalid() || null"
574
1009
  [attr.data-disabled]="effectiveDisabled() || null"
575
1010
  [attr.data-fluid]="fluid() || null"
576
1011
  (focusout)="handleFocusOut($event)"
@@ -579,7 +1014,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
579
1014
  <input type="hidden" [name]="name()" [value]="value()" />
580
1015
  }
581
1016
 
582
- <div class="aeris-auto-complete__control">
1017
+ <div #control class="aeris-auto-complete__control">
583
1018
  <input
584
1019
  #textInput
585
1020
  class="aeris-auto-complete__input"
@@ -598,9 +1033,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
598
1033
  [attr.aria-controls]="panelId"
599
1034
  [attr.aria-activedescendant]="open() ? activeOptionId() : null"
600
1035
  [attr.aria-label]="ariaLabel() || null"
601
- [attr.aria-labelledby]="ariaLabelledby() || null"
602
- [attr.aria-describedby]="ariaDescribedby() || null"
603
- [attr.aria-invalid]="invalid() || null"
1036
+ [attr.aria-labelledby]="ariaLabelledBy() || null"
1037
+ [attr.aria-describedby]="ariaDescribedBy() || null"
1038
+ [attr.aria-invalid]="displayInvalid() || null"
604
1039
  [attr.aria-required]="required() || null"
605
1040
  (click)="handleInputClick()"
606
1041
  (input)="handleInput($event)"
@@ -636,16 +1071,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
636
1071
  </div>
637
1072
 
638
1073
  @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
1074
  <div
1075
+ #suggestionsPanel
648
1076
  class="aeris-auto-complete__panel"
1077
+ [aerisInternalAppendTo]="appendTo()"
1078
+ [aerisInternalAppendToAnchor]="controlElement()?.nativeElement ?? null"
1079
+ [aerisInternalAppendToMatchWidth]="true"
1080
+ [aerisInternalAppendToCollisionPadding]="viewportMargin()"
1081
+ (aerisInternalAppendToOutside)="closePanel()"
1082
+ [aerisInternalAppendToDismiss]="dismissOverlay"
649
1083
  [id]="panelId"
650
1084
  role="listbox"
651
1085
  [attr.aria-label]="listboxAriaLabel()"
@@ -688,12 +1122,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
688
1122
  [disabled]="option.disabled"
689
1123
  [attr.aria-selected]="isSelected(option)"
690
1124
  [attr.data-active]="isActive(option) || null"
691
- (mousedown)="$event.preventDefault()"
1125
+ (pointerdown)="preservePointerFocus($event)"
692
1126
  (click)="selectOption(option, $event)"
693
1127
  >
694
1128
  <ng-container
695
1129
  [ngTemplateOutlet]="optionContent"
696
- [ngTemplateOutletContext]="{ $implicit: option, option, selected: isSelected(option), active: isActive(option) }"
1130
+ [ngTemplateOutletContext]="{
1131
+ $implicit: option,
1132
+ option,
1133
+ selected: isSelected(option),
1134
+ active: isActive(option),
1135
+ }"
697
1136
  />
698
1137
  </button>
699
1138
  }
@@ -708,12 +1147,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
708
1147
  [disabled]="option.disabled"
709
1148
  [attr.aria-selected]="isSelected(option)"
710
1149
  [attr.data-active]="isActive(option) || null"
711
- (mousedown)="$event.preventDefault()"
1150
+ (pointerdown)="preservePointerFocus($event)"
712
1151
  (click)="selectOption(option, $event)"
713
1152
  >
714
1153
  <ng-container
715
1154
  [ngTemplateOutlet]="optionContent"
716
- [ngTemplateOutletContext]="{ $implicit: option, option, selected: isSelected(option), active: isActive(option) }"
1155
+ [ngTemplateOutletContext]="{
1156
+ $implicit: option,
1157
+ option,
1158
+ selected: isSelected(option),
1159
+ active: isActive(option),
1160
+ }"
717
1161
  />
718
1162
  </button>
719
1163
  }
@@ -735,20 +1179,358 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
735
1179
  }
736
1180
  }
737
1181
  </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
-
1182
+ `,
1183
+ providers: [{
1184
+ provide: NG_VALUE_ACCESSOR,
1185
+ useExisting: forwardRef(() => AerisAutoComplete),
1186
+ multi: true
1187
+ }],
1188
+ host: { "[attr.data-fluid]": "fluid() || null" },
1189
+ 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, #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)}}\n"]
1190
+ }]
1191
+ }],
1192
+ propDecorators: {
1193
+ controlElement: [{
1194
+ type: i0.ViewChild,
1195
+ args: ["control", { isSignal: true }]
1196
+ }],
1197
+ inputElement: [{
1198
+ type: i0.ViewChild,
1199
+ args: ["textInput", { isSignal: true }]
1200
+ }],
1201
+ suggestionsPanel: [{
1202
+ type: i0.ViewChild,
1203
+ args: ["suggestionsPanel", { isSignal: true }]
1204
+ }],
1205
+ panelPortal: [{
1206
+ type: i0.ViewChild,
1207
+ args: [i0.forwardRef(() => ɵAerisAppendTo), { isSignal: true }]
1208
+ }],
1209
+ value: [{
1210
+ type: i0.Input,
1211
+ args: [{
1212
+ isSignal: true,
1213
+ alias: "value",
1214
+ required: false
1215
+ }]
1216
+ }, {
1217
+ type: i0.Output,
1218
+ args: ["valueChange"]
1219
+ }],
1220
+ suggestions: [{
1221
+ type: i0.Input,
1222
+ args: [{
1223
+ isSignal: true,
1224
+ alias: "suggestions",
1225
+ required: false
1226
+ }]
1227
+ }],
1228
+ inputId: [{
1229
+ type: i0.Input,
1230
+ args: [{
1231
+ isSignal: true,
1232
+ alias: "inputId",
1233
+ required: false
1234
+ }]
1235
+ }],
1236
+ name: [{
1237
+ type: i0.Input,
1238
+ args: [{
1239
+ isSignal: true,
1240
+ alias: "name",
1241
+ required: false
1242
+ }]
1243
+ }],
1244
+ placeholder: [{
1245
+ type: i0.Input,
1246
+ args: [{
1247
+ isSignal: true,
1248
+ alias: "placeholder",
1249
+ required: false
1250
+ }]
1251
+ }],
1252
+ autocomplete: [{
1253
+ type: i0.Input,
1254
+ args: [{
1255
+ isSignal: true,
1256
+ alias: "autocomplete",
1257
+ required: false
1258
+ }]
1259
+ }],
1260
+ ariaLabel: [{
1261
+ type: i0.Input,
1262
+ args: [{
1263
+ isSignal: true,
1264
+ alias: "ariaLabel",
1265
+ required: false
1266
+ }]
1267
+ }],
1268
+ ariaLabelledBy: [{
1269
+ type: i0.Input,
1270
+ args: [{
1271
+ isSignal: true,
1272
+ alias: "ariaLabelledBy",
1273
+ required: false
1274
+ }]
1275
+ }],
1276
+ ariaDescribedBy: [{
1277
+ type: i0.Input,
1278
+ args: [{
1279
+ isSignal: true,
1280
+ alias: "ariaDescribedBy",
1281
+ required: false
1282
+ }]
1283
+ }],
1284
+ listboxAriaLabel: [{
1285
+ type: i0.Input,
1286
+ args: [{
1287
+ isSignal: true,
1288
+ alias: "listboxAriaLabel",
1289
+ required: false
1290
+ }]
1291
+ }],
1292
+ dropdownAriaLabel: [{
1293
+ type: i0.Input,
1294
+ args: [{
1295
+ isSignal: true,
1296
+ alias: "dropdownAriaLabel",
1297
+ required: false
1298
+ }]
1299
+ }],
1300
+ clearButtonAriaLabel: [{
1301
+ type: i0.Input,
1302
+ args: [{
1303
+ isSignal: true,
1304
+ alias: "clearButtonAriaLabel",
1305
+ required: false
1306
+ }]
1307
+ }],
1308
+ emptyMessage: [{
1309
+ type: i0.Input,
1310
+ args: [{
1311
+ isSignal: true,
1312
+ alias: "emptyMessage",
1313
+ required: false
1314
+ }]
1315
+ }],
1316
+ loadingMessage: [{
1317
+ type: i0.Input,
1318
+ args: [{
1319
+ isSignal: true,
1320
+ alias: "loadingMessage",
1321
+ required: false
1322
+ }]
1323
+ }],
1324
+ size: [{
1325
+ type: i0.Input,
1326
+ args: [{
1327
+ isSignal: true,
1328
+ alias: "size",
1329
+ required: false
1330
+ }]
1331
+ }],
1332
+ appearance: [{
1333
+ type: i0.Input,
1334
+ args: [{
1335
+ isSignal: true,
1336
+ alias: "appearance",
1337
+ required: false
1338
+ }]
1339
+ }],
1340
+ filterMatchMode: [{
1341
+ type: i0.Input,
1342
+ args: [{
1343
+ isSignal: true,
1344
+ alias: "filterMatchMode",
1345
+ required: false
1346
+ }]
1347
+ }],
1348
+ minLength: [{
1349
+ type: i0.Input,
1350
+ args: [{
1351
+ isSignal: true,
1352
+ alias: "minLength",
1353
+ required: false
1354
+ }]
1355
+ }],
1356
+ panelMaxHeight: [{
1357
+ type: i0.Input,
1358
+ args: [{
1359
+ isSignal: true,
1360
+ alias: "panelMaxHeight",
1361
+ required: false
1362
+ }]
1363
+ }],
1364
+ appendTo: [{
1365
+ type: i0.Input,
1366
+ args: [{
1367
+ isSignal: true,
1368
+ alias: "appendTo",
1369
+ required: false
1370
+ }]
1371
+ }],
1372
+ viewportMargin: [{
1373
+ type: i0.Input,
1374
+ args: [{
1375
+ isSignal: true,
1376
+ alias: "viewportMargin",
1377
+ required: false
1378
+ }]
1379
+ }],
1380
+ invalid: [{
1381
+ type: i0.Input,
1382
+ args: [{
1383
+ isSignal: true,
1384
+ alias: "invalid",
1385
+ required: false
1386
+ }]
1387
+ }],
1388
+ touched: [{
1389
+ type: i0.Input,
1390
+ args: [{
1391
+ isSignal: true,
1392
+ alias: "touched",
1393
+ required: false
1394
+ }]
1395
+ }],
1396
+ disabled: [{
1397
+ type: i0.Input,
1398
+ args: [{
1399
+ isSignal: true,
1400
+ alias: "disabled",
1401
+ required: false
1402
+ }]
1403
+ }],
1404
+ readonly: [{
1405
+ type: i0.Input,
1406
+ args: [{
1407
+ isSignal: true,
1408
+ alias: "readonly",
1409
+ required: false
1410
+ }]
1411
+ }],
1412
+ required: [{
1413
+ type: i0.Input,
1414
+ args: [{
1415
+ isSignal: true,
1416
+ alias: "required",
1417
+ required: false
1418
+ }]
1419
+ }],
1420
+ fluid: [{
1421
+ type: i0.Input,
1422
+ args: [{
1423
+ isSignal: true,
1424
+ alias: "fluid",
1425
+ required: false
1426
+ }]
1427
+ }],
1428
+ clearable: [{
1429
+ type: i0.Input,
1430
+ args: [{
1431
+ isSignal: true,
1432
+ alias: "clearable",
1433
+ required: false
1434
+ }]
1435
+ }],
1436
+ dropdown: [{
1437
+ type: i0.Input,
1438
+ args: [{
1439
+ isSignal: true,
1440
+ alias: "dropdown",
1441
+ required: false
1442
+ }]
1443
+ }],
1444
+ completeOnFocus: [{
1445
+ type: i0.Input,
1446
+ args: [{
1447
+ isSignal: true,
1448
+ alias: "completeOnFocus",
1449
+ required: false
1450
+ }]
1451
+ }],
1452
+ forceSelection: [{
1453
+ type: i0.Input,
1454
+ args: [{
1455
+ isSignal: true,
1456
+ alias: "forceSelection",
1457
+ required: false
1458
+ }]
1459
+ }],
1460
+ autoHighlight: [{
1461
+ type: i0.Input,
1462
+ args: [{
1463
+ isSignal: true,
1464
+ alias: "autoHighlight",
1465
+ required: false
1466
+ }]
1467
+ }],
1468
+ grouped: [{
1469
+ type: i0.Input,
1470
+ args: [{
1471
+ isSignal: true,
1472
+ alias: "grouped",
1473
+ required: false
1474
+ }]
1475
+ }],
1476
+ loading: [{
1477
+ type: i0.Input,
1478
+ args: [{
1479
+ isSignal: true,
1480
+ alias: "loading",
1481
+ required: false
1482
+ }]
1483
+ }],
1484
+ completed: [{
1485
+ type: i0.Output,
1486
+ args: ["completed"]
1487
+ }],
1488
+ selected: [{
1489
+ type: i0.Output,
1490
+ args: ["selected"]
1491
+ }],
1492
+ cleared: [{
1493
+ type: i0.Output,
1494
+ args: ["cleared"]
1495
+ }],
1496
+ opened: [{
1497
+ type: i0.Output,
1498
+ args: ["opened"]
1499
+ }],
1500
+ closed: [{
1501
+ type: i0.Output,
1502
+ args: ["closed"]
1503
+ }],
1504
+ focused: [{
1505
+ type: i0.Output,
1506
+ args: ["focused"]
1507
+ }],
1508
+ blurred: [{
1509
+ type: i0.Output,
1510
+ args: ["blurred"]
1511
+ }],
1512
+ touch: [{
1513
+ type: i0.Output,
1514
+ args: ["touch"]
1515
+ }],
1516
+ optionTemplate: [{
1517
+ type: i0.ContentChild,
1518
+ args: [i0.forwardRef(() => AerisAutoCompleteOptionTemplate), { isSignal: true }]
1519
+ }],
1520
+ groupTemplate: [{
1521
+ type: i0.ContentChild,
1522
+ args: [i0.forwardRef(() => AerisAutoCompleteGroupTemplate), { isSignal: true }]
1523
+ }],
1524
+ emptyTemplate: [{
1525
+ type: i0.ContentChild,
1526
+ args: [i0.forwardRef(() => AerisAutoCompleteEmptyTemplate), { isSignal: true }]
1527
+ }],
1528
+ loadingTemplate: [{
1529
+ type: i0.ContentChild,
1530
+ args: [i0.forwardRef(() => AerisAutoCompleteLoadingTemplate), { isSignal: true }]
1531
+ }]
1532
+ }
1533
+ });
753
1534
  export { AerisAutoComplete, AerisAutoCompleteEmptyTemplate, AerisAutoCompleteGroupTemplate, AerisAutoCompleteLoadingTemplate, AerisAutoCompleteOptionTemplate };
754
- //# sourceMappingURL=aeris-ui-core-auto-complete.mjs.map
1535
+
1536
+ //# sourceMappingURL=aeris-ui-core-auto-complete.mjs.map