@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,1370 @@
1
+ import * as i0 from "@angular/core";
2
+ import { DestroyRef, Directive, afterNextRender, afterRenderEffect, booleanAttribute, computed, effect, inject, input, numberAttribute, output, signal, untracked } from "@angular/core";
3
+ import { conditionalView, controllable, createLiveRegion, dataValue, fileDropTarget, injectEnclosing, injectHost, injectId, registerHost, writeAttributes } from "@fragiola/primitives-angular/internal";
4
+ import { announceText } from "@fragiola/primitives/clipboard";
5
+ import { acceptAttribute, acceptsFile, assignFiles, checkFiles, fieldFiles, formatFileSize, watchFileDrop } from "@fragiola/primitives/file";
6
+ import { VISUALLY_HIDDEN_INPUT_STYLE, bridgeForm } from "@fragiola/primitives/form";
7
+ import { fieldControl } from "@fragiola/primitives-angular/field";
8
+ const ROOT_DATA_HOST = {
9
+ "[attr.data-invalid]": "root.data().invalid",
10
+ "[attr.data-valid]": "root.data().valid",
11
+ "[attr.data-dirty]": "root.data().dirty",
12
+ "[attr.data-touched]": "root.data().touched",
13
+ "[attr.data-filled]": "root.data().filled",
14
+ "[attr.data-focused]": "root.data().focused",
15
+ "[attr.data-disabled]": "root.data().disabled",
16
+ "[attr.data-empty]": "root.data().empty",
17
+ "[attr.data-drop-target]": "root.data().dropTarget"
18
+ };
19
+ const NO_FILES = [];
20
+ const DELETE_TRIGGER = "[data-primitives-part=\"file-upload-item-delete-trigger\"]";
21
+ const ITEM_GROUP = "[data-primitives-part=\"file-upload-item-group\"]";
22
+ var FileUploadRoot = class FileUploadRoot {
23
+ constructor() {
24
+ this.value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
25
+ this.valueChange = output();
26
+ this.defaultValue = input(void 0, ...ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []);
27
+ this.valueChangeDetails = output();
28
+ this.fileReject = output();
29
+ this.accept = input(void 0, ...ngDevMode ? [{ debugName: "accept" }] : /* istanbul ignore next */ []);
30
+ this.maxFiles = input(1, {
31
+ ...ngDevMode ? { debugName: "maxFiles" } : /* istanbul ignore next */ {},
32
+ transform: numberAttribute
33
+ });
34
+ this.minFileSize = input(void 0, ...ngDevMode ? [{ debugName: "minFileSize" }] : /* istanbul ignore next */ []);
35
+ this.maxFileSize = input(void 0, ...ngDevMode ? [{ debugName: "maxFileSize" }] : /* istanbul ignore next */ []);
36
+ this.validate = input(void 0, ...ngDevMode ? [{ debugName: "validate" }] : /* istanbul ignore next */ []);
37
+ this.name = input(void 0, ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
38
+ this.required = input(false, {
39
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
40
+ transform: booleanAttribute
41
+ });
42
+ this.disabled = input(false, {
43
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
44
+ transform: booleanAttribute
45
+ });
46
+ this.capture = input(void 0, ...ngDevMode ? [{ debugName: "capture" }] : /* istanbul ignore next */ []);
47
+ this.id = input(void 0, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
48
+ this.locale = input(void 0, ...ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []);
49
+ this.announcement = input(void 0, ...ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []);
50
+ this.host = injectHost();
51
+ this.announcer = createLiveRegion(this.host, "file-upload-announcer");
52
+ this.files = controllable(this.value, this.valueChange, () => this.defaultValue() ?? NO_FILES, (value, details) => this.valueChangeDetails.emit({
53
+ value,
54
+ details
55
+ }));
56
+ this.rejected = signal([], ...ngDevMode ? [{ debugName: "rejected" }] : /* istanbul ignore next */ []);
57
+ this.over = signal(false, ...ngDevMode ? [{ debugName: "over" }] : /* istanbul ignore next */ []);
58
+ this.labels = signal(0, ...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
59
+ this.syncs = signal(0, ...ngDevMode ? [{ debugName: "syncs" }] : /* istanbul ignore next */ []);
60
+ this.generatedId = injectId("primitives-file-upload");
61
+ this.inputId = computed(() => this.id() ?? `${this.generatedId}-input`, ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
62
+ this.labelId = `${this.generatedId}-label`;
63
+ this.input = signal(null, ...ngDevMode ? [{ debugName: "input" }] : /* istanbul ignore next */ []);
64
+ this.trigger = signal(null, ...ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []);
65
+ this.dropzone = signal(null, ...ngDevMode ? [{ debugName: "dropzone" }] : /* istanbul ignore next */ []);
66
+ this.field = fieldControl({
67
+ id: this.inputId,
68
+ labelable: true,
69
+ value: computed(() => fieldFiles(this.files.value())),
70
+ filled: computed(() => this.files.value().length > 0),
71
+ input: () => untracked(this.input),
72
+ focusTarget: () => untracked(this.trigger) ?? untracked(this.dropzone)
73
+ });
74
+ this.isDisabled = computed(() => this.disabled() || this.field.disabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
75
+ this.formName = computed(() => this.field.name() ?? this.name(), ...ngDevMode ? [{ debugName: "formName" }] : /* istanbul ignore next */ []);
76
+ this.acceptText = computed(() => acceptAttribute(this.accept()), ...ngDevMode ? [{ debugName: "acceptText" }] : /* istanbul ignore next */ []);
77
+ this.multiple = computed(() => this.maxFiles() > 1, ...ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []);
78
+ this.state = computed(() => {
79
+ const value = this.files.value();
80
+ return {
81
+ value,
82
+ rejectedFiles: this.rejected(),
83
+ disabled: this.isDisabled(),
84
+ empty: value.length === 0,
85
+ dropTarget: this.over() && !this.isDisabled()
86
+ };
87
+ }, ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
88
+ this.data = computed(() => {
89
+ const state = this.state();
90
+ return {
91
+ ...this.field.data(),
92
+ disabled: dataValue(state.disabled),
93
+ empty: dataValue(state.empty),
94
+ dropTarget: dataValue(state.dropTarget)
95
+ };
96
+ }, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
97
+ this.labelledBy = computed(() => this.field.inField ? this.field.labelledBy() : this.labels() > 0 ? this.labelId : null, ...ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []);
98
+ afterRenderEffect({ write: () => {
99
+ const element = this.input();
100
+ const value = this.files.value();
101
+ this.syncs();
102
+ if (element !== null) assignFiles(element, value);
103
+ } });
104
+ }
105
+ setLabelled(labelled) {
106
+ this.labels.update((count) => count + (labelled ? 1 : -1));
107
+ }
108
+ setDropTarget(active) {
109
+ this.over.set(active);
110
+ }
111
+ connectInput(element) {
112
+ return bridgeForm(element, {
113
+ reset: () => {
114
+ this.field.reset();
115
+ this.rejected.set([]);
116
+ this.syncs.update((count) => count + 1);
117
+ this.files.set(untracked(this.defaultValue) ?? NO_FILES, { reason: "none" });
118
+ },
119
+ invalid: () => untracked(this.trigger) ?? untracked(this.dropzone)
120
+ });
121
+ }
122
+ pick(files, reason, event) {
123
+ if (untracked(this.isDisabled)) return;
124
+ const current = untracked(this.files.value);
125
+ const result = checkFiles(current, files, {
126
+ accept: untracked(this.accept),
127
+ maxFiles: untracked(this.maxFiles),
128
+ minFileSize: untracked(this.minFileSize),
129
+ maxFileSize: untracked(this.maxFileSize),
130
+ validate: untracked(this.validate)
131
+ });
132
+ this.syncs.update((count) => count + 1);
133
+ this.rejected.set(result.rejected);
134
+ const details = {
135
+ reason,
136
+ event
137
+ };
138
+ if (result.accepted.length > 0) this.files.set(result.value, details);
139
+ if (result.rejected.length > 0) this.fileReject.emit({
140
+ value: result.rejected,
141
+ details
142
+ });
143
+ const announcement = untracked(this.announcement);
144
+ if (announcement !== void 0) announceText(this.announcer, announcement({
145
+ value: result.value,
146
+ acceptedFiles: result.accepted,
147
+ rejectedFiles: result.rejected,
148
+ reason,
149
+ event
150
+ }));
151
+ }
152
+ openDialog() {
153
+ if (!untracked(this.isDisabled)) untracked(this.input)?.click();
154
+ }
155
+ focusControl() {
156
+ (untracked(this.trigger) ?? untracked(this.dropzone))?.focus();
157
+ }
158
+ remove(file, event, button) {
159
+ const buttons = [...(button.closest(ITEM_GROUP) ?? this.host).querySelectorAll(DELETE_TRIGGER)];
160
+ const index = buttons.indexOf(button);
161
+ const next = index === -1 ? void 0 : buttons[index + 1] ?? buttons[index - 1];
162
+ if (next !== void 0) next.focus();
163
+ else this.focusControl();
164
+ const value = untracked(this.files.value);
165
+ if (value.includes(file)) this.files.set(value.filter((entry) => entry !== file), {
166
+ reason: "delete-press",
167
+ event
168
+ });
169
+ else this.rejected.update((rejected) => rejected.filter((entry) => entry.file !== file));
170
+ }
171
+ clear(event) {
172
+ this.focusControl();
173
+ this.rejected.set([]);
174
+ if (untracked(this.files.value).length > 0) this.files.set(NO_FILES, {
175
+ reason: "clear-press",
176
+ event
177
+ });
178
+ }
179
+ onFocusOut(event) {
180
+ if (!this.host.contains(event.relatedTarget)) this.field.blurred();
181
+ }
182
+ static {
183
+ this.ɵfac = i0.ɵɵngDeclareFactory({
184
+ minVersion: "12.0.0",
185
+ version: "22.2.6",
186
+ ngImport: i0,
187
+ type: FileUploadRoot,
188
+ deps: [],
189
+ target: i0.ɵɵFactoryTarget.Directive
190
+ });
191
+ }
192
+ static {
193
+ this.ɵdir = i0.ɵɵngDeclareDirective({
194
+ minVersion: "17.1.0",
195
+ version: "22.2.6",
196
+ type: FileUploadRoot,
197
+ isStandalone: true,
198
+ selector: "[fileUploadRoot]",
199
+ inputs: {
200
+ value: {
201
+ classPropertyName: "value",
202
+ publicName: "value",
203
+ isSignal: true,
204
+ isRequired: false,
205
+ transformFunction: null
206
+ },
207
+ defaultValue: {
208
+ classPropertyName: "defaultValue",
209
+ publicName: "defaultValue",
210
+ isSignal: true,
211
+ isRequired: false,
212
+ transformFunction: null
213
+ },
214
+ accept: {
215
+ classPropertyName: "accept",
216
+ publicName: "accept",
217
+ isSignal: true,
218
+ isRequired: false,
219
+ transformFunction: null
220
+ },
221
+ maxFiles: {
222
+ classPropertyName: "maxFiles",
223
+ publicName: "maxFiles",
224
+ isSignal: true,
225
+ isRequired: false,
226
+ transformFunction: null
227
+ },
228
+ minFileSize: {
229
+ classPropertyName: "minFileSize",
230
+ publicName: "minFileSize",
231
+ isSignal: true,
232
+ isRequired: false,
233
+ transformFunction: null
234
+ },
235
+ maxFileSize: {
236
+ classPropertyName: "maxFileSize",
237
+ publicName: "maxFileSize",
238
+ isSignal: true,
239
+ isRequired: false,
240
+ transformFunction: null
241
+ },
242
+ validate: {
243
+ classPropertyName: "validate",
244
+ publicName: "validate",
245
+ isSignal: true,
246
+ isRequired: false,
247
+ transformFunction: null
248
+ },
249
+ name: {
250
+ classPropertyName: "name",
251
+ publicName: "name",
252
+ isSignal: true,
253
+ isRequired: false,
254
+ transformFunction: null
255
+ },
256
+ required: {
257
+ classPropertyName: "required",
258
+ publicName: "required",
259
+ isSignal: true,
260
+ isRequired: false,
261
+ transformFunction: null
262
+ },
263
+ disabled: {
264
+ classPropertyName: "disabled",
265
+ publicName: "disabled",
266
+ isSignal: true,
267
+ isRequired: false,
268
+ transformFunction: null
269
+ },
270
+ capture: {
271
+ classPropertyName: "capture",
272
+ publicName: "capture",
273
+ isSignal: true,
274
+ isRequired: false,
275
+ transformFunction: null
276
+ },
277
+ id: {
278
+ classPropertyName: "id",
279
+ publicName: "id",
280
+ isSignal: true,
281
+ isRequired: false,
282
+ transformFunction: null
283
+ },
284
+ locale: {
285
+ classPropertyName: "locale",
286
+ publicName: "locale",
287
+ isSignal: true,
288
+ isRequired: false,
289
+ transformFunction: null
290
+ },
291
+ announcement: {
292
+ classPropertyName: "announcement",
293
+ publicName: "announcement",
294
+ isSignal: true,
295
+ isRequired: false,
296
+ transformFunction: null
297
+ }
298
+ },
299
+ outputs: {
300
+ valueChange: "valueChange",
301
+ valueChangeDetails: "valueChangeDetails",
302
+ fileReject: "fileReject"
303
+ },
304
+ host: {
305
+ attributes: {
306
+ "role": "group",
307
+ "data-primitives-part": "file-upload-root"
308
+ },
309
+ listeners: {
310
+ "focusin": "field.focused()",
311
+ "focusout": "onFocusOut($event)"
312
+ },
313
+ properties: {
314
+ "attr.aria-labelledby": "labelledBy()",
315
+ "attr.aria-describedby": "field.describedBy()",
316
+ "attr.aria-invalid": "field.ariaInvalid()",
317
+ "attr.data-invalid": "data().invalid",
318
+ "attr.data-valid": "data().valid",
319
+ "attr.data-dirty": "data().dirty",
320
+ "attr.data-touched": "data().touched",
321
+ "attr.data-filled": "data().filled",
322
+ "attr.data-focused": "data().focused",
323
+ "attr.data-disabled": "data().disabled",
324
+ "attr.data-empty": "data().empty",
325
+ "attr.data-drop-target": "data().dropTarget"
326
+ }
327
+ },
328
+ exportAs: ["fileUploadRoot"],
329
+ ngImport: i0
330
+ });
331
+ }
332
+ };
333
+ i0.ɵɵngDeclareClassMetadata({
334
+ minVersion: "12.0.0",
335
+ version: "22.2.6",
336
+ ngImport: i0,
337
+ type: FileUploadRoot,
338
+ decorators: [{
339
+ type: Directive,
340
+ args: [{
341
+ selector: "[fileUploadRoot]",
342
+ exportAs: "fileUploadRoot",
343
+ host: {
344
+ role: "group",
345
+ "data-primitives-part": "file-upload-root",
346
+ "[attr.aria-labelledby]": "labelledBy()",
347
+ "[attr.aria-describedby]": "field.describedBy()",
348
+ "[attr.aria-invalid]": "field.ariaInvalid()",
349
+ "[attr.data-invalid]": "data().invalid",
350
+ "[attr.data-valid]": "data().valid",
351
+ "[attr.data-dirty]": "data().dirty",
352
+ "[attr.data-touched]": "data().touched",
353
+ "[attr.data-filled]": "data().filled",
354
+ "[attr.data-focused]": "data().focused",
355
+ "[attr.data-disabled]": "data().disabled",
356
+ "[attr.data-empty]": "data().empty",
357
+ "[attr.data-drop-target]": "data().dropTarget",
358
+ "(focusin)": "field.focused()",
359
+ "(focusout)": "onFocusOut($event)"
360
+ }
361
+ }]
362
+ }],
363
+ ctorParameters: () => [],
364
+ propDecorators: {
365
+ value: [{
366
+ type: i0.Input,
367
+ args: [{
368
+ isSignal: true,
369
+ alias: "value",
370
+ required: false
371
+ }]
372
+ }],
373
+ valueChange: [{
374
+ type: i0.Output,
375
+ args: ["valueChange"]
376
+ }],
377
+ defaultValue: [{
378
+ type: i0.Input,
379
+ args: [{
380
+ isSignal: true,
381
+ alias: "defaultValue",
382
+ required: false
383
+ }]
384
+ }],
385
+ valueChangeDetails: [{
386
+ type: i0.Output,
387
+ args: ["valueChangeDetails"]
388
+ }],
389
+ fileReject: [{
390
+ type: i0.Output,
391
+ args: ["fileReject"]
392
+ }],
393
+ accept: [{
394
+ type: i0.Input,
395
+ args: [{
396
+ isSignal: true,
397
+ alias: "accept",
398
+ required: false
399
+ }]
400
+ }],
401
+ maxFiles: [{
402
+ type: i0.Input,
403
+ args: [{
404
+ isSignal: true,
405
+ alias: "maxFiles",
406
+ required: false
407
+ }]
408
+ }],
409
+ minFileSize: [{
410
+ type: i0.Input,
411
+ args: [{
412
+ isSignal: true,
413
+ alias: "minFileSize",
414
+ required: false
415
+ }]
416
+ }],
417
+ maxFileSize: [{
418
+ type: i0.Input,
419
+ args: [{
420
+ isSignal: true,
421
+ alias: "maxFileSize",
422
+ required: false
423
+ }]
424
+ }],
425
+ validate: [{
426
+ type: i0.Input,
427
+ args: [{
428
+ isSignal: true,
429
+ alias: "validate",
430
+ required: false
431
+ }]
432
+ }],
433
+ name: [{
434
+ type: i0.Input,
435
+ args: [{
436
+ isSignal: true,
437
+ alias: "name",
438
+ required: false
439
+ }]
440
+ }],
441
+ required: [{
442
+ type: i0.Input,
443
+ args: [{
444
+ isSignal: true,
445
+ alias: "required",
446
+ required: false
447
+ }]
448
+ }],
449
+ disabled: [{
450
+ type: i0.Input,
451
+ args: [{
452
+ isSignal: true,
453
+ alias: "disabled",
454
+ required: false
455
+ }]
456
+ }],
457
+ capture: [{
458
+ type: i0.Input,
459
+ args: [{
460
+ isSignal: true,
461
+ alias: "capture",
462
+ required: false
463
+ }]
464
+ }],
465
+ id: [{
466
+ type: i0.Input,
467
+ args: [{
468
+ isSignal: true,
469
+ alias: "id",
470
+ required: false
471
+ }]
472
+ }],
473
+ locale: [{
474
+ type: i0.Input,
475
+ args: [{
476
+ isSignal: true,
477
+ alias: "locale",
478
+ required: false
479
+ }]
480
+ }],
481
+ announcement: [{
482
+ type: i0.Input,
483
+ args: [{
484
+ isSignal: true,
485
+ alias: "announcement",
486
+ required: false
487
+ }]
488
+ }]
489
+ }
490
+ });
491
+ var FileUploadClearTrigger = class FileUploadClearTrigger {
492
+ constructor() {
493
+ this.root = injectEnclosing(FileUploadRoot, "fileUploadRoot", "fileUploadClearTrigger");
494
+ this.state = this.root.state;
495
+ }
496
+ static {
497
+ this.ɵfac = i0.ɵɵngDeclareFactory({
498
+ minVersion: "12.0.0",
499
+ version: "22.2.6",
500
+ ngImport: i0,
501
+ type: FileUploadClearTrigger,
502
+ deps: [],
503
+ target: i0.ɵɵFactoryTarget.Directive
504
+ });
505
+ }
506
+ static {
507
+ this.ɵdir = i0.ɵɵngDeclareDirective({
508
+ minVersion: "14.0.0",
509
+ version: "22.2.6",
510
+ type: FileUploadClearTrigger,
511
+ isStandalone: true,
512
+ selector: "button[fileUploadClearTrigger]",
513
+ host: {
514
+ attributes: {
515
+ "type": "button",
516
+ "data-primitives-part": "file-upload-clear-trigger"
517
+ },
518
+ listeners: { "click": "root.clear($event)" },
519
+ properties: {
520
+ "disabled": "root.isDisabled()",
521
+ "attr.hidden": "root.state().empty && root.state().rejectedFiles.length === 0 ? \"\" : null",
522
+ "attr.data-invalid": "root.data().invalid",
523
+ "attr.data-valid": "root.data().valid",
524
+ "attr.data-dirty": "root.data().dirty",
525
+ "attr.data-touched": "root.data().touched",
526
+ "attr.data-filled": "root.data().filled",
527
+ "attr.data-focused": "root.data().focused",
528
+ "attr.data-disabled": "root.data().disabled",
529
+ "attr.data-empty": "root.data().empty",
530
+ "attr.data-drop-target": "root.data().dropTarget"
531
+ }
532
+ },
533
+ exportAs: ["fileUploadClearTrigger"],
534
+ ngImport: i0
535
+ });
536
+ }
537
+ };
538
+ i0.ɵɵngDeclareClassMetadata({
539
+ minVersion: "12.0.0",
540
+ version: "22.2.6",
541
+ ngImport: i0,
542
+ type: FileUploadClearTrigger,
543
+ decorators: [{
544
+ type: Directive,
545
+ args: [{
546
+ selector: "button[fileUploadClearTrigger]",
547
+ exportAs: "fileUploadClearTrigger",
548
+ host: {
549
+ type: "button",
550
+ "data-primitives-part": "file-upload-clear-trigger",
551
+ "[disabled]": "root.isDisabled()",
552
+ "[attr.hidden]": "root.state().empty && root.state().rejectedFiles.length === 0 ? \"\" : null",
553
+ ...ROOT_DATA_HOST,
554
+ "(click)": "root.clear($event)"
555
+ }
556
+ }]
557
+ }]
558
+ });
559
+ var FileUploadDropzone = class FileUploadDropzone {
560
+ constructor() {
561
+ this.root = injectEnclosing(FileUploadRoot, "fileUploadRoot", "fileUploadDropzone");
562
+ this.state = this.root.state;
563
+ this.dropTarget = fileDropTarget(registerHost(this.root.dropzone), {
564
+ watch: watchFileDrop,
565
+ disabled: this.root.isDisabled,
566
+ onFiles: (files, reason, event) => this.root.pick(files, reason, event),
567
+ onDropTargetChange: (active) => this.root.setDropTarget(active),
568
+ onActivate: () => this.root.openDialog()
569
+ });
570
+ }
571
+ dropTargetData() {
572
+ return dataValue(this.dropTarget());
573
+ }
574
+ static {
575
+ this.ɵfac = i0.ɵɵngDeclareFactory({
576
+ minVersion: "12.0.0",
577
+ version: "22.2.6",
578
+ ngImport: i0,
579
+ type: FileUploadDropzone,
580
+ deps: [],
581
+ target: i0.ɵɵFactoryTarget.Directive
582
+ });
583
+ }
584
+ static {
585
+ this.ɵdir = i0.ɵɵngDeclareDirective({
586
+ minVersion: "14.0.0",
587
+ version: "22.2.6",
588
+ type: FileUploadDropzone,
589
+ isStandalone: true,
590
+ selector: "[fileUploadDropzone]",
591
+ host: {
592
+ attributes: {
593
+ "role": "button",
594
+ "data-primitives-part": "file-upload-dropzone"
595
+ },
596
+ properties: {
597
+ "attr.tabindex": "root.isDisabled() ? null : 0",
598
+ "attr.aria-disabled": "root.isDisabled() ? \"true\" : null",
599
+ "attr.data-invalid": "root.data().invalid",
600
+ "attr.data-valid": "root.data().valid",
601
+ "attr.data-dirty": "root.data().dirty",
602
+ "attr.data-touched": "root.data().touched",
603
+ "attr.data-filled": "root.data().filled",
604
+ "attr.data-focused": "root.data().focused",
605
+ "attr.data-disabled": "root.data().disabled",
606
+ "attr.data-empty": "root.data().empty",
607
+ "attr.data-drop-target": "dropTargetData()"
608
+ }
609
+ },
610
+ exportAs: ["fileUploadDropzone"],
611
+ ngImport: i0
612
+ });
613
+ }
614
+ };
615
+ i0.ɵɵngDeclareClassMetadata({
616
+ minVersion: "12.0.0",
617
+ version: "22.2.6",
618
+ ngImport: i0,
619
+ type: FileUploadDropzone,
620
+ decorators: [{
621
+ type: Directive,
622
+ args: [{
623
+ selector: "[fileUploadDropzone]",
624
+ exportAs: "fileUploadDropzone",
625
+ host: {
626
+ role: "button",
627
+ "data-primitives-part": "file-upload-dropzone",
628
+ "[attr.tabindex]": "root.isDisabled() ? null : 0",
629
+ "[attr.aria-disabled]": "root.isDisabled() ? \"true\" : null",
630
+ ...ROOT_DATA_HOST,
631
+ "[attr.data-drop-target]": "dropTargetData()"
632
+ }
633
+ }]
634
+ }]
635
+ });
636
+ const HIDDEN_STYLE = Object.fromEntries(Object.entries(VISUALLY_HIDDEN_INPUT_STYLE).map(([name, value]) => [name.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`), value]));
637
+ var FileUploadHiddenInput = class FileUploadHiddenInput {
638
+ constructor() {
639
+ this.root = injectEnclosing(FileUploadRoot, "fileUploadRoot", "fileUploadHiddenInput");
640
+ this.state = this.root.state;
641
+ this.style = HIDDEN_STYLE;
642
+ this.host = registerHost(this.root.input);
643
+ let stop = null;
644
+ afterNextRender(() => {
645
+ stop = this.root.connectInput(this.host);
646
+ });
647
+ inject(DestroyRef).onDestroy(() => stop?.());
648
+ }
649
+ changed(event) {
650
+ const files = [...this.host.files ?? []];
651
+ if (files.length > 0) this.root.pick(files, "input-change", event);
652
+ }
653
+ static {
654
+ this.ɵfac = i0.ɵɵngDeclareFactory({
655
+ minVersion: "12.0.0",
656
+ version: "22.2.6",
657
+ ngImport: i0,
658
+ type: FileUploadHiddenInput,
659
+ deps: [],
660
+ target: i0.ɵɵFactoryTarget.Directive
661
+ });
662
+ }
663
+ static {
664
+ this.ɵdir = i0.ɵɵngDeclareDirective({
665
+ minVersion: "14.0.0",
666
+ version: "22.2.6",
667
+ type: FileUploadHiddenInput,
668
+ isStandalone: true,
669
+ selector: "input[fileUploadHiddenInput]",
670
+ host: {
671
+ attributes: {
672
+ "type": "file",
673
+ "tabindex": "-1",
674
+ "aria-hidden": "true",
675
+ "data-primitives-part": "file-upload-hidden-input"
676
+ },
677
+ listeners: { "change": "changed($event)" },
678
+ properties: {
679
+ "id": "root.inputId()",
680
+ "attr.name": "root.formName() ?? null",
681
+ "attr.accept": "root.acceptText() ?? null",
682
+ "multiple": "root.multiple()",
683
+ "attr.capture": "root.capture() ?? null",
684
+ "required": "root.required()",
685
+ "disabled": "root.isDisabled()",
686
+ "style": "style"
687
+ }
688
+ },
689
+ exportAs: ["fileUploadHiddenInput"],
690
+ ngImport: i0
691
+ });
692
+ }
693
+ };
694
+ i0.ɵɵngDeclareClassMetadata({
695
+ minVersion: "12.0.0",
696
+ version: "22.2.6",
697
+ ngImport: i0,
698
+ type: FileUploadHiddenInput,
699
+ decorators: [{
700
+ type: Directive,
701
+ args: [{
702
+ selector: "input[fileUploadHiddenInput]",
703
+ exportAs: "fileUploadHiddenInput",
704
+ host: {
705
+ type: "file",
706
+ tabindex: "-1",
707
+ "aria-hidden": "true",
708
+ "data-primitives-part": "file-upload-hidden-input",
709
+ "[id]": "root.inputId()",
710
+ "[attr.name]": "root.formName() ?? null",
711
+ "[attr.accept]": "root.acceptText() ?? null",
712
+ "[multiple]": "root.multiple()",
713
+ "[attr.capture]": "root.capture() ?? null",
714
+ "[required]": "root.required()",
715
+ "[disabled]": "root.isDisabled()",
716
+ "[style]": "style",
717
+ "(change)": "changed($event)"
718
+ }
719
+ }]
720
+ }],
721
+ ctorParameters: () => []
722
+ });
723
+ const NO_REASONS = [];
724
+ var FileUploadItem = class FileUploadItem {
725
+ constructor() {
726
+ this.root = injectEnclosing(FileUploadRoot, "fileUploadRoot", "fileUploadItem");
727
+ this.file = input.required(...ngDevMode ? [{ debugName: "file" }] : /* istanbul ignore next */ []);
728
+ this.rejection = computed(() => {
729
+ const file = this.file();
730
+ const root = this.root.state();
731
+ const found = root.rejectedFiles.find((entry) => entry.file === file);
732
+ return found !== void 0 && !root.value.includes(file) ? found : null;
733
+ }, ...ngDevMode ? [{ debugName: "rejection" }] : /* istanbul ignore next */ []);
734
+ this.state = computed(() => {
735
+ const rejection = this.rejection();
736
+ return {
737
+ ...this.root.state(),
738
+ file: this.file(),
739
+ rejected: rejection !== null,
740
+ reasons: rejection?.reasons ?? NO_REASONS
741
+ };
742
+ }, ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
743
+ this.data = computed(() => ({
744
+ ...this.root.data(),
745
+ rejected: dataValue(this.rejection() !== null)
746
+ }), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
747
+ }
748
+ static {
749
+ this.ɵfac = i0.ɵɵngDeclareFactory({
750
+ minVersion: "12.0.0",
751
+ version: "22.2.6",
752
+ ngImport: i0,
753
+ type: FileUploadItem,
754
+ deps: [],
755
+ target: i0.ɵɵFactoryTarget.Directive
756
+ });
757
+ }
758
+ static {
759
+ this.ɵdir = i0.ɵɵngDeclareDirective({
760
+ minVersion: "17.1.0",
761
+ version: "22.2.6",
762
+ type: FileUploadItem,
763
+ isStandalone: true,
764
+ selector: "[fileUploadItem]",
765
+ inputs: { file: {
766
+ classPropertyName: "file",
767
+ publicName: "file",
768
+ isSignal: true,
769
+ isRequired: true,
770
+ transformFunction: null
771
+ } },
772
+ host: {
773
+ attributes: { "data-primitives-part": "file-upload-item" },
774
+ properties: {
775
+ "attr.data-invalid": "data().invalid",
776
+ "attr.data-valid": "data().valid",
777
+ "attr.data-dirty": "data().dirty",
778
+ "attr.data-touched": "data().touched",
779
+ "attr.data-filled": "data().filled",
780
+ "attr.data-focused": "data().focused",
781
+ "attr.data-disabled": "data().disabled",
782
+ "attr.data-empty": "data().empty",
783
+ "attr.data-drop-target": "data().dropTarget",
784
+ "attr.data-rejected": "data().rejected"
785
+ }
786
+ },
787
+ exportAs: ["fileUploadItem"],
788
+ ngImport: i0
789
+ });
790
+ }
791
+ };
792
+ i0.ɵɵngDeclareClassMetadata({
793
+ minVersion: "12.0.0",
794
+ version: "22.2.6",
795
+ ngImport: i0,
796
+ type: FileUploadItem,
797
+ decorators: [{
798
+ type: Directive,
799
+ args: [{
800
+ selector: "[fileUploadItem]",
801
+ exportAs: "fileUploadItem",
802
+ host: {
803
+ "data-primitives-part": "file-upload-item",
804
+ "[attr.data-invalid]": "data().invalid",
805
+ "[attr.data-valid]": "data().valid",
806
+ "[attr.data-dirty]": "data().dirty",
807
+ "[attr.data-touched]": "data().touched",
808
+ "[attr.data-filled]": "data().filled",
809
+ "[attr.data-focused]": "data().focused",
810
+ "[attr.data-disabled]": "data().disabled",
811
+ "[attr.data-empty]": "data().empty",
812
+ "[attr.data-drop-target]": "data().dropTarget",
813
+ "[attr.data-rejected]": "data().rejected"
814
+ }
815
+ }]
816
+ }],
817
+ propDecorators: { file: [{
818
+ type: i0.Input,
819
+ args: [{
820
+ isSignal: true,
821
+ alias: "file",
822
+ required: true
823
+ }]
824
+ }] }
825
+ });
826
+ const ITEM_DATA_HOST = {
827
+ "[attr.data-invalid]": "item.data().invalid",
828
+ "[attr.data-valid]": "item.data().valid",
829
+ "[attr.data-dirty]": "item.data().dirty",
830
+ "[attr.data-touched]": "item.data().touched",
831
+ "[attr.data-filled]": "item.data().filled",
832
+ "[attr.data-focused]": "item.data().focused",
833
+ "[attr.data-disabled]": "item.data().disabled",
834
+ "[attr.data-empty]": "item.data().empty",
835
+ "[attr.data-drop-target]": "item.data().dropTarget",
836
+ "[attr.data-rejected]": "item.data().rejected"
837
+ };
838
+ var FileUploadItemDeleteTrigger = class FileUploadItemDeleteTrigger {
839
+ constructor() {
840
+ this.item = injectEnclosing(FileUploadItem, "fileUploadItem", "fileUploadItemDeleteTrigger");
841
+ this.state = this.item.state;
842
+ this.host = injectHost();
843
+ }
844
+ remove(event) {
845
+ this.item.root.remove(this.item.file(), event, this.host);
846
+ }
847
+ static {
848
+ this.ɵfac = i0.ɵɵngDeclareFactory({
849
+ minVersion: "12.0.0",
850
+ version: "22.2.6",
851
+ ngImport: i0,
852
+ type: FileUploadItemDeleteTrigger,
853
+ deps: [],
854
+ target: i0.ɵɵFactoryTarget.Directive
855
+ });
856
+ }
857
+ static {
858
+ this.ɵdir = i0.ɵɵngDeclareDirective({
859
+ minVersion: "14.0.0",
860
+ version: "22.2.6",
861
+ type: FileUploadItemDeleteTrigger,
862
+ isStandalone: true,
863
+ selector: "button[fileUploadItemDeleteTrigger]",
864
+ host: {
865
+ attributes: {
866
+ "type": "button",
867
+ "data-primitives-part": "file-upload-item-delete-trigger"
868
+ },
869
+ listeners: { "click": "remove($event)" },
870
+ properties: {
871
+ "disabled": "item.root.isDisabled()",
872
+ "attr.data-invalid": "item.data().invalid",
873
+ "attr.data-valid": "item.data().valid",
874
+ "attr.data-dirty": "item.data().dirty",
875
+ "attr.data-touched": "item.data().touched",
876
+ "attr.data-filled": "item.data().filled",
877
+ "attr.data-focused": "item.data().focused",
878
+ "attr.data-disabled": "item.data().disabled",
879
+ "attr.data-empty": "item.data().empty",
880
+ "attr.data-drop-target": "item.data().dropTarget",
881
+ "attr.data-rejected": "item.data().rejected"
882
+ }
883
+ },
884
+ exportAs: ["fileUploadItemDeleteTrigger"],
885
+ ngImport: i0
886
+ });
887
+ }
888
+ };
889
+ i0.ɵɵngDeclareClassMetadata({
890
+ minVersion: "12.0.0",
891
+ version: "22.2.6",
892
+ ngImport: i0,
893
+ type: FileUploadItemDeleteTrigger,
894
+ decorators: [{
895
+ type: Directive,
896
+ args: [{
897
+ selector: "button[fileUploadItemDeleteTrigger]",
898
+ exportAs: "fileUploadItemDeleteTrigger",
899
+ host: {
900
+ type: "button",
901
+ "data-primitives-part": "file-upload-item-delete-trigger",
902
+ "[disabled]": "item.root.isDisabled()",
903
+ ...ITEM_DATA_HOST,
904
+ "(click)": "remove($event)"
905
+ }
906
+ }]
907
+ }]
908
+ });
909
+ var FileUploadItemGroup = class FileUploadItemGroup {
910
+ constructor() {
911
+ this.root = injectEnclosing(FileUploadRoot, "fileUploadRoot", "fileUploadItemGroup");
912
+ this.state = this.root.state;
913
+ }
914
+ static {
915
+ this.ɵfac = i0.ɵɵngDeclareFactory({
916
+ minVersion: "12.0.0",
917
+ version: "22.2.6",
918
+ ngImport: i0,
919
+ type: FileUploadItemGroup,
920
+ deps: [],
921
+ target: i0.ɵɵFactoryTarget.Directive
922
+ });
923
+ }
924
+ static {
925
+ this.ɵdir = i0.ɵɵngDeclareDirective({
926
+ minVersion: "14.0.0",
927
+ version: "22.2.6",
928
+ type: FileUploadItemGroup,
929
+ isStandalone: true,
930
+ selector: "[fileUploadItemGroup]",
931
+ host: {
932
+ attributes: { "data-primitives-part": "file-upload-item-group" },
933
+ properties: {
934
+ "attr.data-invalid": "root.data().invalid",
935
+ "attr.data-valid": "root.data().valid",
936
+ "attr.data-dirty": "root.data().dirty",
937
+ "attr.data-touched": "root.data().touched",
938
+ "attr.data-filled": "root.data().filled",
939
+ "attr.data-focused": "root.data().focused",
940
+ "attr.data-disabled": "root.data().disabled",
941
+ "attr.data-empty": "root.data().empty",
942
+ "attr.data-drop-target": "root.data().dropTarget"
943
+ }
944
+ },
945
+ exportAs: ["fileUploadItemGroup"],
946
+ ngImport: i0
947
+ });
948
+ }
949
+ };
950
+ i0.ɵɵngDeclareClassMetadata({
951
+ minVersion: "12.0.0",
952
+ version: "22.2.6",
953
+ ngImport: i0,
954
+ type: FileUploadItemGroup,
955
+ decorators: [{
956
+ type: Directive,
957
+ args: [{
958
+ selector: "[fileUploadItemGroup]",
959
+ exportAs: "fileUploadItemGroup",
960
+ host: {
961
+ "data-primitives-part": "file-upload-item-group",
962
+ ...ROOT_DATA_HOST
963
+ }
964
+ }]
965
+ }]
966
+ });
967
+ var FileUploadItemName = class FileUploadItemName {
968
+ constructor() {
969
+ this.item = injectEnclosing(FileUploadItem, "fileUploadItem", "fileUploadItemName");
970
+ this.state = this.item.state;
971
+ this.text = computed(() => this.item.file().name, ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
972
+ }
973
+ static {
974
+ this.ɵfac = i0.ɵɵngDeclareFactory({
975
+ minVersion: "12.0.0",
976
+ version: "22.2.6",
977
+ ngImport: i0,
978
+ type: FileUploadItemName,
979
+ deps: [],
980
+ target: i0.ɵɵFactoryTarget.Directive
981
+ });
982
+ }
983
+ static {
984
+ this.ɵdir = i0.ɵɵngDeclareDirective({
985
+ minVersion: "14.0.0",
986
+ version: "22.2.6",
987
+ type: FileUploadItemName,
988
+ isStandalone: true,
989
+ selector: "[fileUploadItemName]",
990
+ host: {
991
+ attributes: { "data-primitives-part": "file-upload-item-name" },
992
+ properties: {
993
+ "attr.data-invalid": "item.data().invalid",
994
+ "attr.data-valid": "item.data().valid",
995
+ "attr.data-dirty": "item.data().dirty",
996
+ "attr.data-touched": "item.data().touched",
997
+ "attr.data-filled": "item.data().filled",
998
+ "attr.data-focused": "item.data().focused",
999
+ "attr.data-disabled": "item.data().disabled",
1000
+ "attr.data-empty": "item.data().empty",
1001
+ "attr.data-drop-target": "item.data().dropTarget",
1002
+ "attr.data-rejected": "item.data().rejected",
1003
+ "textContent": "text()"
1004
+ }
1005
+ },
1006
+ exportAs: ["fileUploadItemName"],
1007
+ ngImport: i0
1008
+ });
1009
+ }
1010
+ };
1011
+ i0.ɵɵngDeclareClassMetadata({
1012
+ minVersion: "12.0.0",
1013
+ version: "22.2.6",
1014
+ ngImport: i0,
1015
+ type: FileUploadItemName,
1016
+ decorators: [{
1017
+ type: Directive,
1018
+ args: [{
1019
+ selector: "[fileUploadItemName]",
1020
+ exportAs: "fileUploadItemName",
1021
+ host: {
1022
+ "data-primitives-part": "file-upload-item-name",
1023
+ ...ITEM_DATA_HOST,
1024
+ "[textContent]": "text()"
1025
+ }
1026
+ }]
1027
+ }]
1028
+ });
1029
+ var FileUploadItemPreview = class FileUploadItemPreview {
1030
+ constructor() {
1031
+ this.item = injectEnclosing(FileUploadItem, "fileUploadItem", "fileUploadItemPreview");
1032
+ this.type = input("image/*", {
1033
+ ...ngDevMode ? { debugName: "type" } : /* istanbul ignore next */ {},
1034
+ alias: "fileUploadItemPreview",
1035
+ transform: (value) => value === void 0 || value === "" ? "image/*" : value
1036
+ });
1037
+ this.shown = computed(() => acceptsFile(this.item.file(), this.type() ?? "image/*"), ...ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []);
1038
+ this.element = conditionalView(this.shown);
1039
+ this.state = this.item.state;
1040
+ effect(() => {
1041
+ const element = this.element();
1042
+ if (element === null) return;
1043
+ const data = this.item.data();
1044
+ writeAttributes(element, {
1045
+ "data-primitives-part": "file-upload-item-preview",
1046
+ ...Object.fromEntries(Object.entries(data).map(([key, value]) => [`data-${key === "dropTarget" ? "drop-target" : key}`, value]))
1047
+ });
1048
+ });
1049
+ }
1050
+ static {
1051
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1052
+ minVersion: "12.0.0",
1053
+ version: "22.2.6",
1054
+ ngImport: i0,
1055
+ type: FileUploadItemPreview,
1056
+ deps: [],
1057
+ target: i0.ɵɵFactoryTarget.Directive
1058
+ });
1059
+ }
1060
+ static {
1061
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1062
+ minVersion: "17.1.0",
1063
+ version: "22.2.6",
1064
+ type: FileUploadItemPreview,
1065
+ isStandalone: true,
1066
+ selector: "[fileUploadItemPreview]",
1067
+ inputs: { type: {
1068
+ classPropertyName: "type",
1069
+ publicName: "fileUploadItemPreview",
1070
+ isSignal: true,
1071
+ isRequired: false,
1072
+ transformFunction: null
1073
+ } },
1074
+ exportAs: ["fileUploadItemPreview"],
1075
+ ngImport: i0
1076
+ });
1077
+ }
1078
+ };
1079
+ i0.ɵɵngDeclareClassMetadata({
1080
+ minVersion: "12.0.0",
1081
+ version: "22.2.6",
1082
+ ngImport: i0,
1083
+ type: FileUploadItemPreview,
1084
+ decorators: [{
1085
+ type: Directive,
1086
+ args: [{
1087
+ selector: "[fileUploadItemPreview]",
1088
+ exportAs: "fileUploadItemPreview"
1089
+ }]
1090
+ }],
1091
+ ctorParameters: () => [],
1092
+ propDecorators: { type: [{
1093
+ type: i0.Input,
1094
+ args: [{
1095
+ isSignal: true,
1096
+ alias: "fileUploadItemPreview",
1097
+ required: false
1098
+ }]
1099
+ }] }
1100
+ });
1101
+ var FileUploadItemPreviewImage = class FileUploadItemPreviewImage {
1102
+ constructor() {
1103
+ this.item = injectEnclosing(FileUploadItem, "fileUploadItem", "fileUploadItemPreviewImage");
1104
+ this.state = this.item.state;
1105
+ const host = injectHost();
1106
+ afterRenderEffect({ write: (onCleanup) => {
1107
+ const file = this.item.file();
1108
+ const url = host.ownerDocument.defaultView?.URL;
1109
+ if (url === void 0) return;
1110
+ const objectUrl = url.createObjectURL(file);
1111
+ host.setAttribute("src", objectUrl);
1112
+ onCleanup(() => url.revokeObjectURL(objectUrl));
1113
+ } });
1114
+ }
1115
+ static {
1116
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1117
+ minVersion: "12.0.0",
1118
+ version: "22.2.6",
1119
+ ngImport: i0,
1120
+ type: FileUploadItemPreviewImage,
1121
+ deps: [],
1122
+ target: i0.ɵɵFactoryTarget.Directive
1123
+ });
1124
+ }
1125
+ static {
1126
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1127
+ minVersion: "14.0.0",
1128
+ version: "22.2.6",
1129
+ type: FileUploadItemPreviewImage,
1130
+ isStandalone: true,
1131
+ selector: "img[fileUploadItemPreviewImage]",
1132
+ host: {
1133
+ attributes: { "data-primitives-part": "file-upload-item-preview-image" },
1134
+ properties: {
1135
+ "attr.data-invalid": "item.data().invalid",
1136
+ "attr.data-valid": "item.data().valid",
1137
+ "attr.data-dirty": "item.data().dirty",
1138
+ "attr.data-touched": "item.data().touched",
1139
+ "attr.data-filled": "item.data().filled",
1140
+ "attr.data-focused": "item.data().focused",
1141
+ "attr.data-disabled": "item.data().disabled",
1142
+ "attr.data-empty": "item.data().empty",
1143
+ "attr.data-drop-target": "item.data().dropTarget",
1144
+ "attr.data-rejected": "item.data().rejected"
1145
+ }
1146
+ },
1147
+ exportAs: ["fileUploadItemPreviewImage"],
1148
+ ngImport: i0
1149
+ });
1150
+ }
1151
+ };
1152
+ i0.ɵɵngDeclareClassMetadata({
1153
+ minVersion: "12.0.0",
1154
+ version: "22.2.6",
1155
+ ngImport: i0,
1156
+ type: FileUploadItemPreviewImage,
1157
+ decorators: [{
1158
+ type: Directive,
1159
+ args: [{
1160
+ selector: "img[fileUploadItemPreviewImage]",
1161
+ exportAs: "fileUploadItemPreviewImage",
1162
+ host: {
1163
+ "data-primitives-part": "file-upload-item-preview-image",
1164
+ ...ITEM_DATA_HOST
1165
+ }
1166
+ }]
1167
+ }],
1168
+ ctorParameters: () => []
1169
+ });
1170
+ var FileUploadItemSizeText = class FileUploadItemSizeText {
1171
+ constructor() {
1172
+ this.item = injectEnclosing(FileUploadItem, "fileUploadItem", "fileUploadItemSizeText");
1173
+ this.state = this.item.state;
1174
+ this.text = computed(() => formatFileSize(this.item.file().size, this.item.root.locale()), ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
1175
+ }
1176
+ static {
1177
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1178
+ minVersion: "12.0.0",
1179
+ version: "22.2.6",
1180
+ ngImport: i0,
1181
+ type: FileUploadItemSizeText,
1182
+ deps: [],
1183
+ target: i0.ɵɵFactoryTarget.Directive
1184
+ });
1185
+ }
1186
+ static {
1187
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1188
+ minVersion: "14.0.0",
1189
+ version: "22.2.6",
1190
+ type: FileUploadItemSizeText,
1191
+ isStandalone: true,
1192
+ selector: "[fileUploadItemSizeText]",
1193
+ host: {
1194
+ attributes: { "data-primitives-part": "file-upload-item-size-text" },
1195
+ properties: {
1196
+ "attr.data-invalid": "item.data().invalid",
1197
+ "attr.data-valid": "item.data().valid",
1198
+ "attr.data-dirty": "item.data().dirty",
1199
+ "attr.data-touched": "item.data().touched",
1200
+ "attr.data-filled": "item.data().filled",
1201
+ "attr.data-focused": "item.data().focused",
1202
+ "attr.data-disabled": "item.data().disabled",
1203
+ "attr.data-empty": "item.data().empty",
1204
+ "attr.data-drop-target": "item.data().dropTarget",
1205
+ "attr.data-rejected": "item.data().rejected",
1206
+ "textContent": "text()"
1207
+ }
1208
+ },
1209
+ exportAs: ["fileUploadItemSizeText"],
1210
+ ngImport: i0
1211
+ });
1212
+ }
1213
+ };
1214
+ i0.ɵɵngDeclareClassMetadata({
1215
+ minVersion: "12.0.0",
1216
+ version: "22.2.6",
1217
+ ngImport: i0,
1218
+ type: FileUploadItemSizeText,
1219
+ decorators: [{
1220
+ type: Directive,
1221
+ args: [{
1222
+ selector: "[fileUploadItemSizeText]",
1223
+ exportAs: "fileUploadItemSizeText",
1224
+ host: {
1225
+ "data-primitives-part": "file-upload-item-size-text",
1226
+ ...ITEM_DATA_HOST,
1227
+ "[textContent]": "text()"
1228
+ }
1229
+ }]
1230
+ }]
1231
+ });
1232
+ var FileUploadLabel = class FileUploadLabel {
1233
+ constructor() {
1234
+ this.root = injectEnclosing(FileUploadRoot, "fileUploadRoot", "fileUploadLabel");
1235
+ this.state = this.root.state;
1236
+ this.root.setLabelled(true);
1237
+ inject(DestroyRef).onDestroy(() => this.root.setLabelled(false));
1238
+ }
1239
+ static {
1240
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1241
+ minVersion: "12.0.0",
1242
+ version: "22.2.6",
1243
+ ngImport: i0,
1244
+ type: FileUploadLabel,
1245
+ deps: [],
1246
+ target: i0.ɵɵFactoryTarget.Directive
1247
+ });
1248
+ }
1249
+ static {
1250
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1251
+ minVersion: "14.0.0",
1252
+ version: "22.2.6",
1253
+ type: FileUploadLabel,
1254
+ isStandalone: true,
1255
+ selector: "label[fileUploadLabel]",
1256
+ host: {
1257
+ attributes: { "data-primitives-part": "file-upload-label" },
1258
+ properties: {
1259
+ "id": "root.labelId",
1260
+ "attr.for": "root.inputId()",
1261
+ "attr.data-invalid": "root.data().invalid",
1262
+ "attr.data-valid": "root.data().valid",
1263
+ "attr.data-dirty": "root.data().dirty",
1264
+ "attr.data-touched": "root.data().touched",
1265
+ "attr.data-filled": "root.data().filled",
1266
+ "attr.data-focused": "root.data().focused",
1267
+ "attr.data-disabled": "root.data().disabled",
1268
+ "attr.data-empty": "root.data().empty",
1269
+ "attr.data-drop-target": "root.data().dropTarget"
1270
+ }
1271
+ },
1272
+ exportAs: ["fileUploadLabel"],
1273
+ ngImport: i0
1274
+ });
1275
+ }
1276
+ };
1277
+ i0.ɵɵngDeclareClassMetadata({
1278
+ minVersion: "12.0.0",
1279
+ version: "22.2.6",
1280
+ ngImport: i0,
1281
+ type: FileUploadLabel,
1282
+ decorators: [{
1283
+ type: Directive,
1284
+ args: [{
1285
+ selector: "label[fileUploadLabel]",
1286
+ exportAs: "fileUploadLabel",
1287
+ host: {
1288
+ "data-primitives-part": "file-upload-label",
1289
+ "[id]": "root.labelId",
1290
+ "[attr.for]": "root.inputId()",
1291
+ ...ROOT_DATA_HOST
1292
+ }
1293
+ }]
1294
+ }],
1295
+ ctorParameters: () => []
1296
+ });
1297
+ var FileUploadTrigger = class FileUploadTrigger {
1298
+ constructor() {
1299
+ this.root = injectEnclosing(FileUploadRoot, "fileUploadRoot", "fileUploadTrigger");
1300
+ this.state = this.root.state;
1301
+ registerHost(this.root.trigger);
1302
+ }
1303
+ static {
1304
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1305
+ minVersion: "12.0.0",
1306
+ version: "22.2.6",
1307
+ ngImport: i0,
1308
+ type: FileUploadTrigger,
1309
+ deps: [],
1310
+ target: i0.ɵɵFactoryTarget.Directive
1311
+ });
1312
+ }
1313
+ static {
1314
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1315
+ minVersion: "14.0.0",
1316
+ version: "22.2.6",
1317
+ type: FileUploadTrigger,
1318
+ isStandalone: true,
1319
+ selector: "button[fileUploadTrigger]",
1320
+ host: {
1321
+ attributes: {
1322
+ "type": "button",
1323
+ "data-primitives-part": "file-upload-trigger"
1324
+ },
1325
+ listeners: { "click": "root.openDialog()" },
1326
+ properties: {
1327
+ "disabled": "root.isDisabled()",
1328
+ "attr.data-invalid": "root.data().invalid",
1329
+ "attr.data-valid": "root.data().valid",
1330
+ "attr.data-dirty": "root.data().dirty",
1331
+ "attr.data-touched": "root.data().touched",
1332
+ "attr.data-filled": "root.data().filled",
1333
+ "attr.data-focused": "root.data().focused",
1334
+ "attr.data-disabled": "root.data().disabled",
1335
+ "attr.data-empty": "root.data().empty",
1336
+ "attr.data-drop-target": "root.data().dropTarget"
1337
+ }
1338
+ },
1339
+ exportAs: ["fileUploadTrigger"],
1340
+ ngImport: i0
1341
+ });
1342
+ }
1343
+ };
1344
+ i0.ɵɵngDeclareClassMetadata({
1345
+ minVersion: "12.0.0",
1346
+ version: "22.2.6",
1347
+ ngImport: i0,
1348
+ type: FileUploadTrigger,
1349
+ decorators: [{
1350
+ type: Directive,
1351
+ args: [{
1352
+ selector: "button[fileUploadTrigger]",
1353
+ exportAs: "fileUploadTrigger",
1354
+ host: {
1355
+ type: "button",
1356
+ "data-primitives-part": "file-upload-trigger",
1357
+ "[disabled]": "root.isDisabled()",
1358
+ ...ROOT_DATA_HOST,
1359
+ "(click)": "root.openDialog()"
1360
+ }
1361
+ }]
1362
+ }],
1363
+ ctorParameters: () => []
1364
+ });
1365
+ function injectFileUpload() {
1366
+ return { state: injectEnclosing(FileUploadRoot, "fileUploadRoot", "injectFileUpload").state };
1367
+ }
1368
+ export { FileUploadClearTrigger, FileUploadDropzone, FileUploadHiddenInput, FileUploadItem, FileUploadItemDeleteTrigger, FileUploadItemGroup, FileUploadItemName, FileUploadItemPreview, FileUploadItemPreviewImage, FileUploadItemSizeText, FileUploadLabel, FileUploadRoot, FileUploadTrigger, injectFileUpload };
1369
+
1370
+ //# sourceMappingURL=fragiola-primitives-angular-file-upload.mjs.map