@heartlandone/vega 2.100.0 → 2.102.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 (1020) hide show
  1. package/dist/cjs/{action-color-accessibility-validator-b8a9ef0f.js → action-color-accessibility-validator-61af71ae.js} +1 -1
  2. package/dist/cjs/{app-globals-48d067a7.js → app-globals-49c2a999.js} +21 -12
  3. package/dist/cjs/{aria-dialog-focusable-trap-slimmer-62147489.js → aria-dialog-focusable-trap-slimmer-c79cc3f8.js} +1 -1
  4. package/dist/cjs/{child-nodes-event-prevent-slimmer-e0ac8467.js → child-nodes-event-prevent-slimmer-574a6a1a.js} +1 -1
  5. package/dist/cjs/{code-block-3b42c364.js → code-block-06e6591f.js} +1037 -937
  6. package/dist/cjs/{component-usage-runtime-metrics-389d1548.js → component-usage-runtime-metrics-77f7be9f.js} +8 -5
  7. package/dist/cjs/{component-value-history-controller-slimmer.abstract-bbe3bcaf.js → component-value-history-controller-slimmer.abstract-f29908f8.js} +4 -4
  8. package/dist/cjs/{content-state-87a06c1a.js → content-state-8c862e5e.js} +90 -88
  9. package/dist/cjs/countries-a8e3812a.js +251 -0
  10. package/dist/cjs/{dark-mode-style-controller-f3da3342.js → dark-mode-style-controller-ec04ece9.js} +45 -45
  11. package/dist/cjs/{date-required-rule-45c802d3.js → date-required-rule-b672c432.js} +1 -1
  12. package/dist/cjs/{design-token-9d762da0.js → design-token-351ffd2c.js} +3 -3
  13. package/dist/cjs/{create-public-api-runtime-metrics-slimmer-91b0cbfb.js → discriminated-3b8e72d5.js} +63 -1
  14. package/dist/cjs/{element-appender-slimmer-f7ba5d9a.js → element-appender-slimmer-f932b166.js} +22 -3
  15. package/dist/cjs/{event-emit-slimmer-34aa195e.js → event-emit-slimmer-6bc675f6.js} +1 -1
  16. package/dist/cjs/{form-field-controller-slimmer-fbaddc91.js → form-field-controller-slimmer-5adb86ae.js} +3 -3
  17. package/dist/cjs/{icon-manager-be358b32.js → icon-manager-7d20b0ab.js} +6 -4
  18. package/dist/cjs/{image-annotation-action-03d3e01a.js → image-annotation-action-25907d6b.js} +7 -6
  19. package/dist/cjs/image-extension-1cf84f27.js +1209 -0
  20. package/dist/cjs/index-58ea899e.js +4 -0
  21. package/dist/cjs/index.cjs.js +33 -29
  22. package/dist/cjs/{inject-keyboard-manager-540f0876.js → inject-keyboard-manager-84d33920.js} +1 -1
  23. package/dist/cjs/{internal-calendar-period-factory-b11918ee.js → internal-calendar-period-factory-3c5236be.js} +1 -1
  24. package/dist/cjs/{internal-icon-manager-40bcac72.js → internal-icon-manager-b9702049.js} +1 -1
  25. package/dist/cjs/{internal-translation-controller-27bfc8c7.js → internal-translation-controller-eae8a8de.js} +11 -0
  26. package/dist/cjs/{internal-vega-event-manager-7003c84a.js → internal-vega-event-manager-0c256d63.js} +11 -2
  27. package/dist/cjs/{keyboard-manager-16e96b62.js → keyboard-manager-baa83a61.js} +1 -1
  28. package/dist/cjs/{keyboard-manager-slimmer-0a4e556d.js → keyboard-manager-slimmer-d1974b28.js} +1 -1
  29. package/dist/cjs/{link-extension-71eeaa9f.js → link-extension-2a6133b7.js} +9 -8
  30. package/dist/cjs/loader.cjs.js +23 -21
  31. package/dist/cjs/{month-view-generator-0a3e04de.js → month-view-generator-a6827548.js} +1 -1
  32. package/dist/cjs/{public-rules-3dc5d02d.js → public-rules-7f26e0ae.js} +11 -9
  33. package/dist/cjs/{range-d29751e3.js → range-518b95a2.js} +1 -1
  34. package/dist/cjs/{responsive-format-facade-c6d7f0a1.js → responsive-format-facade-95c54444.js} +1 -1
  35. package/dist/cjs/{rich-text-editor-required-rule-05de7f0c.js → rich-text-editor-required-rule-5d0c76ec.js} +1 -1
  36. package/dist/cjs/{split-cell-operation-ef783850.js → split-cell-operation-28f6f8d9.js} +17 -21
  37. package/dist/cjs/{state-border-formatter-dda9109a.js → state-border-formatter-6c284859.js} +1 -1
  38. package/dist/cjs/{string-format-strategy.abstract-3a968a59.js → string-format-strategy.abstract-f15b6196.js} +1 -1
  39. package/dist/cjs/{string-input-formatter-slimmer-9747039f.js → string-input-formatter-slimmer-5a3f1b55.js} +3 -3
  40. package/dist/cjs/{string-mask-strategy-d9f85c21.js → string-mask-strategy-af6f3ba0.js} +2 -2
  41. package/dist/cjs/{style-formatter-d21a9784.js → style-formatter-324211fd.js} +2 -2
  42. package/dist/cjs/{sub-state-notify-slimmer-e264a120.js → sub-state-notify-slimmer-3b33e31c.js} +1 -1
  43. package/dist/cjs/{sub-state-observer-slimmer-6033b824.js → sub-state-observer-slimmer-5b68ba3f.js} +1 -1
  44. package/dist/cjs/{time-required-rule-580cbd3d.js → time-required-rule-9e714442.js} +1 -1
  45. package/dist/cjs/{token-extension-8d7bd451.js → token-extension-86723cad.js} +181 -509
  46. package/dist/cjs/{translation-slimmer-31cd5a57.js → translation-slimmer-0227ee24.js} +1 -1
  47. package/dist/cjs/{type-guard-00b8efc0.js → type-guard-29e01bd4.js} +1 -1
  48. package/dist/cjs/{valid-credit-card-number-rule-70885128.js → valid-credit-card-number-rule-4ec364af.js} +1 -1
  49. package/dist/cjs/vega-accordion.cjs.entry.js +14 -14
  50. package/dist/cjs/vega-app-footer.cjs.entry.js +6 -6
  51. package/dist/cjs/vega-app-header-button.cjs.entry.js +14 -14
  52. package/dist/cjs/vega-backdrop.cjs.entry.js +2 -2
  53. package/dist/cjs/vega-banner.cjs.entry.js +8 -8
  54. package/dist/cjs/vega-bar-chart.cjs.entry.js +2 -2
  55. package/dist/cjs/vega-box.cjs.entry.js +8 -8
  56. package/dist/cjs/vega-brand-logo.cjs.entry.js +6 -6
  57. package/dist/cjs/vega-breadcrumb.cjs.entry.js +6 -6
  58. package/dist/cjs/vega-button-circle.cjs.entry.js +13 -13
  59. package/dist/cjs/vega-button-group_2.cjs.entry.js +10 -10
  60. package/dist/cjs/vega-button-link.cjs.entry.js +7 -7
  61. package/dist/cjs/vega-button.cjs.entry.js +11 -11
  62. package/dist/cjs/vega-calendar_5.cjs.entry.js +191 -44
  63. package/dist/cjs/vega-card.cjs.entry.js +7 -7
  64. package/dist/cjs/vega-carousel.cjs.entry.js +8 -8
  65. package/dist/cjs/vega-checkbox_2.cjs.entry.js +11 -11
  66. package/dist/cjs/vega-chip.cjs.entry.js +11 -11
  67. package/dist/cjs/vega-code-block.cjs.entry.js +19 -19
  68. package/dist/cjs/vega-color-picker.cjs.entry.js +9 -9
  69. package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +14 -14
  70. package/dist/cjs/vega-color-swatch.cjs.entry.js +7 -7
  71. package/dist/cjs/vega-combo-box.cjs.entry.js +16 -16
  72. package/dist/cjs/vega-counter-badge.cjs.entry.js +2 -2
  73. package/dist/cjs/vega-date-picker_2.cjs.entry.js +27 -27
  74. package/dist/cjs/{vega-dialog-controller-16be85d5.js → vega-dialog-controller-efc46dba.js} +6 -4
  75. package/dist/cjs/vega-dialog_2.cjs.entry.js +12 -12
  76. package/dist/cjs/vega-divider.cjs.entry.js +7 -7
  77. package/dist/cjs/vega-dropdown_5.cjs.entry.js +21 -21
  78. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  79. package/dist/cjs/{vega-event-id-58afed7a.js → vega-event-id-b5abf7c9.js} +4 -0
  80. package/dist/cjs/vega-field-error.cjs.entry.js +2 -2
  81. package/dist/cjs/vega-field-label.cjs.entry.js +7 -7
  82. package/dist/cjs/vega-file-uploader.cjs.entry.js +13 -13
  83. package/dist/cjs/vega-flag-icon.cjs.entry.js +16 -16
  84. package/dist/cjs/vega-flex.cjs.entry.js +8 -8
  85. package/dist/cjs/vega-font.cjs.entry.js +7 -7
  86. package/dist/cjs/vega-form.cjs.entry.js +11 -11
  87. package/dist/cjs/vega-grid.cjs.entry.js +7 -7
  88. package/dist/cjs/vega-hint.cjs.entry.js +2 -2
  89. package/dist/cjs/vega-icon.cjs.entry.js +9 -9
  90. package/dist/cjs/vega-image-uploader.cjs.entry.js +16 -16
  91. package/dist/cjs/vega-input-credit-card.cjs.entry.js +17 -17
  92. package/dist/cjs/vega-input-numeric.cjs.entry.js +14 -14
  93. package/dist/cjs/vega-input-passcode.cjs.entry.js +13 -13
  94. package/dist/cjs/vega-input-phone-number.cjs.entry.js +21 -274
  95. package/dist/cjs/vega-input-range.cjs.entry.js +11 -11
  96. package/dist/cjs/vega-input-select.cjs.entry.js +25 -42
  97. package/dist/cjs/vega-input.cjs.entry.js +17 -17
  98. package/dist/cjs/{vega-internal-event-id-f4d33037.js → vega-internal-event-id-98d499d7.js} +6 -2
  99. package/dist/cjs/vega-item-toggle.cjs.entry.js +5 -5
  100. package/dist/cjs/vega-left-nav_5.cjs.entry.js +23 -23
  101. package/dist/cjs/vega-line-chart.cjs.entry.js +2 -2
  102. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +6 -6
  103. package/dist/cjs/vega-page-notification_2.cjs.entry.js +4 -4
  104. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +6 -6
  105. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +6 -6
  106. package/dist/cjs/vega-pagination.cjs.entry.js +11 -11
  107. package/dist/cjs/vega-pie-chart.cjs.entry.js +2 -2
  108. package/dist/cjs/vega-popover_2.cjs.entry.js +16 -16
  109. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +12 -12
  110. package/dist/cjs/vega-radio_2.cjs.entry.js +14 -14
  111. package/dist/cjs/vega-rich-text-bookmark-editor.cjs.entry.js +445 -0
  112. package/dist/cjs/vega-rich-text-content.cjs.entry.js +53 -21
  113. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +244 -56
  114. package/dist/cjs/vega-rich-text-find-replace-panel.cjs.entry.js +9 -9
  115. package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +10 -10
  116. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +20 -20
  117. package/dist/cjs/vega-section-title.cjs.entry.js +2 -2
  118. package/dist/cjs/vega-segment-control.cjs.entry.js +13 -6
  119. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +14 -14
  120. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +12 -12
  121. package/dist/cjs/vega-sidenav_3.cjs.entry.js +16 -16
  122. package/dist/cjs/vega-signature-capture.cjs.entry.js +17 -17
  123. package/dist/cjs/vega-skeleton.cjs.entry.js +2 -2
  124. package/dist/cjs/vega-slot-container.cjs.entry.js +2 -2
  125. package/dist/cjs/vega-stepper.cjs.entry.js +10 -10
  126. package/dist/cjs/vega-tab-group_2.cjs.entry.js +398 -108
  127. package/dist/cjs/vega-table_11.cjs.entry.js +639 -680
  128. package/dist/cjs/vega-text.cjs.entry.js +2 -2
  129. package/dist/cjs/vega-textarea.cjs.entry.js +10 -10
  130. package/dist/cjs/vega-time-picker_2.cjs.entry.js +18 -18
  131. package/dist/cjs/vega-toggle-switch.cjs.entry.js +9 -9
  132. package/dist/cjs/vega-tooltip_2.cjs.entry.js +10 -10
  133. package/dist/cjs/vega.cjs.js +23 -21
  134. package/dist/cjs/{wait-for-component-did-render-44d006ee.js → wait-for-component-did-render-90edbc1a.js} +1 -1
  135. package/dist/collection/collection-manifest.json +6 -0
  136. package/dist/collection/components/vega-accordion/vega-accordion.js +1 -1
  137. package/dist/collection/components/vega-app-footer/vega-app-footer.js +1 -1
  138. package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +1 -1
  139. package/dist/collection/components/vega-backdrop/vega-backdrop.js +1 -1
  140. package/dist/collection/components/vega-banner/vega-banner.js +1 -1
  141. package/dist/collection/components/vega-box/vega-box.js +1 -1
  142. package/dist/collection/components/vega-brand-logo/vega-brand-logo.js +1 -1
  143. package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.js +1 -1
  144. package/dist/collection/components/vega-button/vega-button.css +3 -3
  145. package/dist/collection/components/vega-button/vega-button.js +1 -1
  146. package/dist/collection/components/vega-button-circle/vega-button-circle.css +3 -3
  147. package/dist/collection/components/vega-button-circle/vega-button-circle.js +1 -1
  148. package/dist/collection/components/vega-button-group/vega-button-group-item/vega-button-group-item.js +1 -1
  149. package/dist/collection/components/vega-button-group/vega-button-group.js +1 -1
  150. package/dist/collection/components/vega-button-link/vega-button-link.css +4 -4
  151. package/dist/collection/components/vega-button-link/vega-button-link.js +1 -1
  152. package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-preview-actions-controller.js +33 -11
  153. package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.js +45 -5
  154. package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-preview-popover-renderer.js +43 -1
  155. package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.js +23 -4
  156. package/dist/collection/components/vega-calendar/vega-calendar-event/vega-calendar-event.js +1 -1
  157. package/dist/collection/components/vega-calendar/vega-calendar-event-preview/assets/delete.js +3 -0
  158. package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.js +5 -1
  159. package/dist/collection/components/vega-calendar/vega-calendar-event-preview/vega-calendar-event-preview.js +1 -1
  160. package/dist/collection/components/vega-calendar/vega-calendar-event-slot/vega-calendar-event-slot.js +1 -1
  161. package/dist/collection/components/vega-calendar/vega-calendar-period-switcher/vega-calendar-period-switcher.js +1 -1
  162. package/dist/collection/components/vega-calendar/vega-calendar.js +158 -2
  163. package/dist/collection/components/vega-card/vega-card.js +1 -1
  164. package/dist/collection/components/vega-carousel/vega-carousel.js +1 -1
  165. package/dist/collection/components/vega-chart/vega-bar-chart/vega-bar-chart.js +1 -1
  166. package/dist/collection/components/vega-chart/vega-line-chart/vega-line-chart.js +1 -1
  167. package/dist/collection/components/vega-chart/vega-pie-chart/vega-pie-chart.js +1 -1
  168. package/dist/collection/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.js +1 -1
  169. package/dist/collection/components/vega-checkbox/vega-checkbox.js +1 -1
  170. package/dist/collection/components/vega-chip/vega-chip.js +1 -1
  171. package/dist/collection/components/vega-code-block/vega-code-block.js +1 -1
  172. package/dist/collection/components/vega-color-picker/vega-color-picker.js +1 -1
  173. package/dist/collection/components/vega-color-swatch/vega-color-swatch-picker/vega-color-swatch-picker.js +1 -1
  174. package/dist/collection/components/vega-color-swatch/vega-color-swatch.js +1 -1
  175. package/dist/collection/components/vega-combo-box/vega-combo-box.js +1 -1
  176. package/dist/collection/components/vega-counter-badge/vega-counter-badge.js +1 -1
  177. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +1 -1
  178. package/dist/collection/components/vega-date-picker/vega-date-picker.js +1 -1
  179. package/dist/collection/components/vega-dialog/vega-dialog.js +1 -1
  180. package/dist/collection/components/vega-divider/vega-divider.js +1 -1
  181. package/dist/collection/components/vega-dropdown/vega-dropdown-content-box/vega-dropdown-content-box.js +1 -1
  182. package/dist/collection/components/vega-dropdown/vega-dropdown-group/vega-dropdown-group.js +1 -1
  183. package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.js +1 -1
  184. package/dist/collection/components/vega-dropdown/vega-dropdown.js +1 -1
  185. package/dist/collection/components/vega-field-error/vega-field-error.js +1 -1
  186. package/dist/collection/components/vega-field-label/vega-field-label.js +1 -1
  187. package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +1 -1
  188. package/dist/collection/components/vega-flag-icon/slimmers/controllers/vega-flag-icon-controller.js +6 -6
  189. package/dist/collection/components/vega-flag-icon/vega-flag-icon.js +1 -1
  190. package/dist/collection/components/vega-flex/vega-flex.js +1 -1
  191. package/dist/collection/components/vega-font/vega-font.js +1 -1
  192. package/dist/collection/components/vega-form/vega-form.js +1 -1
  193. package/dist/collection/components/vega-grid/vega-grid.js +1 -1
  194. package/dist/collection/components/vega-hint/vega-hint.js +1 -1
  195. package/dist/collection/components/vega-icon/vega-icon.js +1 -1
  196. package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +1 -1
  197. package/dist/collection/components/vega-input/vega-input.js +1 -1
  198. package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.js +1 -1
  199. package/dist/collection/components/vega-input-numeric/vega-input-numeric.js +1 -1
  200. package/dist/collection/components/vega-input-passcode/vega-input-passcode.js +1 -1
  201. package/dist/collection/components/vega-input-phone-number/slimmers/renderers/country-select-renderer.js +4 -8
  202. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +1 -1
  203. package/dist/collection/components/vega-input-range/vega-input-range.js +1 -1
  204. package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-prefix-icon-renderer.js +8 -28
  205. package/dist/collection/components/vega-input-select/vega-input-select.js +4 -2
  206. package/dist/collection/components/vega-item-toggle/vega-item-toggle.js +1 -1
  207. package/dist/collection/components/vega-loader-wrapper/vega-loader-wrapper.js +1 -1
  208. package/dist/collection/components/vega-loading-indicator/vega-loading-indicator.js +1 -1
  209. package/dist/collection/components/vega-modal/vega-modal.js +1 -1
  210. package/dist/collection/components/vega-nav/vega-left-nav/vega-left-nav.js +1 -1
  211. package/dist/collection/components/vega-nav/vega-left-nav-group/vega-left-nav-group.js +1 -1
  212. package/dist/collection/components/vega-nav/vega-left-nav-link/vega-left-nav-link.js +1 -1
  213. package/dist/collection/components/vega-nav/vega-left-nav-section/vega-left-nav-section.js +1 -1
  214. package/dist/collection/components/vega-nav/vega-nav-card/vega-nav-card.js +1 -1
  215. package/dist/collection/components/vega-page-notification/vega-page-notification-list/vega-page-notification-list.js +1 -1
  216. package/dist/collection/components/vega-page-notification/vega-page-notification.js +1 -1
  217. package/dist/collection/components/vega-pagination/vega-pagination-page-selector-mobile/vega-pagination-page-selector-mobile.js +1 -1
  218. package/dist/collection/components/vega-pagination/vega-pagination-page-size-selector-mobile/vega-pagination-page-size-selector-mobile.js +1 -1
  219. package/dist/collection/components/vega-pagination/vega-pagination.js +1 -1
  220. package/dist/collection/components/vega-popover/vega-popover-content-box/vega-popover-content-box.js +1 -1
  221. package/dist/collection/components/vega-popover/vega-popover.js +1 -1
  222. package/dist/collection/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.js +1 -1
  223. package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +1 -1
  224. package/dist/collection/components/vega-radio/vega-radio-group/vega-radio-group.js +1 -1
  225. package/dist/collection/components/vega-radio/vega-radio.js +1 -1
  226. package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.js +1 -1
  227. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-interceptor-registry.js +2 -2
  228. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy-registry.js +4 -4
  229. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.js +4 -2
  230. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-node-content-strategy.js +1 -1
  231. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-selection.js +3 -3
  232. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-paragraph-strategy.js +2 -2
  233. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/paste-content-strategy.js +1 -1
  234. package/dist/collection/components/vega-rich-text-editor/dto/actions/annotation-action.abstract.js +3 -1
  235. package/dist/collection/components/vega-rich-text-editor/dto/actions/bold-annotation-action.js +1 -0
  236. package/dist/collection/components/vega-rich-text-editor/dto/actions/clear-formatting-annotation-action.js +1 -0
  237. package/dist/collection/components/vega-rich-text-editor/dto/actions/code-annotation-action.js +1 -0
  238. package/dist/collection/components/vega-rich-text-editor/dto/actions/custom-style-annotation-action.js +1 -0
  239. package/dist/collection/components/vega-rich-text-editor/dto/actions/delete-node-annotation-action.js +1 -0
  240. package/dist/collection/components/vega-rich-text-editor/dto/actions/horizontal-alignment-annotation-action.js +1 -0
  241. package/dist/collection/components/vega-rich-text-editor/dto/actions/image-annotation-action.js +1 -0
  242. package/dist/collection/components/vega-rich-text-editor/dto/actions/indent-annotation-action.js +1 -0
  243. package/dist/collection/components/vega-rich-text-editor/dto/actions/italic-annotation-action.js +1 -0
  244. package/dist/collection/components/vega-rich-text-editor/dto/actions/link-annotation-action.js +1 -0
  245. package/dist/collection/components/vega-rich-text-editor/dto/actions/link-group-annotation-action.js +1 -0
  246. package/dist/collection/components/vega-rich-text-editor/dto/actions/selection-change-action.js +1 -0
  247. package/dist/collection/components/vega-rich-text-editor/dto/actions/splittable-action.abstract.js +1 -0
  248. package/dist/collection/components/vega-rich-text-editor/dto/actions/strikethrough-annotation-action.js +1 -0
  249. package/dist/collection/components/vega-rich-text-editor/dto/actions/sync-up-selection-action.js +1 -0
  250. package/dist/collection/components/vega-rich-text-editor/dto/actions/text-color-annotation-action.js +1 -0
  251. package/dist/collection/components/vega-rich-text-editor/dto/actions/text-style-annotation-action.js +1 -0
  252. package/dist/collection/components/vega-rich-text-editor/dto/actions/underline-annotation-action.js +1 -0
  253. package/dist/collection/components/vega-rich-text-editor/dto/annotations/annotation.abstract.js +8 -0
  254. package/dist/collection/components/vega-rich-text-editor/dto/annotations/bold-annotation.js +6 -0
  255. package/dist/collection/components/vega-rich-text-editor/dto/annotations/code-annotation.js +6 -0
  256. package/dist/collection/components/vega-rich-text-editor/dto/annotations/italic-annotation.js +6 -0
  257. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +3 -1
  258. package/dist/collection/components/vega-rich-text-editor/dto/annotations/plain-text-annotation.js +6 -0
  259. package/dist/collection/components/vega-rich-text-editor/dto/annotations/selection-range-annotation.js +6 -0
  260. package/dist/collection/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.js +6 -0
  261. package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-color-annotation.js +6 -0
  262. package/dist/collection/components/vega-rich-text-editor/dto/annotations/underline-annotation.js +6 -0
  263. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +6 -8
  264. package/dist/collection/components/vega-rich-text-editor/dto/blocks/code-block.js +6 -6
  265. package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +1 -2
  266. package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +9 -9
  267. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +7 -7
  268. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +14 -14
  269. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +33 -21
  270. package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +14 -12
  271. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/code-block/code-block-filter-styles-strategy.js +1 -1
  272. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.js +2 -2
  273. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-block-filter-styles-strategy.js +1 -1
  274. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-heading-item-block-filter-styles-strategy.js +1 -1
  275. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-item-block-filter-styles-strategy.js +1 -1
  276. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-title-item-block-filter-styles-strategy.js +1 -1
  277. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/predicate.js +4 -4
  278. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/paragraph-filter-styles-strategy.js +1 -1
  279. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/title-heading-node-filter-styles-strategy.js +1 -1
  280. package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +4 -4
  281. package/dist/collection/components/vega-rich-text-editor/dto/nodes/decorator-node.js +1 -0
  282. package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +5 -5
  283. package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +5 -7
  284. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +30 -16
  285. package/dist/collection/components/vega-rich-text-editor/dto/renderers/base-renderer.js +3 -1
  286. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-renderer.abstract.js +1 -0
  287. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.js +1 -0
  288. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/code-block-renderer.js +1 -0
  289. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/html-block-renderer.js +1 -0
  290. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.js +1 -0
  291. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/link-wrapper-renderer.js +25 -5
  292. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.js +1 -0
  293. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.js +1 -0
  294. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.js +1 -0
  295. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/code-block-node-renderer.js +1 -0
  296. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.js +1 -0
  297. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/node-renderer.abstract.js +1 -0
  298. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +1 -0
  299. package/dist/collection/components/vega-rich-text-editor/dto/setup.js +34 -34
  300. package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +1 -0
  301. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/blockquote-extension.js +7 -7
  302. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/dto/rte-blockquote-block.js +1 -2
  303. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/filter-styles-strategies/blockquote-block/blockquote-filter-styles-strategy.js +1 -1
  304. package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/renderers/blockquote-block-renderer.js +1 -0
  305. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/action-handler-interceptors/delete-bookmark-before-text-interceptor.js +40 -0
  306. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/action-handler-strategies/insert-bookmark-node-strategy.js +20 -0
  307. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/action-handler-strategies/update-bookmark-name-strategy.js +12 -0
  308. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/actions/insert-bookmark-node-action.js +17 -0
  309. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/actions/update-bookmark-name-action.js +14 -0
  310. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/anchor-to-bookmark-node-strategy.js +79 -0
  311. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/assets/bookmark.js +5 -0
  312. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/bookmark-extension.js +52 -0
  313. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/bookmark-node.js +91 -0
  314. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/renderers/bookmark-node-renderer.js +316 -0
  315. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/renderers/bookmark-toolbar-button-renderer.js +137 -0
  316. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/utils.js +47 -0
  317. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/slimmers/controllers/bookmark-editor-controller.js +217 -0
  318. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/slimmers/renderers/vega-rich-text-bookmark-editor-renderer.js +116 -0
  319. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/vega-rich-text-bookmark-editor.css +3 -0
  320. package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/vega-rich-text-bookmark-editor.js +261 -0
  321. package/dist/collection/components/vega-rich-text-editor/extensions/copy/copy-extension.js +1 -1
  322. package/dist/collection/components/vega-rich-text-editor/extensions/find-replace/vega-rich-text-find-replace-panel/vega-rich-text-find-replace-panel.js +1 -1
  323. package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/function-block.js +1 -2
  324. package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/logic-control-block.js +1 -2
  325. package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/logic-control-node.js +1 -2
  326. package/dist/collection/components/vega-rich-text-editor/extensions/functions/function-extension.js +15 -15
  327. package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/function-block-renderer.js +1 -0
  328. package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/logic-control-block-renderer.js +1 -0
  329. package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/dto/horizontal-line-block.js +1 -2
  330. package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/dto/horizontal-line-node.js +1 -0
  331. package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/filter-styles-strategies/horizontal-line-block/horizontal-line-filter-styles-strategy.js +1 -1
  332. package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/horizontal-line-extension.js +6 -6
  333. package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/renderers/horizontal-line-block-renderer.js +1 -0
  334. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/actions/line-height-annotation-action.js +1 -0
  335. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-annotation-handler.js +3 -3
  336. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/line-height-extension.js +2 -2
  337. package/dist/collection/components/vega-rich-text-editor/extensions/line-height/line-height-toolbar-button-renderer.js +1 -1
  338. package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-extension.js +1 -1
  339. package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/vega-rich-text-special-characters-panel.js +1 -1
  340. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.js +1 -0
  341. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.js +1 -0
  342. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.js +1 -0
  343. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/update-table-properties-action.js +1 -0
  344. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler.js +1 -1
  345. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-cell-annotation-handler.js +1 -1
  346. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-head-cell-annotation-handler.js +1 -1
  347. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +1 -2
  348. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-body-block.js +1 -2
  349. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.js +4 -4
  350. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.js +1 -2
  351. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-block.js +1 -2
  352. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.js +1 -2
  353. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-row-block.js +1 -2
  354. package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-block/table-block-filter-styles-strategy.js +1 -1
  355. package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-caption/table-caption-filter-styles-strategy.js +1 -1
  356. package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-cell/table-cell-filter-styles-strategy.js +1 -1
  357. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.js +1 -0
  358. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.js +1 -0
  359. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.js +1 -0
  360. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.js +1 -0
  361. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.js +1 -0
  362. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.js +1 -0
  363. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.js +1 -0
  364. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +38 -38
  365. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.js +1 -1
  366. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.js +1 -1
  367. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.js +1 -1
  368. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-extension.js +2 -2
  369. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.js +1 -0
  370. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node.js +1 -2
  371. package/dist/collection/components/vega-rich-text-editor/extensions/word-count/word-count-extension.js +1 -1
  372. package/dist/collection/components/vega-rich-text-editor/public-api.js +1 -0
  373. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/focus-controller.js +26 -4
  374. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/bold-annotaion-handler.js +1 -1
  375. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/code-annotation-handler.js +1 -1
  376. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/color-annotation-handler.js +1 -1
  377. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.js +3 -3
  378. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/image-alt-annotation-handler.js +1 -1
  379. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/image-size-annotation-handler.js +1 -1
  380. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/indent-annotation-handler.js +1 -1
  381. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/inline-html-annotation-handler.js +1 -1
  382. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/italic-annotation-handler.js +1 -1
  383. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/link-annotation-handler.js +1 -1
  384. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/strike-through-annotation-handler.js +1 -1
  385. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-align-annotation-handler.js +1 -1
  386. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-style-annotation-handler.js +1 -1
  387. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/underline-annotation-handler.js +1 -1
  388. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/state-entity-rendering-registry.js +1 -1
  389. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bold-toolbar-button-slimmer.js +1 -1
  390. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/clear-style-toolbar-button-slimmer.js +1 -1
  391. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/code-toolbar-button-slimmer.js +1 -1
  392. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/horizontal-alignment-toolbar-button-slimmer.js +1 -1
  393. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/italic-toolbar-button-slimmer.js +1 -1
  394. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/less-indent-toolbar-button-slimmer.js +1 -1
  395. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.js +1 -1
  396. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/more-indent-toolbar-button-slimmer.js +1 -1
  397. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.js +3 -0
  398. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/strikethrough-toolbar-button-slimmer.js +1 -1
  399. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-color-toolbar-button-slimmer.js +1 -1
  400. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.js +1 -1
  401. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/underline-toolbar-button-slimmer.js +1 -1
  402. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/vega-rich-text-editor-toolbar-button.js +1 -1
  403. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +1 -1
  404. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/vega-rich-text-image-editor.js +1 -1
  405. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-editor-controller.js +69 -5
  406. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-type-config-controller.js +45 -1
  407. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/vega-rich-text-link-editor-renderer.js +61 -2
  408. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.js +1 -1
  409. package/dist/collection/components/vega-section-title/vega-section-title.js +1 -1
  410. package/dist/collection/components/vega-segment-control/slimmers/renderers/vega-segment-renderer.js +8 -1
  411. package/dist/collection/components/vega-segment-control/vega-segment-control.js +24 -1
  412. package/dist/collection/components/vega-selection-chip/vega-selection-chip-group/vega-selection-chip-group.js +1 -1
  413. package/dist/collection/components/vega-selection-chip/vega-selection-chip.js +1 -1
  414. package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.js +1 -1
  415. package/dist/collection/components/vega-selection-tile/vega-selection-tile.js +1 -1
  416. package/dist/collection/components/vega-sidenav/vega-sidenav-group/vega-sidenav-group.js +1 -1
  417. package/dist/collection/components/vega-sidenav/vega-sidenav-link/vega-sidenav-link.js +1 -1
  418. package/dist/collection/components/vega-sidenav/vega-sidenav.js +1 -1
  419. package/dist/collection/components/vega-signature-capture/vega-signature-capture.js +1 -1
  420. package/dist/collection/components/vega-skeleton/vega-skeleton.js +1 -1
  421. package/dist/collection/components/vega-slot-container/vega-slot-container.js +1 -1
  422. package/dist/collection/components/vega-stepper/vega-stepper.js +1 -1
  423. package/dist/collection/components/vega-tab-group/helpers/vega-tab-group-width-layout-helper.js +91 -0
  424. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-pages-controller.js +90 -16
  425. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-slider-state-controller.js +16 -1
  426. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-constrained-tab-label-renderer.js +52 -0
  427. package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.js +52 -10
  428. package/dist/collection/components/vega-tab-group/vega-tab-group-panel/vega-tab-group-panel.js +1 -1
  429. package/dist/collection/components/vega-tab-group/vega-tab-group.css +51 -1
  430. package/dist/collection/components/vega-tab-group/vega-tab-group.js +46 -1
  431. package/dist/collection/components/vega-table/slimmers/controllers/dto/column-render-input-model.js +25 -8
  432. package/dist/collection/components/vega-table/slimmers/controllers/dto/row-render-input-model.js +41 -0
  433. package/dist/collection/components/vega-table/slimmers/controllers/vega-table-head-template-structure-controller.js +1 -0
  434. package/dist/collection/components/vega-table/slimmers/controllers/vega-table-render-input-controller.js +316 -18
  435. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-body-renderer.js +6 -1
  436. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-header-renderer.js +1 -0
  437. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.js +33 -530
  438. package/dist/collection/components/vega-table/slimmers/renderers/vega-table-row-renderer.js +1 -0
  439. package/dist/collection/components/vega-table/vega-table-body/vega-table-body.js +1 -1
  440. package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.css +10 -0
  441. package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.js +26 -9
  442. package/dist/collection/components/vega-table/vega-table-expand-row/slimmers/renderers/vega-table-expand-row-renderer.js +14 -6
  443. package/dist/collection/components/vega-table/vega-table-expand-row/vega-table-expand-row.css +20 -0
  444. package/dist/collection/components/vega-table/vega-table-expand-row/vega-table-expand-row.js +8 -1
  445. package/dist/collection/components/vega-table/vega-table-foot/vega-table-foot.js +1 -1
  446. package/dist/collection/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.js +21 -2
  447. package/dist/collection/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.css +10 -0
  448. package/dist/collection/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.js +13 -2
  449. package/dist/collection/components/vega-table/vega-table-foot-row/slimmers/renderers/vega-table-foot-row-renderer.js +20 -13
  450. package/dist/collection/components/vega-table/vega-table-foot-row/vega-table-foot-row.css +26 -0
  451. package/dist/collection/components/vega-table/vega-table-foot-row/vega-table-foot-row.js +13 -1
  452. package/dist/collection/components/vega-table/vega-table-head/vega-table-head.js +1 -1
  453. package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.css +10 -0
  454. package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.js +20 -7
  455. package/dist/collection/components/vega-table/vega-table-head-row/slimmers/renderers/vega-table-head-row-renderer.js +21 -46
  456. package/dist/collection/components/vega-table/vega-table-head-row/vega-table-head-row.css +16 -7
  457. package/dist/collection/components/vega-table/vega-table-head-row/vega-table-head-row.js +10 -3
  458. package/dist/collection/components/vega-table/vega-table-row/slimmers/renderers/vega-table-row-renderer.js +28 -13
  459. package/dist/collection/components/vega-table/vega-table-row/vega-table-row.css +26 -0
  460. package/dist/collection/components/vega-table/vega-table-row/vega-table-row.js +12 -1
  461. package/dist/collection/components/vega-table/vega-table.js +1 -1
  462. package/dist/collection/components/vega-text/vega-text.js +1 -1
  463. package/dist/collection/components/vega-textarea/vega-textarea.js +1 -1
  464. package/dist/collection/components/vega-time-picker/vega-time-picker-dropdown/vega-time-picker-dropdown.js +1 -1
  465. package/dist/collection/components/vega-time-picker/vega-time-picker.js +1 -1
  466. package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.js +1 -1
  467. package/dist/collection/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.js +1 -1
  468. package/dist/collection/components/vega-tooltip/vega-tooltip.js +1 -1
  469. package/dist/collection/components/vega-virtual-scroll/vega-virtual-scroll.js +1 -1
  470. package/dist/collection/constants/tokens/themes/v2-new-brand/dark-mode-border-tokens.js +1 -1
  471. package/dist/collection/constants/tokens/themes/v2-new-brand/dark-mode-color-tokens.js +20 -20
  472. package/dist/collection/constants/tokens/themes/v2-new-brand/dark-mode-ring-tokens.js +1 -1
  473. package/dist/collection/constants/tokens/themes/v2-new-brand/dark-mode-shadow-tokens.js +1 -1
  474. package/dist/collection/constants/tokens/themes/v2-new-brand/light-mode-border-tokens.js +1 -1
  475. package/dist/collection/constants/tokens/themes/v2-new-brand/light-mode-color-tokens.js +19 -19
  476. package/dist/collection/constants/tokens/themes/v2-new-brand/light-mode-shadow-tokens.js +1 -1
  477. package/dist/collection/constants/ui.js +2 -0
  478. package/dist/collection/global/scripts/before-vega-load.js +10 -0
  479. package/dist/collection/helpers/common/wait-for-vega-handler.js +5 -2
  480. package/dist/collection/helpers/dialog/vega-dialog-controller.js +5 -2
  481. package/dist/collection/helpers/discriminator/discriminated.js +77 -0
  482. package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +11 -2
  483. package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +2 -0
  484. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +3 -1
  485. package/dist/collection/helpers/event-manager/vega-event-manager.js +5 -2
  486. package/dist/collection/helpers/icon/icon-manager.js +5 -2
  487. package/dist/collection/helpers/loading-indicator/vega-loader-controller.js +5 -2
  488. package/dist/collection/helpers/notify/vega-notify-controller.js +5 -2
  489. package/dist/collection/helpers/public-api.js +1 -0
  490. package/dist/collection/helpers/rte-manager/dto-action-strategy-manager.js +2 -2
  491. package/dist/collection/helpers/rte-manager/dto-renderer-manager.js +2 -4
  492. package/dist/collection/helpers/skeleton-loader/vega-skeleton-loader-controller.js +5 -2
  493. package/dist/collection/helpers/slimmers/position-calculation/position-calculation-controller.js +8 -0
  494. package/dist/collection/helpers/slimmers/position-calculation/screen-position-calculation-strategy.js +10 -0
  495. package/dist/collection/helpers/slimmers/runtime-metrics/create-public-api-runtime-metrics-slimmer.js +1 -1
  496. package/dist/collection/helpers/slimmers/vega-table-child-render-input-consumer-slimmer.js +2 -0
  497. package/dist/collection/helpers/theme/theme-manager.js +5 -2
  498. package/dist/collection/helpers/translation/locales/en.js +11 -0
  499. package/dist/collection/helpers/translation/translation.js +5 -2
  500. package/dist/collection/helpers/ui/element-appender.js +1 -0
  501. package/dist/collection/helpers/zindex/vega-z-index-manager.js +5 -2
  502. package/dist/esm/{action-color-accessibility-validator-08877515.js → action-color-accessibility-validator-3e824a59.js} +1 -1
  503. package/dist/esm/{app-globals-1e1371d5.js → app-globals-da5c83c2.js} +21 -12
  504. package/dist/esm/{aria-dialog-focusable-trap-slimmer-b2a24a45.js → aria-dialog-focusable-trap-slimmer-27a6aa19.js} +1 -1
  505. package/dist/esm/{child-nodes-event-prevent-slimmer-82626871.js → child-nodes-event-prevent-slimmer-3ae5c7db.js} +1 -1
  506. package/dist/esm/{code-block-741d6b8e.js → code-block-d8f83d85.js} +1036 -938
  507. package/dist/esm/{component-usage-runtime-metrics-4b1afd04.js → component-usage-runtime-metrics-adfc80c6.js} +8 -5
  508. package/dist/esm/{component-value-history-controller-slimmer.abstract-2bcd749e.js → component-value-history-controller-slimmer.abstract-642e7147.js} +4 -4
  509. package/dist/esm/{content-state-2f6f4204.js → content-state-486eae1d.js} +90 -88
  510. package/dist/esm/countries-50d3339b.js +249 -0
  511. package/dist/esm/{dark-mode-style-controller-352f15ff.js → dark-mode-style-controller-4e04a2d3.js} +45 -45
  512. package/dist/esm/{date-required-rule-2ea3aec8.js → date-required-rule-08695d25.js} +1 -1
  513. package/dist/esm/{design-token-82a4e107.js → design-token-df3331d9.js} +3 -3
  514. package/dist/esm/{create-public-api-runtime-metrics-slimmer-48f85199.js → discriminated-fe5bf3c8.js} +63 -2
  515. package/dist/esm/{element-appender-slimmer-c820c0bf.js → element-appender-slimmer-f02a227f.js} +22 -3
  516. package/dist/esm/{event-emit-slimmer-e8bb2292.js → event-emit-slimmer-aa7f4c6e.js} +1 -1
  517. package/dist/esm/{form-field-controller-slimmer-02165dbe.js → form-field-controller-slimmer-a7c0a0f8.js} +3 -3
  518. package/dist/esm/{icon-manager-4ef3f6dd.js → icon-manager-236d6c23.js} +5 -3
  519. package/dist/esm/{image-annotation-action-972c1074.js → image-annotation-action-df744ba5.js} +7 -6
  520. package/dist/esm/image-extension-20b39140.js +1200 -0
  521. package/dist/esm/index-090d31ca.js +4 -0
  522. package/dist/esm/index.js +28 -26
  523. package/dist/esm/{inject-keyboard-manager-6a10c9b7.js → inject-keyboard-manager-399ed867.js} +1 -1
  524. package/dist/esm/{internal-calendar-period-factory-d1a60f81.js → internal-calendar-period-factory-7b866c3b.js} +1 -1
  525. package/dist/esm/{internal-icon-manager-e7c57096.js → internal-icon-manager-d4d534d2.js} +1 -1
  526. package/dist/esm/{internal-translation-controller-fff376d2.js → internal-translation-controller-4a7ee4d5.js} +11 -0
  527. package/dist/esm/{internal-vega-event-manager-2ecc9186.js → internal-vega-event-manager-6eebe8f8.js} +11 -2
  528. package/dist/esm/{keyboard-manager-a58288df.js → keyboard-manager-f5d13a34.js} +1 -1
  529. package/dist/esm/{keyboard-manager-slimmer-133b86cd.js → keyboard-manager-slimmer-f40dcb54.js} +1 -1
  530. package/dist/esm/{link-extension-e89acb5c.js → link-extension-3f93d70d.js} +9 -8
  531. package/dist/esm/loader.js +23 -21
  532. package/dist/esm/{month-view-generator-20e32b22.js → month-view-generator-0c665987.js} +1 -1
  533. package/dist/esm/{public-rules-c154201b.js → public-rules-470a1dac.js} +11 -9
  534. package/dist/esm/{range-c818a1eb.js → range-8e89fb54.js} +1 -1
  535. package/dist/esm/{responsive-format-facade-07843ec3.js → responsive-format-facade-55131a33.js} +1 -1
  536. package/dist/esm/{rich-text-editor-required-rule-878e91c6.js → rich-text-editor-required-rule-06caf383.js} +1 -1
  537. package/dist/esm/{split-cell-operation-cc0cdf90.js → split-cell-operation-e158366a.js} +15 -19
  538. package/dist/esm/{state-border-formatter-3b3dcfe8.js → state-border-formatter-2b73fa08.js} +1 -1
  539. package/dist/esm/{string-format-strategy.abstract-44381dcb.js → string-format-strategy.abstract-8c7937e3.js} +1 -1
  540. package/dist/esm/{string-input-formatter-slimmer-76fe52d3.js → string-input-formatter-slimmer-681c6b71.js} +3 -3
  541. package/dist/esm/{string-mask-strategy-999fba4b.js → string-mask-strategy-b8cceee6.js} +2 -2
  542. package/dist/esm/{style-formatter-c4192c99.js → style-formatter-fcd70869.js} +2 -2
  543. package/dist/esm/{sub-state-notify-slimmer-e306c849.js → sub-state-notify-slimmer-ba72f30b.js} +1 -1
  544. package/dist/esm/{sub-state-observer-slimmer-bd85f381.js → sub-state-observer-slimmer-bee1c7fa.js} +1 -1
  545. package/dist/esm/{time-required-rule-0554b114.js → time-required-rule-ce50859b.js} +1 -1
  546. package/dist/esm/{token-extension-35c66684.js → token-extension-2401e753.js} +156 -481
  547. package/dist/esm/{translation-slimmer-77022f2e.js → translation-slimmer-b3f3cf65.js} +1 -1
  548. package/dist/esm/{type-guard-26d83e7e.js → type-guard-08c82e08.js} +1 -1
  549. package/dist/esm/{valid-credit-card-number-rule-f60b6904.js → valid-credit-card-number-rule-66bad519.js} +1 -1
  550. package/dist/esm/vega-accordion.entry.js +14 -14
  551. package/dist/esm/vega-app-footer.entry.js +6 -6
  552. package/dist/esm/vega-app-header-button.entry.js +14 -14
  553. package/dist/esm/vega-backdrop.entry.js +2 -2
  554. package/dist/esm/vega-banner.entry.js +8 -8
  555. package/dist/esm/vega-bar-chart.entry.js +2 -2
  556. package/dist/esm/vega-box.entry.js +8 -8
  557. package/dist/esm/vega-brand-logo.entry.js +6 -6
  558. package/dist/esm/vega-breadcrumb.entry.js +6 -6
  559. package/dist/esm/vega-button-circle.entry.js +13 -13
  560. package/dist/esm/vega-button-group_2.entry.js +10 -10
  561. package/dist/esm/vega-button-link.entry.js +7 -7
  562. package/dist/esm/vega-button.entry.js +11 -11
  563. package/dist/esm/vega-calendar_5.entry.js +191 -44
  564. package/dist/esm/vega-card.entry.js +7 -7
  565. package/dist/esm/vega-carousel.entry.js +8 -8
  566. package/dist/esm/vega-checkbox_2.entry.js +11 -11
  567. package/dist/esm/vega-chip.entry.js +11 -11
  568. package/dist/esm/vega-code-block.entry.js +19 -19
  569. package/dist/esm/vega-color-picker.entry.js +9 -9
  570. package/dist/esm/vega-color-swatch-picker.entry.js +14 -14
  571. package/dist/esm/vega-color-swatch.entry.js +7 -7
  572. package/dist/esm/vega-combo-box.entry.js +16 -16
  573. package/dist/esm/vega-counter-badge.entry.js +2 -2
  574. package/dist/esm/vega-date-picker_2.entry.js +27 -27
  575. package/dist/esm/{vega-dialog-controller-726b74f9.js → vega-dialog-controller-f2d3b6c9.js} +5 -3
  576. package/dist/esm/vega-dialog_2.entry.js +12 -12
  577. package/dist/esm/vega-divider.entry.js +7 -7
  578. package/dist/esm/vega-dropdown_5.entry.js +21 -21
  579. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  580. package/dist/esm/{vega-event-id-f55f6977.js → vega-event-id-6b4db259.js} +3 -1
  581. package/dist/esm/vega-field-error.entry.js +2 -2
  582. package/dist/esm/vega-field-label.entry.js +7 -7
  583. package/dist/esm/vega-file-uploader.entry.js +13 -13
  584. package/dist/esm/vega-flag-icon.entry.js +16 -16
  585. package/dist/esm/vega-flex.entry.js +8 -8
  586. package/dist/esm/vega-font.entry.js +7 -7
  587. package/dist/esm/vega-form.entry.js +11 -11
  588. package/dist/esm/vega-grid.entry.js +7 -7
  589. package/dist/esm/vega-hint.entry.js +2 -2
  590. package/dist/esm/vega-icon.entry.js +9 -9
  591. package/dist/esm/vega-image-uploader.entry.js +16 -16
  592. package/dist/esm/vega-input-credit-card.entry.js +17 -17
  593. package/dist/esm/vega-input-numeric.entry.js +14 -14
  594. package/dist/esm/vega-input-passcode.entry.js +13 -13
  595. package/dist/esm/vega-input-phone-number.entry.js +18 -271
  596. package/dist/esm/vega-input-range.entry.js +11 -11
  597. package/dist/esm/vega-input-select.entry.js +26 -43
  598. package/dist/esm/vega-input.entry.js +17 -17
  599. package/dist/esm/{vega-internal-event-id-86fce049.js → vega-internal-event-id-02093067.js} +4 -2
  600. package/dist/esm/vega-item-toggle.entry.js +5 -5
  601. package/dist/esm/vega-left-nav_5.entry.js +23 -23
  602. package/dist/esm/vega-line-chart.entry.js +2 -2
  603. package/dist/esm/vega-loader-wrapper_2.entry.js +6 -6
  604. package/dist/esm/vega-page-notification_2.entry.js +4 -4
  605. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +6 -6
  606. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +6 -6
  607. package/dist/esm/vega-pagination.entry.js +11 -11
  608. package/dist/esm/vega-pie-chart.entry.js +2 -2
  609. package/dist/esm/vega-popover_2.entry.js +16 -16
  610. package/dist/esm/vega-progress-tracker_2.entry.js +12 -12
  611. package/dist/esm/vega-radio_2.entry.js +14 -14
  612. package/dist/esm/vega-rich-text-bookmark-editor.entry.js +441 -0
  613. package/dist/esm/vega-rich-text-content.entry.js +53 -21
  614. package/dist/esm/vega-rich-text-editor_4.entry.js +244 -56
  615. package/dist/esm/vega-rich-text-find-replace-panel.entry.js +9 -9
  616. package/dist/esm/vega-rich-text-special-characters-panel.entry.js +10 -10
  617. package/dist/esm/vega-rich-text-table-properties_3.entry.js +20 -20
  618. package/dist/esm/vega-section-title.entry.js +2 -2
  619. package/dist/esm/vega-segment-control.entry.js +13 -6
  620. package/dist/esm/vega-selection-chip_2.entry.js +14 -14
  621. package/dist/esm/vega-selection-tile_2.entry.js +12 -12
  622. package/dist/esm/vega-sidenav_3.entry.js +16 -16
  623. package/dist/esm/vega-signature-capture.entry.js +17 -17
  624. package/dist/esm/vega-skeleton.entry.js +2 -2
  625. package/dist/esm/vega-slot-container.entry.js +2 -2
  626. package/dist/esm/vega-stepper.entry.js +10 -10
  627. package/dist/esm/vega-tab-group_2.entry.js +398 -108
  628. package/dist/esm/vega-table_11.entry.js +639 -680
  629. package/dist/esm/vega-text.entry.js +2 -2
  630. package/dist/esm/vega-textarea.entry.js +10 -10
  631. package/dist/esm/vega-time-picker_2.entry.js +18 -18
  632. package/dist/esm/vega-toggle-switch.entry.js +9 -9
  633. package/dist/esm/vega-tooltip_2.entry.js +10 -10
  634. package/dist/esm/vega.js +23 -21
  635. package/dist/esm/{wait-for-component-did-render-9b91a826.js → wait-for-component-did-render-9e84d92d.js} +1 -1
  636. package/dist/sri/vega-sri-manifest.json +432 -424
  637. package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-preview-actions-controller.d.ts +2 -0
  638. package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.d.ts +18 -0
  639. package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-preview-popover-renderer.d.ts +9 -0
  640. package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.d.ts +9 -1
  641. package/dist/types/components/vega-calendar/types.d.ts +28 -0
  642. package/dist/types/components/vega-calendar/vega-calendar-event-preview/assets/delete.d.ts +3 -0
  643. package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.d.ts +1 -0
  644. package/dist/types/components/vega-calendar/vega-calendar.d.ts +43 -1
  645. package/dist/types/components/vega-flag-icon/slimmers/controllers/vega-flag-icon-controller.d.ts +2 -2
  646. package/dist/types/components/vega-input-phone-number/slimmers/renderers/country-select-renderer.d.ts +0 -1
  647. package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-prefix-icon-renderer.d.ts +2 -14
  648. package/dist/types/components/vega-input-select/vega-input-select.d.ts +1 -0
  649. package/dist/types/components/vega-rich-text-editor/dto/actions/annotation-action.abstract.d.ts +3 -1
  650. package/dist/types/components/vega-rich-text-editor/dto/actions/bold-annotation-action.d.ts +1 -0
  651. package/dist/types/components/vega-rich-text-editor/dto/actions/clear-formatting-annotation-action.d.ts +1 -0
  652. package/dist/types/components/vega-rich-text-editor/dto/actions/code-annotation-action.d.ts +1 -0
  653. package/dist/types/components/vega-rich-text-editor/dto/actions/custom-style-annotation-action.d.ts +1 -0
  654. package/dist/types/components/vega-rich-text-editor/dto/actions/delete-node-annotation-action.d.ts +1 -0
  655. package/dist/types/components/vega-rich-text-editor/dto/actions/horizontal-alignment-annotation-action.d.ts +1 -0
  656. package/dist/types/components/vega-rich-text-editor/dto/actions/image-annotation-action.d.ts +1 -0
  657. package/dist/types/components/vega-rich-text-editor/dto/actions/indent-annotation-action.d.ts +1 -0
  658. package/dist/types/components/vega-rich-text-editor/dto/actions/italic-annotation-action.d.ts +1 -0
  659. package/dist/types/components/vega-rich-text-editor/dto/actions/link-annotation-action.d.ts +1 -0
  660. package/dist/types/components/vega-rich-text-editor/dto/actions/link-group-annotation-action.d.ts +1 -0
  661. package/dist/types/components/vega-rich-text-editor/dto/actions/selection-change-action.d.ts +1 -0
  662. package/dist/types/components/vega-rich-text-editor/dto/actions/splittable-action.abstract.d.ts +1 -0
  663. package/dist/types/components/vega-rich-text-editor/dto/actions/strikethrough-annotation-action.d.ts +1 -0
  664. package/dist/types/components/vega-rich-text-editor/dto/actions/sync-up-selection-action.d.ts +1 -0
  665. package/dist/types/components/vega-rich-text-editor/dto/actions/text-color-annotation-action.d.ts +1 -0
  666. package/dist/types/components/vega-rich-text-editor/dto/actions/text-style-annotation-action.d.ts +1 -0
  667. package/dist/types/components/vega-rich-text-editor/dto/actions/underline-annotation-action.d.ts +1 -0
  668. package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation.abstract.d.ts +6 -0
  669. package/dist/types/components/vega-rich-text-editor/dto/annotations/bold-annotation.d.ts +4 -0
  670. package/dist/types/components/vega-rich-text-editor/dto/annotations/code-annotation.d.ts +4 -0
  671. package/dist/types/components/vega-rich-text-editor/dto/annotations/italic-annotation.d.ts +4 -0
  672. package/dist/types/components/vega-rich-text-editor/dto/annotations/plain-text-annotation.d.ts +4 -0
  673. package/dist/types/components/vega-rich-text-editor/dto/annotations/selection-range-annotation.d.ts +4 -0
  674. package/dist/types/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.d.ts +4 -0
  675. package/dist/types/components/vega-rich-text-editor/dto/annotations/text-color-annotation.d.ts +4 -0
  676. package/dist/types/components/vega-rich-text-editor/dto/annotations/underline-annotation.d.ts +4 -0
  677. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +3 -6
  678. package/dist/types/components/vega-rich-text-editor/dto/blocks/code-block.d.ts +1 -2
  679. package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +1 -2
  680. package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +1 -2
  681. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +1 -2
  682. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +1 -2
  683. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +12 -3
  684. package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +3 -3
  685. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.d.ts +1 -1
  686. package/dist/types/components/vega-rich-text-editor/dto/nodes/code-block-node.d.ts +1 -2
  687. package/dist/types/components/vega-rich-text-editor/dto/nodes/decorator-node.d.ts +1 -0
  688. package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +1 -2
  689. package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +3 -6
  690. package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +9 -2
  691. package/dist/types/components/vega-rich-text-editor/dto/renderers/base-renderer.d.ts +3 -1
  692. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-renderer.abstract.d.ts +1 -0
  693. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.d.ts +1 -0
  694. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/code-block-renderer.d.ts +1 -0
  695. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/html-block-renderer.d.ts +1 -0
  696. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.d.ts +1 -0
  697. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/link-wrapper-renderer.d.ts +2 -1
  698. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.d.ts +1 -0
  699. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.d.ts +1 -0
  700. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.d.ts +1 -0
  701. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/code-block-node-renderer.d.ts +1 -0
  702. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.d.ts +1 -0
  703. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/node-renderer.abstract.d.ts +1 -0
  704. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.d.ts +1 -0
  705. package/dist/types/components/vega-rich-text-editor/extensions/base-extension-renderer.d.ts +1 -0
  706. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/dto/rte-blockquote-block.d.ts +1 -2
  707. package/dist/types/components/vega-rich-text-editor/extensions/blockquote/renderers/blockquote-block-renderer.d.ts +1 -0
  708. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/action-handler-interceptors/delete-bookmark-before-text-interceptor.d.ts +16 -0
  709. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/action-handler-strategies/insert-bookmark-node-strategy.d.ts +12 -0
  710. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/action-handler-strategies/update-bookmark-name-strategy.d.ts +12 -0
  711. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/actions/insert-bookmark-node-action.d.ts +16 -0
  712. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/actions/update-bookmark-name-action.d.ts +12 -0
  713. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/anchor-to-bookmark-node-strategy.d.ts +52 -0
  714. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/assets/bookmark.d.ts +5 -0
  715. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/bookmark-extension.d.ts +16 -0
  716. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/bookmark-node.d.ts +62 -0
  717. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/renderers/bookmark-node-renderer.d.ts +128 -0
  718. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/renderers/bookmark-toolbar-button-renderer.d.ts +46 -0
  719. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/utils.d.ts +18 -0
  720. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/slimmers/controllers/bookmark-editor-controller.d.ts +86 -0
  721. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/slimmers/renderers/vega-rich-text-bookmark-editor-renderer.d.ts +28 -0
  722. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/types.d.ts +7 -0
  723. package/dist/types/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/vega-rich-text-bookmark-editor.d.ts +77 -0
  724. package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/function-block.d.ts +1 -2
  725. package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/logic-control-block.d.ts +1 -2
  726. package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/logic-control-node.d.ts +1 -2
  727. package/dist/types/components/vega-rich-text-editor/extensions/functions/renderers/function-block-renderer.d.ts +1 -0
  728. package/dist/types/components/vega-rich-text-editor/extensions/functions/renderers/logic-control-block-renderer.d.ts +1 -0
  729. package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/dto/horizontal-line-block.d.ts +1 -2
  730. package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/dto/horizontal-line-node.d.ts +1 -0
  731. package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/renderers/horizontal-line-block-renderer.d.ts +1 -0
  732. package/dist/types/components/vega-rich-text-editor/extensions/line-height/actions/line-height-annotation-action.d.ts +1 -0
  733. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.d.ts +1 -0
  734. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.d.ts +1 -0
  735. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.d.ts +1 -0
  736. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/update-table-properties-action.d.ts +1 -0
  737. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +1 -2
  738. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-body-block.d.ts +1 -2
  739. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.d.ts +1 -2
  740. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.d.ts +1 -2
  741. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-block.d.ts +1 -2
  742. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.d.ts +1 -2
  743. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-row-block.d.ts +1 -2
  744. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.d.ts +1 -0
  745. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.d.ts +1 -0
  746. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.d.ts +1 -0
  747. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.d.ts +1 -0
  748. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.d.ts +1 -0
  749. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.d.ts +1 -0
  750. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.d.ts +1 -0
  751. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.d.ts +1 -0
  752. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node.d.ts +1 -2
  753. package/dist/types/components/vega-rich-text-editor/interface.d.ts +15 -0
  754. package/dist/types/components/vega-rich-text-editor/public-api.d.ts +1 -0
  755. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/focus-controller.d.ts +12 -0
  756. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.d.ts +1 -1
  757. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-editor-controller.d.ts +11 -0
  758. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-type-config-controller.d.ts +26 -0
  759. package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/vega-rich-text-link-editor-renderer.d.ts +8 -0
  760. package/dist/types/components/vega-segment-control/slimmers/renderers/vega-segment-renderer.d.ts +1 -0
  761. package/dist/types/components/vega-segment-control/types.d.ts +2 -0
  762. package/dist/types/components/vega-segment-control/vega-segment-control.d.ts +7 -1
  763. package/dist/types/components/vega-tab-group/helpers/vega-tab-group-width-layout-helper.d.ts +63 -0
  764. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-pages-controller.d.ts +14 -0
  765. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-slider-state-controller.d.ts +3 -0
  766. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-constrained-tab-label-renderer.d.ts +17 -0
  767. package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.d.ts +3 -0
  768. package/dist/types/components/vega-tab-group/types.d.ts +10 -0
  769. package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +22 -0
  770. package/dist/types/components/vega-table/slimmers/controllers/dto/column-render-input-model.d.ts +17 -0
  771. package/dist/types/components/vega-table/slimmers/controllers/dto/row-render-input-model.d.ts +39 -0
  772. package/dist/types/components/vega-table/slimmers/controllers/vega-table-render-input-controller.d.ts +71 -7
  773. package/dist/types/components/vega-table/slimmers/renderers/vega-table-body-renderer.d.ts +1 -0
  774. package/dist/types/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.d.ts +3 -88
  775. package/dist/types/components/vega-table/vega-table-expand-row/slimmers/renderers/vega-table-expand-row-renderer.d.ts +1 -1
  776. package/dist/types/components/vega-table/vega-table-expand-row/vega-table-expand-row.d.ts +5 -0
  777. package/dist/types/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.d.ts +1 -0
  778. package/dist/types/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.d.ts +5 -0
  779. package/dist/types/components/vega-table/vega-table-foot-row/slimmers/renderers/vega-table-foot-row-renderer.d.ts +1 -3
  780. package/dist/types/components/vega-table/vega-table-foot-row/vega-table-foot-row.d.ts +5 -0
  781. package/dist/types/components/vega-table/vega-table-head-row/slimmers/renderers/vega-table-head-row-renderer.d.ts +0 -4
  782. package/dist/types/components/vega-table/vega-table-head-row/vega-table-head-row.d.ts +2 -2
  783. package/dist/types/components/vega-table/vega-table-row/slimmers/renderers/vega-table-row-renderer.d.ts +2 -3
  784. package/dist/types/components/vega-table/vega-table-row/vega-table-row.d.ts +4 -0
  785. package/dist/types/components.d.ts +143 -2
  786. package/dist/types/constants/ui.d.ts +1 -1
  787. package/dist/types/helpers/dialog/vega-dialog-controller.d.ts +3 -2
  788. package/dist/types/helpers/discriminator/discriminated.d.ts +75 -0
  789. package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +2 -0
  790. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +3 -1
  791. package/dist/types/helpers/event-manager/vega-event-manager.d.ts +3 -1
  792. package/dist/types/helpers/icon/icon-manager.d.ts +3 -1
  793. package/dist/types/helpers/loading-indicator/vega-loader-controller.d.ts +3 -1
  794. package/dist/types/helpers/notify/vega-notify-controller.d.ts +3 -1
  795. package/dist/types/helpers/public-api.d.ts +1 -0
  796. package/dist/types/helpers/skeleton-loader/vega-skeleton-loader-controller.d.ts +3 -1
  797. package/dist/types/helpers/slimmers/position-calculation/position-calculation-controller.d.ts +6 -0
  798. package/dist/types/helpers/slimmers/position-calculation/screen-position-calculation-strategy.d.ts +6 -0
  799. package/dist/types/helpers/slimmers/position-calculation/screen-scroll-position-update.d.ts +2 -1
  800. package/dist/types/helpers/slimmers/runtime-metrics/create-public-api-runtime-metrics-slimmer.d.ts +1 -1
  801. package/dist/types/helpers/slimmers/vega-table-child-render-input-consumer-slimmer.d.ts +2 -1
  802. package/dist/types/helpers/theme/theme-manager.d.ts +3 -1
  803. package/dist/types/helpers/translation/interface.d.ts +11 -0
  804. package/dist/types/helpers/translation/translation.d.ts +3 -1
  805. package/dist/types/helpers/zindex/vega-z-index-manager.d.ts +3 -1
  806. package/dist/types/types/components.type.d.ts +9 -1
  807. package/dist/types/types/public-api.d.ts +1 -0
  808. package/dist/types/vega-slimmer/src/common/helpers/global-slimmer-registry.d.ts +10 -3
  809. package/dist/vega/index.esm.js +1 -1
  810. package/dist/vega/{p-46f22f6c.entry.js → p-013939ea.entry.js} +1 -1
  811. package/dist/vega/p-0338f621.entry.js +1 -0
  812. package/dist/vega/{p-61ed7268.entry.js → p-03efc67a.entry.js} +1 -1
  813. package/dist/vega/p-040bd9ca.js +1 -0
  814. package/dist/vega/p-049e64b1.entry.js +1 -0
  815. package/dist/vega/p-061a76c3.entry.js +1 -0
  816. package/dist/vega/{p-6fd8f14b.js → p-087240db.js} +1 -1
  817. package/dist/vega/{p-ab253867.entry.js → p-0e0e66c9.entry.js} +1 -1
  818. package/dist/vega/p-109f0e33.entry.js +1 -0
  819. package/dist/vega/p-15052b2e.entry.js +1 -0
  820. package/dist/vega/{p-9e9f49f4.js → p-1836a6a5.js} +1 -1
  821. package/dist/vega/p-18ddc6a4.entry.js +1 -0
  822. package/dist/vega/p-197388a5.entry.js +1 -0
  823. package/dist/vega/{p-0f344e02.entry.js → p-1b97e751.entry.js} +1 -1
  824. package/dist/vega/{p-bfe5dff7.entry.js → p-1d8a8507.entry.js} +1 -1
  825. package/dist/vega/p-2256eb09.entry.js +1 -0
  826. package/dist/vega/{p-60a74fb7.js → p-23781e76.js} +1 -1
  827. package/dist/vega/p-25e51acb.js +1 -0
  828. package/dist/vega/{p-b2a4314a.js → p-277aab9b.js} +1 -1
  829. package/dist/vega/p-27c9c2a5.entry.js +1 -0
  830. package/dist/vega/p-28c16885.js +1 -0
  831. package/dist/vega/p-29584bb5.js +1 -0
  832. package/dist/vega/p-2f5c4b61.entry.js +1 -0
  833. package/dist/vega/{p-7f395622.entry.js → p-30cc31dd.entry.js} +1 -1
  834. package/dist/vega/{p-76999ea1.entry.js → p-325b804d.entry.js} +1 -1
  835. package/dist/vega/p-361f8996.js +1 -0
  836. package/dist/vega/p-36ee9d54.js +1 -0
  837. package/dist/vega/p-372436a4.entry.js +1 -0
  838. package/dist/vega/{p-96c090c4.js → p-381d8781.js} +1 -1
  839. package/dist/vega/p-38c551a9.entry.js +1 -0
  840. package/dist/vega/{p-8fc0a820.js → p-3b6a6f08.js} +1 -1
  841. package/dist/vega/p-3bb7114b.js +1 -0
  842. package/dist/vega/{p-493108d5.js → p-3bfb53e3.js} +1 -1
  843. package/dist/vega/p-3ce7521e.entry.js +1 -0
  844. package/dist/vega/p-3d060d2f.entry.js +1 -0
  845. package/dist/vega/{p-853a05eb.js → p-3ec4d710.js} +1 -1
  846. package/dist/vega/p-408c3ad4.entry.js +1 -0
  847. package/dist/vega/p-436bd1af.entry.js +1 -0
  848. package/dist/vega/p-43ea1e86.js +1 -0
  849. package/dist/vega/{p-6031bed1.js → p-44245a36.js} +1 -1
  850. package/dist/vega/{p-306720b8.entry.js → p-44e31581.entry.js} +1 -1
  851. package/dist/vega/{p-3911e760.entry.js → p-4503f5b9.entry.js} +1 -1
  852. package/dist/vega/{p-7cc8855d.entry.js → p-467e27af.entry.js} +1 -1
  853. package/dist/vega/{p-5789690b.entry.js → p-46be74fc.entry.js} +1 -1
  854. package/dist/vega/{p-c7d46740.entry.js → p-48100d38.entry.js} +1 -1
  855. package/dist/vega/{p-aaaf21eb.entry.js → p-4c6989ae.entry.js} +1 -1
  856. package/dist/vega/{p-941a83db.js → p-4d20a56f.js} +1 -1
  857. package/dist/vega/p-527c3211.entry.js +1 -0
  858. package/dist/vega/p-53e3f259.js +1 -0
  859. package/dist/vega/{p-02b5d4ac.entry.js → p-553510d8.entry.js} +1 -1
  860. package/dist/vega/p-557b64bd.js +1 -0
  861. package/dist/vega/{p-a488447f.js → p-5a347a15.js} +1 -1
  862. package/dist/vega/p-5c285374.js +1 -0
  863. package/dist/vega/p-5c6d36ef.entry.js +1 -0
  864. package/dist/vega/p-5c8e4e8f.js +1 -0
  865. package/dist/vega/p-5d427a47.entry.js +1 -0
  866. package/dist/vega/p-5f377954.js +1 -1
  867. package/dist/vega/p-634b138c.entry.js +1 -0
  868. package/dist/vega/p-6beaf1c8.entry.js +1 -0
  869. package/dist/vega/p-6d4f6031.entry.js +1 -0
  870. package/dist/vega/{p-638b6a7d.js → p-7044bb48.js} +1 -1
  871. package/dist/vega/p-7228088b.entry.js +1 -0
  872. package/dist/vega/p-741e064e.entry.js +1 -0
  873. package/dist/vega/p-75c7f8ea.entry.js +1 -0
  874. package/dist/vega/p-76135e80.entry.js +1 -0
  875. package/dist/vega/{p-5c3649f9.js → p-7d3419c7.js} +1 -1
  876. package/dist/vega/p-7d748545.entry.js +1 -0
  877. package/dist/vega/p-7dfb1481.entry.js +1 -0
  878. package/dist/vega/p-7f711049.js +1 -0
  879. package/dist/vega/p-7fd15dd1.js +1 -0
  880. package/dist/vega/p-80321148.entry.js +1 -0
  881. package/dist/vega/{p-b97ed9f7.entry.js → p-816064f2.entry.js} +1 -1
  882. package/dist/vega/p-82411b76.entry.js +1 -0
  883. package/dist/vega/{p-3f2a4b34.entry.js → p-83f5ef3a.entry.js} +1 -1
  884. package/dist/vega/{p-ab9d53e9.js → p-85695819.js} +1 -1
  885. package/dist/vega/p-85a940c0.entry.js +1 -0
  886. package/dist/vega/{p-65fee02f.entry.js → p-8a38746d.entry.js} +1 -1
  887. package/dist/vega/p-8a4cc7c2.entry.js +1 -0
  888. package/dist/vega/{p-be783294.entry.js → p-8a6e378a.entry.js} +1 -1
  889. package/dist/vega/{p-35d37477.entry.js → p-8bd29577.entry.js} +1 -1
  890. package/dist/vega/p-8e1f30ec.entry.js +1 -0
  891. package/dist/vega/p-916da3ce.entry.js +1 -0
  892. package/dist/vega/p-92efdbf0.entry.js +1 -0
  893. package/dist/vega/p-9680dfe6.js +1 -0
  894. package/dist/vega/{p-9fb3aeeb.entry.js → p-9a0e17b2.entry.js} +1 -1
  895. package/dist/vega/p-9fd547f3.entry.js +1 -0
  896. package/dist/vega/p-a0c87e88.entry.js +1 -0
  897. package/dist/vega/{p-efc08027.entry.js → p-a261a675.entry.js} +1 -1
  898. package/dist/vega/p-a2fa8c93.entry.js +1 -0
  899. package/dist/vega/p-a5fa260b.js +1 -0
  900. package/dist/vega/p-a83cef5a.js +1 -0
  901. package/dist/vega/{p-2c737fc8.js → p-abad8ffd.js} +1 -1
  902. package/dist/vega/p-ae12cc3f.js +3 -0
  903. package/dist/vega/p-b1557bbe.js +1 -0
  904. package/dist/vega/{p-e14323f3.js → p-b1e1c7d0.js} +1 -1
  905. package/dist/vega/p-b48caf90.entry.js +1 -0
  906. package/dist/vega/{p-379736e2.js → p-b68f55e2.js} +1 -1
  907. package/dist/vega/{p-c576e846.js → p-be0eb72f.js} +1 -1
  908. package/dist/vega/p-bec0e08a.entry.js +1 -0
  909. package/dist/vega/p-bec31ffc.entry.js +1 -0
  910. package/dist/vega/{p-4b35c748.js → p-bf0b46c1.js} +1 -1
  911. package/dist/vega/p-c0823f32.js +1 -0
  912. package/dist/vega/{p-f485448a.js → p-c0eb8c58.js} +1 -1
  913. package/dist/vega/p-c5af2ecc.entry.js +1 -0
  914. package/dist/vega/p-c6419eb3.entry.js +1 -0
  915. package/dist/vega/p-c66c6fd2.entry.js +1 -0
  916. package/dist/vega/p-c6b6987e.js +1 -0
  917. package/dist/vega/p-ca60a74b.entry.js +1 -0
  918. package/dist/vega/{p-c04a90d8.entry.js → p-cb68a43a.entry.js} +1 -1
  919. package/dist/vega/{p-c34f4cbc.js → p-cf5c5515.js} +1 -1
  920. package/dist/vega/p-d1d91f1a.js +1 -0
  921. package/dist/vega/p-d1f47512.js +1 -0
  922. package/dist/vega/p-d7e59f31.js +1 -0
  923. package/dist/vega/{p-6e9e7131.js → p-d86e0b01.js} +1 -1
  924. package/dist/vega/p-d8a0e3e0.entry.js +1 -0
  925. package/dist/vega/{p-411cadbc.entry.js → p-d8fa2f19.entry.js} +1 -1
  926. package/dist/vega/p-dd273d89.entry.js +1 -0
  927. package/dist/vega/p-dd673eb4.entry.js +1 -0
  928. package/dist/vega/{p-0eea1ca8.js → p-dffe47db.js} +1 -1
  929. package/dist/vega/p-e577dda8.entry.js +1 -0
  930. package/dist/vega/{p-d897acd5.js → p-e6f67a44.js} +1 -1
  931. package/dist/vega/p-efef0dfe.entry.js +1 -0
  932. package/dist/vega/p-effbfc50.entry.js +1 -0
  933. package/dist/vega/p-f0b49ae4.entry.js +1 -0
  934. package/dist/vega/{p-5006404e.entry.js → p-f0c6e9c5.entry.js} +1 -1
  935. package/dist/vega/p-f5874834.entry.js +1 -0
  936. package/dist/vega/{p-8cfdd0e8.entry.js → p-f5f26b44.entry.js} +1 -1
  937. package/dist/vega/p-f9f96030.entry.js +1 -0
  938. package/dist/vega/{p-85de755f.js → p-fa43272c.js} +1 -1
  939. package/dist/vega/p-ff9090af.entry.js +1 -0
  940. package/dist/vega/vega.esm.js +1 -1
  941. package/package.json +2 -2
  942. package/dist/cjs/image-extension-ccda26d3.js +0 -56
  943. package/dist/esm/image-extension-59484e9a.js +0 -53
  944. package/dist/vega/p-01ca92e6.entry.js +0 -1
  945. package/dist/vega/p-06a42a9f.entry.js +0 -1
  946. package/dist/vega/p-0cd362f3.entry.js +0 -1
  947. package/dist/vega/p-0e10798b.entry.js +0 -1
  948. package/dist/vega/p-0e298ee8.entry.js +0 -1
  949. package/dist/vega/p-23db0a92.entry.js +0 -1
  950. package/dist/vega/p-284a8828.entry.js +0 -1
  951. package/dist/vega/p-2b26e182.entry.js +0 -1
  952. package/dist/vega/p-2c8dc0d2.entry.js +0 -1
  953. package/dist/vega/p-3abb793c.entry.js +0 -1
  954. package/dist/vega/p-3d6a43df.entry.js +0 -1
  955. package/dist/vega/p-401c6764.js +0 -1
  956. package/dist/vega/p-49de5559.entry.js +0 -1
  957. package/dist/vega/p-4a2fe3a4.js +0 -1
  958. package/dist/vega/p-4d1896e0.entry.js +0 -1
  959. package/dist/vega/p-4e23e56c.entry.js +0 -1
  960. package/dist/vega/p-5447a8e8.js +0 -1
  961. package/dist/vega/p-594cb986.entry.js +0 -1
  962. package/dist/vega/p-5a086e93.js +0 -1
  963. package/dist/vega/p-5b3c8a56.js +0 -1
  964. package/dist/vega/p-5b9b1631.entry.js +0 -1
  965. package/dist/vega/p-5d9be870.entry.js +0 -1
  966. package/dist/vega/p-6336d446.entry.js +0 -1
  967. package/dist/vega/p-7469d0d1.entry.js +0 -1
  968. package/dist/vega/p-74b20563.entry.js +0 -1
  969. package/dist/vega/p-77bcdd35.js +0 -1
  970. package/dist/vega/p-79b49e8d.entry.js +0 -1
  971. package/dist/vega/p-7a03ef96.entry.js +0 -1
  972. package/dist/vega/p-7ae4cf82.entry.js +0 -1
  973. package/dist/vega/p-7ddc0bec.entry.js +0 -1
  974. package/dist/vega/p-7e22610b.entry.js +0 -1
  975. package/dist/vega/p-816b5fd2.entry.js +0 -1
  976. package/dist/vega/p-844ad6aa.entry.js +0 -1
  977. package/dist/vega/p-8663314e.js +0 -1
  978. package/dist/vega/p-86fb46d2.entry.js +0 -1
  979. package/dist/vega/p-8c30a60d.js +0 -1
  980. package/dist/vega/p-8ce9e214.js +0 -1
  981. package/dist/vega/p-8ebe30a8.js +0 -1
  982. package/dist/vega/p-8f00dfe6.js +0 -1
  983. package/dist/vega/p-9034f709.js +0 -1
  984. package/dist/vega/p-9ba2fdff.js +0 -1
  985. package/dist/vega/p-9efa5d76.js +0 -1
  986. package/dist/vega/p-a306bb39.js +0 -1
  987. package/dist/vega/p-a48468b5.entry.js +0 -1
  988. package/dist/vega/p-a647c856.entry.js +0 -1
  989. package/dist/vega/p-a6a89f09.entry.js +0 -1
  990. package/dist/vega/p-a92cd703.js +0 -1
  991. package/dist/vega/p-ad367b48.entry.js +0 -1
  992. package/dist/vega/p-adc64ff6.entry.js +0 -1
  993. package/dist/vega/p-af0cfea0.entry.js +0 -1
  994. package/dist/vega/p-afcd8f04.js +0 -1
  995. package/dist/vega/p-b07f587a.entry.js +0 -1
  996. package/dist/vega/p-b21cc390.entry.js +0 -1
  997. package/dist/vega/p-b52d7724.js +0 -3
  998. package/dist/vega/p-bc0e5598.entry.js +0 -1
  999. package/dist/vega/p-bc119e75.entry.js +0 -1
  1000. package/dist/vega/p-bedb575c.entry.js +0 -1
  1001. package/dist/vega/p-c032f626.entry.js +0 -1
  1002. package/dist/vega/p-c422ee02.entry.js +0 -1
  1003. package/dist/vega/p-cd04b149.entry.js +0 -1
  1004. package/dist/vega/p-cd0a108b.entry.js +0 -1
  1005. package/dist/vega/p-d1bb6e7a.entry.js +0 -1
  1006. package/dist/vega/p-d340ee3d.entry.js +0 -1
  1007. package/dist/vega/p-debf9e06.entry.js +0 -1
  1008. package/dist/vega/p-e0a51e49.js +0 -1
  1009. package/dist/vega/p-e11c6ec4.entry.js +0 -1
  1010. package/dist/vega/p-e5226de6.entry.js +0 -1
  1011. package/dist/vega/p-e5abc288.entry.js +0 -1
  1012. package/dist/vega/p-e8f50fc5.js +0 -1
  1013. package/dist/vega/p-ea1a0046.entry.js +0 -1
  1014. package/dist/vega/p-edd7aa92.entry.js +0 -1
  1015. package/dist/vega/p-ef1bbf14.js +0 -1
  1016. package/dist/vega/p-f8b2dbb9.entry.js +0 -1
  1017. package/dist/vega/p-f8bf379c.entry.js +0 -1
  1018. package/dist/vega/p-f902305d.entry.js +0 -1
  1019. package/dist/vega/p-fe985b52.js +0 -1
  1020. package/dist/vega/p-ffdc25ec.js +0 -1
@@ -0,0 +1,1200 @@
1
+ import { R as RTETextNode, ad as escapeHtmlAttribute, ae as BoldAnnotationAction, af as DeleteNodeAnnotationAction, N as NodeAnnotationTypeEnum, U as UpdateTextAction, l as RemoveChildrenAction, e as ActionHandleStrategy, M as ModifyContentAction, j as ModifyContentActionType, s as stateEntityRenderingRegistry, A as ActionHandleStrategyRegistry, b as RTETextBlock, r as RTEListItemBlock } from './code-block-d8f83d85.js';
2
+ import { e as extensionContextManager, a as VegaRTEExtensionRenderer, b as VegaRTEExtension } from './link-extension-3f93d70d.js';
3
+ import { g as generateUUID } from './misc-9fdbcfbb.js';
4
+ import { E as ElementToDTOStrategy, U as UpdateCursorPositionAction } from './content-state-486eae1d.js';
5
+ import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-bb7e68a0.js';
6
+ import { d as VegaDropdownClick, b as VegaClick, c as VegaChange } from './vega-event-id-6b4db259.js';
7
+ import { V as VegaInternalTranslation } from './internal-translation-controller-4a7ee4d5.js';
8
+ import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-c899a968.js';
9
+ import { d as debounce } from './timer-9321173b.js';
10
+ import { t as tryGetDocument } from './try-get-document-bef0f526.js';
11
+ import { V as VegaInternalIconManager } from './internal-icon-manager-d4d534d2.js';
12
+ import { i as isNonNullable } from './type-guard-08c82e08.js';
13
+ import { v as vegaNonceManager } from './vega-nonce-manager-497e5eb5.js';
14
+
15
+ /**
16
+ * Base class for rendering extension toolbar button in the rich text editor.
17
+ * The renderer provides common functionalities for rendering toolbar buttons, including:
18
+ * - Rendering a button with an icon, label, and optional arrow icon.
19
+ * - Rendering a dropdown with a list of items.
20
+ * - Rendering dropdown items.
21
+ * - Rendering template for dropdown list.
22
+ * - Determining if the button should be disabled based on the editor context.
23
+ * - Handling button and dropdown click events.
24
+ * Override the methods to customize the rendering and behavior of the button.
25
+ */
26
+ class VegaRTEToolbarButtonRenderer {
27
+ constructor() {
28
+ this.dropdownEl = null;
29
+ this.itemsContainerEl = null;
30
+ this.buttonEl = null;
31
+ }
32
+ /**
33
+ * Checks if the button should be hidden.
34
+ *
35
+ * @param {VegaRTEToolbarRenderContext} editorContext The render context for the editor.
36
+ * @returns {boolean} True if the button is hidden, false otherwise.
37
+ */
38
+ isHidden(editorContext) {
39
+ return editorContext.sourceEditMode;
40
+ }
41
+ /**
42
+ * Get the extension context for the given rich text editor host element.
43
+ *
44
+ * @typedef HTMLVegaRichTextEditorElement - The type definition for the rich text editor host element.
45
+ * @param {HTMLVegaRichTextEditorElement} el - The host rich text editor element.
46
+ * @returns {Nullable<RTEExtensionContext>} - The extension context associated with the host.
47
+ */
48
+ getExtensionContext(el) {
49
+ return extensionContextManager.getExtensionContext(el);
50
+ }
51
+ /**
52
+ * Renders a dropdown component with the specified properties and children.
53
+ *
54
+ * @param {VegaRTECreateElementFunction} h - Create element function.
55
+ * @param {VegaRTEToolbarRenderContext} editorContext - The render context for the editor.
56
+ * @param {RTEToolbarDropdownProps} dropdownProps - The properties for the dropdown.
57
+ * @param {VegaRTERenderResult[]} children - The children elements for the dropdown.
58
+ * @returns {VegaRTERenderResult} - The render result for the dropdown.
59
+ */
60
+ renderDropdown(h, editorContext, dropdownProps, children) {
61
+ return h('vega-dropdown', Object.assign({ trigger: 'click', searchable: false, maxWidth: '200', itemDisplayRule: 'ellipsis', isScreenPosition: true, role: 'presentation',
62
+ // eslint-disable-next-line jsdoc/require-jsdoc
63
+ ref: (el) => {
64
+ this.dropdownEl = el;
65
+ DomNodeSubjectObserverFactory.addUniqueObserverToNode(el, VegaDropdownClick, (input) => {
66
+ const payload = input;
67
+ this.handleDropdownClick(payload.detail, editorContext);
68
+ });
69
+ } }, dropdownProps), children);
70
+ }
71
+ /**
72
+ * Renders the dropdown list template.
73
+ *
74
+ * @param {VegaRTECreateElementFunction} h - Create element function.
75
+ * @param {(RTEDropdownListItem | RTEDropdownListGroup)[]} itemList - The list of dropdown items.
76
+ * @param {VegaRTEToolbarRenderContext} editorContext - The render context for the editor.
77
+ * @returns {VegaRTERenderResult} - The render result for the dropdown list.
78
+ */
79
+ renderDropdownListTemplate(h, itemList, editorContext) {
80
+ return h('div', {
81
+ slot: 'items',
82
+ onMouseDown: this.preventDefault,
83
+ // eslint-disable-next-line jsdoc/require-jsdoc
84
+ onKeyDown: (e) => this.handleItemsKeyDown(e),
85
+ // eslint-disable-next-line jsdoc/require-jsdoc
86
+ ref: (el) => {
87
+ this.itemsContainerEl = el;
88
+ },
89
+ class: 'rte-dropdown-list',
90
+ }, [
91
+ h('style', { nonce: vegaNonceManager.nonce }, '.rte-dropdown-list vega-dropdown-group vega-dropdown-group { padding-left: 4px }'),
92
+ ...itemList.map((item) => {
93
+ return 'children' in item
94
+ ? this.renderDropdownGroup(h, item, editorContext)
95
+ : this.renderDropdownItem(h, item, editorContext);
96
+ }),
97
+ ]);
98
+ }
99
+ /**
100
+ * Renders a dropdown item for the toolbar button.
101
+ *
102
+ * @param {VegaRTECreateElementFunction} h - Create element function.
103
+ * @param {RTEDropdownListItem} item - The dropdown item.
104
+ * @param {VegaRTEToolbarRenderContext} editorContext - The render context for the editor.
105
+ * @returns {VegaRTERenderResult} - The render result for the dropdown item.
106
+ */
107
+ renderDropdownItem(h, item, editorContext) {
108
+ return h('vega-dropdown-item', {
109
+ key: item.key,
110
+ itemKey: item.key,
111
+ label: editorContext.translation.t(item.label),
112
+ prefixIcon: item.icon,
113
+ });
114
+ }
115
+ /**
116
+ * Renders a dropdown group for the toolbar button.
117
+ *
118
+ * @param {VegaRTECreateElementFunction} h - Create element function.
119
+ * @param {RTEDropdownListGroup} item - The dropdown group.
120
+ * @param {VegaRTEToolbarRenderContext} editorContext - The render context for the editor.
121
+ * @returns {VegaRTERenderResult} - The render result for the dropdown group.
122
+ */
123
+ renderDropdownGroup(h, item, editorContext) {
124
+ return h('vega-dropdown-group', {
125
+ key: item.key,
126
+ label: editorContext.translation.t(item.label),
127
+ divide: false,
128
+ }, item.children.map((child) => {
129
+ return 'children' in child
130
+ ? this.renderDropdownGroup(h, child, editorContext)
131
+ : this.renderDropdownItem(h, child, editorContext);
132
+ }));
133
+ }
134
+ /**
135
+ * Renders a common toolbar button with optional icon, label, and arrow icon.
136
+ * When a tooltip is provided via `buttonProps.tooltip`, the button is wrapped
137
+ * in a `vega-tooltip` element, matching the behavior of default toolbar buttons.
138
+ *
139
+ * @param {VegaRTECreateElementFunction} h - Create element function.
140
+ * @param {VegaRTEToolbarRenderContext} editorContext - The render context for the editor.
141
+ * @param {RTEToolbarButtonProps} buttonProps - The properties for the button.
142
+ * @returns {VegaRTERenderResult} - The render result for the button.
143
+ */
144
+ renderButton(h, editorContext, buttonProps) {
145
+ const { icon, label, showArrowIcon, tooltip, ariaLabel } = buttonProps;
146
+ const isDisabled = this.isDisabled(editorContext);
147
+ const button = h('vega-rich-text-editor-toolbar-button', {
148
+ 'disabled': isDisabled,
149
+ 'icon': icon,
150
+ 'data-aria-label': ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : label,
151
+ 'hidden': this.isHidden(editorContext),
152
+ 'selected': this.isSelected(editorContext),
153
+ // eslint-disable-next-line jsdoc/require-jsdoc
154
+ 'ref': (el) => {
155
+ this.buttonEl = el;
156
+ DomNodeSubjectObserverFactory.addUniqueObserverToNode(el, VegaClick, () => this.handleButtonClick(editorContext));
157
+ },
158
+ 'onMouseDown': this.preventDefault,
159
+ // eslint-disable-next-line jsdoc/require-jsdoc
160
+ 'onKeyDown': (e) => this.handleButtonKeyDown(e),
161
+ }, [
162
+ this.renderButtonLabel(h, editorContext, label),
163
+ showArrowIcon
164
+ ? h('vega-icon', {
165
+ 'size': 'size-8',
166
+ 'color': isDisabled ? 'text-disabled' : 'text-secondary',
167
+ 'style': { marginLeft: '8px' },
168
+ 'aria-hidden': 'true',
169
+ 'icon': VegaInternalIconManager.getIconKey('chevron-down'),
170
+ })
171
+ : null,
172
+ ].filter(isNonNullable));
173
+ if (tooltip === null || tooltip === void 0 ? void 0 : tooltip.text) {
174
+ return h('vega-tooltip', { text: editorContext.translation.t(tooltip.text), placement: ['bottom', 'top'] }, [button]);
175
+ }
176
+ return button;
177
+ }
178
+ /**
179
+ * Renders the button label.
180
+ *
181
+ * @param {VegaRTECreateElementFunction} h - Create element function.
182
+ * @param {VegaRTEToolbarRenderContext} editorContext - The render context for the editor.
183
+ * @param {Nullable<string>} label - The button label if exist.
184
+ * @returns {Nullable<VegaRTERenderResult>} - The render result for the button.
185
+ */
186
+ renderButtonLabel(h, editorContext, label) {
187
+ if (label) {
188
+ const isDisabled = this.isDisabled(editorContext);
189
+ return h('vega-font', {
190
+ 'variant': 'font-field-label-sm',
191
+ 'color': isDisabled ? 'text-disabled' : 'text-primary',
192
+ 'aria-hidden': 'true',
193
+ }, editorContext.translation.t(label));
194
+ }
195
+ return null;
196
+ }
197
+ /**
198
+ * Determines if the button should be disabled based on the editor context.
199
+ *
200
+ * @param {VegaRTEToolbarRenderContext} editorContext - The render context for the editor.
201
+ * @returns {boolean} - True if the button should be disabled, false otherwise.
202
+ */
203
+ isDisabled(editorContext) {
204
+ return editorContext.host.disabled;
205
+ }
206
+ /**
207
+ * Checks if the button should be selected.
208
+ *
209
+ * @param {VegaRTEToolbarRenderContext} _editorContext The render context for the editor.
210
+ * @returns {boolean} True if the button is selected, false otherwise.
211
+ */
212
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
213
+ isSelected(_editorContext) {
214
+ return false;
215
+ }
216
+ /**
217
+ * Prevents the default action of the click event. This is to avoid losing focus from the editor when the button is clicked.
218
+ *
219
+ * @param {MouseEvent} e The mouse event to prevent default action for.
220
+ */
221
+ preventDefault(e) {
222
+ e.preventDefault();
223
+ }
224
+ /**
225
+ * Moves focus to the toolbar button. Targets the inner focusable `<button>`
226
+ * inside the button's shadow root, falling back to the host element.
227
+ */
228
+ focusToolbarButton() {
229
+ var _a, _b, _c, _d;
230
+ const innerButton = (_c = (_b = (_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('button')) !== null && _c !== void 0 ? _c : null;
231
+ (_d = (innerButton !== null && innerButton !== void 0 ? innerButton : this.buttonEl)) === null || _d === void 0 ? void 0 : _d.focus();
232
+ }
233
+ /**
234
+ * Recursively searches for a dropdown list item by its key.
235
+ *
236
+ * @param {(RTEDropdownListItem | RTEDropdownListGroup)[]} itemList The list of dropdown items or groups to search through.
237
+ * @param {string} key The key of the item to find.
238
+ * @returns {Nullable<RTEDropdownListItem>} The dropdown list item if found, otherwise null.
239
+ */
240
+ getListItemByKey(itemList, key) {
241
+ for (const item of itemList) {
242
+ if ('children' in item) {
243
+ const foundItem = this.getListItemByKey(item.children, key);
244
+ if (foundItem) {
245
+ return foundItem;
246
+ }
247
+ }
248
+ else if (item.key === key) {
249
+ return item;
250
+ }
251
+ }
252
+ return null;
253
+ }
254
+ /**
255
+ * Handles keyboard events on the toolbar button to support dropdown keyboard accessibility.
256
+ * - Enter / Space: Toggles the dropdown open/closed.
257
+ * - ArrowDown / ArrowUp: Opens the dropdown and focuses the first/last item.
258
+ *
259
+ * @param {KeyboardEvent} e The keyboard event.
260
+ */
261
+ handleButtonKeyDown(e) {
262
+ if (!this.dropdownEl) {
263
+ return;
264
+ }
265
+ if (e.code === 'Enter' || e.code === 'Space') {
266
+ e.preventDefault();
267
+ e.stopPropagation();
268
+ this.dropdownEl.dispatchEvent(new MouseEvent('click', { bubbles: true }));
269
+ }
270
+ else if (e.code === 'ArrowDown' || e.code === 'ArrowUp') {
271
+ e.preventDefault();
272
+ e.stopPropagation();
273
+ void this.dropdownEl.show().then(() => {
274
+ this.focusDropdownItem(e.code === 'ArrowDown' ? 'first' : 'last');
275
+ });
276
+ }
277
+ }
278
+ /**
279
+ * Handles keyboard navigation within the dropdown items container.
280
+ * - ArrowDown/ArrowUp: Moves focus to the next/previous non-disabled item.
281
+ * - Escape: Closes the dropdown and returns focus to the toolbar button.
282
+ *
283
+ * @param {KeyboardEvent} e The keyboard event.
284
+ */
285
+ handleItemsKeyDown(e) {
286
+ var _a, _b;
287
+ if (e.code === 'Escape') {
288
+ e.preventDefault();
289
+ e.stopPropagation();
290
+ if (this.dropdownEl) {
291
+ void this.dropdownEl.hide();
292
+ }
293
+ this.focusToolbarButton();
294
+ return;
295
+ }
296
+ if (e.code !== 'ArrowDown' && e.code !== 'ArrowUp') {
297
+ return;
298
+ }
299
+ e.preventDefault();
300
+ e.stopPropagation();
301
+ const items = this.getDropdownItems();
302
+ if (items.length === 0) {
303
+ return;
304
+ }
305
+ const currentIndex = items.findIndex((item) => { var _a, _b; return ((_a = item.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('li')) === ((_b = item.shadowRoot) === null || _b === void 0 ? void 0 : _b.activeElement); });
306
+ const direction = e.code === 'ArrowDown' ? 1 : -1;
307
+ const startIndex = currentIndex === -1 ? (e.code === 'ArrowDown' ? 0 : items.length - 1) : currentIndex + direction;
308
+ for (let offset = 0; offset < items.length; offset++) {
309
+ const index = (startIndex + offset * direction + items.length) % items.length;
310
+ if (!items[index].disabled) {
311
+ (_b = (_a = items[index].shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('li')) === null || _b === void 0 ? void 0 : _b.focus();
312
+ return;
313
+ }
314
+ }
315
+ }
316
+ /**
317
+ * Focuses the first or last non-disabled dropdown item.
318
+ *
319
+ * @param {'first' | 'last'} position Whether to focus the first or last item.
320
+ */
321
+ focusDropdownItem(position) {
322
+ var _a, _b;
323
+ const items = this.getDropdownItems();
324
+ const orderedItems = position === 'first' ? items : [...items].reverse();
325
+ for (const item of orderedItems) {
326
+ if (!item.disabled) {
327
+ (_b = (_a = item.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('li')) === null || _b === void 0 ? void 0 : _b.focus();
328
+ return;
329
+ }
330
+ }
331
+ }
332
+ /**
333
+ * Gets all dropdown items from the items container.
334
+ *
335
+ * @returns {HTMLVegaDropdownItemElement[]} Array of dropdown item elements.
336
+ */
337
+ getDropdownItems() {
338
+ if (!this.itemsContainerEl) {
339
+ return [];
340
+ }
341
+ return Array.from(this.itemsContainerEl.querySelectorAll('vega-dropdown-item'));
342
+ }
343
+ }
344
+
345
+ /**
346
+ * Abstract class for action handler interceptors, which can intercept actions before they are handled.
347
+ */
348
+ class ActionHandlerInterceptor {
349
+ }
350
+
351
+ /**
352
+ * Bookmark node for the Vega Rich Text Editor.
353
+ *
354
+ * A bookmark is a named, zero-width marker that can be used as a local link target.
355
+ * It carries no text content and is never directly editable by the user.
356
+ */
357
+ class RTEBookmarkNode extends RTETextNode {
358
+ constructor(id, name, parentBlock, annotations) {
359
+ super(id, '', parentBlock, annotations);
360
+ this.dtoName = RTEBookmarkNode.dtoName;
361
+ this.type = 'bookmark';
362
+ this.name = name;
363
+ }
364
+ /**
365
+ * @inheritDoc
366
+ */
367
+ static from(value, parent) {
368
+ const node = new RTEBookmarkNode(value.id, value.name, parent);
369
+ if (value.annotations) {
370
+ node.annotationMap = this.generateTextAnnotationMap(value.annotations);
371
+ }
372
+ return node;
373
+ }
374
+ /**
375
+ * Converts the bookmark node to a JSON representation.
376
+ *
377
+ * @returns {VegaRTEBookmarkNode} - The JSON representation of the bookmark node.
378
+ */
379
+ toJSON() {
380
+ const serializedNode = super.toJSON();
381
+ const annotations = serializedNode.annotations;
382
+ return Object.assign(Object.assign({ id: this.id }, (annotations ? { annotations } : {})), { type: this.type, text: '', name: this.name });
383
+ }
384
+ /**
385
+ * Bookmarks are markers only, so their content can never be edited directly.
386
+ *
387
+ * @returns {boolean} - Always returns false for bookmark nodes.
388
+ */
389
+ isContentEditable() {
390
+ return false;
391
+ }
392
+ /**
393
+ * Clones the bookmark node.
394
+ *
395
+ * @param {RTETextBlock} parent - The parent block for the cloned node.
396
+ * @returns {RTEBookmarkNode} - The cloned bookmark node.
397
+ */
398
+ clone(parent) {
399
+ return new RTEBookmarkNode(this.id, this.name, parent, super.cloneAnnotations());
400
+ }
401
+ /**
402
+ * Checks if a node is empty
403
+ *
404
+ * @returns {boolean} It returns `true` if the node is empty
405
+ */
406
+ isEmpty() {
407
+ return false;
408
+ }
409
+ /**
410
+ * Converts the bookmark node to an HTML representation.
411
+ *
412
+ * The output matches the CKEditor 5 bookmark contract so the value stays
413
+ * compatible with other editors and remains a valid local link target.
414
+ *
415
+ * @returns {string} - The HTML representation of the bookmark node.
416
+ */
417
+ toHtml() {
418
+ return `<a id="${escapeHtmlAttribute(this.name)}"></a>`;
419
+ }
420
+ /**
421
+ * Bookmarks do not accept text formatting, but still process selection annotations.
422
+ *
423
+ * @param {AnnotationAction} action - The annotation action to apply.
424
+ */
425
+ doAnnotationActionApply(action) {
426
+ // BoldAnnotationAction has no annotationType; deletion identifies BOLD through its annotationType.
427
+ if (action instanceof BoldAnnotationAction ||
428
+ (action instanceof DeleteNodeAnnotationAction &&
429
+ action.annotationType === NodeAnnotationTypeEnum.BOLD)) {
430
+ return;
431
+ }
432
+ super.doAnnotationActionApply(action);
433
+ }
434
+ }
435
+ RTEBookmarkNode.typeName = 'RTEBookmarkNode';
436
+ RTEBookmarkNode.dtoName = 'RTEBookmarkNode';
437
+
438
+ /**
439
+ * Removes a bookmark when Backspace is pressed at the start of its following text node.
440
+ */
441
+ class DeleteBookmarkBeforeTextInterceptor extends ActionHandlerInterceptor {
442
+ /**
443
+ * @inheritDoc
444
+ */
445
+ canIntercept(action, target) {
446
+ const { startContainerNode, startOffset } = action;
447
+ if (!(startContainerNode instanceof RTETextNode)) {
448
+ return false;
449
+ }
450
+ const nodeIndex = target.children.indexOf(startContainerNode);
451
+ return (startContainerNode.parent === target &&
452
+ nodeIndex > 0 &&
453
+ target.children[nodeIndex - 1] instanceof RTEBookmarkNode &&
454
+ (startOffset === 0 ||
455
+ (startContainerNode.text.length === 1 && startOffset === startContainerNode.text.length)));
456
+ }
457
+ /**
458
+ * @inheritDoc
459
+ */
460
+ intercept(_execution, action, target) {
461
+ const startContainerNode = action.startContainerNode;
462
+ if (startContainerNode.text.length === 1 && action.startOffset === 1) {
463
+ startContainerNode.apply(new UpdateTextAction(''));
464
+ action.previousNode = startContainerNode;
465
+ return;
466
+ }
467
+ const nodeIndex = target.children.indexOf(startContainerNode);
468
+ const bookmarkNode = target.children[nodeIndex - 1];
469
+ target.apply(new RemoveChildrenAction(bookmarkNode));
470
+ action.nextNode = startContainerNode;
471
+ }
472
+ }
473
+
474
+ /**
475
+ * Strategy to rename an existing bookmark node.
476
+ */
477
+ class UpdateBookmarkNameStrategy extends ActionHandleStrategy {
478
+ /**
479
+ * @inheritDoc
480
+ */
481
+ handleAction(action, node) {
482
+ node.name = action.name;
483
+ }
484
+ }
485
+
486
+ /**
487
+ * Insert a new children to the nearest position of the parent container
488
+ *
489
+ * @example parent.apply(new InsertNodeToNearestRoot(rteRange, nodeToBeInserted))
490
+ */
491
+ class InsertNodeToNearestRootAction extends ModifyContentAction {
492
+ constructor(rteRange, nodeToBeInserted) {
493
+ super();
494
+ this.type = ModifyContentActionType.INSERT_NODE_TO_NEAREST_ROOT;
495
+ this.rteRange = rteRange;
496
+ this.nodeToBeInserted = nodeToBeInserted;
497
+ }
498
+ }
499
+
500
+ /**
501
+ * Strategy to handle the insertion of a bookmark node into the nearest root block.
502
+ */
503
+ class InsertBookmarkNodeStrategy extends ActionHandleStrategy {
504
+ /**
505
+ * @inheritDoc
506
+ */
507
+ handleAction(action, block) {
508
+ const { rteRange, name } = action;
509
+ if (rteRange && rteRange.startNode) {
510
+ const bookmarkNode = new RTEBookmarkNode(generateUUID(), name, block);
511
+ block.apply(new InsertNodeToNearestRootAction(rteRange, bookmarkNode));
512
+ action.actionHandleResult = true;
513
+ }
514
+ }
515
+ }
516
+
517
+ const INSERT_BOOKMARK_NODE = 'INSERT_BOOKMARK_NODE';
518
+ /**
519
+ * Action to insert a bookmark node at a specified range in the Rich Text Editor.
520
+ *
521
+ * @example block.apply(new InsertBookmarkNodeAction(rteRange, 'Rights'));
522
+ */
523
+ class InsertBookmarkNodeAction extends ModifyContentAction {
524
+ constructor(rteRange, name) {
525
+ super();
526
+ this.type = INSERT_BOOKMARK_NODE;
527
+ this.rteRange = null;
528
+ this.actionHandleResult = false;
529
+ this.rteRange = rteRange;
530
+ this.name = name;
531
+ }
532
+ }
533
+
534
+ const UPDATE_BOOKMARK_NAME = 'UPDATE_BOOKMARK_NAME';
535
+ /**
536
+ * Action to rename an existing bookmark node.
537
+ *
538
+ * @example bookmarkNode.apply(new UpdateBookmarkNameAction('Rights'));
539
+ */
540
+ class UpdateBookmarkNameAction extends ModifyContentAction {
541
+ constructor(name) {
542
+ super();
543
+ this.type = UPDATE_BOOKMARK_NAME;
544
+ this.name = name;
545
+ }
546
+ }
547
+
548
+ /**
549
+ * Strategy to convert anchor elements into bookmark nodes.
550
+ *
551
+ * Supported inputs:
552
+ * - `<a id="Rights"></a>` — the CKEditor 5 bookmark contract.
553
+ * - `<a name="Rights"></a>` — the legacy CKEditor 4 anchor format.
554
+ *
555
+ * Only empty named anchors become bookmarks. Anchors with content, or anchors carrying an `href`,
556
+ * are left untouched so existing link/text handling is preserved.
557
+ */
558
+ class AnchorToBookmarkNodeStrategy extends ElementToDTOStrategy {
559
+ /**
560
+ * @inheritDoc
561
+ */
562
+ canHandle(elementsArray, currentIndex) {
563
+ const element = elementsArray[currentIndex];
564
+ return this.isBookmarkAnchor(element) ? 1 : 0;
565
+ }
566
+ /**
567
+ * @inheritDoc
568
+ */
569
+ handle(elementsArray) {
570
+ const element = elementsArray[0];
571
+ const name = this.resolveBookmarkName(element);
572
+ if (!name) {
573
+ return null;
574
+ }
575
+ return {
576
+ id: generateUUID(),
577
+ type: 'bookmark',
578
+ text: '',
579
+ name,
580
+ };
581
+ }
582
+ /**
583
+ * @inheritDoc
584
+ */
585
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
586
+ appendChildBlocks() { }
587
+ /**
588
+ * @inheritDoc
589
+ */
590
+ shouldProceedToElementChildren() {
591
+ return false;
592
+ }
593
+ /**
594
+ * Checks whether the element is an anchor that represents a bookmark target.
595
+ *
596
+ * @param {HTMLElement} element - The element to check.
597
+ * @returns {boolean} True when the element is a bookmark anchor.
598
+ */
599
+ isBookmarkAnchor(element) {
600
+ return (!!element &&
601
+ element.nodeName === 'A' &&
602
+ !element.hasAttribute('href') &&
603
+ this.isEmptyAnchor(element) &&
604
+ !!this.resolveBookmarkName(element));
605
+ }
606
+ /**
607
+ * Reads the bookmark name from the anchor, preferring `id` over the legacy `name` attribute.
608
+ *
609
+ * @param {HTMLElement} element - The anchor element.
610
+ * @returns {string} The bookmark name, or an empty string when absent.
611
+ */
612
+ resolveBookmarkName(element) {
613
+ return (element.getAttribute('id') || element.getAttribute('name') || '').trim();
614
+ }
615
+ /**
616
+ * Checks whether the anchor has no meaningful content.
617
+ *
618
+ * @param {HTMLElement} element - The anchor element.
619
+ * @returns {boolean} True when the anchor is effectively empty.
620
+ */
621
+ isEmptyAnchor(element) {
622
+ return (element.textContent || '').trim().length === 0 && element.children.length === 0;
623
+ }
624
+ }
625
+
626
+ const BOOKMARK_ICON_VIEW_BOX = '0 0 384 512';
627
+ const BOOKMARK_ICON_PATH = 'M0 48V487.7C0 501.1 10.9 512 24.3 512c5 0 9.9-1.5 14-4.4L192 400 345.7 507.6c4.1 2.9 9 4.4 14 4.4c13.4 0 24.3-10.9 24.3-24.3V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48z';
628
+ const bookmarkIcon = {
629
+ icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${BOOKMARK_ICON_VIEW_BOX}"><path fill="currentColor" d="${BOOKMARK_ICON_PATH}"/></svg>`,
630
+ };
631
+
632
+ /**
633
+ * Recursively collects every bookmark node contained in the given entity.
634
+ *
635
+ * Walks generic `children` and list `nestList` collections so bookmarks nested in
636
+ * lists, tables or any custom block are all discovered.
637
+ *
638
+ * @param {unknown} entity - Content, block or node to walk.
639
+ * @returns {RTEBookmarkNode[]} All bookmark nodes found under the entity.
640
+ */
641
+ function collectBookmarkNodes(entity) {
642
+ const result = [];
643
+ const visited = new Set();
644
+ /**
645
+ * Visits a single entity and walks into its children.
646
+ *
647
+ * @param {unknown} current - The entity currently being visited.
648
+ */
649
+ function visit(current) {
650
+ if (!current || typeof current !== 'object' || visited.has(current)) {
651
+ return;
652
+ }
653
+ visited.add(current);
654
+ if (current instanceof RTEBookmarkNode) {
655
+ result.push(current);
656
+ return;
657
+ }
658
+ const { children, nestList } = current;
659
+ if (Array.isArray(children)) {
660
+ children.forEach(visit);
661
+ }
662
+ if (Array.isArray(nestList)) {
663
+ nestList.forEach(visit);
664
+ }
665
+ }
666
+ visit(entity);
667
+ return result;
668
+ }
669
+ /**
670
+ * Collects the names of every bookmark contained in the given entity.
671
+ *
672
+ * @param {unknown} entity - Content, block or node to walk.
673
+ * @returns {string[]} All bookmark names found under the entity.
674
+ */
675
+ function collectBookmarkNames(entity) {
676
+ return collectBookmarkNodes(entity).map((node) => node.name);
677
+ }
678
+
679
+ /**
680
+ * Bookmark node renderer for the rich text editor.
681
+ *
682
+ * The bookmark always renders as an anchor so it stays a valid local link target. In editable mode
683
+ * the anchor also carries the marker icon and is wrapped by the bookmark editor popover.
684
+ */
685
+ class RTEBookmarkNodeRenderer extends VegaRTEExtensionRenderer {
686
+ constructor() {
687
+ super(...arguments);
688
+ this.rangeHighlightHandlers = new WeakMap();
689
+ this.openPopoverNode = null;
690
+ // eslint-disable-next-line jsdoc/require-jsdoc
691
+ this.handleBalloonShow = (e) => {
692
+ const anchor = this.getBookmarkAnchor(e);
693
+ if (anchor) {
694
+ this.openPopoverNode = this.getBookmarkNodeByAnchor(anchor);
695
+ anchor.classList.add(RTEBookmarkNodeRenderer.SELECTED_CLASS);
696
+ }
697
+ };
698
+ // eslint-disable-next-line jsdoc/require-jsdoc
699
+ this.handleBalloonHide = (e) => {
700
+ const anchor = this.getBookmarkAnchor(e);
701
+ if (anchor) {
702
+ if (this.getBookmarkNodeByAnchor(anchor) === this.openPopoverNode) {
703
+ this.openPopoverNode = null;
704
+ }
705
+ anchor.classList.remove(RTEBookmarkNodeRenderer.SELECTED_CLASS);
706
+ }
707
+ };
708
+ }
709
+ /**
710
+ * Renders the bookmark node.
711
+ *
712
+ * @param {VegaRTECreateElementFunction} createElement - The function to create a DOM element.
713
+ * @param {RTEBookmarkNode} node - The bookmark node to render.
714
+ * @param {RTERenderContext} editorContent - The editor content context.
715
+ * @returns {VegaRTERenderResult} - The rendered DOM element.
716
+ */
717
+ doRender(createElement, node, editorContent) {
718
+ if (!editorContent || editorContent.editable === false) {
719
+ return this.renderReadonlyBookmark(createElement, node);
720
+ }
721
+ return this.renderEditableBookmark(createElement, node, editorContent);
722
+ }
723
+ /**
724
+ * @inheritDoc
725
+ */
726
+ injectRTEScopeStyles() {
727
+ return [
728
+ `a.rte-bookmark{display: inline-block; vertical-align: middle; line-height: 0; cursor: pointer; padding: 0; margin: 0; border-radius: 2px}`,
729
+ `a.rte-bookmark.rte-bookmark-readonly{cursor: default}`,
730
+ `a.rte-bookmark > vega-rich-text-bookmark-editor{position: absolute; width: 0; height: 0}`,
731
+ // The bookmark is icon only, so it follows the inherited text size instead of a fixed icon size.
732
+ `a.rte-bookmark .rte-bookmark__icon{display: inline-block; position: relative; top: -0.125em; vertical-align: middle; line-height: 0; height: 1em; width: 1em}`,
733
+ `a.rte-bookmark svg{display: block; height: 100%; width: 100%}`,
734
+ // Text colors have no design token variable, so the on action foreground is a literal.
735
+ `a.rte-bookmark.${RTEBookmarkNodeRenderer.SELECTED_CLASS}{color: rgba(var(--v-bg-action, 19,98,226,1))}`,
736
+ ].join('\n');
737
+ }
738
+ /**
739
+ * Removes the per-host selection listener so a destroyed host is not retained by the document.
740
+ *
741
+ * @param {HTMLVegaRichTextEditorElement} host - The editor host being torn down.
742
+ */
743
+ teardownRangeHighlight(host) {
744
+ var _a, _b;
745
+ const syncHandler = (_a = this.rangeHighlightHandlers.get(host)) !== null && _a !== void 0 ? _a : null;
746
+ if (!syncHandler) {
747
+ return;
748
+ }
749
+ (_b = tryGetDocument()) === null || _b === void 0 ? void 0 : _b.removeEventListener('selectionchange', syncHandler);
750
+ this.rangeHighlightHandlers.delete(host);
751
+ }
752
+ /**
753
+ * Renders a visible bookmark target without editor interactions.
754
+ *
755
+ * @param {VegaRTECreateElementFunction} createElement - The function to create a DOM element.
756
+ * @param {RTEBookmarkNode} node - The bookmark node to render.
757
+ * @returns {VegaRTERenderResult} - The rendered bookmark element.
758
+ */
759
+ renderReadonlyBookmark(createElement, node) {
760
+ return createElement('a', {
761
+ key: node.id,
762
+ id: node.name,
763
+ class: 'rte-bookmark rte-bookmark-readonly',
764
+ title: node.name,
765
+ }, [this.renderIcon(createElement)]);
766
+ }
767
+ /**
768
+ * Renders the in-editor bookmark anchor wrapped by its editor popover.
769
+ *
770
+ *
771
+ * @param {VegaRTECreateElementFunction} createElement - The function to create a DOM element.
772
+ * @param {RTEBookmarkNode} node - The bookmark node to render.
773
+ * @param {RTERenderContext} editorContent - The editor content context.
774
+ * @returns {VegaRTERenderResult} - The rendered bookmark element.
775
+ */
776
+ renderEditableBookmark(createElement, node, editorContent) {
777
+ const registerRef = this.useRef(node);
778
+ let anchorRef = null;
779
+ let editorRef = null;
780
+ this.ensureRangeHighlight(editorContent.host);
781
+ return createElement('a', {
782
+ 'key': node.id,
783
+ 'id': node.name,
784
+ 'class': 'rte-bookmark',
785
+ 'contenteditable': 'false',
786
+ 'role': 'button',
787
+ 'tabIndex': 0,
788
+ 'aria-label': `${VegaInternalTranslation.t('Bookmark')}: ${node.name}`,
789
+ 'title': node.name,
790
+ 'onKeyDown': createEnterKeyHandlerToTriggerClick(),
791
+ // Stops the browser from dropping its own caret before the editor moves it onto the bookmark.
792
+ // eslint-disable-next-line jsdoc/require-jsdoc
793
+ 'onMouseDown': (e) => e.preventDefault(),
794
+ // Refreshes the reserved names once the popover opens, mirroring the toolbar insert flow.
795
+ // eslint-disable-next-line jsdoc/require-jsdoc
796
+ 'onClick': () => {
797
+ if (editorRef) {
798
+ editorRef.reservedNames = this.getReservedNames(node, editorContent);
799
+ }
800
+ this.placeCaretAfterBookmark(node, editorContent);
801
+ },
802
+ // eslint-disable-next-line jsdoc/require-jsdoc
803
+ 'ref': (ref) => {
804
+ if (ref) {
805
+ anchorRef = ref;
806
+ registerRef(ref);
807
+ }
808
+ else {
809
+ void (editorRef === null || editorRef === void 0 ? void 0 : editorRef.hide());
810
+ }
811
+ },
812
+ }, [
813
+ this.renderIcon(createElement),
814
+ createElement('vega-rich-text-bookmark-editor', {
815
+ mode: 'preview',
816
+ name: node.name,
817
+ // eslint-disable-next-line jsdoc/require-jsdoc
818
+ ref: (ref) => {
819
+ if (ref) {
820
+ editorRef = ref;
821
+ // Anchor the popover to the bookmark <a>, mirroring the link editor wiring.
822
+ if (anchorRef && ref.target !== anchorRef) {
823
+ ref.target = anchorRef;
824
+ }
825
+ this.bindSelectedStateToBalloon(ref);
826
+ DomNodeSubjectObserverFactory.addUniqueObserverToNode(ref, VegaChange,
827
+ // eslint-disable-next-line jsdoc/require-jsdoc
828
+ (e) => {
829
+ this.handleChange(e, node, editorContent);
830
+ });
831
+ }
832
+ },
833
+ }),
834
+ ]);
835
+ }
836
+ /**
837
+ * Renders the bookmark icon as inline SVG so the browser paints the text selection over it.
838
+ *
839
+ * @param {VegaRTECreateElementFunction} createElement - The function to create a DOM element.
840
+ * @returns {VegaRTERenderResult} - The rendered icon.
841
+ */
842
+ renderIcon(createElement) {
843
+ return createElement('span', { class: 'rte-bookmark__icon' }, [
844
+ createElement('svg', { 'viewBox': BOOKMARK_ICON_VIEW_BOX, 'aria-hidden': 'true', 'focusable': 'false' }, [createElement('path', { fill: 'currentColor', d: BOOKMARK_ICON_PATH })]),
845
+ ]);
846
+ }
847
+ /**
848
+ * Places the caret right after the bookmark so typing appends text and Backspace removes the bookmark.
849
+ *
850
+ * @param {RTEBookmarkNode} node - The bookmark node.
851
+ * @param {RTERenderContext} editorContent - The editor content context.
852
+ */
853
+ placeCaretAfterBookmark(node, editorContent) {
854
+ var _a;
855
+ (_a = editorContent.host) === null || _a === void 0 ? void 0 : _a.value.apply(new UpdateCursorPositionAction(node, node.getRangeEndOffset(), true));
856
+ }
857
+ /**
858
+ * Shows the selected outline on the bookmark while its editor balloon is open.
859
+ *
860
+ * The popover lives in the editor shadow root, so its events only reach the editor element.
861
+ * Stencil reuses the element across renders, so the listeners are replaced instead of stacked.
862
+ *
863
+ * @param {HTMLElement} editor - The bookmark editor element.
864
+ */
865
+ bindSelectedStateToBalloon(editor) {
866
+ editor.removeEventListener('vegaPopoverShow', this.handleBalloonShow);
867
+ editor.removeEventListener('vegaPopoverHide', this.handleBalloonHide);
868
+ editor.addEventListener('vegaPopoverShow', this.handleBalloonShow);
869
+ editor.addEventListener('vegaPopoverHide', this.handleBalloonHide);
870
+ }
871
+ /**
872
+ * Binds a single debounced selection listener per host that keeps the range highlight in sync.
873
+ *
874
+ * @typedef HTMLVegaRichTextEditorElement - The rich text editor host element.
875
+ * @param {HTMLVegaRichTextEditorElement} [host] - The editor host owning the bookmarks.
876
+ */
877
+ ensureRangeHighlight(host) {
878
+ const ownerDocument = tryGetDocument();
879
+ if (!host || !ownerDocument || this.rangeHighlightHandlers.has(host)) {
880
+ return;
881
+ }
882
+ const syncHandler = debounce(() => this.syncRangeHighlight(host), 30, this);
883
+ this.rangeHighlightHandlers.set(host, syncHandler);
884
+ ownerDocument.addEventListener('selectionchange', syncHandler);
885
+ }
886
+ /**
887
+ * Highlights every bookmark the current non-collapsed selection crosses.
888
+ *
889
+ * @typedef HTMLVegaRichTextEditorElement - The rich text editor host element.
890
+ * @param {HTMLVegaRichTextEditorElement} host - The editor host owning the bookmarks.
891
+ */
892
+ syncRangeHighlight(host) {
893
+ var _a;
894
+ const selection = (_a = this.getExtensionContext(host)) === null || _a === void 0 ? void 0 : _a.getSelection();
895
+ const range = selection && selection.rangeCount > 0 ? selection.getRangeAt(0) : null;
896
+ collectBookmarkNodes(host.value).forEach((node) => {
897
+ const dom = stateEntityRenderingRegistry.getDOMByEntity(node);
898
+ if (dom) {
899
+ const rangeCrosses = !!range && !range.collapsed && range.intersectsNode(dom);
900
+ dom.classList.toggle(RTEBookmarkNodeRenderer.SELECTED_CLASS, rangeCrosses || node === this.openPopoverNode);
901
+ }
902
+ });
903
+ }
904
+ /**
905
+ * Resolves the bookmark anchor that owns the balloon which raised the event.
906
+ *
907
+ * @param {Event} e - The balloon event.
908
+ * @returns {Nullable<HTMLElement>} - The bookmark anchor element.
909
+ */
910
+ getBookmarkAnchor(e) {
911
+ var _a;
912
+ return (_a = e.currentTarget) === null || _a === void 0 ? void 0 : _a.closest('a.rte-bookmark');
913
+ }
914
+ /**
915
+ * Resolves the bookmark node backing an anchor element.
916
+ *
917
+ * @param {HTMLElement} anchor - The bookmark anchor element.
918
+ * @returns {Nullable<RTEBookmarkNode>} - The backing bookmark node, or null when the anchor is not a bookmark.
919
+ */
920
+ getBookmarkNodeByAnchor(anchor) {
921
+ const entity = stateEntityRenderingRegistry.getEntityByDOM(anchor);
922
+ return entity instanceof RTEBookmarkNode ? entity : null;
923
+ }
924
+ /**
925
+ * Collects the bookmark names already used by other bookmarks in the same document.
926
+ *
927
+ * @param {RTEBookmarkNode} node - The bookmark node being edited.
928
+ * @param {RTERenderContext} editorContent - The editor content context.
929
+ * @returns {string[]} - The reserved bookmark names.
930
+ */
931
+ getReservedNames(node, editorContent) {
932
+ var _a;
933
+ return collectBookmarkNodes((_a = editorContent.host) === null || _a === void 0 ? void 0 : _a.value)
934
+ .filter((item) => item !== node)
935
+ .map((item) => item.name);
936
+ }
937
+ /**
938
+ * Applies rename and removal actions emitted by the bookmark editor.
939
+ *
940
+ * @param {CustomEvent<{ action: 'save'; name: string } | { action: 'remove' }>} e - The bookmark editor change event.
941
+ * @param {RTEBookmarkNode} node - The bookmark node being edited.
942
+ * @param {RTERenderContext} editorContent - The editor content context.
943
+ */
944
+ handleChange(e, node, editorContent) {
945
+ var _a;
946
+ const host = editorContent.host;
947
+ if (!host) {
948
+ return;
949
+ }
950
+ if (e.detail.action === 'save') {
951
+ node.apply(new UpdateBookmarkNameAction(e.detail.name));
952
+ (_a = this.getExtensionContext(host)) === null || _a === void 0 ? void 0 : _a.flushValue(host.value);
953
+ return;
954
+ }
955
+ this.removeBookmark(node, host);
956
+ }
957
+ /**
958
+ * Removes the bookmark and leaves the caret where the bookmark used to be.
959
+ *
960
+ * @param {RTEBookmarkNode} node - The bookmark node being removed.
961
+ * @param {HTMLVegaRichTextEditorElement} host - The rich text editor host element.
962
+ */
963
+ removeBookmark(node, host) {
964
+ var _a, _b, _c, _d;
965
+ const siblings = (_b = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : [];
966
+ const index = siblings.indexOf(node);
967
+ const nextNode = index >= 0 ? siblings[index + 1] : null;
968
+ const previousNode = index > 0 ? siblings[index - 1] : null;
969
+ (_c = node.parent) === null || _c === void 0 ? void 0 : _c.apply(new RemoveChildrenAction(node));
970
+ (_d = this.getExtensionContext(host)) === null || _d === void 0 ? void 0 : _d.flushValue(host.value);
971
+ if (nextNode) {
972
+ host.value.apply(new UpdateCursorPositionAction(nextNode, 0, true));
973
+ }
974
+ else if (previousNode) {
975
+ host.value.apply(new UpdateCursorPositionAction(previousNode, previousNode.getRangeEndOffset(), true));
976
+ }
977
+ }
978
+ }
979
+ RTEBookmarkNodeRenderer.typeName = 'RTEBookmarkNodeRenderer';
980
+ RTEBookmarkNodeRenderer.SELECTED_CLASS = 'rte-bookmark-selected';
981
+
982
+ /**
983
+ * Toolbar button renderer for the bookmark extension.
984
+ *
985
+ * The button hosts the bookmark editor in insert mode and inserts a bookmark
986
+ * at the caret position captured when the button was activated.
987
+ */
988
+ class RTEBookmarkToolbarButtonRenderer extends VegaRTEToolbarButtonRenderer {
989
+ constructor() {
990
+ super(...arguments);
991
+ this.editorRef = null;
992
+ this.buttonWrapperRef = null;
993
+ this.pendingRange = null;
994
+ }
995
+ /**
996
+ * Renders the bookmark toolbar button wrapped in the bookmark editor.
997
+ *
998
+ * @param {VegaRTECreateElementFunction} h - Create element function.
999
+ * @param {VegaRTEToolbarRenderContext} editorContext - The render context for the editor.
1000
+ * @returns {VegaRTERenderResult} - The toolbar button render result.
1001
+ */
1002
+ render(h, editorContext) {
1003
+ return h('vega-rich-text-bookmark-editor', {
1004
+ mode: 'insert',
1005
+ name: '',
1006
+ // eslint-disable-next-line jsdoc/require-jsdoc
1007
+ ref: (ref) => {
1008
+ if (ref) {
1009
+ this.editorRef = ref;
1010
+ this.syncPopoverTarget();
1011
+ DomNodeSubjectObserverFactory.addUniqueObserverToNode(ref, VegaChange,
1012
+ // eslint-disable-next-line jsdoc/require-jsdoc
1013
+ (e) => {
1014
+ this.handleEditorChange(e, editorContext);
1015
+ });
1016
+ }
1017
+ },
1018
+ }, [
1019
+ // The base renderer owns the actual toolbar button ref, so this wrapper
1020
+ // provides a stable external anchor for the insert popover.
1021
+ h('div', {
1022
+ // eslint-disable-next-line jsdoc/require-jsdoc
1023
+ ref: (ref) => {
1024
+ if (ref) {
1025
+ this.buttonWrapperRef = ref;
1026
+ // The editor and wrapper refs can be assigned in either order.
1027
+ this.syncPopoverTarget();
1028
+ }
1029
+ },
1030
+ }, [
1031
+ this.renderButton(h, editorContext, {
1032
+ icon: 'rte-bookmark',
1033
+ tooltip: { text: VegaInternalTranslation.t('Bookmark') },
1034
+ }),
1035
+ ]),
1036
+ ]);
1037
+ }
1038
+ /**
1039
+ * @inheritDoc
1040
+ */
1041
+ isDisabled(editorContext) {
1042
+ let result = super.isDisabled(editorContext);
1043
+ const context = this.getExtensionContext(editorContext.host);
1044
+ if (context) {
1045
+ const { getSelectedNodes } = context;
1046
+ const [startNode] = getSelectedNodes();
1047
+ if (startNode) {
1048
+ result || (result = !ActionHandleStrategyRegistry.canHandle(INSERT_BOOKMARK_NODE, startNode.parent));
1049
+ }
1050
+ }
1051
+ return result;
1052
+ }
1053
+ /**
1054
+ * Captures the caret position and the reserved bookmark names before the editor opens.
1055
+ *
1056
+ * @param {VegaRTEToolbarRenderContext} editorContext - The render context for the editor.
1057
+ */
1058
+ handleButtonClick(editorContext) {
1059
+ // The editor keeps mutating its live range, so the caret has to be copied before the editor popover takes focus.
1060
+ this.pendingRange = editorContext.rteRange.clone();
1061
+ if (this.editorRef) {
1062
+ this.editorRef.reservedNames = collectBookmarkNames(editorContext.host.value);
1063
+ void this.editorRef.show();
1064
+ }
1065
+ }
1066
+ /* istanbul ignore next */
1067
+ /**
1068
+ * @inheritDoc
1069
+ */
1070
+ handleDropdownClick() {
1071
+ // No dropdown used
1072
+ }
1073
+ /**
1074
+ * Anchors the insert popover to the button, because a self anchored popover never opens.
1075
+ */
1076
+ syncPopoverTarget() {
1077
+ // Ref callbacks are invoked independently; assigning only after both are ready
1078
+ // keeps the target setup valid regardless of render callback order.
1079
+ if (this.editorRef && this.buttonWrapperRef && this.editorRef.target !== this.buttonWrapperRef) {
1080
+ this.editorRef.target = this.buttonWrapperRef;
1081
+ }
1082
+ }
1083
+ /**
1084
+ * Inserts the bookmark emitted by the bookmark editor at the captured caret position.
1085
+ *
1086
+ * @param {CustomEvent<{ action: 'save'; name: string } | { action: 'remove' }>} e - The bookmark editor change event.
1087
+ * @param {VegaRTEToolbarRenderContext} editorContext - The render context for the editor.
1088
+ */
1089
+ handleEditorChange(e, editorContext) {
1090
+ if (e.detail.action !== 'save') {
1091
+ return;
1092
+ }
1093
+ const rteRange = this.pendingRange;
1094
+ const startNode = rteRange === null || rteRange === void 0 ? void 0 : rteRange.startNode;
1095
+ if (!(startNode === null || startNode === void 0 ? void 0 : startNode.parent)) {
1096
+ return;
1097
+ }
1098
+ const action = new InsertBookmarkNodeAction(rteRange, e.detail.name);
1099
+ startNode.parent.apply(action);
1100
+ if (action.actionHandleResult) {
1101
+ const context = this.getExtensionContext(editorContext.host);
1102
+ context === null || context === void 0 ? void 0 : context.flushValue(context.host.value);
1103
+ }
1104
+ this.pendingRange = null;
1105
+ }
1106
+ }
1107
+ (() => {
1108
+ VegaInternalIconManager.register({ 'rte-bookmark': bookmarkIcon });
1109
+ })();
1110
+
1111
+ // Module scoped so repeated extension instances reuse the same strategy reference instead of registering duplicates.
1112
+ const anchorToBookmarkNodeStrategy = new AnchorToBookmarkNodeStrategy();
1113
+ /**
1114
+ * Extension that adds bookmark (named anchor) support to the Vega Rich Text Editor.
1115
+ *
1116
+ * A bookmark is a zero-width, named marker that serializes to `<a id="name"></a>` so it can
1117
+ * be used as a local link target.
1118
+ */
1119
+ class VegaRTEBookmarkExtension extends VegaRTEExtension {
1120
+ constructor() {
1121
+ super();
1122
+ this.bookmarkRenderer = new RTEBookmarkNodeRenderer();
1123
+ this.registerNode('bookmark', RTEBookmarkNode);
1124
+ this.registerRenderer('bookmark', this.bookmarkRenderer);
1125
+ this.registerElementToNodeDTOClassStrategy(anchorToBookmarkNodeStrategy);
1126
+ }
1127
+ /** @inheritDoc */
1128
+ prepareBeforeLoad(host) {
1129
+ this.registerToolbarButtonRenderer(VegaRTEBookmarkExtension.TOOLBAR_BUTTON_KEY, new RTEBookmarkToolbarButtonRenderer(), host);
1130
+ }
1131
+ /** Removes the per-host bookmark selection listener when the editor is destroyed. */
1132
+ destroyExtension() {
1133
+ var _a;
1134
+ const host = (_a = this.extensionContext) === null || _a === void 0 ? void 0 : _a.host;
1135
+ if (host) {
1136
+ this.bookmarkRenderer.teardownRangeHighlight(host);
1137
+ }
1138
+ }
1139
+ }
1140
+ (() => {
1141
+ const insertBookmarkNodeStrategy = new InsertBookmarkNodeStrategy();
1142
+ VegaRTEExtension.registerActionHandleStrategy(RTETextBlock.typeName, INSERT_BOOKMARK_NODE, insertBookmarkNodeStrategy);
1143
+ VegaRTEExtension.registerActionHandleStrategy(RTEListItemBlock.typeName, INSERT_BOOKMARK_NODE, insertBookmarkNodeStrategy);
1144
+ VegaRTEExtension.registerActionHandleStrategy(RTEBookmarkNode.typeName, UPDATE_BOOKMARK_NAME, new UpdateBookmarkNameStrategy());
1145
+ const deleteBookmarkBeforeTextInterceptor = new DeleteBookmarkBeforeTextInterceptor();
1146
+ VegaRTEExtension.registerActionHandlerInterceptor(RTETextBlock.typeName, ModifyContentActionType.DELETE_BLOCK_CONTENT, deleteBookmarkBeforeTextInterceptor);
1147
+ VegaRTEExtension.registerActionHandlerInterceptor(RTEListItemBlock.typeName, ModifyContentActionType.DELETE_BLOCK_CONTENT, deleteBookmarkBeforeTextInterceptor);
1148
+ })();
1149
+ VegaRTEBookmarkExtension.TOOLBAR_BUTTON_KEY = 'bookmark';
1150
+
1151
+ /**
1152
+ * Replace the text node selected content to new text
1153
+ *
1154
+ * @example selectedNode.apply(new ReplaceSelectedTextAction(insertText))
1155
+ */
1156
+ class ReplaceSelectedTextAction extends ModifyContentAction {
1157
+ constructor(text, currentRange) {
1158
+ super();
1159
+ this.type = ModifyContentActionType.REPLACE_SELECTED_TEXT;
1160
+ this.textToBeInsert = '';
1161
+ this.textToBeInsert = text;
1162
+ this.currentRange = currentRange;
1163
+ }
1164
+ }
1165
+
1166
+ /**
1167
+ * Rich Text Editor extension that configures built-in image behavior.
1168
+ */
1169
+ class VegaRTEImageExtension extends VegaRTEExtension {
1170
+ constructor(config = {}) {
1171
+ super();
1172
+ this.config = config;
1173
+ }
1174
+ /**
1175
+ * Store config per host so both toolbar-image and inline-image editors
1176
+ * can consistently read the extension settings.
1177
+ *
1178
+ * @param {HTMLElement} host - The host rich text editor element.
1179
+ */
1180
+ prepareBeforeLoad(host) {
1181
+ VegaRTEImageExtension.configStore.set(host, this.config);
1182
+ }
1183
+ /**
1184
+ * Remove config for the current host when the extension is destroyed.
1185
+ */
1186
+ destroyExtension() {
1187
+ var _a;
1188
+ if ((_a = this.extensionContext) === null || _a === void 0 ? void 0 : _a.host) {
1189
+ VegaRTEImageExtension.configStore.delete(this.extensionContext.host);
1190
+ }
1191
+ }
1192
+ }
1193
+ /**
1194
+ * Per-host config store. Declare as static readonly to isolate config per editor host.
1195
+ *
1196
+ * @type {RTEExtensionStateStore<VegaRTEImageExtensionConfig>}
1197
+ */
1198
+ VegaRTEImageExtension.configStore = VegaRTEImageExtension.createStateStore();
1199
+
1200
+ export { ActionHandlerInterceptor as A, InsertNodeToNearestRootAction as I, ReplaceSelectedTextAction as R, VegaRTEBookmarkExtension as V, VegaRTEImageExtension as a, VegaRTEToolbarButtonRenderer as b, bookmarkIcon as c, collectBookmarkNames as d };