@fragiola/primitives-angular 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/LICENSE +21 -0
  3. package/README.md +54 -2
  4. package/fesm2022/fragiola-primitives-angular-accordion.mjs +567 -0
  5. package/fesm2022/fragiola-primitives-angular-accordion.mjs.map +1 -0
  6. package/fesm2022/fragiola-primitives-angular-alert-dialog.mjs +562 -0
  7. package/fesm2022/fragiola-primitives-angular-alert-dialog.mjs.map +1 -0
  8. package/fesm2022/fragiola-primitives-angular-aspect-ratio.mjs +79 -0
  9. package/fesm2022/fragiola-primitives-angular-aspect-ratio.mjs.map +1 -0
  10. package/fesm2022/fragiola-primitives-angular-async-list.mjs +44 -0
  11. package/fesm2022/fragiola-primitives-angular-async-list.mjs.map +1 -0
  12. package/fesm2022/fragiola-primitives-angular-autocomplete-virtual.mjs +243 -0
  13. package/fesm2022/fragiola-primitives-angular-autocomplete-virtual.mjs.map +1 -0
  14. package/fesm2022/fragiola-primitives-angular-autocomplete.mjs +1751 -0
  15. package/fesm2022/fragiola-primitives-angular-autocomplete.mjs.map +1 -0
  16. package/fesm2022/fragiola-primitives-angular-avatar.mjs +308 -0
  17. package/fesm2022/fragiola-primitives-angular-avatar.mjs.map +1 -0
  18. package/fesm2022/fragiola-primitives-angular-breadcrumbs.mjs +355 -0
  19. package/fesm2022/fragiola-primitives-angular-breadcrumbs.mjs.map +1 -0
  20. package/fesm2022/fragiola-primitives-angular-button.mjs +156 -0
  21. package/fesm2022/fragiola-primitives-angular-button.mjs.map +1 -0
  22. package/fesm2022/fragiola-primitives-angular-calendar-preset.mjs +126 -0
  23. package/fesm2022/fragiola-primitives-angular-calendar-preset.mjs.map +1 -0
  24. package/fesm2022/fragiola-primitives-angular-calendar-view.mjs +289 -0
  25. package/fesm2022/fragiola-primitives-angular-calendar-view.mjs.map +1 -0
  26. package/fesm2022/fragiola-primitives-angular-calendar.mjs +1222 -0
  27. package/fesm2022/fragiola-primitives-angular-calendar.mjs.map +1 -0
  28. package/fesm2022/fragiola-primitives-angular-carousel.mjs +1031 -0
  29. package/fesm2022/fragiola-primitives-angular-carousel.mjs.map +1 -0
  30. package/fesm2022/fragiola-primitives-angular-cascade-select.mjs +1391 -0
  31. package/fesm2022/fragiola-primitives-angular-cascade-select.mjs.map +1 -0
  32. package/fesm2022/fragiola-primitives-angular-checkbox-group.mjs +221 -0
  33. package/fesm2022/fragiola-primitives-angular-checkbox-group.mjs.map +1 -0
  34. package/fesm2022/fragiola-primitives-angular-checkbox.mjs +474 -0
  35. package/fesm2022/fragiola-primitives-angular-checkbox.mjs.map +1 -0
  36. package/fesm2022/fragiola-primitives-angular-clipboard.mjs +389 -0
  37. package/fesm2022/fragiola-primitives-angular-clipboard.mjs.map +1 -0
  38. package/fesm2022/fragiola-primitives-angular-collapsible.mjs +314 -0
  39. package/fesm2022/fragiola-primitives-angular-collapsible.mjs.map +1 -0
  40. package/fesm2022/fragiola-primitives-angular-color-area.mjs +609 -0
  41. package/fesm2022/fragiola-primitives-angular-color-area.mjs.map +1 -0
  42. package/fesm2022/fragiola-primitives-angular-color-field.mjs +675 -0
  43. package/fesm2022/fragiola-primitives-angular-color-field.mjs.map +1 -0
  44. package/fesm2022/fragiola-primitives-angular-color-picker-popover.mjs +572 -0
  45. package/fesm2022/fragiola-primitives-angular-color-picker-popover.mjs.map +1 -0
  46. package/fesm2022/fragiola-primitives-angular-color-picker.mjs +528 -0
  47. package/fesm2022/fragiola-primitives-angular-color-picker.mjs.map +1 -0
  48. package/fesm2022/fragiola-primitives-angular-color-slider.mjs +868 -0
  49. package/fesm2022/fragiola-primitives-angular-color-slider.mjs.map +1 -0
  50. package/fesm2022/fragiola-primitives-angular-color-swatch-picker.mjs +503 -0
  51. package/fesm2022/fragiola-primitives-angular-color-swatch-picker.mjs.map +1 -0
  52. package/fesm2022/fragiola-primitives-angular-color-swatch.mjs +141 -0
  53. package/fesm2022/fragiola-primitives-angular-color-swatch.mjs.map +1 -0
  54. package/fesm2022/fragiola-primitives-angular-color-wheel.mjs +554 -0
  55. package/fesm2022/fragiola-primitives-angular-color-wheel.mjs.map +1 -0
  56. package/fesm2022/fragiola-primitives-angular-combobox-virtual.mjs +247 -0
  57. package/fesm2022/fragiola-primitives-angular-combobox-virtual.mjs.map +1 -0
  58. package/fesm2022/fragiola-primitives-angular-combobox.mjs +2083 -0
  59. package/fesm2022/fragiola-primitives-angular-combobox.mjs.map +1 -0
  60. package/fesm2022/fragiola-primitives-angular-command-virtual.mjs +263 -0
  61. package/fesm2022/fragiola-primitives-angular-command-virtual.mjs.map +1 -0
  62. package/fesm2022/fragiola-primitives-angular-command.mjs +977 -0
  63. package/fesm2022/fragiola-primitives-angular-command.mjs.map +1 -0
  64. package/fesm2022/fragiola-primitives-angular-context-menu.mjs +1012 -0
  65. package/fesm2022/fragiola-primitives-angular-context-menu.mjs.map +1 -0
  66. package/fesm2022/fragiola-primitives-angular-date-field.mjs +1030 -0
  67. package/fesm2022/fragiola-primitives-angular-date-field.mjs.map +1 -0
  68. package/fesm2022/fragiola-primitives-angular-date-picker-input.mjs +511 -0
  69. package/fesm2022/fragiola-primitives-angular-date-picker-input.mjs.map +1 -0
  70. package/fesm2022/fragiola-primitives-angular-date-picker.mjs +991 -0
  71. package/fesm2022/fragiola-primitives-angular-date-picker.mjs.map +1 -0
  72. package/fesm2022/fragiola-primitives-angular-date-range-field.mjs +847 -0
  73. package/fesm2022/fragiola-primitives-angular-date-range-field.mjs.map +1 -0
  74. package/fesm2022/fragiola-primitives-angular-date-range-picker-input.mjs +260 -0
  75. package/fesm2022/fragiola-primitives-angular-date-range-picker-input.mjs.map +1 -0
  76. package/fesm2022/fragiola-primitives-angular-date-range-picker.mjs +128 -0
  77. package/fesm2022/fragiola-primitives-angular-date-range-picker.mjs.map +1 -0
  78. package/fesm2022/fragiola-primitives-angular-dialog.mjs +1076 -0
  79. package/fesm2022/fragiola-primitives-angular-dialog.mjs.map +1 -0
  80. package/fesm2022/fragiola-primitives-angular-direction.mjs +82 -0
  81. package/fesm2022/fragiola-primitives-angular-direction.mjs.map +1 -0
  82. package/fesm2022/fragiola-primitives-angular-drawer.mjs +890 -0
  83. package/fesm2022/fragiola-primitives-angular-drawer.mjs.map +1 -0
  84. package/fesm2022/fragiola-primitives-angular-drop-zone.mjs +189 -0
  85. package/fesm2022/fragiola-primitives-angular-drop-zone.mjs.map +1 -0
  86. package/fesm2022/fragiola-primitives-angular-editable.mjs +955 -0
  87. package/fesm2022/fragiola-primitives-angular-editable.mjs.map +1 -0
  88. package/fesm2022/fragiola-primitives-angular-field.mjs +929 -0
  89. package/fesm2022/fragiola-primitives-angular-field.mjs.map +1 -0
  90. package/fesm2022/fragiola-primitives-angular-fieldset.mjs +164 -0
  91. package/fesm2022/fragiola-primitives-angular-fieldset.mjs.map +1 -0
  92. package/fesm2022/fragiola-primitives-angular-file-upload.mjs +1370 -0
  93. package/fesm2022/fragiola-primitives-angular-file-upload.mjs.map +1 -0
  94. package/fesm2022/fragiola-primitives-angular-form.mjs +162 -0
  95. package/fesm2022/fragiola-primitives-angular-form.mjs.map +1 -0
  96. package/fesm2022/fragiola-primitives-angular-hover-card.mjs +906 -0
  97. package/fesm2022/fragiola-primitives-angular-hover-card.mjs.map +1 -0
  98. package/fesm2022/fragiola-primitives-angular-internal.mjs +980 -0
  99. package/fesm2022/fragiola-primitives-angular-internal.mjs.map +1 -0
  100. package/fesm2022/fragiola-primitives-angular-label.mjs +65 -0
  101. package/fesm2022/fragiola-primitives-angular-label.mjs.map +1 -0
  102. package/fesm2022/fragiola-primitives-angular-link.mjs +109 -0
  103. package/fesm2022/fragiola-primitives-angular-link.mjs.map +1 -0
  104. package/fesm2022/fragiola-primitives-angular-listbox-virtual.mjs +657 -0
  105. package/fesm2022/fragiola-primitives-angular-listbox-virtual.mjs.map +1 -0
  106. package/fesm2022/fragiola-primitives-angular-listbox.mjs +851 -0
  107. package/fesm2022/fragiola-primitives-angular-listbox.mjs.map +1 -0
  108. package/fesm2022/fragiola-primitives-angular-menu.mjs +2258 -0
  109. package/fesm2022/fragiola-primitives-angular-menu.mjs.map +1 -0
  110. package/fesm2022/fragiola-primitives-angular-menubar.mjs +303 -0
  111. package/fesm2022/fragiola-primitives-angular-menubar.mjs.map +1 -0
  112. package/fesm2022/fragiola-primitives-angular-meter.mjs +410 -0
  113. package/fesm2022/fragiola-primitives-angular-meter.mjs.map +1 -0
  114. package/fesm2022/fragiola-primitives-angular-month-calendar.mjs +1066 -0
  115. package/fesm2022/fragiola-primitives-angular-month-calendar.mjs.map +1 -0
  116. package/fesm2022/fragiola-primitives-angular-month-picker.mjs +514 -0
  117. package/fesm2022/fragiola-primitives-angular-month-picker.mjs.map +1 -0
  118. package/fesm2022/fragiola-primitives-angular-month-range-calendar.mjs +163 -0
  119. package/fesm2022/fragiola-primitives-angular-month-range-calendar.mjs.map +1 -0
  120. package/fesm2022/fragiola-primitives-angular-month-range-picker.mjs +177 -0
  121. package/fesm2022/fragiola-primitives-angular-month-range-picker.mjs.map +1 -0
  122. package/fesm2022/fragiola-primitives-angular-multiple-calendar.mjs +216 -0
  123. package/fesm2022/fragiola-primitives-angular-multiple-calendar.mjs.map +1 -0
  124. package/fesm2022/fragiola-primitives-angular-navigation-menu.mjs +1413 -0
  125. package/fesm2022/fragiola-primitives-angular-navigation-menu.mjs.map +1 -0
  126. package/fesm2022/fragiola-primitives-angular-number-field.mjs +1210 -0
  127. package/fesm2022/fragiola-primitives-angular-number-field.mjs.map +1 -0
  128. package/fesm2022/fragiola-primitives-angular-otp-field.mjs +751 -0
  129. package/fesm2022/fragiola-primitives-angular-otp-field.mjs.map +1 -0
  130. package/fesm2022/fragiola-primitives-angular-pagination.mjs +758 -0
  131. package/fesm2022/fragiola-primitives-angular-pagination.mjs.map +1 -0
  132. package/fesm2022/fragiola-primitives-angular-password-input.mjs +542 -0
  133. package/fesm2022/fragiola-primitives-angular-password-input.mjs.map +1 -0
  134. package/fesm2022/fragiola-primitives-angular-popover.mjs +1011 -0
  135. package/fesm2022/fragiola-primitives-angular-popover.mjs.map +1 -0
  136. package/fesm2022/fragiola-primitives-angular-progress.mjs +472 -0
  137. package/fesm2022/fragiola-primitives-angular-progress.mjs.map +1 -0
  138. package/fesm2022/fragiola-primitives-angular-radio-group.mjs +321 -0
  139. package/fesm2022/fragiola-primitives-angular-radio-group.mjs.map +1 -0
  140. package/fesm2022/fragiola-primitives-angular-radio.mjs +273 -0
  141. package/fesm2022/fragiola-primitives-angular-radio.mjs.map +1 -0
  142. package/fesm2022/fragiola-primitives-angular-range-calendar.mjs +108 -0
  143. package/fesm2022/fragiola-primitives-angular-range-calendar.mjs.map +1 -0
  144. package/fesm2022/fragiola-primitives-angular-rating.mjs +643 -0
  145. package/fesm2022/fragiola-primitives-angular-rating.mjs.map +1 -0
  146. package/fesm2022/fragiola-primitives-angular-render.mjs +1 -0
  147. package/fesm2022/fragiola-primitives-angular-scroll-area.mjs +553 -0
  148. package/fesm2022/fragiola-primitives-angular-scroll-area.mjs.map +1 -0
  149. package/fesm2022/fragiola-primitives-angular-search-field.mjs +487 -0
  150. package/fesm2022/fragiola-primitives-angular-search-field.mjs.map +1 -0
  151. package/fesm2022/fragiola-primitives-angular-segmented-control.mjs +762 -0
  152. package/fesm2022/fragiola-primitives-angular-segmented-control.mjs.map +1 -0
  153. package/fesm2022/fragiola-primitives-angular-select-virtual.mjs +246 -0
  154. package/fesm2022/fragiola-primitives-angular-select-virtual.mjs.map +1 -0
  155. package/fesm2022/fragiola-primitives-angular-select.mjs +1433 -0
  156. package/fesm2022/fragiola-primitives-angular-select.mjs.map +1 -0
  157. package/fesm2022/fragiola-primitives-angular-separator.mjs +102 -0
  158. package/fesm2022/fragiola-primitives-angular-separator.mjs.map +1 -0
  159. package/fesm2022/fragiola-primitives-angular-slider.mjs +1090 -0
  160. package/fesm2022/fragiola-primitives-angular-slider.mjs.map +1 -0
  161. package/fesm2022/fragiola-primitives-angular-steps.mjs +819 -0
  162. package/fesm2022/fragiola-primitives-angular-steps.mjs.map +1 -0
  163. package/fesm2022/fragiola-primitives-angular-switch.mjs +422 -0
  164. package/fesm2022/fragiola-primitives-angular-switch.mjs.map +1 -0
  165. package/fesm2022/fragiola-primitives-angular-tabs.mjs +726 -0
  166. package/fesm2022/fragiola-primitives-angular-tabs.mjs.map +1 -0
  167. package/fesm2022/fragiola-primitives-angular-tag-group.mjs +768 -0
  168. package/fesm2022/fragiola-primitives-angular-tag-group.mjs.map +1 -0
  169. package/fesm2022/fragiola-primitives-angular-tags-input.mjs +1126 -0
  170. package/fesm2022/fragiola-primitives-angular-tags-input.mjs.map +1 -0
  171. package/fesm2022/fragiola-primitives-angular-time-field.mjs +187 -0
  172. package/fesm2022/fragiola-primitives-angular-time-field.mjs.map +1 -0
  173. package/fesm2022/fragiola-primitives-angular-time-range-field.mjs +188 -0
  174. package/fesm2022/fragiola-primitives-angular-time-range-field.mjs.map +1 -0
  175. package/fesm2022/fragiola-primitives-angular-toast.mjs +744 -0
  176. package/fesm2022/fragiola-primitives-angular-toast.mjs.map +1 -0
  177. package/fesm2022/fragiola-primitives-angular-toggle-group.mjs +245 -0
  178. package/fesm2022/fragiola-primitives-angular-toggle-group.mjs.map +1 -0
  179. package/fesm2022/fragiola-primitives-angular-toggle.mjs +229 -0
  180. package/fesm2022/fragiola-primitives-angular-toggle.mjs.map +1 -0
  181. package/fesm2022/fragiola-primitives-angular-toolbar.mjs +623 -0
  182. package/fesm2022/fragiola-primitives-angular-toolbar.mjs.map +1 -0
  183. package/fesm2022/fragiola-primitives-angular-tooltip.mjs +975 -0
  184. package/fesm2022/fragiola-primitives-angular-tooltip.mjs.map +1 -0
  185. package/fesm2022/fragiola-primitives-angular-year-calendar.mjs +163 -0
  186. package/fesm2022/fragiola-primitives-angular-year-calendar.mjs.map +1 -0
  187. package/fesm2022/fragiola-primitives-angular-year-picker.mjs +177 -0
  188. package/fesm2022/fragiola-primitives-angular-year-picker.mjs.map +1 -0
  189. package/fesm2022/fragiola-primitives-angular-year-range-calendar.mjs +163 -0
  190. package/fesm2022/fragiola-primitives-angular-year-range-calendar.mjs.map +1 -0
  191. package/fesm2022/fragiola-primitives-angular-year-range-picker.mjs +177 -0
  192. package/fesm2022/fragiola-primitives-angular-year-range-picker.mjs.map +1 -0
  193. package/fesm2022/fragiola-primitives-angular.mjs +94 -0
  194. package/package.json +437 -3
  195. package/types/fragiola-primitives-angular-accordion.d.ts +154 -0
  196. package/types/fragiola-primitives-angular-alert-dialog.d.ts +176 -0
  197. package/types/fragiola-primitives-angular-aspect-ratio.d.ts +25 -0
  198. package/types/fragiola-primitives-angular-async-list.d.ts +32 -0
  199. package/types/fragiola-primitives-angular-autocomplete-virtual.d.ts +82 -0
  200. package/types/fragiola-primitives-angular-autocomplete.d.ts +496 -0
  201. package/types/fragiola-primitives-angular-avatar.d.ts +94 -0
  202. package/types/fragiola-primitives-angular-breadcrumbs.d.ts +62 -0
  203. package/types/fragiola-primitives-angular-button.d.ts +66 -0
  204. package/types/fragiola-primitives-angular-calendar-preset.d.ts +35 -0
  205. package/types/fragiola-primitives-angular-calendar-view.d.ts +80 -0
  206. package/types/fragiola-primitives-angular-calendar.d.ts +414 -0
  207. package/types/fragiola-primitives-angular-carousel.d.ts +300 -0
  208. package/types/fragiola-primitives-angular-cascade-select.d.ts +404 -0
  209. package/types/fragiola-primitives-angular-checkbox-group.d.ts +74 -0
  210. package/types/fragiola-primitives-angular-checkbox.d.ts +111 -0
  211. package/types/fragiola-primitives-angular-clipboard.d.ts +106 -0
  212. package/types/fragiola-primitives-angular-collapsible.d.ts +88 -0
  213. package/types/fragiola-primitives-angular-color-area.d.ts +174 -0
  214. package/types/fragiola-primitives-angular-color-field.d.ts +174 -0
  215. package/types/fragiola-primitives-angular-color-picker-popover.d.ts +180 -0
  216. package/types/fragiola-primitives-angular-color-picker.d.ts +137 -0
  217. package/types/fragiola-primitives-angular-color-slider.d.ts +228 -0
  218. package/types/fragiola-primitives-angular-color-swatch-picker.d.ts +146 -0
  219. package/types/fragiola-primitives-angular-color-swatch.d.ts +43 -0
  220. package/types/fragiola-primitives-angular-color-wheel.d.ts +144 -0
  221. package/types/fragiola-primitives-angular-combobox-virtual.d.ts +84 -0
  222. package/types/fragiola-primitives-angular-combobox.d.ts +582 -0
  223. package/types/fragiola-primitives-angular-command-virtual.d.ts +93 -0
  224. package/types/fragiola-primitives-angular-command.d.ts +283 -0
  225. package/types/fragiola-primitives-angular-context-menu.d.ts +278 -0
  226. package/types/fragiola-primitives-angular-date-field.d.ts +486 -0
  227. package/types/fragiola-primitives-angular-date-picker-input.d.ts +139 -0
  228. package/types/fragiola-primitives-angular-date-picker.d.ts +331 -0
  229. package/types/fragiola-primitives-angular-date-range-field.d.ts +333 -0
  230. package/types/fragiola-primitives-angular-date-range-picker-input.d.ts +89 -0
  231. package/types/fragiola-primitives-angular-date-range-picker.d.ts +35 -0
  232. package/types/fragiola-primitives-angular-dialog.d.ts +359 -0
  233. package/types/fragiola-primitives-angular-direction.d.ts +31 -0
  234. package/types/fragiola-primitives-angular-drawer.d.ts +242 -0
  235. package/types/fragiola-primitives-angular-drop-zone.d.ts +68 -0
  236. package/types/fragiola-primitives-angular-editable.d.ts +219 -0
  237. package/types/fragiola-primitives-angular-field.d.ts +397 -0
  238. package/types/fragiola-primitives-angular-fieldset.d.ts +47 -0
  239. package/types/fragiola-primitives-angular-file-upload.d.ts +351 -0
  240. package/types/fragiola-primitives-angular-form.d.ts +44 -0
  241. package/types/fragiola-primitives-angular-hover-card.d.ts +279 -0
  242. package/types/fragiola-primitives-angular-internal.d.ts +695 -0
  243. package/types/fragiola-primitives-angular-label.d.ts +14 -0
  244. package/types/fragiola-primitives-angular-link.d.ts +33 -0
  245. package/types/fragiola-primitives-angular-listbox-virtual.d.ts +193 -0
  246. package/types/fragiola-primitives-angular-listbox.d.ts +237 -0
  247. package/types/fragiola-primitives-angular-menu.d.ts +758 -0
  248. package/types/fragiola-primitives-angular-menubar.d.ts +76 -0
  249. package/types/fragiola-primitives-angular-meter.d.ts +117 -0
  250. package/types/fragiola-primitives-angular-month-calendar.d.ts +380 -0
  251. package/types/fragiola-primitives-angular-month-picker.d.ts +183 -0
  252. package/types/fragiola-primitives-angular-month-range-calendar.d.ts +54 -0
  253. package/types/fragiola-primitives-angular-month-range-picker.d.ts +56 -0
  254. package/types/fragiola-primitives-angular-multiple-calendar.d.ts +73 -0
  255. package/types/fragiola-primitives-angular-navigation-menu.d.ts +355 -0
  256. package/types/fragiola-primitives-angular-number-field.d.ts +305 -0
  257. package/types/fragiola-primitives-angular-otp-field.d.ts +210 -0
  258. package/types/fragiola-primitives-angular-pagination.d.ts +239 -0
  259. package/types/fragiola-primitives-angular-password-input.d.ts +149 -0
  260. package/types/fragiola-primitives-angular-popover.d.ts +303 -0
  261. package/types/fragiola-primitives-angular-progress.d.ts +126 -0
  262. package/types/fragiola-primitives-angular-radio-group.d.ts +123 -0
  263. package/types/fragiola-primitives-angular-radio.d.ts +67 -0
  264. package/types/fragiola-primitives-angular-range-calendar.d.ts +33 -0
  265. package/types/fragiola-primitives-angular-rating.d.ts +195 -0
  266. package/types/fragiola-primitives-angular-render.d.ts +2 -0
  267. package/types/fragiola-primitives-angular-scroll-area.d.ts +134 -0
  268. package/types/fragiola-primitives-angular-search-field.d.ts +129 -0
  269. package/types/fragiola-primitives-angular-segmented-control.d.ts +232 -0
  270. package/types/fragiola-primitives-angular-select-virtual.d.ts +81 -0
  271. package/types/fragiola-primitives-angular-select.d.ts +403 -0
  272. package/types/fragiola-primitives-angular-separator.d.ts +32 -0
  273. package/types/fragiola-primitives-angular-slider.d.ts +297 -0
  274. package/types/fragiola-primitives-angular-steps.d.ts +194 -0
  275. package/types/fragiola-primitives-angular-switch.d.ts +102 -0
  276. package/types/fragiola-primitives-angular-tabs.d.ts +215 -0
  277. package/types/fragiola-primitives-angular-tag-group.d.ts +232 -0
  278. package/types/fragiola-primitives-angular-tags-input.d.ts +318 -0
  279. package/types/fragiola-primitives-angular-time-field.d.ts +63 -0
  280. package/types/fragiola-primitives-angular-time-range-field.d.ts +65 -0
  281. package/types/fragiola-primitives-angular-toast.d.ts +196 -0
  282. package/types/fragiola-primitives-angular-toggle-group.d.ts +89 -0
  283. package/types/fragiola-primitives-angular-toggle.d.ts +86 -0
  284. package/types/fragiola-primitives-angular-toolbar.d.ts +187 -0
  285. package/types/fragiola-primitives-angular-tooltip.d.ts +330 -0
  286. package/types/fragiola-primitives-angular-year-calendar.d.ts +54 -0
  287. package/types/fragiola-primitives-angular-year-picker.d.ts +56 -0
  288. package/types/fragiola-primitives-angular-year-range-calendar.d.ts +54 -0
  289. package/types/fragiola-primitives-angular-year-range-picker.d.ts +56 -0
  290. package/types/fragiola-primitives-angular.d.ts +94 -0
@@ -0,0 +1,1066 @@
1
+ import * as i0 from "@angular/core";
2
+ import { DOCUMENT, DestroyRef, Directive, InjectionToken, PLATFORM_ID, afterEveryRender, afterNextRender, booleanAttribute, computed, effect, forwardRef, inject, input, numberAttribute, output, signal, untracked } from "@angular/core";
3
+ import { controllable, dataValues, injectFlush, injectHost, injectId, injectProvidedDirection, ownAttribute } from "@fragiola/primitives-angular/internal";
4
+ import { watchDocumentLanguage } from "@fragiola/primitives/date";
5
+ import { UNIT_PAGE_SIZE, currentYearMonth, formatMonthName, formatYear, formatYearMonth, formatYearSpan, fromMonthIndex, monthIndex, unitKeyTarget, unitPageStart, unitRows } from "@fragiola/primitives/month-year";
6
+ import { getDirection } from "@fragiola/primitives/direction";
7
+ import { interceptEscape } from "@fragiola/primitives/layers";
8
+ const MONTH_CALENDAR_BINDING = new InjectionToken("MONTH_CALENDAR_BINDING");
9
+ function unitsOf(kind, calendar) {
10
+ if (calendar) return calendar.units(kind);
11
+ const month = kind === "month";
12
+ return {
13
+ index: (item) => month ? monthIndex(item) : item.year,
14
+ item: (index) => month ? fromMonthIndex(index) : { year: index },
15
+ pageStart: unitPageStart,
16
+ pageSize: () => UNIT_PAGE_SIZE,
17
+ page: (start, delta) => start + delta * UNIT_PAGE_SIZE,
18
+ rows: unitRows,
19
+ keyTarget: unitKeyTarget,
20
+ text: (locale, index) => month ? formatMonthName(locale, fromMonthIndex(index), "long") : formatYear(locale, index),
21
+ name: (locale, index) => month ? formatYearMonth(locale, fromMonthIndex(index)) : formatYear(locale, index),
22
+ heading: (locale, start) => month ? formatYear(locale, start / UNIT_PAGE_SIZE) : formatYearSpan(locale, start, start + UNIT_PAGE_SIZE - 1),
23
+ today: () => {
24
+ const now = currentYearMonth();
25
+ return month ? monthIndex(now) : now.year;
26
+ }
27
+ };
28
+ }
29
+ function isItemRange(value) {
30
+ return value !== null && "start" in value;
31
+ }
32
+ const MONTH_CALENDAR = new InjectionToken("MONTH_CALENDAR");
33
+ function documentLocale(doc, browser) {
34
+ if (doc.documentElement.lang) return doc.documentElement.lang;
35
+ return browser && typeof navigator !== "undefined" ? navigator.language : "en-US";
36
+ }
37
+ var MonthCalendarState = class {
38
+ constructor(component, kind, mode, inputs, emit) {
39
+ this.component = component;
40
+ this.kind = kind;
41
+ this.mode = mode;
42
+ this.inputs = inputs;
43
+ this.emit = emit;
44
+ this.binding = inject(MONTH_CALENDAR_BINDING, { optional: true });
45
+ this.bound = computed(() => this.binding !== null && this.binding.kind() === this.kind && this.binding.mode === this.mode && this.inputs.value() === void 0 && this.inputs.defaultValue() === void 0, ...ngDevMode ? [{ debugName: "bound" }] : /* istanbul ignore next */ []);
46
+ this.own = controllable(this.inputs.value, this.inputs.valueChange, () => this.inputs.defaultValue() ?? null, (value, details) => this.emit(value, details));
47
+ this.value = computed(() => this.bound() && this.binding ? this.binding.value() : this.own.value(), ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
48
+ this.options = computed(() => {
49
+ const own = {
50
+ min: this.inputs.min(),
51
+ max: this.inputs.max(),
52
+ isUnavailable: this.inputs.isUnavailable(),
53
+ locale: this.inputs.locale(),
54
+ columns: this.inputs.columns(),
55
+ calendar: this.inputs.calendar()
56
+ };
57
+ if (!this.bound() || this.binding === null) return own;
58
+ const merged = { ...this.binding.options() };
59
+ for (const [key, value] of Object.entries(own)) if (value !== void 0) merged[key] = value;
60
+ return merged;
61
+ }, ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
62
+ this.units = computed(() => unitsOf(this.kind, this.options().calendar), ...ngDevMode ? [{ debugName: "units" }] : /* istanbul ignore next */ []);
63
+ this.min = computed(() => {
64
+ const min = this.options().min;
65
+ return min == null ? null : this.units().index(min);
66
+ }, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
67
+ this.max = computed(() => {
68
+ const max = this.options().max;
69
+ return max == null ? null : this.units().index(max);
70
+ }, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
71
+ this.document = inject(DOCUMENT);
72
+ this.browser = inject(PLATFORM_ID) === "browser";
73
+ this.language = signal(0, ...ngDevMode ? [{ debugName: "language" }] : /* istanbul ignore next */ []);
74
+ this.locale = computed(() => {
75
+ const own = this.options().locale;
76
+ if (own !== void 0) return own;
77
+ this.language();
78
+ return documentLocale(this.document, this.browser);
79
+ }, ...ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []);
80
+ this.columns = computed(() => Math.max(1, Math.floor(this.options().columns ?? 3)), ...ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []);
81
+ this.disabled = computed(() => this.inputs.disabled(), ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
82
+ this.readOnly = computed(() => this.inputs.readOnly() ?? (this.bound() && (this.binding?.readOnly() ?? false)), ...ngDevMode ? [{ debugName: "readOnly" }] : /* istanbul ignore next */ []);
83
+ this.todayIndex = computed(() => this.units().today(), ...ngDevMode ? [{ debugName: "todayIndex" }] : /* istanbul ignore next */ []);
84
+ this.seed = null;
85
+ this.focusedOwn = signal(null, ...ngDevMode ? [{ debugName: "focusedOwn" }] : /* istanbul ignore next */ []);
86
+ this.pageOwn = signal(null, ...ngDevMode ? [{ debugName: "pageOwn" }] : /* istanbul ignore next */ []);
87
+ this.focused = computed(() => this.focusedOwn() ?? this.initialFocus(), ...ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []);
88
+ this.pageStart = computed(() => this.pageOwn() ?? this.units().pageStart(this.initialFocus()), ...ngDevMode ? [{ debugName: "pageStart" }] : /* istanbul ignore next */ []);
89
+ this.anchor = signal(null, ...ngDevMode ? [{ debugName: "anchor" }] : /* istanbul ignore next */ []);
90
+ this.hovered = signal(null, ...ngDevMode ? [{ debugName: "hovered" }] : /* istanbul ignore next */ []);
91
+ this.cells = /* @__PURE__ */ new Map();
92
+ this.baseId = injectId("primitives-month-calendar");
93
+ this.focusPending = null;
94
+ afterEveryRender(() => this.applyPendingFocus());
95
+ if (this.browser) {
96
+ const stop = watchDocumentLanguage(this.document, () => this.language.update((count) => count + 1));
97
+ inject(DestroyRef).onDestroy(stop);
98
+ }
99
+ let wasOpen = null;
100
+ effect(() => {
101
+ const open = this.bound() && (this.binding?.open() ?? false);
102
+ untracked(() => {
103
+ if (wasOpen !== null && wasOpen !== open) {
104
+ this.anchor.set(null);
105
+ this.hovered.set(null);
106
+ if (open) {
107
+ this.seed = null;
108
+ this.focusedOwn.set(null);
109
+ this.pageOwn.set(null);
110
+ this.focusPending = true;
111
+ }
112
+ }
113
+ wasOpen = open;
114
+ });
115
+ });
116
+ }
117
+ clamp(index) {
118
+ const min = this.min();
119
+ const max = this.max();
120
+ if (min !== null && index < min) return min;
121
+ return max !== null && index > max ? max : index;
122
+ }
123
+ initialFocus() {
124
+ this.seed ??= untracked(() => {
125
+ const value = this.value();
126
+ const own = value === null ? null : this.units().index(isItemRange(value) ? value.start : value);
127
+ const view = this.bound() && this.binding?.focus ? this.binding.focus() : null;
128
+ return this.clamp(own ?? view ?? this.todayIndex());
129
+ });
130
+ return this.seed;
131
+ }
132
+ part(name) {
133
+ return `${this.component}-${name}`;
134
+ }
135
+ headingId() {
136
+ return `${this.baseId}-heading`;
137
+ }
138
+ gridId() {
139
+ return `${this.baseId}-grid`;
140
+ }
141
+ itemOf(index) {
142
+ return this.units().item(index);
143
+ }
144
+ isOutOfBounds(index) {
145
+ const min = this.min();
146
+ const max = this.max();
147
+ return this.disabled() || min !== null && index < min || max !== null && index > max || this.bound() && (this.binding?.isDisabled?.(index) ?? false);
148
+ }
149
+ isUnavailable(index) {
150
+ return this.options().isUnavailable?.(this.units().item(index)) ?? false;
151
+ }
152
+ moveFocus(index) {
153
+ if (this.isOutOfBounds(index)) return false;
154
+ this.hovered.set(null);
155
+ this.focusedOwn.set(index);
156
+ this.pageOwn.set(this.units().pageStart(index));
157
+ return true;
158
+ }
159
+ canPage(delta) {
160
+ const start = this.units().page(this.pageStart(), delta);
161
+ const end = start + this.units().pageSize(start);
162
+ for (let index = start; index < end; index++) if (!this.isOutOfBounds(index)) return true;
163
+ return false;
164
+ }
165
+ page(delta) {
166
+ this.focusPending = false;
167
+ if (!this.canPage(delta)) return;
168
+ const start = this.units().page(this.pageStart(), delta);
169
+ const size = this.units().pageSize(start);
170
+ const target = start + Math.min(this.focused() - this.pageStart(), size - 1);
171
+ let next = target;
172
+ for (let distance = 0; distance < size; distance++) {
173
+ const found = [target - distance, target + distance].find((index) => index >= start && index < start + size && !this.isOutOfBounds(index));
174
+ if (found !== void 0) {
175
+ next = found;
176
+ break;
177
+ }
178
+ }
179
+ this.pageOwn.set(start);
180
+ this.focusedOwn.set(next);
181
+ }
182
+ commit(next) {
183
+ if (this.bound() && this.binding) this.binding.choose(next);
184
+ else this.own.set(next, { reason: "item-press" });
185
+ }
186
+ select(index) {
187
+ if (this.isOutOfBounds(index) || this.isUnavailable(index) || this.readOnly()) return;
188
+ this.focusedOwn.set(index);
189
+ if (this.mode === "single") {
190
+ this.commit(this.units().item(index));
191
+ return;
192
+ }
193
+ const anchor = this.anchor();
194
+ if (anchor === null) {
195
+ this.anchor.set(index);
196
+ return;
197
+ }
198
+ const [start, end] = anchor <= index ? [anchor, index] : [index, anchor];
199
+ this.anchor.set(null);
200
+ this.hovered.set(null);
201
+ const units = this.units();
202
+ this.commit({
203
+ start: units.item(start),
204
+ end: units.item(end)
205
+ });
206
+ }
207
+ cancelRange() {
208
+ this.anchor.set(null);
209
+ this.hovered.set(null);
210
+ }
211
+ cellState(index) {
212
+ const value = this.value();
213
+ const units = this.units();
214
+ const range = isItemRange(value) ? {
215
+ start: units.index(value.start),
216
+ end: units.index(value.end)
217
+ } : null;
218
+ const single = value === null || isItemRange(value) ? null : units.index(value);
219
+ const anchor = this.anchor();
220
+ const previewTo = this.hovered() ?? this.focused();
221
+ const inRange = range !== null && index >= range.start && index <= range.end;
222
+ const byView = this.bound() && this.binding?.isSelected ? this.binding.isSelected(index) : void 0;
223
+ return {
224
+ today: index === this.todayIndex(),
225
+ selected: byView ?? (this.mode === "single" ? single === index : inRange),
226
+ disabled: this.isOutOfBounds(index),
227
+ unavailable: this.isUnavailable(index),
228
+ focused: index === this.focused(),
229
+ rangeStart: range !== null && index === range.start,
230
+ rangeEnd: range !== null && index === range.end,
231
+ inRange,
232
+ rangePreview: anchor !== null && index >= Math.min(anchor, previewTo) && index <= Math.max(anchor, previewTo)
233
+ };
234
+ }
235
+ requestFocus() {
236
+ this.focusPending = true;
237
+ }
238
+ applyPendingFocus() {
239
+ untracked(() => {
240
+ this.focusPending ??= this.bound() && (this.binding?.focusOnMount() ?? false) && (this.binding?.open() ?? false);
241
+ if (!this.focusPending) return;
242
+ if (this.binding !== null && this.bound() && !this.binding.open()) {
243
+ this.focusPending = false;
244
+ return;
245
+ }
246
+ const cell = this.cells.get(this.focused());
247
+ if (cell?.isConnected) {
248
+ this.focusPending = false;
249
+ cell.focus({ preventScroll: true });
250
+ }
251
+ });
252
+ }
253
+ };
254
+ var MonthCalendarCell = class MonthCalendarCell {
255
+ constructor() {
256
+ this.calendar = inject(MONTH_CALENDAR);
257
+ this.value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
258
+ this.index = computed(() => this.calendar.units().index(this.value()), ...ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []);
259
+ this.state = computed(() => this.calendar.cellState(this.index()), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
260
+ this.text = computed(() => this.calendar.units().text(this.calendar.locale(), this.index()), ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
261
+ this.ownLabel = ownAttribute("aria-label");
262
+ this.label = computed(() => this.ownLabel ?? this.calendar.units().name(this.calendar.locale(), this.index()), ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
263
+ this.data = computed(() => {
264
+ const state = this.state();
265
+ return dataValues({
266
+ today: state.today,
267
+ selected: state.selected,
268
+ disabled: state.disabled,
269
+ unavailable: state.unavailable,
270
+ "range-start": state.rangeStart,
271
+ "range-end": state.rangeEnd,
272
+ "in-range": state.inRange,
273
+ "range-preview": state.rangePreview
274
+ });
275
+ }, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
276
+ const host = injectHost();
277
+ const cells = this.calendar.cells;
278
+ let key = null;
279
+ const release = () => {
280
+ if (key !== null && cells.get(key) === host) cells.delete(key);
281
+ };
282
+ effect(() => {
283
+ release();
284
+ key = this.index();
285
+ cells.set(key, host);
286
+ });
287
+ inject(DestroyRef).onDestroy(release);
288
+ }
289
+ onMouseDown(event) {
290
+ if (this.state().disabled) event.preventDefault();
291
+ }
292
+ onClick() {
293
+ if (!this.state().disabled) {
294
+ this.calendar.select(this.index());
295
+ this.calendar.requestFocus();
296
+ }
297
+ }
298
+ onPointerEnter() {
299
+ if (this.calendar.anchor() !== null) this.calendar.hovered.set(this.index());
300
+ }
301
+ onFocus() {
302
+ if (!this.state().focused) this.calendar.moveFocus(this.index());
303
+ }
304
+ static {
305
+ this.ɵfac = i0.ɵɵngDeclareFactory({
306
+ minVersion: "12.0.0",
307
+ version: "22.2.6",
308
+ ngImport: i0,
309
+ type: MonthCalendarCell,
310
+ deps: [],
311
+ target: i0.ɵɵFactoryTarget.Directive
312
+ });
313
+ }
314
+ static {
315
+ this.ɵdir = i0.ɵɵngDeclareDirective({
316
+ minVersion: "17.1.0",
317
+ version: "22.2.6",
318
+ type: MonthCalendarCell,
319
+ isStandalone: true,
320
+ selector: "[monthCalendarCell]",
321
+ inputs: { value: {
322
+ classPropertyName: "value",
323
+ publicName: "value",
324
+ isSignal: true,
325
+ isRequired: true,
326
+ transformFunction: null
327
+ } },
328
+ host: {
329
+ attributes: { "role": "gridcell" },
330
+ listeners: {
331
+ "mousedown": "onMouseDown($event)",
332
+ "click": "onClick()",
333
+ "pointerenter": "onPointerEnter()",
334
+ "focus": "onFocus()"
335
+ },
336
+ properties: {
337
+ "attr.data-primitives-part": "calendar.part('cell')",
338
+ "attr.aria-label": "label()",
339
+ "attr.tabindex": "state().focused && !state().disabled ? 0 : -1",
340
+ "attr.aria-selected": "state().selected ? 'true' : null",
341
+ "attr.aria-disabled": "state().disabled || state().unavailable ? 'true' : null",
342
+ "attr.aria-current": "state().today ? 'date' : null",
343
+ "attr.data-today": "data().today",
344
+ "attr.data-selected": "data().selected",
345
+ "attr.data-disabled": "data().disabled",
346
+ "attr.data-unavailable": "data().unavailable",
347
+ "attr.data-range-start": "data()['range-start']",
348
+ "attr.data-range-end": "data()['range-end']",
349
+ "attr.data-in-range": "data()['in-range']",
350
+ "attr.data-range-preview": "data()['range-preview']"
351
+ }
352
+ },
353
+ exportAs: ["monthCalendarCell"],
354
+ ngImport: i0
355
+ });
356
+ }
357
+ };
358
+ i0.ɵɵngDeclareClassMetadata({
359
+ minVersion: "12.0.0",
360
+ version: "22.2.6",
361
+ ngImport: i0,
362
+ type: MonthCalendarCell,
363
+ decorators: [{
364
+ type: Directive,
365
+ args: [{
366
+ selector: "[monthCalendarCell]",
367
+ exportAs: "monthCalendarCell",
368
+ host: {
369
+ role: "gridcell",
370
+ "[attr.data-primitives-part]": "calendar.part('cell')",
371
+ "[attr.aria-label]": "label()",
372
+ "[attr.tabindex]": "state().focused && !state().disabled ? 0 : -1",
373
+ "[attr.aria-selected]": "state().selected ? 'true' : null",
374
+ "[attr.aria-disabled]": "state().disabled || state().unavailable ? 'true' : null",
375
+ "[attr.aria-current]": "state().today ? 'date' : null",
376
+ "[attr.data-today]": "data().today",
377
+ "[attr.data-selected]": "data().selected",
378
+ "[attr.data-disabled]": "data().disabled",
379
+ "[attr.data-unavailable]": "data().unavailable",
380
+ "[attr.data-range-start]": "data()['range-start']",
381
+ "[attr.data-range-end]": "data()['range-end']",
382
+ "[attr.data-in-range]": "data()['in-range']",
383
+ "[attr.data-range-preview]": "data()['range-preview']",
384
+ "(mousedown)": "onMouseDown($event)",
385
+ "(click)": "onClick()",
386
+ "(pointerenter)": "onPointerEnter()",
387
+ "(focus)": "onFocus()"
388
+ }
389
+ }]
390
+ }],
391
+ ctorParameters: () => [],
392
+ propDecorators: { value: [{
393
+ type: i0.Input,
394
+ args: [{
395
+ isSignal: true,
396
+ alias: "value",
397
+ required: true
398
+ }]
399
+ }] }
400
+ });
401
+ var MonthCalendarGrid = class MonthCalendarGrid {
402
+ constructor() {
403
+ this.direction = injectProvidedDirection();
404
+ this.calendar = inject(MONTH_CALENDAR);
405
+ this.flush = injectFlush();
406
+ const grid = injectHost();
407
+ const calendar = this.calendar;
408
+ let stop = null;
409
+ afterNextRender(() => {
410
+ stop = interceptEscape(grid.ownerDocument, () => {
411
+ calendar.cancelRange();
412
+ this.flush();
413
+ }, { when: (event) => untracked(calendar.anchor) !== null && event.target instanceof Node && grid.contains(event.target) });
414
+ });
415
+ inject(DestroyRef).onDestroy(() => stop?.());
416
+ }
417
+ onKeyDown(event) {
418
+ const calendar = this.calendar;
419
+ if (event.key === "Enter" || event.key === " ") {
420
+ event.preventDefault();
421
+ calendar.select(calendar.focused());
422
+ this.flush();
423
+ return;
424
+ }
425
+ const target = calendar.units().keyTarget(event.key, calendar.focused(), {
426
+ rtl: getDirection(event.currentTarget, this.direction()) === "rtl",
427
+ columns: calendar.columns()
428
+ });
429
+ if (target === null) return;
430
+ event.preventDefault();
431
+ if (calendar.moveFocus(target)) {
432
+ calendar.requestFocus();
433
+ this.flush();
434
+ }
435
+ }
436
+ static {
437
+ this.ɵfac = i0.ɵɵngDeclareFactory({
438
+ minVersion: "12.0.0",
439
+ version: "22.2.6",
440
+ ngImport: i0,
441
+ type: MonthCalendarGrid,
442
+ deps: [],
443
+ target: i0.ɵɵFactoryTarget.Directive
444
+ });
445
+ }
446
+ static {
447
+ this.ɵdir = i0.ɵɵngDeclareDirective({
448
+ minVersion: "14.0.0",
449
+ version: "22.2.6",
450
+ type: MonthCalendarGrid,
451
+ isStandalone: true,
452
+ selector: "[monthCalendarGrid]",
453
+ host: {
454
+ attributes: { "role": "grid" },
455
+ listeners: { "keydown": "onKeyDown($event)" },
456
+ properties: {
457
+ "attr.data-primitives-part": "calendar.part('grid')",
458
+ "attr.id": "calendar.gridId()",
459
+ "attr.aria-labelledby": "calendar.headingId()",
460
+ "attr.aria-multiselectable": "calendar.mode === 'range' ? 'true' : null",
461
+ "attr.aria-readonly": "calendar.readOnly() ? 'true' : null",
462
+ "attr.aria-disabled": "calendar.disabled() ? 'true' : null"
463
+ }
464
+ },
465
+ exportAs: ["monthCalendarGrid"],
466
+ ngImport: i0
467
+ });
468
+ }
469
+ };
470
+ i0.ɵɵngDeclareClassMetadata({
471
+ minVersion: "12.0.0",
472
+ version: "22.2.6",
473
+ ngImport: i0,
474
+ type: MonthCalendarGrid,
475
+ decorators: [{
476
+ type: Directive,
477
+ args: [{
478
+ selector: "[monthCalendarGrid]",
479
+ exportAs: "monthCalendarGrid",
480
+ host: {
481
+ role: "grid",
482
+ "[attr.data-primitives-part]": "calendar.part('grid')",
483
+ "[attr.id]": "calendar.gridId()",
484
+ "[attr.aria-labelledby]": "calendar.headingId()",
485
+ "[attr.aria-multiselectable]": "calendar.mode === 'range' ? 'true' : null",
486
+ "[attr.aria-readonly]": "calendar.readOnly() ? 'true' : null",
487
+ "[attr.aria-disabled]": "calendar.disabled() ? 'true' : null",
488
+ "(keydown)": "onKeyDown($event)"
489
+ }
490
+ }]
491
+ }],
492
+ ctorParameters: () => []
493
+ });
494
+ var MonthCalendarGridBody = class MonthCalendarGridBody {
495
+ constructor() {
496
+ this.calendar = inject(MONTH_CALENDAR);
497
+ this.rows = computed(() => this.calendar.units().rows(this.calendar.pageStart(), this.calendar.columns()).map((row) => row.map((index) => this.calendar.itemOf(index))), ...ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []);
498
+ }
499
+ static {
500
+ this.ɵfac = i0.ɵɵngDeclareFactory({
501
+ minVersion: "12.0.0",
502
+ version: "22.2.6",
503
+ ngImport: i0,
504
+ type: MonthCalendarGridBody,
505
+ deps: [],
506
+ target: i0.ɵɵFactoryTarget.Directive
507
+ });
508
+ }
509
+ static {
510
+ this.ɵdir = i0.ɵɵngDeclareDirective({
511
+ minVersion: "14.0.0",
512
+ version: "22.2.6",
513
+ type: MonthCalendarGridBody,
514
+ isStandalone: true,
515
+ selector: "[monthCalendarGridBody]",
516
+ host: { properties: { "attr.data-primitives-part": "calendar.part('grid-body')" } },
517
+ exportAs: ["monthCalendarGridBody"],
518
+ ngImport: i0
519
+ });
520
+ }
521
+ };
522
+ i0.ɵɵngDeclareClassMetadata({
523
+ minVersion: "12.0.0",
524
+ version: "22.2.6",
525
+ ngImport: i0,
526
+ type: MonthCalendarGridBody,
527
+ decorators: [{
528
+ type: Directive,
529
+ args: [{
530
+ selector: "[monthCalendarGridBody]",
531
+ exportAs: "monthCalendarGridBody",
532
+ host: { "[attr.data-primitives-part]": "calendar.part('grid-body')" }
533
+ }]
534
+ }]
535
+ });
536
+ var MonthCalendarHeading = class MonthCalendarHeading {
537
+ constructor() {
538
+ this.calendar = inject(MONTH_CALENDAR);
539
+ this.label = computed(() => this.calendar.units().heading(this.calendar.locale(), this.calendar.pageStart()), ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
540
+ }
541
+ static {
542
+ this.ɵfac = i0.ɵɵngDeclareFactory({
543
+ minVersion: "12.0.0",
544
+ version: "22.2.6",
545
+ ngImport: i0,
546
+ type: MonthCalendarHeading,
547
+ deps: [],
548
+ target: i0.ɵɵFactoryTarget.Directive
549
+ });
550
+ }
551
+ static {
552
+ this.ɵdir = i0.ɵɵngDeclareDirective({
553
+ minVersion: "14.0.0",
554
+ version: "22.2.6",
555
+ type: MonthCalendarHeading,
556
+ isStandalone: true,
557
+ selector: "[monthCalendarHeading]",
558
+ host: {
559
+ attributes: { "aria-live": "polite" },
560
+ properties: {
561
+ "attr.data-primitives-part": "calendar.part('heading')",
562
+ "attr.id": "calendar.headingId()"
563
+ }
564
+ },
565
+ exportAs: ["monthCalendarHeading"],
566
+ ngImport: i0
567
+ });
568
+ }
569
+ };
570
+ i0.ɵɵngDeclareClassMetadata({
571
+ minVersion: "12.0.0",
572
+ version: "22.2.6",
573
+ ngImport: i0,
574
+ type: MonthCalendarHeading,
575
+ decorators: [{
576
+ type: Directive,
577
+ args: [{
578
+ selector: "[monthCalendarHeading]",
579
+ exportAs: "monthCalendarHeading",
580
+ host: {
581
+ "[attr.data-primitives-part]": "calendar.part('heading')",
582
+ "[attr.id]": "calendar.headingId()",
583
+ "aria-live": "polite"
584
+ }
585
+ }]
586
+ }]
587
+ });
588
+ function monthPageButton(delta) {
589
+ const calendar = inject(MONTH_CALENDAR);
590
+ const disabled = computed(() => calendar.disabled() || !calendar.canPage(delta), ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
591
+ return {
592
+ part: calendar.part(delta < 0 ? "prev-button" : "next-button"),
593
+ disabled,
594
+ data: computed(() => dataValues({ disabled: disabled() })),
595
+ controls: calendar.gridId(),
596
+ press: () => calendar.page(delta)
597
+ };
598
+ }
599
+ var MonthCalendarNextButton = class MonthCalendarNextButton {
600
+ constructor() {
601
+ this.button = monthPageButton(1);
602
+ this.state = computed(() => ({ disabled: this.button.disabled() }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
603
+ }
604
+ static {
605
+ this.ɵfac = i0.ɵɵngDeclareFactory({
606
+ minVersion: "12.0.0",
607
+ version: "22.2.6",
608
+ ngImport: i0,
609
+ type: MonthCalendarNextButton,
610
+ deps: [],
611
+ target: i0.ɵɵFactoryTarget.Directive
612
+ });
613
+ }
614
+ static {
615
+ this.ɵdir = i0.ɵɵngDeclareDirective({
616
+ minVersion: "14.0.0",
617
+ version: "22.2.6",
618
+ type: MonthCalendarNextButton,
619
+ isStandalone: true,
620
+ selector: "[monthCalendarNextButton]",
621
+ host: {
622
+ attributes: { "type": "button" },
623
+ listeners: { "click": "button.press()" },
624
+ properties: {
625
+ "attr.data-primitives-part": "button.part",
626
+ "attr.disabled": "button.data().disabled",
627
+ "attr.data-disabled": "button.data().disabled",
628
+ "attr.aria-controls": "button.controls"
629
+ }
630
+ },
631
+ exportAs: ["monthCalendarNextButton"],
632
+ ngImport: i0
633
+ });
634
+ }
635
+ };
636
+ i0.ɵɵngDeclareClassMetadata({
637
+ minVersion: "12.0.0",
638
+ version: "22.2.6",
639
+ ngImport: i0,
640
+ type: MonthCalendarNextButton,
641
+ decorators: [{
642
+ type: Directive,
643
+ args: [{
644
+ selector: "[monthCalendarNextButton]",
645
+ exportAs: "monthCalendarNextButton",
646
+ host: {
647
+ type: "button",
648
+ "[attr.data-primitives-part]": "button.part",
649
+ "[attr.disabled]": "button.data().disabled",
650
+ "[attr.data-disabled]": "button.data().disabled",
651
+ "[attr.aria-controls]": "button.controls",
652
+ "(click)": "button.press()"
653
+ }
654
+ }]
655
+ }]
656
+ });
657
+ var MonthCalendarPrevButton = class MonthCalendarPrevButton {
658
+ constructor() {
659
+ this.button = monthPageButton(-1);
660
+ this.state = computed(() => ({ disabled: this.button.disabled() }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
661
+ }
662
+ static {
663
+ this.ɵfac = i0.ɵɵngDeclareFactory({
664
+ minVersion: "12.0.0",
665
+ version: "22.2.6",
666
+ ngImport: i0,
667
+ type: MonthCalendarPrevButton,
668
+ deps: [],
669
+ target: i0.ɵɵFactoryTarget.Directive
670
+ });
671
+ }
672
+ static {
673
+ this.ɵdir = i0.ɵɵngDeclareDirective({
674
+ minVersion: "14.0.0",
675
+ version: "22.2.6",
676
+ type: MonthCalendarPrevButton,
677
+ isStandalone: true,
678
+ selector: "[monthCalendarPrevButton]",
679
+ host: {
680
+ attributes: { "type": "button" },
681
+ listeners: { "click": "button.press()" },
682
+ properties: {
683
+ "attr.data-primitives-part": "button.part",
684
+ "attr.disabled": "button.data().disabled",
685
+ "attr.data-disabled": "button.data().disabled",
686
+ "attr.aria-controls": "button.controls"
687
+ }
688
+ },
689
+ exportAs: ["monthCalendarPrevButton"],
690
+ ngImport: i0
691
+ });
692
+ }
693
+ };
694
+ i0.ɵɵngDeclareClassMetadata({
695
+ minVersion: "12.0.0",
696
+ version: "22.2.6",
697
+ ngImport: i0,
698
+ type: MonthCalendarPrevButton,
699
+ decorators: [{
700
+ type: Directive,
701
+ args: [{
702
+ selector: "[monthCalendarPrevButton]",
703
+ exportAs: "monthCalendarPrevButton",
704
+ host: {
705
+ type: "button",
706
+ "[attr.data-primitives-part]": "button.part",
707
+ "[attr.disabled]": "button.data().disabled",
708
+ "[attr.data-disabled]": "button.data().disabled",
709
+ "[attr.aria-controls]": "button.controls",
710
+ "(click)": "button.press()"
711
+ }
712
+ }]
713
+ }]
714
+ });
715
+ const optionalNumber = (value) => value === void 0 || value === null ? void 0 : numberAttribute(value);
716
+ var MonthCalendarRootBase = class MonthCalendarRootBase {
717
+ constructor() {
718
+ this.locale = input(void 0, ...ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []);
719
+ this.columns = input(void 0, {
720
+ ...ngDevMode ? { debugName: "columns" } : /* istanbul ignore next */ {},
721
+ transform: optionalNumber
722
+ });
723
+ this.calendarSystem = input(void 0, {
724
+ ...ngDevMode ? { debugName: "calendarSystem" } : /* istanbul ignore next */ {},
725
+ alias: "calendar"
726
+ });
727
+ this.disabled = input(false, {
728
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
729
+ transform: booleanAttribute
730
+ });
731
+ this.readOnly = input(void 0, {
732
+ ...ngDevMode ? { debugName: "readOnly" } : /* istanbul ignore next */ {},
733
+ transform: (value) => value === void 0 ? void 0 : booleanAttribute(value)
734
+ });
735
+ this.data = computed(() => dataValues({
736
+ disabled: this.disabled(),
737
+ readonly: this.calendar.readOnly()
738
+ }), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
739
+ }
740
+ stateInputs(own) {
741
+ return {
742
+ ...own,
743
+ locale: this.locale,
744
+ columns: this.columns,
745
+ calendar: this.calendarSystem,
746
+ disabled: this.disabled,
747
+ readOnly: this.readOnly
748
+ };
749
+ }
750
+ static {
751
+ this.ɵfac = i0.ɵɵngDeclareFactory({
752
+ minVersion: "12.0.0",
753
+ version: "22.2.6",
754
+ ngImport: i0,
755
+ type: MonthCalendarRootBase,
756
+ deps: [],
757
+ target: i0.ɵɵFactoryTarget.Directive
758
+ });
759
+ }
760
+ static {
761
+ this.ɵdir = i0.ɵɵngDeclareDirective({
762
+ minVersion: "17.1.0",
763
+ version: "22.2.6",
764
+ type: MonthCalendarRootBase,
765
+ isStandalone: true,
766
+ inputs: {
767
+ locale: {
768
+ classPropertyName: "locale",
769
+ publicName: "locale",
770
+ isSignal: true,
771
+ isRequired: false,
772
+ transformFunction: null
773
+ },
774
+ columns: {
775
+ classPropertyName: "columns",
776
+ publicName: "columns",
777
+ isSignal: true,
778
+ isRequired: false,
779
+ transformFunction: null
780
+ },
781
+ calendarSystem: {
782
+ classPropertyName: "calendarSystem",
783
+ publicName: "calendar",
784
+ isSignal: true,
785
+ isRequired: false,
786
+ transformFunction: null
787
+ },
788
+ disabled: {
789
+ classPropertyName: "disabled",
790
+ publicName: "disabled",
791
+ isSignal: true,
792
+ isRequired: false,
793
+ transformFunction: null
794
+ },
795
+ readOnly: {
796
+ classPropertyName: "readOnly",
797
+ publicName: "readOnly",
798
+ isSignal: true,
799
+ isRequired: false,
800
+ transformFunction: null
801
+ }
802
+ },
803
+ host: { properties: {
804
+ "attr.data-primitives-part": "calendar.part('root')",
805
+ "attr.data-disabled": "data().disabled",
806
+ "attr.data-readonly": "data().readonly"
807
+ } },
808
+ ngImport: i0
809
+ });
810
+ }
811
+ };
812
+ i0.ɵɵngDeclareClassMetadata({
813
+ minVersion: "12.0.0",
814
+ version: "22.2.6",
815
+ ngImport: i0,
816
+ type: MonthCalendarRootBase,
817
+ decorators: [{
818
+ type: Directive,
819
+ args: [{ host: {
820
+ "[attr.data-primitives-part]": "calendar.part('root')",
821
+ "[attr.data-disabled]": "data().disabled",
822
+ "[attr.data-readonly]": "data().readonly"
823
+ } }]
824
+ }],
825
+ propDecorators: {
826
+ locale: [{
827
+ type: i0.Input,
828
+ args: [{
829
+ isSignal: true,
830
+ alias: "locale",
831
+ required: false
832
+ }]
833
+ }],
834
+ columns: [{
835
+ type: i0.Input,
836
+ args: [{
837
+ isSignal: true,
838
+ alias: "columns",
839
+ required: false
840
+ }]
841
+ }],
842
+ calendarSystem: [{
843
+ type: i0.Input,
844
+ args: [{
845
+ isSignal: true,
846
+ alias: "calendar",
847
+ required: false
848
+ }]
849
+ }],
850
+ disabled: [{
851
+ type: i0.Input,
852
+ args: [{
853
+ isSignal: true,
854
+ alias: "disabled",
855
+ required: false
856
+ }]
857
+ }],
858
+ readOnly: [{
859
+ type: i0.Input,
860
+ args: [{
861
+ isSignal: true,
862
+ alias: "readOnly",
863
+ required: false
864
+ }]
865
+ }]
866
+ }
867
+ });
868
+ var MonthCalendarRoot = class MonthCalendarRoot extends MonthCalendarRootBase {
869
+ constructor() {
870
+ super(...arguments);
871
+ this.value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
872
+ this.valueChange = output();
873
+ this.defaultValue = input(void 0, ...ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []);
874
+ this.valueChangeDetails = output();
875
+ this.min = input(void 0, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
876
+ this.max = input(void 0, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
877
+ this.isUnavailable = input(void 0, ...ngDevMode ? [{ debugName: "isUnavailable" }] : /* istanbul ignore next */ []);
878
+ this.calendar = new MonthCalendarState("month-calendar", "month", "single", this.stateInputs({
879
+ value: this.value,
880
+ valueChange: { emit: (value) => this.valueChange.emit(value) },
881
+ defaultValue: this.defaultValue,
882
+ min: this.min,
883
+ max: this.max,
884
+ isUnavailable: this.isUnavailable
885
+ }), (value, details) => this.valueChangeDetails.emit({
886
+ value,
887
+ details
888
+ }));
889
+ }
890
+ static {
891
+ this.ɵfac = i0.ɵɵngDeclareFactory({
892
+ minVersion: "12.0.0",
893
+ version: "22.2.6",
894
+ ngImport: i0,
895
+ type: MonthCalendarRoot,
896
+ deps: null,
897
+ target: i0.ɵɵFactoryTarget.Directive
898
+ });
899
+ }
900
+ static {
901
+ this.ɵdir = i0.ɵɵngDeclareDirective({
902
+ minVersion: "17.1.0",
903
+ version: "22.2.6",
904
+ type: MonthCalendarRoot,
905
+ isStandalone: true,
906
+ selector: "[monthCalendarRoot]",
907
+ inputs: {
908
+ value: {
909
+ classPropertyName: "value",
910
+ publicName: "value",
911
+ isSignal: true,
912
+ isRequired: false,
913
+ transformFunction: null
914
+ },
915
+ defaultValue: {
916
+ classPropertyName: "defaultValue",
917
+ publicName: "defaultValue",
918
+ isSignal: true,
919
+ isRequired: false,
920
+ transformFunction: null
921
+ },
922
+ min: {
923
+ classPropertyName: "min",
924
+ publicName: "min",
925
+ isSignal: true,
926
+ isRequired: false,
927
+ transformFunction: null
928
+ },
929
+ max: {
930
+ classPropertyName: "max",
931
+ publicName: "max",
932
+ isSignal: true,
933
+ isRequired: false,
934
+ transformFunction: null
935
+ },
936
+ isUnavailable: {
937
+ classPropertyName: "isUnavailable",
938
+ publicName: "isUnavailable",
939
+ isSignal: true,
940
+ isRequired: false,
941
+ transformFunction: null
942
+ }
943
+ },
944
+ outputs: {
945
+ valueChange: "valueChange",
946
+ valueChangeDetails: "valueChangeDetails"
947
+ },
948
+ providers: [{
949
+ provide: MONTH_CALENDAR,
950
+ useFactory: () => inject(forwardRef(() => MonthCalendarRoot)).calendar
951
+ }],
952
+ exportAs: ["monthCalendarRoot"],
953
+ usesInheritance: true,
954
+ ngImport: i0
955
+ });
956
+ }
957
+ };
958
+ i0.ɵɵngDeclareClassMetadata({
959
+ minVersion: "12.0.0",
960
+ version: "22.2.6",
961
+ ngImport: i0,
962
+ type: MonthCalendarRoot,
963
+ decorators: [{
964
+ type: Directive,
965
+ args: [{
966
+ selector: "[monthCalendarRoot]",
967
+ exportAs: "monthCalendarRoot",
968
+ providers: [{
969
+ provide: MONTH_CALENDAR,
970
+ useFactory: () => inject(forwardRef(() => MonthCalendarRoot)).calendar
971
+ }]
972
+ }]
973
+ }],
974
+ propDecorators: {
975
+ value: [{
976
+ type: i0.Input,
977
+ args: [{
978
+ isSignal: true,
979
+ alias: "value",
980
+ required: false
981
+ }]
982
+ }],
983
+ valueChange: [{
984
+ type: i0.Output,
985
+ args: ["valueChange"]
986
+ }],
987
+ defaultValue: [{
988
+ type: i0.Input,
989
+ args: [{
990
+ isSignal: true,
991
+ alias: "defaultValue",
992
+ required: false
993
+ }]
994
+ }],
995
+ valueChangeDetails: [{
996
+ type: i0.Output,
997
+ args: ["valueChangeDetails"]
998
+ }],
999
+ min: [{
1000
+ type: i0.Input,
1001
+ args: [{
1002
+ isSignal: true,
1003
+ alias: "min",
1004
+ required: false
1005
+ }]
1006
+ }],
1007
+ max: [{
1008
+ type: i0.Input,
1009
+ args: [{
1010
+ isSignal: true,
1011
+ alias: "max",
1012
+ required: false
1013
+ }]
1014
+ }],
1015
+ isUnavailable: [{
1016
+ type: i0.Input,
1017
+ args: [{
1018
+ isSignal: true,
1019
+ alias: "isUnavailable",
1020
+ required: false
1021
+ }]
1022
+ }]
1023
+ }
1024
+ });
1025
+ var MonthCalendarRow = class MonthCalendarRow {
1026
+ constructor() {
1027
+ this.calendar = inject(MONTH_CALENDAR);
1028
+ }
1029
+ static {
1030
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1031
+ minVersion: "12.0.0",
1032
+ version: "22.2.6",
1033
+ ngImport: i0,
1034
+ type: MonthCalendarRow,
1035
+ deps: [],
1036
+ target: i0.ɵɵFactoryTarget.Directive
1037
+ });
1038
+ }
1039
+ static {
1040
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1041
+ minVersion: "14.0.0",
1042
+ version: "22.2.6",
1043
+ type: MonthCalendarRow,
1044
+ isStandalone: true,
1045
+ selector: "[monthCalendarRow]",
1046
+ host: { properties: { "attr.data-primitives-part": "calendar.part('row')" } },
1047
+ ngImport: i0
1048
+ });
1049
+ }
1050
+ };
1051
+ i0.ɵɵngDeclareClassMetadata({
1052
+ minVersion: "12.0.0",
1053
+ version: "22.2.6",
1054
+ ngImport: i0,
1055
+ type: MonthCalendarRow,
1056
+ decorators: [{
1057
+ type: Directive,
1058
+ args: [{
1059
+ selector: "[monthCalendarRow]",
1060
+ host: { "[attr.data-primitives-part]": "calendar.part('row')" }
1061
+ }]
1062
+ }]
1063
+ });
1064
+ export { MONTH_CALENDAR, MONTH_CALENDAR_BINDING, MonthCalendarCell, MonthCalendarGrid, MonthCalendarGridBody, MonthCalendarHeading, MonthCalendarNextButton, MonthCalendarPrevButton, MonthCalendarRoot, MonthCalendarRootBase, MonthCalendarRow, MonthCalendarState, isItemRange, unitsOf };
1065
+
1066
+ //# sourceMappingURL=fragiola-primitives-angular-month-calendar.mjs.map