@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,609 @@
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 { colorAreaBackground, colorAreaChannels, colorAreaKeyTarget, colorChannelRange, convertColor, formatColor, formatColorChannel, getColorChannel, isSameColor, parseColor, setColorChannel } from "@fragiola/primitives/color";
4
+ import { getDirection } from "@fragiola/primitives/direction";
5
+ import { VISUALLY_HIDDEN_INPUT_STYLE, bridgeForm } from "@fragiola/primitives/form";
6
+ import { controllable, dataValues, injectColorPickerBinding, injectFlush, injectHost, injectProvidedDirection } from "@fragiola/primitives-angular/internal";
7
+ import { startDrag } from "@fragiola/primitives/pointer";
8
+ import { fractionAlong, snapToStep, valueAtFraction, valueToPercent } from "@fragiola/primitives/range";
9
+ const WHITE_HUE = {
10
+ space: "hsb",
11
+ hue: 0,
12
+ saturation: 100,
13
+ brightness: 100,
14
+ alpha: 1
15
+ };
16
+ function toColor(value) {
17
+ return parseColor(value) ?? WHITE_HUE;
18
+ }
19
+ var ColorAreaRoot = class ColorAreaRoot {
20
+ constructor() {
21
+ this.value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
22
+ this.valueChange = output();
23
+ this.defaultValue = input(void 0, ...ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []);
24
+ this.valueChangeDetails = output();
25
+ this.valueCommit = output();
26
+ this.xChannel = input(void 0, ...ngDevMode ? [{ debugName: "xChannel" }] : /* istanbul ignore next */ []);
27
+ this.yChannel = input(void 0, ...ngDevMode ? [{ debugName: "yChannel" }] : /* istanbul ignore next */ []);
28
+ this.colorSpace = input(void 0, ...ngDevMode ? [{ debugName: "colorSpace" }] : /* istanbul ignore next */ []);
29
+ this.disabled = input(false, {
30
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
31
+ transform: booleanAttribute
32
+ });
33
+ this.locale = input(void 0, ...ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []);
34
+ this.host = injectHost();
35
+ this.flush = injectFlush();
36
+ this.own = controllable(computed(() => {
37
+ const value = this.value();
38
+ return value === void 0 ? void 0 : toColor(value);
39
+ }), this.valueChange, () => toColor(this.defaultValue() ?? WHITE_HUE), (value, details) => this.valueChangeDetails.emit({
40
+ value,
41
+ details
42
+ }));
43
+ this.picker = injectColorPickerBinding();
44
+ this.bound = computed(() => this.picker !== null && this.value() === void 0 && this.defaultValue() === void 0 ? this.picker : null, ...ngDevMode ? [{ debugName: "bound" }] : /* istanbul ignore next */ []);
45
+ this.current = {
46
+ value: computed(() => {
47
+ const bound = this.bound();
48
+ return bound === null ? this.own.value() : bound.value();
49
+ }),
50
+ set: (next, details) => {
51
+ const bound = untracked(this.bound);
52
+ if (bound === null) {
53
+ this.own.set(next, details);
54
+ return;
55
+ }
56
+ this.valueChange.emit(next);
57
+ this.valueChangeDetails.emit({
58
+ value: next,
59
+ details
60
+ });
61
+ bound.setValue(next, details);
62
+ }
63
+ };
64
+ this.channels = computed(() => colorAreaChannels(this.current.value(), {
65
+ xChannel: this.xChannel(),
66
+ yChannel: this.yChannel(),
67
+ colorSpace: this.colorSpace()
68
+ }), ...ngDevMode ? [{ debugName: "channels" }] : /* istanbul ignore next */ []);
69
+ this.color = computed(() => convertColor(this.current.value(), this.channels().space), ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
70
+ this.xValue = computed(() => getColorChannel(this.color(), this.channels().xChannel), ...ngDevMode ? [{ debugName: "xValue" }] : /* istanbul ignore next */ []);
71
+ this.yValue = computed(() => getColorChannel(this.color(), this.channels().yChannel), ...ngDevMode ? [{ debugName: "yValue" }] : /* istanbul ignore next */ []);
72
+ this.xRange = computed(() => colorChannelRange(this.channels().xChannel), ...ngDevMode ? [{ debugName: "xRange" }] : /* istanbul ignore next */ []);
73
+ this.yRange = computed(() => colorChannelRange(this.channels().yChannel), ...ngDevMode ? [{ debugName: "yRange" }] : /* istanbul ignore next */ []);
74
+ this.dragging = signal(false, ...ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []);
75
+ this.activeAxis = signal("x", ...ngDevMode ? [{ debugName: "activeAxis" }] : /* istanbul ignore next */ []);
76
+ this.inputs = signal({
77
+ x: null,
78
+ y: null
79
+ }, ...ngDevMode ? [{ debugName: "inputs" }] : /* istanbul ignore next */ []);
80
+ this.isDisabled = computed(() => this.disabled() || (this.picker?.disabled() ?? false), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
81
+ this.providedDirection = injectProvidedDirection();
82
+ this.mounted = signal(false, ...ngDevMode ? [{ debugName: "mounted" }] : /* istanbul ignore next */ []);
83
+ this.background = computed(() => {
84
+ const provided = this.providedDirection();
85
+ const rtl = provided !== null ? provided === "rtl" : this.mounted() && getDirection(this.host) === "rtl";
86
+ const { xChannel, yChannel } = this.channels();
87
+ return colorAreaBackground(this.color(), xChannel, yChannel, rtl);
88
+ }, ...ngDevMode ? [{ debugName: "background" }] : /* istanbul ignore next */ []);
89
+ this.state = computed(() => {
90
+ const { xChannel, yChannel } = this.channels();
91
+ return {
92
+ color: this.color(),
93
+ xChannel,
94
+ yChannel,
95
+ disabled: this.isDisabled(),
96
+ dragging: this.dragging()
97
+ };
98
+ }, ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
99
+ this.data = computed(() => {
100
+ const state = this.state();
101
+ return dataValues({
102
+ disabled: state.disabled,
103
+ dragging: state.dragging
104
+ });
105
+ }, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
106
+ this.endDrag = null;
107
+ afterNextRender(() => this.mounted.set(true));
108
+ afterRenderEffect((onCleanup) => {
109
+ const { x, y } = this.inputs();
110
+ const first = x ?? y;
111
+ if (first === null) return;
112
+ onCleanup(bridgeForm(first, { reset: () => {
113
+ if (untracked(this.bound) !== null) {
114
+ this.writeInputs();
115
+ return;
116
+ }
117
+ const next = toColor(untracked(this.defaultValue) ?? WHITE_HUE);
118
+ if (!isSameColor(next, untracked(this.current.value))) this.current.set(next, { reason: "none" });
119
+ this.flush();
120
+ this.writeInputs();
121
+ } }));
122
+ });
123
+ inject(DestroyRef).onDestroy(() => this.endDrag?.());
124
+ }
125
+ setValues(values, reason) {
126
+ const before = untracked(this.color);
127
+ const { xChannel, yChannel } = untracked(this.channels);
128
+ let next = before;
129
+ if (values.x !== void 0) next = setColorChannel(next, xChannel, snapToStep(values.x, colorChannelRange(xChannel)));
130
+ if (values.y !== void 0) next = setColorChannel(next, yChannel, snapToStep(values.y, colorChannelRange(yChannel)));
131
+ if (isSameColor(next, before)) return before;
132
+ this.current.set(next, { reason });
133
+ return next;
134
+ }
135
+ commit(color) {
136
+ const committed = color ?? untracked(this.color);
137
+ this.valueCommit.emit(committed);
138
+ untracked(this.bound)?.commit(committed, { reason: "none" });
139
+ }
140
+ registerInput(axis, element) {
141
+ this.inputs.update((list) => list[axis] === element ? list : {
142
+ ...list,
143
+ [axis]: element
144
+ });
145
+ return () => this.inputs.update((list) => list[axis] === element ? {
146
+ ...list,
147
+ [axis]: null
148
+ } : list);
149
+ }
150
+ writeInputs() {
151
+ const { x, y } = untracked(this.inputs);
152
+ const xValue = String(untracked(this.xValue));
153
+ const yValue = String(untracked(this.yValue));
154
+ if (x !== null && x.value !== xValue) x.value = xValue;
155
+ if (y !== null && y.value !== yValue) y.value = yValue;
156
+ }
157
+ valuesAt(clientX, clientY) {
158
+ const box = this.host.getBoundingClientRect();
159
+ const point = {
160
+ x: clientX,
161
+ y: clientY
162
+ };
163
+ const { xChannel, yChannel } = untracked(this.channels);
164
+ return {
165
+ x: valueAtFraction(fractionAlong(box, point, "horizontal", getDirection(this.host, this.providedDirection()) === "rtl"), colorChannelRange(xChannel)),
166
+ y: valueAtFraction(fractionAlong(box, point, "vertical", false), colorChannelRange(yChannel))
167
+ };
168
+ }
169
+ onPointerDown(event) {
170
+ if (untracked(this.isDisabled) || event.pointerType === "mouse" && event.button !== 0) return;
171
+ event.preventDefault();
172
+ this.setValues(this.valuesAt(event.clientX, event.clientY), "track-press");
173
+ const list = untracked(this.inputs);
174
+ (list[untracked(this.activeAxis)] ?? list.x)?.focus();
175
+ this.dragging.set(true);
176
+ this.flush();
177
+ this.endDrag?.();
178
+ this.endDrag = startDrag(this.host, event, {
179
+ onMove: (move) => {
180
+ this.setValues(this.valuesAt(move.clientX, move.clientY), "drag");
181
+ this.flush();
182
+ },
183
+ onEnd: () => {
184
+ this.endDrag = null;
185
+ this.dragging.set(false);
186
+ this.commit();
187
+ this.flush();
188
+ }
189
+ });
190
+ }
191
+ static {
192
+ this.ɵfac = i0.ɵɵngDeclareFactory({
193
+ minVersion: "12.0.0",
194
+ version: "22.2.6",
195
+ ngImport: i0,
196
+ type: ColorAreaRoot,
197
+ deps: [],
198
+ target: i0.ɵɵFactoryTarget.Directive
199
+ });
200
+ }
201
+ static {
202
+ this.ɵdir = i0.ɵɵngDeclareDirective({
203
+ minVersion: "17.1.0",
204
+ version: "22.2.6",
205
+ type: ColorAreaRoot,
206
+ isStandalone: true,
207
+ selector: "[colorAreaRoot]",
208
+ inputs: {
209
+ value: {
210
+ classPropertyName: "value",
211
+ publicName: "value",
212
+ isSignal: true,
213
+ isRequired: false,
214
+ transformFunction: null
215
+ },
216
+ defaultValue: {
217
+ classPropertyName: "defaultValue",
218
+ publicName: "defaultValue",
219
+ isSignal: true,
220
+ isRequired: false,
221
+ transformFunction: null
222
+ },
223
+ xChannel: {
224
+ classPropertyName: "xChannel",
225
+ publicName: "xChannel",
226
+ isSignal: true,
227
+ isRequired: false,
228
+ transformFunction: null
229
+ },
230
+ yChannel: {
231
+ classPropertyName: "yChannel",
232
+ publicName: "yChannel",
233
+ isSignal: true,
234
+ isRequired: false,
235
+ transformFunction: null
236
+ },
237
+ colorSpace: {
238
+ classPropertyName: "colorSpace",
239
+ publicName: "colorSpace",
240
+ isSignal: true,
241
+ isRequired: false,
242
+ transformFunction: null
243
+ },
244
+ disabled: {
245
+ classPropertyName: "disabled",
246
+ publicName: "disabled",
247
+ isSignal: true,
248
+ isRequired: false,
249
+ transformFunction: null
250
+ },
251
+ locale: {
252
+ classPropertyName: "locale",
253
+ publicName: "locale",
254
+ isSignal: true,
255
+ isRequired: false,
256
+ transformFunction: null
257
+ }
258
+ },
259
+ outputs: {
260
+ valueChange: "valueChange",
261
+ valueChangeDetails: "valueChangeDetails",
262
+ valueCommit: "valueCommit"
263
+ },
264
+ host: {
265
+ attributes: {
266
+ "role": "group",
267
+ "data-primitives-part": "color-area-root"
268
+ },
269
+ listeners: { "pointerdown": "onPointerDown($event)" },
270
+ properties: {
271
+ "attr.data-disabled": "data().disabled",
272
+ "attr.data-dragging": "data().dragging",
273
+ "style.position": "'relative'",
274
+ "style.touch-action": "'none'",
275
+ "style.--color-area-background": "background().backgroundImage",
276
+ "style.--color-area-background-blend-mode": "background().backgroundBlendMode"
277
+ }
278
+ },
279
+ exportAs: ["colorAreaRoot"],
280
+ ngImport: i0
281
+ });
282
+ }
283
+ };
284
+ i0.ɵɵngDeclareClassMetadata({
285
+ minVersion: "12.0.0",
286
+ version: "22.2.6",
287
+ ngImport: i0,
288
+ type: ColorAreaRoot,
289
+ decorators: [{
290
+ type: Directive,
291
+ args: [{
292
+ selector: "[colorAreaRoot]",
293
+ exportAs: "colorAreaRoot",
294
+ host: {
295
+ role: "group",
296
+ "data-primitives-part": "color-area-root",
297
+ "[attr.data-disabled]": "data().disabled",
298
+ "[attr.data-dragging]": "data().dragging",
299
+ "[style.position]": "'relative'",
300
+ "[style.touch-action]": "'none'",
301
+ "[style.--color-area-background]": "background().backgroundImage",
302
+ "[style.--color-area-background-blend-mode]": "background().backgroundBlendMode",
303
+ "(pointerdown)": "onPointerDown($event)"
304
+ }
305
+ }]
306
+ }],
307
+ ctorParameters: () => [],
308
+ propDecorators: {
309
+ value: [{
310
+ type: i0.Input,
311
+ args: [{
312
+ isSignal: true,
313
+ alias: "value",
314
+ required: false
315
+ }]
316
+ }],
317
+ valueChange: [{
318
+ type: i0.Output,
319
+ args: ["valueChange"]
320
+ }],
321
+ defaultValue: [{
322
+ type: i0.Input,
323
+ args: [{
324
+ isSignal: true,
325
+ alias: "defaultValue",
326
+ required: false
327
+ }]
328
+ }],
329
+ valueChangeDetails: [{
330
+ type: i0.Output,
331
+ args: ["valueChangeDetails"]
332
+ }],
333
+ valueCommit: [{
334
+ type: i0.Output,
335
+ args: ["valueCommit"]
336
+ }],
337
+ xChannel: [{
338
+ type: i0.Input,
339
+ args: [{
340
+ isSignal: true,
341
+ alias: "xChannel",
342
+ required: false
343
+ }]
344
+ }],
345
+ yChannel: [{
346
+ type: i0.Input,
347
+ args: [{
348
+ isSignal: true,
349
+ alias: "yChannel",
350
+ required: false
351
+ }]
352
+ }],
353
+ colorSpace: [{
354
+ type: i0.Input,
355
+ args: [{
356
+ isSignal: true,
357
+ alias: "colorSpace",
358
+ required: false
359
+ }]
360
+ }],
361
+ disabled: [{
362
+ type: i0.Input,
363
+ args: [{
364
+ isSignal: true,
365
+ alias: "disabled",
366
+ required: false
367
+ }]
368
+ }],
369
+ locale: [{
370
+ type: i0.Input,
371
+ args: [{
372
+ isSignal: true,
373
+ alias: "locale",
374
+ required: false
375
+ }]
376
+ }]
377
+ }
378
+ });
379
+ const HIDDEN_STYLE = Object.fromEntries(Object.entries(VISUALLY_HIDDEN_INPUT_STYLE).map(([name, value]) => [name.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`), value]));
380
+ var ColorAreaInput = class ColorAreaInput {
381
+ constructor() {
382
+ this.axis = input.required(...ngDevMode ? [{ debugName: "axis" }] : /* istanbul ignore next */ []);
383
+ this.root = inject(ColorAreaRoot);
384
+ this.state = this.root.state;
385
+ this.host = injectHost();
386
+ this.flush = injectFlush();
387
+ this.hiddenStyle = HIDDEN_STYLE;
388
+ this.channel = computed(() => {
389
+ const { xChannel, yChannel } = this.root.channels();
390
+ return this.axis() === "x" ? xChannel : yChannel;
391
+ }, ...ngDevMode ? [{ debugName: "channel" }] : /* istanbul ignore next */ []);
392
+ this.range = computed(() => this.axis() === "x" ? this.root.xRange() : this.root.yRange(), ...ngDevMode ? [{ debugName: "range" }] : /* istanbul ignore next */ []);
393
+ this.channelValue = computed(() => this.axis() === "x" ? this.root.xValue() : this.root.yValue(), ...ngDevMode ? [{ debugName: "channelValue" }] : /* istanbul ignore next */ []);
394
+ this.valueAttribute = computed(() => String(this.channelValue()), ...ngDevMode ? [{ debugName: "valueAttribute" }] : /* istanbul ignore next */ []);
395
+ this.valueText = computed(() => formatColorChannel(this.root.color(), this.channel(), this.root.locale(), this.channelValue()), ...ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []);
396
+ this.data = computed(() => dataValues({
397
+ axis: this.axis(),
398
+ channel: this.channel(),
399
+ disabled: this.root.isDisabled()
400
+ }), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
401
+ effect((onCleanup) => {
402
+ const axis = this.axis();
403
+ onCleanup(untracked(() => this.root.registerInput(axis, this.host)));
404
+ });
405
+ }
406
+ onKeyDown(event) {
407
+ const root = this.root;
408
+ if (root.isDisabled()) return;
409
+ const target = colorAreaKeyTarget(event.key, event.shiftKey, {
410
+ x: root.xValue(),
411
+ y: root.yValue(),
412
+ xRange: root.xRange(),
413
+ yRange: root.yRange(),
414
+ rtl: getDirection(this.host, root.providedDirection()) === "rtl"
415
+ });
416
+ if (target === null) return;
417
+ event.preventDefault();
418
+ root.commit(root.setValues({ [target.axis]: target.value }, "keyboard"));
419
+ if (target.axis !== this.axis()) root.inputs()[target.axis]?.focus();
420
+ this.flush();
421
+ }
422
+ onInput() {
423
+ const root = this.root;
424
+ root.commit(root.setValues({ [this.axis()]: Number(this.host.value) }, "keyboard"));
425
+ this.flush();
426
+ root.writeInputs();
427
+ }
428
+ static {
429
+ this.ɵfac = i0.ɵɵngDeclareFactory({
430
+ minVersion: "12.0.0",
431
+ version: "22.2.6",
432
+ ngImport: i0,
433
+ type: ColorAreaInput,
434
+ deps: [],
435
+ target: i0.ɵɵFactoryTarget.Directive
436
+ });
437
+ }
438
+ static {
439
+ this.ɵdir = i0.ɵɵngDeclareDirective({
440
+ minVersion: "17.1.0",
441
+ version: "22.2.6",
442
+ type: ColorAreaInput,
443
+ isStandalone: true,
444
+ selector: "input[colorAreaInput]",
445
+ inputs: { axis: {
446
+ classPropertyName: "axis",
447
+ publicName: "axis",
448
+ isSignal: true,
449
+ isRequired: true,
450
+ transformFunction: null
451
+ } },
452
+ host: {
453
+ attributes: {
454
+ "type": "range",
455
+ "data-primitives-part": "color-area-input"
456
+ },
457
+ listeners: {
458
+ "keydown": "onKeyDown($event)",
459
+ "input": "onInput()",
460
+ "focus": "root.activeAxis.set(axis())"
461
+ },
462
+ properties: {
463
+ "attr.min": "range().min",
464
+ "attr.max": "range().max",
465
+ "attr.step": "range().step",
466
+ "value": "valueAttribute()",
467
+ "attr.value": "valueAttribute()",
468
+ "attr.aria-valuetext": "valueText()",
469
+ "attr.aria-orientation": "axis() === 'x' ? 'horizontal' : 'vertical'",
470
+ "attr.tabindex": "root.activeAxis() === axis() ? 0 : -1",
471
+ "attr.disabled": "data().disabled",
472
+ "attr.data-axis": "data().axis",
473
+ "attr.data-channel": "data().channel",
474
+ "attr.data-disabled": "data().disabled",
475
+ "style": "hiddenStyle"
476
+ }
477
+ },
478
+ exportAs: ["colorAreaInput"],
479
+ ngImport: i0
480
+ });
481
+ }
482
+ };
483
+ i0.ɵɵngDeclareClassMetadata({
484
+ minVersion: "12.0.0",
485
+ version: "22.2.6",
486
+ ngImport: i0,
487
+ type: ColorAreaInput,
488
+ decorators: [{
489
+ type: Directive,
490
+ args: [{
491
+ selector: "input[colorAreaInput]",
492
+ exportAs: "colorAreaInput",
493
+ host: {
494
+ type: "range",
495
+ "data-primitives-part": "color-area-input",
496
+ "[attr.min]": "range().min",
497
+ "[attr.max]": "range().max",
498
+ "[attr.step]": "range().step",
499
+ "[value]": "valueAttribute()",
500
+ "[attr.value]": "valueAttribute()",
501
+ "[attr.aria-valuetext]": "valueText()",
502
+ "[attr.aria-orientation]": "axis() === 'x' ? 'horizontal' : 'vertical'",
503
+ "[attr.tabindex]": "root.activeAxis() === axis() ? 0 : -1",
504
+ "[attr.disabled]": "data().disabled",
505
+ "[attr.data-axis]": "data().axis",
506
+ "[attr.data-channel]": "data().channel",
507
+ "[attr.data-disabled]": "data().disabled",
508
+ "[style]": "hiddenStyle",
509
+ "(keydown)": "onKeyDown($event)",
510
+ "(input)": "onInput()",
511
+ "(focus)": "root.activeAxis.set(axis())"
512
+ }
513
+ }]
514
+ }],
515
+ ctorParameters: () => [],
516
+ propDecorators: { axis: [{
517
+ type: i0.Input,
518
+ args: [{
519
+ isSignal: true,
520
+ alias: "axis",
521
+ required: true
522
+ }]
523
+ }] }
524
+ });
525
+ var ColorAreaThumb = class ColorAreaThumb {
526
+ constructor() {
527
+ this.root = inject(ColorAreaRoot);
528
+ this.state = this.root.state;
529
+ this.host = injectHost();
530
+ this.mounted = signal(false, ...ngDevMode ? [{ debugName: "mounted" }] : /* istanbul ignore next */ []);
531
+ this.data = computed(() => {
532
+ const state = this.state();
533
+ return dataValues({
534
+ disabled: state.disabled,
535
+ dragging: state.dragging
536
+ });
537
+ }, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
538
+ this.thumbColor = computed(() => formatColor(setColorChannel(this.root.color(), "alpha", 1)), ...ngDevMode ? [{ debugName: "thumbColor" }] : /* istanbul ignore next */ []);
539
+ this.style = computed(() => {
540
+ const root = this.root;
541
+ const xRange = root.xRange();
542
+ const yRange = root.yRange();
543
+ const x = valueToPercent(root.xValue(), xRange.min, xRange.max);
544
+ const y = valueToPercent(root.yValue(), yRange.min, yRange.max);
545
+ const rtl = this.mounted() && getDirection(this.host) === "rtl";
546
+ return {
547
+ position: "absolute",
548
+ "inset-inline-start": `${x}%`,
549
+ "inset-block-end": `${y}%`,
550
+ translate: rtl ? "50% 50%" : "-50% 50%"
551
+ };
552
+ }, ...ngDevMode ? [{ debugName: "style" }] : /* istanbul ignore next */ []);
553
+ afterNextRender(() => this.mounted.set(true));
554
+ }
555
+ static {
556
+ this.ɵfac = i0.ɵɵngDeclareFactory({
557
+ minVersion: "12.0.0",
558
+ version: "22.2.6",
559
+ ngImport: i0,
560
+ type: ColorAreaThumb,
561
+ deps: [],
562
+ target: i0.ɵɵFactoryTarget.Directive
563
+ });
564
+ }
565
+ static {
566
+ this.ɵdir = i0.ɵɵngDeclareDirective({
567
+ minVersion: "14.0.0",
568
+ version: "22.2.6",
569
+ type: ColorAreaThumb,
570
+ isStandalone: true,
571
+ selector: "[colorAreaThumb]",
572
+ host: {
573
+ attributes: { "data-primitives-part": "color-area-thumb" },
574
+ properties: {
575
+ "attr.data-disabled": "data().disabled",
576
+ "attr.data-dragging": "data().dragging",
577
+ "style": "style()",
578
+ "style.--color-area-thumb-color": "thumbColor()"
579
+ }
580
+ },
581
+ exportAs: ["colorAreaThumb"],
582
+ ngImport: i0
583
+ });
584
+ }
585
+ };
586
+ i0.ɵɵngDeclareClassMetadata({
587
+ minVersion: "12.0.0",
588
+ version: "22.2.6",
589
+ ngImport: i0,
590
+ type: ColorAreaThumb,
591
+ decorators: [{
592
+ type: Directive,
593
+ args: [{
594
+ selector: "[colorAreaThumb]",
595
+ exportAs: "colorAreaThumb",
596
+ host: {
597
+ "data-primitives-part": "color-area-thumb",
598
+ "[attr.data-disabled]": "data().disabled",
599
+ "[attr.data-dragging]": "data().dragging",
600
+ "[style]": "style()",
601
+ "[style.--color-area-thumb-color]": "thumbColor()"
602
+ }
603
+ }]
604
+ }],
605
+ ctorParameters: () => []
606
+ });
607
+ export { ColorAreaInput, ColorAreaRoot, ColorAreaThumb };
608
+
609
+ //# sourceMappingURL=fragiola-primitives-angular-color-area.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fragiola-primitives-angular-color-area.mjs","names":[],"sources":["../../color-area/directives/color-area-root.directive.ts","../../color-area/directives/color-area-input.directive.ts","../../color-area/directives/color-area-thumb.directive.ts"],"sourcesContent":["import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n DestroyRef,\n Directive,\n inject,\n input,\n output,\n signal,\n untracked,\n} from \"@angular/core\";\nimport {\n type Color,\n type ColorChannel,\n type ColorSpace,\n colorAreaBackground,\n colorAreaChannels,\n colorChannelRange,\n convertColor,\n getColorChannel,\n isSameColor,\n parseColor,\n setColorChannel,\n} from \"@fragiola/primitives/color\";\nimport { getDirection } from \"@fragiola/primitives/direction\";\nimport { bridgeForm } from \"@fragiola/primitives/form\";\nimport { startDrag } from \"@fragiola/primitives/pointer\";\nimport {\n fractionAlong,\n snapToStep,\n valueAtFraction,\n} from \"@fragiola/primitives/range\";\nimport {\n type ChangeDetails,\n type ChangeReason,\n controllable,\n dataValues,\n injectColorPickerBinding,\n injectFlush,\n injectHost,\n injectProvidedDirection,\n type ValueChangeEvent,\n} from \"@fragiola/primitives-angular/internal\";\n\n/** A ColorArea Input's axis. */\nexport type ColorAreaAxis = \"x\" | \"y\";\n\n/** The state every color area part shares. */\nexport interface ColorAreaState {\n /** The value, in the area's space. */\n color: Color;\n xChannel: ColorChannel;\n yChannel: ColorChannel;\n disabled: boolean;\n dragging: boolean;\n}\n\nconst WHITE_HUE: Color = {\n space: \"hsb\",\n hue: 0,\n saturation: 100,\n brightness: 100,\n alpha: 1,\n};\n\n/** A `Color`, or a string `parseColor` reads (the default when it reads none). */\nfunction toColor(value: Color | string): Color {\n return parseColor(value) ?? WHITE_HUE;\n}\n\n/**\n * Holds a color area's value: the `group` the consumer names, the interactive area and its\n * background (spec/color-area.md: two APG sliders, one native range input per axis):\n * `<div colorAreaRoot aria-label=\"Color\" [(value)]=\"color\">` around its Thumb and the consumer's\n * two `<input colorAreaInput axis=\"x\">` and `axis=\"y\"`.\n */\n@Directive({\n selector: \"[colorAreaRoot]\",\n exportAs: \"colorAreaRoot\",\n host: {\n role: \"group\",\n \"data-primitives-part\": \"color-area-root\",\n \"[attr.data-disabled]\": \"data().disabled\",\n \"[attr.data-dragging]\": \"data().dragging\",\n // structural: the thumb's box, no page scroll under a touch drag, the background a recipe\n // draws\n \"[style.position]\": \"'relative'\",\n \"[style.touch-action]\": \"'none'\",\n \"[style.--color-area-background]\": \"background().backgroundImage\",\n \"[style.--color-area-background-blend-mode]\":\n \"background().backgroundBlendMode\",\n \"(pointerdown)\": \"onPointerDown($event)\",\n },\n})\nexport class ColorAreaRoot {\n /** A `Color`, or a string `parseColor` reads; bound, the area is controlled. */\n readonly value = input<Color | string | undefined>(undefined);\n readonly valueChange = output<Color>();\n readonly defaultValue = input<Color | string | undefined>(undefined);\n readonly valueChangeDetails = output<ValueChangeEvent<Color>>();\n /** When a drag ends, or after a key changed the value. */\n readonly valueCommit = output<Color>();\n readonly xChannel = input<ColorChannel | undefined>(undefined);\n readonly yChannel = input<ColorChannel | undefined>(undefined);\n readonly colorSpace = input<ColorSpace | undefined>(undefined);\n readonly disabled = input(false, { transform: booleanAttribute });\n /** The locale of the channels' text (BCP 47; default: the runtime's). */\n readonly locale = input<string | undefined>(undefined);\n\n private readonly host = injectHost();\n private readonly flush = injectFlush();\n private readonly own = controllable<Color, ChangeDetails>(\n computed(() => {\n const value = this.value();\n return value === undefined ? undefined : toColor(value);\n }),\n this.valueChange,\n () => toColor(this.defaultValue() ?? WHITE_HUE),\n (value, details) => this.valueChangeDetails.emit({ value, details }),\n );\n\n /** The enclosing ColorPicker's binding (spec/color-picker.md, \"Sharing the color\"). */\n private readonly picker = injectColorPickerBinding();\n /** Bound to the picker's color: inside one, with neither `value` nor `defaultValue`. */\n private readonly bound = computed(() =>\n this.picker !== null &&\n this.value() === undefined &&\n this.defaultValue() === undefined\n ? this.picker\n : null,\n );\n /** The value: the picker's when bound, else its own. */\n private readonly current = {\n value: computed(() => {\n const bound = this.bound();\n return bound === null ? this.own.value() : bound.value();\n }),\n set: (next: Color, details: ChangeDetails) => {\n const bound = untracked(this.bound);\n if (bound === null) {\n this.own.set(next, details);\n return;\n }\n this.valueChange.emit(next);\n this.valueChangeDetails.emit({ value: next, details });\n bound.setValue(next, details);\n },\n };\n /** The space and the channels of the two axes (`colorAreaChannels`). */\n readonly channels = computed(() =>\n colorAreaChannels(this.current.value(), {\n xChannel: this.xChannel(),\n yChannel: this.yChannel(),\n colorSpace: this.colorSpace(),\n }),\n );\n /** The value, in the area's space. */\n readonly color = computed(() =>\n convertColor(this.current.value(), this.channels().space),\n );\n readonly xValue = computed(() =>\n getColorChannel(this.color(), this.channels().xChannel),\n );\n readonly yValue = computed(() =>\n getColorChannel(this.color(), this.channels().yChannel),\n );\n readonly xRange = computed(() =>\n colorChannelRange(this.channels().xChannel),\n );\n readonly yRange = computed(() =>\n colorChannelRange(this.channels().yChannel),\n );\n readonly dragging = signal(false);\n /** The axis whose Input is the tab stop (the last focused, x at first). */\n readonly activeAxis = signal<ColorAreaAxis>(\"x\");\n /** The Inputs, by axis, while they are rendered. */\n readonly inputs = signal<\n Readonly<Record<ColorAreaAxis, HTMLInputElement | null>>\n >({ x: null, y: null });\n readonly isDisabled = computed(\n () => this.disabled() || (this.picker?.disabled() ?? false),\n );\n /** A DirectionProvider's direction, else `null` (the computed one is read). */\n readonly providedDirection = injectProvidedDirection();\n /** Rendered in the browser: the computed direction can be read (React reads it once mounted). */\n private readonly mounted = signal(false);\n protected readonly background = computed(() => {\n const provided = this.providedDirection();\n const rtl =\n provided !== null\n ? provided === \"rtl\"\n : this.mounted() && getDirection(this.host) === \"rtl\";\n const { xChannel, yChannel } = this.channels();\n return colorAreaBackground(this.color(), xChannel, yChannel, rtl);\n });\n readonly state = computed<ColorAreaState>(() => {\n const { xChannel, yChannel } = this.channels();\n return {\n color: this.color(),\n xChannel,\n yChannel,\n disabled: this.isDisabled(),\n dragging: this.dragging(),\n };\n });\n protected readonly data = computed(() => {\n const state = this.state();\n return dataValues({\n disabled: state.disabled,\n dragging: state.dragging,\n });\n });\n private endDrag: (() => void) | null = null;\n\n constructor() {\n afterNextRender(() => this.mounted.set(true));\n // a form reset returns the area to its default (spec/color-area.md, \"Forms\"), through the\n // first Input\n afterRenderEffect((onCleanup) => {\n const { x, y } = this.inputs();\n const first = x ?? y;\n if (first === null) {\n return;\n }\n const stop = bridgeForm(first, {\n reset: () => {\n // a bound control is reset by its picker\n if (untracked(this.bound) !== null) {\n this.writeInputs();\n return;\n }\n const next = toColor(\n untracked(this.defaultValue) ?? WHITE_HUE,\n );\n if (!isSameColor(next, untracked(this.current.value))) {\n this.current.set(next, { reason: \"none\" });\n }\n this.flush();\n // the browser reset the inputs after the state: write the state back\n this.writeInputs();\n },\n });\n onCleanup(stop);\n });\n inject(DestroyRef).onDestroy(() => this.endDrag?.());\n }\n\n /** Sets the axes given (snapped, clamped), reports the change, returns the color. */\n setValues(values: { x?: number; y?: number }, reason: ChangeReason): Color {\n const before = untracked(this.color);\n const { xChannel, yChannel } = untracked(this.channels);\n let next = before;\n if (values.x !== undefined) {\n next = setColorChannel(\n next,\n xChannel,\n snapToStep(values.x, colorChannelRange(xChannel)),\n );\n }\n if (values.y !== undefined) {\n next = setColorChannel(\n next,\n yChannel,\n snapToStep(values.y, colorChannelRange(yChannel)),\n );\n }\n if (isSameColor(next, before)) {\n return before;\n }\n this.current.set(next, { reason });\n return next;\n }\n\n /** Reports the color (default: the current one) as committed. */\n commit(color?: Color): void {\n const committed = color ?? untracked(this.color);\n this.valueCommit.emit(committed);\n untracked(this.bound)?.commit(committed, { reason: \"none\" });\n }\n\n /** Registers an axis's Input; returns its unregistration. */\n registerInput(axis: ColorAreaAxis, element: HTMLInputElement): () => void {\n this.inputs.update((list) =>\n list[axis] === element ? list : { ...list, [axis]: element },\n );\n return () =>\n this.inputs.update((list) =>\n list[axis] === element ? { ...list, [axis]: null } : list,\n );\n }\n\n /** Writes each Input's value from the state (after the browser changed it). */\n writeInputs(): void {\n const { x, y } = untracked(this.inputs);\n const xValue = String(untracked(this.xValue));\n const yValue = String(untracked(this.yValue));\n if (x !== null && x.value !== xValue) {\n x.value = xValue;\n }\n if (y !== null && y.value !== yValue) {\n y.value = yValue;\n }\n }\n\n private valuesAt(\n clientX: number,\n clientY: number,\n ): { x: number; y: number } {\n const box = this.host.getBoundingClientRect();\n const point = { x: clientX, y: clientY };\n const { xChannel, yChannel } = untracked(this.channels);\n return {\n x: valueAtFraction(\n fractionAlong(\n box,\n point,\n \"horizontal\",\n getDirection(this.host, this.providedDirection()) === \"rtl\",\n ),\n colorChannelRange(xChannel),\n ),\n y: valueAtFraction(\n fractionAlong(box, point, \"vertical\", false),\n colorChannelRange(yChannel),\n ),\n };\n }\n\n protected onPointerDown(event: PointerEvent): void {\n if (\n untracked(this.isDisabled) ||\n (event.pointerType === \"mouse\" && event.button !== 0)\n ) {\n return;\n }\n event.preventDefault();\n this.setValues(\n this.valuesAt(event.clientX, event.clientY),\n \"track-press\",\n );\n const list = untracked(this.inputs);\n (list[untracked(this.activeAxis)] ?? list.x)?.focus();\n this.dragging.set(true);\n this.flush();\n this.endDrag?.();\n this.endDrag = startDrag(this.host, event, {\n onMove: (move) => {\n this.setValues(\n this.valuesAt(move.clientX, move.clientY),\n \"drag\",\n );\n this.flush();\n },\n onEnd: () => {\n this.endDrag = null;\n this.dragging.set(false);\n this.commit();\n this.flush();\n },\n });\n }\n}\n","import {\n computed,\n Directive,\n effect,\n inject,\n input,\n untracked,\n} from \"@angular/core\";\nimport {\n colorAreaKeyTarget,\n formatColorChannel,\n} from \"@fragiola/primitives/color\";\nimport { getDirection } from \"@fragiola/primitives/direction\";\nimport { VISUALLY_HIDDEN_INPUT_STYLE } from \"@fragiola/primitives/form\";\nimport {\n dataValues,\n injectFlush,\n injectHost,\n} from \"@fragiola/primitives-angular/internal\";\nimport {\n type ColorAreaAxis,\n ColorAreaRoot,\n} from \"./color-area-root.directive.ts\";\n\n/** The toolkit's visually hidden style, as a host style map (dash-case properties). */\nconst HIDDEN_STYLE: Record<string, string> = Object.fromEntries(\n Object.entries(VISUALLY_HIDDEN_INPUT_STYLE).map(([name, value]) => [\n name.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`),\n value,\n ]),\n);\n\n/**\n * One axis's `slider` (spec/color-area.md): the consumer's own native range input, visually\n * hidden in the Thumb: `<input colorAreaInput axis=\"x\" name=\"saturation\" aria-label=\"Saturation\">`.\n * Every key moves the axis it names, and the focus follows it (\"Keyboard\").\n */\n@Directive({\n selector: \"input[colorAreaInput]\",\n exportAs: \"colorAreaInput\",\n host: {\n type: \"range\",\n \"data-primitives-part\": \"color-area-input\",\n // the bounds before the value: a range input clamps its value to them\n \"[attr.min]\": \"range().min\",\n \"[attr.max]\": \"range().max\",\n \"[attr.step]\": \"range().step\",\n \"[value]\": \"valueAttribute()\",\n // the attribute follows the value, as React's controlled input: a server render writes\n // it, and a form reset restores the rendered value\n \"[attr.value]\": \"valueAttribute()\",\n \"[attr.aria-valuetext]\": \"valueText()\",\n \"[attr.aria-orientation]\": \"axis() === 'x' ? 'horizontal' : 'vertical'\",\n \"[attr.tabindex]\": \"root.activeAxis() === axis() ? 0 : -1\",\n \"[attr.disabled]\": \"data().disabled\",\n \"[attr.data-axis]\": \"data().axis\",\n \"[attr.data-channel]\": \"data().channel\",\n \"[attr.data-disabled]\": \"data().disabled\",\n // structural: visually hidden (its `pointer-events: none`)\n \"[style]\": \"hiddenStyle\",\n \"(keydown)\": \"onKeyDown($event)\",\n \"(input)\": \"onInput()\",\n \"(focus)\": \"root.activeAxis.set(axis())\",\n },\n})\nexport class ColorAreaInput {\n /** The axis this slider is: `x` or `y`. */\n readonly axis = input.required<ColorAreaAxis>();\n protected readonly root = inject(ColorAreaRoot);\n readonly state = this.root.state;\n private readonly host = injectHost<HTMLInputElement>();\n private readonly flush = injectFlush();\n protected readonly hiddenStyle = HIDDEN_STYLE;\n private readonly channel = computed(() => {\n const { xChannel, yChannel } = this.root.channels();\n return this.axis() === \"x\" ? xChannel : yChannel;\n });\n protected readonly range = computed(() =>\n this.axis() === \"x\" ? this.root.xRange() : this.root.yRange(),\n );\n private readonly channelValue = computed(() =>\n this.axis() === \"x\" ? this.root.xValue() : this.root.yValue(),\n );\n protected readonly valueAttribute = computed(() =>\n String(this.channelValue()),\n );\n protected readonly valueText = computed(() =>\n formatColorChannel(\n this.root.color(),\n this.channel(),\n this.root.locale(),\n this.channelValue(),\n ),\n );\n protected readonly data = computed(() =>\n dataValues({\n axis: this.axis(),\n channel: this.channel(),\n disabled: this.root.isDisabled(),\n }),\n );\n\n constructor() {\n effect((onCleanup) => {\n const axis = this.axis();\n onCleanup(\n untracked(() => this.root.registerInput(axis, this.host)),\n );\n });\n }\n\n protected onKeyDown(event: KeyboardEvent): void {\n const root = this.root;\n if (root.isDisabled()) {\n return;\n }\n const target = colorAreaKeyTarget(event.key, event.shiftKey, {\n x: root.xValue(),\n y: root.yValue(),\n xRange: root.xRange(),\n yRange: root.yRange(),\n rtl: getDirection(this.host, root.providedDirection()) === \"rtl\",\n });\n if (target === null) {\n return;\n }\n // the native range keys never run\n event.preventDefault();\n root.commit(\n root.setValues({ [target.axis]: target.value }, \"keyboard\"),\n );\n if (target.axis !== this.axis()) {\n // the focus follows the axis the key moved\n root.inputs()[target.axis]?.focus();\n }\n // the new values and tab stop before the next key\n this.flush();\n }\n\n /** An assistive technology's own change of the slider. */\n protected onInput(): void {\n const root = this.root;\n root.commit(\n root.setValues(\n { [this.axis()]: Number(this.host.value) },\n \"keyboard\",\n ),\n );\n this.flush();\n // a value the consumer kept does not re-run the binding: put the state's back\n root.writeInputs();\n }\n}\n","import {\n afterNextRender,\n computed,\n Directive,\n inject,\n signal,\n} from \"@angular/core\";\nimport { formatColor, setColorChannel } from \"@fragiola/primitives/color\";\nimport { getDirection } from \"@fragiola/primitives/direction\";\nimport { valueToPercent } from \"@fragiola/primitives/range\";\nimport { dataValues, injectHost } from \"@fragiola/primitives-angular/internal\";\nimport { ColorAreaRoot } from \"./color-area-root.directive.ts\";\n\n/** Marks the area's point and holds its Inputs (spec/color-area.md): `<div colorAreaThumb>`. */\n@Directive({\n selector: \"[colorAreaThumb]\",\n exportAs: \"colorAreaThumb\",\n host: {\n \"data-primitives-part\": \"color-area-thumb\",\n \"[attr.data-disabled]\": \"data().disabled\",\n \"[attr.data-dragging]\": \"data().dragging\",\n // structural: its centre on the point, and its color for the recipe\n \"[style]\": \"style()\",\n \"[style.--color-area-thumb-color]\": \"thumbColor()\",\n },\n})\nexport class ColorAreaThumb {\n private readonly root = inject(ColorAreaRoot);\n readonly state = this.root.state;\n private readonly host = injectHost();\n /** Rendered in the browser: the computed direction can be read (React reads it once mounted). */\n private readonly mounted = signal(false);\n protected readonly data = computed(() => {\n const state = this.state();\n return dataValues({\n disabled: state.disabled,\n dragging: state.dragging,\n });\n });\n protected readonly thumbColor = computed(() =>\n formatColor(setColorChannel(this.root.color(), \"alpha\", 1)),\n );\n protected readonly style = computed(() => {\n const root = this.root;\n const xRange = root.xRange();\n const yRange = root.yRange();\n const x = valueToPercent(root.xValue(), xRange.min, xRange.max);\n const y = valueToPercent(root.yValue(), yRange.min, yRange.max);\n // the centring translate is physical: the layout's (computed) direction (Slider's Thumb)\n const rtl = this.mounted() && getDirection(this.host) === \"rtl\";\n return {\n position: \"absolute\",\n \"inset-inline-start\": `${x}%`,\n \"inset-block-end\": `${y}%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