@globalpayments/vega 2.92.0 → 2.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-2f326662.js → app-globals-f7ad9275.js} +13 -9
- package/dist/cjs/{child-nodes-event-prevent-slimmer-b9a5b3e2.js → child-nodes-event-prevent-slimmer-e67ee84c.js} +1 -1
- package/dist/cjs/{code-block-6435d641.js → code-block-2f3d0f38.js} +41 -11
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-e4c9a5ba.js → component-value-history-controller-slimmer.abstract-31d2c7aa.js} +72 -39
- package/dist/cjs/{content-state-96ec9114.js → content-state-13daf87a.js} +61 -7
- package/dist/cjs/{date-required-rule-8c9e312b.js → date-required-rule-e65ddd7d.js} +1 -1
- package/dist/cjs/{design-token-3548af29.js → design-token-47393cbb.js} +3 -3
- package/dist/cjs/{element-appender-slimmer-3bf69990.js → element-appender-slimmer-29c4ac60.js} +17 -8
- package/dist/cjs/{event-emit-slimmer-5bab10c2.js → event-emit-slimmer-d234a619.js} +1 -1
- package/dist/cjs/{form-field-controller-slimmer-e0efac05.js → form-field-controller-slimmer-3bfcf88c.js} +1 -1
- package/dist/cjs/{image-annotation-action-853f72c8.js → image-annotation-action-c2b163bb.js} +3 -3
- package/dist/cjs/image-extension-4e99b620.js +39 -0
- package/dist/cjs/index.cjs.js +22 -19
- package/dist/cjs/{inject-keyboard-manager-0dccff1a.js → inject-keyboard-manager-4b2ebbe4.js} +1 -1
- package/dist/cjs/{internal-calendar-period-factory-6187ec4c.js → internal-calendar-period-factory-7a0ecdb1.js} +1 -1
- package/dist/cjs/{internal-translation-controller-48ebfd0f.js → internal-translation-controller-31f2b057.js} +4 -0
- package/dist/cjs/{internal-vega-event-manager-7196a847.js → internal-vega-event-manager-13c4012b.js} +2 -1
- package/dist/cjs/{keyboard-manager-dfe8d924.js → keyboard-manager-c78b46bd.js} +1 -1
- package/dist/cjs/{keyboard-manager-slimmer-4a2560a1.js → keyboard-manager-slimmer-d350c931.js} +1 -1
- package/dist/cjs/{link-extension-28d95849.js → link-extension-455c02b3.js} +3 -3
- package/dist/cjs/loader.cjs.js +15 -14
- package/dist/cjs/{month-view-generator-2e59b188.js → month-view-generator-006562dc.js} +1 -1
- package/dist/cjs/{public-rules-8727c42c.js → public-rules-c59eba88.js} +7 -7
- package/dist/cjs/{range-5cb3d1e4.js → range-bf80fa40.js} +1 -1
- package/dist/cjs/{replace-selected-text-action-a31563ed.js → replace-selected-text-action-a80f5a6a.js} +1 -1
- package/dist/cjs/{responsive-format-facade-98b89142.js → responsive-format-facade-1af54330.js} +1 -1
- package/dist/cjs/{rich-text-editor-required-rule-8e4d577d.js → rich-text-editor-required-rule-1085c71a.js} +1 -1
- package/dist/cjs/{split-cell-operation-9e3ab88d.js → split-cell-operation-2fa5c9e4.js} +3 -3
- package/dist/cjs/{state-border-formatter-626b0a14.js → state-border-formatter-501f6645.js} +1 -1
- package/dist/cjs/{string-format-strategy.abstract-981f43e1.js → string-format-strategy.abstract-a02bf002.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-fc4a0ba5.js → string-input-formatter-slimmer-9cca6151.js} +1 -1
- package/dist/cjs/{string-mask-strategy-b47fa159.js → string-mask-strategy-4c174ebf.js} +2 -2
- package/dist/cjs/{style-formatter-baf18624.js → style-formatter-2c749500.js} +2 -2
- package/dist/cjs/{time-required-rule-e77d174f.js → time-required-rule-04994a5e.js} +1 -1
- package/dist/cjs/{token-extension-3aec039f.js → token-extension-d217914d.js} +1300 -14
- package/dist/cjs/{translation-slimmer-1e05769e.js → translation-slimmer-7fb6e94c.js} +1 -1
- package/dist/cjs/{type-guard-7ab48d6c.js → type-guard-1c3770d4.js} +1 -1
- package/dist/cjs/{valid-credit-card-number-rule-52ba9c67.js → valid-credit-card-number-rule-f719a8c6.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +9 -9
- package/dist/cjs/vega-app-footer.cjs.entry.js +3 -3
- package/dist/cjs/vega-app-header-button.cjs.entry.js +9 -9
- package/dist/cjs/vega-banner.cjs.entry.js +3 -3
- package/dist/cjs/vega-box.cjs.entry.js +6 -6
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
- package/dist/cjs/vega-button-circle.cjs.entry.js +9 -9
- package/dist/cjs/vega-button-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
- package/dist/cjs/vega-button.cjs.entry.js +7 -7
- package/dist/cjs/vega-calendar_5.cjs.entry.js +11 -11
- package/dist/cjs/vega-card.cjs.entry.js +5 -5
- package/dist/cjs/vega-carousel.cjs.entry.js +6 -6
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-chip.cjs.entry.js +9 -9
- package/dist/cjs/vega-code-block.cjs.entry.js +12 -12
- package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +7 -7
- package/dist/cjs/vega-color-swatch.cjs.entry.js +5 -5
- package/dist/cjs/vega-combo-box.cjs.entry.js +19 -13
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +17 -17
- package/dist/cjs/vega-dialog_2.cjs.entry.js +20 -9
- package/dist/cjs/vega-divider.cjs.entry.js +5 -5
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +693 -195
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/{vega-event-id-df22d80e.js → vega-event-id-58afed7a.js} +2 -0
- package/dist/cjs/vega-field-label.cjs.entry.js +5 -5
- package/dist/cjs/vega-file-uploader.cjs.entry.js +6 -6
- package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -5
- package/dist/cjs/vega-flex.cjs.entry.js +6 -6
- package/dist/cjs/vega-font.cjs.entry.js +5 -5
- package/dist/cjs/vega-form.cjs.entry.js +7 -7
- package/dist/cjs/vega-grid.cjs.entry.js +5 -5
- package/dist/cjs/vega-icon.cjs.entry.js +5 -5
- package/dist/cjs/vega-image-uploader.cjs.entry.js +9 -9
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +10 -10
- package/dist/cjs/vega-input-numeric.cjs.entry.js +9 -9
- package/dist/cjs/vega-input-passcode.cjs.entry.js +9 -9
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +8 -8
- package/dist/cjs/vega-input-range.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-select.cjs.entry.js +9 -9
- package/dist/cjs/vega-input.cjs.entry.js +9 -9
- package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +10 -10
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination.cjs.entry.js +8 -8
- package/dist/cjs/vega-popover_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-radio_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +7 -7
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +472 -62
- package/dist/cjs/vega-rich-text-find-replace-panel.cjs.entry.js +4 -4
- package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +8 -8
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +11 -11
- package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +6 -6
- package/dist/cjs/vega-signature-capture.cjs.entry.js +10 -10
- package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-table_11.cjs.entry.js +911 -428
- package/dist/cjs/vega-textarea.cjs.entry.js +7 -9
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +34 -14
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +6 -6
- package/dist/cjs/vega.cjs.js +15 -14
- package/dist/collection/components/vega-combo-box/slimmers/renderers/vega-combo-box-dropdown-renderer.js +4 -1
- package/dist/collection/components/vega-combo-box/vega-combo-box.js +7 -1
- package/dist/collection/components/vega-dialog/vega-dialog.js +1 -1
- package/dist/collection/components/vega-dropdown/constants.js +1 -0
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.js +9 -0
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-children-controller.js +97 -4
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-select-all-controller.js +219 -0
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-selected-controller.js +78 -13
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-source-controller.js +13 -1
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.js +7 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/controllers/vega-dropdown-item-state-controller.js +52 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +4 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.js +5 -0
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +126 -1
- package/dist/collection/components/vega-field-label/vega-field-label.js +1 -1
- package/dist/collection/components/vega-hint/vega-hint.js +1 -1
- package/dist/collection/components/vega-modal/slimmers/renderers/vega-modal-renderer.js +4 -1
- package/dist/collection/components/vega-modal/vega-modal.css +0 -1
- package/dist/collection/components/vega-modal/vega-modal.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/assets/redo.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/assets/undo.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-insert-line-break-strategy.js +11 -5
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-split-with-text-node-strategy.js +9 -4
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/paste-content-strategy.js +61 -5
- package/dist/collection/components/vega-rich-text-editor/dto/actions/paste-content-action.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +6 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/action-handler-interceptors/blockquote-exit-on-enter-interceptor.js +61 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/action-handler-strategies/block-transform-to-blockquote-strategy.js +40 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/action-handler-strategies/remove-blockquote-strategy.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/actions/remove-blockquote-action.js +17 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/actions/transform-to-blockquote-action.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/assets/quote-left.js +4 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/blockquote-extension.js +47 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/dto/blockquote-annotation.js +76 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/dto/rte-blockquote-block.js +70 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/element-to-dto-strategies/blockquote-to-blockquote-block-strategy.js +53 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/filter-styles-strategies/blockquote-block/blockquote-filter-styles-strategy.js +41 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/renderers/blockquote-block-renderer.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/blockquote/renderers/blockquote-toolbar-button-renderer.js +260 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/image/image-extension.js +34 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/image/type.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/assets/paste.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-chooser-ui.js +144 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-constants.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-extension.js +442 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/renderers/table-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +4 -3
- package/dist/collection/components/vega-rich-text-editor/helpers/utils.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/public-api.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/base-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-line-break-handler.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.js +385 -25
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +69 -36
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.js +59 -14
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/slimmers/renderers/vega-rich-text-editor-toolbar-button-renderer.js +6 -1
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/vega-rich-text-editor-toolbar-button.js +28 -1
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/vega-rich-text-image-editor.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.js +1 -1
- package/dist/collection/components/vega-table/slimmers/controllers/dto/column-render-input-model.js +32 -0
- package/dist/collection/components/vega-table/slimmers/controllers/vega-table-body-col-span-controller.js +77 -0
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-body-col-span-resolver.js +121 -0
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-cell-renderer.js +39 -14
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.js +207 -7
- package/dist/collection/components/vega-table/slimmers/renderers/vega-table-row-renderer.js +16 -3
- package/dist/collection/components/vega-table/vega-table-cell/vega-table-cell.js +24 -4
- package/dist/collection/components/vega-table/vega-table-expand-row/slimmers/controllers/vega-table-expand-row-col-span-controller.js +11 -2
- package/dist/collection/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.js +5 -1
- package/dist/collection/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.js +22 -1
- package/dist/collection/components/vega-table/vega-table.css +5 -0
- package/dist/collection/components/vega-table/vega-table.js +5 -0
- package/dist/collection/components/vega-text/vega-text.js +1 -1
- package/dist/collection/components/vega-textarea/vega-textarea.js +1 -3
- package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-range-dropdown-controller.js +4 -0
- package/dist/collection/components/vega-time-picker/slimmers/controllers/vega-time-picker-single-dropdown-controller.js +4 -0
- package/dist/collection/components/vega-time-picker/vega-time-picker.js +39 -0
- package/dist/collection/constants/ui.js +1 -0
- package/dist/collection/global/scripts/before-vega-load.js +6 -0
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +2 -1
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +1 -0
- package/dist/collection/helpers/slimmers/element-appender/element-appender-slimmer.js +11 -4
- package/dist/collection/helpers/translation/locales/en.js +4 -0
- package/dist/collection/helpers/ui/element-appender.js +5 -2
- package/dist/esm/{app-globals-5e0d319a.js → app-globals-9950d055.js} +13 -9
- package/dist/esm/{child-nodes-event-prevent-slimmer-f24618c5.js → child-nodes-event-prevent-slimmer-96c14f5a.js} +1 -1
- package/dist/esm/{code-block-b71b2aa4.js → code-block-ae2337c2.js} +41 -12
- package/dist/esm/{component-value-history-controller-slimmer.abstract-282df6e5.js → component-value-history-controller-slimmer.abstract-b1ee1b8e.js} +72 -39
- package/dist/esm/{content-state-909099f8.js → content-state-c3b85ae6.js} +61 -7
- package/dist/esm/{date-required-rule-15edb04a.js → date-required-rule-e06115f8.js} +1 -1
- package/dist/esm/{design-token-cb5ed6b9.js → design-token-4e682056.js} +3 -3
- package/dist/esm/{element-appender-slimmer-e41120ee.js → element-appender-slimmer-a4485ef6.js} +17 -8
- package/dist/esm/{event-emit-slimmer-03deba18.js → event-emit-slimmer-db4a82e0.js} +1 -1
- package/dist/esm/{form-field-controller-slimmer-cfe1d8a7.js → form-field-controller-slimmer-a1c7b28c.js} +1 -1
- package/dist/esm/{image-annotation-action-98232dc4.js → image-annotation-action-4c77d314.js} +3 -3
- package/dist/esm/image-extension-7108c27d.js +37 -0
- package/dist/esm/index.js +19 -19
- package/dist/esm/{inject-keyboard-manager-13cc77ab.js → inject-keyboard-manager-e8ddb78d.js} +1 -1
- package/dist/esm/{internal-calendar-period-factory-c3d70f3b.js → internal-calendar-period-factory-6f19d767.js} +1 -1
- package/dist/esm/{internal-translation-controller-8e8a514a.js → internal-translation-controller-09b8bd13.js} +4 -0
- package/dist/esm/{internal-vega-event-manager-75e5e3bb.js → internal-vega-event-manager-48690e5b.js} +2 -1
- package/dist/esm/{keyboard-manager-fe885db1.js → keyboard-manager-ec18721b.js} +1 -1
- package/dist/esm/{keyboard-manager-slimmer-61d4c79b.js → keyboard-manager-slimmer-531ddb0e.js} +1 -1
- package/dist/esm/{link-extension-f1a3bea7.js → link-extension-74eaa826.js} +3 -3
- package/dist/esm/loader.js +15 -14
- package/dist/esm/{month-view-generator-85eecb95.js → month-view-generator-afd78ff8.js} +1 -1
- package/dist/esm/{public-rules-323bea4b.js → public-rules-5fce32a5.js} +7 -7
- package/dist/esm/{range-e63068d1.js → range-8f877dbf.js} +1 -1
- package/dist/esm/{replace-selected-text-action-c0817b2b.js → replace-selected-text-action-c9278a0f.js} +1 -1
- package/dist/esm/{responsive-format-facade-fb424f5b.js → responsive-format-facade-299e6304.js} +1 -1
- package/dist/esm/{rich-text-editor-required-rule-0edb8ba7.js → rich-text-editor-required-rule-3047bab0.js} +1 -1
- package/dist/esm/{split-cell-operation-93b4d775.js → split-cell-operation-98d58410.js} +3 -3
- package/dist/esm/{state-border-formatter-1a528ca4.js → state-border-formatter-da52b626.js} +1 -1
- package/dist/esm/{string-format-strategy.abstract-72fc98aa.js → string-format-strategy.abstract-a45b5ff7.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-b0c480d8.js → string-input-formatter-slimmer-4a032fed.js} +1 -1
- package/dist/esm/{string-mask-strategy-4e00c173.js → string-mask-strategy-37e53e48.js} +2 -2
- package/dist/esm/{style-formatter-5c1bea8d.js → style-formatter-3d5ddfb1.js} +2 -2
- package/dist/esm/{time-required-rule-df500b14.js → time-required-rule-355b73d2.js} +1 -1
- package/dist/esm/{token-extension-32d1fa56.js → token-extension-ecfafe94.js} +1298 -15
- package/dist/esm/{translation-slimmer-60408f13.js → translation-slimmer-3ea56354.js} +1 -1
- package/dist/esm/{type-guard-91087018.js → type-guard-2bfb2c7b.js} +1 -1
- package/dist/esm/{valid-credit-card-number-rule-681ecb75.js → valid-credit-card-number-rule-52c6b029.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +9 -9
- package/dist/esm/vega-app-footer.entry.js +3 -3
- package/dist/esm/vega-app-header-button.entry.js +9 -9
- package/dist/esm/vega-banner.entry.js +3 -3
- package/dist/esm/vega-box.entry.js +6 -6
- package/dist/esm/vega-breadcrumb.entry.js +4 -4
- package/dist/esm/vega-button-circle.entry.js +9 -9
- package/dist/esm/vega-button-group_2.entry.js +4 -4
- package/dist/esm/vega-button-link.entry.js +4 -4
- package/dist/esm/vega-button.entry.js +7 -7
- package/dist/esm/vega-calendar_5.entry.js +11 -11
- package/dist/esm/vega-card.entry.js +5 -5
- package/dist/esm/vega-carousel.entry.js +6 -6
- package/dist/esm/vega-checkbox_2.entry.js +6 -6
- package/dist/esm/vega-chip.entry.js +9 -9
- package/dist/esm/vega-code-block.entry.js +12 -12
- package/dist/esm/vega-color-picker.entry.js +5 -5
- package/dist/esm/vega-color-swatch-picker.entry.js +7 -7
- package/dist/esm/vega-color-swatch.entry.js +5 -5
- package/dist/esm/vega-combo-box.entry.js +19 -13
- package/dist/esm/vega-date-picker_2.entry.js +17 -17
- package/dist/esm/vega-dialog_2.entry.js +20 -9
- package/dist/esm/vega-divider.entry.js +5 -5
- package/dist/esm/vega-dropdown_5.entry.js +695 -197
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/{vega-event-id-d3017041.js → vega-event-id-270fe47e.js} +2 -1
- package/dist/esm/vega-field-label.entry.js +5 -5
- package/dist/esm/vega-file-uploader.entry.js +6 -6
- package/dist/esm/vega-flag-icon.entry.js +5 -5
- package/dist/esm/vega-flex.entry.js +6 -6
- package/dist/esm/vega-font.entry.js +5 -5
- package/dist/esm/vega-form.entry.js +7 -7
- package/dist/esm/vega-grid.entry.js +5 -5
- package/dist/esm/vega-icon.entry.js +5 -5
- package/dist/esm/vega-image-uploader.entry.js +9 -9
- package/dist/esm/vega-input-credit-card.entry.js +10 -10
- package/dist/esm/vega-input-numeric.entry.js +9 -9
- package/dist/esm/vega-input-passcode.entry.js +9 -9
- package/dist/esm/vega-input-phone-number.entry.js +8 -8
- package/dist/esm/vega-input-range.entry.js +7 -7
- package/dist/esm/vega-input-select.entry.js +9 -9
- package/dist/esm/vega-input.entry.js +9 -9
- package/dist/esm/vega-item-toggle.entry.js +3 -3
- package/dist/esm/vega-left-nav_5.entry.js +10 -10
- package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
- package/dist/esm/vega-page-notification_2.entry.js +1 -1
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +3 -3
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +3 -3
- package/dist/esm/vega-pagination.entry.js +8 -8
- package/dist/esm/vega-popover_2.entry.js +11 -11
- package/dist/esm/vega-progress-tracker_2.entry.js +6 -6
- package/dist/esm/vega-radio_2.entry.js +9 -9
- package/dist/esm/vega-rich-text-content.entry.js +7 -7
- package/dist/esm/vega-rich-text-editor_4.entry.js +472 -62
- package/dist/esm/vega-rich-text-find-replace-panel.entry.js +4 -4
- package/dist/esm/vega-rich-text-special-characters-panel.entry.js +8 -8
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +11 -11
- package/dist/esm/vega-segment-control.entry.js +3 -3
- package/dist/esm/vega-selection-chip_2.entry.js +8 -8
- package/dist/esm/vega-selection-tile_2.entry.js +6 -6
- package/dist/esm/vega-sidenav_3.entry.js +6 -6
- package/dist/esm/vega-signature-capture.entry.js +10 -10
- package/dist/esm/vega-stepper.entry.js +6 -6
- package/dist/esm/vega-tab-group_2.entry.js +4 -4
- package/dist/esm/vega-table_11.entry.js +911 -428
- package/dist/esm/vega-textarea.entry.js +7 -9
- package/dist/esm/vega-time-picker_2.entry.js +34 -14
- package/dist/esm/vega-toggle-switch.entry.js +5 -5
- package/dist/esm/vega-tooltip_2.entry.js +6 -6
- package/dist/esm/vega.js +15 -14
- package/dist/sri/vega-sri-manifest.json +362 -358
- package/dist/types/components/vega-combo-box/types.d.ts +6 -1
- package/dist/types/components/vega-combo-box/vega-combo-box.d.ts +1 -0
- package/dist/types/components/vega-dropdown/constants.d.ts +1 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.d.ts +2 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-children-controller.d.ts +36 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-select-all-controller.d.ts +107 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-selected-controller.d.ts +17 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-source-controller.d.ts +5 -0
- package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.d.ts +2 -0
- package/dist/types/components/vega-dropdown/types.d.ts +8 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/controllers/vega-dropdown-item-state-controller.d.ts +25 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.d.ts +1 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.d.ts +4 -0
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +48 -0
- package/dist/types/components/vega-modal/slimmers/renderers/vega-modal-renderer.d.ts +2 -1
- package/dist/types/components/vega-modal/vega-modal.d.ts +9 -1
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/paste-content-strategy.d.ts +14 -4
- package/dist/types/components/vega-rich-text-editor/dto/actions/paste-content-action.d.ts +7 -0
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/action-handler-interceptors/blockquote-exit-on-enter-interceptor.d.ts +34 -0
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/action-handler-strategies/block-transform-to-blockquote-strategy.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/action-handler-strategies/remove-blockquote-strategy.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/actions/remove-blockquote-action.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/actions/transform-to-blockquote-action.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/assets/quote-left.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/blockquote-extension.d.ts +9 -0
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/dto/blockquote-annotation.d.ts +48 -0
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/dto/rte-blockquote-block.d.ts +56 -0
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/element-to-dto-strategies/blockquote-to-blockquote-block-strategy.d.ts +35 -0
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/filter-styles-strategies/blockquote-block/blockquote-filter-styles-strategy.d.ts +31 -0
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/renderers/blockquote-block-renderer.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/extensions/blockquote/renderers/blockquote-toolbar-button-renderer.d.ts +113 -0
- package/dist/types/components/vega-rich-text-editor/extensions/image/image-extension.d.ts +27 -0
- package/dist/types/components/vega-rich-text-editor/extensions/image/type.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/assets/paste.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/paste-chooser-ui.d.ts +58 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/paste-constants.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/paste-extension.d.ts +150 -0
- package/dist/types/components/vega-rich-text-editor/helpers/utils.d.ts +7 -0
- package/dist/types/components/vega-rich-text-editor/public-api.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.d.ts +114 -3
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +22 -13
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.d.ts +10 -2
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/slimmers/renderers/vega-rich-text-editor-toolbar-button-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/vega-rich-text-editor-toolbar-button.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +4 -4
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-image-editor/vega-rich-text-image-editor.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/vega-rich-text-link-editor.d.ts +1 -1
- package/dist/types/components/vega-table/interface.d.ts +18 -0
- package/dist/types/components/vega-table/slimmers/controllers/dto/column-render-input-model.d.ts +13 -0
- package/dist/types/components/vega-table/slimmers/controllers/vega-table-body-col-span-controller.d.ts +43 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-body-col-span-resolver.d.ts +38 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-cell-renderer.d.ts +11 -2
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-pinned-renderer.d.ts +4 -0
- package/dist/types/components/vega-table/slimmers/renderers/vega-table-row-renderer.d.ts +1 -0
- package/dist/types/components/vega-table/vega-table-cell/slimmers/controllers/vega-table-row-state-subscriber.d.ts +1 -1
- package/dist/types/components/vega-table/vega-table-cell/vega-table-cell.d.ts +9 -0
- package/dist/types/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.d.ts +1 -0
- package/dist/types/components/vega-table/vega-table-foot-cell/vega-table-foot-cell.d.ts +9 -0
- package/dist/types/components/vega-table/vega-table.d.ts +2 -0
- package/dist/types/components/vega-time-picker/slimmers/controllers/vega-time-picker-range-dropdown-controller.d.ts +1 -0
- package/dist/types/components/vega-time-picker/slimmers/controllers/vega-time-picker-single-dropdown-controller.d.ts +1 -0
- package/dist/types/components/vega-time-picker/types.d.ts +7 -0
- package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +11 -1
- package/dist/types/components.d.ts +80 -3
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
- package/dist/types/helpers/translation/interface.d.ts +5 -0
- package/dist/types/helpers/ui/element-appender.d.ts +4 -1
- package/dist/types/types/components.type.d.ts +5 -1
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-481601c0.entry.js → p-05f937c5.entry.js} +1 -1
- package/dist/vega/{p-970115d6.js → p-07562b9c.js} +1 -1
- package/dist/vega/{p-d0ce752f.entry.js → p-09d50f59.entry.js} +1 -1
- package/dist/vega/{p-22f73e6e.entry.js → p-0cb78838.entry.js} +1 -1
- package/dist/vega/p-0e607b44.js +1 -0
- package/dist/vega/{p-c8eaf91c.entry.js → p-0f1d6ceb.entry.js} +1 -1
- package/dist/vega/{p-70817cf5.js → p-140616fe.js} +1 -1
- package/dist/vega/{p-f70f7ad8.entry.js → p-1818f399.entry.js} +1 -1
- package/dist/vega/{p-802bf369.js → p-18a5e8bc.js} +1 -1
- package/dist/vega/{p-4d9061fb.js → p-19c42e30.js} +1 -1
- package/dist/vega/{p-d7369441.js → p-1efab41b.js} +1 -1
- package/dist/vega/{p-92823583.js → p-21e21f51.js} +1 -1
- package/dist/vega/{p-c0629528.entry.js → p-26c7fe8b.entry.js} +1 -1
- package/dist/vega/p-282b37cb.js +1 -0
- package/dist/vega/{p-c78aeaf3.entry.js → p-2dc5edd0.entry.js} +1 -1
- package/dist/vega/{p-228c5de8.js → p-2de61f1b.js} +1 -1
- package/dist/vega/{p-82279b03.entry.js → p-2de88b4a.entry.js} +1 -1
- package/dist/vega/{p-438b7404.entry.js → p-2fcc604c.entry.js} +1 -1
- package/dist/vega/{p-aa32f2f3.js → p-32a67ba1.js} +1 -1
- package/dist/vega/p-392e049c.entry.js +1 -0
- package/dist/vega/{p-a268a4fb.entry.js → p-3932f964.entry.js} +1 -1
- package/dist/vega/{p-f515d189.entry.js → p-3c9da3cd.entry.js} +1 -1
- package/dist/vega/{p-5829a66d.entry.js → p-3f7b10b9.entry.js} +1 -1
- package/dist/vega/{p-5545a235.entry.js → p-422d88ae.entry.js} +1 -1
- package/dist/vega/p-4256252c.js +3 -0
- package/dist/vega/{p-8f078d0d.entry.js → p-44439ecc.entry.js} +1 -1
- package/dist/vega/{p-68e16c70.entry.js → p-45e8424a.entry.js} +1 -1
- package/dist/vega/p-4c49b2e3.js +1 -0
- package/dist/vega/{p-71e2a3ec.js → p-4d9562bc.js} +1 -1
- package/dist/vega/p-4e1aa86f.js +1 -0
- package/dist/vega/p-4ef5c4a7.entry.js +1 -0
- package/dist/vega/{p-9440a8a5.entry.js → p-4f327808.entry.js} +1 -1
- package/dist/vega/{p-2def8e3e.js → p-5139e516.js} +1 -1
- package/dist/vega/{p-2e58d99e.entry.js → p-56c4e349.entry.js} +1 -1
- package/dist/vega/{p-b730bf6e.js → p-5dbfffcd.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-916dfa7e.entry.js → p-615a2b8c.entry.js} +1 -1
- package/dist/vega/{p-625351a3.entry.js → p-63101cb4.entry.js} +1 -1
- package/dist/vega/{p-7798254d.entry.js → p-653a6dd8.entry.js} +1 -1
- package/dist/vega/{p-d20587b4.entry.js → p-66b7d1c7.entry.js} +1 -1
- package/dist/vega/{p-9219201a.entry.js → p-6712a9c7.entry.js} +1 -1
- package/dist/vega/p-698fbd73.js +1 -0
- package/dist/vega/p-6ad7144a.entry.js +1 -0
- package/dist/vega/{p-9fafc956.entry.js → p-6b1893f6.entry.js} +1 -1
- package/dist/vega/{p-93dfab05.js → p-6d40635e.js} +1 -1
- package/dist/vega/{p-b799fc1f.entry.js → p-73fd18d9.entry.js} +1 -1
- package/dist/vega/p-751a5cd6.entry.js +1 -0
- package/dist/vega/{p-f7739cbb.entry.js → p-7b93a756.entry.js} +1 -1
- package/dist/vega/{p-2314494a.entry.js → p-7c8e579e.entry.js} +1 -1
- package/dist/vega/{p-4953bb1a.js → p-7d54e9c1.js} +1 -1
- package/dist/vega/{p-590c8720.entry.js → p-832d1a72.entry.js} +1 -1
- package/dist/vega/p-846b1ab9.entry.js +1 -0
- package/dist/vega/p-88863658.js +1 -0
- package/dist/vega/{p-c2e0f8b7.entry.js → p-8c1a5fa4.entry.js} +1 -1
- package/dist/vega/{p-f0bc2bbb.js → p-8d27b9cc.js} +1 -1
- package/dist/vega/{p-f365601c.entry.js → p-944b43ce.entry.js} +1 -1
- package/dist/vega/{p-8d69b201.js → p-95d6c85f.js} +1 -1
- package/dist/vega/{p-9b1d718c.entry.js → p-99b699be.entry.js} +1 -1
- package/dist/vega/p-9a01be93.js +1 -0
- package/dist/vega/{p-53c76d9d.entry.js → p-9a472a04.entry.js} +1 -1
- package/dist/vega/{p-18413b62.entry.js → p-9cafbc26.entry.js} +1 -1
- package/dist/vega/p-a359e53c.js +1 -0
- package/dist/vega/p-a9a87b9a.js +1 -0
- package/dist/vega/p-acbba6da.entry.js +1 -0
- package/dist/vega/{p-56cf1a65.entry.js → p-ad35dea4.entry.js} +1 -1
- package/dist/vega/{p-06c2ce2c.entry.js → p-af98539f.entry.js} +1 -1
- package/dist/vega/{p-136226f8.js → p-afb96938.js} +1 -1
- package/dist/vega/{p-e160a727.entry.js → p-b042e3b4.entry.js} +1 -1
- package/dist/vega/{p-5beec481.js → p-b1ff70bf.js} +1 -1
- package/dist/vega/{p-9cdedcfb.entry.js → p-b39d4a88.entry.js} +1 -1
- package/dist/vega/{p-c78e8081.entry.js → p-b5bee669.entry.js} +1 -1
- package/dist/vega/p-b5f308ee.entry.js +1 -0
- package/dist/vega/{p-43c3848f.entry.js → p-bbabb1c8.entry.js} +1 -1
- package/dist/vega/p-bbf1f988.entry.js +1 -0
- package/dist/vega/{p-e9cee498.entry.js → p-c2d28797.entry.js} +1 -1
- package/dist/vega/{p-40501057.entry.js → p-c3c0e415.entry.js} +1 -1
- package/dist/vega/{p-5946fadf.js → p-c553d37e.js} +1 -1
- package/dist/vega/{p-f6bccb06.entry.js → p-c5ecbc53.entry.js} +1 -1
- package/dist/vega/{p-2353b64f.entry.js → p-c9c6daa6.entry.js} +1 -1
- package/dist/vega/p-cb81fc2a.entry.js +1 -0
- package/dist/vega/p-ccb9bf86.js +1 -0
- package/dist/vega/{p-e371738b.js → p-ccf7518b.js} +1 -1
- package/dist/vega/{p-8b9a8603.entry.js → p-cf8d5b3f.entry.js} +1 -1
- package/dist/vega/{p-30561e1d.entry.js → p-d3a36d19.entry.js} +1 -1
- package/dist/vega/{p-cd1844ad.entry.js → p-d44943e2.entry.js} +1 -1
- package/dist/vega/{p-d3c8b871.entry.js → p-d4bb6f93.entry.js} +1 -1
- package/dist/vega/p-d62b85ff.entry.js +1 -0
- package/dist/vega/{p-ce7e9515.entry.js → p-d7f32ccf.entry.js} +1 -1
- package/dist/vega/p-dca3278f.js +1 -0
- package/dist/vega/{p-37dffdf6.entry.js → p-ddd28a8e.entry.js} +1 -1
- package/dist/vega/{p-2da12975.entry.js → p-ddf03de1.entry.js} +1 -1
- package/dist/vega/p-e0ecafca.js +1 -0
- package/dist/vega/p-e33e1e90.js +1 -0
- package/dist/vega/{p-5038b6d7.entry.js → p-e410c4ad.entry.js} +1 -1
- package/dist/vega/{p-a361456d.js → p-e4309574.js} +1 -1
- package/dist/vega/p-e5187a86.entry.js +1 -0
- package/dist/vega/{p-fc5dfb52.entry.js → p-e86c6802.entry.js} +1 -1
- package/dist/vega/{p-e3803943.js → p-ef605271.js} +1 -1
- package/dist/vega/{p-45ab490c.js → p-f0d4c78c.js} +1 -1
- package/dist/vega/{p-e41d9d0e.entry.js → p-f2f22b5d.entry.js} +1 -1
- package/dist/vega/{p-b6ebfd5c.entry.js → p-f8a29127.entry.js} +1 -1
- package/dist/vega/{p-cd9fb2ca.entry.js → p-fbd3be00.entry.js} +1 -1
- package/dist/vega/{p-450bf94d.entry.js → p-fda6e2cc.entry.js} +1 -1
- package/dist/vega/p-ff8dd200.js +1 -0
- package/dist/vega/{p-c67ce78c.entry.js → p-ffdacaf9.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +2 -16
- package/readme.md +0 -5
- package/dist/vega/p-0179f55d.js +0 -1
- package/dist/vega/p-07b56f2b.entry.js +0 -1
- package/dist/vega/p-209e0166.js +0 -1
- package/dist/vega/p-35df0f0a.entry.js +0 -1
- package/dist/vega/p-3cf4339a.entry.js +0 -1
- package/dist/vega/p-4e39adf5.entry.js +0 -1
- package/dist/vega/p-5319da71.entry.js +0 -1
- package/dist/vega/p-5de1acdb.js +0 -1
- package/dist/vega/p-5df9047c.js +0 -1
- package/dist/vega/p-683cfe24.js +0 -1
- package/dist/vega/p-7be548a7.js +0 -1
- package/dist/vega/p-8509c140.entry.js +0 -1
- package/dist/vega/p-8aa07ed0.js +0 -1
- package/dist/vega/p-8da860f6.js +0 -1
- package/dist/vega/p-ca9852bb.js +0 -1
- package/dist/vega/p-de885ef2.js +0 -1
- package/dist/vega/p-dee38163.entry.js +0 -1
- package/dist/vega/p-e5502873.entry.js +0 -1
- package/dist/vega/p-ea22cba0.js +0 -1
- package/dist/vega/p-ea54ce0a.js +0 -3
- package/dist/vega/p-ee3155bd.js +0 -1
- package/dist/vega/p-eee01ba7.entry.js +0 -1
- package/dist/vega/p-ef2b9846.entry.js +0 -1
- package/dist/vega/p-f4a01959.js +0 -1
- package/dist/vega/p-f5aefb2f.entry.js +0 -1
|
@@ -26,6 +26,7 @@ import { VegaRTEPresetToolbarItems } from '../../components/vega-rich-text-edito
|
|
|
26
26
|
import { VegaRTEFunctionExtension } from '../../components/vega-rich-text-editor/extensions/functions/function-extension';
|
|
27
27
|
import { VegaRTETableExtension } from '../../components/vega-rich-text-editor/extensions/table/table-extension';
|
|
28
28
|
import { VegaRTEHorizontalLineExtension } from '../../components/vega-rich-text-editor/extensions/horizontal-line/horizontal-line-extension';
|
|
29
|
+
import { VegaRTEBlockquoteExtension } from '../../components/vega-rich-text-editor/extensions/blockquote/blockquote-extension';
|
|
29
30
|
import { VegaRTESpecialCharactersExtension } from '../../components/vega-rich-text-editor/extensions/special-characters/special-characters-extension';
|
|
30
31
|
import { VegaRTEFindReplaceExtension } from '../../components/vega-rich-text-editor/extensions/find-replace/find-replace-extension';
|
|
31
32
|
import { VegaRTESpecialCharactersEssentials, VegaRTESpecialCharactersLatin, VegaRTESpecialCharactersMathematical, VegaRTESpecialCharactersArrows, VegaRTESpecialCharactersCurrency, VegaRTESpecialCharactersText, } from '../../components/vega-rich-text-editor/extensions/special-characters/constants/default-categories';
|
|
@@ -35,6 +36,8 @@ import { VegaRTELinkExtension } from '../../components/vega-rich-text-editor/ext
|
|
|
35
36
|
import { VegaCalendarPeriodFactory } from '../../helpers/calendar';
|
|
36
37
|
import { VegaRTECopyExtension } from '../../components/vega-rich-text-editor/extensions/copy/copy-extension';
|
|
37
38
|
import { VegaRTECutExtension } from '../../components/vega-rich-text-editor/extensions/cut/cut-extension';
|
|
39
|
+
import { VegaRTEPasteExtension } from '../../components/vega-rich-text-editor/extensions/paste/paste-extension';
|
|
40
|
+
import { VegaRTEImageExtension } from '../../components/vega-rich-text-editor/extensions/image/image-extension';
|
|
38
41
|
/**
|
|
39
42
|
* Default export function that will be used by stencil global script,
|
|
40
43
|
* which will be invoked before library loaded.
|
|
@@ -211,6 +214,7 @@ function injectVegaRichTextEditorClassIntoGlobal() {
|
|
|
211
214
|
globalThis.VegaRTEFunctionExtension = VegaRTEFunctionExtension;
|
|
212
215
|
globalThis.VegaRTETableExtension = VegaRTETableExtension;
|
|
213
216
|
globalThis.VegaRTEHorizontalLineExtension = VegaRTEHorizontalLineExtension;
|
|
217
|
+
globalThis.VegaRTEBlockquoteExtension = VegaRTEBlockquoteExtension;
|
|
214
218
|
globalThis.VegaRTESpecialCharactersExtension = VegaRTESpecialCharactersExtension;
|
|
215
219
|
globalThis.VegaRTEFindReplaceExtension = VegaRTEFindReplaceExtension;
|
|
216
220
|
globalThis.VegaRTESpecialCharactersEssentials = VegaRTESpecialCharactersEssentials;
|
|
@@ -220,9 +224,11 @@ function injectVegaRichTextEditorClassIntoGlobal() {
|
|
|
220
224
|
globalThis.VegaRTESpecialCharactersCurrency = VegaRTESpecialCharactersCurrency;
|
|
221
225
|
globalThis.VegaRTESpecialCharactersText = VegaRTESpecialCharactersText;
|
|
222
226
|
globalThis.VegaRTELineHeightExtension = VegaRTELineHeightExtension;
|
|
227
|
+
globalThis.VegaRTEPasteExtension = VegaRTEPasteExtension;
|
|
223
228
|
globalThis.VegaRTELinkExtension = VegaRTELinkExtension;
|
|
224
229
|
globalThis.VegaRTECopyExtension = VegaRTECopyExtension;
|
|
225
230
|
globalThis.VegaRTECutExtension = VegaRTECutExtension;
|
|
231
|
+
globalThis.VegaRTEImageExtension = VegaRTEImageExtension;
|
|
226
232
|
}
|
|
227
233
|
/**
|
|
228
234
|
* Inject VegaCalendarPeriodFactory to global as a public api.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VegaExpand, VegaAdditionalLinkClick, VegaClick, VegaDropdownClick, VegaReset, VegaDropdownSearch, VegaClose, VegaActionButtonClick, VegaChange, VegaEventClick, VegaDateDblClick, VegaMoreActionClick, VegaDateClick, VegaEventEdit, VegaPageUpdate, VegaUserChange, VegaRemove, VegaCreate, VegaSearch, VegaMonthYearChange, VegaClear, VegaSelectionChange, VegaTodayClick, VegaDropdownShow, VegaDropdownHide, VegaSearchTrigger, VegaLabelButtonClick, VegaSelectFileChange, VegaRetry, VegaPreview, VegaFormSubmit, VegaFormReset, VegaValidate, VegaCancel, VegaNativeInputChange, VegaFocus, VegaBlur, VegaSuggestionItemClick, VegaPaste, VegaComplete, VegaCountryChange, VegaShow, VegaHide, VegaToggleStatus, VegaOpen, VegaStateUpdate, VegaGroupClick, VegaMenuClick, VegaActionClick, VegaPageSizeChange, VegaPopoverShow, VegaPopoverHide, VegaCurrentStepUpdate, VegaImageInserted, VegaSourceCodeChange, VegaSelectChange, VegaSelectAllChange, VegaRowClick, VegaRowExpand, VegaRowDragDrop, VegaRowSelect, VegaRowSelectAll, } from './vega-event-id';
|
|
1
|
+
import { VegaExpand, VegaAdditionalLinkClick, VegaClick, VegaDropdownClick, VegaReset, VegaDropdownSearch, VegaClose, VegaActionButtonClick, VegaChange, VegaEventClick, VegaDateDblClick, VegaMoreActionClick, VegaDateClick, VegaEventEdit, VegaPageUpdate, VegaUserChange, VegaRemove, VegaCreate, VegaSearch, VegaMonthYearChange, VegaClear, VegaSelectionChange, VegaTodayClick, VegaDropdownShow, VegaDropdownHide, VegaDropdownSelectAllClick, VegaSearchTrigger, VegaLabelButtonClick, VegaSelectFileChange, VegaRetry, VegaPreview, VegaFormSubmit, VegaFormReset, VegaValidate, VegaCancel, VegaNativeInputChange, VegaFocus, VegaBlur, VegaSuggestionItemClick, VegaPaste, VegaComplete, VegaCountryChange, VegaShow, VegaHide, VegaToggleStatus, VegaOpen, VegaStateUpdate, VegaGroupClick, VegaMenuClick, VegaActionClick, VegaPageSizeChange, VegaPopoverShow, VegaPopoverHide, VegaCurrentStepUpdate, VegaImageInserted, VegaSourceCodeChange, VegaSelectChange, VegaSelectAllChange, VegaRowClick, VegaRowExpand, VegaRowDragDrop, VegaRowSelect, VegaRowSelectAll, } from './vega-event-id';
|
|
2
2
|
const entries = [
|
|
3
3
|
['vega-accordion', [VegaExpand]],
|
|
4
4
|
['vega-app-footer', [VegaAdditionalLinkClick]],
|
|
@@ -31,6 +31,7 @@ const entries = [
|
|
|
31
31
|
VegaDropdownShow,
|
|
32
32
|
VegaDropdownHide,
|
|
33
33
|
VegaDropdownClick,
|
|
34
|
+
VegaDropdownSelectAllClick,
|
|
34
35
|
VegaReset,
|
|
35
36
|
VegaCreate,
|
|
36
37
|
VegaDropdownSearch,
|
|
@@ -71,6 +71,7 @@ export const VegaRowSelectAll = new VegaEventID('vegaRowSelectAll', 'rowSelectAl
|
|
|
71
71
|
export const VegaSelectAllChange = new VegaEventID('vegaSelectAllChange', 'selectAllChange');
|
|
72
72
|
export const VegaPageSizeChange = new VegaEventID('vegaPageSizeChange', 'pageSizeChange');
|
|
73
73
|
export const VegaDropdownClick = new VegaEventID('vegaDropdownClick', 'dropdownClick');
|
|
74
|
+
export const VegaDropdownSelectAllClick = new VegaEventID('vegaDropdownSelectAllClick', 'dropdownSelectAllClick');
|
|
74
75
|
export const VegaCreate = new VegaEventID('vegaCreate', 'create');
|
|
75
76
|
export const VegaSearch = new VegaEventID('vegaSearch', 'search');
|
|
76
77
|
export const VegaSearchTrigger = new VegaEventID('vegaSearchTrigger', 'searchTrigger');
|
|
@@ -15,6 +15,7 @@ import { ClickTriggerStrategy } from './trigger-strategies/click-trigger-strateg
|
|
|
15
15
|
import { HoverTriggerStrategy } from './trigger-strategies/hover-trigger-strategy';
|
|
16
16
|
import { NoneTriggerStrategy } from './trigger-strategies/none-trigger-strategy';
|
|
17
17
|
import { isEATriggerStrategy } from '../../../types/type-guard';
|
|
18
|
+
import { tryGetDocument } from '../../../utils/try-get-document';
|
|
18
19
|
export class ElementAppenderSlimmer extends VegaSlimmer {
|
|
19
20
|
constructor(showConfigFactory, getTrigger, isDropdownShowName = 'isDropdownShow', disableInteractiveGetter = () => false) {
|
|
20
21
|
super();
|
|
@@ -112,12 +113,18 @@ export class ElementAppenderSlimmer extends VegaSlimmer {
|
|
|
112
113
|
this.executeTriggerStrategy(triggerStrategy, e, 'click-outside');
|
|
113
114
|
}
|
|
114
115
|
};
|
|
115
|
-
/* istanbul ignore next */
|
|
116
116
|
/* Listen global scroll event */
|
|
117
|
-
this.globalScrollHandler = () => {
|
|
117
|
+
this.globalScrollHandler = (e) => {
|
|
118
118
|
var _a;
|
|
119
|
-
if (this.showConfig && this.
|
|
120
|
-
|
|
119
|
+
if (this.showConfig && this.isShowing()) {
|
|
120
|
+
// Shadow-root scroll (Observer callback — e is not a DOM Event) and
|
|
121
|
+
// inner-container DOM scroll (e.target !== tryGetDocument()) both need forced
|
|
122
|
+
// recalculation because the body-position formula does not self-correct
|
|
123
|
+
// for those scroll sources.
|
|
124
|
+
// Document-level scroll in body-position mode is handled by the formula
|
|
125
|
+
// itself, so no forced recalculation is needed there.
|
|
126
|
+
const forceAdjust = !(e instanceof Event) || e.target !== tryGetDocument();
|
|
127
|
+
(_a = this.elementAppender) === null || _a === void 0 ? void 0 : _a.onScroll(forceAdjust);
|
|
121
128
|
}
|
|
122
129
|
};
|
|
123
130
|
/* A timer that will hide the dropdown after a certain amount of time. */
|
|
@@ -87,6 +87,7 @@ export const staticTranslations = {
|
|
|
87
87
|
'Start Date': 'Start Date',
|
|
88
88
|
'End Date': 'End Date',
|
|
89
89
|
'Please select': 'Please select',
|
|
90
|
+
'Select All': 'Select All',
|
|
90
91
|
'No options': 'No options',
|
|
91
92
|
'No results found': 'No results found',
|
|
92
93
|
'Minimum': 'Minimum',
|
|
@@ -194,12 +195,15 @@ export const staticTranslations = {
|
|
|
194
195
|
'Apply': 'Apply',
|
|
195
196
|
'Enter color': 'Enter color',
|
|
196
197
|
'Horizontal line': 'Horizontal line',
|
|
198
|
+
'Block quote': 'Block quote',
|
|
197
199
|
'Special Characters': 'Special Characters',
|
|
198
200
|
'All': 'All',
|
|
199
201
|
'Latin': 'Latin',
|
|
200
202
|
'Mathematical': 'Mathematical',
|
|
201
203
|
'Arrows': 'Arrows',
|
|
202
204
|
'Currency': 'Currency',
|
|
205
|
+
'Use rich text': 'Use rich text',
|
|
206
|
+
'Paste options': 'Paste options',
|
|
203
207
|
'Required': 'Required',
|
|
204
208
|
'Disabled': 'Disabled',
|
|
205
209
|
'Optional': 'Optional',
|
|
@@ -102,9 +102,12 @@ export class ElementAppender {
|
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
104
|
* Update position while window scroll.
|
|
105
|
+
*
|
|
106
|
+
* @param {boolean} forceAdjust - When true, recalculates position regardless of position strategy.
|
|
107
|
+
* Used for inner-container scroll and shadow-root scroll where the body formula does not self-correct.
|
|
105
108
|
*/
|
|
106
|
-
onScroll() {
|
|
107
|
-
if (this.showConfig.isScreenPosition) {
|
|
109
|
+
onScroll(forceAdjust = false) {
|
|
110
|
+
if (this.showConfig.isScreenPosition || forceAdjust) {
|
|
108
111
|
this.adjustPosition(true);
|
|
109
112
|
}
|
|
110
113
|
}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { F as FeatureFlag } from './feature-flag-controller-3fd04ea9.js';
|
|
2
|
-
import { V as VegaLoader, a as VegaNotify, b as VegaEventManager, c as VegaZIndexManager, w as waitForVega, d as VegaSkeletonLoader, e as VegaTranslation, f as VegaRTETokenExtension, g as VegaRTELanguageExtension, h as VegaRTEDefaultLineHeightOptions, i as VegaRTEFunctionExtension, j as VegaRTETableExtension, k as VegaRTEHorizontalLineExtension, l as
|
|
3
|
-
import { V as VegaThemeManager } from './split-cell-operation-
|
|
2
|
+
import { V as VegaLoader, a as VegaNotify, b as VegaEventManager, c as VegaZIndexManager, w as waitForVega, d as VegaSkeletonLoader, e as VegaTranslation, f as VegaRTETokenExtension, g as VegaRTELanguageExtension, h as VegaRTEDefaultLineHeightOptions, i as VegaRTEFunctionExtension, j as VegaRTETableExtension, k as VegaRTEHorizontalLineExtension, l as VegaRTEBlockquoteExtension, m as VegaRTESpecialCharactersExtension, n as VegaRTEFindReplaceExtension, o as VegaRTESpecialCharactersEssentials, p as VegaRTESpecialCharactersLatin, q as VegaRTESpecialCharactersMathematical, r as VegaRTESpecialCharactersArrows, s as VegaRTESpecialCharactersCurrency, t as VegaRTESpecialCharactersText, u as VegaRTELineHeightExtension, v as VegaRTEPasteExtension, x as VegaRTECopyExtension, y as VegaRTECutExtension, z as VegaCalendarPeriodFactory } from './token-extension-ecfafe94.js';
|
|
3
|
+
import { V as VegaThemeManager } from './split-cell-operation-98d58410.js';
|
|
4
4
|
import { M as MapToComponentMethod, V as VegaSlimmer, s as setVegaLogLevel, G as GlobalSlimmersRegistry } from './global-slimmer-registry-17c4efd4.js';
|
|
5
5
|
import { V as VegaDialog } from './vega-dialog-controller-726b74f9.js';
|
|
6
6
|
import { T as TypographyUrls } from './typography-19c3b9be.js';
|
|
7
7
|
import { V as VegaIconManager } from './icon-manager-4ef3f6dd.js';
|
|
8
|
-
import { V as VegaInternalTranslation, s as staticTranslations } from './internal-translation-controller-
|
|
9
|
-
import { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-
|
|
8
|
+
import { V as VegaInternalTranslation, s as staticTranslations } from './internal-translation-controller-09b8bd13.js';
|
|
9
|
+
import { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-52c6b029.js';
|
|
10
10
|
import { v as vegaEnvManager } from './vega-env-manager-8f8dc473.js';
|
|
11
11
|
import { U as UPDATE_TRANSLATION } from './static-subject-title-1c86e974.js';
|
|
12
12
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
13
13
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
14
14
|
import { f as forceUpdate } from './index-090d31ca.js';
|
|
15
|
-
import { V as VegaRTEContent } from './content-state-
|
|
15
|
+
import { V as VegaRTEContent } from './content-state-c3b85ae6.js';
|
|
16
16
|
import { v as vegaNonceManager, s as setVegaNonce } from './vega-nonce-manager-497e5eb5.js';
|
|
17
|
-
import { V as VegaRTEPresetToolbarItems } from './code-block-
|
|
18
|
-
import { V as VegaRTELinkExtension } from './link-extension-
|
|
19
|
-
import './type-guard-
|
|
17
|
+
import { V as VegaRTEPresetToolbarItems } from './code-block-ae2337c2.js';
|
|
18
|
+
import { V as VegaRTELinkExtension } from './link-extension-74eaa826.js';
|
|
19
|
+
import './type-guard-2bfb2c7b.js';
|
|
20
|
+
import { V as VegaRTEImageExtension } from './image-extension-7108c27d.js';
|
|
20
21
|
|
|
21
22
|
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
22
23
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -396,6 +397,7 @@ function injectVegaRichTextEditorClassIntoGlobal() {
|
|
|
396
397
|
globalThis.VegaRTEFunctionExtension = VegaRTEFunctionExtension;
|
|
397
398
|
globalThis.VegaRTETableExtension = VegaRTETableExtension;
|
|
398
399
|
globalThis.VegaRTEHorizontalLineExtension = VegaRTEHorizontalLineExtension;
|
|
400
|
+
globalThis.VegaRTEBlockquoteExtension = VegaRTEBlockquoteExtension;
|
|
399
401
|
globalThis.VegaRTESpecialCharactersExtension = VegaRTESpecialCharactersExtension;
|
|
400
402
|
globalThis.VegaRTEFindReplaceExtension = VegaRTEFindReplaceExtension;
|
|
401
403
|
globalThis.VegaRTESpecialCharactersEssentials = VegaRTESpecialCharactersEssentials;
|
|
@@ -405,9 +407,11 @@ function injectVegaRichTextEditorClassIntoGlobal() {
|
|
|
405
407
|
globalThis.VegaRTESpecialCharactersCurrency = VegaRTESpecialCharactersCurrency;
|
|
406
408
|
globalThis.VegaRTESpecialCharactersText = VegaRTESpecialCharactersText;
|
|
407
409
|
globalThis.VegaRTELineHeightExtension = VegaRTELineHeightExtension;
|
|
410
|
+
globalThis.VegaRTEPasteExtension = VegaRTEPasteExtension;
|
|
408
411
|
globalThis.VegaRTELinkExtension = VegaRTELinkExtension;
|
|
409
412
|
globalThis.VegaRTECopyExtension = VegaRTECopyExtension;
|
|
410
413
|
globalThis.VegaRTECutExtension = VegaRTECutExtension;
|
|
414
|
+
globalThis.VegaRTEImageExtension = VegaRTEImageExtension;
|
|
411
415
|
}
|
|
412
416
|
/**
|
|
413
417
|
* Inject VegaCalendarPeriodFactory to global as a public api.
|
|
@@ -419,7 +423,7 @@ function injectVegaCalendarPeriodFactoryIntoGlobal() {
|
|
|
419
423
|
* Inject VegaPublicValidationRules to global as a public api
|
|
420
424
|
*/
|
|
421
425
|
function injectVegaPublicValidationRules() {
|
|
422
|
-
void import('./public-rules-
|
|
426
|
+
void import('./public-rules-5fce32a5.js').then((module) => {
|
|
423
427
|
Object.entries(module).forEach(([name, value]) => {
|
|
424
428
|
globalThis[name] = value;
|
|
425
429
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
2
|
-
import { i as internalVegaEventManager, j as jqueryDelegatedStrategyController } from './internal-vega-event-manager-
|
|
2
|
+
import { i as internalVegaEventManager, j as jqueryDelegatedStrategyController } from './internal-vega-event-manager-48690e5b.js';
|
|
3
3
|
import { v as vegaEnvManager } from './vega-env-manager-8f8dc473.js';
|
|
4
4
|
import { F as FeatureFlag } from './feature-flag-controller-3fd04ea9.js';
|
|
5
5
|
|
|
@@ -3,7 +3,7 @@ import { d as domNodeSubjectFactory } from './dom-node-subject-observer-factory-
|
|
|
3
3
|
import { e as VegaInternalRichTextEditorFlushChanges, f as VegaInternalRichTextEditorSelectionRangeChange } from './vega-internal-event-id-827eb1ce.js';
|
|
4
4
|
import { d as dashCaseToCamel, c as camelToDashCase } from './string-a953eafc.js';
|
|
5
5
|
import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
|
6
|
-
import { i as isNonNullable } from './type-guard-
|
|
6
|
+
import { i as isNonNullable } from './type-guard-2bfb2c7b.js';
|
|
7
7
|
import { T as TypographyUrls } from './typography-19c3b9be.js';
|
|
8
8
|
import { g as generateUUID } from './misc-9fdbcfbb.js';
|
|
9
9
|
import { V as VegaInternalThemeManager } from './dark-mode-style-controller-ca5afd2d.js';
|
|
@@ -185,6 +185,20 @@ function createStyleMapFromElement(element) {
|
|
|
185
185
|
})
|
|
186
186
|
.reduce((current, obj) => (Object.assign(Object.assign({}, current), obj)), {});
|
|
187
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* Escape HTML-sensitive characters so text can be rendered literally in HTML.
|
|
190
|
+
*
|
|
191
|
+
* @param {string} text - Raw text content.
|
|
192
|
+
* @returns {string} Escaped text content.
|
|
193
|
+
*/
|
|
194
|
+
function escapeHtml(text) {
|
|
195
|
+
return text
|
|
196
|
+
.replace(/&/g, '&')
|
|
197
|
+
.replace(/</g, '<')
|
|
198
|
+
.replace(/>/g, '>')
|
|
199
|
+
.replace(/"/g, '"')
|
|
200
|
+
.replace(/'/g, ''');
|
|
201
|
+
}
|
|
188
202
|
|
|
189
203
|
/**
|
|
190
204
|
* Abstract strategy class for filtering default styles in the rich text editor.
|
|
@@ -3662,7 +3676,11 @@ class RTETextNode extends RTENode {
|
|
|
3662
3676
|
if (this.text === '\n') {
|
|
3663
3677
|
return `<br>`;
|
|
3664
3678
|
}
|
|
3665
|
-
|
|
3679
|
+
if (this.shouldRenderAsPlainText()) {
|
|
3680
|
+
return this.text;
|
|
3681
|
+
}
|
|
3682
|
+
const content = NodeTag === 'code' ? escapeHtml(this.text) : this.text;
|
|
3683
|
+
return `<${NodeTag}${attrStr}>${content}</${NodeTag}>`;
|
|
3666
3684
|
}
|
|
3667
3685
|
/**
|
|
3668
3686
|
* Determines if the text node should be rendered as plain text.
|
|
@@ -3918,11 +3936,16 @@ class BlockSplitWithTextNodeStrategy extends ActionHandleStrategy {
|
|
|
3918
3936
|
if (nodesSplitIndex > -1) {
|
|
3919
3937
|
const beforeNodes = textBlock.children.slice(0, nodesSplitIndex);
|
|
3920
3938
|
const afterNodes = textBlock.children.slice(nodesSplitIndex + 1);
|
|
3921
|
-
if (
|
|
3922
|
-
|
|
3939
|
+
if (splitNode.isContentEditable()) {
|
|
3940
|
+
if (beforeText) {
|
|
3941
|
+
beforeNodes.push(splitNode.cloneWithText(beforeText));
|
|
3942
|
+
}
|
|
3943
|
+
if (afterText) {
|
|
3944
|
+
afterNodes.unshift(splitNode.cloneWithText(afterText));
|
|
3945
|
+
}
|
|
3923
3946
|
}
|
|
3924
|
-
|
|
3925
|
-
afterNodes.unshift(splitNode
|
|
3947
|
+
else {
|
|
3948
|
+
startOffsetOfNode > 0 ? beforeNodes.push(splitNode) : afterNodes.unshift(splitNode);
|
|
3926
3949
|
}
|
|
3927
3950
|
textBlock.apply(new ReplaceChildNodesAction(beforeNodes));
|
|
3928
3951
|
const newBlock = textBlock.cloneWithNodes(afterNodes);
|
|
@@ -4034,11 +4057,16 @@ class BlockInsertLineBreakStrategy extends ActionHandleStrategy {
|
|
|
4034
4057
|
if (nodesSplitIndex > -1) {
|
|
4035
4058
|
const beforeNodes = target.children.slice(0, nodesSplitIndex);
|
|
4036
4059
|
const afterNodes = target.children.slice(nodesSplitIndex + 1);
|
|
4037
|
-
if (
|
|
4038
|
-
|
|
4060
|
+
if (splitNode.isContentEditable()) {
|
|
4061
|
+
if (beforeText) {
|
|
4062
|
+
beforeNodes.push(splitNode.cloneWithText(beforeText));
|
|
4063
|
+
}
|
|
4064
|
+
if (afterText) {
|
|
4065
|
+
afterNodes.unshift(splitNode.cloneWithText(afterText));
|
|
4066
|
+
}
|
|
4039
4067
|
}
|
|
4040
|
-
|
|
4041
|
-
afterNodes.unshift(splitNode
|
|
4068
|
+
else {
|
|
4069
|
+
startOffsetOfNode > 0 ? beforeNodes.push(splitNode) : afterNodes.unshift(splitNode);
|
|
4042
4070
|
}
|
|
4043
4071
|
this.mergeLineBreakNodes(beforeNodes, lineBreakNode, afterNodes, target);
|
|
4044
4072
|
}
|
|
@@ -4055,7 +4083,8 @@ class BlockInsertLineBreakStrategy extends ActionHandleStrategy {
|
|
|
4055
4083
|
*/
|
|
4056
4084
|
mergeLineBreakNodes(beforeNodes, lineBreakNode, afterNodes, target) {
|
|
4057
4085
|
if (afterNodes.length === 0 || (afterNodes[0] && afterNodes[0].text === '')) {
|
|
4058
|
-
|
|
4086
|
+
const lastBeforeNode = beforeNodes[beforeNodes.length - 1];
|
|
4087
|
+
afterNodes.push(new RTETextNode(generateUUID(), '\n', target, lastBeforeNode && new Map(lastBeforeNode.annotationMap)));
|
|
4059
4088
|
}
|
|
4060
4089
|
target.apply(new ReplaceChildNodesAction([...beforeNodes, lineBreakNode, ...afterNodes]));
|
|
4061
4090
|
}
|
|
@@ -5230,4 +5259,4 @@ class RTECodeBlock extends RTEBlock {
|
|
|
5230
5259
|
RTECodeBlock.CODE_BLOCK_PLACEHOLDER_CLASS_NAME = 'code-block-placeholder-element';
|
|
5231
5260
|
RTECodeBlock.dtoName = 'RTECodeBlock';
|
|
5232
5261
|
|
|
5233
|
-
export { RTE_DEFAULT_TEXT_COLOR as $, ActionHandleStrategyRegistry as A, BlockAnnotation as B, CommonAnnotationTypeEnum as C, BlockMergeNodesStrategy as D, SyncUpSelectionAction as E, BlockAnnotationTypeEnum as F, CustomClassAnnotation as G, HorizontalAlignmentAnnotationAction as H, InsertChildrenAfterAction as I, NodeAnnotation as J, NodeTypeEnum as K, CommonAnnotation as L, ModifyContentAction as M, NodeAnnotationTypeEnum as N, ReplaceChildNodesAction as O, HTML_VOID_TAGS as P, BlockDeleteNodeContentStrategy as Q, RTETextNode as R, SplitBlockWithNodeAction as S, TextStyleAnnotationAction as T, UpdateTextAction as U, VegaRTEPresetToolbarItems as V, RemoveChildrenStrategy as W, BOLD_FONT_WEIGHT_KEYWORD as X, BOLD_FONT_WEIGHT as Y, createStyleMapFromElement as Z, RTE_TEXT_COLORS as _, RTEBlock as a, ITALIC_FONT_STYLE as a0, STRIKETHROUGH_TEXT_DECORATION as a1, UNDERLINE_TEXT_DECORATION as a2, TextStyleAnnotation as a3, Predicate as a4, HorizontalAlignmentAnnotation as a5, CodeAnnotation as a6, LinkFilterStylesStrategy as a7, CodeBlockFilterStylesStrategy as a8, CodeBlockNodeFilterStylesStrategy as a9, ActionHandlerInterceptorRegistry as aa, CodeLanguage as ab, VegaRTEDefaultTextStyleItems as ac, ZERO_WIDTH_SPACE as ad, LinkAnnotationAction as ae, UpdateCodeBlockAction as af, SelectionChangeAction as ag, TextColorAnnotationAction as ah, VegaRTEOneRowHeightPx as ai, BoldAnnotationAction as aj, ItalicAnnotationAction as ak, UnderlineAnnotationAction as al, BoldAnnotation as am, ClearFormattingAnnotationAction as an, CodeAnnotationAction as ao, StrikethroughAnnotationAction as ap, IndentAnnotationAction as aq, RTETextBlock as b, RTEAnnotationStyle as c, ActionHandleStrategy as d, AppendChildrenAction as e, RTENode as f, InsertChildrenBeforeAction as g, InternalAnnotationTypeEnum as h, ModifyContentActionType as i, AnnotationAction as j, RemoveChildrenAction as k, CustomAttributeAnnotation as l, RTEDTOClassManager$1 as m, RTEFilterStylesStrategy as n, RTEDecoratorNode as o, RTECodeBlock as p, RTECodeBlockNode as q, CustomStyleAnnotation as r, stateEntityRenderingRegistry as s, RTEFilterStylesStrategyRegistry as t, BlockUpdateTextStyleStrategy as u, BlockUpdateHorizontalAlignmentStrategy as v, BlockInsertLineBreakStrategy as w, BlockInsertLineBreakWithBlocksStrategy as x, BlockSplitWithTextNodeStrategy as y, BlockReplaceNodesStrategy as z };
|
|
5262
|
+
export { RTE_DEFAULT_TEXT_COLOR as $, ActionHandleStrategyRegistry as A, BlockAnnotation as B, CommonAnnotationTypeEnum as C, BlockMergeNodesStrategy as D, SyncUpSelectionAction as E, BlockAnnotationTypeEnum as F, CustomClassAnnotation as G, HorizontalAlignmentAnnotationAction as H, InsertChildrenAfterAction as I, NodeAnnotation as J, NodeTypeEnum as K, CommonAnnotation as L, ModifyContentAction as M, NodeAnnotationTypeEnum as N, ReplaceChildNodesAction as O, HTML_VOID_TAGS as P, BlockDeleteNodeContentStrategy as Q, RTETextNode as R, SplitBlockWithNodeAction as S, TextStyleAnnotationAction as T, UpdateTextAction as U, VegaRTEPresetToolbarItems as V, RemoveChildrenStrategy as W, BOLD_FONT_WEIGHT_KEYWORD as X, BOLD_FONT_WEIGHT as Y, createStyleMapFromElement as Z, RTE_TEXT_COLORS as _, RTEBlock as a, ITALIC_FONT_STYLE as a0, STRIKETHROUGH_TEXT_DECORATION as a1, UNDERLINE_TEXT_DECORATION as a2, TextStyleAnnotation as a3, Predicate as a4, HorizontalAlignmentAnnotation as a5, CodeAnnotation as a6, LinkFilterStylesStrategy as a7, CodeBlockFilterStylesStrategy as a8, CodeBlockNodeFilterStylesStrategy as a9, ActionHandlerInterceptorRegistry as aa, CodeLanguage as ab, VegaRTEDefaultTextStyleItems as ac, ZERO_WIDTH_SPACE as ad, LinkAnnotationAction as ae, UpdateCodeBlockAction as af, SelectionChangeAction as ag, TextColorAnnotationAction as ah, VegaRTEOneRowHeightPx as ai, BoldAnnotationAction as aj, ItalicAnnotationAction as ak, UnderlineAnnotationAction as al, BoldAnnotation as am, ClearFormattingAnnotationAction as an, CodeAnnotationAction as ao, StrikethroughAnnotationAction as ap, IndentAnnotationAction as aq, escapeHtml as ar, RTETextBlock as b, RTEAnnotationStyle as c, ActionHandleStrategy as d, AppendChildrenAction as e, RTENode as f, InsertChildrenBeforeAction as g, InternalAnnotationTypeEnum as h, ModifyContentActionType as i, AnnotationAction as j, RemoveChildrenAction as k, CustomAttributeAnnotation as l, RTEDTOClassManager$1 as m, RTEFilterStylesStrategy as n, RTEDecoratorNode as o, RTECodeBlock as p, RTECodeBlockNode as q, CustomStyleAnnotation as r, stateEntityRenderingRegistry as s, RTEFilterStylesStrategyRegistry as t, BlockUpdateTextStyleStrategy as u, BlockUpdateHorizontalAlignmentStrategy as v, BlockInsertLineBreakStrategy as w, BlockInsertLineBreakWithBlocksStrategy as x, BlockSplitWithTextNodeStrategy as y, BlockReplaceNodesStrategy as z };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { c as MapToComponentField, M as MapToComponentMethod } from './global-slimmer-registry-17c4efd4.js';
|
|
2
|
-
import { q as RTECodeBlockNode, R as RTETextNode, ad as ZERO_WIDTH_SPACE,
|
|
2
|
+
import { q as RTECodeBlockNode, R as RTETextNode, ad as ZERO_WIDTH_SPACE, s as stateEntityRenderingRegistry, o as RTEDecoratorNode, f as RTENode, a as RTEBlock, ag as SelectionChangeAction, h as InternalAnnotationTypeEnum, p as RTECodeBlock } from './code-block-ae2337c2.js';
|
|
3
3
|
import { d as debounce } from './timer-9321173b.js';
|
|
4
4
|
import { g as getActiveElement } from './component-7d906393.js';
|
|
5
5
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
6
6
|
import { d as domNodeSubjectFactory, D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-ddff8662.js';
|
|
7
7
|
import { f as VegaInternalRichTextEditorSelectionRangeChange, c as VegaInternalUpdateRTECursorPosition } from './vega-internal-event-id-827eb1ce.js';
|
|
8
8
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
9
|
-
import { R as RTERange } from './range-
|
|
9
|
+
import { R as RTERange } from './range-8f877dbf.js';
|
|
10
10
|
import { A as AutoRunWhenReRenderTaskQueueSlimmer } from './auto-run-when-re-render-task-queue-slimmer.abstract-27820d4c.js';
|
|
11
11
|
import { i as isHTMLElement } from './ui-d73f756a.js';
|
|
12
|
-
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-
|
|
12
|
+
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-531ddb0e.js';
|
|
13
13
|
|
|
14
14
|
let processing = false;
|
|
15
15
|
/**
|
|
@@ -346,58 +346,67 @@ class SelectionController extends AutoRunWhenReRenderTaskQueueSlimmer {
|
|
|
346
346
|
return ShadowSelectionPolyfill$1.getSelection(richTextContentRef.shadowRoot);
|
|
347
347
|
}
|
|
348
348
|
/**
|
|
349
|
-
*
|
|
350
|
-
* Setting the selection range programmatically does not trigger the browser's
|
|
351
|
-
* native auto-scroll, so when the cursor is moved (e.g. after inserting a
|
|
352
|
-
* function block) it can land outside the visible area of a fixed-height
|
|
353
|
-
* (rows) editor. This keeps the caret within view.
|
|
349
|
+
* Keep the caret visible after the range is restored.
|
|
354
350
|
*
|
|
355
|
-
*
|
|
356
|
-
*
|
|
351
|
+
* Applying a range in code does not trigger browser auto-scroll. We first
|
|
352
|
+
* check whether the caret is already visible, and only then call
|
|
353
|
+
* scrollIntoView with center alignment. This works for both fixed-height
|
|
354
|
+
* content hosts (rows mode) and page scrolling (stretch mode), while avoiding
|
|
355
|
+
* unnecessary jumps during normal typing.
|
|
357
356
|
*
|
|
358
357
|
* @param {Range} range - The range that was applied to the selection.
|
|
359
358
|
*/
|
|
360
359
|
scrollCaretIntoView(range) {
|
|
361
|
-
const
|
|
362
|
-
|
|
363
|
-
if (!viewport || !caretRect) {
|
|
360
|
+
const element = this.getCaretElement(range);
|
|
361
|
+
if (!element || typeof element.scrollIntoView !== 'function') {
|
|
364
362
|
return;
|
|
365
363
|
}
|
|
366
|
-
|
|
367
|
-
if (viewportRect.width === 0 ||
|
|
368
|
-
viewportRect.height === 0 ||
|
|
369
|
-
(caretRect.top === 0 && caretRect.bottom === 0 && caretRect.left === 0 && caretRect.right === 0)) {
|
|
364
|
+
if (this.isCaretWithinViewport(range, element)) {
|
|
370
365
|
return;
|
|
371
366
|
}
|
|
372
|
-
|
|
373
|
-
viewport.scrollTop += caretRect.bottom - viewportRect.bottom;
|
|
374
|
-
}
|
|
375
|
-
else if (caretRect.top < viewportRect.top) {
|
|
376
|
-
viewport.scrollTop -= viewportRect.top - caretRect.top;
|
|
377
|
-
}
|
|
367
|
+
element.scrollIntoView({ block: 'center', inline: 'nearest' });
|
|
378
368
|
}
|
|
379
369
|
/**
|
|
380
|
-
*
|
|
381
|
-
* A collapsed range inside an empty node can return an empty rect, so in that
|
|
382
|
-
* case fall back to the nearest element's bounding rect.
|
|
370
|
+
* Resolve the nearest element for the caret start container.
|
|
383
371
|
*
|
|
384
|
-
* @param {Range} range - The range to
|
|
385
|
-
* @returns {Nullable<
|
|
372
|
+
* @param {Range} range - The range to inspect.
|
|
373
|
+
* @returns {Nullable<HTMLElement>} The caret's nearest element, or null.
|
|
386
374
|
*/
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
if (
|
|
375
|
+
getCaretElement(range) {
|
|
376
|
+
const startContainer = range.startContainer;
|
|
377
|
+
if (!startContainer) {
|
|
390
378
|
return null;
|
|
391
379
|
}
|
|
392
|
-
|
|
393
|
-
if (rangeRect.height > 0) {
|
|
394
|
-
return rangeRect;
|
|
395
|
-
}
|
|
396
|
-
const startContainer = range.startContainer;
|
|
397
|
-
const element = startContainer.nodeType === Node.TEXT_NODE
|
|
380
|
+
return startContainer.nodeType === Node.TEXT_NODE
|
|
398
381
|
? startContainer.parentElement
|
|
399
382
|
: startContainer;
|
|
400
|
-
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Determine whether the caret is currently visible within the viewport.
|
|
386
|
+
*
|
|
387
|
+
* The visible area is the intersection of the window and the content host,
|
|
388
|
+
* because in fixed-height (`rows`) mode the host clips its content while in
|
|
389
|
+
* the stretch mode the window is the binding constraint.
|
|
390
|
+
*
|
|
391
|
+
* @param {Range} range - The range that was applied to the selection.
|
|
392
|
+
* @param {HTMLElement} element - The caret's nearest element.
|
|
393
|
+
* @returns {boolean} True when the caret is fully inside the visible area.
|
|
394
|
+
*/
|
|
395
|
+
isCaretWithinViewport(range, element) {
|
|
396
|
+
const caretRect = range.getBoundingClientRect();
|
|
397
|
+
// A collapsed range can report an empty rect; fall back to the element.
|
|
398
|
+
const rect = caretRect.width === 0 && caretRect.height === 0 && caretRect.top === 0
|
|
399
|
+
? element.getBoundingClientRect()
|
|
400
|
+
: caretRect;
|
|
401
|
+
let top = 0;
|
|
402
|
+
let bottom = window.innerHeight;
|
|
403
|
+
const contentRef = this.vegaRichTextEditorRenderer.getRichTextContentRef();
|
|
404
|
+
if (contentRef) {
|
|
405
|
+
const contentRect = contentRef.getBoundingClientRect();
|
|
406
|
+
top = Math.max(top, contentRect.top);
|
|
407
|
+
bottom = Math.min(bottom, contentRect.bottom);
|
|
408
|
+
}
|
|
409
|
+
return rect.top >= top - 1 && rect.bottom <= bottom + 1;
|
|
401
410
|
}
|
|
402
411
|
/**
|
|
403
412
|
* Save the current selection range detail
|
|
@@ -449,6 +458,28 @@ class SelectionController extends AutoRunWhenReRenderTaskQueueSlimmer {
|
|
|
449
458
|
const range = selection.getRangeAt(0);
|
|
450
459
|
const commonAncestor = range.commonAncestorContainer;
|
|
451
460
|
const selectedNodes = [];
|
|
461
|
+
if (range.collapsed) {
|
|
462
|
+
const { startContainer } = range;
|
|
463
|
+
if (startContainer.nodeType === Node.TEXT_NODE) {
|
|
464
|
+
const currentNode = startContainer.parentElement;
|
|
465
|
+
const nodeEntity = stateEntityRenderingRegistry.getEntityByDOM(currentNode);
|
|
466
|
+
if (nodeEntity instanceof RTENode) {
|
|
467
|
+
selectedNodes.push(nodeEntity);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
else if (isHTMLElement(startContainer)) {
|
|
471
|
+
const entityElement = RTEDecoratorNode.isDecoratorNodeContainerElement(startContainer)
|
|
472
|
+
? RTEDecoratorNode.getDecoratorNodeElement(startContainer)
|
|
473
|
+
: startContainer;
|
|
474
|
+
const nodeEntity = stateEntityRenderingRegistry.getEntityByDOM(entityElement);
|
|
475
|
+
if (nodeEntity instanceof RTENode) {
|
|
476
|
+
selectedNodes.push(nodeEntity);
|
|
477
|
+
}
|
|
478
|
+
else if (nodeEntity instanceof RTEBlock && range.collapsed) {
|
|
479
|
+
this.tryToFindTheNearestSelectedNode(range, selectedNodes);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
452
483
|
/**
|
|
453
484
|
* Rich text node filter
|
|
454
485
|
*
|
|
@@ -490,7 +521,9 @@ class SelectionController extends AutoRunWhenReRenderTaskQueueSlimmer {
|
|
|
490
521
|
}
|
|
491
522
|
node.childNodes.forEach(filterNode);
|
|
492
523
|
};
|
|
493
|
-
|
|
524
|
+
if (!range.collapsed || selectedNodes.length === 0) {
|
|
525
|
+
filterNode(commonAncestor);
|
|
526
|
+
}
|
|
494
527
|
this.addNodesToSelectionMap(selectedNodes);
|
|
495
528
|
this.getSelectedNodes().forEach((node) => node.apply(new SelectionChangeAction(range)));
|
|
496
529
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as ActionHandleStrategy, b as RTETextBlock, R as RTETextNode, e as AppendChildrenAction, A as ActionHandleStrategyRegistry, T as TextStyleAnnotationAction, u as BlockUpdateTextStyleStrategy, H as HorizontalAlignmentAnnotationAction, v as BlockUpdateHorizontalAlignmentStrategy, i as ModifyContentActionType, w as BlockInsertLineBreakStrategy, x as BlockInsertLineBreakWithBlocksStrategy, y as BlockSplitWithTextNodeStrategy, z as BlockReplaceNodesStrategy, D as BlockMergeNodesStrategy, I as InsertChildrenAfterAction, k as RemoveChildrenAction, E as SyncUpSelectionAction, g as InsertChildrenBeforeAction, B as BlockAnnotation, F as BlockAnnotationTypeEnum, a as RTEBlock, r as CustomStyleAnnotation, G as CustomClassAnnotation, l as CustomAttributeAnnotation, p as RTECodeBlock, s as stateEntityRenderingRegistry, J as NodeAnnotation, N as NodeAnnotationTypeEnum, o as RTEDecoratorNode, K as NodeTypeEnum, L as CommonAnnotation, j as AnnotationAction, O as ReplaceChildNodesAction, M as ModifyContentAction, S as SplitBlockWithNodeAction, P as HTML_VOID_TAGS, Q as BlockDeleteNodeContentStrategy, U as UpdateTextAction, W as RemoveChildrenStrategy, X as BOLD_FONT_WEIGHT_KEYWORD, Y as BOLD_FONT_WEIGHT, Z as createStyleMapFromElement, _ as RTE_TEXT_COLORS, $ as RTE_DEFAULT_TEXT_COLOR, a0 as ITALIC_FONT_STYLE, a1 as STRIKETHROUGH_TEXT_DECORATION, a2 as UNDERLINE_TEXT_DECORATION, t as RTEFilterStylesStrategyRegistry, a3 as TextStyleAnnotation, n as RTEFilterStylesStrategy, a4 as Predicate$1, a5 as HorizontalAlignmentAnnotation, a6 as CodeAnnotation, m as RTEDTOClassManager, a7 as LinkFilterStylesStrategy, a8 as CodeBlockFilterStylesStrategy, q as RTECodeBlockNode, a9 as CodeBlockNodeFilterStylesStrategy } from './code-block-
|
|
1
|
+
import { d as ActionHandleStrategy, b as RTETextBlock, R as RTETextNode, e as AppendChildrenAction, A as ActionHandleStrategyRegistry, T as TextStyleAnnotationAction, u as BlockUpdateTextStyleStrategy, H as HorizontalAlignmentAnnotationAction, v as BlockUpdateHorizontalAlignmentStrategy, i as ModifyContentActionType, w as BlockInsertLineBreakStrategy, x as BlockInsertLineBreakWithBlocksStrategy, y as BlockSplitWithTextNodeStrategy, z as BlockReplaceNodesStrategy, D as BlockMergeNodesStrategy, I as InsertChildrenAfterAction, k as RemoveChildrenAction, E as SyncUpSelectionAction, g as InsertChildrenBeforeAction, B as BlockAnnotation, F as BlockAnnotationTypeEnum, a as RTEBlock, r as CustomStyleAnnotation, G as CustomClassAnnotation, l as CustomAttributeAnnotation, p as RTECodeBlock, s as stateEntityRenderingRegistry, J as NodeAnnotation, N as NodeAnnotationTypeEnum, o as RTEDecoratorNode, K as NodeTypeEnum, L as CommonAnnotation, j as AnnotationAction, O as ReplaceChildNodesAction, M as ModifyContentAction, S as SplitBlockWithNodeAction, P as HTML_VOID_TAGS, Q as BlockDeleteNodeContentStrategy, U as UpdateTextAction, W as RemoveChildrenStrategy, X as BOLD_FONT_WEIGHT_KEYWORD, Y as BOLD_FONT_WEIGHT, Z as createStyleMapFromElement, _ as RTE_TEXT_COLORS, $ as RTE_DEFAULT_TEXT_COLOR, a0 as ITALIC_FONT_STYLE, a1 as STRIKETHROUGH_TEXT_DECORATION, a2 as UNDERLINE_TEXT_DECORATION, t as RTEFilterStylesStrategyRegistry, a3 as TextStyleAnnotation, n as RTEFilterStylesStrategy, a4 as Predicate$1, a5 as HorizontalAlignmentAnnotation, a6 as CodeAnnotation, m as RTEDTOClassManager, a7 as LinkFilterStylesStrategy, a8 as CodeBlockFilterStylesStrategy, q as RTECodeBlockNode, a9 as CodeBlockNodeFilterStylesStrategy } from './code-block-ae2337c2.js';
|
|
2
2
|
import { g as generateUUID } from './misc-9fdbcfbb.js';
|
|
3
|
-
import { i as isNonNullable } from './type-guard-
|
|
3
|
+
import { i as isNonNullable } from './type-guard-2bfb2c7b.js';
|
|
4
4
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
5
5
|
import { d as domNodeSubjectFactory } from './dom-node-subject-observer-factory-ddff8662.js';
|
|
6
6
|
import { c as VegaInternalUpdateRTECursorPosition, d as VegaInternalRichTextEditDeleteSelectedNodes, e as VegaInternalRichTextEditorFlushChanges } from './vega-internal-event-id-827eb1ce.js';
|
|
@@ -1750,29 +1750,83 @@ class ListRemoveListItemStrategy extends RemoveChildrenStrategy {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
1752
1752
|
|
|
1753
|
-
/**
|
|
1754
|
-
* Strategy to handle the paste content into function block.
|
|
1755
|
-
*/
|
|
1753
|
+
/** Handles pasted content in a block. */
|
|
1756
1754
|
class PasteContentStrategy extends ActionHandleStrategy {
|
|
1757
1755
|
/**
|
|
1758
|
-
*
|
|
1756
|
+
* Handles pasted content for the target block.
|
|
1757
|
+
*
|
|
1758
|
+
* @param {PasteContentAction} action - The paste action to apply.
|
|
1759
|
+
* @param {RTEBlock} target - The block receiving the pasted content.
|
|
1760
|
+
* @returns {void}
|
|
1759
1761
|
*/
|
|
1760
1762
|
handleAction(action, target) {
|
|
1761
1763
|
if (target.parent) {
|
|
1762
1764
|
const { blocksToBeInserted, startNode, startOffset } = action;
|
|
1763
1765
|
let futureFocusBlock = target;
|
|
1766
|
+
const singlePastedBlock = blocksToBeInserted[0];
|
|
1767
|
+
// Check if the pasted block is a text block with all text node children.
|
|
1768
|
+
// Do NOT allow inline merge for list blocks or other special block types.
|
|
1769
|
+
const canInlineMergeSingleBlock = blocksToBeInserted.length === 1 &&
|
|
1770
|
+
startNode instanceof RTETextNode &&
|
|
1771
|
+
!['RTEListBlock', 'RTEHtmlBlock'].includes(singlePastedBlock.constructor.name) &&
|
|
1772
|
+
singlePastedBlock.children.length > 0 &&
|
|
1773
|
+
singlePastedBlock.children.every((child) => { var _a, _b; return ((_b = (_a = child).isTextNode) === null || _b === void 0 ? void 0 : _b.call(_a)) === true; });
|
|
1764
1774
|
if (startNode === target.children[0] && startOffset === 0) {
|
|
1765
1775
|
target.parent.apply(new InsertChildrenBeforeAction(target, ...blocksToBeInserted));
|
|
1766
1776
|
}
|
|
1777
|
+
else if (canInlineMergeSingleBlock) {
|
|
1778
|
+
this.inlineMergeSingleBlock(action, target);
|
|
1779
|
+
return;
|
|
1780
|
+
}
|
|
1767
1781
|
else {
|
|
1768
1782
|
const breakAction = new SplitBlockWithNodeAction(startNode, startOffset);
|
|
1769
1783
|
target.apply(breakAction);
|
|
1770
1784
|
target.parent.apply(new InsertChildrenAfterAction(target, ...blocksToBeInserted));
|
|
1771
|
-
futureFocusBlock =
|
|
1785
|
+
futureFocusBlock = blocksToBeInserted[blocksToBeInserted.length - 1];
|
|
1786
|
+
action.futureFocusAtEnd = true;
|
|
1772
1787
|
}
|
|
1773
1788
|
action.futureFocusBlock = futureFocusBlock;
|
|
1774
1789
|
}
|
|
1775
1790
|
}
|
|
1791
|
+
/**
|
|
1792
|
+
* Merges a single pasted block inline at the cursor position.
|
|
1793
|
+
*
|
|
1794
|
+
* @param {PasteContentAction} action - The paste action being processed.
|
|
1795
|
+
* @param {RTEBlock} target - The block receiving the inline merge.
|
|
1796
|
+
* @returns {void}
|
|
1797
|
+
*/
|
|
1798
|
+
inlineMergeSingleBlock(action, target) {
|
|
1799
|
+
const { blocksToBeInserted, startNode, startOffset } = action;
|
|
1800
|
+
const singleBlock = blocksToBeInserted[0];
|
|
1801
|
+
const pastedNodes = singleBlock.children;
|
|
1802
|
+
const splitNode = startNode;
|
|
1803
|
+
const nodesSplitIndex = target.children.indexOf(splitNode);
|
|
1804
|
+
if (nodesSplitIndex === -1) {
|
|
1805
|
+
const breakAction = new SplitBlockWithNodeAction(startNode, startOffset);
|
|
1806
|
+
target.apply(breakAction);
|
|
1807
|
+
target.parent.apply(new InsertChildrenAfterAction(target, ...blocksToBeInserted));
|
|
1808
|
+
action.futureFocusBlock = singleBlock;
|
|
1809
|
+
action.futureFocusAtEnd = true;
|
|
1810
|
+
return;
|
|
1811
|
+
}
|
|
1812
|
+
const beforeText = splitNode.text.slice(0, startOffset);
|
|
1813
|
+
const afterText = splitNode.text.slice(startOffset);
|
|
1814
|
+
const beforeNodes = target.children.slice(0, nodesSplitIndex);
|
|
1815
|
+
const afterNodes = target.children.slice(nodesSplitIndex + 1);
|
|
1816
|
+
if (beforeText) {
|
|
1817
|
+
beforeNodes.push(splitNode.cloneWithText(beforeText));
|
|
1818
|
+
}
|
|
1819
|
+
if (afterText) {
|
|
1820
|
+
afterNodes.unshift(splitNode.cloneWithText(afterText));
|
|
1821
|
+
}
|
|
1822
|
+
target.apply(new ReplaceChildNodesAction([...beforeNodes, ...pastedNodes, ...afterNodes]));
|
|
1823
|
+
const lastPastedNode = pastedNodes[pastedNodes.length - 1];
|
|
1824
|
+
action.futureFocusBlock = target;
|
|
1825
|
+
action.futureFocusNode = lastPastedNode;
|
|
1826
|
+
if (lastPastedNode.isTextNode()) {
|
|
1827
|
+
action.futureFocusNodeOffset = lastPastedNode.text.length;
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1776
1830
|
}
|
|
1777
1831
|
|
|
1778
1832
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as StateBackgroundColorFormatter, n as isSpacingTokenType, o as isBorderRadiusTokenType, p as isBorderColorTokenType, q as isBackgroundColorTokenType, r as isTextColorTokenType, s as isBreakpointsTokenType, t as isShadowsTokenType, l as Spacing, u as isBorderStyleType, B as BorderRadius, c as Colors, j as Shadows, v as isTypographyTokenType } from './type-guard-
|
|
1
|
+
import { m as StateBackgroundColorFormatter, n as isSpacingTokenType, o as isBorderRadiusTokenType, p as isBorderColorTokenType, q as isBackgroundColorTokenType, r as isTextColorTokenType, s as isBreakpointsTokenType, t as isShadowsTokenType, l as Spacing, u as isBorderStyleType, B as BorderRadius, c as Colors, j as Shadows, v as isTypographyTokenType } from './type-guard-2bfb2c7b.js';
|
|
2
2
|
import { B as Breakpoints } from './breakpoints-d9faf11c.js';
|
|
3
3
|
import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
|
4
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
4
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-299e6304.js';
|
|
5
5
|
import { a as TypographyKeys } from './typography-19c3b9be.js';
|
|
6
|
-
import { S as StateBorderFormatter, a as StateShadowFormatter, b as StateBorderColorFormatter } from './state-border-formatter-
|
|
6
|
+
import { S as StateBorderFormatter, a as StateShadowFormatter, b as StateBorderColorFormatter } from './state-border-formatter-da52b626.js';
|
|
7
7
|
import { B as BorderStyle } from './ui-93922c59.js';
|
|
8
8
|
|
|
9
9
|
/**
|