@globalpayments/vega 2.33.0 → 2.34.1
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/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/{app-globals-d28dd560.js → app-globals-48582633.js} +31 -22
- package/dist/cjs/block-annotation.abstract-4d88b939.js +875 -0
- package/dist/cjs/{breakpoints-7e2dff90.js → breakpoints-17d6c4c7.js} +2 -13
- package/dist/cjs/breakpoints-ebde4837.js +14 -0
- package/dist/cjs/{change-manager-a297e4d2.js → change-manager-bda1d107.js} +1 -1
- package/dist/cjs/{chevron-down-ca2fa88e.js → chevron-down-9847bf78.js} +0 -5
- package/dist/cjs/chevron-up-21465cf7.js +7 -0
- package/dist/cjs/{child-nodes-event-prevent-slimmer-f07a8fe9.js → child-nodes-event-prevent-slimmer-e1a6e5ad.js} +3 -3
- package/dist/cjs/{child-nodes-notify-observer-slimmer-79f2f5a7.js → child-nodes-notify-observer-slimmer-03a3f79e.js} +5 -5
- package/dist/cjs/{component-73a88c4e.js → component-63af66ea.js} +1 -1
- package/dist/cjs/{component-global-style-slimmer-6749808c.js → component-global-style-slimmer-6b64a26c.js} +1 -1
- package/dist/cjs/{component-usage-runtime-metrics-1ee24991.js → component-usage-runtime-metrics-019d3c00.js} +2 -2
- package/dist/cjs/content-state-6a5b9736.js +1954 -0
- package/dist/cjs/{create-public-api-runtime-metrics-slimmer-5cc88124.js → create-public-api-runtime-metrics-slimmer-8c6a8fb7.js} +3 -3
- package/dist/cjs/{date-0a6bb035.js → date-ffe382a4.js} +1 -1
- package/dist/cjs/{deprecated-property-slimmer-fc729fd9.js → deprecated-property-slimmer-f36e3779.js} +2 -2
- package/dist/cjs/{design-token-92906579.js → design-token-908e3f69.js} +5 -5
- package/dist/cjs/{vega-event-id-81270f6a.js → dom-node-subject-observer-factory-093462f1.js} +170 -0
- package/dist/cjs/{dynamic-slimmer-f31fdfd7.js → dynamic-slimmer-dc30600a.js} +1 -1
- package/dist/cjs/{element-appender-slimmer-415d261a.js → element-appender-slimmer-0dd70e61.js} +17 -10
- package/dist/cjs/{event-emit-slimmer-83278943.js → event-emit-slimmer-a46bb411.js} +5 -5
- package/dist/cjs/{feature-flag-controller-0d1015fa.js → feature-flag-controller-e97b5f29.js} +3 -3
- package/dist/cjs/{form-field-controller-slimmer-2a982ead.js → form-field-controller-slimmer-9aeabcdc.js} +16 -17
- package/dist/cjs/{index-09acd3c9.js → global-slimmer-registry-dd2691b8.js} +296 -274
- package/dist/cjs/{icon-manager-3787af39.js → icon-manager-36dcfb65.js} +2 -2
- package/dist/cjs/index-8b247c17.js +325 -0
- package/dist/cjs/index.cjs.js +37 -30
- package/dist/cjs/{inject-keyboard-manager-e79a1ade.js → inject-keyboard-manager-af37c861.js} +1 -1
- package/dist/cjs/{internal-icon-manager-2ff58050.js → internal-icon-manager-2282a62f.js} +1 -1
- package/dist/cjs/{internal-vega-event-manager-5fe83465.js → internal-vega-event-manager-d7643ec6.js} +72 -68
- package/dist/cjs/{internal-vega-z-index-manager-f03ddb37.js → internal-vega-z-index-manager-e24e4309.js} +1 -1
- package/dist/cjs/{keyboard-manager-34b78600.js → keyboard-manager-5afbc8f1.js} +1 -1
- package/dist/cjs/{keyboard-manager-slimmer-8e2d4b5d.js → keyboard-manager-slimmer-9be2a880.js} +2 -2
- package/dist/cjs/loader.cjs.js +28 -23
- package/dist/cjs/{mutation-observer-slimmer-895b3d3e.js → mutation-observer-slimmer-98bbbdf0.js} +1 -1
- package/dist/cjs/{vega-skeleton-loader-controller-4a1eedcd.js → node.abstract-f8075f84.js} +234 -840
- package/dist/cjs/{page-resize-observer-slimmer-a8cf1874.js → page-resize-observer-slimmer-e54fa9d4.js} +2 -2
- package/dist/cjs/{remote-invocation-registry-32aaf6c2.js → remote-invocation-registry-71a45468.js} +4 -4
- package/dist/cjs/{required-field-rule-9a57b1a0.js → required-field-rule-7f9945fa.js} +2 -1
- package/dist/cjs/{responsive-format-facade-ad2f67bf.js → responsive-format-facade-74079f1b.js} +3 -3
- package/dist/cjs/{state-background-color-formatter-418b84e6.js → state-background-color-formatter-d32a1098.js} +2 -2
- package/dist/cjs/{static-subject-title-471e1793.js → static-subject-title-d66b88fb.js} +2 -0
- package/dist/cjs/{string-input-formatter-slimmer-79272527.js → string-input-formatter-slimmer-297765c0.js} +2 -2
- package/dist/cjs/{style-formatter-68f3a5f8.js → style-formatter-5deb065f.js} +2 -2
- package/dist/cjs/{sub-state-notify-slimmer-13f1892b.js → sub-state-notify-slimmer-73201c53.js} +6 -7
- package/dist/cjs/{sub-state-observer-slimmer-6c0b635d.js → sub-state-observer-slimmer-10c0d402.js} +6 -7
- package/dist/cjs/{synchronize-task-queue-8977cf10.js → synchronize-task-queue-1ee80e94.js} +10 -1
- package/dist/cjs/text-color-toolbar-button-slimmer-21a166e4.js +210 -0
- package/dist/cjs/text-node-494856f3.js +955 -0
- package/dist/cjs/{translation-42c1b2c8.js → translation-f6b7ee84.js} +4 -4
- package/dist/cjs/{translation-slimmer-32aa13e7.js → translation-slimmer-90f9f71f.js} +2 -2
- package/dist/cjs/trash-can-46a5e19a.js +7 -0
- package/dist/cjs/{type-guard-a07b353b.js → type-guard-4ba85fdc.js} +18 -18
- package/dist/cjs/{ui-08f33116.js → ui-b5906704.js} +20 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +46 -47
- package/dist/cjs/vega-app-footer.cjs.entry.js +12 -13
- package/dist/cjs/vega-app-header-button.cjs.entry.js +48 -48
- package/dist/cjs/vega-backdrop.cjs.entry.js +8 -9
- package/dist/cjs/vega-banner.cjs.entry.js +36 -38
- package/dist/cjs/vega-bar-chart.cjs.entry.js +5 -6
- package/dist/cjs/vega-box.cjs.entry.js +15 -15
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +34 -36
- package/dist/cjs/vega-button-circle.cjs.entry.js +29 -30
- package/dist/cjs/vega-button-group_2.cjs.entry.js +32 -34
- package/dist/cjs/vega-button-link.cjs.entry.js +26 -28
- package/dist/cjs/vega-button.cjs.entry.js +30 -31
- package/dist/cjs/vega-calendar_3.cjs.entry.js +139 -140
- package/dist/cjs/vega-card.cjs.entry.js +13 -13
- package/dist/cjs/vega-carousel.cjs.entry.js +27 -29
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +49 -50
- package/dist/cjs/vega-chip.cjs.entry.js +39 -40
- package/dist/cjs/vega-color-picker.cjs.entry.js +29 -31
- package/dist/cjs/vega-combo-box.cjs.entry.js +52 -53
- package/dist/cjs/vega-counter-badge.cjs.entry.js +9 -10
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +62 -62
- package/dist/cjs/{vega-dialog-controller-dce8cdaf.js → vega-dialog-controller-aaf1f43e.js} +2 -2
- package/dist/cjs/vega-dialog_2.cjs.entry.js +50 -51
- package/dist/cjs/vega-divider.cjs.entry.js +13 -13
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +133 -134
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-error.cjs.entry.js +8 -9
- package/dist/cjs/vega-field-label.cjs.entry.js +20 -23
- package/dist/cjs/vega-file-uploader.cjs.entry.js +76 -81
- package/dist/cjs/vega-flex.cjs.entry.js +18 -17
- package/dist/cjs/vega-font.cjs.entry.js +16 -16
- package/dist/cjs/vega-form.cjs.entry.js +41 -42
- package/dist/cjs/vega-grid.cjs.entry.js +13 -13
- package/dist/cjs/vega-hint.cjs.entry.js +6 -7
- package/dist/cjs/vega-icon.cjs.entry.js +18 -18
- package/dist/cjs/vega-image-uploader.cjs.entry.js +57 -58
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +42 -43
- package/dist/cjs/vega-input-numeric.cjs.entry.js +35 -36
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +51 -52
- package/dist/cjs/vega-input-range.cjs.entry.js +44 -45
- package/dist/cjs/vega-input-select.cjs.entry.js +71 -71
- package/dist/cjs/vega-input.cjs.entry.js +50 -52
- package/dist/cjs/{vega-internal-event-id-79be9bc5.js → vega-internal-event-id-85b68849.js} +12 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +19 -22
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +107 -107
- package/dist/cjs/vega-line-chart.cjs.entry.js +6 -7
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +18 -18
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +18 -21
- package/dist/cjs/vega-pagination.cjs.entry.js +58 -57
- package/dist/cjs/vega-pie-chart.cjs.entry.js +6 -7
- package/dist/cjs/vega-popover_2.cjs.entry.js +72 -37
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +27 -30
- package/dist/cjs/vega-radio_2.cjs.entry.js +53 -54
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +179 -0
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +5107 -0
- package/dist/cjs/vega-section-title.cjs.entry.js +14 -15
- package/dist/cjs/vega-segment-control.cjs.entry.js +24 -26
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +53 -54
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +64 -65
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +48 -50
- package/dist/cjs/vega-signature-capture.cjs.entry.js +44 -46
- package/dist/cjs/vega-skeleton.cjs.entry.js +25 -26
- package/dist/cjs/vega-slot-container.cjs.entry.js +5 -6
- package/dist/cjs/vega-stepper.cjs.entry.js +38 -39
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +58 -59
- package/dist/cjs/vega-table_8.cjs.entry.js +184 -184
- package/dist/cjs/vega-text.cjs.entry.js +10 -10
- package/dist/cjs/vega-textarea.cjs.entry.js +39 -40
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +88 -89
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +25 -27
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +22 -22
- package/dist/cjs/vega.cjs.js +28 -23
- package/dist/collection/collection-manifest.json +18 -0
- package/dist/collection/components/vega-file-uploader/vega-file-uploader.js +2 -2
- package/dist/collection/components/vega-pagination/vega-pagination.js +5 -2
- package/dist/collection/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.js +42 -4
- package/dist/collection/components/vega-rich-text-content/slimmers/controllers/vega-rich-text-content-state-controller.js +38 -0
- package/dist/collection/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.js +59 -0
- package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.css +132 -0
- package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.js +124 -0
- package/dist/collection/components/vega-rich-text-editor/assets/align-center.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/align-justify.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/align-left.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/align-right.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/bold.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/code-simple.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/image.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/indent.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/italic.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/link.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/list-ol.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/list-ul.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/outdent.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/strikethrough.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/text-size.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/text-slash.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/text.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/underline.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/constants/constant.js +33 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/annotation-action.abstract.js +5 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/append-child-nodes-action.js +9 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/bold-annotation-action.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/break-single-block-action.js +16 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/clear-child-nodes-action.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/clear-formatting-annotation-action.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/code-annotation-action.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/delete-block-content-action.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/delete-node-annotation-action.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/horizontal-alignment-annotation-action.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/image-annotation-action.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/indent-annotation-action.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/insert-blocks-after-block.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/insert-blocks-before-block.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/insert-image-to-block-action.js +16 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/insert-nodes-after-node-action.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/insert-nodes-before-node-action.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/italic-annotation-action.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/line-break-multiple-block-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/line-break-single-block-action.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/link-annotation-action.js +26 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/link-group-annotation-action.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/merge-two-blocks-nodes-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.js +32 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/remove-child-action.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/remove-nest-list-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/replace-child-nodes-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/replace-nest-list-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/replace-selected-text-action.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/selection-change-action.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/split-block-with-node-action.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/splittable-action.abstract.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/strikethrough-annotation-action.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/sync-up-selection-action.js +18 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/text-color-annotation-action.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/text-style-annotation-action.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/transform-list-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/transform-paragraph-action.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/underline-annotation-action.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/update-text-action.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/annotation.abstract.js +11 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/bold-annotation.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/clear-formatting-annotation.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/code-annotation.js +46 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.js +46 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/image-annotation.js +56 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/indent-annotation.js +36 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/italic-annotation.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-annotation.js +48 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +102 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/node-annotation.abstract.js +18 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/selection-range-annotation.js +11 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.js +46 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-color-annotation.js +59 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-style-annotation.js +61 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/underline-annotation.js +46 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +336 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +247 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +170 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +209 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +412 -0
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +135 -0
- package/dist/collection/components/vega-rich-text-editor/dto/helper/block-base-operator.js +47 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +93 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +103 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +265 -0
- package/dist/collection/components/vega-rich-text-editor/dto/range.js +178 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/focus-controller.js +73 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.js +258 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.js +71 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy-processor.js +70 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.js +37 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/img-to-rte-image-block-strategy.js +55 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-block-to-rte-text-block-strategy.js +85 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/li-to-rte-list-item-block-strategy.js +49 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ol-to-rte-list-block-strategy.js +50 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/span-img-to-rte-image-block-strategy.js +60 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-to-rte-list-block-strategy.js +50 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/vega-image-to-rte-image-block-strategy.js +56 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/base-handler.js +191 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/delete-content-handler.js +108 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-line-break-handler.js +100 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paragraph-handler.js +90 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.js +95 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-text-handler.js +93 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/insert-image-controller.js +117 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/rich-text-content-controller.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +294 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/state-entity-rendering-registry.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/text-node-color-controller.js +51 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/text-node-rendering-registry.js +26 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/user-input-controller.js +201 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +91 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.js +97 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bold-toolbar-button-slimmer.js +51 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-numbers-toolbar-button-slimmer.js +70 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-toolbar-button-slimmer.js +70 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/numbers-toolbar-button-slimmer.js +68 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/clear-style-toolbar-button-slimmer.js +46 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/code-toolbar-button-slimmer.js +47 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/center-align-toolbar-button-slimmer.js +47 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/horizontal-alignment-toolbar-button-slimmer.js +77 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/justify-align-toolbar-button-slimmer.js +47 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/left-align-toolbar-button-slimmer.js +47 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/right-align-toolbar-button-slimmer.js +47 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.js +72 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/italic-toolbar-button-slimmer.js +49 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/less-indent-toolbar-button-slimmer.js +46 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.js +97 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/more-indent-toolbar-button-slimmer.js +45 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/strikethrough-toolbar-button-slimmer.js +52 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-color-toolbar-button-slimmer.js +129 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.js +128 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/toolbar-button-slimmer.abstract.js +62 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/underline-toolbar-button-slimmer.js +52 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.js +126 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/annotation-actions.test.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/annotations.test.js +134 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/image-block.test.js +90 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-block.test.js +224 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/list-item.test.js +228 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/text-block.test.js +173 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +172 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/image-node.test.js +93 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +433 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/range.test.js +53 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/slimmers/renderers/vega-rich-text-editor-toolbar-button-renderer.js +57 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/vega-rich-text-editor-toolbar-button.css +50 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/vega-rich-text-editor-toolbar-button.js +246 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.css +264 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +676 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/slimmers/renderers/vega-rich-text-image-editor-renderer.js +133 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/vega-rich-text-image-editor.css +13 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/vega-rich-text-image-editor.js +165 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/vega-rich-text-link-editor-renderer.js +144 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.css +11 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.js +247 -0
- package/dist/collection/components/vega-table/vega-table-head-cell/vega-table-head-cell.css +3 -0
- package/dist/collection/constants/ui.js +1 -0
- package/dist/collection/global/scripts/before-vega-load.js +9 -1
- package/dist/collection/helpers/change-manager/subject/static-subject/static-subject-title.js +1 -0
- package/dist/collection/helpers/common/index.js +27 -0
- package/dist/collection/helpers/common/test/wait-for-vega-handler.test.js +1 -1
- package/dist/collection/helpers/dialog/test/vega-dialog-controller.test.js +1 -1
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +5 -1
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +1 -0
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +6 -0
- package/dist/collection/helpers/event-manager/test/vega-event-manager.test.js +1 -1
- package/dist/collection/helpers/feature-control/feature-flag-controller.js +1 -1
- package/dist/collection/helpers/feature-control/tests/feature-flag-controller.test.js +1 -1
- package/dist/collection/helpers/icon/test/icon-manager-controller.test.js +1 -1
- package/dist/collection/helpers/loading-indicator/tests/vega-loader-controller.test.js +1 -1
- package/dist/collection/helpers/notify/tests/vega-notify-controller.test.js +1 -1
- package/dist/collection/helpers/public-api.js +1 -0
- package/dist/collection/helpers/queue/synchronize-task-queue.js +10 -1
- package/dist/collection/helpers/queue/test/synchronize-task-queue.test.js +28 -0
- package/dist/collection/helpers/skeleton-loader/tests/vega-skeleton-loader-controller.test.js +1 -1
- package/dist/collection/helpers/slimmers/component-usage-runtime-metrics.js +1 -1
- package/dist/collection/helpers/slimmers/dark-mode-state-controller-slimmer.js +46 -0
- package/dist/collection/helpers/slimmers/element-appender-slimmer.js +10 -3
- package/dist/collection/helpers/slimmers/runtime-metrics/public-api-runtime-metrics-slimmer-base.js +1 -1
- package/dist/collection/helpers/slimmers/runtime-metrics/test/public-api-runtime-metrics-slimmer-base.test.js +1 -1
- package/dist/collection/helpers/slimmers/test/component-usage-runtime-metrics.test.js +1 -1
- package/dist/collection/helpers/slimmers/test/dark-mode-state-controller.test.js +65 -0
- package/dist/collection/helpers/theme/controllers/dark-mode-style-controller.js +45 -3
- package/dist/collection/helpers/theme/tests/theme-manager-controller.test.js +2 -2
- package/dist/collection/helpers/theme/theme-manager.js +3 -0
- package/dist/collection/helpers/validator/rules/{file-uploader-required-rule.js → object-array-required-rule.js} +3 -3
- package/dist/collection/helpers/validator/rules/required-field-rule.js +2 -1
- package/dist/collection/helpers/validator/rules/rich-text-editor-required-rule.js +57 -0
- package/dist/collection/helpers/validator/test/rules/object-array-required-rule.test.js +7 -0
- package/dist/collection/helpers/validator/test/rules/required-field-rule.test.js +11 -0
- package/dist/collection/helpers/validator/test/rules/rich-text-editor-required-rule.test.js +317 -0
- package/dist/collection/helpers/zindex/test/vega-z-index-manager.test.js +1 -1
- package/dist/collection/polyfill/shadow-selection/shadow-selection-polyfill.js +164 -0
- package/dist/collection/polyfill/shadow-selection/test/shadow-selection-polyfill.test.js +233 -0
- package/dist/collection/polyfill/test-polyfill/unit/index.js +1 -0
- package/dist/collection/polyfill/test-polyfill/unit/methods.js +9 -0
- package/dist/collection/polyfill/test-polyfill/unit/range.js +15 -0
- package/dist/collection/polyfill/test-polyfill/unit/shadow-selection.js +17 -0
- package/dist/collection/utils/spec-utils.js +2 -1
- package/dist/collection/utils/test/ui.test.js +6 -1
- package/dist/collection/utils/ui.js +18 -0
- package/dist/collection/value-model-adapters/angular-ng-model-accessor-adapter.js +1 -0
- package/dist/collection/value-model-adapters/vue-component-v-model-adaptor.js +1 -0
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/{app-globals-c018477a.js → app-globals-48531a04.js} +22 -13
- package/dist/esm/block-annotation.abstract-b0554e2b.js +868 -0
- package/dist/esm/{breakpoints-36a3ed69.js → breakpoints-91116111.js} +2 -12
- package/dist/esm/breakpoints-d9faf11c.js +12 -0
- package/dist/esm/{change-manager-6a7eb88c.js → change-manager-8f5b72c2.js} +1 -1
- package/dist/esm/chevron-down-4a75d28e.js +5 -0
- package/dist/esm/chevron-up-b1989751.js +5 -0
- package/dist/esm/{child-nodes-event-prevent-slimmer-8de7e3bb.js → child-nodes-event-prevent-slimmer-8ceabe63.js} +3 -3
- package/dist/esm/{child-nodes-notify-observer-slimmer-3d52b843.js → child-nodes-notify-observer-slimmer-afc15e00.js} +4 -4
- package/dist/esm/{component-cae24190.js → component-051a594c.js} +1 -1
- package/dist/esm/{component-global-style-slimmer-000e0c11.js → component-global-style-slimmer-631f956f.js} +1 -1
- package/dist/esm/{component-usage-runtime-metrics-b3f6ac79.js → component-usage-runtime-metrics-21813c36.js} +2 -2
- package/dist/esm/content-state-4b036bf1.js +1934 -0
- package/dist/esm/{create-public-api-runtime-metrics-slimmer-cc1164bb.js → create-public-api-runtime-metrics-slimmer-14cb4599.js} +3 -3
- package/dist/esm/{date-732bc749.js → date-655c0af8.js} +1 -1
- package/dist/esm/{deprecated-property-slimmer-43d184b3.js → deprecated-property-slimmer-9ea5019c.js} +2 -2
- package/dist/esm/{design-token-2a527af3.js → design-token-20fdba82.js} +6 -6
- package/dist/esm/dom-node-subject-observer-factory-80358591.js +269 -0
- package/dist/esm/{dynamic-slimmer-90b8af32.js → dynamic-slimmer-85746483.js} +1 -1
- package/dist/esm/{element-appender-slimmer-48d826b2.js → element-appender-slimmer-4dfa326d.js} +17 -10
- package/dist/esm/{event-emit-slimmer-493e6b9d.js → event-emit-slimmer-c03cf145.js} +5 -5
- package/dist/esm/{feature-flag-controller-6bbf53c1.js → feature-flag-controller-dfde0cfa.js} +3 -3
- package/dist/esm/{form-field-controller-slimmer-88492678.js → form-field-controller-slimmer-de5fe574.js} +11 -12
- package/dist/esm/{index-187f71d1.js → global-slimmer-registry-6887a59f.js} +284 -275
- package/dist/esm/{icon-manager-1ee2c968.js → icon-manager-3cef32e7.js} +2 -2
- package/dist/esm/index-44c794b4.js +323 -0
- package/dist/esm/index.js +29 -23
- package/dist/esm/{inject-keyboard-manager-8a82e8c9.js → inject-keyboard-manager-45309420.js} +1 -1
- package/dist/esm/{internal-icon-manager-7004584d.js → internal-icon-manager-7fc7535a.js} +1 -1
- package/dist/esm/{internal-vega-event-manager-48ac30f1.js → internal-vega-event-manager-3a3815d3.js} +6 -2
- package/dist/esm/{internal-vega-z-index-manager-7d2b54c3.js → internal-vega-z-index-manager-89e8b6f5.js} +1 -1
- package/dist/esm/{keyboard-manager-d1f9ddc1.js → keyboard-manager-2c06eafe.js} +1 -1
- package/dist/esm/{keyboard-manager-slimmer-8723f20f.js → keyboard-manager-slimmer-fd177285.js} +2 -2
- package/dist/esm/{legend-input-processor-0cef3ebe.js → legend-input-processor-15939912.js} +1 -1
- package/dist/esm/loader.js +28 -23
- package/dist/esm/{mutation-observer-slimmer-6cef9549.js → mutation-observer-slimmer-ca2cb2e8.js} +1 -1
- package/dist/esm/{vega-skeleton-loader-controller-1911558d.js → node.abstract-93746055.js} +226 -833
- package/dist/esm/{page-resize-observer-slimmer-994c1e1b.js → page-resize-observer-slimmer-8589ebc8.js} +2 -2
- package/dist/esm/{remote-invocation-registry-1682b34e.js → remote-invocation-registry-2ec6936d.js} +2 -2
- package/dist/esm/{required-field-rule-5da360cc.js → required-field-rule-368b31fa.js} +2 -1
- package/dist/esm/{responsive-format-facade-3dc84e41.js → responsive-format-facade-559ec469.js} +3 -3
- package/dist/esm/{state-background-color-formatter-0540d006.js → state-background-color-formatter-16031a43.js} +2 -2
- package/dist/esm/{static-subject-title-500cf2a3.js → static-subject-title-e06a3840.js} +2 -1
- package/dist/esm/{string-input-formatter-slimmer-fc23bc9f.js → string-input-formatter-slimmer-c9fb1fa1.js} +2 -2
- package/dist/esm/{style-formatter-ccb2da0d.js → style-formatter-51845b6d.js} +2 -2
- package/dist/esm/{sub-state-notify-slimmer-21b1c646.js → sub-state-notify-slimmer-6e97a58a.js} +5 -6
- package/dist/esm/{sub-state-observer-slimmer-8c80d874.js → sub-state-observer-slimmer-0968ce04.js} +5 -6
- package/dist/esm/{synchronize-task-queue-8f5fbbd9.js → synchronize-task-queue-ac8acc3b.js} +10 -1
- package/dist/esm/text-color-toolbar-button-slimmer-b2270b64.js +207 -0
- package/dist/esm/text-node-a652ca87.js +933 -0
- package/dist/esm/{translation-4eb3cf85.js → translation-b3fe8e74.js} +4 -4
- package/dist/esm/{translation-slimmer-9d07a0ff.js → translation-slimmer-860cd766.js} +2 -2
- package/dist/esm/trash-can-8819a939.js +5 -0
- package/dist/esm/{type-guard-63caf78b.js → type-guard-158f6d7a.js} +20 -20
- package/dist/esm/{typography-a8fc4764.js → typography-396de03f.js} +1 -1
- package/dist/esm/{ui-0132dbb5.js → ui-5600b48f.js} +20 -2
- package/dist/esm/vega-accordion.entry.js +22 -23
- package/dist/esm/vega-app-footer.entry.js +3 -4
- package/dist/esm/vega-app-header-button.entry.js +26 -26
- package/dist/esm/vega-backdrop.entry.js +4 -5
- package/dist/esm/vega-banner.entry.js +15 -17
- package/dist/esm/vega-bar-chart.entry.js +5 -6
- package/dist/esm/vega-box.entry.js +13 -13
- package/dist/esm/vega-breadcrumb.entry.js +13 -15
- package/dist/esm/vega-button-circle.entry.js +21 -22
- package/dist/esm/vega-button-group_2.entry.js +16 -18
- package/dist/esm/vega-button-link.entry.js +13 -15
- package/dist/esm/vega-button.entry.js +20 -21
- package/dist/esm/vega-calendar_3.entry.js +29 -30
- package/dist/esm/vega-card.entry.js +11 -11
- package/dist/esm/vega-carousel.entry.js +17 -19
- package/dist/esm/vega-checkbox_2.entry.js +24 -25
- package/dist/esm/vega-chip.entry.js +21 -22
- package/dist/esm/vega-color-picker.entry.js +19 -21
- package/dist/esm/vega-combo-box.entry.js +27 -28
- package/dist/esm/vega-counter-badge.entry.js +3 -4
- package/dist/esm/vega-date-picker_2.entry.js +37 -37
- package/dist/esm/{vega-dialog-controller-8b343a17.js → vega-dialog-controller-5b23f68c.js} +2 -2
- package/dist/esm/vega-dialog_2.entry.js +24 -25
- package/dist/esm/vega-divider.entry.js +11 -11
- package/dist/esm/vega-dropdown_5.entry.js +33 -34
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-error.entry.js +5 -6
- package/dist/esm/vega-field-label.entry.js +9 -12
- package/dist/esm/vega-file-uploader.entry.js +27 -32
- package/dist/esm/vega-flex.entry.js +16 -15
- package/dist/esm/vega-font.entry.js +12 -12
- package/dist/esm/vega-form.entry.js +23 -24
- package/dist/esm/vega-grid.entry.js +11 -11
- package/dist/esm/vega-hint.entry.js +3 -4
- package/dist/esm/vega-icon.entry.js +14 -14
- package/dist/esm/vega-image-uploader.entry.js +28 -29
- package/dist/esm/vega-input-credit-card.entry.js +25 -26
- package/dist/esm/vega-input-numeric.entry.js +26 -27
- package/dist/esm/vega-input-phone-number.entry.js +25 -26
- package/dist/esm/vega-input-range.entry.js +23 -24
- package/dist/esm/vega-input-select.entry.js +31 -31
- package/dist/esm/vega-input.entry.js +23 -25
- package/dist/esm/{vega-internal-event-id-770faa12.js → vega-internal-event-id-4af5c6e9.js} +7 -1
- package/dist/esm/vega-item-toggle.entry.js +10 -13
- package/dist/esm/vega-left-nav_5.entry.js +32 -32
- package/dist/esm/vega-line-chart.entry.js +6 -7
- package/dist/esm/vega-loader-wrapper_2.entry.js +10 -10
- package/dist/esm/vega-page-notification_2.entry.js +6 -9
- package/dist/esm/vega-pagination.entry.js +22 -21
- package/dist/esm/vega-pie-chart.entry.js +5 -6
- package/dist/esm/vega-popover_2.entry.js +59 -24
- package/dist/esm/vega-progress-tracker.entry.js +10 -13
- package/dist/esm/vega-radio_2.entry.js +26 -27
- package/dist/esm/vega-rich-text-content.entry.js +175 -0
- package/dist/esm/vega-rich-text-editor_4.entry.js +5100 -0
- package/dist/esm/vega-section-title.entry.js +3 -4
- package/dist/esm/vega-segment-control.entry.js +12 -14
- package/dist/esm/vega-selection-chip_2.entry.js +28 -29
- package/dist/esm/vega-selection-tile_2.entry.js +26 -27
- package/dist/esm/vega-sidenav_3.entry.js +23 -25
- package/dist/esm/vega-signature-capture.entry.js +27 -29
- package/dist/esm/vega-skeleton.entry.js +3 -4
- package/dist/esm/vega-slot-container.entry.js +2 -3
- package/dist/esm/vega-stepper.entry.js +22 -23
- package/dist/esm/vega-tab-group_2.entry.js +18 -19
- package/dist/esm/vega-table_8.entry.js +34 -34
- package/dist/esm/vega-text.entry.js +6 -6
- package/dist/esm/vega-textarea.entry.js +23 -24
- package/dist/esm/vega-time-picker_2.entry.js +31 -32
- package/dist/esm/vega-toggle-switch.entry.js +18 -20
- package/dist/esm/vega-tooltip_2.entry.js +16 -16
- package/dist/esm/vega.js +28 -23
- package/dist/esm/{y-axis-input-processor-a4d6aa50.js → y-axis-input-processor-a26a57e5.js} +1 -1
- package/dist/types/components/vega-pagination/vega-pagination.d.ts +1 -0
- package/dist/types/components/vega-popover/slimmers/controllers/vega-popover-appender-controller.d.ts +19 -0
- package/dist/types/components/vega-rich-text-content/slimmers/controllers/vega-rich-text-content-state-controller.d.ts +11 -0
- package/dist/types/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.d.ts +20 -0
- package/dist/types/components/vega-rich-text-content/vega-rich-text-content.d.ts +44 -0
- package/dist/types/components/vega-rich-text-editor/assets/align-center.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/align-justify.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/align-left.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/align-right.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/bold.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/code-simple.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/image.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/indent.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/italic.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/link.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/list-ol.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/list-ul.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/outdent.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/strikethrough.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/text-size.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/text-slash.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/text.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/underline.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/constants/constant.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/annotation-action.abstract.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/append-child-nodes-action.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/bold-annotation-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/break-single-block-action.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/clear-child-nodes-action.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/clear-formatting-annotation-action.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/code-annotation-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/delete-block-content-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/delete-node-annotation-action.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/horizontal-alignment-annotation-action.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/image-annotation-action.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/indent-annotation-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/insert-blocks-after-block.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/insert-blocks-before-block.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/insert-image-to-block-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/insert-nodes-after-node-action.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/insert-nodes-before-node-action.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/italic-annotation-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/line-break-multiple-block-action.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/line-break-single-block-action.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/link-annotation-action.d.ts +24 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/link-group-annotation-action.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/merge-two-blocks-nodes-action.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.d.ts +30 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/remove-child-action.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/remove-nest-list-action.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/replace-child-nodes-action.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/replace-nest-list-action.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/replace-selected-text-action.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/selection-change-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/split-block-with-node-action.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/splittable-action.abstract.d.ts +10 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/strikethrough-annotation-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/sync-up-selection-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/text-color-annotation-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/text-style-annotation-action.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/transform-list-action.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/transform-paragraph-action.d.ts +11 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/underline-annotation-action.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/update-text-action.d.ts +11 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation.abstract.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.d.ts +22 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/bold-annotation.d.ts +30 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/clear-formatting-annotation.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/code-annotation.d.ts +36 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.d.ts +36 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/image-annotation.d.ts +33 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/indent-annotation.d.ts +30 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/italic-annotation.d.ts +30 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/link-annotation.d.ts +37 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/link-group-annotation.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/node-annotation.abstract.d.ts +28 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/selection-range-annotation.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.d.ts +36 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/text-color-annotation.d.ts +43 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/text-style-annotation.d.ts +30 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/underline-annotation.d.ts +36 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +167 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +48 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +29 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +32 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +62 -0
- package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +58 -0
- package/dist/types/components/vega-rich-text-editor/dto/helper/block-base-operator.d.ts +24 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +65 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +31 -0
- package/dist/types/components/vega-rich-text-editor/dto/range.d.ts +102 -0
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +175 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/focus-controller.d.ts +33 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.d.ts +111 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.d.ts +32 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy-processor.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.d.ts +32 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/img-to-rte-image-block-strategy.d.ts +31 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-block-to-rte-text-block-strategy.d.ts +38 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/li-to-rte-list-item-block-strategy.d.ts +35 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ol-to-rte-list-block-strategy.d.ts +36 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/span-img-to-rte-image-block-strategy.d.ts +31 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-to-rte-list-block-strategy.d.ts +36 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/vega-image-to-rte-image-block-strategy.d.ts +31 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/base-handler.d.ts +78 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/delete-content-handler.d.ts +33 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-line-break-handler.d.ts +53 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paragraph-handler.d.ts +22 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.d.ts +44 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-text-handler.d.ts +25 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/insert-image-controller.d.ts +39 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/rich-text-content-controller.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +123 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/state-entity-rendering-registry.d.ts +33 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/text-node-color-controller.d.ts +22 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/text-node-rendering-registry.d.ts +22 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/user-input-controller.d.ts +70 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/value-controller.d.ts +38 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.d.ts +21 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bold-toolbar-button-slimmer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-numbers-toolbar-button-slimmer.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-toolbar-button-slimmer.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/numbers-toolbar-button-slimmer.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/clear-style-toolbar-button-slimmer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/code-toolbar-button-slimmer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/center-align-toolbar-button-slimmer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/horizontal-alignment-toolbar-button-slimmer.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/justify-align-toolbar-button-slimmer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/left-align-toolbar-button-slimmer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/right-align-toolbar-button-slimmer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/italic-toolbar-button-slimmer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/less-indent-toolbar-button-slimmer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/more-indent-toolbar-button-slimmer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/strikethrough-toolbar-button-slimmer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/text-color-toolbar-button-slimmer.d.ts +28 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.d.ts +21 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/toolbar-button-slimmer.abstract.d.ts +49 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/underline-toolbar-button-slimmer.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.d.ts +53 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/annotations.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/blocks/image-block.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/blocks/list-block.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/blocks/list-item.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/blocks/text-block.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/content-state.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/nodes/image-node.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/nodes/text-node.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/range.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/slimmers/renderers/vega-rich-text-editor-toolbar-button-renderer.d.ts +11 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/vega-rich-text-editor-toolbar-button.d.ts +62 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +186 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-image-editor/slimmers/renderers/vega-rich-text-image-editor-renderer.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-image-editor/types.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-image-editor/vega-rich-text-image-editor.d.ts +46 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/slimmers/renderers/vega-rich-text-link-editor-renderer.d.ts +29 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/types.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.d.ts +64 -0
- package/dist/types/components.d.ts +378 -0
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/change-manager/subject/static-subject/static-subject-title.d.ts +2 -1
- package/dist/types/helpers/common/index.d.ts +8 -0
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +6 -0
- package/dist/types/helpers/public-api.d.ts +1 -0
- package/dist/types/helpers/queue/synchronize-task-queue.d.ts +7 -0
- package/dist/types/helpers/slimmers/dark-mode-state-controller-slimmer.d.ts +21 -0
- package/dist/types/helpers/slimmers/element-appender-slimmer.d.ts +2 -0
- package/dist/types/helpers/slimmers/test/dark-mode-state-controller.test.d.ts +1 -0
- package/dist/types/helpers/theme/controllers/dark-mode-style-controller.d.ts +20 -0
- package/dist/types/helpers/validator/rules/form-field-validation-rule.d.ts +7 -1
- package/dist/types/helpers/validator/rules/{file-uploader-required-rule.d.ts → object-array-required-rule.d.ts} +3 -3
- package/dist/types/helpers/validator/rules/rich-text-editor-required-rule.d.ts +39 -0
- package/dist/types/helpers/validator/test/rules/object-array-required-rule.test.d.ts +1 -0
- package/dist/types/helpers/validator/test/rules/rich-text-editor-required-rule.test.d.ts +1 -0
- package/dist/types/polyfill/shadow-selection/shadow-selection-polyfill.d.ts +64 -0
- package/dist/types/polyfill/shadow-selection/test/shadow-selection-polyfill.test.d.ts +0 -0
- package/dist/types/polyfill/test-polyfill/unit/index.d.ts +1 -0
- package/dist/types/polyfill/test-polyfill/unit/range.d.ts +7 -0
- package/dist/types/polyfill/test-polyfill/unit/shadow-selection.d.ts +0 -0
- package/dist/types/types/components.type.d.ts +15 -0
- package/dist/types/utils/ui.d.ts +7 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-0190095c.entry.js +1 -0
- package/dist/vega/p-034e6348.entry.js +1 -0
- package/dist/vega/p-0cd2b50f.entry.js +1 -0
- package/dist/vega/{p-5453f591.js → p-0e0c47ad.js} +1 -1
- package/dist/vega/p-10393104.js +1 -0
- package/dist/vega/p-109a00cf.entry.js +1 -0
- package/dist/vega/p-112455b1.js +1 -0
- package/dist/vega/{p-bdb94242.js → p-11a19ca0.js} +1 -1
- package/dist/vega/{p-a04632d0.js → p-11cb477b.js} +1 -1
- package/dist/vega/p-1564cc4d.entry.js +1 -0
- package/dist/vega/p-18886765.entry.js +1 -0
- package/dist/vega/p-1995e98e.js +1 -0
- package/dist/vega/p-19b26168.entry.js +1 -0
- package/dist/vega/{p-b62f0454.js → p-1ec4b319.js} +1 -1
- package/dist/vega/p-1ec763ab.js +1 -0
- package/dist/vega/p-1fb56e14.js +1 -0
- package/dist/vega/p-21992602.entry.js +1 -0
- package/dist/vega/p-22563151.entry.js +1 -0
- package/dist/vega/p-23795da1.entry.js +1 -0
- package/dist/vega/p-29277e41.entry.js +1 -0
- package/dist/vega/{p-9b797118.js → p-296cc56b.js} +1 -1
- package/dist/vega/p-2a7e9422.entry.js +1 -0
- package/dist/vega/p-2ca6d977.entry.js +1 -0
- package/dist/vega/p-2e419309.entry.js +1 -0
- package/dist/vega/p-3039bef8.js +1 -0
- package/dist/vega/{p-e2acbc60.js → p-3152031c.js} +1 -1
- package/dist/vega/p-34939c97.entry.js +1 -0
- package/dist/vega/{p-a46329bb.js → p-368d0060.js} +1 -1
- package/dist/vega/p-3897bb2d.entry.js +1 -0
- package/dist/vega/{p-69e63d21.entry.js → p-390c5236.entry.js} +1 -1
- package/dist/vega/{p-af7a3154.js → p-3953c705.js} +1 -1
- package/dist/vega/{p-c4a52c83.js → p-39836361.js} +1 -1
- package/dist/vega/{p-a190c86a.js → p-3b4bde3e.js} +1 -1
- package/dist/vega/p-3ce31dc3.js +1 -0
- package/dist/vega/{p-04215e74.js → p-3f1b542a.js} +1 -1
- package/dist/vega/{p-2d0d575f.js → p-443ad3b3.js} +1 -1
- package/dist/vega/p-452e284a.js +1 -0
- package/dist/vega/p-4bcd6612.js +1 -0
- package/dist/vega/p-4c41dd64.js +1 -0
- package/dist/vega/p-55beac7f.entry.js +1 -0
- package/dist/vega/p-57405834.entry.js +1 -0
- package/dist/vega/p-584dcd9b.js +1 -0
- package/dist/vega/p-589e6041.entry.js +1 -0
- package/dist/vega/{p-6a334573.js → p-59bdf9b8.js} +1 -1
- package/dist/vega/p-5e95402a.entry.js +1 -0
- package/dist/vega/p-5eee21b4.entry.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-613ddaab.js +1 -0
- package/dist/vega/{p-2d5a9f66.js → p-62774231.js} +1 -1
- package/dist/vega/p-62cea2e7.entry.js +1 -0
- package/dist/vega/p-65b79fd7.js +1 -0
- package/dist/vega/p-6741e2b9.entry.js +1 -0
- package/dist/vega/p-6a084fe1.entry.js +1 -0
- package/dist/vega/{p-760283d1.entry.js → p-6b286226.entry.js} +1 -1
- package/dist/vega/p-6b722905.entry.js +1 -0
- package/dist/vega/p-6e4b2752.entry.js +1 -0
- package/dist/vega/{p-47c87634.js → p-70151c27.js} +1 -1
- package/dist/vega/p-7209d03b.js +1 -0
- package/dist/vega/p-734ea281.entry.js +1 -0
- package/dist/vega/p-76fc408e.entry.js +1 -0
- package/dist/vega/p-7a40e033.js +1 -0
- package/dist/vega/p-7a9f453e.entry.js +1 -0
- package/dist/vega/p-80ccd894.entry.js +1 -0
- package/dist/vega/{p-ed237efc.js → p-81ead59a.js} +1 -1
- package/dist/vega/{p-987fbbd0.js → p-843a0c1c.js} +1 -1
- package/dist/vega/p-84c597c8.entry.js +1 -0
- package/dist/vega/p-8836c1b9.js +1 -0
- package/dist/vega/p-8b78c6a3.entry.js +1 -0
- package/dist/vega/p-8be45a45.entry.js +1 -0
- package/dist/vega/p-8c26227e.js +1 -0
- package/dist/vega/p-8d7b45f7.entry.js +1 -0
- package/dist/vega/p-8e17b9dd.entry.js +1 -0
- package/dist/vega/p-8f004647.entry.js +1 -0
- package/dist/vega/p-8f93242a.js +1 -0
- package/dist/vega/p-925a2137.js +1 -0
- package/dist/vega/p-92f88033.entry.js +1 -0
- package/dist/vega/p-94de7a02.entry.js +1 -0
- package/dist/vega/p-9968e71d.entry.js +1 -0
- package/dist/vega/p-9c1eeff2.js +2 -0
- package/dist/vega/p-9d1b9e70.entry.js +1 -0
- package/dist/vega/p-9e732a26.entry.js +1 -0
- package/dist/vega/p-9f39dd10.js +1 -0
- package/dist/vega/p-a5ffe912.js +1 -0
- package/dist/vega/p-a6104aa7.js +1 -0
- package/dist/vega/p-a6169ad6.entry.js +1 -0
- package/dist/vega/{p-6a8f1251.js → p-a6a7d0c9.js} +1 -1
- package/dist/vega/p-a8bf559a.js +1 -0
- package/dist/vega/p-aacf6920.js +1 -0
- package/dist/vega/p-acf7f903.js +1 -0
- package/dist/vega/p-afec17ad.entry.js +1 -0
- package/dist/vega/p-b1f65b13.js +1 -0
- package/dist/vega/{p-0c051d2a.entry.js → p-b3f9cc3a.entry.js} +2 -2
- package/dist/vega/p-b693c1ac.entry.js +1 -0
- package/dist/vega/p-b9e2add4.entry.js +1 -0
- package/dist/vega/p-bd894860.entry.js +1 -0
- package/dist/vega/p-c0d6a587.entry.js +1 -0
- package/dist/vega/p-c26e6820.entry.js +1 -0
- package/dist/vega/p-c34487e1.entry.js +1 -0
- package/dist/vega/p-c532b132.entry.js +1 -0
- package/dist/vega/p-ca2fb711.js +1 -0
- package/dist/vega/p-cebf93f1.entry.js +1 -0
- package/dist/vega/p-cfdc148a.entry.js +1 -0
- package/dist/vega/p-d0351d71.entry.js +1 -0
- package/dist/vega/p-d057999f.js +1 -0
- package/dist/vega/{p-c7d70786.js → p-d171cf44.js} +1 -1
- package/dist/vega/p-d2ab6096.entry.js +1 -0
- package/dist/vega/p-d35643c5.entry.js +1 -0
- package/dist/vega/p-d400a1d9.entry.js +1 -0
- package/dist/vega/p-d6732a72.entry.js +1 -0
- package/dist/vega/p-d720b06a.entry.js +1 -0
- package/dist/vega/{p-c59042c0.js → p-d884c644.js} +1 -1
- package/dist/vega/p-d987e404.entry.js +1 -0
- package/dist/vega/p-d9b86108.entry.js +1 -0
- package/dist/vega/p-e0b25eaf.js +1 -0
- package/dist/vega/{p-9f3b1d77.js → p-e1e1fcf0.js} +1 -1
- package/dist/vega/p-e27e115d.entry.js +1 -0
- package/dist/vega/p-e65c8ac7.entry.js +1 -0
- package/dist/vega/p-e79057cc.js +1 -0
- package/dist/vega/p-e89e9769.entry.js +1 -0
- package/dist/vega/{p-781fd6e0.js → p-eac38d87.js} +1 -1
- package/dist/vega/p-ecd64c7f.entry.js +1 -0
- package/dist/vega/p-ed45b3b6.js +1 -0
- package/dist/vega/p-f357cf46.js +1 -0
- package/dist/vega/p-f5b2e72a.entry.js +1 -0
- package/dist/vega/p-f6af3749.js +1 -0
- package/dist/vega/p-f763e2eb.js +1 -0
- package/dist/vega/p-fc622a75.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +3 -4
- package/dist/cjs/dom-node-subject-observer-factory-2e41340d.js +0 -141
- package/dist/cjs/global-slimmer-registry-b3bce7e0.js +0 -297
- package/dist/cjs/index-40a1cd3a.js +0 -15
- package/dist/cjs/index-5792390b.js +0 -1024
- package/dist/cjs/observer-f49483e8.js +0 -32
- package/dist/collection/helpers/validator/test/rules/file-uploader-required-rule.test.js +0 -7
- package/dist/esm/chevron-down-4303bddb.js +0 -9
- package/dist/esm/dom-node-subject-observer-factory-9461cd67.js +0 -138
- package/dist/esm/global-slimmer-registry-17c4efd4.js +0 -283
- package/dist/esm/index-0830dd1d.js +0 -13
- package/dist/esm/index-0863eec6.js +0 -1019
- package/dist/esm/observer-3959f9dd.js +0 -30
- package/dist/esm/vega-event-id-0f8fc134.js +0 -103
- package/dist/vega/p-07a8cf89.entry.js +0 -1
- package/dist/vega/p-07af8ee4.entry.js +0 -1
- package/dist/vega/p-0916da7a.entry.js +0 -1
- package/dist/vega/p-0abae6cc.entry.js +0 -1
- package/dist/vega/p-0e59c3b7.entry.js +0 -1
- package/dist/vega/p-0fe89d42.js +0 -1
- package/dist/vega/p-0fecf145.js +0 -1
- package/dist/vega/p-11786565.entry.js +0 -1
- package/dist/vega/p-13d34a23.entry.js +0 -1
- package/dist/vega/p-14fc5aed.entry.js +0 -1
- package/dist/vega/p-16bb355d.js +0 -1
- package/dist/vega/p-17233d94.entry.js +0 -1
- package/dist/vega/p-1a8dd528.entry.js +0 -1
- package/dist/vega/p-1c298d5a.js +0 -2
- package/dist/vega/p-2b5ab7f9.entry.js +0 -1
- package/dist/vega/p-32f651f7.js +0 -1
- package/dist/vega/p-331a62d5.js +0 -1
- package/dist/vega/p-36395deb.entry.js +0 -1
- package/dist/vega/p-38b93319.entry.js +0 -1
- package/dist/vega/p-4022f395.entry.js +0 -1
- package/dist/vega/p-4163c2c2.js +0 -1
- package/dist/vega/p-4625a2b4.js +0 -1
- package/dist/vega/p-483d0916.entry.js +0 -1
- package/dist/vega/p-4921c38c.entry.js +0 -1
- package/dist/vega/p-4963e445.entry.js +0 -1
- package/dist/vega/p-497eba8c.entry.js +0 -1
- package/dist/vega/p-49db0660.entry.js +0 -1
- package/dist/vega/p-4d25df7d.js +0 -1
- package/dist/vega/p-535f0758.js +0 -1
- package/dist/vega/p-53702f16.js +0 -1
- package/dist/vega/p-53d34f58.entry.js +0 -1
- package/dist/vega/p-5440344e.js +0 -1
- package/dist/vega/p-576fe8cf.entry.js +0 -1
- package/dist/vega/p-590870e4.js +0 -1
- package/dist/vega/p-5915634b.js +0 -1
- package/dist/vega/p-597871ab.entry.js +0 -1
- package/dist/vega/p-5fbac513.js +0 -1
- package/dist/vega/p-603f7aa3.entry.js +0 -1
- package/dist/vega/p-61f6167c.js +0 -1
- package/dist/vega/p-66ffdfdf.entry.js +0 -1
- package/dist/vega/p-6758dc5e.entry.js +0 -1
- package/dist/vega/p-68ad953c.js +0 -1
- package/dist/vega/p-6c6d86da.js +0 -1
- package/dist/vega/p-6e1ab235.js +0 -1
- package/dist/vega/p-6f027906.entry.js +0 -1
- package/dist/vega/p-6f788b49.entry.js +0 -1
- package/dist/vega/p-7372cd79.entry.js +0 -1
- package/dist/vega/p-7df3aa44.entry.js +0 -1
- package/dist/vega/p-810ba5c3.entry.js +0 -1
- package/dist/vega/p-84118b6d.entry.js +0 -1
- package/dist/vega/p-848825ff.entry.js +0 -1
- package/dist/vega/p-84fa8466.js +0 -1
- package/dist/vega/p-87640a4d.entry.js +0 -1
- package/dist/vega/p-8a091eb7.js +0 -1
- package/dist/vega/p-8b084bf9.entry.js +0 -1
- package/dist/vega/p-8f5ffac5.entry.js +0 -1
- package/dist/vega/p-910410ad.entry.js +0 -1
- package/dist/vega/p-943e89b4.js +0 -1
- package/dist/vega/p-99a35465.entry.js +0 -1
- package/dist/vega/p-99cf17e3.entry.js +0 -1
- package/dist/vega/p-9ba085c1.entry.js +0 -1
- package/dist/vega/p-9e9ec748.js +0 -1
- package/dist/vega/p-9f984c33.entry.js +0 -1
- package/dist/vega/p-9fbdeada.js +0 -1
- package/dist/vega/p-a7fdb16a.js +0 -1
- package/dist/vega/p-a828eeef.entry.js +0 -1
- package/dist/vega/p-acc14aa2.js +0 -1
- package/dist/vega/p-ae5751fb.entry.js +0 -1
- package/dist/vega/p-b3e754da.entry.js +0 -1
- package/dist/vega/p-b4e92130.entry.js +0 -1
- package/dist/vega/p-b5990090.js +0 -1
- package/dist/vega/p-b8e42c11.entry.js +0 -1
- package/dist/vega/p-bb6f8b70.entry.js +0 -1
- package/dist/vega/p-c1dfdc13.js +0 -1
- package/dist/vega/p-c51a48d6.entry.js +0 -1
- package/dist/vega/p-d6d10fb3.entry.js +0 -1
- package/dist/vega/p-d7df87b4.entry.js +0 -1
- package/dist/vega/p-daaf3ee3.entry.js +0 -1
- package/dist/vega/p-dadd7db4.entry.js +0 -1
- package/dist/vega/p-db94558e.entry.js +0 -1
- package/dist/vega/p-dba59bd7.entry.js +0 -1
- package/dist/vega/p-e5cd92f0.entry.js +0 -1
- package/dist/vega/p-e5e0394a.entry.js +0 -1
- package/dist/vega/p-ec157238.js +0 -1
- package/dist/vega/p-eddcb385.entry.js +0 -1
- package/dist/vega/p-f2685ec5.entry.js +0 -1
- package/dist/vega/p-f404aa83.js +0 -1
- package/dist/vega/p-f46c930f.js +0 -1
- package/dist/vega/p-f556c3cd.entry.js +0 -1
- package/dist/vega/p-f5876e05.entry.js +0 -1
- package/dist/vega/p-f64fb740.entry.js +0 -1
- package/dist/vega/p-f76e9940.entry.js +0 -1
- package/dist/vega/p-f7728ead.entry.js +0 -1
- package/dist/vega/p-fae41be0.entry.js +0 -1
- package/dist/vega/p-faea1620.js +0 -1
- /package/dist/types/{helpers/validator/test/rules/file-uploader-required-rule.test.d.ts → components/vega-rich-text-editor/test/dto/annotation-actions.test.d.ts} +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { NodeAnnotation } from '../annotations/node-annotation.abstract';
|
|
2
|
+
import ChangeManager from '../../../../helpers/change-manager/change-manager';
|
|
3
|
+
import stateEntityRenderingRegistry from '../../slimmers/controllers/state-entity-rendering-registry';
|
|
4
|
+
import domNodeSubjectFactory from '../../../../helpers/change-manager/subject/dom-node-subject/dom-node-subject-factory';
|
|
5
|
+
import { VegaInternalRichTextEditorFlushChanges } from '../../../../helpers/event-manager/event-id/vega-internal-event-id';
|
|
6
|
+
import { ModifyContentAction } from '../actions/modify-content-action.abstract';
|
|
7
|
+
export var NodeTypeEnum;
|
|
8
|
+
(function (NodeTypeEnum) {
|
|
9
|
+
NodeTypeEnum["TEXT"] = "TEXT";
|
|
10
|
+
NodeTypeEnum["IMAGE"] = "IMAGE";
|
|
11
|
+
})(NodeTypeEnum || (NodeTypeEnum = {}));
|
|
12
|
+
/**
|
|
13
|
+
* Abstract class for all nodes
|
|
14
|
+
*/
|
|
15
|
+
export class RTENode {
|
|
16
|
+
constructor(id, annotationMap) {
|
|
17
|
+
this.annotationMap = new Map();
|
|
18
|
+
this.id = id;
|
|
19
|
+
if (annotationMap) {
|
|
20
|
+
this.annotationMap = annotationMap;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Get annotation by type
|
|
25
|
+
*
|
|
26
|
+
* @param {RTENodeAnnotationMapKey} type - Annotation type
|
|
27
|
+
* @returns {Nullable<RTENodeAnnotationMapValue>} - Annotation
|
|
28
|
+
*/
|
|
29
|
+
getAnnotationByType(type) {
|
|
30
|
+
return this.annotationMap.get(type);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Delete annotation by type
|
|
34
|
+
*
|
|
35
|
+
* @param {RTENodeAnnotationMapKey} type - Annotation type
|
|
36
|
+
*/
|
|
37
|
+
deleteAnnotationByType(type) {
|
|
38
|
+
this.annotationMap.delete(type);
|
|
39
|
+
this.flushChange();
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Apply action to node
|
|
43
|
+
*
|
|
44
|
+
* @param {AnnotationAction} action - Annotation action
|
|
45
|
+
* @returns {this} - Node
|
|
46
|
+
*/
|
|
47
|
+
apply(action) {
|
|
48
|
+
this.doApply(action);
|
|
49
|
+
if (action.isFlushable) {
|
|
50
|
+
this.flushChange();
|
|
51
|
+
}
|
|
52
|
+
return this;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* apply annotation action or modify content action
|
|
56
|
+
*
|
|
57
|
+
* @param {AnnotationAction | ModifyContentAction} action annotation type action or modify content type action
|
|
58
|
+
*/
|
|
59
|
+
doApply(action) {
|
|
60
|
+
if (action instanceof ModifyContentAction) {
|
|
61
|
+
this.doModifyActionApply(action);
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
this.doAnnotationActionApply(action);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Get styles from annotations
|
|
69
|
+
*
|
|
70
|
+
* @returns {AnnotationStyle} - Annotation style
|
|
71
|
+
*/
|
|
72
|
+
getStyles() {
|
|
73
|
+
return Array.from(this.annotationMap.values())
|
|
74
|
+
.filter((annotation) => annotation instanceof NodeAnnotation)
|
|
75
|
+
.map((annotation) => annotation.render())
|
|
76
|
+
.filter(Boolean)
|
|
77
|
+
.reduce((current, obj) => (Object.assign(Object.assign({}, current), obj)), {});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Get classes from annotations
|
|
81
|
+
*
|
|
82
|
+
* @returns {AnnotationStyle} - Annotation style
|
|
83
|
+
*/
|
|
84
|
+
getClasses() {
|
|
85
|
+
return Array.from(this.annotationMap.values())
|
|
86
|
+
.filter((annotation) => annotation instanceof NodeAnnotation)
|
|
87
|
+
.map((annotation) => { var _a; return (_a = annotation.renderClass) === null || _a === void 0 ? void 0 : _a.call(annotation); })
|
|
88
|
+
.filter(Boolean)
|
|
89
|
+
.reduce((pre, cur) => [pre, cur].join(' '), '');
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Flush the value change
|
|
93
|
+
*/
|
|
94
|
+
flushChange() {
|
|
95
|
+
const domNode = stateEntityRenderingRegistry.getDOMByEntity(this);
|
|
96
|
+
if (domNode) {
|
|
97
|
+
const nodeSubject = domNodeSubjectFactory.getSubjectFromParentNodeByEventId(domNode, VegaInternalRichTextEditorFlushChanges);
|
|
98
|
+
if (nodeSubject) {
|
|
99
|
+
ChangeManager.notify(nodeSubject, {});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
import { NodeTypeEnum, RTENode } from './node.abstract';
|
|
3
|
+
import { NodeAnnotation, NodeAnnotationTypeEnum } from '../annotations/node-annotation.abstract';
|
|
4
|
+
import { TextSplittableAction } from '../actions/splittable-action.abstract';
|
|
5
|
+
import { SelectionRangeAnnotation } from '../annotations/selection-range-annotation';
|
|
6
|
+
import stateEntityRenderingRegistry from '../../slimmers/controllers/state-entity-rendering-registry';
|
|
7
|
+
import TextNodeElementRenderingRegistry from '../../slimmers/controllers/text-node-rendering-registry';
|
|
8
|
+
import { generateUUID } from '../../../../utils/misc';
|
|
9
|
+
import { InternalAnnotationTypeEnum } from '../annotations/annotation.abstract';
|
|
10
|
+
import { StrikethroughAnnotation } from '../annotations/strikethrough-annotation';
|
|
11
|
+
import { UnderlineAnnotation } from '../annotations/underline-annotation';
|
|
12
|
+
import { ItalicAnnotation } from '../annotations/italic-annotation';
|
|
13
|
+
import { BoldAnnotation } from '../annotations/bold-annotation';
|
|
14
|
+
import { isNonNullable } from '../../../../types/type-guard';
|
|
15
|
+
import { ClearFormattingAnnotation } from '../annotations/clear-formatting-annotation';
|
|
16
|
+
import { CodeAnnotation } from '../annotations/code-annotation';
|
|
17
|
+
import { TextColorAnnotation } from '../annotations/text-color-annotation';
|
|
18
|
+
import { LinkAnnotation } from '../annotations/link-annotation';
|
|
19
|
+
import { LinkAnnotationAction } from '../actions/link-annotation-action';
|
|
20
|
+
import { CodeAnnotationAction } from '../actions/code-annotation-action';
|
|
21
|
+
import { ClearFormattingAnnotationAction } from '../actions/clear-formatting-annotation-action';
|
|
22
|
+
import { ModifyContentActionType } from '../actions/modify-content-action.abstract';
|
|
23
|
+
import { UpdateTextAction } from '../actions/update-text-action';
|
|
24
|
+
import { LinkGroupAnnotationAction } from '../actions/link-group-annotation-action';
|
|
25
|
+
import domNodeSubjectFactory from '../../../../helpers/change-manager/subject/dom-node-subject/dom-node-subject-factory';
|
|
26
|
+
import { VegaInternalRichTextEditorSelectionRangeChange } from '../../../../helpers/event-manager/event-id/vega-internal-event-id';
|
|
27
|
+
import ChangeManager from '../../../../helpers/change-manager/change-manager';
|
|
28
|
+
import { ZERO_WIDTH_SPACE } from '../../constants/constant';
|
|
29
|
+
import { SyncUpSelectionAction } from '../actions/sync-up-selection-action';
|
|
30
|
+
import { DeleteNodeAnnotationAction } from '../actions/delete-node-annotation-action';
|
|
31
|
+
export class RTETextNode extends RTENode {
|
|
32
|
+
constructor(id, text, parentBlock, annotationMap) {
|
|
33
|
+
super(id, annotationMap);
|
|
34
|
+
this.type = NodeTypeEnum.TEXT;
|
|
35
|
+
this.parentBlock = parentBlock;
|
|
36
|
+
this.text = text;
|
|
37
|
+
}
|
|
38
|
+
static from(richText, parentBlock) {
|
|
39
|
+
const textNode = new RTETextNode(richText.id, richText.text, parentBlock);
|
|
40
|
+
const { annotations } = richText;
|
|
41
|
+
if (annotations) {
|
|
42
|
+
textNode.annotationMap = new Map(Object.keys(annotations)
|
|
43
|
+
.map((type) => {
|
|
44
|
+
if (annotations.link) {
|
|
45
|
+
parentBlock.apply(new LinkGroupAnnotationAction(annotations.link.groupKey, [textNode]));
|
|
46
|
+
}
|
|
47
|
+
return this.createAnnotationEntity(type, annotations[type]);
|
|
48
|
+
})
|
|
49
|
+
.filter(isNonNullable));
|
|
50
|
+
}
|
|
51
|
+
return textNode;
|
|
52
|
+
}
|
|
53
|
+
static createAnnotationEntity(type, value) {
|
|
54
|
+
switch (type) {
|
|
55
|
+
case 'bold':
|
|
56
|
+
return BoldAnnotation.from(value);
|
|
57
|
+
case 'italic':
|
|
58
|
+
return ItalicAnnotation.from(value);
|
|
59
|
+
case 'underline':
|
|
60
|
+
return UnderlineAnnotation.from(value);
|
|
61
|
+
case 'strikethrough':
|
|
62
|
+
return StrikethroughAnnotation.from(value);
|
|
63
|
+
case 'code':
|
|
64
|
+
return CodeAnnotation.from(value);
|
|
65
|
+
case 'textColor':
|
|
66
|
+
return TextColorAnnotation.from(value);
|
|
67
|
+
case 'link':
|
|
68
|
+
return LinkAnnotation.from(value);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
toJSON() {
|
|
72
|
+
const annotations = Array.from(this.annotationMap.values())
|
|
73
|
+
.filter((annotation) => annotation instanceof NodeAnnotation)
|
|
74
|
+
.reduce((record, annotation) => {
|
|
75
|
+
return Object.assign(Object.assign({}, record), annotation.toJSON());
|
|
76
|
+
}, {});
|
|
77
|
+
return Object.assign(Object.assign({ id: this.id }, (Object.keys(annotations).length > 0 ? { annotations } : {})), { type: 'text', text: this.text });
|
|
78
|
+
}
|
|
79
|
+
cloneWithText(text) {
|
|
80
|
+
return new RTETextNode(generateUUID(), text, this.parentBlock, new Map(this.annotationMap));
|
|
81
|
+
}
|
|
82
|
+
isEmpty() {
|
|
83
|
+
return !this.text || this.text === ZERO_WIDTH_SPACE || this.text === '\n';
|
|
84
|
+
}
|
|
85
|
+
render() {
|
|
86
|
+
const codeAnnotation = this.annotationMap.get(NodeAnnotationTypeEnum.CODE);
|
|
87
|
+
if (codeAnnotation === null || codeAnnotation === void 0 ? void 0 : codeAnnotation.code) {
|
|
88
|
+
return (h("code", { style: this.getStyles(), class: this.getClasses(), ref: this.registerRef.bind(this) }, this.text || ZERO_WIDTH_SPACE));
|
|
89
|
+
}
|
|
90
|
+
return (h("span", { style: this.getStyles(), class: this.getClasses(), ref: this.registerRef.bind(this) }, this.text || ZERO_WIDTH_SPACE));
|
|
91
|
+
}
|
|
92
|
+
doAnnotationActionApply(action) {
|
|
93
|
+
const selectionRangeAnnotation = this.getAnnotationByType(InternalAnnotationTypeEnum.SELECTION_RANGE);
|
|
94
|
+
if (action instanceof TextSplittableAction && action.doSplit && selectionRangeAnnotation) {
|
|
95
|
+
const { startContainer, endContainer, startOffset, endOffset } = selectionRangeAnnotation.range;
|
|
96
|
+
const noTextRangeSelected = startContainer === endContainer && startOffset === endOffset;
|
|
97
|
+
this.parentBlock.nodes = this.parentBlock.nodes.flatMap((item) => {
|
|
98
|
+
if (item.id === this.id) {
|
|
99
|
+
if (noTextRangeSelected) {
|
|
100
|
+
return this.insertNewNode(startOffset, action);
|
|
101
|
+
}
|
|
102
|
+
if (this.shouldSplitSelection(selectionRangeAnnotation.range)) {
|
|
103
|
+
return this.splitTextNode(action, selectionRangeAnnotation.range);
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
this.applyActionToNode(this, action);
|
|
107
|
+
return this;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return item;
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
this.applyActionToNode(this, action);
|
|
115
|
+
}
|
|
116
|
+
this.parentBlock.mergeNodes(action);
|
|
117
|
+
}
|
|
118
|
+
doModifyActionApply(action) {
|
|
119
|
+
switch (action.type) {
|
|
120
|
+
case ModifyContentActionType.UPDATE_TEXT:
|
|
121
|
+
this.updateText(action.newTextContent);
|
|
122
|
+
break;
|
|
123
|
+
case ModifyContentActionType.REPLACE_SELECTED_TEXT:
|
|
124
|
+
this.replaceSelectedText(action.textToBeInsert, action.currentRange);
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
registerRef(ref) {
|
|
129
|
+
if (ref) {
|
|
130
|
+
stateEntityRenderingRegistry.register(ref, this);
|
|
131
|
+
const textColorAnnotation = this.getAnnotationByType('TEXT_COLOR');
|
|
132
|
+
if (textColorAnnotation) {
|
|
133
|
+
TextNodeElementRenderingRegistry.register(ref, textColorAnnotation);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
splitTextNode(action, range) {
|
|
138
|
+
const { startContainer, endContainer, startOffset } = range;
|
|
139
|
+
const startNode = startContainer.parentElement;
|
|
140
|
+
const endNode = endContainer.parentElement;
|
|
141
|
+
const splitText = (text, startOffset, endOffset) => {
|
|
142
|
+
const beforeText = text.substring(0, startOffset);
|
|
143
|
+
const selectedText = text.substring(startOffset, endOffset);
|
|
144
|
+
const afterText = text.substring(endOffset);
|
|
145
|
+
return [
|
|
146
|
+
this.cloneWithText(beforeText),
|
|
147
|
+
this.cloneWithText(selectedText),
|
|
148
|
+
this.cloneWithText(afterText),
|
|
149
|
+
];
|
|
150
|
+
};
|
|
151
|
+
const startItemDto = startNode && stateEntityRenderingRegistry.getEntityByDOM(startNode);
|
|
152
|
+
const endItemDto = endNode && stateEntityRenderingRegistry.getEntityByDOM(endNode);
|
|
153
|
+
if (startItemDto && startItemDto.id === this.id) {
|
|
154
|
+
const endOffset = startContainer === endContainer ? range.endOffset : this.text.length;
|
|
155
|
+
const [beforeNode, selectedNode, afterNode] = splitText(this.text, startOffset, endOffset);
|
|
156
|
+
this.applyActionToNode(selectedNode, action);
|
|
157
|
+
return [beforeNode, selectedNode, afterNode].filter((node) => !!node.text);
|
|
158
|
+
}
|
|
159
|
+
else if (endItemDto && endItemDto.id === this.id) {
|
|
160
|
+
const [beforeNode, selectedNode, afterNode] = splitText(this.text, 0, range.endOffset);
|
|
161
|
+
this.applyActionToNode(selectedNode, action);
|
|
162
|
+
return [beforeNode, selectedNode, afterNode].filter((node) => !!node.text);
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
this.applyActionToNode(this, action);
|
|
166
|
+
return this;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
applyActionToNode(node, action) {
|
|
170
|
+
const annotation = action.toAnnotation();
|
|
171
|
+
if (action instanceof SyncUpSelectionAction) {
|
|
172
|
+
this.syncUpSelectedNodes(node);
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
// Sync up RTETextNode selected state to selection controller for any action apply, except selection range change.
|
|
176
|
+
if (!(annotation instanceof SelectionRangeAnnotation)) {
|
|
177
|
+
this.syncUpSelectedNodes(node);
|
|
178
|
+
}
|
|
179
|
+
if (action instanceof DeleteNodeAnnotationAction) {
|
|
180
|
+
this.annotationMap.delete(action.annotationType);
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
if (annotation instanceof ClearFormattingAnnotation) {
|
|
184
|
+
annotation.items.forEach((item) => {
|
|
185
|
+
node.deleteAnnotationByType(item);
|
|
186
|
+
});
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
if (annotation instanceof NodeAnnotation || annotation instanceof SelectionRangeAnnotation) {
|
|
190
|
+
if (action instanceof LinkAnnotationAction) {
|
|
191
|
+
if (isNonNullable(action.newText)) {
|
|
192
|
+
node.text = action.newText;
|
|
193
|
+
}
|
|
194
|
+
this.parentBlock.apply(new LinkGroupAnnotationAction(action.link.groupKey, [node]));
|
|
195
|
+
}
|
|
196
|
+
if (action instanceof CodeAnnotationAction) {
|
|
197
|
+
this.applyActionToNode(node, new ClearFormattingAnnotationAction());
|
|
198
|
+
}
|
|
199
|
+
node.annotationMap.set(annotation.type, annotation);
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
replaceSelectedText(text, currentRange) {
|
|
204
|
+
if (currentRange && currentRange.startContainer && currentRange.endContainer) {
|
|
205
|
+
const { startContainer, endContainer, startOffset, endOffset } = currentRange;
|
|
206
|
+
const startNode = startContainer.parentElement;
|
|
207
|
+
const endNode = endContainer.parentElement;
|
|
208
|
+
const startItemDto = startNode && stateEntityRenderingRegistry.getEntityByDOM(startNode);
|
|
209
|
+
const endItemDto = endNode && stateEntityRenderingRegistry.getEntityByDOM(endNode);
|
|
210
|
+
let startIndex = 0, endIndex = this.text.length;
|
|
211
|
+
if (startItemDto && startItemDto === this) {
|
|
212
|
+
startIndex = startOffset;
|
|
213
|
+
endIndex = startContainer === endContainer ? endOffset : endIndex;
|
|
214
|
+
}
|
|
215
|
+
else if (endItemDto && endItemDto === this) {
|
|
216
|
+
endIndex = endOffset;
|
|
217
|
+
}
|
|
218
|
+
this.apply(new UpdateTextAction(this.text.slice(0, startIndex) + text + this.text.slice(endIndex)));
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
updateText(newText) {
|
|
222
|
+
this.text = newText;
|
|
223
|
+
// The link node should be unlink when delete all text
|
|
224
|
+
if (!this.text && this.isLinkNode()) {
|
|
225
|
+
this.annotationMap.delete(NodeAnnotationTypeEnum.LINK);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
isLinkNode() {
|
|
229
|
+
return this.annotationMap.has('LINK');
|
|
230
|
+
}
|
|
231
|
+
shouldSplitSelection(range) {
|
|
232
|
+
const { startContainer, endContainer, startOffset, endOffset } = range;
|
|
233
|
+
const isCrossNode = startContainer !== endContainer;
|
|
234
|
+
const isPartialStart = startOffset > 0;
|
|
235
|
+
const isPartialEnd = endOffset < (endContainer.textContent ? endContainer.textContent.length : 0);
|
|
236
|
+
const isPartialSelection = isPartialStart || isPartialEnd;
|
|
237
|
+
return isCrossNode || isPartialSelection;
|
|
238
|
+
}
|
|
239
|
+
syncUpSelectedNodes(selectedNode) {
|
|
240
|
+
const currentNodeDom = stateEntityRenderingRegistry.getDOMByEntity(this);
|
|
241
|
+
if (currentNodeDom) {
|
|
242
|
+
const nodeSubject = domNodeSubjectFactory.getSubjectFromParentNodeByEventId(currentNodeDom, VegaInternalRichTextEditorSelectionRangeChange);
|
|
243
|
+
if (nodeSubject) {
|
|
244
|
+
ChangeManager.notify(nodeSubject, { node: selectedNode });
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
insertNewNode(startOffset, action) {
|
|
249
|
+
if (startOffset === 0) {
|
|
250
|
+
const newNode = this.cloneWithText('');
|
|
251
|
+
this.applyActionToNode(newNode, action);
|
|
252
|
+
return [newNode, this];
|
|
253
|
+
}
|
|
254
|
+
if (startOffset === this.text.length) {
|
|
255
|
+
const newNode = this.cloneWithText('');
|
|
256
|
+
this.applyActionToNode(newNode, action);
|
|
257
|
+
return [this, newNode];
|
|
258
|
+
}
|
|
259
|
+
const beforeNode = this.cloneWithText(this.text.substring(0, startOffset));
|
|
260
|
+
const newNode = this.cloneWithText('');
|
|
261
|
+
const afterNode = this.cloneWithText(this.text.substring(startOffset));
|
|
262
|
+
this.applyActionToNode(newNode, action);
|
|
263
|
+
return [beforeNode, newNode, afterNode];
|
|
264
|
+
}
|
|
265
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { findParent } from '../../../utils/ui';
|
|
2
|
+
import { RTEImageNode } from './nodes/image-node';
|
|
3
|
+
import { RTENode } from './nodes/node.abstract';
|
|
4
|
+
import stateEntityRenderingRegistry from '../slimmers/controllers/state-entity-rendering-registry';
|
|
5
|
+
/** Manages selection range for a rich text editor, providing methods to set, sync, and create native ranges based on RTENodes and Nodes. */
|
|
6
|
+
export class RTERange {
|
|
7
|
+
/**
|
|
8
|
+
* Initial the rte range properties
|
|
9
|
+
*
|
|
10
|
+
* @param {Node} [startContainer] The range start element.
|
|
11
|
+
* @param {Node} [endContainer] The range end element.
|
|
12
|
+
* @param {number} [startOffset] The range start element content offset, default value is 0.
|
|
13
|
+
* @param {number} [endOffset] The range end element content offset, default value is 0.
|
|
14
|
+
* @param {RTENode} [startNode] The range start node, the start node could be null if the start element is root element.
|
|
15
|
+
* @param {RTENode} [endNode] The range start node, the start node could be null if the start element is root element.
|
|
16
|
+
* @param {Range} [nativeRange] The browser native range instance.
|
|
17
|
+
*/
|
|
18
|
+
constructor(startContainer, endContainer, startOffset = 0, endOffset = 0, startNode, endNode, nativeRange) {
|
|
19
|
+
this._startOffset = 0;
|
|
20
|
+
this._endOffset = 0;
|
|
21
|
+
this._startContainer = startContainer;
|
|
22
|
+
this._endContainer = endContainer;
|
|
23
|
+
this._startOffset = startOffset;
|
|
24
|
+
this._endOffset = endOffset;
|
|
25
|
+
this._startNode = startNode;
|
|
26
|
+
this._endNode = endNode;
|
|
27
|
+
if (nativeRange) {
|
|
28
|
+
this._oldNativeRange = nativeRange;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns the start container as a Node or null if it is not set.
|
|
33
|
+
* The start container could be null when the dom node should be create after re-render.
|
|
34
|
+
*
|
|
35
|
+
* @returns {Nullable<Node>} The range start element.
|
|
36
|
+
*/
|
|
37
|
+
get startContainer() {
|
|
38
|
+
return this._startContainer;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Returns the end container as a Node or null if it is not set.
|
|
42
|
+
* The end container could be null when the dom node should be create after re-render.
|
|
43
|
+
*
|
|
44
|
+
* @returns {Nullable<Node>} The range start element.
|
|
45
|
+
*/
|
|
46
|
+
get endContainer() {
|
|
47
|
+
return this._endContainer;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns the range start RTE node as a RTENode or null if it is not set.
|
|
51
|
+
* The start RTENode could be null when the range start node is the root element of the rich text editor.
|
|
52
|
+
*
|
|
53
|
+
* @returns {Nullable<RTENode>} The range start element.
|
|
54
|
+
*/
|
|
55
|
+
get startNode() {
|
|
56
|
+
return this._startNode;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Returns the range end RTE node as a RTENode or null if it is not set.
|
|
60
|
+
* The end RTENode could be null when the range end node is the root element of the rich text editor.
|
|
61
|
+
*
|
|
62
|
+
* @returns {Nullable<RTENode>} The range start element.
|
|
63
|
+
*/
|
|
64
|
+
get endNode() {
|
|
65
|
+
return this._endNode;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Returns range's start offset.
|
|
69
|
+
*
|
|
70
|
+
* @returns {number} The character length in text node or the element index of parent element.
|
|
71
|
+
*/
|
|
72
|
+
get startOffset() {
|
|
73
|
+
return this._startOffset;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns range's start offset.
|
|
77
|
+
*
|
|
78
|
+
* @returns {number} The character length in text node or the element index of parent element.
|
|
79
|
+
*/
|
|
80
|
+
get endOffset() {
|
|
81
|
+
return this._endOffset;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Updates the range options for a Rich Text Editor.
|
|
85
|
+
* This method will called after modify the content, the start node and end node should be rte node.
|
|
86
|
+
* This method will called after selectionchange event emit, the start node and end node should be the html node.
|
|
87
|
+
*
|
|
88
|
+
* @param {RTERangeOptions} options - An object that contains the following properties:
|
|
89
|
+
* @param {Range} [nativeRange] - The native range instance
|
|
90
|
+
* @returns {RTERange} - The new RTERange instance
|
|
91
|
+
*/
|
|
92
|
+
updateRTERange(options, nativeRange) {
|
|
93
|
+
const { startOffset, endOffset } = options;
|
|
94
|
+
this._startOffset = startOffset;
|
|
95
|
+
this._endOffset = endOffset;
|
|
96
|
+
const startNode = options.startNode;
|
|
97
|
+
const endNode = options.endNode;
|
|
98
|
+
if (startNode instanceof RTENode) {
|
|
99
|
+
this._startNode = startNode;
|
|
100
|
+
this._endNode = endNode;
|
|
101
|
+
const startContainer = this.getElementByRTENode(this._startNode);
|
|
102
|
+
const endContainer = this._startNode === this._endNode ? startContainer : this.getElementByRTENode(this._endNode);
|
|
103
|
+
if (startContainer) {
|
|
104
|
+
this._startContainer = startContainer;
|
|
105
|
+
this._endContainer = endContainer;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
// The selectionchange callback has a 50 ms delay, so we need to check the next range is the same as the current ret range.
|
|
110
|
+
this._startContainer = startNode;
|
|
111
|
+
this._endContainer = endNode;
|
|
112
|
+
this._startNode = this.getRTENodeByElement(this._startContainer);
|
|
113
|
+
this._endNode =
|
|
114
|
+
this._startContainer === this._endContainer
|
|
115
|
+
? this._startNode
|
|
116
|
+
: this.getRTENodeByElement(this._endContainer);
|
|
117
|
+
if (nativeRange) {
|
|
118
|
+
this._oldNativeRange = nativeRange;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return new RTERange(this._startContainer, this._endContainer, this._startOffset, this._endOffset, this._startNode, this._endNode, this._oldNativeRange);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Creates a Range object based on start and end nodes and offsets.
|
|
125
|
+
* Invoke this method to get the future range state if the range content modified.
|
|
126
|
+
* Invoke this method to get the native range instance if range start node and end node not defined
|
|
127
|
+
*
|
|
128
|
+
* @returns {Nullable<Range>} The range instance. The return value could be null if the start node or end node are not rendered.
|
|
129
|
+
*/
|
|
130
|
+
toNativeRange() {
|
|
131
|
+
const startContainer = this.getElementByRTENode(this._startNode);
|
|
132
|
+
const endContainer = this._startNode === this._endNode ? startContainer : this.getElementByRTENode(this._endNode);
|
|
133
|
+
const range = new Range();
|
|
134
|
+
if (startContainer && endContainer) {
|
|
135
|
+
range.setStart(startContainer, this._startOffset);
|
|
136
|
+
range.setEnd(endContainer, this._endOffset);
|
|
137
|
+
this._startContainer = startContainer;
|
|
138
|
+
this._endContainer = endContainer;
|
|
139
|
+
this._oldNativeRange = range;
|
|
140
|
+
return range;
|
|
141
|
+
}
|
|
142
|
+
else if (this._oldNativeRange) {
|
|
143
|
+
return this._oldNativeRange;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Retrieves the DOM element associated with a given RTENode entity.
|
|
148
|
+
*
|
|
149
|
+
* @param {Nullable<RTENode>} node - Represents a node in a Rich Text Editor.
|
|
150
|
+
* @returns {Nullable<Node>} a Node object or null.
|
|
151
|
+
*/
|
|
152
|
+
getElementByRTENode(node) {
|
|
153
|
+
if (node) {
|
|
154
|
+
const element = stateEntityRenderingRegistry.getDOMByEntity(node);
|
|
155
|
+
if (element) {
|
|
156
|
+
return node instanceof RTEImageNode
|
|
157
|
+
? findParent(element, 'vega-rich-text-image-editor')
|
|
158
|
+
: element.firstChild;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Retrieves an RTENode based on the given element by checking its type and parent elements.
|
|
164
|
+
*
|
|
165
|
+
* @param {Node} element - An element in the DOM (Document Object Model).
|
|
166
|
+
* @returns { Nullable<RTENode>} Returns a nullable `RTENode` object.
|
|
167
|
+
*/
|
|
168
|
+
getRTENodeByElement(element) {
|
|
169
|
+
if (element) {
|
|
170
|
+
const registerElement = element.nodeType === Node.TEXT_NODE
|
|
171
|
+
? element.parentElement
|
|
172
|
+
: element.nodeName === 'VEGA-RICH-TEXT-IMAGE-EDITOR'
|
|
173
|
+
? element.querySelector('img')
|
|
174
|
+
: element;
|
|
175
|
+
return stateEntityRenderingRegistry.getEntityByDOM(registerElement);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/focus-controller.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { MapToComponentField, VegaSlimmer } from 'vega-slimmer/core';
|
|
8
|
+
import stateEntityRenderingRegistry from './state-entity-rendering-registry';
|
|
9
|
+
import { RTETextBlock } from '../../dto/blocks/text-block';
|
|
10
|
+
import { generateUUID } from '../../../../utils/misc';
|
|
11
|
+
import { InsertBlocksAfterAction } from '../../dto/actions/insert-blocks-after-block';
|
|
12
|
+
/**
|
|
13
|
+
* Focus controller for RTE
|
|
14
|
+
*/
|
|
15
|
+
export class FocusController extends VegaSlimmer {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
/**
|
|
19
|
+
* Do a focus on the last text node of the last block
|
|
20
|
+
*
|
|
21
|
+
* @param {RTEContentBlock} lastBlock - The last block of the content
|
|
22
|
+
*/
|
|
23
|
+
this.doFocusOnLastTextNode = async (lastBlock) => {
|
|
24
|
+
this.setCaretRangeToNodeEnd(stateEntityRenderingRegistry.getDOMByEntity(lastBlock.getLastNode()).firstChild);
|
|
25
|
+
await this.vegaRichTextEditorRenderer.getRichTextContentRef().vegaFocus();
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Focus on the last text node of the last block.
|
|
30
|
+
*
|
|
31
|
+
* @param {{ newLine?: boolean }} options - The options of the method
|
|
32
|
+
* @param {boolean} options.newLine - Should a new line be added before the last text node
|
|
33
|
+
* @returns {Promise<void>} - A promise that resolves when the focus is set
|
|
34
|
+
*/
|
|
35
|
+
async focusOnLastTextNode(options) {
|
|
36
|
+
const lastBlock = this.value.blocks[this.value.blocks.length - 1];
|
|
37
|
+
if (!(lastBlock instanceof RTETextBlock) || (options === null || options === void 0 ? void 0 : options.newLine)) {
|
|
38
|
+
const newTextBlock = RTETextBlock.from({
|
|
39
|
+
id: generateUUID(),
|
|
40
|
+
type: 'paragraph',
|
|
41
|
+
nodes: [{ id: generateUUID(), type: 'text', text: '' }],
|
|
42
|
+
});
|
|
43
|
+
lastBlock.parent.apply(new InsertBlocksAfterAction(lastBlock, newTextBlock));
|
|
44
|
+
await this.valueController.flushChanges(this.value);
|
|
45
|
+
await this.doFocusOnLastTextNode(newTextBlock);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
await this.doFocusOnLastTextNode(lastBlock);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Move the caret to the end of the node
|
|
53
|
+
*
|
|
54
|
+
* @param {Node} targetNode - The node to move the caret to
|
|
55
|
+
*/
|
|
56
|
+
setCaretRangeToNodeEnd(targetNode) {
|
|
57
|
+
const range = new Range();
|
|
58
|
+
range.setStart(targetNode, targetNode.nodeValue.length);
|
|
59
|
+
this.selectionController.setSelectionRange(range);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
__decorate([
|
|
63
|
+
MapToComponentField()
|
|
64
|
+
], FocusController.prototype, "vegaRichTextEditorRenderer", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
MapToComponentField()
|
|
67
|
+
], FocusController.prototype, "selectionController", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
MapToComponentField()
|
|
70
|
+
], FocusController.prototype, "valueController", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
MapToComponentField()
|
|
73
|
+
], FocusController.prototype, "value", void 0);
|