@heartlandone/vega 2.75.0-RTE-table-preview → 2.75.1

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 (639) hide show
  1. package/dist/cjs/{app-globals-6c9a0e62.js → app-globals-35614ce8.js} +17 -19
  2. package/dist/cjs/{code-block-d9001f03.js → code-block-c1d2e6a8.js} +3 -34
  3. package/dist/cjs/{component-value-history-controller-slimmer.abstract-b00e9f58.js → component-value-history-controller-slimmer.abstract-787c67dc.js} +5 -26
  4. package/dist/cjs/{design-token-a569577e.js → design-token-bb39e07e.js} +1 -1
  5. package/dist/cjs/{content-state-466f277f.js → dto-renderer-manager-03e1a038.js} +255 -37
  6. package/dist/cjs/{element-appender-slimmer-b7fdd82e.js → element-appender-slimmer-daa8b9f5.js} +6 -6
  7. package/dist/cjs/{form-field-controller-slimmer-3ea2464a.js → form-field-controller-slimmer-aef2fb1e.js} +2 -2
  8. package/dist/cjs/function-extension-cfbbc57e.js +2927 -0
  9. package/dist/cjs/{image-annotation-action-4435d531.js → image-annotation-action-3fa501b7.js} +31 -3
  10. package/dist/cjs/index-58ea899e.js +0 -4
  11. package/dist/cjs/{index-19e5b936.js → index-95fca64f.js} +1 -1
  12. package/dist/cjs/index.cjs.js +43 -48
  13. package/dist/cjs/{language-extension-26331915.js → language-extension-8c4a56ff.js} +8 -8
  14. package/dist/cjs/loader.cjs.js +13 -18
  15. package/dist/cjs/{public-rules-942bd931.js → public-rules-dc2a8d62.js} +4 -4
  16. package/dist/cjs/{range-cafe69a9.js → range-79b668e7.js} +1 -1
  17. package/dist/cjs/{responsive-format-facade-6c22bbbd.js → responsive-format-facade-d5dba942.js} +3 -4
  18. package/dist/cjs/{rich-text-editor-required-rule-0dcb08c8.js → rich-text-editor-required-rule-ba312af9.js} +2 -2
  19. package/dist/cjs/{string-input-formatter-slimmer-655d0322.js → string-input-formatter-slimmer-f3e0bbc7.js} +2 -2
  20. package/dist/cjs/{style-formatter-0e0ae896.js → style-formatter-49693da7.js} +1 -1
  21. package/dist/cjs/{sub-state-notify-slimmer-3fa87162.js → sub-state-notify-slimmer-468e19aa.js} +1 -1
  22. package/dist/cjs/{sub-state-observer-slimmer-77deba40.js → sub-state-observer-slimmer-5d0b8ac3.js} +1 -1
  23. package/dist/cjs/vega-accordion.cjs.entry.js +8 -12
  24. package/dist/cjs/vega-app-header-button.cjs.entry.js +8 -12
  25. package/dist/cjs/vega-box.cjs.entry.js +10 -14
  26. package/dist/cjs/vega-button-circle.cjs.entry.js +8 -12
  27. package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
  28. package/dist/cjs/vega-button.cjs.entry.js +7 -11
  29. package/dist/cjs/vega-calendar_4.cjs.entry.js +3 -3
  30. package/dist/cjs/vega-card.cjs.entry.js +10 -14
  31. package/dist/cjs/vega-carousel.cjs.entry.js +7 -11
  32. package/dist/cjs/vega-checkbox_2.cjs.entry.js +3 -3
  33. package/dist/cjs/vega-chip.cjs.entry.js +8 -12
  34. package/dist/cjs/vega-code-block.cjs.entry.js +4 -4
  35. package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
  36. package/dist/cjs/vega-combo-box.cjs.entry.js +3 -3
  37. package/dist/cjs/vega-date-picker_2.cjs.entry.js +13 -17
  38. package/dist/cjs/vega-dialog_2.cjs.entry.js +16 -20
  39. package/dist/cjs/vega-divider.cjs.entry.js +11 -15
  40. package/dist/cjs/vega-dropdown_5.cjs.entry.js +11 -14
  41. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  42. package/dist/cjs/vega-file-uploader.cjs.entry.js +3 -3
  43. package/dist/cjs/vega-flag-icon.cjs.entry.js +9 -13
  44. package/dist/cjs/vega-flex.cjs.entry.js +11 -15
  45. package/dist/cjs/vega-font.cjs.entry.js +10 -14
  46. package/dist/cjs/vega-form.cjs.entry.js +4 -4
  47. package/dist/cjs/vega-grid.cjs.entry.js +10 -14
  48. package/dist/cjs/vega-icon.cjs.entry.js +10 -14
  49. package/dist/cjs/vega-image-uploader.cjs.entry.js +10 -14
  50. package/dist/cjs/vega-input-credit-card.cjs.entry.js +3 -3
  51. package/dist/cjs/vega-input-numeric.cjs.entry.js +4 -4
  52. package/dist/cjs/vega-input-passcode.cjs.entry.js +3 -3
  53. package/dist/cjs/vega-input-phone-number.cjs.entry.js +8 -12
  54. package/dist/cjs/vega-input-range.cjs.entry.js +3 -3
  55. package/dist/cjs/vega-input-select.cjs.entry.js +9 -12
  56. package/dist/cjs/vega-input.cjs.entry.js +5 -5
  57. package/dist/cjs/{vega-internal-event-id-73334b4b.js → vega-internal-event-id-f2465f1b.js} +0 -4
  58. package/dist/cjs/vega-left-nav_5.cjs.entry.js +13 -17
  59. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +14 -18
  60. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +1 -1
  61. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +1 -1
  62. package/dist/cjs/vega-pagination.cjs.entry.js +8 -12
  63. package/dist/cjs/vega-popover_2.cjs.entry.js +9 -13
  64. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +8 -12
  65. package/dist/cjs/vega-radio_2.cjs.entry.js +3 -3
  66. package/dist/cjs/vega-rich-text-content.cjs.entry.js +18 -16
  67. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +287 -192
  68. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +10 -14
  69. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +4 -4
  70. package/dist/cjs/vega-sidenav_3.cjs.entry.js +15 -19
  71. package/dist/cjs/vega-signature-capture.cjs.entry.js +10 -14
  72. package/dist/cjs/vega-stepper.cjs.entry.js +3 -3
  73. package/dist/cjs/vega-table_11.cjs.entry.js +14 -17
  74. package/dist/cjs/vega-textarea.cjs.entry.js +3 -3
  75. package/dist/cjs/vega-time-picker_2.cjs.entry.js +9 -13
  76. package/dist/cjs/vega-toggle-switch.cjs.entry.js +3 -3
  77. package/dist/cjs/vega-tooltip_2.cjs.entry.js +10 -14
  78. package/dist/cjs/vega.cjs.js +13 -18
  79. package/dist/collection/collection-manifest.json +0 -10
  80. package/dist/collection/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.js +0 -1
  81. package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.js +1 -9
  82. package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.js +0 -10
  83. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +2 -24
  84. package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +16 -0
  85. package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +3 -22
  86. package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +10 -0
  87. package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +1 -2
  88. package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +1 -18
  89. package/dist/collection/components/vega-rich-text-editor/public-api.js +0 -1
  90. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +0 -20
  91. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.js +0 -10
  92. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner.js +59 -0
  93. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/index.js +4 -0
  94. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-after-opening-tag-processor.js +21 -0
  95. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-before-closing-tag-processor.js +21 -0
  96. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-between-tags-processor.js +77 -0
  97. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +2 -23
  98. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/text-node-color-controller.js +51 -0
  99. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/text-node-rendering-registry.js +26 -0
  100. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/html-block.test.js +39 -0
  101. package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +166 -253
  102. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/html-content-cleaner.test.js +186 -0
  103. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-after-opening-tag-processor.test.js +22 -0
  104. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-before-closing-tag-processor.test.js +22 -0
  105. package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-between-tags-processor.test.js +26 -0
  106. package/dist/collection/components/vega-rich-text-editor/test/spec-utils.js +2 -5
  107. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.css +0 -4
  108. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +5 -0
  109. package/dist/collection/global/scripts/before-vega-load.js +0 -2
  110. package/dist/collection/helpers/code-format/code-formatter.js +57 -7
  111. package/dist/collection/helpers/code-format/test/code-formatter.test.js +48 -0
  112. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +0 -2
  113. package/dist/collection/utils/spec-utils.js +3 -4
  114. package/dist/esm/{app-globals-4146c01c.js → app-globals-2ac60ff5.js} +6 -8
  115. package/dist/esm/{child-nodes-event-prevent-slimmer-225e7b58.js → child-nodes-event-prevent-slimmer-e662bee2.js} +1 -1
  116. package/dist/esm/{code-block-36393b45.js → code-block-8ee34ab6.js} +5 -36
  117. package/dist/esm/{component-value-history-controller-slimmer.abstract-82339b2b.js → component-value-history-controller-slimmer.abstract-a61bf821.js} +6 -27
  118. package/dist/esm/{design-token-c57a58b4.js → design-token-007efbaa.js} +1 -1
  119. package/dist/esm/{dom-node-subject-observer-factory-d4e16f66.js → dom-node-subject-observer-factory-064ee2b2.js} +1 -1
  120. package/dist/esm/{content-state-e8ef033a.js → dto-renderer-manager-ee1a5864.js} +256 -36
  121. package/dist/esm/{element-appender-slimmer-a7341fc1.js → element-appender-slimmer-35e26b5a.js} +4 -4
  122. package/dist/esm/{event-emit-slimmer-1bb4b533.js → event-emit-slimmer-09827cec.js} +2 -2
  123. package/dist/esm/{form-field-controller-slimmer-907bf7c2.js → form-field-controller-slimmer-5d9dc384.js} +3 -3
  124. package/dist/esm/function-extension-e8c0e43e.js +2908 -0
  125. package/dist/esm/{image-annotation-action-82cef6e4.js → image-annotation-action-285d432e.js} +31 -4
  126. package/dist/esm/index-090d31ca.js +0 -4
  127. package/dist/esm/{index-2466b0c0.js → index-51a7da7f.js} +2 -2
  128. package/dist/esm/index.js +18 -22
  129. package/dist/esm/{internal-vega-event-manager-2cbb828a.js → internal-vega-event-manager-efb6786e.js} +1 -1
  130. package/dist/esm/{language-extension-dcc43702.js → language-extension-29bf8acd.js} +2 -2
  131. package/dist/esm/loader.js +13 -18
  132. package/dist/esm/polyfills/core-js.js +0 -0
  133. package/dist/esm/polyfills/dom.js +0 -0
  134. package/dist/esm/polyfills/es5-html-element.js +0 -0
  135. package/dist/esm/polyfills/index.js +0 -0
  136. package/dist/esm/polyfills/system.js +0 -0
  137. package/dist/esm/{public-rules-b8ea651f.js → public-rules-724873f5.js} +5 -5
  138. package/dist/esm/{range-872aad9f.js → range-5257c062.js} +1 -1
  139. package/dist/esm/{responsive-format-facade-9278eae4.js → responsive-format-facade-28ee2dbd.js} +3 -4
  140. package/dist/esm/{rich-text-editor-required-rule-36dd4242.js → rich-text-editor-required-rule-873e2e67.js} +1 -1
  141. package/dist/esm/{string-input-formatter-slimmer-7a1e8754.js → string-input-formatter-slimmer-ee32b1fd.js} +3 -3
  142. package/dist/esm/{style-formatter-e937952a.js → style-formatter-314b37f3.js} +1 -1
  143. package/dist/esm/{sub-state-notify-slimmer-2ecdba12.js → sub-state-notify-slimmer-4453047a.js} +2 -2
  144. package/dist/esm/{sub-state-observer-slimmer-2d5dba8d.js → sub-state-observer-slimmer-202ec7dc.js} +2 -2
  145. package/dist/esm/vega-accordion.entry.js +10 -14
  146. package/dist/esm/vega-app-header-button.entry.js +11 -15
  147. package/dist/esm/vega-banner.entry.js +3 -3
  148. package/dist/esm/vega-box.entry.js +11 -15
  149. package/dist/esm/vega-breadcrumb.entry.js +4 -4
  150. package/dist/esm/vega-button-circle.entry.js +11 -15
  151. package/dist/esm/vega-button-group_2.entry.js +7 -7
  152. package/dist/esm/vega-button-link.entry.js +4 -4
  153. package/dist/esm/vega-button.entry.js +10 -14
  154. package/dist/esm/vega-calendar_4.entry.js +7 -7
  155. package/dist/esm/vega-card.entry.js +10 -14
  156. package/dist/esm/vega-carousel.entry.js +9 -13
  157. package/dist/esm/vega-checkbox_2.entry.js +7 -7
  158. package/dist/esm/vega-chip.entry.js +11 -15
  159. package/dist/esm/vega-code-block.entry.js +8 -8
  160. package/dist/esm/vega-color-picker.entry.js +6 -6
  161. package/dist/esm/vega-combo-box.entry.js +7 -7
  162. package/dist/esm/vega-date-picker_2.entry.js +17 -21
  163. package/dist/esm/vega-dialog_2.entry.js +13 -17
  164. package/dist/esm/vega-divider.entry.js +11 -15
  165. package/dist/esm/vega-dropdown_5.entry.js +14 -17
  166. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  167. package/dist/esm/vega-field-label.entry.js +3 -3
  168. package/dist/esm/vega-file-uploader.entry.js +6 -6
  169. package/dist/esm/vega-flag-icon.entry.js +9 -13
  170. package/dist/esm/vega-flex.entry.js +11 -15
  171. package/dist/esm/vega-font.entry.js +10 -14
  172. package/dist/esm/vega-form.entry.js +8 -8
  173. package/dist/esm/vega-grid.entry.js +10 -14
  174. package/dist/esm/vega-icon.entry.js +10 -14
  175. package/dist/esm/vega-image-uploader.entry.js +13 -17
  176. package/dist/esm/vega-input-credit-card.entry.js +7 -7
  177. package/dist/esm/vega-input-numeric.entry.js +8 -8
  178. package/dist/esm/vega-input-passcode.entry.js +7 -7
  179. package/dist/esm/vega-input-phone-number.entry.js +12 -16
  180. package/dist/esm/vega-input-range.entry.js +7 -7
  181. package/dist/esm/vega-input-select.entry.js +12 -15
  182. package/dist/esm/vega-input.entry.js +8 -8
  183. package/dist/esm/{vega-internal-event-id-3edc9b4e.js → vega-internal-event-id-4a06d705.js} +1 -3
  184. package/dist/esm/vega-item-toggle.entry.js +3 -3
  185. package/dist/esm/vega-left-nav_5.entry.js +12 -16
  186. package/dist/esm/vega-loader-wrapper_2.entry.js +12 -16
  187. package/dist/esm/vega-page-notification_2.entry.js +1 -1
  188. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +4 -4
  189. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
  190. package/dist/esm/vega-pagination.entry.js +12 -16
  191. package/dist/esm/vega-popover_2.entry.js +12 -16
  192. package/dist/esm/vega-progress-tracker_2.entry.js +11 -15
  193. package/dist/esm/vega-radio_2.entry.js +7 -7
  194. package/dist/esm/vega-rich-text-content.entry.js +17 -15
  195. package/dist/esm/vega-rich-text-editor_4.entry.js +269 -174
  196. package/dist/esm/vega-segment-control.entry.js +3 -3
  197. package/dist/esm/vega-selection-chip_2.entry.js +13 -17
  198. package/dist/esm/vega-selection-tile_2.entry.js +8 -8
  199. package/dist/esm/vega-sidenav_3.entry.js +14 -18
  200. package/dist/esm/vega-signature-capture.entry.js +12 -16
  201. package/dist/esm/vega-stepper.entry.js +7 -7
  202. package/dist/esm/vega-tab-group_2.entry.js +4 -4
  203. package/dist/esm/vega-table_11.entry.js +12 -15
  204. package/dist/esm/vega-textarea.entry.js +7 -7
  205. package/dist/esm/vega-time-picker_2.entry.js +12 -16
  206. package/dist/esm/vega-toggle-switch.entry.js +6 -6
  207. package/dist/esm/vega-tooltip_2.entry.js +11 -15
  208. package/dist/esm/vega.js +13 -18
  209. package/dist/sri/vega-sri-manifest.json +301 -317
  210. package/dist/types/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.d.ts +0 -1
  211. package/dist/types/components/vega-rich-text-content/vega-rich-text-content.d.ts +0 -3
  212. package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.d.ts +0 -7
  213. package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation.abstract.d.ts +5 -2
  214. package/dist/types/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.d.ts +3 -3
  215. package/dist/types/components/vega-rich-text-editor/dto/annotations/custom-attribute-annotation.d.ts +1 -1
  216. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +6 -10
  217. package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +10 -0
  218. package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.d.ts +2 -0
  219. package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +2 -15
  220. package/dist/types/components/vega-rich-text-editor/interface.d.ts +2 -34
  221. package/dist/types/components/vega-rich-text-editor/public-api.d.ts +0 -1
  222. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/extension-controller.d.ts +0 -4
  223. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.d.ts +0 -9
  224. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner-processor.interface.d.ts +13 -0
  225. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner.d.ts +35 -0
  226. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/index.d.ts +4 -0
  227. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-after-opening-tag-processor.d.ts +19 -0
  228. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-before-closing-tag-processor.d.ts +19 -0
  229. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-between-tags-processor.d.ts +59 -0
  230. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +6 -19
  231. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/text-node-color-controller.d.ts +22 -0
  232. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/text-node-rendering-registry.d.ts +22 -0
  233. package/dist/types/components/vega-rich-text-editor/test/spec-utils.d.ts +0 -4
  234. package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +2 -0
  235. package/dist/types/components.d.ts +1 -138
  236. package/dist/types/helpers/code-format/code-formatter.d.ts +14 -0
  237. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +0 -2
  238. package/dist/types/types/components.type.d.ts +0 -4
  239. package/dist/types/utils/spec-utils.d.ts +1 -2
  240. package/dist/vega/index.esm.js +1 -1
  241. package/dist/vega/{p-3a6ff599.entry.js → p-011b94b1.entry.js} +1 -1
  242. package/dist/vega/p-012753b5.entry.js +1 -0
  243. package/dist/vega/p-024331ce.entry.js +1 -0
  244. package/dist/vega/{p-29f6b2d5.js → p-0575d22e.js} +1 -1
  245. package/dist/vega/p-08a90cc6.entry.js +1 -0
  246. package/dist/vega/p-0ede1fea.entry.js +1 -0
  247. package/dist/vega/{p-e1de1cdc.js → p-1298b126.js} +1 -1
  248. package/dist/vega/{p-9c624e03.entry.js → p-17c55205.entry.js} +1 -1
  249. package/dist/vega/p-3353b3d7.js +1 -0
  250. package/dist/vega/p-365b1b35.entry.js +1 -0
  251. package/dist/vega/p-3ae9ee3d.entry.js +1 -0
  252. package/dist/vega/p-3af92370.entry.js +1 -0
  253. package/dist/vega/p-3bf66be2.js +1 -0
  254. package/dist/vega/{p-e7cfb6b6.entry.js → p-3c5a28e4.entry.js} +1 -1
  255. package/dist/vega/p-430be941.js +1 -0
  256. package/dist/vega/{p-fdebc47f.entry.js → p-43f585f7.entry.js} +1 -1
  257. package/dist/vega/p-45296fd4.entry.js +1 -0
  258. package/dist/vega/p-491618a6.entry.js +1 -0
  259. package/dist/vega/{p-c5e7035b.entry.js → p-4a537391.entry.js} +1 -1
  260. package/dist/vega/p-4aa893ef.entry.js +1 -0
  261. package/dist/vega/p-4c47e8bb.entry.js +1 -0
  262. package/dist/vega/{p-d907f8a2.js → p-4da75f2b.js} +1 -1
  263. package/dist/vega/{p-60483e3d.entry.js → p-509eb52e.entry.js} +1 -1
  264. package/dist/vega/p-5110ba73.entry.js +1 -0
  265. package/dist/vega/p-556f9a21.entry.js +1 -0
  266. package/dist/vega/p-55b54ba0.entry.js +1 -0
  267. package/dist/vega/p-5b71c85e.js +1 -0
  268. package/dist/vega/p-5ea2e43c.entry.js +1 -0
  269. package/dist/vega/p-5efc6fe1.entry.js +1 -0
  270. package/dist/vega/p-5f377954.js +1 -1
  271. package/dist/vega/p-64cd1931.entry.js +1 -0
  272. package/dist/vega/{p-c841be8d.js → p-66fa700b.js} +1 -1
  273. package/dist/vega/{p-2c830cba.entry.js → p-67fcf6f2.entry.js} +1 -1
  274. package/dist/vega/{p-61ddae59.js → p-68df4288.js} +1 -1
  275. package/dist/vega/{p-5fdb9047.js → p-691ba1ae.js} +1 -1
  276. package/dist/vega/{p-87764570.entry.js → p-6a2205a1.entry.js} +1 -1
  277. package/dist/vega/{p-18560714.entry.js → p-6a4277df.entry.js} +1 -1
  278. package/dist/vega/{p-20010bd6.js → p-6e136980.js} +1 -1
  279. package/dist/vega/p-6f8be8ea.js +1 -0
  280. package/dist/vega/p-6fa8e231.entry.js +1 -0
  281. package/dist/vega/{p-585edae4.entry.js → p-7045e84c.entry.js} +1 -1
  282. package/dist/vega/{p-22989693.js → p-7288f8c4.js} +1 -1
  283. package/dist/vega/{p-85bfa0f7.js → p-749f96a4.js} +1 -1
  284. package/dist/vega/{p-e819940c.js → p-77edf50c.js} +1 -1
  285. package/dist/vega/p-7aaece55.entry.js +1 -0
  286. package/dist/vega/p-7ec6a104.entry.js +1 -0
  287. package/dist/vega/{p-01dc2e48.entry.js → p-81134e9e.entry.js} +1 -1
  288. package/dist/vega/p-89d685a8.js +1 -0
  289. package/dist/vega/{p-6e4e7192.entry.js → p-8c0eb12f.entry.js} +1 -1
  290. package/dist/vega/{p-11a6c1b7.js → p-8d0ca805.js} +1 -1
  291. package/dist/vega/p-8d701832.entry.js +1 -0
  292. package/dist/vega/{p-4f4c7593.entry.js → p-8e42a14c.entry.js} +1 -1
  293. package/dist/vega/p-8ed0faa2.entry.js +1 -0
  294. package/dist/vega/{p-849f78a7.entry.js → p-94394df7.entry.js} +1 -1
  295. package/dist/vega/p-99aa554b.entry.js +1 -0
  296. package/dist/vega/p-9a2446f1.entry.js +1 -0
  297. package/dist/vega/p-a475d525.entry.js +1 -0
  298. package/dist/vega/{p-bccaf3d2.entry.js → p-a530797f.entry.js} +1 -1
  299. package/dist/vega/{p-76d144f5.entry.js → p-a85ad369.entry.js} +1 -1
  300. package/dist/vega/p-ac5e9955.entry.js +1 -0
  301. package/dist/vega/{p-9472d19a.js → p-aedf7146.js} +1 -1
  302. package/dist/vega/p-b1f869fb.js +1 -0
  303. package/dist/vega/{p-b5b75a2f.entry.js → p-bb4a558d.entry.js} +1 -1
  304. package/dist/vega/{p-0bf4a3a7.entry.js → p-bb8339ed.entry.js} +1 -1
  305. package/dist/vega/{p-28e630b2.entry.js → p-be930e85.entry.js} +1 -1
  306. package/dist/vega/p-bf2bd6d0.entry.js +1 -0
  307. package/dist/vega/p-c2488ed6.js +1 -0
  308. package/dist/vega/{p-4c36b528.entry.js → p-c379a5a5.entry.js} +1 -1
  309. package/dist/vega/{p-89083d63.js → p-c9b6b5a9.js} +1 -1
  310. package/dist/vega/{p-61145506.entry.js → p-ca3472c1.entry.js} +1 -1
  311. package/dist/vega/p-cc43bffb.js +1 -0
  312. package/dist/vega/p-cf5b80f9.entry.js +1 -0
  313. package/dist/vega/p-db60a38e.entry.js +1 -0
  314. package/dist/vega/p-e93545fd.js +1 -0
  315. package/dist/vega/{p-77c9949d.entry.js → p-e9c4fd24.entry.js} +1 -1
  316. package/dist/vega/{p-326b5392.entry.js → p-eb60cfe1.entry.js} +1 -1
  317. package/dist/vega/p-ec192283.entry.js +1 -0
  318. package/dist/vega/p-f2a3a1ec.entry.js +1 -0
  319. package/dist/vega/p-f2cdd212.entry.js +1 -0
  320. package/dist/vega/{p-4ecf0ee7.entry.js → p-f3c3ff26.entry.js} +1 -1
  321. package/dist/vega/p-f4c05b4a.entry.js +1 -0
  322. package/dist/vega/{p-228784f7.entry.js → p-f52a0155.entry.js} +1 -1
  323. package/dist/vega/p-f8641214.entry.js +1 -0
  324. package/dist/vega/p-f89443aa.entry.js +1 -0
  325. package/dist/vega/{p-de850e98.entry.js → p-f8f7cf48.entry.js} +1 -1
  326. package/dist/vega/{p-3532aa12.js → p-fe12eff6.js} +1 -1
  327. package/dist/vega/vega.esm.js +1 -1
  328. package/package.json +1 -1
  329. package/dist/cjs/align-left-4a76df69.js +0 -22
  330. package/dist/cjs/dto-renderer-manager-ae5fcbba.js +0 -58
  331. package/dist/cjs/split-cell-operation-9930fde8.js +0 -2133
  332. package/dist/cjs/table-extension-5f27207f.js +0 -6321
  333. package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +0 -1521
  334. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-children-remove-interceptor.js +0 -42
  335. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-content-delete-interceptor.js +0 -26
  336. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-row-insert-interceptor.js +0 -23
  337. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-block-strategy.js +0 -25
  338. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-column-strategy.js +0 -57
  339. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.js +0 -57
  340. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-block-strategy.js +0 -54
  341. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-column-strategy.js +0 -42
  342. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-strategy.js +0 -163
  343. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/merge-cells-strategy.js +0 -120
  344. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/select-table-column-strategy.js +0 -22
  345. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-cell-horizontally-strategy.js +0 -143
  346. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-cell-vertically-strategy.js +0 -80
  347. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-column-strategy.abstract.js +0 -19
  348. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.js +0 -133
  349. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.js +0 -99
  350. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-cell-properties-strategy.js +0 -24
  351. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-properties-strategy.js +0 -29
  352. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-block-action.js +0 -13
  353. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-column-action.js +0 -13
  354. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-row-action.js +0 -18
  355. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-block-action.js +0 -13
  356. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-column-action.js +0 -19
  357. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-action.js +0 -26
  358. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/merge-cells-action.js +0 -17
  359. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/select-table-column-action.js +0 -13
  360. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/split-cell-horizontally-action.js +0 -12
  361. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/split-cell-vertically-action.js +0 -12
  362. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.js +0 -18
  363. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-caption-action.js +0 -13
  364. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.js +0 -18
  365. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.js +0 -18
  366. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/toggle-header-row-action.js +0 -13
  367. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/toggle-header-table-column-action.js +0 -15
  368. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/update-table-properties-action.js +0 -38
  369. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler-base.js +0 -76
  370. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler.js +0 -69
  371. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-cell-annotation-handler.js +0 -108
  372. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-head-cell-annotation-handler.js +0 -14
  373. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-annotation.js +0 -106
  374. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.js +0 -57
  375. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.js +0 -161
  376. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-color-annotation.js +0 -66
  377. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.js +0 -45
  378. package/dist/collection/components/vega-rich-text-editor/extensions/table/constants/styles.constants.js +0 -21
  379. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +0 -119
  380. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-body-block.js +0 -56
  381. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.js +0 -69
  382. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.js +0 -97
  383. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-block.js +0 -60
  384. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.js +0 -53
  385. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-row-block.js +0 -60
  386. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/caption-to-caption-block-strategy.js +0 -50
  387. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/table-to-table-block-strategy.js +0 -42
  388. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tbody-to-table-body-block-strategy.js +0 -42
  389. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/td-to-table-cell-block-strategy.js +0 -71
  390. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/thead-to-table-head-block-strategy.js +0 -42
  391. package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tr-to-table-row-block-strategy.js +0 -42
  392. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.js +0 -15
  393. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.js +0 -22
  394. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.js +0 -76
  395. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.js +0 -254
  396. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.js +0 -12
  397. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.js +0 -15
  398. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.js +0 -142
  399. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.js +0 -15
  400. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-setting-popover-renderer.js +0 -152
  401. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/caption-operation.js +0 -78
  402. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-cancel-event-handler.js +0 -17
  403. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-change-event-handler.js +0 -15
  404. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-save-event-handler.js +0 -19
  405. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties.js +0 -135
  406. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/column-operation.js +0 -109
  407. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/merge-cells-operation.js +0 -100
  408. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.js +0 -132
  409. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.js +0 -45
  410. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/split-cell-operation.js +0 -57
  411. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-cancel-event-handler.js +0 -19
  412. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-change-event-handler.js +0 -20
  413. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-save-event-handler.js +0 -20
  414. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties.js +0 -50
  415. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +0 -164
  416. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-icon.js +0 -3
  417. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-selection.js +0 -460
  418. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.js +0 -234
  419. package/dist/collection/components/vega-rich-text-editor/extensions/table/utils/table-color-manager.js +0 -51
  420. package/dist/collection/components/vega-rich-text-editor/extensions/table/utils/utils.js +0 -355
  421. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-bottom.js +0 -3
  422. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-middle.js +0 -3
  423. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-top.js +0 -3
  424. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-center-horizontal.js +0 -3
  425. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-left.js +0 -3
  426. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-right.js +0 -3
  427. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/controllers/vega-rich-text-table-properties-color-controller.js +0 -58
  428. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-cell-properties-form-field-renderer.js +0 -106
  429. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-basic-form-field-renderer.abstract.js +0 -291
  430. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-form-field-renderer.js +0 -58
  431. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-form-renderer.js +0 -111
  432. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.css +0 -149
  433. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.js +0 -251
  434. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/controllers/selection-widget-keyboard-controller.js +0 -36
  435. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/renderers/selection-widget-renderer.js +0 -83
  436. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.css +0 -41
  437. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.js +0 -80
  438. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/assets/icon.js +0 -20
  439. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/caption-button-slimmer.js +0 -27
  440. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/cell-properties-button-slimmer.js +0 -26
  441. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/column-button-slimmer.js +0 -86
  442. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/merge-cells-button-slimmer.js +0 -117
  443. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.js +0 -103
  444. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-properties-button-slimmer.js +0 -26
  445. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-setting-button-slimmer.abstract.js +0 -75
  446. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/vega-rich-text-table-setting-renderer.js +0 -55
  447. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.css +0 -20
  448. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.js +0 -222
  449. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/annotation-handler-registration.test.js +0 -164
  450. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-annotation-handler.test.js +0 -288
  451. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-cell-annotation-handler.test.js +0 -316
  452. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-head-cell-annotation-handler.test.js +0 -411
  453. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/caption-operation.test.js +0 -99
  454. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-annotation.test.js +0 -181
  455. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-caption-annotations.test.js +0 -79
  456. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-cell-annotation.test.js +0 -323
  457. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-color-annotation.test.js +0 -32
  458. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-dto.test.js +0 -1094
  459. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-element-to-dto-strategies.test.js +0 -1539
  460. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-test-utils.js +0 -172
  461. package/dist/esm/align-left-7f959adf.js +0 -17
  462. package/dist/esm/dto-renderer-manager-12bc9121.js +0 -56
  463. package/dist/esm/split-cell-operation-6749f654.js +0 -2090
  464. package/dist/esm/table-extension-6b31754b.js +0 -6302
  465. package/dist/esm/vega-rich-text-table-properties_3.entry.js +0 -1515
  466. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-children-remove-interceptor.d.ts +0 -25
  467. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-content-delete-interceptor.d.ts +0 -20
  468. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-row-insert-interceptor.d.ts +0 -19
  469. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-block-strategy.d.ts +0 -14
  470. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-column-strategy.d.ts +0 -31
  471. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.d.ts +0 -28
  472. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-block-strategy.d.ts +0 -27
  473. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-column-strategy.d.ts +0 -19
  474. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-strategy.d.ts +0 -44
  475. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/merge-cells-strategy.d.ts +0 -38
  476. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/select-table-column-strategy.d.ts +0 -12
  477. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-cell-horizontally-strategy.d.ts +0 -43
  478. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-cell-vertically-strategy.d.ts +0 -27
  479. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-column-strategy.abstract.d.ts +0 -20
  480. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.d.ts +0 -41
  481. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.d.ts +0 -45
  482. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-cell-properties-strategy.d.ts +0 -13
  483. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-properties-strategy.d.ts +0 -12
  484. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-block-action.d.ts +0 -12
  485. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-column-action.d.ts +0 -15
  486. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-row-action.d.ts +0 -17
  487. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-block-action.d.ts +0 -20
  488. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-column-action.d.ts +0 -23
  489. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-action.d.ts +0 -23
  490. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/merge-cells-action.d.ts +0 -33
  491. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/select-table-column-action.d.ts +0 -18
  492. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/split-cell-horizontally-action.d.ts +0 -10
  493. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/split-cell-vertically-action.d.ts +0 -10
  494. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.d.ts +0 -16
  495. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-caption-action.d.ts +0 -14
  496. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.d.ts +0 -14
  497. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.d.ts +0 -15
  498. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/toggle-header-row-action.d.ts +0 -12
  499. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/toggle-header-table-column-action.d.ts +0 -16
  500. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/update-table-properties-action.d.ts +0 -18
  501. package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler-base.d.ts +0 -36
  502. package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler.d.ts +0 -26
  503. package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-cell-annotation-handler.d.ts +0 -56
  504. package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-head-cell-annotation-handler.d.ts +0 -13
  505. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-annotation.d.ts +0 -73
  506. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.d.ts +0 -26
  507. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.d.ts +0 -76
  508. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-color-annotation.d.ts +0 -43
  509. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.d.ts +0 -22
  510. package/dist/types/components/vega-rich-text-editor/extensions/table/constants/styles.constants.d.ts +0 -3
  511. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +0 -79
  512. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-body-block.d.ts +0 -42
  513. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.d.ts +0 -41
  514. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.d.ts +0 -64
  515. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-block.d.ts +0 -42
  516. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.d.ts +0 -34
  517. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-row-block.d.ts +0 -44
  518. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/caption-to-caption-block-strategy.d.ts +0 -29
  519. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/table-to-table-block-strategy.d.ts +0 -26
  520. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tbody-to-table-body-block-strategy.d.ts +0 -26
  521. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/td-to-table-cell-block-strategy.d.ts +0 -27
  522. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/thead-to-table-head-block-strategy.d.ts +0 -26
  523. package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tr-to-table-row-block-strategy.d.ts +0 -26
  524. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.d.ts +0 -12
  525. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.d.ts +0 -13
  526. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.d.ts +0 -37
  527. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.d.ts +0 -88
  528. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.d.ts +0 -12
  529. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.d.ts +0 -12
  530. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.d.ts +0 -54
  531. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.d.ts +0 -12
  532. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-setting-popover-renderer.d.ts +0 -66
  533. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/caption-operation.d.ts +0 -36
  534. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-cancel-event-handler.d.ts +0 -17
  535. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-change-event-handler.d.ts +0 -15
  536. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-save-event-handler.d.ts +0 -17
  537. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties.d.ts +0 -62
  538. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/column-operation.d.ts +0 -55
  539. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/merge-cells-operation.d.ts +0 -44
  540. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.d.ts +0 -61
  541. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.d.ts +0 -48
  542. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/split-cell-operation.d.ts +0 -31
  543. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-cancel-event-handler.d.ts +0 -19
  544. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-change-event-handler.d.ts +0 -17
  545. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-save-event-handler.d.ts +0 -17
  546. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties.d.ts +0 -33
  547. package/dist/types/components/vega-rich-text-editor/extensions/table/table-extension.d.ts +0 -36
  548. package/dist/types/components/vega-rich-text-editor/extensions/table/table-icon.d.ts +0 -3
  549. package/dist/types/components/vega-rich-text-editor/extensions/table/table-selection.d.ts +0 -164
  550. package/dist/types/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.d.ts +0 -86
  551. package/dist/types/components/vega-rich-text-editor/extensions/table/utils/table-color-manager.d.ts +0 -26
  552. package/dist/types/components/vega-rich-text-editor/extensions/table/utils/utils.d.ts +0 -153
  553. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-bottom.d.ts +0 -3
  554. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-middle.d.ts +0 -3
  555. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-top.d.ts +0 -3
  556. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-center-horizontal.d.ts +0 -3
  557. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-left.d.ts +0 -3
  558. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-right.d.ts +0 -3
  559. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/controllers/vega-rich-text-table-properties-color-controller.d.ts +0 -29
  560. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-cell-properties-form-field-renderer.d.ts +0 -49
  561. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-basic-form-field-renderer.abstract.d.ts +0 -111
  562. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-form-field-renderer.d.ts +0 -27
  563. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-form-renderer.d.ts +0 -39
  564. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.d.ts +0 -60
  565. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/controllers/selection-widget-keyboard-controller.d.ts +0 -15
  566. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/renderers/selection-widget-renderer.d.ts +0 -31
  567. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.d.ts +0 -27
  568. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/assets/icon.d.ts +0 -2
  569. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/caption-button-slimmer.d.ts +0 -11
  570. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/cell-properties-button-slimmer.d.ts +0 -11
  571. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/column-button-slimmer.d.ts +0 -28
  572. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/merge-cells-button-slimmer.d.ts +0 -23
  573. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.d.ts +0 -36
  574. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-properties-button-slimmer.d.ts +0 -11
  575. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-setting-button-slimmer.abstract.d.ts +0 -36
  576. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/vega-rich-text-table-setting-renderer.d.ts +0 -12
  577. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.d.ts +0 -58
  578. package/dist/types/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-cell-annotation-handler.test.d.ts +0 -8
  579. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-caption-annotations.test.d.ts +0 -1
  580. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-cell-annotation.test.d.ts +0 -1
  581. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-color-annotation.test.d.ts +0 -1
  582. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-dto.test.d.ts +0 -1
  583. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-element-to-dto-strategies.test.d.ts +0 -1
  584. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-test-utils.d.ts +0 -11
  585. package/dist/vega/p-0459a474.entry.js +0 -1
  586. package/dist/vega/p-0770a0eb.entry.js +0 -1
  587. package/dist/vega/p-0d57293b.js +0 -1
  588. package/dist/vega/p-1199ebf6.entry.js +0 -1
  589. package/dist/vega/p-1415d93b.entry.js +0 -1
  590. package/dist/vega/p-1431c8b9.js +0 -1
  591. package/dist/vega/p-1a161082.entry.js +0 -1
  592. package/dist/vega/p-1b44db34.js +0 -1
  593. package/dist/vega/p-205d8401.js +0 -1
  594. package/dist/vega/p-20a98a99.entry.js +0 -1
  595. package/dist/vega/p-273911b2.entry.js +0 -1
  596. package/dist/vega/p-2af2e1ad.entry.js +0 -1
  597. package/dist/vega/p-2af78c38.entry.js +0 -1
  598. package/dist/vega/p-3224d794.entry.js +0 -1
  599. package/dist/vega/p-3413a678.entry.js +0 -1
  600. package/dist/vega/p-395cdd84.entry.js +0 -1
  601. package/dist/vega/p-3be82c0f.entry.js +0 -1
  602. package/dist/vega/p-3c0f55f7.entry.js +0 -1
  603. package/dist/vega/p-3e30567a.js +0 -1
  604. package/dist/vega/p-42cd1fde.js +0 -1
  605. package/dist/vega/p-4b6c60cb.entry.js +0 -1
  606. package/dist/vega/p-5b048141.js +0 -1
  607. package/dist/vega/p-64386be8.entry.js +0 -1
  608. package/dist/vega/p-6490b69a.entry.js +0 -1
  609. package/dist/vega/p-6bc1552e.entry.js +0 -1
  610. package/dist/vega/p-76eb9cd0.entry.js +0 -1
  611. package/dist/vega/p-8198a77c.js +0 -1
  612. package/dist/vega/p-82ad1006.entry.js +0 -1
  613. package/dist/vega/p-839c9d62.entry.js +0 -1
  614. package/dist/vega/p-88c894e8.entry.js +0 -1
  615. package/dist/vega/p-96657262.entry.js +0 -1
  616. package/dist/vega/p-979e4bd4.entry.js +0 -1
  617. package/dist/vega/p-a01f985f.entry.js +0 -1
  618. package/dist/vega/p-a495463f.entry.js +0 -1
  619. package/dist/vega/p-b56b0b89.js +0 -1
  620. package/dist/vega/p-bde5c990.entry.js +0 -1
  621. package/dist/vega/p-beb6c1ce.entry.js +0 -1
  622. package/dist/vega/p-c02b01ec.entry.js +0 -1
  623. package/dist/vega/p-c1fdcb62.js +0 -1
  624. package/dist/vega/p-c78fe943.js +0 -1
  625. package/dist/vega/p-cd078909.entry.js +0 -1
  626. package/dist/vega/p-d5c09a94.entry.js +0 -1
  627. package/dist/vega/p-e1dd23f8.entry.js +0 -1
  628. package/dist/vega/p-e95ed6f3.entry.js +0 -1
  629. package/dist/vega/p-ebb14c84.js +0 -1
  630. package/dist/vega/p-f0a8aed3.entry.js +0 -1
  631. package/dist/vega/p-f2b8abd3.entry.js +0 -1
  632. package/dist/vega/p-fb238751.entry.js +0 -1
  633. package/dist/vega/p-fcabf0dc.js +0 -1
  634. package/style/vega-icons.css +0 -17266
  635. /package/dist/{types/components/vega-rich-text-editor/test/extensions/table/annotation-handler/annotation-handler-registration.test.d.ts → collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner-processor.interface.js} +0 -0
  636. /package/dist/types/components/vega-rich-text-editor/test/{extensions/table/annotation-handler/table-annotation-handler.test.d.ts → html-cleaner/html-content-cleaner.test.d.ts} +0 -0
  637. /package/dist/types/components/vega-rich-text-editor/test/{extensions/table/annotation-handler/table-head-cell-annotation-handler.test.d.ts → html-cleaner/remove-whitespace-after-opening-tag-processor.test.d.ts} +0 -0
  638. /package/dist/types/components/vega-rich-text-editor/test/{extensions/table/caption-operation.test.d.ts → html-cleaner/remove-whitespace-before-closing-tag-processor.test.d.ts} +0 -0
  639. /package/dist/types/components/vega-rich-text-editor/test/{extensions/table/table-annotation.test.d.ts → html-cleaner/remove-whitespace-between-tags-processor.test.d.ts} +0 -0
@@ -1,143 +0,0 @@
1
- import { RTETableRowBlock } from '../dto/table-row-block';
2
- import { RTETableBlock } from '../dto/table-block';
3
- import { InsertChildrenAfterAction } from '../../../dto/actions/insert-children-after-block';
4
- import { getCellSpan, getAllTableRows, getActualColumnPosition, getParentBlockByType, setSpanAttributes, createNewCell, } from '../utils/utils';
5
- import { generateUUID } from '../../../../../utils/misc';
6
- import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
7
- /**
8
- * Strategy to handle horizontal split of a table cell (splits top/bottom).
9
- */
10
- export class SplitCellHorizontallyStrategy extends ActionHandleStrategy {
11
- /**
12
- * @inheritDoc
13
- */
14
- handleAction(_action, target) {
15
- const row = target.parent;
16
- const section = row.parent;
17
- const table = getParentBlockByType(row, RTETableBlock);
18
- const allRows = getAllTableRows(table);
19
- const currentRowIndex = allRows.indexOf(row);
20
- const { colSpan, rowSpan } = getCellSpan(target);
21
- const cellColumnPosition = getActualColumnPosition(target, allRows);
22
- // When rowSpan=1, we need to insert a new row and both cells have rowSpan=1
23
- // When rowSpan>1, we split the existing rowSpan
24
- const topRowSpan = Math.ceil(rowSpan / 2);
25
- const bottomRowSpan = Math.max(1, rowSpan - topRowSpan);
26
- const needsNewRow = rowSpan === 1;
27
- // Update original cell's rowSpan (top cell)
28
- setSpanAttributes(target, colSpan, topRowSpan, table);
29
- // Determine where the bottom cell should be inserted
30
- const bottomCellRowIndex = currentRowIndex + topRowSpan;
31
- // Create the bottom cell with the same col span and type as the original
32
- const bottomCell = createNewCell(target.type);
33
- setSpanAttributes(bottomCell, colSpan, bottomRowSpan, table);
34
- if (needsNewRow) {
35
- // Need to create a new row for the bottom cell
36
- const newRow = this.createNewRowWithCell(section, bottomCell);
37
- // Find the correct position in the section to insert the new row
38
- const rowIndexInSection = section.children.indexOf(row);
39
- section.apply(new InsertChildrenAfterAction(section.children[rowIndexInSection], newRow));
40
- // Update allRows
41
- allRows.splice(bottomCellRowIndex, 0, newRow);
42
- // Update all cells from all previous rows that span through the insertion point
43
- // (except the split cell itself)
44
- this.updateCellsSpanningThroughInsertionPoint(allRows, bottomCellRowIndex, target, table);
45
- }
46
- else {
47
- // Row exists - insert the bottom cell at the correct position
48
- const targetRow = allRows[bottomCellRowIndex];
49
- const insertIndex = this.findInsertPosition(targetRow, cellColumnPosition, allRows, bottomCellRowIndex);
50
- targetRow.children.splice(insertIndex, 0, bottomCell);
51
- bottomCell.parent = targetRow;
52
- }
53
- }
54
- /**
55
- * Find the correct insertion position for a cell at a given column position in a row.
56
- * Accounts for cells from previous rows with rowspan extending into the target row.
57
- *
58
- * @param {RTETableRowBlock} targetRow - The row to insert into.
59
- * @param {number} targetColumnPosition - The target column position.
60
- * @param {RTETableRowBlock[]} allRows - All rows in the table.
61
- * @param {number} rowIndex - The index of the target row.
62
- * @returns {number} The physical cell index to insert at.
63
- */
64
- findInsertPosition(targetRow, targetColumnPosition, allRows, rowIndex) {
65
- // Calculate columns occupied by cells from previous rows extending into this row
66
- let columnsOccupiedByPreviousRows = 0;
67
- for (let r = 0; r < rowIndex; r++) {
68
- const prevRow = allRows[r];
69
- for (const prevCell of prevRow.children) {
70
- const { colSpan, rowSpan } = getCellSpan(prevCell);
71
- // Check if this cell extends into the target row
72
- if (r + rowSpan > rowIndex) {
73
- const prevCellColumnPosition = getActualColumnPosition(prevCell, allRows);
74
- if (prevCellColumnPosition < targetColumnPosition) {
75
- columnsOccupiedByPreviousRows += colSpan;
76
- }
77
- }
78
- }
79
- }
80
- // Find the insertion position in the target row
81
- let currentColumn = columnsOccupiedByPreviousRows;
82
- for (let i = 0; i < targetRow.children.length; i++) {
83
- if (currentColumn >= targetColumnPosition) {
84
- return i;
85
- }
86
- const cell = targetRow.children[i];
87
- const { colSpan } = getCellSpan(cell);
88
- currentColumn += colSpan;
89
- }
90
- return targetRow.children.length;
91
- }
92
- /**
93
- * Create a new row with only the bottom cell.
94
- * Other columns will be covered by cells from the original row with increased rowSpan.
95
- *
96
- * @param {RTETableBodyBlock | RTETableHeadBlock} section - The section (thead or tbody).
97
- * @param {RTETableCellBlock | RTETableHeadCellBlock} bottomCell - The bottom cell to insert.
98
- * @returns {RTETableRowBlock} The newly created row.
99
- */
100
- createNewRowWithCell(section, bottomCell) {
101
- const rowTemplate = {
102
- id: generateUUID(),
103
- type: 'table-row',
104
- children: [],
105
- };
106
- const newRow = RTETableRowBlock.from(rowTemplate);
107
- newRow.parent = section;
108
- // Add the bottom cell to the row
109
- newRow.children.push(bottomCell);
110
- bottomCell.parent = newRow;
111
- return newRow;
112
- }
113
- /**
114
- * Update all cells from all previous rows that span through the newly inserted row.
115
- * When a new row is inserted at `insertionRowIndex`, any cell from a previous row
116
- * that has rowSpan extending to or beyond that position needs rowSpan increased by 1.
117
- *
118
- * @param {RTETableRowBlock[]} allRows - All rows in the table (after insertion).
119
- * @param {number} insertionRowIndex - The index where the new row was inserted.
120
- * @param {RTETableCellBlock | RTETableHeadCellBlock} splitCell - The cell that was split (skip this one).
121
- * @param {RTETableBlock} table - The table block.
122
- */
123
- updateCellsSpanningThroughInsertionPoint(allRows, insertionRowIndex, splitCell, table) {
124
- // Check all rows before the insertion point (not including the inserted row itself)
125
- for (let r = 0; r < insertionRowIndex; r++) {
126
- const row = allRows[r];
127
- for (const cell of row.children) {
128
- // Skip the cell that was split - it already has the correct rowSpan
129
- if (cell === splitCell) {
130
- continue;
131
- }
132
- const { colSpan, rowSpan } = getCellSpan(cell);
133
- // Calculate where this cell ends
134
- const cellRowEnd = r + rowSpan;
135
- // If this cell extends to or past where we inserted the row,
136
- // it needs to span over the new row too
137
- if (cellRowEnd >= insertionRowIndex) {
138
- setSpanAttributes(cell, colSpan, rowSpan + 1, table);
139
- }
140
- }
141
- }
142
- }
143
- }
@@ -1,80 +0,0 @@
1
- import { RTETableBlock } from '../dto/table-block';
2
- import { InsertChildrenAfterAction } from '../../../dto/actions/insert-children-after-block';
3
- import { getCellSpan, getParentBlockByType, setSpanAttributes, getAllTableRows, getActualColumnPosition, createNewCell, } from '../utils/utils';
4
- import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
5
- /**
6
- * Strategy to handle vertical split of a table cell (splits left/right).
7
- */
8
- export class SplitCellVerticallyStrategy extends ActionHandleStrategy {
9
- /**
10
- * @inheritDoc
11
- */
12
- handleAction(_action, target) {
13
- const row = target.parent;
14
- const table = getParentBlockByType(row, RTETableBlock);
15
- const allRows = getAllTableRows(table);
16
- const currentRowIndex = allRows.indexOf(row);
17
- const { colSpan, rowSpan } = getCellSpan(target);
18
- // Get the actual column position of the cell being split
19
- const cellColumnStart = getActualColumnPosition(target, allRows);
20
- const cellColumnEnd = cellColumnStart + colSpan - 1;
21
- // Calculate new column spans (split the column span)
22
- const leftColSpan = Math.ceil(colSpan / 2);
23
- const rightColSpan = Math.floor(colSpan / 2);
24
- // Update original cell's column spans (left cell)
25
- setSpanAttributes(target, leftColSpan, rowSpan, table);
26
- // Create new cell (right cell) with same type as original
27
- const newCell = createNewCell(target.type);
28
- setSpanAttributes(newCell, rightColSpan, rowSpan, table);
29
- // Insert new cell after the original in the same row
30
- row.apply(new InsertChildrenAfterAction(target, newCell));
31
- // Only when splitting a cell with colSpan=1 do we add a new column to the table.
32
- // When colSpan>1, we're just redistributing existing columns.
33
- // For example:
34
- // colSpan=1: split into 1+1 → adds 1 new column
35
- // colSpan=2: split into 1+1 → just redistributes 2 existing columns
36
- // colSpan=3: split into 2+1 → just redistributes 3 existing columns
37
- const newColumnsAdded = colSpan === 1 ? 1 : 0;
38
- if (newColumnsAdded > 0) {
39
- this.updateOtherRowsCells(allRows, currentRowIndex, cellColumnStart, cellColumnEnd, rowSpan, newColumnsAdded, table);
40
- }
41
- }
42
- /**
43
- * Update cells in other rows to account for the new columns added by the split.
44
- * When a cell is split vertically and new columns are added to the table,
45
- * cells in other rows that span across the position where the split happened
46
- * need their colSpan increased.
47
- *
48
- * @param {RTETableRowBlock[]} allRows - All rows in the table.
49
- * @param {number} splitRowIndex - The index of the row containing the split cell.
50
- * @param {number} splitColumnStart - The starting column position of the split cell.
51
- * @param {number} splitColumnEnd - The ending column position of the split cell.
52
- * @param {number} splitCellRowSpan - The rowSpan of the split cell.
53
- * @param {number} newColumnsAdded - The number of new columns added by the split.
54
- * @param {RTETableBlock} table - The table block.
55
- */
56
- updateOtherRowsCells(allRows, splitRowIndex, splitColumnStart, splitColumnEnd, splitCellRowSpan, newColumnsAdded, table) {
57
- // Iterate through all rows
58
- for (let rowIndex = 0; rowIndex < allRows.length; rowIndex++) {
59
- const currentRow = allRows[rowIndex];
60
- // Skip rows that are spanned by the split cell itself
61
- if (rowIndex >= splitRowIndex && rowIndex < splitRowIndex + splitCellRowSpan) {
62
- continue;
63
- }
64
- // Check each cell in the current row
65
- for (const cell of currentRow.children) {
66
- const cellColumnStart = getActualColumnPosition(cell, allRows);
67
- const { colSpan, rowSpan } = getCellSpan(cell);
68
- const cellColumnEnd = cellColumnStart + colSpan - 1;
69
- // Check if this cell spans across the columns where the split happened
70
- // A cell needs updating if its column range overlaps with the split cell's column range
71
- const overlaps = cellColumnEnd >= splitColumnStart && cellColumnStart <= splitColumnEnd;
72
- if (overlaps) {
73
- // Increase this cell's colSpan by the number of new columns added
74
- setSpanAttributes(cell, colSpan + newColumnsAdded, rowSpan, table);
75
- break; // No need to check other cells in this row
76
- }
77
- }
78
- }
79
- }
80
- }
@@ -1,19 +0,0 @@
1
- import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
2
- /**
3
- * Abstract base strategy for handling table column operations.
4
- * Provides common functionality for all column-related strategies.
5
- */
6
- export class TableColumnStrategy extends ActionHandleStrategy {
7
- /**
8
- * Finds the index range of cells within a table row.
9
- * Returns the start and end indices of the given cell range.
10
- *
11
- * @param {(RTETableCellBlock | RTETableHeadCellBlock)[]} cellRange - The range of table cells to find indices for.
12
- * @returns {[number, number]} A tuple containing the start and end indices.
13
- */
14
- getBoundaryCellIndexOfRow(cellRange) {
15
- const firstCell = cellRange[0];
16
- const lastCell = cellRange[cellRange.length - 1];
17
- return [firstCell.parent.children.indexOf(firstCell), lastCell.parent.children.indexOf(lastCell)];
18
- }
19
- }
@@ -1,133 +0,0 @@
1
- import { generateUUID } from '../../../../../utils/misc';
2
- import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
3
- import { AppendChildrenAction } from '../../../dto/actions/append-child-nodes-action';
4
- import { InsertChildrenAfterAction } from '../../../dto/actions/insert-children-after-block';
5
- import { InsertChildrenBeforeAction } from '../../../dto/actions/insert-children-before-block';
6
- import { RemoveChildrenAction } from '../../../dto/actions/remove-child-action';
7
- import { UpdateCursorPositionAction } from '../../../dto/actions/update-cursor-position-action';
8
- import { RTETableBodyBlock } from '../dto/table-body-block';
9
- import { RTETableCellBlock } from '../dto/table-cell-block';
10
- import { RTETableHeadBlock } from '../dto/table-head-block';
11
- import { RTETableHeadCellBlock } from '../dto/table-head-cell-block';
12
- /**
13
- * Strategy class for handling converting selected rows to header rows or reverting them back to normal rows.
14
- */
15
- export class ToggleHeaderRowStrategy extends ActionHandleStrategy {
16
- /**
17
- * @inheritDoc
18
- */
19
- handleAction(action, target) {
20
- const { selectedRows } = action;
21
- const headerRows = [];
22
- const bodyRows = [];
23
- for (const row of selectedRows) {
24
- if (row.parent instanceof RTETableBodyBlock) {
25
- bodyRows.push(row);
26
- }
27
- else {
28
- headerRows.push(row);
29
- }
30
- }
31
- if (bodyRows.length > 0) {
32
- this.convertToHeaderRows(bodyRows, target);
33
- }
34
- else {
35
- this.revertToBodyRows(headerRows, target);
36
- }
37
- const root = this.getRootContent(target);
38
- if (root) {
39
- const focusNode = selectedRows[0].getFirstNode();
40
- focusNode && root.apply(new UpdateCursorPositionAction(focusNode, 0));
41
- }
42
- }
43
- /**
44
- * Converts normal rows to header rows.
45
- *
46
- * @param {RTETableRowBlock[]} rows - The table row blocks to convert.
47
- * @param {RTETableBlock} table - The table block containing the rows.
48
- */
49
- convertToHeaderRows(rows, table) {
50
- let tableHead = table.children.find((block) => block instanceof RTETableHeadBlock);
51
- const tableBody = rows[0].parent;
52
- if (!tableHead) {
53
- tableHead = RTETableHeadBlock.from({
54
- id: generateUUID(),
55
- type: 'table-head',
56
- children: [],
57
- });
58
- table.apply(new InsertChildrenBeforeAction(tableBody, tableHead));
59
- }
60
- const endIndex = tableBody.children.indexOf(rows[rows.length - 1]);
61
- const shouldConvertRows = tableBody.children.slice(0, endIndex + 1);
62
- for (let i = 0; i < shouldConvertRows.length; i++) {
63
- const rowBlock = shouldConvertRows[i];
64
- rowBlock.children = rowBlock.children.map((cell) => this.convertTdToTh(cell));
65
- tableBody.apply(new RemoveChildrenAction(rowBlock));
66
- }
67
- tableHead.apply(new AppendChildrenAction(shouldConvertRows));
68
- }
69
- /**
70
- * Converts header rows back to normal rows.
71
- *
72
- * @param {RTETableRowBlock[]} rows - The table row blocks to convert.
73
- * @param {RTETableBlock} table - The table block containing the rows.
74
- */
75
- revertToBodyRows(rows, table) {
76
- let tableBody = table.children.find((block) => block instanceof RTETableBodyBlock);
77
- const tableHead = rows[0].parent;
78
- if (!tableBody) {
79
- tableBody = RTETableBodyBlock.from({
80
- id: generateUUID(),
81
- type: 'table-body',
82
- children: [],
83
- });
84
- table.apply(new InsertChildrenAfterAction(tableHead, tableBody));
85
- }
86
- const firstBodyRow = tableBody.children[0];
87
- const startIndex = tableHead.children.indexOf(rows[0]);
88
- const shouldConvertRows = tableHead.children.slice(startIndex);
89
- for (let i = 0; i < shouldConvertRows.length; i++) {
90
- const rowBlock = shouldConvertRows[i];
91
- tableHead.apply(new RemoveChildrenAction(rowBlock));
92
- rowBlock.children = this.convertThToTd(rowBlock, firstBodyRow);
93
- if (firstBodyRow) {
94
- tableBody.apply(new InsertChildrenBeforeAction(firstBodyRow, rowBlock));
95
- }
96
- }
97
- if (!firstBodyRow) {
98
- tableBody.apply(new AppendChildrenAction(shouldConvertRows));
99
- }
100
- }
101
- /**
102
- * Converts a table data cell to a table header cell.
103
- *
104
- * @param {RTETableHeadCellBlock} cell - The table cell block to convert.
105
- * @returns {RTETableHeadCellBlock} The converted table header cell block.
106
- */
107
- convertTdToTh(cell) {
108
- if (cell instanceof RTETableHeadCellBlock) {
109
- return cell;
110
- }
111
- const headCell = RTETableHeadCellBlock.from(cell.toJSON());
112
- headCell.parent = cell.parent;
113
- return headCell;
114
- }
115
- /**
116
- * Converts table header cells to table body cells.
117
- *
118
- * @param {RTETableRowBlock} row - The table row block containing the cells.
119
- * @param {Nullable<RTETableRowBlock>} referenceRow - The reference row for comparison.
120
- * @returns {RTETableCellBlock[]} The converted table body cell blocks.
121
- */
122
- convertThToTd(row, referenceRow) {
123
- return row.children.map((cell, index) => {
124
- let bodyCell = cell;
125
- if (!referenceRow || referenceRow.children[index].type !== cell.type) {
126
- const cellJSON = cell.toJSON();
127
- bodyCell = RTETableCellBlock.from(cellJSON);
128
- }
129
- bodyCell.parent = row;
130
- return bodyCell;
131
- });
132
- }
133
- }
@@ -1,99 +0,0 @@
1
- import { RTETableBlock } from '../dto/table-block';
2
- import { RTETableCellBlock } from '../dto/table-cell-block';
3
- import { RTETableBodyBlock } from '../dto/table-body-block';
4
- import { RTETableHeadCellBlock } from '../dto/table-head-cell-block';
5
- import { InsertChildrenBeforeAction } from '../../../dto/actions/insert-children-before-block';
6
- import { RemoveChildrenAction } from '../../../dto/actions/remove-child-action';
7
- import { TableColumnStrategy } from './table-column-strategy.abstract';
8
- import { getAllTableRows, getParentBlockByType } from '../utils/utils';
9
- import { UpdateCursorPositionAction } from '../../../dto/actions/update-cursor-position-action';
10
- /**
11
- * Strategy to handle the toggle of header state of a table column.
12
- */
13
- export class ToggleHeaderTableColumnStrategy extends TableColumnStrategy {
14
- /**
15
- * Check if all selected cells are header cells.
16
- *
17
- * @param {(RTETableCellBlock | RTETableHeadCellBlock)[]} selectedCellRange - The range of selected table cell blocks.
18
- * @returns {boolean} True if all selected cells are header cells, false otherwise.
19
- */
20
- static isFullHeaderSelection(selectedCellRange) {
21
- if (selectedCellRange.length === 0) {
22
- return false;
23
- }
24
- const endSelectedCell = selectedCellRange[selectedCellRange.length - 1];
25
- const endSelectedCellIndex = endSelectedCell.parent.children.findIndex((child) => child === endSelectedCell);
26
- const table = getParentBlockByType(endSelectedCell, RTETableBlock);
27
- if (table) {
28
- const allTableRows = getAllTableRows(table);
29
- return allTableRows.every((row) => {
30
- const cell = row.children[endSelectedCellIndex];
31
- return cell instanceof RTETableHeadCellBlock;
32
- });
33
- }
34
- return false;
35
- }
36
- /**
37
- * @inheritDoc
38
- */
39
- handleAction(action, target) {
40
- var _a;
41
- const headerOn = action.headerOn;
42
- const [startCellIndex, endCellIndex] = this.getBoundaryCellIndexOfRow(action.tableCellHeaderRange);
43
- const allTableBodyRows = ((_a = target.children.find((body) => body instanceof RTETableBodyBlock)) === null || _a === void 0 ? void 0 : _a.children) || [];
44
- allTableBodyRows.forEach((row) => {
45
- const firstTableCellIndex = row.children.findIndex((cell) => !(cell instanceof RTETableHeadCellBlock));
46
- if (headerOn) {
47
- this.toggleCellsToHeader(firstTableCellIndex, endCellIndex, row);
48
- }
49
- else {
50
- this.toggleHeaderCellsToCells(firstTableCellIndex, row, startCellIndex);
51
- }
52
- });
53
- const root = this.getRootContent(target);
54
- if (root && action.tableCellHeaderRange[0].parent) {
55
- const focusNode = action.tableCellHeaderRange[0].parent.getFirstNode();
56
- focusNode && root.apply(new UpdateCursorPositionAction(focusNode, 0));
57
- }
58
- }
59
- /**
60
- * Toggles the specified header cells in a row to cells.
61
- *
62
- * @param {number} firstTableCellIndex - The index of the first table cell in the row.
63
- * @param {RTETableRowBlock} row - The table row block containing the cells to toggle.
64
- * @param {number} startCellIndex - The index of the first cell to toggle.
65
- */
66
- toggleHeaderCellsToCells(firstTableCellIndex, row, startCellIndex) {
67
- const lastTableHeaderCellIndex = firstTableCellIndex >= 0 ? firstTableCellIndex - 1 : row.children.length - 1;
68
- for (let cellIndex = startCellIndex; cellIndex <= lastTableHeaderCellIndex; cellIndex++) {
69
- const cellToToggle = row.children[cellIndex];
70
- const newCell = RTETableCellBlock.from(cellToToggle.toJSON());
71
- this.replaceCellInRow(row, cellToToggle, newCell);
72
- }
73
- }
74
- /**
75
- * Toggles the specified cells in a row to header cells.
76
- *
77
- * @param {number} firstTableCellIndex - The index of the first table cell in the row.
78
- * @param {number} endCellIndex - The index of the last cell to toggle.
79
- * @param {RTETableRowBlock} row - The table row block containing the cells to toggle.
80
- */
81
- toggleCellsToHeader(firstTableCellIndex, endCellIndex, row) {
82
- for (let tableCellIndex = firstTableCellIndex; tableCellIndex <= endCellIndex; tableCellIndex++) {
83
- const cellToToggle = row.children[tableCellIndex];
84
- const newHeaderCell = RTETableHeadCellBlock.from(cellToToggle.toJSON());
85
- this.replaceCellInRow(row, cellToToggle, newHeaderCell);
86
- }
87
- }
88
- /**
89
- * Replaces a cell in a given row at the specified index with a new cell.
90
- *
91
- * @param {RTETableRowBlock} row - The table row block containing the cell to replace.
92
- * @param {RTETableCellBlock | RTETableHeadCellBlock} oldCell - The cell to replace.
93
- * @param {RTETableCellBlock | RTETableHeadCellBlock} newCell - The new cell to insert.
94
- */
95
- replaceCellInRow(row, oldCell, newCell) {
96
- row.apply(new InsertChildrenBeforeAction(oldCell, newCell));
97
- row.apply(new RemoveChildrenAction(oldCell));
98
- }
99
- }
@@ -1,24 +0,0 @@
1
- import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
2
- /**
3
- * Update table cell properties action handler strategy
4
- */
5
- export class UpdateTableCellPropertiesStrategy extends ActionHandleStrategy {
6
- /**
7
- * @inheritDoc
8
- */
9
- handleAction(action, target) {
10
- const annotation = action.toAnnotation();
11
- const tableCellRef = this.getDOMByEntity(target);
12
- if (tableCellRef) {
13
- const { width, height, borderStr, padding, textAlign, verticalAlign } = annotation;
14
- const backgroundColor = annotation.renderStyle().backgroundColor || '';
15
- tableCellRef.style.backgroundColor = backgroundColor;
16
- tableCellRef.style.border = borderStr;
17
- tableCellRef.style.width = width;
18
- tableCellRef.style.height = height;
19
- tableCellRef.style.padding = padding;
20
- tableCellRef.style.textAlign = textAlign;
21
- tableCellRef.style.verticalAlign = verticalAlign;
22
- }
23
- }
24
- }
@@ -1,29 +0,0 @@
1
- import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
2
- /**
3
- * Update table properties action handler strategy
4
- */
5
- export class UpdateTablePropertiesStrategy extends ActionHandleStrategy {
6
- /**
7
- * @inheritDoc
8
- */
9
- handleAction(action, target) {
10
- const annotation = action.toAnnotation();
11
- const tableRef = this.getDOMByEntity(target);
12
- if (tableRef) {
13
- // Update the table styles directly on the DOM element if possible to avoid the component re-render
14
- const tableContainer = tableRef.closest('.v-rte--extension-table-container');
15
- const { backgroundColorAnnotation, width, height } = annotation;
16
- tableRef.style.backgroundColor = backgroundColorAnnotation.renderStyle().color;
17
- tableRef.style.border = annotation.borderStr;
18
- tableRef.style.width = width;
19
- tableRef.style.height = height;
20
- const margin = annotation.renderAlignmentStyle().margin;
21
- tableRef.style.margin = margin;
22
- if (tableContainer) {
23
- tableContainer.style.width = width;
24
- tableContainer.style.height = height;
25
- tableContainer.style.margin = margin;
26
- }
27
- }
28
- }
29
- }
@@ -1,13 +0,0 @@
1
- import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
2
- export const DELETE_TABLE_BLOCK = 'DELETE_TABLE_BLOCK';
3
- /**
4
- * Action to delete a table block
5
- */
6
- export class DeleteTableBlockAction extends ModifyContentAction {
7
- constructor(target) {
8
- super();
9
- this.isFlushable = true;
10
- this.type = DELETE_TABLE_BLOCK;
11
- this.tableBlock = target;
12
- }
13
- }
@@ -1,13 +0,0 @@
1
- import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
2
- export const DELETE_TABLE_COLUMN = 'DELETE_TABLE_COLUMN';
3
- /**
4
- * Action to delete a table column
5
- */
6
- export class DeleteTableColumnAction extends ModifyContentAction {
7
- constructor(target) {
8
- super();
9
- this.isFlushable = true;
10
- this.type = DELETE_TABLE_COLUMN;
11
- this.tableCellDeleteRange = target;
12
- }
13
- }
@@ -1,18 +0,0 @@
1
- import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
2
- export const DELETE_TABLE_ROW = 'DELETE_TABLE_ROW';
3
- /**
4
- * Action class for deleting a specific table row.
5
- */
6
- export class DeleteTableRowAction extends ModifyContentAction {
7
- /**
8
- * Constructs an InsertTableRowAction.
9
- *
10
- * @param {RTETableRowBlock[]} rowsToBeRemoved - The rows to be removed from the table.
11
- */
12
- constructor(rowsToBeRemoved) {
13
- super();
14
- this.isFlushable = true;
15
- this.type = DELETE_TABLE_ROW;
16
- this.rowsToBeRemoved = rowsToBeRemoved;
17
- }
18
- }
@@ -1,13 +0,0 @@
1
- import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
2
- export const INSERT_TABLE_BLOCK = 'INSERT_TABLE_BLOCK';
3
- /**
4
- * Action to insert a table block into the rich text editor.
5
- */
6
- export class InsertTableBlockAction extends ModifyContentAction {
7
- constructor(rowCount, columnCount) {
8
- super();
9
- this.type = INSERT_TABLE_BLOCK;
10
- this.rowCount = rowCount;
11
- this.columnCount = columnCount;
12
- }
13
- }
@@ -1,19 +0,0 @@
1
- import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
2
- export const INSERT_TABLE_COLUMN = 'INSERT_TABLE_COLUMN';
3
- export var InsertTableColumnDirection;
4
- (function (InsertTableColumnDirection) {
5
- InsertTableColumnDirection["LEFT"] = "LEFT";
6
- InsertTableColumnDirection["RIGHT"] = "RIGHT";
7
- })(InsertTableColumnDirection || (InsertTableColumnDirection = {}));
8
- /**
9
- * Action to insert a table column into the RTETable.
10
- */
11
- export class InsertTableColumnAction extends ModifyContentAction {
12
- constructor(insertDirection, tableCellInsertRange) {
13
- super();
14
- this.isFlushable = true;
15
- this.type = INSERT_TABLE_COLUMN;
16
- this.tableCellInsertRange = tableCellInsertRange;
17
- this.insertDirection = insertDirection;
18
- }
19
- }
@@ -1,26 +0,0 @@
1
- import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
2
- export const INSERT_TABLE_ROW = 'INSERT_TABLE_ROW';
3
- export var InsertTableRowDirection;
4
- (function (InsertTableRowDirection) {
5
- InsertTableRowDirection["ABOVE"] = "ABOVE";
6
- InsertTableRowDirection["BELOW"] = "BELOW";
7
- })(InsertTableRowDirection || (InsertTableRowDirection = {}));
8
- /**
9
- * Action class for inserting a new row into a table within the rich text editor.
10
- */
11
- export class InsertTableRowAction extends ModifyContentAction {
12
- /**
13
- * Constructs an InsertTableRowAction.
14
- *
15
- * @param {InsertTableRowDirection} insertDirection - The direction to insert the new row (above or below the current row).
16
- * @param {RTETableRowBlock[]} selectedRows - The currently selected rows in the table.
17
- */
18
- constructor(insertDirection, selectedRows = []) {
19
- super();
20
- this.isFlushable = true;
21
- this.type = INSERT_TABLE_ROW;
22
- this.selectedRows = [];
23
- this.insertDirection = insertDirection;
24
- this.selectedRows = selectedRows;
25
- }
26
- }
@@ -1,17 +0,0 @@
1
- import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
2
- export const MERGE_CELLS = 'MERGE_CELLS';
3
- /**
4
- * Action to merge cells into the RTETable.
5
- */
6
- export class MergeCellsAction extends ModifyContentAction {
7
- constructor(targetCell, mergeCells, colSpan, rowSpan, direction) {
8
- super();
9
- this.type = MERGE_CELLS;
10
- this.isFlushable = true;
11
- this.targetCell = targetCell;
12
- this.mergeCells = mergeCells;
13
- this.colSpan = colSpan;
14
- this.rowSpan = rowSpan;
15
- this.direction = direction;
16
- }
17
- }