@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,726 @@
1
+ import * as i0 from "@angular/core";
2
+ import { CSP_NONCE, DestroyRef, Directive, PLATFORM_ID, afterRenderEffect, booleanAttribute, computed, effect, inject, input, linkedSignal, output, signal, untracked } from "@angular/core";
3
+ import { activationDirection, placeTabsIndicator, tabsIndicatorBox, tabsKeyTarget } from "@fragiola/primitives/collection";
4
+ import { getDirection } from "@fragiola/primitives/direction";
5
+ import { conditionalView, controllable, createPresence, dataAttributes, dataValues, injectEnclosing, injectHost, injectId, injectProvidedDirection, registerHost, writeAttributes } from "@fragiola/primitives-angular/internal";
6
+ var TabsRoot = class TabsRoot {
7
+ constructor() {
8
+ this.value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
9
+ this.valueChange = output();
10
+ this.defaultValue = input(void 0, ...ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []);
11
+ this.valueChangeDetails = output();
12
+ this.orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
13
+ this.activation = input("automatic", ...ngDevMode ? [{ debugName: "activation" }] : /* istanbul ignore next */ []);
14
+ this.loopFocus = input(true, {
15
+ ...ngDevMode ? { debugName: "loopFocus" } : /* istanbul ignore next */ {},
16
+ transform: booleanAttribute
17
+ });
18
+ this.selection = controllable(this.value, this.valueChange, () => this.defaultValue(), (value, details) => this.valueChangeDetails.emit({
19
+ value: value ?? "",
20
+ details
21
+ }));
22
+ this.selected = this.selection.value;
23
+ this.baseId = injectId("primitives-tabs");
24
+ this.tabs = /* @__PURE__ */ new Map();
25
+ this.list = signal(null, ...ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []);
26
+ this.version = signal(0, ...ngDevMode ? [{ debugName: "version" }] : /* istanbul ignore next */ []);
27
+ this.activationDirection = linkedSignal({
28
+ ...ngDevMode ? { debugName: "activationDirection" } : /* istanbul ignore next */ {},
29
+ source: this.selected,
30
+ computation: (value, previous) => previous === void 0 ? "none" : untracked(() => activationDirection(this.tabElement(previous.source), this.tabElement(value), this.orientation()))
31
+ });
32
+ this.state = computed(() => ({
33
+ orientation: this.orientation(),
34
+ activation: this.activation(),
35
+ activationDirection: this.activationDirection()
36
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
37
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
38
+ afterRenderEffect(() => {
39
+ this.version();
40
+ const list = this.list();
41
+ if (this.selected() !== void 0 || list === null) return;
42
+ untracked(() => {
43
+ const first = [...list.querySelectorAll("[role=\"tab\"]")].map((element) => this.tabs.get(element)).find((info) => info !== void 0 && !info.disabled);
44
+ if (first) this.select(first.value, "none");
45
+ });
46
+ });
47
+ }
48
+ select(value, reason) {
49
+ this.selection.set(value, { reason });
50
+ untracked(this.activationDirection);
51
+ }
52
+ tabId(value) {
53
+ return `${this.baseId}-tab-${encodeURIComponent(value)}`;
54
+ }
55
+ tabElement(value) {
56
+ if (value === void 0) return null;
57
+ return this.list()?.ownerDocument.getElementById(this.tabId(value)) ?? null;
58
+ }
59
+ panelId(value) {
60
+ return `${this.baseId}-panel-${encodeURIComponent(value)}`;
61
+ }
62
+ static {
63
+ this.ɵfac = i0.ɵɵngDeclareFactory({
64
+ minVersion: "12.0.0",
65
+ version: "22.2.6",
66
+ ngImport: i0,
67
+ type: TabsRoot,
68
+ deps: [],
69
+ target: i0.ɵɵFactoryTarget.Directive
70
+ });
71
+ }
72
+ static {
73
+ this.ɵdir = i0.ɵɵngDeclareDirective({
74
+ minVersion: "17.1.0",
75
+ version: "22.2.6",
76
+ type: TabsRoot,
77
+ isStandalone: true,
78
+ selector: "[tabsRoot]",
79
+ inputs: {
80
+ value: {
81
+ classPropertyName: "value",
82
+ publicName: "value",
83
+ isSignal: true,
84
+ isRequired: false,
85
+ transformFunction: null
86
+ },
87
+ defaultValue: {
88
+ classPropertyName: "defaultValue",
89
+ publicName: "defaultValue",
90
+ isSignal: true,
91
+ isRequired: false,
92
+ transformFunction: null
93
+ },
94
+ orientation: {
95
+ classPropertyName: "orientation",
96
+ publicName: "orientation",
97
+ isSignal: true,
98
+ isRequired: false,
99
+ transformFunction: null
100
+ },
101
+ activation: {
102
+ classPropertyName: "activation",
103
+ publicName: "activation",
104
+ isSignal: true,
105
+ isRequired: false,
106
+ transformFunction: null
107
+ },
108
+ loopFocus: {
109
+ classPropertyName: "loopFocus",
110
+ publicName: "loopFocus",
111
+ isSignal: true,
112
+ isRequired: false,
113
+ transformFunction: null
114
+ }
115
+ },
116
+ outputs: {
117
+ valueChange: "valueChange",
118
+ valueChangeDetails: "valueChangeDetails"
119
+ },
120
+ host: {
121
+ attributes: { "data-primitives-part": "tabs-root" },
122
+ properties: {
123
+ "attr.data-orientation": "data().orientation",
124
+ "attr.data-activation": "data().activation",
125
+ "attr.data-activation-direction": "data().activationDirection"
126
+ }
127
+ },
128
+ exportAs: ["tabsRoot"],
129
+ ngImport: i0
130
+ });
131
+ }
132
+ };
133
+ i0.ɵɵngDeclareClassMetadata({
134
+ minVersion: "12.0.0",
135
+ version: "22.2.6",
136
+ ngImport: i0,
137
+ type: TabsRoot,
138
+ decorators: [{
139
+ type: Directive,
140
+ args: [{
141
+ selector: "[tabsRoot]",
142
+ exportAs: "tabsRoot",
143
+ host: {
144
+ "data-primitives-part": "tabs-root",
145
+ "[attr.data-orientation]": "data().orientation",
146
+ "[attr.data-activation]": "data().activation",
147
+ "[attr.data-activation-direction]": "data().activationDirection"
148
+ }
149
+ }]
150
+ }],
151
+ ctorParameters: () => [],
152
+ propDecorators: {
153
+ value: [{
154
+ type: i0.Input,
155
+ args: [{
156
+ isSignal: true,
157
+ alias: "value",
158
+ required: false
159
+ }]
160
+ }],
161
+ valueChange: [{
162
+ type: i0.Output,
163
+ args: ["valueChange"]
164
+ }],
165
+ defaultValue: [{
166
+ type: i0.Input,
167
+ args: [{
168
+ isSignal: true,
169
+ alias: "defaultValue",
170
+ required: false
171
+ }]
172
+ }],
173
+ valueChangeDetails: [{
174
+ type: i0.Output,
175
+ args: ["valueChangeDetails"]
176
+ }],
177
+ orientation: [{
178
+ type: i0.Input,
179
+ args: [{
180
+ isSignal: true,
181
+ alias: "orientation",
182
+ required: false
183
+ }]
184
+ }],
185
+ activation: [{
186
+ type: i0.Input,
187
+ args: [{
188
+ isSignal: true,
189
+ alias: "activation",
190
+ required: false
191
+ }]
192
+ }],
193
+ loopFocus: [{
194
+ type: i0.Input,
195
+ args: [{
196
+ isSignal: true,
197
+ alias: "loopFocus",
198
+ required: false
199
+ }]
200
+ }]
201
+ }
202
+ });
203
+ const VARIABLES = [
204
+ "--tabs-indicator-inset-inline-start",
205
+ "--tabs-indicator-inset-block-start",
206
+ "--tabs-indicator-inline-size",
207
+ "--tabs-indicator-block-size",
208
+ "--active-tab-left",
209
+ "--active-tab-right",
210
+ "--active-tab-top",
211
+ "--active-tab-bottom",
212
+ "--active-tab-width",
213
+ "--active-tab-height"
214
+ ];
215
+ const BEFORE_HYDRATION = `(${placeTabsIndicator.toString()})(document.currentScript)`;
216
+ var TabsIndicator = class TabsIndicator {
217
+ constructor() {
218
+ this.root = inject(TabsRoot);
219
+ this.renderBeforeHydration = input(false, {
220
+ ...ngDevMode ? { debugName: "renderBeforeHydration" } : /* istanbul ignore next */ {},
221
+ alias: "tabsIndicator",
222
+ transform: (value) => value === true || value === "true"
223
+ });
224
+ this.nonce = input(void 0, {
225
+ ...ngDevMode ? { debugName: "nonce" } : /* istanbul ignore next */ {},
226
+ alias: "tabsIndicatorNonce"
227
+ });
228
+ this.cspNonce = inject(CSP_NONCE, { optional: true });
229
+ this.state = computed(() => ({
230
+ orientation: this.root.orientation(),
231
+ activationDirection: this.root.activationDirection()
232
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
233
+ this.box = signal(null, ...ngDevMode ? [{ debugName: "box" }] : /* istanbul ignore next */ []);
234
+ const root = this.root;
235
+ const box = this.box;
236
+ const element = conditionalView(computed(() => root.selected() !== void 0 && (box() !== null || this.renderBeforeHydration())), (rendered) => writeAttributes(rendered, {
237
+ "aria-hidden": "true",
238
+ "data-primitives-part": "tabs-indicator",
239
+ "data-orientation": untracked(this.state).orientation,
240
+ "data-activation-direction": untracked(this.state).activationDirection
241
+ }));
242
+ if (inject(PLATFORM_ID) === "server") effect(() => {
243
+ const host = element();
244
+ if (host !== null && this.renderBeforeHydration()) {
245
+ const nonce = this.nonce() ?? this.cspNonce;
246
+ untracked(() => {
247
+ const script = host.ownerDocument.createElement("script");
248
+ if (nonce) script.setAttribute("nonce", nonce);
249
+ script.textContent = BEFORE_HYDRATION;
250
+ host.appendChild(script);
251
+ });
252
+ }
253
+ });
254
+ afterRenderEffect(() => {
255
+ const host = element();
256
+ const { orientation, activationDirection } = this.state();
257
+ if (host !== null) untracked(() => writeAttributes(host, {
258
+ "data-orientation": orientation,
259
+ "data-activation-direction": activationDirection
260
+ }));
261
+ });
262
+ afterRenderEffect((onCleanup) => {
263
+ const list = root.list();
264
+ const value = root.selected();
265
+ root.version();
266
+ untracked(() => {
267
+ if (list === null || value === void 0) {
268
+ box.set(null);
269
+ return;
270
+ }
271
+ const measure = () => {
272
+ const tab = list.ownerDocument.getElementById(root.tabId(value));
273
+ if (tab === null) {
274
+ box.set(null);
275
+ return;
276
+ }
277
+ box.set(tabsIndicatorBox(list, tab, getDirection(list) === "rtl"));
278
+ };
279
+ measure();
280
+ const view = list.ownerDocument.defaultView;
281
+ const observer = view?.ResizeObserver ? new view.ResizeObserver(measure) : null;
282
+ observer?.observe(list);
283
+ onCleanup(() => observer?.disconnect());
284
+ });
285
+ });
286
+ afterRenderEffect(() => {
287
+ const host = element();
288
+ const values = box();
289
+ if (host === null) return;
290
+ VARIABLES.forEach((name) => {
291
+ const value = values?.[name];
292
+ if (value === void 0) host.style.removeProperty(name);
293
+ else host.style.setProperty(name, value);
294
+ });
295
+ });
296
+ }
297
+ static {
298
+ this.ɵfac = i0.ɵɵngDeclareFactory({
299
+ minVersion: "12.0.0",
300
+ version: "22.2.6",
301
+ ngImport: i0,
302
+ type: TabsIndicator,
303
+ deps: [],
304
+ target: i0.ɵɵFactoryTarget.Directive
305
+ });
306
+ }
307
+ static {
308
+ this.ɵdir = i0.ɵɵngDeclareDirective({
309
+ minVersion: "17.1.0",
310
+ version: "22.2.6",
311
+ type: TabsIndicator,
312
+ isStandalone: true,
313
+ selector: "[tabsIndicator]",
314
+ inputs: {
315
+ renderBeforeHydration: {
316
+ classPropertyName: "renderBeforeHydration",
317
+ publicName: "tabsIndicator",
318
+ isSignal: true,
319
+ isRequired: false,
320
+ transformFunction: null
321
+ },
322
+ nonce: {
323
+ classPropertyName: "nonce",
324
+ publicName: "tabsIndicatorNonce",
325
+ isSignal: true,
326
+ isRequired: false,
327
+ transformFunction: null
328
+ }
329
+ },
330
+ exportAs: ["tabsIndicator"],
331
+ ngImport: i0
332
+ });
333
+ }
334
+ };
335
+ i0.ɵɵngDeclareClassMetadata({
336
+ minVersion: "12.0.0",
337
+ version: "22.2.6",
338
+ ngImport: i0,
339
+ type: TabsIndicator,
340
+ decorators: [{
341
+ type: Directive,
342
+ args: [{
343
+ selector: "[tabsIndicator]",
344
+ exportAs: "tabsIndicator"
345
+ }]
346
+ }],
347
+ ctorParameters: () => [],
348
+ propDecorators: {
349
+ renderBeforeHydration: [{
350
+ type: i0.Input,
351
+ args: [{
352
+ isSignal: true,
353
+ alias: "tabsIndicator",
354
+ required: false
355
+ }]
356
+ }],
357
+ nonce: [{
358
+ type: i0.Input,
359
+ args: [{
360
+ isSignal: true,
361
+ alias: "tabsIndicatorNonce",
362
+ required: false
363
+ }]
364
+ }]
365
+ }
366
+ });
367
+ var TabsList = class TabsList {
368
+ constructor() {
369
+ this.direction = injectProvidedDirection();
370
+ this.root = inject(TabsRoot);
371
+ this.state = computed(() => ({
372
+ orientation: this.root.orientation(),
373
+ activationDirection: this.root.activationDirection()
374
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
375
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
376
+ this.list = registerHost(this.root.list);
377
+ }
378
+ onKeyDown(event) {
379
+ const root = this.root;
380
+ const tabs = [...this.list.querySelectorAll("[role=\"tab\"]")];
381
+ const active = this.list.ownerDocument.activeElement;
382
+ const current = active ? tabs.indexOf(active) : -1;
383
+ if (current === -1) return;
384
+ if (event.key === "Enter" || event.key === " ") {
385
+ event.preventDefault();
386
+ const info = root.tabs.get(tabs[current]);
387
+ if (info && !info.disabled) root.select(info.value, "trigger-press");
388
+ return;
389
+ }
390
+ const index = tabsKeyTarget(event.key, current, tabs.length, {
391
+ orientation: root.orientation(),
392
+ rtl: getDirection(this.list, this.direction()) === "rtl",
393
+ loop: root.loopFocus()
394
+ });
395
+ if (index === null) return;
396
+ event.preventDefault();
397
+ const target = tabs[index];
398
+ if (target === void 0) return;
399
+ target.focus();
400
+ const info = root.tabs.get(target);
401
+ if (root.activation() === "automatic" && info && !info.disabled) root.select(info.value, "list-navigation");
402
+ }
403
+ static {
404
+ this.ɵfac = i0.ɵɵngDeclareFactory({
405
+ minVersion: "12.0.0",
406
+ version: "22.2.6",
407
+ ngImport: i0,
408
+ type: TabsList,
409
+ deps: [],
410
+ target: i0.ɵɵFactoryTarget.Directive
411
+ });
412
+ }
413
+ static {
414
+ this.ɵdir = i0.ɵɵngDeclareDirective({
415
+ minVersion: "14.0.0",
416
+ version: "22.2.6",
417
+ type: TabsList,
418
+ isStandalone: true,
419
+ selector: "[tabsList]",
420
+ host: {
421
+ attributes: {
422
+ "role": "tablist",
423
+ "data-primitives-part": "tabs-list"
424
+ },
425
+ listeners: { "keydown": "onKeyDown($event)" },
426
+ properties: {
427
+ "attr.aria-orientation": "root.orientation()",
428
+ "attr.data-orientation": "data().orientation",
429
+ "attr.data-activation-direction": "data().activationDirection"
430
+ }
431
+ },
432
+ exportAs: ["tabsList"],
433
+ ngImport: i0
434
+ });
435
+ }
436
+ };
437
+ i0.ɵɵngDeclareClassMetadata({
438
+ minVersion: "12.0.0",
439
+ version: "22.2.6",
440
+ ngImport: i0,
441
+ type: TabsList,
442
+ decorators: [{
443
+ type: Directive,
444
+ args: [{
445
+ selector: "[tabsList]",
446
+ exportAs: "tabsList",
447
+ host: {
448
+ role: "tablist",
449
+ "data-primitives-part": "tabs-list",
450
+ "[attr.aria-orientation]": "root.orientation()",
451
+ "[attr.data-orientation]": "data().orientation",
452
+ "[attr.data-activation-direction]": "data().activationDirection",
453
+ "(keydown)": "onKeyDown($event)"
454
+ }
455
+ }]
456
+ }]
457
+ });
458
+ var TabsPanel = class TabsPanel {
459
+ constructor() {
460
+ this.root = inject(TabsRoot);
461
+ this.value = input.required({
462
+ ...ngDevMode ? { debugName: "value" } : /* istanbul ignore next */ {},
463
+ alias: "tabsPanel"
464
+ });
465
+ this.keepMounted = input(false, {
466
+ ...ngDevMode ? { debugName: "keepMounted" } : /* istanbul ignore next */ {},
467
+ alias: "tabsPanelKeepMounted",
468
+ transform: booleanAttribute
469
+ });
470
+ this.selected = computed(() => this.root.selected() === this.value(), ...ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []);
471
+ this.view = { element: null };
472
+ this.presence = createPresence(this.selected, computed(() => this.view.element?.() ?? null), { enterOnMount: false });
473
+ this.state = computed(() => ({
474
+ selected: this.selected(),
475
+ orientation: this.root.orientation(),
476
+ activationDirection: this.root.activationDirection(),
477
+ transitionStatus: this.presence.status()
478
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
479
+ const presence = this.presence;
480
+ const element = conditionalView(computed(() => presence.mounted() || this.keepMounted()));
481
+ this.view.element = element;
482
+ effect(() => {
483
+ const panel = element();
484
+ if (panel === null) return;
485
+ const state = this.state();
486
+ const value = this.value();
487
+ const mounted = presence.mounted();
488
+ writeAttributes(panel, {
489
+ role: "tabpanel",
490
+ id: this.root.panelId(value),
491
+ "aria-labelledby": this.root.tabId(value),
492
+ tabindex: "0",
493
+ hidden: mounted ? null : "",
494
+ inert: !state.selected && mounted ? "" : null,
495
+ "data-primitives-part": "tabs-panel",
496
+ ...dataAttributes({
497
+ selected: state.selected,
498
+ orientation: state.orientation,
499
+ "activation-direction": state.activationDirection,
500
+ "starting-style": state.transitionStatus === "starting",
501
+ "ending-style": state.transitionStatus === "ending"
502
+ })
503
+ });
504
+ });
505
+ }
506
+ static {
507
+ this.ɵfac = i0.ɵɵngDeclareFactory({
508
+ minVersion: "12.0.0",
509
+ version: "22.2.6",
510
+ ngImport: i0,
511
+ type: TabsPanel,
512
+ deps: [],
513
+ target: i0.ɵɵFactoryTarget.Directive
514
+ });
515
+ }
516
+ static {
517
+ this.ɵdir = i0.ɵɵngDeclareDirective({
518
+ minVersion: "17.1.0",
519
+ version: "22.2.6",
520
+ type: TabsPanel,
521
+ isStandalone: true,
522
+ selector: "[tabsPanel]",
523
+ inputs: {
524
+ value: {
525
+ classPropertyName: "value",
526
+ publicName: "tabsPanel",
527
+ isSignal: true,
528
+ isRequired: true,
529
+ transformFunction: null
530
+ },
531
+ keepMounted: {
532
+ classPropertyName: "keepMounted",
533
+ publicName: "tabsPanelKeepMounted",
534
+ isSignal: true,
535
+ isRequired: false,
536
+ transformFunction: null
537
+ }
538
+ },
539
+ exportAs: ["tabsPanel"],
540
+ ngImport: i0
541
+ });
542
+ }
543
+ };
544
+ i0.ɵɵngDeclareClassMetadata({
545
+ minVersion: "12.0.0",
546
+ version: "22.2.6",
547
+ ngImport: i0,
548
+ type: TabsPanel,
549
+ decorators: [{
550
+ type: Directive,
551
+ args: [{
552
+ selector: "[tabsPanel]",
553
+ exportAs: "tabsPanel"
554
+ }]
555
+ }],
556
+ ctorParameters: () => [],
557
+ propDecorators: {
558
+ value: [{
559
+ type: i0.Input,
560
+ args: [{
561
+ isSignal: true,
562
+ alias: "tabsPanel",
563
+ required: true
564
+ }]
565
+ }],
566
+ keepMounted: [{
567
+ type: i0.Input,
568
+ args: [{
569
+ isSignal: true,
570
+ alias: "tabsPanelKeepMounted",
571
+ required: false
572
+ }]
573
+ }]
574
+ }
575
+ });
576
+ var TabsTab = class TabsTab {
577
+ constructor() {
578
+ this.root = inject(TabsRoot);
579
+ this.value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
580
+ this.disabled = input(false, {
581
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
582
+ transform: booleanAttribute
583
+ });
584
+ this.host = injectHost();
585
+ this.state = computed(() => ({
586
+ selected: this.root.selected() === this.value(),
587
+ disabled: this.disabled(),
588
+ orientation: this.root.orientation(),
589
+ activationDirection: this.root.activationDirection()
590
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
591
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
592
+ this.holdsTabStop = computed(() => {
593
+ if (this.root.selected() !== void 0) return this.state().selected;
594
+ this.root.version();
595
+ return this.root.list()?.querySelector("[role=\"tab\"]") === this.host;
596
+ }, ...ngDevMode ? [{ debugName: "holdsTabStop" }] : /* istanbul ignore next */ []);
597
+ const root = this.root;
598
+ effect(() => {
599
+ root.tabs.set(this.host, {
600
+ value: this.value(),
601
+ disabled: this.disabled()
602
+ });
603
+ root.version.update((current) => current + 1);
604
+ });
605
+ inject(DestroyRef).onDestroy(() => root.tabs.delete(this.host));
606
+ }
607
+ onClick() {
608
+ if (!this.disabled()) this.root.select(this.value(), "trigger-press");
609
+ }
610
+ static {
611
+ this.ɵfac = i0.ɵɵngDeclareFactory({
612
+ minVersion: "12.0.0",
613
+ version: "22.2.6",
614
+ ngImport: i0,
615
+ type: TabsTab,
616
+ deps: [],
617
+ target: i0.ɵɵFactoryTarget.Directive
618
+ });
619
+ }
620
+ static {
621
+ this.ɵdir = i0.ɵɵngDeclareDirective({
622
+ minVersion: "17.1.0",
623
+ version: "22.2.6",
624
+ type: TabsTab,
625
+ isStandalone: true,
626
+ selector: "[tabsTab]",
627
+ inputs: {
628
+ value: {
629
+ classPropertyName: "value",
630
+ publicName: "value",
631
+ isSignal: true,
632
+ isRequired: true,
633
+ transformFunction: null
634
+ },
635
+ disabled: {
636
+ classPropertyName: "disabled",
637
+ publicName: "disabled",
638
+ isSignal: true,
639
+ isRequired: false,
640
+ transformFunction: null
641
+ }
642
+ },
643
+ host: {
644
+ attributes: {
645
+ "type": "button",
646
+ "role": "tab",
647
+ "data-primitives-part": "tabs-tab"
648
+ },
649
+ listeners: { "click": "onClick()" },
650
+ properties: {
651
+ "attr.id": "root.tabId(value())",
652
+ "attr.aria-selected": "state().selected ? 'true' : 'false'",
653
+ "attr.aria-controls": "root.panelId(value())",
654
+ "attr.aria-disabled": "state().disabled ? 'true' : null",
655
+ "attr.tabindex": "holdsTabStop() ? 0 : -1",
656
+ "attr.data-selected": "data().selected",
657
+ "attr.data-disabled": "data().disabled",
658
+ "attr.data-orientation": "data().orientation",
659
+ "attr.data-activation-direction": "data().activationDirection"
660
+ }
661
+ },
662
+ exportAs: ["tabsTab"],
663
+ ngImport: i0
664
+ });
665
+ }
666
+ };
667
+ i0.ɵɵngDeclareClassMetadata({
668
+ minVersion: "12.0.0",
669
+ version: "22.2.6",
670
+ ngImport: i0,
671
+ type: TabsTab,
672
+ decorators: [{
673
+ type: Directive,
674
+ args: [{
675
+ selector: "[tabsTab]",
676
+ exportAs: "tabsTab",
677
+ host: {
678
+ type: "button",
679
+ role: "tab",
680
+ "data-primitives-part": "tabs-tab",
681
+ "[attr.id]": "root.tabId(value())",
682
+ "[attr.aria-selected]": "state().selected ? 'true' : 'false'",
683
+ "[attr.aria-controls]": "root.panelId(value())",
684
+ "[attr.aria-disabled]": "state().disabled ? 'true' : null",
685
+ "[attr.tabindex]": "holdsTabStop() ? 0 : -1",
686
+ "[attr.data-selected]": "data().selected",
687
+ "[attr.data-disabled]": "data().disabled",
688
+ "[attr.data-orientation]": "data().orientation",
689
+ "[attr.data-activation-direction]": "data().activationDirection",
690
+ "(click)": "onClick()"
691
+ }
692
+ }]
693
+ }],
694
+ ctorParameters: () => [],
695
+ propDecorators: {
696
+ value: [{
697
+ type: i0.Input,
698
+ args: [{
699
+ isSignal: true,
700
+ alias: "value",
701
+ required: true
702
+ }]
703
+ }],
704
+ disabled: [{
705
+ type: i0.Input,
706
+ args: [{
707
+ isSignal: true,
708
+ alias: "disabled",
709
+ required: false
710
+ }]
711
+ }]
712
+ }
713
+ });
714
+ function injectTabs() {
715
+ const root = injectEnclosing(TabsRoot, "tabsRoot", "injectTabs");
716
+ return {
717
+ state: computed(() => ({
718
+ ...root.state(),
719
+ value: root.selected()
720
+ })),
721
+ select: (value) => root.select(value, "none")
722
+ };
723
+ }
724
+ export { TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, injectTabs };
725
+
726
+ //# sourceMappingURL=fragiola-primitives-angular-tabs.mjs.map