@heartlandone/vega 2.72.0-RTE-table-preview → 2.73.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 (526) hide show
  1. package/dist/cjs/{app-globals-4d077e56.js → app-globals-cc162173.js} +16 -17
  2. package/dist/cjs/{child-nodes-event-prevent-slimmer-871855df.js → child-nodes-event-prevent-slimmer-536d29fc.js} +1 -1
  3. package/dist/cjs/{code-block-bf3642ef.js → code-block-823cd481.js} +2 -16
  4. package/dist/cjs/{component-value-history-controller-slimmer.abstract-ebecb74a.js → component-value-history-controller-slimmer.abstract-e2e0c6f3.js} +5 -26
  5. package/dist/cjs/{design-token-ac429fe9.js → design-token-11656685.js} +1 -1
  6. package/dist/cjs/{dto-renderer-manager-04428a77.js → dto-renderer-manager-bd2bd447.js} +2 -4
  7. package/dist/cjs/{element-appender-slimmer-1b062054.js → element-appender-slimmer-12f40b8b.js} +6 -6
  8. package/dist/cjs/{event-emit-slimmer-f7255138.js → event-emit-slimmer-6a591353.js} +1 -1
  9. package/dist/cjs/{form-field-controller-slimmer-57525f26.js → form-field-controller-slimmer-6e3e14fd.js} +2 -2
  10. package/dist/cjs/{table-extension-1f162c4c.js → function-extension-78ec27e0.js} +4 -1913
  11. package/dist/cjs/{image-annotation-action-7fa5d30d.js → image-annotation-action-7408a4b3.js} +2 -2
  12. package/dist/cjs/index-58ea899e.js +4 -8
  13. package/dist/cjs/{index-c7fbf32b.js → index-638a0f0d.js} +1 -1
  14. package/dist/cjs/index.cjs.js +28 -31
  15. package/dist/cjs/{internal-vega-event-manager-0e1ba774.js → internal-vega-event-manager-d587a33c.js} +1 -1
  16. package/dist/cjs/{language-extension-6ad0b5a0.js → language-extension-716015a5.js} +4 -4
  17. package/dist/cjs/loader.cjs.js +9 -11
  18. package/dist/cjs/{public-rules-76bcf49c.js → public-rules-2950f1fc.js} +4 -4
  19. package/dist/cjs/{range-449bcdd0.js → range-c3c48132.js} +1 -1
  20. package/dist/cjs/remote-invocation-registry-fc22fdd0.js +65 -0
  21. package/dist/cjs/{responsive-format-facade-e61c7f7e.js → responsive-format-facade-96c5f598.js} +3 -3
  22. package/dist/cjs/{rich-text-editor-required-rule-40216fee.js → rich-text-editor-required-rule-4aab05a3.js} +1 -1
  23. package/dist/cjs/{string-input-formatter-slimmer-4332d1c7.js → string-input-formatter-slimmer-338bbd73.js} +2 -2
  24. package/dist/cjs/{style-formatter-e2a0ad27.js → style-formatter-9c42d41b.js} +1 -1
  25. package/dist/cjs/{sub-state-notify-slimmer-9fe1ab65.js → sub-state-notify-slimmer-1efa69c4.js} +1 -1
  26. package/dist/cjs/{sub-state-observer-slimmer-2f6f4d28.js → sub-state-observer-slimmer-6afa62f5.js} +1 -1
  27. package/dist/cjs/vega-accordion.cjs.entry.js +8 -10
  28. package/dist/cjs/vega-app-header-button.cjs.entry.js +28 -12
  29. package/dist/cjs/vega-banner.cjs.entry.js +2 -2
  30. package/dist/cjs/vega-box.cjs.entry.js +8 -10
  31. package/dist/cjs/vega-breadcrumb.cjs.entry.js +3 -3
  32. package/dist/cjs/vega-button-circle.cjs.entry.js +9 -11
  33. package/dist/cjs/vega-button-group_2.cjs.entry.js +6 -6
  34. package/dist/cjs/vega-button-link.cjs.entry.js +3 -3
  35. package/dist/cjs/vega-button.cjs.entry.js +8 -10
  36. package/dist/cjs/vega-calendar_4.cjs.entry.js +6 -6
  37. package/dist/cjs/vega-card.cjs.entry.js +7 -9
  38. package/dist/cjs/vega-carousel.cjs.entry.js +7 -9
  39. package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
  40. package/dist/cjs/vega-chip.cjs.entry.js +9 -11
  41. package/dist/cjs/vega-code-block.cjs.entry.js +7 -7
  42. package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
  43. package/dist/cjs/vega-combo-box.cjs.entry.js +6 -6
  44. package/dist/cjs/vega-date-picker_2.cjs.entry.js +13 -15
  45. package/dist/cjs/vega-dialog_2.cjs.entry.js +16 -18
  46. package/dist/cjs/vega-divider.cjs.entry.js +7 -9
  47. package/dist/cjs/vega-dropdown_5.cjs.entry.js +14 -15
  48. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  49. package/dist/cjs/vega-field-label.cjs.entry.js +2 -2
  50. package/dist/cjs/vega-file-uploader.cjs.entry.js +5 -5
  51. package/dist/cjs/vega-flag-icon.cjs.entry.js +7 -9
  52. package/dist/cjs/vega-flex.cjs.entry.js +8 -10
  53. package/dist/cjs/vega-font.cjs.entry.js +7 -9
  54. package/dist/cjs/vega-form.cjs.entry.js +7 -7
  55. package/dist/cjs/vega-grid.cjs.entry.js +7 -9
  56. package/dist/cjs/vega-icon.cjs.entry.js +7 -9
  57. package/dist/cjs/vega-image-uploader.cjs.entry.js +11 -13
  58. package/dist/cjs/vega-input-credit-card.cjs.entry.js +6 -6
  59. package/dist/cjs/vega-input-numeric.cjs.entry.js +7 -7
  60. package/dist/cjs/vega-input-passcode.cjs.entry.js +6 -6
  61. package/dist/cjs/vega-input-phone-number.cjs.entry.js +14 -15
  62. package/dist/cjs/vega-input-range.cjs.entry.js +6 -6
  63. package/dist/cjs/vega-input-select.cjs.entry.js +12 -13
  64. package/dist/cjs/vega-input.cjs.entry.js +541 -188
  65. package/dist/cjs/{vega-internal-event-id-a5ef414b.js → vega-internal-event-id-f2465f1b.js} +6 -0
  66. package/dist/cjs/vega-item-toggle.cjs.entry.js +2 -2
  67. package/dist/cjs/vega-left-nav_5.cjs.entry.js +14 -16
  68. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +8 -10
  69. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
  70. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +1 -1
  71. package/dist/cjs/vega-pagination.cjs.entry.js +8 -10
  72. package/dist/cjs/vega-popover_2.cjs.entry.js +13 -14
  73. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +10 -12
  74. package/dist/cjs/vega-radio_2.cjs.entry.js +6 -6
  75. package/dist/cjs/vega-rich-text-content.cjs.entry.js +6 -6
  76. package/dist/cjs/{vega-rich-text-editor_5.cjs.entry.js → vega-rich-text-editor_4.cjs.entry.js} +274 -761
  77. package/dist/cjs/vega-segment-control.cjs.entry.js +2 -2
  78. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +11 -13
  79. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +7 -7
  80. package/dist/cjs/vega-sidenav_3.cjs.entry.js +13 -15
  81. package/dist/cjs/vega-signature-capture.cjs.entry.js +10 -12
  82. package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
  83. package/dist/cjs/vega-tab-group_2.cjs.entry.js +3 -3
  84. package/dist/cjs/vega-table_11.cjs.entry.js +36 -37
  85. package/dist/cjs/vega-textarea.cjs.entry.js +6 -6
  86. package/dist/cjs/vega-time-picker_2.cjs.entry.js +11 -13
  87. package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
  88. package/dist/cjs/vega-tooltip_2.cjs.entry.js +7 -9
  89. package/dist/cjs/vega.cjs.js +9 -11
  90. package/dist/collection/collection-manifest.json +8 -16
  91. package/dist/collection/components/vega-app-header-button/slimmers/renderers/vega-app-header-button-dropdown-renderer.js +13 -1
  92. package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +46 -3
  93. package/dist/collection/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.js +77 -7
  94. package/dist/collection/components/vega-input/slimmers/controllers/vega-input-value-controller.js +79 -0
  95. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-container-renderer.js +100 -0
  96. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-renderer.js +178 -0
  97. package/dist/collection/components/vega-input/slimmers/renderers/vega-input-renderer.js +72 -0
  98. package/dist/collection/components/vega-input/vega-input.css +8 -0
  99. package/dist/collection/components/vega-input/vega-input.js +28 -158
  100. package/dist/collection/components/vega-input-select/vega-input-select.js +1 -1
  101. package/dist/collection/components/vega-popover/vega-popover.js +4 -4
  102. package/dist/collection/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.js +3 -3
  103. package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +1 -15
  104. package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +1 -2
  105. package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +0 -8
  106. package/dist/collection/components/vega-rich-text-editor/public-api.js +0 -1
  107. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +0 -20
  108. package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +2 -23
  109. package/dist/collection/components/vega-rich-text-editor/test/spec-utils.js +2 -5
  110. package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.css +0 -4
  111. package/dist/collection/global/scripts/before-vega-load.js +0 -2
  112. package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +2 -2
  113. package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +3 -0
  114. package/dist/collection/utils/spec-utils.js +3 -4
  115. package/dist/esm/{app-globals-e7a8d0cc.js → app-globals-949d2e18.js} +6 -7
  116. package/dist/esm/{child-nodes-event-prevent-slimmer-9ae34332.js → child-nodes-event-prevent-slimmer-e6f98de5.js} +1 -1
  117. package/dist/esm/{code-block-3d3a9030.js → code-block-666674d7.js} +4 -18
  118. package/dist/esm/{component-value-history-controller-slimmer.abstract-d84e7bab.js → component-value-history-controller-slimmer.abstract-171dda08.js} +6 -27
  119. package/dist/esm/{design-token-1575f6d9.js → design-token-9b510e59.js} +1 -1
  120. package/dist/esm/{dom-node-subject-observer-factory-f81f215f.js → dom-node-subject-observer-factory-1aaa1159.js} +1 -1
  121. package/dist/esm/{dto-renderer-manager-23784148.js → dto-renderer-manager-49ae5d56.js} +4 -4
  122. package/dist/esm/{element-appender-slimmer-1a50e184.js → element-appender-slimmer-b9890dcb.js} +4 -4
  123. package/dist/esm/{event-emit-slimmer-966716fa.js → event-emit-slimmer-2d791d0e.js} +2 -2
  124. package/dist/esm/{form-field-controller-slimmer-0020997d.js → form-field-controller-slimmer-257928c1.js} +3 -3
  125. package/dist/esm/{table-extension-164b0d6c.js → function-extension-8b06c6f8.js} +7 -1915
  126. package/dist/esm/{image-annotation-action-dba16587.js → image-annotation-action-b3eea6a2.js} +3 -3
  127. package/dist/esm/index-090d31ca.js +4 -8
  128. package/dist/esm/{index-d72e7fb3.js → index-0d487fae.js} +2 -2
  129. package/dist/esm/index.js +12 -14
  130. package/dist/esm/{internal-vega-event-manager-4f51b17c.js → internal-vega-event-manager-fdee2a0a.js} +2 -2
  131. package/dist/esm/{language-extension-710fe56d.js → language-extension-b3f836d4.js} +2 -2
  132. package/dist/esm/loader.js +10 -12
  133. package/dist/esm/polyfills/core-js.js +0 -0
  134. package/dist/esm/polyfills/dom.js +0 -0
  135. package/dist/esm/polyfills/es5-html-element.js +0 -0
  136. package/dist/esm/polyfills/index.js +0 -0
  137. package/dist/esm/polyfills/system.js +0 -0
  138. package/dist/esm/{public-rules-522ba4b1.js → public-rules-b164e40e.js} +5 -5
  139. package/dist/esm/{range-cdd85d30.js → range-9cc1422b.js} +1 -1
  140. package/dist/esm/remote-invocation-registry-d69245c2.js +63 -0
  141. package/dist/esm/{responsive-format-facade-405f90d2.js → responsive-format-facade-94897ae8.js} +3 -3
  142. package/dist/esm/{rich-text-editor-required-rule-7d2d9615.js → rich-text-editor-required-rule-2131f21c.js} +1 -1
  143. package/dist/esm/{string-input-formatter-slimmer-96ccc8cf.js → string-input-formatter-slimmer-3a42d9b8.js} +3 -3
  144. package/dist/esm/{style-formatter-52cd20f7.js → style-formatter-bb5aec96.js} +1 -1
  145. package/dist/esm/{sub-state-notify-slimmer-97953a87.js → sub-state-notify-slimmer-71b9bbd5.js} +2 -2
  146. package/dist/esm/{sub-state-observer-slimmer-3f2b954f.js → sub-state-observer-slimmer-41a1b380.js} +2 -2
  147. package/dist/esm/vega-accordion.entry.js +9 -11
  148. package/dist/esm/vega-app-header-button.entry.js +29 -13
  149. package/dist/esm/vega-banner.entry.js +3 -3
  150. package/dist/esm/vega-box.entry.js +9 -11
  151. package/dist/esm/vega-breadcrumb.entry.js +4 -4
  152. package/dist/esm/vega-button-circle.entry.js +10 -12
  153. package/dist/esm/vega-button-group_2.entry.js +7 -7
  154. package/dist/esm/vega-button-link.entry.js +4 -4
  155. package/dist/esm/vega-button.entry.js +9 -11
  156. package/dist/esm/vega-calendar_4.entry.js +7 -7
  157. package/dist/esm/vega-card.entry.js +8 -10
  158. package/dist/esm/vega-carousel.entry.js +8 -10
  159. package/dist/esm/vega-checkbox_2.entry.js +7 -7
  160. package/dist/esm/vega-chip.entry.js +10 -12
  161. package/dist/esm/vega-code-block.entry.js +8 -8
  162. package/dist/esm/vega-color-picker.entry.js +6 -6
  163. package/dist/esm/vega-combo-box.entry.js +7 -7
  164. package/dist/esm/vega-date-picker_2.entry.js +14 -16
  165. package/dist/esm/vega-dialog_2.entry.js +10 -12
  166. package/dist/esm/vega-divider.entry.js +8 -10
  167. package/dist/esm/vega-dropdown_5.entry.js +13 -14
  168. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  169. package/dist/esm/vega-field-label.entry.js +3 -3
  170. package/dist/esm/vega-file-uploader.entry.js +6 -6
  171. package/dist/esm/vega-flag-icon.entry.js +8 -10
  172. package/dist/esm/vega-flex.entry.js +9 -11
  173. package/dist/esm/vega-font.entry.js +8 -10
  174. package/dist/esm/vega-form.entry.js +8 -8
  175. package/dist/esm/vega-grid.entry.js +8 -10
  176. package/dist/esm/vega-icon.entry.js +8 -10
  177. package/dist/esm/vega-image-uploader.entry.js +11 -13
  178. package/dist/esm/vega-input-credit-card.entry.js +7 -7
  179. package/dist/esm/vega-input-numeric.entry.js +8 -8
  180. package/dist/esm/vega-input-passcode.entry.js +7 -7
  181. package/dist/esm/vega-input-phone-number.entry.js +12 -13
  182. package/dist/esm/vega-input-range.entry.js +7 -7
  183. package/dist/esm/vega-input-select.entry.js +12 -13
  184. package/dist/esm/vega-input.entry.js +542 -189
  185. package/dist/esm/{vega-internal-event-id-54ce7562.js → vega-internal-event-id-4a06d705.js} +4 -1
  186. package/dist/esm/vega-item-toggle.entry.js +3 -3
  187. package/dist/esm/vega-left-nav_5.entry.js +11 -13
  188. package/dist/esm/vega-loader-wrapper_2.entry.js +7 -9
  189. package/dist/esm/vega-page-notification_2.entry.js +1 -1
  190. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +4 -4
  191. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
  192. package/dist/esm/vega-pagination.entry.js +9 -11
  193. package/dist/esm/vega-popover_2.entry.js +12 -13
  194. package/dist/esm/vega-progress-tracker_2.entry.js +11 -13
  195. package/dist/esm/vega-radio_2.entry.js +7 -7
  196. package/dist/esm/vega-rich-text-content.entry.js +7 -7
  197. package/dist/esm/{vega-rich-text-editor_5.entry.js → vega-rich-text-editor_4.entry.js} +275 -761
  198. package/dist/esm/vega-segment-control.entry.js +3 -3
  199. package/dist/esm/vega-selection-chip_2.entry.js +12 -14
  200. package/dist/esm/vega-selection-tile_2.entry.js +8 -8
  201. package/dist/esm/vega-sidenav_3.entry.js +10 -12
  202. package/dist/esm/vega-signature-capture.entry.js +11 -13
  203. package/dist/esm/vega-stepper.entry.js +7 -7
  204. package/dist/esm/vega-tab-group_2.entry.js +4 -4
  205. package/dist/esm/vega-table_11.entry.js +12 -13
  206. package/dist/esm/vega-textarea.entry.js +7 -7
  207. package/dist/esm/vega-time-picker_2.entry.js +12 -14
  208. package/dist/esm/vega-toggle-switch.entry.js +6 -6
  209. package/dist/esm/vega-tooltip_2.entry.js +8 -10
  210. package/dist/esm/vega.js +10 -12
  211. package/dist/sri/vega-sri-manifest.json +301 -305
  212. package/dist/types/components/vega-app-header-button/slimmers/renderers/vega-app-header-button-dropdown-renderer.d.ts +7 -0
  213. package/dist/types/components/vega-app-header-button/types.d.ts +2 -0
  214. package/dist/types/components/vega-app-header-button/vega-app-header-button.d.ts +14 -0
  215. package/dist/types/components/vega-input/slimmers/controllers/vega-input-mask-config-controller.d.ts +33 -6
  216. package/dist/types/components/vega-input/slimmers/controllers/vega-input-value-controller.d.ts +32 -0
  217. package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-container-renderer.d.ts +27 -0
  218. package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-renderer.d.ts +57 -0
  219. package/dist/types/components/vega-input/slimmers/renderers/vega-input-renderer.d.ts +18 -0
  220. package/dist/types/components/vega-input/vega-input.d.ts +8 -36
  221. package/dist/types/components/vega-popover/vega-popover.d.ts +1 -1
  222. package/dist/types/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.d.ts +2 -2
  223. package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation.abstract.d.ts +5 -2
  224. package/dist/types/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.d.ts +3 -3
  225. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +6 -10
  226. package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +0 -5
  227. package/dist/types/components/vega-rich-text-editor/interface.d.ts +2 -20
  228. package/dist/types/components/vega-rich-text-editor/public-api.d.ts +0 -1
  229. package/dist/types/components/vega-rich-text-editor/slimmers/controllers/extension-controller.d.ts +0 -4
  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/test/spec-utils.d.ts +0 -4
  232. package/dist/types/components.d.ts +14 -67
  233. package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +3 -0
  234. package/dist/types/types/components.type.d.ts +0 -1
  235. package/dist/types/utils/spec-utils.d.ts +1 -2
  236. package/dist/vega/index.esm.js +1 -1
  237. package/dist/vega/p-03e16a05.entry.js +1 -0
  238. package/dist/vega/p-0ad59141.entry.js +1 -0
  239. package/dist/vega/p-0ba0f83d.entry.js +1 -0
  240. package/dist/vega/p-114c6df8.entry.js +1 -0
  241. package/dist/vega/{p-5504ebdf.js → p-184d8443.js} +1 -1
  242. package/dist/vega/p-1e019406.js +1 -0
  243. package/dist/vega/p-1faef917.entry.js +1 -0
  244. package/dist/vega/p-21cba83b.entry.js +1 -0
  245. package/dist/vega/p-21e7808a.entry.js +1 -0
  246. package/dist/vega/{p-da77d71f.entry.js → p-2409a475.entry.js} +1 -1
  247. package/dist/vega/{p-6aa7ace9.js → p-2971b17a.js} +1 -1
  248. package/dist/vega/{p-31a65402.entry.js → p-2ae5ad30.entry.js} +1 -1
  249. package/dist/vega/p-2b20a215.entry.js +1 -0
  250. package/dist/vega/p-2bc4f7d9.entry.js +1 -0
  251. package/dist/vega/p-2e0deef6.js +1 -0
  252. package/dist/vega/p-2f592078.entry.js +1 -0
  253. package/dist/vega/{p-fb6b3b98.js → p-30e7544c.js} +1 -1
  254. package/dist/vega/p-3162a7fd.entry.js +1 -0
  255. package/dist/vega/p-3566ad76.js +1 -0
  256. package/dist/vega/p-38ed3d59.entry.js +1 -0
  257. package/dist/vega/p-3938880f.entry.js +1 -0
  258. package/dist/vega/p-398220f5.entry.js +1 -0
  259. package/dist/vega/p-40561fa0.entry.js +1 -0
  260. package/dist/vega/p-42a283b5.entry.js +1 -0
  261. package/dist/vega/{p-137e5c70.entry.js → p-44bc9ea9.entry.js} +1 -1
  262. package/dist/vega/{p-d6032515.entry.js → p-4957f07a.entry.js} +1 -1
  263. package/dist/vega/p-524ffc12.entry.js +1 -0
  264. package/dist/vega/{p-5b472921.js → p-59fa3f68.js} +1 -1
  265. package/dist/vega/p-5b71c85e.js +1 -0
  266. package/dist/vega/{p-5fb6a3b5.js → p-5be29f14.js} +1 -1
  267. package/dist/vega/p-5f09868d.entry.js +1 -0
  268. package/dist/vega/p-5f377954.js +1 -1
  269. package/dist/vega/{p-f729743c.entry.js → p-623c3911.entry.js} +1 -1
  270. package/dist/vega/{p-7eaa8ac0.entry.js → p-676eaf3f.entry.js} +1 -1
  271. package/dist/vega/p-697eb0e1.js +1 -0
  272. package/dist/vega/{p-2249b040.entry.js → p-6b9d2996.entry.js} +1 -1
  273. package/dist/vega/p-6e701542.entry.js +1 -0
  274. package/dist/vega/p-6e84e451.entry.js +1 -0
  275. package/dist/vega/{p-1815e753.entry.js → p-70b2906a.entry.js} +1 -1
  276. package/dist/vega/p-721b2981.entry.js +1 -0
  277. package/dist/vega/{p-71f2235e.js → p-74a77cad.js} +1 -1
  278. package/dist/vega/p-75d91ee9.entry.js +1 -0
  279. package/dist/vega/{p-96aa0f3b.js → p-76e6c13a.js} +1 -1
  280. package/dist/vega/p-77e64f26.js +1 -0
  281. package/dist/vega/p-79a544d6.js +1 -0
  282. package/dist/vega/{p-d69a6454.entry.js → p-7a8c4cf8.entry.js} +1 -1
  283. package/dist/vega/p-7b337fd4.entry.js +1 -0
  284. package/dist/vega/p-7be3aefc.entry.js +1 -0
  285. package/dist/vega/{p-23183d4d.js → p-7f86b3c8.js} +1 -1
  286. package/dist/vega/{p-11a7daad.entry.js → p-7f9acdf7.entry.js} +1 -1
  287. package/dist/vega/{p-1c33d25e.entry.js → p-82dbff54.entry.js} +1 -1
  288. package/dist/vega/{p-1282b67e.js → p-8bd496b4.js} +1 -1
  289. package/dist/vega/{p-b47df664.js → p-8fba7f9a.js} +1 -1
  290. package/dist/vega/p-94cf46ca.entry.js +1 -0
  291. package/dist/vega/{p-8b969a71.entry.js → p-96797fee.entry.js} +1 -1
  292. package/dist/vega/{p-bc2451f7.entry.js → p-9b673fd4.entry.js} +1 -1
  293. package/dist/vega/{p-8feb1298.entry.js → p-9d8e2939.entry.js} +1 -1
  294. package/dist/vega/{p-596895ec.js → p-9dfe2bbc.js} +1 -1
  295. package/dist/vega/{p-9e2cf904.entry.js → p-9fb71d8c.entry.js} +1 -1
  296. package/dist/vega/p-a125cfec.entry.js +1 -0
  297. package/dist/vega/p-a3c4fa30.entry.js +1 -0
  298. package/dist/vega/{p-883c5174.entry.js → p-a58bdbad.entry.js} +1 -1
  299. package/dist/vega/{p-0bca50ab.entry.js → p-a5d4d168.entry.js} +1 -1
  300. package/dist/vega/p-aab0deab.js +1 -0
  301. package/dist/vega/p-adc615a4.entry.js +1 -0
  302. package/dist/vega/{p-699e46d1.entry.js → p-b007d0d5.entry.js} +1 -1
  303. package/dist/vega/p-b406a846.entry.js +1 -0
  304. package/dist/vega/p-bd60c72e.entry.js +1 -0
  305. package/dist/vega/{p-b737b93a.entry.js → p-be0b67b8.entry.js} +1 -1
  306. package/dist/vega/p-bf61d136.js +1 -0
  307. package/dist/vega/{p-18bcfd7a.js → p-c0036e71.js} +1 -1
  308. package/dist/vega/p-c2ac6b47.entry.js +1 -0
  309. package/dist/vega/p-c4700277.entry.js +1 -0
  310. package/dist/vega/{p-56ce0c4b.entry.js → p-c7194674.entry.js} +1 -1
  311. package/dist/vega/p-c7f292dd.entry.js +1 -0
  312. package/dist/vega/p-ce2ffff7.js +1 -0
  313. package/dist/vega/p-d01fe83d.entry.js +1 -0
  314. package/dist/vega/p-db62b038.entry.js +1 -0
  315. package/dist/vega/p-dd72ad9e.js +1 -0
  316. package/dist/vega/p-e39aa2ea.entry.js +1 -0
  317. package/dist/vega/{p-263ad7b6.js → p-e88f2dc3.js} +1 -1
  318. package/dist/vega/{p-e8654ab5.entry.js → p-ead1da57.entry.js} +1 -1
  319. package/dist/vega/{p-1be7c6c4.js → p-f2c8c363.js} +1 -1
  320. package/dist/vega/p-f3831dc9.entry.js +1 -0
  321. package/dist/vega/{p-8f6d42b0.entry.js → p-f38a4be2.entry.js} +1 -1
  322. package/dist/vega/p-f427d88c.entry.js +1 -0
  323. package/dist/vega/{p-e9e1293a.entry.js → p-f6cd7a08.entry.js} +1 -1
  324. package/dist/vega/vega.esm.js +1 -1
  325. package/package.json +1 -1
  326. package/dist/cjs/column-operation-1cac8386.js +0 -1325
  327. package/dist/cjs/vega-rich-text-table-selection-widget.cjs.entry.js +0 -184
  328. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-children-remove-interceptor.js +0 -42
  329. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-content-delete-interceptor.js +0 -25
  330. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-row-insert-interceptor.js +0 -23
  331. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-block-strategy.js +0 -25
  332. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-column-strategy.js +0 -57
  333. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.js +0 -57
  334. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-block-strategy.js +0 -54
  335. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-column-strategy.js +0 -42
  336. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-strategy.js +0 -117
  337. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/select-table-column-strategy.js +0 -22
  338. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-column-strategy.abstract.js +0 -19
  339. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.js +0 -133
  340. package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.js +0 -99
  341. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-block-action.js +0 -13
  342. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-column-action.js +0 -13
  343. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-row-action.js +0 -18
  344. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-block-action.js +0 -13
  345. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-column-action.js +0 -19
  346. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-action.js +0 -26
  347. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/select-table-column-action.js +0 -13
  348. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.js +0 -18
  349. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-caption-action.js +0 -13
  350. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.js +0 -18
  351. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/toggle-header-row-action.js +0 -13
  352. package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/toggle-header-table-column-action.js +0 -15
  353. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-annotation.js +0 -91
  354. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.js +0 -57
  355. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.js +0 -120
  356. package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.js +0 -40
  357. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +0 -117
  358. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-body-block.js +0 -55
  359. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.js +0 -65
  360. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.js +0 -63
  361. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-block.js +0 -59
  362. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.js +0 -46
  363. package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-row-block.js +0 -59
  364. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.js +0 -15
  365. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.js +0 -22
  366. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.js +0 -74
  367. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.js +0 -99
  368. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.js +0 -12
  369. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.js +0 -15
  370. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.js +0 -103
  371. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.js +0 -15
  372. package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-setting-popover-renderer.js +0 -145
  373. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/caption-operation.js +0 -78
  374. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/column-operation.js +0 -109
  375. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.js +0 -132
  376. package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.js +0 -44
  377. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +0 -118
  378. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-icon.js +0 -3
  379. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-selection.js +0 -348
  380. package/dist/collection/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.js +0 -229
  381. package/dist/collection/components/vega-rich-text-editor/extensions/table/utils/utils.js +0 -102
  382. 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
  383. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/renderers/selection-widget-renderer.js +0 -83
  384. 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
  385. 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
  386. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/assets/icon.js +0 -20
  387. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/caption-button-slimmer.js +0 -27
  388. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/cell-properties-button-slimmer.js +0 -26
  389. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/column-button-slimmer.js +0 -86
  390. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.js +0 -101
  391. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-properties-button-slimmer.js +0 -26
  392. 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
  393. 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 -50
  394. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.css +0 -20
  395. package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.js +0 -166
  396. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/caption-operation.test.js +0 -99
  397. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-annotation.test.js +0 -89
  398. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-caption-annotations.test.js +0 -79
  399. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-cell-annotation.test.js +0 -128
  400. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-dto.test.js +0 -517
  401. package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-test-utils.js +0 -172
  402. package/dist/esm/column-operation-4a93bf52.js +0 -1300
  403. package/dist/esm/vega-rich-text-table-selection-widget.entry.js +0 -180
  404. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-children-remove-interceptor.d.ts +0 -25
  405. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-content-delete-interceptor.d.ts +0 -20
  406. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-row-insert-interceptor.d.ts +0 -19
  407. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-block-strategy.d.ts +0 -14
  408. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-column-strategy.d.ts +0 -31
  409. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.d.ts +0 -28
  410. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-block-strategy.d.ts +0 -27
  411. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-column-strategy.d.ts +0 -19
  412. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-strategy.d.ts +0 -27
  413. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/select-table-column-strategy.d.ts +0 -12
  414. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-column-strategy.abstract.d.ts +0 -20
  415. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.d.ts +0 -41
  416. package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.d.ts +0 -45
  417. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-block-action.d.ts +0 -12
  418. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-column-action.d.ts +0 -15
  419. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-row-action.d.ts +0 -17
  420. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-block-action.d.ts +0 -20
  421. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-column-action.d.ts +0 -23
  422. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-action.d.ts +0 -23
  423. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/select-table-column-action.d.ts +0 -18
  424. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.d.ts +0 -16
  425. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-caption-action.d.ts +0 -14
  426. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.d.ts +0 -16
  427. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/toggle-header-row-action.d.ts +0 -12
  428. package/dist/types/components/vega-rich-text-editor/extensions/table/actions/toggle-header-table-column-action.d.ts +0 -16
  429. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-annotation.d.ts +0 -64
  430. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.d.ts +0 -26
  431. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.d.ts +0 -66
  432. package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.d.ts +0 -22
  433. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +0 -78
  434. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-body-block.d.ts +0 -42
  435. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.d.ts +0 -41
  436. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.d.ts +0 -45
  437. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-block.d.ts +0 -42
  438. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.d.ts +0 -30
  439. package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-row-block.d.ts +0 -44
  440. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.d.ts +0 -12
  441. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.d.ts +0 -13
  442. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.d.ts +0 -37
  443. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.d.ts +0 -51
  444. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.d.ts +0 -12
  445. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.d.ts +0 -12
  446. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.d.ts +0 -39
  447. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.d.ts +0 -12
  448. package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-setting-popover-renderer.d.ts +0 -65
  449. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/caption-operation.d.ts +0 -36
  450. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/column-operation.d.ts +0 -55
  451. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.d.ts +0 -61
  452. package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.d.ts +0 -46
  453. package/dist/types/components/vega-rich-text-editor/extensions/table/table-extension.d.ts +0 -31
  454. package/dist/types/components/vega-rich-text-editor/extensions/table/table-icon.d.ts +0 -3
  455. package/dist/types/components/vega-rich-text-editor/extensions/table/table-selection.d.ts +0 -142
  456. package/dist/types/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.d.ts +0 -85
  457. package/dist/types/components/vega-rich-text-editor/extensions/table/utils/utils.d.ts +0 -53
  458. 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
  459. 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
  460. 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
  461. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/assets/icon.d.ts +0 -2
  462. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/caption-button-slimmer.d.ts +0 -11
  463. 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
  464. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/column-button-slimmer.d.ts +0 -28
  465. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.d.ts +0 -36
  466. 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
  467. 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
  468. 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 -11
  469. package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.d.ts +0 -46
  470. package/dist/types/components/vega-rich-text-editor/test/extensions/table/caption-operation.test.d.ts +0 -1
  471. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-annotation.test.d.ts +0 -1
  472. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-caption-annotations.test.d.ts +0 -1
  473. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-cell-annotation.test.d.ts +0 -1
  474. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-dto.test.d.ts +0 -1
  475. package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-test-utils.d.ts +0 -11
  476. package/dist/vega/p-09561e90.entry.js +0 -1
  477. package/dist/vega/p-095c778c.entry.js +0 -1
  478. package/dist/vega/p-174db33b.js +0 -1
  479. package/dist/vega/p-194722fe.entry.js +0 -1
  480. package/dist/vega/p-1dd07d64.entry.js +0 -1
  481. package/dist/vega/p-218e29c2.js +0 -1
  482. package/dist/vega/p-238ec2b9.entry.js +0 -1
  483. package/dist/vega/p-2428457e.entry.js +0 -1
  484. package/dist/vega/p-2688bc6f.entry.js +0 -1
  485. package/dist/vega/p-26a43b4c.js +0 -1
  486. package/dist/vega/p-285815b5.entry.js +0 -1
  487. package/dist/vega/p-2c07b213.entry.js +0 -1
  488. package/dist/vega/p-34a1a0c5.entry.js +0 -1
  489. package/dist/vega/p-3f561dd5.entry.js +0 -1
  490. package/dist/vega/p-475f7bda.js +0 -1
  491. package/dist/vega/p-4785203e.entry.js +0 -1
  492. package/dist/vega/p-5051f0c1.entry.js +0 -1
  493. package/dist/vega/p-529daab4.entry.js +0 -1
  494. package/dist/vega/p-53c6ce54.entry.js +0 -1
  495. package/dist/vega/p-5585d2b5.js +0 -1
  496. package/dist/vega/p-58f5da43.js +0 -1
  497. package/dist/vega/p-5d7e908a.entry.js +0 -1
  498. package/dist/vega/p-63c84ff6.entry.js +0 -1
  499. package/dist/vega/p-6961fac0.entry.js +0 -1
  500. package/dist/vega/p-6b631ff1.entry.js +0 -1
  501. package/dist/vega/p-6ee3b103.js +0 -1
  502. package/dist/vega/p-776b2f3d.entry.js +0 -1
  503. package/dist/vega/p-7ac32e71.js +0 -1
  504. package/dist/vega/p-7e6c5eb8.entry.js +0 -1
  505. package/dist/vega/p-8014cb45.entry.js +0 -1
  506. package/dist/vega/p-877b36ae.entry.js +0 -1
  507. package/dist/vega/p-95188267.entry.js +0 -1
  508. package/dist/vega/p-9e545fde.entry.js +0 -1
  509. package/dist/vega/p-9f4364ec.entry.js +0 -1
  510. package/dist/vega/p-a33dc7eb.entry.js +0 -1
  511. package/dist/vega/p-a3a80712.js +0 -1
  512. package/dist/vega/p-baa44cf5.entry.js +0 -1
  513. package/dist/vega/p-badc14cc.entry.js +0 -1
  514. package/dist/vega/p-bdb5362c.entry.js +0 -1
  515. package/dist/vega/p-be33db7b.js +0 -1
  516. package/dist/vega/p-bfe01850.js +0 -1
  517. package/dist/vega/p-c141b10e.entry.js +0 -1
  518. package/dist/vega/p-c465b6dd.entry.js +0 -1
  519. package/dist/vega/p-d6cc786a.entry.js +0 -1
  520. package/dist/vega/p-d85d7862.entry.js +0 -1
  521. package/dist/vega/p-e47ae7bc.entry.js +0 -1
  522. package/dist/vega/p-e8495b6c.entry.js +0 -1
  523. package/dist/vega/p-e94701e2.entry.js +0 -1
  524. package/dist/vega/p-ef48178e.entry.js +0 -1
  525. package/dist/vega/p-fca7c998.entry.js +0 -1
  526. package/style/vega-icons.css +0 -17266
@@ -1,184 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-58ea899e.js');
6
- const globalSlimmerRegistry = require('./global-slimmer-registry-b3bce7e0.js');
7
- const componentUsageRuntimeMetrics = require('./component-usage-runtime-metrics-d10ace87.js');
8
- const component = require('./component-1e352960.js');
9
- const ui = require('./ui-9e181079.js');
10
- const keyboardManagerSlimmer = require('./keyboard-manager-slimmer-15e65357.js');
11
- require('./keyboard-manager-d8adb0ed.js');
12
- require('./type-guard-69d2cf01.js');
13
- require('./breakpoints-ebde4837.js');
14
- require('./ui-32e69595.js');
15
- require('./typography-4560e7f1.js');
16
- require('./translation-5f9f9c0c.js');
17
- require('./change-manager-a297e4d2.js');
18
- require('./static-subject-title-5829a298.js');
19
- require('./create-public-api-runtime-metrics-slimmer-e2e274e1.js');
20
- require('./dynamic-slimmer-f31fdfd7.js');
21
-
22
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
23
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
24
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
25
- 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;
26
- return c > 3 && r && Object.defineProperty(target, key, r), r;
27
- };
28
- class SelectionWidgetRenderer extends globalSlimmerRegistry.VegaSlimmer {
29
- constructor() {
30
- super(...arguments);
31
- /**
32
- * Handles the selection of the widget.
33
- *
34
- * @param {MouseEvent} e - The mouse event.
35
- */
36
- this.handleWidgetSelection = (e) => {
37
- e.stopPropagation();
38
- this.isSelected = true;
39
- };
40
- /**
41
- * Handles clicks outside the widget to deselect it.
42
- */
43
- this.handleEditorContentClick = () => {
44
- this.isSelected = false;
45
- };
46
- /**
47
- * Registers the editor content click listener.
48
- */
49
- this.registerEditorContentClickListener = () => {
50
- if (this.editorContentContainerRef) {
51
- this.editorContentContainerRef.addEventListener('mousedown', this.handleEditorContentClick);
52
- }
53
- };
54
- /**
55
- * Un-registers the editor content click listener.
56
- */
57
- this.unRegisterEditorContentClickListener = () => {
58
- if (this.editorContentContainerRef) {
59
- this.editorContentContainerRef.removeEventListener('mousedown', this.handleEditorContentClick);
60
- }
61
- };
62
- }
63
- connectedCallback() {
64
- this.editorContentContainerRef = ui.findParent(this.host, '.rich-text-editor-container');
65
- }
66
- disconnectedCallback() {
67
- this.unRegisterEditorContentClickListener();
68
- }
69
- watchIsSelected(newValue) {
70
- if (newValue) {
71
- this.registerEditorContentClickListener();
72
- }
73
- else {
74
- this.unRegisterEditorContentClickListener();
75
- }
76
- }
77
- getWidgetHandleRef() {
78
- return this.widgetHandleRef;
79
- }
80
- render() {
81
- return (index.h("div", { class: ui.arrayToClassString(['v-rte-widget__selection', this.isSelected ? 'selected' : '']), contentEditable: false },
82
- index.h("button", { class: "v-rte-widget__selection-handle", ref: (el) => (this.widgetHandleRef = el), onClick: this.handleWidgetSelection }),
83
- index.h("div", { class: "v-rte-widget__selection-content" },
84
- index.h("slot", null))));
85
- }
86
- }
87
- __decorate$2([
88
- globalSlimmerRegistry.MapToComponentField()
89
- ], SelectionWidgetRenderer.prototype, "host", void 0);
90
- __decorate$2([
91
- globalSlimmerRegistry.MapToComponentField({ writable: true })
92
- ], SelectionWidgetRenderer.prototype, "isSelected", void 0);
93
- __decorate$2([
94
- globalSlimmerRegistry.MapToComponentMethod('connectedCallback')
95
- ], SelectionWidgetRenderer.prototype, "connectedCallback", null);
96
- __decorate$2([
97
- globalSlimmerRegistry.MapToComponentMethod('disconnectedCallback')
98
- ], SelectionWidgetRenderer.prototype, "disconnectedCallback", null);
99
- __decorate$2([
100
- globalSlimmerRegistry.MapToComponentMethod('watchIsSelected')
101
- ], SelectionWidgetRenderer.prototype, "watchIsSelected", null);
102
-
103
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
104
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
105
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
106
- 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;
107
- return c > 3 && r && Object.defineProperty(target, key, r), r;
108
- };
109
- /**
110
- * Keyboard controller for table selection widget
111
- */
112
- class SelectionWidgetKeyboardController extends keyboardManagerSlimmer.KeyboardManagerSlimmer {
113
- constructor() {
114
- super(() => [
115
- {
116
- keyCode: 'Backspace',
117
- eventName: 'keydown',
118
- activeElementInScope: [this.selectionWidgetRenderer.getWidgetHandleRef()],
119
- callback: this.handleDeleteKeyDown,
120
- },
121
- ]);
122
- /**
123
- * Handles the delete key down event.
124
- *
125
- */
126
- this.handleDeleteKeyDown = () => {
127
- this.vegaRemove.emit();
128
- };
129
- }
130
- }
131
- __decorate$1([
132
- globalSlimmerRegistry.MapToComponentField()
133
- ], SelectionWidgetKeyboardController.prototype, "vegaRemove", void 0);
134
- __decorate$1([
135
- globalSlimmerRegistry.MapToComponentField()
136
- ], SelectionWidgetKeyboardController.prototype, "selectionWidgetRenderer", void 0);
137
-
138
- const vegaRichTextTableSelectionWidgetCss = ":host{display:block;position:relative;padding-top:19px}:host(:hover) .v-rte-widget__selection-content{outline:2px solid rgb(255, 200, 61)}:host(:hover) .v-rte-widget__selection-handle{display:revert;background:rgb(255, 200, 61)}.v-rte-widget__selection.selected .v-rte-widget__selection-content{outline:2px solid rgb(38, 42, 255)}.v-rte-widget__selection.selected .v-rte-widget__selection-handle{display:revert;background:rgb(38, 42, 255)}.v-rte-widget__selection-handle{border:none;outline:none;width:15px;height:15px;position:absolute;top:2px;left:-2px;padding:2px;box-sizing:border-box;display:none}.v-rte-widget__selection-handle:after{content:\"\";border:1px dashed rgb(255, 255, 255);width:auto;height:100%;display:block}";
139
-
140
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
141
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
142
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
143
- r = Reflect.decorate(decorators, target, key, desc);
144
- else
145
- for (var i = decorators.length - 1; i >= 0; i--)
146
- if (d = decorators[i])
147
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
148
- return c > 3 && r && Object.defineProperty(target, key, r), r;
149
- };
150
- const VegaRichTextTableSelectionWidget = class {
151
- constructor(hostRef) {
152
- index.registerInstance(this, hostRef);
153
- this.vegaRemove = index.createEvent(this, "vegaRemove", 7);
154
- this.globalSlimmers = {};
155
- this.vegaComponentUsageRuntimeMetricsSlimmer = new componentUsageRuntimeMetrics.VegaComponentUsageRuntimeMetricsSlimmer();
156
- this.selectionWidgetRenderer = new SelectionWidgetRenderer();
157
- this.keyboardController = new SelectionWidgetKeyboardController();
158
- this.isSelected = false;
159
- }
160
- watchIsSelected(newValue) {
161
- }
162
- render() {
163
- return component.sanitizeVegaComponent(index.h(index.Host, null, this.selectionWidgetRenderer.render()), this.host);
164
- }
165
- get host() { return index.getElement(this); }
166
- static get watchers() { return {
167
- "isSelected": ["watchIsSelected"]
168
- }; }
169
- };
170
- __decorate([
171
- componentUsageRuntimeMetrics.InjectVegaGlobalSlimmer()
172
- ], VegaRichTextTableSelectionWidget.prototype, "globalSlimmers", void 0);
173
- __decorate([
174
- globalSlimmerRegistry.InjectVegaSlimmer()
175
- ], VegaRichTextTableSelectionWidget.prototype, "vegaComponentUsageRuntimeMetricsSlimmer", void 0);
176
- __decorate([
177
- globalSlimmerRegistry.InjectVegaSlimmer()
178
- ], VegaRichTextTableSelectionWidget.prototype, "selectionWidgetRenderer", void 0);
179
- __decorate([
180
- globalSlimmerRegistry.InjectVegaSlimmer()
181
- ], VegaRichTextTableSelectionWidget.prototype, "keyboardController", void 0);
182
- VegaRichTextTableSelectionWidget.style = vegaRichTextTableSelectionWidgetCss;
183
-
184
- exports.vega_rich_text_table_selection_widget = VegaRichTextTableSelectionWidget;
@@ -1,42 +0,0 @@
1
- import { ActionHandlerInterceptor, } from '../../../dto/action-handle-strategies/action-handle-interceptor.abstract';
2
- import { RTETextBlock } from '../../../dto/blocks/text-block';
3
- import { AppendChildrenAction } from '../../../dto/actions/append-child-nodes-action';
4
- import { RTETextNode } from '../../../dto/nodes/text-node';
5
- import { generateUUID } from '../../../../../utils/misc';
6
- /**
7
- * Interceptor to prevent removal of all children from a cell, ensuring at least one child remains.
8
- */
9
- export class PreventCellChildrenRemoveInterceptor extends ActionHandlerInterceptor {
10
- /**
11
- * Prevent removal if the target cell would be left empty after the action.
12
- *
13
- * @param {RemoveChildrenAction} action - the action to be intercepted
14
- * @param {RTETableCellBlock | RTETableHeadCellBlock} target - the target cell block
15
- * @returns {boolean} - true if the removal should be intercepted, false otherwise
16
- */
17
- canIntercept(action, target) {
18
- return action.entityToBeRemoved && target.children.length === 1;
19
- }
20
- /**
21
- * Add a new empty text node to the cell to prevent it from removal.
22
- *
23
- * @param {ActionHandlerExecution} _execution - the original execution function
24
- * @param {RemoveChildrenAction} action - the action to be intercepted
25
- * @param {RTETableCellBlock | RTETableHeadCellBlock} target - the target cell block
26
- */
27
- intercept(_execution, action, target) {
28
- if (!(action.entityToBeRemoved instanceof RTETextBlock)) {
29
- const newParagraph = RTETextBlock.from({
30
- id: generateUUID(),
31
- type: 'paragraph',
32
- nodes: [{ id: generateUUID(), type: 'text', text: '' }],
33
- });
34
- target.children = [];
35
- target.apply(new AppendChildrenAction([newParagraph]));
36
- return;
37
- }
38
- action.entityToBeRemoved.apply(new AppendChildrenAction([
39
- new RTETextNode(generateUUID(), '', action.entityToBeRemoved),
40
- ]));
41
- }
42
- }
@@ -1,25 +0,0 @@
1
- import { ActionHandlerInterceptor } from '../../../dto/action-handle-strategies/action-handle-interceptor.abstract';
2
- import { methodPlaceholder } from 'vega-slimmer/core';
3
- import { RTETableCellBlock } from '../dto/table-cell-block';
4
- /**
5
- * Interceptor to prevent deletion of a table cell if it is the cell with empty content.
6
- */
7
- export class PreventCellContentDeleteInterceptor extends ActionHandlerInterceptor {
8
- /**
9
- * Prevent deletion if the target block is the only child of a table cell and is empty.
10
- *
11
- * @param {DeleteBlockContentAction} _action - the action to be intercepted
12
- * @param {RTETextBlock} target - the target block
13
- * @returns {boolean} - true if the deletion should be intercepted, false otherwise
14
- */
15
- canIntercept(_action, target) {
16
- const cell = target.parent;
17
- return cell instanceof RTETableCellBlock && cell.children.length === 1 && !target.isNotEmpty();
18
- }
19
- /**
20
- * @inheritDoc
21
- */
22
- intercept() {
23
- methodPlaceholder();
24
- }
25
- }
@@ -1,23 +0,0 @@
1
- import { ActionHandlerInterceptor } from '../../../dto/action-handle-strategies/action-handle-interceptor.abstract';
2
- import { methodPlaceholder } from 'vega-slimmer/core';
3
- import { RTETableCellBlock } from '../dto/table-cell-block';
4
- /**
5
- * Interceptor to prevent insertion of non-cell blocks into a table row.
6
- */
7
- export class PreventRowInsertInterceptor extends ActionHandlerInterceptor {
8
- /**
9
- * Prevent insertion if any of the children to be inserted is not a table cell block.
10
- *
11
- * @param {InsertChildrenBeforeAction} action - the action to be intercepted
12
- * @returns {boolean} - true if the insertion should be intercepted, false otherwise
13
- */
14
- canIntercept(action) {
15
- return action.childrenToBeInserted.some((item) => !(item instanceof RTETableCellBlock));
16
- }
17
- /**
18
- * @inheritDoc
19
- */
20
- intercept() {
21
- methodPlaceholder();
22
- }
23
- }
@@ -1,25 +0,0 @@
1
- import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
2
- import { RemoveChildrenAction } from '../../../dto/actions/remove-child-action';
3
- import { UpdateCursorPositionAction } from '../../../dto/actions/update-cursor-position-action';
4
- import { InsertChildrenAfterAction } from '../../../dto/actions/insert-children-after-block';
5
- /**
6
- * Strategy to handle the deletion of a table block from the parent.
7
- */
8
- export class DeleteTableBlockStrategy extends ActionHandleStrategy {
9
- /**
10
- * Deletes the specified table block and updates the cursor position.
11
- *
12
- * @param {DeleteTableBlockAction} action - The action containing the table block to delete.
13
- */
14
- handleAction(action) {
15
- const tableBlock = action.tableBlock;
16
- const parent = tableBlock.parent;
17
- const root = super.getRootContent(tableBlock);
18
- const newParagraph = super.createNewParagraph('');
19
- parent.apply(new InsertChildrenAfterAction(tableBlock, newParagraph));
20
- parent.apply(new RemoveChildrenAction(tableBlock));
21
- if (root) {
22
- root.apply(new UpdateCursorPositionAction(newParagraph.getLastNode()));
23
- }
24
- }
25
- }
@@ -1,57 +0,0 @@
1
- import { RemoveChildrenAction } from '../../../dto/actions/remove-child-action';
2
- import { getAllTableRows, getFirstNode } from '../utils/utils';
3
- import { UpdateCursorPositionAction } from '../../../dto/actions/update-cursor-position-action';
4
- import { TableColumnStrategy } from './table-column-strategy.abstract';
5
- /**
6
- * Strategy to handle the deletion of table column from the parent.
7
- */
8
- export class DeleteTableColumnStrategy extends TableColumnStrategy {
9
- /**
10
- * Deletes the specified table column and updates the cursor position.
11
- *
12
- * @param {DeleteTableColumnAction} action - The action containing the table column to delete.
13
- * @param {RTETableBlock} target - The target table block from which the column will be deleted.
14
- */
15
- handleAction(action, target) {
16
- const [startCellIndex, endCellIndex] = this.getBoundaryCellIndexOfRow(action.tableCellDeleteRange);
17
- const allTableRows = getAllTableRows(target);
18
- // Find the next focusable cell before deletion
19
- const nextFocusableCell = this.findNextFocusableCell(action.tableCellDeleteRange, [startCellIndex, endCellIndex]);
20
- allTableRows.forEach((row) => {
21
- this.deleteCellsInRow(row, startCellIndex, endCellIndex);
22
- });
23
- const root = this.getRootContent(target);
24
- const nextFocusNode = getFirstNode(nextFocusableCell);
25
- if (root && nextFocusNode) {
26
- root.apply(new UpdateCursorPositionAction(nextFocusNode));
27
- }
28
- }
29
- /**
30
- * Find the next focusable cell either after the deleted range or before it.
31
- *
32
- * @param {RTETableCellBlock[]} tableCellBlockDeleteRange - The range of table cell blocks to be deleted.
33
- * @param {number[]} indexRange - The start and end indices of the cells to be deleted.
34
- * @returns {Nullable<RTETableCellBlock | RTETableHeadCellBlock>} The next focusable cell.
35
- */
36
- findNextFocusableCell(tableCellBlockDeleteRange, indexRange) {
37
- const cellAfterEndOfRange = tableCellBlockDeleteRange[tableCellBlockDeleteRange.length - 1].parent.children[indexRange[indexRange.length - 1] + 1];
38
- const cellBeforeStartOfRange = tableCellBlockDeleteRange[0].parent.children[indexRange[0] - 1];
39
- return cellAfterEndOfRange !== null && cellAfterEndOfRange !== void 0 ? cellAfterEndOfRange : cellBeforeStartOfRange;
40
- }
41
- /**
42
- * Deletes cells in a given row from start index to end index.
43
- *
44
- * @param {RTETableRowBlock} row - The table row block.
45
- * @param {number} startCellIndex - The start index of the cell to delete.
46
- * @param {number} endCellIndex - The end index of the cell to delete.
47
- */
48
- deleteCellsInRow(row, startCellIndex, endCellIndex) {
49
- const needDeleteCells = [];
50
- for (let index = startCellIndex; index <= endCellIndex; index++) {
51
- needDeleteCells.push(row.children[index]);
52
- }
53
- needDeleteCells.forEach((cell) => {
54
- row.apply(new RemoveChildrenAction(cell));
55
- });
56
- }
57
- }
@@ -1,57 +0,0 @@
1
- import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
2
- import { RemoveChildrenAction } from '../../../dto/actions/remove-child-action';
3
- import { UpdateCursorPositionAction } from '../../../dto/actions/update-cursor-position-action';
4
- import { RTETableBodyBlock } from '../dto/table-body-block';
5
- import { RTETableHeadBlock } from '../dto/table-head-block';
6
- /**
7
- * Strategy class for handling the deletion of table rows.
8
- */
9
- export class DeleteTableRowStrategy extends ActionHandleStrategy {
10
- /**
11
- * @inheritDoc
12
- */
13
- handleAction(action, target) {
14
- const { rowsToBeRemoved } = action;
15
- const futureFocusRow = this.getFutureFocusRow(rowsToBeRemoved[0], rowsToBeRemoved[rowsToBeRemoved.length - 1], target);
16
- rowsToBeRemoved.forEach((row) => {
17
- this.removeRow(row);
18
- });
19
- if (futureFocusRow) {
20
- const root = this.getRootContent(target);
21
- if (root) {
22
- const focusNode = futureFocusRow.getLastNode();
23
- root.apply(new UpdateCursorPositionAction(focusNode, focusNode.getRangeEndOffset()));
24
- }
25
- }
26
- }
27
- /**
28
- * Removes the specified row from its parent table section.
29
- * // TODO: Add handling for when selected row has or in merge column.
30
- *
31
- * @param {RTETableRowBlock} rowToBeRemoved The row to be removed.
32
- */
33
- removeRow(rowToBeRemoved) {
34
- rowToBeRemoved.parent.apply(new RemoveChildrenAction(rowToBeRemoved));
35
- }
36
- /**
37
- * Get the future focus row after deletion.
38
- *
39
- * @param {RTETableRowBlock} startRow - The first row to be deleted.
40
- * @param {RTETableRowBlock} endRow - The last row to be deleted.
41
- * @param {RTETableBlock} table - The table containing the rows.
42
- * @returns {Nullable<RTETableRowBlock>} The row to be focused after deletion.
43
- */
44
- getFutureFocusRow(startRow, endRow, table) {
45
- const allRows = table.children
46
- .filter((item) => item instanceof RTETableHeadBlock || item instanceof RTETableBodyBlock)
47
- .flatMap((block) => block.children);
48
- const startIndex = allRows.indexOf(startRow);
49
- const endIndex = allRows.indexOf(endRow);
50
- if (allRows[startIndex - 1]) {
51
- return allRows[startIndex - 1];
52
- }
53
- else if (allRows[endIndex + 1]) {
54
- return allRows[endIndex + 1];
55
- }
56
- }
57
- }
@@ -1,54 +0,0 @@
1
- import { AppendChildrenAction } from '../../../dto/actions/append-child-nodes-action';
2
- import { InsertChildrenAfterAction } from '../../../dto/actions/insert-children-after-block';
3
- import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
4
- import { generateUUID } from '../../../../../utils/misc';
5
- import { VegaRTEContent } from '../../../dto/content-state';
6
- import { RTETableBlock } from '../dto/table-block';
7
- import { generateTableBody } from '../utils/utils';
8
- /**
9
- * Strategy to handle the insertion of a block into the rich text editor.
10
- */
11
- export class InsertTableBlockStrategy extends ActionHandleStrategy {
12
- /**
13
- * @inheritDoc
14
- */
15
- handleAction(action, target) {
16
- const tableBlock = this.createTableBlock(action.rowCount, action.columnCount);
17
- const emptyParagraph = super.createNewParagraph('');
18
- const referenceBlock = this.getReferenceBlock(target);
19
- if (referenceBlock) {
20
- referenceBlock.parent.apply(new InsertChildrenAfterAction(referenceBlock, tableBlock, emptyParagraph));
21
- }
22
- else {
23
- target.apply(new AppendChildrenAction([tableBlock, emptyParagraph]));
24
- }
25
- action.nextFocusNode = tableBlock.getFirstNode();
26
- }
27
- /**
28
- * Create a table block with the specified number of rows and columns.
29
- *
30
- * @param {number} row - The number of rows in the table.
31
- * @param {number} column - The number of columns in the table.
32
- * @returns {RTETableBlock} The created table block.
33
- */
34
- createTableBlock(row, column) {
35
- const normalizedRowCount = Math.max(row, 1);
36
- const normalizedColumnCount = Math.max(column, 1);
37
- return RTETableBlock.from({
38
- id: generateUUID(),
39
- type: 'table-block',
40
- children: [generateTableBody(normalizedRowCount, normalizedColumnCount)],
41
- });
42
- }
43
- /**
44
- * We need to get the correct block if the current target is a block element to avoid nesting blocks.
45
- *
46
- * @param {RTEBlock} currentTarget - The current target block or content.
47
- * @returns {Nullable<RTEBlock>} The reference block.
48
- */
49
- getReferenceBlock(currentTarget) {
50
- if (!(currentTarget instanceof VegaRTEContent)) {
51
- return currentTarget;
52
- }
53
- }
54
- }
@@ -1,42 +0,0 @@
1
- import { InsertChildrenAfterAction } from '../../../dto/actions/insert-children-after-block';
2
- import { RTETableCellBlock } from '../dto/table-cell-block';
3
- import { InsertTableColumnDirection } from '../actions/insert-table-column-action';
4
- import { InsertChildrenBeforeAction } from '../../../dto/actions/insert-children-before-block';
5
- import { getAllTableRows, getDefaultCellBlockTemplate } from '../utils/utils';
6
- import { RTETableHeadCellBlock } from '../dto/table-head-cell-block';
7
- import { TableColumnStrategy } from './table-column-strategy.abstract';
8
- /**
9
- * Strategy to handle the insertion of a table column into the RTETable.
10
- */
11
- export class InsertTableColumnStrategy extends TableColumnStrategy {
12
- /**
13
- * @inheritDoc
14
- */
15
- handleAction(action, target) {
16
- const insertDirection = action.insertDirection;
17
- const [startCellIndex, endCellIndex] = this.getBoundaryCellIndexOfRow(action.tableCellInsertRange);
18
- const allTableRows = getAllTableRows(target);
19
- allTableRows.forEach((row) => {
20
- if (insertDirection === InsertTableColumnDirection.LEFT) {
21
- const newCell = this.generateTableCell(row.children[startCellIndex]);
22
- row.apply(new InsertChildrenBeforeAction(row.children[startCellIndex], newCell));
23
- }
24
- else {
25
- const newCell = this.generateTableCell(row.children[endCellIndex + 1] || row.children[endCellIndex]);
26
- row.apply(new InsertChildrenAfterAction(row.children[endCellIndex], newCell));
27
- }
28
- });
29
- }
30
- /**
31
- * Generate a new table cell based on the original cell type.
32
- *
33
- * @param {RTETableCellBlock | RTETableHeadCellBlock} originalCell The original table cell block to base the new cell on.
34
- * @returns {RTETableCellBlock | RTETableHeadCellBlock} The newly generated table cell block.
35
- */
36
- generateTableCell(originalCell) {
37
- if (originalCell instanceof RTETableHeadCellBlock) {
38
- return RTETableHeadCellBlock.from(getDefaultCellBlockTemplate(originalCell.type));
39
- }
40
- return RTETableCellBlock.from(getDefaultCellBlockTemplate(originalCell.type));
41
- }
42
- }
@@ -1,117 +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 { InsertTableRowDirection } from '../actions/insert-table-row-action';
7
- import { RTETableBodyBlock } from '../dto/table-body-block';
8
- import { RTETableHeadBlock } from '../dto/table-head-block';
9
- import { RTETableRowBlock } from '../dto/table-row-block';
10
- /**
11
- * Strategy class for handling the insertion of a new row into a table.
12
- */
13
- export class InsertTableRowStrategy extends ActionHandleStrategy {
14
- /**
15
- * @inheritDoc
16
- */
17
- handleAction(action, target) {
18
- const { insertDirection, selectedRows } = action;
19
- // The reference block will control where to insert the new row
20
- let refBlock = insertDirection === InsertTableRowDirection.ABOVE
21
- ? selectedRows[0]
22
- : selectedRows[selectedRows.length - 1];
23
- // The row need to be inserted is a header row
24
- if (this.shouldInsertHeaderRow(refBlock, insertDirection)) {
25
- const headerBlock = RTETableRowBlock.from({
26
- id: generateUUID(),
27
- type: 'table-row',
28
- children: refBlock.children.map((item) => {
29
- return this.getDefaultCellBlockTemplate(item.type);
30
- }),
31
- });
32
- if (insertDirection === InsertTableRowDirection.ABOVE) {
33
- refBlock.parent.apply(new InsertChildrenBeforeAction(refBlock, headerBlock));
34
- }
35
- else {
36
- refBlock.parent.apply(new InsertChildrenAfterAction(refBlock, headerBlock));
37
- }
38
- }
39
- else {
40
- let direction = insertDirection;
41
- let tableBody = target.children.find((block) => block instanceof RTETableBodyBlock);
42
- // Should insert into body if reference block is in head row and body exists
43
- if (refBlock.parent instanceof RTETableHeadBlock && tableBody) {
44
- refBlock = tableBody.children[0];
45
- direction = InsertTableRowDirection.ABOVE;
46
- }
47
- const refBlockIsHeaderRow = refBlock.parent instanceof RTETableHeadBlock;
48
- const rowBlock = RTETableRowBlock.from({
49
- id: generateUUID(),
50
- type: 'table-row',
51
- children: refBlock.children.map((item) => {
52
- return this.getDefaultCellBlockTemplate(refBlockIsHeaderRow ? 'table-cell' : item.type);
53
- }),
54
- });
55
- if (!tableBody) {
56
- tableBody = RTETableBodyBlock.from({
57
- id: generateUUID(),
58
- type: 'table-body',
59
- children: [],
60
- });
61
- tableBody.apply(new AppendChildrenAction([rowBlock]));
62
- target.apply(new AppendChildrenAction([tableBody]));
63
- }
64
- else {
65
- if (direction === InsertTableRowDirection.ABOVE) {
66
- tableBody.apply(new InsertChildrenBeforeAction(refBlock, rowBlock));
67
- }
68
- else {
69
- tableBody.apply(new InsertChildrenAfterAction(refBlock, rowBlock));
70
- }
71
- }
72
- }
73
- }
74
- /**
75
- * Checks if a header row should be inserted based on the selected rows and position.
76
- *
77
- * @param {RTETableRowBlock} refBlock - The reference table row block.
78
- * @param {InsertTableRowDirection} direction - The direction to insert the new row (above or below).
79
- * @returns {boolean} True if a header row should be inserted, false otherwise.
80
- */
81
- shouldInsertHeaderRow(refBlock, direction) {
82
- if (direction === InsertTableRowDirection.ABOVE) {
83
- return refBlock.parent instanceof RTETableHeadBlock;
84
- }
85
- else {
86
- const parentBlock = refBlock.parent;
87
- return (parentBlock instanceof RTETableHeadBlock &&
88
- parentBlock.children[parentBlock.children.length - 1] !== refBlock);
89
- }
90
- }
91
- /**
92
- * Get the default cell block template.
93
- *
94
- * @param {string} cellType - The type of the cell block.
95
- * @returns {VegaRTETableCellBlock | VegaRTETableHeadCellBlock} The default cell block template.
96
- */
97
- getDefaultCellBlockTemplate(cellType) {
98
- const id = generateUUID();
99
- return {
100
- id,
101
- type: cellType,
102
- children: [
103
- {
104
- id: `${id}-p`,
105
- type: 'paragraph',
106
- nodes: [
107
- {
108
- id: `${id}-p-t`,
109
- type: 'text',
110
- text: '',
111
- },
112
- ],
113
- },
114
- ],
115
- };
116
- }
117
- }
@@ -1,22 +0,0 @@
1
- import { getAllTableRows } from '../utils/utils';
2
- import { TableColumnStrategy } from './table-column-strategy.abstract';
3
- /**
4
- * Strategy to handle the selection of a table column.
5
- */
6
- export class SelectTableColumnStrategy extends TableColumnStrategy {
7
- /**
8
- * @inheritDoc
9
- */
10
- handleAction(action, target) {
11
- const [startCellIndex, endCellIndex] = this.getBoundaryCellIndexOfRow(action.tableCellSelectRange);
12
- const allTableRows = getAllTableRows(target);
13
- const allNeedSelectedCells = [];
14
- allTableRows.forEach((row) => {
15
- for (let cellIndex = startCellIndex; cellIndex <= endCellIndex; cellIndex++) {
16
- const cellToSelect = row.children[cellIndex];
17
- allNeedSelectedCells.push(cellToSelect);
18
- }
19
- });
20
- action.selectCellCallback(allNeedSelectedCells);
21
- }
22
- }