@fragiola/primitives-angular 0.0.0-stage → 0.0.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 (289) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +54 -2
  3. package/fesm2022/fragiola-primitives-angular-accordion.mjs +567 -0
  4. package/fesm2022/fragiola-primitives-angular-accordion.mjs.map +1 -0
  5. package/fesm2022/fragiola-primitives-angular-alert-dialog.mjs +562 -0
  6. package/fesm2022/fragiola-primitives-angular-alert-dialog.mjs.map +1 -0
  7. package/fesm2022/fragiola-primitives-angular-aspect-ratio.mjs +79 -0
  8. package/fesm2022/fragiola-primitives-angular-aspect-ratio.mjs.map +1 -0
  9. package/fesm2022/fragiola-primitives-angular-async-list.mjs +44 -0
  10. package/fesm2022/fragiola-primitives-angular-async-list.mjs.map +1 -0
  11. package/fesm2022/fragiola-primitives-angular-autocomplete-virtual.mjs +243 -0
  12. package/fesm2022/fragiola-primitives-angular-autocomplete-virtual.mjs.map +1 -0
  13. package/fesm2022/fragiola-primitives-angular-autocomplete.mjs +1751 -0
  14. package/fesm2022/fragiola-primitives-angular-autocomplete.mjs.map +1 -0
  15. package/fesm2022/fragiola-primitives-angular-avatar.mjs +308 -0
  16. package/fesm2022/fragiola-primitives-angular-avatar.mjs.map +1 -0
  17. package/fesm2022/fragiola-primitives-angular-breadcrumbs.mjs +355 -0
  18. package/fesm2022/fragiola-primitives-angular-breadcrumbs.mjs.map +1 -0
  19. package/fesm2022/fragiola-primitives-angular-button.mjs +156 -0
  20. package/fesm2022/fragiola-primitives-angular-button.mjs.map +1 -0
  21. package/fesm2022/fragiola-primitives-angular-calendar-preset.mjs +126 -0
  22. package/fesm2022/fragiola-primitives-angular-calendar-preset.mjs.map +1 -0
  23. package/fesm2022/fragiola-primitives-angular-calendar-view.mjs +289 -0
  24. package/fesm2022/fragiola-primitives-angular-calendar-view.mjs.map +1 -0
  25. package/fesm2022/fragiola-primitives-angular-calendar.mjs +1222 -0
  26. package/fesm2022/fragiola-primitives-angular-calendar.mjs.map +1 -0
  27. package/fesm2022/fragiola-primitives-angular-carousel.mjs +1031 -0
  28. package/fesm2022/fragiola-primitives-angular-carousel.mjs.map +1 -0
  29. package/fesm2022/fragiola-primitives-angular-cascade-select.mjs +1391 -0
  30. package/fesm2022/fragiola-primitives-angular-cascade-select.mjs.map +1 -0
  31. package/fesm2022/fragiola-primitives-angular-checkbox-group.mjs +221 -0
  32. package/fesm2022/fragiola-primitives-angular-checkbox-group.mjs.map +1 -0
  33. package/fesm2022/fragiola-primitives-angular-checkbox.mjs +474 -0
  34. package/fesm2022/fragiola-primitives-angular-checkbox.mjs.map +1 -0
  35. package/fesm2022/fragiola-primitives-angular-clipboard.mjs +389 -0
  36. package/fesm2022/fragiola-primitives-angular-clipboard.mjs.map +1 -0
  37. package/fesm2022/fragiola-primitives-angular-collapsible.mjs +314 -0
  38. package/fesm2022/fragiola-primitives-angular-collapsible.mjs.map +1 -0
  39. package/fesm2022/fragiola-primitives-angular-color-area.mjs +609 -0
  40. package/fesm2022/fragiola-primitives-angular-color-area.mjs.map +1 -0
  41. package/fesm2022/fragiola-primitives-angular-color-field.mjs +675 -0
  42. package/fesm2022/fragiola-primitives-angular-color-field.mjs.map +1 -0
  43. package/fesm2022/fragiola-primitives-angular-color-picker-popover.mjs +572 -0
  44. package/fesm2022/fragiola-primitives-angular-color-picker-popover.mjs.map +1 -0
  45. package/fesm2022/fragiola-primitives-angular-color-picker.mjs +528 -0
  46. package/fesm2022/fragiola-primitives-angular-color-picker.mjs.map +1 -0
  47. package/fesm2022/fragiola-primitives-angular-color-slider.mjs +868 -0
  48. package/fesm2022/fragiola-primitives-angular-color-slider.mjs.map +1 -0
  49. package/fesm2022/fragiola-primitives-angular-color-swatch-picker.mjs +503 -0
  50. package/fesm2022/fragiola-primitives-angular-color-swatch-picker.mjs.map +1 -0
  51. package/fesm2022/fragiola-primitives-angular-color-swatch.mjs +141 -0
  52. package/fesm2022/fragiola-primitives-angular-color-swatch.mjs.map +1 -0
  53. package/fesm2022/fragiola-primitives-angular-color-wheel.mjs +554 -0
  54. package/fesm2022/fragiola-primitives-angular-color-wheel.mjs.map +1 -0
  55. package/fesm2022/fragiola-primitives-angular-combobox-virtual.mjs +247 -0
  56. package/fesm2022/fragiola-primitives-angular-combobox-virtual.mjs.map +1 -0
  57. package/fesm2022/fragiola-primitives-angular-combobox.mjs +2083 -0
  58. package/fesm2022/fragiola-primitives-angular-combobox.mjs.map +1 -0
  59. package/fesm2022/fragiola-primitives-angular-command-virtual.mjs +263 -0
  60. package/fesm2022/fragiola-primitives-angular-command-virtual.mjs.map +1 -0
  61. package/fesm2022/fragiola-primitives-angular-command.mjs +977 -0
  62. package/fesm2022/fragiola-primitives-angular-command.mjs.map +1 -0
  63. package/fesm2022/fragiola-primitives-angular-context-menu.mjs +1012 -0
  64. package/fesm2022/fragiola-primitives-angular-context-menu.mjs.map +1 -0
  65. package/fesm2022/fragiola-primitives-angular-date-field.mjs +1030 -0
  66. package/fesm2022/fragiola-primitives-angular-date-field.mjs.map +1 -0
  67. package/fesm2022/fragiola-primitives-angular-date-picker-input.mjs +511 -0
  68. package/fesm2022/fragiola-primitives-angular-date-picker-input.mjs.map +1 -0
  69. package/fesm2022/fragiola-primitives-angular-date-picker.mjs +991 -0
  70. package/fesm2022/fragiola-primitives-angular-date-picker.mjs.map +1 -0
  71. package/fesm2022/fragiola-primitives-angular-date-range-field.mjs +847 -0
  72. package/fesm2022/fragiola-primitives-angular-date-range-field.mjs.map +1 -0
  73. package/fesm2022/fragiola-primitives-angular-date-range-picker-input.mjs +260 -0
  74. package/fesm2022/fragiola-primitives-angular-date-range-picker-input.mjs.map +1 -0
  75. package/fesm2022/fragiola-primitives-angular-date-range-picker.mjs +128 -0
  76. package/fesm2022/fragiola-primitives-angular-date-range-picker.mjs.map +1 -0
  77. package/fesm2022/fragiola-primitives-angular-dialog.mjs +1076 -0
  78. package/fesm2022/fragiola-primitives-angular-dialog.mjs.map +1 -0
  79. package/fesm2022/fragiola-primitives-angular-direction.mjs +82 -0
  80. package/fesm2022/fragiola-primitives-angular-direction.mjs.map +1 -0
  81. package/fesm2022/fragiola-primitives-angular-drawer.mjs +890 -0
  82. package/fesm2022/fragiola-primitives-angular-drawer.mjs.map +1 -0
  83. package/fesm2022/fragiola-primitives-angular-drop-zone.mjs +189 -0
  84. package/fesm2022/fragiola-primitives-angular-drop-zone.mjs.map +1 -0
  85. package/fesm2022/fragiola-primitives-angular-editable.mjs +955 -0
  86. package/fesm2022/fragiola-primitives-angular-editable.mjs.map +1 -0
  87. package/fesm2022/fragiola-primitives-angular-field.mjs +929 -0
  88. package/fesm2022/fragiola-primitives-angular-field.mjs.map +1 -0
  89. package/fesm2022/fragiola-primitives-angular-fieldset.mjs +164 -0
  90. package/fesm2022/fragiola-primitives-angular-fieldset.mjs.map +1 -0
  91. package/fesm2022/fragiola-primitives-angular-file-upload.mjs +1370 -0
  92. package/fesm2022/fragiola-primitives-angular-file-upload.mjs.map +1 -0
  93. package/fesm2022/fragiola-primitives-angular-form.mjs +162 -0
  94. package/fesm2022/fragiola-primitives-angular-form.mjs.map +1 -0
  95. package/fesm2022/fragiola-primitives-angular-hover-card.mjs +906 -0
  96. package/fesm2022/fragiola-primitives-angular-hover-card.mjs.map +1 -0
  97. package/fesm2022/fragiola-primitives-angular-internal.mjs +980 -0
  98. package/fesm2022/fragiola-primitives-angular-internal.mjs.map +1 -0
  99. package/fesm2022/fragiola-primitives-angular-label.mjs +65 -0
  100. package/fesm2022/fragiola-primitives-angular-label.mjs.map +1 -0
  101. package/fesm2022/fragiola-primitives-angular-link.mjs +109 -0
  102. package/fesm2022/fragiola-primitives-angular-link.mjs.map +1 -0
  103. package/fesm2022/fragiola-primitives-angular-listbox-virtual.mjs +657 -0
  104. package/fesm2022/fragiola-primitives-angular-listbox-virtual.mjs.map +1 -0
  105. package/fesm2022/fragiola-primitives-angular-listbox.mjs +851 -0
  106. package/fesm2022/fragiola-primitives-angular-listbox.mjs.map +1 -0
  107. package/fesm2022/fragiola-primitives-angular-menu.mjs +2258 -0
  108. package/fesm2022/fragiola-primitives-angular-menu.mjs.map +1 -0
  109. package/fesm2022/fragiola-primitives-angular-menubar.mjs +303 -0
  110. package/fesm2022/fragiola-primitives-angular-menubar.mjs.map +1 -0
  111. package/fesm2022/fragiola-primitives-angular-meter.mjs +410 -0
  112. package/fesm2022/fragiola-primitives-angular-meter.mjs.map +1 -0
  113. package/fesm2022/fragiola-primitives-angular-month-calendar.mjs +1066 -0
  114. package/fesm2022/fragiola-primitives-angular-month-calendar.mjs.map +1 -0
  115. package/fesm2022/fragiola-primitives-angular-month-picker.mjs +514 -0
  116. package/fesm2022/fragiola-primitives-angular-month-picker.mjs.map +1 -0
  117. package/fesm2022/fragiola-primitives-angular-month-range-calendar.mjs +163 -0
  118. package/fesm2022/fragiola-primitives-angular-month-range-calendar.mjs.map +1 -0
  119. package/fesm2022/fragiola-primitives-angular-month-range-picker.mjs +177 -0
  120. package/fesm2022/fragiola-primitives-angular-month-range-picker.mjs.map +1 -0
  121. package/fesm2022/fragiola-primitives-angular-multiple-calendar.mjs +216 -0
  122. package/fesm2022/fragiola-primitives-angular-multiple-calendar.mjs.map +1 -0
  123. package/fesm2022/fragiola-primitives-angular-navigation-menu.mjs +1413 -0
  124. package/fesm2022/fragiola-primitives-angular-navigation-menu.mjs.map +1 -0
  125. package/fesm2022/fragiola-primitives-angular-number-field.mjs +1210 -0
  126. package/fesm2022/fragiola-primitives-angular-number-field.mjs.map +1 -0
  127. package/fesm2022/fragiola-primitives-angular-otp-field.mjs +751 -0
  128. package/fesm2022/fragiola-primitives-angular-otp-field.mjs.map +1 -0
  129. package/fesm2022/fragiola-primitives-angular-pagination.mjs +758 -0
  130. package/fesm2022/fragiola-primitives-angular-pagination.mjs.map +1 -0
  131. package/fesm2022/fragiola-primitives-angular-password-input.mjs +542 -0
  132. package/fesm2022/fragiola-primitives-angular-password-input.mjs.map +1 -0
  133. package/fesm2022/fragiola-primitives-angular-popover.mjs +1011 -0
  134. package/fesm2022/fragiola-primitives-angular-popover.mjs.map +1 -0
  135. package/fesm2022/fragiola-primitives-angular-progress.mjs +472 -0
  136. package/fesm2022/fragiola-primitives-angular-progress.mjs.map +1 -0
  137. package/fesm2022/fragiola-primitives-angular-radio-group.mjs +321 -0
  138. package/fesm2022/fragiola-primitives-angular-radio-group.mjs.map +1 -0
  139. package/fesm2022/fragiola-primitives-angular-radio.mjs +273 -0
  140. package/fesm2022/fragiola-primitives-angular-radio.mjs.map +1 -0
  141. package/fesm2022/fragiola-primitives-angular-range-calendar.mjs +108 -0
  142. package/fesm2022/fragiola-primitives-angular-range-calendar.mjs.map +1 -0
  143. package/fesm2022/fragiola-primitives-angular-rating.mjs +643 -0
  144. package/fesm2022/fragiola-primitives-angular-rating.mjs.map +1 -0
  145. package/fesm2022/fragiola-primitives-angular-render.mjs +1 -0
  146. package/fesm2022/fragiola-primitives-angular-scroll-area.mjs +553 -0
  147. package/fesm2022/fragiola-primitives-angular-scroll-area.mjs.map +1 -0
  148. package/fesm2022/fragiola-primitives-angular-search-field.mjs +487 -0
  149. package/fesm2022/fragiola-primitives-angular-search-field.mjs.map +1 -0
  150. package/fesm2022/fragiola-primitives-angular-segmented-control.mjs +762 -0
  151. package/fesm2022/fragiola-primitives-angular-segmented-control.mjs.map +1 -0
  152. package/fesm2022/fragiola-primitives-angular-select-virtual.mjs +246 -0
  153. package/fesm2022/fragiola-primitives-angular-select-virtual.mjs.map +1 -0
  154. package/fesm2022/fragiola-primitives-angular-select.mjs +1433 -0
  155. package/fesm2022/fragiola-primitives-angular-select.mjs.map +1 -0
  156. package/fesm2022/fragiola-primitives-angular-separator.mjs +102 -0
  157. package/fesm2022/fragiola-primitives-angular-separator.mjs.map +1 -0
  158. package/fesm2022/fragiola-primitives-angular-slider.mjs +1090 -0
  159. package/fesm2022/fragiola-primitives-angular-slider.mjs.map +1 -0
  160. package/fesm2022/fragiola-primitives-angular-steps.mjs +819 -0
  161. package/fesm2022/fragiola-primitives-angular-steps.mjs.map +1 -0
  162. package/fesm2022/fragiola-primitives-angular-switch.mjs +422 -0
  163. package/fesm2022/fragiola-primitives-angular-switch.mjs.map +1 -0
  164. package/fesm2022/fragiola-primitives-angular-tabs.mjs +726 -0
  165. package/fesm2022/fragiola-primitives-angular-tabs.mjs.map +1 -0
  166. package/fesm2022/fragiola-primitives-angular-tag-group.mjs +768 -0
  167. package/fesm2022/fragiola-primitives-angular-tag-group.mjs.map +1 -0
  168. package/fesm2022/fragiola-primitives-angular-tags-input.mjs +1126 -0
  169. package/fesm2022/fragiola-primitives-angular-tags-input.mjs.map +1 -0
  170. package/fesm2022/fragiola-primitives-angular-time-field.mjs +187 -0
  171. package/fesm2022/fragiola-primitives-angular-time-field.mjs.map +1 -0
  172. package/fesm2022/fragiola-primitives-angular-time-range-field.mjs +188 -0
  173. package/fesm2022/fragiola-primitives-angular-time-range-field.mjs.map +1 -0
  174. package/fesm2022/fragiola-primitives-angular-toast.mjs +744 -0
  175. package/fesm2022/fragiola-primitives-angular-toast.mjs.map +1 -0
  176. package/fesm2022/fragiola-primitives-angular-toggle-group.mjs +245 -0
  177. package/fesm2022/fragiola-primitives-angular-toggle-group.mjs.map +1 -0
  178. package/fesm2022/fragiola-primitives-angular-toggle.mjs +229 -0
  179. package/fesm2022/fragiola-primitives-angular-toggle.mjs.map +1 -0
  180. package/fesm2022/fragiola-primitives-angular-toolbar.mjs +623 -0
  181. package/fesm2022/fragiola-primitives-angular-toolbar.mjs.map +1 -0
  182. package/fesm2022/fragiola-primitives-angular-tooltip.mjs +975 -0
  183. package/fesm2022/fragiola-primitives-angular-tooltip.mjs.map +1 -0
  184. package/fesm2022/fragiola-primitives-angular-year-calendar.mjs +163 -0
  185. package/fesm2022/fragiola-primitives-angular-year-calendar.mjs.map +1 -0
  186. package/fesm2022/fragiola-primitives-angular-year-picker.mjs +177 -0
  187. package/fesm2022/fragiola-primitives-angular-year-picker.mjs.map +1 -0
  188. package/fesm2022/fragiola-primitives-angular-year-range-calendar.mjs +163 -0
  189. package/fesm2022/fragiola-primitives-angular-year-range-calendar.mjs.map +1 -0
  190. package/fesm2022/fragiola-primitives-angular-year-range-picker.mjs +177 -0
  191. package/fesm2022/fragiola-primitives-angular-year-range-picker.mjs.map +1 -0
  192. package/fesm2022/fragiola-primitives-angular.mjs +94 -0
  193. package/package.json +437 -3
  194. package/types/fragiola-primitives-angular-accordion.d.ts +154 -0
  195. package/types/fragiola-primitives-angular-alert-dialog.d.ts +176 -0
  196. package/types/fragiola-primitives-angular-aspect-ratio.d.ts +25 -0
  197. package/types/fragiola-primitives-angular-async-list.d.ts +32 -0
  198. package/types/fragiola-primitives-angular-autocomplete-virtual.d.ts +82 -0
  199. package/types/fragiola-primitives-angular-autocomplete.d.ts +496 -0
  200. package/types/fragiola-primitives-angular-avatar.d.ts +94 -0
  201. package/types/fragiola-primitives-angular-breadcrumbs.d.ts +62 -0
  202. package/types/fragiola-primitives-angular-button.d.ts +66 -0
  203. package/types/fragiola-primitives-angular-calendar-preset.d.ts +35 -0
  204. package/types/fragiola-primitives-angular-calendar-view.d.ts +80 -0
  205. package/types/fragiola-primitives-angular-calendar.d.ts +414 -0
  206. package/types/fragiola-primitives-angular-carousel.d.ts +300 -0
  207. package/types/fragiola-primitives-angular-cascade-select.d.ts +404 -0
  208. package/types/fragiola-primitives-angular-checkbox-group.d.ts +74 -0
  209. package/types/fragiola-primitives-angular-checkbox.d.ts +111 -0
  210. package/types/fragiola-primitives-angular-clipboard.d.ts +106 -0
  211. package/types/fragiola-primitives-angular-collapsible.d.ts +88 -0
  212. package/types/fragiola-primitives-angular-color-area.d.ts +174 -0
  213. package/types/fragiola-primitives-angular-color-field.d.ts +174 -0
  214. package/types/fragiola-primitives-angular-color-picker-popover.d.ts +180 -0
  215. package/types/fragiola-primitives-angular-color-picker.d.ts +137 -0
  216. package/types/fragiola-primitives-angular-color-slider.d.ts +228 -0
  217. package/types/fragiola-primitives-angular-color-swatch-picker.d.ts +146 -0
  218. package/types/fragiola-primitives-angular-color-swatch.d.ts +43 -0
  219. package/types/fragiola-primitives-angular-color-wheel.d.ts +144 -0
  220. package/types/fragiola-primitives-angular-combobox-virtual.d.ts +84 -0
  221. package/types/fragiola-primitives-angular-combobox.d.ts +582 -0
  222. package/types/fragiola-primitives-angular-command-virtual.d.ts +93 -0
  223. package/types/fragiola-primitives-angular-command.d.ts +283 -0
  224. package/types/fragiola-primitives-angular-context-menu.d.ts +278 -0
  225. package/types/fragiola-primitives-angular-date-field.d.ts +486 -0
  226. package/types/fragiola-primitives-angular-date-picker-input.d.ts +139 -0
  227. package/types/fragiola-primitives-angular-date-picker.d.ts +331 -0
  228. package/types/fragiola-primitives-angular-date-range-field.d.ts +333 -0
  229. package/types/fragiola-primitives-angular-date-range-picker-input.d.ts +89 -0
  230. package/types/fragiola-primitives-angular-date-range-picker.d.ts +35 -0
  231. package/types/fragiola-primitives-angular-dialog.d.ts +359 -0
  232. package/types/fragiola-primitives-angular-direction.d.ts +31 -0
  233. package/types/fragiola-primitives-angular-drawer.d.ts +242 -0
  234. package/types/fragiola-primitives-angular-drop-zone.d.ts +68 -0
  235. package/types/fragiola-primitives-angular-editable.d.ts +219 -0
  236. package/types/fragiola-primitives-angular-field.d.ts +397 -0
  237. package/types/fragiola-primitives-angular-fieldset.d.ts +47 -0
  238. package/types/fragiola-primitives-angular-file-upload.d.ts +351 -0
  239. package/types/fragiola-primitives-angular-form.d.ts +44 -0
  240. package/types/fragiola-primitives-angular-hover-card.d.ts +279 -0
  241. package/types/fragiola-primitives-angular-internal.d.ts +695 -0
  242. package/types/fragiola-primitives-angular-label.d.ts +14 -0
  243. package/types/fragiola-primitives-angular-link.d.ts +33 -0
  244. package/types/fragiola-primitives-angular-listbox-virtual.d.ts +193 -0
  245. package/types/fragiola-primitives-angular-listbox.d.ts +237 -0
  246. package/types/fragiola-primitives-angular-menu.d.ts +758 -0
  247. package/types/fragiola-primitives-angular-menubar.d.ts +76 -0
  248. package/types/fragiola-primitives-angular-meter.d.ts +117 -0
  249. package/types/fragiola-primitives-angular-month-calendar.d.ts +380 -0
  250. package/types/fragiola-primitives-angular-month-picker.d.ts +183 -0
  251. package/types/fragiola-primitives-angular-month-range-calendar.d.ts +54 -0
  252. package/types/fragiola-primitives-angular-month-range-picker.d.ts +56 -0
  253. package/types/fragiola-primitives-angular-multiple-calendar.d.ts +73 -0
  254. package/types/fragiola-primitives-angular-navigation-menu.d.ts +355 -0
  255. package/types/fragiola-primitives-angular-number-field.d.ts +305 -0
  256. package/types/fragiola-primitives-angular-otp-field.d.ts +210 -0
  257. package/types/fragiola-primitives-angular-pagination.d.ts +239 -0
  258. package/types/fragiola-primitives-angular-password-input.d.ts +149 -0
  259. package/types/fragiola-primitives-angular-popover.d.ts +303 -0
  260. package/types/fragiola-primitives-angular-progress.d.ts +126 -0
  261. package/types/fragiola-primitives-angular-radio-group.d.ts +123 -0
  262. package/types/fragiola-primitives-angular-radio.d.ts +67 -0
  263. package/types/fragiola-primitives-angular-range-calendar.d.ts +33 -0
  264. package/types/fragiola-primitives-angular-rating.d.ts +195 -0
  265. package/types/fragiola-primitives-angular-render.d.ts +2 -0
  266. package/types/fragiola-primitives-angular-scroll-area.d.ts +134 -0
  267. package/types/fragiola-primitives-angular-search-field.d.ts +129 -0
  268. package/types/fragiola-primitives-angular-segmented-control.d.ts +232 -0
  269. package/types/fragiola-primitives-angular-select-virtual.d.ts +81 -0
  270. package/types/fragiola-primitives-angular-select.d.ts +403 -0
  271. package/types/fragiola-primitives-angular-separator.d.ts +32 -0
  272. package/types/fragiola-primitives-angular-slider.d.ts +297 -0
  273. package/types/fragiola-primitives-angular-steps.d.ts +194 -0
  274. package/types/fragiola-primitives-angular-switch.d.ts +102 -0
  275. package/types/fragiola-primitives-angular-tabs.d.ts +215 -0
  276. package/types/fragiola-primitives-angular-tag-group.d.ts +232 -0
  277. package/types/fragiola-primitives-angular-tags-input.d.ts +318 -0
  278. package/types/fragiola-primitives-angular-time-field.d.ts +63 -0
  279. package/types/fragiola-primitives-angular-time-range-field.d.ts +65 -0
  280. package/types/fragiola-primitives-angular-toast.d.ts +196 -0
  281. package/types/fragiola-primitives-angular-toggle-group.d.ts +89 -0
  282. package/types/fragiola-primitives-angular-toggle.d.ts +86 -0
  283. package/types/fragiola-primitives-angular-toolbar.d.ts +187 -0
  284. package/types/fragiola-primitives-angular-tooltip.d.ts +330 -0
  285. package/types/fragiola-primitives-angular-year-calendar.d.ts +54 -0
  286. package/types/fragiola-primitives-angular-year-picker.d.ts +56 -0
  287. package/types/fragiola-primitives-angular-year-range-calendar.d.ts +54 -0
  288. package/types/fragiola-primitives-angular-year-range-picker.d.ts +56 -0
  289. package/types/fragiola-primitives-angular.d.ts +94 -0
@@ -0,0 +1,1433 @@
1
+ import * as i0 from "@angular/core";
2
+ import { DestroyRef, Directive, ElementRef, TemplateRef, ViewContainerRef, afterEveryRender, afterNextRender, afterRenderEffect, booleanAttribute, computed, effect, inject, input, output, signal, untracked } from "@angular/core";
3
+ import { controllable, createHiddenInput, createOverlayRoot, dataValues, injectFlush, injectHost, injectId, labelId, mountPortal, placementSignal, portalOptions, positionOverlay, registerHost, setInputAttribute } from "@fragiola/primitives-angular/internal";
4
+ import { createTypeahead, menuKeyTarget, scrollIntoViewWithin } from "@fragiola/primitives/collection";
5
+ import { bridgeForm } from "@fragiola/primitives/form";
6
+ import { fieldControl, writeFieldAria } from "@fragiola/primitives-angular/field";
7
+ import { blockOutsidePointer } from "@fragiola/primitives/inert";
8
+ import { openOverlaySession } from "@fragiola/primitives/overlay";
9
+ import { lockScroll } from "@fragiola/primitives/scroll-lock";
10
+ var SelectGroup = class SelectGroup {
11
+ constructor() {
12
+ this.labelId = signal(void 0, ...ngDevMode ? [{ debugName: "labelId" }] : /* istanbul ignore next */ []);
13
+ }
14
+ static {
15
+ this.ɵfac = i0.ɵɵngDeclareFactory({
16
+ minVersion: "12.0.0",
17
+ version: "22.2.6",
18
+ ngImport: i0,
19
+ type: SelectGroup,
20
+ deps: [],
21
+ target: i0.ɵɵFactoryTarget.Directive
22
+ });
23
+ }
24
+ static {
25
+ this.ɵdir = i0.ɵɵngDeclareDirective({
26
+ minVersion: "14.0.0",
27
+ version: "22.2.6",
28
+ type: SelectGroup,
29
+ isStandalone: true,
30
+ selector: "[selectGroup]",
31
+ host: {
32
+ attributes: {
33
+ "role": "group",
34
+ "data-primitives-part": "select-group"
35
+ },
36
+ properties: { "attr.aria-labelledby": "labelId() ?? null" }
37
+ },
38
+ exportAs: ["selectGroup"],
39
+ ngImport: i0
40
+ });
41
+ }
42
+ };
43
+ i0.ɵɵngDeclareClassMetadata({
44
+ minVersion: "12.0.0",
45
+ version: "22.2.6",
46
+ ngImport: i0,
47
+ type: SelectGroup,
48
+ decorators: [{
49
+ type: Directive,
50
+ args: [{
51
+ selector: "[selectGroup]",
52
+ exportAs: "selectGroup",
53
+ host: {
54
+ role: "group",
55
+ "data-primitives-part": "select-group",
56
+ "[attr.aria-labelledby]": "labelId() ?? null"
57
+ }
58
+ }]
59
+ }]
60
+ });
61
+ var SelectGroupLabel = class SelectGroupLabel {
62
+ constructor() {
63
+ this.id = input(void 0, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
64
+ this.resolvedId = labelId(this.id, inject(SelectGroup, { optional: true })?.labelId ?? signal(void 0), "primitives-select-group-label");
65
+ }
66
+ static {
67
+ this.ɵfac = i0.ɵɵngDeclareFactory({
68
+ minVersion: "12.0.0",
69
+ version: "22.2.6",
70
+ ngImport: i0,
71
+ type: SelectGroupLabel,
72
+ deps: [],
73
+ target: i0.ɵɵFactoryTarget.Directive
74
+ });
75
+ }
76
+ static {
77
+ this.ɵdir = i0.ɵɵngDeclareDirective({
78
+ minVersion: "17.1.0",
79
+ version: "22.2.6",
80
+ type: SelectGroupLabel,
81
+ isStandalone: true,
82
+ selector: "[selectGroupLabel]",
83
+ inputs: { id: {
84
+ classPropertyName: "id",
85
+ publicName: "id",
86
+ isSignal: true,
87
+ isRequired: false,
88
+ transformFunction: null
89
+ } },
90
+ host: {
91
+ attributes: { "data-primitives-part": "select-group-label" },
92
+ properties: { "attr.id": "resolvedId()" }
93
+ },
94
+ exportAs: ["selectGroupLabel"],
95
+ ngImport: i0
96
+ });
97
+ }
98
+ };
99
+ i0.ɵɵngDeclareClassMetadata({
100
+ minVersion: "12.0.0",
101
+ version: "22.2.6",
102
+ ngImport: i0,
103
+ type: SelectGroupLabel,
104
+ decorators: [{
105
+ type: Directive,
106
+ args: [{
107
+ selector: "[selectGroupLabel]",
108
+ exportAs: "selectGroupLabel",
109
+ host: {
110
+ "data-primitives-part": "select-group-label",
111
+ "[attr.id]": "resolvedId()"
112
+ }
113
+ }]
114
+ }],
115
+ propDecorators: { id: [{
116
+ type: i0.Input,
117
+ args: [{
118
+ isSignal: true,
119
+ alias: "id",
120
+ required: false
121
+ }]
122
+ }] }
123
+ });
124
+ function initialHighlight(items, value) {
125
+ if (value !== null && items.some((item) => item.value === value)) return value;
126
+ return items.find((item) => !item.disabled)?.value ?? null;
127
+ }
128
+ var SelectRoot = class SelectRoot {
129
+ constructor() {
130
+ this.open = input(void 0, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
131
+ this.openChange = output();
132
+ this.defaultOpen = input(false, ...ngDevMode ? [{ debugName: "defaultOpen" }] : /* istanbul ignore next */ []);
133
+ this.openChangeDetails = output();
134
+ this.openChangeComplete = output();
135
+ this.value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
136
+ this.valueChange = output();
137
+ this.defaultValue = input(null, ...ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []);
138
+ this.valueChangeDetails = output();
139
+ this.items = input(void 0, ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
140
+ this.name = input(void 0, ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
141
+ this.required = input(false, {
142
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
143
+ transform: booleanAttribute
144
+ });
145
+ this.disabled = input(false, {
146
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
147
+ transform: booleanAttribute
148
+ });
149
+ this.modal = input(false, {
150
+ ...ngDevMode ? { debugName: "modal" } : /* istanbul ignore next */ {},
151
+ transform: booleanAttribute
152
+ });
153
+ this.triggerElementId = signal(void 0, ...ngDevMode ? [{ debugName: "triggerElementId" }] : /* istanbul ignore next */ []);
154
+ this.hidden = createHiddenInput(inject(ElementRef).nativeElement, { "data-primitives-part": "select-input" });
155
+ this.overlay = createOverlayRoot(this, (event) => this.openChangeDetails.emit(event), "primitives-select");
156
+ this.selection = controllable(this.value, this.valueChange, () => this.defaultValue(), (value, details) => this.valueChangeDetails.emit({
157
+ value,
158
+ details
159
+ }));
160
+ this.selected = this.selection.value;
161
+ this.field = fieldControl({
162
+ id: this.triggerElementId,
163
+ labelable: true,
164
+ value: this.selected,
165
+ filled: computed(() => this.selected() !== null),
166
+ input: () => this.hidden,
167
+ focusTarget: () => this.overlay.trigger()
168
+ });
169
+ this.isDisabled = computed(() => this.disabled() || this.field.disabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
170
+ this.registered = signal([], ...ngDevMode ? [{ debugName: "registered" }] : /* istanbul ignore next */ []);
171
+ this.itemList = computed(() => this.items() ?? this.registered(), ...ngDevMode ? [{ debugName: "itemList" }] : /* istanbul ignore next */ []);
172
+ this.highlighted = signal(null, ...ngDevMode ? [{ debugName: "highlighted" }] : /* istanbul ignore next */ []);
173
+ this.listId = `${injectId("primitives-select")}-list`;
174
+ this.placed = placementSignal({
175
+ side: "bottom",
176
+ align: "start"
177
+ });
178
+ this.state = computed(() => ({
179
+ open: this.overlay.open(),
180
+ disabled: this.isDisabled(),
181
+ value: this.selected()
182
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
183
+ const hidden = this.hidden;
184
+ effect(() => {
185
+ hidden.value = this.selected() ?? "";
186
+ setInputAttribute(hidden, "name", this.field.name() ?? this.name() ?? null);
187
+ hidden.required = this.required();
188
+ hidden.disabled = this.isDisabled();
189
+ });
190
+ let stop = null;
191
+ afterNextRender(() => {
192
+ stop = bridgeForm(hidden, {
193
+ reset: () => {
194
+ const fallback = this.defaultValue();
195
+ this.field.reset();
196
+ this.selection.set(fallback, { reason: "none" });
197
+ hidden.value = fallback ?? "";
198
+ },
199
+ invalid: () => this.overlay.trigger()
200
+ });
201
+ });
202
+ inject(DestroyRef).onDestroy(() => stop?.());
203
+ }
204
+ registerItem(item) {
205
+ this.registered.update((previous) => [...previous.filter((entry) => entry.element !== item.element), item].sort((a, b) => a.element.compareDocumentPosition(b.element) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1));
206
+ return () => this.registered.update((previous) => previous.filter((entry) => entry !== item));
207
+ }
208
+ itemId(value) {
209
+ const index = this.itemList().findIndex((item) => item.value === value);
210
+ return `${this.listId}-item-${index}`;
211
+ }
212
+ openOn(value, reason, event) {
213
+ const previous = untracked(this.highlighted);
214
+ this.highlighted.set(value);
215
+ if (!this.overlay.setOpen(true, reason, event)) this.highlighted.set(previous);
216
+ }
217
+ choose(value, reason, event) {
218
+ const item = this.itemList().find((candidate) => candidate.value === value);
219
+ if (item === void 0 || item.disabled) return;
220
+ this.selection.set(value, {
221
+ reason,
222
+ event
223
+ });
224
+ this.overlay.setOpen(false, reason, event);
225
+ }
226
+ close() {
227
+ this.overlay.close();
228
+ }
229
+ unmount() {
230
+ this.overlay.unmount();
231
+ }
232
+ static {
233
+ this.ɵfac = i0.ɵɵngDeclareFactory({
234
+ minVersion: "12.0.0",
235
+ version: "22.2.6",
236
+ ngImport: i0,
237
+ type: SelectRoot,
238
+ deps: [],
239
+ target: i0.ɵɵFactoryTarget.Directive
240
+ });
241
+ }
242
+ static {
243
+ this.ɵdir = i0.ɵɵngDeclareDirective({
244
+ minVersion: "17.1.0",
245
+ version: "22.2.6",
246
+ type: SelectRoot,
247
+ isStandalone: true,
248
+ selector: "[selectRoot]",
249
+ inputs: {
250
+ open: {
251
+ classPropertyName: "open",
252
+ publicName: "open",
253
+ isSignal: true,
254
+ isRequired: false,
255
+ transformFunction: null
256
+ },
257
+ defaultOpen: {
258
+ classPropertyName: "defaultOpen",
259
+ publicName: "defaultOpen",
260
+ isSignal: true,
261
+ isRequired: false,
262
+ transformFunction: null
263
+ },
264
+ value: {
265
+ classPropertyName: "value",
266
+ publicName: "value",
267
+ isSignal: true,
268
+ isRequired: false,
269
+ transformFunction: null
270
+ },
271
+ defaultValue: {
272
+ classPropertyName: "defaultValue",
273
+ publicName: "defaultValue",
274
+ isSignal: true,
275
+ isRequired: false,
276
+ transformFunction: null
277
+ },
278
+ items: {
279
+ classPropertyName: "items",
280
+ publicName: "items",
281
+ isSignal: true,
282
+ isRequired: false,
283
+ transformFunction: null
284
+ },
285
+ name: {
286
+ classPropertyName: "name",
287
+ publicName: "name",
288
+ isSignal: true,
289
+ isRequired: false,
290
+ transformFunction: null
291
+ },
292
+ required: {
293
+ classPropertyName: "required",
294
+ publicName: "required",
295
+ isSignal: true,
296
+ isRequired: false,
297
+ transformFunction: null
298
+ },
299
+ disabled: {
300
+ classPropertyName: "disabled",
301
+ publicName: "disabled",
302
+ isSignal: true,
303
+ isRequired: false,
304
+ transformFunction: null
305
+ },
306
+ modal: {
307
+ classPropertyName: "modal",
308
+ publicName: "modal",
309
+ isSignal: true,
310
+ isRequired: false,
311
+ transformFunction: null
312
+ }
313
+ },
314
+ outputs: {
315
+ openChange: "openChange",
316
+ openChangeDetails: "openChangeDetails",
317
+ openChangeComplete: "openChangeComplete",
318
+ valueChange: "valueChange",
319
+ valueChangeDetails: "valueChangeDetails"
320
+ },
321
+ exportAs: ["selectRoot"],
322
+ ngImport: i0
323
+ });
324
+ }
325
+ };
326
+ i0.ɵɵngDeclareClassMetadata({
327
+ minVersion: "12.0.0",
328
+ version: "22.2.6",
329
+ ngImport: i0,
330
+ type: SelectRoot,
331
+ decorators: [{
332
+ type: Directive,
333
+ args: [{
334
+ selector: "[selectRoot]",
335
+ exportAs: "selectRoot"
336
+ }]
337
+ }],
338
+ ctorParameters: () => [],
339
+ propDecorators: {
340
+ open: [{
341
+ type: i0.Input,
342
+ args: [{
343
+ isSignal: true,
344
+ alias: "open",
345
+ required: false
346
+ }]
347
+ }],
348
+ openChange: [{
349
+ type: i0.Output,
350
+ args: ["openChange"]
351
+ }],
352
+ defaultOpen: [{
353
+ type: i0.Input,
354
+ args: [{
355
+ isSignal: true,
356
+ alias: "defaultOpen",
357
+ required: false
358
+ }]
359
+ }],
360
+ openChangeDetails: [{
361
+ type: i0.Output,
362
+ args: ["openChangeDetails"]
363
+ }],
364
+ openChangeComplete: [{
365
+ type: i0.Output,
366
+ args: ["openChangeComplete"]
367
+ }],
368
+ value: [{
369
+ type: i0.Input,
370
+ args: [{
371
+ isSignal: true,
372
+ alias: "value",
373
+ required: false
374
+ }]
375
+ }],
376
+ valueChange: [{
377
+ type: i0.Output,
378
+ args: ["valueChange"]
379
+ }],
380
+ defaultValue: [{
381
+ type: i0.Input,
382
+ args: [{
383
+ isSignal: true,
384
+ alias: "defaultValue",
385
+ required: false
386
+ }]
387
+ }],
388
+ valueChangeDetails: [{
389
+ type: i0.Output,
390
+ args: ["valueChangeDetails"]
391
+ }],
392
+ items: [{
393
+ type: i0.Input,
394
+ args: [{
395
+ isSignal: true,
396
+ alias: "items",
397
+ required: false
398
+ }]
399
+ }],
400
+ name: [{
401
+ type: i0.Input,
402
+ args: [{
403
+ isSignal: true,
404
+ alias: "name",
405
+ required: false
406
+ }]
407
+ }],
408
+ required: [{
409
+ type: i0.Input,
410
+ args: [{
411
+ isSignal: true,
412
+ alias: "required",
413
+ required: false
414
+ }]
415
+ }],
416
+ disabled: [{
417
+ type: i0.Input,
418
+ args: [{
419
+ isSignal: true,
420
+ alias: "disabled",
421
+ required: false
422
+ }]
423
+ }],
424
+ modal: [{
425
+ type: i0.Input,
426
+ args: [{
427
+ isSignal: true,
428
+ alias: "modal",
429
+ required: false
430
+ }]
431
+ }]
432
+ }
433
+ });
434
+ var SelectItem = class SelectItem {
435
+ constructor() {
436
+ this.root = inject(SelectRoot);
437
+ this.value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
438
+ this.label = input(void 0, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
439
+ this.disabled = input(void 0, {
440
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
441
+ transform: (value) => value === void 0 ? void 0 : booleanAttribute(value)
442
+ });
443
+ this.state = computed(() => {
444
+ const value = this.value();
445
+ return {
446
+ highlighted: this.root.highlighted() === value,
447
+ selected: this.root.selected() === value,
448
+ disabled: this.disabled() ?? this.root.itemList().find((item) => item.value === value)?.disabled ?? false
449
+ };
450
+ }, ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
451
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
452
+ const host = injectHost();
453
+ let registration = null;
454
+ afterEveryRender(() => {
455
+ if (untracked(this.root.items) !== void 0) return;
456
+ const text = host.querySelector("[data-primitives-part=\"select-item-text\"]");
457
+ const value = untracked(this.value);
458
+ const label = (untracked(this.label) ?? (text ?? host).textContent ?? "").trim();
459
+ const disabled = untracked(this.disabled) ?? false;
460
+ if (registration?.value === value && registration.label === label && registration.disabled === disabled) return;
461
+ registration?.unregister();
462
+ registration = {
463
+ value,
464
+ label,
465
+ disabled,
466
+ unregister: this.root.registerItem({
467
+ value,
468
+ label,
469
+ disabled,
470
+ element: host
471
+ })
472
+ };
473
+ });
474
+ inject(DestroyRef).onDestroy(() => registration?.unregister());
475
+ afterRenderEffect(() => {
476
+ if (this.state().highlighted) scrollIntoViewWithin(host, this.root.overlay.positioner());
477
+ });
478
+ }
479
+ onPointerMove() {
480
+ if (!this.state().highlighted) this.root.highlighted.set(this.value());
481
+ }
482
+ onClick(event) {
483
+ if (!this.state().disabled) this.root.choose(this.value(), "item-press", event);
484
+ }
485
+ static {
486
+ this.ɵfac = i0.ɵɵngDeclareFactory({
487
+ minVersion: "12.0.0",
488
+ version: "22.2.6",
489
+ ngImport: i0,
490
+ type: SelectItem,
491
+ deps: [],
492
+ target: i0.ɵɵFactoryTarget.Directive
493
+ });
494
+ }
495
+ static {
496
+ this.ɵdir = i0.ɵɵngDeclareDirective({
497
+ minVersion: "17.1.0",
498
+ version: "22.2.6",
499
+ type: SelectItem,
500
+ isStandalone: true,
501
+ selector: "[selectItem]",
502
+ inputs: {
503
+ value: {
504
+ classPropertyName: "value",
505
+ publicName: "value",
506
+ isSignal: true,
507
+ isRequired: true,
508
+ transformFunction: null
509
+ },
510
+ label: {
511
+ classPropertyName: "label",
512
+ publicName: "label",
513
+ isSignal: true,
514
+ isRequired: false,
515
+ transformFunction: null
516
+ },
517
+ disabled: {
518
+ classPropertyName: "disabled",
519
+ publicName: "disabled",
520
+ isSignal: true,
521
+ isRequired: false,
522
+ transformFunction: null
523
+ }
524
+ },
525
+ host: {
526
+ attributes: {
527
+ "role": "option",
528
+ "data-primitives-part": "select-item"
529
+ },
530
+ listeners: {
531
+ "pointermove": "onPointerMove()",
532
+ "pointerdown": "$event.preventDefault()",
533
+ "click": "onClick($event)"
534
+ },
535
+ properties: {
536
+ "attr.id": "root.itemId(value())",
537
+ "attr.aria-selected": "state().selected ? 'true' : 'false'",
538
+ "attr.aria-disabled": "state().disabled ? 'true' : null",
539
+ "attr.data-highlighted": "data().highlighted",
540
+ "attr.data-selected": "data().selected",
541
+ "attr.data-disabled": "data().disabled"
542
+ }
543
+ },
544
+ exportAs: ["selectItem"],
545
+ ngImport: i0
546
+ });
547
+ }
548
+ };
549
+ i0.ɵɵngDeclareClassMetadata({
550
+ minVersion: "12.0.0",
551
+ version: "22.2.6",
552
+ ngImport: i0,
553
+ type: SelectItem,
554
+ decorators: [{
555
+ type: Directive,
556
+ args: [{
557
+ selector: "[selectItem]",
558
+ exportAs: "selectItem",
559
+ host: {
560
+ role: "option",
561
+ "data-primitives-part": "select-item",
562
+ "[attr.id]": "root.itemId(value())",
563
+ "[attr.aria-selected]": "state().selected ? 'true' : 'false'",
564
+ "[attr.aria-disabled]": "state().disabled ? 'true' : null",
565
+ "[attr.data-highlighted]": "data().highlighted",
566
+ "[attr.data-selected]": "data().selected",
567
+ "[attr.data-disabled]": "data().disabled",
568
+ "(pointermove)": "onPointerMove()",
569
+ "(pointerdown)": "$event.preventDefault()",
570
+ "(click)": "onClick($event)"
571
+ }
572
+ }]
573
+ }],
574
+ ctorParameters: () => [],
575
+ propDecorators: {
576
+ value: [{
577
+ type: i0.Input,
578
+ args: [{
579
+ isSignal: true,
580
+ alias: "value",
581
+ required: true
582
+ }]
583
+ }],
584
+ label: [{
585
+ type: i0.Input,
586
+ args: [{
587
+ isSignal: true,
588
+ alias: "label",
589
+ required: false
590
+ }]
591
+ }],
592
+ disabled: [{
593
+ type: i0.Input,
594
+ args: [{
595
+ isSignal: true,
596
+ alias: "disabled",
597
+ required: false
598
+ }]
599
+ }]
600
+ }
601
+ });
602
+ var SelectItemIndicator = class SelectItemIndicator {
603
+ constructor() {
604
+ this.item = inject(SelectItem);
605
+ this.keepMounted = input(false, {
606
+ ...ngDevMode ? { debugName: "keepMounted" } : /* istanbul ignore next */ {},
607
+ alias: "selectItemIndicator",
608
+ transform: (value) => value === true || value === "true"
609
+ });
610
+ this.state = computed(() => ({ selected: this.item.state().selected }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
611
+ const template = inject(TemplateRef);
612
+ const container = inject(ViewContainerRef);
613
+ let view = null;
614
+ effect(() => {
615
+ const show = this.state().selected || this.keepMounted();
616
+ untracked(() => {
617
+ if (!show) {
618
+ container.clear();
619
+ view = null;
620
+ return;
621
+ }
622
+ if (view !== null) return;
623
+ view = container.createEmbeddedView(template);
624
+ for (const node of view.rootNodes) if (node instanceof HTMLElement) {
625
+ node.setAttribute("aria-hidden", "true");
626
+ node.setAttribute("data-primitives-part", "select-item-indicator");
627
+ }
628
+ });
629
+ });
630
+ }
631
+ static {
632
+ this.ɵfac = i0.ɵɵngDeclareFactory({
633
+ minVersion: "12.0.0",
634
+ version: "22.2.6",
635
+ ngImport: i0,
636
+ type: SelectItemIndicator,
637
+ deps: [],
638
+ target: i0.ɵɵFactoryTarget.Directive
639
+ });
640
+ }
641
+ static {
642
+ this.ɵdir = i0.ɵɵngDeclareDirective({
643
+ minVersion: "17.1.0",
644
+ version: "22.2.6",
645
+ type: SelectItemIndicator,
646
+ isStandalone: true,
647
+ selector: "[selectItemIndicator]",
648
+ inputs: { keepMounted: {
649
+ classPropertyName: "keepMounted",
650
+ publicName: "selectItemIndicator",
651
+ isSignal: true,
652
+ isRequired: false,
653
+ transformFunction: null
654
+ } },
655
+ exportAs: ["selectItemIndicator"],
656
+ ngImport: i0
657
+ });
658
+ }
659
+ };
660
+ i0.ɵɵngDeclareClassMetadata({
661
+ minVersion: "12.0.0",
662
+ version: "22.2.6",
663
+ ngImport: i0,
664
+ type: SelectItemIndicator,
665
+ decorators: [{
666
+ type: Directive,
667
+ args: [{
668
+ selector: "[selectItemIndicator]",
669
+ exportAs: "selectItemIndicator"
670
+ }]
671
+ }],
672
+ ctorParameters: () => [],
673
+ propDecorators: { keepMounted: [{
674
+ type: i0.Input,
675
+ args: [{
676
+ isSignal: true,
677
+ alias: "selectItemIndicator",
678
+ required: false
679
+ }]
680
+ }] }
681
+ });
682
+ var SelectItemText = class SelectItemText {
683
+ static {
684
+ this.ɵfac = i0.ɵɵngDeclareFactory({
685
+ minVersion: "12.0.0",
686
+ version: "22.2.6",
687
+ ngImport: i0,
688
+ type: SelectItemText,
689
+ deps: [],
690
+ target: i0.ɵɵFactoryTarget.Directive
691
+ });
692
+ }
693
+ static {
694
+ this.ɵdir = i0.ɵɵngDeclareDirective({
695
+ minVersion: "14.0.0",
696
+ version: "22.2.6",
697
+ type: SelectItemText,
698
+ isStandalone: true,
699
+ selector: "[selectItemText]",
700
+ host: { attributes: { "data-primitives-part": "select-item-text" } },
701
+ ngImport: i0
702
+ });
703
+ }
704
+ };
705
+ i0.ɵɵngDeclareClassMetadata({
706
+ minVersion: "12.0.0",
707
+ version: "22.2.6",
708
+ ngImport: i0,
709
+ type: SelectItemText,
710
+ decorators: [{
711
+ type: Directive,
712
+ args: [{
713
+ selector: "[selectItemText]",
714
+ host: { "data-primitives-part": "select-item-text" }
715
+ }]
716
+ }]
717
+ });
718
+ var SelectList = class SelectList {
719
+ constructor() {
720
+ this.root = inject(SelectRoot);
721
+ this.state = computed(() => ({ open: this.root.overlay.open() }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
722
+ }
723
+ labelledBy() {
724
+ return this.root.overlay.trigger()?.id || null;
725
+ }
726
+ static {
727
+ this.ɵfac = i0.ɵɵngDeclareFactory({
728
+ minVersion: "12.0.0",
729
+ version: "22.2.6",
730
+ ngImport: i0,
731
+ type: SelectList,
732
+ deps: [],
733
+ target: i0.ɵɵFactoryTarget.Directive
734
+ });
735
+ }
736
+ static {
737
+ this.ɵdir = i0.ɵɵngDeclareDirective({
738
+ minVersion: "14.0.0",
739
+ version: "22.2.6",
740
+ type: SelectList,
741
+ isStandalone: true,
742
+ selector: "[selectList]",
743
+ host: {
744
+ attributes: {
745
+ "role": "listbox",
746
+ "data-primitives-part": "select-list"
747
+ },
748
+ properties: {
749
+ "attr.id": "root.listId",
750
+ "attr.aria-labelledby": "labelledBy()"
751
+ }
752
+ },
753
+ exportAs: ["selectList"],
754
+ ngImport: i0
755
+ });
756
+ }
757
+ };
758
+ i0.ɵɵngDeclareClassMetadata({
759
+ minVersion: "12.0.0",
760
+ version: "22.2.6",
761
+ ngImport: i0,
762
+ type: SelectList,
763
+ decorators: [{
764
+ type: Directive,
765
+ args: [{
766
+ selector: "[selectList]",
767
+ exportAs: "selectList",
768
+ host: {
769
+ role: "listbox",
770
+ "data-primitives-part": "select-list",
771
+ "[attr.id]": "root.listId",
772
+ "[attr.aria-labelledby]": "labelledBy()"
773
+ }
774
+ }]
775
+ }]
776
+ });
777
+ var SelectPopup = class SelectPopup {
778
+ constructor() {
779
+ this.root = inject(SelectRoot);
780
+ this.state = computed(() => ({
781
+ open: this.root.overlay.open(),
782
+ ...this.root.placed()
783
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
784
+ this.data = computed(() => {
785
+ const status = this.root.overlay.presence.status();
786
+ const state = this.state();
787
+ return dataValues({
788
+ ...state,
789
+ closed: !state.open,
790
+ "starting-style": status === "starting",
791
+ "ending-style": status === "ending"
792
+ });
793
+ }, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
794
+ registerHost(this.root.overlay.popup);
795
+ }
796
+ static {
797
+ this.ɵfac = i0.ɵɵngDeclareFactory({
798
+ minVersion: "12.0.0",
799
+ version: "22.2.6",
800
+ ngImport: i0,
801
+ type: SelectPopup,
802
+ deps: [],
803
+ target: i0.ɵɵFactoryTarget.Directive
804
+ });
805
+ }
806
+ static {
807
+ this.ɵdir = i0.ɵɵngDeclareDirective({
808
+ minVersion: "14.0.0",
809
+ version: "22.2.6",
810
+ type: SelectPopup,
811
+ isStandalone: true,
812
+ selector: "[selectPopup]",
813
+ host: {
814
+ attributes: { "data-primitives-part": "select-popup" },
815
+ properties: {
816
+ "attr.data-open": "data().open",
817
+ "attr.data-closed": "data().closed",
818
+ "attr.data-side": "data().side",
819
+ "attr.data-align": "data().align",
820
+ "attr.data-starting-style": "data()['starting-style']",
821
+ "attr.data-ending-style": "data()['ending-style']"
822
+ }
823
+ },
824
+ exportAs: ["selectPopup"],
825
+ ngImport: i0
826
+ });
827
+ }
828
+ };
829
+ i0.ɵɵngDeclareClassMetadata({
830
+ minVersion: "12.0.0",
831
+ version: "22.2.6",
832
+ ngImport: i0,
833
+ type: SelectPopup,
834
+ decorators: [{
835
+ type: Directive,
836
+ args: [{
837
+ selector: "[selectPopup]",
838
+ exportAs: "selectPopup",
839
+ host: {
840
+ "data-primitives-part": "select-popup",
841
+ "[attr.data-open]": "data().open",
842
+ "[attr.data-closed]": "data().closed",
843
+ "[attr.data-side]": "data().side",
844
+ "[attr.data-align]": "data().align",
845
+ "[attr.data-starting-style]": "data()['starting-style']",
846
+ "[attr.data-ending-style]": "data()['ending-style']"
847
+ }
848
+ }]
849
+ }],
850
+ ctorParameters: () => []
851
+ });
852
+ var SelectPortal = class SelectPortal {
853
+ constructor() {
854
+ this.options = input({}, {
855
+ ...ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {},
856
+ alias: "selectPortal",
857
+ transform: portalOptions
858
+ });
859
+ mountPortal(inject(SelectRoot).overlay.presence.mounted, this.options);
860
+ }
861
+ static {
862
+ this.ɵfac = i0.ɵɵngDeclareFactory({
863
+ minVersion: "12.0.0",
864
+ version: "22.2.6",
865
+ ngImport: i0,
866
+ type: SelectPortal,
867
+ deps: [],
868
+ target: i0.ɵɵFactoryTarget.Directive
869
+ });
870
+ }
871
+ static {
872
+ this.ɵdir = i0.ɵɵngDeclareDirective({
873
+ minVersion: "17.1.0",
874
+ version: "22.2.6",
875
+ type: SelectPortal,
876
+ isStandalone: true,
877
+ selector: "[selectPortal]",
878
+ inputs: { options: {
879
+ classPropertyName: "options",
880
+ publicName: "selectPortal",
881
+ isSignal: true,
882
+ isRequired: false,
883
+ transformFunction: null
884
+ } },
885
+ ngImport: i0
886
+ });
887
+ }
888
+ };
889
+ i0.ɵɵngDeclareClassMetadata({
890
+ minVersion: "12.0.0",
891
+ version: "22.2.6",
892
+ ngImport: i0,
893
+ type: SelectPortal,
894
+ decorators: [{
895
+ type: Directive,
896
+ args: [{ selector: "[selectPortal]" }]
897
+ }],
898
+ ctorParameters: () => [],
899
+ propDecorators: { options: [{
900
+ type: i0.Input,
901
+ args: [{
902
+ isSignal: true,
903
+ alias: "selectPortal",
904
+ required: false
905
+ }]
906
+ }] }
907
+ });
908
+ const MODAL_RETURNS_FOCUS_UNFOCUSED = /* @__PURE__ */ new Set(["outside-press"]);
909
+ const NEVER = /* @__PURE__ */ new Set();
910
+ var SelectPositioner = class SelectPositioner {
911
+ constructor() {
912
+ this.root = inject(SelectRoot);
913
+ this.side = input(void 0, ...ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []);
914
+ this.align = input(void 0, ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
915
+ this.sideOffset = input(4, ...ngDevMode ? [{ debugName: "sideOffset" }] : /* istanbul ignore next */ []);
916
+ this.alignOffset = input(void 0, ...ngDevMode ? [{ debugName: "alignOffset" }] : /* istanbul ignore next */ []);
917
+ this.collisionPadding = input(void 0, ...ngDevMode ? [{ debugName: "collisionPadding" }] : /* istanbul ignore next */ []);
918
+ this.anchor = input(void 0, ...ngDevMode ? [{ debugName: "anchor" }] : /* istanbul ignore next */ []);
919
+ this.state = computed(() => ({
920
+ open: this.root.overlay.open(),
921
+ ...this.root.placed()
922
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
923
+ this.data = computed(() => dataValues({
924
+ ...this.state(),
925
+ closed: !this.state().open
926
+ }), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
927
+ const overlay = this.root.overlay;
928
+ const positioner = registerHost(overlay.positioner);
929
+ positionOverlay(this, {
930
+ side: "bottom",
931
+ align: "start"
932
+ }, {
933
+ anchor: overlay.trigger,
934
+ positioner,
935
+ mounted: overlay.presence.mounted
936
+ }, this.root.placed);
937
+ afterRenderEffect((onCleanup) => {
938
+ const open = overlay.open();
939
+ const trigger = overlay.trigger();
940
+ if (!open) return;
941
+ untracked(() => {
942
+ onCleanup(openOverlaySession(positioner.ownerDocument, {
943
+ elements: () => [positioner],
944
+ ignore: () => [trigger],
945
+ dismiss: (reason, event) => overlay.setOpen(false, reason, event),
946
+ returnFocus: {
947
+ when: NEVER,
948
+ whenUnfocused: () => untracked(this.root.modal) ? MODAL_RETURNS_FOCUS_UNFOCUSED : void 0,
949
+ reason: () => overlay.lastReason.current,
950
+ to: () => trigger
951
+ }
952
+ }).end);
953
+ });
954
+ });
955
+ afterRenderEffect((onCleanup) => {
956
+ if (!overlay.open() || !this.root.modal()) return;
957
+ const doc = positioner.ownerDocument;
958
+ const unlock = lockScroll(doc);
959
+ const unblock = blockOutsidePointer(doc);
960
+ onCleanup(() => {
961
+ unblock();
962
+ unlock();
963
+ });
964
+ });
965
+ }
966
+ static {
967
+ this.ɵfac = i0.ɵɵngDeclareFactory({
968
+ minVersion: "12.0.0",
969
+ version: "22.2.6",
970
+ ngImport: i0,
971
+ type: SelectPositioner,
972
+ deps: [],
973
+ target: i0.ɵɵFactoryTarget.Directive
974
+ });
975
+ }
976
+ static {
977
+ this.ɵdir = i0.ɵɵngDeclareDirective({
978
+ minVersion: "17.1.0",
979
+ version: "22.2.6",
980
+ type: SelectPositioner,
981
+ isStandalone: true,
982
+ selector: "[selectPositioner]",
983
+ inputs: {
984
+ side: {
985
+ classPropertyName: "side",
986
+ publicName: "side",
987
+ isSignal: true,
988
+ isRequired: false,
989
+ transformFunction: null
990
+ },
991
+ align: {
992
+ classPropertyName: "align",
993
+ publicName: "align",
994
+ isSignal: true,
995
+ isRequired: false,
996
+ transformFunction: null
997
+ },
998
+ sideOffset: {
999
+ classPropertyName: "sideOffset",
1000
+ publicName: "sideOffset",
1001
+ isSignal: true,
1002
+ isRequired: false,
1003
+ transformFunction: null
1004
+ },
1005
+ alignOffset: {
1006
+ classPropertyName: "alignOffset",
1007
+ publicName: "alignOffset",
1008
+ isSignal: true,
1009
+ isRequired: false,
1010
+ transformFunction: null
1011
+ },
1012
+ collisionPadding: {
1013
+ classPropertyName: "collisionPadding",
1014
+ publicName: "collisionPadding",
1015
+ isSignal: true,
1016
+ isRequired: false,
1017
+ transformFunction: null
1018
+ },
1019
+ anchor: {
1020
+ classPropertyName: "anchor",
1021
+ publicName: "anchor",
1022
+ isSignal: true,
1023
+ isRequired: false,
1024
+ transformFunction: null
1025
+ }
1026
+ },
1027
+ host: {
1028
+ attributes: {
1029
+ "role": "presentation",
1030
+ "data-primitives-part": "select-positioner"
1031
+ },
1032
+ properties: {
1033
+ "style.pointer-events": "root.modal() ? 'auto' : null",
1034
+ "attr.hidden": "root.overlay.presence.mounted() ? null : ''",
1035
+ "attr.data-open": "data().open",
1036
+ "attr.data-closed": "data().closed",
1037
+ "attr.data-side": "data().side",
1038
+ "attr.data-align": "data().align"
1039
+ }
1040
+ },
1041
+ exportAs: ["selectPositioner"],
1042
+ ngImport: i0
1043
+ });
1044
+ }
1045
+ };
1046
+ i0.ɵɵngDeclareClassMetadata({
1047
+ minVersion: "12.0.0",
1048
+ version: "22.2.6",
1049
+ ngImport: i0,
1050
+ type: SelectPositioner,
1051
+ decorators: [{
1052
+ type: Directive,
1053
+ args: [{
1054
+ selector: "[selectPositioner]",
1055
+ exportAs: "selectPositioner",
1056
+ host: {
1057
+ role: "presentation",
1058
+ "data-primitives-part": "select-positioner",
1059
+ "[style.pointer-events]": "root.modal() ? 'auto' : null",
1060
+ "[attr.hidden]": "root.overlay.presence.mounted() ? null : ''",
1061
+ "[attr.data-open]": "data().open",
1062
+ "[attr.data-closed]": "data().closed",
1063
+ "[attr.data-side]": "data().side",
1064
+ "[attr.data-align]": "data().align"
1065
+ }
1066
+ }]
1067
+ }],
1068
+ ctorParameters: () => [],
1069
+ propDecorators: {
1070
+ side: [{
1071
+ type: i0.Input,
1072
+ args: [{
1073
+ isSignal: true,
1074
+ alias: "side",
1075
+ required: false
1076
+ }]
1077
+ }],
1078
+ align: [{
1079
+ type: i0.Input,
1080
+ args: [{
1081
+ isSignal: true,
1082
+ alias: "align",
1083
+ required: false
1084
+ }]
1085
+ }],
1086
+ sideOffset: [{
1087
+ type: i0.Input,
1088
+ args: [{
1089
+ isSignal: true,
1090
+ alias: "sideOffset",
1091
+ required: false
1092
+ }]
1093
+ }],
1094
+ alignOffset: [{
1095
+ type: i0.Input,
1096
+ args: [{
1097
+ isSignal: true,
1098
+ alias: "alignOffset",
1099
+ required: false
1100
+ }]
1101
+ }],
1102
+ collisionPadding: [{
1103
+ type: i0.Input,
1104
+ args: [{
1105
+ isSignal: true,
1106
+ alias: "collisionPadding",
1107
+ required: false
1108
+ }]
1109
+ }],
1110
+ anchor: [{
1111
+ type: i0.Input,
1112
+ args: [{
1113
+ isSignal: true,
1114
+ alias: "anchor",
1115
+ required: false
1116
+ }]
1117
+ }]
1118
+ }
1119
+ });
1120
+ var SelectSeparator = class SelectSeparator {
1121
+ static {
1122
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1123
+ minVersion: "12.0.0",
1124
+ version: "22.2.6",
1125
+ ngImport: i0,
1126
+ type: SelectSeparator,
1127
+ deps: [],
1128
+ target: i0.ɵɵFactoryTarget.Directive
1129
+ });
1130
+ }
1131
+ static {
1132
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1133
+ minVersion: "14.0.0",
1134
+ version: "22.2.6",
1135
+ type: SelectSeparator,
1136
+ isStandalone: true,
1137
+ selector: "[selectSeparator]",
1138
+ host: { attributes: {
1139
+ "role": "presentation",
1140
+ "data-orientation": "horizontal",
1141
+ "data-primitives-part": "select-separator"
1142
+ } },
1143
+ ngImport: i0
1144
+ });
1145
+ }
1146
+ };
1147
+ i0.ɵɵngDeclareClassMetadata({
1148
+ minVersion: "12.0.0",
1149
+ version: "22.2.6",
1150
+ ngImport: i0,
1151
+ type: SelectSeparator,
1152
+ decorators: [{
1153
+ type: Directive,
1154
+ args: [{
1155
+ selector: "[selectSeparator]",
1156
+ host: {
1157
+ role: "presentation",
1158
+ "data-orientation": "horizontal",
1159
+ "data-primitives-part": "select-separator"
1160
+ }
1161
+ }]
1162
+ }]
1163
+ });
1164
+ const TYPEAHEAD_SPACE = 500;
1165
+ var SelectTrigger = class SelectTrigger {
1166
+ constructor() {
1167
+ this.root = inject(SelectRoot);
1168
+ this.state = computed(() => ({
1169
+ open: this.root.overlay.open(),
1170
+ disabled: this.root.isDisabled(),
1171
+ placeholder: this.root.selected() === null
1172
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
1173
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
1174
+ this.activeId = computed(() => {
1175
+ const highlighted = this.root.highlighted();
1176
+ return this.state().open && highlighted !== null ? this.root.itemId(highlighted) : null;
1177
+ }, ...ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []);
1178
+ this.String = String;
1179
+ this.typeahead = createTypeahead();
1180
+ this.lastTyped = 0;
1181
+ this.flush = injectFlush();
1182
+ const host = registerHost(this.root.overlay.singleTrigger);
1183
+ const { field } = this.root;
1184
+ writeFieldAria(field, host, {
1185
+ "aria-labelledby": field.labelledBy,
1186
+ "aria-describedby": field.describedBy,
1187
+ "aria-invalid": field.ariaInvalid
1188
+ });
1189
+ afterNextRender(() => {
1190
+ if (host.id === "") host.id = this.root.overlay.triggerId;
1191
+ this.root.triggerElementId.set(host.id);
1192
+ });
1193
+ }
1194
+ onClick(event) {
1195
+ const root = this.root;
1196
+ if (root.overlay.open()) root.overlay.setOpen(false, "trigger-press", event);
1197
+ else root.openOn(initialHighlight(root.itemList(), root.selected()), "trigger-press", event);
1198
+ }
1199
+ highlight(value) {
1200
+ this.root.highlighted.set(value);
1201
+ this.flush();
1202
+ }
1203
+ typeTo(key, event) {
1204
+ const root = this.root;
1205
+ const items = root.itemList();
1206
+ const open = root.overlay.open();
1207
+ const from = items.findIndex((item) => item.value === (open ? root.highlighted() : root.selected()));
1208
+ const match = this.typeahead.match(key, items.map((item) => item.label), from);
1209
+ this.lastTyped = Date.now();
1210
+ const target = items[match]?.value;
1211
+ if (target === void 0) return;
1212
+ if (open) this.highlight(target);
1213
+ else root.openOn(target, "list-navigation", event);
1214
+ }
1215
+ onKeyDown(event) {
1216
+ const root = this.root;
1217
+ if (root.isDisabled()) return;
1218
+ const items = root.itemList();
1219
+ const open = root.overlay.open();
1220
+ const highlighted = root.highlighted();
1221
+ const typing = event.key === " " && Date.now() - this.lastTyped < TYPEAHEAD_SPACE;
1222
+ if (event.key.length === 1 && event.key !== " " || typing) {
1223
+ if (event.ctrlKey || event.metaKey || event.altKey) return;
1224
+ event.preventDefault();
1225
+ this.typeTo(event.key, event);
1226
+ return;
1227
+ }
1228
+ if (!open) switch (event.key) {
1229
+ case "ArrowDown":
1230
+ case "ArrowUp":
1231
+ case "Enter":
1232
+ case " ":
1233
+ event.preventDefault();
1234
+ root.openOn(initialHighlight(items, root.selected()), "list-navigation", event);
1235
+ return;
1236
+ case "Home":
1237
+ case "End":
1238
+ event.preventDefault();
1239
+ root.openOn((event.key === "Home" ? items[0] : items.at(-1))?.value ?? null, "list-navigation", event);
1240
+ return;
1241
+ default: return;
1242
+ }
1243
+ const index = items.findIndex((item) => item.value === highlighted);
1244
+ switch (event.key) {
1245
+ case "ArrowDown":
1246
+ case "ArrowUp":
1247
+ case "Home":
1248
+ case "End": {
1249
+ event.preventDefault();
1250
+ const next = menuKeyTarget(event.key, index, items.length, { loop: false });
1251
+ const target = next === null ? void 0 : items[next];
1252
+ if (target !== void 0) this.highlight(target.value);
1253
+ return;
1254
+ }
1255
+ case "Enter":
1256
+ case " ":
1257
+ event.preventDefault();
1258
+ if (highlighted !== null) root.choose(highlighted, "item-press", event);
1259
+ return;
1260
+ case "Tab": {
1261
+ const item = items[index];
1262
+ if (item !== void 0 && !item.disabled) root.choose(item.value, "focus-out", event);
1263
+ else root.overlay.setOpen(false, "focus-out", event);
1264
+ return;
1265
+ }
1266
+ }
1267
+ }
1268
+ static {
1269
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1270
+ minVersion: "12.0.0",
1271
+ version: "22.2.6",
1272
+ ngImport: i0,
1273
+ type: SelectTrigger,
1274
+ deps: [],
1275
+ target: i0.ɵɵFactoryTarget.Directive
1276
+ });
1277
+ }
1278
+ static {
1279
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1280
+ minVersion: "14.0.0",
1281
+ version: "22.2.6",
1282
+ type: SelectTrigger,
1283
+ isStandalone: true,
1284
+ selector: "[selectTrigger]",
1285
+ host: {
1286
+ attributes: {
1287
+ "type": "button",
1288
+ "role": "combobox",
1289
+ "aria-haspopup": "listbox",
1290
+ "data-primitives-part": "select-trigger"
1291
+ },
1292
+ listeners: {
1293
+ "click": "onClick($event)",
1294
+ "keydown": "onKeyDown($event)",
1295
+ "focus": "root.field.focused()",
1296
+ "blur": "root.field.blurred()"
1297
+ },
1298
+ properties: {
1299
+ "attr.disabled": "data().disabled",
1300
+ "attr.aria-expanded": "String(state().open)",
1301
+ "attr.aria-controls": "state().open ? root.listId : null",
1302
+ "attr.aria-activedescendant": "activeId()",
1303
+ "attr.aria-required": "root.required() ? 'true' : null",
1304
+ "attr.data-invalid": "root.field.data().invalid",
1305
+ "attr.data-valid": "root.field.data().valid",
1306
+ "attr.data-dirty": "root.field.data().dirty",
1307
+ "attr.data-touched": "root.field.data().touched",
1308
+ "attr.data-filled": "root.field.data().filled",
1309
+ "attr.data-focused": "root.field.data().focused",
1310
+ "attr.data-popup-open": "data().open",
1311
+ "style.pointer-events": "root.modal() && state().open ? 'auto' : null",
1312
+ "attr.data-disabled": "data().disabled",
1313
+ "attr.data-placeholder": "data().placeholder"
1314
+ }
1315
+ },
1316
+ exportAs: ["selectTrigger"],
1317
+ ngImport: i0
1318
+ });
1319
+ }
1320
+ };
1321
+ i0.ɵɵngDeclareClassMetadata({
1322
+ minVersion: "12.0.0",
1323
+ version: "22.2.6",
1324
+ ngImport: i0,
1325
+ type: SelectTrigger,
1326
+ decorators: [{
1327
+ type: Directive,
1328
+ args: [{
1329
+ selector: "[selectTrigger]",
1330
+ exportAs: "selectTrigger",
1331
+ host: {
1332
+ type: "button",
1333
+ role: "combobox",
1334
+ "aria-haspopup": "listbox",
1335
+ "data-primitives-part": "select-trigger",
1336
+ "[attr.disabled]": "data().disabled",
1337
+ "[attr.aria-expanded]": "String(state().open)",
1338
+ "[attr.aria-controls]": "state().open ? root.listId : null",
1339
+ "[attr.aria-activedescendant]": "activeId()",
1340
+ "[attr.aria-required]": "root.required() ? 'true' : null",
1341
+ "[attr.data-invalid]": "root.field.data().invalid",
1342
+ "[attr.data-valid]": "root.field.data().valid",
1343
+ "[attr.data-dirty]": "root.field.data().dirty",
1344
+ "[attr.data-touched]": "root.field.data().touched",
1345
+ "[attr.data-filled]": "root.field.data().filled",
1346
+ "[attr.data-focused]": "root.field.data().focused",
1347
+ "[attr.data-popup-open]": "data().open",
1348
+ "[style.pointer-events]": "root.modal() && state().open ? 'auto' : null",
1349
+ "[attr.data-disabled]": "data().disabled",
1350
+ "[attr.data-placeholder]": "data().placeholder",
1351
+ "(click)": "onClick($event)",
1352
+ "(keydown)": "onKeyDown($event)",
1353
+ "(focus)": "root.field.focused()",
1354
+ "(blur)": "root.field.blurred()"
1355
+ }
1356
+ }]
1357
+ }],
1358
+ ctorParameters: () => []
1359
+ });
1360
+ var SelectValue = class SelectValue {
1361
+ constructor() {
1362
+ this.root = inject(SelectRoot);
1363
+ this.placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
1364
+ this.label = computed(() => this.root.itemList().find((item) => item.value === this.root.selected())?.label ?? (this.root.items() === void 0 ? this.root.selected() ?? void 0 : void 0), ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
1365
+ this.state = computed(() => ({ placeholder: this.label() === void 0 }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
1366
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
1367
+ this.text = computed(() => this.label() ?? this.placeholder(), ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
1368
+ }
1369
+ static {
1370
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1371
+ minVersion: "12.0.0",
1372
+ version: "22.2.6",
1373
+ ngImport: i0,
1374
+ type: SelectValue,
1375
+ deps: [],
1376
+ target: i0.ɵɵFactoryTarget.Directive
1377
+ });
1378
+ }
1379
+ static {
1380
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1381
+ minVersion: "17.1.0",
1382
+ version: "22.2.6",
1383
+ type: SelectValue,
1384
+ isStandalone: true,
1385
+ selector: "[selectValue]",
1386
+ inputs: { placeholder: {
1387
+ classPropertyName: "placeholder",
1388
+ publicName: "placeholder",
1389
+ isSignal: true,
1390
+ isRequired: false,
1391
+ transformFunction: null
1392
+ } },
1393
+ host: {
1394
+ attributes: { "data-primitives-part": "select-value" },
1395
+ properties: {
1396
+ "attr.data-placeholder": "data().placeholder",
1397
+ "textContent": "text()"
1398
+ }
1399
+ },
1400
+ exportAs: ["selectValue"],
1401
+ ngImport: i0
1402
+ });
1403
+ }
1404
+ };
1405
+ i0.ɵɵngDeclareClassMetadata({
1406
+ minVersion: "12.0.0",
1407
+ version: "22.2.6",
1408
+ ngImport: i0,
1409
+ type: SelectValue,
1410
+ decorators: [{
1411
+ type: Directive,
1412
+ args: [{
1413
+ selector: "[selectValue]",
1414
+ exportAs: "selectValue",
1415
+ host: {
1416
+ "data-primitives-part": "select-value",
1417
+ "[attr.data-placeholder]": "data().placeholder",
1418
+ "[textContent]": "text()"
1419
+ }
1420
+ }]
1421
+ }],
1422
+ propDecorators: { placeholder: [{
1423
+ type: i0.Input,
1424
+ args: [{
1425
+ isSignal: true,
1426
+ alias: "placeholder",
1427
+ required: false
1428
+ }]
1429
+ }] }
1430
+ });
1431
+ export { SelectGroup, SelectGroupLabel, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectSeparator, SelectTrigger, SelectValue };
1432
+
1433
+ //# sourceMappingURL=fragiola-primitives-angular-select.mjs.map