@trismegisto/angular 3.3.14 → 3.4.0

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 (917) hide show
  1. package/README.md +22 -4
  2. package/fesm2022/trismegisto-angular-access-control.mjs +21 -264
  3. package/fesm2022/trismegisto-angular-access-control.mjs.map +1 -1
  4. package/fesm2022/trismegisto-angular-accordion.mjs +3 -39
  5. package/fesm2022/trismegisto-angular-accordion.mjs.map +1 -1
  6. package/fesm2022/trismegisto-angular-account-avatar.mjs +2 -27
  7. package/fesm2022/trismegisto-angular-account-avatar.mjs.map +1 -1
  8. package/fesm2022/trismegisto-angular-account-closure.mjs +8 -58
  9. package/fesm2022/trismegisto-angular-account-closure.mjs.map +1 -1
  10. package/fesm2022/trismegisto-angular-account-forms.mjs +32 -235
  11. package/fesm2022/trismegisto-angular-account-forms.mjs.map +1 -1
  12. package/fesm2022/trismegisto-angular-account-switcher.mjs +8 -44
  13. package/fesm2022/trismegisto-angular-account-switcher.mjs.map +1 -1
  14. package/fesm2022/trismegisto-angular-address.mjs +28 -149
  15. package/fesm2022/trismegisto-angular-address.mjs.map +1 -1
  16. package/fesm2022/trismegisto-angular-agent.mjs +26 -206
  17. package/fesm2022/trismegisto-angular-agent.mjs.map +1 -1
  18. package/fesm2022/trismegisto-angular-alert-history.mjs +14 -77
  19. package/fesm2022/trismegisto-angular-alert-history.mjs.map +1 -1
  20. package/fesm2022/trismegisto-angular-alert-rule-editor.mjs +17 -178
  21. package/fesm2022/trismegisto-angular-alert-rule-editor.mjs.map +1 -1
  22. package/fesm2022/trismegisto-angular-alert.mjs +17 -53
  23. package/fesm2022/trismegisto-angular-alert.mjs.map +1 -1
  24. package/fesm2022/trismegisto-angular-anchor-nav.mjs +4 -10
  25. package/fesm2022/trismegisto-angular-anchor-nav.mjs.map +1 -1
  26. package/fesm2022/trismegisto-angular-api-exchange.mjs +11 -110
  27. package/fesm2022/trismegisto-angular-api-exchange.mjs.map +1 -1
  28. package/fesm2022/trismegisto-angular-appointment-details.mjs +20 -181
  29. package/fesm2022/trismegisto-angular-appointment-details.mjs.map +1 -1
  30. package/fesm2022/trismegisto-angular-approval.mjs +10 -36
  31. package/fesm2022/trismegisto-angular-approval.mjs.map +1 -1
  32. package/fesm2022/trismegisto-angular-assignee.mjs +8 -24
  33. package/fesm2022/trismegisto-angular-assignee.mjs.map +1 -1
  34. package/fesm2022/trismegisto-angular-attachment.mjs +22 -72
  35. package/fesm2022/trismegisto-angular-attachment.mjs.map +1 -1
  36. package/fesm2022/trismegisto-angular-availability-editor.mjs +12 -97
  37. package/fesm2022/trismegisto-angular-availability-editor.mjs.map +1 -1
  38. package/fesm2022/trismegisto-angular-avatar-group.mjs +3 -9
  39. package/fesm2022/trismegisto-angular-avatar-group.mjs.map +1 -1
  40. package/fesm2022/trismegisto-angular-backlog.mjs +9 -31
  41. package/fesm2022/trismegisto-angular-backlog.mjs.map +1 -1
  42. package/fesm2022/trismegisto-angular-billing.mjs +41 -276
  43. package/fesm2022/trismegisto-angular-billing.mjs.map +1 -1
  44. package/fesm2022/trismegisto-angular-bottom-navigation.mjs +4 -19
  45. package/fesm2022/trismegisto-angular-bottom-navigation.mjs.map +1 -1
  46. package/fesm2022/trismegisto-angular-bottom-sheet.mjs +25 -56
  47. package/fesm2022/trismegisto-angular-bottom-sheet.mjs.map +1 -1
  48. package/fesm2022/trismegisto-angular-breadcrumb.mjs +9 -15
  49. package/fesm2022/trismegisto-angular-breadcrumb.mjs.map +1 -1
  50. package/fesm2022/trismegisto-angular-bubble.mjs +5 -16
  51. package/fesm2022/trismegisto-angular-bubble.mjs.map +1 -1
  52. package/fesm2022/trismegisto-angular-bulk-input.mjs +23 -97
  53. package/fesm2022/trismegisto-angular-bulk-input.mjs.map +1 -1
  54. package/fesm2022/trismegisto-angular-button-group.mjs +3 -17
  55. package/fesm2022/trismegisto-angular-button-group.mjs.map +1 -1
  56. package/fesm2022/trismegisto-angular-card-container.mjs +12 -27
  57. package/fesm2022/trismegisto-angular-card-container.mjs.map +1 -1
  58. package/fesm2022/trismegisto-angular-carousel.mjs +16 -16
  59. package/fesm2022/trismegisto-angular-carousel.mjs.map +1 -1
  60. package/fesm2022/trismegisto-angular-cart.mjs +26 -124
  61. package/fesm2022/trismegisto-angular-cart.mjs.map +1 -1
  62. package/fesm2022/trismegisto-angular-cascader.mjs +40 -140
  63. package/fesm2022/trismegisto-angular-cascader.mjs.map +1 -1
  64. package/fesm2022/trismegisto-angular-certificate-viewer.mjs +15 -92
  65. package/fesm2022/trismegisto-angular-certificate-viewer.mjs.map +1 -1
  66. package/fesm2022/trismegisto-angular-change-history.mjs +3 -17
  67. package/fesm2022/trismegisto-angular-change-history.mjs.map +1 -1
  68. package/fesm2022/trismegisto-angular-charts.mjs +796 -0
  69. package/fesm2022/trismegisto-angular-charts.mjs.map +1 -0
  70. package/fesm2022/trismegisto-angular-checkbox-group.mjs +3 -11
  71. package/fesm2022/trismegisto-angular-checkbox-group.mjs.map +1 -1
  72. package/fesm2022/trismegisto-angular-chip.mjs +2 -7
  73. package/fesm2022/trismegisto-angular-chip.mjs.map +1 -1
  74. package/fesm2022/trismegisto-angular-code-diff.mjs +47 -127
  75. package/fesm2022/trismegisto-angular-code-diff.mjs.map +1 -1
  76. package/fesm2022/trismegisto-angular-code-input.mjs +5 -2
  77. package/fesm2022/trismegisto-angular-code-input.mjs.map +1 -1
  78. package/fesm2022/trismegisto-angular-code-viewer.mjs +53 -356
  79. package/fesm2022/trismegisto-angular-code-viewer.mjs.map +1 -1
  80. package/fesm2022/trismegisto-angular-color-picker.mjs +18 -48
  81. package/fesm2022/trismegisto-angular-color-picker.mjs.map +1 -1
  82. package/fesm2022/trismegisto-angular-combobox-multi.mjs +5 -15
  83. package/fesm2022/trismegisto-angular-combobox-multi.mjs.map +1 -1
  84. package/fesm2022/trismegisto-angular-combobox.mjs +50 -169
  85. package/fesm2022/trismegisto-angular-combobox.mjs.map +1 -1
  86. package/fesm2022/trismegisto-angular-command-palette.mjs +56 -130
  87. package/fesm2022/trismegisto-angular-command-palette.mjs.map +1 -1
  88. package/fesm2022/trismegisto-angular-commerce-format.mjs +4 -64
  89. package/fesm2022/trismegisto-angular-commerce-format.mjs.map +1 -1
  90. package/fesm2022/trismegisto-angular-connection-wizard.mjs +10 -49
  91. package/fesm2022/trismegisto-angular-connection-wizard.mjs.map +1 -1
  92. package/fesm2022/trismegisto-angular-consent.mjs +9 -82
  93. package/fesm2022/trismegisto-angular-consent.mjs.map +1 -1
  94. package/fesm2022/trismegisto-angular-copy-button.mjs +5 -57
  95. package/fesm2022/trismegisto-angular-copy-button.mjs.map +1 -1
  96. package/fesm2022/trismegisto-angular-credentials-form.mjs +16 -141
  97. package/fesm2022/trismegisto-angular-credentials-form.mjs.map +1 -1
  98. package/fesm2022/trismegisto-angular-data-grid.mjs +223 -1107
  99. package/fesm2022/trismegisto-angular-data-grid.mjs.map +1 -1
  100. package/fesm2022/trismegisto-angular-data-source-picker.mjs +11 -35
  101. package/fesm2022/trismegisto-angular-data-source-picker.mjs.map +1 -1
  102. package/fesm2022/trismegisto-angular-date-picker.mjs +75 -155
  103. package/fesm2022/trismegisto-angular-date-picker.mjs.map +1 -1
  104. package/fesm2022/trismegisto-angular-datetime-picker.mjs +17 -49
  105. package/fesm2022/trismegisto-angular-datetime-picker.mjs.map +1 -1
  106. package/fesm2022/trismegisto-angular-deadline.mjs +38 -91
  107. package/fesm2022/trismegisto-angular-deadline.mjs.map +1 -1
  108. package/fesm2022/trismegisto-angular-deploy-pipeline.mjs +19 -55
  109. package/fesm2022/trismegisto-angular-deploy-pipeline.mjs.map +1 -1
  110. package/fesm2022/trismegisto-angular-description-list.mjs +11 -18
  111. package/fesm2022/trismegisto-angular-description-list.mjs.map +1 -1
  112. package/fesm2022/trismegisto-angular-dialog.mjs +5 -16
  113. package/fesm2022/trismegisto-angular-dialog.mjs.map +1 -1
  114. package/fesm2022/trismegisto-angular-direction.mjs +3 -17
  115. package/fesm2022/trismegisto-angular-direction.mjs.map +1 -1
  116. package/fesm2022/trismegisto-angular-drag-drop.mjs +85 -624
  117. package/fesm2022/trismegisto-angular-drag-drop.mjs.map +1 -1
  118. package/fesm2022/trismegisto-angular-drawer.mjs +18 -50
  119. package/fesm2022/trismegisto-angular-drawer.mjs.map +1 -1
  120. package/fesm2022/trismegisto-angular-dropdown.mjs +4 -15
  121. package/fesm2022/trismegisto-angular-dropdown.mjs.map +1 -1
  122. package/fesm2022/trismegisto-angular-dual-list.mjs +5 -7
  123. package/fesm2022/trismegisto-angular-dual-list.mjs.map +1 -1
  124. package/fesm2022/trismegisto-angular-endpoint-card.mjs +7 -87
  125. package/fesm2022/trismegisto-angular-endpoint-card.mjs.map +1 -1
  126. package/fesm2022/trismegisto-angular-entity-picker.mjs +12 -90
  127. package/fesm2022/trismegisto-angular-entity-picker.mjs.map +1 -1
  128. package/fesm2022/trismegisto-angular-environment-picker.mjs +13 -50
  129. package/fesm2022/trismegisto-angular-environment-picker.mjs.map +1 -1
  130. package/fesm2022/trismegisto-angular-event-calendar.mjs +42 -164
  131. package/fesm2022/trismegisto-angular-event-calendar.mjs.map +1 -1
  132. package/fesm2022/trismegisto-angular-execution-status.mjs +16 -24
  133. package/fesm2022/trismegisto-angular-execution-status.mjs.map +1 -1
  134. package/fesm2022/trismegisto-angular-fab.mjs +34 -58
  135. package/fesm2022/trismegisto-angular-fab.mjs.map +1 -1
  136. package/fesm2022/trismegisto-angular-feature-flags.mjs +11 -73
  137. package/fesm2022/trismegisto-angular-feature-flags.mjs.map +1 -1
  138. package/fesm2022/trismegisto-angular-field-mapping.mjs +19 -107
  139. package/fesm2022/trismegisto-angular-field-mapping.mjs.map +1 -1
  140. package/fesm2022/trismegisto-angular-file-list.mjs +10 -137
  141. package/fesm2022/trismegisto-angular-file-list.mjs.map +1 -1
  142. package/fesm2022/trismegisto-angular-file-permissions.mjs +16 -146
  143. package/fesm2022/trismegisto-angular-file-permissions.mjs.map +1 -1
  144. package/fesm2022/trismegisto-angular-file-upload.mjs +26 -86
  145. package/fesm2022/trismegisto-angular-file-upload.mjs.map +1 -1
  146. package/fesm2022/trismegisto-angular-file-versions.mjs +11 -64
  147. package/fesm2022/trismegisto-angular-file-versions.mjs.map +1 -1
  148. package/fesm2022/trismegisto-angular-filter-bar.mjs +40 -76
  149. package/fesm2022/trismegisto-angular-filter-bar.mjs.map +1 -1
  150. package/fesm2022/trismegisto-angular-finance.mjs +35 -280
  151. package/fesm2022/trismegisto-angular-finance.mjs.map +1 -1
  152. package/fesm2022/trismegisto-angular-floating-window.mjs +28 -127
  153. package/fesm2022/trismegisto-angular-floating-window.mjs.map +1 -1
  154. package/fesm2022/trismegisto-angular-form-error-summary.mjs +4 -22
  155. package/fesm2022/trismegisto-angular-form-error-summary.mjs.map +1 -1
  156. package/fesm2022/trismegisto-angular-forms.mjs +14 -25
  157. package/fesm2022/trismegisto-angular-forms.mjs.map +1 -1
  158. package/fesm2022/trismegisto-angular-gantt.mjs +25 -70
  159. package/fesm2022/trismegisto-angular-gantt.mjs.map +1 -1
  160. package/fesm2022/trismegisto-angular-global-search.mjs +23 -85
  161. package/fesm2022/trismegisto-angular-global-search.mjs.map +1 -1
  162. package/fesm2022/trismegisto-angular-header.mjs +9 -24
  163. package/fesm2022/trismegisto-angular-header.mjs.map +1 -1
  164. package/fesm2022/trismegisto-angular-health-status.mjs +10 -85
  165. package/fesm2022/trismegisto-angular-health-status.mjs.map +1 -1
  166. package/fesm2022/trismegisto-angular-i18n.mjs +27 -132
  167. package/fesm2022/trismegisto-angular-i18n.mjs.map +1 -1
  168. package/fesm2022/trismegisto-angular-icon.mjs +6 -1
  169. package/fesm2022/trismegisto-angular-icon.mjs.map +1 -1
  170. package/fesm2022/trismegisto-angular-identity-document.mjs +19 -94
  171. package/fesm2022/trismegisto-angular-identity-document.mjs.map +1 -1
  172. package/fesm2022/trismegisto-angular-illustration-attention.mjs +2 -2
  173. package/fesm2022/trismegisto-angular-illustration-attention.mjs.map +1 -1
  174. package/fesm2022/trismegisto-angular-illustration-error.mjs +2 -2
  175. package/fesm2022/trismegisto-angular-illustration-error.mjs.map +1 -1
  176. package/fesm2022/trismegisto-angular-illustration-journey-end.mjs +2 -2
  177. package/fesm2022/trismegisto-angular-illustration-journey-end.mjs.map +1 -1
  178. package/fesm2022/trismegisto-angular-illustration-locked.mjs +2 -2
  179. package/fesm2022/trismegisto-angular-illustration-locked.mjs.map +1 -1
  180. package/fesm2022/trismegisto-angular-illustration-no-permission.mjs +2 -2
  181. package/fesm2022/trismegisto-angular-illustration-no-permission.mjs.map +1 -1
  182. package/fesm2022/trismegisto-angular-illustration-no-results.mjs +2 -2
  183. package/fesm2022/trismegisto-angular-illustration-no-results.mjs.map +1 -1
  184. package/fesm2022/trismegisto-angular-illustration-not-found.mjs +2 -2
  185. package/fesm2022/trismegisto-angular-illustration-not-found.mjs.map +1 -1
  186. package/fesm2022/trismegisto-angular-illustration-session-expired.mjs +2 -2
  187. package/fesm2022/trismegisto-angular-illustration-session-expired.mjs.map +1 -1
  188. package/fesm2022/trismegisto-angular-illustration-shared.mjs +3 -23
  189. package/fesm2022/trismegisto-angular-illustration-shared.mjs.map +1 -1
  190. package/fesm2022/trismegisto-angular-illustration-success.mjs +2 -2
  191. package/fesm2022/trismegisto-angular-illustration-success.mjs.map +1 -1
  192. package/fesm2022/trismegisto-angular-illustration-unlocked.mjs +2 -2
  193. package/fesm2022/trismegisto-angular-illustration-unlocked.mjs.map +1 -1
  194. package/fesm2022/trismegisto-angular-image-crop.mjs +52 -358
  195. package/fesm2022/trismegisto-angular-image-crop.mjs.map +1 -1
  196. package/fesm2022/trismegisto-angular-image-gallery.mjs +28 -94
  197. package/fesm2022/trismegisto-angular-image-gallery.mjs.map +1 -1
  198. package/fesm2022/trismegisto-angular-incident.mjs +17 -113
  199. package/fesm2022/trismegisto-angular-incident.mjs.map +1 -1
  200. package/fesm2022/trismegisto-angular-input.mjs +12 -73
  201. package/fesm2022/trismegisto-angular-input.mjs.map +1 -1
  202. package/fesm2022/trismegisto-angular-integration-text.mjs +5 -61
  203. package/fesm2022/trismegisto-angular-integration-text.mjs.map +1 -1
  204. package/fesm2022/trismegisto-angular-integration.mjs +17 -175
  205. package/fesm2022/trismegisto-angular-integration.mjs.map +1 -1
  206. package/fesm2022/trismegisto-angular-invoice.mjs +12 -125
  207. package/fesm2022/trismegisto-angular-invoice.mjs.map +1 -1
  208. package/fesm2022/trismegisto-angular-json-viewer.mjs +27 -168
  209. package/fesm2022/trismegisto-angular-json-viewer.mjs.map +1 -1
  210. package/fesm2022/trismegisto-angular-kanban.mjs +15 -26
  211. package/fesm2022/trismegisto-angular-kanban.mjs.map +1 -1
  212. package/fesm2022/trismegisto-angular-level-badge.mjs +6 -11
  213. package/fesm2022/trismegisto-angular-level-badge.mjs.map +1 -1
  214. package/fesm2022/trismegisto-angular-list-editor.mjs +5 -18
  215. package/fesm2022/trismegisto-angular-list-editor.mjs.map +1 -1
  216. package/fesm2022/trismegisto-angular-location-select.mjs +26 -47
  217. package/fesm2022/trismegisto-angular-location-select.mjs.map +1 -1
  218. package/fesm2022/trismegisto-angular-log-viewer.mjs +13 -53
  219. package/fesm2022/trismegisto-angular-log-viewer.mjs.map +1 -1
  220. package/fesm2022/trismegisto-angular-maintenance-window.mjs +10 -80
  221. package/fesm2022/trismegisto-angular-maintenance-window.mjs.map +1 -1
  222. package/fesm2022/trismegisto-angular-map.mjs +2203 -0
  223. package/fesm2022/trismegisto-angular-map.mjs.map +1 -0
  224. package/fesm2022/trismegisto-angular-member-list.mjs +28 -76
  225. package/fesm2022/trismegisto-angular-member-list.mjs.map +1 -1
  226. package/fesm2022/trismegisto-angular-menu-button.mjs +6 -6
  227. package/fesm2022/trismegisto-angular-menu-button.mjs.map +1 -1
  228. package/fesm2022/trismegisto-angular-menu.mjs +45 -117
  229. package/fesm2022/trismegisto-angular-menu.mjs.map +1 -1
  230. package/fesm2022/trismegisto-angular-menubar.mjs +6 -10
  231. package/fesm2022/trismegisto-angular-menubar.mjs.map +1 -1
  232. package/fesm2022/trismegisto-angular-message-scroller.mjs +33 -167
  233. package/fesm2022/trismegisto-angular-message-scroller.mjs.map +1 -1
  234. package/fesm2022/trismegisto-angular-message.mjs +7 -58
  235. package/fesm2022/trismegisto-angular-message.mjs.map +1 -1
  236. package/fesm2022/trismegisto-angular-metric-explorer.mjs +12 -110
  237. package/fesm2022/trismegisto-angular-metric-explorer.mjs.map +1 -1
  238. package/fesm2022/trismegisto-angular-modal.mjs +14 -39
  239. package/fesm2022/trismegisto-angular-modal.mjs.map +1 -1
  240. package/fesm2022/trismegisto-angular-monitoring-text.mjs +5 -103
  241. package/fesm2022/trismegisto-angular-monitoring-text.mjs.map +1 -1
  242. package/fesm2022/trismegisto-angular-month-picker.mjs +27 -72
  243. package/fesm2022/trismegisto-angular-month-picker.mjs.map +1 -1
  244. package/fesm2022/trismegisto-angular-motion.mjs +39 -163
  245. package/fesm2022/trismegisto-angular-motion.mjs.map +1 -1
  246. package/fesm2022/trismegisto-angular-navigation-menu.mjs +33 -134
  247. package/fesm2022/trismegisto-angular-navigation-menu.mjs.map +1 -1
  248. package/fesm2022/trismegisto-angular-number-field.mjs +14 -48
  249. package/fesm2022/trismegisto-angular-number-field.mjs.map +1 -1
  250. package/fesm2022/trismegisto-angular-observability-text.mjs +3 -236
  251. package/fesm2022/trismegisto-angular-observability-text.mjs.map +1 -1
  252. package/fesm2022/trismegisto-angular-order.mjs +18 -126
  253. package/fesm2022/trismegisto-angular-order.mjs.map +1 -1
  254. package/fesm2022/trismegisto-angular-org-chart.mjs +26 -123
  255. package/fesm2022/trismegisto-angular-org-chart.mjs.map +1 -1
  256. package/fesm2022/trismegisto-angular-page-header.mjs +2 -4
  257. package/fesm2022/trismegisto-angular-page-header.mjs.map +1 -1
  258. package/fesm2022/trismegisto-angular-paginator.mjs +20 -25
  259. package/fesm2022/trismegisto-angular-paginator.mjs.map +1 -1
  260. package/fesm2022/trismegisto-angular-password-strength.mjs +4 -76
  261. package/fesm2022/trismegisto-angular-password-strength.mjs.map +1 -1
  262. package/fesm2022/trismegisto-angular-payment-fields.mjs +18 -254
  263. package/fesm2022/trismegisto-angular-payment-fields.mjs.map +1 -1
  264. package/fesm2022/trismegisto-angular-payment-form.mjs +19 -130
  265. package/fesm2022/trismegisto-angular-payment-form.mjs.map +1 -1
  266. package/fesm2022/trismegisto-angular-payment-method.mjs +10 -122
  267. package/fesm2022/trismegisto-angular-payment-method.mjs.map +1 -1
  268. package/fesm2022/trismegisto-angular-pdf-viewer.mjs +7 -41
  269. package/fesm2022/trismegisto-angular-pdf-viewer.mjs.map +1 -1
  270. package/fesm2022/trismegisto-angular-permission-matrix.mjs +4 -34
  271. package/fesm2022/trismegisto-angular-permission-matrix.mjs.map +1 -1
  272. package/fesm2022/trismegisto-angular-pipes.mjs +13 -101
  273. package/fesm2022/trismegisto-angular-pipes.mjs.map +1 -1
  274. package/fesm2022/trismegisto-angular-popconfirm.mjs +11 -27
  275. package/fesm2022/trismegisto-angular-popconfirm.mjs.map +1 -1
  276. package/fesm2022/trismegisto-angular-popover.mjs +61 -222
  277. package/fesm2022/trismegisto-angular-popover.mjs.map +1 -1
  278. package/fesm2022/trismegisto-angular-price.mjs +16 -98
  279. package/fesm2022/trismegisto-angular-price.mjs.map +1 -1
  280. package/fesm2022/trismegisto-angular-product.mjs +38 -132
  281. package/fesm2022/trismegisto-angular-product.mjs.map +1 -1
  282. package/fesm2022/trismegisto-angular-progress.mjs +7 -25
  283. package/fesm2022/trismegisto-angular-progress.mjs.map +1 -1
  284. package/fesm2022/trismegisto-angular-prompt-input.mjs +7 -52
  285. package/fesm2022/trismegisto-angular-prompt-input.mjs.map +1 -1
  286. package/fesm2022/trismegisto-angular-prompt-suggestions.mjs +4 -12
  287. package/fesm2022/trismegisto-angular-prompt-suggestions.mjs.map +1 -1
  288. package/fesm2022/trismegisto-angular-property-view.mjs +13 -14
  289. package/fesm2022/trismegisto-angular-property-view.mjs.map +1 -1
  290. package/fesm2022/trismegisto-angular-questionnaire.mjs +28 -99
  291. package/fesm2022/trismegisto-angular-questionnaire.mjs.map +1 -1
  292. package/fesm2022/trismegisto-angular-radio.mjs +4 -8
  293. package/fesm2022/trismegisto-angular-radio.mjs.map +1 -1
  294. package/fesm2022/trismegisto-angular-rating.mjs +8 -28
  295. package/fesm2022/trismegisto-angular-rating.mjs.map +1 -1
  296. package/fesm2022/trismegisto-angular-reason-dialog.mjs +4 -3
  297. package/fesm2022/trismegisto-angular-reason-dialog.mjs.map +1 -1
  298. package/fesm2022/trismegisto-angular-recurrence-editor.mjs +21 -306
  299. package/fesm2022/trismegisto-angular-recurrence-editor.mjs.map +1 -1
  300. package/fesm2022/trismegisto-angular-release-timeline.mjs +6 -46
  301. package/fesm2022/trismegisto-angular-release-timeline.mjs.map +1 -1
  302. package/fesm2022/trismegisto-angular-reorder-list.mjs +7 -22
  303. package/fesm2022/trismegisto-angular-reorder-list.mjs.map +1 -1
  304. package/fesm2022/trismegisto-angular-report-history.mjs +24 -177
  305. package/fesm2022/trismegisto-angular-report-history.mjs.map +1 -1
  306. package/fesm2022/trismegisto-angular-report-schedule.mjs +19 -125
  307. package/fesm2022/trismegisto-angular-report-schedule.mjs.map +1 -1
  308. package/fesm2022/trismegisto-angular-resource-calendar.mjs +14 -64
  309. package/fesm2022/trismegisto-angular-resource-calendar.mjs.map +1 -1
  310. package/fesm2022/trismegisto-angular-resource-usage.mjs +9 -89
  311. package/fesm2022/trismegisto-angular-resource-usage.mjs.map +1 -1
  312. package/fesm2022/trismegisto-angular-return-request.mjs +21 -107
  313. package/fesm2022/trismegisto-angular-return-request.mjs.map +1 -1
  314. package/fesm2022/trismegisto-angular-rich-text.mjs +100 -1078
  315. package/fesm2022/trismegisto-angular-rich-text.mjs.map +1 -1
  316. package/fesm2022/trismegisto-angular-risk-register.mjs +10 -55
  317. package/fesm2022/trismegisto-angular-risk-register.mjs.map +1 -1
  318. package/fesm2022/trismegisto-angular-save-status.mjs +4 -34
  319. package/fesm2022/trismegisto-angular-save-status.mjs.map +1 -1
  320. package/fesm2022/trismegisto-angular-search-field.mjs +11 -24
  321. package/fesm2022/trismegisto-angular-search-field.mjs.map +1 -1
  322. package/fesm2022/trismegisto-angular-segmented-control.mjs +4 -26
  323. package/fesm2022/trismegisto-angular-segmented-control.mjs.map +1 -1
  324. package/fesm2022/trismegisto-angular-service-map.mjs +24 -191
  325. package/fesm2022/trismegisto-angular-service-map.mjs.map +1 -1
  326. package/fesm2022/trismegisto-angular-service-status.mjs +17 -57
  327. package/fesm2022/trismegisto-angular-service-status.mjs.map +1 -1
  328. package/fesm2022/trismegisto-angular-session-recovery.mjs +3 -32
  329. package/fesm2022/trismegisto-angular-session-recovery.mjs.map +1 -1
  330. package/fesm2022/trismegisto-angular-settings.mjs +26 -50
  331. package/fesm2022/trismegisto-angular-settings.mjs.map +1 -1
  332. package/fesm2022/trismegisto-angular-shipping.mjs +11 -135
  333. package/fesm2022/trismegisto-angular-shipping.mjs.map +1 -1
  334. package/fesm2022/trismegisto-angular-shortcut-list.mjs +30 -73
  335. package/fesm2022/trismegisto-angular-shortcut-list.mjs.map +1 -1
  336. package/fesm2022/trismegisto-angular-sidebar.mjs +16 -39
  337. package/fesm2022/trismegisto-angular-sidebar.mjs.map +1 -1
  338. package/fesm2022/trismegisto-angular-skip-link.mjs +4 -10
  339. package/fesm2022/trismegisto-angular-skip-link.mjs.map +1 -1
  340. package/fesm2022/trismegisto-angular-sla-summary.mjs +10 -122
  341. package/fesm2022/trismegisto-angular-sla-summary.mjs.map +1 -1
  342. package/fesm2022/trismegisto-angular-slider.mjs +16 -49
  343. package/fesm2022/trismegisto-angular-slider.mjs.map +1 -1
  344. package/fesm2022/trismegisto-angular-slot-picker.mjs +31 -122
  345. package/fesm2022/trismegisto-angular-slot-picker.mjs.map +1 -1
  346. package/fesm2022/trismegisto-angular-spine-audit.mjs +1123 -0
  347. package/fesm2022/trismegisto-angular-spine-audit.mjs.map +1 -0
  348. package/fesm2022/trismegisto-angular-spine-auto-service-apps.technical-eMYcFdZd.mjs +95 -0
  349. package/fesm2022/trismegisto-angular-spine-auto-service-apps.technical-eMYcFdZd.mjs.map +1 -0
  350. package/fesm2022/trismegisto-angular-spine-auto-service-apps.usage-C0F_MlCo.mjs +92 -0
  351. package/fesm2022/trismegisto-angular-spine-auto-service-apps.usage-C0F_MlCo.mjs.map +1 -0
  352. package/fesm2022/trismegisto-angular-spine-auto-service-audit.technical-DDNiWP35.mjs +43 -0
  353. package/fesm2022/trismegisto-angular-spine-auto-service-audit.technical-DDNiWP35.mjs.map +1 -0
  354. package/fesm2022/trismegisto-angular-spine-auto-service-audit.usage-IdXMruv5.mjs +64 -0
  355. package/fesm2022/trismegisto-angular-spine-auto-service-audit.usage-IdXMruv5.mjs.map +1 -0
  356. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-audit.component-CBXhh-iC.mjs +42 -0
  357. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-audit.component-CBXhh-iC.mjs.map +1 -0
  358. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-client-picker.component-B3rVvnJs.mjs +70 -0
  359. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-client-picker.component-B3rVvnJs.mjs.map +1 -0
  360. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-client.component-cxncrQTB.mjs +780 -0
  361. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-client.component-cxncrQTB.mjs.map +1 -0
  362. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-delete-CXDC4Og6.mjs +48 -0
  363. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-delete-CXDC4Og6.mjs.map +1 -0
  364. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-groups.component-C7j0R1RD.mjs +647 -0
  365. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-groups.component-C7j0R1RD.mjs.map +1 -0
  366. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-login-attempts.component-CZXKTG-H.mjs +41 -0
  367. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-login-attempts.component-CZXKTG-H.mjs.map +1 -0
  368. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-news-page.component-Dl-kjuul.mjs +368 -0
  369. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-news-page.component-Dl-kjuul.mjs.map +1 -0
  370. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-ratings-page.component-CX6tKCB3.mjs +575 -0
  371. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-ratings-page.component-CX6tKCB3.mjs.map +1 -0
  372. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-suggestions-page.component-D8Hi7H-I.mjs +3470 -0
  373. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-suggestions-page.component-D8Hi7H-I.mjs.map +1 -0
  374. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service.component-Bu_Jz4TS.mjs +895 -0
  375. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service.component-Bu_Jz4TS.mjs.map +1 -0
  376. package/fesm2022/trismegisto-angular-spine-auto-service-home.component-DFa8tG6V.mjs +149 -0
  377. package/fesm2022/trismegisto-angular-spine-auto-service-home.component-DFa8tG6V.mjs.map +1 -0
  378. package/fesm2022/trismegisto-angular-spine-auto-service-login-attempts.technical-CQkFtjaw.mjs +37 -0
  379. package/fesm2022/trismegisto-angular-spine-auto-service-login-attempts.technical-CQkFtjaw.mjs.map +1 -0
  380. package/fesm2022/trismegisto-angular-spine-auto-service-login-attempts.usage-BMgLNu7W.mjs +60 -0
  381. package/fesm2022/trismegisto-angular-spine-auto-service-login-attempts.usage-BMgLNu7W.mjs.map +1 -0
  382. package/fesm2022/trismegisto-angular-spine-auto-service-optional-id.validator-COEdvZMD.mjs +12 -0
  383. package/fesm2022/trismegisto-angular-spine-auto-service-optional-id.validator-COEdvZMD.mjs.map +1 -0
  384. package/fesm2022/trismegisto-angular-spine-auto-service.mjs +237 -0
  385. package/fesm2022/trismegisto-angular-spine-auto-service.mjs.map +1 -0
  386. package/fesm2022/trismegisto-angular-spine-graphql.mjs +181 -0
  387. package/fesm2022/trismegisto-angular-spine-graphql.mjs.map +1 -0
  388. package/fesm2022/trismegisto-angular-spine-layout-ai-agent-chat.component-BgV6hNNQ.mjs +503 -0
  389. package/fesm2022/trismegisto-angular-spine-layout-ai-agent-chat.component-BgV6hNNQ.mjs.map +1 -0
  390. package/fesm2022/trismegisto-angular-spine-layout-ai-agent-page.component-Dio9azFT.mjs +119 -0
  391. package/fesm2022/trismegisto-angular-spine-layout-ai-agent-page.component-Dio9azFT.mjs.map +1 -0
  392. package/fesm2022/trismegisto-angular-spine-layout-suggestions-page.component-CYcqjY8s.mjs +577 -0
  393. package/fesm2022/trismegisto-angular-spine-layout-suggestions-page.component-CYcqjY8s.mjs.map +1 -0
  394. package/fesm2022/trismegisto-angular-spine-layout-trismegisto-angular-spine-layout-CB0MMMrV.mjs +8678 -0
  395. package/fesm2022/trismegisto-angular-spine-layout-trismegisto-angular-spine-layout-CB0MMMrV.mjs.map +1 -0
  396. package/fesm2022/trismegisto-angular-spine-layout.mjs +2 -0
  397. package/fesm2022/trismegisto-angular-spine-layout.mjs.map +1 -0
  398. package/fesm2022/trismegisto-angular-spine-modal.mjs +143 -0
  399. package/fesm2022/trismegisto-angular-spine-modal.mjs.map +1 -0
  400. package/fesm2022/trismegisto-angular-spine-notification.mjs +74 -0
  401. package/fesm2022/trismegisto-angular-spine-notification.mjs.map +1 -0
  402. package/fesm2022/trismegisto-angular-spine-routing.mjs +317 -0
  403. package/fesm2022/trismegisto-angular-spine-routing.mjs.map +1 -0
  404. package/fesm2022/trismegisto-angular-spine-shell.mjs +409 -0
  405. package/fesm2022/trismegisto-angular-spine-shell.mjs.map +1 -0
  406. package/fesm2022/trismegisto-angular-spine-side-panel.mjs +143 -0
  407. package/fesm2022/trismegisto-angular-spine-side-panel.mjs.map +1 -0
  408. package/fesm2022/trismegisto-angular-spine.mjs +875 -0
  409. package/fesm2022/trismegisto-angular-spine.mjs.map +1 -0
  410. package/fesm2022/trismegisto-angular-split-button.mjs +10 -22
  411. package/fesm2022/trismegisto-angular-split-button.mjs.map +1 -1
  412. package/fesm2022/trismegisto-angular-splitter.mjs +6 -15
  413. package/fesm2022/trismegisto-angular-splitter.mjs.map +1 -1
  414. package/fesm2022/trismegisto-angular-state-page.mjs +11 -28
  415. package/fesm2022/trismegisto-angular-state-page.mjs.map +1 -1
  416. package/fesm2022/trismegisto-angular-state-screen.mjs +3 -3
  417. package/fesm2022/trismegisto-angular-state-screen.mjs.map +1 -1
  418. package/fesm2022/trismegisto-angular-status-badge.mjs +3 -21
  419. package/fesm2022/trismegisto-angular-status-badge.mjs.map +1 -1
  420. package/fesm2022/trismegisto-angular-status-select.mjs +15 -31
  421. package/fesm2022/trismegisto-angular-status-select.mjs.map +1 -1
  422. package/fesm2022/trismegisto-angular-stepper.mjs +5 -13
  423. package/fesm2022/trismegisto-angular-stepper.mjs.map +1 -1
  424. package/fesm2022/trismegisto-angular-storage-usage.mjs +15 -74
  425. package/fesm2022/trismegisto-angular-storage-usage.mjs.map +1 -1
  426. package/fesm2022/trismegisto-angular-swimlane-board.mjs +6 -33
  427. package/fesm2022/trismegisto-angular-swimlane-board.mjs.map +1 -1
  428. package/fesm2022/trismegisto-angular-sync-status.mjs +24 -156
  429. package/fesm2022/trismegisto-angular-sync-status.mjs.map +1 -1
  430. package/fesm2022/trismegisto-angular-tab-bar.mjs +14 -53
  431. package/fesm2022/trismegisto-angular-tab-bar.mjs.map +1 -1
  432. package/fesm2022/trismegisto-angular-tabs.mjs +20 -66
  433. package/fesm2022/trismegisto-angular-tabs.mjs.map +1 -1
  434. package/fesm2022/trismegisto-angular-tag-input.mjs +16 -64
  435. package/fesm2022/trismegisto-angular-tag-input.mjs.map +1 -1
  436. package/fesm2022/trismegisto-angular-task-card.mjs +10 -9
  437. package/fesm2022/trismegisto-angular-task-card.mjs.map +1 -1
  438. package/fesm2022/trismegisto-angular-task-detail.mjs +40 -68
  439. package/fesm2022/trismegisto-angular-task-detail.mjs.map +1 -1
  440. package/fesm2022/trismegisto-angular-terminal.mjs +263 -0
  441. package/fesm2022/trismegisto-angular-terminal.mjs.map +1 -0
  442. package/fesm2022/trismegisto-angular-textarea.mjs +20 -88
  443. package/fesm2022/trismegisto-angular-textarea.mjs.map +1 -1
  444. package/fesm2022/trismegisto-angular-theme-builder.mjs +17 -43
  445. package/fesm2022/trismegisto-angular-theme-builder.mjs.map +1 -1
  446. package/fesm2022/trismegisto-angular-time-picker.mjs +28 -60
  447. package/fesm2022/trismegisto-angular-time-picker.mjs.map +1 -1
  448. package/fesm2022/trismegisto-angular-time-range.mjs +12 -78
  449. package/fesm2022/trismegisto-angular-time-range.mjs.map +1 -1
  450. package/fesm2022/trismegisto-angular-toast.mjs +19 -44
  451. package/fesm2022/trismegisto-angular-toast.mjs.map +1 -1
  452. package/fesm2022/trismegisto-angular-toggle-group.mjs +10 -54
  453. package/fesm2022/trismegisto-angular-toggle-group.mjs.map +1 -1
  454. package/fesm2022/trismegisto-angular-toggletip.mjs +7 -24
  455. package/fesm2022/trismegisto-angular-toggletip.mjs.map +1 -1
  456. package/fesm2022/trismegisto-angular-toolbar.mjs +11 -109
  457. package/fesm2022/trismegisto-angular-toolbar.mjs.map +1 -1
  458. package/fesm2022/trismegisto-angular-tooltip.mjs +22 -158
  459. package/fesm2022/trismegisto-angular-tooltip.mjs.map +1 -1
  460. package/fesm2022/trismegisto-angular-tour.mjs +14 -59
  461. package/fesm2022/trismegisto-angular-tour.mjs.map +1 -1
  462. package/fesm2022/trismegisto-angular-trace-waterfall.mjs +25 -155
  463. package/fesm2022/trismegisto-angular-trace-waterfall.mjs.map +1 -1
  464. package/fesm2022/trismegisto-angular-trace.mjs +4 -31
  465. package/fesm2022/trismegisto-angular-trace.mjs.map +1 -1
  466. package/fesm2022/trismegisto-angular-transaction.mjs +14 -170
  467. package/fesm2022/trismegisto-angular-transaction.mjs.map +1 -1
  468. package/fesm2022/trismegisto-angular-tree-select.mjs +11 -72
  469. package/fesm2022/trismegisto-angular-tree-select.mjs.map +1 -1
  470. package/fesm2022/trismegisto-angular-tree.mjs +135 -341
  471. package/fesm2022/trismegisto-angular-tree.mjs.map +1 -1
  472. package/fesm2022/trismegisto-angular-unsaved-changes.mjs +16 -47
  473. package/fesm2022/trismegisto-angular-unsaved-changes.mjs.map +1 -1
  474. package/fesm2022/trismegisto-angular-uptime-bar.mjs +14 -53
  475. package/fesm2022/trismegisto-angular-uptime-bar.mjs.map +1 -1
  476. package/fesm2022/trismegisto-angular-user-card.mjs +4 -34
  477. package/fesm2022/trismegisto-angular-user-card.mjs.map +1 -1
  478. package/fesm2022/trismegisto-angular-vehicle-plate.mjs +20 -87
  479. package/fesm2022/trismegisto-angular-vehicle-plate.mjs.map +1 -1
  480. package/fesm2022/trismegisto-angular-webhook.mjs +23 -196
  481. package/fesm2022/trismegisto-angular-webhook.mjs.map +1 -1
  482. package/fesm2022/trismegisto-angular-wizard.mjs +24 -45
  483. package/fesm2022/trismegisto-angular-wizard.mjs.map +1 -1
  484. package/fesm2022/trismegisto-angular-workflow-diagram.mjs +12 -74
  485. package/fesm2022/trismegisto-angular-workflow-diagram.mjs.map +1 -1
  486. package/fesm2022/trismegisto-angular-workflow-i18n.mjs +11 -852
  487. package/fesm2022/trismegisto-angular-workflow-i18n.mjs.map +1 -1
  488. package/fesm2022/trismegisto-angular-workload.mjs +3 -3
  489. package/fesm2022/trismegisto-angular-workload.mjs.map +1 -1
  490. package/fesm2022/trismegisto-angular-workspace-persistence.mjs +3 -41
  491. package/fesm2022/trismegisto-angular-workspace-persistence.mjs.map +1 -1
  492. package/fesm2022/trismegisto-angular-workspace.mjs +12 -40
  493. package/fesm2022/trismegisto-angular-workspace.mjs.map +1 -1
  494. package/fesm2022/trismegisto-angular-zoom.mjs +12 -24
  495. package/fesm2022/trismegisto-angular-zoom.mjs.map +1 -1
  496. package/package.json +102 -6
  497. package/spine/README.md +404 -0
  498. package/types/trismegisto-angular-access-control.d.ts +9 -84
  499. package/types/trismegisto-angular-access-control.d.ts.map +1 -1
  500. package/types/trismegisto-angular-accordion.d.ts +0 -5
  501. package/types/trismegisto-angular-accordion.d.ts.map +1 -1
  502. package/types/trismegisto-angular-account-avatar.d.ts +1 -7
  503. package/types/trismegisto-angular-account-avatar.d.ts.map +1 -1
  504. package/types/trismegisto-angular-account-closure.d.ts +4 -23
  505. package/types/trismegisto-angular-account-closure.d.ts.map +1 -1
  506. package/types/trismegisto-angular-account-forms.d.ts +6 -67
  507. package/types/trismegisto-angular-account-forms.d.ts.map +1 -1
  508. package/types/trismegisto-angular-account-switcher.d.ts +5 -20
  509. package/types/trismegisto-angular-account-switcher.d.ts.map +1 -1
  510. package/types/trismegisto-angular-address.d.ts +5 -49
  511. package/types/trismegisto-angular-address.d.ts.map +1 -1
  512. package/types/trismegisto-angular-agent.d.ts +45 -124
  513. package/types/trismegisto-angular-agent.d.ts.map +1 -1
  514. package/types/trismegisto-angular-alert-history.d.ts +12 -38
  515. package/types/trismegisto-angular-alert-history.d.ts.map +1 -1
  516. package/types/trismegisto-angular-alert-rule-editor.d.ts +8 -46
  517. package/types/trismegisto-angular-alert-rule-editor.d.ts.map +1 -1
  518. package/types/trismegisto-angular-alert.d.ts.map +1 -1
  519. package/types/trismegisto-angular-anchor-nav.d.ts +4 -16
  520. package/types/trismegisto-angular-anchor-nav.d.ts.map +1 -1
  521. package/types/trismegisto-angular-api-exchange.d.ts +3 -10
  522. package/types/trismegisto-angular-api-exchange.d.ts.map +1 -1
  523. package/types/trismegisto-angular-appointment-details.d.ts +5 -11
  524. package/types/trismegisto-angular-appointment-details.d.ts.map +1 -1
  525. package/types/trismegisto-angular-approval.d.ts +5 -19
  526. package/types/trismegisto-angular-approval.d.ts.map +1 -1
  527. package/types/trismegisto-angular-assignee.d.ts +2 -1
  528. package/types/trismegisto-angular-assignee.d.ts.map +1 -1
  529. package/types/trismegisto-angular-attachment.d.ts +2 -8
  530. package/types/trismegisto-angular-attachment.d.ts.map +1 -1
  531. package/types/trismegisto-angular-availability-editor.d.ts +6 -22
  532. package/types/trismegisto-angular-availability-editor.d.ts.map +1 -1
  533. package/types/trismegisto-angular-avatar-group.d.ts +2 -5
  534. package/types/trismegisto-angular-avatar-group.d.ts.map +1 -1
  535. package/types/trismegisto-angular-backlog.d.ts +4 -10
  536. package/types/trismegisto-angular-backlog.d.ts.map +1 -1
  537. package/types/trismegisto-angular-billing.d.ts +11 -83
  538. package/types/trismegisto-angular-billing.d.ts.map +1 -1
  539. package/types/trismegisto-angular-bottom-navigation.d.ts +3 -18
  540. package/types/trismegisto-angular-bottom-navigation.d.ts.map +1 -1
  541. package/types/trismegisto-angular-bottom-sheet.d.ts +3 -23
  542. package/types/trismegisto-angular-bottom-sheet.d.ts.map +1 -1
  543. package/types/trismegisto-angular-breadcrumb.d.ts +2 -9
  544. package/types/trismegisto-angular-breadcrumb.d.ts.map +1 -1
  545. package/types/trismegisto-angular-bubble.d.ts +2 -15
  546. package/types/trismegisto-angular-bubble.d.ts.map +1 -1
  547. package/types/trismegisto-angular-bulk-input.d.ts.map +1 -1
  548. package/types/trismegisto-angular-button-group.d.ts.map +1 -1
  549. package/types/trismegisto-angular-card-container.d.ts.map +1 -1
  550. package/types/trismegisto-angular-carousel.d.ts.map +1 -1
  551. package/types/trismegisto-angular-cart.d.ts +3 -41
  552. package/types/trismegisto-angular-cart.d.ts.map +1 -1
  553. package/types/trismegisto-angular-cascader.d.ts +3 -26
  554. package/types/trismegisto-angular-cascader.d.ts.map +1 -1
  555. package/types/trismegisto-angular-certificate-viewer.d.ts +6 -4
  556. package/types/trismegisto-angular-certificate-viewer.d.ts.map +1 -1
  557. package/types/trismegisto-angular-change-history.d.ts +2 -10
  558. package/types/trismegisto-angular-change-history.d.ts.map +1 -1
  559. package/types/trismegisto-angular-charts.d.ts +305 -0
  560. package/types/trismegisto-angular-charts.d.ts.map +1 -0
  561. package/types/trismegisto-angular-checkbox-group.d.ts.map +1 -1
  562. package/types/trismegisto-angular-chip.d.ts.map +1 -1
  563. package/types/trismegisto-angular-code-diff.d.ts.map +1 -1
  564. package/types/trismegisto-angular-code-input.d.ts.map +1 -1
  565. package/types/trismegisto-angular-code-viewer.d.ts +38 -93
  566. package/types/trismegisto-angular-code-viewer.d.ts.map +1 -1
  567. package/types/trismegisto-angular-color-picker.d.ts +3 -18
  568. package/types/trismegisto-angular-color-picker.d.ts.map +1 -1
  569. package/types/trismegisto-angular-combobox-multi.d.ts.map +1 -1
  570. package/types/trismegisto-angular-combobox.d.ts +8 -25
  571. package/types/trismegisto-angular-combobox.d.ts.map +1 -1
  572. package/types/trismegisto-angular-command-palette.d.ts +8 -34
  573. package/types/trismegisto-angular-command-palette.d.ts.map +1 -1
  574. package/types/trismegisto-angular-commerce-format.d.ts +2 -24
  575. package/types/trismegisto-angular-commerce-format.d.ts.map +1 -1
  576. package/types/trismegisto-angular-connection-wizard.d.ts +5 -28
  577. package/types/trismegisto-angular-connection-wizard.d.ts.map +1 -1
  578. package/types/trismegisto-angular-consent.d.ts +4 -30
  579. package/types/trismegisto-angular-consent.d.ts.map +1 -1
  580. package/types/trismegisto-angular-copy-button.d.ts +2 -2
  581. package/types/trismegisto-angular-copy-button.d.ts.map +1 -1
  582. package/types/trismegisto-angular-credentials-form.d.ts +6 -54
  583. package/types/trismegisto-angular-credentials-form.d.ts.map +1 -1
  584. package/types/trismegisto-angular-data-grid.d.ts +58 -208
  585. package/types/trismegisto-angular-data-grid.d.ts.map +1 -1
  586. package/types/trismegisto-angular-data-source-picker.d.ts +6 -19
  587. package/types/trismegisto-angular-data-source-picker.d.ts.map +1 -1
  588. package/types/trismegisto-angular-date-picker.d.ts +13 -27
  589. package/types/trismegisto-angular-date-picker.d.ts.map +1 -1
  590. package/types/trismegisto-angular-datetime-picker.d.ts +3 -17
  591. package/types/trismegisto-angular-datetime-picker.d.ts.map +1 -1
  592. package/types/trismegisto-angular-deadline.d.ts +3 -3
  593. package/types/trismegisto-angular-deadline.d.ts.map +1 -1
  594. package/types/trismegisto-angular-deploy-pipeline.d.ts +11 -23
  595. package/types/trismegisto-angular-deploy-pipeline.d.ts.map +1 -1
  596. package/types/trismegisto-angular-description-list.d.ts.map +1 -1
  597. package/types/trismegisto-angular-dialog.d.ts +4 -9
  598. package/types/trismegisto-angular-dialog.d.ts.map +1 -1
  599. package/types/trismegisto-angular-direction.d.ts +1 -19
  600. package/types/trismegisto-angular-direction.d.ts.map +1 -1
  601. package/types/trismegisto-angular-drag-drop.d.ts +22 -71
  602. package/types/trismegisto-angular-drag-drop.d.ts.map +1 -1
  603. package/types/trismegisto-angular-drawer.d.ts +1 -4
  604. package/types/trismegisto-angular-drawer.d.ts.map +1 -1
  605. package/types/trismegisto-angular-dropdown.d.ts +2 -3
  606. package/types/trismegisto-angular-dropdown.d.ts.map +1 -1
  607. package/types/trismegisto-angular-dual-list.d.ts.map +1 -1
  608. package/types/trismegisto-angular-endpoint-card.d.ts +6 -27
  609. package/types/trismegisto-angular-endpoint-card.d.ts.map +1 -1
  610. package/types/trismegisto-angular-entity-picker.d.ts +6 -30
  611. package/types/trismegisto-angular-entity-picker.d.ts.map +1 -1
  612. package/types/trismegisto-angular-environment-picker.d.ts +7 -22
  613. package/types/trismegisto-angular-environment-picker.d.ts.map +1 -1
  614. package/types/trismegisto-angular-event-calendar.d.ts +6 -17
  615. package/types/trismegisto-angular-event-calendar.d.ts.map +1 -1
  616. package/types/trismegisto-angular-execution-status.d.ts +3 -1
  617. package/types/trismegisto-angular-execution-status.d.ts.map +1 -1
  618. package/types/trismegisto-angular-fab.d.ts +2 -12
  619. package/types/trismegisto-angular-fab.d.ts.map +1 -1
  620. package/types/trismegisto-angular-feature-flags.d.ts +3 -10
  621. package/types/trismegisto-angular-feature-flags.d.ts.map +1 -1
  622. package/types/trismegisto-angular-field-mapping.d.ts +3 -38
  623. package/types/trismegisto-angular-field-mapping.d.ts.map +1 -1
  624. package/types/trismegisto-angular-file-list.d.ts +7 -21
  625. package/types/trismegisto-angular-file-list.d.ts.map +1 -1
  626. package/types/trismegisto-angular-file-permissions.d.ts +3 -10
  627. package/types/trismegisto-angular-file-permissions.d.ts.map +1 -1
  628. package/types/trismegisto-angular-file-upload.d.ts +3 -2
  629. package/types/trismegisto-angular-file-upload.d.ts.map +1 -1
  630. package/types/trismegisto-angular-file-versions.d.ts +2 -10
  631. package/types/trismegisto-angular-file-versions.d.ts.map +1 -1
  632. package/types/trismegisto-angular-filter-bar.d.ts +2 -3
  633. package/types/trismegisto-angular-filter-bar.d.ts.map +1 -1
  634. package/types/trismegisto-angular-finance.d.ts +12 -108
  635. package/types/trismegisto-angular-finance.d.ts.map +1 -1
  636. package/types/trismegisto-angular-floating-window.d.ts +6 -21
  637. package/types/trismegisto-angular-floating-window.d.ts.map +1 -1
  638. package/types/trismegisto-angular-form-error-summary.d.ts +3 -23
  639. package/types/trismegisto-angular-form-error-summary.d.ts.map +1 -1
  640. package/types/trismegisto-angular-forms.d.ts +5 -2
  641. package/types/trismegisto-angular-forms.d.ts.map +1 -1
  642. package/types/trismegisto-angular-gantt.d.ts +3 -12
  643. package/types/trismegisto-angular-gantt.d.ts.map +1 -1
  644. package/types/trismegisto-angular-global-search.d.ts +2 -27
  645. package/types/trismegisto-angular-global-search.d.ts.map +1 -1
  646. package/types/trismegisto-angular-header.d.ts.map +1 -1
  647. package/types/trismegisto-angular-health-status.d.ts +6 -23
  648. package/types/trismegisto-angular-health-status.d.ts.map +1 -1
  649. package/types/trismegisto-angular-i18n.d.ts +11 -54
  650. package/types/trismegisto-angular-i18n.d.ts.map +1 -1
  651. package/types/trismegisto-angular-icon.d.ts +6 -1
  652. package/types/trismegisto-angular-icon.d.ts.map +1 -1
  653. package/types/trismegisto-angular-identity-document.d.ts +3 -22
  654. package/types/trismegisto-angular-identity-document.d.ts.map +1 -1
  655. package/types/trismegisto-angular-illustration-attention.d.ts +2 -2
  656. package/types/trismegisto-angular-illustration-attention.d.ts.map +1 -1
  657. package/types/trismegisto-angular-illustration-error.d.ts +2 -2
  658. package/types/trismegisto-angular-illustration-error.d.ts.map +1 -1
  659. package/types/trismegisto-angular-illustration-journey-end.d.ts +2 -2
  660. package/types/trismegisto-angular-illustration-journey-end.d.ts.map +1 -1
  661. package/types/trismegisto-angular-illustration-locked.d.ts +2 -2
  662. package/types/trismegisto-angular-illustration-locked.d.ts.map +1 -1
  663. package/types/trismegisto-angular-illustration-no-permission.d.ts +2 -2
  664. package/types/trismegisto-angular-illustration-no-permission.d.ts.map +1 -1
  665. package/types/trismegisto-angular-illustration-no-results.d.ts +2 -2
  666. package/types/trismegisto-angular-illustration-no-results.d.ts.map +1 -1
  667. package/types/trismegisto-angular-illustration-not-found.d.ts +2 -2
  668. package/types/trismegisto-angular-illustration-not-found.d.ts.map +1 -1
  669. package/types/trismegisto-angular-illustration-session-expired.d.ts +2 -2
  670. package/types/trismegisto-angular-illustration-session-expired.d.ts.map +1 -1
  671. package/types/trismegisto-angular-illustration-shared.d.ts +1 -22
  672. package/types/trismegisto-angular-illustration-shared.d.ts.map +1 -1
  673. package/types/trismegisto-angular-illustration-success.d.ts +2 -2
  674. package/types/trismegisto-angular-illustration-success.d.ts.map +1 -1
  675. package/types/trismegisto-angular-illustration-unlocked.d.ts +2 -2
  676. package/types/trismegisto-angular-illustration-unlocked.d.ts.map +1 -1
  677. package/types/trismegisto-angular-image-crop.d.ts +10 -31
  678. package/types/trismegisto-angular-image-crop.d.ts.map +1 -1
  679. package/types/trismegisto-angular-image-gallery.d.ts +4 -26
  680. package/types/trismegisto-angular-image-gallery.d.ts.map +1 -1
  681. package/types/trismegisto-angular-incident.d.ts +8 -70
  682. package/types/trismegisto-angular-incident.d.ts.map +1 -1
  683. package/types/trismegisto-angular-input.d.ts +4 -6
  684. package/types/trismegisto-angular-input.d.ts.map +1 -1
  685. package/types/trismegisto-angular-integration-text.d.ts +4 -33
  686. package/types/trismegisto-angular-integration-text.d.ts.map +1 -1
  687. package/types/trismegisto-angular-integration.d.ts +9 -70
  688. package/types/trismegisto-angular-integration.d.ts.map +1 -1
  689. package/types/trismegisto-angular-invoice.d.ts +5 -70
  690. package/types/trismegisto-angular-invoice.d.ts.map +1 -1
  691. package/types/trismegisto-angular-json-viewer.d.ts +3 -32
  692. package/types/trismegisto-angular-json-viewer.d.ts.map +1 -1
  693. package/types/trismegisto-angular-kanban.d.ts.map +1 -1
  694. package/types/trismegisto-angular-level-badge.d.ts +6 -4
  695. package/types/trismegisto-angular-level-badge.d.ts.map +1 -1
  696. package/types/trismegisto-angular-list-editor.d.ts.map +1 -1
  697. package/types/trismegisto-angular-location-select.d.ts +7 -17
  698. package/types/trismegisto-angular-location-select.d.ts.map +1 -1
  699. package/types/trismegisto-angular-log-viewer.d.ts +3 -35
  700. package/types/trismegisto-angular-log-viewer.d.ts.map +1 -1
  701. package/types/trismegisto-angular-maintenance-window.d.ts +7 -26
  702. package/types/trismegisto-angular-maintenance-window.d.ts.map +1 -1
  703. package/types/trismegisto-angular-map.d.ts +701 -0
  704. package/types/trismegisto-angular-map.d.ts.map +1 -0
  705. package/types/trismegisto-angular-member-list.d.ts +8 -29
  706. package/types/trismegisto-angular-member-list.d.ts.map +1 -1
  707. package/types/trismegisto-angular-menu-button.d.ts.map +1 -1
  708. package/types/trismegisto-angular-menu.d.ts +2 -11
  709. package/types/trismegisto-angular-menu.d.ts.map +1 -1
  710. package/types/trismegisto-angular-menubar.d.ts.map +1 -1
  711. package/types/trismegisto-angular-message-scroller.d.ts +4 -22
  712. package/types/trismegisto-angular-message-scroller.d.ts.map +1 -1
  713. package/types/trismegisto-angular-message.d.ts +4 -18
  714. package/types/trismegisto-angular-message.d.ts.map +1 -1
  715. package/types/trismegisto-angular-metric-explorer.d.ts +12 -73
  716. package/types/trismegisto-angular-metric-explorer.d.ts.map +1 -1
  717. package/types/trismegisto-angular-modal.d.ts +1 -2
  718. package/types/trismegisto-angular-modal.d.ts.map +1 -1
  719. package/types/trismegisto-angular-monitoring-text.d.ts +4 -41
  720. package/types/trismegisto-angular-monitoring-text.d.ts.map +1 -1
  721. package/types/trismegisto-angular-month-picker.d.ts +7 -21
  722. package/types/trismegisto-angular-month-picker.d.ts.map +1 -1
  723. package/types/trismegisto-angular-motion.d.ts +5 -11
  724. package/types/trismegisto-angular-motion.d.ts.map +1 -1
  725. package/types/trismegisto-angular-navigation-menu.d.ts +3 -13
  726. package/types/trismegisto-angular-navigation-menu.d.ts.map +1 -1
  727. package/types/trismegisto-angular-number-field.d.ts.map +1 -1
  728. package/types/trismegisto-angular-observability-text.d.ts +1 -84
  729. package/types/trismegisto-angular-observability-text.d.ts.map +1 -1
  730. package/types/trismegisto-angular-order.d.ts +78 -136
  731. package/types/trismegisto-angular-order.d.ts.map +1 -1
  732. package/types/trismegisto-angular-org-chart.d.ts +5 -37
  733. package/types/trismegisto-angular-org-chart.d.ts.map +1 -1
  734. package/types/trismegisto-angular-page-header.d.ts +3 -3
  735. package/types/trismegisto-angular-page-header.d.ts.map +1 -1
  736. package/types/trismegisto-angular-paginator.d.ts.map +1 -1
  737. package/types/trismegisto-angular-password-strength.d.ts +3 -30
  738. package/types/trismegisto-angular-password-strength.d.ts.map +1 -1
  739. package/types/trismegisto-angular-payment-fields.d.ts +4 -67
  740. package/types/trismegisto-angular-payment-fields.d.ts.map +1 -1
  741. package/types/trismegisto-angular-payment-form.d.ts +10 -49
  742. package/types/trismegisto-angular-payment-form.d.ts.map +1 -1
  743. package/types/trismegisto-angular-payment-method.d.ts +7 -44
  744. package/types/trismegisto-angular-payment-method.d.ts.map +1 -1
  745. package/types/trismegisto-angular-pdf-viewer.d.ts +5 -22
  746. package/types/trismegisto-angular-pdf-viewer.d.ts.map +1 -1
  747. package/types/trismegisto-angular-permission-matrix.d.ts +3 -16
  748. package/types/trismegisto-angular-permission-matrix.d.ts.map +1 -1
  749. package/types/trismegisto-angular-pipes.d.ts +4 -30
  750. package/types/trismegisto-angular-pipes.d.ts.map +1 -1
  751. package/types/trismegisto-angular-popconfirm.d.ts +6 -19
  752. package/types/trismegisto-angular-popconfirm.d.ts.map +1 -1
  753. package/types/trismegisto-angular-popover.d.ts +7 -15
  754. package/types/trismegisto-angular-popover.d.ts.map +1 -1
  755. package/types/trismegisto-angular-price.d.ts +6 -38
  756. package/types/trismegisto-angular-price.d.ts.map +1 -1
  757. package/types/trismegisto-angular-product.d.ts +3 -33
  758. package/types/trismegisto-angular-product.d.ts.map +1 -1
  759. package/types/trismegisto-angular-progress.d.ts +3 -5
  760. package/types/trismegisto-angular-progress.d.ts.map +1 -1
  761. package/types/trismegisto-angular-prompt-input.d.ts +5 -38
  762. package/types/trismegisto-angular-prompt-input.d.ts.map +1 -1
  763. package/types/trismegisto-angular-prompt-suggestions.d.ts +2 -11
  764. package/types/trismegisto-angular-prompt-suggestions.d.ts.map +1 -1
  765. package/types/trismegisto-angular-property-view.d.ts.map +1 -1
  766. package/types/trismegisto-angular-questionnaire.d.ts +5 -23
  767. package/types/trismegisto-angular-questionnaire.d.ts.map +1 -1
  768. package/types/trismegisto-angular-radio.d.ts.map +1 -1
  769. package/types/trismegisto-angular-rating.d.ts +4 -16
  770. package/types/trismegisto-angular-rating.d.ts.map +1 -1
  771. package/types/trismegisto-angular-reason-dialog.d.ts.map +1 -1
  772. package/types/trismegisto-angular-recurrence-editor.d.ts +5 -16
  773. package/types/trismegisto-angular-recurrence-editor.d.ts.map +1 -1
  774. package/types/trismegisto-angular-release-timeline.d.ts +7 -41
  775. package/types/trismegisto-angular-release-timeline.d.ts.map +1 -1
  776. package/types/trismegisto-angular-reorder-list.d.ts.map +1 -1
  777. package/types/trismegisto-angular-report-history.d.ts +8 -21
  778. package/types/trismegisto-angular-report-history.d.ts.map +1 -1
  779. package/types/trismegisto-angular-report-schedule.d.ts +4 -17
  780. package/types/trismegisto-angular-report-schedule.d.ts.map +1 -1
  781. package/types/trismegisto-angular-resource-calendar.d.ts +3 -10
  782. package/types/trismegisto-angular-resource-calendar.d.ts.map +1 -1
  783. package/types/trismegisto-angular-resource-usage.d.ts +6 -57
  784. package/types/trismegisto-angular-resource-usage.d.ts.map +1 -1
  785. package/types/trismegisto-angular-return-request.d.ts +11 -51
  786. package/types/trismegisto-angular-return-request.d.ts.map +1 -1
  787. package/types/trismegisto-angular-rich-text.d.ts +21 -57
  788. package/types/trismegisto-angular-rich-text.d.ts.map +1 -1
  789. package/types/trismegisto-angular-risk-register.d.ts +5 -26
  790. package/types/trismegisto-angular-risk-register.d.ts.map +1 -1
  791. package/types/trismegisto-angular-save-status.d.ts +4 -20
  792. package/types/trismegisto-angular-save-status.d.ts.map +1 -1
  793. package/types/trismegisto-angular-search-field.d.ts +2 -2
  794. package/types/trismegisto-angular-search-field.d.ts.map +1 -1
  795. package/types/trismegisto-angular-segmented-control.d.ts.map +1 -1
  796. package/types/trismegisto-angular-service-map.d.ts +15 -52
  797. package/types/trismegisto-angular-service-map.d.ts.map +1 -1
  798. package/types/trismegisto-angular-service-status.d.ts +6 -28
  799. package/types/trismegisto-angular-service-status.d.ts.map +1 -1
  800. package/types/trismegisto-angular-session-recovery.d.ts +2 -6
  801. package/types/trismegisto-angular-session-recovery.d.ts.map +1 -1
  802. package/types/trismegisto-angular-settings.d.ts +2 -5
  803. package/types/trismegisto-angular-settings.d.ts.map +1 -1
  804. package/types/trismegisto-angular-shipping.d.ts +13 -59
  805. package/types/trismegisto-angular-shipping.d.ts.map +1 -1
  806. package/types/trismegisto-angular-shortcut-list.d.ts +13 -51
  807. package/types/trismegisto-angular-shortcut-list.d.ts.map +1 -1
  808. package/types/trismegisto-angular-sidebar.d.ts +1 -1
  809. package/types/trismegisto-angular-sidebar.d.ts.map +1 -1
  810. package/types/trismegisto-angular-skip-link.d.ts +3 -16
  811. package/types/trismegisto-angular-skip-link.d.ts.map +1 -1
  812. package/types/trismegisto-angular-sla-summary.d.ts +8 -45
  813. package/types/trismegisto-angular-sla-summary.d.ts.map +1 -1
  814. package/types/trismegisto-angular-slider.d.ts +2 -2
  815. package/types/trismegisto-angular-slider.d.ts.map +1 -1
  816. package/types/trismegisto-angular-slot-picker.d.ts +4 -17
  817. package/types/trismegisto-angular-slot-picker.d.ts.map +1 -1
  818. package/types/trismegisto-angular-spine-audit.d.ts +749 -0
  819. package/types/trismegisto-angular-spine-audit.d.ts.map +1 -0
  820. package/types/trismegisto-angular-spine-auto-service.d.ts +143 -0
  821. package/types/trismegisto-angular-spine-auto-service.d.ts.map +1 -0
  822. package/types/trismegisto-angular-spine-graphql.d.ts +47 -0
  823. package/types/trismegisto-angular-spine-graphql.d.ts.map +1 -0
  824. package/types/trismegisto-angular-spine-layout.d.ts +3572 -0
  825. package/types/trismegisto-angular-spine-layout.d.ts.map +1 -0
  826. package/types/trismegisto-angular-spine-modal.d.ts +70 -0
  827. package/types/trismegisto-angular-spine-modal.d.ts.map +1 -0
  828. package/types/trismegisto-angular-spine-notification.d.ts +38 -0
  829. package/types/trismegisto-angular-spine-notification.d.ts.map +1 -0
  830. package/types/trismegisto-angular-spine-routing.d.ts +175 -0
  831. package/types/trismegisto-angular-spine-routing.d.ts.map +1 -0
  832. package/types/trismegisto-angular-spine-shell.d.ts +138 -0
  833. package/types/trismegisto-angular-spine-shell.d.ts.map +1 -0
  834. package/types/trismegisto-angular-spine-side-panel.d.ts +68 -0
  835. package/types/trismegisto-angular-spine-side-panel.d.ts.map +1 -0
  836. package/types/trismegisto-angular-spine.d.ts +344 -0
  837. package/types/trismegisto-angular-spine.d.ts.map +1 -0
  838. package/types/trismegisto-angular-split-button.d.ts +3 -13
  839. package/types/trismegisto-angular-split-button.d.ts.map +1 -1
  840. package/types/trismegisto-angular-splitter.d.ts.map +1 -1
  841. package/types/trismegisto-angular-state-page.d.ts +4 -29
  842. package/types/trismegisto-angular-state-page.d.ts.map +1 -1
  843. package/types/trismegisto-angular-state-screen.d.ts.map +1 -1
  844. package/types/trismegisto-angular-status-badge.d.ts +2 -4
  845. package/types/trismegisto-angular-status-badge.d.ts.map +1 -1
  846. package/types/trismegisto-angular-status-select.d.ts +2 -9
  847. package/types/trismegisto-angular-status-select.d.ts.map +1 -1
  848. package/types/trismegisto-angular-stepper.d.ts.map +1 -1
  849. package/types/trismegisto-angular-storage-usage.d.ts +4 -13
  850. package/types/trismegisto-angular-storage-usage.d.ts.map +1 -1
  851. package/types/trismegisto-angular-swimlane-board.d.ts +4 -6
  852. package/types/trismegisto-angular-swimlane-board.d.ts.map +1 -1
  853. package/types/trismegisto-angular-sync-status.d.ts +10 -63
  854. package/types/trismegisto-angular-sync-status.d.ts.map +1 -1
  855. package/types/trismegisto-angular-tab-bar.d.ts +5 -16
  856. package/types/trismegisto-angular-tab-bar.d.ts.map +1 -1
  857. package/types/trismegisto-angular-tabs.d.ts +1 -5
  858. package/types/trismegisto-angular-tabs.d.ts.map +1 -1
  859. package/types/trismegisto-angular-tag-input.d.ts +3 -23
  860. package/types/trismegisto-angular-tag-input.d.ts.map +1 -1
  861. package/types/trismegisto-angular-task-card.d.ts +5 -9
  862. package/types/trismegisto-angular-task-card.d.ts.map +1 -1
  863. package/types/trismegisto-angular-task-detail.d.ts +7 -25
  864. package/types/trismegisto-angular-task-detail.d.ts.map +1 -1
  865. package/types/trismegisto-angular-terminal.d.ts +90 -0
  866. package/types/trismegisto-angular-terminal.d.ts.map +1 -0
  867. package/types/trismegisto-angular-textarea.d.ts +4 -10
  868. package/types/trismegisto-angular-textarea.d.ts.map +1 -1
  869. package/types/trismegisto-angular-theme-builder.d.ts +2 -3
  870. package/types/trismegisto-angular-theme-builder.d.ts.map +1 -1
  871. package/types/trismegisto-angular-time-picker.d.ts +0 -1
  872. package/types/trismegisto-angular-time-picker.d.ts.map +1 -1
  873. package/types/trismegisto-angular-time-range.d.ts +3 -23
  874. package/types/trismegisto-angular-time-range.d.ts.map +1 -1
  875. package/types/trismegisto-angular-toast.d.ts +1 -1
  876. package/types/trismegisto-angular-toast.d.ts.map +1 -1
  877. package/types/trismegisto-angular-toggle-group.d.ts +3 -3
  878. package/types/trismegisto-angular-toggle-group.d.ts.map +1 -1
  879. package/types/trismegisto-angular-toggletip.d.ts +2 -2
  880. package/types/trismegisto-angular-toggletip.d.ts.map +1 -1
  881. package/types/trismegisto-angular-toolbar.d.ts +2 -4
  882. package/types/trismegisto-angular-toolbar.d.ts.map +1 -1
  883. package/types/trismegisto-angular-tooltip.d.ts +3 -26
  884. package/types/trismegisto-angular-tooltip.d.ts.map +1 -1
  885. package/types/trismegisto-angular-tour.d.ts +3 -21
  886. package/types/trismegisto-angular-tour.d.ts.map +1 -1
  887. package/types/trismegisto-angular-trace-waterfall.d.ts +10 -50
  888. package/types/trismegisto-angular-trace-waterfall.d.ts.map +1 -1
  889. package/types/trismegisto-angular-trace.d.ts +4 -15
  890. package/types/trismegisto-angular-trace.d.ts.map +1 -1
  891. package/types/trismegisto-angular-transaction.d.ts +9 -63
  892. package/types/trismegisto-angular-transaction.d.ts.map +1 -1
  893. package/types/trismegisto-angular-tree-select.d.ts +4 -26
  894. package/types/trismegisto-angular-tree-select.d.ts.map +1 -1
  895. package/types/trismegisto-angular-tree.d.ts +2 -3
  896. package/types/trismegisto-angular-tree.d.ts.map +1 -1
  897. package/types/trismegisto-angular-unsaved-changes.d.ts +6 -20
  898. package/types/trismegisto-angular-unsaved-changes.d.ts.map +1 -1
  899. package/types/trismegisto-angular-uptime-bar.d.ts +4 -16
  900. package/types/trismegisto-angular-uptime-bar.d.ts.map +1 -1
  901. package/types/trismegisto-angular-user-card.d.ts +4 -14
  902. package/types/trismegisto-angular-user-card.d.ts.map +1 -1
  903. package/types/trismegisto-angular-vehicle-plate.d.ts +3 -26
  904. package/types/trismegisto-angular-vehicle-plate.d.ts.map +1 -1
  905. package/types/trismegisto-angular-webhook.d.ts +17 -86
  906. package/types/trismegisto-angular-webhook.d.ts.map +1 -1
  907. package/types/trismegisto-angular-wizard.d.ts +6 -3
  908. package/types/trismegisto-angular-wizard.d.ts.map +1 -1
  909. package/types/trismegisto-angular-workflow-diagram.d.ts +3 -19
  910. package/types/trismegisto-angular-workflow-diagram.d.ts.map +1 -1
  911. package/types/trismegisto-angular-workflow-i18n.d.ts +7 -340
  912. package/types/trismegisto-angular-workflow-i18n.d.ts.map +1 -1
  913. package/types/trismegisto-angular-workload.d.ts.map +1 -1
  914. package/types/trismegisto-angular-workspace-persistence.d.ts +3 -13
  915. package/types/trismegisto-angular-workspace-persistence.d.ts.map +1 -1
  916. package/types/trismegisto-angular-workspace.d.ts.map +1 -1
  917. package/types/trismegisto-angular-zoom.d.ts.map +1 -1
@@ -1,14 +1,12 @@
1
1
  import { isPlatformBrowser } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { model, input, booleanAttribute, numberAttribute, output, inject, ElementRef, DOCUMENT, PLATFORM_ID, Injector, viewChild, signal, computed, effect, untracked, afterRenderEffect, DestroyRef, afterNextRender, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { model, input, booleanAttribute, numberAttribute, output, inject, ElementRef, PLATFORM_ID, Injector, viewChild, computed, afterNextRender, untracked, signal, effect, afterRenderEffect, DestroyRef, ChangeDetectionStrategy, Component } from '@angular/core';
4
4
  import { buttonClass } from '@trismegisto/primitives/classes';
5
- import { formatMessage, pluralMessage } from '@trismegisto/primitives/i18n';
6
- import { RichTextSurface } from '@trismegisto/primitives/rich-text-dom';
7
- import { richTextHistory, historyUndo, historyRedo, historyRecord, historyBreak } from '@trismegisto/primitives/rich-text-history';
8
- import { rtEmptyDoc, rtCollapsed, rtPlainText, rtCharacterCount, rtIsBlank, rtSelectionInfo, rtDocEnd, rtSerialize, rtClampPos, rtSameSelection, rtSetBlockType, rtClearMarks, rtToggleCodeBlock, rtToggleQuote, rtToggleList, rtToggleMark, rtExitAtEnd, rtIsCollapsed, rtInsertText, rtTranspose, rtDeleteSelection, rtInsertLineBreak, rtSplitBlock, rtBlockText, rtDeleteRange, rtDeleteBackward, rtDeleteForward, rtBlock, rtRun, rtTextToDoc, rtSetLink, rtSelectionFrom, rtInsertFragment, rtSliceDoc, rtSelectionTo, rtMapThroughDelete, rtRemoveLink } from '@trismegisto/primitives/rich-text-model';
9
- import { richTextParseHtml, richTextFromDom, normalizeRichTextUrl, richTextLength } from '@trismegisto/primitives/rich-text-sanitize';
10
- import { RICH_TEXT_DEFAULT_TOOLS, RICH_TEXT_DEFAULT_PROTOCOLS, richTextSchema, RICH_TEXT_MARK_BITS } from '@trismegisto/primitives/rich-text-schema';
11
- import { shortcutDisplayText, formatShortcut, toAriaKeyShortcuts, detectShortcutPlatform } from '@trismegisto/primitives/shortcuts';
5
+ import { formatMessage } from '@trismegisto/primitives/i18n';
6
+ import { richTextToolbarItems, richTextCounter, richTextBlockKindName, richTextBlockTypeItems } from '@trismegisto/primitives/rich-text-commands';
7
+ import { RichTextEditor, richTextEditorBlank, richTextEditorInfo, richTextEditorToolStates } from '@trismegisto/primitives/rich-text-editor';
8
+ import { rtPlainText, rtCharacterCount } from '@trismegisto/primitives/rich-text-model';
9
+ import { RICH_TEXT_DEFAULT_TOOLS, RICH_TEXT_DEFAULT_PROTOCOLS, richTextSchema } from '@trismegisto/primitives/rich-text-schema';
12
10
  import { ButtonComponent } from '@trismegisto/angular/button';
13
11
  import { HermesFormFieldBase } from '@trismegisto/angular/forms';
14
12
  import { HERMES_MESSAGES } from '@trismegisto/angular/i18n';
@@ -19,70 +17,26 @@ import { MenuButtonComponent } from '@trismegisto/angular/menu-button';
19
17
  import { PopoverComponent } from '@trismegisto/angular/popover';
20
18
  import { ToolbarComponent } from '@trismegisto/angular/toolbar';
21
19
  import { TooltipDirective } from '@trismegisto/angular/tooltip';
20
+ import { richTextLength } from '@trismegisto/primitives/rich-text-sanitize';
22
21
 
23
22
  const RICH_TEXT_ICONS = [ICON_BLOCK_QUOTE, ICON_BOLD, ICON_BULLET_LIST, ICON_CODE, ICON_CODE_BLOCK, ICON_ERASER, ICON_EXCLAMATION_TRIANGLE, ICON_ITALIC, ICON_LINK, ICON_NUMBER_LIST, ICON_REDO, ICON_STRIKETHROUGH, ICON_UNDERLINE, ICON_UNDO];
24
23
 
25
24
  let nextId = 0;
26
- /** Ícone e atalho de cada ferramenta da barra (`toggle` = botão de alternância com `aria-pressed`). */
27
- const TOOLS = {
28
- bold: { icon: 'bold', keys: ['Mod+B'], toggle: true },
29
- italic: { icon: 'italic', keys: ['Mod+I'], toggle: true },
30
- underline: { icon: 'underline', keys: ['Mod+U'], toggle: true },
31
- strike: { icon: 'strikethrough', keys: ['Mod+Shift+X'], toggle: true },
32
- code: { icon: 'code', keys: ['Mod+E'], toggle: true },
33
- link: { icon: 'link', keys: ['Mod+K'], toggle: true },
34
- bulletList: { icon: 'bullet-list', keys: ['Mod+Shift+8'], toggle: true },
35
- orderedList: { icon: 'number-list', keys: ['Mod+Shift+7'], toggle: true },
36
- quote: { icon: 'block-quote', keys: ['Mod+Shift+9'], toggle: true },
37
- codeBlock: { icon: 'code-block', keys: ['Mod+Alt+C'], toggle: true },
38
- clear: { icon: 'eraser', keys: ['Mod+\\'], toggle: false },
39
- undo: { icon: 'undo', keys: ['Mod+Z'], toggle: false },
40
- redo: { icon: 'redo', keys: ['Mod+Shift+Z'], toggle: false },
41
- };
42
- /** Atalhos da área: letra (por `key`, com `code` de reserva fora do alfabeto latino) ou dígito (por `code`). */
43
- const SHORTCUTS = [
44
- { tool: 'bold', key: 'b' },
45
- { tool: 'italic', key: 'i' },
46
- { tool: 'underline', key: 'u' },
47
- { tool: 'strike', key: 'x', shift: true },
48
- { tool: 'code', key: 'e' },
49
- { tool: 'link', key: 'k' },
50
- { tool: 'paragraph', digit: '0', alt: true },
51
- { tool: 'heading2', digit: '2', alt: true },
52
- { tool: 'heading3', digit: '3', alt: true },
53
- { tool: 'heading4', digit: '4', alt: true },
54
- { tool: 'orderedList', digit: '7', shift: true },
55
- { tool: 'bulletList', digit: '8', shift: true },
56
- { tool: 'quote', digit: '9', shift: true },
57
- { tool: 'codeBlock', key: 'c', alt: true },
58
- { tool: 'clear', key: '\\' },
59
- { tool: 'undo', key: 'z' },
60
- { tool: 'redo', key: 'z', shift: true },
61
- ];
62
- const MARKS = new Set(['bold', 'italic', 'underline', 'strike', 'code']);
63
- /** Tipos de `beforeinput` de exclusão → unidade e direção. */
64
- const DELETES = {
65
- deleteContentBackward: ['char', 'backward'],
66
- deleteContentForward: ['char', 'forward'],
67
- deleteWordBackward: ['word', 'backward'],
68
- deleteWordForward: ['word', 'forward'],
69
- deleteSoftLineBackward: ['line', 'backward'],
70
- deleteSoftLineForward: ['line', 'forward'],
71
- deleteHardLineBackward: ['line', 'backward'],
72
- deleteHardLineForward: ['line', 'forward'],
73
- deleteEntireSoftLine: ['line', 'backward'],
74
- };
75
- /** O que o `beforeinput` pede e o componente aplica no modelo (o resto fica com o navegador). */
76
- const FORMAT_INPUTS = {
77
- formatBold: 'bold',
78
- formatItalic: 'italic',
79
- formatUnderline: 'underline',
80
- formatStrikeThrough: 'strike',
81
- formatRemove: 'clear',
82
- insertOrderedList: 'orderedList',
83
- insertUnorderedList: 'bulletList',
84
- historyUndo: 'undo',
85
- historyRedo: 'redo',
25
+ /** Ícone de cada ferramenta da barra (literal aqui para o gerador de ícones registrar os desenhos desta pasta). */
26
+ const TOOL_ICONS = {
27
+ bold: 'bold',
28
+ italic: 'italic',
29
+ underline: 'underline',
30
+ strike: 'strikethrough',
31
+ code: 'code',
32
+ link: 'link',
33
+ bulletList: 'bullet-list',
34
+ orderedList: 'number-list',
35
+ quote: 'block-quote',
36
+ codeBlock: 'code-block',
37
+ clear: 'eraser',
38
+ undo: 'undo',
39
+ redo: 'redo',
86
40
  };
87
41
  /**
88
42
  * Campo de texto com formatação cujo valor é **HTML canônico e sanitizado** (`<p>`, `<h2>`, listas,
@@ -95,7 +49,8 @@ const FORMAT_INPUTS = {
95
49
  * blocos, atalhos, colar, soltar, desfazer) são interceptadas no `beforeinput` e aplicadas como
96
50
  * comandos puros no modelo, que redesenha o trecho e devolve a seleção. Digitação simples, IME,
97
51
  * corretor e ditado ficam com o navegador; o componente lê de volta só o bloco alterado, pelo mesmo
98
- * esquema do sanitizador. Sem `execCommand` e sem `innerHTML`.
52
+ * esquema do sanitizador. Sem `execCommand` e sem `innerHTML`. Tudo isso é o `RichTextEditor` de
53
+ * `@trismegisto/primitives/rich-text-editor` (o mesmo do React); o componente só liga o template a ele.
99
54
  *
100
55
  * **Esquema.** `tools` define a barra E o que o HTML pode conter: o que a pessoa não consegue criar
101
56
  * com as ferramentas ativas é simplificado na entrada (sem `underline`, um `<u>` vira texto).
@@ -155,7 +110,6 @@ class RichTextComponent extends HermesFormFieldBase {
155
110
  errorId = `${this.id}-error`;
156
111
  toolbarHintId = `${this.id}-toolbar-hint`;
157
112
  #host = inject(ElementRef);
158
- #document = inject(DOCUMENT);
159
113
  #browser = isPlatformBrowser(inject(PLATFORM_ID));
160
114
  #injector = inject(Injector);
161
115
  surfaceRef = viewChild('surface', ...(ngDevMode ? [{ debugName: "surfaceRef" }] : /* istanbul ignore next */ []));
@@ -163,33 +117,8 @@ class RichTextComponent extends HermesFormFieldBase {
163
117
  linkPanel = viewChild('linkPanel', ...(ngDevMode ? [{ debugName: "linkPanel" }] : /* istanbul ignore next */ []));
164
118
  caretAnchor = viewChild('caretAnchor', ...(ngDevMode ? [{ debugName: "caretAnchor" }] : /* istanbul ignore next */ []));
165
119
  bar = viewChild('bar', ...(ngDevMode ? [{ debugName: "bar" }] : /* istanbul ignore next */ []));
166
- // ── estado do documento ──
167
- #doc = signal(rtEmptyDoc(), ...(ngDevMode ? [{ debugName: "#doc" }] : /* istanbul ignore next */ []));
168
- #selection = signal(rtCollapsed({ block: 0, offset: 0 }), ...(ngDevMode ? [{ debugName: "#selection" }] : /* istanbul ignore next */ []));
169
- #stored = signal(null, ...(ngDevMode ? [{ debugName: "#stored" }] : /* istanbul ignore next */ []));
170
- #history = signal(richTextHistory(), ...(ngDevMode ? [{ debugName: "#history" }] : /* istanbul ignore next */ []));
171
- #platform = signal('other', ...(ngDevMode ? [{ debugName: "#platform" }] : /* istanbul ignore next */ []));
172
- /** Já há DOM da área (navegador, depois da hidratação). */
173
- #ready = signal(false, ...(ngDevMode ? [{ debugName: "#ready" }] : /* istanbul ignore next */ []));
174
- #surface = null;
175
- #observer = null;
176
- #docSchema = null;
177
- /** Último valor que o componente emitiu ou recebeu (valor igual não redesenha). */
178
- #lastValue = null;
179
120
  /** Último `value()` visto pelo efeito (o `writeValue` não passa pelo `model`). */
180
121
  #seenModel = '';
181
- #pendingValue = null;
182
- #composing = false;
183
- #inside = false;
184
- #focusedOnce = false;
185
- #plainPaste = false;
186
- #dragSource = null;
187
- #warnedType = false;
188
- #linkSelection = null;
189
- #menuByPointer = false;
190
- /** O foco que está chegando à área veio de um clique (o navegador põe o cursor no ponto clicado). */
191
- #pointerFocus = false;
192
- #overLimit = null;
193
122
  /** Esquema da instância (ferramentas, níveis de título, protocolos). */
194
123
  schema = computed(() => richTextSchema({
195
124
  tools: this.tools(),
@@ -197,53 +126,59 @@ class RichTextComponent extends HermesFormFieldBase {
197
126
  linkProtocols: this.linkProtocols(),
198
127
  allowRelativeLinks: this.allowRelativeLinks(),
199
128
  }), ...(ngDevMode ? [{ debugName: "schema" }] : /* istanbul ignore next */ []));
129
+ richText = computed(() => this.catalog.richText, ...(ngDevMode ? [{ debugName: "richText" }] : /* istanbul ignore next */ []));
130
+ showToolbar = computed(() => !this.readonly() && !this.hideToolbar() && this.toolbarItems().length > 0, ...(ngDevMode ? [{ debugName: "showToolbar" }] : /* istanbul ignore next */ []));
131
+ // Estado, eventos da área, foco e popover de link moram no controlador sem framework (o mesmo do React).
132
+ editor = new RichTextEditor({
133
+ options: () => untracked(() => ({
134
+ schema: this.schema(),
135
+ tools: this.tools(),
136
+ disabled: this.isDisabled(),
137
+ readonly: this.readonly(),
138
+ pasteMode: this.pasteMode(),
139
+ showToolbar: this.showToolbar(),
140
+ text: this.richText(),
141
+ })),
142
+ elements: () => ({
143
+ host: this.#host.nativeElement,
144
+ bar: this.bar()?.nativeElement ?? null,
145
+ linkPanel: this.linkPanel()?.nativeElement ?? null,
146
+ caretAnchor: this.caretAnchor()?.nativeElement ?? null,
147
+ }),
148
+ changed: () => this.#state.set(this.editor.getState()),
149
+ commit: (html) => {
150
+ this.#seenModel = html;
151
+ this.commit(html);
152
+ },
153
+ focusChange: (inside) => {
154
+ this.focusChange.emit(inside);
155
+ if (!inside)
156
+ this.markTouched();
157
+ },
158
+ showLinkPopover: (trigger) => this.linkPopover()?.show(trigger ?? undefined),
159
+ hideLinkPopover: () => this.linkPopover()?.close(),
160
+ afterRender: (fn) => afterNextRender(fn, { injector: this.#injector }),
161
+ devMode: () => typeof ngDevMode !== 'undefined' && !!ngDevMode,
162
+ });
163
+ #state = signal(this.editor.getState(), ...(ngDevMode ? [{ debugName: "#state" }] : /* istanbul ignore next */ []));
200
164
  /** Texto puro do documento. */
201
- plainText = computed(() => rtPlainText(this.#doc()), ...(ngDevMode ? [{ debugName: "plainText" }] : /* istanbul ignore next */ []));
165
+ plainText = computed(() => rtPlainText(this.#state().doc), ...(ngDevMode ? [{ debugName: "plainText" }] : /* istanbul ignore next */ []));
202
166
  /** Contagem do contador (grafemas, sem quebras de linha). */
203
- characterCount = computed(() => rtCharacterCount(this.#doc()), ...(ngDevMode ? [{ debugName: "characterCount" }] : /* istanbul ignore next */ []));
204
- canUndo = computed(() => this.#history().undo.length > 0, ...(ngDevMode ? [{ debugName: "canUndo" }] : /* istanbul ignore next */ []));
205
- canRedo = computed(() => this.#history().redo.length > 0, ...(ngDevMode ? [{ debugName: "canRedo" }] : /* istanbul ignore next */ []));
206
- richText = computed(() => this.catalog.richText, ...(ngDevMode ? [{ debugName: "richText" }] : /* istanbul ignore next */ []));
167
+ characterCount = computed(() => rtCharacterCount(this.#state().doc), ...(ngDevMode ? [{ debugName: "characterCount" }] : /* istanbul ignore next */ []));
168
+ canUndo = computed(() => this.#state().history.undo.length > 0, ...(ngDevMode ? [{ debugName: "canUndo" }] : /* istanbul ignore next */ []));
169
+ canRedo = computed(() => this.#state().history.redo.length > 0, ...(ngDevMode ? [{ debugName: "canRedo" }] : /* istanbul ignore next */ []));
207
170
  loadingLabel = computed(() => formatMessage(this.text.loading, { label: this.label() }), ...(ngDevMode ? [{ debugName: "loadingLabel" }] : /* istanbul ignore next */ []));
208
171
  toolbarLabel = computed(() => formatMessage(this.richText().toolbarLabel, { label: this.label() }), ...(ngDevMode ? [{ debugName: "toolbarLabel" }] : /* istanbul ignore next */ []));
209
172
  editable = computed(() => !this.readonly() && !this.isDisabled(), ...(ngDevMode ? [{ debugName: "editable" }] : /* istanbul ignore next */ []));
210
- blank = computed(() => (this.#ready() ? rtIsBlank(this.#doc()) : !this.value()), ...(ngDevMode ? [{ debugName: "blank" }] : /* istanbul ignore next */ []));
173
+ blank = computed(() => richTextEditorBlank(this.#state(), this.value()), ...(ngDevMode ? [{ debugName: "blank" }] : /* istanbul ignore next */ []));
211
174
  showPlaceholder = computed(() => !!this.placeholder() && !this.readonly() && this.blank(), ...(ngDevMode ? [{ debugName: "showPlaceholder" }] : /* istanbul ignore next */ []));
212
175
  /** Itens da barra, sem separadores sobrando nas pontas ou repetidos. */
213
- toolbarItems = computed(() => {
214
- const items = [];
215
- this.tools().forEach((tool, index) => {
216
- if (tool !== '|' && tool !== 'blockType' && !(tool in TOOLS))
217
- return;
218
- if (tool === '|' && (!items.length || items[items.length - 1].tool === '|'))
219
- return;
220
- if (tool !== '|' && items.some((item) => item.tool === tool))
221
- return;
222
- items.push({ key: `${tool}-${index}`, tool });
223
- });
224
- while (items.length && items[items.length - 1].tool === '|')
225
- items.pop();
226
- return items;
227
- }, ...(ngDevMode ? [{ debugName: "toolbarItems" }] : /* istanbul ignore next */ []));
228
- showToolbar = computed(() => !this.readonly() && !this.hideToolbar() && this.toolbarItems().length > 0, ...(ngDevMode ? [{ debugName: "showToolbar" }] : /* istanbul ignore next */ []));
176
+ toolbarItems = computed(() => richTextToolbarItems(this.tools()), ...(ngDevMode ? [{ debugName: "toolbarItems" }] : /* istanbul ignore next */ []));
229
177
  showCounterRow = computed(() => this.maxLength() !== null || this.showCounter(), ...(ngDevMode ? [{ debugName: "showCounterRow" }] : /* istanbul ignore next */ []));
230
- overLimit = computed(() => {
231
- const max = this.maxLength();
232
- return max !== null && this.characterCount() > max;
233
- }, ...(ngDevMode ? [{ debugName: "overLimit" }] : /* istanbul ignore next */ []));
234
- counterVisible = computed(() => {
235
- const max = this.maxLength();
236
- const count = this.characterCount();
237
- return max !== null ? formatMessage(this.richText().counter, { count, max }) : pluralMessage(this.richText().characters, count, this.catalog.meta.locale);
238
- }, ...(ngDevMode ? [{ debugName: "counterVisible" }] : /* istanbul ignore next */ []));
239
- counterSpoken = computed(() => {
240
- const max = this.maxLength();
241
- const count = this.characterCount();
242
- if (max === null)
243
- return pluralMessage(this.richText().characters, count, this.catalog.meta.locale);
244
- const base = formatMessage(this.catalog.input.counter, { count, max });
245
- return count > max ? `${base}. ${pluralMessage(this.richText().overLimit, count - max, this.catalog.meta.locale)}` : base;
246
- }, ...(ngDevMode ? [{ debugName: "counterSpoken" }] : /* istanbul ignore next */ []));
178
+ #counter = computed(() => richTextCounter(this.characterCount(), this.maxLength(), this.richText(), this.catalog.input.counter, this.catalog.meta.locale), ...(ngDevMode ? [{ debugName: "#counter" }] : /* istanbul ignore next */ []));
179
+ overLimit = computed(() => this.#counter().over, ...(ngDevMode ? [{ debugName: "overLimit" }] : /* istanbul ignore next */ []));
180
+ counterVisible = computed(() => this.#counter().visible, ...(ngDevMode ? [{ debugName: "counterVisible" }] : /* istanbul ignore next */ []));
181
+ counterSpoken = computed(() => this.#counter().spoken, ...(ngDevMode ? [{ debugName: "counterSpoken" }] : /* istanbul ignore next */ []));
247
182
  describedBy = computed(() => [
248
183
  this.hint() ? this.hintId : '',
249
184
  this.showCounterRow() ? this.counterId : '',
@@ -252,89 +187,24 @@ class RichTextComponent extends HermesFormFieldBase {
252
187
  ]
253
188
  .filter(Boolean)
254
189
  .join(' ') || null, ...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
255
- announcement = signal('', ...(ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []));
190
+ announcement = computed(() => this.#state().announcement, ...(ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []));
256
191
  /** Estado da seleção para a barra. */
257
- #info = computed(() => rtSelectionInfo(this.#state()), ...(ngDevMode ? [{ debugName: "#info" }] : /* istanbul ignore next */ []));
192
+ #info = computed(() => richTextEditorInfo(this.#state()), ...(ngDevMode ? [{ debugName: "#info" }] : /* istanbul ignore next */ []));
258
193
  /** Rótulo, dica, atalho, pressionado e desabilitado de cada botão. */
259
194
  toolState = computed(() => {
260
- const t = this.richText();
261
- const info = this.#info();
262
- const platform = this.#platform();
263
- const disabled = this.isDisabled();
264
- const keysOf = (tool) => (tool === 'redo' && platform !== 'mac' ? ['Mod+Shift+Z', 'Ctrl+Y'] : TOOLS[tool].keys);
195
+ const states = richTextEditorToolStates(this.#state(), this.isDisabled(), this.richText());
265
196
  const result = {};
266
- for (const tool of Object.keys(TOOLS)) {
267
- const meta = TOOLS[tool];
268
- const label = t[tool];
269
- const display = shortcutDisplayText([formatShortcut(meta.keys[0], platform)[0]]).replace(/ /g, platform === 'mac' ? '' : '+');
270
- let pressed = false;
271
- let off = disabled;
272
- if (MARKS.has(tool)) {
273
- pressed = !!(info.marks & RICH_TEXT_MARK_BITS[tool]);
274
- off ||= info.inCodeBlock || (tool !== 'code' && info.inInlineCode);
275
- }
276
- else if (tool === 'link') {
277
- pressed = info.href !== null;
278
- off ||= info.inCodeBlock;
279
- }
280
- else if (tool === 'bulletList')
281
- pressed = info.allBullet;
282
- else if (tool === 'orderedList')
283
- pressed = info.allOrdered;
284
- else if (tool === 'quote')
285
- pressed = info.allQuote;
286
- else if (tool === 'codeBlock')
287
- pressed = info.inCodeBlock;
288
- else if (tool === 'clear')
289
- off ||= !info.anyMarks;
290
- else if (tool === 'undo')
291
- off ||= !this.canUndo();
292
- else if (tool === 'redo')
293
- off ||= !this.canRedo();
294
- result[tool] = {
295
- label,
296
- tooltip: formatMessage(t.withShortcut, { label, keys: display }),
297
- aria: toAriaKeyShortcuts(keysOf(tool), platform),
298
- pressed,
299
- disabled: off,
300
- icon: meta.icon,
301
- toggle: meta.toggle,
302
- };
303
- }
197
+ for (const tool of Object.keys(states))
198
+ result[tool] = { ...states[tool], icon: TOOL_ICONS[tool] };
304
199
  return result;
305
200
  }, ...(ngDevMode ? [{ debugName: "toolState" }] : /* istanbul ignore next */ []));
306
- blockKindName = computed(() => {
307
- const t = this.richText();
308
- const kind = this.#info().blockKind;
309
- if (kind === 'mixed')
310
- return t.mixed;
311
- if (kind === 'code')
312
- return t.codeBlock;
313
- if (kind === 'paragraph')
314
- return t.paragraph;
315
- return formatMessage(t.heading, { level: kind.slice(-1) });
316
- }, ...(ngDevMode ? [{ debugName: "blockKindName" }] : /* istanbul ignore next */ []));
201
+ blockKindName = computed(() => richTextBlockKindName(this.#info().blockKind, this.richText()), ...(ngDevMode ? [{ debugName: "blockKindName" }] : /* istanbul ignore next */ []));
317
202
  blockTypeLabel = computed(() => formatMessage(this.richText().blockTypeCurrent, { value: this.blockKindName() }), ...(ngDevMode ? [{ debugName: "blockTypeLabel" }] : /* istanbul ignore next */ []));
318
- blockTypeItems = computed(() => {
319
- const t = this.richText();
320
- const kind = this.#info().blockKind;
321
- const items = [{ id: 'paragraph', label: t.paragraph, type: 'radio', group: 'rich-text-block', checked: kind === 'paragraph' }];
322
- for (const level of this.schema().headingLevels) {
323
- items.push({ id: `heading${level}`, label: formatMessage(t.heading, { level }), type: 'radio', group: 'rich-text-block', checked: kind === `heading${level}` });
324
- }
325
- return items;
326
- }, ...(ngDevMode ? [{ debugName: "blockTypeItems" }] : /* istanbul ignore next */ []));
203
+ blockTypeItems = computed(() => richTextBlockTypeItems(this.#info().blockKind, this.schema().headingLevels, this.richText()), ...(ngDevMode ? [{ debugName: "blockTypeItems" }] : /* istanbul ignore next */ []));
327
204
  // ── popover de link ──
328
- linkOpen = signal(false, ...(ngDevMode ? [{ debugName: "linkOpen" }] : /* istanbul ignore next */ []));
329
- linkUrl = signal('', ...(ngDevMode ? [{ debugName: "linkUrl" }] : /* istanbul ignore next */ []));
330
- linkText = signal('', ...(ngDevMode ? [{ debugName: "linkText" }] : /* istanbul ignore next */ []));
331
- linkError = signal('', ...(ngDevMode ? [{ debugName: "linkError" }] : /* istanbul ignore next */ []));
332
- linkEditing = signal(false, ...(ngDevMode ? [{ debugName: "linkEditing" }] : /* istanbul ignore next */ []));
333
- linkWithText = signal(false, ...(ngDevMode ? [{ debugName: "linkWithText" }] : /* istanbul ignore next */ []));
334
- linkHref = signal(null, ...(ngDevMode ? [{ debugName: "linkHref" }] : /* istanbul ignore next */ []));
335
- linkHeading = computed(() => (this.linkEditing() ? this.richText().linkEdit : this.richText().linkInsert), ...(ngDevMode ? [{ debugName: "linkHeading" }] : /* istanbul ignore next */ []));
205
+ link = computed(() => this.#state().link, ...(ngDevMode ? [{ debugName: "link" }] : /* istanbul ignore next */ []));
206
+ linkHeading = computed(() => (this.link().editing ? this.richText().linkEdit : this.richText().linkInsert), ...(ngDevMode ? [{ debugName: "linkHeading" }] : /* istanbul ignore next */ []));
336
207
  openLinkClass = buttonClass({ emphasis: 'minimal', intent: 'primary' });
337
- #state = computed(() => ({ doc: this.#doc(), selection: this.#selection(), stored: this.#stored() }), ...(ngDevMode ? [{ debugName: "#state" }] : /* istanbul ignore next */ []));
338
208
  constructor() {
339
209
  super();
340
210
  // Valor vindo do app por `[value]` (o `writeValue` do formulário chega por fora do `model`).
@@ -344,355 +214,51 @@ class RichTextComponent extends HermesFormFieldBase {
344
214
  if (value === this.#seenModel)
345
215
  return;
346
216
  this.#seenModel = value;
347
- this.#receive(value);
217
+ this.editor.receive(value);
348
218
  });
349
219
  });
350
220
  // Contador: anuncia uma vez ao cruzar o limite (para cima ou para baixo).
351
221
  effect(() => {
352
222
  const over = this.overLimit();
353
223
  const max = this.maxLength();
354
- untracked(() => {
355
- const previous = this.#overLimit;
356
- this.#overLimit = over;
357
- if (previous === null || previous === over || max === null)
358
- return;
359
- const t = this.richText();
360
- this.#announce(over ? pluralMessage(t.overLimit, this.characterCount() - max, this.catalog.meta.locale) : formatMessage(t.withinLimit, { max }));
361
- });
224
+ untracked(() => this.editor.limitChanged(over, max, this.characterCount(), this.catalog.meta.locale));
362
225
  });
363
226
  // Somente leitura e desabilitado mudam o comportamento dos links desenhados.
364
227
  effect(() => {
365
- const disabled = this.isDisabled();
366
- this.#ready();
367
- untracked(() => this.#syncLinks(disabled));
228
+ this.isDisabled();
229
+ this.#state().ready;
230
+ untracked(() => this.editor.syncLinks());
368
231
  });
369
- // Só no navegador, depois da hidratação: a área recebe nós criados pelo componente (nenhum nó do
232
+ // Só no navegador, depois da hidratação: a área recebe nós criados pelo controlador (nenhum nó do
370
233
  // template Angular dentro dela). Sai e volta do DOM com o `loading`: remonta no elemento novo.
371
234
  afterRenderEffect(() => {
372
235
  const root = this.surfaceRef()?.nativeElement;
373
236
  untracked(() => {
374
- if (root && root !== this.#surface?.root)
375
- this.#mount(root);
237
+ if (root && this.#browser)
238
+ this.editor.mount(root, this.value());
376
239
  });
377
240
  });
378
- inject(DestroyRef).onDestroy(() => {
379
- this.#observer?.disconnect();
380
- this.#document.removeEventListener('selectionchange', this.#onSelectionChange);
381
- this.#document.removeEventListener('keydown', this.#onDocumentKeydown, true);
382
- });
241
+ inject(DestroyRef).onDestroy(() => this.editor.destroy());
383
242
  }
384
243
  // ── API pública ──────────────────────────────────────────────────────────────────────────────
385
244
  /** Põe o foco na área, com o cursor onde estava (na primeira vez, no fim do texto). */
386
245
  focus() {
387
- if (this.isDisabled())
388
- return;
389
- const root = this.surfaceRef()?.nativeElement;
390
- if (!root)
391
- return;
392
- root.focus();
393
- this.#restoreSelection();
246
+ this.editor.focus();
394
247
  }
395
248
  /** Executa uma ferramenta sobre a seleção atual (o mesmo efeito do botão). */
396
249
  apply(tool) {
397
- if (!this.editable() || !this.#allowed(tool))
398
- return;
399
- this.#run(tool);
250
+ this.editor.apply(tool);
400
251
  }
401
252
  undo() {
402
- if (!this.editable())
403
- return;
404
- const result = historyUndo(this.#history(), this.#snapshot());
405
- if (!result)
406
- return;
407
- this.#history.set(result.history);
408
- this.#restore(result.snapshot);
253
+ this.editor.undo();
409
254
  }
410
255
  redo() {
411
- if (!this.editable())
412
- return;
413
- const result = historyRedo(this.#history(), this.#snapshot());
414
- if (!result)
415
- return;
416
- this.#history.set(result.history);
417
- this.#restore(result.snapshot);
256
+ this.editor.redo();
418
257
  }
419
258
  writeValue(value) {
420
- this.#receive(value);
421
- }
422
- // ── montagem e valor ─────────────────────────────────────────────────────────────────────────
423
- #mount(root) {
424
- if (!this.#browser)
425
- return;
426
- const remount = !!this.#surface;
427
- this.#observer?.disconnect();
428
- this.#surface = new RichTextSurface(root);
429
- if (typeof MutationObserver !== 'undefined') {
430
- this.#observer = new MutationObserver(() => undefined);
431
- this.#observer.observe(root, { childList: true, characterData: true, subtree: true });
432
- }
433
- if (remount) {
434
- this.#render();
435
- return;
436
- }
437
- this.#platform.set(detectShortcutPlatform());
438
- this.#docSchema = this.schema();
439
- const pending = this.#pendingValue;
440
- this.#pendingValue = null;
441
- const initial = pending ? pending.value : this.value();
442
- this.#doc.set(this.#parse(initial));
443
- this.#lastValue = typeof initial === 'string' ? initial : '';
444
- this.#surface.render(this.#doc());
445
- this.#selection.set(rtCollapsed(rtDocEnd(this.#doc())));
446
- this.#ready.set(true);
447
- this.#syncLinks(this.isDisabled());
448
- this.#observer?.takeRecords();
449
- this.#document.addEventListener('selectionchange', this.#onSelectionChange);
450
- // Captura no documento: a dica (tooltip) do botão focado também escuta o Esc ali e o consome.
451
- this.#document.addEventListener('keydown', this.#onDocumentKeydown, true);
452
- }
453
- #parse(value) {
454
- if (value === null || value === undefined || value === '')
455
- return rtEmptyDoc();
456
- if (typeof value !== 'string') {
457
- if (!this.#warnedType && typeof ngDevMode !== 'undefined' && ngDevMode) {
458
- console.warn('[hermes-rich-text] O valor precisa ser uma string de HTML; recebido', typeof value, '— tratado como vazio.');
459
- }
460
- this.#warnedType = true;
461
- return rtEmptyDoc();
462
- }
463
- return richTextParseHtml(value, this.schema());
464
- }
465
- /** Valor do app (`writeValue`/`[value]`): sanitiza, troca o documento e zera o histórico, sem emitir. */
466
- #receive(value) {
467
- if (!this.#ready()) {
468
- this.#pendingValue = { value };
469
- return;
470
- }
471
- if (typeof value === 'string' && value === this.#lastValue)
472
- return;
473
- if (this.#composing) {
474
- this.#pendingValue = { value };
475
- return;
476
- }
477
- const doc = this.#parse(value);
478
- this.#lastValue = typeof value === 'string' ? value : '';
479
- this.#docSchema = this.schema();
480
- this.#doc.set(doc);
481
- this.#stored.set(null);
482
- this.#history.set(richTextHistory());
483
- this.#render();
484
- const end = rtCollapsed(rtDocEnd(doc));
485
- this.#selection.set(end);
486
- if (this.#areaFocused())
487
- this.#writeSelection(end);
488
- }
489
- #render() {
490
- if (!this.#surface)
491
- return;
492
- this.#surface.render(this.#doc());
493
- this.#observer?.takeRecords();
494
- this.#syncLinks(this.isDisabled());
495
- }
496
- /** Links desenhados: no modo de edição e desabilitado não navegam nem entram no Tab. */
497
- #syncLinks(disabled) {
498
- const root = this.surfaceRef()?.nativeElement;
499
- if (!root)
500
- return;
501
- for (const link of Array.from(root.querySelectorAll('a'))) {
502
- if (disabled)
503
- link.setAttribute('tabindex', '-1');
504
- else
505
- link.removeAttribute('tabindex');
506
- }
507
- this.#observer?.takeRecords();
508
- }
509
- #emit() {
510
- const html = rtSerialize(this.#doc());
511
- if (html === this.#lastValue)
512
- return;
513
- this.#lastValue = html;
514
- this.#seenModel = html;
515
- this.commit(html);
259
+ this.editor.receive(value);
516
260
  }
517
- #snapshot() {
518
- return { doc: this.#doc(), selection: this.#selection() };
519
- }
520
- /**
521
- * Aplica um estado novo vindo de um comando: histórico (com o estado de antes), redesenho,
522
- * seleção (no navegador, se a área tem o foco) e valor.
523
- */
524
- #apply(next, kind = 'other') {
525
- const before = this.#snapshot();
526
- const changed = next.doc !== before.doc;
527
- if (changed)
528
- this.#history.update((h) => historyRecord(h, before, kind, Date.now()));
529
- this.#doc.set(next.doc);
530
- this.#selection.set(next.selection);
531
- this.#stored.set(next.stored);
532
- if (changed)
533
- this.#render();
534
- if (this.#areaFocused())
535
- this.#writeSelection(next.selection);
536
- if (changed)
537
- this.#emit();
538
- }
539
- #restore(snapshot) {
540
- this.#doc.set(snapshot.doc);
541
- this.#selection.set(snapshot.selection);
542
- this.#stored.set(null);
543
- this.#render();
544
- if (this.#areaFocused())
545
- this.#writeSelection(snapshot.selection);
546
- this.#emit();
547
- }
548
- /** Estado com a seleção lida agora do navegador (quando a área tem o foco). */
549
- #current() {
550
- this.#renormalize();
551
- if (this.#areaFocused())
552
- this.#readSelection();
553
- return this.#state();
554
- }
555
- /** O esquema mudou desde que o documento foi lido: re-normaliza antes da próxima edição. */
556
- #renormalize() {
557
- const schema = this.schema();
558
- if (!this.#surface || this.#docSchema === schema)
559
- return;
560
- this.#docSchema = schema;
561
- const doc = richTextParseHtml(rtSerialize(this.#doc()), schema);
562
- this.#doc.set(doc);
563
- this.#selection.update((sel) => ({ anchor: rtClampPos(doc, sel.anchor), focus: rtClampPos(doc, sel.focus) }));
564
- this.#render();
565
- }
566
- // ── seleção ──────────────────────────────────────────────────────────────────────────────────
567
- #areaFocused() {
568
- const root = this.surfaceRef()?.nativeElement;
569
- return !!root && this.#document.activeElement === root;
570
- }
571
- #domSelection() {
572
- return this.#document.getSelection?.() ?? null;
573
- }
574
- /** Lê a seleção do navegador; `true` se ela está na área. */
575
- #readSelection() {
576
- const read = this.#surface?.readSelection(this.#domSelection(), this.#doc());
577
- if (!read)
578
- return false;
579
- if (!rtSameSelection(read, this.#selection())) {
580
- this.#selection.set(read);
581
- this.#stored.set(null);
582
- this.#history.update(historyBreak);
583
- }
584
- return true;
585
- }
586
- #writeSelection(selection) {
587
- this.#surface?.writeSelection(this.#domSelection(), selection);
588
- }
589
- #restoreSelection() {
590
- const selection = this.#focusedOnce ? this.#selection() : rtCollapsed(rtDocEnd(this.#doc()));
591
- this.#focusedOnce = true;
592
- this.#selection.set(selection);
593
- this.#writeSelection(selection);
594
- }
595
- #onSelectionChange = () => {
596
- if (this.#composing || !this.#areaFocused())
597
- return;
598
- this.#readSelection();
599
- };
600
- // ── comandos ─────────────────────────────────────────────────────────────────────────────────
601
- #allowed(tool) {
602
- const tools = this.tools();
603
- if (tool === 'paragraph')
604
- return tools.includes('blockType');
605
- if (tool.startsWith('heading'))
606
- return tools.includes('blockType') && this.schema().headingLevels.includes(Number(tool.slice(7)));
607
- return tools.includes(tool);
608
- }
609
- #toolDisabled(tool) {
610
- if (tool in TOOLS)
611
- return this.toolState()[tool].disabled;
612
- return this.isDisabled();
613
- }
614
- /** Executa a ferramenta; devolve o estado ligado/desligado para o anúncio (ou `null`). */
615
- #run(tool) {
616
- const state = this.#current();
617
- switch (tool) {
618
- case 'bold':
619
- case 'italic':
620
- case 'underline':
621
- case 'strike':
622
- case 'code': {
623
- this.#apply(rtToggleMark(state, tool));
624
- return !!(this.#info().marks & RICH_TEXT_MARK_BITS[tool]);
625
- }
626
- case 'link':
627
- this.#openLink(state);
628
- return null;
629
- case 'bulletList':
630
- this.#apply(rtToggleList(state, 'bullet'));
631
- return this.#info().allBullet;
632
- case 'orderedList':
633
- this.#apply(rtToggleList(state, 'ordered'));
634
- return this.#info().allOrdered;
635
- case 'quote':
636
- this.#apply(rtToggleQuote(state));
637
- return this.#info().allQuote;
638
- case 'codeBlock':
639
- this.#apply(rtToggleCodeBlock(state));
640
- return this.#info().inCodeBlock;
641
- case 'clear':
642
- this.#apply(rtClearMarks(state));
643
- return null;
644
- case 'undo':
645
- this.undo();
646
- return null;
647
- case 'redo':
648
- this.redo();
649
- return null;
650
- case 'paragraph':
651
- this.#apply(rtSetBlockType(state, 'paragraph'));
652
- return true;
653
- default: {
654
- const level = Number(tool.slice(7));
655
- this.#apply(rtSetBlockType(state, level));
656
- return true;
657
- }
658
- }
659
- }
660
- #toolLabel(tool) {
661
- const t = this.richText();
662
- if (tool === 'paragraph')
663
- return t.paragraph;
664
- if (tool.startsWith('heading'))
665
- return formatMessage(t.heading, { level: tool.slice(7) });
666
- return t[tool];
667
- }
668
- #announce(message) {
669
- // Texto igual ao anterior não seria lido de novo: alterna um espaço invisível no fim.
670
- this.announcement.update((current) => (current === message ? `${message} ` : message));
671
- }
672
- // ── barra ────────────────────────────────────────────────────────────────────────────────────
673
- /** Ponteiro na barra não tira o foco nem a seleção da área. */
674
- onBarPointerDown(event) {
675
- const target = event.target;
676
- if (target?.closest('input, textarea'))
677
- return;
678
- this.#menuByPointer = !!target?.closest('hm-menu-button') && this.#areaFocused();
679
- if (this.#areaFocused())
680
- this.#readSelection();
681
- event.preventDefault();
682
- }
683
- /** `Esc` com o foco na barra (menu e popover fechados: o foco estaria neles) volta à área. */
684
- #onDocumentKeydown = (event) => {
685
- if (event.key !== 'Escape')
686
- return;
687
- const bar = this.bar()?.nativeElement;
688
- const active = this.#document.activeElement;
689
- if (!bar || !active || !bar.contains(active))
690
- return;
691
- if (bar.querySelector('[aria-expanded="true"]'))
692
- return;
693
- event.preventDefault();
694
- this.focus();
695
- };
261
+ // ── template ─────────────────────────────────────────────────────────────────────────────────
696
262
  /** Estado do botão de uma ferramenta (no template, `item.tool` já não é separador nem menu). */
697
263
  stateOf(tool) {
698
264
  return this.toolState()[tool];
@@ -701,572 +267,28 @@ class RichTextComponent extends HermesFormFieldBase {
701
267
  const tool = item;
702
268
  if (!this.editable())
703
269
  return;
704
- this.#run(tool);
270
+ this.editor.onTool(tool);
705
271
  // O botão de alternância inverte o próprio estado no clique; quem manda é a seleção.
706
272
  button.pressed.set(this.toolState()[tool].pressed);
707
273
  }
708
274
  onBlockType(change) {
709
- if (!this.editable() || !change.checked)
710
- return;
711
- const tool = change.id;
712
- if (!this.#allowed(tool))
713
- return;
714
- this.#run(tool);
715
- if (this.#menuByPointer) {
716
- this.#menuByPointer = false;
717
- // O menu devolve o foco ao gatilho ao fechar; quem usou o ponteiro volta à área depois disso.
718
- afterNextRender(() => this.focus(), { injector: this.#injector });
719
- }
720
- }
721
- #focusToolbar() {
722
- const bar = this.bar()?.nativeElement;
723
- if (!bar)
724
- return false;
725
- const items = Array.from(bar.querySelectorAll('button')).filter((b) => !b.disabled);
726
- const target = items.find((item) => item.getAttribute('tabindex') === '0') ?? items[0];
727
- if (!target)
728
- return false;
729
- target.focus();
730
- return true;
275
+ this.editor.onBlockType(change);
731
276
  }
732
- // ── foco ─────────────────────────────────────────────────────────────────────────────────────
733
277
  onFocusIn() {
734
- if (this.#inside)
735
- return;
736
- this.#inside = true;
737
- this.focusChange.emit(true);
278
+ this.editor.onFocusIn();
738
279
  }
739
280
  onFocusOut(event) {
740
- if (this.#isInside(event.relatedTarget))
741
- return;
742
- this.#inside = false;
743
- this.#history.update(historyBreak);
744
- this.focusChange.emit(false);
745
- this.markTouched();
746
- }
747
- #isInside(node) {
748
- if (!node)
749
- return false;
750
- if (this.#host.nativeElement.contains(node))
751
- return true;
752
- if (this.linkPanel()?.nativeElement.contains(node))
753
- return true;
754
- const menuOpen = !!this.#host.nativeElement.querySelector('.hm-menu-button[aria-expanded="true"]');
755
- return menuOpen && !!node.closest?.('[role="menu"]');
756
- }
757
- onAreaPointerDown() {
758
- this.#pointerFocus = !this.#areaFocused();
759
- }
760
- onAreaFocus() {
761
- if (this.#pointerFocus) {
762
- this.#pointerFocus = false;
763
- this.#focusedOnce = true;
764
- return;
765
- }
766
- this.#restoreSelection();
281
+ this.editor.onFocusOut(event);
767
282
  }
768
283
  /** Clique no rótulo foca a área (o rótulo não é `<label for>`: a área é um `div`). */
769
284
  onLabelClick() {
770
285
  this.focus();
771
286
  }
772
- /** Clique no respiro da moldura (fora do texto e da barra) foca a área. */
773
- onFrameMouseDown(event) {
774
- const target = event.target;
775
- if (!target || target.closest('.hm-rich-text__bar') || target.closest('.hm-rich-text__area'))
776
- return;
777
- if (this.isDisabled())
778
- return;
779
- event.preventDefault();
780
- this.focus();
781
- }
782
- // ── área: teclado ────────────────────────────────────────────────────────────────────────────
783
- onKeydown(event) {
784
- if (event.isComposing || event.keyCode === 229)
785
- return;
786
- if (event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey && event.key === 'F10') {
787
- if (this.showToolbar() && !this.isDisabled() && this.#focusToolbar())
788
- event.preventDefault();
789
- return;
790
- }
791
- if (!this.editable())
792
- return;
793
- const platform = this.#platform();
794
- const mod = platform === 'mac' ? event.metaKey : event.ctrlKey;
795
- if (mod && event.shiftKey && !event.altKey && (event.key.toLowerCase() === 'v' || event.code === 'KeyV')) {
796
- // O navegador cola em seguida (evento `paste`); sem colagem, o pedido expira.
797
- this.#plainPaste = true;
798
- setTimeout(() => (this.#plainPaste = false), 500);
799
- return;
800
- }
801
- const tool = this.#matchShortcut(event, platform);
802
- if (tool) {
803
- if (!this.#allowed(tool) || this.#toolDisabled(tool))
804
- return;
805
- event.preventDefault();
806
- const on = this.#run(tool);
807
- if (on !== null && tool !== 'undo' && tool !== 'redo') {
808
- const t = this.richText();
809
- this.#announce(formatMessage(on ? t.toggledOn : t.toggledOff, { label: this.#toolLabel(tool) }));
810
- }
811
- return;
812
- }
813
- if (event.key === 'ArrowDown' && !event.shiftKey && !event.altKey && !event.ctrlKey && !event.metaKey) {
814
- const next = rtExitAtEnd(this.#current());
815
- if (next) {
816
- event.preventDefault();
817
- this.#apply(next);
818
- }
819
- }
820
- }
821
- #matchShortcut(event, platform) {
822
- const key = (event.key ?? '').toLowerCase();
823
- if (platform !== 'mac' && event.ctrlKey && !event.metaKey && !event.altKey && !event.shiftKey && (key === 'y' || event.code === 'KeyY'))
824
- return 'redo';
825
- const mod = platform === 'mac' ? event.metaKey : event.ctrlKey;
826
- const other = platform === 'mac' ? event.ctrlKey : event.metaKey;
827
- if (!mod || other)
828
- return null;
829
- // AltGr (Ctrl+Alt no Windows) digita caractere (² e ³ no ABNT2): nenhum atalho com Alt dispara.
830
- if (event.altKey && event.getModifierState?.('AltGraph'))
831
- return null;
832
- for (const shortcut of SHORTCUTS) {
833
- if (!!shortcut.alt !== event.altKey)
834
- continue;
835
- if (shortcut.key === '\\') {
836
- if (key === '\\')
837
- return shortcut.tool;
838
- continue;
839
- }
840
- if (!!shortcut.shift !== event.shiftKey)
841
- continue;
842
- if (shortcut.digit !== undefined) {
843
- if (event.code === `Digit${shortcut.digit}`)
844
- return shortcut.tool;
845
- continue;
846
- }
847
- if (key === shortcut.key)
848
- return shortcut.tool;
849
- if (!/^[a-z]$/.test(key) && event.code === `Key${shortcut.key.toUpperCase()}`)
850
- return shortcut.tool;
851
- }
852
- return null;
853
- }
854
- // ── área: beforeinput / input ────────────────────────────────────────────────────────────────
855
- onBeforeInput(event) {
856
- if (!this.#surface)
857
- return;
858
- if (!this.editable()) {
859
- event.preventDefault();
860
- return;
861
- }
862
- const type = event.inputType;
863
- if (type === 'insertCompositionText' || type === 'deleteCompositionText' || type === 'insertFromComposition' || type === 'insertReplacementText')
864
- return;
865
- if (!event.cancelable)
866
- return;
867
- if (type === 'insertText') {
868
- const state = this.#current();
869
- const anchorInLeaf = this.#surface.leafIndexOf(this.#domSelection()?.anchorNode ?? null) >= 0;
870
- // Texto simples com o cursor num bloco fica com o navegador (IME, corretor, teclado virtual).
871
- if (rtIsCollapsed(state.selection) && state.stored === null && anchorInLeaf)
872
- return;
873
- event.preventDefault();
874
- this.#apply(rtInsertText(state, event.data ?? ''), 'typing');
875
- return;
876
- }
877
- const format = FORMAT_INPUTS[type];
878
- if (format) {
879
- event.preventDefault();
880
- if (format === 'undo')
881
- this.undo();
882
- else if (format === 'redo')
883
- this.redo();
884
- else if (this.#allowed(format) && !this.#toolDisabled(format))
885
- this.#run(format);
886
- return;
887
- }
888
- const remove = DELETES[type];
889
- if (remove) {
890
- event.preventDefault();
891
- this.#delete(event, remove[0], remove[1]);
892
- return;
893
- }
894
- switch (type) {
895
- case 'insertParagraph':
896
- event.preventDefault();
897
- this.#apply(rtSplitBlock(this.#current()));
898
- return;
899
- case 'insertLineBreak':
900
- event.preventDefault();
901
- this.#apply(rtInsertLineBreak(this.#current()));
902
- return;
903
- case 'insertFromPaste':
904
- case 'insertFromPasteAsQuotation':
905
- event.preventDefault();
906
- this.#paste(event.dataTransfer, this.#plainPaste || this.pasteMode() === 'plain');
907
- this.#plainPaste = false;
908
- return;
909
- case 'insertFromDrop':
910
- event.preventDefault();
911
- this.#drop(event);
912
- return;
913
- case 'deleteByDrag':
914
- // A remoção da origem é feita junto com a inserção (um passo só).
915
- event.preventDefault();
916
- return;
917
- case 'deleteByCut':
918
- case 'deleteContent':
919
- event.preventDefault();
920
- this.#apply(rtDeleteSelection(this.#current()));
921
- return;
922
- case 'insertTranspose':
923
- event.preventDefault();
924
- this.#apply(rtTranspose(this.#current()));
925
- return;
926
- case 'insertFromYank':
927
- event.preventDefault();
928
- this.#apply(rtInsertText(this.#current(), event.data ?? ''));
929
- return;
930
- case 'insertLink': {
931
- event.preventDefault();
932
- if (this.#allowed('link') && !this.#toolDisabled('link'))
933
- this.#openLink(this.#current());
934
- return;
935
- }
936
- default:
937
- // Formatação e estrutura que o esquema não tem (alinhamento, cor, recuo, linha horizontal…).
938
- if (type.startsWith('format') || type.startsWith('insert'))
939
- event.preventDefault();
940
- }
941
- }
942
- #delete(event, unit, direction) {
943
- const state = this.#current();
944
- const surface = this.#surface;
945
- const sel = state.selection;
946
- if (rtIsCollapsed(sel)) {
947
- const pos = sel.focus;
948
- const block = state.doc[pos.block];
949
- const atEdge = direction === 'backward' ? pos.offset === 0 : pos.offset === rtBlockText(block).length;
950
- if (!atEdge && unit !== 'char') {
951
- // O navegador sabe onde termina a palavra/linha visual: usa o alcance que ele calculou.
952
- const range = event.getTargetRanges?.()[0];
953
- const from = range ? surface.pointToPos(range.startContainer, range.startOffset, state.doc) : null;
954
- const to = range ? surface.pointToPos(range.endContainer, range.endOffset, state.doc) : null;
955
- if (from && to && from.block === to.block && from.block === pos.block && from.offset !== to.offset) {
956
- const result = rtDeleteRange(state.doc, from, to);
957
- this.#apply({ doc: result.doc, selection: rtCollapsed(result.pos), stored: null });
958
- return;
959
- }
960
- }
961
- }
962
- this.#apply(direction === 'backward' ? rtDeleteBackward(state, unit) : rtDeleteForward(state, unit));
963
- }
964
- onInput(event) {
965
- if (this.#composing || event.isComposing)
966
- return;
967
- const type = event.inputType ?? '';
968
- this.#readBack(type === 'insertText' || type === 'insertCompositionText' ? 'typing' : 'other');
969
- }
970
- onCompositionStart() {
971
- this.#composing = true;
972
- }
973
- onCompositionEnd() {
974
- this.#composing = false;
975
- this.#readBack('typing');
976
- const pending = this.#pendingValue;
977
- if (pending) {
978
- this.#pendingValue = null;
979
- this.#receive(pending.value);
980
- }
981
- }
982
- /**
983
- * Lê de volta o que o navegador escreveu: só os blocos mexidos (pelos registros de mutação e pela
984
- * seleção), convertidos pelo esquema. Estrutura quebrada (bloco criado ou apagado pelo navegador)
985
- * relê a área inteira.
986
- */
987
- #readBack(kind) {
988
- const surface = this.#surface;
989
- if (!surface || !this.editable())
990
- return;
991
- const before = this.#snapshot();
992
- const doc = before.doc;
993
- const schema = this.schema();
994
- const selection = this.#domSelection();
995
- const records = this.#observer?.takeRecords() ?? [];
996
- if (!surface.isIntact(doc)) {
997
- const rough = surface.roughPos(selection?.focusNode ?? null, selection?.focusOffset ?? 0);
998
- const next = richTextFromDom(surface.root, schema, 'readback');
999
- const pos = rtClampPos(next, rough ?? rtDocEnd(next));
1000
- this.#history.update((h) => historyRecord(h, before, 'other', Date.now()));
1001
- this.#doc.set(next);
1002
- this.#selection.set(rtCollapsed(pos));
1003
- this.#render();
1004
- this.#writeSelection(rtCollapsed(pos));
1005
- this.#emit();
1006
- return;
1007
- }
1008
- const dirty = new Set();
1009
- for (const record of records) {
1010
- const index = surface.leafIndexOf(record.target);
1011
- if (index >= 0)
1012
- dirty.add(index);
1013
- }
1014
- for (const node of [selection?.anchorNode ?? null, selection?.focusNode ?? null]) {
1015
- const index = surface.leafIndexOf(node);
1016
- if (index >= 0)
1017
- dirty.add(index);
1018
- }
1019
- const updated = doc.slice();
1020
- let changed = false;
1021
- const redraw = [];
1022
- for (const index of dirty) {
1023
- const block = surface.readBlock(index, doc[index], schema);
1024
- if (rtBlockText(block) === rtBlockText(doc[index]) && rtSerialize([block]) === rtSerialize([doc[index]]))
1025
- continue;
1026
- updated[index] = block;
1027
- changed = true;
1028
- if (surface.differs(index, block))
1029
- redraw.push(index);
1030
- else
1031
- surface.adopt(index, block);
1032
- }
1033
- const next = changed ? updated : doc;
1034
- const read = surface.readSelection(selection, next) ?? before.selection;
1035
- if (changed) {
1036
- this.#history.update((h) => historyRecord(h, before, kind, Date.now()));
1037
- this.#doc.set(next);
1038
- }
1039
- this.#selection.set(read);
1040
- this.#stored.set(null);
1041
- if (redraw.length) {
1042
- for (const index of redraw)
1043
- surface.replace(index, next[index]);
1044
- this.#observer?.takeRecords();
1045
- this.#syncLinks(this.isDisabled());
1046
- this.#writeSelection(read);
1047
- }
1048
- if (changed)
1049
- this.#emit();
1050
- }
1051
- // ── colar, soltar, copiar, recortar ──────────────────────────────────────────────────────────
1052
- onPaste(event) {
1053
- if (!this.editable())
1054
- return;
1055
- event.preventDefault();
1056
- this.#paste(event.clipboardData, this.#plainPaste || this.pasteMode() === 'plain');
1057
- this.#plainPaste = false;
1058
- }
1059
- /** Fragmento do que veio na área de transferência (HTML formatado, ou texto puro), já sanitizado. */
1060
- #fragment(data, plain, intoCode) {
1061
- const html = plain ? '' : data.getData('text/html');
1062
- const text = data.getData('text/plain');
1063
- if (intoCode) {
1064
- const literal = text || (html ? rtPlainText(richTextParseHtml(html, this.schema())) : '');
1065
- return literal ? [rtBlock('code', [rtRun(literal.replace(/\r\n?/g, '\n'))])] : null;
1066
- }
1067
- if (html.trim())
1068
- return richTextParseHtml(html, this.schema());
1069
- if (text)
1070
- return rtTextToDoc(text);
1071
- // Só arquivos (imagem etc.): ignorados.
1072
- return null;
1073
- }
1074
- #paste(data, plain) {
1075
- if (!data)
1076
- return;
1077
- const state = this.#current();
1078
- const text = data.getData('text/plain').trim();
1079
- if (!rtIsCollapsed(state.selection) && text && !/\s/.test(text) && this.tools().includes('link') && !this.#toolDisabled('link')) {
1080
- const href = normalizeRichTextUrl(text, this.schema());
1081
- if (href) {
1082
- this.#apply(rtSetLink(state, href));
1083
- return;
1084
- }
1085
- }
1086
- const intoCode = state.doc[rtSelectionFrom(state.selection).block].type === 'code';
1087
- const fragment = this.#fragment(data, plain, intoCode);
1088
- if (fragment)
1089
- this.#apply(rtInsertFragment(state, fragment));
1090
- }
1091
- onCopy(event) {
1092
- this.#copy(event);
1093
- }
1094
- onCut(event) {
1095
- if (!this.#copy(event) || !this.editable())
1096
- return;
1097
- this.#apply(rtDeleteSelection(this.#state()));
1098
- }
1099
- /** Põe na área de transferência o HTML canônico da seleção e o texto puro. */
1100
- #copy(event) {
1101
- if (!this.#surface || !event.clipboardData)
1102
- return false;
1103
- const selection = this.#surface.readSelection(this.#domSelection(), this.#doc());
1104
- if (!selection || rtIsCollapsed(selection))
1105
- return false;
1106
- this.#selection.set(selection);
1107
- const slice = rtSliceDoc(this.#doc(), rtSelectionFrom(selection), rtSelectionTo(selection));
1108
- event.preventDefault();
1109
- event.clipboardData.setData('text/html', rtSerialize(slice));
1110
- event.clipboardData.setData('text/plain', rtPlainText(slice));
1111
- return true;
1112
- }
1113
- onDragStart(event) {
1114
- if (!this.#surface)
1115
- return;
1116
- const selection = this.#surface.readSelection(this.#domSelection(), this.#doc());
1117
- if (!selection || rtIsCollapsed(selection) || !event.dataTransfer)
1118
- return;
1119
- this.#dragSource = this.editable() ? selection : null;
1120
- const slice = rtSliceDoc(this.#doc(), rtSelectionFrom(selection), rtSelectionTo(selection));
1121
- event.dataTransfer.setData('text/html', rtSerialize(slice));
1122
- event.dataTransfer.setData('text/plain', rtPlainText(slice));
1123
- }
1124
- onDragEnd() {
1125
- this.#dragSource = null;
1126
- }
1127
- /** Soltar só arquivos não insere nada (nem a imagem nativa do navegador). */
1128
- onDrop(event) {
1129
- const types = Array.from(event.dataTransfer?.types ?? []);
1130
- if (!this.editable() || !types.some((t) => t === 'text/plain' || t === 'text/html'))
1131
- event.preventDefault();
1132
- }
1133
- #drop(event) {
1134
- const surface = this.#surface;
1135
- const doc = this.#doc();
1136
- const range = event.getTargetRanges?.()[0];
1137
- const target = (range && surface.pointToPos(range.startContainer, range.startOffset, doc)) ?? this.#current().selection.focus;
1138
- const source = this.#dragSource;
1139
- this.#dragSource = null;
1140
- if (source) {
1141
- const from = rtSelectionFrom(source);
1142
- const to = rtSelectionTo(source);
1143
- const inside = (target.block > from.block || (target.block === from.block && target.offset > from.offset)) &&
1144
- (target.block < to.block || (target.block === to.block && target.offset < to.offset));
1145
- if (inside)
1146
- return;
1147
- const fragment = rtSliceDoc(doc, from, to);
1148
- const removed = rtDeleteRange(doc, from, to);
1149
- const at = rtMapThroughDelete(target, from, to);
1150
- this.#apply(rtInsertFragment({ doc: removed.doc, selection: rtCollapsed(at), stored: null }, fragment));
1151
- return;
1152
- }
1153
- if (!event.dataTransfer)
1154
- return;
1155
- const intoCode = doc[target.block].type === 'code';
1156
- const fragment = this.#fragment(event.dataTransfer, this.pasteMode() === 'plain', intoCode);
1157
- if (fragment)
1158
- this.#apply(rtInsertFragment({ doc, selection: rtCollapsed(target), stored: null }, fragment));
1159
- }
1160
- /** No modo de edição (e desabilitado), clicar num link só posiciona o cursor. */
1161
- onAreaClick(event) {
1162
- if (this.readonly() && !this.isDisabled())
1163
- return;
1164
- if (event.target?.closest?.('a'))
1165
- event.preventDefault();
1166
- }
1167
- // ── link ─────────────────────────────────────────────────────────────────────────────────────
1168
- #openLink(state) {
1169
- const popover = this.linkPopover();
1170
- if (!popover)
1171
- return;
1172
- const info = rtSelectionInfo(state);
1173
- const href = info.href;
1174
- this.#linkSelection = state.selection;
1175
- this.linkEditing.set(href !== null);
1176
- this.linkHref.set(href);
1177
- this.linkUrl.set(href ?? '');
1178
- this.linkText.set('');
1179
- this.linkWithText.set(rtIsCollapsed(state.selection) && href === null);
1180
- this.linkError.set('');
1181
- const button = this.bar()?.nativeElement.querySelector('[data-tool="link"] button');
1182
- const trigger = (this.showToolbar() && button) || this.#placeCaretAnchor();
1183
- popover.show(trigger ?? undefined);
1184
- }
1185
- /** Âncora invisível na posição do cursor (barra oculta): o popover abre ali. */
1186
- #placeCaretAnchor() {
1187
- const anchor = this.caretAnchor()?.nativeElement;
1188
- const root = this.surfaceRef()?.nativeElement;
1189
- if (!anchor || !root)
1190
- return root ?? null;
1191
- const container = anchor.offsetParent;
1192
- const selection = this.#domSelection();
1193
- let rect = null;
1194
- if (selection && selection.rangeCount && root.contains(selection.anchorNode))
1195
- rect = selection.getRangeAt(0).getBoundingClientRect?.() ?? null;
1196
- if (!rect || (!rect.width && !rect.height && !rect.left && !rect.top))
1197
- rect = root.getBoundingClientRect();
1198
- const base = container?.getBoundingClientRect() ?? { left: 0, top: 0 };
1199
- anchor.style.left = `${rect.left - base.left}px`;
1200
- anchor.style.top = `${rect.top - base.top}px`;
1201
- anchor.style.height = `${rect.height}px`;
1202
- return anchor;
1203
- }
1204
- onLinkKeydown(event) {
1205
- if (event.key === 'Escape') {
1206
- event.preventDefault();
1207
- event.stopPropagation();
1208
- this.cancelLink();
1209
- }
1210
- else if (event.key === 'Enter' && event.target?.localName === 'input') {
1211
- event.preventDefault();
1212
- this.applyLink();
1213
- }
1214
- }
1215
287
  onLinkOpenChange(open) {
1216
- this.linkOpen.set(open);
1217
- }
1218
- applyLink() {
1219
- const t = this.richText();
1220
- const raw = this.linkUrl().trim();
1221
- if (!raw) {
1222
- this.linkError.set(t.linkRequired);
1223
- return;
1224
- }
1225
- const schema = this.schema();
1226
- const href = normalizeRichTextUrl(raw, schema);
1227
- if (!href) {
1228
- this.linkError.set(formatMessage(t.linkInvalid, { protocols: schema.protocols.join(', ') }));
1229
- return;
1230
- }
1231
- const state = this.#linkState();
1232
- this.#closeLink();
1233
- this.#apply(rtSetLink(state, href, this.linkWithText() ? this.linkText() : undefined));
1234
- this.#focusArea();
1235
- }
1236
- removeLink() {
1237
- const state = this.#linkState();
1238
- this.#closeLink();
1239
- this.#apply(rtRemoveLink(state));
1240
- this.#focusArea();
1241
- }
1242
- cancelLink() {
1243
- const selection = this.#linkSelection;
1244
- this.#closeLink();
1245
- if (selection)
1246
- this.#selection.set(selection);
1247
- this.#focusArea();
1248
- }
1249
- #linkState() {
1250
- const doc = this.#doc();
1251
- const selection = this.#linkSelection ?? this.#selection();
1252
- return { doc, selection: { anchor: rtClampPos(doc, selection.anchor), focus: rtClampPos(doc, selection.focus) }, stored: this.#stored() };
1253
- }
1254
- #closeLink() {
1255
- this.linkPopover()?.close();
1256
- this.linkOpen.set(false);
1257
- this.#linkSelection = null;
1258
- }
1259
- /** Foco de volta na área com a seleção do modelo. */
1260
- #focusArea() {
1261
- const root = this.surfaceRef()?.nativeElement;
1262
- if (!root)
1263
- return;
1264
- this.#focusedOnce = true;
1265
- root.focus();
1266
- this.#writeSelection(this.#selection());
288
+ this.editor.onLinkOpenChange(open);
1267
289
  }
1268
290
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: RichTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1269
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: RichTextComponent, isStandalone: true, selector: "hm-rich-text", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, labelHidden: { classPropertyName: "labelHidden", publicName: "labelHidden", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, tools: { classPropertyName: "tools", publicName: "tools", isSignal: true, isRequired: false, transformFunction: null }, headingLevels: { classPropertyName: "headingLevels", publicName: "headingLevels", isSignal: true, isRequired: false, transformFunction: null }, hideToolbar: { classPropertyName: "hideToolbar", publicName: "hideToolbar", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, maxRows: { classPropertyName: "maxRows", publicName: "maxRows", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, showCounter: { classPropertyName: "showCounter", publicName: "showCounter", isSignal: true, isRequired: false, transformFunction: null }, pasteMode: { classPropertyName: "pasteMode", publicName: "pasteMode", isSignal: true, isRequired: false, transformFunction: null }, linkProtocols: { classPropertyName: "linkProtocols", publicName: "linkProtocols", isSignal: true, isRequired: false, transformFunction: null }, allowRelativeLinks: { classPropertyName: "allowRelativeLinks", publicName: "allowRelativeLinks", isSignal: true, isRequired: false, transformFunction: null }, spellcheck: { classPropertyName: "spellcheck", publicName: "spellcheck", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", focusChange: "focusChange" }, host: { listeners: { "focusin": "onFocusIn()", "focusout": "onFocusOut($event)" }, classAttribute: "hm-rich-text" }, viewQueries: [{ propertyName: "surfaceRef", first: true, predicate: ["surface"], descendants: true, isSignal: true }, { propertyName: "linkPopover", first: true, predicate: ["linkPopover"], descendants: true, isSignal: true }, { propertyName: "linkPanel", first: true, predicate: ["linkPanel"], descendants: true, isSignal: true }, { propertyName: "caretAnchor", first: true, predicate: ["caretAnchor"], descendants: true, isSignal: true }, { propertyName: "bar", first: true, predicate: ["bar"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"hm-rich-text__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <span class=\"hm-rich-text__label\" [id]=\"labelId\" (click)=\"onLabelClick()\">{{ label() }}</span>\n @if (isRequired()) {\n <span class=\"hm-rich-text__required\">{{ text.required }}</span>\n }\n</div>\n\n@if (loading()) {\n <div class=\"hm-rich-text__loading\" role=\"status\" aria-busy=\"true\" [attr.aria-label]=\"loadingLabel()\">\n <span class=\"hm-rich-text__ghost\" aria-hidden=\"true\"></span>\n </div>\n} @else {\n <div\n class=\"hm-rich-text__frame\"\n [class.hm-rich-text__frame--invalid]=\"!!errorText()\"\n [class.hm-rich-text__frame--disabled]=\"isDisabled()\"\n [class.hm-rich-text__frame--readonly]=\"readonly()\"\n (mousedown)=\"onFrameMouseDown($event)\"\n >\n @if (showToolbar()) {\n <div #bar class=\"hm-rich-text__bar\" (mousedown)=\"onBarPointerDown($event)\">\n <hm-toolbar [label]=\"toolbarLabel()\">\n @for (item of toolbarItems(); track item.key) {\n @if (item.tool === '|') {\n <span class=\"hm-rich-text__separator\" role=\"separator\" aria-orientation=\"vertical\"></span>\n } @else if (item.tool === 'blockType') {\n <hm-menu-button\n class=\"hm-rich-text__block-type\"\n closeOnCheck\n [label]=\"blockTypeLabel()\"\n [items]=\"blockTypeItems()\"\n [disabled]=\"isDisabled()\"\n (checkedChange)=\"onBlockType($event)\"\n >{{ blockKindName() }}</hm-menu-button\n >\n } @else {\n @let tool = stateOf(item.tool);\n <hm-icon-button\n #button\n class=\"hm-rich-text__tool\"\n emphasis=\"subtle\"\n [attr.data-tool]=\"item.tool\"\n [icon]=\"tool.icon\"\n [label]=\"tool.label\"\n [toggle]=\"tool.toggle\"\n [pressed]=\"tool.pressed\"\n [disabled]=\"tool.disabled\"\n [keyShortcuts]=\"tool.aria\"\n [hmTooltip]=\"tool.tooltip\"\n (clicked)=\"onTool(item.tool, button)\"\n />\n }\n }\n </hm-toolbar>\n </div>\n }\n <div class=\"hm-rich-text__body\">\n <div\n #surface\n class=\"hm-rich-text__area hm-prose\"\n [class.hm-rich-text__area--capped]=\"maxRows() !== null\"\n role=\"textbox\"\n aria-multiline=\"true\"\n [attr.contenteditable]=\"editable() ? 'true' : 'false'\"\n [attr.tabindex]=\"isDisabled() ? null : '0'\"\n [attr.aria-labelledby]=\"labelId\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"isRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-readonly]=\"readonly() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-placeholder]=\"placeholder() && !readonly() ? placeholder() : null\"\n [attr.spellcheck]=\"spellcheck() ? 'true' : 'false'\"\n [style.--hm-rich-text-rows]=\"rows()\"\n [style.--hm-rich-text-max-rows]=\"maxRows()\"\n (beforeinput)=\"onBeforeInput($event)\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (compositionstart)=\"onCompositionStart()\"\n (compositionend)=\"onCompositionEnd()\"\n (paste)=\"onPaste($event)\"\n (copy)=\"onCopy($event)\"\n (cut)=\"onCut($event)\"\n (dragstart)=\"onDragStart($event)\"\n (dragend)=\"onDragEnd()\"\n (drop)=\"onDrop($event)\"\n (mousedown)=\"onAreaPointerDown()\"\n (focus)=\"onAreaFocus()\"\n (click)=\"onAreaClick($event)\"\n ></div>\n @if (showPlaceholder()) {\n <div class=\"hm-rich-text__placeholder\" aria-hidden=\"true\">{{ placeholder() }}</div>\n }\n <span #caretAnchor class=\"hm-rich-text__caret-anchor\" aria-hidden=\"true\"></span>\n </div>\n </div>\n}\n\n@if (showToolbar() && !isDisabled()) {\n <span class=\"hm-visually-hidden\" [id]=\"toolbarHintId\">{{ richText().toolbarHint }}</span>\n}\n\n@if (hint() || showCounterRow()) {\n <div class=\"hm-rich-text__footer\">\n @if (hint()) {\n <p class=\"hm-rich-text__hint\" [id]=\"hintId\">{{ hint() }}</p>\n }\n @if (showCounterRow()) {\n <p class=\"hm-rich-text__counter\" [class.hm-rich-text__counter--over]=\"overLimit()\" [id]=\"counterId\">\n @if (overLimit()) {\n <hm-icon shape=\"exclamation-triangle\" />\n }\n <span aria-hidden=\"true\">{{ counterVisible() }}</span>\n <span class=\"hm-visually-hidden\">{{ counterSpoken() }}</span>\n </p>\n }\n </div>\n}\n\n@if (errorText()) {\n <p class=\"hm-rich-text__error\" role=\"alert\" [id]=\"errorId\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n}\n\n<span class=\"hm-visually-hidden\" aria-live=\"polite\" aria-atomic=\"true\">{{ announcement() }}</span>\n\n<hm-popover #linkPopover side=\"bottom\" align=\"start\" [heading]=\"linkHeading()\" (openChange)=\"onLinkOpenChange($event)\">\n <div #linkPanel class=\"hm-rich-text__link\" (keydown)=\"onLinkKeydown($event)\" (focusin)=\"onFocusIn()\" (focusout)=\"onFocusOut($event)\">\n <hm-input\n type=\"url\"\n autocomplete=\"url\"\n required\n [label]=\"richText().linkUrl\"\n [value]=\"linkUrl()\"\n [error]=\"linkError()\"\n (valueChange)=\"linkUrl.set($event); linkError.set('')\"\n />\n @if (linkWithText()) {\n <hm-input [label]=\"richText().linkText\" [value]=\"linkText()\" (valueChange)=\"linkText.set($event)\" />\n }\n <div class=\"hm-rich-text__link-actions\">\n <hm-button (clicked)=\"applyLink()\">{{ richText().linkApply }}</hm-button>\n @if (linkEditing()) {\n <hm-button emphasis=\"medium\" (clicked)=\"removeLink()\">{{ richText().linkRemove }}</hm-button>\n @if (linkHref(); as href) {\n <a [class]=\"openLinkClass\" [attr.href]=\"href\" target=\"_blank\" rel=\"noopener noreferrer\">{{ richText().linkOpen }}</a>\n }\n }\n <hm-button emphasis=\"minimal\" (clicked)=\"cancelLink()\">{{ richText().linkCancel }}</hm-button>\n </div>\n </div>\n</hm-popover>\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: IconButtonComponent, selector: "hm-icon-button", inputs: ["label", "icon", "solid", "iconDirection", "emphasis", "intent", "size", "disabled", "toggle", "pressed", "keyShortcuts"], outputs: ["pressedChange", "clicked"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: InputComponent, selector: "hm-input", inputs: ["value", "label", "type", "placeholder", "icon", "labelHidden", "hint", "prefix", "suffix", "prefixIcon", "mask", "maskValue", "min", "max", "step", "stepButtons", "maxLength", "autocomplete", "inputMode"], outputs: ["valueChange"] }, { kind: "component", type: MenuButtonComponent, selector: "hm-menu-button", inputs: ["label", "icon", "items", "showArrow", "align", "side", "size", "shape", "layer", "closeOnCheck", "disabled"], outputs: ["chosen", "checkedChange"] }, { kind: "component", type: PopoverComponent, selector: "hm-popover", inputs: ["open", "heading", "headingLevel", "label", "describedBy", "side", "align", "arrow", "closable", "closeLabel", "closeOnOutsideClick", "openOn", "openDelay", "closeDelay"], outputs: ["openChange"] }, { kind: "component", type: ToolbarComponent, selector: "hm-toolbar", inputs: ["label"] }, { kind: "directive", type: TooltipDirective, selector: "[hmTooltip]", inputs: ["hmTooltip", "hmTooltipSide", "hmTooltipDisabled", "hmTooltipShowDelay", "hmTooltipHideDelay"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
291
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: RichTextComponent, isStandalone: true, selector: "hm-rich-text", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, labelHidden: { classPropertyName: "labelHidden", publicName: "labelHidden", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, tools: { classPropertyName: "tools", publicName: "tools", isSignal: true, isRequired: false, transformFunction: null }, headingLevels: { classPropertyName: "headingLevels", publicName: "headingLevels", isSignal: true, isRequired: false, transformFunction: null }, hideToolbar: { classPropertyName: "hideToolbar", publicName: "hideToolbar", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, maxRows: { classPropertyName: "maxRows", publicName: "maxRows", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, showCounter: { classPropertyName: "showCounter", publicName: "showCounter", isSignal: true, isRequired: false, transformFunction: null }, pasteMode: { classPropertyName: "pasteMode", publicName: "pasteMode", isSignal: true, isRequired: false, transformFunction: null }, linkProtocols: { classPropertyName: "linkProtocols", publicName: "linkProtocols", isSignal: true, isRequired: false, transformFunction: null }, allowRelativeLinks: { classPropertyName: "allowRelativeLinks", publicName: "allowRelativeLinks", isSignal: true, isRequired: false, transformFunction: null }, spellcheck: { classPropertyName: "spellcheck", publicName: "spellcheck", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", focusChange: "focusChange" }, host: { listeners: { "focusin": "onFocusIn()", "focusout": "onFocusOut($event)" }, classAttribute: "hm-rich-text" }, viewQueries: [{ propertyName: "surfaceRef", first: true, predicate: ["surface"], descendants: true, isSignal: true }, { propertyName: "linkPopover", first: true, predicate: ["linkPopover"], descendants: true, isSignal: true }, { propertyName: "linkPanel", first: true, predicate: ["linkPanel"], descendants: true, isSignal: true }, { propertyName: "caretAnchor", first: true, predicate: ["caretAnchor"], descendants: true, isSignal: true }, { propertyName: "bar", first: true, predicate: ["bar"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"hm-rich-text__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <span class=\"hm-rich-text__label\" [id]=\"labelId\" (click)=\"onLabelClick()\">{{ label() }}</span>\n @if (isRequired()) {\n <span class=\"hm-rich-text__required\">{{ text.required }}</span>\n }\n</div>\n\n@if (loading()) {\n <div class=\"hm-rich-text__loading\" role=\"status\" aria-busy=\"true\" [attr.aria-label]=\"loadingLabel()\">\n <span class=\"hm-rich-text__ghost\" aria-hidden=\"true\"></span>\n </div>\n} @else {\n <div\n class=\"hm-rich-text__frame\"\n [class.hm-rich-text__frame--invalid]=\"!!errorText()\"\n [class.hm-rich-text__frame--disabled]=\"isDisabled()\"\n [class.hm-rich-text__frame--readonly]=\"readonly()\"\n (mousedown)=\"editor.onFrameMouseDown($event)\"\n >\n @if (showToolbar()) {\n <div #bar class=\"hm-rich-text__bar\" (mousedown)=\"editor.onBarPointerDown($event)\">\n <hm-toolbar [label]=\"toolbarLabel()\">\n @for (item of toolbarItems(); track item.key) {\n @if (item.tool === '|') {\n <span class=\"hm-rich-text__separator\" role=\"separator\" aria-orientation=\"vertical\"></span>\n } @else if (item.tool === 'blockType') {\n <hm-menu-button\n class=\"hm-rich-text__block-type\"\n closeOnCheck\n [label]=\"blockTypeLabel()\"\n [items]=\"blockTypeItems()\"\n [disabled]=\"isDisabled()\"\n (checkedChange)=\"onBlockType($event)\"\n >{{ blockKindName() }}</hm-menu-button\n >\n } @else {\n @let tool = stateOf(item.tool);\n <hm-icon-button\n #button\n class=\"hm-rich-text__tool\"\n emphasis=\"subtle\"\n [attr.data-tool]=\"item.tool\"\n [icon]=\"tool.icon\"\n [label]=\"tool.label\"\n [toggle]=\"tool.toggle\"\n [pressed]=\"tool.pressed\"\n [disabled]=\"tool.disabled\"\n [keyShortcuts]=\"tool.aria\"\n [hmTooltip]=\"tool.tooltip\"\n (clicked)=\"onTool(item.tool, button)\"\n />\n }\n }\n </hm-toolbar>\n </div>\n }\n <div class=\"hm-rich-text__body\">\n <div\n #surface\n class=\"hm-rich-text__area hm-prose\"\n [class.hm-rich-text__area--capped]=\"maxRows() !== null\"\n role=\"textbox\"\n aria-multiline=\"true\"\n [attr.contenteditable]=\"editable() ? 'true' : 'false'\"\n [attr.tabindex]=\"isDisabled() ? null : '0'\"\n [attr.aria-labelledby]=\"labelId\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"isRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-readonly]=\"readonly() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-placeholder]=\"placeholder() && !readonly() ? placeholder() : null\"\n [attr.spellcheck]=\"spellcheck() ? 'true' : 'false'\"\n [style.--hm-rich-text-rows]=\"rows()\"\n [style.--hm-rich-text-max-rows]=\"maxRows()\"\n (beforeinput)=\"editor.onBeforeInput($event)\"\n (input)=\"editor.onInput($event)\"\n (keydown)=\"editor.onKeydown($event)\"\n (compositionstart)=\"editor.onCompositionStart()\"\n (compositionend)=\"editor.onCompositionEnd()\"\n (paste)=\"editor.onPaste($event)\"\n (copy)=\"editor.onCopy($event)\"\n (cut)=\"editor.onCut($event)\"\n (dragstart)=\"editor.onDragStart($event)\"\n (dragend)=\"editor.onDragEnd()\"\n (drop)=\"editor.onDrop($event)\"\n (mousedown)=\"editor.onAreaPointerDown()\"\n (focus)=\"editor.onAreaFocus()\"\n (click)=\"editor.onAreaClick($event)\"\n ></div>\n @if (showPlaceholder()) {\n <div class=\"hm-rich-text__placeholder\" aria-hidden=\"true\">{{ placeholder() }}</div>\n }\n <span #caretAnchor class=\"hm-rich-text__caret-anchor\" aria-hidden=\"true\"></span>\n </div>\n </div>\n}\n\n@if (showToolbar() && !isDisabled()) {\n <span class=\"hm-visually-hidden\" [id]=\"toolbarHintId\">{{ richText().toolbarHint }}</span>\n}\n\n@if (hint() || showCounterRow()) {\n <div class=\"hm-rich-text__footer\">\n @if (hint()) {\n <p class=\"hm-rich-text__hint\" [id]=\"hintId\">{{ hint() }}</p>\n }\n @if (showCounterRow()) {\n <p class=\"hm-rich-text__counter\" [class.hm-rich-text__counter--over]=\"overLimit()\" [id]=\"counterId\">\n @if (overLimit()) {\n <hm-icon shape=\"exclamation-triangle\" />\n }\n <span aria-hidden=\"true\">{{ counterVisible() }}</span>\n <span class=\"hm-visually-hidden\">{{ counterSpoken() }}</span>\n </p>\n }\n </div>\n}\n\n@if (errorText()) {\n <p class=\"hm-rich-text__error\" role=\"alert\" [id]=\"errorId\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n}\n\n<span class=\"hm-visually-hidden\" aria-live=\"polite\" aria-atomic=\"true\">{{ announcement() }}</span>\n\n<hm-popover #linkPopover side=\"bottom\" align=\"start\" [heading]=\"linkHeading()\" (openChange)=\"onLinkOpenChange($event)\">\n <div #linkPanel class=\"hm-rich-text__link\" (keydown)=\"editor.onLinkKeydown($event)\" (focusin)=\"onFocusIn()\" (focusout)=\"onFocusOut($event)\">\n <hm-input\n type=\"url\"\n autocomplete=\"url\"\n required\n [label]=\"richText().linkUrl\"\n [value]=\"link().url\"\n [error]=\"link().error\"\n (valueChange)=\"editor.setLinkUrl($event)\"\n />\n @if (link().withText) {\n <hm-input [label]=\"richText().linkText\" [value]=\"link().text\" (valueChange)=\"editor.setLinkText($event)\" />\n }\n <div class=\"hm-rich-text__link-actions\">\n <hm-button (clicked)=\"editor.applyLink()\">{{ richText().linkApply }}</hm-button>\n @if (link().editing) {\n <hm-button emphasis=\"medium\" (clicked)=\"editor.removeLink()\">{{ richText().linkRemove }}</hm-button>\n @if (link().href; as href) {\n <a [class]=\"openLinkClass\" [attr.href]=\"href\" target=\"_blank\" rel=\"noopener noreferrer\">{{ richText().linkOpen }}</a>\n }\n }\n <hm-button emphasis=\"minimal\" (clicked)=\"editor.cancelLink()\">{{ richText().linkCancel }}</hm-button>\n </div>\n </div>\n</hm-popover>\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: IconButtonComponent, selector: "hm-icon-button", inputs: ["label", "icon", "solid", "iconDirection", "emphasis", "intent", "size", "disabled", "toggle", "pressed", "keyShortcuts"], outputs: ["pressedChange", "clicked"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: InputComponent, selector: "hm-input", inputs: ["value", "label", "type", "placeholder", "icon", "labelHidden", "hint", "prefix", "suffix", "prefixIcon", "mask", "maskValue", "min", "max", "step", "stepButtons", "maxLength", "autocomplete", "inputMode"], outputs: ["valueChange"] }, { kind: "component", type: MenuButtonComponent, selector: "hm-menu-button", inputs: ["label", "icon", "items", "showArrow", "align", "side", "size", "shape", "layer", "closeOnCheck", "disabled"], outputs: ["chosen", "checkedChange"] }, { kind: "component", type: PopoverComponent, selector: "hm-popover", inputs: ["open", "heading", "headingLevel", "label", "describedBy", "side", "align", "arrow", "closable", "closeLabel", "closeOnOutsideClick", "openOn", "openDelay", "closeDelay"], outputs: ["openChange"] }, { kind: "component", type: ToolbarComponent, selector: "hm-toolbar", inputs: ["label"] }, { kind: "directive", type: TooltipDirective, selector: "[hmTooltip]", inputs: ["hmTooltip", "hmTooltipSide", "hmTooltipDisabled", "hmTooltipShowDelay", "hmTooltipHideDelay"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1270
292
  }
1271
293
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: RichTextComponent, decorators: [{
1272
294
  type: Component,
@@ -1283,7 +305,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
1283
305
  class: 'hm-rich-text',
1284
306
  '(focusin)': 'onFocusIn()',
1285
307
  '(focusout)': 'onFocusOut($event)',
1286
- }, template: "<div class=\"hm-rich-text__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <span class=\"hm-rich-text__label\" [id]=\"labelId\" (click)=\"onLabelClick()\">{{ label() }}</span>\n @if (isRequired()) {\n <span class=\"hm-rich-text__required\">{{ text.required }}</span>\n }\n</div>\n\n@if (loading()) {\n <div class=\"hm-rich-text__loading\" role=\"status\" aria-busy=\"true\" [attr.aria-label]=\"loadingLabel()\">\n <span class=\"hm-rich-text__ghost\" aria-hidden=\"true\"></span>\n </div>\n} @else {\n <div\n class=\"hm-rich-text__frame\"\n [class.hm-rich-text__frame--invalid]=\"!!errorText()\"\n [class.hm-rich-text__frame--disabled]=\"isDisabled()\"\n [class.hm-rich-text__frame--readonly]=\"readonly()\"\n (mousedown)=\"onFrameMouseDown($event)\"\n >\n @if (showToolbar()) {\n <div #bar class=\"hm-rich-text__bar\" (mousedown)=\"onBarPointerDown($event)\">\n <hm-toolbar [label]=\"toolbarLabel()\">\n @for (item of toolbarItems(); track item.key) {\n @if (item.tool === '|') {\n <span class=\"hm-rich-text__separator\" role=\"separator\" aria-orientation=\"vertical\"></span>\n } @else if (item.tool === 'blockType') {\n <hm-menu-button\n class=\"hm-rich-text__block-type\"\n closeOnCheck\n [label]=\"blockTypeLabel()\"\n [items]=\"blockTypeItems()\"\n [disabled]=\"isDisabled()\"\n (checkedChange)=\"onBlockType($event)\"\n >{{ blockKindName() }}</hm-menu-button\n >\n } @else {\n @let tool = stateOf(item.tool);\n <hm-icon-button\n #button\n class=\"hm-rich-text__tool\"\n emphasis=\"subtle\"\n [attr.data-tool]=\"item.tool\"\n [icon]=\"tool.icon\"\n [label]=\"tool.label\"\n [toggle]=\"tool.toggle\"\n [pressed]=\"tool.pressed\"\n [disabled]=\"tool.disabled\"\n [keyShortcuts]=\"tool.aria\"\n [hmTooltip]=\"tool.tooltip\"\n (clicked)=\"onTool(item.tool, button)\"\n />\n }\n }\n </hm-toolbar>\n </div>\n }\n <div class=\"hm-rich-text__body\">\n <div\n #surface\n class=\"hm-rich-text__area hm-prose\"\n [class.hm-rich-text__area--capped]=\"maxRows() !== null\"\n role=\"textbox\"\n aria-multiline=\"true\"\n [attr.contenteditable]=\"editable() ? 'true' : 'false'\"\n [attr.tabindex]=\"isDisabled() ? null : '0'\"\n [attr.aria-labelledby]=\"labelId\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"isRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-readonly]=\"readonly() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-placeholder]=\"placeholder() && !readonly() ? placeholder() : null\"\n [attr.spellcheck]=\"spellcheck() ? 'true' : 'false'\"\n [style.--hm-rich-text-rows]=\"rows()\"\n [style.--hm-rich-text-max-rows]=\"maxRows()\"\n (beforeinput)=\"onBeforeInput($event)\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (compositionstart)=\"onCompositionStart()\"\n (compositionend)=\"onCompositionEnd()\"\n (paste)=\"onPaste($event)\"\n (copy)=\"onCopy($event)\"\n (cut)=\"onCut($event)\"\n (dragstart)=\"onDragStart($event)\"\n (dragend)=\"onDragEnd()\"\n (drop)=\"onDrop($event)\"\n (mousedown)=\"onAreaPointerDown()\"\n (focus)=\"onAreaFocus()\"\n (click)=\"onAreaClick($event)\"\n ></div>\n @if (showPlaceholder()) {\n <div class=\"hm-rich-text__placeholder\" aria-hidden=\"true\">{{ placeholder() }}</div>\n }\n <span #caretAnchor class=\"hm-rich-text__caret-anchor\" aria-hidden=\"true\"></span>\n </div>\n </div>\n}\n\n@if (showToolbar() && !isDisabled()) {\n <span class=\"hm-visually-hidden\" [id]=\"toolbarHintId\">{{ richText().toolbarHint }}</span>\n}\n\n@if (hint() || showCounterRow()) {\n <div class=\"hm-rich-text__footer\">\n @if (hint()) {\n <p class=\"hm-rich-text__hint\" [id]=\"hintId\">{{ hint() }}</p>\n }\n @if (showCounterRow()) {\n <p class=\"hm-rich-text__counter\" [class.hm-rich-text__counter--over]=\"overLimit()\" [id]=\"counterId\">\n @if (overLimit()) {\n <hm-icon shape=\"exclamation-triangle\" />\n }\n <span aria-hidden=\"true\">{{ counterVisible() }}</span>\n <span class=\"hm-visually-hidden\">{{ counterSpoken() }}</span>\n </p>\n }\n </div>\n}\n\n@if (errorText()) {\n <p class=\"hm-rich-text__error\" role=\"alert\" [id]=\"errorId\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n}\n\n<span class=\"hm-visually-hidden\" aria-live=\"polite\" aria-atomic=\"true\">{{ announcement() }}</span>\n\n<hm-popover #linkPopover side=\"bottom\" align=\"start\" [heading]=\"linkHeading()\" (openChange)=\"onLinkOpenChange($event)\">\n <div #linkPanel class=\"hm-rich-text__link\" (keydown)=\"onLinkKeydown($event)\" (focusin)=\"onFocusIn()\" (focusout)=\"onFocusOut($event)\">\n <hm-input\n type=\"url\"\n autocomplete=\"url\"\n required\n [label]=\"richText().linkUrl\"\n [value]=\"linkUrl()\"\n [error]=\"linkError()\"\n (valueChange)=\"linkUrl.set($event); linkError.set('')\"\n />\n @if (linkWithText()) {\n <hm-input [label]=\"richText().linkText\" [value]=\"linkText()\" (valueChange)=\"linkText.set($event)\" />\n }\n <div class=\"hm-rich-text__link-actions\">\n <hm-button (clicked)=\"applyLink()\">{{ richText().linkApply }}</hm-button>\n @if (linkEditing()) {\n <hm-button emphasis=\"medium\" (clicked)=\"removeLink()\">{{ richText().linkRemove }}</hm-button>\n @if (linkHref(); as href) {\n <a [class]=\"openLinkClass\" [attr.href]=\"href\" target=\"_blank\" rel=\"noopener noreferrer\">{{ richText().linkOpen }}</a>\n }\n }\n <hm-button emphasis=\"minimal\" (clicked)=\"cancelLink()\">{{ richText().linkCancel }}</hm-button>\n </div>\n </div>\n</hm-popover>\n" }]
308
+ }, template: "<div class=\"hm-rich-text__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <span class=\"hm-rich-text__label\" [id]=\"labelId\" (click)=\"onLabelClick()\">{{ label() }}</span>\n @if (isRequired()) {\n <span class=\"hm-rich-text__required\">{{ text.required }}</span>\n }\n</div>\n\n@if (loading()) {\n <div class=\"hm-rich-text__loading\" role=\"status\" aria-busy=\"true\" [attr.aria-label]=\"loadingLabel()\">\n <span class=\"hm-rich-text__ghost\" aria-hidden=\"true\"></span>\n </div>\n} @else {\n <div\n class=\"hm-rich-text__frame\"\n [class.hm-rich-text__frame--invalid]=\"!!errorText()\"\n [class.hm-rich-text__frame--disabled]=\"isDisabled()\"\n [class.hm-rich-text__frame--readonly]=\"readonly()\"\n (mousedown)=\"editor.onFrameMouseDown($event)\"\n >\n @if (showToolbar()) {\n <div #bar class=\"hm-rich-text__bar\" (mousedown)=\"editor.onBarPointerDown($event)\">\n <hm-toolbar [label]=\"toolbarLabel()\">\n @for (item of toolbarItems(); track item.key) {\n @if (item.tool === '|') {\n <span class=\"hm-rich-text__separator\" role=\"separator\" aria-orientation=\"vertical\"></span>\n } @else if (item.tool === 'blockType') {\n <hm-menu-button\n class=\"hm-rich-text__block-type\"\n closeOnCheck\n [label]=\"blockTypeLabel()\"\n [items]=\"blockTypeItems()\"\n [disabled]=\"isDisabled()\"\n (checkedChange)=\"onBlockType($event)\"\n >{{ blockKindName() }}</hm-menu-button\n >\n } @else {\n @let tool = stateOf(item.tool);\n <hm-icon-button\n #button\n class=\"hm-rich-text__tool\"\n emphasis=\"subtle\"\n [attr.data-tool]=\"item.tool\"\n [icon]=\"tool.icon\"\n [label]=\"tool.label\"\n [toggle]=\"tool.toggle\"\n [pressed]=\"tool.pressed\"\n [disabled]=\"tool.disabled\"\n [keyShortcuts]=\"tool.aria\"\n [hmTooltip]=\"tool.tooltip\"\n (clicked)=\"onTool(item.tool, button)\"\n />\n }\n }\n </hm-toolbar>\n </div>\n }\n <div class=\"hm-rich-text__body\">\n <div\n #surface\n class=\"hm-rich-text__area hm-prose\"\n [class.hm-rich-text__area--capped]=\"maxRows() !== null\"\n role=\"textbox\"\n aria-multiline=\"true\"\n [attr.contenteditable]=\"editable() ? 'true' : 'false'\"\n [attr.tabindex]=\"isDisabled() ? null : '0'\"\n [attr.aria-labelledby]=\"labelId\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"isRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"errorText() ? 'true' : null\"\n [attr.aria-readonly]=\"readonly() ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-placeholder]=\"placeholder() && !readonly() ? placeholder() : null\"\n [attr.spellcheck]=\"spellcheck() ? 'true' : 'false'\"\n [style.--hm-rich-text-rows]=\"rows()\"\n [style.--hm-rich-text-max-rows]=\"maxRows()\"\n (beforeinput)=\"editor.onBeforeInput($event)\"\n (input)=\"editor.onInput($event)\"\n (keydown)=\"editor.onKeydown($event)\"\n (compositionstart)=\"editor.onCompositionStart()\"\n (compositionend)=\"editor.onCompositionEnd()\"\n (paste)=\"editor.onPaste($event)\"\n (copy)=\"editor.onCopy($event)\"\n (cut)=\"editor.onCut($event)\"\n (dragstart)=\"editor.onDragStart($event)\"\n (dragend)=\"editor.onDragEnd()\"\n (drop)=\"editor.onDrop($event)\"\n (mousedown)=\"editor.onAreaPointerDown()\"\n (focus)=\"editor.onAreaFocus()\"\n (click)=\"editor.onAreaClick($event)\"\n ></div>\n @if (showPlaceholder()) {\n <div class=\"hm-rich-text__placeholder\" aria-hidden=\"true\">{{ placeholder() }}</div>\n }\n <span #caretAnchor class=\"hm-rich-text__caret-anchor\" aria-hidden=\"true\"></span>\n </div>\n </div>\n}\n\n@if (showToolbar() && !isDisabled()) {\n <span class=\"hm-visually-hidden\" [id]=\"toolbarHintId\">{{ richText().toolbarHint }}</span>\n}\n\n@if (hint() || showCounterRow()) {\n <div class=\"hm-rich-text__footer\">\n @if (hint()) {\n <p class=\"hm-rich-text__hint\" [id]=\"hintId\">{{ hint() }}</p>\n }\n @if (showCounterRow()) {\n <p class=\"hm-rich-text__counter\" [class.hm-rich-text__counter--over]=\"overLimit()\" [id]=\"counterId\">\n @if (overLimit()) {\n <hm-icon shape=\"exclamation-triangle\" />\n }\n <span aria-hidden=\"true\">{{ counterVisible() }}</span>\n <span class=\"hm-visually-hidden\">{{ counterSpoken() }}</span>\n </p>\n }\n </div>\n}\n\n@if (errorText()) {\n <p class=\"hm-rich-text__error\" role=\"alert\" [id]=\"errorId\">\n <hm-icon shape=\"exclamation-triangle\" />\n <span>{{ errorText() }}</span>\n </p>\n}\n\n<span class=\"hm-visually-hidden\" aria-live=\"polite\" aria-atomic=\"true\">{{ announcement() }}</span>\n\n<hm-popover #linkPopover side=\"bottom\" align=\"start\" [heading]=\"linkHeading()\" (openChange)=\"onLinkOpenChange($event)\">\n <div #linkPanel class=\"hm-rich-text__link\" (keydown)=\"editor.onLinkKeydown($event)\" (focusin)=\"onFocusIn()\" (focusout)=\"onFocusOut($event)\">\n <hm-input\n type=\"url\"\n autocomplete=\"url\"\n required\n [label]=\"richText().linkUrl\"\n [value]=\"link().url\"\n [error]=\"link().error\"\n (valueChange)=\"editor.setLinkUrl($event)\"\n />\n @if (link().withText) {\n <hm-input [label]=\"richText().linkText\" [value]=\"link().text\" (valueChange)=\"editor.setLinkText($event)\" />\n }\n <div class=\"hm-rich-text__link-actions\">\n <hm-button (clicked)=\"editor.applyLink()\">{{ richText().linkApply }}</hm-button>\n @if (link().editing) {\n <hm-button emphasis=\"medium\" (clicked)=\"editor.removeLink()\">{{ richText().linkRemove }}</hm-button>\n @if (link().href; as href) {\n <a [class]=\"openLinkClass\" [attr.href]=\"href\" target=\"_blank\" rel=\"noopener noreferrer\">{{ richText().linkOpen }}</a>\n }\n }\n <hm-button emphasis=\"minimal\" (clicked)=\"editor.cancelLink()\">{{ richText().linkCancel }}</hm-button>\n </div>\n </div>\n</hm-popover>\n" }]
1287
309
  }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], labelHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelHidden", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], tools: [{ type: i0.Input, args: [{ isSignal: true, alias: "tools", required: false }] }], headingLevels: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevels", required: false }] }], hideToolbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideToolbar", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], maxRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxRows", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], showCounter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCounter", required: false }] }], pasteMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "pasteMode", required: false }] }], linkProtocols: [{ type: i0.Input, args: [{ isSignal: true, alias: "linkProtocols", required: false }] }], allowRelativeLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowRelativeLinks", required: false }] }], spellcheck: [{ type: i0.Input, args: [{ isSignal: true, alias: "spellcheck", required: false }] }], focusChange: [{ type: i0.Output, args: ["focusChange"] }], surfaceRef: [{ type: i0.ViewChild, args: ['surface', { isSignal: true }] }], linkPopover: [{ type: i0.ViewChild, args: ['linkPopover', { isSignal: true }] }], linkPanel: [{ type: i0.ViewChild, args: ['linkPanel', { isSignal: true }] }], caretAnchor: [{ type: i0.ViewChild, args: ['caretAnchor', { isSignal: true }] }], bar: [{ type: i0.ViewChild, args: ['bar', { isSignal: true }] }] } });
1288
310
 
1289
311
  /**