@heartlandone/vega 2.101.0 → 2.102.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-275ea7c7.js → app-globals-49c2a999.js} +13 -12
- package/dist/cjs/{child-nodes-event-prevent-slimmer-d720d7e9.js → child-nodes-event-prevent-slimmer-574a6a1a.js} +1 -1
- package/dist/cjs/{code-block-c598832d.js → code-block-06e6591f.js} +191 -103
- package/dist/cjs/{component-usage-runtime-metrics-389d1548.js → component-usage-runtime-metrics-77f7be9f.js} +8 -5
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-4bd47aa1.js → component-value-history-controller-slimmer.abstract-f29908f8.js} +3 -3
- package/dist/cjs/{content-state-da23e822.js → content-state-8c862e5e.js} +89 -87
- package/dist/cjs/{date-required-rule-45c802d3.js → date-required-rule-b672c432.js} +1 -1
- package/dist/cjs/{design-token-9d762da0.js → design-token-351ffd2c.js} +3 -3
- package/dist/cjs/{create-public-api-runtime-metrics-slimmer-91b0cbfb.js → discriminated-3b8e72d5.js} +63 -1
- package/dist/cjs/{element-appender-slimmer-2aaf8e24.js → element-appender-slimmer-f932b166.js} +2 -2
- package/dist/cjs/{event-emit-slimmer-67b5c186.js → event-emit-slimmer-6bc675f6.js} +1 -1
- package/dist/cjs/{form-field-controller-slimmer-ac9337f4.js → form-field-controller-slimmer-5adb86ae.js} +1 -1
- package/dist/cjs/{icon-manager-be358b32.js → icon-manager-7d20b0ab.js} +6 -4
- package/dist/cjs/{image-annotation-action-378838c2.js → image-annotation-action-25907d6b.js} +6 -5
- package/dist/cjs/image-extension-1cf84f27.js +1209 -0
- package/dist/cjs/index-58ea899e.js +4 -0
- package/dist/cjs/index.cjs.js +29 -27
- package/dist/cjs/{inject-keyboard-manager-540f0876.js → inject-keyboard-manager-84d33920.js} +1 -1
- package/dist/cjs/{internal-calendar-period-factory-b11918ee.js → internal-calendar-period-factory-3c5236be.js} +1 -1
- package/dist/cjs/{internal-icon-manager-40bcac72.js → internal-icon-manager-b9702049.js} +1 -1
- package/dist/cjs/{internal-translation-controller-27bfc8c7.js → internal-translation-controller-eae8a8de.js} +11 -0
- package/dist/cjs/{internal-vega-event-manager-976b9526.js → internal-vega-event-manager-0c256d63.js} +2 -1
- package/dist/cjs/{keyboard-manager-16e96b62.js → keyboard-manager-baa83a61.js} +1 -1
- package/dist/cjs/{keyboard-manager-slimmer-0a4e556d.js → keyboard-manager-slimmer-d1974b28.js} +1 -1
- package/dist/cjs/{link-extension-f493e432.js → link-extension-2a6133b7.js} +9 -8
- package/dist/cjs/loader.cjs.js +20 -19
- package/dist/cjs/{month-view-generator-0a3e04de.js → month-view-generator-a6827548.js} +1 -1
- package/dist/cjs/{public-rules-bae12c47.js → public-rules-7f26e0ae.js} +9 -7
- package/dist/cjs/{range-9f42fb40.js → range-518b95a2.js} +1 -1
- package/dist/cjs/{responsive-format-facade-c6d7f0a1.js → responsive-format-facade-95c54444.js} +1 -1
- package/dist/cjs/{rich-text-editor-required-rule-bb232741.js → rich-text-editor-required-rule-5d0c76ec.js} +1 -1
- package/dist/cjs/{split-cell-operation-0d33123e.js → split-cell-operation-28f6f8d9.js} +16 -20
- package/dist/cjs/{state-border-formatter-dda9109a.js → state-border-formatter-6c284859.js} +1 -1
- package/dist/cjs/{string-format-strategy.abstract-3a968a59.js → string-format-strategy.abstract-f15b6196.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-2e0a838e.js → string-input-formatter-slimmer-5a3f1b55.js} +1 -1
- package/dist/cjs/{string-mask-strategy-d9f85c21.js → string-mask-strategy-af6f3ba0.js} +2 -2
- package/dist/cjs/{style-formatter-d21a9784.js → style-formatter-324211fd.js} +2 -2
- package/dist/cjs/{time-required-rule-580cbd3d.js → time-required-rule-9e714442.js} +1 -1
- package/dist/cjs/{token-extension-4badb962.js → token-extension-86723cad.js} +179 -507
- package/dist/cjs/{translation-slimmer-31cd5a57.js → translation-slimmer-0227ee24.js} +1 -1
- package/dist/cjs/{type-guard-00b8efc0.js → type-guard-29e01bd4.js} +1 -1
- package/dist/cjs/{valid-credit-card-number-rule-70885128.js → valid-credit-card-number-rule-4ec364af.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +14 -14
- package/dist/cjs/vega-app-footer.cjs.entry.js +5 -5
- package/dist/cjs/vega-app-header-button.cjs.entry.js +14 -14
- package/dist/cjs/vega-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/vega-banner.cjs.entry.js +8 -8
- package/dist/cjs/vega-bar-chart.cjs.entry.js +2 -2
- package/dist/cjs/vega-box.cjs.entry.js +8 -8
- package/dist/cjs/vega-brand-logo.cjs.entry.js +5 -5
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +6 -6
- package/dist/cjs/vega-button-circle.cjs.entry.js +11 -11
- package/dist/cjs/vega-button-group_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-button-link.cjs.entry.js +6 -6
- package/dist/cjs/vega-button.cjs.entry.js +9 -9
- package/dist/cjs/vega-calendar_5.cjs.entry.js +73 -32
- package/dist/cjs/vega-card.cjs.entry.js +7 -7
- package/dist/cjs/vega-carousel.cjs.entry.js +8 -8
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-chip.cjs.entry.js +11 -11
- package/dist/cjs/vega-code-block.cjs.entry.js +17 -17
- package/dist/cjs/vega-color-picker.cjs.entry.js +7 -7
- package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +12 -12
- package/dist/cjs/vega-color-swatch.cjs.entry.js +7 -7
- package/dist/cjs/vega-combo-box.cjs.entry.js +14 -14
- package/dist/cjs/vega-counter-badge.cjs.entry.js +2 -2
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +23 -23
- package/dist/cjs/{vega-dialog-controller-16be85d5.js → vega-dialog-controller-efc46dba.js} +6 -4
- package/dist/cjs/vega-dialog_2.cjs.entry.js +10 -10
- package/dist/cjs/vega-divider.cjs.entry.js +7 -7
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +17 -17
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/{vega-event-id-987a170c.js → vega-event-id-b5abf7c9.js} +2 -0
- package/dist/cjs/vega-field-error.cjs.entry.js +2 -2
- package/dist/cjs/vega-field-label.cjs.entry.js +7 -7
- package/dist/cjs/vega-file-uploader.cjs.entry.js +11 -11
- package/dist/cjs/vega-flag-icon.cjs.entry.js +10 -10
- package/dist/cjs/vega-flex.cjs.entry.js +8 -8
- package/dist/cjs/vega-font.cjs.entry.js +7 -7
- package/dist/cjs/vega-form.cjs.entry.js +8 -8
- package/dist/cjs/vega-grid.cjs.entry.js +7 -7
- package/dist/cjs/vega-hint.cjs.entry.js +2 -2
- package/dist/cjs/vega-icon.cjs.entry.js +9 -9
- package/dist/cjs/vega-image-uploader.cjs.entry.js +13 -13
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +15 -15
- package/dist/cjs/vega-input-numeric.cjs.entry.js +11 -11
- package/dist/cjs/vega-input-passcode.cjs.entry.js +11 -11
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +10 -10
- package/dist/cjs/vega-input-range.cjs.entry.js +9 -9
- package/dist/cjs/vega-input-select.cjs.entry.js +14 -14
- package/dist/cjs/vega-input.cjs.entry.js +14 -14
- package/dist/cjs/vega-item-toggle.cjs.entry.js +5 -5
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +19 -19
- package/dist/cjs/vega-line-chart.cjs.entry.js +2 -2
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +5 -5
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +5 -5
- package/dist/cjs/vega-pagination.cjs.entry.js +10 -10
- package/dist/cjs/vega-pie-chart.cjs.entry.js +2 -2
- package/dist/cjs/vega-popover_2.cjs.entry.js +14 -14
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-radio_2.cjs.entry.js +12 -12
- package/dist/cjs/vega-rich-text-bookmark-editor.cjs.entry.js +445 -0
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +49 -17
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +239 -51
- package/dist/cjs/vega-rich-text-find-replace-panel.cjs.entry.js +9 -9
- package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +10 -10
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +18 -18
- package/dist/cjs/vega-section-title.cjs.entry.js +2 -2
- package/dist/cjs/vega-segment-control.cjs.entry.js +5 -5
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +13 -13
- package/dist/cjs/vega-signature-capture.cjs.entry.js +15 -15
- package/dist/cjs/vega-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/vega-slot-container.cjs.entry.js +2 -2
- package/dist/cjs/vega-stepper.cjs.entry.js +8 -8
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +398 -108
- package/dist/cjs/vega-table_11.cjs.entry.js +23 -23
- package/dist/cjs/vega-text.cjs.entry.js +2 -2
- package/dist/cjs/vega-textarea.cjs.entry.js +8 -8
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +16 -16
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +7 -7
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +9 -9
- package/dist/cjs/vega.cjs.js +20 -19
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/vega-accordion/vega-accordion.js +1 -1
- package/dist/collection/components/vega-app-footer/vega-app-footer.js +1 -1
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +1 -1
- package/dist/collection/components/vega-backdrop/vega-backdrop.js +1 -1
- package/dist/collection/components/vega-banner/vega-banner.js +1 -1
- package/dist/collection/components/vega-box/vega-box.js +1 -1
- package/dist/collection/components/vega-brand-logo/vega-brand-logo.js +1 -1
- package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.js +1 -1
- package/dist/collection/components/vega-button/vega-button.js +1 -1
- package/dist/collection/components/vega-button-circle/vega-button-circle.js +1 -1
- package/dist/collection/components/vega-button-group/vega-button-group-item/vega-button-group-item.js +1 -1
- package/dist/collection/components/vega-button-group/vega-button-group.js +1 -1
- package/dist/collection/components/vega-button-link/vega-button-link.js +1 -1
- package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-preview-actions-controller.js +33 -11
- package/dist/collection/components/vega-calendar/vega-calendar-event/vega-calendar-event.js +1 -1
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/assets/delete.js +3 -0
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.js +5 -1
- package/dist/collection/components/vega-calendar/vega-calendar-event-preview/vega-calendar-event-preview.js +1 -1
- package/dist/collection/components/vega-calendar/vega-calendar-event-slot/vega-calendar-event-slot.js +1 -1
- package/dist/collection/components/vega-calendar/vega-calendar-period-switcher/vega-calendar-period-switcher.js +1 -1
- package/dist/collection/components/vega-calendar/vega-calendar.js +82 -2
- package/dist/collection/components/vega-card/vega-card.js +1 -1
- package/dist/collection/components/vega-carousel/vega-carousel.js +1 -1
- package/dist/collection/components/vega-chart/vega-bar-chart/vega-bar-chart.js +1 -1
- package/dist/collection/components/vega-chart/vega-line-chart/vega-line-chart.js +1 -1
- package/dist/collection/components/vega-chart/vega-pie-chart/vega-pie-chart.js +1 -1
- package/dist/collection/components/vega-checkbox/vega-checkbox-group/vega-checkbox-group.js +1 -1
- package/dist/collection/components/vega-checkbox/vega-checkbox.js +1 -1
- package/dist/collection/components/vega-chip/vega-chip.js +1 -1
- package/dist/collection/components/vega-code-block/vega-code-block.js +1 -1
- package/dist/collection/components/vega-color-picker/vega-color-picker.js +1 -1
- package/dist/collection/components/vega-color-swatch/vega-color-swatch-picker/vega-color-swatch-picker.js +1 -1
- package/dist/collection/components/vega-color-swatch/vega-color-swatch.js +1 -1
- package/dist/collection/components/vega-combo-box/vega-combo-box.js +1 -1
- package/dist/collection/components/vega-counter-badge/vega-counter-badge.js +1 -1
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +1 -1
- package/dist/collection/components/vega-date-picker/vega-date-picker.js +1 -1
- package/dist/collection/components/vega-dialog/vega-dialog.js +1 -1
- package/dist/collection/components/vega-divider/vega-divider.js +1 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-content-box/vega-dropdown-content-box.js +1 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-group/vega-dropdown-group.js +1 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.js +1 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +1 -1
- package/dist/collection/components/vega-field-error/vega-field-error.js +1 -1
- package/dist/collection/components/vega-field-label/vega-field-label.js +1 -1
- package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +1 -1
- package/dist/collection/components/vega-flag-icon/vega-flag-icon.js +1 -1
- package/dist/collection/components/vega-flex/vega-flex.js +1 -1
- package/dist/collection/components/vega-font/vega-font.js +1 -1
- package/dist/collection/components/vega-form/vega-form.js +1 -1
- package/dist/collection/components/vega-grid/vega-grid.js +1 -1
- package/dist/collection/components/vega-hint/vega-hint.js +1 -1
- package/dist/collection/components/vega-icon/vega-icon.js +1 -1
- package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +1 -1
- package/dist/collection/components/vega-input/vega-input.js +1 -1
- package/dist/collection/components/vega-input-credit-card/vega-input-credit-card.js +1 -1
- package/dist/collection/components/vega-input-numeric/vega-input-numeric.js +1 -1
- package/dist/collection/components/vega-input-passcode/vega-input-passcode.js +1 -1
- package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +1 -1
- package/dist/collection/components/vega-input-range/vega-input-range.js +1 -1
- package/dist/collection/components/vega-input-select/vega-input-select.js +1 -1
- package/dist/collection/components/vega-item-toggle/vega-item-toggle.js +1 -1
- package/dist/collection/components/vega-loader-wrapper/vega-loader-wrapper.js +1 -1
- package/dist/collection/components/vega-loading-indicator/vega-loading-indicator.js +1 -1
- package/dist/collection/components/vega-modal/vega-modal.js +1 -1
- package/dist/collection/components/vega-nav/vega-left-nav/vega-left-nav.js +1 -1
- package/dist/collection/components/vega-nav/vega-left-nav-group/vega-left-nav-group.js +1 -1
- package/dist/collection/components/vega-nav/vega-left-nav-link/vega-left-nav-link.js +1 -1
- package/dist/collection/components/vega-nav/vega-left-nav-section/vega-left-nav-section.js +1 -1
- package/dist/collection/components/vega-nav/vega-nav-card/vega-nav-card.js +1 -1
- package/dist/collection/components/vega-page-notification/vega-page-notification-list/vega-page-notification-list.js +1 -1
- package/dist/collection/components/vega-page-notification/vega-page-notification.js +1 -1
- package/dist/collection/components/vega-pagination/vega-pagination-page-selector-mobile/vega-pagination-page-selector-mobile.js +1 -1
- package/dist/collection/components/vega-pagination/vega-pagination-page-size-selector-mobile/vega-pagination-page-size-selector-mobile.js +1 -1
- package/dist/collection/components/vega-pagination/vega-pagination.js +1 -1
- package/dist/collection/components/vega-popover/vega-popover-content-box/vega-popover-content-box.js +1 -1
- package/dist/collection/components/vega-popover/vega-popover.js +1 -1
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.js +1 -1
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +1 -1
- package/dist/collection/components/vega-radio/vega-radio-group/vega-radio-group.js +1 -1
- package/dist/collection/components/vega-radio/vega-radio.js +1 -1
- package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-interceptor-registry.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy-registry.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.js +4 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-node-content-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-selection.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/list-transform-to-paragraph-strategy.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/paste-content-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/actions/annotation-action.abstract.js +3 -1
- package/dist/collection/components/vega-rich-text-editor/dto/actions/bold-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/clear-formatting-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/code-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/custom-style-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/delete-node-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/horizontal-alignment-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/image-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/indent-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/italic-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/link-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/link-group-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/selection-change-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/splittable-action.abstract.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/strikethrough-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/sync-up-selection-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/text-color-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/text-style-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/underline-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/annotation.abstract.js +8 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/bold-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/code-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/italic-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +3 -1
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/plain-text-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/selection-range-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-color-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/underline-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +6 -8
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/code-block.js +6 -6
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +9 -9
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +7 -7
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +13 -12
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +16 -16
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +14 -12
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/code-block/code-block-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-block-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-heading-item-block-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-item-block-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/list-block/list-title-item-block-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/predicate.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-block/paragraph-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/text-node/title-heading-node-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/decorator-node.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +5 -5
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +5 -7
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +30 -16
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/base-renderer.js +3 -1
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-renderer.abstract.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/code-block-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/html-block-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/link-wrapper-renderer.js +25 -5
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/code-block-node-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/node-renderer.abstract.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/setup.js +34 -34
- package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/blockquote-extension.js +7 -7
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/dto/rte-blockquote-block.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/filter-styles-strategies/blockquote-block/blockquote-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/renderers/blockquote-block-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/action-handler-interceptors/delete-bookmark-before-text-interceptor.js +40 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/action-handler-strategies/insert-bookmark-node-strategy.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/action-handler-strategies/update-bookmark-name-strategy.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/actions/insert-bookmark-node-action.js +17 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/actions/update-bookmark-name-action.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/anchor-to-bookmark-node-strategy.js +79 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/assets/bookmark.js +5 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/bookmark-extension.js +52 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/bookmark-node.js +91 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/renderers/bookmark-node-renderer.js +316 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/renderers/bookmark-toolbar-button-renderer.js +137 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/utils.js +47 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/slimmers/controllers/bookmark-editor-controller.js +217 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/slimmers/renderers/vega-rich-text-bookmark-editor-renderer.js +116 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/vega-rich-text-bookmark-editor.css +3 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/vega-rich-text-bookmark-editor.js +261 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/copy/copy-extension.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/find-replace/vega-rich-text-find-replace-panel/vega-rich-text-find-replace-panel.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/function-block.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/logic-control-block.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/logic-control-node.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/function-extension.js +15 -15
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/function-block-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/logic-control-block-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/dto/horizontal-line-block.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/dto/horizontal-line-node.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/filter-styles-strategies/horizontal-line-block/horizontal-line-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/horizontal-line-extension.js +6 -6
- package/dist/collection/components/vega-rich-text-editor/extensions/horizontal-line/renderers/horizontal-line-block-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/line-height/actions/line-height-annotation-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/line-height/element-to-dto-strategies/line-height-annotation-handler.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/extensions/line-height/line-height-extension.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/line-height/line-height-toolbar-button-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-extension.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/special-characters/vega-rich-text-special-characters-panel/vega-rich-text-special-characters-panel.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/actions/update-table-properties-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-cell-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/annotation-handler/table-head-cell-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-block.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-body-block.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.js +4 -4
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-block.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/table/dto/table-row-block.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-block/table-block-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-caption/table-caption-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/filter-styles-strategies/table-cell/table-cell-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +38 -38
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/vega-rich-text-table-properties.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-selection-widget/vega-rich-text-table-selection-widget.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/vega-rich-text-table-setting.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-extension.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node.js +1 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/word-count/word-count-extension.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/public-api.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/focus-controller.js +26 -4
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/bold-annotaion-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/code-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/color-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/html-element-to-annotation-generator.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/image-alt-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/image-size-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/indent-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/inline-html-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/italic-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/link-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/strike-through-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-align-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/text-style-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/annotation-handler/underline-annotation-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/state-entity-rendering-registry.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bold-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/clear-style-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/code-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/horizontal-alignment-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/italic-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/less-indent-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/more-indent-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/strikethrough-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-color-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/underline-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/vega-rich-text-editor-toolbar-button.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/vega-rich-text-image-editor.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-editor-controller.js +69 -5
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-type-config-controller.js +45 -1
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/vega-rich-text-link-editor-renderer.js +61 -2
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.js +1 -1
- package/dist/collection/components/vega-section-title/vega-section-title.js +1 -1
- package/dist/collection/components/vega-segment-control/vega-segment-control.js +1 -1
- package/dist/collection/components/vega-selection-chip/vega-selection-chip-group/vega-selection-chip-group.js +1 -1
- package/dist/collection/components/vega-selection-chip/vega-selection-chip.js +1 -1
- package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.js +1 -1
- package/dist/collection/components/vega-selection-tile/vega-selection-tile.js +1 -1
- package/dist/collection/components/vega-sidenav/vega-sidenav-group/vega-sidenav-group.js +1 -1
- package/dist/collection/components/vega-sidenav/vega-sidenav-link/vega-sidenav-link.js +1 -1
- package/dist/collection/components/vega-sidenav/vega-sidenav.js +1 -1
- package/dist/collection/components/vega-signature-capture/vega-signature-capture.js +1 -1
- package/dist/collection/components/vega-skeleton/vega-skeleton.js +1 -1
- package/dist/collection/components/vega-slot-container/vega-slot-container.js +1 -1
- package/dist/collection/components/vega-stepper/vega-stepper.js +1 -1
- package/dist/collection/components/vega-tab-group/helpers/vega-tab-group-width-layout-helper.js +91 -0
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-pages-controller.js +90 -16
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-slider-state-controller.js +16 -1
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-constrained-tab-label-renderer.js +52 -0
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.js +52 -10
- package/dist/collection/components/vega-tab-group/vega-tab-group-panel/vega-tab-group-panel.js +1 -1
- package/dist/collection/components/vega-tab-group/vega-tab-group.css +51 -1
- package/dist/collection/components/vega-tab-group/vega-tab-group.js +46 -1
- package/dist/collection/components/vega-table/vega-table-body/vega-table-body.js +1 -1
- package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.js +1 -1
- package/dist/collection/components/vega-table/vega-table-expand-row/vega-table-expand-row.js +1 -1
- package/dist/collection/components/vega-table/vega-table-foot/vega-table-foot.js +1 -1
- package/dist/collection/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.js +1 -1
- package/dist/collection/components/vega-table/vega-table-foot-row/vega-table-foot-row.js +1 -1
- package/dist/collection/components/vega-table/vega-table-head/vega-table-head.js +1 -1
- package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.js +1 -1
- package/dist/collection/components/vega-table/vega-table-head-row/vega-table-head-row.js +1 -1
- package/dist/collection/components/vega-table/vega-table-row/vega-table-row.js +1 -1
- package/dist/collection/components/vega-table/vega-table.js +1 -1
- package/dist/collection/components/vega-text/vega-text.js +1 -1
- package/dist/collection/components/vega-textarea/vega-textarea.js +1 -1
- package/dist/collection/components/vega-time-picker/vega-time-picker-dropdown/vega-time-picker-dropdown.js +1 -1
- package/dist/collection/components/vega-time-picker/vega-time-picker.js +1 -1
- package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.js +1 -1
- package/dist/collection/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.js +1 -1
- package/dist/collection/components/vega-tooltip/vega-tooltip.js +1 -1
- package/dist/collection/components/vega-virtual-scroll/vega-virtual-scroll.js +1 -1
- package/dist/collection/constants/ui.js +1 -0
- package/dist/collection/global/scripts/before-vega-load.js +2 -0
- package/dist/collection/helpers/common/wait-for-vega-handler.js +5 -2
- package/dist/collection/helpers/dialog/vega-dialog-controller.js +5 -2
- package/dist/collection/helpers/discriminator/discriminated.js +77 -0
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +2 -1
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +1 -0
- package/dist/collection/helpers/event-manager/vega-event-manager.js +5 -2
- package/dist/collection/helpers/icon/icon-manager.js +5 -2
- package/dist/collection/helpers/loading-indicator/vega-loader-controller.js +5 -2
- package/dist/collection/helpers/notify/vega-notify-controller.js +5 -2
- package/dist/collection/helpers/rte-manager/dto-action-strategy-manager.js +2 -2
- package/dist/collection/helpers/rte-manager/dto-renderer-manager.js +2 -4
- package/dist/collection/helpers/skeleton-loader/vega-skeleton-loader-controller.js +5 -2
- package/dist/collection/helpers/slimmers/runtime-metrics/create-public-api-runtime-metrics-slimmer.js +1 -1
- package/dist/collection/helpers/theme/theme-manager.js +5 -2
- package/dist/collection/helpers/translation/locales/en.js +11 -0
- package/dist/collection/helpers/translation/translation.js +5 -2
- package/dist/collection/helpers/zindex/vega-z-index-manager.js +5 -2
- package/dist/esm/{app-globals-ad3c7cea.js → app-globals-da5c83c2.js} +13 -12
- package/dist/esm/{child-nodes-event-prevent-slimmer-0ebcbf47.js → child-nodes-event-prevent-slimmer-3ae5c7db.js} +1 -1
- package/dist/esm/{code-block-1cdf7a51.js → code-block-d8f83d85.js} +190 -104
- package/dist/esm/{component-usage-runtime-metrics-4b1afd04.js → component-usage-runtime-metrics-adfc80c6.js} +8 -5
- package/dist/esm/{component-value-history-controller-slimmer.abstract-bdeeb43f.js → component-value-history-controller-slimmer.abstract-642e7147.js} +3 -3
- package/dist/esm/{content-state-6eb610b8.js → content-state-486eae1d.js} +89 -87
- package/dist/esm/{date-required-rule-2ea3aec8.js → date-required-rule-08695d25.js} +1 -1
- package/dist/esm/{design-token-82a4e107.js → design-token-df3331d9.js} +3 -3
- package/dist/esm/{create-public-api-runtime-metrics-slimmer-48f85199.js → discriminated-fe5bf3c8.js} +63 -2
- package/dist/esm/{element-appender-slimmer-dd4e2908.js → element-appender-slimmer-f02a227f.js} +2 -2
- package/dist/esm/{event-emit-slimmer-12ee1593.js → event-emit-slimmer-aa7f4c6e.js} +1 -1
- package/dist/esm/{form-field-controller-slimmer-5c794b4d.js → form-field-controller-slimmer-a7c0a0f8.js} +1 -1
- package/dist/esm/{icon-manager-4ef3f6dd.js → icon-manager-236d6c23.js} +5 -3
- package/dist/esm/{image-annotation-action-cdd50dcc.js → image-annotation-action-df744ba5.js} +6 -5
- package/dist/esm/image-extension-20b39140.js +1200 -0
- package/dist/esm/index-090d31ca.js +4 -0
- package/dist/esm/index.js +25 -24
- package/dist/esm/{inject-keyboard-manager-6a10c9b7.js → inject-keyboard-manager-399ed867.js} +1 -1
- package/dist/esm/{internal-calendar-period-factory-d1a60f81.js → internal-calendar-period-factory-7b866c3b.js} +1 -1
- package/dist/esm/{internal-icon-manager-e7c57096.js → internal-icon-manager-d4d534d2.js} +1 -1
- package/dist/esm/{internal-translation-controller-fff376d2.js → internal-translation-controller-4a7ee4d5.js} +11 -0
- package/dist/esm/{internal-vega-event-manager-0c381f3b.js → internal-vega-event-manager-6eebe8f8.js} +2 -1
- package/dist/esm/{keyboard-manager-a58288df.js → keyboard-manager-f5d13a34.js} +1 -1
- package/dist/esm/{keyboard-manager-slimmer-133b86cd.js → keyboard-manager-slimmer-f40dcb54.js} +1 -1
- package/dist/esm/{link-extension-bc234cf7.js → link-extension-3f93d70d.js} +9 -8
- package/dist/esm/loader.js +20 -19
- package/dist/esm/{month-view-generator-20e32b22.js → month-view-generator-0c665987.js} +1 -1
- package/dist/esm/{public-rules-8dc3fb00.js → public-rules-470a1dac.js} +9 -7
- package/dist/esm/{range-d2439ba7.js → range-8e89fb54.js} +1 -1
- package/dist/esm/{responsive-format-facade-07843ec3.js → responsive-format-facade-55131a33.js} +1 -1
- package/dist/esm/{rich-text-editor-required-rule-a0663a84.js → rich-text-editor-required-rule-06caf383.js} +1 -1
- package/dist/esm/{split-cell-operation-1a889fa0.js → split-cell-operation-e158366a.js} +14 -18
- package/dist/esm/{state-border-formatter-3b3dcfe8.js → state-border-formatter-2b73fa08.js} +1 -1
- package/dist/esm/{string-format-strategy.abstract-44381dcb.js → string-format-strategy.abstract-8c7937e3.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-69887c40.js → string-input-formatter-slimmer-681c6b71.js} +1 -1
- package/dist/esm/{string-mask-strategy-999fba4b.js → string-mask-strategy-b8cceee6.js} +2 -2
- package/dist/esm/{style-formatter-c4192c99.js → style-formatter-fcd70869.js} +2 -2
- package/dist/esm/{time-required-rule-0554b114.js → time-required-rule-ce50859b.js} +1 -1
- package/dist/esm/{token-extension-530d9bde.js → token-extension-2401e753.js} +154 -479
- package/dist/esm/{translation-slimmer-77022f2e.js → translation-slimmer-b3f3cf65.js} +1 -1
- package/dist/esm/{type-guard-26d83e7e.js → type-guard-08c82e08.js} +1 -1
- package/dist/esm/{valid-credit-card-number-rule-f60b6904.js → valid-credit-card-number-rule-66bad519.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +14 -14
- package/dist/esm/vega-app-footer.entry.js +5 -5
- package/dist/esm/vega-app-header-button.entry.js +14 -14
- package/dist/esm/vega-backdrop.entry.js +2 -2
- package/dist/esm/vega-banner.entry.js +8 -8
- package/dist/esm/vega-bar-chart.entry.js +2 -2
- package/dist/esm/vega-box.entry.js +8 -8
- package/dist/esm/vega-brand-logo.entry.js +5 -5
- package/dist/esm/vega-breadcrumb.entry.js +6 -6
- package/dist/esm/vega-button-circle.entry.js +11 -11
- package/dist/esm/vega-button-group_2.entry.js +7 -7
- package/dist/esm/vega-button-link.entry.js +6 -6
- package/dist/esm/vega-button.entry.js +9 -9
- package/dist/esm/vega-calendar_5.entry.js +73 -32
- package/dist/esm/vega-card.entry.js +7 -7
- package/dist/esm/vega-carousel.entry.js +8 -8
- package/dist/esm/vega-checkbox_2.entry.js +9 -9
- package/dist/esm/vega-chip.entry.js +11 -11
- package/dist/esm/vega-code-block.entry.js +17 -17
- package/dist/esm/vega-color-picker.entry.js +7 -7
- package/dist/esm/vega-color-swatch-picker.entry.js +12 -12
- package/dist/esm/vega-color-swatch.entry.js +7 -7
- package/dist/esm/vega-combo-box.entry.js +14 -14
- package/dist/esm/vega-counter-badge.entry.js +2 -2
- package/dist/esm/vega-date-picker_2.entry.js +23 -23
- package/dist/esm/{vega-dialog-controller-726b74f9.js → vega-dialog-controller-f2d3b6c9.js} +5 -3
- package/dist/esm/vega-dialog_2.entry.js +10 -10
- package/dist/esm/vega-divider.entry.js +7 -7
- package/dist/esm/vega-dropdown_5.entry.js +17 -17
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/{vega-event-id-59cd9297.js → vega-event-id-6b4db259.js} +2 -1
- package/dist/esm/vega-field-error.entry.js +2 -2
- package/dist/esm/vega-field-label.entry.js +7 -7
- package/dist/esm/vega-file-uploader.entry.js +11 -11
- package/dist/esm/vega-flag-icon.entry.js +10 -10
- package/dist/esm/vega-flex.entry.js +8 -8
- package/dist/esm/vega-font.entry.js +7 -7
- package/dist/esm/vega-form.entry.js +8 -8
- package/dist/esm/vega-grid.entry.js +7 -7
- package/dist/esm/vega-hint.entry.js +2 -2
- package/dist/esm/vega-icon.entry.js +9 -9
- package/dist/esm/vega-image-uploader.entry.js +13 -13
- package/dist/esm/vega-input-credit-card.entry.js +15 -15
- package/dist/esm/vega-input-numeric.entry.js +11 -11
- package/dist/esm/vega-input-passcode.entry.js +11 -11
- package/dist/esm/vega-input-phone-number.entry.js +10 -10
- package/dist/esm/vega-input-range.entry.js +9 -9
- package/dist/esm/vega-input-select.entry.js +14 -14
- package/dist/esm/vega-input.entry.js +14 -14
- package/dist/esm/vega-item-toggle.entry.js +5 -5
- package/dist/esm/vega-left-nav_5.entry.js +19 -19
- package/dist/esm/vega-line-chart.entry.js +2 -2
- package/dist/esm/vega-loader-wrapper_2.entry.js +6 -6
- package/dist/esm/vega-page-notification_2.entry.js +4 -4
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +5 -5
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +5 -5
- package/dist/esm/vega-pagination.entry.js +10 -10
- package/dist/esm/vega-pie-chart.entry.js +2 -2
- package/dist/esm/vega-popover_2.entry.js +14 -14
- package/dist/esm/vega-progress-tracker_2.entry.js +9 -9
- package/dist/esm/vega-radio_2.entry.js +12 -12
- package/dist/esm/vega-rich-text-bookmark-editor.entry.js +441 -0
- package/dist/esm/vega-rich-text-content.entry.js +49 -17
- package/dist/esm/vega-rich-text-editor_4.entry.js +239 -51
- package/dist/esm/vega-rich-text-find-replace-panel.entry.js +9 -9
- package/dist/esm/vega-rich-text-special-characters-panel.entry.js +10 -10
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +18 -18
- package/dist/esm/vega-section-title.entry.js +2 -2
- package/dist/esm/vega-segment-control.entry.js +5 -5
- package/dist/esm/vega-selection-chip_2.entry.js +11 -11
- package/dist/esm/vega-selection-tile_2.entry.js +9 -9
- package/dist/esm/vega-sidenav_3.entry.js +13 -13
- package/dist/esm/vega-signature-capture.entry.js +15 -15
- package/dist/esm/vega-skeleton.entry.js +2 -2
- package/dist/esm/vega-slot-container.entry.js +2 -2
- package/dist/esm/vega-stepper.entry.js +8 -8
- package/dist/esm/vega-tab-group_2.entry.js +398 -108
- package/dist/esm/vega-table_11.entry.js +23 -23
- package/dist/esm/vega-text.entry.js +2 -2
- package/dist/esm/vega-textarea.entry.js +8 -8
- package/dist/esm/vega-time-picker_2.entry.js +16 -16
- package/dist/esm/vega-toggle-switch.entry.js +7 -7
- package/dist/esm/vega-tooltip_2.entry.js +9 -9
- package/dist/esm/vega.js +20 -19
- package/dist/sri/vega-sri-manifest.json +419 -415
- package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-preview-actions-controller.d.ts +2 -0
- package/dist/types/components/vega-calendar/types.d.ts +6 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/assets/delete.d.ts +3 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/slimmers/renderers/vega-calendar-event-preview-detail-renderer.d.ts +1 -0
- package/dist/types/components/vega-calendar/vega-calendar.d.ts +21 -1
- package/dist/types/components/vega-rich-text-editor/dto/actions/annotation-action.abstract.d.ts +3 -1
- package/dist/types/components/vega-rich-text-editor/dto/actions/bold-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/clear-formatting-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/code-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/custom-style-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/delete-node-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/horizontal-alignment-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/image-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/indent-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/italic-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/link-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/link-group-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/selection-change-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/splittable-action.abstract.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/strikethrough-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/sync-up-selection-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/text-color-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/text-style-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/underline-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation.abstract.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/bold-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/code-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/italic-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/plain-text-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/selection-range-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/text-color-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/underline-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +3 -6
- package/dist/types/components/vega-rich-text-editor/dto/blocks/code-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +2 -3
- package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +3 -3
- package/dist/types/components/vega-rich-text-editor/dto/filter-styles-strategies/filter-styles-strategy-registry.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/nodes/code-block-node.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/dto/nodes/decorator-node.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +3 -6
- package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +9 -2
- package/dist/types/components/vega-rich-text-editor/dto/renderers/base-renderer.d.ts +3 -1
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-renderer.abstract.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/code-block-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/html-block-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/link-wrapper-renderer.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/code-block-node-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/node-renderer.abstract.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/base-extension-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/dto/rte-blockquote-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/renderers/blockquote-block-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/action-handler-interceptors/delete-bookmark-before-text-interceptor.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/action-handler-strategies/insert-bookmark-node-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/action-handler-strategies/update-bookmark-name-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/actions/insert-bookmark-node-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/actions/update-bookmark-name-action.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/anchor-to-bookmark-node-strategy.d.ts +52 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/assets/bookmark.d.ts +5 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/bookmark-extension.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/bookmark-node.d.ts +62 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/renderers/bookmark-node-renderer.d.ts +128 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/renderers/bookmark-toolbar-button-renderer.d.ts +46 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/utils.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/slimmers/controllers/bookmark-editor-controller.d.ts +86 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/slimmers/renderers/vega-rich-text-bookmark-editor-renderer.d.ts +28 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/types.d.ts +7 -0
- package/dist/types/components/vega-rich-text-editor/extensions/bookmark/vega-rich-text-bookmark-editor/vega-rich-text-bookmark-editor.d.ts +77 -0
- package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/function-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/logic-control-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/logic-control-node.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/extensions/functions/renderers/function-block-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/functions/renderers/logic-control-block-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/dto/horizontal-line-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/dto/horizontal-line-node.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/horizontal-line/renderers/horizontal-line-block-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/line-height/actions/line-height-annotation-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-annotations-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-cell-annotations-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/table-head-cell-annotations-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/actions/update-table-properties-action.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-body-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-caption-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-cell-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-head-cell-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/extensions/table/dto/table-row-block.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-body-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-caption-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-cell-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-cell-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-head-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/table/renderers/table-row-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node.d.ts +1 -2
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/public-api.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/focus-controller.d.ts +12 -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 +1 -1
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-editor-controller.d.ts +11 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/controllers/link-type-config-controller.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/vega-rich-text-link-editor-renderer.d.ts +8 -0
- package/dist/types/components/vega-tab-group/helpers/vega-tab-group-width-layout-helper.d.ts +63 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-pages-controller.d.ts +14 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-slider-state-controller.d.ts +3 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-constrained-tab-label-renderer.d.ts +17 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.d.ts +3 -0
- package/dist/types/components/vega-tab-group/types.d.ts +10 -0
- package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +22 -0
- package/dist/types/components.d.ts +111 -1
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/dialog/vega-dialog-controller.d.ts +3 -2
- package/dist/types/helpers/discriminator/discriminated.d.ts +75 -0
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
- package/dist/types/helpers/event-manager/vega-event-manager.d.ts +3 -1
- package/dist/types/helpers/icon/icon-manager.d.ts +3 -1
- package/dist/types/helpers/loading-indicator/vega-loader-controller.d.ts +3 -1
- package/dist/types/helpers/notify/vega-notify-controller.d.ts +3 -1
- package/dist/types/helpers/skeleton-loader/vega-skeleton-loader-controller.d.ts +3 -1
- package/dist/types/helpers/slimmers/runtime-metrics/create-public-api-runtime-metrics-slimmer.d.ts +1 -1
- package/dist/types/helpers/theme/theme-manager.d.ts +3 -1
- package/dist/types/helpers/translation/interface.d.ts +11 -0
- package/dist/types/helpers/translation/translation.d.ts +3 -1
- package/dist/types/helpers/zindex/vega-z-index-manager.d.ts +3 -1
- package/dist/types/types/components.type.d.ts +2 -0
- package/dist/types/vega-slimmer/src/common/helpers/global-slimmer-registry.d.ts +10 -3
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-68ca8d3c.entry.js → p-013939ea.entry.js} +1 -1
- package/dist/vega/{p-2dda5c65.entry.js → p-0338f621.entry.js} +1 -1
- package/dist/vega/{p-6ae93679.entry.js → p-03efc67a.entry.js} +1 -1
- package/dist/vega/p-040bd9ca.js +1 -0
- package/dist/vega/p-049e64b1.entry.js +1 -0
- package/dist/vega/{p-5c9c0c0d.entry.js → p-061a76c3.entry.js} +1 -1
- package/dist/vega/{p-6fae6768.js → p-087240db.js} +1 -1
- package/dist/vega/{p-a54ed341.entry.js → p-0e0e66c9.entry.js} +1 -1
- package/dist/vega/p-109f0e33.entry.js +1 -0
- package/dist/vega/p-15052b2e.entry.js +1 -0
- package/dist/vega/p-18ddc6a4.entry.js +1 -0
- package/dist/vega/p-197388a5.entry.js +1 -0
- package/dist/vega/{p-a8a246e8.entry.js → p-1b97e751.entry.js} +1 -1
- package/dist/vega/{p-764b4e51.entry.js → p-1d8a8507.entry.js} +1 -1
- package/dist/vega/p-2256eb09.entry.js +1 -0
- package/dist/vega/{p-60a74fb7.js → p-23781e76.js} +1 -1
- package/dist/vega/p-25e51acb.js +1 -0
- package/dist/vega/{p-b2a4314a.js → p-277aab9b.js} +1 -1
- package/dist/vega/p-27c9c2a5.entry.js +1 -0
- package/dist/vega/p-28c16885.js +1 -0
- package/dist/vega/p-29584bb5.js +1 -0
- package/dist/vega/p-2f5c4b61.entry.js +1 -0
- package/dist/vega/p-30cc31dd.entry.js +1 -0
- package/dist/vega/{p-d3e99d4a.entry.js → p-325b804d.entry.js} +1 -1
- package/dist/vega/p-372436a4.entry.js +1 -0
- package/dist/vega/{p-96c090c4.js → p-381d8781.js} +1 -1
- package/dist/vega/p-38c551a9.entry.js +1 -0
- package/dist/vega/{p-4ea477d5.js → p-3b6a6f08.js} +1 -1
- package/dist/vega/p-3bb7114b.js +1 -0
- package/dist/vega/{p-f48519d2.js → p-3bfb53e3.js} +1 -1
- package/dist/vega/p-3ce7521e.entry.js +1 -0
- package/dist/vega/p-3d060d2f.entry.js +1 -0
- package/dist/vega/{p-853a05eb.js → p-3ec4d710.js} +1 -1
- package/dist/vega/p-408c3ad4.entry.js +1 -0
- package/dist/vega/p-436bd1af.entry.js +1 -0
- package/dist/vega/p-43ea1e86.js +1 -0
- package/dist/vega/{p-6031bed1.js → p-44245a36.js} +1 -1
- package/dist/vega/{p-306720b8.entry.js → p-44e31581.entry.js} +1 -1
- package/dist/vega/{p-3911e760.entry.js → p-4503f5b9.entry.js} +1 -1
- package/dist/vega/{p-d6bd3ce4.entry.js → p-467e27af.entry.js} +1 -1
- package/dist/vega/{p-55c2c0df.entry.js → p-46be74fc.entry.js} +1 -1
- package/dist/vega/{p-6d90d28d.entry.js → p-48100d38.entry.js} +1 -1
- package/dist/vega/p-4c6989ae.entry.js +1 -0
- package/dist/vega/{p-941a83db.js → p-4d20a56f.js} +1 -1
- package/dist/vega/p-527c3211.entry.js +1 -0
- package/dist/vega/{p-942f9ea6.entry.js → p-553510d8.entry.js} +1 -1
- package/dist/vega/{p-178634f3.js → p-557b64bd.js} +1 -1
- package/dist/vega/{p-069bbb4a.js → p-5a347a15.js} +1 -1
- package/dist/vega/p-5c285374.js +1 -0
- package/dist/vega/p-5c6d36ef.entry.js +1 -0
- package/dist/vega/p-5c8e4e8f.js +1 -0
- package/dist/vega/p-5d427a47.entry.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-634b138c.entry.js +1 -0
- package/dist/vega/p-6beaf1c8.entry.js +1 -0
- package/dist/vega/p-6d4f6031.entry.js +1 -0
- package/dist/vega/{p-638b6a7d.js → p-7044bb48.js} +1 -1
- package/dist/vega/p-7228088b.entry.js +1 -0
- package/dist/vega/p-741e064e.entry.js +1 -0
- package/dist/vega/p-75c7f8ea.entry.js +1 -0
- package/dist/vega/p-76135e80.entry.js +1 -0
- package/dist/vega/p-7d748545.entry.js +1 -0
- package/dist/vega/{p-cb1cd15f.entry.js → p-7dfb1481.entry.js} +1 -1
- package/dist/vega/p-7f711049.js +1 -0
- package/dist/vega/p-7fd15dd1.js +1 -0
- package/dist/vega/p-80321148.entry.js +1 -0
- package/dist/vega/{p-b97ed9f7.entry.js → p-816064f2.entry.js} +1 -1
- package/dist/vega/{p-60010f14.entry.js → p-82411b76.entry.js} +1 -1
- package/dist/vega/{p-45ad2d90.entry.js → p-83f5ef3a.entry.js} +1 -1
- package/dist/vega/{p-ab9d53e9.js → p-85695819.js} +1 -1
- package/dist/vega/p-85a940c0.entry.js +1 -0
- package/dist/vega/{p-65fee02f.entry.js → p-8a38746d.entry.js} +1 -1
- package/dist/vega/p-8a4cc7c2.entry.js +1 -0
- package/dist/vega/{p-be783294.entry.js → p-8a6e378a.entry.js} +1 -1
- package/dist/vega/{p-f8d13d01.entry.js → p-8bd29577.entry.js} +1 -1
- package/dist/vega/p-8e1f30ec.entry.js +1 -0
- package/dist/vega/p-916da3ce.entry.js +1 -0
- package/dist/vega/p-92efdbf0.entry.js +1 -0
- package/dist/vega/p-9680dfe6.js +1 -0
- package/dist/vega/{p-9fb3aeeb.entry.js → p-9a0e17b2.entry.js} +1 -1
- package/dist/vega/p-9fd547f3.entry.js +1 -0
- package/dist/vega/p-a0c87e88.entry.js +1 -0
- package/dist/vega/{p-e48b7a8a.entry.js → p-a261a675.entry.js} +1 -1
- package/dist/vega/p-a2fa8c93.entry.js +1 -0
- package/dist/vega/p-a5fa260b.js +1 -0
- package/dist/vega/{p-6a6c1279.js → p-a83cef5a.js} +1 -1
- package/dist/vega/{p-5536146c.js → p-abad8ffd.js} +1 -1
- package/dist/vega/p-ae12cc3f.js +3 -0
- package/dist/vega/{p-e14323f3.js → p-b1e1c7d0.js} +1 -1
- package/dist/vega/p-b48caf90.entry.js +1 -0
- package/dist/vega/{p-58c8a4ac.js → p-b68f55e2.js} +1 -1
- package/dist/vega/{p-c576e846.js → p-be0eb72f.js} +1 -1
- package/dist/vega/p-bec0e08a.entry.js +1 -0
- package/dist/vega/p-bec31ffc.entry.js +1 -0
- package/dist/vega/{p-4b35c748.js → p-bf0b46c1.js} +1 -1
- package/dist/vega/p-c0823f32.js +1 -0
- package/dist/vega/{p-f485448a.js → p-c0eb8c58.js} +1 -1
- package/dist/vega/p-c5af2ecc.entry.js +1 -0
- package/dist/vega/p-c6419eb3.entry.js +1 -0
- package/dist/vega/p-c66c6fd2.entry.js +1 -0
- package/dist/vega/{p-f01bc6a2.js → p-c6b6987e.js} +1 -1
- package/dist/vega/p-ca60a74b.entry.js +1 -0
- package/dist/vega/{p-c04a90d8.entry.js → p-cb68a43a.entry.js} +1 -1
- package/dist/vega/{p-c34f4cbc.js → p-cf5c5515.js} +1 -1
- package/dist/vega/p-d1d91f1a.js +1 -0
- package/dist/vega/p-d7e59f31.js +1 -0
- package/dist/vega/{p-6e9e7131.js → p-d86e0b01.js} +1 -1
- package/dist/vega/p-d8a0e3e0.entry.js +1 -0
- package/dist/vega/{p-cab890be.entry.js → p-d8fa2f19.entry.js} +1 -1
- package/dist/vega/{p-32f5a6dd.entry.js → p-dd273d89.entry.js} +1 -1
- package/dist/vega/p-dd673eb4.entry.js +1 -0
- package/dist/vega/{p-0eea1ca8.js → p-dffe47db.js} +1 -1
- package/dist/vega/p-e577dda8.entry.js +1 -0
- package/dist/vega/p-efef0dfe.entry.js +1 -0
- package/dist/vega/p-effbfc50.entry.js +1 -0
- package/dist/vega/p-f0b49ae4.entry.js +1 -0
- package/dist/vega/{p-beccc38c.entry.js → p-f0c6e9c5.entry.js} +1 -1
- package/dist/vega/p-f5874834.entry.js +1 -0
- package/dist/vega/{p-71813a9e.entry.js → p-f5f26b44.entry.js} +1 -1
- package/dist/vega/p-f9f96030.entry.js +1 -0
- package/dist/vega/{p-022cbf8a.js → p-fa43272c.js} +1 -1
- package/dist/vega/p-ff9090af.entry.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/image-extension-673ebe7f.js +0 -56
- package/dist/esm/image-extension-f6dbd70c.js +0 -53
- package/dist/vega/p-02c1284e.entry.js +0 -1
- package/dist/vega/p-08fd229c.js +0 -1
- package/dist/vega/p-0e298ee8.entry.js +0 -1
- package/dist/vega/p-131ce9df.entry.js +0 -1
- package/dist/vega/p-143ee395.entry.js +0 -1
- package/dist/vega/p-1dbf8d1f.js +0 -1
- package/dist/vega/p-2b26e182.entry.js +0 -1
- package/dist/vega/p-30010c41.entry.js +0 -1
- package/dist/vega/p-3460a1c5.entry.js +0 -1
- package/dist/vega/p-34b523da.entry.js +0 -1
- package/dist/vega/p-357c0226.entry.js +0 -1
- package/dist/vega/p-37d5c37e.entry.js +0 -1
- package/dist/vega/p-3d6a43df.entry.js +0 -1
- package/dist/vega/p-4b117bfd.entry.js +0 -1
- package/dist/vega/p-4e23e56c.entry.js +0 -1
- package/dist/vega/p-4e70836a.entry.js +0 -1
- package/dist/vega/p-50e8e24f.entry.js +0 -1
- package/dist/vega/p-522a6eec.entry.js +0 -1
- package/dist/vega/p-587130f6.entry.js +0 -1
- package/dist/vega/p-594cb986.entry.js +0 -1
- package/dist/vega/p-5c17ddda.entry.js +0 -1
- package/dist/vega/p-6098c4bb.js +0 -1
- package/dist/vega/p-61e63c0e.entry.js +0 -1
- package/dist/vega/p-62254dc7.entry.js +0 -1
- package/dist/vega/p-62ae9327.entry.js +0 -1
- package/dist/vega/p-66245bc0.entry.js +0 -1
- package/dist/vega/p-729529d6.entry.js +0 -1
- package/dist/vega/p-75bfbffe.entry.js +0 -1
- package/dist/vega/p-77bcdd35.js +0 -1
- package/dist/vega/p-8ce9e214.js +0 -1
- package/dist/vega/p-8e8b5790.entry.js +0 -1
- package/dist/vega/p-8ebe30a8.js +0 -1
- package/dist/vega/p-8f00dfe6.js +0 -1
- package/dist/vega/p-9236b8d9.entry.js +0 -1
- package/dist/vega/p-9402f32f.js +0 -1
- package/dist/vega/p-9fdf66a8.entry.js +0 -1
- package/dist/vega/p-a2c45173.entry.js +0 -1
- package/dist/vega/p-a6a89f09.entry.js +0 -1
- package/dist/vega/p-adc64ff6.entry.js +0 -1
- package/dist/vega/p-af0cfea0.entry.js +0 -1
- package/dist/vega/p-af0e9bd5.entry.js +0 -1
- package/dist/vega/p-afcd8f04.js +0 -1
- package/dist/vega/p-b21cc390.entry.js +0 -1
- package/dist/vega/p-b94f164a.entry.js +0 -1
- package/dist/vega/p-bbfffe6b.entry.js +0 -1
- package/dist/vega/p-c51de680.js +0 -3
- package/dist/vega/p-c601eea6.js +0 -1
- package/dist/vega/p-c6d2513c.entry.js +0 -1
- package/dist/vega/p-ca6bd3a0.entry.js +0 -1
- package/dist/vega/p-d37d2ea4.entry.js +0 -1
- package/dist/vega/p-d7838f6e.entry.js +0 -1
- package/dist/vega/p-d8c9ea46.entry.js +0 -1
- package/dist/vega/p-d9588b3f.entry.js +0 -1
- package/dist/vega/p-db69a5c9.entry.js +0 -1
- package/dist/vega/p-de1d0284.js +0 -1
- package/dist/vega/p-de6fc52c.js +0 -1
- package/dist/vega/p-e5226de6.entry.js +0 -1
- package/dist/vega/p-e8e3bf74.entry.js +0 -1
- package/dist/vega/p-e8f50fc5.js +0 -1
- package/dist/vega/p-eadc10bc.entry.js +0 -1
- package/dist/vega/p-ee329596.entry.js +0 -1
- package/dist/vega/p-f324e90e.js +0 -1
- package/dist/vega/p-f8b2dbb9.entry.js +0 -1
- package/dist/vega/p-f902305d.entry.js +0 -1
- package/dist/vega/p-f99f054c.entry.js +0 -1
- package/dist/vega/p-fe41e3b6.entry.js +0 -1
- package/dist/vega/p-ffdc25ec.js +0 -1
|
@@ -3,8 +3,9 @@ import { d as domNodeSubjectFactory } from './dom-node-subject-observer-factory-
|
|
|
3
3
|
import { e as VegaInternalRichTextEditorFlushChanges, f as VegaInternalRichTextEditorSelectionRangeChange } from './vega-internal-event-id-02093067.js';
|
|
4
4
|
import { d as dashCaseToCamel, c as camelToDashCase } from './string-a953eafc.js';
|
|
5
5
|
import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
|
6
|
-
import { i as isNonNullable } from './type-guard-
|
|
6
|
+
import { i as isNonNullable } from './type-guard-08c82e08.js';
|
|
7
7
|
import { T as TypographyUrls } from './typography-19c3b9be.js';
|
|
8
|
+
import { D as Discriminated } from './discriminated-fe5bf3c8.js';
|
|
8
9
|
import { g as generateUUID } from './misc-9fdbcfbb.js';
|
|
9
10
|
import { V as VegaInternalThemeManager } from './dark-mode-style-controller-4e04a2d3.js';
|
|
10
11
|
import { c as cleanObject } from './object-0c277f57.js';
|
|
@@ -20,6 +21,14 @@ var InternalAnnotationTypeEnum;
|
|
|
20
21
|
* Abstract class for all annotations
|
|
21
22
|
*/
|
|
22
23
|
class Annotation {
|
|
24
|
+
/**
|
|
25
|
+
* Whether the annotation only represents transient formatting state.
|
|
26
|
+
*
|
|
27
|
+
* @returns {boolean} True when the annotation should be treated as formatting-only.
|
|
28
|
+
*/
|
|
29
|
+
get isFormattingOnly() {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
23
32
|
}
|
|
24
33
|
|
|
25
34
|
var BlockAnnotationTypeEnum;
|
|
@@ -114,7 +123,7 @@ class StateEntityRenderingRegistry {
|
|
|
114
123
|
* @returns {entity is VegaRTEContent} - True if the entity is a VegaRTEContent instance, false otherwise.
|
|
115
124
|
*/
|
|
116
125
|
isVegaRTEContent(entity) {
|
|
117
|
-
return entity && entity.
|
|
126
|
+
return entity && entity.typeName === 'VegaRTEContent';
|
|
118
127
|
}
|
|
119
128
|
}
|
|
120
129
|
const stateEntityRenderingRegistry = new StateEntityRenderingRegistry();
|
|
@@ -535,7 +544,7 @@ class Predicate {
|
|
|
535
544
|
* @returns {boolean} True if the block or node instance is a text node and has a link annotation, false otherwise.
|
|
536
545
|
*/
|
|
537
546
|
static isLinkNode(blockOrNodeInstance) {
|
|
538
|
-
return (this.isTextNode(blockOrNodeInstance.
|
|
547
|
+
return (this.isTextNode(blockOrNodeInstance.typeName) &&
|
|
539
548
|
!!blockOrNodeInstance.getAnnotationByType(NodeAnnotationTypeEnum.LINK));
|
|
540
549
|
}
|
|
541
550
|
/**
|
|
@@ -545,7 +554,7 @@ class Predicate {
|
|
|
545
554
|
* @returns {boolean} True if the block or node instance is a code node, false otherwise.
|
|
546
555
|
*/
|
|
547
556
|
static isCodeNode(blockOrNodeInstance) {
|
|
548
|
-
if (this.isTextNode(blockOrNodeInstance.
|
|
557
|
+
if (this.isTextNode(blockOrNodeInstance.typeName)) {
|
|
549
558
|
const codeAnnotation = blockOrNodeInstance.getAnnotationByType(NodeAnnotationTypeEnum.CODE);
|
|
550
559
|
return !!codeAnnotation && codeAnnotation.code;
|
|
551
560
|
}
|
|
@@ -558,7 +567,7 @@ class Predicate {
|
|
|
558
567
|
* @returns {boolean} True if the block or node instance is an image node, false otherwise.
|
|
559
568
|
*/
|
|
560
569
|
static isImageNode(blockOrNodeInstance) {
|
|
561
|
-
return blockOrNodeInstance.
|
|
570
|
+
return blockOrNodeInstance.typeName === 'RTEImageNode';
|
|
562
571
|
}
|
|
563
572
|
/**
|
|
564
573
|
* Check if the given block or node instance is a code block node, which is defined as an instance of RTECodeBlockNode.
|
|
@@ -567,7 +576,7 @@ class Predicate {
|
|
|
567
576
|
* @returns {boolean} True if the block or node instance is a code block node, false otherwise.
|
|
568
577
|
*/
|
|
569
578
|
static isCodeBlockNode(blockOrNodeInstance) {
|
|
570
|
-
return blockOrNodeInstance.
|
|
579
|
+
return blockOrNodeInstance.typeName === 'RTECodeBlockNode';
|
|
571
580
|
}
|
|
572
581
|
}
|
|
573
582
|
Predicate.RTE_TEXT_NODE_CLASS_NAME = 'RTETextNode';
|
|
@@ -747,7 +756,9 @@ class LinkGroupAnnotation extends Annotation {
|
|
|
747
756
|
getAttribute(linkAnnotation) {
|
|
748
757
|
const { href, customAttribute = {} } = linkAnnotation.link;
|
|
749
758
|
const useInternalStyle = linkAnnotation.useInternalStyle;
|
|
750
|
-
const target =
|
|
759
|
+
const target = (href === null || href === void 0 ? void 0 : href.startsWith('#'))
|
|
760
|
+
? '_self'
|
|
761
|
+
: customAttribute.target || (useInternalStyle ? '_blank' : '');
|
|
751
762
|
return Object.assign(Object.assign(Object.assign({}, customAttribute), (href ? { href } : useInternalStyle ? { href } : {})), (target ? { target } : {}));
|
|
752
763
|
}
|
|
753
764
|
/**
|
|
@@ -937,8 +948,8 @@ class ActionHandlerInterceptorRegistry {
|
|
|
937
948
|
* @returns {Nullable<ActionHandlerInterceptor<T, target>>} - The action handler interceptor instance or null if not found.
|
|
938
949
|
*/
|
|
939
950
|
static get(action, targetClass) {
|
|
940
|
-
const targetClassName = targetClass.
|
|
941
|
-
const actionType = action instanceof ModifyContentAction ? action.type : action.
|
|
951
|
+
const targetClassName = targetClass.typeName;
|
|
952
|
+
const actionType = action instanceof ModifyContentAction ? action.type : action.typeName;
|
|
942
953
|
const strategyMap = this.registry.get(targetClassName);
|
|
943
954
|
if (strategyMap) {
|
|
944
955
|
const set = strategyMap.get(actionType);
|
|
@@ -1008,14 +1019,14 @@ class ActionHandleStrategyRegistry {
|
|
|
1008
1019
|
const interceptor = ActionHandlerInterceptorRegistry.get(action, RTEInstance);
|
|
1009
1020
|
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
1010
1021
|
const executeStrategy = () => {
|
|
1011
|
-
const actionType = action instanceof ModifyContentAction ? action.type : action.
|
|
1012
|
-
const strategy = ActionHandleStrategyRegistry.get(actionType, RTEInstance.
|
|
1022
|
+
const actionType = action instanceof ModifyContentAction ? action.type : action.typeName;
|
|
1023
|
+
const strategy = ActionHandleStrategyRegistry.get(actionType, RTEInstance.typeName);
|
|
1013
1024
|
if (strategy) {
|
|
1014
1025
|
action['executedFlag'] = true;
|
|
1015
1026
|
return strategy.execute(action, RTEInstance);
|
|
1016
1027
|
}
|
|
1017
1028
|
else {
|
|
1018
|
-
LogUtility.warn(`Type ${actionType} action handle strategy is not registered in class ${RTEInstance.
|
|
1029
|
+
LogUtility.warn(`Type ${actionType} action handle strategy is not registered in class ${RTEInstance.typeName}`);
|
|
1019
1030
|
}
|
|
1020
1031
|
};
|
|
1021
1032
|
if (interceptor) {
|
|
@@ -1033,7 +1044,7 @@ class ActionHandleStrategyRegistry {
|
|
|
1033
1044
|
* @returns {boolean} - Whether the action type can be handled by the strategy.
|
|
1034
1045
|
*/
|
|
1035
1046
|
static canHandle(actionType, RTEInstance) {
|
|
1036
|
-
const strategy = ActionHandleStrategyRegistry.get(actionType, RTEInstance.
|
|
1047
|
+
const strategy = ActionHandleStrategyRegistry.get(actionType, RTEInstance.typeName);
|
|
1037
1048
|
return strategy ? true : false;
|
|
1038
1049
|
}
|
|
1039
1050
|
}
|
|
@@ -1388,7 +1399,7 @@ class RTEFilterStylesStrategyRegistry {
|
|
|
1388
1399
|
* Registers a filter styles strategy for a specific DTO class name.
|
|
1389
1400
|
* Duplicate strategy instances are ignored.
|
|
1390
1401
|
*
|
|
1391
|
-
* @param {string} dtoClassName - The DTO class name (e.g. `RTEListBlock.
|
|
1402
|
+
* @param {string} dtoClassName - The DTO class name (e.g. `RTEListBlock.typeName`).
|
|
1392
1403
|
* @param {RTEFilterStylesStrategy} strategy - The strategy instance to register.
|
|
1393
1404
|
*/
|
|
1394
1405
|
static register(dtoClassName, strategy) {
|
|
@@ -1417,7 +1428,7 @@ class RTEFilterStylesStrategyRegistry {
|
|
|
1417
1428
|
* The instance is also passed to matched strategies so they can make decisions from DTO annotations.
|
|
1418
1429
|
*/
|
|
1419
1430
|
static executeTheStrategyFilterAction(blockOrNodeInstance, styles, classNames) {
|
|
1420
|
-
const dtoClassName = blockOrNodeInstance.
|
|
1431
|
+
const dtoClassName = blockOrNodeInstance.typeName;
|
|
1421
1432
|
const strategies = this.getStrategies(dtoClassName);
|
|
1422
1433
|
const matchedStrategies = strategies.filter((strategy) => {
|
|
1423
1434
|
return strategy.canFilter(blockOrNodeInstance);
|
|
@@ -1483,14 +1494,10 @@ var NodeTypeEnum;
|
|
|
1483
1494
|
/**
|
|
1484
1495
|
* Abstract class for all nodes
|
|
1485
1496
|
*/
|
|
1486
|
-
class RTENode {
|
|
1497
|
+
class RTENode extends Discriminated {
|
|
1487
1498
|
constructor(id, annotationMap) {
|
|
1499
|
+
super();
|
|
1488
1500
|
this.annotationMap = new Map();
|
|
1489
|
-
/**
|
|
1490
|
-
* Minimize-safe type discriminator. Each concrete sub-class declares its own
|
|
1491
|
-
* `static readonly dtoName = 'ClassName'`.
|
|
1492
|
-
*/
|
|
1493
|
-
this.dtoName = this.constructor.name;
|
|
1494
1501
|
this.id = id;
|
|
1495
1502
|
if (annotationMap) {
|
|
1496
1503
|
this.annotationMap = annotationMap;
|
|
@@ -1504,7 +1511,7 @@ class RTENode {
|
|
|
1504
1511
|
* @param {VegaRTETransformOptions} options - Options for transforming the node.
|
|
1505
1512
|
*/
|
|
1506
1513
|
static from(json, parentBlock, options) {
|
|
1507
|
-
throw new Error(`[Vega] ${this.
|
|
1514
|
+
throw new Error(`[Vega] ${this.typeName}.from(${JSON.stringify(json)}, ${parentBlock}, ${options}) is not implemented. Please implement this method in the subclass.`);
|
|
1508
1515
|
}
|
|
1509
1516
|
/**
|
|
1510
1517
|
* Creates different types of text annotations based on the provided type and value.
|
|
@@ -1693,6 +1700,7 @@ class RTENode {
|
|
|
1693
1700
|
doModifyActionApply(action) {
|
|
1694
1701
|
}
|
|
1695
1702
|
}
|
|
1703
|
+
RTENode.typeName = 'RTENode';
|
|
1696
1704
|
|
|
1697
1705
|
/**
|
|
1698
1706
|
* RTEDTOClassManager is a singleton class that manages the registration and retrieval of RTE DTO classes.
|
|
@@ -1747,14 +1755,10 @@ const RTEDTOClassManager$1 = new RTEDTOClassManager();
|
|
|
1747
1755
|
/**
|
|
1748
1756
|
* Abstract class for block
|
|
1749
1757
|
*/
|
|
1750
|
-
class RTEBlock {
|
|
1758
|
+
class RTEBlock extends Discriminated {
|
|
1751
1759
|
constructor(id) {
|
|
1760
|
+
super();
|
|
1752
1761
|
this.annotationMap = new Map();
|
|
1753
|
-
/**
|
|
1754
|
-
* Minimize-safe type discriminator. Each concrete sub-class declares its own
|
|
1755
|
-
* `static readonly dtoName = 'ClassName'`.
|
|
1756
|
-
*/
|
|
1757
|
-
this.dtoName = this.constructor.name;
|
|
1758
1762
|
this.id = id;
|
|
1759
1763
|
}
|
|
1760
1764
|
/**
|
|
@@ -1764,7 +1768,7 @@ class RTEBlock {
|
|
|
1764
1768
|
* @param {VegaRTETransformOptions} options - Options for transforming the block.
|
|
1765
1769
|
*/
|
|
1766
1770
|
static from(json, options) {
|
|
1767
|
-
throw new Error(`[Vega] ${this.
|
|
1771
|
+
throw new Error(`[Vega] ${this.typeName}.from(${JSON.stringify(json)}, ${options}) is not implemented. Please implement this method in the subclass.`);
|
|
1768
1772
|
}
|
|
1769
1773
|
/**
|
|
1770
1774
|
* Generates block children from an array of VegaRTEContentBlock.
|
|
@@ -2017,7 +2021,7 @@ class RTEBlock {
|
|
|
2017
2021
|
this.doAnnotationActionApply(action);
|
|
2018
2022
|
}
|
|
2019
2023
|
else {
|
|
2020
|
-
const strategy = ActionHandleStrategyRegistry.get(action.
|
|
2024
|
+
const strategy = ActionHandleStrategyRegistry.get(action.typeName, this.typeName);
|
|
2021
2025
|
if (strategy) {
|
|
2022
2026
|
strategy.execute(action, this);
|
|
2023
2027
|
}
|
|
@@ -2032,6 +2036,7 @@ class RTEBlock {
|
|
|
2032
2036
|
return new Map(Array.from(this.annotationMap.entries()).map(([key, value]) => [key, value.clone()]));
|
|
2033
2037
|
}
|
|
2034
2038
|
}
|
|
2039
|
+
RTEBlock.typeName = 'RTEBlock';
|
|
2035
2040
|
|
|
2036
2041
|
/**
|
|
2037
2042
|
* Append children to a block or rte content
|
|
@@ -2131,8 +2136,9 @@ class TextStyleAnnotation extends BlockAnnotation {
|
|
|
2131
2136
|
/**
|
|
2132
2137
|
* Abstract class for annotation actions
|
|
2133
2138
|
*/
|
|
2134
|
-
class AnnotationAction {
|
|
2139
|
+
class AnnotationAction extends Discriminated {
|
|
2135
2140
|
}
|
|
2141
|
+
AnnotationAction.typeName = 'AnnotationAction';
|
|
2136
2142
|
|
|
2137
2143
|
/**
|
|
2138
2144
|
* Action to change the text style of a block
|
|
@@ -2153,6 +2159,7 @@ class TextStyleAnnotationAction extends AnnotationAction {
|
|
|
2153
2159
|
return new TextStyleAnnotation(this.textStyle);
|
|
2154
2160
|
}
|
|
2155
2161
|
}
|
|
2162
|
+
TextStyleAnnotationAction.typeName = 'TextStyleAnnotationAction';
|
|
2156
2163
|
|
|
2157
2164
|
/**
|
|
2158
2165
|
* Annotation to make text a link
|
|
@@ -2225,6 +2232,7 @@ class TextSplittableAction extends AnnotationAction {
|
|
|
2225
2232
|
this.doSplit = true;
|
|
2226
2233
|
}
|
|
2227
2234
|
}
|
|
2235
|
+
TextSplittableAction.typeName = 'TextSplittableAction';
|
|
2228
2236
|
|
|
2229
2237
|
/**
|
|
2230
2238
|
* Action to toggle link annotation
|
|
@@ -2250,6 +2258,7 @@ class LinkAnnotationAction extends TextSplittableAction {
|
|
|
2250
2258
|
return new LinkAnnotation(this.link);
|
|
2251
2259
|
}
|
|
2252
2260
|
}
|
|
2261
|
+
LinkAnnotationAction.typeName = 'LinkAnnotationAction';
|
|
2253
2262
|
|
|
2254
2263
|
/**
|
|
2255
2264
|
* Action to link a group of nodes
|
|
@@ -2271,6 +2280,7 @@ class LinkGroupAnnotationAction extends AnnotationAction {
|
|
|
2271
2280
|
return new LinkGroupAnnotation(this.groupKey);
|
|
2272
2281
|
}
|
|
2273
2282
|
}
|
|
2283
|
+
LinkGroupAnnotationAction.typeName = 'LinkGroupAnnotationAction';
|
|
2274
2284
|
|
|
2275
2285
|
/**
|
|
2276
2286
|
* Default CSS style values produced by inline text-formatting annotations.
|
|
@@ -2313,6 +2323,12 @@ class BoldAnnotation extends NodeAnnotation {
|
|
|
2313
2323
|
static from(bold) {
|
|
2314
2324
|
return [NodeAnnotationTypeEnum.BOLD, new BoldAnnotation(bold)];
|
|
2315
2325
|
}
|
|
2326
|
+
/**
|
|
2327
|
+
* @inheritDoc
|
|
2328
|
+
*/
|
|
2329
|
+
get isFormattingOnly() {
|
|
2330
|
+
return true;
|
|
2331
|
+
}
|
|
2316
2332
|
/**
|
|
2317
2333
|
* Generate the JSON representation of the annotation
|
|
2318
2334
|
*
|
|
@@ -2365,6 +2381,7 @@ class BoldAnnotationAction extends TextSplittableAction {
|
|
|
2365
2381
|
return new BoldAnnotation(this.bold);
|
|
2366
2382
|
}
|
|
2367
2383
|
}
|
|
2384
|
+
BoldAnnotationAction.typeName = 'BoldAnnotationAction';
|
|
2368
2385
|
|
|
2369
2386
|
/**
|
|
2370
2387
|
* Delete the node annotation by type
|
|
@@ -2384,6 +2401,7 @@ class DeleteNodeAnnotationAction extends AnnotationAction {
|
|
|
2384
2401
|
return undefined;
|
|
2385
2402
|
}
|
|
2386
2403
|
}
|
|
2404
|
+
DeleteNodeAnnotationAction.typeName = 'DeleteNodeAnnotationAction';
|
|
2387
2405
|
|
|
2388
2406
|
/**
|
|
2389
2407
|
* The base action handle strategy class, use to modify the rich text node content or modify the annotation.
|
|
@@ -2398,7 +2416,8 @@ class ActionHandleStrategy {
|
|
|
2398
2416
|
* @returns {R} - The invoke result in special strategy.
|
|
2399
2417
|
*/
|
|
2400
2418
|
execute(action, target) {
|
|
2401
|
-
|
|
2419
|
+
const actionType = action instanceof ModifyContentAction ? action.type : action.typeName;
|
|
2420
|
+
LogUtility.log(`Executing action ${actionType} on ${target.typeName} ${target['id']}`);
|
|
2402
2421
|
return this.handleAction(action, target);
|
|
2403
2422
|
}
|
|
2404
2423
|
/**
|
|
@@ -2439,7 +2458,7 @@ class ActionHandleStrategy {
|
|
|
2439
2458
|
getRootContent(child) {
|
|
2440
2459
|
const parent = child.parent;
|
|
2441
2460
|
if (parent) {
|
|
2442
|
-
if (parent.
|
|
2461
|
+
if (parent.typeName === 'VegaRTEContent') {
|
|
2443
2462
|
return parent;
|
|
2444
2463
|
}
|
|
2445
2464
|
else {
|
|
@@ -2693,6 +2712,12 @@ class SelectionRangeAnnotation extends Annotation {
|
|
|
2693
2712
|
this.type = InternalAnnotationTypeEnum.SELECTION_RANGE;
|
|
2694
2713
|
this.range = range;
|
|
2695
2714
|
}
|
|
2715
|
+
/**
|
|
2716
|
+
* @inheritDoc
|
|
2717
|
+
*/
|
|
2718
|
+
get isFormattingOnly() {
|
|
2719
|
+
return true;
|
|
2720
|
+
}
|
|
2696
2721
|
/**
|
|
2697
2722
|
* Clone the selection range annotation
|
|
2698
2723
|
*
|
|
@@ -2721,6 +2746,12 @@ class StrikethroughAnnotation extends NodeAnnotation {
|
|
|
2721
2746
|
static from(strikethrough) {
|
|
2722
2747
|
return [NodeAnnotationTypeEnum.STRIKETHROUGH, new StrikethroughAnnotation(strikethrough)];
|
|
2723
2748
|
}
|
|
2749
|
+
/**
|
|
2750
|
+
* @inheritDoc
|
|
2751
|
+
*/
|
|
2752
|
+
get isFormattingOnly() {
|
|
2753
|
+
return true;
|
|
2754
|
+
}
|
|
2724
2755
|
/**
|
|
2725
2756
|
* Generate the JSON representation of the annotation
|
|
2726
2757
|
*
|
|
@@ -2773,6 +2804,12 @@ class UnderlineAnnotation extends NodeAnnotation {
|
|
|
2773
2804
|
static from(underline) {
|
|
2774
2805
|
return [NodeAnnotationTypeEnum.UNDERLINE, new UnderlineAnnotation(underline)];
|
|
2775
2806
|
}
|
|
2807
|
+
/**
|
|
2808
|
+
* @inheritDoc
|
|
2809
|
+
*/
|
|
2810
|
+
get isFormattingOnly() {
|
|
2811
|
+
return true;
|
|
2812
|
+
}
|
|
2776
2813
|
/**
|
|
2777
2814
|
* Generate the JSON representation of the annotation
|
|
2778
2815
|
*
|
|
@@ -2825,6 +2862,12 @@ class ItalicAnnotation extends NodeAnnotation {
|
|
|
2825
2862
|
static from(italic) {
|
|
2826
2863
|
return [NodeAnnotationTypeEnum.ITALIC, new ItalicAnnotation(italic)];
|
|
2827
2864
|
}
|
|
2865
|
+
/**
|
|
2866
|
+
* @inheritDoc
|
|
2867
|
+
*/
|
|
2868
|
+
get isFormattingOnly() {
|
|
2869
|
+
return true;
|
|
2870
|
+
}
|
|
2828
2871
|
/**
|
|
2829
2872
|
* Generate the JSON representation of the annotation
|
|
2830
2873
|
*
|
|
@@ -2890,6 +2933,12 @@ class CodeAnnotation extends NodeAnnotation {
|
|
|
2890
2933
|
whiteSpace: CODE_WHITE_SPACE,
|
|
2891
2934
|
};
|
|
2892
2935
|
}
|
|
2936
|
+
/**
|
|
2937
|
+
* @inheritDoc
|
|
2938
|
+
*/
|
|
2939
|
+
get isFormattingOnly() {
|
|
2940
|
+
return true;
|
|
2941
|
+
}
|
|
2893
2942
|
/**
|
|
2894
2943
|
* Generate the JSON representation of the annotation
|
|
2895
2944
|
*
|
|
@@ -3048,6 +3097,12 @@ class TextColorAnnotation extends NodeAnnotation {
|
|
|
3048
3097
|
static from(textColor) {
|
|
3049
3098
|
return [NodeAnnotationTypeEnum.TEXT_COLOR, new TextColorAnnotation(textColor)];
|
|
3050
3099
|
}
|
|
3100
|
+
/**
|
|
3101
|
+
* @inheritDoc
|
|
3102
|
+
*/
|
|
3103
|
+
get isFormattingOnly() {
|
|
3104
|
+
return true;
|
|
3105
|
+
}
|
|
3051
3106
|
/**
|
|
3052
3107
|
* Generate the JSON representation of the annotation
|
|
3053
3108
|
*
|
|
@@ -3106,6 +3161,7 @@ class SyncUpSelectionAction extends AnnotationAction {
|
|
|
3106
3161
|
return null;
|
|
3107
3162
|
}
|
|
3108
3163
|
}
|
|
3164
|
+
SyncUpSelectionAction.typeName = 'SyncUpSelectionAction';
|
|
3109
3165
|
|
|
3110
3166
|
/**
|
|
3111
3167
|
* Split the corresponding link group nodes *
|
|
@@ -3292,6 +3348,7 @@ class ClearFormattingAnnotationAction extends TextSplittableAction {
|
|
|
3292
3348
|
return new ClearFormattingAnnotation();
|
|
3293
3349
|
}
|
|
3294
3350
|
}
|
|
3351
|
+
ClearFormattingAnnotationAction.typeName = 'ClearFormattingAnnotationAction';
|
|
3295
3352
|
|
|
3296
3353
|
/**
|
|
3297
3354
|
* Action to toggle code annotation
|
|
@@ -3311,6 +3368,7 @@ class CodeAnnotationAction extends TextSplittableAction {
|
|
|
3311
3368
|
return new CodeAnnotation(this.code);
|
|
3312
3369
|
}
|
|
3313
3370
|
}
|
|
3371
|
+
CodeAnnotationAction.typeName = 'CodeAnnotationAction';
|
|
3314
3372
|
|
|
3315
3373
|
/**
|
|
3316
3374
|
* Action to toggle the italic annotation
|
|
@@ -3330,6 +3388,7 @@ class ItalicAnnotationAction extends TextSplittableAction {
|
|
|
3330
3388
|
return new ItalicAnnotation(this.italic);
|
|
3331
3389
|
}
|
|
3332
3390
|
}
|
|
3391
|
+
ItalicAnnotationAction.typeName = 'ItalicAnnotationAction';
|
|
3333
3392
|
|
|
3334
3393
|
/**
|
|
3335
3394
|
* Action to toggle the strikethrough annotation
|
|
@@ -3349,6 +3408,7 @@ class StrikethroughAnnotationAction extends TextSplittableAction {
|
|
|
3349
3408
|
return new StrikethroughAnnotation(this.strikethrough);
|
|
3350
3409
|
}
|
|
3351
3410
|
}
|
|
3411
|
+
StrikethroughAnnotationAction.typeName = 'StrikethroughAnnotationAction';
|
|
3352
3412
|
|
|
3353
3413
|
/**
|
|
3354
3414
|
* Action to toggle the underline annotation
|
|
@@ -3368,6 +3428,7 @@ class UnderlineAnnotationAction extends TextSplittableAction {
|
|
|
3368
3428
|
return new UnderlineAnnotation(this.underline);
|
|
3369
3429
|
}
|
|
3370
3430
|
}
|
|
3431
|
+
UnderlineAnnotationAction.typeName = 'UnderlineAnnotationAction';
|
|
3371
3432
|
|
|
3372
3433
|
/**
|
|
3373
3434
|
* The current strategy used to modify the text node annotation map.
|
|
@@ -3657,6 +3718,12 @@ class PlainTextAnnotation extends NodeAnnotation {
|
|
|
3657
3718
|
static from(plainText) {
|
|
3658
3719
|
return [NodeAnnotationTypeEnum.PLAIN_TEXT, new PlainTextAnnotation(plainText)];
|
|
3659
3720
|
}
|
|
3721
|
+
/**
|
|
3722
|
+
* @inheritDoc
|
|
3723
|
+
*/
|
|
3724
|
+
get isFormattingOnly() {
|
|
3725
|
+
return true;
|
|
3726
|
+
}
|
|
3660
3727
|
/**
|
|
3661
3728
|
* @inheritDoc
|
|
3662
3729
|
*/
|
|
@@ -3701,6 +3768,7 @@ class TextColorAnnotationAction extends TextSplittableAction {
|
|
|
3701
3768
|
return new TextColorAnnotation(this.textColor);
|
|
3702
3769
|
}
|
|
3703
3770
|
}
|
|
3771
|
+
TextColorAnnotationAction.typeName = 'TextColorAnnotationAction';
|
|
3704
3772
|
|
|
3705
3773
|
/**
|
|
3706
3774
|
* Text node
|
|
@@ -3708,7 +3776,6 @@ class TextColorAnnotationAction extends TextSplittableAction {
|
|
|
3708
3776
|
class RTETextNode extends RTENode {
|
|
3709
3777
|
constructor(id, text, parentBlock, annotationMap) {
|
|
3710
3778
|
super(id, annotationMap);
|
|
3711
|
-
this.dtoName = RTETextNode.dtoName;
|
|
3712
3779
|
this.type = NodeTypeEnum.TEXT;
|
|
3713
3780
|
this.parent = parentBlock;
|
|
3714
3781
|
this.text = text;
|
|
@@ -3944,24 +4011,24 @@ class RTETextNode extends RTENode {
|
|
|
3944
4011
|
* Registers the action strategies for the RTETextNode.
|
|
3945
4012
|
*/
|
|
3946
4013
|
registerModifyStrategy() {
|
|
3947
|
-
const dtoClassName = this.
|
|
4014
|
+
const dtoClassName = this.typeName;
|
|
3948
4015
|
if (!RTETextNode.registerActionStrategyStatus[dtoClassName]) {
|
|
3949
4016
|
if (this.isContentEditable()) {
|
|
3950
4017
|
ActionHandleStrategyRegistry.register(ModifyContentActionType.UPDATE_TEXT, dtoClassName, new NodeUpdateTextStrategy());
|
|
3951
4018
|
ActionHandleStrategyRegistry.register(ModifyContentActionType.REPLACE_SELECTED_TEXT, dtoClassName, new NodeReplaceSelectedTextStrategy());
|
|
3952
4019
|
ActionHandleStrategyRegistry.register(ModifyContentActionType.LINK_GROUP_NODE_SPLIT, dtoClassName, new LinkGroupNodeSplitStrategy());
|
|
3953
|
-
ActionHandleStrategyRegistry.register(LinkAnnotationAction.
|
|
4020
|
+
ActionHandleStrategyRegistry.register(LinkAnnotationAction.typeName, dtoClassName, new NodeUpdateAnnotationMapStrategy());
|
|
3954
4021
|
}
|
|
3955
|
-
ActionHandleStrategyRegistry.register(TextSplittableAction.
|
|
4022
|
+
ActionHandleStrategyRegistry.register(TextSplittableAction.typeName, dtoClassName, new NodeSplitTextStrategy());
|
|
3956
4023
|
ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_LINK_GROUP, dtoClassName, new DeleteLinkGroupStrategy());
|
|
3957
|
-
ActionHandleStrategyRegistry.register(BoldAnnotationAction.
|
|
3958
|
-
ActionHandleStrategyRegistry.register(ClearFormattingAnnotationAction.
|
|
3959
|
-
ActionHandleStrategyRegistry.register(ItalicAnnotationAction.
|
|
3960
|
-
ActionHandleStrategyRegistry.register(UnderlineAnnotationAction.
|
|
3961
|
-
ActionHandleStrategyRegistry.register(TextColorAnnotationAction.
|
|
3962
|
-
ActionHandleStrategyRegistry.register(StrikethroughAnnotationAction.
|
|
3963
|
-
ActionHandleStrategyRegistry.register(CodeAnnotationAction.
|
|
3964
|
-
ActionHandleStrategyRegistry.register(AnnotationAction.
|
|
4024
|
+
ActionHandleStrategyRegistry.register(BoldAnnotationAction.typeName, dtoClassName, new NodeUpdateAnnotationMapStrategy());
|
|
4025
|
+
ActionHandleStrategyRegistry.register(ClearFormattingAnnotationAction.typeName, dtoClassName, new NodeUpdateAnnotationMapStrategy());
|
|
4026
|
+
ActionHandleStrategyRegistry.register(ItalicAnnotationAction.typeName, dtoClassName, new NodeUpdateAnnotationMapStrategy());
|
|
4027
|
+
ActionHandleStrategyRegistry.register(UnderlineAnnotationAction.typeName, dtoClassName, new NodeUpdateAnnotationMapStrategy());
|
|
4028
|
+
ActionHandleStrategyRegistry.register(TextColorAnnotationAction.typeName, dtoClassName, new NodeUpdateAnnotationMapStrategy());
|
|
4029
|
+
ActionHandleStrategyRegistry.register(StrikethroughAnnotationAction.typeName, dtoClassName, new NodeUpdateAnnotationMapStrategy());
|
|
4030
|
+
ActionHandleStrategyRegistry.register(CodeAnnotationAction.typeName, dtoClassName, new NodeUpdateAnnotationMapStrategy());
|
|
4031
|
+
ActionHandleStrategyRegistry.register(AnnotationAction.typeName, dtoClassName, new NodeUpdateAnnotationMapStrategy());
|
|
3965
4032
|
RTETextNode.registerActionStrategyStatus[dtoClassName] = true;
|
|
3966
4033
|
}
|
|
3967
4034
|
}
|
|
@@ -3971,7 +4038,7 @@ class RTETextNode extends RTENode {
|
|
|
3971
4038
|
doAnnotationActionApply(action) {
|
|
3972
4039
|
const selectionRangeAnnotation = this.getAnnotationByType(InternalAnnotationTypeEnum.SELECTION_RANGE);
|
|
3973
4040
|
if (action instanceof TextSplittableAction && action.doSplit && selectionRangeAnnotation) {
|
|
3974
|
-
const splitStrategy = ActionHandleStrategyRegistry.get(TextSplittableAction.
|
|
4041
|
+
const splitStrategy = ActionHandleStrategyRegistry.get(TextSplittableAction.typeName, this.typeName);
|
|
3975
4042
|
if (splitStrategy) {
|
|
3976
4043
|
const newNode = splitStrategy.execute(action, this);
|
|
3977
4044
|
if (newNode) {
|
|
@@ -4012,12 +4079,12 @@ class RTETextNode extends RTENode {
|
|
|
4012
4079
|
* 1. Try to get the specific strategy for the action and node type first (e.g., LinkAnnotationAction on RTETextNode).
|
|
4013
4080
|
* 2. If no specific strategy found, try to get the generic NodeUpdateAnnotationMapStrategy for AnnotationAction on RTETextNode.
|
|
4014
4081
|
*/
|
|
4015
|
-
const strategy = ActionHandleStrategyRegistry.get(action.
|
|
4082
|
+
const strategy = ActionHandleStrategyRegistry.get(action.typeName, node.typeName);
|
|
4016
4083
|
if (strategy) {
|
|
4017
4084
|
strategy.execute(action, node);
|
|
4018
4085
|
return;
|
|
4019
4086
|
}
|
|
4020
|
-
const updateAnnotationMapStrategy = ActionHandleStrategyRegistry.get(AnnotationAction.
|
|
4087
|
+
const updateAnnotationMapStrategy = ActionHandleStrategyRegistry.get(AnnotationAction.typeName, RTETextNode.typeName);
|
|
4021
4088
|
if (updateAnnotationMapStrategy) {
|
|
4022
4089
|
updateAnnotationMapStrategy.execute(action, node);
|
|
4023
4090
|
return;
|
|
@@ -4087,12 +4154,27 @@ class RTETextNode extends RTENode {
|
|
|
4087
4154
|
if (this.text === '\n') {
|
|
4088
4155
|
return `<br>`;
|
|
4089
4156
|
}
|
|
4157
|
+
if (this.shouldSkipEmptyFormattingMarker()) {
|
|
4158
|
+
return '';
|
|
4159
|
+
}
|
|
4090
4160
|
if (this.shouldRenderAsPlainText()) {
|
|
4091
4161
|
return this.text;
|
|
4092
4162
|
}
|
|
4093
4163
|
const content = NodeTag === 'code' ? escapeHtml(this.text) : this.text;
|
|
4094
4164
|
return `<${NodeTag}${attrStr}>${content}</${NodeTag}>`;
|
|
4095
4165
|
}
|
|
4166
|
+
/**
|
|
4167
|
+
* Formatting toggles at a collapsed caret intentionally keep empty marker
|
|
4168
|
+
* nodes in the live model so future typing inherits the pending style. Those
|
|
4169
|
+
* nodes are not semantic content and should not appear in serialized HTML.
|
|
4170
|
+
*
|
|
4171
|
+
* @returns {boolean} True when the node is an empty formatting-only marker that should be omitted from serialized HTML.
|
|
4172
|
+
*/
|
|
4173
|
+
shouldSkipEmptyFormattingMarker() {
|
|
4174
|
+
return (this.text === '' &&
|
|
4175
|
+
this.annotationMap.size > 0 &&
|
|
4176
|
+
Array.from(this.annotationMap.values()).every((annotation) => annotation.isFormattingOnly));
|
|
4177
|
+
}
|
|
4096
4178
|
/**
|
|
4097
4179
|
* Determines if the text node should be rendered as plain text.
|
|
4098
4180
|
*
|
|
@@ -4114,7 +4196,7 @@ class RTETextNode extends RTENode {
|
|
|
4114
4196
|
}
|
|
4115
4197
|
RTETextNode.registerActionStrategyStatus = {};
|
|
4116
4198
|
RTETextNode.htmlTag = 'span';
|
|
4117
|
-
RTETextNode.
|
|
4199
|
+
RTETextNode.typeName = 'RTETextNode';
|
|
4118
4200
|
|
|
4119
4201
|
/**
|
|
4120
4202
|
* Append the second block child nodes to the first block child nodes and remove the second block strategy.
|
|
@@ -4347,13 +4429,13 @@ class BlockInsertImageIntoTextStrategy extends ActionHandleStrategy {
|
|
|
4347
4429
|
* @returns {RTEBlock[]} Top-level selected blocks to emit into the rebuilt list.
|
|
4348
4430
|
*/
|
|
4349
4431
|
function normalizeMixedListSelection(selectedBlocks, listType) {
|
|
4350
|
-
const selectedListItems = new Set(selectedBlocks.filter((block) => block.
|
|
4432
|
+
const selectedListItems = new Set(selectedBlocks.filter((block) => block.typeName === 'RTEListItemBlock'));
|
|
4351
4433
|
return selectedBlocks.filter((block) => {
|
|
4352
|
-
if (!(block.
|
|
4434
|
+
if (!(block.typeName === 'RTEListItemBlock')) {
|
|
4353
4435
|
return true;
|
|
4354
4436
|
}
|
|
4355
4437
|
let parentList = block.parent;
|
|
4356
|
-
while (parentList.parent && parentList.parent.
|
|
4438
|
+
while (parentList.parent && parentList.parent.typeName === 'RTEListItemBlock') {
|
|
4357
4439
|
const ownerItem = parentList.parent;
|
|
4358
4440
|
if (selectedListItems.has(ownerItem)) {
|
|
4359
4441
|
block.parent.type = listType;
|
|
@@ -4410,6 +4492,7 @@ class HorizontalAlignmentAnnotationAction extends AnnotationAction {
|
|
|
4410
4492
|
return new HorizontalAlignmentAnnotation(this.textAlign);
|
|
4411
4493
|
}
|
|
4412
4494
|
}
|
|
4495
|
+
HorizontalAlignmentAnnotationAction.typeName = 'HorizontalAlignmentAnnotationAction';
|
|
4413
4496
|
|
|
4414
4497
|
/**
|
|
4415
4498
|
* Update the text block and image block horizontal alignment strategy.
|
|
@@ -4459,6 +4542,7 @@ class IndentAnnotationAction extends AnnotationAction {
|
|
|
4459
4542
|
return new IndentAnnotation(this.indent);
|
|
4460
4543
|
}
|
|
4461
4544
|
}
|
|
4545
|
+
IndentAnnotationAction.typeName = 'IndentAnnotationAction';
|
|
4462
4546
|
|
|
4463
4547
|
/**
|
|
4464
4548
|
* Unlink the text block link group annotation strategy.
|
|
@@ -4489,7 +4573,6 @@ class BlockUnlinkLinkGroupStrategy extends ActionHandleStrategy {
|
|
|
4489
4573
|
class RTETextBlock extends RTEBlock {
|
|
4490
4574
|
constructor(id, type, options) {
|
|
4491
4575
|
super(id);
|
|
4492
|
-
this.dtoName = RTETextBlock.dtoName;
|
|
4493
4576
|
this.children = [];
|
|
4494
4577
|
this.type = type;
|
|
4495
4578
|
const { autoMatchFormat } = options || { autoMatchFormat: true };
|
|
@@ -4522,7 +4605,7 @@ class RTETextBlock extends RTEBlock {
|
|
|
4522
4605
|
}
|
|
4523
4606
|
/**
|
|
4524
4607
|
* Convert raw node payloads to their registered `RTENode` subclasses via
|
|
4525
|
-
* `RTEDTOClassManager`, preserving custom types (e.g. `RTETokenNode`).
|
|
4608
|
+
* `RTEDTOClassManager`, preserving custom types (e.g. `RTETokenNode`, `RTEBookmarkNode`).
|
|
4526
4609
|
*
|
|
4527
4610
|
* @param {VegaRTETextNode[]} nodes - Raw node payloads.
|
|
4528
4611
|
* @param {RTETextBlock} parent - Parent block for the converted nodes.
|
|
@@ -4698,7 +4781,7 @@ class RTETextBlock extends RTEBlock {
|
|
|
4698
4781
|
* @inheritDoc
|
|
4699
4782
|
*/
|
|
4700
4783
|
doAnnotationActionApply(action) {
|
|
4701
|
-
const strategy = ActionHandleStrategyRegistry.get(action.
|
|
4784
|
+
const strategy = ActionHandleStrategyRegistry.get(action.typeName, RTETextBlock.typeName);
|
|
4702
4785
|
if (strategy) {
|
|
4703
4786
|
strategy.execute(action, this);
|
|
4704
4787
|
}
|
|
@@ -4780,21 +4863,22 @@ class RTETextBlock extends RTEBlock {
|
|
|
4780
4863
|
return nodesHtml;
|
|
4781
4864
|
}
|
|
4782
4865
|
}
|
|
4866
|
+
RTETextBlock.typeName = 'RTETextBlock';
|
|
4867
|
+
// eslint-disable-next-line @globalpayments/vega-eslint/vega-class-member-order-rule
|
|
4783
4868
|
(() => {
|
|
4784
|
-
ActionHandleStrategyRegistry.register(TextStyleAnnotationAction.
|
|
4785
|
-
ActionHandleStrategyRegistry.register(HorizontalAlignmentAnnotationAction.
|
|
4786
|
-
ActionHandleStrategyRegistry.register(IndentAnnotationAction.
|
|
4787
|
-
ActionHandleStrategyRegistry.register(LinkGroupAnnotationAction.
|
|
4788
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.UNLINK_LINK_GROUP, RTETextBlock.
|
|
4789
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.SPLIT_BLOCK_WITH_NODE, RTETextBlock.
|
|
4790
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.REPLACE_CHILD_NODES, RTETextBlock.
|
|
4791
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.MERGE_TWO_BLOCKS_NODES, RTETextBlock.
|
|
4792
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.LINE_BREAK_SINGLE_BLOCK, RTETextBlock.
|
|
4793
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.LINE_BREAK_MULTIPLE_BLOCKS, RTETextBlock.
|
|
4794
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.INSERT_IMAGE_TO_BLOCK, RTETextBlock.
|
|
4795
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.TRANSFORM_LIST_BLOCK, RTETextBlock.
|
|
4869
|
+
ActionHandleStrategyRegistry.register(TextStyleAnnotationAction.typeName, RTETextBlock.typeName, new BlockUpdateTextStyleStrategy());
|
|
4870
|
+
ActionHandleStrategyRegistry.register(HorizontalAlignmentAnnotationAction.typeName, RTETextBlock.typeName, new BlockUpdateHorizontalAlignmentStrategy());
|
|
4871
|
+
ActionHandleStrategyRegistry.register(IndentAnnotationAction.typeName, RTETextBlock.typeName, new BlockUpdateIndentStrategy());
|
|
4872
|
+
ActionHandleStrategyRegistry.register(LinkGroupAnnotationAction.typeName, RTETextBlock.typeName, new BlockUpdateLinkGroupStrategy());
|
|
4873
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.UNLINK_LINK_GROUP, RTETextBlock.typeName, new BlockUnlinkLinkGroupStrategy());
|
|
4874
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.SPLIT_BLOCK_WITH_NODE, RTETextBlock.typeName, new BlockSplitWithTextNodeStrategy());
|
|
4875
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.REPLACE_CHILD_NODES, RTETextBlock.typeName, new BlockReplaceNodesStrategy());
|
|
4876
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.MERGE_TWO_BLOCKS_NODES, RTETextBlock.typeName, new BlockMergeNodesStrategy());
|
|
4877
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.LINE_BREAK_SINGLE_BLOCK, RTETextBlock.typeName, new BlockInsertLineBreakStrategy());
|
|
4878
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.LINE_BREAK_MULTIPLE_BLOCKS, RTETextBlock.typeName, new BlockInsertLineBreakWithBlocksStrategy());
|
|
4879
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.INSERT_IMAGE_TO_BLOCK, RTETextBlock.typeName, new BlockInsertImageIntoTextStrategy());
|
|
4880
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.TRANSFORM_LIST_BLOCK, RTETextBlock.typeName, new BlockTransformToListStrategy());
|
|
4796
4881
|
})();
|
|
4797
|
-
RTETextBlock.dtoName = 'RTETextBlock';
|
|
4798
4882
|
|
|
4799
4883
|
/**
|
|
4800
4884
|
* Remove list item nest list block strategy.
|
|
@@ -4950,7 +5034,6 @@ class ListItemInsertImageStrategy extends ActionHandleStrategy {
|
|
|
4950
5034
|
class RTEListItemBlock extends RTETextBlock {
|
|
4951
5035
|
constructor(id, nestList, options) {
|
|
4952
5036
|
super(id, 'list-item', options);
|
|
4953
|
-
this.dtoName = RTEListItemBlock.dtoName;
|
|
4954
5037
|
/**
|
|
4955
5038
|
* TODO: Refactor the list item properties children and nestList, merge two properties together.
|
|
4956
5039
|
*
|
|
@@ -4969,6 +5052,7 @@ class RTEListItemBlock extends RTETextBlock {
|
|
|
4969
5052
|
*/
|
|
4970
5053
|
static from(block, options = { autoMatchFormat: true }) {
|
|
4971
5054
|
const listItemBlock = new RTEListItemBlock(block.id, undefined, options);
|
|
5055
|
+
// Do not coerce list nodes to text; bookmarks, tokens and other extension nodes are polymorphic text nodes.
|
|
4972
5056
|
listItemBlock.children = RTEListItemBlock.convertNodes(block.nodes, listItemBlock, options);
|
|
4973
5057
|
if (block.children) {
|
|
4974
5058
|
listItemBlock.nestList = block.children.map((child) => {
|
|
@@ -5056,19 +5140,20 @@ class RTEListItemBlock extends RTETextBlock {
|
|
|
5056
5140
|
return block;
|
|
5057
5141
|
}
|
|
5058
5142
|
}
|
|
5143
|
+
RTEListItemBlock.typeName = 'RTEListItemBlock';
|
|
5144
|
+
// eslint-disable-next-line @globalpayments/vega-eslint/vega-class-member-order-rule
|
|
5059
5145
|
(() => {
|
|
5060
|
-
ActionHandleStrategyRegistry.register(TextStyleAnnotationAction.
|
|
5061
|
-
ActionHandleStrategyRegistry.register(HorizontalAlignmentAnnotationAction.
|
|
5062
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.LINE_BREAK_SINGLE_BLOCK, RTEListItemBlock.
|
|
5063
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.LINE_BREAK_MULTIPLE_BLOCKS, RTEListItemBlock.
|
|
5064
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_NEST_LIST, RTEListItemBlock.
|
|
5065
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.SPLIT_BLOCK_WITH_NODE, RTEListItemBlock.
|
|
5066
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.REPLACE_CHILD_NODES, RTEListItemBlock.
|
|
5067
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.REPLACE_NEST_LIST, RTEListItemBlock.
|
|
5068
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.MERGE_TWO_BLOCKS_NODES, RTEListItemBlock.
|
|
5069
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.INSERT_IMAGE_TO_BLOCK, RTEListItemBlock.
|
|
5146
|
+
ActionHandleStrategyRegistry.register(TextStyleAnnotationAction.typeName, RTEListItemBlock.typeName, new BlockUpdateTextStyleStrategy());
|
|
5147
|
+
ActionHandleStrategyRegistry.register(HorizontalAlignmentAnnotationAction.typeName, RTEListItemBlock.typeName, new BlockUpdateHorizontalAlignmentStrategy());
|
|
5148
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.LINE_BREAK_SINGLE_BLOCK, RTEListItemBlock.typeName, new BlockInsertLineBreakStrategy());
|
|
5149
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.LINE_BREAK_MULTIPLE_BLOCKS, RTEListItemBlock.typeName, new BlockInsertLineBreakWithBlocksStrategy());
|
|
5150
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_NEST_LIST, RTEListItemBlock.typeName, new ListItemRemoveNestListStrategy());
|
|
5151
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.SPLIT_BLOCK_WITH_NODE, RTEListItemBlock.typeName, new BlockSplitWithTextNodeStrategy());
|
|
5152
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.REPLACE_CHILD_NODES, RTEListItemBlock.typeName, new BlockReplaceNodesStrategy());
|
|
5153
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.REPLACE_NEST_LIST, RTEListItemBlock.typeName, new ListItemReplaceNestListStrategy());
|
|
5154
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.MERGE_TWO_BLOCKS_NODES, RTEListItemBlock.typeName, new BlockMergeNodesStrategy());
|
|
5155
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.INSERT_IMAGE_TO_BLOCK, RTEListItemBlock.typeName, new ListItemInsertImageStrategy());
|
|
5070
5156
|
})();
|
|
5071
|
-
RTEListItemBlock.dtoName = 'RTEListItemBlock';
|
|
5072
5157
|
|
|
5073
5158
|
/**
|
|
5074
5159
|
* Replace the nest list with new list array
|
|
@@ -5280,7 +5365,6 @@ class TransformParagraphAction extends ModifyContentAction {
|
|
|
5280
5365
|
class RTEHtmlBlock extends RTEBlock {
|
|
5281
5366
|
constructor(id, htmlTag) {
|
|
5282
5367
|
super(id);
|
|
5283
|
-
this.dtoName = RTEHtmlBlock.dtoName;
|
|
5284
5368
|
this.type = 'html-block';
|
|
5285
5369
|
this.children = [];
|
|
5286
5370
|
this.htmlTag = htmlTag;
|
|
@@ -5351,7 +5435,7 @@ class RTEHtmlBlock extends RTEBlock {
|
|
|
5351
5435
|
return Object.assign(Object.assign({}, super.toJSON()), { id: this.id, type: this.type, htmlTag: this.htmlTag, children: this.children.map((child) => child.toJSON()) });
|
|
5352
5436
|
}
|
|
5353
5437
|
}
|
|
5354
|
-
RTEHtmlBlock.
|
|
5438
|
+
RTEHtmlBlock.typeName = 'RTEHtmlBlock';
|
|
5355
5439
|
|
|
5356
5440
|
/**
|
|
5357
5441
|
* Convert the selected list block to paragraph strategy.
|
|
@@ -5659,8 +5743,8 @@ class ListTransformToParagraphStrategy extends ListAnnotationStrategy {
|
|
|
5659
5743
|
return null;
|
|
5660
5744
|
}
|
|
5661
5745
|
path.unshift(itemIndex);
|
|
5662
|
-
if (currentList.parent.
|
|
5663
|
-
currentList.parent.
|
|
5746
|
+
if (currentList.parent.typeName === 'VegaRTEContent' ||
|
|
5747
|
+
currentList.parent.typeName === 'RTEHtmlBlock') {
|
|
5664
5748
|
const containerPath = this.getContainerPath(currentList);
|
|
5665
5749
|
return containerPath ? [...containerPath, ...path] : null;
|
|
5666
5750
|
}
|
|
@@ -6071,7 +6155,6 @@ class ListAnnotation extends BlockAnnotation {
|
|
|
6071
6155
|
class RTEListBlock extends RTEBlock {
|
|
6072
6156
|
constructor(id, type, options) {
|
|
6073
6157
|
super(id);
|
|
6074
|
-
this.dtoName = RTEListBlock.dtoName;
|
|
6075
6158
|
this.type = 'bullet-list';
|
|
6076
6159
|
this.children = [];
|
|
6077
6160
|
this.type = type;
|
|
@@ -6176,14 +6259,15 @@ class RTEListBlock extends RTEBlock {
|
|
|
6176
6259
|
return this.type === 'number-list' ? 'ol' : 'ul';
|
|
6177
6260
|
}
|
|
6178
6261
|
}
|
|
6262
|
+
RTEListBlock.typeName = 'RTEListBlock';
|
|
6263
|
+
// eslint-disable-next-line @globalpayments/vega-eslint/vega-class-member-order-rule
|
|
6179
6264
|
(() => {
|
|
6180
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.TRANSFORM_LIST_BLOCK, RTEListBlock.
|
|
6181
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.TRANSFORM_PARAGRAPH_BLOCK, RTEListBlock.
|
|
6182
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.INSERT_IMAGE_TO_BLOCK, RTEListBlock.
|
|
6183
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.NEST_LIST_ITEMS, RTEListBlock.
|
|
6184
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.UNNEST_LIST_ITEMS, RTEListBlock.
|
|
6265
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.TRANSFORM_LIST_BLOCK, RTEListBlock.typeName, new ListTransformToListStrategy());
|
|
6266
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.TRANSFORM_PARAGRAPH_BLOCK, RTEListBlock.typeName, new ListTransformToParagraphStrategy());
|
|
6267
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.INSERT_IMAGE_TO_BLOCK, RTEListBlock.typeName, new ListInsertImageStrategy());
|
|
6268
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.NEST_LIST_ITEMS, RTEListBlock.typeName, new ListNestItemsStrategy());
|
|
6269
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.UNNEST_LIST_ITEMS, RTEListBlock.typeName, new ListUnnestItemsStrategy());
|
|
6185
6270
|
})();
|
|
6186
|
-
RTEListBlock.dtoName = 'RTEListBlock';
|
|
6187
6271
|
|
|
6188
6272
|
/**
|
|
6189
6273
|
* The delete node content contains some common functions that used for image block delete the image node or text block delete text node.
|
|
@@ -6349,7 +6433,7 @@ class BlockDeleteNodeContentStrategy extends ActionHandleStrategy {
|
|
|
6349
6433
|
* @returns {boolean} True if the block is not the root content block, false otherwise.
|
|
6350
6434
|
*/
|
|
6351
6435
|
isRTEBlock(block) {
|
|
6352
|
-
return block && block.
|
|
6436
|
+
return block && block.typeName !== 'VegaRTEContent';
|
|
6353
6437
|
}
|
|
6354
6438
|
}
|
|
6355
6439
|
|
|
@@ -6499,6 +6583,7 @@ class SelectionChangeAction extends AnnotationAction {
|
|
|
6499
6583
|
return new SelectionRangeAnnotation(this.range);
|
|
6500
6584
|
}
|
|
6501
6585
|
}
|
|
6586
|
+
SelectionChangeAction.typeName = 'SelectionChangeAction';
|
|
6502
6587
|
|
|
6503
6588
|
/**
|
|
6504
6589
|
* Update the code block node annotation map strategy.
|
|
@@ -6563,6 +6648,7 @@ class RTEDecoratorNode extends RTENode {
|
|
|
6563
6648
|
return false;
|
|
6564
6649
|
}
|
|
6565
6650
|
}
|
|
6651
|
+
RTEDecoratorNode.typeName = 'RTEDecoratorNode';
|
|
6566
6652
|
// CSS class names for the decorator node parent element
|
|
6567
6653
|
RTEDecoratorNode.DECORATOR_CONTAINER_CLASS = 'v-internal-decorator-container';
|
|
6568
6654
|
// CSS class names for the decorator node element
|
|
@@ -6620,7 +6706,6 @@ CodeBlockNodeFilterStylesStrategy.STYLES = {
|
|
|
6620
6706
|
class RTECodeBlockNode extends RTEDecoratorNode {
|
|
6621
6707
|
constructor(id, content, language, parentBlock) {
|
|
6622
6708
|
super(id);
|
|
6623
|
-
this.dtoName = RTECodeBlockNode.dtoName;
|
|
6624
6709
|
this.type = NodeTypeEnum.CODE_BLOCK_NODE;
|
|
6625
6710
|
this.text = '';
|
|
6626
6711
|
this.annotationMap = new Map();
|
|
@@ -6670,11 +6755,12 @@ class RTECodeBlockNode extends RTEDecoratorNode {
|
|
|
6670
6755
|
ActionHandleStrategyRegistry.executeTheStrategy(action, this);
|
|
6671
6756
|
}
|
|
6672
6757
|
}
|
|
6758
|
+
RTECodeBlockNode.typeName = 'RTECodeBlockNode';
|
|
6759
|
+
// eslint-disable-next-line @globalpayments/vega-eslint/vega-class-member-order-rule
|
|
6673
6760
|
(() => {
|
|
6674
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.UPDATE_CODE_BLOCK, RTECodeBlockNode.
|
|
6675
|
-
ActionHandleStrategyRegistry.register(SelectionChangeAction.
|
|
6761
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.UPDATE_CODE_BLOCK, RTECodeBlockNode.typeName, new UpdateCodeBlockStrategy());
|
|
6762
|
+
ActionHandleStrategyRegistry.register(SelectionChangeAction.typeName, RTECodeBlockNode.typeName, new CodeNodeSetSelectionRangeAnnotationStrategy());
|
|
6676
6763
|
})();
|
|
6677
|
-
RTECodeBlockNode.dtoName = 'RTECodeBlockNode';
|
|
6678
6764
|
|
|
6679
6765
|
/**
|
|
6680
6766
|
* Insert image behind after code block strategy.
|
|
@@ -6741,7 +6827,7 @@ class CodeBlockFilterStylesStrategy extends RTEFilterStylesStrategy {
|
|
|
6741
6827
|
* @inheritDoc
|
|
6742
6828
|
*/
|
|
6743
6829
|
canFilter(blockOrNodeInstance) {
|
|
6744
|
-
return Predicate.isCodeBlock(blockOrNodeInstance.
|
|
6830
|
+
return Predicate.isCodeBlock(blockOrNodeInstance.typeName);
|
|
6745
6831
|
}
|
|
6746
6832
|
/**
|
|
6747
6833
|
* The code block styles is preset and will convert to vega-code-block element so we don't need to to refill styles back to element.
|
|
@@ -6772,7 +6858,6 @@ CodeBlockFilterStylesStrategy.STYLES = {
|
|
|
6772
6858
|
class RTECodeBlock extends RTEBlock {
|
|
6773
6859
|
constructor(id, content, language) {
|
|
6774
6860
|
super(id);
|
|
6775
|
-
this.dtoName = RTECodeBlock.dtoName;
|
|
6776
6861
|
this.type = 'code-block';
|
|
6777
6862
|
this.annotationMap = new Map([CustomStyleAnnotation.from(CodeBlockFilterStylesStrategy.STYLES)]);
|
|
6778
6863
|
this.children = [new RTECodeBlockNode(`${id}-1`, content, language, this)];
|
|
@@ -6854,13 +6939,14 @@ class RTECodeBlock extends RTEBlock {
|
|
|
6854
6939
|
return this.children[0].annotationMap.has(InternalAnnotationTypeEnum.SELECTION_RANGE);
|
|
6855
6940
|
}
|
|
6856
6941
|
}
|
|
6942
|
+
RTECodeBlock.typeName = 'RTECodeBlock';
|
|
6943
|
+
// eslint-disable-next-line @globalpayments/vega-eslint/vega-class-member-order-rule
|
|
6857
6944
|
(() => {
|
|
6858
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_CODE_BLOCK, RTECodeBlock.
|
|
6859
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_CHILDREN, RTECodeBlock.
|
|
6860
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.SWITCH_OUT_FROM_CODE_BLOCK, RTECodeBlock.
|
|
6861
|
-
ActionHandleStrategyRegistry.register(ModifyContentActionType.INSERT_IMAGE_TO_BLOCK, RTECodeBlock.
|
|
6945
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_CODE_BLOCK, RTECodeBlock.typeName, new CodeBlockRemoveSelfStrategy());
|
|
6946
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_CHILDREN, RTECodeBlock.typeName, new RemoveChildrenStrategy());
|
|
6947
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.SWITCH_OUT_FROM_CODE_BLOCK, RTECodeBlock.typeName, new SwitchOutFromCodeBlockStrategy());
|
|
6948
|
+
ActionHandleStrategyRegistry.register(ModifyContentActionType.INSERT_IMAGE_TO_BLOCK, RTECodeBlock.typeName, new CodeBlockInsertImageStrategy());
|
|
6862
6949
|
})();
|
|
6863
6950
|
RTECodeBlock.CODE_BLOCK_PLACEHOLDER_CLASS_NAME = 'code-block-placeholder-element';
|
|
6864
|
-
RTECodeBlock.dtoName = 'RTECodeBlock';
|
|
6865
6951
|
|
|
6866
|
-
export { ITALIC_FONT_STYLE as $, ActionHandleStrategyRegistry as A, BlockAnnotation as B, CommonAnnotationTypeEnum as C, CommonAnnotation as D, ReplaceChildNodesAction as E, BlockMergeNodesStrategy as F, BlockReplaceNodesStrategy as G, HTML_VOID_TAGS as H, InsertChildrenAfterAction as I, HorizontalAlignmentAnnotationAction as J, BlockUpdateHorizontalAlignmentStrategy as K, BlockDeleteNodeContentStrategy as L, ModifyContentAction as M, NodeAnnotationTypeEnum as N, RemoveChildrenStrategy as O, RemoveNestListAction as P, ReplaceNestListAction as Q, RTETextNode as R, SplitBlockWithNodeAction as S, RTEListBlock as T, UpdateTextAction as U, VegaRTEPresetToolbarItems as V, BOLD_FONT_WEIGHT_KEYWORD as W, BOLD_FONT_WEIGHT as X, createStyleMapFromElement as Y, RTE_TEXT_COLORS as Z, RTE_DEFAULT_TEXT_COLOR as _, RTEBlock as a, STRIKETHROUGH_TEXT_DECORATION as a0, UNDERLINE_TEXT_DECORATION as a1, TextStyleAnnotation as a2, RTEHtmlBlock as a3, Predicate as a4, ListAnnotation as a5, HorizontalAlignmentAnnotation as a6, CodeAnnotation as a7, TEXT_STYLE_DEFAULT_FONT_WEIGHT as a8, LinkFilterStylesStrategy as a9,
|
|
6952
|
+
export { ITALIC_FONT_STYLE as $, ActionHandleStrategyRegistry as A, BlockAnnotation as B, CommonAnnotationTypeEnum as C, CommonAnnotation as D, ReplaceChildNodesAction as E, BlockMergeNodesStrategy as F, BlockReplaceNodesStrategy as G, HTML_VOID_TAGS as H, InsertChildrenAfterAction as I, HorizontalAlignmentAnnotationAction as J, BlockUpdateHorizontalAlignmentStrategy as K, BlockDeleteNodeContentStrategy as L, ModifyContentAction as M, NodeAnnotationTypeEnum as N, RemoveChildrenStrategy as O, RemoveNestListAction as P, ReplaceNestListAction as Q, RTETextNode as R, SplitBlockWithNodeAction as S, RTEListBlock as T, UpdateTextAction as U, VegaRTEPresetToolbarItems as V, BOLD_FONT_WEIGHT_KEYWORD as W, BOLD_FONT_WEIGHT as X, createStyleMapFromElement as Y, RTE_TEXT_COLORS as Z, RTE_DEFAULT_TEXT_COLOR as _, RTEBlock as a, STRIKETHROUGH_TEXT_DECORATION as a0, UNDERLINE_TEXT_DECORATION as a1, TextStyleAnnotation as a2, RTEHtmlBlock as a3, Predicate as a4, ListAnnotation as a5, HorizontalAlignmentAnnotation as a6, CodeAnnotation as a7, TEXT_STYLE_DEFAULT_FONT_WEIGHT as a8, LinkFilterStylesStrategy as a9, RTEUpdateSource as aA, escapeHtml as aB, RTE_PASTE_MODE_WORD as aC, RTE_UPDATE_SOURCE_KEY as aD, RTE_EMAIL_LINK_TYPE_KEY as aE, RTE_DEFAULT_LINK_TYPE_KEY as aF, RTE_SUPPORTED_LINK_TYPE_KEYS as aG, CodeBlockFilterStylesStrategy as aa, CodeBlockNodeFilterStylesStrategy as ab, SyncUpSelectionAction as ac, escapeHtmlAttribute as ad, BoldAnnotationAction as ae, DeleteNodeAnnotationAction as af, ActionHandlerInterceptorRegistry as ag, CodeLanguage as ah, CustomClassAnnotation as ai, VegaRTEDefaultTextStyleItems as aj, ZERO_WIDTH_SPACE as ak, LinkAnnotationAction as al, UpdateCodeBlockAction as am, SelectionChangeAction as an, TextColorAnnotationAction as ao, VegaRTEOneRowHeightPx as ap, ItalicAnnotationAction as aq, UnderlineAnnotationAction as ar, TextStyleAnnotationAction as as, BoldAnnotation as at, BlockAnnotationTypeEnum as au, ClearFormattingAnnotationAction as av, CodeAnnotationAction as aw, StrikethroughAnnotationAction as ax, IndentAnnotationAction as ay, TransformParagraphAction as az, RTETextBlock as b, RTE_BLOCK_BOUNDARY_ATTRIBUTE as c, RTEAnnotationStyle as d, ActionHandleStrategy as e, AppendChildrenAction as f, RTENode as g, InsertChildrenBeforeAction as h, InternalAnnotationTypeEnum as i, ModifyContentActionType as j, AnnotationAction as k, RemoveChildrenAction as l, CustomAttributeAnnotation as m, RTEDTOClassManager$1 as n, RTEFilterStylesStrategy as o, RTEDecoratorNode as p, RTECodeBlock as q, RTEListItemBlock as r, stateEntityRenderingRegistry as s, RTECodeBlockNode as t, CustomStyleAnnotation as u, RTEFilterStylesStrategyRegistry as v, RTE_PASTE_MODE_DATA_TYPE as w, RTE_WORD_COUNT_KEY as x, NodeAnnotation as y, NodeTypeEnum as z };
|