@forgeroute/ui 0.5.16 → 0.5.18

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 (345) 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-core-ui-labels.es-Dzj_XJJM.mjs → forgeroute-ui-core-ui-labels.es-Woi3az70.mjs} +186 -2
  46. package/fesm2022/{forgeroute-ui-core-ui-labels.es-Dzj_XJJM.mjs.map → forgeroute-ui-core-ui-labels.es-Woi3az70.mjs.map} +1 -1
  47. package/fesm2022/forgeroute-ui-core.mjs +186 -2
  48. package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
  49. package/fesm2022/forgeroute-ui-data-table-core.mjs +6150 -0
  50. package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -0
  51. package/fesm2022/forgeroute-ui-date-input.mjs +384 -0
  52. package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -0
  53. package/fesm2022/forgeroute-ui-date-range-picker.mjs +453 -0
  54. package/fesm2022/forgeroute-ui-date-range-picker.mjs.map +1 -0
  55. package/fesm2022/forgeroute-ui-datetime-input.mjs +375 -0
  56. package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -0
  57. package/fesm2022/forgeroute-ui-detail-card.mjs +655 -0
  58. package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -0
  59. package/fesm2022/forgeroute-ui-discount-selector.mjs +259 -0
  60. package/fesm2022/forgeroute-ui-discount-selector.mjs.map +1 -0
  61. package/fesm2022/forgeroute-ui-divider.mjs +111 -0
  62. package/fesm2022/forgeroute-ui-divider.mjs.map +1 -0
  63. package/fesm2022/forgeroute-ui-dropdown.mjs +550 -0
  64. package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -0
  65. package/fesm2022/forgeroute-ui-editor.mjs +4545 -0
  66. package/fesm2022/forgeroute-ui-editor.mjs.map +1 -0
  67. package/fesm2022/forgeroute-ui-empty-state.mjs +231 -0
  68. package/fesm2022/forgeroute-ui-empty-state.mjs.map +1 -0
  69. package/fesm2022/forgeroute-ui-error-state.mjs +195 -0
  70. package/fesm2022/forgeroute-ui-error-state.mjs.map +1 -0
  71. package/fesm2022/forgeroute-ui-error.mjs +93 -0
  72. package/fesm2022/forgeroute-ui-error.mjs.map +1 -0
  73. package/fesm2022/forgeroute-ui-fade.mjs +117 -0
  74. package/fesm2022/forgeroute-ui-fade.mjs.map +1 -0
  75. package/fesm2022/forgeroute-ui-file-input.mjs +999 -0
  76. package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -0
  77. package/fesm2022/forgeroute-ui-fixed-footer.mjs +115 -0
  78. package/fesm2022/forgeroute-ui-fixed-footer.mjs.map +1 -0
  79. package/fesm2022/forgeroute-ui-form-row.mjs +126 -0
  80. package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -0
  81. package/fesm2022/forgeroute-ui-form-section.mjs +93 -0
  82. package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -0
  83. package/fesm2022/forgeroute-ui-form.mjs +139 -0
  84. package/fesm2022/forgeroute-ui-form.mjs.map +1 -0
  85. package/fesm2022/forgeroute-ui-hint.mjs +47 -0
  86. package/fesm2022/forgeroute-ui-hint.mjs.map +1 -0
  87. package/fesm2022/forgeroute-ui-icon-picker.mjs +424 -0
  88. package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -0
  89. package/fesm2022/forgeroute-ui-icon.mjs +311 -0
  90. package/fesm2022/forgeroute-ui-icon.mjs.map +1 -0
  91. package/fesm2022/forgeroute-ui-image-preview.mjs +237 -0
  92. package/fesm2022/forgeroute-ui-image-preview.mjs.map +1 -0
  93. package/fesm2022/forgeroute-ui-keypad.mjs +278 -0
  94. package/fesm2022/forgeroute-ui-keypad.mjs.map +1 -0
  95. package/fesm2022/forgeroute-ui-kpi-card.mjs +490 -0
  96. package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -0
  97. package/fesm2022/forgeroute-ui-language-switcher.mjs +134 -0
  98. package/fesm2022/forgeroute-ui-language-switcher.mjs.map +1 -0
  99. package/fesm2022/forgeroute-ui-layout.mjs +18 -0
  100. package/fesm2022/forgeroute-ui-layout.mjs.map +1 -0
  101. package/fesm2022/forgeroute-ui-list-item.mjs +620 -0
  102. package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -0
  103. package/fesm2022/forgeroute-ui-list.mjs +866 -0
  104. package/fesm2022/forgeroute-ui-list.mjs.map +1 -0
  105. package/fesm2022/forgeroute-ui-live-region.mjs +118 -0
  106. package/fesm2022/forgeroute-ui-live-region.mjs.map +1 -0
  107. package/fesm2022/forgeroute-ui-map.mjs +5 -1
  108. package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
  109. package/fesm2022/forgeroute-ui-maps.mjs +2 -1
  110. package/fesm2022/forgeroute-ui-maps.mjs.map +1 -1
  111. package/fesm2022/forgeroute-ui-media.mjs +4615 -0
  112. package/fesm2022/forgeroute-ui-media.mjs.map +1 -0
  113. package/fesm2022/forgeroute-ui-messaging.mjs +20 -1
  114. package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
  115. package/fesm2022/forgeroute-ui-more-menu.mjs +418 -0
  116. package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -0
  117. package/fesm2022/forgeroute-ui-multi-select.mjs +532 -0
  118. package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -0
  119. package/fesm2022/forgeroute-ui-notes.mjs +768 -0
  120. package/fesm2022/forgeroute-ui-notes.mjs.map +1 -0
  121. package/fesm2022/forgeroute-ui-notification-bell.mjs +587 -0
  122. package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -0
  123. package/fesm2022/forgeroute-ui-offline-banner.mjs +156 -0
  124. package/fesm2022/forgeroute-ui-offline-banner.mjs.map +1 -0
  125. package/fesm2022/forgeroute-ui-option-card.mjs +379 -0
  126. package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -0
  127. package/fesm2022/forgeroute-ui-page.mjs +317 -0
  128. package/fesm2022/forgeroute-ui-page.mjs.map +1 -0
  129. package/fesm2022/forgeroute-ui-pagination.mjs +225 -0
  130. package/fesm2022/forgeroute-ui-pagination.mjs.map +1 -0
  131. package/fesm2022/forgeroute-ui-panel-info-list.mjs +422 -0
  132. package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -0
  133. package/fesm2022/forgeroute-ui-password-requirements.mjs +237 -0
  134. package/fesm2022/forgeroute-ui-password-requirements.mjs.map +1 -0
  135. package/fesm2022/forgeroute-ui-payments.mjs +6258 -0
  136. package/fesm2022/forgeroute-ui-payments.mjs.map +1 -0
  137. package/fesm2022/forgeroute-ui-pdf.mjs +9 -1
  138. package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
  139. package/fesm2022/forgeroute-ui-phone-number-picker.mjs +840 -0
  140. package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -0
  141. package/fesm2022/forgeroute-ui-pill-tabs.mjs +546 -0
  142. package/fesm2022/forgeroute-ui-pill-tabs.mjs.map +1 -0
  143. package/fesm2022/forgeroute-ui-print.mjs +76 -0
  144. package/fesm2022/forgeroute-ui-print.mjs.map +1 -0
  145. package/fesm2022/forgeroute-ui-progress-bar.mjs +252 -0
  146. package/fesm2022/forgeroute-ui-progress-bar.mjs.map +1 -0
  147. package/fesm2022/forgeroute-ui-progress-ring.mjs +277 -0
  148. package/fesm2022/forgeroute-ui-progress-ring.mjs.map +1 -0
  149. package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs +301 -0
  150. package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs.map +1 -0
  151. package/fesm2022/forgeroute-ui-quickbooks.mjs +18 -1
  152. package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
  153. package/fesm2022/forgeroute-ui-radio-matrix.mjs +471 -0
  154. package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -0
  155. package/fesm2022/forgeroute-ui-radio.mjs +911 -0
  156. package/fesm2022/forgeroute-ui-radio.mjs.map +1 -0
  157. package/fesm2022/forgeroute-ui-read-only-mode.mjs +15 -0
  158. package/fesm2022/forgeroute-ui-read-only-mode.mjs.map +1 -0
  159. package/fesm2022/forgeroute-ui-readonly-fieldset.mjs +146 -0
  160. package/fesm2022/forgeroute-ui-readonly-fieldset.mjs.map +1 -0
  161. package/fesm2022/forgeroute-ui-reminder-alerts.mjs +249 -0
  162. package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -0
  163. package/fesm2022/forgeroute-ui-search-input.mjs +373 -0
  164. package/fesm2022/forgeroute-ui-search-input.mjs.map +1 -0
  165. package/fesm2022/forgeroute-ui-section-header.mjs +296 -0
  166. package/fesm2022/forgeroute-ui-section-header.mjs.map +1 -0
  167. package/fesm2022/forgeroute-ui-select.mjs +498 -0
  168. package/fesm2022/forgeroute-ui-select.mjs.map +1 -0
  169. package/fesm2022/forgeroute-ui-setup.mjs +4649 -0
  170. package/fesm2022/forgeroute-ui-setup.mjs.map +1 -0
  171. package/fesm2022/forgeroute-ui-share-menu.mjs +461 -0
  172. package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -0
  173. package/fesm2022/forgeroute-ui-shell.mjs +981 -0
  174. package/fesm2022/forgeroute-ui-shell.mjs.map +1 -0
  175. package/fesm2022/forgeroute-ui-show.mjs +129 -0
  176. package/fesm2022/forgeroute-ui-show.mjs.map +1 -0
  177. package/fesm2022/forgeroute-ui-sidebar-layout.mjs +355 -0
  178. package/fesm2022/forgeroute-ui-sidebar-layout.mjs.map +1 -0
  179. package/fesm2022/forgeroute-ui-skeleton.mjs +152 -0
  180. package/fesm2022/forgeroute-ui-skeleton.mjs.map +1 -0
  181. package/fesm2022/forgeroute-ui-skip-link.mjs +129 -0
  182. package/fesm2022/forgeroute-ui-skip-link.mjs.map +1 -0
  183. package/fesm2022/forgeroute-ui-snackbar.mjs +200 -0
  184. package/fesm2022/forgeroute-ui-snackbar.mjs.map +1 -0
  185. package/fesm2022/forgeroute-ui-square.mjs +15 -1
  186. package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
  187. package/fesm2022/forgeroute-ui-stack.mjs +233 -0
  188. package/fesm2022/forgeroute-ui-stack.mjs.map +1 -0
  189. package/fesm2022/forgeroute-ui-stacked-bar.mjs +200 -0
  190. package/fesm2022/forgeroute-ui-stacked-bar.mjs.map +1 -0
  191. package/fesm2022/forgeroute-ui-stacking-plan.mjs +365 -0
  192. package/fesm2022/forgeroute-ui-stacking-plan.mjs.map +1 -0
  193. package/fesm2022/forgeroute-ui-star-rating.mjs +498 -0
  194. package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -0
  195. package/fesm2022/forgeroute-ui-star.mjs +184 -0
  196. package/fesm2022/forgeroute-ui-star.mjs.map +1 -0
  197. package/fesm2022/forgeroute-ui-stepper.mjs +615 -0
  198. package/fesm2022/forgeroute-ui-stepper.mjs.map +1 -0
  199. package/fesm2022/forgeroute-ui-stripe.mjs +6254 -1188
  200. package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
  201. package/fesm2022/forgeroute-ui-swatch-picker.mjs +416 -0
  202. package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -0
  203. package/fesm2022/forgeroute-ui-table-toolbar.mjs +770 -0
  204. package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -0
  205. package/fesm2022/forgeroute-ui-table-types.mjs +277 -0
  206. package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -0
  207. package/fesm2022/forgeroute-ui-text-input.mjs +1003 -0
  208. package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -0
  209. package/fesm2022/forgeroute-ui-text-template-picker.mjs +356 -0
  210. package/fesm2022/forgeroute-ui-text-template-picker.mjs.map +1 -0
  211. package/fesm2022/forgeroute-ui-text.mjs +195 -0
  212. package/fesm2022/forgeroute-ui-text.mjs.map +1 -0
  213. package/fesm2022/forgeroute-ui-textarea-input.mjs +542 -0
  214. package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -0
  215. package/fesm2022/forgeroute-ui-time-input.mjs +401 -0
  216. package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -0
  217. package/fesm2022/forgeroute-ui-timeline.mjs +549 -0
  218. package/fesm2022/forgeroute-ui-timeline.mjs.map +1 -0
  219. package/fesm2022/forgeroute-ui-toast.mjs +507 -0
  220. package/fesm2022/forgeroute-ui-toast.mjs.map +1 -0
  221. package/fesm2022/forgeroute-ui-toggle-badge.mjs +177 -0
  222. package/fesm2022/forgeroute-ui-toggle-badge.mjs.map +1 -0
  223. package/fesm2022/forgeroute-ui-toggle.mjs +275 -0
  224. package/fesm2022/forgeroute-ui-toggle.mjs.map +1 -0
  225. package/fesm2022/forgeroute-ui-tooltip.mjs +155 -0
  226. package/fesm2022/forgeroute-ui-tooltip.mjs.map +1 -0
  227. package/fesm2022/forgeroute-ui-utils.mjs +1071 -0
  228. package/fesm2022/forgeroute-ui-utils.mjs.map +1 -0
  229. package/fesm2022/forgeroute-ui.mjs +105 -70663
  230. package/package.json +422 -2
  231. package/types/forgeroute-ui-action-bar.d.ts +74 -0
  232. package/types/forgeroute-ui-address-input.d.ts +354 -0
  233. package/types/forgeroute-ui-alert.d.ts +89 -0
  234. package/types/forgeroute-ui-avatar.d.ts +85 -0
  235. package/types/forgeroute-ui-badge.d.ts +45 -0
  236. package/types/forgeroute-ui-bar-row.d.ts +90 -0
  237. package/types/forgeroute-ui-boards.d.ts +575 -0
  238. package/types/forgeroute-ui-bulk-eligible.d.ts +53 -0
  239. package/types/forgeroute-ui-business-hours.d.ts +191 -0
  240. package/types/forgeroute-ui-calendar.d.ts +544 -0
  241. package/types/forgeroute-ui-card-list-item.d.ts +186 -0
  242. package/types/forgeroute-ui-charts.d.ts +1 -1
  243. package/types/forgeroute-ui-checkbox.d.ts +270 -0
  244. package/types/forgeroute-ui-chip.d.ts +125 -0
  245. package/types/forgeroute-ui-color-input.d.ts +160 -0
  246. package/types/forgeroute-ui-column-filter.d.ts +130 -0
  247. package/types/forgeroute-ui-columns.d.ts +150 -0
  248. package/types/forgeroute-ui-combobox.d.ts +252 -0
  249. package/types/forgeroute-ui-confirm.d.ts +34 -0
  250. package/types/forgeroute-ui-contact-picker.d.ts +173 -0
  251. package/types/forgeroute-ui-conversations.d.ts +993 -0
  252. package/types/forgeroute-ui-copy-field.d.ts +122 -0
  253. package/types/forgeroute-ui-core.d.ts +188 -4
  254. package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
  255. package/types/forgeroute-ui-date-input.d.ts +101 -0
  256. package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
  257. package/types/forgeroute-ui-datetime-input.d.ts +97 -0
  258. package/types/forgeroute-ui-detail-card.d.ts +252 -0
  259. package/types/forgeroute-ui-discount-selector.d.ts +57 -0
  260. package/types/forgeroute-ui-divider.d.ts +40 -0
  261. package/types/forgeroute-ui-dropdown.d.ts +156 -0
  262. package/types/forgeroute-ui-editor.d.ts +873 -0
  263. package/types/forgeroute-ui-empty-state.d.ts +29 -0
  264. package/types/forgeroute-ui-error-state.d.ts +38 -0
  265. package/types/forgeroute-ui-error.d.ts +29 -0
  266. package/types/forgeroute-ui-fade.d.ts +39 -0
  267. package/types/forgeroute-ui-file-input.d.ts +337 -0
  268. package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
  269. package/types/forgeroute-ui-form-row.d.ts +30 -0
  270. package/types/forgeroute-ui-form-section.d.ts +18 -0
  271. package/types/forgeroute-ui-form.d.ts +68 -0
  272. package/types/forgeroute-ui-hint.d.ts +10 -0
  273. package/types/forgeroute-ui-icon-picker.d.ts +122 -0
  274. package/types/forgeroute-ui-icon.d.ts +95 -0
  275. package/types/forgeroute-ui-image-preview.d.ts +88 -0
  276. package/types/forgeroute-ui-keypad.d.ts +73 -0
  277. package/types/forgeroute-ui-kpi-card.d.ts +161 -0
  278. package/types/forgeroute-ui-language-switcher.d.ts +41 -0
  279. package/types/forgeroute-ui-layout.d.ts +13 -0
  280. package/types/forgeroute-ui-list-item.d.ts +253 -0
  281. package/types/forgeroute-ui-list.d.ts +282 -0
  282. package/types/forgeroute-ui-live-region.d.ts +49 -0
  283. package/types/forgeroute-ui-map.d.ts +1 -1
  284. package/types/forgeroute-ui-maps.d.ts +1 -1
  285. package/types/forgeroute-ui-media.d.ts +1221 -0
  286. package/types/forgeroute-ui-messaging.d.ts +11 -6
  287. package/types/forgeroute-ui-more-menu.d.ts +91 -0
  288. package/types/forgeroute-ui-multi-select.d.ts +119 -0
  289. package/types/forgeroute-ui-notes.d.ts +172 -0
  290. package/types/forgeroute-ui-notification-bell.d.ts +135 -0
  291. package/types/forgeroute-ui-offline-banner.d.ts +44 -0
  292. package/types/forgeroute-ui-option-card.d.ts +106 -0
  293. package/types/forgeroute-ui-page.d.ts +115 -0
  294. package/types/forgeroute-ui-pagination.d.ts +55 -0
  295. package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
  296. package/types/forgeroute-ui-password-requirements.d.ts +89 -0
  297. package/types/forgeroute-ui-payments.d.ts +1826 -0
  298. package/types/forgeroute-ui-pdf.d.ts +1 -1
  299. package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
  300. package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
  301. package/types/forgeroute-ui-print.d.ts +40 -0
  302. package/types/forgeroute-ui-progress-bar.d.ts +88 -0
  303. package/types/forgeroute-ui-progress-ring.d.ts +102 -0
  304. package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
  305. package/types/forgeroute-ui-quickbooks.d.ts +6 -3
  306. package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
  307. package/types/forgeroute-ui-radio.d.ts +311 -0
  308. package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
  309. package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
  310. package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
  311. package/types/forgeroute-ui-search-input.d.ts +93 -0
  312. package/types/forgeroute-ui-section-header.d.ts +149 -0
  313. package/types/forgeroute-ui-select.d.ts +183 -0
  314. package/types/forgeroute-ui-setup.d.ts +775 -0
  315. package/types/forgeroute-ui-share-menu.d.ts +99 -0
  316. package/types/forgeroute-ui-shell.d.ts +173 -0
  317. package/types/forgeroute-ui-show.d.ts +40 -0
  318. package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
  319. package/types/forgeroute-ui-skeleton.d.ts +51 -0
  320. package/types/forgeroute-ui-skip-link.d.ts +51 -0
  321. package/types/forgeroute-ui-snackbar.d.ts +50 -0
  322. package/types/forgeroute-ui-square.d.ts +5 -3
  323. package/types/forgeroute-ui-stack.d.ts +99 -0
  324. package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
  325. package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
  326. package/types/forgeroute-ui-star-rating.d.ts +151 -0
  327. package/types/forgeroute-ui-star.d.ts +46 -0
  328. package/types/forgeroute-ui-stepper.d.ts +273 -0
  329. package/types/forgeroute-ui-stripe.d.ts +1458 -3
  330. package/types/forgeroute-ui-swatch-picker.d.ts +118 -0
  331. package/types/forgeroute-ui-table-toolbar.d.ts +116 -0
  332. package/types/forgeroute-ui-table-types.d.ts +624 -0
  333. package/types/forgeroute-ui-text-input.d.ts +359 -0
  334. package/types/forgeroute-ui-text-template-picker.d.ts +100 -0
  335. package/types/forgeroute-ui-text.d.ts +76 -0
  336. package/types/forgeroute-ui-textarea-input.d.ts +174 -0
  337. package/types/forgeroute-ui-time-input.d.ts +105 -0
  338. package/types/forgeroute-ui-timeline.d.ts +196 -0
  339. package/types/forgeroute-ui-toast.d.ts +131 -0
  340. package/types/forgeroute-ui-toggle-badge.d.ts +64 -0
  341. package/types/forgeroute-ui-toggle.d.ts +92 -0
  342. package/types/forgeroute-ui-tooltip.d.ts +36 -0
  343. package/types/forgeroute-ui-utils.d.ts +210 -0
  344. package/types/forgeroute-ui.d.ts +106 -19539
  345. package/fesm2022/forgeroute-ui.mjs.map +0 -1
@@ -0,0 +1,550 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, ElementRef, Injector, afterNextRender, computed, effect, inject, input, output, signal, untracked } from "@angular/core";
3
+ import { UiLabelsService } from "@forgeroute/ui/core";
4
+ const _activeDropdownId = signal("", ...ngDevMode ? [{ debugName: "_activeDropdownId" }] : /* istanbul ignore next */ []);
5
+ var DropdownComponent = class DropdownComponent {
6
+ constructor() {
7
+ this.labels = inject(UiLabelsService);
8
+ this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
9
+ this.items = input([], ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
10
+ this.loader = input(null, ...ngDevMode ? [{ debugName: "loader" }] : /* istanbul ignore next */ []);
11
+ this.active = input(false, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
12
+ this.activeValue = input("", ...ngDevMode ? [{ debugName: "activeValue" }] : /* istanbul ignore next */ []);
13
+ this.variant = input("button", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
14
+ this.size = input("sm", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
15
+ this.menuWidth = input("200px", ...ngDevMode ? [{ debugName: "menuWidth" }] : /* istanbul ignore next */ []);
16
+ this.width = input("", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
17
+ this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
18
+ this.itemClick = output();
19
+ this.align = input("auto", ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
20
+ this.open = signal(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
21
+ this.loading = signal(false, ...ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []);
22
+ this.alignEnd = signal(false, ...ngDevMode ? [{ debugName: "alignEnd" }] : /* istanbul ignore next */ []);
23
+ this.openUp = signal(false, ...ngDevMode ? [{ debugName: "openUp" }] : /* istanbul ignore next */ []);
24
+ this.menuMaxHeight = signal(null, ...ngDevMode ? [{ debugName: "menuMaxHeight" }] : /* istanbul ignore next */ []);
25
+ this._loaded = signal(null, ...ngDevMode ? [{ debugName: "_loaded" }] : /* istanbul ignore next */ []);
26
+ this._id = Math.random().toString(36).slice(2);
27
+ this._host = inject(ElementRef);
28
+ this._cdr = inject(ChangeDetectorRef);
29
+ this._injector = inject(Injector);
30
+ this._pendingFocus = null;
31
+ this._typeahead = "";
32
+ this._typeaheadTimer = null;
33
+ this._destroyed = false;
34
+ this._loadToken = 0;
35
+ this.triggerId = `ui-dd-trigger-${this._id}`;
36
+ this.menuId = `ui-dd-menu-${this._id}`;
37
+ this._ariaLabel = computed(() => this.ariaLabel().trim() || null, ...ngDevMode ? [{ debugName: "_ariaLabel" }] : /* istanbul ignore next */ []);
38
+ this.displayItems = computed(() => this.open() ? this._loaded() ?? this.items() : [], ...ngDevMode ? [{ debugName: "displayItems" }] : /* istanbul ignore next */ []);
39
+ inject(DestroyRef).onDestroy(() => {
40
+ this._destroyed = true;
41
+ if (this._typeaheadTimer) clearTimeout(this._typeaheadTimer);
42
+ if (_activeDropdownId() === this._id) _activeDropdownId.set("");
43
+ });
44
+ effect(() => {
45
+ if (_activeDropdownId() !== this._id) untracked(() => this.close());
46
+ });
47
+ effect(() => {
48
+ const isOpen = this.open();
49
+ const loader = this.loader();
50
+ if (!loader) return;
51
+ if (isOpen && untracked(() => this._loaded()) === null) {
52
+ const token = ++this._loadToken;
53
+ this.loading.set(true);
54
+ const done = (items) => {
55
+ if (this._destroyed || token !== this._loadToken) return;
56
+ this._loaded.set(items);
57
+ this.loading.set(false);
58
+ if (this.open()) {
59
+ afterNextRender(() => this._place(), { injector: this._injector });
60
+ if (this._pendingFocus) this._focusPending();
61
+ }
62
+ };
63
+ new Promise((resolve) => resolve(loader())).then(done, () => done([]));
64
+ } else if (!isOpen) {
65
+ this._loadToken++;
66
+ this.loading.set(false);
67
+ this._loaded.set(null);
68
+ }
69
+ });
70
+ }
71
+ toggle(event) {
72
+ event.stopPropagation();
73
+ this._setOpen(!this.open());
74
+ this._focusTrigger();
75
+ }
76
+ select(item) {
77
+ if (item.disabled) return;
78
+ this._setOpen(false);
79
+ this.itemClick.emit(item);
80
+ this._focusTrigger();
81
+ }
82
+ close() {
83
+ if (this.open()) this._setOpen(false);
84
+ }
85
+ onTriggerKeydown(event) {
86
+ if (event.ctrlKey || event.metaKey || event.altKey) return;
87
+ switch (event.key) {
88
+ case "Enter":
89
+ case " ":
90
+ event.preventDefault();
91
+ if (this.open()) this._setOpen(false);
92
+ else this._openAndFocus("first");
93
+ break;
94
+ case "ArrowDown":
95
+ event.preventDefault();
96
+ if (this.open()) {
97
+ this._pendingFocus = "first";
98
+ this._focusPending();
99
+ } else this._openAndFocus("first");
100
+ break;
101
+ case "ArrowUp":
102
+ event.preventDefault();
103
+ if (this.open()) {
104
+ this._pendingFocus = "last";
105
+ this._focusPending();
106
+ } else this._openAndFocus("last");
107
+ break;
108
+ case "Tab": this.close();
109
+ }
110
+ }
111
+ onTriggerKeyup(event) {
112
+ if (event.key === " ") event.preventDefault();
113
+ }
114
+ onMenuKeydown(event) {
115
+ if (event.ctrlKey || event.metaKey || event.altKey) return;
116
+ const items = this._enabledItems();
117
+ const current = items.indexOf(document.activeElement);
118
+ switch (event.key) {
119
+ case "ArrowDown":
120
+ event.preventDefault();
121
+ if (items.length) items[current < 0 ? 0 : (current + 1) % items.length].focus();
122
+ return;
123
+ case "ArrowUp":
124
+ event.preventDefault();
125
+ if (items.length) items[current <= 0 ? items.length - 1 : current - 1].focus();
126
+ return;
127
+ case "Home":
128
+ event.preventDefault();
129
+ items[0]?.focus();
130
+ return;
131
+ case "End":
132
+ event.preventDefault();
133
+ items[items.length - 1]?.focus();
134
+ return;
135
+ case "Tab":
136
+ this._focusTrigger();
137
+ this.close();
138
+ return;
139
+ }
140
+ if (event.key.length === 1 && (event.key !== " " || this._typeahead)) {
141
+ event.preventDefault();
142
+ this._typeaheadFocus(event.key.toLowerCase(), items, current);
143
+ }
144
+ }
145
+ onEscape(event) {
146
+ if (!this.open()) return;
147
+ event.stopPropagation();
148
+ this._setOpen(false);
149
+ this._focusTrigger();
150
+ }
151
+ _setOpen(next) {
152
+ if (this.open() === next) return;
153
+ this.open.set(next);
154
+ if (next) {
155
+ _activeDropdownId.set(this._id);
156
+ afterNextRender(() => this._place(), { injector: this._injector });
157
+ } else {
158
+ this._pendingFocus = null;
159
+ this._typeahead = "";
160
+ if (_activeDropdownId() === this._id) _activeDropdownId.set("");
161
+ this.alignEnd.set(false);
162
+ this.openUp.set(false);
163
+ this.menuMaxHeight.set(null);
164
+ }
165
+ }
166
+ _place() {
167
+ const host = this._host.nativeElement;
168
+ const trigger = host.querySelector(".dd-trigger");
169
+ const menu = host.querySelector(".dd-menu");
170
+ if (!trigger || !menu || typeof window === "undefined") return;
171
+ const MARGIN = 16, GAP = 6;
172
+ this.alignEnd.set(false);
173
+ this.openUp.set(false);
174
+ this.menuMaxHeight.set(null);
175
+ this._cdr.detectChanges();
176
+ const t = trigger.getBoundingClientRect();
177
+ const vw = document.documentElement.clientWidth || window.innerWidth;
178
+ const vh = window.innerHeight;
179
+ const width = menu.offsetWidth;
180
+ const naturalHeight = menu.scrollHeight + 2;
181
+ const mode = this.align();
182
+ const fitsStart = t.left + width <= vw - MARGIN;
183
+ const fitsEnd = t.right - width >= MARGIN;
184
+ const end = mode === "end" || mode === "auto" && !fitsStart && (fitsEnd || t.right > vw / 2);
185
+ const below = vh - t.bottom - GAP - MARGIN;
186
+ const above = t.top - GAP - MARGIN;
187
+ const up = naturalHeight > below && above > below;
188
+ this.alignEnd.set(end);
189
+ this.openUp.set(up);
190
+ this.menuMaxHeight.set(Math.max(160, Math.floor(up ? above : below)));
191
+ this._cdr.markForCheck();
192
+ }
193
+ _openAndFocus(which) {
194
+ this._pendingFocus = which;
195
+ this._setOpen(true);
196
+ this._focusPending();
197
+ }
198
+ _focusPending() {
199
+ this._cdr.detectChanges();
200
+ if (this.loading() || this.loader() !== null && this._loaded() === null) return;
201
+ const items = this._enabledItems();
202
+ const target = this._pendingFocus === "last" ? items[items.length - 1] : items[0];
203
+ this._pendingFocus = null;
204
+ target?.focus();
205
+ }
206
+ _typeaheadFocus(char, items, current) {
207
+ this._typeahead += char;
208
+ if (this._typeaheadTimer) clearTimeout(this._typeaheadTimer);
209
+ this._typeaheadTimer = setTimeout(() => {
210
+ this._typeahead = "";
211
+ this._typeaheadTimer = null;
212
+ }, 500);
213
+ const single = this._typeahead.length === 1 || [...this._typeahead].every((c) => c === this._typeahead[0]);
214
+ const needle = single ? this._typeahead[0] : this._typeahead;
215
+ const start = single ? current + 1 : Math.max(current, 0);
216
+ for (let i = 0; i < items.length; i++) {
217
+ const el = items[(start + i) % items.length];
218
+ if ((el.querySelector("span")?.textContent ?? "").trim().toLowerCase().startsWith(needle)) {
219
+ el.focus();
220
+ return;
221
+ }
222
+ }
223
+ }
224
+ _enabledItems() {
225
+ return Array.from(this._host.nativeElement.querySelectorAll(".dd-menu .dd-item:not(:disabled)"));
226
+ }
227
+ _focusTrigger() {
228
+ this._host.nativeElement.querySelector(".dd-trigger")?.focus();
229
+ }
230
+ static {
231
+ this.ɵfac = i0.ɵɵngDeclareFactory({
232
+ minVersion: "12.0.0",
233
+ version: "22.2.2",
234
+ ngImport: i0,
235
+ type: DropdownComponent,
236
+ deps: [],
237
+ target: i0.ɵɵFactoryTarget.Component
238
+ });
239
+ }
240
+ static {
241
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
242
+ minVersion: "17.0.0",
243
+ version: "22.2.2",
244
+ type: DropdownComponent,
245
+ isStandalone: true,
246
+ selector: "ui-dropdown",
247
+ inputs: {
248
+ label: {
249
+ classPropertyName: "label",
250
+ publicName: "label",
251
+ isSignal: true,
252
+ isRequired: false,
253
+ transformFunction: null
254
+ },
255
+ items: {
256
+ classPropertyName: "items",
257
+ publicName: "items",
258
+ isSignal: true,
259
+ isRequired: false,
260
+ transformFunction: null
261
+ },
262
+ loader: {
263
+ classPropertyName: "loader",
264
+ publicName: "loader",
265
+ isSignal: true,
266
+ isRequired: false,
267
+ transformFunction: null
268
+ },
269
+ active: {
270
+ classPropertyName: "active",
271
+ publicName: "active",
272
+ isSignal: true,
273
+ isRequired: false,
274
+ transformFunction: null
275
+ },
276
+ activeValue: {
277
+ classPropertyName: "activeValue",
278
+ publicName: "activeValue",
279
+ isSignal: true,
280
+ isRequired: false,
281
+ transformFunction: null
282
+ },
283
+ variant: {
284
+ classPropertyName: "variant",
285
+ publicName: "variant",
286
+ isSignal: true,
287
+ isRequired: false,
288
+ transformFunction: null
289
+ },
290
+ size: {
291
+ classPropertyName: "size",
292
+ publicName: "size",
293
+ isSignal: true,
294
+ isRequired: false,
295
+ transformFunction: null
296
+ },
297
+ menuWidth: {
298
+ classPropertyName: "menuWidth",
299
+ publicName: "menuWidth",
300
+ isSignal: true,
301
+ isRequired: false,
302
+ transformFunction: null
303
+ },
304
+ width: {
305
+ classPropertyName: "width",
306
+ publicName: "width",
307
+ isSignal: true,
308
+ isRequired: false,
309
+ transformFunction: null
310
+ },
311
+ ariaLabel: {
312
+ classPropertyName: "ariaLabel",
313
+ publicName: "ariaLabel",
314
+ isSignal: true,
315
+ isRequired: false,
316
+ transformFunction: null
317
+ },
318
+ align: {
319
+ classPropertyName: "align",
320
+ publicName: "align",
321
+ isSignal: true,
322
+ isRequired: false,
323
+ transformFunction: null
324
+ }
325
+ },
326
+ outputs: { itemClick: "itemClick" },
327
+ host: {
328
+ listeners: {
329
+ "document:click": "close()",
330
+ "keydown.escape": "onEscape($event)"
331
+ },
332
+ properties: {
333
+ "class.dd-fixed": "width() !== ''",
334
+ "style.width": "width() || null"
335
+ }
336
+ },
337
+ ngImport: i0,
338
+ template: `
339
+ <div class="dd-wrapper">
340
+ @if (variant() === 'badge') {
341
+ <button type="button" class="dd-trigger dd-trigger-badge" [class.dd-active]="active()" [class.dd-open]="open()" [attr.id]="triggerId" [attr.aria-label]="_ariaLabel()" [attr.aria-expanded]="open()" aria-haspopup="menu" [attr.aria-controls]="open() ? menuId : null" (click)="toggle($event)" (keydown)="onTriggerKeydown($event)" (keyup)="onTriggerKeyup($event)">
342
+ <span class="dd-text">{{ label() }}</span>
343
+ <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
344
+ </button>
345
+ } @else {
346
+ <button type="button" class="dd-trigger dd-trigger-btn" [class.dd-trigger-md]="size() === 'md'" [class.dd-active]="active()" [class.dd-open]="open()" [attr.id]="triggerId" [attr.aria-label]="_ariaLabel()" [attr.aria-expanded]="open()" aria-haspopup="menu" [attr.aria-controls]="open() ? menuId : null" (click)="toggle($event)" (keydown)="onTriggerKeydown($event)" (keyup)="onTriggerKeyup($event)">
347
+ <span class="dd-text">{{ label() }}</span>
348
+ <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
349
+ </button>
350
+ }
351
+ @if (open()) {
352
+ <div class="dd-menu" role="menu" [attr.id]="menuId" [attr.aria-label]="_ariaLabel()" [attr.aria-labelledby]="_ariaLabel() ? null : triggerId" [style.min-width]="menuWidth()" [class.dd-menu-end]="alignEnd()" [class.dd-menu-up]="openUp()" [style.max-height.px]="menuMaxHeight()" [attr.aria-busy]="loading() ? 'true' : null" (click)="$event.stopPropagation()" (keydown)="onMenuKeydown($event)">
353
+ @if (loading()) {
354
+ <div class="dd-loading">
355
+ <span class="dd-spinner"></span>
356
+ <span>{{ labels.t('common.loadingellipsis') }}</span>
357
+ </div>
358
+ } @else {
359
+ @for (item of displayItems(); track item.value; let i = $index) {
360
+ <button type="button" class="dd-item" role="menuitem" tabindex="-1" [disabled]="item.disabled === true" [class.dd-item-active]="activeValue() === item.value" [attr.aria-current]="activeValue() === item.value ? 'true' : null" [attr.aria-describedby]="item.description ? menuId + '-desc-' + i : null" (click)="select(item)">
361
+ @if (item.icon) {
362
+ <svg class="dd-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path [attr.d]="item.icon" /></svg>
363
+ }
364
+ @if (item.description) {
365
+ <span class="dd-text-block">
366
+ <span class="dd-label">{{ item.label }}</span>
367
+ <span class="dd-desc" [attr.id]="menuId + '-desc-' + i">{{ item.description }}</span>
368
+ </span>
369
+ } @else {
370
+ <span class="dd-label">{{ item.label }}</span>
371
+ }
372
+ @if (item.count !== undefined) {
373
+ <span class="dd-count">{{ item.count }}</span>
374
+ }
375
+ </button>
376
+ }
377
+ }
378
+ </div>
379
+ }
380
+ </div>
381
+ `,
382
+ isInline: true,
383
+ styles: [":host{display:inline-flex}.dd-wrapper{position:relative;display:inline-flex}:host(.dd-fixed){display:flex;max-width:100%}:host(.dd-fixed) .dd-wrapper{display:flex;flex:1 1 auto;min-width:0}:host(.dd-fixed) .dd-trigger{width:100%;min-width:0;justify-content:space-between}:host(.dd-fixed) .dd-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dd-trigger svg{flex-shrink:0}.dd-trigger{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-family:inherit;transition:all .15s ease}.dd-trigger:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}.dd-trigger-badge{padding:6px 14px;border-radius:999px;border:1px solid #e2e8f0;background:#fff;font-size:.8125rem;font-weight:500;color:#64748b}.dd-trigger-badge:hover{background:#f8fafc;border-color:#94a3b8}.dd-trigger-badge.dd-active{background:#1e293b;color:#fff;border-color:#1e293b}.dd-trigger-btn{padding:6px 10px;border-radius:6px;border:1px solid #e2e8f0;background:#fff;font-size:.8125rem;font-weight:500;color:#334155;transition:background .1s,border-color .1s}.dd-trigger-btn:hover{background:#f8fafc}.dd-trigger-btn.dd-open{border-color:#1e293b;background:#f8fafc}.dd-trigger-btn.dd-active{background:#1e293b;color:#fff;border-color:#1e293b}.dd-trigger-btn.dd-trigger-md{padding:10px 16px;font-size:.875rem;border-radius:8px}.dd-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:9999;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 4px 6px #0000000a,0 12px 28px #0000001a;max-height:70vh;overflow-y:auto;overflow-x:hidden;padding:0;max-width:calc(100vw - 32px);box-sizing:border-box}.dd-menu.dd-menu-end{left:auto;right:0}.dd-menu.dd-menu-up{top:auto;bottom:calc(100% + 6px)}.dd-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 14px;border:none;background:none;font-size:.875rem;font-weight:400;color:#1e293b;cursor:pointer;font-family:inherit;text-align:left;transition:background .1s;border-bottom:1px solid #f1f5f9;box-sizing:border-box}.dd-item:last-child{border-bottom:none}.dd-item:hover{background:#f8fafc}.dd-item:focus-visible{outline:2px solid #3b82f6;outline-offset:-2px}.dd-item.dd-item-active{background:#eff6ff;color:#2563eb}.dd-item:disabled{opacity:.5;cursor:not-allowed;background:none}.dd-icon{flex-shrink:0;color:#64748b}.dd-label{min-width:0}.dd-text-block{display:flex;flex-direction:column;gap:2px;min-width:0}.dd-desc{font-size:.75rem;line-height:1.35;font-weight:400;color:#64748b;white-space:normal;overflow-wrap:anywhere}.dd-item.dd-item-active .dd-desc{color:#475569}@media(forced-colors:active){.dd-desc{color:GrayText}}.dd-count{font-size:.6875rem;font-weight:700;margin-left:auto;background:#f1f5f9;color:#64748b;padding:1px 7px;border-radius:999px;flex-shrink:0}.dd-loading{display:flex;align-items:center;gap:8px;padding:12px;color:#64748b;font-size:.8125rem}.dd-spinner{width:14px;height:14px;border-radius:50%;flex-shrink:0;border:2px solid #e2e8f0;border-top-color:#64748b;animation:dd-spin .6s linear infinite}@keyframes dd-spin{to{transform:rotate(360deg)}}@media(pointer:coarse),(max-width:768px){.dd-trigger-badge,.dd-trigger-btn,.dd-item{min-height:44px}}@media(prefers-reduced-motion:reduce){.dd-spinner{animation-duration:2s}}\n"],
384
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
385
+ });
386
+ }
387
+ };
388
+ i0.ɵɵngDeclareClassMetadata({
389
+ minVersion: "12.0.0",
390
+ version: "22.2.2",
391
+ ngImport: i0,
392
+ type: DropdownComponent,
393
+ decorators: [{
394
+ type: Component,
395
+ args: [{
396
+ selector: "ui-dropdown",
397
+ standalone: true,
398
+ changeDetection: ChangeDetectionStrategy.OnPush,
399
+ host: {
400
+ "(document:click)": "close()",
401
+ "(keydown.escape)": "onEscape($event)",
402
+ "[class.dd-fixed]": "width() !== ''",
403
+ "[style.width]": "width() || null"
404
+ },
405
+ template: `
406
+ <div class="dd-wrapper">
407
+ @if (variant() === 'badge') {
408
+ <button type="button" class="dd-trigger dd-trigger-badge" [class.dd-active]="active()" [class.dd-open]="open()" [attr.id]="triggerId" [attr.aria-label]="_ariaLabel()" [attr.aria-expanded]="open()" aria-haspopup="menu" [attr.aria-controls]="open() ? menuId : null" (click)="toggle($event)" (keydown)="onTriggerKeydown($event)" (keyup)="onTriggerKeyup($event)">
409
+ <span class="dd-text">{{ label() }}</span>
410
+ <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
411
+ </button>
412
+ } @else {
413
+ <button type="button" class="dd-trigger dd-trigger-btn" [class.dd-trigger-md]="size() === 'md'" [class.dd-active]="active()" [class.dd-open]="open()" [attr.id]="triggerId" [attr.aria-label]="_ariaLabel()" [attr.aria-expanded]="open()" aria-haspopup="menu" [attr.aria-controls]="open() ? menuId : null" (click)="toggle($event)" (keydown)="onTriggerKeydown($event)" (keyup)="onTriggerKeyup($event)">
414
+ <span class="dd-text">{{ label() }}</span>
415
+ <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
416
+ </button>
417
+ }
418
+ @if (open()) {
419
+ <div class="dd-menu" role="menu" [attr.id]="menuId" [attr.aria-label]="_ariaLabel()" [attr.aria-labelledby]="_ariaLabel() ? null : triggerId" [style.min-width]="menuWidth()" [class.dd-menu-end]="alignEnd()" [class.dd-menu-up]="openUp()" [style.max-height.px]="menuMaxHeight()" [attr.aria-busy]="loading() ? 'true' : null" (click)="$event.stopPropagation()" (keydown)="onMenuKeydown($event)">
420
+ @if (loading()) {
421
+ <div class="dd-loading">
422
+ <span class="dd-spinner"></span>
423
+ <span>{{ labels.t('common.loadingellipsis') }}</span>
424
+ </div>
425
+ } @else {
426
+ @for (item of displayItems(); track item.value; let i = $index) {
427
+ <button type="button" class="dd-item" role="menuitem" tabindex="-1" [disabled]="item.disabled === true" [class.dd-item-active]="activeValue() === item.value" [attr.aria-current]="activeValue() === item.value ? 'true' : null" [attr.aria-describedby]="item.description ? menuId + '-desc-' + i : null" (click)="select(item)">
428
+ @if (item.icon) {
429
+ <svg class="dd-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path [attr.d]="item.icon" /></svg>
430
+ }
431
+ @if (item.description) {
432
+ <span class="dd-text-block">
433
+ <span class="dd-label">{{ item.label }}</span>
434
+ <span class="dd-desc" [attr.id]="menuId + '-desc-' + i">{{ item.description }}</span>
435
+ </span>
436
+ } @else {
437
+ <span class="dd-label">{{ item.label }}</span>
438
+ }
439
+ @if (item.count !== undefined) {
440
+ <span class="dd-count">{{ item.count }}</span>
441
+ }
442
+ </button>
443
+ }
444
+ }
445
+ </div>
446
+ }
447
+ </div>
448
+ `,
449
+ styles: [":host{display:inline-flex}.dd-wrapper{position:relative;display:inline-flex}:host(.dd-fixed){display:flex;max-width:100%}:host(.dd-fixed) .dd-wrapper{display:flex;flex:1 1 auto;min-width:0}:host(.dd-fixed) .dd-trigger{width:100%;min-width:0;justify-content:space-between}:host(.dd-fixed) .dd-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dd-trigger svg{flex-shrink:0}.dd-trigger{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-family:inherit;transition:all .15s ease}.dd-trigger:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}.dd-trigger-badge{padding:6px 14px;border-radius:999px;border:1px solid #e2e8f0;background:#fff;font-size:.8125rem;font-weight:500;color:#64748b}.dd-trigger-badge:hover{background:#f8fafc;border-color:#94a3b8}.dd-trigger-badge.dd-active{background:#1e293b;color:#fff;border-color:#1e293b}.dd-trigger-btn{padding:6px 10px;border-radius:6px;border:1px solid #e2e8f0;background:#fff;font-size:.8125rem;font-weight:500;color:#334155;transition:background .1s,border-color .1s}.dd-trigger-btn:hover{background:#f8fafc}.dd-trigger-btn.dd-open{border-color:#1e293b;background:#f8fafc}.dd-trigger-btn.dd-active{background:#1e293b;color:#fff;border-color:#1e293b}.dd-trigger-btn.dd-trigger-md{padding:10px 16px;font-size:.875rem;border-radius:8px}.dd-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:9999;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 4px 6px #0000000a,0 12px 28px #0000001a;max-height:70vh;overflow-y:auto;overflow-x:hidden;padding:0;max-width:calc(100vw - 32px);box-sizing:border-box}.dd-menu.dd-menu-end{left:auto;right:0}.dd-menu.dd-menu-up{top:auto;bottom:calc(100% + 6px)}.dd-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 14px;border:none;background:none;font-size:.875rem;font-weight:400;color:#1e293b;cursor:pointer;font-family:inherit;text-align:left;transition:background .1s;border-bottom:1px solid #f1f5f9;box-sizing:border-box}.dd-item:last-child{border-bottom:none}.dd-item:hover{background:#f8fafc}.dd-item:focus-visible{outline:2px solid #3b82f6;outline-offset:-2px}.dd-item.dd-item-active{background:#eff6ff;color:#2563eb}.dd-item:disabled{opacity:.5;cursor:not-allowed;background:none}.dd-icon{flex-shrink:0;color:#64748b}.dd-label{min-width:0}.dd-text-block{display:flex;flex-direction:column;gap:2px;min-width:0}.dd-desc{font-size:.75rem;line-height:1.35;font-weight:400;color:#64748b;white-space:normal;overflow-wrap:anywhere}.dd-item.dd-item-active .dd-desc{color:#475569}@media(forced-colors:active){.dd-desc{color:GrayText}}.dd-count{font-size:.6875rem;font-weight:700;margin-left:auto;background:#f1f5f9;color:#64748b;padding:1px 7px;border-radius:999px;flex-shrink:0}.dd-loading{display:flex;align-items:center;gap:8px;padding:12px;color:#64748b;font-size:.8125rem}.dd-spinner{width:14px;height:14px;border-radius:50%;flex-shrink:0;border:2px solid #e2e8f0;border-top-color:#64748b;animation:dd-spin .6s linear infinite}@keyframes dd-spin{to{transform:rotate(360deg)}}@media(pointer:coarse),(max-width:768px){.dd-trigger-badge,.dd-trigger-btn,.dd-item{min-height:44px}}@media(prefers-reduced-motion:reduce){.dd-spinner{animation-duration:2s}}\n"]
450
+ }]
451
+ }],
452
+ ctorParameters: () => [],
453
+ propDecorators: {
454
+ label: [{
455
+ type: i0.Input,
456
+ args: [{
457
+ isSignal: true,
458
+ alias: "label",
459
+ required: false
460
+ }]
461
+ }],
462
+ items: [{
463
+ type: i0.Input,
464
+ args: [{
465
+ isSignal: true,
466
+ alias: "items",
467
+ required: false
468
+ }]
469
+ }],
470
+ loader: [{
471
+ type: i0.Input,
472
+ args: [{
473
+ isSignal: true,
474
+ alias: "loader",
475
+ required: false
476
+ }]
477
+ }],
478
+ active: [{
479
+ type: i0.Input,
480
+ args: [{
481
+ isSignal: true,
482
+ alias: "active",
483
+ required: false
484
+ }]
485
+ }],
486
+ activeValue: [{
487
+ type: i0.Input,
488
+ args: [{
489
+ isSignal: true,
490
+ alias: "activeValue",
491
+ required: false
492
+ }]
493
+ }],
494
+ variant: [{
495
+ type: i0.Input,
496
+ args: [{
497
+ isSignal: true,
498
+ alias: "variant",
499
+ required: false
500
+ }]
501
+ }],
502
+ size: [{
503
+ type: i0.Input,
504
+ args: [{
505
+ isSignal: true,
506
+ alias: "size",
507
+ required: false
508
+ }]
509
+ }],
510
+ menuWidth: [{
511
+ type: i0.Input,
512
+ args: [{
513
+ isSignal: true,
514
+ alias: "menuWidth",
515
+ required: false
516
+ }]
517
+ }],
518
+ width: [{
519
+ type: i0.Input,
520
+ args: [{
521
+ isSignal: true,
522
+ alias: "width",
523
+ required: false
524
+ }]
525
+ }],
526
+ ariaLabel: [{
527
+ type: i0.Input,
528
+ args: [{
529
+ isSignal: true,
530
+ alias: "ariaLabel",
531
+ required: false
532
+ }]
533
+ }],
534
+ itemClick: [{
535
+ type: i0.Output,
536
+ args: ["itemClick"]
537
+ }],
538
+ align: [{
539
+ type: i0.Input,
540
+ args: [{
541
+ isSignal: true,
542
+ alias: "align",
543
+ required: false
544
+ }]
545
+ }]
546
+ }
547
+ });
548
+ export { DropdownComponent };
549
+
550
+ //# sourceMappingURL=forgeroute-ui-dropdown.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forgeroute-ui-dropdown.mjs","names":[],"sources":["../../../projects/forgeroute-ui/dropdown/src/lib/dropdown/dropdown.component.ts"],"sourcesContent":["import { Component, input, output, signal, computed, effect, untracked, inject, ElementRef, ChangeDetectorRef, DestroyRef, Injector, afterNextRender, ChangeDetectionStrategy } from '@angular/core';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\n// Shared across all instances — tracks which dropdown is currently open so\n// opening one automatically closes any other that is open.\nconst _activeDropdownId = signal('');\n\nexport interface DropdownItem {\n label: string;\n value: string;\n count?: number;\n /** Greyed-out, not selectable and skipped by keyboard navigation. */\n disabled?: boolean;\n /** Optional 14px icon before the label: an SVG path (the `d` value, like a toolbar action's `icon`). Decorative (hidden from assistive tech). */\n icon?: string;\n /** Optional smaller, muted second line under the label (e.g. what the choice does). Read by assistive technology as the item's description, not as part of its name. Plain text. */\n description?: string;\n}\n\n/** Which edge of the trigger the menu lines up with: `auto` (default) opens from the trigger's left edge and switches to its right edge when the menu would run off the right of the screen. */\nexport type DropdownAlign = 'auto' | 'start' | 'end';\n\n@Component({\n selector: 'ui-dropdown',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(document:click)': 'close()',\n // Escape closes the open menu (focus goes back to the trigger). The event is only stopped when the\n // menu was open, so an Escape with the menu closed still reaches a surrounding side panel / modal.\n '(keydown.escape)': 'onEscape($event)',\n // `width` set: the host takes that width (never wider than its container) and the trigger fills it.\n '[class.dd-fixed]': \"width() !== ''\",\n '[style.width]': \"width() || null\",\n },\n template: `\n <div class=\"dd-wrapper\">\n @if (variant() === 'badge') {\n <button type=\"button\" class=\"dd-trigger dd-trigger-badge\" [class.dd-active]=\"active()\" [class.dd-open]=\"open()\" [attr.id]=\"triggerId\" [attr.aria-label]=\"_ariaLabel()\" [attr.aria-expanded]=\"open()\" aria-haspopup=\"menu\" [attr.aria-controls]=\"open() ? menuId : null\" (click)=\"toggle($event)\" (keydown)=\"onTriggerKeydown($event)\" (keyup)=\"onTriggerKeyup($event)\">\n <span class=\"dd-text\">{{ label() }}</span>\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" aria-hidden=\"true\"><polyline points=\"6 9 12 15 18 9\"/></svg>\n </button>\n } @else {\n <button type=\"button\" class=\"dd-trigger dd-trigger-btn\" [class.dd-trigger-md]=\"size() === 'md'\" [class.dd-active]=\"active()\" [class.dd-open]=\"open()\" [attr.id]=\"triggerId\" [attr.aria-label]=\"_ariaLabel()\" [attr.aria-expanded]=\"open()\" aria-haspopup=\"menu\" [attr.aria-controls]=\"open() ? menuId : null\" (click)=\"toggle($event)\" (keydown)=\"onTriggerKeydown($event)\" (keyup)=\"onTriggerKeyup($event)\">\n <span class=\"dd-text\">{{ label() }}</span>\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" aria-hidden=\"true\"><polyline points=\"6 9 12 15 18 9\"/></svg>\n </button>\n }\n @if (open()) {\n <div class=\"dd-menu\" role=\"menu\" [attr.id]=\"menuId\" [attr.aria-label]=\"_ariaLabel()\" [attr.aria-labelledby]=\"_ariaLabel() ? null : triggerId\" [style.min-width]=\"menuWidth()\" [class.dd-menu-end]=\"alignEnd()\" [class.dd-menu-up]=\"openUp()\" [style.max-height.px]=\"menuMaxHeight()\" [attr.aria-busy]=\"loading() ? 'true' : null\" (click)=\"$event.stopPropagation()\" (keydown)=\"onMenuKeydown($event)\">\n @if (loading()) {\n <div class=\"dd-loading\">\n <span class=\"dd-spinner\"></span>\n <span>{{ labels.t('common.loadingellipsis') }}</span>\n </div>\n } @else {\n @for (item of displayItems(); track item.value; let i = $index) {\n <button type=\"button\" class=\"dd-item\" role=\"menuitem\" tabindex=\"-1\" [disabled]=\"item.disabled === true\" [class.dd-item-active]=\"activeValue() === item.value\" [attr.aria-current]=\"activeValue() === item.value ? 'true' : null\" [attr.aria-describedby]=\"item.description ? menuId + '-desc-' + i : null\" (click)=\"select(item)\">\n @if (item.icon) {\n <svg class=\"dd-icon\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path [attr.d]=\"item.icon\" /></svg>\n }\n @if (item.description) {\n <span class=\"dd-text-block\">\n <span class=\"dd-label\">{{ item.label }}</span>\n <span class=\"dd-desc\" [attr.id]=\"menuId + '-desc-' + i\">{{ item.description }}</span>\n </span>\n } @else {\n <span class=\"dd-label\">{{ item.label }}</span>\n }\n @if (item.count !== undefined) {\n <span class=\"dd-count\">{{ item.count }}</span>\n }\n </button>\n }\n }\n </div>\n }\n </div>\n `,\n styles: [`\n :host { display: inline-flex; }\n\n .dd-wrapper { position: relative; display: inline-flex; }\n\n /* Fixed width (the \\`width\\` input): one width whatever the selected label, the trigger fills it. */\n :host(.dd-fixed) { display: flex; max-width: 100%; }\n :host(.dd-fixed) .dd-wrapper { display: flex; flex: 1 1 auto; min-width: 0; }\n :host(.dd-fixed) .dd-trigger { width: 100%; min-width: 0; justify-content: space-between; }\n /* A label longer than the fixed width is cut with an ellipsis on one line; the chevron is never squeezed. */\n :host(.dd-fixed) .dd-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n .dd-trigger svg { flex-shrink: 0; }\n\n .dd-trigger {\n display: inline-flex; align-items: center; gap: 6px;\n cursor: pointer; font-family: inherit; transition: all 150ms ease;\n &:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }\n }\n\n .dd-trigger-badge {\n padding: 6px 14px; border-radius: 999px; border: 1px solid #e2e8f0;\n background: #fff; font-size: 0.8125rem; font-weight: 500; color: #64748b;\n &:hover { background: #f8fafc; border-color: #94a3b8; }\n &.dd-active { background: #1e293b; color: #fff; border-color: #1e293b; }\n }\n\n /* Same look as the data-table's More Actions button and menu. */\n .dd-trigger-btn {\n padding: 6px 10px; border-radius: 6px; border: 1px solid #e2e8f0;\n background: #fff; font-size: 0.8125rem; font-weight: 500; color: #334155;\n transition: background 0.1s, border-color 0.1s;\n &:hover { background: #f8fafc; }\n &.dd-open { border-color: #1e293b; background: #f8fafc; }\n &.dd-active { background: #1e293b; color: #fff; border-color: #1e293b; }\n }\n\n /* size=\"md\": the same height and type as a medium ui-button, so the two sit side by side in a toolbar or page header. */\n .dd-trigger-btn.dd-trigger-md { padding: 10px 16px; font-size: 0.875rem; border-radius: 8px; }\n\n .dd-menu {\n position: absolute; top: calc(100% + 6px); left: 0; z-index: 9999;\n background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;\n box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 12px 28px rgba(0,0,0,0.10);\n max-height: 70vh; overflow-y: auto; overflow-x: hidden; padding: 0;\n max-width: calc(100vw - 32px); box-sizing: border-box;\n }\n /* Opens toward the trigger's right edge / above the trigger when there is no room the default way (set from the measured position). */\n .dd-menu.dd-menu-end { left: auto; right: 0; }\n .dd-menu.dd-menu-up { top: auto; bottom: calc(100% + 6px); }\n\n .dd-item {\n display: flex; align-items: center; gap: 10px;\n width: 100%; padding: 10px 14px; border: none; background: none;\n font-size: 0.875rem; font-weight: 400; color: #1e293b; cursor: pointer;\n font-family: inherit; text-align: left; transition: background 0.1s;\n border-bottom: 1px solid #f1f5f9; box-sizing: border-box;\n &:last-child { border-bottom: none; }\n &:hover { background: #f8fafc; }\n &:focus-visible { outline: 2px solid #3b82f6; outline-offset: -2px; }\n &.dd-item-active { background: #eff6ff; color: #2563eb; }\n &:disabled { opacity: 0.5; cursor: not-allowed; background: none; }\n }\n .dd-icon { flex-shrink: 0; color: #64748b; }\n .dd-label { min-width: 0; }\n /* An item with a description: the name on top, the description under it in smaller, muted type (wraps instead of widening the menu). */\n .dd-text-block { display: flex; flex-direction: column; gap: 2px; min-width: 0; }\n .dd-desc { font-size: 0.75rem; line-height: 1.35; font-weight: 400; color: #64748b; white-space: normal; overflow-wrap: anywhere; }\n .dd-item.dd-item-active .dd-desc { color: #475569; }\n @media (forced-colors: active) { .dd-desc { color: GrayText; } }\n\n .dd-count {\n font-size: 0.6875rem; font-weight: 700; margin-left: auto;\n background: #f1f5f9; color: #64748b;\n padding: 1px 7px; border-radius: 999px; flex-shrink: 0;\n }\n\n .dd-loading {\n display: flex; align-items: center; gap: 8px;\n padding: 12px; color: #64748b; font-size: 0.8125rem;\n }\n .dd-spinner {\n width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;\n border: 2px solid #e2e8f0; border-top-color: #64748b;\n animation: dd-spin 0.6s linear infinite;\n }\n @keyframes dd-spin { to { transform: rotate(360deg); } }\n\n /* Touch targets: 44px on touch screens and phones. */\n @media (pointer: coarse), (max-width: 768px) {\n .dd-trigger-badge, .dd-trigger-btn { min-height: 44px; }\n .dd-item { min-height: 44px; }\n }\n\n /* Reduced motion: no entrance / shimmer animation (a loading spinner stays, slower). */\n @media (prefers-reduced-motion: reduce) {\n .dd-spinner { animation-duration: 2s; } /* a loading indicator stays, but turns slowly */\n }\n `],\n})\nexport class DropdownComponent {\n protected readonly labels = inject(UiLabelsService);\n readonly label = input('');\n readonly items = input<DropdownItem[]>([]);\n /** Optional async loader — called once on open, result cached until closed. */\n readonly loader = input<(() => Promise<DropdownItem[]>) | null>(null);\n readonly active = input(false);\n readonly activeValue = input('');\n readonly variant = input<'button' | 'badge'>('button');\n /** Trigger size for `variant=\"button\"`: `sm` (default, the compact toolbar look) or `md` (same padding and type as a medium `ui-button`). */\n readonly size = input<'sm' | 'md'>('sm');\n readonly menuWidth = input('200px');\n /**\n * Fixed width of the trigger as a CSS length (e.g. `'280px'`). Empty (default) = the trigger is as wide as its label. When set, the trigger keeps that\n * width whatever label is selected (never wider than its container) and its label and chevron sit at the two ends.\n */\n readonly width = input('');\n /**\n * Accessible name. Set it when the trigger has no meaningful visible text. Applied as `aria-label` on the\n * trigger and on the menu; when empty (default) no `aria-label` is rendered, the trigger is named by its\n * visible label and the menu by `aria-labelledby` pointing at the trigger. Surrounding whitespace is trimmed.\n */\n readonly ariaLabel = input('');\n\n readonly itemClick = output<DropdownItem>();\n /** Which edge of the trigger the menu lines up with (default `auto`: from the left edge, switching to the right edge when it would run off the screen). */\n readonly align = input<DropdownAlign>('auto');\n\n protected readonly open = signal(false);\n protected readonly loading = signal(false);\n /** Placement measured when the menu opens: right-aligned, above the trigger, and the height left on that side (the menu scrolls inside it). */\n protected readonly alignEnd = signal(false);\n protected readonly openUp = signal(false);\n protected readonly menuMaxHeight = signal<number | null>(null);\n private readonly _loaded = signal<DropdownItem[] | null>(null);\n private readonly _id = Math.random().toString(36).slice(2);\n private readonly _host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly _cdr = inject(ChangeDetectorRef);\n private readonly _injector = inject(Injector);\n private _pendingFocus: 'first' | 'last' | null = null;\n private _typeahead = '';\n private _typeaheadTimer: ReturnType<typeof setTimeout> | null = null;\n private _destroyed = false;\n /** Identifies the current loader request, so a late or stale answer (menu closed / reopened meanwhile) is ignored. */\n private _loadToken = 0;\n\n protected readonly triggerId = `ui-dd-trigger-${this._id}`;\n protected readonly menuId = `ui-dd-menu-${this._id}`;\n protected readonly _ariaLabel = computed(() => this.ariaLabel().trim() || null);\n\n protected readonly displayItems = computed<DropdownItem[]>(() =>\n this.open() ? (this._loaded() ?? this.items()) : []\n );\n\n constructor() {\n inject(DestroyRef).onDestroy(() => {\n this._destroyed = true;\n if (this._typeaheadTimer) clearTimeout(this._typeaheadTimer);\n if (_activeDropdownId() === this._id) _activeDropdownId.set('');\n });\n effect(() => {\n if (_activeDropdownId() !== this._id) {\n untracked(() => this.close()); // full close: also resets pending focus, typeahead and placement\n }\n });\n\n effect(() => {\n const isOpen = this.open();\n const loader = this.loader();\n if (!loader) return;\n if (isOpen && untracked(() => this._loaded()) === null) {\n const token = ++this._loadToken;\n this.loading.set(true);\n // A loader that throws or rejects shows an empty menu (never an endless \"Loading...\").\n const done = (items: DropdownItem[]) => {\n if (this._destroyed || token !== this._loadToken) return; // closed / reopened meanwhile: stale answer\n this._loaded.set(items);\n this.loading.set(false);\n if (this.open()) {\n afterNextRender(() => this._place(), { injector: this._injector }); // the real item list is taller than the \"Loading...\" row\n if (this._pendingFocus) this._focusPending();\n }\n };\n new Promise<DropdownItem[]>(resolve => resolve(loader())).then(done, () => done([]));\n } else if (!isOpen) {\n this._loadToken++;\n this.loading.set(false);\n this._loaded.set(null);\n }\n });\n }\n\n toggle(event: Event) {\n event.stopPropagation();\n this._setOpen(!this.open());\n // Safari / Firefox on macOS do not focus a button on click: focus the trigger so Escape and the arrow keys reach the dropdown.\n this._focusTrigger();\n }\n\n select(item: DropdownItem) {\n if (item.disabled) return;\n this._setOpen(false);\n this.itemClick.emit(item);\n this._focusTrigger();\n }\n\n close() {\n if (this.open()) this._setOpen(false);\n }\n\n /**\n * Keyboard contract (WAI-ARIA menu button).\n * Trigger: Enter / Space toggle (opening focuses the first item), ArrowDown opens + first item,\n * ArrowUp opens + last item, ArrowDown/ArrowUp while open move into the menu, Tab closes (focus moves on naturally).\n */\n protected onTriggerKeydown(event: KeyboardEvent) {\n if (event.ctrlKey || event.metaKey || event.altKey) return;\n switch (event.key) {\n case 'Enter':\n case ' ':\n event.preventDefault(); // no native click: we open + focus ourselves\n if (this.open()) this._setOpen(false);\n else this._openAndFocus('first');\n break;\n case 'ArrowDown':\n event.preventDefault();\n if (this.open()) { this._pendingFocus = 'first'; this._focusPending(); }\n else this._openAndFocus('first');\n break;\n case 'ArrowUp':\n event.preventDefault();\n if (this.open()) { this._pendingFocus = 'last'; this._focusPending(); }\n else this._openAndFocus('last');\n break;\n case 'Tab':\n this.close();\n break;\n }\n }\n\n /** Firefox fires the button click on Space keyup even when keydown was prevented. */\n protected onTriggerKeyup(event: KeyboardEvent) {\n if (event.key === ' ') event.preventDefault();\n }\n\n /**\n * Menu keys (focus on an item): ArrowDown / ArrowUp move with wrap, Home / End jump to first / last,\n * Enter / Space activate the focused item (native button click), Tab / Shift+Tab close and let focus move on from the trigger,\n * printable characters jump to the next item whose label starts with the typed text (typeahead, reset after 500 ms).\n * Disabled items are skipped. Other keys are ignored. Escape is handled on the host.\n */\n protected onMenuKeydown(event: KeyboardEvent) {\n if (event.ctrlKey || event.metaKey || event.altKey) return;\n const items = this._enabledItems();\n const current = items.indexOf(document.activeElement as HTMLElement);\n switch (event.key) {\n case 'ArrowDown':\n event.preventDefault();\n if (items.length) items[current < 0 ? 0 : (current + 1) % items.length].focus();\n return;\n case 'ArrowUp':\n event.preventDefault();\n if (items.length) items[current <= 0 ? items.length - 1 : current - 1].focus();\n return;\n case 'Home':\n event.preventDefault();\n items[0]?.focus();\n return;\n case 'End':\n event.preventDefault();\n items[items.length - 1]?.focus();\n return;\n case 'Tab':\n // Park focus on the trigger first: the menu is removed from the DOM, so the browser's Tab\n // then continues from the trigger (next / previous control) instead of from <body>.\n this._focusTrigger();\n this.close();\n return;\n }\n if (event.key.length === 1 && (event.key !== ' ' || this._typeahead)) {\n event.preventDefault();\n this._typeaheadFocus(event.key.toLowerCase(), items, current);\n }\n }\n\n protected onEscape(event: Event) {\n if (!this.open()) return; // closed: let a surrounding panel / modal handle Escape\n event.stopPropagation();\n this._setOpen(false);\n this._focusTrigger();\n }\n\n private _setOpen(next: boolean) {\n if (this.open() === next) return;\n this.open.set(next);\n if (next) {\n _activeDropdownId.set(this._id);\n afterNextRender(() => this._place(), { injector: this._injector });\n }\n else {\n this._pendingFocus = null;\n this._typeahead = '';\n if (_activeDropdownId() === this._id) _activeDropdownId.set('');\n this.alignEnd.set(false); this.openUp.set(false); this.menuMaxHeight.set(null);\n }\n }\n\n /**\n * Places the open menu from its measured size and the trigger's screen position: it keeps 16px clear of the screen edges, lines up with the trigger's\n * right edge instead of the left when that is the side with room (`align` = auto), opens above the trigger when there is more room there, and is capped to\n * the room left on that side (so it scrolls inside only when it truly does not fit). No layout APIs (server rendering) = the default placement.\n */\n private _place() {\n const host = this._host.nativeElement;\n const trigger = host.querySelector('.dd-trigger') as HTMLElement | null;\n const menu = host.querySelector('.dd-menu') as HTMLElement | null;\n if (!trigger || !menu || typeof window === 'undefined') return;\n const MARGIN = 16, GAP = 6;\n // Measure in the default placement\n this.alignEnd.set(false); this.openUp.set(false); this.menuMaxHeight.set(null);\n this._cdr.detectChanges();\n const t = trigger.getBoundingClientRect();\n const vw = document.documentElement.clientWidth || window.innerWidth;\n const vh = window.innerHeight;\n const width = menu.offsetWidth;\n const naturalHeight = menu.scrollHeight + 2;\n const mode = this.align();\n const fitsStart = t.left + width <= vw - MARGIN;\n const fitsEnd = t.right - width >= MARGIN;\n const end = mode === 'end' || (mode === 'auto' && !fitsStart && (fitsEnd || t.right > vw / 2));\n const below = vh - t.bottom - GAP - MARGIN;\n const above = t.top - GAP - MARGIN;\n const up = naturalHeight > below && above > below;\n this.alignEnd.set(end);\n this.openUp.set(up);\n this.menuMaxHeight.set(Math.max(160, Math.floor(up ? above : below)));\n this._cdr.markForCheck();\n }\n\n private _openAndFocus(which: 'first' | 'last') {\n this._pendingFocus = which;\n this._setOpen(true);\n this._focusPending();\n }\n\n /** Renders the menu synchronously, then focuses the pending first / last enabled item. */\n private _focusPending() {\n this._cdr.detectChanges();\n // a loader is pending (or about to start: its effect has not run yet): the focus is applied when it resolves\n if (this.loading() || (this.loader() !== null && this._loaded() === null)) return;\n const items = this._enabledItems();\n const target = this._pendingFocus === 'last' ? items[items.length - 1] : items[0];\n this._pendingFocus = null;\n target?.focus();\n }\n\n private _typeaheadFocus(char: string, items: HTMLElement[], current: number) {\n this._typeahead += char;\n if (this._typeaheadTimer) clearTimeout(this._typeaheadTimer);\n this._typeaheadTimer = setTimeout(() => { this._typeahead = ''; this._typeaheadTimer = null; }, 500);\n const single = this._typeahead.length === 1 || [...this._typeahead].every(c => c === this._typeahead[0]);\n const needle = single ? this._typeahead[0] : this._typeahead;\n const start = single ? current + 1 : Math.max(current, 0);\n for (let i = 0; i < items.length; i++) {\n const el = items[(start + i) % items.length];\n const text = (el.querySelector('span')?.textContent ?? '').trim().toLowerCase();\n if (text.startsWith(needle)) { el.focus(); return; }\n }\n }\n\n private _enabledItems(): HTMLElement[] {\n return Array.from(this._host.nativeElement.querySelectorAll<HTMLElement>('.dd-menu .dd-item:not(:disabled)'));\n }\n\n private _focusTrigger() {\n this._host.nativeElement.querySelector<HTMLElement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