@fragiola/primitives-angular 0.0.0-stage → 0.1.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 (290) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/LICENSE +21 -0
  3. package/README.md +54 -2
  4. package/fesm2022/fragiola-primitives-angular-accordion.mjs +567 -0
  5. package/fesm2022/fragiola-primitives-angular-accordion.mjs.map +1 -0
  6. package/fesm2022/fragiola-primitives-angular-alert-dialog.mjs +562 -0
  7. package/fesm2022/fragiola-primitives-angular-alert-dialog.mjs.map +1 -0
  8. package/fesm2022/fragiola-primitives-angular-aspect-ratio.mjs +79 -0
  9. package/fesm2022/fragiola-primitives-angular-aspect-ratio.mjs.map +1 -0
  10. package/fesm2022/fragiola-primitives-angular-async-list.mjs +44 -0
  11. package/fesm2022/fragiola-primitives-angular-async-list.mjs.map +1 -0
  12. package/fesm2022/fragiola-primitives-angular-autocomplete-virtual.mjs +243 -0
  13. package/fesm2022/fragiola-primitives-angular-autocomplete-virtual.mjs.map +1 -0
  14. package/fesm2022/fragiola-primitives-angular-autocomplete.mjs +1751 -0
  15. package/fesm2022/fragiola-primitives-angular-autocomplete.mjs.map +1 -0
  16. package/fesm2022/fragiola-primitives-angular-avatar.mjs +308 -0
  17. package/fesm2022/fragiola-primitives-angular-avatar.mjs.map +1 -0
  18. package/fesm2022/fragiola-primitives-angular-breadcrumbs.mjs +355 -0
  19. package/fesm2022/fragiola-primitives-angular-breadcrumbs.mjs.map +1 -0
  20. package/fesm2022/fragiola-primitives-angular-button.mjs +156 -0
  21. package/fesm2022/fragiola-primitives-angular-button.mjs.map +1 -0
  22. package/fesm2022/fragiola-primitives-angular-calendar-preset.mjs +126 -0
  23. package/fesm2022/fragiola-primitives-angular-calendar-preset.mjs.map +1 -0
  24. package/fesm2022/fragiola-primitives-angular-calendar-view.mjs +289 -0
  25. package/fesm2022/fragiola-primitives-angular-calendar-view.mjs.map +1 -0
  26. package/fesm2022/fragiola-primitives-angular-calendar.mjs +1222 -0
  27. package/fesm2022/fragiola-primitives-angular-calendar.mjs.map +1 -0
  28. package/fesm2022/fragiola-primitives-angular-carousel.mjs +1031 -0
  29. package/fesm2022/fragiola-primitives-angular-carousel.mjs.map +1 -0
  30. package/fesm2022/fragiola-primitives-angular-cascade-select.mjs +1391 -0
  31. package/fesm2022/fragiola-primitives-angular-cascade-select.mjs.map +1 -0
  32. package/fesm2022/fragiola-primitives-angular-checkbox-group.mjs +221 -0
  33. package/fesm2022/fragiola-primitives-angular-checkbox-group.mjs.map +1 -0
  34. package/fesm2022/fragiola-primitives-angular-checkbox.mjs +474 -0
  35. package/fesm2022/fragiola-primitives-angular-checkbox.mjs.map +1 -0
  36. package/fesm2022/fragiola-primitives-angular-clipboard.mjs +389 -0
  37. package/fesm2022/fragiola-primitives-angular-clipboard.mjs.map +1 -0
  38. package/fesm2022/fragiola-primitives-angular-collapsible.mjs +314 -0
  39. package/fesm2022/fragiola-primitives-angular-collapsible.mjs.map +1 -0
  40. package/fesm2022/fragiola-primitives-angular-color-area.mjs +609 -0
  41. package/fesm2022/fragiola-primitives-angular-color-area.mjs.map +1 -0
  42. package/fesm2022/fragiola-primitives-angular-color-field.mjs +675 -0
  43. package/fesm2022/fragiola-primitives-angular-color-field.mjs.map +1 -0
  44. package/fesm2022/fragiola-primitives-angular-color-picker-popover.mjs +572 -0
  45. package/fesm2022/fragiola-primitives-angular-color-picker-popover.mjs.map +1 -0
  46. package/fesm2022/fragiola-primitives-angular-color-picker.mjs +528 -0
  47. package/fesm2022/fragiola-primitives-angular-color-picker.mjs.map +1 -0
  48. package/fesm2022/fragiola-primitives-angular-color-slider.mjs +868 -0
  49. package/fesm2022/fragiola-primitives-angular-color-slider.mjs.map +1 -0
  50. package/fesm2022/fragiola-primitives-angular-color-swatch-picker.mjs +503 -0
  51. package/fesm2022/fragiola-primitives-angular-color-swatch-picker.mjs.map +1 -0
  52. package/fesm2022/fragiola-primitives-angular-color-swatch.mjs +141 -0
  53. package/fesm2022/fragiola-primitives-angular-color-swatch.mjs.map +1 -0
  54. package/fesm2022/fragiola-primitives-angular-color-wheel.mjs +554 -0
  55. package/fesm2022/fragiola-primitives-angular-color-wheel.mjs.map +1 -0
  56. package/fesm2022/fragiola-primitives-angular-combobox-virtual.mjs +247 -0
  57. package/fesm2022/fragiola-primitives-angular-combobox-virtual.mjs.map +1 -0
  58. package/fesm2022/fragiola-primitives-angular-combobox.mjs +2083 -0
  59. package/fesm2022/fragiola-primitives-angular-combobox.mjs.map +1 -0
  60. package/fesm2022/fragiola-primitives-angular-command-virtual.mjs +263 -0
  61. package/fesm2022/fragiola-primitives-angular-command-virtual.mjs.map +1 -0
  62. package/fesm2022/fragiola-primitives-angular-command.mjs +977 -0
  63. package/fesm2022/fragiola-primitives-angular-command.mjs.map +1 -0
  64. package/fesm2022/fragiola-primitives-angular-context-menu.mjs +1012 -0
  65. package/fesm2022/fragiola-primitives-angular-context-menu.mjs.map +1 -0
  66. package/fesm2022/fragiola-primitives-angular-date-field.mjs +1030 -0
  67. package/fesm2022/fragiola-primitives-angular-date-field.mjs.map +1 -0
  68. package/fesm2022/fragiola-primitives-angular-date-picker-input.mjs +511 -0
  69. package/fesm2022/fragiola-primitives-angular-date-picker-input.mjs.map +1 -0
  70. package/fesm2022/fragiola-primitives-angular-date-picker.mjs +991 -0
  71. package/fesm2022/fragiola-primitives-angular-date-picker.mjs.map +1 -0
  72. package/fesm2022/fragiola-primitives-angular-date-range-field.mjs +847 -0
  73. package/fesm2022/fragiola-primitives-angular-date-range-field.mjs.map +1 -0
  74. package/fesm2022/fragiola-primitives-angular-date-range-picker-input.mjs +260 -0
  75. package/fesm2022/fragiola-primitives-angular-date-range-picker-input.mjs.map +1 -0
  76. package/fesm2022/fragiola-primitives-angular-date-range-picker.mjs +128 -0
  77. package/fesm2022/fragiola-primitives-angular-date-range-picker.mjs.map +1 -0
  78. package/fesm2022/fragiola-primitives-angular-dialog.mjs +1076 -0
  79. package/fesm2022/fragiola-primitives-angular-dialog.mjs.map +1 -0
  80. package/fesm2022/fragiola-primitives-angular-direction.mjs +82 -0
  81. package/fesm2022/fragiola-primitives-angular-direction.mjs.map +1 -0
  82. package/fesm2022/fragiola-primitives-angular-drawer.mjs +890 -0
  83. package/fesm2022/fragiola-primitives-angular-drawer.mjs.map +1 -0
  84. package/fesm2022/fragiola-primitives-angular-drop-zone.mjs +189 -0
  85. package/fesm2022/fragiola-primitives-angular-drop-zone.mjs.map +1 -0
  86. package/fesm2022/fragiola-primitives-angular-editable.mjs +955 -0
  87. package/fesm2022/fragiola-primitives-angular-editable.mjs.map +1 -0
  88. package/fesm2022/fragiola-primitives-angular-field.mjs +929 -0
  89. package/fesm2022/fragiola-primitives-angular-field.mjs.map +1 -0
  90. package/fesm2022/fragiola-primitives-angular-fieldset.mjs +164 -0
  91. package/fesm2022/fragiola-primitives-angular-fieldset.mjs.map +1 -0
  92. package/fesm2022/fragiola-primitives-angular-file-upload.mjs +1370 -0
  93. package/fesm2022/fragiola-primitives-angular-file-upload.mjs.map +1 -0
  94. package/fesm2022/fragiola-primitives-angular-form.mjs +162 -0
  95. package/fesm2022/fragiola-primitives-angular-form.mjs.map +1 -0
  96. package/fesm2022/fragiola-primitives-angular-hover-card.mjs +906 -0
  97. package/fesm2022/fragiola-primitives-angular-hover-card.mjs.map +1 -0
  98. package/fesm2022/fragiola-primitives-angular-internal.mjs +980 -0
  99. package/fesm2022/fragiola-primitives-angular-internal.mjs.map +1 -0
  100. package/fesm2022/fragiola-primitives-angular-label.mjs +65 -0
  101. package/fesm2022/fragiola-primitives-angular-label.mjs.map +1 -0
  102. package/fesm2022/fragiola-primitives-angular-link.mjs +109 -0
  103. package/fesm2022/fragiola-primitives-angular-link.mjs.map +1 -0
  104. package/fesm2022/fragiola-primitives-angular-listbox-virtual.mjs +657 -0
  105. package/fesm2022/fragiola-primitives-angular-listbox-virtual.mjs.map +1 -0
  106. package/fesm2022/fragiola-primitives-angular-listbox.mjs +851 -0
  107. package/fesm2022/fragiola-primitives-angular-listbox.mjs.map +1 -0
  108. package/fesm2022/fragiola-primitives-angular-menu.mjs +2258 -0
  109. package/fesm2022/fragiola-primitives-angular-menu.mjs.map +1 -0
  110. package/fesm2022/fragiola-primitives-angular-menubar.mjs +303 -0
  111. package/fesm2022/fragiola-primitives-angular-menubar.mjs.map +1 -0
  112. package/fesm2022/fragiola-primitives-angular-meter.mjs +410 -0
  113. package/fesm2022/fragiola-primitives-angular-meter.mjs.map +1 -0
  114. package/fesm2022/fragiola-primitives-angular-month-calendar.mjs +1066 -0
  115. package/fesm2022/fragiola-primitives-angular-month-calendar.mjs.map +1 -0
  116. package/fesm2022/fragiola-primitives-angular-month-picker.mjs +514 -0
  117. package/fesm2022/fragiola-primitives-angular-month-picker.mjs.map +1 -0
  118. package/fesm2022/fragiola-primitives-angular-month-range-calendar.mjs +163 -0
  119. package/fesm2022/fragiola-primitives-angular-month-range-calendar.mjs.map +1 -0
  120. package/fesm2022/fragiola-primitives-angular-month-range-picker.mjs +177 -0
  121. package/fesm2022/fragiola-primitives-angular-month-range-picker.mjs.map +1 -0
  122. package/fesm2022/fragiola-primitives-angular-multiple-calendar.mjs +216 -0
  123. package/fesm2022/fragiola-primitives-angular-multiple-calendar.mjs.map +1 -0
  124. package/fesm2022/fragiola-primitives-angular-navigation-menu.mjs +1413 -0
  125. package/fesm2022/fragiola-primitives-angular-navigation-menu.mjs.map +1 -0
  126. package/fesm2022/fragiola-primitives-angular-number-field.mjs +1210 -0
  127. package/fesm2022/fragiola-primitives-angular-number-field.mjs.map +1 -0
  128. package/fesm2022/fragiola-primitives-angular-otp-field.mjs +751 -0
  129. package/fesm2022/fragiola-primitives-angular-otp-field.mjs.map +1 -0
  130. package/fesm2022/fragiola-primitives-angular-pagination.mjs +758 -0
  131. package/fesm2022/fragiola-primitives-angular-pagination.mjs.map +1 -0
  132. package/fesm2022/fragiola-primitives-angular-password-input.mjs +542 -0
  133. package/fesm2022/fragiola-primitives-angular-password-input.mjs.map +1 -0
  134. package/fesm2022/fragiola-primitives-angular-popover.mjs +1011 -0
  135. package/fesm2022/fragiola-primitives-angular-popover.mjs.map +1 -0
  136. package/fesm2022/fragiola-primitives-angular-progress.mjs +472 -0
  137. package/fesm2022/fragiola-primitives-angular-progress.mjs.map +1 -0
  138. package/fesm2022/fragiola-primitives-angular-radio-group.mjs +321 -0
  139. package/fesm2022/fragiola-primitives-angular-radio-group.mjs.map +1 -0
  140. package/fesm2022/fragiola-primitives-angular-radio.mjs +273 -0
  141. package/fesm2022/fragiola-primitives-angular-radio.mjs.map +1 -0
  142. package/fesm2022/fragiola-primitives-angular-range-calendar.mjs +108 -0
  143. package/fesm2022/fragiola-primitives-angular-range-calendar.mjs.map +1 -0
  144. package/fesm2022/fragiola-primitives-angular-rating.mjs +643 -0
  145. package/fesm2022/fragiola-primitives-angular-rating.mjs.map +1 -0
  146. package/fesm2022/fragiola-primitives-angular-render.mjs +1 -0
  147. package/fesm2022/fragiola-primitives-angular-scroll-area.mjs +553 -0
  148. package/fesm2022/fragiola-primitives-angular-scroll-area.mjs.map +1 -0
  149. package/fesm2022/fragiola-primitives-angular-search-field.mjs +487 -0
  150. package/fesm2022/fragiola-primitives-angular-search-field.mjs.map +1 -0
  151. package/fesm2022/fragiola-primitives-angular-segmented-control.mjs +762 -0
  152. package/fesm2022/fragiola-primitives-angular-segmented-control.mjs.map +1 -0
  153. package/fesm2022/fragiola-primitives-angular-select-virtual.mjs +246 -0
  154. package/fesm2022/fragiola-primitives-angular-select-virtual.mjs.map +1 -0
  155. package/fesm2022/fragiola-primitives-angular-select.mjs +1433 -0
  156. package/fesm2022/fragiola-primitives-angular-select.mjs.map +1 -0
  157. package/fesm2022/fragiola-primitives-angular-separator.mjs +102 -0
  158. package/fesm2022/fragiola-primitives-angular-separator.mjs.map +1 -0
  159. package/fesm2022/fragiola-primitives-angular-slider.mjs +1090 -0
  160. package/fesm2022/fragiola-primitives-angular-slider.mjs.map +1 -0
  161. package/fesm2022/fragiola-primitives-angular-steps.mjs +819 -0
  162. package/fesm2022/fragiola-primitives-angular-steps.mjs.map +1 -0
  163. package/fesm2022/fragiola-primitives-angular-switch.mjs +422 -0
  164. package/fesm2022/fragiola-primitives-angular-switch.mjs.map +1 -0
  165. package/fesm2022/fragiola-primitives-angular-tabs.mjs +726 -0
  166. package/fesm2022/fragiola-primitives-angular-tabs.mjs.map +1 -0
  167. package/fesm2022/fragiola-primitives-angular-tag-group.mjs +768 -0
  168. package/fesm2022/fragiola-primitives-angular-tag-group.mjs.map +1 -0
  169. package/fesm2022/fragiola-primitives-angular-tags-input.mjs +1126 -0
  170. package/fesm2022/fragiola-primitives-angular-tags-input.mjs.map +1 -0
  171. package/fesm2022/fragiola-primitives-angular-time-field.mjs +187 -0
  172. package/fesm2022/fragiola-primitives-angular-time-field.mjs.map +1 -0
  173. package/fesm2022/fragiola-primitives-angular-time-range-field.mjs +188 -0
  174. package/fesm2022/fragiola-primitives-angular-time-range-field.mjs.map +1 -0
  175. package/fesm2022/fragiola-primitives-angular-toast.mjs +744 -0
  176. package/fesm2022/fragiola-primitives-angular-toast.mjs.map +1 -0
  177. package/fesm2022/fragiola-primitives-angular-toggle-group.mjs +245 -0
  178. package/fesm2022/fragiola-primitives-angular-toggle-group.mjs.map +1 -0
  179. package/fesm2022/fragiola-primitives-angular-toggle.mjs +229 -0
  180. package/fesm2022/fragiola-primitives-angular-toggle.mjs.map +1 -0
  181. package/fesm2022/fragiola-primitives-angular-toolbar.mjs +623 -0
  182. package/fesm2022/fragiola-primitives-angular-toolbar.mjs.map +1 -0
  183. package/fesm2022/fragiola-primitives-angular-tooltip.mjs +975 -0
  184. package/fesm2022/fragiola-primitives-angular-tooltip.mjs.map +1 -0
  185. package/fesm2022/fragiola-primitives-angular-year-calendar.mjs +163 -0
  186. package/fesm2022/fragiola-primitives-angular-year-calendar.mjs.map +1 -0
  187. package/fesm2022/fragiola-primitives-angular-year-picker.mjs +177 -0
  188. package/fesm2022/fragiola-primitives-angular-year-picker.mjs.map +1 -0
  189. package/fesm2022/fragiola-primitives-angular-year-range-calendar.mjs +163 -0
  190. package/fesm2022/fragiola-primitives-angular-year-range-calendar.mjs.map +1 -0
  191. package/fesm2022/fragiola-primitives-angular-year-range-picker.mjs +177 -0
  192. package/fesm2022/fragiola-primitives-angular-year-range-picker.mjs.map +1 -0
  193. package/fesm2022/fragiola-primitives-angular.mjs +94 -0
  194. package/package.json +437 -3
  195. package/types/fragiola-primitives-angular-accordion.d.ts +154 -0
  196. package/types/fragiola-primitives-angular-alert-dialog.d.ts +176 -0
  197. package/types/fragiola-primitives-angular-aspect-ratio.d.ts +25 -0
  198. package/types/fragiola-primitives-angular-async-list.d.ts +32 -0
  199. package/types/fragiola-primitives-angular-autocomplete-virtual.d.ts +82 -0
  200. package/types/fragiola-primitives-angular-autocomplete.d.ts +496 -0
  201. package/types/fragiola-primitives-angular-avatar.d.ts +94 -0
  202. package/types/fragiola-primitives-angular-breadcrumbs.d.ts +62 -0
  203. package/types/fragiola-primitives-angular-button.d.ts +66 -0
  204. package/types/fragiola-primitives-angular-calendar-preset.d.ts +35 -0
  205. package/types/fragiola-primitives-angular-calendar-view.d.ts +80 -0
  206. package/types/fragiola-primitives-angular-calendar.d.ts +414 -0
  207. package/types/fragiola-primitives-angular-carousel.d.ts +300 -0
  208. package/types/fragiola-primitives-angular-cascade-select.d.ts +404 -0
  209. package/types/fragiola-primitives-angular-checkbox-group.d.ts +74 -0
  210. package/types/fragiola-primitives-angular-checkbox.d.ts +111 -0
  211. package/types/fragiola-primitives-angular-clipboard.d.ts +106 -0
  212. package/types/fragiola-primitives-angular-collapsible.d.ts +88 -0
  213. package/types/fragiola-primitives-angular-color-area.d.ts +174 -0
  214. package/types/fragiola-primitives-angular-color-field.d.ts +174 -0
  215. package/types/fragiola-primitives-angular-color-picker-popover.d.ts +180 -0
  216. package/types/fragiola-primitives-angular-color-picker.d.ts +137 -0
  217. package/types/fragiola-primitives-angular-color-slider.d.ts +228 -0
  218. package/types/fragiola-primitives-angular-color-swatch-picker.d.ts +146 -0
  219. package/types/fragiola-primitives-angular-color-swatch.d.ts +43 -0
  220. package/types/fragiola-primitives-angular-color-wheel.d.ts +144 -0
  221. package/types/fragiola-primitives-angular-combobox-virtual.d.ts +84 -0
  222. package/types/fragiola-primitives-angular-combobox.d.ts +582 -0
  223. package/types/fragiola-primitives-angular-command-virtual.d.ts +93 -0
  224. package/types/fragiola-primitives-angular-command.d.ts +283 -0
  225. package/types/fragiola-primitives-angular-context-menu.d.ts +278 -0
  226. package/types/fragiola-primitives-angular-date-field.d.ts +486 -0
  227. package/types/fragiola-primitives-angular-date-picker-input.d.ts +139 -0
  228. package/types/fragiola-primitives-angular-date-picker.d.ts +331 -0
  229. package/types/fragiola-primitives-angular-date-range-field.d.ts +333 -0
  230. package/types/fragiola-primitives-angular-date-range-picker-input.d.ts +89 -0
  231. package/types/fragiola-primitives-angular-date-range-picker.d.ts +35 -0
  232. package/types/fragiola-primitives-angular-dialog.d.ts +359 -0
  233. package/types/fragiola-primitives-angular-direction.d.ts +31 -0
  234. package/types/fragiola-primitives-angular-drawer.d.ts +242 -0
  235. package/types/fragiola-primitives-angular-drop-zone.d.ts +68 -0
  236. package/types/fragiola-primitives-angular-editable.d.ts +219 -0
  237. package/types/fragiola-primitives-angular-field.d.ts +397 -0
  238. package/types/fragiola-primitives-angular-fieldset.d.ts +47 -0
  239. package/types/fragiola-primitives-angular-file-upload.d.ts +351 -0
  240. package/types/fragiola-primitives-angular-form.d.ts +44 -0
  241. package/types/fragiola-primitives-angular-hover-card.d.ts +279 -0
  242. package/types/fragiola-primitives-angular-internal.d.ts +695 -0
  243. package/types/fragiola-primitives-angular-label.d.ts +14 -0
  244. package/types/fragiola-primitives-angular-link.d.ts +33 -0
  245. package/types/fragiola-primitives-angular-listbox-virtual.d.ts +193 -0
  246. package/types/fragiola-primitives-angular-listbox.d.ts +237 -0
  247. package/types/fragiola-primitives-angular-menu.d.ts +758 -0
  248. package/types/fragiola-primitives-angular-menubar.d.ts +76 -0
  249. package/types/fragiola-primitives-angular-meter.d.ts +117 -0
  250. package/types/fragiola-primitives-angular-month-calendar.d.ts +380 -0
  251. package/types/fragiola-primitives-angular-month-picker.d.ts +183 -0
  252. package/types/fragiola-primitives-angular-month-range-calendar.d.ts +54 -0
  253. package/types/fragiola-primitives-angular-month-range-picker.d.ts +56 -0
  254. package/types/fragiola-primitives-angular-multiple-calendar.d.ts +73 -0
  255. package/types/fragiola-primitives-angular-navigation-menu.d.ts +355 -0
  256. package/types/fragiola-primitives-angular-number-field.d.ts +305 -0
  257. package/types/fragiola-primitives-angular-otp-field.d.ts +210 -0
  258. package/types/fragiola-primitives-angular-pagination.d.ts +239 -0
  259. package/types/fragiola-primitives-angular-password-input.d.ts +149 -0
  260. package/types/fragiola-primitives-angular-popover.d.ts +303 -0
  261. package/types/fragiola-primitives-angular-progress.d.ts +126 -0
  262. package/types/fragiola-primitives-angular-radio-group.d.ts +123 -0
  263. package/types/fragiola-primitives-angular-radio.d.ts +67 -0
  264. package/types/fragiola-primitives-angular-range-calendar.d.ts +33 -0
  265. package/types/fragiola-primitives-angular-rating.d.ts +195 -0
  266. package/types/fragiola-primitives-angular-render.d.ts +2 -0
  267. package/types/fragiola-primitives-angular-scroll-area.d.ts +134 -0
  268. package/types/fragiola-primitives-angular-search-field.d.ts +129 -0
  269. package/types/fragiola-primitives-angular-segmented-control.d.ts +232 -0
  270. package/types/fragiola-primitives-angular-select-virtual.d.ts +81 -0
  271. package/types/fragiola-primitives-angular-select.d.ts +403 -0
  272. package/types/fragiola-primitives-angular-separator.d.ts +32 -0
  273. package/types/fragiola-primitives-angular-slider.d.ts +297 -0
  274. package/types/fragiola-primitives-angular-steps.d.ts +194 -0
  275. package/types/fragiola-primitives-angular-switch.d.ts +102 -0
  276. package/types/fragiola-primitives-angular-tabs.d.ts +215 -0
  277. package/types/fragiola-primitives-angular-tag-group.d.ts +232 -0
  278. package/types/fragiola-primitives-angular-tags-input.d.ts +318 -0
  279. package/types/fragiola-primitives-angular-time-field.d.ts +63 -0
  280. package/types/fragiola-primitives-angular-time-range-field.d.ts +65 -0
  281. package/types/fragiola-primitives-angular-toast.d.ts +196 -0
  282. package/types/fragiola-primitives-angular-toggle-group.d.ts +89 -0
  283. package/types/fragiola-primitives-angular-toggle.d.ts +86 -0
  284. package/types/fragiola-primitives-angular-toolbar.d.ts +187 -0
  285. package/types/fragiola-primitives-angular-tooltip.d.ts +330 -0
  286. package/types/fragiola-primitives-angular-year-calendar.d.ts +54 -0
  287. package/types/fragiola-primitives-angular-year-picker.d.ts +56 -0
  288. package/types/fragiola-primitives-angular-year-range-calendar.d.ts +54 -0
  289. package/types/fragiola-primitives-angular-year-range-picker.d.ts +56 -0
  290. package/types/fragiola-primitives-angular.d.ts +94 -0
@@ -0,0 +1,2083 @@
1
+ import * as i0 from "@angular/core";
2
+ import { DestroyRef, Directive, ElementRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, effect, inject, input, output, signal, untracked } from "@angular/core";
3
+ import { chipArrows, chipKeyTarget, containsFilter, filterItems, includesItem, itemFormValue, itemLabel, queryIsLabel, scrollIntoViewWithin, stepThroughNone, toggleItem } from "@fragiola/primitives/collection";
4
+ import { getDirection } from "@fragiola/primitives/direction";
5
+ import { conditionalView, controllable, createHiddenInput, createOverlayRoot, dataValue, dataValues, injectEnclosing, injectFlush, injectHost, injectId, injectProvidedDirection, mountPortal, placementSignal, portalOptions, positionOverlay, registerHost, setInputAttribute, writeAttributes } from "@fragiola/primitives-angular/internal";
6
+ import { bridgeForm } from "@fragiola/primitives/form";
7
+ import { fieldControl, writeFieldAria } from "@fragiola/primitives-angular/field";
8
+ import { openOverlaySession } from "@fragiola/primitives/overlay";
9
+ const NONE = [];
10
+ var ComboboxRoot = class ComboboxRoot {
11
+ constructor() {
12
+ this.items = input(void 0, ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
13
+ this.filter = input(void 0, ...ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []);
14
+ this.limit = input(-1, ...ngDevMode ? [{ debugName: "limit" }] : /* istanbul ignore next */ []);
15
+ this.locale = input(void 0, ...ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []);
16
+ this.multiple = input(false, {
17
+ ...ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {},
18
+ transform: booleanAttribute
19
+ });
20
+ this.open = input(void 0, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
21
+ this.openChange = output();
22
+ this.defaultOpen = input(false, ...ngDevMode ? [{ debugName: "defaultOpen" }] : /* istanbul ignore next */ []);
23
+ this.openChangeDetails = output();
24
+ this.openChangeComplete = output();
25
+ this.boundValue = input(void 0, {
26
+ ...ngDevMode ? { debugName: "boundValue" } : /* istanbul ignore next */ {},
27
+ alias: "value"
28
+ });
29
+ this.valueChange = output();
30
+ this.defaultValue = input(void 0, ...ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []);
31
+ this.valueChangeDetails = output();
32
+ this.boundInputValue = input(void 0, {
33
+ ...ngDevMode ? { debugName: "boundInputValue" } : /* istanbul ignore next */ {},
34
+ alias: "inputValue"
35
+ });
36
+ this.inputValueChange = output();
37
+ this.defaultInputValue = input(void 0, ...ngDevMode ? [{ debugName: "defaultInputValue" }] : /* istanbul ignore next */ []);
38
+ this.inputValueChangeDetails = output();
39
+ this.isItemEqualToValue = input(void 0, ...ngDevMode ? [{ debugName: "isItemEqualToValue" }] : /* istanbul ignore next */ []);
40
+ this.itemToStringLabel = input(void 0, ...ngDevMode ? [{ debugName: "itemToStringLabel" }] : /* istanbul ignore next */ []);
41
+ this.itemToStringValue = input(void 0, ...ngDevMode ? [{ debugName: "itemToStringValue" }] : /* istanbul ignore next */ []);
42
+ this.equality = computed(() => this.isItemEqualToValue(), ...ngDevMode ? [{ debugName: "equality" }] : /* istanbul ignore next */ []);
43
+ this.name = input(void 0, ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
44
+ this.required = input(false, {
45
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
46
+ transform: booleanAttribute
47
+ });
48
+ this.disabled = input(false, {
49
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
50
+ transform: booleanAttribute
51
+ });
52
+ this.inputElementId = signal(void 0, ...ngDevMode ? [{ debugName: "inputElementId" }] : /* istanbul ignore next */ []);
53
+ this.hidden = createHiddenInput(inject(ElementRef).nativeElement, { "data-primitives-part": "combobox-hidden-input" });
54
+ this.overlay = createOverlayRoot(this, (event) => this.openChangeDetails.emit(event), "primitives-combobox");
55
+ this.fallbackValue = () => this.defaultValue() ?? (this.multiple() ? NONE : null);
56
+ this.selection = controllable(this.boundValue, this.valueChange, this.fallbackValue, (value, details) => this.valueChangeDetails.emit({
57
+ value,
58
+ details
59
+ }));
60
+ this.value = this.selection.value;
61
+ this.values = computed(() => {
62
+ const value = this.value();
63
+ if (this.multiple()) return value ?? NONE;
64
+ return value === null || value === void 0 ? NONE : [value];
65
+ }, ...ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []);
66
+ this.text = controllable(this.boundInputValue, this.inputValueChange, () => this.defaultInputValue() ?? (this.multiple() ? "" : this.label(this.boundValue() ?? this.fallbackValue())), (value, details) => this.inputValueChangeDetails.emit({
67
+ value,
68
+ details
69
+ }));
70
+ this.inputValue = this.text.value;
71
+ this.field = fieldControl({
72
+ id: this.inputElementId,
73
+ labelable: true,
74
+ value: this.value,
75
+ filled: computed(() => this.values().length > 0),
76
+ input: () => this.hidden,
77
+ focusTarget: () => this.overlay.trigger()
78
+ });
79
+ this.isDisabled = computed(() => this.disabled() || this.field.disabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
80
+ this.highlighted = signal(null, ...ngDevMode ? [{ debugName: "highlighted" }] : /* istanbul ignore next */ []);
81
+ this.registered = /* @__PURE__ */ new Map();
82
+ this.itemCount = signal(0, ...ngDevMode ? [{ debugName: "itemCount" }] : /* istanbul ignore next */ []);
83
+ this.list = signal(null, ...ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []);
84
+ this.button = signal(null, ...ngDevMode ? [{ debugName: "button" }] : /* istanbul ignore next */ []);
85
+ this.inputGroup = signal(null, ...ngDevMode ? [{ debugName: "inputGroup" }] : /* istanbul ignore next */ []);
86
+ this.chips = signal(null, ...ngDevMode ? [{ debugName: "chips" }] : /* istanbul ignore next */ []);
87
+ this.clearButton = signal(null, ...ngDevMode ? [{ debugName: "clearButton" }] : /* istanbul ignore next */ []);
88
+ this.listId = `${injectId("primitives-combobox")}-list`;
89
+ this.pendingHighlight = signal(null, ...ngDevMode ? [{ debugName: "pendingHighlight" }] : /* istanbul ignore next */ []);
90
+ this.placed = placementSignal({
91
+ side: "bottom",
92
+ align: "start"
93
+ });
94
+ this.typed = signal(false, ...ngDevMode ? [{ debugName: "typed" }] : /* istanbul ignore next */ []);
95
+ this.flush = injectFlush();
96
+ this.state = computed(() => ({
97
+ open: this.overlay.open(),
98
+ disabled: this.isDisabled(),
99
+ value: this.value(),
100
+ inputValue: this.inputValue()
101
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
102
+ this.resolvedFilter = computed(() => {
103
+ const filter = this.filter();
104
+ return filter === void 0 ? containsFilter(this.locale()) : filter;
105
+ }, ...ngDevMode ? [{ debugName: "resolvedFilter" }] : /* istanbul ignore next */ []);
106
+ this.hasItems = computed(() => this.items() !== void 0, ...ngDevMode ? [{ debugName: "hasItems" }] : /* istanbul ignore next */ []);
107
+ this.entries = computed(() => {
108
+ const items = this.items();
109
+ if (items === void 0) return NONE;
110
+ const query = this.inputValue().trim();
111
+ const values = this.values();
112
+ const whole = !this.multiple() && !this.typed() && values.length > 0 && queryIsLabel(this.label(values[0]), query, this.locale());
113
+ return filterItems(items, whole ? "" : query, {
114
+ filter: this.resolvedFilter(),
115
+ limit: this.limit(),
116
+ itemToString: (item) => this.label(item)
117
+ });
118
+ }, ...ngDevMode ? [{ debugName: "entries" }] : /* istanbul ignore next */ []);
119
+ this.empty = computed(() => this.hasItems() ? this.entries().length === 0 : this.itemCount() === 0, ...ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []);
120
+ const hidden = this.hidden;
121
+ effect(() => {
122
+ const multiple = this.multiple();
123
+ const values = this.values();
124
+ setInputAttribute(hidden, "name", multiple ? null : this.fieldName() ?? null);
125
+ hidden.value = multiple ? "" : this.formValue(this.value());
126
+ hidden.required = multiple ? this.required() && values.length === 0 : this.required();
127
+ hidden.disabled = this.isDisabled();
128
+ });
129
+ let formEntries = [];
130
+ afterRenderEffect(() => {
131
+ const name = this.fieldName();
132
+ const values = this.multiple() ? this.values() : NONE;
133
+ const disabled = this.isDisabled();
134
+ untracked(() => {
135
+ for (const entry of formEntries) entry.remove();
136
+ formEntries = [];
137
+ if (name === void 0 || hidden.parentNode === null) return;
138
+ let after = hidden;
139
+ for (const item of values) {
140
+ const entry = hidden.ownerDocument.createElement("input");
141
+ entry.type = "hidden";
142
+ entry.name = name;
143
+ entry.setAttribute("value", this.formValue(item));
144
+ entry.disabled = disabled;
145
+ entry.setAttribute("data-primitives-part", "combobox-hidden-input");
146
+ after.parentNode?.insertBefore(entry, after.nextSibling);
147
+ after = entry;
148
+ formEntries.push(entry);
149
+ }
150
+ });
151
+ });
152
+ let stop = null;
153
+ afterNextRender(() => {
154
+ stop = bridgeForm(hidden, {
155
+ reset: () => this.reset(),
156
+ invalid: () => this.overlay.trigger()
157
+ });
158
+ });
159
+ inject(DestroyRef).onDestroy(() => {
160
+ stop?.();
161
+ for (const entry of formEntries) entry.remove();
162
+ });
163
+ }
164
+ fieldName() {
165
+ return this.field.name() ?? this.name();
166
+ }
167
+ label(item) {
168
+ return itemLabel(item, this.itemToStringLabel());
169
+ }
170
+ formValue(item) {
171
+ return itemFormValue(item, this.itemToStringValue());
172
+ }
173
+ isSelected(item) {
174
+ return includesItem(this.values(), item, this.equality());
175
+ }
176
+ setInputValue(next, reason) {
177
+ this.text.set(next, { reason });
178
+ }
179
+ markTyped() {
180
+ this.typed.set(true);
181
+ }
182
+ setOpen(next, reason, event) {
183
+ if (next && reason !== "input-change") this.typed.set(false);
184
+ const changed = this.overlay.setOpen(next, reason, event);
185
+ if (next || !changed) return changed;
186
+ this.typed.set(false);
187
+ if (reason !== "item-press") {
188
+ const text = this.multiple() ? "" : this.label(this.value());
189
+ if (untracked(this.inputValue) !== text) this.text.set(text, { reason: text === "" ? "input-clear" : "none" });
190
+ }
191
+ this.highlighted.set(null);
192
+ this.pendingHighlight.set(null);
193
+ this.flush();
194
+ return changed;
195
+ }
196
+ choose(item) {
197
+ this.highlighted.set(null);
198
+ if (!this.multiple()) {
199
+ this.selection.set(item, { reason: "item-press" });
200
+ this.text.set(this.label(item), { reason: "item-press" });
201
+ this.setOpen(false, "item-press");
202
+ return;
203
+ }
204
+ this.selection.set(toggleItem(this.values(), item, this.equality()), { reason: "item-press" });
205
+ if (this.inputValue().trim() !== "") {
206
+ this.text.set("", { reason: "input-clear" });
207
+ this.setOpen(false, "item-press");
208
+ } else this.flush();
209
+ }
210
+ clear(reason) {
211
+ this.text.set("", { reason });
212
+ this.selection.set(this.multiple() ? [] : null, { reason });
213
+ this.highlighted.set(null);
214
+ this.flush();
215
+ }
216
+ removeAt(index, reason) {
217
+ this.selection.set(this.values().filter((_, at) => at !== index), { reason });
218
+ this.flush();
219
+ }
220
+ highlight(id) {
221
+ this.highlighted.set(id);
222
+ this.flush();
223
+ }
224
+ orderedItems() {
225
+ const list = this.list();
226
+ if (list === null) return [];
227
+ return [...list.querySelectorAll("[role=\"option\"]")].map((element) => this.registered.get(element)).filter((item) => item !== void 0);
228
+ }
229
+ itemsRegistered() {
230
+ const list = this.list();
231
+ return list === null || [...list.querySelectorAll("[role=\"option\"]")].every((element) => this.registered.has(element));
232
+ }
233
+ chipElements() {
234
+ const chips = this.chips();
235
+ if (chips === null) return [];
236
+ return [...chips.querySelectorAll("[data-primitives-part=\"combobox-chip\"]")];
237
+ }
238
+ registerItem(element, info) {
239
+ this.registered.set(element, info);
240
+ this.itemCount.set(this.registered.size);
241
+ return () => {
242
+ this.registered.delete(element);
243
+ this.itemCount.set(this.registered.size);
244
+ };
245
+ }
246
+ openOnPress() {
247
+ if (this.overlay.open() || this.isDisabled()) return;
248
+ this.pendingHighlight.set(this.multiple() ? null : "selected");
249
+ this.setOpen(true, "input-press");
250
+ }
251
+ pressToOpen(event) {
252
+ const target = event.target;
253
+ const input = this.overlay.trigger();
254
+ if (target === null || target === input || target.closest("button, [data-primitives-part=\"combobox-chip\"]") !== null) return;
255
+ event.preventDefault();
256
+ if (this.isDisabled()) return;
257
+ input?.focus();
258
+ this.openOnPress();
259
+ }
260
+ reset() {
261
+ const fallback = this.fallbackValue();
262
+ this.field.reset();
263
+ this.selection.set(fallback, { reason: "none" });
264
+ this.text.set(this.multiple() ? "" : this.label(fallback), { reason: "none" });
265
+ this.flush();
266
+ const input = this.overlay.trigger();
267
+ if (input instanceof HTMLInputElement) input.value = this.inputValue();
268
+ this.hidden.value = this.multiple() ? "" : this.formValue(this.value());
269
+ }
270
+ close() {
271
+ this.setOpen(false, "imperative-action");
272
+ }
273
+ unmount() {
274
+ this.overlay.unmount();
275
+ }
276
+ static {
277
+ this.ɵfac = i0.ɵɵngDeclareFactory({
278
+ minVersion: "12.0.0",
279
+ version: "22.2.6",
280
+ ngImport: i0,
281
+ type: ComboboxRoot,
282
+ deps: [],
283
+ target: i0.ɵɵFactoryTarget.Directive
284
+ });
285
+ }
286
+ static {
287
+ this.ɵdir = i0.ɵɵngDeclareDirective({
288
+ minVersion: "17.1.0",
289
+ version: "22.2.6",
290
+ type: ComboboxRoot,
291
+ isStandalone: true,
292
+ selector: "[comboboxRoot]",
293
+ inputs: {
294
+ items: {
295
+ classPropertyName: "items",
296
+ publicName: "items",
297
+ isSignal: true,
298
+ isRequired: false,
299
+ transformFunction: null
300
+ },
301
+ filter: {
302
+ classPropertyName: "filter",
303
+ publicName: "filter",
304
+ isSignal: true,
305
+ isRequired: false,
306
+ transformFunction: null
307
+ },
308
+ limit: {
309
+ classPropertyName: "limit",
310
+ publicName: "limit",
311
+ isSignal: true,
312
+ isRequired: false,
313
+ transformFunction: null
314
+ },
315
+ locale: {
316
+ classPropertyName: "locale",
317
+ publicName: "locale",
318
+ isSignal: true,
319
+ isRequired: false,
320
+ transformFunction: null
321
+ },
322
+ multiple: {
323
+ classPropertyName: "multiple",
324
+ publicName: "multiple",
325
+ isSignal: true,
326
+ isRequired: false,
327
+ transformFunction: null
328
+ },
329
+ open: {
330
+ classPropertyName: "open",
331
+ publicName: "open",
332
+ isSignal: true,
333
+ isRequired: false,
334
+ transformFunction: null
335
+ },
336
+ defaultOpen: {
337
+ classPropertyName: "defaultOpen",
338
+ publicName: "defaultOpen",
339
+ isSignal: true,
340
+ isRequired: false,
341
+ transformFunction: null
342
+ },
343
+ boundValue: {
344
+ classPropertyName: "boundValue",
345
+ publicName: "value",
346
+ isSignal: true,
347
+ isRequired: false,
348
+ transformFunction: null
349
+ },
350
+ defaultValue: {
351
+ classPropertyName: "defaultValue",
352
+ publicName: "defaultValue",
353
+ isSignal: true,
354
+ isRequired: false,
355
+ transformFunction: null
356
+ },
357
+ boundInputValue: {
358
+ classPropertyName: "boundInputValue",
359
+ publicName: "inputValue",
360
+ isSignal: true,
361
+ isRequired: false,
362
+ transformFunction: null
363
+ },
364
+ defaultInputValue: {
365
+ classPropertyName: "defaultInputValue",
366
+ publicName: "defaultInputValue",
367
+ isSignal: true,
368
+ isRequired: false,
369
+ transformFunction: null
370
+ },
371
+ isItemEqualToValue: {
372
+ classPropertyName: "isItemEqualToValue",
373
+ publicName: "isItemEqualToValue",
374
+ isSignal: true,
375
+ isRequired: false,
376
+ transformFunction: null
377
+ },
378
+ itemToStringLabel: {
379
+ classPropertyName: "itemToStringLabel",
380
+ publicName: "itemToStringLabel",
381
+ isSignal: true,
382
+ isRequired: false,
383
+ transformFunction: null
384
+ },
385
+ itemToStringValue: {
386
+ classPropertyName: "itemToStringValue",
387
+ publicName: "itemToStringValue",
388
+ isSignal: true,
389
+ isRequired: false,
390
+ transformFunction: null
391
+ },
392
+ name: {
393
+ classPropertyName: "name",
394
+ publicName: "name",
395
+ isSignal: true,
396
+ isRequired: false,
397
+ transformFunction: null
398
+ },
399
+ required: {
400
+ classPropertyName: "required",
401
+ publicName: "required",
402
+ isSignal: true,
403
+ isRequired: false,
404
+ transformFunction: null
405
+ },
406
+ disabled: {
407
+ classPropertyName: "disabled",
408
+ publicName: "disabled",
409
+ isSignal: true,
410
+ isRequired: false,
411
+ transformFunction: null
412
+ }
413
+ },
414
+ outputs: {
415
+ openChange: "openChange",
416
+ openChangeDetails: "openChangeDetails",
417
+ openChangeComplete: "openChangeComplete",
418
+ valueChange: "valueChange",
419
+ valueChangeDetails: "valueChangeDetails",
420
+ inputValueChange: "inputValueChange",
421
+ inputValueChangeDetails: "inputValueChangeDetails"
422
+ },
423
+ exportAs: ["comboboxRoot"],
424
+ ngImport: i0
425
+ });
426
+ }
427
+ };
428
+ i0.ɵɵngDeclareClassMetadata({
429
+ minVersion: "12.0.0",
430
+ version: "22.2.6",
431
+ ngImport: i0,
432
+ type: ComboboxRoot,
433
+ decorators: [{
434
+ type: Directive,
435
+ args: [{
436
+ selector: "[comboboxRoot]",
437
+ exportAs: "comboboxRoot"
438
+ }]
439
+ }],
440
+ ctorParameters: () => [],
441
+ propDecorators: {
442
+ items: [{
443
+ type: i0.Input,
444
+ args: [{
445
+ isSignal: true,
446
+ alias: "items",
447
+ required: false
448
+ }]
449
+ }],
450
+ filter: [{
451
+ type: i0.Input,
452
+ args: [{
453
+ isSignal: true,
454
+ alias: "filter",
455
+ required: false
456
+ }]
457
+ }],
458
+ limit: [{
459
+ type: i0.Input,
460
+ args: [{
461
+ isSignal: true,
462
+ alias: "limit",
463
+ required: false
464
+ }]
465
+ }],
466
+ locale: [{
467
+ type: i0.Input,
468
+ args: [{
469
+ isSignal: true,
470
+ alias: "locale",
471
+ required: false
472
+ }]
473
+ }],
474
+ multiple: [{
475
+ type: i0.Input,
476
+ args: [{
477
+ isSignal: true,
478
+ alias: "multiple",
479
+ required: false
480
+ }]
481
+ }],
482
+ open: [{
483
+ type: i0.Input,
484
+ args: [{
485
+ isSignal: true,
486
+ alias: "open",
487
+ required: false
488
+ }]
489
+ }],
490
+ openChange: [{
491
+ type: i0.Output,
492
+ args: ["openChange"]
493
+ }],
494
+ defaultOpen: [{
495
+ type: i0.Input,
496
+ args: [{
497
+ isSignal: true,
498
+ alias: "defaultOpen",
499
+ required: false
500
+ }]
501
+ }],
502
+ openChangeDetails: [{
503
+ type: i0.Output,
504
+ args: ["openChangeDetails"]
505
+ }],
506
+ openChangeComplete: [{
507
+ type: i0.Output,
508
+ args: ["openChangeComplete"]
509
+ }],
510
+ boundValue: [{
511
+ type: i0.Input,
512
+ args: [{
513
+ isSignal: true,
514
+ alias: "value",
515
+ required: false
516
+ }]
517
+ }],
518
+ valueChange: [{
519
+ type: i0.Output,
520
+ args: ["valueChange"]
521
+ }],
522
+ defaultValue: [{
523
+ type: i0.Input,
524
+ args: [{
525
+ isSignal: true,
526
+ alias: "defaultValue",
527
+ required: false
528
+ }]
529
+ }],
530
+ valueChangeDetails: [{
531
+ type: i0.Output,
532
+ args: ["valueChangeDetails"]
533
+ }],
534
+ boundInputValue: [{
535
+ type: i0.Input,
536
+ args: [{
537
+ isSignal: true,
538
+ alias: "inputValue",
539
+ required: false
540
+ }]
541
+ }],
542
+ inputValueChange: [{
543
+ type: i0.Output,
544
+ args: ["inputValueChange"]
545
+ }],
546
+ defaultInputValue: [{
547
+ type: i0.Input,
548
+ args: [{
549
+ isSignal: true,
550
+ alias: "defaultInputValue",
551
+ required: false
552
+ }]
553
+ }],
554
+ inputValueChangeDetails: [{
555
+ type: i0.Output,
556
+ args: ["inputValueChangeDetails"]
557
+ }],
558
+ isItemEqualToValue: [{
559
+ type: i0.Input,
560
+ args: [{
561
+ isSignal: true,
562
+ alias: "isItemEqualToValue",
563
+ required: false
564
+ }]
565
+ }],
566
+ itemToStringLabel: [{
567
+ type: i0.Input,
568
+ args: [{
569
+ isSignal: true,
570
+ alias: "itemToStringLabel",
571
+ required: false
572
+ }]
573
+ }],
574
+ itemToStringValue: [{
575
+ type: i0.Input,
576
+ args: [{
577
+ isSignal: true,
578
+ alias: "itemToStringValue",
579
+ required: false
580
+ }]
581
+ }],
582
+ name: [{
583
+ type: i0.Input,
584
+ args: [{
585
+ isSignal: true,
586
+ alias: "name",
587
+ required: false
588
+ }]
589
+ }],
590
+ required: [{
591
+ type: i0.Input,
592
+ args: [{
593
+ isSignal: true,
594
+ alias: "required",
595
+ required: false
596
+ }]
597
+ }],
598
+ disabled: [{
599
+ type: i0.Input,
600
+ args: [{
601
+ isSignal: true,
602
+ alias: "disabled",
603
+ required: false
604
+ }]
605
+ }]
606
+ }
607
+ });
608
+ var ComboboxChip = class ComboboxChip {
609
+ constructor() {
610
+ this.direction = injectProvidedDirection();
611
+ this.root = inject(ComboboxRoot);
612
+ this.element = injectHost();
613
+ this.state = computed(() => ({ disabled: this.root.isDisabled() }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
614
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
615
+ }
616
+ onKeyDown(event) {
617
+ const root = this.root;
618
+ if (this.state().disabled || event.ctrlKey || event.metaKey || event.altKey) return;
619
+ const chips = root.chipElements();
620
+ const index = chips.indexOf(this.element);
621
+ const action = chipKeyTarget(event.key, index, chips.length, getDirection(this.element, this.direction()) === "rtl");
622
+ if (action === null) return;
623
+ if (event.key.length !== 1 || event.key === " ") event.preventDefault();
624
+ if (action.remove) root.removeAt(index, "none");
625
+ if (action.open) root.setOpen(true, "list-navigation");
626
+ (action.focus === "input" ? root.overlay.trigger() : root.chipElements()[action.focus])?.focus();
627
+ }
628
+ static {
629
+ this.ɵfac = i0.ɵɵngDeclareFactory({
630
+ minVersion: "12.0.0",
631
+ version: "22.2.6",
632
+ ngImport: i0,
633
+ type: ComboboxChip,
634
+ deps: [],
635
+ target: i0.ɵɵFactoryTarget.Directive
636
+ });
637
+ }
638
+ static {
639
+ this.ɵdir = i0.ɵɵngDeclareDirective({
640
+ minVersion: "14.0.0",
641
+ version: "22.2.6",
642
+ type: ComboboxChip,
643
+ isStandalone: true,
644
+ selector: "[comboboxChip]",
645
+ host: {
646
+ attributes: {
647
+ "tabindex": "-1",
648
+ "data-primitives-part": "combobox-chip"
649
+ },
650
+ listeners: { "keydown": "onKeyDown($event)" },
651
+ properties: {
652
+ "attr.aria-disabled": "state().disabled ? 'true' : null",
653
+ "attr.data-disabled": "data().disabled"
654
+ }
655
+ },
656
+ exportAs: ["comboboxChip"],
657
+ ngImport: i0
658
+ });
659
+ }
660
+ };
661
+ i0.ɵɵngDeclareClassMetadata({
662
+ minVersion: "12.0.0",
663
+ version: "22.2.6",
664
+ ngImport: i0,
665
+ type: ComboboxChip,
666
+ decorators: [{
667
+ type: Directive,
668
+ args: [{
669
+ selector: "[comboboxChip]",
670
+ exportAs: "comboboxChip",
671
+ host: {
672
+ tabindex: "-1",
673
+ "data-primitives-part": "combobox-chip",
674
+ "[attr.aria-disabled]": "state().disabled ? 'true' : null",
675
+ "[attr.data-disabled]": "data().disabled",
676
+ "(keydown)": "onKeyDown($event)"
677
+ }
678
+ }]
679
+ }]
680
+ });
681
+ var ComboboxChipRemove = class ComboboxChipRemove {
682
+ constructor() {
683
+ this.root = inject(ComboboxRoot);
684
+ this.chip = inject(ComboboxChip);
685
+ this.state = computed(() => ({ disabled: this.root.isDisabled() }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
686
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
687
+ }
688
+ onClick() {
689
+ const root = this.root;
690
+ const index = root.chipElements().indexOf(this.chip.element);
691
+ if (index >= 0) root.removeAt(index, "chip-remove-press");
692
+ root.overlay.trigger()?.focus();
693
+ }
694
+ static {
695
+ this.ɵfac = i0.ɵɵngDeclareFactory({
696
+ minVersion: "12.0.0",
697
+ version: "22.2.6",
698
+ ngImport: i0,
699
+ type: ComboboxChipRemove,
700
+ deps: [],
701
+ target: i0.ɵɵFactoryTarget.Directive
702
+ });
703
+ }
704
+ static {
705
+ this.ɵdir = i0.ɵɵngDeclareDirective({
706
+ minVersion: "14.0.0",
707
+ version: "22.2.6",
708
+ type: ComboboxChipRemove,
709
+ isStandalone: true,
710
+ selector: "[comboboxChipRemove]",
711
+ host: {
712
+ attributes: {
713
+ "type": "button",
714
+ "tabindex": "-1",
715
+ "data-primitives-part": "combobox-chip-remove"
716
+ },
717
+ listeners: {
718
+ "pointerdown": "$event.preventDefault()",
719
+ "click": "onClick()"
720
+ },
721
+ properties: {
722
+ "attr.disabled": "data().disabled",
723
+ "attr.data-disabled": "data().disabled"
724
+ }
725
+ },
726
+ exportAs: ["comboboxChipRemove"],
727
+ ngImport: i0
728
+ });
729
+ }
730
+ };
731
+ i0.ɵɵngDeclareClassMetadata({
732
+ minVersion: "12.0.0",
733
+ version: "22.2.6",
734
+ ngImport: i0,
735
+ type: ComboboxChipRemove,
736
+ decorators: [{
737
+ type: Directive,
738
+ args: [{
739
+ selector: "[comboboxChipRemove]",
740
+ exportAs: "comboboxChipRemove",
741
+ host: {
742
+ type: "button",
743
+ tabindex: "-1",
744
+ "data-primitives-part": "combobox-chip-remove",
745
+ "[attr.disabled]": "data().disabled",
746
+ "[attr.data-disabled]": "data().disabled",
747
+ "(pointerdown)": "$event.preventDefault()",
748
+ "(click)": "onClick()"
749
+ }
750
+ }]
751
+ }]
752
+ });
753
+ var ComboboxChips = class ComboboxChips {
754
+ constructor() {
755
+ this.root = inject(ComboboxRoot);
756
+ registerHost(this.root.chips);
757
+ }
758
+ static {
759
+ this.ɵfac = i0.ɵɵngDeclareFactory({
760
+ minVersion: "12.0.0",
761
+ version: "22.2.6",
762
+ ngImport: i0,
763
+ type: ComboboxChips,
764
+ deps: [],
765
+ target: i0.ɵɵFactoryTarget.Directive
766
+ });
767
+ }
768
+ static {
769
+ this.ɵdir = i0.ɵɵngDeclareDirective({
770
+ minVersion: "14.0.0",
771
+ version: "22.2.6",
772
+ type: ComboboxChips,
773
+ isStandalone: true,
774
+ selector: "[comboboxChips]",
775
+ host: {
776
+ attributes: { "data-primitives-part": "combobox-chips" },
777
+ listeners: { "mousedown": "root.pressToOpen($event)" },
778
+ properties: { "attr.role": "root.values().length > 0 ? 'toolbar' : null" }
779
+ },
780
+ exportAs: ["comboboxChips"],
781
+ ngImport: i0
782
+ });
783
+ }
784
+ };
785
+ i0.ɵɵngDeclareClassMetadata({
786
+ minVersion: "12.0.0",
787
+ version: "22.2.6",
788
+ ngImport: i0,
789
+ type: ComboboxChips,
790
+ decorators: [{
791
+ type: Directive,
792
+ args: [{
793
+ selector: "[comboboxChips]",
794
+ exportAs: "comboboxChips",
795
+ host: {
796
+ "data-primitives-part": "combobox-chips",
797
+ "[attr.role]": "root.values().length > 0 ? 'toolbar' : null",
798
+ "(mousedown)": "root.pressToOpen($event)"
799
+ }
800
+ }]
801
+ }],
802
+ ctorParameters: () => []
803
+ });
804
+ var ComboboxClear = class ComboboxClear {
805
+ constructor() {
806
+ this.root = inject(ComboboxRoot);
807
+ this.state = computed(() => ({ disabled: this.root.isDisabled() }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
808
+ const root = this.root;
809
+ const onPointerDown = (event) => event.preventDefault();
810
+ const onClick = () => {
811
+ root.clear("clear-press");
812
+ root.overlay.trigger()?.focus();
813
+ };
814
+ const element = conditionalView(computed(() => root.values().length > 0), (button) => {
815
+ writeAttributes(button, {
816
+ type: "button",
817
+ tabindex: "-1",
818
+ "data-primitives-part": "combobox-clear"
819
+ });
820
+ button.addEventListener("pointerdown", onPointerDown);
821
+ button.addEventListener("click", onClick);
822
+ });
823
+ effect((onCleanup) => {
824
+ const button = element();
825
+ const disabled = this.state().disabled;
826
+ if (button === null) return;
827
+ writeAttributes(button, {
828
+ disabled: disabled ? "" : null,
829
+ "data-disabled": dataValue(disabled)
830
+ });
831
+ root.clearButton.set(button);
832
+ onCleanup(() => {
833
+ if (root.clearButton() === button) root.clearButton.set(null);
834
+ });
835
+ });
836
+ inject(DestroyRef).onDestroy(() => root.clearButton.set(null));
837
+ }
838
+ static {
839
+ this.ɵfac = i0.ɵɵngDeclareFactory({
840
+ minVersion: "12.0.0",
841
+ version: "22.2.6",
842
+ ngImport: i0,
843
+ type: ComboboxClear,
844
+ deps: [],
845
+ target: i0.ɵɵFactoryTarget.Directive
846
+ });
847
+ }
848
+ static {
849
+ this.ɵdir = i0.ɵɵngDeclareDirective({
850
+ minVersion: "14.0.0",
851
+ version: "22.2.6",
852
+ type: ComboboxClear,
853
+ isStandalone: true,
854
+ selector: "[comboboxClear]",
855
+ exportAs: ["comboboxClear"],
856
+ ngImport: i0
857
+ });
858
+ }
859
+ };
860
+ i0.ɵɵngDeclareClassMetadata({
861
+ minVersion: "12.0.0",
862
+ version: "22.2.6",
863
+ ngImport: i0,
864
+ type: ComboboxClear,
865
+ decorators: [{
866
+ type: Directive,
867
+ args: [{
868
+ selector: "[comboboxClear]",
869
+ exportAs: "comboboxClear"
870
+ }]
871
+ }],
872
+ ctorParameters: () => []
873
+ });
874
+ var ComboboxEmpty = class ComboboxEmpty {
875
+ constructor() {
876
+ this.root = inject(ComboboxRoot);
877
+ const host = injectHost();
878
+ const kept = document.createDocumentFragment();
879
+ afterRenderEffect({ write: () => {
880
+ const empty = this.root.empty();
881
+ untracked(() => {
882
+ if (empty) host.append(kept);
883
+ else kept.append(...host.childNodes);
884
+ });
885
+ } });
886
+ }
887
+ static {
888
+ this.ɵfac = i0.ɵɵngDeclareFactory({
889
+ minVersion: "12.0.0",
890
+ version: "22.2.6",
891
+ ngImport: i0,
892
+ type: ComboboxEmpty,
893
+ deps: [],
894
+ target: i0.ɵɵFactoryTarget.Directive
895
+ });
896
+ }
897
+ static {
898
+ this.ɵdir = i0.ɵɵngDeclareDirective({
899
+ minVersion: "14.0.0",
900
+ version: "22.2.6",
901
+ type: ComboboxEmpty,
902
+ isStandalone: true,
903
+ selector: "[comboboxEmpty]",
904
+ host: { attributes: {
905
+ "role": "status",
906
+ "aria-live": "polite",
907
+ "aria-atomic": "true",
908
+ "data-primitives-part": "combobox-empty"
909
+ } },
910
+ ngImport: i0
911
+ });
912
+ }
913
+ };
914
+ i0.ɵɵngDeclareClassMetadata({
915
+ minVersion: "12.0.0",
916
+ version: "22.2.6",
917
+ ngImport: i0,
918
+ type: ComboboxEmpty,
919
+ decorators: [{
920
+ type: Directive,
921
+ args: [{
922
+ selector: "[comboboxEmpty]",
923
+ host: {
924
+ role: "status",
925
+ "aria-live": "polite",
926
+ "aria-atomic": "true",
927
+ "data-primitives-part": "combobox-empty"
928
+ }
929
+ }]
930
+ }],
931
+ ctorParameters: () => []
932
+ });
933
+ var ComboboxGroup = class ComboboxGroup {
934
+ constructor() {
935
+ this.labelId = `${injectId("primitives-combobox-group")}-label`;
936
+ }
937
+ static {
938
+ this.ɵfac = i0.ɵɵngDeclareFactory({
939
+ minVersion: "12.0.0",
940
+ version: "22.2.6",
941
+ ngImport: i0,
942
+ type: ComboboxGroup,
943
+ deps: [],
944
+ target: i0.ɵɵFactoryTarget.Directive
945
+ });
946
+ }
947
+ static {
948
+ this.ɵdir = i0.ɵɵngDeclareDirective({
949
+ minVersion: "14.0.0",
950
+ version: "22.2.6",
951
+ type: ComboboxGroup,
952
+ isStandalone: true,
953
+ selector: "[comboboxGroup]",
954
+ host: {
955
+ attributes: {
956
+ "role": "group",
957
+ "data-primitives-part": "combobox-group"
958
+ },
959
+ properties: { "attr.aria-labelledby": "labelId" }
960
+ },
961
+ exportAs: ["comboboxGroup"],
962
+ ngImport: i0
963
+ });
964
+ }
965
+ };
966
+ i0.ɵɵngDeclareClassMetadata({
967
+ minVersion: "12.0.0",
968
+ version: "22.2.6",
969
+ ngImport: i0,
970
+ type: ComboboxGroup,
971
+ decorators: [{
972
+ type: Directive,
973
+ args: [{
974
+ selector: "[comboboxGroup]",
975
+ exportAs: "comboboxGroup",
976
+ host: {
977
+ role: "group",
978
+ "data-primitives-part": "combobox-group",
979
+ "[attr.aria-labelledby]": "labelId"
980
+ }
981
+ }]
982
+ }]
983
+ });
984
+ var ComboboxGroupLabel = class ComboboxGroupLabel {
985
+ constructor() {
986
+ this.group = injectEnclosing(ComboboxGroup, "comboboxGroup", "ComboboxGroupLabel");
987
+ }
988
+ static {
989
+ this.ɵfac = i0.ɵɵngDeclareFactory({
990
+ minVersion: "12.0.0",
991
+ version: "22.2.6",
992
+ ngImport: i0,
993
+ type: ComboboxGroupLabel,
994
+ deps: [],
995
+ target: i0.ɵɵFactoryTarget.Directive
996
+ });
997
+ }
998
+ static {
999
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1000
+ minVersion: "14.0.0",
1001
+ version: "22.2.6",
1002
+ type: ComboboxGroupLabel,
1003
+ isStandalone: true,
1004
+ selector: "[comboboxGroupLabel]",
1005
+ host: {
1006
+ attributes: { "data-primitives-part": "combobox-group-label" },
1007
+ properties: { "attr.id": "group.labelId" }
1008
+ },
1009
+ ngImport: i0
1010
+ });
1011
+ }
1012
+ };
1013
+ i0.ɵɵngDeclareClassMetadata({
1014
+ minVersion: "12.0.0",
1015
+ version: "22.2.6",
1016
+ ngImport: i0,
1017
+ type: ComboboxGroupLabel,
1018
+ decorators: [{
1019
+ type: Directive,
1020
+ args: [{
1021
+ selector: "[comboboxGroupLabel]",
1022
+ host: {
1023
+ "data-primitives-part": "combobox-group-label",
1024
+ "[attr.id]": "group.labelId"
1025
+ }
1026
+ }]
1027
+ }]
1028
+ });
1029
+ var ComboboxInput = class ComboboxInput {
1030
+ constructor() {
1031
+ this.direction = injectProvidedDirection();
1032
+ this.root = inject(ComboboxRoot);
1033
+ this.state = computed(() => ({
1034
+ open: this.root.overlay.open(),
1035
+ disabled: this.root.isDisabled()
1036
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
1037
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
1038
+ this.active = computed(() => {
1039
+ this.root.itemCount();
1040
+ const highlighted = this.root.highlighted();
1041
+ if (!this.state().open || highlighted === null) return;
1042
+ return this.root.orderedItems().find((item) => item.id === highlighted);
1043
+ }, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
1044
+ this.activeId = computed(() => this.active()?.id ?? null, ...ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []);
1045
+ this.String = String;
1046
+ this.input = registerHost(this.root.overlay.singleTrigger);
1047
+ this.flush = injectFlush();
1048
+ const { field } = this.root;
1049
+ const host = this.input;
1050
+ writeFieldAria(field, host, {
1051
+ "aria-labelledby": field.labelledBy,
1052
+ "aria-describedby": field.describedBy,
1053
+ "aria-invalid": field.ariaInvalid
1054
+ });
1055
+ afterNextRender(() => {
1056
+ if (host.id === "") host.id = this.root.overlay.triggerId;
1057
+ this.root.inputElementId.set(host.id);
1058
+ });
1059
+ }
1060
+ onInput() {
1061
+ const root = this.root;
1062
+ root.setInputValue(this.input.value, "input-change");
1063
+ root.highlighted.set(null);
1064
+ root.markTyped();
1065
+ root.pendingHighlight.set(null);
1066
+ if (!root.overlay.open()) root.setOpen(true, "input-change");
1067
+ this.flush();
1068
+ if (this.input.value !== root.inputValue()) this.input.value = root.inputValue();
1069
+ }
1070
+ onKeyDown(event) {
1071
+ const root = this.root;
1072
+ const input = this.input;
1073
+ const open = root.overlay.open();
1074
+ const openWith = (highlight) => {
1075
+ root.pendingHighlight.set(highlight);
1076
+ root.setOpen(true, "list-navigation");
1077
+ };
1078
+ switch (event.key) {
1079
+ case "ArrowDown":
1080
+ case "ArrowUp": {
1081
+ event.preventDefault();
1082
+ if (event.altKey) {
1083
+ if (event.key === "ArrowDown" && !open) openWith(null);
1084
+ else if (event.key === "ArrowUp" && open) root.setOpen(false, "list-navigation");
1085
+ return;
1086
+ }
1087
+ if (!open) {
1088
+ openWith(event.key === "ArrowDown" ? "first" : "last");
1089
+ return;
1090
+ }
1091
+ const items = root.orderedItems();
1092
+ const index = items.findIndex((item) => item.id === root.highlighted());
1093
+ const delta = event.key === "ArrowDown" ? 1 : -1;
1094
+ root.highlight(items[stepThroughNone(items.length, index, delta)]?.id ?? null);
1095
+ return;
1096
+ }
1097
+ case "Enter":
1098
+ if (open) {
1099
+ event.preventDefault();
1100
+ const active = this.active();
1101
+ if (active !== void 0 && !active.disabled) root.choose(active.value);
1102
+ }
1103
+ return;
1104
+ case "Escape":
1105
+ if (!open && (root.inputValue() !== "" || root.values().length > 0)) {
1106
+ event.preventDefault();
1107
+ root.clear("escape-key");
1108
+ }
1109
+ return;
1110
+ case "Tab":
1111
+ if (open) root.setOpen(false, "focus-out");
1112
+ return;
1113
+ case "Backspace":
1114
+ if (root.multiple() && input.value === "" && root.values().length > 0) root.removeAt(root.values().length - 1, "none");
1115
+ return;
1116
+ default: {
1117
+ const chips = root.chipElements();
1118
+ if (root.multiple() && event.key === chipArrows(getDirection(input, this.direction()) === "rtl").previous && input.selectionStart === 0 && input.selectionEnd === 0 && chips.length > 0) {
1119
+ event.preventDefault();
1120
+ chips.at(-1)?.focus();
1121
+ }
1122
+ }
1123
+ }
1124
+ }
1125
+ static {
1126
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1127
+ minVersion: "12.0.0",
1128
+ version: "22.2.6",
1129
+ ngImport: i0,
1130
+ type: ComboboxInput,
1131
+ deps: [],
1132
+ target: i0.ɵɵFactoryTarget.Directive
1133
+ });
1134
+ }
1135
+ static {
1136
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1137
+ minVersion: "14.0.0",
1138
+ version: "22.2.6",
1139
+ type: ComboboxInput,
1140
+ isStandalone: true,
1141
+ selector: "input[comboboxInput]",
1142
+ host: {
1143
+ attributes: {
1144
+ "type": "text",
1145
+ "role": "combobox",
1146
+ "autocomplete": "off",
1147
+ "aria-autocomplete": "list",
1148
+ "data-primitives-part": "combobox-input"
1149
+ },
1150
+ listeners: {
1151
+ "input": "onInput()",
1152
+ "click": "root.openOnPress()",
1153
+ "keydown": "onKeyDown($event)",
1154
+ "focus": "root.field.focused()",
1155
+ "blur": "root.field.blurred()"
1156
+ },
1157
+ properties: {
1158
+ "attr.disabled": "data().disabled",
1159
+ "value": "root.inputValue()",
1160
+ "attr.value": "root.inputValue()",
1161
+ "attr.aria-expanded": "String(state().open)",
1162
+ "attr.aria-controls": "root.listId",
1163
+ "attr.aria-activedescendant": "activeId()",
1164
+ "attr.data-invalid": "root.field.data().invalid",
1165
+ "attr.data-valid": "root.field.data().valid",
1166
+ "attr.data-dirty": "root.field.data().dirty",
1167
+ "attr.data-touched": "root.field.data().touched",
1168
+ "attr.data-filled": "root.field.data().filled",
1169
+ "attr.data-focused": "root.field.data().focused",
1170
+ "attr.data-popup-open": "data().open",
1171
+ "attr.data-disabled": "data().disabled"
1172
+ }
1173
+ },
1174
+ exportAs: ["comboboxInput"],
1175
+ ngImport: i0
1176
+ });
1177
+ }
1178
+ };
1179
+ i0.ɵɵngDeclareClassMetadata({
1180
+ minVersion: "12.0.0",
1181
+ version: "22.2.6",
1182
+ ngImport: i0,
1183
+ type: ComboboxInput,
1184
+ decorators: [{
1185
+ type: Directive,
1186
+ args: [{
1187
+ selector: "input[comboboxInput]",
1188
+ exportAs: "comboboxInput",
1189
+ host: {
1190
+ type: "text",
1191
+ role: "combobox",
1192
+ autocomplete: "off",
1193
+ "aria-autocomplete": "list",
1194
+ "data-primitives-part": "combobox-input",
1195
+ "[attr.disabled]": "data().disabled",
1196
+ "[value]": "root.inputValue()",
1197
+ "[attr.value]": "root.inputValue()",
1198
+ "[attr.aria-expanded]": "String(state().open)",
1199
+ "[attr.aria-controls]": "root.listId",
1200
+ "[attr.aria-activedescendant]": "activeId()",
1201
+ "[attr.data-invalid]": "root.field.data().invalid",
1202
+ "[attr.data-valid]": "root.field.data().valid",
1203
+ "[attr.data-dirty]": "root.field.data().dirty",
1204
+ "[attr.data-touched]": "root.field.data().touched",
1205
+ "[attr.data-filled]": "root.field.data().filled",
1206
+ "[attr.data-focused]": "root.field.data().focused",
1207
+ "[attr.data-popup-open]": "data().open",
1208
+ "[attr.data-disabled]": "data().disabled",
1209
+ "(input)": "onInput()",
1210
+ "(click)": "root.openOnPress()",
1211
+ "(keydown)": "onKeyDown($event)",
1212
+ "(focus)": "root.field.focused()",
1213
+ "(blur)": "root.field.blurred()"
1214
+ }
1215
+ }]
1216
+ }],
1217
+ ctorParameters: () => []
1218
+ });
1219
+ var ComboboxInputGroup = class ComboboxInputGroup {
1220
+ constructor() {
1221
+ this.root = inject(ComboboxRoot);
1222
+ this.state = computed(() => ({
1223
+ open: this.root.overlay.open(),
1224
+ disabled: this.root.isDisabled()
1225
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
1226
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
1227
+ registerHost(this.root.inputGroup);
1228
+ }
1229
+ static {
1230
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1231
+ minVersion: "12.0.0",
1232
+ version: "22.2.6",
1233
+ ngImport: i0,
1234
+ type: ComboboxInputGroup,
1235
+ deps: [],
1236
+ target: i0.ɵɵFactoryTarget.Directive
1237
+ });
1238
+ }
1239
+ static {
1240
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1241
+ minVersion: "14.0.0",
1242
+ version: "22.2.6",
1243
+ type: ComboboxInputGroup,
1244
+ isStandalone: true,
1245
+ selector: "[comboboxInputGroup]",
1246
+ host: {
1247
+ attributes: {
1248
+ "role": "group",
1249
+ "data-primitives-part": "combobox-input-group"
1250
+ },
1251
+ listeners: { "mousedown": "root.pressToOpen($event)" },
1252
+ properties: {
1253
+ "attr.data-popup-open": "data().open",
1254
+ "attr.data-disabled": "data().disabled"
1255
+ }
1256
+ },
1257
+ exportAs: ["comboboxInputGroup"],
1258
+ ngImport: i0
1259
+ });
1260
+ }
1261
+ };
1262
+ i0.ɵɵngDeclareClassMetadata({
1263
+ minVersion: "12.0.0",
1264
+ version: "22.2.6",
1265
+ ngImport: i0,
1266
+ type: ComboboxInputGroup,
1267
+ decorators: [{
1268
+ type: Directive,
1269
+ args: [{
1270
+ selector: "[comboboxInputGroup]",
1271
+ exportAs: "comboboxInputGroup",
1272
+ host: {
1273
+ role: "group",
1274
+ "data-primitives-part": "combobox-input-group",
1275
+ "[attr.data-popup-open]": "data().open",
1276
+ "[attr.data-disabled]": "data().disabled",
1277
+ "(mousedown)": "root.pressToOpen($event)"
1278
+ }
1279
+ }]
1280
+ }],
1281
+ ctorParameters: () => []
1282
+ });
1283
+ var ComboboxItem = class ComboboxItem {
1284
+ constructor() {
1285
+ this.root = inject(ComboboxRoot);
1286
+ this.value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
1287
+ this.disabled = input(false, {
1288
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
1289
+ transform: booleanAttribute
1290
+ });
1291
+ this.id = injectId("primitives-combobox-item");
1292
+ this.state = computed(() => ({
1293
+ highlighted: this.root.highlighted() === this.id,
1294
+ selected: this.root.isSelected(this.value()),
1295
+ disabled: this.disabled()
1296
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
1297
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
1298
+ const host = injectHost();
1299
+ const root = this.root;
1300
+ let unregister = null;
1301
+ effect(() => {
1302
+ const value = this.value();
1303
+ const disabled = this.disabled();
1304
+ untracked(() => {
1305
+ unregister?.();
1306
+ unregister = root.registerItem(host, {
1307
+ value,
1308
+ disabled,
1309
+ id: this.id
1310
+ });
1311
+ });
1312
+ });
1313
+ inject(DestroyRef).onDestroy(() => unregister?.());
1314
+ afterRenderEffect(() => {
1315
+ if (this.state().highlighted) scrollIntoViewWithin(host, this.root.overlay.positioner());
1316
+ });
1317
+ }
1318
+ onPointerMove() {
1319
+ if (!this.state().highlighted) this.root.highlighted.set(this.id);
1320
+ }
1321
+ onClick() {
1322
+ if (!this.disabled()) this.root.choose(this.value());
1323
+ }
1324
+ static {
1325
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1326
+ minVersion: "12.0.0",
1327
+ version: "22.2.6",
1328
+ ngImport: i0,
1329
+ type: ComboboxItem,
1330
+ deps: [],
1331
+ target: i0.ɵɵFactoryTarget.Directive
1332
+ });
1333
+ }
1334
+ static {
1335
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1336
+ minVersion: "17.1.0",
1337
+ version: "22.2.6",
1338
+ type: ComboboxItem,
1339
+ isStandalone: true,
1340
+ selector: "[comboboxItem]",
1341
+ inputs: {
1342
+ value: {
1343
+ classPropertyName: "value",
1344
+ publicName: "value",
1345
+ isSignal: true,
1346
+ isRequired: true,
1347
+ transformFunction: null
1348
+ },
1349
+ disabled: {
1350
+ classPropertyName: "disabled",
1351
+ publicName: "disabled",
1352
+ isSignal: true,
1353
+ isRequired: false,
1354
+ transformFunction: null
1355
+ }
1356
+ },
1357
+ host: {
1358
+ attributes: {
1359
+ "role": "option",
1360
+ "data-primitives-part": "combobox-item"
1361
+ },
1362
+ listeners: {
1363
+ "pointermove": "onPointerMove()",
1364
+ "pointerdown": "$event.preventDefault()",
1365
+ "click": "onClick()"
1366
+ },
1367
+ properties: {
1368
+ "attr.id": "id",
1369
+ "attr.aria-selected": "state().selected ? 'true' : null",
1370
+ "attr.aria-disabled": "state().disabled ? 'true' : null",
1371
+ "attr.data-highlighted": "data().highlighted",
1372
+ "attr.data-selected": "data().selected",
1373
+ "attr.data-disabled": "data().disabled"
1374
+ }
1375
+ },
1376
+ exportAs: ["comboboxItem"],
1377
+ ngImport: i0
1378
+ });
1379
+ }
1380
+ };
1381
+ i0.ɵɵngDeclareClassMetadata({
1382
+ minVersion: "12.0.0",
1383
+ version: "22.2.6",
1384
+ ngImport: i0,
1385
+ type: ComboboxItem,
1386
+ decorators: [{
1387
+ type: Directive,
1388
+ args: [{
1389
+ selector: "[comboboxItem]",
1390
+ exportAs: "comboboxItem",
1391
+ host: {
1392
+ role: "option",
1393
+ "data-primitives-part": "combobox-item",
1394
+ "[attr.id]": "id",
1395
+ "[attr.aria-selected]": "state().selected ? 'true' : null",
1396
+ "[attr.aria-disabled]": "state().disabled ? 'true' : null",
1397
+ "[attr.data-highlighted]": "data().highlighted",
1398
+ "[attr.data-selected]": "data().selected",
1399
+ "[attr.data-disabled]": "data().disabled",
1400
+ "(pointermove)": "onPointerMove()",
1401
+ "(pointerdown)": "$event.preventDefault()",
1402
+ "(click)": "onClick()"
1403
+ }
1404
+ }]
1405
+ }],
1406
+ ctorParameters: () => [],
1407
+ propDecorators: {
1408
+ value: [{
1409
+ type: i0.Input,
1410
+ args: [{
1411
+ isSignal: true,
1412
+ alias: "value",
1413
+ required: true
1414
+ }]
1415
+ }],
1416
+ disabled: [{
1417
+ type: i0.Input,
1418
+ args: [{
1419
+ isSignal: true,
1420
+ alias: "disabled",
1421
+ required: false
1422
+ }]
1423
+ }]
1424
+ }
1425
+ });
1426
+ var ComboboxItemIndicator = class ComboboxItemIndicator {
1427
+ constructor() {
1428
+ this.item = inject(ComboboxItem);
1429
+ this.keepMounted = input(false, {
1430
+ ...ngDevMode ? { debugName: "keepMounted" } : /* istanbul ignore next */ {},
1431
+ alias: "comboboxItemIndicator",
1432
+ transform: (value) => value === true || value === "true"
1433
+ });
1434
+ this.state = computed(() => ({ selected: this.item.state().selected }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
1435
+ conditionalView(computed(() => this.state().selected || this.keepMounted()), (element) => writeAttributes(element, {
1436
+ "aria-hidden": "true",
1437
+ "data-primitives-part": "combobox-item-indicator"
1438
+ }));
1439
+ }
1440
+ static {
1441
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1442
+ minVersion: "12.0.0",
1443
+ version: "22.2.6",
1444
+ ngImport: i0,
1445
+ type: ComboboxItemIndicator,
1446
+ deps: [],
1447
+ target: i0.ɵɵFactoryTarget.Directive
1448
+ });
1449
+ }
1450
+ static {
1451
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1452
+ minVersion: "17.1.0",
1453
+ version: "22.2.6",
1454
+ type: ComboboxItemIndicator,
1455
+ isStandalone: true,
1456
+ selector: "[comboboxItemIndicator]",
1457
+ inputs: { keepMounted: {
1458
+ classPropertyName: "keepMounted",
1459
+ publicName: "comboboxItemIndicator",
1460
+ isSignal: true,
1461
+ isRequired: false,
1462
+ transformFunction: null
1463
+ } },
1464
+ exportAs: ["comboboxItemIndicator"],
1465
+ ngImport: i0
1466
+ });
1467
+ }
1468
+ };
1469
+ i0.ɵɵngDeclareClassMetadata({
1470
+ minVersion: "12.0.0",
1471
+ version: "22.2.6",
1472
+ ngImport: i0,
1473
+ type: ComboboxItemIndicator,
1474
+ decorators: [{
1475
+ type: Directive,
1476
+ args: [{
1477
+ selector: "[comboboxItemIndicator]",
1478
+ exportAs: "comboboxItemIndicator"
1479
+ }]
1480
+ }],
1481
+ ctorParameters: () => [],
1482
+ propDecorators: { keepMounted: [{
1483
+ type: i0.Input,
1484
+ args: [{
1485
+ isSignal: true,
1486
+ alias: "comboboxItemIndicator",
1487
+ required: false
1488
+ }]
1489
+ }] }
1490
+ });
1491
+ var ComboboxList = class ComboboxList {
1492
+ constructor() {
1493
+ this.root = inject(ComboboxRoot);
1494
+ this.entries = computed(() => this.root.entries(), ...ngDevMode ? [{ debugName: "entries" }] : /* istanbul ignore next */ []);
1495
+ this.state = computed(() => ({ empty: this.root.empty() }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
1496
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
1497
+ const root = this.root;
1498
+ registerHost(root.list);
1499
+ afterRenderEffect(() => {
1500
+ const list = root.list();
1501
+ const pending = root.pendingHighlight();
1502
+ root.itemCount();
1503
+ root.overlay.open();
1504
+ if (list === null || pending === null) return;
1505
+ untracked(() => {
1506
+ if (!root.itemsRegistered()) return;
1507
+ root.pendingHighlight.set(null);
1508
+ const items = root.orderedItems();
1509
+ const selected = root.multiple() ? void 0 : items.find((item) => root.isSelected(item.value));
1510
+ const edge = pending === "first" ? items[0] : items.at(-1);
1511
+ const target = selected ?? (pending === "selected" ? void 0 : edge);
1512
+ root.highlighted.set(target?.id ?? null);
1513
+ });
1514
+ });
1515
+ }
1516
+ static {
1517
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1518
+ minVersion: "12.0.0",
1519
+ version: "22.2.6",
1520
+ ngImport: i0,
1521
+ type: ComboboxList,
1522
+ deps: [],
1523
+ target: i0.ɵɵFactoryTarget.Directive
1524
+ });
1525
+ }
1526
+ static {
1527
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1528
+ minVersion: "14.0.0",
1529
+ version: "22.2.6",
1530
+ type: ComboboxList,
1531
+ isStandalone: true,
1532
+ selector: "[comboboxList]",
1533
+ host: {
1534
+ attributes: {
1535
+ "role": "listbox",
1536
+ "data-primitives-part": "combobox-list"
1537
+ },
1538
+ properties: {
1539
+ "attr.id": "root.listId",
1540
+ "attr.aria-multiselectable": "root.multiple() ? 'true' : null",
1541
+ "attr.data-empty": "data().empty"
1542
+ }
1543
+ },
1544
+ exportAs: ["comboboxList"],
1545
+ ngImport: i0
1546
+ });
1547
+ }
1548
+ };
1549
+ i0.ɵɵngDeclareClassMetadata({
1550
+ minVersion: "12.0.0",
1551
+ version: "22.2.6",
1552
+ ngImport: i0,
1553
+ type: ComboboxList,
1554
+ decorators: [{
1555
+ type: Directive,
1556
+ args: [{
1557
+ selector: "[comboboxList]",
1558
+ exportAs: "comboboxList",
1559
+ host: {
1560
+ role: "listbox",
1561
+ "data-primitives-part": "combobox-list",
1562
+ "[attr.id]": "root.listId",
1563
+ "[attr.aria-multiselectable]": "root.multiple() ? 'true' : null",
1564
+ "[attr.data-empty]": "data().empty"
1565
+ }
1566
+ }]
1567
+ }],
1568
+ ctorParameters: () => []
1569
+ });
1570
+ var ComboboxPopup = class ComboboxPopup {
1571
+ constructor() {
1572
+ this.root = inject(ComboboxRoot);
1573
+ this.state = computed(() => ({
1574
+ open: this.root.overlay.open(),
1575
+ ...this.root.placed()
1576
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
1577
+ this.data = computed(() => {
1578
+ const status = this.root.overlay.presence.status();
1579
+ const state = this.state();
1580
+ return dataValues({
1581
+ ...state,
1582
+ closed: !state.open,
1583
+ "starting-style": status === "starting",
1584
+ "ending-style": status === "ending"
1585
+ });
1586
+ }, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
1587
+ registerHost(this.root.overlay.popup);
1588
+ }
1589
+ static {
1590
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1591
+ minVersion: "12.0.0",
1592
+ version: "22.2.6",
1593
+ ngImport: i0,
1594
+ type: ComboboxPopup,
1595
+ deps: [],
1596
+ target: i0.ɵɵFactoryTarget.Directive
1597
+ });
1598
+ }
1599
+ static {
1600
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1601
+ minVersion: "14.0.0",
1602
+ version: "22.2.6",
1603
+ type: ComboboxPopup,
1604
+ isStandalone: true,
1605
+ selector: "[comboboxPopup]",
1606
+ host: {
1607
+ attributes: { "data-primitives-part": "combobox-popup" },
1608
+ properties: {
1609
+ "attr.data-open": "data().open",
1610
+ "attr.data-closed": "data().closed",
1611
+ "attr.data-side": "data().side",
1612
+ "attr.data-align": "data().align",
1613
+ "attr.data-starting-style": "data()['starting-style']",
1614
+ "attr.data-ending-style": "data()['ending-style']"
1615
+ }
1616
+ },
1617
+ exportAs: ["comboboxPopup"],
1618
+ ngImport: i0
1619
+ });
1620
+ }
1621
+ };
1622
+ i0.ɵɵngDeclareClassMetadata({
1623
+ minVersion: "12.0.0",
1624
+ version: "22.2.6",
1625
+ ngImport: i0,
1626
+ type: ComboboxPopup,
1627
+ decorators: [{
1628
+ type: Directive,
1629
+ args: [{
1630
+ selector: "[comboboxPopup]",
1631
+ exportAs: "comboboxPopup",
1632
+ host: {
1633
+ "data-primitives-part": "combobox-popup",
1634
+ "[attr.data-open]": "data().open",
1635
+ "[attr.data-closed]": "data().closed",
1636
+ "[attr.data-side]": "data().side",
1637
+ "[attr.data-align]": "data().align",
1638
+ "[attr.data-starting-style]": "data()['starting-style']",
1639
+ "[attr.data-ending-style]": "data()['ending-style']"
1640
+ }
1641
+ }]
1642
+ }],
1643
+ ctorParameters: () => []
1644
+ });
1645
+ var ComboboxPortal = class ComboboxPortal {
1646
+ constructor() {
1647
+ this.options = input({}, {
1648
+ ...ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {},
1649
+ alias: "comboboxPortal",
1650
+ transform: portalOptions
1651
+ });
1652
+ mountPortal(inject(ComboboxRoot).overlay.presence.mounted, this.options);
1653
+ }
1654
+ static {
1655
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1656
+ minVersion: "12.0.0",
1657
+ version: "22.2.6",
1658
+ ngImport: i0,
1659
+ type: ComboboxPortal,
1660
+ deps: [],
1661
+ target: i0.ɵɵFactoryTarget.Directive
1662
+ });
1663
+ }
1664
+ static {
1665
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1666
+ minVersion: "17.1.0",
1667
+ version: "22.2.6",
1668
+ type: ComboboxPortal,
1669
+ isStandalone: true,
1670
+ selector: "[comboboxPortal]",
1671
+ inputs: { options: {
1672
+ classPropertyName: "options",
1673
+ publicName: "comboboxPortal",
1674
+ isSignal: true,
1675
+ isRequired: false,
1676
+ transformFunction: null
1677
+ } },
1678
+ ngImport: i0
1679
+ });
1680
+ }
1681
+ };
1682
+ i0.ɵɵngDeclareClassMetadata({
1683
+ minVersion: "12.0.0",
1684
+ version: "22.2.6",
1685
+ ngImport: i0,
1686
+ type: ComboboxPortal,
1687
+ decorators: [{
1688
+ type: Directive,
1689
+ args: [{ selector: "[comboboxPortal]" }]
1690
+ }],
1691
+ ctorParameters: () => [],
1692
+ propDecorators: { options: [{
1693
+ type: i0.Input,
1694
+ args: [{
1695
+ isSignal: true,
1696
+ alias: "comboboxPortal",
1697
+ required: false
1698
+ }]
1699
+ }] }
1700
+ });
1701
+ var ComboboxPositioner = class ComboboxPositioner {
1702
+ constructor() {
1703
+ this.root = inject(ComboboxRoot);
1704
+ this.side = input(void 0, ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
1705
+ this.align = input(void 0, ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
1706
+ this.sideOffset = input(void 0, ...ngDevMode ? [{ debugName: "sideOffset" }] : /* istanbul ignore next */ []);
1707
+ this.alignOffset = input(void 0, ...ngDevMode ? [{ debugName: "alignOffset" }] : /* istanbul ignore next */ []);
1708
+ this.collisionPadding = input(void 0, ...ngDevMode ? [{ debugName: "collisionPadding" }] : /* istanbul ignore next */ []);
1709
+ this.anchor = input(void 0, ...ngDevMode ? [{ debugName: "anchor" }] : /* istanbul ignore next */ []);
1710
+ this.state = computed(() => ({
1711
+ open: this.root.overlay.open(),
1712
+ ...this.root.placed()
1713
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
1714
+ this.data = computed(() => dataValues({
1715
+ ...this.state(),
1716
+ closed: !this.state().open
1717
+ }), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
1718
+ const root = this.root;
1719
+ const overlay = root.overlay;
1720
+ const positioner = registerHost(overlay.positioner);
1721
+ positionOverlay(this, {
1722
+ side: "bottom",
1723
+ align: "start"
1724
+ }, {
1725
+ anchor: computed(() => root.inputGroup() ?? root.chips() ?? overlay.trigger()),
1726
+ positioner,
1727
+ mounted: overlay.presence.mounted
1728
+ }, root.placed);
1729
+ afterRenderEffect((onCleanup) => {
1730
+ const open = overlay.open();
1731
+ const ignored = [
1732
+ overlay.trigger(),
1733
+ root.button(),
1734
+ root.inputGroup(),
1735
+ root.chips(),
1736
+ root.clearButton()
1737
+ ];
1738
+ if (!open) return;
1739
+ untracked(() => {
1740
+ onCleanup(openOverlaySession(positioner.ownerDocument, {
1741
+ elements: () => [positioner],
1742
+ ignore: () => ignored,
1743
+ dismiss: (reason, event) => root.setOpen(false, reason, event)
1744
+ }).end);
1745
+ });
1746
+ });
1747
+ }
1748
+ static {
1749
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1750
+ minVersion: "12.0.0",
1751
+ version: "22.2.6",
1752
+ ngImport: i0,
1753
+ type: ComboboxPositioner,
1754
+ deps: [],
1755
+ target: i0.ɵɵFactoryTarget.Directive
1756
+ });
1757
+ }
1758
+ static {
1759
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1760
+ minVersion: "17.1.0",
1761
+ version: "22.2.6",
1762
+ type: ComboboxPositioner,
1763
+ isStandalone: true,
1764
+ selector: "[comboboxPositioner]",
1765
+ inputs: {
1766
+ side: {
1767
+ classPropertyName: "side",
1768
+ publicName: "side",
1769
+ isSignal: true,
1770
+ isRequired: false,
1771
+ transformFunction: null
1772
+ },
1773
+ align: {
1774
+ classPropertyName: "align",
1775
+ publicName: "align",
1776
+ isSignal: true,
1777
+ isRequired: false,
1778
+ transformFunction: null
1779
+ },
1780
+ sideOffset: {
1781
+ classPropertyName: "sideOffset",
1782
+ publicName: "sideOffset",
1783
+ isSignal: true,
1784
+ isRequired: false,
1785
+ transformFunction: null
1786
+ },
1787
+ alignOffset: {
1788
+ classPropertyName: "alignOffset",
1789
+ publicName: "alignOffset",
1790
+ isSignal: true,
1791
+ isRequired: false,
1792
+ transformFunction: null
1793
+ },
1794
+ collisionPadding: {
1795
+ classPropertyName: "collisionPadding",
1796
+ publicName: "collisionPadding",
1797
+ isSignal: true,
1798
+ isRequired: false,
1799
+ transformFunction: null
1800
+ },
1801
+ anchor: {
1802
+ classPropertyName: "anchor",
1803
+ publicName: "anchor",
1804
+ isSignal: true,
1805
+ isRequired: false,
1806
+ transformFunction: null
1807
+ }
1808
+ },
1809
+ host: {
1810
+ attributes: {
1811
+ "role": "presentation",
1812
+ "data-primitives-part": "combobox-positioner"
1813
+ },
1814
+ properties: {
1815
+ "attr.hidden": "root.overlay.presence.mounted() ? null : ''",
1816
+ "attr.data-open": "data().open",
1817
+ "attr.data-closed": "data().closed",
1818
+ "attr.data-side": "data().side",
1819
+ "attr.data-align": "data().align"
1820
+ }
1821
+ },
1822
+ exportAs: ["comboboxPositioner"],
1823
+ ngImport: i0
1824
+ });
1825
+ }
1826
+ };
1827
+ i0.ɵɵngDeclareClassMetadata({
1828
+ minVersion: "12.0.0",
1829
+ version: "22.2.6",
1830
+ ngImport: i0,
1831
+ type: ComboboxPositioner,
1832
+ decorators: [{
1833
+ type: Directive,
1834
+ args: [{
1835
+ selector: "[comboboxPositioner]",
1836
+ exportAs: "comboboxPositioner",
1837
+ host: {
1838
+ role: "presentation",
1839
+ "data-primitives-part": "combobox-positioner",
1840
+ "[attr.hidden]": "root.overlay.presence.mounted() ? null : ''",
1841
+ "[attr.data-open]": "data().open",
1842
+ "[attr.data-closed]": "data().closed",
1843
+ "[attr.data-side]": "data().side",
1844
+ "[attr.data-align]": "data().align"
1845
+ }
1846
+ }]
1847
+ }],
1848
+ ctorParameters: () => [],
1849
+ propDecorators: {
1850
+ side: [{
1851
+ type: i0.Input,
1852
+ args: [{
1853
+ isSignal: true,
1854
+ alias: "side",
1855
+ required: false
1856
+ }]
1857
+ }],
1858
+ align: [{
1859
+ type: i0.Input,
1860
+ args: [{
1861
+ isSignal: true,
1862
+ alias: "align",
1863
+ required: false
1864
+ }]
1865
+ }],
1866
+ sideOffset: [{
1867
+ type: i0.Input,
1868
+ args: [{
1869
+ isSignal: true,
1870
+ alias: "sideOffset",
1871
+ required: false
1872
+ }]
1873
+ }],
1874
+ alignOffset: [{
1875
+ type: i0.Input,
1876
+ args: [{
1877
+ isSignal: true,
1878
+ alias: "alignOffset",
1879
+ required: false
1880
+ }]
1881
+ }],
1882
+ collisionPadding: [{
1883
+ type: i0.Input,
1884
+ args: [{
1885
+ isSignal: true,
1886
+ alias: "collisionPadding",
1887
+ required: false
1888
+ }]
1889
+ }],
1890
+ anchor: [{
1891
+ type: i0.Input,
1892
+ args: [{
1893
+ isSignal: true,
1894
+ alias: "anchor",
1895
+ required: false
1896
+ }]
1897
+ }]
1898
+ }
1899
+ });
1900
+ var ComboboxSeparator = class ComboboxSeparator {
1901
+ static {
1902
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1903
+ minVersion: "12.0.0",
1904
+ version: "22.2.6",
1905
+ ngImport: i0,
1906
+ type: ComboboxSeparator,
1907
+ deps: [],
1908
+ target: i0.ɵɵFactoryTarget.Directive
1909
+ });
1910
+ }
1911
+ static {
1912
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1913
+ minVersion: "14.0.0",
1914
+ version: "22.2.6",
1915
+ type: ComboboxSeparator,
1916
+ isStandalone: true,
1917
+ selector: "[comboboxSeparator]",
1918
+ host: { attributes: {
1919
+ "role": "presentation",
1920
+ "data-orientation": "horizontal",
1921
+ "data-primitives-part": "combobox-separator"
1922
+ } },
1923
+ ngImport: i0
1924
+ });
1925
+ }
1926
+ };
1927
+ i0.ɵɵngDeclareClassMetadata({
1928
+ minVersion: "12.0.0",
1929
+ version: "22.2.6",
1930
+ ngImport: i0,
1931
+ type: ComboboxSeparator,
1932
+ decorators: [{
1933
+ type: Directive,
1934
+ args: [{
1935
+ selector: "[comboboxSeparator]",
1936
+ host: {
1937
+ role: "presentation",
1938
+ "data-orientation": "horizontal",
1939
+ "data-primitives-part": "combobox-separator"
1940
+ }
1941
+ }]
1942
+ }]
1943
+ });
1944
+ var ComboboxStatus = class ComboboxStatus {
1945
+ static {
1946
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1947
+ minVersion: "12.0.0",
1948
+ version: "22.2.6",
1949
+ ngImport: i0,
1950
+ type: ComboboxStatus,
1951
+ deps: [],
1952
+ target: i0.ɵɵFactoryTarget.Directive
1953
+ });
1954
+ }
1955
+ static {
1956
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1957
+ minVersion: "14.0.0",
1958
+ version: "22.2.6",
1959
+ type: ComboboxStatus,
1960
+ isStandalone: true,
1961
+ selector: "[comboboxStatus]",
1962
+ host: { attributes: {
1963
+ "role": "status",
1964
+ "aria-live": "polite",
1965
+ "aria-atomic": "true",
1966
+ "data-primitives-part": "combobox-status"
1967
+ } },
1968
+ ngImport: i0
1969
+ });
1970
+ }
1971
+ };
1972
+ i0.ɵɵngDeclareClassMetadata({
1973
+ minVersion: "12.0.0",
1974
+ version: "22.2.6",
1975
+ ngImport: i0,
1976
+ type: ComboboxStatus,
1977
+ decorators: [{
1978
+ type: Directive,
1979
+ args: [{
1980
+ selector: "[comboboxStatus]",
1981
+ host: {
1982
+ role: "status",
1983
+ "aria-live": "polite",
1984
+ "aria-atomic": "true",
1985
+ "data-primitives-part": "combobox-status"
1986
+ }
1987
+ }]
1988
+ }]
1989
+ });
1990
+ var ComboboxTrigger = class ComboboxTrigger {
1991
+ constructor() {
1992
+ this.root = inject(ComboboxRoot);
1993
+ this.state = computed(() => ({
1994
+ open: this.root.overlay.open(),
1995
+ disabled: this.root.isDisabled()
1996
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
1997
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
1998
+ this.String = String;
1999
+ registerHost(this.root.button);
2000
+ }
2001
+ onClick(event) {
2002
+ const root = this.root;
2003
+ root.pendingHighlight.set(null);
2004
+ root.setOpen(!root.overlay.open(), "trigger-press", event);
2005
+ root.overlay.trigger()?.focus();
2006
+ }
2007
+ static {
2008
+ this.ɵfac = i0.ɵɵngDeclareFactory({
2009
+ minVersion: "12.0.0",
2010
+ version: "22.2.6",
2011
+ ngImport: i0,
2012
+ type: ComboboxTrigger,
2013
+ deps: [],
2014
+ target: i0.ɵɵFactoryTarget.Directive
2015
+ });
2016
+ }
2017
+ static {
2018
+ this.ɵdir = i0.ɵɵngDeclareDirective({
2019
+ minVersion: "14.0.0",
2020
+ version: "22.2.6",
2021
+ type: ComboboxTrigger,
2022
+ isStandalone: true,
2023
+ selector: "[comboboxTrigger]",
2024
+ host: {
2025
+ attributes: {
2026
+ "type": "button",
2027
+ "tabindex": "-1",
2028
+ "data-primitives-part": "combobox-trigger"
2029
+ },
2030
+ listeners: {
2031
+ "pointerdown": "$event.preventDefault()",
2032
+ "click": "onClick($event)"
2033
+ },
2034
+ properties: {
2035
+ "attr.disabled": "data().disabled",
2036
+ "attr.aria-expanded": "String(state().open)",
2037
+ "attr.aria-controls": "root.listId",
2038
+ "attr.data-popup-open": "data().open",
2039
+ "attr.data-disabled": "data().disabled"
2040
+ }
2041
+ },
2042
+ exportAs: ["comboboxTrigger"],
2043
+ ngImport: i0
2044
+ });
2045
+ }
2046
+ };
2047
+ i0.ɵɵngDeclareClassMetadata({
2048
+ minVersion: "12.0.0",
2049
+ version: "22.2.6",
2050
+ ngImport: i0,
2051
+ type: ComboboxTrigger,
2052
+ decorators: [{
2053
+ type: Directive,
2054
+ args: [{
2055
+ selector: "[comboboxTrigger]",
2056
+ exportAs: "comboboxTrigger",
2057
+ host: {
2058
+ type: "button",
2059
+ tabindex: "-1",
2060
+ "data-primitives-part": "combobox-trigger",
2061
+ "[attr.disabled]": "data().disabled",
2062
+ "[attr.aria-expanded]": "String(state().open)",
2063
+ "[attr.aria-controls]": "root.listId",
2064
+ "[attr.data-popup-open]": "data().open",
2065
+ "[attr.data-disabled]": "data().disabled",
2066
+ "(pointerdown)": "$event.preventDefault()",
2067
+ "(click)": "onClick($event)"
2068
+ }
2069
+ }]
2070
+ }],
2071
+ ctorParameters: () => []
2072
+ });
2073
+ function injectCombobox() {
2074
+ const root = injectEnclosing(ComboboxRoot, "comboboxRoot", "injectCombobox");
2075
+ return {
2076
+ state: root.state,
2077
+ choose: (item) => root.choose(item),
2078
+ clear: () => root.clear("none")
2079
+ };
2080
+ }
2081
+ export { ComboboxChip, ComboboxChipRemove, ComboboxChips, ComboboxClear, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxInputGroup, ComboboxItem, ComboboxItemIndicator, ComboboxList, ComboboxPopup, ComboboxPortal, ComboboxPositioner, ComboboxRoot, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, injectCombobox };
2082
+
2083
+ //# sourceMappingURL=fragiola-primitives-angular-combobox.mjs.map