@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,624 @@
1
+ import { InjectionToken, WritableSignal } from "@angular/core";
2
+ export type SortDir = 'asc' | 'desc';
3
+ /**
4
+ * Shared signal provided at the DataTableComponent level.
5
+ * Holds the ID of the currently-open dropdown. When any dropdown
6
+ * opens it sets this to its own ID — all others react and close.
7
+ */
8
+ export declare const DROPDOWN_GROUP: InjectionToken<WritableSignal<string>>;
9
+ export type BadgeVariant = 'green' | 'blue' | 'red' | 'amber' | 'purple' | 'gray' | 'teal' | 'pink' | 'indigo' | 'orange' | 'cyan' | 'lime' | 'rose' | 'slate' | 'emerald' | 'sky' | 'fuchsia' | 'yellow' | 'violet' | 'stone' | 'mint' | 'steel' | 'bronze' | 'plum' | 'sage' | 'coral' | 'sand' | 'ocean' | 'pewter' | 'gold' | 'jade' | 'sienna' | 'mauve' | 'walnut' | 'navy';
10
+ export declare const BADGE_VARIANT_STYLES: Record<BadgeVariant, {
11
+ bg: string;
12
+ color: string;
13
+ }>;
14
+ /**
15
+ * Global semantic map — same label always gets the same color across every
16
+ * table in the app, regardless of which page or column it appears in. The keys are the ENGLISH labels (the exported constant stays English for API
17
+ * compatibility); Spanish labels are matched by `SEMANTIC_BADGE_MAP_ES` through `semanticBadgeVariant()`, which the badge and the data table use.
18
+ */
19
+ export declare const SEMANTIC_BADGE_MAP: Readonly<Record<string, BadgeVariant>>;
20
+ /**
21
+ * Spanish aliases of the labels in `SEMANTIC_BADGE_MAP`: a Spanish status keeps the colour its English twin has ("Activo" is green like "Active", "Pagado"
22
+ * green like "Paid"), so the same meaning has the same colour in either language. Looked up by `semanticBadgeVariant` after the exact English match.
23
+ */
24
+ export declare const SEMANTIC_BADGE_MAP_ES: Readonly<Record<string, BadgeVariant>>;
25
+ /**
26
+ * The semantic colour of a label, or `undefined` when it has none: the exact English entry of `SEMANTIC_BADGE_MAP` first, then - only while the app's
27
+ * active locale is Spanish (the Spanish dictionary or `setLocale('es-..')`) - the Spanish alias, ignoring case and accents ("ACTIVO", "sí" and "si" are
28
+ * all green). An English app never reaches the Spanish table, so an English label such as "Media" keeps its hash colour exactly as before.
29
+ */
30
+ export declare function semanticBadgeVariant(label: string | null | undefined, locale?: string): BadgeVariant | undefined;
31
+ /**
32
+ * Deterministic color from a string value — same value always gets the
33
+ * same color, and adjacent values in the palette are visually distinct.
34
+ */
35
+ export declare function autoVariant(value: string): BadgeVariant;
36
+ export interface BadgeConfig {
37
+ label: string;
38
+ variant: BadgeVariant;
39
+ }
40
+ export interface ToolbarAction {
41
+ type: string;
42
+ label: string;
43
+ /** SVG path data for an icon (optional) */
44
+ icon?: string;
45
+ /** 'primary' = blue standalone button, 'secondary' = gray outlined standalone button, omit = inside More Actions dropdown */
46
+ variant?: 'primary' | 'secondary';
47
+ /** Optional count badge shown on the button */
48
+ badge?: number;
49
+ /** Hide this action entirely */
50
+ hidden?: boolean;
51
+ /** Documentation of intent: marks a mutating action ("Add …", bulk mutations). It does not change behavior - the table hides
52
+ * EVERY page-defined toolbar action for any `permission` other than 'full', unless it is marked `allowReadOnly`. */
53
+ requiresFull?: boolean;
54
+ /**
55
+ * Keep this action when the table is empty and unfiltered. By default only `variant: 'primary'` buttons survive that
56
+ * state; set this on secondary buttons and More Actions items that must stay reachable on an empty table (e.g. an
57
+ * "Import" or "Invite" that is how the first record gets created). A kept More Actions item brings the More Actions
58
+ * menu back (with its usual items).
59
+ */
60
+ keepWhenEmpty?: boolean;
61
+ /**
62
+ * Keep this action for a read-only table (`permission` other than 'full'). By default a read-only table drops every
63
+ * page-defined toolbar action and keeps only Export; set this on a PURE READ - e.g. a "Board View" / "List View" switch
64
+ * that changes what is shown but writes nothing. Never set it on an action that creates, changes or deletes a record.
65
+ * On an empty, unfiltered table only primary buttons survive: add `keepWhenEmpty` as well to keep a view switch there.
66
+ */
67
+ allowReadOnly?: boolean;
68
+ /**
69
+ * Standalone toggle buttons (e.g. "Assigned to Me"): true / false renders `aria-pressed` so screen readers announce
70
+ * the on / off state. Leave unset for ordinary buttons (no attribute).
71
+ */
72
+ pressed?: boolean;
73
+ /**
74
+ * Optional confirmation before the click is reported (library source 2026-11-05, not yet published). Set it ONLY on an action that needs a
75
+ * confirm dialog (pause / run now / send to all): the table shows its confirm modal first, emits `(tableButtonClick)` only when the user
76
+ * confirms, and emits nothing on Cancel / Escape / backdrop. An action without `confirm` behaves exactly as before. Not used for the
77
+ * table's own Import and Export. Same copy fields as a row action's `modal` (`message` may be a function read at click time, for text that
78
+ * depends on the host's current state); say what happens before -> after and what is NOT affected.
79
+ */
80
+ confirm?: ToolbarConfirm;
81
+ }
82
+ /** Confirm dialog copy of a toolbar action (see `ToolbarAction.confirm`). */
83
+ export interface ToolbarConfirm {
84
+ title: string;
85
+ message: string | (() => string);
86
+ confirmLabel?: string;
87
+ cancelLabel?: string;
88
+ variant?: 'danger' | 'primary' | 'warning';
89
+ details?: string[];
90
+ }
91
+ export interface ConfirmConfig {
92
+ title: string;
93
+ /** Message text. In actionsFn context item is already in scope so a plain string is fine.
94
+ * Pass a function when defining actions as a static array outside actionsFn. */
95
+ message: string | ((item: any) => string);
96
+ confirmLabel?: string;
97
+ cancelLabel?: string;
98
+ variant?: 'danger' | 'primary' | 'warning';
99
+ /** Bullet list shown under the message (consequences, what is NOT affected, undoable or not). Plain text only (never HTML).
100
+ * Rendered by the confirm dialog (`data-testid="confirm-details"`, aria-label "What will happen") and by the built-in row delete. */
101
+ details?: string[];
102
+ }
103
+ export interface RowAction {
104
+ type: string;
105
+ label: string;
106
+ /** SVG path data string (the <path> or <line> etc. content only, no outer <svg>) */
107
+ icon?: string;
108
+ variant?: 'default' | 'danger';
109
+ hidden?: (item: any) => boolean;
110
+ disabled?: (item: any) => boolean;
111
+ /** How the table handles this action when clicked.
112
+ * 'modal' — table shows a built-in confirm modal; onAction is called only if confirmed.
113
+ * 'panel' — table emits (panelActionClick); host component opens the right panel or form modal.
114
+ * Omit — onAction is called directly (navigate, toggle, call, etc.) */
115
+ opens?: 'modal' | 'panel';
116
+ /** Required when opens === 'modal'. Drives the confirm dialog shown by the table. */
117
+ modal?: ConfirmConfig;
118
+ /** Documentation of intent: marks a mutating action (edit, delete, ...). It does not change behavior - for any `permission`
119
+ * other than 'full' the table offers only View and actions marked `allowReadOnly`, with or without this flag.
120
+ * The built-in `type: 'delete'` action is never offered to read-only users. */
121
+ requiresFull?: boolean;
122
+ /** Keep this action for read-only users too (download, preview: reads that change nothing). Without it a read-only table offers only
123
+ * View. Never applies to the built-in delete, and the table still drops the Actions column when no row has any visible action. */
124
+ allowReadOnly?: boolean;
125
+ }
126
+ /** Page-level permission passed to `<ui-data-table [permission]>`. Anything other than 'full' is read-only
127
+ * (apps use values like 'read-only' / 'hidden'). */
128
+ export type TablePermission = 'full' | 'read' | 'read-only' | 'none' | 'hidden';
129
+ export type CellType = 'text' | 'badge' | 'date' | 'phone' | 'number' | 'avatar-name' | 'days-ago' | 'progress' | 'tags' | 'image' | 'link' | 'actions';
130
+ /**
131
+ * Where a `cellType: 'link'` cell points. Return a plain string from `linkFn` as shorthand for `{ href }`.
132
+ *
133
+ * - `routerLink` (+ `queryParams`) is an in-app route: the anchor gets the real URL as its `href` (so right-click,
134
+ * middle-click, ctrl/cmd-click, "open in new tab" and "copy link address" all work) and a plain left click
135
+ * navigates through the Angular `Router` without a page reload. `routerLink` wins when `href` is also set.
136
+ * - `href` accepts ONLY `mailto:`, `tel:`, `http:`, `https:` and root-relative paths (`/cases/12`). Anything else
137
+ * (`javascript:`, `data:`, `//host`, empty, control characters) is never rendered as an href: the cell shows plain
138
+ * text. A root-relative `href` is a normal link (full page load); use `routerLink` for in-app navigation.
139
+ * - `target: '_blank'` (default `'_self'`) adds `rel="noopener noreferrer"` and a "(opens in a new tab)" screen-reader
140
+ * hint. `http(s):` hrefs always get the same `rel`.
141
+ * - `label` is the link text when the cell has no text of its own (`render` and `item[key]` are empty).
142
+ * - `ariaLabel` replaces the link's accessible name (default: its text).
143
+ * - `download` adds the `download` attribute.
144
+ */
145
+ export interface LinkTarget {
146
+ href?: string;
147
+ routerLink?: string | readonly any[];
148
+ queryParams?: Record<string, any>;
149
+ target?: '_self' | '_blank';
150
+ label?: string;
151
+ ariaLabel?: string;
152
+ download?: boolean;
153
+ }
154
+ /** Payload of `(linkClick)`: a link cell's anchor was activated by a click (the row click is NOT also emitted). */
155
+ export interface LinkClickEvent<T = any> {
156
+ item: T;
157
+ column: ColumnDef;
158
+ /** The anchor's href (null only for a routerLink that could not be resolved, which renders no anchor anyway). */
159
+ href: string | null;
160
+ }
161
+ export interface ColumnDef {
162
+ key: string;
163
+ label: string;
164
+ sortable?: boolean;
165
+ defaultVisible?: boolean;
166
+ /**
167
+ * Wire name of this column's FILTER, when it must differ from `key`. Defaults to `key` (unset = unchanged behaviour).
168
+ * Replaces `key` only for: the column-filter query param on rows and export requests, the key read from the
169
+ * `/filter-counts` response for this column's options/counts (also the bulk "Change <column>" options), and the key
170
+ * stored in saved views (a view saved under the plain `key` still restores). Everything else stays on `key`:
171
+ * sort (`sort=<key>`), cell values, visibility, `lockedColumn`, `searchFields`, `bulkUpdateOptions` and the
172
+ * `/bulk/<field>` request body. It also names the header filter and the phone-card filter chips' request param. It must not equal a reserved table param (`page`, `size`, `search`, `searchFields`, `sort`, `direction`, `filter`) nor an `Object.prototype` member name such as `constructor` — there is no runtime guard. Example: `{ key: 'direction', filterParam: 'messageDirection' }` keeps the filter
173
+ * from colliding with the table's own `direction=asc|desc` sort param.
174
+ */
175
+ filterParam?: string;
176
+ /** If true, this column's label appears in the search input placeholder when the column is visible. */
177
+ searchable?: boolean;
178
+ /** Values a bulk "Change <label>" may set. When omitted the options come from /filter-counts.
179
+ * Use it when only some values are user-settable or when a valid value may currently have no rows. */
180
+ bulkOptions?: string[];
181
+ /** Fixed column width (any CSS length, e.g. '140px'). Applied as width, min-width and max-width; cell text longer than
182
+ * it is cut with an ellipsis. Omit for an automatic width. Not applied to the Actions column's cell clipping. */
183
+ width?: string;
184
+ align?: 'left' | 'right' | 'center';
185
+ headerAlign?: 'left' | 'right' | 'center';
186
+ /** How to render cell content. Defaults to 'text'. */
187
+ cellType?: CellType;
188
+ /**
189
+ * Maps a cell value (or full item) to a { label, variant } config.
190
+ * When omitted, auto-color is applied using the value string.
191
+ * Return null to render a plain '—' instead of a badge (e.g. for an empty value).
192
+ */
193
+ badgeFn?: (value: any, item?: any) => BadgeConfig | null;
194
+ /**
195
+ * Puts a gold `<ui-star>` to the LEFT of the cell's text when it returns a non-empty string; that string is the star's tooltip
196
+ * (hover / keyboard focus) and accessible name. Return null / undefined / '' for no star. The star is always gold.
197
+ * Applies to plain text cells (and the title of the phone card); the row's accessible name is unchanged (`nameFn` / `render`).
198
+ * Example: `{ key: 'name', label: 'Name', starFn: (doc) => doc.isAuthForm ? 'Authorization Form' : null }`
199
+ */
200
+ starFn?: (item: any) => string | null | undefined;
201
+ /**
202
+ * Library source 2026-11-05, not yet published. Draws a small decorative icon (16px, `aria-hidden`, currentColor, on the first text line, never shrinks)
203
+ * to the LEFT of the cell text, in desktop cells and in the phone card (title, badge pills, detail rows). Returns a `<ui-icon>` key (see `iconPath()`) or a
204
+ * raw 24x24 stroke SVG path (drawing commands and numbers only, same rule as ui-radio's `icon`); null / undefined / '' / anything else draws nothing.
205
+ * Applies to text, badge, date, phone and number cells; never to avatar-name, link, tags, progress, image, days-ago or actions. The cell's text and the row's
206
+ * accessible name are unchanged (see `iconLabelFn` for meaningful icons). Placed before a `starFn` star.
207
+ * Example: `{ key: 'name', label: 'Name', iconFn: (r) => r.kind === 'rental' ? 'wrench' : 'cup' }`
208
+ */
209
+ iconFn?: (item: any) => string | null | undefined;
210
+ /**
211
+ * Library source 2026-11-05, not yet published. Accessible text for a MEANINGFUL `iconFn` icon: rendered as visually hidden text right after the icon
212
+ * (the icon stays `aria-hidden`). Default (absent / null / '') = the icon is decorative. Ignored when no icon is drawn for the row.
213
+ */
214
+ iconLabelFn?: (item: any) => string | null | undefined;
215
+ /**
216
+ * Footer text for this column, from the table's `totalsEndpoint` response (shown only while the table has rows and the totals loaded).
217
+ * Return null / undefined / '' for an empty footer cell. `cellType: 'number'` columns are right-aligned like their body cells.
218
+ * The table's `totalsLabel` goes in the footer cell of the first visible column; when that column has a `footerFn` too, the label is
219
+ * kept as visually hidden text before the value ("Total: $1,200") so it is still announced once.
220
+ * Example: `{ key: 'amount', label: 'Amount', cellType: 'number', footerFn: t => t['amount'] == null ? null : '$' + t['amount'] }`
221
+ */
222
+ footerFn?: (totals: Record<string, string | number | null>) => string | null | undefined;
223
+ /** Date format string. Default: 'MMM d, y' */
224
+ dateFormat?: string;
225
+ /** Returns the display name for the row. Default: item[col.key] */
226
+ nameFn?: (item: any) => string;
227
+ /** Returns initials for the avatar. Default: first char of nameFn result */
228
+ initialsFn?: (item: any) => string;
229
+ /** Key in item holding the days-since count. Defaults to col.key. */
230
+ daysKey?: string;
231
+ /** Days after which the cell is styled as overdue. Default: 30 */
232
+ overdueThreshold?: number;
233
+ /**
234
+ * Maps a row to a progress bar. Return null to render a plain '—' (e.g. nothing to track).
235
+ * `label` is the text beside the bar (e.g. "3/5"); `tooltip` is the hover text. `ariaLabel` is the bar's accessible name (e.g. the row's name + " cap progress"); leave it out and the bar is named by its `label` text — which, with only "80%" to go on, tells a screen-reader user nothing about WHICH row it belongs to, so set it whenever several rows show a bar. Leave `variant` out and the bar colors itself by completion (red / amber / blue / green).
236
+ */
237
+ progressFn?: (item: any) => {
238
+ value: number;
239
+ max: number;
240
+ label?: string;
241
+ variant?: 'blue' | 'green' | 'amber' | 'red' | 'slate';
242
+ tooltip?: string;
243
+ ariaLabel?: string;
244
+ } | null;
245
+ /** Key in item holding the tags array. Defaults to col.key.
246
+ * Expected shape: { name: string; variant?: BadgeVariant; color?: string; colorName?: string }[]. `colorName` is the colour (or state) in words, e.g. 'red' or 'error': it is read by screen readers after the tag name (hidden visually) so the colour is never the only signal; omit it and nothing changes. `color` is a custom hex colour (`#rgb` / `#rrggbb`,
247
+ * e.g. the colour a user picked for the tag): it becomes the chip background with dark or white text for contrast and wins over `variant`;
248
+ * an invalid value is ignored. */
249
+ tagsKey?: string;
250
+ /**
251
+ * `cellType: 'link'` — returns where the cell points for a row (`value` is `item[key]`), or null / undefined /
252
+ * '' for no link (the cell then shows plain text). A string is shorthand for `{ href }`. See {@link LinkTarget}
253
+ * for the contract and the allowed schemes. Text shown: `render(item)` if set, else `item[key]`, else the
254
+ * target's `label`, else '—'. The text is always escaped. A throwing `linkFn` renders plain text.
255
+ * Sorting, search, filters and export are independent of the link (export uses the host's `exportRow`).
256
+ * Clicking or keying the anchor never emits `rowClick`; it emits `(linkClick)`.
257
+ */
258
+ linkFn?: (item: any, value: any) => LinkTarget | string | null | undefined;
259
+ /** Returns the image URL for the row. A falsy value (null / undefined / '') shows the placeholder icon. */
260
+ imageFn?: (item: any) => string | null | undefined;
261
+ /** Focal point (percent, 50/50 = centered) of the cropped image, applied as CSS object-position. */
262
+ imagePositionFn?: (item: any) => {
263
+ x: number | null | undefined;
264
+ y: number | null | undefined;
265
+ } | null | undefined;
266
+ /** Alt text for the row's image. When omitted the image is decorative (`alt=""`). */
267
+ imageAlt?: (item: any) => string;
268
+ /** 'circle' (default) or 'rounded' (3:2 rounded rectangle). */
269
+ imageShape?: 'circle' | 'rounded';
270
+ /** 'md' (default) or 'sm'. circle: 40px / 28px; rounded: 48x32 / 36x24. */
271
+ imageSize?: 'sm' | 'md';
272
+ /** Neutral icon shown when there is no URL or the image fails to load. Default: 'image'. */
273
+ imagePlaceholder?: 'person' | 'image';
274
+ /** Returns the list of actions for a given row item. */
275
+ actionsFn?: (item: any) => RowAction[];
276
+ /** Called when the user clicks an action. */
277
+ onAction?: (type: string, item: any) => void;
278
+ /** Custom plain-text render function. Only used for 'text' type. */
279
+ render?: (item: any) => string;
280
+ /** Hide this column in the card-view detail rows on mobile (≤640px).
281
+ * The title (avatar-name) and badge columns are always shown. */
282
+ mobileHidden?: boolean;
283
+ }
284
+ export interface QuickFilterTab {
285
+ value: string;
286
+ label: string;
287
+ /** When true, the tab is shown as informational only and cannot be clicked. */
288
+ disabled?: boolean;
289
+ }
290
+ export interface FilterOption {
291
+ value: string;
292
+ label: string;
293
+ color?: string;
294
+ count?: number;
295
+ }
296
+ export interface SavedView {
297
+ id: string;
298
+ name: string;
299
+ isSystem?: boolean;
300
+ /** Active quick-filter tab value at time of save */
301
+ quickFilter?: string | null;
302
+ /** Active sort column key at time of save */
303
+ sortField?: string | null;
304
+ /** Sort direction at time of save */
305
+ sortDir?: string | null;
306
+ /** Visible column keys at time of save (empty = use defaultVisible) */
307
+ visibleColumns?: string[];
308
+ /**
309
+ * Active column filters at time of save: column key → comma-joined selected values (the same wire format the
310
+ * table sends as query params). `undefined`/`null` (views saved before this existed, or a backend that doesn't
311
+ * store it) leaves the current column filters untouched on load; `{}` clears them.
312
+ */
313
+ columnFilters?: Record<string, string> | null;
314
+ /**
315
+ * Active numeric range filters at save time (only tables with `rangeFilters`): column key -> `{ min, max }` (a bound is a number or
316
+ * absent). Written only when a range is set. `undefined` / `null` (views saved before ranges existed, or a backend that doesn't store
317
+ * it) leaves the current ranges untouched on load; `{}` clears them.
318
+ */
319
+ rangeFilters?: Record<string, {
320
+ min?: number | null;
321
+ max?: number | null;
322
+ }> | null;
323
+ }
324
+ /**
325
+ * One `<ui-data-table [rangeFilters]>` entry: gives the visible column `key` a numeric Min / Max filter (same funnel icon and popover as
326
+ * the value-list filter). Opt-in at the TABLE: a column that is not listed (or is hidden) has no range filter, and an empty list changes
327
+ * nothing. When applied, the table sends `<minParam>=<n>` and `<maxParam>=<n>` (a bound that is empty is omitted) on the rows, export and
328
+ * totals requests (not on /counts or /filter-counts, like every column filter); the BACKEND does the filtering.
329
+ *
330
+ * readonly rangeFilters: RangeFilterConfig[] = [{ key: 'rentableSf', minParam: 'rentableSfMin', maxParam: 'rentableSfMax', min: 0, step: 100, format: 'number' }];
331
+ */
332
+ export interface RangeFilterConfig {
333
+ /** Key of a column of the table. */
334
+ key: string;
335
+ /** Query param for the lower bound. Default `<key>Min`. */
336
+ minParam?: string;
337
+ /** Query param for the upper bound. Default `<key>Max`. */
338
+ maxParam?: string;
339
+ /** Lowest value the user may enter (default 0, so negatives are refused; pass a negative number to allow them). */
340
+ min?: number;
341
+ /** Highest value the user may enter (default: no limit). */
342
+ max?: number;
343
+ /** Step of the number fields; also sets the decimals allowed (step 0.01 = 2 decimals, whole-number steps = whole numbers). Default 1. */
344
+ step?: number;
345
+ /** How bounds are written in the chip / active label: plain number (default), US dollars or a percent. Values sent are always plain numbers. */
346
+ format?: 'number' | 'currency' | 'percent';
347
+ /** Text appended to a bound in the label when `format` is 'number' (e.g. 'SF'). */
348
+ unit?: string;
349
+ }
350
+ /**
351
+ * Declares a bulk action available in the table's selection bar.
352
+ * Options for select-based actions are derived automatically from the table's
353
+ * column configuration (columnFilters → quickFilterTabs → filterCounts → distinct values).
354
+ */
355
+ /**
356
+ * One `bulkUpdateOptions` entry:
357
+ * - `'delete'` — the built-in bulk delete;
358
+ * - a column key (e.g. `'status'`) — "Change <column label>" with options from /filter-counts;
359
+ * - `{ field, exclude }` — the same, minus values users can't set by hand (e.g. a status only the
360
+ * system sets). Excluded values are left out of the bulk select only — the column filter, quick-filter
361
+ * tabs and counts still show them. Matching ignores case, spaces, dashes and underscores.
362
+ *
363
+ * readonly bulkUpdateOptions: BulkUpdateOption[] = [{ field: 'status', exclude: ['EXPIRED'] }, 'delete'];
364
+ * - `{ field, allowedFrom }` — the status workflow: a map of TARGET value -> the values a row may currently
365
+ * have to move to it, e.g. `{ SENT: ['DRAFT'], VOIDED: ['DRAFT', 'SENT'] }`. The bulk select then offers only
366
+ * targets that at least one selected row can legally move to (a target with no entry is not selectable), and rows
367
+ * whose current value is not in the target's list are skipped (counted, never sent). Without `allowedFrom` every
368
+ * row can move to any value it does not already have. Combine with `exclude` freely (exact, case-sensitive values).
369
+ *
370
+ * { field: 'status', allowedFrom: { SENT: ['DRAFT'], VOIDED: ['DRAFT', 'SENT'] } }
371
+ */
372
+ export type BulkUpdateOption<T = any> = string | {
373
+ field: string;
374
+ /**
375
+ * Field changes (`{ field, label }`): the bulk bar button text instead of "Change <column label>", e.g. `{ field: 'state', label: 'Archive / Restore' }`.
376
+ * It is also the inline select's accessible name, the default confirm's title and confirm button, and the default confirm message reads
377
+ * "<label>: <option> for N items?" (instead of "Change <column> to <option> for N items?"). Host `confirm` copy still wins; its
378
+ * `ctx.columnLabel` stays the column's label. Trimmed; blank = ignored. Ignored for the reserved `delete` key. Omit it and nothing changes.
379
+ * Direct actions (`action: true`): the bar button text, default confirm title and confirm button (required in practice; trimmed,
380
+ * blank = the key split on `_`, `-` and camelCase with only the first word capitalised: 'resend' -> 'Resend', 'send_reminder' / 'sendReminder' -> 'Send reminder'); `ctx.columnLabel` is this label.
381
+ *
382
+ * { field: 'state', label: 'Archive / Restore' }
383
+ */
384
+ label?: string;
385
+ exclude?: string[];
386
+ allowedFrom?: Record<string, string[]>;
387
+ /**
388
+ * Host-written confirm copy (see `BulkConfirmFn`): one function for every target value, or a map target value -> function
389
+ * (a target without an entry keeps the library's default wording). For the reserved delete key use
390
+ * `{ field: 'delete', confirm }`. Omit it and the confirm keeps today's default wording.
391
+ */
392
+ confirm?: BulkConfirmFn<T> | Record<string, BulkConfirmFn<T>>;
393
+ /**
394
+ * Bulk Delete only (`{ field: 'delete', deletable }`): true when the server will accept deleting this row. Keep it identical
395
+ * to the backend rule. Only deletable rows are counted in the confirm, sent to `/bulk/delete` and shown as deleted; the others
396
+ * are skipped ("N selected rows can't be deleted and will be skipped."). The Delete button is disabled (with a reason) when
397
+ * no selected row is deletable. Omit it and every selected row is sent, as before.
398
+ *
399
+ * { field: 'delete', deletable: (row: Invoice) => row.status === 'DRAFT' }
400
+ */
401
+ deletable?: (row: T) => boolean;
402
+ /**
403
+ * Field changes (`{ field, canChange }`): true when the server will accept moving THIS row to `target` (a value the select offers).
404
+ * For rules the field values alone can't express, e.g. a draft can only be sent when it has a document and a recipient. Keep it
405
+ * identical to the backend rule. Rows it refuses are skipped like rows `allowedFrom` refuses ("N selected rows can't be changed to X
406
+ * and will be skipped." / `ctx.skippedBlocked` + `ctx.skippedRows` for host `confirm` copy), are never sent, and a target is offered
407
+ * only while some selected row can move to it. It runs after `allowedFrom` and only sees rows on the loaded page. Omit it and
408
+ * nothing changes.
409
+ *
410
+ * { field: 'status', allowedFrom: { SENT: ['DRAFT'] }, canChange: (row, target) => target !== 'SENT' || canSend(row) }
411
+ */
412
+ canChange?: (row: T, target: string) => boolean;
413
+ /**
414
+ * Field changes (`{ field, canApply }`): a rule on the WHOLE selection, in addition to the per-row `allowedFrom` / `canChange`. Called with every
415
+ * selected row of the loaded page and the target value; return `true` to allow, `false` (generic reason) or a string (the reason shown to the
416
+ * user) to refuse. Use it for a rule no single row can express ("an Archived invoice batch must all belong to one customer", "all rows must
417
+ * share the same status"). Keep it identical to the backend rule. A target it refuses is listed in the select but disabled, with a visible
418
+ * "<option>: <reason>" hint, and Apply re-checks it (a refused target is never confirmed or sent; the reason is shown as an error toast). A function that throws counts as
419
+ * refused. It only sees rows on the loaded page. Ignored for Delete and direct actions. Omit it and nothing changes.
420
+ *
421
+ * { field: 'status', canApply: (rows, target) => target !== 'MERGED' || new Set(rows.map(r => r.customerId)).size === 1 || 'Rows must belong to one customer.' }
422
+ */
423
+ canApply?: (rows: T[], target: string) => boolean | string;
424
+ /**
425
+ * Field changes (`{ field, listAll }`): list the FULL set of values in the "Change <column>" select instead of only the values the
426
+ * /filter-counts response currently carries (which omits values no row has yet). `true` = the filter-count values plus every target of
427
+ * `allowedFrom` that is not already listed; a list of values = exactly that set, in that order (labelled through the column's `badgeFn`). The
428
+ * `exclude`, `allowedFrom`, `canChange` and `canApply` rules and the "not already held by every selected row" rule still apply, so listing a
429
+ * value never offers a change the table knows the server refuses. An empty list is ignored. Omit it and nothing changes.
430
+ *
431
+ * { field: 'status', listAll: ['DRAFT', 'SENT', 'SIGNED', 'VOIDED'], allowedFrom: { SENT: ['DRAFT'], SIGNED: ['SENT'], VOIDED: ['DRAFT', 'SENT'] } }
432
+ */
433
+ listAll?: true | readonly string[];
434
+ /**
435
+ * Field changes (`{ field, order }`): the order of the "Change <column>" select. Values listed in `order` come first, in that order (matched
436
+ * exactly to the option values, case-sensitive); the remaining options follow in their existing order. Values in `order` that are not among
437
+ * the options are ignored (nothing is added). It only sorts: `exclude`, `allowedFrom`, `canChange`, `canApply`, `listAll` and the "not already
438
+ * held by every selected row" rule decide WHICH options appear. Ignored for Delete and direct actions. Omit it and nothing changes.
439
+ *
440
+ * { field: 'type', order: ['office', 'retail', 'industrial', 'multifamily'] }
441
+ */
442
+ order?: readonly string[];
443
+ /**
444
+ * Direct bulk action (`{ field: 'resend', action: true, label: 'Resend' }`): a bulk-bar button that is neither a field change nor
445
+ * Delete. `field` is the action key (no column needed), the button type is `action-<field>` and there is no inline select.
446
+ * Clicking it opens the library confirm, then POSTs `<endpoint>/bulk/<field>` with exactly `{ ids }` (the eligible rows). The response is
447
+ * handled like a field change (`updated`, `skipped`, `notAllowed`, readable `message`). Ignored for the reserved `delete` key.
448
+ * Read-only users get no bulk bar, so nothing changes for them. Omit it and nothing changes.
449
+ * `confirm` on an action takes only the function form; a map (target value -> function) is ignored and the default copy is used.
450
+ *
451
+ * { field: 'resend', action: true, label: 'Resend', eligible: (row: Request) => row.status === 'PENDING' }
452
+ */
453
+ action?: boolean;
454
+ /** Direct action only: button style, default 'secondary'. 'danger' also makes the default confirm button red. */
455
+ variant?: 'secondary' | 'danger';
456
+ /**
457
+ * Direct action only: true when the server will accept the action for this row (keep it identical to the backend rule). Rows it
458
+ * refuses are skipped (counted, NEVER sent; "N selected rows don't qualify for <label lower-cased> and will be skipped."). When no selected loaded row passes,
459
+ * the button is disabled with a visible reason ("None of the selected rows qualify for <label lower-cased>."). Omit it and every selected row is sent. A predicate that throws counts as "row not eligible" (never breaks rendering).
460
+ */
461
+ eligible?: (row: T) => boolean;
462
+ /**
463
+ * Direct action only: the past-tense word in the result toast. "N <doneLabel>, M skipped." when anything was skipped / not allowed,
464
+ * else "N <itemLabel>(s) <doneLabel>.". Default 'updated'.
465
+ * English keeps the past-tense word ('resent' -> "N contacts resent."). In Spanish the summary reads "<doneLabel>: N <items>." and the word is
466
+ * a capitalised NOUN, not a participle: pass 'Reenvío' ("Reenvío: 3 contactos."), not 'enviados' ("enviados: 3 contactos."). The built-in
467
+ * default ('updated') is translated by the dictionary and needs nothing.
468
+ */
469
+ doneLabel?: string;
470
+ /**
471
+ * Direct action only: the request returns a FILE instead of JSON (a ZIP of PDFs, a CSV...). The table still confirms first and POSTs
472
+ * `<endpoint>/bulk/<field>` with exactly `{ ids }`, but asks for a blob response and saves it as one download (one file, so browsers do not
473
+ * block it the way several automatic downloads are blocked). The file name is the response's `Content-Disposition` filename, else
474
+ * `fileName`, else the action key. The toast reads "N <itemLabel>(s) <doneLabel>." (`doneLabel` defaults to 'downloaded' here); the server may
475
+ * send an `X-Skipped-Count` header with the number of selected rows it left out of the file ("N downloaded, M skipped."). The rows do not change,
476
+ * so the table is not refreshed; the selection is cleared and `(bulkAction)` is emitted. An error response is read as `{ message }` JSON and shown
477
+ * in an error toast. Omit it and the action expects JSON as before.
478
+ *
479
+ * { field: 'download-pdfs', action: true, label: 'Download PDFs', download: { fileName: 'inspections.zip' } }
480
+ */
481
+ download?: {
482
+ fileName?: string;
483
+ };
484
+ /**
485
+ * Direct action only (`opens: 'panel'`): the button does not confirm and does not POST. It emits `(bulkPanelClick)` with the
486
+ * eligible rows and the host opens its own panel or form (compose an e-mail, add a charge...) and does the work itself.
487
+ * The host calls `clearSelection()` and `refresh()` on the table when it is done. `confirm` and `doneLabel` are ignored for a panel action (no confirm is shown; `variant: 'danger'` still colours the button); `eligible` still applies (refused rows are never passed on). Omit it and nothing changes.
488
+ *
489
+ * { field: 'email', action: true, opens: 'panel', label: 'Email', eligible: (r: Resident) => !!r.email }
490
+ */
491
+ opens?: 'panel';
492
+ /**
493
+ * Panel action only (`opens: 'panel'`): true while the action is not available right now (e.g. text messaging is switched off). The button is
494
+ * then not shown at all. Read every time the bar renders, so it can read signals; a function that throws counts as "not hidden". A panel
495
+ * action is also not shown while none of the selected rows is `eligible`. Omit it and the button shows whenever a selected row is eligible.
496
+ */
497
+ hidden?: () => boolean;
498
+ };
499
+ /** What a bulk confirm function receives. For a direct bulk action: `columnLabel` is the action label, `targetValue`/`targetLabel` are '', `rows`/`skippedRows` the eligible / refused selected rows. For bulk Delete: `targetValue`/`targetLabel` are '', `columnLabel` is 'Delete', skipped counts are 0. */
500
+ export interface BulkConfirmContext<T = any> {
501
+ /** Rows that WILL be sent (eligible). For Delete: the selected count. */
502
+ count: number;
503
+ /** Selected rows skipped because they already hold the target value. */
504
+ skippedAlready: number;
505
+ /** Selected rows skipped because `allowedFrom` does not allow the move. */
506
+ skippedBlocked: number;
507
+ /** Everything the user selected (`count + skippedAlready + skippedBlocked`). */
508
+ selectedCount: number;
509
+ /** Singular / plural item label (the table's `itemLabel` / `itemLabelPlural`). */
510
+ itemLabel: string;
511
+ itemLabelPlural: string;
512
+ /** Label of the column being changed ("Status"). */
513
+ columnLabel: string;
514
+ /** Raw target value ("APPROVED") and its display label ("Approved"). */
515
+ targetValue: string;
516
+ targetLabel: string;
517
+ /**
518
+ * The eligible row objects (name records, show before -> after). A selection never spans pages (any reload clears it and
519
+ * select-all takes the loaded page), so these are every row that will be sent.
520
+ */
521
+ rows: T[];
522
+ /** The selected rows that will be skipped. */
523
+ skippedRows: T[];
524
+ }
525
+ /** Host copy for one bulk confirm. Plain text only (never HTML); `\n` in `message` shows as a line break. */
526
+ export interface BulkConfirmCopy {
527
+ /** Default: the action label ("Change Status") / "Delete <Items>" built from the table's item label ("template" → "Delete Templates"). */
528
+ title?: string;
529
+ message: string;
530
+ /** Rendered as a bullet list under the message (consequences, what is NOT affected, undoable or not). */
531
+ details?: string[];
532
+ /** Default: the action label / "Delete". */
533
+ confirmLabel?: string;
534
+ /** Default: 'primary' for a field change, 'danger' for Delete. 'danger' makes the confirm button red. */
535
+ variant?: 'primary' | 'danger' | 'warning';
536
+ /** By default the library appends its standard "N selected rows ... will be skipped." sentence (change actions); set true to write it yourself. */
537
+ omitSkippedNote?: boolean;
538
+ }
539
+ export type BulkConfirmFn<T = any> = (ctx: BulkConfirmContext<T>) => BulkConfirmCopy | string;
540
+ export interface BulkActionDef {
541
+ /** Action key — passed through to the (bulkAction) event. */
542
+ type: string;
543
+ /** Button label shown in the bulk bar. */
544
+ label: string;
545
+ /** True when `label` came from the entry's custom `label` (the default confirm message then reads "<label>: <option> for N items?"). Only set then. */
546
+ customLabel?: boolean;
547
+ /** Button style. Default: 'secondary'. Use 'danger' for destructive actions. */
548
+ variant?: 'secondary' | 'danger';
549
+ /** Values left out of this field's bulk select (from a `{ field, exclude }` bulkUpdateOptions entry). */
550
+ exclude?: string[];
551
+ /** Workflow rules (from `{ field, allowedFrom }`): target value -> source values a row may move from. */
552
+ allowedFrom?: Record<string, string[]>;
553
+ /** Host confirm copy (from `{ field, confirm }`). */
554
+ confirm?: BulkConfirmFn | Record<string, BulkConfirmFn>;
555
+ /** Bulk Delete only: which rows the server will delete (from `{ field: 'delete', deletable }`). */
556
+ deletable?: (row: any) => boolean;
557
+ /** Field changes: per-row check that the server will accept the move to a target (from `{ field, canChange }`). */
558
+ canChange?: (row: any, target: string) => boolean;
559
+ /** Field changes: rule on the whole selection (from `{ field, canApply }`): true = allowed, false / a string = refused (the string is the reason). */
560
+ canApply?: (rows: any[], target: string) => boolean | string;
561
+ /** Field changes: list the full value set (from `{ field, listAll }`): `true` or the exact list of values. */
562
+ listAll?: true | readonly string[];
563
+ /** Field changes: option order (from `{ field, order }`): these values first, in this order. */
564
+ order?: readonly string[];
565
+ /** True for a direct bulk action (from `{ field, action: true, label }`); `type` is `action-<key>` and `field` is not set (no inline select). */
566
+ action?: boolean;
567
+ /** Direct action: which rows the server will accept (from `{ field, action: true, eligible }`). */
568
+ eligible?: (row: any) => boolean;
569
+ /** Direct action: past-tense word in the result toast (from `{ doneLabel }`), default 'updated'. */
570
+ doneLabel?: string;
571
+ /** Direct action that returns a file (from `{ download }`): the response is saved as a download instead of read as JSON. */
572
+ download?: {
573
+ fileName?: string;
574
+ };
575
+ /** True for a direct action that opens a host panel instead of confirming and POSTing (from `{ opens: 'panel' }`). */
576
+ opensPanel?: boolean;
577
+ /** Panel action: true while it is not available (from `{ hidden }`); the button is not shown. */
578
+ hidden?: () => boolean;
579
+ /**
580
+ * The item field this action targets (e.g. 'status', 'type').
581
+ * When set the table shows an inline select populated from the column's option sources.
582
+ * Omit for direct actions like delete that need no value selection.
583
+ */
584
+ field?: string;
585
+ }
586
+ /** Emitted by (bulkAction) after the user selects a value and clicks Apply. */
587
+ export interface BulkActionEvent {
588
+ type: string;
589
+ ids: string[];
590
+ value?: string;
591
+ skippedCount: number;
592
+ }
593
+ /** Emitted by (bulkPanelClick) when the user clicks a bulk action declared with `opens: 'panel'`. */
594
+ export interface BulkPanelEvent<T = any> {
595
+ /** `action-<key>` of the clicked bulk option. */
596
+ type: string;
597
+ /** The option's `field` (its key), e.g. 'email'. */
598
+ key: string;
599
+ /** Ids of the eligible selected rows. */
600
+ ids: string[];
601
+ /** The eligible selected rows (loaded page). */
602
+ rows: T[];
603
+ /** Selected rows the option's `eligible` refused. */
604
+ skippedCount: number;
605
+ }
606
+ /** Emitted by (rowReorder) after the user moves a row (`reorderable`). */
607
+ export interface TableRowReorderEvent<T = any> {
608
+ /** The row that was moved. */
609
+ item: T;
610
+ /** Its index on the page before and after the move (0-based). */
611
+ from: number;
612
+ to: number;
613
+ /** The rows on the page in their new order. */
614
+ items: T[];
615
+ /** How many rows come before this page (0 on the first page), so `offset + to` is the row's position in the whole list. */
616
+ offset: number;
617
+ }
618
+ export interface PageResponse<T> {
619
+ content: T[];
620
+ totalElements: number;
621
+ totalPages: number;
622
+ number: number;
623
+ size: number;
624
+ }