@globalpayments/vega 2.65.0 → 2.66.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-681a0ed4.js → app-globals-ab28f910.js} +6 -6
- package/dist/cjs/{child-nodes-event-prevent-slimmer-feb072c4.js → child-nodes-event-prevent-slimmer-eb803b14.js} +1 -1
- package/dist/cjs/{code-block-961d54e8.js → code-block-ab97a0a0.js} +12 -15
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-c5b8b47b.js → component-value-history-controller-slimmer.abstract-5630341e.js} +4 -4
- package/dist/cjs/{design-token-98652b67.js → design-token-847739f1.js} +1 -1
- package/dist/cjs/{dom-node-subject-observer-factory-56609e5a.js → dom-node-subject-observer-factory-f040608b.js} +5 -1
- package/dist/cjs/{dto-renderer-manager-4b9d2560.js → dto-renderer-manager-d0f0f2c0.js} +18 -33
- package/dist/cjs/{element-appender-slimmer-1f46981b.js → element-appender-slimmer-aead9bbb.js} +3 -3
- package/dist/cjs/{event-emit-slimmer-3cefb326.js → event-emit-slimmer-d21a0935.js} +2 -2
- package/dist/cjs/{form-field-controller-slimmer-1e1123ea.js → form-field-controller-slimmer-2a091912.js} +2 -2
- package/dist/cjs/{image-annotation-action-03b36f68.js → image-annotation-action-d84de785.js} +3 -3
- package/dist/cjs/{index-f2fe26a0.js → index-4b896e76.js} +1 -1
- package/dist/cjs/index-58ea899e.js +4 -0
- package/dist/cjs/index.cjs.js +11 -11
- package/dist/cjs/{inject-keyboard-manager-51033b3f.js → inject-keyboard-manager-13c66257.js} +1 -1
- package/dist/cjs/{internal-vega-event-manager-9b503f1a.js → internal-vega-event-manager-4d1ce667.js} +3 -2
- package/dist/cjs/{keyboard-manager-144907d7.js → keyboard-manager-af0d08a6.js} +7 -1
- package/dist/cjs/{keyboard-manager-slimmer-04c48756.js → keyboard-manager-slimmer-62f072cd.js} +1 -1
- package/dist/cjs/{language-extension-059d62f6.js → language-extension-d257e65d.js} +2 -2
- package/dist/cjs/loader.cjs.js +9 -9
- package/dist/cjs/{public-rules-58e0218b.js → public-rules-d2b9b8f0.js} +4 -4
- package/dist/cjs/{range-42732973.js → range-d610028e.js} +1 -1
- package/dist/cjs/{responsive-format-facade-29070d00.js → responsive-format-facade-71e7b74c.js} +3 -3
- package/dist/cjs/{rich-text-editor-required-rule-ce4dd5fb.js → rich-text-editor-required-rule-a8fe5f50.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-0d69ea76.js → string-input-formatter-slimmer-8236b5e1.js} +2 -2
- package/dist/cjs/{style-formatter-f6723cb3.js → style-formatter-6facb42b.js} +1 -1
- package/dist/cjs/{sub-state-notify-slimmer-066f2aa9.js → sub-state-notify-slimmer-78682046.js} +1 -1
- package/dist/cjs/{sub-state-observer-slimmer-569e3297.js → sub-state-observer-slimmer-73aecfff.js} +1 -1
- package/dist/cjs/{token-extension-260adb8a.js → token-extension-aa8d5cce.js} +7 -6
- package/dist/cjs/vega-accordion.cjs.entry.js +8 -8
- package/dist/cjs/vega-app-header-button.cjs.entry.js +9 -9
- package/dist/cjs/vega-banner.cjs.entry.js +3 -3
- package/dist/cjs/vega-box.cjs.entry.js +8 -8
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +29 -14
- package/dist/cjs/vega-button-circle.cjs.entry.js +9 -9
- package/dist/cjs/vega-button-group_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
- package/dist/cjs/vega-button.cjs.entry.js +8 -8
- package/dist/cjs/vega-calendar_4.cjs.entry.js +6 -6
- package/dist/cjs/vega-card.cjs.entry.js +7 -7
- package/dist/cjs/vega-carousel.cjs.entry.js +7 -7
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-chip.cjs.entry.js +9 -9
- package/dist/cjs/vega-code-block.cjs.entry.js +9 -9
- package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/vega-combo-box.cjs.entry.js +8 -8
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +15 -15
- package/dist/cjs/vega-dialog_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-divider.cjs.entry.js +7 -7
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +13 -13
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
- package/dist/cjs/vega-file-uploader.cjs.entry.js +5 -5
- package/dist/cjs/vega-flag-icon.cjs.entry.js +7 -7
- package/dist/cjs/vega-flex.cjs.entry.js +8 -8
- package/dist/cjs/vega-font.cjs.entry.js +7 -7
- package/dist/cjs/vega-form.cjs.entry.js +70 -12
- package/dist/cjs/vega-grid.cjs.entry.js +7 -7
- package/dist/cjs/vega-icon.cjs.entry.js +7 -7
- package/dist/cjs/vega-image-uploader.cjs.entry.js +10 -10
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +6 -6
- package/dist/cjs/vega-input-numeric.cjs.entry.js +9 -9
- package/dist/cjs/vega-input-passcode.cjs.entry.js +724 -0
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +9 -9
- 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 +23 -8
- package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +10 -10
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination.cjs.entry.js +8 -8
- package/dist/cjs/vega-popover_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +3 -3
- package/dist/cjs/vega-radio_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +6 -6
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +16 -16
- package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +9 -9
- package/dist/cjs/vega-signature-capture.cjs.entry.js +10 -10
- package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-table_8.cjs.entry.js +10 -10
- package/dist/cjs/vega-textarea.cjs.entry.js +6 -6
- 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 +9 -9
- package/dist/cjs/vega.cjs.js +9 -9
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-item-renderer.js +1 -1
- package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-renderer.js +12 -8
- package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.css +6 -6
- package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.js +32 -0
- package/dist/collection/components/vega-form/slimmers/controllers/vega-form-submit-controller.js +62 -5
- package/dist/collection/components/vega-input/vega-input.js +72 -5
- package/dist/collection/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-keyboard-controller.js +101 -0
- package/dist/collection/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-value-controller.js +115 -0
- package/dist/collection/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.js +166 -0
- package/dist/collection/components/vega-input-passcode/vega-input-passcode.css +90 -0
- package/dist/collection/components/vega-input-passcode/vega-input-passcode.js +513 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/code-block.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +3 -7
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +3 -7
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +4 -12
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +3 -7
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/code-block.test.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/html-block.test.js +4 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +1 -1
- package/dist/collection/constants/ui.js +2 -0
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +3 -2
- package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +3 -1
- package/dist/collection/helpers/event-manager/test/component-event-id-map.test.js +2 -1
- package/dist/collection/helpers/event-manager/test/vega-event-manager.test.js +2 -1
- package/dist/collection/helpers/immutable/immutable-array.js +133 -0
- package/dist/collection/helpers/immutable/test/immutable-array.test.js +78 -0
- package/dist/collection/helpers/keyboard/keyboard-manager.js +7 -1
- package/dist/collection/helpers/keyboard/test/keyboard-manager.test.js +4 -0
- package/dist/collection/value-model-adapters/angular-ng-model-accessor-adapter.js +1 -0
- package/dist/collection/value-model-adapters/vue-component-v-model-adaptor.js +1 -0
- package/dist/esm/{app-globals-1bacb762.js → app-globals-37a60cc1.js} +6 -6
- package/dist/esm/{child-nodes-event-prevent-slimmer-f32efdee.js → child-nodes-event-prevent-slimmer-735cb880.js} +1 -1
- package/dist/esm/{code-block-cb657afd.js → code-block-11b2bc1c.js} +12 -15
- package/dist/esm/{component-value-history-controller-slimmer.abstract-65a83eaf.js → component-value-history-controller-slimmer.abstract-16c5cb96.js} +4 -4
- package/dist/esm/{design-token-3889675a.js → design-token-297dc528.js} +1 -1
- package/dist/esm/{dom-node-subject-observer-factory-ed4b89f4.js → dom-node-subject-observer-factory-dca87b70.js} +4 -2
- package/dist/esm/{dto-renderer-manager-8cac8f0f.js → dto-renderer-manager-a1a3b6d2.js} +18 -33
- package/dist/esm/{element-appender-slimmer-31b21e1b.js → element-appender-slimmer-f7233708.js} +3 -3
- package/dist/esm/{event-emit-slimmer-000ca6a7.js → event-emit-slimmer-28fd360c.js} +2 -2
- package/dist/esm/{form-field-controller-slimmer-24dbc255.js → form-field-controller-slimmer-b23d9ff3.js} +2 -2
- package/dist/esm/{image-annotation-action-59ea166c.js → image-annotation-action-fc46c920.js} +3 -3
- package/dist/esm/index-090d31ca.js +4 -0
- package/dist/esm/{index-50b32f3d.js → index-c943d263.js} +1 -1
- package/dist/esm/index.js +11 -11
- package/dist/esm/{inject-keyboard-manager-f7d92809.js → inject-keyboard-manager-ffd351b9.js} +1 -1
- package/dist/esm/{internal-vega-event-manager-13e3ed3d.js → internal-vega-event-manager-a5a5938d.js} +3 -2
- package/dist/esm/{keyboard-manager-f4bbc452.js → keyboard-manager-5d8f3582.js} +7 -1
- package/dist/esm/{keyboard-manager-slimmer-a02cbc5f.js → keyboard-manager-slimmer-f39214e4.js} +1 -1
- package/dist/esm/{language-extension-038014ac.js → language-extension-314a2b18.js} +2 -2
- package/dist/esm/loader.js +9 -9
- package/dist/esm/{public-rules-a42e6f59.js → public-rules-c6a6946d.js} +4 -4
- package/dist/esm/{range-c08d8de1.js → range-b78254de.js} +1 -1
- package/dist/esm/{responsive-format-facade-d8ccc742.js → responsive-format-facade-a41e1be7.js} +3 -3
- package/dist/esm/{rich-text-editor-required-rule-3a8f319c.js → rich-text-editor-required-rule-d50c24da.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-c64c7855.js → string-input-formatter-slimmer-3acd240c.js} +2 -2
- package/dist/esm/{style-formatter-ab6a9248.js → style-formatter-f7effaac.js} +1 -1
- package/dist/esm/{sub-state-notify-slimmer-8b3b15ee.js → sub-state-notify-slimmer-56380f02.js} +1 -1
- package/dist/esm/{sub-state-observer-slimmer-2b98e2c9.js → sub-state-observer-slimmer-3504e2f2.js} +1 -1
- package/dist/esm/{token-extension-f5bf06a5.js → token-extension-b690953f.js} +7 -6
- package/dist/esm/vega-accordion.entry.js +8 -8
- package/dist/esm/vega-app-header-button.entry.js +9 -9
- package/dist/esm/vega-banner.entry.js +3 -3
- package/dist/esm/vega-box.entry.js +8 -8
- package/dist/esm/vega-breadcrumb.entry.js +29 -14
- package/dist/esm/vega-button-circle.entry.js +9 -9
- package/dist/esm/vega-button-group_2.entry.js +6 -6
- package/dist/esm/vega-button-link.entry.js +4 -4
- package/dist/esm/vega-button.entry.js +8 -8
- package/dist/esm/vega-calendar_4.entry.js +6 -6
- package/dist/esm/vega-card.entry.js +7 -7
- package/dist/esm/vega-carousel.entry.js +7 -7
- package/dist/esm/vega-checkbox_2.entry.js +6 -6
- package/dist/esm/vega-chip.entry.js +9 -9
- package/dist/esm/vega-code-block.entry.js +9 -9
- package/dist/esm/vega-color-picker.entry.js +5 -5
- package/dist/esm/vega-combo-box.entry.js +8 -8
- package/dist/esm/vega-date-picker_2.entry.js +15 -15
- package/dist/esm/vega-dialog_2.entry.js +9 -9
- package/dist/esm/vega-divider.entry.js +7 -7
- package/dist/esm/vega-dropdown_5.entry.js +13 -13
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-label.entry.js +3 -3
- package/dist/esm/vega-file-uploader.entry.js +5 -5
- package/dist/esm/vega-flag-icon.entry.js +7 -7
- package/dist/esm/vega-flex.entry.js +8 -8
- package/dist/esm/vega-font.entry.js +7 -7
- package/dist/esm/vega-form.entry.js +70 -12
- package/dist/esm/vega-grid.entry.js +7 -7
- package/dist/esm/vega-icon.entry.js +7 -7
- package/dist/esm/vega-image-uploader.entry.js +10 -10
- package/dist/esm/vega-input-credit-card.entry.js +6 -6
- package/dist/esm/vega-input-numeric.entry.js +9 -9
- package/dist/esm/vega-input-passcode.entry.js +720 -0
- package/dist/esm/vega-input-phone-number.entry.js +9 -9
- 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 +23 -8
- package/dist/esm/vega-item-toggle.entry.js +3 -3
- package/dist/esm/vega-left-nav_5.entry.js +10 -10
- package/dist/esm/vega-loader-wrapper_2.entry.js +6 -6
- package/dist/esm/vega-page-notification_2.entry.js +1 -1
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +3 -3
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +1 -1
- package/dist/esm/vega-pagination.entry.js +8 -8
- package/dist/esm/vega-popover_2.entry.js +11 -11
- package/dist/esm/vega-progress-tracker.entry.js +3 -3
- package/dist/esm/vega-radio_2.entry.js +8 -8
- package/dist/esm/vega-rich-text-content.entry.js +6 -6
- package/dist/esm/vega-rich-text-editor_4.entry.js +16 -16
- package/dist/esm/vega-segment-control.entry.js +3 -3
- package/dist/esm/vega-selection-chip_2.entry.js +11 -11
- package/dist/esm/vega-selection-tile_2.entry.js +7 -7
- package/dist/esm/vega-sidenav_3.entry.js +9 -9
- package/dist/esm/vega-signature-capture.entry.js +10 -10
- package/dist/esm/vega-stepper.entry.js +6 -6
- package/dist/esm/vega-tab-group_2.entry.js +4 -4
- package/dist/esm/vega-table_8.entry.js +10 -10
- package/dist/esm/vega-textarea.entry.js +6 -6
- 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 +9 -9
- package/dist/esm/vega.js +9 -9
- package/dist/sri/vega-sri-manifest.json +298 -294
- package/dist/types/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-renderer.d.ts +2 -1
- package/dist/types/components/vega-breadcrumb/types.d.ts +1 -1
- package/dist/types/components/vega-breadcrumb/vega-breadcrumb.d.ts +11 -0
- package/dist/types/components/vega-form/slimmers/controllers/vega-form-submit-controller.d.ts +17 -0
- package/dist/types/components/vega-input/types.d.ts +65 -0
- package/dist/types/components/vega-input/vega-input.d.ts +17 -2
- package/dist/types/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-keyboard-controller.d.ts +25 -0
- package/dist/types/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-value-controller.d.ts +47 -0
- package/dist/types/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.d.ts +29 -0
- package/dist/types/components/vega-input-passcode/vega-input-passcode.d.ts +135 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/code-block.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/nodes/code-block-node.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node.d.ts +2 -1
- package/dist/types/components.d.ts +173 -3
- package/dist/types/constants/ui.d.ts +1 -1
- package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +2 -0
- package/dist/types/helpers/immutable/immutable-array.d.ts +86 -0
- package/dist/types/helpers/immutable/immutable-map.d.ts +1 -1
- package/dist/types/helpers/immutable/immutable.d.ts +1 -0
- package/dist/types/helpers/immutable/test/immutable-array.test.d.ts +1 -0
- package/dist/types/types/components.type.d.ts +7 -1
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-6a4db686.entry.js → p-00071542.entry.js} +1 -1
- package/dist/vega/p-0113a83c.entry.js +1 -0
- package/dist/vega/{p-5e1c913d.entry.js → p-015cdbe7.entry.js} +1 -1
- package/dist/vega/p-019f7f95.js +1 -0
- package/dist/vega/{p-c12000ee.entry.js → p-03a1e82e.entry.js} +1 -1
- package/dist/vega/p-0d1eca78.entry.js +1 -0
- package/dist/vega/{p-74e684fc.entry.js → p-0ed53cce.entry.js} +1 -1
- package/dist/vega/{p-bc9484a6.js → p-129c0ce1.js} +1 -1
- package/dist/vega/p-16370cfb.js +1 -0
- package/dist/vega/p-19522949.js +1 -0
- package/dist/vega/{p-1f061725.entry.js → p-1a3cb65e.entry.js} +1 -1
- package/dist/vega/{p-85ad1c21.entry.js → p-2553031f.entry.js} +1 -1
- package/dist/vega/{p-c1fa6088.entry.js → p-276b1163.entry.js} +1 -1
- package/dist/vega/{p-9e6db93d.entry.js → p-2d430dc4.entry.js} +1 -1
- package/dist/vega/{p-299e14b4.entry.js → p-3288a65b.entry.js} +1 -1
- package/dist/vega/p-34800282.entry.js +1 -0
- package/dist/vega/{p-ebfc4323.entry.js → p-358e9800.entry.js} +1 -1
- package/dist/vega/{p-b4c25109.js → p-3925c16b.js} +1 -1
- package/dist/vega/{p-3b953a24.entry.js → p-39b9c57b.entry.js} +1 -1
- package/dist/vega/{p-63596567.entry.js → p-3a7f177a.entry.js} +1 -1
- package/dist/vega/p-41c3fcb4.js +1 -0
- package/dist/vega/p-447c7590.js +1 -0
- package/dist/vega/p-46830028.entry.js +1 -0
- package/dist/vega/p-47cae62d.entry.js +1 -0
- package/dist/vega/{p-228de113.js → p-47fa359b.js} +1 -1
- package/dist/vega/{p-c8a3fb7f.entry.js → p-4e33fff6.entry.js} +1 -1
- package/dist/vega/{p-63a5bbf4.entry.js → p-524693d8.entry.js} +1 -1
- package/dist/vega/{p-378e5881.js → p-54b62ecf.js} +1 -1
- package/dist/vega/{p-5cdcd08f.entry.js → p-59298f5e.entry.js} +1 -1
- package/dist/vega/{p-6f96dd01.entry.js → p-5a0524ab.entry.js} +1 -1
- package/dist/vega/{p-185dfdd4.entry.js → p-5e32866d.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-6d371296.entry.js → p-5f58d1da.entry.js} +1 -1
- package/dist/vega/{p-8a5c123f.entry.js → p-616cd622.entry.js} +1 -1
- package/dist/vega/{p-b68a13df.entry.js → p-65693321.entry.js} +1 -1
- package/dist/vega/p-67f159c3.js +1 -0
- package/dist/vega/{p-2f4f3744.entry.js → p-6f6ccf67.entry.js} +1 -1
- package/dist/vega/{p-ae598946.entry.js → p-6f7d42a0.entry.js} +1 -1
- package/dist/vega/{p-2033f86e.js → p-725f0a2c.js} +1 -1
- package/dist/vega/{p-833d81d0.entry.js → p-74d61782.entry.js} +1 -1
- package/dist/vega/{p-053eb64a.js → p-7b145620.js} +1 -1
- package/dist/vega/{p-5d36cc3f.entry.js → p-7c1d08db.entry.js} +1 -1
- package/dist/vega/{p-33c6fb3f.entry.js → p-7efb5ebe.entry.js} +1 -1
- package/dist/vega/{p-fee972e6.entry.js → p-7f69081b.entry.js} +1 -1
- package/dist/vega/{p-12d4488b.entry.js → p-7f9ec104.entry.js} +1 -1
- package/dist/vega/p-81105691.entry.js +1 -0
- package/dist/vega/p-822c6092.js +1 -0
- package/dist/vega/{p-7c594a9f.js → p-8350506e.js} +1 -1
- package/dist/vega/{p-99b1492c.js → p-85f9a980.js} +1 -1
- package/dist/vega/{p-d418ecc1.entry.js → p-892cbe7c.entry.js} +1 -1
- package/dist/vega/{p-78d607ca.entry.js → p-8d096fea.entry.js} +1 -1
- package/dist/vega/{p-fbc85265.entry.js → p-8d574fbd.entry.js} +1 -1
- package/dist/vega/{p-1eb5b772.entry.js → p-8d655fd2.entry.js} +1 -1
- package/dist/vega/p-8edf3513.js +1 -0
- package/dist/vega/{p-5f854901.entry.js → p-92a22562.entry.js} +1 -1
- package/dist/vega/{p-43257678.js → p-9fb6fbcc.js} +1 -1
- package/dist/vega/{p-cef9f638.js → p-a0467b83.js} +1 -1
- package/dist/vega/{p-3494a5f1.entry.js → p-a1b7a179.entry.js} +1 -1
- package/dist/vega/{p-c241f615.js → p-a7631c6b.js} +1 -1
- package/dist/vega/{p-0685cba6.entry.js → p-ab1001f5.entry.js} +1 -1
- package/dist/vega/{p-1f43f551.entry.js → p-ab8f99e9.entry.js} +1 -1
- package/dist/vega/{p-9439077d.entry.js → p-ad5393f0.entry.js} +1 -1
- package/dist/vega/{p-840c09c7.js → p-af5bfe34.js} +1 -1
- package/dist/vega/{p-ab3c4b43.entry.js → p-b2aaab66.entry.js} +1 -1
- package/dist/vega/{p-a69c9e42.entry.js → p-b431f9d5.entry.js} +1 -1
- package/dist/vega/{p-cf211582.entry.js → p-b82d3915.entry.js} +1 -1
- package/dist/vega/p-bee1cc34.entry.js +1 -0
- package/dist/vega/{p-901ff5d3.js → p-bf7f755b.js} +1 -1
- package/dist/vega/p-bf9476cd.entry.js +1 -0
- package/dist/vega/{p-676bee73.entry.js → p-c1da8328.entry.js} +1 -1
- package/dist/vega/{p-45ead9fe.js → p-c6ce2869.js} +1 -1
- package/dist/vega/{p-59d70a67.entry.js → p-cc519f53.entry.js} +1 -1
- package/dist/vega/{p-c96d28dc.entry.js → p-d006e732.entry.js} +1 -1
- package/dist/vega/p-d0e6454e.entry.js +1 -0
- package/dist/vega/{p-f83739d0.entry.js → p-d1dacaeb.entry.js} +1 -1
- package/dist/vega/{p-13c6a04c.entry.js → p-d4452dbc.entry.js} +1 -1
- package/dist/vega/{p-dabba918.entry.js → p-d5761532.entry.js} +1 -1
- package/dist/vega/{p-199dc74b.js → p-d88e88a7.js} +1 -1
- package/dist/vega/{p-303efbfe.entry.js → p-de624f7d.entry.js} +1 -1
- package/dist/vega/{p-dc92fec6.js → p-e6cccee4.js} +1 -1
- package/dist/vega/{p-9d492a46.entry.js → p-ea05a2fc.entry.js} +1 -1
- package/dist/vega/p-ed8bc4f0.entry.js +1 -0
- package/dist/vega/{p-64c3d021.js → p-f360c9ba.js} +1 -1
- package/dist/vega/{p-c682d53c.entry.js → p-fc8c5869.entry.js} +1 -1
- package/dist/vega/{p-fddca002.js → p-fde50319.js} +1 -1
- package/dist/vega/{p-ba24f7b9.entry.js → p-fe2e859f.entry.js} +1 -1
- package/dist/vega/{p-a61e2108.entry.js → p-fef846d5.entry.js} +1 -1
- package/dist/vega/{p-d3137a6e.entry.js → p-ff3bb4e2.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-050bb2ad.entry.js +0 -1
- package/dist/vega/p-1bd5d806.entry.js +0 -1
- package/dist/vega/p-24cb0a7e.js +0 -1
- package/dist/vega/p-2d91799a.entry.js +0 -1
- package/dist/vega/p-33837794.entry.js +0 -1
- package/dist/vega/p-39b4c838.js +0 -1
- package/dist/vega/p-3c21b875.js +0 -1
- package/dist/vega/p-5e2ef0b8.entry.js +0 -1
- package/dist/vega/p-5fec05a2.js +0 -1
- package/dist/vega/p-651fe4fc.js +0 -1
- package/dist/vega/p-852fa2d2.entry.js +0 -1
- package/dist/vega/p-a082d41b.entry.js +0 -1
- package/dist/vega/p-a4912b85.js +0 -1
- package/dist/vega/p-b510e4d7.js +0 -1
- package/dist/vega/p-d5d6dae6.js +0 -1
- package/dist/vega/p-e853105a.entry.js +0 -1
- package/dist/vega/p-fbd38139.entry.js +0 -1
|
@@ -39,10 +39,11 @@ export class RTETokenNode extends RTETextNode {
|
|
|
39
39
|
/**
|
|
40
40
|
* Clones the token node.
|
|
41
41
|
*
|
|
42
|
+
* @param {RTETextBlock} parent - The parent block for the cloned node.
|
|
42
43
|
* @returns {RTETokenNode} - The cloned token node.
|
|
43
44
|
*/
|
|
44
|
-
clone() {
|
|
45
|
-
return new RTETokenNode(this.id, this.token, this.text,
|
|
45
|
+
clone(parent) {
|
|
46
|
+
return new RTETokenNode(this.id, this.token, this.text, parent, this.annotationMap);
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
49
|
* Converts the token node to an HTML representation.
|
|
@@ -43,8 +43,8 @@ describe('RTECodeBlock', () => {
|
|
|
43
43
|
language: 'js',
|
|
44
44
|
content: 'const',
|
|
45
45
|
});
|
|
46
|
-
const cloneBlock = codeBlock.clone();
|
|
47
|
-
const cloneNode = codeBlock.children[0].clone();
|
|
46
|
+
const cloneBlock = codeBlock.clone(codeBlock.parent);
|
|
47
|
+
const cloneNode = codeBlock.children[0].clone(cloneBlock);
|
|
48
48
|
expect(cloneBlock.id).toEqual(codeBlock.id);
|
|
49
49
|
expect(cloneBlock.type).toEqual(codeBlock.type);
|
|
50
50
|
expect(cloneNode.type).toEqual(codeBlock.children[0].type);
|
|
@@ -404,7 +404,7 @@ describe('text node', () => {
|
|
|
404
404
|
const textBlock = new RTETextBlock('block-1', 'paragraph');
|
|
405
405
|
const textNode = new RTETextNode('1', 'This is a text.', textBlock);
|
|
406
406
|
textNode.apply(new BoldAnnotationAction(true));
|
|
407
|
-
const clonedNode = textNode.clone();
|
|
407
|
+
const clonedNode = textNode.clone(textBlock);
|
|
408
408
|
expect(textNode).toEqual(clonedNode);
|
|
409
409
|
expect(textNode).not.toBe(clonedNode);
|
|
410
410
|
expect(textNode.annotationMap).toEqual(clonedNode.annotationMap);
|
|
@@ -86,6 +86,8 @@ export const VegaNativeEventName = [
|
|
|
86
86
|
'reset',
|
|
87
87
|
'eventPreviewShow',
|
|
88
88
|
'monthYearChange',
|
|
89
|
+
'complete',
|
|
90
|
+
'paste',
|
|
89
91
|
];
|
|
90
92
|
// eslint-disable-next-line @typescript-eslint/typedef
|
|
91
93
|
export const CssStates = ['default', 'hover', 'active', 'focus-visible'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VegaExpand, VegaClick, VegaDropdownClick, VegaClose, VegaActionButtonClick, VegaChange, VegaEventClick, VegaDateDblClick, VegaMoreActionClick, VegaDateClick, VegaPageUpdate, VegaRemove, VegaCreate, VegaSearch, VegaMonthYearChange, VegaDropdownShow, VegaDropdownHide, VegaReset, VegaDropdownSearch, VegaSearchTrigger, VegaLabelButtonClick, VegaSelectFileChange, VegaRetry, VegaPreview, VegaFormSubmit, VegaFormReset, VegaValidate, VegaCancel, VegaFocus, VegaBlur, VegaCountryChange, VegaShow, VegaHide, VegaToggleStatus, VegaOpen, VegaStateUpdate, VegaGroupClick, VegaMenuClick, VegaActionClick, VegaPageSizeChange, VegaPopoverShow, VegaPopoverHide, VegaCurrentStepUpdate, VegaImageInserted, VegaSelectChange, VegaSelectAllChange, VegaRowClick, VegaRowExpand, VegaRowSelect, VegaRowSelectAll, } from './vega-event-id';
|
|
1
|
+
import { VegaExpand, VegaClick, VegaDropdownClick, VegaClose, VegaActionButtonClick, VegaChange, VegaEventClick, VegaDateDblClick, VegaMoreActionClick, VegaDateClick, VegaPageUpdate, VegaRemove, VegaCreate, VegaSearch, VegaMonthYearChange, VegaDropdownShow, VegaDropdownHide, VegaReset, VegaDropdownSearch, VegaSearchTrigger, VegaLabelButtonClick, VegaSelectFileChange, VegaRetry, VegaPreview, VegaFormSubmit, VegaFormReset, VegaValidate, VegaCancel, VegaFocus, VegaBlur, VegaPaste, VegaComplete, VegaCountryChange, VegaShow, VegaHide, VegaToggleStatus, VegaOpen, VegaStateUpdate, VegaGroupClick, VegaMenuClick, VegaActionClick, VegaPageSizeChange, VegaPopoverShow, VegaPopoverHide, VegaCurrentStepUpdate, VegaImageInserted, VegaSelectChange, VegaSelectAllChange, VegaRowClick, VegaRowExpand, VegaRowSelect, VegaRowSelectAll, } from './vega-event-id';
|
|
2
2
|
const entries = [
|
|
3
3
|
['vega-accordion', [VegaExpand]],
|
|
4
4
|
['vega-app-header-button', [VegaClick, VegaDropdownClick]],
|
|
@@ -34,9 +34,10 @@ const entries = [
|
|
|
34
34
|
['vega-file-uploader', [VegaChange, VegaSelectFileChange, VegaRemove, VegaRetry, VegaPreview]],
|
|
35
35
|
['vega-form', [VegaFormSubmit, VegaFormReset, VegaValidate]],
|
|
36
36
|
['vega-image-uploader', [VegaChange, VegaRemove, VegaCancel]],
|
|
37
|
-
['vega-input', [VegaChange, VegaFocus, VegaBlur, VegaLabelButtonClick]],
|
|
37
|
+
['vega-input', [VegaChange, VegaFocus, VegaBlur, VegaLabelButtonClick, VegaPaste]],
|
|
38
38
|
['vega-input-credit-card', [VegaChange, VegaBlur, VegaFocus]],
|
|
39
39
|
['vega-input-numeric', [VegaChange]],
|
|
40
|
+
['vega-input-passcode', [VegaChange, VegaComplete]],
|
|
40
41
|
['vega-input-phone-number', [VegaChange, VegaCountryChange]],
|
|
41
42
|
['vega-input-range', [VegaChange]],
|
|
42
43
|
['vega-input-select', [VegaChange, VegaSearch, VegaSearchTrigger, VegaShow, VegaHide]],
|
|
@@ -102,4 +102,6 @@ export const VegaPreview = new VegaEventID('vegaPreview', 'preview');
|
|
|
102
102
|
export const VegaLabelButtonClick = new VegaEventID('vegaLabelButtonClick', 'labelButtonClick');
|
|
103
103
|
export const VegaReset = new VegaEventID('vegaReset', 'reset');
|
|
104
104
|
export const VegaMonthYearChange = new VegaEventID('vegaMonthYearChange', 'monthYearChange');
|
|
105
|
-
export const
|
|
105
|
+
export const VegaComplete = new VegaEventID('vegaComplete', 'complete');
|
|
106
|
+
export const VegaPaste = new VegaEventID('vegaPaste', 'paste');
|
|
107
|
+
export const HTMLNativeEventIds = [VegaChange, VegaClick, VegaFocus, VegaBlur, VegaPaste];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VEGA_COMPONENT_EVENT_MAP } from '../event-id/component-event-id-map';
|
|
2
|
-
import { VegaBlur, VegaChange, VegaFocus, VegaLabelButtonClick } from '../event-id/vega-event-id';
|
|
2
|
+
import { VegaBlur, VegaChange, VegaFocus, VegaLabelButtonClick, VegaPaste } from '../event-id/vega-event-id';
|
|
3
3
|
test('VEGA_COMPONENT_EVENT_MAP size', () => {
|
|
4
4
|
expect(VEGA_COMPONENT_EVENT_MAP.size).not.toEqual(0);
|
|
5
5
|
});
|
|
@@ -9,5 +9,6 @@ test('VEGA_COMPONENT_EVENT_MAP vega-input', () => {
|
|
|
9
9
|
VegaFocus,
|
|
10
10
|
VegaBlur,
|
|
11
11
|
VegaLabelButtonClick,
|
|
12
|
+
VegaPaste,
|
|
12
13
|
]);
|
|
13
14
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VegaEventManager } from '../../public-api';
|
|
2
|
-
import { VegaBlur, VegaChange, VegaCreate, VegaDropdownClick, VegaDropdownHide, VegaDropdownSearch, VegaDropdownShow, VegaFocus, VegaLabelButtonClick, VegaReset, VegaSearchTrigger, } from '../event-id/vega-event-id';
|
|
2
|
+
import { VegaBlur, VegaChange, VegaCreate, VegaDropdownClick, VegaDropdownHide, VegaDropdownSearch, VegaDropdownShow, VegaFocus, VegaLabelButtonClick, VegaPaste, VegaReset, VegaSearchTrigger, } from '../event-id/vega-event-id';
|
|
3
3
|
import VegaTelemetryRuntimeMetricsManager from '@globalpayments/vega-telemetry-runtime-metrics/index';
|
|
4
4
|
import { sleep } from '../../../utils/test-utils';
|
|
5
5
|
describe('VegaEventManager', () => {
|
|
@@ -23,6 +23,7 @@ describe('VegaEventManager', () => {
|
|
|
23
23
|
VegaFocus,
|
|
24
24
|
VegaBlur,
|
|
25
25
|
VegaLabelButtonClick,
|
|
26
|
+
VegaPaste,
|
|
26
27
|
]);
|
|
27
28
|
expect(VegaEventManager.getEnabledEventIdsByComponent('vega-dropdown')).toEqual([
|
|
28
29
|
VegaDropdownShow,
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Immutable Array cannot be changed once created
|
|
3
|
+
*/
|
|
4
|
+
export class ImmutableArray {
|
|
5
|
+
/**
|
|
6
|
+
* The constructor of ImmutableArray
|
|
7
|
+
*
|
|
8
|
+
* @typedef T generic type parameter
|
|
9
|
+
* @param {T[]} initialArray - Optional initial array
|
|
10
|
+
* @param {() => void} onMutate - Optional callback invoked with the new ImmutableArray whenever a mutation is performed
|
|
11
|
+
*/
|
|
12
|
+
constructor(initialArray, onMutate) {
|
|
13
|
+
this.length = 0;
|
|
14
|
+
this.array = [];
|
|
15
|
+
if (initialArray) {
|
|
16
|
+
this.array = initialArray;
|
|
17
|
+
this.length = initialArray.length;
|
|
18
|
+
}
|
|
19
|
+
if (onMutate) {
|
|
20
|
+
this.onMutate = onMutate;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The function is called when the array is mutated
|
|
25
|
+
*
|
|
26
|
+
* @typedef T generic type parameter
|
|
27
|
+
* @param {ImmutableArray<T>} _newArr - The new array that was created.
|
|
28
|
+
*/
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
30
|
+
onMutate(_newArr) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Append items to the array and return a new ImmutableArray
|
|
35
|
+
*
|
|
36
|
+
* @param {T[]} items - The items to be appended to the array
|
|
37
|
+
* @returns {ImmutableArray<T>} - a new ImmutableArray with new items pushed.
|
|
38
|
+
*/
|
|
39
|
+
push(...items) {
|
|
40
|
+
return this.withMutation((arr) => {
|
|
41
|
+
arr.push(...items);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Remove the last item from the array and return a new ImmutableArray.
|
|
46
|
+
* If the array is empty, a new ImmutableArray with the same (empty) contents is returned.
|
|
47
|
+
*
|
|
48
|
+
* @returns {ImmutableArray<T>} - a new ImmutableArray with the last one popped
|
|
49
|
+
*/
|
|
50
|
+
pop() {
|
|
51
|
+
return this.withMutation((arr) => {
|
|
52
|
+
if (arr.length > 0)
|
|
53
|
+
arr.pop();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Update the item at the specified index and return a new ImmutableArray.
|
|
58
|
+
* If the index is out of range, no change is made and a new ImmutableArray (same contents) is returned.
|
|
59
|
+
*
|
|
60
|
+
* @param {number} index - Index of the item to update.
|
|
61
|
+
* @param {T} value - New value to set at the given index.
|
|
62
|
+
* @returns {ImmutableArray<T>} - a new ImmutableArray with updated item.
|
|
63
|
+
*/
|
|
64
|
+
set(index, value) {
|
|
65
|
+
return this.withMutation((arr) => {
|
|
66
|
+
if (index >= 0)
|
|
67
|
+
arr[index] = value;
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Set values from the provided array into this ImmutableArray one by one
|
|
72
|
+
*
|
|
73
|
+
* @param {T[]} values - Array of values to write into this array.
|
|
74
|
+
* @returns {ImmutableArray<T>} - a new ImmutableArray with updated items.
|
|
75
|
+
*/
|
|
76
|
+
setAll(values) {
|
|
77
|
+
return this.withMutation((arr) => {
|
|
78
|
+
arr.length = 0;
|
|
79
|
+
for (let i = 0; i < values.length; i++) {
|
|
80
|
+
arr[i] = values[i];
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Clear the array and return a new ImmutableArray
|
|
86
|
+
*
|
|
87
|
+
* @returns {ImmutableArray<T>} return a new ImmutableArray.
|
|
88
|
+
*/
|
|
89
|
+
clear() {
|
|
90
|
+
return this.withMutation((arr) => {
|
|
91
|
+
arr.length = 0;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Performs a mutation on a copy of the internal array and returns a new ImmutableArray
|
|
96
|
+
*
|
|
97
|
+
* @param {(arr: T[]) => void} fn - (arr: T[]) => void
|
|
98
|
+
* @returns {ImmutableArray<T>} A new ImmutableArray
|
|
99
|
+
*/
|
|
100
|
+
withMutation(fn) {
|
|
101
|
+
const newArr = [...this.array];
|
|
102
|
+
fn(newArr);
|
|
103
|
+
const newImmutable = new ImmutableArray(newArr, this.onMutate);
|
|
104
|
+
this.onMutate(newImmutable);
|
|
105
|
+
return newImmutable;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get item by index
|
|
109
|
+
*
|
|
110
|
+
* @param {number} index - index of the array items
|
|
111
|
+
* @returns {T | undefined} The array item with the index
|
|
112
|
+
*/
|
|
113
|
+
get(index) {
|
|
114
|
+
return this.array[index];
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Join array elements into a string separated by the given separator.
|
|
118
|
+
*
|
|
119
|
+
* @param {string} [separator=','] - Separator to use between elements.
|
|
120
|
+
* @returns {string} The joined string.
|
|
121
|
+
*/
|
|
122
|
+
join(separator) {
|
|
123
|
+
return this.array.join(separator);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* It returns an array of the values in the array
|
|
127
|
+
*
|
|
128
|
+
* @returns {T[]} An array of the values in the array.
|
|
129
|
+
*/
|
|
130
|
+
toArray() {
|
|
131
|
+
return this.array;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ImmutableArray } from '../immutable-array';
|
|
2
|
+
describe('immutableArray', () => {
|
|
3
|
+
test('array with default values', () => {
|
|
4
|
+
const array = new ImmutableArray(['a', 'b', 'c']);
|
|
5
|
+
expect(array.length).toEqual(3);
|
|
6
|
+
expect(array.get(0)).toEqual('a');
|
|
7
|
+
expect(array.get(1)).toEqual('b');
|
|
8
|
+
expect(array.get(2)).toEqual('c');
|
|
9
|
+
expect(array.get(4)).toEqual(undefined);
|
|
10
|
+
});
|
|
11
|
+
test('should produce new array if values changed', () => {
|
|
12
|
+
const array = new ImmutableArray();
|
|
13
|
+
const array1 = array.push('a');
|
|
14
|
+
const array2 = array.push(...['b', 'c', 'd']);
|
|
15
|
+
const array3 = array1.pop();
|
|
16
|
+
const array4 = array2.pop();
|
|
17
|
+
expect(array.length).toEqual(0);
|
|
18
|
+
expect(array1.length).toEqual(1);
|
|
19
|
+
expect(array1.toArray()).toEqual(['a']);
|
|
20
|
+
expect(array2.length).toEqual(3);
|
|
21
|
+
expect(array2.toArray()).toEqual(['b', 'c', 'd']);
|
|
22
|
+
expect(array3.length).toEqual(0);
|
|
23
|
+
expect(array4.length).toEqual(2);
|
|
24
|
+
expect(array4.toArray()).toEqual(['b', 'c']);
|
|
25
|
+
});
|
|
26
|
+
test('reassigned array in callback', () => {
|
|
27
|
+
let array = new ImmutableArray(new Array(), (newArray) => {
|
|
28
|
+
array = newArray;
|
|
29
|
+
});
|
|
30
|
+
array.push('a');
|
|
31
|
+
array.push('b');
|
|
32
|
+
array.push('c');
|
|
33
|
+
array.push('d');
|
|
34
|
+
expect(array.length).toEqual(4);
|
|
35
|
+
expect(array.toArray()).toEqual(['a', 'b', 'c', 'd']);
|
|
36
|
+
});
|
|
37
|
+
test('clear the array values', () => {
|
|
38
|
+
let array = new ImmutableArray(new Array('a', 'b', 'c'), (newArray) => {
|
|
39
|
+
array = newArray;
|
|
40
|
+
});
|
|
41
|
+
array.clear();
|
|
42
|
+
expect(array.length).toEqual(0);
|
|
43
|
+
});
|
|
44
|
+
test('set and get the item in array', () => {
|
|
45
|
+
let array = new ImmutableArray(new Array('a', 'b', 'c'), (newArray) => {
|
|
46
|
+
array = newArray;
|
|
47
|
+
});
|
|
48
|
+
array.set(1, 'd');
|
|
49
|
+
expect(array.get(1)).toEqual('d');
|
|
50
|
+
expect(array.toArray()).toEqual(['a', 'd', 'c']);
|
|
51
|
+
});
|
|
52
|
+
test('setAll the items in array', () => {
|
|
53
|
+
const arr = ['a', 'b', 'c'];
|
|
54
|
+
let array = new ImmutableArray([], (newArray) => {
|
|
55
|
+
array = newArray;
|
|
56
|
+
});
|
|
57
|
+
array.setAll(arr);
|
|
58
|
+
expect(array.toArray()).toEqual(['a', 'b', 'c']);
|
|
59
|
+
});
|
|
60
|
+
test('join the items in array to a string', () => {
|
|
61
|
+
let array = new ImmutableArray(['a', 'b', 'c'], (newArray) => {
|
|
62
|
+
array = newArray;
|
|
63
|
+
});
|
|
64
|
+
const str = array.join();
|
|
65
|
+
expect(str).toEqual('a,b,c');
|
|
66
|
+
});
|
|
67
|
+
test('change the array by calling withMutation method', () => {
|
|
68
|
+
let array = new ImmutableArray(new Array('a', 'b', 'c'), (newArray) => {
|
|
69
|
+
array = newArray;
|
|
70
|
+
});
|
|
71
|
+
expect(array.length).toEqual(3);
|
|
72
|
+
array.withMutation((arr) => {
|
|
73
|
+
arr.length = 0;
|
|
74
|
+
arr.push('d');
|
|
75
|
+
});
|
|
76
|
+
expect(array.toArray()).toEqual(['d']);
|
|
77
|
+
});
|
|
78
|
+
});
|
|
@@ -70,7 +70,13 @@ class KeyboardManager {
|
|
|
70
70
|
* @returns {boolean} - should invoke
|
|
71
71
|
*/
|
|
72
72
|
shouldInvokeListener(listener, event) {
|
|
73
|
-
|
|
73
|
+
let keyCode = '';
|
|
74
|
+
if (event.code) {
|
|
75
|
+
keyCode = event.code;
|
|
76
|
+
}
|
|
77
|
+
else if (event.key && event.key !== 'Unidentified') {
|
|
78
|
+
keyCode = event.key;
|
|
79
|
+
}
|
|
74
80
|
let activeElementInScope = [];
|
|
75
81
|
let activeElementOutScope = [];
|
|
76
82
|
const isKeyCodeAccepted = Array.isArray(listener.keyCode)
|
|
@@ -28,15 +28,19 @@ describe('KeyboardManager', () => {
|
|
|
28
28
|
KeyboardManager['listenKeyPress']();
|
|
29
29
|
});
|
|
30
30
|
test('should proper while use KeyboardManager', () => {
|
|
31
|
+
const callback0 = jest.fn();
|
|
31
32
|
const callback1 = jest.fn();
|
|
32
33
|
const callback2 = jest.fn();
|
|
33
34
|
const callback3 = jest.fn();
|
|
34
35
|
KeyboardManager.register([
|
|
36
|
+
{ keyCode: 'ArrowLeft', activeElementInScope: [button1], callback: callback0 },
|
|
35
37
|
{ keyCode: 'Tab', activeElementInScope: [button1], callback: callback1 },
|
|
36
38
|
{ keyCode: ['ArrowUp', 'ArrowDown'], activeElementInScope: [button1], callback: callback2 },
|
|
37
39
|
{ keyCode: 'Escape', activeElementInScope: [button1], callback: callback3 },
|
|
38
40
|
]);
|
|
39
41
|
Object.assign(document, { activeElement: button1 });
|
|
42
|
+
document.dispatchEvent(new KeyboardEvent('keyup', { code: '', key: 'ArrowLeft' }));
|
|
43
|
+
expect(callback0).toBeCalledTimes(1);
|
|
40
44
|
document.dispatchEvent(new KeyboardEvent('keyup', { code: 'Tab' }));
|
|
41
45
|
expect(callback1).toBeCalledTimes(1);
|
|
42
46
|
document.dispatchEvent(new KeyboardEvent('keyup', { code: 'ArrowUp' }));
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { F as FeatureFlag } from './feature-flag-controller-51659753.js';
|
|
2
|
-
import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager, c as VegaDialog, d as VegaEventManager, e as VegaZIndexManager, f as VegaSkeletonLoader, g as VegaRTETokenExtension } from './token-extension-
|
|
2
|
+
import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager, c as VegaDialog, d as VegaEventManager, e as VegaZIndexManager, f as VegaSkeletonLoader, g as VegaRTETokenExtension } from './token-extension-b690953f.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 './internal-icon-manager-f0486245.js';
|
|
6
6
|
import './wait-for-vega-handler-c2c07ac3.js';
|
|
7
7
|
import './ui-bb99c0c2.js';
|
|
8
8
|
import { V as VegaInternalTranslation, a as VegaTranslation, s as staticTranslations } from './translation-f10b1e19.js';
|
|
9
|
-
import { V as VegaRTEContent } from './dto-renderer-manager-
|
|
9
|
+
import { V as VegaRTEContent } from './dto-renderer-manager-a1a3b6d2.js';
|
|
10
10
|
import { v as vegaNonceManager, s as setVegaNonce } from './vega-nonce-manager-87615d3c.js';
|
|
11
|
-
import { V as VegaRTEPresetToolbarItems } from './code-block-
|
|
11
|
+
import { V as VegaRTEPresetToolbarItems } from './code-block-11b2bc1c.js';
|
|
12
12
|
import { T as TypographyUrls } from './typography-396de03f.js';
|
|
13
13
|
import { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-81443274.js';
|
|
14
|
-
import { w as waitForVega } from './index-
|
|
15
|
-
import { V as VegaRTELanguageExtension } from './language-extension-
|
|
14
|
+
import { w as waitForVega } from './index-c943d263.js';
|
|
15
|
+
import { V as VegaRTELanguageExtension } from './language-extension-314a2b18.js';
|
|
16
16
|
import { U as UPDATE_TRANSLATION } from './static-subject-title-52f93124.js';
|
|
17
17
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
18
18
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
@@ -396,7 +396,7 @@ function injectVegaRichTextEditorClassIntoGlobal() {
|
|
|
396
396
|
* Inject VegaPublicValidationRules to global as a public api
|
|
397
397
|
*/
|
|
398
398
|
function injectVegaPublicValidationRules() {
|
|
399
|
-
void import('./public-rules-
|
|
399
|
+
void import('./public-rules-c6a6946d.js').then((module) => {
|
|
400
400
|
Object.entries(module).forEach(([name, value]) => {
|
|
401
401
|
globalThis[name] = value;
|
|
402
402
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
2
|
-
import { i as internalVegaEventManager, j as jqueryDelegatedStrategyController } from './internal-vega-event-manager-
|
|
2
|
+
import { i as internalVegaEventManager, j as jqueryDelegatedStrategyController } from './internal-vega-event-manager-a5a5938d.js';
|
|
3
3
|
import { v as vegaEnvManager } from './vega-env-manager-8f8dc473.js';
|
|
4
4
|
import { F as FeatureFlag } from './feature-flag-controller-51659753.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
2
|
-
import { d as domNodeSubjectFactory } from './dom-node-subject-observer-factory-
|
|
2
|
+
import { d as domNodeSubjectFactory } from './dom-node-subject-observer-factory-dca87b70.js';
|
|
3
3
|
import { b as VegaInternalRichTextEditorFlushChanges, c as VegaInternalRichTextEditorSelectionRangeChange } from './vega-internal-event-id-5c3e5f7f.js';
|
|
4
4
|
import { c as camelToDashCase } from './string-a953eafc.js';
|
|
5
5
|
import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
|
@@ -172,7 +172,7 @@ class LinkGroupAnnotation extends Annotation {
|
|
|
172
172
|
clone() {
|
|
173
173
|
const clonedAnnotation = new LinkGroupAnnotation('');
|
|
174
174
|
this.linkGroups.forEach((nodes, key) => {
|
|
175
|
-
clonedAnnotation.linkGroups.set(key, nodes.map((node) => node.clone()));
|
|
175
|
+
clonedAnnotation.linkGroups.set(key, nodes.map((node) => node.clone(node.parent)));
|
|
176
176
|
});
|
|
177
177
|
return clonedAnnotation;
|
|
178
178
|
}
|
|
@@ -2593,8 +2593,8 @@ class RTETextNode extends RTENode {
|
|
|
2593
2593
|
/**
|
|
2594
2594
|
* @inheritDoc
|
|
2595
2595
|
*/
|
|
2596
|
-
clone() {
|
|
2597
|
-
const cloned = new RTETextNode(this.id, this.text,
|
|
2596
|
+
clone(parent) {
|
|
2597
|
+
const cloned = new RTETextNode(this.id, this.text, parent, super.cloneAnnotations());
|
|
2598
2598
|
return cloned;
|
|
2599
2599
|
}
|
|
2600
2600
|
/**
|
|
@@ -3568,15 +3568,11 @@ class RTETextBlock extends RTEBlock {
|
|
|
3568
3568
|
/**
|
|
3569
3569
|
* @inheritDoc
|
|
3570
3570
|
*/
|
|
3571
|
-
clone() {
|
|
3571
|
+
clone(parent) {
|
|
3572
3572
|
const clonedBlock = new RTETextBlock(this.id, this.type);
|
|
3573
|
-
clonedBlock.children = this.children.map((node) =>
|
|
3574
|
-
const clonedNode = node.clone();
|
|
3575
|
-
clonedNode.parent = clonedBlock;
|
|
3576
|
-
return clonedNode;
|
|
3577
|
-
});
|
|
3573
|
+
clonedBlock.children = this.children.map((node) => node.clone(clonedBlock));
|
|
3578
3574
|
clonedBlock.annotationMap = super.cloneAnnotations();
|
|
3579
|
-
clonedBlock.parent =
|
|
3575
|
+
clonedBlock.parent = parent;
|
|
3580
3576
|
return clonedBlock;
|
|
3581
3577
|
}
|
|
3582
3578
|
/**
|
|
@@ -4057,8 +4053,9 @@ class RTECodeBlockNode extends RTEDecoratorNode {
|
|
|
4057
4053
|
/**
|
|
4058
4054
|
* @inheritDoc
|
|
4059
4055
|
*/
|
|
4060
|
-
clone() {
|
|
4061
|
-
|
|
4056
|
+
clone(parent) {
|
|
4057
|
+
const cloned = new RTECodeBlockNode(this.id, this.text, this.language, parent);
|
|
4058
|
+
return cloned;
|
|
4062
4059
|
}
|
|
4063
4060
|
/**
|
|
4064
4061
|
* @inheritDoc
|
|
@@ -4170,9 +4167,9 @@ class RTECodeBlock extends RTEBlock {
|
|
|
4170
4167
|
/**
|
|
4171
4168
|
* @inheritDoc
|
|
4172
4169
|
*/
|
|
4173
|
-
clone() {
|
|
4170
|
+
clone(parent) {
|
|
4174
4171
|
const cloneCodeBlock = RTECodeBlock.from(this.toJSON());
|
|
4175
|
-
cloneCodeBlock.parent =
|
|
4172
|
+
cloneCodeBlock.parent = parent;
|
|
4176
4173
|
return cloneCodeBlock;
|
|
4177
4174
|
}
|
|
4178
4175
|
/**
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { M as MapToComponentMethod, V as VegaSlimmer, L as LogUtility, c as MapToComponentField } from './global-slimmer-registry-17c4efd4.js';
|
|
2
|
-
import { Y as RTECodeBlockNode, a as RTETextNode, Z as ZERO_WIDTH_SPACE, T as SelectionChangeAction, O as InternalAnnotationTypeEnum, s as stateEntityRenderingRegistry, n as RTEBlock, J as RTENode, v as RTEDecoratorNode, q as RTECodeBlock } from './code-block-
|
|
2
|
+
import { Y as RTECodeBlockNode, a as RTETextNode, Z as ZERO_WIDTH_SPACE, T as SelectionChangeAction, O as InternalAnnotationTypeEnum, s as stateEntityRenderingRegistry, n as RTEBlock, J as RTENode, v as RTEDecoratorNode, q as RTECodeBlock } from './code-block-11b2bc1c.js';
|
|
3
3
|
import { d as debounce } from './timer-9321173b.js';
|
|
4
4
|
import { g as getActiveElement } from './component-7d906393.js';
|
|
5
5
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
6
|
-
import { d as domNodeSubjectFactory, D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-
|
|
6
|
+
import { d as domNodeSubjectFactory, D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-dca87b70.js';
|
|
7
7
|
import { c as VegaInternalRichTextEditorSelectionRangeChange, a as VegaInternalUpdateRTECursorPosition } from './vega-internal-event-id-5c3e5f7f.js';
|
|
8
8
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
9
|
-
import { R as RTERange } from './range-
|
|
9
|
+
import { R as RTERange } from './range-b78254de.js';
|
|
10
10
|
import { S as SynchronizeTaskQueue } from './synchronize-task-queue-ac8acc3b.js';
|
|
11
11
|
import { i as isHTMLElement } from './ui-bb99c0c2.js';
|
|
12
|
-
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-
|
|
12
|
+
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-f39214e4.js';
|
|
13
13
|
|
|
14
14
|
let processing = false;
|
|
15
15
|
/**
|
|
@@ -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-12f7654b.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-a41e1be7.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-0f01d27a.js';
|
|
7
7
|
import { a as BorderStyle } from './ui-8424715a.js';
|
|
@@ -106,7 +106,9 @@ const VegaPreview = new VegaEventID('vegaPreview', 'preview');
|
|
|
106
106
|
const VegaLabelButtonClick = new VegaEventID('vegaLabelButtonClick', 'labelButtonClick');
|
|
107
107
|
const VegaReset = new VegaEventID('vegaReset', 'reset');
|
|
108
108
|
const VegaMonthYearChange = new VegaEventID('vegaMonthYearChange', 'monthYearChange');
|
|
109
|
-
const
|
|
109
|
+
const VegaComplete = new VegaEventID('vegaComplete', 'complete');
|
|
110
|
+
const VegaPaste = new VegaEventID('vegaPaste', 'paste');
|
|
111
|
+
const HTMLNativeEventIds = [VegaChange, VegaClick, VegaFocus, VegaBlur, VegaPaste];
|
|
110
112
|
|
|
111
113
|
/** The DomNodeSubject class represents a subject related to DOM nodes. */
|
|
112
114
|
class DomNodeSubject {
|
|
@@ -241,4 +243,4 @@ class DomNodeSubjectObserverFactory {
|
|
|
241
243
|
}
|
|
242
244
|
}
|
|
243
245
|
|
|
244
|
-
export { VegaValidate as A, VegaCancel as B, VegaFocus as C, DomNodeSubjectObserverFactory as D, VegaBlur as E,
|
|
246
|
+
export { VegaRowSelectAll as $, VegaValidate as A, VegaCancel as B, VegaFocus as C, DomNodeSubjectObserverFactory as D, VegaBlur as E, VegaPaste as F, VegaComplete as G, VegaCountryChange as H, VegaShow as I, VegaHide as J, VegaToggleStatus as K, VegaOpen as L, VegaStateUpdate as M, VegaGroupClick as N, VegaMenuClick as O, VegaActionClick as P, VegaPageSizeChange as Q, VegaPopoverShow as R, VegaPopoverHide as S, VegaCurrentStepUpdate as T, VegaImageInserted as U, VegaDropdownClick as V, VegaSelectChange as W, VegaSelectAllChange as X, VegaRowClick as Y, VegaRowExpand as Z, VegaRowSelect as _, VegaClick as a, VegaExpand as b, VegaClose as c, domNodeSubjectFactory as d, VegaActionButtonClick as e, VegaChange as f, VegaEventClick as g, VegaDateDblClick as h, VegaMoreActionClick as i, VegaDateClick as j, VegaPageUpdate as k, VegaRemove as l, VegaCreate as m, VegaSearch as n, VegaMonthYearChange as o, VegaDropdownShow as p, VegaDropdownHide as q, VegaReset as r, VegaDropdownSearch as s, VegaSearchTrigger as t, VegaLabelButtonClick as u, VegaSelectFileChange as v, VegaRetry as w, VegaPreview as x, VegaFormSubmit as y, VegaFormReset as z };
|