@globalpayments/vega 2.55.1 → 2.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-f1ff47e3.js → app-globals-26e2fe1e.js} +9 -9
- package/dist/cjs/{child-nodes-event-prevent-slimmer-29020cc8.js → child-nodes-event-prevent-slimmer-96240a0e.js} +1 -1
- package/dist/cjs/{code-block-2d014e17.js → code-block-7650c868.js} +102 -113
- package/dist/cjs/{component-usage-runtime-metrics-dcb32c24.js → component-usage-runtime-metrics-d10ace87.js} +1 -1
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-6bfb9145.js → component-value-history-controller-slimmer.abstract-a6e4e5bc.js} +7 -7
- package/dist/cjs/{content-state-6a5da7ec.js → content-state-fd5ad4a8.js} +92 -86
- package/dist/cjs/{create-public-api-runtime-metrics-slimmer-a3d17afb.js → create-public-api-runtime-metrics-slimmer-e2e274e1.js} +1 -1
- package/dist/cjs/{design-token-d15e60fa.js → design-token-e771bb16.js} +3 -3
- package/dist/cjs/{element-appender-slimmer-2f16891f.js → element-appender-slimmer-7f98d16b.js} +4 -4
- package/dist/cjs/{feature-flag-controller-5e58aae4.js → feature-flag-controller-ce2162c8.js} +1 -1
- package/dist/cjs/{form-field-controller-slimmer-dc6d0fe1.js → form-field-controller-slimmer-7bb7df10.js} +4 -4
- package/dist/cjs/{icon-manager-9a47399c.js → icon-manager-9072356d.js} +1 -1
- package/dist/cjs/{image-annotation-action-617bbb13.js → image-annotation-action-6715d6f3.js} +2 -2
- package/dist/cjs/{index-8b247c17.js → index-4d7bce1a.js} +2 -2
- package/dist/cjs/{index-ebb1bb17.js → index-ee4bc191.js} +2 -2
- package/dist/cjs/index.cjs.js +16 -16
- package/dist/cjs/{inject-keyboard-manager-11df8296.js → inject-keyboard-manager-f1f781b7.js} +1 -1
- package/dist/cjs/{internal-icon-manager-00f49470.js → internal-icon-manager-f8677abb.js} +1 -1
- package/dist/cjs/{keyboard-manager-1843112c.js → keyboard-manager-0be55fb9.js} +1 -1
- package/dist/cjs/{keyboard-manager-slimmer-0a5f5770.js → keyboard-manager-slimmer-92c7227b.js} +1 -1
- package/dist/cjs/loader.cjs.js +14 -14
- package/dist/cjs/{public-rules-a3b7e267.js → public-rules-036795a4.js} +6 -6
- package/dist/cjs/{responsive-format-facade-4a19e115.js → responsive-format-facade-d164ced7.js} +7 -7
- package/dist/cjs/{rich-text-editor-required-rule-e9c7c379.js → rich-text-editor-required-rule-91eb0e22.js} +3 -3
- package/dist/cjs/{state-background-color-formatter-e585a027.js → state-background-color-formatter-c57409ea.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-a5feb2ed.js → string-input-formatter-slimmer-92ab034f.js} +3 -3
- package/dist/cjs/{style-formatter-b8cea5ee.js → style-formatter-3e7af35b.js} +2 -2
- package/dist/cjs/{sub-state-notify-slimmer-f68fbf29.js → sub-state-notify-slimmer-409bbd1a.js} +1 -1
- package/dist/cjs/{sub-state-observer-slimmer-e06cdf7e.js → sub-state-observer-slimmer-93d0a609.js} +1 -1
- package/dist/cjs/{translation-e5003a00.js → translation-de7e351e.js} +1 -1
- package/dist/cjs/{translation-slimmer-127a0f83.js → translation-slimmer-83bdb9fe.js} +1 -1
- package/dist/cjs/{type-guard-4ba85fdc.js → type-guard-aa8fdeaf.js} +16 -0
- package/dist/cjs/vega-accordion.cjs.entry.js +16 -16
- package/dist/cjs/vega-app-footer.cjs.entry.js +1 -1
- package/dist/cjs/vega-app-header-button.cjs.entry.js +17 -17
- package/dist/cjs/vega-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/vega-banner.cjs.entry.js +6 -6
- package/dist/cjs/vega-bar-chart.cjs.entry.js +1 -1
- package/dist/cjs/vega-box.cjs.entry.js +16 -16
- package/dist/cjs/vega-brand-logo.cjs.entry.js +4 -4
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
- package/dist/cjs/vega-button-circle.cjs.entry.js +16 -16
- 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 +14 -14
- package/dist/cjs/vega-calendar_3.cjs.entry.js +63 -24
- package/dist/cjs/vega-card.cjs.entry.js +15 -15
- package/dist/cjs/vega-carousel.cjs.entry.js +13 -13
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-chip.cjs.entry.js +16 -16
- package/dist/cjs/vega-code-block.cjs.entry.js +15 -15
- package/dist/cjs/vega-color-picker.cjs.entry.js +6 -6
- package/dist/cjs/vega-combo-box.cjs.entry.js +12 -12
- package/dist/cjs/vega-counter-badge.cjs.entry.js +1 -1
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +23 -23
- package/dist/cjs/vega-dialog_2.cjs.entry.js +16 -16
- package/dist/cjs/vega-divider.cjs.entry.js +15 -15
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +23 -22
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-error.cjs.entry.js +1 -1
- package/dist/cjs/vega-field-label.cjs.entry.js +1 -1
- package/dist/cjs/vega-file-uploader.cjs.entry.js +9 -9
- package/dist/cjs/vega-flag-icon.cjs.entry.js +16 -16
- package/dist/cjs/vega-flex.cjs.entry.js +16 -16
- package/dist/cjs/vega-font.cjs.entry.js +15 -15
- package/dist/cjs/vega-form.cjs.entry.js +10 -10
- package/dist/cjs/vega-grid.cjs.entry.js +15 -15
- package/dist/cjs/vega-hint.cjs.entry.js +1 -1
- package/dist/cjs/vega-icon.cjs.entry.js +15 -15
- package/dist/cjs/vega-image-uploader.cjs.entry.js +17 -17
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +11 -11
- package/dist/cjs/vega-input-numeric.cjs.entry.js +13 -13
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +16 -16
- package/dist/cjs/vega-input-range.cjs.entry.js +10 -10
- package/dist/cjs/vega-input-select.cjs.entry.js +18 -18
- package/dist/cjs/vega-input.cjs.entry.js +10 -10
- package/dist/cjs/{vega-internal-event-id-6cdc95fe.js → vega-internal-event-id-bda08efa.js} +6 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +1 -1
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +18 -18
- package/dist/cjs/vega-line-chart.cjs.entry.js +1 -1
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +13 -13
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +5 -5
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +5 -5
- package/dist/cjs/vega-pagination.cjs.entry.js +15 -15
- package/dist/cjs/vega-pie-chart.cjs.entry.js +1 -1
- package/dist/cjs/vega-popover_2.cjs.entry.js +16 -16
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +1 -1
- package/dist/cjs/vega-radio_2.cjs.entry.js +12 -12
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +22 -22
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +86 -86
- package/dist/cjs/vega-section-title.cjs.entry.js +1 -1
- package/dist/cjs/vega-segment-control.cjs.entry.js +1 -1
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +17 -17
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +10 -10
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +16 -16
- package/dist/cjs/vega-signature-capture.cjs.entry.js +19 -19
- package/dist/cjs/{vega-skeleton-loader-controller-3833c813.js → vega-skeleton-loader-controller-d534f5a1.js} +1 -1
- package/dist/cjs/vega-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/vega-slot-container.cjs.entry.js +1 -1
- package/dist/cjs/vega-stepper.cjs.entry.js +9 -9
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-table_8.cjs.entry.js +1474 -316
- package/dist/cjs/vega-text.cjs.entry.js +1 -1
- package/dist/cjs/vega-textarea.cjs.entry.js +9 -9
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +20 -20
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +6 -6
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +16 -16
- package/dist/cjs/vega.cjs.js +14 -14
- package/dist/cjs/{wait-for-vega-handler-4491efc9.js → wait-for-vega-handler-5469ff80.js} +1 -1
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +1 -1
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-view-with-time-renderer.js +24 -7
- package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.js +11 -2
- package/dist/collection/components/vega-calendar/vega-calendar.css +6 -0
- package/dist/collection/components/vega-calendar/vega-calendar.js +43 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +1 -1
- package/dist/collection/components/vega-input-select/vega-input-select.js +1 -1
- package/dist/collection/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-text-style-strategy.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/node-split-text-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/node-update-annotation-map-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-append-blocks-strategy.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-append-nodes-strategy.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-image-strategy.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-node-content-strategy.js +28 -47
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-text-content-strategy.js +7 -7
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-blocks-before-strategy.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-line-break-strategy.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-line-break-with-blocks-strategy.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-merge-nodes-strategy.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-remove-child-block-strategy.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-remove-node-strategy.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-replace-node-with-nodes-strategy.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-replace-nodes-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-split-with-image-node-strategy.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-split-with-text-node-strategy.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-transform-to-code-block-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/code-block-remove-self-strategy.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-block-insert-image-strategy.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-insert-line-break-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-insert-line-break-with-blocks-strategy.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-delete-text-content-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-insert-new-paragraph-strategy.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-remove-nest-list-strategy.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-remove-node-strategy.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-replace-nest-list-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-remove-list-item-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-list-strategy.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-paragraph-strategy.js +9 -9
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/switch-out-from-code-block-strategy.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +8 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/code-block.js +5 -5
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +7 -7
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +6 -6
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +18 -12
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +9 -9
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +14 -14
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/code-block-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/code-block-node-renderer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/delete-selected-nodes-controller.js +20 -20
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/focus-controller.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/li-to-rte-list-item-block-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ol-to-rte-list-block-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-to-rte-list-block-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/delete-content-handler.js +8 -8
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-line-break-handler.js +8 -8
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paragraph-handler.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.js +5 -5
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-text-handler.js +6 -6
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/insert-composition-text-controller.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/insert-image-controller.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/internal-code-block-selection-controller.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/code-block-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/block-insert-line-break-with-blocks-strategy.test.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-item-strategy-register.test.js +56 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-split-text-strategy.test.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/text-block-strategy-register.test.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/code-block.test.js +5 -5
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/image-block.test.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-block.test.js +7 -7
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-item.test.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/text-block.test.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +18 -18
- package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +9 -9
- package/dist/collection/components/vega-table/slimmers/controllers/dto/column-render-input-model.js +216 -0
- package/dist/collection/components/vega-table/slimmers/controllers/dto/column-structure-model.js +238 -0
- package/dist/collection/components/vega-table/slimmers/controllers/dto/test/column-render-input-model.test.js +83 -0
- package/dist/collection/components/vega-table/slimmers/controllers/dto/test/column-structure-model.test.js +147 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-column-structure-model-controller.js +66 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-render-input-controller.js +171 -0
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-body-renderer.js +6 -1
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-cell-renderer.js +22 -4
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-col-group-renderer.js +13 -3
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-header-renderer.js +43 -6
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.js +175 -0
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-renderer.js +7 -0
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-row-renderer.js +6 -5
- package/dist/collection/components/vega-table/vega-table-cell/slimmers/controllers/vega-table-cell-state-controller.js +41 -0
- package/dist/collection/components/vega-table/vega-table-cell/slimmers/controllers/vega-table-row-state-controller.js +48 -0
- package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.css +58 -11
- package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.js +49 -6
- package/dist/collection/components/vega-table/vega-table-expand-row/slimmers/renderers/vega-table-expand-row-renderer.js +5 -1
- package/dist/collection/components/vega-table/vega-table-expand-row/vega-table-expand-row.css +11 -0
- package/dist/collection/components/vega-table/vega-table-head-cell/slimmers/controllers/vega-table-head-cell-state-controller.js +15 -0
- package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.css +42 -11
- package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.js +45 -9
- package/dist/collection/components/vega-table/vega-table-head-row/slimmers/renderers/vega-table-head-row-renderer.js +53 -10
- package/dist/collection/components/vega-table/vega-table-head-row/vega-table-head-row.css +37 -0
- package/dist/collection/components/vega-table/vega-table-row/vega-table-row.css +5 -16
- package/dist/collection/components/vega-table/vega-table-row/vega-table-row.js +21 -0
- package/dist/collection/components/vega-table/vega-table.css +22 -0
- package/dist/collection/components/vega-table/vega-table.js +52 -1
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +3 -0
- package/dist/collection/helpers/validator/rules/rich-text-editor-required-rule.js +2 -2
- package/dist/collection/types/type-guard.js +15 -0
- package/dist/esm/{app-globals-4881974a.js → app-globals-366415b3.js} +9 -9
- package/dist/esm/{child-nodes-event-prevent-slimmer-2b975cbf.js → child-nodes-event-prevent-slimmer-b59a578e.js} +1 -1
- package/dist/esm/{code-block-ef2f04ca.js → code-block-73869a3c.js} +102 -113
- package/dist/esm/{component-usage-runtime-metrics-385c7124.js → component-usage-runtime-metrics-a84cc93e.js} +1 -1
- package/dist/esm/{component-value-history-controller-slimmer.abstract-0a0ef33f.js → component-value-history-controller-slimmer.abstract-dfe89c93.js} +7 -7
- package/dist/esm/{content-state-69d29a07.js → content-state-953906e8.js} +92 -86
- package/dist/esm/{create-public-api-runtime-metrics-slimmer-8ada793f.js → create-public-api-runtime-metrics-slimmer-bedf3a1e.js} +1 -1
- package/dist/esm/{design-token-9bbefd23.js → design-token-28a0a2e6.js} +3 -3
- package/dist/esm/{element-appender-slimmer-8652e8d7.js → element-appender-slimmer-7b9f4a8e.js} +4 -4
- package/dist/esm/{feature-flag-controller-0fbe8fb0.js → feature-flag-controller-51659753.js} +2 -2
- package/dist/esm/{form-field-controller-slimmer-6f49d396.js → form-field-controller-slimmer-707a6da2.js} +4 -4
- package/dist/esm/{icon-manager-638dd4d4.js → icon-manager-2ee1c619.js} +1 -1
- package/dist/esm/{image-annotation-action-1497f70e.js → image-annotation-action-5bfda07c.js} +2 -2
- package/dist/esm/{index-f5d2fe61.js → index-3e551cbe.js} +2 -2
- package/dist/esm/{index-44c794b4.js → index-e9da316f.js} +2 -2
- package/dist/esm/index.js +16 -16
- package/dist/esm/{inject-keyboard-manager-a15cf43c.js → inject-keyboard-manager-5141d09a.js} +1 -1
- package/dist/esm/{internal-icon-manager-58cf8aa6.js → internal-icon-manager-7eac52c8.js} +1 -1
- package/dist/esm/{keyboard-manager-f496a623.js → keyboard-manager-3ffe81b0.js} +1 -1
- package/dist/esm/{keyboard-manager-slimmer-a4cc9593.js → keyboard-manager-slimmer-751e98f5.js} +1 -1
- package/dist/esm/loader.js +14 -14
- package/dist/esm/{public-rules-3436034b.js → public-rules-c5d2c1e1.js} +6 -6
- package/dist/esm/{responsive-format-facade-bcc2fd21.js → responsive-format-facade-60731164.js} +7 -7
- package/dist/esm/{rich-text-editor-required-rule-cc5b6a2d.js → rich-text-editor-required-rule-4429066e.js} +3 -3
- package/dist/esm/{state-background-color-formatter-121ae7d3.js → state-background-color-formatter-da5e76e8.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-e53b6412.js → string-input-formatter-slimmer-6ab5cad6.js} +3 -3
- package/dist/esm/{style-formatter-00d6c32f.js → style-formatter-57fc600a.js} +2 -2
- package/dist/esm/{sub-state-notify-slimmer-b6c8051c.js → sub-state-notify-slimmer-1c4d1e78.js} +1 -1
- package/dist/esm/{sub-state-observer-slimmer-93eeb87d.js → sub-state-observer-slimmer-1e9af9ec.js} +1 -1
- package/dist/esm/{translation-71e0711d.js → translation-a6eacb5f.js} +1 -1
- package/dist/esm/{translation-slimmer-e6b130bf.js → translation-slimmer-f28e4708.js} +1 -1
- package/dist/esm/{type-guard-158f6d7a.js → type-guard-84b1f192.js} +16 -1
- package/dist/esm/vega-accordion.entry.js +16 -16
- package/dist/esm/vega-app-footer.entry.js +1 -1
- package/dist/esm/vega-app-header-button.entry.js +17 -17
- package/dist/esm/vega-backdrop.entry.js +1 -1
- package/dist/esm/vega-banner.entry.js +6 -6
- package/dist/esm/vega-bar-chart.entry.js +1 -1
- package/dist/esm/vega-box.entry.js +16 -16
- package/dist/esm/vega-brand-logo.entry.js +4 -4
- package/dist/esm/vega-breadcrumb.entry.js +4 -4
- package/dist/esm/vega-button-circle.entry.js +16 -16
- 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 +14 -14
- package/dist/esm/vega-calendar_3.entry.js +63 -24
- package/dist/esm/vega-card.entry.js +15 -15
- package/dist/esm/vega-carousel.entry.js +13 -13
- package/dist/esm/vega-checkbox_2.entry.js +9 -9
- package/dist/esm/vega-chip.entry.js +16 -16
- package/dist/esm/vega-code-block.entry.js +15 -15
- package/dist/esm/vega-color-picker.entry.js +6 -6
- package/dist/esm/vega-combo-box.entry.js +12 -12
- package/dist/esm/vega-counter-badge.entry.js +1 -1
- package/dist/esm/vega-date-picker_2.entry.js +23 -23
- package/dist/esm/vega-dialog_2.entry.js +16 -16
- package/dist/esm/vega-divider.entry.js +15 -15
- package/dist/esm/vega-dropdown_5.entry.js +23 -22
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-error.entry.js +1 -1
- package/dist/esm/vega-field-label.entry.js +1 -1
- package/dist/esm/vega-file-uploader.entry.js +9 -9
- package/dist/esm/vega-flag-icon.entry.js +16 -16
- package/dist/esm/vega-flex.entry.js +16 -16
- package/dist/esm/vega-font.entry.js +15 -15
- package/dist/esm/vega-form.entry.js +10 -10
- package/dist/esm/vega-grid.entry.js +15 -15
- package/dist/esm/vega-hint.entry.js +1 -1
- package/dist/esm/vega-icon.entry.js +15 -15
- package/dist/esm/vega-image-uploader.entry.js +17 -17
- package/dist/esm/vega-input-credit-card.entry.js +11 -11
- package/dist/esm/vega-input-numeric.entry.js +13 -13
- package/dist/esm/vega-input-phone-number.entry.js +16 -16
- package/dist/esm/vega-input-range.entry.js +10 -10
- package/dist/esm/vega-input-select.entry.js +18 -18
- package/dist/esm/vega-input.entry.js +10 -10
- package/dist/esm/{vega-internal-event-id-178b2743.js → vega-internal-event-id-f0ea2bab.js} +4 -1
- package/dist/esm/vega-item-toggle.entry.js +1 -1
- package/dist/esm/vega-left-nav_5.entry.js +18 -18
- package/dist/esm/vega-line-chart.entry.js +1 -1
- package/dist/esm/vega-loader-wrapper_2.entry.js +13 -13
- package/dist/esm/vega-page-notification_2.entry.js +1 -1
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +5 -5
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +5 -5
- package/dist/esm/vega-pagination.entry.js +15 -15
- package/dist/esm/vega-pie-chart.entry.js +1 -1
- package/dist/esm/vega-popover_2.entry.js +16 -16
- package/dist/esm/vega-progress-tracker.entry.js +1 -1
- package/dist/esm/vega-radio_2.entry.js +12 -12
- package/dist/esm/vega-rich-text-content.entry.js +22 -22
- package/dist/esm/vega-rich-text-editor_4.entry.js +86 -86
- package/dist/esm/vega-section-title.entry.js +1 -1
- package/dist/esm/vega-segment-control.entry.js +1 -1
- package/dist/esm/vega-selection-chip_2.entry.js +17 -17
- package/dist/esm/vega-selection-tile_2.entry.js +10 -10
- package/dist/esm/vega-sidenav_3.entry.js +16 -16
- package/dist/esm/vega-signature-capture.entry.js +19 -19
- package/dist/esm/{vega-skeleton-loader-controller-9d1ffa6c.js → vega-skeleton-loader-controller-3f6faa17.js} +1 -1
- package/dist/esm/vega-skeleton.entry.js +1 -1
- package/dist/esm/vega-slot-container.entry.js +1 -1
- package/dist/esm/vega-stepper.entry.js +9 -9
- package/dist/esm/vega-tab-group_2.entry.js +4 -4
- package/dist/esm/vega-table_8.entry.js +1475 -317
- package/dist/esm/vega-text.entry.js +1 -1
- package/dist/esm/vega-textarea.entry.js +9 -9
- package/dist/esm/vega-time-picker_2.entry.js +20 -20
- package/dist/esm/vega-toggle-switch.entry.js +6 -6
- package/dist/esm/vega-tooltip_2.entry.js +16 -16
- package/dist/esm/vega.js +14 -14
- package/dist/esm/{wait-for-vega-handler-e0a928cd.js → wait-for-vega-handler-c2c07ac3.js} +1 -1
- package/dist/types/components/vega-app-header-button/types.d.ts +2 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-view-with-time-renderer.d.ts +1 -0
- package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.d.ts +1 -0
- package/dist/types/components/vega-calendar/types.d.ts +2 -0
- package/dist/types/components/vega-calendar/vega-calendar.d.ts +14 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +13 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/code-block.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +8 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/nodes/code-block-node.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +3 -3
- package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +2 -2
- package/dist/types/components/vega-table/interface.d.ts +31 -0
- package/dist/types/components/vega-table/slimmers/controllers/dto/column-render-input-model.d.ts +138 -0
- package/dist/types/components/vega-table/slimmers/controllers/dto/column-structure-model.d.ts +140 -0
- package/dist/types/components/vega-table/slimmers/controllers/dto/test/column-render-input-model.test.d.ts +1 -0
- package/dist/types/components/vega-table/slimmers/controllers/dto/test/column-structure-model.test.d.ts +1 -0
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-column-structure-model-controller.d.ts +35 -0
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-render-input-controller.d.ts +103 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-body-renderer.d.ts +1 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-cell-renderer.d.ts +5 -2
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-col-group-renderer.d.ts +1 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-header-renderer.d.ts +4 -1
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.d.ts +18 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-renderer.d.ts +1 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-row-renderer.d.ts +1 -1
- package/dist/types/components/vega-table/vega-table-cell/slimmers/controllers/vega-table-cell-state-controller.d.ts +4 -0
- package/dist/types/components/vega-table/vega-table-cell/slimmers/controllers/vega-table-row-state-controller.d.ts +15 -0
- package/dist/types/components/vega-table/vega-table-cell/vega-table-cell.d.ts +10 -0
- package/dist/types/components/vega-table/vega-table-expand-row/slimmers/renderers/vega-table-expand-row-renderer.d.ts +1 -0
- package/dist/types/components/vega-table/vega-table-head-cell/slimmers/controllers/vega-table-head-cell-state-controller.d.ts +1 -0
- package/dist/types/components/vega-table/vega-table-head-cell/vega-table-head-cell.d.ts +8 -1
- package/dist/types/components/vega-table/vega-table-head-row/slimmers/renderers/vega-table-head-row-renderer.d.ts +1 -0
- package/dist/types/components/vega-table/vega-table-row/vega-table-row.d.ts +5 -0
- package/dist/types/components/vega-table/vega-table.d.ts +17 -1
- package/dist/types/components.d.ts +36 -2
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +3 -0
- package/dist/types/types/components.type.d.ts +3 -0
- package/dist/types/types/type-guard.d.ts +10 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-6681efd5.js → p-007bf7df.js} +1 -1
- package/dist/vega/{p-0e8324f2.entry.js → p-0496f1cb.entry.js} +1 -1
- package/dist/vega/{p-ecd9a973.entry.js → p-0604563a.entry.js} +1 -1
- package/dist/vega/{p-c212a1e3.entry.js → p-07927476.entry.js} +1 -1
- package/dist/vega/{p-f50cd6c3.entry.js → p-0b77c6c9.entry.js} +1 -1
- package/dist/vega/{p-7e70938a.entry.js → p-1792a352.entry.js} +1 -1
- package/dist/vega/{p-13ca73c7.entry.js → p-1c4d05de.entry.js} +1 -1
- package/dist/vega/p-1e3f4007.entry.js +1 -0
- package/dist/vega/{p-c48a8510.entry.js → p-21a7530c.entry.js} +1 -1
- package/dist/vega/{p-b89a9760.js → p-2458ad97.js} +1 -1
- package/dist/vega/{p-72e14f49.entry.js → p-27dca371.entry.js} +1 -1
- package/dist/vega/{p-f7062473.entry.js → p-2873b600.entry.js} +1 -1
- package/dist/vega/{p-79370ad4.entry.js → p-29f4cbed.entry.js} +1 -1
- package/dist/vega/{p-c5afd9aa.entry.js → p-2ebef70f.entry.js} +1 -1
- package/dist/vega/{p-578ac47f.entry.js → p-311f338d.entry.js} +1 -1
- package/dist/vega/{p-cb36ccf0.entry.js → p-34643550.entry.js} +1 -1
- package/dist/vega/{p-5016b57e.entry.js → p-34dc3f71.entry.js} +1 -1
- package/dist/vega/{p-a63e2fee.entry.js → p-39049341.entry.js} +1 -1
- package/dist/vega/{p-a2c4c241.entry.js → p-397b5d91.entry.js} +1 -1
- package/dist/vega/{p-61e1e356.entry.js → p-3a7e897b.entry.js} +1 -1
- package/dist/vega/{p-06cd4a19.entry.js → p-41465ad0.entry.js} +1 -1
- package/dist/vega/{p-002062c3.entry.js → p-44880bdf.entry.js} +1 -1
- package/dist/vega/{p-7a8b6f2f.entry.js → p-4674c318.entry.js} +1 -1
- package/dist/vega/{p-c8a87f06.entry.js → p-47e89c0e.entry.js} +1 -1
- package/dist/vega/p-49fd1009.js +1 -0
- package/dist/vega/{p-6bd7114d.entry.js → p-4c871d0f.entry.js} +1 -1
- package/dist/vega/{p-8e31e7ea.js → p-4f5eb8d5.js} +1 -1
- package/dist/vega/{p-72a4edf2.entry.js → p-500684e1.entry.js} +1 -1
- package/dist/vega/p-51297b96.js +1 -0
- package/dist/vega/{p-bbdc6170.entry.js → p-5130bb06.entry.js} +1 -1
- package/dist/vega/{p-84a31a31.entry.js → p-51a4dc20.entry.js} +1 -1
- package/dist/vega/p-53e9595f.js +1 -0
- package/dist/vega/{p-bba5b112.entry.js → p-59282fc8.entry.js} +1 -1
- package/dist/vega/{p-fa5eb496.js → p-5d676a94.js} +1 -1
- package/dist/vega/{p-46eb330f.entry.js → p-5dec9bd9.entry.js} +1 -1
- package/dist/vega/{p-b1f65b13.js → p-5e2c9e69.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-e860318d.entry.js → p-5f6b942c.entry.js} +1 -1
- package/dist/vega/{p-b6e0d996.entry.js → p-6131f229.entry.js} +1 -1
- package/dist/vega/p-65d8c2bc.js +1 -0
- package/dist/vega/{p-6419abd9.entry.js → p-66e9d31a.entry.js} +1 -1
- package/dist/vega/{p-9a0d3d2d.entry.js → p-6acf0a51.entry.js} +1 -1
- package/dist/vega/{p-7503fe08.entry.js → p-6dad2e5c.entry.js} +1 -1
- package/dist/vega/{p-da1d0c02.js → p-6e1b5949.js} +1 -1
- package/dist/vega/{p-4f5079bc.entry.js → p-6ec338b0.entry.js} +1 -1
- package/dist/vega/{p-246090cf.entry.js → p-75ff12da.entry.js} +1 -1
- package/dist/vega/{p-1b165fbb.entry.js → p-766ed063.entry.js} +1 -1
- package/dist/vega/{p-78937642.entry.js → p-76818196.entry.js} +1 -1
- package/dist/vega/p-79a0a06c.js +1 -0
- package/dist/vega/p-79c2282c.entry.js +1 -0
- package/dist/vega/p-7c0004dc.entry.js +1 -0
- package/dist/vega/{p-0ce88865.entry.js → p-7c348ac7.entry.js} +1 -1
- package/dist/vega/{p-fc790de5.entry.js → p-7d5ebd26.entry.js} +1 -1
- package/dist/vega/p-81ed90d5.js +1 -0
- package/dist/vega/p-8246f8ae.js +1 -0
- package/dist/vega/{p-aab6f547.entry.js → p-82b18195.entry.js} +1 -1
- package/dist/vega/{p-cc6410e6.js → p-832b59af.js} +1 -1
- package/dist/vega/{p-5c9efff8.entry.js → p-86a300e8.entry.js} +1 -1
- package/dist/vega/{p-43ba9a8a.entry.js → p-888dc143.entry.js} +1 -1
- package/dist/vega/{p-da95668c.entry.js → p-8ba8a7cc.entry.js} +1 -1
- package/dist/vega/{p-cc63e827.js → p-8c46e116.js} +1 -1
- package/dist/vega/{p-6ec0e3ce.entry.js → p-8e581755.entry.js} +1 -1
- package/dist/vega/{p-a46ac2eb.js → p-8e662f26.js} +1 -1
- package/dist/vega/{p-fac5990f.entry.js → p-8fb5bcb0.entry.js} +1 -1
- package/dist/vega/p-9481c073.entry.js +1 -0
- package/dist/vega/{p-ad858290.entry.js → p-99c4559e.entry.js} +1 -1
- package/dist/vega/{p-4ab3df00.js → p-9d6003ef.js} +1 -1
- package/dist/vega/{p-f3ec4ae6.entry.js → p-a1e50e6c.entry.js} +1 -1
- package/dist/vega/{p-f17c9093.entry.js → p-a2ef3429.entry.js} +1 -1
- package/dist/vega/p-a33c6652.entry.js +1 -0
- package/dist/vega/p-a4670e23.js +1 -0
- package/dist/vega/{p-8270bb8f.entry.js → p-a92a8172.entry.js} +1 -1
- package/dist/vega/{p-f9cf7e36.js → p-aed3320d.js} +1 -1
- package/dist/vega/{p-c7e2a155.entry.js → p-b449fe9a.entry.js} +1 -1
- package/dist/vega/{p-cce253c2.entry.js → p-b44ebc84.entry.js} +2 -2
- package/dist/vega/{p-5e530257.js → p-b8d7d4a9.js} +1 -1
- package/dist/vega/{p-d5f1794e.js → p-bcdb235d.js} +1 -1
- package/dist/vega/{p-36827489.entry.js → p-bd84b7b9.entry.js} +1 -1
- package/dist/vega/p-bdaf1143.entry.js +1 -0
- package/dist/vega/{p-ac3a2d9c.entry.js → p-c42ec0ac.entry.js} +1 -1
- package/dist/vega/{p-9dc9fcf3.js → p-cd3d468c.js} +1 -1
- package/dist/vega/{p-9c0cda62.js → p-ce14af16.js} +1 -1
- package/dist/vega/{p-1d41f551.entry.js → p-d5ab867e.entry.js} +1 -1
- package/dist/vega/{p-6b7dca3e.js → p-d789b291.js} +1 -1
- package/dist/vega/{p-9a9766cc.entry.js → p-d82ceacf.entry.js} +1 -1
- package/dist/vega/p-d849e0f5.js +1 -0
- package/dist/vega/{p-7a40e033.js → p-db8cdba6.js} +1 -1
- package/dist/vega/{p-586139ce.entry.js → p-dc16e6ba.entry.js} +1 -1
- package/dist/vega/{p-c9f544bd.entry.js → p-e277ea73.entry.js} +1 -1
- package/dist/vega/{p-201a78a2.entry.js → p-e28fcf04.entry.js} +1 -1
- package/dist/vega/{p-1e4b6f0a.entry.js → p-e32efc2e.entry.js} +1 -1
- package/dist/vega/{p-5a6b8846.entry.js → p-e5196440.entry.js} +1 -1
- package/dist/vega/{p-4d793cb0.js → p-e77a83e4.js} +1 -1
- package/dist/vega/{p-c990e249.js → p-e940bc37.js} +1 -1
- package/dist/vega/{p-138fcf6e.js → p-ecd032fc.js} +1 -1
- package/dist/vega/{p-c9b9322b.js → p-f08a4adf.js} +1 -1
- package/dist/vega/{p-151dec6a.entry.js → p-f3bd26a1.entry.js} +1 -1
- package/dist/vega/p-f3f7d059.entry.js +1 -0
- package/dist/vega/{p-56dc1345.entry.js → p-f4546425.entry.js} +1 -1
- package/dist/vega/{p-7704a608.entry.js → p-f4a7acff.entry.js} +1 -1
- package/dist/vega/{p-cae183fd.entry.js → p-f79c82c7.entry.js} +1 -1
- package/dist/vega/{p-4df90a1b.entry.js → p-f8e0e4f0.entry.js} +1 -1
- package/dist/vega/p-f8f8e7d2.entry.js +1 -0
- package/dist/vega/{p-73821eba.entry.js → p-f940b7f7.entry.js} +1 -1
- package/dist/vega/{p-327be043.js → p-fb8c99c5.js} +1 -1
- package/dist/vega/p-fcb04960.js +1 -0
- package/dist/vega/{p-822cd8e5.js → p-fd2f699b.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +6 -2
- package/dist/vega/p-063d0bee.entry.js +0 -1
- package/dist/vega/p-2205ee4c.js +0 -1
- package/dist/vega/p-23064067.entry.js +0 -1
- package/dist/vega/p-37b05e0b.js +0 -1
- package/dist/vega/p-3eb2d433.js +0 -1
- package/dist/vega/p-3fa7d356.js +0 -1
- package/dist/vega/p-425ba7d6.js +0 -1
- package/dist/vega/p-4387d550.js +0 -1
- package/dist/vega/p-547692bf.entry.js +0 -1
- package/dist/vega/p-57005931.entry.js +0 -1
- package/dist/vega/p-5e8e4aba.js +0 -1
- package/dist/vega/p-7cb11f3f.entry.js +0 -1
- package/dist/vega/p-c10b4f47.entry.js +0 -1
- package/dist/vega/p-ca91268b.entry.js +0 -1
- package/dist/vega/p-d64b20c2.js +0 -1
- package/dist/vega/p-ec3495de.entry.js +0 -1
- package/dist/vega/p-f4a13f3f.js +0 -1
- package/dist/vega/p-fecb4044.js +0 -1
|
@@ -34,7 +34,7 @@ export class ImageInsertLineBreakWithBlocksStrategy extends ActionHandleStrategy
|
|
|
34
34
|
afterNodes.push(new RTETextNode(generateUUID(), '\n', newParagraph));
|
|
35
35
|
}
|
|
36
36
|
newParagraph.apply(new AppendChildNodesAction(afterNodes));
|
|
37
|
-
return newParagraph['
|
|
37
|
+
return newParagraph['children'][0];
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Concat the child nodes of multiple RTEBlocks if both are not images.
|
|
@@ -46,7 +46,7 @@ export class ImageInsertLineBreakWithBlocksStrategy extends ActionHandleStrategy
|
|
|
46
46
|
const nodes = [];
|
|
47
47
|
blocks.map((block) => {
|
|
48
48
|
if (block.type !== 'image') {
|
|
49
|
-
nodes.push(...block
|
|
49
|
+
nodes.push(...block.children);
|
|
50
50
|
block.parent.apply(new RemoveChildAction(block));
|
|
51
51
|
}
|
|
52
52
|
});
|
|
@@ -13,7 +13,7 @@ export class ListItemDeleteTextContentStrategy extends BlockDeleteTextContentStr
|
|
|
13
13
|
handleAction(action, target) {
|
|
14
14
|
const listBlock = target.parent;
|
|
15
15
|
this.deleteNodeContent(action, target);
|
|
16
|
-
if (listBlock.
|
|
16
|
+
if (listBlock.children.length === 0) {
|
|
17
17
|
listBlock.parent.apply(new RemoveChildAction(listBlock));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -52,8 +52,8 @@ export class ListItemInsertNewParagraphStrategy extends ActionHandleStrategy {
|
|
|
52
52
|
* @returns {RTEBlock} Returns a `RTEBlock`.
|
|
53
53
|
*/
|
|
54
54
|
breakListItemAtEnd(newListItem, target) {
|
|
55
|
-
const lastItem = target.parent.
|
|
56
|
-
const currentItemIsEmpty = target.
|
|
55
|
+
const lastItem = target.parent.children[target.parent.children.length - 1];
|
|
56
|
+
const currentItemIsEmpty = target.children.length === 1 && target.children[0].isEmpty();
|
|
57
57
|
if (target === lastItem && currentItemIsEmpty) {
|
|
58
58
|
const parentParent = target.parent.parent;
|
|
59
59
|
if (parentParent['type'] !== 'list-item') {
|
|
@@ -62,7 +62,7 @@ export class ListItemInsertNewParagraphStrategy extends ActionHandleStrategy {
|
|
|
62
62
|
type: 'paragraph',
|
|
63
63
|
nodes: [],
|
|
64
64
|
});
|
|
65
|
-
newParagraph.apply(new AppendChildNodesAction(newListItem.
|
|
65
|
+
newParagraph.apply(new AppendChildNodesAction(newListItem.children));
|
|
66
66
|
parentParent.apply(new InsertBlocksAfterAction(target.parent, newParagraph));
|
|
67
67
|
target.parent.apply(new RemoveChildAction(target));
|
|
68
68
|
return newParagraph;
|
|
@@ -10,12 +10,12 @@ export class ListItemRemoveNestListStrategy extends ActionHandleStrategy {
|
|
|
10
10
|
* @param {RTEListItemBlock} target - The list item block.
|
|
11
11
|
*/
|
|
12
12
|
handleAction(action, target) {
|
|
13
|
-
if (target.
|
|
14
|
-
if (target.
|
|
15
|
-
target.
|
|
13
|
+
if (target.nestList) {
|
|
14
|
+
if (target.nestList.length > 1) {
|
|
15
|
+
target.nestList = target.nestList.filter((child) => child !== action.nestListBlockToBeRemoved);
|
|
16
16
|
}
|
|
17
17
|
else {
|
|
18
|
-
target.
|
|
18
|
+
target.nestList = undefined;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -11,8 +11,8 @@ export class ListItemRemoveNodeStrategy extends ActionHandleStrategy {
|
|
|
11
11
|
* @param {RTEListItemBlock} target - The list item block.
|
|
12
12
|
*/
|
|
13
13
|
handleAction(action, target) {
|
|
14
|
-
target.
|
|
15
|
-
if (target.
|
|
14
|
+
target.children = target.children.filter((node) => node !== action.entityToBeRemoved);
|
|
15
|
+
if (target.children.length === 0 && (!target.nestList || !target.nestList.length)) {
|
|
16
16
|
target.parent.apply(new RemoveChildAction(target));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -14,7 +14,7 @@ export class ListRemoveListItemStrategy extends BlockRemoveChildBlockStrategy {
|
|
|
14
14
|
handleAction(action, target) {
|
|
15
15
|
super.handleAction(action, target);
|
|
16
16
|
const parent = target.parent;
|
|
17
|
-
if (target.
|
|
17
|
+
if (target.children.length === 0 && parent) {
|
|
18
18
|
// The parent is a list item mean the current block is a nest list, so we need to use RemoveNestListAction to remove the item
|
|
19
19
|
if (parent['type'] === 'list-item') {
|
|
20
20
|
parent.apply(new RemoveNestListAction(target));
|
|
@@ -16,10 +16,10 @@ export class ListTransformToListStrategy extends ActionHandleStrategy {
|
|
|
16
16
|
const isSameList = selectedBlocks.every((block) => block.parent === target);
|
|
17
17
|
if (isSameList) {
|
|
18
18
|
// Select one or more list items belonging to the same list, and all items in this list should be updated
|
|
19
|
-
bulletList.apply(new AppendChildNodesAction(target.
|
|
19
|
+
bulletList.apply(new AppendChildNodesAction(target.children));
|
|
20
20
|
target.parent.apply(new InsertBlocksAfterAction(target, bulletList));
|
|
21
21
|
target.parent.apply(new RemoveChildAction(target));
|
|
22
|
-
selectedBlocks.forEach((block) => block.
|
|
22
|
+
selectedBlocks.forEach((block) => block.children.map((node) => node.apply(new SyncUpSelectionAction())));
|
|
23
23
|
}
|
|
24
24
|
else {
|
|
25
25
|
const listItems = action.selectedBlocks.map((block) => target.parent.toListItem(block));
|
|
@@ -28,7 +28,7 @@ export class ListTransformToListStrategy extends ActionHandleStrategy {
|
|
|
28
28
|
action.selectedBlocks.forEach((block) => {
|
|
29
29
|
block.parent.apply(new RemoveChildAction(block));
|
|
30
30
|
});
|
|
31
|
-
if (target.
|
|
31
|
+
if (target.children.length === 0) {
|
|
32
32
|
target.parent.apply(new RemoveChildAction(target));
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -18,10 +18,10 @@ export class ListTransformToParagraphStrategy extends ActionHandleStrategy {
|
|
|
18
18
|
let isSelectedLastBlock = false;
|
|
19
19
|
const selectedBlocks = action.selectedBlocks;
|
|
20
20
|
const currentParagraph = selectedBlocks.map((block) => {
|
|
21
|
-
block.
|
|
22
|
-
if (block === target.
|
|
21
|
+
block.children.map((node) => node.apply(new SyncUpSelectionAction()));
|
|
22
|
+
if (block === target.children[0])
|
|
23
23
|
isSelectedFirstBlock = true;
|
|
24
|
-
if (block === target.
|
|
24
|
+
if (block === target.children[target.children.length - 1])
|
|
25
25
|
isSelectedLastBlock = true;
|
|
26
26
|
return this.toParagraph(block);
|
|
27
27
|
});
|
|
@@ -32,19 +32,19 @@ export class ListTransformToParagraphStrategy extends ActionHandleStrategy {
|
|
|
32
32
|
target.parent.apply(new InsertBlocksAfterAction(target, ...currentParagraph));
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
35
|
-
const startIndex = target.
|
|
36
|
-
const lastIndex = target.
|
|
35
|
+
const startIndex = target.children.indexOf(selectedBlocks[0]);
|
|
36
|
+
const lastIndex = target.children.indexOf(selectedBlocks[selectedBlocks.length - 1]);
|
|
37
37
|
const firstBulletList = target.parent.createList(target.type);
|
|
38
|
-
firstBulletList.apply(new AppendChildNodesAction(target.
|
|
38
|
+
firstBulletList.apply(new AppendChildNodesAction(target.children.slice(0, startIndex)));
|
|
39
39
|
const lastBulletList = target.parent.createList(target.type);
|
|
40
|
-
lastBulletList.apply(new AppendChildNodesAction(target.
|
|
40
|
+
lastBulletList.apply(new AppendChildNodesAction(target.children.slice(lastIndex + 1)));
|
|
41
41
|
target.parent.apply(new InsertBlocksBeforeAction(target, firstBulletList, ...currentParagraph, lastBulletList));
|
|
42
42
|
target.parent.apply(new RemoveChildAction(target));
|
|
43
43
|
}
|
|
44
44
|
selectedBlocks.map((block) => {
|
|
45
45
|
target.apply(new RemoveChildAction(block));
|
|
46
46
|
});
|
|
47
|
-
if (target.
|
|
47
|
+
if (target.children.length === 0) {
|
|
48
48
|
target.parent.apply(new RemoveChildAction(target));
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -56,7 +56,7 @@ export class ListTransformToParagraphStrategy extends ActionHandleStrategy {
|
|
|
56
56
|
*/
|
|
57
57
|
toParagraph(block) {
|
|
58
58
|
const textBlock = new RTETextBlock(generateUUID(), 'paragraph');
|
|
59
|
-
textBlock.apply(new AppendChildNodesAction(block['
|
|
59
|
+
textBlock.apply(new AppendChildNodesAction(block['children']));
|
|
60
60
|
textBlock['annotationMap'] = block['annotationMap'];
|
|
61
61
|
return textBlock;
|
|
62
62
|
}
|
|
@@ -19,7 +19,7 @@ export class SwitchOutFromCodeBlockStrategy extends ActionHandleStrategy {
|
|
|
19
19
|
const textArray = content.split('\n');
|
|
20
20
|
const updateAction = new UpdateCodeBlockAction(textArray.slice(0, textArray.length - 2).join('\n'), language);
|
|
21
21
|
updateAction.isFlushable = false;
|
|
22
|
-
target.
|
|
22
|
+
target.children[0].apply(updateAction);
|
|
23
23
|
const textBlock = RTETextBlock.from({
|
|
24
24
|
id: generateUUID(),
|
|
25
25
|
type: 'paragraph',
|
|
@@ -31,7 +31,7 @@ export class SwitchOutFromCodeBlockStrategy extends ActionHandleStrategy {
|
|
|
31
31
|
if (currentNodeDom) {
|
|
32
32
|
const nodeSubject = domNodeSubjectFactory.getSubjectFromParentNodeByEventId(currentNodeDom, VegaInternalRichTextEditorSelectionRangeChange);
|
|
33
33
|
if (nodeSubject) {
|
|
34
|
-
changeManager.notify(nodeSubject, { node: textBlock.
|
|
34
|
+
changeManager.notify(nodeSubject, { node: textBlock.children[0] });
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -75,6 +75,14 @@ export class RTEBlock {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Check if the block is a list item block
|
|
80
|
+
*
|
|
81
|
+
* @returns {boolean} True if the block is a list item block, false otherwise.
|
|
82
|
+
*/
|
|
83
|
+
isListItemBlock() {
|
|
84
|
+
return this.type === 'list-item';
|
|
85
|
+
}
|
|
78
86
|
/**
|
|
79
87
|
* Apply action to block
|
|
80
88
|
*
|
|
@@ -18,7 +18,7 @@ export class RTECodeBlock extends RTEBlock {
|
|
|
18
18
|
constructor(id, content, language) {
|
|
19
19
|
super(id);
|
|
20
20
|
this.type = 'code-block';
|
|
21
|
-
this.
|
|
21
|
+
this.children = [new RTECodeBlockNode(`${id}-1`, content, language, this)];
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Converts a VegaRTECodeBlock into an RTECodeBlock.
|
|
@@ -33,7 +33,7 @@ export class RTECodeBlock extends RTEBlock {
|
|
|
33
33
|
* @inheritDoc
|
|
34
34
|
*/
|
|
35
35
|
toJSON() {
|
|
36
|
-
const { language, text } = this.
|
|
36
|
+
const { language, text } = this.children[0];
|
|
37
37
|
return {
|
|
38
38
|
id: this.id,
|
|
39
39
|
type: 'code-block',
|
|
@@ -72,13 +72,13 @@ export class RTECodeBlock extends RTEBlock {
|
|
|
72
72
|
* @inheritDoc
|
|
73
73
|
*/
|
|
74
74
|
isNotEmpty() {
|
|
75
|
-
return !!this.
|
|
75
|
+
return !!this.children.length;
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* @inheritDoc
|
|
79
79
|
*/
|
|
80
80
|
getLastNode() {
|
|
81
|
-
return this.
|
|
81
|
+
return this.children[0];
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* The code block is selected or not.
|
|
@@ -86,7 +86,7 @@ export class RTECodeBlock extends RTEBlock {
|
|
|
86
86
|
* @returns {boolean} - The boolean result.
|
|
87
87
|
*/
|
|
88
88
|
isSelected() {
|
|
89
|
-
return this.
|
|
89
|
+
return this.children[0].annotationMap.has(InternalAnnotationTypeEnum.SELECTION_RANGE);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
(() => {
|
|
@@ -23,7 +23,7 @@ export class RTEImageBlock extends RTEBlock {
|
|
|
23
23
|
constructor(id) {
|
|
24
24
|
super(id);
|
|
25
25
|
this.type = 'image';
|
|
26
|
-
this.
|
|
26
|
+
this.children = [];
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Converts a VegaRTEImageBlock object into an RTEImageBlock object by mapping nodes and creating annotations.
|
|
@@ -34,7 +34,7 @@ export class RTEImageBlock extends RTEBlock {
|
|
|
34
34
|
static from(block) {
|
|
35
35
|
const imageBlock = new RTEImageBlock(block.id);
|
|
36
36
|
const { annotations } = block;
|
|
37
|
-
imageBlock.
|
|
37
|
+
imageBlock.children = block.nodes.map((image) => RTEImageNode.from(image, imageBlock));
|
|
38
38
|
if (annotations) {
|
|
39
39
|
Object.entries(annotations).forEach(([type, value]) => {
|
|
40
40
|
const item = this.createAnnotationEntity(type, value);
|
|
@@ -49,19 +49,19 @@ export class RTEImageBlock extends RTEBlock {
|
|
|
49
49
|
* @inheritDoc
|
|
50
50
|
*/
|
|
51
51
|
toJSON() {
|
|
52
|
-
return Object.assign(Object.assign({}, super.toJSON()), { type: 'image', nodes: this.
|
|
52
|
+
return Object.assign(Object.assign({}, super.toJSON()), { type: 'image', nodes: this.children.map((node) => node.toJSON()) });
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* @inheritDoc
|
|
56
56
|
*/
|
|
57
57
|
isNotEmpty() {
|
|
58
|
-
return this.
|
|
58
|
+
return this.children.length > 0 && this.children.some((node) => node.url.length > 0);
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* @inheritDoc
|
|
62
62
|
*/
|
|
63
63
|
getLastNode() {
|
|
64
|
-
return this.
|
|
64
|
+
return this.children[this.children.length - 1];
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* Create a new image block.
|
|
@@ -76,9 +76,9 @@ export class RTEImageBlock extends RTEBlock {
|
|
|
76
76
|
*/
|
|
77
77
|
clone() {
|
|
78
78
|
const clonedBlock = new RTEImageBlock(this.id);
|
|
79
|
-
clonedBlock.
|
|
79
|
+
clonedBlock.children = this.children.map((node) => {
|
|
80
80
|
const clonedNode = node.clone();
|
|
81
|
-
clonedNode.
|
|
81
|
+
clonedNode.parent = clonedBlock;
|
|
82
82
|
return clonedNode;
|
|
83
83
|
});
|
|
84
84
|
clonedBlock.annotationMap = super.cloneAnnotations();
|
|
@@ -16,7 +16,7 @@ export class RTEListBlock extends RTEBlock {
|
|
|
16
16
|
constructor(id, type) {
|
|
17
17
|
super(id);
|
|
18
18
|
this.type = 'bullet-list';
|
|
19
|
-
this.
|
|
19
|
+
this.children = [];
|
|
20
20
|
this.type = type;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -27,7 +27,7 @@ export class RTEListBlock extends RTEBlock {
|
|
|
27
27
|
*/
|
|
28
28
|
static from(block) {
|
|
29
29
|
const listBlock = new RTEListBlock(block.id, block.type);
|
|
30
|
-
listBlock.
|
|
30
|
+
listBlock.children = block.blocks.map((item) => {
|
|
31
31
|
const listItemBlock = RTEListItemBlock.from(item);
|
|
32
32
|
listItemBlock.parent = listBlock;
|
|
33
33
|
return listItemBlock;
|
|
@@ -38,26 +38,26 @@ export class RTEListBlock extends RTEBlock {
|
|
|
38
38
|
* @inheritDoc
|
|
39
39
|
*/
|
|
40
40
|
toJSON() {
|
|
41
|
-
return Object.assign(Object.assign({}, super.toJSON()), { id: this.id, type: this.type, blocks: this.
|
|
41
|
+
return Object.assign(Object.assign({}, super.toJSON()), { id: this.id, type: this.type, blocks: this.children.map((block) => block.toJSON()) });
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* @inheritDoc
|
|
45
45
|
*/
|
|
46
46
|
isNotEmpty() {
|
|
47
|
-
return this.
|
|
47
|
+
return this.children.length > 0;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* @inheritDoc
|
|
51
51
|
*/
|
|
52
52
|
getLastNode() {
|
|
53
|
-
return this.
|
|
53
|
+
return this.children[this.children.length - 1].getLastNode();
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* @inheritDoc
|
|
57
57
|
*/
|
|
58
58
|
clone() {
|
|
59
59
|
const clonedListBlock = new RTEListBlock(this.id, this.type);
|
|
60
|
-
clonedListBlock.
|
|
60
|
+
clonedListBlock.children = this.children.map((item) => {
|
|
61
61
|
const clonedListItemBlock = item.clone();
|
|
62
62
|
clonedListItemBlock.parent = clonedListBlock;
|
|
63
63
|
return clonedListItemBlock;
|
|
@@ -23,10 +23,16 @@ import { BlockInsertNodesBeforeNodeStrategy } from '../action-handle-strategies/
|
|
|
23
23
|
* List item block
|
|
24
24
|
*/
|
|
25
25
|
export class RTEListItemBlock extends RTETextBlock {
|
|
26
|
-
constructor(id,
|
|
26
|
+
constructor(id, nestList) {
|
|
27
27
|
super(id, 'list-item');
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
/**
|
|
29
|
+
* TODO: Refactor the list item properties children and nestList, merge two properties together.
|
|
30
|
+
*
|
|
31
|
+
* 1. Update the type of `children` to include `RTEListBlock` as a possible type.
|
|
32
|
+
* 2. The list block children should text block array and nest list block array, The text block should wrap a `li` tag when rendering.
|
|
33
|
+
*/
|
|
34
|
+
this.nestList = [];
|
|
35
|
+
this.nestList = nestList;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Converts a VegaRTEListItemBlock object to an RTEListItemBlock
|
|
@@ -36,9 +42,9 @@ export class RTEListItemBlock extends RTETextBlock {
|
|
|
36
42
|
*/
|
|
37
43
|
static from(block) {
|
|
38
44
|
const listItemBlock = new RTEListItemBlock(block.id);
|
|
39
|
-
listItemBlock.
|
|
45
|
+
listItemBlock.children = block.nodes.map((richText) => RTETextNode.from(richText, listItemBlock));
|
|
40
46
|
if (block.children) {
|
|
41
|
-
listItemBlock.
|
|
47
|
+
listItemBlock.nestList = block.children.map((child) => {
|
|
42
48
|
const listBlock = RTEListBlock.from(child);
|
|
43
49
|
listBlock.parent = listItemBlock;
|
|
44
50
|
return listBlock;
|
|
@@ -60,14 +66,14 @@ export class RTEListItemBlock extends RTETextBlock {
|
|
|
60
66
|
*/
|
|
61
67
|
toJSON() {
|
|
62
68
|
var _a;
|
|
63
|
-
return Object.assign(Object.assign({}, super.toJSON()), { type: 'list-item', children: (_a = this.
|
|
69
|
+
return Object.assign(Object.assign({}, super.toJSON()), { type: 'list-item', children: (_a = this.nestList) === null || _a === void 0 ? void 0 : _a.map((block) => block.toJSON()) });
|
|
64
70
|
}
|
|
65
71
|
/**
|
|
66
72
|
* @inheritDoc
|
|
67
73
|
*/
|
|
68
74
|
cloneWithNodes(nodes) {
|
|
69
75
|
const block = new RTEListItemBlock(generateUUID());
|
|
70
|
-
block.
|
|
76
|
+
block.children = [];
|
|
71
77
|
block.apply(new AppendChildNodesAction(nodes));
|
|
72
78
|
return block;
|
|
73
79
|
}
|
|
@@ -75,8 +81,8 @@ export class RTEListItemBlock extends RTETextBlock {
|
|
|
75
81
|
* @inheritDoc
|
|
76
82
|
*/
|
|
77
83
|
getLastNode() {
|
|
78
|
-
if (this.
|
|
79
|
-
const childListBlock = this.
|
|
84
|
+
if (this.nestList && this.nestList.length > 0) {
|
|
85
|
+
const childListBlock = this.nestList[this.nestList.length - 1];
|
|
80
86
|
return childListBlock.getLastNode();
|
|
81
87
|
}
|
|
82
88
|
return super.getLastNode();
|
|
@@ -95,13 +101,13 @@ export class RTEListItemBlock extends RTETextBlock {
|
|
|
95
101
|
clone() {
|
|
96
102
|
var _a;
|
|
97
103
|
const block = new RTEListItemBlock(this.id);
|
|
98
|
-
block.
|
|
104
|
+
block.children = this.children.map((node) => {
|
|
99
105
|
const clonedNode = node.clone();
|
|
100
|
-
clonedNode.
|
|
106
|
+
clonedNode.parent = block;
|
|
101
107
|
return clonedNode;
|
|
102
108
|
});
|
|
103
109
|
block.annotationMap = super.cloneAnnotations();
|
|
104
|
-
block.
|
|
110
|
+
block.nestList = (_a = this.nestList) === null || _a === void 0 ? void 0 : _a.map((child) => {
|
|
105
111
|
const clonedChild = child.clone();
|
|
106
112
|
clonedChild.parent = block;
|
|
107
113
|
return clonedChild;
|
|
@@ -30,7 +30,7 @@ import { BlockTransformToListStrategy } from '../action-handle-strategies/modify
|
|
|
30
30
|
export class RTETextBlock extends RTEBlock {
|
|
31
31
|
constructor(id, type) {
|
|
32
32
|
super(id);
|
|
33
|
-
this.
|
|
33
|
+
this.children = [];
|
|
34
34
|
this.type = type;
|
|
35
35
|
if (RTETextBlock.isAcceptableTextStyle(type)) {
|
|
36
36
|
this.annotationMap = new Map([TextStyleAnnotation.from(type)]);
|
|
@@ -48,7 +48,7 @@ export class RTETextBlock extends RTEBlock {
|
|
|
48
48
|
static from(block) {
|
|
49
49
|
const textBlock = new RTETextBlock(block.id, block.type);
|
|
50
50
|
const { annotations } = block;
|
|
51
|
-
textBlock.
|
|
51
|
+
textBlock.children = block.nodes.map((richText) => RTETextNode.from(richText, textBlock));
|
|
52
52
|
if (annotations) {
|
|
53
53
|
Object.entries(annotations).forEach(([type, value]) => {
|
|
54
54
|
const item = this.createAnnotationEntity(type, value);
|
|
@@ -104,7 +104,7 @@ export class RTETextBlock extends RTEBlock {
|
|
|
104
104
|
* @param {AnnotationAction} action - AnnotationAction
|
|
105
105
|
*/
|
|
106
106
|
mergeNodes(action) {
|
|
107
|
-
this.
|
|
107
|
+
this.children = this.children.reduce((prev, cur) => {
|
|
108
108
|
const lastNode = prev.at(-1);
|
|
109
109
|
if (action instanceof LinkAnnotationAction && action.needMergeNode) {
|
|
110
110
|
const lastNodeLinkAnnotation = lastNode === null || lastNode === void 0 ? void 0 : lastNode.getAnnotationByType(NodeAnnotationTypeEnum.LINK);
|
|
@@ -123,7 +123,7 @@ export class RTETextBlock extends RTEBlock {
|
|
|
123
123
|
* @inheritDoc
|
|
124
124
|
*/
|
|
125
125
|
toJSON() {
|
|
126
|
-
return Object.assign(Object.assign({}, super.toJSON()), { type: this.type, nodes: this.
|
|
126
|
+
return Object.assign(Object.assign({}, super.toJSON()), { type: this.type, nodes: this.children.map((node) => node.toJSON()) });
|
|
127
127
|
}
|
|
128
128
|
/**
|
|
129
129
|
* Clone the nodes to a new block
|
|
@@ -133,7 +133,7 @@ export class RTETextBlock extends RTEBlock {
|
|
|
133
133
|
*/
|
|
134
134
|
cloneWithNodes(nodes) {
|
|
135
135
|
const block = new RTETextBlock(generateUUID(), this.type);
|
|
136
|
-
block.
|
|
136
|
+
block.children = [];
|
|
137
137
|
block.apply(new AppendChildNodesAction(nodes));
|
|
138
138
|
return block;
|
|
139
139
|
}
|
|
@@ -142,9 +142,9 @@ export class RTETextBlock extends RTEBlock {
|
|
|
142
142
|
*/
|
|
143
143
|
clone() {
|
|
144
144
|
const clonedBlock = new RTETextBlock(this.id, this.type);
|
|
145
|
-
clonedBlock.
|
|
145
|
+
clonedBlock.children = this.children.map((node) => {
|
|
146
146
|
const clonedNode = node.clone();
|
|
147
|
-
clonedNode.
|
|
147
|
+
clonedNode.parent = clonedBlock;
|
|
148
148
|
return clonedNode;
|
|
149
149
|
});
|
|
150
150
|
clonedBlock.annotationMap = super.cloneAnnotations();
|
|
@@ -155,13 +155,13 @@ export class RTETextBlock extends RTEBlock {
|
|
|
155
155
|
* @inheritDoc
|
|
156
156
|
*/
|
|
157
157
|
isNotEmpty() {
|
|
158
|
-
return this.
|
|
158
|
+
return this.children.length > 0 && this.children.some((node) => !node.isEmpty());
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
161
161
|
* @inheritDoc
|
|
162
162
|
*/
|
|
163
163
|
getLastNode() {
|
|
164
|
-
return this.
|
|
164
|
+
return this.children[this.children.length - 1];
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* Create new empty paragraph.
|
|
@@ -21,7 +21,7 @@ export class VegaRTEContent {
|
|
|
21
21
|
blocks.forEach((block) => {
|
|
22
22
|
block.parent = this;
|
|
23
23
|
});
|
|
24
|
-
this.
|
|
24
|
+
this.children = blocks;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Converts a JSON array of blocks to a class array of RTEContentBlock.
|
|
@@ -82,8 +82,8 @@ export class VegaRTEContent {
|
|
|
82
82
|
*/
|
|
83
83
|
clone(deep = false) {
|
|
84
84
|
return deep
|
|
85
|
-
? new VegaRTEContent(this.
|
|
86
|
-
: new VegaRTEContent([...this.
|
|
85
|
+
? new VegaRTEContent(this.children.map((block) => block.clone()))
|
|
86
|
+
: new VegaRTEContent([...this.children]);
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
89
|
* Converts the content state to a JSON array of blocks.
|
|
@@ -91,7 +91,7 @@ export class VegaRTEContent {
|
|
|
91
91
|
* @returns {VegaRTEContentBlock[]} The JSON array of blocks.
|
|
92
92
|
*/
|
|
93
93
|
toJSON() {
|
|
94
|
-
return this.
|
|
94
|
+
return this.children.map((block) => block.toJSON());
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
97
|
* Internal method to add the block item, remove the block item
|
|
@@ -108,9 +108,9 @@ export class VegaRTEContent {
|
|
|
108
108
|
* @returns {RTEListItemBlock} list item block dto.
|
|
109
109
|
*/
|
|
110
110
|
toListItem(block) {
|
|
111
|
-
block.
|
|
111
|
+
block.children.map((node) => node.apply(new SyncUpSelectionAction()));
|
|
112
112
|
const listItemBlock = new RTEListItemBlock(generateUUID());
|
|
113
|
-
listItemBlock.apply(new AppendChildNodesAction(block['
|
|
113
|
+
listItemBlock.apply(new AppendChildNodesAction(block['children']));
|
|
114
114
|
listItemBlock['annotationMap'] = block['annotationMap'];
|
|
115
115
|
return listItemBlock;
|
|
116
116
|
}
|
|
@@ -130,7 +130,7 @@ export class VegaRTEContent {
|
|
|
130
130
|
* @returns {Nullable<RTENode>} The found node or null if not found.
|
|
131
131
|
*/
|
|
132
132
|
findNodeById(id) {
|
|
133
|
-
return this.findNodeInBlocksById(id, this.
|
|
133
|
+
return this.findNodeInBlocksById(id, this.children);
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
136
136
|
* Recursively searches for a node by its ID in the given blocks.
|
|
@@ -141,23 +141,23 @@ export class VegaRTEContent {
|
|
|
141
141
|
*/
|
|
142
142
|
findNodeInBlocksById(id, blocks) {
|
|
143
143
|
for (const block of blocks) {
|
|
144
|
-
if ('
|
|
145
|
-
for (const node of block.
|
|
144
|
+
if ('children' in block) {
|
|
145
|
+
for (const node of block.children) {
|
|
146
146
|
if (node.id === id) {
|
|
147
147
|
return node;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
if (block instanceof RTEListItemBlock && block.
|
|
152
|
-
for (const cBlock of block.
|
|
153
|
-
const foundNode = this.findNodeInBlocksById(id, cBlock.
|
|
151
|
+
if (block instanceof RTEListItemBlock && block.nestList) {
|
|
152
|
+
for (const cBlock of block.nestList) {
|
|
153
|
+
const foundNode = this.findNodeInBlocksById(id, cBlock.children);
|
|
154
154
|
if (foundNode) {
|
|
155
155
|
return foundNode;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
if (block instanceof RTEListBlock && block.
|
|
160
|
-
const foundNode = this.findNodeInBlocksById(id, block.
|
|
159
|
+
if (block instanceof RTEListBlock && block.children) {
|
|
160
|
+
const foundNode = this.findNodeInBlocksById(id, block.children);
|
|
161
161
|
if (foundNode) {
|
|
162
162
|
return foundNode;
|
|
163
163
|
}
|
|
@@ -14,7 +14,7 @@ export class RTECodeBlockNode extends RTENode {
|
|
|
14
14
|
this.text = '';
|
|
15
15
|
this.annotationMap = new Map();
|
|
16
16
|
this.text = content;
|
|
17
|
-
this.
|
|
17
|
+
this.parent = parentBlock;
|
|
18
18
|
this.language = language;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
@@ -29,7 +29,7 @@ export class RTECodeBlockNode extends RTENode {
|
|
|
29
29
|
* @inheritDoc
|
|
30
30
|
*/
|
|
31
31
|
clone() {
|
|
32
|
-
return new RTECodeBlockNode(this.id, this.text, this.language, this.
|
|
32
|
+
return new RTECodeBlockNode(this.id, this.text, this.language, this.parent);
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* @inheritDoc
|
|
@@ -15,7 +15,7 @@ export class RTEImageNode extends RTENode {
|
|
|
15
15
|
super(id, annotationMap);
|
|
16
16
|
this.type = NodeTypeEnum.IMAGE;
|
|
17
17
|
this.url = url;
|
|
18
|
-
this.
|
|
18
|
+
this.parent = parentBlock;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Converts a VegaRTEImageNode into an RTEImageNode by mapping nodes and creating annotations.
|
|
@@ -56,7 +56,7 @@ export class RTEImageNode extends RTENode {
|
|
|
56
56
|
* @inheritDoc
|
|
57
57
|
*/
|
|
58
58
|
clone() {
|
|
59
|
-
return new RTEImageNode(this.id, this.url, this.
|
|
59
|
+
return new RTEImageNode(this.id, this.url, this.parent, super.cloneAnnotations());
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* @inheritDoc
|
|
@@ -33,7 +33,7 @@ export class RTETextNode extends RTENode {
|
|
|
33
33
|
constructor(id, text, parentBlock, annotationMap) {
|
|
34
34
|
super(id, annotationMap);
|
|
35
35
|
this.type = NodeTypeEnum.TEXT;
|
|
36
|
-
this.
|
|
36
|
+
this.parent = parentBlock;
|
|
37
37
|
this.text = text;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
@@ -102,13 +102,13 @@ export class RTETextNode extends RTENode {
|
|
|
102
102
|
* @returns {RTETextNode} An new RTETextNode
|
|
103
103
|
*/
|
|
104
104
|
cloneWithText(text) {
|
|
105
|
-
return new RTETextNode(generateUUID(), text, this.
|
|
105
|
+
return new RTETextNode(generateUUID(), text, this.parent, super.cloneAnnotations());
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
108
|
* @inheritDoc
|
|
109
109
|
*/
|
|
110
110
|
clone() {
|
|
111
|
-
return new RTETextNode(this.id, this.text, this.
|
|
111
|
+
return new RTETextNode(this.id, this.text, this.parent, super.cloneAnnotations());
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
114
|
* Checks if a node is empty
|
|
@@ -135,7 +135,7 @@ export class RTETextNode extends RTENode {
|
|
|
135
135
|
else {
|
|
136
136
|
this.applyActionToNode(this, action);
|
|
137
137
|
}
|
|
138
|
-
this.
|
|
138
|
+
this.parent.mergeNodes(action);
|
|
139
139
|
}
|
|
140
140
|
/**
|
|
141
141
|
* @inheritDoc
|