@globalpayments/vega 2.47.1 → 2.49.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-fdf98585.js → app-globals-e17dedba.js} +3 -3
- package/dist/cjs/{content-state-b1ec39e3.js → content-state-6a48bcb5.js} +240 -5
- package/dist/cjs/{design-token-0c22ffa8.js → design-token-6e2c52f1.js} +1 -1
- package/dist/cjs/{element-appender-slimmer-b3109dd1.js → element-appender-slimmer-9fb99abd.js} +2 -2
- package/dist/cjs/{form-field-controller-slimmer-2432e295.js → form-field-controller-slimmer-527c25a0.js} +2 -2
- package/dist/cjs/{image-annotation-action-becd6f24.js → image-annotation-action-9c2b9c8e.js} +1 -1
- package/dist/cjs/{index-ec9a1f36.js → index-c4dec3aa.js} +1 -1
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/{inject-keyboard-manager-d1eac696.js → inject-keyboard-manager-b301e887.js} +1 -1
- package/dist/cjs/{keyboard-manager-97d0ddfa.js → keyboard-manager-2ccf4b16.js} +25 -5
- package/dist/cjs/{keyboard-manager-slimmer-23ce5dcf.js → keyboard-manager-slimmer-900cf2f5.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{min-number-rule-5bcccc8f.js → min-number-rule-965fc43d.js} +2 -2
- package/dist/cjs/{public-rules-3c2a69b4.js → public-rules-10ec636d.js} +3 -3
- package/dist/cjs/{responsive-format-facade-e48962dd.js → responsive-format-facade-9be0a851.js} +1 -1
- package/dist/cjs/{rich-text-editor-required-rule-f08f5891.js → rich-text-editor-required-rule-5faded94.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-56a2401f.js → string-input-formatter-slimmer-50322824.js} +2 -2
- package/dist/cjs/{style-formatter-48ef74d4.js → style-formatter-5b95a2a6.js} +1 -1
- package/dist/cjs/{sub-state-notify-slimmer-b16c9094.js → sub-state-notify-slimmer-7f437b19.js} +1 -1
- package/dist/cjs/{sub-state-observer-slimmer-1b6de09f.js → sub-state-observer-slimmer-e90362cd.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +4 -4
- package/dist/cjs/vega-app-header-button.cjs.entry.js +4 -4
- package/dist/cjs/vega-box.cjs.entry.js +5 -5
- package/dist/cjs/vega-button-circle.cjs.entry.js +4 -4
- package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-button.cjs.entry.js +3 -3
- package/dist/cjs/vega-calendar_3.cjs.entry.js +3 -3
- package/dist/cjs/vega-card.cjs.entry.js +4 -4
- package/dist/cjs/vega-carousel.cjs.entry.js +3 -3
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-chip.cjs.entry.js +4 -4
- package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
- package/dist/cjs/vega-combo-box.cjs.entry.js +5 -5
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +10 -10
- package/dist/cjs/vega-dialog_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-divider.cjs.entry.js +4 -4
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +8 -8
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-file-uploader.cjs.entry.js +3 -3
- package/dist/cjs/vega-flag-icon.cjs.entry.js +4 -4
- package/dist/cjs/vega-flex.cjs.entry.js +5 -5
- package/dist/cjs/vega-font.cjs.entry.js +4 -4
- package/dist/cjs/vega-form.cjs.entry.js +4 -4
- package/dist/cjs/vega-grid.cjs.entry.js +4 -4
- package/dist/cjs/vega-icon.cjs.entry.js +4 -4
- package/dist/cjs/vega-image-uploader.cjs.entry.js +16 -7
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-numeric.cjs.entry.js +11 -8
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-range.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-select.cjs.entry.js +5 -5
- package/dist/cjs/vega-input.cjs.entry.js +8 -8
- package/dist/cjs/{vega-internal-event-id-dc866d43.js → vega-internal-event-id-bfea9b93.js} +4 -0
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +447 -194
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination.cjs.entry.js +3 -3
- package/dist/cjs/vega-popover_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-radio_2.cjs.entry.js +8 -5
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +19 -13
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +480 -196
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +5 -5
- package/dist/cjs/vega-signature-capture.cjs.entry.js +6 -6
- package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +55 -19
- package/dist/cjs/vega-table_8.cjs.entry.js +5 -5
- package/dist/cjs/vega-textarea.cjs.entry.js +3 -3
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +10 -4
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +11 -11
- package/dist/cjs/vega.cjs.js +5 -5
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-actions-renderer.js +4 -1
- package/dist/collection/components/vega-image-uploader/vega-image-uploader.js +11 -1
- package/dist/collection/components/vega-input/vega-input.js +4 -4
- package/dist/collection/components/vega-nav/slimmers/vega-left-nav-group-hierarchy-controller.js +31 -0
- package/dist/collection/components/vega-nav/vega-left-nav/test/vega-left-nav-mock-data.js +147 -0
- package/dist/collection/components/vega-nav/vega-left-nav/vega-left-nav.js +42 -8
- package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-initialize-selected-controller.js +56 -0
- package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-link-click-controller.js +70 -0
- package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-open-state-controller.js +47 -0
- package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-other-groups-click-controller.js +60 -0
- package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/renderers/vega-left-nav-group-renderer.js +10 -9
- package/dist/collection/components/vega-nav/vega-left-nav-group/vega-left-nav-group.js +21 -6
- package/dist/collection/components/vega-nav/vega-left-nav-link/slimmers/controllers/vega-left-nav-link-controller.js +21 -0
- package/dist/collection/components/vega-nav/vega-left-nav-link/slimmers/renderers/vega-left-nav-link-renderer.js +13 -1
- package/dist/collection/components/vega-nav/vega-left-nav-link/vega-left-nav-link.js +5 -0
- package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.css +3 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/bold-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/code-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/image-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/indent-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/italic-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +7 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/selection-range-annotation.js +8 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-color-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-style-annotation.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/underline-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +8 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +25 -1
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +47 -2
- package/dist/collection/components/vega-rich-text-editor/dto/editor-state.js +36 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +8 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +7 -1
- package/dist/collection/components/vega-rich-text-editor/dto/range.js +8 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.js +7 -1
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/selection-state.js +17 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.js +15 -5
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-block-to-rte-text-block-strategy.js +16 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/vega-image-to-rte-image-block-strategy.js +18 -15
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/history-controller.js +137 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +54 -15
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +13 -1
- package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +116 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +5 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/slimmers/renderers/vega-rich-text-image-editor-renderer.js +4 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/vega-rich-text-image-editor.js +2 -1
- package/dist/collection/components/vega-stepper/vega-stepper.js +2 -2
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-pages-controller.js +22 -12
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-renderer.js +6 -2
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.js +20 -4
- package/dist/collection/components/vega-tab-group/vega-tab-group.css +16 -0
- package/dist/collection/components/vega-tab-group/vega-tab-group.js +32 -0
- package/dist/collection/components/vega-toggle-switch/vega-toggle-switch.js +8 -2
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +2 -0
- package/dist/collection/helpers/keyboard/keyboard-manager.js +25 -5
- package/dist/collection/helpers/keyboard/test/keyboard-manager.test.js +204 -105
- package/dist/collection/helpers/validator/rules/max-number-rule.js +1 -1
- package/dist/collection/helpers/validator/rules/min-number-rule.js +1 -1
- package/dist/collection/helpers/validator/test/rules/max-number-rule.test.js +2 -2
- package/dist/collection/helpers/validator/test/rules/min-number-rule.test.js +2 -2
- package/dist/esm/{app-globals-53b6125a.js → app-globals-b7b43a4e.js} +3 -3
- package/dist/esm/{content-state-7437e069.js → content-state-dbc9f635.js} +240 -5
- package/dist/esm/{design-token-fb43f78a.js → design-token-e263e6a2.js} +1 -1
- package/dist/esm/{element-appender-slimmer-0a0b20e9.js → element-appender-slimmer-55d63b1f.js} +2 -2
- package/dist/esm/{form-field-controller-slimmer-2978abd4.js → form-field-controller-slimmer-e7dc3db1.js} +2 -2
- package/dist/esm/{image-annotation-action-51248df9.js → image-annotation-action-1aa938ab.js} +1 -1
- package/dist/esm/{index-96374234.js → index-4aa167d6.js} +1 -1
- package/dist/esm/index.js +6 -6
- package/dist/esm/{inject-keyboard-manager-ab0bfb8b.js → inject-keyboard-manager-f513be4a.js} +1 -1
- package/dist/esm/{keyboard-manager-8c4ef91b.js → keyboard-manager-262be5ce.js} +25 -5
- package/dist/esm/{keyboard-manager-slimmer-6f5cb52a.js → keyboard-manager-slimmer-42bf9773.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{min-number-rule-a6082418.js → min-number-rule-86421853.js} +2 -2
- package/dist/esm/{public-rules-cfc196c9.js → public-rules-5cf6aa95.js} +3 -3
- package/dist/esm/{responsive-format-facade-ae799f25.js → responsive-format-facade-bc2f8ad3.js} +1 -1
- package/dist/esm/{rich-text-editor-required-rule-baf61553.js → rich-text-editor-required-rule-6a7cd3ee.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-8c7987ac.js → string-input-formatter-slimmer-c61f82d6.js} +2 -2
- package/dist/esm/{style-formatter-bf71b8e7.js → style-formatter-0f221459.js} +1 -1
- package/dist/esm/{sub-state-notify-slimmer-2216c7dc.js → sub-state-notify-slimmer-4e3cf09d.js} +1 -1
- package/dist/esm/{sub-state-observer-slimmer-da938c88.js → sub-state-observer-slimmer-be7a6ce3.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +4 -4
- package/dist/esm/vega-app-header-button.entry.js +4 -4
- package/dist/esm/vega-box.entry.js +5 -5
- package/dist/esm/vega-button-circle.entry.js +4 -4
- package/dist/esm/vega-button-group_2.entry.js +3 -3
- package/dist/esm/vega-button.entry.js +3 -3
- package/dist/esm/vega-calendar_3.entry.js +3 -3
- package/dist/esm/vega-card.entry.js +4 -4
- package/dist/esm/vega-carousel.entry.js +3 -3
- package/dist/esm/vega-checkbox_2.entry.js +3 -3
- package/dist/esm/vega-chip.entry.js +4 -4
- package/dist/esm/vega-color-picker.entry.js +3 -3
- package/dist/esm/vega-combo-box.entry.js +5 -5
- package/dist/esm/vega-date-picker_2.entry.js +10 -10
- package/dist/esm/vega-dialog_2.entry.js +4 -4
- package/dist/esm/vega-divider.entry.js +4 -4
- package/dist/esm/vega-dropdown_5.entry.js +8 -8
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-file-uploader.entry.js +3 -3
- package/dist/esm/vega-flag-icon.entry.js +4 -4
- package/dist/esm/vega-flex.entry.js +5 -5
- package/dist/esm/vega-font.entry.js +4 -4
- package/dist/esm/vega-form.entry.js +4 -4
- package/dist/esm/vega-grid.entry.js +4 -4
- package/dist/esm/vega-icon.entry.js +4 -4
- package/dist/esm/vega-image-uploader.entry.js +16 -7
- package/dist/esm/vega-input-credit-card.entry.js +3 -3
- package/dist/esm/vega-input-numeric.entry.js +11 -8
- package/dist/esm/vega-input-phone-number.entry.js +3 -3
- package/dist/esm/vega-input-range.entry.js +3 -3
- package/dist/esm/vega-input-select.entry.js +5 -5
- package/dist/esm/vega-input.entry.js +8 -8
- package/dist/esm/{vega-internal-event-id-7d1ff289.js → vega-internal-event-id-85ad403f.js} +3 -1
- package/dist/esm/vega-left-nav_5.entry.js +447 -194
- package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +1 -1
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +1 -1
- package/dist/esm/vega-pagination.entry.js +3 -3
- package/dist/esm/vega-popover_2.entry.js +11 -11
- package/dist/esm/vega-radio_2.entry.js +8 -5
- package/dist/esm/vega-rich-text-content.entry.js +19 -13
- package/dist/esm/vega-rich-text-editor_4.entry.js +480 -196
- package/dist/esm/vega-selection-chip_2.entry.js +6 -6
- package/dist/esm/vega-selection-tile_2.entry.js +4 -4
- package/dist/esm/vega-sidenav_3.entry.js +5 -5
- package/dist/esm/vega-signature-capture.entry.js +6 -6
- package/dist/esm/vega-stepper.entry.js +6 -6
- package/dist/esm/vega-tab-group_2.entry.js +55 -19
- package/dist/esm/vega-table_8.entry.js +5 -5
- package/dist/esm/vega-textarea.entry.js +3 -3
- package/dist/esm/vega-time-picker_2.entry.js +8 -8
- package/dist/esm/vega-toggle-switch.entry.js +10 -4
- package/dist/esm/vega-tooltip_2.entry.js +11 -11
- package/dist/esm/vega.js +5 -5
- package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-actions-renderer.d.ts +1 -0
- package/dist/types/components/vega-image-uploader/vega-image-uploader.d.ts +3 -0
- package/dist/types/components/vega-input/vega-input.d.ts +2 -2
- package/dist/types/components/vega-nav/interface.d.ts +11 -0
- package/dist/types/components/vega-nav/slimmers/vega-left-nav-group-hierarchy-controller.d.ts +15 -0
- package/dist/types/components/vega-nav/vega-left-nav/test/vega-left-nav-mock-data.d.ts +4 -0
- package/dist/types/components/vega-nav/vega-left-nav/vega-left-nav.d.ts +21 -4
- package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-initialize-selected-controller.d.ts +20 -0
- package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-link-click-controller.d.ts +25 -0
- package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-open-state-controller.d.ts +27 -0
- package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-other-groups-click-controller.d.ts +17 -0
- package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/renderers/vega-left-nav-group-renderer.d.ts +2 -1
- package/dist/types/components/vega-nav/vega-left-nav-group/vega-left-nav-group.d.ts +12 -5
- package/dist/types/components/vega-nav/vega-left-nav-link/slimmers/controllers/vega-left-nav-link-controller.d.ts +5 -0
- package/dist/types/components/vega-nav/vega-left-nav-link/slimmers/renderers/vega-left-nav-link-renderer.d.ts +2 -0
- package/dist/types/components/vega-nav/vega-left-nav-link/vega-left-nav-link.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/bold-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/code-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/image-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/indent-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/italic-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/link-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/link-group-annotation.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/node-annotation.abstract.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/selection-range-annotation.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/text-color-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/text-style-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/underline-annotation.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +9 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +19 -1
- package/dist/types/components/vega-rich-text-editor/dto/editor-state.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +9 -1
- package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/range.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/dto/selection-state.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +7 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy.abstract.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/history-controller.d.ts +54 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +14 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/value-controller.d.ts +4 -1
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +2 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-pages-controller.d.ts +1 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-renderer.d.ts +1 -0
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/renderers/vega-tab-group-tab-list-renderer.d.ts +3 -0
- package/dist/types/components/vega-tab-group/types.d.ts +2 -0
- package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +7 -1
- package/dist/types/components/vega-toggle-switch/vega-toggle-switch.d.ts +1 -0
- package/dist/types/components.d.ts +26 -14
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +2 -0
- package/dist/types/helpers/keyboard/keyboard-manager.d.ts +11 -1
- package/dist/types/types/components.type.d.ts +2 -1
- package/dist/types/types/ui.type.d.ts +1 -1
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-df44a712.entry.js → p-01fd343e.entry.js} +1 -1
- package/dist/vega/{p-50a076d0.entry.js → p-0a18f5f6.entry.js} +1 -1
- package/dist/vega/{p-7bc3a42b.js → p-1abe125f.js} +1 -1
- package/dist/vega/{p-4b541ce8.entry.js → p-2198de3e.entry.js} +1 -1
- package/dist/vega/{p-0073c3de.entry.js → p-24e0cdcc.entry.js} +1 -1
- package/dist/vega/{p-4f7f93ef.entry.js → p-2565cb0c.entry.js} +1 -1
- package/dist/vega/p-26e4221c.entry.js +1 -0
- package/dist/vega/{p-1c08e94a.entry.js → p-27e3825f.entry.js} +1 -1
- package/dist/vega/{p-aa109e80.entry.js → p-2bd64faf.entry.js} +1 -1
- package/dist/vega/{p-ab26cad6.js → p-2da83c2a.js} +1 -1
- package/dist/vega/{p-410755ca.entry.js → p-2fadef27.entry.js} +1 -1
- package/dist/vega/{p-01b4d6ba.entry.js → p-33ffaa71.entry.js} +1 -1
- package/dist/vega/{p-343b4522.entry.js → p-34a70d18.entry.js} +1 -1
- package/dist/vega/{p-f9b07b5e.entry.js → p-353d32c0.entry.js} +1 -1
- package/dist/vega/{p-d6d9c300.entry.js → p-3aa244d4.entry.js} +1 -1
- package/dist/vega/p-429616af.entry.js +1 -0
- package/dist/vega/p-44b0a005.js +1 -0
- package/dist/vega/{p-e1a06741.entry.js → p-472727a4.entry.js} +1 -1
- package/dist/vega/p-4e167a8c.js +1 -0
- package/dist/vega/p-4e68dfd9.js +1 -0
- package/dist/vega/p-4e76904e.entry.js +1 -0
- package/dist/vega/{p-8c32ff75.entry.js → p-4fa94b35.entry.js} +1 -1
- package/dist/vega/{p-b64d5c3a.entry.js → p-52e17867.entry.js} +1 -1
- package/dist/vega/p-56a0b13d.js +1 -0
- package/dist/vega/{p-1b731247.entry.js → p-57cdacb1.entry.js} +1 -1
- package/dist/vega/{p-bcb43c54.entry.js → p-57e813f2.entry.js} +1 -1
- package/dist/vega/{p-b06e5916.entry.js → p-58b8c06b.entry.js} +1 -1
- package/dist/vega/{p-bd5ca7cc.entry.js → p-59ccf915.entry.js} +1 -1
- package/dist/vega/{p-324dd09a.entry.js → p-5a8f129f.entry.js} +1 -1
- package/dist/vega/p-5cbadf95.entry.js +1 -0
- package/dist/vega/{p-b2643e88.js → p-5e3a15a1.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-4b1a7d31.entry.js → p-63414091.entry.js} +1 -1
- package/dist/vega/{p-0b56725e.entry.js → p-6aa569e5.entry.js} +1 -1
- package/dist/vega/{p-b9f48611.js → p-6b75fe39.js} +1 -1
- package/dist/vega/{p-69cc3fa2.js → p-6cabdb36.js} +1 -1
- package/dist/vega/{p-bab6ca81.js → p-6d7d923b.js} +1 -1
- package/dist/vega/{p-b6caa1e2.entry.js → p-6ec8a9d8.entry.js} +1 -1
- package/dist/vega/{p-d7642125.js → p-72ecfd40.js} +1 -1
- package/dist/vega/p-7db32dc0.entry.js +1 -0
- package/dist/vega/{p-f0bc8f6d.js → p-7f6702f7.js} +1 -1
- package/dist/vega/{p-c706de06.entry.js → p-84aac4b1.entry.js} +1 -1
- package/dist/vega/{p-213752bd.js → p-88c9efbb.js} +1 -1
- package/dist/vega/{p-b65de502.entry.js → p-8aec8dac.entry.js} +1 -1
- package/dist/vega/{p-1e2886b5.js → p-8afa2115.js} +1 -1
- package/dist/vega/p-8bc4c015.entry.js +1 -0
- package/dist/vega/p-96b4c0cc.entry.js +1 -0
- package/dist/vega/p-a8b681ed.entry.js +1 -0
- package/dist/vega/{p-b4dfa967.entry.js → p-ac82ca73.entry.js} +1 -1
- package/dist/vega/{p-c86a4896.entry.js → p-ba6c7f00.entry.js} +1 -1
- package/dist/vega/{p-2c1c88c0.entry.js → p-be40684b.entry.js} +1 -1
- package/dist/vega/p-bf1894ec.js +1 -0
- package/dist/vega/{p-79cc1f41.entry.js → p-c1e1adf9.entry.js} +1 -1
- package/dist/vega/p-c5f8b3a3.entry.js +1 -0
- package/dist/vega/p-c754b32c.js +1 -0
- package/dist/vega/{p-d4a61b1d.entry.js → p-c96effa5.entry.js} +1 -1
- package/dist/vega/{p-d6c37085.entry.js → p-ca34443a.entry.js} +1 -1
- package/dist/vega/{p-96410d71.entry.js → p-cb637815.entry.js} +1 -1
- package/dist/vega/{p-0523efe8.entry.js → p-ccdd49be.entry.js} +1 -1
- package/dist/vega/p-cd205d96.js +1 -0
- package/dist/vega/{p-a1bdf9a0.entry.js → p-ce70a54a.entry.js} +1 -1
- package/dist/vega/{p-e5695801.entry.js → p-d6591d70.entry.js} +1 -1
- package/dist/vega/{p-80c86d79.js → p-d7937711.js} +1 -1
- package/dist/vega/{p-59e9f57a.js → p-dbc82247.js} +1 -1
- package/dist/vega/{p-d6620b42.entry.js → p-e29da13d.entry.js} +1 -1
- package/dist/vega/p-e719b1a9.entry.js +1 -0
- package/dist/vega/{p-4f54ba1f.entry.js → p-f7423232.entry.js} +1 -1
- package/dist/vega/{p-611282a7.entry.js → p-fb853d5f.entry.js} +1 -1
- package/dist/vega/{p-8f80b321.entry.js → p-fd018044.entry.js} +1 -1
- package/dist/vega/p-fda0c179.entry.js +1 -0
- package/dist/vega/p-ff41dc6a.entry.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-controller.js +0 -30
- package/dist/collection/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-sibling-observer-controller.js +0 -48
- package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-controller.d.ts +0 -11
- package/dist/types/components/vega-nav/vega-left-nav-group/slimmers/controllers/vega-left-nav-group-sibling-observer-controller.d.ts +0 -18
- package/dist/vega/p-08679cd9.entry.js +0 -1
- package/dist/vega/p-12d60f5f.js +0 -1
- package/dist/vega/p-214aa52e.js +0 -1
- package/dist/vega/p-2863aa51.entry.js +0 -1
- package/dist/vega/p-2e65e175.js +0 -1
- package/dist/vega/p-31de5cb4.entry.js +0 -1
- package/dist/vega/p-3d3cd394.js +0 -1
- package/dist/vega/p-3e285c35.js +0 -1
- package/dist/vega/p-7594875a.entry.js +0 -1
- package/dist/vega/p-8af3fc79.entry.js +0 -1
- package/dist/vega/p-8ee31f00.entry.js +0 -1
- package/dist/vega/p-952913fc.entry.js +0 -1
- package/dist/vega/p-b07add9c.entry.js +0 -1
- package/dist/vega/p-b9051ad2.js +0 -1
- package/dist/vega/p-c2321aa8.entry.js +0 -1
- package/dist/vega/p-ceb9f5aa.entry.js +0 -1
- package/dist/vega/p-db7a6878.entry.js +0 -1
- package/dist/vega/p-e59ff7d1.entry.js +0 -1
- package/dist/vega/p-f2373487.js +0 -1
|
@@ -21,6 +21,10 @@ export declare class LinkAnnotation extends NodeAnnotation {
|
|
|
21
21
|
* @returns {Record<'link', VegaRTELink>} JSON representation of the annotation
|
|
22
22
|
*/
|
|
23
23
|
toJSON(): Record<'link', VegaRTELink>;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
clone(): LinkAnnotation;
|
|
24
28
|
/**
|
|
25
29
|
* Verify whether two link annotation is same or not
|
|
26
30
|
*
|
package/dist/types/components/vega-rich-text-editor/dto/annotations/selection-range-annotation.d.ts
CHANGED
|
@@ -6,4 +6,10 @@ export declare class SelectionRangeAnnotation extends Annotation {
|
|
|
6
6
|
readonly type: InternalAnnotationTypeEnum;
|
|
7
7
|
range: Range;
|
|
8
8
|
constructor(range: Range);
|
|
9
|
+
/**
|
|
10
|
+
* Clone the selection range annotation
|
|
11
|
+
*
|
|
12
|
+
* @returns {SelectionRangeAnnotation} A cloned instance of the selection range annotation
|
|
13
|
+
*/
|
|
14
|
+
clone(): SelectionRangeAnnotation;
|
|
9
15
|
}
|
package/dist/types/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export declare class StrikethroughAnnotation extends NodeAnnotation {
|
|
|
21
21
|
* @returns {Record<string, unknown>} JSON representation of the annotation
|
|
22
22
|
*/
|
|
23
23
|
toJSON(): Record<string, unknown>;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
clone(): StrikethroughAnnotation;
|
|
24
28
|
/**
|
|
25
29
|
* Generate the class for the annotation
|
|
26
30
|
*
|
package/dist/types/components/vega-rich-text-editor/dto/annotations/text-color-annotation.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export declare class TextColorAnnotation extends NodeAnnotation {
|
|
|
21
21
|
* @returns {Record<string, unknown>} JSON representation of the annotation
|
|
22
22
|
*/
|
|
23
23
|
toJSON(): Record<string, unknown>;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
clone(): TextColorAnnotation;
|
|
24
28
|
/**
|
|
25
29
|
* Generate the class for the annotation
|
|
26
30
|
*
|
package/dist/types/components/vega-rich-text-editor/dto/annotations/text-style-annotation.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export declare class TextStyleAnnotation extends BlockAnnotation {
|
|
|
21
21
|
* @returns {Nullable<Record<string, unknown>>} JSON representation of the annotation
|
|
22
22
|
*/
|
|
23
23
|
toJSON(): Nullable<Record<string, unknown>>;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
clone(): TextStyleAnnotation;
|
|
24
28
|
/**
|
|
25
29
|
* Render the styles by block type
|
|
26
30
|
*
|
package/dist/types/components/vega-rich-text-editor/dto/annotations/underline-annotation.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export declare class UnderlineAnnotation extends NodeAnnotation {
|
|
|
21
21
|
* @returns {Record<string, unknown>} JSON representation of the annotation
|
|
22
22
|
*/
|
|
23
23
|
toJSON(): Record<string, unknown>;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
clone(): UnderlineAnnotation;
|
|
24
28
|
/**
|
|
25
29
|
* Generate the class for the annotation
|
|
26
30
|
*
|
|
@@ -7,12 +7,13 @@ import { VegaRTEContent } from '../content-state';
|
|
|
7
7
|
import { InternalAnnotationTypeEnum } from '../annotations/annotation.abstract';
|
|
8
8
|
import { LinkGroupAnnotation } from '../annotations/link-group-annotation';
|
|
9
9
|
import { RTENode } from '../nodes/node.abstract';
|
|
10
|
+
export declare type BlockAnnotations = Map<keyof typeof BlockAnnotationTypeEnum | InternalAnnotationTypeEnum.LINK_GROUP, BlockAnnotation | LinkGroupAnnotation>;
|
|
10
11
|
/**
|
|
11
12
|
* Abstract class for block
|
|
12
13
|
*/
|
|
13
14
|
export declare abstract class RTEBlock {
|
|
14
15
|
id: string;
|
|
15
|
-
annotationMap:
|
|
16
|
+
annotationMap: BlockAnnotations;
|
|
16
17
|
abstract type: RTEBlockType;
|
|
17
18
|
abstract parent: VegaRTEContent | RTEBlock;
|
|
18
19
|
protected constructor(id: string);
|
|
@@ -67,6 +68,12 @@ export declare abstract class RTEBlock {
|
|
|
67
68
|
* @param {AnnotationAction} action - Annotation action
|
|
68
69
|
*/
|
|
69
70
|
protected doAnnotationActionApply?(action: AnnotationAction): void;
|
|
71
|
+
/**
|
|
72
|
+
* clone annotations of the block
|
|
73
|
+
*
|
|
74
|
+
* @returns {BlockAnnotations} - Cloned annotations
|
|
75
|
+
*/
|
|
76
|
+
protected cloneAnnotations(): BlockAnnotations;
|
|
70
77
|
/**
|
|
71
78
|
* abstract method to be overridden in each block to verify whether the block is not empty
|
|
72
79
|
*
|
|
@@ -74,4 +81,5 @@ export declare abstract class RTEBlock {
|
|
|
74
81
|
*/
|
|
75
82
|
abstract isNotEmpty(): boolean;
|
|
76
83
|
abstract getLastNode(): RTENode;
|
|
84
|
+
abstract clone(): RTEBlock;
|
|
77
85
|
}
|
|
@@ -3,6 +3,8 @@ import { RTEListBlock } from './blocks/list-block';
|
|
|
3
3
|
import { RTETextBlock } from './blocks/text-block';
|
|
4
4
|
import { ModifyContentAction } from './actions/modify-content-action.abstract';
|
|
5
5
|
import { RTEListItemBlock } from './blocks/list-item-block';
|
|
6
|
+
import { RTENode } from './nodes/node.abstract';
|
|
7
|
+
import { Nullable } from '../../../types/general';
|
|
6
8
|
/**
|
|
7
9
|
* Class representing the content state of the rich text editor.
|
|
8
10
|
*/
|
|
@@ -25,9 +27,10 @@ export declare class VegaRTEContent {
|
|
|
25
27
|
/**
|
|
26
28
|
* Clones the content state.
|
|
27
29
|
*
|
|
30
|
+
* @param {boolean} deep - If true, performs a deep clone of the content state.
|
|
28
31
|
* @returns {VegaRTEContent} The cloned content state.
|
|
29
32
|
*/
|
|
30
|
-
clone(): VegaRTEContent;
|
|
33
|
+
clone(deep?: boolean): VegaRTEContent;
|
|
31
34
|
/**
|
|
32
35
|
* Converts the content state to a JSON array of blocks.
|
|
33
36
|
*
|
|
@@ -54,4 +57,19 @@ export declare class VegaRTEContent {
|
|
|
54
57
|
* @returns {RTEListBlock} list block dto.
|
|
55
58
|
*/
|
|
56
59
|
createList(type: ListType): RTEListBlock;
|
|
60
|
+
/**
|
|
61
|
+
* Finds a node by its ID in the content.
|
|
62
|
+
*
|
|
63
|
+
* @param {string} id - The ID of the node to find.
|
|
64
|
+
* @returns {Nullable<RTENode>} The found node or null if not found.
|
|
65
|
+
*/
|
|
66
|
+
findNodeById(id: string): Nullable<RTENode>;
|
|
67
|
+
/**
|
|
68
|
+
* Recursively searches for a node by its ID in the given blocks.
|
|
69
|
+
*
|
|
70
|
+
* @param {string} id - The ID of the node to find.
|
|
71
|
+
* @param {RTEContentBlock[]} blocks - The blocks to search within.
|
|
72
|
+
* @returns {Nullable<RTENode>} The found node or null if not found.
|
|
73
|
+
*/
|
|
74
|
+
private findNodeInBlocksById;
|
|
57
75
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { VegaRTEContent } from './content-state';
|
|
2
|
+
import { RTESelectionState } from './selection-state';
|
|
3
|
+
/**
|
|
4
|
+
* Represents the state of the RTE
|
|
5
|
+
*/
|
|
6
|
+
export declare class RTEEditorState {
|
|
7
|
+
content: VegaRTEContent;
|
|
8
|
+
selection: RTESelectionState;
|
|
9
|
+
constructor(content: VegaRTEContent, selection: RTESelectionState);
|
|
10
|
+
/**
|
|
11
|
+
* Clones the editor state, updating the content and selection based on the provided content.
|
|
12
|
+
*
|
|
13
|
+
* @returns {RTEEditorState} A new instance of RTEEditorState with the updated content and selection.
|
|
14
|
+
*/
|
|
15
|
+
clone(): RTEEditorState;
|
|
16
|
+
/**
|
|
17
|
+
* Refreshes the selection nodes in the editor state.
|
|
18
|
+
*/
|
|
19
|
+
private refreshSelectionNodes;
|
|
20
|
+
}
|
|
@@ -7,12 +7,13 @@ export declare enum NodeTypeEnum {
|
|
|
7
7
|
TEXT = "TEXT",
|
|
8
8
|
IMAGE = "IMAGE"
|
|
9
9
|
}
|
|
10
|
+
export declare type NodeAnnotations = Map<RTENodeAnnotationMapKey, RTENodeAnnotationMapValue>;
|
|
10
11
|
/**
|
|
11
12
|
* Abstract class for all nodes
|
|
12
13
|
*/
|
|
13
14
|
export declare abstract class RTENode {
|
|
14
15
|
id: string;
|
|
15
|
-
annotationMap:
|
|
16
|
+
annotationMap: NodeAnnotations;
|
|
16
17
|
abstract readonly type: NodeTypeEnum;
|
|
17
18
|
abstract parentBlock: RTEBlock;
|
|
18
19
|
protected constructor(id: string, annotationMap?: Map<RTENodeAnnotationMapKey, RTENodeAnnotationMapValue>);
|
|
@@ -47,7 +48,14 @@ export declare abstract class RTENode {
|
|
|
47
48
|
* Flush the value change
|
|
48
49
|
*/
|
|
49
50
|
protected flushChange(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Clones the annotations of the current RTETextNode.
|
|
53
|
+
*
|
|
54
|
+
* @returns {NodeAnnotations} A new Map containing cloned annotations.
|
|
55
|
+
*/
|
|
56
|
+
protected cloneAnnotations(): NodeAnnotations;
|
|
50
57
|
abstract toJSON(): VegaRTEBaseNode;
|
|
58
|
+
abstract clone(): RTENode;
|
|
51
59
|
protected abstract doAnnotationActionApply(action: AnnotationAction): void;
|
|
52
60
|
protected abstract doModifyActionApply(action: ModifyContentAction): void;
|
|
53
61
|
}
|
|
@@ -77,6 +77,12 @@ export declare class RTERange {
|
|
|
77
77
|
* @returns {RTERange} - The new RTERange instance
|
|
78
78
|
*/
|
|
79
79
|
updateRTERange(options: RTERangeOptions, nativeRange?: Range): RTERange;
|
|
80
|
+
/**
|
|
81
|
+
* Creates a new instance of the `RTERange` class with the same properties as the current instance.
|
|
82
|
+
*
|
|
83
|
+
* @returns {RTERange} A new `RTERange` instance with the same start and end containers, offsets, and nodes.
|
|
84
|
+
*/
|
|
85
|
+
clone(): RTERange;
|
|
80
86
|
/**
|
|
81
87
|
* Creates a Range object based on start and end nodes and offsets.
|
|
82
88
|
* Invoke this method to get the future range state if the range content modified.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RTERange } from './range';
|
|
2
|
+
/**
|
|
3
|
+
* Represents the state of the selection in the RTE.
|
|
4
|
+
*/
|
|
5
|
+
export declare class RTESelectionState {
|
|
6
|
+
range: RTERange;
|
|
7
|
+
constructor(range: RTERange);
|
|
8
|
+
/**
|
|
9
|
+
* Clones the selection state, updating the range nodes based on the provided content.
|
|
10
|
+
*
|
|
11
|
+
* @returns {RTESelectionState} A new instance of RTESelectionState with the updated range.
|
|
12
|
+
*/
|
|
13
|
+
clone(): RTESelectionState;
|
|
14
|
+
}
|
|
@@ -21,7 +21,10 @@ export type VegaRTETextStyleType =
|
|
|
21
21
|
| 'paragraph'
|
|
22
22
|
| 'heading-1'
|
|
23
23
|
| 'heading-2'
|
|
24
|
-
| 'heading-3'
|
|
24
|
+
| 'heading-3'
|
|
25
|
+
| 'heading-4'
|
|
26
|
+
| 'heading-5'
|
|
27
|
+
| 'heading-6';
|
|
25
28
|
|
|
26
29
|
export type VegaRTETextBlockType =
|
|
27
30
|
| 'title'
|
|
@@ -30,6 +33,9 @@ export type VegaRTETextBlockType =
|
|
|
30
33
|
| 'heading-1'
|
|
31
34
|
| 'heading-2'
|
|
32
35
|
| 'heading-3'
|
|
36
|
+
| 'heading-4'
|
|
37
|
+
| 'heading-5'
|
|
38
|
+
| 'heading-6'
|
|
33
39
|
| 'list-item';
|
|
34
40
|
|
|
35
41
|
export type VegaRTEListBlockType = 'bullet-list' | 'number-list';
|
|
@@ -42,6 +42,7 @@ export declare abstract class BlockToRTEBlockStrategyAbstract extends ElementToD
|
|
|
42
42
|
* Generate annotations map for text node element.
|
|
43
43
|
*
|
|
44
44
|
* @param {HTMLElement} element - current element.
|
|
45
|
+
* @param {VegaRTETextAnnotations} parentAnnotations - parent annotations
|
|
45
46
|
* @returns {VegaRTETextAnnotations | VegaRTECodeAnnotations} - Text node annotations.
|
|
46
47
|
*/
|
|
47
48
|
private generateTextNodeAnnotations;
|
|
@@ -26,7 +26,7 @@ export declare class ElementToDTOStrategyOutput {
|
|
|
26
26
|
/**
|
|
27
27
|
* Transform current output and children output to DTO
|
|
28
28
|
*
|
|
29
|
-
* @returns {RTEContentBlock} - DTO.
|
|
29
|
+
* @returns {Nullable<RTEContentBlock>} - DTO.
|
|
30
30
|
*/
|
|
31
|
-
toDto(): RTEContentBlock
|
|
31
|
+
toDto(): Nullable<RTEContentBlock>;
|
|
32
32
|
}
|
package/dist/types/components/vega-rich-text-editor/slimmers/controllers/history-controller.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { RTEEditorState } from '../../dto/editor-state';
|
|
2
|
+
import { VegaRichTextEditor } from '../../vega-rich-text-editor';
|
|
3
|
+
import { KeyboardManagerSlimmer } from '../../../../helpers/slimmers/keyboard-manager-slimmer';
|
|
4
|
+
/**
|
|
5
|
+
* History controller for RTE.
|
|
6
|
+
*/
|
|
7
|
+
export declare class HistoryController extends KeyboardManagerSlimmer {
|
|
8
|
+
protected host: VegaRichTextEditor['host'];
|
|
9
|
+
protected vegaRichTextEditorRenderer: VegaRichTextEditor['vegaRichTextEditorRenderer'];
|
|
10
|
+
protected valueController: VegaRichTextEditor['valueController'];
|
|
11
|
+
protected value: VegaRichTextEditor['value'];
|
|
12
|
+
protected selectionController: VegaRichTextEditor['selectionController'];
|
|
13
|
+
private redoStack;
|
|
14
|
+
private undoStack;
|
|
15
|
+
private readonly registerHistoryDelay;
|
|
16
|
+
private readonly registerHistoryDebounced;
|
|
17
|
+
constructor();
|
|
18
|
+
/**
|
|
19
|
+
* Component lifecycle - [componentDidLoad]
|
|
20
|
+
*/
|
|
21
|
+
registerInitState(): void;
|
|
22
|
+
/**
|
|
23
|
+
* Restores the previous state from the undo stack.
|
|
24
|
+
*/
|
|
25
|
+
undo(): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Restores the next state from the redo stack.
|
|
28
|
+
*/
|
|
29
|
+
redo(): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Registers history based on the editor state.
|
|
32
|
+
*
|
|
33
|
+
* @param {RTEEditorState} editorState - The state to record in history.
|
|
34
|
+
*/
|
|
35
|
+
registerHistory(editorState: RTEEditorState): void;
|
|
36
|
+
/**
|
|
37
|
+
* Internal function to register history immediately.
|
|
38
|
+
*
|
|
39
|
+
* @param {RTEEditorState} state - The state to record in history.
|
|
40
|
+
*/
|
|
41
|
+
private internalRegisterHistory;
|
|
42
|
+
/**
|
|
43
|
+
* Restores the editor state based on the provided history state.
|
|
44
|
+
*
|
|
45
|
+
* @param {RTEEditorState} state - The state to restore to.
|
|
46
|
+
*/
|
|
47
|
+
private restoreState;
|
|
48
|
+
/**
|
|
49
|
+
* Returns the keyboard shortcut options for undo/redo functionality.
|
|
50
|
+
*
|
|
51
|
+
* @returns {KeyboardEventListener[]} - An array of keyboard shortcut options.
|
|
52
|
+
*/
|
|
53
|
+
private getKeyboardShortcutOptions;
|
|
54
|
+
}
|
package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { VegaRichTextEditor } from '../../vega-rich-text-editor';
|
|
|
3
3
|
import { RTEBlock } from '../../dto/blocks/block.abstract';
|
|
4
4
|
import { RTENode } from '../../dto/nodes/node.abstract';
|
|
5
5
|
import { RTERange } from '../../dto/range';
|
|
6
|
+
import { RTESelectionState } from '../../dto/selection-state';
|
|
6
7
|
declare type SelectionStateType = {
|
|
7
8
|
startNode: Node | RTENode;
|
|
8
9
|
endNode: Node | RTENode;
|
|
@@ -21,11 +22,13 @@ export declare class SelectionController extends VegaSlimmer {
|
|
|
21
22
|
protected readonly disabled: VegaRichTextEditor['disabled'];
|
|
22
23
|
protected readonly valueController: VegaRichTextEditor['valueController'];
|
|
23
24
|
protected insertCompositionTextController: VegaRichTextEditor['insertCompositionTextController'];
|
|
25
|
+
protected readonly historyController: VegaRichTextEditor['historyController'];
|
|
24
26
|
private currentRange;
|
|
25
27
|
private updateCaretPositionTaskQueue;
|
|
26
28
|
private handleSelectionWithDebounce;
|
|
27
|
-
private
|
|
29
|
+
private pendingRestoreSelectionNodes;
|
|
28
30
|
private selectionRangeChangeObserver;
|
|
31
|
+
private selectionState;
|
|
29
32
|
/**
|
|
30
33
|
* Component lifecycle - [connectedCallback]{@link VegaRichTextEditor.connectedCallback}
|
|
31
34
|
*/
|
|
@@ -64,6 +67,12 @@ export declare class SelectionController extends VegaSlimmer {
|
|
|
64
67
|
* @returns {RTEBlock[]} Selected rich text blocks
|
|
65
68
|
*/
|
|
66
69
|
getSelectedBlocks(): RTEBlock[];
|
|
70
|
+
/**
|
|
71
|
+
* Set the selection state
|
|
72
|
+
*
|
|
73
|
+
* @param {RTESelectionState} state - The selection state to set
|
|
74
|
+
*/
|
|
75
|
+
setSelectionState(state: RTESelectionState): void;
|
|
67
76
|
/**
|
|
68
77
|
* Sets the next selection state with specified start and end nodes, offsets, push the update task to a queue
|
|
69
78
|
*
|
|
@@ -121,5 +130,9 @@ export declare class SelectionController extends VegaSlimmer {
|
|
|
121
130
|
* Register the selection range change observer
|
|
122
131
|
*/
|
|
123
132
|
private registerSelectionRangeChangeObserver;
|
|
133
|
+
/**
|
|
134
|
+
* Prepare the selection state to restore
|
|
135
|
+
*/
|
|
136
|
+
private prepareRestoreSelectionState;
|
|
124
137
|
}
|
|
125
138
|
export {};
|
package/dist/types/components/vega-rich-text-editor/slimmers/controllers/value-controller.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export declare class ValueController extends VegaSlimmer {
|
|
|
10
10
|
value: VegaRichTextEditor['value'];
|
|
11
11
|
changeEventEmitter: VegaRichTextEditor['changeEventEmitter'];
|
|
12
12
|
valueController: VegaRichTextEditor['valueController'];
|
|
13
|
+
historyController: VegaRichTextEditor['historyController'];
|
|
14
|
+
selectionController: VegaRichTextEditor['selectionController'];
|
|
13
15
|
private flushChangeObserver;
|
|
14
16
|
/**
|
|
15
17
|
* Component lifecycle - [connectedCallback]{@link VegaRichTextEditor.connectedCallback}
|
|
@@ -31,8 +33,9 @@ export declare class ValueController extends VegaSlimmer {
|
|
|
31
33
|
* Updates the value of the editor and restore the selection.
|
|
32
34
|
*
|
|
33
35
|
* @param {VegaRTEContent} newValue The new value to set.
|
|
36
|
+
* @param {boolean} recordHistory - Whether to record the change in history.
|
|
34
37
|
*/
|
|
35
|
-
flushChanges(newValue: VegaRTEContent): Promise<void>;
|
|
38
|
+
flushChanges(newValue: VegaRTEContent, recordHistory?: boolean): Promise<void>;
|
|
36
39
|
/**
|
|
37
40
|
* Determines whether the observer should accept changes.
|
|
38
41
|
*
|
|
@@ -38,6 +38,7 @@ import { TextNodeColorController } from './slimmers/controllers/text-node-color-
|
|
|
38
38
|
import { InsertCompositionTextController } from './slimmers/controllers/insert-composition-text-controller';
|
|
39
39
|
import { DeleteSelectedNodesController } from './slimmers/controllers/delete-selected-nodes-controller';
|
|
40
40
|
import { TranslationSlimmer } from '../../helpers/slimmers/translation';
|
|
41
|
+
import { HistoryController } from './slimmers/controllers/history-controller';
|
|
41
42
|
/**
|
|
42
43
|
* @vegaVersion 2.34.0
|
|
43
44
|
*/
|
|
@@ -77,6 +78,7 @@ export declare class VegaRichTextEditor {
|
|
|
77
78
|
protected changeEventPreventSlimmer: ChildNodesEventPreventSlimmer;
|
|
78
79
|
protected readonly textNodeColorController: TextNodeColorController;
|
|
79
80
|
protected readonly deleteSelectedNodesController: DeleteSelectedNodesController;
|
|
81
|
+
protected readonly historyController: HistoryController;
|
|
80
82
|
host: HTMLVegaRichTextEditorElement;
|
|
81
83
|
richTextContentEditable: boolean;
|
|
82
84
|
watchRichTextContentEditable(): void;
|
|
@@ -9,6 +9,7 @@ export declare class VegaTabGroupPagesController extends PageResizeObserverSlimm
|
|
|
9
9
|
tabWidthArray: VegaTabGroup['tabWidthArray'];
|
|
10
10
|
tabItems: VegaTabGroup['tabItems'];
|
|
11
11
|
variant: VegaTabGroup['variant'];
|
|
12
|
+
overflow: VegaTabGroup['overflow'];
|
|
12
13
|
private sliderStateController;
|
|
13
14
|
private TAB_SIDE_BUTTON_WIDTH;
|
|
14
15
|
private TAB_SIDE_BUTTON_AND_CONTENT_SPACE;
|
|
@@ -2,6 +2,7 @@ import { VegaSlimmer } from '../../../../../vega-slimmer/vega-slimmer-core';
|
|
|
2
2
|
export declare class VegaTabGroupRenderer extends VegaSlimmer {
|
|
3
3
|
private tabPages;
|
|
4
4
|
private variant;
|
|
5
|
+
private overflow;
|
|
5
6
|
private tabListRenderer;
|
|
6
7
|
private directionButtonRenderer;
|
|
7
8
|
private contentRenderer;
|
|
@@ -8,6 +8,7 @@ export declare class VegaTabGroupTabListRenderer extends VegaSlimmer {
|
|
|
8
8
|
private gap;
|
|
9
9
|
private showCloseButton;
|
|
10
10
|
private tabItems;
|
|
11
|
+
private overflow;
|
|
11
12
|
private positionRelativeTo;
|
|
12
13
|
private closeButtonRenderer;
|
|
13
14
|
private selectedTargetController;
|
|
@@ -17,6 +18,8 @@ export declare class VegaTabGroupTabListRenderer extends VegaSlimmer {
|
|
|
17
18
|
element and perform operations on it. */
|
|
18
19
|
getCarouselDomRef: () => HTMLVegaCarouselElement;
|
|
19
20
|
render(): HTMLElement;
|
|
21
|
+
private renderTabListInMenuOverflow;
|
|
22
|
+
private renderTabListInScrollOverflow;
|
|
20
23
|
private renderTabList;
|
|
21
24
|
private renderPrefixIconDom;
|
|
22
25
|
private renderTabLabelDom;
|
|
@@ -2,7 +2,7 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
import { SpacingTokenType } from '../../types/design-token.type';
|
|
3
3
|
import { VegaTabGroupRenderer } from './slimmers/vega-tab-group/renderers/vega-tab-group-renderer';
|
|
4
4
|
import { GlobalSlimmers } from '../../vega-slimmer/vega-slimmer-core';
|
|
5
|
-
import { TabConfig, TabGroupVariant } from './types';
|
|
5
|
+
import { TabConfig, TabGroupOverflowType, TabGroupVariant } from './types';
|
|
6
6
|
import { VegaTabGroupSelectedTargetController } from './slimmers/vega-tab-group/controllers/vega-tab-group-selected-target-controller';
|
|
7
7
|
import { VegaTabGroupPagesController } from './slimmers/vega-tab-group/controllers/vega-tab-group-pages-controller';
|
|
8
8
|
import { VegaTabGroupPageIndexController } from './slimmers/vega-tab-group/controllers/vega-tab-group-page-index-controller';
|
|
@@ -111,6 +111,12 @@ export declare class VegaTabGroup {
|
|
|
111
111
|
* @vegaVersion 1.39.0
|
|
112
112
|
*/
|
|
113
113
|
variant: TabGroupVariant;
|
|
114
|
+
/**
|
|
115
|
+
* Specifies the overflow navigation for many tab items within the tab group.
|
|
116
|
+
*
|
|
117
|
+
* @vegaVersion __VERSION__
|
|
118
|
+
*/
|
|
119
|
+
overflow: TabGroupOverflowType;
|
|
114
120
|
/**
|
|
115
121
|
* An event emitter notifying the click event of a tab
|
|
116
122
|
* in the tab group.
|
|
@@ -23,6 +23,7 @@ export declare class VegaToggleSwitch {
|
|
|
23
23
|
watchCheckedChange(): void;
|
|
24
24
|
/**
|
|
25
25
|
* The `value` property returns `true` when the toggle switch is checked, and `false` when it is unchecked.
|
|
26
|
+
* This property is included for form control compatibility and can be used interchangeably with the checked property.
|
|
26
27
|
*
|
|
27
28
|
* @vegaVersion 2.25.0
|
|
28
29
|
*/
|