@forgeroute/ui 0.5.16 → 0.5.17

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 (340) hide show
  1. package/fesm2022/forgeroute-ui-action-bar.mjs +190 -0
  2. package/fesm2022/forgeroute-ui-action-bar.mjs.map +1 -0
  3. package/fesm2022/forgeroute-ui-address-input.mjs +1164 -0
  4. package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -0
  5. package/fesm2022/forgeroute-ui-alert.mjs +223 -0
  6. package/fesm2022/forgeroute-ui-alert.mjs.map +1 -0
  7. package/fesm2022/forgeroute-ui-avatar.mjs +320 -0
  8. package/fesm2022/forgeroute-ui-avatar.mjs.map +1 -0
  9. package/fesm2022/forgeroute-ui-badge.mjs +158 -0
  10. package/fesm2022/forgeroute-ui-badge.mjs.map +1 -0
  11. package/fesm2022/forgeroute-ui-bar-row.mjs +255 -0
  12. package/fesm2022/forgeroute-ui-bar-row.mjs.map +1 -0
  13. package/fesm2022/forgeroute-ui-boards.mjs +2201 -0
  14. package/fesm2022/forgeroute-ui-boards.mjs.map +1 -0
  15. package/fesm2022/forgeroute-ui-bulk-eligible.mjs +172 -0
  16. package/fesm2022/forgeroute-ui-bulk-eligible.mjs.map +1 -0
  17. package/fesm2022/forgeroute-ui-business-hours.mjs +771 -0
  18. package/fesm2022/forgeroute-ui-business-hours.mjs.map +1 -0
  19. package/fesm2022/forgeroute-ui-calendar.mjs +2006 -0
  20. package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -0
  21. package/fesm2022/forgeroute-ui-card-list-item.mjs +556 -0
  22. package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -0
  23. package/fesm2022/forgeroute-ui-charts.mjs +1 -1
  24. package/fesm2022/forgeroute-ui-charts.mjs.map +1 -1
  25. package/fesm2022/forgeroute-ui-checkbox.mjs +815 -0
  26. package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -0
  27. package/fesm2022/forgeroute-ui-chip.mjs +379 -0
  28. package/fesm2022/forgeroute-ui-chip.mjs.map +1 -0
  29. package/fesm2022/forgeroute-ui-color-input.mjs +492 -0
  30. package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -0
  31. package/fesm2022/forgeroute-ui-column-filter.mjs +645 -0
  32. package/fesm2022/forgeroute-ui-column-filter.mjs.map +1 -0
  33. package/fesm2022/forgeroute-ui-columns.mjs +351 -0
  34. package/fesm2022/forgeroute-ui-columns.mjs.map +1 -0
  35. package/fesm2022/forgeroute-ui-combobox.mjs +772 -0
  36. package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -0
  37. package/fesm2022/forgeroute-ui-confirm.mjs +48 -0
  38. package/fesm2022/forgeroute-ui-confirm.mjs.map +1 -0
  39. package/fesm2022/forgeroute-ui-contact-picker.mjs +865 -0
  40. package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -0
  41. package/fesm2022/forgeroute-ui-conversations.mjs +3627 -0
  42. package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -0
  43. package/fesm2022/forgeroute-ui-copy-field.mjs +378 -0
  44. package/fesm2022/forgeroute-ui-copy-field.mjs.map +1 -0
  45. package/fesm2022/forgeroute-ui-data-table-core.mjs +6150 -0
  46. package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -0
  47. package/fesm2022/forgeroute-ui-date-input.mjs +384 -0
  48. package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -0
  49. package/fesm2022/forgeroute-ui-date-range-picker.mjs +453 -0
  50. package/fesm2022/forgeroute-ui-date-range-picker.mjs.map +1 -0
  51. package/fesm2022/forgeroute-ui-datetime-input.mjs +375 -0
  52. package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -0
  53. package/fesm2022/forgeroute-ui-detail-card.mjs +655 -0
  54. package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -0
  55. package/fesm2022/forgeroute-ui-discount-selector.mjs +259 -0
  56. package/fesm2022/forgeroute-ui-discount-selector.mjs.map +1 -0
  57. package/fesm2022/forgeroute-ui-divider.mjs +111 -0
  58. package/fesm2022/forgeroute-ui-divider.mjs.map +1 -0
  59. package/fesm2022/forgeroute-ui-dropdown.mjs +550 -0
  60. package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -0
  61. package/fesm2022/forgeroute-ui-editor.mjs +4545 -0
  62. package/fesm2022/forgeroute-ui-editor.mjs.map +1 -0
  63. package/fesm2022/forgeroute-ui-empty-state.mjs +231 -0
  64. package/fesm2022/forgeroute-ui-empty-state.mjs.map +1 -0
  65. package/fesm2022/forgeroute-ui-error-state.mjs +195 -0
  66. package/fesm2022/forgeroute-ui-error-state.mjs.map +1 -0
  67. package/fesm2022/forgeroute-ui-error.mjs +93 -0
  68. package/fesm2022/forgeroute-ui-error.mjs.map +1 -0
  69. package/fesm2022/forgeroute-ui-fade.mjs +117 -0
  70. package/fesm2022/forgeroute-ui-fade.mjs.map +1 -0
  71. package/fesm2022/forgeroute-ui-file-input.mjs +999 -0
  72. package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -0
  73. package/fesm2022/forgeroute-ui-fixed-footer.mjs +115 -0
  74. package/fesm2022/forgeroute-ui-fixed-footer.mjs.map +1 -0
  75. package/fesm2022/forgeroute-ui-form-row.mjs +126 -0
  76. package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -0
  77. package/fesm2022/forgeroute-ui-form-section.mjs +93 -0
  78. package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -0
  79. package/fesm2022/forgeroute-ui-form.mjs +139 -0
  80. package/fesm2022/forgeroute-ui-form.mjs.map +1 -0
  81. package/fesm2022/forgeroute-ui-hint.mjs +47 -0
  82. package/fesm2022/forgeroute-ui-hint.mjs.map +1 -0
  83. package/fesm2022/forgeroute-ui-icon-picker.mjs +424 -0
  84. package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -0
  85. package/fesm2022/forgeroute-ui-icon.mjs +311 -0
  86. package/fesm2022/forgeroute-ui-icon.mjs.map +1 -0
  87. package/fesm2022/forgeroute-ui-image-preview.mjs +237 -0
  88. package/fesm2022/forgeroute-ui-image-preview.mjs.map +1 -0
  89. package/fesm2022/forgeroute-ui-keypad.mjs +278 -0
  90. package/fesm2022/forgeroute-ui-keypad.mjs.map +1 -0
  91. package/fesm2022/forgeroute-ui-kpi-card.mjs +490 -0
  92. package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -0
  93. package/fesm2022/forgeroute-ui-language-switcher.mjs +134 -0
  94. package/fesm2022/forgeroute-ui-language-switcher.mjs.map +1 -0
  95. package/fesm2022/forgeroute-ui-layout.mjs +18 -0
  96. package/fesm2022/forgeroute-ui-layout.mjs.map +1 -0
  97. package/fesm2022/forgeroute-ui-list-item.mjs +620 -0
  98. package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -0
  99. package/fesm2022/forgeroute-ui-list.mjs +866 -0
  100. package/fesm2022/forgeroute-ui-list.mjs.map +1 -0
  101. package/fesm2022/forgeroute-ui-live-region.mjs +118 -0
  102. package/fesm2022/forgeroute-ui-live-region.mjs.map +1 -0
  103. package/fesm2022/forgeroute-ui-map.mjs +5 -1
  104. package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
  105. package/fesm2022/forgeroute-ui-maps.mjs +2 -1
  106. package/fesm2022/forgeroute-ui-maps.mjs.map +1 -1
  107. package/fesm2022/forgeroute-ui-media.mjs +4615 -0
  108. package/fesm2022/forgeroute-ui-media.mjs.map +1 -0
  109. package/fesm2022/forgeroute-ui-messaging.mjs +20 -1
  110. package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
  111. package/fesm2022/forgeroute-ui-more-menu.mjs +418 -0
  112. package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -0
  113. package/fesm2022/forgeroute-ui-multi-select.mjs +532 -0
  114. package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -0
  115. package/fesm2022/forgeroute-ui-notes.mjs +768 -0
  116. package/fesm2022/forgeroute-ui-notes.mjs.map +1 -0
  117. package/fesm2022/forgeroute-ui-notification-bell.mjs +587 -0
  118. package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -0
  119. package/fesm2022/forgeroute-ui-offline-banner.mjs +156 -0
  120. package/fesm2022/forgeroute-ui-offline-banner.mjs.map +1 -0
  121. package/fesm2022/forgeroute-ui-option-card.mjs +379 -0
  122. package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -0
  123. package/fesm2022/forgeroute-ui-page.mjs +317 -0
  124. package/fesm2022/forgeroute-ui-page.mjs.map +1 -0
  125. package/fesm2022/forgeroute-ui-pagination.mjs +225 -0
  126. package/fesm2022/forgeroute-ui-pagination.mjs.map +1 -0
  127. package/fesm2022/forgeroute-ui-panel-info-list.mjs +422 -0
  128. package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -0
  129. package/fesm2022/forgeroute-ui-password-requirements.mjs +237 -0
  130. package/fesm2022/forgeroute-ui-password-requirements.mjs.map +1 -0
  131. package/fesm2022/forgeroute-ui-payments.mjs +6243 -0
  132. package/fesm2022/forgeroute-ui-payments.mjs.map +1 -0
  133. package/fesm2022/forgeroute-ui-pdf.mjs +9 -1
  134. package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
  135. package/fesm2022/forgeroute-ui-phone-number-picker.mjs +840 -0
  136. package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -0
  137. package/fesm2022/forgeroute-ui-pill-tabs.mjs +546 -0
  138. package/fesm2022/forgeroute-ui-pill-tabs.mjs.map +1 -0
  139. package/fesm2022/forgeroute-ui-print.mjs +76 -0
  140. package/fesm2022/forgeroute-ui-print.mjs.map +1 -0
  141. package/fesm2022/forgeroute-ui-progress-bar.mjs +252 -0
  142. package/fesm2022/forgeroute-ui-progress-bar.mjs.map +1 -0
  143. package/fesm2022/forgeroute-ui-progress-ring.mjs +277 -0
  144. package/fesm2022/forgeroute-ui-progress-ring.mjs.map +1 -0
  145. package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs +301 -0
  146. package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs.map +1 -0
  147. package/fesm2022/forgeroute-ui-quickbooks.mjs +18 -1
  148. package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
  149. package/fesm2022/forgeroute-ui-radio-matrix.mjs +471 -0
  150. package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -0
  151. package/fesm2022/forgeroute-ui-radio.mjs +911 -0
  152. package/fesm2022/forgeroute-ui-radio.mjs.map +1 -0
  153. package/fesm2022/forgeroute-ui-read-only-mode.mjs +15 -0
  154. package/fesm2022/forgeroute-ui-read-only-mode.mjs.map +1 -0
  155. package/fesm2022/forgeroute-ui-readonly-fieldset.mjs +146 -0
  156. package/fesm2022/forgeroute-ui-readonly-fieldset.mjs.map +1 -0
  157. package/fesm2022/forgeroute-ui-reminder-alerts.mjs +249 -0
  158. package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -0
  159. package/fesm2022/forgeroute-ui-search-input.mjs +373 -0
  160. package/fesm2022/forgeroute-ui-search-input.mjs.map +1 -0
  161. package/fesm2022/forgeroute-ui-section-header.mjs +296 -0
  162. package/fesm2022/forgeroute-ui-section-header.mjs.map +1 -0
  163. package/fesm2022/forgeroute-ui-select.mjs +498 -0
  164. package/fesm2022/forgeroute-ui-select.mjs.map +1 -0
  165. package/fesm2022/forgeroute-ui-setup.mjs +4649 -0
  166. package/fesm2022/forgeroute-ui-setup.mjs.map +1 -0
  167. package/fesm2022/forgeroute-ui-share-menu.mjs +461 -0
  168. package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -0
  169. package/fesm2022/forgeroute-ui-shell.mjs +981 -0
  170. package/fesm2022/forgeroute-ui-shell.mjs.map +1 -0
  171. package/fesm2022/forgeroute-ui-show.mjs +129 -0
  172. package/fesm2022/forgeroute-ui-show.mjs.map +1 -0
  173. package/fesm2022/forgeroute-ui-sidebar-layout.mjs +355 -0
  174. package/fesm2022/forgeroute-ui-sidebar-layout.mjs.map +1 -0
  175. package/fesm2022/forgeroute-ui-skeleton.mjs +152 -0
  176. package/fesm2022/forgeroute-ui-skeleton.mjs.map +1 -0
  177. package/fesm2022/forgeroute-ui-skip-link.mjs +129 -0
  178. package/fesm2022/forgeroute-ui-skip-link.mjs.map +1 -0
  179. package/fesm2022/forgeroute-ui-snackbar.mjs +200 -0
  180. package/fesm2022/forgeroute-ui-snackbar.mjs.map +1 -0
  181. package/fesm2022/forgeroute-ui-square.mjs +15 -1
  182. package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
  183. package/fesm2022/forgeroute-ui-stack.mjs +233 -0
  184. package/fesm2022/forgeroute-ui-stack.mjs.map +1 -0
  185. package/fesm2022/forgeroute-ui-stacked-bar.mjs +200 -0
  186. package/fesm2022/forgeroute-ui-stacked-bar.mjs.map +1 -0
  187. package/fesm2022/forgeroute-ui-stacking-plan.mjs +365 -0
  188. package/fesm2022/forgeroute-ui-stacking-plan.mjs.map +1 -0
  189. package/fesm2022/forgeroute-ui-star-rating.mjs +498 -0
  190. package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -0
  191. package/fesm2022/forgeroute-ui-star.mjs +184 -0
  192. package/fesm2022/forgeroute-ui-star.mjs.map +1 -0
  193. package/fesm2022/forgeroute-ui-stepper.mjs +615 -0
  194. package/fesm2022/forgeroute-ui-stepper.mjs.map +1 -0
  195. package/fesm2022/forgeroute-ui-stripe.mjs +14 -1
  196. package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
  197. package/fesm2022/forgeroute-ui-swatch-picker.mjs +416 -0
  198. package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -0
  199. package/fesm2022/forgeroute-ui-table-toolbar.mjs +770 -0
  200. package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -0
  201. package/fesm2022/forgeroute-ui-table-types.mjs +277 -0
  202. package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -0
  203. package/fesm2022/forgeroute-ui-text-input.mjs +1003 -0
  204. package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -0
  205. package/fesm2022/forgeroute-ui-text-template-picker.mjs +356 -0
  206. package/fesm2022/forgeroute-ui-text-template-picker.mjs.map +1 -0
  207. package/fesm2022/forgeroute-ui-text.mjs +195 -0
  208. package/fesm2022/forgeroute-ui-text.mjs.map +1 -0
  209. package/fesm2022/forgeroute-ui-textarea-input.mjs +542 -0
  210. package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -0
  211. package/fesm2022/forgeroute-ui-time-input.mjs +401 -0
  212. package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -0
  213. package/fesm2022/forgeroute-ui-timeline.mjs +549 -0
  214. package/fesm2022/forgeroute-ui-timeline.mjs.map +1 -0
  215. package/fesm2022/forgeroute-ui-toast.mjs +507 -0
  216. package/fesm2022/forgeroute-ui-toast.mjs.map +1 -0
  217. package/fesm2022/forgeroute-ui-toggle-badge.mjs +177 -0
  218. package/fesm2022/forgeroute-ui-toggle-badge.mjs.map +1 -0
  219. package/fesm2022/forgeroute-ui-toggle.mjs +275 -0
  220. package/fesm2022/forgeroute-ui-toggle.mjs.map +1 -0
  221. package/fesm2022/forgeroute-ui-tooltip.mjs +155 -0
  222. package/fesm2022/forgeroute-ui-tooltip.mjs.map +1 -0
  223. package/fesm2022/forgeroute-ui-utils.mjs +1071 -0
  224. package/fesm2022/forgeroute-ui-utils.mjs.map +1 -0
  225. package/fesm2022/forgeroute-ui.mjs +105 -70663
  226. package/package.json +417 -1
  227. package/types/forgeroute-ui-action-bar.d.ts +74 -0
  228. package/types/forgeroute-ui-address-input.d.ts +354 -0
  229. package/types/forgeroute-ui-alert.d.ts +89 -0
  230. package/types/forgeroute-ui-avatar.d.ts +85 -0
  231. package/types/forgeroute-ui-badge.d.ts +45 -0
  232. package/types/forgeroute-ui-bar-row.d.ts +90 -0
  233. package/types/forgeroute-ui-boards.d.ts +575 -0
  234. package/types/forgeroute-ui-bulk-eligible.d.ts +53 -0
  235. package/types/forgeroute-ui-business-hours.d.ts +191 -0
  236. package/types/forgeroute-ui-calendar.d.ts +544 -0
  237. package/types/forgeroute-ui-card-list-item.d.ts +186 -0
  238. package/types/forgeroute-ui-charts.d.ts +1 -1
  239. package/types/forgeroute-ui-checkbox.d.ts +270 -0
  240. package/types/forgeroute-ui-chip.d.ts +125 -0
  241. package/types/forgeroute-ui-color-input.d.ts +160 -0
  242. package/types/forgeroute-ui-column-filter.d.ts +130 -0
  243. package/types/forgeroute-ui-columns.d.ts +150 -0
  244. package/types/forgeroute-ui-combobox.d.ts +252 -0
  245. package/types/forgeroute-ui-confirm.d.ts +34 -0
  246. package/types/forgeroute-ui-contact-picker.d.ts +173 -0
  247. package/types/forgeroute-ui-conversations.d.ts +993 -0
  248. package/types/forgeroute-ui-copy-field.d.ts +122 -0
  249. package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
  250. package/types/forgeroute-ui-date-input.d.ts +101 -0
  251. package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
  252. package/types/forgeroute-ui-datetime-input.d.ts +97 -0
  253. package/types/forgeroute-ui-detail-card.d.ts +252 -0
  254. package/types/forgeroute-ui-discount-selector.d.ts +57 -0
  255. package/types/forgeroute-ui-divider.d.ts +40 -0
  256. package/types/forgeroute-ui-dropdown.d.ts +156 -0
  257. package/types/forgeroute-ui-editor.d.ts +873 -0
  258. package/types/forgeroute-ui-empty-state.d.ts +29 -0
  259. package/types/forgeroute-ui-error-state.d.ts +38 -0
  260. package/types/forgeroute-ui-error.d.ts +29 -0
  261. package/types/forgeroute-ui-fade.d.ts +39 -0
  262. package/types/forgeroute-ui-file-input.d.ts +337 -0
  263. package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
  264. package/types/forgeroute-ui-form-row.d.ts +30 -0
  265. package/types/forgeroute-ui-form-section.d.ts +18 -0
  266. package/types/forgeroute-ui-form.d.ts +68 -0
  267. package/types/forgeroute-ui-hint.d.ts +10 -0
  268. package/types/forgeroute-ui-icon-picker.d.ts +122 -0
  269. package/types/forgeroute-ui-icon.d.ts +95 -0
  270. package/types/forgeroute-ui-image-preview.d.ts +88 -0
  271. package/types/forgeroute-ui-keypad.d.ts +73 -0
  272. package/types/forgeroute-ui-kpi-card.d.ts +161 -0
  273. package/types/forgeroute-ui-language-switcher.d.ts +41 -0
  274. package/types/forgeroute-ui-layout.d.ts +13 -0
  275. package/types/forgeroute-ui-list-item.d.ts +253 -0
  276. package/types/forgeroute-ui-list.d.ts +282 -0
  277. package/types/forgeroute-ui-live-region.d.ts +49 -0
  278. package/types/forgeroute-ui-map.d.ts +1 -1
  279. package/types/forgeroute-ui-maps.d.ts +1 -1
  280. package/types/forgeroute-ui-media.d.ts +1221 -0
  281. package/types/forgeroute-ui-messaging.d.ts +6 -1
  282. package/types/forgeroute-ui-more-menu.d.ts +91 -0
  283. package/types/forgeroute-ui-multi-select.d.ts +119 -0
  284. package/types/forgeroute-ui-notes.d.ts +172 -0
  285. package/types/forgeroute-ui-notification-bell.d.ts +135 -0
  286. package/types/forgeroute-ui-offline-banner.d.ts +44 -0
  287. package/types/forgeroute-ui-option-card.d.ts +106 -0
  288. package/types/forgeroute-ui-page.d.ts +115 -0
  289. package/types/forgeroute-ui-pagination.d.ts +55 -0
  290. package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
  291. package/types/forgeroute-ui-password-requirements.d.ts +89 -0
  292. package/types/forgeroute-ui-payments.d.ts +1818 -0
  293. package/types/forgeroute-ui-pdf.d.ts +1 -1
  294. package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
  295. package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
  296. package/types/forgeroute-ui-print.d.ts +40 -0
  297. package/types/forgeroute-ui-progress-bar.d.ts +88 -0
  298. package/types/forgeroute-ui-progress-ring.d.ts +102 -0
  299. package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
  300. package/types/forgeroute-ui-quickbooks.d.ts +4 -1
  301. package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
  302. package/types/forgeroute-ui-radio.d.ts +311 -0
  303. package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
  304. package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
  305. package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
  306. package/types/forgeroute-ui-search-input.d.ts +93 -0
  307. package/types/forgeroute-ui-section-header.d.ts +149 -0
  308. package/types/forgeroute-ui-select.d.ts +183 -0
  309. package/types/forgeroute-ui-setup.d.ts +775 -0
  310. package/types/forgeroute-ui-share-menu.d.ts +99 -0
  311. package/types/forgeroute-ui-shell.d.ts +173 -0
  312. package/types/forgeroute-ui-show.d.ts +40 -0
  313. package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
  314. package/types/forgeroute-ui-skeleton.d.ts +51 -0
  315. package/types/forgeroute-ui-skip-link.d.ts +51 -0
  316. package/types/forgeroute-ui-snackbar.d.ts +50 -0
  317. package/types/forgeroute-ui-square.d.ts +3 -1
  318. package/types/forgeroute-ui-stack.d.ts +99 -0
  319. package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
  320. package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
  321. package/types/forgeroute-ui-star-rating.d.ts +151 -0
  322. package/types/forgeroute-ui-star.d.ts +46 -0
  323. package/types/forgeroute-ui-stepper.d.ts +273 -0
  324. package/types/forgeroute-ui-stripe.d.ts +3 -1
  325. package/types/forgeroute-ui-swatch-picker.d.ts +118 -0
  326. package/types/forgeroute-ui-table-toolbar.d.ts +116 -0
  327. package/types/forgeroute-ui-table-types.d.ts +624 -0
  328. package/types/forgeroute-ui-text-input.d.ts +359 -0
  329. package/types/forgeroute-ui-text-template-picker.d.ts +100 -0
  330. package/types/forgeroute-ui-text.d.ts +76 -0
  331. package/types/forgeroute-ui-textarea-input.d.ts +174 -0
  332. package/types/forgeroute-ui-time-input.d.ts +105 -0
  333. package/types/forgeroute-ui-timeline.d.ts +196 -0
  334. package/types/forgeroute-ui-toast.d.ts +131 -0
  335. package/types/forgeroute-ui-toggle-badge.d.ts +64 -0
  336. package/types/forgeroute-ui-toggle.d.ts +92 -0
  337. package/types/forgeroute-ui-tooltip.d.ts +36 -0
  338. package/types/forgeroute-ui-utils.d.ts +210 -0
  339. package/types/forgeroute-ui.d.ts +106 -19539
  340. package/fesm2022/forgeroute-ui.mjs.map +0 -1
@@ -0,0 +1,492 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, computed, effect, forwardRef, inject, input, output, signal } from "@angular/core";
3
+ import { NG_VALIDATORS, NG_VALUE_ACCESSOR } from "@angular/forms";
4
+ import { UiFieldValidity, UiLabelsService, createFieldReveal, issueToErrors, requiredIssue } from "@forgeroute/ui/core";
5
+ let nextColorId = 0;
6
+ function normalizeHexColor(value, allowAlpha = false) {
7
+ if (typeof value !== "string") return null;
8
+ const m = /^#?([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(value.trim());
9
+ if (!m) return null;
10
+ let hex = m[1].toLowerCase();
11
+ if (hex.length === 8 && !allowAlpha) return null;
12
+ if (hex.length === 3) hex = hex.split("").map((c) => c + c).join("");
13
+ return "#" + hex;
14
+ }
15
+ var ColorInputComponent = class ColorInputComponent {
16
+ constructor() {
17
+ this.labels = inject(UiLabelsService);
18
+ this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
19
+ this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
20
+ this.placeholder = input("#3b82f6", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
21
+ this.required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
22
+ this.hint = input("", ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
23
+ this.error = input("", ...ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []);
24
+ this.showErrors = input(false, ...ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []);
25
+ this.allowAlpha = input(false, ...ngDevMode ? [{ debugName: "allowAlpha" }] : /* istanbul ignore next */ []);
26
+ this.presets = input([], ...ngDevMode ? [{ debugName: "presets" }] : /* istanbul ignore next */ []);
27
+ this.invalidChange = output();
28
+ this._disabledInput = input(false, {
29
+ ...ngDevMode ? { debugName: "_disabledInput" } : /* istanbul ignore next */ {},
30
+ alias: "disabled"
31
+ });
32
+ this._cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "_cvaDisabled" }] : /* istanbul ignore next */ []);
33
+ this.disabled = computed(() => this._disabledInput() || this._cvaDisabled(), ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
34
+ this._model = signal("", ...ngDevMode ? [{ debugName: "_model" }] : /* istanbul ignore next */ []);
35
+ this._text = signal("", ...ngDevMode ? [{ debugName: "_text" }] : /* istanbul ignore next */ []);
36
+ this._edited = signal(false, ...ngDevMode ? [{ debugName: "_edited" }] : /* istanbul ignore next */ []);
37
+ this._reveal = createFieldReveal(this.showErrors);
38
+ this._issue = computed(() => this._check(this._model(), this._edited()), ...ngDevMode ? [{ debugName: "_issue" }] : /* istanbul ignore next */ []);
39
+ this.invalid = computed(() => !!this.error() || !!this._issue(), ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
40
+ this.errorMessage = computed(() => this._issue()?.message ?? "", ...ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []);
41
+ this._activeError = computed(() => this._reveal.revealed() ? this.error() || this.errorMessage() : "", ...ngDevMode ? [{ debugName: "_activeError" }] : /* istanbul ignore next */ []);
42
+ this._valid = computed(() => normalizeHexColor(this._model(), this.allowAlpha()), ...ngDevMode ? [{ debugName: "_valid" }] : /* istanbul ignore next */ []);
43
+ this._swatchColor = computed(() => this._valid() ?? "transparent", ...ngDevMode ? [{ debugName: "_swatchColor" }] : /* istanbul ignore next */ []);
44
+ this._nativeValue = computed(() => (this._valid() ?? "#000000").slice(0, 7), ...ngDevMode ? [{ debugName: "_nativeValue" }] : /* istanbul ignore next */ []);
45
+ this._uid = nextColorId++;
46
+ this._textId = `co-text-${this._uid}`;
47
+ this._nativeId = `co-native-${this._uid}`;
48
+ this._descId = `co-desc-${this._uid}`;
49
+ this._onChange = (_) => {};
50
+ this._onTouched = () => {};
51
+ this._onValidatorChange = () => {};
52
+ effect(() => {
53
+ this.invalidChange.emit(this.invalid());
54
+ });
55
+ }
56
+ ngOnChanges() {
57
+ this._onValidatorChange();
58
+ }
59
+ writeValue(val) {
60
+ const text = val == null ? "" : String(val);
61
+ this._model.set(text);
62
+ this._text.set(text);
63
+ this._edited.set(false);
64
+ }
65
+ registerOnChange(fn) {
66
+ this._onChange = fn;
67
+ }
68
+ registerOnTouched(fn) {
69
+ this._onTouched = fn;
70
+ }
71
+ registerOnValidatorChange(fn) {
72
+ this._onValidatorChange = fn;
73
+ }
74
+ setDisabledState(d) {
75
+ this._cvaDisabled.set(d);
76
+ }
77
+ validate(control) {
78
+ const v = control.value;
79
+ return issueToErrors(this._check(v == null ? "" : String(v), this._edited()));
80
+ }
81
+ onTextInput(event) {
82
+ const el = event.target;
83
+ let raw = el.value.trim();
84
+ if (raw && !raw.startsWith("#")) raw = "#" + raw;
85
+ if (raw === "#") raw = "";
86
+ if (el.value !== raw) el.value = raw;
87
+ this._text.set(raw);
88
+ this._commit(normalizeHexColor(raw, this.allowAlpha()) ?? raw);
89
+ }
90
+ onNativeInput(event) {
91
+ const picked = event.target.value.toLowerCase();
92
+ const current = this._valid();
93
+ const next = this.allowAlpha() && current && current.length === 9 ? picked + current.slice(7) : picked;
94
+ this._text.set(next);
95
+ this._commit(next);
96
+ }
97
+ selectPreset(p) {
98
+ const next = normalizeHexColor(p.value, this.allowAlpha()) ?? p.value;
99
+ this._text.set(next);
100
+ this._commit(next);
101
+ }
102
+ _isSelected(p) {
103
+ const a = normalizeHexColor(p.value, this.allowAlpha());
104
+ return !!a && a === this._valid();
105
+ }
106
+ _presetColor(p) {
107
+ return normalizeHexColor(p.value, this.allowAlpha()) ?? "transparent";
108
+ }
109
+ onTextBlur() {
110
+ const v = this._valid();
111
+ if (this._edited() && v && this._text() !== v) this._text.set(v);
112
+ this._touch();
113
+ }
114
+ onNativeBlur() {
115
+ this._touch();
116
+ }
117
+ _touch() {
118
+ this._onTouched();
119
+ this._reveal.touched.set(true);
120
+ }
121
+ _commit(value) {
122
+ this._edited.set(true);
123
+ this._model.set(value);
124
+ this._onChange(value);
125
+ }
126
+ _check(value, edited) {
127
+ if (this.disabled()) return null;
128
+ const text = value.trim();
129
+ if (!text) return this.required() ? requiredIssue(this.label()) : null;
130
+ if (!edited) return null;
131
+ return normalizeHexColor(text, this.allowAlpha()) ? null : {
132
+ key: "color",
133
+ message: this.labels.t("colorInput.invalidHex")
134
+ };
135
+ }
136
+ static {
137
+ this.ɵfac = i0.ɵɵngDeclareFactory({
138
+ minVersion: "12.0.0",
139
+ version: "22.2.2",
140
+ ngImport: i0,
141
+ type: ColorInputComponent,
142
+ deps: [],
143
+ target: i0.ɵɵFactoryTarget.Component
144
+ });
145
+ }
146
+ static {
147
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
148
+ minVersion: "17.0.0",
149
+ version: "22.2.2",
150
+ type: ColorInputComponent,
151
+ isStandalone: true,
152
+ selector: "ui-color-input",
153
+ inputs: {
154
+ label: {
155
+ classPropertyName: "label",
156
+ publicName: "label",
157
+ isSignal: true,
158
+ isRequired: false,
159
+ transformFunction: null
160
+ },
161
+ ariaLabel: {
162
+ classPropertyName: "ariaLabel",
163
+ publicName: "ariaLabel",
164
+ isSignal: true,
165
+ isRequired: false,
166
+ transformFunction: null
167
+ },
168
+ placeholder: {
169
+ classPropertyName: "placeholder",
170
+ publicName: "placeholder",
171
+ isSignal: true,
172
+ isRequired: false,
173
+ transformFunction: null
174
+ },
175
+ required: {
176
+ classPropertyName: "required",
177
+ publicName: "required",
178
+ isSignal: true,
179
+ isRequired: false,
180
+ transformFunction: null
181
+ },
182
+ hint: {
183
+ classPropertyName: "hint",
184
+ publicName: "hint",
185
+ isSignal: true,
186
+ isRequired: false,
187
+ transformFunction: null
188
+ },
189
+ error: {
190
+ classPropertyName: "error",
191
+ publicName: "error",
192
+ isSignal: true,
193
+ isRequired: false,
194
+ transformFunction: null
195
+ },
196
+ showErrors: {
197
+ classPropertyName: "showErrors",
198
+ publicName: "showErrors",
199
+ isSignal: true,
200
+ isRequired: false,
201
+ transformFunction: null
202
+ },
203
+ allowAlpha: {
204
+ classPropertyName: "allowAlpha",
205
+ publicName: "allowAlpha",
206
+ isSignal: true,
207
+ isRequired: false,
208
+ transformFunction: null
209
+ },
210
+ presets: {
211
+ classPropertyName: "presets",
212
+ publicName: "presets",
213
+ isSignal: true,
214
+ isRequired: false,
215
+ transformFunction: null
216
+ },
217
+ _disabledInput: {
218
+ classPropertyName: "_disabledInput",
219
+ publicName: "disabled",
220
+ isSignal: true,
221
+ isRequired: false,
222
+ transformFunction: null
223
+ }
224
+ },
225
+ outputs: { invalidChange: "invalidChange" },
226
+ providers: [
227
+ {
228
+ provide: NG_VALUE_ACCESSOR,
229
+ useExisting: forwardRef(() => ColorInputComponent),
230
+ multi: true
231
+ },
232
+ {
233
+ provide: NG_VALIDATORS,
234
+ useExisting: forwardRef(() => ColorInputComponent),
235
+ multi: true
236
+ },
237
+ {
238
+ provide: UiFieldValidity,
239
+ useExisting: forwardRef(() => ColorInputComponent)
240
+ }
241
+ ],
242
+ usesOnChanges: true,
243
+ ngImport: i0,
244
+ template: `
245
+ <div class="co-field" [class.co-error]="_activeError()" [class.co-disabled]="disabled()">
246
+ @if (label()) {
247
+ <label class="co-label" [for]="_textId">
248
+ {{ label() }}
249
+ @if (required()) { <span class="co-required" aria-hidden="true">*</span> }
250
+ </label>
251
+ }
252
+ <div class="co-row">
253
+ <span class="co-swatch">
254
+ <span class="co-preview" [style.background-color]="_swatchColor()" aria-hidden="true"></span>
255
+ <input
256
+ class="co-native"
257
+ type="color"
258
+ [id]="_nativeId"
259
+ [value]="_nativeValue()"
260
+ [disabled]="disabled()"
261
+ [attr.aria-label]="labels.t('colorInput.picker', { label: label() || ariaLabel() || labels.t('colorInput.colour') })"
262
+ (input)="onNativeInput($event)"
263
+ (blur)="onNativeBlur()" />
264
+ </span>
265
+ <input
266
+ class="co-text"
267
+ type="text"
268
+ [id]="_textId"
269
+ [value]="_text()"
270
+ [placeholder]="placeholder()"
271
+ [disabled]="disabled()"
272
+ [attr.maxlength]="allowAlpha() ? 9 : 7"
273
+ autocomplete="off"
274
+ spellcheck="false"
275
+ [attr.required]="required() || null"
276
+ [attr.aria-required]="required() ? 'true' : null"
277
+ [attr.aria-label]="label() ? null : (ariaLabel() || null)"
278
+ [attr.aria-invalid]="_activeError() ? 'true' : null"
279
+ [attr.aria-describedby]="(_activeError() || hint()) ? _descId : null"
280
+ (input)="onTextInput($event)"
281
+ (blur)="onTextBlur()" />
282
+ </div>
283
+ @if (presets().length) {
284
+ <div class="co-presets" role="group" [attr.aria-label]="labels.t('colorInput.presets', { label: label() || ariaLabel() || labels.t('colorInput.colour') })">
285
+ @for (p of presets(); track $index) {
286
+ <button
287
+ type="button"
288
+ class="co-preset"
289
+ [class.co-preset-selected]="_isSelected(p)"
290
+ [style.background-color]="_presetColor(p)"
291
+ [attr.aria-label]="p.label"
292
+ [attr.aria-pressed]="_isSelected(p) ? 'true' : 'false'"
293
+ [disabled]="disabled()"
294
+ (click)="selectPreset(p)"></button>
295
+ }
296
+ </div>
297
+ }
298
+ @if (_activeError()) {
299
+ <p class="co-desc co-desc-error" [id]="_descId" role="alert">{{ _activeError() }}</p>
300
+ } @else if (hint()) {
301
+ <p class="co-desc" [id]="_descId">{{ hint() }}</p>
302
+ }
303
+ </div>
304
+ `,
305
+ isInline: true,
306
+ styles: [":host{display:block}.co-field{display:flex;flex-direction:column;gap:6px}.co-label{font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.co-required{color:#dc2626;margin-left:2px}.co-row{display:flex;align-items:center;gap:8px}.co-swatch{position:relative;flex-shrink:0;width:38px;height:38px;box-sizing:border-box;border:1px solid #7c8ba1;border-radius:8px;overflow:hidden;background:#fff;transition:border-color .15s,box-shadow .15s}.co-swatch:focus-within{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.co-preview{position:absolute;inset:0;display:block}.co-native{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer;-webkit-appearance:none;appearance:none;background:transparent}.co-native::-webkit-color-swatch-wrapper{padding:0}.co-native::-webkit-color-swatch{border:0;border-radius:0}.co-native::-moz-color-swatch{border:0;border-radius:0}.co-text{flex:1;min-width:0;box-sizing:border-box;padding:9px 12px;font-size:.875rem;font-family:inherit;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;outline:none;transition:border-color .15s,box-shadow .15s}.co-text::placeholder{color:#64748b;opacity:1}.co-text:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.co-presets{display:flex;flex-wrap:wrap;gap:8px}.co-preset{width:28px;height:28px;padding:0;box-sizing:border-box;cursor:pointer;border:1px solid #7c8ba1;border-radius:50%}.co-preset-selected{box-shadow:0 0 0 2px #fff,0 0 0 4px #3b82f6}.co-preset:focus{outline:2px solid #3b82f6;outline-offset:2px}.co-preset:focus:not(:focus-visible){outline:none}.co-error .co-text,.co-error .co-swatch{border-color:#ef4444}.co-error .co-text:focus{box-shadow:0 0 0 3px #ef44441f}.co-disabled .co-text,.co-disabled .co-swatch,.co-disabled .co-preset{opacity:.5;cursor:not-allowed}.co-disabled .co-native{cursor:not-allowed}.co-desc{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.co-desc-error{color:#dc2626}@media(max-width:480px){.co-text{font-size:1rem}}@media(pointer:coarse),(max-width:480px){.co-text{min-height:44px}.co-swatch,.co-preset{width:44px;height:44px}}\n"],
307
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
308
+ });
309
+ }
310
+ };
311
+ i0.ɵɵngDeclareClassMetadata({
312
+ minVersion: "12.0.0",
313
+ version: "22.2.2",
314
+ ngImport: i0,
315
+ type: ColorInputComponent,
316
+ decorators: [{
317
+ type: Component,
318
+ args: [{
319
+ selector: "ui-color-input",
320
+ standalone: true,
321
+ changeDetection: ChangeDetectionStrategy.OnPush,
322
+ providers: [
323
+ {
324
+ provide: NG_VALUE_ACCESSOR,
325
+ useExisting: forwardRef(() => ColorInputComponent),
326
+ multi: true
327
+ },
328
+ {
329
+ provide: NG_VALIDATORS,
330
+ useExisting: forwardRef(() => ColorInputComponent),
331
+ multi: true
332
+ },
333
+ {
334
+ provide: UiFieldValidity,
335
+ useExisting: forwardRef(() => ColorInputComponent)
336
+ }
337
+ ],
338
+ template: `
339
+ <div class="co-field" [class.co-error]="_activeError()" [class.co-disabled]="disabled()">
340
+ @if (label()) {
341
+ <label class="co-label" [for]="_textId">
342
+ {{ label() }}
343
+ @if (required()) { <span class="co-required" aria-hidden="true">*</span> }
344
+ </label>
345
+ }
346
+ <div class="co-row">
347
+ <span class="co-swatch">
348
+ <span class="co-preview" [style.background-color]="_swatchColor()" aria-hidden="true"></span>
349
+ <input
350
+ class="co-native"
351
+ type="color"
352
+ [id]="_nativeId"
353
+ [value]="_nativeValue()"
354
+ [disabled]="disabled()"
355
+ [attr.aria-label]="labels.t('colorInput.picker', { label: label() || ariaLabel() || labels.t('colorInput.colour') })"
356
+ (input)="onNativeInput($event)"
357
+ (blur)="onNativeBlur()" />
358
+ </span>
359
+ <input
360
+ class="co-text"
361
+ type="text"
362
+ [id]="_textId"
363
+ [value]="_text()"
364
+ [placeholder]="placeholder()"
365
+ [disabled]="disabled()"
366
+ [attr.maxlength]="allowAlpha() ? 9 : 7"
367
+ autocomplete="off"
368
+ spellcheck="false"
369
+ [attr.required]="required() || null"
370
+ [attr.aria-required]="required() ? 'true' : null"
371
+ [attr.aria-label]="label() ? null : (ariaLabel() || null)"
372
+ [attr.aria-invalid]="_activeError() ? 'true' : null"
373
+ [attr.aria-describedby]="(_activeError() || hint()) ? _descId : null"
374
+ (input)="onTextInput($event)"
375
+ (blur)="onTextBlur()" />
376
+ </div>
377
+ @if (presets().length) {
378
+ <div class="co-presets" role="group" [attr.aria-label]="labels.t('colorInput.presets', { label: label() || ariaLabel() || labels.t('colorInput.colour') })">
379
+ @for (p of presets(); track $index) {
380
+ <button
381
+ type="button"
382
+ class="co-preset"
383
+ [class.co-preset-selected]="_isSelected(p)"
384
+ [style.background-color]="_presetColor(p)"
385
+ [attr.aria-label]="p.label"
386
+ [attr.aria-pressed]="_isSelected(p) ? 'true' : 'false'"
387
+ [disabled]="disabled()"
388
+ (click)="selectPreset(p)"></button>
389
+ }
390
+ </div>
391
+ }
392
+ @if (_activeError()) {
393
+ <p class="co-desc co-desc-error" [id]="_descId" role="alert">{{ _activeError() }}</p>
394
+ } @else if (hint()) {
395
+ <p class="co-desc" [id]="_descId">{{ hint() }}</p>
396
+ }
397
+ </div>
398
+ `,
399
+ styles: [":host{display:block}.co-field{display:flex;flex-direction:column;gap:6px}.co-label{font-size:.8125rem;font-weight:600;color:#374151;line-height:1}.co-required{color:#dc2626;margin-left:2px}.co-row{display:flex;align-items:center;gap:8px}.co-swatch{position:relative;flex-shrink:0;width:38px;height:38px;box-sizing:border-box;border:1px solid #7c8ba1;border-radius:8px;overflow:hidden;background:#fff;transition:border-color .15s,box-shadow .15s}.co-swatch:focus-within{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.co-preview{position:absolute;inset:0;display:block}.co-native{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;opacity:0;cursor:pointer;-webkit-appearance:none;appearance:none;background:transparent}.co-native::-webkit-color-swatch-wrapper{padding:0}.co-native::-webkit-color-swatch{border:0;border-radius:0}.co-native::-moz-color-swatch{border:0;border-radius:0}.co-text{flex:1;min-width:0;box-sizing:border-box;padding:9px 12px;font-size:.875rem;font-family:inherit;color:#1e293b;background:#fff;border:1px solid #7c8ba1;border-radius:8px;outline:none;transition:border-color .15s,box-shadow .15s}.co-text::placeholder{color:#64748b;opacity:1}.co-text:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.co-presets{display:flex;flex-wrap:wrap;gap:8px}.co-preset{width:28px;height:28px;padding:0;box-sizing:border-box;cursor:pointer;border:1px solid #7c8ba1;border-radius:50%}.co-preset-selected{box-shadow:0 0 0 2px #fff,0 0 0 4px #3b82f6}.co-preset:focus{outline:2px solid #3b82f6;outline-offset:2px}.co-preset:focus:not(:focus-visible){outline:none}.co-error .co-text,.co-error .co-swatch{border-color:#ef4444}.co-error .co-text:focus{box-shadow:0 0 0 3px #ef44441f}.co-disabled .co-text,.co-disabled .co-swatch,.co-disabled .co-preset{opacity:.5;cursor:not-allowed}.co-disabled .co-native{cursor:not-allowed}.co-desc{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.co-desc-error{color:#dc2626}@media(max-width:480px){.co-text{font-size:1rem}}@media(pointer:coarse),(max-width:480px){.co-text{min-height:44px}.co-swatch,.co-preset{width:44px;height:44px}}\n"]
400
+ }]
401
+ }],
402
+ ctorParameters: () => [],
403
+ propDecorators: {
404
+ label: [{
405
+ type: i0.Input,
406
+ args: [{
407
+ isSignal: true,
408
+ alias: "label",
409
+ required: false
410
+ }]
411
+ }],
412
+ ariaLabel: [{
413
+ type: i0.Input,
414
+ args: [{
415
+ isSignal: true,
416
+ alias: "ariaLabel",
417
+ required: false
418
+ }]
419
+ }],
420
+ placeholder: [{
421
+ type: i0.Input,
422
+ args: [{
423
+ isSignal: true,
424
+ alias: "placeholder",
425
+ required: false
426
+ }]
427
+ }],
428
+ required: [{
429
+ type: i0.Input,
430
+ args: [{
431
+ isSignal: true,
432
+ alias: "required",
433
+ required: false
434
+ }]
435
+ }],
436
+ hint: [{
437
+ type: i0.Input,
438
+ args: [{
439
+ isSignal: true,
440
+ alias: "hint",
441
+ required: false
442
+ }]
443
+ }],
444
+ error: [{
445
+ type: i0.Input,
446
+ args: [{
447
+ isSignal: true,
448
+ alias: "error",
449
+ required: false
450
+ }]
451
+ }],
452
+ showErrors: [{
453
+ type: i0.Input,
454
+ args: [{
455
+ isSignal: true,
456
+ alias: "showErrors",
457
+ required: false
458
+ }]
459
+ }],
460
+ allowAlpha: [{
461
+ type: i0.Input,
462
+ args: [{
463
+ isSignal: true,
464
+ alias: "allowAlpha",
465
+ required: false
466
+ }]
467
+ }],
468
+ presets: [{
469
+ type: i0.Input,
470
+ args: [{
471
+ isSignal: true,
472
+ alias: "presets",
473
+ required: false
474
+ }]
475
+ }],
476
+ invalidChange: [{
477
+ type: i0.Output,
478
+ args: ["invalidChange"]
479
+ }],
480
+ _disabledInput: [{
481
+ type: i0.Input,
482
+ args: [{
483
+ isSignal: true,
484
+ alias: "disabled",
485
+ required: false
486
+ }]
487
+ }]
488
+ }
489
+ });
490
+ export { ColorInputComponent, normalizeHexColor };
491
+
492
+ //# sourceMappingURL=forgeroute-ui-color-input.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgeroute-ui-color-input.mjs","names":[],"sources":["../../../projects/forgeroute-ui/color-input/src/lib/color-input/color-input.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, effect, forwardRef, input, output, signal, inject } from '@angular/core';\nimport { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms';\nimport { FieldIssue, UiFieldValidity, createFieldReveal, issueToErrors, requiredIssue } from '@forgeroute/ui/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\nlet nextColorId = 0;\n\n/** A preset swatch offered under the field. `label` is its accessible name. */\nexport interface ColorPreset { value: string; label: string; }\n\n/**\n * Normalises a CSS hex colour: `#fff` / `FFF` -> `#ffffff`, `#RRGGBB` -> lower case. With `allowAlpha`, `#rrggbbaa`\n * is accepted and kept at 8 digits (shorthand `#rgba` is never accepted). Returns null for anything else\n * (named colours, `rgb()`, wrong lengths, non-hex digits). The leading `#` is optional on input.\n */\nexport function normalizeHexColor(value: string | null | undefined, allowAlpha = false): string | null {\n if (typeof value !== 'string') return null;\n const m = /^#?([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(value.trim());\n if (!m) return null;\n let hex = m[1].toLowerCase();\n if (hex.length === 8 && !allowAlpha) return null;\n if (hex.length === 3) hex = hex.split('').map(c => c + c).join('');\n return '#' + hex;\n}\n\n/**\n * Colour input: ControlValueAccessor over a string holding a CSS hex colour. A swatch opens the operating system's\n * colour picker (native `<input type=\"color\">`) and a text field next to it shows / edits the hex; both stay in sync.\n *\n * <ui-color-input label=\"Brand colour\" [(ngModel)]=\"brand\" />\n * <ui-color-input label=\"Accent\" [presets]=\"presets\" [allowAlpha]=\"true\" [formControl]=\"accent\" />\n *\n * Value contract\n * - A valid colour is emitted normalised to lower-case `#rrggbb` (`#FFF` -> `#ffffff`; 8-digit `#rrggbbaa` only with\n * `allowAlpha`, kept at 8 digits). The user may type with or without the leading `#`; the control prepends it.\n * - Text the user typed that is not a valid colour is emitted as typed (with `#` prepended, `''` when cleared) so the host\n * sees what the user entered; the control is then invalid (the `colorInput.invalidHex` text, \"Enter a hex colour like #3b82f6.\" in English) and the form control gets\n * the `color` error. While typing, the text is not rewritten (`#fff` is emitted as `#ffffff` but stays `#fff` on screen)\n * and is normalised on blur.\n * - A value WRITTEN BY THE HOST (`writeValue` / `[ngModel]` / `[formControl]`) is never flagged as an invalid colour, even\n * when it is not a hex (`red`, `#fff8`, a legacy value), until the user changes it, so legacy data never blocks Save.\n * (Required is still checked for an empty value.) The native picker gets `#000000` for a non-hex value so it never throws.\n * - Picking in the native picker with an 8-digit value and `allowAlpha` keeps the existing alpha digits.\n *\n * Validity API (same as the other ui inputs): `Validator` (error keys `required`, `color`), signals `invalid` /\n * `errorMessage`, `invalidChange` output, `UiFieldValidity` token. Messages (built-in and a host `[error]`) show only after the user left the field; `[showErrors]=\"true\"` also reveals it on an untouched field. Disabled controls are never invalid.\n *\n * Cross-browser: the native swatch is styled with `-webkit-appearance` and the `::-webkit-color-swatch` / `::-moz-color-swatch`\n * pseudo-elements and sits invisibly over our own preview square, so it looks the same in Chrome, Edge, Firefox and Safari.\n * Preset swatches are real `<button>`s (Enter / Space work natively, `aria-pressed` marks the selected one).\n */\n@Component({\n selector: 'ui-color-input',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => ColorInputComponent), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => ColorInputComponent), multi: true },\n { provide: UiFieldValidity, useExisting: forwardRef(() => ColorInputComponent) },\n ],\n template: `\n <div class=\"co-field\" [class.co-error]=\"_activeError()\" [class.co-disabled]=\"disabled()\">\n @if (label()) {\n <label class=\"co-label\" [for]=\"_textId\">\n {{ label() }}\n @if (required()) { <span class=\"co-required\" aria-hidden=\"true\">*</span> }\n </label>\n }\n <div class=\"co-row\">\n <span class=\"co-swatch\">\n <span class=\"co-preview\" [style.background-color]=\"_swatchColor()\" aria-hidden=\"true\"></span>\n <input\n class=\"co-native\"\n type=\"color\"\n [id]=\"_nativeId\"\n [value]=\"_nativeValue()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"labels.t('colorInput.picker', { label: label() || ariaLabel() || labels.t('colorInput.colour') })\"\n (input)=\"onNativeInput($event)\"\n (blur)=\"onNativeBlur()\" />\n </span>\n <input\n class=\"co-text\"\n type=\"text\"\n [id]=\"_textId\"\n [value]=\"_text()\"\n [placeholder]=\"placeholder()\"\n [disabled]=\"disabled()\"\n [attr.maxlength]=\"allowAlpha() ? 9 : 7\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [attr.required]=\"required() || null\"\n [attr.aria-required]=\"required() ? 'true' : null\"\n [attr.aria-label]=\"label() ? null : (ariaLabel() || null)\"\n [attr.aria-invalid]=\"_activeError() ? 'true' : null\"\n [attr.aria-describedby]=\"(_activeError() || hint()) ? _descId : null\"\n (input)=\"onTextInput($event)\"\n (blur)=\"onTextBlur()\" />\n </div>\n @if (presets().length) {\n <div class=\"co-presets\" role=\"group\" [attr.aria-label]=\"labels.t('colorInput.presets', { label: label() || ariaLabel() || labels.t('colorInput.colour') })\">\n @for (p of presets(); track $index) {\n <button\n type=\"button\"\n class=\"co-preset\"\n [class.co-preset-selected]=\"_isSelected(p)\"\n [style.background-color]=\"_presetColor(p)\"\n [attr.aria-label]=\"p.label\"\n [attr.aria-pressed]=\"_isSelected(p) ? 'true' : 'false'\"\n [disabled]=\"disabled()\"\n (click)=\"selectPreset(p)\"></button>\n }\n </div>\n }\n @if (_activeError()) {\n <p class=\"co-desc co-desc-error\" [id]=\"_descId\" role=\"alert\">{{ _activeError() }}</p>\n } @else if (hint()) {\n <p class=\"co-desc\" [id]=\"_descId\">{{ hint() }}</p>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n .co-field { display: flex; flex-direction: column; gap: 6px; }\n .co-label { font-size: 0.8125rem; font-weight: 600; color: #374151; line-height: 1; }\n .co-required { color: #dc2626; margin-left: 2px; }\n .co-row { display: flex; align-items: center; gap: 8px; }\n\n .co-swatch {\n position: relative; flex-shrink: 0; width: 38px; height: 38px; box-sizing: border-box;\n border: 1px solid #7c8ba1; border-radius: 8px; overflow: hidden; background: #fff;\n transition: border-color 0.15s, box-shadow 0.15s;\n }\n .co-swatch:focus-within { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12); }\n .co-preview { position: absolute; inset: 0; display: block; }\n /* The real colour input sits invisibly over the preview so clicks and keyboard land on it. */\n .co-native {\n position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0;\n opacity: 0; cursor: pointer; -webkit-appearance: none; appearance: none; background: transparent;\n }\n .co-native::-webkit-color-swatch-wrapper { padding: 0; }\n .co-native::-webkit-color-swatch { border: 0; border-radius: 0; }\n .co-native::-moz-color-swatch { border: 0; border-radius: 0; }\n\n .co-text {\n flex: 1; min-width: 0; box-sizing: border-box;\n padding: 9px 12px; font-size: 0.875rem; font-family: inherit;\n color: #1e293b; background: #fff;\n border: 1px solid #7c8ba1; border-radius: 8px;\n outline: none; transition: border-color 0.15s, box-shadow 0.15s;\n }\n .co-text::placeholder { color: #64748b; opacity: 1; }\n .co-text:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12); }\n\n .co-presets { display: flex; flex-wrap: wrap; gap: 8px; }\n .co-preset {\n width: 28px; height: 28px; padding: 0; box-sizing: border-box; cursor: pointer;\n border: 1px solid #7c8ba1; border-radius: 50%;\n }\n .co-preset-selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3b82f6; }\n .co-preset:focus { outline: 2px solid #3b82f6; outline-offset: 2px; }\n .co-preset:focus:not(:focus-visible) { outline: none; }\n\n .co-error .co-text, .co-error .co-swatch { border-color: #ef4444; }\n .co-error .co-text:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }\n\n .co-disabled .co-text, .co-disabled .co-swatch, .co-disabled .co-preset { opacity: 0.5; cursor: not-allowed; }\n .co-disabled .co-native { cursor: not-allowed; }\n\n .co-desc { margin: 0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }\n .co-desc-error { color: #dc2626; }\n\n @media (max-width: 480px) { .co-text { font-size: 1rem; } }\n @media (pointer: coarse), (max-width: 480px) {\n .co-text { min-height: 44px; }\n .co-swatch { width: 44px; height: 44px; }\n .co-preset { width: 44px; height: 44px; }\n }\n `],\n})\nexport class ColorInputComponent implements ControlValueAccessor, Validator, UiFieldValidity {\n protected readonly labels = inject(UiLabelsService);\n readonly label = input('');\n /** Accessible name for a field with no visible label. */\n readonly ariaLabel = input('');\n readonly placeholder = input('#3b82f6');\n readonly required = input(false);\n readonly hint = input('');\n /** Host error message; always wins over the built-in message. */\n readonly error = input('');\n /** The host's \"tried to submit\" flag (e.g. after a failed Save click). `true` reveals the message of an untouched field at once (the field also shows it after the user left THIS field); switching it from true back to false forgets that the field was left. */\n readonly showErrors = input(false);\n /** Accept (and keep) 8-digit `#rrggbbaa` values. */\n readonly allowAlpha = input(false);\n /** Optional row of preset swatches. */\n readonly presets = input<ColorPreset[]>([]);\n\n /** Emits whenever the field becomes invalid / valid. */\n readonly invalidChange = output<boolean>();\n\n readonly _disabledInput = input(false, { alias: 'disabled' });\n private readonly _cvaDisabled = signal(false);\n protected readonly disabled = computed(() => this._disabledInput() || this._cvaDisabled());\n\n /** Current model value (what the form control holds). */\n private readonly _model = signal('');\n /** Text shown in the text field. */\n protected readonly _text = signal('');\n /** True once the user changed the value; host-written values are not format-checked before that. */\n private readonly _edited = signal(false);\n\n private readonly _reveal = createFieldReveal(this.showErrors);\n private readonly _issue = computed(() => this._check(this._model(), this._edited()));\n readonly invalid = computed(() => !!this.error() || !!this._issue());\n readonly errorMessage = computed(() => this._issue()?.message ?? '');\n protected readonly _activeError = computed(() => this._reveal.revealed() ? (this.error() || this.errorMessage()) : '');\n\n private readonly _valid = computed(() => normalizeHexColor(this._model(), this.allowAlpha()));\n /** Colour of the preview square: the value when it is a usable hex, otherwise transparent. */\n protected readonly _swatchColor = computed(() => this._valid() ?? 'transparent');\n /** Value for the native picker: always `#rrggbb`. */\n protected readonly _nativeValue = computed(() => (this._valid() ?? '#000000').slice(0, 7));\n\n private readonly _uid = nextColorId++;\n protected readonly _textId = `co-text-${this._uid}`;\n protected readonly _nativeId = `co-native-${this._uid}`;\n protected readonly _descId = `co-desc-${this._uid}`;\n\n private _onChange = (_: string) => {};\n private _onTouched = () => {};\n private _onValidatorChange = () => {};\n\n constructor() {\n effect(() => { this.invalidChange.emit(this.invalid()); });\n }\n\n /** Re-run the form control's validation when a rule input (required, allowAlpha, ...) changes. */\n ngOnChanges() { this._onValidatorChange(); }\n\n writeValue(val: string | null) {\n const text = val == null ? '' : String(val);\n this._model.set(text);\n this._text.set(text);\n this._edited.set(false);\n }\n registerOnChange(fn: (v: string) => void) { this._onChange = fn; }\n registerOnTouched(fn: () => void) { this._onTouched = fn; }\n registerOnValidatorChange(fn: () => void) { this._onValidatorChange = fn; }\n setDisabledState(d: boolean) { this._cvaDisabled.set(d); }\n\n validate(control: AbstractControl): ValidationErrors | null {\n const v = control.value;\n return issueToErrors(this._check(v == null ? '' : String(v), this._edited()));\n }\n\n protected onTextInput(event: Event) {\n const el = event.target as HTMLInputElement;\n let raw = el.value.trim();\n if (raw && !raw.startsWith('#')) raw = '#' + raw;\n if (raw === '#') raw = '';\n if (el.value !== raw) el.value = raw;\n this._text.set(raw);\n this._commit(normalizeHexColor(raw, this.allowAlpha()) ?? raw);\n }\n\n protected onNativeInput(event: Event) {\n const picked = (event.target as HTMLInputElement).value.toLowerCase();\n const current = this._valid();\n // Keep the alpha digits of an 8-digit value when the user only changes the colour.\n const next = this.allowAlpha() && current && current.length === 9 ? picked + current.slice(7) : picked;\n this._text.set(next);\n this._commit(next);\n }\n\n protected selectPreset(p: ColorPreset) {\n const next = normalizeHexColor(p.value, this.allowAlpha()) ?? p.value;\n this._text.set(next);\n this._commit(next);\n }\n\n protected _isSelected(p: ColorPreset): boolean {\n const a = normalizeHexColor(p.value, this.allowAlpha());\n return !!a && a === this._valid();\n }\n protected _presetColor(p: ColorPreset): string {\n return normalizeHexColor(p.value, this.allowAlpha()) ?? 'transparent';\n }\n\n protected onTextBlur() {\n const v = this._valid();\n if (this._edited() && v && this._text() !== v) this._text.set(v);\n this._touch();\n }\n /** Blur of the native picker only marks the field touched; it never rewrites the text. */\n protected onNativeBlur() { this._touch(); }\n\n private _touch() {\n this._onTouched();\n this._reveal.touched.set(true);\n }\n\n private _commit(value: string) {\n this._edited.set(true);\n this._model.set(value);\n this._onChange(value);\n }\n\n private _check(value: string, edited: boolean): FieldIssue | null {\n if (this.disabled()) return null;\n const text = value.trim();\n if (!text) return this.required() ? requiredIssue(this.label()) : null;\n if (!edited) return null;\n return normalizeHexColor(text, this.allowAlpha()) ? null : { key: 'color', message: this.labels.t('colorInput.invalidHex') };\n }\n}\n"],"mappings":";;;;AAKA,IAAI,cAAc;AAUlB,SAAgB,kBAAkB,OAAkC,aAAa,OAAK;CACpF,IAAI,OAAO,UAAU,UAAU,OAAO;CACtC,MAAM,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