@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,977 @@
1
+ import * as i0 from "@angular/core";
2
+ import { DestroyRef, Directive, afterRenderEffect, booleanAttribute, computed, inject, input, output, signal, untracked } from "@angular/core";
3
+ import { controllable, dataValues, injectEnclosing, injectFlush, injectHost, injectId, registerHost } from "@fragiola/primitives-angular/internal";
4
+ import { bestMatch, commandItemScore, commandKeyTarget, commandScore } from "@fragiola/primitives/command";
5
+ import { scrollIntoViewWithin } from "@fragiola/primitives/collection";
6
+ function keepChildren(host, shown) {
7
+ const kept = host.ownerDocument.createDocumentFragment();
8
+ afterRenderEffect({ write: () => {
9
+ const show = shown();
10
+ untracked(() => {
11
+ if (show) host.append(kept);
12
+ else kept.append(...host.childNodes);
13
+ });
14
+ } });
15
+ }
16
+ const NO_PAGES = [];
17
+ var CommandRoot = class CommandRoot {
18
+ constructor() {
19
+ this.boundInputValue = input(void 0, {
20
+ ...ngDevMode ? { debugName: "boundInputValue" } : /* istanbul ignore next */ {},
21
+ alias: "inputValue"
22
+ });
23
+ this.inputValueChange = output();
24
+ this.defaultInputValue = input(void 0, ...ngDevMode ? [{ debugName: "defaultInputValue" }] : /* istanbul ignore next */ []);
25
+ this.inputValueChangeDetails = output();
26
+ this.filter = input(void 0, ...ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []);
27
+ this.boundPages = input(void 0, {
28
+ ...ngDevMode ? { debugName: "boundPages" } : /* istanbul ignore next */ {},
29
+ alias: "pages"
30
+ });
31
+ this.pagesChange = output();
32
+ this.defaultPages = input(void 0, ...ngDevMode ? [{ debugName: "defaultPages" }] : /* istanbul ignore next */ []);
33
+ this.pagesChangeDetails = output();
34
+ this.loading = input(false, {
35
+ ...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
36
+ transform: booleanAttribute
37
+ });
38
+ this.loopFocus = input(true, {
39
+ ...ngDevMode ? { debugName: "loopFocus" } : /* istanbul ignore next */ {},
40
+ transform: booleanAttribute
41
+ });
42
+ this.text = controllable(this.boundInputValue, this.inputValueChange, () => this.defaultInputValue() ?? "", (value, details) => this.inputValueChangeDetails.emit({
43
+ value,
44
+ details
45
+ }));
46
+ this.search = this.text.value;
47
+ this.stack = controllable(this.boundPages, { emit: (pages) => this.pagesChange.emit([...pages]) }, () => this.defaultPages() ?? NO_PAGES, (pages, details) => this.pagesChangeDetails.emit({
48
+ value: [...pages],
49
+ details
50
+ }));
51
+ this.pages = this.stack.value;
52
+ this.resolvedFilter = computed(() => {
53
+ const filter = this.filter();
54
+ return filter === void 0 ? commandScore : filter;
55
+ }, ...ngDevMode ? [{ debugName: "resolvedFilter" }] : /* istanbul ignore next */ []);
56
+ this.highlighted = signal(null, ...ngDevMode ? [{ debugName: "highlighted" }] : /* istanbul ignore next */ []);
57
+ this.shownCount = signal(null, ...ngDevMode ? [{ debugName: "shownCount" }] : /* istanbul ignore next */ []);
58
+ this.registered = /* @__PURE__ */ new Map();
59
+ this.version = signal(0, ...ngDevMode ? [{ debugName: "version" }] : /* istanbul ignore next */ []);
60
+ this.list = signal(null, ...ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []);
61
+ this.listId = `${injectId("primitives-command")}-list`;
62
+ this.host = injectHost();
63
+ this.flush = injectFlush();
64
+ this.pageKey = computed(() => this.pages().join("\0"), ...ngDevMode ? [{ debugName: "pageKey" }] : /* istanbul ignore next */ []);
65
+ this.state = computed(() => {
66
+ const pages = this.pages();
67
+ return {
68
+ loading: this.loading(),
69
+ page: pages.length > 0 ? pages[pages.length - 1] ?? null : null
70
+ };
71
+ }, ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
72
+ let seen = null;
73
+ afterRenderEffect(() => {
74
+ const search = this.search();
75
+ const pageKey = this.pageKey();
76
+ const highlighted = this.highlighted();
77
+ const filter = this.resolvedFilter();
78
+ this.version();
79
+ this.list();
80
+ untracked(() => {
81
+ const previous = seen;
82
+ seen = {
83
+ search,
84
+ pageKey
85
+ };
86
+ if (previous !== null && previous.pageKey !== pageKey && search !== "") {
87
+ this.text.set("", { reason: "page-change" });
88
+ return;
89
+ }
90
+ const shown = this.shownItems();
91
+ this.shownCount.set(shown.length);
92
+ if (!(previous === null || previous.search !== search || previous.pageKey !== pageKey) && shown.some((info) => info.value() === highlighted)) return;
93
+ const scores = shown.map((info) => commandItemScore(info.value(), search, info.keywords(), filter, info.forceMount()));
94
+ const best = bestMatch(scores, (index) => shown[index]?.disabled() ?? true);
95
+ this.highlighted.set(best === -1 ? null : shown[best]?.value() ?? null);
96
+ });
97
+ });
98
+ }
99
+ shownItems() {
100
+ const list = this.list();
101
+ if (list === null) return [];
102
+ return [...list.querySelectorAll("[role=\"option\"]:not([hidden])")].flatMap((element) => {
103
+ const info = this.registered.get(element);
104
+ return info === void 0 ? [] : [info];
105
+ });
106
+ }
107
+ items() {
108
+ return this.registered.values();
109
+ }
110
+ registerItem(element, info) {
111
+ this.registered.set(element, info);
112
+ this.version.update((count) => count + 1);
113
+ return () => {
114
+ this.registered.delete(element);
115
+ this.version.update((count) => count + 1);
116
+ };
117
+ }
118
+ type(text, event) {
119
+ this.text.set(text, {
120
+ reason: "input-change",
121
+ event
122
+ });
123
+ this.flush();
124
+ }
125
+ highlight(value) {
126
+ this.highlighted.set(value);
127
+ this.flush();
128
+ }
129
+ back(event) {
130
+ this.stack.set(untracked(this.pages).slice(0, -1), {
131
+ reason: "backspace-key",
132
+ event
133
+ });
134
+ this.flush();
135
+ }
136
+ static {
137
+ this.ɵfac = i0.ɵɵngDeclareFactory({
138
+ minVersion: "12.0.0",
139
+ version: "22.2.6",
140
+ ngImport: i0,
141
+ type: CommandRoot,
142
+ deps: [],
143
+ target: i0.ɵɵFactoryTarget.Directive
144
+ });
145
+ }
146
+ static {
147
+ this.ɵdir = i0.ɵɵngDeclareDirective({
148
+ minVersion: "17.1.0",
149
+ version: "22.2.6",
150
+ type: CommandRoot,
151
+ isStandalone: true,
152
+ selector: "[commandRoot]",
153
+ inputs: {
154
+ boundInputValue: {
155
+ classPropertyName: "boundInputValue",
156
+ publicName: "inputValue",
157
+ isSignal: true,
158
+ isRequired: false,
159
+ transformFunction: null
160
+ },
161
+ defaultInputValue: {
162
+ classPropertyName: "defaultInputValue",
163
+ publicName: "defaultInputValue",
164
+ isSignal: true,
165
+ isRequired: false,
166
+ transformFunction: null
167
+ },
168
+ filter: {
169
+ classPropertyName: "filter",
170
+ publicName: "filter",
171
+ isSignal: true,
172
+ isRequired: false,
173
+ transformFunction: null
174
+ },
175
+ boundPages: {
176
+ classPropertyName: "boundPages",
177
+ publicName: "pages",
178
+ isSignal: true,
179
+ isRequired: false,
180
+ transformFunction: null
181
+ },
182
+ defaultPages: {
183
+ classPropertyName: "defaultPages",
184
+ publicName: "defaultPages",
185
+ isSignal: true,
186
+ isRequired: false,
187
+ transformFunction: null
188
+ },
189
+ loading: {
190
+ classPropertyName: "loading",
191
+ publicName: "loading",
192
+ isSignal: true,
193
+ isRequired: false,
194
+ transformFunction: null
195
+ },
196
+ loopFocus: {
197
+ classPropertyName: "loopFocus",
198
+ publicName: "loopFocus",
199
+ isSignal: true,
200
+ isRequired: false,
201
+ transformFunction: null
202
+ }
203
+ },
204
+ outputs: {
205
+ inputValueChange: "inputValueChange",
206
+ inputValueChangeDetails: "inputValueChangeDetails",
207
+ pagesChange: "pagesChange",
208
+ pagesChangeDetails: "pagesChangeDetails"
209
+ },
210
+ host: { attributes: { "data-primitives-part": "command-root" } },
211
+ exportAs: ["commandRoot"],
212
+ ngImport: i0
213
+ });
214
+ }
215
+ };
216
+ i0.ɵɵngDeclareClassMetadata({
217
+ minVersion: "12.0.0",
218
+ version: "22.2.6",
219
+ ngImport: i0,
220
+ type: CommandRoot,
221
+ decorators: [{
222
+ type: Directive,
223
+ args: [{
224
+ selector: "[commandRoot]",
225
+ exportAs: "commandRoot",
226
+ host: { "data-primitives-part": "command-root" }
227
+ }]
228
+ }],
229
+ ctorParameters: () => [],
230
+ propDecorators: {
231
+ boundInputValue: [{
232
+ type: i0.Input,
233
+ args: [{
234
+ isSignal: true,
235
+ alias: "inputValue",
236
+ required: false
237
+ }]
238
+ }],
239
+ inputValueChange: [{
240
+ type: i0.Output,
241
+ args: ["inputValueChange"]
242
+ }],
243
+ defaultInputValue: [{
244
+ type: i0.Input,
245
+ args: [{
246
+ isSignal: true,
247
+ alias: "defaultInputValue",
248
+ required: false
249
+ }]
250
+ }],
251
+ inputValueChangeDetails: [{
252
+ type: i0.Output,
253
+ args: ["inputValueChangeDetails"]
254
+ }],
255
+ filter: [{
256
+ type: i0.Input,
257
+ args: [{
258
+ isSignal: true,
259
+ alias: "filter",
260
+ required: false
261
+ }]
262
+ }],
263
+ boundPages: [{
264
+ type: i0.Input,
265
+ args: [{
266
+ isSignal: true,
267
+ alias: "pages",
268
+ required: false
269
+ }]
270
+ }],
271
+ pagesChange: [{
272
+ type: i0.Output,
273
+ args: ["pagesChange"]
274
+ }],
275
+ defaultPages: [{
276
+ type: i0.Input,
277
+ args: [{
278
+ isSignal: true,
279
+ alias: "defaultPages",
280
+ required: false
281
+ }]
282
+ }],
283
+ pagesChangeDetails: [{
284
+ type: i0.Output,
285
+ args: ["pagesChangeDetails"]
286
+ }],
287
+ loading: [{
288
+ type: i0.Input,
289
+ args: [{
290
+ isSignal: true,
291
+ alias: "loading",
292
+ required: false
293
+ }]
294
+ }],
295
+ loopFocus: [{
296
+ type: i0.Input,
297
+ args: [{
298
+ isSignal: true,
299
+ alias: "loopFocus",
300
+ required: false
301
+ }]
302
+ }]
303
+ }
304
+ });
305
+ var CommandEmpty = class CommandEmpty {
306
+ constructor() {
307
+ this.root = inject(CommandRoot);
308
+ this.shown = computed(() => this.root.shownCount() === 0 && !this.root.loading(), ...ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []);
309
+ keepChildren(injectHost(), this.shown);
310
+ }
311
+ static {
312
+ this.ɵfac = i0.ɵɵngDeclareFactory({
313
+ minVersion: "12.0.0",
314
+ version: "22.2.6",
315
+ ngImport: i0,
316
+ type: CommandEmpty,
317
+ deps: [],
318
+ target: i0.ɵɵFactoryTarget.Directive
319
+ });
320
+ }
321
+ static {
322
+ this.ɵdir = i0.ɵɵngDeclareDirective({
323
+ minVersion: "14.0.0",
324
+ version: "22.2.6",
325
+ type: CommandEmpty,
326
+ isStandalone: true,
327
+ selector: "[commandEmpty]",
328
+ host: { attributes: {
329
+ "role": "status",
330
+ "aria-live": "polite",
331
+ "aria-atomic": "true",
332
+ "data-primitives-part": "command-empty"
333
+ } },
334
+ ngImport: i0
335
+ });
336
+ }
337
+ };
338
+ i0.ɵɵngDeclareClassMetadata({
339
+ minVersion: "12.0.0",
340
+ version: "22.2.6",
341
+ ngImport: i0,
342
+ type: CommandEmpty,
343
+ decorators: [{
344
+ type: Directive,
345
+ args: [{
346
+ selector: "[commandEmpty]",
347
+ host: {
348
+ role: "status",
349
+ "aria-live": "polite",
350
+ "aria-atomic": "true",
351
+ "data-primitives-part": "command-empty"
352
+ }
353
+ }]
354
+ }],
355
+ ctorParameters: () => []
356
+ });
357
+ var CommandGroup = class CommandGroup {
358
+ constructor() {
359
+ this.labelId = `${injectId("primitives-command-group")}-label`;
360
+ this.members = signal([], ...ngDevMode ? [{ debugName: "members" }] : /* istanbul ignore next */ []);
361
+ this.state = computed(() => ({ hidden: this.members().every((hidden) => hidden()) }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
362
+ }
363
+ register(hidden) {
364
+ this.members.update((members) => [...members, hidden]);
365
+ return () => this.members.update((members) => members.filter((member) => member !== hidden));
366
+ }
367
+ static {
368
+ this.ɵfac = i0.ɵɵngDeclareFactory({
369
+ minVersion: "12.0.0",
370
+ version: "22.2.6",
371
+ ngImport: i0,
372
+ type: CommandGroup,
373
+ deps: [],
374
+ target: i0.ɵɵFactoryTarget.Directive
375
+ });
376
+ }
377
+ static {
378
+ this.ɵdir = i0.ɵɵngDeclareDirective({
379
+ minVersion: "14.0.0",
380
+ version: "22.2.6",
381
+ type: CommandGroup,
382
+ isStandalone: true,
383
+ selector: "[commandGroup]",
384
+ host: {
385
+ attributes: {
386
+ "role": "group",
387
+ "data-primitives-part": "command-group"
388
+ },
389
+ properties: {
390
+ "attr.aria-labelledby": "labelId",
391
+ "attr.hidden": "state().hidden ? '' : null"
392
+ }
393
+ },
394
+ exportAs: ["commandGroup"],
395
+ ngImport: i0
396
+ });
397
+ }
398
+ };
399
+ i0.ɵɵngDeclareClassMetadata({
400
+ minVersion: "12.0.0",
401
+ version: "22.2.6",
402
+ ngImport: i0,
403
+ type: CommandGroup,
404
+ decorators: [{
405
+ type: Directive,
406
+ args: [{
407
+ selector: "[commandGroup]",
408
+ exportAs: "commandGroup",
409
+ host: {
410
+ role: "group",
411
+ "data-primitives-part": "command-group",
412
+ "[attr.aria-labelledby]": "labelId",
413
+ "[attr.hidden]": "state().hidden ? '' : null"
414
+ }
415
+ }]
416
+ }]
417
+ });
418
+ var CommandGroupLabel = class CommandGroupLabel {
419
+ constructor() {
420
+ this.group = injectEnclosing(CommandGroup, "commandGroup", "CommandGroupLabel");
421
+ }
422
+ static {
423
+ this.ɵfac = i0.ɵɵngDeclareFactory({
424
+ minVersion: "12.0.0",
425
+ version: "22.2.6",
426
+ ngImport: i0,
427
+ type: CommandGroupLabel,
428
+ deps: [],
429
+ target: i0.ɵɵFactoryTarget.Directive
430
+ });
431
+ }
432
+ static {
433
+ this.ɵdir = i0.ɵɵngDeclareDirective({
434
+ minVersion: "14.0.0",
435
+ version: "22.2.6",
436
+ type: CommandGroupLabel,
437
+ isStandalone: true,
438
+ selector: "[commandGroupLabel]",
439
+ host: {
440
+ attributes: { "data-primitives-part": "command-group-label" },
441
+ properties: { "attr.id": "group.labelId" }
442
+ },
443
+ ngImport: i0
444
+ });
445
+ }
446
+ };
447
+ i0.ɵɵngDeclareClassMetadata({
448
+ minVersion: "12.0.0",
449
+ version: "22.2.6",
450
+ ngImport: i0,
451
+ type: CommandGroupLabel,
452
+ decorators: [{
453
+ type: Directive,
454
+ args: [{
455
+ selector: "[commandGroupLabel]",
456
+ host: {
457
+ "data-primitives-part": "command-group-label",
458
+ "[attr.id]": "group.labelId"
459
+ }
460
+ }]
461
+ }]
462
+ });
463
+ var CommandInput = class CommandInput {
464
+ constructor() {
465
+ this.root = inject(CommandRoot);
466
+ this.activeId = computed(() => {
467
+ this.root.version();
468
+ const highlighted = this.root.highlighted();
469
+ let active = null;
470
+ for (const info of this.root.items()) if (info.value() === highlighted) active = info.id;
471
+ return active;
472
+ }, ...ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []);
473
+ }
474
+ onInput(event) {
475
+ this.root.type(event.target.value, event);
476
+ }
477
+ onKeyDown(event) {
478
+ if (event.isComposing) return;
479
+ const root = this.root;
480
+ const shown = root.shownItems();
481
+ const highlighted = root.highlighted();
482
+ const current = shown.findIndex((info) => info.value() === highlighted);
483
+ const target = commandKeyTarget(event, current, shown.length, root.loopFocus());
484
+ if (target !== null) {
485
+ event.preventDefault();
486
+ root.highlight(shown[target]?.value() ?? null);
487
+ return;
488
+ }
489
+ if (event.key === "Enter") {
490
+ const item = shown[current];
491
+ if (item !== void 0) {
492
+ event.preventDefault();
493
+ if (!item.disabled()) item.run(event);
494
+ }
495
+ return;
496
+ }
497
+ if (event.key === "Backspace" && event.currentTarget.value === "" && root.pages().length > 0) {
498
+ event.preventDefault();
499
+ root.back(event);
500
+ }
501
+ }
502
+ static {
503
+ this.ɵfac = i0.ɵɵngDeclareFactory({
504
+ minVersion: "12.0.0",
505
+ version: "22.2.6",
506
+ ngImport: i0,
507
+ type: CommandInput,
508
+ deps: [],
509
+ target: i0.ɵɵFactoryTarget.Directive
510
+ });
511
+ }
512
+ static {
513
+ this.ɵdir = i0.ɵɵngDeclareDirective({
514
+ minVersion: "14.0.0",
515
+ version: "22.2.6",
516
+ type: CommandInput,
517
+ isStandalone: true,
518
+ selector: "input[commandInput]",
519
+ host: {
520
+ attributes: {
521
+ "type": "text",
522
+ "role": "combobox",
523
+ "aria-expanded": "true",
524
+ "aria-autocomplete": "list",
525
+ "autocomplete": "off",
526
+ "spellcheck": "false",
527
+ "data-primitives-part": "command-input"
528
+ },
529
+ listeners: {
530
+ "input": "onInput($event)",
531
+ "keydown": "onKeyDown($event)"
532
+ },
533
+ properties: {
534
+ "attr.aria-controls": "root.listId",
535
+ "attr.aria-activedescendant": "activeId()",
536
+ "value": "root.search()",
537
+ "attr.value": "root.search()"
538
+ }
539
+ },
540
+ exportAs: ["commandInput"],
541
+ ngImport: i0
542
+ });
543
+ }
544
+ };
545
+ i0.ɵɵngDeclareClassMetadata({
546
+ minVersion: "12.0.0",
547
+ version: "22.2.6",
548
+ ngImport: i0,
549
+ type: CommandInput,
550
+ decorators: [{
551
+ type: Directive,
552
+ args: [{
553
+ selector: "input[commandInput]",
554
+ exportAs: "commandInput",
555
+ host: {
556
+ type: "text",
557
+ role: "combobox",
558
+ "aria-expanded": "true",
559
+ "aria-autocomplete": "list",
560
+ autocomplete: "off",
561
+ spellcheck: "false",
562
+ "data-primitives-part": "command-input",
563
+ "[attr.aria-controls]": "root.listId",
564
+ "[attr.aria-activedescendant]": "activeId()",
565
+ "[value]": "root.search()",
566
+ "[attr.value]": "root.search()",
567
+ "(input)": "onInput($event)",
568
+ "(keydown)": "onKeyDown($event)"
569
+ }
570
+ }]
571
+ }]
572
+ });
573
+ const NO_KEYWORDS = [];
574
+ var CommandItem = class CommandItem {
575
+ constructor() {
576
+ this.root = inject(CommandRoot);
577
+ this.value = input.required(...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
578
+ this.keywords = input(NO_KEYWORDS, ...ngDevMode ? [{ debugName: "keywords" }] : /* istanbul ignore next */ []);
579
+ this.disabled = input(false, {
580
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
581
+ transform: booleanAttribute
582
+ });
583
+ this.forceMount = input(false, {
584
+ ...ngDevMode ? { debugName: "forceMount" } : /* istanbul ignore next */ {},
585
+ transform: booleanAttribute
586
+ });
587
+ this.itemSelect = output();
588
+ this.id = injectId("primitives-command-item");
589
+ this.hidden = computed(() => commandItemScore(this.value(), this.root.search(), this.keywords(), this.root.resolvedFilter(), this.forceMount()) === 0, ...ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []);
590
+ this.state = computed(() => {
591
+ const hidden = this.hidden();
592
+ return {
593
+ highlighted: !hidden && this.root.highlighted() === this.value(),
594
+ disabled: this.disabled(),
595
+ hidden
596
+ };
597
+ }, ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
598
+ this.data = computed(() => dataValues({
599
+ highlighted: this.state().highlighted,
600
+ disabled: this.state().disabled
601
+ }), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
602
+ this.host = injectHost();
603
+ this.group = inject(CommandGroup, { optional: true });
604
+ this.destroyRef = inject(DestroyRef);
605
+ const host = this.host;
606
+ const root = this.root;
607
+ afterRenderEffect(() => {
608
+ if (this.state().highlighted) scrollIntoViewWithin(host, root.host);
609
+ });
610
+ }
611
+ ngOnInit() {
612
+ const unregister = this.root.registerItem(this.host, {
613
+ value: this.value,
614
+ keywords: this.keywords,
615
+ disabled: this.disabled,
616
+ forceMount: this.forceMount,
617
+ id: this.id,
618
+ run: (event) => this.itemSelect.emit({
619
+ value: this.value(),
620
+ event
621
+ })
622
+ });
623
+ const leave = this.group?.register(this.hidden);
624
+ this.destroyRef.onDestroy(() => {
625
+ unregister();
626
+ leave?.();
627
+ });
628
+ }
629
+ onPointerMove() {
630
+ if (!this.state().highlighted) this.root.highlight(this.value());
631
+ }
632
+ onClick(event) {
633
+ if (!this.disabled()) this.itemSelect.emit({
634
+ value: this.value(),
635
+ event
636
+ });
637
+ }
638
+ static {
639
+ this.ɵfac = i0.ɵɵngDeclareFactory({
640
+ minVersion: "12.0.0",
641
+ version: "22.2.6",
642
+ ngImport: i0,
643
+ type: CommandItem,
644
+ deps: [],
645
+ target: i0.ɵɵFactoryTarget.Directive
646
+ });
647
+ }
648
+ static {
649
+ this.ɵdir = i0.ɵɵngDeclareDirective({
650
+ minVersion: "17.1.0",
651
+ version: "22.2.6",
652
+ type: CommandItem,
653
+ isStandalone: true,
654
+ selector: "[commandItem]",
655
+ inputs: {
656
+ value: {
657
+ classPropertyName: "value",
658
+ publicName: "value",
659
+ isSignal: true,
660
+ isRequired: true,
661
+ transformFunction: null
662
+ },
663
+ keywords: {
664
+ classPropertyName: "keywords",
665
+ publicName: "keywords",
666
+ isSignal: true,
667
+ isRequired: false,
668
+ transformFunction: null
669
+ },
670
+ disabled: {
671
+ classPropertyName: "disabled",
672
+ publicName: "disabled",
673
+ isSignal: true,
674
+ isRequired: false,
675
+ transformFunction: null
676
+ },
677
+ forceMount: {
678
+ classPropertyName: "forceMount",
679
+ publicName: "forceMount",
680
+ isSignal: true,
681
+ isRequired: false,
682
+ transformFunction: null
683
+ }
684
+ },
685
+ outputs: { itemSelect: "itemSelect" },
686
+ host: {
687
+ attributes: {
688
+ "role": "option",
689
+ "data-primitives-part": "command-item"
690
+ },
691
+ listeners: {
692
+ "pointermove": "onPointerMove()",
693
+ "pointerdown": "$event.preventDefault()",
694
+ "click": "onClick($event)"
695
+ },
696
+ properties: {
697
+ "attr.id": "id",
698
+ "attr.hidden": "state().hidden ? '' : null",
699
+ "attr.aria-selected": "state().highlighted ? 'true' : 'false'",
700
+ "attr.aria-disabled": "state().disabled ? 'true' : null",
701
+ "attr.data-highlighted": "data().highlighted",
702
+ "attr.data-disabled": "data().disabled"
703
+ }
704
+ },
705
+ exportAs: ["commandItem"],
706
+ ngImport: i0
707
+ });
708
+ }
709
+ };
710
+ i0.ɵɵngDeclareClassMetadata({
711
+ minVersion: "12.0.0",
712
+ version: "22.2.6",
713
+ ngImport: i0,
714
+ type: CommandItem,
715
+ decorators: [{
716
+ type: Directive,
717
+ args: [{
718
+ selector: "[commandItem]",
719
+ exportAs: "commandItem",
720
+ host: {
721
+ role: "option",
722
+ "data-primitives-part": "command-item",
723
+ "[attr.id]": "id",
724
+ "[attr.hidden]": "state().hidden ? '' : null",
725
+ "[attr.aria-selected]": "state().highlighted ? 'true' : 'false'",
726
+ "[attr.aria-disabled]": "state().disabled ? 'true' : null",
727
+ "[attr.data-highlighted]": "data().highlighted",
728
+ "[attr.data-disabled]": "data().disabled",
729
+ "(pointermove)": "onPointerMove()",
730
+ "(pointerdown)": "$event.preventDefault()",
731
+ "(click)": "onClick($event)"
732
+ }
733
+ }]
734
+ }],
735
+ ctorParameters: () => [],
736
+ propDecorators: {
737
+ value: [{
738
+ type: i0.Input,
739
+ args: [{
740
+ isSignal: true,
741
+ alias: "value",
742
+ required: true
743
+ }]
744
+ }],
745
+ keywords: [{
746
+ type: i0.Input,
747
+ args: [{
748
+ isSignal: true,
749
+ alias: "keywords",
750
+ required: false
751
+ }]
752
+ }],
753
+ disabled: [{
754
+ type: i0.Input,
755
+ args: [{
756
+ isSignal: true,
757
+ alias: "disabled",
758
+ required: false
759
+ }]
760
+ }],
761
+ forceMount: [{
762
+ type: i0.Input,
763
+ args: [{
764
+ isSignal: true,
765
+ alias: "forceMount",
766
+ required: false
767
+ }]
768
+ }],
769
+ itemSelect: [{
770
+ type: i0.Output,
771
+ args: ["itemSelect"]
772
+ }]
773
+ }
774
+ });
775
+ var CommandList = class CommandList {
776
+ constructor() {
777
+ this.root = inject(CommandRoot);
778
+ this.state = computed(() => ({
779
+ empty: this.root.shownCount() === 0,
780
+ loading: this.root.loading()
781
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
782
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
783
+ registerHost(this.root.list);
784
+ }
785
+ static {
786
+ this.ɵfac = i0.ɵɵngDeclareFactory({
787
+ minVersion: "12.0.0",
788
+ version: "22.2.6",
789
+ ngImport: i0,
790
+ type: CommandList,
791
+ deps: [],
792
+ target: i0.ɵɵFactoryTarget.Directive
793
+ });
794
+ }
795
+ static {
796
+ this.ɵdir = i0.ɵɵngDeclareDirective({
797
+ minVersion: "14.0.0",
798
+ version: "22.2.6",
799
+ type: CommandList,
800
+ isStandalone: true,
801
+ selector: "[commandList]",
802
+ host: {
803
+ attributes: {
804
+ "role": "listbox",
805
+ "tabindex": "-1",
806
+ "data-primitives-part": "command-list"
807
+ },
808
+ properties: {
809
+ "attr.id": "root.listId",
810
+ "attr.aria-busy": "state().loading ? 'true' : null",
811
+ "attr.data-empty": "data().empty",
812
+ "attr.data-loading": "data().loading"
813
+ }
814
+ },
815
+ exportAs: ["commandList"],
816
+ ngImport: i0
817
+ });
818
+ }
819
+ };
820
+ i0.ɵɵngDeclareClassMetadata({
821
+ minVersion: "12.0.0",
822
+ version: "22.2.6",
823
+ ngImport: i0,
824
+ type: CommandList,
825
+ decorators: [{
826
+ type: Directive,
827
+ args: [{
828
+ selector: "[commandList]",
829
+ exportAs: "commandList",
830
+ host: {
831
+ role: "listbox",
832
+ tabindex: "-1",
833
+ "data-primitives-part": "command-list",
834
+ "[attr.id]": "root.listId",
835
+ "[attr.aria-busy]": "state().loading ? 'true' : null",
836
+ "[attr.data-empty]": "data().empty",
837
+ "[attr.data-loading]": "data().loading"
838
+ }
839
+ }]
840
+ }],
841
+ ctorParameters: () => []
842
+ });
843
+ var CommandLoading = class CommandLoading {
844
+ constructor() {
845
+ this.root = inject(CommandRoot);
846
+ keepChildren(injectHost(), () => this.root.loading());
847
+ }
848
+ static {
849
+ this.ɵfac = i0.ɵɵngDeclareFactory({
850
+ minVersion: "12.0.0",
851
+ version: "22.2.6",
852
+ ngImport: i0,
853
+ type: CommandLoading,
854
+ deps: [],
855
+ target: i0.ɵɵFactoryTarget.Directive
856
+ });
857
+ }
858
+ static {
859
+ this.ɵdir = i0.ɵɵngDeclareDirective({
860
+ minVersion: "14.0.0",
861
+ version: "22.2.6",
862
+ type: CommandLoading,
863
+ isStandalone: true,
864
+ selector: "[commandLoading]",
865
+ host: { attributes: {
866
+ "role": "status",
867
+ "aria-live": "polite",
868
+ "aria-atomic": "true",
869
+ "data-primitives-part": "command-loading"
870
+ } },
871
+ ngImport: i0
872
+ });
873
+ }
874
+ };
875
+ i0.ɵɵngDeclareClassMetadata({
876
+ minVersion: "12.0.0",
877
+ version: "22.2.6",
878
+ ngImport: i0,
879
+ type: CommandLoading,
880
+ decorators: [{
881
+ type: Directive,
882
+ args: [{
883
+ selector: "[commandLoading]",
884
+ host: {
885
+ role: "status",
886
+ "aria-live": "polite",
887
+ "aria-atomic": "true",
888
+ "data-primitives-part": "command-loading"
889
+ }
890
+ }]
891
+ }],
892
+ ctorParameters: () => []
893
+ });
894
+ var CommandSeparator = class CommandSeparator {
895
+ constructor() {
896
+ this.root = inject(CommandRoot);
897
+ this.forceMount = input(false, {
898
+ ...ngDevMode ? { debugName: "forceMount" } : /* istanbul ignore next */ {},
899
+ transform: booleanAttribute
900
+ });
901
+ this.state = computed(() => ({ hidden: !this.forceMount() && this.root.search().trim() !== "" }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
902
+ }
903
+ static {
904
+ this.ɵfac = i0.ɵɵngDeclareFactory({
905
+ minVersion: "12.0.0",
906
+ version: "22.2.6",
907
+ ngImport: i0,
908
+ type: CommandSeparator,
909
+ deps: [],
910
+ target: i0.ɵɵFactoryTarget.Directive
911
+ });
912
+ }
913
+ static {
914
+ this.ɵdir = i0.ɵɵngDeclareDirective({
915
+ minVersion: "17.1.0",
916
+ version: "22.2.6",
917
+ type: CommandSeparator,
918
+ isStandalone: true,
919
+ selector: "[commandSeparator]",
920
+ inputs: { forceMount: {
921
+ classPropertyName: "forceMount",
922
+ publicName: "forceMount",
923
+ isSignal: true,
924
+ isRequired: false,
925
+ transformFunction: null
926
+ } },
927
+ host: {
928
+ attributes: {
929
+ "role": "presentation",
930
+ "data-orientation": "horizontal",
931
+ "data-primitives-part": "command-separator"
932
+ },
933
+ properties: { "attr.hidden": "state().hidden ? '' : null" }
934
+ },
935
+ exportAs: ["commandSeparator"],
936
+ ngImport: i0
937
+ });
938
+ }
939
+ };
940
+ i0.ɵɵngDeclareClassMetadata({
941
+ minVersion: "12.0.0",
942
+ version: "22.2.6",
943
+ ngImport: i0,
944
+ type: CommandSeparator,
945
+ decorators: [{
946
+ type: Directive,
947
+ args: [{
948
+ selector: "[commandSeparator]",
949
+ exportAs: "commandSeparator",
950
+ host: {
951
+ role: "presentation",
952
+ "data-orientation": "horizontal",
953
+ "data-primitives-part": "command-separator",
954
+ "[attr.hidden]": "state().hidden ? '' : null"
955
+ }
956
+ }]
957
+ }],
958
+ propDecorators: { forceMount: [{
959
+ type: i0.Input,
960
+ args: [{
961
+ isSignal: true,
962
+ alias: "forceMount",
963
+ required: false
964
+ }]
965
+ }] }
966
+ });
967
+ function injectCommand() {
968
+ const root = injectEnclosing(CommandRoot, "commandRoot", "injectCommand");
969
+ return {
970
+ state: root.state,
971
+ inputValue: root.search,
972
+ pages: root.pages
973
+ };
974
+ }
975
+ export { CommandEmpty, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandLoading, CommandRoot, CommandSeparator, injectCommand };
976
+
977
+ //# sourceMappingURL=fragiola-primitives-angular-command.mjs.map