@forgeroute/ui 0.5.15 → 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 +20 -3
  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 +17 -3
  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 +16 -3
  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 +11 -6
  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 +6 -3
  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 +5 -3
  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 +4 -2
  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 @@
1
+ {"version":3,"file":"forgeroute-ui-sidebar-layout.mjs","names":[],"sources":["../../../projects/forgeroute-ui/sidebar-layout/src/lib/sidebar-layout/sidebar-layout.component.ts","../../../projects/forgeroute-ui/sidebar-layout/src/lib/sidebar-layout/fill-viewport.directive.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, computed, effect, input, signal } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { LayoutGap, resolveLayoutGap } from '@forgeroute/ui/layout';\n\nexport type SidebarPosition = 'start' | 'end';\n/** Viewport width at and below which the layout becomes one column: sm = 640px, md = 900px, lg = 1200px, never = always two columns. */\nexport type SidebarCollapse = 'sm' | 'md' | 'lg' | 'never';\n\n/** A non-negative CSS length (0, a number with a unit, calc(...) or var(...)); anything else (a negative number, a typo) is not a width. */\nconst CSS_LENGTH = /^(?:0|(?:\\d+\\.?\\d*|\\.\\d+)(?:px|rem|em|%|vh|vw|ch)|(?:calc|var)\\([^;{}]*\\))$/i;\n\nconst BREAKPOINT_PX: Readonly<Record<'sm' | 'md' | 'lg', number>> = { sm: 640, md: 900, lg: 1200 };\n\n/** A valid CSS length (a bare 0 becomes 0px so calc() math stays valid) or `fallback`. */\nfunction lengthOr(v: unknown, fallback: string): string {\n const t = String(v ?? '').trim();\n if (!t || !CSS_LENGTH.test(t)) return fallback;\n return t === '0' ? '0px' : t;\n}\n\n/** A finite, non-negative px number, or `fallback`. */\nfunction px(v: unknown, fallback: number): number {\n if (v === null || v === undefined || v === '') return fallback;\n const n = Number(v);\n return Number.isFinite(n) && n >= 0 ? n : fallback;\n}\n\n/**\n * Detail-page layout: a MAIN column plus a SIDE column of fixed width.\n *\n * Replaces the page-level grid / `position: sticky` CSS each detail page used to carry. Project the two columns with\n * the `layout-main` and `layout-side` attributes:\n *\n * <ui-sidebar-layout sideWidth=\"340px\" gap=\"md\" collapseAt=\"md\">\n * <div layout-main> ...tabs, tables, timeline... </div>\n * <aside layout-side aria-label=\"Contact summary\"> ...profile card, quick actions... </aside>\n * </ui-sidebar-layout>\n *\n * - `sideWidth`: any CSS length (default `320px`). The main column takes the rest (`minmax(0, 1fr)` track and\n * `min-width: 0`, so a wide table cannot stretch the grid).\n * - `sidePosition`: `end` (default, side on the right) | `start` (side on the left). The DOM order is always main then\n * side; only the visual position changes.\n * - `gap`: layout gap token (none | xs | sm | md | lg | xl) or a CSS length. Default `md` (16px). It is the space between\n * the columns and, when collapsed, between the stacked columns.\n * - `stickySide` (default true): at wide widths the side column is `position: sticky` at `stickyTop` px (default 16) with\n * `max-height: 100vh - (stickyTop + stickyOffset)` (default offset 32px; `100vh` first, `100dvh` after it for browsers\n * that know it) and `overflow-y: auto`, so only the main column scrolls the page; a side column taller than the viewport\n * scrolls inside itself. `false` = a plain static column.\n * - `collapseAt`: sm (640px) | md (900px, default) | lg (1200px) | never. At and below that viewport width there is ONE\n * column and the side column is static (never sticky, no max-height). `sideFirstWhenCollapsed` (default true) puts the\n * side column first there; `false` puts the main column first.\n * - `sideFirstInDom` (default false): by default the side column is only moved to the top on small screens with CSS\n * `order`, so Tab / reading order stays main then side. With `sideFirstInDom` AND `sideFirstWhenCollapsed`, the side\n * wrapper is rendered BEFORE the main wrapper in the DOM while the viewport is at or below the `collapseAt` width\n * (tracked with `matchMedia` for the same query), so Tab order equals the visual order. At wide widths the DOM is main\n * then side. The projected nodes are moved, never recreated (same element instances, no state lost). No `matchMedia`\n * (server rendering) = not collapsed; CSS `order` still gives the right visual order until the browser takes over.\n * The `.sl` root element carries `data-dom-order=\"main-first|side-first\"`.\n * - `sideBleed` (CSS length, default `4px`; `0px` = none): the sticky side column scrolls inside itself\n * (`overflow-y: auto`), which would clip focus rings and shadows at its edges. It gets padding and a negative margin of the\n * bleed size (the full `sideBleed` on the outer and block edges, `min(sideBleed, gap)` toward main), so the content keeps exactly its `sideWidth` and `gap` (the layout does not\n * move) while a 2px outline with a 2px offset still fits. `top` is reduced by the bleed so the content sticks at\n * `stickyTop`, and `max-height` is `100vh - (stickyTop + stickyOffset)` for the CONTENT (the bleed is added back).\n * The bleed toward main is clamped to the gap (`min(sideBleed, gap)`), so the transparent padding never overlaps or\n * intercepts clicks on main; the outer edge keeps the full bleed. Needs CSS `min()` (all current browsers).\n * Collapsed and non-sticky columns have no bleed. NOTE: the outer edge of the side box overhangs the layout by the bleed\n * (4px by default, on the right for `end`, on the left for `start`), so a flush clipping or scrolling ancestor can\n * show 4px of horizontal overflow: use `sideBleed=\"0px\"` there.\n * - `sideWidth`, `sideBleed` and `gap` must be non-negative lengths; a negative value falls back to the default. A `calc(...)` or\n * `var(...)` value is passed through as written and is not checked: make sure it cannot compute to a negative length.\n * - An empty side slot (no `layout-side` element) hides the side column and the main column takes the full width.\n *\n * Plain media queries only (no `:has()`, no container queries) so it behaves the same in Chrome, Edge, Firefox and Safari.\n * The column gap is a margin on the side column (not a grid `column-gap`), so an empty side column leaves no stray gap.\n */\n@Component({\n selector: 'ui-sidebar-layout',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgTemplateOutlet],\n host: { '[attr.data-side-position]': 'position()' },\n template: `<div class=\"sl\" [class]=\"rootClass()\" [attr.data-dom-order]=\"domOrder()\" [style.--sl-side-w]=\"sideCss()\" [style.--sl-gap]=\"gapCss()\" [style.--sl-top]=\"topCss()\" [style.--sl-off]=\"offCss()\" [style.--sl-bleed]=\"bleedCss()\" [style.row-gap]=\"gapCss()\">@if (domSideFirst()) {<ng-container [ngTemplateOutlet]=\"sideTpl\" /><ng-container [ngTemplateOutlet]=\"mainTpl\" />} @else {<ng-container [ngTemplateOutlet]=\"mainTpl\" /><ng-container [ngTemplateOutlet]=\"sideTpl\" />}</div><ng-template #mainTpl><div class=\"sl-main\"><ng-content select=\"[layout-main]\" /></div></ng-template><ng-template #sideTpl><div class=\"sl-side\"><ng-content select=\"[layout-side]\" /></div></ng-template>`,\n styles: [`\n :host { display: block; }\n .sl {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n /* Inline margins of the side column: [start, end]. Set per mode below; the collapse rules zero the margins directly. */\n --sl-mis: var(--sl-gap, 16px);\n --sl-mie: 0px;\n }\n .sl-main { grid-column: 1; grid-row: 1; min-width: 0; }\n .sl-side {\n grid-column: 2;\n grid-row: 1;\n box-sizing: border-box;\n width: var(--sl-side-w, 320px);\n min-width: 0;\n margin-inline-start: var(--sl-mis);\n margin-inline-end: var(--sl-mie);\n }\n /* No side element projected: nothing to show, and the auto track collapses to 0 (the gap is a margin, so none is left). */\n .sl-side:empty { display: none; }\n\n /* Side on the start (left). */\n .sl.sl-start { grid-template-columns: auto minmax(0, 1fr); --sl-mis: 0px; --sl-mie: var(--sl-gap, 16px); }\n .sl.sl-start .sl-main { grid-column: 2; }\n .sl.sl-start .sl-side { grid-column: 1; }\n\n /* Sticky side at wide widths. Padding + equal negative margins (\"bleed\") keep focus rings at the scroll edge unclipped\n without moving the content: the content stays sideWidth wide and gap away from main. The bleed toward main is clamped\n to the gap (--sl-bin = min(bleed, gap)) so the transparent padding never overlaps main; the outer edge keeps the full bleed. */\n .sl.sl-sticky {\n --sl-bin: min(var(--sl-bleed, 4px), var(--sl-gap, 16px));\n --sl-mis: calc(var(--sl-gap, 16px) - var(--sl-bin));\n --sl-mie: calc(-1 * var(--sl-bleed, 4px));\n --sl-pis: var(--sl-bin);\n --sl-pie: var(--sl-bleed, 4px);\n }\n .sl.sl-sticky.sl-start {\n --sl-mis: calc(-1 * var(--sl-bleed, 4px));\n --sl-mie: calc(var(--sl-gap, 16px) - var(--sl-bin));\n --sl-pis: var(--sl-bleed, 4px);\n --sl-pie: var(--sl-bin);\n }\n .sl.sl-sticky .sl-side {\n position: -webkit-sticky;\n position: sticky;\n top: calc(var(--sl-top, 16px) - var(--sl-bleed, 4px));\n align-self: start;\n width: calc(var(--sl-side-w, 320px) + var(--sl-bleed, 4px) + var(--sl-bin));\n padding-block: var(--sl-bleed, 4px);\n padding-inline-start: var(--sl-pis);\n padding-inline-end: var(--sl-pie);\n margin-block-start: calc(-1 * var(--sl-bleed, 4px));\n margin-block-end: calc(-1 * var(--sl-bleed, 4px));\n /* The box is border-box and includes the vertical padding: add 2 * bleed so the CONTENT area ends at 100vh - stickyOffset. */\n max-height: calc(100vh - (var(--sl-top, 16px) + var(--sl-off, 32px)) + 2 * var(--sl-bleed, 4px));\n max-height: calc(100dvh - (var(--sl-top, 16px) + var(--sl-off, 32px)) + 2 * var(--sl-bleed, 4px));\n overflow-y: auto;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n }\n\n /* One column at and below the collapse width: side static without bleed. With sideFirstInDom the side wrapper is already first in the DOM and the sl-first class is not set, so no CSS order is applied. */\n @media (max-width: 640px) {\n .sl.sl-c-sm { grid-template-columns: minmax(0, 1fr); }\n .sl.sl-c-sm .sl-main { grid-column: 1; grid-row: auto; }\n .sl.sl-c-sm .sl-side { grid-column: 1; grid-row: auto; width: auto; padding: 0; margin-inline-start: 0; margin-inline-end: 0; margin-block-start: 0; margin-block-end: 0; position: static; top: auto; align-self: auto; max-height: none; overflow-y: visible; }\n .sl.sl-c-sm.sl-first .sl-side { order: -1; }\n }\n @media (max-width: 900px) {\n .sl.sl-c-md { grid-template-columns: minmax(0, 1fr); }\n .sl.sl-c-md .sl-main { grid-column: 1; grid-row: auto; }\n .sl.sl-c-md .sl-side { grid-column: 1; grid-row: auto; width: auto; padding: 0; margin-inline-start: 0; margin-inline-end: 0; margin-block-start: 0; margin-block-end: 0; position: static; top: auto; align-self: auto; max-height: none; overflow-y: visible; }\n .sl.sl-c-md.sl-first .sl-side { order: -1; }\n }\n @media (max-width: 1200px) {\n .sl.sl-c-lg { grid-template-columns: minmax(0, 1fr); }\n .sl.sl-c-lg .sl-main { grid-column: 1; grid-row: auto; }\n .sl.sl-c-lg .sl-side { grid-column: 1; grid-row: auto; width: auto; padding: 0; margin-inline-start: 0; margin-inline-end: 0; margin-block-start: 0; margin-block-end: 0; position: static; top: auto; align-self: auto; max-height: none; overflow-y: visible; }\n .sl.sl-c-lg.sl-first .sl-side { order: -1; }\n }\n `],\n})\nexport class SidebarLayoutComponent {\n /** Width of the side column: any CSS length (default `320px`). */\n readonly sideWidth = input<string>('320px');\n readonly sidePosition = input<SidebarPosition>('end');\n /** Space between the columns (and between them when collapsed): a layout gap token or a CSS length (default `md` = 16px). */\n readonly gap = input<LayoutGap | string>('md');\n /** Keep the side column pinned while the main column scrolls (wide widths only). */\n readonly stickySide = input<boolean>(true);\n /** Distance in px from the top of the viewport at which the side column's content sticks (default 16). */\n readonly stickyTop = input<number>(16);\n /** Total px of non-viewport space above and below the side column, used for its max-height (default 32). */\n readonly stickyOffset = input<number>(32);\n readonly collapseAt = input<SidebarCollapse>('md');\n /** When collapsed to one column: side column first (default) or main column first. */\n readonly sideFirstWhenCollapsed = input<boolean>(true);\n /** Also put the side wrapper first in the DOM (not only visually) while collapsed, so Tab order equals visual order. Default false. */\n readonly sideFirstInDom = input<boolean>(false);\n /** Room (CSS length) inside the sticky side's scroll box so focus rings at its edge are not clipped. Default `4px`; `0px` = none. */\n readonly sideBleed = input<string>('4px');\n\n /** True while the viewport is at or below the collapseAt width; only tracked when sideFirstInDom is set. */\n private readonly collapsed = signal(false);\n\n protected readonly position = computed((): SidebarPosition => (this.sidePosition() === 'start' ? 'start' : 'end'));\n private readonly collapseKey = computed((): SidebarCollapse => {\n const c = this.collapseAt();\n return c === 'never' || c === 'sm' || c === 'lg' ? c : 'md';\n });\n /** The side wrapper is rendered before the main wrapper. */\n protected readonly domSideFirst = computed(() => this.sideFirstInDom() && this.sideFirstWhenCollapsed() && this.collapsed());\n protected readonly domOrder = computed((): 'side-first' | 'main-first' => (this.domSideFirst() ? 'side-first' : 'main-first'));\n protected readonly sideCss = computed(() => lengthOr(this.sideWidth(), '320px'));\n protected readonly bleedCss = computed(() => lengthOr(this.sideBleed(), '4px'));\n protected readonly gapCss = computed(() => {\n const g = resolveLayoutGap(this.gap(), 'md');\n if (g.startsWith('-')) return '16px'; // a negative gap is not valid: default\n return g === '0' ? '0px' : g;\n });\n protected readonly topCss = computed(() => `${px(this.stickyTop(), 16)}px`);\n protected readonly offCss = computed(() => `${px(this.stickyOffset(), 32)}px`);\n protected readonly rootClass = computed(() => {\n const key = this.collapseKey();\n const collapse = key === 'never' ? '' : `sl-c-${key}`;\n const domFirst = this.domSideFirst();\n return [\n this.position() === 'start' ? 'sl-start' : '',\n this.stickySide() ? 'sl-sticky' : '',\n collapse,\n // CSS order only when the DOM is not already side-first (no double reordering).\n collapse && this.sideFirstWhenCollapsed() && !domFirst ? 'sl-first' : '',\n domFirst ? 'sl-dom-first' : '',\n ].filter(Boolean).join(' ');\n });\n\n constructor() {\n effect(onCleanup => {\n const key = this.collapseKey();\n if (!this.sideFirstInDom() || key === 'never' || typeof window === 'undefined' || typeof window.matchMedia !== 'function') {\n this.collapsed.set(false);\n return;\n }\n const mql = window.matchMedia(`(max-width: ${BREAKPOINT_PX[key]}px)`);\n this.collapsed.set(mql.matches);\n const onChange = (e: { matches: boolean }) => this.collapsed.set(e.matches);\n if (typeof mql.addEventListener === 'function') {\n mql.addEventListener('change', onChange);\n onCleanup(() => mql.removeEventListener('change', onChange));\n } else {\n // Safari < 14.\n const legacy = mql as unknown as { addListener(cb: (e: { matches: boolean }) => void): void; removeListener(cb: (e: { matches: boolean }) => void): void };\n legacy.addListener(onChange);\n onCleanup(() => legacy.removeListener(onChange));\n }\n });\n }\n}\n","import { DestroyRef, Directive, ElementRef, afterNextRender, inject } from '@angular/core';\n\n/** Smallest height the columns are given, so a very short window falls back to the page scrolling instead of crushing them. */\nconst MIN_HEIGHT_PX = 240;\n\n/**\n * Independent column scrolling for a detail page's `<ui-sidebar-layout uiFillViewport>`.\n *\n * Sets `--cols-h` on the host: the room left between the top of the layout and the bottom of the shell's content area (the nearest\n * `<main>`). Pair it with the `independent-columns` mixin (`@use 'detail-columns' as dc;` from `@forgeroute/ui/src/_detail-columns.scss`),\n * which caps both columns to `--cols-h` so each scrolls on its own while the viewport does not scroll.\n *\n * <ui-sidebar-layout uiFillViewport sideWidth=\"320px\" collapseAt=\"md\">\n * <div layout-main class=\"col-main\"> ... </div>\n * <aside layout-side class=\"col-side\"> ... </aside>\n * </ui-sidebar-layout>\n *\n * Re-measured when the content area or the element's parent changes size (window resize, tabs wrapping, a card loading). Pure layout maths\n * on the element's position inside the scroller's content, so it does not depend on how far the page happens to be scrolled. The height is\n * never below 240px. With no `<main>` ancestor nothing is set. Not related to `ui-page`'s `fillViewport` input (a page at least one viewport high).\n */\n@Directive({ selector: '[uiFillViewport]', standalone: true })\nexport class FillViewportDirective {\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n afterNextRender(() => {\n const scroller = this.el.closest('main');\n if (!scroller) return;\n let frame = 0;\n const measure = () => {\n cancelAnimationFrame(frame);\n frame = requestAnimationFrame(() => {\n const padBottom = parseFloat(getComputedStyle(scroller).paddingBottom) || 0;\n const topInContent = this.el.getBoundingClientRect().top - scroller.getBoundingClientRect().top + scroller.scrollTop;\n const height = Math.max(MIN_HEIGHT_PX, Math.floor(scroller.clientHeight - padBottom - topInContent));\n this.el.style.setProperty('--cols-h', `${height}px`);\n });\n };\n const observer = new ResizeObserver(measure);\n observer.observe(scroller);\n if (this.el.parentElement) observer.observe(this.el.parentElement);\n measure();\n destroyRef.onDestroy(() => { observer.disconnect(); cancelAnimationFrame(frame); });\n });\n }\n}\n"],"mappings":";;;;AASA,MAAM,aAAa;AAEnB,MAAM,gBAA8D;CAAE,IAAI;CAAK,IAAI;CAAK,IAAI;AAAI;AAGhG,SAAS,SAAS,GAAY,UAAgB;CAC5C,MAAM,IAAI,OAAO,KAAK,EAAE,CAAC,CAAC,KAAI;CAC9B,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qBAAqB,KAAK;GAAG,CAAC;EACpF,CAAC;CACH;CAxBW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAqB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAArB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAqB,cAAA;GAAA,UAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAArB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAqB,YAAA,CAAA;EADjC,MAAA;EAAU,MAAA,CAAA;GAAE,UAAU;GAAoB,YAAY;EAAI,CAAE"}
@@ -0,0 +1,152 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, input } from "@angular/core";
3
+ var SkeletonComponent = class SkeletonComponent {
4
+ constructor() {
5
+ this.height = input(20, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
6
+ this.width = input("100%", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
7
+ this.radius = input(8, ...ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []);
8
+ this.mb = input(0, ...ngDevMode ? [{ debugName: "mb" }] : /* istanbul ignore next */ []);
9
+ this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
10
+ }
11
+ label() {
12
+ return this.ariaLabel().trim();
13
+ }
14
+ static {
15
+ this.ɵfac = i0.ɵɵngDeclareFactory({
16
+ minVersion: "12.0.0",
17
+ version: "22.2.2",
18
+ ngImport: i0,
19
+ type: SkeletonComponent,
20
+ deps: [],
21
+ target: i0.ɵɵFactoryTarget.Component
22
+ });
23
+ }
24
+ static {
25
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
26
+ minVersion: "17.1.0",
27
+ version: "22.2.2",
28
+ type: SkeletonComponent,
29
+ isStandalone: true,
30
+ selector: "ui-skeleton",
31
+ inputs: {
32
+ height: {
33
+ classPropertyName: "height",
34
+ publicName: "height",
35
+ isSignal: true,
36
+ isRequired: false,
37
+ transformFunction: null
38
+ },
39
+ width: {
40
+ classPropertyName: "width",
41
+ publicName: "width",
42
+ isSignal: true,
43
+ isRequired: false,
44
+ transformFunction: null
45
+ },
46
+ radius: {
47
+ classPropertyName: "radius",
48
+ publicName: "radius",
49
+ isSignal: true,
50
+ isRequired: false,
51
+ transformFunction: null
52
+ },
53
+ mb: {
54
+ classPropertyName: "mb",
55
+ publicName: "mb",
56
+ isSignal: true,
57
+ isRequired: false,
58
+ transformFunction: null
59
+ },
60
+ ariaLabel: {
61
+ classPropertyName: "ariaLabel",
62
+ publicName: "ariaLabel",
63
+ isSignal: true,
64
+ isRequired: false,
65
+ transformFunction: null
66
+ }
67
+ },
68
+ host: { properties: {
69
+ "style.margin-bottom.px": "mb() || null",
70
+ "attr.aria-hidden": "label() ? null : 'true'",
71
+ "attr.role": "label() ? 'status' : null",
72
+ "attr.aria-live": "label() ? 'polite' : null",
73
+ "attr.aria-busy": "label() ? 'true' : null",
74
+ "attr.aria-label": "label() || null"
75
+ } },
76
+ ngImport: i0,
77
+ template: `<div class="sk" [style.height.px]="height()" [style.width]="width()" [style.border-radius.px]="radius()" aria-hidden="true"></div>`,
78
+ isInline: true,
79
+ styles: [".sk{position:relative;overflow:hidden;background:#f1f5f9}.sk:after{content:\"\";position:absolute;inset:0;background:linear-gradient(90deg,transparent 25%,rgba(255,255,255,.65) 50%,transparent 75%);transform:translate(-100%);animation:sk-shimmer 1.5s ease-in-out infinite}@keyframes sk-shimmer{to{transform:translate(200%)}}@media(prefers-reduced-motion:reduce){.sk:after{animation:none;transform:none;opacity:0}}\n"],
80
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
81
+ });
82
+ }
83
+ };
84
+ i0.ɵɵngDeclareClassMetadata({
85
+ minVersion: "12.0.0",
86
+ version: "22.2.2",
87
+ ngImport: i0,
88
+ type: SkeletonComponent,
89
+ decorators: [{
90
+ type: Component,
91
+ args: [{
92
+ selector: "ui-skeleton",
93
+ standalone: true,
94
+ changeDetection: ChangeDetectionStrategy.OnPush,
95
+ template: `<div class="sk" [style.height.px]="height()" [style.width]="width()" [style.border-radius.px]="radius()" aria-hidden="true"></div>`,
96
+ host: {
97
+ "[style.margin-bottom.px]": "mb() || null",
98
+ "[attr.aria-hidden]": "label() ? null : 'true'",
99
+ "[attr.role]": "label() ? 'status' : null",
100
+ "[attr.aria-live]": "label() ? 'polite' : null",
101
+ "[attr.aria-busy]": "label() ? 'true' : null",
102
+ "[attr.aria-label]": "label() || null"
103
+ },
104
+ styles: [".sk{position:relative;overflow:hidden;background:#f1f5f9}.sk:after{content:\"\";position:absolute;inset:0;background:linear-gradient(90deg,transparent 25%,rgba(255,255,255,.65) 50%,transparent 75%);transform:translate(-100%);animation:sk-shimmer 1.5s ease-in-out infinite}@keyframes sk-shimmer{to{transform:translate(200%)}}@media(prefers-reduced-motion:reduce){.sk:after{animation:none;transform:none;opacity:0}}\n"]
105
+ }]
106
+ }],
107
+ propDecorators: {
108
+ height: [{
109
+ type: i0.Input,
110
+ args: [{
111
+ isSignal: true,
112
+ alias: "height",
113
+ required: false
114
+ }]
115
+ }],
116
+ width: [{
117
+ type: i0.Input,
118
+ args: [{
119
+ isSignal: true,
120
+ alias: "width",
121
+ required: false
122
+ }]
123
+ }],
124
+ radius: [{
125
+ type: i0.Input,
126
+ args: [{
127
+ isSignal: true,
128
+ alias: "radius",
129
+ required: false
130
+ }]
131
+ }],
132
+ mb: [{
133
+ type: i0.Input,
134
+ args: [{
135
+ isSignal: true,
136
+ alias: "mb",
137
+ required: false
138
+ }]
139
+ }],
140
+ ariaLabel: [{
141
+ type: i0.Input,
142
+ args: [{
143
+ isSignal: true,
144
+ alias: "ariaLabel",
145
+ required: false
146
+ }]
147
+ }]
148
+ }
149
+ });
150
+ export { SkeletonComponent };
151
+
152
+ //# sourceMappingURL=forgeroute-ui-skeleton.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgeroute-ui-skeleton.mjs","names":[],"sources":["../../../projects/forgeroute-ui/skeleton/src/lib/skeleton/skeleton.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input } from '@angular/core';\n\n/**\n * Shimmering placeholder for content that is loading.\n *\n * By default it is purely decorative (hidden from assistive tech), like before. Give ONE skeleton - or the wrapper of a group of them - an\n * `ariaLabel` to announce the loading state: the host then becomes a polite live region (`role=\"status\"`, `aria-live=\"polite\"`,\n * `aria-busy=\"true\"`, named by the label) and is no longer hidden. Remove the skeleton (or the label) when the content has loaded.\n *\n * <ui-skeleton [height]=\"44\" ariaLabel=\"Loading submissions\" />\n * <div role=\"status\" aria-label=\"Loading report\"> <ui-skeleton /> <ui-skeleton /> </div> <!-- decorative skeletons inside a labelled wrapper -->\n *\n * Do not label every skeleton of a group: each labelled skeleton is its own live region and would be announced separately.\n */\n@Component({\n selector: 'ui-skeleton',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<div class=\"sk\" [style.height.px]=\"height()\" [style.width]=\"width()\" [style.border-radius.px]=\"radius()\" aria-hidden=\"true\"></div>`,\n host: {\n '[style.margin-bottom.px]': 'mb() || null',\n '[attr.aria-hidden]': \"label() ? null : 'true'\",\n '[attr.role]': \"label() ? 'status' : null\",\n '[attr.aria-live]': \"label() ? 'polite' : null\",\n '[attr.aria-busy]': \"label() ? 'true' : null\",\n '[attr.aria-label]': 'label() || null',\n },\n styles: [`\n .sk {\n position: relative;\n overflow: hidden;\n background: #f1f5f9;\n }\n .sk::after {\n content: '';\n position: absolute;\n inset: 0;\n background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.65) 50%, transparent 75%);\n transform: translateX(-100%);\n animation: sk-shimmer 1.5s ease-in-out infinite;\n }\n @keyframes sk-shimmer { to { transform: translateX(200%); } }\n\n /* Reduced motion: no entrance / shimmer animation (a loading spinner stays, slower). */\n @media (prefers-reduced-motion: reduce) {\n .sk::after { animation: none; transform: none; opacity: 0; } /* no shimmer sweep: the grey placeholder alone says \"loading\" */\n }\n `],\n})\nexport class SkeletonComponent {\n readonly height = input(20);\n readonly width = input('100%');\n readonly radius = input(8);\n readonly mb = input(0);\n /** Accessible name that turns the skeleton into a polite status region (\"Loading ...\"). Empty (default) = decorative, hidden from assistive tech. */\n readonly ariaLabel = input('');\n /** The trimmed label ('' = none). */\n label(): string { return this.ariaLabel().trim(); }\n}\n"],"mappings":";;AAiDA,IAAa,oBAAb,MAAa,kBAAiB;CAnC9B,cAAA;EAoCW,KAAA,SAAS,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;EAClB,KAAA,QAAS,MAAM,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EACtB,KAAA,SAAS,MAAM,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;EACjB,KAAA,KAAS,MAAM,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;EAEjB,KAAA,YAAY,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAG/B;CADC,QAAK;EAAa,OAAO,KAAK,UAAS,CAAE,CAAC,KAAI;CAAI;CARvC;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAiB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAjB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAiB,cAAA;GAAA,UAAA;GAAA,QAAA;IAAA,QAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,OAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,QAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,IAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,WAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,MAAA,EAAA,YAAA;IAAA,0BAAA;IAAA,oBAAA;IAAA,aAAA;IAAA,kBAAA;IAAA,kBAAA;IAAA,mBAAA;GAAA,EAAA;GAAA,UAAA;GAAA,UA/BlB;GAAoI,UAAA;GAAA,QAAA,CAAA,iaAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AA+BnI,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EAnC7B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAa,YACX;GAAI,iBACC,wBAAwB;GAAM,UACrC;GAAoI,MACxI;IACJ,4BAA4B;IAC5B,sBAAsB;IACtB,eAAe;IACf,oBAAoB;IACpB,oBAAoB;IACpB,qBAAqB;GACtB;GAAA,QAAA,CAAA,iaAAA;EAAA,CAAA"}
@@ -0,0 +1,129 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, computed, inject, input, output } from "@angular/core";
3
+ import { DOCUMENT } from "@angular/common";
4
+ import { UiLabelsService } from "@forgeroute/ui/core";
5
+ var SkipLinkComponent = class SkipLinkComponent {
6
+ constructor() {
7
+ this.doc = inject(DOCUMENT);
8
+ this.labels = inject(UiLabelsService);
9
+ this.target = input("main-content", ...ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []);
10
+ this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
11
+ this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
12
+ this.activated = output();
13
+ this.text = computed(() => this.label() || this.labels.t("appShell.skipToMainContent"), ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
14
+ this.landmarkLabel = computed(() => this.ariaLabel() || this.labels.t("skipLink.ariaLabel"), ...ngDevMode ? [{ debugName: "landmarkLabel" }] : /* istanbul ignore next */ []);
15
+ }
16
+ skip(event) {
17
+ const el = this.doc.getElementById(this.target());
18
+ if (!el) return;
19
+ event.preventDefault();
20
+ if (!el.hasAttribute("tabindex")) el.setAttribute("tabindex", "-1");
21
+ el.focus({ preventScroll: false });
22
+ this.activated.emit(this.target());
23
+ }
24
+ static {
25
+ this.ɵfac = i0.ɵɵngDeclareFactory({
26
+ minVersion: "12.0.0",
27
+ version: "22.2.2",
28
+ ngImport: i0,
29
+ type: SkipLinkComponent,
30
+ deps: [],
31
+ target: i0.ɵɵFactoryTarget.Component
32
+ });
33
+ }
34
+ static {
35
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
36
+ minVersion: "17.1.0",
37
+ version: "22.2.2",
38
+ type: SkipLinkComponent,
39
+ isStandalone: true,
40
+ selector: "ui-skip-link",
41
+ inputs: {
42
+ target: {
43
+ classPropertyName: "target",
44
+ publicName: "target",
45
+ isSignal: true,
46
+ isRequired: false,
47
+ transformFunction: null
48
+ },
49
+ label: {
50
+ classPropertyName: "label",
51
+ publicName: "label",
52
+ isSignal: true,
53
+ isRequired: false,
54
+ transformFunction: null
55
+ },
56
+ ariaLabel: {
57
+ classPropertyName: "ariaLabel",
58
+ publicName: "ariaLabel",
59
+ isSignal: true,
60
+ isRequired: false,
61
+ transformFunction: null
62
+ }
63
+ },
64
+ outputs: { activated: "activated" },
65
+ host: {
66
+ attributes: { "role": "navigation" },
67
+ properties: { "attr.aria-label": "landmarkLabel()" }
68
+ },
69
+ ngImport: i0,
70
+ template: `<a class="ui-skip-link" [attr.href]="'#' + target()" (click)="skip($event)">{{ text() }}</a>`,
71
+ isInline: true,
72
+ styles: [":host{display:block}.ui-skip-link{position:absolute;top:-64px;left:8px;z-index:1000;padding:10px 16px;min-height:24px;border-radius:6px;background:#fff;color:#1d4ed8;font-size:.875rem;font-weight:600;text-decoration:none;box-shadow:0 2px 10px #00000040}.ui-skip-link:focus,.ui-skip-link:focus-visible{top:8px;outline:2px solid #1d4ed8;outline-offset:2px}@media(forced-colors:active){.ui-skip-link{border:1px solid CanvasText}}\n"],
73
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
74
+ });
75
+ }
76
+ };
77
+ i0.ɵɵngDeclareClassMetadata({
78
+ minVersion: "12.0.0",
79
+ version: "22.2.2",
80
+ ngImport: i0,
81
+ type: SkipLinkComponent,
82
+ decorators: [{
83
+ type: Component,
84
+ args: [{
85
+ selector: "ui-skip-link",
86
+ standalone: true,
87
+ changeDetection: ChangeDetectionStrategy.OnPush,
88
+ host: {
89
+ role: "navigation",
90
+ "[attr.aria-label]": "landmarkLabel()"
91
+ },
92
+ template: `<a class="ui-skip-link" [attr.href]="'#' + target()" (click)="skip($event)">{{ text() }}</a>`,
93
+ styles: [":host{display:block}.ui-skip-link{position:absolute;top:-64px;left:8px;z-index:1000;padding:10px 16px;min-height:24px;border-radius:6px;background:#fff;color:#1d4ed8;font-size:.875rem;font-weight:600;text-decoration:none;box-shadow:0 2px 10px #00000040}.ui-skip-link:focus,.ui-skip-link:focus-visible{top:8px;outline:2px solid #1d4ed8;outline-offset:2px}@media(forced-colors:active){.ui-skip-link{border:1px solid CanvasText}}\n"]
94
+ }]
95
+ }],
96
+ propDecorators: {
97
+ target: [{
98
+ type: i0.Input,
99
+ args: [{
100
+ isSignal: true,
101
+ alias: "target",
102
+ required: false
103
+ }]
104
+ }],
105
+ label: [{
106
+ type: i0.Input,
107
+ args: [{
108
+ isSignal: true,
109
+ alias: "label",
110
+ required: false
111
+ }]
112
+ }],
113
+ ariaLabel: [{
114
+ type: i0.Input,
115
+ args: [{
116
+ isSignal: true,
117
+ alias: "ariaLabel",
118
+ required: false
119
+ }]
120
+ }],
121
+ activated: [{
122
+ type: i0.Output,
123
+ args: ["activated"]
124
+ }]
125
+ }
126
+ });
127
+ export { SkipLinkComponent };
128
+
129
+ //# sourceMappingURL=forgeroute-ui-skip-link.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgeroute-ui-skip-link.mjs","names":[],"sources":["../../../projects/forgeroute-ui/skip-link/src/lib/skip-link/skip-link.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input, output, inject, computed } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/**\n * \"Skip to main content\" link for a page that is NOT inside `ui-app-shell` (a public page, a standalone flow). Put it as the FIRST element of the page:\n *\n * <ui-skip-link target=\"shop-main\" />\n * ...\n * <main id=\"shop-main\"> ... </main>\n *\n * It is a real link (`<a href=\"#target\">`, so it works as a link for assistive technology and with a middle-click) and sits inside its own named\n * `navigation` landmark (\"Skip links\"), so no content is outside a landmark. It is off screen until it receives keyboard focus. Activating it does not\n * change the URL (the app uses the router): it moves focus to the element with the target id (giving it `tabindex=\"-1\"` when it has none) and scrolls it\n * into view. An unknown target does nothing. `ui-app-shell` keeps its own skip link.\n *\n * Inputs: `target` (element id, default `main-content`), `label` (default: the translated \"Skip to main content\"), `ariaLabel` (the landmark's name, default \"Skip links\").\n * Output: `activated` (the target id, when focus was moved).\n */\n@Component({\n selector: 'ui-skip-link',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { role: 'navigation', '[attr.aria-label]': 'landmarkLabel()' },\n template: `<a class=\"ui-skip-link\" [attr.href]=\"'#' + target()\" (click)=\"skip($event)\">{{ text() }}</a>`,\n styles: [`\n :host { display: block; }\n .ui-skip-link {\n position: absolute; top: -64px; left: 8px; z-index: 1000;\n padding: 10px 16px; min-height: 24px; border-radius: 6px;\n background: #fff; color: #1d4ed8; font-size: 0.875rem; font-weight: 600; text-decoration: none;\n box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);\n }\n .ui-skip-link:focus, .ui-skip-link:focus-visible { top: 8px; outline: 2px solid #1d4ed8; outline-offset: 2px; }\n @media (forced-colors: active) { .ui-skip-link { border: 1px solid CanvasText; } }\n `],\n})\nexport class SkipLinkComponent {\n private readonly doc = inject(DOCUMENT);\n private readonly labels = inject(UiLabelsService);\n\n /** Id of the element that receives focus. */\n readonly target = input('main-content');\n /** The link text (default: translated \"Skip to main content\"). */\n readonly label = input('');\n /** The accessible name of the landmark (default: translated \"Skip links\"). */\n readonly ariaLabel = input('');\n /** Fires with the target id when focus was moved. */\n readonly activated = output<string>();\n\n protected readonly text = computed(() => this.label() || this.labels.t('appShell.skipToMainContent'));\n protected readonly landmarkLabel = computed(() => this.ariaLabel() || this.labels.t('skipLink.ariaLabel'));\n\n protected skip(event: Event): void {\n const el = this.doc.getElementById(this.target());\n if (!el) return; // unknown target: leave the browser's default behaviour alone\n event.preventDefault();\n if (!el.hasAttribute('tabindex')) el.setAttribute('tabindex', '-1');\n el.focus({ preventScroll: false });\n this.activated.emit(this.target());\n }\n}\n"],"mappings":";;;;AAqCA,IAAa,oBAAb,MAAa,kBAAiB;CAlB9B,cAAA;EAmBmB,KAAA,MAAM,OAAO,QAAQ;EACrB,KAAA,SAAS,OAAO,eAAe;EAGvC,KAAA,SAAS,MAAM,gBAAe,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;EAE9B,KAAA,QAAQ,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEjB,KAAA,YAAY,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAErB,KAAA,YAAY,OAAM;EAER,KAAA,OAAO,eAAe,KAAK,MAAK,KAAM,KAA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;AAa7F,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EAlB7B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAc,YACZ;GAAI,iBACC,wBAAwB;GAAM,MACzC;IAAE,MAAM;IAAc,qBAAqB;GAAiB;GAAE,UAC1D;GAA8F,QAAA,CAAA,8aAAA;EAAA,CAAA"}
@@ -0,0 +1,200 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, Injectable, computed, inject, signal } from "@angular/core";
3
+ import { AlertComponent } from "@forgeroute/ui/alert";
4
+ import { ButtonComponent, UiLabelsService } from "@forgeroute/ui/core";
5
+ var SnackbarService = class SnackbarService {
6
+ constructor() {
7
+ this._messages = signal([], ...ngDevMode ? [{ debugName: "_messages" }] : /* istanbul ignore next */ []);
8
+ this.nextId = 0;
9
+ this.timers = /* @__PURE__ */ new Map();
10
+ }
11
+ messages$() {
12
+ return [...this._messages()];
13
+ }
14
+ showSuccess(message, duration = 5e3) {
15
+ this.show(message, "success", duration);
16
+ }
17
+ showError(message, duration = 5e3) {
18
+ this.show(message, "error", duration);
19
+ }
20
+ showInfo(message, duration = 5e3, action) {
21
+ this.show(message, "info", duration, action);
22
+ }
23
+ show(message, type, duration, action) {
24
+ const id = this.nextId++;
25
+ this._messages.update((messages) => [...messages, {
26
+ id,
27
+ message,
28
+ type,
29
+ action
30
+ }]);
31
+ if (duration > 0) this.timers.set(id, setTimeout(() => this.dismiss(id), duration));
32
+ }
33
+ dismiss(id) {
34
+ const timer = this.timers.get(id);
35
+ if (timer) {
36
+ clearTimeout(timer);
37
+ this.timers.delete(id);
38
+ }
39
+ this._messages.update((messages) => messages.filter((m) => m.id !== id));
40
+ }
41
+ static {
42
+ this.ɵfac = i0.ɵɵngDeclareFactory({
43
+ minVersion: "12.0.0",
44
+ version: "22.2.2",
45
+ ngImport: i0,
46
+ type: SnackbarService,
47
+ deps: [],
48
+ target: i0.ɵɵFactoryTarget.Injectable
49
+ });
50
+ }
51
+ static {
52
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
53
+ minVersion: "12.0.0",
54
+ version: "22.2.2",
55
+ ngImport: i0,
56
+ type: SnackbarService,
57
+ providedIn: "root"
58
+ });
59
+ }
60
+ };
61
+ i0.ɵɵngDeclareClassMetadata({
62
+ minVersion: "12.0.0",
63
+ version: "22.2.2",
64
+ ngImport: i0,
65
+ type: SnackbarService,
66
+ decorators: [{
67
+ type: Injectable,
68
+ args: [{ providedIn: "root" }]
69
+ }]
70
+ });
71
+ var SnackbarComponent = class SnackbarComponent {
72
+ constructor() {
73
+ this.labels = inject(UiLabelsService);
74
+ this.service = inject(SnackbarService);
75
+ this.messages = computed(() => this.service.messages$(), ...ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []);
76
+ }
77
+ variant(m) {
78
+ return m.type === "error" ? "danger" : m.type;
79
+ }
80
+ dismiss(id) {
81
+ this.service.dismiss(id);
82
+ }
83
+ runAction(m, callback) {
84
+ callback();
85
+ this.service.dismiss(m.id);
86
+ }
87
+ static {
88
+ this.ɵfac = i0.ɵɵngDeclareFactory({
89
+ minVersion: "12.0.0",
90
+ version: "22.2.2",
91
+ ngImport: i0,
92
+ type: SnackbarComponent,
93
+ deps: [],
94
+ target: i0.ɵɵFactoryTarget.Component
95
+ });
96
+ }
97
+ static {
98
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
99
+ minVersion: "17.0.0",
100
+ version: "22.2.2",
101
+ type: SnackbarComponent,
102
+ isStandalone: true,
103
+ selector: "ui-snackbar",
104
+ ngImport: i0,
105
+ template: `
106
+ <div class="sb-stack" role="region" [attr.aria-label]="labels.t('snackbar.notifications')" aria-live="polite">
107
+ @for (m of messages(); track m.id) {
108
+ <ui-alert class="sb-item" [variant]="variant(m)" [dismissible]="true" [dismissAriaLabel]="labels.t('snackbar.dismissNotification')"
109
+ [attr.data-testid]="m.type + '-message'" (dismissed)="dismiss(m.id)">
110
+ <span class="sb-text">{{ m.message }}</span>
111
+ @if (m.action; as act) {
112
+ <ui-button variant="link" size="sm" data-testid="snackbar-action" (click)="runAction(m, act.callback)">{{ act.label }}</ui-button>
113
+ }
114
+ </ui-alert>
115
+ }
116
+ </div>
117
+ `,
118
+ isInline: true,
119
+ styles: [":host{display:contents}.sb-stack{position:fixed;top:16px;right:16px;z-index:9999;display:flex;flex-direction:column;gap:8px;width:20rem;max-width:calc(100vw - 32px);pointer-events:none}.sb-item{pointer-events:auto;box-shadow:0 8px 20px #0f172a2e;border-radius:8px;animation:sb-in .28s cubic-bezier(.16,1,.3,1)}.sb-text{min-width:0;overflow-wrap:anywhere}@keyframes sb-in{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:translate(0)}}@media(prefers-reduced-motion:reduce){.sb-item{animation:none}}\n"],
120
+ dependencies: [{
121
+ kind: "component",
122
+ type: AlertComponent,
123
+ selector: "ui-alert",
124
+ inputs: [
125
+ "variant",
126
+ "title",
127
+ "dismissible",
128
+ "dismissAriaLabel",
129
+ "quiet",
130
+ "compact",
131
+ "inline",
132
+ "fill"
133
+ ],
134
+ outputs: ["dismissed"]
135
+ }, {
136
+ kind: "component",
137
+ type: ButtonComponent,
138
+ selector: "ui-button",
139
+ inputs: [
140
+ "variant",
141
+ "routerLink",
142
+ "queryParams",
143
+ "fragment",
144
+ "state",
145
+ "href",
146
+ "target",
147
+ "rel",
148
+ "shortLabel",
149
+ "shortBelow",
150
+ "color",
151
+ "active",
152
+ "size",
153
+ "type",
154
+ "disabled",
155
+ "loading",
156
+ "fullWidth",
157
+ "ariaLabel",
158
+ "ariaExpanded",
159
+ "ariaPressed",
160
+ "ariaDescribedBy",
161
+ "modal-footer-left",
162
+ "modal-footer-right"
163
+ ]
164
+ }],
165
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
166
+ });
167
+ }
168
+ };
169
+ i0.ɵɵngDeclareClassMetadata({
170
+ minVersion: "12.0.0",
171
+ version: "22.2.2",
172
+ ngImport: i0,
173
+ type: SnackbarComponent,
174
+ decorators: [{
175
+ type: Component,
176
+ args: [{
177
+ selector: "ui-snackbar",
178
+ standalone: true,
179
+ changeDetection: ChangeDetectionStrategy.OnPush,
180
+ imports: [AlertComponent, ButtonComponent],
181
+ template: `
182
+ <div class="sb-stack" role="region" [attr.aria-label]="labels.t('snackbar.notifications')" aria-live="polite">
183
+ @for (m of messages(); track m.id) {
184
+ <ui-alert class="sb-item" [variant]="variant(m)" [dismissible]="true" [dismissAriaLabel]="labels.t('snackbar.dismissNotification')"
185
+ [attr.data-testid]="m.type + '-message'" (dismissed)="dismiss(m.id)">
186
+ <span class="sb-text">{{ m.message }}</span>
187
+ @if (m.action; as act) {
188
+ <ui-button variant="link" size="sm" data-testid="snackbar-action" (click)="runAction(m, act.callback)">{{ act.label }}</ui-button>
189
+ }
190
+ </ui-alert>
191
+ }
192
+ </div>
193
+ `,
194
+ styles: [":host{display:contents}.sb-stack{position:fixed;top:16px;right:16px;z-index:9999;display:flex;flex-direction:column;gap:8px;width:20rem;max-width:calc(100vw - 32px);pointer-events:none}.sb-item{pointer-events:auto;box-shadow:0 8px 20px #0f172a2e;border-radius:8px;animation:sb-in .28s cubic-bezier(.16,1,.3,1)}.sb-text{min-width:0;overflow-wrap:anywhere}@keyframes sb-in{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:translate(0)}}@media(prefers-reduced-motion:reduce){.sb-item{animation:none}}\n"]
195
+ }]
196
+ }]
197
+ });
198
+ export { SnackbarComponent, SnackbarService };
199
+
200
+ //# sourceMappingURL=forgeroute-ui-snackbar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgeroute-ui-snackbar.mjs","names":[],"sources":["../../../projects/forgeroute-ui/snackbar/src/lib/snackbar/snackbar.service.ts","../../../projects/forgeroute-ui/snackbar/src/lib/snackbar/snackbar.component.ts"],"sourcesContent":["import { Injectable, signal } from '@angular/core';\n\nexport type SnackbarType = 'success' | 'error' | 'info';\n\n/** An optional button inside a snackbar (e.g. \"View\"): clicking it runs `callback` and closes the snackbar. */\nexport interface SnackbarAction { label: string; callback: () => void }\n\nexport interface SnackbarMessage {\n id: number;\n message: string;\n type: SnackbarType;\n action?: SnackbarAction;\n}\n\n/**\n * Stacked, top-right notifications: several can be on screen at once, each closes itself after `duration` ms (0 = stays until closed)\n * and can carry one action button. Render them once, near the root of the app, with `<ui-snackbar />`.\n * (`ToastService` / `<ui-toast>` is the single bottom-centre message; this is the stack with actions.)\n */\n@Injectable({ providedIn: 'root' })\nexport class SnackbarService {\n private readonly _messages = signal<SnackbarMessage[]>([]);\n private nextId = 0;\n private readonly timers = new Map<number, ReturnType<typeof setTimeout>>();\n\n /** The messages on screen, oldest first (a copy). */\n messages$(): SnackbarMessage[] {\n return [...this._messages()];\n }\n\n showSuccess(message: string, duration = 5000): void {\n this.show(message, 'success', duration);\n }\n\n showError(message: string, duration = 5000): void {\n this.show(message, 'error', duration);\n }\n\n showInfo(message: string, duration = 5000, action?: SnackbarAction): void {\n this.show(message, 'info', duration, action);\n }\n\n private show(message: string, type: SnackbarType, duration: number, action?: SnackbarAction): void {\n const id = this.nextId++;\n this._messages.update(messages => [...messages, { id, message, type, action }]);\n if (duration > 0) this.timers.set(id, setTimeout(() => this.dismiss(id), duration));\n }\n\n dismiss(id: number): void {\n const timer = this.timers.get(id);\n if (timer) { clearTimeout(timer); this.timers.delete(id); }\n this._messages.update(messages => messages.filter(m => m.id !== id));\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';\nimport { AlertComponent } from '@forgeroute/ui/alert';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { SnackbarMessage, SnackbarService } from './snackbar.service';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/**\n * The on-screen stack of `SnackbarService` messages (top-right, above the page). Put one `<ui-snackbar />` near the root of the app.\n * Each message is a library `ui-alert` (green success, red error, blue info) with a close button and, when the message has one, an\n * action button. Test ids: `success-message` / `error-message` / `info-message` on each message, `snackbar-action` on the action button.\n */\n@Component({\n selector: 'ui-snackbar',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [AlertComponent, ButtonComponent],\n template: `\n <div class=\"sb-stack\" role=\"region\" [attr.aria-label]=\"labels.t('snackbar.notifications')\" aria-live=\"polite\">\n @for (m of messages(); track m.id) {\n <ui-alert class=\"sb-item\" [variant]=\"variant(m)\" [dismissible]=\"true\" [dismissAriaLabel]=\"labels.t('snackbar.dismissNotification')\"\n [attr.data-testid]=\"m.type + '-message'\" (dismissed)=\"dismiss(m.id)\">\n <span class=\"sb-text\">{{ m.message }}</span>\n @if (m.action; as act) {\n <ui-button variant=\"link\" size=\"sm\" data-testid=\"snackbar-action\" (click)=\"runAction(m, act.callback)\">{{ act.label }}</ui-button>\n }\n </ui-alert>\n }\n </div>\n `,\n styles: [`\n :host { display: contents; }\n .sb-stack {\n position: fixed; top: 16px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px;\n width: 20rem; max-width: calc(100vw - 32px); pointer-events: none;\n }\n .sb-item { pointer-events: auto; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18); border-radius: 8px; animation: sb-in 280ms cubic-bezier(0.16, 1, 0.3, 1); }\n .sb-text { min-width: 0; overflow-wrap: anywhere; }\n @keyframes sb-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }\n @media (prefers-reduced-motion: reduce) { .sb-item { animation: none; } }\n `],\n})\nexport class SnackbarComponent {\n protected readonly labels = inject(UiLabelsService);\n private readonly service = inject(SnackbarService);\n /** The messages on screen. */\n protected readonly messages = computed(() => this.service.messages$());\n\n protected variant(m: SnackbarMessage): 'success' | 'danger' | 'info' {\n return m.type === 'error' ? 'danger' : m.type;\n }\n\n protected dismiss(id: number): void {\n this.service.dismiss(id);\n }\n\n /** Runs the action, then closes the message. */\n protected runAction(m: SnackbarMessage, callback: () => void): void {\n callback();\n this.service.dismiss(m.id);\n }\n}\n"],"mappings":";;;;AAo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A;KAAA;KAAA;KAAA;KAAA;KAAA;IAAA;GAAA,CAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AA0B9B,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAiB,YAAA,CAAA;EA9B7B,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAa,YACX;GAAI,iBACC,wBAAwB;GAAM,SACtC,CAAC,gBAAgB,eAAe;GAAC,UAChC;;;;;;;;;;;;;GAYT,QAAA,CAAA,kgBAAA;EAAA,CAAA"}
@@ -1,10 +1,24 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, InjectionToken, Injector, PLATFORM_ID, ViewEncapsulation, afterNextRender, computed, effect, forwardRef, inject, input, model, output, signal, untracked, viewChild } from "@angular/core";
3
- import { AlertComponent, BadgeComponent, ButtonComponent, CheckboxComponent, DetailCardComponent, HintComponent, KpiCardComponent, LiveRegionComponent, ModalComponent, PAYMENT_AUTH_TIMEOUT_MS, PAYMENT_HOST_SILENCE_MS, PAYMENT_METHOD_PLUGIN, PAYMENT_READINESS_EVERY_MS, PAYMENT_READINESS_TIMEOUT_MS, PAYMENT_REQUEST_TIMEOUT_MS, PAYMENT_STATUS_CHECK_TIMEOUT_MS, PAYMENT_STATUS_FAIL_GRACE_MS, PAYMENT_STATUS_POLL_MAX_MS, PAYMENT_STATUS_POLL_MS, PaymentAttemptStatusComponent, PaymentMethodPlugin, PillTabsComponent, SkeletonComponent, StackComponent, TextComponent, TextInputComponent, UiLabelsService, callHost, classifyHostError, createPaymentProtection, formatCurrency, hostErrorMessage, isAwaitingVerificationError, isDarkPage, isFinalPaymentRefusal, paymentErrorLabelKey, uiText, warnQueuedPayment, wasQueuedOffline } from "@forgeroute/ui";
3
+ import { ButtonComponent, ModalComponent, UiLabelsService, uiText } from "@forgeroute/ui/core";
4
+ import { formatCurrency, isDarkPage } from "@forgeroute/ui/utils";
4
5
  import { DOCUMENT, NgTemplateOutlet, isPlatformBrowser } from "@angular/common";
5
6
  import * as i1 from "@angular/forms";
6
7
  import { FormsModule } from "@angular/forms";
8
+ import { AlertComponent } from "@forgeroute/ui/alert";
9
+ import { CheckboxComponent } from "@forgeroute/ui/checkbox";
10
+ import { LiveRegionComponent } from "@forgeroute/ui/live-region";
11
+ import { PAYMENT_AUTH_TIMEOUT_MS, PAYMENT_HOST_SILENCE_MS, PAYMENT_METHOD_PLUGIN, PAYMENT_READINESS_EVERY_MS, PAYMENT_READINESS_TIMEOUT_MS, PAYMENT_REQUEST_TIMEOUT_MS, PAYMENT_STATUS_CHECK_TIMEOUT_MS, PAYMENT_STATUS_FAIL_GRACE_MS, PAYMENT_STATUS_POLL_MAX_MS, PAYMENT_STATUS_POLL_MS, PaymentAttemptStatusComponent, PaymentMethodPlugin, callHost, classifyHostError, createPaymentProtection, hostErrorMessage, isAwaitingVerificationError, isFinalPaymentRefusal, paymentErrorLabelKey, warnQueuedPayment, wasQueuedOffline } from "@forgeroute/ui/payments";
12
+ import { PillTabsComponent } from "@forgeroute/ui/pill-tabs";
13
+ import { SkeletonComponent } from "@forgeroute/ui/skeleton";
14
+ import { TextComponent } from "@forgeroute/ui/text";
15
+ import { TextInputComponent } from "@forgeroute/ui/text-input";
7
16
  import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
17
+ import { BadgeComponent } from "@forgeroute/ui/badge";
18
+ import { DetailCardComponent } from "@forgeroute/ui/detail-card";
19
+ import { StackComponent } from "@forgeroute/ui/stack";
20
+ import { HintComponent } from "@forgeroute/ui/hint";
21
+ import { KpiCardComponent } from "@forgeroute/ui/kpi-card";
8
22
  const SQUARE_SDK_URL = "https://web.squarecdn.com/v1/square.js";
9
23
  const SQUARE_SANDBOX_SDK_URL = "https://sandbox.web.squarecdn.com/v1/square.js";
10
24
  const SQUARE_LOAD_TIMEOUT_MS = 2e4;
@@ -3201,11 +3215,11 @@ var PaymentSquareBodyComponent = class PaymentSquareBodyComponent {
3201
3215
  this.ctx().setBusy(false);
3202
3216
  }
3203
3217
  };
3204
- effect(() => {
3218
+ effect((onCleanup) => {
3205
3219
  const config = this.config();
3206
3220
  untracked(() => config.attachControls(controls));
3221
+ onCleanup(() => config.detachControls(controls));
3207
3222
  });
3208
- inject(DestroyRef).onDestroy(() => this.config().detachControls(controls));
3209
3223
  effect(() => {
3210
3224
  const amount = this.amountValue();
3211
3225
  if (amount != null) untracked(() => this.lastAmount.set(amount));