@globalpayments/vega 2.58.0 → 2.59.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-26e2fe1e.js → app-globals-a8f5e755.js} +25 -12
- package/dist/cjs/{brand-switch-state-controller-slimmer-5efa1b24.js → brand-switch-state-controller-slimmer-b83a4596.js} +1 -1
- package/dist/cjs/{child-nodes-event-prevent-slimmer-96240a0e.js → child-nodes-event-prevent-slimmer-5df43771.js} +1 -1
- package/dist/cjs/{child-nodes-notify-observer-slimmer-30ba81ac.js → child-nodes-notify-observer-slimmer-34ac3bfc.js} +1 -1
- package/dist/cjs/{code-block-7650c868.js → code-block-4bfae76d.js} +2128 -990
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-a6e4e5bc.js → component-value-history-controller-slimmer.abstract-34f4577a.js} +112 -54
- package/dist/cjs/content-state-0da174e0.js +3692 -0
- package/dist/cjs/{dark-mode-state-controller-slimmer-add5d8a8.js → dark-mode-state-controller-slimmer-17022f93.js} +1 -1
- package/dist/cjs/{dark-mode-style-controller-f9a32d68.js → dark-mode-style-controller-ab0703e1.js} +1 -1
- package/dist/cjs/{deprecated-property-slimmer-4f15005f.js → deprecated-property-slimmer-1eb8f031.js} +1 -1
- package/dist/cjs/{design-token-e771bb16.js → design-token-deb195e9.js} +1 -1
- package/dist/cjs/{dom-node-subject-factory-769dd00f.js → dom-node-subject-factory-bad99695.js} +1 -1
- package/dist/cjs/{dom-node-subject-observer-factory-5aa4cc83.js → dom-node-subject-observer-factory-df6e6df0.js} +1 -1
- package/dist/cjs/{element-appender-slimmer-7f98d16b.js → element-appender-slimmer-299039f1.js} +7 -7
- package/dist/cjs/{event-emit-slimmer-6154c759.js → event-emit-slimmer-efc70b94.js} +3 -3
- package/dist/cjs/{form-field-controller-slimmer-7bb7df10.js → form-field-controller-slimmer-772d1892.js} +24 -24
- package/dist/cjs/{image-annotation-action-6715d6f3.js → image-annotation-action-117fee1f.js} +130 -29
- package/dist/cjs/{index-7700600c.js → index-00ba6623.js} +23 -4
- package/dist/cjs/{index-ee4bc191.js → index-10199ee8.js} +2 -2
- package/dist/cjs/index.cjs.js +23 -23
- package/dist/cjs/{inject-keyboard-manager-f1f781b7.js → inject-keyboard-manager-70382bae.js} +1 -1
- package/dist/cjs/{internal-vega-event-manager-e98944ac.js → internal-vega-event-manager-83065493.js} +1 -1
- package/dist/cjs/{keyboard-manager-0be55fb9.js → keyboard-manager-6858915b.js} +1 -1
- package/dist/cjs/{keyboard-manager-slimmer-92c7227b.js → keyboard-manager-slimmer-faca2038.js} +1 -1
- package/dist/cjs/loader.cjs.js +16 -14
- package/dist/cjs/{object-bbd4ed7f.js → object-e2e28e3d.js} +13 -0
- package/dist/cjs/{public-rules-036795a4.js → public-rules-d1f7a352.js} +11 -9
- package/dist/cjs/{responsive-format-facade-d164ced7.js → responsive-format-facade-20c63e07.js} +4 -4
- package/dist/cjs/{rich-text-editor-required-rule-91eb0e22.js → rich-text-editor-required-rule-fbf8cbab.js} +1 -1
- package/dist/cjs/{static-subject-title-7e7d791a.js → static-subject-title-85732e0f.js} +2 -0
- package/dist/cjs/string-39438062.js +24 -0
- package/dist/cjs/{string-input-formatter-slimmer-dc1747ad.js → string-input-formatter-slimmer-1b757bad.js} +3 -3
- package/dist/cjs/{style-formatter-3e7af35b.js → style-formatter-e08163fd.js} +1 -1
- package/dist/cjs/{sub-state-notify-slimmer-409bbd1a.js → sub-state-notify-slimmer-943eb7cc.js} +2 -2
- package/dist/cjs/{sub-state-observer-slimmer-93d0a609.js → sub-state-observer-slimmer-0788232a.js} +3 -3
- package/dist/cjs/{translation-de7e351e.js → translation-cde4dce3.js} +31 -1
- package/dist/cjs/{translation-slimmer-83bdb9fe.js → translation-slimmer-af399096.js} +1 -1
- package/dist/cjs/{ui-6c069604.js → ui-4ce1fa08.js} +10 -0
- package/dist/cjs/vega-accordion.cjs.entry.js +17 -15
- package/dist/cjs/vega-app-footer.cjs.entry.js +4 -4
- package/dist/cjs/vega-app-header-button.cjs.entry.js +18 -16
- package/dist/cjs/vega-backdrop.cjs.entry.js +2 -2
- 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 -14
- package/dist/cjs/vega-brand-logo.cjs.entry.js +4 -4
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +7 -7
- package/dist/cjs/vega-button-circle.cjs.entry.js +18 -16
- package/dist/cjs/vega-button-group_2.cjs.entry.js +10 -10
- package/dist/cjs/vega-button-link.cjs.entry.js +7 -7
- package/dist/cjs/vega-button.cjs.entry.js +17 -15
- package/dist/cjs/{vega-calendar_3.cjs.entry.js → vega-calendar_4.cjs.entry.js} +1615 -1096
- package/dist/cjs/vega-card.cjs.entry.js +15 -13
- package/dist/cjs/vega-carousel.cjs.entry.js +17 -16
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +14 -14
- package/dist/cjs/vega-chip.cjs.entry.js +18 -16
- package/dist/cjs/vega-code-block.cjs.entry.js +22 -22
- package/dist/cjs/vega-color-picker.cjs.entry.js +12 -12
- package/dist/cjs/vega-combo-box.cjs.entry.js +15 -15
- package/dist/cjs/vega-counter-badge.cjs.entry.js +1 -1
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +25 -24
- package/dist/cjs/vega-dialog_2.cjs.entry.js +19 -18
- package/dist/cjs/vega-divider.cjs.entry.js +15 -13
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +37 -26
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-error.cjs.entry.js +3 -2
- package/dist/cjs/vega-field-label.cjs.entry.js +6 -6
- package/dist/cjs/vega-file-uploader.cjs.entry.js +13 -13
- package/dist/cjs/vega-flag-icon.cjs.entry.js +15 -13
- package/dist/cjs/vega-flex.cjs.entry.js +16 -14
- package/dist/cjs/vega-font.cjs.entry.js +15 -13
- package/dist/cjs/vega-form.cjs.entry.js +108 -18
- package/dist/cjs/vega-grid.cjs.entry.js +15 -13
- package/dist/cjs/vega-hint.cjs.entry.js +1 -1
- package/dist/cjs/vega-icon.cjs.entry.js +15 -13
- package/dist/cjs/vega-image-uploader.cjs.entry.js +21 -20
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +13 -13
- package/dist/cjs/vega-input-numeric.cjs.entry.js +16 -16
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +18 -17
- package/dist/cjs/vega-input-range.cjs.entry.js +14 -14
- package/dist/cjs/vega-input-select.cjs.entry.js +20 -19
- package/dist/cjs/vega-input.cjs.entry.js +15 -15
- package/dist/cjs/{vega-internal-event-id-bda08efa.js → vega-internal-event-id-ae6e2c13.js} +7 -1
- package/dist/cjs/vega-item-toggle.cjs.entry.js +8 -8
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +21 -20
- package/dist/cjs/vega-line-chart.cjs.entry.js +1 -1
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +14 -12
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +7 -7
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +8 -8
- package/dist/cjs/vega-pagination.cjs.entry.js +18 -16
- package/dist/cjs/vega-pie-chart.cjs.entry.js +1 -1
- package/dist/cjs/vega-popover_2.cjs.entry.js +43 -20
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +8 -8
- package/dist/cjs/vega-radio_2.cjs.entry.js +16 -16
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +273 -175
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +709 -1496
- package/dist/cjs/vega-section-title.cjs.entry.js +1 -1
- package/dist/cjs/vega-segment-control.cjs.entry.js +6 -6
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +20 -19
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +15 -15
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +18 -16
- package/dist/cjs/vega-signature-capture.cjs.entry.js +20 -20
- package/dist/cjs/{vega-skeleton-loader-controller-d534f5a1.js → vega-skeleton-loader-controller-b1971f43.js} +3 -3
- 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 +13 -13
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-table_8.cjs.entry.js +20 -19
- package/dist/cjs/vega-text.cjs.entry.js +2 -2
- package/dist/cjs/vega-textarea.cjs.entry.js +13 -13
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +23 -22
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +12 -12
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +19 -18
- package/dist/cjs/vega.cjs.js +16 -14
- package/dist/collection/collection-manifest.json +8 -6
- package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-controller.js +3 -0
- package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-preivew-popover-controller.js +83 -0
- package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-post-operation-date-controller.js +15 -2
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/base-repeat-pattern.js +16 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-daily-repeat-pattern.js +12 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-monthly-repeat-pattern.js +12 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-weekly-repeat-pattern.js +14 -0
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-yearly-repeat-pattern.js +13 -0
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.js +53 -2
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-preview-popover-renderer.js +68 -0
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-full-day-event-layout-renderer.js +5 -2
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-renderer.js +10 -1
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-switch-panel.js +3 -4
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/full-day-event/vega-calendar-full-day-event-renderer.js +3 -3
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/timed-event/vega-calendar-day-event-layout-renderer.js +5 -2
- package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/timed-event/vega-calendar-timed-event-renderer.js +1 -1
- package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.js +61 -23
- package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.js +1 -2
- package/dist/collection/components/vega-calendar/utils/index.js +16 -10
- package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/renderers/vega-calendar-event-renderer.js +5 -32
- package/dist/collection/components/vega-calendar/vega-calendar-event/vega-calendar-event.js +0 -5
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/assets/clock.js +3 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/assets/close.js +3 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/controllers/vega-calendar-event-preview-state-controller.js +46 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.js +81 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/vega-calendar-event-preview.css +86 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/vega-calendar-event-preview.js +56 -0
- package/dist/collection/components/vega-calendar/vega-calendar.css +10 -0
- package/dist/collection/components/vega-calendar/vega-calendar.js +37 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +12 -3
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.css +0 -1
- package/dist/collection/components/vega-field-error/slimmers/controllers/vega-field-error-message-controller.js +1 -0
- package/dist/collection/components/vega-form/slimmers/controllers/vega-form-field-validation-state-controller.js +80 -0
- package/dist/collection/components/vega-form/vega-form.js +47 -0
- package/dist/collection/components/vega-popover/slimmers/renderers/vega-popover-appender-renderer.js +4 -1
- package/dist/collection/components/vega-popover/vega-popover-content-box/vega-popover-content-box.css +2521 -1
- package/dist/collection/components/vega-popover/vega-popover-content-box/vega-popover-content-box.js +42 -1
- package/dist/collection/components/vega-popover/vega-popover.js +36 -0
- package/dist/collection/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.js +3 -15
- package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.css +81 -16
- package/dist/collection/components/vega-rich-text-editor/assets/display-code.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/constants/constant.js +6 -5
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.js +90 -26
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-horizontal-alignment-strategy.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-indent-strategy.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-link-group-strategy.js +18 -4
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-text-style-strategy.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/node-split-text-strategy.js +6 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/node-update-annotation-map-strategy.js +15 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/{block-append-blocks-strategy.js → append-children-strategy.js} +3 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/{block-delete-text-content-strategy.js → block-delete-text-or-decorator-node-strategy.js} +60 -12
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-image-into-text-strategy.js +7 -7
- 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-insert-new-paragraph-strategy.js +38 -30
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-merge-nodes-strategy.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-replace-nodes-strategy.js +2 -2
- 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 +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-transform-to-code-block-strategy.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-transform-to-list-strategy.js +6 -6
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-unlink-link-group-strategy.js +24 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/code-block-insert-image-strategy.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/code-block-remove-self-strategy.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/delete-link-group-strategy.js +34 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-block-insert-image-strategy.js +9 -9
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-insert-line-break-strategy.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-insert-line-break-with-blocks-strategy.js +6 -6
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/insert-children-after-strategy.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/insert-children-before-strategy.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/insert-text-to-decorator-node-strategy.js +37 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/link-group-node-split-strategy.js +31 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-insert-image-strategy.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-insert-new-paragraph-strategy.js +15 -15
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-remove-list-item-strategy.js +5 -5
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-list-strategy.js +10 -10
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-paragraph-strategy.js +13 -13
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/node-update-text-strategy.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/remove-children-strategy.js +26 -0
- 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/action-handle-strategies/modify-content-strategies/update-cursor-position-strategy.js +23 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/append-child-nodes-action.js +7 -3
- package/dist/collection/components/vega-rich-text-editor/dto/actions/custom-style-annotation-action.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/delete-link-group-action.js +10 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/insert-children-after-block.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/insert-children-before-block.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/{break-single-block-action.js → insert-new-paragraph-action.js} +3 -3
- package/dist/collection/components/vega-rich-text-editor/dto/actions/insert-text-to-decorator-node-action.js +17 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/link-annotation-action.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/dto/actions/link-group-annotation-action.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/dto/actions/link-group-node-split-action.js +11 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.js +10 -7
- package/dist/collection/components/vega-rich-text-editor/dto/actions/remove-child-action.js +4 -5
- package/dist/collection/components/vega-rich-text-editor/dto/actions/unlink-link-group-action.js +11 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/update-cursor-position-action.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/bold-annotation.js +13 -5
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/clear-formatting-annotation.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/code-annotation.js +21 -14
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/common-annotation.abstract.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/custom-attribute-annotation.js +80 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/custom-class-annotation.js +54 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/custom-style-annotation.js +67 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.js +26 -10
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/image-annotation.js +17 -8
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/indent-annotation.js +8 -2
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/inline-html-annotation.js +68 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/internal-wrapper-annotation.js +41 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/italic-annotation.js +13 -5
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-annotation.js +16 -11
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +92 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/list-annotation.js +41 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/node-annotation.abstract.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/plain-text-annotation.js +42 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.js +9 -9
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-color-annotation.js +3 -7
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-style-annotation.js +74 -12
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/underline-annotation.js +9 -9
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +116 -4
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/code-block.js +10 -2
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +78 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +17 -21
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +66 -12
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +20 -18
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +116 -37
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +70 -33
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +9 -2
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/decorator-node.js +58 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +45 -19
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +145 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +163 -21
- package/dist/collection/components/vega-rich-text-editor/dto/range.js +22 -33
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/base-renderer.js +5 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-renderer.abstract.js +7 -23
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.js +15 -93
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/code-block-renderer.js +0 -9
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/html-block-renderer.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.js +1 -5
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/link-wrapper-renderer.js +125 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.js +2 -6
- 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/blocks/text-block-renderer.js +2 -27
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.js +70 -7
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/node-renderer.abstract.js +2 -28
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +19 -5
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/renderer-factory.js +47 -0
- package/dist/collection/components/vega-rich-text-editor/dto/setup.js +69 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +83 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +5 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/delete-selected-nodes-controller.js +53 -29
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/focus-controller.js +13 -5
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/annotation-generator-strategy.abstract.js +5 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/bold-annotaion-handler.js +33 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/code-annotation-handler.js +33 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/color-annotation-handler.js +49 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/custom-attribute-annotation-handler.js +48 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/custom-class-annotation-handler.js +36 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/custom-style-annotation-handler.js +48 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.js +66 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/image-alt-annotation-handler.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/image-size-annotation-handler.js +32 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/indent-annotation-handler.js +53 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/inline-html-annotation-handler.js +99 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/italic-annotation-handler.js +32 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/link-annotation-handler.js +53 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/strike-through-annotation-handler.js +34 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-align-annotation-handler.js +57 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-style-annotation-handler.js +120 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/underline-annotation-handler.js +32 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.js +38 -232
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.js +34 -19
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy-processor.js +19 -33
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.js +4 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-rte-image-block-strategy.abstract.js +33 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-text-node-strategy.js +33 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/html-block-strategy.js +99 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/img-to-rte-image-block-strategy.js +5 -21
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-block-to-rte-text-block-strategy.js +8 -48
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-element-to-text-node-strategy.js +46 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/li-to-rte-list-item-block-strategy.js +59 -10
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ol-to-rte-list-block-strategy.js +8 -5
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/plain-text-to-text-node-strategy.js +35 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/span-img-to-rte-image-block-strategy.js +5 -21
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-not-li-child-to-rte-list-item-block.js +11 -6
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-to-rte-list-block-strategy.js +8 -5
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/vega-image-to-rte-image-block-strategy.js +9 -9
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/base-handler.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/delete-content-handler.js +8 -22
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paragraph-handler.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.js +13 -15
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-text-handler.js +36 -28
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/insert-composition-text-controller.js +6 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/insert-image-controller.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +75 -5
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/state-entity-rendering-registry.js +39 -4
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +11 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.js +41 -5
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bold-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-numbers-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/numbers-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/clear-style-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/code-block-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/code-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/center-align-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/horizontal-alignment-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/justify-align-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/left-align-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/right-align-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/italic-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/less-indent-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/more-indent-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.js +64 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/strikethrough-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-color-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.js +5 -4
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/toolbar-button-slimmer.abstract.js +10 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/underline-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/visual-mode-toolbar-button-slimmer.abstract.js +37 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.js +41 -3
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/code-block-strategy-registry.test.js +2 -3
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/content-state-strategy-registry.test.js +8 -9
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-block-strategy-register.test.js +15 -13
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-block-strategy-register.test.js +8 -8
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-item-strategy-register.test.js +12 -12
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-split-text-strategy.test.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-update-annotation-map-strategy.test.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/text-block-strategy-register.test.js +34 -12
- package/dist/collection/components/vega-rich-text-editor/test/dto/annotation-actions.test.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/annotations.test.js +258 -28
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/html-block.test.js +124 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/image-block.test.js +10 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/text-block.test.js +59 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +2613 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/image-node.test.js +29 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +103 -4
- package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/custom-attribute-annotation-handler.test.js +49 -0
- package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/element-to-text-node-strategy.test.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/html-element-to-annotation-generator.test.js +26 -0
- package/dist/collection/components/vega-rich-text-editor/test/spec-utils.js +32 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/slimmers/renderers/vega-rich-text-editor-toolbar-button-renderer.js +6 -2
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/vega-rich-text-editor-toolbar-button.css +3 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/vega-rich-text-editor-toolbar-button.js +27 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.css +7 -32
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +67 -2
- package/dist/collection/constants/ui.js +1 -0
- package/dist/collection/helpers/calendar/calendar-date.js +12 -0
- package/dist/collection/helpers/calendar/calendar-event.js +24 -0
- package/dist/collection/helpers/calendar/test/calendar-date.test.js +4 -0
- package/dist/collection/helpers/calendar/test/calendar-event.test.js +57 -0
- package/dist/collection/helpers/calendar/utils.js +38 -0
- package/dist/collection/helpers/change-manager/subject/static-subject/static-subject-title.js +1 -0
- package/dist/collection/helpers/code-format/code-formatter.js +116 -0
- package/dist/collection/helpers/code-format/test/code-formatter.test.js +362 -0
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +4 -1
- package/dist/collection/helpers/rte-manager/dto-action-strategy-manager.js +37 -0
- package/dist/collection/helpers/rte-manager/dto-class-manager.js +51 -0
- package/dist/collection/helpers/rte-manager/dto-renderer-manager.js +54 -0
- package/dist/collection/helpers/rte-manager/element-dto-class-strategy-manager.js +56 -0
- package/dist/collection/helpers/rte-manager/rte.manager.test.js +94 -0
- package/dist/collection/helpers/slimmers/field-error-controller-silmmer.js +4 -6
- package/dist/collection/helpers/slimmers/field-error-ui-controller-slimmer.js +12 -10
- package/dist/collection/helpers/slimmers/global/vega-translate-observer-slimmer.js +17 -4
- package/dist/collection/helpers/slimmers/test/field-error-controller-slimmer.test.js +1 -0
- package/dist/collection/helpers/slimmers/test/global/vega-translate-observer-slimmer.test.js +89 -0
- package/dist/collection/helpers/translation/locales/en.js +30 -0
- package/dist/collection/helpers/translation/tests/internal-translation-controller.test.js +30 -0
- package/dist/collection/polyfill/shadow-selection/shadow-selection-polyfill.js +16 -14
- package/dist/collection/polyfill/shadow-selection/test/shadow-selection-polyfill.test.js +1 -0
- package/dist/collection/polyfill/test-polyfill/unit/methods.js +9 -0
- package/dist/collection/utils/object.js +12 -0
- package/dist/collection/utils/string.js +10 -0
- package/dist/collection/utils/test/object.test.js +27 -1
- package/dist/collection/utils/ui.js +9 -0
- package/dist/esm/{app-globals-ee6a1250.js → app-globals-eec29b87.js} +25 -12
- package/dist/esm/{brand-switch-state-controller-slimmer-05c85e6d.js → brand-switch-state-controller-slimmer-d6e4d217.js} +1 -1
- package/dist/esm/{child-nodes-event-prevent-slimmer-b59a578e.js → child-nodes-event-prevent-slimmer-6b5b31f5.js} +1 -1
- package/dist/esm/{child-nodes-notify-observer-slimmer-eeed5986.js → child-nodes-notify-observer-slimmer-78f77c2c.js} +1 -1
- package/dist/esm/{code-block-7bd4cb87.js → code-block-3d519665.js} +2107 -970
- package/dist/esm/{component-value-history-controller-slimmer.abstract-41c58caf.js → component-value-history-controller-slimmer.abstract-8b5be007.js} +112 -54
- package/dist/esm/content-state-100d1efd.js +3682 -0
- package/dist/esm/{dark-mode-state-controller-slimmer-f1c2c299.js → dark-mode-state-controller-slimmer-0c7d1c77.js} +1 -1
- package/dist/esm/{dark-mode-style-controller-ea798fc8.js → dark-mode-style-controller-3bbb32dc.js} +1 -1
- package/dist/esm/{deprecated-property-slimmer-32575f02.js → deprecated-property-slimmer-2c14df89.js} +1 -1
- package/dist/esm/{design-token-23522f5c.js → design-token-80dd7d60.js} +1 -1
- package/dist/esm/{dom-node-subject-factory-6374611f.js → dom-node-subject-factory-202655e7.js} +1 -1
- package/dist/esm/{dom-node-subject-observer-factory-c345ca2e.js → dom-node-subject-observer-factory-999e21e3.js} +1 -1
- package/dist/esm/{element-appender-slimmer-042df95a.js → element-appender-slimmer-e2d3e79a.js} +7 -7
- package/dist/esm/{event-emit-slimmer-b5cb9b81.js → event-emit-slimmer-40973ec2.js} +3 -3
- package/dist/esm/{form-field-controller-slimmer-f0982f11.js → form-field-controller-slimmer-47820eaa.js} +24 -24
- package/dist/esm/{image-annotation-action-1e88f5a0.js → image-annotation-action-215f92d6.js} +128 -29
- package/dist/esm/{index-d0a47531.js → index-057d0f70.js} +23 -4
- package/dist/esm/{index-fb3b74bd.js → index-18a340fb.js} +2 -2
- package/dist/esm/index.js +16 -16
- package/dist/esm/{inject-keyboard-manager-5141d09a.js → inject-keyboard-manager-a28dfee4.js} +1 -1
- package/dist/esm/{internal-vega-event-manager-d80c53c5.js → internal-vega-event-manager-526f8ed1.js} +1 -1
- package/dist/esm/{keyboard-manager-3ffe81b0.js → keyboard-manager-fa6355cb.js} +1 -1
- package/dist/esm/{keyboard-manager-slimmer-751e98f5.js → keyboard-manager-slimmer-818050ee.js} +1 -1
- package/dist/esm/loader.js +16 -14
- package/dist/esm/{object-261e7344.js → object-66c37948.js} +13 -1
- package/dist/esm/{public-rules-287d4d77.js → public-rules-1016ce0c.js} +11 -9
- package/dist/esm/{responsive-format-facade-d2632288.js → responsive-format-facade-4bf60125.js} +4 -4
- package/dist/esm/{rich-text-editor-required-rule-69d5f035.js → rich-text-editor-required-rule-423c3c83.js} +1 -1
- package/dist/esm/{static-subject-title-ca83d6b6.js → static-subject-title-633b3474.js} +2 -1
- package/dist/esm/string-a953eafc.js +21 -0
- package/dist/esm/{string-input-formatter-slimmer-09478e0d.js → string-input-formatter-slimmer-b144e8d7.js} +3 -3
- package/dist/esm/{style-formatter-f7951677.js → style-formatter-184752b5.js} +1 -1
- package/dist/esm/{sub-state-notify-slimmer-0a6c3cbb.js → sub-state-notify-slimmer-b3524c09.js} +2 -2
- package/dist/esm/{sub-state-observer-slimmer-53eec5fb.js → sub-state-observer-slimmer-c823d69c.js} +3 -3
- package/dist/esm/{translation-a6eacb5f.js → translation-833d9ef4.js} +31 -1
- package/dist/esm/{translation-slimmer-f28e4708.js → translation-slimmer-c83b52c1.js} +1 -1
- package/dist/esm/{ui-7d177fb0.js → ui-c20be16d.js} +10 -1
- package/dist/esm/vega-accordion.entry.js +17 -15
- package/dist/esm/vega-app-footer.entry.js +4 -4
- package/dist/esm/vega-app-header-button.entry.js +18 -16
- package/dist/esm/vega-backdrop.entry.js +2 -2
- 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 -14
- package/dist/esm/vega-brand-logo.entry.js +4 -4
- package/dist/esm/vega-breadcrumb.entry.js +7 -7
- package/dist/esm/vega-button-circle.entry.js +18 -16
- package/dist/esm/vega-button-group_2.entry.js +10 -10
- package/dist/esm/vega-button-link.entry.js +7 -7
- package/dist/esm/vega-button.entry.js +17 -15
- package/dist/esm/{vega-calendar_3.entry.js → vega-calendar_4.entry.js} +1615 -1097
- package/dist/esm/vega-card.entry.js +15 -13
- package/dist/esm/vega-carousel.entry.js +17 -16
- package/dist/esm/vega-checkbox_2.entry.js +14 -14
- package/dist/esm/vega-chip.entry.js +18 -16
- package/dist/esm/vega-code-block.entry.js +19 -19
- package/dist/esm/vega-color-picker.entry.js +12 -12
- package/dist/esm/vega-combo-box.entry.js +15 -15
- package/dist/esm/vega-counter-badge.entry.js +1 -1
- package/dist/esm/vega-date-picker_2.entry.js +25 -24
- package/dist/esm/vega-dialog_2.entry.js +19 -18
- package/dist/esm/vega-divider.entry.js +15 -13
- package/dist/esm/vega-dropdown_5.entry.js +37 -26
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-error.entry.js +3 -2
- package/dist/esm/vega-field-label.entry.js +6 -6
- package/dist/esm/vega-file-uploader.entry.js +13 -13
- package/dist/esm/vega-flag-icon.entry.js +15 -13
- package/dist/esm/vega-flex.entry.js +16 -14
- package/dist/esm/vega-font.entry.js +15 -13
- package/dist/esm/vega-form.entry.js +109 -19
- package/dist/esm/vega-grid.entry.js +15 -13
- package/dist/esm/vega-hint.entry.js +1 -1
- package/dist/esm/vega-icon.entry.js +15 -13
- package/dist/esm/vega-image-uploader.entry.js +21 -20
- package/dist/esm/vega-input-credit-card.entry.js +13 -13
- package/dist/esm/vega-input-numeric.entry.js +16 -16
- package/dist/esm/vega-input-phone-number.entry.js +18 -17
- package/dist/esm/vega-input-range.entry.js +14 -14
- package/dist/esm/vega-input-select.entry.js +20 -19
- package/dist/esm/vega-input.entry.js +15 -15
- package/dist/esm/{vega-internal-event-id-4072659b.js → vega-internal-event-id-b7c865de.js} +5 -2
- package/dist/esm/vega-item-toggle.entry.js +8 -8
- package/dist/esm/vega-left-nav_5.entry.js +21 -20
- package/dist/esm/vega-line-chart.entry.js +1 -1
- package/dist/esm/vega-loader-wrapper_2.entry.js +14 -12
- package/dist/esm/vega-page-notification_2.entry.js +4 -4
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +7 -7
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +8 -8
- package/dist/esm/vega-pagination.entry.js +18 -16
- package/dist/esm/vega-pie-chart.entry.js +1 -1
- package/dist/esm/vega-popover_2.entry.js +43 -20
- package/dist/esm/vega-progress-tracker.entry.js +8 -8
- package/dist/esm/vega-radio_2.entry.js +16 -16
- package/dist/esm/vega-rich-text-content.entry.js +273 -175
- package/dist/esm/vega-rich-text-editor_4.entry.js +693 -1480
- package/dist/esm/vega-section-title.entry.js +1 -1
- package/dist/esm/vega-segment-control.entry.js +6 -6
- package/dist/esm/vega-selection-chip_2.entry.js +20 -19
- package/dist/esm/vega-selection-tile_2.entry.js +15 -15
- package/dist/esm/vega-sidenav_3.entry.js +18 -16
- package/dist/esm/vega-signature-capture.entry.js +20 -20
- package/dist/esm/{vega-skeleton-loader-controller-3f6faa17.js → vega-skeleton-loader-controller-38864fcd.js} +3 -3
- 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 +13 -13
- package/dist/esm/vega-tab-group_2.entry.js +8 -8
- package/dist/esm/vega-table_8.entry.js +20 -19
- package/dist/esm/vega-text.entry.js +2 -2
- package/dist/esm/vega-textarea.entry.js +13 -13
- package/dist/esm/vega-time-picker_2.entry.js +23 -22
- package/dist/esm/vega-toggle-switch.entry.js +12 -12
- package/dist/esm/vega-tooltip_2.entry.js +19 -18
- package/dist/esm/vega.js +16 -14
- package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-controller.d.ts +1 -0
- package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-preivew-popover-controller.d.ts +48 -0
- package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-post-operation-date-controller.d.ts +10 -0
- package/dist/types/components/vega-calendar/slimmers/common/helpers/repeat-pattern/base-repeat-pattern.d.ts +8 -0
- package/dist/types/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-daily-repeat-pattern.d.ts +6 -0
- package/dist/types/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-monthly-repeat-pattern.d.ts +6 -0
- package/dist/types/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-weekly-repeat-pattern.d.ts +6 -0
- package/dist/types/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-yearly-repeat-pattern.d.ts +6 -0
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-item-renderer.d.ts +8 -1
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-preview-popover-renderer.d.ts +18 -0
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-full-day-event-layout-renderer.d.ts +3 -1
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-renderer.d.ts +3 -0
- package/dist/types/components/vega-calendar/slimmers/day-view/renderers/timed-event/vega-calendar-day-event-layout-renderer.d.ts +3 -1
- package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-event-renderer.d.ts +6 -1
- package/dist/types/components/vega-calendar/utils/index.d.ts +9 -8
- package/dist/types/components/vega-calendar/vega-calendar-event/slimmers/renderers/vega-calendar-event-renderer.d.ts +0 -8
- package/dist/types/components/vega-calendar/vega-calendar-event/vega-calendar-event.d.ts +0 -2
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/assets/clock.d.ts +3 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/assets/close.d.ts +3 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/controllers/vega-calendar-event-preview-state-controller.d.ts +16 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.d.ts +13 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/types.d.ts +5 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/vega-calendar-event-preview.d.ts +22 -0
- package/dist/types/components/vega-calendar/vega-calendar.d.ts +10 -0
- package/dist/types/components/vega-field-error/types.d.ts +2 -1
- package/dist/types/components/vega-form/slimmers/controllers/vega-form-field-validation-state-controller.d.ts +29 -0
- package/dist/types/components/vega-form/types.d.ts +18 -0
- package/dist/types/components/vega-form/vega-form.d.ts +11 -1
- package/dist/types/components/vega-popover/slimmers/renderers/vega-popover-appender-renderer.d.ts +1 -0
- package/dist/types/components/vega-popover/vega-popover-content-box/vega-popover-content-box.d.ts +7 -0
- package/dist/types/components/vega-popover/vega-popover.d.ts +7 -1
- package/dist/types/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.d.ts +0 -2
- package/dist/types/components/vega-rich-text-editor/assets/display-code.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/constants/constant.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy-registry.d.ts +4 -4
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.d.ts +55 -27
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-horizontal-alignment-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-indent-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/append-children-strategy.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-node-content-strategy.d.ts +4 -4
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-text-or-decorator-node-strategy.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-new-paragraph-strategy.d.ts +11 -12
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-unlink-link-group-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/code-block-remove-self-strategy.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/delete-link-group-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/insert-children-after-strategy.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/insert-children-before-strategy.d.ts +23 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/insert-text-to-decorator-node-strategy.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/link-group-node-split-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-insert-new-paragraph-strategy.d.ts +3 -3
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-remove-list-item-strategy.d.ts +5 -5
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/remove-children-strategy.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/update-cursor-position-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/append-child-nodes-action.d.ts +6 -2
- package/dist/types/components/vega-rich-text-editor/dto/actions/custom-style-annotation-action.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/delete-link-group-action.d.ts +7 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/insert-children-after-block.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/insert-children-before-block.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/{break-single-block-action.d.ts → insert-new-paragraph-action.d.ts} +2 -2
- package/dist/types/components/vega-rich-text-editor/dto/actions/insert-text-to-decorator-node-action.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/link-annotation-action.d.ts +3 -1
- package/dist/types/components/vega-rich-text-editor/dto/actions/link-group-annotation-action.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/dto/actions/link-group-node-split-action.d.ts +10 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.d.ts +12 -9
- package/dist/types/components/vega-rich-text-editor/dto/actions/remove-child-action.d.ts +3 -4
- package/dist/types/components/vega-rich-text-editor/dto/actions/unlink-link-group-action.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/update-cursor-position-action.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation.abstract.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.d.ts +18 -4
- package/dist/types/components/vega-rich-text-editor/dto/annotations/bold-annotation.d.ts +7 -5
- package/dist/types/components/vega-rich-text-editor/dto/annotations/clear-formatting-annotation.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/dto/annotations/code-annotation.d.ts +9 -11
- package/dist/types/components/vega-rich-text-editor/dto/annotations/common-annotation.abstract.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/custom-attribute-annotation.d.ts +44 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/custom-class-annotation.d.ts +40 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/custom-style-annotation.d.ts +48 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.d.ts +5 -9
- package/dist/types/components/vega-rich-text-editor/dto/annotations/image-annotation.d.ts +10 -8
- package/dist/types/components/vega-rich-text-editor/dto/annotations/indent-annotation.d.ts +5 -1
- package/dist/types/components/vega-rich-text-editor/dto/annotations/inline-html-annotation.d.ts +37 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/internal-wrapper-annotation.d.ts +31 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/italic-annotation.d.ts +7 -5
- package/dist/types/components/vega-rich-text-editor/dto/annotations/link-annotation.d.ts +10 -6
- package/dist/types/components/vega-rich-text-editor/dto/annotations/link-group-annotation.d.ts +49 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/list-annotation.d.ts +25 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/node-annotation.abstract.d.ts +18 -4
- package/dist/types/components/vega-rich-text-editor/dto/annotations/plain-text-annotation.d.ts +31 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.d.ts +5 -9
- package/dist/types/components/vega-rich-text-editor/dto/annotations/text-color-annotation.d.ts +3 -7
- package/dist/types/components/vega-rich-text-editor/dto/annotations/text-style-annotation.d.ts +9 -7
- package/dist/types/components/vega-rich-text-editor/dto/annotations/underline-annotation.d.ts +5 -9
- package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +70 -9
- package/dist/types/components/vega-rich-text-editor/dto/blocks/code-block.d.ts +7 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +42 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +10 -4
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +33 -6
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +9 -5
- package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +29 -14
- package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +20 -3
- package/dist/types/components/vega-rich-text-editor/dto/nodes/code-block-node.d.ts +7 -2
- package/dist/types/components/vega-rich-text-editor/dto/nodes/decorator-node.d.ts +41 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +10 -4
- package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +116 -5
- package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +59 -4
- package/dist/types/components/vega-rich-text-editor/dto/range.d.ts +0 -7
- package/dist/types/components/vega-rich-text-editor/dto/renderers/base-renderer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-renderer.abstract.d.ts +7 -20
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.d.ts +9 -6
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/code-block-renderer.d.ts +0 -8
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/html-block-renderer.d.ts +8 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.d.ts +0 -2
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/link-wrapper-renderer.d.ts +24 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.d.ts +0 -2
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.d.ts +0 -3
- package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.d.ts +37 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/node-renderer.abstract.d.ts +3 -16
- package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/renderer-factory.d.ts +24 -0
- package/dist/types/components/vega-rich-text-editor/dto/setup.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/base-extension-renderer.d.ts +61 -0
- package/dist/types/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +172 -42
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/delete-selected-nodes-controller.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/focus-controller.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/annotation-generator-strategy.abstract.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/bold-annotaion-handler.d.ts +25 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/code-annotation-handler.d.ts +25 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/color-annotation-handler.d.ts +25 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/custom-attribute-annotation-handler.d.ts +35 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/custom-class-annotation-handler.d.ts +28 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/custom-style-annotation-handler.d.ts +28 -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 +26 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/image-alt-annotation-handler.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/image-size-annotation-handler.d.ts +24 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/indent-annotation-handler.d.ts +24 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/inline-html-annotation-handler.d.ts +28 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/italic-annotation-handler.d.ts +25 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/link-annotation-handler.d.ts +29 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/strike-through-annotation-handler.d.ts +25 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-align-annotation-handler.d.ts +27 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-style-annotation-handler.d.ts +57 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/underline-annotation-handler.d.ts +25 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.d.ts +12 -85
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.d.ts +10 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy-processor.d.ts +12 -3
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.d.ts +6 -4
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-rte-image-block-strategy.abstract.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-text-node-strategy.d.ts +23 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/html-block-strategy.d.ts +34 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/img-to-rte-image-block-strategy.d.ts +5 -4
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-block-to-rte-text-block-strategy.d.ts +3 -9
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-element-to-text-node-strategy.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/li-to-rte-list-item-block-strategy.d.ts +20 -3
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ol-to-rte-list-block-strategy.d.ts +5 -5
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/plain-text-to-text-node-strategy.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/span-img-to-rte-image-block-strategy.d.ts +5 -4
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-not-li-child-to-rte-list-item-block.d.ts +3 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-to-rte-list-block-strategy.d.ts +5 -5
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/vega-image-to-rte-image-block-strategy.d.ts +5 -4
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/delete-content-handler.d.ts +0 -7
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.d.ts +0 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/state-entity-rendering-registry.d.ts +20 -3
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/value-controller.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bold-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-numbers-toolbar-button-slimmer.d.ts +3 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/numbers-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/clear-style-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/code-block-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/code-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/center-align-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/horizontal-alignment-toolbar-button-slimmer.d.ts +3 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/justify-align-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/left-align-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/right-align-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.d.ts +3 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/italic-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/less-indent-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.d.ts +3 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/more-indent-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/strikethrough-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/text-color-toolbar-button-slimmer.d.ts +3 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.d.ts +3 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/toolbar-button-slimmer.abstract.d.ts +7 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/underline-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/visual-mode-toolbar-button-slimmer.abstract.d.ts +24 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.d.ts +10 -2
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-block-strategy-register.test.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/list-block-strategy-register.test.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/node-split-text-strategy.test.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/text-block-strategy-register.test.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/test/dto/blocks/html-block.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/blocks/text-block.test.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/test/dto/content-state.test.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/test/dto/nodes/text-node.test.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/custom-attribute-annotation-handler.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/element-to-text-node-strategy.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/html-element-to-annotation-generator.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/spec-utils.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/slimmers/renderers/vega-rich-text-editor-toolbar-button-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/vega-rich-text-editor-toolbar-button.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +17 -1
- package/dist/types/components.d.ts +81 -2
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/calendar/calendar-date.d.ts +7 -0
- package/dist/types/helpers/calendar/calendar-event.d.ts +15 -1
- package/dist/types/helpers/calendar/utils.d.ts +18 -0
- package/dist/types/helpers/change-manager/subject/static-subject/static-subject-title.d.ts +2 -1
- package/dist/types/helpers/code-format/code-formatter.d.ts +34 -0
- package/dist/types/helpers/code-format/test/code-formatter.test.d.ts +1 -0
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +3 -0
- package/dist/types/helpers/rte-manager/dto-action-strategy-manager.d.ts +13 -0
- package/dist/types/helpers/rte-manager/dto-class-manager.d.ts +38 -0
- package/dist/types/helpers/rte-manager/dto-renderer-manager.d.ts +44 -0
- package/dist/types/helpers/rte-manager/element-dto-class-strategy-manager.d.ts +42 -0
- package/dist/types/helpers/rte-manager/rte.manager.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/field-error-ui-controller-slimmer.d.ts +1 -1
- package/dist/types/helpers/slimmers/form-field-controller-slimmer.d.ts +1 -1
- package/dist/types/helpers/slimmers/global/vega-translate-observer-slimmer.d.ts +6 -0
- package/dist/types/helpers/slimmers/test/global/vega-translate-observer-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/translation/interface.d.ts +31 -1
- package/dist/types/types/class.type.d.ts +3 -0
- package/dist/types/types/components.type.d.ts +10 -2
- package/dist/types/utils/object.d.ts +8 -0
- package/dist/types/utils/string.d.ts +7 -0
- package/dist/types/utils/ui.d.ts +7 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-02841589.js +1 -0
- package/dist/vega/{p-81ed90d5.js → p-02b29c18.js} +1 -1
- package/dist/vega/{p-f25570f5.js → p-09d63c0c.js} +1 -1
- package/dist/vega/{p-4c4ac1a5.entry.js → p-09ddae74.entry.js} +1 -1
- package/dist/vega/{p-9afdcf65.js → p-0a2ff1e2.js} +1 -1
- package/dist/vega/p-0b2fef0d.entry.js +1 -0
- package/dist/vega/{p-1db2ba98.entry.js → p-0c247128.entry.js} +1 -1
- package/dist/vega/p-0cd89fb6.js +1 -0
- package/dist/vega/{p-e940bc37.js → p-0f0baac3.js} +1 -1
- package/dist/vega/{p-4a237308.js → p-0fce930c.js} +1 -1
- package/dist/vega/p-11663b1c.js +1 -0
- package/dist/vega/p-16ec4633.js +1 -0
- package/dist/vega/p-17d517c8.entry.js +1 -0
- package/dist/vega/p-18711f87.entry.js +1 -0
- package/dist/vega/p-19aa2dbe.entry.js +1 -0
- package/dist/vega/{p-8782abeb.js → p-1bd516c5.js} +1 -1
- package/dist/vega/p-23f0dfeb.entry.js +1 -0
- package/dist/vega/{p-7c348ac7.entry.js → p-26ef2066.entry.js} +1 -1
- package/dist/vega/{p-c69a6547.entry.js → p-27b5f69c.entry.js} +1 -1
- package/dist/vega/{p-41465ad0.entry.js → p-2a66e2f7.entry.js} +1 -1
- package/dist/vega/p-2cc8e5f0.entry.js +1 -0
- package/dist/vega/p-323d2af0.entry.js +1 -0
- package/dist/vega/p-33f45d1b.entry.js +1 -0
- package/dist/vega/p-351405f2.entry.js +1 -0
- package/dist/vega/p-35a3c0e5.entry.js +1 -0
- package/dist/vega/{p-82b18195.entry.js → p-36ae2dd3.entry.js} +1 -1
- package/dist/vega/p-3ce966b2.entry.js +1 -0
- package/dist/vega/p-42632023.entry.js +1 -0
- package/dist/vega/{p-832b59af.js → p-436f7e27.js} +1 -1
- package/dist/vega/{p-5bd3487e.js → p-4452e085.js} +1 -1
- package/dist/vega/{p-710da484.entry.js → p-446d0317.entry.js} +1 -1
- package/dist/vega/{p-012cbd8f.js → p-4474bc63.js} +1 -1
- package/dist/vega/{p-6dad2e5c.entry.js → p-476cc642.entry.js} +1 -1
- package/dist/vega/p-48a58baf.js +2 -0
- package/dist/vega/{p-bcdb235d.js → p-4a368e1e.js} +1 -1
- package/dist/vega/p-4b7edf72.entry.js +1 -0
- package/dist/vega/{p-a4a0fcfd.entry.js → p-4ca12302.entry.js} +2 -2
- package/dist/vega/p-4ee21459.entry.js +1 -0
- package/dist/vega/{p-4674c318.entry.js → p-4fc18f2f.entry.js} +1 -1
- package/dist/vega/p-521ace2d.js +1 -0
- package/dist/vega/{p-1f9a735a.entry.js → p-53d67971.entry.js} +1 -1
- package/dist/vega/p-55b4b6ff.entry.js +1 -0
- package/dist/vega/p-56290b7e.entry.js +1 -0
- package/dist/vega/{p-d5776087.js → p-575235c8.js} +1 -1
- package/dist/vega/p-57ea996e.entry.js +1 -0
- package/dist/vega/p-59e990c7.entry.js +1 -0
- package/dist/vega/p-5b7d347a.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-7d5ebd26.entry.js → p-606d1f7c.entry.js} +1 -1
- package/dist/vega/{p-4ab67150.entry.js → p-61d1f3cb.entry.js} +1 -1
- package/dist/vega/p-6a24c2d9.entry.js +1 -0
- package/dist/vega/{p-5f6b942c.entry.js → p-6b292628.entry.js} +1 -1
- package/dist/vega/p-6e42d500.entry.js +1 -0
- package/dist/vega/{p-c9740710.entry.js → p-70939752.entry.js} +1 -1
- package/dist/vega/p-778b1d71.entry.js +1 -0
- package/dist/vega/{p-fda6f8bc.js → p-7934c09c.js} +1 -1
- package/dist/vega/p-7a3b142b.js +1 -0
- package/dist/vega/{p-9b08ed46.entry.js → p-7b1bb372.entry.js} +1 -1
- package/dist/vega/p-7b365345.entry.js +1 -0
- package/dist/vega/p-7bb74931.js +1 -0
- package/dist/vega/{p-4c871d0f.entry.js → p-7cd2fac8.entry.js} +1 -1
- package/dist/vega/{p-0c8bd757.js → p-7e8f055d.js} +1 -1
- package/dist/vega/p-7f087c8b.js +1 -0
- package/dist/vega/{p-fcb5b40f.entry.js → p-801cb489.entry.js} +1 -1
- package/dist/vega/p-80aac6eb.entry.js +1 -0
- package/dist/vega/{p-904d1b43.js → p-846ae5fb.js} +1 -1
- package/dist/vega/{p-66e9d31a.entry.js → p-847dbae4.entry.js} +1 -1
- package/dist/vega/{p-397b5d91.entry.js → p-850a6305.entry.js} +1 -1
- package/dist/vega/p-86f17433.js +1 -0
- package/dist/vega/{p-acd9bfa4.js → p-8852361b.js} +1 -1
- package/dist/vega/p-8a877e12.js +1 -0
- package/dist/vega/p-966a9940.entry.js +1 -0
- package/dist/vega/{p-8c4f893b.js → p-9773c913.js} +1 -1
- package/dist/vega/{p-bd84b7b9.entry.js → p-9a74eb86.entry.js} +1 -1
- package/dist/vega/p-a0954e7c.entry.js +1 -0
- package/dist/vega/p-a6dacccd.js +1 -0
- package/dist/vega/{p-59282fc8.entry.js → p-a7baad6d.entry.js} +1 -1
- package/dist/vega/{p-8e581755.entry.js → p-ae21e5f5.entry.js} +1 -1
- package/dist/vega/p-aeea4154.entry.js +1 -0
- package/dist/vega/{p-613ee009.js → p-af464251.js} +1 -1
- package/dist/vega/p-b40adb9e.js +1 -0
- package/dist/vega/p-b4be8573.entry.js +1 -0
- package/dist/vega/{p-6e01f0a2.js → p-b5822a21.js} +1 -1
- package/dist/vega/p-b5bef48a.js +1 -0
- package/dist/vega/p-b6f78c1e.entry.js +1 -0
- package/dist/vega/{p-f3bd26a1.entry.js → p-b73532c0.entry.js} +1 -1
- package/dist/vega/{p-d789b291.js → p-bbb96a13.js} +1 -1
- package/dist/vega/p-bca1f8f9.js +1 -0
- package/dist/vega/p-bf0ced3c.js +1 -0
- package/dist/vega/p-bf19682d.js +1 -0
- package/dist/vega/p-c131544b.entry.js +1 -0
- package/dist/vega/{p-9540e3ed.entry.js → p-c81cb852.entry.js} +1 -1
- package/dist/vega/{p-091ab617.entry.js → p-cc20f01f.entry.js} +1 -1
- package/dist/vega/{p-500684e1.entry.js → p-cc5a3a1b.entry.js} +1 -1
- package/dist/vega/{p-f940b7f7.entry.js → p-d0fbbb7f.entry.js} +1 -1
- package/dist/vega/{p-864de9a1.js → p-d4564bfd.js} +1 -1
- package/dist/vega/{p-c42ec0ac.entry.js → p-d45f79ce.entry.js} +1 -1
- package/dist/vega/p-d590402d.entry.js +1 -0
- package/dist/vega/{p-34dc3f71.entry.js → p-d72abacd.entry.js} +1 -1
- package/dist/vega/{p-fe1512f9.entry.js → p-d7558ed7.entry.js} +1 -1
- package/dist/vega/p-d8566958.entry.js +1 -0
- package/dist/vega/{p-a1e50e6c.entry.js → p-dc5026e7.entry.js} +1 -1
- package/dist/vega/p-e4674c00.entry.js +1 -0
- package/dist/vega/{p-311f338d.entry.js → p-e9ad8223.entry.js} +1 -1
- package/dist/vega/p-e9d2e0dc.entry.js +1 -0
- package/dist/vega/{p-86a300e8.entry.js → p-ebbaa112.entry.js} +1 -1
- package/dist/vega/p-ee1e7389.entry.js +1 -0
- package/dist/vega/{p-24042f0c.entry.js → p-f47de801.entry.js} +1 -1
- package/dist/vega/p-f993bcca.entry.js +1 -0
- package/dist/vega/{p-9ce0bd82.entry.js → p-fc8badd3.entry.js} +2 -2
- package/dist/vega/{p-42ec43ef.entry.js → p-fe6ea6cf.entry.js} +1 -1
- package/dist/vega/{p-92355996.entry.js → p-ffaee583.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +5 -3
- package/dist/cjs/content-state-fd5ad4a8.js +0 -1152
- package/dist/cjs/string-21427167.js +0 -13
- package/dist/cjs/types-a4295b11.js +0 -12
- package/dist/collection/components/vega-calendar/vega-calendar-event/slimmers/controllers/vega-calendar-event-bg-color-controller.js +0 -29
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-append-nodes-strategy.js +0 -21
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-image-strategy.js +0 -54
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-blocks-after-strategy.js +0 -15
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-blocks-before-strategy.js +0 -38
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-nodes-after-node-strategy.js +0 -14
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-nodes-before-node-strategy.js +0 -14
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-remove-child-block-strategy.js +0 -15
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-remove-node-strategy.js +0 -21
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-replace-node-with-nodes-strategy.js +0 -28
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-insert-new-paragraph-strategy.js +0 -44
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-delete-text-content-strategy.js +0 -20
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-remove-node-strategy.js +0 -19
- package/dist/collection/components/vega-rich-text-editor/dto/actions/insert-blocks-after-block.js +0 -14
- package/dist/collection/components/vega-rich-text-editor/dto/actions/insert-blocks-before-block.js +0 -14
- package/dist/collection/components/vega-rich-text-editor/dto/actions/insert-nodes-after-node-action.js +0 -14
- package/dist/collection/components/vega-rich-text-editor/dto/actions/insert-nodes-before-node-action.js +0 -14
- package/dist/esm/content-state-a43e703e.js +0 -1146
- package/dist/esm/string-be824360.js +0 -11
- package/dist/esm/types-0cadfd73.js +0 -12
- package/dist/types/components/vega-calendar/vega-calendar-event/slimmers/controllers/vega-calendar-event-bg-color-controller.d.ts +0 -12
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-append-blocks-strategy.d.ts +0 -13
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-append-nodes-strategy.d.ts +0 -16
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-image-strategy.d.ts +0 -19
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-text-content-strategy.d.ts +0 -19
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-blocks-after-strategy.d.ts +0 -13
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-blocks-before-strategy.d.ts +0 -23
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-nodes-after-node-strategy.d.ts +0 -13
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-nodes-before-node-strategy.d.ts +0 -13
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-remove-child-block-strategy.d.ts +0 -13
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-remove-node-strategy.d.ts +0 -16
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-replace-node-with-nodes-strategy.d.ts +0 -20
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/image-insert-new-paragraph-strategy.d.ts +0 -21
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-delete-text-content-strategy.d.ts +0 -15
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-item-remove-node-strategy.d.ts +0 -15
- package/dist/types/components/vega-rich-text-editor/dto/actions/insert-blocks-after-block.d.ts +0 -13
- package/dist/types/components/vega-rich-text-editor/dto/actions/insert-blocks-before-block.d.ts +0 -13
- package/dist/types/components/vega-rich-text-editor/dto/actions/insert-nodes-after-node-action.d.ts +0 -13
- package/dist/types/components/vega-rich-text-editor/dto/actions/insert-nodes-before-node-action.d.ts +0 -13
- package/dist/vega/p-083af15f.entry.js +0 -1
- package/dist/vega/p-0b5330e1.entry.js +0 -1
- package/dist/vega/p-0bb29d98.js +0 -1
- package/dist/vega/p-1792a352.entry.js +0 -1
- package/dist/vega/p-1a4f77de.entry.js +0 -1
- package/dist/vega/p-1a6dacc7.entry.js +0 -1
- package/dist/vega/p-21d26bb4.js +0 -2
- package/dist/vega/p-27a9ad35.entry.js +0 -1
- package/dist/vega/p-27ec0c07.entry.js +0 -1
- package/dist/vega/p-317920e6.entry.js +0 -1
- package/dist/vega/p-376b3ec7.entry.js +0 -1
- package/dist/vega/p-394594e9.entry.js +0 -1
- package/dist/vega/p-43263510.js +0 -1
- package/dist/vega/p-435451be.entry.js +0 -1
- package/dist/vega/p-472108bd.entry.js +0 -1
- package/dist/vega/p-47a4c625.js +0 -1
- package/dist/vega/p-48ae6f02.entry.js +0 -1
- package/dist/vega/p-48b24fd3.entry.js +0 -1
- package/dist/vega/p-5773a9a3.js +0 -1
- package/dist/vega/p-5fe47fe8.entry.js +0 -1
- package/dist/vega/p-61ea2d75.entry.js +0 -1
- package/dist/vega/p-63adca7b.entry.js +0 -1
- package/dist/vega/p-699032fc.entry.js +0 -1
- package/dist/vega/p-6be16084.js +0 -1
- package/dist/vega/p-71c65f7e.js +0 -1
- package/dist/vega/p-81279fea.entry.js +0 -1
- package/dist/vega/p-88e08a33.js +0 -1
- package/dist/vega/p-8e2b1dae.entry.js +0 -1
- package/dist/vega/p-8e662f26.js +0 -1
- package/dist/vega/p-8f8de5ab.entry.js +0 -1
- package/dist/vega/p-997a2064.entry.js +0 -1
- package/dist/vega/p-9a956a00.js +0 -1
- package/dist/vega/p-9d6003ef.js +0 -1
- package/dist/vega/p-a04491cc.entry.js +0 -1
- package/dist/vega/p-a1056063.entry.js +0 -1
- package/dist/vega/p-a7042a5a.entry.js +0 -1
- package/dist/vega/p-acf7667e.entry.js +0 -1
- package/dist/vega/p-b21b128c.entry.js +0 -1
- package/dist/vega/p-b75a8edb.entry.js +0 -1
- package/dist/vega/p-c21295cf.entry.js +0 -1
- package/dist/vega/p-ce5a3589.entry.js +0 -1
- package/dist/vega/p-d1355307.js +0 -1
- package/dist/vega/p-d1cb7f28.js +0 -1
- package/dist/vega/p-d661a5aa.entry.js +0 -1
- package/dist/vega/p-d7e0c57a.js +0 -1
- package/dist/vega/p-e1ed78db.js +0 -1
- package/dist/vega/p-e7b00bf0.js +0 -1
- package/dist/vega/p-ef84dc90.entry.js +0 -1
- package/dist/vega/p-f229d6d1.js +0 -1
- package/dist/vega/p-f27fcc7c.entry.js +0 -1
- package/dist/vega/p-f543e911.entry.js +0 -1
- package/dist/vega/p-f5ac60f5.js +0 -1
- package/dist/vega/p-f7b5833d.entry.js +0 -1
- package/dist/vega/p-fc02a67a.js +0 -1
|
@@ -1,1152 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const codeBlock = require('./code-block-7650c868.js');
|
|
4
|
-
const typeGuard = require('./type-guard-aa8fdeaf.js');
|
|
5
|
-
const createPublicApiRuntimeMetricsSlimmer = require('./create-public-api-runtime-metrics-slimmer-e2e274e1.js');
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The image block delete the image node strategy.
|
|
9
|
-
*/
|
|
10
|
-
class BlockDeleteImageStrategy extends codeBlock.BlockDeleteNodeContentStrategy {
|
|
11
|
-
/**
|
|
12
|
-
* @inheritDoc
|
|
13
|
-
*/
|
|
14
|
-
handleAction(action, target) {
|
|
15
|
-
this.deleteNodeContent(action, target);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Deletes content from a block node based on specific conditions.
|
|
19
|
-
*
|
|
20
|
-
* @param {DeleteBlockContentAction} action - Delete block content action
|
|
21
|
-
* @param {RTEImageBlock} target - The image block.
|
|
22
|
-
*/
|
|
23
|
-
deleteNodeContent(action, target) {
|
|
24
|
-
const startContainerNode = action
|
|
25
|
-
.startContainerNode, startOffset = action.startOffset;
|
|
26
|
-
let previousNode = this.getPreviousNode(startContainerNode);
|
|
27
|
-
let nextNode = null;
|
|
28
|
-
if (startOffset === 1) {
|
|
29
|
-
const parentBlock = target;
|
|
30
|
-
if (this.isContentFirstNode(startContainerNode)) {
|
|
31
|
-
nextNode = this.getNextNode(startContainerNode);
|
|
32
|
-
}
|
|
33
|
-
if (parentBlock.children.length === 1) {
|
|
34
|
-
parentBlock.parent.apply(new codeBlock.RemoveChildAction(parentBlock));
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
parentBlock.apply(new codeBlock.RemoveChildAction(startContainerNode));
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
const shouldRemoveNode = previousNode;
|
|
42
|
-
if (shouldRemoveNode && shouldRemoveNode instanceof codeBlock.RTEImageNode) {
|
|
43
|
-
previousNode = this.getPreviousNode(shouldRemoveNode);
|
|
44
|
-
shouldRemoveNode.parent.apply(new codeBlock.RemoveChildAction(shouldRemoveNode));
|
|
45
|
-
if (!previousNode) {
|
|
46
|
-
action.nextNode = startContainerNode;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
if (previousNode) {
|
|
51
|
-
action.previousNode = previousNode;
|
|
52
|
-
}
|
|
53
|
-
else if (nextNode) {
|
|
54
|
-
action.nextNode = nextNode;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Split the current image block with a special position strategy.
|
|
61
|
-
*/
|
|
62
|
-
class BlockSplitWithImageNodeStrategy extends codeBlock.ActionHandleStrategy {
|
|
63
|
-
/**
|
|
64
|
-
* @inheritDoc
|
|
65
|
-
*/
|
|
66
|
-
handleAction(action, target) {
|
|
67
|
-
action.newBlock = this.splitImageNodes(action.splitPointNode, action.startOffsetOfNode, target);
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* The image offset should be 0 or 1
|
|
71
|
-
* <vega-rich-text-image-editor><img /></vega-rich-text-image-editor>
|
|
72
|
-
*
|
|
73
|
-
* @param {RTEImageNode} imageNode The split point image node.
|
|
74
|
-
* @param {number} imageOffset The cursor point 0 | 1.
|
|
75
|
-
* @param {RTEImageBlock} target The image block.
|
|
76
|
-
* @returns {Nullable<RTEBlock>} The new block after split
|
|
77
|
-
*/
|
|
78
|
-
splitImageNodes(imageNode, imageOffset, target) {
|
|
79
|
-
const nodesSplitIndex = target.children.indexOf(imageNode);
|
|
80
|
-
if (nodesSplitIndex > -1) {
|
|
81
|
-
const beforeNodes = target.children.slice(0, nodesSplitIndex + imageOffset);
|
|
82
|
-
const afterNodes = target.children.slice(nodesSplitIndex + imageOffset);
|
|
83
|
-
target.apply(new codeBlock.ReplaceChildNodesAction(beforeNodes));
|
|
84
|
-
const newBlock = this.cloneWithNodes(afterNodes, target);
|
|
85
|
-
target.parent.apply(new codeBlock.InsertBlocksAfterAction(target, newBlock));
|
|
86
|
-
return newBlock;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Creates a new RTEImageBlock instance with the provided RTEImageNode instances appended to it.
|
|
91
|
-
*
|
|
92
|
-
* @param {RTEImageNode[]} nodes - An array of RTEImageNode objects that will be used to create a new RTEImageBlock instance.
|
|
93
|
-
* @param {RTEImageBlock} target The image block.
|
|
94
|
-
* @returns {RTEImageBlock} A new `RTEImageBlock` object with the provided `nodes` appended to it.
|
|
95
|
-
*/
|
|
96
|
-
cloneWithNodes(nodes, target) {
|
|
97
|
-
const block = target.createNewImageBlock();
|
|
98
|
-
block.children = [];
|
|
99
|
-
block.apply(new codeBlock.AppendChildNodesAction(nodes));
|
|
100
|
-
return block;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Insert a new paragraph at the image block special position strategy.
|
|
106
|
-
*/
|
|
107
|
-
class ImageInsertNewParagraphStrategy extends codeBlock.ActionHandleStrategy {
|
|
108
|
-
/**
|
|
109
|
-
* @inheritDoc
|
|
110
|
-
*/
|
|
111
|
-
handleAction(action, target) {
|
|
112
|
-
action.newBlock = this.breakSingleBlock(action.startContainerNode, action.startOffset, target);
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Used to split a block of text at a specific position and insert a new paragraph block.
|
|
116
|
-
*
|
|
117
|
-
* @param {RTEImageNode} splitNode - The node that needs to be split into separate blocks.
|
|
118
|
-
* @param {number} startOffsetOfNode - The index or position within the `splitNode` where the block should be broken or split.
|
|
119
|
-
* @param {RTEImageBlock} target - The image block.
|
|
120
|
-
* @returns {Nullable<RTEBlock>} Returns either a new paragraph block or the new block created after splitting the original block.
|
|
121
|
-
*/
|
|
122
|
-
breakSingleBlock(splitNode, startOffsetOfNode, target) {
|
|
123
|
-
const newParagraph = codeBlock.RTETextBlock.from({
|
|
124
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
125
|
-
type: 'paragraph',
|
|
126
|
-
nodes: [{ id: createPublicApiRuntimeMetricsSlimmer.generateUUID(), type: 'text', text: '' }],
|
|
127
|
-
});
|
|
128
|
-
if (this.isCaretPositionAtImageBlockEnd(target, splitNode, startOffsetOfNode)) {
|
|
129
|
-
target.parent.apply(new codeBlock.InsertBlocksAfterAction(target, newParagraph));
|
|
130
|
-
}
|
|
131
|
-
else if (this.isCaretPositionAtImageBlockStart(target, splitNode, startOffsetOfNode)) {
|
|
132
|
-
target.parent.apply(new codeBlock.InsertBlocksBeforeAction(target, newParagraph));
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
const splitBlockAction = new codeBlock.SplitBlockWithNodeAction(splitNode, startOffsetOfNode);
|
|
136
|
-
target.apply(splitBlockAction);
|
|
137
|
-
return splitBlockAction.newBlock;
|
|
138
|
-
}
|
|
139
|
-
return newParagraph;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Break the current block after press enter, this action is similar with the SplitBlockWithNodeAction,
|
|
145
|
-
* The SplitBlockWithNodeAction split the current block to two same type blocks, but this action will create new paragraph or list item when break at start or end.
|
|
146
|
-
* The property `newBlock` use to store the new create block if need.
|
|
147
|
-
*
|
|
148
|
-
* @example currentBlock.apply(new BreakSingleBlockAction(startContainerNode, startOffset))
|
|
149
|
-
*/
|
|
150
|
-
class BreakSingleBlockAction extends codeBlock.ModifyContentAction {
|
|
151
|
-
constructor(startContainerNode, startOffset) {
|
|
152
|
-
super();
|
|
153
|
-
this.type = codeBlock.ModifyContentActionType.BREAK_SINGLE_BLOCK;
|
|
154
|
-
this.startContainerNode = startContainerNode;
|
|
155
|
-
this.startOffset = startOffset;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* The image block insert line break strategy.
|
|
161
|
-
*/
|
|
162
|
-
class ImageInsertLineBreakStrategy extends codeBlock.ActionHandleStrategy {
|
|
163
|
-
/**
|
|
164
|
-
* The image block not support insert the line break node, so invoke the insert new paragraph logic directly.
|
|
165
|
-
*
|
|
166
|
-
* @param {LineBreakSingleBlockAction} action - The action instance.
|
|
167
|
-
* @param {RTEImageBlock} target - The image block.
|
|
168
|
-
*/
|
|
169
|
-
handleAction(action, target) {
|
|
170
|
-
const insertNewParagraphAction = new BreakSingleBlockAction(action.startContainerNode, action.startOffset);
|
|
171
|
-
target.apply(insertNewParagraphAction);
|
|
172
|
-
const newBlock = insertNewParagraphAction.newBlock;
|
|
173
|
-
if (newBlock) {
|
|
174
|
-
action.lineBreakNode = newBlock.children[0];
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Insert a line break node into multiple blocks selection at special position strategy.
|
|
181
|
-
*/
|
|
182
|
-
class ImageInsertLineBreakWithBlocksStrategy extends codeBlock.ActionHandleStrategy {
|
|
183
|
-
/**
|
|
184
|
-
* @inheritDoc
|
|
185
|
-
*/
|
|
186
|
-
handleAction(action, target) {
|
|
187
|
-
action.lineBreakNode = this.lineBreakMultipleBlocks(action.selectedBlocks, target);
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Inserts a new paragraph block with a line break after a selected block of text in a rich text editor.
|
|
191
|
-
*
|
|
192
|
-
* @param {RTEBlock[]} selectedBlocks - An array of RTEBlock objects that represent the blocks that have been selected for a specific action in the Rich Text Editor.
|
|
193
|
-
* @param {RTEImageBlock} target - The image block.
|
|
194
|
-
* @returns {Nullable<RTETextNode>} Returns a Nullable RTETextNode.
|
|
195
|
-
*/
|
|
196
|
-
lineBreakMultipleBlocks(selectedBlocks, target) {
|
|
197
|
-
const newParagraph = codeBlock.RTETextBlock.from({
|
|
198
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
199
|
-
type: 'paragraph',
|
|
200
|
-
nodes: [{ id: createPublicApiRuntimeMetricsSlimmer.generateUUID(), type: 'text', text: '\n' }],
|
|
201
|
-
});
|
|
202
|
-
target.parent.apply(new codeBlock.InsertBlocksAfterAction(target, newParagraph));
|
|
203
|
-
const afterNodes = this.concatBlocksNodes(selectedBlocks.slice(1));
|
|
204
|
-
if (afterNodes.length === 0 || (afterNodes[0] && afterNodes[0].text === '')) {
|
|
205
|
-
afterNodes.push(new codeBlock.RTETextNode(createPublicApiRuntimeMetricsSlimmer.generateUUID(), '\n', newParagraph));
|
|
206
|
-
}
|
|
207
|
-
newParagraph.apply(new codeBlock.AppendChildNodesAction(afterNodes));
|
|
208
|
-
return newParagraph['children'][0];
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Concat the child nodes of multiple RTEBlocks if both are not images.
|
|
212
|
-
*
|
|
213
|
-
* @param {RTEBlock[]} blocks - multiple block of content in a rich text editor, such as a paragraph, heading, image, etc.
|
|
214
|
-
* @returns {RTENode[]} Array of connected block nodes
|
|
215
|
-
*/
|
|
216
|
-
concatBlocksNodes(blocks) {
|
|
217
|
-
const nodes = [];
|
|
218
|
-
blocks.map((block) => {
|
|
219
|
-
if (block.type !== 'image') {
|
|
220
|
-
nodes.push(...block.children);
|
|
221
|
-
block.parent.apply(new codeBlock.RemoveChildAction(block));
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
return nodes;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Insert a image node at the special position of image block.
|
|
230
|
-
*/
|
|
231
|
-
class ImageBlockInsertImageStrategy extends codeBlock.ActionHandleStrategy {
|
|
232
|
-
/**
|
|
233
|
-
* @inheritDoc
|
|
234
|
-
*/
|
|
235
|
-
handleAction(action, target) {
|
|
236
|
-
const splitNode = action.splitPointNode;
|
|
237
|
-
const startOffsetOfNode = action.startOffsetOfNode;
|
|
238
|
-
const newImageBlock = action.imageBlockToBeInserted;
|
|
239
|
-
const newImageNodes = newImageBlock.children;
|
|
240
|
-
if (target.children.length < 1) {
|
|
241
|
-
target.apply(new codeBlock.AppendChildNodesAction(newImageNodes));
|
|
242
|
-
}
|
|
243
|
-
else if (this.isCaretPositionAtImageBlockEnd(target, splitNode, startOffsetOfNode)) {
|
|
244
|
-
target.parent.apply(new codeBlock.InsertBlocksAfterAction(target, newImageBlock));
|
|
245
|
-
}
|
|
246
|
-
else if (this.isCaretPositionAtImageBlockStart(target, splitNode, startOffsetOfNode)) {
|
|
247
|
-
target.parent.apply(new codeBlock.InsertBlocksBeforeAction(target, newImageBlock));
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
target.apply(new codeBlock.SplitBlockWithNodeAction(splitNode, startOffsetOfNode));
|
|
251
|
-
target.parent.apply(new codeBlock.InsertBlocksAfterAction(target, newImageBlock));
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Insert some text nodes at the behind of the node strategy.
|
|
258
|
-
*/
|
|
259
|
-
class BlockInsertNodesAfterNodeStrategy extends codeBlock.BlockReplaceNodeWithNodesStrategy {
|
|
260
|
-
/**
|
|
261
|
-
* @inheritDoc
|
|
262
|
-
*/
|
|
263
|
-
handleAction(action, target) {
|
|
264
|
-
const referNode = action.referNode;
|
|
265
|
-
const nodes = [referNode, ...action.nodesToBeInserted];
|
|
266
|
-
this.replaceNodeWithNodes(target, referNode, nodes);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* Image block
|
|
272
|
-
*/
|
|
273
|
-
class RTEImageBlock extends codeBlock.RTEBlock {
|
|
274
|
-
constructor(id) {
|
|
275
|
-
super(id);
|
|
276
|
-
this.type = 'image';
|
|
277
|
-
this.children = [];
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* Converts a VegaRTEImageBlock object into an RTEImageBlock object by mapping nodes and creating annotations.
|
|
281
|
-
*
|
|
282
|
-
* @param {VegaRTEImageBlock} block - The block object to be converted.
|
|
283
|
-
* @returns {RTEImageBlock} An instance of `RTEImageBlock`
|
|
284
|
-
*/
|
|
285
|
-
static from(block) {
|
|
286
|
-
const imageBlock = new RTEImageBlock(block.id);
|
|
287
|
-
const { annotations } = block;
|
|
288
|
-
imageBlock.children = block.nodes.map((image) => codeBlock.RTEImageNode.from(image, imageBlock));
|
|
289
|
-
if (annotations) {
|
|
290
|
-
Object.entries(annotations).forEach(([type, value]) => {
|
|
291
|
-
const item = this.createAnnotationEntity(type, value);
|
|
292
|
-
if (typeGuard.isNonNullable(item)) {
|
|
293
|
-
imageBlock.annotationMap.set(...item);
|
|
294
|
-
}
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
return imageBlock;
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* @inheritDoc
|
|
301
|
-
*/
|
|
302
|
-
toJSON() {
|
|
303
|
-
return Object.assign(Object.assign({}, super.toJSON()), { type: 'image', nodes: this.children.map((node) => node.toJSON()) });
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
* @inheritDoc
|
|
307
|
-
*/
|
|
308
|
-
isNotEmpty() {
|
|
309
|
-
return this.children.length > 0 && this.children.some((node) => node.url.length > 0);
|
|
310
|
-
}
|
|
311
|
-
/**
|
|
312
|
-
* @inheritDoc
|
|
313
|
-
*/
|
|
314
|
-
getLastNode() {
|
|
315
|
-
return this.children[this.children.length - 1];
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* Create a new image block.
|
|
319
|
-
*
|
|
320
|
-
* @returns {RTEImageBlock} - The empty image block.
|
|
321
|
-
*/
|
|
322
|
-
createNewImageBlock() {
|
|
323
|
-
return new RTEImageBlock(createPublicApiRuntimeMetricsSlimmer.generateUUID());
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* @inheritDoc
|
|
327
|
-
*/
|
|
328
|
-
clone() {
|
|
329
|
-
const clonedBlock = new RTEImageBlock(this.id);
|
|
330
|
-
clonedBlock.children = this.children.map((node) => {
|
|
331
|
-
const clonedNode = node.clone();
|
|
332
|
-
clonedNode.parent = clonedBlock;
|
|
333
|
-
return clonedNode;
|
|
334
|
-
});
|
|
335
|
-
clonedBlock.annotationMap = super.cloneAnnotations();
|
|
336
|
-
clonedBlock.parent = this.parent;
|
|
337
|
-
return clonedBlock;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
(() => {
|
|
341
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.DELETE_BLOCK_CONTENT, RTEImageBlock.name, new BlockDeleteImageStrategy());
|
|
342
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.MERGE_TWO_BLOCKS_NODES, RTEImageBlock.name, new codeBlock.BlockMergeNodesStrategy());
|
|
343
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.DELETE_CHILD, RTEImageBlock.name, new codeBlock.BlockRemoveNodeStrategy());
|
|
344
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.APPEND_CHILD_NODES, RTEImageBlock.name, new codeBlock.BlockAppendNodesStrategy());
|
|
345
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.REPLACE_CHILD_NODES, RTEImageBlock.name, new codeBlock.BlockReplaceNodesStrategy());
|
|
346
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.SPLIT_BLOCK_WITH_NODE, RTEImageBlock.name, new BlockSplitWithImageNodeStrategy());
|
|
347
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.BREAK_SINGLE_BLOCK, RTEImageBlock.name, new ImageInsertNewParagraphStrategy());
|
|
348
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.LINE_BREAK_SINGLE_BLOCK, RTEImageBlock.name, new ImageInsertLineBreakStrategy());
|
|
349
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.LINE_BREAK_MULTIPLE_BLOCKS, RTEImageBlock.name, new ImageInsertLineBreakWithBlocksStrategy());
|
|
350
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_IMAGE_TO_BLOCK, RTEImageBlock.name, new ImageBlockInsertImageStrategy());
|
|
351
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_NODES_BEFORE, RTEImageBlock.name, new codeBlock.BlockInsertNodesBeforeNodeStrategy());
|
|
352
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_NODES_AFTER, RTEImageBlock.name, new BlockInsertNodesAfterNodeStrategy());
|
|
353
|
-
})();
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* The list item block block delete text content strategy.
|
|
357
|
-
*/
|
|
358
|
-
class ListItemDeleteTextContentStrategy extends codeBlock.BlockDeleteTextContentStrategy {
|
|
359
|
-
/**
|
|
360
|
-
* Delete the list item content and delete the parent list after delete the last item.
|
|
361
|
-
*
|
|
362
|
-
* @param {DeleteBlockContentAction} action - The delete block content action instance.
|
|
363
|
-
* @param {RTEListItemBlock} target - The list item block.
|
|
364
|
-
*/
|
|
365
|
-
handleAction(action, target) {
|
|
366
|
-
const listBlock = target.parent;
|
|
367
|
-
this.deleteNodeContent(action, target);
|
|
368
|
-
if (listBlock.children.length === 0) {
|
|
369
|
-
listBlock.parent.apply(new codeBlock.RemoveChildAction(listBlock));
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* Remove list item child node strategy.
|
|
376
|
-
*/
|
|
377
|
-
class ListItemRemoveNodeStrategy extends codeBlock.ActionHandleStrategy {
|
|
378
|
-
/**
|
|
379
|
-
* Remove child node from the list item, remove the list item if the list item is empty.
|
|
380
|
-
*
|
|
381
|
-
* @param {RemoveChildAction} action - The remove child action instance.
|
|
382
|
-
* @param {RTEListItemBlock} target - The list item block.
|
|
383
|
-
*/
|
|
384
|
-
handleAction(action, target) {
|
|
385
|
-
target.children = target.children.filter((node) => node !== action.entityToBeRemoved);
|
|
386
|
-
if (target.children.length === 0 && (!target.nestList || !target.nestList.length)) {
|
|
387
|
-
target.parent.apply(new codeBlock.RemoveChildAction(target));
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Remove list item nest list block strategy.
|
|
394
|
-
*/
|
|
395
|
-
class ListItemRemoveNestListStrategy extends codeBlock.ActionHandleStrategy {
|
|
396
|
-
/**
|
|
397
|
-
* Remove the nest list block from the list item, clear the property children when the children is empty.
|
|
398
|
-
*
|
|
399
|
-
* @param {RemoveNestListAction} action - The action instance.
|
|
400
|
-
* @param {RTEListItemBlock} target - The list item block.
|
|
401
|
-
*/
|
|
402
|
-
handleAction(action, target) {
|
|
403
|
-
if (target.nestList) {
|
|
404
|
-
if (target.nestList.length > 1) {
|
|
405
|
-
target.nestList = target.nestList.filter((child) => child !== action.nestListBlockToBeRemoved);
|
|
406
|
-
}
|
|
407
|
-
else {
|
|
408
|
-
target.nestList = undefined;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* Replace list item nest list strategy.
|
|
416
|
-
*/
|
|
417
|
-
class ListItemReplaceNestListStrategy extends codeBlock.ActionHandleStrategy {
|
|
418
|
-
/**
|
|
419
|
-
* @inheritDoc
|
|
420
|
-
*/
|
|
421
|
-
handleAction(action, target) {
|
|
422
|
-
action.newList.forEach((listBlock) => {
|
|
423
|
-
listBlock.parent = target;
|
|
424
|
-
});
|
|
425
|
-
target.nestList = action.newList;
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Insert new paragraph into current list item block at special position.
|
|
431
|
-
*/
|
|
432
|
-
class ListItemInsertNewParagraphStrategy extends codeBlock.ActionHandleStrategy {
|
|
433
|
-
/**
|
|
434
|
-
* @inheritDoc
|
|
435
|
-
*/
|
|
436
|
-
handleAction(action, target) {
|
|
437
|
-
action.newBlock = this.breakSingleListItemBlock(action.startContainerNode, action.startOffset, target);
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* Breaks a single list item block at a specific position.
|
|
441
|
-
*
|
|
442
|
-
* @param {RTETextNode} splitNode - The node that needs to be split within a list item block.
|
|
443
|
-
* @param {number} startOffsetOfNode - The index within the `splitNode` where the break operation should occur.
|
|
444
|
-
* @param {RTEListItemBlock} target - The list item block.
|
|
445
|
-
* @returns {Nullable<RTEBlock>} Returns either a new `RTEListItemBlock` if the caret
|
|
446
|
-
* position is at the end of the `splitNode`, or it returns the result of splitting the block at the
|
|
447
|
-
* caret position if it is neither at the start nor at the end.
|
|
448
|
-
*/
|
|
449
|
-
breakSingleListItemBlock(splitNode, startOffsetOfNode, target) {
|
|
450
|
-
const newListItem = target.createNewListItem();
|
|
451
|
-
const newBreakNode = this.copyInlineStyleToNewNode(splitNode);
|
|
452
|
-
newListItem.apply(new codeBlock.AppendChildNodesAction([newBreakNode]));
|
|
453
|
-
if (this.isCaretPositionAtTextBlockEnd(target, splitNode, startOffsetOfNode)) {
|
|
454
|
-
return this.breakListItemAtEnd(newListItem, target);
|
|
455
|
-
}
|
|
456
|
-
else if (this.isCaretPositionAtTextBlockStart(target, splitNode, startOffsetOfNode)) {
|
|
457
|
-
target.parent.apply(new codeBlock.InsertBlocksBeforeAction(target, newListItem));
|
|
458
|
-
}
|
|
459
|
-
else {
|
|
460
|
-
const splitBlockAction = new codeBlock.SplitBlockWithNodeAction(splitNode, startOffsetOfNode);
|
|
461
|
-
target.apply(splitBlockAction);
|
|
462
|
-
return splitBlockAction.newBlock;
|
|
463
|
-
}
|
|
464
|
-
return newListItem;
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* Breaks a list item at the end and handles the insertion of a new list item or paragraph accordingly.
|
|
468
|
-
*
|
|
469
|
-
* @param {RTEListItemBlock} newListItem - Item that represents a new list item to be added to the existing list.
|
|
470
|
-
* @param {RTEListItemBlock} target - The list item block.
|
|
471
|
-
* @returns {RTEBlock} Returns a `RTEBlock`.
|
|
472
|
-
*/
|
|
473
|
-
breakListItemAtEnd(newListItem, target) {
|
|
474
|
-
const lastItem = target.parent.children[target.parent.children.length - 1];
|
|
475
|
-
const currentItemIsEmpty = target.children.length === 1 && target.children[0].isEmpty();
|
|
476
|
-
if (target === lastItem && currentItemIsEmpty) {
|
|
477
|
-
const parentParent = target.parent.parent;
|
|
478
|
-
if (parentParent['type'] !== 'list-item') {
|
|
479
|
-
const newParagraph = codeBlock.RTETextBlock.from({
|
|
480
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
481
|
-
type: 'paragraph',
|
|
482
|
-
nodes: [],
|
|
483
|
-
});
|
|
484
|
-
newParagraph.apply(new codeBlock.AppendChildNodesAction(newListItem.children));
|
|
485
|
-
parentParent.apply(new codeBlock.InsertBlocksAfterAction(target.parent, newParagraph));
|
|
486
|
-
target.parent.apply(new codeBlock.RemoveChildAction(target));
|
|
487
|
-
return newParagraph;
|
|
488
|
-
}
|
|
489
|
-
else {
|
|
490
|
-
parentParent.parent.apply(new codeBlock.InsertBlocksAfterAction(parentParent, newListItem));
|
|
491
|
-
target.parent.apply(new codeBlock.RemoveChildAction(target));
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
else {
|
|
495
|
-
target.parent.apply(new codeBlock.InsertBlocksAfterAction(target, newListItem));
|
|
496
|
-
}
|
|
497
|
-
return newListItem;
|
|
498
|
-
}
|
|
499
|
-
/**
|
|
500
|
-
* Copy the inline style to new node
|
|
501
|
-
*
|
|
502
|
-
* @param {RTETextNode} needCopedNode - The node that needed to be copied to
|
|
503
|
-
* @returns {RTETextNode} Returns a `RTETextNode`.
|
|
504
|
-
*/
|
|
505
|
-
copyInlineStyleToNewNode(needCopedNode) {
|
|
506
|
-
const textNode = needCopedNode.cloneWithText('');
|
|
507
|
-
// The link annotation doesn't need to inherit
|
|
508
|
-
textNode.annotationMap.delete(codeBlock.NodeAnnotationTypeEnum.LINK);
|
|
509
|
-
return textNode;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
/**
|
|
514
|
-
* Insert image node to list item block strategy.
|
|
515
|
-
*/
|
|
516
|
-
class ListItemInsertImageStrategy extends codeBlock.ActionHandleStrategy {
|
|
517
|
-
/**
|
|
518
|
-
* The image node can not insert into list item block, so insert image after parent list block.
|
|
519
|
-
*
|
|
520
|
-
* @param {InsertImageToBlockAction} action - The action instance.
|
|
521
|
-
* @param {RTEListItemBlock} target - The list item block.
|
|
522
|
-
*/
|
|
523
|
-
handleAction(action, target) {
|
|
524
|
-
target.parent.apply(action);
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
/**
|
|
529
|
-
* List item block
|
|
530
|
-
*/
|
|
531
|
-
class RTEListItemBlock extends codeBlock.RTETextBlock {
|
|
532
|
-
constructor(id, nestList) {
|
|
533
|
-
super(id, 'list-item');
|
|
534
|
-
/**
|
|
535
|
-
* TODO: Refactor the list item properties children and nestList, merge two properties together.
|
|
536
|
-
*
|
|
537
|
-
* 1. Update the type of `children` to include `RTEListBlock` as a possible type.
|
|
538
|
-
* 2. The list block children should text block array and nest list block array, The text block should wrap a `li` tag when rendering.
|
|
539
|
-
*/
|
|
540
|
-
this.nestList = [];
|
|
541
|
-
this.nestList = nestList;
|
|
542
|
-
}
|
|
543
|
-
/**
|
|
544
|
-
* Converts a VegaRTEListItemBlock object to an RTEListItemBlock
|
|
545
|
-
*
|
|
546
|
-
* @param {VegaRTEListBlock} block - Converts a `VegaRTEListItemBlock` object into an `RTEListItemBlock`.
|
|
547
|
-
* @returns {RTEListItemBlock} Return an instance of `RTEListItemBlock`
|
|
548
|
-
*/
|
|
549
|
-
static from(block) {
|
|
550
|
-
const listItemBlock = new RTEListItemBlock(block.id);
|
|
551
|
-
listItemBlock.children = block.nodes.map((richText) => codeBlock.RTETextNode.from(richText, listItemBlock));
|
|
552
|
-
if (block.children) {
|
|
553
|
-
listItemBlock.nestList = block.children.map((child) => {
|
|
554
|
-
const listBlock = RTEListBlock.from(child);
|
|
555
|
-
listBlock.parent = listItemBlock;
|
|
556
|
-
return listBlock;
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
|
-
const { annotations } = block;
|
|
560
|
-
if (annotations) {
|
|
561
|
-
Object.entries(annotations).forEach(([type, value]) => {
|
|
562
|
-
const item = this.createAnnotationEntity(type, value);
|
|
563
|
-
if (typeGuard.isNonNullable(item)) {
|
|
564
|
-
listItemBlock.annotationMap.set(...item);
|
|
565
|
-
}
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
return listItemBlock;
|
|
569
|
-
}
|
|
570
|
-
/**
|
|
571
|
-
* @inheritDoc
|
|
572
|
-
*/
|
|
573
|
-
toJSON() {
|
|
574
|
-
var _a;
|
|
575
|
-
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()) });
|
|
576
|
-
}
|
|
577
|
-
/**
|
|
578
|
-
* @inheritDoc
|
|
579
|
-
*/
|
|
580
|
-
cloneWithNodes(nodes) {
|
|
581
|
-
const block = new RTEListItemBlock(createPublicApiRuntimeMetricsSlimmer.generateUUID());
|
|
582
|
-
block.children = [];
|
|
583
|
-
block.apply(new codeBlock.AppendChildNodesAction(nodes));
|
|
584
|
-
return block;
|
|
585
|
-
}
|
|
586
|
-
/**
|
|
587
|
-
* @inheritDoc
|
|
588
|
-
*/
|
|
589
|
-
getLastNode() {
|
|
590
|
-
if (this.nestList && this.nestList.length > 0) {
|
|
591
|
-
const childListBlock = this.nestList[this.nestList.length - 1];
|
|
592
|
-
return childListBlock.getLastNode();
|
|
593
|
-
}
|
|
594
|
-
return super.getLastNode();
|
|
595
|
-
}
|
|
596
|
-
/**
|
|
597
|
-
* Create a new list item block.
|
|
598
|
-
*
|
|
599
|
-
* @returns {RTEListItemBlock} - A list item block.
|
|
600
|
-
*/
|
|
601
|
-
createNewListItem() {
|
|
602
|
-
return new RTEListItemBlock(createPublicApiRuntimeMetricsSlimmer.generateUUID());
|
|
603
|
-
}
|
|
604
|
-
/**
|
|
605
|
-
* @inheritDoc
|
|
606
|
-
*/
|
|
607
|
-
clone() {
|
|
608
|
-
var _a;
|
|
609
|
-
const block = new RTEListItemBlock(this.id);
|
|
610
|
-
block.children = this.children.map((node) => {
|
|
611
|
-
const clonedNode = node.clone();
|
|
612
|
-
clonedNode.parent = block;
|
|
613
|
-
return clonedNode;
|
|
614
|
-
});
|
|
615
|
-
block.annotationMap = super.cloneAnnotations();
|
|
616
|
-
block.nestList = (_a = this.nestList) === null || _a === void 0 ? void 0 : _a.map((child) => {
|
|
617
|
-
const clonedChild = child.clone();
|
|
618
|
-
clonedChild.parent = block;
|
|
619
|
-
return clonedChild;
|
|
620
|
-
});
|
|
621
|
-
block.parent = this.parent;
|
|
622
|
-
return block;
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
(() => {
|
|
626
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.DELETE_BLOCK_CONTENT, RTEListItemBlock.name, new ListItemDeleteTextContentStrategy());
|
|
627
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.LINE_BREAK_SINGLE_BLOCK, RTEListItemBlock.name, new codeBlock.BlockInsertLineBreakStrategy());
|
|
628
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.LINE_BREAK_MULTIPLE_BLOCKS, RTEListItemBlock.name, new codeBlock.BlockInsertLineBreakWithBlocksStrategy());
|
|
629
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.DELETE_CHILD, RTEListItemBlock.name, new ListItemRemoveNodeStrategy());
|
|
630
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.DELETE_NEST_LIST, RTEListItemBlock.name, new ListItemRemoveNestListStrategy());
|
|
631
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.APPEND_CHILD_NODES, RTEListItemBlock.name, new codeBlock.BlockAppendNodesStrategy());
|
|
632
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.SPLIT_BLOCK_WITH_NODE, RTEListItemBlock.name, new codeBlock.BlockSplitWithTextNodeStrategy());
|
|
633
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.REPLACE_CHILD_NODES, RTEListItemBlock.name, new codeBlock.BlockReplaceNodesStrategy());
|
|
634
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.REPLACE_NEST_LIST, RTEListItemBlock.name, new ListItemReplaceNestListStrategy());
|
|
635
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.MERGE_TWO_BLOCKS_NODES, RTEListItemBlock.name, new codeBlock.BlockMergeNodesStrategy());
|
|
636
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.BREAK_SINGLE_BLOCK, RTEListItemBlock.name, new ListItemInsertNewParagraphStrategy());
|
|
637
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_IMAGE_TO_BLOCK, RTEListItemBlock.name, new ListItemInsertImageStrategy());
|
|
638
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_NODES_BEFORE, RTEListItemBlock.name, new codeBlock.BlockInsertNodesBeforeNodeStrategy());
|
|
639
|
-
})();
|
|
640
|
-
|
|
641
|
-
/**
|
|
642
|
-
* Insert block array at the front of the block strategy.
|
|
643
|
-
*/
|
|
644
|
-
class BlockInsertBlocksBeforeStrategy extends codeBlock.ActionHandleStrategy {
|
|
645
|
-
/**
|
|
646
|
-
* @inheritDoc
|
|
647
|
-
*/
|
|
648
|
-
handleAction(action, target) {
|
|
649
|
-
this.replaceBlockWithBlocks(target, action.referBlock, [
|
|
650
|
-
...action.blocksToBeInserted,
|
|
651
|
-
action.referBlock,
|
|
652
|
-
]);
|
|
653
|
-
}
|
|
654
|
-
/**
|
|
655
|
-
* Replaces a specific block with an array of blocks within a RTEContentBlock array.
|
|
656
|
-
*
|
|
657
|
-
* @param {RTEListBlock|VegaRTEContent} target - The list block or the VegaRTEContent instance.
|
|
658
|
-
* @param {RTEBlock} referBlock - Used as a reference block to identify the block that needs to be replaced in the `blocks` array.
|
|
659
|
-
* @param {RTEBlock[]} blocks - An array of RTEBlock objects that you want to replace the `referBlock` with in the `blocks` array.
|
|
660
|
-
*/
|
|
661
|
-
replaceBlockWithBlocks(target, referBlock, blocks) {
|
|
662
|
-
if (target.children) {
|
|
663
|
-
blocks.forEach((block) => {
|
|
664
|
-
block.parent = target;
|
|
665
|
-
});
|
|
666
|
-
const arrayFixed = target.children;
|
|
667
|
-
target.children = arrayFixed.flatMap((block) => {
|
|
668
|
-
if (block === referBlock) {
|
|
669
|
-
return blocks;
|
|
670
|
-
}
|
|
671
|
-
else {
|
|
672
|
-
return block;
|
|
673
|
-
}
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* Insert block array at the behind of the block strategy.
|
|
681
|
-
*/
|
|
682
|
-
class BlockInsertBlocksAfterStrategy extends BlockInsertBlocksBeforeStrategy {
|
|
683
|
-
/**
|
|
684
|
-
* @inheritDoc
|
|
685
|
-
*/
|
|
686
|
-
handleAction(action, target) {
|
|
687
|
-
this.replaceBlockWithBlocks(target, action.referBlock, [
|
|
688
|
-
action.referBlock,
|
|
689
|
-
...action.blocksToBeInserted,
|
|
690
|
-
]);
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
/**
|
|
695
|
-
* Append new block array to list block or VegaRTEContent instance strategy.
|
|
696
|
-
*/
|
|
697
|
-
class BlockAppendBlocksStrategy extends codeBlock.ActionHandleStrategy {
|
|
698
|
-
/**
|
|
699
|
-
* @inheritDoc
|
|
700
|
-
*/
|
|
701
|
-
handleAction(action, target) {
|
|
702
|
-
const newBlocks = action.entityToBeAppended;
|
|
703
|
-
if (target.children) {
|
|
704
|
-
newBlocks.forEach((block) => {
|
|
705
|
-
block.parent = target;
|
|
706
|
-
});
|
|
707
|
-
const arrayFixed = target.children;
|
|
708
|
-
target.children = arrayFixed.concat(newBlocks);
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
/**
|
|
714
|
-
* Delete the nest list block action
|
|
715
|
-
*
|
|
716
|
-
* @example needRemovedNestList.parent.apply(new RemoveNestListAction(needRemovedNestList))
|
|
717
|
-
*/
|
|
718
|
-
class RemoveNestListAction extends codeBlock.ModifyContentAction {
|
|
719
|
-
constructor(childList) {
|
|
720
|
-
super();
|
|
721
|
-
this.type = codeBlock.ModifyContentActionType.DELETE_NEST_LIST;
|
|
722
|
-
this.nestListBlockToBeRemoved = childList;
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
/**
|
|
727
|
-
* List block or VegaRTEContent remove child block strategy.
|
|
728
|
-
*/
|
|
729
|
-
class BlockRemoveChildBlockStrategy extends codeBlock.ActionHandleStrategy {
|
|
730
|
-
/**
|
|
731
|
-
* @inheritDoc
|
|
732
|
-
*/
|
|
733
|
-
handleAction(action, target) {
|
|
734
|
-
const blockToBeRemoved = action.entityToBeRemoved;
|
|
735
|
-
if (target.children) {
|
|
736
|
-
target.children = target.children.filter((block) => block !== blockToBeRemoved);
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* List remove list item strategy.
|
|
743
|
-
*/
|
|
744
|
-
class ListRemoveListItemStrategy extends BlockRemoveChildBlockStrategy {
|
|
745
|
-
/**
|
|
746
|
-
* Remove the list item, check the list item and remove self if the list item is empty.
|
|
747
|
-
*
|
|
748
|
-
* @param {RemoveChildAction} action - The remove action instance.
|
|
749
|
-
* @param {RTEListBlock} target - The list block.
|
|
750
|
-
*/
|
|
751
|
-
handleAction(action, target) {
|
|
752
|
-
super.handleAction(action, target);
|
|
753
|
-
const parent = target.parent;
|
|
754
|
-
if (target.children.length === 0 && parent) {
|
|
755
|
-
// The parent is a list item mean the current block is a nest list, so we need to use RemoveNestListAction to remove the item
|
|
756
|
-
if (parent['type'] === 'list-item') {
|
|
757
|
-
parent.apply(new RemoveNestListAction(target));
|
|
758
|
-
}
|
|
759
|
-
else {
|
|
760
|
-
parent.apply(new codeBlock.RemoveChildAction(target));
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* Convert the selected blocks to list strategy.
|
|
768
|
-
*/
|
|
769
|
-
class ListTransformToListStrategy extends codeBlock.ActionHandleStrategy {
|
|
770
|
-
/**
|
|
771
|
-
* @inheritDoc
|
|
772
|
-
*/
|
|
773
|
-
handleAction(action, target) {
|
|
774
|
-
const selectedBlocks = action.selectedBlocks;
|
|
775
|
-
const bulletList = target.parent.createList(action.listType);
|
|
776
|
-
const isSameList = selectedBlocks.every((block) => block.parent === target);
|
|
777
|
-
if (isSameList) {
|
|
778
|
-
// Select one or more list items belonging to the same list, and all items in this list should be updated
|
|
779
|
-
bulletList.apply(new codeBlock.AppendChildNodesAction(target.children));
|
|
780
|
-
target.parent.apply(new codeBlock.InsertBlocksAfterAction(target, bulletList));
|
|
781
|
-
target.parent.apply(new codeBlock.RemoveChildAction(target));
|
|
782
|
-
selectedBlocks.forEach((block) => block.children.map((node) => node.apply(new codeBlock.SyncUpSelectionAction())));
|
|
783
|
-
}
|
|
784
|
-
else {
|
|
785
|
-
const listItems = action.selectedBlocks.map((block) => target.parent.toListItem(block));
|
|
786
|
-
bulletList.apply(new codeBlock.AppendChildNodesAction(listItems));
|
|
787
|
-
target.parent.apply(new codeBlock.InsertBlocksAfterAction(target, bulletList));
|
|
788
|
-
action.selectedBlocks.forEach((block) => {
|
|
789
|
-
block.parent.apply(new codeBlock.RemoveChildAction(block));
|
|
790
|
-
});
|
|
791
|
-
if (target.children.length === 0) {
|
|
792
|
-
target.parent.apply(new codeBlock.RemoveChildAction(target));
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* Convert the selected list block to paragraph strategy.
|
|
800
|
-
*/
|
|
801
|
-
class ListTransformToParagraphStrategy extends codeBlock.ActionHandleStrategy {
|
|
802
|
-
/**
|
|
803
|
-
* @inheritDoc
|
|
804
|
-
*/
|
|
805
|
-
handleAction(action, target) {
|
|
806
|
-
let isSelectedFirstBlock = false;
|
|
807
|
-
let isSelectedLastBlock = false;
|
|
808
|
-
const selectedBlocks = action.selectedBlocks;
|
|
809
|
-
const currentParagraph = selectedBlocks.map((block) => {
|
|
810
|
-
block.children.map((node) => node.apply(new codeBlock.SyncUpSelectionAction()));
|
|
811
|
-
if (block === target.children[0])
|
|
812
|
-
isSelectedFirstBlock = true;
|
|
813
|
-
if (block === target.children[target.children.length - 1])
|
|
814
|
-
isSelectedLastBlock = true;
|
|
815
|
-
return this.toParagraph(block);
|
|
816
|
-
});
|
|
817
|
-
if (isSelectedFirstBlock) {
|
|
818
|
-
target.parent.apply(new codeBlock.InsertBlocksBeforeAction(target, ...currentParagraph));
|
|
819
|
-
}
|
|
820
|
-
else if (isSelectedLastBlock) {
|
|
821
|
-
target.parent.apply(new codeBlock.InsertBlocksAfterAction(target, ...currentParagraph));
|
|
822
|
-
}
|
|
823
|
-
else {
|
|
824
|
-
const startIndex = target.children.indexOf(selectedBlocks[0]);
|
|
825
|
-
const lastIndex = target.children.indexOf(selectedBlocks[selectedBlocks.length - 1]);
|
|
826
|
-
const firstBulletList = target.parent.createList(target.type);
|
|
827
|
-
firstBulletList.apply(new codeBlock.AppendChildNodesAction(target.children.slice(0, startIndex)));
|
|
828
|
-
const lastBulletList = target.parent.createList(target.type);
|
|
829
|
-
lastBulletList.apply(new codeBlock.AppendChildNodesAction(target.children.slice(lastIndex + 1)));
|
|
830
|
-
target.parent.apply(new codeBlock.InsertBlocksBeforeAction(target, firstBulletList, ...currentParagraph, lastBulletList));
|
|
831
|
-
target.parent.apply(new codeBlock.RemoveChildAction(target));
|
|
832
|
-
}
|
|
833
|
-
selectedBlocks.map((block) => {
|
|
834
|
-
target.apply(new codeBlock.RemoveChildAction(block));
|
|
835
|
-
});
|
|
836
|
-
if (target.children.length === 0) {
|
|
837
|
-
target.parent.apply(new codeBlock.RemoveChildAction(target));
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
/**
|
|
841
|
-
* Converts a RTEListItemBlock to a RTETextBlock representing a paragraph.
|
|
842
|
-
*
|
|
843
|
-
* @param {RTEListItemBlock} block - The block that will be covered
|
|
844
|
-
* @returns {RTETextBlock} Returns a `RTETextBlock`.
|
|
845
|
-
*/
|
|
846
|
-
toParagraph(block) {
|
|
847
|
-
const textBlock = new codeBlock.RTETextBlock(createPublicApiRuntimeMetricsSlimmer.generateUUID(), 'paragraph');
|
|
848
|
-
textBlock.apply(new codeBlock.AppendChildNodesAction(block['children']));
|
|
849
|
-
textBlock['annotationMap'] = block['annotationMap'];
|
|
850
|
-
return textBlock;
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
/**
|
|
855
|
-
* Insert image to list block strategy.
|
|
856
|
-
*/
|
|
857
|
-
class ListInsertImageStrategy extends codeBlock.ActionHandleStrategy {
|
|
858
|
-
/**
|
|
859
|
-
* Insert image block at behind of the list item block.
|
|
860
|
-
*
|
|
861
|
-
* @param {InsertImageToBlockAction} action - The insert image action instance.
|
|
862
|
-
* @param {RTEListBlock} target - The list block.
|
|
863
|
-
*/
|
|
864
|
-
handleAction(action, target) {
|
|
865
|
-
const imageBlock = action.imageBlockToBeInserted;
|
|
866
|
-
if (target.parent['type'] !== 'list-item') {
|
|
867
|
-
target.parent.apply(new codeBlock.InsertBlocksAfterAction(target, imageBlock));
|
|
868
|
-
}
|
|
869
|
-
else {
|
|
870
|
-
target.parent.apply(action);
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
/**
|
|
876
|
-
* List block
|
|
877
|
-
*/
|
|
878
|
-
class RTEListBlock extends codeBlock.RTEBlock {
|
|
879
|
-
constructor(id, type) {
|
|
880
|
-
super(id);
|
|
881
|
-
this.type = 'bullet-list';
|
|
882
|
-
this.children = [];
|
|
883
|
-
this.type = type;
|
|
884
|
-
}
|
|
885
|
-
/**
|
|
886
|
-
* Converts a VegaRTEListBlock object to an RTEListBlock
|
|
887
|
-
*
|
|
888
|
-
* @param {VegaRTEListBlock} block - Converts a `VegaRTEListBlock` object into an `RTEListBlock`.
|
|
889
|
-
* @returns {RTEListBlock} Return an instance of `RTEListBlock`
|
|
890
|
-
*/
|
|
891
|
-
static from(block) {
|
|
892
|
-
const listBlock = new RTEListBlock(block.id, block.type);
|
|
893
|
-
listBlock.children = block.blocks.map((item) => {
|
|
894
|
-
const listItemBlock = RTEListItemBlock.from(item);
|
|
895
|
-
listItemBlock.parent = listBlock;
|
|
896
|
-
return listItemBlock;
|
|
897
|
-
});
|
|
898
|
-
return listBlock;
|
|
899
|
-
}
|
|
900
|
-
/**
|
|
901
|
-
* @inheritDoc
|
|
902
|
-
*/
|
|
903
|
-
toJSON() {
|
|
904
|
-
return Object.assign(Object.assign({}, super.toJSON()), { id: this.id, type: this.type, blocks: this.children.map((block) => block.toJSON()) });
|
|
905
|
-
}
|
|
906
|
-
/**
|
|
907
|
-
* @inheritDoc
|
|
908
|
-
*/
|
|
909
|
-
isNotEmpty() {
|
|
910
|
-
return this.children.length > 0;
|
|
911
|
-
}
|
|
912
|
-
/**
|
|
913
|
-
* @inheritDoc
|
|
914
|
-
*/
|
|
915
|
-
getLastNode() {
|
|
916
|
-
return this.children[this.children.length - 1].getLastNode();
|
|
917
|
-
}
|
|
918
|
-
/**
|
|
919
|
-
* @inheritDoc
|
|
920
|
-
*/
|
|
921
|
-
clone() {
|
|
922
|
-
const clonedListBlock = new RTEListBlock(this.id, this.type);
|
|
923
|
-
clonedListBlock.children = this.children.map((item) => {
|
|
924
|
-
const clonedListItemBlock = item.clone();
|
|
925
|
-
clonedListItemBlock.parent = clonedListBlock;
|
|
926
|
-
return clonedListItemBlock;
|
|
927
|
-
});
|
|
928
|
-
clonedListBlock.annotationMap = super.cloneAnnotations();
|
|
929
|
-
clonedListBlock.parent = this.parent;
|
|
930
|
-
return clonedListBlock;
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
(() => {
|
|
934
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.DELETE_CHILD, RTEListBlock.name, new ListRemoveListItemStrategy());
|
|
935
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_BLOCKS_BEFORE, RTEListBlock.name, new BlockInsertBlocksBeforeStrategy());
|
|
936
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_BLOCKS_AFTER, RTEListBlock.name, new BlockInsertBlocksAfterStrategy());
|
|
937
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.APPEND_CHILD_NODES, RTEListBlock.name, new BlockAppendBlocksStrategy());
|
|
938
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.TRANSFORM_LIST_BLOCK, RTEListBlock.name, new ListTransformToListStrategy());
|
|
939
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.TRANSFORM_PARAGRAPH_BLOCK, RTEListBlock.name, new ListTransformToParagraphStrategy());
|
|
940
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_IMAGE_TO_BLOCK, RTEListBlock.name, new ListInsertImageStrategy());
|
|
941
|
-
})();
|
|
942
|
-
|
|
943
|
-
/**
|
|
944
|
-
* Transform the selected text blocks to a code block strategy.
|
|
945
|
-
*/
|
|
946
|
-
class BlockTransformToCodeBlockStrategy extends codeBlock.ActionHandleStrategy {
|
|
947
|
-
/**
|
|
948
|
-
* Get the all select text and create a new code block.
|
|
949
|
-
*
|
|
950
|
-
* @param {TransformToCodeBlockAction} action - The action instance.
|
|
951
|
-
* @param {VegaRTEContent} target - The block top parent instance.
|
|
952
|
-
*/
|
|
953
|
-
handleAction(action, target) {
|
|
954
|
-
const selectedBlocks = action.selectedBlocks;
|
|
955
|
-
const codeBlock$1 = new codeBlock.RTECodeBlock(createPublicApiRuntimeMetricsSlimmer.generateUUID(), this.getCodeContent(selectedBlocks), 'plainText');
|
|
956
|
-
target.apply(new codeBlock.InsertBlocksBeforeAction(selectedBlocks[0], codeBlock$1));
|
|
957
|
-
action.newCodeBlock = codeBlock$1;
|
|
958
|
-
this.removeSelectBlocks(selectedBlocks, target);
|
|
959
|
-
}
|
|
960
|
-
/**
|
|
961
|
-
* Get the selected text block text content.
|
|
962
|
-
*
|
|
963
|
-
* @param {RTEBlock[]} selectedBlocks - The selected blocks.
|
|
964
|
-
* @returns {string} - The selected text content.
|
|
965
|
-
*/
|
|
966
|
-
getCodeContent(selectedBlocks) {
|
|
967
|
-
const selectedTextBlocks = selectedBlocks.filter((item) => item.type !== 'image' && item.type !== 'list-item');
|
|
968
|
-
return selectedTextBlocks
|
|
969
|
-
.map((block) => {
|
|
970
|
-
return block.children.map((node) => node.text).join('');
|
|
971
|
-
})
|
|
972
|
-
.join('\n');
|
|
973
|
-
}
|
|
974
|
-
/**
|
|
975
|
-
* Remove the selected blocks after append new code block.
|
|
976
|
-
*
|
|
977
|
-
* @param {RTEBlock[]} selectedBlocks - The selected blocks.
|
|
978
|
-
* @param {VegaRTEContent} target - The selected block top parent object.
|
|
979
|
-
*/
|
|
980
|
-
removeSelectBlocks(selectedBlocks, target) {
|
|
981
|
-
for (let i = 0; i < selectedBlocks.length; i++) {
|
|
982
|
-
target.apply(new codeBlock.RemoveChildAction(selectedBlocks[i]));
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
/**
|
|
988
|
-
* Class representing the content state of the rich text editor.
|
|
989
|
-
*/
|
|
990
|
-
class VegaRTEContent {
|
|
991
|
-
constructor(blocks) {
|
|
992
|
-
blocks.forEach((block) => {
|
|
993
|
-
block.parent = this;
|
|
994
|
-
});
|
|
995
|
-
this.children = blocks;
|
|
996
|
-
}
|
|
997
|
-
/**
|
|
998
|
-
* Converts a JSON array of blocks to a class array of RTEContentBlock.
|
|
999
|
-
*
|
|
1000
|
-
* @param {VegaRTEContentBlock[]} value The JSON array of blocks to convert.
|
|
1001
|
-
* @returns {VegaRTEContent} The converted array of RTEContentBlock.
|
|
1002
|
-
*/
|
|
1003
|
-
static fromJSON(value) {
|
|
1004
|
-
const blocks = value.map((block) => {
|
|
1005
|
-
switch (block.type) {
|
|
1006
|
-
case 'paragraph':
|
|
1007
|
-
case 'title':
|
|
1008
|
-
case 'subtitle':
|
|
1009
|
-
case 'heading-1':
|
|
1010
|
-
case 'heading-2':
|
|
1011
|
-
case 'heading-3': {
|
|
1012
|
-
return codeBlock.RTETextBlock.from(block);
|
|
1013
|
-
}
|
|
1014
|
-
case 'image':
|
|
1015
|
-
return RTEImageBlock.from(block);
|
|
1016
|
-
case 'bullet-list':
|
|
1017
|
-
case 'number-list':
|
|
1018
|
-
return RTEListBlock.from(block);
|
|
1019
|
-
case 'code-block':
|
|
1020
|
-
return codeBlock.RTECodeBlock.from(block);
|
|
1021
|
-
default: {
|
|
1022
|
-
throw new Error(`[Vega] Unknown block type: ${block.type}`);
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
});
|
|
1026
|
-
return new VegaRTEContent(blocks);
|
|
1027
|
-
}
|
|
1028
|
-
/**
|
|
1029
|
-
* Create an empty content state
|
|
1030
|
-
*
|
|
1031
|
-
* @returns {VegaRTEContent} An empty content state
|
|
1032
|
-
*/
|
|
1033
|
-
static createEmptyContent() {
|
|
1034
|
-
return VegaRTEContent.fromJSON([
|
|
1035
|
-
{
|
|
1036
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
1037
|
-
type: 'paragraph',
|
|
1038
|
-
nodes: [
|
|
1039
|
-
{
|
|
1040
|
-
id: createPublicApiRuntimeMetricsSlimmer.generateUUID(),
|
|
1041
|
-
type: 'text',
|
|
1042
|
-
text: '',
|
|
1043
|
-
},
|
|
1044
|
-
],
|
|
1045
|
-
},
|
|
1046
|
-
]);
|
|
1047
|
-
}
|
|
1048
|
-
/**
|
|
1049
|
-
* Clones the content state.
|
|
1050
|
-
*
|
|
1051
|
-
* @param {boolean} deep - If true, performs a deep clone of the content state.
|
|
1052
|
-
* @returns {VegaRTEContent} The cloned content state.
|
|
1053
|
-
*/
|
|
1054
|
-
clone(deep = false) {
|
|
1055
|
-
return deep
|
|
1056
|
-
? new VegaRTEContent(this.children.map((block) => block.clone()))
|
|
1057
|
-
: new VegaRTEContent([...this.children]);
|
|
1058
|
-
}
|
|
1059
|
-
/**
|
|
1060
|
-
* Converts the content state to a JSON array of blocks.
|
|
1061
|
-
*
|
|
1062
|
-
* @returns {VegaRTEContentBlock[]} The JSON array of blocks.
|
|
1063
|
-
*/
|
|
1064
|
-
toJSON() {
|
|
1065
|
-
return this.children.map((block) => block.toJSON());
|
|
1066
|
-
}
|
|
1067
|
-
/**
|
|
1068
|
-
* Internal method to add the block item, remove the block item
|
|
1069
|
-
*
|
|
1070
|
-
* @param {ModifyContentAction} action - Modify content action
|
|
1071
|
-
*/
|
|
1072
|
-
apply(action) {
|
|
1073
|
-
codeBlock.ActionHandleStrategyRegistry.executeTheStrategy(action, this);
|
|
1074
|
-
}
|
|
1075
|
-
/**
|
|
1076
|
-
* Convert text to list.
|
|
1077
|
-
*
|
|
1078
|
-
* @param {RTETextBlock} block - block
|
|
1079
|
-
* @returns {RTEListItemBlock} list item block dto.
|
|
1080
|
-
*/
|
|
1081
|
-
toListItem(block) {
|
|
1082
|
-
block.children.map((node) => node.apply(new codeBlock.SyncUpSelectionAction()));
|
|
1083
|
-
const listItemBlock = new RTEListItemBlock(createPublicApiRuntimeMetricsSlimmer.generateUUID());
|
|
1084
|
-
listItemBlock.apply(new codeBlock.AppendChildNodesAction(block['children']));
|
|
1085
|
-
listItemBlock['annotationMap'] = block['annotationMap'];
|
|
1086
|
-
return listItemBlock;
|
|
1087
|
-
}
|
|
1088
|
-
/**
|
|
1089
|
-
* create list.
|
|
1090
|
-
*
|
|
1091
|
-
* @param {ListType} type - type
|
|
1092
|
-
* @returns {RTEListBlock} list block dto.
|
|
1093
|
-
*/
|
|
1094
|
-
createList(type) {
|
|
1095
|
-
return new RTEListBlock(createPublicApiRuntimeMetricsSlimmer.generateUUID(), type);
|
|
1096
|
-
}
|
|
1097
|
-
/**
|
|
1098
|
-
* Finds a node by its ID in the content.
|
|
1099
|
-
*
|
|
1100
|
-
* @param {string} id - The ID of the node to find.
|
|
1101
|
-
* @returns {Nullable<RTENode>} The found node or null if not found.
|
|
1102
|
-
*/
|
|
1103
|
-
findNodeById(id) {
|
|
1104
|
-
return this.findNodeInBlocksById(id, this.children);
|
|
1105
|
-
}
|
|
1106
|
-
/**
|
|
1107
|
-
* Recursively searches for a node by its ID in the given blocks.
|
|
1108
|
-
*
|
|
1109
|
-
* @param {string} id - The ID of the node to find.
|
|
1110
|
-
* @param {RTEContentBlock[]} blocks - The blocks to search within.
|
|
1111
|
-
* @returns {Nullable<RTENode>} The found node or null if not found.
|
|
1112
|
-
*/
|
|
1113
|
-
findNodeInBlocksById(id, blocks) {
|
|
1114
|
-
for (const block of blocks) {
|
|
1115
|
-
if ('children' in block) {
|
|
1116
|
-
for (const node of block.children) {
|
|
1117
|
-
if (node.id === id) {
|
|
1118
|
-
return node;
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
if (block instanceof RTEListItemBlock && block.nestList) {
|
|
1123
|
-
for (const cBlock of block.nestList) {
|
|
1124
|
-
const foundNode = this.findNodeInBlocksById(id, cBlock.children);
|
|
1125
|
-
if (foundNode) {
|
|
1126
|
-
return foundNode;
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
if (block instanceof RTEListBlock && block.children) {
|
|
1131
|
-
const foundNode = this.findNodeInBlocksById(id, block.children);
|
|
1132
|
-
if (foundNode) {
|
|
1133
|
-
return foundNode;
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
return null;
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
(() => {
|
|
1141
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.DELETE_CHILD, VegaRTEContent.name, new BlockRemoveChildBlockStrategy());
|
|
1142
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.APPEND_CHILD_NODES, VegaRTEContent.name, new BlockAppendBlocksStrategy());
|
|
1143
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_BLOCKS_BEFORE, VegaRTEContent.name, new BlockInsertBlocksBeforeStrategy());
|
|
1144
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.INSERT_BLOCKS_AFTER, VegaRTEContent.name, new BlockInsertBlocksAfterStrategy());
|
|
1145
|
-
codeBlock.ActionHandleStrategyRegistry.register(codeBlock.ModifyContentActionType.TRANSFORM_TO_CODE_BLOCK, VegaRTEContent.name, new BlockTransformToCodeBlockStrategy());
|
|
1146
|
-
})();
|
|
1147
|
-
|
|
1148
|
-
exports.BreakSingleBlockAction = BreakSingleBlockAction;
|
|
1149
|
-
exports.RTEImageBlock = RTEImageBlock;
|
|
1150
|
-
exports.RTEListBlock = RTEListBlock;
|
|
1151
|
-
exports.RTEListItemBlock = RTEListItemBlock;
|
|
1152
|
-
exports.VegaRTEContent = VegaRTEContent;
|