@heartlandone/vega 2.74.0 → 2.75.0-RTE-table-preview
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/align-left-4a76df69.js +22 -0
- package/dist/cjs/{app-globals-e9f2edcf.js → app-globals-6c9a0e62.js} +21 -19
- package/dist/cjs/{child-nodes-event-prevent-slimmer-536d29fc.js → child-nodes-event-prevent-slimmer-aca87dac.js} +1 -1
- package/dist/cjs/click-outside-only-to-dismiss-strategy-407f6d1e.js +32 -0
- package/dist/cjs/{code-block-c8ae7e0a.js → code-block-d9001f03.js} +36 -5
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-13968181.js → component-value-history-controller-slimmer.abstract-b00e9f58.js} +28 -7
- package/dist/cjs/{dto-renderer-manager-ca753971.js → content-state-466f277f.js} +17 -60
- package/dist/cjs/{date-required-rule-99cca681.js → date-required-rule-30ee62d0.js} +1 -1
- package/dist/cjs/{design-token-4e23c50a.js → design-token-a569577e.js} +2 -2
- package/dist/cjs/{dom-node-subject-observer-factory-1c8f7880.js → dom-node-subject-observer-factory-b5e71bf6.js} +4 -0
- package/dist/cjs/dto-renderer-manager-ae5fcbba.js +58 -0
- package/dist/cjs/{element-appender-slimmer-dc769946.js → element-appender-slimmer-b7fdd82e.js} +164 -40
- package/dist/cjs/{event-emit-slimmer-6a591353.js → event-emit-slimmer-2dacabbd.js} +2 -2
- package/dist/cjs/{form-field-controller-slimmer-6e3e14fd.js → form-field-controller-slimmer-3ea2464a.js} +3 -3
- package/dist/cjs/{image-annotation-action-92df8979.js → image-annotation-action-4435d531.js} +4 -32
- package/dist/cjs/{index-638a0f0d.js → index-19e5b936.js} +2 -2
- package/dist/cjs/index-58ea899e.js +4 -0
- package/dist/cjs/index.cjs.js +54 -49
- package/dist/cjs/{inject-keyboard-manager-a6101379.js → inject-keyboard-manager-d21b4387.js} +1 -1
- package/dist/cjs/{internal-vega-event-manager-d587a33c.js → internal-vega-event-manager-6befeb34.js} +13 -2
- package/dist/cjs/{keyboard-manager-d8adb0ed.js → keyboard-manager-3dea6b28.js} +1 -1
- package/dist/cjs/{keyboard-manager-slimmer-15e65357.js → keyboard-manager-slimmer-0d45f944.js} +1 -1
- package/dist/cjs/{language-extension-d78389f9.js → language-extension-26331915.js} +8 -8
- package/dist/cjs/loader.cjs.js +20 -15
- package/dist/cjs/{month-view-generator-706c5477.js → month-view-generator-49cc5fc2.js} +1 -1
- package/dist/cjs/{public-rules-23a86d33.js → public-rules-942bd931.js} +8 -8
- package/dist/cjs/{range-80f19554.js → range-cafe69a9.js} +1 -1
- package/dist/cjs/{responsive-format-facade-8d195366.js → responsive-format-facade-6c22bbbd.js} +5 -4
- package/dist/cjs/{rich-text-editor-required-rule-80304585.js → rich-text-editor-required-rule-0dcb08c8.js} +2 -2
- package/dist/cjs/sanitize-fb222510.js +131 -0
- package/dist/cjs/split-cell-operation-9930fde8.js +2133 -0
- package/dist/cjs/{string-format-strategy.abstract-a8264fca.js → string-format-strategy.abstract-63514c60.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-338bbd73.js → string-input-formatter-slimmer-655d0322.js} +4 -4
- package/dist/cjs/{string-mask-strategy-4e7d3780.js → string-mask-strategy-d23ac21a.js} +2 -2
- package/dist/cjs/{style-formatter-dbda894b.js → style-formatter-0e0ae896.js} +2 -2
- package/dist/cjs/{sub-state-notify-slimmer-1efa69c4.js → sub-state-notify-slimmer-3fa87162.js} +2 -2
- package/dist/cjs/{sub-state-observer-slimmer-6afa62f5.js → sub-state-observer-slimmer-77deba40.js} +2 -2
- package/dist/cjs/table-extension-5f27207f.js +6321 -0
- package/dist/cjs/{time-required-rule-9d39a620.js → time-required-rule-c96ecdc9.js} +1 -1
- package/dist/cjs/{type-guard-69d2cf01.js → type-guard-a0f026d8.js} +12 -0
- package/dist/cjs/{valid-credit-card-number-rule-9f40d1d9.js → valid-credit-card-number-rule-c854bed9.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +15 -11
- package/dist/cjs/vega-app-header-button.cjs.entry.js +16 -12
- package/dist/cjs/vega-banner.cjs.entry.js +3 -3
- package/dist/cjs/vega-box.cjs.entry.js +16 -12
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
- package/dist/cjs/vega-button-circle.cjs.entry.js +16 -12
- package/dist/cjs/vega-button-group_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
- package/dist/cjs/vega-button.cjs.entry.js +15 -11
- package/dist/cjs/vega-calendar_4.cjs.entry.js +9 -9
- package/dist/cjs/vega-card.cjs.entry.js +15 -11
- package/dist/cjs/vega-carousel.cjs.entry.js +14 -10
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-chip.cjs.entry.js +16 -12
- package/dist/cjs/vega-code-block.cjs.entry.js +11 -11
- package/dist/cjs/vega-color-picker.cjs.entry.js +6 -6
- package/dist/cjs/vega-combo-box.cjs.entry.js +12 -11
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +397 -346
- package/dist/cjs/vega-dialog_2.cjs.entry.js +24 -20
- package/dist/cjs/vega-divider.cjs.entry.js +16 -12
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +42 -21
- 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 +6 -6
- package/dist/cjs/vega-flag-icon.cjs.entry.js +14 -10
- package/dist/cjs/vega-flex.cjs.entry.js +16 -12
- package/dist/cjs/vega-font.cjs.entry.js +15 -11
- package/dist/cjs/vega-form.cjs.entry.js +9 -9
- package/dist/cjs/vega-grid.cjs.entry.js +15 -11
- package/dist/cjs/vega-icon.cjs.entry.js +15 -11
- package/dist/cjs/vega-image-uploader.cjs.entry.js +19 -15
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +11 -11
- package/dist/cjs/vega-input-numeric.cjs.entry.js +11 -11
- package/dist/cjs/vega-input-passcode.cjs.entry.js +10 -10
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +18 -14
- package/dist/cjs/vega-input-range.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-select.cjs.entry.js +24 -16
- package/dist/cjs/vega-input.cjs.entry.js +340 -99
- package/dist/cjs/{vega-internal-event-id-f2465f1b.js → vega-internal-event-id-73334b4b.js} +4 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +21 -17
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +19 -15
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +4 -4
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +2 -2
- package/dist/cjs/vega-pagination.cjs.entry.js +17 -13
- package/dist/cjs/vega-popover_2.cjs.entry.js +19 -15
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +16 -12
- package/dist/cjs/vega-radio_2.cjs.entry.js +10 -10
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +18 -20
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +192 -237
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +1521 -0
- package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +18 -14
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +23 -19
- package/dist/cjs/vega-signature-capture.cjs.entry.js +17 -13
- package/dist/cjs/vega-stepper.cjs.entry.js +7 -7
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-table_11.cjs.entry.js +22 -19
- package/dist/cjs/vega-textarea.cjs.entry.js +7 -7
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +23 -18
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +6 -6
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +18 -14
- package/dist/cjs/vega.cjs.js +20 -15
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +1 -1
- package/dist/collection/components/vega-button-group/vega-button-group-item/vega-button-group-item.js +1 -1
- package/dist/collection/components/vega-calendar/vega-calendar.js +1 -1
- package/dist/collection/components/vega-combo-box/slimmers/renderers/vega-combo-box-dropdown-renderer.js +2 -1
- package/dist/collection/components/vega-date-picker/assets/icons.js +4 -1
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-open-state-controller.js +2 -1
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +2 -2
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.js +109 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-renderer.js +4 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.js +42 -70
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +12 -56
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +435 -108
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +5 -0
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-search-controller.js +5 -1
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-source-controller.js +7 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +3 -2
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +19 -4
- package/dist/collection/components/vega-field-label/vega-field-label.js +1 -1
- package/dist/collection/components/vega-input/slimmers/controllers/vega-input-render-mode-controller.js +51 -0
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-renderer.js +6 -0
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-suggestions-renderer.js +142 -0
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-renderer.js +12 -1
- package/dist/collection/components/vega-input/vega-input.js +200 -3
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +8 -3
- 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/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/extension.abstract.js +18 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-children-remove-interceptor.js +42 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-cell-content-delete-interceptor.js +26 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-interceptors/prevent-row-insert-interceptor.js +23 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-block-strategy.js +25 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-column-strategy.js +57 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.js +57 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-block-strategy.js +54 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-column-strategy.js +42 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-strategy.js +163 -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/select-table-column-strategy.js +22 -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/table-column-strategy.abstract.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.js +133 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.js +99 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-cell-properties-strategy.js +24 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-properties-strategy.js +29 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-block-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-column-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/delete-table-row-action.js +18 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-block-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-column-action.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-action.js +26 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/merge-cells-action.js +17 -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/table-annotations-action.js +18 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-caption-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.js +18 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.js +18 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/toggle-header-row-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/toggle-header-table-column-action.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/update-table-properties-action.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler-base.js +76 -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 +57 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.js +161 -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 +45 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/constants/styles.constants.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +119 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-body-block.js +56 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.js +69 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.js +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 +50 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/table-to-table-block-strategy.js +42 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tbody-to-table-body-block-strategy.js +42 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/td-to-table-cell-block-strategy.js +71 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/thead-to-table-head-block-strategy.js +42 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tr-to-table-row-block-strategy.js +42 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.js +22 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.js +76 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.js +254 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.js +142 -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 +152 -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 +135 -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 +132 -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 +164 -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 +234 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/utils/table-color-manager.js +51 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/utils/utils.js +355 -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 +86 -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 +75 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/vega-rich-text-table-setting-renderer.js +55 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.css +20 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.js +222 -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 +20 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.js +10 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +23 -2
- package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +252 -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 +288 -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 +79 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-cell-annotation.test.js +323 -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 +1539 -0
- package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-test-utils.js +172 -0
- package/dist/collection/components/vega-rich-text-editor/test/spec-utils.js +5 -2
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.css +4 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +0 -5
- package/dist/collection/components/vega-selection-chip/vega-selection-chip.js +1 -1
- package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-range-dropdown-controller.js +2 -1
- package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-single-dropdown-controller.js +2 -1
- 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/component-event-id-map.js +13 -2
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +2 -0
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +2 -0
- package/dist/collection/helpers/event-manager/test/component-event-id-map.test.js +3 -1
- package/dist/collection/helpers/event-manager/test/vega-event-manager.test.js +3 -1
- package/dist/collection/helpers/slimmers/element-appender/element-appender-slimmer.js +60 -32
- package/dist/collection/helpers/slimmers/element-appender/test/element-appender-slimmer.test.js +3 -2
- package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/click-outside-only-to-dismiss-strategy.js +28 -0
- package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/click-trigger-strategy.js +33 -0
- package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/hover-trigger-strategy.js +42 -0
- package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/none-trigger-strategy.js +22 -0
- package/dist/collection/helpers/slimmers/element-appender/trigger-strategies/trigger-strategy.interface.js +1 -0
- package/dist/collection/types/test/type-guard.test.js +8 -1
- package/dist/collection/types/type-guard.js +11 -0
- package/dist/collection/utils/sanitize.js +126 -0
- package/dist/collection/utils/spec-utils.js +4 -3
- package/dist/collection/utils/test/sanitize.test.js +65 -0
- package/dist/esm/align-left-7f959adf.js +17 -0
- package/dist/esm/{app-globals-9203a3e5.js → app-globals-4146c01c.js} +10 -8
- package/dist/esm/{child-nodes-event-prevent-slimmer-e6f98de5.js → child-nodes-event-prevent-slimmer-225e7b58.js} +1 -1
- package/dist/esm/click-outside-only-to-dismiss-strategy-3d286c1b.js +30 -0
- package/dist/esm/{code-block-4e0d321d.js → code-block-36393b45.js} +37 -6
- package/dist/esm/{component-value-history-controller-slimmer.abstract-0ab0d9f0.js → component-value-history-controller-slimmer.abstract-82339b2b.js} +28 -7
- package/dist/esm/{dto-renderer-manager-402e89d0.js → content-state-e8ef033a.js} +15 -60
- package/dist/esm/{date-required-rule-a9980386.js → date-required-rule-47ecc28f.js} +1 -1
- package/dist/esm/{design-token-175c4c0c.js → design-token-c57a58b4.js} +2 -2
- package/dist/esm/{dom-node-subject-observer-factory-1aaa1159.js → dom-node-subject-observer-factory-d4e16f66.js} +3 -1
- package/dist/esm/dto-renderer-manager-12bc9121.js +56 -0
- package/dist/esm/{element-appender-slimmer-7e7aa230.js → element-appender-slimmer-a7341fc1.js} +161 -37
- package/dist/esm/{event-emit-slimmer-2d791d0e.js → event-emit-slimmer-1bb4b533.js} +2 -2
- package/dist/esm/{form-field-controller-slimmer-257928c1.js → form-field-controller-slimmer-907bf7c2.js} +3 -3
- package/dist/esm/{image-annotation-action-2cdbbd57.js → image-annotation-action-82cef6e4.js} +4 -31
- package/dist/esm/index-090d31ca.js +4 -0
- package/dist/esm/{index-0d487fae.js → index-2466b0c0.js} +2 -2
- package/dist/esm/index.js +26 -22
- package/dist/esm/{inject-keyboard-manager-9241968c.js → inject-keyboard-manager-83d76ff5.js} +1 -1
- package/dist/esm/{internal-vega-event-manager-fdee2a0a.js → internal-vega-event-manager-2cbb828a.js} +13 -2
- package/dist/esm/{keyboard-manager-89acac79.js → keyboard-manager-c92808d8.js} +1 -1
- package/dist/esm/{keyboard-manager-slimmer-e303cb7d.js → keyboard-manager-slimmer-79c78ce8.js} +1 -1
- package/dist/esm/{language-extension-4bed2436.js → language-extension-dcc43702.js} +2 -2
- package/dist/esm/loader.js +20 -15
- package/dist/esm/{month-view-generator-4bec99fd.js → month-view-generator-16192182.js} +1 -1
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{public-rules-05e83e40.js → public-rules-b8ea651f.js} +8 -8
- package/dist/esm/{range-5086f250.js → range-872aad9f.js} +1 -1
- package/dist/esm/{responsive-format-facade-f995d6de.js → responsive-format-facade-9278eae4.js} +5 -4
- package/dist/esm/{rich-text-editor-required-rule-0d1147a8.js → rich-text-editor-required-rule-36dd4242.js} +1 -1
- package/dist/esm/sanitize-fd0cb40d.js +129 -0
- package/dist/esm/split-cell-operation-6749f654.js +2090 -0
- package/dist/esm/{string-format-strategy.abstract-75540c16.js → string-format-strategy.abstract-fc60db79.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-3a42d9b8.js → string-input-formatter-slimmer-7a1e8754.js} +4 -4
- package/dist/esm/{string-mask-strategy-4a18ed1a.js → string-mask-strategy-0b0accaa.js} +2 -2
- package/dist/esm/{style-formatter-f4067407.js → style-formatter-e937952a.js} +2 -2
- package/dist/esm/{sub-state-notify-slimmer-71b9bbd5.js → sub-state-notify-slimmer-2ecdba12.js} +2 -2
- package/dist/esm/{sub-state-observer-slimmer-41a1b380.js → sub-state-observer-slimmer-2d5dba8d.js} +2 -2
- package/dist/esm/table-extension-6b31754b.js +6302 -0
- package/dist/esm/{time-required-rule-8ec1faf5.js → time-required-rule-5fa43804.js} +1 -1
- package/dist/esm/{type-guard-b48aec98.js → type-guard-c65a227d.js} +12 -1
- package/dist/esm/{valid-credit-card-number-rule-96eaf9b1.js → valid-credit-card-number-rule-666c415d.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +15 -11
- package/dist/esm/vega-app-header-button.entry.js +16 -12
- package/dist/esm/vega-banner.entry.js +3 -3
- package/dist/esm/vega-box.entry.js +16 -12
- package/dist/esm/vega-breadcrumb.entry.js +4 -4
- package/dist/esm/vega-button-circle.entry.js +16 -12
- package/dist/esm/vega-button-group_2.entry.js +7 -7
- package/dist/esm/vega-button-link.entry.js +4 -4
- package/dist/esm/vega-button.entry.js +15 -11
- package/dist/esm/vega-calendar_4.entry.js +9 -9
- package/dist/esm/vega-card.entry.js +15 -11
- package/dist/esm/vega-carousel.entry.js +14 -10
- package/dist/esm/vega-checkbox_2.entry.js +7 -7
- package/dist/esm/vega-chip.entry.js +16 -12
- package/dist/esm/vega-code-block.entry.js +11 -11
- package/dist/esm/vega-color-picker.entry.js +6 -6
- package/dist/esm/vega-combo-box.entry.js +12 -11
- package/dist/esm/vega-date-picker_2.entry.js +397 -346
- package/dist/esm/vega-dialog_2.entry.js +18 -14
- package/dist/esm/vega-divider.entry.js +16 -12
- package/dist/esm/vega-dropdown_5.entry.js +42 -21
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-label.entry.js +3 -3
- package/dist/esm/vega-file-uploader.entry.js +6 -6
- package/dist/esm/vega-flag-icon.entry.js +14 -10
- package/dist/esm/vega-flex.entry.js +16 -12
- package/dist/esm/vega-font.entry.js +15 -11
- package/dist/esm/vega-form.entry.js +9 -9
- package/dist/esm/vega-grid.entry.js +15 -11
- package/dist/esm/vega-icon.entry.js +15 -11
- package/dist/esm/vega-image-uploader.entry.js +18 -14
- package/dist/esm/vega-input-credit-card.entry.js +11 -11
- package/dist/esm/vega-input-numeric.entry.js +11 -11
- package/dist/esm/vega-input-passcode.entry.js +10 -10
- package/dist/esm/vega-input-phone-number.entry.js +18 -14
- package/dist/esm/vega-input-range.entry.js +7 -7
- package/dist/esm/vega-input-select.entry.js +24 -16
- package/dist/esm/vega-input.entry.js +340 -99
- package/dist/esm/{vega-internal-event-id-4a06d705.js → vega-internal-event-id-3edc9b4e.js} +3 -1
- package/dist/esm/vega-item-toggle.entry.js +3 -3
- package/dist/esm/vega-left-nav_5.entry.js +17 -13
- package/dist/esm/vega-loader-wrapper_2.entry.js +17 -13
- package/dist/esm/vega-page-notification_2.entry.js +1 -1
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +4 -4
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
- package/dist/esm/vega-pagination.entry.js +17 -13
- package/dist/esm/vega-popover_2.entry.js +19 -15
- package/dist/esm/vega-progress-tracker_2.entry.js +16 -12
- package/dist/esm/vega-radio_2.entry.js +10 -10
- package/dist/esm/vega-rich-text-content.entry.js +16 -18
- package/dist/esm/vega-rich-text-editor_4.entry.js +170 -215
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +1515 -0
- package/dist/esm/vega-segment-control.entry.js +3 -3
- package/dist/esm/vega-selection-chip_2.entry.js +18 -14
- package/dist/esm/vega-selection-tile_2.entry.js +8 -8
- package/dist/esm/vega-sidenav_3.entry.js +19 -15
- package/dist/esm/vega-signature-capture.entry.js +17 -13
- package/dist/esm/vega-stepper.entry.js +7 -7
- package/dist/esm/vega-tab-group_2.entry.js +4 -4
- package/dist/esm/vega-table_11.entry.js +16 -13
- package/dist/esm/vega-textarea.entry.js +7 -7
- package/dist/esm/vega-time-picker_2.entry.js +23 -18
- package/dist/esm/vega-toggle-switch.entry.js +6 -6
- package/dist/esm/vega-tooltip_2.entry.js +18 -14
- package/dist/esm/vega.js +20 -15
- package/dist/sri/vega-sri-manifest.json +353 -329
- package/dist/types/components/vega-date-picker/assets/icons.d.ts +1 -1
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.d.ts +20 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +1 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.d.ts +4 -11
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.d.ts +4 -9
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +2 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-source-controller.d.ts +2 -0
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +7 -2
- package/dist/types/components/vega-input/slimmers/controllers/vega-input-render-mode-controller.d.ts +27 -0
- package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-renderer.d.ts +1 -0
- package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-suggestions-renderer.d.ts +40 -0
- package/dist/types/components/vega-input/slimmers/renderers/vega-input-renderer.d.ts +3 -0
- package/dist/types/components/vega-input/types.d.ts +4 -0
- package/dist/types/components/vega-input/vega-input.d.ts +55 -1
- 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/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-strategies/delete-table-block-strategy.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-column-strategy.d.ts +31 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/delete-table-row-strategy.d.ts +28 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-block-strategy.d.ts +27 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-column-strategy.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/insert-table-row-strategy.d.ts +44 -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/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/table-column-strategy.abstract.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-row-strategy.d.ts +41 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/toggle-header-table-column-strategy.d.ts +45 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-cell-properties-strategy.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/action-handler-strategies/update-table-properties-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-block-action.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-column-action.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/delete-table-row-action.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-block-action.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-column-action.d.ts +23 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/insert-table-row-action.d.ts +23 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/merge-cells-action.d.ts +33 -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/table-annotations-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-caption-action.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/toggle-header-row-action.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/toggle-header-table-column-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/update-table-properties-action.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler-base.d.ts +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 +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-cell-annotation.d.ts +76 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-color-annotation.d.ts +43 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/annotations/table-head-cell-annotation.d.ts +22 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/constants/styles.constants.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +79 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-body-block.d.ts +42 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.d.ts +41 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.d.ts +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 +29 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/table-to-table-block-strategy.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tbody-to-table-body-block-strategy.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/td-to-table-cell-block-strategy.d.ts +27 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/thead-to-table-head-block-strategy.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/element-to-dto-strategies/tr-to-table-row-block-strategy.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.d.ts +37 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-dynamic-popover-renderer.d.ts +88 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.d.ts +54 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-setting-popover-renderer.d.ts +66 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/caption-operation.d.ts +36 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-cancel-event-handler.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-change-event-handler.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties-save-event-handler.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/cell-properties.d.ts +62 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/column-operation.d.ts +55 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/merge-cells-operation.d.ts +44 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/row-operation.d.ts +61 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/setting-event-handlers/setting-event-handler.abstract.d.ts +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 +86 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/utils/table-color-manager.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/utils/utils.d.ts +153 -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 +4 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +19 -6
- package/dist/types/components/vega-rich-text-editor/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/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.d.ts +186 -7
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +2 -0
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +2 -0
- package/dist/types/helpers/slimmers/element-appender/element-appender-slimmer.d.ts +4 -9
- package/dist/types/helpers/slimmers/element-appender/trigger-strategies/click-outside-only-to-dismiss-strategy.d.ts +21 -0
- package/dist/types/helpers/slimmers/element-appender/trigger-strategies/click-trigger-strategy.d.ts +21 -0
- package/dist/types/helpers/slimmers/element-appender/trigger-strategies/hover-trigger-strategy.d.ts +22 -0
- package/dist/types/helpers/slimmers/element-appender/trigger-strategies/none-trigger-strategy.d.ts +18 -0
- package/dist/types/helpers/slimmers/element-appender/trigger-strategies/trigger-strategy.interface.d.ts +37 -0
- package/dist/types/types/components.type.d.ts +6 -0
- package/dist/types/types/type-guard.d.ts +8 -0
- package/dist/types/types/ui.type.d.ts +9 -0
- package/dist/types/utils/sanitize.d.ts +71 -0
- package/dist/types/utils/spec-utils.d.ts +2 -1
- package/dist/types/utils/test/sanitize.test.d.ts +1 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-9fb71d8c.entry.js → p-01dc2e48.entry.js} +1 -1
- package/dist/vega/p-0459a474.entry.js +1 -0
- package/dist/vega/p-0770a0eb.entry.js +1 -0
- package/dist/vega/{p-4957f07a.entry.js → p-0bf4a3a7.entry.js} +1 -1
- package/dist/vega/p-0d57293b.js +1 -0
- package/dist/vega/p-1199ebf6.entry.js +1 -0
- package/dist/vega/p-11a6c1b7.js +1 -0
- package/dist/vega/p-1415d93b.entry.js +1 -0
- package/dist/vega/p-1431c8b9.js +1 -0
- package/dist/vega/{p-b007d0d5.entry.js → p-18560714.entry.js} +1 -1
- package/dist/vega/p-1a161082.entry.js +1 -0
- package/dist/vega/p-1b44db34.js +1 -0
- package/dist/vega/{p-161b9c5b.js → p-1f83cebf.js} +1 -1
- package/dist/vega/{p-30e7544c.js → p-20010bd6.js} +1 -1
- package/dist/vega/p-205d8401.js +1 -0
- package/dist/vega/p-20a98a99.entry.js +1 -0
- package/dist/vega/{p-7f9acdf7.entry.js → p-228784f7.entry.js} +1 -1
- package/dist/vega/{p-3566ad76.js → p-22989693.js} +1 -1
- package/dist/vega/p-273911b2.entry.js +1 -0
- package/dist/vega/{p-6b9d2996.entry.js → p-28e630b2.entry.js} +1 -1
- package/dist/vega/{p-9ea8eb49.js → p-29f6b2d5.js} +1 -1
- package/dist/vega/p-2af2e1ad.entry.js +1 -0
- package/dist/vega/p-2af78c38.entry.js +1 -0
- package/dist/vega/{p-3b32e75d.entry.js → p-2c830cba.entry.js} +1 -1
- package/dist/vega/p-3224d794.entry.js +1 -0
- package/dist/vega/{p-7a8c4cf8.entry.js → p-326b5392.entry.js} +1 -1
- package/dist/vega/p-3413a678.entry.js +1 -0
- package/dist/vega/p-3532aa12.js +1 -0
- package/dist/vega/p-395cdd84.entry.js +1 -0
- package/dist/vega/{p-44bc9ea9.entry.js → p-3a6ff599.entry.js} +1 -1
- package/dist/vega/p-3be82c0f.entry.js +1 -0
- package/dist/vega/p-3c0f55f7.entry.js +1 -0
- package/dist/vega/p-3e30567a.js +1 -0
- package/dist/vega/p-3e5f362f.js +1 -0
- package/dist/vega/p-42cd1fde.js +1 -0
- package/dist/vega/p-476a173a.js +1 -0
- package/dist/vega/p-4b6c60cb.entry.js +1 -0
- package/dist/vega/{p-ead1da57.entry.js → p-4c36b528.entry.js} +1 -1
- package/dist/vega/{p-c7f292dd.entry.js → p-4ecf0ee7.entry.js} +1 -1
- package/dist/vega/{p-f6cd7a08.entry.js → p-4f4c7593.entry.js} +1 -1
- package/dist/vega/p-585edae4.entry.js +1 -0
- package/dist/vega/p-5b048141.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-a2d1c2f3.js → p-5fdb9047.js} +1 -1
- package/dist/vega/{p-82dbff54.entry.js → p-60483e3d.entry.js} +1 -1
- package/dist/vega/{p-de70aac1.js → p-60851f9d.js} +1 -1
- package/dist/vega/{p-9d8e2939.entry.js → p-61145506.entry.js} +1 -1
- package/dist/vega/{p-674fe99e.js → p-61ddae59.js} +1 -1
- package/dist/vega/p-64386be8.entry.js +1 -0
- package/dist/vega/p-6490b69a.entry.js +1 -0
- package/dist/vega/p-6bc1552e.entry.js +1 -0
- package/dist/vega/{p-2ae5ad30.entry.js → p-6e4e7192.entry.js} +1 -1
- package/dist/vega/{p-be0b67b8.entry.js → p-76d144f5.entry.js} +1 -1
- package/dist/vega/p-76eb9cd0.entry.js +1 -0
- package/dist/vega/{p-a5d4d168.entry.js → p-77c9949d.entry.js} +1 -1
- package/dist/vega/p-8187878e.js +1 -0
- package/dist/vega/p-8198a77c.js +1 -0
- package/dist/vega/p-82ad1006.entry.js +1 -0
- package/dist/vega/p-839c9d62.entry.js +1 -0
- package/dist/vega/{p-a58bdbad.entry.js → p-849f78a7.entry.js} +1 -1
- package/dist/vega/{p-748eb5a2.js → p-85bfa0f7.js} +1 -1
- package/dist/vega/{p-676eaf3f.entry.js → p-87764570.entry.js} +1 -1
- package/dist/vega/p-88c894e8.entry.js +1 -0
- package/dist/vega/{p-184d8443.js → p-89083d63.js} +1 -1
- package/dist/vega/{p-a8dad05d.js → p-920719ad.js} +1 -1
- package/dist/vega/{p-ce2ffff7.js → p-9472d19a.js} +1 -1
- package/dist/vega/p-96657262.entry.js +1 -0
- package/dist/vega/p-979e4bd4.entry.js +1 -0
- package/dist/vega/{p-9b673fd4.entry.js → p-9c624e03.entry.js} +1 -1
- package/dist/vega/p-a01f985f.entry.js +1 -0
- package/dist/vega/{p-a4ec6575.js → p-a2aeb646.js} +1 -1
- package/dist/vega/p-a495463f.entry.js +1 -0
- package/dist/vega/p-b4ea3fad.js +1 -0
- package/dist/vega/p-b56b0b89.js +1 -0
- package/dist/vega/{p-c7194674.entry.js → p-b5b75a2f.entry.js} +1 -1
- package/dist/vega/{p-d991fb11.js → p-badad9ed.js} +1 -1
- package/dist/vega/{p-2409a475.entry.js → p-bccaf3d2.entry.js} +1 -1
- package/dist/vega/p-bde5c990.entry.js +1 -0
- package/dist/vega/p-beb6c1ce.entry.js +1 -0
- package/dist/vega/p-c02b01ec.entry.js +1 -0
- package/dist/vega/p-c1fdcb62.js +1 -0
- package/dist/vega/p-c5e7035b.entry.js +1 -0
- package/dist/vega/p-c78fe943.js +1 -0
- package/dist/vega/{p-f2c8c363.js → p-c841be8d.js} +1 -1
- package/dist/vega/p-cd078909.entry.js +1 -0
- package/dist/vega/{p-d1d0f08a.js → p-d0e31633.js} +1 -1
- package/dist/vega/p-d5c09a94.entry.js +1 -0
- package/dist/vega/p-d907f8a2.js +1 -0
- package/dist/vega/{p-6c1ef2ed.js → p-dd11f735.js} +1 -1
- package/dist/vega/{p-96797fee.entry.js → p-de850e98.entry.js} +1 -1
- package/dist/vega/{p-3d85411d.js → p-e16b3adf.js} +1 -1
- package/dist/vega/p-e1dd23f8.entry.js +1 -0
- package/dist/vega/{p-3226c208.js → p-e1de1cdc.js} +1 -1
- package/dist/vega/{p-6e84e451.entry.js → p-e7cfb6b6.entry.js} +1 -1
- package/dist/vega/{p-5be29f14.js → p-e819940c.js} +1 -1
- package/dist/vega/p-e95ed6f3.entry.js +1 -0
- package/dist/vega/p-ebb14c84.js +1 -0
- package/dist/vega/p-f0a8aed3.entry.js +1 -0
- package/dist/vega/p-f2b8abd3.entry.js +1 -0
- package/dist/vega/p-fb238751.entry.js +1 -0
- package/dist/vega/p-fcabf0dc.js +1 -0
- package/dist/vega/p-fdebc47f.entry.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/style/vega-icons.css +17266 -0
- package/dist/cjs/function-extension-5972c73c.js +0 -2927
- 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/function-extension-45e413ff.js +0 -2908
- 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-05feab84.entry.js +0 -1
- package/dist/vega/p-071f9d00.entry.js +0 -1
- package/dist/vega/p-0f601e59.entry.js +0 -1
- package/dist/vega/p-1a7e97d2.entry.js +0 -1
- package/dist/vega/p-207cfa6a.js +0 -1
- package/dist/vega/p-29618be2.js +0 -1
- package/dist/vega/p-301096ee.js +0 -1
- package/dist/vega/p-310a6294.entry.js +0 -1
- package/dist/vega/p-3162a7fd.entry.js +0 -1
- package/dist/vega/p-3398f553.entry.js +0 -1
- package/dist/vega/p-370ee9e3.entry.js +0 -1
- package/dist/vega/p-38b8efe5.entry.js +0 -1
- package/dist/vega/p-398220f5.entry.js +0 -1
- package/dist/vega/p-3a279b71.js +0 -1
- package/dist/vega/p-3ebc8b5b.entry.js +0 -1
- package/dist/vega/p-3f56d184.entry.js +0 -1
- package/dist/vega/p-42b7b5df.js +0 -1
- package/dist/vega/p-451ddd84.js +0 -1
- package/dist/vega/p-59fa3f68.js +0 -1
- package/dist/vega/p-5a0c92db.entry.js +0 -1
- package/dist/vega/p-5b71c85e.js +0 -1
- package/dist/vega/p-5c492358.entry.js +0 -1
- package/dist/vega/p-697eb0e1.js +0 -1
- package/dist/vega/p-73383099.js +0 -1
- package/dist/vega/p-779cd090.entry.js +0 -1
- package/dist/vega/p-7c238c19.entry.js +0 -1
- package/dist/vega/p-8bd496b4.js +0 -1
- package/dist/vega/p-94cf46ca.entry.js +0 -1
- package/dist/vega/p-950bf9a9.entry.js +0 -1
- package/dist/vega/p-95b11cdd.entry.js +0 -1
- package/dist/vega/p-99676172.entry.js +0 -1
- package/dist/vega/p-9a83a6b0.js +0 -1
- package/dist/vega/p-9b7daab0.entry.js +0 -1
- package/dist/vega/p-a6dfef41.entry.js +0 -1
- package/dist/vega/p-a7f151fe.entry.js +0 -1
- package/dist/vega/p-b0ed81e2.js +0 -1
- package/dist/vega/p-b18c12cb.entry.js +0 -1
- package/dist/vega/p-b19d4e26.entry.js +0 -1
- package/dist/vega/p-b4be03bb.entry.js +0 -1
- package/dist/vega/p-ba223773.entry.js +0 -1
- package/dist/vega/p-bb9db84a.entry.js +0 -1
- package/dist/vega/p-c34feecd.entry.js +0 -1
- package/dist/vega/p-c4700277.entry.js +0 -1
- package/dist/vega/p-c796307d.entry.js +0 -1
- package/dist/vega/p-ca9b4af9.entry.js +0 -1
- package/dist/vega/p-cadd84ec.entry.js +0 -1
- package/dist/vega/p-e3fa091a.js +0 -1
- package/dist/vega/p-edbecf19.entry.js +0 -1
- package/dist/vega/p-f0bde406.js +0 -1
- package/dist/vega/p-f38a4be2.entry.js +0 -1
- package/dist/vega/p-f844f3f1.entry.js +0 -1
- package/dist/vega/p-f92752d2.entry.js +0 -1
- package/dist/vega/p-fbda4a20.entry.js +0 -1
package/dist/collection/components/vega-rich-text-editor/test/extensions/table/table-dto.test.js
ADDED
|
@@ -0,0 +1,1094 @@
|
|
|
1
|
+
import '../../../dto/setup';
|
|
2
|
+
import { VegaRTETableExtension } from '../../../extensions/table/table-extension';
|
|
3
|
+
import { RTETableBlock } from '../../../extensions/table/dto/table-block';
|
|
4
|
+
import { RTETableBodyBlock } from '../../../extensions/table/dto/table-body-block';
|
|
5
|
+
import { RTETableHeadBlock } from '../../../extensions/table/dto/table-head-block';
|
|
6
|
+
import { RTETableHeadCellBlock } from '../../../extensions/table/dto/table-head-cell-block';
|
|
7
|
+
import { RTETableRowBlock } from '../../../extensions/table/dto/table-row-block';
|
|
8
|
+
import { RTETableCellBlock } from '../../../extensions/table/dto/table-cell-block';
|
|
9
|
+
import { RTETableCaptionBlock, } from '../../../extensions/table/dto/table-caption-block';
|
|
10
|
+
import { RTETableAnnotation, RTETableExtensionAnnotationTypeEnum, } from '../../../extensions/table/annotations/table-annotation';
|
|
11
|
+
import { RTETableCellAnnotation } from '../../../extensions/table/annotations/table-cell-annotation';
|
|
12
|
+
import { RTETableHeadCellAnnotation } from '../../../extensions/table/annotations/table-head-cell-annotation';
|
|
13
|
+
describe('dto', () => {
|
|
14
|
+
const tableObj = {
|
|
15
|
+
id: '1764771896966',
|
|
16
|
+
type: 'table-block',
|
|
17
|
+
annotations: {
|
|
18
|
+
table: {
|
|
19
|
+
alignment: 'center',
|
|
20
|
+
borderCollapse: 'collapse',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
children: [
|
|
24
|
+
{
|
|
25
|
+
id: '1764771904874',
|
|
26
|
+
type: 'table-head',
|
|
27
|
+
children: [
|
|
28
|
+
{
|
|
29
|
+
id: '1764771904632',
|
|
30
|
+
type: 'table-row',
|
|
31
|
+
children: [
|
|
32
|
+
{
|
|
33
|
+
id: '1764771898285',
|
|
34
|
+
type: 'table-head-cell',
|
|
35
|
+
annotations: {
|
|
36
|
+
tableCell: {
|
|
37
|
+
border: {
|
|
38
|
+
color: '#ddd',
|
|
39
|
+
style: 'solid',
|
|
40
|
+
width: '1px',
|
|
41
|
+
},
|
|
42
|
+
padding: '12px',
|
|
43
|
+
textAlign: 'left',
|
|
44
|
+
verticalAlign: 'middle',
|
|
45
|
+
minWidth: '55px',
|
|
46
|
+
boxSizing: 'border-box',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
children: [
|
|
50
|
+
{
|
|
51
|
+
id: '1764771904876',
|
|
52
|
+
annotations: {
|
|
53
|
+
textStyle: 'paragraph',
|
|
54
|
+
internalWrapper: true,
|
|
55
|
+
},
|
|
56
|
+
type: 'paragraph',
|
|
57
|
+
nodes: [
|
|
58
|
+
{
|
|
59
|
+
id: '1764771904525',
|
|
60
|
+
annotations: {
|
|
61
|
+
plainText: true,
|
|
62
|
+
},
|
|
63
|
+
type: 'text',
|
|
64
|
+
text: '',
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: '1764771899530',
|
|
72
|
+
type: 'table-head-cell',
|
|
73
|
+
annotations: {
|
|
74
|
+
tableCell: {
|
|
75
|
+
border: {
|
|
76
|
+
color: '#ddd',
|
|
77
|
+
style: 'solid',
|
|
78
|
+
width: '1px',
|
|
79
|
+
},
|
|
80
|
+
padding: '12px',
|
|
81
|
+
textAlign: 'left',
|
|
82
|
+
verticalAlign: 'middle',
|
|
83
|
+
minWidth: '55px',
|
|
84
|
+
boxSizing: 'border-box',
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
children: [
|
|
88
|
+
{
|
|
89
|
+
id: '1764771896940',
|
|
90
|
+
annotations: {
|
|
91
|
+
textStyle: 'paragraph',
|
|
92
|
+
internalWrapper: true,
|
|
93
|
+
},
|
|
94
|
+
type: 'paragraph',
|
|
95
|
+
nodes: [
|
|
96
|
+
{
|
|
97
|
+
id: '1764771903833',
|
|
98
|
+
annotations: {
|
|
99
|
+
plainText: true,
|
|
100
|
+
},
|
|
101
|
+
type: 'text',
|
|
102
|
+
text: '',
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
id: '1764771903981',
|
|
114
|
+
type: 'table-body',
|
|
115
|
+
children: [
|
|
116
|
+
{
|
|
117
|
+
id: '1764771905293',
|
|
118
|
+
type: 'table-row',
|
|
119
|
+
children: [
|
|
120
|
+
{
|
|
121
|
+
id: '1764771897032',
|
|
122
|
+
type: 'table-cell',
|
|
123
|
+
annotations: {
|
|
124
|
+
tableCell: {
|
|
125
|
+
border: {
|
|
126
|
+
color: '#ddd',
|
|
127
|
+
style: 'solid',
|
|
128
|
+
width: '1px',
|
|
129
|
+
},
|
|
130
|
+
padding: '12px',
|
|
131
|
+
textAlign: 'left',
|
|
132
|
+
verticalAlign: 'middle',
|
|
133
|
+
minWidth: '55px',
|
|
134
|
+
boxSizing: 'border-box',
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
children: [
|
|
138
|
+
{
|
|
139
|
+
id: '1764771897783',
|
|
140
|
+
annotations: {
|
|
141
|
+
textStyle: 'paragraph',
|
|
142
|
+
internalWrapper: true,
|
|
143
|
+
},
|
|
144
|
+
type: 'paragraph',
|
|
145
|
+
nodes: [
|
|
146
|
+
{
|
|
147
|
+
id: '1764771906044',
|
|
148
|
+
annotations: {
|
|
149
|
+
plainText: true,
|
|
150
|
+
},
|
|
151
|
+
type: 'text',
|
|
152
|
+
text: '',
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: '1764771905790',
|
|
160
|
+
type: 'table-cell',
|
|
161
|
+
annotations: {
|
|
162
|
+
tableCell: {
|
|
163
|
+
border: {
|
|
164
|
+
color: '#ddd',
|
|
165
|
+
style: 'solid',
|
|
166
|
+
width: '1px',
|
|
167
|
+
},
|
|
168
|
+
padding: '12px',
|
|
169
|
+
textAlign: 'left',
|
|
170
|
+
verticalAlign: 'middle',
|
|
171
|
+
minWidth: '55px',
|
|
172
|
+
boxSizing: 'border-box',
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
children: [
|
|
176
|
+
{
|
|
177
|
+
id: '1764771904845',
|
|
178
|
+
annotations: {
|
|
179
|
+
textStyle: 'paragraph',
|
|
180
|
+
internalWrapper: true,
|
|
181
|
+
},
|
|
182
|
+
type: 'paragraph',
|
|
183
|
+
nodes: [
|
|
184
|
+
{
|
|
185
|
+
id: '1764771904578',
|
|
186
|
+
annotations: {
|
|
187
|
+
plainText: true,
|
|
188
|
+
},
|
|
189
|
+
type: 'text',
|
|
190
|
+
text: '',
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
id: '1764771904130',
|
|
200
|
+
type: 'table-row',
|
|
201
|
+
children: [
|
|
202
|
+
{
|
|
203
|
+
id: '1764771903073',
|
|
204
|
+
type: 'table-cell',
|
|
205
|
+
annotations: {
|
|
206
|
+
tableCell: {
|
|
207
|
+
border: {
|
|
208
|
+
color: '#ddd',
|
|
209
|
+
style: 'solid',
|
|
210
|
+
width: '1px',
|
|
211
|
+
},
|
|
212
|
+
padding: '12px',
|
|
213
|
+
textAlign: 'left',
|
|
214
|
+
verticalAlign: 'middle',
|
|
215
|
+
minWidth: '55px',
|
|
216
|
+
boxSizing: 'border-box',
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
children: [
|
|
220
|
+
{
|
|
221
|
+
id: '1764771904171',
|
|
222
|
+
annotations: {
|
|
223
|
+
textStyle: 'paragraph',
|
|
224
|
+
internalWrapper: true,
|
|
225
|
+
},
|
|
226
|
+
type: 'paragraph',
|
|
227
|
+
nodes: [
|
|
228
|
+
{
|
|
229
|
+
id: '1764771905692',
|
|
230
|
+
annotations: {
|
|
231
|
+
plainText: true,
|
|
232
|
+
},
|
|
233
|
+
type: 'text',
|
|
234
|
+
text: '',
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
},
|
|
238
|
+
],
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
id: '1764771897331',
|
|
242
|
+
type: 'table-cell',
|
|
243
|
+
annotations: {
|
|
244
|
+
tableCell: {
|
|
245
|
+
border: {
|
|
246
|
+
color: '#ddd',
|
|
247
|
+
style: 'solid',
|
|
248
|
+
width: '1px',
|
|
249
|
+
},
|
|
250
|
+
padding: '12px',
|
|
251
|
+
textAlign: 'left',
|
|
252
|
+
verticalAlign: 'middle',
|
|
253
|
+
minWidth: '55px',
|
|
254
|
+
boxSizing: 'border-box',
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
children: [
|
|
258
|
+
{
|
|
259
|
+
id: '1764771905732',
|
|
260
|
+
annotations: {
|
|
261
|
+
textStyle: 'paragraph',
|
|
262
|
+
internalWrapper: true,
|
|
263
|
+
},
|
|
264
|
+
type: 'paragraph',
|
|
265
|
+
nodes: [
|
|
266
|
+
{
|
|
267
|
+
id: '1764771903305',
|
|
268
|
+
annotations: {
|
|
269
|
+
plainText: true,
|
|
270
|
+
},
|
|
271
|
+
type: 'text',
|
|
272
|
+
text: '',
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
},
|
|
280
|
+
],
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
};
|
|
284
|
+
let tableBlock;
|
|
285
|
+
beforeAll(() => {
|
|
286
|
+
new VegaRTETableExtension().initialExtension(null);
|
|
287
|
+
});
|
|
288
|
+
beforeEach(() => {
|
|
289
|
+
tableBlock = RTETableBlock.from(tableObj);
|
|
290
|
+
});
|
|
291
|
+
describe('table-block', () => {
|
|
292
|
+
it('toJSON', () => {
|
|
293
|
+
expect(tableBlock.toJSON()).toEqual(tableObj);
|
|
294
|
+
});
|
|
295
|
+
it('clone', () => {
|
|
296
|
+
const cloned = tableBlock.clone(undefined);
|
|
297
|
+
expect(cloned).toEqual(tableBlock);
|
|
298
|
+
expect(cloned).not.toBe(tableBlock);
|
|
299
|
+
});
|
|
300
|
+
it('isNotEmpty', () => {
|
|
301
|
+
expect(tableBlock.isNotEmpty()).toBe(true);
|
|
302
|
+
});
|
|
303
|
+
it('toHtml', () => {
|
|
304
|
+
const html = tableBlock.toHtml();
|
|
305
|
+
expect(html).toEqualHtml(`
|
|
306
|
+
<table style="border-collapse: collapse; margin: 0 auto;">
|
|
307
|
+
<thead>
|
|
308
|
+
<tr>
|
|
309
|
+
<th style="padding: 12px; border: solid 1px #ddd; text-align: left; vertical-align: middle; min-width: 55px; box-sizing: border-box; background-color: #f2f2f2;">
|
|
310
|
+
<p style="font-family: Inter; font-size: 16px; line-height: 22px; min-height: 22px; min-height: 22px; font-weight: 500; margin-top: 0px; margin-bottom: 0px;"></p>
|
|
311
|
+
</th>
|
|
312
|
+
<th style="padding: 12px; border: solid 1px #ddd; text-align: left; vertical-align: middle; min-width: 55px; box-sizing: border-box; background-color: #f2f2f2;">
|
|
313
|
+
<p style="font-family: Inter; font-size: 16px; line-height: 22px; min-height: 22px; min-height: 22px; font-weight: 500; margin-top: 0px; margin-bottom: 0px;"></p>
|
|
314
|
+
</th>
|
|
315
|
+
</tr>
|
|
316
|
+
</thead>
|
|
317
|
+
<tbody>
|
|
318
|
+
<tr>
|
|
319
|
+
<td style="padding: 12px; border: solid 1px #ddd; text-align: left; vertical-align: middle; min-width: 55px; box-sizing: border-box;">
|
|
320
|
+
<p style="font-family: Inter; font-size: 16px; line-height: 22px; min-height: 22px; min-height: 22px; font-weight: 500; margin-top: 0px; margin-bottom: 0px;"></p>
|
|
321
|
+
</td>
|
|
322
|
+
<td style="padding: 12px; border: solid 1px #ddd; text-align: left; vertical-align: middle; min-width: 55px; box-sizing: border-box;">
|
|
323
|
+
<p style="font-family: Inter; font-size: 16px; line-height: 22px; min-height: 22px; min-height: 22px; font-weight: 500; margin-top: 0px; margin-bottom: 0px;"></p>
|
|
324
|
+
</td>
|
|
325
|
+
</tr>
|
|
326
|
+
<tr>
|
|
327
|
+
<td style="padding: 12px; border: solid 1px #ddd; text-align: left; vertical-align: middle; min-width: 55px; box-sizing: border-box;">
|
|
328
|
+
<p style="font-family: Inter; font-size: 16px; line-height: 22px; min-height: 22px; min-height: 22px; font-weight: 500; margin-top: 0px; margin-bottom: 0px;"></p>
|
|
329
|
+
</td>
|
|
330
|
+
<td style="padding: 12px; border: solid 1px #ddd; text-align: left; vertical-align: middle; min-width: 55px; box-sizing: border-box;">
|
|
331
|
+
<p style="font-family: Inter; font-size: 16px; line-height: 22px; min-height: 22px; min-height: 22px; font-weight: 500; margin-top: 0px; margin-bottom: 0px;"></p>
|
|
332
|
+
</td>
|
|
333
|
+
</tr>
|
|
334
|
+
</tbody>
|
|
335
|
+
</table>
|
|
336
|
+
`);
|
|
337
|
+
});
|
|
338
|
+
it('getLastNode', () => {
|
|
339
|
+
expect(tableBlock.getLastNode().toJSON()).toEqual({
|
|
340
|
+
id: '1764771903305',
|
|
341
|
+
annotations: {
|
|
342
|
+
plainText: true,
|
|
343
|
+
},
|
|
344
|
+
type: 'text',
|
|
345
|
+
text: '',
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
it('getFirstNode should return first cell last node when no caption', () => {
|
|
349
|
+
expect(tableBlock.getFirstNode().toJSON()).toEqual({
|
|
350
|
+
id: '1764771904525',
|
|
351
|
+
annotations: {
|
|
352
|
+
plainText: true,
|
|
353
|
+
},
|
|
354
|
+
type: 'text',
|
|
355
|
+
text: '',
|
|
356
|
+
});
|
|
357
|
+
});
|
|
358
|
+
it('getFirstNode should return caption last node when caption exists', () => {
|
|
359
|
+
const tableWithCaption = Object.assign(Object.assign({}, tableObj), { children: [
|
|
360
|
+
{
|
|
361
|
+
id: 'caption-1',
|
|
362
|
+
type: 'table-caption',
|
|
363
|
+
children: [
|
|
364
|
+
{
|
|
365
|
+
id: 'paragraph-1',
|
|
366
|
+
type: 'paragraph',
|
|
367
|
+
nodes: [
|
|
368
|
+
{
|
|
369
|
+
id: 'text-1',
|
|
370
|
+
type: 'text',
|
|
371
|
+
text: 'Caption text',
|
|
372
|
+
},
|
|
373
|
+
],
|
|
374
|
+
},
|
|
375
|
+
],
|
|
376
|
+
},
|
|
377
|
+
...tableObj.children,
|
|
378
|
+
] });
|
|
379
|
+
const tableBlockWithCaption = RTETableBlock.from(tableWithCaption);
|
|
380
|
+
expect(tableBlockWithCaption.getFirstNode().toJSON()).toEqual(expect.objectContaining({
|
|
381
|
+
type: 'text',
|
|
382
|
+
text: 'Caption text',
|
|
383
|
+
}));
|
|
384
|
+
});
|
|
385
|
+
});
|
|
386
|
+
describe('table-body-block', () => {
|
|
387
|
+
let tableBodyBlock;
|
|
388
|
+
beforeAll(() => {
|
|
389
|
+
tableBodyBlock = tableBlock.children.find((child) => child.type === 'table-body');
|
|
390
|
+
});
|
|
391
|
+
it('isNotEmpty', () => {
|
|
392
|
+
expect(RTETableBodyBlock.from({
|
|
393
|
+
id: '1',
|
|
394
|
+
type: 'table-body',
|
|
395
|
+
children: [],
|
|
396
|
+
}).isNotEmpty()).toBe(false);
|
|
397
|
+
expect(tableBodyBlock.isNotEmpty()).toBe(true);
|
|
398
|
+
});
|
|
399
|
+
});
|
|
400
|
+
describe('table-head-block', () => {
|
|
401
|
+
let tableHeadBlock;
|
|
402
|
+
beforeAll(() => {
|
|
403
|
+
tableHeadBlock = tableBlock.children.find((child) => child.type === 'table-head');
|
|
404
|
+
});
|
|
405
|
+
it('isNotEmpty', () => {
|
|
406
|
+
expect(RTETableHeadBlock.from({
|
|
407
|
+
id: '1',
|
|
408
|
+
type: 'table-head',
|
|
409
|
+
children: [],
|
|
410
|
+
}).isNotEmpty()).toBe(false);
|
|
411
|
+
expect(tableHeadBlock.isNotEmpty()).toBe(true);
|
|
412
|
+
});
|
|
413
|
+
it('getLastNode', () => {
|
|
414
|
+
expect(tableHeadBlock.getLastNode().toJSON()).toEqual({
|
|
415
|
+
id: '1764771903833',
|
|
416
|
+
type: 'text',
|
|
417
|
+
annotations: { plainText: true },
|
|
418
|
+
text: '',
|
|
419
|
+
});
|
|
420
|
+
});
|
|
421
|
+
});
|
|
422
|
+
describe('table-head-cell-block', () => {
|
|
423
|
+
let tableHeadBlock;
|
|
424
|
+
beforeAll(() => {
|
|
425
|
+
tableHeadBlock = tableBlock.children.find((child) => child.type === 'table-head');
|
|
426
|
+
});
|
|
427
|
+
it('isNotEmpty', () => {
|
|
428
|
+
const tableHeadCellBlock = tableHeadBlock.children[0]
|
|
429
|
+
.children[0];
|
|
430
|
+
expect(tableHeadCellBlock.isNotEmpty()).toBe(true);
|
|
431
|
+
expect(RTETableHeadCellBlock.from({
|
|
432
|
+
id: '1764771899530',
|
|
433
|
+
type: 'table-head-cell',
|
|
434
|
+
children: [],
|
|
435
|
+
}).isNotEmpty()).toBe(false);
|
|
436
|
+
});
|
|
437
|
+
describe('RTETableHeadCellBlock.from with useInternalStyle options', () => {
|
|
438
|
+
const baseHeadCellJSON = {
|
|
439
|
+
id: 'head-cell-test-1',
|
|
440
|
+
type: 'table-head-cell',
|
|
441
|
+
children: [
|
|
442
|
+
{
|
|
443
|
+
id: 'para-1',
|
|
444
|
+
annotations: {
|
|
445
|
+
textStyle: 'paragraph',
|
|
446
|
+
internalWrapper: true,
|
|
447
|
+
},
|
|
448
|
+
type: 'paragraph',
|
|
449
|
+
nodes: [
|
|
450
|
+
{
|
|
451
|
+
id: 'text-1',
|
|
452
|
+
annotations: {
|
|
453
|
+
plainText: true,
|
|
454
|
+
},
|
|
455
|
+
type: 'text',
|
|
456
|
+
text: 'Header',
|
|
457
|
+
},
|
|
458
|
+
],
|
|
459
|
+
},
|
|
460
|
+
],
|
|
461
|
+
};
|
|
462
|
+
it('should apply default head cell annotations when autoMatchFormat is true', () => {
|
|
463
|
+
const headCellBlock = RTETableHeadCellBlock.from(baseHeadCellJSON, {
|
|
464
|
+
autoMatchFormat: true,
|
|
465
|
+
});
|
|
466
|
+
const cellAnnotation = headCellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
467
|
+
expect(cellAnnotation).toBeDefined();
|
|
468
|
+
expect(cellAnnotation).toBeInstanceOf(RTETableHeadCellAnnotation);
|
|
469
|
+
expect(cellAnnotation.padding).toBe(RTETableCellAnnotation.DEFAULT_PADDING);
|
|
470
|
+
expect(cellAnnotation.border).toEqual(RTETableCellAnnotation.DEFAULT_BORDER);
|
|
471
|
+
expect(cellAnnotation.textAlign).toBe(RTETableCellAnnotation.DEFAULT_HORIZONTAL_TEXT_ALIGN);
|
|
472
|
+
expect(cellAnnotation.verticalAlign).toBe(RTETableCellAnnotation.DEFAULT_VERTICAL_TEXT_ALIGN);
|
|
473
|
+
});
|
|
474
|
+
it('should not apply default head cell annotations when autoMatchFormat is false', () => {
|
|
475
|
+
const headCellBlock = RTETableHeadCellBlock.from(baseHeadCellJSON, {
|
|
476
|
+
autoMatchFormat: false,
|
|
477
|
+
});
|
|
478
|
+
const cellAnnotation = headCellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
479
|
+
expect(cellAnnotation).toBeUndefined();
|
|
480
|
+
});
|
|
481
|
+
it('should preserve explicit null values in head cells when autoMatchFormat is true', () => {
|
|
482
|
+
const headCellWithNullAnnotations = Object.assign(Object.assign({}, baseHeadCellJSON), { annotations: {
|
|
483
|
+
tableCell: {
|
|
484
|
+
padding: null,
|
|
485
|
+
border: null,
|
|
486
|
+
textAlign: null,
|
|
487
|
+
},
|
|
488
|
+
} });
|
|
489
|
+
const headCellBlock = RTETableHeadCellBlock.from(headCellWithNullAnnotations, {
|
|
490
|
+
autoMatchFormat: true,
|
|
491
|
+
});
|
|
492
|
+
const cellAnnotation = headCellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
493
|
+
expect(cellAnnotation).toBeDefined();
|
|
494
|
+
expect(cellAnnotation.padding).toBeNull();
|
|
495
|
+
expect(cellAnnotation.border).toBeNull();
|
|
496
|
+
expect(cellAnnotation.textAlign).toBeNull();
|
|
497
|
+
// Undefined properties should still get defaults
|
|
498
|
+
expect(cellAnnotation.verticalAlign).toBe(RTETableCellAnnotation.DEFAULT_VERTICAL_TEXT_ALIGN);
|
|
499
|
+
});
|
|
500
|
+
it('should apply defaults for undefined properties in head cells with autoMatchFormat true', () => {
|
|
501
|
+
const headCellWithPartialAnnotations = Object.assign(Object.assign({}, baseHeadCellJSON), { annotations: {
|
|
502
|
+
tableCell: {
|
|
503
|
+
padding: '15px',
|
|
504
|
+
backgroundColor: 'gray',
|
|
505
|
+
},
|
|
506
|
+
} });
|
|
507
|
+
const headCellBlock = RTETableHeadCellBlock.from(headCellWithPartialAnnotations, {
|
|
508
|
+
autoMatchFormat: true,
|
|
509
|
+
});
|
|
510
|
+
const cellAnnotation = headCellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
511
|
+
expect(cellAnnotation).toBeDefined();
|
|
512
|
+
expect(cellAnnotation.padding).toBe('15px');
|
|
513
|
+
expect(cellAnnotation.backgroundColor).toBe('gray');
|
|
514
|
+
// Undefined properties should get defaults
|
|
515
|
+
expect(cellAnnotation.border).toEqual(RTETableCellAnnotation.DEFAULT_BORDER);
|
|
516
|
+
expect(cellAnnotation.textAlign).toBe(RTETableCellAnnotation.DEFAULT_HORIZONTAL_TEXT_ALIGN);
|
|
517
|
+
expect(cellAnnotation.verticalAlign).toBe(RTETableCellAnnotation.DEFAULT_VERTICAL_TEXT_ALIGN);
|
|
518
|
+
});
|
|
519
|
+
it('should not apply defaults in head cells when autoMatchFormat is false', () => {
|
|
520
|
+
const headCellWithPartialAnnotations = Object.assign(Object.assign({}, baseHeadCellJSON), { annotations: {
|
|
521
|
+
tableCell: {
|
|
522
|
+
padding: '15px',
|
|
523
|
+
backgroundColor: 'gray',
|
|
524
|
+
},
|
|
525
|
+
} });
|
|
526
|
+
const headCellBlock = RTETableHeadCellBlock.from(headCellWithPartialAnnotations, {
|
|
527
|
+
autoMatchFormat: false,
|
|
528
|
+
});
|
|
529
|
+
const cellAnnotation = headCellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
530
|
+
expect(cellAnnotation).toBeDefined();
|
|
531
|
+
expect(cellAnnotation.padding).toBe('15px');
|
|
532
|
+
expect(cellAnnotation.backgroundColor).toBe('gray');
|
|
533
|
+
// Undefined properties should remain undefined
|
|
534
|
+
expect(cellAnnotation.border).toBeUndefined();
|
|
535
|
+
expect(cellAnnotation.textAlign).toBeUndefined();
|
|
536
|
+
expect(cellAnnotation.verticalAlign).toBeUndefined();
|
|
537
|
+
});
|
|
538
|
+
it('should default to autoMatchFormat true for head cells when options not provided', () => {
|
|
539
|
+
const headCellBlock = RTETableHeadCellBlock.from(baseHeadCellJSON);
|
|
540
|
+
const cellAnnotation = headCellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
541
|
+
expect(cellAnnotation).toBeDefined();
|
|
542
|
+
expect(cellAnnotation).toBeInstanceOf(RTETableHeadCellAnnotation);
|
|
543
|
+
expect(cellAnnotation.padding).toBe(RTETableCellAnnotation.DEFAULT_PADDING);
|
|
544
|
+
expect(cellAnnotation.border).toEqual(RTETableCellAnnotation.DEFAULT_BORDER);
|
|
545
|
+
});
|
|
546
|
+
});
|
|
547
|
+
});
|
|
548
|
+
describe('table-row-block', () => {
|
|
549
|
+
let tableBodyBlock;
|
|
550
|
+
beforeAll(() => {
|
|
551
|
+
tableBodyBlock = tableBlock.children.find((child) => child.type === 'table-body');
|
|
552
|
+
});
|
|
553
|
+
it('isNotEmpty', () => {
|
|
554
|
+
expect(tableBodyBlock.children[0].isNotEmpty()).toBe(true);
|
|
555
|
+
expect(RTETableRowBlock.from({
|
|
556
|
+
id: '1764771905293',
|
|
557
|
+
type: 'table-row',
|
|
558
|
+
children: [],
|
|
559
|
+
}).isNotEmpty()).toBe(false);
|
|
560
|
+
});
|
|
561
|
+
});
|
|
562
|
+
describe('table-cell-block', () => {
|
|
563
|
+
let tableBodyBlock;
|
|
564
|
+
beforeAll(() => {
|
|
565
|
+
tableBodyBlock = tableBlock.children.find((child) => child.type === 'table-body');
|
|
566
|
+
});
|
|
567
|
+
it('isNotEmpty', () => {
|
|
568
|
+
const tableCellBlock = tableBodyBlock.children[0]
|
|
569
|
+
.children[0];
|
|
570
|
+
expect(tableCellBlock.isNotEmpty()).toBe(true);
|
|
571
|
+
expect(RTETableCellBlock.from({
|
|
572
|
+
id: '1',
|
|
573
|
+
type: 'table-cell',
|
|
574
|
+
children: [],
|
|
575
|
+
}).isNotEmpty()).toBe(false);
|
|
576
|
+
});
|
|
577
|
+
it('rowspan & colspan', () => {
|
|
578
|
+
const tableCellJSON = {
|
|
579
|
+
id: '1',
|
|
580
|
+
type: 'table-cell',
|
|
581
|
+
children: [],
|
|
582
|
+
annotations: {},
|
|
583
|
+
};
|
|
584
|
+
let tableCellBlock = RTETableCellBlock.from(tableCellJSON);
|
|
585
|
+
expect(tableCellBlock.rowSpan).toEqual(1);
|
|
586
|
+
expect(tableCellBlock.colSpan).toEqual(1);
|
|
587
|
+
tableCellJSON.annotations = {
|
|
588
|
+
customAttribute: {
|
|
589
|
+
rowspan: '3',
|
|
590
|
+
colspan: '2',
|
|
591
|
+
},
|
|
592
|
+
};
|
|
593
|
+
tableCellBlock = RTETableCellBlock.from(tableCellJSON);
|
|
594
|
+
expect(tableCellBlock.rowSpan).toEqual(3);
|
|
595
|
+
expect(tableCellBlock.colSpan).toEqual(2);
|
|
596
|
+
});
|
|
597
|
+
describe('RTETableCellBlock.from with useInternalStyle options', () => {
|
|
598
|
+
const baseCellJSON = {
|
|
599
|
+
id: 'cell-test-1',
|
|
600
|
+
type: 'table-cell',
|
|
601
|
+
children: [
|
|
602
|
+
{
|
|
603
|
+
id: 'para-1',
|
|
604
|
+
annotations: {
|
|
605
|
+
textStyle: 'paragraph',
|
|
606
|
+
internalWrapper: true,
|
|
607
|
+
},
|
|
608
|
+
type: 'paragraph',
|
|
609
|
+
nodes: [
|
|
610
|
+
{
|
|
611
|
+
id: 'text-1',
|
|
612
|
+
annotations: {
|
|
613
|
+
plainText: true,
|
|
614
|
+
},
|
|
615
|
+
type: 'text',
|
|
616
|
+
text: 'Content',
|
|
617
|
+
},
|
|
618
|
+
],
|
|
619
|
+
},
|
|
620
|
+
],
|
|
621
|
+
};
|
|
622
|
+
it('should apply default cell annotations when autoMatchFormat is true', () => {
|
|
623
|
+
const cellBlock = RTETableCellBlock.from(baseCellJSON, {
|
|
624
|
+
autoMatchFormat: true,
|
|
625
|
+
});
|
|
626
|
+
const cellAnnotation = cellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
627
|
+
expect(cellAnnotation).toBeDefined();
|
|
628
|
+
expect(cellAnnotation.padding).toBe(RTETableCellAnnotation.DEFAULT_PADDING);
|
|
629
|
+
expect(cellAnnotation.border).toEqual(RTETableCellAnnotation.DEFAULT_BORDER);
|
|
630
|
+
expect(cellAnnotation.textAlign).toBe(RTETableCellAnnotation.DEFAULT_HORIZONTAL_TEXT_ALIGN);
|
|
631
|
+
expect(cellAnnotation.verticalAlign).toBe(RTETableCellAnnotation.DEFAULT_VERTICAL_TEXT_ALIGN);
|
|
632
|
+
expect(cellAnnotation.minWidth).toBe(RTETableCellAnnotation.DEFAULT_CELL_MIN_WIDTH);
|
|
633
|
+
expect(cellAnnotation.boxSizing).toBe(RTETableCellAnnotation.DEFAULT_BOX_SIZING);
|
|
634
|
+
});
|
|
635
|
+
it('should not apply default cell annotations when autoMatchFormat is false', () => {
|
|
636
|
+
const cellBlock = RTETableCellBlock.from(baseCellJSON, {
|
|
637
|
+
autoMatchFormat: false,
|
|
638
|
+
});
|
|
639
|
+
const cellAnnotation = cellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
640
|
+
expect(cellAnnotation).toBeUndefined();
|
|
641
|
+
});
|
|
642
|
+
it('should apply default values for undefined properties when autoMatchFormat is true', () => {
|
|
643
|
+
const cellWithPartialAnnotations = Object.assign(Object.assign({}, baseCellJSON), { annotations: {
|
|
644
|
+
tableCell: {
|
|
645
|
+
padding: '20px',
|
|
646
|
+
backgroundColor: 'blue',
|
|
647
|
+
},
|
|
648
|
+
} });
|
|
649
|
+
const cellBlock = RTETableCellBlock.from(cellWithPartialAnnotations, {
|
|
650
|
+
autoMatchFormat: true,
|
|
651
|
+
});
|
|
652
|
+
const cellAnnotation = cellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
653
|
+
expect(cellAnnotation).toBeDefined();
|
|
654
|
+
expect(cellAnnotation.padding).toBe('20px');
|
|
655
|
+
expect(cellAnnotation.backgroundColor).toBe('blue');
|
|
656
|
+
// Undefined properties should get defaults
|
|
657
|
+
expect(cellAnnotation.border).toEqual(RTETableCellAnnotation.DEFAULT_BORDER);
|
|
658
|
+
expect(cellAnnotation.textAlign).toBe(RTETableCellAnnotation.DEFAULT_HORIZONTAL_TEXT_ALIGN);
|
|
659
|
+
expect(cellAnnotation.verticalAlign).toBe(RTETableCellAnnotation.DEFAULT_VERTICAL_TEXT_ALIGN);
|
|
660
|
+
});
|
|
661
|
+
it('should preserve explicit null values when autoMatchFormat is true', () => {
|
|
662
|
+
const cellWithNullAnnotations = Object.assign(Object.assign({}, baseCellJSON), { annotations: {
|
|
663
|
+
tableCell: {
|
|
664
|
+
padding: null,
|
|
665
|
+
border: null,
|
|
666
|
+
textAlign: null,
|
|
667
|
+
},
|
|
668
|
+
} });
|
|
669
|
+
const cellBlock = RTETableCellBlock.from(cellWithNullAnnotations, {
|
|
670
|
+
autoMatchFormat: true,
|
|
671
|
+
});
|
|
672
|
+
const cellAnnotation = cellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
673
|
+
expect(cellAnnotation).toBeDefined();
|
|
674
|
+
expect(cellAnnotation.padding).toBeNull();
|
|
675
|
+
expect(cellAnnotation.border).toBeNull();
|
|
676
|
+
expect(cellAnnotation.textAlign).toBeNull();
|
|
677
|
+
// Undefined properties should still get defaults
|
|
678
|
+
expect(cellAnnotation.verticalAlign).toBe(RTETableCellAnnotation.DEFAULT_VERTICAL_TEXT_ALIGN);
|
|
679
|
+
});
|
|
680
|
+
it('should not apply defaults when autoMatchFormat is false even with partial annotations', () => {
|
|
681
|
+
const cellWithPartialAnnotations = Object.assign(Object.assign({}, baseCellJSON), { annotations: {
|
|
682
|
+
tableCell: {
|
|
683
|
+
padding: '20px',
|
|
684
|
+
backgroundColor: 'blue',
|
|
685
|
+
},
|
|
686
|
+
} });
|
|
687
|
+
const cellBlock = RTETableCellBlock.from(cellWithPartialAnnotations, {
|
|
688
|
+
autoMatchFormat: false,
|
|
689
|
+
});
|
|
690
|
+
const cellAnnotation = cellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
691
|
+
expect(cellAnnotation).toBeDefined();
|
|
692
|
+
expect(cellAnnotation.padding).toBe('20px');
|
|
693
|
+
expect(cellAnnotation.backgroundColor).toBe('blue');
|
|
694
|
+
// Undefined properties should remain undefined
|
|
695
|
+
expect(cellAnnotation.border).toBeUndefined();
|
|
696
|
+
expect(cellAnnotation.textAlign).toBeUndefined();
|
|
697
|
+
expect(cellAnnotation.verticalAlign).toBeUndefined();
|
|
698
|
+
});
|
|
699
|
+
it('should preserve all explicit values regardless of autoMatchFormat', () => {
|
|
700
|
+
const cellWithFullAnnotations = Object.assign(Object.assign({}, baseCellJSON), { annotations: {
|
|
701
|
+
tableCell: {
|
|
702
|
+
padding: '25px',
|
|
703
|
+
border: { style: 'dashed', width: '3px', color: 'red' },
|
|
704
|
+
textAlign: 'right',
|
|
705
|
+
verticalAlign: 'bottom',
|
|
706
|
+
minWidth: '150px',
|
|
707
|
+
boxSizing: 'content-box',
|
|
708
|
+
backgroundColor: 'green',
|
|
709
|
+
},
|
|
710
|
+
} });
|
|
711
|
+
const cellBlockWithFormat = RTETableCellBlock.from(cellWithFullAnnotations, {
|
|
712
|
+
autoMatchFormat: true,
|
|
713
|
+
});
|
|
714
|
+
const cellBlockWithoutFormat = RTETableCellBlock.from(cellWithFullAnnotations, {
|
|
715
|
+
autoMatchFormat: false,
|
|
716
|
+
});
|
|
717
|
+
const annotationWithFormat = cellBlockWithFormat.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
718
|
+
const annotationWithoutFormat = cellBlockWithoutFormat.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
719
|
+
// Both should have the same values
|
|
720
|
+
expect(annotationWithFormat.padding).toBe('25px');
|
|
721
|
+
expect(annotationWithFormat.border).toEqual({
|
|
722
|
+
style: 'dashed',
|
|
723
|
+
width: '3px',
|
|
724
|
+
color: 'red',
|
|
725
|
+
});
|
|
726
|
+
expect(annotationWithFormat.textAlign).toBe('right');
|
|
727
|
+
expect(annotationWithFormat.verticalAlign).toBe('bottom');
|
|
728
|
+
expect(annotationWithFormat.minWidth).toBe('150px');
|
|
729
|
+
expect(annotationWithFormat.boxSizing).toBe('content-box');
|
|
730
|
+
expect(annotationWithoutFormat.padding).toBe('25px');
|
|
731
|
+
expect(annotationWithoutFormat.border).toEqual({
|
|
732
|
+
style: 'dashed',
|
|
733
|
+
width: '3px',
|
|
734
|
+
color: 'red',
|
|
735
|
+
});
|
|
736
|
+
expect(annotationWithoutFormat.textAlign).toBe('right');
|
|
737
|
+
expect(annotationWithoutFormat.verticalAlign).toBe('bottom');
|
|
738
|
+
expect(annotationWithoutFormat.minWidth).toBe('150px');
|
|
739
|
+
expect(annotationWithoutFormat.boxSizing).toBe('content-box');
|
|
740
|
+
});
|
|
741
|
+
it('should default to autoMatchFormat true when options not provided', () => {
|
|
742
|
+
const cellBlock = RTETableCellBlock.from(baseCellJSON);
|
|
743
|
+
const cellAnnotation = cellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
744
|
+
expect(cellAnnotation).toBeDefined();
|
|
745
|
+
expect(cellAnnotation.padding).toBe(RTETableCellAnnotation.DEFAULT_PADDING);
|
|
746
|
+
expect(cellAnnotation.border).toEqual(RTETableCellAnnotation.DEFAULT_BORDER);
|
|
747
|
+
});
|
|
748
|
+
it('should handle constructor-level defaults when no annotations provided and autoMatchFormat is true', () => {
|
|
749
|
+
const cellBlock = RTETableCellBlock.from(baseCellJSON, {
|
|
750
|
+
autoMatchFormat: true,
|
|
751
|
+
});
|
|
752
|
+
const cellAnnotation = cellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
753
|
+
// Constructor should have created annotation with defaults
|
|
754
|
+
expect(cellAnnotation).toBeDefined();
|
|
755
|
+
expect(cellAnnotation.padding).toBe(RTETableCellAnnotation.DEFAULT_PADDING);
|
|
756
|
+
expect(cellAnnotation.border).toEqual(RTETableCellAnnotation.DEFAULT_BORDER);
|
|
757
|
+
expect(cellAnnotation.textAlign).toBe(RTETableCellAnnotation.DEFAULT_HORIZONTAL_TEXT_ALIGN);
|
|
758
|
+
expect(cellAnnotation.verticalAlign).toBe(RTETableCellAnnotation.DEFAULT_VERTICAL_TEXT_ALIGN);
|
|
759
|
+
});
|
|
760
|
+
it('should not create annotation in constructor when autoMatchFormat is false', () => {
|
|
761
|
+
const cellBlock = RTETableCellBlock.from(baseCellJSON, {
|
|
762
|
+
autoMatchFormat: false,
|
|
763
|
+
});
|
|
764
|
+
// Constructor should not have created any annotation
|
|
765
|
+
const cellAnnotation = cellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
766
|
+
expect(cellAnnotation).toBeUndefined();
|
|
767
|
+
});
|
|
768
|
+
});
|
|
769
|
+
});
|
|
770
|
+
describe('table-caption-block', () => {
|
|
771
|
+
it('clone', () => {
|
|
772
|
+
const captionJson = {
|
|
773
|
+
id: 'caption-1',
|
|
774
|
+
type: 'table-caption',
|
|
775
|
+
children: [
|
|
776
|
+
{
|
|
777
|
+
id: 'paragraph-1',
|
|
778
|
+
type: 'paragraph',
|
|
779
|
+
nodes: [
|
|
780
|
+
{
|
|
781
|
+
id: 'text-1',
|
|
782
|
+
type: 'text',
|
|
783
|
+
text: 'Caption text',
|
|
784
|
+
},
|
|
785
|
+
],
|
|
786
|
+
},
|
|
787
|
+
],
|
|
788
|
+
};
|
|
789
|
+
const tableWithCaption = Object.assign(Object.assign({}, tableObj), { children: [
|
|
790
|
+
{
|
|
791
|
+
id: 'caption-1',
|
|
792
|
+
type: 'table-caption',
|
|
793
|
+
children: captionJson.children,
|
|
794
|
+
},
|
|
795
|
+
...tableObj.children,
|
|
796
|
+
] });
|
|
797
|
+
const tableBlockWithCaption = RTETableBlock.from(tableWithCaption);
|
|
798
|
+
const captionBlock = tableBlockWithCaption.getCaption();
|
|
799
|
+
const cloned = captionBlock.clone(tableBlockWithCaption);
|
|
800
|
+
expect(cloned).toEqual(captionBlock);
|
|
801
|
+
expect(cloned).not.toBe(captionBlock);
|
|
802
|
+
expect(cloned.parent).toBe(tableBlockWithCaption);
|
|
803
|
+
});
|
|
804
|
+
it('toHtml', () => {
|
|
805
|
+
const captionJson = {
|
|
806
|
+
id: 'caption-1',
|
|
807
|
+
type: 'table-caption',
|
|
808
|
+
children: [
|
|
809
|
+
{
|
|
810
|
+
id: 'paragraph-1',
|
|
811
|
+
type: 'paragraph',
|
|
812
|
+
nodes: [
|
|
813
|
+
{
|
|
814
|
+
id: 'text-1',
|
|
815
|
+
type: 'text',
|
|
816
|
+
text: 'Caption text',
|
|
817
|
+
},
|
|
818
|
+
],
|
|
819
|
+
},
|
|
820
|
+
],
|
|
821
|
+
};
|
|
822
|
+
const captionBlock = RTETableCaptionBlock.from(captionJson);
|
|
823
|
+
const html = captionBlock.toHtml();
|
|
824
|
+
expect(html).toEqualHtml(`
|
|
825
|
+
<caption style="padding: 8px; border: 1px solid #ddd; border-bottom: none; background-color: #f7f7f7; position: relative; text-align: center; min-height: 22px;">
|
|
826
|
+
<p style="font-family: Inter; font-size: 16px; line-height: 22px; min-height: 22px; font-weight: 500; margin-top: 0px; margin-bottom: 0px;">
|
|
827
|
+
<span>
|
|
828
|
+
Caption text
|
|
829
|
+
</span>
|
|
830
|
+
</p>
|
|
831
|
+
</caption>
|
|
832
|
+
`);
|
|
833
|
+
});
|
|
834
|
+
});
|
|
835
|
+
describe('RTETableBlock with useInternalStyle options', () => {
|
|
836
|
+
const tableWithoutAnnotations = {
|
|
837
|
+
id: 'table-1',
|
|
838
|
+
type: 'table-block',
|
|
839
|
+
children: [
|
|
840
|
+
{
|
|
841
|
+
id: 'tbody-1',
|
|
842
|
+
type: 'table-body',
|
|
843
|
+
children: [
|
|
844
|
+
{
|
|
845
|
+
id: 'row-1',
|
|
846
|
+
type: 'table-row',
|
|
847
|
+
children: [
|
|
848
|
+
{
|
|
849
|
+
id: 'cell-1',
|
|
850
|
+
type: 'table-cell',
|
|
851
|
+
children: [
|
|
852
|
+
{
|
|
853
|
+
id: 'para-1',
|
|
854
|
+
annotations: {
|
|
855
|
+
textStyle: 'paragraph',
|
|
856
|
+
internalWrapper: true,
|
|
857
|
+
},
|
|
858
|
+
type: 'paragraph',
|
|
859
|
+
nodes: [
|
|
860
|
+
{
|
|
861
|
+
id: 'text-1',
|
|
862
|
+
annotations: {
|
|
863
|
+
plainText: true,
|
|
864
|
+
},
|
|
865
|
+
type: 'text',
|
|
866
|
+
text: 'Content',
|
|
867
|
+
},
|
|
868
|
+
],
|
|
869
|
+
},
|
|
870
|
+
],
|
|
871
|
+
},
|
|
872
|
+
],
|
|
873
|
+
},
|
|
874
|
+
],
|
|
875
|
+
},
|
|
876
|
+
],
|
|
877
|
+
};
|
|
878
|
+
it('should apply default table annotations when autoMatchFormat is true', () => {
|
|
879
|
+
const tableBlock = RTETableBlock.from(tableWithoutAnnotations, {
|
|
880
|
+
autoMatchFormat: true,
|
|
881
|
+
});
|
|
882
|
+
const tableAnnotation = tableBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.TABLE);
|
|
883
|
+
expect(tableAnnotation).toBeDefined();
|
|
884
|
+
expect(tableAnnotation.alignment).toBe(RTETableAnnotation.DEFAULT_ALIGNMENT);
|
|
885
|
+
expect(tableAnnotation.borderCollapse).toBe(RTETableAnnotation.DEFAULT_BORDER_COLLAPSE);
|
|
886
|
+
expect(tableAnnotation.useInternalStyle).toBe(true);
|
|
887
|
+
});
|
|
888
|
+
it('should not apply default table annotations when autoMatchFormat is false', () => {
|
|
889
|
+
const tableBlock = RTETableBlock.from(tableWithoutAnnotations, {
|
|
890
|
+
autoMatchFormat: false,
|
|
891
|
+
});
|
|
892
|
+
const tableAnnotation = tableBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.TABLE);
|
|
893
|
+
expect(tableAnnotation).toBeUndefined();
|
|
894
|
+
});
|
|
895
|
+
it('should preserve explicit table annotations with autoMatchFormat true', () => {
|
|
896
|
+
const tableWithAnnotations = Object.assign(Object.assign({}, tableWithoutAnnotations), { annotations: {
|
|
897
|
+
table: {
|
|
898
|
+
alignment: 'left',
|
|
899
|
+
borderCollapse: 'separate',
|
|
900
|
+
backgroundColor: 'orange',
|
|
901
|
+
},
|
|
902
|
+
} });
|
|
903
|
+
const tableBlock = RTETableBlock.from(tableWithAnnotations, {
|
|
904
|
+
autoMatchFormat: true,
|
|
905
|
+
});
|
|
906
|
+
const tableAnnotation = tableBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.TABLE);
|
|
907
|
+
expect(tableAnnotation).toBeDefined();
|
|
908
|
+
expect(tableAnnotation.alignment).toBe('left');
|
|
909
|
+
expect(tableAnnotation.borderCollapse).toBe('separate');
|
|
910
|
+
expect(tableAnnotation.backgroundColor).toBe('orange');
|
|
911
|
+
expect(tableAnnotation.useInternalStyle).toBe(true);
|
|
912
|
+
});
|
|
913
|
+
it('should preserve null values in table annotations with autoMatchFormat true', () => {
|
|
914
|
+
const tableWithNullAnnotations = Object.assign(Object.assign({}, tableWithoutAnnotations), { annotations: {
|
|
915
|
+
table: {
|
|
916
|
+
alignment: null,
|
|
917
|
+
borderCollapse: null,
|
|
918
|
+
},
|
|
919
|
+
} });
|
|
920
|
+
const tableBlock = RTETableBlock.from(tableWithNullAnnotations, {
|
|
921
|
+
autoMatchFormat: true,
|
|
922
|
+
});
|
|
923
|
+
const tableAnnotation = tableBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.TABLE);
|
|
924
|
+
expect(tableAnnotation).toBeDefined();
|
|
925
|
+
expect(tableAnnotation.alignment).toBeNull();
|
|
926
|
+
expect(tableAnnotation.borderCollapse).toBeNull();
|
|
927
|
+
expect(tableAnnotation.useInternalStyle).toBe(true);
|
|
928
|
+
});
|
|
929
|
+
it('should not apply defaults to table annotations when autoMatchFormat is false', () => {
|
|
930
|
+
const tableWithAnnotations = Object.assign(Object.assign({}, tableWithoutAnnotations), { annotations: {
|
|
931
|
+
table: {
|
|
932
|
+
backgroundColor: 'orange',
|
|
933
|
+
},
|
|
934
|
+
} });
|
|
935
|
+
const tableBlock = RTETableBlock.from(tableWithAnnotations, {
|
|
936
|
+
autoMatchFormat: false,
|
|
937
|
+
});
|
|
938
|
+
const tableAnnotation = tableBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.TABLE);
|
|
939
|
+
expect(tableAnnotation).toBeDefined();
|
|
940
|
+
expect(tableAnnotation.alignment).toBeUndefined();
|
|
941
|
+
expect(tableAnnotation.borderCollapse).toBeUndefined();
|
|
942
|
+
expect(tableAnnotation.backgroundColor).toBe('orange');
|
|
943
|
+
expect(tableAnnotation.useInternalStyle).toBe(false);
|
|
944
|
+
});
|
|
945
|
+
it('should default to autoMatchFormat true when options not provided', () => {
|
|
946
|
+
const tableBlock = RTETableBlock.from(tableWithoutAnnotations);
|
|
947
|
+
const tableAnnotation = tableBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.TABLE);
|
|
948
|
+
expect(tableAnnotation).toBeDefined();
|
|
949
|
+
expect(tableAnnotation.alignment).toBe(RTETableAnnotation.DEFAULT_ALIGNMENT);
|
|
950
|
+
expect(tableAnnotation.borderCollapse).toBe(RTETableAnnotation.DEFAULT_BORDER_COLLAPSE);
|
|
951
|
+
});
|
|
952
|
+
it('should apply default cell annotations when autoMatchFormat is true', () => {
|
|
953
|
+
const tableBlock = RTETableBlock.from(tableWithoutAnnotations, {
|
|
954
|
+
autoMatchFormat: true,
|
|
955
|
+
});
|
|
956
|
+
const cellBlock = tableBlock.children[0].children[0]
|
|
957
|
+
.children[0];
|
|
958
|
+
const cellAnnotation = cellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
959
|
+
expect(cellAnnotation).toBeDefined();
|
|
960
|
+
expect(cellAnnotation.padding).toBe(RTETableCellAnnotation.DEFAULT_PADDING);
|
|
961
|
+
expect(cellAnnotation.border).toEqual(RTETableCellAnnotation.DEFAULT_BORDER);
|
|
962
|
+
expect(cellAnnotation.textAlign).toBe(RTETableCellAnnotation.DEFAULT_HORIZONTAL_TEXT_ALIGN);
|
|
963
|
+
expect(cellAnnotation.verticalAlign).toBe(RTETableCellAnnotation.DEFAULT_VERTICAL_TEXT_ALIGN);
|
|
964
|
+
});
|
|
965
|
+
it('should not apply default cell annotations when autoMatchFormat is false', () => {
|
|
966
|
+
const tableBlock = RTETableBlock.from(tableWithoutAnnotations, {
|
|
967
|
+
autoMatchFormat: false,
|
|
968
|
+
});
|
|
969
|
+
const cellBlock = tableBlock.children[0].children[0]
|
|
970
|
+
.children[0];
|
|
971
|
+
const cellAnnotation = cellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
972
|
+
expect(cellAnnotation).toBeUndefined();
|
|
973
|
+
});
|
|
974
|
+
it('should preserve explicit cell annotations with autoMatchFormat true', () => {
|
|
975
|
+
const tableWithCellAnnotations = Object.assign(Object.assign({}, tableWithoutAnnotations), { children: [
|
|
976
|
+
{
|
|
977
|
+
id: 'tbody-1',
|
|
978
|
+
type: 'table-body',
|
|
979
|
+
children: [
|
|
980
|
+
{
|
|
981
|
+
id: 'row-1',
|
|
982
|
+
type: 'table-row',
|
|
983
|
+
children: [
|
|
984
|
+
{
|
|
985
|
+
id: 'cell-1',
|
|
986
|
+
type: 'table-cell',
|
|
987
|
+
annotations: {
|
|
988
|
+
tableCell: {
|
|
989
|
+
padding: '20px',
|
|
990
|
+
textAlign: 'center',
|
|
991
|
+
backgroundColor: 'blue',
|
|
992
|
+
},
|
|
993
|
+
},
|
|
994
|
+
children: [
|
|
995
|
+
{
|
|
996
|
+
id: 'para-1',
|
|
997
|
+
annotations: {
|
|
998
|
+
textStyle: 'paragraph',
|
|
999
|
+
internalWrapper: true,
|
|
1000
|
+
},
|
|
1001
|
+
type: 'paragraph',
|
|
1002
|
+
nodes: [
|
|
1003
|
+
{
|
|
1004
|
+
id: 'text-1',
|
|
1005
|
+
annotations: {
|
|
1006
|
+
plainText: true,
|
|
1007
|
+
},
|
|
1008
|
+
type: 'text',
|
|
1009
|
+
text: 'Content',
|
|
1010
|
+
},
|
|
1011
|
+
],
|
|
1012
|
+
},
|
|
1013
|
+
],
|
|
1014
|
+
},
|
|
1015
|
+
],
|
|
1016
|
+
},
|
|
1017
|
+
],
|
|
1018
|
+
},
|
|
1019
|
+
] });
|
|
1020
|
+
const tableBlock = RTETableBlock.from(tableWithCellAnnotations, {
|
|
1021
|
+
autoMatchFormat: true,
|
|
1022
|
+
});
|
|
1023
|
+
const cellBlock = tableBlock.children[0].children[0]
|
|
1024
|
+
.children[0];
|
|
1025
|
+
const cellAnnotation = cellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
1026
|
+
expect(cellAnnotation).toBeDefined();
|
|
1027
|
+
expect(cellAnnotation.padding).toBe('20px');
|
|
1028
|
+
expect(cellAnnotation.textAlign).toBe('center');
|
|
1029
|
+
expect(cellAnnotation.backgroundColor).toBe('blue');
|
|
1030
|
+
// Border and verticalAlign should get defaults since they're undefined
|
|
1031
|
+
expect(cellAnnotation.border).toEqual(RTETableCellAnnotation.DEFAULT_BORDER);
|
|
1032
|
+
expect(cellAnnotation.verticalAlign).toBe(RTETableCellAnnotation.DEFAULT_VERTICAL_TEXT_ALIGN);
|
|
1033
|
+
});
|
|
1034
|
+
it('should preserve null cell annotations with autoMatchFormat true', () => {
|
|
1035
|
+
const tableWithNullCellAnnotations = Object.assign(Object.assign({}, tableWithoutAnnotations), { children: [
|
|
1036
|
+
{
|
|
1037
|
+
id: 'tbody-1',
|
|
1038
|
+
type: 'table-body',
|
|
1039
|
+
children: [
|
|
1040
|
+
{
|
|
1041
|
+
id: 'row-1',
|
|
1042
|
+
type: 'table-row',
|
|
1043
|
+
children: [
|
|
1044
|
+
{
|
|
1045
|
+
id: 'cell-1',
|
|
1046
|
+
type: 'table-cell',
|
|
1047
|
+
annotations: {
|
|
1048
|
+
tableCell: {
|
|
1049
|
+
padding: null,
|
|
1050
|
+
border: null,
|
|
1051
|
+
textAlign: null,
|
|
1052
|
+
},
|
|
1053
|
+
},
|
|
1054
|
+
children: [
|
|
1055
|
+
{
|
|
1056
|
+
id: 'para-1',
|
|
1057
|
+
annotations: {
|
|
1058
|
+
textStyle: 'paragraph',
|
|
1059
|
+
internalWrapper: true,
|
|
1060
|
+
},
|
|
1061
|
+
type: 'paragraph',
|
|
1062
|
+
nodes: [
|
|
1063
|
+
{
|
|
1064
|
+
id: 'text-1',
|
|
1065
|
+
annotations: {
|
|
1066
|
+
plainText: true,
|
|
1067
|
+
},
|
|
1068
|
+
type: 'text',
|
|
1069
|
+
text: 'Content',
|
|
1070
|
+
},
|
|
1071
|
+
],
|
|
1072
|
+
},
|
|
1073
|
+
],
|
|
1074
|
+
},
|
|
1075
|
+
],
|
|
1076
|
+
},
|
|
1077
|
+
],
|
|
1078
|
+
},
|
|
1079
|
+
] });
|
|
1080
|
+
const tableBlock = RTETableBlock.from(tableWithNullCellAnnotations, {
|
|
1081
|
+
autoMatchFormat: true,
|
|
1082
|
+
});
|
|
1083
|
+
const cellBlock = tableBlock.children[0].children[0]
|
|
1084
|
+
.children[0];
|
|
1085
|
+
const cellAnnotation = cellBlock.annotationMap.get(RTETableExtensionAnnotationTypeEnum.CELL);
|
|
1086
|
+
expect(cellAnnotation).toBeDefined();
|
|
1087
|
+
expect(cellAnnotation.padding).toBeNull();
|
|
1088
|
+
expect(cellAnnotation.border).toBeNull();
|
|
1089
|
+
expect(cellAnnotation.textAlign).toBeNull();
|
|
1090
|
+
// verticalAlign should get default since it's undefined
|
|
1091
|
+
expect(cellAnnotation.verticalAlign).toBe(RTETableCellAnnotation.DEFAULT_VERTICAL_TEXT_ALIGN);
|
|
1092
|
+
});
|
|
1093
|
+
});
|
|
1094
|
+
});
|