@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,695 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ElementRef, InjectionToken, OutputEmitterRef, ProviderToken, Signal, WritableSignal } from "@angular/core";
3
+ import { Color } from "@fragiola/primitives/color";
4
+ import { watchFileDrop } from "@fragiola/primitives/file";
5
+ import { Align, Side, VirtualAnchor } from "@fragiola/primitives/positioning";
6
+ import { Direction } from "@fragiola/primitives/direction";
7
+ import { RovingOrientation } from "@fragiola/primitives/collection";
8
+ import { VirtualRange, Virtualizer, createVirtualizer } from "@fragiola/primitives/virtual";
9
+ export type ButtonType = "button" | "submit" | "reset";
10
+ export interface ButtonOptions {
11
+ disabled: boolean;
12
+ focusableWhenDisabled: boolean;
13
+ nativeButton: boolean;
14
+ type: ButtonType | undefined;
15
+ /** The consumer's own `tabindex` (or a composite's roving one), or `null`. */
16
+ tabIndex: string | null;
17
+ }
18
+ /** A button's attributes (spec/button.md, "State attributes and ARIA"); `null` removes one. */
19
+ export declare function buttonAttributes(options: ButtonOptions): {
20
+ type: ButtonType;
21
+ role: null;
22
+ disabled: string | null;
23
+ "aria-disabled": string | null;
24
+ tabindex: string | null;
25
+ } | {
26
+ type: ButtonType | null;
27
+ role: string;
28
+ disabled: null;
29
+ "aria-disabled": string | null;
30
+ tabindex: string;
31
+ };
32
+ /**
33
+ * What a non-native button does with a key a native button would act on (spec/button.md,
34
+ * "Keyboard"): Enter clicks on its key down; Space only prevents its key down (no scroll) and
35
+ * clicks on its key up. `null` for any other key.
36
+ */
37
+ export declare function nativeKeyAction(type: "keydown" | "keyup", key: string): "click" | "prevent" | "click-on-keyup" | null;
38
+ export interface ButtonBehaviourOptions {
39
+ disabled: () => boolean;
40
+ nativeButton: () => boolean;
41
+ /**
42
+ * An item of a roving composite (a toolbar's button, a Toggle in a group): while disabled and
43
+ * focusable, the composite's keys still reach the composite (spec/toolbar.md, "Disabled
44
+ * items"), handed to it here since the consumer's handlers are stopped. `null` outside one.
45
+ */
46
+ composite?: () => ((event: KeyboardEvent) => void) | null;
47
+ }
48
+ /**
49
+ * A button's behaviour on its host (spec/button.md), shared by Button, Toggle and
50
+ * Toolbar.Button (the package's own code, not the `/button` entry), in an injection context.
51
+ * While disabled, no press, pointer down or key but Tab reaches the consumer's handlers: a
52
+ * capturing listener on the element stops them first. A non-native button gets the keys a
53
+ * native button has, after the consumer's own handlers.
54
+ */
55
+ export declare function buttonBehaviour(host: HTMLElement, options: ButtonBehaviourOptions): void;
56
+ /** Why a value or an open state changed (spec/README.md, "Change details"). */
57
+ export type ChangeReason = "trigger-press" | "close-press" | "escape-key" | "outside-press" | "focus-out" | "item-press" | "list-navigation" | "input-change" | "input-press" | "input-clear" | "input-blur" | "input-paste" | "clear-press" | "submit-press" | "cancel-press" | "chip-remove-press" | "trigger-hover" | "trigger-focus" | "keyboard" | "increment-press" | "decrement-press" | "wheel" | "scrub" | "track-press" | "drag" | "swipe" | "previous-press" | "next-press" | "first-press" | "last-press" | "autoplay" | "focus-in" | "imperative-action" | "page-change" | "backspace-key" | "drop" | "delete-press" | "none";
58
+ /** What a change reports besides its value (spec/README.md, "Change details"). */
59
+ export interface ChangeDetails {
60
+ reason: ChangeReason;
61
+ /** The DOM event that caused it, when known; `undefined` when programmatic. */
62
+ event?: Event | undefined;
63
+ }
64
+ /** What an overlay's open change reports (spec/README.md, "Open change details"). */
65
+ export interface OpenChangeDetails extends ChangeDetails {
66
+ /** The DOM event that caused it; `undefined` when programmatic. */
67
+ event: Event | undefined;
68
+ /** The trigger the change is associated with: the pressed one, else the active one. */
69
+ trigger: HTMLElement | undefined;
70
+ /** Called while `(openChangeDetails)` is handled: the change does not happen. */
71
+ cancel(): void;
72
+ readonly isCanceled: boolean;
73
+ /** A close: the popup stays mounted (`data-ending-style`) until the root's `unmount()`. */
74
+ preventUnmountOnClose(): void;
75
+ }
76
+ /** An overlay's imperative actions: public methods of its root directive (spec/README.md, "Lifecycle"). */
77
+ export interface OverlayActions {
78
+ /** Closes the overlay (reason `imperative-action`). */
79
+ close(): void;
80
+ /** Ends a running exit now, or the exit held by `preventUnmountOnClose()`. */
81
+ unmount(): void;
82
+ }
83
+ /**
84
+ * What `(openChangeDetails)` emits: the new open state and why. An overlay emits it before the
85
+ * state changes, with its `OpenChangeDetails` (`details.cancel()` keeps the state as it is;
86
+ * `(openChange)` then emits nothing); a disclosure (Collapsible) with `ChangeDetails`.
87
+ */
88
+ export interface OpenChangeEvent<Details extends ChangeDetails = OpenChangeDetails> {
89
+ open: boolean;
90
+ details: Details;
91
+ }
92
+ /** The details of one open change; `held` tells whether `preventUnmountOnClose()` was called. */
93
+ export declare function createOpenChangeDetails(reason: ChangeReason, event: Event | undefined, trigger: HTMLElement | undefined): {
94
+ details: OpenChangeDetails;
95
+ held: () => boolean;
96
+ };
97
+ /** What `(valueChangeDetails)` emits: the new value and why it changed. */
98
+ export interface ValueChangeEvent<T> {
99
+ value: T;
100
+ details: ChangeDetails;
101
+ }
102
+ /**
103
+ * An element to focus: an element (a template reference variable on it), an `ElementRef`, a
104
+ * getter read when the focus moves, or `false` for none.
105
+ */
106
+ export type FocusTarget = HTMLElement | ElementRef<HTMLElement> | (() => HTMLElement | null) | false | null | undefined;
107
+ export declare function resolveFocusTarget(target: FocusTarget): HTMLElement | null | false;
108
+ /**
109
+ * What a `[colorPickerRoot]` shares with the color controls inside it (spec/color-picker.md,
110
+ * "Sharing the color"). The token lives in the package's shared code, as a ToggleGroup's does, so
111
+ * a color control used alone ships none of ColorPicker's code (D8).
112
+ */
113
+ export interface ColorPickerBinding {
114
+ /** The picker's color. */
115
+ readonly value: Signal<Color>;
116
+ /** Every control inside is disabled. */
117
+ readonly disabled: Signal<boolean>;
118
+ /** A bound control changed it. */
119
+ setValue: (color: Color, details: ChangeDetails) => void;
120
+ /** A bound control's change is complete. */
121
+ commit: (color: Color, details: ChangeDetails) => void;
122
+ /**
123
+ * The picker's popup (its positioner, portalled out of the Root) is part of the picker: focus
124
+ * in it is focus in the picker's Field control. Returns its cleanup.
125
+ */
126
+ registerPopup: (element: HTMLElement) => () => void;
127
+ }
128
+ export declare const COLOR_PICKER_BINDING: InjectionToken<ColorPickerBinding>;
129
+ /** The enclosing ColorPicker's binding, or `null` outside one. */
130
+ export declare function injectColorPickerBinding(): ColorPickerBinding | null;
131
+ /**
132
+ * A structural part's view (spec/README.md, API mapping: Angular, "a part rendered only in some
133
+ * states is structural"): renders the directive's template while `show()` is true, in its
134
+ * directive's injection context, and returns the element it rendered (`null` while hidden), on
135
+ * which the directive writes its attributes and listens. `setup` runs on each element it renders,
136
+ * before it is shown.
137
+ */
138
+ export declare function conditionalView(show: Signal<boolean>, setup?: (element: HTMLElement) => void): Signal<HTMLElement | null>;
139
+ /** Writes `attributes` on `element` (`null` removes one). */
140
+ export declare function writeAttributes(element: HTMLElement, attributes: Record<string, string | null>): void;
141
+ export interface Controllable<T, Details> {
142
+ value: Signal<T>;
143
+ set: (next: T, details: Details) => void;
144
+ }
145
+ /**
146
+ * A value given as an input with its `*Change` output (spec/README.md, API mapping: Angular):
147
+ * controlled when the consumer binds it (`[(open)]` or a one-way `[open]`), which it only reports
148
+ * through the output; its own otherwise, seeded once by `fallback()` (the `default*` input, read on
149
+ * first use, after the inputs are set). Not a `model()`: a model writes its own value on change,
150
+ * so a one-way binding, or a consumer keeping the old value, would lose control.
151
+ */
152
+ export declare function controllable<T, Details>(bound: Signal<T | undefined>, change: Pick<OutputEmitterRef<T>, "emit">, fallback: () => T, onChange: (value: T, details: Details) => void): Controllable<T, Details>;
153
+ export interface FileDropTargetOptions {
154
+ /** The toolkit's `watchFileDrop`, passed in by the entry that imports `/file`. */
155
+ watch: typeof watchFileDrop;
156
+ disabled: Signal<boolean>;
157
+ /** Files dropped (`drop`) or pasted (`input-paste`). */
158
+ onFiles: (files: File[], reason: ChangeReason, event: Event) => void;
159
+ /** A drag of files entered or left. */
160
+ onDropTargetChange?: (active: boolean, event: Event) => void;
161
+ /** A click, Enter or Space: the file dialog's opening. */
162
+ onActivate: (event: Event) => void;
163
+ }
164
+ /**
165
+ * A drop target for files on `host` (spec/drop-zone.md), in its directive's injection context:
166
+ * the toolkit's `watchFileDrop` once the page renders in the browser, and its drag state for
167
+ * `data-drop-target` (none while disabled). DropZone's Root and FileUpload's Dropzone share it.
168
+ */
169
+ export declare function fileDropTarget(host: HTMLElement, options: FileDropTargetOptions): Signal<boolean>;
170
+ /**
171
+ * Renders a state change at once, from an event handler (spec/menu.md, "Keyboard": a key that
172
+ * opens or closes a level moves the focus before the next key arrives). React renders the state a
173
+ * discrete event set before the next one; Angular's zoneless scheduler renders it in a later task,
174
+ * after input that the browser already queued (two quick ArrowDown presses would both reach the
175
+ * trigger). A change made during change detection (an overlay closed because the overlay it was
176
+ * opened from closed, from that one's after-render cleanup) is rendered by the running pass, which
177
+ * refreshes the views it marked: the nested tick is skipped.
178
+ */
179
+ export declare function injectFlush(): () => void;
180
+ /**
181
+ * A form control's hidden input (spec/README.md, "Forms"), created by the directive itself: a
182
+ * root on an `<ng-container>` has no element to render it in, and a part on the consumer's own
183
+ * element (the checkbox's `<button>`) cannot add a sibling from a template. It goes right after
184
+ * `anchor` (the container's comment, or the host element), as React renders it after its part,
185
+ * with the structural hidden style unless it is `type="hidden"`; it is removed with the directive.
186
+ * It is inserted after the first render (Epic #22: server rendering and hydration). With `present`,
187
+ * it is in the page only while `present()` is true (a picker's input, only while it has a name),
188
+ * inserted and removed after the render that changed it.
189
+ */
190
+ export declare function createHiddenInput(anchor: Node, attributes: Record<string, string>, present?: Signal<boolean>): HTMLInputElement;
191
+ /** Sets or removes an attribute of the hidden input (`null` removes it). */
192
+ export declare function setInputAttribute(input: HTMLInputElement, name: string, value: string | null): void;
193
+ /** The element a part's directive sits on (the consumer's own element: Angular's `render`). */
194
+ export declare function injectHost<T extends HTMLElement = HTMLElement>(): T;
195
+ /**
196
+ * Registers the host element in its root (`trigger`, `popup`, ...) for as long as the directive
197
+ * lives, and returns it. A later element of the same part keeps its place.
198
+ */
199
+ export declare function registerHost<T extends HTMLElement = HTMLElement>(target: WritableSignal<HTMLElement | null>): T;
200
+ /** The directive of the enclosing part, or an error naming the part and the function. */
201
+ export declare function injectEnclosing<T>(token: ProviderToken<T>, selector: string, fn: string): T;
202
+ /** The application's id counter: one per application, so a server render starts where the browser does. */
203
+ export declare class IdCounter {
204
+ private readonly appId;
205
+ private count;
206
+ /** The next id: `primitives-dialog-1`, then `-2`, ... (`primitives-dialog-<app>-1` in an app given its own `APP_ID`). */
207
+ next(prefix: string): string;
208
+ static ɵfac: i0.ɵɵFactoryDeclaration<IdCounter, never>;
209
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
210
+ }
211
+ /**
212
+ * A document-unique id from the application's own counter (Epic #22), in an injection context.
213
+ * The toolkit's `createId` counts for the whole JavaScript realm: on a server that renders many
214
+ * pages, its ids would never be the browser's, and a hydrated page would change them all.
215
+ */
216
+ export declare function injectId(prefix?: string): string;
217
+ /**
218
+ * The id of a part that names or describes another (a title, a description, a group label): the
219
+ * consumer's `id` input or a generated one, registered in `target` (the root's `titleId`, ...) for
220
+ * as long as the part lives.
221
+ */
222
+ export declare function labelId(id: Signal<string | undefined>, target: WritableSignal<string | undefined>, prefix: string): Signal<string>;
223
+ /**
224
+ * A disabled link's press (spec/link.md, "Pointer"), shared by Link and Breadcrumbs' Link (not the
225
+ * `/link` entry): a native click listener on the host anchor, in the capture phase, that prevents
226
+ * the click's default (no navigation) and stops it there while `disabled()`, so no listener of the
227
+ * anchor or around it runs after it: the consumer's `(click)` and a `routerLink` on the same anchor
228
+ * included (Angular's `RouterLink` does not check `defaultPrevented`). Button's disabled-press
229
+ * rule, for an anchor. In an injection context.
230
+ */
231
+ export declare function injectLinkPress(disabled: () => boolean): void;
232
+ /**
233
+ * A polite live region (spec/drop-zone.md, spec/file-upload.md), in its directive's injection
234
+ * context: appended as the host's last child after the first render (a server renders none, as
235
+ * Clipboard's announcer), removed with the directive. The entry writes into it with the toolkit's
236
+ * `announceText`.
237
+ */
238
+ export declare function createLiveRegion(host: HTMLElement, part: string): HTMLSpanElement;
239
+ /** The inputs and outputs every overlay root directive declares (spec/README.md, "Overlays"). */
240
+ export interface OverlayRootInputs {
241
+ open: Signal<boolean | undefined>;
242
+ openChange: Pick<OutputEmitterRef<boolean>, "emit">;
243
+ defaultOpen: Signal<boolean>;
244
+ /** `(openChangeComplete)`: an opening's or a closing's transition finished. */
245
+ openChangeComplete?: Pick<OutputEmitterRef<boolean>, "emit">;
246
+ /** The active trigger's id, controlled together with `open` (detached triggers). */
247
+ triggerId?: Signal<string | null | undefined>;
248
+ defaultTriggerId?: Signal<string | null | undefined>;
249
+ }
250
+ /** The options of one `setOpen` call. */
251
+ export interface SetOpenOptions {
252
+ /** An explicit payload (a handle's `openWithPayload`). */
253
+ payload?: {
254
+ value: unknown;
255
+ };
256
+ /** It moves to a trigger not rendered yet (a handle's `open(id)`). */
257
+ movesUnrendered?: boolean;
258
+ }
259
+ /**
260
+ * The state every overlay root shares: open (bound or its own) with its last reason, the
261
+ * triggers (one set through `singleTrigger`, or any number registered by their id), the active
262
+ * trigger, its payload, the positioner and popup elements, ids, the presence of the popup (mounted
263
+ * while its exit animation runs), and the handle's and the actions' entry points. Created in a root
264
+ * directive's injection context.
265
+ *
266
+ * `setOpen` emits `openChangeDetails` before it changes the state, and returns whether the change
267
+ * happened (a canceled one, or one with nothing to change, did not); it is called from event
268
+ * handlers, and renders the change at once (`injectFlush`).
269
+ *
270
+ * `lastReason` is the reason of the change that made the current `open`: `null` when the bound
271
+ * `open` changed with no request of the overlay's own (a close the consumer made), so a close
272
+ * never reuses an earlier change's reason for its focus return.
273
+ */
274
+ export declare function createOverlayRoot(inputs: OverlayRootInputs, emit: (event: OpenChangeEvent) => void, prefix: string): {
275
+ open: Signal<boolean>;
276
+ setOpen: (next: boolean, reason: ChangeReason, event?: Event, pressed?: HTMLElement | null, options?: SetOpenOptions) => boolean;
277
+ lastReason: {
278
+ current: ChangeReason | null;
279
+ };
280
+ /** The active trigger: the registered one, else the single one. */
281
+ trigger: Signal<HTMLElement | null>;
282
+ /** The trigger of an overlay with one trigger (`registerHost(overlay.singleTrigger)`). */
283
+ singleTrigger: import("@angular/core").WritableSignal<HTMLElement | null>;
284
+ /** Every trigger of the overlay (its layer's `ignore` and `owner`). */
285
+ triggers: Signal<HTMLElement[]>;
286
+ activeTriggerId: Signal<string | null>;
287
+ /** The payload of the active trigger (or of `openWithPayload`). */
288
+ payload: Signal<unknown>;
289
+ /** Registers a trigger by its id while it lives; returns its unregistration. */
290
+ registerTrigger: (triggerId: string, element: HTMLElement, triggerPayload: Signal<unknown>) => (() => void);
291
+ positioner: import("@angular/core").WritableSignal<HTMLElement | null>;
292
+ popup: import("@angular/core").WritableSignal<HTMLElement | null>;
293
+ presence: import("@fragiola/primitives-angular/internal").Presence;
294
+ /** The id of a single trigger with none of its own. */
295
+ triggerId: string;
296
+ popupId: string;
297
+ openFromHandle: (triggerId: string | null) => void;
298
+ openWithPayload: (value: unknown) => void;
299
+ closeFromHandle: () => void;
300
+ close: () => void;
301
+ unmount: () => void;
302
+ };
303
+ export type OverlayRoot = ReturnType<typeof createOverlayRoot>;
304
+ /**
305
+ * A handle of detached triggers (spec/README.md, "Detached triggers"): it connects a root directive
306
+ * and trigger directives rendered anywhere. The open state and the payload stay in the root; the
307
+ * handle holds the attached root, which its triggers read, and forwards its methods to it. A call
308
+ * while no root is attached does nothing.
309
+ */
310
+ export interface OverlayHandle<Payload = unknown> {
311
+ /** Opens from the trigger of this id (the active trigger), or with no trigger (`null`). */
312
+ open(triggerId: string | null): void;
313
+ /** Opens with this payload and no trigger. */
314
+ openWithPayload(payload: Payload): void;
315
+ /** Closes it (reason `imperative-action`). */
316
+ close(): void;
317
+ readonly isOpen: boolean;
318
+ }
319
+ /** What a root directive attaches to its handle: itself, with its overlay state. */
320
+ export interface HandleRoot {
321
+ readonly overlay: OverlayRoot;
322
+ }
323
+ /**
324
+ * The handle object of every overlay (each component types it with its own name). The roots
325
+ * attached to it form a stack: the newest one serves the handle, and detaching it gives the
326
+ * handle back to the previous one.
327
+ */
328
+ export declare class OverlayHandleStore<Payload = unknown> implements OverlayHandle<Payload> {
329
+ private readonly stack;
330
+ private readonly attached;
331
+ /** The component it belongs to (`"dialog"`, `"menu"`, ...): a handle serves one kind. */
332
+ readonly component: string;
333
+ constructor(component: string);
334
+ /** The attached root, `null` until one is attached (a signal its triggers render from). */
335
+ readonly root: Signal<HandleRoot | null>;
336
+ /** Puts a root on top of the stack (again, if it already was attached). */
337
+ attach(root: HandleRoot): void;
338
+ /** Takes a root off the stack: the previous one serves the handle when it was on top. */
339
+ detach(root: HandleRoot): void;
340
+ open(triggerId: string | null): void;
341
+ openWithPayload(payload: Payload): void;
342
+ close(): void;
343
+ get isOpen(): boolean;
344
+ }
345
+ /**
346
+ * Attaches a root directive to its `[handle]` while it is set, in the root's injection context.
347
+ */
348
+ export declare function attachHandle(handle: Signal<OverlayHandle<never> | undefined>, root: HandleRoot): void;
349
+ /** What a trigger directive of an overlay with detached triggers declares. */
350
+ export interface OverlayTriggerInputs {
351
+ /** The handle of a root this trigger opens from anywhere (spec/README.md, "Detached triggers"). */
352
+ handle: Signal<OverlayHandle<never> | undefined>;
353
+ /** What the root's `payload()` gives while this trigger is the active one. */
354
+ payload: Signal<unknown>;
355
+ /** The trigger's id (generated when not given): `triggerId` and the handle's `open` name it. */
356
+ id: Signal<string | undefined>;
357
+ }
358
+ /**
359
+ * A trigger of an overlay with detached triggers, in its directive's injection context: its root
360
+ * (the enclosing root directive, or the one attached to its `[handle]`, `null` until that root is
361
+ * attached), its id, its registration with the root while it lives, and whether it is the active
362
+ * trigger of the open overlay.
363
+ */
364
+ export declare function overlayTrigger<Root extends HandleRoot>(enclosing: Root | null, inputs: OverlayTriggerInputs, options: {
365
+ prefix: string;
366
+ selector: string;
367
+ }): {
368
+ root: Signal<Root | null>;
369
+ id: Signal<string>;
370
+ active: Signal<boolean>;
371
+ host: HTMLElement;
372
+ };
373
+ /**
374
+ * The consumer's own static attribute on the host element (`aria-labelledby="..."`), or `null`. A
375
+ * part that binds the same attribute falls back to it, so a host binding never removes it.
376
+ */
377
+ export declare function ownAttribute(name: string): string | null;
378
+ export type TransitionStatus = "starting" | "ending" | undefined;
379
+ export interface Presence {
380
+ /** Whether the element is rendered: open, or closing while its exit animation runs. */
381
+ mounted: Signal<boolean>;
382
+ status: Signal<TransitionStatus>;
383
+ /** Keeps the next exit running until `finish()` (a close's `preventUnmountOnClose()`). */
384
+ hold: () => void;
385
+ /** Ends a running exit now (the root's `unmount()`). */
386
+ finish: () => void;
387
+ }
388
+ export interface PresenceOptions {
389
+ /** Whether an element open on the first render starts with `data-starting-style` (`true`). */
390
+ enterOnMount?: boolean;
391
+ /**
392
+ * Called once an opening's starting frame ended and its animations finished (`true`), and once
393
+ * an exit's animations finished (`false`); never on the first render, nor for an exit a
394
+ * reopening interrupted (spec/README.md, "Lifecycle").
395
+ */
396
+ onComplete?: (open: boolean) => void;
397
+ }
398
+ /**
399
+ * Keeps an element mounted while its exit animation runs (spec/dialog.md, "Animation"):
400
+ * `data-starting-style` for the first frame after mounting, `data-ending-style` until every
401
+ * animation on the element has finished. The status derives from `open` in the same pass, so the
402
+ * element's first render (or a kept-mounted element shown again) already carries
403
+ * `data-starting-style`; the effect only clears it.
404
+ *
405
+ * The effect runs after rendering (`afterRenderEffect`), as React's and Vue's post-render effects:
406
+ * the exit is awaited once the element carries `data-ending-style`, so its transition has started.
407
+ * A plain `effect` runs before the view is refreshed, finds no animation, and unmounts at once.
408
+ */
409
+ export declare function createPresence(open: Signal<boolean>, element: Signal<HTMLElement | null>, options?: PresenceOptions): Presence;
410
+ export interface PanelOptions {
411
+ /** Keep a closed panel in the DOM, `hidden` (default `false`). */
412
+ keepMounted?: boolean;
413
+ /** Keep a closed panel in the DOM, `hidden="until-found"`: find-in-page opens it. */
414
+ hiddenUntilFound?: boolean;
415
+ }
416
+ /**
417
+ * A disclosure panel's options from its structural directive's main input:
418
+ * `*collapsiblePanel` alone gives `""` (none), `*collapsiblePanel="{ keepMounted: true }"` the
419
+ * object.
420
+ */
421
+ export declare function panelOptions(value: unknown): PanelOptions;
422
+ export interface PanelTransitionOptions {
423
+ open: Signal<boolean>;
424
+ /** The size variables' prefix: `collapsible` gives `--collapsible-panel-height`. */
425
+ prefix: string;
426
+ options: Signal<PanelOptions>;
427
+ /** The browser's find-in-page matched the closed panel's content: open it. */
428
+ onFound: () => void;
429
+ }
430
+ export interface PanelTransition {
431
+ /** The panel's element while it is rendered, else `null`. */
432
+ element: Signal<HTMLElement | null>;
433
+ status: Signal<TransitionStatus>;
434
+ /** The `hidden` attribute's value: `""`, `"until-found"`, or `null` while shown. */
435
+ hidden: Signal<string | null>;
436
+ /** The size variables' values (`auto` at rest, pixels while a transition runs). */
437
+ variables: Signal<Record<string, string>>;
438
+ }
439
+ /**
440
+ * A disclosure panel's view and its open and close mechanics (spec/collapsible.md, "Animation"
441
+ * and "Find in page"), shared by Collapsible and Accordion: the structural directive's view,
442
+ * rendered while the panel is shown or exiting (always, when kept mounted), `data-starting-style`
443
+ * and `data-ending-style`, and the size variables, a length while a transition runs and `auto` at
444
+ * rest. A panel open on the first render, or opened by a find-in-page match, has no transition.
445
+ * Created in a structural directive's injection context.
446
+ *
447
+ * Closing measures the panel before `data-ending-style` reaches the DOM: a plain `effect` runs
448
+ * before the view is refreshed, so the element is still the open one when the size is frozen; the
449
+ * ending status is set after it. The ends of the transitions are awaited after rendering
450
+ * (`afterRenderEffect`), as `createPresence` does.
451
+ */
452
+ export declare function createPanelTransition({ open, prefix, options, onFound }: PanelTransitionOptions): PanelTransition;
453
+ /** Writes a panel's size variables on it (structural inline style). */
454
+ export declare function writeVariables(element: HTMLElement, variables: Record<string, string>): void;
455
+ /**
456
+ * The options of an overlay's structural portal (spec/README.md, API mapping: Angular):
457
+ * `*dialogPortal="{ keepMounted: true }"`, `*dialogPortal="{ container: element }"`, or
458
+ * `*dialogPortal="element"` for a container alone.
459
+ */
460
+ export interface OverlayPortalOptions {
461
+ /** Where the content goes (default: the document's `body`). */
462
+ container?: Element | null;
463
+ /**
464
+ * Keeps the content rendered while the overlay is closed (hidden), before its first opening
465
+ * and after an exit ends (default `false`; spec/README.md, "Lifecycle").
466
+ */
467
+ keepMounted?: boolean;
468
+ }
469
+ /**
470
+ * The structural portal (spec/README.md, API mapping: Angular): renders the directive's template
471
+ * while `mounted()` is true (always with `keepMounted`), and moves its nodes to the end of the
472
+ * container (default: the document's `body`), as React's `createPortal`. The view stays in its
473
+ * declaration's change detection and injectors; Angular inserts later nodes next to their anchors,
474
+ * which moved with it, and removes the nodes wherever they are when it clears the view. When the
475
+ * portal itself is destroyed with an enclosing view (a submenu's portal inside its parent's popup),
476
+ * Angular only detaches that view's own root nodes, so the portal removes the nodes it moved.
477
+ *
478
+ * A server render renders nothing: the content appears once the page runs in the browser
479
+ * (spec/README.md, "Lifecycle"), and the server never reads a `document` it does not have.
480
+ */
481
+ export declare function mountPortal(mounted: Signal<boolean>, options: Signal<OverlayPortalOptions>): void;
482
+ /**
483
+ * The portal's input transform: `*dialogPortal` alone gives `""` (the default container and no
484
+ * option), `*dialogPortal="element"` that element, and `*dialogPortal="{ keepMounted: true }"`
485
+ * the options.
486
+ */
487
+ export declare function portalOptions(value: unknown): OverlayPortalOptions;
488
+ /** The positioning inputs every Positioner directive declares (spec/popover.md, "Positioning"). */
489
+ export interface PositionerInputs {
490
+ side: Signal<Side | undefined>;
491
+ align: Signal<Align | undefined>;
492
+ sideOffset: Signal<number | undefined>;
493
+ alignOffset: Signal<number | undefined>;
494
+ collisionPadding: Signal<number | undefined>;
495
+ /** The element to anchor to (default: the trigger). */
496
+ anchor: Signal<Element | null | undefined>;
497
+ }
498
+ export interface Placement {
499
+ side: Side;
500
+ align: Align;
501
+ }
502
+ /** Where an overlay is placed; setting an equal placement changes nothing. */
503
+ export declare function placementSignal(initial: Placement): WritableSignal<Placement>;
504
+ /**
505
+ * Positions an overlay's positioner next to its anchor while both exist, from its inputs with the
506
+ * given defaults, after each render, while `mounted()` (open, or its exit running): a kept-mounted
507
+ * closed overlay is not positioned (spec/README.md, "Lifecycle"). Reports where it ended up in
508
+ * `placed` (the root's). Its logical sides follow a DirectionProvider's direction, else the
509
+ * anchor's computed one.
510
+ */
511
+ export declare function positionOverlay(inputs: PositionerInputs, defaults: Placement, elements: {
512
+ /** The trigger, or a point (a context menu's virtual anchor). */
513
+ anchor: Signal<Element | VirtualAnchor | null>;
514
+ positioner: HTMLElement;
515
+ arrow?: Signal<HTMLElement | null>;
516
+ mounted?: Signal<boolean>;
517
+ }, placed: WritableSignal<Placement>): void;
518
+ /**
519
+ * The direction a DirectionProvider gives (spec/direction.md): provided by the `/direction`
520
+ * entry's `[directionProvider]` and `provideDirection()`, read by the components here, so no
521
+ * component imports the provider's entry (D8).
522
+ */
523
+ export declare const DIRECTION: InjectionToken<Signal<Direction>>;
524
+ /**
525
+ * The enclosing provider's direction, as a getter (`null` without a provider), in an injection
526
+ * context: a component passes it to `getDirection(element, provided())`, read when it needs the
527
+ * direction (a key press, a positioning).
528
+ */
529
+ export declare function injectProvidedDirection(): () => Direction | null;
530
+ /**
531
+ * A roving-focus scope (spec/toolbar.md, "Nested composites"): provided by a `[toolbarRoot]`, or by
532
+ * a `[toggleGroup]` with none around it, and passed on by a `[toolbarGroup]` with its `disabled`;
533
+ * every item inside (a Toolbar's Button, Link and Input, a Toggle) registers with the nearest one.
534
+ * It lives in the package's shared code, so no component entry imports another's for it (D8).
535
+ */
536
+ export interface RovingScope {
537
+ readonly orientation: Signal<RovingOrientation>;
538
+ /** The scope disables its items (a disabled Toolbar.Root or Toolbar.Group). */
539
+ readonly disabled: Signal<boolean>;
540
+ /** The scope's root element: only an element inside it is one of its items ("Nested composites", 6). */
541
+ readonly root: Signal<HTMLElement>;
542
+ /** The item holding the tab stop (`tabindex="0"`); `null` before the items are known. */
543
+ readonly tabStop: Signal<HTMLElement | null>;
544
+ /**
545
+ * Registers an item, and returns its cleanup; `focusable`: it can take focus (not disabled,
546
+ * or focusable when disabled), read when the tab stop or a key needs it.
547
+ */
548
+ register: (element: HTMLElement, focusable: () => boolean) => () => void;
549
+ /** An item took focus: it holds the tab stop now. */
550
+ focused: (element: HTMLElement) => void;
551
+ /**
552
+ * The composite's key handler, on its root's `keydown`; an item whose own handlers a disabled
553
+ * guard stopped (a focusable disabled Toolbar.Button) hands it the composite's keys.
554
+ */
555
+ keydown: (event: KeyboardEvent) => void;
556
+ }
557
+ export declare const ROVING_SCOPE: InjectionToken<RovingScope>;
558
+ /**
559
+ * The scope an element is in: `scope`, unless the element is outside the scope's root (a Toggle in
560
+ * a popup that a portal renders from a Toolbar's item: the portal's view keeps its declaration's
561
+ * injector, the element is elsewhere), then `null`. Before the element is rendered (`rendered`
562
+ * false: a server render, the first render) it is taken as inside, so the server's output does not
563
+ * change. Reactive through `rendered` and the scope's `root`.
564
+ */
565
+ export declare function scopeOfElement(scope: RovingScope | null, element: HTMLElement, rendered: boolean): RovingScope | null;
566
+ /**
567
+ * A scope that forwards every field to `current()`'s (a ToggleGroup's: the Toolbar's around it,
568
+ * or its own once it is known to be outside the toolbar's element). Its `root` changes with
569
+ * `current`, so its items register again with the scope they are now in.
570
+ */
571
+ export declare function forwardingScope(current: () => RovingScope): RovingScope;
572
+ export interface RovingCompositeOptions {
573
+ orientation: () => RovingOrientation;
574
+ loopFocus: () => boolean;
575
+ disabled: () => boolean;
576
+ }
577
+ /**
578
+ * The root of a roving-focus scope on the host element, in an injection context (spec/toolbar.md,
579
+ * "Focus" and "Nested composites"): its registered items, the one holding the tab stop (the one
580
+ * that last had focus while it can take focus, else the first that can), and the key handler the
581
+ * host binds: the orientation's arrows (mirrored in RTL), Home and End move the focus through the
582
+ * items in document order, unless a handler before it prevented the key, a modifier is held, or
583
+ * a text field keeps it. The focus it moves is rendered within the key's event, so a quick next
584
+ * key reaches the new tab stop (AGENTS.md, "Porting", 8).
585
+ */
586
+ export declare function injectRovingComposite(options: RovingCompositeOptions): RovingScope;
587
+ export interface RovingItemBinding {
588
+ /**
589
+ * The scope it is an item of: the nearest one (or `explicit`), unless the host is outside that
590
+ * scope's root (a popup a portal renders); `null` then.
591
+ */
592
+ scope: Signal<RovingScope | null>;
593
+ /**
594
+ * The roving `tabindex`: `"0"` on the scope's tab stop, `"-1"` on every other item; `null`
595
+ * outside the scope.
596
+ */
597
+ tabIndex: Signal<string | null>;
598
+ }
599
+ /**
600
+ * The host as an item of the nearest roving-focus scope (spec/toolbar.md, "Nested composites"), or
601
+ * `null` with none around it, in an injection context: it registers once rendered (never on a
602
+ * server, so every item has `tabindex="-1"` until the items are known), takes the roving
603
+ * `tabindex` and tells the scope when it takes focus. A host outside the scope's root (rendered
604
+ * through a portal) is in no scope ("Nested composites", 6). `explicit` names the scope instead
605
+ * of the nearest one (a Menubar's, which its Triggers read from the bar's contract; `null`: none).
606
+ */
607
+ export declare function injectRovingItem(focusable: () => boolean, explicit?: RovingScope | null): RovingItemBinding | null;
608
+ /**
609
+ * A `data-*` value for a host binding (spec/README.md, "State attributes"): `true` gives an empty
610
+ * attribute, `false`, `null` and `undefined` give none (`null` removes it, never `"false"`),
611
+ * strings are values.
612
+ */
613
+ export declare function dataValue(value: boolean | string | null | undefined): string | null;
614
+ /** The same for a whole state record: `[attr.data-open]="data().open"`. */
615
+ export declare function dataValues<K extends string>(state: Record<K, boolean | string | null | undefined>): Record<K, string | null>;
616
+ /**
617
+ * The same as attributes, for a part a structural directive renders (it writes them on the element,
618
+ * with no host binding): `{ open: true }` gives `{ "data-open": "" }`.
619
+ */
620
+ export declare function dataAttributes(state: Record<string, boolean | string | null | undefined>): Record<string, string | null>;
621
+ /**
622
+ * What a `[toggleGroup]` gives its Toggles (spec/toggle-group.md). The token lives in the
623
+ * package's shared code: an entry exports only its API (the API pages), so `/toggle` cannot
624
+ * export it to `/toggle-group`; a Toggle alone still ships no ToggleGroup code.
625
+ */
626
+ export interface ToggleGroupContext {
627
+ /** The values of the pressed toggles. */
628
+ readonly value: Signal<readonly string[]>;
629
+ readonly disabled: Signal<boolean>;
630
+ /** A Toggle of the group was pressed or released. */
631
+ setPressed: (value: string, pressed: boolean, details: ChangeDetails) => void;
632
+ }
633
+ export declare const TOGGLE_GROUP: InjectionToken<ToggleGroupContext>;
634
+ /** A row's size in pixels before it is measured: a number, or a function of the index. */
635
+ export type VirtualItemSize = number | ((index: number) => number);
636
+ /**
637
+ * A rendered row of a virtual list (spec/virtual-lists.md): its item, its place in the set and the
638
+ * room the unrendered rows take before and after it. The template renders a part's `rows()` with
639
+ * an `@for (row of list.rows(); track row.index)`, each Item with the part's row directive bound to
640
+ * it.
641
+ */
642
+ export interface VirtualRowData<Item> {
643
+ readonly index: number;
644
+ readonly item: Item;
645
+ /** The number of items (`aria-setsize`). */
646
+ readonly setSize: number;
647
+ /** The room of the unrendered rows before it (its `margin-block-start`), or `null`. */
648
+ readonly spaceBefore: number | null;
649
+ /** On the last rendered row, the room of the unrendered rows after it, or `null`. */
650
+ readonly spaceAfter: number | null;
651
+ }
652
+ export interface VirtualRowsOptions<Item> {
653
+ /** The toolkit's `createVirtualizer` (`@fragiola/primitives/virtual`). */
654
+ createVirtualizer: typeof createVirtualizer;
655
+ /** The list element: its scroll container is watched once it renders. */
656
+ host: HTMLElement;
657
+ items: () => readonly Item[];
658
+ /** Rows always rendered (the focused, highlighted or selected one; the ends). */
659
+ pinned: () => readonly number[];
660
+ itemSize: Signal<VirtualItemSize>;
661
+ measure: Signal<boolean>;
662
+ overscan: Signal<number>;
663
+ loading: Signal<boolean>;
664
+ /** The last row came into view while not `loading`. */
665
+ loadMore: () => void;
666
+ }
667
+ export interface VirtualRows<Item> {
668
+ /** The rendered rows. */
669
+ rows: Signal<readonly VirtualRowData<Item>[]>;
670
+ range: Signal<VirtualRange>;
671
+ virtualizer: Virtualizer;
672
+ /** The rendered rows' elements, by index. */
673
+ elements: Signal<ReadonlyMap<number, HTMLElement>>;
674
+ /** Whether the rows are measured (`measure`). */
675
+ measure: Signal<boolean>;
676
+ /** A row's element rendered at `index`; returns its unregistration. */
677
+ register(index: number, element: HTMLElement): () => void;
678
+ }
679
+ /**
680
+ * The rows of a virtual list (spec/virtual-lists.md), in an injection context: the toolkit's
681
+ * virtualizer over the items, attached to the list's scroll container after the first render (on
682
+ * a server, the first rows and the pinned ones), rendering again when its range changes; emits
683
+ * `loadMore` when the last row comes into view while not `loading`.
684
+ */
685
+ export declare function injectVirtualRows<Item>(options: VirtualRowsOptions<Item>): VirtualRows<Item>;
686
+ /**
687
+ * A row directive's work, in its injection context: registers its element at its index and, unless
688
+ * the list's `measure` is `false`, measures it once rendered and on every resize.
689
+ */
690
+ export declare function bindVirtualRow(rows: VirtualRows<unknown>, row: Signal<VirtualRowData<unknown>>, host: HTMLElement): void;
691
+ /**
692
+ * The rows a combobox's keys reach from the DOM (Combobox, Autocomplete): the ends, the
693
+ * highlighted row and its neighbours, and the selected row (the list opens on it).
694
+ */
695
+ export declare function reachableRows(count: number, highlighted: number | undefined, selected: number): number[];