@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,317 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, DestroyRef, Injector, PLATFORM_ID, afterNextRender, computed, effect, inject, input, untracked, viewChild } from "@angular/core";
3
+ import { DOCUMENT, isPlatformBrowser } from "@angular/common";
4
+ var PageComponent = class PageComponent {
5
+ constructor() {
6
+ this.maxWidth = input("", ...ngDevMode ? [{ debugName: "maxWidth" }] : /* istanbul ignore next */ []);
7
+ this.padding = input("", ...ngDevMode ? [{ debugName: "padding" }] : /* istanbul ignore next */ []);
8
+ this.centered = input(true, ...ngDevMode ? [{ debugName: "centered" }] : /* istanbul ignore next */ []);
9
+ this.background = input("", ...ngDevMode ? [{ debugName: "background" }] : /* istanbul ignore next */ []);
10
+ this.fillViewport = input(false, ...ngDevMode ? [{ debugName: "fillViewport" }] : /* istanbul ignore next */ []);
11
+ this.stickyHeader = input(false, ...ngDevMode ? [{ debugName: "stickyHeader" }] : /* istanbul ignore next */ []);
12
+ this.stickyFooter = input(false, ...ngDevMode ? [{ debugName: "stickyFooter" }] : /* istanbul ignore next */ []);
13
+ this.transparent = input(false, ...ngDevMode ? [{ debugName: "transparent" }] : /* istanbul ignore next */ []);
14
+ this.ownScroll = input(false, ...ngDevMode ? [{ debugName: "ownScroll" }] : /* istanbul ignore next */ []);
15
+ this.focusKey = input(void 0, ...ngDevMode ? [{ debugName: "focusKey" }] : /* istanbul ignore next */ []);
16
+ this.anchor = viewChild("anchor", ...ngDevMode ? [{ debugName: "anchor" }] : /* istanbul ignore next */ []);
17
+ this.doc = inject(DOCUMENT);
18
+ this.injector = inject(Injector);
19
+ this.browser = isPlatformBrowser(inject(PLATFORM_ID));
20
+ this.backgroundCss = computed(() => this.transparent() ? "transparent" : this.background() || null, ...ngDevMode ? [{ debugName: "backgroundCss" }] : /* istanbul ignore next */ []);
21
+ this.maxWidthCss = computed(() => this.transparent() ? null : this.maxWidth() || null, ...ngDevMode ? [{ debugName: "maxWidthCss" }] : /* istanbul ignore next */ []);
22
+ this.paddingCss = computed(() => {
23
+ const p = this.padding();
24
+ if (!p || p === "responsive") return null;
25
+ return this.transparent() ? "8px 0 16px" : p;
26
+ }, ...ngDevMode ? [{ debugName: "paddingCss" }] : /* istanbul ignore next */ []);
27
+ this.scrollSaved = [];
28
+ this.bgSaved = [];
29
+ this.focusInitialised = false;
30
+ effect(() => {
31
+ const own = this.ownScroll();
32
+ const transparent = this.transparent();
33
+ if (!this.browser) return;
34
+ untracked(() => {
35
+ if (own) this.applyScroll();
36
+ else this.releaseScroll();
37
+ if (own && transparent) this.applyBackground();
38
+ else this.releaseBackground();
39
+ });
40
+ });
41
+ effect(() => {
42
+ const key = this.focusKey();
43
+ untracked(() => {
44
+ if (!this.focusInitialised) {
45
+ this.focusInitialised = true;
46
+ this.lastFocusKey = key;
47
+ return;
48
+ }
49
+ if (Object.is(key, this.lastFocusKey)) return;
50
+ this.lastFocusKey = key;
51
+ afterNextRender(() => this.focusTop(), { injector: this.injector });
52
+ });
53
+ });
54
+ inject(DestroyRef).onDestroy(() => {
55
+ this.releaseScroll();
56
+ this.releaseBackground();
57
+ });
58
+ }
59
+ focusTop() {
60
+ const el = this.anchor()?.nativeElement;
61
+ if (!el) return;
62
+ const reduce = !!this.doc.defaultView?.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
63
+ el.scrollIntoView(reduce ? {
64
+ block: "start",
65
+ behavior: "instant"
66
+ } : { block: "start" });
67
+ el.focus({ preventScroll: true });
68
+ }
69
+ save(list, el, prop, value) {
70
+ if (!el) return;
71
+ if (!list.some((e) => e.el === el)) list.push({
72
+ el,
73
+ prop,
74
+ prev: el.style[prop]
75
+ });
76
+ el.style[prop] = value;
77
+ }
78
+ applyScroll() {
79
+ const root = this.doc.querySelector("app-root");
80
+ this.save(this.scrollSaved, this.doc.documentElement, "overflow", "auto");
81
+ this.save(this.scrollSaved, this.doc.body, "overflow", "visible");
82
+ this.save(this.scrollSaved, root, "overflow", "visible");
83
+ }
84
+ releaseScroll() {
85
+ for (const e of this.scrollSaved) e.el.style[e.prop] = e.prev;
86
+ this.scrollSaved = [];
87
+ }
88
+ applyBackground() {
89
+ this.save(this.bgSaved, this.doc.documentElement, "background", "transparent");
90
+ this.save(this.bgSaved, this.doc.body, "background", "transparent");
91
+ }
92
+ releaseBackground() {
93
+ for (const e of this.bgSaved) e.el.style[e.prop] = e.prev;
94
+ this.bgSaved = [];
95
+ }
96
+ static {
97
+ this.ɵfac = i0.ɵɵngDeclareFactory({
98
+ minVersion: "12.0.0",
99
+ version: "22.2.2",
100
+ ngImport: i0,
101
+ type: PageComponent,
102
+ deps: [],
103
+ target: i0.ɵɵFactoryTarget.Component
104
+ });
105
+ }
106
+ static {
107
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
108
+ minVersion: "17.2.0",
109
+ version: "22.2.2",
110
+ type: PageComponent,
111
+ isStandalone: true,
112
+ selector: "ui-page",
113
+ inputs: {
114
+ maxWidth: {
115
+ classPropertyName: "maxWidth",
116
+ publicName: "maxWidth",
117
+ isSignal: true,
118
+ isRequired: false,
119
+ transformFunction: null
120
+ },
121
+ padding: {
122
+ classPropertyName: "padding",
123
+ publicName: "padding",
124
+ isSignal: true,
125
+ isRequired: false,
126
+ transformFunction: null
127
+ },
128
+ centered: {
129
+ classPropertyName: "centered",
130
+ publicName: "centered",
131
+ isSignal: true,
132
+ isRequired: false,
133
+ transformFunction: null
134
+ },
135
+ background: {
136
+ classPropertyName: "background",
137
+ publicName: "background",
138
+ isSignal: true,
139
+ isRequired: false,
140
+ transformFunction: null
141
+ },
142
+ fillViewport: {
143
+ classPropertyName: "fillViewport",
144
+ publicName: "fillViewport",
145
+ isSignal: true,
146
+ isRequired: false,
147
+ transformFunction: null
148
+ },
149
+ stickyHeader: {
150
+ classPropertyName: "stickyHeader",
151
+ publicName: "stickyHeader",
152
+ isSignal: true,
153
+ isRequired: false,
154
+ transformFunction: null
155
+ },
156
+ stickyFooter: {
157
+ classPropertyName: "stickyFooter",
158
+ publicName: "stickyFooter",
159
+ isSignal: true,
160
+ isRequired: false,
161
+ transformFunction: null
162
+ },
163
+ transparent: {
164
+ classPropertyName: "transparent",
165
+ publicName: "transparent",
166
+ isSignal: true,
167
+ isRequired: false,
168
+ transformFunction: null
169
+ },
170
+ ownScroll: {
171
+ classPropertyName: "ownScroll",
172
+ publicName: "ownScroll",
173
+ isSignal: true,
174
+ isRequired: false,
175
+ transformFunction: null
176
+ },
177
+ focusKey: {
178
+ classPropertyName: "focusKey",
179
+ publicName: "focusKey",
180
+ isSignal: true,
181
+ isRequired: false,
182
+ transformFunction: null
183
+ }
184
+ },
185
+ viewQueries: [{
186
+ propertyName: "anchor",
187
+ first: true,
188
+ predicate: ["anchor"],
189
+ descendants: true,
190
+ isSignal: true
191
+ }],
192
+ ngImport: i0,
193
+ template: `<div class="pg" [class.pg-fill]="fillViewport()" [class.pg-transparent]="transparent()" [style.background]="backgroundCss()">
194
+ <div class="pg-anchor" tabindex="-1" #anchor></div>
195
+ <div class="pg-header" [class.pg-sticky-h]="stickyHeader() && !transparent()"><ng-content select="[page-header]" /></div>
196
+ <main class="pg-main" [class.pg-pad-resp]="padding() === 'responsive'" [class.pg-centered]="centered()"
197
+ [style.max-width]="maxWidthCss()" [style.padding]="paddingCss()"><ng-content /></main>
198
+ <div class="pg-footer" [class.pg-sticky-f]="stickyFooter() && !transparent()"><ng-content select="[page-footer]" /></div>
199
+ </div>`,
200
+ isInline: true,
201
+ styles: [":host{display:block}.pg{box-sizing:border-box;display:flex;flex-direction:column}.pg.pg-fill{min-height:100vh;min-height:100dvh}.pg.pg-fill.pg-transparent{min-height:0}.pg.pg-transparent{background:transparent}.pg-anchor{height:0;outline:none}.pg-header:empty,.pg-footer:empty{display:none}.pg-header.pg-sticky-h{position:-webkit-sticky;position:sticky;top:0;z-index:20}.pg-footer.pg-sticky-f{position:-webkit-sticky;position:sticky;bottom:0;z-index:20}.pg-main{box-sizing:border-box;flex:1 0 auto;width:100%}.pg-main.pg-centered{margin-left:auto;margin-right:auto}.pg-main.pg-pad-resp{padding:32px 16px 16px}.pg-transparent .pg-main{max-width:none}.pg-transparent .pg-main.pg-pad-resp{padding:8px 0 16px}@media(min-width:640px){.pg-main.pg-pad-resp{padding:32px 24px 16px}.pg-transparent .pg-main.pg-pad-resp{padding:8px 0 16px}}@media(min-width:1024px){.pg-main.pg-pad-resp{padding:32px 0 16px}.pg-transparent .pg-main.pg-pad-resp{padding:8px 0 16px}}\n"],
202
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
203
+ });
204
+ }
205
+ };
206
+ i0.ɵɵngDeclareClassMetadata({
207
+ minVersion: "12.0.0",
208
+ version: "22.2.2",
209
+ ngImport: i0,
210
+ type: PageComponent,
211
+ decorators: [{
212
+ type: Component,
213
+ args: [{
214
+ selector: "ui-page",
215
+ standalone: true,
216
+ changeDetection: ChangeDetectionStrategy.OnPush,
217
+ template: `<div class="pg" [class.pg-fill]="fillViewport()" [class.pg-transparent]="transparent()" [style.background]="backgroundCss()">
218
+ <div class="pg-anchor" tabindex="-1" #anchor></div>
219
+ <div class="pg-header" [class.pg-sticky-h]="stickyHeader() && !transparent()"><ng-content select="[page-header]" /></div>
220
+ <main class="pg-main" [class.pg-pad-resp]="padding() === 'responsive'" [class.pg-centered]="centered()"
221
+ [style.max-width]="maxWidthCss()" [style.padding]="paddingCss()"><ng-content /></main>
222
+ <div class="pg-footer" [class.pg-sticky-f]="stickyFooter() && !transparent()"><ng-content select="[page-footer]" /></div>
223
+ </div>`,
224
+ styles: [":host{display:block}.pg{box-sizing:border-box;display:flex;flex-direction:column}.pg.pg-fill{min-height:100vh;min-height:100dvh}.pg.pg-fill.pg-transparent{min-height:0}.pg.pg-transparent{background:transparent}.pg-anchor{height:0;outline:none}.pg-header:empty,.pg-footer:empty{display:none}.pg-header.pg-sticky-h{position:-webkit-sticky;position:sticky;top:0;z-index:20}.pg-footer.pg-sticky-f{position:-webkit-sticky;position:sticky;bottom:0;z-index:20}.pg-main{box-sizing:border-box;flex:1 0 auto;width:100%}.pg-main.pg-centered{margin-left:auto;margin-right:auto}.pg-main.pg-pad-resp{padding:32px 16px 16px}.pg-transparent .pg-main{max-width:none}.pg-transparent .pg-main.pg-pad-resp{padding:8px 0 16px}@media(min-width:640px){.pg-main.pg-pad-resp{padding:32px 24px 16px}.pg-transparent .pg-main.pg-pad-resp{padding:8px 0 16px}}@media(min-width:1024px){.pg-main.pg-pad-resp{padding:32px 0 16px}.pg-transparent .pg-main.pg-pad-resp{padding:8px 0 16px}}\n"]
225
+ }]
226
+ }],
227
+ ctorParameters: () => [],
228
+ propDecorators: {
229
+ maxWidth: [{
230
+ type: i0.Input,
231
+ args: [{
232
+ isSignal: true,
233
+ alias: "maxWidth",
234
+ required: false
235
+ }]
236
+ }],
237
+ padding: [{
238
+ type: i0.Input,
239
+ args: [{
240
+ isSignal: true,
241
+ alias: "padding",
242
+ required: false
243
+ }]
244
+ }],
245
+ centered: [{
246
+ type: i0.Input,
247
+ args: [{
248
+ isSignal: true,
249
+ alias: "centered",
250
+ required: false
251
+ }]
252
+ }],
253
+ background: [{
254
+ type: i0.Input,
255
+ args: [{
256
+ isSignal: true,
257
+ alias: "background",
258
+ required: false
259
+ }]
260
+ }],
261
+ fillViewport: [{
262
+ type: i0.Input,
263
+ args: [{
264
+ isSignal: true,
265
+ alias: "fillViewport",
266
+ required: false
267
+ }]
268
+ }],
269
+ stickyHeader: [{
270
+ type: i0.Input,
271
+ args: [{
272
+ isSignal: true,
273
+ alias: "stickyHeader",
274
+ required: false
275
+ }]
276
+ }],
277
+ stickyFooter: [{
278
+ type: i0.Input,
279
+ args: [{
280
+ isSignal: true,
281
+ alias: "stickyFooter",
282
+ required: false
283
+ }]
284
+ }],
285
+ transparent: [{
286
+ type: i0.Input,
287
+ args: [{
288
+ isSignal: true,
289
+ alias: "transparent",
290
+ required: false
291
+ }]
292
+ }],
293
+ ownScroll: [{
294
+ type: i0.Input,
295
+ args: [{
296
+ isSignal: true,
297
+ alias: "ownScroll",
298
+ required: false
299
+ }]
300
+ }],
301
+ focusKey: [{
302
+ type: i0.Input,
303
+ args: [{
304
+ isSignal: true,
305
+ alias: "focusKey",
306
+ required: false
307
+ }]
308
+ }],
309
+ anchor: [{
310
+ type: i0.ViewChild,
311
+ args: ["anchor", { isSignal: true }]
312
+ }]
313
+ }
314
+ });
315
+ export { PageComponent };
316
+
317
+ //# sourceMappingURL=forgeroute-ui-page.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgeroute-ui-page.mjs","names":[],"sources":["../../../projects/forgeroute-ui/page/src/lib/page/page.component.ts"],"sourcesContent":["import {\n Component, ChangeDetectionStrategy, DestroyRef, ElementRef, Injector, PLATFORM_ID, afterNextRender, computed, effect, inject,\n input, untracked, viewChild,\n} from '@angular/core';\nimport { DOCUMENT, isPlatformBrowser } from '@angular/common';\n\n/**\n * The shell of a public (not signed-in) page or wizard: an optional header, the content in a single `<main>`, an optional footer.\n *\n * <ui-page maxWidth=\"80rem\" padding=\"responsive\" background=\"#f9fafb\" [fillViewport]=\"true\" [stickyHeader]=\"true\" [stickyFooter]=\"true\"\n * [ownScroll]=\"true\" [transparent]=\"embed()\" [focusKey]=\"step()\">\n * <div page-header> ...stepper... </div>\n * ...the current screen...\n * <div page-footer> ...navigation bar... </div>\n * </ui-page>\n *\n * Inputs (all defaults leave the page plain: no limits, no padding, no sticky parts):\n * - `maxWidth`: CSS length of the main content area (\"80rem\"). Default '' = none.\n * - `padding`: '' (none) | 'responsive' (32px 16px 16px; 32px 24px 16px from 640px; 32px 0 16px from 1024px) | any CSS padding value.\n * - `centered`: centre the main area when `maxWidth` is set (default true).\n * - `background`: CSS colour of the page. Default '' = none.\n * - `fillViewport`: the page is at least one viewport high (100dvh, 100vh fallback) and the footer sticks to the bottom (default false).\n * - `stickyHeader` / `stickyFooter`: the header slot is `position: sticky; top: 0`, the footer slot `bottom: 0`, z-index 20 (default false).\n * Sticky is relative to the nearest scrolling ancestor: NO ancestor may be an overflow container (overflow other than visible), or\n * the bars stop sticking. When the page owns the scrolling, use `ownScroll`.\n * - `transparent`: embed (iframe) mode: transparent background, no minimum height, no maximum width, the padding reduced to 8px 0 16px\n * (only when a padding is set) and neither bar is sticky (default false).\n * - `ownScroll`: make the document the scroll container (html overflow auto; body and app-root overflow visible; with `transparent` also\n * a transparent html/body background). The previous inline values are restored when the page is destroyed (default false).\n * - `focusKey`: when this value CHANGES (not on the first render), the page scrolls its top into view and moves focus to a zero-height\n * anchor so screen readers start at the new content. Smooth scrolling follows the page CSS, instant with prefers-reduced-motion.\n * `focusTop()` does the same on demand.\n *\n * Accessibility: the content wrapper is the only `<main>`; the header and footer slots are plain divs (they are landmarks only if the\n * host projects a `<header>` / `<footer>` / role itself).\n */\n@Component({\n selector: 'ui-page',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<div class=\"pg\" [class.pg-fill]=\"fillViewport()\" [class.pg-transparent]=\"transparent()\" [style.background]=\"backgroundCss()\">\n <div class=\"pg-anchor\" tabindex=\"-1\" #anchor></div>\n <div class=\"pg-header\" [class.pg-sticky-h]=\"stickyHeader() && !transparent()\"><ng-content select=\"[page-header]\" /></div>\n <main class=\"pg-main\" [class.pg-pad-resp]=\"padding() === 'responsive'\" [class.pg-centered]=\"centered()\"\n [style.max-width]=\"maxWidthCss()\" [style.padding]=\"paddingCss()\"><ng-content /></main>\n <div class=\"pg-footer\" [class.pg-sticky-f]=\"stickyFooter() && !transparent()\"><ng-content select=\"[page-footer]\" /></div>\n </div>`,\n styles: [`\n :host { display: block; }\n .pg { box-sizing: border-box; display: flex; flex-direction: column; }\n .pg.pg-fill { min-height: 100vh; min-height: 100dvh; }\n .pg.pg-fill.pg-transparent { min-height: 0; }\n .pg.pg-transparent { background: transparent; }\n .pg-anchor { height: 0; outline: none; }\n .pg-header:empty, .pg-footer:empty { display: none; }\n .pg-header.pg-sticky-h { position: -webkit-sticky; position: sticky; top: 0; z-index: 20; }\n .pg-footer.pg-sticky-f { position: -webkit-sticky; position: sticky; bottom: 0; z-index: 20; }\n .pg-main { box-sizing: border-box; flex: 1 0 auto; width: 100%; }\n .pg-main.pg-centered { margin-left: auto; margin-right: auto; }\n .pg-main.pg-pad-resp { padding: 32px 16px 16px; }\n .pg-transparent .pg-main { max-width: none; }\n .pg-transparent .pg-main.pg-pad-resp { padding: 8px 0 16px; }\n @media (min-width: 640px) {\n .pg-main.pg-pad-resp { padding: 32px 24px 16px; }\n .pg-transparent .pg-main.pg-pad-resp { padding: 8px 0 16px; }\n }\n @media (min-width: 1024px) {\n .pg-main.pg-pad-resp { padding: 32px 0 16px; }\n .pg-transparent .pg-main.pg-pad-resp { padding: 8px 0 16px; }\n }\n `],\n})\nexport class PageComponent {\n readonly maxWidth = input('');\n readonly padding = input('');\n readonly centered = input(true);\n readonly background = input('');\n readonly fillViewport = input(false);\n readonly stickyHeader = input(false);\n readonly stickyFooter = input(false);\n readonly transparent = input(false);\n readonly ownScroll = input(false);\n readonly focusKey = input<unknown>(undefined);\n\n private readonly anchor = viewChild<ElementRef<HTMLElement>>('anchor');\n private readonly doc = inject(DOCUMENT);\n private readonly injector = inject(Injector);\n private readonly browser = isPlatformBrowser(inject(PLATFORM_ID));\n\n protected readonly backgroundCss = computed(() => this.transparent() ? 'transparent' : (this.background() || null));\n protected readonly maxWidthCss = computed(() => this.transparent() ? null : (this.maxWidth() || null));\n protected readonly paddingCss = computed(() => {\n const p = this.padding();\n if (!p || p === 'responsive') return null;\n return this.transparent() ? '8px 0 16px' : p;\n });\n\n private scrollSaved: { el: HTMLElement; prop: 'overflow'; prev: string }[] = [];\n private bgSaved: { el: HTMLElement; prop: 'background'; prev: string }[] = [];\n private focusInitialised = false;\n private lastFocusKey: unknown;\n\n constructor() {\n effect(() => {\n const own = this.ownScroll();\n const transparent = this.transparent();\n if (!this.browser) return;\n untracked(() => {\n if (own) this.applyScroll(); else this.releaseScroll();\n if (own && transparent) this.applyBackground(); else this.releaseBackground();\n });\n });\n effect(() => {\n const key = this.focusKey();\n untracked(() => {\n if (!this.focusInitialised) { this.focusInitialised = true; this.lastFocusKey = key; return; }\n if (Object.is(key, this.lastFocusKey)) return;\n this.lastFocusKey = key;\n afterNextRender(() => this.focusTop(), { injector: this.injector });\n });\n });\n inject(DestroyRef).onDestroy(() => { this.releaseScroll(); this.releaseBackground(); });\n }\n\n /** Scrolls the top of the page into view and moves focus to the (invisible) top anchor. */\n focusTop(): void {\n const el = this.anchor()?.nativeElement;\n if (!el) return;\n const reduce = !!this.doc.defaultView?.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n el.scrollIntoView(reduce ? { block: 'start', behavior: 'instant' as ScrollBehavior } : { block: 'start' });\n el.focus({ preventScroll: true });\n }\n\n private save(list: { el: HTMLElement; prop: 'overflow' | 'background'; prev: string }[], el: HTMLElement | null, prop: 'overflow' | 'background', value: string): void {\n if (!el) return;\n if (!list.some(e => e.el === el)) list.push({ el, prop, prev: el.style[prop] });\n el.style[prop] = value;\n }\n\n private applyScroll(): void {\n const root = this.doc.querySelector('app-root') as HTMLElement | null;\n this.save(this.scrollSaved, this.doc.documentElement, 'overflow', 'auto');\n // body must stay visible: a non-visible body overflow makes body the scroll container and breaks position: sticky\n this.save(this.scrollSaved, this.doc.body, 'overflow', 'visible');\n this.save(this.scrollSaved, root, 'overflow', 'visible');\n }\n private releaseScroll(): void {\n for (const e of this.scrollSaved) e.el.style[e.prop] = e.prev;\n this.scrollSaved = [];\n }\n private applyBackground(): void {\n this.save(this.bgSaved, this.doc.documentElement, 'background', 'transparent');\n this.save(this.bgSaved, this.doc.body, 'background', 'transparent');\n }\n private releaseBackground(): void {\n for (const e of this.bgSaved) e.el.style[e.prop] = e.prev;\n this.bgSaved = [];\n }\n}\n"],"mappings":";;;AAwEA,IA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QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,UAAQ,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -0,0 +1,225 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, computed, inject, input, output } from "@angular/core";
3
+ import { UiLabelsService } from "@forgeroute/ui/core";
4
+ var PaginationComponent = class PaginationComponent {
5
+ constructor() {
6
+ this.labels = inject(UiLabelsService);
7
+ this.page = input(1, ...ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []);
8
+ this.pageSize = input(25, ...ngDevMode ? [{ debugName: "pageSize" }] : /* istanbul ignore next */ []);
9
+ this.totalItems = input(0, ...ngDevMode ? [{ debugName: "totalItems" }] : /* istanbul ignore next */ []);
10
+ this.detached = input(false, ...ngDevMode ? [{ debugName: "detached" }] : /* istanbul ignore next */ []);
11
+ this.embedded = input(false, ...ngDevMode ? [{ debugName: "embedded" }] : /* istanbul ignore next */ []);
12
+ this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
13
+ this.pageChange = output();
14
+ this.totalPages = computed(() => Math.ceil(this.totalItems() / this.pageSize()) || 1, ...ngDevMode ? [{ debugName: "totalPages" }] : /* istanbul ignore next */ []);
15
+ this.startItem = computed(() => (this.page() - 1) * this.pageSize() + 1, ...ngDevMode ? [{ debugName: "startItem" }] : /* istanbul ignore next */ []);
16
+ this.endItem = computed(() => Math.min(this.page() * this.pageSize(), this.totalItems()), ...ngDevMode ? [{ debugName: "endItem" }] : /* istanbul ignore next */ []);
17
+ this.visiblePages = computed(() => {
18
+ const total = this.totalPages();
19
+ if (total <= 7) return Array.from({ length: total }, (_, i) => i + 1);
20
+ const pages = [1];
21
+ const start = Math.max(2, this.page() - 1);
22
+ const end = Math.min(total - 1, this.page() + 1);
23
+ if (start > 2) pages.push(-1);
24
+ for (let i = start; i <= end; i++) pages.push(i);
25
+ if (end < total - 1) pages.push(-1);
26
+ pages.push(total);
27
+ return pages;
28
+ }, ...ngDevMode ? [{ debugName: "visiblePages" }] : /* istanbul ignore next */ []);
29
+ }
30
+ goTo(p) {
31
+ if (p >= 1 && p <= this.totalPages() && p !== this.page()) this.pageChange.emit(p);
32
+ }
33
+ static {
34
+ this.ɵfac = i0.ɵɵngDeclareFactory({
35
+ minVersion: "12.0.0",
36
+ version: "22.2.2",
37
+ ngImport: i0,
38
+ type: PaginationComponent,
39
+ deps: [],
40
+ target: i0.ɵɵFactoryTarget.Component
41
+ });
42
+ }
43
+ static {
44
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
45
+ minVersion: "17.0.0",
46
+ version: "22.2.2",
47
+ type: PaginationComponent,
48
+ isStandalone: true,
49
+ selector: "ui-pagination",
50
+ inputs: {
51
+ page: {
52
+ classPropertyName: "page",
53
+ publicName: "page",
54
+ isSignal: true,
55
+ isRequired: false,
56
+ transformFunction: null
57
+ },
58
+ pageSize: {
59
+ classPropertyName: "pageSize",
60
+ publicName: "pageSize",
61
+ isSignal: true,
62
+ isRequired: false,
63
+ transformFunction: null
64
+ },
65
+ totalItems: {
66
+ classPropertyName: "totalItems",
67
+ publicName: "totalItems",
68
+ isSignal: true,
69
+ isRequired: false,
70
+ transformFunction: null
71
+ },
72
+ detached: {
73
+ classPropertyName: "detached",
74
+ publicName: "detached",
75
+ isSignal: true,
76
+ isRequired: false,
77
+ transformFunction: null
78
+ },
79
+ embedded: {
80
+ classPropertyName: "embedded",
81
+ publicName: "embedded",
82
+ isSignal: true,
83
+ isRequired: false,
84
+ transformFunction: null
85
+ },
86
+ ariaLabel: {
87
+ classPropertyName: "ariaLabel",
88
+ publicName: "ariaLabel",
89
+ isSignal: true,
90
+ isRequired: false,
91
+ transformFunction: null
92
+ }
93
+ },
94
+ outputs: { pageChange: "pageChange" },
95
+ host: { properties: {
96
+ "class.pagination-detached": "detached()",
97
+ "class.pagination-embedded": "embedded()"
98
+ } },
99
+ ngImport: i0,
100
+ template: `
101
+ @if (totalItems() > pageSize()) {
102
+ <nav class="pagination" role="navigation" [attr.aria-label]="ariaLabel().trim() || labels.t('pagination.label')">
103
+ <span class="pagination-info">{{ labels.t('pagination.range', { start: startItem(), end: endItem(), total: totalItems() }) }}</span>
104
+ <div class="pagination-controls">
105
+ <button class="pagination-nav" [disabled]="page() <= 1" [attr.aria-label]="labels.t('pagination.previous')" (click)="goTo(page() - 1)">
106
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><polyline points="15 18 9 12 15 6"/></svg>
107
+ </button>
108
+ @for (p of visiblePages(); track p) {
109
+ @if (p === -1) {
110
+ <span class="pagination-ellipsis">...</span>
111
+ } @else {
112
+ <button class="pagination-page" [class.active]="p === page()" (click)="goTo(p)" [attr.aria-current]="p === page() ? 'page' : null" [attr.aria-label]="labels.t('pagination.page', { page: p })">{{ p }}</button>
113
+ }
114
+ }
115
+ <button class="pagination-nav" [disabled]="page() >= totalPages()" [attr.aria-label]="labels.t('pagination.next')" (click)="goTo(page() + 1)">
116
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><polyline points="9 18 15 12 9 6"/></svg>
117
+ </button>
118
+ </div>
119
+ </nav>
120
+ }
121
+ `,
122
+ isInline: true,
123
+ styles: [".pagination{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;gap:12px;flex-wrap:wrap;background:var(--ui-pagination-bg, #fff);border:1px solid #e2e8f0;border-top:none;border-radius:0 0 10px 10px}:host(.pagination-detached) .pagination{border:1px solid #e2e8f0;border-radius:10px;margin-top:4px}:host(.pagination-embedded) .pagination{background:transparent;border:none;border-radius:0;padding:0;margin-top:0}.pagination-info{font-size:.8125rem;color:#64748b}.pagination-controls{display:flex;align-items:center;gap:4px}.pagination-nav{width:32px;height:32px;border-radius:8px;border:1px solid #e2e8f0;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#334155;font-family:inherit;transition:background .1s}.pagination-nav:hover:not(:disabled){background:#f8fafc;border-color:#cbd5e1}.pagination-nav:disabled{opacity:.4;cursor:default}.pagination-nav:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.pagination-page{min-width:32px;height:32px;border-radius:8px;border:1px solid #e2e8f0;background:#fff;font-size:.8125rem;font-weight:500;color:#334155;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:inherit;transition:background .1s,border-color .1s}.pagination-page:hover{background:#f8fafc;border-color:#cbd5e1}.pagination-page.active{background:#2563eb;color:#fff;border-color:#2563eb}.pagination-page:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.pagination-ellipsis{padding:0 4px;color:#64748b;font-size:.8125rem}@media(max-width:640px),(pointer:coarse){.pagination-controls{flex-wrap:wrap;justify-content:center}.pagination-nav{width:44px;height:44px}.pagination-page{min-width:44px;height:44px}}@media(max-width:480px){.pagination{justify-content:center;padding:10px 12px}.pagination-info{width:100%;text-align:center}}\n"],
124
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
125
+ });
126
+ }
127
+ };
128
+ i0.ɵɵngDeclareClassMetadata({
129
+ minVersion: "12.0.0",
130
+ version: "22.2.2",
131
+ ngImport: i0,
132
+ type: PaginationComponent,
133
+ decorators: [{
134
+ type: Component,
135
+ args: [{
136
+ selector: "ui-pagination",
137
+ standalone: true,
138
+ changeDetection: ChangeDetectionStrategy.OnPush,
139
+ host: {
140
+ "[class.pagination-detached]": "detached()",
141
+ "[class.pagination-embedded]": "embedded()"
142
+ },
143
+ template: `
144
+ @if (totalItems() > pageSize()) {
145
+ <nav class="pagination" role="navigation" [attr.aria-label]="ariaLabel().trim() || labels.t('pagination.label')">
146
+ <span class="pagination-info">{{ labels.t('pagination.range', { start: startItem(), end: endItem(), total: totalItems() }) }}</span>
147
+ <div class="pagination-controls">
148
+ <button class="pagination-nav" [disabled]="page() <= 1" [attr.aria-label]="labels.t('pagination.previous')" (click)="goTo(page() - 1)">
149
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><polyline points="15 18 9 12 15 6"/></svg>
150
+ </button>
151
+ @for (p of visiblePages(); track p) {
152
+ @if (p === -1) {
153
+ <span class="pagination-ellipsis">...</span>
154
+ } @else {
155
+ <button class="pagination-page" [class.active]="p === page()" (click)="goTo(p)" [attr.aria-current]="p === page() ? 'page' : null" [attr.aria-label]="labels.t('pagination.page', { page: p })">{{ p }}</button>
156
+ }
157
+ }
158
+ <button class="pagination-nav" [disabled]="page() >= totalPages()" [attr.aria-label]="labels.t('pagination.next')" (click)="goTo(page() + 1)">
159
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><polyline points="9 18 15 12 9 6"/></svg>
160
+ </button>
161
+ </div>
162
+ </nav>
163
+ }
164
+ `,
165
+ styles: [".pagination{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;gap:12px;flex-wrap:wrap;background:var(--ui-pagination-bg, #fff);border:1px solid #e2e8f0;border-top:none;border-radius:0 0 10px 10px}:host(.pagination-detached) .pagination{border:1px solid #e2e8f0;border-radius:10px;margin-top:4px}:host(.pagination-embedded) .pagination{background:transparent;border:none;border-radius:0;padding:0;margin-top:0}.pagination-info{font-size:.8125rem;color:#64748b}.pagination-controls{display:flex;align-items:center;gap:4px}.pagination-nav{width:32px;height:32px;border-radius:8px;border:1px solid #e2e8f0;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#334155;font-family:inherit;transition:background .1s}.pagination-nav:hover:not(:disabled){background:#f8fafc;border-color:#cbd5e1}.pagination-nav:disabled{opacity:.4;cursor:default}.pagination-nav:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.pagination-page{min-width:32px;height:32px;border-radius:8px;border:1px solid #e2e8f0;background:#fff;font-size:.8125rem;font-weight:500;color:#334155;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:inherit;transition:background .1s,border-color .1s}.pagination-page:hover{background:#f8fafc;border-color:#cbd5e1}.pagination-page.active{background:#2563eb;color:#fff;border-color:#2563eb}.pagination-page:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.pagination-ellipsis{padding:0 4px;color:#64748b;font-size:.8125rem}@media(max-width:640px),(pointer:coarse){.pagination-controls{flex-wrap:wrap;justify-content:center}.pagination-nav{width:44px;height:44px}.pagination-page{min-width:44px;height:44px}}@media(max-width:480px){.pagination{justify-content:center;padding:10px 12px}.pagination-info{width:100%;text-align:center}}\n"]
166
+ }]
167
+ }],
168
+ propDecorators: {
169
+ page: [{
170
+ type: i0.Input,
171
+ args: [{
172
+ isSignal: true,
173
+ alias: "page",
174
+ required: false
175
+ }]
176
+ }],
177
+ pageSize: [{
178
+ type: i0.Input,
179
+ args: [{
180
+ isSignal: true,
181
+ alias: "pageSize",
182
+ required: false
183
+ }]
184
+ }],
185
+ totalItems: [{
186
+ type: i0.Input,
187
+ args: [{
188
+ isSignal: true,
189
+ alias: "totalItems",
190
+ required: false
191
+ }]
192
+ }],
193
+ detached: [{
194
+ type: i0.Input,
195
+ args: [{
196
+ isSignal: true,
197
+ alias: "detached",
198
+ required: false
199
+ }]
200
+ }],
201
+ embedded: [{
202
+ type: i0.Input,
203
+ args: [{
204
+ isSignal: true,
205
+ alias: "embedded",
206
+ required: false
207
+ }]
208
+ }],
209
+ ariaLabel: [{
210
+ type: i0.Input,
211
+ args: [{
212
+ isSignal: true,
213
+ alias: "ariaLabel",
214
+ required: false
215
+ }]
216
+ }],
217
+ pageChange: [{
218
+ type: i0.Output,
219
+ args: ["pageChange"]
220
+ }]
221
+ }
222
+ });
223
+ export { PaginationComponent };
224
+
225
+ //# sourceMappingURL=forgeroute-ui-pagination.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgeroute-ui-pagination.mjs","names":[],"sources":["../../../projects/forgeroute-ui/pagination/src/lib/pagination/pagination.component.ts"],"sourcesContent":["import { Component, input, output, computed, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n@Component({\n selector: 'ui-pagination',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class.pagination-detached]': 'detached()', '[class.pagination-embedded]': 'embedded()' },\n template: `\n @if (totalItems() > pageSize()) {\n <nav class=\"pagination\" role=\"navigation\" [attr.aria-label]=\"ariaLabel().trim() || labels.t('pagination.label')\">\n <span class=\"pagination-info\">{{ labels.t('pagination.range', { start: startItem(), end: endItem(), total: totalItems() }) }}</span>\n <div class=\"pagination-controls\">\n <button class=\"pagination-nav\" [disabled]=\"page() <= 1\" [attr.aria-label]=\"labels.t('pagination.previous')\" (click)=\"goTo(page() - 1)\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\"><polyline points=\"15 18 9 12 15 6\"/></svg>\n </button>\n @for (p of visiblePages(); track p) {\n @if (p === -1) {\n <span class=\"pagination-ellipsis\">...</span>\n } @else {\n <button class=\"pagination-page\" [class.active]=\"p === page()\" (click)=\"goTo(p)\" [attr.aria-current]=\"p === page() ? 'page' : null\" [attr.aria-label]=\"labels.t('pagination.page', { page: p })\">{{ p }}</button>\n }\n }\n <button class=\"pagination-nav\" [disabled]=\"page() >= totalPages()\" [attr.aria-label]=\"labels.t('pagination.next')\" (click)=\"goTo(page() + 1)\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\"><polyline points=\"9 18 15 12 9 6\"/></svg>\n </button>\n </div>\n </nav>\n }\n `,\n styles: [`\n .pagination {\n display: flex; align-items: center; justify-content: space-between;\n padding: 12px 16px; gap: 12px; flex-wrap: wrap;\n background: var(--ui-pagination-bg, #fff); border: 1px solid #e2e8f0; border-top: none;\n border-radius: 0 0 10px 10px;\n }\n /* Under the phone card list (data-table sets [detached]): the cards are separate bordered boxes,\n so the bar is its own bordered, fully rounded box instead of sitting flush under a table. */\n :host(.pagination-detached) .pagination {\n border: 1px solid #e2e8f0; border-radius: 10px; margin-top: 4px;\n }\n /* Embedded: for a card footer / panel that already has its own background and edge. No box of its own: transparent, no border,\n no radius, no padding (the container pads it), so the container colour shows through. Wins over detached. */\n :host(.pagination-embedded) .pagination { background: transparent; border: none; border-radius: 0; padding: 0; margin-top: 0; }\n .pagination-info { font-size: 0.8125rem; color: #64748b; }\n .pagination-controls { display: flex; align-items: center; gap: 4px; }\n .pagination-nav {\n width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e2e8f0;\n background: #fff; cursor: pointer; display: flex; align-items: center;\n justify-content: center; color: #334155; font-family: inherit;\n transition: background 0.1s;\n &:hover:not(:disabled) { background: #f8fafc; border-color: #cbd5e1; }\n &:disabled { opacity: 0.4; cursor: default; }\n &:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }\n }\n .pagination-page {\n min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e2e8f0;\n background: #fff; font-size: 0.8125rem; font-weight: 500; color: #334155;\n cursor: pointer; display: flex; align-items: center; justify-content: center;\n font-family: inherit; transition: background 0.1s, border-color 0.1s;\n &:hover { background: #f8fafc; border-color: #cbd5e1; }\n &.active { background: #2563eb; color: #fff; border-color: #2563eb; }\n &:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }\n }\n .pagination-ellipsis { padding: 0 4px; color: #64748b; font-size: 0.8125rem; }\n /* Touch: 44px targets; controls wrap so up to 7 pages + prev/next still fit a phone. */\n @media (max-width: 640px), (pointer: coarse) {\n .pagination-controls { flex-wrap: wrap; justify-content: center; }\n .pagination-nav { width: 44px; height: 44px; }\n .pagination-page { min-width: 44px; height: 44px; }\n }\n @media (max-width: 480px) {\n .pagination { justify-content: center; padding: 10px 12px; }\n .pagination-info { width: 100%; text-align: center; }\n }\n `],\n})\nexport class PaginationComponent {\n protected readonly labels = inject(UiLabelsService);\n readonly page = input(1);\n readonly pageSize = input(25);\n readonly totalItems = input(0);\n /** Standalone look (full border, full radius, small top margin) for use under separate cards rather than flush under a table. */\n readonly detached = input(false);\n /** Embedded look for a container that already has its own background and edge (a `ui-detail-card` footer, a panel): transparent, no border, no radius, no padding. Default false: unchanged. Wins over `detached`. */\n readonly embedded = input(false);\n /** Accessible name of the pager's navigation landmark (default `Pagination`, translated by the app's `UiLabelsService` dictionary). Give each pager of a page its own name (`Contacts pages`) so assistive tech can tell them apart; empty or blank falls back to the default. */\n readonly ariaLabel = input('');\n\n readonly pageChange = output<number>();\n\n readonly totalPages = computed(() => Math.ceil(this.totalItems() / this.pageSize()) || 1);\n readonly startItem = computed(() => (this.page() - 1) * this.pageSize() + 1);\n readonly endItem = computed(() => Math.min(this.page() * this.pageSize(), this.totalItems()));\n\n readonly visiblePages = computed(() => {\n const total = this.totalPages();\n if (total <= 7) return Array.from({ length: total }, (_, i) => i + 1);\n const pages: number[] = [1];\n const start = Math.max(2, this.page() - 1);\n const end = Math.min(total - 1, this.page() + 1);\n if (start > 2) pages.push(-1);\n for (let i = start; i <= end; i++) pages.push(i);\n if (end < total - 1) pages.push(-1);\n pages.push(total);\n return pages;\n });\n\n goTo(p: number) {\n if (p >= 1 && p <= this.totalPages() && p !== this.page()) {\n this.pageChange.emit(p);\n }\n }\n}\n"],"mappings":";;;AA8EA,IAAa,sBAAb,MAAa,oBAAmB;CA3EhC,cAAA;EA4EqB,KAAA,SAAS,OAAO,eAAe;EACzC,KAAA,OAAO,MAAM,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EACf,KAAA,WAAW,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EACpB,KAAA,aAAa,MAAM,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;EAErB,KAAA,WAAW,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CA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