@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,373 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, Injector, afterNextRender, computed, effect, inject, input, model, output, signal, untracked } from "@angular/core";
3
+ import { DOCUMENT } from "@angular/common";
4
+ import { HttpClient, HttpParams } from "@angular/common/http";
5
+ import { takeUntilDestroyed, toObservable } from "@angular/core/rxjs-interop";
6
+ import { debounceTime, distinctUntilChanged, skip, switchMap } from "rxjs/operators";
7
+ import { of } from "rxjs";
8
+ import { FORGEROUTE_CONFIG, UiLabelsService } from "@forgeroute/ui/core";
9
+ var SearchInputComponent = class SearchInputComponent {
10
+ static {
11
+ this.nextId = 0;
12
+ }
13
+ constructor() {
14
+ this.labels = inject(UiLabelsService);
15
+ this.placeholder = input(null, ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
16
+ this.effectivePlaceholder = computed(() => this.placeholder() ?? this.labels.t("search.placeholder"), ...ngDevMode ? [{ debugName: "effectivePlaceholder" }] : /* istanbul ignore next */ []);
17
+ this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
18
+ this.value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
19
+ this.maxlength = input(200, ...ngDevMode ? [{ debugName: "maxlength" }] : /* istanbul ignore next */ []);
20
+ this.endpoint = input("", ...ngDevMode ? [{ debugName: "endpoint" }] : /* istanbul ignore next */ []);
21
+ this.loading = input(false, ...ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []);
22
+ this.collapseAt = input(null, ...ngDevMode ? [{ debugName: "collapseAt" }] : /* istanbul ignore next */ []);
23
+ this.expanded = model(false, ...ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []);
24
+ this.searchChange = output();
25
+ this.filteredData = output();
26
+ this.config = inject(FORGEROUTE_CONFIG, { optional: true });
27
+ this.http = inject(HttpClient);
28
+ this.destroyRef = inject(DestroyRef);
29
+ this.query = signal("", ...ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []);
30
+ this.injector = inject(Injector);
31
+ this.hostEl = inject(ElementRef);
32
+ this.win = inject(DOCUMENT).defaultView;
33
+ this.barId = `ui-search-bar-${SearchInputComponent.nextId++}`;
34
+ this.narrow = signal(false, ...ngDevMode ? [{ debugName: "narrow" }] : /* istanbul ignore next */ []);
35
+ this.collapsed = computed(() => this.collapseAt() !== null && this.narrow(), ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
36
+ effect((onCleanup) => {
37
+ const at = this.collapseAt();
38
+ const win = this.win;
39
+ if (at === null || !Number.isFinite(at) || typeof win?.matchMedia !== "function") {
40
+ untracked(() => this.narrow.set(false));
41
+ return;
42
+ }
43
+ const mq = win.matchMedia(`(max-width: ${at}px)`);
44
+ untracked(() => this.narrow.set(mq.matches));
45
+ const listener = (e) => this.narrow.set(e.matches);
46
+ mq.addEventListener?.("change", listener);
47
+ onCleanup(() => mq.removeEventListener?.("change", listener));
48
+ });
49
+ effect(() => {
50
+ if (!this.collapsed() && this.expanded()) untracked(() => this.expanded.set(false));
51
+ });
52
+ effect(() => {
53
+ const v = this.value();
54
+ untracked(() => {
55
+ if (v !== this.query()) this.query.set(v);
56
+ });
57
+ });
58
+ toObservable(this.query).pipe(skip(1), debounceTime(300), distinctUntilChanged(), switchMap((query) => {
59
+ this.searchChange.emit(query);
60
+ if (!this.endpoint() || !this.config) return of(null);
61
+ const params = new HttpParams().set("search", query);
62
+ return this.http.get(`${this.config.baseUrl}${this.endpoint()}`, { params });
63
+ }), takeUntilDestroyed(this.destroyRef)).subscribe((response) => {
64
+ if (response === null) return;
65
+ const results = Array.isArray(response) ? response : response?.content ?? [];
66
+ this.filteredData.emit(results);
67
+ });
68
+ }
69
+ toggle() {
70
+ const open = !this.expanded();
71
+ this.expanded.set(open);
72
+ if (open) afterNextRender(() => this.hostEl.nativeElement.querySelector("input.search-input")?.focus(), { injector: this.injector });
73
+ }
74
+ onEscape() {
75
+ if (!this.collapsed() || !this.expanded()) return;
76
+ this.expanded.set(false);
77
+ afterNextRender(() => this.hostEl.nativeElement.querySelector(".search-toggle")?.focus(), { injector: this.injector });
78
+ }
79
+ onInput(val) {
80
+ this.value.set(val);
81
+ this.query.set(val);
82
+ }
83
+ static {
84
+ this.ɵfac = i0.ɵɵngDeclareFactory({
85
+ minVersion: "12.0.0",
86
+ version: "22.2.2",
87
+ ngImport: i0,
88
+ type: SearchInputComponent,
89
+ deps: [],
90
+ target: i0.ɵɵFactoryTarget.Component
91
+ });
92
+ }
93
+ static {
94
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
95
+ minVersion: "17.0.0",
96
+ version: "22.2.2",
97
+ type: SearchInputComponent,
98
+ isStandalone: true,
99
+ selector: "ui-search-input",
100
+ inputs: {
101
+ placeholder: {
102
+ classPropertyName: "placeholder",
103
+ publicName: "placeholder",
104
+ isSignal: true,
105
+ isRequired: false,
106
+ transformFunction: null
107
+ },
108
+ ariaLabel: {
109
+ classPropertyName: "ariaLabel",
110
+ publicName: "ariaLabel",
111
+ isSignal: true,
112
+ isRequired: false,
113
+ transformFunction: null
114
+ },
115
+ value: {
116
+ classPropertyName: "value",
117
+ publicName: "value",
118
+ isSignal: true,
119
+ isRequired: false,
120
+ transformFunction: null
121
+ },
122
+ maxlength: {
123
+ classPropertyName: "maxlength",
124
+ publicName: "maxlength",
125
+ isSignal: true,
126
+ isRequired: false,
127
+ transformFunction: null
128
+ },
129
+ endpoint: {
130
+ classPropertyName: "endpoint",
131
+ publicName: "endpoint",
132
+ isSignal: true,
133
+ isRequired: false,
134
+ transformFunction: null
135
+ },
136
+ loading: {
137
+ classPropertyName: "loading",
138
+ publicName: "loading",
139
+ isSignal: true,
140
+ isRequired: false,
141
+ transformFunction: null
142
+ },
143
+ collapseAt: {
144
+ classPropertyName: "collapseAt",
145
+ publicName: "collapseAt",
146
+ isSignal: true,
147
+ isRequired: false,
148
+ transformFunction: null
149
+ },
150
+ expanded: {
151
+ classPropertyName: "expanded",
152
+ publicName: "expanded",
153
+ isSignal: true,
154
+ isRequired: false,
155
+ transformFunction: null
156
+ }
157
+ },
158
+ outputs: {
159
+ value: "valueChange",
160
+ expanded: "expandedChange",
161
+ searchChange: "searchChange",
162
+ filteredData: "filteredData"
163
+ },
164
+ host: {
165
+ listeners: { "keydown.escape": "onEscape()" },
166
+ properties: {
167
+ "class.search-collapsed": "collapsed()",
168
+ "class.search-expanded": "collapsed() && expanded()"
169
+ }
170
+ },
171
+ ngImport: i0,
172
+ template: `
173
+ @if (collapsed()) {
174
+ <!-- Narrow screens (collapseAt): the search is this 44px button; it opens the bar as a full-width panel under the header. -->
175
+ <button type="button" class="search-toggle" data-testid="search-toggle" [attr.aria-expanded]="expanded()" [attr.aria-controls]="barId"
176
+ [attr.aria-label]="labels.t(expanded() ? 'search.close' : 'search.open')" (click)="toggle()">
177
+ <svg aria-hidden="true" focusable="false" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
178
+ <circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/>
179
+ </svg>
180
+ </button>
181
+ }
182
+ <div class="search-bar" [id]="barId" role="search" [hidden]="collapsed() && !expanded()" [class.search-bar-panel]="collapsed() && expanded()">
183
+ <svg
184
+ class="search-icon"
185
+ aria-hidden="true"
186
+ width="16"
187
+ height="16"
188
+ viewBox="0 0 24 24"
189
+ fill="none"
190
+ stroke="currentColor"
191
+ stroke-width="2"
192
+ stroke-linecap="round"
193
+ stroke-linejoin="round">
194
+ <circle cx="11" cy="11" r="8"/>
195
+ <line x1="21" y1="21" x2="16.65" y2="16.65"/>
196
+ </svg>
197
+ <input
198
+ class="search-input"
199
+ type="search"
200
+ [placeholder]="effectivePlaceholder()"
201
+ [attr.aria-label]="ariaLabel() || effectivePlaceholder()"
202
+ [value]="value()"
203
+ (input)="onInput($any($event.target).value)"
204
+ autocomplete="off"
205
+ inputmode="search"
206
+ [attr.maxlength]="maxlength()"
207
+ [attr.aria-busy]="loading() ? 'true' : null"
208
+ [class.search-input-loading]="loading()"
209
+ data-testid="search-input" />
210
+ <span class="search-sr-only" role="status" aria-live="polite" data-testid="search-status">{{ loading() ? labels.t('search.searching') : '' }}</span>
211
+ @if (loading()) {
212
+ <span class="search-spinner" aria-hidden="true" data-testid="search-spinner">
213
+ <span class="search-spinner-ring"></span>
214
+ </span>
215
+ }
216
+ </div>
217
+ `,
218
+ isInline: true,
219
+ styles: [":host{display:block;flex:0 1 var(--ui-search-width, 325px);min-width:0}.search-bar{position:relative;display:flex;align-items:center;width:100%}.search-bar[hidden]{display:none}:host(.search-collapsed){flex:0 0 auto}.search-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:#475569;cursor:pointer}.search-toggle:hover{background:#f1f5f9}.search-toggle:focus-visible{outline:2px solid #3b82f6;outline-offset:0}.search-toggle[aria-expanded=true]{background:#eff6ff;color:#1d4ed8}.search-bar-panel{position:fixed;top:var(--ui-search-bar-top, 64px);left:8px;right:8px;z-index:10000;width:auto;box-sizing:border-box;padding:8px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 10px 25px #00000026}.search-icon{position:absolute;left:10px;color:#94a3b8;pointer-events:none}.search-input{width:100%;padding:9px 10px 9px 34px;border:1px solid #7c8ba1;border-radius:8px;font-size:.875rem;background:#fff;color:#1e293b;outline:none;min-width:0;font-family:inherit;transition:border-color .15s,box-shadow .15s}.search-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.search-input::placeholder{color:#64748b;opacity:1}.search-input-loading{padding-right:34px}.search-input-loading::-webkit-search-cancel-button{display:none}.search-spinner{position:absolute;right:10px;top:50%;margin-top:-8px;width:16px;height:16px;pointer-events:none}.search-spinner-ring{display:block;width:16px;height:16px;box-sizing:border-box;border:2px solid #e2e8f0;border-top-color:#64748b;border-radius:50%;animation:search-spin .6s linear infinite}.search-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@keyframes search-spin{to{transform:rotate(360deg)}}@media(pointer:coarse),(max-width:480px){.search-input{min-height:44px}}@media(max-width:1024px){:host{flex:0 1 280px}}@media(max-width:768px){:host{flex:0 1 240px}}@media(max-width:640px){:host{flex:1 1 0;min-width:160px}.search-input{font-size:16px}}@media(prefers-reduced-motion:reduce){.search-spinner-ring{animation-duration:2s}}\n"],
220
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
221
+ });
222
+ }
223
+ };
224
+ i0.ɵɵngDeclareClassMetadata({
225
+ minVersion: "12.0.0",
226
+ version: "22.2.2",
227
+ ngImport: i0,
228
+ type: SearchInputComponent,
229
+ decorators: [{
230
+ type: Component,
231
+ args: [{
232
+ selector: "ui-search-input",
233
+ standalone: true,
234
+ changeDetection: ChangeDetectionStrategy.OnPush,
235
+ host: {
236
+ "[class.search-collapsed]": "collapsed()",
237
+ "[class.search-expanded]": "collapsed() && expanded()",
238
+ "(keydown.escape)": "onEscape()"
239
+ },
240
+ template: `
241
+ @if (collapsed()) {
242
+ <!-- Narrow screens (collapseAt): the search is this 44px button; it opens the bar as a full-width panel under the header. -->
243
+ <button type="button" class="search-toggle" data-testid="search-toggle" [attr.aria-expanded]="expanded()" [attr.aria-controls]="barId"
244
+ [attr.aria-label]="labels.t(expanded() ? 'search.close' : 'search.open')" (click)="toggle()">
245
+ <svg aria-hidden="true" focusable="false" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
246
+ <circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/>
247
+ </svg>
248
+ </button>
249
+ }
250
+ <div class="search-bar" [id]="barId" role="search" [hidden]="collapsed() && !expanded()" [class.search-bar-panel]="collapsed() && expanded()">
251
+ <svg
252
+ class="search-icon"
253
+ aria-hidden="true"
254
+ width="16"
255
+ height="16"
256
+ viewBox="0 0 24 24"
257
+ fill="none"
258
+ stroke="currentColor"
259
+ stroke-width="2"
260
+ stroke-linecap="round"
261
+ stroke-linejoin="round">
262
+ <circle cx="11" cy="11" r="8"/>
263
+ <line x1="21" y1="21" x2="16.65" y2="16.65"/>
264
+ </svg>
265
+ <input
266
+ class="search-input"
267
+ type="search"
268
+ [placeholder]="effectivePlaceholder()"
269
+ [attr.aria-label]="ariaLabel() || effectivePlaceholder()"
270
+ [value]="value()"
271
+ (input)="onInput($any($event.target).value)"
272
+ autocomplete="off"
273
+ inputmode="search"
274
+ [attr.maxlength]="maxlength()"
275
+ [attr.aria-busy]="loading() ? 'true' : null"
276
+ [class.search-input-loading]="loading()"
277
+ data-testid="search-input" />
278
+ <span class="search-sr-only" role="status" aria-live="polite" data-testid="search-status">{{ loading() ? labels.t('search.searching') : '' }}</span>
279
+ @if (loading()) {
280
+ <span class="search-spinner" aria-hidden="true" data-testid="search-spinner">
281
+ <span class="search-spinner-ring"></span>
282
+ </span>
283
+ }
284
+ </div>
285
+ `,
286
+ styles: [":host{display:block;flex:0 1 var(--ui-search-width, 325px);min-width:0}.search-bar{position:relative;display:flex;align-items:center;width:100%}.search-bar[hidden]{display:none}:host(.search-collapsed){flex:0 0 auto}.search-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:#475569;cursor:pointer}.search-toggle:hover{background:#f1f5f9}.search-toggle:focus-visible{outline:2px solid #3b82f6;outline-offset:0}.search-toggle[aria-expanded=true]{background:#eff6ff;color:#1d4ed8}.search-bar-panel{position:fixed;top:var(--ui-search-bar-top, 64px);left:8px;right:8px;z-index:10000;width:auto;box-sizing:border-box;padding:8px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 10px 25px #00000026}.search-icon{position:absolute;left:10px;color:#94a3b8;pointer-events:none}.search-input{width:100%;padding:9px 10px 9px 34px;border:1px solid #7c8ba1;border-radius:8px;font-size:.875rem;background:#fff;color:#1e293b;outline:none;min-width:0;font-family:inherit;transition:border-color .15s,box-shadow .15s}.search-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.search-input::placeholder{color:#64748b;opacity:1}.search-input-loading{padding-right:34px}.search-input-loading::-webkit-search-cancel-button{display:none}.search-spinner{position:absolute;right:10px;top:50%;margin-top:-8px;width:16px;height:16px;pointer-events:none}.search-spinner-ring{display:block;width:16px;height:16px;box-sizing:border-box;border:2px solid #e2e8f0;border-top-color:#64748b;border-radius:50%;animation:search-spin .6s linear infinite}.search-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@keyframes search-spin{to{transform:rotate(360deg)}}@media(pointer:coarse),(max-width:480px){.search-input{min-height:44px}}@media(max-width:1024px){:host{flex:0 1 280px}}@media(max-width:768px){:host{flex:0 1 240px}}@media(max-width:640px){:host{flex:1 1 0;min-width:160px}.search-input{font-size:16px}}@media(prefers-reduced-motion:reduce){.search-spinner-ring{animation-duration:2s}}\n"]
287
+ }]
288
+ }],
289
+ ctorParameters: () => [],
290
+ propDecorators: {
291
+ placeholder: [{
292
+ type: i0.Input,
293
+ args: [{
294
+ isSignal: true,
295
+ alias: "placeholder",
296
+ required: false
297
+ }]
298
+ }],
299
+ ariaLabel: [{
300
+ type: i0.Input,
301
+ args: [{
302
+ isSignal: true,
303
+ alias: "ariaLabel",
304
+ required: false
305
+ }]
306
+ }],
307
+ value: [{
308
+ type: i0.Input,
309
+ args: [{
310
+ isSignal: true,
311
+ alias: "value",
312
+ required: false
313
+ }]
314
+ }, {
315
+ type: i0.Output,
316
+ args: ["valueChange"]
317
+ }],
318
+ maxlength: [{
319
+ type: i0.Input,
320
+ args: [{
321
+ isSignal: true,
322
+ alias: "maxlength",
323
+ required: false
324
+ }]
325
+ }],
326
+ endpoint: [{
327
+ type: i0.Input,
328
+ args: [{
329
+ isSignal: true,
330
+ alias: "endpoint",
331
+ required: false
332
+ }]
333
+ }],
334
+ loading: [{
335
+ type: i0.Input,
336
+ args: [{
337
+ isSignal: true,
338
+ alias: "loading",
339
+ required: false
340
+ }]
341
+ }],
342
+ collapseAt: [{
343
+ type: i0.Input,
344
+ args: [{
345
+ isSignal: true,
346
+ alias: "collapseAt",
347
+ required: false
348
+ }]
349
+ }],
350
+ expanded: [{
351
+ type: i0.Input,
352
+ args: [{
353
+ isSignal: true,
354
+ alias: "expanded",
355
+ required: false
356
+ }]
357
+ }, {
358
+ type: i0.Output,
359
+ args: ["expandedChange"]
360
+ }],
361
+ searchChange: [{
362
+ type: i0.Output,
363
+ args: ["searchChange"]
364
+ }],
365
+ filteredData: [{
366
+ type: i0.Output,
367
+ args: ["filteredData"]
368
+ }]
369
+ }
370
+ });
371
+ export { SearchInputComponent };
372
+
373
+ //# sourceMappingURL=forgeroute-ui-search-input.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgeroute-ui-search-input.mjs","names":[],"sources":["../../../projects/forgeroute-ui/search-input/src/lib/search-input/search-input.component.ts"],"sourcesContent":["import {\n Component, input, output, model, signal, computed, effect, untracked, afterNextRender, Injector, ElementRef,\n ChangeDetectionStrategy, inject, DestroyRef,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { toObservable } from '@angular/core/rxjs-interop';\nimport { debounceTime, distinctUntilChanged, skip, switchMap } from 'rxjs/operators';\nimport { of } from 'rxjs';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { FORGEROUTE_CONFIG } from '@forgeroute/ui/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n@Component({\n selector: 'ui-search-input',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.search-collapsed]': 'collapsed()',\n '[class.search-expanded]': 'collapsed() && expanded()',\n '(keydown.escape)': 'onEscape()',\n },\n template: `\n @if (collapsed()) {\n <!-- Narrow screens (collapseAt): the search is this 44px button; it opens the bar as a full-width panel under the header. -->\n <button type=\"button\" class=\"search-toggle\" data-testid=\"search-toggle\" [attr.aria-expanded]=\"expanded()\" [attr.aria-controls]=\"barId\"\n [attr.aria-label]=\"labels.t(expanded() ? 'search.close' : 'search.open')\" (click)=\"toggle()\">\n <svg aria-hidden=\"true\" focusable=\"false\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <circle cx=\"11\" cy=\"11\" r=\"8\"/><line x1=\"21\" y1=\"21\" x2=\"16.65\" y2=\"16.65\"/>\n </svg>\n </button>\n }\n <div class=\"search-bar\" [id]=\"barId\" role=\"search\" [hidden]=\"collapsed() && !expanded()\" [class.search-bar-panel]=\"collapsed() && expanded()\">\n <svg\n class=\"search-icon\"\n aria-hidden=\"true\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <circle cx=\"11\" cy=\"11\" r=\"8\"/>\n <line x1=\"21\" y1=\"21\" x2=\"16.65\" y2=\"16.65\"/>\n </svg>\n <input\n class=\"search-input\"\n type=\"search\"\n [placeholder]=\"effectivePlaceholder()\"\n [attr.aria-label]=\"ariaLabel() || effectivePlaceholder()\"\n [value]=\"value()\"\n (input)=\"onInput($any($event.target).value)\"\n autocomplete=\"off\"\n inputmode=\"search\"\n [attr.maxlength]=\"maxlength()\"\n [attr.aria-busy]=\"loading() ? 'true' : null\"\n [class.search-input-loading]=\"loading()\"\n data-testid=\"search-input\" />\n <span class=\"search-sr-only\" role=\"status\" aria-live=\"polite\" data-testid=\"search-status\">{{ loading() ? labels.t('search.searching') : '' }}</span>\n @if (loading()) {\n <span class=\"search-spinner\" aria-hidden=\"true\" data-testid=\"search-spinner\">\n <span class=\"search-spinner-ring\"></span>\n </span>\n }\n </div>\n `,\n styles: [`\n /* Width in a flex row: 325px, or the page's own --ui-search-width (set on any ancestor, no ::ng-deep needed). Desktop only (above 1024px): the tablet / phone rules below keep their fixed widths. */\n :host { display: block; flex: 0 1 var(--ui-search-width, 325px); min-width: 0; }\n\n .search-bar {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n }\n\n .search-bar[hidden] { display: none; }\n\n /* Collapsed (collapseAt): the host shrinks to the toggle button; the opened bar is a fixed full-width panel under the header (--ui-search-bar-top, default 64px). */\n :host(.search-collapsed) { flex: 0 0 auto; }\n .search-toggle {\n display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;\n border: 0; border-radius: 8px; background: transparent; color: #475569; cursor: pointer;\n }\n .search-toggle:hover { background: #f1f5f9; }\n .search-toggle:focus-visible { outline: 2px solid #3b82f6; outline-offset: 0; }\n .search-toggle[aria-expanded='true'] { background: #eff6ff; color: #1d4ed8; }\n .search-bar-panel {\n position: fixed; top: var(--ui-search-bar-top, 64px); left: 8px; right: 8px; z-index: 10000; width: auto; box-sizing: border-box;\n padding: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);\n }\n\n .search-icon {\n position: absolute;\n left: 10px;\n color: #94a3b8;\n pointer-events: none;\n }\n\n .search-input {\n width: 100%;\n padding: 9px 10px 9px 34px;\n border: 1px solid #7c8ba1;\n border-radius: 8px;\n font-size: 0.875rem;\n background: #fff;\n color: #1e293b;\n outline: none;\n min-width: 0;\n font-family: inherit;\n transition: border-color 0.15s, box-shadow 0.15s;\n }\n\n .search-input:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);\n }\n\n .search-input::placeholder { color: #64748b; opacity: 1; }\n\n /* Loading: the spinner takes the right edge, so hide the native clear (x) button meanwhile. */\n .search-input-loading { padding-right: 34px; }\n .search-input-loading::-webkit-search-cancel-button { display: none; }\n .search-spinner {\n position: absolute; right: 10px; top: 50%; margin-top: -8px;\n width: 16px; height: 16px; pointer-events: none;\n }\n .search-spinner-ring {\n display: block; width: 16px; height: 16px; box-sizing: border-box;\n border: 2px solid #e2e8f0; border-top-color: #64748b; border-radius: 50%;\n animation: search-spin 0.6s linear infinite;\n }\n .search-sr-only {\n position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;\n overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;\n }\n @keyframes search-spin { to { transform: rotate(360deg); } }\n\n /* Touch targets: at least 44px tall on touch devices and phones. */\n @media (pointer: coarse), (max-width: 480px) {\n .search-input { min-height: 44px; }\n }\n\n /* Tablet: allow narrower search so toolbar buttons have room */\n @media (max-width: 1024px) {\n :host { flex: 0 1 280px; }\n }\n\n /* Phone landscape / small tablet: compress further */\n @media (max-width: 768px) {\n :host { flex: 0 1 240px; }\n }\n\n /* Phone: grow to fill the rest of the row (beside a table title) so tabs wrap cleanly below. The basis is 0 with a floor of 160px, NOT auto: an auto basis is the\n browser's own default width of a text input, which differs between engines, so a title and the search sat on one row in Chrome and on two rows in WebKit / Firefox\n (and on two in every engine on a 360px screen). With a fixed floor the wrap decision is the same everywhere. */\n @media (max-width: 640px) {\n :host { flex: 1 1 0; min-width: 160px; }\n /* 16px prevents iOS auto-zoom on input focus */\n .search-input { font-size: 16px; }\n }\n\n /* Reduced motion: no entrance / shimmer animation (a loading spinner stays, slower). */\n @media (prefers-reduced-motion: reduce) {\n .search-spinner-ring { animation-duration: 2s; } /* a loading indicator stays, but turns slowly */\n }\n `],\n})\nexport class SearchInputComponent<T> {\n protected readonly labels = inject(UiLabelsService);\n /** Placeholder text; `null` (default) = the library text for the active language (`Search...` in English). */\n readonly placeholder = input<string | null>(null);\n protected readonly effectivePlaceholder = computed(() => this.placeholder() ?? this.labels.t('search.placeholder'));\n readonly ariaLabel = input('');\n readonly value = model('');\n readonly maxlength = input(200);\n /** When set, the component fetches from this endpoint and emits `filteredData`. */\n readonly endpoint = input('');\n /** Shows a small spinner at the right edge (and `aria-busy`) while a search is being fetched. */\n readonly loading = input(false);\n /**\n * Built-in narrow-screen mode (default `null` = off, nothing changes). A viewport width in px (e.g. `360`): at or below it the search collapses into a 44px icon button (`aria-expanded`, `aria-controls`, named\n * \"Open search\" / \"Close search\") and the box opens as a full-width bar fixed under the header (`--ui-search-bar-top`, default `64px`, set it on any ancestor). Escape closes the bar and returns focus to the button; opening\n * puts the focus in the box. The typed text is kept while closed. Wider than `collapseAt` the normal box shows.\n */\n readonly collapseAt = input<number | null>(null);\n /** Whether the collapsed bar is open (two-way). Only meaningful while collapsed; it resets to closed when the viewport grows past `collapseAt`. */\n readonly expanded = model(false);\n\n /** Always emits the debounced search value regardless of endpoint. */\n readonly searchChange = output<string>();\n /** Emits backend results when `endpoint` is provided. */\n readonly filteredData = output<T[]>();\n\n private readonly config = inject(FORGEROUTE_CONFIG, { optional: true } as any);\n private readonly http = inject(HttpClient);\n private readonly destroyRef = inject(DestroyRef);\n private readonly query = signal('');\n private readonly injector = inject(Injector);\n private readonly hostEl = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly win = inject(DOCUMENT).defaultView;\n private static nextId = 0;\n protected readonly barId = `ui-search-bar-${SearchInputComponent.nextId++}`;\n private readonly narrow = signal(false);\n /** The viewport is at or below `collapseAt`: the search is a button. */\n protected readonly collapsed = computed(() => this.collapseAt() !== null && this.narrow());\n\n constructor() {\n effect((onCleanup) => {\n const at = this.collapseAt();\n const win = this.win;\n if (at === null || !Number.isFinite(at) || typeof win?.matchMedia !== 'function') { untracked(() => this.narrow.set(false)); return; }\n const mq = win.matchMedia(`(max-width: ${at}px)`);\n untracked(() => this.narrow.set(mq.matches));\n const listener = (e: MediaQueryListEvent): void => this.narrow.set(e.matches);\n mq.addEventListener?.('change', listener);\n onCleanup(() => mq.removeEventListener?.('change', listener));\n });\n effect(() => { if (!this.collapsed() && this.expanded()) untracked(() => this.expanded.set(false)); });\n // Keep the debounced query in step when the parent changes `value` (e.g. a table's\n // \"Clear filters\" resets it to ''), so the box shows the reset value and typing the\n // previous term again still emits instead of being swallowed by distinctUntilChanged.\n effect(() => {\n const v = this.value();\n untracked(() => { if (v !== this.query()) this.query.set(v); });\n });\n\n toObservable(this.query).pipe(\n skip(1), // skip initial emission to prevent spurious load on mount\n debounceTime(300),\n distinctUntilChanged(),\n switchMap(query => {\n this.searchChange.emit(query);\n if (!this.endpoint() || !this.config) return of(null);\n const params = new HttpParams().set('search', query);\n return this.http.get<any>(`${this.config.baseUrl}${this.endpoint()}`, { params });\n }),\n takeUntilDestroyed(this.destroyRef),\n ).subscribe(response => {\n if (response === null) return;\n const results: T[] = Array.isArray(response) ? response : (response?.content ?? []);\n this.filteredData.emit(results);\n });\n }\n\n /** The collapsed button: opens / closes the bar (opening focuses the box). */\n protected toggle(): void {\n const open = !this.expanded();\n this.expanded.set(open);\n if (open) afterNextRender(() => this.hostEl.nativeElement.querySelector<HTMLInputElement>('input.search-input')?.focus(), { injector: this.injector });\n }\n\n /** Escape closes an open collapsed bar and returns the focus to the button; otherwise the key passes on untouched. */\n protected onEscape(): void {\n if (!this.collapsed() || !this.expanded()) return;\n this.expanded.set(false);\n afterNextRender(() => this.hostEl.nativeElement.querySelector<HTMLElement>('.search-toggle')?.focus(), { injector: this.injector });\n }\n\n onInput(val: string): void {\n this.value.set(val);\n this.query.set(val);\n }\n}\n"],"mappings":";;;;;;;;AA2KA,IAAa,uBAAb,MAAa,qBAAoB;CAiChB;EAAA,KAAA,SAAS;CAAE;CAM1B,cAAA;EAtCmB,KAAA,SAAS,OAAO,eAAe;EAEzC,KAAA,cAAc,MAAqB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;EAC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