@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,233 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, ViewEncapsulation, computed, input } from "@angular/core";
3
+ import { resolveLayoutGap } from "@forgeroute/ui/layout";
4
+ const ALIGN = {
5
+ start: "flex-start",
6
+ center: "center",
7
+ end: "flex-end",
8
+ stretch: "stretch"
9
+ };
10
+ const JUSTIFY = {
11
+ start: "flex-start",
12
+ center: "center",
13
+ end: "flex-end",
14
+ between: "space-between"
15
+ };
16
+ var StackComponent = class StackComponent {
17
+ constructor() {
18
+ this.gap = input("md", ...ngDevMode ? [{ debugName: "gap" }] : /* istanbul ignore next */ []);
19
+ this.direction = input("vertical", ...ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []);
20
+ this.align = input("stretch", ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
21
+ this.justify = input("start", ...ngDevMode ? [{ debugName: "justify" }] : /* istanbul ignore next */ []);
22
+ this.wrap = input(false, ...ngDevMode ? [{ debugName: "wrap" }] : /* istanbul ignore next */ []);
23
+ this.minHeight = input("", ...ngDevMode ? [{ debugName: "minHeight" }] : /* istanbul ignore next */ []);
24
+ this.width = input("", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
25
+ this.maxWidth = input("", ...ngDevMode ? [{ debugName: "maxWidth" }] : /* istanbul ignore next */ []);
26
+ this.padding = input("", ...ngDevMode ? [{ debugName: "padding" }] : /* istanbul ignore next */ []);
27
+ this.centered = input(false, ...ngDevMode ? [{ debugName: "centered" }] : /* istanbul ignore next */ []);
28
+ this.gapCss = computed(() => resolveLayoutGap(this.gap(), "md"), ...ngDevMode ? [{ debugName: "gapCss" }] : /* istanbul ignore next */ []);
29
+ this.alignCss = computed(() => ALIGN[this.align()] ?? "stretch", ...ngDevMode ? [{ debugName: "alignCss" }] : /* istanbul ignore next */ []);
30
+ this.justifyCss = computed(() => JUSTIFY[this.justify()] ?? "flex-start", ...ngDevMode ? [{ debugName: "justifyCss" }] : /* istanbul ignore next */ []);
31
+ }
32
+ static {
33
+ this.ɵfac = i0.ɵɵngDeclareFactory({
34
+ minVersion: "12.0.0",
35
+ version: "22.2.2",
36
+ ngImport: i0,
37
+ type: StackComponent,
38
+ deps: [],
39
+ target: i0.ɵɵFactoryTarget.Component
40
+ });
41
+ }
42
+ static {
43
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
44
+ minVersion: "17.1.0",
45
+ version: "22.2.2",
46
+ type: StackComponent,
47
+ isStandalone: true,
48
+ selector: "ui-stack",
49
+ inputs: {
50
+ gap: {
51
+ classPropertyName: "gap",
52
+ publicName: "gap",
53
+ isSignal: true,
54
+ isRequired: false,
55
+ transformFunction: null
56
+ },
57
+ direction: {
58
+ classPropertyName: "direction",
59
+ publicName: "direction",
60
+ isSignal: true,
61
+ isRequired: false,
62
+ transformFunction: null
63
+ },
64
+ align: {
65
+ classPropertyName: "align",
66
+ publicName: "align",
67
+ isSignal: true,
68
+ isRequired: false,
69
+ transformFunction: null
70
+ },
71
+ justify: {
72
+ classPropertyName: "justify",
73
+ publicName: "justify",
74
+ isSignal: true,
75
+ isRequired: false,
76
+ transformFunction: null
77
+ },
78
+ wrap: {
79
+ classPropertyName: "wrap",
80
+ publicName: "wrap",
81
+ isSignal: true,
82
+ isRequired: false,
83
+ transformFunction: null
84
+ },
85
+ minHeight: {
86
+ classPropertyName: "minHeight",
87
+ publicName: "minHeight",
88
+ isSignal: true,
89
+ isRequired: false,
90
+ transformFunction: null
91
+ },
92
+ width: {
93
+ classPropertyName: "width",
94
+ publicName: "width",
95
+ isSignal: true,
96
+ isRequired: false,
97
+ transformFunction: null
98
+ },
99
+ maxWidth: {
100
+ classPropertyName: "maxWidth",
101
+ publicName: "maxWidth",
102
+ isSignal: true,
103
+ isRequired: false,
104
+ transformFunction: null
105
+ },
106
+ padding: {
107
+ classPropertyName: "padding",
108
+ publicName: "padding",
109
+ isSignal: true,
110
+ isRequired: false,
111
+ transformFunction: null
112
+ },
113
+ centered: {
114
+ classPropertyName: "centered",
115
+ publicName: "centered",
116
+ isSignal: true,
117
+ isRequired: false,
118
+ transformFunction: null
119
+ }
120
+ },
121
+ ngImport: i0,
122
+ template: `<div class="st" [class.st-h]="direction() === 'horizontal'" [style.flex-direction]="direction() === 'horizontal' ? 'row' : 'column'"
123
+ [style.gap]="gapCss()" [style.align-items]="alignCss()" [style.justify-content]="justifyCss()" [style.flex-wrap]="wrap() ? 'wrap' : 'nowrap'" [style.min-height]="minHeight() || null" [style.width]="width() || null" [style.max-width]="maxWidth() || null" [style.padding]="padding() || null" [style.box-sizing]="padding() ? 'border-box' : null" [style.margin-inline]="centered() ? 'auto' : null"><ng-content /></div>`,
124
+ isInline: true,
125
+ styles: ["ui-stack{display:block}ui-stack .st{display:flex}ui-stack .st>*{margin:0!important}ui-stack .st.st-h>*{min-width:0}\n"],
126
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
127
+ encapsulation: i0.ViewEncapsulation.None
128
+ });
129
+ }
130
+ };
131
+ i0.ɵɵngDeclareClassMetadata({
132
+ minVersion: "12.0.0",
133
+ version: "22.2.2",
134
+ ngImport: i0,
135
+ type: StackComponent,
136
+ decorators: [{
137
+ type: Component,
138
+ args: [{
139
+ selector: "ui-stack",
140
+ standalone: true,
141
+ changeDetection: ChangeDetectionStrategy.OnPush,
142
+ encapsulation: ViewEncapsulation.None,
143
+ template: `<div class="st" [class.st-h]="direction() === 'horizontal'" [style.flex-direction]="direction() === 'horizontal' ? 'row' : 'column'"
144
+ [style.gap]="gapCss()" [style.align-items]="alignCss()" [style.justify-content]="justifyCss()" [style.flex-wrap]="wrap() ? 'wrap' : 'nowrap'" [style.min-height]="minHeight() || null" [style.width]="width() || null" [style.max-width]="maxWidth() || null" [style.padding]="padding() || null" [style.box-sizing]="padding() ? 'border-box' : null" [style.margin-inline]="centered() ? 'auto' : null"><ng-content /></div>`,
145
+ styles: ["ui-stack{display:block}ui-stack .st{display:flex}ui-stack .st>*{margin:0!important}ui-stack .st.st-h>*{min-width:0}\n"]
146
+ }]
147
+ }],
148
+ propDecorators: {
149
+ gap: [{
150
+ type: i0.Input,
151
+ args: [{
152
+ isSignal: true,
153
+ alias: "gap",
154
+ required: false
155
+ }]
156
+ }],
157
+ direction: [{
158
+ type: i0.Input,
159
+ args: [{
160
+ isSignal: true,
161
+ alias: "direction",
162
+ required: false
163
+ }]
164
+ }],
165
+ align: [{
166
+ type: i0.Input,
167
+ args: [{
168
+ isSignal: true,
169
+ alias: "align",
170
+ required: false
171
+ }]
172
+ }],
173
+ justify: [{
174
+ type: i0.Input,
175
+ args: [{
176
+ isSignal: true,
177
+ alias: "justify",
178
+ required: false
179
+ }]
180
+ }],
181
+ wrap: [{
182
+ type: i0.Input,
183
+ args: [{
184
+ isSignal: true,
185
+ alias: "wrap",
186
+ required: false
187
+ }]
188
+ }],
189
+ minHeight: [{
190
+ type: i0.Input,
191
+ args: [{
192
+ isSignal: true,
193
+ alias: "minHeight",
194
+ required: false
195
+ }]
196
+ }],
197
+ width: [{
198
+ type: i0.Input,
199
+ args: [{
200
+ isSignal: true,
201
+ alias: "width",
202
+ required: false
203
+ }]
204
+ }],
205
+ maxWidth: [{
206
+ type: i0.Input,
207
+ args: [{
208
+ isSignal: true,
209
+ alias: "maxWidth",
210
+ required: false
211
+ }]
212
+ }],
213
+ padding: [{
214
+ type: i0.Input,
215
+ args: [{
216
+ isSignal: true,
217
+ alias: "padding",
218
+ required: false
219
+ }]
220
+ }],
221
+ centered: [{
222
+ type: i0.Input,
223
+ args: [{
224
+ isSignal: true,
225
+ alias: "centered",
226
+ required: false
227
+ }]
228
+ }]
229
+ }
230
+ });
231
+ export { StackComponent };
232
+
233
+ //# sourceMappingURL=forgeroute-ui-stack.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgeroute-ui-stack.mjs","names":[],"sources":["../../../projects/forgeroute-ui/stack/src/lib/stack/stack.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, computed, input, ViewEncapsulation } from '@angular/core';\nimport { LayoutGap, resolveLayoutGap } from '@forgeroute/ui/layout';\n\nexport type StackDirection = 'vertical' | 'horizontal';\nexport type StackAlign = 'start' | 'center' | 'end' | 'stretch';\nexport type StackJustify = 'start' | 'center' | 'end' | 'between';\n\nconst ALIGN: Record<StackAlign, string> = { start: 'flex-start', center: 'center', end: 'flex-end', stretch: 'stretch' };\nconst JUSTIFY: Record<StackJustify, string> = { start: 'flex-start', center: 'center', end: 'flex-end', between: 'space-between' };\n\n/**\n * Stacks its children with ONE consistent gap (vertical by default, or in a row).\n *\n * The stack owns the spacing: it resets the margins of its direct children (with `!important`, so it also beats\n * rules such as the `margin-bottom: 16px` of `ui-detail-card`)\n * and uses flex `gap` instead. The distance between any two neighbours is exactly `gap`, whatever they are.\n * Do not put margins on children of a stack; wrap them in a nested `ui-stack` to group. A `ui-divider` keeps its space\n * inside itself, so give it `spaceAbove=\"none\" spaceBelow=\"none\"` in a stack.\n *\n * - `gap`: none | xs | sm | md | lg | xl (0/4/8/16/24/32px) or any CSS length (`gap=\"20px\"`). Default `md`.\n * - `direction`: vertical (default) | horizontal.\n * - `align`: start | center | end | stretch (cross axis, default stretch).\n * - `justify`: start | center | end | between (main axis, default start).\n * - `wrap`: let a horizontal stack wrap onto more lines (default false).\n * - `maxWidth` (CSS length) / `padding` (CSS padding) / `centered` (margin-inline auto): limit, pad and centre the stack. Defaults '' / '' / false = unchanged.\n *\n * <ui-stack gap=\"20px\">\n * <ui-detail-card title=\"EMAIL\"> ... </ui-detail-card>\n * <ui-detail-card title=\"TEXT\"> ... </ui-detail-card>\n * </ui-stack>\n * <ui-stack direction=\"horizontal\" gap=\"sm\" justify=\"between\" [wrap]=\"true\"> ...buttons... </ui-stack>\n */\n@Component({\n selector: 'ui-stack',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n template: `<div class=\"st\" [class.st-h]=\"direction() === 'horizontal'\" [style.flex-direction]=\"direction() === 'horizontal' ? 'row' : 'column'\"\n [style.gap]=\"gapCss()\" [style.align-items]=\"alignCss()\" [style.justify-content]=\"justifyCss()\" [style.flex-wrap]=\"wrap() ? 'wrap' : 'nowrap'\" [style.min-height]=\"minHeight() || null\" [style.width]=\"width() || null\" [style.max-width]=\"maxWidth() || null\" [style.padding]=\"padding() || null\" [style.box-sizing]=\"padding() ? 'border-box' : null\" [style.margin-inline]=\"centered() ? 'auto' : null\"><ng-content /></div>`,\n styles: [`\n ui-stack { display: block; }\n ui-stack .st { display: flex; }\n ui-stack .st > * { margin: 0 !important; }\n ui-stack .st.st-h > * { min-width: 0; }\n `],\n})\nexport class StackComponent {\n readonly gap = input<LayoutGap | string>('md');\n readonly direction = input<StackDirection>('vertical');\n readonly align = input<StackAlign>('stretch');\n readonly justify = input<StackJustify>('start');\n readonly wrap = input(false);\n /** Minimum height of the stack (any CSS length, e.g. \"12rem\"); with `justify=\"center\"` it centres the content vertically. Empty = none. */\n readonly minHeight = input('');\n /** Width of the stack (any CSS length or \"100%\"). Empty = the normal block width. */\n readonly width = input('');\n /** Maximum width of the stack (any CSS length). Empty = none. */\n readonly maxWidth = input('');\n /** Padding of the stack (any CSS padding value). Empty = none. */\n readonly padding = input('');\n /** Centre the stack horizontally (margin-inline: auto; use with `maxWidth`). */\n readonly centered = input(false);\n\n protected readonly gapCss = computed(() => resolveLayoutGap(this.gap(), 'md'));\n protected readonly alignCss = computed(() => ALIGN[this.align()] ?? 'stretch');\n protected readonly justifyCss = computed(() => JUSTIFY[this.justify()] ?? 'flex-start');\n}\n"],"mappings":";;;AAOA,MAAM,QAAoC;CAAE,OAAO;CAAc,QAAQ;CAAU,KAAK;CAAY,SAAS;AAAS;AACtH,MAAM,UAAwC;CAAE,OAAO;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AAA,UATf;;GACyZ,UAAA;GAAA,QAAA,CAAA,uHAAA;GAAA,iBAAA,GAAA,wBAAA;GAAA,eAAA,GAAA,kBAAA;EAAA,CAAA;CAAA;;AAQxZ,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAc,YAAA,CAAA;EAd1B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAU,YACR;GAAI,iBACC,wBAAwB;GAAM,eAChC,kBAAkB;GAAI,UAC3B;;GACyZ,QAAA,CAAA,uHAAA;EAAA,CAAA"}
@@ -0,0 +1,200 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, computed, inject, input } from "@angular/core";
3
+ import { UiLabelsService } from "@forgeroute/ui/core";
4
+ const MIN_VISIBLE_PERCENT = 2;
5
+ const ROTATION = [
6
+ "blue",
7
+ "green",
8
+ "amber",
9
+ "orange",
10
+ "red",
11
+ "slate"
12
+ ];
13
+ var StackedBarComponent = class StackedBarComponent {
14
+ constructor() {
15
+ this.labels = inject(UiLabelsService);
16
+ this.segments = input([], ...ngDevMode ? [{ debugName: "segments" }] : /* istanbul ignore next */ []);
17
+ this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
18
+ this.height = input(14, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
19
+ this.showLegend = input(true, ...ngDevMode ? [{ debugName: "showLegend" }] : /* istanbul ignore next */ []);
20
+ this.formatValue = input(null, ...ngDevMode ? [{ debugName: "formatValue" }] : /* istanbul ignore next */ []);
21
+ this.rows = computed(() => {
22
+ const segs = this.segments().map((s, i) => ({
23
+ key: `${i}-${s.label}`,
24
+ label: s.label,
25
+ color: s.color ?? "",
26
+ variant: s.variant ?? ROTATION[i % ROTATION.length],
27
+ value: Number.isFinite(s.value) && s.value > 0 ? s.value : 0
28
+ }));
29
+ const total = segs.reduce((n, s) => n + s.value, 0);
30
+ const format = this.formatValue() ?? ((v) => this.labels.formatNumber(v));
31
+ return segs.map((s) => {
32
+ const exact = total > 0 ? s.value / total * 100 : 0;
33
+ const percent = s.value > 0 ? Math.max(Math.round(exact), MIN_VISIBLE_PERCENT) : 0;
34
+ const share = Math.round(exact);
35
+ const text = `${format(s.value)} (${share}%)`;
36
+ return {
37
+ ...s,
38
+ percent,
39
+ text,
40
+ title: `${s.label}: ${text}`
41
+ };
42
+ });
43
+ }, ...ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []);
44
+ this.drawn = computed(() => this.rows().filter((r) => r.percent > 0), ...ngDevMode ? [{ debugName: "drawn" }] : /* istanbul ignore next */ []);
45
+ }
46
+ static {
47
+ this.ɵfac = i0.ɵɵngDeclareFactory({
48
+ minVersion: "12.0.0",
49
+ version: "22.2.2",
50
+ ngImport: i0,
51
+ type: StackedBarComponent,
52
+ deps: [],
53
+ target: i0.ɵɵFactoryTarget.Component
54
+ });
55
+ }
56
+ static {
57
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
58
+ minVersion: "17.0.0",
59
+ version: "22.2.2",
60
+ type: StackedBarComponent,
61
+ isStandalone: true,
62
+ selector: "ui-stacked-bar",
63
+ inputs: {
64
+ segments: {
65
+ classPropertyName: "segments",
66
+ publicName: "segments",
67
+ isSignal: true,
68
+ isRequired: false,
69
+ transformFunction: null
70
+ },
71
+ ariaLabel: {
72
+ classPropertyName: "ariaLabel",
73
+ publicName: "ariaLabel",
74
+ isSignal: true,
75
+ isRequired: false,
76
+ transformFunction: null
77
+ },
78
+ height: {
79
+ classPropertyName: "height",
80
+ publicName: "height",
81
+ isSignal: true,
82
+ isRequired: false,
83
+ transformFunction: null
84
+ },
85
+ showLegend: {
86
+ classPropertyName: "showLegend",
87
+ publicName: "showLegend",
88
+ isSignal: true,
89
+ isRequired: false,
90
+ transformFunction: null
91
+ },
92
+ formatValue: {
93
+ classPropertyName: "formatValue",
94
+ publicName: "formatValue",
95
+ isSignal: true,
96
+ isRequired: false,
97
+ transformFunction: null
98
+ }
99
+ },
100
+ ngImport: i0,
101
+ template: `
102
+ <div class="sb" role="group" [attr.aria-label]="ariaLabel() || null">
103
+ <div class="sb-track" aria-hidden="true" [style.height.px]="height()">
104
+ @for (s of drawn(); track s.key) {
105
+ <span [class]="'sb-seg sb-' + s.variant" [style.width.%]="s.percent" [style.background]="s.color || null" [attr.title]="s.title"></span>
106
+ }
107
+ </div>
108
+ <ul class="sb-legend" role="list" [class.sb-sr]="!showLegend()">
109
+ @for (s of rows(); track s.key) {
110
+ <li class="sb-item">
111
+ <span [class]="'sb-dot sb-' + s.variant" [style.background]="s.color || null" aria-hidden="true"></span>
112
+ <span class="sb-name">{{ s.label }}</span>{{ ' ' }}<span class="sb-val">{{ s.text }}</span>
113
+ </li>
114
+ }
115
+ </ul>
116
+ </div>
117
+ `,
118
+ isInline: true,
119
+ styles: [":host{display:block}.sb{position:relative}.sb-track{display:flex;width:100%;background:#e2e8f0;border-radius:7px;overflow:hidden}.sb-seg{display:block;height:100%;min-width:0}.sb-seg+.sb-seg{border-left:1px solid #fff}.sb-blue{background:var(--ui-progress-fill, var(--ui-accent, #3b82f6))}.sb-green{background:#16a34a}.sb-amber{background:#f59e0b}.sb-orange{background:#f97316}.sb-red{background:#ef4444}.sb-slate{background:#94a3b8}.sb-legend{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px}.sb-item{display:inline-flex;align-items:center;gap:6px;font-size:.8125rem;color:#334155}.sb-dot{width:10px;height:10px;border-radius:50%;flex:none}.sb-val{font-weight:600;color:#0f172a}.sb-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(forced-colors:active){.sb-track{background:Canvas;border:1px solid CanvasText}.sb-seg{background:Highlight;forced-color-adjust:none;border-left:1px solid CanvasText}}\n"],
120
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
121
+ });
122
+ }
123
+ };
124
+ i0.ɵɵngDeclareClassMetadata({
125
+ minVersion: "12.0.0",
126
+ version: "22.2.2",
127
+ ngImport: i0,
128
+ type: StackedBarComponent,
129
+ decorators: [{
130
+ type: Component,
131
+ args: [{
132
+ selector: "ui-stacked-bar",
133
+ standalone: true,
134
+ changeDetection: ChangeDetectionStrategy.OnPush,
135
+ template: `
136
+ <div class="sb" role="group" [attr.aria-label]="ariaLabel() || null">
137
+ <div class="sb-track" aria-hidden="true" [style.height.px]="height()">
138
+ @for (s of drawn(); track s.key) {
139
+ <span [class]="'sb-seg sb-' + s.variant" [style.width.%]="s.percent" [style.background]="s.color || null" [attr.title]="s.title"></span>
140
+ }
141
+ </div>
142
+ <ul class="sb-legend" role="list" [class.sb-sr]="!showLegend()">
143
+ @for (s of rows(); track s.key) {
144
+ <li class="sb-item">
145
+ <span [class]="'sb-dot sb-' + s.variant" [style.background]="s.color || null" aria-hidden="true"></span>
146
+ <span class="sb-name">{{ s.label }}</span>{{ ' ' }}<span class="sb-val">{{ s.text }}</span>
147
+ </li>
148
+ }
149
+ </ul>
150
+ </div>
151
+ `,
152
+ styles: [":host{display:block}.sb{position:relative}.sb-track{display:flex;width:100%;background:#e2e8f0;border-radius:7px;overflow:hidden}.sb-seg{display:block;height:100%;min-width:0}.sb-seg+.sb-seg{border-left:1px solid #fff}.sb-blue{background:var(--ui-progress-fill, var(--ui-accent, #3b82f6))}.sb-green{background:#16a34a}.sb-amber{background:#f59e0b}.sb-orange{background:#f97316}.sb-red{background:#ef4444}.sb-slate{background:#94a3b8}.sb-legend{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px}.sb-item{display:inline-flex;align-items:center;gap:6px;font-size:.8125rem;color:#334155}.sb-dot{width:10px;height:10px;border-radius:50%;flex:none}.sb-val{font-weight:600;color:#0f172a}.sb-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(forced-colors:active){.sb-track{background:Canvas;border:1px solid CanvasText}.sb-seg{background:Highlight;forced-color-adjust:none;border-left:1px solid CanvasText}}\n"]
153
+ }]
154
+ }],
155
+ propDecorators: {
156
+ segments: [{
157
+ type: i0.Input,
158
+ args: [{
159
+ isSignal: true,
160
+ alias: "segments",
161
+ required: false
162
+ }]
163
+ }],
164
+ ariaLabel: [{
165
+ type: i0.Input,
166
+ args: [{
167
+ isSignal: true,
168
+ alias: "ariaLabel",
169
+ required: false
170
+ }]
171
+ }],
172
+ height: [{
173
+ type: i0.Input,
174
+ args: [{
175
+ isSignal: true,
176
+ alias: "height",
177
+ required: false
178
+ }]
179
+ }],
180
+ showLegend: [{
181
+ type: i0.Input,
182
+ args: [{
183
+ isSignal: true,
184
+ alias: "showLegend",
185
+ required: false
186
+ }]
187
+ }],
188
+ formatValue: [{
189
+ type: i0.Input,
190
+ args: [{
191
+ isSignal: true,
192
+ alias: "formatValue",
193
+ required: false
194
+ }]
195
+ }]
196
+ }
197
+ });
198
+ export { StackedBarComponent };
199
+
200
+ //# sourceMappingURL=forgeroute-ui-stacked-bar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgeroute-ui-stacked-bar.mjs","names":[],"sources":["../../../projects/forgeroute-ui/stacked-bar/src/lib/stacked-bar/stacked-bar.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, computed, input, inject } from '@angular/core';\nimport type { ProgressBarVariant } from '@forgeroute/ui/progress-bar';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/** The narrowest share (in %) a segment with a value above 0 is drawn with, so a small share is still visible. */\nconst MIN_VISIBLE_PERCENT = 2;\n\n/** Library source 2026-11-05, not yet published. One segment of a `ui-stacked-bar`. */\nexport interface StackedBarSegment {\n /** Name shown in the legend and read out for the segment. */\n label: string;\n /** Amount of this segment (negative / NaN count as 0). */\n value: number;\n /** Built-in colour (same set as `ui-progress-bar`). Default: a fixed rotation by position. */\n variant?: ProgressBarVariant;\n /** Any CSS colour; wins over `variant`. */\n color?: string;\n}\n\nconst ROTATION: ProgressBarVariant[] = ['blue', 'green', 'amber', 'orange', 'red', 'slate'];\n\n/**\n * A single horizontal bar split into coloured segments by their share of the total (e.g. an aging snapshot: current / 1-30 / 31-60 / 61-90 / 91+).\n * Pure CSS (no chart library): each segment's width is its rounded share, a value above 0 is never drawn narrower than 2%, segments of 0 are left\n * out of the bar (but stay in the legend). A total of 0 draws an empty track.\n *\n * Accessible without sight: the coloured strip is decorative (`aria-hidden`); the legend is a real list (\"<label>: <value> (<share>%)\") that is always\n * in the page, and `showLegend=\"false\"` only hides it visually. The group is named by `ariaLabel`. Each segment also has a hover `title`.\n * Colours never carry the meaning alone (the legend repeats label, value and share); forced-colors mode draws the segments with a border.\n *\n * Inputs: `segments`, `ariaLabel`, `height` (px, default 14), `showLegend` (default true), `formatValue` (default: a grouped number in the active locale; pass e.g. a\n * currency formatter). Output: none.\n */\n@Component({\n selector: 'ui-stacked-bar',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"sb\" role=\"group\" [attr.aria-label]=\"ariaLabel() || null\">\n <div class=\"sb-track\" aria-hidden=\"true\" [style.height.px]=\"height()\">\n @for (s of drawn(); track s.key) {\n <span [class]=\"'sb-seg sb-' + s.variant\" [style.width.%]=\"s.percent\" [style.background]=\"s.color || null\" [attr.title]=\"s.title\"></span>\n }\n </div>\n <ul class=\"sb-legend\" role=\"list\" [class.sb-sr]=\"!showLegend()\">\n @for (s of rows(); track s.key) {\n <li class=\"sb-item\">\n <span [class]=\"'sb-dot sb-' + s.variant\" [style.background]=\"s.color || null\" aria-hidden=\"true\"></span>\n <span class=\"sb-name\">{{ s.label }}</span>{{ ' ' }}<span class=\"sb-val\">{{ s.text }}</span>\n </li>\n }\n </ul>\n </div>\n `,\n styles: [`\n :host { display: block; }\n .sb { position: relative; }\n .sb-track { display: flex; width: 100%; background: #e2e8f0; border-radius: 7px; overflow: hidden; }\n .sb-seg { display: block; height: 100%; min-width: 0; }\n .sb-seg + .sb-seg { border-left: 1px solid #fff; }\n .sb-blue { background: var(--ui-progress-fill, var(--ui-accent, #3b82f6)); }\n .sb-green { background: #16a34a; }\n .sb-amber { background: #f59e0b; }\n .sb-orange { background: #f97316; }\n .sb-red { background: #ef4444; }\n .sb-slate { background: #94a3b8; }\n .sb-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }\n .sb-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: #334155; }\n .sb-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }\n .sb-val { font-weight: 600; color: #0f172a; }\n .sb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n @media (forced-colors: active) {\n .sb-track { background: Canvas; border: 1px solid CanvasText; }\n .sb-seg { background: Highlight; forced-color-adjust: none; border-left: 1px solid CanvasText; }\n }\n `],\n})\nexport class StackedBarComponent {\n protected readonly labels = inject(UiLabelsService);\n readonly segments = input<StackedBarSegment[]>([]);\n readonly ariaLabel = input('');\n readonly height = input(14);\n readonly showLegend = input(true);\n readonly formatValue = input<((value: number) => string) | null>(null);\n\n /** Segments with their cleaned value, colour and share (legend order = input order). */\n protected readonly rows = computed(() => {\n const segs = this.segments().map((s, i) => ({\n key: `${i}-${s.label}`, label: s.label, color: s.color ?? '',\n variant: s.variant ?? ROTATION[i % ROTATION.length],\n value: Number.isFinite(s.value) && s.value > 0 ? s.value : 0,\n }));\n const total = segs.reduce((n, s) => n + s.value, 0);\n const format = this.formatValue() ?? ((v: number) => this.labels.formatNumber(v));\n return segs.map(s => {\n const exact = total > 0 ? (s.value / total) * 100 : 0;\n const percent = s.value > 0 ? Math.max(Math.round(exact), MIN_VISIBLE_PERCENT) : 0;\n const share = Math.round(exact);\n const text = `${format(s.value)} (${share}%)`;\n return { ...s, percent, text, title: `${s.label}: ${text}` };\n });\n });\n\n /** Only the segments that have something to draw. */\n protected readonly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