@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,1031 @@
1
+ import * as i0 from "@angular/core";
2
+ import { DestroyRef, Directive, afterNextRender, afterRenderEffect, booleanAttribute, computed, effect, inject, input, numberAttribute, output, signal, untracked } from "@angular/core";
3
+ import { carouselPages, clampCarouselPage, createRotationTimer, slidesInView, stepCarouselPage, watchCarousel } from "@fragiola/primitives/carousel";
4
+ import { controllable, dataValues, injectHost, injectId, injectProvidedDirection, registerHost } from "@fragiola/primitives-angular/internal";
5
+ import { tabsKeyTarget } from "@fragiola/primitives/collection";
6
+ import { getDirection } from "@fragiola/primitives/direction";
7
+ function optionalNumber(value) {
8
+ return value === void 0 || value === null || value === "" ? void 0 : numberAttribute(value);
9
+ }
10
+ function optionalBoolean(value) {
11
+ return value === void 0 || value === null ? void 0 : booleanAttribute(value);
12
+ }
13
+ const AUTOPLAY_TRIGGER = "[data-primitives-part=\"carousel-autoplay-trigger\"]";
14
+ var CarouselRoot = class CarouselRoot {
15
+ constructor() {
16
+ this.slideCount = input.required({
17
+ ...ngDevMode ? { debugName: "slideCount" } : /* istanbul ignore next */ {},
18
+ transform: numberAttribute
19
+ });
20
+ this.page = input(void 0, {
21
+ ...ngDevMode ? { debugName: "page" } : /* istanbul ignore next */ {},
22
+ transform: optionalNumber
23
+ });
24
+ this.pageChange = output();
25
+ this.defaultPage = input(0, {
26
+ ...ngDevMode ? { debugName: "defaultPage" } : /* istanbul ignore next */ {},
27
+ transform: numberAttribute
28
+ });
29
+ this.pageChangeDetails = output();
30
+ this.slidesPerPage = input(1, {
31
+ ...ngDevMode ? { debugName: "slidesPerPage" } : /* istanbul ignore next */ {},
32
+ transform: numberAttribute
33
+ });
34
+ this.slidesPerMove = input(void 0, {
35
+ ...ngDevMode ? { debugName: "slidesPerMove" } : /* istanbul ignore next */ {},
36
+ transform: optionalNumber
37
+ });
38
+ this.loop = input(false, {
39
+ ...ngDevMode ? { debugName: "loop" } : /* istanbul ignore next */ {},
40
+ transform: booleanAttribute
41
+ });
42
+ this.orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
43
+ this.spacing = input("0px", ...ngDevMode ? [{ debugName: "spacing" }] : /* istanbul ignore next */ []);
44
+ this.variant = input("basic", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
45
+ this.playing = input(void 0, {
46
+ ...ngDevMode ? { debugName: "playing" } : /* istanbul ignore next */ {},
47
+ transform: optionalBoolean
48
+ });
49
+ this.playingChange = output();
50
+ this.defaultPlaying = input(false, {
51
+ ...ngDevMode ? { debugName: "defaultPlaying" } : /* istanbul ignore next */ {},
52
+ transform: booleanAttribute
53
+ });
54
+ this.playingChangeDetails = output();
55
+ this.delay = input(5e3, {
56
+ ...ngDevMode ? { debugName: "delay" } : /* istanbul ignore next */ {},
57
+ transform: numberAttribute
58
+ });
59
+ this.allowMouseDrag = input(true, {
60
+ ...ngDevMode ? { debugName: "allowMouseDrag" } : /* istanbul ignore next */ {},
61
+ transform: booleanAttribute
62
+ });
63
+ this.baseId = injectId("primitives-carousel");
64
+ this.host = injectHost();
65
+ this.direction = injectProvidedDirection();
66
+ this.group = signal(null, ...ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []);
67
+ this.hovered = signal(false, ...ngDevMode ? [{ debugName: "hovered" }] : /* istanbul ignore next */ []);
68
+ this.draggingState = signal(false, ...ngDevMode ? [{ debugName: "draggingState" }] : /* istanbul ignore next */ []);
69
+ this.tabStop = signal(false, ...ngDevMode ? [{ debugName: "tabStop" }] : /* istanbul ignore next */ []);
70
+ this.groupTabStop = this.tabStop.asReadonly();
71
+ this.ready = signal(false, ...ngDevMode ? [{ debugName: "ready" }] : /* istanbul ignore next */ []);
72
+ this.controller = signal(null, ...ngDevMode ? [{ debugName: "controller" }] : /* istanbul ignore next */ []);
73
+ this.instantScroll = true;
74
+ this.count = computed(() => Math.max(0, Math.floor(this.slideCount())), ...ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []);
75
+ this.slidesPerPageValue = computed(() => String(Math.max(1, this.slidesPerPage())), ...ngDevMode ? [{ debugName: "slidesPerPageValue" }] : /* istanbul ignore next */ []);
76
+ this.pages = computed(() => carouselPages({
77
+ slideCount: this.count(),
78
+ slidesPerPage: this.slidesPerPage(),
79
+ slidesPerMove: this.slidesPerMove()
80
+ }), ...ngDevMode ? [{ debugName: "pages" }] : /* istanbul ignore next */ []);
81
+ this.ownPage = controllable(this.page, this.pageChange, () => this.defaultPage(), (value, details) => this.pageChangeDetails.emit({
82
+ value,
83
+ details
84
+ }));
85
+ this.currentPage = computed(() => clampCarouselPage(this.ownPage.value(), this.pages().length), ...ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []);
86
+ this.ownPlaying = controllable(this.playing, this.playingChange, () => this.defaultPlaying(), (value, details) => this.playingChangeDetails.emit({
87
+ value,
88
+ details
89
+ }));
90
+ this.isPlaying = this.ownPlaying.value;
91
+ this.inView = computed(() => new Set(slidesInView(this.pages(), this.currentPage(), this.count(), this.slidesPerPage())), ...ngDevMode ? [{ debugName: "inView" }] : /* istanbul ignore next */ []);
92
+ this.state = computed(() => ({
93
+ page: this.currentPage(),
94
+ pageCount: this.pages().length,
95
+ orientation: this.orientation(),
96
+ playing: this.isPlaying(),
97
+ paused: this.isPlaying() && this.hovered(),
98
+ dragging: this.draggingState()
99
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
100
+ this.data = computed(() => {
101
+ const state = this.state();
102
+ return dataValues({
103
+ orientation: state.orientation,
104
+ playing: state.playing,
105
+ paused: state.paused
106
+ });
107
+ }, ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
108
+ const timer = createRotationTimer(this.host);
109
+ afterNextRender(() => this.ready.set(true));
110
+ effect((onCleanup) => {
111
+ const group = this.group();
112
+ this.orientation();
113
+ if (!this.ready() || group === null) return;
114
+ const created = untracked(() => watchCarousel(this.host, group, {
115
+ orientation: () => untracked(this.orientation),
116
+ direction: () => untracked(this.direction),
117
+ allowMouseDrag: () => untracked(this.allowMouseDrag),
118
+ pages: () => untracked(this.pages),
119
+ page: () => untracked(this.currentPage),
120
+ slide: (index) => this.host.ownerDocument.getElementById(this.slideId(index)),
121
+ hoverExempt: (target) => target.closest(AUTOPLAY_TRIGGER) !== null,
122
+ onHoverChange: (hovered) => this.hovered.set(hovered),
123
+ onFocusIn: (event) => {
124
+ if (untracked(this.isPlaying)) this.setPlaying(false, {
125
+ reason: "focus-in",
126
+ event
127
+ });
128
+ },
129
+ onDraggingChange: (dragging) => this.draggingState.set(dragging),
130
+ onPageSettle: (page, reason, event) => this.setPage(page, {
131
+ reason,
132
+ event
133
+ })
134
+ }));
135
+ this.instantScroll = true;
136
+ this.controller.set(created);
137
+ onCleanup(() => {
138
+ created.destroy();
139
+ this.controller.set(null);
140
+ });
141
+ });
142
+ afterRenderEffect(() => {
143
+ const controller = this.controller();
144
+ const page = this.currentPage();
145
+ this.pages();
146
+ if (controller === null) return;
147
+ untracked(() => {
148
+ controller.scrollToPage(page, this.instantScroll);
149
+ this.instantScroll = false;
150
+ this.tabStop.set(controller.needsTabStop());
151
+ });
152
+ });
153
+ effect(() => {
154
+ const playing = this.isPlaying();
155
+ this.currentPage();
156
+ const delay = this.delay();
157
+ if (!this.ready()) return;
158
+ untracked(() => {
159
+ if (!playing) {
160
+ timer.stop();
161
+ return;
162
+ }
163
+ timer.start(delay, () => {
164
+ const all = this.pages();
165
+ this.setPage(stepCarouselPage(this.currentPage(), all.length, 1, true) ?? 0, { reason: "autoplay" });
166
+ });
167
+ });
168
+ });
169
+ effect(() => {
170
+ const paused = this.state().paused;
171
+ untracked(() => {
172
+ if (paused) timer.pause();
173
+ else timer.resume();
174
+ });
175
+ });
176
+ inject(DestroyRef).onDestroy(() => timer.stop());
177
+ }
178
+ slideId(index) {
179
+ return `${this.baseId}-slide-${index}`;
180
+ }
181
+ indicatorId(index) {
182
+ return `${this.baseId}-indicator-${index}`;
183
+ }
184
+ groupId() {
185
+ return `${this.baseId}-items`;
186
+ }
187
+ setPage(page, details) {
188
+ const target = clampCarouselPage(page, untracked(this.pages).length);
189
+ if (target !== untracked(this.currentPage)) this.ownPage.set(target, details);
190
+ }
191
+ setPlaying(playing, details) {
192
+ if (playing !== untracked(this.isPlaying)) this.ownPlaying.set(playing, details);
193
+ }
194
+ static {
195
+ this.ɵfac = i0.ɵɵngDeclareFactory({
196
+ minVersion: "12.0.0",
197
+ version: "22.2.6",
198
+ ngImport: i0,
199
+ type: CarouselRoot,
200
+ deps: [],
201
+ target: i0.ɵɵFactoryTarget.Directive
202
+ });
203
+ }
204
+ static {
205
+ this.ɵdir = i0.ɵɵngDeclareDirective({
206
+ minVersion: "17.1.0",
207
+ version: "22.2.6",
208
+ type: CarouselRoot,
209
+ isStandalone: true,
210
+ selector: "[carouselRoot]",
211
+ inputs: {
212
+ slideCount: {
213
+ classPropertyName: "slideCount",
214
+ publicName: "slideCount",
215
+ isSignal: true,
216
+ isRequired: true,
217
+ transformFunction: null
218
+ },
219
+ page: {
220
+ classPropertyName: "page",
221
+ publicName: "page",
222
+ isSignal: true,
223
+ isRequired: false,
224
+ transformFunction: null
225
+ },
226
+ defaultPage: {
227
+ classPropertyName: "defaultPage",
228
+ publicName: "defaultPage",
229
+ isSignal: true,
230
+ isRequired: false,
231
+ transformFunction: null
232
+ },
233
+ slidesPerPage: {
234
+ classPropertyName: "slidesPerPage",
235
+ publicName: "slidesPerPage",
236
+ isSignal: true,
237
+ isRequired: false,
238
+ transformFunction: null
239
+ },
240
+ slidesPerMove: {
241
+ classPropertyName: "slidesPerMove",
242
+ publicName: "slidesPerMove",
243
+ isSignal: true,
244
+ isRequired: false,
245
+ transformFunction: null
246
+ },
247
+ loop: {
248
+ classPropertyName: "loop",
249
+ publicName: "loop",
250
+ isSignal: true,
251
+ isRequired: false,
252
+ transformFunction: null
253
+ },
254
+ orientation: {
255
+ classPropertyName: "orientation",
256
+ publicName: "orientation",
257
+ isSignal: true,
258
+ isRequired: false,
259
+ transformFunction: null
260
+ },
261
+ spacing: {
262
+ classPropertyName: "spacing",
263
+ publicName: "spacing",
264
+ isSignal: true,
265
+ isRequired: false,
266
+ transformFunction: null
267
+ },
268
+ variant: {
269
+ classPropertyName: "variant",
270
+ publicName: "variant",
271
+ isSignal: true,
272
+ isRequired: false,
273
+ transformFunction: null
274
+ },
275
+ playing: {
276
+ classPropertyName: "playing",
277
+ publicName: "playing",
278
+ isSignal: true,
279
+ isRequired: false,
280
+ transformFunction: null
281
+ },
282
+ defaultPlaying: {
283
+ classPropertyName: "defaultPlaying",
284
+ publicName: "defaultPlaying",
285
+ isSignal: true,
286
+ isRequired: false,
287
+ transformFunction: null
288
+ },
289
+ delay: {
290
+ classPropertyName: "delay",
291
+ publicName: "delay",
292
+ isSignal: true,
293
+ isRequired: false,
294
+ transformFunction: null
295
+ },
296
+ allowMouseDrag: {
297
+ classPropertyName: "allowMouseDrag",
298
+ publicName: "allowMouseDrag",
299
+ isSignal: true,
300
+ isRequired: false,
301
+ transformFunction: null
302
+ }
303
+ },
304
+ outputs: {
305
+ pageChange: "pageChange",
306
+ pageChangeDetails: "pageChangeDetails",
307
+ playingChange: "playingChange",
308
+ playingChangeDetails: "playingChangeDetails"
309
+ },
310
+ host: {
311
+ attributes: {
312
+ "role": "region",
313
+ "aria-roledescription": "carousel",
314
+ "data-primitives-part": "carousel-root"
315
+ },
316
+ properties: {
317
+ "style.--carousel-slides-per-page": "slidesPerPageValue()",
318
+ "style.--carousel-spacing": "spacing()",
319
+ "attr.data-orientation": "data().orientation",
320
+ "attr.data-playing": "data().playing",
321
+ "attr.data-paused": "data().paused"
322
+ }
323
+ },
324
+ exportAs: ["carouselRoot"],
325
+ ngImport: i0
326
+ });
327
+ }
328
+ };
329
+ i0.ɵɵngDeclareClassMetadata({
330
+ minVersion: "12.0.0",
331
+ version: "22.2.6",
332
+ ngImport: i0,
333
+ type: CarouselRoot,
334
+ decorators: [{
335
+ type: Directive,
336
+ args: [{
337
+ selector: "[carouselRoot]",
338
+ exportAs: "carouselRoot",
339
+ host: {
340
+ role: "region",
341
+ "aria-roledescription": "carousel",
342
+ "data-primitives-part": "carousel-root",
343
+ "[style.--carousel-slides-per-page]": "slidesPerPageValue()",
344
+ "[style.--carousel-spacing]": "spacing()",
345
+ "[attr.data-orientation]": "data().orientation",
346
+ "[attr.data-playing]": "data().playing",
347
+ "[attr.data-paused]": "data().paused"
348
+ }
349
+ }]
350
+ }],
351
+ ctorParameters: () => [],
352
+ propDecorators: {
353
+ slideCount: [{
354
+ type: i0.Input,
355
+ args: [{
356
+ isSignal: true,
357
+ alias: "slideCount",
358
+ required: true
359
+ }]
360
+ }],
361
+ page: [{
362
+ type: i0.Input,
363
+ args: [{
364
+ isSignal: true,
365
+ alias: "page",
366
+ required: false
367
+ }]
368
+ }],
369
+ pageChange: [{
370
+ type: i0.Output,
371
+ args: ["pageChange"]
372
+ }],
373
+ defaultPage: [{
374
+ type: i0.Input,
375
+ args: [{
376
+ isSignal: true,
377
+ alias: "defaultPage",
378
+ required: false
379
+ }]
380
+ }],
381
+ pageChangeDetails: [{
382
+ type: i0.Output,
383
+ args: ["pageChangeDetails"]
384
+ }],
385
+ slidesPerPage: [{
386
+ type: i0.Input,
387
+ args: [{
388
+ isSignal: true,
389
+ alias: "slidesPerPage",
390
+ required: false
391
+ }]
392
+ }],
393
+ slidesPerMove: [{
394
+ type: i0.Input,
395
+ args: [{
396
+ isSignal: true,
397
+ alias: "slidesPerMove",
398
+ required: false
399
+ }]
400
+ }],
401
+ loop: [{
402
+ type: i0.Input,
403
+ args: [{
404
+ isSignal: true,
405
+ alias: "loop",
406
+ required: false
407
+ }]
408
+ }],
409
+ orientation: [{
410
+ type: i0.Input,
411
+ args: [{
412
+ isSignal: true,
413
+ alias: "orientation",
414
+ required: false
415
+ }]
416
+ }],
417
+ spacing: [{
418
+ type: i0.Input,
419
+ args: [{
420
+ isSignal: true,
421
+ alias: "spacing",
422
+ required: false
423
+ }]
424
+ }],
425
+ variant: [{
426
+ type: i0.Input,
427
+ args: [{
428
+ isSignal: true,
429
+ alias: "variant",
430
+ required: false
431
+ }]
432
+ }],
433
+ playing: [{
434
+ type: i0.Input,
435
+ args: [{
436
+ isSignal: true,
437
+ alias: "playing",
438
+ required: false
439
+ }]
440
+ }],
441
+ playingChange: [{
442
+ type: i0.Output,
443
+ args: ["playingChange"]
444
+ }],
445
+ defaultPlaying: [{
446
+ type: i0.Input,
447
+ args: [{
448
+ isSignal: true,
449
+ alias: "defaultPlaying",
450
+ required: false
451
+ }]
452
+ }],
453
+ playingChangeDetails: [{
454
+ type: i0.Output,
455
+ args: ["playingChangeDetails"]
456
+ }],
457
+ delay: [{
458
+ type: i0.Input,
459
+ args: [{
460
+ isSignal: true,
461
+ alias: "delay",
462
+ required: false
463
+ }]
464
+ }],
465
+ allowMouseDrag: [{
466
+ type: i0.Input,
467
+ args: [{
468
+ isSignal: true,
469
+ alias: "allowMouseDrag",
470
+ required: false
471
+ }]
472
+ }]
473
+ }
474
+ });
475
+ var CarouselAutoplayTrigger = class CarouselAutoplayTrigger {
476
+ constructor() {
477
+ this.root = inject(CarouselRoot);
478
+ this.state = computed(() => ({ playing: this.root.isPlaying() }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
479
+ }
480
+ press(event) {
481
+ this.root.setPlaying(!this.root.isPlaying(), {
482
+ reason: "trigger-press",
483
+ event
484
+ });
485
+ }
486
+ static {
487
+ this.ɵfac = i0.ɵɵngDeclareFactory({
488
+ minVersion: "12.0.0",
489
+ version: "22.2.6",
490
+ ngImport: i0,
491
+ type: CarouselAutoplayTrigger,
492
+ deps: [],
493
+ target: i0.ɵɵFactoryTarget.Directive
494
+ });
495
+ }
496
+ static {
497
+ this.ɵdir = i0.ɵɵngDeclareDirective({
498
+ minVersion: "14.0.0",
499
+ version: "22.2.6",
500
+ type: CarouselAutoplayTrigger,
501
+ isStandalone: true,
502
+ selector: "button[carouselAutoplayTrigger]",
503
+ host: {
504
+ attributes: {
505
+ "type": "button",
506
+ "data-primitives-part": "carousel-autoplay-trigger"
507
+ },
508
+ listeners: { "click": "press($event)" },
509
+ properties: { "attr.data-playing": "state().playing ? '' : null" }
510
+ },
511
+ exportAs: ["carouselAutoplayTrigger"],
512
+ ngImport: i0
513
+ });
514
+ }
515
+ };
516
+ i0.ɵɵngDeclareClassMetadata({
517
+ minVersion: "12.0.0",
518
+ version: "22.2.6",
519
+ ngImport: i0,
520
+ type: CarouselAutoplayTrigger,
521
+ decorators: [{
522
+ type: Directive,
523
+ args: [{
524
+ selector: "button[carouselAutoplayTrigger]",
525
+ exportAs: "carouselAutoplayTrigger",
526
+ host: {
527
+ type: "button",
528
+ "data-primitives-part": "carousel-autoplay-trigger",
529
+ "[attr.data-playing]": "state().playing ? '' : null",
530
+ "(click)": "press($event)"
531
+ }
532
+ }]
533
+ }]
534
+ });
535
+ var CarouselIndicator = class CarouselIndicator {
536
+ constructor() {
537
+ this.index = input.required({
538
+ ...ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {},
539
+ transform: numberAttribute
540
+ });
541
+ this.root = inject(CarouselRoot);
542
+ this.tabbed = computed(() => this.root.variant() === "tabbed", ...ngDevMode ? [{ debugName: "tabbed" }] : /* istanbul ignore next */ []);
543
+ this.state = computed(() => ({
544
+ index: this.index(),
545
+ current: this.index() === this.root.currentPage()
546
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
547
+ }
548
+ press(event) {
549
+ if (this.state().current) return;
550
+ this.root.setPage(this.index(), {
551
+ reason: "item-press",
552
+ event
553
+ });
554
+ }
555
+ static {
556
+ this.ɵfac = i0.ɵɵngDeclareFactory({
557
+ minVersion: "12.0.0",
558
+ version: "22.2.6",
559
+ ngImport: i0,
560
+ type: CarouselIndicator,
561
+ deps: [],
562
+ target: i0.ɵɵFactoryTarget.Directive
563
+ });
564
+ }
565
+ static {
566
+ this.ɵdir = i0.ɵɵngDeclareDirective({
567
+ minVersion: "17.1.0",
568
+ version: "22.2.6",
569
+ type: CarouselIndicator,
570
+ isStandalone: true,
571
+ selector: "button[carouselIndicator]",
572
+ inputs: { index: {
573
+ classPropertyName: "index",
574
+ publicName: "index",
575
+ isSignal: true,
576
+ isRequired: true,
577
+ transformFunction: null
578
+ } },
579
+ host: {
580
+ attributes: {
581
+ "type": "button",
582
+ "data-primitives-part": "carousel-indicator"
583
+ },
584
+ listeners: { "click": "press($event)" },
585
+ properties: {
586
+ "attr.id": "root.indicatorId(index())",
587
+ "attr.role": "tabbed() ? 'tab' : null",
588
+ "attr.aria-selected": "tabbed() ? (state().current ? 'true' : 'false') : null",
589
+ "attr.aria-controls": "tabbed() ? root.slideId(index()) : null",
590
+ "attr.tabindex": "tabbed() ? (state().current ? 0 : -1) : null",
591
+ "attr.aria-disabled": "!tabbed() && state().current ? 'true' : null",
592
+ "attr.data-current": "state().current ? '' : null"
593
+ }
594
+ },
595
+ exportAs: ["carouselIndicator"],
596
+ ngImport: i0
597
+ });
598
+ }
599
+ };
600
+ i0.ɵɵngDeclareClassMetadata({
601
+ minVersion: "12.0.0",
602
+ version: "22.2.6",
603
+ ngImport: i0,
604
+ type: CarouselIndicator,
605
+ decorators: [{
606
+ type: Directive,
607
+ args: [{
608
+ selector: "button[carouselIndicator]",
609
+ exportAs: "carouselIndicator",
610
+ host: {
611
+ type: "button",
612
+ "data-primitives-part": "carousel-indicator",
613
+ "[attr.id]": "root.indicatorId(index())",
614
+ "[attr.role]": "tabbed() ? 'tab' : null",
615
+ "[attr.aria-selected]": "tabbed() ? (state().current ? 'true' : 'false') : null",
616
+ "[attr.aria-controls]": "tabbed() ? root.slideId(index()) : null",
617
+ "[attr.tabindex]": "tabbed() ? (state().current ? 0 : -1) : null",
618
+ "[attr.aria-disabled]": "!tabbed() && state().current ? 'true' : null",
619
+ "[attr.data-current]": "state().current ? '' : null",
620
+ "(click)": "press($event)"
621
+ }
622
+ }]
623
+ }],
624
+ propDecorators: { index: [{
625
+ type: i0.Input,
626
+ args: [{
627
+ isSignal: true,
628
+ alias: "index",
629
+ required: true
630
+ }]
631
+ }] }
632
+ });
633
+ var CarouselIndicatorGroup = class CarouselIndicatorGroup {
634
+ constructor() {
635
+ this.root = inject(CarouselRoot);
636
+ this.host = injectHost();
637
+ this.direction = injectProvidedDirection();
638
+ this.tabbed = computed(() => this.root.variant() === "tabbed", ...ngDevMode ? [{ debugName: "tabbed" }] : /* istanbul ignore next */ []);
639
+ this.state = this.root.state;
640
+ }
641
+ onKeyDown(event) {
642
+ if (!this.tabbed()) return;
643
+ const tabs = [...this.host.querySelectorAll("[role=\"tab\"]")];
644
+ const current = tabs.indexOf(event.target);
645
+ if (current === -1) return;
646
+ const index = tabsKeyTarget(event.key, current, tabs.length, {
647
+ orientation: this.root.orientation(),
648
+ rtl: getDirection(this.host, this.direction()) === "rtl",
649
+ loop: true
650
+ });
651
+ if (index === null) return;
652
+ event.preventDefault();
653
+ tabs[index]?.focus();
654
+ this.root.setPage(index, {
655
+ reason: "keyboard",
656
+ event
657
+ });
658
+ }
659
+ static {
660
+ this.ɵfac = i0.ɵɵngDeclareFactory({
661
+ minVersion: "12.0.0",
662
+ version: "22.2.6",
663
+ ngImport: i0,
664
+ type: CarouselIndicatorGroup,
665
+ deps: [],
666
+ target: i0.ɵɵFactoryTarget.Directive
667
+ });
668
+ }
669
+ static {
670
+ this.ɵdir = i0.ɵɵngDeclareDirective({
671
+ minVersion: "14.0.0",
672
+ version: "22.2.6",
673
+ type: CarouselIndicatorGroup,
674
+ isStandalone: true,
675
+ selector: "[carouselIndicatorGroup]",
676
+ host: {
677
+ attributes: { "data-primitives-part": "carousel-indicator-group" },
678
+ listeners: { "keydown": "onKeyDown($event)" },
679
+ properties: {
680
+ "attr.role": "tabbed() ? 'tablist' : 'group'",
681
+ "attr.aria-orientation": "tabbed() ? root.orientation() : null",
682
+ "attr.data-orientation": "root.orientation()"
683
+ }
684
+ },
685
+ exportAs: ["carouselIndicatorGroup"],
686
+ ngImport: i0
687
+ });
688
+ }
689
+ };
690
+ i0.ɵɵngDeclareClassMetadata({
691
+ minVersion: "12.0.0",
692
+ version: "22.2.6",
693
+ ngImport: i0,
694
+ type: CarouselIndicatorGroup,
695
+ decorators: [{
696
+ type: Directive,
697
+ args: [{
698
+ selector: "[carouselIndicatorGroup]",
699
+ exportAs: "carouselIndicatorGroup",
700
+ host: {
701
+ "data-primitives-part": "carousel-indicator-group",
702
+ "[attr.role]": "tabbed() ? 'tablist' : 'group'",
703
+ "[attr.aria-orientation]": "tabbed() ? root.orientation() : null",
704
+ "[attr.data-orientation]": "root.orientation()",
705
+ "(keydown)": "onKeyDown($event)"
706
+ }
707
+ }]
708
+ }]
709
+ });
710
+ var CarouselItem = class CarouselItem {
711
+ constructor() {
712
+ this.index = input.required({
713
+ ...ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {},
714
+ transform: numberAttribute
715
+ });
716
+ this.root = inject(CarouselRoot);
717
+ this.tabbed = computed(() => this.root.variant() === "tabbed", ...ngDevMode ? [{ debugName: "tabbed" }] : /* istanbul ignore next */ []);
718
+ this.snaps = computed(() => this.root.pages().includes(this.index()), ...ngDevMode ? [{ debugName: "snaps" }] : /* istanbul ignore next */ []);
719
+ this.state = computed(() => ({
720
+ index: this.index(),
721
+ inView: this.root.inView().has(this.index())
722
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
723
+ }
724
+ static {
725
+ this.ɵfac = i0.ɵɵngDeclareFactory({
726
+ minVersion: "12.0.0",
727
+ version: "22.2.6",
728
+ ngImport: i0,
729
+ type: CarouselItem,
730
+ deps: [],
731
+ target: i0.ɵɵFactoryTarget.Directive
732
+ });
733
+ }
734
+ static {
735
+ this.ɵdir = i0.ɵɵngDeclareDirective({
736
+ minVersion: "17.1.0",
737
+ version: "22.2.6",
738
+ type: CarouselItem,
739
+ isStandalone: true,
740
+ selector: "[carouselItem]",
741
+ inputs: { index: {
742
+ classPropertyName: "index",
743
+ publicName: "index",
744
+ isSignal: true,
745
+ isRequired: true,
746
+ transformFunction: null
747
+ } },
748
+ host: {
749
+ attributes: { "data-primitives-part": "carousel-item" },
750
+ properties: {
751
+ "attr.id": "root.slideId(index())",
752
+ "attr.role": "tabbed() ? 'tabpanel' : 'group'",
753
+ "attr.aria-roledescription": "tabbed() ? null : 'slide'",
754
+ "attr.aria-hidden": "state().inView ? null : 'true'",
755
+ "attr.inert": "state().inView ? null : ''",
756
+ "style.scroll-snap-align": "snaps() ? 'start' : null",
757
+ "attr.data-index": "index()",
758
+ "attr.data-inview": "state().inView ? '' : null"
759
+ }
760
+ },
761
+ exportAs: ["carouselItem"],
762
+ ngImport: i0
763
+ });
764
+ }
765
+ };
766
+ i0.ɵɵngDeclareClassMetadata({
767
+ minVersion: "12.0.0",
768
+ version: "22.2.6",
769
+ ngImport: i0,
770
+ type: CarouselItem,
771
+ decorators: [{
772
+ type: Directive,
773
+ args: [{
774
+ selector: "[carouselItem]",
775
+ exportAs: "carouselItem",
776
+ host: {
777
+ "data-primitives-part": "carousel-item",
778
+ "[attr.id]": "root.slideId(index())",
779
+ "[attr.role]": "tabbed() ? 'tabpanel' : 'group'",
780
+ "[attr.aria-roledescription]": "tabbed() ? null : 'slide'",
781
+ "[attr.aria-hidden]": "state().inView ? null : 'true'",
782
+ "[attr.inert]": "state().inView ? null : ''",
783
+ "[style.scroll-snap-align]": "snaps() ? 'start' : null",
784
+ "[attr.data-index]": "index()",
785
+ "[attr.data-inview]": "state().inView ? '' : null"
786
+ }
787
+ }]
788
+ }],
789
+ propDecorators: { index: [{
790
+ type: i0.Input,
791
+ args: [{
792
+ isSignal: true,
793
+ alias: "index",
794
+ required: true
795
+ }]
796
+ }] }
797
+ });
798
+ const SLIDE_SIZE = "calc((100% - var(--carousel-spacing) * (var(--carousel-slides-per-page) - 1)) / var(--carousel-slides-per-page))";
799
+ var CarouselItemGroup = class CarouselItemGroup {
800
+ constructor() {
801
+ this.root = inject(CarouselRoot);
802
+ this.size = SLIDE_SIZE;
803
+ this.vertical = computed(() => this.root.orientation() === "vertical", ...ngDevMode ? [{ debugName: "vertical" }] : /* istanbul ignore next */ []);
804
+ this.state = this.root.state;
805
+ registerHost(this.root.group);
806
+ }
807
+ static {
808
+ this.ɵfac = i0.ɵɵngDeclareFactory({
809
+ minVersion: "12.0.0",
810
+ version: "22.2.6",
811
+ ngImport: i0,
812
+ type: CarouselItemGroup,
813
+ deps: [],
814
+ target: i0.ɵɵFactoryTarget.Directive
815
+ });
816
+ }
817
+ static {
818
+ this.ɵdir = i0.ɵɵngDeclareDirective({
819
+ minVersion: "14.0.0",
820
+ version: "22.2.6",
821
+ type: CarouselItemGroup,
822
+ isStandalone: true,
823
+ selector: "[carouselItemGroup]",
824
+ host: {
825
+ attributes: {
826
+ "data-primitives-part": "carousel-item-group",
827
+ "aria-atomic": "false"
828
+ },
829
+ properties: {
830
+ "attr.id": "root.groupId()",
831
+ "attr.aria-live": "root.isPlaying() ? 'off' : 'polite'",
832
+ "attr.tabindex": "root.groupTabStop() ? 0 : null",
833
+ "style.display": "'grid'",
834
+ "style.grid-auto-flow": "vertical() ? 'row' : 'column'",
835
+ "style.grid-auto-columns": "vertical() ? null : size",
836
+ "style.grid-auto-rows": "vertical() ? size : null",
837
+ "style.gap": "'var(--carousel-spacing)'",
838
+ "style.overflow-x": "vertical() ? null : 'auto'",
839
+ "style.overflow-y": "vertical() ? 'auto' : null",
840
+ "style.overscroll-behavior-x": "vertical() ? null : 'contain'",
841
+ "style.overscroll-behavior-y": "vertical() ? 'contain' : null",
842
+ "style.scroll-snap-type": "vertical() ? 'y mandatory' : 'x mandatory'",
843
+ "style.scrollbar-width": "'none'",
844
+ "attr.data-orientation": "root.orientation()",
845
+ "attr.data-dragging": "root.state().dragging ? '' : null"
846
+ }
847
+ },
848
+ exportAs: ["carouselItemGroup"],
849
+ ngImport: i0
850
+ });
851
+ }
852
+ };
853
+ i0.ɵɵngDeclareClassMetadata({
854
+ minVersion: "12.0.0",
855
+ version: "22.2.6",
856
+ ngImport: i0,
857
+ type: CarouselItemGroup,
858
+ decorators: [{
859
+ type: Directive,
860
+ args: [{
861
+ selector: "[carouselItemGroup]",
862
+ exportAs: "carouselItemGroup",
863
+ host: {
864
+ "data-primitives-part": "carousel-item-group",
865
+ "aria-atomic": "false",
866
+ "[attr.id]": "root.groupId()",
867
+ "[attr.aria-live]": "root.isPlaying() ? 'off' : 'polite'",
868
+ "[attr.tabindex]": "root.groupTabStop() ? 0 : null",
869
+ "[style.display]": "'grid'",
870
+ "[style.grid-auto-flow]": "vertical() ? 'row' : 'column'",
871
+ "[style.grid-auto-columns]": "vertical() ? null : size",
872
+ "[style.grid-auto-rows]": "vertical() ? size : null",
873
+ "[style.gap]": "'var(--carousel-spacing)'",
874
+ "[style.overflow-x]": "vertical() ? null : 'auto'",
875
+ "[style.overflow-y]": "vertical() ? 'auto' : null",
876
+ "[style.overscroll-behavior-x]": "vertical() ? null : 'contain'",
877
+ "[style.overscroll-behavior-y]": "vertical() ? 'contain' : null",
878
+ "[style.scroll-snap-type]": "vertical() ? 'y mandatory' : 'x mandatory'",
879
+ "[style.scrollbar-width]": "'none'",
880
+ "[attr.data-orientation]": "root.orientation()",
881
+ "[attr.data-dragging]": "root.state().dragging ? '' : null"
882
+ }
883
+ }]
884
+ }],
885
+ ctorParameters: () => []
886
+ });
887
+ function carouselStepTrigger(kind) {
888
+ const root = inject(CarouselRoot);
889
+ const state = computed(() => {
890
+ const page = stepCarouselPage(root.currentPage(), root.pages().length, kind === "prev" ? -1 : 1, root.loop());
891
+ return {
892
+ page,
893
+ disabled: page === null
894
+ };
895
+ }, ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
896
+ return {
897
+ root,
898
+ state,
899
+ press: (event) => {
900
+ const { page } = state();
901
+ if (page === null) return;
902
+ root.setPage(page, {
903
+ reason: kind === "prev" ? "previous-press" : "next-press",
904
+ event
905
+ });
906
+ }
907
+ };
908
+ }
909
+ var CarouselNextTrigger = class CarouselNextTrigger {
910
+ constructor() {
911
+ this.control = carouselStepTrigger("next");
912
+ this.state = this.control.state;
913
+ }
914
+ static {
915
+ this.ɵfac = i0.ɵɵngDeclareFactory({
916
+ minVersion: "12.0.0",
917
+ version: "22.2.6",
918
+ ngImport: i0,
919
+ type: CarouselNextTrigger,
920
+ deps: [],
921
+ target: i0.ɵɵFactoryTarget.Directive
922
+ });
923
+ }
924
+ static {
925
+ this.ɵdir = i0.ɵɵngDeclareDirective({
926
+ minVersion: "14.0.0",
927
+ version: "22.2.6",
928
+ type: CarouselNextTrigger,
929
+ isStandalone: true,
930
+ selector: "button[carouselNextTrigger]",
931
+ host: {
932
+ attributes: {
933
+ "type": "button",
934
+ "data-primitives-part": "carousel-next-trigger"
935
+ },
936
+ listeners: { "click": "control.press($event)" },
937
+ properties: {
938
+ "attr.aria-controls": "control.root.groupId()",
939
+ "attr.disabled": "control.state().disabled ? '' : null",
940
+ "attr.data-disabled": "control.state().disabled ? '' : null"
941
+ }
942
+ },
943
+ exportAs: ["carouselNextTrigger"],
944
+ ngImport: i0
945
+ });
946
+ }
947
+ };
948
+ i0.ɵɵngDeclareClassMetadata({
949
+ minVersion: "12.0.0",
950
+ version: "22.2.6",
951
+ ngImport: i0,
952
+ type: CarouselNextTrigger,
953
+ decorators: [{
954
+ type: Directive,
955
+ args: [{
956
+ selector: "button[carouselNextTrigger]",
957
+ exportAs: "carouselNextTrigger",
958
+ host: {
959
+ type: "button",
960
+ "data-primitives-part": "carousel-next-trigger",
961
+ "[attr.aria-controls]": "control.root.groupId()",
962
+ "[attr.disabled]": "control.state().disabled ? '' : null",
963
+ "[attr.data-disabled]": "control.state().disabled ? '' : null",
964
+ "(click)": "control.press($event)"
965
+ }
966
+ }]
967
+ }]
968
+ });
969
+ var CarouselPrevTrigger = class CarouselPrevTrigger {
970
+ constructor() {
971
+ this.control = carouselStepTrigger("prev");
972
+ this.state = this.control.state;
973
+ }
974
+ static {
975
+ this.ɵfac = i0.ɵɵngDeclareFactory({
976
+ minVersion: "12.0.0",
977
+ version: "22.2.6",
978
+ ngImport: i0,
979
+ type: CarouselPrevTrigger,
980
+ deps: [],
981
+ target: i0.ɵɵFactoryTarget.Directive
982
+ });
983
+ }
984
+ static {
985
+ this.ɵdir = i0.ɵɵngDeclareDirective({
986
+ minVersion: "14.0.0",
987
+ version: "22.2.6",
988
+ type: CarouselPrevTrigger,
989
+ isStandalone: true,
990
+ selector: "button[carouselPrevTrigger]",
991
+ host: {
992
+ attributes: {
993
+ "type": "button",
994
+ "data-primitives-part": "carousel-prev-trigger"
995
+ },
996
+ listeners: { "click": "control.press($event)" },
997
+ properties: {
998
+ "attr.aria-controls": "control.root.groupId()",
999
+ "attr.disabled": "control.state().disabled ? '' : null",
1000
+ "attr.data-disabled": "control.state().disabled ? '' : null"
1001
+ }
1002
+ },
1003
+ exportAs: ["carouselPrevTrigger"],
1004
+ ngImport: i0
1005
+ });
1006
+ }
1007
+ };
1008
+ i0.ɵɵngDeclareClassMetadata({
1009
+ minVersion: "12.0.0",
1010
+ version: "22.2.6",
1011
+ ngImport: i0,
1012
+ type: CarouselPrevTrigger,
1013
+ decorators: [{
1014
+ type: Directive,
1015
+ args: [{
1016
+ selector: "button[carouselPrevTrigger]",
1017
+ exportAs: "carouselPrevTrigger",
1018
+ host: {
1019
+ type: "button",
1020
+ "data-primitives-part": "carousel-prev-trigger",
1021
+ "[attr.aria-controls]": "control.root.groupId()",
1022
+ "[attr.disabled]": "control.state().disabled ? '' : null",
1023
+ "[attr.data-disabled]": "control.state().disabled ? '' : null",
1024
+ "(click)": "control.press($event)"
1025
+ }
1026
+ }]
1027
+ }]
1028
+ });
1029
+ export { CarouselAutoplayTrigger, CarouselIndicator, CarouselIndicatorGroup, CarouselItem, CarouselItemGroup, CarouselNextTrigger, CarouselPrevTrigger, CarouselRoot };
1030
+
1031
+ //# sourceMappingURL=fragiola-primitives-angular-carousel.mjs.map