@heartlandone/vega 2.73.0 → 2.74.0-RTE-table-preview
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.
- package/dist/cjs/align-left-4a76df69.js +22 -0
- package/dist/cjs/{app-globals-cc162173.js → app-globals-be2e868e.js} +18 -17
- package/dist/cjs/{code-block-823cd481.js → code-block-22ee2550.js} +35 -4
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-e2e0c6f3.js → component-value-history-controller-slimmer.abstract-3486cbc0.js} +26 -5
- package/dist/cjs/{dto-renderer-manager-bd2bd447.js → content-state-0be6fda3.js} +33 -60
- package/dist/cjs/{design-token-11656685.js → design-token-505997df.js} +1 -1
- package/dist/cjs/dto-renderer-manager-ae5fcbba.js +58 -0
- package/dist/cjs/{element-appender-slimmer-12f40b8b.js → element-appender-slimmer-26420c09.js} +6 -6
- package/dist/cjs/{form-field-controller-slimmer-6e3e14fd.js → form-field-controller-slimmer-56c551ea.js} +2 -2
- package/dist/cjs/{image-annotation-action-7408a4b3.js → image-annotation-action-462fd073.js} +3 -3
- package/dist/cjs/index-58ea899e.js +4 -0
- package/dist/cjs/{index-638a0f0d.js → index-fc538f17.js} +1 -1
- package/dist/cjs/index.cjs.js +43 -38
- package/dist/cjs/{language-extension-716015a5.js → language-extension-414149c2.js} +8 -8
- package/dist/cjs/loader.cjs.js +13 -8
- package/dist/cjs/{public-rules-2950f1fc.js → public-rules-2d18cf41.js} +4 -4
- package/dist/cjs/{range-c3c48132.js → range-439a0c0c.js} +1 -1
- package/dist/cjs/{responsive-format-facade-96c5f598.js → responsive-format-facade-0ececeb3.js} +3 -3
- package/dist/cjs/{rich-text-editor-required-rule-4aab05a3.js → rich-text-editor-required-rule-5a4f3626.js} +2 -2
- package/dist/cjs/{string-input-formatter-slimmer-338bbd73.js → string-input-formatter-slimmer-a8f4a9b1.js} +2 -2
- package/dist/cjs/{style-formatter-9c42d41b.js → style-formatter-142500c0.js} +1 -1
- package/dist/cjs/styles.constants-3aff0b56.js +1306 -0
- package/dist/cjs/{sub-state-notify-slimmer-1efa69c4.js → sub-state-notify-slimmer-011866d9.js} +1 -1
- package/dist/cjs/{sub-state-observer-slimmer-6afa62f5.js → sub-state-observer-slimmer-23d43f1e.js} +1 -1
- package/dist/cjs/table-extension-2a20da57.js +6018 -0
- package/dist/cjs/vega-accordion.cjs.entry.js +10 -6
- package/dist/cjs/vega-app-header-button.cjs.entry.js +10 -6
- package/dist/cjs/vega-box.cjs.entry.js +11 -7
- package/dist/cjs/vega-button-circle.cjs.entry.js +10 -6
- package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-button.cjs.entry.js +9 -5
- package/dist/cjs/vega-calendar_4.cjs.entry.js +3 -3
- package/dist/cjs/vega-card.cjs.entry.js +10 -6
- package/dist/cjs/vega-carousel.cjs.entry.js +9 -5
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-chip.cjs.entry.js +10 -6
- package/dist/cjs/vega-code-block.cjs.entry.js +4 -4
- package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
- package/dist/cjs/vega-combo-box.cjs.entry.js +3 -3
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +15 -11
- package/dist/cjs/vega-dialog_2.cjs.entry.js +17 -13
- package/dist/cjs/vega-divider.cjs.entry.js +10 -6
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +24 -11
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-file-uploader.cjs.entry.js +3 -3
- package/dist/cjs/vega-flag-icon.cjs.entry.js +10 -6
- package/dist/cjs/vega-flex.cjs.entry.js +11 -7
- package/dist/cjs/vega-font.cjs.entry.js +10 -6
- package/dist/cjs/vega-form.cjs.entry.js +4 -4
- package/dist/cjs/vega-grid.cjs.entry.js +10 -6
- package/dist/cjs/vega-icon.cjs.entry.js +10 -6
- package/dist/cjs/vega-image-uploader.cjs.entry.js +12 -8
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-numeric.cjs.entry.js +4 -4
- package/dist/cjs/vega-input-passcode.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +10 -6
- package/dist/cjs/vega-input-range.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-select.cjs.entry.js +181 -50
- package/dist/cjs/vega-input.cjs.entry.js +5 -5
- package/dist/cjs/{vega-internal-event-id-f2465f1b.js → vega-internal-event-id-73334b4b.js} +4 -0
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +17 -13
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +11 -7
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination.cjs.entry.js +9 -5
- package/dist/cjs/vega-popover_2.cjs.entry.js +11 -7
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +11 -7
- package/dist/cjs/vega-radio_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +10 -9
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +70 -54
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +1313 -0
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +12 -8
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +15 -11
- package/dist/cjs/vega-signature-capture.cjs.entry.js +12 -8
- package/dist/cjs/vega-stepper.cjs.entry.js +3 -3
- package/dist/cjs/vega-table_11.cjs.entry.js +16 -13
- package/dist/cjs/vega-textarea.cjs.entry.js +3 -3
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +12 -8
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +10 -6
- package/dist/cjs/vega.cjs.js +13 -8
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.js +6 -3
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +31 -0
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-item-controller.js +89 -0
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-source-controller.js +4 -0
- package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-value-controller.js +4 -0
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +33 -13
- package/dist/collection/components/vega-input-select/vega-input-select.js +27 -7
- package/dist/collection/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.js +10 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/plain-text-annotation.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +24 -2
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +18 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +18 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-children-remove-interceptor.js +42 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-content-delete-interceptor.js +26 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-row-insert-interceptor.js +23 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-block-strategy.js +25 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-column-strategy.js +57 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.js +57 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-block-strategy.js +54 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-column-strategy.js +42 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-strategy.js +117 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/select-table-column-strategy.js +22 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-column-strategy.abstract.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.js +133 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.js +99 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-cell-properties-strategy.js +23 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-properties-strategy.js +29 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-block-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-column-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-row-action.js +18 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-block-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-column-action.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-action.js +26 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/select-table-column-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.js +18 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-caption-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.js +18 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.js +18 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/toggle-header-row-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/toggle-header-table-column-action.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/update-table-properties-action.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler-base.js +97 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler.js +69 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-cell-annotation-handler.js +82 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-head-cell-annotation-handler.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-annotation.js +91 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.js +57 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.js +121 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.js +40 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/constants/styles.constants.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +119 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-body-block.js +56 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.js +69 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.js +66 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-block.js +60 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.js +53 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-row-block.js +60 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/caption-to-caption-block-strategy.js +50 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/table-to-table-block-strategy.js +42 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tbody-to-table-body-block-strategy.js +42 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/td-to-table-cell-block-strategy.js +71 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/thead-to-table-head-block-strategy.js +42 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tr-to-table-row-block-strategy.js +42 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.js +22 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.js +74 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.js +254 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.js +149 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-setting-popover-renderer.js +148 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/caption-operation.js +78 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-cancel-event-handler.js +17 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-change-event-handler.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-save-event-handler.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties.js +131 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/column-operation.js +109 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.js +132 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.js +44 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-cancel-event-handler.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-change-event-handler.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-save-event-handler.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties.js +50 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +152 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-icon.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-selection.js +371 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.js +234 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/utils/utils.js +102 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-bottom.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-middle.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-top.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-center-horizontal.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-left.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-right.js +3 -0
- 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 +27 -0
- 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 +106 -0
- 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 +259 -0
- 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 +58 -0
- 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 +93 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.css +148 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.js +241 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/controllers/selection-widget-keyboard-controller.js +36 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/renderers/selection-widget-renderer.js +83 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.css +41 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.js +80 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/assets/icon.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/caption-button-slimmer.js +27 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/cell-properties-button-slimmer.js +26 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/column-button-slimmer.js +86 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.js +101 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-properties-button-slimmer.js +26 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-setting-button-slimmer.abstract.js +75 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/vega-rich-text-table-setting-renderer.js +50 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.css +20 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.js +215 -0
- package/dist/collection/components/vega-rich-text-editor/public-api.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +21 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.js +10 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +23 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +6 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +257 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/annotation-handler-registration.test.js +164 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-annotation-handler.test.js +293 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-cell-annotation-handler.test.js +295 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-head-cell-annotation-handler.test.js +415 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/caption-operation.test.js +99 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-annotation.test.js +89 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-caption-annotations.test.js +79 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-cell-annotation.test.js +128 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-dto.test.js +517 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-element-to-dto-strategies.test.js +1450 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-test-utils.js +172 -0
- package/dist/collection/components/vega-rich-text-editor/test/spec-utils.js +5 -2
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.css +4 -0
- package/dist/collection/global/scripts/before-vega-load.js +2 -0
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +2 -0
- package/dist/collection/utils/spec-utils.js +4 -3
- package/dist/esm/align-left-7f959adf.js +17 -0
- package/dist/esm/{app-globals-949d2e18.js → app-globals-8b873b6f.js} +7 -6
- package/dist/esm/{child-nodes-event-prevent-slimmer-e6f98de5.js → child-nodes-event-prevent-slimmer-a6afdb1e.js} +1 -1
- package/dist/esm/{code-block-666674d7.js → code-block-76b29be1.js} +37 -6
- package/dist/esm/{component-value-history-controller-slimmer.abstract-171dda08.js → component-value-history-controller-slimmer.abstract-e1b0e163.js} +27 -6
- package/dist/esm/{dto-renderer-manager-49ae5d56.js → content-state-03f1d302.js} +32 -61
- package/dist/esm/{design-token-9b510e59.js → design-token-8fedb532.js} +1 -1
- package/dist/esm/{dom-node-subject-observer-factory-1aaa1159.js → dom-node-subject-observer-factory-e998eba4.js} +1 -1
- package/dist/esm/dto-renderer-manager-12bc9121.js +56 -0
- package/dist/esm/{element-appender-slimmer-b9890dcb.js → element-appender-slimmer-7b9326e2.js} +4 -4
- package/dist/esm/{event-emit-slimmer-2d791d0e.js → event-emit-slimmer-bbf6668c.js} +2 -2
- package/dist/esm/{form-field-controller-slimmer-257928c1.js → form-field-controller-slimmer-a0cff4d3.js} +3 -3
- package/dist/esm/{image-annotation-action-b3eea6a2.js → image-annotation-action-47cdc068.js} +3 -3
- package/dist/esm/index-090d31ca.js +4 -0
- package/dist/esm/{index-0d487fae.js → index-da7e5fe5.js} +2 -2
- package/dist/esm/index.js +17 -13
- package/dist/esm/{internal-vega-event-manager-fdee2a0a.js → internal-vega-event-manager-e799c54a.js} +1 -1
- package/dist/esm/{language-extension-b3f836d4.js → language-extension-de6e6caf.js} +2 -2
- package/dist/esm/loader.js +15 -10
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{public-rules-b164e40e.js → public-rules-c48cc5c9.js} +5 -5
- package/dist/esm/{range-9cc1422b.js → range-af6150a8.js} +1 -1
- package/dist/esm/{responsive-format-facade-94897ae8.js → responsive-format-facade-16da4623.js} +3 -3
- package/dist/esm/{rich-text-editor-required-rule-2131f21c.js → rich-text-editor-required-rule-7255832e.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-3a42d9b8.js → string-input-formatter-slimmer-82f85b0b.js} +3 -3
- package/dist/esm/{style-formatter-bb5aec96.js → style-formatter-6ca58f6b.js} +1 -1
- package/dist/esm/styles.constants-0dd6f7fa.js +1277 -0
- package/dist/esm/{sub-state-notify-slimmer-71b9bbd5.js → sub-state-notify-slimmer-4060c333.js} +2 -2
- package/dist/esm/{sub-state-observer-slimmer-41a1b380.js → sub-state-observer-slimmer-bfa5e63e.js} +2 -2
- package/dist/esm/table-extension-c83b7a56.js +5998 -0
- package/dist/esm/vega-accordion.entry.js +13 -9
- package/dist/esm/vega-app-header-button.entry.js +14 -10
- package/dist/esm/vega-banner.entry.js +3 -3
- package/dist/esm/vega-box.entry.js +13 -9
- package/dist/esm/vega-breadcrumb.entry.js +4 -4
- package/dist/esm/vega-button-circle.entry.js +14 -10
- package/dist/esm/vega-button-group_2.entry.js +7 -7
- package/dist/esm/vega-button-link.entry.js +4 -4
- package/dist/esm/vega-button.entry.js +13 -9
- package/dist/esm/vega-calendar_4.entry.js +7 -7
- package/dist/esm/vega-card.entry.js +12 -8
- package/dist/esm/vega-carousel.entry.js +12 -8
- package/dist/esm/vega-checkbox_2.entry.js +7 -7
- package/dist/esm/vega-chip.entry.js +14 -10
- package/dist/esm/vega-code-block.entry.js +8 -8
- package/dist/esm/vega-color-picker.entry.js +6 -6
- package/dist/esm/vega-combo-box.entry.js +7 -7
- package/dist/esm/vega-date-picker_2.entry.js +19 -15
- package/dist/esm/vega-dialog_2.entry.js +14 -10
- package/dist/esm/vega-divider.entry.js +12 -8
- package/dist/esm/vega-dropdown_5.entry.js +28 -15
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-label.entry.js +3 -3
- package/dist/esm/vega-file-uploader.entry.js +6 -6
- package/dist/esm/vega-flag-icon.entry.js +12 -8
- package/dist/esm/vega-flex.entry.js +13 -9
- package/dist/esm/vega-font.entry.js +12 -8
- package/dist/esm/vega-form.entry.js +8 -8
- package/dist/esm/vega-grid.entry.js +12 -8
- package/dist/esm/vega-icon.entry.js +12 -8
- package/dist/esm/vega-image-uploader.entry.js +15 -11
- package/dist/esm/vega-input-credit-card.entry.js +7 -7
- package/dist/esm/vega-input-numeric.entry.js +8 -8
- package/dist/esm/vega-input-passcode.entry.js +7 -7
- package/dist/esm/vega-input-phone-number.entry.js +14 -10
- package/dist/esm/vega-input-range.entry.js +7 -7
- package/dist/esm/vega-input-select.entry.js +185 -54
- package/dist/esm/vega-input.entry.js +8 -8
- package/dist/esm/{vega-internal-event-id-4a06d705.js → vega-internal-event-id-3edc9b4e.js} +3 -1
- package/dist/esm/vega-item-toggle.entry.js +3 -3
- package/dist/esm/vega-left-nav_5.entry.js +16 -12
- package/dist/esm/vega-loader-wrapper_2.entry.js +11 -7
- package/dist/esm/vega-page-notification_2.entry.js +1 -1
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +4 -4
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
- package/dist/esm/vega-pagination.entry.js +13 -9
- package/dist/esm/vega-popover_2.entry.js +14 -10
- package/dist/esm/vega-progress-tracker_2.entry.js +14 -10
- package/dist/esm/vega-radio_2.entry.js +7 -7
- package/dist/esm/vega-rich-text-content.entry.js +8 -7
- package/dist/esm/vega-rich-text-editor_4.entry.js +53 -37
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +1307 -0
- package/dist/esm/vega-segment-control.entry.js +3 -3
- package/dist/esm/vega-selection-chip_2.entry.js +16 -12
- package/dist/esm/vega-selection-tile_2.entry.js +8 -8
- package/dist/esm/vega-sidenav_3.entry.js +14 -10
- package/dist/esm/vega-signature-capture.entry.js +15 -11
- package/dist/esm/vega-stepper.entry.js +7 -7
- package/dist/esm/vega-tab-group_2.entry.js +4 -4
- package/dist/esm/vega-table_11.entry.js +14 -11
- package/dist/esm/vega-textarea.entry.js +7 -7
- package/dist/esm/vega-time-picker_2.entry.js +16 -12
- package/dist/esm/vega-toggle-switch.entry.js +6 -6
- package/dist/esm/vega-tooltip_2.entry.js +12 -8
- package/dist/esm/vega.js +15 -10
- package/dist/sri/vega-sri-manifest.json +696 -296
- package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.d.ts +1 -0
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +8 -1
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-item-controller.d.ts +29 -0
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-source-controller.d.ts +1 -0
- package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-value-controller.d.ts +1 -0
- package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.d.ts +1 -1
- package/dist/types/components/vega-input-select/types.d.ts +5 -0
- package/dist/types/components/vega-input-select/vega-input-select.d.ts +12 -4
- package/dist/types/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.d.ts +7 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation.abstract.d.ts +2 -5
- package/dist/types/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.d.ts +3 -3
- package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +10 -6
- package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +8 -1
- package/dist/types/components/vega-rich-text-editor/extensions/extension.abstract.d.ts +15 -2
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-children-remove-interceptor.d.ts +25 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-content-delete-interceptor.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-row-insert-interceptor.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-block-strategy.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-column-strategy.d.ts +31 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.d.ts +28 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-block-strategy.d.ts +27 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-column-strategy.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-strategy.d.ts +27 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/select-table-column-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-column-strategy.abstract.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.d.ts +41 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.d.ts +45 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-cell-properties-strategy.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-properties-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-block-action.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-column-action.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-row-action.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-block-action.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-column-action.d.ts +23 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-action.d.ts +23 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/select-table-column-action.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-caption-action.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/toggle-header-row-action.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/toggle-header-table-column-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/update-table-properties-action.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler-base.d.ts +43 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-cell-annotation-handler.d.ts +42 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-head-cell-annotation-handler.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-annotation.d.ts +64 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.d.ts +67 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.d.ts +22 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/constants/styles.constants.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +79 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-body-block.d.ts +42 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.d.ts +41 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.d.ts +45 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-block.d.ts +42 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.d.ts +34 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-row-block.d.ts +44 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/caption-to-caption-block-strategy.d.ts +29 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/table-to-table-block-strategy.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tbody-to-table-body-block-strategy.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/td-to-table-cell-block-strategy.d.ts +27 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/thead-to-table-head-block-strategy.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tr-to-table-row-block-strategy.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.d.ts +37 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.d.ts +88 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.d.ts +61 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-setting-popover-renderer.d.ts +66 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/caption-operation.d.ts +36 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-cancel-event-handler.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-change-event-handler.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-save-event-handler.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties.d.ts +62 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/column-operation.d.ts +55 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.d.ts +61 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.d.ts +47 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-cancel-event-handler.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-change-event-handler.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties-save-event-handler.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/table-properties.d.ts +33 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/table-extension.d.ts +36 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/table-icon.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/table-selection.d.ts +149 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.d.ts +86 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/utils/utils.d.ts +53 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-bottom.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-middle.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/align-top.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-center-horizontal.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-left.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/assets/objects-align-right.d.ts +3 -0
- 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 +14 -0
- 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 +49 -0
- 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 +99 -0
- 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 +27 -0
- 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 +33 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.d.ts +57 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/controllers/selection-widget-keyboard-controller.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/slimmers/renderers/selection-widget-renderer.d.ts +31 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.d.ts +27 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/assets/icon.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/caption-button-slimmer.d.ts +11 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/cell-properties-button-slimmer.d.ts +11 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/column-button-slimmer.d.ts +28 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.d.ts +36 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-properties-button-slimmer.d.ts +11 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/table-setting-button-slimmer.abstract.d.ts +36 -0
- 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 +11 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.d.ts +55 -0
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +39 -2
- package/dist/types/components/vega-rich-text-editor/public-api.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/extension-controller.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +19 -6
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/value-controller.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/annotation-handler/annotation-handler-registration.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-annotation-handler.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-cell-annotation-handler.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-head-cell-annotation-handler.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/caption-operation.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-annotation.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-caption-annotations.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-cell-annotation.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-dto.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-element-to-dto-strategies.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/extensions/table/table-test-utils.d.ts +11 -0
- package/dist/types/components/vega-rich-text-editor/test/spec-utils.d.ts +4 -0
- package/dist/types/components.d.ts +155 -6
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +2 -0
- package/dist/types/types/components.type.d.ts +5 -0
- package/dist/types/utils/spec-utils.d.ts +2 -3
- package/dist/vega/app-globals-955a2b3b.js +427 -0
- package/dist/vega/child-nodes-event-prevent-slimmer-a604a6dd.js +156 -0
- package/dist/vega/design-token-56b26205.js +402 -0
- package/dist/vega/element-appender-slimmer-8355fb28.js +1508 -0
- package/dist/vega/event-emit-slimmer-7a14f5e9.js +265 -0
- package/dist/vega/index.esm.js +57 -1
- package/dist/vega/internal-vega-event-manager-8c62c88e.js +458 -0
- package/dist/vega/p-068ee55e.entry.js +1 -0
- package/dist/vega/p-088f4613.entry.js +1 -0
- package/dist/vega/{p-3162a7fd.entry.js → p-08b4d097.entry.js} +1 -1
- package/dist/vega/p-0e4cecbd.entry.js +1 -0
- package/dist/vega/p-10ffb765.js +1 -0
- package/dist/vega/{p-ead1da57.entry.js → p-12a97dad.entry.js} +1 -1
- package/dist/vega/p-151b1deb.js +1 -0
- package/dist/vega/{p-30e7544c.js → p-16af7681.js} +1 -1
- package/dist/vega/p-1b44db34.js +1 -0
- package/dist/vega/p-1bda4016.entry.js +1 -0
- package/dist/vega/{p-6e84e451.entry.js → p-1f4a814e.entry.js} +1 -1
- package/dist/vega/{p-2ae5ad30.entry.js → p-206245d2.entry.js} +1 -1
- package/dist/vega/p-213be5e9.entry.js +1 -0
- package/dist/vega/{p-7a8c4cf8.entry.js → p-216f3436.entry.js} +1 -1
- package/dist/vega/p-224a4f3f.entry.js +1 -0
- package/dist/vega/p-22c76be7.entry.js +1 -0
- package/dist/vega/p-22da15d7.entry.js +1 -0
- package/dist/vega/{p-2409a475.entry.js → p-24766b9d.entry.js} +1 -1
- package/dist/vega/p-29a9c8f5.entry.js +1 -0
- package/dist/vega/p-34a994a1.entry.js +1 -0
- package/dist/vega/p-39d56e3d.js +1 -0
- package/dist/vega/{p-c7194674.entry.js → p-3bc7e162.entry.js} +1 -1
- package/dist/vega/p-40660c09.js +1 -0
- package/dist/vega/p-50a506ea.entry.js +1 -0
- package/dist/vega/{p-f2c8c363.js → p-5367eaab.js} +1 -1
- package/dist/vega/p-550ce71a.entry.js +1 -0
- package/dist/vega/p-5d2704c1.entry.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-61ae4e9c.entry.js +1 -0
- package/dist/vega/{p-2971b17a.js → p-63246470.js} +1 -1
- package/dist/vega/p-6665d083.entry.js +1 -0
- package/dist/vega/p-69af3422.entry.js +1 -0
- package/dist/vega/p-6d9731c1.entry.js +1 -0
- package/dist/vega/p-6f08e3e1.entry.js +1 -0
- package/dist/vega/p-7172332a.entry.js +1 -0
- package/dist/vega/{p-9d8e2939.entry.js → p-73688c4e.entry.js} +1 -1
- package/dist/vega/p-73689ec0.entry.js +1 -0
- package/dist/vega/{p-9fb71d8c.entry.js → p-780cbfb0.entry.js} +1 -1
- package/dist/vega/p-79e8236a.entry.js +1 -0
- package/dist/vega/{p-8fba7f9a.js → p-7ca9f6f1.js} +1 -1
- package/dist/vega/{p-f6cd7a08.entry.js → p-813b2915.entry.js} +1 -1
- package/dist/vega/{p-e88f2dc3.js → p-8162980c.js} +1 -1
- package/dist/vega/p-82ec9721.entry.js +1 -0
- package/dist/vega/{p-7f9acdf7.entry.js → p-86caa739.entry.js} +1 -1
- package/dist/vega/p-8a4d8139.entry.js +1 -0
- package/dist/vega/{p-be0b67b8.entry.js → p-8ac453cb.entry.js} +1 -1
- package/dist/vega/p-98b78c75.entry.js +1 -0
- package/dist/vega/{p-76e6c13a.js → p-99e3dcab.js} +1 -1
- package/dist/vega/{p-44bc9ea9.entry.js → p-9aac9879.entry.js} +1 -1
- package/dist/vega/p-a007b493.entry.js +1 -0
- package/dist/vega/p-a439e59b.entry.js +1 -0
- package/dist/vega/p-a4d0ab07.js +1 -0
- package/dist/vega/{p-f38a4be2.entry.js → p-a6e03df4.entry.js} +1 -1
- package/dist/vega/{p-4957f07a.entry.js → p-a924c1e2.entry.js} +1 -1
- package/dist/vega/p-ab0e013c.entry.js +1 -0
- package/dist/vega/p-abf871cd.entry.js +1 -0
- package/dist/vega/{p-9dfe2bbc.js → p-ac4bd1f8.js} +1 -1
- package/dist/vega/{p-3566ad76.js → p-b91c2c9d.js} +1 -1
- package/dist/vega/{p-184d8443.js → p-c00adad9.js} +1 -1
- package/dist/vega/{p-697eb0e1.js → p-c335088c.js} +1 -1
- package/dist/vega/{p-623c3911.entry.js → p-c3d388b5.entry.js} +1 -1
- package/dist/vega/p-c674b07c.js +1 -0
- package/dist/vega/p-c6d98c60.entry.js +1 -0
- package/dist/vega/p-c78fe943.js +1 -0
- package/dist/vega/{p-7f86b3c8.js → p-c8ad47c9.js} +1 -1
- package/dist/vega/{p-96797fee.entry.js → p-c9541fc2.entry.js} +1 -1
- package/dist/vega/{p-a58bdbad.entry.js → p-d07d04e0.entry.js} +1 -1
- package/dist/vega/p-d1349401.entry.js +1 -0
- package/dist/vega/{p-c0036e71.js → p-d2033624.js} +1 -1
- package/dist/vega/{p-74a77cad.js → p-d466baf7.js} +1 -1
- package/dist/vega/p-d4719c14.entry.js +1 -0
- package/dist/vega/{p-82dbff54.entry.js → p-d4e35d2e.entry.js} +1 -1
- package/dist/vega/p-d55365b9.entry.js +1 -0
- package/dist/vega/p-db482ee1.js +1 -0
- package/dist/vega/p-dc2813eb.entry.js +1 -0
- package/dist/vega/{p-676eaf3f.entry.js → p-dd5d917b.entry.js} +1 -1
- package/dist/vega/{p-5be29f14.js → p-ddf81373.js} +1 -1
- package/dist/vega/p-e0cefd90.entry.js +1 -0
- package/dist/vega/p-e13c163c.entry.js +1 -0
- package/dist/vega/{p-a5d4d168.entry.js → p-e788598a.entry.js} +1 -1
- package/dist/vega/{p-6b9d2996.entry.js → p-e797bf8d.entry.js} +1 -1
- package/dist/vega/p-f4b46f6b.entry.js +1 -0
- package/dist/vega/p-f519cdc3.entry.js +1 -0
- package/dist/vega/{p-9b673fd4.entry.js → p-f6eab527.entry.js} +1 -1
- package/dist/vega/{p-c7f292dd.entry.js → p-fa34ace2.entry.js} +1 -1
- package/dist/vega/p-fbfb4c70.entry.js +1 -0
- package/dist/vega/p-fcabf0dc.js +1 -0
- package/dist/vega/{p-8bd496b4.js → p-ff57c872.js} +1 -1
- package/dist/vega/p-ff921d10.js +1 -0
- package/dist/vega/p-ff9a0e6e.js +1 -0
- package/dist/vega/public-api-8dd022fa.js +6043 -0
- package/dist/vega/public-api-baaf7593.js +4 -0
- package/dist/vega/responsive-format-facade-98596535.js +913 -0
- package/dist/vega/style-formatter-0ae102e9.js +32 -0
- package/dist/vega/vega-accordion.entry.js +291 -0
- package/dist/vega/vega-app-header-button.entry.js +452 -0
- package/dist/vega/vega-banner.entry.js +351 -0
- package/dist/vega/vega-box.entry.js +353 -0
- package/dist/vega/vega-breadcrumb.entry.js +249 -0
- package/dist/vega/vega-button-circle.entry.js +245 -0
- package/dist/vega/vega-button-group.entry.js +203 -0
- package/dist/vega/vega-button-link.entry.js +226 -0
- package/dist/vega/vega-button.entry.js +259 -0
- package/dist/vega/vega-calendar.entry.js +3884 -0
- package/dist/vega/vega-card.entry.js +226 -0
- package/dist/vega/vega-carousel.entry.js +540 -0
- package/dist/vega/vega-checkbox-group.entry.js +266 -0
- package/dist/vega/vega-checkbox.entry.js +335 -0
- package/dist/vega/vega-chip.entry.js +321 -0
- package/dist/vega/vega-code-block.entry.js +4372 -0
- package/dist/vega/vega-color-picker.entry.js +258 -0
- package/dist/vega/vega-combo-box.entry.js +748 -0
- package/dist/vega/vega-date-picker-calendar.entry.js +1381 -0
- package/dist/vega/vega-date-picker.entry.js +1646 -0
- package/dist/vega/vega-dialog.entry.js +158 -0
- package/dist/vega/vega-divider.entry.js +179 -0
- package/dist/vega/vega-dropdown-content-box.entry.js +57 -0
- package/dist/vega/vega-dropdown-item.entry.js +352 -0
- package/dist/vega/vega-dropdown.entry.js +2136 -0
- package/dist/vega/vega-field-label.entry.js +182 -0
- package/dist/vega/vega-file-uploader.entry.js +751 -0
- package/dist/vega/vega-flag-icon.entry.js +216 -0
- package/dist/vega/vega-flex.entry.js +224 -0
- package/dist/vega/vega-font.entry.js +327 -0
- package/dist/vega/vega-form.entry.js +1008 -0
- package/dist/vega/vega-grid.entry.js +129 -0
- package/dist/vega/vega-icon.entry.js +256 -0
- package/dist/vega/vega-image-uploader.entry.js +977 -0
- package/dist/vega/vega-input-credit-card.entry.js +549 -0
- package/dist/vega/vega-input-numeric.entry.js +471 -0
- package/dist/vega/vega-input-passcode.entry.js +728 -0
- package/dist/vega/vega-input-phone-number.entry.js +9143 -0
- package/dist/vega/vega-input-range.entry.js +693 -0
- package/dist/vega/vega-input-select.entry.js +1268 -0
- package/dist/vega/vega-input.entry.js +1735 -0
- package/dist/vega/vega-item-toggle.entry.js +190 -0
- package/dist/vega/vega-left-nav-group.entry.js +433 -0
- package/dist/vega/vega-left-nav-link.entry.js +317 -0
- package/dist/vega/vega-left-nav-section.entry.js +97 -0
- package/dist/vega/vega-left-nav.entry.js +654 -0
- package/dist/vega/vega-loading-indicator.entry.js +209 -0
- package/dist/vega/vega-modal.entry.js +1287 -0
- package/dist/vega/vega-nav-card.entry.js +163 -0
- package/dist/vega/vega-pagination-page-selector-mobile.entry.js +214 -0
- package/dist/vega/vega-pagination.entry.js +629 -0
- package/dist/vega/vega-popover-content-box.entry.js +101 -0
- package/dist/vega/vega-popover.entry.js +362 -0
- package/dist/vega/vega-progress-tracker.entry.js +757 -0
- package/dist/vega/vega-radio-group.entry.js +496 -0
- package/dist/vega/vega-radio.entry.js +272 -0
- package/dist/vega/vega-rich-text-editor-toolbar-button.entry.js +169 -0
- package/dist/vega/vega-rich-text-editor.entry.js +4107 -0
- package/dist/vega/vega-rich-text-image-editor.entry.js +216 -0
- package/dist/vega/vega-rich-text-link-editor.entry.js +238 -0
- package/dist/vega/vega-rich-text-table-properties.entry.js +641 -0
- package/dist/vega/vega-rich-text-table-setting.entry.js +525 -0
- package/dist/vega/vega-segment-control.entry.js +350 -0
- package/dist/vega/vega-selection-chip-group.entry.js +447 -0
- package/dist/vega/vega-selection-chip.entry.js +443 -0
- package/dist/vega/vega-selection-tile-group.entry.js +438 -0
- package/dist/vega/vega-selection-tile.entry.js +409 -0
- package/dist/vega/vega-sidenav-link.entry.js +160 -0
- package/dist/vega/vega-sidenav.entry.js +766 -0
- package/dist/vega/vega-signature-capture.entry.js +589 -0
- package/dist/vega/vega-stepper.entry.js +292 -0
- package/dist/vega/vega-tab-group-panel.entry.js +79 -0
- package/dist/vega/vega-tab-group.entry.js +1281 -0
- package/dist/vega/vega-table-body.entry.js +48 -0
- package/dist/vega/vega-table-cell.entry.js +243 -0
- package/dist/vega/vega-table-foot-cell.entry.js +169 -0
- package/dist/vega/vega-table-foot-row.entry.js +219 -0
- package/dist/vega/vega-table-foot.entry.js +136 -0
- package/dist/vega/vega-table-head-cell.entry.js +339 -0
- package/dist/vega/vega-table-head-row.entry.js +416 -0
- package/dist/vega/vega-table-head.entry.js +113 -0
- package/dist/vega/vega-table-row.entry.js +666 -0
- package/dist/vega/vega-table.entry.js +3707 -0
- package/dist/vega/vega-textarea.entry.js +329 -0
- package/dist/vega/vega-time-picker.entry.js +2039 -0
- package/dist/vega/vega-toggle-switch.entry.js +194 -0
- package/dist/vega/vega-tooltip.entry.js +339 -0
- package/dist/vega/vega.esm.js +172 -1
- package/package.json +1 -1
- package/style/vega-icons.css +17266 -0
- package/dist/cjs/function-extension-78ec27e0.js +0 -2927
- package/dist/esm/function-extension-8b06c6f8.js +0 -2908
- package/dist/vega/p-03e16a05.entry.js +0 -1
- package/dist/vega/p-0ad59141.entry.js +0 -1
- package/dist/vega/p-0ba0f83d.entry.js +0 -1
- package/dist/vega/p-114c6df8.entry.js +0 -1
- package/dist/vega/p-1e019406.js +0 -1
- package/dist/vega/p-1faef917.entry.js +0 -1
- package/dist/vega/p-21cba83b.entry.js +0 -1
- package/dist/vega/p-21e7808a.entry.js +0 -1
- package/dist/vega/p-2b20a215.entry.js +0 -1
- package/dist/vega/p-2bc4f7d9.entry.js +0 -1
- package/dist/vega/p-2e0deef6.js +0 -1
- package/dist/vega/p-2f592078.entry.js +0 -1
- package/dist/vega/p-38ed3d59.entry.js +0 -1
- package/dist/vega/p-3938880f.entry.js +0 -1
- package/dist/vega/p-398220f5.entry.js +0 -1
- package/dist/vega/p-40561fa0.entry.js +0 -1
- package/dist/vega/p-42a283b5.entry.js +0 -1
- package/dist/vega/p-524ffc12.entry.js +0 -1
- package/dist/vega/p-59fa3f68.js +0 -1
- package/dist/vega/p-5b71c85e.js +0 -1
- package/dist/vega/p-5f09868d.entry.js +0 -1
- package/dist/vega/p-6e701542.entry.js +0 -1
- package/dist/vega/p-70b2906a.entry.js +0 -1
- package/dist/vega/p-721b2981.entry.js +0 -1
- package/dist/vega/p-75d91ee9.entry.js +0 -1
- package/dist/vega/p-79a544d6.js +0 -1
- package/dist/vega/p-7b337fd4.entry.js +0 -1
- package/dist/vega/p-7be3aefc.entry.js +0 -1
- package/dist/vega/p-94cf46ca.entry.js +0 -1
- package/dist/vega/p-a125cfec.entry.js +0 -1
- package/dist/vega/p-a3c4fa30.entry.js +0 -1
- package/dist/vega/p-aab0deab.js +0 -1
- package/dist/vega/p-adc615a4.entry.js +0 -1
- package/dist/vega/p-b007d0d5.entry.js +0 -1
- package/dist/vega/p-b406a846.entry.js +0 -1
- package/dist/vega/p-bd60c72e.entry.js +0 -1
- package/dist/vega/p-bf61d136.js +0 -1
- package/dist/vega/p-c2ac6b47.entry.js +0 -1
- package/dist/vega/p-c4700277.entry.js +0 -1
- package/dist/vega/p-ce2ffff7.js +0 -1
- package/dist/vega/p-d01fe83d.entry.js +0 -1
- package/dist/vega/p-db62b038.entry.js +0 -1
- package/dist/vega/p-dd72ad9e.js +0 -1
- package/dist/vega/p-e39aa2ea.entry.js +0 -1
- package/dist/vega/p-f3831dc9.entry.js +0 -1
- package/dist/vega/p-f427d88c.entry.js +0 -1
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { backgroundColor = '', width, height, borderStr, padding, textAlign, verticalAlign, } = annotation;
|
|
14
|
+
tableCellRef.style.backgroundColor = backgroundColor;
|
|
15
|
+
tableCellRef.style.border = borderStr;
|
|
16
|
+
tableCellRef.style.width = width;
|
|
17
|
+
tableCellRef.style.height = height;
|
|
18
|
+
tableCellRef.style.padding = padding;
|
|
19
|
+
tableCellRef.style.textAlign = textAlign;
|
|
20
|
+
tableCellRef.style.verticalAlign = verticalAlign;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { backgroundColor, width, height } = annotation;
|
|
16
|
+
tableRef.style.backgroundColor = backgroundColor;
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
|
|
2
|
+
export const SELECT_TABLE_COLUMN = 'SELECT_TABLE_COLUMN';
|
|
3
|
+
/**
|
|
4
|
+
* Action to select a table column into the RTETable.
|
|
5
|
+
*/
|
|
6
|
+
export class SelectTableColumnAction extends ModifyContentAction {
|
|
7
|
+
constructor(tableCellSelectRange, selectCellCallback) {
|
|
8
|
+
super();
|
|
9
|
+
this.type = SELECT_TABLE_COLUMN;
|
|
10
|
+
this.tableCellSelectRange = tableCellSelectRange;
|
|
11
|
+
this.selectCellCallback = selectCellCallback;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AnnotationAction } from '../../../dto/actions/annotation-action.abstract';
|
|
2
|
+
import { RTETableAnnotation } from '../annotations/table-annotation';
|
|
3
|
+
/**
|
|
4
|
+
* Action to apply annotations to a table.
|
|
5
|
+
*/
|
|
6
|
+
export class RTETableAnnotationsAction extends AnnotationAction {
|
|
7
|
+
constructor(table) {
|
|
8
|
+
super();
|
|
9
|
+
this.isFlushable = true;
|
|
10
|
+
this.table = table;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
15
|
+
toAnnotation() {
|
|
16
|
+
return new RTETableAnnotation(this.table);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
|
|
2
|
+
export const TOGGLE_TABLE_CAPTION = 'TOGGLE_TABLE_CAPTION';
|
|
3
|
+
/**
|
|
4
|
+
* Action payload for toggling the optional table caption block.
|
|
5
|
+
*/
|
|
6
|
+
export class TableCaptionAction extends ModifyContentAction {
|
|
7
|
+
constructor(shouldEnable) {
|
|
8
|
+
super();
|
|
9
|
+
this.type = TOGGLE_TABLE_CAPTION;
|
|
10
|
+
this.isFlushable = true;
|
|
11
|
+
this.shouldEnable = shouldEnable;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AnnotationAction } from '../../../dto/actions/annotation-action.abstract';
|
|
2
|
+
import { RTETableCellAnnotation } from '../annotations/table-cell-annotation';
|
|
3
|
+
/**
|
|
4
|
+
* Action to apply annotations to a table cell.
|
|
5
|
+
*/
|
|
6
|
+
export class RTETableCellAnnotationsAction extends AnnotationAction {
|
|
7
|
+
constructor(cellAnnotation) {
|
|
8
|
+
super();
|
|
9
|
+
this.isFlushable = true;
|
|
10
|
+
this.cellAnnotation = cellAnnotation;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
15
|
+
toAnnotation() {
|
|
16
|
+
return new RTETableCellAnnotation(this.cellAnnotation);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AnnotationAction } from '../../../dto/actions/annotation-action.abstract';
|
|
2
|
+
import { RTETableHeadCellAnnotation } from '../annotations/table-head-cell-annotation';
|
|
3
|
+
/**
|
|
4
|
+
* Action to apply annotations to a table head cell.
|
|
5
|
+
*/
|
|
6
|
+
export class RTETableHeadCellAnnotationsAction extends AnnotationAction {
|
|
7
|
+
constructor(tableCell) {
|
|
8
|
+
super();
|
|
9
|
+
this.isFlushable = true;
|
|
10
|
+
this.tableCell = tableCell;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @inheritDoc
|
|
14
|
+
*/
|
|
15
|
+
toAnnotation() {
|
|
16
|
+
return new RTETableHeadCellAnnotation(this.tableCell);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ModifyContentAction } from '../../../dto/actions/modify-content-action.abstract';
|
|
2
|
+
export const TOGGLE_HEADER_ROW = 'TOGGLE_HEADER_ROW';
|
|
3
|
+
/**
|
|
4
|
+
* Action to convert selected rows to header rows or revert them back to normal rows.
|
|
5
|
+
*/
|
|
6
|
+
export class ToggleHeaderRowAction extends ModifyContentAction {
|
|
7
|
+
constructor(selectedRows) {
|
|
8
|
+
super();
|
|
9
|
+
this.isFlushable = true;
|
|
10
|
+
this.type = TOGGLE_HEADER_ROW;
|
|
11
|
+
this.selectedRows = selectedRows;
|
|
12
|
+
}
|
|
13
|
+
}
|