@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,549 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, computed, inject, input, output } from "@angular/core";
3
+ import { NgTemplateOutlet, formatDate } from "@angular/common";
4
+ import { BadgeComponent } from "@forgeroute/ui/badge";
5
+ import { TooltipDirective } from "@forgeroute/ui/tooltip";
6
+ import { ButtonComponent, UiLabelsService, safeLocale, uiLocale, uiText } from "@forgeroute/ui/core";
7
+ import { HintComponent } from "@forgeroute/ui/hint";
8
+ import { IconComponent } from "@forgeroute/ui/icon";
9
+ import { BADGE_VARIANT_STYLES } from "@forgeroute/ui/table-types";
10
+ var TimelineComponent = class TimelineComponent {
11
+ constructor() {
12
+ this.labels = inject(UiLabelsService);
13
+ this.items = input([], ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
14
+ this.itemAction = output();
15
+ this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
16
+ this.emptyMessage = input("", ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
17
+ this.maxHeight = input("", ...ngDevMode ? [{ debugName: "maxHeight" }] : /* istanbul ignore next */ []);
18
+ this.timePosition = input("below", ...ngDevMode ? [{ debugName: "timePosition" }] : /* istanbul ignore next */ []);
19
+ this.groupByDay = input(false, ...ngDevMode ? [{ debugName: "groupByDay" }] : /* istanbul ignore next */ []);
20
+ this.timeZone = input("", ...ngDevMode ? [{ debugName: "timeZone" }] : /* istanbul ignore next */ []);
21
+ this.now = input(null, ...ngDevMode ? [{ debugName: "now" }] : /* istanbul ignore next */ []);
22
+ this.dayHeadingLevel = input(3, ...ngDevMode ? [{ debugName: "dayHeadingLevel" }] : /* istanbul ignore next */ []);
23
+ this.headingLevel = computed(() => {
24
+ const n = this.dayHeadingLevel();
25
+ return Number.isInteger(n) && n >= 1 && n <= 6 ? n : 3;
26
+ }, ...ngDevMode ? [{ debugName: "headingLevel" }] : /* istanbul ignore next */ []);
27
+ this.groups = computed(() => {
28
+ if (!this.groupByDay()) return [];
29
+ const zone = this.timeZone() || void 0;
30
+ let fmt;
31
+ try {
32
+ fmt = new Intl.DateTimeFormat("en-US", {
33
+ timeZone: zone,
34
+ year: "numeric",
35
+ month: "2-digit",
36
+ day: "2-digit"
37
+ });
38
+ } catch {
39
+ fmt = new Intl.DateTimeFormat("en-US", {
40
+ year: "numeric",
41
+ month: "2-digit",
42
+ day: "2-digit"
43
+ });
44
+ }
45
+ const parts = (d) => {
46
+ const p = fmt.formatToParts(d);
47
+ const get = (t) => Number(p.find((x) => x.type === t)?.value);
48
+ return {
49
+ y: get("year"),
50
+ m: get("month"),
51
+ d: get("day")
52
+ };
53
+ };
54
+ const keyOf = (v) => `${v.y}-${String(v.m).padStart(2, "0")}-${String(v.d).padStart(2, "0")}`;
55
+ const nowRaw = this.now();
56
+ let nowDate = nowRaw == null ? /* @__PURE__ */ new Date() : new Date(nowRaw);
57
+ if (isNaN(nowDate.getTime())) nowDate = /* @__PURE__ */ new Date();
58
+ const t = parts(nowDate);
59
+ const todayKey = keyOf(t);
60
+ const yd = new Date(Date.UTC(t.y, t.m - 1, t.d - 1));
61
+ const yesterdayKey = keyOf({
62
+ y: yd.getUTCFullYear(),
63
+ m: yd.getUTCMonth() + 1,
64
+ d: yd.getUTCDate()
65
+ });
66
+ const labelFmt = (withYear, tz) => new Intl.DateTimeFormat(safeLocale(this.labels.locale()), {
67
+ timeZone: tz,
68
+ month: "short",
69
+ day: "numeric",
70
+ ...withYear ? { year: "numeric" } : {}
71
+ });
72
+ const label = (v) => keyOf(v) === todayKey ? this.labels.t("time.today") : keyOf(v) === yesterdayKey ? this.labels.t("time.yesterday") : labelFmt(v.y !== t.y, "UTC").format(new Date(Date.UTC(v.y, v.m - 1, v.d)));
73
+ const dayOf = (iso) => {
74
+ const m = iso ? /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?)?$/.exec(iso) : null;
75
+ if (!m) return null;
76
+ const y = Number(m[1]), mo = Number(m[2]), d = Number(m[3]);
77
+ const probe = new Date(Date.UTC(y, mo - 1, d));
78
+ if (probe.getUTCFullYear() !== y || probe.getUTCMonth() !== mo - 1 || probe.getUTCDate() !== d) return null;
79
+ if (m[4] !== void 0 && (Number(m[4]) > 23 || Number(m[5]) > 59 || m[6] !== void 0 && Number(m[6]) > 59)) return null;
80
+ if (m[7] === void 0) return {
81
+ y,
82
+ m: mo,
83
+ d
84
+ };
85
+ const inst = new Date(iso.replace(/([+-]\d{2})(\d{2})$/, "$1:$2"));
86
+ return isNaN(inst.getTime()) ? null : parts(inst);
87
+ };
88
+ const groups = [];
89
+ for (const item of this.items()) {
90
+ const v = dayOf(item.dateTime);
91
+ const last = groups[groups.length - 1];
92
+ if (!v) {
93
+ if (last) last.items.push(item);
94
+ else groups.push({
95
+ key: "",
96
+ label: "",
97
+ items: [item]
98
+ });
99
+ continue;
100
+ }
101
+ const key = keyOf(v);
102
+ if (last && last.key === key) last.items.push(item);
103
+ else groups.push({
104
+ key,
105
+ label: label(v),
106
+ items: [item]
107
+ });
108
+ }
109
+ return groups;
110
+ }, ...ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []);
111
+ }
112
+ dotColor(item) {
113
+ return item.dotVariant ? BADGE_VARIANT_STYLES[item.dotVariant]?.color ?? null : null;
114
+ }
115
+ static {
116
+ this.ɵfac = i0.ɵɵngDeclareFactory({
117
+ minVersion: "12.0.0",
118
+ version: "22.2.2",
119
+ ngImport: i0,
120
+ type: TimelineComponent,
121
+ deps: [],
122
+ target: i0.ɵɵFactoryTarget.Component
123
+ });
124
+ }
125
+ static {
126
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
127
+ minVersion: "17.0.0",
128
+ version: "22.2.2",
129
+ type: TimelineComponent,
130
+ isStandalone: true,
131
+ selector: "ui-timeline",
132
+ inputs: {
133
+ items: {
134
+ classPropertyName: "items",
135
+ publicName: "items",
136
+ isSignal: true,
137
+ isRequired: false,
138
+ transformFunction: null
139
+ },
140
+ ariaLabel: {
141
+ classPropertyName: "ariaLabel",
142
+ publicName: "ariaLabel",
143
+ isSignal: true,
144
+ isRequired: false,
145
+ transformFunction: null
146
+ },
147
+ emptyMessage: {
148
+ classPropertyName: "emptyMessage",
149
+ publicName: "emptyMessage",
150
+ isSignal: true,
151
+ isRequired: false,
152
+ transformFunction: null
153
+ },
154
+ maxHeight: {
155
+ classPropertyName: "maxHeight",
156
+ publicName: "maxHeight",
157
+ isSignal: true,
158
+ isRequired: false,
159
+ transformFunction: null
160
+ },
161
+ timePosition: {
162
+ classPropertyName: "timePosition",
163
+ publicName: "timePosition",
164
+ isSignal: true,
165
+ isRequired: false,
166
+ transformFunction: null
167
+ },
168
+ groupByDay: {
169
+ classPropertyName: "groupByDay",
170
+ publicName: "groupByDay",
171
+ isSignal: true,
172
+ isRequired: false,
173
+ transformFunction: null
174
+ },
175
+ timeZone: {
176
+ classPropertyName: "timeZone",
177
+ publicName: "timeZone",
178
+ isSignal: true,
179
+ isRequired: false,
180
+ transformFunction: null
181
+ },
182
+ now: {
183
+ classPropertyName: "now",
184
+ publicName: "now",
185
+ isSignal: true,
186
+ isRequired: false,
187
+ transformFunction: null
188
+ },
189
+ dayHeadingLevel: {
190
+ classPropertyName: "dayHeadingLevel",
191
+ publicName: "dayHeadingLevel",
192
+ isSignal: true,
193
+ isRequired: false,
194
+ transformFunction: null
195
+ }
196
+ },
197
+ outputs: { itemAction: "itemAction" },
198
+ ngImport: i0,
199
+ template: `
200
+ @if (items().length) {
201
+ @if (maxHeight()) {
202
+ <div class="tl-scroll" role="region" tabindex="0" [attr.aria-label]="ariaLabel() || labels.t('timeline.ariaLabel')" [style.max-height]="maxHeight()">
203
+ <ng-container [ngTemplateOutlet]="listTpl" />
204
+ </div>
205
+ } @else {
206
+ <ng-container [ngTemplateOutlet]="listTpl" />
207
+ }
208
+ } @else if (emptyMessage()) {
209
+ <ui-hint class="tl-empty">{{ emptyMessage() }}</ui-hint>
210
+ }
211
+ <ng-template #listTpl>
212
+ @if (groupByDay()) {
213
+ <ol class="tl tl-grouped" [attr.aria-label]="ariaLabel() || null">
214
+ @for (g of groups(); track $index) {
215
+ <li class="tl-day-group" [attr.data-day]="g.key || null">
216
+ @if (g.label) { <div class="tl-day" role="heading" [attr.aria-level]="headingLevel()">{{ g.label }}</div> }
217
+ <ol class="tl-sub">
218
+ @for (item of g.items; track item.id ?? $index) {
219
+ <ng-container [ngTemplateOutlet]="itemTpl" [ngTemplateOutletContext]="{ $implicit: item }" />
220
+ }
221
+ </ol>
222
+ </li>
223
+ }
224
+ </ol>
225
+ } @else {
226
+ <ol class="tl" [attr.aria-label]="ariaLabel() || null">
227
+ @for (item of items(); track item.id ?? $index) {
228
+ <ng-container [ngTemplateOutlet]="itemTpl" [ngTemplateOutletContext]="{ $implicit: item }" />
229
+ }
230
+ </ol>
231
+ }
232
+ </ng-template>
233
+ <ng-template #itemTpl let-item>
234
+ <li [attr.data-testid]="item.testId || null" class="tl-item" [class]="'tl-item tl-item--' + (item.tone ?? 'default')" [class.tl-item--icon]="!!item.icon" [style.--tl-color]="dotColor(item)">
235
+ <span class="tl-marker" aria-hidden="true">
236
+ @if (item.icon) { <ui-icon [name]="item.icon" [interactive]="false" [size]="12" /> }
237
+ </span>
238
+ <div class="tl-content">
239
+ <div class="tl-head">
240
+ <span class="tl-title">{{ item.title }}</span>
241
+ @if (item.badge) { <ng-container [ngTemplateOutlet]="badgeTpl" [ngTemplateOutletContext]="{ $implicit: item.badge }" /> }
242
+ @for (b of item.badges ?? []; track $index) { <ng-container [ngTemplateOutlet]="badgeTpl" [ngTemplateOutletContext]="{ $implicit: b }" /> }
243
+ @if (timePosition() === 'end' && (item.time || item.dateTime)) {
244
+ <time class="tl-time tl-time--end" [attr.datetime]="item.dateTime || null">{{ item.time || item.dateTime }}</time>
245
+ }
246
+ </div>
247
+ @if (item.description) { <p class="tl-description">{{ item.description }}</p> }
248
+ @if (timePosition() !== 'end' && (item.time || item.dateTime)) {
249
+ <time class="tl-time" [attr.datetime]="item.dateTime || null">{{ item.time || item.dateTime }}</time>
250
+ }
251
+ @if (item.action) {
252
+ <ui-button class="tl-action" variant="link" size="sm" [attr.data-testid]="item.action.testId || null" [ariaLabel]="item.action.ariaLabel || undefined" (click)="itemAction.emit(item)">{{ item.action.label }}</ui-button>
253
+ }
254
+ </div>
255
+ </li>
256
+ </ng-template>
257
+ <ng-template #badgeTpl let-b>
258
+ @if (b.tooltip) {
259
+ <span class="tl-badge-tip" tabindex="0" [uiTooltip]="b.tooltip" [attr.data-testid]="b.testId || null"><ui-badge [label]="b.label" [variant]="b.variant" /></span>
260
+ } @else {
261
+ <ui-badge [label]="b.label" [variant]="b.variant" [attr.data-testid]="b.testId || null" />
262
+ }
263
+ </ng-template>
264
+ `,
265
+ isInline: true,
266
+ styles: [":host{display:block}.tl,.tl-sub{list-style:none;margin:0;padding:0}.tl-day-group+.tl-day-group{margin-top:16px}.tl-day{margin:0 0 10px;font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;line-height:1.2;color:#64748b}.tl-item{position:relative;display:flex;gap:12px;padding-bottom:16px;--tl-color: #475569}.tl-item:last-child{padding-bottom:0}.tl-item:before{content:\"\";position:absolute;left:7px;top:18px;bottom:-2px;width:2px;background:#e2e8f0}.tl-item:last-child:before{display:none}.tl-item--success{--tl-color: #15803d}.tl-item--warning{--tl-color: #b45309}.tl-item--danger{--tl-color: #b91c1c}.tl-marker{flex-shrink:0;box-sizing:border-box;width:16px;height:16px;margin-top:2px;border-radius:50%;background:var(--tl-color);border:3px solid #fff;box-shadow:0 0 0 1px var(--tl-color);display:inline-flex;align-items:center;justify-content:center;position:relative;z-index:1}.tl-item--icon .tl-marker{border:none;box-shadow:none;color:#fff}.tl-content{flex:1;min-width:0;overflow-wrap:anywhere;word-break:break-word}.tl-head{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}.tl-badge-tip{display:inline-flex;border-radius:999px}.tl-badge-tip:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.tl-time--end{display:inline;margin:0 0 0 auto;padding-left:8px;white-space:nowrap}.tl-scroll{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-right:8px}.tl-scroll:focus-visible{outline:2px solid #3b82f6;outline-offset:2px;border-radius:4px}.tl-title{font-size:.875rem;font-weight:600;color:#1e293b;line-height:1.4}.tl-description{margin:2px 0 0;font-size:.8125rem;line-height:1.5;color:#475569}.tl-time{display:block;margin-top:2px;font-size:.75rem;color:#64748b}\n"],
267
+ dependencies: [
268
+ {
269
+ kind: "component",
270
+ type: BadgeComponent,
271
+ selector: "ui-badge",
272
+ inputs: [
273
+ "label",
274
+ "variant",
275
+ "color"
276
+ ]
277
+ },
278
+ {
279
+ kind: "component",
280
+ type: ButtonComponent,
281
+ selector: "ui-button",
282
+ inputs: [
283
+ "variant",
284
+ "routerLink",
285
+ "queryParams",
286
+ "fragment",
287
+ "state",
288
+ "href",
289
+ "target",
290
+ "rel",
291
+ "shortLabel",
292
+ "shortBelow",
293
+ "color",
294
+ "active",
295
+ "size",
296
+ "type",
297
+ "disabled",
298
+ "loading",
299
+ "fullWidth",
300
+ "ariaLabel",
301
+ "ariaExpanded",
302
+ "ariaPressed",
303
+ "ariaDescribedBy",
304
+ "modal-footer-left",
305
+ "modal-footer-right"
306
+ ]
307
+ },
308
+ {
309
+ kind: "component",
310
+ type: HintComponent,
311
+ selector: "ui-hint"
312
+ },
313
+ {
314
+ kind: "component",
315
+ type: IconComponent,
316
+ selector: "ui-icon",
317
+ inputs: [
318
+ "name",
319
+ "tooltip",
320
+ "ariaLabel",
321
+ "size",
322
+ "variant",
323
+ "disabled",
324
+ "loading",
325
+ "interactive"
326
+ ],
327
+ outputs: ["iconClick"]
328
+ },
329
+ {
330
+ kind: "directive",
331
+ type: NgTemplateOutlet,
332
+ selector: "[ngTemplateOutlet]",
333
+ inputs: [
334
+ "ngTemplateOutletContext",
335
+ "ngTemplateOutlet",
336
+ "ngTemplateOutletInjector"
337
+ ]
338
+ },
339
+ {
340
+ kind: "directive",
341
+ type: TooltipDirective,
342
+ selector: "[uiTooltip]",
343
+ inputs: ["uiTooltip", "tooltipPosition"]
344
+ }
345
+ ],
346
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
347
+ });
348
+ }
349
+ };
350
+ i0.ɵɵngDeclareClassMetadata({
351
+ minVersion: "12.0.0",
352
+ version: "22.2.2",
353
+ ngImport: i0,
354
+ type: TimelineComponent,
355
+ decorators: [{
356
+ type: Component,
357
+ args: [{
358
+ selector: "ui-timeline",
359
+ standalone: true,
360
+ changeDetection: ChangeDetectionStrategy.OnPush,
361
+ imports: [
362
+ BadgeComponent,
363
+ ButtonComponent,
364
+ HintComponent,
365
+ IconComponent,
366
+ NgTemplateOutlet,
367
+ TooltipDirective
368
+ ],
369
+ template: `
370
+ @if (items().length) {
371
+ @if (maxHeight()) {
372
+ <div class="tl-scroll" role="region" tabindex="0" [attr.aria-label]="ariaLabel() || labels.t('timeline.ariaLabel')" [style.max-height]="maxHeight()">
373
+ <ng-container [ngTemplateOutlet]="listTpl" />
374
+ </div>
375
+ } @else {
376
+ <ng-container [ngTemplateOutlet]="listTpl" />
377
+ }
378
+ } @else if (emptyMessage()) {
379
+ <ui-hint class="tl-empty">{{ emptyMessage() }}</ui-hint>
380
+ }
381
+ <ng-template #listTpl>
382
+ @if (groupByDay()) {
383
+ <ol class="tl tl-grouped" [attr.aria-label]="ariaLabel() || null">
384
+ @for (g of groups(); track $index) {
385
+ <li class="tl-day-group" [attr.data-day]="g.key || null">
386
+ @if (g.label) { <div class="tl-day" role="heading" [attr.aria-level]="headingLevel()">{{ g.label }}</div> }
387
+ <ol class="tl-sub">
388
+ @for (item of g.items; track item.id ?? $index) {
389
+ <ng-container [ngTemplateOutlet]="itemTpl" [ngTemplateOutletContext]="{ $implicit: item }" />
390
+ }
391
+ </ol>
392
+ </li>
393
+ }
394
+ </ol>
395
+ } @else {
396
+ <ol class="tl" [attr.aria-label]="ariaLabel() || null">
397
+ @for (item of items(); track item.id ?? $index) {
398
+ <ng-container [ngTemplateOutlet]="itemTpl" [ngTemplateOutletContext]="{ $implicit: item }" />
399
+ }
400
+ </ol>
401
+ }
402
+ </ng-template>
403
+ <ng-template #itemTpl let-item>
404
+ <li [attr.data-testid]="item.testId || null" class="tl-item" [class]="'tl-item tl-item--' + (item.tone ?? 'default')" [class.tl-item--icon]="!!item.icon" [style.--tl-color]="dotColor(item)">
405
+ <span class="tl-marker" aria-hidden="true">
406
+ @if (item.icon) { <ui-icon [name]="item.icon" [interactive]="false" [size]="12" /> }
407
+ </span>
408
+ <div class="tl-content">
409
+ <div class="tl-head">
410
+ <span class="tl-title">{{ item.title }}</span>
411
+ @if (item.badge) { <ng-container [ngTemplateOutlet]="badgeTpl" [ngTemplateOutletContext]="{ $implicit: item.badge }" /> }
412
+ @for (b of item.badges ?? []; track $index) { <ng-container [ngTemplateOutlet]="badgeTpl" [ngTemplateOutletContext]="{ $implicit: b }" /> }
413
+ @if (timePosition() === 'end' && (item.time || item.dateTime)) {
414
+ <time class="tl-time tl-time--end" [attr.datetime]="item.dateTime || null">{{ item.time || item.dateTime }}</time>
415
+ }
416
+ </div>
417
+ @if (item.description) { <p class="tl-description">{{ item.description }}</p> }
418
+ @if (timePosition() !== 'end' && (item.time || item.dateTime)) {
419
+ <time class="tl-time" [attr.datetime]="item.dateTime || null">{{ item.time || item.dateTime }}</time>
420
+ }
421
+ @if (item.action) {
422
+ <ui-button class="tl-action" variant="link" size="sm" [attr.data-testid]="item.action.testId || null" [ariaLabel]="item.action.ariaLabel || undefined" (click)="itemAction.emit(item)">{{ item.action.label }}</ui-button>
423
+ }
424
+ </div>
425
+ </li>
426
+ </ng-template>
427
+ <ng-template #badgeTpl let-b>
428
+ @if (b.tooltip) {
429
+ <span class="tl-badge-tip" tabindex="0" [uiTooltip]="b.tooltip" [attr.data-testid]="b.testId || null"><ui-badge [label]="b.label" [variant]="b.variant" /></span>
430
+ } @else {
431
+ <ui-badge [label]="b.label" [variant]="b.variant" [attr.data-testid]="b.testId || null" />
432
+ }
433
+ </ng-template>
434
+ `,
435
+ styles: [":host{display:block}.tl,.tl-sub{list-style:none;margin:0;padding:0}.tl-day-group+.tl-day-group{margin-top:16px}.tl-day{margin:0 0 10px;font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;line-height:1.2;color:#64748b}.tl-item{position:relative;display:flex;gap:12px;padding-bottom:16px;--tl-color: #475569}.tl-item:last-child{padding-bottom:0}.tl-item:before{content:\"\";position:absolute;left:7px;top:18px;bottom:-2px;width:2px;background:#e2e8f0}.tl-item:last-child:before{display:none}.tl-item--success{--tl-color: #15803d}.tl-item--warning{--tl-color: #b45309}.tl-item--danger{--tl-color: #b91c1c}.tl-marker{flex-shrink:0;box-sizing:border-box;width:16px;height:16px;margin-top:2px;border-radius:50%;background:var(--tl-color);border:3px solid #fff;box-shadow:0 0 0 1px var(--tl-color);display:inline-flex;align-items:center;justify-content:center;position:relative;z-index:1}.tl-item--icon .tl-marker{border:none;box-shadow:none;color:#fff}.tl-content{flex:1;min-width:0;overflow-wrap:anywhere;word-break:break-word}.tl-head{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}.tl-badge-tip{display:inline-flex;border-radius:999px}.tl-badge-tip:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.tl-time--end{display:inline;margin:0 0 0 auto;padding-left:8px;white-space:nowrap}.tl-scroll{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-right:8px}.tl-scroll:focus-visible{outline:2px solid #3b82f6;outline-offset:2px;border-radius:4px}.tl-title{font-size:.875rem;font-weight:600;color:#1e293b;line-height:1.4}.tl-description{margin:2px 0 0;font-size:.8125rem;line-height:1.5;color:#475569}.tl-time{display:block;margin-top:2px;font-size:.75rem;color:#64748b}\n"]
436
+ }]
437
+ }],
438
+ propDecorators: {
439
+ items: [{
440
+ type: i0.Input,
441
+ args: [{
442
+ isSignal: true,
443
+ alias: "items",
444
+ required: false
445
+ }]
446
+ }],
447
+ itemAction: [{
448
+ type: i0.Output,
449
+ args: ["itemAction"]
450
+ }],
451
+ ariaLabel: [{
452
+ type: i0.Input,
453
+ args: [{
454
+ isSignal: true,
455
+ alias: "ariaLabel",
456
+ required: false
457
+ }]
458
+ }],
459
+ emptyMessage: [{
460
+ type: i0.Input,
461
+ args: [{
462
+ isSignal: true,
463
+ alias: "emptyMessage",
464
+ required: false
465
+ }]
466
+ }],
467
+ maxHeight: [{
468
+ type: i0.Input,
469
+ args: [{
470
+ isSignal: true,
471
+ alias: "maxHeight",
472
+ required: false
473
+ }]
474
+ }],
475
+ timePosition: [{
476
+ type: i0.Input,
477
+ args: [{
478
+ isSignal: true,
479
+ alias: "timePosition",
480
+ required: false
481
+ }]
482
+ }],
483
+ groupByDay: [{
484
+ type: i0.Input,
485
+ args: [{
486
+ isSignal: true,
487
+ alias: "groupByDay",
488
+ required: false
489
+ }]
490
+ }],
491
+ timeZone: [{
492
+ type: i0.Input,
493
+ args: [{
494
+ isSignal: true,
495
+ alias: "timeZone",
496
+ required: false
497
+ }]
498
+ }],
499
+ now: [{
500
+ type: i0.Input,
501
+ args: [{
502
+ isSignal: true,
503
+ alias: "now",
504
+ required: false
505
+ }]
506
+ }],
507
+ dayHeadingLevel: [{
508
+ type: i0.Input,
509
+ args: [{
510
+ isSignal: true,
511
+ alias: "dayHeadingLevel",
512
+ required: false
513
+ }]
514
+ }]
515
+ }
516
+ });
517
+ function timelineItemsFromEvents(events, options = {}) {
518
+ const timeFormat = options.timeFormat ?? "M/d/yyyy h:mm a";
519
+ const locale = options.locale ?? uiLocale();
520
+ const amountLabel = options.amountLabel ?? uiText("timeline.eventAmount");
521
+ const separator = options.separator ?? " · ";
522
+ return events.map((e) => {
523
+ const lines = [];
524
+ if (e.description) lines.push(e.description);
525
+ if (e.actor) lines.push(e.actor);
526
+ if (e.amount) lines.push(`${amountLabel}: ${e.amount.toLocaleString(locale, {
527
+ style: "currency",
528
+ currency: "USD"
529
+ })}`);
530
+ const parsed = new Date(e.date);
531
+ const valid = !isNaN(parsed.getTime());
532
+ const badges = [e.category, e.status].filter((b) => !!b && !!b.label).map((b) => ({
533
+ label: b.label,
534
+ variant: b.variant ?? "gray"
535
+ }));
536
+ return {
537
+ ...e.id !== void 0 ? { id: e.id } : {},
538
+ title: e.locked ? options.lockedSuffix !== void 0 ? `${e.title}${options.lockedSuffix}` : uiText("timeline.eventLocked", { title: e.title }) : e.title,
539
+ description: lines.length ? lines.join(separator) : void 0,
540
+ time: valid ? formatDate(parsed, timeFormat, locale) : void 0,
541
+ dateTime: e.date || void 0,
542
+ badges,
543
+ dotVariant: e.category?.variant ?? "gray"
544
+ };
545
+ });
546
+ }
547
+ export { TimelineComponent, timelineItemsFromEvents };
548
+
549
+ //# sourceMappingURL=forgeroute-ui-timeline.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgeroute-ui-timeline.mjs","names":[],"sources":["../../../projects/forgeroute-ui/timeline/src/lib/timeline/timeline.component.ts","../../../projects/forgeroute-ui/timeline/src/lib/timeline/timeline-events.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, computed, input, output, inject } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { BadgeComponent } from '@forgeroute/ui/badge';\nimport { TooltipDirective } from '@forgeroute/ui/tooltip';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { HintComponent } from '@forgeroute/ui/hint';\nimport { IconComponent, IconName } from '@forgeroute/ui/icon';\nimport { BadgeVariant, BADGE_VARIANT_STYLES } from '@forgeroute/ui/table-types';\nimport { UiLabelsService } from '@forgeroute/ui/core';\nimport { safeLocale } from '@forgeroute/ui/core';\n\nexport type TimelineTone = 'default' | 'success' | 'warning' | 'danger';\n\n/** A badge of a timeline item. `tooltip` shows on hover and keyboard focus (the badge becomes focusable); `testId` is its `data-testid`. */\nexport interface TimelineBadge {\n label: string;\n variant: BadgeVariant;\n tooltip?: string;\n testId?: string;\n}\n\n/** A link-style action on a timeline item (e.g. \"View message\"). Clicking it emits the item through the timeline's `itemAction` output. */\nexport interface TimelineAction {\n label: string;\n /** Accessible name when the visible label alone is ambiguous (e.g. \"View message sent Oct 20\"). Defaults to the label. */\n ariaLabel?: string;\n /** `data-testid` of the button. */\n testId?: string;\n}\n\nexport interface TimelineItem {\n /** Stable id used for `track`; the index is used when absent. */\n id?: string;\n /** `data-testid` of the `<li>`. */\n testId?: string;\n title: string;\n description?: string;\n /** Pre-formatted time text shown to the reader, e.g. \"Oct 20, 2026, 3:15 PM\". */\n time?: string;\n /** ISO date / date-time for the `datetime` attribute of the `<time>` element (machine-readable). */\n dateTime?: string;\n badge?: TimelineBadge;\n /** Any number of badges, shown after `badge` (if also set), in order. They wrap onto the next line when the row is narrow. */\n badges?: TimelineBadge[];\n /** Icon drawn inside the dot (static, decorative). Unknown names draw nothing. */\n icon?: IconName | (string & {});\n /** Colour of the dot / icon. Default `default`. */\n tone?: TimelineTone;\n /**\n * Colours the dot / icon with a badge colour (any `BadgeVariant`): the solid dot is the badge's own dark shade (`BADGE_VARIANT_STYLES[v].color`,\n * at least 3:1 on white, so the dot and a white icon on it are readable). Overrides `tone`; without it `tone` works as before.\n */\n dotVariant?: BadgeVariant;\n /** Optional link-style button under the item's text. Emits `itemAction` with this item when clicked. Absent (default) = no button, DOM unchanged. */\n action?: TimelineAction;\n}\n\n/**\n * Vertical activity feed: an ordered list of events joined by a line, each with a dot (or icon), title, optional badge,\n * description and time.\n *\n * <ui-timeline ariaLabel=\"Case activity\" emptyMessage=\"No activity yet.\" [items]=\"[\n * { id: 'a', title: 'Case opened', time: 'Oct 20, 3:15 PM', dateTime: '2026-10-20T15:15:00Z', badge: { label: 'Open', variant: 'green' } },\n * { id: 'b', title: 'Letter sent', description: 'Mailed to the owner.', tone: 'success', icon: 'email' },\n * ]\" />\n *\n * `groupByDay` adds a heading per calendar day (see the inputs `groupByDay`, `timeZone`, `now`, `dayHeadingLevel`).\n *\n * Semantics: `<ol>` / `<li>`; the line and dots are decorative (aria-hidden). `time` is the visible text; `dateTime` goes into\n * `<time datetime>`. With no items, `emptyMessage` (if set) is shown as a hint, otherwise nothing is rendered.\n */\n@Component({\n selector: 'ui-timeline',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [BadgeComponent, ButtonComponent, HintComponent, IconComponent, NgTemplateOutlet, TooltipDirective],\n template: `\n @if (items().length) {\n @if (maxHeight()) {\n <div class=\"tl-scroll\" role=\"region\" tabindex=\"0\" [attr.aria-label]=\"ariaLabel() || labels.t('timeline.ariaLabel')\" [style.max-height]=\"maxHeight()\">\n <ng-container [ngTemplateOutlet]=\"listTpl\" />\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"listTpl\" />\n }\n } @else if (emptyMessage()) {\n <ui-hint class=\"tl-empty\">{{ emptyMessage() }}</ui-hint>\n }\n <ng-template #listTpl>\n @if (groupByDay()) {\n <ol class=\"tl tl-grouped\" [attr.aria-label]=\"ariaLabel() || null\">\n @for (g of groups(); track $index) {\n <li class=\"tl-day-group\" [attr.data-day]=\"g.key || null\">\n @if (g.label) { <div class=\"tl-day\" role=\"heading\" [attr.aria-level]=\"headingLevel()\">{{ g.label }}</div> }\n <ol class=\"tl-sub\">\n @for (item of g.items; track item.id ?? $index) {\n <ng-container [ngTemplateOutlet]=\"itemTpl\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n }\n </ol>\n </li>\n }\n </ol>\n } @else {\n <ol class=\"tl\" [attr.aria-label]=\"ariaLabel() || null\">\n @for (item of items(); track item.id ?? $index) {\n <ng-container [ngTemplateOutlet]=\"itemTpl\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n }\n </ol>\n }\n </ng-template>\n <ng-template #itemTpl let-item>\n <li [attr.data-testid]=\"item.testId || null\" class=\"tl-item\" [class]=\"'tl-item tl-item--' + (item.tone ?? 'default')\" [class.tl-item--icon]=\"!!item.icon\" [style.--tl-color]=\"dotColor(item)\">\n <span class=\"tl-marker\" aria-hidden=\"true\">\n @if (item.icon) { <ui-icon [name]=\"item.icon\" [interactive]=\"false\" [size]=\"12\" /> }\n </span>\n <div class=\"tl-content\">\n <div class=\"tl-head\">\n <span class=\"tl-title\">{{ item.title }}</span>\n @if (item.badge) { <ng-container [ngTemplateOutlet]=\"badgeTpl\" [ngTemplateOutletContext]=\"{ $implicit: item.badge }\" /> }\n @for (b of item.badges ?? []; track $index) { <ng-container [ngTemplateOutlet]=\"badgeTpl\" [ngTemplateOutletContext]=\"{ $implicit: b }\" /> }\n @if (timePosition() === 'end' && (item.time || item.dateTime)) {\n <time class=\"tl-time tl-time--end\" [attr.datetime]=\"item.dateTime || null\">{{ item.time || item.dateTime }}</time>\n }\n </div>\n @if (item.description) { <p class=\"tl-description\">{{ item.description }}</p> }\n @if (timePosition() !== 'end' && (item.time || item.dateTime)) {\n <time class=\"tl-time\" [attr.datetime]=\"item.dateTime || null\">{{ item.time || item.dateTime }}</time>\n }\n @if (item.action) {\n <ui-button class=\"tl-action\" variant=\"link\" size=\"sm\" [attr.data-testid]=\"item.action.testId || null\" [ariaLabel]=\"item.action.ariaLabel || undefined\" (click)=\"itemAction.emit(item)\">{{ item.action.label }}</ui-button>\n }\n </div>\n </li>\n </ng-template>\n <ng-template #badgeTpl let-b>\n @if (b.tooltip) {\n <span class=\"tl-badge-tip\" tabindex=\"0\" [uiTooltip]=\"b.tooltip\" [attr.data-testid]=\"b.testId || null\"><ui-badge [label]=\"b.label\" [variant]=\"b.variant\" /></span>\n } @else {\n <ui-badge [label]=\"b.label\" [variant]=\"b.variant\" [attr.data-testid]=\"b.testId || null\" />\n }\n </ng-template>\n `,\n styles: [`\n :host { display: block; }\n .tl, .tl-sub { list-style: none; margin: 0; padding: 0; }\n /* groupByDay: one li per day (heading + its own list); the line runs inside a group and breaks between groups */\n .tl-day-group + .tl-day-group { margin-top: 16px; }\n .tl-day { margin: 0 0 10px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; color: #64748b; } /* 4.76:1 on white (WCAG AA) */\n .tl-item { position: relative; display: flex; gap: 12px; padding-bottom: 16px; --tl-color: #475569; }\n .tl-item:last-child { padding-bottom: 0; }\n /* the vertical line, drawn from under each dot to the next one */\n .tl-item::before { content: ''; position: absolute; left: 7px; top: 18px; bottom: -2px; width: 2px; background: #e2e8f0; }\n .tl-item:last-child::before { display: none; }\n .tl-item--success { --tl-color: #15803d; }\n .tl-item--warning { --tl-color: #b45309; }\n .tl-item--danger { --tl-color: #b91c1c; }\n .tl-marker {\n flex-shrink: 0; box-sizing: border-box; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%;\n background: var(--tl-color); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--tl-color);\n display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 1;\n }\n .tl-item--icon .tl-marker { border: none; box-shadow: none; color: #fff; }\n .tl-content { flex: 1; min-width: 0; overflow-wrap: anywhere; word-break: break-word; } /* word-break: Safari < 15.4 has no overflow-wrap: anywhere */\n .tl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }\n .tl-badge-tip { display: inline-flex; border-radius: 999px; }\n .tl-badge-tip:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }\n .tl-time--end { display: inline; margin: 0 0 0 auto; padding-left: 8px; white-space: nowrap; } /* right-aligned on the title row; wraps under on narrow rows */\n /* maxHeight: scroll container; right padding keeps the scrollbar off the dots */\n .tl-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-right: 8px; }\n .tl-scroll:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; border-radius: 4px; }\n .tl-title { font-size: 0.875rem; font-weight: 600; color: #1e293b; line-height: 1.4; }\n .tl-description { margin: 2px 0 0; font-size: 0.8125rem; line-height: 1.5; color: #475569; }\n .tl-time { display: block; margin-top: 2px; font-size: 0.75rem; color: #64748b; } /* 4.76:1 on white (WCAG AA) */\n `],\n})\nexport class TimelineComponent {\n protected readonly labels = inject(UiLabelsService);\n readonly items = input<TimelineItem[]>([]);\n /** Emits the item whose `action` button was clicked. */\n readonly itemAction = output<TimelineItem>();\n /** Accessible name of the list (e.g. \"Case activity\"). */\n readonly ariaLabel = input('');\n /** Shown (as a hint) when there are no items. Empty = render nothing. */\n readonly emptyMessage = input('');\n /** Any CSS length (e.g. `600px`). When set, the list scrolls inside a keyboard-focusable region of at most this height. Empty = no wrapper. */\n readonly maxHeight = input('');\n /** `below` (default): the time is under the title / description. `end`: the time sits right-aligned on the title row. */\n readonly timePosition = input<'below' | 'end'>('below');\n /**\n * Group the items under a heading per calendar day of `dateTime` (\"Today\", \"Yesterday\", \"Oct 3\", \"Oct 3, 2025\"). Default false = no headings,\n * DOM unchanged. The given order is kept: consecutive items of one day share a heading, the same day appearing again later starts a new group.\n * An item without a parseable ISO `dateTime` joins the group it follows (a heading-less group at the top when first).\n * Grouped markup: `<ol class=\"tl\"><li class=\"tl-day-group\"><div class=\"tl-day\" role=\"heading\" aria-level>…</div><ol class=\"tl-sub\">…items…</ol></li></ol>`.\n */\n readonly groupByDay = input(false);\n /** IANA time zone (e.g. `America/Chicago`) for the day grouping and the labels. A `dateTime` with a trailing Z / offset = an instant shown in this zone; a date or a wall-clock time without offset is taken as already being in that day. Empty (default) = the browser's local zone; an unknown zone also falls back to it. */\n readonly timeZone = input('');\n /** The moment \"Today\" / \"Yesterday\" are measured from. `null` (default) = the real current time; a Date or ISO string pins it (tests, replays). The real time is read when the groups are computed, not on a timer: a long-lived page should pass `now` (or re-bind `items`) to refresh Today / Yesterday after midnight. */\n readonly now = input<Date | string | null>(null);\n /** Heading level 1-6 of the day headings (role=\"heading\" + aria-level); anything else becomes 3. */\n readonly dayHeadingLevel = input<number>(3);\n\n protected readonly headingLevel = computed(() => {\n const n = this.dayHeadingLevel();\n return Number.isInteger(n) && n >= 1 && n <= 6 ? n : 3;\n });\n\n /** The items split into day groups (only used when `groupByDay` is on). */\n protected readonly groups = computed((): { key: string; label: string; items: TimelineItem[] }[] => {\n if (!this.groupByDay()) return [];\n const zone = this.timeZone() || undefined;\n let fmt: Intl.DateTimeFormat;\n try { fmt = new Intl.DateTimeFormat('en-US', { timeZone: zone, year: 'numeric', month: '2-digit', day: '2-digit' }); }\n catch { fmt = new Intl.DateTimeFormat('en-US', { year: 'numeric', month: '2-digit', day: '2-digit' }); }\n const parts = (d: Date) => {\n const p = fmt.formatToParts(d);\n const get = (t: string) => Number(p.find(x => x.type === t)?.value);\n return { y: get('year'), m: get('month'), d: get('day') };\n };\n const keyOf = (v: { y: number; m: number; d: number }) => `${v.y}-${String(v.m).padStart(2, '0')}-${String(v.d).padStart(2, '0')}`;\n const nowRaw = this.now();\n let nowDate = nowRaw == null ? new Date() : new Date(nowRaw);\n if (isNaN(nowDate.getTime())) nowDate = new Date();\n const t = parts(nowDate);\n const todayKey = keyOf(t);\n const yd = new Date(Date.UTC(t.y, t.m - 1, t.d - 1));\n const yesterdayKey = keyOf({ y: yd.getUTCFullYear(), m: yd.getUTCMonth() + 1, d: yd.getUTCDate() });\n const labelFmt = (withYear: boolean, tz: string | undefined) => new Intl.DateTimeFormat(safeLocale(this.labels.locale()), { timeZone: tz, month: 'short', day: 'numeric', ...(withYear ? { year: 'numeric' as const } : {}) });\n /** Heading text of a calendar day; the label is built from the day's own numbers (formatted in UTC so no zone can shift it). */\n const label = (v: { y: number; m: number; d: number }) =>\n keyOf(v) === todayKey ? this.labels.t('time.today') : keyOf(v) === yesterdayKey ? this.labels.t('time.yesterday') : labelFmt(v.y !== t.y, 'UTC').format(new Date(Date.UTC(v.y, v.m - 1, v.d)));\n /**\n * The calendar day of a dateTime string, or null when it is not a valid ISO date / date-time.\n * Z / offset = an instant, shown in `timeZone`. A date or a wall-clock time without offset is taken as already being in that day.\n */\n const dayOf = (iso: string | undefined): { y: number; m: number; d: number } | null => {\n const m = iso ? /^(\\d{4})-(\\d{2})-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:\\.\\d+)?)?(Z|[+-]\\d{2}:?\\d{2})?)?$/.exec(iso) : null;\n if (!m) return null;\n const y = Number(m[1]), mo = Number(m[2]), d = Number(m[3]);\n const probe = new Date(Date.UTC(y, mo - 1, d));\n if (probe.getUTCFullYear() !== y || probe.getUTCMonth() !== mo - 1 || probe.getUTCDate() !== d) return null;\n if (m[4] !== undefined && (Number(m[4]) > 23 || Number(m[5]) > 59 || (m[6] !== undefined && Number(m[6]) > 59))) return null;\n if (m[7] === undefined) return { y, m: mo, d };\n const inst = new Date(iso!.replace(/([+-]\\d{2})(\\d{2})$/, '$1:$2')); // older Safari only parses the ±hh:mm form\n return isNaN(inst.getTime()) ? null : parts(inst);\n };\n\n const groups: { key: string; label: string; items: TimelineItem[] }[] = [];\n for (const item of this.items()) {\n const v = dayOf(item.dateTime);\n const last = groups[groups.length - 1];\n if (!v) {\n if (last) last.items.push(item); else groups.push({ key: '', label: '', items: [item] });\n continue;\n }\n const key = keyOf(v);\n if (last && last.key === key) last.items.push(item);\n else groups.push({ key, label: label(v), items: [item] });\n }\n return groups;\n });\n\n /** Solid dot colour of an item's `dotVariant`, or null (then `tone` colours it). */\n dotColor(item: TimelineItem): string | null {\n return item.dotVariant ? (BADGE_VARIANT_STYLES[item.dotVariant]?.color ?? null) : null;\n }\n}\n","import { formatDate } from '@angular/common';\nimport type { BadgeVariant } from '@forgeroute/ui/table-types';\nimport { uiLocale, uiText } from '@forgeroute/ui/core';\nimport type { TimelineItem } from './timeline.component';\n\n/** A badge on an event: its text and colour. */\nexport interface TimelineEventBadge {\n label: string;\n /** Library badge colour. Default `gray`. */\n variant?: BadgeVariant;\n}\n\n/**\n * One activity event of a host page (a note, a payment, a status change...). Hosts map their own records to this shape once and let\n * {@link timelineItemsFromEvents} build the `ui-timeline` items, so the title / second line / time text / badges / dot colour are the same on every page.\n */\nexport interface TimelineEvent {\n id?: string;\n /** ISO date or date-time. Drives the time text, the machine-readable `datetime` and, for `groupByDay`, the day heading. */\n date: string;\n title: string;\n /** What happened, in a sentence. */\n description?: string | null;\n /** Who did it. */\n actor?: string | null;\n /** Money involved (US dollars). 0 and null show nothing. */\n amount?: number | null;\n /** A legally immutable record: the title gets the `lockedSuffix`. */\n locked?: boolean;\n /** First badge; its colour also colours the dot. */\n category?: TimelineEventBadge | null;\n /** Second badge. */\n status?: TimelineEventBadge | null;\n}\n\nexport interface TimelineEventOptions {\n /** Angular `formatDate` pattern of the visible time. Default `M/d/yyyy h:mm a` (11/8/2026 3:15 PM). */\n timeFormat?: string;\n /** Locale of the time text and the amount. Default: the app's active locale (`en-US` without a language service). */\n locale?: string;\n /** Words before the amount in the second line. Default: the library text \"Amount\" in the active language. */\n amountLabel?: string;\n /** Appended to the title of a locked record. Default: the library text \"<title> (locked record)\" in the active language. */\n lockedSuffix?: string;\n /** Joins the parts of the second line. Default ` · `. */\n separator?: string;\n}\n\n/**\n * Builds `<ui-timeline>` items from activity events.\n *\n * - title: the event title (plus `lockedSuffix` for a locked record)\n * - description: the non-empty ones of `description`, `actor` and `Amount: $1,234.50`, joined with `separator` (absent when there are none)\n * - time / dateTime: the formatted date and the raw `date`; an unparsable date gives no time text (never \"Invalid Date\")\n * - badges: the category and the status badge, in that order, when they have a label\n * - dotVariant: the colour of the category badge (`gray` when there is none)\n */\nexport function timelineItemsFromEvents(events: readonly TimelineEvent[], options: TimelineEventOptions = {}): TimelineItem[] {\n const timeFormat = options.timeFormat ?? 'M/d/yyyy h:mm a';\n const locale = options.locale ?? uiLocale();\n const amountLabel = options.amountLabel ?? uiText('timeline.eventAmount');\n const separator = options.separator ?? ' · ';\n\n return events.map(e => {\n const lines: string[] = [];\n if (e.description) lines.push(e.description);\n if (e.actor) lines.push(e.actor);\n if (e.amount) lines.push(`${amountLabel}: ${e.amount.toLocaleString(locale, { style: 'currency', currency: 'USD' })}`);\n const parsed = new Date(e.date);\n const valid = !isNaN(parsed.getTime());\n const badges = [e.category, e.status]\n .filter((b): b is TimelineEventBadge => !!b && !!b.label)\n .map(b => ({ label: b.label, variant: b.variant ?? 'gray' as BadgeVariant }));\n return {\n ...(e.id !== undefined ? { id: e.id } : {}),\n title: e.locked ? (options.lockedSuffix !== undefined ? `${e.title}${options.lockedSuffix}` : uiText('timeline.eventLocked', { title: e.title })) : e.title,\n description: lines.length ? lines.join(separator) : undefined,\n time: valid ? formatDate(parsed, timeFormat, locale) : undefined,\n dateTime: e.date || undefined,\n badges,\n dotVariant: e.category?.variant ?? 'gray',\n } satisfies TimelineItem;\n });\n}\n"],"mappings":";;;;;;;;;AA+KA,IAAa,oBAAb,MAAa,kBAAiB;CAxG9B,cAAA;EAyGqB,KAAA,SAAS,OAAO,eAAe;EACzC,KAAA,QAAQ,MAAsB,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEjC,KAAA,aAAa,OAAM;EAEnB,KAAA,YAAY,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAErB,KAAA,eAAe,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,eAAA,CAAA,+BAAA,CAAA,CAAA;EAExB,KAAA,YAAY,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAErB,KAAA,eAAe,MAAuB,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,eAAA,CAAA,+BAAA,CAAA,CAAA;EAO9C,KAAA,aAAa,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;EAEzB,KAAA,WAAW,MAAM,IAAG,GA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