@globalpayments/vega 2.52.0 → 2.54.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-4ecf85bb.js → app-globals-f1ff47e3.js} +1 -1
- package/dist/cjs/{selection-controller-1d7c0999.js → component-value-history-controller-slimmer.abstract-6bfb9145.js} +82 -0
- package/dist/cjs/{design-token-3f4f0bc3.js → design-token-d15e60fa.js} +1 -1
- package/dist/cjs/{element-appender-slimmer-1946ff07.js → element-appender-slimmer-2f16891f.js} +3 -3
- package/dist/cjs/{form-field-controller-slimmer-e721359b.js → form-field-controller-slimmer-dc6d0fe1.js} +1 -1
- package/dist/cjs/index.cjs.js +5 -4
- package/dist/cjs/{inject-keyboard-manager-dd628ccc.js → inject-keyboard-manager-11df8296.js} +1 -1
- package/dist/cjs/{keyboard-manager-8c74eeb9.js → keyboard-manager-1843112c.js} +6 -0
- package/dist/cjs/{keyboard-manager-slimmer-eb364bee.js → keyboard-manager-slimmer-0a5f5770.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/cjs/{page-resize-observer-slimmer-efa79728.js → page-resize-observer-slimmer-11937d6f.js} +3 -3
- package/dist/cjs/{responsive-format-facade-6b81192d.js → responsive-format-facade-4a19e115.js} +2 -2
- package/dist/cjs/{style-formatter-497d0fa4.js → style-formatter-b8cea5ee.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +5 -5
- package/dist/cjs/vega-app-footer.cjs.entry.js +2 -2
- package/dist/cjs/vega-app-header-button.cjs.entry.js +4 -4
- package/dist/cjs/vega-box.cjs.entry.js +6 -5
- package/dist/cjs/vega-button-circle.cjs.entry.js +5 -5
- package/dist/cjs/vega-button.cjs.entry.js +4 -4
- package/dist/cjs/vega-calendar_3.cjs.entry.js +1 -1
- package/dist/cjs/vega-card.cjs.entry.js +5 -4
- package/dist/cjs/vega-carousel.cjs.entry.js +22 -23
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-chip.cjs.entry.js +5 -5
- package/dist/cjs/vega-code-block.cjs.entry.js +210 -94
- package/dist/cjs/vega-color-picker.cjs.entry.js +3 -3
- package/dist/cjs/vega-combo-box.cjs.entry.js +5 -5
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-dialog_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-divider.cjs.entry.js +5 -4
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +24 -9
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-file-uploader.cjs.entry.js +2 -2
- package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -4
- package/dist/cjs/vega-flex.cjs.entry.js +6 -5
- package/dist/cjs/vega-font.cjs.entry.js +5 -4
- package/dist/cjs/vega-form.cjs.entry.js +3 -3
- package/dist/cjs/vega-grid.cjs.entry.js +5 -4
- package/dist/cjs/vega-icon.cjs.entry.js +4 -4
- package/dist/cjs/vega-image-uploader.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-numeric.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +4 -4
- package/dist/cjs/vega-input-range.cjs.entry.js +2 -2
- package/dist/cjs/vega-input-select.cjs.entry.js +5 -5
- package/dist/cjs/vega-input.cjs.entry.js +2 -2
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +7 -7
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +4 -3
- package/dist/cjs/vega-pagination.cjs.entry.js +3 -3
- package/dist/cjs/vega-popover_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-radio_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +28 -4
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +37 -75
- package/dist/cjs/vega-segment-control.cjs.entry.js +1 -1
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +4 -4
- package/dist/cjs/vega-signature-capture.cjs.entry.js +5 -5
- package/dist/cjs/{vega-skeleton-loader-controller-ae2ab090.js → vega-skeleton-loader-controller-3833c813.js} +1 -1
- package/dist/cjs/vega-stepper.cjs.entry.js +3 -3
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +25 -3
- package/dist/cjs/vega-table_8.cjs.entry.js +4 -4
- package/dist/cjs/vega-text.cjs.entry.js +2 -1
- package/dist/cjs/vega-textarea.cjs.entry.js +3 -3
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +7 -6
- package/dist/cjs/vega.cjs.js +5 -4
- package/dist/collection/components/vega-app-footer/vega-app-footer.js +43 -3
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +1 -1
- package/dist/collection/components/vega-carousel/vega-carousel.js +19 -19
- package/dist/collection/components/vega-code-block/slimmers/controllers/vega-code-block-history-controller.js +88 -0
- package/dist/collection/components/vega-code-block/slimmers/controllers/vega-code-block-input-controller.js +36 -23
- package/dist/collection/components/vega-code-block/slimmers/controllers/vega-code-block-value-controller.js +11 -1
- package/dist/collection/components/vega-code-block/vega-code-block.js +5 -0
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.js +4 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown.js +29 -0
- package/dist/collection/components/vega-input-numeric/vega-input-numeric.js +2 -2
- package/dist/collection/components/vega-nav/vega-left-nav-link/vega-left-nav-link.css +1 -1
- package/dist/collection/components/vega-nav/vega-left-nav-link/vega-left-nav-link.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/code-block-renderer.js +28 -4
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/history-controller.js +28 -67
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +2 -2
- package/dist/collection/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-pages-controller.js +14 -0
- package/dist/collection/components/vega-tab-group/vega-tab-group.js +11 -0
- package/dist/collection/components/vega-virtual-scroll/slimmers/controllers/vega-virtual-scroll-mode-controller.js +4 -1
- package/dist/collection/components/vega-virtual-scroll/vega-virtual-scroll.js +2 -1
- package/dist/collection/helpers/keyboard/keyboard-manager.js +6 -0
- package/dist/collection/helpers/keyboard/test/keyboard-manager.test.js +31 -0
- package/dist/collection/helpers/slimmers/component-value-history-controller-slimmer.abstract.js +81 -0
- package/dist/collection/helpers/slimmers/page-resize-observer-slimmer.js +3 -3
- package/dist/collection/helpers/slimmers/test/page-resize-observer-slimmer.test.js +56 -0
- package/dist/esm/{app-globals-d96d623d.js → app-globals-4881974a.js} +1 -1
- package/dist/esm/{selection-controller-3d6dfc87.js → component-value-history-controller-slimmer.abstract-0a0ef33f.js} +82 -1
- package/dist/esm/{design-token-2060cd0d.js → design-token-9bbefd23.js} +1 -1
- package/dist/esm/{element-appender-slimmer-dbdad1df.js → element-appender-slimmer-8652e8d7.js} +3 -3
- package/dist/esm/{form-field-controller-slimmer-846cda92.js → form-field-controller-slimmer-6f49d396.js} +1 -1
- package/dist/esm/index.js +5 -4
- package/dist/esm/{inject-keyboard-manager-e39c0fd9.js → inject-keyboard-manager-a15cf43c.js} +1 -1
- package/dist/esm/{keyboard-manager-9564ad83.js → keyboard-manager-f496a623.js} +6 -0
- package/dist/esm/{keyboard-manager-slimmer-2218e6ba.js → keyboard-manager-slimmer-a4cc9593.js} +1 -1
- package/dist/esm/loader.js +5 -4
- package/dist/esm/{page-resize-observer-slimmer-c51f1912.js → page-resize-observer-slimmer-0bf7fbf3.js} +3 -3
- package/dist/esm/{responsive-format-facade-8c0ce819.js → responsive-format-facade-bcc2fd21.js} +2 -2
- package/dist/esm/{style-formatter-1eca1299.js → style-formatter-00d6c32f.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +5 -5
- package/dist/esm/vega-app-footer.entry.js +2 -2
- package/dist/esm/vega-app-header-button.entry.js +4 -4
- package/dist/esm/vega-box.entry.js +6 -5
- package/dist/esm/vega-button-circle.entry.js +5 -5
- package/dist/esm/vega-button.entry.js +4 -4
- package/dist/esm/vega-calendar_3.entry.js +1 -1
- package/dist/esm/vega-card.entry.js +5 -4
- package/dist/esm/vega-carousel.entry.js +22 -23
- package/dist/esm/vega-checkbox_2.entry.js +3 -3
- package/dist/esm/vega-chip.entry.js +5 -5
- package/dist/esm/vega-code-block.entry.js +207 -91
- package/dist/esm/vega-color-picker.entry.js +3 -3
- package/dist/esm/vega-combo-box.entry.js +5 -5
- package/dist/esm/vega-date-picker_2.entry.js +8 -8
- package/dist/esm/vega-dialog_2.entry.js +5 -5
- package/dist/esm/vega-divider.entry.js +5 -4
- package/dist/esm/vega-dropdown_5.entry.js +24 -9
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-file-uploader.entry.js +2 -2
- package/dist/esm/vega-flag-icon.entry.js +5 -4
- package/dist/esm/vega-flex.entry.js +6 -5
- package/dist/esm/vega-font.entry.js +5 -4
- package/dist/esm/vega-form.entry.js +3 -3
- package/dist/esm/vega-grid.entry.js +5 -4
- package/dist/esm/vega-icon.entry.js +4 -4
- package/dist/esm/vega-image-uploader.entry.js +5 -5
- package/dist/esm/vega-input-credit-card.entry.js +3 -3
- package/dist/esm/vega-input-numeric.entry.js +5 -5
- package/dist/esm/vega-input-phone-number.entry.js +4 -4
- package/dist/esm/vega-input-range.entry.js +2 -2
- package/dist/esm/vega-input-select.entry.js +5 -5
- package/dist/esm/vega-input.entry.js +2 -2
- package/dist/esm/vega-left-nav_5.entry.js +7 -7
- package/dist/esm/vega-loader-wrapper_2.entry.js +4 -3
- package/dist/esm/vega-pagination.entry.js +3 -3
- package/dist/esm/vega-popover_2.entry.js +6 -6
- package/dist/esm/vega-radio_2.entry.js +4 -4
- package/dist/esm/vega-rich-text-content.entry.js +28 -4
- package/dist/esm/vega-rich-text-editor_4.entry.js +35 -73
- package/dist/esm/vega-segment-control.entry.js +1 -1
- package/dist/esm/vega-selection-chip_2.entry.js +5 -5
- package/dist/esm/vega-selection-tile_2.entry.js +2 -2
- package/dist/esm/vega-sidenav_3.entry.js +4 -4
- package/dist/esm/vega-signature-capture.entry.js +5 -5
- package/dist/esm/{vega-skeleton-loader-controller-06f48dd2.js → vega-skeleton-loader-controller-9d1ffa6c.js} +1 -1
- package/dist/esm/vega-stepper.entry.js +3 -3
- package/dist/esm/vega-tab-group_2.entry.js +25 -3
- package/dist/esm/vega-table_8.entry.js +4 -4
- package/dist/esm/vega-text.entry.js +2 -1
- package/dist/esm/vega-textarea.entry.js +3 -3
- package/dist/esm/vega-time-picker_2.entry.js +8 -8
- package/dist/esm/vega-toggle-switch.entry.js +2 -2
- package/dist/esm/vega-tooltip_2.entry.js +7 -6
- package/dist/esm/vega.js +5 -4
- package/dist/types/components/vega-app-footer/types.d.ts +1 -0
- package/dist/types/components/vega-app-footer/vega-app-footer.d.ts +12 -0
- package/dist/types/components/vega-app-header-button/types.d.ts +1 -0
- package/dist/types/components/vega-carousel/vega-carousel.d.ts +1 -1
- package/dist/types/components/vega-code-block/slimmers/controllers/vega-code-block-history-controller.d.ts +47 -0
- package/dist/types/components/vega-code-block/slimmers/controllers/vega-code-block-value-controller.d.ts +8 -1
- package/dist/types/components/vega-code-block/vega-code-block.d.ts +2 -0
- package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.d.ts +1 -0
- package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +8 -0
- package/dist/types/components/vega-input-numeric/vega-input-numeric.d.ts +1 -1
- package/dist/types/components/vega-nav/vega-left-nav-link/vega-left-nav-link.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/code-block-renderer.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/history-controller.d.ts +8 -19
- package/dist/types/components/vega-tab-group/slimmers/vega-tab-group/controllers/vega-tab-group-pages-controller.d.ts +4 -0
- package/dist/types/components/vega-tab-group/vega-tab-group.d.ts +5 -0
- package/dist/types/components/vega-virtual-scroll/vega-virtual-scroll.d.ts +1 -0
- package/dist/types/components.d.ts +36 -6
- package/dist/types/helpers/slimmers/component-value-history-controller-slimmer.abstract.d.ts +48 -0
- package/dist/types/utils/timer.d.ts +1 -1
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-05588c85.entry.js → p-002062c3.entry.js} +1 -1
- package/dist/vega/{p-2490a391.entry.js → p-063d0bee.entry.js} +1 -1
- package/dist/vega/{p-029300db.entry.js → p-0e8324f2.entry.js} +1 -1
- package/dist/vega/{p-62734ef7.entry.js → p-13ca73c7.entry.js} +1 -1
- package/dist/vega/p-1b165fbb.entry.js +1 -0
- package/dist/vega/{p-2a4c313e.entry.js → p-1d41f551.entry.js} +1 -1
- package/dist/vega/p-1e4b6f0a.entry.js +1 -0
- package/dist/vega/{p-abac6b00.entry.js → p-23064067.entry.js} +1 -1
- package/dist/vega/{p-a2d47741.entry.js → p-246090cf.entry.js} +1 -1
- package/dist/vega/{p-5f594deb.entry.js → p-29262ad6.entry.js} +1 -1
- package/dist/vega/p-327be043.js +1 -0
- package/dist/vega/p-43ba9a8a.entry.js +1 -0
- package/dist/vega/{p-685939dc.entry.js → p-468bf93a.entry.js} +1 -1
- package/dist/vega/{p-310f0791.entry.js → p-4df90a1b.entry.js} +1 -1
- package/dist/vega/p-4f5079bc.entry.js +1 -0
- package/dist/vega/p-547692bf.entry.js +1 -0
- package/dist/vega/{p-e00da6d4.entry.js → p-56dc1345.entry.js} +1 -1
- package/dist/vega/{p-06db5a2e.entry.js → p-57005931.entry.js} +1 -1
- package/dist/vega/p-5a6b8846.entry.js +1 -0
- package/dist/vega/p-5e8e4aba.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-888e3f52.entry.js → p-61e1e356.entry.js} +1 -1
- package/dist/vega/p-6bd7114d.entry.js +1 -0
- package/dist/vega/{p-10edaab7.entry.js → p-72e14f49.entry.js} +1 -1
- package/dist/vega/p-73821eba.entry.js +1 -0
- package/dist/vega/{p-75855aaf.entry.js → p-7704a608.entry.js} +1 -1
- package/dist/vega/{p-7f2c98df.entry.js → p-78937642.entry.js} +1 -1
- package/dist/vega/{p-ca0294c9.entry.js → p-79370ad4.entry.js} +1 -1
- package/dist/vega/p-7cb11f3f.entry.js +1 -0
- package/dist/vega/p-7d9cd9c8.js +1 -0
- package/dist/vega/{p-40577e8e.js → p-822cd8e5.js} +1 -1
- package/dist/vega/{p-517615af.entry.js → p-8270bb8f.entry.js} +1 -1
- package/dist/vega/{p-c22c628b.entry.js → p-84a31a31.entry.js} +1 -1
- package/dist/vega/{p-092c87b5.entry.js → p-9a0d3d2d.entry.js} +1 -1
- package/dist/vega/p-9dc9fcf3.js +1 -0
- package/dist/vega/p-a2c4c241.entry.js +1 -0
- package/dist/vega/p-a46ac2eb.js +1 -0
- package/dist/vega/{p-adadb1a1.entry.js → p-a63e2fee.entry.js} +1 -1
- package/dist/vega/p-ad858290.entry.js +1 -0
- package/dist/vega/{p-3e8a8aa5.entry.js → p-b6e0d996.entry.js} +1 -1
- package/dist/vega/{p-33bd7e31.js → p-b89a9760.js} +1 -1
- package/dist/vega/{p-72eb8998.entry.js → p-bbdc6170.entry.js} +1 -1
- package/dist/vega/{p-35c9cd1d.entry.js → p-c10b4f47.entry.js} +1 -1
- package/dist/vega/{p-eeab4167.entry.js → p-c212a1e3.entry.js} +1 -1
- package/dist/vega/{p-e1ba6325.entry.js → p-c48a8510.entry.js} +1 -1
- package/dist/vega/{p-ab2a6d14.entry.js → p-c5afd9aa.entry.js} +1 -1
- package/dist/vega/{p-efb06a25.entry.js → p-c7e2a155.entry.js} +1 -1
- package/dist/vega/p-c8a87f06.entry.js +1 -0
- package/dist/vega/p-c990e249.js +1 -0
- package/dist/vega/{p-8d3764d3.entry.js → p-ca91268b.entry.js} +1 -1
- package/dist/vega/p-cae183fd.entry.js +1 -0
- package/dist/vega/p-cb36ccf0.entry.js +1 -0
- package/dist/vega/{p-55563f5f.js → p-cc6410e6.js} +1 -1
- package/dist/vega/{p-eb832119.js → p-d5f1794e.js} +1 -1
- package/dist/vega/{p-72e64237.js → p-da1d0c02.js} +1 -1
- package/dist/vega/{p-812b9d6d.entry.js → p-da95668c.entry.js} +1 -1
- package/dist/vega/p-e66f6b59.entry.js +9 -0
- package/dist/vega/p-e8b56d3f.entry.js +1 -0
- package/dist/vega/p-ec3495de.entry.js +1 -0
- package/dist/vega/{p-44dee180.entry.js → p-ecd9a973.entry.js} +1 -1
- package/dist/vega/p-f17c9093.entry.js +1 -0
- package/dist/vega/{p-b13fff4d.entry.js → p-f50cd6c3.entry.js} +1 -1
- package/dist/vega/{p-b4a1a8e1.entry.js → p-f7062473.entry.js} +1 -1
- package/dist/vega/{p-a0dab2d0.js → p-f9cf7e36.js} +1 -1
- package/dist/vega/{p-d8eec0bb.entry.js → p-fc790de5.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-05383290.entry.js +0 -1
- package/dist/vega/p-06fb002a.js +0 -1
- package/dist/vega/p-0f034db5.entry.js +0 -1
- package/dist/vega/p-0fb26be0.entry.js +0 -9
- package/dist/vega/p-1df029c2.js +0 -1
- package/dist/vega/p-2f5d9aab.js +0 -1
- package/dist/vega/p-32a24ef1.entry.js +0 -1
- package/dist/vega/p-3a6b4208.entry.js +0 -1
- package/dist/vega/p-3b34389d.js +0 -1
- package/dist/vega/p-52905c68.entry.js +0 -1
- package/dist/vega/p-642da014.entry.js +0 -1
- package/dist/vega/p-65cca90f.js +0 -1
- package/dist/vega/p-7f0def5a.entry.js +0 -1
- package/dist/vega/p-834434d5.js +0 -1
- package/dist/vega/p-8a0d7805.entry.js +0 -1
- package/dist/vega/p-90954fe4.entry.js +0 -1
- package/dist/vega/p-afc49b98.entry.js +0 -1
- package/dist/vega/p-b7594b78.entry.js +0 -1
- package/dist/vega/p-c91190df.entry.js +0 -1
- package/dist/vega/p-cb643d8d.entry.js +0 -1
- package/dist/vega/p-e16e23b7.entry.js +0 -1
- package/dist/vega/p-e5f1fd0b.entry.js +0 -1
- package/dist/vega/p-f2f31686.entry.js +0 -1
- package/dist/vega/p-f41ae5e0.entry.js +0 -1
|
@@ -44,7 +44,10 @@ export class VegaVirtualScrollModeController extends VegaSlimmer {
|
|
|
44
44
|
*/
|
|
45
45
|
setMode() {
|
|
46
46
|
const originalMode = this.mode;
|
|
47
|
-
this.mode =
|
|
47
|
+
this.mode =
|
|
48
|
+
this.source.length > this.virtualizationThreshold && this.virtualizationThreshold > 0
|
|
49
|
+
? 'virtual'
|
|
50
|
+
: 'normal';
|
|
48
51
|
if (originalMode === 'normal' && this.mode === 'virtual') {
|
|
49
52
|
this.positionController.changeModeFromNormalToVirtual();
|
|
50
53
|
}
|
|
@@ -52,6 +52,7 @@ export class VegaVirtualScroll {
|
|
|
52
52
|
/**
|
|
53
53
|
* The count of the source that will be used as the threshold for determining whether to use virtual scrolling.
|
|
54
54
|
* If the count of source exceeds this threshold, we employ virtual scrolling. Otherwise, normal item rendering is used
|
|
55
|
+
* If the value is 0, it means we will disable the virtualization all the time.
|
|
55
56
|
*
|
|
56
57
|
* @vegaVersion 2.3.0
|
|
57
58
|
*/
|
|
@@ -199,7 +200,7 @@ export class VegaVirtualScroll {
|
|
|
199
200
|
"name": "vegaVersion",
|
|
200
201
|
"text": "2.3.0"
|
|
201
202
|
}],
|
|
202
|
-
"text": "The count of the source that will be used as the threshold for determining whether to use virtual scrolling.\nIf the count of source exceeds this threshold, we employ virtual scrolling. Otherwise, normal item rendering is used"
|
|
203
|
+
"text": "The count of the source that will be used as the threshold for determining whether to use virtual scrolling.\nIf the count of source exceeds this threshold, we employ virtual scrolling. Otherwise, normal item rendering is used\nIf the value is 0, it means we will disable the virtualization all the time."
|
|
203
204
|
},
|
|
204
205
|
"attribute": "virtualization-threshold",
|
|
205
206
|
"reflect": false,
|
|
@@ -76,6 +76,9 @@ class KeyboardManager {
|
|
|
76
76
|
const isKeyCodeAccepted = Array.isArray(listener.keyCode)
|
|
77
77
|
? listener.keyCode.includes(keyCode)
|
|
78
78
|
: listener.keyCode === keyCode;
|
|
79
|
+
if (!isKeyCodeAccepted) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
79
82
|
/* istanbul ignore next */
|
|
80
83
|
if (typeof listener.activeElementInScope === 'function') {
|
|
81
84
|
activeElementInScope = listener.activeElementInScope();
|
|
@@ -95,6 +98,9 @@ class KeyboardManager {
|
|
|
95
98
|
return isParent(getDeepActiveElementInShadow(), element);
|
|
96
99
|
})
|
|
97
100
|
: true;
|
|
101
|
+
if (!isActiveElementInScope) {
|
|
102
|
+
return false;
|
|
103
|
+
}
|
|
98
104
|
const isActiveElementOutScope = listener.activeElementOutScope
|
|
99
105
|
? activeElementOutScope.every((element) => !isParent(getDeepActiveElementInShadow(), element))
|
|
100
106
|
: true;
|
|
@@ -203,4 +203,35 @@ describe('KeyboardManager', () => {
|
|
|
203
203
|
expect(callback2).toBeCalledTimes(1);
|
|
204
204
|
expect(callback3).toBeCalledTimes(2);
|
|
205
205
|
});
|
|
206
|
+
test('should not check the next condition when the prev condition is not pass', () => {
|
|
207
|
+
const callback = jest.fn();
|
|
208
|
+
const inScopeCallback = jest.fn().mockReturnValue([button1]);
|
|
209
|
+
const mockArray = new Array();
|
|
210
|
+
spyOn(mockArray, 'every').and.callThrough();
|
|
211
|
+
const outScopeCallback = jest.fn().mockReturnValue(mockArray);
|
|
212
|
+
KeyboardManager.register([
|
|
213
|
+
{
|
|
214
|
+
keyCode: 'Tab',
|
|
215
|
+
activeElementInScope: inScopeCallback,
|
|
216
|
+
activeElementOutScope: outScopeCallback,
|
|
217
|
+
callback: callback,
|
|
218
|
+
},
|
|
219
|
+
]);
|
|
220
|
+
document.dispatchEvent(new KeyboardEvent('keyup', { code: 'ArrowUp' }));
|
|
221
|
+
expect(callback).toBeCalledTimes(0);
|
|
222
|
+
expect(inScopeCallback).toBeCalledTimes(0);
|
|
223
|
+
expect(outScopeCallback).toBeCalledTimes(0);
|
|
224
|
+
Object.assign(document, { activeElement: button2 });
|
|
225
|
+
document.dispatchEvent(new KeyboardEvent('keyup', { code: 'Tab' }));
|
|
226
|
+
expect(callback).toBeCalledTimes(0);
|
|
227
|
+
expect(inScopeCallback).toBeCalledTimes(1);
|
|
228
|
+
expect(outScopeCallback).toBeCalledTimes(1);
|
|
229
|
+
expect(mockArray.every).toBeCalledTimes(0);
|
|
230
|
+
Object.assign(document, { activeElement: button1 });
|
|
231
|
+
document.dispatchEvent(new KeyboardEvent('keyup', { code: 'Tab' }));
|
|
232
|
+
expect(callback).toBeCalledTimes(1);
|
|
233
|
+
expect(inScopeCallback).toBeCalledTimes(2);
|
|
234
|
+
expect(outScopeCallback).toBeCalledTimes(2);
|
|
235
|
+
expect(mockArray.every).toBeCalledTimes(1);
|
|
236
|
+
});
|
|
206
237
|
});
|
package/dist/collection/helpers/slimmers/component-value-history-controller-slimmer.abstract.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { KeyboardManagerSlimmer } from './keyboard-manager-slimmer';
|
|
2
|
+
import { debounce } from '../../utils/timer';
|
|
3
|
+
/**
|
|
4
|
+
* An abstract class that manages the history of component values.
|
|
5
|
+
*/
|
|
6
|
+
export class ComponentValueHistoryControllerSlimmer extends KeyboardManagerSlimmer {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(() => this.getKeyboardShortcutOptions.call(this));
|
|
9
|
+
this.redoStack = [];
|
|
10
|
+
this.undoStack = [];
|
|
11
|
+
this.registerHistoryDelay = 300;
|
|
12
|
+
this.registerHistoryDebounced = debounce((state) => {
|
|
13
|
+
this.internalRegisterHistory(state);
|
|
14
|
+
}, this.registerHistoryDelay, this);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Registers history based on the editor state.
|
|
18
|
+
*
|
|
19
|
+
* @typedef T generic type parameter
|
|
20
|
+
* @param {T} editorState - The state to record in history.
|
|
21
|
+
* @param {boolean} [isForce] - If true, the history will be registered immediately without debounce.
|
|
22
|
+
*/
|
|
23
|
+
registerHistory(editorState, isForce = false) {
|
|
24
|
+
if (isForce) {
|
|
25
|
+
this.internalRegisterHistory(editorState);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
this.registerHistoryDebounced(editorState);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Internal function to register history immediately.
|
|
33
|
+
*
|
|
34
|
+
* @typedef T generic type parameter
|
|
35
|
+
* @param {T} state - The state to record in history.
|
|
36
|
+
*/
|
|
37
|
+
internalRegisterHistory(state) {
|
|
38
|
+
this.redoStack = []; // clear redo stack when new action happens.
|
|
39
|
+
this.undoStack.push(state);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Returns the keyboard shortcut options for undo/redo functionality.
|
|
43
|
+
*
|
|
44
|
+
* @returns {KeyboardEventListener[]} - An array of keyboard shortcut options.
|
|
45
|
+
*/
|
|
46
|
+
getKeyboardShortcutOptions() {
|
|
47
|
+
const baseOption = {
|
|
48
|
+
keyCode: 'KeyZ',
|
|
49
|
+
activeElementInScope: this.getEffectiveTargets(),
|
|
50
|
+
activeElementOutScope: this.getIneffectiveTargets.bind(this),
|
|
51
|
+
eventName: 'keydown',
|
|
52
|
+
modifierPressed: true,
|
|
53
|
+
};
|
|
54
|
+
return [
|
|
55
|
+
Object.assign(Object.assign({}, baseOption), { shiftKey: false,
|
|
56
|
+
/**
|
|
57
|
+
* Callback function for the undo action.
|
|
58
|
+
*
|
|
59
|
+
* @param {KeyboardEvent} e - The keyboard event triggered by the user.
|
|
60
|
+
*/
|
|
61
|
+
callback: (e) => {
|
|
62
|
+
e.preventDefault();
|
|
63
|
+
if (this.undoStack.length > 0) {
|
|
64
|
+
void this.undo();
|
|
65
|
+
}
|
|
66
|
+
} }),
|
|
67
|
+
Object.assign(Object.assign({}, baseOption), { shiftKey: true,
|
|
68
|
+
/**
|
|
69
|
+
* Callback function for the redo action.
|
|
70
|
+
*
|
|
71
|
+
* @param {KeyboardEvent} e - The keyboard event triggered by the user.
|
|
72
|
+
*/
|
|
73
|
+
callback: (e) => {
|
|
74
|
+
e.preventDefault();
|
|
75
|
+
if (this.redoStack.length > 0) {
|
|
76
|
+
void this.redo();
|
|
77
|
+
}
|
|
78
|
+
} }),
|
|
79
|
+
];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -6,6 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { MapToComponentMethod, MapToComponentField, VegaSlimmer } from 'vega-slimmer/core';
|
|
8
8
|
import { getCurrentBreakpoint } from '../../utils/breakpoints';
|
|
9
|
+
import { tryGetDocument } from '../../utils/try-get-document';
|
|
9
10
|
/**
|
|
10
11
|
* The `PageResizeObserverSlimmer` class is a TypeScript class that extends `VegaSlimmer` and provides functionality for observing page resize events.
|
|
11
12
|
*
|
|
@@ -83,7 +84,7 @@ export class PageResizeObserverSlimmer extends VegaSlimmer {
|
|
|
83
84
|
*/
|
|
84
85
|
observerResizeObserver() {
|
|
85
86
|
var _a;
|
|
86
|
-
if (this.resizeObserver) {
|
|
87
|
+
if (this.resizeObserver && tryGetDocument()) {
|
|
87
88
|
const resizeObserver = this.resizeObserver;
|
|
88
89
|
let observers = null;
|
|
89
90
|
if ((_a = this.observerEntry) === null || _a === void 0 ? void 0 : _a.target) {
|
|
@@ -98,8 +99,7 @@ export class PageResizeObserverSlimmer extends VegaSlimmer {
|
|
|
98
99
|
resizeObserver.observe(observers);
|
|
99
100
|
}
|
|
100
101
|
else {
|
|
101
|
-
|
|
102
|
-
resizeObserver.observe(document.body);
|
|
102
|
+
resizeObserver.observe(tryGetDocument().body);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -190,6 +190,9 @@ describe('ComponentResizeObserverSlimmer with vegaResizeObserver', () => {
|
|
|
190
190
|
value: MockedResizeObserver,
|
|
191
191
|
});
|
|
192
192
|
});
|
|
193
|
+
afterAll(() => {
|
|
194
|
+
window['VegaResizeObserver'] = null;
|
|
195
|
+
});
|
|
193
196
|
test('should use vegaResizeObserver while it defined', () => {
|
|
194
197
|
class MockedPageResizeObserverController extends PageResizeObserverSlimmer {
|
|
195
198
|
constructor(options) {
|
|
@@ -220,3 +223,56 @@ describe('ComponentResizeObserverSlimmer with vegaResizeObserver', () => {
|
|
|
220
223
|
expect(mockedComponent['resizeObserver']).not.toBeNull();
|
|
221
224
|
});
|
|
222
225
|
});
|
|
226
|
+
describe('test document is not defined', () => {
|
|
227
|
+
const originalDocument = globalThis.document;
|
|
228
|
+
const observeMock = jest.fn();
|
|
229
|
+
const disconnectMock = jest.fn();
|
|
230
|
+
beforeEach(() => {
|
|
231
|
+
window.ResizeObserver = jest.fn().mockImplementation(() => {
|
|
232
|
+
return {
|
|
233
|
+
observe: observeMock,
|
|
234
|
+
disconnect: disconnectMock,
|
|
235
|
+
};
|
|
236
|
+
});
|
|
237
|
+
delete globalThis.document;
|
|
238
|
+
});
|
|
239
|
+
afterEach(() => {
|
|
240
|
+
globalThis.document = originalDocument;
|
|
241
|
+
jest.restoreAllMocks();
|
|
242
|
+
});
|
|
243
|
+
test('should not trigger observe when document not exist', () => {
|
|
244
|
+
const mockCallback = jest.fn();
|
|
245
|
+
class MockedPageResizeObserverController extends PageResizeObserverSlimmer {
|
|
246
|
+
constructor(options) {
|
|
247
|
+
super(options);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
class MockedComponent {
|
|
251
|
+
constructor() {
|
|
252
|
+
this.controller = new MockedPageResizeObserverController({
|
|
253
|
+
callback: () => {
|
|
254
|
+
mockCallback();
|
|
255
|
+
},
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
connectedCallback() {
|
|
259
|
+
methodPlaceholder();
|
|
260
|
+
}
|
|
261
|
+
disconnectedCallback() {
|
|
262
|
+
methodPlaceholder();
|
|
263
|
+
}
|
|
264
|
+
componentDidLoad() {
|
|
265
|
+
methodPlaceholder();
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
__decorate([
|
|
269
|
+
InjectVegaSlimmer()
|
|
270
|
+
], MockedComponent.prototype, "controller", void 0);
|
|
271
|
+
const mockedComponent = new MockedComponent();
|
|
272
|
+
const host = new MockHTMLElement('body', 'div');
|
|
273
|
+
mockedComponent.host = host;
|
|
274
|
+
mockedComponent.componentDidLoad();
|
|
275
|
+
expect(observeMock).not.toHaveBeenCalled();
|
|
276
|
+
expect(mockCallback).not.toHaveBeenCalled();
|
|
277
|
+
});
|
|
278
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as FeatureFlag } from './feature-flag-controller-0fbe8fb0.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-9d1ffa6c.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';
|
|
@@ -8,6 +8,7 @@ import { b as VegaInternalRichTextEditorSelectionRangeChange } from './vega-inte
|
|
|
8
8
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
9
9
|
import { f as findParent } from './ui-7d177fb0.js';
|
|
10
10
|
import { S as SynchronizeTaskQueue } from './synchronize-task-queue-ac8acc3b.js';
|
|
11
|
+
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-a4cc9593.js';
|
|
11
12
|
|
|
12
13
|
let processing = false;
|
|
13
14
|
/**
|
|
@@ -754,4 +755,84 @@ __decorate([
|
|
|
754
755
|
MapToComponentMethod('watchValueUpdate')
|
|
755
756
|
], SelectionController.prototype, "watchValueUpdate", null);
|
|
756
757
|
|
|
757
|
-
|
|
758
|
+
/**
|
|
759
|
+
* An abstract class that manages the history of component values.
|
|
760
|
+
*/
|
|
761
|
+
class ComponentValueHistoryControllerSlimmer extends KeyboardManagerSlimmer {
|
|
762
|
+
constructor() {
|
|
763
|
+
super(() => this.getKeyboardShortcutOptions.call(this));
|
|
764
|
+
this.redoStack = [];
|
|
765
|
+
this.undoStack = [];
|
|
766
|
+
this.registerHistoryDelay = 300;
|
|
767
|
+
this.registerHistoryDebounced = debounce((state) => {
|
|
768
|
+
this.internalRegisterHistory(state);
|
|
769
|
+
}, this.registerHistoryDelay, this);
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* Registers history based on the editor state.
|
|
773
|
+
*
|
|
774
|
+
* @typedef T generic type parameter
|
|
775
|
+
* @param {T} editorState - The state to record in history.
|
|
776
|
+
* @param {boolean} [isForce] - If true, the history will be registered immediately without debounce.
|
|
777
|
+
*/
|
|
778
|
+
registerHistory(editorState, isForce = false) {
|
|
779
|
+
if (isForce) {
|
|
780
|
+
this.internalRegisterHistory(editorState);
|
|
781
|
+
}
|
|
782
|
+
else {
|
|
783
|
+
this.registerHistoryDebounced(editorState);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* Internal function to register history immediately.
|
|
788
|
+
*
|
|
789
|
+
* @typedef T generic type parameter
|
|
790
|
+
* @param {T} state - The state to record in history.
|
|
791
|
+
*/
|
|
792
|
+
internalRegisterHistory(state) {
|
|
793
|
+
this.redoStack = []; // clear redo stack when new action happens.
|
|
794
|
+
this.undoStack.push(state);
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* Returns the keyboard shortcut options for undo/redo functionality.
|
|
798
|
+
*
|
|
799
|
+
* @returns {KeyboardEventListener[]} - An array of keyboard shortcut options.
|
|
800
|
+
*/
|
|
801
|
+
getKeyboardShortcutOptions() {
|
|
802
|
+
const baseOption = {
|
|
803
|
+
keyCode: 'KeyZ',
|
|
804
|
+
activeElementInScope: this.getEffectiveTargets(),
|
|
805
|
+
activeElementOutScope: this.getIneffectiveTargets.bind(this),
|
|
806
|
+
eventName: 'keydown',
|
|
807
|
+
modifierPressed: true,
|
|
808
|
+
};
|
|
809
|
+
return [
|
|
810
|
+
Object.assign(Object.assign({}, baseOption), { shiftKey: false,
|
|
811
|
+
/**
|
|
812
|
+
* Callback function for the undo action.
|
|
813
|
+
*
|
|
814
|
+
* @param {KeyboardEvent} e - The keyboard event triggered by the user.
|
|
815
|
+
*/
|
|
816
|
+
callback: (e) => {
|
|
817
|
+
e.preventDefault();
|
|
818
|
+
if (this.undoStack.length > 0) {
|
|
819
|
+
void this.undo();
|
|
820
|
+
}
|
|
821
|
+
} }),
|
|
822
|
+
Object.assign(Object.assign({}, baseOption), { shiftKey: true,
|
|
823
|
+
/**
|
|
824
|
+
* Callback function for the redo action.
|
|
825
|
+
*
|
|
826
|
+
* @param {KeyboardEvent} e - The keyboard event triggered by the user.
|
|
827
|
+
*/
|
|
828
|
+
callback: (e) => {
|
|
829
|
+
e.preventDefault();
|
|
830
|
+
if (this.redoStack.length > 0) {
|
|
831
|
+
void this.redo();
|
|
832
|
+
}
|
|
833
|
+
} }),
|
|
834
|
+
];
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
export { AutoRunWhenReRenderTaskQueueSlimmer as A, ComponentValueHistoryControllerSlimmer as C, RTESelectionState as R, ShadowSelectionPolyfill$1 as S, SelectionController as a };
|
|
@@ -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-bcc2fd21.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-dbdad1df.js → element-appender-slimmer-8652e8d7.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
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-7d177fb0.js';
|
|
3
|
-
import { I as InternalVegaZIndexManager } from './vega-skeleton-loader-controller-
|
|
3
|
+
import { I as InternalVegaZIndexManager } from './vega-skeleton-loader-controller-9d1ffa6c.js';
|
|
4
4
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
5
|
-
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-
|
|
5
|
+
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-0bf7fbf3.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-bcc2fd21.js';
|
|
9
9
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
10
10
|
import { S as SHADOW_ROOT_ELEMENT_SCROLLING } from './static-subject-title-ca83d6b6.js';
|
|
11
11
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
@@ -9,7 +9,7 @@ import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
|
9
9
|
import { d as domNodeSubjectFactory } from './dom-node-subject-factory-6374611f.js';
|
|
10
10
|
import { c as VegaInternalFieldErrorStateChange, d as VegaInternalValid } from './vega-internal-event-id-178b2743.js';
|
|
11
11
|
import { V as VegaInternalTranslation } from './translation-71e0711d.js';
|
|
12
|
-
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-
|
|
12
|
+
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-0bf7fbf3.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-c345ca2e.js';
|
|
15
15
|
import { M as MutationObserverSlimmer } from './mutation-observer-slimmer-58ebc13c.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { g as getCurrentBreakpoint } from './page-resize-observer-slimmer-
|
|
1
|
+
export { g as getCurrentBreakpoint } from './page-resize-observer-slimmer-0bf7fbf3.js';
|
|
2
2
|
export { L as LogUtility, s as setVegaLogLevel } from './global-slimmer-registry-17c4efd4.js';
|
|
3
|
-
export { d as formatAndValidBackgroundColor, e as formatAndValidBorderColor, g as formatAndValidBorderRadius, c as formatAndValidBreakpointSize, a as formatAndValidGap, h as formatAndValidPadding, f as formatAndValidResponsiveToken, b as formatAndValidShadow, i as formatAndValidTextColor } from './design-token-
|
|
3
|
+
export { d as formatAndValidBackgroundColor, e as formatAndValidBorderColor, g as formatAndValidBorderRadius, c as formatAndValidBreakpointSize, a as formatAndValidGap, h as formatAndValidPadding, f as formatAndValidResponsiveToken, b as formatAndValidShadow, i as formatAndValidTextColor } from './design-token-9bbefd23.js';
|
|
4
4
|
export { c as camelToDashCase } from './string-be824360.js';
|
|
5
5
|
export { d as BackgroundColorMap, a as BackgroundColors, e as BorderColorMap, b as BorderColors, B as BorderRadius, C as Colors, F as FillBackgroundColors, g as ShadowMap, f as Shadows, h as Spacing, S as StrokeBackgroundColors, c as TextColorMap, T as TextColors } from './type-guard-158f6d7a.js';
|
|
6
6
|
export { B as Breakpoints } from './breakpoints-d9faf11c.js';
|
|
@@ -8,7 +8,7 @@ export { I as Icons, g as getIconFromToken } from './icons-8627925e.js';
|
|
|
8
8
|
export { b as Typography, a as TypographyKeys, T as TypographyUrls } from './typography-396de03f.js';
|
|
9
9
|
export { e as BoxDisplay, B as BreakpointKeys, C as CssStates, F as FlexDirections } from './ui-8424715a.js';
|
|
10
10
|
export { F as FrameworkEnum, v as VegaEnvManager } from './vega-env-manager-8f8dc473.js';
|
|
11
|
-
export { c as VegaDialog, d as VegaEventManager, V as VegaLoader, a as VegaNotify, f as VegaSkeletonLoader, b as VegaThemeManager, e as VegaZIndexManager } from './vega-skeleton-loader-controller-
|
|
11
|
+
export { c as VegaDialog, d as VegaEventManager, V as VegaLoader, a as VegaNotify, f as VegaSkeletonLoader, b as VegaThemeManager, e as VegaZIndexManager } from './vega-skeleton-loader-controller-9d1ffa6c.js';
|
|
12
12
|
export { F as FeatureFlag } from './feature-flag-controller-0fbe8fb0.js';
|
|
13
13
|
export { B as VegaJQueryDelegatedEventStrategy } from './internal-vega-event-manager-d80c53c5.js';
|
|
14
14
|
export { V as VegaIconManager } from './icon-manager-638dd4d4.js';
|
|
@@ -17,7 +17,7 @@ export { w as waitForVega } from './index-f5d2fe61.js';
|
|
|
17
17
|
export { a as VegaTranslation, s as VegaTranslationResourceEN } from './translation-71e0711d.js';
|
|
18
18
|
export { R as RTEImageBlock, b as RTEListBlock, a as RTEListItemBlock, V as VegaRTEContent } from './content-state-69d29a07.js';
|
|
19
19
|
export { M as ModifyContentAction, i as RTEBlock, a as RTEImageNode, v as RTENode, d as RTETextBlock, g as RTETextNode } from './code-block-ef2f04ca.js';
|
|
20
|
-
export { G as GridColumns, a as GridRows } from './responsive-format-facade-
|
|
20
|
+
export { G as GridColumns, a as GridRows } from './responsive-format-facade-bcc2fd21.js';
|
|
21
21
|
export { C as CheckBoxRequiredRule } from './check-box-required-rule-cb0aa339.js';
|
|
22
22
|
export { D as DateRequiredRule } from './date-required-rule-8944f3bf.js';
|
|
23
23
|
export { I as InputPhoneNumberRequiredRule } from './input-phone-number-required-rule-be6a5572.js';
|
|
@@ -27,6 +27,7 @@ export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rul
|
|
|
27
27
|
export { T as TimeRangeRequiredRule, a as TimeRequiredRule } from './time-required-rule-a01163b5.js';
|
|
28
28
|
export { T as ToggleSwitchRequiredRule } from './toggle-switch-required-rule-b3cf4302.js';
|
|
29
29
|
export { F as FileUploaderRequiredRule } from './file-uploader-required-rule-ad886d01.js';
|
|
30
|
+
import './try-get-document-bef0f526.js';
|
|
30
31
|
import './state-background-color-formatter-121ae7d3.js';
|
|
31
32
|
import './regex-dfe11abf.js';
|
|
32
33
|
import './create-public-api-runtime-metrics-slimmer-8ada793f.js';
|
|
@@ -77,6 +77,9 @@ class KeyboardManager {
|
|
|
77
77
|
const isKeyCodeAccepted = Array.isArray(listener.keyCode)
|
|
78
78
|
? listener.keyCode.includes(keyCode)
|
|
79
79
|
: listener.keyCode === keyCode;
|
|
80
|
+
if (!isKeyCodeAccepted) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
80
83
|
/* istanbul ignore next */
|
|
81
84
|
if (typeof listener.activeElementInScope === 'function') {
|
|
82
85
|
activeElementInScope = listener.activeElementInScope();
|
|
@@ -96,6 +99,9 @@ class KeyboardManager {
|
|
|
96
99
|
return isParent(getDeepActiveElementInShadow(), element);
|
|
97
100
|
})
|
|
98
101
|
: true;
|
|
102
|
+
if (!isActiveElementInScope) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
99
105
|
const isActiveElementOutScope = listener.activeElementOutScope
|
|
100
106
|
? activeElementOutScope.every((element) => !isParent(getDeepActiveElementInShadow(), element))
|
|
101
107
|
: true;
|
package/dist/esm/{keyboard-manager-slimmer-2218e6ba.js → keyboard-manager-slimmer-a4cc9593.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { M as MapToComponentMethod, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
2
|
-
import { K as KeyboardManager } from './keyboard-manager-
|
|
2
|
+
import { K as KeyboardManager } from './keyboard-manager-f496a623.js';
|
|
3
3
|
|
|
4
4
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5
5
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|