@aeris-ui/core 22.0.0-alpha.0

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 (295) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +189 -0
  3. package/fesm2022/aeris-ui-core-accordion.mjs +412 -0
  4. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -0
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +107 -0
  6. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -0
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs +754 -0
  8. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -0
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs +63 -0
  10. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -0
  11. package/fesm2022/aeris-ui-core-avatar.mjs +133 -0
  12. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -0
  13. package/fesm2022/aeris-ui-core-badge.mjs +163 -0
  14. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -0
  15. package/fesm2022/aeris-ui-core-block-ui.mjs +139 -0
  16. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -0
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs +433 -0
  18. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -0
  19. package/fesm2022/aeris-ui-core-button-group.mjs +39 -0
  20. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -0
  21. package/fesm2022/aeris-ui-core-button.mjs +246 -0
  22. package/fesm2022/aeris-ui-core-button.mjs.map +1 -0
  23. package/fesm2022/aeris-ui-core-card.mjs +134 -0
  24. package/fesm2022/aeris-ui-core-card.mjs.map +1 -0
  25. package/fesm2022/aeris-ui-core-carousel.mjs +542 -0
  26. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -0
  27. package/fesm2022/aeris-ui-core-cascade-select.mjs +673 -0
  28. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -0
  29. package/fesm2022/aeris-ui-core-chart.mjs +296 -0
  30. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -0
  31. package/fesm2022/aeris-ui-core-checkbox.mjs +220 -0
  32. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -0
  33. package/fesm2022/aeris-ui-core-chip.mjs +200 -0
  34. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -0
  35. package/fesm2022/aeris-ui-core-class-names.mjs +67 -0
  36. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -0
  37. package/fesm2022/aeris-ui-core-color-picker.mjs +1192 -0
  38. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -0
  39. package/fesm2022/aeris-ui-core-compare.mjs +508 -0
  40. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -0
  41. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +818 -0
  42. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -0
  43. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1010 -0
  44. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -0
  45. package/fesm2022/aeris-ui-core-context-menu.mjs +720 -0
  46. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -0
  47. package/fesm2022/aeris-ui-core-date-picker.mjs +1471 -0
  48. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -0
  49. package/fesm2022/aeris-ui-core-dialog.mjs +574 -0
  50. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -0
  51. package/fesm2022/aeris-ui-core-divider.mjs +51 -0
  52. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -0
  53. package/fesm2022/aeris-ui-core-drawer.mjs +549 -0
  54. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -0
  55. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +333 -0
  56. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -0
  57. package/fesm2022/aeris-ui-core-editor.mjs +1548 -0
  58. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -0
  59. package/fesm2022/aeris-ui-core-file-upload.mjs +965 -0
  60. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -0
  61. package/fesm2022/aeris-ui-core-filter-service.mjs +304 -0
  62. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -0
  63. package/fesm2022/aeris-ui-core-fluid.mjs +23 -0
  64. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -0
  65. package/fesm2022/aeris-ui-core-focus-trap.mjs +185 -0
  66. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -0
  67. package/fesm2022/aeris-ui-core-galleria.mjs +1657 -0
  68. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -0
  69. package/fesm2022/aeris-ui-core-glass.mjs +35 -0
  70. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -0
  71. package/fesm2022/aeris-ui-core-icon-field.mjs +113 -0
  72. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -0
  73. package/fesm2022/aeris-ui-core-inplace.mjs +243 -0
  74. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -0
  75. package/fesm2022/aeris-ui-core-input-group.mjs +110 -0
  76. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -0
  77. package/fesm2022/aeris-ui-core-input-mask.mjs +343 -0
  78. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -0
  79. package/fesm2022/aeris-ui-core-input-number.mjs +497 -0
  80. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -0
  81. package/fesm2022/aeris-ui-core-input-otp.mjs +361 -0
  82. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -0
  83. package/fesm2022/aeris-ui-core-input-text.mjs +226 -0
  84. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -0
  85. package/fesm2022/aeris-ui-core-key-filter.mjs +208 -0
  86. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -0
  87. package/fesm2022/aeris-ui-core-mega-menu.mjs +835 -0
  88. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -0
  89. package/fesm2022/aeris-ui-core-menu.mjs +796 -0
  90. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -0
  91. package/fesm2022/aeris-ui-core-menubar.mjs +729 -0
  92. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -0
  93. package/fesm2022/aeris-ui-core-message.mjs +225 -0
  94. package/fesm2022/aeris-ui-core-message.mjs.map +1 -0
  95. package/fesm2022/aeris-ui-core-meter-group.mjs +377 -0
  96. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -0
  97. package/fesm2022/aeris-ui-core-multi-select.mjs +1033 -0
  98. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -0
  99. package/fesm2022/aeris-ui-core-order-list.mjs +351 -0
  100. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -0
  101. package/fesm2022/aeris-ui-core-organization-chart.mjs +382 -0
  102. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -0
  103. package/fesm2022/aeris-ui-core-paginator.mjs +254 -0
  104. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -0
  105. package/fesm2022/aeris-ui-core-panel.mjs +352 -0
  106. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -0
  107. package/fesm2022/aeris-ui-core-password.mjs +479 -0
  108. package/fesm2022/aeris-ui-core-password.mjs.map +1 -0
  109. package/fesm2022/aeris-ui-core-pick-list.mjs +939 -0
  110. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -0
  111. package/fesm2022/aeris-ui-core-popover.mjs +535 -0
  112. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -0
  113. package/fesm2022/aeris-ui-core-progress-bar.mjs +260 -0
  114. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -0
  115. package/fesm2022/aeris-ui-core-progress-spinner.mjs +218 -0
  116. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -0
  117. package/fesm2022/aeris-ui-core-radio-button.mjs +194 -0
  118. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -0
  119. package/fesm2022/aeris-ui-core-rating.mjs +385 -0
  120. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -0
  121. package/fesm2022/aeris-ui-core-scroll-panel.mjs +211 -0
  122. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -0
  123. package/fesm2022/aeris-ui-core-scroll-top.mjs +94 -0
  124. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -0
  125. package/fesm2022/aeris-ui-core-select.mjs +1134 -0
  126. package/fesm2022/aeris-ui-core-select.mjs.map +1 -0
  127. package/fesm2022/aeris-ui-core-skeleton.mjs +47 -0
  128. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -0
  129. package/fesm2022/aeris-ui-core-slider.mjs +724 -0
  130. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -0
  131. package/fesm2022/aeris-ui-core-speed-dial.mjs +589 -0
  132. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -0
  133. package/fesm2022/aeris-ui-core-split-button.mjs +532 -0
  134. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -0
  135. package/fesm2022/aeris-ui-core-splitter.mjs +488 -0
  136. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -0
  137. package/fesm2022/aeris-ui-core-stepper.mjs +437 -0
  138. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -0
  139. package/fesm2022/aeris-ui-core-style-class.mjs +344 -0
  140. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -0
  141. package/fesm2022/aeris-ui-core-table.mjs +1580 -0
  142. package/fesm2022/aeris-ui-core-table.mjs.map +1 -0
  143. package/fesm2022/aeris-ui-core-tabs.mjs +438 -0
  144. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -0
  145. package/fesm2022/aeris-ui-core-textarea.mjs +349 -0
  146. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -0
  147. package/fesm2022/aeris-ui-core-theme-builder.mjs +1565 -0
  148. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -0
  149. package/fesm2022/aeris-ui-core-theming.mjs +150 -0
  150. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -0
  151. package/fesm2022/aeris-ui-core-tiered-menu.mjs +718 -0
  152. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -0
  153. package/fesm2022/aeris-ui-core-timeline.mjs +278 -0
  154. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -0
  155. package/fesm2022/aeris-ui-core-toast.mjs +422 -0
  156. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -0
  157. package/fesm2022/aeris-ui-core-toggle-switch.mjs +202 -0
  158. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -0
  159. package/fesm2022/aeris-ui-core-toolbar.mjs +136 -0
  160. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -0
  161. package/fesm2022/aeris-ui-core-tooltip.mjs +365 -0
  162. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -0
  163. package/fesm2022/aeris-ui-core-tree-select.mjs +995 -0
  164. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -0
  165. package/fesm2022/aeris-ui-core-tree-table.mjs +1600 -0
  166. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -0
  167. package/fesm2022/aeris-ui-core-tree.mjs +962 -0
  168. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -0
  169. package/fesm2022/aeris-ui-core.mjs +360 -0
  170. package/fesm2022/aeris-ui-core.mjs.map +1 -0
  171. package/package.json +432 -0
  172. package/schematics/aeris-setup.schema.json +52 -0
  173. package/schematics/collection.json +10 -0
  174. package/schematics/ng-add/schema.json +64 -0
  175. package/schematics/runtime/package.json +3 -0
  176. package/schematics/runtime/schematics/ng-add/index.js +13 -0
  177. package/schematics/runtime/schematics/ng-add/index.js.map +1 -0
  178. package/schematics/runtime/schematics/ng-add/options.js +338 -0
  179. package/schematics/runtime/schematics/ng-add/options.js.map +1 -0
  180. package/schematics/runtime/schematics/ng-add/schema.js +3 -0
  181. package/schematics/runtime/schematics/ng-add/schema.js.map +1 -0
  182. package/schematics/runtime/schematics/ng-add/workspace.js +273 -0
  183. package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -0
  184. package/schematics/runtime/theme-builder/aeris-color-derivation.js +12 -0
  185. package/schematics/runtime/theme-builder/aeris-color-derivation.js.map +1 -0
  186. package/schematics/runtime/theme-builder/aeris-color.js +263 -0
  187. package/schematics/runtime/theme-builder/aeris-color.js.map +1 -0
  188. package/schematics/runtime/theme-builder/aeris-contrast.js +245 -0
  189. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -0
  190. package/schematics/runtime/theme-builder/aeris-foundation.js +47 -0
  191. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -0
  192. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +121 -0
  193. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -0
  194. package/schematics/runtime/theme-builder/aeris-theme-generator.js +238 -0
  195. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -0
  196. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +101 -0
  197. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -0
  198. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +82 -0
  199. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -0
  200. package/schematics/runtime/theme-builder/aeris-theme-validation.js +183 -0
  201. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -0
  202. package/schematics/runtime/theme-builder/aeris-theme.js +322 -0
  203. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -0
  204. package/schematics/runtime/theme-builder/public-api.js +17 -0
  205. package/schematics/runtime/theme-builder/public-api.js.map +1 -0
  206. package/styles/_index.scss +1 -0
  207. package/styles/_tokens.scss +13 -0
  208. package/styles/aeris.css +555 -0
  209. package/styles/controls.css +169 -0
  210. package/tools/aeris-theme.mjs +149 -0
  211. package/tools/aeris-theme.schema.json +143 -0
  212. package/types/aeris-ui-core-accordion.d.ts +101 -0
  213. package/types/aeris-ui-core-animate-on-scroll.d.ts +34 -0
  214. package/types/aeris-ui-core-auto-complete.d.ts +154 -0
  215. package/types/aeris-ui-core-auto-focus.d.ts +17 -0
  216. package/types/aeris-ui-core-avatar.d.ts +44 -0
  217. package/types/aeris-ui-core-badge.d.ts +48 -0
  218. package/types/aeris-ui-core-block-ui.d.ts +28 -0
  219. package/types/aeris-ui-core-breadcrumb.d.ts +104 -0
  220. package/types/aeris-ui-core-button-group.d.ts +17 -0
  221. package/types/aeris-ui-core-button.d.ts +71 -0
  222. package/types/aeris-ui-core-card.d.ts +43 -0
  223. package/types/aeris-ui-core-carousel.d.ts +126 -0
  224. package/types/aeris-ui-core-cascade-select.d.ts +130 -0
  225. package/types/aeris-ui-core-chart.d.ts +92 -0
  226. package/types/aeris-ui-core-checkbox.d.ts +55 -0
  227. package/types/aeris-ui-core-chip.d.ts +56 -0
  228. package/types/aeris-ui-core-class-names.d.ts +21 -0
  229. package/types/aeris-ui-core-color-picker.d.ts +149 -0
  230. package/types/aeris-ui-core-compare.d.ts +109 -0
  231. package/types/aeris-ui-core-confirm-dialog.d.ts +263 -0
  232. package/types/aeris-ui-core-confirm-popup.d.ts +281 -0
  233. package/types/aeris-ui-core-context-menu.d.ts +156 -0
  234. package/types/aeris-ui-core-date-picker.d.ts +226 -0
  235. package/types/aeris-ui-core-dialog.d.ts +124 -0
  236. package/types/aeris-ui-core-divider.d.ts +21 -0
  237. package/types/aeris-ui-core-drawer.d.ts +119 -0
  238. package/types/aeris-ui-core-dynamic-dialog.d.ts +148 -0
  239. package/types/aeris-ui-core-editor.d.ts +130 -0
  240. package/types/aeris-ui-core-file-upload.d.ts +199 -0
  241. package/types/aeris-ui-core-filter-service.d.ts +54 -0
  242. package/types/aeris-ui-core-fluid.d.ts +10 -0
  243. package/types/aeris-ui-core-focus-trap.d.ts +32 -0
  244. package/types/aeris-ui-core-galleria.d.ts +273 -0
  245. package/types/aeris-ui-core-glass.d.ts +17 -0
  246. package/types/aeris-ui-core-icon-field.d.ts +36 -0
  247. package/types/aeris-ui-core-inplace.d.ts +68 -0
  248. package/types/aeris-ui-core-input-group.d.ts +38 -0
  249. package/types/aeris-ui-core-input-mask.d.ts +73 -0
  250. package/types/aeris-ui-core-input-number.d.ts +87 -0
  251. package/types/aeris-ui-core-input-otp.d.ts +88 -0
  252. package/types/aeris-ui-core-input-text.d.ts +63 -0
  253. package/types/aeris-ui-core-key-filter.d.ts +41 -0
  254. package/types/aeris-ui-core-mega-menu.d.ts +130 -0
  255. package/types/aeris-ui-core-menu.d.ts +182 -0
  256. package/types/aeris-ui-core-menubar.d.ts +145 -0
  257. package/types/aeris-ui-core-message.d.ts +65 -0
  258. package/types/aeris-ui-core-meter-group.d.ts +100 -0
  259. package/types/aeris-ui-core-multi-select.d.ts +193 -0
  260. package/types/aeris-ui-core-order-list.d.ts +73 -0
  261. package/types/aeris-ui-core-organization-chart.d.ts +85 -0
  262. package/types/aeris-ui-core-paginator.d.ts +39 -0
  263. package/types/aeris-ui-core-panel.d.ts +85 -0
  264. package/types/aeris-ui-core-password.d.ts +110 -0
  265. package/types/aeris-ui-core-pick-list.d.ts +193 -0
  266. package/types/aeris-ui-core-popover.d.ts +112 -0
  267. package/types/aeris-ui-core-progress-bar.d.ts +81 -0
  268. package/types/aeris-ui-core-progress-spinner.d.ts +51 -0
  269. package/types/aeris-ui-core-radio-button.d.ts +51 -0
  270. package/types/aeris-ui-core-rating.d.ts +80 -0
  271. package/types/aeris-ui-core-scroll-panel.d.ts +66 -0
  272. package/types/aeris-ui-core-scroll-top.d.ts +29 -0
  273. package/types/aeris-ui-core-select.d.ts +223 -0
  274. package/types/aeris-ui-core-skeleton.d.ts +18 -0
  275. package/types/aeris-ui-core-slider.d.ts +117 -0
  276. package/types/aeris-ui-core-speed-dial.d.ts +119 -0
  277. package/types/aeris-ui-core-split-button.d.ts +122 -0
  278. package/types/aeris-ui-core-splitter.d.ts +113 -0
  279. package/types/aeris-ui-core-stepper.d.ts +99 -0
  280. package/types/aeris-ui-core-style-class.d.ts +73 -0
  281. package/types/aeris-ui-core-table.d.ts +333 -0
  282. package/types/aeris-ui-core-tabs.d.ts +82 -0
  283. package/types/aeris-ui-core-textarea.d.ts +80 -0
  284. package/types/aeris-ui-core-theme-builder.d.ts +499 -0
  285. package/types/aeris-ui-core-theming.d.ts +47 -0
  286. package/types/aeris-ui-core-tiered-menu.d.ts +152 -0
  287. package/types/aeris-ui-core-timeline.d.ts +80 -0
  288. package/types/aeris-ui-core-toast.d.ts +127 -0
  289. package/types/aeris-ui-core-toggle-switch.d.ts +52 -0
  290. package/types/aeris-ui-core-toolbar.d.ts +47 -0
  291. package/types/aeris-ui-core-tooltip.d.ts +92 -0
  292. package/types/aeris-ui-core-tree-select.d.ts +187 -0
  293. package/types/aeris-ui-core-tree-table.d.ts +311 -0
  294. package/types/aeris-ui-core-tree.d.ts +179 -0
  295. package/types/aeris-ui-core.d.ts +85 -0
@@ -0,0 +1,754 @@
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
+ }] });
48
+ 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: `
393
+ <div
394
+ class="aeris-auto-complete"
395
+ [attr.data-size]="size()"
396
+ [attr.data-appearance]="appearance()"
397
+ [attr.data-open]="open() || null"
398
+ [attr.data-invalid]="invalid() || null"
399
+ [attr.data-disabled]="effectiveDisabled() || null"
400
+ [attr.data-fluid]="fluid() || null"
401
+ (focusout)="handleFocusOut($event)"
402
+ >
403
+ @if (name()) {
404
+ <input type="hidden" [name]="name()" [value]="value()" />
405
+ }
406
+
407
+ <div class="aeris-auto-complete__control">
408
+ <input
409
+ #textInput
410
+ class="aeris-auto-complete__input"
411
+ type="text"
412
+ role="combobox"
413
+ aria-haspopup="listbox"
414
+ [id]="resolvedInputId()"
415
+ [value]="value()"
416
+ [placeholder]="placeholder()"
417
+ [autocomplete]="autocomplete()"
418
+ [readOnly]="readonly()"
419
+ [required]="required()"
420
+ [disabled]="effectiveDisabled()"
421
+ [attr.aria-autocomplete]="'list'"
422
+ [attr.aria-expanded]="open()"
423
+ [attr.aria-controls]="panelId"
424
+ [attr.aria-activedescendant]="open() ? activeOptionId() : null"
425
+ [attr.aria-label]="ariaLabel() || null"
426
+ [attr.aria-labelledby]="ariaLabelledby() || null"
427
+ [attr.aria-describedby]="ariaDescribedby() || null"
428
+ [attr.aria-invalid]="invalid() || null"
429
+ [attr.aria-required]="required() || null"
430
+ (click)="handleInputClick()"
431
+ (input)="handleInput($event)"
432
+ (keydown)="handleInputKeydown($event)"
433
+ (focus)="handleFocus($event)"
434
+ (blur)="handleBlur($event)"
435
+ />
436
+
437
+ @if (showClearButton()) {
438
+ <button
439
+ type="button"
440
+ class="aeris-auto-complete__clear"
441
+ [attr.aria-label]="clearButtonAriaLabel()"
442
+ (click)="clear()"
443
+ >
444
+ <span aria-hidden="true"></span>
445
+ </button>
446
+ }
447
+
448
+ @if (dropdown()) {
449
+ <button
450
+ type="button"
451
+ class="aeris-auto-complete__dropdown"
452
+ [attr.aria-label]="dropdownAriaLabel()"
453
+ [attr.aria-expanded]="open()"
454
+ [attr.aria-controls]="panelId"
455
+ [disabled]="effectiveDisabled() || readonly()"
456
+ (click)="togglePanel($event)"
457
+ >
458
+ <span aria-hidden="true"></span>
459
+ </button>
460
+ }
461
+ </div>
462
+
463
+ @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
+ <div
473
+ class="aeris-auto-complete__panel"
474
+ [id]="panelId"
475
+ role="listbox"
476
+ [attr.aria-label]="listboxAriaLabel()"
477
+ [style.max-height]="panelMaxHeight()"
478
+ >
479
+ @if (loading()) {
480
+ <div class="aeris-auto-complete__state">
481
+ @if (loadingTemplate(); as template) {
482
+ <ng-container [ngTemplateOutlet]="template.template" />
483
+ } @else {
484
+ {{ loadingMessage() }}
485
+ }
486
+ </div>
487
+ } @else if (filteredOptions().length === 0) {
488
+ <div class="aeris-auto-complete__state">
489
+ @if (emptyTemplate(); as template) {
490
+ <ng-container [ngTemplateOutlet]="template.template" />
491
+ } @else {
492
+ {{ emptyMessage() }}
493
+ }
494
+ </div>
495
+ } @else if (grouped()) {
496
+ @for (group of optionGroups(); track group.label) {
497
+ <div class="aeris-auto-complete__group">
498
+ @if (groupTemplate(); as template) {
499
+ <ng-container
500
+ [ngTemplateOutlet]="template.template"
501
+ [ngTemplateOutletContext]="{ $implicit: group.label, group: group.label }"
502
+ />
503
+ } @else {
504
+ {{ group.label }}
505
+ }
506
+ </div>
507
+ @for (option of group.options; track option.value) {
508
+ <button
509
+ type="button"
510
+ role="option"
511
+ class="aeris-auto-complete__option"
512
+ [id]="optionId(option.value)"
513
+ [disabled]="option.disabled"
514
+ [attr.aria-selected]="isSelected(option)"
515
+ [attr.data-active]="isActive(option) || null"
516
+ (mousedown)="$event.preventDefault()"
517
+ (click)="selectOption(option, $event)"
518
+ >
519
+ <ng-container
520
+ [ngTemplateOutlet]="optionContent"
521
+ [ngTemplateOutletContext]="{ $implicit: option, option, selected: isSelected(option), active: isActive(option) }"
522
+ />
523
+ </button>
524
+ }
525
+ }
526
+ } @else {
527
+ @for (option of filteredOptions(); track option.value) {
528
+ <button
529
+ type="button"
530
+ role="option"
531
+ class="aeris-auto-complete__option"
532
+ [id]="optionId(option.value)"
533
+ [disabled]="option.disabled"
534
+ [attr.aria-selected]="isSelected(option)"
535
+ [attr.data-active]="isActive(option) || null"
536
+ (mousedown)="$event.preventDefault()"
537
+ (click)="selectOption(option, $event)"
538
+ >
539
+ <ng-container
540
+ [ngTemplateOutlet]="optionContent"
541
+ [ngTemplateOutletContext]="{ $implicit: option, option, selected: isSelected(option), active: isActive(option) }"
542
+ />
543
+ </button>
544
+ }
545
+ }
546
+ </div>
547
+ }
548
+ </div>
549
+
550
+ <ng-template #optionContent let-option="option" let-selected="selected" let-active="active">
551
+ @if (optionTemplate(); as template) {
552
+ <ng-container
553
+ [ngTemplateOutlet]="template.template"
554
+ [ngTemplateOutletContext]="{ $implicit: option, option, selected, active }"
555
+ />
556
+ } @else {
557
+ <span class="aeris-auto-complete__option-label">{{ option.label }}</span>
558
+ @if (option.description) {
559
+ <span class="aeris-auto-complete__option-description">{{ option.description }}</span>
560
+ }
561
+ }
562
+ </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: `
568
+ <div
569
+ class="aeris-auto-complete"
570
+ [attr.data-size]="size()"
571
+ [attr.data-appearance]="appearance()"
572
+ [attr.data-open]="open() || null"
573
+ [attr.data-invalid]="invalid() || null"
574
+ [attr.data-disabled]="effectiveDisabled() || null"
575
+ [attr.data-fluid]="fluid() || null"
576
+ (focusout)="handleFocusOut($event)"
577
+ >
578
+ @if (name()) {
579
+ <input type="hidden" [name]="name()" [value]="value()" />
580
+ }
581
+
582
+ <div class="aeris-auto-complete__control">
583
+ <input
584
+ #textInput
585
+ class="aeris-auto-complete__input"
586
+ type="text"
587
+ role="combobox"
588
+ aria-haspopup="listbox"
589
+ [id]="resolvedInputId()"
590
+ [value]="value()"
591
+ [placeholder]="placeholder()"
592
+ [autocomplete]="autocomplete()"
593
+ [readOnly]="readonly()"
594
+ [required]="required()"
595
+ [disabled]="effectiveDisabled()"
596
+ [attr.aria-autocomplete]="'list'"
597
+ [attr.aria-expanded]="open()"
598
+ [attr.aria-controls]="panelId"
599
+ [attr.aria-activedescendant]="open() ? activeOptionId() : null"
600
+ [attr.aria-label]="ariaLabel() || null"
601
+ [attr.aria-labelledby]="ariaLabelledby() || null"
602
+ [attr.aria-describedby]="ariaDescribedby() || null"
603
+ [attr.aria-invalid]="invalid() || null"
604
+ [attr.aria-required]="required() || null"
605
+ (click)="handleInputClick()"
606
+ (input)="handleInput($event)"
607
+ (keydown)="handleInputKeydown($event)"
608
+ (focus)="handleFocus($event)"
609
+ (blur)="handleBlur($event)"
610
+ />
611
+
612
+ @if (showClearButton()) {
613
+ <button
614
+ type="button"
615
+ class="aeris-auto-complete__clear"
616
+ [attr.aria-label]="clearButtonAriaLabel()"
617
+ (click)="clear()"
618
+ >
619
+ <span aria-hidden="true"></span>
620
+ </button>
621
+ }
622
+
623
+ @if (dropdown()) {
624
+ <button
625
+ type="button"
626
+ class="aeris-auto-complete__dropdown"
627
+ [attr.aria-label]="dropdownAriaLabel()"
628
+ [attr.aria-expanded]="open()"
629
+ [attr.aria-controls]="panelId"
630
+ [disabled]="effectiveDisabled() || readonly()"
631
+ (click)="togglePanel($event)"
632
+ >
633
+ <span aria-hidden="true"></span>
634
+ </button>
635
+ }
636
+ </div>
637
+
638
+ @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
+ <div
648
+ class="aeris-auto-complete__panel"
649
+ [id]="panelId"
650
+ role="listbox"
651
+ [attr.aria-label]="listboxAriaLabel()"
652
+ [style.max-height]="panelMaxHeight()"
653
+ >
654
+ @if (loading()) {
655
+ <div class="aeris-auto-complete__state">
656
+ @if (loadingTemplate(); as template) {
657
+ <ng-container [ngTemplateOutlet]="template.template" />
658
+ } @else {
659
+ {{ loadingMessage() }}
660
+ }
661
+ </div>
662
+ } @else if (filteredOptions().length === 0) {
663
+ <div class="aeris-auto-complete__state">
664
+ @if (emptyTemplate(); as template) {
665
+ <ng-container [ngTemplateOutlet]="template.template" />
666
+ } @else {
667
+ {{ emptyMessage() }}
668
+ }
669
+ </div>
670
+ } @else if (grouped()) {
671
+ @for (group of optionGroups(); track group.label) {
672
+ <div class="aeris-auto-complete__group">
673
+ @if (groupTemplate(); as template) {
674
+ <ng-container
675
+ [ngTemplateOutlet]="template.template"
676
+ [ngTemplateOutletContext]="{ $implicit: group.label, group: group.label }"
677
+ />
678
+ } @else {
679
+ {{ group.label }}
680
+ }
681
+ </div>
682
+ @for (option of group.options; track option.value) {
683
+ <button
684
+ type="button"
685
+ role="option"
686
+ class="aeris-auto-complete__option"
687
+ [id]="optionId(option.value)"
688
+ [disabled]="option.disabled"
689
+ [attr.aria-selected]="isSelected(option)"
690
+ [attr.data-active]="isActive(option) || null"
691
+ (mousedown)="$event.preventDefault()"
692
+ (click)="selectOption(option, $event)"
693
+ >
694
+ <ng-container
695
+ [ngTemplateOutlet]="optionContent"
696
+ [ngTemplateOutletContext]="{ $implicit: option, option, selected: isSelected(option), active: isActive(option) }"
697
+ />
698
+ </button>
699
+ }
700
+ }
701
+ } @else {
702
+ @for (option of filteredOptions(); track option.value) {
703
+ <button
704
+ type="button"
705
+ role="option"
706
+ class="aeris-auto-complete__option"
707
+ [id]="optionId(option.value)"
708
+ [disabled]="option.disabled"
709
+ [attr.aria-selected]="isSelected(option)"
710
+ [attr.data-active]="isActive(option) || null"
711
+ (mousedown)="$event.preventDefault()"
712
+ (click)="selectOption(option, $event)"
713
+ >
714
+ <ng-container
715
+ [ngTemplateOutlet]="optionContent"
716
+ [ngTemplateOutletContext]="{ $implicit: option, option, selected: isSelected(option), active: isActive(option) }"
717
+ />
718
+ </button>
719
+ }
720
+ }
721
+ </div>
722
+ }
723
+ </div>
724
+
725
+ <ng-template #optionContent let-option="option" let-selected="selected" let-active="active">
726
+ @if (optionTemplate(); as template) {
727
+ <ng-container
728
+ [ngTemplateOutlet]="template.template"
729
+ [ngTemplateOutletContext]="{ $implicit: option, option, selected, active }"
730
+ />
731
+ } @else {
732
+ <span class="aeris-auto-complete__option-label">{{ option.label }}</span>
733
+ @if (option.description) {
734
+ <span class="aeris-auto-complete__option-description">{{ option.description }}</span>
735
+ }
736
+ }
737
+ </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
+
753
+ export { AerisAutoComplete, AerisAutoCompleteEmptyTemplate, AerisAutoCompleteGroupTemplate, AerisAutoCompleteLoadingTemplate, AerisAutoCompleteOptionTemplate };
754
+ //# sourceMappingURL=aeris-ui-core-auto-complete.mjs.map