@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,851 @@
1
+ import * as i0 from "@angular/core";
2
+ import { DestroyRef, Directive, afterNextRender, afterRenderEffect, booleanAttribute, computed, effect, inject, input, output, signal, untracked } from "@angular/core";
3
+ import { conditionalView, controllable, dataValues, injectEnclosing, injectFlush, injectHost, injectId, injectProvidedDirection, labelId } from "@fragiola/primitives-angular/internal";
4
+ import { createTypeahead } from "@fragiola/primitives/collection";
5
+ import { getDirection } from "@fragiola/primitives/direction";
6
+ import { VISUALLY_HIDDEN_INPUT_STYLE, bridgeForm } from "@fragiola/primitives/form";
7
+ import { applySelection, createListModel, listKeyTarget, listPressSelection, pageTarget, sameSelection } from "@fragiola/primitives/selection";
8
+ import { fieldControl, writeFieldAria } from "@fragiola/primitives-angular/field";
9
+ var ListboxGroup = class ListboxGroup {
10
+ constructor() {
11
+ this.labelId = signal(void 0, ...ngDevMode ? [{ debugName: "labelId" }] : /* istanbul ignore next */ []);
12
+ }
13
+ static {
14
+ this.ɵfac = i0.ɵɵngDeclareFactory({
15
+ minVersion: "12.0.0",
16
+ version: "22.2.6",
17
+ ngImport: i0,
18
+ type: ListboxGroup,
19
+ deps: [],
20
+ target: i0.ɵɵFactoryTarget.Directive
21
+ });
22
+ }
23
+ static {
24
+ this.ɵdir = i0.ɵɵngDeclareDirective({
25
+ minVersion: "14.0.0",
26
+ version: "22.2.6",
27
+ type: ListboxGroup,
28
+ isStandalone: true,
29
+ selector: "[listboxGroup]",
30
+ host: {
31
+ attributes: {
32
+ "role": "group",
33
+ "data-primitives-part": "listbox-group"
34
+ },
35
+ properties: { "attr.aria-labelledby": "labelId() ?? null" }
36
+ },
37
+ exportAs: ["listboxGroup"],
38
+ ngImport: i0
39
+ });
40
+ }
41
+ };
42
+ i0.ɵɵngDeclareClassMetadata({
43
+ minVersion: "12.0.0",
44
+ version: "22.2.6",
45
+ ngImport: i0,
46
+ type: ListboxGroup,
47
+ decorators: [{
48
+ type: Directive,
49
+ args: [{
50
+ selector: "[listboxGroup]",
51
+ exportAs: "listboxGroup",
52
+ host: {
53
+ role: "group",
54
+ "data-primitives-part": "listbox-group",
55
+ "[attr.aria-labelledby]": "labelId() ?? null"
56
+ }
57
+ }]
58
+ }]
59
+ });
60
+ var ListboxGroupLabel = class ListboxGroupLabel {
61
+ constructor() {
62
+ this.id = input(void 0, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
63
+ this.resolvedId = labelId(this.id, inject(ListboxGroup, { optional: true })?.labelId ?? signal(void 0), "primitives-listbox-group-label");
64
+ }
65
+ static {
66
+ this.ɵfac = i0.ɵɵngDeclareFactory({
67
+ minVersion: "12.0.0",
68
+ version: "22.2.6",
69
+ ngImport: i0,
70
+ type: ListboxGroupLabel,
71
+ deps: [],
72
+ target: i0.ɵɵFactoryTarget.Directive
73
+ });
74
+ }
75
+ static {
76
+ this.ɵdir = i0.ɵɵngDeclareDirective({
77
+ minVersion: "17.1.0",
78
+ version: "22.2.6",
79
+ type: ListboxGroupLabel,
80
+ isStandalone: true,
81
+ selector: "[listboxGroupLabel]",
82
+ inputs: { id: {
83
+ classPropertyName: "id",
84
+ publicName: "id",
85
+ isSignal: true,
86
+ isRequired: false,
87
+ transformFunction: null
88
+ } },
89
+ host: {
90
+ attributes: { "data-primitives-part": "listbox-group-label" },
91
+ properties: { "attr.id": "resolvedId()" }
92
+ },
93
+ exportAs: ["listboxGroupLabel"],
94
+ ngImport: i0
95
+ });
96
+ }
97
+ };
98
+ i0.ɵɵngDeclareClassMetadata({
99
+ minVersion: "12.0.0",
100
+ version: "22.2.6",
101
+ ngImport: i0,
102
+ type: ListboxGroupLabel,
103
+ decorators: [{
104
+ type: Directive,
105
+ args: [{
106
+ selector: "[listboxGroupLabel]",
107
+ exportAs: "listboxGroupLabel",
108
+ host: {
109
+ "data-primitives-part": "listbox-group-label",
110
+ "[attr.id]": "resolvedId()"
111
+ }
112
+ }]
113
+ }],
114
+ propDecorators: { id: [{
115
+ type: i0.Input,
116
+ args: [{
117
+ isSignal: true,
118
+ alias: "id",
119
+ required: false
120
+ }]
121
+ }] }
122
+ });
123
+ const NONE = [];
124
+ function inOrder(entries) {
125
+ return [...entries].sort((a, b) => a.element.compareDocumentPosition(b.element) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1);
126
+ }
127
+ function modelOf(entries) {
128
+ return createListModel(entries.map((entry) => ({
129
+ key: entry.value,
130
+ textValue: entry.label ?? entry.element.textContent ?? "",
131
+ disabled: entry.disabled
132
+ })));
133
+ }
134
+ var ListboxRoot = class ListboxRoot {
135
+ constructor() {
136
+ this.multiple = input(false, {
137
+ ...ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {},
138
+ transform: booleanAttribute
139
+ });
140
+ this.value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
141
+ this.valueChange = output();
142
+ this.defaultValue = input(void 0, ...ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []);
143
+ this.valueChangeDetails = output();
144
+ this.selectionBehavior = input("toggle", ...ngDevMode ? [{ debugName: "selectionBehavior" }] : /* istanbul ignore next */ []);
145
+ this.orientation = input("vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
146
+ this.loopFocus = input(true, {
147
+ ...ngDevMode ? { debugName: "loopFocus" } : /* istanbul ignore next */ {},
148
+ transform: booleanAttribute
149
+ });
150
+ this.disabled = input(false, {
151
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
152
+ transform: booleanAttribute
153
+ });
154
+ this.name = input(void 0, ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
155
+ this.required = input(false, {
156
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
157
+ transform: booleanAttribute
158
+ });
159
+ this.host = injectHost();
160
+ this.direction = injectProvidedDirection();
161
+ this.flush = injectFlush();
162
+ this.selection = controllable(this.value, this.valueChange, () => this.defaultValue() ?? (this.multiple() ? NONE : null), (value, details) => this.valueChangeDetails.emit({
163
+ value,
164
+ details
165
+ }));
166
+ this.selected = computed(() => {
167
+ const value = this.selection.value();
168
+ if (Array.isArray(value)) return value;
169
+ return value === null || value === void 0 ? NONE : [value];
170
+ }, ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
171
+ this.entries = signal([], ...ngDevMode ? [{ debugName: "entries" }] : /* istanbul ignore next */ []);
172
+ this.ordered = () => inOrder(this.entries());
173
+ this.active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
174
+ this.within = signal(false, ...ngDevMode ? [{ debugName: "within" }] : /* istanbul ignore next */ []);
175
+ this.anchor = null;
176
+ this.typeahead = createTypeahead();
177
+ this.field = fieldControl({
178
+ id: signal(void 0),
179
+ labelable: false,
180
+ value: computed(() => this.selection.value()),
181
+ filled: computed(() => this.selected().length > 0),
182
+ input: () => this.validation,
183
+ element: () => this.host,
184
+ focusTarget: () => this.tabStopElement()
185
+ });
186
+ this.isDisabled = computed(() => this.disabled() || this.field.disabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
187
+ this.formName = computed(() => this.field.name() ?? this.name(), ...ngDevMode ? [{ debugName: "formName" }] : /* istanbul ignore next */ []);
188
+ this.tabStop = computed(() => this.isDisabled() ? null : this.tabStopOf(this.ordered()), ...ngDevMode ? [{ debugName: "tabStop" }] : /* istanbul ignore next */ []);
189
+ this.highlighted = computed(() => this.within() && !this.isDisabled() ? this.active() : null, ...ngDevMode ? [{ debugName: "highlighted" }] : /* istanbul ignore next */ []);
190
+ this.state = computed(() => ({
191
+ multiple: this.multiple(),
192
+ disabled: this.isDisabled(),
193
+ orientation: this.orientation()
194
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
195
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
196
+ const host = this.host;
197
+ writeFieldAria(this.field, host, {
198
+ "aria-labelledby": this.field.labelledBy,
199
+ "aria-describedby": this.field.describedBy,
200
+ "aria-invalid": this.field.ariaInvalid
201
+ });
202
+ const validation = host.ownerDocument.createElement("input");
203
+ validation.setAttribute("aria-hidden", "true");
204
+ validation.tabIndex = -1;
205
+ validation.setAttribute("data-primitives-part", "listbox-input");
206
+ Object.assign(validation.style, VISUALLY_HIDDEN_INPUT_STYLE);
207
+ this.validation = validation;
208
+ const hidden = [];
209
+ const destroyRef = inject(DestroyRef);
210
+ let mounted = false;
211
+ let stop = null;
212
+ afterNextRender(() => {
213
+ mounted = true;
214
+ host.appendChild(validation);
215
+ stop = bridgeForm(validation, {
216
+ reset: () => {
217
+ this.field.reset();
218
+ this.anchor = null;
219
+ this.selection.set(untracked(this.defaultValue) ?? (untracked(this.multiple) ? NONE : null), { reason: "none" });
220
+ },
221
+ invalid: () => this.tabStopElement()
222
+ });
223
+ this.writeInputs(hidden);
224
+ });
225
+ afterRenderEffect({ write: () => {
226
+ this.selected();
227
+ this.formName();
228
+ this.isDisabled();
229
+ this.required();
230
+ this.multiple();
231
+ if (mounted) untracked(() => this.writeInputs(hidden));
232
+ } });
233
+ destroyRef.onDestroy(() => {
234
+ stop?.();
235
+ validation.remove();
236
+ for (const input of hidden) input.remove();
237
+ });
238
+ }
239
+ writeInputs(hidden) {
240
+ const validation = this.validation;
241
+ const multiple = this.multiple();
242
+ const selected = this.selected();
243
+ const name = this.formName();
244
+ const disabled = this.isDisabled();
245
+ const required = this.required();
246
+ if (multiple || name === void 0) validation.removeAttribute("name");
247
+ else validation.setAttribute("name", name);
248
+ validation.value = multiple ? "" : selected[0] ?? "";
249
+ validation.required = multiple ? required && selected.length === 0 : required;
250
+ validation.disabled = disabled;
251
+ const values = multiple && name !== void 0 ? selected : NONE;
252
+ while (hidden.length > values.length) hidden.pop()?.remove();
253
+ while (hidden.length < values.length) {
254
+ const input = this.host.ownerDocument.createElement("input");
255
+ input.type = "hidden";
256
+ input.setAttribute("data-primitives-part", "listbox-input");
257
+ hidden.push(input);
258
+ }
259
+ let previous = validation;
260
+ for (const [index, input] of hidden.entries()) {
261
+ input.name = name ?? "";
262
+ input.value = values[index] ?? "";
263
+ input.disabled = disabled;
264
+ if (previous.nextSibling !== input) this.host.insertBefore(input, previous.nextSibling);
265
+ previous = input;
266
+ }
267
+ }
268
+ tabStopOf(items) {
269
+ if (items.length === 0) return null;
270
+ const active = this.active();
271
+ if (this.within() && active !== null) {
272
+ const focused = items.find((entry) => entry.element === active);
273
+ if (focused !== void 0) return focused.element;
274
+ }
275
+ const selected = this.selected();
276
+ return items.find((entry) => selected.includes(entry.value))?.element ?? items[0]?.element ?? null;
277
+ }
278
+ tabStopElement() {
279
+ return untracked(() => this.tabStopOf(this.ordered()));
280
+ }
281
+ commit(change, reason, event) {
282
+ if (change === null) return;
283
+ const current = untracked(this.selected);
284
+ const multiple = untracked(this.multiple);
285
+ const next = applySelection(modelOf(untracked(this.ordered)), {
286
+ selected: current,
287
+ anchor: this.anchor
288
+ }, change, {
289
+ mode: multiple ? "multiple" : "single",
290
+ behavior: untracked(this.selectionBehavior)
291
+ });
292
+ this.anchor = next.anchor;
293
+ if (sameSelection(next.selected, current)) return;
294
+ this.selection.set(multiple ? [...next.selected] : next.selected[0] ?? null, {
295
+ reason,
296
+ event
297
+ });
298
+ }
299
+ onKeyDown(event) {
300
+ if (untracked(this.isDisabled) || event.defaultPrevented) return;
301
+ const items = untracked(this.ordered);
302
+ const index = items.findIndex((entry) => entry.element === event.target);
303
+ if (index === -1) return;
304
+ const model = modelOf(items);
305
+ const elements = items.map((entry) => entry.element);
306
+ const orientation = untracked(this.orientation);
307
+ const result = listKeyTarget(event, model, index, {
308
+ orientation,
309
+ rtl: getDirection(this.host, this.direction()) === "rtl",
310
+ loop: untracked(this.loopFocus),
311
+ mode: untracked(this.multiple) ? "multiple" : "single",
312
+ behavior: untracked(this.selectionBehavior),
313
+ page: (from, delta) => pageTarget(elements, from, delta, this.host, orientation),
314
+ typeahead: (character, from) => this.typeahead.match(character, model.labels, from)
315
+ });
316
+ if (result === null) return;
317
+ event.preventDefault();
318
+ elements[result.index]?.focus();
319
+ this.commit(result.selection, "keyboard", event);
320
+ this.flush();
321
+ }
322
+ onFocusOut(event) {
323
+ const next = event.relatedTarget;
324
+ if (next instanceof Node && this.host.contains(next)) return;
325
+ this.within.set(false);
326
+ this.typeahead.reset();
327
+ this.field.blurred();
328
+ }
329
+ register(entry) {
330
+ this.entries.update((current) => [...current, entry]);
331
+ return () => this.entries.update((current) => current.filter((item) => item !== entry));
332
+ }
333
+ focused(element) {
334
+ this.active.set(element);
335
+ this.within.set(true);
336
+ }
337
+ press(element, event) {
338
+ const entry = untracked(this.ordered).find((candidate) => candidate.element === element);
339
+ if (entry === void 0 || untracked(this.isDisabled)) return;
340
+ element.focus();
341
+ this.commit(listPressSelection(entry.value, event, {
342
+ mode: untracked(this.multiple) ? "multiple" : "single",
343
+ behavior: untracked(this.selectionBehavior)
344
+ }), "item-press", event);
345
+ this.flush();
346
+ }
347
+ static {
348
+ this.ɵfac = i0.ɵɵngDeclareFactory({
349
+ minVersion: "12.0.0",
350
+ version: "22.2.6",
351
+ ngImport: i0,
352
+ type: ListboxRoot,
353
+ deps: [],
354
+ target: i0.ɵɵFactoryTarget.Directive
355
+ });
356
+ }
357
+ static {
358
+ this.ɵdir = i0.ɵɵngDeclareDirective({
359
+ minVersion: "17.1.0",
360
+ version: "22.2.6",
361
+ type: ListboxRoot,
362
+ isStandalone: true,
363
+ selector: "[listboxRoot]",
364
+ inputs: {
365
+ multiple: {
366
+ classPropertyName: "multiple",
367
+ publicName: "multiple",
368
+ isSignal: true,
369
+ isRequired: false,
370
+ transformFunction: null
371
+ },
372
+ value: {
373
+ classPropertyName: "value",
374
+ publicName: "value",
375
+ isSignal: true,
376
+ isRequired: false,
377
+ transformFunction: null
378
+ },
379
+ defaultValue: {
380
+ classPropertyName: "defaultValue",
381
+ publicName: "defaultValue",
382
+ isSignal: true,
383
+ isRequired: false,
384
+ transformFunction: null
385
+ },
386
+ selectionBehavior: {
387
+ classPropertyName: "selectionBehavior",
388
+ publicName: "selectionBehavior",
389
+ isSignal: true,
390
+ isRequired: false,
391
+ transformFunction: null
392
+ },
393
+ orientation: {
394
+ classPropertyName: "orientation",
395
+ publicName: "orientation",
396
+ isSignal: true,
397
+ isRequired: false,
398
+ transformFunction: null
399
+ },
400
+ loopFocus: {
401
+ classPropertyName: "loopFocus",
402
+ publicName: "loopFocus",
403
+ isSignal: true,
404
+ isRequired: false,
405
+ transformFunction: null
406
+ },
407
+ disabled: {
408
+ classPropertyName: "disabled",
409
+ publicName: "disabled",
410
+ isSignal: true,
411
+ isRequired: false,
412
+ transformFunction: null
413
+ },
414
+ name: {
415
+ classPropertyName: "name",
416
+ publicName: "name",
417
+ isSignal: true,
418
+ isRequired: false,
419
+ transformFunction: null
420
+ },
421
+ required: {
422
+ classPropertyName: "required",
423
+ publicName: "required",
424
+ isSignal: true,
425
+ isRequired: false,
426
+ transformFunction: null
427
+ }
428
+ },
429
+ outputs: {
430
+ valueChange: "valueChange",
431
+ valueChangeDetails: "valueChangeDetails"
432
+ },
433
+ host: {
434
+ attributes: {
435
+ "role": "listbox",
436
+ "data-primitives-part": "listbox-root"
437
+ },
438
+ listeners: {
439
+ "keydown": "onKeyDown($event)",
440
+ "focusin": "field.focused()",
441
+ "focusout": "onFocusOut($event)"
442
+ },
443
+ properties: {
444
+ "attr.aria-orientation": "orientation()",
445
+ "attr.aria-multiselectable": "multiple() ? 'true' : null",
446
+ "attr.aria-required": "required() ? 'true' : null",
447
+ "attr.aria-disabled": "isDisabled() ? 'true' : null",
448
+ "attr.data-invalid": "field.data().invalid",
449
+ "attr.data-valid": "field.data().valid",
450
+ "attr.data-dirty": "field.data().dirty",
451
+ "attr.data-touched": "field.data().touched",
452
+ "attr.data-filled": "field.data().filled",
453
+ "attr.data-focused": "field.data().focused",
454
+ "attr.data-multiple": "data().multiple",
455
+ "attr.data-disabled": "data().disabled",
456
+ "attr.data-orientation": "data().orientation"
457
+ }
458
+ },
459
+ exportAs: ["listboxRoot"],
460
+ ngImport: i0
461
+ });
462
+ }
463
+ };
464
+ i0.ɵɵngDeclareClassMetadata({
465
+ minVersion: "12.0.0",
466
+ version: "22.2.6",
467
+ ngImport: i0,
468
+ type: ListboxRoot,
469
+ decorators: [{
470
+ type: Directive,
471
+ args: [{
472
+ selector: "[listboxRoot]",
473
+ exportAs: "listboxRoot",
474
+ host: {
475
+ role: "listbox",
476
+ "data-primitives-part": "listbox-root",
477
+ "[attr.aria-orientation]": "orientation()",
478
+ "[attr.aria-multiselectable]": "multiple() ? 'true' : null",
479
+ "[attr.aria-required]": "required() ? 'true' : null",
480
+ "[attr.aria-disabled]": "isDisabled() ? 'true' : null",
481
+ "[attr.data-invalid]": "field.data().invalid",
482
+ "[attr.data-valid]": "field.data().valid",
483
+ "[attr.data-dirty]": "field.data().dirty",
484
+ "[attr.data-touched]": "field.data().touched",
485
+ "[attr.data-filled]": "field.data().filled",
486
+ "[attr.data-focused]": "field.data().focused",
487
+ "[attr.data-multiple]": "data().multiple",
488
+ "[attr.data-disabled]": "data().disabled",
489
+ "[attr.data-orientation]": "data().orientation",
490
+ "(keydown)": "onKeyDown($event)",
491
+ "(focusin)": "field.focused()",
492
+ "(focusout)": "onFocusOut($event)"
493
+ }
494
+ }]
495
+ }],
496
+ ctorParameters: () => [],
497
+ propDecorators: {
498
+ multiple: [{
499
+ type: i0.Input,
500
+ args: [{
501
+ isSignal: true,
502
+ alias: "multiple",
503
+ required: false
504
+ }]
505
+ }],
506
+ value: [{
507
+ type: i0.Input,
508
+ args: [{
509
+ isSignal: true,
510
+ alias: "value",
511
+ required: false
512
+ }]
513
+ }],
514
+ valueChange: [{
515
+ type: i0.Output,
516
+ args: ["valueChange"]
517
+ }],
518
+ defaultValue: [{
519
+ type: i0.Input,
520
+ args: [{
521
+ isSignal: true,
522
+ alias: "defaultValue",
523
+ required: false
524
+ }]
525
+ }],
526
+ valueChangeDetails: [{
527
+ type: i0.Output,
528
+ args: ["valueChangeDetails"]
529
+ }],
530
+ selectionBehavior: [{
531
+ type: i0.Input,
532
+ args: [{
533
+ isSignal: true,
534
+ alias: "selectionBehavior",
535
+ required: false
536
+ }]
537
+ }],
538
+ orientation: [{
539
+ type: i0.Input,
540
+ args: [{
541
+ isSignal: true,
542
+ alias: "orientation",
543
+ required: false
544
+ }]
545
+ }],
546
+ loopFocus: [{
547
+ type: i0.Input,
548
+ args: [{
549
+ isSignal: true,
550
+ alias: "loopFocus",
551
+ required: false
552
+ }]
553
+ }],
554
+ disabled: [{
555
+ type: i0.Input,
556
+ args: [{
557
+ isSignal: true,
558
+ alias: "disabled",
559
+ required: false
560
+ }]
561
+ }],
562
+ name: [{
563
+ type: i0.Input,
564
+ args: [{
565
+ isSignal: true,
566
+ alias: "name",
567
+ required: false
568
+ }]
569
+ }],
570
+ required: [{
571
+ type: i0.Input,
572
+ args: [{
573
+ isSignal: true,
574
+ alias: "required",
575
+ required: false
576
+ }]
577
+ }]
578
+ }
579
+ });
580
+ var ListboxItem = class ListboxItem {
581
+ constructor() {
582
+ this.value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
583
+ this.disabled = input(false, {
584
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
585
+ transform: booleanAttribute
586
+ });
587
+ this.label = input(void 0, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
588
+ this.root = injectEnclosing(ListboxRoot, "listboxRoot", "listboxItem");
589
+ this.host = injectHost();
590
+ this.itemId = injectId("primitives-listbox-item");
591
+ this.state = computed(() => ({
592
+ selected: this.root.selected().includes(this.value()),
593
+ highlighted: this.root.highlighted() === this.host,
594
+ disabled: this.disabled() || this.root.isDisabled()
595
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
596
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
597
+ this.tabIndex = computed(() => {
598
+ if (this.root.isDisabled()) return null;
599
+ return this.root.tabStop() === this.host ? 0 : -1;
600
+ }, ...ngDevMode ? [{ debugName: "tabIndex" }] : /* istanbul ignore next */ []);
601
+ const host = this.host;
602
+ const root = this.root;
603
+ effect((onCleanup) => {
604
+ const entry = {
605
+ element: host,
606
+ value: this.value(),
607
+ label: this.label(),
608
+ disabled: this.disabled()
609
+ };
610
+ onCleanup(untracked(() => root.register(entry)));
611
+ });
612
+ }
613
+ onMouseDown(event) {
614
+ if (event.shiftKey) event.preventDefault();
615
+ }
616
+ static {
617
+ this.ɵfac = i0.ɵɵngDeclareFactory({
618
+ minVersion: "12.0.0",
619
+ version: "22.2.6",
620
+ ngImport: i0,
621
+ type: ListboxItem,
622
+ deps: [],
623
+ target: i0.ɵɵFactoryTarget.Directive
624
+ });
625
+ }
626
+ static {
627
+ this.ɵdir = i0.ɵɵngDeclareDirective({
628
+ minVersion: "17.1.0",
629
+ version: "22.2.6",
630
+ type: ListboxItem,
631
+ isStandalone: true,
632
+ selector: "[listboxItem]",
633
+ inputs: {
634
+ value: {
635
+ classPropertyName: "value",
636
+ publicName: "value",
637
+ isSignal: true,
638
+ isRequired: true,
639
+ transformFunction: null
640
+ },
641
+ disabled: {
642
+ classPropertyName: "disabled",
643
+ publicName: "disabled",
644
+ isSignal: true,
645
+ isRequired: false,
646
+ transformFunction: null
647
+ },
648
+ label: {
649
+ classPropertyName: "label",
650
+ publicName: "label",
651
+ isSignal: true,
652
+ isRequired: false,
653
+ transformFunction: null
654
+ }
655
+ },
656
+ host: {
657
+ attributes: {
658
+ "role": "option",
659
+ "data-primitives-part": "listbox-item"
660
+ },
661
+ listeners: {
662
+ "focus": "root.focused(host)",
663
+ "mousedown": "onMouseDown($event)",
664
+ "click": "root.press(host, $event)"
665
+ },
666
+ properties: {
667
+ "attr.id": "itemId",
668
+ "attr.tabindex": "tabIndex()",
669
+ "attr.aria-selected": "state().selected ? 'true' : 'false'",
670
+ "attr.aria-disabled": "state().disabled ? 'true' : null",
671
+ "attr.data-selected": "data().selected",
672
+ "attr.data-highlighted": "data().highlighted",
673
+ "attr.data-disabled": "data().disabled"
674
+ }
675
+ },
676
+ exportAs: ["listboxItem"],
677
+ ngImport: i0
678
+ });
679
+ }
680
+ };
681
+ i0.ɵɵngDeclareClassMetadata({
682
+ minVersion: "12.0.0",
683
+ version: "22.2.6",
684
+ ngImport: i0,
685
+ type: ListboxItem,
686
+ decorators: [{
687
+ type: Directive,
688
+ args: [{
689
+ selector: "[listboxItem]",
690
+ exportAs: "listboxItem",
691
+ host: {
692
+ role: "option",
693
+ "data-primitives-part": "listbox-item",
694
+ "[attr.id]": "itemId",
695
+ "[attr.tabindex]": "tabIndex()",
696
+ "[attr.aria-selected]": "state().selected ? 'true' : 'false'",
697
+ "[attr.aria-disabled]": "state().disabled ? 'true' : null",
698
+ "[attr.data-selected]": "data().selected",
699
+ "[attr.data-highlighted]": "data().highlighted",
700
+ "[attr.data-disabled]": "data().disabled",
701
+ "(focus)": "root.focused(host)",
702
+ "(mousedown)": "onMouseDown($event)",
703
+ "(click)": "root.press(host, $event)"
704
+ }
705
+ }]
706
+ }],
707
+ ctorParameters: () => [],
708
+ propDecorators: {
709
+ value: [{
710
+ type: i0.Input,
711
+ args: [{
712
+ isSignal: true,
713
+ alias: "value",
714
+ required: true
715
+ }]
716
+ }],
717
+ disabled: [{
718
+ type: i0.Input,
719
+ args: [{
720
+ isSignal: true,
721
+ alias: "disabled",
722
+ required: false
723
+ }]
724
+ }],
725
+ label: [{
726
+ type: i0.Input,
727
+ args: [{
728
+ isSignal: true,
729
+ alias: "label",
730
+ required: false
731
+ }]
732
+ }]
733
+ }
734
+ });
735
+ var ListboxItemIndicator = class ListboxItemIndicator {
736
+ constructor() {
737
+ this.item = inject(ListboxItem);
738
+ this.keepMounted = input(false, {
739
+ ...ngDevMode ? { debugName: "keepMounted" } : /* istanbul ignore next */ {},
740
+ alias: "listboxItemIndicator",
741
+ transform: (value) => value === true || value === "true"
742
+ });
743
+ this.state = computed(() => ({ selected: this.item.state().selected }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
744
+ this.element = conditionalView(computed(() => this.state().selected || this.keepMounted()), (element) => {
745
+ element.setAttribute("aria-hidden", "true");
746
+ element.setAttribute("data-primitives-part", "listbox-item-indicator");
747
+ });
748
+ }
749
+ static {
750
+ this.ɵfac = i0.ɵɵngDeclareFactory({
751
+ minVersion: "12.0.0",
752
+ version: "22.2.6",
753
+ ngImport: i0,
754
+ type: ListboxItemIndicator,
755
+ deps: [],
756
+ target: i0.ɵɵFactoryTarget.Directive
757
+ });
758
+ }
759
+ static {
760
+ this.ɵdir = i0.ɵɵngDeclareDirective({
761
+ minVersion: "17.1.0",
762
+ version: "22.2.6",
763
+ type: ListboxItemIndicator,
764
+ isStandalone: true,
765
+ selector: "[listboxItemIndicator]",
766
+ inputs: { keepMounted: {
767
+ classPropertyName: "keepMounted",
768
+ publicName: "listboxItemIndicator",
769
+ isSignal: true,
770
+ isRequired: false,
771
+ transformFunction: null
772
+ } },
773
+ exportAs: ["listboxItemIndicator"],
774
+ ngImport: i0
775
+ });
776
+ }
777
+ };
778
+ i0.ɵɵngDeclareClassMetadata({
779
+ minVersion: "12.0.0",
780
+ version: "22.2.6",
781
+ ngImport: i0,
782
+ type: ListboxItemIndicator,
783
+ decorators: [{
784
+ type: Directive,
785
+ args: [{
786
+ selector: "[listboxItemIndicator]",
787
+ exportAs: "listboxItemIndicator"
788
+ }]
789
+ }],
790
+ propDecorators: { keepMounted: [{
791
+ type: i0.Input,
792
+ args: [{
793
+ isSignal: true,
794
+ alias: "listboxItemIndicator",
795
+ required: false
796
+ }]
797
+ }] }
798
+ });
799
+ var ListboxSeparator = class ListboxSeparator {
800
+ constructor() {
801
+ this.root = injectEnclosing(ListboxRoot, "listboxRoot", "listboxSeparator");
802
+ this.orientation = computed(() => this.root.orientation() === "vertical" ? "horizontal" : "vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
803
+ }
804
+ static {
805
+ this.ɵfac = i0.ɵɵngDeclareFactory({
806
+ minVersion: "12.0.0",
807
+ version: "22.2.6",
808
+ ngImport: i0,
809
+ type: ListboxSeparator,
810
+ deps: [],
811
+ target: i0.ɵɵFactoryTarget.Directive
812
+ });
813
+ }
814
+ static {
815
+ this.ɵdir = i0.ɵɵngDeclareDirective({
816
+ minVersion: "14.0.0",
817
+ version: "22.2.6",
818
+ type: ListboxSeparator,
819
+ isStandalone: true,
820
+ selector: "[listboxSeparator]",
821
+ host: {
822
+ attributes: {
823
+ "role": "presentation",
824
+ "data-primitives-part": "listbox-separator"
825
+ },
826
+ properties: { "attr.data-orientation": "orientation()" }
827
+ },
828
+ ngImport: i0
829
+ });
830
+ }
831
+ };
832
+ i0.ɵɵngDeclareClassMetadata({
833
+ minVersion: "12.0.0",
834
+ version: "22.2.6",
835
+ ngImport: i0,
836
+ type: ListboxSeparator,
837
+ decorators: [{
838
+ type: Directive,
839
+ args: [{
840
+ selector: "[listboxSeparator]",
841
+ host: {
842
+ role: "presentation",
843
+ "data-primitives-part": "listbox-separator",
844
+ "[attr.data-orientation]": "orientation()"
845
+ }
846
+ }]
847
+ }]
848
+ });
849
+ export { ListboxGroup, ListboxGroupLabel, ListboxItem, ListboxItemIndicator, ListboxRoot, ListboxSeparator };
850
+
851
+ //# sourceMappingURL=fragiola-primitives-angular-listbox.mjs.map