@forgeroute/ui 0.5.16 → 0.5.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (340) hide show
  1. package/fesm2022/forgeroute-ui-action-bar.mjs +190 -0
  2. package/fesm2022/forgeroute-ui-action-bar.mjs.map +1 -0
  3. package/fesm2022/forgeroute-ui-address-input.mjs +1164 -0
  4. package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -0
  5. package/fesm2022/forgeroute-ui-alert.mjs +223 -0
  6. package/fesm2022/forgeroute-ui-alert.mjs.map +1 -0
  7. package/fesm2022/forgeroute-ui-avatar.mjs +320 -0
  8. package/fesm2022/forgeroute-ui-avatar.mjs.map +1 -0
  9. package/fesm2022/forgeroute-ui-badge.mjs +158 -0
  10. package/fesm2022/forgeroute-ui-badge.mjs.map +1 -0
  11. package/fesm2022/forgeroute-ui-bar-row.mjs +255 -0
  12. package/fesm2022/forgeroute-ui-bar-row.mjs.map +1 -0
  13. package/fesm2022/forgeroute-ui-boards.mjs +2201 -0
  14. package/fesm2022/forgeroute-ui-boards.mjs.map +1 -0
  15. package/fesm2022/forgeroute-ui-bulk-eligible.mjs +172 -0
  16. package/fesm2022/forgeroute-ui-bulk-eligible.mjs.map +1 -0
  17. package/fesm2022/forgeroute-ui-business-hours.mjs +771 -0
  18. package/fesm2022/forgeroute-ui-business-hours.mjs.map +1 -0
  19. package/fesm2022/forgeroute-ui-calendar.mjs +2006 -0
  20. package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -0
  21. package/fesm2022/forgeroute-ui-card-list-item.mjs +556 -0
  22. package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -0
  23. package/fesm2022/forgeroute-ui-charts.mjs +1 -1
  24. package/fesm2022/forgeroute-ui-charts.mjs.map +1 -1
  25. package/fesm2022/forgeroute-ui-checkbox.mjs +815 -0
  26. package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -0
  27. package/fesm2022/forgeroute-ui-chip.mjs +379 -0
  28. package/fesm2022/forgeroute-ui-chip.mjs.map +1 -0
  29. package/fesm2022/forgeroute-ui-color-input.mjs +492 -0
  30. package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -0
  31. package/fesm2022/forgeroute-ui-column-filter.mjs +645 -0
  32. package/fesm2022/forgeroute-ui-column-filter.mjs.map +1 -0
  33. package/fesm2022/forgeroute-ui-columns.mjs +351 -0
  34. package/fesm2022/forgeroute-ui-columns.mjs.map +1 -0
  35. package/fesm2022/forgeroute-ui-combobox.mjs +772 -0
  36. package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -0
  37. package/fesm2022/forgeroute-ui-confirm.mjs +48 -0
  38. package/fesm2022/forgeroute-ui-confirm.mjs.map +1 -0
  39. package/fesm2022/forgeroute-ui-contact-picker.mjs +865 -0
  40. package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -0
  41. package/fesm2022/forgeroute-ui-conversations.mjs +3627 -0
  42. package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -0
  43. package/fesm2022/forgeroute-ui-copy-field.mjs +378 -0
  44. package/fesm2022/forgeroute-ui-copy-field.mjs.map +1 -0
  45. package/fesm2022/forgeroute-ui-data-table-core.mjs +6150 -0
  46. package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -0
  47. package/fesm2022/forgeroute-ui-date-input.mjs +384 -0
  48. package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -0
  49. package/fesm2022/forgeroute-ui-date-range-picker.mjs +453 -0
  50. package/fesm2022/forgeroute-ui-date-range-picker.mjs.map +1 -0
  51. package/fesm2022/forgeroute-ui-datetime-input.mjs +375 -0
  52. package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -0
  53. package/fesm2022/forgeroute-ui-detail-card.mjs +655 -0
  54. package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -0
  55. package/fesm2022/forgeroute-ui-discount-selector.mjs +259 -0
  56. package/fesm2022/forgeroute-ui-discount-selector.mjs.map +1 -0
  57. package/fesm2022/forgeroute-ui-divider.mjs +111 -0
  58. package/fesm2022/forgeroute-ui-divider.mjs.map +1 -0
  59. package/fesm2022/forgeroute-ui-dropdown.mjs +550 -0
  60. package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -0
  61. package/fesm2022/forgeroute-ui-editor.mjs +4545 -0
  62. package/fesm2022/forgeroute-ui-editor.mjs.map +1 -0
  63. package/fesm2022/forgeroute-ui-empty-state.mjs +231 -0
  64. package/fesm2022/forgeroute-ui-empty-state.mjs.map +1 -0
  65. package/fesm2022/forgeroute-ui-error-state.mjs +195 -0
  66. package/fesm2022/forgeroute-ui-error-state.mjs.map +1 -0
  67. package/fesm2022/forgeroute-ui-error.mjs +93 -0
  68. package/fesm2022/forgeroute-ui-error.mjs.map +1 -0
  69. package/fesm2022/forgeroute-ui-fade.mjs +117 -0
  70. package/fesm2022/forgeroute-ui-fade.mjs.map +1 -0
  71. package/fesm2022/forgeroute-ui-file-input.mjs +999 -0
  72. package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -0
  73. package/fesm2022/forgeroute-ui-fixed-footer.mjs +115 -0
  74. package/fesm2022/forgeroute-ui-fixed-footer.mjs.map +1 -0
  75. package/fesm2022/forgeroute-ui-form-row.mjs +126 -0
  76. package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -0
  77. package/fesm2022/forgeroute-ui-form-section.mjs +93 -0
  78. package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -0
  79. package/fesm2022/forgeroute-ui-form.mjs +139 -0
  80. package/fesm2022/forgeroute-ui-form.mjs.map +1 -0
  81. package/fesm2022/forgeroute-ui-hint.mjs +47 -0
  82. package/fesm2022/forgeroute-ui-hint.mjs.map +1 -0
  83. package/fesm2022/forgeroute-ui-icon-picker.mjs +424 -0
  84. package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -0
  85. package/fesm2022/forgeroute-ui-icon.mjs +311 -0
  86. package/fesm2022/forgeroute-ui-icon.mjs.map +1 -0
  87. package/fesm2022/forgeroute-ui-image-preview.mjs +237 -0
  88. package/fesm2022/forgeroute-ui-image-preview.mjs.map +1 -0
  89. package/fesm2022/forgeroute-ui-keypad.mjs +278 -0
  90. package/fesm2022/forgeroute-ui-keypad.mjs.map +1 -0
  91. package/fesm2022/forgeroute-ui-kpi-card.mjs +490 -0
  92. package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -0
  93. package/fesm2022/forgeroute-ui-language-switcher.mjs +134 -0
  94. package/fesm2022/forgeroute-ui-language-switcher.mjs.map +1 -0
  95. package/fesm2022/forgeroute-ui-layout.mjs +18 -0
  96. package/fesm2022/forgeroute-ui-layout.mjs.map +1 -0
  97. package/fesm2022/forgeroute-ui-list-item.mjs +620 -0
  98. package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -0
  99. package/fesm2022/forgeroute-ui-list.mjs +866 -0
  100. package/fesm2022/forgeroute-ui-list.mjs.map +1 -0
  101. package/fesm2022/forgeroute-ui-live-region.mjs +118 -0
  102. package/fesm2022/forgeroute-ui-live-region.mjs.map +1 -0
  103. package/fesm2022/forgeroute-ui-map.mjs +5 -1
  104. package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
  105. package/fesm2022/forgeroute-ui-maps.mjs +2 -1
  106. package/fesm2022/forgeroute-ui-maps.mjs.map +1 -1
  107. package/fesm2022/forgeroute-ui-media.mjs +4615 -0
  108. package/fesm2022/forgeroute-ui-media.mjs.map +1 -0
  109. package/fesm2022/forgeroute-ui-messaging.mjs +20 -1
  110. package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
  111. package/fesm2022/forgeroute-ui-more-menu.mjs +418 -0
  112. package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -0
  113. package/fesm2022/forgeroute-ui-multi-select.mjs +532 -0
  114. package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -0
  115. package/fesm2022/forgeroute-ui-notes.mjs +768 -0
  116. package/fesm2022/forgeroute-ui-notes.mjs.map +1 -0
  117. package/fesm2022/forgeroute-ui-notification-bell.mjs +587 -0
  118. package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -0
  119. package/fesm2022/forgeroute-ui-offline-banner.mjs +156 -0
  120. package/fesm2022/forgeroute-ui-offline-banner.mjs.map +1 -0
  121. package/fesm2022/forgeroute-ui-option-card.mjs +379 -0
  122. package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -0
  123. package/fesm2022/forgeroute-ui-page.mjs +317 -0
  124. package/fesm2022/forgeroute-ui-page.mjs.map +1 -0
  125. package/fesm2022/forgeroute-ui-pagination.mjs +225 -0
  126. package/fesm2022/forgeroute-ui-pagination.mjs.map +1 -0
  127. package/fesm2022/forgeroute-ui-panel-info-list.mjs +422 -0
  128. package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -0
  129. package/fesm2022/forgeroute-ui-password-requirements.mjs +237 -0
  130. package/fesm2022/forgeroute-ui-password-requirements.mjs.map +1 -0
  131. package/fesm2022/forgeroute-ui-payments.mjs +6243 -0
  132. package/fesm2022/forgeroute-ui-payments.mjs.map +1 -0
  133. package/fesm2022/forgeroute-ui-pdf.mjs +9 -1
  134. package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
  135. package/fesm2022/forgeroute-ui-phone-number-picker.mjs +840 -0
  136. package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -0
  137. package/fesm2022/forgeroute-ui-pill-tabs.mjs +546 -0
  138. package/fesm2022/forgeroute-ui-pill-tabs.mjs.map +1 -0
  139. package/fesm2022/forgeroute-ui-print.mjs +76 -0
  140. package/fesm2022/forgeroute-ui-print.mjs.map +1 -0
  141. package/fesm2022/forgeroute-ui-progress-bar.mjs +252 -0
  142. package/fesm2022/forgeroute-ui-progress-bar.mjs.map +1 -0
  143. package/fesm2022/forgeroute-ui-progress-ring.mjs +277 -0
  144. package/fesm2022/forgeroute-ui-progress-ring.mjs.map +1 -0
  145. package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs +301 -0
  146. package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs.map +1 -0
  147. package/fesm2022/forgeroute-ui-quickbooks.mjs +18 -1
  148. package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
  149. package/fesm2022/forgeroute-ui-radio-matrix.mjs +471 -0
  150. package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -0
  151. package/fesm2022/forgeroute-ui-radio.mjs +911 -0
  152. package/fesm2022/forgeroute-ui-radio.mjs.map +1 -0
  153. package/fesm2022/forgeroute-ui-read-only-mode.mjs +15 -0
  154. package/fesm2022/forgeroute-ui-read-only-mode.mjs.map +1 -0
  155. package/fesm2022/forgeroute-ui-readonly-fieldset.mjs +146 -0
  156. package/fesm2022/forgeroute-ui-readonly-fieldset.mjs.map +1 -0
  157. package/fesm2022/forgeroute-ui-reminder-alerts.mjs +249 -0
  158. package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -0
  159. package/fesm2022/forgeroute-ui-search-input.mjs +373 -0
  160. package/fesm2022/forgeroute-ui-search-input.mjs.map +1 -0
  161. package/fesm2022/forgeroute-ui-section-header.mjs +296 -0
  162. package/fesm2022/forgeroute-ui-section-header.mjs.map +1 -0
  163. package/fesm2022/forgeroute-ui-select.mjs +498 -0
  164. package/fesm2022/forgeroute-ui-select.mjs.map +1 -0
  165. package/fesm2022/forgeroute-ui-setup.mjs +4649 -0
  166. package/fesm2022/forgeroute-ui-setup.mjs.map +1 -0
  167. package/fesm2022/forgeroute-ui-share-menu.mjs +461 -0
  168. package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -0
  169. package/fesm2022/forgeroute-ui-shell.mjs +981 -0
  170. package/fesm2022/forgeroute-ui-shell.mjs.map +1 -0
  171. package/fesm2022/forgeroute-ui-show.mjs +129 -0
  172. package/fesm2022/forgeroute-ui-show.mjs.map +1 -0
  173. package/fesm2022/forgeroute-ui-sidebar-layout.mjs +355 -0
  174. package/fesm2022/forgeroute-ui-sidebar-layout.mjs.map +1 -0
  175. package/fesm2022/forgeroute-ui-skeleton.mjs +152 -0
  176. package/fesm2022/forgeroute-ui-skeleton.mjs.map +1 -0
  177. package/fesm2022/forgeroute-ui-skip-link.mjs +129 -0
  178. package/fesm2022/forgeroute-ui-skip-link.mjs.map +1 -0
  179. package/fesm2022/forgeroute-ui-snackbar.mjs +200 -0
  180. package/fesm2022/forgeroute-ui-snackbar.mjs.map +1 -0
  181. package/fesm2022/forgeroute-ui-square.mjs +15 -1
  182. package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
  183. package/fesm2022/forgeroute-ui-stack.mjs +233 -0
  184. package/fesm2022/forgeroute-ui-stack.mjs.map +1 -0
  185. package/fesm2022/forgeroute-ui-stacked-bar.mjs +200 -0
  186. package/fesm2022/forgeroute-ui-stacked-bar.mjs.map +1 -0
  187. package/fesm2022/forgeroute-ui-stacking-plan.mjs +365 -0
  188. package/fesm2022/forgeroute-ui-stacking-plan.mjs.map +1 -0
  189. package/fesm2022/forgeroute-ui-star-rating.mjs +498 -0
  190. package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -0
  191. package/fesm2022/forgeroute-ui-star.mjs +184 -0
  192. package/fesm2022/forgeroute-ui-star.mjs.map +1 -0
  193. package/fesm2022/forgeroute-ui-stepper.mjs +615 -0
  194. package/fesm2022/forgeroute-ui-stepper.mjs.map +1 -0
  195. package/fesm2022/forgeroute-ui-stripe.mjs +14 -1
  196. package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
  197. package/fesm2022/forgeroute-ui-swatch-picker.mjs +416 -0
  198. package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -0
  199. package/fesm2022/forgeroute-ui-table-toolbar.mjs +770 -0
  200. package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -0
  201. package/fesm2022/forgeroute-ui-table-types.mjs +277 -0
  202. package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -0
  203. package/fesm2022/forgeroute-ui-text-input.mjs +1003 -0
  204. package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -0
  205. package/fesm2022/forgeroute-ui-text-template-picker.mjs +356 -0
  206. package/fesm2022/forgeroute-ui-text-template-picker.mjs.map +1 -0
  207. package/fesm2022/forgeroute-ui-text.mjs +195 -0
  208. package/fesm2022/forgeroute-ui-text.mjs.map +1 -0
  209. package/fesm2022/forgeroute-ui-textarea-input.mjs +542 -0
  210. package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -0
  211. package/fesm2022/forgeroute-ui-time-input.mjs +401 -0
  212. package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -0
  213. package/fesm2022/forgeroute-ui-timeline.mjs +549 -0
  214. package/fesm2022/forgeroute-ui-timeline.mjs.map +1 -0
  215. package/fesm2022/forgeroute-ui-toast.mjs +507 -0
  216. package/fesm2022/forgeroute-ui-toast.mjs.map +1 -0
  217. package/fesm2022/forgeroute-ui-toggle-badge.mjs +177 -0
  218. package/fesm2022/forgeroute-ui-toggle-badge.mjs.map +1 -0
  219. package/fesm2022/forgeroute-ui-toggle.mjs +275 -0
  220. package/fesm2022/forgeroute-ui-toggle.mjs.map +1 -0
  221. package/fesm2022/forgeroute-ui-tooltip.mjs +155 -0
  222. package/fesm2022/forgeroute-ui-tooltip.mjs.map +1 -0
  223. package/fesm2022/forgeroute-ui-utils.mjs +1071 -0
  224. package/fesm2022/forgeroute-ui-utils.mjs.map +1 -0
  225. package/fesm2022/forgeroute-ui.mjs +105 -70663
  226. package/package.json +417 -1
  227. package/types/forgeroute-ui-action-bar.d.ts +74 -0
  228. package/types/forgeroute-ui-address-input.d.ts +354 -0
  229. package/types/forgeroute-ui-alert.d.ts +89 -0
  230. package/types/forgeroute-ui-avatar.d.ts +85 -0
  231. package/types/forgeroute-ui-badge.d.ts +45 -0
  232. package/types/forgeroute-ui-bar-row.d.ts +90 -0
  233. package/types/forgeroute-ui-boards.d.ts +575 -0
  234. package/types/forgeroute-ui-bulk-eligible.d.ts +53 -0
  235. package/types/forgeroute-ui-business-hours.d.ts +191 -0
  236. package/types/forgeroute-ui-calendar.d.ts +544 -0
  237. package/types/forgeroute-ui-card-list-item.d.ts +186 -0
  238. package/types/forgeroute-ui-charts.d.ts +1 -1
  239. package/types/forgeroute-ui-checkbox.d.ts +270 -0
  240. package/types/forgeroute-ui-chip.d.ts +125 -0
  241. package/types/forgeroute-ui-color-input.d.ts +160 -0
  242. package/types/forgeroute-ui-column-filter.d.ts +130 -0
  243. package/types/forgeroute-ui-columns.d.ts +150 -0
  244. package/types/forgeroute-ui-combobox.d.ts +252 -0
  245. package/types/forgeroute-ui-confirm.d.ts +34 -0
  246. package/types/forgeroute-ui-contact-picker.d.ts +173 -0
  247. package/types/forgeroute-ui-conversations.d.ts +993 -0
  248. package/types/forgeroute-ui-copy-field.d.ts +122 -0
  249. package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
  250. package/types/forgeroute-ui-date-input.d.ts +101 -0
  251. package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
  252. package/types/forgeroute-ui-datetime-input.d.ts +97 -0
  253. package/types/forgeroute-ui-detail-card.d.ts +252 -0
  254. package/types/forgeroute-ui-discount-selector.d.ts +57 -0
  255. package/types/forgeroute-ui-divider.d.ts +40 -0
  256. package/types/forgeroute-ui-dropdown.d.ts +156 -0
  257. package/types/forgeroute-ui-editor.d.ts +873 -0
  258. package/types/forgeroute-ui-empty-state.d.ts +29 -0
  259. package/types/forgeroute-ui-error-state.d.ts +38 -0
  260. package/types/forgeroute-ui-error.d.ts +29 -0
  261. package/types/forgeroute-ui-fade.d.ts +39 -0
  262. package/types/forgeroute-ui-file-input.d.ts +337 -0
  263. package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
  264. package/types/forgeroute-ui-form-row.d.ts +30 -0
  265. package/types/forgeroute-ui-form-section.d.ts +18 -0
  266. package/types/forgeroute-ui-form.d.ts +68 -0
  267. package/types/forgeroute-ui-hint.d.ts +10 -0
  268. package/types/forgeroute-ui-icon-picker.d.ts +122 -0
  269. package/types/forgeroute-ui-icon.d.ts +95 -0
  270. package/types/forgeroute-ui-image-preview.d.ts +88 -0
  271. package/types/forgeroute-ui-keypad.d.ts +73 -0
  272. package/types/forgeroute-ui-kpi-card.d.ts +161 -0
  273. package/types/forgeroute-ui-language-switcher.d.ts +41 -0
  274. package/types/forgeroute-ui-layout.d.ts +13 -0
  275. package/types/forgeroute-ui-list-item.d.ts +253 -0
  276. package/types/forgeroute-ui-list.d.ts +282 -0
  277. package/types/forgeroute-ui-live-region.d.ts +49 -0
  278. package/types/forgeroute-ui-map.d.ts +1 -1
  279. package/types/forgeroute-ui-maps.d.ts +1 -1
  280. package/types/forgeroute-ui-media.d.ts +1221 -0
  281. package/types/forgeroute-ui-messaging.d.ts +6 -1
  282. package/types/forgeroute-ui-more-menu.d.ts +91 -0
  283. package/types/forgeroute-ui-multi-select.d.ts +119 -0
  284. package/types/forgeroute-ui-notes.d.ts +172 -0
  285. package/types/forgeroute-ui-notification-bell.d.ts +135 -0
  286. package/types/forgeroute-ui-offline-banner.d.ts +44 -0
  287. package/types/forgeroute-ui-option-card.d.ts +106 -0
  288. package/types/forgeroute-ui-page.d.ts +115 -0
  289. package/types/forgeroute-ui-pagination.d.ts +55 -0
  290. package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
  291. package/types/forgeroute-ui-password-requirements.d.ts +89 -0
  292. package/types/forgeroute-ui-payments.d.ts +1818 -0
  293. package/types/forgeroute-ui-pdf.d.ts +1 -1
  294. package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
  295. package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
  296. package/types/forgeroute-ui-print.d.ts +40 -0
  297. package/types/forgeroute-ui-progress-bar.d.ts +88 -0
  298. package/types/forgeroute-ui-progress-ring.d.ts +102 -0
  299. package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
  300. package/types/forgeroute-ui-quickbooks.d.ts +4 -1
  301. package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
  302. package/types/forgeroute-ui-radio.d.ts +311 -0
  303. package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
  304. package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
  305. package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
  306. package/types/forgeroute-ui-search-input.d.ts +93 -0
  307. package/types/forgeroute-ui-section-header.d.ts +149 -0
  308. package/types/forgeroute-ui-select.d.ts +183 -0
  309. package/types/forgeroute-ui-setup.d.ts +775 -0
  310. package/types/forgeroute-ui-share-menu.d.ts +99 -0
  311. package/types/forgeroute-ui-shell.d.ts +173 -0
  312. package/types/forgeroute-ui-show.d.ts +40 -0
  313. package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
  314. package/types/forgeroute-ui-skeleton.d.ts +51 -0
  315. package/types/forgeroute-ui-skip-link.d.ts +51 -0
  316. package/types/forgeroute-ui-snackbar.d.ts +50 -0
  317. package/types/forgeroute-ui-square.d.ts +3 -1
  318. package/types/forgeroute-ui-stack.d.ts +99 -0
  319. package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
  320. package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
  321. package/types/forgeroute-ui-star-rating.d.ts +151 -0
  322. package/types/forgeroute-ui-star.d.ts +46 -0
  323. package/types/forgeroute-ui-stepper.d.ts +273 -0
  324. package/types/forgeroute-ui-stripe.d.ts +3 -1
  325. package/types/forgeroute-ui-swatch-picker.d.ts +118 -0
  326. package/types/forgeroute-ui-table-toolbar.d.ts +116 -0
  327. package/types/forgeroute-ui-table-types.d.ts +624 -0
  328. package/types/forgeroute-ui-text-input.d.ts +359 -0
  329. package/types/forgeroute-ui-text-template-picker.d.ts +100 -0
  330. package/types/forgeroute-ui-text.d.ts +76 -0
  331. package/types/forgeroute-ui-textarea-input.d.ts +174 -0
  332. package/types/forgeroute-ui-time-input.d.ts +105 -0
  333. package/types/forgeroute-ui-timeline.d.ts +196 -0
  334. package/types/forgeroute-ui-toast.d.ts +131 -0
  335. package/types/forgeroute-ui-toggle-badge.d.ts +64 -0
  336. package/types/forgeroute-ui-toggle.d.ts +92 -0
  337. package/types/forgeroute-ui-tooltip.d.ts +36 -0
  338. package/types/forgeroute-ui-utils.d.ts +210 -0
  339. package/types/forgeroute-ui.d.ts +106 -19539
  340. package/fesm2022/forgeroute-ui.mjs.map +0 -1
@@ -0,0 +1,378 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, computed, inject, input, output, signal, viewChild } from "@angular/core";
3
+ import { UiLabelsService } from "@forgeroute/ui/core";
4
+ var CopyFieldComponent = class CopyFieldComponent {
5
+ constructor() {
6
+ this.labels = inject(UiLabelsService);
7
+ this.value = input("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
8
+ this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
9
+ this.copyLabelInput = input(null, {
10
+ ...ngDevMode ? { debugName: "copyLabelInput" } : /* istanbul ignore next */ {},
11
+ alias: "copyLabel"
12
+ });
13
+ this.copyLabel = computed(() => this.copyLabelInput() ?? this.labels.t("copyField.copyLabel"), ...ngDevMode ? [{ debugName: "copyLabel" }] : /* istanbul ignore next */ []);
14
+ this.copiedLabelInput = input(null, {
15
+ ...ngDevMode ? { debugName: "copiedLabelInput" } : /* istanbul ignore next */ {},
16
+ alias: "copiedLabel"
17
+ });
18
+ this.copiedLabel = computed(() => this.copiedLabelInput() ?? this.labels.t("copyField.copiedLabel"), ...ngDevMode ? [{ debugName: "copiedLabel" }] : /* istanbul ignore next */ []);
19
+ this.buttonAriaLabel = input("", ...ngDevMode ? [{ debugName: "buttonAriaLabel" }] : /* istanbul ignore next */ []);
20
+ this.copiedMessageInput = input(null, {
21
+ ...ngDevMode ? { debugName: "copiedMessageInput" } : /* istanbul ignore next */ {},
22
+ alias: "copiedMessage"
23
+ });
24
+ this.copiedMessage = computed(() => this.copiedMessageInput() ?? this.labels.t("copyField.copiedMessage"), ...ngDevMode ? [{ debugName: "copiedMessage" }] : /* istanbul ignore next */ []);
25
+ this.failedMessageInput = input(null, {
26
+ ...ngDevMode ? { debugName: "failedMessageInput" } : /* istanbul ignore next */ {},
27
+ alias: "failedMessage"
28
+ });
29
+ this.failedMessage = computed(() => this.failedMessageInput() ?? this.labels.t("copyField.failedMessage"), ...ngDevMode ? [{ debugName: "failedMessage" }] : /* istanbul ignore next */ []);
30
+ this.hint = input("", ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
31
+ this.disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
32
+ this.ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
33
+ this.inputTestId = input("", ...ngDevMode ? [{ debugName: "inputTestId" }] : /* istanbul ignore next */ []);
34
+ this.buttonTestId = input("", ...ngDevMode ? [{ debugName: "buttonTestId" }] : /* istanbul ignore next */ []);
35
+ this.copied = output();
36
+ this.copyFailed = output();
37
+ this._id = `cf-${Math.random().toString(36).slice(2, 8)}`;
38
+ this._state = signal("idle", ...ngDevMode ? [{ debugName: "_state" }] : /* istanbul ignore next */ []);
39
+ this._announcement = computed(() => this._state() === "copied" ? this.copiedMessage() : this._state() === "failed" ? this.failedMessage() : "", ...ngDevMode ? [{ debugName: "_announcement" }] : /* istanbul ignore next */ []);
40
+ this._buttonName = computed(() => this.buttonAriaLabel() || [this.copyLabel(), this.label()].filter(Boolean).join(" "), ...ngDevMode ? [{ debugName: "_buttonName" }] : /* istanbul ignore next */ []);
41
+ this._describedBy = computed(() => {
42
+ const ids = `${this.hint() ? this._id + "-hint" : ""} ${this._state() === "failed" ? this._id + "-fail" : ""} ${this.ariaDescribedBy()}`.split(/\s+/).filter(Boolean);
43
+ const unique = ids.filter((id, i) => ids.indexOf(id) === i);
44
+ return unique.length ? unique.join(" ") : null;
45
+ }, ...ngDevMode ? [{ debugName: "_describedBy" }] : /* istanbul ignore next */ []);
46
+ this.fieldEl = viewChild("field", ...ngDevMode ? [{ debugName: "fieldEl" }] : /* istanbul ignore next */ []);
47
+ this._timer = null;
48
+ }
49
+ ngOnDestroy() {
50
+ if (this._timer) clearTimeout(this._timer);
51
+ }
52
+ selectAll() {
53
+ this.fieldEl()?.nativeElement.select();
54
+ }
55
+ async copy() {
56
+ const text = this.value();
57
+ if (!text || this.disabled()) return false;
58
+ let ok = false;
59
+ try {
60
+ if (typeof navigator !== "undefined" && navigator.clipboard?.writeText) {
61
+ await navigator.clipboard.writeText(text);
62
+ ok = true;
63
+ }
64
+ } catch {
65
+ ok = false;
66
+ }
67
+ if (!ok) ok = this.legacyCopy();
68
+ if (this._timer) {
69
+ clearTimeout(this._timer);
70
+ this._timer = null;
71
+ }
72
+ if (ok) {
73
+ this._state.set("copied");
74
+ this.copied.emit(text);
75
+ this._timer = setTimeout(() => {
76
+ this._state.set("idle");
77
+ this._timer = null;
78
+ }, 2e3);
79
+ } else {
80
+ this.selectAll();
81
+ this._state.set("failed");
82
+ this.copyFailed.emit();
83
+ }
84
+ return ok;
85
+ }
86
+ legacyCopy() {
87
+ const el = this.fieldEl()?.nativeElement;
88
+ if (!el || typeof document === "undefined" || typeof document.execCommand !== "function") return false;
89
+ try {
90
+ el.focus();
91
+ el.select();
92
+ el.setSelectionRange(0, el.value.length);
93
+ return document.execCommand("copy");
94
+ } catch {
95
+ return false;
96
+ }
97
+ }
98
+ static {
99
+ this.ɵfac = i0.ɵɵngDeclareFactory({
100
+ minVersion: "12.0.0",
101
+ version: "22.2.2",
102
+ ngImport: i0,
103
+ type: CopyFieldComponent,
104
+ deps: [],
105
+ target: i0.ɵɵFactoryTarget.Component
106
+ });
107
+ }
108
+ static {
109
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
110
+ minVersion: "17.0.0",
111
+ version: "22.2.2",
112
+ type: CopyFieldComponent,
113
+ isStandalone: true,
114
+ selector: "ui-copy-field",
115
+ inputs: {
116
+ value: {
117
+ classPropertyName: "value",
118
+ publicName: "value",
119
+ isSignal: true,
120
+ isRequired: false,
121
+ transformFunction: null
122
+ },
123
+ label: {
124
+ classPropertyName: "label",
125
+ publicName: "label",
126
+ isSignal: true,
127
+ isRequired: false,
128
+ transformFunction: null
129
+ },
130
+ copyLabelInput: {
131
+ classPropertyName: "copyLabelInput",
132
+ publicName: "copyLabel",
133
+ isSignal: true,
134
+ isRequired: false,
135
+ transformFunction: null
136
+ },
137
+ copiedLabelInput: {
138
+ classPropertyName: "copiedLabelInput",
139
+ publicName: "copiedLabel",
140
+ isSignal: true,
141
+ isRequired: false,
142
+ transformFunction: null
143
+ },
144
+ buttonAriaLabel: {
145
+ classPropertyName: "buttonAriaLabel",
146
+ publicName: "buttonAriaLabel",
147
+ isSignal: true,
148
+ isRequired: false,
149
+ transformFunction: null
150
+ },
151
+ copiedMessageInput: {
152
+ classPropertyName: "copiedMessageInput",
153
+ publicName: "copiedMessage",
154
+ isSignal: true,
155
+ isRequired: false,
156
+ transformFunction: null
157
+ },
158
+ failedMessageInput: {
159
+ classPropertyName: "failedMessageInput",
160
+ publicName: "failedMessage",
161
+ isSignal: true,
162
+ isRequired: false,
163
+ transformFunction: null
164
+ },
165
+ hint: {
166
+ classPropertyName: "hint",
167
+ publicName: "hint",
168
+ isSignal: true,
169
+ isRequired: false,
170
+ transformFunction: null
171
+ },
172
+ disabled: {
173
+ classPropertyName: "disabled",
174
+ publicName: "disabled",
175
+ isSignal: true,
176
+ isRequired: false,
177
+ transformFunction: null
178
+ },
179
+ ariaDescribedBy: {
180
+ classPropertyName: "ariaDescribedBy",
181
+ publicName: "ariaDescribedBy",
182
+ isSignal: true,
183
+ isRequired: false,
184
+ transformFunction: null
185
+ },
186
+ inputTestId: {
187
+ classPropertyName: "inputTestId",
188
+ publicName: "inputTestId",
189
+ isSignal: true,
190
+ isRequired: false,
191
+ transformFunction: null
192
+ },
193
+ buttonTestId: {
194
+ classPropertyName: "buttonTestId",
195
+ publicName: "buttonTestId",
196
+ isSignal: true,
197
+ isRequired: false,
198
+ transformFunction: null
199
+ }
200
+ },
201
+ outputs: {
202
+ copied: "copied",
203
+ copyFailed: "copyFailed"
204
+ },
205
+ viewQueries: [{
206
+ propertyName: "fieldEl",
207
+ first: true,
208
+ predicate: ["field"],
209
+ descendants: true,
210
+ isSignal: true
211
+ }],
212
+ ngImport: i0,
213
+ template: `
214
+ <div class="cf-field">
215
+ @if (label()) { <label class="cf-label" [for]="_id">{{ label() }}</label> }
216
+ <div class="cf-row">
217
+ <input #field class="cf-input" type="text" readonly [id]="_id" [value]="value()" [attr.aria-describedby]="_describedBy()"
218
+ [attr.data-testid]="inputTestId() || null" (focus)="selectAll()" />
219
+ <button type="button" class="cf-btn" [disabled]="disabled() || !value()" [attr.aria-label]="_buttonName()"
220
+ [attr.data-testid]="buttonTestId() || null" (click)="copy()">
221
+ {{ _state() === 'copied' ? copiedLabel() : copyLabel() }}
222
+ </button>
223
+ </div>
224
+ @if (hint()) { <p class="cf-hint" [id]="_id + '-hint'">{{ hint() }}</p> }
225
+ <span class="cf-sr" role="status" aria-live="polite" aria-atomic="true">{{ _announcement() }}</span>
226
+ @if (_state() === 'failed') { <p class="cf-fail" [id]="_id + '-fail'">{{ failedMessage() }}</p> }
227
+ </div>
228
+ `,
229
+ isInline: true,
230
+ styles: [":host{display:block}.cf-field{display:flex;flex-direction:column;gap:4px}.cf-label{font-size:.8125rem;font-weight:500;color:#334155}.cf-row{display:flex;gap:8px;align-items:stretch}.cf-input{flex:1 1 auto;min-width:0;box-sizing:border-box;min-height:40px;padding:8px 12px;font:inherit;font-size:.875rem;color:#0f172a;background:#f8fafc;border:1px solid #94a3b8;border-radius:8px;text-overflow:ellipsis}.cf-input:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}.cf-btn{flex:0 0 auto;min-height:40px;padding:0 16px;font:inherit;font-size:.875rem;font-weight:600;color:#0f172a;background:#fff;border:1px solid #94a3b8;border-radius:8px;cursor:pointer}.cf-btn:hover:not(:disabled){background:#f1f5f9}.cf-btn:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}.cf-btn:disabled{opacity:.55;cursor:not-allowed}.cf-hint{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.cf-fail{margin:0;font-size:.75rem;line-height:1.4;color:#b91c1c}.cf-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(pointer:coarse),(max-width:480px){.cf-input,.cf-btn{min-height:44px}}\n"],
231
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
232
+ });
233
+ }
234
+ };
235
+ i0.ɵɵngDeclareClassMetadata({
236
+ minVersion: "12.0.0",
237
+ version: "22.2.2",
238
+ ngImport: i0,
239
+ type: CopyFieldComponent,
240
+ decorators: [{
241
+ type: Component,
242
+ args: [{
243
+ selector: "ui-copy-field",
244
+ standalone: true,
245
+ changeDetection: ChangeDetectionStrategy.OnPush,
246
+ template: `
247
+ <div class="cf-field">
248
+ @if (label()) { <label class="cf-label" [for]="_id">{{ label() }}</label> }
249
+ <div class="cf-row">
250
+ <input #field class="cf-input" type="text" readonly [id]="_id" [value]="value()" [attr.aria-describedby]="_describedBy()"
251
+ [attr.data-testid]="inputTestId() || null" (focus)="selectAll()" />
252
+ <button type="button" class="cf-btn" [disabled]="disabled() || !value()" [attr.aria-label]="_buttonName()"
253
+ [attr.data-testid]="buttonTestId() || null" (click)="copy()">
254
+ {{ _state() === 'copied' ? copiedLabel() : copyLabel() }}
255
+ </button>
256
+ </div>
257
+ @if (hint()) { <p class="cf-hint" [id]="_id + '-hint'">{{ hint() }}</p> }
258
+ <span class="cf-sr" role="status" aria-live="polite" aria-atomic="true">{{ _announcement() }}</span>
259
+ @if (_state() === 'failed') { <p class="cf-fail" [id]="_id + '-fail'">{{ failedMessage() }}</p> }
260
+ </div>
261
+ `,
262
+ styles: [":host{display:block}.cf-field{display:flex;flex-direction:column;gap:4px}.cf-label{font-size:.8125rem;font-weight:500;color:#334155}.cf-row{display:flex;gap:8px;align-items:stretch}.cf-input{flex:1 1 auto;min-width:0;box-sizing:border-box;min-height:40px;padding:8px 12px;font:inherit;font-size:.875rem;color:#0f172a;background:#f8fafc;border:1px solid #94a3b8;border-radius:8px;text-overflow:ellipsis}.cf-input:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}.cf-btn{flex:0 0 auto;min-height:40px;padding:0 16px;font:inherit;font-size:.875rem;font-weight:600;color:#0f172a;background:#fff;border:1px solid #94a3b8;border-radius:8px;cursor:pointer}.cf-btn:hover:not(:disabled){background:#f1f5f9}.cf-btn:focus-visible{outline:2px solid #1d4ed8;outline-offset:1px}.cf-btn:disabled{opacity:.55;cursor:not-allowed}.cf-hint{margin:0;font-size:.75rem;line-height:1.4;color:#64748b}.cf-fail{margin:0;font-size:.75rem;line-height:1.4;color:#b91c1c}.cf-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(pointer:coarse),(max-width:480px){.cf-input,.cf-btn{min-height:44px}}\n"]
263
+ }]
264
+ }],
265
+ propDecorators: {
266
+ value: [{
267
+ type: i0.Input,
268
+ args: [{
269
+ isSignal: true,
270
+ alias: "value",
271
+ required: false
272
+ }]
273
+ }],
274
+ label: [{
275
+ type: i0.Input,
276
+ args: [{
277
+ isSignal: true,
278
+ alias: "label",
279
+ required: false
280
+ }]
281
+ }],
282
+ copyLabelInput: [{
283
+ type: i0.Input,
284
+ args: [{
285
+ isSignal: true,
286
+ alias: "copyLabel",
287
+ required: false
288
+ }]
289
+ }],
290
+ copiedLabelInput: [{
291
+ type: i0.Input,
292
+ args: [{
293
+ isSignal: true,
294
+ alias: "copiedLabel",
295
+ required: false
296
+ }]
297
+ }],
298
+ buttonAriaLabel: [{
299
+ type: i0.Input,
300
+ args: [{
301
+ isSignal: true,
302
+ alias: "buttonAriaLabel",
303
+ required: false
304
+ }]
305
+ }],
306
+ copiedMessageInput: [{
307
+ type: i0.Input,
308
+ args: [{
309
+ isSignal: true,
310
+ alias: "copiedMessage",
311
+ required: false
312
+ }]
313
+ }],
314
+ failedMessageInput: [{
315
+ type: i0.Input,
316
+ args: [{
317
+ isSignal: true,
318
+ alias: "failedMessage",
319
+ required: false
320
+ }]
321
+ }],
322
+ hint: [{
323
+ type: i0.Input,
324
+ args: [{
325
+ isSignal: true,
326
+ alias: "hint",
327
+ required: false
328
+ }]
329
+ }],
330
+ disabled: [{
331
+ type: i0.Input,
332
+ args: [{
333
+ isSignal: true,
334
+ alias: "disabled",
335
+ required: false
336
+ }]
337
+ }],
338
+ ariaDescribedBy: [{
339
+ type: i0.Input,
340
+ args: [{
341
+ isSignal: true,
342
+ alias: "ariaDescribedBy",
343
+ required: false
344
+ }]
345
+ }],
346
+ inputTestId: [{
347
+ type: i0.Input,
348
+ args: [{
349
+ isSignal: true,
350
+ alias: "inputTestId",
351
+ required: false
352
+ }]
353
+ }],
354
+ buttonTestId: [{
355
+ type: i0.Input,
356
+ args: [{
357
+ isSignal: true,
358
+ alias: "buttonTestId",
359
+ required: false
360
+ }]
361
+ }],
362
+ copied: [{
363
+ type: i0.Output,
364
+ args: ["copied"]
365
+ }],
366
+ copyFailed: [{
367
+ type: i0.Output,
368
+ args: ["copyFailed"]
369
+ }],
370
+ fieldEl: [{
371
+ type: i0.ViewChild,
372
+ args: ["field", { isSignal: true }]
373
+ }]
374
+ }
375
+ });
376
+ export { CopyFieldComponent };
377
+
378
+ //# sourceMappingURL=forgeroute-ui-copy-field.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgeroute-ui-copy-field.mjs","names":[],"sources":["../../../projects/forgeroute-ui/copy-field/src/lib/copy-field/copy-field.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ElementRef, OnDestroy, input, output, signal, viewChild, computed, inject } from '@angular/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n/**\n * A read-only text field with a Copy button (a feed address, an API URL, an invite link).\n *\n * <ui-copy-field label=\"Feed address\" [value]=\"feedUrl()\" (copied)=\"toast.success('Address copied')\" />\n *\n * The button copies `value` with the Clipboard API; where that is missing or refused (older Safari / Firefox settings, an insecure page) it\n * selects the text and uses `document.execCommand('copy')`. If that fails too, the text stays selected and a status line asks the user to\n * press Ctrl/Cmd + C, and `(copyFailed)` is emitted. A polite live region announces the result. The button's accessible name contains its\n * visible text (WCAG 2.5.3). The field shows the full value (it scrolls inside the field); it never changes `value`.\n */\n@Component({\n selector: 'ui-copy-field',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"cf-field\">\n @if (label()) { <label class=\"cf-label\" [for]=\"_id\">{{ label() }}</label> }\n <div class=\"cf-row\">\n <input #field class=\"cf-input\" type=\"text\" readonly [id]=\"_id\" [value]=\"value()\" [attr.aria-describedby]=\"_describedBy()\"\n [attr.data-testid]=\"inputTestId() || null\" (focus)=\"selectAll()\" />\n <button type=\"button\" class=\"cf-btn\" [disabled]=\"disabled() || !value()\" [attr.aria-label]=\"_buttonName()\"\n [attr.data-testid]=\"buttonTestId() || null\" (click)=\"copy()\">\n {{ _state() === 'copied' ? copiedLabel() : copyLabel() }}\n </button>\n </div>\n @if (hint()) { <p class=\"cf-hint\" [id]=\"_id + '-hint'\">{{ hint() }}</p> }\n <span class=\"cf-sr\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\">{{ _announcement() }}</span>\n @if (_state() === 'failed') { <p class=\"cf-fail\" [id]=\"_id + '-fail'\">{{ failedMessage() }}</p> }\n </div>\n `,\n styles: [`\n :host { display: block; }\n .cf-field { display: flex; flex-direction: column; gap: 4px; }\n .cf-label { font-size: 0.8125rem; font-weight: 500; color: #334155; }\n .cf-row { display: flex; gap: 8px; align-items: stretch; }\n .cf-input { flex: 1 1 auto; min-width: 0; box-sizing: border-box; min-height: 40px; padding: 8px 12px; font: inherit; font-size: 0.875rem;\n color: #0f172a; background: #f8fafc; border: 1px solid #94a3b8; border-radius: 8px; text-overflow: ellipsis; }\n .cf-input:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 1px; }\n .cf-btn { flex: 0 0 auto; min-height: 40px; padding: 0 16px; font: inherit; font-size: 0.875rem; font-weight: 600; color: #0f172a; background: #fff;\n border: 1px solid #94a3b8; border-radius: 8px; cursor: pointer; }\n .cf-btn:hover:not(:disabled) { background: #f1f5f9; }\n .cf-btn:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 1px; }\n .cf-btn:disabled { opacity: 0.55; cursor: not-allowed; }\n .cf-hint { margin: 0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }\n .cf-fail { margin: 0; font-size: 0.75rem; line-height: 1.4; color: #b91c1c; }\n .cf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n @media (pointer: coarse), (max-width: 480px) { .cf-input, .cf-btn { min-height: 44px; } }\n `],\n})\nexport class CopyFieldComponent implements OnDestroy {\n protected readonly labels = inject(UiLabelsService);\n /** The text shown and copied. */\n readonly value = input('');\n readonly label = input('');\n /** Visible button text (default \"Copy\"). */\n readonly copyLabelInput = input<string | null>(null, { alias: 'copyLabel' });\n readonly copyLabel = computed(() => this.copyLabelInput() ?? this.labels.t('copyField.copyLabel'));\n /** Visible button text for 2 seconds after a successful copy (default \"Copied\"). */\n readonly copiedLabelInput = input<string | null>(null, { alias: 'copiedLabel' });\n readonly copiedLabel = computed(() => this.copiedLabelInput() ?? this.labels.t('copyField.copiedLabel'));\n /** Accessible name of the button; default `<copyLabel> <label>`. Keep the visible text inside it. */\n readonly buttonAriaLabel = input('');\n /** Announced after a successful copy (default \"Copied to clipboard\"). */\n readonly copiedMessageInput = input<string | null>(null, { alias: 'copiedMessage' });\n readonly copiedMessage = computed(() => this.copiedMessageInput() ?? this.labels.t('copyField.copiedMessage'));\n /** Shown and announced when copying was refused (default asks for Ctrl/Cmd + C). */\n readonly failedMessageInput = input<string | null>(null, { alias: 'failedMessage' });\n readonly failedMessage = computed(() => this.failedMessageInput() ?? this.labels.t('copyField.failedMessage'));\n readonly hint = input('');\n readonly disabled = input(false);\n /** Id(s) of host elements that also describe the field (space-separated). */\n readonly ariaDescribedBy = input('');\n readonly inputTestId = input('');\n readonly buttonTestId = input('');\n\n /** The text was copied. */\n readonly copied = output<string>();\n /** Neither the Clipboard API nor the fallback could copy. */\n readonly copyFailed = output<void>();\n\n protected readonly _id = `cf-${Math.random().toString(36).slice(2, 8)}`;\n protected readonly _state = signal<'idle' | 'copied' | 'failed'>('idle');\n protected readonly _announcement = computed(() => this._state() === 'copied' ? this.copiedMessage() : this._state() === 'failed' ? this.failedMessage() : '');\n protected readonly _buttonName = computed(() => this.buttonAriaLabel() || [this.copyLabel(), this.label()].filter(Boolean).join(' '));\n protected readonly _describedBy = computed(() => {\n const ids = `${this.hint() ? this._id + '-hint' : ''} ${this._state() === 'failed' ? this._id + '-fail' : ''} ${this.ariaDescribedBy()}`.split(/\\s+/).filter(Boolean);\n const unique = ids.filter((id, i) => ids.indexOf(id) === i);\n return unique.length ? unique.join(' ') : null;\n });\n private readonly fieldEl = viewChild<ElementRef<HTMLInputElement>>('field');\n private _timer: ReturnType<typeof setTimeout> | null = null;\n\n ngOnDestroy(): void { if (this._timer) clearTimeout(this._timer); }\n\n /** Selects the whole text (also done on focus, so a manual copy is one keystroke away). */\n selectAll(): void { this.fieldEl()?.nativeElement.select(); }\n\n /** Copies `value`; the button calls this. Resolves to true when the text reached the clipboard. */\n async copy(): Promise<boolean> {\n const text = this.value();\n if (!text || this.disabled()) return false;\n let ok = false;\n try {\n if (typeof navigator !== 'undefined' && navigator.clipboard?.writeText) {\n await navigator.clipboard.writeText(text);\n ok = true;\n }\n } catch { ok = false; }\n if (!ok) ok = this.legacyCopy();\n if (this._timer) { clearTimeout(this._timer); this._timer = null; }\n if (ok) {\n this._state.set('copied');\n this.copied.emit(text);\n this._timer = setTimeout(() => { this._state.set('idle'); this._timer = null; }, 2000);\n } else {\n this.selectAll();\n this._state.set('failed');\n this.copyFailed.emit();\n }\n return ok;\n }\n\n private legacyCopy(): boolean {\n const el = this.fieldEl()?.nativeElement;\n if (!el || typeof document === 'undefined' || typeof document.execCommand !== 'function') return false;\n try {\n el.focus();\n el.select();\n el.setSelectionRange(0, el.value.length);\n return document.execCommand('copy');\n } catch { return false; }\n }\n}\n"],"mappings":";;;AAoDA,IAAa,qBAAb,MAAa,mBAAkB;CAvC/B,cAAA;EAwCqB,KAAA,SAAS,OAAO,eAAe;EAEzC,KAAA,QAAQ,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EACjB,KAAA,QAAQ,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EAEjB,KAAA,iBAAiB,MAAqB,MAAI;GAAA,GAAA,YAAA,EAAA,WAAA,iBAAA,+BAAA,CAAA;GAAI,OAAO;EAAW,CAAA;EAChE,KAAA,YAAY,eAAe,KAAK,eAAc,KAAM,KAAK,OAAO,EAAE,qBAAqB,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;EAEzF,KAAA,mBAAmB,MAAqB,MAAI;GAAA,GAAA,YAAA,EAAA,WAAA,mBAAA,+BAAA,CAAA;GAAI,OAAO;EAAa,CAAA;EACpE,KAAA,cAAc,eAAe,KAAK,iBAAgB,KAAM,KAAK,OAAO,EAAE,uBAAuB,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;EAE/F,KAAA,kBAAkB,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,kBAAA,CAAA,+BAAA,CAAA,CAAA;EAE3B,KAAA,qBAAqB,MAAqB,MAAI;GAAA,GAAA,YAAA,EAAA,WAAA,qBAAA,+BAAA,CAAA;GAAI,OAAO;EAAe,CAAA;EACxE,KAAA,gBAAgB,eAAe,KAAK,mBAAkB,KAAM,KAAK,OAAO,EAAE,yBAAyB,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,gBA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