@heartlandone/vega 2.79.0 → 2.81.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 (1373) hide show
  1. package/dist/cjs/app-globals-25e1bfac.js +430 -0
  2. package/dist/cjs/aria-dialog-focusable-trap-slimmer-ced9566d.js +217 -0
  3. package/dist/cjs/child-nodes-notify-observer-slimmer-2631c381.js +90 -0
  4. package/dist/cjs/code-block-24b3d0e7.js +5262 -0
  5. package/dist/cjs/component-value-history-controller-slimmer.abstract-bd662b32.js +714 -0
  6. package/dist/cjs/content-state-0f26036c.js +4962 -0
  7. package/dist/cjs/date-required-rule-4377217a.js +92 -0
  8. package/dist/cjs/design-token-40276b11.js +402 -0
  9. package/dist/cjs/dom-node-subject-observer-factory-9110cb94.js +141 -0
  10. package/dist/cjs/element-appender-slimmer-be1b4d57.js +1974 -0
  11. package/dist/cjs/event-emit-slimmer-bee6b676.js +267 -0
  12. package/dist/cjs/form-field-controller-slimmer-982dbfe4.js +1266 -0
  13. package/dist/cjs/image-annotation-action-e0df5a20.js +285 -0
  14. package/dist/cjs/index.cjs.js +16 -15
  15. package/dist/cjs/inject-keyboard-manager-12b65e98.js +37 -0
  16. package/dist/cjs/keyboard-manager-c89a66d3.js +148 -0
  17. package/dist/cjs/keyboard-manager-slimmer-93fcbf46.js +39 -0
  18. package/dist/cjs/loader.cjs.js +11 -11
  19. package/dist/cjs/month-view-generator-0d25e950.js +101 -0
  20. package/dist/cjs/page-size-option-utils-d038dd3a.js +68 -0
  21. package/dist/cjs/public-rules-652ec269.js +46 -0
  22. package/dist/cjs/range-cdd61881.js +178 -0
  23. package/dist/cjs/responsive-format-facade-9cae7f27.js +944 -0
  24. package/dist/cjs/rich-text-editor-required-rule-4b919054.js +64 -0
  25. package/dist/cjs/split-cell-operation-3596f738.js +2446 -0
  26. package/dist/cjs/string-format-strategy.abstract-ebdb2573.js +63 -0
  27. package/dist/cjs/string-input-formatter-slimmer-9b6a8399.js +230 -0
  28. package/dist/cjs/string-mask-strategy-6cc9f391.js +203 -0
  29. package/dist/cjs/style-formatter-18289c4d.js +34 -0
  30. package/dist/cjs/sub-state-notify-slimmer-39bfcfe3.js +81 -0
  31. package/dist/cjs/sub-state-observer-slimmer-e5b50cbf.js +134 -0
  32. package/dist/cjs/time-required-rule-3517beff.js +141 -0
  33. package/dist/cjs/token-extension-addc97c1.js +7612 -0
  34. package/dist/cjs/type-guard-362d7da3.js +2056 -0
  35. package/dist/cjs/ui-ae4ee13d.js +352 -0
  36. package/dist/cjs/valid-credit-card-number-rule-1d8bf49c.js +173 -0
  37. package/dist/cjs/vega-accordion.cjs.entry.js +6 -6
  38. package/dist/cjs/vega-app-header-button.cjs.entry.js +6 -6
  39. package/dist/cjs/vega-backdrop.cjs.entry.js +1 -1
  40. package/dist/cjs/vega-banner.cjs.entry.js +5 -4
  41. package/dist/cjs/vega-box.cjs.entry.js +5 -5
  42. package/dist/cjs/vega-breadcrumb.cjs.entry.js +27 -10
  43. package/dist/cjs/vega-button-circle.cjs.entry.js +7 -7
  44. package/dist/cjs/vega-button-group_2.cjs.entry.js +6 -6
  45. package/dist/cjs/vega-button-link.cjs.entry.js +3 -3
  46. package/dist/cjs/vega-button.cjs.entry.js +6 -6
  47. package/dist/cjs/vega-calendar_4.cjs.entry.js +30 -17
  48. package/dist/cjs/vega-card.cjs.entry.js +5 -5
  49. package/dist/cjs/vega-carousel.cjs.entry.js +5 -5
  50. package/dist/cjs/vega-checkbox_2.cjs.entry.js +7 -7
  51. package/dist/cjs/vega-chip.cjs.entry.js +7 -7
  52. package/dist/cjs/vega-code-block.cjs.entry.js +10 -10
  53. package/dist/cjs/vega-color-picker.cjs.entry.js +6 -6
  54. package/dist/cjs/vega-combo-box.cjs.entry.js +9 -9
  55. package/dist/cjs/vega-date-picker_2.cjs.entry.js +343 -285
  56. package/dist/cjs/vega-dialog_2.cjs.entry.js +74 -10
  57. package/dist/cjs/vega-divider.cjs.entry.js +5 -5
  58. package/dist/cjs/vega-dropdown_5.cjs.entry.js +52 -14
  59. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  60. package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
  61. package/dist/cjs/vega-file-uploader.cjs.entry.js +6 -6
  62. package/dist/cjs/vega-flag-icon.cjs.entry.js +3 -3
  63. package/dist/cjs/vega-flex.cjs.entry.js +6 -6
  64. package/dist/cjs/vega-font.cjs.entry.js +4 -4
  65. package/dist/cjs/vega-form.cjs.entry.js +9 -9
  66. package/dist/cjs/vega-grid.cjs.entry.js +4 -4
  67. package/dist/cjs/vega-icon.cjs.entry.js +4 -4
  68. package/dist/cjs/vega-image-uploader.cjs.entry.js +8 -8
  69. package/dist/cjs/vega-input-credit-card.cjs.entry.js +10 -10
  70. package/dist/cjs/vega-input-numeric.cjs.entry.js +10 -10
  71. package/dist/cjs/vega-input-passcode.cjs.entry.js +9 -9
  72. package/dist/cjs/vega-input-phone-number.cjs.entry.js +8 -8
  73. package/dist/cjs/vega-input-range.cjs.entry.js +6 -6
  74. package/dist/cjs/vega-input-select.cjs.entry.js +8 -8
  75. package/dist/cjs/vega-input.cjs.entry.js +41 -28
  76. package/dist/cjs/vega-internal-event-id-a1837fa2.js +126 -0
  77. package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
  78. package/dist/cjs/vega-left-nav_5.cjs.entry.js +118 -13
  79. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
  80. package/dist/cjs/vega-page-notification_2.cjs.entry.js +2 -2
  81. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
  82. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +24 -8
  83. package/dist/cjs/vega-pagination.cjs.entry.js +44 -20
  84. package/dist/cjs/vega-popover_2.cjs.entry.js +48 -12
  85. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +43 -12
  86. package/dist/cjs/vega-radio_2.cjs.entry.js +10 -10
  87. package/dist/cjs/vega-rich-text-content.cjs.entry.js +101 -20
  88. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +30 -19
  89. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +9 -9
  90. package/dist/cjs/vega-section-title.cjs.entry.js +21 -3
  91. package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
  92. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +9 -9
  93. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +8 -8
  94. package/dist/cjs/vega-sidenav_3.cjs.entry.js +8 -8
  95. package/dist/cjs/vega-signature-capture.cjs.entry.js +9 -9
  96. package/dist/cjs/vega-stepper.cjs.entry.js +7 -7
  97. package/dist/cjs/vega-tab-group_2.cjs.entry.js +3 -3
  98. package/dist/cjs/vega-table_11.cjs.entry.js +8 -8
  99. package/dist/cjs/vega-text.cjs.entry.js +1 -1
  100. package/dist/cjs/vega-textarea.cjs.entry.js +6 -6
  101. package/dist/cjs/vega-time-picker_2.cjs.entry.js +12 -12
  102. package/dist/cjs/vega-toggle-switch.cjs.entry.js +6 -6
  103. package/dist/cjs/vega-tooltip_2.cjs.entry.js +8 -8
  104. package/dist/cjs/vega.cjs.js +11 -11
  105. package/dist/cjs/wait-for-component-did-render-b6d12d51.js +32 -0
  106. package/dist/collection/components/vega-banner/slimmers/renderers/vega-banner-renderer.js +1 -0
  107. package/dist/collection/components/vega-banner/vega-banner.css +36 -0
  108. package/dist/collection/components/vega-box/vega-box.js +1 -1
  109. package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-item-renderer.js +9 -6
  110. package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-renderer.js +4 -0
  111. package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.css +6 -0
  112. package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.js +31 -0
  113. package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/renderers/vega-calendar-event-renderer.js +4 -4
  114. package/dist/collection/components/vega-calendar/vega-calendar-event/vega-calendar-event.css +15 -12
  115. package/dist/collection/components/vega-calendar/vega-calendar-event/vega-calendar-event.js +1 -1
  116. package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.js +17 -3
  117. package/dist/collection/components/vega-calendar/vega-calendar.css +1 -1
  118. package/dist/collection/components/vega-card/vega-card.css +157 -0
  119. package/dist/collection/components/vega-card/vega-card.js +1 -1
  120. package/dist/collection/components/vega-chip/vega-chip.js +26 -1
  121. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-current-period-controller.js +5 -10
  122. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-is-dual-months-controller.js +64 -0
  123. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.js +3 -6
  124. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-renderer.js +3 -11
  125. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.js +2 -2
  126. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +9 -10
  127. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +13 -15
  128. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +41 -2
  129. package/dist/collection/components/vega-dialog/vega-dialog.js +1 -1
  130. package/dist/collection/components/vega-divider/slimmers/controllers/vega-divider-size-controller.js +1 -1
  131. package/dist/collection/components/vega-divider/vega-divider.css +157 -0
  132. package/dist/collection/components/vega-divider/vega-divider.js +1 -1
  133. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.js +37 -1
  134. package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-renderer.js +4 -1
  135. package/dist/collection/components/vega-flex/vega-flex.css +157 -0
  136. package/dist/collection/components/vega-flex/vega-flex.js +1 -1
  137. package/dist/collection/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.js +13 -12
  138. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-renderer.js +4 -1
  139. package/dist/collection/components/vega-input/vega-input.js +26 -1
  140. package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-layout-controller.js +37 -1
  141. package/dist/collection/components/vega-modal/slimmers/renderers/vega-modal-renderer.js +11 -1
  142. package/dist/collection/components/vega-modal/vega-modal.css +2683 -7
  143. package/dist/collection/components/vega-modal/vega-modal.js +75 -0
  144. package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-open-state-controller.js +85 -2
  145. package/dist/collection/components/vega-nav/vega-left-nav/vega-left-nav.js +23 -0
  146. package/dist/collection/components/vega-pagination/constants/page-size.js +2 -0
  147. package/dist/collection/components/vega-pagination/internal/vega-pagination-page-size-selector.js +11 -7
  148. package/dist/collection/components/vega-pagination/slimmers/controllers/vega-pagination-page-size-observer-controller.js +11 -1
  149. package/dist/collection/components/vega-pagination/utils/page-size-option-utils.js +57 -0
  150. package/dist/collection/components/vega-pagination/vega-pagination-page-size-selector-mobile/slimmers/renderers/page-size-selector-mobile-dropdown-renderer.js +15 -5
  151. package/dist/collection/components/vega-pagination/vega-pagination-page-size-selector-mobile/vega-pagination-page-size-selector-mobile.js +39 -3
  152. package/dist/collection/components/vega-pagination/vega-pagination.js +32 -11
  153. package/dist/collection/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.js +25 -1
  154. package/dist/collection/components/vega-popover/vega-popover-content-box/vega-popover-content-box.js +6 -1
  155. package/dist/collection/components/vega-popover/vega-popover.js +7 -0
  156. package/dist/collection/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-direction-controller.js +34 -3
  157. package/dist/collection/components/vega-progress-tracker/slimmers/renderers/vega-progress-tracker-renderer.js +3 -2
  158. package/dist/collection/components/vega-rich-text-editor/constants/constant.js +20 -0
  159. package/dist/collection/components/vega-rich-text-editor/dto/annotations/bold-annotation.js +2 -1
  160. package/dist/collection/components/vega-rich-text-editor/dto/annotations/code-annotation.js +13 -6
  161. package/dist/collection/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.js +18 -9
  162. package/dist/collection/components/vega-rich-text-editor/dto/annotations/image-annotation.js +12 -1
  163. package/dist/collection/components/vega-rich-text-editor/dto/annotations/inline-html-annotation.js +12 -0
  164. package/dist/collection/components/vega-rich-text-editor/dto/annotations/italic-annotation.js +2 -1
  165. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +20 -3
  166. package/dist/collection/components/vega-rich-text-editor/dto/annotations/list-annotation.js +12 -4
  167. package/dist/collection/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.js +2 -1
  168. package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-format-default-styles.js +22 -0
  169. package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-style-annotation.js +43 -32
  170. package/dist/collection/components/vega-rich-text-editor/dto/annotations/underline-annotation.js +2 -1
  171. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +15 -4
  172. package/dist/collection/components/vega-rich-text-editor/dto/blocks/code-block.js +6 -2
  173. package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +9 -15
  174. package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +3 -3
  175. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +3 -3
  176. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +3 -7
  177. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +50 -9
  178. package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +25 -6
  179. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/code-block/code-block-filter-styles-strategy.js +39 -0
  180. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/code-block/code-node-filter-styles-strategy.js +47 -0
  181. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.js +64 -0
  182. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy.abstract.js +166 -2
  183. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/image-node/image-filter-styles-strategy.js +39 -0
  184. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-block-filter-styles-strategy.js +36 -0
  185. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-heading-item-block-filter-styles-strategy.js +29 -0
  186. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-item-block-filter-styles-strategy.js +51 -0
  187. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-title-item-block-filter-styles-strategy.js +29 -0
  188. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/predicate.js +94 -0
  189. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/alignment-filter-styles-strategy.js +39 -0
  190. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/heading-filter-styles-strategy.js +15 -0
  191. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/paragraph-filter-styles-strategy.js +48 -0
  192. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/title-filter-styles-strategy.js +16 -0
  193. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/code-filter-styles-strategy.js +55 -0
  194. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/link-filter-styles-strategy.js +69 -0
  195. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/text-format-filter-styles-strategy.js +89 -0
  196. package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/title-heading-node-filter-styles-strategy.js +108 -0
  197. package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +7 -2
  198. package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +2 -2
  199. package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +15 -4
  200. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +84 -14
  201. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.js +61 -6
  202. package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.js +16 -0
  203. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +14 -3
  204. package/dist/collection/components/vega-rich-text-editor/dto/setup.js +50 -2
  205. package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +10 -0
  206. package/dist/collection/components/vega-rich-text-editor/extensions/languages/language-extension.js +9 -3
  207. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-annotation.js +17 -1
  208. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.js +17 -18
  209. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.js +19 -0
  210. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +3 -3
  211. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-body-block.js +3 -3
  212. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.js +21 -4
  213. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.js +3 -3
  214. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-block.js +3 -3
  215. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.js +3 -3
  216. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-row-block.js +3 -3
  217. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/caption-to-caption-block-strategy.js +2 -1
  218. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/td-to-table-cell-block-strategy.js +2 -2
  219. package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-block/table-block-filter-styles-strategy.js +39 -0
  220. package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-caption/table-caption-filter-styles-strategy.js +39 -0
  221. package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-cell/table-cell-filter-styles-strategy.js +63 -0
  222. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +7 -0
  223. package/dist/collection/components/vega-rich-text-editor/helpers/utils.js +24 -0
  224. package/dist/collection/components/vega-rich-text-editor/public-api.js +2 -0
  225. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/bold-annotaion-handler.js +3 -2
  226. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/custom-style-annotation-handler.js +2 -25
  227. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.js +47 -3
  228. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/inline-html-annotation-handler.js +30 -53
  229. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/italic-annotation-handler.js +2 -1
  230. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/link-annotation-handler.js +2 -1
  231. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/strike-through-annotation-handler.js +2 -1
  232. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-style-annotation-handler.js +4 -1
  233. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/underline-annotation-handler.js +2 -1
  234. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.js +85 -17
  235. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy-processor.js +12 -5
  236. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/html-block-strategy.js +95 -43
  237. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-element-to-text-node-strategy.js +1 -2
  238. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/predicate.js +29 -0
  239. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/strategy-tags.js +142 -0
  240. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.js +1 -0
  241. package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-source-view-renderer.js +12 -2
  242. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +1 -1
  243. package/dist/collection/components/vega-section-title/slimmers/renderers/vega-section-title-renderer.js +8 -2
  244. package/dist/collection/components/vega-section-title/vega-section-title.css +35 -0
  245. package/dist/collection/components/vega-section-title/vega-section-title.js +64 -0
  246. package/dist/collection/components/vega-stepper/vega-stepper.css +3 -0
  247. package/dist/collection/helpers/calendar/calendar-date.js +10 -0
  248. package/dist/collection/helpers/calendar/calendar-view-generator/calendar-view-generator.abstract.js +2 -2
  249. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
  250. package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-margin-formatter.js +3 -3
  251. package/dist/collection/helpers/formatter/string-formatter/custom-formatter-strategy.js +3 -1
  252. package/dist/collection/helpers/formatter/string-formatter/number-mask-strategy.js +3 -1
  253. package/dist/collection/helpers/formatter/string-formatter/number-thousand-comma-strategy.js +3 -2
  254. package/dist/collection/helpers/formatter/string-formatter/string-format-strategy.abstract.js +4 -1
  255. package/dist/collection/helpers/formatter/string-formatter/string-mask-strategy.js +38 -7
  256. package/dist/collection/helpers/formatter/string-formatter/thousand-comma-strategy.js +4 -0
  257. package/dist/collection/helpers/keyboard/keyboard-manager.js +11 -3
  258. package/dist/collection/helpers/slimmers/aria-dialog-focusable-trap-slimmer.js +67 -68
  259. package/dist/collection/types/type-guard.js +21 -0
  260. package/dist/collection/utils/ui.js +76 -2
  261. package/dist/esm/app-globals-80a7d395.js +428 -0
  262. package/dist/esm/aria-dialog-focusable-trap-slimmer-cc6a8c3e.js +215 -0
  263. package/dist/esm/child-nodes-notify-observer-slimmer-a8cb19cf.js +88 -0
  264. package/dist/esm/code-block-cd913077.js +5189 -0
  265. package/dist/esm/component-value-history-controller-slimmer.abstract-e595761d.js +709 -0
  266. package/dist/esm/content-state-89f8eecb.js +4942 -0
  267. package/dist/esm/date-required-rule-2b08f32c.js +90 -0
  268. package/dist/esm/design-token-7566d54c.js +388 -0
  269. package/dist/esm/dom-node-subject-observer-factory-aca0116e.js +138 -0
  270. package/dist/esm/element-appender-slimmer-df2a2da2.js +1972 -0
  271. package/dist/esm/event-emit-slimmer-9abc9241.js +265 -0
  272. package/dist/esm/form-field-controller-slimmer-40fcb5c2.js +1264 -0
  273. package/dist/esm/image-annotation-action-6048d32e.js +280 -0
  274. package/dist/esm/index.js +15 -15
  275. package/dist/esm/inject-keyboard-manager-c6557f50.js +35 -0
  276. package/dist/esm/keyboard-manager-c7b125d7.js +146 -0
  277. package/dist/esm/keyboard-manager-slimmer-6109039b.js +37 -0
  278. package/dist/esm/loader.js +11 -11
  279. package/dist/esm/month-view-generator-139ace5a.js +97 -0
  280. package/dist/esm/page-size-option-utils-50afc81a.js +61 -0
  281. package/dist/esm/public-rules-e42bce9d.js +31 -0
  282. package/dist/esm/range-b76edec7.js +176 -0
  283. package/dist/esm/responsive-format-facade-151dbd10.js +940 -0
  284. package/dist/esm/rich-text-editor-required-rule-1fc7c040.js +62 -0
  285. package/dist/esm/split-cell-operation-548ea374.js +2395 -0
  286. package/dist/esm/string-format-strategy.abstract-6488031a.js +61 -0
  287. package/dist/esm/string-input-formatter-slimmer-625e17a2.js +228 -0
  288. package/dist/esm/string-mask-strategy-a165d316.js +201 -0
  289. package/dist/esm/style-formatter-280757ae.js +32 -0
  290. package/dist/esm/sub-state-notify-slimmer-6c972bb4.js +79 -0
  291. package/dist/esm/sub-state-observer-slimmer-53643b5c.js +132 -0
  292. package/dist/esm/time-required-rule-3f5a8822.js +138 -0
  293. package/dist/esm/token-extension-5ee7a3f1.js +7591 -0
  294. package/dist/esm/type-guard-f6c9c89d.js +1979 -0
  295. package/dist/esm/ui-b7600a48.js +335 -0
  296. package/dist/esm/valid-credit-card-number-rule-3bf19ad6.js +171 -0
  297. package/dist/esm/vega-accordion.entry.js +6 -6
  298. package/dist/esm/vega-app-header-button.entry.js +6 -6
  299. package/dist/esm/vega-backdrop.entry.js +1 -1
  300. package/dist/esm/vega-banner.entry.js +5 -4
  301. package/dist/esm/vega-box.entry.js +5 -5
  302. package/dist/esm/vega-breadcrumb.entry.js +27 -10
  303. package/dist/esm/vega-button-circle.entry.js +7 -7
  304. package/dist/esm/vega-button-group_2.entry.js +6 -6
  305. package/dist/esm/vega-button-link.entry.js +3 -3
  306. package/dist/esm/vega-button.entry.js +6 -6
  307. package/dist/esm/vega-calendar_4.entry.js +30 -17
  308. package/dist/esm/vega-card.entry.js +5 -5
  309. package/dist/esm/vega-carousel.entry.js +5 -5
  310. package/dist/esm/vega-checkbox_2.entry.js +7 -7
  311. package/dist/esm/vega-chip.entry.js +7 -7
  312. package/dist/esm/vega-code-block.entry.js +10 -10
  313. package/dist/esm/vega-color-picker.entry.js +6 -6
  314. package/dist/esm/vega-combo-box.entry.js +9 -9
  315. package/dist/esm/vega-date-picker_2.entry.js +343 -285
  316. package/dist/esm/vega-dialog_2.entry.js +74 -10
  317. package/dist/esm/vega-divider.entry.js +5 -5
  318. package/dist/esm/vega-dropdown_5.entry.js +53 -15
  319. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  320. package/dist/esm/vega-field-label.entry.js +3 -3
  321. package/dist/esm/vega-file-uploader.entry.js +6 -6
  322. package/dist/esm/vega-flag-icon.entry.js +3 -3
  323. package/dist/esm/vega-flex.entry.js +6 -6
  324. package/dist/esm/vega-font.entry.js +4 -4
  325. package/dist/esm/vega-form.entry.js +9 -9
  326. package/dist/esm/vega-grid.entry.js +4 -4
  327. package/dist/esm/vega-icon.entry.js +4 -4
  328. package/dist/esm/vega-image-uploader.entry.js +8 -8
  329. package/dist/esm/vega-input-credit-card.entry.js +10 -10
  330. package/dist/esm/vega-input-numeric.entry.js +10 -10
  331. package/dist/esm/vega-input-passcode.entry.js +9 -9
  332. package/dist/esm/vega-input-phone-number.entry.js +8 -8
  333. package/dist/esm/vega-input-range.entry.js +6 -6
  334. package/dist/esm/vega-input-select.entry.js +8 -8
  335. package/dist/esm/vega-input.entry.js +41 -28
  336. package/dist/esm/vega-internal-event-id-70bd893d.js +73 -0
  337. package/dist/esm/vega-item-toggle.entry.js +3 -3
  338. package/dist/esm/vega-left-nav_5.entry.js +118 -13
  339. package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
  340. package/dist/esm/vega-page-notification_2.entry.js +2 -2
  341. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +3 -3
  342. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +24 -8
  343. package/dist/esm/vega-pagination.entry.js +44 -20
  344. package/dist/esm/vega-popover_2.entry.js +48 -12
  345. package/dist/esm/vega-progress-tracker_2.entry.js +43 -12
  346. package/dist/esm/vega-radio_2.entry.js +10 -10
  347. package/dist/esm/vega-rich-text-content.entry.js +101 -20
  348. package/dist/esm/vega-rich-text-editor_4.entry.js +30 -19
  349. package/dist/esm/vega-rich-text-table-properties_3.entry.js +9 -9
  350. package/dist/esm/vega-section-title.entry.js +21 -3
  351. package/dist/esm/vega-segment-control.entry.js +3 -3
  352. package/dist/esm/vega-selection-chip_2.entry.js +9 -9
  353. package/dist/esm/vega-selection-tile_2.entry.js +8 -8
  354. package/dist/esm/vega-sidenav_3.entry.js +8 -8
  355. package/dist/esm/vega-signature-capture.entry.js +9 -9
  356. package/dist/esm/vega-stepper.entry.js +7 -7
  357. package/dist/esm/vega-tab-group_2.entry.js +3 -3
  358. package/dist/esm/vega-table_11.entry.js +8 -8
  359. package/dist/esm/vega-text.entry.js +1 -1
  360. package/dist/esm/vega-textarea.entry.js +6 -6
  361. package/dist/esm/vega-time-picker_2.entry.js +12 -12
  362. package/dist/esm/vega-toggle-switch.entry.js +6 -6
  363. package/dist/esm/vega-tooltip_2.entry.js +8 -8
  364. package/dist/esm/vega.js +11 -11
  365. package/dist/esm/wait-for-component-did-render-6980a1a6.js +30 -0
  366. package/dist/sri/vega-sri-manifest.json +343 -339
  367. package/dist/types/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-item-renderer.d.ts +1 -0
  368. package/dist/types/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-renderer.d.ts +1 -0
  369. package/dist/types/components/vega-breadcrumb/vega-breadcrumb.d.ts +10 -0
  370. package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.d.ts +5 -0
  371. package/dist/types/components/vega-chip/vega-chip.d.ts +9 -0
  372. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-current-period-controller.d.ts +1 -6
  373. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-is-dual-months-controller.d.ts +28 -0
  374. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.d.ts +1 -2
  375. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +1 -2
  376. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.d.ts +1 -1
  377. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.d.ts +1 -1
  378. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +12 -0
  379. package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.d.ts +12 -0
  380. package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-renderer.d.ts +1 -0
  381. package/dist/types/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.d.ts +1 -0
  382. package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-renderer.d.ts +1 -0
  383. package/dist/types/components/vega-input/types.d.ts +35 -1
  384. package/dist/types/components/vega-input/vega-input.d.ts +17 -1
  385. package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-layout-controller.d.ts +9 -0
  386. package/dist/types/components/vega-modal/slimmers/renderers/vega-modal-renderer.d.ts +3 -0
  387. package/dist/types/components/vega-modal/vega-modal.d.ts +24 -1
  388. package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-open-state-controller.d.ts +17 -0
  389. package/dist/types/components/vega-pagination/constants/page-size.d.ts +2 -0
  390. package/dist/types/components/vega-pagination/internal/vega-pagination-page-size-selector.d.ts +3 -2
  391. package/dist/types/components/vega-pagination/slimmers/controllers/vega-pagination-page-size-observer-controller.d.ts +2 -0
  392. package/dist/types/components/vega-pagination/types.d.ts +9 -0
  393. package/dist/types/components/vega-pagination/utils/page-size-option-utils.d.ts +42 -0
  394. package/dist/types/components/vega-pagination/vega-pagination-page-size-selector-mobile/slimmers/renderers/page-size-selector-mobile-dropdown-renderer.d.ts +2 -0
  395. package/dist/types/components/vega-pagination/vega-pagination-page-size-selector-mobile/vega-pagination-page-size-selector-mobile.d.ts +9 -2
  396. package/dist/types/components/vega-pagination/vega-pagination.d.ts +8 -3
  397. package/dist/types/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.d.ts +6 -0
  398. package/dist/types/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-direction-controller.d.ts +14 -2
  399. package/dist/types/components/vega-progress-tracker/slimmers/renderers/vega-progress-tracker-renderer.d.ts +1 -1
  400. package/dist/types/components/vega-rich-text-editor/constants/constant.d.ts +5 -0
  401. package/dist/types/components/vega-rich-text-editor/dto/annotations/code-annotation.d.ts +6 -0
  402. package/dist/types/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.d.ts +7 -0
  403. package/dist/types/components/vega-rich-text-editor/dto/annotations/image-annotation.d.ts +7 -0
  404. package/dist/types/components/vega-rich-text-editor/dto/annotations/inline-html-annotation.d.ts +14 -0
  405. package/dist/types/components/vega-rich-text-editor/dto/annotations/link-group-annotation.d.ts +15 -2
  406. package/dist/types/components/vega-rich-text-editor/dto/annotations/list-annotation.d.ts +6 -0
  407. package/dist/types/components/vega-rich-text-editor/dto/annotations/text-format-default-styles.d.ts +22 -0
  408. package/dist/types/components/vega-rich-text-editor/dto/annotations/text-style-annotation.d.ts +7 -0
  409. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +4 -2
  410. package/dist/types/components/vega-rich-text-editor/dto/blocks/code-block.d.ts +2 -2
  411. package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +1 -11
  412. package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +1 -1
  413. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +1 -1
  414. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +1 -1
  415. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +15 -2
  416. package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +9 -3
  417. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/code-block/code-block-filter-styles-strategy.d.ts +27 -0
  418. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/code-block/code-node-filter-styles-strategy.d.ts +27 -0
  419. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.d.ts +27 -1
  420. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy.abstract.d.ts +104 -0
  421. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/image-node/image-filter-styles-strategy.d.ts +28 -0
  422. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-block-filter-styles-strategy.d.ts +23 -0
  423. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-heading-item-block-filter-styles-strategy.d.ts +19 -0
  424. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-item-block-filter-styles-strategy.d.ts +34 -0
  425. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-title-item-block-filter-styles-strategy.d.ts +19 -0
  426. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/predicate.d.ts +72 -0
  427. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/alignment-filter-styles-strategy.d.ts +27 -0
  428. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/heading-filter-styles-strategy.d.ts +10 -0
  429. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/paragraph-filter-styles-strategy.d.ts +34 -0
  430. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/title-filter-styles-strategy.d.ts +11 -0
  431. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/code-filter-styles-strategy.d.ts +40 -0
  432. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/link-filter-styles-strategy.d.ts +37 -0
  433. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/text-format-filter-styles-strategy.d.ts +41 -0
  434. package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/title-heading-node-filter-styles-strategy.d.ts +62 -0
  435. package/dist/types/components/vega-rich-text-editor/dto/nodes/code-block-node.d.ts +7 -3
  436. package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +1 -1
  437. package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +5 -3
  438. package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +43 -4
  439. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.d.ts +25 -0
  440. package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.d.ts +5 -0
  441. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.d.ts +12 -0
  442. package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +8 -0
  443. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-annotation.d.ts +8 -0
  444. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.d.ts +7 -1
  445. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.d.ts +9 -1
  446. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +1 -1
  447. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-body-block.d.ts +1 -1
  448. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.d.ts +5 -2
  449. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.d.ts +1 -1
  450. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-block.d.ts +1 -1
  451. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.d.ts +1 -1
  452. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-row-block.d.ts +1 -1
  453. package/dist/types/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-block/table-block-filter-styles-strategy.d.ts +29 -0
  454. package/dist/types/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-caption/table-caption-filter-styles-strategy.d.ts +29 -0
  455. package/dist/types/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-cell/table-cell-filter-styles-strategy.d.ts +46 -0
  456. package/dist/types/components/vega-rich-text-editor/helpers/utils.d.ts +8 -0
  457. package/dist/types/components/vega-rich-text-editor/interface.d.ts +27 -5
  458. package/dist/types/components/vega-rich-text-editor/public-api.d.ts +1 -0
  459. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/custom-style-annotation-handler.d.ts +0 -7
  460. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.d.ts +11 -1
  461. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/inline-html-annotation-handler.d.ts +11 -1
  462. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.d.ts +43 -7
  463. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy-processor.d.ts +8 -3
  464. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/html-block-strategy.d.ts +34 -1
  465. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/predicate.d.ts +21 -0
  466. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/strategy-tags.d.ts +83 -0
  467. package/dist/types/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-source-view-renderer.d.ts +6 -0
  468. package/dist/types/components/vega-section-title/slimmers/renderers/vega-section-title-renderer.d.ts +2 -0
  469. package/dist/types/components/vega-section-title/types.d.ts +1 -0
  470. package/dist/types/components/vega-section-title/vega-section-title.d.ts +14 -0
  471. package/dist/types/components.d.ts +93 -8
  472. package/dist/types/helpers/calendar/calendar-date.d.ts +7 -0
  473. package/dist/types/helpers/calendar/calendar-view-generator/calendar-view-generator.abstract.d.ts +0 -1
  474. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
  475. package/dist/types/helpers/formatter/string-formatter/custom-formatter-strategy.d.ts +2 -1
  476. package/dist/types/helpers/formatter/string-formatter/number-mask-strategy.d.ts +2 -1
  477. package/dist/types/helpers/formatter/string-formatter/number-thousand-comma-strategy.d.ts +2 -1
  478. package/dist/types/helpers/formatter/string-formatter/string-format-strategy.abstract.d.ts +1 -0
  479. package/dist/types/helpers/formatter/string-formatter/string-mask-strategy.d.ts +32 -4
  480. package/dist/types/helpers/formatter/string-formatter/thousand-comma-strategy.d.ts +1 -0
  481. package/dist/types/helpers/keyboard/keyboard-manager.d.ts +1 -0
  482. package/dist/types/helpers/slimmers/aria-dialog-focusable-trap-slimmer.d.ts +20 -9
  483. package/dist/types/types/components.type.d.ts +3 -0
  484. package/dist/types/types/type-guard.d.ts +15 -1
  485. package/dist/types/types/ui.type.d.ts +11 -1
  486. package/dist/types/utils/ui.d.ts +17 -1
  487. package/dist/vega/index.esm.js +1 -1
  488. package/dist/vega/p-001d36af.js +1 -0
  489. package/dist/vega/p-01541820.entry.js +1 -0
  490. package/dist/vega/p-0304c3a7.js +1 -0
  491. package/dist/vega/p-08f03a52.entry.js +1 -0
  492. package/dist/vega/p-0a145766.entry.js +1 -0
  493. package/dist/vega/p-0d205fbf.js +1 -0
  494. package/dist/vega/p-0fc2ccc4.entry.js +1 -0
  495. package/dist/vega/p-118aeed1.entry.js +1 -0
  496. package/dist/vega/p-1a4e8d8a.js +1 -0
  497. package/dist/vega/p-23dc4064.entry.js +1 -0
  498. package/dist/vega/p-24b45c85.js +1 -0
  499. package/dist/vega/p-262a27d0.js +1 -0
  500. package/dist/vega/p-27dc6562.entry.js +1 -0
  501. package/dist/vega/p-295326ca.entry.js +1 -0
  502. package/dist/vega/p-2beace1c.entry.js +1 -0
  503. package/dist/vega/p-2ce2972f.js +1 -0
  504. package/dist/vega/p-2e7d5e28.entry.js +1 -0
  505. package/dist/vega/p-2f99c511.js +1 -0
  506. package/dist/vega/p-32592497.entry.js +1 -0
  507. package/dist/vega/p-33860e54.js +1 -0
  508. package/dist/vega/p-37a9f4b4.entry.js +1 -0
  509. package/dist/vega/p-4013d954.entry.js +1 -0
  510. package/dist/vega/p-42da45e3.entry.js +1 -0
  511. package/dist/vega/p-42e246e4.entry.js +1 -0
  512. package/dist/vega/p-479a169c.entry.js +1 -0
  513. package/dist/vega/p-47a2eec1.entry.js +1 -0
  514. package/dist/vega/p-49ae8c79.js +1 -0
  515. package/dist/vega/p-4ed416e7.js +1 -0
  516. package/dist/vega/p-53ba1adb.entry.js +1 -0
  517. package/dist/vega/p-55019e55.entry.js +1 -0
  518. package/dist/vega/p-565aac6e.entry.js +1 -0
  519. package/dist/vega/p-574586c9.entry.js +1 -0
  520. package/dist/vega/p-5781b9f4.entry.js +1 -0
  521. package/dist/vega/p-57827342.entry.js +1 -0
  522. package/dist/vega/p-59c6f795.js +1 -0
  523. package/dist/vega/p-5a8be21c.entry.js +1 -0
  524. package/dist/vega/p-5baff397.js +1 -0
  525. package/dist/vega/p-5e9f6fb6.entry.js +1 -0
  526. package/dist/vega/p-5f377954.js +1 -1
  527. package/dist/vega/p-5f95a2fa.js +1 -0
  528. package/dist/vega/p-6216c30e.js +1 -0
  529. package/dist/vega/p-62e80151.entry.js +1 -0
  530. package/dist/vega/p-63d73fa0.entry.js +1 -0
  531. package/dist/vega/p-64e22fe5.js +1 -0
  532. package/dist/vega/p-679b1f00.entry.js +1 -0
  533. package/dist/vega/p-6e70d3cc.js +1 -0
  534. package/dist/vega/p-757bfca2.entry.js +1 -0
  535. package/dist/vega/p-76063dcb.js +1 -0
  536. package/dist/vega/p-76daa632.entry.js +1 -0
  537. package/dist/vega/p-77c6f14a.entry.js +1 -0
  538. package/dist/vega/p-7ac9e8ff.entry.js +1 -0
  539. package/dist/vega/p-83863463.js +1 -0
  540. package/dist/vega/p-88e6618d.js +1 -0
  541. package/dist/vega/p-90a0b9f3.entry.js +1 -0
  542. package/dist/vega/p-9324dd2c.entry.js +1 -0
  543. package/dist/vega/p-98c44c03.js +1 -0
  544. package/dist/vega/p-9aa1c66a.entry.js +1 -0
  545. package/dist/vega/p-9b01a28a.entry.js +1 -0
  546. package/dist/vega/p-9b14ac66.entry.js +1 -0
  547. package/dist/vega/p-9dcecdd3.js +1 -0
  548. package/dist/vega/p-a1d51bc2.js +1 -0
  549. package/dist/vega/p-ab4b06c9.entry.js +1 -0
  550. package/dist/vega/p-ac43be09.entry.js +1 -0
  551. package/dist/vega/p-add63fe0.entry.js +1 -0
  552. package/dist/vega/p-ae0f03c1.js +1 -0
  553. package/dist/vega/p-b525c800.entry.js +1 -0
  554. package/dist/vega/p-be651266.entry.js +1 -0
  555. package/dist/vega/p-c0d45f77.entry.js +1 -0
  556. package/dist/vega/p-c2e7992b.js +1 -0
  557. package/dist/vega/p-c56aa01c.entry.js +1 -0
  558. package/dist/vega/p-cc3c661c.entry.js +1 -0
  559. package/dist/vega/p-cda09e99.entry.js +1 -0
  560. package/dist/vega/p-d0ac7af8.js +1 -0
  561. package/dist/vega/p-d289a6af.js +3 -0
  562. package/dist/vega/p-d29e8972.entry.js +1 -0
  563. package/dist/vega/p-d47aa28f.js +1 -0
  564. package/dist/vega/p-d90eee9a.entry.js +1 -0
  565. package/dist/vega/p-da742a7f.entry.js +1 -0
  566. package/dist/vega/p-dc6e7a77.js +1 -0
  567. package/dist/vega/p-dcf8f58f.entry.js +1 -0
  568. package/dist/vega/p-dff66a67.entry.js +1 -0
  569. package/dist/vega/p-e1117034.entry.js +1 -0
  570. package/dist/vega/p-e223e0dc.entry.js +1 -0
  571. package/dist/vega/p-e22e5aa1.js +1 -0
  572. package/dist/vega/p-e753fac2.entry.js +1 -0
  573. package/dist/vega/p-e7a4b760.entry.js +1 -0
  574. package/dist/vega/p-e8fc8495.entry.js +1 -0
  575. package/dist/vega/p-ea2b5dbb.js +1 -0
  576. package/dist/vega/p-eccabba7.entry.js +1 -0
  577. package/dist/vega/p-f0d605e9.entry.js +1 -0
  578. package/dist/vega/p-f28a6074.js +1 -0
  579. package/dist/vega/p-f2c65579.entry.js +1 -0
  580. package/dist/vega/p-f2cef51a.js +1 -0
  581. package/dist/vega/p-f40d479d.entry.js +1 -0
  582. package/dist/vega/p-f5013494.entry.js +1 -0
  583. package/dist/vega/p-f509b439.js +1 -0
  584. package/dist/vega/p-f5d3ce94.js +1 -0
  585. package/dist/vega/p-f69e2801.entry.js +1 -0
  586. package/dist/vega/p-fa654762.entry.js +1 -0
  587. package/dist/vega/p-fbc5a7f6.entry.js +1 -0
  588. package/dist/vega/p-fd5ddc55.js +1 -0
  589. package/dist/vega/p-ff47aeee.entry.js +1 -0
  590. package/dist/vega/vega.esm.js +1 -1
  591. package/package.json +3 -2
  592. package/dist/cjs/app-globals-e9fdfbf9.js +0 -430
  593. package/dist/cjs/aria-dialog-focusable-trap-slimmer-6faafc3e.js +0 -218
  594. package/dist/cjs/child-nodes-notify-observer-slimmer-06c78f97.js +0 -90
  595. package/dist/cjs/code-block-847534e3.js +0 -4453
  596. package/dist/cjs/component-value-history-controller-slimmer.abstract-d7f9812a.js +0 -714
  597. package/dist/cjs/content-state-99be18a3.js +0 -4076
  598. package/dist/cjs/date-required-rule-3823d506.js +0 -92
  599. package/dist/cjs/design-token-b497bb6e.js +0 -402
  600. package/dist/cjs/dom-node-subject-observer-factory-f7ed3bdc.js +0 -141
  601. package/dist/cjs/element-appender-slimmer-eba4f3a2.js +0 -1974
  602. package/dist/cjs/event-emit-slimmer-83f8e2bd.js +0 -267
  603. package/dist/cjs/form-field-controller-slimmer-93ca7239.js +0 -1266
  604. package/dist/cjs/image-annotation-action-9d6af380.js +0 -285
  605. package/dist/cjs/inject-keyboard-manager-23d07d87.js +0 -37
  606. package/dist/cjs/keyboard-manager-3923e29b.js +0 -140
  607. package/dist/cjs/keyboard-manager-slimmer-f602725d.js +0 -39
  608. package/dist/cjs/month-view-generator-aa8e8e74.js +0 -102
  609. package/dist/cjs/public-rules-1dbda124.js +0 -46
  610. package/dist/cjs/range-60fb9dd2.js +0 -178
  611. package/dist/cjs/responsive-format-facade-a32cdb67.js +0 -944
  612. package/dist/cjs/rich-text-editor-required-rule-b4aab68d.js +0 -64
  613. package/dist/cjs/split-cell-operation-190d4a87.js +0 -2411
  614. package/dist/cjs/string-format-strategy.abstract-730088ee.js +0 -60
  615. package/dist/cjs/string-input-formatter-slimmer-9d6df58b.js +0 -230
  616. package/dist/cjs/string-mask-strategy-b69e3b9e.js +0 -172
  617. package/dist/cjs/style-formatter-9d8a4ad2.js +0 -34
  618. package/dist/cjs/sub-state-notify-slimmer-c80b9d21.js +0 -81
  619. package/dist/cjs/sub-state-observer-slimmer-15740c97.js +0 -134
  620. package/dist/cjs/time-required-rule-6524b650.js +0 -141
  621. package/dist/cjs/token-extension-b7c4ea17.js +0 -7438
  622. package/dist/cjs/type-guard-2a46bca5.js +0 -2022
  623. package/dist/cjs/ui-b3db0122.js +0 -277
  624. package/dist/cjs/valid-credit-card-number-rule-8eb02ea7.js +0 -173
  625. package/dist/cjs/vega-internal-event-id-67bb91c1.js +0 -124
  626. package/dist/cjs/wait-for-component-did-render-9e41b39e.js +0 -32
  627. package/dist/collection/components/vega-calendar/slimmers/common/helpers/test/calendar-event-repeat-pattern-factory.test.js +0 -195
  628. package/dist/collection/components/vega-calendar/slimmers/common/layout/test/long-event-layout-generator.test.js +0 -94
  629. package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/timed-event/layout/test/day-view-event-layout-generator.test.js +0 -72
  630. package/dist/collection/components/vega-code-block/test/code-block-range.test.js +0 -81
  631. package/dist/collection/components/vega-dropdown/test/share.js +0 -13
  632. package/dist/collection/components/vega-input-credit-card/test/share.js +0 -21
  633. package/dist/collection/components/vega-nav/vega-left-nav/test/vega-left-nav-mock-data.js +0 -147
  634. package/dist/collection/components/vega-rich-text-editor/helpers/extension-context-manager.test.js +0 -21
  635. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/action-handle-strategy-registry.test.js +0 -71
  636. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/block-delete-node-content-strategy.test.js +0 -69
  637. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/block-insert-line-break-with-blocks-strategy.test.js +0 -24
  638. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/code-block-strategy-registry.test.js +0 -20
  639. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/content-state-strategy-registry.test.js +0 -15
  640. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-block-strategy-register.test.js +0 -32
  641. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-set-annotation-map-strategy.test.js +0 -11
  642. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-update-url-strategy.test.js +0 -16
  643. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-block-strategy-register.test.js +0 -20
  644. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-item-strategy-register.test.js +0 -87
  645. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-split-text-strategy.test.js +0 -32
  646. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-update-annotation-map-strategy.test.js +0 -17
  647. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/text-block-strategy-register.test.js +0 -77
  648. package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/update-selected-text-strategy.test.js +0 -23
  649. package/dist/collection/components/vega-rich-text-editor/test/dto/annotation-actions.test.js +0 -39
  650. package/dist/collection/components/vega-rich-text-editor/test/dto/annotation-style.test.js +0 -71
  651. package/dist/collection/components/vega-rich-text-editor/test/dto/annotations.test.js +0 -381
  652. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/code-block.test.js +0 -54
  653. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/html-block.test.js +0 -167
  654. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/image-block.test.js +0 -90
  655. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-block.test.js +0 -176
  656. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-item.test.js +0 -188
  657. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/text-block.test.js +0 -193
  658. package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +0 -3375
  659. package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/image-node.test.js +0 -108
  660. package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +0 -510
  661. package/dist/collection/components/vega-rich-text-editor/test/dto/range.test.js +0 -53
  662. package/dist/collection/components/vega-rich-text-editor/test/e2e-utils.js +0 -182
  663. package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/custom-attribute-annotation-handler.test.js +0 -49
  664. package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/element-to-text-node-strategy.test.js +0 -38
  665. package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/html-element-to-annotation-generator.test.js +0 -26
  666. package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/jira-code-to-rte-code-block-strategy.test.js +0 -32
  667. package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/vega-code-block-to-rte-code-block-strategy.test.js +0 -61
  668. package/dist/collection/components/vega-rich-text-editor/test/extensions/extension-test-utils.js +0 -43
  669. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/annotation-handler-registration.test.js +0 -164
  670. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-annotation-handler.test.js +0 -298
  671. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-cell-annotation-handler.test.js +0 -316
  672. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-head-cell-annotation-handler.test.js +0 -411
  673. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/caption-operation.test.js +0 -99
  674. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-annotation.test.js +0 -181
  675. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-caption-annotations.test.js +0 -84
  676. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-cell-annotation.test.js +0 -331
  677. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-color-annotation.test.js +0 -32
  678. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-dto.test.js +0 -1094
  679. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-element-to-dto-strategies.test.js +0 -1590
  680. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-test-utils.js +0 -172
  681. package/dist/collection/components/vega-rich-text-editor/test/filter-styles-strategies/filter-styles-strategy.test.js +0 -129
  682. package/dist/collection/components/vega-rich-text-editor/test/fixture.js +0 -257
  683. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/html-content-cleaner.test.js +0 -186
  684. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-after-opening-tag-processor.test.js +0 -22
  685. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-before-closing-tag-processor.test.js +0 -22
  686. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-between-tags-processor.test.js +0 -26
  687. package/dist/collection/components/vega-rich-text-editor/test/spec-utils.js +0 -35
  688. package/dist/collection/components/vega-sidenav/test/test.helper.js +0 -68
  689. package/dist/collection/components/vega-table/slimmers/controllers/dto/test/column-render-input-model.test.js +0 -83
  690. package/dist/collection/components/vega-table/slimmers/controllers/dto/test/column-structure-model.test.js +0 -147
  691. package/dist/collection/components/vega-table/test/utils.js +0 -22
  692. package/dist/collection/components/vega-table/test/vega-table-sorter.test.js +0 -508
  693. package/dist/collection/constants/tests/validator.test.js +0 -24
  694. package/dist/collection/decorators/method-decorators/tests/component-load-required.test.js +0 -114
  695. package/dist/collection/decorators/property-decorators/tests/inject-element-appender-proxy.test.js +0 -237
  696. package/dist/collection/decorators/property-decorators/tests/inject-keyboard-manager.test.js +0 -91
  697. package/dist/collection/global/tests/before-vega-load.test.js +0 -62
  698. package/dist/collection/helpers/calendar/test/calendar-date-time.test.js +0 -27
  699. package/dist/collection/helpers/calendar/test/calendar-date.test.js +0 -172
  700. package/dist/collection/helpers/calendar/test/calendar-event.test.js +0 -263
  701. package/dist/collection/helpers/calendar/test/calendar-period/day-period.test.js +0 -118
  702. package/dist/collection/helpers/calendar/test/calendar-period/month-period.test.js +0 -144
  703. package/dist/collection/helpers/calendar/test/calendar-period/week-period.test.js +0 -114
  704. package/dist/collection/helpers/calendar/test/calendar-time.test.js +0 -45
  705. package/dist/collection/helpers/calendar/test/calendar-view-generator/day-view-generator.test.js +0 -19
  706. package/dist/collection/helpers/calendar/test/calendar-view-generator/month-view-generator.test.js +0 -123
  707. package/dist/collection/helpers/calendar/test/calendar-view-generator/week-view-generator.test.js +0 -43
  708. package/dist/collection/helpers/calendar/test/calendar-view.test.js +0 -9
  709. package/dist/collection/helpers/calendar/test/index.test.js +0 -13
  710. package/dist/collection/helpers/calendar/test/utils.test.js +0 -62
  711. package/dist/collection/helpers/change-manager/test/change-manager.test.js +0 -30
  712. package/dist/collection/helpers/change-manager/test/dom-node-subject-factory.test.js +0 -38
  713. package/dist/collection/helpers/chart/test/controllers/chart-dimension-controller.test.js +0 -63
  714. package/dist/collection/helpers/chart/test/drawers/arc-path-drawer.test.js +0 -55
  715. package/dist/collection/helpers/chart/test/drawers/legend-drawer.test.js +0 -94
  716. package/dist/collection/helpers/chart/test/drawers/line-drawer.test.js +0 -25
  717. package/dist/collection/helpers/chart/test/drawers/path-drawer.test.js +0 -21
  718. package/dist/collection/helpers/chart/test/drawers/rect-drawer.test.js +0 -78
  719. package/dist/collection/helpers/chart/test/drawers/text-drawer.test.js +0 -25
  720. package/dist/collection/helpers/chart/test/drawers/x-axis-drawer.test.js +0 -38
  721. package/dist/collection/helpers/chart/test/drawers/y-axis-drawer.test.js +0 -44
  722. package/dist/collection/helpers/chart/test/graph-context-factory.test.js +0 -17
  723. package/dist/collection/helpers/chart/test/input-processors/format-time-positions-input-processor.test.js +0 -62
  724. package/dist/collection/helpers/chart/test/input-processors/horizontal-x-axis-input-processor.test.js +0 -45
  725. package/dist/collection/helpers/chart/test/input-processors/horizontal-y-axis-input-processor.test.js +0 -80
  726. package/dist/collection/helpers/chart/test/input-processors/layout-input-processor.test.js +0 -40
  727. package/dist/collection/helpers/chart/test/input-processors/line-path-input-processor.test.js +0 -16
  728. package/dist/collection/helpers/chart/test/input-processors/pie-chart-filter-input-processor.test.js +0 -20
  729. package/dist/collection/helpers/chart/test/input-processors/pie-chart-radius-input-processor.test.js +0 -48
  730. package/dist/collection/helpers/chart/test/input-processors/sort-positions-input-processor.test.js +0 -53
  731. package/dist/collection/helpers/chart/test/input-processors/x-axis-input-processor.test.js +0 -78
  732. package/dist/collection/helpers/chart/test/input-processors/x-axis-label-formatter-input-processor.test.js +0 -109
  733. package/dist/collection/helpers/chart/test/input-processors/y-axis-input-processor.coverage.test.js +0 -39
  734. package/dist/collection/helpers/chart/test/input-processors/y-axis-input-processor.test.js +0 -55
  735. package/dist/collection/helpers/chart/test/interacting-entry-generator/arc-path-hover-generator.test.js +0 -11
  736. package/dist/collection/helpers/chart/test/interacting-entry-generator/pie-legend-hover-generator.test.js +0 -25
  737. package/dist/collection/helpers/chart/test/interactors/interactor-factory.test.js +0 -19
  738. package/dist/collection/helpers/chart/test/interactors/svg-interactor.test.js +0 -48
  739. package/dist/collection/helpers/chart/test/line-chart.test.js +0 -96
  740. package/dist/collection/helpers/chart/test/pie-chart.test.js +0 -38
  741. package/dist/collection/helpers/chart/test/renderers/canvas-renderer.test.js +0 -31
  742. package/dist/collection/helpers/chart/test/renderers/renderer-factory.test.js +0 -19
  743. package/dist/collection/helpers/chart/test/renderers/svg-renderer.test.js +0 -99
  744. package/dist/collection/helpers/code-format/test/code-formatter.test.js +0 -410
  745. package/dist/collection/helpers/common/test/common.test.js +0 -7
  746. package/dist/collection/helpers/common/test/wait-for-component-did-render.test.js +0 -67
  747. package/dist/collection/helpers/common/test/wait-for-vega-handler.test.js +0 -17
  748. package/dist/collection/helpers/csp/test/styles-preservator.test.js +0 -207
  749. package/dist/collection/helpers/csp/test/vega-nonce-manager.test.js +0 -177
  750. package/dist/collection/helpers/dialog/test/vega-dialog-controller.test.js +0 -114
  751. package/dist/collection/helpers/event-manager/test/child-nodes-event-prevent-slimmer.test.js +0 -209
  752. package/dist/collection/helpers/event-manager/test/child-nodes-notify-observer-slimmer.test.js +0 -81
  753. package/dist/collection/helpers/event-manager/test/component-event-id-map.test.js +0 -16
  754. package/dist/collection/helpers/event-manager/test/event-emit-slimmer.test.js +0 -144
  755. package/dist/collection/helpers/event-manager/test/internal-vega-event-manager.test.js +0 -70
  756. package/dist/collection/helpers/event-manager/test/jquery-delegated-strategy-controller.test.js +0 -131
  757. package/dist/collection/helpers/event-manager/test/vega-event-id.test.js +0 -16
  758. package/dist/collection/helpers/event-manager/test/vega-event-manager.test.js +0 -97
  759. package/dist/collection/helpers/feature-control/tests/feature-flag-controller.test.js +0 -69
  760. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-border-radius-formatter.test.js +0 -64
  761. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-border-radius-style-formatter.test.js +0 -32
  762. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-box-display-formatter.test.js +0 -31
  763. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-custom-formatter.test.js +0 -17
  764. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-display-formatter.test.js +0 -23
  765. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-flex-direction-formatter.test.js +0 -19
  766. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-flex-wrap-formatter.test.js +0 -19
  767. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-format-mediator.test.js +0 -43
  768. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-gap-formatter.ts.test.js +0 -29
  769. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-grid-column-formatter.test.js +0 -23
  770. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-grid-justify-items-formatter.test.js +0 -19
  771. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-grid-row-formatter.test.js +0 -27
  772. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-margin-formatter.test.js +0 -43
  773. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-margin-style-formatter.test.js +0 -28
  774. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-padding-formatter.test.js +0 -43
  775. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-padding-style-formatter.test.js +0 -28
  776. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-size-formatter.test.js +0 -27
  777. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-text-align-formatter.test.js +0 -19
  778. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-translocation-formatter.test.js +0 -51
  779. package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-width-and-height-formatter.test.js +0 -20
  780. package/dist/collection/helpers/formatter/test/state-formatter/state-background-color-formatter.test.js +0 -18
  781. package/dist/collection/helpers/formatter/test/state-formatter/state-border-color-formatter.test.js +0 -13
  782. package/dist/collection/helpers/formatter/test/state-formatter/state-border-formatter.test.js +0 -13
  783. package/dist/collection/helpers/formatter/test/state-formatter/state-format-facade.test.js +0 -27
  784. package/dist/collection/helpers/formatter/test/state-formatter/state-shadow-formatter.test.js +0 -13
  785. package/dist/collection/helpers/formatter/test/string-formatter/custom-formatter-strategy.test.js +0 -13
  786. package/dist/collection/helpers/formatter/test/string-formatter/number-mask-strategy.test.js +0 -101
  787. package/dist/collection/helpers/formatter/test/string-formatter/number-thousand-comma-mask-strategy.test.js +0 -40
  788. package/dist/collection/helpers/formatter/test/string-formatter/string-mask-strategy.test.js +0 -147
  789. package/dist/collection/helpers/formatter/test/string-formatter/thousand-comma-strategy.test.js +0 -21
  790. package/dist/collection/helpers/formatter/test/string-formatter/vega-phone-number-input-strategy.test.js +0 -43
  791. package/dist/collection/helpers/formatter/test/style-formatter.test.js +0 -16
  792. package/dist/collection/helpers/icon/test/icon-manager-controller.test.js +0 -101
  793. package/dist/collection/helpers/icon/test/internal-icon-manager.test.js +0 -18
  794. package/dist/collection/helpers/immutable/test/immutable-array.test.js +0 -78
  795. package/dist/collection/helpers/immutable/test/immutable-map.test.js +0 -83
  796. package/dist/collection/helpers/immutable/test/immutable-set.test.js +0 -87
  797. package/dist/collection/helpers/keyboard/test/keyboard-manager.test.js +0 -241
  798. package/dist/collection/helpers/level-tracker/test/nested-level-tracker.test.js +0 -33
  799. package/dist/collection/helpers/loading-indicator/tests/vega-loader-controller.test.js +0 -192
  800. package/dist/collection/helpers/notify/tests/vega-notify-controller.test.js +0 -165
  801. package/dist/collection/helpers/paginator/test/value-paginator.test.js +0 -15
  802. package/dist/collection/helpers/queue/test/synchronize-task-queue.test.js +0 -76
  803. package/dist/collection/helpers/remote-invocation/remote-invocation-registry.test.js +0 -17
  804. package/dist/collection/helpers/rte-manager/rte.manager.test.js +0 -94
  805. package/dist/collection/helpers/skeleton-loader/tests/vega-skeleton-loader-controller.test.js +0 -194
  806. package/dist/collection/helpers/slimmers/element-appender/body-positioned-wrapper/test/vega-popover-wrapper.test.js +0 -66
  807. package/dist/collection/helpers/slimmers/element-appender/test/element-appender-slimmer.test.js +0 -621
  808. package/dist/collection/helpers/slimmers/mutation-observer/test/aria-attributes-value-mapper.test.js +0 -248
  809. package/dist/collection/helpers/slimmers/mutation-observer/test/data-tab-index-value-mapper.test.js +0 -120
  810. package/dist/collection/helpers/slimmers/mutation-observer/test/mutation-observer-slimmer.test.js +0 -182
  811. package/dist/collection/helpers/slimmers/position-calculation/test/body-position-calculation-strategy.test.js +0 -399
  812. package/dist/collection/helpers/slimmers/position-calculation/test/screen-position-calculation-strategy.test.js +0 -383
  813. package/dist/collection/helpers/slimmers/runtime-metrics/test/public-api-runtime-metrics-slimmer-base.test.js +0 -96
  814. package/dist/collection/helpers/slimmers/sub-state/test/sub-state-observer-slimmer.test.js +0 -228
  815. package/dist/collection/helpers/slimmers/test/aria-dialog-focusable-trap-slimmer.test.js +0 -375
  816. package/dist/collection/helpers/slimmers/test/auto-run-when-re-render-task-queue-slimmer.test.js +0 -46
  817. package/dist/collection/helpers/slimmers/test/brand-switch-state-controller-slimmer.test.js +0 -75
  818. package/dist/collection/helpers/slimmers/test/component-global-style-slimmer.test.js +0 -104
  819. package/dist/collection/helpers/slimmers/test/component-usage-runtime-metrics.test.js +0 -72
  820. package/dist/collection/helpers/slimmers/test/dark-mode-state-controller.test.js +0 -65
  821. package/dist/collection/helpers/slimmers/test/deprecated-property-slimmer.test.js +0 -36
  822. package/dist/collection/helpers/slimmers/test/field-error-controller-slimmer.test.js +0 -55
  823. package/dist/collection/helpers/slimmers/test/form-field-controller-slimmer.test.js +0 -278
  824. package/dist/collection/helpers/slimmers/test/form-field-valid-invoke-slimmer.test.js +0 -106
  825. package/dist/collection/helpers/slimmers/test/global/vega-nonce-injector-slimmer.test.js +0 -64
  826. package/dist/collection/helpers/slimmers/test/global/vega-translate-observer-slimmer.test.js +0 -89
  827. package/dist/collection/helpers/slimmers/test/global/vega-watch-method-cancel-slimmer.test.js +0 -101
  828. package/dist/collection/helpers/slimmers/test/keyboard-manager-slimmer.test.js +0 -90
  829. package/dist/collection/helpers/slimmers/test/page-resize-observer-slimmer.test.js +0 -278
  830. package/dist/collection/helpers/slimmers/test/string-input-formatter-slimmer.test.js +0 -220
  831. package/dist/collection/helpers/slimmers/test/translation-slimmer.test.js +0 -89
  832. package/dist/collection/helpers/theme/tests/theme-manager-controller.test.js +0 -614
  833. package/dist/collection/helpers/touch-helper/test/touch-listener.test.js +0 -122
  834. package/dist/collection/helpers/translation/tests/internal-translation-controller.test.js +0 -288
  835. package/dist/collection/helpers/translation/tests/translation.test.js +0 -46
  836. package/dist/collection/helpers/ui/test/element-appender.test.js +0 -530
  837. package/dist/collection/helpers/validator/test/rules/check-box-required-rule.test.js +0 -88
  838. package/dist/collection/helpers/validator/test/rules/custom-validation-rule.test.js +0 -56
  839. package/dist/collection/helpers/validator/test/rules/date-range-rule.test.js +0 -67
  840. package/dist/collection/helpers/validator/test/rules/date-required-rule.test.js +0 -120
  841. package/dist/collection/helpers/validator/test/rules/email-field-rule.test.js +0 -69
  842. package/dist/collection/helpers/validator/test/rules/file-uploader-required-rule.test.js +0 -7
  843. package/dist/collection/helpers/validator/test/rules/input-phone-number-required-rule.test.js +0 -105
  844. package/dist/collection/helpers/validator/test/rules/input-range-min-and-max-rule.test.js +0 -146
  845. package/dist/collection/helpers/validator/test/rules/input-range-required-rule.test.js +0 -82
  846. package/dist/collection/helpers/validator/test/rules/input-select-value-in-source-rule.test.js +0 -99
  847. package/dist/collection/helpers/validator/test/rules/max-number-rule.test.js +0 -97
  848. package/dist/collection/helpers/validator/test/rules/max-string-length-rule.test.js +0 -85
  849. package/dist/collection/helpers/validator/test/rules/min-and-max-date-rule.test.js +0 -174
  850. package/dist/collection/helpers/validator/test/rules/min-number-rule.test.js +0 -97
  851. package/dist/collection/helpers/validator/test/rules/min-string-length-rule.test.js +0 -85
  852. package/dist/collection/helpers/validator/test/rules/public-rules.test.js +0 -80
  853. package/dist/collection/helpers/validator/test/rules/required-field-rule.test.js +0 -126
  854. package/dist/collection/helpers/validator/test/rules/rich-text-editor-required-rule.test.js +0 -360
  855. package/dist/collection/helpers/validator/test/rules/time-range-required-rule.test.js +0 -82
  856. package/dist/collection/helpers/validator/test/rules/time-range-rule.test.js +0 -67
  857. package/dist/collection/helpers/validator/test/rules/time-required-rule.test.js +0 -116
  858. package/dist/collection/helpers/validator/test/rules/toggle-switch-required-rule.test.js +0 -72
  859. package/dist/collection/helpers/validator/test/rules/valid-credit-card-number-rule.test.js +0 -135
  860. package/dist/collection/helpers/validator/test/rules/valid-phone-number-rule.test.js +0 -95
  861. package/dist/collection/helpers/validator/test/validation-rule-handler/form-field-validation-rule-handler-chain.test.js +0 -65
  862. package/dist/collection/helpers/validator/test/validation-rule-handler/form-field-validation-rule-handler.test.js +0 -82
  863. package/dist/collection/helpers/validator/test/validator/form-field-controller.test.js +0 -205
  864. package/dist/collection/helpers/vega-telemetry-helper/test/vega-env-manager.test.js +0 -14
  865. package/dist/collection/helpers/zindex/test/internal-vega-z-index-manager.test.js +0 -176
  866. package/dist/collection/helpers/zindex/test/vega-z-index-manager.test.js +0 -46
  867. package/dist/collection/polyfill/d3/test/d3-array-polyfill.test.js +0 -72
  868. package/dist/collection/polyfill/d3/test/d3-axis-polyfill.test.js +0 -171
  869. package/dist/collection/polyfill/d3/test/d3-integration.test.js +0 -137
  870. package/dist/collection/polyfill/d3/test/d3-scale-polyfill.test.js +0 -382
  871. package/dist/collection/polyfill/d3/test/d3-selection-polyfill.test.js +0 -239
  872. package/dist/collection/polyfill/d3/test/d3-shape-polyfill.test.js +0 -225
  873. package/dist/collection/polyfill/d3/test/d3-time-format-polyfill.test.js +0 -162
  874. package/dist/collection/polyfill/d3/test/d3-time-polyfill.test.js +0 -76
  875. package/dist/collection/polyfill/d3/test/index.test.js +0 -78
  876. package/dist/collection/polyfill/libphonenumber/test/as-you-type.test.js +0 -309
  877. package/dist/collection/polyfill/libphonenumber/test/format-helpers.test.js +0 -192
  878. package/dist/collection/polyfill/libphonenumber/test/index.test.js +0 -16
  879. package/dist/collection/polyfill/libphonenumber/test/metadata.test.js +0 -196
  880. package/dist/collection/polyfill/libphonenumber/test/parse-phone-number.test.js +0 -218
  881. package/dist/collection/polyfill/libphonenumber/test/phone-number.test.js +0 -56
  882. package/dist/collection/polyfill/prism/test/css.test.js +0 -61
  883. package/dist/collection/polyfill/prism/test/javascript.test.js +0 -113
  884. package/dist/collection/polyfill/prism/test/jsx.test.js +0 -48
  885. package/dist/collection/polyfill/prism/test/language-registry.test.js +0 -77
  886. package/dist/collection/polyfill/prism/test/markup.test.js +0 -57
  887. package/dist/collection/polyfill/prism/test/test-utils.js +0 -22
  888. package/dist/collection/polyfill/prism/test/tokenizer.test.js +0 -180
  889. package/dist/collection/polyfill/prism/test/tsx.test.js +0 -87
  890. package/dist/collection/polyfill/prism/test/typescript.test.js +0 -86
  891. package/dist/collection/polyfill/shadow-selection/test/shadow-selection-polyfill.test.js +0 -234
  892. package/dist/collection/polyfill/test-polyfill/e2e/retry.js +0 -42
  893. package/dist/collection/polyfill/test-polyfill/unit/create-touch-event.js +0 -31
  894. package/dist/collection/polyfill/test-polyfill/unit/events.js +0 -100
  895. package/dist/collection/polyfill/test-polyfill/unit/index.js +0 -3
  896. package/dist/collection/polyfill/test-polyfill/unit/methods.js +0 -47
  897. package/dist/collection/polyfill/test-polyfill/unit/range.js +0 -15
  898. package/dist/collection/polyfill/test-polyfill/unit/shadow-selection.js +0 -17
  899. package/dist/collection/polyfill/tinycolor/tinycolor-polyfill.test.js +0 -361
  900. package/dist/collection/test-assets/test-icons.js +0 -5
  901. package/dist/collection/types/test/type-guard.test.js +0 -46
  902. package/dist/collection/utils/e2e-utils.js +0 -389
  903. package/dist/collection/utils/sanitize/test/empty-strategy.test.js +0 -12
  904. package/dist/collection/utils/sanitize/test/html-sanitizer.test.js +0 -57
  905. package/dist/collection/utils/sanitize/test/label-strategy.test.js +0 -56
  906. package/dist/collection/utils/sanitize/test/sanitize-strategy.test.js +0 -85
  907. package/dist/collection/utils/sanitize/test/sanitize.test.js +0 -22
  908. package/dist/collection/utils/sanitize/test/serialize-fragment.test.js +0 -25
  909. package/dist/collection/utils/sanitize/test/style-strategy.test.js +0 -45
  910. package/dist/collection/utils/spec-utils.js +0 -226
  911. package/dist/collection/utils/test/accessibility.test.js +0 -40
  912. package/dist/collection/utils/test/api.test.js +0 -34
  913. package/dist/collection/utils/test/array.test.js +0 -260
  914. package/dist/collection/utils/test/breakpoint.test.js +0 -37
  915. package/dist/collection/utils/test/component.test.js +0 -59
  916. package/dist/collection/utils/test/date.test.js +0 -104
  917. package/dist/collection/utils/test/design-token.test.js +0 -91
  918. package/dist/collection/utils/test/effect.test.js +0 -64
  919. package/dist/collection/utils/test/local-storage.test.js +0 -38
  920. package/dist/collection/utils/test/log.test.js +0 -49
  921. package/dist/collection/utils/test/misc.test.js +0 -40
  922. package/dist/collection/utils/test/number.test.js +0 -18
  923. package/dist/collection/utils/test/object.test.js +0 -77
  924. package/dist/collection/utils/test/pagination.test.js +0 -40
  925. package/dist/collection/utils/test/pixel.test.js +0 -29
  926. package/dist/collection/utils/test/safe-document.test.js +0 -13
  927. package/dist/collection/utils/test/spec-utils.test.js +0 -73
  928. package/dist/collection/utils/test/string.test.js +0 -8
  929. package/dist/collection/utils/test/test-utils.test.js +0 -70
  930. package/dist/collection/utils/test/timer.test.js +0 -16
  931. package/dist/collection/utils/test/ui.test.js +0 -301
  932. package/dist/collection/utils/test-utils.js +0 -156
  933. package/dist/esm/app-globals-776ccaa3.js +0 -428
  934. package/dist/esm/aria-dialog-focusable-trap-slimmer-cc98a7a4.js +0 -216
  935. package/dist/esm/child-nodes-notify-observer-slimmer-c7297b9f.js +0 -88
  936. package/dist/esm/code-block-58d1dbe5.js +0 -4395
  937. package/dist/esm/component-value-history-controller-slimmer.abstract-5beb8acb.js +0 -709
  938. package/dist/esm/content-state-dad1fd71.js +0 -4056
  939. package/dist/esm/date-required-rule-4c40a4eb.js +0 -90
  940. package/dist/esm/design-token-9c4eb6b1.js +0 -388
  941. package/dist/esm/dom-node-subject-observer-factory-94b2e2c3.js +0 -138
  942. package/dist/esm/element-appender-slimmer-fde815dc.js +0 -1972
  943. package/dist/esm/event-emit-slimmer-b236945b.js +0 -265
  944. package/dist/esm/form-field-controller-slimmer-00fa3678.js +0 -1264
  945. package/dist/esm/image-annotation-action-1ec7b461.js +0 -280
  946. package/dist/esm/inject-keyboard-manager-784b1364.js +0 -35
  947. package/dist/esm/keyboard-manager-e020039f.js +0 -138
  948. package/dist/esm/keyboard-manager-slimmer-4722d20c.js +0 -37
  949. package/dist/esm/month-view-generator-6fe1f491.js +0 -98
  950. package/dist/esm/public-rules-1626fb0d.js +0 -31
  951. package/dist/esm/range-4f9bf69d.js +0 -176
  952. package/dist/esm/responsive-format-facade-e8534e59.js +0 -940
  953. package/dist/esm/rich-text-editor-required-rule-c391aeb6.js +0 -62
  954. package/dist/esm/split-cell-operation-55cd9fae.js +0 -2360
  955. package/dist/esm/string-format-strategy.abstract-8c48e515.js +0 -58
  956. package/dist/esm/string-input-formatter-slimmer-519480ce.js +0 -228
  957. package/dist/esm/string-mask-strategy-8070817e.js +0 -170
  958. package/dist/esm/style-formatter-7afd0680.js +0 -32
  959. package/dist/esm/sub-state-notify-slimmer-54531808.js +0 -79
  960. package/dist/esm/sub-state-observer-slimmer-b3a773c5.js +0 -132
  961. package/dist/esm/time-required-rule-2569e5ad.js +0 -138
  962. package/dist/esm/token-extension-612575cb.js +0 -7417
  963. package/dist/esm/type-guard-c20cbbff.js +0 -1948
  964. package/dist/esm/ui-ac244bf0.js +0 -261
  965. package/dist/esm/valid-credit-card-number-rule-b9c3c2f8.js +0 -171
  966. package/dist/esm/vega-internal-event-id-8002b179.js +0 -72
  967. package/dist/esm/wait-for-component-did-render-1e62d6f7.js +0 -30
  968. package/dist/types/components/vega-calendar/slimmers/common/helpers/test/calendar-event-repeat-pattern-factory.test.d.ts +0 -1
  969. package/dist/types/components/vega-calendar/slimmers/common/layout/test/long-event-layout-generator.test.d.ts +0 -1
  970. package/dist/types/components/vega-calendar/slimmers/day-view/renderers/timed-event/layout/test/day-view-event-layout-generator.test.d.ts +0 -1
  971. package/dist/types/components/vega-code-block/test/code-block-range.test.d.ts +0 -1
  972. package/dist/types/components/vega-dropdown/test/share.d.ts +0 -12
  973. package/dist/types/components/vega-input-credit-card/test/share.d.ts +0 -18
  974. package/dist/types/components/vega-nav/vega-left-nav/test/vega-left-nav-mock-data.d.ts +0 -4
  975. package/dist/types/components/vega-rich-text-editor/helpers/extension-context-manager.test.d.ts +0 -1
  976. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/action-handle-strategy-registry.test.d.ts +0 -1
  977. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/block-delete-node-content-strategy.test.d.ts +0 -1
  978. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/block-insert-line-break-with-blocks-strategy.test.d.ts +0 -1
  979. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/code-block-strategy-registry.test.d.ts +0 -1
  980. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/content-state-strategy-registry.test.d.ts +0 -1
  981. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-block-strategy-register.test.d.ts +0 -1
  982. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-set-annotation-map-strategy.test.d.ts +0 -1
  983. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-update-url-strategy.test.d.ts +0 -1
  984. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-block-strategy-register.test.d.ts +0 -1
  985. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-item-strategy-register.test.d.ts +0 -1
  986. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-split-text-strategy.test.d.ts +0 -1
  987. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-update-annotation-map-strategy.test.d.ts +0 -1
  988. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/text-block-strategy-register.test.d.ts +0 -1
  989. package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/update-selected-text-strategy.test.d.ts +0 -1
  990. package/dist/types/components/vega-rich-text-editor/test/dto/annotation-actions.test.d.ts +0 -1
  991. package/dist/types/components/vega-rich-text-editor/test/dto/annotation-style.test.d.ts +0 -1
  992. package/dist/types/components/vega-rich-text-editor/test/dto/annotations.test.d.ts +0 -1
  993. package/dist/types/components/vega-rich-text-editor/test/dto/blocks/code-block.test.d.ts +0 -1
  994. package/dist/types/components/vega-rich-text-editor/test/dto/blocks/html-block.test.d.ts +0 -1
  995. package/dist/types/components/vega-rich-text-editor/test/dto/blocks/image-block.test.d.ts +0 -1
  996. package/dist/types/components/vega-rich-text-editor/test/dto/blocks/list-block.test.d.ts +0 -1
  997. package/dist/types/components/vega-rich-text-editor/test/dto/blocks/list-item.test.d.ts +0 -1
  998. package/dist/types/components/vega-rich-text-editor/test/dto/blocks/text-block.test.d.ts +0 -1
  999. package/dist/types/components/vega-rich-text-editor/test/dto/content-state.test.d.ts +0 -1
  1000. package/dist/types/components/vega-rich-text-editor/test/dto/nodes/image-node.test.d.ts +0 -1
  1001. package/dist/types/components/vega-rich-text-editor/test/dto/nodes/text-node.test.d.ts +0 -1
  1002. package/dist/types/components/vega-rich-text-editor/test/dto/range.test.d.ts +0 -1
  1003. package/dist/types/components/vega-rich-text-editor/test/e2e-utils.d.ts +0 -67
  1004. package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/custom-attribute-annotation-handler.test.d.ts +0 -1
  1005. package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/element-to-text-node-strategy.test.d.ts +0 -1
  1006. package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/html-element-to-annotation-generator.test.d.ts +0 -1
  1007. package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/jira-code-to-rte-code-block-strategy.test.d.ts +0 -1
  1008. package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/vega-code-block-to-rte-code-block-strategy.test.d.ts +0 -1
  1009. package/dist/types/components/vega-rich-text-editor/test/extensions/extension-test-utils.d.ts +0 -21
  1010. package/dist/types/components/vega-rich-text-editor/test/extensions/table/annotation-handler/annotation-handler-registration.test.d.ts +0 -1
  1011. package/dist/types/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-annotation-handler.test.d.ts +0 -1
  1012. package/dist/types/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-cell-annotation-handler.test.d.ts +0 -8
  1013. package/dist/types/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-head-cell-annotation-handler.test.d.ts +0 -1
  1014. package/dist/types/components/vega-rich-text-editor/test/extensions/table/caption-operation.test.d.ts +0 -1
  1015. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-annotation.test.d.ts +0 -1
  1016. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-caption-annotations.test.d.ts +0 -1
  1017. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-cell-annotation.test.d.ts +0 -1
  1018. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-color-annotation.test.d.ts +0 -1
  1019. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-dto.test.d.ts +0 -1
  1020. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-element-to-dto-strategies.test.d.ts +0 -1
  1021. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-test-utils.d.ts +0 -11
  1022. package/dist/types/components/vega-rich-text-editor/test/filter-styles-strategies/filter-styles-strategy.test.d.ts +0 -1
  1023. package/dist/types/components/vega-rich-text-editor/test/fixture.d.ts +0 -19
  1024. package/dist/types/components/vega-rich-text-editor/test/html-cleaner/html-content-cleaner.test.d.ts +0 -1
  1025. package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-after-opening-tag-processor.test.d.ts +0 -1
  1026. package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-before-closing-tag-processor.test.d.ts +0 -1
  1027. package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-between-tags-processor.test.d.ts +0 -1
  1028. package/dist/types/components/vega-rich-text-editor/test/spec-utils.d.ts +0 -19
  1029. package/dist/types/components/vega-sidenav/test/test.helper.d.ts +0 -6
  1030. package/dist/types/components/vega-table/slimmers/controllers/dto/test/column-render-input-model.test.d.ts +0 -1
  1031. package/dist/types/components/vega-table/slimmers/controllers/dto/test/column-structure-model.test.d.ts +0 -1
  1032. package/dist/types/components/vega-table/test/utils.d.ts +0 -9
  1033. package/dist/types/components/vega-table/test/vega-table-sorter.test.d.ts +0 -1
  1034. package/dist/types/constants/tests/validator.test.d.ts +0 -1
  1035. package/dist/types/decorators/method-decorators/tests/component-load-required.test.d.ts +0 -1
  1036. package/dist/types/decorators/property-decorators/tests/inject-element-appender-proxy.test.d.ts +0 -1
  1037. package/dist/types/decorators/property-decorators/tests/inject-keyboard-manager.test.d.ts +0 -1
  1038. package/dist/types/global/tests/before-vega-load.test.d.ts +0 -1
  1039. package/dist/types/helpers/calendar/test/calendar-date-time.test.d.ts +0 -1
  1040. package/dist/types/helpers/calendar/test/calendar-date.test.d.ts +0 -1
  1041. package/dist/types/helpers/calendar/test/calendar-event.test.d.ts +0 -1
  1042. package/dist/types/helpers/calendar/test/calendar-period/day-period.test.d.ts +0 -1
  1043. package/dist/types/helpers/calendar/test/calendar-period/month-period.test.d.ts +0 -1
  1044. package/dist/types/helpers/calendar/test/calendar-period/week-period.test.d.ts +0 -1
  1045. package/dist/types/helpers/calendar/test/calendar-time.test.d.ts +0 -1
  1046. package/dist/types/helpers/calendar/test/calendar-view-generator/day-view-generator.test.d.ts +0 -1
  1047. package/dist/types/helpers/calendar/test/calendar-view-generator/month-view-generator.test.d.ts +0 -1
  1048. package/dist/types/helpers/calendar/test/calendar-view-generator/week-view-generator.test.d.ts +0 -1
  1049. package/dist/types/helpers/calendar/test/calendar-view.test.d.ts +0 -1
  1050. package/dist/types/helpers/calendar/test/index.test.d.ts +0 -1
  1051. package/dist/types/helpers/calendar/test/utils.test.d.ts +0 -1
  1052. package/dist/types/helpers/change-manager/test/change-manager.test.d.ts +0 -1
  1053. package/dist/types/helpers/change-manager/test/dom-node-subject-factory.test.d.ts +0 -1
  1054. package/dist/types/helpers/chart/test/controllers/chart-dimension-controller.test.d.ts +0 -1
  1055. package/dist/types/helpers/chart/test/drawers/arc-path-drawer.test.d.ts +0 -1
  1056. package/dist/types/helpers/chart/test/drawers/legend-drawer.test.d.ts +0 -1
  1057. package/dist/types/helpers/chart/test/drawers/line-drawer.test.d.ts +0 -1
  1058. package/dist/types/helpers/chart/test/drawers/path-drawer.test.d.ts +0 -1
  1059. package/dist/types/helpers/chart/test/drawers/rect-drawer.test.d.ts +0 -1
  1060. package/dist/types/helpers/chart/test/drawers/text-drawer.test.d.ts +0 -1
  1061. package/dist/types/helpers/chart/test/drawers/x-axis-drawer.test.d.ts +0 -1
  1062. package/dist/types/helpers/chart/test/drawers/y-axis-drawer.test.d.ts +0 -1
  1063. package/dist/types/helpers/chart/test/graph-context-factory.test.d.ts +0 -1
  1064. package/dist/types/helpers/chart/test/input-processors/format-time-positions-input-processor.test.d.ts +0 -1
  1065. package/dist/types/helpers/chart/test/input-processors/horizontal-x-axis-input-processor.test.d.ts +0 -1
  1066. package/dist/types/helpers/chart/test/input-processors/horizontal-y-axis-input-processor.test.d.ts +0 -1
  1067. package/dist/types/helpers/chart/test/input-processors/layout-input-processor.test.d.ts +0 -1
  1068. package/dist/types/helpers/chart/test/input-processors/line-path-input-processor.test.d.ts +0 -1
  1069. package/dist/types/helpers/chart/test/input-processors/pie-chart-filter-input-processor.test.d.ts +0 -1
  1070. package/dist/types/helpers/chart/test/input-processors/pie-chart-radius-input-processor.test.d.ts +0 -1
  1071. package/dist/types/helpers/chart/test/input-processors/sort-positions-input-processor.test.d.ts +0 -1
  1072. package/dist/types/helpers/chart/test/input-processors/x-axis-input-processor.test.d.ts +0 -1
  1073. package/dist/types/helpers/chart/test/input-processors/x-axis-label-formatter-input-processor.test.d.ts +0 -1
  1074. package/dist/types/helpers/chart/test/input-processors/y-axis-input-processor.coverage.test.d.ts +0 -1
  1075. package/dist/types/helpers/chart/test/input-processors/y-axis-input-processor.test.d.ts +0 -1
  1076. package/dist/types/helpers/chart/test/interacting-entry-generator/arc-path-hover-generator.test.d.ts +0 -1
  1077. package/dist/types/helpers/chart/test/interacting-entry-generator/pie-legend-hover-generator.test.d.ts +0 -1
  1078. package/dist/types/helpers/chart/test/interactors/interactor-factory.test.d.ts +0 -1
  1079. package/dist/types/helpers/chart/test/interactors/svg-interactor.test.d.ts +0 -1
  1080. package/dist/types/helpers/chart/test/line-chart.test.d.ts +0 -1
  1081. package/dist/types/helpers/chart/test/pie-chart.test.d.ts +0 -1
  1082. package/dist/types/helpers/chart/test/renderers/canvas-renderer.test.d.ts +0 -1
  1083. package/dist/types/helpers/chart/test/renderers/renderer-factory.test.d.ts +0 -1
  1084. package/dist/types/helpers/chart/test/renderers/svg-renderer.test.d.ts +0 -1
  1085. package/dist/types/helpers/code-format/test/code-formatter.test.d.ts +0 -1
  1086. package/dist/types/helpers/common/test/common.test.d.ts +0 -1
  1087. package/dist/types/helpers/common/test/wait-for-component-did-render.test.d.ts +0 -1
  1088. package/dist/types/helpers/common/test/wait-for-vega-handler.test.d.ts +0 -1
  1089. package/dist/types/helpers/csp/test/styles-preservator.test.d.ts +0 -1
  1090. package/dist/types/helpers/csp/test/vega-nonce-manager.test.d.ts +0 -1
  1091. package/dist/types/helpers/dialog/test/vega-dialog-controller.test.d.ts +0 -1
  1092. package/dist/types/helpers/event-manager/test/child-nodes-event-prevent-slimmer.test.d.ts +0 -1
  1093. package/dist/types/helpers/event-manager/test/child-nodes-notify-observer-slimmer.test.d.ts +0 -1
  1094. package/dist/types/helpers/event-manager/test/component-event-id-map.test.d.ts +0 -1
  1095. package/dist/types/helpers/event-manager/test/event-emit-slimmer.test.d.ts +0 -1
  1096. package/dist/types/helpers/event-manager/test/internal-vega-event-manager.test.d.ts +0 -1
  1097. package/dist/types/helpers/event-manager/test/jquery-delegated-strategy-controller.test.d.ts +0 -1
  1098. package/dist/types/helpers/event-manager/test/vega-event-id.test.d.ts +0 -1
  1099. package/dist/types/helpers/event-manager/test/vega-event-manager.test.d.ts +0 -1
  1100. package/dist/types/helpers/feature-control/tests/feature-flag-controller.test.d.ts +0 -1
  1101. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-border-radius-formatter.test.d.ts +0 -1
  1102. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-border-radius-style-formatter.test.d.ts +0 -1
  1103. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-box-display-formatter.test.d.ts +0 -1
  1104. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-custom-formatter.test.d.ts +0 -1
  1105. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-display-formatter.test.d.ts +0 -1
  1106. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-flex-direction-formatter.test.d.ts +0 -1
  1107. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-flex-wrap-formatter.test.d.ts +0 -1
  1108. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-format-mediator.test.d.ts +0 -1
  1109. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-gap-formatter.ts.test.d.ts +0 -1
  1110. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-grid-column-formatter.test.d.ts +0 -1
  1111. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-grid-justify-items-formatter.test.d.ts +0 -1
  1112. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-grid-row-formatter.test.d.ts +0 -1
  1113. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-margin-formatter.test.d.ts +0 -1
  1114. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-margin-style-formatter.test.d.ts +0 -1
  1115. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-padding-formatter.test.d.ts +0 -1
  1116. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-padding-style-formatter.test.d.ts +0 -1
  1117. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-size-formatter.test.d.ts +0 -1
  1118. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-text-align-formatter.test.d.ts +0 -1
  1119. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-translocation-formatter.test.d.ts +0 -1
  1120. package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-width-and-height-formatter.test.d.ts +0 -1
  1121. package/dist/types/helpers/formatter/test/state-formatter/state-background-color-formatter.test.d.ts +0 -1
  1122. package/dist/types/helpers/formatter/test/state-formatter/state-border-color-formatter.test.d.ts +0 -1
  1123. package/dist/types/helpers/formatter/test/state-formatter/state-border-formatter.test.d.ts +0 -1
  1124. package/dist/types/helpers/formatter/test/state-formatter/state-format-facade.test.d.ts +0 -1
  1125. package/dist/types/helpers/formatter/test/state-formatter/state-shadow-formatter.test.d.ts +0 -1
  1126. package/dist/types/helpers/formatter/test/string-formatter/custom-formatter-strategy.test.d.ts +0 -1
  1127. package/dist/types/helpers/formatter/test/string-formatter/number-mask-strategy.test.d.ts +0 -1
  1128. package/dist/types/helpers/formatter/test/string-formatter/number-thousand-comma-mask-strategy.test.d.ts +0 -1
  1129. package/dist/types/helpers/formatter/test/string-formatter/string-mask-strategy.test.d.ts +0 -1
  1130. package/dist/types/helpers/formatter/test/string-formatter/thousand-comma-strategy.test.d.ts +0 -1
  1131. package/dist/types/helpers/formatter/test/string-formatter/vega-phone-number-input-strategy.test.d.ts +0 -1
  1132. package/dist/types/helpers/formatter/test/style-formatter.test.d.ts +0 -1
  1133. package/dist/types/helpers/icon/test/icon-manager-controller.test.d.ts +0 -1
  1134. package/dist/types/helpers/icon/test/internal-icon-manager.test.d.ts +0 -1
  1135. package/dist/types/helpers/immutable/test/immutable-array.test.d.ts +0 -1
  1136. package/dist/types/helpers/immutable/test/immutable-map.test.d.ts +0 -1
  1137. package/dist/types/helpers/immutable/test/immutable-set.test.d.ts +0 -1
  1138. package/dist/types/helpers/keyboard/test/keyboard-manager.test.d.ts +0 -1
  1139. package/dist/types/helpers/level-tracker/test/nested-level-tracker.test.d.ts +0 -1
  1140. package/dist/types/helpers/loading-indicator/tests/vega-loader-controller.test.d.ts +0 -1
  1141. package/dist/types/helpers/notify/tests/vega-notify-controller.test.d.ts +0 -1
  1142. package/dist/types/helpers/paginator/test/value-paginator.test.d.ts +0 -1
  1143. package/dist/types/helpers/queue/test/synchronize-task-queue.test.d.ts +0 -1
  1144. package/dist/types/helpers/remote-invocation/remote-invocation-registry.test.d.ts +0 -1
  1145. package/dist/types/helpers/rte-manager/rte.manager.test.d.ts +0 -1
  1146. package/dist/types/helpers/skeleton-loader/tests/vega-skeleton-loader-controller.test.d.ts +0 -1
  1147. package/dist/types/helpers/slimmers/element-appender/body-positioned-wrapper/test/vega-popover-wrapper.test.d.ts +0 -1
  1148. package/dist/types/helpers/slimmers/element-appender/test/element-appender-slimmer.test.d.ts +0 -1
  1149. package/dist/types/helpers/slimmers/mutation-observer/test/aria-attributes-value-mapper.test.d.ts +0 -1
  1150. package/dist/types/helpers/slimmers/mutation-observer/test/data-tab-index-value-mapper.test.d.ts +0 -1
  1151. package/dist/types/helpers/slimmers/mutation-observer/test/mutation-observer-slimmer.test.d.ts +0 -1
  1152. package/dist/types/helpers/slimmers/position-calculation/test/body-position-calculation-strategy.test.d.ts +0 -15
  1153. package/dist/types/helpers/slimmers/position-calculation/test/screen-position-calculation-strategy.test.d.ts +0 -1
  1154. package/dist/types/helpers/slimmers/runtime-metrics/test/public-api-runtime-metrics-slimmer-base.test.d.ts +0 -1
  1155. package/dist/types/helpers/slimmers/sub-state/test/sub-state-observer-slimmer.test.d.ts +0 -1
  1156. package/dist/types/helpers/slimmers/test/aria-dialog-focusable-trap-slimmer.test.d.ts +0 -1
  1157. package/dist/types/helpers/slimmers/test/auto-run-when-re-render-task-queue-slimmer.test.d.ts +0 -1
  1158. package/dist/types/helpers/slimmers/test/brand-switch-state-controller-slimmer.test.d.ts +0 -1
  1159. package/dist/types/helpers/slimmers/test/component-global-style-slimmer.test.d.ts +0 -1
  1160. package/dist/types/helpers/slimmers/test/component-usage-runtime-metrics.test.d.ts +0 -1
  1161. package/dist/types/helpers/slimmers/test/dark-mode-state-controller.test.d.ts +0 -1
  1162. package/dist/types/helpers/slimmers/test/deprecated-property-slimmer.test.d.ts +0 -1
  1163. package/dist/types/helpers/slimmers/test/field-error-controller-slimmer.test.d.ts +0 -1
  1164. package/dist/types/helpers/slimmers/test/form-field-controller-slimmer.test.d.ts +0 -1
  1165. package/dist/types/helpers/slimmers/test/form-field-valid-invoke-slimmer.test.d.ts +0 -1
  1166. package/dist/types/helpers/slimmers/test/global/vega-nonce-injector-slimmer.test.d.ts +0 -1
  1167. package/dist/types/helpers/slimmers/test/global/vega-translate-observer-slimmer.test.d.ts +0 -1
  1168. package/dist/types/helpers/slimmers/test/global/vega-watch-method-cancel-slimmer.test.d.ts +0 -1
  1169. package/dist/types/helpers/slimmers/test/keyboard-manager-slimmer.test.d.ts +0 -1
  1170. package/dist/types/helpers/slimmers/test/page-resize-observer-slimmer.test.d.ts +0 -1
  1171. package/dist/types/helpers/slimmers/test/string-input-formatter-slimmer.test.d.ts +0 -1
  1172. package/dist/types/helpers/slimmers/test/translation-slimmer.test.d.ts +0 -1
  1173. package/dist/types/helpers/theme/tests/theme-manager-controller.test.d.ts +0 -1
  1174. package/dist/types/helpers/touch-helper/test/touch-listener.test.d.ts +0 -1
  1175. package/dist/types/helpers/translation/tests/internal-translation-controller.test.d.ts +0 -1
  1176. package/dist/types/helpers/translation/tests/translation.test.d.ts +0 -1
  1177. package/dist/types/helpers/ui/test/element-appender.test.d.ts +0 -1
  1178. package/dist/types/helpers/validator/test/rules/check-box-required-rule.test.d.ts +0 -1
  1179. package/dist/types/helpers/validator/test/rules/custom-validation-rule.test.d.ts +0 -1
  1180. package/dist/types/helpers/validator/test/rules/date-range-rule.test.d.ts +0 -1
  1181. package/dist/types/helpers/validator/test/rules/date-required-rule.test.d.ts +0 -1
  1182. package/dist/types/helpers/validator/test/rules/email-field-rule.test.d.ts +0 -1
  1183. package/dist/types/helpers/validator/test/rules/file-uploader-required-rule.test.d.ts +0 -1
  1184. package/dist/types/helpers/validator/test/rules/input-phone-number-required-rule.test.d.ts +0 -1
  1185. package/dist/types/helpers/validator/test/rules/input-range-min-and-max-rule.test.d.ts +0 -1
  1186. package/dist/types/helpers/validator/test/rules/input-range-required-rule.test.d.ts +0 -1
  1187. package/dist/types/helpers/validator/test/rules/input-select-value-in-source-rule.test.d.ts +0 -1
  1188. package/dist/types/helpers/validator/test/rules/max-number-rule.test.d.ts +0 -1
  1189. package/dist/types/helpers/validator/test/rules/max-string-length-rule.test.d.ts +0 -1
  1190. package/dist/types/helpers/validator/test/rules/min-and-max-date-rule.test.d.ts +0 -1
  1191. package/dist/types/helpers/validator/test/rules/min-number-rule.test.d.ts +0 -1
  1192. package/dist/types/helpers/validator/test/rules/min-string-length-rule.test.d.ts +0 -1
  1193. package/dist/types/helpers/validator/test/rules/public-rules.test.d.ts +0 -1
  1194. package/dist/types/helpers/validator/test/rules/required-field-rule.test.d.ts +0 -1
  1195. package/dist/types/helpers/validator/test/rules/rich-text-editor-required-rule.test.d.ts +0 -1
  1196. package/dist/types/helpers/validator/test/rules/time-range-required-rule.test.d.ts +0 -1
  1197. package/dist/types/helpers/validator/test/rules/time-range-rule.test.d.ts +0 -1
  1198. package/dist/types/helpers/validator/test/rules/time-required-rule.test.d.ts +0 -1
  1199. package/dist/types/helpers/validator/test/rules/toggle-switch-required-rule.test.d.ts +0 -1
  1200. package/dist/types/helpers/validator/test/rules/valid-credit-card-number-rule.test.d.ts +0 -1
  1201. package/dist/types/helpers/validator/test/rules/valid-phone-number-rule.test.d.ts +0 -1
  1202. package/dist/types/helpers/validator/test/validation-rule-handler/form-field-validation-rule-handler-chain.test.d.ts +0 -1
  1203. package/dist/types/helpers/validator/test/validation-rule-handler/form-field-validation-rule-handler.test.d.ts +0 -1
  1204. package/dist/types/helpers/validator/test/validator/form-field-controller.test.d.ts +0 -1
  1205. package/dist/types/helpers/vega-telemetry-helper/test/vega-env-manager.test.d.ts +0 -1
  1206. package/dist/types/helpers/zindex/test/internal-vega-z-index-manager.test.d.ts +0 -1
  1207. package/dist/types/helpers/zindex/test/vega-z-index-manager.test.d.ts +0 -1
  1208. package/dist/types/polyfill/d3/test/d3-array-polyfill.test.d.ts +0 -1
  1209. package/dist/types/polyfill/d3/test/d3-axis-polyfill.test.d.ts +0 -1
  1210. package/dist/types/polyfill/d3/test/d3-integration.test.d.ts +0 -1
  1211. package/dist/types/polyfill/d3/test/d3-scale-polyfill.test.d.ts +0 -1
  1212. package/dist/types/polyfill/d3/test/d3-selection-polyfill.test.d.ts +0 -1
  1213. package/dist/types/polyfill/d3/test/d3-shape-polyfill.test.d.ts +0 -1
  1214. package/dist/types/polyfill/d3/test/d3-time-format-polyfill.test.d.ts +0 -1
  1215. package/dist/types/polyfill/d3/test/d3-time-polyfill.test.d.ts +0 -1
  1216. package/dist/types/polyfill/d3/test/index.test.d.ts +0 -1
  1217. package/dist/types/polyfill/libphonenumber/test/as-you-type.test.d.ts +0 -1
  1218. package/dist/types/polyfill/libphonenumber/test/format-helpers.test.d.ts +0 -1
  1219. package/dist/types/polyfill/libphonenumber/test/index.test.d.ts +0 -1
  1220. package/dist/types/polyfill/libphonenumber/test/metadata.test.d.ts +0 -1
  1221. package/dist/types/polyfill/libphonenumber/test/parse-phone-number.test.d.ts +0 -1
  1222. package/dist/types/polyfill/libphonenumber/test/phone-number.test.d.ts +0 -1
  1223. package/dist/types/polyfill/prism/test/css.test.d.ts +0 -1
  1224. package/dist/types/polyfill/prism/test/javascript.test.d.ts +0 -1
  1225. package/dist/types/polyfill/prism/test/jsx.test.d.ts +0 -1
  1226. package/dist/types/polyfill/prism/test/language-registry.test.d.ts +0 -1
  1227. package/dist/types/polyfill/prism/test/markup.test.d.ts +0 -1
  1228. package/dist/types/polyfill/prism/test/test-utils.d.ts +0 -10
  1229. package/dist/types/polyfill/prism/test/tokenizer.test.d.ts +0 -1
  1230. package/dist/types/polyfill/prism/test/tsx.test.d.ts +0 -1
  1231. package/dist/types/polyfill/prism/test/typescript.test.d.ts +0 -1
  1232. package/dist/types/polyfill/shadow-selection/test/shadow-selection-polyfill.test.d.ts +0 -0
  1233. package/dist/types/polyfill/test-polyfill/e2e/retry.d.ts +0 -8
  1234. package/dist/types/polyfill/test-polyfill/unit/create-touch-event.d.ts +0 -11
  1235. package/dist/types/polyfill/test-polyfill/unit/events.d.ts +0 -1
  1236. package/dist/types/polyfill/test-polyfill/unit/index.d.ts +0 -3
  1237. package/dist/types/polyfill/test-polyfill/unit/methods.d.ts +0 -1
  1238. package/dist/types/polyfill/test-polyfill/unit/range.d.ts +0 -7
  1239. package/dist/types/polyfill/test-polyfill/unit/shadow-selection.d.ts +0 -0
  1240. package/dist/types/polyfill/tinycolor/tinycolor-polyfill.test.d.ts +0 -1
  1241. package/dist/types/test-assets/test-icons.d.ts +0 -4
  1242. package/dist/types/types/test/type-guard.test.d.ts +0 -1
  1243. package/dist/types/utils/e2e-utils.d.ts +0 -160
  1244. package/dist/types/utils/sanitize/test/empty-strategy.test.d.ts +0 -1
  1245. package/dist/types/utils/sanitize/test/html-sanitizer.test.d.ts +0 -1
  1246. package/dist/types/utils/sanitize/test/label-strategy.test.d.ts +0 -1
  1247. package/dist/types/utils/sanitize/test/sanitize-strategy.test.d.ts +0 -1
  1248. package/dist/types/utils/sanitize/test/sanitize.test.d.ts +0 -1
  1249. package/dist/types/utils/sanitize/test/serialize-fragment.test.d.ts +0 -1
  1250. package/dist/types/utils/sanitize/test/style-strategy.test.d.ts +0 -1
  1251. package/dist/types/utils/spec-utils.d.ts +0 -109
  1252. package/dist/types/utils/test/accessibility.test.d.ts +0 -1
  1253. package/dist/types/utils/test/api.test.d.ts +0 -1
  1254. package/dist/types/utils/test/array.test.d.ts +0 -1
  1255. package/dist/types/utils/test/breakpoint.test.d.ts +0 -1
  1256. package/dist/types/utils/test/component.test.d.ts +0 -1
  1257. package/dist/types/utils/test/date.test.d.ts +0 -1
  1258. package/dist/types/utils/test/design-token.test.d.ts +0 -1
  1259. package/dist/types/utils/test/effect.test.d.ts +0 -1
  1260. package/dist/types/utils/test/local-storage.test.d.ts +0 -1
  1261. package/dist/types/utils/test/log.test.d.ts +0 -1
  1262. package/dist/types/utils/test/misc.test.d.ts +0 -1
  1263. package/dist/types/utils/test/number.test.d.ts +0 -1
  1264. package/dist/types/utils/test/object.test.d.ts +0 -1
  1265. package/dist/types/utils/test/pagination.test.d.ts +0 -1
  1266. package/dist/types/utils/test/pixel.test.d.ts +0 -1
  1267. package/dist/types/utils/test/safe-document.test.d.ts +0 -1
  1268. package/dist/types/utils/test/spec-utils.test.d.ts +0 -1
  1269. package/dist/types/utils/test/string.test.d.ts +0 -1
  1270. package/dist/types/utils/test/test-utils.test.d.ts +0 -1
  1271. package/dist/types/utils/test/timer.test.d.ts +0 -1
  1272. package/dist/types/utils/test/ui.test.d.ts +0 -1
  1273. package/dist/types/utils/test-utils.d.ts +0 -61
  1274. package/dist/vega/p-02bab5ea.entry.js +0 -1
  1275. package/dist/vega/p-02fec68b.entry.js +0 -1
  1276. package/dist/vega/p-04f9b0d4.entry.js +0 -1
  1277. package/dist/vega/p-076c6445.entry.js +0 -1
  1278. package/dist/vega/p-085d45c9.js +0 -1
  1279. package/dist/vega/p-0ac91609.entry.js +0 -1
  1280. package/dist/vega/p-10e9438e.js +0 -1
  1281. package/dist/vega/p-14dfdba3.entry.js +0 -1
  1282. package/dist/vega/p-1665d4b8.entry.js +0 -1
  1283. package/dist/vega/p-1784724a.entry.js +0 -1
  1284. package/dist/vega/p-18378017.entry.js +0 -1
  1285. package/dist/vega/p-19adff1f.entry.js +0 -1
  1286. package/dist/vega/p-20981b17.entry.js +0 -1
  1287. package/dist/vega/p-2697b52b.js +0 -1
  1288. package/dist/vega/p-28c8ffb4.js +0 -1
  1289. package/dist/vega/p-28ed34b3.entry.js +0 -1
  1290. package/dist/vega/p-2bbbdf87.entry.js +0 -1
  1291. package/dist/vega/p-2fd266fa.js +0 -1
  1292. package/dist/vega/p-31945d6c.js +0 -1
  1293. package/dist/vega/p-32a0eed4.entry.js +0 -1
  1294. package/dist/vega/p-33475bcf.entry.js +0 -1
  1295. package/dist/vega/p-33cacbd6.entry.js +0 -1
  1296. package/dist/vega/p-3a0b3fed.entry.js +0 -1
  1297. package/dist/vega/p-405ab757.js +0 -1
  1298. package/dist/vega/p-4068e7de.js +0 -1
  1299. package/dist/vega/p-408a1baa.entry.js +0 -1
  1300. package/dist/vega/p-439c7c13.entry.js +0 -1
  1301. package/dist/vega/p-441fd2b3.entry.js +0 -1
  1302. package/dist/vega/p-46c7763f.entry.js +0 -1
  1303. package/dist/vega/p-4a9be903.js +0 -1
  1304. package/dist/vega/p-4e15958f.js +0 -1
  1305. package/dist/vega/p-4e76a84d.entry.js +0 -1
  1306. package/dist/vega/p-4ea3cf5f.entry.js +0 -1
  1307. package/dist/vega/p-5395faac.entry.js +0 -1
  1308. package/dist/vega/p-541ae774.entry.js +0 -1
  1309. package/dist/vega/p-558a707e.entry.js +0 -1
  1310. package/dist/vega/p-561e9097.entry.js +0 -1
  1311. package/dist/vega/p-5b90bbfe.js +0 -1
  1312. package/dist/vega/p-5d397ee0.entry.js +0 -1
  1313. package/dist/vega/p-5dfd36d3.entry.js +0 -1
  1314. package/dist/vega/p-603b851c.js +0 -1
  1315. package/dist/vega/p-615bc3de.entry.js +0 -1
  1316. package/dist/vega/p-6554a801.js +0 -1
  1317. package/dist/vega/p-667d5b80.entry.js +0 -1
  1318. package/dist/vega/p-679a4046.entry.js +0 -1
  1319. package/dist/vega/p-6b19d33a.entry.js +0 -1
  1320. package/dist/vega/p-6d6ea8b4.js +0 -1
  1321. package/dist/vega/p-6db0556d.js +0 -1
  1322. package/dist/vega/p-6e05fc55.js +0 -1
  1323. package/dist/vega/p-6e13e2fc.js +0 -1
  1324. package/dist/vega/p-71720290.entry.js +0 -1
  1325. package/dist/vega/p-76f2e0f5.js +0 -1
  1326. package/dist/vega/p-79df30e3.entry.js +0 -1
  1327. package/dist/vega/p-7f68abf7.js +0 -1
  1328. package/dist/vega/p-814c37be.entry.js +0 -1
  1329. package/dist/vega/p-820906b8.entry.js +0 -1
  1330. package/dist/vega/p-833b79ad.entry.js +0 -1
  1331. package/dist/vega/p-8b891f36.entry.js +0 -1
  1332. package/dist/vega/p-8cd70b3b.js +0 -1
  1333. package/dist/vega/p-8f88fb57.js +0 -1
  1334. package/dist/vega/p-905cf163.entry.js +0 -1
  1335. package/dist/vega/p-916ef5dd.entry.js +0 -1
  1336. package/dist/vega/p-937d5317.entry.js +0 -1
  1337. package/dist/vega/p-972c594b.entry.js +0 -1
  1338. package/dist/vega/p-9e6e76b2.entry.js +0 -1
  1339. package/dist/vega/p-a01ef160.entry.js +0 -1
  1340. package/dist/vega/p-a02f77c7.js +0 -1
  1341. package/dist/vega/p-a0a39ec3.js +0 -1
  1342. package/dist/vega/p-a2161e9d.js +0 -1
  1343. package/dist/vega/p-a5543b6a.entry.js +0 -1
  1344. package/dist/vega/p-a6ad6515.entry.js +0 -1
  1345. package/dist/vega/p-a6fb81c5.js +0 -1
  1346. package/dist/vega/p-ace7aa6c.entry.js +0 -1
  1347. package/dist/vega/p-b15a2d4b.js +0 -1
  1348. package/dist/vega/p-b4d72eff.entry.js +0 -1
  1349. package/dist/vega/p-b589cafd.entry.js +0 -1
  1350. package/dist/vega/p-b67672ae.entry.js +0 -1
  1351. package/dist/vega/p-b7dd3ef2.entry.js +0 -1
  1352. package/dist/vega/p-b91aff06.entry.js +0 -1
  1353. package/dist/vega/p-bc142c5c.entry.js +0 -1
  1354. package/dist/vega/p-c58c3e7e.entry.js +0 -1
  1355. package/dist/vega/p-c962cf5b.js +0 -1
  1356. package/dist/vega/p-cb0324e7.entry.js +0 -1
  1357. package/dist/vega/p-d5a8bb62.entry.js +0 -1
  1358. package/dist/vega/p-d6875e49.js +0 -1
  1359. package/dist/vega/p-d862195c.entry.js +0 -1
  1360. package/dist/vega/p-d94d785a.entry.js +0 -1
  1361. package/dist/vega/p-db29681a.entry.js +0 -1
  1362. package/dist/vega/p-dba91c23.entry.js +0 -1
  1363. package/dist/vega/p-dccda3d1.js +0 -1
  1364. package/dist/vega/p-dce9349e.js +0 -1
  1365. package/dist/vega/p-dd4c3d9b.entry.js +0 -1
  1366. package/dist/vega/p-e2268eef.js +0 -1
  1367. package/dist/vega/p-e5da9f66.js +0 -1
  1368. package/dist/vega/p-f7505267.js +0 -1
  1369. package/dist/vega/p-fadeb5a2.entry.js +0 -1
  1370. package/dist/vega/p-fb92092b.entry.js +0 -1
  1371. package/dist/vega/p-fc3d6d9d.js +0 -1
  1372. package/dist/vega/p-fc93b467.entry.js +0 -1
  1373. package/dist/vega/p-fef22245.js +0 -1
@@ -0,0 +1,2395 @@
1
+ import { B as BlockAnnotation, d as RTEBlock, M as ModifyContentAction, C as CommonAnnotationTypeEnum, o as CustomAttributeAnnotation, i as RTENode, g as ActionHandleStrategy } from './code-block-cd913077.js';
2
+ import { c as cleanObject } from './object-0c277f57.js';
3
+ import { V as VegaInternalThemeManager } from './dark-mode-style-controller-82e5c1c6.js';
4
+ import './global-slimmer-registry-17c4efd4.js';
5
+ import { I as InjectVegaTelemetrySlimmer, c as createPublicAPIRuntimeMetricsSlimmer } from './create-public-api-runtime-metrics-slimmer-aaadaa08.js';
6
+ import { r as rgbToHex } from './ui-b7600a48.js';
7
+ import { i as isNonNullable } from './type-guard-f6c9c89d.js';
8
+ import { g as generateUUID } from './misc-9fdbcfbb.js';
9
+ import { U as UpdateCursorPositionAction, V as VegaRTEContent } from './content-state-89f8eecb.js';
10
+
11
+ const ThemeManagerRuntimeMetricsPayloadDefinition = [
12
+ {
13
+ payloadKey: 'IS_OVERRIDECOLORS_METHOD_CALLED',
14
+ payloadDescription: 'Indicate if the method overrideColors of public API ThemeManager is called',
15
+ /**
16
+ * Indicate whether the method is collected when the method been called .
17
+ *
18
+ * @param {string} scope - The class name of public api
19
+ * @param {string} methodName - The method name called by the public api
20
+ * @returns {boolean} A boolean value
21
+ */
22
+ canAccept: (scope, methodName) => scope === 'ThemeManager' && methodName === 'overrideColors',
23
+ /**
24
+ * The function checks if the method is be called.
25
+ *
26
+ * @returns {boolean} A boolean value
27
+ */
28
+ payloadValue: () => {
29
+ return true;
30
+ },
31
+ },
32
+ {
33
+ payloadKey: 'IS_RESET_METHOD_CALLED',
34
+ payloadDescription: 'Indicate if the method reset of public API ThemeManager is called',
35
+ /**
36
+ * Indicate whether the method is collected when the method been called .
37
+ *
38
+ * @param {string} scope - The class name of public api
39
+ * @param {string} methodName - The method name called by the public api
40
+ * @returns {boolean} A boolean value
41
+ */
42
+ canAccept: (scope, methodName) => scope === 'ThemeManager' && methodName === 'reset',
43
+ /**
44
+ * The function checks if the method is be called.
45
+ *
46
+ * @returns {boolean} A boolean value
47
+ */
48
+ payloadValue: () => {
49
+ return true;
50
+ },
51
+ },
52
+ {
53
+ payloadKey: 'IS_TOGGLEDARKMODE_METHOD_CALLED',
54
+ payloadDescription: 'Indicate if the method toggleDarkMode of public API ThemeManager is called',
55
+ /**
56
+ * Indicate whether the method is collected when the method been called .
57
+ *
58
+ * @param {string} scope - The class name of public api
59
+ * @param {string} methodName - The method name called by the public api
60
+ * @returns {boolean} A boolean value
61
+ */
62
+ canAccept: (scope, methodName) => scope === 'ThemeManager' && methodName === 'toggleDarkMode',
63
+ /**
64
+ * The function checks if the method is be called.
65
+ *
66
+ * @returns {boolean} A boolean value
67
+ */
68
+ payloadValue: () => {
69
+ return true;
70
+ },
71
+ },
72
+ {
73
+ payloadKey: 'IS_ISDARKMODE_METHOD_CALLED',
74
+ payloadDescription: 'Indicate if the method isDarkMode of public API ThemeManager is called',
75
+ /**
76
+ * Indicate whether the method is collected when the method been called .
77
+ *
78
+ * @param {string} scope - The class name of public api
79
+ * @param {string} methodName - The method name called by the public api
80
+ * @returns {boolean} A boolean value
81
+ */
82
+ canAccept: (scope, methodName) => scope === 'ThemeManager' && methodName === 'isDarkMode',
83
+ /**
84
+ * The function checks if the method is be called.
85
+ *
86
+ * @returns {boolean} A boolean value
87
+ */
88
+ payloadValue: () => {
89
+ return true;
90
+ },
91
+ },
92
+ {
93
+ payloadKey: 'IS_APPLY_BRANDING_METHOD_CALLED',
94
+ payloadDescription: 'Indicate if the method applyBranding of public API ThemeManager is called',
95
+ /**
96
+ * Indicate whether the method is collected when the method been called .
97
+ *
98
+ * @param {string} scope - The class name of public api
99
+ * @param {string} methodName - The method name called by the public api
100
+ * @returns {boolean} A boolean value
101
+ */
102
+ canAccept: (scope, methodName) => scope === 'ThemeManager' && methodName === 'applyBranding',
103
+ /**
104
+ * The function checks if the method is be called.
105
+ *
106
+ * @returns {boolean} A boolean value
107
+ */
108
+ payloadValue: () => {
109
+ return true;
110
+ },
111
+ },
112
+ ];
113
+
114
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
115
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
116
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
117
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
118
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
119
+ };
120
+ /**
121
+ * Vega components theme manager
122
+ */
123
+ class ThemeManager {
124
+ constructor() {
125
+ this.vegaPublicAPIRuntimeMetricsSlimmer = createPublicAPIRuntimeMetricsSlimmer(ThemeManager, ['overrideColors', 'reset', 'toggleDarkMode', 'isDarkMode', 'applyBranding'], ThemeManagerRuntimeMetricsPayloadDefinition);
126
+ }
127
+ /**
128
+ * It takes the colors you passed in, parses them into the correct format, and then applies them to the theme
129
+ *
130
+ * @param {VegaThemeOverrideColors} overrideColors - OverrideColors - This is the object that you pass to the function.
131
+ * @vegaVersion 1.20.0
132
+ */
133
+ async overrideColors(overrideColors) {
134
+ void VegaInternalThemeManager.overrideColors(overrideColors);
135
+ }
136
+ /**
137
+ * It removes all the custom override theme styles from the DOM
138
+ *
139
+ * @vegaVersion 1.20.0
140
+ */
141
+ async reset() {
142
+ void VegaInternalThemeManager.reset();
143
+ }
144
+ /**
145
+ * This function toggles the dark mode of a webpage by adding or removing a 'dark' class to the HTML element.
146
+ *
147
+ * @param {boolean | undefined} darkMode - A boolean or undefined value that determines whether to enable or disable dark mode.
148
+ * If it is true, dark mode is enabled.
149
+ * If it is false, dark mode is disabled.
150
+ * @vegaVersion 1.32.0
151
+ */
152
+ toggleDarkMode(darkMode) {
153
+ VegaInternalThemeManager.toggleDarkMode(darkMode);
154
+ }
155
+ /**
156
+ * The function checks if the HTML element has a class of "dark" and returns a boolean value accordingly.
157
+ *
158
+ * @returns {boolean} A boolean value indicating whether the HTML element has a class of "dark", which is
159
+ * typically used to indicate that the website is in dark mode.
160
+ * @vegaVersion 1.32.0
161
+ */
162
+ isDarkMode() {
163
+ return VegaInternalThemeManager.isDarkMode();
164
+ }
165
+ /**
166
+ * This function switches the Vega theme to a brand theme based on the provided options.
167
+ *
168
+ * @param {BrandOptions} options - The options includes 'gp', 'genius' and 'heartland' options
169
+ * @vegaVersion 2.47.0
170
+ */
171
+ applyBranding(options) {
172
+ VegaInternalThemeManager.applyBranding(options);
173
+ }
174
+ }
175
+ __decorate([
176
+ InjectVegaTelemetrySlimmer()
177
+ ], ThemeManager.prototype, "vegaPublicAPIRuntimeMetricsSlimmer", void 0);
178
+ const VegaThemeManager = new ThemeManager();
179
+
180
+ const RTE_TABLE_BORDER_STYLES = [
181
+ 'none',
182
+ 'solid',
183
+ 'dashed',
184
+ 'dotted',
185
+ 'double',
186
+ 'groove',
187
+ 'ridge',
188
+ 'inset',
189
+ 'outset',
190
+ ];
191
+ const RTE_TABLE_DEFAULT_COLORS = [
192
+ { key: 'white', dark: '#04041C', light: '#FCFCFC' },
193
+ { key: 'red', dark: '#AA091C', light: '#FF4C61' },
194
+ { key: 'orange', dark: '#974502', light: '#FDAB68' },
195
+ { key: 'yellow', dark: '#735C00', light: '#FFDC4C' },
196
+ { key: 'green', dark: '#2E6D18', light: '#7BDA58' },
197
+ { key: 'teal', dark: '#287171', light: '#7BD1D1' },
198
+ { key: 'gray', dark: '#595959', light: '#999999' },
199
+ { key: 'black', dark: '#FCFCFC', light: '#04041C' },
200
+ ];
201
+ // Default background color for table head cells in both light and dark modes: token = bg-table-header
202
+ const RTE_TABLE_HEAD_DEFAULT_BACKGROUND_COLOR = {
203
+ key: 'default-head-bg',
204
+ dark: '#181830',
205
+ light: '#F0F3F7',
206
+ };
207
+
208
+ /**
209
+ * Manages table colors for the rich text editor.
210
+ */
211
+ class RTETableColorManager {
212
+ /**
213
+ * Get the list of table colors.
214
+ *
215
+ * @returns {VegaRTEColorSchema[]} - Array of table colors.
216
+ */
217
+ static getTableColors() {
218
+ return RTETableColorManager.TABLE_COLORS;
219
+ }
220
+ /**
221
+ * Set the list of table colors.
222
+ *
223
+ * @param {VegaRTEColorSchema[]} colors - Array of table colors.
224
+ */
225
+ static setTableColors(colors) {
226
+ RTETableColorManager.TABLE_COLORS = colors;
227
+ }
228
+ /**
229
+ * Get color key from color value
230
+ *
231
+ * @param {string} colorValue - color value
232
+ * @param {boolean} isHeadCellColor - whether the color is for a head cell
233
+ * @returns {string} - color key
234
+ */
235
+ static getColorKey(colorValue, isHeadCellColor = false) {
236
+ var _a;
237
+ let result = null;
238
+ const defaultColorList = RTETableColorManager.TABLE_COLORS;
239
+ const tableColors = isHeadCellColor
240
+ ? [...defaultColorList, RTE_TABLE_HEAD_DEFAULT_BACKGROUND_COLOR]
241
+ : defaultColorList;
242
+ if (tableColors) {
243
+ const hexColor = (_a = rgbToHex(colorValue)) === null || _a === void 0 ? void 0 : _a.toUpperCase();
244
+ if (hexColor) {
245
+ result = tableColors.find((schema) => VegaThemeManager.isDarkMode() ? schema.dark === hexColor : schema.light === hexColor);
246
+ }
247
+ else {
248
+ for (const color of tableColors) {
249
+ if (color.key === colorValue) {
250
+ result = color;
251
+ break;
252
+ }
253
+ }
254
+ }
255
+ }
256
+ return result ? result.key : '';
257
+ }
258
+ }
259
+ RTETableColorManager.TABLE_COLORS = RTE_TABLE_DEFAULT_COLORS;
260
+
261
+ /**
262
+ * Class representing a table color annotation in the rich text editor.
263
+ */
264
+ class RTETableColorAnnotation extends BlockAnnotation {
265
+ constructor(colorKey) {
266
+ super();
267
+ this.type = RTETableExtensionAnnotationTypeEnum.COLOR;
268
+ this.colorKey = colorKey;
269
+ if (colorKey) {
270
+ this.color = this.formatColor(colorKey);
271
+ }
272
+ }
273
+ /**
274
+ * Render the style for the annotation
275
+ *
276
+ * @returns {AnnotationStyle} The style object containing the color
277
+ */
278
+ renderStyle() {
279
+ const color = this.color
280
+ ? VegaInternalThemeManager.isDarkMode()
281
+ ? this.color.dark
282
+ : this.color.light
283
+ : this.colorKey || '';
284
+ return { color };
285
+ }
286
+ /**
287
+ * Render the CSS class for the annotation
288
+ *
289
+ * @returns {Nullable<string>} Always returns null as no CSS class is used
290
+ */
291
+ renderClass() {
292
+ return null;
293
+ }
294
+ /**
295
+ * Convert the annotation to a JSON representation
296
+ *
297
+ * @returns {Record<string, string>} A JSON object containing the color key
298
+ */
299
+ toJSON() {
300
+ var _a;
301
+ return {
302
+ color: ((_a = this.color) === null || _a === void 0 ? void 0 : _a.key) || this.colorKey || '',
303
+ };
304
+ }
305
+ /**
306
+ * Clone the current annotation
307
+ *
308
+ * @returns {BlockAnnotation<RTETableExtensionAnnotationTypeEnum.COLOR>} A new instance of RTETableColorAnnotation with the same color key
309
+ */
310
+ clone() {
311
+ return new RTETableColorAnnotation(this.colorKey);
312
+ }
313
+ /**
314
+ * format table color
315
+ *
316
+ * @param {string} colorKey - table color
317
+ * @returns {Nullable<VegaRTEColorSchema>} - VegaRTEColorSchema
318
+ */
319
+ formatColor(colorKey) {
320
+ return RTETableColorManager.getTableColors().find((item) => item.key === colorKey);
321
+ }
322
+ }
323
+
324
+ var RTETableExtensionAnnotationTypeEnum;
325
+ (function (RTETableExtensionAnnotationTypeEnum) {
326
+ RTETableExtensionAnnotationTypeEnum["TABLE"] = "EXTENSION_TABLE";
327
+ RTETableExtensionAnnotationTypeEnum["CELL"] = "EXTENSION_TABLE_CELL";
328
+ RTETableExtensionAnnotationTypeEnum["CAPTION"] = "EXTENSION_TABLE_CAPTION";
329
+ RTETableExtensionAnnotationTypeEnum["COLOR"] = "EXTENSION_TABLE_COLOR";
330
+ })(RTETableExtensionAnnotationTypeEnum || (RTETableExtensionAnnotationTypeEnum = {}));
331
+ /**
332
+ * Class representing a table annotation in the rich text editor.
333
+ */
334
+ class RTETableAnnotation extends BlockAnnotation {
335
+ constructor({ backgroundColor, border, width, height, alignment, borderCollapse } = {}, useInternalStyle = true) {
336
+ super();
337
+ this.type = RTETableExtensionAnnotationTypeEnum.TABLE;
338
+ this.useInternalStyle = useInternalStyle;
339
+ this.backgroundColor = backgroundColor;
340
+ this.border = border;
341
+ this.width = width;
342
+ this.height = height;
343
+ this.alignment =
344
+ useInternalStyle && alignment === undefined ? RTETableAnnotation.DEFAULT_ALIGNMENT : alignment;
345
+ this.backgroundColorAnnotation = new RTETableColorAnnotation(backgroundColor);
346
+ this.borderColorAnnotation = new RTETableColorAnnotation(border === null || border === void 0 ? void 0 : border.color);
347
+ this.borderCollapse =
348
+ useInternalStyle && borderCollapse === undefined
349
+ ? RTETableAnnotation.DEFAULT_BORDER_COLLAPSE
350
+ : borderCollapse;
351
+ }
352
+ /**
353
+ * @inheritDoc
354
+ */
355
+ static from(value, useInternalStyle = true) {
356
+ return [RTETableExtensionAnnotationTypeEnum.TABLE, new RTETableAnnotation(value, useInternalStyle)];
357
+ }
358
+ /**
359
+ * Get the default styles for the table annotation.
360
+ *
361
+ * @returns {AnnotationStyle} The default styles for the table annotation.
362
+ */
363
+ static getDefaultStyles() {
364
+ return {
365
+ borderCollapse: RTETableAnnotation.DEFAULT_BORDER_COLLAPSE,
366
+ margin: RTETableAnnotation.DEFAULT_ALIGNMENT_STYLE_VALUE,
367
+ };
368
+ }
369
+ /**
370
+ * Generates the CSS border string from the border properties.
371
+ *
372
+ * @returns {Nullable<string>} The CSS border string.
373
+ */
374
+ get borderStr() {
375
+ if (!this.border) {
376
+ return null;
377
+ }
378
+ return `${this.border.style} ${this.border.width} ${this.borderColorAnnotation.renderStyle().color}`.trim();
379
+ }
380
+ /**
381
+ * @inheritDoc
382
+ */
383
+ clone() {
384
+ return new RTETableAnnotation({
385
+ backgroundColor: this.backgroundColor,
386
+ border: this.border,
387
+ width: this.width,
388
+ height: this.height,
389
+ alignment: this.alignment,
390
+ borderCollapse: this.borderCollapse,
391
+ }, this.useInternalStyle);
392
+ }
393
+ /**
394
+ * @inheritDoc
395
+ */
396
+ toJSON() {
397
+ return {
398
+ table: cleanObject({
399
+ backgroundColor: this.backgroundColor,
400
+ border: this.border,
401
+ width: this.width,
402
+ height: this.height,
403
+ alignment: this.alignment,
404
+ borderCollapse: this.borderCollapse,
405
+ }),
406
+ };
407
+ }
408
+ /**
409
+ * @inheritDoc
410
+ */
411
+ renderStyle() {
412
+ const backgroundColor = this.backgroundColorAnnotation.renderStyle().color;
413
+ const tableStyles = Object.assign({ border: this.borderStr, width: this.width, height: this.height, borderCollapse: this.borderCollapse }, this.renderAlignmentStyle());
414
+ backgroundColor && (tableStyles.backgroundColor = backgroundColor);
415
+ return cleanObject(tableStyles);
416
+ }
417
+ /**
418
+ * @inheritDoc
419
+ */
420
+ renderClass() {
421
+ return 'v-rte--extension-table';
422
+ }
423
+ /**
424
+ * Generates the alignment styles for the table.
425
+ *
426
+ * @returns {Record<string, string>} The alignment styles.
427
+ */
428
+ renderAlignmentStyle() {
429
+ if (!this.alignment)
430
+ return {};
431
+ return {
432
+ margin: this.alignment === 'center'
433
+ ? RTETableAnnotation.DEFAULT_ALIGNMENT_STYLE_VALUE
434
+ : this.alignment === 'left'
435
+ ? '0'
436
+ : '0 0 0 auto',
437
+ };
438
+ }
439
+ }
440
+ RTETableAnnotation.DEFAULT_BORDER_COLLAPSE = 'collapse';
441
+ RTETableAnnotation.DEFAULT_ALIGNMENT = 'center';
442
+ RTETableAnnotation.DEFAULT_ALIGNMENT_STYLE_VALUE = '0 auto';
443
+
444
+ /**
445
+ * Class representing a table block in the rich text editor.
446
+ */
447
+ class RTETableBlock extends RTEBlock {
448
+ constructor(id, options) {
449
+ super(id);
450
+ this.type = 'table-block';
451
+ this.children = [];
452
+ const { autoMatchFormat } = options || { autoMatchFormat: true };
453
+ if (autoMatchFormat) {
454
+ this.annotationMap.set(RTETableExtensionAnnotationTypeEnum.TABLE, new RTETableAnnotation());
455
+ }
456
+ }
457
+ /**
458
+ * @inheritDoc
459
+ */
460
+ static from(block, options) {
461
+ var _a;
462
+ const tableBlock = new RTETableBlock(block.id, options);
463
+ super.convertAnnotationsToMap(tableBlock.annotationMap, Object.assign({}, block.annotations));
464
+ tableBlock.children = super.generateBlockChildren(block.children, options, tableBlock);
465
+ if ((_a = block.annotations) === null || _a === void 0 ? void 0 : _a.table) {
466
+ tableBlock.annotationMap.set(...RTETableAnnotation.from(block.annotations.table, options === null || options === void 0 ? void 0 : options.autoMatchFormat));
467
+ }
468
+ return tableBlock;
469
+ }
470
+ /**
471
+ * @inheritDoc
472
+ */
473
+ clone(parent) {
474
+ const clonedBlock = new RTETableBlock(this.id);
475
+ clonedBlock.children = this.children.map((child) => child.clone(clonedBlock));
476
+ clonedBlock.parent = parent;
477
+ clonedBlock.annotationMap = super.cloneAnnotations();
478
+ return clonedBlock;
479
+ }
480
+ /**
481
+ * @inheritDoc
482
+ */
483
+ getLastNode() {
484
+ return this.children[this.children.length - 1].getLastNode();
485
+ }
486
+ /**
487
+ * Get the first node of the table block.
488
+ *
489
+ * @returns {RTENode} The first node of the table block.
490
+ */
491
+ getFirstNode() {
492
+ if (this.hasCaption()) {
493
+ return this.children[0].children[0].getLastNode();
494
+ }
495
+ else {
496
+ const childNode = this.children[0].children[0]
497
+ .children[0];
498
+ return childNode.getLastNode();
499
+ }
500
+ }
501
+ /**
502
+ * @inheritDoc
503
+ */
504
+ isNotEmpty() {
505
+ return this.children.length > 0;
506
+ }
507
+ /**
508
+ * @inheritDoc
509
+ */
510
+ toHtml(options) {
511
+ const childrenHtml = this.children.map((child) => child.toHtml(options)).join('');
512
+ const attrStr = super.generateAttributeString(options);
513
+ return `<table${attrStr}>${childrenHtml}</table>`;
514
+ }
515
+ /**
516
+ * @inheritDoc
517
+ */
518
+ toJSON() {
519
+ return Object.assign(Object.assign({}, super.toJSON()), { type: this.type, children: this.children.map((child) => child.toJSON()) });
520
+ }
521
+ /**
522
+ * Retrieves the caption block from the children collection, if present.
523
+ *
524
+ * @returns {Nullable<RTETableCaptionBlock>} The caption block or `null`.
525
+ */
526
+ getCaption() {
527
+ const caption = this.children.find((child) => child.type === 'table-caption');
528
+ return caption !== null && caption !== void 0 ? caption : null;
529
+ }
530
+ /**
531
+ * Inserts, replaces, or removes the caption block within the children.
532
+ *
533
+ * @param {Nullable<RTETableCaptionBlock>} caption - The caption block to set, or `null` to remove.
534
+ */
535
+ setCaption(caption) {
536
+ const index = this.children.findIndex((child) => child.type === 'table-caption');
537
+ if (!caption) {
538
+ if (index >= 0) {
539
+ this.children.splice(index, 1);
540
+ }
541
+ return;
542
+ }
543
+ caption.parent = this;
544
+ if (index >= 0) {
545
+ this.children[index] = caption;
546
+ }
547
+ else {
548
+ this.children.unshift(caption);
549
+ }
550
+ }
551
+ /**
552
+ * Checks whether the table currently stores a caption block reference.
553
+ *
554
+ * @returns {boolean} `true` when a caption DTO is attached; otherwise `false`.
555
+ */
556
+ hasCaption() {
557
+ return isNonNullable(this.getCaption());
558
+ }
559
+ }
560
+
561
+ var TableSettingType;
562
+ (function (TableSettingType) {
563
+ TableSettingType["ROW"] = "ROW";
564
+ TableSettingType["CAPTION"] = "CAPTION";
565
+ TableSettingType["COLUMN"] = "COLUMN";
566
+ TableSettingType["MERGE_CELLS"] = "MERGE_CELLS";
567
+ TableSettingType["TABLE"] = "TABLE";
568
+ TableSettingType["CELL"] = "CELL";
569
+ TableSettingType["SPLIT_CELL"] = "SPLIT_CELL";
570
+ })(TableSettingType || (TableSettingType = {}));
571
+ /**
572
+ * Abstract class for setting event handlers.
573
+ */
574
+ class SettingEventHandler {
575
+ /**
576
+ * Applies a cursor update action so the editor focuses on the resolved node.
577
+ *
578
+ * @param {RTETableBlock} block - Table block currently being toggled.
579
+ * @param {Nullable<RTENode>} focusNode - Target node that should receive the caret.
580
+ */
581
+ syncCursorPosition(block, focusNode) {
582
+ const rootContent = this.findRootContent(block);
583
+ if (focusNode && rootContent) {
584
+ const offset = focusNode.getRangeEndOffset();
585
+ rootContent.apply(new UpdateCursorPositionAction(focusNode, offset));
586
+ }
587
+ }
588
+ /**
589
+ * Walks up the parent chain to locate the nearest VegaRTEContent root.
590
+ *
591
+ * @param {RTETableBlock} block - Table block used as the starting point.
592
+ * @returns {Nullable<VegaRTEContent>} Content root containing the table, if found.
593
+ */
594
+ findRootContent(block) {
595
+ let currentParent = block.parent;
596
+ while (currentParent) {
597
+ if (currentParent instanceof VegaRTEContent) {
598
+ return currentParent;
599
+ }
600
+ currentParent = currentParent.parent;
601
+ }
602
+ }
603
+ }
604
+
605
+ const DELETE_TABLE_ROW = 'DELETE_TABLE_ROW';
606
+ /**
607
+ * Action class for deleting a specific table row.
608
+ */
609
+ class DeleteTableRowAction extends ModifyContentAction {
610
+ /**
611
+ * Constructs an InsertTableRowAction.
612
+ *
613
+ * @param {RTETableRowBlock[]} rowsToBeRemoved - The rows to be removed from the table.
614
+ */
615
+ constructor(rowsToBeRemoved) {
616
+ super();
617
+ this.isFlushable = true;
618
+ this.type = DELETE_TABLE_ROW;
619
+ this.rowsToBeRemoved = rowsToBeRemoved;
620
+ }
621
+ }
622
+
623
+ const INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION = 'INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION';
624
+ /**
625
+ * Action class for inserting a new row into a table within the rich text editor.
626
+ */
627
+ class InsertTableRowIntoDifferentSectionAction extends ModifyContentAction {
628
+ /**
629
+ * Constructs an InsertTableRowIntoDifferentSectionAction.
630
+ *
631
+ * @param {InsertTableRowDirection} insertDirection - The direction to insert the new row (above or below the current row).
632
+ * @param {RTETableRowBlock[]} selectedRows - The currently selected rows in the table.
633
+ */
634
+ constructor(insertDirection, selectedRows = []) {
635
+ super();
636
+ this.isFlushable = true;
637
+ this.type = INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION;
638
+ this.selectedRows = [];
639
+ this.insertDirection = insertDirection;
640
+ this.selectedRows = selectedRows;
641
+ }
642
+ }
643
+
644
+ const INSERT_TABLE_ROW_INTO_SAME_SECTION = 'INSERT_TABLE_ROW_INTO_SAME_SECTION';
645
+ var InsertTableRowDirection;
646
+ (function (InsertTableRowDirection) {
647
+ InsertTableRowDirection["ABOVE"] = "ABOVE";
648
+ InsertTableRowDirection["BELOW"] = "BELOW";
649
+ })(InsertTableRowDirection || (InsertTableRowDirection = {}));
650
+ /**
651
+ * Action class for inserting a new row into a table within the rich text editor.
652
+ */
653
+ class InsertTableRowIntoSameSectionAction extends ModifyContentAction {
654
+ /**
655
+ * Constructs an InsertTableRowIntoSameSectionAction.
656
+ *
657
+ * @param {InsertTableRowDirection} insertDirection - The direction to insert the new row (above or below the current row).
658
+ * @param {RTETableRowBlock[]} selectedRows - The currently selected rows in the table.
659
+ */
660
+ constructor(insertDirection, selectedRows = []) {
661
+ super();
662
+ this.isFlushable = true;
663
+ this.type = INSERT_TABLE_ROW_INTO_SAME_SECTION;
664
+ this.selectedRows = [];
665
+ this.insertDirection = insertDirection;
666
+ this.selectedRows = selectedRows;
667
+ }
668
+ }
669
+
670
+ const TOGGLE_HEADER_ROW = 'TOGGLE_HEADER_ROW';
671
+ /**
672
+ * Action to convert selected rows to header rows or revert them back to normal rows.
673
+ */
674
+ class ToggleHeaderRowAction extends ModifyContentAction {
675
+ constructor(selectedRows) {
676
+ super();
677
+ this.isFlushable = true;
678
+ this.type = TOGGLE_HEADER_ROW;
679
+ this.selectedRows = selectedRows;
680
+ }
681
+ }
682
+
683
+ /**
684
+ * Class representing a table body block in the rich text editor.
685
+ */
686
+ class RTETableBodyBlock extends RTEBlock {
687
+ constructor(id) {
688
+ super(id);
689
+ this.type = 'table-body';
690
+ this.children = [];
691
+ }
692
+ /**
693
+ * @inheritDoc
694
+ */
695
+ static from(block, options) {
696
+ const tableBodyBlock = new RTETableBodyBlock(block.id);
697
+ super.convertAnnotationsToMap(tableBodyBlock.annotationMap, Object.assign({}, block.annotations));
698
+ tableBodyBlock.children = super.generateBlockChildren(block.children, options, tableBodyBlock);
699
+ return tableBodyBlock;
700
+ }
701
+ /**
702
+ * @inheritDoc
703
+ */
704
+ clone(parent) {
705
+ const clonedBlock = new RTETableBodyBlock(this.id);
706
+ clonedBlock.children = this.children.map((child) => child.clone(clonedBlock));
707
+ clonedBlock.parent = parent;
708
+ clonedBlock.annotationMap = super.cloneAnnotations();
709
+ return clonedBlock;
710
+ }
711
+ /**
712
+ * @inheritDoc
713
+ */
714
+ getLastNode() {
715
+ return this.children[this.children.length - 1].getLastNode();
716
+ }
717
+ /**
718
+ * @inheritDoc
719
+ */
720
+ isNotEmpty() {
721
+ return this.children.length > 0;
722
+ }
723
+ /**
724
+ * @inheritDoc
725
+ */
726
+ toHtml(options) {
727
+ const childrenHtml = this.children.map((child) => child.toHtml(options)).join('');
728
+ const attrStr = super.generateAttributeString(options);
729
+ return `<tbody${attrStr}>${childrenHtml}</tbody>`;
730
+ }
731
+ /**
732
+ * @inheritDoc
733
+ */
734
+ toJSON() {
735
+ return Object.assign(Object.assign({}, super.toJSON()), { type: this.type, children: this.children.map((child) => child.toJSON()) });
736
+ }
737
+ }
738
+
739
+ /**
740
+ * Class representing a table head block in the rich text editor.
741
+ */
742
+ class RTETableHeadBlock extends RTEBlock {
743
+ constructor(id) {
744
+ super(id);
745
+ this.type = 'table-head';
746
+ this.children = [];
747
+ }
748
+ /**
749
+ * @inheritDoc
750
+ */
751
+ static from(block, options) {
752
+ const headBlock = new RTETableHeadBlock(block.id);
753
+ super.convertAnnotationsToMap(headBlock.annotationMap, Object.assign({}, block.annotations));
754
+ headBlock.children = super.generateBlockChildren(block.children, options, headBlock);
755
+ return headBlock;
756
+ }
757
+ /**
758
+ * @inheritDoc
759
+ */
760
+ clone(parent) {
761
+ const clonedBlock = new RTETableHeadBlock(this.id);
762
+ clonedBlock.children = this.children.map((child) => child.clone(clonedBlock));
763
+ clonedBlock.parent = parent;
764
+ clonedBlock.annotationMap = super.cloneAnnotations();
765
+ return clonedBlock;
766
+ }
767
+ /**
768
+ * @inheritDoc
769
+ */
770
+ getLastNode() {
771
+ return this.children[this.children.length - 1].getLastNode();
772
+ }
773
+ /**
774
+ * @inheritDoc
775
+ */
776
+ isNotEmpty() {
777
+ return this.children.length > 0;
778
+ }
779
+ /**
780
+ * @inheritDoc
781
+ */
782
+ toHtml(options) {
783
+ const childrenHtml = this.children
784
+ .map((child) => {
785
+ return child.toHtml(options);
786
+ })
787
+ .join('');
788
+ const attrStr = super.generateAttributeString(options);
789
+ return `<thead${attrStr}>${childrenHtml}</thead>`;
790
+ }
791
+ /**
792
+ * @inheritDoc
793
+ */
794
+ toJSON() {
795
+ return Object.assign(Object.assign({}, super.toJSON()), { type: this.type, children: this.children.map((child) => child.toJSON()) });
796
+ }
797
+ }
798
+
799
+ /**
800
+ * Class representing a table row block in the rich text editor.
801
+ */
802
+ class RTETableRowBlock extends RTEBlock {
803
+ constructor(id) {
804
+ super(id);
805
+ this.type = 'table-row';
806
+ this.children = [];
807
+ }
808
+ /**
809
+ * @inheritDoc
810
+ */
811
+ static from(block, options) {
812
+ const rowBlock = new RTETableRowBlock(block.id);
813
+ super.convertAnnotationsToMap(rowBlock.annotationMap, Object.assign({}, block.annotations));
814
+ rowBlock.children = super.generateBlockChildren(block.children, options, rowBlock);
815
+ return rowBlock;
816
+ }
817
+ /**
818
+ * @inheritDoc
819
+ */
820
+ clone(parent) {
821
+ const clonedBlock = new RTETableRowBlock(this.id);
822
+ clonedBlock.children = this.children.map((child) => child.clone(clonedBlock));
823
+ clonedBlock.parent = parent;
824
+ clonedBlock.annotationMap = super.cloneAnnotations();
825
+ return clonedBlock;
826
+ }
827
+ /**
828
+ * @inheritDoc
829
+ */
830
+ getLastNode() {
831
+ return this.children[this.children.length - 1].getLastNode();
832
+ }
833
+ /**
834
+ * @inheritDoc
835
+ */
836
+ isNotEmpty() {
837
+ return this.children.length > 0;
838
+ }
839
+ /**
840
+ * @inheritDoc
841
+ */
842
+ toHtml(options) {
843
+ const childrenHtml = this.children
844
+ .map((child) => {
845
+ return child.toHtml(options);
846
+ })
847
+ .join('');
848
+ const attrStr = super.generateAttributeString(options);
849
+ return `<tr${attrStr}>${childrenHtml}</tr>`;
850
+ }
851
+ /**
852
+ * @inheritDoc
853
+ */
854
+ toJSON() {
855
+ return Object.assign(Object.assign({}, super.toJSON()), { type: this.type, children: this.children.map((child) => child.toJSON()) });
856
+ }
857
+ }
858
+
859
+ /**
860
+ * Class representing a table cell annotation in the rich text editor.
861
+ */
862
+ class RTETableCellAnnotation extends BlockAnnotation {
863
+ constructor({ backgroundColor, padding, border, width, height, textAlign, verticalAlign, minWidth, boxSizing, } = {}, useInternalStyle = true) {
864
+ super();
865
+ this.type = RTETableExtensionAnnotationTypeEnum.CELL;
866
+ this.useInternalStyle = useInternalStyle;
867
+ this.backgroundColor = backgroundColor;
868
+ this.width = width;
869
+ this.height = height;
870
+ this.border =
871
+ useInternalStyle && border === undefined ? RTETableCellAnnotation.DEFAULT_BORDER : border;
872
+ this.padding =
873
+ useInternalStyle && padding === undefined ? RTETableCellAnnotation.DEFAULT_PADDING : padding;
874
+ this.textAlign =
875
+ useInternalStyle && textAlign === undefined
876
+ ? RTETableCellAnnotation.DEFAULT_HORIZONTAL_TEXT_ALIGN
877
+ : textAlign;
878
+ this.verticalAlign =
879
+ useInternalStyle && verticalAlign === undefined
880
+ ? RTETableCellAnnotation.DEFAULT_VERTICAL_TEXT_ALIGN
881
+ : verticalAlign;
882
+ this.minWidth =
883
+ useInternalStyle && minWidth === undefined
884
+ ? RTETableCellAnnotation.DEFAULT_CELL_MIN_WIDTH
885
+ : minWidth;
886
+ this.boxSizing =
887
+ useInternalStyle && boxSizing === undefined
888
+ ? RTETableCellAnnotation.DEFAULT_BOX_SIZING
889
+ : boxSizing;
890
+ }
891
+ /**
892
+ * @inheritDoc
893
+ */
894
+ static from(cellAnnotation, useInternalStyle) {
895
+ return [
896
+ RTETableExtensionAnnotationTypeEnum.CELL,
897
+ new RTETableCellAnnotation(cellAnnotation, useInternalStyle),
898
+ ];
899
+ }
900
+ /**
901
+ * Get the default styles for the table annotation.
902
+ *
903
+ * @param {boolean} isHexColor - Whether to return color values as hex codes.
904
+ * @returns {AnnotationStyle} The default styles for the table annotation.
905
+ */
906
+ static getDefaultStyles(isHexColor = true) {
907
+ return {
908
+ padding: RTETableCellAnnotation.DEFAULT_PADDING,
909
+ textAlign: RTETableCellAnnotation.DEFAULT_HORIZONTAL_TEXT_ALIGN,
910
+ verticalAlign: RTETableCellAnnotation.DEFAULT_VERTICAL_TEXT_ALIGN,
911
+ minWidth: RTETableCellAnnotation.DEFAULT_CELL_MIN_WIDTH,
912
+ boxSizing: RTETableCellAnnotation.DEFAULT_BOX_SIZING,
913
+ border: `${RTETableCellAnnotation.DEFAULT_BORDER.style} ${RTETableCellAnnotation.DEFAULT_BORDER.width} ${isHexColor
914
+ ? RTETableCellAnnotation.DEFAULT_BORDER.color
915
+ : RTETableCellAnnotation.DEFAULT_BORDER_RGB_COLOR}`,
916
+ };
917
+ }
918
+ /**
919
+ * Generates the CSS border string from the border properties.
920
+ *
921
+ * @returns {Nullable<string>} The CSS border string.
922
+ */
923
+ get borderStr() {
924
+ if (!this.border)
925
+ return null;
926
+ return `${this.border.style || ''} ${this.border.width || ''} ${this.borderColorAnnotation.renderStyle().color}`.trim();
927
+ }
928
+ /**
929
+ * Sets the background color using a color key.
930
+ *
931
+ * @param {Nullable<string>} colorKey - The key representing the background color.
932
+ */
933
+ set backgroundColor(colorKey) {
934
+ this._backgroundColor = colorKey;
935
+ this.backgroundColorAnnotation = new RTETableColorAnnotation(colorKey);
936
+ }
937
+ /**
938
+ * Gets the background color value.
939
+ *
940
+ * @returns {Nullable<string>} The background color value.
941
+ */
942
+ get backgroundColor() {
943
+ return this._backgroundColor;
944
+ }
945
+ /**
946
+ * Sets the border properties and updates the border color annotation accordingly.
947
+ *
948
+ * @param {Nullable<VegaRTETableBorderType>} border - The border properties to set.
949
+ */
950
+ set border(border) {
951
+ this._border = border;
952
+ this.borderColorAnnotation = new RTETableColorAnnotation(border === null || border === void 0 ? void 0 : border.color);
953
+ }
954
+ /**
955
+ * Gets the border properties.
956
+ *
957
+ * @returns {Nullable<VegaRTETableBorderType>} The border properties.
958
+ */
959
+ get border() {
960
+ return this._border;
961
+ }
962
+ /**
963
+ * @inheritDoc
964
+ */
965
+ clone() {
966
+ return new RTETableCellAnnotation({
967
+ backgroundColor: this.backgroundColor,
968
+ padding: this.padding,
969
+ border: this.border,
970
+ width: this.width,
971
+ height: this.height,
972
+ textAlign: this.textAlign,
973
+ verticalAlign: this.verticalAlign,
974
+ minWidth: this.minWidth,
975
+ boxSizing: this.boxSizing,
976
+ }, this.useInternalStyle);
977
+ }
978
+ /**
979
+ * @inheritDoc
980
+ */
981
+ toJSON() {
982
+ return {
983
+ tableCell: cleanObject({
984
+ backgroundColor: this.backgroundColor,
985
+ padding: this.padding,
986
+ border: this.border,
987
+ width: this.width,
988
+ height: this.height,
989
+ textAlign: this.textAlign,
990
+ verticalAlign: this.verticalAlign,
991
+ minWidth: this.minWidth,
992
+ boxSizing: this.boxSizing,
993
+ }),
994
+ };
995
+ }
996
+ /**
997
+ * @inheritDoc
998
+ */
999
+ renderStyle(options) {
1000
+ const backgroundColor = this.backgroundColorAnnotation.renderStyle().color;
1001
+ const style = {
1002
+ padding: this.padding,
1003
+ border: this.borderStr,
1004
+ width: this.width,
1005
+ height: this.height,
1006
+ textAlign: this.textAlign,
1007
+ verticalAlign: this.verticalAlign,
1008
+ minWidth: this.minWidth,
1009
+ boxSizing: this.boxSizing,
1010
+ };
1011
+ if (backgroundColor) {
1012
+ style.backgroundColor = backgroundColor;
1013
+ }
1014
+ if (!(options === null || options === void 0 ? void 0 : options.standalone)) {
1015
+ return cleanObject(this.removeDefaultValues(style), { cleanEmptyString: true });
1016
+ }
1017
+ return cleanObject(style, { cleanEmptyString: true });
1018
+ }
1019
+ /**
1020
+ * @inheritDoc
1021
+ */
1022
+ renderClass() {
1023
+ return null;
1024
+ }
1025
+ /**
1026
+ * Removes default values from the style object to avoid redundancy.
1027
+ *
1028
+ * @param {Record<string, Nullable<string>>} style - The style object to clean.
1029
+ * @returns {Record<string, Nullable<string>>} The cleaned style object.
1030
+ */
1031
+ removeDefaultValues(style) {
1032
+ const cleanedStyle = Object.assign({}, style);
1033
+ if (cleanedStyle.padding === RTETableCellAnnotation.DEFAULT_PADDING) {
1034
+ delete cleanedStyle.padding;
1035
+ }
1036
+ if (cleanedStyle.border ===
1037
+ `${RTETableCellAnnotation.DEFAULT_BORDER.style} ${RTETableCellAnnotation.DEFAULT_BORDER.width} ${RTETableCellAnnotation.DEFAULT_BORDER.color}`) {
1038
+ delete cleanedStyle.border;
1039
+ }
1040
+ if (cleanedStyle.textAlign === RTETableCellAnnotation.DEFAULT_HORIZONTAL_TEXT_ALIGN) {
1041
+ delete cleanedStyle.textAlign;
1042
+ }
1043
+ if (cleanedStyle.verticalAlign === RTETableCellAnnotation.DEFAULT_VERTICAL_TEXT_ALIGN) {
1044
+ delete cleanedStyle.verticalAlign;
1045
+ }
1046
+ if (cleanedStyle.minWidth === RTETableCellAnnotation.DEFAULT_CELL_MIN_WIDTH) {
1047
+ delete cleanedStyle.minWidth;
1048
+ }
1049
+ if (cleanedStyle.boxSizing === RTETableCellAnnotation.DEFAULT_BOX_SIZING) {
1050
+ delete cleanedStyle.boxSizing;
1051
+ }
1052
+ return cleanedStyle;
1053
+ }
1054
+ }
1055
+ RTETableCellAnnotation.DEFAULT_PADDING = '12px';
1056
+ RTETableCellAnnotation.DEFAULT_BORDER = {
1057
+ style: 'solid',
1058
+ width: '1px',
1059
+ color: '#ddd',
1060
+ };
1061
+ RTETableCellAnnotation.DEFAULT_BORDER_RGB_COLOR = 'rgb(221, 221, 221)'; // Equivalent RGB for #ddd
1062
+ RTETableCellAnnotation.DEFAULT_HORIZONTAL_TEXT_ALIGN = 'left';
1063
+ RTETableCellAnnotation.DEFAULT_VERTICAL_TEXT_ALIGN = 'middle';
1064
+ RTETableCellAnnotation.DEFAULT_CELL_MIN_WIDTH = '55px';
1065
+ RTETableCellAnnotation.DEFAULT_BOX_SIZING = 'border-box';
1066
+
1067
+ /**
1068
+ * Class representing a table cell block in the rich text editor.
1069
+ */
1070
+ class RTETableCellBlock extends RTEBlock {
1071
+ constructor(id, options) {
1072
+ super(id);
1073
+ this.type = 'table-cell';
1074
+ this.children = [];
1075
+ const { autoMatchFormat } = options || { autoMatchFormat: true };
1076
+ if (autoMatchFormat) {
1077
+ this.annotationMap.set(RTETableExtensionAnnotationTypeEnum.CELL, new RTETableCellAnnotation());
1078
+ }
1079
+ }
1080
+ /**
1081
+ * @inheritDoc
1082
+ */
1083
+ static from(block, options) {
1084
+ var _a;
1085
+ const tableCellBlock = new RTETableCellBlock(block.id, options);
1086
+ super.convertAnnotationsToMap(tableCellBlock.annotationMap, Object.assign({}, block.annotations));
1087
+ if ((_a = block.annotations) === null || _a === void 0 ? void 0 : _a.tableCell) {
1088
+ tableCellBlock.annotationMap.set(...RTETableCellAnnotation.from(block.annotations.tableCell, options === null || options === void 0 ? void 0 : options.autoMatchFormat));
1089
+ }
1090
+ tableCellBlock.children = super.generateBlockChildren(block.children, options, tableCellBlock);
1091
+ return tableCellBlock;
1092
+ }
1093
+ /**
1094
+ * @inheritDoc
1095
+ */
1096
+ clone(parent) {
1097
+ const clonedBlock = new RTETableCellBlock(this.id);
1098
+ clonedBlock.children = this.children.map((child) => child.clone(clonedBlock));
1099
+ clonedBlock.parent = parent;
1100
+ clonedBlock.annotationMap = super.cloneAnnotations();
1101
+ return clonedBlock;
1102
+ }
1103
+ /**
1104
+ * @inheritDoc
1105
+ */
1106
+ getLastNode() {
1107
+ return this.children[this.children.length - 1].getLastNode();
1108
+ }
1109
+ /**
1110
+ * @inheritDoc
1111
+ */
1112
+ isNotEmpty() {
1113
+ return this.children.length > 0;
1114
+ }
1115
+ /**
1116
+ * Get the rowSpan of the table cell
1117
+ *
1118
+ * @returns {number} - rowSpan value
1119
+ */
1120
+ get rowSpan() {
1121
+ const rowSpan = this.getCustomAttributeByName('rowspan');
1122
+ return !isNaN(Number(rowSpan)) ? Math.max(Number(rowSpan), 1) : 1;
1123
+ }
1124
+ /**
1125
+ * Get the colSpan of the table cell
1126
+ *
1127
+ * @returns {number} - colSpan value
1128
+ */
1129
+ get colSpan() {
1130
+ const colSpan = this.getCustomAttributeByName('colspan');
1131
+ return !isNaN(Number(colSpan)) ? Math.max(Number(colSpan), 1) : 1;
1132
+ }
1133
+ /**
1134
+ * @inheritDoc
1135
+ */
1136
+ toHtml(options) {
1137
+ const childrenHtml = this.children.map((child) => child.toHtml(options)).join('');
1138
+ const attrStr = super.generateAttributeString(options);
1139
+ return `<td${attrStr}>${childrenHtml}</td>`;
1140
+ }
1141
+ /**
1142
+ * @inheritDoc
1143
+ */
1144
+ toJSON() {
1145
+ return Object.assign(Object.assign({}, super.toJSON()), { type: this.type, children: this.children.map((child) => child.toJSON()) });
1146
+ }
1147
+ /**
1148
+ * Get custom attribute by name
1149
+ *
1150
+ * @param {string} attrName - attribute name
1151
+ * @returns {Nullable<string>} - attribute value
1152
+ */
1153
+ getCustomAttributeByName(attrName) {
1154
+ const customAttrAnnotation = this.getCustomAttributesAnnotation();
1155
+ if (customAttrAnnotation) {
1156
+ const customAttributes = customAttrAnnotation.toJSON()['customAttribute'] || {};
1157
+ return customAttributes[attrName];
1158
+ }
1159
+ }
1160
+ }
1161
+
1162
+ /**
1163
+ * Class representing a table head cell annotation in the rich text editor.
1164
+ */
1165
+ class RTETableHeadCellAnnotation extends RTETableCellAnnotation {
1166
+ constructor(annotation = {}, useInternalStyle = true) {
1167
+ super(annotation, useInternalStyle);
1168
+ }
1169
+ /**
1170
+ * @inheritDoc
1171
+ */
1172
+ static from(cellAnnotation, useInternalStyle) {
1173
+ return [
1174
+ RTETableExtensionAnnotationTypeEnum.CELL,
1175
+ new RTETableHeadCellAnnotation(cellAnnotation, useInternalStyle),
1176
+ ];
1177
+ }
1178
+ /**
1179
+ * Gets the default background color for table head cells based on the current theme mode.
1180
+ *
1181
+ * @returns {string} The default background color for table head cells.
1182
+ */
1183
+ static getDefaultBackgroundColor() {
1184
+ return VegaInternalThemeManager.isDarkMode()
1185
+ ? RTE_TABLE_HEAD_DEFAULT_BACKGROUND_COLOR.dark
1186
+ : RTE_TABLE_HEAD_DEFAULT_BACKGROUND_COLOR.light;
1187
+ }
1188
+ /**
1189
+ * @inheritDoc
1190
+ */
1191
+ clone() {
1192
+ return new RTETableHeadCellAnnotation({
1193
+ backgroundColor: this.backgroundColor,
1194
+ padding: this.padding,
1195
+ border: this.border,
1196
+ width: this.width,
1197
+ height: this.height,
1198
+ textAlign: this.textAlign,
1199
+ verticalAlign: this.verticalAlign,
1200
+ minWidth: this.minWidth,
1201
+ boxSizing: this.boxSizing,
1202
+ }, this.useInternalStyle);
1203
+ }
1204
+ /**
1205
+ * @inheritDoc
1206
+ */
1207
+ renderStyle(options) {
1208
+ var _a;
1209
+ const styles = super.renderStyle(options);
1210
+ return cleanObject(Object.assign(Object.assign({}, styles), { backgroundColor: (_a = styles.backgroundColor) !== null && _a !== void 0 ? _a : RTETableHeadCellAnnotation.getDefaultBackgroundColor() }));
1211
+ }
1212
+ }
1213
+
1214
+ /**
1215
+ * Class representing a table head block in the rich text editor.
1216
+ */
1217
+ class RTETableHeadCellBlock extends RTETableCellBlock {
1218
+ constructor(id, options) {
1219
+ super(id, options);
1220
+ this.type = 'table-head-cell';
1221
+ const { autoMatchFormat } = options || { autoMatchFormat: true };
1222
+ if (autoMatchFormat) {
1223
+ this.annotationMap.set(RTETableExtensionAnnotationTypeEnum.CELL, new RTETableHeadCellAnnotation());
1224
+ }
1225
+ }
1226
+ /**
1227
+ * @inheritDoc
1228
+ */
1229
+ static from(block, options) {
1230
+ var _a;
1231
+ const headCellBlock = new RTETableHeadCellBlock(block.id, options);
1232
+ super.convertAnnotationsToMap(headCellBlock.annotationMap, Object.assign({}, block.annotations));
1233
+ if ((_a = block.annotations) === null || _a === void 0 ? void 0 : _a.tableCell) {
1234
+ headCellBlock.annotationMap.set(...RTETableHeadCellAnnotation.from(block.annotations.tableCell, options === null || options === void 0 ? void 0 : options.autoMatchFormat));
1235
+ }
1236
+ headCellBlock.children = super.generateBlockChildren(block.children, options, headCellBlock);
1237
+ return headCellBlock;
1238
+ }
1239
+ /**
1240
+ * @inheritDoc
1241
+ */
1242
+ clone(parent) {
1243
+ const clonedBlock = new RTETableHeadCellBlock(this.id);
1244
+ clonedBlock.children = this.children.map((child) => child.clone(clonedBlock));
1245
+ clonedBlock.parent = parent;
1246
+ clonedBlock.annotationMap = super.cloneAnnotations();
1247
+ return clonedBlock;
1248
+ }
1249
+ /**
1250
+ * @inheritDoc
1251
+ */
1252
+ toHtml(options) {
1253
+ const childrenHtml = this.children.map((child) => child.toHtml(options)).join('');
1254
+ const attrStr = super.generateAttributeString(options);
1255
+ return `<th${attrStr}>${childrenHtml}</th>`;
1256
+ }
1257
+ /**
1258
+ * @inheritDoc
1259
+ */
1260
+ toJSON() {
1261
+ return Object.assign(Object.assign({}, super.toJSON()), { type: this.type, children: this.children.map((child) => child.toJSON()) });
1262
+ }
1263
+ }
1264
+
1265
+ const MERGE_CELLS = 'MERGE_CELLS';
1266
+ /**
1267
+ * Action to merge cells into the RTETable.
1268
+ */
1269
+ class MergeCellsAction extends ModifyContentAction {
1270
+ constructor(targetCell, mergeCells, colSpan, rowSpan, direction) {
1271
+ super();
1272
+ this.type = MERGE_CELLS;
1273
+ this.isFlushable = true;
1274
+ this.targetCell = targetCell;
1275
+ this.mergeCells = mergeCells;
1276
+ this.colSpan = colSpan;
1277
+ this.rowSpan = rowSpan;
1278
+ this.direction = direction;
1279
+ }
1280
+ }
1281
+
1282
+ var MergeCellsOperationType;
1283
+ (function (MergeCellsOperationType) {
1284
+ MergeCellsOperationType["MERGE_CELLS"] = "MERGE_CELLS";
1285
+ MergeCellsOperationType["MERGE_CELL_UP"] = "MERGE_CELL_UP";
1286
+ MergeCellsOperationType["MERGE_CELL_RIGHT"] = "MERGE_CELL_RIGHT";
1287
+ MergeCellsOperationType["MERGE_CELL_DOWN"] = "MERGE_CELL_DOWN";
1288
+ MergeCellsOperationType["MERGE_CELL_LEFT"] = "MERGE_CELL_LEFT";
1289
+ })(MergeCellsOperationType || (MergeCellsOperationType = {}));
1290
+ /**
1291
+ * Event handler for merge cells operations in a table.
1292
+ */
1293
+ class MergeCellsOperationEventHandler extends SettingEventHandler {
1294
+ /**
1295
+ * @inheritDoc
1296
+ */
1297
+ canHandle(action) {
1298
+ return action[0] === TableSettingType.MERGE_CELLS;
1299
+ }
1300
+ /**
1301
+ * @inheritDoc
1302
+ */
1303
+ execute(action, extensionContext) {
1304
+ const selectedCells = extensionContext.tableSelection.getSelectedCells();
1305
+ const operation = action[1];
1306
+ switch (operation) {
1307
+ case MergeCellsOperationType.MERGE_CELL_UP:
1308
+ case MergeCellsOperationType.MERGE_CELL_RIGHT:
1309
+ case MergeCellsOperationType.MERGE_CELL_DOWN:
1310
+ case MergeCellsOperationType.MERGE_CELL_LEFT:
1311
+ {
1312
+ const mergeCells = this.getDirectionMergeCells(operation, selectedCells[0]);
1313
+ this.handleMergeCells(mergeCells, operation);
1314
+ }
1315
+ break;
1316
+ default:
1317
+ {
1318
+ if (selectedCells.length > 1) {
1319
+ this.handleMergeCells(selectedCells, MergeCellsOperationType.MERGE_CELLS);
1320
+ }
1321
+ }
1322
+ break;
1323
+ }
1324
+ }
1325
+ /**
1326
+ * Get the adjacent cell in the specified direction.
1327
+ *
1328
+ * @param {MergeCellsOperationType} direction - The direction to look for the adjacent cell.
1329
+ * @param {RTETableCellBlock | RTETableHeadCellBlock} cell - The current cell.
1330
+ * @returns {Array<RTETableCellBlock | RTETableHeadCellBlock>} Array containing the cells to merge.
1331
+ */
1332
+ getDirectionMergeCells(direction, cell) {
1333
+ const adjacent = getAdjacentCell(cell, direction);
1334
+ if (!adjacent) {
1335
+ return [cell];
1336
+ }
1337
+ switch (direction) {
1338
+ case MergeCellsOperationType.MERGE_CELL_UP:
1339
+ return [adjacent, cell];
1340
+ case MergeCellsOperationType.MERGE_CELL_DOWN:
1341
+ return [cell, adjacent];
1342
+ case MergeCellsOperationType.MERGE_CELL_LEFT:
1343
+ return [adjacent, cell];
1344
+ default:
1345
+ return [cell, adjacent];
1346
+ }
1347
+ }
1348
+ /**
1349
+ * Handle the merge cells operation by creating and applying a MergeCellsAction.
1350
+ *
1351
+ * @param {Array<RTETableCellBlock | RTETableHeadCellBlock>} mergeCells - The cells to merge.
1352
+ * @param {MergeCellsOperationType} direction - The merge cell direction.
1353
+ */
1354
+ handleMergeCells(mergeCells, direction) {
1355
+ if (mergeCells.length < 2) {
1356
+ return;
1357
+ }
1358
+ const rectInfo = getRectangularBounds(mergeCells);
1359
+ const { minRow, maxRow, minCol, maxCol, targetCell } = rectInfo;
1360
+ const colSpan = maxCol - minCol + 1;
1361
+ const rowSpan = maxRow - minRow + 1;
1362
+ const action = new MergeCellsAction(targetCell, mergeCells, colSpan, rowSpan, direction);
1363
+ this.applyActionOnTable(action, targetCell);
1364
+ }
1365
+ /**
1366
+ * Apply the specified action on the table containing the selected cell.
1367
+ *
1368
+ * @param {MergeCellsAction} action - The action to apply.
1369
+ * @param {RTETableCellBlock | RTETableHeadCellBlock} selectedCell - The selected table cell.
1370
+ */
1371
+ applyActionOnTable(action, selectedCell) {
1372
+ const table = getParentBlockByType(selectedCell, RTETableBlock);
1373
+ if (table) {
1374
+ table.apply(action);
1375
+ }
1376
+ }
1377
+ }
1378
+
1379
+ /**
1380
+ * Recursively searches for a parent block of a specific type.
1381
+ *
1382
+ * @typedef T - Generic type extending RTEBlock.
1383
+ * @param {RTEBlock} block - The starting block to search from.
1384
+ * @param {ClassType<unknown>} dtoClass - The class type to match the parent block against.
1385
+ * @returns {T | null} - The found parent block of the specified type, or null if not found.
1386
+ */
1387
+ function getParentBlockByType(block, dtoClass) {
1388
+ if (block) {
1389
+ if (block instanceof dtoClass) {
1390
+ return block;
1391
+ }
1392
+ else {
1393
+ return getParentBlockByType(block.parent, dtoClass);
1394
+ }
1395
+ }
1396
+ return null;
1397
+ }
1398
+ /**
1399
+ * Generate the table body with the specified number of rows and columns.
1400
+ *
1401
+ * @param {number} rowCount - The number of rows in the table body.
1402
+ * @param {number} columnCount - The number of columns in the table body.
1403
+ * @returns {VegaRTETableBodyBlock} The generated table body block.
1404
+ */
1405
+ function generateTableBody(rowCount, columnCount) {
1406
+ return {
1407
+ id: generateUUID(),
1408
+ type: 'table-body',
1409
+ children: Array.from({ length: rowCount }, () => generateTableRow(columnCount)),
1410
+ };
1411
+ }
1412
+ /**
1413
+ * Create a table row block with the specified number of columns and cell type.
1414
+ *
1415
+ * @param {number} columnCount - The number of columns in the row.
1416
+ * @returns {VegaRTETableRowBlock} The created table row block.
1417
+ */
1418
+ function generateTableRow(columnCount) {
1419
+ return {
1420
+ id: generateUUID(),
1421
+ type: 'table-row',
1422
+ children: Array.from({ length: columnCount }, () => getDefaultCellBlockTemplate('table-cell')),
1423
+ };
1424
+ }
1425
+ /**
1426
+ * Get all table rows from a table block (including rows from all table bodies and headers).
1427
+ *
1428
+ * @param {RTETableBlock} tableBlock - The table block.
1429
+ * @returns {RTETableRowBlock[]} Array of all table row blocks.
1430
+ */
1431
+ function getAllTableRows(tableBlock) {
1432
+ return tableBlock.children
1433
+ .filter((child) => child instanceof RTETableBodyBlock || child instanceof RTETableHeadBlock)
1434
+ .flatMap((body) => body.children);
1435
+ }
1436
+ /**
1437
+ * Find the first node within a block recursively.
1438
+ *
1439
+ * @param {Nullable<RTEBlock>} block - The block to find the first node in.
1440
+ * @returns {Nullable<RTENode>} The focusable node within the block.
1441
+ */
1442
+ function getFirstNode(block) {
1443
+ if (!block || !block.children || !block.children[0])
1444
+ return null;
1445
+ const firstNode = block.children[0];
1446
+ if (firstNode instanceof RTENode) {
1447
+ return firstNode;
1448
+ }
1449
+ return getFirstNode(firstNode);
1450
+ }
1451
+ /**
1452
+ * Find a cell block by its ID across all table rows.
1453
+ *
1454
+ * @param {RTETableRowBlock[]} allTableRows - All table rows to search within.
1455
+ * @param {string} cellId - The unique identifier of the cell to find.
1456
+ * @returns {Nullable<RTETableCellBlock | RTETableHeadCellBlock>} The found cell block, or null if not found.
1457
+ */
1458
+ function findCellBlockById(allTableRows, cellId) {
1459
+ for (const row of allTableRows) {
1460
+ const found = row.children.find((cell) => cell.id === cellId);
1461
+ if (found) {
1462
+ return found;
1463
+ }
1464
+ }
1465
+ return null;
1466
+ }
1467
+ /**
1468
+ * Get the default cell block template.
1469
+ *
1470
+ * @param {string} cellType - The type of the cell block.
1471
+ * @returns {VegaRTETableCellBlock} The default cell block template.
1472
+ */
1473
+ function getDefaultCellBlockTemplate(cellType) {
1474
+ const id = generateUUID();
1475
+ return {
1476
+ id,
1477
+ type: cellType,
1478
+ children: [
1479
+ {
1480
+ id: `${id}-p`,
1481
+ type: 'paragraph',
1482
+ nodes: [
1483
+ {
1484
+ id: `${id}-p-t`,
1485
+ type: 'text',
1486
+ text: '',
1487
+ },
1488
+ ],
1489
+ },
1490
+ ],
1491
+ };
1492
+ }
1493
+ /**
1494
+ * Get the actual col span and row span of a cell.
1495
+ *
1496
+ * @param {RTETableCellBlock | RTETableHeadCellBlock} cell - The cell to check.
1497
+ * @returns {CellSpan} The actual span values.
1498
+ */
1499
+ function getCellSpan(cell) {
1500
+ return { colSpan: cell.colSpan, rowSpan: cell.rowSpan };
1501
+ }
1502
+ /**
1503
+ * Get the actual column position of a cell considering previous cells' colspan
1504
+ * and cells from previous rows with rowspan that extend into the current row.
1505
+ *
1506
+ * @param {RTETableCellBlock | RTETableHeadCellBlock} cell - The cell to check.
1507
+ * @param {RTETableRowBlock[]} allRows - The table all rows.
1508
+ * @param {string[][]} grid - The 2D grid representation of the table
1509
+ * @returns {number} The actual column position.
1510
+ */
1511
+ function getActualColumnPosition(cell, allRows, grid) {
1512
+ const tableGrid = grid !== null && grid !== void 0 ? grid : buildTableGrid(allRows);
1513
+ for (let row = 0; row < tableGrid.length; row++) {
1514
+ const cols = tableGrid[row];
1515
+ for (let col = 0; col < cols.length; col++) {
1516
+ if (cols[col] === cell.id) {
1517
+ return col;
1518
+ }
1519
+ }
1520
+ }
1521
+ return -1;
1522
+ }
1523
+ /**
1524
+ * Build a 2D grid representation of a table section where each occupied position
1525
+ * contains the cell id covering that (row, col) coordinate, accounting for colSpan/rowSpan.
1526
+ *
1527
+ * @param {RTETableRowBlock[]} allRows - All rows in the current table section.
1528
+ * @returns {string[][]} The table grid.
1529
+ */
1530
+ function buildTableGrid(allRows) {
1531
+ const grid = [];
1532
+ allRows.forEach((row, rowIndex) => {
1533
+ if (!grid[rowIndex]) {
1534
+ grid[rowIndex] = [];
1535
+ }
1536
+ let colIndex = 0;
1537
+ row.children.forEach((cell) => {
1538
+ const { colSpan, rowSpan } = getCellSpan(cell);
1539
+ while (grid[rowIndex][colIndex] !== undefined) {
1540
+ colIndex++;
1541
+ }
1542
+ for (let r = 0; r < rowSpan; r++) {
1543
+ for (let c = 0; c < colSpan; c++) {
1544
+ if (!grid[rowIndex + r]) {
1545
+ grid[rowIndex + r] = [];
1546
+ }
1547
+ grid[rowIndex + r][colIndex + c] = cell.id;
1548
+ }
1549
+ }
1550
+ colIndex += colSpan;
1551
+ });
1552
+ });
1553
+ return grid;
1554
+ }
1555
+ /**
1556
+ * Get the adjacent cell in the specified direction based on the table matrix.
1557
+ *
1558
+ * @param {RTETableCellBlock | RTETableHeadCellBlock} cell - The current cell.
1559
+ * @param {AdjacentCellDirection} direction - The direction to locate the adjacent cell.
1560
+ * @returns {RTETableCellBlock | RTETableHeadCellBlock | null} The adjacent cell or null.
1561
+ */
1562
+ function getAdjacentCell(cell, direction) {
1563
+ if (!cell) {
1564
+ return null;
1565
+ }
1566
+ const row = cell.parent;
1567
+ const sectionRows = row.parent.children;
1568
+ const rowIndex = sectionRows.indexOf(row);
1569
+ const { colSpan, rowSpan } = getCellSpan(cell);
1570
+ const cellColPosition = getActualColumnPosition(cell, sectionRows);
1571
+ let targetRowIndex = rowIndex;
1572
+ let targetColPosition = cellColPosition;
1573
+ switch (direction) {
1574
+ case MergeCellsOperationType.MERGE_CELL_LEFT:
1575
+ targetColPosition = cellColPosition - 1;
1576
+ break;
1577
+ case MergeCellsOperationType.MERGE_CELL_RIGHT:
1578
+ targetColPosition = cellColPosition + colSpan;
1579
+ break;
1580
+ case MergeCellsOperationType.MERGE_CELL_UP:
1581
+ targetRowIndex = rowIndex - 1;
1582
+ break;
1583
+ default:
1584
+ targetRowIndex = rowIndex + rowSpan;
1585
+ break;
1586
+ }
1587
+ return findCellAtPosition(sectionRows, targetRowIndex, targetColPosition);
1588
+ }
1589
+ /**
1590
+ * Find the cell that covers the specified matrix position.
1591
+ *
1592
+ * @param {RTETableRowBlock[]} rows - Rows in the current table section.
1593
+ * @param {number} targetRowIndex - Target matrix row index.
1594
+ * @param {number} targetColPosition - Target matrix column position.
1595
+ * @returns {RTETableCellBlock | RTETableHeadCellBlock | null} The covering cell or null.
1596
+ */
1597
+ function findCellAtPosition(rows, targetRowIndex, targetColPosition) {
1598
+ const tableGrid = buildTableGrid(rows);
1599
+ for (let r = 0; r < rows.length; r++) {
1600
+ const currentRow = rows[r];
1601
+ for (const candidate of currentRow.children) {
1602
+ const { colSpan, rowSpan } = getCellSpan(candidate);
1603
+ const candidateColPosition = getActualColumnPosition(candidate, rows, tableGrid);
1604
+ const candidateRowStart = r;
1605
+ const candidateRowEnd = r + rowSpan - 1;
1606
+ const candidateColEnd = candidateColPosition + colSpan - 1;
1607
+ const isSameMatrixRow = targetRowIndex >= candidateRowStart && targetRowIndex <= candidateRowEnd;
1608
+ const isTargetColumnCovered = targetColPosition >= candidateColPosition && targetColPosition <= candidateColEnd;
1609
+ if (isSameMatrixRow && isTargetColumnCovered) {
1610
+ return candidate;
1611
+ }
1612
+ }
1613
+ }
1614
+ return null;
1615
+ }
1616
+ /**
1617
+ * Get the rectangular bounds of selected cells.
1618
+ * Calculates the bounding box (minRow, maxRow, minCol, maxCol) and returns related information.
1619
+ *
1620
+ * @param {RTETableCellBlock[] | RTETableHeadCellBlock[]} selectedCells - The selected table cells.
1621
+ * @returns {RectangularBounds} The rectangular bounds' information.
1622
+ */
1623
+ function getRectangularBounds(selectedCells) {
1624
+ const firstCell = selectedCells[0];
1625
+ const firstRow = firstCell.parent;
1626
+ const table = firstRow.parent;
1627
+ const allRows = table.children;
1628
+ const tableGrid = buildTableGrid(allRows);
1629
+ let minRow = Number.POSITIVE_INFINITY;
1630
+ let maxRow = -1;
1631
+ let minCol = Number.POSITIVE_INFINITY;
1632
+ let maxCol = -1;
1633
+ const coveredPositions = new Set();
1634
+ selectedCells.forEach((cell) => {
1635
+ const row = cell.parent;
1636
+ const rowIndex = allRows.indexOf(row);
1637
+ const actualColPosition = getActualColumnPosition(cell, allRows, tableGrid);
1638
+ const { colSpan, rowSpan } = getCellSpan(cell);
1639
+ const cellMinRow = rowIndex;
1640
+ const cellMaxRow = rowIndex + rowSpan - 1;
1641
+ const cellMinCol = actualColPosition;
1642
+ const cellMaxCol = actualColPosition + colSpan - 1;
1643
+ for (let r = cellMinRow; r <= cellMaxRow; r++) {
1644
+ for (let c = cellMinCol; c <= cellMaxCol; c++) {
1645
+ coveredPositions.add(`${r},${c}`);
1646
+ }
1647
+ }
1648
+ minRow = Math.min(minRow, cellMinRow);
1649
+ maxRow = Math.max(maxRow, cellMaxRow);
1650
+ minCol = Math.min(minCol, cellMinCol);
1651
+ maxCol = Math.max(maxCol, cellMaxCol);
1652
+ });
1653
+ const targetCell = selectedCells[0];
1654
+ return {
1655
+ minRow,
1656
+ maxRow,
1657
+ minCol,
1658
+ maxCol,
1659
+ targetCell,
1660
+ coveredPositions,
1661
+ };
1662
+ }
1663
+ /**
1664
+ * Calculate the total number of columns in the table.
1665
+ * Accounts for cells with col span.
1666
+ *
1667
+ * @param {RTETableBlock} table - The table block.
1668
+ * @returns {number} The total number of columns in the table.
1669
+ */
1670
+ function getTableColumnCount(table) {
1671
+ const rows = getAllTableRows(table);
1672
+ // Calculate the total columns from the first row, accounting for col span
1673
+ let totalColumns = 0;
1674
+ const firstRow = rows[0];
1675
+ for (const cell of firstRow.children) {
1676
+ const { colSpan } = getCellSpan(cell);
1677
+ totalColumns += colSpan;
1678
+ }
1679
+ return totalColumns;
1680
+ }
1681
+ /**
1682
+ * Check if the selected cells form a rectangular area.
1683
+ * Considers cells with col span and row span.
1684
+ *
1685
+ * @param {RTETableCellBlock[] | RTETableHeadCellBlock[]} selectedCells - The selected table cells.
1686
+ * @returns {boolean} True if the selected cells form a rectangle, false otherwise.
1687
+ */
1688
+ function isRectangularSelection(selectedCells) {
1689
+ if (selectedCells.length === 1) {
1690
+ return true;
1691
+ }
1692
+ const bounds = getRectangularBounds(selectedCells);
1693
+ const { minRow, maxRow, minCol, maxCol, coveredPositions } = bounds;
1694
+ const expectedPositions = (maxRow - minRow + 1) * (maxCol - minCol + 1);
1695
+ if (coveredPositions.size !== expectedPositions) {
1696
+ return false;
1697
+ }
1698
+ return true;
1699
+ }
1700
+ /**
1701
+ * Set the col span and row span attributes for a target cell.
1702
+ * When colSpan equals the table's total columns, rowSpan is removed.
1703
+ *
1704
+ * @param {RTETableCellBlock | RTETableHeadCellBlock} targetCell - The target cell to set attributes on.
1705
+ * @param {number} colSpan - The column span value.
1706
+ * @param {number} rowSpan - The row span value.
1707
+ * @param {RTETableBlock} table - The table block.
1708
+ * @param {boolean} insertColumn - Whether the operation is an insert-column action.
1709
+ */
1710
+ function setSpanAttributes(targetCell, colSpan, rowSpan, table, insertColumn) {
1711
+ const existingAnnotation = targetCell.annotationMap.get(CommonAnnotationTypeEnum.CUSTOM_ATTRIBUTE);
1712
+ const existingAttrs = existingAnnotation
1713
+ ? Object.assign({}, existingAnnotation['customAttribute']) : {};
1714
+ delete existingAttrs.colspan;
1715
+ delete existingAttrs.rowspan;
1716
+ if (colSpan > 1) {
1717
+ existingAttrs.colspan = String(colSpan);
1718
+ }
1719
+ // When colspan equals table column count, don't set rowspan
1720
+ const tableColumnCount = getTableColumnCount(table) + (insertColumn ? 1 : 0);
1721
+ if (rowSpan > 1 && colSpan !== tableColumnCount) {
1722
+ existingAttrs.rowspan = String(rowSpan);
1723
+ }
1724
+ if (Object.keys(existingAttrs).length > 0) {
1725
+ const customAttributeAnnotation = new CustomAttributeAnnotation(existingAttrs);
1726
+ targetCell.annotationMap.set(CommonAnnotationTypeEnum.CUSTOM_ATTRIBUTE, customAttributeAnnotation);
1727
+ }
1728
+ else {
1729
+ targetCell.annotationMap.delete(CommonAnnotationTypeEnum.CUSTOM_ATTRIBUTE);
1730
+ }
1731
+ }
1732
+ /**
1733
+ * Create a new cell of the specified type.
1734
+ *
1735
+ * @param {string} cellType - The type of cell ('table-cell' or 'table-head-cell').
1736
+ * @returns {RTETableCellBlock | RTETableHeadCellBlock} The newly created cell.
1737
+ */
1738
+ function createNewCell(cellType) {
1739
+ const cellTemplate = getDefaultCellBlockTemplate(cellType);
1740
+ if (cellType === 'table-head-cell') {
1741
+ return RTETableHeadCellBlock.from(cellTemplate);
1742
+ }
1743
+ return RTETableCellBlock.from(cellTemplate);
1744
+ }
1745
+ /**
1746
+ * Find the first logical column index in a row that is not a header cell.
1747
+ *
1748
+ * @param {string[]} gridRow - The grid row array.
1749
+ * @param {RTETableRowBlock} row - The table row block.
1750
+ * @param {number} maxColLength - The maximum number of columns.
1751
+ * @returns {number} The first non-header logical column index, or -1 if not found.
1752
+ */
1753
+ function findFirstBodyColIndex(gridRow, row, maxColLength) {
1754
+ for (let colIndex = 0; colIndex < maxColLength; colIndex++) {
1755
+ const cellId = gridRow[colIndex];
1756
+ const cellBlock = row.children.find((c) => c.id === cellId);
1757
+ if (cellBlock && !(cellBlock instanceof RTETableHeadCellBlock)) {
1758
+ return colIndex;
1759
+ }
1760
+ }
1761
+ return -1;
1762
+ }
1763
+ /**
1764
+ * Build a map of cell id to its first logical column index in the table grid.
1765
+ *
1766
+ * @param {string[][]} tableGrid - The table grid.
1767
+ * @returns {Map<string, number>} Cell id to start column index.
1768
+ */
1769
+ function buildCellStartColumnMap(tableGrid) {
1770
+ const cellStartColMap = new Map();
1771
+ tableGrid.forEach((gridRow) => {
1772
+ for (let col = 0; col < gridRow.length; col++) {
1773
+ const cellId = gridRow[col];
1774
+ if (cellId && !cellStartColMap.has(cellId)) {
1775
+ cellStartColMap.set(cellId, col);
1776
+ }
1777
+ }
1778
+ });
1779
+ return cellStartColMap;
1780
+ }
1781
+ /**
1782
+ * Find the index range of the table selection.
1783
+ * Returns the starting and ending indices of the selected cells.
1784
+ *
1785
+ * @param {(RTETableCellBlock | RTETableHeadCellBlock)[]} selectedCells - The selected table cells.
1786
+ * @param {RTETableBlock} table - The table block
1787
+ * @param {RTETableRowBlock[]} allTableRows - All table rows.
1788
+ * @param {string[][]} grid - The 2D grid representation of the table
1789
+ * @returns {[number, number]} A tuple containing the start and end indices.
1790
+ */
1791
+ function getSelectedCellsBoundary(selectedCells, table, allTableRows, grid) {
1792
+ if (selectedCells.length === 0) {
1793
+ return [0, -1];
1794
+ }
1795
+ const tableRows = allTableRows ? allTableRows : getAllTableRows(table);
1796
+ const tableGrid = grid !== null && grid !== void 0 ? grid : buildTableGrid(tableRows);
1797
+ let minCol = Number.POSITIVE_INFINITY;
1798
+ let maxCol = Number.NEGATIVE_INFINITY;
1799
+ selectedCells.forEach((cell) => {
1800
+ const logicalCol = getActualColumnPosition(cell, tableRows, tableGrid);
1801
+ minCol = Math.min(minCol, logicalCol);
1802
+ maxCol = Math.max(maxCol, logicalCol);
1803
+ });
1804
+ return [minCol, maxCol];
1805
+ }
1806
+
1807
+ var RowOperationType;
1808
+ (function (RowOperationType) {
1809
+ RowOperationType["HEADER_ROW"] = "HEADER_ROW";
1810
+ RowOperationType["ADD_ROW_ABOVE"] = "ADD_ROW_ABOVE";
1811
+ RowOperationType["ADD_ROW_BELOW"] = "ADD_ROW_BELOW";
1812
+ RowOperationType["DELETE_ROW"] = "DELETE_ROW";
1813
+ RowOperationType["SELECT_ROW"] = "SELECT_ROW";
1814
+ })(RowOperationType || (RowOperationType = {}));
1815
+ /**
1816
+ * Event handler for row operations in a table.
1817
+ */
1818
+ class RowOperationEventHandler extends SettingEventHandler {
1819
+ /**
1820
+ * @inheritDoc
1821
+ */
1822
+ canHandle(action) {
1823
+ return action[0] === TableSettingType.ROW;
1824
+ }
1825
+ /**
1826
+ * @inheritDoc
1827
+ */
1828
+ execute(action, extensionContext) {
1829
+ const operation = action[1];
1830
+ switch (operation) {
1831
+ case RowOperationType.ADD_ROW_ABOVE:
1832
+ case RowOperationType.ADD_ROW_BELOW:
1833
+ this.handleInsertRow(operation, extensionContext);
1834
+ break;
1835
+ case RowOperationType.DELETE_ROW:
1836
+ this.handleDeleteRow(extensionContext);
1837
+ break;
1838
+ case RowOperationType.HEADER_ROW:
1839
+ this.handleToggleHeader(extensionContext);
1840
+ break;
1841
+ case RowOperationType.SELECT_ROW:
1842
+ this.handleSelectRow(extensionContext);
1843
+ break;
1844
+ }
1845
+ }
1846
+ /**
1847
+ * Adds a new row to the table at the specified position.
1848
+ *
1849
+ * @param {RowOperationType} direction - The position to insert the new row (above or below).
1850
+ * @param {RTETableExtensionContext} extensionContext - The extension context.
1851
+ */
1852
+ handleInsertRow(direction, extensionContext) {
1853
+ const selectedRows = this.getAllSelectedRows(extensionContext);
1854
+ if (selectedRows.length > 0) {
1855
+ const insertDirection = direction === RowOperationType.ADD_ROW_ABOVE
1856
+ ? InsertTableRowDirection.ABOVE
1857
+ : InsertTableRowDirection.BELOW;
1858
+ // The reference block will control where to insert the new row
1859
+ const refBlock = insertDirection === InsertTableRowDirection.ABOVE
1860
+ ? selectedRows[0]
1861
+ : selectedRows[selectedRows.length - 1];
1862
+ const refBlockIsBodyRow = refBlock.parent instanceof RTETableBodyBlock;
1863
+ const action = this.shouldInsertHeaderRow(refBlock, insertDirection) || refBlockIsBodyRow
1864
+ ? new InsertTableRowIntoSameSectionAction(insertDirection, selectedRows)
1865
+ : new InsertTableRowIntoDifferentSectionAction(insertDirection, selectedRows);
1866
+ this.applyActionToTable(selectedRows[0], action);
1867
+ }
1868
+ }
1869
+ /**
1870
+ * Checks if a header row should be inserted based on the selected rows and position.
1871
+ *
1872
+ * @param {RTETableRowBlock} refBlock - The reference table row block.
1873
+ * @param {InsertTableRowDirection} direction - The direction to insert the new row (above or below).
1874
+ * @returns {boolean} True if a header row should be inserted, false otherwise.
1875
+ */
1876
+ shouldInsertHeaderRow(refBlock, direction) {
1877
+ if (direction === InsertTableRowDirection.ABOVE) {
1878
+ return refBlock.parent instanceof RTETableHeadBlock;
1879
+ }
1880
+ else {
1881
+ const parentBlock = refBlock.parent;
1882
+ return (parentBlock instanceof RTETableHeadBlock &&
1883
+ parentBlock.children[parentBlock.children.length - 1] !== refBlock);
1884
+ }
1885
+ }
1886
+ /**
1887
+ * Deletes the selected row(s) from the table.
1888
+ *
1889
+ * @param {RTETableExtensionContext} extensionContext - The extension context.
1890
+ */
1891
+ handleDeleteRow(extensionContext) {
1892
+ const selectedRows = this.getAllSelectedRows(extensionContext);
1893
+ if (selectedRows.length) {
1894
+ const action = new DeleteTableRowAction(selectedRows);
1895
+ this.applyActionToTable(selectedRows[0], action);
1896
+ }
1897
+ }
1898
+ /**
1899
+ * Converts selected rows to header rows or reverts them back to normal rows.
1900
+ *
1901
+ * @param {RTETableExtensionContext} extensionContext - The extension context.
1902
+ */
1903
+ handleToggleHeader(extensionContext) {
1904
+ const selectedRows = this.getAllSelectedRows(extensionContext);
1905
+ if (selectedRows.length > 0) {
1906
+ const action = new ToggleHeaderRowAction(selectedRows);
1907
+ this.applyActionToTable(selectedRows[0], action);
1908
+ }
1909
+ }
1910
+ /**
1911
+ * Selects the focus row(s) in the table.
1912
+ *
1913
+ * @param {RTETableExtensionContext} extensionContext - The extension context.
1914
+ */
1915
+ handleSelectRow(extensionContext) {
1916
+ const selectedRows = this.getAllSelectedRows(extensionContext);
1917
+ if (selectedRows.length > 0 && extensionContext && extensionContext.tableSelection) {
1918
+ const allCells = selectedRows.flatMap((row) => row.children);
1919
+ extensionContext.tableSelection.setSelectedCells(allCells);
1920
+ }
1921
+ }
1922
+ /**
1923
+ * Get all selected table rows.
1924
+ *
1925
+ * @param {RTETableExtensionContext} extensionContext - The extension context.
1926
+ * @returns {RTETableRowBlock[]} The selected table row blocks.
1927
+ */
1928
+ getAllSelectedRows(extensionContext) {
1929
+ const selectedRows = new Set();
1930
+ if (extensionContext && extensionContext.tableSelection) {
1931
+ const { tableSelection } = extensionContext;
1932
+ const selectedCells = tableSelection.getSelectedCells();
1933
+ selectedCells.forEach((cell) => {
1934
+ const rowBlock = getParentBlockByType(cell, RTETableRowBlock);
1935
+ if (rowBlock) {
1936
+ selectedRows.add(rowBlock);
1937
+ }
1938
+ });
1939
+ }
1940
+ return Array.from(selectedRows);
1941
+ }
1942
+ /**
1943
+ * Applies the given action to the table containing the reference block.
1944
+ *
1945
+ * @param {RTEBlock} refBlock - The reference block within the table.
1946
+ * @param {ModifyContentAction} action - The action to apply to the table.
1947
+ */
1948
+ applyActionToTable(refBlock, action) {
1949
+ const table = getParentBlockByType(refBlock, RTETableBlock);
1950
+ if (table) {
1951
+ table.apply(action);
1952
+ }
1953
+ }
1954
+ }
1955
+
1956
+ const REPLACE_TABLE_CELL = 'REPLACE_TABLE_CELL';
1957
+ /**
1958
+ * Action to replace a fully overlapped table cell.
1959
+ */
1960
+ class ReplaceTableCellAction extends ModifyContentAction {
1961
+ constructor(payload) {
1962
+ super();
1963
+ this.isFlushable = true;
1964
+ this.type = REPLACE_TABLE_CELL;
1965
+ this.payload = payload;
1966
+ }
1967
+ }
1968
+
1969
+ const SPLIT_TABLE_CELL = 'SPLIT_TABLE_CELL';
1970
+ /**
1971
+ * Action to split a partially overlapped table cell.
1972
+ */
1973
+ class SplitTableCellAction extends ModifyContentAction {
1974
+ constructor(payload) {
1975
+ super();
1976
+ this.isFlushable = true;
1977
+ this.type = SPLIT_TABLE_CELL;
1978
+ this.payload = payload;
1979
+ }
1980
+ }
1981
+
1982
+ /**
1983
+ * Abstract base strategy for handling table column operations.
1984
+ * Provides common functionality for all column-related strategies.
1985
+ */
1986
+ class TableColumnStrategy extends ActionHandleStrategy {
1987
+ /**
1988
+ * Finds the index range of cells within a table row.
1989
+ * Returns the start and end indices of the given cell range.
1990
+ *
1991
+ * @param {(RTETableCellBlock | RTETableHeadCellBlock)[]} cellRange - The range of table cells to find indices for.
1992
+ * @param {RTETableRowBlock[]} allTableRows - All table rows.
1993
+ * @param {string[][]} grid - The 2D grid representation of the table
1994
+ * @returns {[number, number]} A tuple containing the start and end indices.
1995
+ */
1996
+ getBoundaryCellColumnRange(cellRange, allTableRows, grid) {
1997
+ let minCol = Number.POSITIVE_INFINITY;
1998
+ let maxCol = Number.NEGATIVE_INFINITY;
1999
+ cellRange.forEach((cell) => {
2000
+ const logicalCol = getActualColumnPosition(cell, allTableRows, grid);
2001
+ minCol = Math.min(minCol, logicalCol);
2002
+ maxCol = Math.max(maxCol, logicalCol);
2003
+ });
2004
+ return [minCol, maxCol];
2005
+ }
2006
+ }
2007
+
2008
+ /**
2009
+ * Strategy to handle the toggle of header state of a table column.
2010
+ */
2011
+ class ToggleHeaderTableColumnStrategy extends TableColumnStrategy {
2012
+ /**
2013
+ * Check if all cells in the column containing the selected cell are head cells.
2014
+ *
2015
+ * @param {(RTETableCellBlock | RTETableHeadCellBlock)[]} selectedCellRange - The range of selected table cell blocks.
2016
+ * @returns {boolean} True if all cells in the column containing the selected cell are head cells, false otherwise.
2017
+ */
2018
+ static isFullHeaderSelection(selectedCellRange) {
2019
+ if (selectedCellRange.length === 0) {
2020
+ return false;
2021
+ }
2022
+ const firstSelectedCell = selectedCellRange[0];
2023
+ const table = getParentBlockByType(firstSelectedCell, RTETableBlock);
2024
+ if (table) {
2025
+ const allTableRows = getAllTableRows(table);
2026
+ const tableGrid = buildTableGrid(allTableRows);
2027
+ const tableCellsById = new Map();
2028
+ allTableRows.forEach((row) => {
2029
+ row.children.forEach((cell) => tableCellsById.set(cell.id, cell));
2030
+ });
2031
+ const [minCol, maxCol] = getSelectedCellsBoundary(selectedCellRange, table, allTableRows, tableGrid);
2032
+ for (const gridRow of tableGrid) {
2033
+ for (let col = minCol; col <= maxCol; col++) {
2034
+ const cell = tableCellsById.get(gridRow[col]);
2035
+ if (cell && !(cell instanceof RTETableHeadCellBlock)) {
2036
+ return false;
2037
+ }
2038
+ }
2039
+ }
2040
+ return true;
2041
+ }
2042
+ return false;
2043
+ }
2044
+ /**
2045
+ * @inheritDoc
2046
+ */
2047
+ handleAction(action, target) {
2048
+ const headerOn = action.headerOn;
2049
+ const allTableRows = getAllTableRows(target);
2050
+ const tableGrid = buildTableGrid(allTableRows);
2051
+ const [minSelectCellCol, maxSelectCellCol] = this.getBoundaryCellColumnRange(action.tableCellHeaderRange, allTableRows, tableGrid);
2052
+ const shouldSplitHeadCells = headerOn || (!headerOn && minSelectCellCol > 0);
2053
+ if (shouldSplitHeadCells) {
2054
+ this.toggleHeadRows(target, allTableRows, tableGrid, headerOn, maxSelectCellCol, minSelectCellCol);
2055
+ }
2056
+ this.toggleBodyRows(target, allTableRows, tableGrid, headerOn, minSelectCellCol, maxSelectCellCol);
2057
+ const root = this.getRootContent(target);
2058
+ if (root && action.tableCellHeaderRange[0].parent) {
2059
+ const focusNode = action.tableCellHeaderRange[0].parent.getFirstNode();
2060
+ focusNode && root.apply(new UpdateCursorPositionAction(focusNode, 0));
2061
+ }
2062
+ }
2063
+ /**
2064
+ * Toggle header cells within existing table-head rows.
2065
+ *
2066
+ * @param {RTETableBlock} table - The target table block.
2067
+ * @param {RTETableRowBlock[]} allTableRows - All table rows in order.
2068
+ * @param {string[][]} tableGrid - Table grid representation.
2069
+ * @param {boolean} headerOn - Whether header mode is being enabled.
2070
+ * @param {number} maxSelectCellCol - Maximum selected logical column.
2071
+ * @param {number} minSelectCellCol - Minimum selected logical column.
2072
+ */
2073
+ toggleHeadRows(table, allTableRows, tableGrid, headerOn, maxSelectCellCol, minSelectCellCol) {
2074
+ var _a;
2075
+ const allTableHeadRows = ((_a = table.children.find((head) => head instanceof RTETableHeadBlock)) === null || _a === void 0 ? void 0 : _a.children) || [];
2076
+ const headRowLength = allTableHeadRows.length;
2077
+ for (let rowIndex = 0; rowIndex < headRowLength; rowIndex++) {
2078
+ const row = allTableRows[rowIndex];
2079
+ const endColIndex = headerOn ? maxSelectCellCol : minSelectCellCol - 1;
2080
+ this.toggleCellType(table, row, tableGrid[rowIndex], 0, endColIndex, () => true, (cell) => RTETableHeadCellBlock.from(cell.toJSON()));
2081
+ }
2082
+ }
2083
+ /**
2084
+ * Toggle header cells within body rows.
2085
+ *
2086
+ * @param {RTETableBlock} table - The target table block.
2087
+ * @param {RTETableRowBlock[]} allTableRows - All table rows in order.
2088
+ * @param {string[][]} tableGrid - Table grid representation.
2089
+ * @param {boolean} headerOn - Whether header mode is being enabled.
2090
+ * @param {number} minSelectCellCol - Minimum selected logical column.
2091
+ * @param {number} maxSelectCellCol - Maximum selected logical column.
2092
+ */
2093
+ toggleBodyRows(table, allTableRows, tableGrid, headerOn, minSelectCellCol, maxSelectCellCol) {
2094
+ var _a;
2095
+ const tableColLength = tableGrid[0].length;
2096
+ const allTableBodyRows = ((_a = table.children.find((body) => body instanceof RTETableBodyBlock)) === null || _a === void 0 ? void 0 : _a.children) || [];
2097
+ const headRowLength = allTableRows.length - allTableBodyRows.length;
2098
+ for (let i = 0; i < allTableBodyRows.length; i++) {
2099
+ const rowIndex = i + headRowLength;
2100
+ const row = allTableRows[rowIndex];
2101
+ const gridRow = tableGrid[rowIndex];
2102
+ const startColIndex = findFirstBodyColIndex(gridRow, row, tableColLength);
2103
+ if (headerOn) {
2104
+ if (startColIndex > -1) {
2105
+ this.toggleCellType(table, row, gridRow, startColIndex, maxSelectCellCol, (cell) => !(cell instanceof RTETableHeadCellBlock), (cell) => RTETableHeadCellBlock.from(cell.toJSON()));
2106
+ }
2107
+ continue;
2108
+ }
2109
+ const lastHeaderCol = startColIndex === -1 ? tableColLength - 1 : startColIndex - 1;
2110
+ this.toggleCellType(table, row, gridRow, minSelectCellCol, lastHeaderCol, (cell) => cell instanceof RTETableHeadCellBlock, (cell) => RTETableCellBlock.from(cell.toJSON()));
2111
+ }
2112
+ }
2113
+ /**
2114
+ * Toggle cell types in a row within a logical column range.
2115
+ *
2116
+ * @param {RTETableBlock} table - The table block containing the target row.
2117
+ * @param {RTETableRowBlock} row - The table row block.
2118
+ * @param {string[]} gridRow - The grid row array.
2119
+ * @param {number} startCol - Start logical column.
2120
+ * @param {number} endCol - End logical column.
2121
+ * @param {(cell: RTETableCellBlock | RTETableHeadCellBlock) => boolean} shouldConvert - Predicate to determine if a cell should be converted.
2122
+ * @param {(cell: RTETableCellBlock | RTETableHeadCellBlock) => RTETableCellBlock | RTETableHeadCellBlock} convert - Function to convert the cell.
2123
+ */
2124
+ toggleCellType(table, row, gridRow, startCol, endCol, shouldConvert, convert) {
2125
+ for (let col = startCol; col <= endCol; col++) {
2126
+ const cellId = gridRow[col];
2127
+ const cell = row.children.find((c) => c.id === cellId);
2128
+ if (cell && shouldConvert(cell)) {
2129
+ const cellStartCol = gridRow.indexOf(cellId);
2130
+ const targetCellType = convert(cell).type;
2131
+ const payload = {
2132
+ table,
2133
+ cell,
2134
+ col,
2135
+ cellStartCol,
2136
+ endCol,
2137
+ targetCellType,
2138
+ };
2139
+ const cellEndCol = cellStartCol + cell.colSpan - 1;
2140
+ const shouldSplit = cellEndCol > endCol || cellStartCol < col;
2141
+ if (shouldSplit) {
2142
+ row.apply(new SplitTableCellAction(payload));
2143
+ if (cellEndCol > endCol) {
2144
+ return;
2145
+ }
2146
+ col = cellEndCol;
2147
+ continue;
2148
+ }
2149
+ row.apply(new ReplaceTableCellAction(payload));
2150
+ }
2151
+ if (cell) {
2152
+ col += cell.colSpan - 1;
2153
+ }
2154
+ }
2155
+ }
2156
+ }
2157
+
2158
+ const DELETE_TABLE_COLUMN = 'DELETE_TABLE_COLUMN';
2159
+ /**
2160
+ * Action to delete a table column
2161
+ */
2162
+ class DeleteTableColumnAction extends ModifyContentAction {
2163
+ constructor(target) {
2164
+ super();
2165
+ this.isFlushable = true;
2166
+ this.type = DELETE_TABLE_COLUMN;
2167
+ this.tableCellDeleteRange = target;
2168
+ }
2169
+ }
2170
+
2171
+ const INSERT_TABLE_COLUMN = 'INSERT_TABLE_COLUMN';
2172
+ var InsertTableColumnDirection;
2173
+ (function (InsertTableColumnDirection) {
2174
+ InsertTableColumnDirection["LEFT"] = "LEFT";
2175
+ InsertTableColumnDirection["RIGHT"] = "RIGHT";
2176
+ })(InsertTableColumnDirection || (InsertTableColumnDirection = {}));
2177
+ /**
2178
+ * Action to insert a table column into the RTETable.
2179
+ */
2180
+ class InsertTableColumnAction extends ModifyContentAction {
2181
+ constructor(insertDirection, tableCellInsertRange) {
2182
+ super();
2183
+ this.isFlushable = true;
2184
+ this.type = INSERT_TABLE_COLUMN;
2185
+ this.tableCellInsertRange = tableCellInsertRange;
2186
+ this.insertDirection = insertDirection;
2187
+ }
2188
+ }
2189
+
2190
+ const SELECT_TABLE_COLUMN = 'SELECT_TABLE_COLUMN';
2191
+ /**
2192
+ * Action to select a table column into the RTETable.
2193
+ */
2194
+ class SelectTableColumnAction extends ModifyContentAction {
2195
+ constructor(tableCellSelectRange, selectCellCallback) {
2196
+ super();
2197
+ this.type = SELECT_TABLE_COLUMN;
2198
+ this.tableCellSelectRange = tableCellSelectRange;
2199
+ this.selectCellCallback = selectCellCallback;
2200
+ }
2201
+ }
2202
+
2203
+ const TOGGLE_HEADER_TABLE_COLUMN = 'TOGGLE_HEADER_TABLE_COLUMN';
2204
+ /**
2205
+ * Action to toggle header state of a table column in the RTETable.
2206
+ */
2207
+ class ToggleHeaderTableColumnAction extends ModifyContentAction {
2208
+ constructor(tableCellHeaderRange, headerOn) {
2209
+ super();
2210
+ this.isFlushable = true;
2211
+ this.type = TOGGLE_HEADER_TABLE_COLUMN;
2212
+ this.headerOn = false;
2213
+ this.tableCellHeaderRange = tableCellHeaderRange;
2214
+ this.headerOn = headerOn;
2215
+ }
2216
+ }
2217
+
2218
+ var ColumnOperationType;
2219
+ (function (ColumnOperationType) {
2220
+ ColumnOperationType["HEADER_COLUMN"] = "HEADER_COLUMN";
2221
+ ColumnOperationType["ADD_COLUMN_LEFT"] = "ADD_COLUMN_LEFT";
2222
+ ColumnOperationType["ADD_COLUMN_RIGHT"] = "ADD_COLUMN_RIGHT";
2223
+ ColumnOperationType["DELETE_COLUMN"] = "DELETE_COLUMN";
2224
+ ColumnOperationType["SELECT_COLUMN"] = "SELECT_COLUMN";
2225
+ })(ColumnOperationType || (ColumnOperationType = {}));
2226
+ /**
2227
+ * Event handler for column operations in a table.
2228
+ */
2229
+ class ColumnOperationEventHandler extends SettingEventHandler {
2230
+ /**
2231
+ * @inheritDoc
2232
+ */
2233
+ canHandle(action) {
2234
+ return action[0] === TableSettingType.COLUMN;
2235
+ }
2236
+ /**
2237
+ * @inheritDoc
2238
+ */
2239
+ execute(action, extensionContext) {
2240
+ const selectedCells = extensionContext.tableSelection.getSelectedCells();
2241
+ if (!selectedCells || selectedCells.length === 0) {
2242
+ return;
2243
+ }
2244
+ const operation = action[1];
2245
+ switch (operation) {
2246
+ case ColumnOperationType.ADD_COLUMN_LEFT:
2247
+ case ColumnOperationType.ADD_COLUMN_RIGHT:
2248
+ this.handleInsertColumn(operation, selectedCells);
2249
+ break;
2250
+ case ColumnOperationType.DELETE_COLUMN:
2251
+ this.handleDeleteColumn(selectedCells);
2252
+ break;
2253
+ case ColumnOperationType.SELECT_COLUMN:
2254
+ this.handleSelectColumn(selectedCells, extensionContext);
2255
+ break;
2256
+ case ColumnOperationType.HEADER_COLUMN:
2257
+ this.handleToggleHeaderColumn(selectedCells);
2258
+ break;
2259
+ }
2260
+ }
2261
+ /**
2262
+ * Adds a new column to the table at the specified position.
2263
+ *
2264
+ * @param {ColumnOperationType} direction - The position to insert the new column (left or right).
2265
+ * @param {RTETableCellBlock[] | RTETableHeadCellBlock[]} selectedCells - The selected table cells.
2266
+ */
2267
+ handleInsertColumn(direction, selectedCells) {
2268
+ const action = new InsertTableColumnAction(direction === ColumnOperationType.ADD_COLUMN_LEFT
2269
+ ? InsertTableColumnDirection.LEFT
2270
+ : InsertTableColumnDirection.RIGHT, selectedCells);
2271
+ this.applyActionOnTable(action, selectedCells[0]);
2272
+ }
2273
+ /**
2274
+ * Deletes the selected column from the table.
2275
+ *
2276
+ * @param {RTETableCellBlock[] | RTETableHeadCellBlock[]} selectedCells - The selected table cells.
2277
+ */
2278
+ handleDeleteColumn(selectedCells) {
2279
+ const action = new DeleteTableColumnAction(selectedCells);
2280
+ this.applyActionOnTable(action, selectedCells[0]);
2281
+ }
2282
+ /**
2283
+ * Selects the entire column in the table.
2284
+ *
2285
+ * @param {RTETableCellBlock[] | RTETableHeadCellBlock[]} selectedCells - The selected table cells.
2286
+ * @param {RTETableExtensionContext} extensionContext - The table extension context.
2287
+ */
2288
+ handleSelectColumn(selectedCells, extensionContext) {
2289
+ const action = new SelectTableColumnAction(selectedCells, (allSelectedCells) => {
2290
+ extensionContext.tableSelection.setSelectedCells(allSelectedCells);
2291
+ });
2292
+ this.applyActionOnTable(action, selectedCells[0]);
2293
+ }
2294
+ /**
2295
+ * Toggles the header state of the selected column in the table.
2296
+ *
2297
+ * @param {RTETableCellBlock[] | RTETableHeadCellBlock[]} selectedCells - The selected table cells.
2298
+ */
2299
+ handleToggleHeaderColumn(selectedCells) {
2300
+ const headerOn = !ToggleHeaderTableColumnStrategy.isFullHeaderSelection(selectedCells);
2301
+ const action = new ToggleHeaderTableColumnAction(selectedCells, headerOn);
2302
+ this.applyActionOnTable(action, selectedCells[0]);
2303
+ }
2304
+ /**
2305
+ * Apply the specified action on the table containing the selected cell.
2306
+ *
2307
+ * @param {DeleteTableColumnAction | InsertTableColumnAction} action - The action to apply.
2308
+ * @param {RTETableCellBlock | RTETableHeadCellBlock} selectedCell - The selected table cell.
2309
+ */
2310
+ applyActionOnTable(action, selectedCell) {
2311
+ const table = getParentBlockByType(selectedCell, RTETableBlock);
2312
+ if (table) {
2313
+ table.apply(action);
2314
+ }
2315
+ }
2316
+ }
2317
+
2318
+ const SPLIT_CELL_HORIZONTALLY = 'SPLIT_CELL_HORIZONTALLY';
2319
+ /**
2320
+ * Action to split a table cell horizontally.
2321
+ */
2322
+ class SplitCellHorizontallyAction extends ModifyContentAction {
2323
+ constructor() {
2324
+ super();
2325
+ this.isFlushable = true;
2326
+ this.type = SPLIT_CELL_HORIZONTALLY;
2327
+ }
2328
+ }
2329
+
2330
+ const SPLIT_CELL_VERTICALLY = 'SPLIT_CELL_VERTICALLY';
2331
+ /**
2332
+ * Action to split a table cell vertically.
2333
+ */
2334
+ class SplitCellVerticallyAction extends ModifyContentAction {
2335
+ constructor() {
2336
+ super();
2337
+ this.isFlushable = true;
2338
+ this.type = SPLIT_CELL_VERTICALLY;
2339
+ }
2340
+ }
2341
+
2342
+ var SplitCellOperationType;
2343
+ (function (SplitCellOperationType) {
2344
+ SplitCellOperationType["SPLIT_CELL_HORIZONTALLY"] = "SPLIT_CELL_HORIZONTALLY";
2345
+ SplitCellOperationType["SPLIT_CELL_VERTICALLY"] = "SPLIT_CELL_VERTICALLY";
2346
+ })(SplitCellOperationType || (SplitCellOperationType = {}));
2347
+ /**
2348
+ * Event handler for split cell operations in a table.
2349
+ */
2350
+ class SplitCellOperationEventHandler extends SettingEventHandler {
2351
+ /**
2352
+ * @inheritDoc
2353
+ */
2354
+ canHandle(action) {
2355
+ return action[0] === TableSettingType.SPLIT_CELL;
2356
+ }
2357
+ /**
2358
+ * @inheritDoc
2359
+ */
2360
+ execute(action, extensionContext) {
2361
+ const selectedCells = extensionContext.tableSelection.getSelectedCells();
2362
+ if (selectedCells && selectedCells.length === 1) {
2363
+ const targetCell = selectedCells[0];
2364
+ const operation = action[1];
2365
+ switch (operation) {
2366
+ case SplitCellOperationType.SPLIT_CELL_HORIZONTALLY:
2367
+ this.handleSplitCellHorizontally(targetCell);
2368
+ break;
2369
+ case SplitCellOperationType.SPLIT_CELL_VERTICALLY:
2370
+ this.handleSplitCellVertically(targetCell);
2371
+ break;
2372
+ }
2373
+ }
2374
+ }
2375
+ /**
2376
+ * Splits the selected table cell horizontally (split top/bottom).
2377
+ *
2378
+ * @param {RTETableCellBlock | RTETableHeadCellBlock} selectedCell - The table cell block to split.
2379
+ */
2380
+ handleSplitCellHorizontally(selectedCell) {
2381
+ const action = new SplitCellHorizontallyAction();
2382
+ selectedCell.apply(action);
2383
+ }
2384
+ /**
2385
+ * Splits the selected table cell vertically (split left/right).
2386
+ *
2387
+ * @param {RTETableCellBlock | RTETableHeadCellBlock} selectedCell - The table cell block to split.
2388
+ */
2389
+ handleSplitCellVertically(selectedCell) {
2390
+ const action = new SplitCellVerticallyAction();
2391
+ selectedCell.apply(action);
2392
+ }
2393
+ }
2394
+
2395
+ export { getSelectedCellsBoundary as $, RTETableRowBlock as A, getActualColumnPosition as B, ColumnOperationEventHandler as C, InsertTableRowDirection as D, RTE_TABLE_DEFAULT_COLORS as E, INSERT_TABLE_ROW_INTO_DIFFERENT_SECTION as F, INSERT_TABLE_ROW_INTO_SAME_SECTION as G, DELETE_TABLE_ROW as H, InsertTableColumnDirection as I, TOGGLE_HEADER_ROW as J, INSERT_TABLE_COLUMN as K, DELETE_TABLE_COLUMN as L, MergeCellsOperationEventHandler as M, TOGGLE_HEADER_TABLE_COLUMN as N, ToggleHeaderTableColumnStrategy as O, SPLIT_TABLE_CELL as P, REPLACE_TABLE_CELL as Q, RTETableExtensionAnnotationTypeEnum as R, SettingEventHandler as S, TableSettingType as T, SPLIT_CELL_HORIZONTALLY as U, VegaThemeManager as V, SPLIT_CELL_VERTICALLY as W, SELECT_TABLE_COLUMN as X, MERGE_CELLS as Y, RTE_TABLE_BORDER_STYLES as Z, ColumnOperationType as _, RTE_TABLE_HEAD_DEFAULT_BACKGROUND_COLOR as a, RowOperationType as a0, SplitCellOperationType as a1, isRectangularSelection as a2, getAdjacentCell as a3, RowOperationEventHandler as b, SplitCellOperationEventHandler as c, RTETableAnnotation as d, RTETableCellAnnotation as e, RTETableHeadCellBlock as f, RTETableColorManager as g, RTETableBlock as h, generateTableBody as i, RTETableCellBlock as j, RTETableHeadBlock as k, RTETableBodyBlock as l, getParentBlockByType as m, RTETableHeadCellAnnotation as n, TableColumnStrategy as o, getAllTableRows as p, buildTableGrid as q, findCellBlockById as r, setSpanAttributes as s, getDefaultCellBlockTemplate as t, buildCellStartColumnMap as u, getTableColumnCount as v, getFirstNode as w, getCellSpan as x, createNewCell as y, MergeCellsOperationType as z };