@globalpayments/vega 2.92.0 → 2.94.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-d05c3410.js} +14 -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-493c7ce7.js} +117 -31
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-e4c9a5ba.js → component-value-history-controller-slimmer.abstract-ab21fcbf.js} +72 -39
- package/dist/cjs/{content-state-96ec9114.js → content-state-fc34a814.js} +61 -7
- package/dist/cjs/{date-required-rule-8c9e312b.js → date-required-rule-4ab06a82.js} +1 -1
- package/dist/cjs/{design-token-3548af29.js → design-token-d3d12fa0.js} +3 -3
- package/dist/cjs/{element-appender-slimmer-3bf69990.js → element-appender-slimmer-1d6323c2.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-d638ba12.js} +1 -1
- package/dist/cjs/{image-annotation-action-853f72c8.js → image-annotation-action-7c4cd316.js} +4 -4
- package/dist/cjs/image-extension-30a7c10f.js +56 -0
- package/dist/cjs/index.cjs.js +24 -19
- package/dist/cjs/{inject-keyboard-manager-0dccff1a.js → inject-keyboard-manager-5a105612.js} +1 -1
- package/dist/cjs/{internal-calendar-period-factory-6187ec4c.js → internal-calendar-period-factory-b76006f7.js} +1 -1
- package/dist/cjs/{internal-translation-controller-48ebfd0f.js → internal-translation-controller-eb02c3b1.js} +6 -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-ca76d4dc.js} +1 -1
- package/dist/cjs/{keyboard-manager-slimmer-4a2560a1.js → keyboard-manager-slimmer-a1223714.js} +1 -1
- package/dist/cjs/{link-extension-28d95849.js → link-extension-92a63cb7.js} +3 -3
- package/dist/cjs/loader.cjs.js +14 -14
- package/dist/cjs/{month-view-generator-2e59b188.js → month-view-generator-876c50d4.js} +1 -1
- package/dist/cjs/{public-rules-8727c42c.js → public-rules-9e1ea1d9.js} +7 -7
- package/dist/cjs/{range-5cb3d1e4.js → range-30219330.js} +1 -1
- package/dist/cjs/{responsive-format-facade-98b89142.js → responsive-format-facade-25e9f30d.js} +1 -1
- package/dist/cjs/{rich-text-editor-required-rule-8e4d577d.js → rich-text-editor-required-rule-23bf7485.js} +1 -1
- package/dist/cjs/{split-cell-operation-9e3ab88d.js → split-cell-operation-43752212.js} +3 -3
- package/dist/cjs/{state-border-formatter-626b0a14.js → state-border-formatter-f1ce0f3b.js} +1 -1
- package/dist/cjs/{string-format-strategy.abstract-981f43e1.js → string-format-strategy.abstract-b22f7754.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-fc4a0ba5.js → string-input-formatter-slimmer-d2c248f7.js} +1 -1
- package/dist/cjs/{string-mask-strategy-b47fa159.js → string-mask-strategy-fc01a500.js} +2 -2
- package/dist/cjs/{style-formatter-baf18624.js → style-formatter-73205450.js} +2 -2
- package/dist/cjs/{time-required-rule-e77d174f.js → time-required-rule-12d2f394.js} +1 -1
- package/dist/cjs/{token-extension-3aec039f.js → token-extension-ea891d54.js} +3318 -1742
- package/dist/cjs/{translation-slimmer-1e05769e.js → translation-slimmer-9099f56c.js} +1 -1
- package/dist/cjs/{type-guard-7ab48d6c.js → type-guard-f354af8b.js} +1 -1
- package/dist/cjs/{valid-credit-card-number-rule-52ba9c67.js → valid-credit-card-number-rule-8d370163.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 +12 -9
- 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 +316 -111
- 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 +510 -73
- 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 +15 -15
- 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 +968 -425
- 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 +14 -14
- package/dist/collection/components/vega-button/vega-button.css +4 -0
- package/dist/collection/components/vega-button/vega-button.js +4 -1
- 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-nav/vega-left-nav/slimmers/controllers/vega-left-nav-auto-collapse-controller.js +4 -6
- package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-controller.js +23 -68
- package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-manager.js +74 -0
- package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-open-state-controller.js +16 -2
- package/dist/collection/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-zindex-controller.js +2 -2
- package/dist/collection/components/vega-nav/vega-left-nav/vega-left-nav.js +7 -2
- 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/annotations/custom-style-annotation.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/dto/filter-styles-strategies/code-block/code-node-filter-styles-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +6 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +1 -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/find-replace/slimmer/controllers/helper/find-replace-highlight-manager.js +21 -7
- package/dist/collection/components/vega-rich-text-editor/extensions/find-replace/slimmer/renderers/find-replace-toolbar-button-renderer.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/fullscreen/assets/fullscreen-enter.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/fullscreen/assets/fullscreen-exit.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/fullscreen/controller/fullscreen-controller.js +156 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/fullscreen/fullscreen-extension.js +31 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/fullscreen/fullscreen-toolbar-button-renderer.js +73 -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 +145 -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/renderers/table-toolbar-popover-renderer.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/table/table-extension.js +4 -3
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-properties/slimmers/renderers/vega-rich-text-table-properties-basic-form-field-renderer.abstract.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/column-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/merge-cells-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/table/vega-rich-text-table-setting/slimmers/renderers/row-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/helpers/utils.js +85 -15
- package/dist/collection/components/vega-rich-text-editor/public-api.js +5 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/extension-controller.js +2 -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/bullets-numbers/bullets-numbers-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/horizontal-alignment-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.js +59 -14
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-color-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.js +11 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-source-view-renderer.js +19 -1
- 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/slimmers/renderers/vega-rich-text-link-editor-renderer.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 +41 -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 +113 -11
- 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 +8 -0
- package/dist/collection/helpers/backdrop/index.js +1 -0
- package/dist/collection/helpers/backdrop/shared-backdrop-manager.js +163 -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 +6 -0
- package/dist/collection/helpers/ui/element-appender.js +5 -2
- package/dist/esm/{app-globals-5e0d319a.js → app-globals-f2336686.js} +14 -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-e12588fe.js} +117 -32
- package/dist/esm/{component-value-history-controller-slimmer.abstract-282df6e5.js → component-value-history-controller-slimmer.abstract-4e8eb313.js} +72 -39
- package/dist/esm/{content-state-909099f8.js → content-state-8032467a.js} +61 -7
- package/dist/esm/{date-required-rule-15edb04a.js → date-required-rule-b88e1650.js} +1 -1
- package/dist/esm/{design-token-cb5ed6b9.js → design-token-76bd217c.js} +3 -3
- package/dist/esm/{element-appender-slimmer-e41120ee.js → element-appender-slimmer-7fcb944b.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-395c23e3.js} +1 -1
- package/dist/esm/{image-annotation-action-98232dc4.js → image-annotation-action-b3b6c308.js} +4 -4
- package/dist/esm/image-extension-b6c7e4a7.js +53 -0
- package/dist/esm/index.js +19 -19
- package/dist/esm/{inject-keyboard-manager-13cc77ab.js → inject-keyboard-manager-86126b5b.js} +1 -1
- package/dist/esm/{internal-calendar-period-factory-c3d70f3b.js → internal-calendar-period-factory-3a07dba0.js} +1 -1
- package/dist/esm/{internal-translation-controller-8e8a514a.js → internal-translation-controller-16709132.js} +6 -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-a0c3e1cf.js} +1 -1
- package/dist/esm/{keyboard-manager-slimmer-61d4c79b.js → keyboard-manager-slimmer-f3f66c15.js} +1 -1
- package/dist/esm/{link-extension-f1a3bea7.js → link-extension-97fcb8fb.js} +3 -3
- package/dist/esm/loader.js +14 -14
- package/dist/esm/{month-view-generator-85eecb95.js → month-view-generator-fd0e1856.js} +1 -1
- package/dist/esm/{public-rules-323bea4b.js → public-rules-c06f0d2a.js} +7 -7
- package/dist/esm/{range-e63068d1.js → range-e999837f.js} +1 -1
- package/dist/esm/{responsive-format-facade-fb424f5b.js → responsive-format-facade-ced96b0b.js} +1 -1
- package/dist/esm/{rich-text-editor-required-rule-0edb8ba7.js → rich-text-editor-required-rule-71f8ee98.js} +1 -1
- package/dist/esm/{split-cell-operation-93b4d775.js → split-cell-operation-359f8082.js} +3 -3
- package/dist/esm/{state-border-formatter-1a528ca4.js → state-border-formatter-b680e922.js} +1 -1
- package/dist/esm/{string-format-strategy.abstract-72fc98aa.js → string-format-strategy.abstract-23faab71.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-b0c480d8.js → string-input-formatter-slimmer-4b4866a6.js} +1 -1
- package/dist/esm/{string-mask-strategy-4e00c173.js → string-mask-strategy-66586cd8.js} +2 -2
- package/dist/esm/{style-formatter-5c1bea8d.js → style-formatter-f4e16af5.js} +2 -2
- package/dist/esm/{time-required-rule-df500b14.js → time-required-rule-6e80a9ab.js} +1 -1
- package/dist/esm/{token-extension-32d1fa56.js → token-extension-9896879b.js} +3314 -1742
- package/dist/esm/{translation-slimmer-60408f13.js → translation-slimmer-21748a0e.js} +1 -1
- package/dist/esm/{type-guard-91087018.js → type-guard-ec5e8628.js} +1 -1
- package/dist/esm/{valid-credit-card-number-rule-681ecb75.js → valid-credit-card-number-rule-ca5a47d6.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 +12 -9
- 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 +316 -111
- 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 +507 -70
- 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 +15 -15
- 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 +968 -425
- 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 +14 -14
- package/dist/sri/vega-sri-manifest.json +356 -356
- 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-nav/vega-left-nav/slimmers/controllers/vega-left-nav-auto-collapse-controller.d.ts +0 -1
- package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-controller.d.ts +12 -19
- package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-backdrop-manager.d.ts +41 -0
- package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-open-state-controller.d.ts +4 -1
- package/dist/types/components/vega-nav/vega-left-nav/slimmers/controllers/vega-left-nav-zindex-controller.d.ts +1 -1
- package/dist/types/components/vega-nav/vega-left-nav/vega-left-nav.d.ts +2 -0
- 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/find-replace/slimmer/controllers/helper/find-replace-highlight-manager.d.ts +15 -4
- package/dist/types/components/vega-rich-text-editor/extensions/fullscreen/assets/fullscreen-enter.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/fullscreen/assets/fullscreen-exit.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/extensions/fullscreen/controller/fullscreen-controller.d.ts +63 -0
- package/dist/types/components/vega-rich-text-editor/extensions/fullscreen/fullscreen-extension.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/extensions/fullscreen/fullscreen-toolbar-button-renderer.d.ts +40 -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 +26 -0
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/public-api.d.ts +5 -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/slimmers/renderers/vega-rich-text-editor-renderer.d.ts +5 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-source-view-renderer.d.ts +8 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/slimmers/renderers/vega-rich-text-editor-toolbar-button-renderer.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor-toolbar-button/vega-rich-text-editor-toolbar-button.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +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 +31 -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 +23 -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 +90 -3
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/backdrop/index.d.ts +1 -0
- package/dist/types/helpers/backdrop/shared-backdrop-manager.d.ts +67 -0
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +1 -0
- package/dist/types/helpers/translation/interface.d.ts +7 -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-92823583.js → p-02355de8.js} +1 -1
- package/dist/vega/{p-481601c0.entry.js → p-0af32f31.entry.js} +1 -1
- package/dist/vega/{p-438b7404.entry.js → p-0b311599.entry.js} +1 -1
- package/dist/vega/{p-56cf1a65.entry.js → p-0b9c7c79.entry.js} +1 -1
- package/dist/vega/p-0be4df0a.js +1 -0
- package/dist/vega/p-0d18368b.js +1 -0
- package/dist/vega/{p-9fafc956.entry.js → p-1232b553.entry.js} +1 -1
- package/dist/vega/{p-70817cf5.js → p-140616fe.js} +1 -1
- package/dist/vega/{p-f365601c.entry.js → p-14559974.entry.js} +1 -1
- package/dist/vega/{p-aa32f2f3.js → p-14baa886.js} +1 -1
- package/dist/vega/p-2364be92.entry.js +1 -0
- package/dist/vega/{p-c0629528.entry.js → p-26c7fe8b.entry.js} +1 -1
- package/dist/vega/p-270697c0.entry.js +1 -0
- package/dist/vega/p-282b37cb.js +1 -0
- package/dist/vega/{p-06c2ce2c.entry.js → p-288d65ad.entry.js} +1 -1
- package/dist/vega/p-2bf17505.entry.js +1 -0
- package/dist/vega/{p-c78aeaf3.entry.js → p-2dc5edd0.entry.js} +1 -1
- package/dist/vega/{p-136226f8.js → p-320091b7.js} +1 -1
- package/dist/vega/{p-b799fc1f.entry.js → p-341a6b32.entry.js} +1 -1
- package/dist/vega/p-36949349.js +1 -0
- package/dist/vega/p-38c9d782.js +1 -0
- package/dist/vega/{p-a361456d.js → p-3c309a38.js} +1 -1
- package/dist/vega/{p-71e2a3ec.js → p-3dee1e55.js} +1 -1
- package/dist/vega/{p-ef2b9846.entry.js → p-3e8baeac.entry.js} +1 -1
- 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-ce7e9515.entry.js → p-46fe3154.entry.js} +1 -1
- package/dist/vega/{p-c2e0f8b7.entry.js → p-48ee3e24.entry.js} +1 -1
- package/dist/vega/{p-e371738b.js → p-4fe40b76.js} +1 -1
- package/dist/vega/p-4ff48b84.js +1 -0
- package/dist/vega/{p-2e58d99e.entry.js → p-5107277d.entry.js} +1 -1
- package/dist/vega/{p-2def8e3e.js → p-51b68d25.js} +1 -1
- package/dist/vega/p-52c6a399.entry.js +1 -0
- package/dist/vega/p-579cdeae.js +1 -0
- package/dist/vega/{p-e9cee498.entry.js → p-595998d9.entry.js} +1 -1
- package/dist/vega/{p-7798254d.entry.js → p-5db61a12.entry.js} +1 -1
- package/dist/vega/{p-e41d9d0e.entry.js → p-5df2d6a1.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-d7369441.js → p-61ce8029.js} +1 -1
- package/dist/vega/{p-2da12975.entry.js → p-62d6e063.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-f70f7ad8.entry.js → p-6c9c2f8c.entry.js} +1 -1
- package/dist/vega/{p-b730bf6e.js → p-6cde45fc.js} +1 -1
- package/dist/vega/p-6dfe2407.js +1 -0
- package/dist/vega/{p-d3c8b871.entry.js → p-6f01a71a.entry.js} +1 -1
- package/dist/vega/p-6f70a10f.entry.js +1 -0
- package/dist/vega/p-73f2c3c0.entry.js +1 -0
- package/dist/vega/{p-de885ef2.js → p-75e33859.js} +1 -1
- package/dist/vega/p-762ea523.entry.js +1 -0
- package/dist/vega/{p-f6bccb06.entry.js → p-782eb312.entry.js} +1 -1
- package/dist/vega/p-7a88a3d3.entry.js +1 -0
- package/dist/vega/{p-5038b6d7.entry.js → p-7b57a845.entry.js} +1 -1
- package/dist/vega/p-83a16285.entry.js +1 -0
- package/dist/vega/{p-8da860f6.js → p-8720816e.js} +1 -1
- package/dist/vega/{p-9219201a.entry.js → p-892edf88.entry.js} +1 -1
- package/dist/vega/{p-625351a3.entry.js → p-8c083255.entry.js} +1 -1
- package/dist/vega/{p-4d9061fb.js → p-8db904dc.js} +1 -1
- package/dist/vega/{p-22f73e6e.entry.js → p-91287214.entry.js} +1 -1
- package/dist/vega/{p-5946fadf.js → p-919cddc3.js} +1 -1
- package/dist/vega/{p-fc5dfb52.entry.js → p-95913e3c.entry.js} +1 -1
- package/dist/vega/p-97215133.js +1 -0
- package/dist/vega/{p-5829a66d.entry.js → p-9bdc6e11.entry.js} +1 -1
- package/dist/vega/{p-8b9a8603.entry.js → p-9d18ba7f.entry.js} +1 -1
- package/dist/vega/{p-f7739cbb.entry.js → p-9dca874d.entry.js} +1 -1
- package/dist/vega/{p-c67ce78c.entry.js → p-9f38448c.entry.js} +1 -1
- package/dist/vega/{p-e3803943.js → p-9f7154d2.js} +1 -1
- package/dist/vega/{p-2314494a.entry.js → p-a057285e.entry.js} +1 -1
- package/dist/vega/{p-f515d189.entry.js → p-a0a58295.entry.js} +1 -1
- package/dist/vega/p-a7209700.js +1 -0
- package/dist/vega/{p-40501057.entry.js → p-a890d60b.entry.js} +1 -1
- package/dist/vega/{p-450bf94d.entry.js → p-addbca58.entry.js} +1 -1
- package/dist/vega/{p-45ab490c.js → p-b1eb9ff0.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-ea22cba0.js → p-b4e7c967.js} +1 -1
- package/dist/vega/{p-228c5de8.js → p-b775e51f.js} +1 -1
- package/dist/vega/{p-43c3848f.entry.js → p-b8f8e480.entry.js} +1 -1
- package/dist/vega/{p-8d69b201.js → p-ba662fe5.js} +1 -1
- package/dist/vega/p-c66d2a1e.js +1 -0
- package/dist/vega/{p-a268a4fb.entry.js → p-c67b9aba.entry.js} +1 -1
- package/dist/vega/{p-2353b64f.entry.js → p-c9c6daa6.entry.js} +1 -1
- package/dist/vega/p-c9daabe1.entry.js +1 -0
- package/dist/vega/{p-37dffdf6.entry.js → p-cad5222a.entry.js} +1 -1
- package/dist/vega/{p-e160a727.entry.js → p-cb90163a.entry.js} +1 -1
- package/dist/vega/{p-5545a235.entry.js → p-d08ffdf1.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-e235020b.entry.js} +1 -1
- package/dist/vega/{p-9440a8a5.entry.js → p-e4266b45.entry.js} +1 -1
- package/dist/vega/{p-18413b62.entry.js → p-e48a870f.entry.js} +1 -1
- package/dist/vega/{p-590c8720.entry.js → p-e8ee70c5.entry.js} +1 -1
- package/dist/vega/p-ed103a1a.entry.js +1 -0
- package/dist/vega/p-f05a193e.entry.js +1 -0
- package/dist/vega/{p-7be548a7.js → p-f1974321.js} +1 -1
- package/dist/vega/{p-916dfa7e.entry.js → p-f246f125.entry.js} +1 -1
- package/dist/vega/p-f4da615a.js +3 -0
- package/dist/vega/{p-d0ce752f.entry.js → p-f5d7b89f.entry.js} +1 -1
- package/dist/vega/{p-c8eaf91c.entry.js → p-f651df3b.entry.js} +1 -1
- package/dist/vega/{p-93dfab05.js → p-f7e459cd.js} +1 -1
- package/dist/vega/{p-b6ebfd5c.entry.js → p-f8a29127.entry.js} +1 -1
- package/dist/vega/p-f906a7bc.entry.js +1 -0
- package/dist/vega/{p-d20587b4.entry.js → p-f96d0503.entry.js} +1 -1
- package/dist/vega/{p-cd9fb2ca.entry.js → p-fbd3be00.entry.js} +1 -1
- package/dist/vega/{p-f0bc2bbb.js → p-fe24b459.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +2 -16
- package/readme.md +0 -5
- package/dist/cjs/replace-selected-text-action-a31563ed.js +0 -20
- package/dist/esm/replace-selected-text-action-c0817b2b.js +0 -18
- 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-4953bb1a.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-53c76d9d.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-802bf369.js +0 -1
- package/dist/vega/p-82279b03.entry.js +0 -1
- package/dist/vega/p-8509c140.entry.js +0 -1
- package/dist/vega/p-8aa07ed0.js +0 -1
- package/dist/vega/p-970115d6.js +0 -1
- package/dist/vega/p-9b1d718c.entry.js +0 -1
- package/dist/vega/p-c78e8081.entry.js +0 -1
- package/dist/vega/p-ca9852bb.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-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-f4a01959.js +0 -1
- package/dist/vega/p-f5aefb2f.entry.js +0 -1
|
@@ -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-ec5e8628.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';
|
|
@@ -165,25 +165,95 @@ class ModifyContentAction {
|
|
|
165
165
|
/**
|
|
166
166
|
* Creates a style map from the inline styles of an HTML element. This function extracts the 'style' attribute from the given element.
|
|
167
167
|
*
|
|
168
|
+
* Manually parses the style string to handle complex CSS values that contain semicolons (e.g., data URLs),
|
|
169
|
+
* colons (e.g., https:// URLs), or commas (e.g., rgba, gradients). This approach avoids reliance on
|
|
170
|
+
* CSSStyleDeclaration's array-like behavior, which is inconsistent in Jest/JSDOM test environments.
|
|
171
|
+
*
|
|
168
172
|
* @param {HTMLElement} element The HTML element from which to extract inline styles.
|
|
169
173
|
* @returns {AnnotationStyle} An object representing the custom style annotations.
|
|
170
174
|
*/
|
|
171
175
|
function createStyleMapFromElement(element) {
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
const
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
176
|
+
const styleMap = {};
|
|
177
|
+
const styleAttr = element.getAttribute('style');
|
|
178
|
+
if (!styleAttr) {
|
|
179
|
+
return styleMap;
|
|
180
|
+
}
|
|
181
|
+
// Split by semicolons, but only those outside of parentheses (to handle data URLs with semicolons)
|
|
182
|
+
const properties = splitStyleProperties(styleAttr);
|
|
183
|
+
for (const property of properties) {
|
|
184
|
+
const trimmedProperty = property.trim();
|
|
185
|
+
const colonIndex = trimmedProperty.indexOf(':');
|
|
186
|
+
const propertyName = trimmedProperty.substring(0, colonIndex).trim();
|
|
187
|
+
const propertyValue = trimmedProperty.substring(colonIndex + 1).trim();
|
|
188
|
+
// Convert CSS property name to camelCase (e.g., 'background-color' -> 'backgroundColor')
|
|
189
|
+
const camelCaseName = dashCaseToCamel(propertyName);
|
|
190
|
+
styleMap[camelCaseName] = propertyValue;
|
|
191
|
+
}
|
|
192
|
+
return styleMap;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Split a CSS style string by semicolons, but only those outside of parentheses.
|
|
196
|
+
* This ensures that semicolons inside url() or other functions are not treated as property separators.
|
|
197
|
+
*
|
|
198
|
+
* @param {string} styleAttr The style attribute string to split.
|
|
199
|
+
* @returns {string[]} Array of individual CSS property strings.
|
|
200
|
+
*/
|
|
201
|
+
function splitStyleProperties(styleAttr) {
|
|
202
|
+
const properties = [];
|
|
203
|
+
let currentProperty = '';
|
|
204
|
+
let parenthesesDepth = 0;
|
|
205
|
+
for (let i = 0; i < styleAttr.length; i++) {
|
|
206
|
+
const char = styleAttr[i];
|
|
207
|
+
if (char === '(') {
|
|
208
|
+
parenthesesDepth++;
|
|
209
|
+
currentProperty += char;
|
|
210
|
+
}
|
|
211
|
+
else if (char === ')') {
|
|
212
|
+
parenthesesDepth--;
|
|
213
|
+
currentProperty += char;
|
|
214
|
+
}
|
|
215
|
+
else if (char === ';' && parenthesesDepth === 0) {
|
|
216
|
+
// Semicolon outside parentheses - this is a property separator
|
|
217
|
+
properties.push(currentProperty);
|
|
218
|
+
currentProperty = '';
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
currentProperty += char;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
// Add the last property if it doesn't end with a semicolon
|
|
225
|
+
if (currentProperty) {
|
|
226
|
+
properties.push(currentProperty);
|
|
227
|
+
}
|
|
228
|
+
return properties;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Escape HTML-sensitive characters so text can be rendered literally in HTML.
|
|
232
|
+
*
|
|
233
|
+
* @param {string} text - Raw text content.
|
|
234
|
+
* @returns {string} Escaped text content.
|
|
235
|
+
*/
|
|
236
|
+
function escapeHtml(text) {
|
|
237
|
+
return text
|
|
238
|
+
.replace(/&/g, '&')
|
|
239
|
+
.replace(/</g, '<')
|
|
240
|
+
.replace(/>/g, '>')
|
|
241
|
+
.replace(/"/g, '"')
|
|
242
|
+
.replace(/'/g, ''');
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Escape text for use inside a double-quoted HTML attribute value.
|
|
246
|
+
*
|
|
247
|
+
* @param {string} value - Raw attribute value.
|
|
248
|
+
* @returns {string} Escaped attribute-safe value.
|
|
249
|
+
*/
|
|
250
|
+
function escapeHtmlAttribute(value) {
|
|
251
|
+
return (value
|
|
252
|
+
// Keep existing entities (e.g. ", ') intact to avoid double escaping on repeated transforms.
|
|
253
|
+
.replace(/&(?!(?:[a-zA-Z][a-zA-Z0-9]+|#[0-9]+|#x[a-fA-F0-9]+);)/g, '&')
|
|
254
|
+
.replace(/</g, '<')
|
|
255
|
+
.replace(/>/g, '>')
|
|
256
|
+
.replace(/"/g, '"'));
|
|
187
257
|
}
|
|
188
258
|
|
|
189
259
|
/**
|
|
@@ -1166,9 +1236,9 @@ class CustomStyleAnnotation extends CommonAnnotation {
|
|
|
1166
1236
|
* @returns {string} custom style string
|
|
1167
1237
|
*/
|
|
1168
1238
|
toString() {
|
|
1169
|
-
return `style="${Object.entries(this.customStyle)
|
|
1239
|
+
return `style="${escapeHtmlAttribute(Object.entries(this.customStyle)
|
|
1170
1240
|
.map(([key, value]) => `${key}: ${value};`)
|
|
1171
|
-
.join(' ')}"`;
|
|
1241
|
+
.join(' '))}"`;
|
|
1172
1242
|
}
|
|
1173
1243
|
}
|
|
1174
1244
|
|
|
@@ -1549,7 +1619,7 @@ class RTENode {
|
|
|
1549
1619
|
...customAttributeString,
|
|
1550
1620
|
classNames && classNames.length > 0 ? `class="${classNames.join(' ')}"` : null,
|
|
1551
1621
|
styles && Object.keys(styles).length > 0
|
|
1552
|
-
? `style="${nodeAnnotationStyle.toCssText({ standalone: true }, undefined, styles)}"`
|
|
1622
|
+
? `style="${escapeHtmlAttribute(nodeAnnotationStyle.toCssText({ standalone: true }, undefined, styles))}"`
|
|
1553
1623
|
: null,
|
|
1554
1624
|
...attrs,
|
|
1555
1625
|
].filter(isNonNullable);
|
|
@@ -1874,7 +1944,7 @@ class RTEBlock {
|
|
|
1874
1944
|
...customAttributeString,
|
|
1875
1945
|
classNames && classNames.length > 0 ? `class="${classNames.join(' ')}"` : null,
|
|
1876
1946
|
styles && Object.keys(styles).length > 0
|
|
1877
|
-
? `style="${blockAnnotationStyle.toCssText({ standalone: true }, undefined, styles)}"`
|
|
1947
|
+
? `style="${escapeHtmlAttribute(blockAnnotationStyle.toCssText({ standalone: true }, undefined, styles))}"`
|
|
1878
1948
|
: null,
|
|
1879
1949
|
...attrs,
|
|
1880
1950
|
].filter(isNonNullable);
|
|
@@ -3662,7 +3732,11 @@ class RTETextNode extends RTENode {
|
|
|
3662
3732
|
if (this.text === '\n') {
|
|
3663
3733
|
return `<br>`;
|
|
3664
3734
|
}
|
|
3665
|
-
|
|
3735
|
+
if (this.shouldRenderAsPlainText()) {
|
|
3736
|
+
return this.text;
|
|
3737
|
+
}
|
|
3738
|
+
const content = NodeTag === 'code' ? escapeHtml(this.text) : this.text;
|
|
3739
|
+
return `<${NodeTag}${attrStr}>${content}</${NodeTag}>`;
|
|
3666
3740
|
}
|
|
3667
3741
|
/**
|
|
3668
3742
|
* Determines if the text node should be rendered as plain text.
|
|
@@ -3918,11 +3992,16 @@ class BlockSplitWithTextNodeStrategy extends ActionHandleStrategy {
|
|
|
3918
3992
|
if (nodesSplitIndex > -1) {
|
|
3919
3993
|
const beforeNodes = textBlock.children.slice(0, nodesSplitIndex);
|
|
3920
3994
|
const afterNodes = textBlock.children.slice(nodesSplitIndex + 1);
|
|
3921
|
-
if (
|
|
3922
|
-
|
|
3995
|
+
if (splitNode.isContentEditable()) {
|
|
3996
|
+
if (beforeText) {
|
|
3997
|
+
beforeNodes.push(splitNode.cloneWithText(beforeText));
|
|
3998
|
+
}
|
|
3999
|
+
if (afterText) {
|
|
4000
|
+
afterNodes.unshift(splitNode.cloneWithText(afterText));
|
|
4001
|
+
}
|
|
3923
4002
|
}
|
|
3924
|
-
|
|
3925
|
-
afterNodes.unshift(splitNode
|
|
4003
|
+
else {
|
|
4004
|
+
startOffsetOfNode > 0 ? beforeNodes.push(splitNode) : afterNodes.unshift(splitNode);
|
|
3926
4005
|
}
|
|
3927
4006
|
textBlock.apply(new ReplaceChildNodesAction(beforeNodes));
|
|
3928
4007
|
const newBlock = textBlock.cloneWithNodes(afterNodes);
|
|
@@ -4034,11 +4113,16 @@ class BlockInsertLineBreakStrategy extends ActionHandleStrategy {
|
|
|
4034
4113
|
if (nodesSplitIndex > -1) {
|
|
4035
4114
|
const beforeNodes = target.children.slice(0, nodesSplitIndex);
|
|
4036
4115
|
const afterNodes = target.children.slice(nodesSplitIndex + 1);
|
|
4037
|
-
if (
|
|
4038
|
-
|
|
4116
|
+
if (splitNode.isContentEditable()) {
|
|
4117
|
+
if (beforeText) {
|
|
4118
|
+
beforeNodes.push(splitNode.cloneWithText(beforeText));
|
|
4119
|
+
}
|
|
4120
|
+
if (afterText) {
|
|
4121
|
+
afterNodes.unshift(splitNode.cloneWithText(afterText));
|
|
4122
|
+
}
|
|
4039
4123
|
}
|
|
4040
|
-
|
|
4041
|
-
afterNodes.unshift(splitNode
|
|
4124
|
+
else {
|
|
4125
|
+
startOffsetOfNode > 0 ? beforeNodes.push(splitNode) : afterNodes.unshift(splitNode);
|
|
4042
4126
|
}
|
|
4043
4127
|
this.mergeLineBreakNodes(beforeNodes, lineBreakNode, afterNodes, target);
|
|
4044
4128
|
}
|
|
@@ -4055,7 +4139,8 @@ class BlockInsertLineBreakStrategy extends ActionHandleStrategy {
|
|
|
4055
4139
|
*/
|
|
4056
4140
|
mergeLineBreakNodes(beforeNodes, lineBreakNode, afterNodes, target) {
|
|
4057
4141
|
if (afterNodes.length === 0 || (afterNodes[0] && afterNodes[0].text === '')) {
|
|
4058
|
-
|
|
4142
|
+
const lastBeforeNode = beforeNodes[beforeNodes.length - 1];
|
|
4143
|
+
afterNodes.push(new RTETextNode(generateUUID(), '\n', target, lastBeforeNode && new Map(lastBeforeNode.annotationMap)));
|
|
4059
4144
|
}
|
|
4060
4145
|
target.apply(new ReplaceChildNodesAction([...beforeNodes, lineBreakNode, ...afterNodes]));
|
|
4061
4146
|
}
|
|
@@ -4978,7 +5063,7 @@ CodeBlockNodeFilterStylesStrategy.STYLES = {
|
|
|
4978
5063
|
boxSizing: 'border-box',
|
|
4979
5064
|
color: 'rgba(var(--v-text-primary, 32, 54, 69, 1))',
|
|
4980
5065
|
textAlign: 'left',
|
|
4981
|
-
fontFamily: '
|
|
5066
|
+
fontFamily: "'Roboto Mono'",
|
|
4982
5067
|
fontWeight: '400',
|
|
4983
5068
|
lineHeight: '22px',
|
|
4984
5069
|
fontSize: '16px',
|
|
@@ -5230,4 +5315,4 @@ class RTECodeBlock extends RTEBlock {
|
|
|
5230
5315
|
RTECodeBlock.CODE_BLOCK_PLACEHOLDER_CLASS_NAME = 'code-block-placeholder-element';
|
|
5231
5316
|
RTECodeBlock.dtoName = 'RTECodeBlock';
|
|
5232
5317
|
|
|
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 };
|
|
5318
|
+
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-e12588fe.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-e999837f.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-f3f66c15.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-e12588fe.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-ec5e8628.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-ec5e8628.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-ced96b0b.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-b680e922.js';
|
|
7
7
|
import { B as BorderStyle } from './ui-93922c59.js';
|
|
8
8
|
|
|
9
9
|
/**
|
package/dist/esm/{element-appender-slimmer-e41120ee.js → element-appender-slimmer-7fcb944b.js}
RENAMED
|
@@ -4,8 +4,8 @@ import { I as InternalVegaZIndexManager } from './internal-vega-z-index-manager-
|
|
|
4
4
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
5
5
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-e24d36c5.js';
|
|
6
6
|
import { A as Alignments, P as Placements } from './ui-93922c59.js';
|
|
7
|
-
import { J as isTranslocationType, i as isNonNullable, a9 as isEATriggerStrategy } from './type-guard-
|
|
8
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
7
|
+
import { J as isTranslocationType, i as isNonNullable, a9 as isEATriggerStrategy } from './type-guard-ec5e8628.js';
|
|
8
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-ced96b0b.js';
|
|
9
9
|
import { t as tryGetDocument } from './try-get-document-bef0f526.js';
|
|
10
10
|
import { F as FeatureFlag } from './feature-flag-controller-3fd04ea9.js';
|
|
11
11
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
@@ -1341,9 +1341,12 @@ class ElementAppender {
|
|
|
1341
1341
|
}
|
|
1342
1342
|
/**
|
|
1343
1343
|
* Update position while window scroll.
|
|
1344
|
+
*
|
|
1345
|
+
* @param {boolean} forceAdjust - When true, recalculates position regardless of position strategy.
|
|
1346
|
+
* Used for inner-container scroll and shadow-root scroll where the body formula does not self-correct.
|
|
1344
1347
|
*/
|
|
1345
|
-
onScroll() {
|
|
1346
|
-
if (this.showConfig.isScreenPosition) {
|
|
1348
|
+
onScroll(forceAdjust = false) {
|
|
1349
|
+
if (this.showConfig.isScreenPosition || forceAdjust) {
|
|
1347
1350
|
this.adjustPosition(true);
|
|
1348
1351
|
}
|
|
1349
1352
|
}
|
|
@@ -1851,12 +1854,18 @@ class ElementAppenderSlimmer extends VegaSlimmer {
|
|
|
1851
1854
|
this.executeTriggerStrategy(triggerStrategy, e, 'click-outside');
|
|
1852
1855
|
}
|
|
1853
1856
|
};
|
|
1854
|
-
/* istanbul ignore next */
|
|
1855
1857
|
/* Listen global scroll event */
|
|
1856
|
-
this.globalScrollHandler = () => {
|
|
1858
|
+
this.globalScrollHandler = (e) => {
|
|
1857
1859
|
var _a;
|
|
1858
|
-
if (this.showConfig && this.
|
|
1859
|
-
|
|
1860
|
+
if (this.showConfig && this.isShowing()) {
|
|
1861
|
+
// Shadow-root scroll (Observer callback — e is not a DOM Event) and
|
|
1862
|
+
// inner-container DOM scroll (e.target !== tryGetDocument()) both need forced
|
|
1863
|
+
// recalculation because the body-position formula does not self-correct
|
|
1864
|
+
// for those scroll sources.
|
|
1865
|
+
// Document-level scroll in body-position mode is handled by the formula
|
|
1866
|
+
// itself, so no forced recalculation is needed there.
|
|
1867
|
+
const forceAdjust = !(e instanceof Event) || e.target !== tryGetDocument();
|
|
1868
|
+
(_a = this.elementAppender) === null || _a === void 0 ? void 0 : _a.onScroll(forceAdjust);
|
|
1860
1869
|
}
|
|
1861
1870
|
};
|
|
1862
1871
|
/* A timer that will hide the dropdown after a certain amount of time. */
|
|
@@ -2,7 +2,7 @@ import { c as MapToComponentField, V as VegaSlimmer, I as InjectVegaSlimmer } fr
|
|
|
2
2
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
3
3
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
4
4
|
import { d as domNodeSubjectFactory, D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-ddff8662.js';
|
|
5
|
-
import { j as jqueryDelegatedStrategyController, i as internalVegaEventManager } from './internal-vega-event-manager-
|
|
5
|
+
import { j as jqueryDelegatedStrategyController, i as internalVegaEventManager } from './internal-vega-event-manager-48690e5b.js';
|
|
6
6
|
import { t as tryGetDocument } from './try-get-document-bef0f526.js';
|
|
7
7
|
|
|
8
8
|
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -8,7 +8,7 @@ import { a as isAsyncFunction, g as generateUUID } from './misc-9fdbcfbb.js';
|
|
|
8
8
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
9
9
|
import { d as domNodeSubjectFactory, D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-ddff8662.js';
|
|
10
10
|
import { i as VegaInternalFieldErrorStateChange, g as VegaInternalFormSubmit, j as VegaInternalValid } from './vega-internal-event-id-827eb1ce.js';
|
|
11
|
-
import { V as VegaInternalTranslation } from './internal-translation-controller-
|
|
11
|
+
import { V as VegaInternalTranslation } from './internal-translation-controller-16709132.js';
|
|
12
12
|
import { h as htmlSanitizer, l as labelSanitizeStrategy } from './index-3b327f29.js';
|
|
13
13
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-e24d36c5.js';
|
|
14
14
|
import { I as InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
|
package/dist/esm/{image-annotation-action-98232dc4.js → image-annotation-action-b3b6c308.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h } from './index-090d31ca.js';
|
|
2
2
|
import { V as VegaInternalIconManager } from './internal-icon-manager-e7c57096.js';
|
|
3
3
|
import { c as MapToComponentField, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
4
|
-
import { A as ActionHandleStrategyRegistry, _ as RTE_TEXT_COLORS, R as RTETextNode, ah as TextColorAnnotationAction, N as NodeAnnotationTypeEnum, j as AnnotationAction } from './code-block-
|
|
4
|
+
import { A as ActionHandleStrategyRegistry, _ as RTE_TEXT_COLORS, R as RTETextNode, ah as TextColorAnnotationAction, N as NodeAnnotationTypeEnum, j as AnnotationAction } from './code-block-e12588fe.js';
|
|
5
5
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-ddff8662.js';
|
|
6
|
-
import { a as VegaClick, c as VegaPopoverShow, b as VegaPopoverHide, d as VegaChange } from './vega-event-id-
|
|
6
|
+
import { a as VegaClick, c as VegaPopoverShow, b as VegaPopoverHide, d as VegaChange } from './vega-event-id-270fe47e.js';
|
|
7
7
|
import { a as VegaDarkModeStyleController } from './dark-mode-style-controller-ca5afd2d.js';
|
|
8
|
-
import { g as ImageAnnotation } from './content-state-
|
|
8
|
+
import { g as ImageAnnotation } from './content-state-8032467a.js';
|
|
9
9
|
|
|
10
10
|
const text = {
|
|
11
11
|
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M64 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V80C0 53.5 21.5 32 48 32H224 400c26.5 0 48 21.5 48 48v48c0 17.7-14.3 32-32 32s-32-14.3-32-32V96H256l0 320h48c17.7 0 32 14.3 32 32s-14.3 32-32 32H144c-17.7 0-32-14.3-32-32s14.3-32 32-32h48l0-320H64z"/></svg>`,
|
|
@@ -171,7 +171,7 @@ class TextColorToolbarButtonSlimmer extends VisualModeToolbarButtonSlimmer {
|
|
|
171
171
|
this.popoverShow = false;
|
|
172
172
|
}
|
|
173
173
|
renderBtnWrapper(renderBtn) {
|
|
174
|
-
return (h("vega-popover", { placement: "bottom", alignment: "center", ref: (ref) => {
|
|
174
|
+
return (h("vega-popover", { placement: "bottom", alignment: "center", isScreenPosition: true, ref: (ref) => {
|
|
175
175
|
this.popoverRef = ref;
|
|
176
176
|
DomNodeSubjectObserverFactory.addUniqueObserverToNode(ref, VegaPopoverShow, this.handlePopoverShowChange.bind(this));
|
|
177
177
|
DomNodeSubjectObserverFactory.addUniqueObserverToNode(ref, VegaPopoverHide, this.handlePopoverHideChange.bind(this));
|