@globalpayments/vega 2.47.0 → 2.48.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-981f7aba.js → app-globals-22798708.js} +6 -6
- package/dist/cjs/brand-switch-state-controller-slimmer-5efa1b24.js +51 -0
- package/dist/cjs/{content-state-605de6a3.js → content-state-54d94562.js} +221 -5
- package/dist/cjs/{dark-mode-state-controller-slimmer-2af3e67c.js → dark-mode-state-controller-slimmer-add5d8a8.js} +1 -1
- package/dist/cjs/{dark-mode-style-controller-c93b94d2.js → dark-mode-style-controller-4adb7fb2.js} +20 -17
- package/dist/cjs/{design-token-117a19a8.js → design-token-1abb655a.js} +1 -1
- package/dist/cjs/{element-appender-slimmer-4bdbd76d.js → element-appender-slimmer-2d4c8c18.js} +4 -4
- package/dist/cjs/{form-field-controller-slimmer-6d69c74f.js → form-field-controller-slimmer-527c25a0.js} +4 -4
- package/dist/cjs/{image-annotation-action-5e3aa73c.js → image-annotation-action-b78404b8.js} +2 -2
- package/dist/cjs/{index-ec9a1f36.js → index-c4dec3aa.js} +1 -1
- package/dist/cjs/index.cjs.js +10 -10
- 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 +9 -9
- package/dist/cjs/{min-number-rule-5bcccc8f.js → min-number-rule-965fc43d.js} +2 -2
- package/dist/cjs/{public-rules-66f53e7e.js → public-rules-c4d2df9d.js} +5 -5
- package/dist/cjs/{responsive-format-facade-3542fc47.js → responsive-format-facade-38f3763e.js} +3 -3
- package/dist/cjs/{rich-text-editor-required-rule-649ef4b4.js → rich-text-editor-required-rule-e73f2c4f.js} +1 -1
- package/dist/cjs/{static-subject-title-1d23c102.js → static-subject-title-7e7d791a.js} +2 -2
- package/dist/cjs/{string-input-formatter-slimmer-56a2401f.js → string-input-formatter-slimmer-50322824.js} +2 -2
- package/dist/cjs/{style-formatter-b735d506.js → style-formatter-ecb4d49c.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/{translation-5173d223.js → translation-212b1875.js} +1 -1
- package/dist/cjs/{translation-slimmer-e900e8d4.js → translation-slimmer-d1512c6d.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +8 -8
- package/dist/cjs/vega-app-footer.cjs.entry.js +38 -28
- package/dist/cjs/vega-app-header-button.cjs.entry.js +8 -8
- package/dist/cjs/vega-box.cjs.entry.js +9 -9
- package/dist/cjs/vega-brand-logo.cjs.entry.js +3 -3
- package/dist/cjs/vega-button-circle.cjs.entry.js +8 -8
- package/dist/cjs/vega-button-group_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-button.cjs.entry.js +7 -7
- package/dist/cjs/vega-calendar_3.cjs.entry.js +6 -6
- package/dist/cjs/vega-card.cjs.entry.js +8 -8
- package/dist/cjs/vega-carousel.cjs.entry.js +7 -7
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-chip.cjs.entry.js +8 -8
- package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/vega-combo-box.cjs.entry.js +7 -7
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +15 -15
- package/dist/cjs/vega-dialog_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-divider.cjs.entry.js +8 -8
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +14 -14
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-error.cjs.entry.js +1 -1
- package/dist/cjs/vega-file-uploader.cjs.entry.js +6 -6
- package/dist/cjs/vega-flag-icon.cjs.entry.js +8 -8
- package/dist/cjs/vega-flex.cjs.entry.js +9 -9
- package/dist/cjs/vega-font.cjs.entry.js +8 -8
- package/dist/cjs/vega-form.cjs.entry.js +6 -6
- package/dist/cjs/vega-grid.cjs.entry.js +8 -8
- package/dist/cjs/vega-icon.cjs.entry.js +8 -8
- package/dist/cjs/vega-image-uploader.cjs.entry.js +20 -11
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-numeric.cjs.entry.js +13 -10
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-range.cjs.entry.js +6 -6
- package/dist/cjs/vega-input-select.cjs.entry.js +10 -10
- package/dist/cjs/vega-input.cjs.entry.js +10 -10
- 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 +459 -198
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +7 -7
- 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 +4 -4
- package/dist/cjs/vega-pagination.cjs.entry.js +8 -8
- package/dist/cjs/vega-popover_2.cjs.entry.js +15 -15
- package/dist/cjs/vega-radio_2.cjs.entry.js +10 -7
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +14 -14
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +453 -197
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +10 -10
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +9 -9
- package/dist/cjs/vega-signature-capture.cjs.entry.js +11 -11
- package/dist/cjs/{vega-skeleton-loader-controller-8cbd7656.js → vega-skeleton-loader-controller-db868c98.js} +3 -3
- package/dist/cjs/vega-stepper.cjs.entry.js +8 -8
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-table_8.cjs.entry.js +10 -10
- package/dist/cjs/vega-textarea.cjs.entry.js +5 -5
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +13 -13
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +15 -15
- package/dist/cjs/vega.cjs.js +9 -9
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/vega-app-footer/vega-app-footer.js +42 -31
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.css +4 -2
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +3 -0
- 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/slimmers/renderers/vega-left-nav-header-renderer.js +5 -4
- 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 +50 -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-popover/vega-popover.js +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 +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/underline-annotation.js +6 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +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 +14 -0
- 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 +1 -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 +2 -2
- 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/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/vega-tab-group.js +3 -0
- package/dist/collection/components/vega-time-picker/vega-time-picker.js +3 -0
- package/dist/collection/components/vega-tooltip/vega-tooltip.js +3 -0
- package/dist/collection/constants/misc.js +2 -0
- package/dist/collection/helpers/change-manager/subject/static-subject/static-subject-title.js +1 -1
- 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/slimmers/brand-switch-state-controller-slimmer.js +46 -0
- package/dist/collection/helpers/slimmers/test/brand-switch-state-controller-slimmer.test.js +75 -0
- package/dist/collection/helpers/theme/controllers/{new-brand-style-controller.js → brand-style-controller.js} +9 -9
- package/dist/collection/helpers/theme/controllers/dark-mode-style-controller.js +1 -1
- package/dist/collection/helpers/theme/internal-theme-manager.js +12 -9
- package/dist/collection/helpers/theme/tests/theme-manager-controller.test.js +4 -4
- package/dist/collection/helpers/theme/theme-manager.js +2 -2
- 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-c055c18a.js → app-globals-1bb57f5e.js} +6 -6
- package/dist/esm/brand-switch-state-controller-slimmer-05c85e6d.js +49 -0
- package/dist/esm/{content-state-8d0d38d7.js → content-state-6dba6625.js} +221 -5
- package/dist/esm/{dark-mode-state-controller-slimmer-0678a94b.js → dark-mode-state-controller-slimmer-f1c2c299.js} +1 -1
- package/dist/esm/{dark-mode-style-controller-e5915f26.js → dark-mode-style-controller-2ada8e22.js} +20 -17
- package/dist/esm/{design-token-7406782c.js → design-token-070b7326.js} +1 -1
- package/dist/esm/{element-appender-slimmer-16eaeb31.js → element-appender-slimmer-d196dd21.js} +4 -4
- package/dist/esm/{form-field-controller-slimmer-a383d067.js → form-field-controller-slimmer-e7dc3db1.js} +4 -4
- package/dist/esm/{image-annotation-action-de567e61.js → image-annotation-action-0b661259.js} +2 -2
- package/dist/esm/{index-96374234.js → index-4aa167d6.js} +1 -1
- package/dist/esm/index.js +10 -10
- 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 +9 -9
- package/dist/esm/{min-number-rule-a6082418.js → min-number-rule-86421853.js} +2 -2
- package/dist/esm/{public-rules-f9fe1987.js → public-rules-f9aaa527.js} +5 -5
- package/dist/esm/{responsive-format-facade-299d8ee9.js → responsive-format-facade-dfed6d94.js} +3 -3
- package/dist/esm/{rich-text-editor-required-rule-7fd7dcb3.js → rich-text-editor-required-rule-42b796eb.js} +1 -1
- package/dist/esm/{static-subject-title-4a9deb68.js → static-subject-title-ca83d6b6.js} +2 -2
- package/dist/esm/{string-input-formatter-slimmer-8c7987ac.js → string-input-formatter-slimmer-c61f82d6.js} +2 -2
- package/dist/esm/{style-formatter-2ebb1fd2.js → style-formatter-788dbacf.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/{translation-78207e81.js → translation-cf7f020a.js} +1 -1
- package/dist/esm/{translation-slimmer-d49fcdf4.js → translation-slimmer-88966d5c.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +8 -8
- package/dist/esm/vega-app-footer.entry.js +38 -28
- package/dist/esm/vega-app-header-button.entry.js +8 -8
- package/dist/esm/vega-box.entry.js +9 -9
- package/dist/esm/vega-brand-logo.entry.js +3 -3
- package/dist/esm/vega-button-circle.entry.js +8 -8
- package/dist/esm/vega-button-group_2.entry.js +3 -3
- package/dist/esm/vega-button.entry.js +7 -7
- package/dist/esm/vega-calendar_3.entry.js +6 -6
- package/dist/esm/vega-card.entry.js +8 -8
- package/dist/esm/vega-carousel.entry.js +7 -7
- package/dist/esm/vega-checkbox_2.entry.js +5 -5
- package/dist/esm/vega-chip.entry.js +8 -8
- package/dist/esm/vega-color-picker.entry.js +5 -5
- package/dist/esm/vega-combo-box.entry.js +7 -7
- package/dist/esm/vega-date-picker_2.entry.js +15 -15
- package/dist/esm/vega-dialog_2.entry.js +8 -8
- package/dist/esm/vega-divider.entry.js +8 -8
- package/dist/esm/vega-dropdown_5.entry.js +14 -14
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-error.entry.js +1 -1
- package/dist/esm/vega-file-uploader.entry.js +6 -6
- package/dist/esm/vega-flag-icon.entry.js +8 -8
- package/dist/esm/vega-flex.entry.js +9 -9
- package/dist/esm/vega-font.entry.js +8 -8
- package/dist/esm/vega-form.entry.js +6 -6
- package/dist/esm/vega-grid.entry.js +8 -8
- package/dist/esm/vega-icon.entry.js +8 -8
- package/dist/esm/vega-image-uploader.entry.js +20 -11
- package/dist/esm/vega-input-credit-card.entry.js +5 -5
- package/dist/esm/vega-input-numeric.entry.js +13 -10
- package/dist/esm/vega-input-phone-number.entry.js +5 -5
- package/dist/esm/vega-input-range.entry.js +6 -6
- package/dist/esm/vega-input-select.entry.js +10 -10
- package/dist/esm/vega-input.entry.js +10 -10
- 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 +459 -198
- package/dist/esm/vega-loader-wrapper_2.entry.js +7 -7
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +1 -1
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +4 -4
- package/dist/esm/vega-pagination.entry.js +8 -8
- package/dist/esm/vega-popover_2.entry.js +15 -15
- package/dist/esm/vega-radio_2.entry.js +10 -7
- package/dist/esm/vega-rich-text-content.entry.js +14 -14
- package/dist/esm/vega-rich-text-editor_4.entry.js +453 -197
- package/dist/esm/vega-selection-chip_2.entry.js +10 -10
- package/dist/esm/vega-selection-tile_2.entry.js +6 -6
- package/dist/esm/vega-sidenav_3.entry.js +9 -9
- package/dist/esm/vega-signature-capture.entry.js +11 -11
- package/dist/esm/{vega-skeleton-loader-controller-90e8d34d.js → vega-skeleton-loader-controller-c2a8bd27.js} +3 -3
- package/dist/esm/vega-stepper.entry.js +8 -8
- package/dist/esm/vega-tab-group_2.entry.js +1 -1
- package/dist/esm/vega-table_8.entry.js +10 -10
- package/dist/esm/vega-textarea.entry.js +5 -5
- package/dist/esm/vega-time-picker_2.entry.js +13 -13
- package/dist/esm/vega-toggle-switch.entry.js +5 -5
- package/dist/esm/vega-tooltip_2.entry.js +15 -15
- package/dist/esm/vega.js +9 -9
- package/dist/types/components/vega-app-footer/vega-app-footer.d.ts +8 -3
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +3 -0
- 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/slimmers/renderers/vega-left-nav-header-renderer.d.ts +1 -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 +25 -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-popover/vega-popover.d.ts +3 -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/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/vega-tab-group.d.ts +3 -0
- package/dist/types/components/vega-time-picker/vega-time-picker.d.ts +3 -0
- package/dist/types/components/vega-tooltip/vega-tooltip.d.ts +3 -0
- package/dist/types/components.d.ts +23 -11
- package/dist/types/constants/misc.d.ts +2 -0
- package/dist/types/helpers/change-manager/subject/static-subject/static-subject-title.d.ts +2 -2
- 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/helpers/slimmers/brand-switch-state-controller-slimmer.d.ts +22 -0
- package/dist/types/helpers/slimmers/test/brand-switch-state-controller-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/theme/controllers/{new-brand-style-controller.d.ts → brand-style-controller.d.ts} +3 -3
- package/dist/types/helpers/theme/internal-theme-manager.d.ts +8 -8
- package/dist/types/helpers/theme/theme-manager.d.ts +4 -4
- package/dist/types/helpers/theme/theme.d.ts +6 -1
- package/dist/types/types/components.type.d.ts +1 -0
- package/dist/types/types/public-api.d.ts +1 -1
- package/dist/types/types/ui.type.d.ts +1 -1
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-f01300ea.entry.js → p-024cccab.entry.js} +1 -1
- package/dist/vega/{p-8f98e604.entry.js → p-07d1c3e1.entry.js} +1 -1
- package/dist/vega/{p-eaab3fea.entry.js → p-0969877b.entry.js} +1 -1
- package/dist/vega/{p-a9f2ad08.entry.js → p-09c13382.entry.js} +1 -1
- package/dist/vega/{p-b5f05d21.entry.js → p-09f7f841.entry.js} +1 -1
- package/dist/vega/{p-20af6415.entry.js → p-0a18f5f6.entry.js} +1 -1
- package/dist/vega/{p-d54c48b0.js → p-0d355793.js} +1 -1
- package/dist/vega/{p-f3f73fd3.entry.js → p-10f1429e.entry.js} +1 -1
- package/dist/vega/{p-0835a2fd.js → p-1503f791.js} +1 -1
- package/dist/vega/p-1b3f492f.entry.js +1 -0
- package/dist/vega/{p-d2947f32.entry.js → p-1d0cf3ae.entry.js} +1 -1
- package/dist/vega/{p-4b541ce8.entry.js → p-2198de3e.entry.js} +1 -1
- package/dist/vega/{p-e3b70eed.entry.js → p-2491d18f.entry.js} +1 -1
- package/dist/vega/{p-e309bfd1.entry.js → p-24e0cdcc.entry.js} +1 -1
- package/dist/vega/{p-aa29ccd4.entry.js → p-27e3825f.entry.js} +1 -1
- package/dist/vega/p-27e56c67.entry.js +1 -0
- package/dist/vega/{p-76a3a552.entry.js → p-292b421a.entry.js} +1 -1
- package/dist/vega/{p-d2a65457.entry.js → p-2ecae9fe.entry.js} +1 -1
- package/dist/vega/{p-562de411.entry.js → p-2fadef27.entry.js} +1 -1
- package/dist/vega/{p-b4108ddb.entry.js → p-31ec679b.entry.js} +1 -1
- package/dist/vega/{p-f5fdf1ae.entry.js → p-32c68611.entry.js} +1 -1
- package/dist/vega/{p-42b62b48.js → p-32ca74b1.js} +1 -1
- package/dist/vega/{p-4640d35d.entry.js → p-353d32c0.entry.js} +1 -1
- package/dist/vega/{p-63ea4f38.entry.js → p-371cc8e8.entry.js} +1 -1
- package/dist/vega/{p-84aa2ebc.entry.js → p-38fa38dc.entry.js} +1 -1
- package/dist/vega/{p-720d87f9.entry.js → p-472727a4.entry.js} +1 -1
- package/dist/vega/{p-12a8d705.js → p-48b7f20d.js} +1 -1
- package/dist/vega/p-4e68dfd9.js +1 -0
- package/dist/vega/{p-693934d5.entry.js → p-4fa94b35.entry.js} +1 -1
- package/dist/vega/{p-c17b7a1f.js → p-50677c8e.js} +1 -1
- package/dist/vega/{p-1486bc3f.js → p-50e80afa.js} +1 -1
- package/dist/vega/p-56a0b13d.js +1 -0
- package/dist/vega/p-575ca599.entry.js +1 -0
- package/dist/vega/{p-23a26150.js → p-5773a9a3.js} +1 -1
- package/dist/vega/{p-7a3826a0.entry.js → p-57e813f2.entry.js} +1 -1
- package/dist/vega/{p-90ebcda7.entry.js → p-5a8f129f.entry.js} +1 -1
- package/dist/vega/p-5c1eedc5.js +1 -0
- package/dist/vega/{p-0a3607f7.entry.js → p-5c3da7ed.entry.js} +1 -1
- package/dist/vega/{p-b2643e88.js → p-5e3a15a1.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-23ff7605.entry.js → p-65a76f19.entry.js} +1 -1
- package/dist/vega/p-6be16084.js +1 -0
- package/dist/vega/{p-69cc3fa2.js → p-6cabdb36.js} +1 -1
- package/dist/vega/{p-d296cf86.entry.js → p-6cc32ffa.entry.js} +1 -1
- package/dist/vega/{p-d7642125.js → p-72ecfd40.js} +1 -1
- package/dist/vega/{p-be186a9f.entry.js → p-7581d242.entry.js} +1 -1
- package/dist/vega/{p-a0b6da44.js → p-75c68f51.js} +1 -1
- package/dist/vega/p-7db32dc0.entry.js +1 -0
- package/dist/vega/{p-f0c85061.js → p-7f6702f7.js} +1 -1
- package/dist/vega/{p-7f1a7346.entry.js → p-84298e28.entry.js} +1 -1
- package/dist/vega/{p-704d9730.js → p-8ade44bf.js} +1 -1
- package/dist/vega/p-8bc4c015.entry.js +1 -0
- package/dist/vega/{p-e66515c7.js → p-8d283666.js} +1 -1
- package/dist/vega/p-904d1b43.js +1 -0
- package/dist/vega/{p-c87b5c83.entry.js → p-971f7d3c.entry.js} +1 -1
- package/dist/vega/{p-1138fa63.entry.js → p-9dba10f7.entry.js} +1 -1
- package/dist/vega/p-aea89be5.entry.js +1 -0
- package/dist/vega/p-b1f9fca8.entry.js +1 -0
- package/dist/vega/{p-ff9e8753.entry.js → p-b3e1dc86.entry.js} +1 -1
- package/dist/vega/{p-327a017b.entry.js → p-baca6dfc.entry.js} +1 -1
- package/dist/vega/p-bf1894ec.js +1 -0
- package/dist/vega/p-c5f8b3a3.entry.js +1 -0
- package/dist/vega/p-c6a3fe8a.entry.js +1 -0
- package/dist/vega/p-c754b32c.js +1 -0
- package/dist/vega/p-cc43a4ca.js +1 -0
- package/dist/vega/{p-f3efc8f0.entry.js → p-ccdd49be.entry.js} +1 -1
- package/dist/vega/p-cd205d96.js +1 -0
- package/dist/vega/{p-414e7edc.entry.js → p-d033ed44.entry.js} +1 -1
- package/dist/vega/{p-7cc3feb4.entry.js → p-d6591d70.entry.js} +1 -1
- package/dist/vega/{p-80c86d79.js → p-d7937711.js} +1 -1
- package/dist/vega/{p-26005df1.js → p-db4112af.js} +1 -1
- package/dist/vega/{p-90e70662.entry.js → p-db7a6878.entry.js} +1 -1
- package/dist/vega/{p-0e7fc736.entry.js → p-dd33bc71.entry.js} +1 -1
- package/dist/vega/{p-fb6d87cd.entry.js → p-e8f16f1d.entry.js} +1 -1
- package/dist/vega/{p-ba0a76fe.entry.js → p-ed6cc75b.entry.js} +1 -1
- package/dist/vega/p-f4d3387c.entry.js +1 -0
- package/dist/vega/{p-27287998.entry.js → p-f5b19d4f.entry.js} +1 -1
- package/dist/vega/{p-1114896d.entry.js → p-f7423232.entry.js} +1 -1
- package/dist/vega/p-fba4bae5.js +1 -0
- 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-06d7990e.js +0 -1
- package/dist/vega/p-1154e439.entry.js +0 -1
- package/dist/vega/p-12d60f5f.js +0 -1
- package/dist/vega/p-214aa52e.js +0 -1
- package/dist/vega/p-2c0d1ec9.entry.js +0 -1
- package/dist/vega/p-2e65e175.js +0 -1
- package/dist/vega/p-3165ee95.entry.js +0 -1
- package/dist/vega/p-380ba357.entry.js +0 -1
- package/dist/vega/p-41c48bcc.entry.js +0 -1
- package/dist/vega/p-4c62c178.entry.js +0 -1
- package/dist/vega/p-626dd54f.entry.js +0 -1
- package/dist/vega/p-6f2faa34.js +0 -1
- package/dist/vega/p-6f9731a1.entry.js +0 -1
- package/dist/vega/p-7f9dd834.entry.js +0 -1
- package/dist/vega/p-865b45dc.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-da40b4c3.js +0 -1
- package/dist/vega/p-f2373487.js +0 -1
- package/dist/vega/p-ff8ef8af.entry.js +0 -1
- package/dist/vega/p-ff9ccfa8.js +0 -1
|
@@ -45,7 +45,7 @@ test('return evaluate result as expect if input type is number and value less th
|
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
test('return evaluate result as expect if input max value less than default MAX_VALUE', () => {
|
|
48
|
-
const rule = new MaxNumberRule({ maxValue:
|
|
48
|
+
const rule = new MaxNumberRule({ maxValue: NaN });
|
|
49
49
|
const stringInput = rule.evaluate(1.79e308);
|
|
50
50
|
expect(stringInput).toEqual({
|
|
51
51
|
isValid: true,
|
|
@@ -53,7 +53,7 @@ test('return evaluate result as expect if input max value less than default MAX_
|
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
55
|
test('return evaluate result as expect if input max value greater than default MAX_VALUE', () => {
|
|
56
|
-
const rule = new MaxNumberRule({ maxValue:
|
|
56
|
+
const rule = new MaxNumberRule({ maxValue: NaN });
|
|
57
57
|
const stringInput = rule.evaluate(1.79e309);
|
|
58
58
|
expect(stringInput).toEqual({
|
|
59
59
|
isValid: false,
|
|
@@ -45,7 +45,7 @@ test('return evaluate result as expect if input type is number and value less th
|
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
test('return evaluate result as expect if input max value less than default MIN_VALUE', () => {
|
|
48
|
-
const rule = new MinNumberRule({ minValue:
|
|
48
|
+
const rule = new MinNumberRule({ minValue: NaN });
|
|
49
49
|
const stringInput = rule.evaluate(-1);
|
|
50
50
|
expect(stringInput).toEqual({
|
|
51
51
|
isValid: false,
|
|
@@ -53,7 +53,7 @@ test('return evaluate result as expect if input max value less than default MIN_
|
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
55
|
test('return evaluate result as expect if input max value greater than default MIN_VALUE', () => {
|
|
56
|
-
const rule = new MinNumberRule({ minValue:
|
|
56
|
+
const rule = new MinNumberRule({ minValue: NaN });
|
|
57
57
|
const stringInput = rule.evaluate(0);
|
|
58
58
|
expect(stringInput).toEqual({
|
|
59
59
|
isValid: true,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { F as FeatureFlag } from './feature-flag-controller-690eac1d.js';
|
|
2
|
-
import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager, c as VegaDialog, d as VegaEventManager, e as VegaZIndexManager, f as VegaSkeletonLoader } from './vega-skeleton-loader-controller-
|
|
2
|
+
import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager, c as VegaDialog, d as VegaEventManager, e as VegaZIndexManager, f as VegaSkeletonLoader } from './vega-skeleton-loader-controller-c2a8bd27.js';
|
|
3
3
|
import { M as MapToComponentMethod, V as VegaSlimmer, s as setVegaLogLevel, G as GlobalSlimmersRegistry } from './global-slimmer-registry-17c4efd4.js';
|
|
4
4
|
import { v as vegaEnvManager } from './vega-env-manager-8f8dc473.js';
|
|
5
5
|
import { V as VegaIconManager } from './icon-manager-638dd4d4.js';
|
|
6
6
|
import './wait-for-vega-handler-b18eb955.js';
|
|
7
7
|
import './ui-ed1283bb.js';
|
|
8
|
-
import { V as VegaInternalTranslation, a as VegaTranslation, s as staticTranslations } from './translation-
|
|
9
|
-
import { V as VegaRTEContent } from './content-state-
|
|
8
|
+
import { V as VegaInternalTranslation, a as VegaTranslation, s as staticTranslations } from './translation-cf7f020a.js';
|
|
9
|
+
import { V as VegaRTEContent } from './content-state-6dba6625.js';
|
|
10
10
|
import { T as TypographyUrls } from './typography-396de03f.js';
|
|
11
11
|
import { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-cc497bec.js';
|
|
12
|
-
import { w as waitForVega } from './index-
|
|
13
|
-
import { U as UPDATE_TRANSLATION } from './static-subject-title-
|
|
12
|
+
import { w as waitForVega } from './index-4aa167d6.js';
|
|
13
|
+
import { U as UPDATE_TRANSLATION } from './static-subject-title-ca83d6b6.js';
|
|
14
14
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
15
15
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
16
16
|
import { f as forceUpdate } from './index-187f71d1.js';
|
|
@@ -312,7 +312,7 @@ function injectVegaRichTextEditorClassIntoGlobal() {
|
|
|
312
312
|
* Inject VegaPublicValidationRules to global as a public api
|
|
313
313
|
*/
|
|
314
314
|
function injectVegaPublicValidationRules() {
|
|
315
|
-
void import('./public-rules-
|
|
315
|
+
void import('./public-rules-f9aaa527.js').then((module) => {
|
|
316
316
|
Object.entries(module).forEach(([name, value]) => {
|
|
317
317
|
globalThis[name] = value;
|
|
318
318
|
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
2
|
+
import { G as GP_BRAND_CHANGE } from './static-subject-title-ca83d6b6.js';
|
|
3
|
+
import { O as Observer } from './observer-3959f9dd.js';
|
|
4
|
+
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
5
|
+
|
|
6
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
9
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
+
};
|
|
12
|
+
/** The `BrandSwitchControllerSlimmer` class monitors brand changes and updates the color, logo and footer content accordingly. */
|
|
13
|
+
class BrandSwitchControllerSlimmer extends VegaSlimmer {
|
|
14
|
+
/**
|
|
15
|
+
* Component lifecycle - [connectedCallback]
|
|
16
|
+
* Register an observer to watch for current branding updates, which will cause the component to update.
|
|
17
|
+
*/
|
|
18
|
+
connectedCallback() {
|
|
19
|
+
this.observer = new Observer(this.isAcceptObserver.bind(this), (currentBranding) => {
|
|
20
|
+
this.currentBranding = currentBranding;
|
|
21
|
+
});
|
|
22
|
+
ChangeManager.register(GP_BRAND_CHANGE, this.observer);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* cancel dark mode observer when disconnectedCallback
|
|
26
|
+
*/
|
|
27
|
+
disconnectResizeObserver() {
|
|
28
|
+
ChangeManager.unregister(GP_BRAND_CHANGE, this.observer);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Determines whether the observer should accept changes.
|
|
32
|
+
*
|
|
33
|
+
* @returns {boolean} Always returns true in the current implementation.
|
|
34
|
+
*/
|
|
35
|
+
isAcceptObserver() {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
__decorate([
|
|
40
|
+
MapToComponentField({ writable: true })
|
|
41
|
+
], BrandSwitchControllerSlimmer.prototype, "currentBranding", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
MapToComponentMethod('connectedCallback')
|
|
44
|
+
], BrandSwitchControllerSlimmer.prototype, "connectedCallback", null);
|
|
45
|
+
__decorate([
|
|
46
|
+
MapToComponentMethod('disconnectedCallback')
|
|
47
|
+
], BrandSwitchControllerSlimmer.prototype, "disconnectResizeObserver", null);
|
|
48
|
+
|
|
49
|
+
export { BrandSwitchControllerSlimmer as B };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
2
2
|
import { d as domNodeSubjectFactory } from './dom-node-subject-factory-f77cf9cc.js';
|
|
3
|
-
import { a as VegaInternalRichTextEditorFlushChanges, b as VegaInternalRichTextEditorSelectionRangeChange } from './vega-internal-event-id-
|
|
3
|
+
import { a as VegaInternalRichTextEditorFlushChanges, b as VegaInternalRichTextEditorSelectionRangeChange } from './vega-internal-event-id-85ad403f.js';
|
|
4
4
|
import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
|
5
5
|
import { i as isNonNullable } from './type-guard-158f6d7a.js';
|
|
6
6
|
import { g as generateUUID } from './create-public-api-runtime-metrics-slimmer-8ada793f.js';
|
|
7
|
-
import { V as VegaInternalThemeManager } from './dark-mode-style-controller-
|
|
7
|
+
import { V as VegaInternalThemeManager } from './dark-mode-style-controller-2ada8e22.js';
|
|
8
8
|
|
|
9
9
|
var InternalAnnotationTypeEnum;
|
|
10
10
|
(function (InternalAnnotationTypeEnum) {
|
|
@@ -147,6 +147,12 @@ class HorizontalAlignmentAnnotation extends BlockAnnotation {
|
|
|
147
147
|
renderClass() {
|
|
148
148
|
return `v-rte--horizontal-alignment-${this.textAlign}`;
|
|
149
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* @inheritDoc
|
|
152
|
+
*/
|
|
153
|
+
clone() {
|
|
154
|
+
return new HorizontalAlignmentAnnotation(this.textAlign);
|
|
155
|
+
}
|
|
150
156
|
/**
|
|
151
157
|
* Generate the style for the annotation
|
|
152
158
|
*
|
|
@@ -183,6 +189,12 @@ class IndentAnnotation extends BlockAnnotation {
|
|
|
183
189
|
toJSON() {
|
|
184
190
|
return this.indent > 0 ? { indent: this.indent } : null;
|
|
185
191
|
}
|
|
192
|
+
/**
|
|
193
|
+
* @inheritDoc
|
|
194
|
+
*/
|
|
195
|
+
clone() {
|
|
196
|
+
return new IndentAnnotation(this.indent);
|
|
197
|
+
}
|
|
186
198
|
/**
|
|
187
199
|
* Generate the style for the annotation
|
|
188
200
|
*
|
|
@@ -339,6 +351,14 @@ class RTEBlock {
|
|
|
339
351
|
this.annotationMap.set(annotation.type, annotation);
|
|
340
352
|
typeof this.doAnnotationActionApply === 'function' && this.doAnnotationActionApply(action);
|
|
341
353
|
}
|
|
354
|
+
/**
|
|
355
|
+
* clone annotations of the block
|
|
356
|
+
*
|
|
357
|
+
* @returns {BlockAnnotations} - Cloned annotations
|
|
358
|
+
*/
|
|
359
|
+
cloneAnnotations() {
|
|
360
|
+
return new Map(Array.from(this.annotationMap.entries()).map(([key, value]) => [key, value.clone()]));
|
|
361
|
+
}
|
|
342
362
|
}
|
|
343
363
|
|
|
344
364
|
var NodeTypeEnum;
|
|
@@ -414,6 +434,14 @@ class RTENode {
|
|
|
414
434
|
}
|
|
415
435
|
}
|
|
416
436
|
}
|
|
437
|
+
/**
|
|
438
|
+
* Clones the annotations of the current RTETextNode.
|
|
439
|
+
*
|
|
440
|
+
* @returns {NodeAnnotations} A new Map containing cloned annotations.
|
|
441
|
+
*/
|
|
442
|
+
cloneAnnotations() {
|
|
443
|
+
return new Map(Array.from(this.annotationMap.entries()).map(([key, value]) => [key, value.clone()]));
|
|
444
|
+
}
|
|
417
445
|
}
|
|
418
446
|
|
|
419
447
|
var NodeAnnotationTypeEnum;
|
|
@@ -469,6 +497,12 @@ class ImageAnnotation extends NodeAnnotation {
|
|
|
469
497
|
size: this.size,
|
|
470
498
|
};
|
|
471
499
|
}
|
|
500
|
+
/**
|
|
501
|
+
* @inheritDoc
|
|
502
|
+
*/
|
|
503
|
+
clone() {
|
|
504
|
+
return new ImageAnnotation(this.size, this.alt);
|
|
505
|
+
}
|
|
472
506
|
/**
|
|
473
507
|
* Generate the style for the image
|
|
474
508
|
*
|
|
@@ -629,6 +663,12 @@ class RTEImageNode extends RTENode {
|
|
|
629
663
|
}
|
|
630
664
|
return Object.assign(Object.assign({ id: this.id }, (Object.keys(annotations).length > 0 ? { annotations } : {})), { type: 'image', url: this.url });
|
|
631
665
|
}
|
|
666
|
+
/**
|
|
667
|
+
* @inheritDoc
|
|
668
|
+
*/
|
|
669
|
+
clone() {
|
|
670
|
+
return new RTEImageNode(this.id, this.url, this.parentBlock, super.cloneAnnotations());
|
|
671
|
+
}
|
|
632
672
|
/**
|
|
633
673
|
* @inheritDoc
|
|
634
674
|
*/
|
|
@@ -1080,6 +1120,14 @@ class SelectionRangeAnnotation extends Annotation {
|
|
|
1080
1120
|
this.type = InternalAnnotationTypeEnum.SELECTION_RANGE;
|
|
1081
1121
|
this.range = range;
|
|
1082
1122
|
}
|
|
1123
|
+
/**
|
|
1124
|
+
* Clone the selection range annotation
|
|
1125
|
+
*
|
|
1126
|
+
* @returns {SelectionRangeAnnotation} A cloned instance of the selection range annotation
|
|
1127
|
+
*/
|
|
1128
|
+
clone() {
|
|
1129
|
+
return new SelectionRangeAnnotation(this.range);
|
|
1130
|
+
}
|
|
1083
1131
|
}
|
|
1084
1132
|
|
|
1085
1133
|
/**
|
|
@@ -1110,6 +1158,12 @@ class StrikethroughAnnotation extends NodeAnnotation {
|
|
|
1110
1158
|
strikethrough: this.strikethrough,
|
|
1111
1159
|
};
|
|
1112
1160
|
}
|
|
1161
|
+
/**
|
|
1162
|
+
* @inheritDoc
|
|
1163
|
+
*/
|
|
1164
|
+
clone() {
|
|
1165
|
+
return new StrikethroughAnnotation(this.strikethrough);
|
|
1166
|
+
}
|
|
1113
1167
|
/**
|
|
1114
1168
|
* Generate the class for the annotation
|
|
1115
1169
|
*
|
|
@@ -1156,6 +1210,12 @@ class UnderlineAnnotation extends NodeAnnotation {
|
|
|
1156
1210
|
underline: this.underline,
|
|
1157
1211
|
};
|
|
1158
1212
|
}
|
|
1213
|
+
/**
|
|
1214
|
+
* @inheritDoc
|
|
1215
|
+
*/
|
|
1216
|
+
clone() {
|
|
1217
|
+
return new UnderlineAnnotation(this.underline);
|
|
1218
|
+
}
|
|
1159
1219
|
/**
|
|
1160
1220
|
* Generate the class for the annotation
|
|
1161
1221
|
*
|
|
@@ -1202,6 +1262,12 @@ class ItalicAnnotation extends NodeAnnotation {
|
|
|
1202
1262
|
italic: this.italic,
|
|
1203
1263
|
};
|
|
1204
1264
|
}
|
|
1265
|
+
/**
|
|
1266
|
+
* @inheritDoc
|
|
1267
|
+
*/
|
|
1268
|
+
clone() {
|
|
1269
|
+
return new ItalicAnnotation(this.italic);
|
|
1270
|
+
}
|
|
1205
1271
|
/**
|
|
1206
1272
|
* Generate the style for the annotation
|
|
1207
1273
|
*
|
|
@@ -1240,6 +1306,12 @@ class BoldAnnotation extends NodeAnnotation {
|
|
|
1240
1306
|
bold: this.bold,
|
|
1241
1307
|
};
|
|
1242
1308
|
}
|
|
1309
|
+
/**
|
|
1310
|
+
* @inheritDoc
|
|
1311
|
+
*/
|
|
1312
|
+
clone() {
|
|
1313
|
+
return new BoldAnnotation(this.bold);
|
|
1314
|
+
}
|
|
1243
1315
|
/**
|
|
1244
1316
|
* Generate the style for the annotation
|
|
1245
1317
|
*
|
|
@@ -1278,6 +1350,12 @@ class CodeAnnotation extends NodeAnnotation {
|
|
|
1278
1350
|
code: this.code,
|
|
1279
1351
|
};
|
|
1280
1352
|
}
|
|
1353
|
+
/**
|
|
1354
|
+
* @inheritDoc
|
|
1355
|
+
*/
|
|
1356
|
+
clone() {
|
|
1357
|
+
return new CodeAnnotation(this.code);
|
|
1358
|
+
}
|
|
1281
1359
|
/**
|
|
1282
1360
|
* Generate the class for the annotation
|
|
1283
1361
|
*
|
|
@@ -1358,6 +1436,12 @@ class TextColorAnnotation extends NodeAnnotation {
|
|
|
1358
1436
|
textColor: this.textColor.key,
|
|
1359
1437
|
};
|
|
1360
1438
|
}
|
|
1439
|
+
/**
|
|
1440
|
+
* @inheritDoc
|
|
1441
|
+
*/
|
|
1442
|
+
clone() {
|
|
1443
|
+
return new TextColorAnnotation(this.textColor.key);
|
|
1444
|
+
}
|
|
1361
1445
|
/**
|
|
1362
1446
|
* Generate the class for the annotation
|
|
1363
1447
|
*
|
|
@@ -1416,6 +1500,12 @@ class LinkAnnotation extends NodeAnnotation {
|
|
|
1416
1500
|
toJSON() {
|
|
1417
1501
|
return { link: { href: this.link.href, groupKey: this.link.groupKey } };
|
|
1418
1502
|
}
|
|
1503
|
+
/**
|
|
1504
|
+
* @inheritDoc
|
|
1505
|
+
*/
|
|
1506
|
+
clone() {
|
|
1507
|
+
return new LinkAnnotation(this.link);
|
|
1508
|
+
}
|
|
1419
1509
|
/**
|
|
1420
1510
|
* Verify whether two link annotation is same or not
|
|
1421
1511
|
*
|
|
@@ -1445,6 +1535,13 @@ class LinkGroupAnnotation extends Annotation {
|
|
|
1445
1535
|
this.linkGroups = new Map();
|
|
1446
1536
|
this.linkGroups = new Map([[groupKey, []]]);
|
|
1447
1537
|
}
|
|
1538
|
+
clone() {
|
|
1539
|
+
const clonedAnnotation = new LinkGroupAnnotation('');
|
|
1540
|
+
this.linkGroups.forEach((nodes, key) => {
|
|
1541
|
+
clonedAnnotation.linkGroups.set(key, nodes.map((node) => node.clone()));
|
|
1542
|
+
});
|
|
1543
|
+
return clonedAnnotation;
|
|
1544
|
+
}
|
|
1448
1545
|
}
|
|
1449
1546
|
|
|
1450
1547
|
/**
|
|
@@ -1905,7 +2002,13 @@ class RTETextNode extends RTENode {
|
|
|
1905
2002
|
* @returns {RTETextNode} An new RTETextNode
|
|
1906
2003
|
*/
|
|
1907
2004
|
cloneWithText(text) {
|
|
1908
|
-
return new RTETextNode(generateUUID(), text, this.parentBlock,
|
|
2005
|
+
return new RTETextNode(generateUUID(), text, this.parentBlock, super.cloneAnnotations());
|
|
2006
|
+
}
|
|
2007
|
+
/**
|
|
2008
|
+
* @inheritDoc
|
|
2009
|
+
*/
|
|
2010
|
+
clone() {
|
|
2011
|
+
return new RTETextNode(this.id, this.text, this.parentBlock, super.cloneAnnotations());
|
|
1909
2012
|
}
|
|
1910
2013
|
/**
|
|
1911
2014
|
* Checks if a node is empty
|
|
@@ -2010,6 +2113,12 @@ class TextStyleAnnotation extends BlockAnnotation {
|
|
|
2010
2113
|
toJSON() {
|
|
2011
2114
|
return { textStyle: this.textStyle };
|
|
2012
2115
|
}
|
|
2116
|
+
/**
|
|
2117
|
+
* @inheritDoc
|
|
2118
|
+
*/
|
|
2119
|
+
clone() {
|
|
2120
|
+
return new TextStyleAnnotation(this.textStyle);
|
|
2121
|
+
}
|
|
2013
2122
|
/**
|
|
2014
2123
|
* Render the styles by block type
|
|
2015
2124
|
*
|
|
@@ -2638,6 +2747,20 @@ class RTETextBlock extends RTEBlock {
|
|
|
2638
2747
|
block.apply(new AppendChildNodesAction(nodes));
|
|
2639
2748
|
return block;
|
|
2640
2749
|
}
|
|
2750
|
+
/**
|
|
2751
|
+
* @inheritDoc
|
|
2752
|
+
*/
|
|
2753
|
+
clone() {
|
|
2754
|
+
const clonedBlock = new RTETextBlock(this.id, this.type);
|
|
2755
|
+
clonedBlock.nodes = this.nodes.map((node) => {
|
|
2756
|
+
const clonedNode = node.clone();
|
|
2757
|
+
clonedNode.parentBlock = clonedBlock;
|
|
2758
|
+
return clonedNode;
|
|
2759
|
+
});
|
|
2760
|
+
clonedBlock.annotationMap = super.cloneAnnotations();
|
|
2761
|
+
clonedBlock.parent = this.parent;
|
|
2762
|
+
return clonedBlock;
|
|
2763
|
+
}
|
|
2641
2764
|
/**
|
|
2642
2765
|
* @inheritDoc
|
|
2643
2766
|
*/
|
|
@@ -2906,6 +3029,20 @@ class RTEImageBlock extends RTEBlock {
|
|
|
2906
3029
|
createNewImageBlock() {
|
|
2907
3030
|
return new RTEImageBlock(generateUUID());
|
|
2908
3031
|
}
|
|
3032
|
+
/**
|
|
3033
|
+
* @inheritDoc
|
|
3034
|
+
*/
|
|
3035
|
+
clone() {
|
|
3036
|
+
const clonedBlock = new RTEImageBlock(this.id);
|
|
3037
|
+
clonedBlock.nodes = this.nodes.map((node) => {
|
|
3038
|
+
const clonedNode = node.clone();
|
|
3039
|
+
clonedNode.parentBlock = clonedBlock;
|
|
3040
|
+
return clonedNode;
|
|
3041
|
+
});
|
|
3042
|
+
clonedBlock.annotationMap = super.cloneAnnotations();
|
|
3043
|
+
clonedBlock.parent = this.parent;
|
|
3044
|
+
return clonedBlock;
|
|
3045
|
+
}
|
|
2909
3046
|
}
|
|
2910
3047
|
(() => {
|
|
2911
3048
|
ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_BLOCK_CONTENT, RTEImageBlock.name, new BlockDeleteImageStrategy());
|
|
@@ -3165,6 +3302,26 @@ class RTEListItemBlock extends RTETextBlock {
|
|
|
3165
3302
|
createNewListItem() {
|
|
3166
3303
|
return new RTEListItemBlock(generateUUID());
|
|
3167
3304
|
}
|
|
3305
|
+
/**
|
|
3306
|
+
* @inheritDoc
|
|
3307
|
+
*/
|
|
3308
|
+
clone() {
|
|
3309
|
+
var _a;
|
|
3310
|
+
const block = new RTEListItemBlock(this.id);
|
|
3311
|
+
block.nodes = this.nodes.map((node) => {
|
|
3312
|
+
const clonedNode = node.clone();
|
|
3313
|
+
clonedNode.parentBlock = block;
|
|
3314
|
+
return clonedNode;
|
|
3315
|
+
});
|
|
3316
|
+
block.annotationMap = super.cloneAnnotations();
|
|
3317
|
+
block.children = (_a = this.children) === null || _a === void 0 ? void 0 : _a.map((child) => {
|
|
3318
|
+
const clonedChild = child.clone();
|
|
3319
|
+
clonedChild.parent = block;
|
|
3320
|
+
return clonedChild;
|
|
3321
|
+
});
|
|
3322
|
+
block.parent = this.parent;
|
|
3323
|
+
return block;
|
|
3324
|
+
}
|
|
3168
3325
|
}
|
|
3169
3326
|
(() => {
|
|
3170
3327
|
ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_BLOCK_CONTENT, RTEListItemBlock.name, new ListItemDeleteTextContentStrategy());
|
|
@@ -3459,6 +3616,20 @@ class RTEListBlock extends RTEBlock {
|
|
|
3459
3616
|
getLastNode() {
|
|
3460
3617
|
return this.blocks[this.blocks.length - 1].getLastNode();
|
|
3461
3618
|
}
|
|
3619
|
+
/**
|
|
3620
|
+
* @inheritDoc
|
|
3621
|
+
*/
|
|
3622
|
+
clone() {
|
|
3623
|
+
const clonedListBlock = new RTEListBlock(this.id, this.type);
|
|
3624
|
+
clonedListBlock.blocks = this.blocks.map((item) => {
|
|
3625
|
+
const clonedListItemBlock = item.clone();
|
|
3626
|
+
clonedListItemBlock.parent = clonedListBlock;
|
|
3627
|
+
return clonedListItemBlock;
|
|
3628
|
+
});
|
|
3629
|
+
clonedListBlock.annotationMap = super.cloneAnnotations();
|
|
3630
|
+
clonedListBlock.parent = this.parent;
|
|
3631
|
+
return clonedListBlock;
|
|
3632
|
+
}
|
|
3462
3633
|
}
|
|
3463
3634
|
(() => {
|
|
3464
3635
|
ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_CHILD, RTEListBlock.name, new ListRemoveListItemStrategy());
|
|
@@ -3532,10 +3703,13 @@ class VegaRTEContent {
|
|
|
3532
3703
|
/**
|
|
3533
3704
|
* Clones the content state.
|
|
3534
3705
|
*
|
|
3706
|
+
* @param {boolean} deep - If true, performs a deep clone of the content state.
|
|
3535
3707
|
* @returns {VegaRTEContent} The cloned content state.
|
|
3536
3708
|
*/
|
|
3537
|
-
clone() {
|
|
3538
|
-
return
|
|
3709
|
+
clone(deep = false) {
|
|
3710
|
+
return deep
|
|
3711
|
+
? new VegaRTEContent(this.blocks.map((block) => block.clone()))
|
|
3712
|
+
: new VegaRTEContent([...this.blocks]);
|
|
3539
3713
|
}
|
|
3540
3714
|
/**
|
|
3541
3715
|
* Converts the content state to a JSON array of blocks.
|
|
@@ -3575,6 +3749,48 @@ class VegaRTEContent {
|
|
|
3575
3749
|
createList(type) {
|
|
3576
3750
|
return new RTEListBlock(generateUUID(), type);
|
|
3577
3751
|
}
|
|
3752
|
+
/**
|
|
3753
|
+
* Finds a node by its ID in the content.
|
|
3754
|
+
*
|
|
3755
|
+
* @param {string} id - The ID of the node to find.
|
|
3756
|
+
* @returns {Nullable<RTENode>} The found node or null if not found.
|
|
3757
|
+
*/
|
|
3758
|
+
findNodeById(id) {
|
|
3759
|
+
return this.findNodeInBlocksById(id, this.blocks);
|
|
3760
|
+
}
|
|
3761
|
+
/**
|
|
3762
|
+
* Recursively searches for a node by its ID in the given blocks.
|
|
3763
|
+
*
|
|
3764
|
+
* @param {string} id - The ID of the node to find.
|
|
3765
|
+
* @param {RTEContentBlock[]} blocks - The blocks to search within.
|
|
3766
|
+
* @returns {Nullable<RTENode>} The found node or null if not found.
|
|
3767
|
+
*/
|
|
3768
|
+
findNodeInBlocksById(id, blocks) {
|
|
3769
|
+
for (const block of blocks) {
|
|
3770
|
+
if ('nodes' in block) {
|
|
3771
|
+
for (const node of block.nodes) {
|
|
3772
|
+
if (node.id === id) {
|
|
3773
|
+
return node;
|
|
3774
|
+
}
|
|
3775
|
+
}
|
|
3776
|
+
}
|
|
3777
|
+
if (block instanceof RTEListItemBlock && block.children) {
|
|
3778
|
+
for (const cBlock of block.children) {
|
|
3779
|
+
const foundNode = this.findNodeInBlocksById(id, cBlock.blocks);
|
|
3780
|
+
if (foundNode) {
|
|
3781
|
+
return foundNode;
|
|
3782
|
+
}
|
|
3783
|
+
}
|
|
3784
|
+
}
|
|
3785
|
+
if (block instanceof RTEListBlock && block.blocks) {
|
|
3786
|
+
const foundNode = this.findNodeInBlocksById(id, block.blocks);
|
|
3787
|
+
if (foundNode) {
|
|
3788
|
+
return foundNode;
|
|
3789
|
+
}
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
return null;
|
|
3793
|
+
}
|
|
3578
3794
|
}
|
|
3579
3795
|
(() => {
|
|
3580
3796
|
ActionHandleStrategyRegistry.register(ModifyContentActionType.DELETE_CHILD, VegaRTEContent.name, new BlockRemoveChildBlockStrategy());
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
2
|
-
import { D as DARK_MODE_CHANGE } from './static-subject-title-
|
|
2
|
+
import { D as DARK_MODE_CHANGE } from './static-subject-title-ca83d6b6.js';
|
|
3
3
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
4
4
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
5
5
|
|
package/dist/esm/{dark-mode-style-controller-e5915f26.js → dark-mode-style-controller-2ada8e22.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DARK_MODE_CHANGE, G as
|
|
1
|
+
import { D as DARK_MODE_CHANGE, G as GP_BRAND_CHANGE } from './static-subject-title-ca83d6b6.js';
|
|
2
2
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
3
3
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
4
4
|
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-9943807e.js';
|
|
@@ -3294,26 +3294,26 @@ class StyleControllerAbstract {
|
|
|
3294
3294
|
}
|
|
3295
3295
|
|
|
3296
3296
|
/**
|
|
3297
|
-
* Vega components
|
|
3297
|
+
* Vega components brand style controller
|
|
3298
3298
|
*/
|
|
3299
|
-
class
|
|
3299
|
+
class BrandStyleController extends StyleControllerAbstract {
|
|
3300
3300
|
constructor() {
|
|
3301
3301
|
super();
|
|
3302
3302
|
this.tokens = {};
|
|
3303
|
-
this.themeStyleContainerKey = 'vega-
|
|
3303
|
+
this.themeStyleContainerKey = 'vega-brand-theme';
|
|
3304
3304
|
this.observer = new Observer(this.isAcceptObserver.bind(this), (options) => {
|
|
3305
|
-
if (options) {
|
|
3306
|
-
this.
|
|
3305
|
+
if (options === 'heartland') {
|
|
3306
|
+
this.reset(this.themeStyleContainerKey);
|
|
3307
3307
|
}
|
|
3308
3308
|
else {
|
|
3309
|
-
this.
|
|
3309
|
+
this.generateThemeStyle();
|
|
3310
3310
|
}
|
|
3311
3311
|
const isDarkMode = VegaInternalThemeManager.isDarkMode();
|
|
3312
3312
|
if (isDarkMode) {
|
|
3313
3313
|
ChangeManager.notify(DARK_MODE_CHANGE, isDarkMode);
|
|
3314
3314
|
}
|
|
3315
3315
|
});
|
|
3316
|
-
ChangeManager.register(
|
|
3316
|
+
ChangeManager.register(GP_BRAND_CHANGE, this.observer);
|
|
3317
3317
|
}
|
|
3318
3318
|
/**
|
|
3319
3319
|
* It generates a CSS style for light mode to override the style.
|
|
@@ -3334,12 +3334,15 @@ class NewBrandStyleController extends StyleControllerAbstract {
|
|
|
3334
3334
|
return true;
|
|
3335
3335
|
}
|
|
3336
3336
|
}
|
|
3337
|
-
new
|
|
3337
|
+
new BrandStyleController();
|
|
3338
3338
|
|
|
3339
3339
|
/**
|
|
3340
3340
|
* Vega components controller to control the internal theme manager
|
|
3341
3341
|
*/
|
|
3342
3342
|
class InternalThemeManager {
|
|
3343
|
+
constructor() {
|
|
3344
|
+
this.currentBranding = 'heartland';
|
|
3345
|
+
}
|
|
3343
3346
|
/**
|
|
3344
3347
|
* It takes the colors you passed in, parses them into the correct format, and then applies them to the theme
|
|
3345
3348
|
*
|
|
@@ -3383,19 +3386,19 @@ class InternalThemeManager {
|
|
|
3383
3386
|
/**
|
|
3384
3387
|
* This function return the new brand name.
|
|
3385
3388
|
*
|
|
3386
|
-
* @returns {
|
|
3389
|
+
* @returns {BrandOptions} return the new brand options.
|
|
3387
3390
|
*/
|
|
3388
|
-
|
|
3389
|
-
return this.
|
|
3391
|
+
getBranding() {
|
|
3392
|
+
return this.currentBranding;
|
|
3390
3393
|
}
|
|
3391
3394
|
/**
|
|
3392
|
-
* This function switches the Vega theme to a
|
|
3395
|
+
* This function switches the Vega theme to a brand theme based on the provided options.
|
|
3393
3396
|
*
|
|
3394
|
-
* @param {
|
|
3397
|
+
* @param {BrandOptions} options - The options includes 'gp', 'genius' and 'heartland' options
|
|
3395
3398
|
*/
|
|
3396
3399
|
applyBranding(options) {
|
|
3397
|
-
this.
|
|
3398
|
-
ChangeManager.notify(
|
|
3400
|
+
this.currentBranding = options;
|
|
3401
|
+
ChangeManager.notify(GP_BRAND_CHANGE, options);
|
|
3399
3402
|
}
|
|
3400
3403
|
}
|
|
3401
3404
|
const VegaInternalThemeManager = new InternalThemeManager();
|
|
@@ -3444,7 +3447,7 @@ class DarkModeStyleController extends StyleControllerAbstract {
|
|
|
3444
3447
|
generateThemeStyle() {
|
|
3445
3448
|
const newBrandTokens = Object.assign(DarkModeColorTokens$1, DarkModeBorderTokens$1, DarkModeShadowTokens$1, DarkModeRingTokens$1);
|
|
3446
3449
|
const oldTokens = Object.assign(DarkModeColorTokens, DarkModeBorderTokens, DarkModeRingTokens, DarkModeShadowTokens);
|
|
3447
|
-
this.darkModeColorAllTokens = Object.assign(VegaInternalThemeManager.
|
|
3450
|
+
this.darkModeColorAllTokens = Object.assign(VegaInternalThemeManager.getBranding() === 'heartland' ? oldTokens : newBrandTokens, CustomDarkModeColorTokens, this.dynamicCustomDarkModeColor);
|
|
3448
3451
|
const keys = Object.keys(this.darkModeColorAllTokens);
|
|
3449
3452
|
this.getStyleContainer(this.themeStyleContainerKey).innerHTML = `
|
|
3450
3453
|
html.dark {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as isBorderColorTokenType, b as BorderColors, e as BorderColorMap, k as isShadowsTokenType, f as Shadows, g as ShadowMap, l as isBorderTokenType, m as Borders, n as BorderMap, o as isSpacingTokenType, p as isBorderRadiusTokenType, q as isBackgroundColorTokenType, r as isTextColorTokenType, s as isBreakpointsTokenType, h as Spacing, t as isBorderStyleType, B as BorderRadius, C as Colors, u as isTypographyTokenType } from './type-guard-158f6d7a.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-dfed6d94.js';
|
|
5
5
|
import { a as TypographyKeys } from './typography-396de03f.js';
|
|
6
6
|
import { S as StateVariantFormatter, s as stateBackgroundColorFormatter } from './state-background-color-formatter-121ae7d3.js';
|
|
7
7
|
import { a as BorderStyle } from './ui-8424715a.js';
|
package/dist/esm/{element-appender-slimmer-16eaeb31.js → element-appender-slimmer-d196dd21.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { c as MapToComponentField, I as InjectVegaSlimmer, V as VegaSlimmer, L as LogUtility, M as MapToComponentMethod } from './global-slimmer-registry-17c4efd4.js';
|
|
2
2
|
import { f as findParent, c as isElementVisible, i as isParent } from './ui-ed1283bb.js';
|
|
3
|
-
import { I as InternalVegaZIndexManager } from './vega-skeleton-loader-controller-
|
|
3
|
+
import { I as InternalVegaZIndexManager } from './vega-skeleton-loader-controller-c2a8bd27.js';
|
|
4
4
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
5
5
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-15a84d26.js';
|
|
6
6
|
import { P as Placements, A as Alignments } from './ui-8424715a.js';
|
|
7
7
|
import { A as isTranslocationType } from './type-guard-158f6d7a.js';
|
|
8
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
8
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-dfed6d94.js';
|
|
9
9
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
10
|
-
import { S as SHADOW_ROOT_ELEMENT_SCROLLING } from './static-subject-title-
|
|
10
|
+
import { S as SHADOW_ROOT_ELEMENT_SCROLLING } from './static-subject-title-ca83d6b6.js';
|
|
11
11
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
12
12
|
import { d as domNodeSubjectFactory } from './dom-node-subject-factory-f77cf9cc.js';
|
|
13
|
-
import { p as VegaInternalNestEAHierarchyTreeChange } from './vega-internal-event-id-
|
|
13
|
+
import { p as VegaInternalNestEAHierarchyTreeChange } from './vega-internal-event-id-85ad403f.js';
|
|
14
14
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-715dccf9.js';
|
|
15
15
|
|
|
16
16
|
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -2,20 +2,20 @@ import { V as VegaSlimmer, I as InjectVegaSlimmer, c as MapToComponentField, M a
|
|
|
2
2
|
import { c as camelToDashCase } from './string-be824360.js';
|
|
3
3
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
4
4
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
5
|
-
import { U as UPDATE_TRANSLATION, c as FORM_FIELD_PENDING_VALID_CHANGE, d as FORM_FIELD_ELEMENT_DISCONNECTED, b as FORM_ELEMENT_VALUE_CHANGE, e as FORM_RESET_OPERATION_TRIGGERED, F as FORM_SUBMIT, f as FIELD_ERROR_MESSAGE_CHANGE, g as FORM_ELEMENT_VALIDATE } from './static-subject-title-
|
|
5
|
+
import { U as UPDATE_TRANSLATION, c as FORM_FIELD_PENDING_VALID_CHANGE, d as FORM_FIELD_ELEMENT_DISCONNECTED, b as FORM_ELEMENT_VALUE_CHANGE, e as FORM_RESET_OPERATION_TRIGGERED, F as FORM_SUBMIT, f as FIELD_ERROR_MESSAGE_CHANGE, g as FORM_ELEMENT_VALIDATE } from './static-subject-title-ca83d6b6.js';
|
|
6
6
|
import { f as findParent, c as isElementVisible } from './ui-ed1283bb.js';
|
|
7
7
|
import { i as isAsyncFunction, g as generateUUID } from './create-public-api-runtime-metrics-slimmer-8ada793f.js';
|
|
8
8
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
9
9
|
import { d as domNodeSubjectFactory } from './dom-node-subject-factory-f77cf9cc.js';
|
|
10
|
-
import { c as VegaInternalFieldErrorStateChange, d as VegaInternalValid } from './vega-internal-event-id-
|
|
11
|
-
import { V as VegaInternalTranslation } from './translation-
|
|
10
|
+
import { c as VegaInternalFieldErrorStateChange, d as VegaInternalValid } from './vega-internal-event-id-85ad403f.js';
|
|
11
|
+
import { V as VegaInternalTranslation } from './translation-cf7f020a.js';
|
|
12
12
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-15a84d26.js';
|
|
13
13
|
import { I as InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
|
|
14
14
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-715dccf9.js';
|
|
15
15
|
import { M as MutationObserverSlimmer } from './mutation-observer-slimmer-6cef9549.js';
|
|
16
16
|
import { A as AttributeOldValueMutationFilter } from './mutation-observer-filters-7ee2b410.js';
|
|
17
17
|
import { i as isArrayEqual } from './array-3113609f.js';
|
|
18
|
-
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-
|
|
18
|
+
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-be7a6ce3.js';
|
|
19
19
|
|
|
20
20
|
/** The `FormFieldValidationRuleHandler` class is responsible for handling the validation rules for a form field. */
|
|
21
21
|
class FormFieldValidationRuleHandler {
|