@heartlandone/vega 2.78.0 → 2.79.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.
- package/dist/cjs/align-left-4a76df69.js +22 -0
- package/dist/cjs/{app-globals-55e26945.js → app-globals-e9fdfbf9.js} +11 -9
- package/dist/cjs/aria-dialog-focusable-trap-slimmer-6faafc3e.js +218 -0
- package/dist/cjs/auto-run-when-re-render-task-queue-slimmer.abstract-5734634d.js +51 -0
- package/dist/cjs/{breakpoints-a8ff22f0.js → breakpoints-1cc2c4c6.js} +1 -1
- package/dist/cjs/{child-nodes-notify-observer-slimmer-ed39283b.js → child-nodes-notify-observer-slimmer-06c78f97.js} +1 -1
- package/dist/cjs/{code-block-1a5fafed.js → code-block-847534e3.js} +38 -7
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-42683f23.js → component-value-history-controller-slimmer.abstract-d7f9812a.js} +34 -56
- package/dist/cjs/{dto-renderer-manager-7557d562.js → content-state-99be18a3.js} +19 -62
- package/dist/cjs/{date-required-rule-ad536cb5.js → date-required-rule-3823d506.js} +1 -1
- package/dist/cjs/{deprecated-property-slimmer-1eb8f031.js → deprecated-property-slimmer-300a3929.js} +1 -1
- package/dist/cjs/{design-token-45ebd5e4.js → design-token-b497bb6e.js} +3 -3
- package/dist/cjs/{dom-node-subject-observer-factory-c62823de.js → dom-node-subject-observer-factory-f7ed3bdc.js} +1 -1
- package/dist/cjs/dto-renderer-manager-ae5fcbba.js +58 -0
- package/dist/cjs/{element-appender-slimmer-16ec8591.js → element-appender-slimmer-eba4f3a2.js} +8 -8
- package/dist/cjs/{event-emit-slimmer-c84121c8.js → event-emit-slimmer-83f8e2bd.js} +1 -1
- package/dist/cjs/{form-field-controller-slimmer-73f5849e.js → form-field-controller-slimmer-93ca7239.js} +6 -6
- package/dist/cjs/{image-annotation-action-f275863e.js → image-annotation-action-9d6af380.js} +4 -32
- package/dist/cjs/index-58ea899e.js +4 -0
- package/dist/cjs/index.cjs.js +41 -36
- package/dist/cjs/{inject-keyboard-manager-6667c0f1.js → inject-keyboard-manager-23d07d87.js} +1 -1
- package/dist/cjs/{internal-translation-controller-24df468f.js → internal-translation-controller-9f58a4e4.js} +2 -0
- package/dist/cjs/{keyboard-manager-7de7ecfd.js → keyboard-manager-3923e29b.js} +2 -2
- package/dist/cjs/{keyboard-manager-slimmer-b44f0dc9.js → keyboard-manager-slimmer-f602725d.js} +1 -1
- package/dist/cjs/loader.cjs.js +26 -21
- package/dist/cjs/{month-view-generator-36c42772.js → month-view-generator-aa8e8e74.js} +1 -1
- package/dist/cjs/{object-e2e28e3d.js → object-b53e9416.js} +6 -4
- package/dist/cjs/{page-resize-observer-slimmer-e050cd26.js → page-resize-observer-slimmer-273d62ef.js} +1 -1
- package/dist/cjs/{public-rules-6c6cb4ac.js → public-rules-1dbda124.js} +12 -12
- package/dist/cjs/{range-e298d4aa.js → range-60fb9dd2.js} +2 -2
- package/dist/cjs/{responsive-format-facade-bddac47c.js → responsive-format-facade-a32cdb67.js} +31 -3
- package/dist/cjs/{rich-text-editor-required-rule-6346a888.js → rich-text-editor-required-rule-b4aab68d.js} +2 -2
- package/dist/cjs/split-cell-operation-190d4a87.js +2411 -0
- package/dist/cjs/{string-format-strategy.abstract-814d66c4.js → string-format-strategy.abstract-730088ee.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-749e3cfe.js → string-input-formatter-slimmer-9d6df58b.js} +4 -4
- package/dist/cjs/{string-mask-strategy-d00871c2.js → string-mask-strategy-b69e3b9e.js} +2 -2
- package/dist/cjs/{style-formatter-94c1a1ff.js → style-formatter-9d8a4ad2.js} +2 -2
- package/dist/cjs/{sub-state-notify-slimmer-ac1dae32.js → sub-state-notify-slimmer-c80b9d21.js} +2 -2
- package/dist/cjs/{sub-state-observer-slimmer-e692d849.js → sub-state-observer-slimmer-15740c97.js} +3 -3
- package/dist/cjs/{time-required-rule-f1f3c8c2.js → time-required-rule-6524b650.js} +1 -1
- package/dist/cjs/token-extension-b7c4ea17.js +7438 -0
- package/dist/cjs/{translation-slimmer-3fa03d81.js → translation-slimmer-c069ca84.js} +1 -1
- package/dist/cjs/{type-guard-a0d9ff1f.js → type-guard-2a46bca5.js} +12 -2
- package/dist/cjs/{ui-024696c0.js → ui-32120990.js} +3 -0
- package/dist/cjs/{ui-234ea151.js → ui-b3db0122.js} +21 -0
- package/dist/cjs/{valid-credit-card-number-rule-cba7d66a.js → valid-credit-card-number-rule-8eb02ea7.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +9 -9
- package/dist/cjs/vega-app-header-button.cjs.entry.js +10 -10
- package/dist/cjs/vega-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/vega-banner.cjs.entry.js +3 -3
- package/dist/cjs/vega-box.cjs.entry.js +9 -9
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/vega-button-circle.cjs.entry.js +10 -10
- package/dist/cjs/vega-button-group_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-button-link.cjs.entry.js +3 -3
- package/dist/cjs/vega-button.cjs.entry.js +10 -10
- package/dist/cjs/vega-calendar_4.cjs.entry.js +226 -165
- package/dist/cjs/vega-card.cjs.entry.js +7 -7
- package/dist/cjs/vega-carousel.cjs.entry.js +11 -11
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-chip.cjs.entry.js +10 -10
- package/dist/cjs/vega-code-block.cjs.entry.js +16 -15
- package/dist/cjs/vega-color-picker.cjs.entry.js +10 -10
- package/dist/cjs/vega-combo-box.cjs.entry.js +13 -13
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +104 -31
- package/dist/cjs/vega-dialog_2.cjs.entry.js +52 -15
- package/dist/cjs/vega-divider.cjs.entry.js +7 -7
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +17 -17
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
- package/dist/cjs/vega-file-uploader.cjs.entry.js +11 -11
- package/dist/cjs/vega-flag-icon.cjs.entry.js +6 -6
- package/dist/cjs/vega-flex.cjs.entry.js +9 -9
- package/dist/cjs/vega-font.cjs.entry.js +8 -8
- package/dist/cjs/vega-form.cjs.entry.js +13 -13
- package/dist/cjs/vega-grid.cjs.entry.js +9 -8
- package/dist/cjs/vega-icon.cjs.entry.js +7 -7
- package/dist/cjs/vega-image-uploader.cjs.entry.js +13 -13
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +14 -14
- package/dist/cjs/vega-input-numeric.cjs.entry.js +14 -14
- package/dist/cjs/vega-input-passcode.cjs.entry.js +13 -13
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +12 -12
- package/dist/cjs/vega-input-range.cjs.entry.js +11 -11
- package/dist/cjs/vega-input-select.cjs.entry.js +13 -13
- package/dist/cjs/vega-input.cjs.entry.js +30 -17
- package/dist/cjs/{vega-internal-event-id-e0aeac45.js → vega-internal-event-id-67bb91c1.js} +4 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +6 -6
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +15 -15
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +5 -5
- package/dist/cjs/vega-pagination.cjs.entry.js +11 -11
- package/dist/cjs/vega-popover_2.cjs.entry.js +15 -14
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +14 -14
- package/dist/cjs/vega-radio_2.cjs.entry.js +14 -14
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +22 -24
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +217 -252
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +1527 -0
- package/dist/cjs/vega-segment-control.cjs.entry.js +6 -6
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +13 -13
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +12 -12
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +12 -12
- package/dist/cjs/vega-signature-capture.cjs.entry.js +15 -15
- package/dist/cjs/vega-stepper.cjs.entry.js +10 -10
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-table_11.cjs.entry.js +14 -14
- package/dist/cjs/vega-text.cjs.entry.js +4 -4
- package/dist/cjs/vega-textarea.cjs.entry.js +10 -10
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +62 -20
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +10 -10
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +14 -14
- package/dist/cjs/vega.cjs.js +26 -21
- package/dist/cjs/{wait-for-component-did-render-cbebfc33.js → wait-for-component-did-render-9e41b39e.js} +2 -2
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/vega-backdrop/slimmers/renerers/vega-backdrop-renderer.js +1 -1
- package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-day-view-focus-slimmer.js +34 -0
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-switch-panel.js +1 -1
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-view-with-time-renderer.js +2 -1
- package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.js +28 -7
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.js +4 -1
- package/dist/collection/components/vega-calendar/vega-calendar.js +5 -0
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-open-state-controller.js +13 -1
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +28 -2
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-input-renderer-base.abstract.js +7 -1
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-range-input-renderer.js +15 -2
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-renderer.js +1 -1
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-single-input-renderer.js +18 -1
- package/dist/collection/components/vega-grid/vega-grid.css +72 -0
- package/dist/collection/components/vega-grid/vega-grid.js +30 -0
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-renderer.js +4 -1
- package/dist/collection/components/vega-input/vega-input.js +34 -0
- package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.js +34 -1
- package/dist/collection/components/vega-modal/slimmers/renderers/vega-modal-renderer.js +7 -2
- package/dist/collection/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.js +1 -0
- package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.js +9 -1
- 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/blocks/block.abstract.js +24 -2
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.js +35 -0
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy.abstract.js +31 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +0 -10
- package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +10 -5
- 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-interceptors/prevent-table-insert-paragraph-interceptor.js +55 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/create-segment-table-cell-strategy.js +33 -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 +176 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.js +154 -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 +163 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-into-different-section-strategy.js +83 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-into-same-section-strategy.js +55 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/merge-cells-strategy.js +120 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/replace-table-cell-strategy.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/select-table-column-strategy.js +33 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-cell-horizontally-strategy.js +143 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-cell-vertically-strategy.js +80 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-table-cell-strategy.js +45 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-column-strategy.abstract.js +27 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-row-strategy.abstract.js +296 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.js +274 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.js +159 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-cell-properties-strategy.js +33 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-properties-strategy.js +36 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/create-segment-table-cell-action.js +13 -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-into-different-section-action.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-into-same-section-action.js +27 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/merge-cells-action.js +17 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/replace-table-cell-action.js +13 -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/split-cell-horizontally-action.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/split-cell-vertically-action.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/split-table-cell-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 +28 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.js +17 -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 +78 -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 +108 -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 +106 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.js +69 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.js +192 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-color-annotation.js +66 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.js +56 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/constants/styles.constants.js +27 -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 +97 -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 +71 -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 +93 -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 +72 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.js +263 -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-popover-base-renderer.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.js +116 -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/renderers/table-toolbar-popover-renderer.js +178 -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 +136 -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/merge-cells-operation.js +100 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.js +160 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.js +45 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/setting-event-handlers/split-cell-operation.js +57 -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 +174 -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 +460 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.js +61 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/utils/table-color-manager.js +55 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/utils/utils.js +436 -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 +58 -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 +291 -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 +111 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.css +149 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.js +251 -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 +90 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/merge-cells-button-slimmer.js +117 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.js +103 -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 +76 -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 +55 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.css +23 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.js +222 -0
- package/dist/collection/components/vega-rich-text-editor/helpers/extension-context-manager.test.js +2 -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 +35 -6
- 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/helper/input-event-handler/insert-paragraph-handler.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +26 -2
- package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +252 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/extension-test-utils.js +2 -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 +298 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-cell-annotation-handler.test.js +316 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/annotation-handler/table-head-cell-annotation-handler.test.js +411 -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 +181 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-caption-annotations.test.js +84 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-cell-annotation.test.js +331 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-color-annotation.test.js +32 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-dto.test.js +1094 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-element-to-dto-strategies.test.js +1590 -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/filter-styles-strategies/filter-styles-strategy.test.js +129 -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/components/vega-rich-text-editor/vega-rich-text-editor.js +0 -5
- package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-range-input-renderer.js +5 -2
- package/dist/collection/components/vega-time-picker/slimmers/renderers/vega-time-picker-single-input-renderer.js +4 -1
- package/dist/collection/components/vega-time-picker/vega-time-picker.js +36 -0
- package/dist/collection/constants/runtime-metrics-payload-definition/vega-time-picker/runtime-metrics-payload-definition.js +24 -0
- package/dist/collection/constants/ui.js +2 -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/helpers/formatter/responsive-map-formatter/responsive-format-facade.js +3 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-grid-justify-items-formatter.js +29 -0
- package/dist/collection/helpers/formatter/test/responsive-map-formatter/responsive-grid-justify-items-formatter.test.js +19 -0
- package/dist/collection/helpers/slimmers/aria-dialog-focusable-trap-slimmer.js +213 -0
- package/dist/collection/helpers/slimmers/element-appender/body-positioned-wrapper/test/vega-popover-wrapper.test.js +66 -0
- package/dist/collection/helpers/slimmers/position-calculation/base-position-calculation-strategy.js +1 -1
- package/dist/collection/helpers/slimmers/position-calculation/test/body-position-calculation-strategy.test.js +49 -3
- package/dist/collection/helpers/slimmers/position-calculation/test/screen-position-calculation-strategy.test.js +18 -0
- package/dist/collection/helpers/slimmers/test/aria-dialog-focusable-trap-slimmer.test.js +375 -0
- package/dist/collection/helpers/translation/locales/en.js +2 -0
- package/dist/collection/helpers/translation/tests/internal-translation-controller.test.js +2 -0
- package/dist/collection/types/type-guard.js +10 -1
- package/dist/collection/utils/e2e-utils.js +51 -3
- package/dist/collection/utils/object.js +6 -4
- package/dist/collection/utils/spec-utils.js +4 -3
- package/dist/collection/utils/ui.js +20 -0
- package/dist/esm/align-left-7f959adf.js +17 -0
- package/dist/esm/{app-globals-3b97bb20.js → app-globals-776ccaa3.js} +8 -6
- package/dist/esm/aria-dialog-focusable-trap-slimmer-cc98a7a4.js +216 -0
- package/dist/esm/auto-run-when-re-render-task-queue-slimmer.abstract-27820d4c.js +49 -0
- package/dist/esm/{breakpoints-13353e09.js → breakpoints-332702ed.js} +1 -1
- package/dist/esm/{child-nodes-event-prevent-slimmer-4feabae0.js → child-nodes-event-prevent-slimmer-2ecc3e1f.js} +1 -1
- package/dist/esm/{child-nodes-notify-observer-slimmer-541dd6a4.js → child-nodes-notify-observer-slimmer-c7297b9f.js} +1 -1
- package/dist/esm/{code-block-d65bab61.js → code-block-58d1dbe5.js} +39 -8
- package/dist/esm/{component-value-history-controller-slimmer.abstract-556fcf2a.js → component-value-history-controller-slimmer.abstract-5beb8acb.js} +35 -56
- package/dist/esm/{dto-renderer-manager-73df5cbe.js → content-state-dad1fd71.js} +17 -62
- package/dist/esm/{date-required-rule-4ffd9cae.js → date-required-rule-4c40a4eb.js} +1 -1
- package/dist/esm/{deprecated-property-slimmer-2c14df89.js → deprecated-property-slimmer-ea34fa7b.js} +1 -1
- package/dist/esm/{design-token-b518a2aa.js → design-token-9c4eb6b1.js} +3 -3
- package/dist/esm/{dom-node-subject-observer-factory-82f346e3.js → dom-node-subject-observer-factory-94b2e2c3.js} +1 -1
- package/dist/esm/dto-renderer-manager-12bc9121.js +56 -0
- package/dist/esm/{element-appender-slimmer-36b7a572.js → element-appender-slimmer-fde815dc.js} +8 -8
- package/dist/esm/{event-emit-slimmer-f879fd58.js → event-emit-slimmer-b236945b.js} +2 -2
- package/dist/esm/{form-field-controller-slimmer-9a880420.js → form-field-controller-slimmer-00fa3678.js} +6 -6
- package/dist/esm/{image-annotation-action-eb3dcad5.js → image-annotation-action-1ec7b461.js} +5 -32
- package/dist/esm/index-090d31ca.js +4 -0
- package/dist/esm/index.js +30 -26
- package/dist/esm/{inject-keyboard-manager-e5481833.js → inject-keyboard-manager-784b1364.js} +1 -1
- package/dist/esm/{internal-translation-controller-0787a7a7.js → internal-translation-controller-b08aa9ab.js} +2 -0
- package/dist/esm/{internal-vega-event-manager-3aebbe55.js → internal-vega-event-manager-59f5bd47.js} +1 -1
- package/dist/esm/{keyboard-manager-4dfc625f.js → keyboard-manager-e020039f.js} +2 -2
- package/dist/esm/{keyboard-manager-slimmer-87bf68f1.js → keyboard-manager-slimmer-4722d20c.js} +1 -1
- package/dist/esm/loader.js +26 -21
- package/dist/esm/{month-view-generator-94134ec5.js → month-view-generator-6fe1f491.js} +1 -1
- package/dist/esm/{object-66c37948.js → object-0c277f57.js} +6 -4
- package/dist/esm/{page-resize-observer-slimmer-e0505250.js → page-resize-observer-slimmer-e24d36c5.js} +1 -1
- package/dist/esm/{public-rules-49912d52.js → public-rules-1626fb0d.js} +12 -12
- package/dist/esm/{range-0a22b512.js → range-4f9bf69d.js} +2 -2
- package/dist/esm/{responsive-format-facade-b3799ff9.js → responsive-format-facade-e8534e59.js} +31 -3
- package/dist/esm/{rich-text-editor-required-rule-d86e3a51.js → rich-text-editor-required-rule-c391aeb6.js} +1 -1
- package/dist/esm/split-cell-operation-55cd9fae.js +2360 -0
- package/dist/esm/{string-format-strategy.abstract-e40a0df7.js → string-format-strategy.abstract-8c48e515.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-076764fc.js → string-input-formatter-slimmer-519480ce.js} +4 -4
- package/dist/esm/{string-mask-strategy-df1f5707.js → string-mask-strategy-8070817e.js} +2 -2
- package/dist/esm/{style-formatter-95255392.js → style-formatter-7afd0680.js} +2 -2
- package/dist/esm/{sub-state-notify-slimmer-f4b3b0b9.js → sub-state-notify-slimmer-54531808.js} +2 -2
- package/dist/esm/{sub-state-observer-slimmer-058feaf0.js → sub-state-observer-slimmer-b3a773c5.js} +3 -3
- package/dist/esm/{time-required-rule-b4af75ae.js → time-required-rule-2569e5ad.js} +1 -1
- package/dist/esm/token-extension-612575cb.js +7417 -0
- package/dist/esm/{translation-slimmer-e788cae4.js → translation-slimmer-35b1d0fa.js} +1 -1
- package/dist/esm/{type-guard-f69d2935.js → type-guard-c20cbbff.js} +12 -3
- package/dist/esm/{ui-41f725b7.js → ui-93922c59.js} +3 -1
- package/dist/esm/{ui-ee31416b.js → ui-ac244bf0.js} +21 -1
- package/dist/esm/{valid-credit-card-number-rule-c023326d.js → valid-credit-card-number-rule-b9c3c2f8.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +11 -11
- package/dist/esm/vega-app-header-button.entry.js +13 -13
- package/dist/esm/vega-backdrop.entry.js +2 -2
- package/dist/esm/vega-banner.entry.js +5 -5
- package/dist/esm/vega-box.entry.js +9 -9
- package/dist/esm/vega-breadcrumb.entry.js +6 -6
- package/dist/esm/vega-button-circle.entry.js +13 -13
- package/dist/esm/vega-button-group_2.entry.js +9 -9
- package/dist/esm/vega-button-link.entry.js +6 -6
- package/dist/esm/vega-button.entry.js +13 -13
- package/dist/esm/vega-calendar_4.entry.js +229 -168
- package/dist/esm/vega-card.entry.js +7 -7
- package/dist/esm/vega-carousel.entry.js +13 -13
- package/dist/esm/vega-checkbox_2.entry.js +14 -14
- package/dist/esm/vega-chip.entry.js +13 -13
- package/dist/esm/vega-code-block.entry.js +18 -17
- package/dist/esm/vega-color-picker.entry.js +12 -12
- package/dist/esm/vega-combo-box.entry.js +16 -16
- package/dist/esm/vega-date-picker_2.entry.js +107 -34
- package/dist/esm/vega-dialog_2.entry.js +55 -18
- package/dist/esm/vega-divider.entry.js +7 -7
- package/dist/esm/vega-dropdown_5.entry.js +20 -20
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/{vega-event-id-fdc58a67.js → vega-event-id-4ede557a.js} +1 -1
- package/dist/esm/vega-field-label.entry.js +5 -5
- package/dist/esm/vega-file-uploader.entry.js +13 -13
- package/dist/esm/vega-flag-icon.entry.js +6 -6
- package/dist/esm/vega-flex.entry.js +9 -9
- package/dist/esm/vega-font.entry.js +8 -8
- package/dist/esm/vega-form.entry.js +16 -16
- package/dist/esm/vega-grid.entry.js +9 -8
- package/dist/esm/vega-icon.entry.js +7 -7
- package/dist/esm/vega-image-uploader.entry.js +16 -16
- package/dist/esm/vega-input-credit-card.entry.js +17 -17
- package/dist/esm/vega-input-numeric.entry.js +17 -17
- package/dist/esm/vega-input-passcode.entry.js +16 -16
- package/dist/esm/vega-input-phone-number.entry.js +15 -15
- package/dist/esm/vega-input-range.entry.js +14 -14
- package/dist/esm/vega-input-select.entry.js +16 -16
- package/dist/esm/vega-input.entry.js +32 -19
- package/dist/esm/{vega-internal-event-id-12783594.js → vega-internal-event-id-8002b179.js} +3 -1
- package/dist/esm/vega-item-toggle.entry.js +8 -8
- package/dist/esm/vega-left-nav_5.entry.js +17 -17
- package/dist/esm/vega-loader-wrapper_2.entry.js +7 -7
- package/dist/esm/vega-page-notification_2.entry.js +3 -3
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +6 -6
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +6 -6
- package/dist/esm/vega-pagination.entry.js +14 -14
- package/dist/esm/vega-popover_2.entry.js +17 -16
- package/dist/esm/vega-progress-tracker_2.entry.js +16 -16
- package/dist/esm/vega-radio_2.entry.js +17 -17
- package/dist/esm/vega-rich-text-content.entry.js +21 -23
- package/dist/esm/vega-rich-text-editor_4.entry.js +196 -231
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +1521 -0
- package/dist/esm/vega-segment-control.entry.js +8 -8
- package/dist/esm/vega-selection-chip_2.entry.js +16 -16
- package/dist/esm/vega-selection-tile_2.entry.js +15 -15
- package/dist/esm/vega-sidenav_3.entry.js +14 -14
- package/dist/esm/vega-signature-capture.entry.js +17 -17
- package/dist/esm/vega-stepper.entry.js +13 -13
- package/dist/esm/vega-tab-group_2.entry.js +9 -9
- package/dist/esm/vega-table_11.entry.js +17 -17
- package/dist/esm/vega-text.entry.js +4 -4
- package/dist/esm/vega-textarea.entry.js +13 -13
- package/dist/esm/vega-time-picker_2.entry.js +65 -23
- package/dist/esm/vega-toggle-switch.entry.js +12 -12
- package/dist/esm/vega-tooltip_2.entry.js +14 -14
- package/dist/esm/vega.js +26 -21
- package/dist/esm/{wait-for-component-did-render-4d0a3428.js → wait-for-component-did-render-1e62d6f7.js} +2 -2
- package/dist/sri/vega-sri-manifest.json +384 -360
- package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-day-view-focus-slimmer.d.ts +15 -0
- package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.d.ts +3 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.d.ts +1 -0
- package/dist/types/components/vega-calendar/vega-calendar.d.ts +2 -0
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-open-state-controller.d.ts +2 -0
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +5 -0
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-input-renderer-base.abstract.d.ts +2 -0
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-range-input-renderer.d.ts +3 -0
- package/dist/types/components/vega-date-picker/slimmers/renderers/vega-date-picker-single-input-renderer.d.ts +5 -0
- package/dist/types/components/vega-grid/vega-grid.d.ts +13 -1
- package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-renderer.d.ts +1 -0
- package/dist/types/components/vega-input/vega-input.d.ts +10 -0
- package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.d.ts +13 -0
- package/dist/types/components/vega-modal/slimmers/renderers/vega-modal-renderer.d.ts +1 -0
- package/dist/types/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.d.ts +1 -0
- package/dist/types/components/vega-rich-text-content/vega-rich-text-content.d.ts +3 -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/annotations/custom-attribute-annotation.d.ts +1 -1
- 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/filter-styles-strategies/filter-styles-strategy-registry.d.ts +28 -0
- package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy.abstract.d.ts +25 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.d.ts +0 -2
- 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-interceptors/prevent-table-insert-paragraph-interceptor.d.ts +31 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/create-segment-table-cell-strategy.d.ts +20 -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 +74 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.d.ts +55 -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 +60 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-into-different-section-strategy.d.ts +21 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-into-same-section-strategy.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/merge-cells-strategy.d.ts +38 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/replace-table-cell-strategy.d.ts +12 -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/split-cell-horizontally-strategy.d.ts +43 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-cell-vertically-strategy.d.ts +27 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/split-table-cell-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-column-strategy.abstract.d.ts +23 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/table-row-strategy.abstract.d.ts +120 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.d.ts +86 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.d.ts +55 -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/create-segment-table-cell-action.d.ts +21 -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-into-different-section-action.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-into-same-section-action.d.ts +24 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/merge-cells-action.d.ts +33 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/replace-table-cell-action.d.ts +13 -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/split-cell-horizontally-action.d.ts +10 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/split-cell-vertically-action.d.ts +10 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/split-table-cell-action.d.ts +22 -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 +20 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.d.ts +14 -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 +36 -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 +56 -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 +73 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-caption-annotation.d.ts +32 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.d.ts +100 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-color-annotation.d.ts +44 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.d.ts +27 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/constants/styles.constants.d.ts +4 -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 +64 -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 +37 -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 +35 -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 +30 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.d.ts +81 -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-popover-base-renderer.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.d.ts +38 -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 +59 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-toolbar-popover-renderer.d.ts +59 -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/merge-cells-operation.d.ts +44 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.d.ts +69 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.d.ts +48 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/split-cell-operation.d.ts +31 -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 +164 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/table-toolbar-button-renderer.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/utils/table-color-manager.d.ts +27 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/utils/utils.d.ts +190 -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 +29 -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 +111 -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 +39 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.d.ts +60 -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/merge-cells-button-slimmer.d.ts +23 -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 +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.d.ts +58 -0
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +34 -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 +10 -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/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 +8 -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-color-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/filter-styles-strategies/filter-styles-strategy.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/spec-utils.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +0 -2
- package/dist/types/components/vega-time-picker/slimmers/renderers/vega-time-picker-range-input-renderer.d.ts +1 -0
- package/dist/types/components/vega-time-picker/slimmers/renderers/vega-time-picker-single-input-renderer.d.ts +1 -0
- package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +12 -0
- package/dist/types/components.d.ts +173 -2
- package/dist/types/constants/ui.d.ts +1 -0
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +2 -0
- package/dist/types/helpers/formatter/responsive-map-formatter/responsive-grid-justify-items-formatter.d.ts +19 -0
- package/dist/types/helpers/formatter/test/responsive-map-formatter/responsive-grid-justify-items-formatter.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/aria-dialog-focusable-trap-slimmer.d.ts +93 -0
- package/dist/types/helpers/slimmers/element-appender/body-positioned-wrapper/test/vega-popover-wrapper.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/test/aria-dialog-focusable-trap-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/translation/interface.d.ts +3 -1
- package/dist/types/types/components.type.d.ts +5 -0
- package/dist/types/types/type-guard.d.ts +7 -0
- package/dist/types/types/ui.type.d.ts +13 -1
- package/dist/types/utils/e2e-utils.d.ts +10 -0
- package/dist/types/utils/object.d.ts +6 -2
- package/dist/types/utils/spec-utils.d.ts +2 -1
- package/dist/types/utils/ui.d.ts +9 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-02bab5ea.entry.js +1 -0
- package/dist/vega/p-02fec68b.entry.js +1 -0
- package/dist/vega/{p-3fd3861c.entry.js → p-04f9b0d4.entry.js} +1 -1
- package/dist/vega/{p-0681ffee.entry.js → p-076c6445.entry.js} +1 -1
- package/dist/vega/{p-c2df94f6.js → p-085d45c9.js} +1 -1
- package/dist/vega/p-0ac91609.entry.js +1 -0
- package/dist/vega/p-10e9438e.js +1 -0
- package/dist/vega/{p-ae6ed091.entry.js → p-14dfdba3.entry.js} +1 -1
- package/dist/vega/{p-7f665911.entry.js → p-1665d4b8.entry.js} +1 -1
- package/dist/vega/{p-71cd1d9e.entry.js → p-1784724a.entry.js} +1 -1
- package/dist/vega/{p-1ff45314.entry.js → p-18378017.entry.js} +1 -1
- package/dist/vega/{p-f49e8cc5.entry.js → p-19adff1f.entry.js} +1 -1
- package/dist/vega/{p-3b7ad04b.entry.js → p-20981b17.entry.js} +1 -1
- package/dist/vega/p-2697b52b.js +1 -0
- package/dist/vega/p-28c8ffb4.js +1 -0
- package/dist/vega/{p-3e484d99.entry.js → p-28ed34b3.entry.js} +1 -1
- package/dist/vega/{p-8852361b.js → p-2a9960c9.js} +1 -1
- package/dist/vega/{p-6b4021f0.entry.js → p-2bbbdf87.entry.js} +1 -1
- package/dist/vega/p-2fd266fa.js +1 -0
- package/dist/vega/p-31945d6c.js +1 -0
- package/dist/vega/p-3224e47c.js +1 -0
- package/dist/vega/{p-d7434f44.entry.js → p-32a0eed4.entry.js} +1 -1
- package/dist/vega/p-33475bcf.entry.js +1 -0
- package/dist/vega/{p-7f398d23.entry.js → p-33cacbd6.entry.js} +1 -1
- package/dist/vega/p-3a0b3fed.entry.js +1 -0
- package/dist/vega/p-3d2d267d.js +1 -0
- package/dist/vega/{p-abb81b7b.js → p-405ab757.js} +1 -1
- package/dist/vega/{p-31ac7386.js → p-4068e7de.js} +1 -1
- package/dist/vega/{p-57180993.entry.js → p-408a1baa.entry.js} +1 -1
- package/dist/vega/{p-a253e791.entry.js → p-439c7c13.entry.js} +1 -1
- package/dist/vega/{p-db92453f.entry.js → p-441fd2b3.entry.js} +1 -1
- package/dist/vega/{p-4e0344bc.entry.js → p-46c7763f.entry.js} +1 -1
- package/dist/vega/p-49a2e141.js +1 -0
- package/dist/vega/{p-951c0172.js → p-4a9be903.js} +1 -1
- package/dist/vega/p-4d65756f.js +1 -0
- package/dist/vega/{p-e52890db.js → p-4e15958f.js} +1 -1
- package/dist/vega/p-4e76a84d.entry.js +1 -0
- package/dist/vega/{p-0009e0bc.entry.js → p-4ea3cf5f.entry.js} +1 -1
- package/dist/vega/{p-f5b6059d.entry.js → p-5395faac.entry.js} +1 -1
- package/dist/vega/p-541ae774.entry.js +1 -0
- package/dist/vega/{p-19883e27.entry.js → p-558a707e.entry.js} +1 -1
- package/dist/vega/{p-cc243e62.entry.js → p-561e9097.entry.js} +1 -1
- package/dist/vega/p-5b90bbfe.js +1 -0
- package/dist/vega/p-5d397ee0.entry.js +1 -0
- package/dist/vega/{p-8fbb677e.entry.js → p-5dfd36d3.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-603b851c.js +1 -0
- package/dist/vega/{p-9dc77b66.entry.js → p-615bc3de.entry.js} +1 -1
- package/dist/vega/p-6554a801.js +1 -0
- package/dist/vega/{p-a432708d.entry.js → p-667d5b80.entry.js} +1 -1
- package/dist/vega/p-679a4046.entry.js +1 -0
- package/dist/vega/{p-c208a3b7.js → p-68a531cf.js} +1 -1
- package/dist/vega/{p-309b5016.entry.js → p-6b19d33a.entry.js} +1 -1
- package/dist/vega/p-6d6ea8b4.js +1 -0
- package/dist/vega/p-6db0556d.js +1 -0
- package/dist/vega/p-6e05fc55.js +1 -0
- package/dist/vega/p-6e13e2fc.js +1 -0
- package/dist/vega/p-71720290.entry.js +1 -0
- package/dist/vega/{p-5ed5aa26.js → p-76f2e0f5.js} +1 -1
- package/dist/vega/p-79df30e3.entry.js +1 -0
- package/dist/vega/p-7f68abf7.js +1 -0
- package/dist/vega/{p-e7a8b61e.entry.js → p-814c37be.entry.js} +1 -1
- package/dist/vega/{p-7db918f4.js → p-81dd00d0.js} +1 -1
- package/dist/vega/{p-fb40a829.js → p-82016096.js} +1 -1
- package/dist/vega/{p-03280f85.entry.js → p-820906b8.entry.js} +1 -1
- package/dist/vega/{p-3d4b8066.entry.js → p-833b79ad.entry.js} +1 -1
- package/dist/vega/{p-5b238c6d.js → p-8cd70b3b.js} +1 -1
- package/dist/vega/p-8f88fb57.js +1 -0
- package/dist/vega/{p-1828f9e6.entry.js → p-905cf163.entry.js} +1 -1
- package/dist/vega/{p-b5e31243.entry.js → p-916ef5dd.entry.js} +1 -1
- package/dist/vega/p-937d5317.entry.js +1 -0
- package/dist/vega/{p-47c202eb.entry.js → p-972c594b.entry.js} +1 -1
- package/dist/vega/{p-c2560608.entry.js → p-9e6e76b2.entry.js} +1 -1
- package/dist/vega/{p-c3eec160.entry.js → p-a01ef160.entry.js} +1 -1
- package/dist/vega/p-a02f77c7.js +1 -0
- package/dist/vega/{p-882a220c.js → p-a0a39ec3.js} +1 -1
- package/dist/vega/{p-9c713bc0.js → p-a2161e9d.js} +1 -1
- package/dist/vega/{p-536ad3d7.entry.js → p-a5543b6a.entry.js} +1 -1
- package/dist/vega/{p-a113fd15.entry.js → p-a6ad6515.entry.js} +1 -1
- package/dist/vega/{p-3a537cd0.js → p-a6fb81c5.js} +1 -1
- package/dist/vega/p-a841cf13.js +1 -0
- package/dist/vega/{p-7440325c.entry.js → p-ace7aa6c.entry.js} +1 -1
- package/dist/vega/{p-5ba34330.js → p-b15a2d4b.js} +1 -1
- package/dist/vega/{p-53e0b2bd.entry.js → p-b4d72eff.entry.js} +1 -1
- package/dist/vega/{p-3592a26d.entry.js → p-b589cafd.entry.js} +1 -1
- package/dist/vega/{p-77908e45.entry.js → p-b67672ae.entry.js} +1 -1
- package/dist/vega/p-b7dd3ef2.entry.js +1 -0
- package/dist/vega/{p-a3272850.entry.js → p-b91aff06.entry.js} +1 -1
- package/dist/vega/{p-c25577ae.entry.js → p-bc142c5c.entry.js} +1 -1
- package/dist/vega/{p-99c8f9a4.entry.js → p-c58c3e7e.entry.js} +1 -1
- package/dist/vega/{p-5f81beae.js → p-c5eb0fa6.js} +1 -1
- package/dist/vega/p-c78fe943.js +1 -0
- package/dist/vega/p-c962cf5b.js +1 -0
- package/dist/vega/p-cb0324e7.entry.js +1 -0
- package/dist/vega/p-d4ea8e22.js +1 -0
- package/dist/vega/{p-e5be807b.entry.js → p-d5a8bb62.entry.js} +1 -1
- package/dist/vega/{p-6c170474.js → p-d6875e49.js} +1 -1
- package/dist/vega/p-d862195c.entry.js +1 -0
- package/dist/vega/{p-764425e4.entry.js → p-d94d785a.entry.js} +1 -1
- package/dist/vega/p-db29681a.entry.js +1 -0
- package/dist/vega/{p-c87cf96a.entry.js → p-dba91c23.entry.js} +1 -1
- package/dist/vega/{p-d42dbe39.js → p-dccda3d1.js} +1 -1
- package/dist/vega/p-dce9349e.js +1 -0
- package/dist/vega/{p-cd3d177b.entry.js → p-dd4c3d9b.entry.js} +1 -1
- package/dist/vega/{p-24b4c64f.js → p-e2268eef.js} +1 -1
- package/dist/vega/p-e5da9f66.js +1 -0
- package/dist/vega/p-f7505267.js +1 -0
- package/dist/vega/{p-f46f6679.entry.js → p-fadeb5a2.entry.js} +1 -1
- package/dist/vega/{p-d5570331.entry.js → p-fb92092b.entry.js} +1 -1
- package/dist/vega/{p-a957e15f.js → p-fc3d6d9d.js} +1 -1
- package/dist/vega/{p-2e7ec8e0.entry.js → p-fc93b467.entry.js} +1 -1
- package/dist/vega/p-fcabf0dc.js +1 -0
- package/dist/vega/p-fef22245.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/token-extension-1e98ddf3.js +0 -3062
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/text-node-color-controller.js +0 -51
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/text-node-rendering-registry.js +0 -26
- package/dist/esm/token-extension-ffd98170.js +0 -3041
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/text-node-color-controller.d.ts +0 -22
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/text-node-rendering-registry.d.ts +0 -22
- package/dist/vega/p-02976501.js +0 -1
- package/dist/vega/p-03b1e442.js +0 -1
- package/dist/vega/p-093aa0cb.entry.js +0 -1
- package/dist/vega/p-1e015382.js +0 -1
- package/dist/vega/p-383e235a.entry.js +0 -1
- package/dist/vega/p-3992038a.js +0 -1
- package/dist/vega/p-4079e932.js +0 -1
- package/dist/vega/p-43df17a1.js +0 -1
- package/dist/vega/p-473ceda5.entry.js +0 -1
- package/dist/vega/p-474b97cf.entry.js +0 -1
- package/dist/vega/p-4efe9cd8.entry.js +0 -1
- package/dist/vega/p-5e1d0f21.entry.js +0 -1
- package/dist/vega/p-6a8ac66d.entry.js +0 -1
- package/dist/vega/p-6b3776ec.js +0 -1
- package/dist/vega/p-6cf28c27.js +0 -1
- package/dist/vega/p-7ade785e.js +0 -1
- package/dist/vega/p-7db5e003.js +0 -1
- package/dist/vega/p-840f156e.entry.js +0 -1
- package/dist/vega/p-87379d3c.js +0 -1
- package/dist/vega/p-87ed06cd.entry.js +0 -1
- package/dist/vega/p-898bcb24.js +0 -1
- package/dist/vega/p-9493d87a.js +0 -1
- package/dist/vega/p-95919581.entry.js +0 -1
- package/dist/vega/p-95d1b547.js +0 -1
- package/dist/vega/p-9f467a59.js +0 -1
- package/dist/vega/p-a57a7ab8.entry.js +0 -1
- package/dist/vega/p-a58bd510.entry.js +0 -1
- package/dist/vega/p-b88ca09b.js +0 -1
- package/dist/vega/p-b901d624.js +0 -1
- package/dist/vega/p-ba475520.entry.js +0 -1
- package/dist/vega/p-bf04ff19.js +0 -1
- package/dist/vega/p-bf19682d.js +0 -1
- package/dist/vega/p-c6031d3f.entry.js +0 -1
- package/dist/vega/p-c72e08c6.entry.js +0 -1
- package/dist/vega/p-d0687ec0.js +0 -1
- package/dist/vega/p-d25db724.js +0 -1
- package/dist/vega/p-d5797747.js +0 -1
- package/dist/vega/p-e6f0097f.js +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { getAllTableRows, buildTableGrid, buildCellStartColumnMap } 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 allTableRows = getAllTableRows(target);
|
|
12
|
+
const tableGrid = buildTableGrid(allTableRows);
|
|
13
|
+
const cellStartColMap = buildCellStartColumnMap(tableGrid);
|
|
14
|
+
const [startCellCol, endCellCol] = this.getBoundaryCellColumnRange(action.tableCellSelectRange, allTableRows, tableGrid);
|
|
15
|
+
const allNeedSelectedCells = [];
|
|
16
|
+
const selectedCellIds = new Set();
|
|
17
|
+
allTableRows.forEach((row) => {
|
|
18
|
+
row.children.forEach((cell) => {
|
|
19
|
+
const cellStartCol = cellStartColMap.get(cell.id);
|
|
20
|
+
if (cellStartCol === undefined) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (cellStartCol >= startCellCol &&
|
|
24
|
+
cellStartCol <= endCellCol &&
|
|
25
|
+
!selectedCellIds.has(cell.id)) {
|
|
26
|
+
selectedCellIds.add(cell.id);
|
|
27
|
+
allNeedSelectedCells.push(cell);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
action.selectCellCallback(allNeedSelectedCells);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { RTETableRowBlock } from '../dto/table-row-block';
|
|
2
|
+
import { RTETableBlock } from '../dto/table-block';
|
|
3
|
+
import { InsertChildrenAfterAction } from '../../../dto/actions/insert-children-after-block';
|
|
4
|
+
import { getCellSpan, getAllTableRows, getActualColumnPosition, getParentBlockByType, setSpanAttributes, createNewCell, } from '../utils/utils';
|
|
5
|
+
import { generateUUID } from '../../../../../utils/misc';
|
|
6
|
+
import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
|
|
7
|
+
/**
|
|
8
|
+
* Strategy to handle horizontal split of a table cell (splits top/bottom).
|
|
9
|
+
*/
|
|
10
|
+
export class SplitCellHorizontallyStrategy extends ActionHandleStrategy {
|
|
11
|
+
/**
|
|
12
|
+
* @inheritDoc
|
|
13
|
+
*/
|
|
14
|
+
handleAction(_action, target) {
|
|
15
|
+
const row = target.parent;
|
|
16
|
+
const section = row.parent;
|
|
17
|
+
const table = getParentBlockByType(row, RTETableBlock);
|
|
18
|
+
const allRows = getAllTableRows(table);
|
|
19
|
+
const currentRowIndex = allRows.indexOf(row);
|
|
20
|
+
const { colSpan, rowSpan } = getCellSpan(target);
|
|
21
|
+
const cellColumnPosition = getActualColumnPosition(target, allRows);
|
|
22
|
+
// When rowSpan=1, we need to insert a new row and both cells have rowSpan=1
|
|
23
|
+
// When rowSpan>1, we split the existing rowSpan
|
|
24
|
+
const topRowSpan = Math.ceil(rowSpan / 2);
|
|
25
|
+
const bottomRowSpan = Math.max(1, rowSpan - topRowSpan);
|
|
26
|
+
const needsNewRow = rowSpan === 1;
|
|
27
|
+
// Update original cell's rowSpan (top cell)
|
|
28
|
+
setSpanAttributes(target, colSpan, topRowSpan, table);
|
|
29
|
+
// Determine where the bottom cell should be inserted
|
|
30
|
+
const bottomCellRowIndex = currentRowIndex + topRowSpan;
|
|
31
|
+
// Create the bottom cell with the same col span and type as the original
|
|
32
|
+
const bottomCell = createNewCell(target.type);
|
|
33
|
+
setSpanAttributes(bottomCell, colSpan, bottomRowSpan, table);
|
|
34
|
+
if (needsNewRow) {
|
|
35
|
+
// Need to create a new row for the bottom cell
|
|
36
|
+
const newRow = this.createNewRowWithCell(section, bottomCell);
|
|
37
|
+
// Find the correct position in the section to insert the new row
|
|
38
|
+
const rowIndexInSection = section.children.indexOf(row);
|
|
39
|
+
section.apply(new InsertChildrenAfterAction(section.children[rowIndexInSection], newRow));
|
|
40
|
+
// Update allRows
|
|
41
|
+
allRows.splice(bottomCellRowIndex, 0, newRow);
|
|
42
|
+
// Update all cells from all previous rows that span through the insertion point
|
|
43
|
+
// (except the split cell itself)
|
|
44
|
+
this.updateCellsSpanningThroughInsertionPoint(allRows, bottomCellRowIndex, target, table);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
// Row exists - insert the bottom cell at the correct position
|
|
48
|
+
const targetRow = allRows[bottomCellRowIndex];
|
|
49
|
+
const insertIndex = this.findInsertPosition(targetRow, cellColumnPosition, allRows, bottomCellRowIndex);
|
|
50
|
+
targetRow.children.splice(insertIndex, 0, bottomCell);
|
|
51
|
+
bottomCell.parent = targetRow;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Find the correct insertion position for a cell at a given column position in a row.
|
|
56
|
+
* Accounts for cells from previous rows with rowspan extending into the target row.
|
|
57
|
+
*
|
|
58
|
+
* @param {RTETableRowBlock} targetRow - The row to insert into.
|
|
59
|
+
* @param {number} targetColumnPosition - The target column position.
|
|
60
|
+
* @param {RTETableRowBlock[]} allRows - All rows in the table.
|
|
61
|
+
* @param {number} rowIndex - The index of the target row.
|
|
62
|
+
* @returns {number} The physical cell index to insert at.
|
|
63
|
+
*/
|
|
64
|
+
findInsertPosition(targetRow, targetColumnPosition, allRows, rowIndex) {
|
|
65
|
+
// Calculate columns occupied by cells from previous rows extending into this row
|
|
66
|
+
let columnsOccupiedByPreviousRows = 0;
|
|
67
|
+
for (let r = 0; r < rowIndex; r++) {
|
|
68
|
+
const prevRow = allRows[r];
|
|
69
|
+
for (const prevCell of prevRow.children) {
|
|
70
|
+
const { colSpan, rowSpan } = getCellSpan(prevCell);
|
|
71
|
+
// Check if this cell extends into the target row
|
|
72
|
+
if (r + rowSpan > rowIndex) {
|
|
73
|
+
const prevCellColumnPosition = getActualColumnPosition(prevCell, allRows);
|
|
74
|
+
if (prevCellColumnPosition < targetColumnPosition) {
|
|
75
|
+
columnsOccupiedByPreviousRows += colSpan;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
// Find the insertion position in the target row
|
|
81
|
+
let currentColumn = columnsOccupiedByPreviousRows;
|
|
82
|
+
for (let i = 0; i < targetRow.children.length; i++) {
|
|
83
|
+
if (currentColumn >= targetColumnPosition) {
|
|
84
|
+
return i;
|
|
85
|
+
}
|
|
86
|
+
const cell = targetRow.children[i];
|
|
87
|
+
const { colSpan } = getCellSpan(cell);
|
|
88
|
+
currentColumn += colSpan;
|
|
89
|
+
}
|
|
90
|
+
return targetRow.children.length;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Create a new row with only the bottom cell.
|
|
94
|
+
* Other columns will be covered by cells from the original row with increased rowSpan.
|
|
95
|
+
*
|
|
96
|
+
* @param {RTETableBodyBlock | RTETableHeadBlock} section - The section (thead or tbody).
|
|
97
|
+
* @param {RTETableCellBlock | RTETableHeadCellBlock} bottomCell - The bottom cell to insert.
|
|
98
|
+
* @returns {RTETableRowBlock} The newly created row.
|
|
99
|
+
*/
|
|
100
|
+
createNewRowWithCell(section, bottomCell) {
|
|
101
|
+
const rowTemplate = {
|
|
102
|
+
id: generateUUID(),
|
|
103
|
+
type: 'table-row',
|
|
104
|
+
children: [],
|
|
105
|
+
};
|
|
106
|
+
const newRow = RTETableRowBlock.from(rowTemplate);
|
|
107
|
+
newRow.parent = section;
|
|
108
|
+
// Add the bottom cell to the row
|
|
109
|
+
newRow.children.push(bottomCell);
|
|
110
|
+
bottomCell.parent = newRow;
|
|
111
|
+
return newRow;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Update all cells from all previous rows that span through the newly inserted row.
|
|
115
|
+
* When a new row is inserted at `insertionRowIndex`, any cell from a previous row
|
|
116
|
+
* that has rowSpan extending to or beyond that position needs rowSpan increased by 1.
|
|
117
|
+
*
|
|
118
|
+
* @param {RTETableRowBlock[]} allRows - All rows in the table (after insertion).
|
|
119
|
+
* @param {number} insertionRowIndex - The index where the new row was inserted.
|
|
120
|
+
* @param {RTETableCellBlock | RTETableHeadCellBlock} splitCell - The cell that was split (skip this one).
|
|
121
|
+
* @param {RTETableBlock} table - The table block.
|
|
122
|
+
*/
|
|
123
|
+
updateCellsSpanningThroughInsertionPoint(allRows, insertionRowIndex, splitCell, table) {
|
|
124
|
+
// Check all rows before the insertion point (not including the inserted row itself)
|
|
125
|
+
for (let r = 0; r < insertionRowIndex; r++) {
|
|
126
|
+
const row = allRows[r];
|
|
127
|
+
for (const cell of row.children) {
|
|
128
|
+
// Skip the cell that was split - it already has the correct rowSpan
|
|
129
|
+
if (cell === splitCell) {
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
const { colSpan, rowSpan } = getCellSpan(cell);
|
|
133
|
+
// Calculate where this cell ends
|
|
134
|
+
const cellRowEnd = r + rowSpan;
|
|
135
|
+
// If this cell extends to or past where we inserted the row,
|
|
136
|
+
// it needs to span over the new row too
|
|
137
|
+
if (cellRowEnd >= insertionRowIndex) {
|
|
138
|
+
setSpanAttributes(cell, colSpan, rowSpan + 1, table);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { RTETableBlock } from '../dto/table-block';
|
|
2
|
+
import { InsertChildrenAfterAction } from '../../../dto/actions/insert-children-after-block';
|
|
3
|
+
import { getCellSpan, getParentBlockByType, setSpanAttributes, getAllTableRows, getActualColumnPosition, createNewCell, } from '../utils/utils';
|
|
4
|
+
import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
|
|
5
|
+
/**
|
|
6
|
+
* Strategy to handle vertical split of a table cell (splits left/right).
|
|
7
|
+
*/
|
|
8
|
+
export class SplitCellVerticallyStrategy extends ActionHandleStrategy {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
handleAction(_action, target) {
|
|
13
|
+
const row = target.parent;
|
|
14
|
+
const table = getParentBlockByType(row, RTETableBlock);
|
|
15
|
+
const allRows = getAllTableRows(table);
|
|
16
|
+
const currentRowIndex = allRows.indexOf(row);
|
|
17
|
+
const { colSpan, rowSpan } = getCellSpan(target);
|
|
18
|
+
// Get the actual column position of the cell being split
|
|
19
|
+
const cellColumnStart = getActualColumnPosition(target, allRows);
|
|
20
|
+
const cellColumnEnd = cellColumnStart + colSpan - 1;
|
|
21
|
+
// Calculate new column spans (split the column span)
|
|
22
|
+
const leftColSpan = Math.ceil(colSpan / 2);
|
|
23
|
+
const rightColSpan = Math.floor(colSpan / 2);
|
|
24
|
+
// Update original cell's column spans (left cell)
|
|
25
|
+
setSpanAttributes(target, leftColSpan, rowSpan, table);
|
|
26
|
+
// Create new cell (right cell) with same type as original
|
|
27
|
+
const newCell = createNewCell(target.type);
|
|
28
|
+
setSpanAttributes(newCell, rightColSpan, rowSpan, table);
|
|
29
|
+
// Insert new cell after the original in the same row
|
|
30
|
+
row.apply(new InsertChildrenAfterAction(target, newCell));
|
|
31
|
+
// Only when splitting a cell with colSpan=1 do we add a new column to the table.
|
|
32
|
+
// When colSpan>1, we're just redistributing existing columns.
|
|
33
|
+
// For example:
|
|
34
|
+
// colSpan=1: split into 1+1 → adds 1 new column
|
|
35
|
+
// colSpan=2: split into 1+1 → just redistributes 2 existing columns
|
|
36
|
+
// colSpan=3: split into 2+1 → just redistributes 3 existing columns
|
|
37
|
+
const newColumnsAdded = colSpan === 1 ? 1 : 0;
|
|
38
|
+
if (newColumnsAdded > 0) {
|
|
39
|
+
this.updateOtherRowsCells(allRows, currentRowIndex, cellColumnStart, cellColumnEnd, rowSpan, newColumnsAdded, table);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Update cells in other rows to account for the new columns added by the split.
|
|
44
|
+
* When a cell is split vertically and new columns are added to the table,
|
|
45
|
+
* cells in other rows that span across the position where the split happened
|
|
46
|
+
* need their colSpan increased.
|
|
47
|
+
*
|
|
48
|
+
* @param {RTETableRowBlock[]} allRows - All rows in the table.
|
|
49
|
+
* @param {number} splitRowIndex - The index of the row containing the split cell.
|
|
50
|
+
* @param {number} splitColumnStart - The starting column position of the split cell.
|
|
51
|
+
* @param {number} splitColumnEnd - The ending column position of the split cell.
|
|
52
|
+
* @param {number} splitCellRowSpan - The rowSpan of the split cell.
|
|
53
|
+
* @param {number} newColumnsAdded - The number of new columns added by the split.
|
|
54
|
+
* @param {RTETableBlock} table - The table block.
|
|
55
|
+
*/
|
|
56
|
+
updateOtherRowsCells(allRows, splitRowIndex, splitColumnStart, splitColumnEnd, splitCellRowSpan, newColumnsAdded, table) {
|
|
57
|
+
// Iterate through all rows
|
|
58
|
+
for (let rowIndex = 0; rowIndex < allRows.length; rowIndex++) {
|
|
59
|
+
const currentRow = allRows[rowIndex];
|
|
60
|
+
// Skip rows that are spanned by the split cell itself
|
|
61
|
+
if (rowIndex >= splitRowIndex && rowIndex < splitRowIndex + splitCellRowSpan) {
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
// Check each cell in the current row
|
|
65
|
+
for (const cell of currentRow.children) {
|
|
66
|
+
const cellColumnStart = getActualColumnPosition(cell, allRows);
|
|
67
|
+
const { colSpan, rowSpan } = getCellSpan(cell);
|
|
68
|
+
const cellColumnEnd = cellColumnStart + colSpan - 1;
|
|
69
|
+
// Check if this cell spans across the columns where the split happened
|
|
70
|
+
// A cell needs updating if its column range overlaps with the split cell's column range
|
|
71
|
+
const overlaps = cellColumnEnd >= splitColumnStart && cellColumnStart <= splitColumnEnd;
|
|
72
|
+
if (overlaps) {
|
|
73
|
+
// Increase this cell's colSpan by the number of new columns added
|
|
74
|
+
setSpanAttributes(cell, colSpan + newColumnsAdded, rowSpan, table);
|
|
75
|
+
break; // No need to check other cells in this row
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
|
|
2
|
+
import { RemoveChildrenAction } from '../../../dto/actions/remove-child-action';
|
|
3
|
+
import { CreateSegmentTableCellAction } from '../actions/create-segment-table-cell-action';
|
|
4
|
+
/**
|
|
5
|
+
* Strategy to split a partially overlapped table cell.
|
|
6
|
+
*/
|
|
7
|
+
export class SplitTableCellStrategy extends ActionHandleStrategy {
|
|
8
|
+
/**
|
|
9
|
+
* @inheritDoc
|
|
10
|
+
*/
|
|
11
|
+
handleAction(action, row) {
|
|
12
|
+
const { table, cell, col, cellStartCol, endCol, targetCellType } = action.payload;
|
|
13
|
+
const cellEndCol = cellStartCol + cell.colSpan - 1;
|
|
14
|
+
const leftColSpan = col > cellStartCol ? col - cellStartCol : 0;
|
|
15
|
+
const overlapEndCol = Math.min(endCol, cellEndCol);
|
|
16
|
+
const middleColSpan = overlapEndCol - col + 1;
|
|
17
|
+
const rightColSpan = cellEndCol - overlapEndCol;
|
|
18
|
+
if (leftColSpan > 0) {
|
|
19
|
+
row.apply(new CreateSegmentTableCellAction({
|
|
20
|
+
table,
|
|
21
|
+
sourceCell: cell,
|
|
22
|
+
colSpan: leftColSpan,
|
|
23
|
+
cellType: cell.type,
|
|
24
|
+
keepSourceContent: true,
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
row.apply(new CreateSegmentTableCellAction({
|
|
28
|
+
table,
|
|
29
|
+
sourceCell: cell,
|
|
30
|
+
colSpan: middleColSpan,
|
|
31
|
+
cellType: targetCellType,
|
|
32
|
+
keepSourceContent: leftColSpan === 0,
|
|
33
|
+
}));
|
|
34
|
+
if (rightColSpan > 0) {
|
|
35
|
+
row.apply(new CreateSegmentTableCellAction({
|
|
36
|
+
table,
|
|
37
|
+
sourceCell: cell,
|
|
38
|
+
colSpan: rightColSpan,
|
|
39
|
+
cellType: cell.type,
|
|
40
|
+
keepSourceContent: leftColSpan === 0 && middleColSpan === cell.colSpan,
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
row.apply(new RemoveChildrenAction(cell));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
|
|
2
|
+
import { getActualColumnPosition } from '../utils/utils';
|
|
3
|
+
/**
|
|
4
|
+
* Abstract base strategy for handling table column operations.
|
|
5
|
+
* Provides common functionality for all column-related strategies.
|
|
6
|
+
*/
|
|
7
|
+
export class TableColumnStrategy extends ActionHandleStrategy {
|
|
8
|
+
/**
|
|
9
|
+
* Finds the index range of cells within a table row.
|
|
10
|
+
* Returns the start and end indices of the given cell range.
|
|
11
|
+
*
|
|
12
|
+
* @param {(RTETableCellBlock | RTETableHeadCellBlock)[]} cellRange - The range of table cells to find indices for.
|
|
13
|
+
* @param {RTETableRowBlock[]} allTableRows - All table rows.
|
|
14
|
+
* @param {string[][]} grid - The 2D grid representation of the table
|
|
15
|
+
* @returns {[number, number]} A tuple containing the start and end indices.
|
|
16
|
+
*/
|
|
17
|
+
getBoundaryCellColumnRange(cellRange, allTableRows, grid) {
|
|
18
|
+
let minCol = Number.POSITIVE_INFINITY;
|
|
19
|
+
let maxCol = Number.NEGATIVE_INFINITY;
|
|
20
|
+
cellRange.forEach((cell) => {
|
|
21
|
+
const logicalCol = getActualColumnPosition(cell, allTableRows, grid);
|
|
22
|
+
minCol = Math.min(minCol, logicalCol);
|
|
23
|
+
maxCol = Math.max(maxCol, logicalCol);
|
|
24
|
+
});
|
|
25
|
+
return [minCol, maxCol];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { generateUUID } from '../../../../../utils/misc';
|
|
2
|
+
import { cleanObject } from '../../../../../utils/object';
|
|
3
|
+
import { ActionHandleStrategy } from '../../../dto/action-handle-strategies/action-handle-strategy.abstract';
|
|
4
|
+
import { AppendChildrenAction } from '../../../dto/actions/append-child-nodes-action';
|
|
5
|
+
import { InsertChildrenAfterAction } from '../../../dto/actions/insert-children-after-block';
|
|
6
|
+
import { InsertChildrenBeforeAction } from '../../../dto/actions/insert-children-before-block';
|
|
7
|
+
import { CommonAnnotationTypeEnum } from '../../../dto/annotations/common-annotation.abstract';
|
|
8
|
+
import { CustomAttributeAnnotation } from '../../../dto/annotations/custom-attribute-annotation';
|
|
9
|
+
import { RTETableHeadBlock } from '../dto/table-head-block';
|
|
10
|
+
import { RTETableHeadCellBlock } from '../dto/table-head-cell-block';
|
|
11
|
+
/**
|
|
12
|
+
* Abstract base strategy for table row actions. Provides common utilities for row manipulations.
|
|
13
|
+
*/
|
|
14
|
+
export class TableRowCommonUtilitiesStrategy extends ActionHandleStrategy {
|
|
15
|
+
/**
|
|
16
|
+
* Calculates the maximum number of cells in any row, accounting for colSpan.
|
|
17
|
+
*
|
|
18
|
+
* @param {RTETableRowBlock[]} rows - The rows to analyze.
|
|
19
|
+
* @returns {number} The maximum cell count across the rows.
|
|
20
|
+
*/
|
|
21
|
+
getRowsMaxCellCount(rows) {
|
|
22
|
+
let maxCells = 0;
|
|
23
|
+
for (const row of rows) {
|
|
24
|
+
let rowCols = 0;
|
|
25
|
+
for (const cell of row.children) {
|
|
26
|
+
rowCols += cell.colSpan;
|
|
27
|
+
}
|
|
28
|
+
maxCells = Math.max(maxCells, rowCols);
|
|
29
|
+
}
|
|
30
|
+
return maxCells;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Compute logical start columns for each row's cells, accounting for colSpan and rowSpan.
|
|
34
|
+
*
|
|
35
|
+
* @param {RTETableRowBlock[]} rows - Table rows in a section.
|
|
36
|
+
* @returns {number[][]} Array of row cell start columns by cell index.
|
|
37
|
+
*/
|
|
38
|
+
getRowCellStartCols(rows) {
|
|
39
|
+
// Calculate max columns efficiently
|
|
40
|
+
const maxCols = this.getRowsMaxCellCount(rows);
|
|
41
|
+
const rowStartCols = new Array(rows.length);
|
|
42
|
+
// Track occupied columns due to rowSpan
|
|
43
|
+
const spanCarryOver = new Array(maxCols).fill(0);
|
|
44
|
+
for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {
|
|
45
|
+
const row = rows[rowIndex];
|
|
46
|
+
const cells = row.children;
|
|
47
|
+
const startCols = new Array(cells.length);
|
|
48
|
+
let currentCol = 0;
|
|
49
|
+
for (let cellIndex = 0; cellIndex < cells.length; cellIndex++) {
|
|
50
|
+
const cell = cells[cellIndex];
|
|
51
|
+
// Skip columns occupied by previous row's rowspan
|
|
52
|
+
while (currentCol < spanCarryOver.length && spanCarryOver[currentCol] > 0) {
|
|
53
|
+
currentCol++;
|
|
54
|
+
}
|
|
55
|
+
startCols[cellIndex] = currentCol;
|
|
56
|
+
const colSpan = Math.max(cell.colSpan, TableRowCommonUtilitiesStrategy.DEFAULT_CELLSPAN);
|
|
57
|
+
// Mark columns as occupied if cell has rowspan > 1
|
|
58
|
+
if (cell.rowSpan > TableRowCommonUtilitiesStrategy.DEFAULT_CELLSPAN) {
|
|
59
|
+
for (let i = 0; i < colSpan; i++) {
|
|
60
|
+
const col = currentCol + i;
|
|
61
|
+
if (col < spanCarryOver.length) {
|
|
62
|
+
spanCarryOver[col] = Math.max(spanCarryOver[col], cell.rowSpan);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
currentCol += colSpan;
|
|
67
|
+
}
|
|
68
|
+
rowStartCols[rowIndex] = startCols;
|
|
69
|
+
// Decrement all carryOver values at the end of each row
|
|
70
|
+
// This represents "one row has been consumed"
|
|
71
|
+
for (let i = 0; i < spanCarryOver.length; i++) {
|
|
72
|
+
if (spanCarryOver[i] > 0)
|
|
73
|
+
spanCarryOver[i]--;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return rowStartCols;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Updates the rowspan/colspan attribute of a table cell.
|
|
80
|
+
*
|
|
81
|
+
* @param {RTETableCellBlock | RTETableHeadCellBlock} cell - The cell to update.
|
|
82
|
+
* @param {'rowspan' | 'colspan'} spanKey - The attribute key to update.
|
|
83
|
+
* @param {number} newSpan - The new rowspan/colspan value.
|
|
84
|
+
*/
|
|
85
|
+
updateCellSpan(cell, spanKey, newSpan) {
|
|
86
|
+
const customAttrAnnotation = cell.getCustomAttributesAnnotation();
|
|
87
|
+
// Only set rowspan/colspan if > 1, otherwise remove the attribute
|
|
88
|
+
if (newSpan <= TableRowCommonUtilitiesStrategy.DEFAULT_CELLSPAN) {
|
|
89
|
+
if (customAttrAnnotation) {
|
|
90
|
+
const currentAttrs = customAttrAnnotation.render();
|
|
91
|
+
delete currentAttrs[spanKey];
|
|
92
|
+
cell.annotationMap.set(CommonAnnotationTypeEnum.CUSTOM_ATTRIBUTE, new CustomAttributeAnnotation(currentAttrs));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
const attrs = customAttrAnnotation ? customAttrAnnotation.render() : {};
|
|
97
|
+
attrs[spanKey] = newSpan.toString();
|
|
98
|
+
cell.annotationMap.set(CommonAnnotationTypeEnum.CUSTOM_ATTRIBUTE, new CustomAttributeAnnotation(attrs));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Insert moved cells into target rows using logical column positions.
|
|
103
|
+
*
|
|
104
|
+
* @param {Map<number, CellToMove[]>} cellsToMove - Cells grouped by target row.
|
|
105
|
+
* @param {RTETableRowBlock[]} allRows - All rows in the section.
|
|
106
|
+
* @param {number[][]} rowCellStartCols - Logical start columns per row.
|
|
107
|
+
*/
|
|
108
|
+
insertMovedCells(cellsToMove, allRows, rowCellStartCols) {
|
|
109
|
+
cellsToMove.forEach((cells, targetRowIndex) => {
|
|
110
|
+
const targetRow = allRows[targetRowIndex];
|
|
111
|
+
if (targetRow) {
|
|
112
|
+
const targetRowStartCols = rowCellStartCols[targetRowIndex] || [];
|
|
113
|
+
// sort cells in descending order of logical start column to avoid index shifting issues during insertion
|
|
114
|
+
cells.sort((a, b) => {
|
|
115
|
+
if (a.logicalStartCol === b.logicalStartCol) {
|
|
116
|
+
return b.cellIndex - a.cellIndex;
|
|
117
|
+
}
|
|
118
|
+
return b.logicalStartCol - a.logicalStartCol;
|
|
119
|
+
});
|
|
120
|
+
cells.forEach((cellInfo) => {
|
|
121
|
+
const { cell, logicalStartCol } = cellInfo;
|
|
122
|
+
if (targetRow.children.length === 0) {
|
|
123
|
+
targetRow.apply(new AppendChildrenAction([cell]));
|
|
124
|
+
targetRowStartCols[0] = logicalStartCol;
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
const insertIndex = targetRowStartCols.findIndex((startCol) => startCol >= logicalStartCol);
|
|
128
|
+
if (insertIndex === -1) {
|
|
129
|
+
const lastCell = targetRow.children[targetRow.children.length - 1];
|
|
130
|
+
targetRow.apply(new InsertChildrenAfterAction(lastCell, cell));
|
|
131
|
+
targetRowStartCols.push(logicalStartCol);
|
|
132
|
+
}
|
|
133
|
+
else if (insertIndex === 0) {
|
|
134
|
+
targetRow.apply(new InsertChildrenBeforeAction(targetRow.children[0], cell));
|
|
135
|
+
targetRowStartCols.unshift(logicalStartCol);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
targetRow.apply(new InsertChildrenBeforeAction(targetRow.children[insertIndex], cell));
|
|
139
|
+
targetRowStartCols.splice(insertIndex, 0, logicalStartCol);
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Splits the selected rows into head rows and body rows.
|
|
147
|
+
*
|
|
148
|
+
* @param {RTETableRowBlock[]} rows - The rows to be split.
|
|
149
|
+
* @returns {RTETableRowBlock[][]} - An array containing two arrays: the first with head rows and the second with body rows.
|
|
150
|
+
*/
|
|
151
|
+
splitRowsBySection(rows) {
|
|
152
|
+
const headRows = [];
|
|
153
|
+
const bodyRows = [];
|
|
154
|
+
rows.forEach((row) => {
|
|
155
|
+
if (row.parent instanceof RTETableHeadBlock) {
|
|
156
|
+
headRows.push(row);
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
bodyRows.push(row);
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
return [headRows, bodyRows];
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Build indices for selected rows within the section.
|
|
166
|
+
*
|
|
167
|
+
* @param {RTETableRowBlock[]} selectedRows - Selected rows.
|
|
168
|
+
* @param {RTETableRowBlock[]} allRows - All rows in the section.
|
|
169
|
+
* @returns {Set<number>} The set of selected row indices.
|
|
170
|
+
*/
|
|
171
|
+
buildSelectedIndices(selectedRows, allRows) {
|
|
172
|
+
return new Set(selectedRows
|
|
173
|
+
.map((row) => allRows.indexOf(row))
|
|
174
|
+
.filter((index) => index >= 0));
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Determine whether a cell's row span intersects the removal range.
|
|
178
|
+
*
|
|
179
|
+
* @param {number} cellStartIndex - Cell start row index.
|
|
180
|
+
* @param {number} cellEndIndex - Cell end row index.
|
|
181
|
+
* @param {number} firstRemovalIndex - First row index to remove.
|
|
182
|
+
* @param {number} lastRemovalIndex - Last row index to remove.
|
|
183
|
+
* @returns {boolean} True if the ranges intersect.
|
|
184
|
+
*/
|
|
185
|
+
intersectsRemovalRange(cellStartIndex, cellEndIndex, firstRemovalIndex, lastRemovalIndex) {
|
|
186
|
+
return cellStartIndex <= lastRemovalIndex && cellEndIndex >= firstRemovalIndex;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Count how many rows in the cell span are being removed.
|
|
190
|
+
*
|
|
191
|
+
* @param {number} cellStartIndex - Cell start row index.
|
|
192
|
+
* @param {number} cellEndIndex - Cell end row index.
|
|
193
|
+
* @param {Set<number>} removalIndices - Indices of rows to remove.
|
|
194
|
+
* @returns {number} Count of removed rows in the span.
|
|
195
|
+
*/
|
|
196
|
+
countRemovedRows(cellStartIndex, cellEndIndex, removalIndices) {
|
|
197
|
+
let removedRowsCount = 0;
|
|
198
|
+
for (let i = cellStartIndex; i <= cellEndIndex; i++) {
|
|
199
|
+
if (removalIndices.has(i)) {
|
|
200
|
+
removedRowsCount++;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return removedRowsCount;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Get the column head end index in a table row.
|
|
207
|
+
*
|
|
208
|
+
* @param {RTETableRowBlock} tableRow - The table row block.
|
|
209
|
+
* @returns {number} The end index of the column head.
|
|
210
|
+
*/
|
|
211
|
+
getHeadCellLength(tableRow) {
|
|
212
|
+
let length = 0;
|
|
213
|
+
for (let i = 0; i < tableRow.children.length; i++) {
|
|
214
|
+
const cellBlock = tableRow.children[i];
|
|
215
|
+
if (cellBlock instanceof RTETableHeadCellBlock) {
|
|
216
|
+
length += cellBlock.colSpan;
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return length;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Gets the starting cell for a given cell index by checking row spans.
|
|
226
|
+
*
|
|
227
|
+
* @param {RTETableRowBlock[]} allRows - All rows in the section to check for row spans.
|
|
228
|
+
* @param {number[][]} rowsStartCols - Pre-calculated starting column indices for each cell in each row.
|
|
229
|
+
* @param {number} rowIndex - The index of the row to start checking from.
|
|
230
|
+
* @param {number} cellIndex - The logical cell index to find the starting cell for.
|
|
231
|
+
* @returns {LogicalStartSpanCell} - The starting cell and its row index if found, otherwise the cell is undefined.
|
|
232
|
+
*/
|
|
233
|
+
getTheStartSpanCell(allRows, rowsStartCols, rowIndex, cellIndex) {
|
|
234
|
+
const result = { rowIndex };
|
|
235
|
+
for (let i = rowIndex; i >= 0; i--) {
|
|
236
|
+
const cellStartCols = rowsStartCols[i];
|
|
237
|
+
if (cellStartCols.includes(cellIndex)) {
|
|
238
|
+
result.cell = allRows[i].children[cellStartCols.indexOf(cellIndex)];
|
|
239
|
+
result.rowIndex = i;
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return result;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Get the default cell block template.
|
|
247
|
+
*
|
|
248
|
+
* @param {string} cellType - The type of the cell block.
|
|
249
|
+
* @param {number} colSpan - The colspan attribute for the cell.
|
|
250
|
+
* @param {number} rowSpan - The rowspan attribute for the cell.
|
|
251
|
+
* @returns {VegaRTETableCellBlock | VegaRTETableHeadCellBlock} The default cell block template.
|
|
252
|
+
*/
|
|
253
|
+
getDefaultCellBlockTemplate(cellType, colSpan, rowSpan = 1) {
|
|
254
|
+
const customAttribute = cleanObject({
|
|
255
|
+
colspan: colSpan > 1 ? colSpan.toString() : null,
|
|
256
|
+
rowspan: rowSpan > 1 ? rowSpan.toString() : null,
|
|
257
|
+
});
|
|
258
|
+
const id = generateUUID();
|
|
259
|
+
const cellBlock = {
|
|
260
|
+
id,
|
|
261
|
+
type: cellType,
|
|
262
|
+
children: [
|
|
263
|
+
{
|
|
264
|
+
id: `${id}-p`,
|
|
265
|
+
type: 'paragraph',
|
|
266
|
+
nodes: [
|
|
267
|
+
{
|
|
268
|
+
id: `${id}-p-t`,
|
|
269
|
+
type: 'text',
|
|
270
|
+
text: '',
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
};
|
|
276
|
+
if (Object.keys(customAttribute).length > 0) {
|
|
277
|
+
cellBlock.annotations = {
|
|
278
|
+
customAttribute,
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
return cellBlock;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Convert a numeric-keyed map to an array sorted by ascending key.
|
|
285
|
+
*
|
|
286
|
+
* @typedef T - The type of the values in the map.
|
|
287
|
+
* @param {Map<number, T>} valueMap - The map with numeric keys to convert.
|
|
288
|
+
* @returns {T[]} An array of values sorted by their numeric keys.
|
|
289
|
+
*/
|
|
290
|
+
getSortedValuesByNumericKey(valueMap) {
|
|
291
|
+
return Array.from(valueMap.entries())
|
|
292
|
+
.sort(([aKey], [bKey]) => aKey - bKey)
|
|
293
|
+
.map(([, value]) => value);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
TableRowCommonUtilitiesStrategy.DEFAULT_CELLSPAN = 1;
|