@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,1126 @@
1
+ import * as i0 from "@angular/core";
2
+ import { DestroyRef, Directive, afterNextRender, afterRenderEffect, booleanAttribute, computed, inject, input, numberAttribute, output, signal, untracked } from "@angular/core";
3
+ import { controllable, dataValues, injectEnclosing, injectFlush, injectHost, injectId, injectProvidedDirection, ownAttribute, registerHost } from "@fragiola/primitives-angular/internal";
4
+ import { tagsInputInputKeyTarget, tagsInputTagKeyTarget } from "@fragiola/primitives/collection";
5
+ import { getDirection } from "@fragiola/primitives/direction";
6
+ import { VISUALLY_HIDDEN_INPUT_STYLE, bridgeForm, editTag, takeTags, typesDelimiter } from "@fragiola/primitives/form";
7
+ import { fieldControl, writeFieldAria } from "@fragiola/primitives-angular/field";
8
+ function composing(event) {
9
+ return event.isComposing || event.keyCode === 229;
10
+ }
11
+ const NONE = [];
12
+ const TAG_SELECTOR = "[data-primitives-part=\"tags-input-tag\"]";
13
+ const HIDDEN_PART = "tags-input-hidden-input";
14
+ var TagsInputRoot = class TagsInputRoot {
15
+ constructor() {
16
+ this.value = input(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
17
+ this.valueChange = output();
18
+ this.defaultValue = input(void 0, ...ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []);
19
+ this.valueChangeDetails = output();
20
+ this.inputValue = input(void 0, ...ngDevMode ? [{ debugName: "inputValue" }] : /* istanbul ignore next */ []);
21
+ this.inputValueChange = output();
22
+ this.defaultInputValue = input(void 0, ...ngDevMode ? [{ debugName: "defaultInputValue" }] : /* istanbul ignore next */ []);
23
+ this.inputValueChangeDetails = output();
24
+ this.valueInvalid = output();
25
+ this.delimiter = input(",", ...ngDevMode ? [{ debugName: "delimiter" }] : /* istanbul ignore next */ []);
26
+ this.max = input(Number.POSITIVE_INFINITY, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
27
+ this.allowDuplicates = input(false, {
28
+ ...ngDevMode ? { debugName: "allowDuplicates" } : /* istanbul ignore next */ {},
29
+ transform: booleanAttribute
30
+ });
31
+ this.validate = input(void 0, ...ngDevMode ? [{ debugName: "validate" }] : /* istanbul ignore next */ []);
32
+ this.blurBehavior = input(void 0, ...ngDevMode ? [{ debugName: "blurBehavior" }] : /* istanbul ignore next */ []);
33
+ this.editable = input(false, {
34
+ ...ngDevMode ? { debugName: "editable" } : /* istanbul ignore next */ {},
35
+ transform: booleanAttribute
36
+ });
37
+ this.disabled = input(false, {
38
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
39
+ transform: booleanAttribute
40
+ });
41
+ this.name = input(void 0, ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
42
+ this.required = input(false, {
43
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
44
+ transform: booleanAttribute
45
+ });
46
+ this.host = injectHost();
47
+ this.direction = injectProvidedDirection();
48
+ this.flush = injectFlush();
49
+ this.selection = controllable(this.value, this.valueChange, () => this.defaultValue() ?? NONE, (value, details) => this.valueChangeDetails.emit({
50
+ value,
51
+ details
52
+ }));
53
+ this.typed = controllable(this.inputValue, this.inputValueChange, () => this.defaultInputValue() ?? "", (value, details) => this.inputValueChangeDetails.emit({
54
+ value,
55
+ details
56
+ }));
57
+ this.tags = computed(() => this.selection.value(), ...ngDevMode ? [{ debugName: "tags" }] : /* istanbul ignore next */ []);
58
+ this.text = computed(() => this.typed.value(), ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
59
+ this.editing = signal(null, ...ngDevMode ? [{ debugName: "editing" }] : /* istanbul ignore next */ []);
60
+ this.input = signal(null, ...ngDevMode ? [{ debugName: "input" }] : /* istanbul ignore next */ []);
61
+ this.inputId = signal(void 0, ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
62
+ this.field = fieldControl({
63
+ id: this.inputId,
64
+ labelable: true,
65
+ value: this.tags,
66
+ filled: computed(() => this.tags().length > 0),
67
+ input: () => this.validation,
68
+ focusTarget: () => untracked(this.input)
69
+ });
70
+ this.isDisabled = computed(() => this.disabled() || this.field.disabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
71
+ this.formName = computed(() => this.field.name() ?? this.name(), ...ngDevMode ? [{ debugName: "formName" }] : /* istanbul ignore next */ []);
72
+ this.empty = computed(() => this.tags().length === 0, ...ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []);
73
+ this.state = computed(() => ({
74
+ disabled: this.isDisabled(),
75
+ empty: this.empty()
76
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
77
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
78
+ const host = this.host;
79
+ const validation = host.ownerDocument.createElement("input");
80
+ validation.setAttribute("aria-hidden", "true");
81
+ validation.tabIndex = -1;
82
+ validation.value = "";
83
+ validation.setAttribute("data-primitives-part", HIDDEN_PART);
84
+ Object.assign(validation.style, VISUALLY_HIDDEN_INPUT_STYLE);
85
+ this.validation = validation;
86
+ const hidden = [];
87
+ let mounted = false;
88
+ let stop = null;
89
+ afterNextRender(() => {
90
+ mounted = true;
91
+ host.appendChild(validation);
92
+ stop = bridgeForm(validation, {
93
+ reset: () => {
94
+ this.field.reset();
95
+ this.editing.set(null);
96
+ this.selection.set(untracked(this.defaultValue) ?? NONE, { reason: "none" });
97
+ this.typed.set(untracked(this.defaultInputValue) ?? "", { reason: "none" });
98
+ },
99
+ invalid: () => untracked(this.input)
100
+ });
101
+ this.writeInputs(hidden);
102
+ });
103
+ afterRenderEffect({ write: () => {
104
+ this.tags();
105
+ this.formName();
106
+ this.isDisabled();
107
+ this.required();
108
+ if (mounted) untracked(() => this.writeInputs(hidden));
109
+ } });
110
+ inject(DestroyRef).onDestroy(() => {
111
+ stop?.();
112
+ validation.remove();
113
+ for (const element of hidden) element.remove();
114
+ });
115
+ }
116
+ writeInputs(hidden) {
117
+ const validation = this.validation;
118
+ const tags = this.tags();
119
+ const name = this.formName();
120
+ const disabled = this.isDisabled();
121
+ validation.required = this.required() && tags.length === 0;
122
+ validation.disabled = disabled;
123
+ const values = name === void 0 ? NONE : tags;
124
+ while (hidden.length > values.length) hidden.pop()?.remove();
125
+ while (hidden.length < values.length) {
126
+ const element = this.host.ownerDocument.createElement("input");
127
+ element.type = "hidden";
128
+ element.setAttribute("data-primitives-part", HIDDEN_PART);
129
+ hidden.push(element);
130
+ }
131
+ let previous = validation;
132
+ for (const [index, element] of hidden.entries()) {
133
+ element.name = name ?? "";
134
+ element.value = values[index] ?? "";
135
+ element.disabled = disabled;
136
+ if (previous.nextSibling !== element) this.host.insertBefore(element, previous.nextSibling);
137
+ previous = element;
138
+ }
139
+ }
140
+ rules() {
141
+ return untracked(() => ({
142
+ delimiter: this.delimiter(),
143
+ max: this.max(),
144
+ allowDuplicates: this.allowDuplicates(),
145
+ validate: this.validate()
146
+ }));
147
+ }
148
+ tagElements() {
149
+ return [...this.host.querySelectorAll(TAG_SELECTOR)];
150
+ }
151
+ focusInput() {
152
+ untracked(this.input)?.focus();
153
+ }
154
+ focusTag(target) {
155
+ if (target === "input") this.focusInput();
156
+ else this.tagElements()[target]?.focus();
157
+ }
158
+ reassert() {
159
+ this.flush();
160
+ const element = untracked(this.input);
161
+ const text = untracked(this.text);
162
+ if (element !== null && element.value !== text) element.value = text;
163
+ }
164
+ refuse(refused, reason, event) {
165
+ for (const entry of refused) this.valueInvalid.emit({
166
+ value: entry.text,
167
+ details: {
168
+ reason,
169
+ event,
170
+ cause: entry.cause
171
+ }
172
+ });
173
+ }
174
+ offer(offered, whole, reason, event) {
175
+ const taken = takeTags(untracked(this.tags), offered, this.rules(), whole);
176
+ if (taken.added.length > 0) this.selection.set([...taken.value], {
177
+ reason,
178
+ event
179
+ });
180
+ this.refuse(taken.refused, reason, event);
181
+ this.typed.set(taken.text, {
182
+ reason,
183
+ event
184
+ });
185
+ }
186
+ inputChanged(event) {
187
+ const next = event.target.value;
188
+ if (typesDelimiter(untracked(this.text), next, untracked(this.delimiter), event.data ?? null)) this.offer(next, false, "input-change", event);
189
+ else this.typed.set(next, {
190
+ reason: "input-change",
191
+ event
192
+ });
193
+ this.reassert();
194
+ }
195
+ inputPasted(event) {
196
+ const pasted = event.clipboardData?.getData("text") ?? "";
197
+ const delimiter = untracked(this.delimiter);
198
+ if (delimiter === null || delimiter === "" || !pasted.includes(delimiter)) return;
199
+ event.preventDefault();
200
+ const target = event.target;
201
+ const start = target.selectionStart ?? target.value.length;
202
+ const end = target.selectionEnd ?? start;
203
+ this.offer(target.value.slice(0, start) + pasted + target.value.slice(end), true, "input-paste", event);
204
+ this.reassert();
205
+ }
206
+ inputKeyDown(event) {
207
+ if (event.defaultPrevented || composing(event)) return;
208
+ const target = event.target;
209
+ const action = tagsInputInputKeyTarget(event, target, untracked(this.tags).length, getDirection(target, this.direction()) === "rtl");
210
+ if (action === null) return;
211
+ if (action.type === "add") {
212
+ if (target.value.trim() === "") return;
213
+ event.preventDefault();
214
+ this.offer(target.value, true, "keyboard", event);
215
+ this.reassert();
216
+ return;
217
+ }
218
+ event.preventDefault();
219
+ this.focusTag(action.index);
220
+ }
221
+ removeAt(index, reason, event) {
222
+ const current = untracked(this.tags);
223
+ if (index < 0 || index >= current.length) return;
224
+ const edit = untracked(this.editing);
225
+ if (edit !== null && edit.index >= index) this.editing.set(edit.index === index ? null : {
226
+ index: edit.index - 1,
227
+ text: edit.text
228
+ });
229
+ this.selection.set(current.filter((_, position) => position !== index), {
230
+ reason,
231
+ event
232
+ });
233
+ this.flush();
234
+ }
235
+ startEdit(index) {
236
+ const current = untracked(this.tags)[index];
237
+ if (!untracked(this.editable) || untracked(this.isDisabled) || current === void 0 || untracked(this.editing)?.index === index) return;
238
+ this.editing.set({
239
+ index,
240
+ text: current
241
+ });
242
+ this.flush();
243
+ }
244
+ tagKeyDown(event, index) {
245
+ if (event.defaultPrevented || event.target !== event.currentTarget || composing(event)) return;
246
+ const element = event.currentTarget;
247
+ const action = tagsInputTagKeyTarget(event, index, untracked(this.tags).length, {
248
+ rtl: getDirection(element, this.direction()) === "rtl",
249
+ editable: untracked(this.editable)
250
+ });
251
+ if (action === null) return;
252
+ if (action.type === "type") {
253
+ this.focusInput();
254
+ return;
255
+ }
256
+ event.preventDefault();
257
+ if (action.type === "focus") this.focusTag(action.target);
258
+ else if (action.type === "remove") {
259
+ this.removeAt(index, "keyboard", event);
260
+ this.focusTag(action.focus);
261
+ } else this.startEdit(index);
262
+ }
263
+ setEditText(text) {
264
+ const current = untracked(this.editing);
265
+ if (current !== null) this.editing.set({
266
+ index: current.index,
267
+ text
268
+ });
269
+ }
270
+ commitEdit(reason, event, focus) {
271
+ const edit = untracked(this.editing);
272
+ if (edit === null) return;
273
+ const result = editTag(untracked(this.tags), edit.index, edit.text, this.rules());
274
+ if (result.type === "refused") {
275
+ this.refuse([result], reason, event);
276
+ if (!focus) this.editing.set(null);
277
+ return;
278
+ }
279
+ this.editing.set(null);
280
+ if (result.type !== "unchanged") this.selection.set([...result.value], {
281
+ reason,
282
+ event
283
+ });
284
+ if (!focus) return;
285
+ this.flush();
286
+ if (result.type === "removed") {
287
+ const left = result.value.length;
288
+ this.focusTag(edit.index < left ? edit.index : left > 0 ? left - 1 : "input");
289
+ } else this.focusTag(edit.index);
290
+ }
291
+ cancelEdit() {
292
+ const edit = untracked(this.editing);
293
+ if (edit === null) return;
294
+ this.editing.set(null);
295
+ this.flush();
296
+ this.focusTag(edit.index);
297
+ }
298
+ tagInputBlurred(index, event) {
299
+ if (untracked(this.editing)?.index === index) this.commitEdit("input-blur", event, false);
300
+ }
301
+ clear(event) {
302
+ this.editing.set(null);
303
+ if (untracked(this.tags).length > 0) this.selection.set([], {
304
+ reason: "clear-press",
305
+ event
306
+ });
307
+ if (untracked(this.text) !== "") this.typed.set("", {
308
+ reason: "clear-press",
309
+ event
310
+ });
311
+ this.flush();
312
+ this.focusInput();
313
+ }
314
+ onFocusOut(event) {
315
+ const next = event.relatedTarget;
316
+ if (next instanceof Node && this.host.contains(next)) return;
317
+ const behavior = untracked(this.blurBehavior);
318
+ const current = untracked(this.text);
319
+ if (behavior === "add" && current.trim() !== "") this.offer(current, true, "input-blur", event);
320
+ else if (behavior === "clear" && current !== "") this.typed.set("", {
321
+ reason: "input-blur",
322
+ event
323
+ });
324
+ this.field.blurred();
325
+ }
326
+ static {
327
+ this.ɵfac = i0.ɵɵngDeclareFactory({
328
+ minVersion: "12.0.0",
329
+ version: "22.2.6",
330
+ ngImport: i0,
331
+ type: TagsInputRoot,
332
+ deps: [],
333
+ target: i0.ɵɵFactoryTarget.Directive
334
+ });
335
+ }
336
+ static {
337
+ this.ɵdir = i0.ɵɵngDeclareDirective({
338
+ minVersion: "17.1.0",
339
+ version: "22.2.6",
340
+ type: TagsInputRoot,
341
+ isStandalone: true,
342
+ selector: "[tagsInputRoot]",
343
+ inputs: {
344
+ value: {
345
+ classPropertyName: "value",
346
+ publicName: "value",
347
+ isSignal: true,
348
+ isRequired: false,
349
+ transformFunction: null
350
+ },
351
+ defaultValue: {
352
+ classPropertyName: "defaultValue",
353
+ publicName: "defaultValue",
354
+ isSignal: true,
355
+ isRequired: false,
356
+ transformFunction: null
357
+ },
358
+ inputValue: {
359
+ classPropertyName: "inputValue",
360
+ publicName: "inputValue",
361
+ isSignal: true,
362
+ isRequired: false,
363
+ transformFunction: null
364
+ },
365
+ defaultInputValue: {
366
+ classPropertyName: "defaultInputValue",
367
+ publicName: "defaultInputValue",
368
+ isSignal: true,
369
+ isRequired: false,
370
+ transformFunction: null
371
+ },
372
+ delimiter: {
373
+ classPropertyName: "delimiter",
374
+ publicName: "delimiter",
375
+ isSignal: true,
376
+ isRequired: false,
377
+ transformFunction: null
378
+ },
379
+ max: {
380
+ classPropertyName: "max",
381
+ publicName: "max",
382
+ isSignal: true,
383
+ isRequired: false,
384
+ transformFunction: null
385
+ },
386
+ allowDuplicates: {
387
+ classPropertyName: "allowDuplicates",
388
+ publicName: "allowDuplicates",
389
+ isSignal: true,
390
+ isRequired: false,
391
+ transformFunction: null
392
+ },
393
+ validate: {
394
+ classPropertyName: "validate",
395
+ publicName: "validate",
396
+ isSignal: true,
397
+ isRequired: false,
398
+ transformFunction: null
399
+ },
400
+ blurBehavior: {
401
+ classPropertyName: "blurBehavior",
402
+ publicName: "blurBehavior",
403
+ isSignal: true,
404
+ isRequired: false,
405
+ transformFunction: null
406
+ },
407
+ editable: {
408
+ classPropertyName: "editable",
409
+ publicName: "editable",
410
+ isSignal: true,
411
+ isRequired: false,
412
+ transformFunction: null
413
+ },
414
+ disabled: {
415
+ classPropertyName: "disabled",
416
+ publicName: "disabled",
417
+ isSignal: true,
418
+ isRequired: false,
419
+ transformFunction: null
420
+ },
421
+ name: {
422
+ classPropertyName: "name",
423
+ publicName: "name",
424
+ isSignal: true,
425
+ isRequired: false,
426
+ transformFunction: null
427
+ },
428
+ required: {
429
+ classPropertyName: "required",
430
+ publicName: "required",
431
+ isSignal: true,
432
+ isRequired: false,
433
+ transformFunction: null
434
+ }
435
+ },
436
+ outputs: {
437
+ valueChange: "valueChange",
438
+ valueChangeDetails: "valueChangeDetails",
439
+ inputValueChange: "inputValueChange",
440
+ inputValueChangeDetails: "inputValueChangeDetails",
441
+ valueInvalid: "valueInvalid"
442
+ },
443
+ host: {
444
+ attributes: { "data-primitives-part": "tags-input-root" },
445
+ listeners: {
446
+ "focusin": "field.focused()",
447
+ "focusout": "onFocusOut($event)"
448
+ },
449
+ properties: {
450
+ "attr.data-invalid": "field.data().invalid",
451
+ "attr.data-valid": "field.data().valid",
452
+ "attr.data-dirty": "field.data().dirty",
453
+ "attr.data-touched": "field.data().touched",
454
+ "attr.data-filled": "field.data().filled",
455
+ "attr.data-focused": "field.data().focused",
456
+ "attr.data-disabled": "data().disabled",
457
+ "attr.data-empty": "data().empty"
458
+ }
459
+ },
460
+ exportAs: ["tagsInputRoot"],
461
+ ngImport: i0
462
+ });
463
+ }
464
+ };
465
+ i0.ɵɵngDeclareClassMetadata({
466
+ minVersion: "12.0.0",
467
+ version: "22.2.6",
468
+ ngImport: i0,
469
+ type: TagsInputRoot,
470
+ decorators: [{
471
+ type: Directive,
472
+ args: [{
473
+ selector: "[tagsInputRoot]",
474
+ exportAs: "tagsInputRoot",
475
+ host: {
476
+ "data-primitives-part": "tags-input-root",
477
+ "[attr.data-invalid]": "field.data().invalid",
478
+ "[attr.data-valid]": "field.data().valid",
479
+ "[attr.data-dirty]": "field.data().dirty",
480
+ "[attr.data-touched]": "field.data().touched",
481
+ "[attr.data-filled]": "field.data().filled",
482
+ "[attr.data-focused]": "field.data().focused",
483
+ "[attr.data-disabled]": "data().disabled",
484
+ "[attr.data-empty]": "data().empty",
485
+ "(focusin)": "field.focused()",
486
+ "(focusout)": "onFocusOut($event)"
487
+ }
488
+ }]
489
+ }],
490
+ ctorParameters: () => [],
491
+ propDecorators: {
492
+ value: [{
493
+ type: i0.Input,
494
+ args: [{
495
+ isSignal: true,
496
+ alias: "value",
497
+ required: false
498
+ }]
499
+ }],
500
+ valueChange: [{
501
+ type: i0.Output,
502
+ args: ["valueChange"]
503
+ }],
504
+ defaultValue: [{
505
+ type: i0.Input,
506
+ args: [{
507
+ isSignal: true,
508
+ alias: "defaultValue",
509
+ required: false
510
+ }]
511
+ }],
512
+ valueChangeDetails: [{
513
+ type: i0.Output,
514
+ args: ["valueChangeDetails"]
515
+ }],
516
+ inputValue: [{
517
+ type: i0.Input,
518
+ args: [{
519
+ isSignal: true,
520
+ alias: "inputValue",
521
+ required: false
522
+ }]
523
+ }],
524
+ inputValueChange: [{
525
+ type: i0.Output,
526
+ args: ["inputValueChange"]
527
+ }],
528
+ defaultInputValue: [{
529
+ type: i0.Input,
530
+ args: [{
531
+ isSignal: true,
532
+ alias: "defaultInputValue",
533
+ required: false
534
+ }]
535
+ }],
536
+ inputValueChangeDetails: [{
537
+ type: i0.Output,
538
+ args: ["inputValueChangeDetails"]
539
+ }],
540
+ valueInvalid: [{
541
+ type: i0.Output,
542
+ args: ["valueInvalid"]
543
+ }],
544
+ delimiter: [{
545
+ type: i0.Input,
546
+ args: [{
547
+ isSignal: true,
548
+ alias: "delimiter",
549
+ required: false
550
+ }]
551
+ }],
552
+ max: [{
553
+ type: i0.Input,
554
+ args: [{
555
+ isSignal: true,
556
+ alias: "max",
557
+ required: false
558
+ }]
559
+ }],
560
+ allowDuplicates: [{
561
+ type: i0.Input,
562
+ args: [{
563
+ isSignal: true,
564
+ alias: "allowDuplicates",
565
+ required: false
566
+ }]
567
+ }],
568
+ validate: [{
569
+ type: i0.Input,
570
+ args: [{
571
+ isSignal: true,
572
+ alias: "validate",
573
+ required: false
574
+ }]
575
+ }],
576
+ blurBehavior: [{
577
+ type: i0.Input,
578
+ args: [{
579
+ isSignal: true,
580
+ alias: "blurBehavior",
581
+ required: false
582
+ }]
583
+ }],
584
+ editable: [{
585
+ type: i0.Input,
586
+ args: [{
587
+ isSignal: true,
588
+ alias: "editable",
589
+ required: false
590
+ }]
591
+ }],
592
+ disabled: [{
593
+ type: i0.Input,
594
+ args: [{
595
+ isSignal: true,
596
+ alias: "disabled",
597
+ required: false
598
+ }]
599
+ }],
600
+ name: [{
601
+ type: i0.Input,
602
+ args: [{
603
+ isSignal: true,
604
+ alias: "name",
605
+ required: false
606
+ }]
607
+ }],
608
+ required: [{
609
+ type: i0.Input,
610
+ args: [{
611
+ isSignal: true,
612
+ alias: "required",
613
+ required: false
614
+ }]
615
+ }]
616
+ }
617
+ });
618
+ var TagsInputClearTrigger = class TagsInputClearTrigger {
619
+ constructor() {
620
+ this.root = injectEnclosing(TagsInputRoot, "tagsInputRoot", "tagsInputClearTrigger");
621
+ this.state = computed(() => ({ disabled: this.root.isDisabled() }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
622
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
623
+ }
624
+ static {
625
+ this.ɵfac = i0.ɵɵngDeclareFactory({
626
+ minVersion: "12.0.0",
627
+ version: "22.2.6",
628
+ ngImport: i0,
629
+ type: TagsInputClearTrigger,
630
+ deps: [],
631
+ target: i0.ɵɵFactoryTarget.Directive
632
+ });
633
+ }
634
+ static {
635
+ this.ɵdir = i0.ɵɵngDeclareDirective({
636
+ minVersion: "14.0.0",
637
+ version: "22.2.6",
638
+ type: TagsInputClearTrigger,
639
+ isStandalone: true,
640
+ selector: "[tagsInputClearTrigger]",
641
+ host: {
642
+ attributes: {
643
+ "type": "button",
644
+ "data-primitives-part": "tags-input-clear-trigger"
645
+ },
646
+ listeners: {
647
+ "mousedown": "$event.preventDefault()",
648
+ "click": "root.clear($event)"
649
+ },
650
+ properties: {
651
+ "attr.disabled": "data().disabled",
652
+ "attr.hidden": "root.empty() && root.text() === '' ? '' : null",
653
+ "attr.data-disabled": "data().disabled"
654
+ }
655
+ },
656
+ exportAs: ["tagsInputClearTrigger"],
657
+ ngImport: i0
658
+ });
659
+ }
660
+ };
661
+ i0.ɵɵngDeclareClassMetadata({
662
+ minVersion: "12.0.0",
663
+ version: "22.2.6",
664
+ ngImport: i0,
665
+ type: TagsInputClearTrigger,
666
+ decorators: [{
667
+ type: Directive,
668
+ args: [{
669
+ selector: "[tagsInputClearTrigger]",
670
+ exportAs: "tagsInputClearTrigger",
671
+ host: {
672
+ type: "button",
673
+ "[attr.disabled]": "data().disabled",
674
+ "[attr.hidden]": "root.empty() && root.text() === '' ? '' : null",
675
+ "data-primitives-part": "tags-input-clear-trigger",
676
+ "[attr.data-disabled]": "data().disabled",
677
+ "(mousedown)": "$event.preventDefault()",
678
+ "(click)": "root.clear($event)"
679
+ }
680
+ }]
681
+ }]
682
+ });
683
+ var TagsInputControl = class TagsInputControl {
684
+ constructor() {
685
+ this.root = injectEnclosing(TagsInputRoot, "tagsInputRoot", "tagsInputControl");
686
+ this.state = computed(() => ({
687
+ disabled: this.root.isDisabled(),
688
+ empty: this.root.empty()
689
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
690
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
691
+ }
692
+ onMouseDown(event) {
693
+ if (event.target === event.currentTarget && !this.state().disabled) {
694
+ event.preventDefault();
695
+ this.root.focusInput();
696
+ }
697
+ }
698
+ static {
699
+ this.ɵfac = i0.ɵɵngDeclareFactory({
700
+ minVersion: "12.0.0",
701
+ version: "22.2.6",
702
+ ngImport: i0,
703
+ type: TagsInputControl,
704
+ deps: [],
705
+ target: i0.ɵɵFactoryTarget.Directive
706
+ });
707
+ }
708
+ static {
709
+ this.ɵdir = i0.ɵɵngDeclareDirective({
710
+ minVersion: "14.0.0",
711
+ version: "22.2.6",
712
+ type: TagsInputControl,
713
+ isStandalone: true,
714
+ selector: "[tagsInputControl]",
715
+ host: {
716
+ attributes: { "data-primitives-part": "tags-input-control" },
717
+ listeners: { "mousedown": "onMouseDown($event)" },
718
+ properties: {
719
+ "attr.data-disabled": "data().disabled",
720
+ "attr.data-empty": "data().empty"
721
+ }
722
+ },
723
+ exportAs: ["tagsInputControl"],
724
+ ngImport: i0
725
+ });
726
+ }
727
+ };
728
+ i0.ɵɵngDeclareClassMetadata({
729
+ minVersion: "12.0.0",
730
+ version: "22.2.6",
731
+ ngImport: i0,
732
+ type: TagsInputControl,
733
+ decorators: [{
734
+ type: Directive,
735
+ args: [{
736
+ selector: "[tagsInputControl]",
737
+ exportAs: "tagsInputControl",
738
+ host: {
739
+ "data-primitives-part": "tags-input-control",
740
+ "[attr.data-disabled]": "data().disabled",
741
+ "[attr.data-empty]": "data().empty",
742
+ "(mousedown)": "onMouseDown($event)"
743
+ }
744
+ }]
745
+ }]
746
+ });
747
+ var TagsInputInput = class TagsInputInput {
748
+ constructor() {
749
+ this.root = injectEnclosing(TagsInputRoot, "tagsInputRoot", "tagsInputInput");
750
+ this.id = ownAttribute("id") ?? injectId("primitives-tags-input-input");
751
+ this.element = registerHost(this.root.input);
752
+ this.state = computed(() => ({
753
+ disabled: this.root.isDisabled(),
754
+ empty: this.root.empty()
755
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
756
+ const { field } = this.root;
757
+ writeFieldAria(field, this.element, {
758
+ "aria-labelledby": field.labelledBy,
759
+ "aria-describedby": field.describedBy,
760
+ "aria-invalid": field.ariaInvalid
761
+ });
762
+ this.root.inputId.set(this.id);
763
+ }
764
+ static {
765
+ this.ɵfac = i0.ɵɵngDeclareFactory({
766
+ minVersion: "12.0.0",
767
+ version: "22.2.6",
768
+ ngImport: i0,
769
+ type: TagsInputInput,
770
+ deps: [],
771
+ target: i0.ɵɵFactoryTarget.Directive
772
+ });
773
+ }
774
+ static {
775
+ this.ɵdir = i0.ɵɵngDeclareDirective({
776
+ minVersion: "14.0.0",
777
+ version: "22.2.6",
778
+ type: TagsInputInput,
779
+ isStandalone: true,
780
+ selector: "input[tagsInputInput]",
781
+ host: {
782
+ attributes: { "data-primitives-part": "tags-input-input" },
783
+ listeners: {
784
+ "input": "root.inputChanged($event)",
785
+ "keydown": "root.inputKeyDown($event)",
786
+ "paste": "root.inputPasted($event)"
787
+ },
788
+ properties: {
789
+ "attr.id": "id",
790
+ "value": "root.text()",
791
+ "attr.value": "root.text()",
792
+ "attr.disabled": "state().disabled ? '' : null",
793
+ "attr.aria-required": "root.required() ? 'true' : null"
794
+ }
795
+ },
796
+ exportAs: ["tagsInputInput"],
797
+ ngImport: i0
798
+ });
799
+ }
800
+ };
801
+ i0.ɵɵngDeclareClassMetadata({
802
+ minVersion: "12.0.0",
803
+ version: "22.2.6",
804
+ ngImport: i0,
805
+ type: TagsInputInput,
806
+ decorators: [{
807
+ type: Directive,
808
+ args: [{
809
+ selector: "input[tagsInputInput]",
810
+ exportAs: "tagsInputInput",
811
+ host: {
812
+ "[attr.id]": "id",
813
+ "[value]": "root.text()",
814
+ "[attr.value]": "root.text()",
815
+ "[attr.disabled]": "state().disabled ? '' : null",
816
+ "[attr.aria-required]": "root.required() ? 'true' : null",
817
+ "data-primitives-part": "tags-input-input",
818
+ "(input)": "root.inputChanged($event)",
819
+ "(keydown)": "root.inputKeyDown($event)",
820
+ "(paste)": "root.inputPasted($event)"
821
+ }
822
+ }]
823
+ }],
824
+ ctorParameters: () => []
825
+ });
826
+ var TagsInputTag = class TagsInputTag {
827
+ constructor() {
828
+ this.index = input.required({
829
+ ...ngDevMode ? { debugName: "index" } : /* istanbul ignore next */ {},
830
+ transform: numberAttribute
831
+ });
832
+ this.root = injectEnclosing(TagsInputRoot, "tagsInputRoot", "tagsInputTag");
833
+ this.state = computed(() => ({
834
+ disabled: this.root.isDisabled(),
835
+ editing: this.root.editing()?.index === this.index()
836
+ }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
837
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
838
+ }
839
+ onKeyDown(event) {
840
+ if (!this.state().disabled) this.root.tagKeyDown(event, this.index());
841
+ }
842
+ static {
843
+ this.ɵfac = i0.ɵɵngDeclareFactory({
844
+ minVersion: "12.0.0",
845
+ version: "22.2.6",
846
+ ngImport: i0,
847
+ type: TagsInputTag,
848
+ deps: [],
849
+ target: i0.ɵɵFactoryTarget.Directive
850
+ });
851
+ }
852
+ static {
853
+ this.ɵdir = i0.ɵɵngDeclareDirective({
854
+ minVersion: "17.1.0",
855
+ version: "22.2.6",
856
+ type: TagsInputTag,
857
+ isStandalone: true,
858
+ selector: "[tagsInputTag]",
859
+ inputs: { index: {
860
+ classPropertyName: "index",
861
+ publicName: "index",
862
+ isSignal: true,
863
+ isRequired: true,
864
+ transformFunction: null
865
+ } },
866
+ host: {
867
+ attributes: { "data-primitives-part": "tags-input-tag" },
868
+ listeners: {
869
+ "keydown": "onKeyDown($event)",
870
+ "dblclick": "root.startEdit(index())"
871
+ },
872
+ properties: {
873
+ "attr.tabindex": "state().disabled ? null : '-1'",
874
+ "attr.data-disabled": "data().disabled",
875
+ "attr.data-editing": "data().editing"
876
+ }
877
+ },
878
+ exportAs: ["tagsInputTag"],
879
+ ngImport: i0
880
+ });
881
+ }
882
+ };
883
+ i0.ɵɵngDeclareClassMetadata({
884
+ minVersion: "12.0.0",
885
+ version: "22.2.6",
886
+ ngImport: i0,
887
+ type: TagsInputTag,
888
+ decorators: [{
889
+ type: Directive,
890
+ args: [{
891
+ selector: "[tagsInputTag]",
892
+ exportAs: "tagsInputTag",
893
+ host: {
894
+ "[attr.tabindex]": "state().disabled ? null : '-1'",
895
+ "data-primitives-part": "tags-input-tag",
896
+ "[attr.data-disabled]": "data().disabled",
897
+ "[attr.data-editing]": "data().editing",
898
+ "(keydown)": "onKeyDown($event)",
899
+ "(dblclick)": "root.startEdit(index())"
900
+ }
901
+ }]
902
+ }],
903
+ propDecorators: { index: [{
904
+ type: i0.Input,
905
+ args: [{
906
+ isSignal: true,
907
+ alias: "index",
908
+ required: true
909
+ }]
910
+ }] }
911
+ });
912
+ var TagsInputTagInput = class TagsInputTagInput {
913
+ constructor() {
914
+ this.root = injectEnclosing(TagsInputRoot, "tagsInputRoot", "tagsInputTagInput");
915
+ this.tag = injectEnclosing(TagsInputTag, "tagsInputTag", "tagsInputTagInput");
916
+ this.element = injectHost();
917
+ this.editing = computed(() => this.tag.state().editing, ...ngDevMode ? [{ debugName: "editing" }] : /* istanbul ignore next */ []);
918
+ this.state = computed(() => ({ editing: this.editing() }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
919
+ this.text = computed(() => this.state().editing ? this.root.editing()?.text ?? "" : "", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
920
+ afterRenderEffect(() => {
921
+ if (this.editing()) {
922
+ this.element.focus();
923
+ this.element.select();
924
+ }
925
+ });
926
+ }
927
+ onInput() {
928
+ this.root.setEditText(this.element.value);
929
+ }
930
+ onKeyDown(event) {
931
+ if (!this.state().editing || composing(event)) return;
932
+ if (event.key === "Enter") {
933
+ event.preventDefault();
934
+ this.root.commitEdit("keyboard", event, true);
935
+ } else if (event.key === "Escape") {
936
+ event.preventDefault();
937
+ this.root.cancelEdit();
938
+ }
939
+ }
940
+ static {
941
+ this.ɵfac = i0.ɵɵngDeclareFactory({
942
+ minVersion: "12.0.0",
943
+ version: "22.2.6",
944
+ ngImport: i0,
945
+ type: TagsInputTagInput,
946
+ deps: [],
947
+ target: i0.ɵɵFactoryTarget.Directive
948
+ });
949
+ }
950
+ static {
951
+ this.ɵdir = i0.ɵɵngDeclareDirective({
952
+ minVersion: "14.0.0",
953
+ version: "22.2.6",
954
+ type: TagsInputTagInput,
955
+ isStandalone: true,
956
+ selector: "input[tagsInputTagInput]",
957
+ host: {
958
+ attributes: {
959
+ "tabindex": "-1",
960
+ "data-primitives-part": "tags-input-tag-input"
961
+ },
962
+ listeners: {
963
+ "input": "onInput()",
964
+ "keydown": "onKeyDown($event)",
965
+ "blur": "root.tagInputBlurred(tag.index(), $event)"
966
+ },
967
+ properties: {
968
+ "attr.hidden": "state().editing ? null : ''",
969
+ "attr.disabled": "root.isDisabled() ? '' : null",
970
+ "value": "text()",
971
+ "attr.value": "text()"
972
+ }
973
+ },
974
+ exportAs: ["tagsInputTagInput"],
975
+ ngImport: i0
976
+ });
977
+ }
978
+ };
979
+ i0.ɵɵngDeclareClassMetadata({
980
+ minVersion: "12.0.0",
981
+ version: "22.2.6",
982
+ ngImport: i0,
983
+ type: TagsInputTagInput,
984
+ decorators: [{
985
+ type: Directive,
986
+ args: [{
987
+ selector: "input[tagsInputTagInput]",
988
+ exportAs: "tagsInputTagInput",
989
+ host: {
990
+ tabindex: "-1",
991
+ "[attr.hidden]": "state().editing ? null : ''",
992
+ "[attr.disabled]": "root.isDisabled() ? '' : null",
993
+ "[value]": "text()",
994
+ "[attr.value]": "text()",
995
+ "data-primitives-part": "tags-input-tag-input",
996
+ "(input)": "onInput()",
997
+ "(keydown)": "onKeyDown($event)",
998
+ "(blur)": "root.tagInputBlurred(tag.index(), $event)"
999
+ }
1000
+ }]
1001
+ }],
1002
+ ctorParameters: () => []
1003
+ });
1004
+ var TagsInputTagRemove = class TagsInputTagRemove {
1005
+ constructor() {
1006
+ this.root = injectEnclosing(TagsInputRoot, "tagsInputRoot", "tagsInputTagRemove");
1007
+ this.tag = injectEnclosing(TagsInputTag, "tagsInputTag", "tagsInputTagRemove");
1008
+ this.state = computed(() => ({ disabled: this.tag.state().disabled }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
1009
+ this.data = computed(() => dataValues(this.state()), ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
1010
+ }
1011
+ onClick(event) {
1012
+ this.root.removeAt(this.tag.index(), "chip-remove-press", event);
1013
+ this.root.focusInput();
1014
+ }
1015
+ static {
1016
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1017
+ minVersion: "12.0.0",
1018
+ version: "22.2.6",
1019
+ ngImport: i0,
1020
+ type: TagsInputTagRemove,
1021
+ deps: [],
1022
+ target: i0.ɵɵFactoryTarget.Directive
1023
+ });
1024
+ }
1025
+ static {
1026
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1027
+ minVersion: "14.0.0",
1028
+ version: "22.2.6",
1029
+ type: TagsInputTagRemove,
1030
+ isStandalone: true,
1031
+ selector: "[tagsInputTagRemove]",
1032
+ host: {
1033
+ attributes: {
1034
+ "type": "button",
1035
+ "tabindex": "-1",
1036
+ "data-primitives-part": "tags-input-tag-remove"
1037
+ },
1038
+ listeners: {
1039
+ "mousedown": "$event.preventDefault()",
1040
+ "click": "onClick($event)"
1041
+ },
1042
+ properties: {
1043
+ "attr.disabled": "data().disabled",
1044
+ "attr.hidden": "tag.state().editing ? '' : null",
1045
+ "attr.data-disabled": "data().disabled"
1046
+ }
1047
+ },
1048
+ exportAs: ["tagsInputTagRemove"],
1049
+ ngImport: i0
1050
+ });
1051
+ }
1052
+ };
1053
+ i0.ɵɵngDeclareClassMetadata({
1054
+ minVersion: "12.0.0",
1055
+ version: "22.2.6",
1056
+ ngImport: i0,
1057
+ type: TagsInputTagRemove,
1058
+ decorators: [{
1059
+ type: Directive,
1060
+ args: [{
1061
+ selector: "[tagsInputTagRemove]",
1062
+ exportAs: "tagsInputTagRemove",
1063
+ host: {
1064
+ type: "button",
1065
+ tabindex: "-1",
1066
+ "[attr.disabled]": "data().disabled",
1067
+ "[attr.hidden]": "tag.state().editing ? '' : null",
1068
+ "data-primitives-part": "tags-input-tag-remove",
1069
+ "[attr.data-disabled]": "data().disabled",
1070
+ "(mousedown)": "$event.preventDefault()",
1071
+ "(click)": "onClick($event)"
1072
+ }
1073
+ }]
1074
+ }]
1075
+ });
1076
+ var TagsInputTagText = class TagsInputTagText {
1077
+ constructor() {
1078
+ this.tag = injectEnclosing(TagsInputTag, "tagsInputTag", "tagsInputTagText");
1079
+ this.state = computed(() => ({ editing: this.tag.state().editing }), ...ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []);
1080
+ }
1081
+ static {
1082
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1083
+ minVersion: "12.0.0",
1084
+ version: "22.2.6",
1085
+ ngImport: i0,
1086
+ type: TagsInputTagText,
1087
+ deps: [],
1088
+ target: i0.ɵɵFactoryTarget.Directive
1089
+ });
1090
+ }
1091
+ static {
1092
+ this.ɵdir = i0.ɵɵngDeclareDirective({
1093
+ minVersion: "14.0.0",
1094
+ version: "22.2.6",
1095
+ type: TagsInputTagText,
1096
+ isStandalone: true,
1097
+ selector: "[tagsInputTagText]",
1098
+ host: {
1099
+ attributes: { "data-primitives-part": "tags-input-tag-text" },
1100
+ properties: { "attr.hidden": "state().editing ? '' : null" }
1101
+ },
1102
+ exportAs: ["tagsInputTagText"],
1103
+ ngImport: i0
1104
+ });
1105
+ }
1106
+ };
1107
+ i0.ɵɵngDeclareClassMetadata({
1108
+ minVersion: "12.0.0",
1109
+ version: "22.2.6",
1110
+ ngImport: i0,
1111
+ type: TagsInputTagText,
1112
+ decorators: [{
1113
+ type: Directive,
1114
+ args: [{
1115
+ selector: "[tagsInputTagText]",
1116
+ exportAs: "tagsInputTagText",
1117
+ host: {
1118
+ "[attr.hidden]": "state().editing ? '' : null",
1119
+ "data-primitives-part": "tags-input-tag-text"
1120
+ }
1121
+ }]
1122
+ }]
1123
+ });
1124
+ export { TagsInputClearTrigger, TagsInputControl, TagsInputInput, TagsInputRoot, TagsInputTag, TagsInputTagInput, TagsInputTagRemove, TagsInputTagText };
1125
+
1126
+ //# sourceMappingURL=fragiola-primitives-angular-tags-input.mjs.map