@forgeroute/ui 0.5.16 → 0.5.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (340) hide show
  1. package/fesm2022/forgeroute-ui-action-bar.mjs +190 -0
  2. package/fesm2022/forgeroute-ui-action-bar.mjs.map +1 -0
  3. package/fesm2022/forgeroute-ui-address-input.mjs +1164 -0
  4. package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -0
  5. package/fesm2022/forgeroute-ui-alert.mjs +223 -0
  6. package/fesm2022/forgeroute-ui-alert.mjs.map +1 -0
  7. package/fesm2022/forgeroute-ui-avatar.mjs +320 -0
  8. package/fesm2022/forgeroute-ui-avatar.mjs.map +1 -0
  9. package/fesm2022/forgeroute-ui-badge.mjs +158 -0
  10. package/fesm2022/forgeroute-ui-badge.mjs.map +1 -0
  11. package/fesm2022/forgeroute-ui-bar-row.mjs +255 -0
  12. package/fesm2022/forgeroute-ui-bar-row.mjs.map +1 -0
  13. package/fesm2022/forgeroute-ui-boards.mjs +2201 -0
  14. package/fesm2022/forgeroute-ui-boards.mjs.map +1 -0
  15. package/fesm2022/forgeroute-ui-bulk-eligible.mjs +172 -0
  16. package/fesm2022/forgeroute-ui-bulk-eligible.mjs.map +1 -0
  17. package/fesm2022/forgeroute-ui-business-hours.mjs +771 -0
  18. package/fesm2022/forgeroute-ui-business-hours.mjs.map +1 -0
  19. package/fesm2022/forgeroute-ui-calendar.mjs +2006 -0
  20. package/fesm2022/forgeroute-ui-calendar.mjs.map +1 -0
  21. package/fesm2022/forgeroute-ui-card-list-item.mjs +556 -0
  22. package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -0
  23. package/fesm2022/forgeroute-ui-charts.mjs +1 -1
  24. package/fesm2022/forgeroute-ui-charts.mjs.map +1 -1
  25. package/fesm2022/forgeroute-ui-checkbox.mjs +815 -0
  26. package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -0
  27. package/fesm2022/forgeroute-ui-chip.mjs +379 -0
  28. package/fesm2022/forgeroute-ui-chip.mjs.map +1 -0
  29. package/fesm2022/forgeroute-ui-color-input.mjs +492 -0
  30. package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -0
  31. package/fesm2022/forgeroute-ui-column-filter.mjs +645 -0
  32. package/fesm2022/forgeroute-ui-column-filter.mjs.map +1 -0
  33. package/fesm2022/forgeroute-ui-columns.mjs +351 -0
  34. package/fesm2022/forgeroute-ui-columns.mjs.map +1 -0
  35. package/fesm2022/forgeroute-ui-combobox.mjs +772 -0
  36. package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -0
  37. package/fesm2022/forgeroute-ui-confirm.mjs +48 -0
  38. package/fesm2022/forgeroute-ui-confirm.mjs.map +1 -0
  39. package/fesm2022/forgeroute-ui-contact-picker.mjs +865 -0
  40. package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -0
  41. package/fesm2022/forgeroute-ui-conversations.mjs +3627 -0
  42. package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -0
  43. package/fesm2022/forgeroute-ui-copy-field.mjs +378 -0
  44. package/fesm2022/forgeroute-ui-copy-field.mjs.map +1 -0
  45. package/fesm2022/forgeroute-ui-data-table-core.mjs +6150 -0
  46. package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -0
  47. package/fesm2022/forgeroute-ui-date-input.mjs +384 -0
  48. package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -0
  49. package/fesm2022/forgeroute-ui-date-range-picker.mjs +453 -0
  50. package/fesm2022/forgeroute-ui-date-range-picker.mjs.map +1 -0
  51. package/fesm2022/forgeroute-ui-datetime-input.mjs +375 -0
  52. package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -0
  53. package/fesm2022/forgeroute-ui-detail-card.mjs +655 -0
  54. package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -0
  55. package/fesm2022/forgeroute-ui-discount-selector.mjs +259 -0
  56. package/fesm2022/forgeroute-ui-discount-selector.mjs.map +1 -0
  57. package/fesm2022/forgeroute-ui-divider.mjs +111 -0
  58. package/fesm2022/forgeroute-ui-divider.mjs.map +1 -0
  59. package/fesm2022/forgeroute-ui-dropdown.mjs +550 -0
  60. package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -0
  61. package/fesm2022/forgeroute-ui-editor.mjs +4545 -0
  62. package/fesm2022/forgeroute-ui-editor.mjs.map +1 -0
  63. package/fesm2022/forgeroute-ui-empty-state.mjs +231 -0
  64. package/fesm2022/forgeroute-ui-empty-state.mjs.map +1 -0
  65. package/fesm2022/forgeroute-ui-error-state.mjs +195 -0
  66. package/fesm2022/forgeroute-ui-error-state.mjs.map +1 -0
  67. package/fesm2022/forgeroute-ui-error.mjs +93 -0
  68. package/fesm2022/forgeroute-ui-error.mjs.map +1 -0
  69. package/fesm2022/forgeroute-ui-fade.mjs +117 -0
  70. package/fesm2022/forgeroute-ui-fade.mjs.map +1 -0
  71. package/fesm2022/forgeroute-ui-file-input.mjs +999 -0
  72. package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -0
  73. package/fesm2022/forgeroute-ui-fixed-footer.mjs +115 -0
  74. package/fesm2022/forgeroute-ui-fixed-footer.mjs.map +1 -0
  75. package/fesm2022/forgeroute-ui-form-row.mjs +126 -0
  76. package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -0
  77. package/fesm2022/forgeroute-ui-form-section.mjs +93 -0
  78. package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -0
  79. package/fesm2022/forgeroute-ui-form.mjs +139 -0
  80. package/fesm2022/forgeroute-ui-form.mjs.map +1 -0
  81. package/fesm2022/forgeroute-ui-hint.mjs +47 -0
  82. package/fesm2022/forgeroute-ui-hint.mjs.map +1 -0
  83. package/fesm2022/forgeroute-ui-icon-picker.mjs +424 -0
  84. package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -0
  85. package/fesm2022/forgeroute-ui-icon.mjs +311 -0
  86. package/fesm2022/forgeroute-ui-icon.mjs.map +1 -0
  87. package/fesm2022/forgeroute-ui-image-preview.mjs +237 -0
  88. package/fesm2022/forgeroute-ui-image-preview.mjs.map +1 -0
  89. package/fesm2022/forgeroute-ui-keypad.mjs +278 -0
  90. package/fesm2022/forgeroute-ui-keypad.mjs.map +1 -0
  91. package/fesm2022/forgeroute-ui-kpi-card.mjs +490 -0
  92. package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -0
  93. package/fesm2022/forgeroute-ui-language-switcher.mjs +134 -0
  94. package/fesm2022/forgeroute-ui-language-switcher.mjs.map +1 -0
  95. package/fesm2022/forgeroute-ui-layout.mjs +18 -0
  96. package/fesm2022/forgeroute-ui-layout.mjs.map +1 -0
  97. package/fesm2022/forgeroute-ui-list-item.mjs +620 -0
  98. package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -0
  99. package/fesm2022/forgeroute-ui-list.mjs +866 -0
  100. package/fesm2022/forgeroute-ui-list.mjs.map +1 -0
  101. package/fesm2022/forgeroute-ui-live-region.mjs +118 -0
  102. package/fesm2022/forgeroute-ui-live-region.mjs.map +1 -0
  103. package/fesm2022/forgeroute-ui-map.mjs +5 -1
  104. package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
  105. package/fesm2022/forgeroute-ui-maps.mjs +2 -1
  106. package/fesm2022/forgeroute-ui-maps.mjs.map +1 -1
  107. package/fesm2022/forgeroute-ui-media.mjs +4615 -0
  108. package/fesm2022/forgeroute-ui-media.mjs.map +1 -0
  109. package/fesm2022/forgeroute-ui-messaging.mjs +20 -1
  110. package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
  111. package/fesm2022/forgeroute-ui-more-menu.mjs +418 -0
  112. package/fesm2022/forgeroute-ui-more-menu.mjs.map +1 -0
  113. package/fesm2022/forgeroute-ui-multi-select.mjs +532 -0
  114. package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -0
  115. package/fesm2022/forgeroute-ui-notes.mjs +768 -0
  116. package/fesm2022/forgeroute-ui-notes.mjs.map +1 -0
  117. package/fesm2022/forgeroute-ui-notification-bell.mjs +587 -0
  118. package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -0
  119. package/fesm2022/forgeroute-ui-offline-banner.mjs +156 -0
  120. package/fesm2022/forgeroute-ui-offline-banner.mjs.map +1 -0
  121. package/fesm2022/forgeroute-ui-option-card.mjs +379 -0
  122. package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -0
  123. package/fesm2022/forgeroute-ui-page.mjs +317 -0
  124. package/fesm2022/forgeroute-ui-page.mjs.map +1 -0
  125. package/fesm2022/forgeroute-ui-pagination.mjs +225 -0
  126. package/fesm2022/forgeroute-ui-pagination.mjs.map +1 -0
  127. package/fesm2022/forgeroute-ui-panel-info-list.mjs +422 -0
  128. package/fesm2022/forgeroute-ui-panel-info-list.mjs.map +1 -0
  129. package/fesm2022/forgeroute-ui-password-requirements.mjs +237 -0
  130. package/fesm2022/forgeroute-ui-password-requirements.mjs.map +1 -0
  131. package/fesm2022/forgeroute-ui-payments.mjs +6243 -0
  132. package/fesm2022/forgeroute-ui-payments.mjs.map +1 -0
  133. package/fesm2022/forgeroute-ui-pdf.mjs +9 -1
  134. package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
  135. package/fesm2022/forgeroute-ui-phone-number-picker.mjs +840 -0
  136. package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -0
  137. package/fesm2022/forgeroute-ui-pill-tabs.mjs +546 -0
  138. package/fesm2022/forgeroute-ui-pill-tabs.mjs.map +1 -0
  139. package/fesm2022/forgeroute-ui-print.mjs +76 -0
  140. package/fesm2022/forgeroute-ui-print.mjs.map +1 -0
  141. package/fesm2022/forgeroute-ui-progress-bar.mjs +252 -0
  142. package/fesm2022/forgeroute-ui-progress-bar.mjs.map +1 -0
  143. package/fesm2022/forgeroute-ui-progress-ring.mjs +277 -0
  144. package/fesm2022/forgeroute-ui-progress-ring.mjs.map +1 -0
  145. package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs +301 -0
  146. package/fesm2022/forgeroute-ui-quick-filter-tabs.mjs.map +1 -0
  147. package/fesm2022/forgeroute-ui-quickbooks.mjs +18 -1
  148. package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
  149. package/fesm2022/forgeroute-ui-radio-matrix.mjs +471 -0
  150. package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -0
  151. package/fesm2022/forgeroute-ui-radio.mjs +911 -0
  152. package/fesm2022/forgeroute-ui-radio.mjs.map +1 -0
  153. package/fesm2022/forgeroute-ui-read-only-mode.mjs +15 -0
  154. package/fesm2022/forgeroute-ui-read-only-mode.mjs.map +1 -0
  155. package/fesm2022/forgeroute-ui-readonly-fieldset.mjs +146 -0
  156. package/fesm2022/forgeroute-ui-readonly-fieldset.mjs.map +1 -0
  157. package/fesm2022/forgeroute-ui-reminder-alerts.mjs +249 -0
  158. package/fesm2022/forgeroute-ui-reminder-alerts.mjs.map +1 -0
  159. package/fesm2022/forgeroute-ui-search-input.mjs +373 -0
  160. package/fesm2022/forgeroute-ui-search-input.mjs.map +1 -0
  161. package/fesm2022/forgeroute-ui-section-header.mjs +296 -0
  162. package/fesm2022/forgeroute-ui-section-header.mjs.map +1 -0
  163. package/fesm2022/forgeroute-ui-select.mjs +498 -0
  164. package/fesm2022/forgeroute-ui-select.mjs.map +1 -0
  165. package/fesm2022/forgeroute-ui-setup.mjs +4649 -0
  166. package/fesm2022/forgeroute-ui-setup.mjs.map +1 -0
  167. package/fesm2022/forgeroute-ui-share-menu.mjs +461 -0
  168. package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -0
  169. package/fesm2022/forgeroute-ui-shell.mjs +981 -0
  170. package/fesm2022/forgeroute-ui-shell.mjs.map +1 -0
  171. package/fesm2022/forgeroute-ui-show.mjs +129 -0
  172. package/fesm2022/forgeroute-ui-show.mjs.map +1 -0
  173. package/fesm2022/forgeroute-ui-sidebar-layout.mjs +355 -0
  174. package/fesm2022/forgeroute-ui-sidebar-layout.mjs.map +1 -0
  175. package/fesm2022/forgeroute-ui-skeleton.mjs +152 -0
  176. package/fesm2022/forgeroute-ui-skeleton.mjs.map +1 -0
  177. package/fesm2022/forgeroute-ui-skip-link.mjs +129 -0
  178. package/fesm2022/forgeroute-ui-skip-link.mjs.map +1 -0
  179. package/fesm2022/forgeroute-ui-snackbar.mjs +200 -0
  180. package/fesm2022/forgeroute-ui-snackbar.mjs.map +1 -0
  181. package/fesm2022/forgeroute-ui-square.mjs +15 -1
  182. package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
  183. package/fesm2022/forgeroute-ui-stack.mjs +233 -0
  184. package/fesm2022/forgeroute-ui-stack.mjs.map +1 -0
  185. package/fesm2022/forgeroute-ui-stacked-bar.mjs +200 -0
  186. package/fesm2022/forgeroute-ui-stacked-bar.mjs.map +1 -0
  187. package/fesm2022/forgeroute-ui-stacking-plan.mjs +365 -0
  188. package/fesm2022/forgeroute-ui-stacking-plan.mjs.map +1 -0
  189. package/fesm2022/forgeroute-ui-star-rating.mjs +498 -0
  190. package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -0
  191. package/fesm2022/forgeroute-ui-star.mjs +184 -0
  192. package/fesm2022/forgeroute-ui-star.mjs.map +1 -0
  193. package/fesm2022/forgeroute-ui-stepper.mjs +615 -0
  194. package/fesm2022/forgeroute-ui-stepper.mjs.map +1 -0
  195. package/fesm2022/forgeroute-ui-stripe.mjs +14 -1
  196. package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
  197. package/fesm2022/forgeroute-ui-swatch-picker.mjs +416 -0
  198. package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -0
  199. package/fesm2022/forgeroute-ui-table-toolbar.mjs +770 -0
  200. package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -0
  201. package/fesm2022/forgeroute-ui-table-types.mjs +277 -0
  202. package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -0
  203. package/fesm2022/forgeroute-ui-text-input.mjs +1003 -0
  204. package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -0
  205. package/fesm2022/forgeroute-ui-text-template-picker.mjs +356 -0
  206. package/fesm2022/forgeroute-ui-text-template-picker.mjs.map +1 -0
  207. package/fesm2022/forgeroute-ui-text.mjs +195 -0
  208. package/fesm2022/forgeroute-ui-text.mjs.map +1 -0
  209. package/fesm2022/forgeroute-ui-textarea-input.mjs +542 -0
  210. package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -0
  211. package/fesm2022/forgeroute-ui-time-input.mjs +401 -0
  212. package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -0
  213. package/fesm2022/forgeroute-ui-timeline.mjs +549 -0
  214. package/fesm2022/forgeroute-ui-timeline.mjs.map +1 -0
  215. package/fesm2022/forgeroute-ui-toast.mjs +507 -0
  216. package/fesm2022/forgeroute-ui-toast.mjs.map +1 -0
  217. package/fesm2022/forgeroute-ui-toggle-badge.mjs +177 -0
  218. package/fesm2022/forgeroute-ui-toggle-badge.mjs.map +1 -0
  219. package/fesm2022/forgeroute-ui-toggle.mjs +275 -0
  220. package/fesm2022/forgeroute-ui-toggle.mjs.map +1 -0
  221. package/fesm2022/forgeroute-ui-tooltip.mjs +155 -0
  222. package/fesm2022/forgeroute-ui-tooltip.mjs.map +1 -0
  223. package/fesm2022/forgeroute-ui-utils.mjs +1071 -0
  224. package/fesm2022/forgeroute-ui-utils.mjs.map +1 -0
  225. package/fesm2022/forgeroute-ui.mjs +105 -70663
  226. package/package.json +417 -1
  227. package/types/forgeroute-ui-action-bar.d.ts +74 -0
  228. package/types/forgeroute-ui-address-input.d.ts +354 -0
  229. package/types/forgeroute-ui-alert.d.ts +89 -0
  230. package/types/forgeroute-ui-avatar.d.ts +85 -0
  231. package/types/forgeroute-ui-badge.d.ts +45 -0
  232. package/types/forgeroute-ui-bar-row.d.ts +90 -0
  233. package/types/forgeroute-ui-boards.d.ts +575 -0
  234. package/types/forgeroute-ui-bulk-eligible.d.ts +53 -0
  235. package/types/forgeroute-ui-business-hours.d.ts +191 -0
  236. package/types/forgeroute-ui-calendar.d.ts +544 -0
  237. package/types/forgeroute-ui-card-list-item.d.ts +186 -0
  238. package/types/forgeroute-ui-charts.d.ts +1 -1
  239. package/types/forgeroute-ui-checkbox.d.ts +270 -0
  240. package/types/forgeroute-ui-chip.d.ts +125 -0
  241. package/types/forgeroute-ui-color-input.d.ts +160 -0
  242. package/types/forgeroute-ui-column-filter.d.ts +130 -0
  243. package/types/forgeroute-ui-columns.d.ts +150 -0
  244. package/types/forgeroute-ui-combobox.d.ts +252 -0
  245. package/types/forgeroute-ui-confirm.d.ts +34 -0
  246. package/types/forgeroute-ui-contact-picker.d.ts +173 -0
  247. package/types/forgeroute-ui-conversations.d.ts +993 -0
  248. package/types/forgeroute-ui-copy-field.d.ts +122 -0
  249. package/types/forgeroute-ui-data-table-core.d.ts +1221 -0
  250. package/types/forgeroute-ui-date-input.d.ts +101 -0
  251. package/types/forgeroute-ui-date-range-picker.d.ts +109 -0
  252. package/types/forgeroute-ui-datetime-input.d.ts +97 -0
  253. package/types/forgeroute-ui-detail-card.d.ts +252 -0
  254. package/types/forgeroute-ui-discount-selector.d.ts +57 -0
  255. package/types/forgeroute-ui-divider.d.ts +40 -0
  256. package/types/forgeroute-ui-dropdown.d.ts +156 -0
  257. package/types/forgeroute-ui-editor.d.ts +873 -0
  258. package/types/forgeroute-ui-empty-state.d.ts +29 -0
  259. package/types/forgeroute-ui-error-state.d.ts +38 -0
  260. package/types/forgeroute-ui-error.d.ts +29 -0
  261. package/types/forgeroute-ui-fade.d.ts +39 -0
  262. package/types/forgeroute-ui-file-input.d.ts +337 -0
  263. package/types/forgeroute-ui-fixed-footer.d.ts +53 -0
  264. package/types/forgeroute-ui-form-row.d.ts +30 -0
  265. package/types/forgeroute-ui-form-section.d.ts +18 -0
  266. package/types/forgeroute-ui-form.d.ts +68 -0
  267. package/types/forgeroute-ui-hint.d.ts +10 -0
  268. package/types/forgeroute-ui-icon-picker.d.ts +122 -0
  269. package/types/forgeroute-ui-icon.d.ts +95 -0
  270. package/types/forgeroute-ui-image-preview.d.ts +88 -0
  271. package/types/forgeroute-ui-keypad.d.ts +73 -0
  272. package/types/forgeroute-ui-kpi-card.d.ts +161 -0
  273. package/types/forgeroute-ui-language-switcher.d.ts +41 -0
  274. package/types/forgeroute-ui-layout.d.ts +13 -0
  275. package/types/forgeroute-ui-list-item.d.ts +253 -0
  276. package/types/forgeroute-ui-list.d.ts +282 -0
  277. package/types/forgeroute-ui-live-region.d.ts +49 -0
  278. package/types/forgeroute-ui-map.d.ts +1 -1
  279. package/types/forgeroute-ui-maps.d.ts +1 -1
  280. package/types/forgeroute-ui-media.d.ts +1221 -0
  281. package/types/forgeroute-ui-messaging.d.ts +6 -1
  282. package/types/forgeroute-ui-more-menu.d.ts +91 -0
  283. package/types/forgeroute-ui-multi-select.d.ts +119 -0
  284. package/types/forgeroute-ui-notes.d.ts +172 -0
  285. package/types/forgeroute-ui-notification-bell.d.ts +135 -0
  286. package/types/forgeroute-ui-offline-banner.d.ts +44 -0
  287. package/types/forgeroute-ui-option-card.d.ts +106 -0
  288. package/types/forgeroute-ui-page.d.ts +115 -0
  289. package/types/forgeroute-ui-pagination.d.ts +55 -0
  290. package/types/forgeroute-ui-panel-info-list.d.ts +147 -0
  291. package/types/forgeroute-ui-password-requirements.d.ts +89 -0
  292. package/types/forgeroute-ui-payments.d.ts +1818 -0
  293. package/types/forgeroute-ui-pdf.d.ts +1 -1
  294. package/types/forgeroute-ui-phone-number-picker.d.ts +199 -0
  295. package/types/forgeroute-ui-pill-tabs.d.ts +208 -0
  296. package/types/forgeroute-ui-print.d.ts +40 -0
  297. package/types/forgeroute-ui-progress-bar.d.ts +88 -0
  298. package/types/forgeroute-ui-progress-ring.d.ts +102 -0
  299. package/types/forgeroute-ui-quick-filter-tabs.d.ts +51 -0
  300. package/types/forgeroute-ui-quickbooks.d.ts +4 -1
  301. package/types/forgeroute-ui-radio-matrix.d.ts +131 -0
  302. package/types/forgeroute-ui-radio.d.ts +311 -0
  303. package/types/forgeroute-ui-read-only-mode.d.ts +26 -0
  304. package/types/forgeroute-ui-readonly-fieldset.d.ts +62 -0
  305. package/types/forgeroute-ui-reminder-alerts.d.ts +71 -0
  306. package/types/forgeroute-ui-search-input.d.ts +93 -0
  307. package/types/forgeroute-ui-section-header.d.ts +149 -0
  308. package/types/forgeroute-ui-select.d.ts +183 -0
  309. package/types/forgeroute-ui-setup.d.ts +775 -0
  310. package/types/forgeroute-ui-share-menu.d.ts +99 -0
  311. package/types/forgeroute-ui-shell.d.ts +173 -0
  312. package/types/forgeroute-ui-show.d.ts +40 -0
  313. package/types/forgeroute-ui-sidebar-layout.d.ts +161 -0
  314. package/types/forgeroute-ui-skeleton.d.ts +51 -0
  315. package/types/forgeroute-ui-skip-link.d.ts +51 -0
  316. package/types/forgeroute-ui-snackbar.d.ts +50 -0
  317. package/types/forgeroute-ui-square.d.ts +3 -1
  318. package/types/forgeroute-ui-stack.d.ts +99 -0
  319. package/types/forgeroute-ui-stacked-bar.d.ts +84 -0
  320. package/types/forgeroute-ui-stacking-plan.d.ts +116 -0
  321. package/types/forgeroute-ui-star-rating.d.ts +151 -0
  322. package/types/forgeroute-ui-star.d.ts +46 -0
  323. package/types/forgeroute-ui-stepper.d.ts +273 -0
  324. package/types/forgeroute-ui-stripe.d.ts +3 -1
  325. package/types/forgeroute-ui-swatch-picker.d.ts +118 -0
  326. package/types/forgeroute-ui-table-toolbar.d.ts +116 -0
  327. package/types/forgeroute-ui-table-types.d.ts +624 -0
  328. package/types/forgeroute-ui-text-input.d.ts +359 -0
  329. package/types/forgeroute-ui-text-template-picker.d.ts +100 -0
  330. package/types/forgeroute-ui-text.d.ts +76 -0
  331. package/types/forgeroute-ui-textarea-input.d.ts +174 -0
  332. package/types/forgeroute-ui-time-input.d.ts +105 -0
  333. package/types/forgeroute-ui-timeline.d.ts +196 -0
  334. package/types/forgeroute-ui-toast.d.ts +131 -0
  335. package/types/forgeroute-ui-toggle-badge.d.ts +64 -0
  336. package/types/forgeroute-ui-toggle.d.ts +92 -0
  337. package/types/forgeroute-ui-tooltip.d.ts +36 -0
  338. package/types/forgeroute-ui-utils.d.ts +210 -0
  339. package/types/forgeroute-ui.d.ts +106 -19539
  340. package/fesm2022/forgeroute-ui.mjs.map +0 -1
@@ -0,0 +1,873 @@
1
+ import { ControlValueAccessor } from "@angular/forms";
2
+ import { UiLabelsService } from "@forgeroute/ui/core";
3
+ import * as i0 from "@angular/core";
4
+ import { SafeHtml } from "@angular/platform-browser";
5
+ import { PillTab } from "@forgeroute/ui/pill-tabs";
6
+ import { SelectOption } from "@forgeroute/ui/select";
7
+ /**
8
+ * Every toolbar control of `ui-rich-text-editor`. All are shown by default; pass any of them in
9
+ * `hide` to remove just that control (a whole group, and its divider, disappears once all of its
10
+ * controls are hidden).
11
+ *
12
+ * Groups, left to right: `bold italic underline strikethrough` | `heading fontSize fontFamily` |
13
+ * `textColor highlight` | `align` | `bulletList numberedList indent outdent` | `clearFormat`.
14
+ * `align` is the three alignment buttons (left, center, right) as one option.
15
+ */
16
+ export type RichTextOption = 'bold' | 'italic' | 'underline' | 'strikethrough' | 'link' | 'heading' | 'fontSize' | 'fontFamily' | 'textColor' | 'highlight' | 'align' | 'bulletList' | 'numberedList' | 'indent' | 'outdent' | 'clearFormat';
17
+ /** All option keys, in toolbar order. */
18
+ export declare const RICH_TEXT_OPTIONS: readonly RichTextOption[];
19
+ type MenuId = 'heading' | 'size' | 'font' | 'link';
20
+ export declare class RichTextEditorComponent implements ControlValueAccessor {
21
+ protected readonly labels: UiLabelsService;
22
+ readonly label: import("@angular/core").InputSignal<string>;
23
+ /** Accessible name for an editor with no visible label. */
24
+ readonly ariaLabel: import("@angular/core").InputSignal<string>;
25
+ readonly placeholder: import("@angular/core").InputSignal<string>;
26
+ readonly required: import("@angular/core").InputSignal<boolean>;
27
+ readonly readonly: import("@angular/core").InputSignal<boolean>;
28
+ readonly hint: import("@angular/core").InputSignal<string>;
29
+ /** Host error message. Shown (with the red state, aria-invalid and aria-describedby) after the user left the editor (blur) or while `showErrors` is true. */
30
+ readonly error: import("@angular/core").InputSignal<string>;
31
+ /** True once the user left the editor. */
32
+ /** The host's "tried to submit" flag (e.g. after a failed Save click): `true` shows the host `error` at once, even before the user touched the field; switching it from true back to false forgets the interaction (closing the form leaves no red field). */
33
+ readonly showErrors: import("@angular/core").InputSignal<boolean>;
34
+ private readonly _reveal;
35
+ protected readonly _touched: import("@angular/core").WritableSignal<boolean>;
36
+ protected readonly _activeError: import("@angular/core").Signal<string>;
37
+ /** Forgets that the user left the editor (call it when the host resets its form): a host `error` is hidden again until the next blur. Same method on ui-signature-pad and ui-multi-select. */
38
+ resetTouched(): void;
39
+ /** Minimum editor height in px. */
40
+ readonly minHeight: import("@angular/core").InputSignal<number>;
41
+ /** Maximum editor height in px; taller content scrolls. */
42
+ readonly maxHeight: import("@angular/core").InputSignal<number>;
43
+ /** Toolbar controls to remove. Everything is shown by default. */
44
+ readonly hide: import("@angular/core").InputSignal<RichTextOption[]>;
45
+ readonly _disabledInput: import("@angular/core").InputSignal<boolean>;
46
+ private readonly _cvaDisabled;
47
+ protected readonly disabled: import("@angular/core").Signal<boolean>;
48
+ /** Disabled or read-only: the editor is not editable and every toolbar control is disabled. */
49
+ protected readonly inert: import("@angular/core").Signal<boolean>;
50
+ private readonly editor;
51
+ protected readonly _id: number;
52
+ protected readonly _editorId: string;
53
+ protected readonly _labelId: string;
54
+ protected readonly _errorId: string;
55
+ protected readonly headings: {
56
+ tag: string;
57
+ label: string;
58
+ text: string;
59
+ cls: string;
60
+ }[];
61
+ protected readonly sizes: {
62
+ value: string;
63
+ label: string;
64
+ px: number;
65
+ }[];
66
+ protected readonly fontGroups: {
67
+ label: string;
68
+ fonts: {
69
+ value: string;
70
+ label: string;
71
+ preview: string;
72
+ }[];
73
+ }[];
74
+ /** Display texts of the option menus (the English `label`s stay the stable identity of the choice). */
75
+ protected headingText(tag: string): string;
76
+ protected sizeText(value: string): string;
77
+ protected fontGroupText(label: string): string;
78
+ protected fontText(font: {
79
+ value: string;
80
+ label: string;
81
+ }): string;
82
+ protected readonly openMenu: import("@angular/core").WritableSignal<MenuId | null>;
83
+ protected readonly activeHeading: import("@angular/core").WritableSignal<string>;
84
+ protected readonly activeFontSize: import("@angular/core").WritableSignal<string>;
85
+ protected readonly activeFont: import("@angular/core").WritableSignal<string>;
86
+ protected readonly active: import("@angular/core").WritableSignal<Record<string, boolean>>;
87
+ protected readonly empty: import("@angular/core").WritableSignal<boolean>;
88
+ protected readonly linkUrl: import("@angular/core").WritableSignal<string>;
89
+ protected readonly linkError: import("@angular/core").WritableSignal<string>;
90
+ protected readonly hasLink: import("@angular/core").WritableSignal<boolean>;
91
+ protected readonly _linkId: string;
92
+ private readonly hidden;
93
+ /** Group id → at least one of its controls is shown. */
94
+ private readonly groupVisible;
95
+ protected readonly toolbarVisible: import("@angular/core").Signal<boolean>;
96
+ /** Group id → a divider belongs in front of it (it is visible and an earlier group is too). */
97
+ protected readonly divider: import("@angular/core").Signal<Record<string, boolean>>;
98
+ private _lastEmitted;
99
+ private _pending;
100
+ private _savedRange;
101
+ private _onChange;
102
+ private _onTouched;
103
+ constructor();
104
+ protected show(option: RichTextOption): boolean;
105
+ writeValue(val: string | null): void;
106
+ registerOnChange(fn: (v: string) => void): void;
107
+ registerOnTouched(fn: () => void): void;
108
+ setDisabledState(d: boolean): void;
109
+ private _setHtml;
110
+ private _isEmpty;
111
+ focus(): void;
112
+ protected onInput(): void;
113
+ protected onBlur(): void;
114
+ protected onToolbarMouseDown(event: MouseEvent): void;
115
+ onDocumentClick(): void;
116
+ onSelectionChange(): void;
117
+ protected refreshActive(): void;
118
+ protected onKeydown(event: KeyboardEvent): void;
119
+ protected onPaste(event: ClipboardEvent): void;
120
+ private _blockedTags;
121
+ private _saveSelection;
122
+ private _restoreSelection;
123
+ protected toggleMenu(menu: MenuId): void;
124
+ protected selectHeading(tag: string, label: string): void;
125
+ protected selectSize(value: string, label: string): void;
126
+ protected selectFont(value: string, label: string): void;
127
+ /** The `<a>` the saved (or current) selection sits in, if any. */
128
+ private _anchorAtSelection;
129
+ protected toggleLink(): void;
130
+ protected closeLink(): void;
131
+ protected applyLink(): void;
132
+ protected removeLink(): void;
133
+ protected exec(command: string): void;
134
+ protected execWithArg(command: string, value: string): void;
135
+ static ɵfac: i0.ɵɵFactoryDeclaration<RichTextEditorComponent, never>;
136
+ static ɵcmp: i0.ɵɵComponentDeclaration<RichTextEditorComponent, "ui-rich-text-editor", never, {
137
+ "label": {
138
+ "alias": "label";
139
+ "required": false;
140
+ "isSignal": true;
141
+ };
142
+ "ariaLabel": {
143
+ "alias": "ariaLabel";
144
+ "required": false;
145
+ "isSignal": true;
146
+ };
147
+ "placeholder": {
148
+ "alias": "placeholder";
149
+ "required": false;
150
+ "isSignal": true;
151
+ };
152
+ "required": {
153
+ "alias": "required";
154
+ "required": false;
155
+ "isSignal": true;
156
+ };
157
+ "readonly": {
158
+ "alias": "readonly";
159
+ "required": false;
160
+ "isSignal": true;
161
+ };
162
+ "hint": {
163
+ "alias": "hint";
164
+ "required": false;
165
+ "isSignal": true;
166
+ };
167
+ "error": {
168
+ "alias": "error";
169
+ "required": false;
170
+ "isSignal": true;
171
+ };
172
+ "showErrors": {
173
+ "alias": "showErrors";
174
+ "required": false;
175
+ "isSignal": true;
176
+ };
177
+ "minHeight": {
178
+ "alias": "minHeight";
179
+ "required": false;
180
+ "isSignal": true;
181
+ };
182
+ "maxHeight": {
183
+ "alias": "maxHeight";
184
+ "required": false;
185
+ "isSignal": true;
186
+ };
187
+ "hide": {
188
+ "alias": "hide";
189
+ "required": false;
190
+ "isSignal": true;
191
+ };
192
+ "_disabledInput": {
193
+ "alias": "disabled";
194
+ "required": false;
195
+ "isSignal": true;
196
+ };
197
+ }, {}, never, never, true, never>;
198
+ }
199
+ /** One automated trigger a template can be assigned to (the host decides which exist). */
200
+ export interface EmailTemplateAssignmentOption {
201
+ key: string;
202
+ name: string;
203
+ description: string;
204
+ }
205
+ /** A template as the editor shows it. `id` is null/absent for a template that is not stored yet (new, or a copy of another). */
206
+ export interface EmailTemplateValue {
207
+ id?: string | null;
208
+ name: string;
209
+ subject: string;
210
+ category: string;
211
+ useAllYear: boolean;
212
+ /** `YYYY-MM-DD` or ''. */
213
+ activeFrom: string;
214
+ /** `YYYY-MM-DD` or ''. */
215
+ activeTo: string;
216
+ /** The stored message HTML (the editor reads and writes `<div data-block="true">…</div>` blocks). */
217
+ body: string;
218
+ videoId?: string | null;
219
+ videoTitle?: string | null;
220
+ /** The keys of the triggers (`EmailTemplateAssignmentOption.key`) this template is assigned to. */
221
+ assignments?: string[];
222
+ }
223
+ /** What `(save)` emits. Dates are the raw `YYYY-MM-DD` values (null while "all year" is on); the host maps them to its API. */
224
+ export interface EmailTemplateSavePayload {
225
+ name: string;
226
+ subject: string;
227
+ body: string;
228
+ category: string;
229
+ useAllYear: boolean;
230
+ activeFrom: string | null;
231
+ activeTo: string | null;
232
+ videoId: string | null;
233
+ /** The keys of the triggers this template is assigned to. */
234
+ assignments: string[];
235
+ }
236
+ export interface EmailTemplateBlock {
237
+ key: string;
238
+ label: string;
239
+ /** The HTML a click / drop inserts as a new block. */
240
+ html: string;
241
+ }
242
+ export interface EmailTemplateBlockGroup {
243
+ name: string;
244
+ blocks: EmailTemplateBlock[];
245
+ }
246
+ export interface EmailTemplateVariable {
247
+ /** Inserted as `{{key}}`. */
248
+ key: string;
249
+ label: string;
250
+ example: string;
251
+ /** Optional one-line explanation of what the variable is filled with; shown under the example. */
252
+ description?: string;
253
+ }
254
+ export interface EmailTemplateVariableGroup {
255
+ name: string;
256
+ variables: EmailTemplateVariable[];
257
+ }
258
+ /** A video from the host's library that can be added to the message. */
259
+ export interface EmailTemplateVideo {
260
+ id: string;
261
+ title: string;
262
+ shareLink: string;
263
+ thumbnailUrl?: string | null;
264
+ durationSeconds?: number | null;
265
+ category?: string | null;
266
+ }
267
+ /** The video options the host starts with (e.g. the company's saved defaults); the user can change them in the Video tab. */
268
+ export interface EmailTemplateVideoDefaults {
269
+ autoplay: boolean;
270
+ caption: string;
271
+ ctaType: string;
272
+ ctaUrl: string;
273
+ ctaLabel: string;
274
+ hideReactions: boolean;
275
+ }
276
+ export interface EmailTemplateVideoOptions extends EmailTemplateVideoDefaults {}
277
+ /** Builds the link a video block points at; the default is the video's own share link. */
278
+ export type EmailTemplateVideoLinkFn = (video: EmailTemplateVideo, options: EmailTemplateVideoOptions) => string;
279
+ interface EmailBlock {
280
+ id: string;
281
+ html: string;
282
+ spacing?: string;
283
+ }
284
+ interface AssignmentView extends EmailTemplateAssignmentOption {
285
+ assigned: boolean;
286
+ }
287
+ type EditorTab = 'edit' | 'preview' | 'mobile';
288
+ type RightTab = 'blocks' | 'variables' | 'video';
289
+ /**
290
+ * `ui-email-template-editor` - the full-page, block-based email template editor (details, assignments, block canvas with drag and drop,
291
+ * rich-text toolbar, preview / mobile preview, content blocks, merge variables, video library, test send).
292
+ *
293
+ * The component owns the editing behaviour and holds no HTTP: the host loads the template (`[template]`), supplies what differs per app
294
+ * (`categories`, `assignmentOptions`, `variableGroups`, `blockGroups`, `videos`, `videoDefaults`, `maxBodyLength`, permissions) and reacts to
295
+ * `(save)`, `(testSend)`, `(videosRequested)` and `(useAsMine)`. After a request the host calls back:
296
+ * `markSaved(id)` (a create succeeded) and `closeTestSend()`.
297
+ *
298
+ * Message limit: `maxBodyLength` is measured on the serialised HTML. An untouched stored body that is already longer than the limit is
299
+ * accepted unchanged (legacy rows), exactly as the server does.
300
+ */
301
+ export declare class EmailTemplateEditorComponent {
302
+ protected readonly labels: UiLabelsService;
303
+ private readonly host;
304
+ private readonly injector;
305
+ /** The template to edit. `null` = a blank new template. An object without `id` is a new template that starts from those values (e.g. a copy). */
306
+ readonly template: import("@angular/core").InputSignal<EmailTemplateValue | null>;
307
+ readonly categories: import("@angular/core").InputSignal<SelectOption<string>[]>;
308
+ readonly categoryPlaceholderInput: import("@angular/core").InputSignal<string | null>;
309
+ readonly categoryPlaceholder: import("@angular/core").Signal<string>;
310
+ readonly assignmentOptions: import("@angular/core").InputSignal<EmailTemplateAssignmentOption[]>;
311
+ /** The assignment shown first (e.g. the trigger the user came from). */
312
+ readonly featuredAssignmentKey: import("@angular/core").InputSignal<string | null>;
313
+ readonly assignmentsDescriptionInput: import("@angular/core").InputSignal<string | null>;
314
+ readonly assignmentsDescription: import("@angular/core").Signal<string>;
315
+ readonly variableGroupsInput: import("@angular/core").InputSignal<EmailTemplateVariableGroup[] | null>;
316
+ readonly variableGroups: import("@angular/core").Signal<EmailTemplateVariableGroup[]>;
317
+ readonly blockGroupsInput: import("@angular/core").InputSignal<EmailTemplateBlockGroup[] | null>;
318
+ readonly blockGroups: import("@angular/core").Signal<EmailTemplateBlockGroup[]>;
319
+ /** Page heading shown at the start of the actions row (e.g. "Create Your Template"). Empty (default) = no heading; the buttons stay right aligned. */
320
+ readonly heading: import("@angular/core").InputSignal<string>;
321
+ readonly namePlaceholderInput: import("@angular/core").InputSignal<string | null>;
322
+ readonly namePlaceholder: import("@angular/core").Signal<string>;
323
+ readonly subjectPlaceholderInput: import("@angular/core").InputSignal<string | null>;
324
+ readonly subjectPlaceholder: import("@angular/core").Signal<string>;
325
+ readonly systemNoteInput: import("@angular/core").InputSignal<string | null>;
326
+ readonly systemNote: import("@angular/core").Signal<string>;
327
+ readonly readOnlyNoteInput: import("@angular/core").InputSignal<string | null>;
328
+ readonly readOnlyNote: import("@angular/core").Signal<string>;
329
+ /** Prefix of the ids of the field errors the editor renders (`<prefix>-body-error`). */
330
+ readonly idPrefix: import("@angular/core").InputSignal<string>;
331
+ /** The longest message (serialised HTML) that can be saved. */
332
+ readonly maxBodyLength: import("@angular/core").InputSignal<number>;
333
+ readonly maxTextLength: import("@angular/core").InputSignal<number>;
334
+ /** The member may change templates (false = read-only: everything is shown, nothing can be edited). */
335
+ readonly fullAccess: import("@angular/core").InputSignal<boolean>;
336
+ /** A built-in template: shown read-only; a member with full access can copy it ((useAsMine)). */
337
+ readonly systemTemplate: import("@angular/core").InputSignal<boolean>;
338
+ readonly testSendEnabled: import("@angular/core").InputSignal<boolean>;
339
+ readonly saving: import("@angular/core").InputSignal<boolean>;
340
+ readonly testSending: import("@angular/core").InputSignal<boolean>;
341
+ /**
342
+ * The host's videos. `null` (the default) = this app has no videos: the Video tab is not shown at all. Any list - even an empty one while the
343
+ * host loads it on demand (see `(videosRequested)`) - turns the Video tab on.
344
+ */
345
+ readonly videos: import("@angular/core").InputSignal<EmailTemplateVideo[] | null>;
346
+ /** Hides the Video tab completely even when `videos` is passed. */
347
+ readonly hideVideos: import("@angular/core").InputSignal<boolean>;
348
+ readonly videosEnabled: import("@angular/core").Signal<boolean>;
349
+ protected readonly videoList: import("@angular/core").Signal<EmailTemplateVideo[]>;
350
+ readonly videosLoading: import("@angular/core").InputSignal<boolean>;
351
+ readonly videoDefaults: import("@angular/core").InputSignal<EmailTemplateVideoDefaults>;
352
+ readonly videoLink: import("@angular/core").InputSignal<EmailTemplateVideoLinkFn>;
353
+ readonly noVideosHintInput: import("@angular/core").InputSignal<string | null>;
354
+ readonly noVideosHint: import("@angular/core").Signal<string>;
355
+ readonly save: import("@angular/core").OutputEmitterRef<EmailTemplateSavePayload>;
356
+ readonly testSend: import("@angular/core").OutputEmitterRef<string>;
357
+ /** The Video tab was opened (the host loads the library once). */
358
+ readonly videosRequested: import("@angular/core").OutputEmitterRef<void>;
359
+ readonly useAsMine: import("@angular/core").OutputEmitterRef<void>;
360
+ readonly editingId: import("@angular/core").WritableSignal<string | null>;
361
+ readonly isNew: import("@angular/core").Signal<boolean>;
362
+ readonly name: import("@angular/core").WritableSignal<string>;
363
+ readonly subject: import("@angular/core").WritableSignal<string>;
364
+ readonly category: import("@angular/core").WritableSignal<string>;
365
+ readonly useAllYear: import("@angular/core").WritableSignal<boolean>;
366
+ readonly activeFrom: import("@angular/core").WritableSignal<string>;
367
+ readonly activeTo: import("@angular/core").WritableSignal<string>;
368
+ readonly videoId: import("@angular/core").WritableSignal<string | null>;
369
+ readonly videoTitle: import("@angular/core").WritableSignal<string | null>;
370
+ /** The triggers this template is assigned to (an email template is only ever assigned for email); the rows shown are `assignmentOptions` with this applied. */
371
+ private readonly assignedKeys;
372
+ private readonly assignmentState;
373
+ readonly blocks: import("@angular/core").WritableSignal<EmailBlock[]>;
374
+ readonly selectedBlockId: import("@angular/core").WritableSignal<string | null>;
375
+ private initializedBlockIds;
376
+ private savedRange;
377
+ private readonly blockEditors;
378
+ private readonly colorInputRef;
379
+ /** The stored body of the template being edited; null for a new one. */
380
+ private readonly loadedBody;
381
+ /** True once the user really edited the message (typing, blocks, formatting, links...). */
382
+ private readonly bodyEdited;
383
+ private savedSnapshot;
384
+ private dragFromPalette;
385
+ readonly dragFromCanvas: import("@angular/core").WritableSignal<number | null>;
386
+ readonly dragOverIndex: import("@angular/core").WritableSignal<number | null>;
387
+ readonly currentColor: import("@angular/core").WritableSignal<string>;
388
+ readonly blockSpacing: import("@angular/core").WritableSignal<string>;
389
+ readonly headingKey: import("@angular/core").WritableSignal<number>;
390
+ readonly sizeKey: import("@angular/core").WritableSignal<number>;
391
+ private readonly _headingOptions;
392
+ get headingOptions(): SelectOption<string>[];
393
+ readonly fontSizeOptions: SelectOption<string>[];
394
+ private readonly _spacingTabs;
395
+ get spacingTabs(): PillTab[];
396
+ /** The grey hint shown in the empty first block. */
397
+ protected readonly startPlaceholder: import("@angular/core").Signal<string>;
398
+ private readonly _ctaTypeOptions;
399
+ get ctaTypeOptions(): SelectOption<string>[];
400
+ private readonly _playbackOptions;
401
+ get playbackOptions(): {
402
+ value: string;
403
+ label: string;
404
+ }[];
405
+ readonly showLinkDialog: import("@angular/core").WritableSignal<boolean>;
406
+ readonly linkUrl: import("@angular/core").WritableSignal<string>;
407
+ readonly linkText: import("@angular/core").WritableSignal<string>;
408
+ /** True when the link is made from selected text (the text field is then not needed). */
409
+ readonly linkTextFromSelection: import("@angular/core").WritableSignal<boolean>;
410
+ readonly showImageDialog: import("@angular/core").WritableSignal<boolean>;
411
+ readonly imageUrl: import("@angular/core").WritableSignal<string>;
412
+ readonly imageAlt: import("@angular/core").WritableSignal<string>;
413
+ readonly showTestSendDialog: import("@angular/core").WritableSignal<boolean>;
414
+ readonly testSendEmail: import("@angular/core").WritableSignal<string>;
415
+ readonly activeEditorTab: import("@angular/core").WritableSignal<EditorTab>;
416
+ readonly activeRightTab: import("@angular/core").WritableSignal<RightTab>;
417
+ readonly blockSearch: import("@angular/core").WritableSignal<string>;
418
+ readonly assignmentSearch: import("@angular/core").WritableSignal<string>;
419
+ /** Groups the user opened or closed; the first variable group starts open. */
420
+ private readonly toggledGroups;
421
+ readonly videoAutoplay: import("@angular/core").WritableSignal<boolean>;
422
+ readonly videoCaption: import("@angular/core").WritableSignal<string>;
423
+ readonly videoCtaType: import("@angular/core").WritableSignal<string>;
424
+ readonly videoCtaUrl: import("@angular/core").WritableSignal<string>;
425
+ readonly videoCtaLabel: import("@angular/core").WritableSignal<string>;
426
+ readonly videoHideReactions: import("@angular/core").WritableSignal<boolean>;
427
+ readonly canWrite: import("@angular/core").Signal<boolean>;
428
+ /** A system template can be copied into a new template of the company's own (full access). */
429
+ readonly canCopySystem: import("@angular/core").Signal<boolean>;
430
+ readonly filteredAssignments: import("@angular/core").Signal<AssignmentView[]>;
431
+ readonly filteredBlockGroups: import("@angular/core").Signal<EmailTemplateBlockGroup[]>;
432
+ private readonly serialized;
433
+ readonly previewHtml: import("@angular/core").Signal<string>;
434
+ private readonly sanitizer;
435
+ /** The Preview / Mobile document: a full page with the email's own styles. It is shown in a sandboxed iframe (no scripts, no popups), so trusting the markup here cannot run anything. */
436
+ readonly previewDoc: import("@angular/core").Signal<SafeHtml>;
437
+ /** Characters in the body as it is saved. */
438
+ readonly bodyLength: import("@angular/core").Signal<number>;
439
+ readonly bodyHasContent: import("@angular/core").Signal<boolean>;
440
+ /** The body as the server stores it and as the editor serialises it right after loading: while they match the message has not been touched. */
441
+ readonly bodyUnchanged: import("@angular/core").Signal<boolean>;
442
+ readonly nameError: import("@angular/core").Signal<string>;
443
+ readonly subjectError: import("@angular/core").Signal<string>;
444
+ readonly bodyError: import("@angular/core").Signal<string>;
445
+ /** "Active From / To" only apply when the template is not "all year"; when both are given To may not be before From. */
446
+ readonly datesError: import("@angular/core").Signal<string>;
447
+ /** Errors are held back until the user has had a chance to act: a field is blurred, the message is edited or its blocks are left, or the assignments are changed or left. A failed Save (`submitAttempted`) reveals nothing on an untouched field. */
448
+ readonly submitAttempted: import("@angular/core").WritableSignal<boolean>;
449
+ readonly nameTouched: import("@angular/core").WritableSignal<boolean>;
450
+ readonly subjectTouched: import("@angular/core").WritableSignal<boolean>;
451
+ readonly nameErrorShown: import("@angular/core").Signal<string>;
452
+ readonly subjectErrorShown: import("@angular/core").Signal<string>;
453
+ /** True once focus left the message blocks (the body error then shows). Editing the message also counts (`bodyEdited`). A failed Save never reveals it. */
454
+ readonly bodyBlurred: import("@angular/core").WritableSignal<boolean>;
455
+ readonly bodyErrorShown: import("@angular/core").Signal<string>;
456
+ /** A template must be assigned to at least one automation (only in an app that offers assignments at all). */
457
+ readonly assignmentError: import("@angular/core").Signal<string>;
458
+ /** True once the user has changed an assignment or focus left the assignments list; a failed Save never sets it, so the message never shows on a control nobody has touched. */
459
+ readonly assignmentsTouched: import("@angular/core").WritableSignal<boolean>;
460
+ readonly assignmentErrorShown: import("@angular/core").Signal<string>;
461
+ readonly canSave: import("@angular/core").Signal<boolean>;
462
+ /** Save is offered to members who can write and stays disabled until every rule passes: a name, a subject, a message with some design (text or an image) and at least one assignment. */
463
+ readonly saveDisabled: import("@angular/core").Signal<boolean>;
464
+ /** What is still missing, shown as the tooltip of the disabled Save button ('' when Save is available or the member cannot write). */
465
+ readonly saveHint: import("@angular/core").Signal<string>;
466
+ /** True once the user left a date input; until then the visible hint does not print the dates message (the tooltip still carries it). */
467
+ readonly datesTouched: import("@angular/core").WritableSignal<boolean>;
468
+ /** The visible line under Save: the generic "Add a name, a subject, ..." / "Add a shorter name ..." what-is-missing STATUS text of a disabled button (role=status), shown on an untouched form on purpose; it is never a field-specific error message (those wait for their field, and the dates message waits for `datesTouched`). The 'shorter ...' wording is the same generic status, not the field's own "Too long (max N characters)" error.
469
+ * Details: a dates-only problem is printed only after the date inputs were touched. */
470
+ readonly saveHintVisible: import("@angular/core").Signal<string>;
471
+ private normalizedLink;
472
+ /** Why Insert is disabled: nothing for an empty field, a message for an address that is not a link. */
473
+ readonly linkUrlError: import("@angular/core").Signal<string>;
474
+ readonly canInsertLink: import("@angular/core").Signal<boolean>;
475
+ readonly imageUrlError: import("@angular/core").Signal<string>;
476
+ readonly canInsertImage: import("@angular/core").Signal<boolean>;
477
+ readonly testEmailError: import("@angular/core").Signal<string>;
478
+ readonly canSendTest: import("@angular/core").Signal<boolean>;
479
+ /** The test email is the SAVED template: true when the editor holds changes that were not saved yet. */
480
+ readonly hasUnsavedChanges: import("@angular/core").Signal<boolean>;
481
+ constructor();
482
+ /** A create succeeded: the template now has an id (Test Send becomes available) and what is on screen is the saved version. */
483
+ markSaved(id?: string | null): void;
484
+ /** The test email was sent: close the dialog. */
485
+ closeTestSend(): void;
486
+ private applyTemplate;
487
+ /** Focus left the message blocks for somewhere outside them: the body error may show now. */
488
+ onBodyFocusOut(event: FocusEvent): void;
489
+ /** Focus left the assignments list for somewhere outside it: the assignment error may show now. */
490
+ onAssignmentsFocusOut(event: FocusEvent): void;
491
+ onSave(): void;
492
+ private snapshot;
493
+ private serialize;
494
+ private htmlToBlocks;
495
+ private genId;
496
+ private editorFor;
497
+ /** Copies each block's HTML from its DOM element (before saving / preview). */
498
+ syncActiveBlockHtml(): void;
499
+ private syncBlock;
500
+ setEditorTab(tab: EditorTab): void;
501
+ addBlock(blockKey?: string): void;
502
+ private addBlockHtml;
503
+ deleteBlock(index: number): void;
504
+ duplicateBlock(index: number): void;
505
+ moveBlock(index: number, direction: -1 | 1): void;
506
+ onBlockInput(event: Event, block: EmailBlock): void;
507
+ /**
508
+ * Typing and pasting stop at the body limit: input that would push the saved HTML past it is refused before it reaches the block
509
+ * (the disabled Save and the inline message cover everything else). Deleting is always allowed.
510
+ */
511
+ onBlockBeforeInput(event: InputEvent): void;
512
+ onBlockFocus(block: EmailBlock): void;
513
+ onPaletteDragStart(event: DragEvent, block: EmailTemplateBlock): void;
514
+ /**
515
+ * Starts reordering a block. Only the block's drag HANDLE is draggable (not the whole block): a draggable ancestor of a contenteditable makes
516
+ * Firefox and Safari hijack mouse text selection inside it. `wrapper` is the block, shown as the drag image instead of the small handle.
517
+ */
518
+ onBlockDragStart(event: DragEvent, index: number, wrapper?: HTMLElement): void;
519
+ onBlockDragEnd(): void;
520
+ /** The canvas as a whole accepts only a block drag; a text drag inside a block keeps the browser's own behaviour. */
521
+ onCanvasDragOver(event: DragEvent): void;
522
+ onDropZoneDragOver(event: DragEvent, index: number): void;
523
+ onDropZoneLeave(): void;
524
+ onDropZoneDrop(event: DragEvent, insertBefore: number): void;
525
+ /**
526
+ * Mousedown on the toolbar keeps the selection in the editor (a button click must not blur it). A `<select>` / `<input>` must be left alone:
527
+ * preventing the default of its mousedown stops the dropdown from opening. Those controls take focus, so they save the selection first
528
+ * (`(mousedown)="saveSelection()"`) and the command restores it.
529
+ */
530
+ preventFocusLoss(event: MouseEvent): void;
531
+ /** Remembers the selection before a control takes focus. Only a selection inside an editor block is kept; anything else clears an older one. */
532
+ saveSelection(): void;
533
+ /**
534
+ * Puts the remembered selection back, once. A saved range is used only when focus really left the editor (a dialog, a select, the colour
535
+ * picker): when the live selection is already inside a block (a toolbar button keeps it there) that live selection wins, and a range left over
536
+ * from an earlier interaction is dropped instead of formatting the wrong block.
537
+ */
538
+ private restoreSelection;
539
+ /** The HTML of the block being edited, or null when its editor is not on screen. */
540
+ private activeBlockHtml;
541
+ /**
542
+ * Runs one editing command and marks the body edited only when it can have changed it: it ran over a real (non-collapsed) selection, or the
543
+ * block's HTML is different afterwards. A click on Bold with only a caret in an untouched legacy body is not an edit. When the block cannot be
544
+ * read the command counts as an edit, so a real edit is never lost; typing always raises `(input)`, which marks it too.
545
+ */
546
+ private runEditCommand;
547
+ execCommand(cmd: string, value?: string): void;
548
+ onHeading(value: string): void;
549
+ onFontSize(value: string): void;
550
+ applyFontSize(size: string): void;
551
+ applyTextColor(color: string): void;
552
+ openColorPicker(): void;
553
+ applySpacing(value: string): void;
554
+ openLinkDialog(): void;
555
+ insertLink(): void;
556
+ openImageDialog(): void;
557
+ insertImageFromUrl(): void;
558
+ openTestSendDialog(): void;
559
+ onTestSend(): void;
560
+ openVideoTab(): void;
561
+ insertVideo(video: EmailTemplateVideo): void;
562
+ formatDuration(seconds: number | null | undefined): string;
563
+ categoryLabel(cat: string | null | undefined): string;
564
+ /** Click / Enter / Space on a row: assign this template to that automation, or take it off again. */
565
+ toggleAssignment(item: AssignmentView): void;
566
+ isOpen(id: string): boolean;
567
+ toggleGroup(id: string): void;
568
+ insertBlock(block: EmailTemplateBlock): void;
569
+ insertVariable(variable: EmailTemplateVariable): void;
570
+ private blockHtml;
571
+ static ɵfac: i0.ɵɵFactoryDeclaration<EmailTemplateEditorComponent, never>;
572
+ static ɵcmp: i0.ɵɵComponentDeclaration<EmailTemplateEditorComponent, "ui-email-template-editor", never, {
573
+ "template": {
574
+ "alias": "template";
575
+ "required": false;
576
+ "isSignal": true;
577
+ };
578
+ "categories": {
579
+ "alias": "categories";
580
+ "required": false;
581
+ "isSignal": true;
582
+ };
583
+ "categoryPlaceholderInput": {
584
+ "alias": "categoryPlaceholder";
585
+ "required": false;
586
+ "isSignal": true;
587
+ };
588
+ "assignmentOptions": {
589
+ "alias": "assignmentOptions";
590
+ "required": false;
591
+ "isSignal": true;
592
+ };
593
+ "featuredAssignmentKey": {
594
+ "alias": "featuredAssignmentKey";
595
+ "required": false;
596
+ "isSignal": true;
597
+ };
598
+ "assignmentsDescriptionInput": {
599
+ "alias": "assignmentsDescription";
600
+ "required": false;
601
+ "isSignal": true;
602
+ };
603
+ "variableGroupsInput": {
604
+ "alias": "variableGroups";
605
+ "required": false;
606
+ "isSignal": true;
607
+ };
608
+ "blockGroupsInput": {
609
+ "alias": "blockGroups";
610
+ "required": false;
611
+ "isSignal": true;
612
+ };
613
+ "heading": {
614
+ "alias": "heading";
615
+ "required": false;
616
+ "isSignal": true;
617
+ };
618
+ "namePlaceholderInput": {
619
+ "alias": "namePlaceholder";
620
+ "required": false;
621
+ "isSignal": true;
622
+ };
623
+ "subjectPlaceholderInput": {
624
+ "alias": "subjectPlaceholder";
625
+ "required": false;
626
+ "isSignal": true;
627
+ };
628
+ "systemNoteInput": {
629
+ "alias": "systemNote";
630
+ "required": false;
631
+ "isSignal": true;
632
+ };
633
+ "readOnlyNoteInput": {
634
+ "alias": "readOnlyNote";
635
+ "required": false;
636
+ "isSignal": true;
637
+ };
638
+ "idPrefix": {
639
+ "alias": "idPrefix";
640
+ "required": false;
641
+ "isSignal": true;
642
+ };
643
+ "maxBodyLength": {
644
+ "alias": "maxBodyLength";
645
+ "required": false;
646
+ "isSignal": true;
647
+ };
648
+ "maxTextLength": {
649
+ "alias": "maxTextLength";
650
+ "required": false;
651
+ "isSignal": true;
652
+ };
653
+ "fullAccess": {
654
+ "alias": "fullAccess";
655
+ "required": false;
656
+ "isSignal": true;
657
+ };
658
+ "systemTemplate": {
659
+ "alias": "systemTemplate";
660
+ "required": false;
661
+ "isSignal": true;
662
+ };
663
+ "testSendEnabled": {
664
+ "alias": "testSendEnabled";
665
+ "required": false;
666
+ "isSignal": true;
667
+ };
668
+ "saving": {
669
+ "alias": "saving";
670
+ "required": false;
671
+ "isSignal": true;
672
+ };
673
+ "testSending": {
674
+ "alias": "testSending";
675
+ "required": false;
676
+ "isSignal": true;
677
+ };
678
+ "videos": {
679
+ "alias": "videos";
680
+ "required": false;
681
+ "isSignal": true;
682
+ };
683
+ "hideVideos": {
684
+ "alias": "hideVideos";
685
+ "required": false;
686
+ "isSignal": true;
687
+ };
688
+ "videosLoading": {
689
+ "alias": "videosLoading";
690
+ "required": false;
691
+ "isSignal": true;
692
+ };
693
+ "videoDefaults": {
694
+ "alias": "videoDefaults";
695
+ "required": false;
696
+ "isSignal": true;
697
+ };
698
+ "videoLink": {
699
+ "alias": "videoLink";
700
+ "required": false;
701
+ "isSignal": true;
702
+ };
703
+ "noVideosHintInput": {
704
+ "alias": "noVideosHint";
705
+ "required": false;
706
+ "isSignal": true;
707
+ };
708
+ }, {
709
+ "save": "save";
710
+ "testSend": "testSend";
711
+ "videosRequested": "videosRequested";
712
+ "useAsMine": "useAsMine";
713
+ }, never, never, true, never>;
714
+ }
715
+ /** The text a new template's first block starts with: it is a prompt, not content, so a template still holding only this has no message. */
716
+ export declare const EMAIL_TEMPLATE_START_TEXT = "Start writing your email...";
717
+ /** Longest message (serialised HTML) the editor accepts by default; hosts pass their own server limit through `maxBodyLength`. */
718
+ export declare const EMAIL_TEMPLATE_MAX_BODY = 9000;
719
+ /** Longest name / subject accepted by default. */
720
+ export declare const EMAIL_TEMPLATE_MAX_TEXT = 255;
721
+ /** Longest single email address (server rule). */
722
+ export declare const MAX_EMAIL_ADDRESS_LENGTH = 254;
723
+ /** True for a plausible single email address of at most 254 characters. */
724
+ export declare const isValidEmailAddress: (address: string) => boolean;
725
+ /** An http(s) address with a real host: no spaces or quotes (the address is written into an HTML attribute) and a dot or `localhost`. */
726
+ export declare function isWebUrl(raw: string): boolean;
727
+ /**
728
+ * How many characters typed text takes once it is saved, i.e. as `innerHTML` writes a TEXT node: `&`, `<` and `>` become entities and a
729
+ * non-breaking space (what a browser types for a run of spaces) becomes `&nbsp;`; quotes are not escaped in text, so each counts as one.
730
+ */
731
+ export declare function serializedTextLength(text: string): number;
732
+ /** Escapes text for HTML text and double-quoted attribute values. */
733
+ export declare function escapeHtml(value: string): string;
734
+ /** True when a block's HTML shows something to a reader: an image or other media, or text once tags, non-breaking spaces and whitespace are gone. */
735
+ export declare function blockHasContent(html: string): boolean;
736
+ /**
737
+ * The drag payload of a block (a palette item or a block being reordered). A custom type, never `text/plain`: a text drop onto a block's
738
+ * contenteditable would insert the payload into the message in every engine. Firefox only starts a drag when some data is set (a custom
739
+ * type counts); Safari lets a drop zone read `types` during dragover but not `getData`.
740
+ */
741
+ export declare const EMAIL_BLOCK_DRAG_TYPE = "application/x-tpl-block";
742
+ /** True when the drag carries a block payload (`types` is an array in current engines, a DOMStringList in very old ones). */
743
+ export declare function isBlockDrag(event: {
744
+ dataTransfer?: {
745
+ types?: ArrayLike<string> | readonly string[];
746
+ } | null;
747
+ }): boolean;
748
+ /** True when a node sits inside one of the editor's blocks (the only place a saved selection may point). */
749
+ export declare function insideEditorBlock(node: Node | null | undefined): boolean;
750
+ /** `m:ss` for a duration in seconds; '' when there is none. */
751
+ export declare function formatVideoDuration(seconds: number | null | undefined): string;
752
+ /** `follow-up` → `Follow Up`. */
753
+ export declare function formatCategoryLabel(cat: string | null | undefined): string;
754
+ /** The email block a video becomes: a thumbnail with a play overlay, linked to `link`, with the title and a caption. Every user value is escaped. */
755
+ export declare function buildVideoBlockHtml(video: EmailTemplateVideo, link: string, caption: string, origin: string): string;
756
+ /** The content blocks every host gets unless it passes its own `blockGroups`. */
757
+ export declare const DEFAULT_EMAIL_TEMPLATE_BLOCK_GROUPS: EmailTemplateBlockGroup[];
758
+ /** The default content blocks with group names, block names and sample words in the app's active language. */
759
+ export declare function localizedEmailBlockGroups(): EmailTemplateBlockGroup[];
760
+ /** Generic merge variables; a host passes its own `variableGroups` for the data its sender can fill in. */
761
+ export declare const DEFAULT_EMAIL_TEMPLATE_VARIABLE_GROUPS: {
762
+ name: string;
763
+ variables: {
764
+ key: string;
765
+ label: string;
766
+ example: string;
767
+ }[];
768
+ }[];
769
+ /**
770
+ * The document the Preview / Mobile tabs show (inside a sandboxed iframe): the serialised message with the base look of a sent email. A
771
+ * Content-Security-Policy meta blocks scripts and anything but images / inline styles, and links open nowhere (sandbox, no popups).
772
+ */
773
+ export declare function buildPreviewDocument(bodyHtml: string): string;
774
+ /** The default merge variables with names in the app's active language (the `key` and the example value stay as they are). */
775
+ export declare function localizedEmailVariableGroups(): {
776
+ name: string;
777
+ variables: {
778
+ label: string;
779
+ key: string;
780
+ example: string;
781
+ }[];
782
+ }[];
783
+ /** An inspection checklist template, as the print sheet needs it. */
784
+ export interface PrintableInspectionTemplate {
785
+ name: string;
786
+ /** For example `MOVE_IN` (shown as "Move In"). */
787
+ inspectionType: string;
788
+ description?: string | null;
789
+ defaultNotes?: string | null;
790
+ defaultInspectorName?: string | null;
791
+ /** Recurrence in days; absent or 0 = no recurrence line. */
792
+ frequencyDays?: number | null;
793
+ archived?: boolean;
794
+ /** ACTIVE / INACTIVE / ARCHIVED; absent = derived from `archived` (Archived / Active). */
795
+ status?: string;
796
+ items: {
797
+ itemName: string;
798
+ required: boolean;
799
+ }[];
800
+ }
801
+ export interface InspectionTemplatePrintOptions {
802
+ /** The name in the footer ("Generated from <appName> — <date>"). Empty = the footer says only the date. */
803
+ appName?: string;
804
+ /** Colour of the heading and rule. Default `#1F3D2B`. */
805
+ accentColor?: string;
806
+ /** The date printed in the header and footer (tests and replays). Default: now. */
807
+ now?: Date;
808
+ /** Locale of the dates. Default `en-US`. */
809
+ locale?: string;
810
+ }
811
+ /** The status shown on the sheet: the given `status` in sentence case, else Archived / Active from `archived`. */
812
+ export declare function inspectionTemplateStatusLabel(tpl: Pick<PrintableInspectionTemplate, 'status' | 'archived'>): string;
813
+ /**
814
+ * The printable checklist sheet of an inspection template as a complete HTML document: heading with the date and the item count, a details box
815
+ * (type, status, inspector, recurrence), description and default notes when present, the checklist table (number, item with a "(Required)" mark,
816
+ * empty Pass and Fail boxes, a notes cell), four lines to fill in (unit number, inspection date, inspector name, signature) and a footer.
817
+ * Every text is HTML-escaped. Pure: no DOM needed.
818
+ */
819
+ export declare function buildInspectionTemplateHtml(tpl: PrintableInspectionTemplate, options?: InspectionTemplatePrintOptions): string;
820
+ /**
821
+ * Prints and downloads inspection templates, the same in every app and every screen that offers it:
822
+ *
823
+ * const print = inject(InspectionTemplatePrintService);
824
+ * print.configure({ appName: 'Parkstead' }); // once, optional
825
+ * print.download(template); // hidden frame: the print dialog offers "Save as PDF"
826
+ * if (!print.print(template)) toast.error('The print window was blocked. Allow pop-ups for this site.');
827
+ */
828
+ export declare class InspectionTemplatePrintService {
829
+ private readonly printer;
830
+ private options;
831
+ /** Sets the options of every sheet printed afterwards (app name in the footer, accent colour, locale). */
832
+ configure(options: InspectionTemplatePrintOptions): void;
833
+ /** The sheet as HTML. */
834
+ html(tpl: PrintableInspectionTemplate): string;
835
+ /** Opens an empty print window. Call it straight from the click handler (Safari only allows a pop-up inside the user's gesture), fill it later with [print]. */
836
+ openWindow(): Window | null;
837
+ /** Prints in a window (a new one, or `existing`). Returns false when the browser blocked the pop-up. */
838
+ print(tpl: PrintableInspectionTemplate, existing?: Window | null): boolean;
839
+ /** Prints through a hidden frame (no pop-up): the print dialog lets the user choose "Save as PDF". */
840
+ download(tpl: PrintableInspectionTemplate): void;
841
+ static ɵfac: i0.ɵɵFactoryDeclaration<InspectionTemplatePrintService, never>;
842
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
843
+ }
844
+ /**
845
+ * Allow-list HTML sanitiser used by `ui-rich-text-editor`.
846
+ *
847
+ * The allow-list matches the markup the editor itself produces (and what a server-side allow-list
848
+ * sanitiser for editor output typically keeps): bold/italic/underline/strike, paragraphs and line
849
+ * breaks, headings, lists, block quotes (indent), links, and the inline styles used for alignment,
850
+ * size, font, colour and highlight. Everything else is removed: scripts and styles with their
851
+ * contents, event-handler attributes, `javascript:` and other unsafe URL schemes, and any style
852
+ * property or value outside the lists below.
853
+ *
854
+ * Runs on an inert document (DOMParser), so nothing in the input is executed or fetched.
855
+ */
856
+ type RichTextSanitizeMode = 'content' | 'paste';
857
+ interface RichTextSanitizeOptions {
858
+ /** `content` keeps allow-listed inline styles; `paste` flattens them to plain semantic tags. */
859
+ mode?: RichTextSanitizeMode;
860
+ /** Tag names (upper-case) that must not appear in the output — they are replaced per `replace`/unwrapped. */
861
+ blockedTags?: ReadonlySet<string>;
862
+ /** Replacement tag (upper-case) for blocked tags; a blocked tag without an entry is unwrapped. */
863
+ replace?: Readonly<Record<string, string>>;
864
+ }
865
+ /** Returns `html` reduced to the allow-list. Empty input returns an empty string. */
866
+ export declare function sanitizeRichTextHtml(html: string | null | undefined, options?: RichTextSanitizeOptions): string;
867
+ /**
868
+ * A web address typed into a link box, made safe to link to: `example.com` becomes `https://example.com`; `http`, `https`, `mailto` and `tel`
869
+ * addresses are kept. Anything else (`javascript:`, `data:`, an address with spaces, nothing) returns null.
870
+ */
871
+ declare function normalizeLinkUrl(raw: string | null | undefined): string | null;
872
+ /** Escapes plain text for HTML, turning line breaks into `<br>`. */
873
+ export declare function plainTextToHtml(text: string): string;