@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,365 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, ElementRef, computed, inject, input, output, signal } from "@angular/core";
3
+ import { ButtonComponent, UiLabelsService } from "@forgeroute/ui/core";
4
+ import { TooltipDirective } from "@forgeroute/ui/tooltip";
5
+ let nextPlanId = 0;
6
+ var StackingPlanComponent = class StackingPlanComponent {
7
+ constructor() {
8
+ this.uid = `sp-${nextPlanId++}`;
9
+ this.labels = inject(UiLabelsService);
10
+ this.host = inject(ElementRef);
11
+ this.floors = input([], ...ngDevMode ? [{ debugName: "floors" }] : /* istanbul ignore next */ []);
12
+ this.legend = input([], ...ngDevMode ? [{ debugName: "legend" }] : /* istanbul ignore next */ []);
13
+ this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
14
+ this.selectedId = input(null, ...ngDevMode ? [{ debugName: "selectedId" }] : /* istanbul ignore next */ []);
15
+ this.formatSize = input(null, ...ngDevMode ? [{ debugName: "formatSize" }] : /* istanbul ignore next */ []);
16
+ this.unitClick = output();
17
+ this.asTable = signal(false, ...ngDevMode ? [{ debugName: "asTable" }] : /* istanbul ignore next */ []);
18
+ this.rows = computed(() => {
19
+ const floors = this.floors().map((f) => ({
20
+ f,
21
+ total: f.units.reduce((n, u) => n + this.weight(u), 0)
22
+ }));
23
+ const widest = floors.reduce((n, x) => Math.max(n, x.total), 0);
24
+ return floors.map(({ f, total }) => ({
25
+ key: f.key,
26
+ label: f.label,
27
+ widthPct: widest > 0 ? Math.max(Math.round(total / widest * 100), 8) : 100,
28
+ units: f.units.map((u) => ({
29
+ id: u.id,
30
+ label: u.label,
31
+ variant: u.variant,
32
+ weight: this.weight(u),
33
+ name: `${u.label}: ${u.description}`,
34
+ tip: u.tooltip || u.description,
35
+ sameTip: !u.tooltip || u.tooltip === u.description,
36
+ unit: u
37
+ }))
38
+ }));
39
+ }, ...ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []);
40
+ this.tableRows = computed(() => this.floors().flatMap((f) => f.units.map((u) => ({
41
+ id: u.id,
42
+ floor: f.label,
43
+ label: u.label,
44
+ sizeText: this.format(u.size),
45
+ description: u.description
46
+ }))), ...ngDevMode ? [{ debugName: "tableRows" }] : /* istanbul ignore next */ []);
47
+ }
48
+ format(size) {
49
+ return (this.formatSize() ?? ((n) => this.labels.formatNumber(n)))(size);
50
+ }
51
+ weight(u) {
52
+ return Number.isFinite(u.size) && u.size > 0 ? u.size : 1;
53
+ }
54
+ swatchClass(variant) {
55
+ return `sp-swatch sp-${variant}`;
56
+ }
57
+ unitClass(u) {
58
+ return `sp-unit sp-${u.variant}${u.id === this.selectedId() ? " sp-selected" : ""}`;
59
+ }
60
+ onKey(event) {
61
+ if (![
62
+ "ArrowLeft",
63
+ "ArrowRight",
64
+ "ArrowUp",
65
+ "ArrowDown",
66
+ "Home",
67
+ "End"
68
+ ].includes(event.key)) return;
69
+ const el = event.currentTarget;
70
+ const floor = el.closest(".sp-floor");
71
+ const floors = Array.from(this.host.nativeElement.querySelectorAll(".sp-floor"));
72
+ const units = floor ? Array.from(floor.querySelectorAll(".sp-unit")) : [];
73
+ const i = units.indexOf(el);
74
+ const f = floor ? floors.indexOf(floor) : -1;
75
+ let target;
76
+ if (event.key === "ArrowRight") target = units[i + 1];
77
+ else if (event.key === "ArrowLeft") target = units[i - 1];
78
+ else if (event.key === "Home") target = units[0];
79
+ else if (event.key === "End") target = units[units.length - 1];
80
+ else {
81
+ const other = floors[f + (event.key === "ArrowDown" ? 1 : -1)];
82
+ const row = other ? Array.from(other.querySelectorAll(".sp-unit")) : [];
83
+ target = row[Math.min(i, row.length - 1)];
84
+ }
85
+ if (target) {
86
+ event.preventDefault();
87
+ target.focus();
88
+ }
89
+ }
90
+ static {
91
+ this.ɵfac = i0.ɵɵngDeclareFactory({
92
+ minVersion: "12.0.0",
93
+ version: "22.2.2",
94
+ ngImport: i0,
95
+ type: StackingPlanComponent,
96
+ deps: [],
97
+ target: i0.ɵɵFactoryTarget.Component
98
+ });
99
+ }
100
+ static {
101
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
102
+ minVersion: "17.0.0",
103
+ version: "22.2.2",
104
+ type: StackingPlanComponent,
105
+ isStandalone: true,
106
+ selector: "ui-stacking-plan",
107
+ inputs: {
108
+ floors: {
109
+ classPropertyName: "floors",
110
+ publicName: "floors",
111
+ isSignal: true,
112
+ isRequired: false,
113
+ transformFunction: null
114
+ },
115
+ legend: {
116
+ classPropertyName: "legend",
117
+ publicName: "legend",
118
+ isSignal: true,
119
+ isRequired: false,
120
+ transformFunction: null
121
+ },
122
+ ariaLabel: {
123
+ classPropertyName: "ariaLabel",
124
+ publicName: "ariaLabel",
125
+ isSignal: true,
126
+ isRequired: false,
127
+ transformFunction: null
128
+ },
129
+ selectedId: {
130
+ classPropertyName: "selectedId",
131
+ publicName: "selectedId",
132
+ isSignal: true,
133
+ isRequired: false,
134
+ transformFunction: null
135
+ },
136
+ formatSize: {
137
+ classPropertyName: "formatSize",
138
+ publicName: "formatSize",
139
+ isSignal: true,
140
+ isRequired: false,
141
+ transformFunction: null
142
+ }
143
+ },
144
+ outputs: { unitClick: "unitClick" },
145
+ ngImport: i0,
146
+ template: `
147
+ <div class="sp">
148
+ <div class="sp-head">
149
+ @if (legend().length > 0) {
150
+ <ul class="sp-legend" role="list" [attr.aria-label]="labels.t('stackingPlan.legend')">
151
+ @for (item of legend(); track $index) {
152
+ <li class="sp-legend-item"><span [class]="swatchClass(item.variant)" aria-hidden="true"></span>{{ item.label }}</li>
153
+ }
154
+ </ul>
155
+ }
156
+ <ui-button variant="secondary" size="sm" (click)="asTable.set(!asTable())" data-testid="stacking-plan-toggle">{{ asTable() ? labels.t('stackingPlan.showPlan') : labels.t('stackingPlan.showTable') }}</ui-button>
157
+ </div>
158
+ @if (asTable()) {
159
+ <div class="sp-table-wrap">
160
+ <table class="sp-table" data-testid="stacking-plan-table">
161
+ <caption class="sp-caption">{{ ariaLabel() }}</caption>
162
+ <thead>
163
+ <tr>
164
+ <th scope="col">{{ labels.t('stackingPlan.floor') }}</th>
165
+ <th scope="col">{{ labels.t('stackingPlan.unit') }}</th>
166
+ <th scope="col" class="sp-num">{{ labels.t('stackingPlan.size') }}</th>
167
+ <th scope="col">{{ labels.t('stackingPlan.details') }}</th>
168
+ </tr>
169
+ </thead>
170
+ <tbody>
171
+ @for (row of tableRows(); track row.id) {
172
+ <tr [class.sp-row-selected]="row.id === selectedId()">
173
+ <th scope="row">{{ row.floor }}</th>
174
+ <td>{{ row.label }}</td>
175
+ <td class="sp-num">{{ row.sizeText }}</td>
176
+ <td>{{ row.description }}</td>
177
+ </tr>
178
+ }
179
+ </tbody>
180
+ </table>
181
+ </div>
182
+ } @else {
183
+ <div class="sp-floors" role="group" [attr.aria-label]="ariaLabel() || null" data-testid="stacking-plan-floors">
184
+ @for (f of rows(); track f.key; let fi = $index) {
185
+ <div class="sp-floor" role="group" [attr.aria-labelledby]="uid + '-floor-' + fi" [attr.data-floor]="f.key">
186
+ <span class="sp-floor-label" [id]="uid + '-floor-' + fi">{{ f.label }}</span>
187
+ <div class="sp-units" [style.width.%]="f.widthPct">
188
+ @for (u of f.units; track u.id) {
189
+ <span class="sp-unit-wrap" [style.flex-grow]="u.weight" [uiTooltip]="u.sameTip ? u.tip : ''">
190
+ <button type="button" [class]="unitClass(u)" [uiTooltip]="u.sameTip ? '' : u.tip" [attr.aria-label]="u.name" [attr.aria-current]="u.id === selectedId() ? 'true' : null"
191
+ [attr.data-unit]="u.id" (click)="unitClick.emit(u.unit)" (keydown)="onKey($event)">
192
+ <span class="sp-unit-text">{{ u.label }}</span>
193
+ </button>
194
+ </span>
195
+ }
196
+ </div>
197
+ </div>
198
+ }
199
+ </div>
200
+ }
201
+ </div>
202
+ `,
203
+ isInline: true,
204
+ styles: [":host{display:block}.sp-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 12px}.sp-legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px}.sp-legend-item{display:inline-flex;align-items:center;gap:6px;font-size:.8125rem;color:#334155}.sp-swatch{width:12px;height:12px;border-radius:3px;flex:none}.sp-floors{display:flex;flex-direction:column;gap:6px}.sp-floor{display:flex;align-items:stretch;gap:10px}.sp-floor-label{flex:0 0 64px;display:flex;align-items:center;font-size:.8125rem;font-weight:600;color:#475569}.sp-units{display:flex;flex-wrap:wrap;gap:2px;min-width:0;max-width:100%}.sp-unit-wrap{display:flex;flex-basis:0;flex-shrink:1;min-width:44px;min-height:44px}.sp-unit{flex:1 1 0;min-width:0;min-height:44px;padding:4px 6px;margin:0;border:2px solid transparent;border-radius:4px;font:inherit;font-size:.8125rem;font-weight:600;color:#fff;cursor:pointer;overflow:hidden;text-align:center}.sp-unit:focus-visible{outline:3px solid #0f172a;outline-offset:2px}.sp-unit-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sp-selected{border-color:#0f172a;box-shadow:inset 0 0 0 2px #fff}.sp-green{background:#15803d}.sp-blue{background:#1d4ed8}.sp-amber{background:#b45309}.sp-orange{background:#c2410c}.sp-red{background:#b91c1c}.sp-slate{background:#475569}.sp-purple{background:#7e22ce}.sp-teal{background:#0f766e}.sp-gray{background:#e2e8f0;color:#0f172a}.sp-table-wrap{overflow-x:auto}.sp-table{width:100%;border-collapse:collapse;font-size:.875rem}.sp-caption{text-align:left;font-size:.8125rem;color:#475569;padding:0 0 8px}.sp-table th,.sp-table td{text-align:left;padding:8px 10px;border-bottom:1px solid #e2e8f0;color:#0f172a}.sp-table thead th{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:#475569}.sp-num{text-align:right!important}.sp-row-selected{background:#f1f5f9}@media(max-width:640px){.sp-floor{flex-direction:column;gap:4px}.sp-floor-label{flex-basis:auto}.sp-units{width:100%!important}}@media(forced-colors:active){.sp-unit{forced-color-adjust:none;background:Canvas;color:CanvasText;border:2px solid CanvasText}.sp-selected{border-color:Highlight}.sp-swatch{background:CanvasText!important}}\n"],
205
+ dependencies: [{
206
+ kind: "component",
207
+ type: ButtonComponent,
208
+ selector: "ui-button",
209
+ inputs: [
210
+ "variant",
211
+ "routerLink",
212
+ "queryParams",
213
+ "fragment",
214
+ "state",
215
+ "href",
216
+ "target",
217
+ "rel",
218
+ "shortLabel",
219
+ "shortBelow",
220
+ "color",
221
+ "active",
222
+ "size",
223
+ "type",
224
+ "disabled",
225
+ "loading",
226
+ "fullWidth",
227
+ "ariaLabel",
228
+ "ariaExpanded",
229
+ "ariaPressed",
230
+ "ariaDescribedBy",
231
+ "modal-footer-left",
232
+ "modal-footer-right"
233
+ ]
234
+ }, {
235
+ kind: "directive",
236
+ type: TooltipDirective,
237
+ selector: "[uiTooltip]",
238
+ inputs: ["uiTooltip", "tooltipPosition"]
239
+ }],
240
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
241
+ });
242
+ }
243
+ };
244
+ i0.ɵɵngDeclareClassMetadata({
245
+ minVersion: "12.0.0",
246
+ version: "22.2.2",
247
+ ngImport: i0,
248
+ type: StackingPlanComponent,
249
+ decorators: [{
250
+ type: Component,
251
+ args: [{
252
+ selector: "ui-stacking-plan",
253
+ standalone: true,
254
+ changeDetection: ChangeDetectionStrategy.OnPush,
255
+ imports: [ButtonComponent, TooltipDirective],
256
+ template: `
257
+ <div class="sp">
258
+ <div class="sp-head">
259
+ @if (legend().length > 0) {
260
+ <ul class="sp-legend" role="list" [attr.aria-label]="labels.t('stackingPlan.legend')">
261
+ @for (item of legend(); track $index) {
262
+ <li class="sp-legend-item"><span [class]="swatchClass(item.variant)" aria-hidden="true"></span>{{ item.label }}</li>
263
+ }
264
+ </ul>
265
+ }
266
+ <ui-button variant="secondary" size="sm" (click)="asTable.set(!asTable())" data-testid="stacking-plan-toggle">{{ asTable() ? labels.t('stackingPlan.showPlan') : labels.t('stackingPlan.showTable') }}</ui-button>
267
+ </div>
268
+ @if (asTable()) {
269
+ <div class="sp-table-wrap">
270
+ <table class="sp-table" data-testid="stacking-plan-table">
271
+ <caption class="sp-caption">{{ ariaLabel() }}</caption>
272
+ <thead>
273
+ <tr>
274
+ <th scope="col">{{ labels.t('stackingPlan.floor') }}</th>
275
+ <th scope="col">{{ labels.t('stackingPlan.unit') }}</th>
276
+ <th scope="col" class="sp-num">{{ labels.t('stackingPlan.size') }}</th>
277
+ <th scope="col">{{ labels.t('stackingPlan.details') }}</th>
278
+ </tr>
279
+ </thead>
280
+ <tbody>
281
+ @for (row of tableRows(); track row.id) {
282
+ <tr [class.sp-row-selected]="row.id === selectedId()">
283
+ <th scope="row">{{ row.floor }}</th>
284
+ <td>{{ row.label }}</td>
285
+ <td class="sp-num">{{ row.sizeText }}</td>
286
+ <td>{{ row.description }}</td>
287
+ </tr>
288
+ }
289
+ </tbody>
290
+ </table>
291
+ </div>
292
+ } @else {
293
+ <div class="sp-floors" role="group" [attr.aria-label]="ariaLabel() || null" data-testid="stacking-plan-floors">
294
+ @for (f of rows(); track f.key; let fi = $index) {
295
+ <div class="sp-floor" role="group" [attr.aria-labelledby]="uid + '-floor-' + fi" [attr.data-floor]="f.key">
296
+ <span class="sp-floor-label" [id]="uid + '-floor-' + fi">{{ f.label }}</span>
297
+ <div class="sp-units" [style.width.%]="f.widthPct">
298
+ @for (u of f.units; track u.id) {
299
+ <span class="sp-unit-wrap" [style.flex-grow]="u.weight" [uiTooltip]="u.sameTip ? u.tip : ''">
300
+ <button type="button" [class]="unitClass(u)" [uiTooltip]="u.sameTip ? '' : u.tip" [attr.aria-label]="u.name" [attr.aria-current]="u.id === selectedId() ? 'true' : null"
301
+ [attr.data-unit]="u.id" (click)="unitClick.emit(u.unit)" (keydown)="onKey($event)">
302
+ <span class="sp-unit-text">{{ u.label }}</span>
303
+ </button>
304
+ </span>
305
+ }
306
+ </div>
307
+ </div>
308
+ }
309
+ </div>
310
+ }
311
+ </div>
312
+ `,
313
+ styles: [":host{display:block}.sp-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 12px}.sp-legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px}.sp-legend-item{display:inline-flex;align-items:center;gap:6px;font-size:.8125rem;color:#334155}.sp-swatch{width:12px;height:12px;border-radius:3px;flex:none}.sp-floors{display:flex;flex-direction:column;gap:6px}.sp-floor{display:flex;align-items:stretch;gap:10px}.sp-floor-label{flex:0 0 64px;display:flex;align-items:center;font-size:.8125rem;font-weight:600;color:#475569}.sp-units{display:flex;flex-wrap:wrap;gap:2px;min-width:0;max-width:100%}.sp-unit-wrap{display:flex;flex-basis:0;flex-shrink:1;min-width:44px;min-height:44px}.sp-unit{flex:1 1 0;min-width:0;min-height:44px;padding:4px 6px;margin:0;border:2px solid transparent;border-radius:4px;font:inherit;font-size:.8125rem;font-weight:600;color:#fff;cursor:pointer;overflow:hidden;text-align:center}.sp-unit:focus-visible{outline:3px solid #0f172a;outline-offset:2px}.sp-unit-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sp-selected{border-color:#0f172a;box-shadow:inset 0 0 0 2px #fff}.sp-green{background:#15803d}.sp-blue{background:#1d4ed8}.sp-amber{background:#b45309}.sp-orange{background:#c2410c}.sp-red{background:#b91c1c}.sp-slate{background:#475569}.sp-purple{background:#7e22ce}.sp-teal{background:#0f766e}.sp-gray{background:#e2e8f0;color:#0f172a}.sp-table-wrap{overflow-x:auto}.sp-table{width:100%;border-collapse:collapse;font-size:.875rem}.sp-caption{text-align:left;font-size:.8125rem;color:#475569;padding:0 0 8px}.sp-table th,.sp-table td{text-align:left;padding:8px 10px;border-bottom:1px solid #e2e8f0;color:#0f172a}.sp-table thead th{font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:#475569}.sp-num{text-align:right!important}.sp-row-selected{background:#f1f5f9}@media(max-width:640px){.sp-floor{flex-direction:column;gap:4px}.sp-floor-label{flex-basis:auto}.sp-units{width:100%!important}}@media(forced-colors:active){.sp-unit{forced-color-adjust:none;background:Canvas;color:CanvasText;border:2px solid CanvasText}.sp-selected{border-color:Highlight}.sp-swatch{background:CanvasText!important}}\n"]
314
+ }]
315
+ }],
316
+ propDecorators: {
317
+ floors: [{
318
+ type: i0.Input,
319
+ args: [{
320
+ isSignal: true,
321
+ alias: "floors",
322
+ required: false
323
+ }]
324
+ }],
325
+ legend: [{
326
+ type: i0.Input,
327
+ args: [{
328
+ isSignal: true,
329
+ alias: "legend",
330
+ required: false
331
+ }]
332
+ }],
333
+ ariaLabel: [{
334
+ type: i0.Input,
335
+ args: [{
336
+ isSignal: true,
337
+ alias: "ariaLabel",
338
+ required: false
339
+ }]
340
+ }],
341
+ selectedId: [{
342
+ type: i0.Input,
343
+ args: [{
344
+ isSignal: true,
345
+ alias: "selectedId",
346
+ required: false
347
+ }]
348
+ }],
349
+ formatSize: [{
350
+ type: i0.Input,
351
+ args: [{
352
+ isSignal: true,
353
+ alias: "formatSize",
354
+ required: false
355
+ }]
356
+ }],
357
+ unitClick: [{
358
+ type: i0.Output,
359
+ args: ["unitClick"]
360
+ }]
361
+ }
362
+ });
363
+ export { StackingPlanComponent };
364
+
365
+ //# sourceMappingURL=forgeroute-ui-stacking-plan.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgeroute-ui-stacking-plan.mjs","names":[],"sources":["../../../projects/forgeroute-ui/stacking-plan/src/lib/stacking-plan/stacking-plan.component.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, computed, inject, input, output, signal } from '@angular/core';\nimport { ButtonComponent } from '@forgeroute/ui/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\nimport { TooltipDirective } from '@forgeroute/ui/tooltip';\n\nlet nextPlanId = 0;\n\n/** Library source 2026-11-11, not yet published. The colour of a unit of a `ui-stacking-plan`. */\nexport type StackingVariant = 'green' | 'blue' | 'amber' | 'orange' | 'red' | 'slate' | 'purple' | 'teal' | 'gray';\n\n/** One unit (a suite) of a floor. */\nexport interface StackingUnit {\n /** Stable id (emitted with the click, matched by `selectedId`). */\n id: string;\n /** Short name drawn on the unit and read out first (a suite number). */\n label: string;\n /** Size of the unit (any unit: square feet). Units of a floor share the floor's width by their size; a size of 0 or less counts as 1 so the unit stays visible. */\n size: number;\n variant: StackingVariant;\n /** What the unit is, as text: tenant, lease end ... It is the unit's accessible description, the tooltip (when `tooltip` is empty) and the \"Details\" cell of the table view. */\n description: string;\n /** Tooltip text on hover and keyboard focus; defaults to `description`. */\n tooltip?: string;\n}\n\n/** One floor: a row of units. Floors are drawn in the order given (put the top floor first). */\nexport interface StackingFloor {\n key: string;\n label: string;\n units: StackingUnit[];\n}\n\n/** One legend entry: the colour and what it means. */\nexport interface StackingLegendItem {\n variant: StackingVariant;\n label: string;\n}\n\n/**\n * A stacking plan: a building drawn floor by floor, each floor a row of unit buttons whose widths follow their size (and whose floor rows follow the floor's total against the largest floor), coloured by a\n * `variant` the host chooses (occupancy, lease-expiry year ...). Every unit is a real button: Tab reaches it, Enter / Space emit `(unitClick)`, the arrow keys move between units (left / right on a floor, up / down\n * between floors, Home / End on a floor), a tooltip shows on hover AND keyboard focus (library `uiTooltip`), and the button's accessible name is \"<label>: <description>\" inside a group named by its floor label. A tooltip that only repeats the description sits on a wrapper around the button (so a screen reader does not read the same text twice: name + description); a different `tooltip` text sits on the button and is read as its description. Colour never carries the meaning alone: the legend names\n * every colour and the \"Show as table\" button swaps the drawing for a real table (Floor, Unit, Size, Details) with the same facts, for screen reader users and anyone who prefers rows. On a phone the floor label sits\n * above its row and units wrap onto further lines at 44px minimum. Pure CSS, no chart library; forced-colors mode draws borders.\n *\n * Inputs: `floors`, `legend`, `ariaLabel` (the plan's name; also the table caption), `selectedId`, `formatSize` (default: a grouped number in the active locale).\n * Output: `unitClick` (the StackingUnit).\n */\n@Component({\n selector: 'ui-stacking-plan',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [ButtonComponent, TooltipDirective],\n template: `\n <div class=\"sp\">\n <div class=\"sp-head\">\n @if (legend().length > 0) {\n <ul class=\"sp-legend\" role=\"list\" [attr.aria-label]=\"labels.t('stackingPlan.legend')\">\n @for (item of legend(); track $index) {\n <li class=\"sp-legend-item\"><span [class]=\"swatchClass(item.variant)\" aria-hidden=\"true\"></span>{{ item.label }}</li>\n }\n </ul>\n }\n <ui-button variant=\"secondary\" size=\"sm\" (click)=\"asTable.set(!asTable())\" data-testid=\"stacking-plan-toggle\">{{ asTable() ? labels.t('stackingPlan.showPlan') : labels.t('stackingPlan.showTable') }}</ui-button>\n </div>\n @if (asTable()) {\n <div class=\"sp-table-wrap\">\n <table class=\"sp-table\" data-testid=\"stacking-plan-table\">\n <caption class=\"sp-caption\">{{ ariaLabel() }}</caption>\n <thead>\n <tr>\n <th scope=\"col\">{{ labels.t('stackingPlan.floor') }}</th>\n <th scope=\"col\">{{ labels.t('stackingPlan.unit') }}</th>\n <th scope=\"col\" class=\"sp-num\">{{ labels.t('stackingPlan.size') }}</th>\n <th scope=\"col\">{{ labels.t('stackingPlan.details') }}</th>\n </tr>\n </thead>\n <tbody>\n @for (row of tableRows(); track row.id) {\n <tr [class.sp-row-selected]=\"row.id === selectedId()\">\n <th scope=\"row\">{{ row.floor }}</th>\n <td>{{ row.label }}</td>\n <td class=\"sp-num\">{{ row.sizeText }}</td>\n <td>{{ row.description }}</td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n } @else {\n <div class=\"sp-floors\" role=\"group\" [attr.aria-label]=\"ariaLabel() || null\" data-testid=\"stacking-plan-floors\">\n @for (f of rows(); track f.key; let fi = $index) {\n <div class=\"sp-floor\" role=\"group\" [attr.aria-labelledby]=\"uid + '-floor-' + fi\" [attr.data-floor]=\"f.key\">\n <span class=\"sp-floor-label\" [id]=\"uid + '-floor-' + fi\">{{ f.label }}</span>\n <div class=\"sp-units\" [style.width.%]=\"f.widthPct\">\n @for (u of f.units; track u.id) {\n <span class=\"sp-unit-wrap\" [style.flex-grow]=\"u.weight\" [uiTooltip]=\"u.sameTip ? u.tip : ''\">\n <button type=\"button\" [class]=\"unitClass(u)\" [uiTooltip]=\"u.sameTip ? '' : u.tip\" [attr.aria-label]=\"u.name\" [attr.aria-current]=\"u.id === selectedId() ? 'true' : null\"\n [attr.data-unit]=\"u.id\" (click)=\"unitClick.emit(u.unit)\" (keydown)=\"onKey($event)\">\n <span class=\"sp-unit-text\">{{ u.label }}</span>\n </button>\n </span>\n }\n </div>\n </div>\n }\n </div>\n }\n </div>\n `,\n styles: [`\n :host { display: block; }\n .sp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; }\n .sp-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }\n .sp-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: #334155; }\n .sp-swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }\n .sp-floors { display: flex; flex-direction: column; gap: 6px; }\n .sp-floor { display: flex; align-items: stretch; gap: 10px; }\n .sp-floor-label { flex: 0 0 64px; display: flex; align-items: center; font-size: 0.8125rem; font-weight: 600; color: #475569; }\n .sp-units { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; max-width: 100%; }\n .sp-unit-wrap { display: flex; flex-basis: 0; flex-shrink: 1; min-width: 44px; min-height: 44px; }\n .sp-unit { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 4px 6px; margin: 0; border: 2px solid transparent; border-radius: 4px; font: inherit; font-size: 0.8125rem; font-weight: 600; color: #fff; cursor: pointer; overflow: hidden; text-align: center; }\n .sp-unit:focus-visible { outline: 3px solid #0f172a; outline-offset: 2px; }\n .sp-unit-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n .sp-selected { border-color: #0f172a; box-shadow: inset 0 0 0 2px #fff; }\n .sp-green { background: #15803d; }\n .sp-blue { background: #1d4ed8; }\n .sp-amber { background: #b45309; }\n .sp-orange { background: #c2410c; }\n .sp-red { background: #b91c1c; }\n .sp-slate { background: #475569; }\n .sp-purple { background: #7e22ce; }\n .sp-teal { background: #0f766e; }\n .sp-gray { background: #e2e8f0; color: #0f172a; }\n .sp-table-wrap { overflow-x: auto; }\n .sp-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }\n .sp-caption { text-align: left; font-size: 0.8125rem; color: #475569; padding: 0 0 8px; }\n .sp-table th, .sp-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e2e8f0; color: #0f172a; }\n .sp-table thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: #475569; }\n .sp-num { text-align: right !important; }\n .sp-row-selected { background: #f1f5f9; }\n @media (max-width: 640px) {\n .sp-floor { flex-direction: column; gap: 4px; }\n .sp-floor-label { flex-basis: auto; }\n .sp-units { width: 100% !important; }\n }\n @media (forced-colors: active) {\n .sp-unit { forced-color-adjust: none; background: Canvas; color: CanvasText; border: 2px solid CanvasText; }\n .sp-selected { border-color: Highlight; }\n .sp-swatch { background: CanvasText !important; }\n }\n `],\n})\nexport class StackingPlanComponent {\n /** Unique per plan: the ids that name each floor's group. */\n protected readonly uid = `sp-${nextPlanId++}`;\n protected readonly labels = inject(UiLabelsService);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly floors = input<StackingFloor[]>([]);\n readonly legend = input<StackingLegendItem[]>([]);\n readonly ariaLabel = input('');\n readonly selectedId = input<string | null>(null);\n readonly formatSize = input<((size: number) => string) | null>(null);\n readonly unitClick = output<StackingUnit>();\n\n /** Whether the table view is shown instead of the drawing. */\n protected readonly asTable = signal(false);\n\n private format(size: number): string { return (this.formatSize() ?? ((n: number) => this.labels.formatNumber(n)))(size); }\n\n /** The floors prepared for drawing: each unit's weight (its size, at least 1), accessible name and tooltip, and the floor's width against the widest floor. */\n protected readonly rows = computed(() => {\n const floors = this.floors().map(f => ({ f, total: f.units.reduce((n, u) => n + this.weight(u), 0) }));\n const widest = floors.reduce((n, x) => Math.max(n, x.total), 0);\n return floors.map(({ f, total }) => ({\n key: f.key, label: f.label, widthPct: widest > 0 ? Math.max(Math.round((total / widest) * 100), 8) : 100,\n units: f.units.map(u => ({ id: u.id, label: u.label, variant: u.variant, weight: this.weight(u), name: `${u.label}: ${u.description}`, tip: u.tooltip || u.description, sameTip: !u.tooltip || u.tooltip === u.description, unit: u })),\n }));\n });\n\n /** One row per unit for the table view. */\n protected readonly tableRows = computed(() =>\n this.floors().flatMap(f => f.units.map(u => ({ id: u.id, floor: f.label, label: u.label, sizeText: this.format(u.size), description: u.description }))));\n\n private weight(u: StackingUnit): number { return Number.isFinite(u.size) && u.size > 0 ? u.size : 1; }\n\n protected swatchClass(variant: StackingVariant): string { return `sp-swatch sp-${variant}`; }\n protected unitClass(u: { variant: StackingVariant; id: string }): string { return `sp-unit sp-${u.variant}${u.id === this.selectedId() ? ' sp-selected' : ''}`; }\n\n /** Arrow keys move the focus: left / right along a floor, up / down to the same position on the next floor, Home / End to the ends of the floor. */\n protected onKey(event: KeyboardEvent): void {\n const keys = ['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Home', 'End'];\n if (!keys.includes(event.key)) return;\n const el = event.currentTarget as HTMLElement;\n const floor = el.closest('.sp-floor');\n const floors = Array.from(this.host.nativeElement.querySelectorAll<HTMLElement>('.sp-floor'));\n const units = floor ? Array.from(floor.querySelectorAll<HTMLElement>('.sp-unit')) : [];\n const i = units.indexOf(el);\n const f = floor ? floors.indexOf(floor as HTMLElement) : -1;\n let target: HTMLElement | undefined;\n if (event.key === 'ArrowRight') target = units[i + 1];\n else if (event.key === 'ArrowLeft') target = units[i - 1];\n else if (event.key === 'Home') target = units[0];\n else if (event.key === 'End') target = units[units.length - 1];\n else {\n const other = floors[f + (event.key === 'ArrowDown' ? 1 : -1)];\n const row = other ? Array.from(other.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