@globalpayments/vega 2.77.0 → 2.77.1
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-04e7024b.js → app-globals-1021e33e.js} +6 -6
- package/dist/cjs/{aria-attributes-value-mapper-f58c73f8.js → aria-attributes-value-mapper-9a41b9cf.js} +10 -3
- package/dist/cjs/{code-block-f1480ec3.js → code-block-f9b86a25.js} +1 -1
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-a9264cc8.js → component-value-history-controller-slimmer.abstract-6bcff70b.js} +3 -3
- package/dist/cjs/{date-required-rule-912469e0.js → date-required-rule-d3c2d088.js} +1 -1
- package/dist/cjs/{design-token-c49717c8.js → design-token-b21879b6.js} +2 -2
- package/dist/cjs/{dto-renderer-manager-809c947b.js → dto-renderer-manager-e2823eb8.js} +2 -2
- package/dist/cjs/{element-appender-slimmer-38583ca9.js → element-appender-slimmer-40d39bba.js} +178 -19
- package/dist/cjs/{form-field-controller-slimmer-102f37c7.js → form-field-controller-slimmer-1b3a1388.js} +1 -1
- package/dist/cjs/{image-annotation-action-8d9fa20c.js → image-annotation-action-b83283d4.js} +2 -2
- package/dist/cjs/index.cjs.js +12 -12
- package/dist/cjs/{inject-keyboard-manager-0f5bd568.js → inject-keyboard-manager-ea5c598e.js} +1 -1
- package/dist/cjs/{internal-translation-controller-053eb0f1.js → internal-translation-controller-1f84ab0a.js} +15 -0
- package/dist/cjs/{keyboard-manager-055e9f67.js → keyboard-manager-16494c34.js} +1 -1
- package/dist/cjs/{keyboard-manager-slimmer-0cc0c1c7.js → keyboard-manager-slimmer-5b8fa209.js} +1 -1
- package/dist/cjs/loader.cjs.js +8 -8
- package/dist/cjs/{month-view-generator-6a6dd527.js → month-view-generator-1a57578d.js} +1 -1
- package/dist/cjs/{public-rules-922849f3.js → public-rules-5bd1624d.js} +7 -7
- package/dist/cjs/{range-8aa49b08.js → range-7a038973.js} +1 -1
- package/dist/cjs/{responsive-format-facade-acc39a40.js → responsive-format-facade-0b65ce4a.js} +1 -1
- package/dist/cjs/{rich-text-editor-required-rule-22225840.js → rich-text-editor-required-rule-d984c0b6.js} +1 -1
- package/dist/cjs/{string-format-strategy.abstract-f2575647.js → string-format-strategy.abstract-714bfad2.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-0a334fc6.js → string-input-formatter-slimmer-9ef2ec7a.js} +1 -1
- package/dist/cjs/{string-mask-strategy-dda58395.js → string-mask-strategy-bd2c18df.js} +2 -2
- package/dist/cjs/{style-formatter-028af284.js → style-formatter-7a4e9811.js} +2 -2
- package/dist/cjs/{time-required-rule-d6fa7aa8.js → time-required-rule-50784b9f.js} +1 -1
- package/dist/cjs/{token-extension-ffcaeae0.js → token-extension-5a1c473e.js} +4 -4
- package/dist/cjs/{translation-slimmer-4533bd67.js → translation-slimmer-2c207e34.js} +1 -1
- package/dist/cjs/{type-guard-407ba0b8.js → type-guard-cd0376d4.js} +36 -1
- package/dist/cjs/{valid-credit-card-number-rule-41a8b51b.js → valid-credit-card-number-rule-3f8dc897.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +4 -4
- package/dist/cjs/vega-app-header-button.cjs.entry.js +24 -6
- package/dist/cjs/vega-box.cjs.entry.js +5 -5
- package/dist/cjs/vega-button-circle.cjs.entry.js +5 -5
- package/dist/cjs/vega-button-link.cjs.entry.js +16 -0
- package/dist/cjs/vega-button.cjs.entry.js +3 -3
- package/dist/cjs/vega-calendar_4.cjs.entry.js +5 -5
- package/dist/cjs/vega-card.cjs.entry.js +4 -4
- package/dist/cjs/vega-carousel.cjs.entry.js +3 -3
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-chip.cjs.entry.js +4 -4
- package/dist/cjs/vega-code-block.cjs.entry.js +8 -8
- package/dist/cjs/vega-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/vega-combo-box.cjs.entry.js +5 -5
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +103 -22
- package/dist/cjs/vega-dialog_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-divider.cjs.entry.js +4 -4
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +31 -7
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-file-uploader.cjs.entry.js +3 -3
- package/dist/cjs/vega-flag-icon.cjs.entry.js +4 -4
- package/dist/cjs/vega-flex.cjs.entry.js +5 -5
- package/dist/cjs/vega-font.cjs.entry.js +4 -4
- package/dist/cjs/vega-form.cjs.entry.js +3 -3
- package/dist/cjs/vega-grid.cjs.entry.js +4 -4
- package/dist/cjs/vega-icon.cjs.entry.js +4 -4
- package/dist/cjs/vega-image-uploader.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +6 -6
- package/dist/cjs/vega-input-numeric.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-passcode.cjs.entry.js +37 -7
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +4 -4
- package/dist/cjs/vega-input-range.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-select.cjs.entry.js +5 -5
- package/dist/cjs/vega-input.cjs.entry.js +220 -125
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +6 -7
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +2 -2
- package/dist/cjs/vega-pagination.cjs.entry.js +4 -4
- package/dist/cjs/vega-popover_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-radio_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +12 -6
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +127 -29
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +3 -3
- package/dist/cjs/vega-signature-capture.cjs.entry.js +6 -6
- package/dist/cjs/vega-stepper.cjs.entry.js +2 -2
- package/dist/cjs/vega-table_11.cjs.entry.js +4 -4
- package/dist/cjs/vega-textarea.cjs.entry.js +2 -2
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +7 -7
- package/dist/cjs/vega.cjs.js +8 -8
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +44 -2
- package/dist/collection/components/vega-button-link/vega-button-link.js +16 -1
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-event-preview-popover-renderer.js +1 -1
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-open-state-controller.js +64 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-selection-controller.js +3 -0
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-header-render.js +3 -3
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-renderer.js +19 -1
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-year-month-switcher-renderer.js +3 -2
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +3 -2
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +12 -0
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.js +25 -0
- package/dist/collection/components/vega-input/slimmers/controllers/vega-input-render-mode-controller.js +1 -3
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-container-renderer.js +1 -5
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-renderer.js +1 -4
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-suggestions-renderer.js +5 -2
- package/dist/collection/components/vega-input/vega-input.js +24 -1
- package/dist/collection/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-keyboard-controller.js +2 -0
- package/dist/collection/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.js +30 -2
- package/dist/collection/components/vega-nav/vega-left-nav-link/slimmers/renderers/vega-left-nav-link-renderer.js +2 -3
- package/dist/collection/components/vega-popover/vega-popover-content-box/vega-popover-content-box.css +5 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.js +7 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/insert-image-controller.js +7 -4
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.js +113 -12
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-image-editor/slimmers/renderers/vega-rich-text-image-editor-renderer.js +1 -1
- package/dist/collection/components/vega-tooltip/vega-tooltip-content-box/vega-tooltip-content-box.css +5 -0
- package/dist/collection/helpers/calendar/test/utils.test.js +54 -1
- package/dist/collection/helpers/calendar/utils.js +35 -0
- package/dist/collection/helpers/slimmers/element-appender/element-appender-slimmer.js +27 -0
- package/dist/collection/helpers/slimmers/element-appender/test/element-appender-slimmer.test.js +50 -0
- package/dist/collection/helpers/slimmers/mutation-observer/aria-attributes-value-mapper.js +10 -3
- package/dist/collection/helpers/slimmers/mutation-observer/data-tab-index-value-mapper.js +80 -0
- package/dist/collection/helpers/slimmers/mutation-observer/test/aria-attributes-value-mapper.test.js +55 -3
- package/dist/collection/helpers/slimmers/mutation-observer/test/data-tab-index-value-mapper.test.js +120 -0
- package/dist/collection/helpers/slimmers/position-calculation/base-position-calculation-strategy.js +123 -9
- package/dist/collection/helpers/slimmers/position-calculation/position-calculation-controller.js +14 -4
- package/dist/collection/helpers/slimmers/position-calculation/screen-position-calculation-strategy.js +13 -4
- package/dist/collection/helpers/slimmers/position-calculation/test/body-position-calculation-strategy.test.js +7 -6
- package/dist/collection/helpers/slimmers/position-calculation/test/screen-position-calculation-strategy.test.js +162 -7
- package/dist/collection/helpers/translation/locales/en.js +15 -0
- package/dist/collection/helpers/translation/tests/internal-translation-controller.test.js +15 -0
- package/dist/collection/helpers/ui/test/element-appender.test.js +7 -5
- package/dist/collection/utils/e2e-utils.js +6 -0
- package/dist/esm/{app-globals-32055795.js → app-globals-0b3b7111.js} +6 -6
- package/dist/esm/{aria-attributes-value-mapper-d4fef46a.js → aria-attributes-value-mapper-2c632641.js} +10 -3
- package/dist/esm/{code-block-b6247a45.js → code-block-2408a812.js} +1 -1
- package/dist/esm/{component-value-history-controller-slimmer.abstract-2bb8533d.js → component-value-history-controller-slimmer.abstract-ac40820f.js} +3 -3
- package/dist/esm/{date-required-rule-e771e7d9.js → date-required-rule-09d5aa16.js} +1 -1
- package/dist/esm/{design-token-5bc034e1.js → design-token-7dec1eab.js} +2 -2
- package/dist/esm/{dto-renderer-manager-6fd22ab7.js → dto-renderer-manager-d413de1e.js} +2 -2
- package/dist/esm/{element-appender-slimmer-9ea377d0.js → element-appender-slimmer-5d573612.js} +178 -19
- package/dist/esm/{form-field-controller-slimmer-5817d14d.js → form-field-controller-slimmer-e1a5a884.js} +1 -1
- package/dist/esm/{image-annotation-action-6701b4c9.js → image-annotation-action-54936eaa.js} +2 -2
- package/dist/esm/index.js +12 -12
- package/dist/esm/{inject-keyboard-manager-78730062.js → inject-keyboard-manager-9339bba8.js} +1 -1
- package/dist/esm/{internal-translation-controller-911515f9.js → internal-translation-controller-113a6288.js} +15 -0
- package/dist/esm/{keyboard-manager-38934f94.js → keyboard-manager-f9bfa678.js} +1 -1
- package/dist/esm/{keyboard-manager-slimmer-9984d922.js → keyboard-manager-slimmer-c8898843.js} +1 -1
- package/dist/esm/loader.js +8 -8
- package/dist/esm/{month-view-generator-eaf9029c.js → month-view-generator-160a9feb.js} +1 -1
- package/dist/esm/{public-rules-25cc3a39.js → public-rules-41561e6e.js} +7 -7
- package/dist/esm/{range-663f44dc.js → range-a5d78e69.js} +1 -1
- package/dist/esm/{responsive-format-facade-aa705823.js → responsive-format-facade-2a36c54a.js} +1 -1
- package/dist/esm/{rich-text-editor-required-rule-a238b862.js → rich-text-editor-required-rule-b09039da.js} +1 -1
- package/dist/esm/{string-format-strategy.abstract-713fba36.js → string-format-strategy.abstract-944f759b.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-5b413ff9.js → string-input-formatter-slimmer-2508d88b.js} +1 -1
- package/dist/esm/{string-mask-strategy-6beaf664.js → string-mask-strategy-f9e252a2.js} +2 -2
- package/dist/esm/{style-formatter-28138f5c.js → style-formatter-6db1e890.js} +2 -2
- package/dist/esm/{time-required-rule-e4138a76.js → time-required-rule-c7cfb257.js} +1 -1
- package/dist/esm/{token-extension-73e4460a.js → token-extension-25df8dbb.js} +4 -4
- package/dist/esm/{translation-slimmer-2394b173.js → translation-slimmer-9f0339aa.js} +1 -1
- package/dist/esm/{type-guard-f50e34d6.js → type-guard-af324dcd.js} +36 -2
- package/dist/esm/{valid-credit-card-number-rule-22ce81db.js → valid-credit-card-number-rule-099dba7d.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +4 -4
- package/dist/esm/vega-app-header-button.entry.js +24 -6
- package/dist/esm/vega-box.entry.js +5 -5
- package/dist/esm/vega-button-circle.entry.js +5 -5
- package/dist/esm/vega-button-link.entry.js +16 -0
- package/dist/esm/vega-button.entry.js +3 -3
- package/dist/esm/vega-calendar_4.entry.js +5 -5
- package/dist/esm/vega-card.entry.js +4 -4
- package/dist/esm/vega-carousel.entry.js +3 -3
- package/dist/esm/vega-checkbox_2.entry.js +2 -2
- package/dist/esm/vega-chip.entry.js +4 -4
- package/dist/esm/vega-code-block.entry.js +8 -8
- package/dist/esm/vega-color-picker.entry.js +2 -2
- package/dist/esm/vega-combo-box.entry.js +5 -5
- package/dist/esm/vega-date-picker_2.entry.js +104 -23
- package/dist/esm/vega-dialog_2.entry.js +4 -4
- package/dist/esm/vega-divider.entry.js +4 -4
- package/dist/esm/vega-dropdown_5.entry.js +32 -8
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-file-uploader.entry.js +3 -3
- package/dist/esm/vega-flag-icon.entry.js +4 -4
- package/dist/esm/vega-flex.entry.js +5 -5
- package/dist/esm/vega-font.entry.js +4 -4
- package/dist/esm/vega-form.entry.js +3 -3
- package/dist/esm/vega-grid.entry.js +4 -4
- package/dist/esm/vega-icon.entry.js +4 -4
- package/dist/esm/vega-image-uploader.entry.js +5 -5
- package/dist/esm/vega-input-credit-card.entry.js +6 -6
- package/dist/esm/vega-input-numeric.entry.js +5 -5
- package/dist/esm/vega-input-passcode.entry.js +37 -7
- package/dist/esm/vega-input-phone-number.entry.js +4 -4
- package/dist/esm/vega-input-range.entry.js +3 -3
- package/dist/esm/vega-input-select.entry.js +5 -5
- package/dist/esm/vega-input.entry.js +220 -125
- package/dist/esm/vega-left-nav_5.entry.js +6 -7
- package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
- package/dist/esm/vega-pagination.entry.js +4 -4
- package/dist/esm/vega-popover_2.entry.js +8 -8
- package/dist/esm/vega-progress-tracker_2.entry.js +3 -3
- package/dist/esm/vega-radio_2.entry.js +5 -5
- package/dist/esm/vega-rich-text-content.entry.js +12 -6
- package/dist/esm/vega-rich-text-editor_4.entry.js +128 -30
- package/dist/esm/vega-selection-chip_2.entry.js +4 -4
- package/dist/esm/vega-selection-tile_2.entry.js +2 -2
- package/dist/esm/vega-sidenav_3.entry.js +3 -3
- package/dist/esm/vega-signature-capture.entry.js +6 -6
- package/dist/esm/vega-stepper.entry.js +2 -2
- package/dist/esm/vega-table_11.entry.js +4 -4
- package/dist/esm/vega-textarea.entry.js +2 -2
- package/dist/esm/vega-time-picker_2.entry.js +9 -9
- package/dist/esm/vega-toggle-switch.entry.js +2 -2
- package/dist/esm/vega-tooltip_2.entry.js +7 -7
- package/dist/esm/vega.js +8 -8
- package/dist/sri/vega-sri-manifest.json +281 -281
- package/dist/types/components/vega-app-header-button/types.d.ts +18 -0
- package/dist/types/components/vega-app-header-button/vega-app-header-button.d.ts +8 -1
- package/dist/types/components/vega-button-link/vega-button-link.d.ts +2 -0
- package/dist/types/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-open-state-controller.d.ts +21 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/controllers/vega-date-picker-calendar-selection-controller.d.ts +1 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-calendar-renderer.d.ts +7 -0
- package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.d.ts +11 -0
- package/dist/types/components/vega-input/slimmers/controllers/vega-input-render-mode-controller.d.ts +0 -1
- package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-renderer.d.ts +0 -1
- package/dist/types/components/vega-input/vega-input.d.ts +4 -0
- package/dist/types/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/insert-image-controller.d.ts +7 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.d.ts +30 -2
- package/dist/types/components.d.ts +11 -1
- package/dist/types/helpers/calendar/utils.d.ts +17 -0
- package/dist/types/helpers/slimmers/element-appender/element-appender-slimmer.d.ts +12 -0
- package/dist/types/helpers/slimmers/mutation-observer/aria-attributes-value-mapper.d.ts +2 -1
- package/dist/types/helpers/slimmers/mutation-observer/data-tab-index-value-mapper.d.ts +35 -0
- package/dist/types/helpers/slimmers/mutation-observer/test/data-tab-index-value-mapper.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/position-calculation/base-position-calculation-strategy.d.ts +60 -3
- package/dist/types/helpers/slimmers/position-calculation/screen-position-calculation-strategy.d.ts +3 -2
- package/dist/types/helpers/slimmers/position-calculation/test/body-position-calculation-strategy.test.d.ts +1 -1
- package/dist/types/helpers/translation/interface.d.ts +15 -0
- package/dist/types/types/components.type.d.ts +1 -0
- package/dist/types/types/ui.type.d.ts +3 -2
- package/dist/types/utils/e2e-utils.d.ts +2 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-4bffdb28.js → p-051bbce6.js} +1 -1
- package/dist/vega/{p-1a3236e7.entry.js → p-0ac9a732.entry.js} +1 -1
- package/dist/vega/{p-9fb877c1.entry.js → p-1033e4c4.entry.js} +1 -1
- package/dist/vega/{p-0e679d8c.js → p-10e51081.js} +1 -1
- package/dist/vega/p-15335b69.entry.js +1 -0
- package/dist/vega/{p-592296d7.entry.js → p-19270396.entry.js} +1 -1
- package/dist/vega/{p-2d69632d.js → p-1a9b361b.js} +1 -1
- package/dist/vega/p-1ccba615.entry.js +1 -0
- package/dist/vega/{p-b54dc37c.entry.js → p-22f3d35c.entry.js} +1 -1
- package/dist/vega/{p-010ff53d.entry.js → p-23427f6a.entry.js} +1 -1
- package/dist/vega/p-2466316a.js +1 -0
- package/dist/vega/{p-b1773281.entry.js → p-27b0af38.entry.js} +1 -1
- package/dist/vega/{p-03004a05.entry.js → p-2c2193f2.entry.js} +1 -1
- package/dist/vega/{p-22056609.entry.js → p-3237be8b.entry.js} +1 -1
- package/dist/vega/{p-bff57aa4.js → p-38e850c3.js} +1 -1
- package/dist/vega/{p-ffd48e37.entry.js → p-3b9fc697.entry.js} +1 -1
- package/dist/vega/{p-1fa0c7da.entry.js → p-41d14339.entry.js} +1 -1
- package/dist/vega/{p-a0b66c25.js → p-4c060ba9.js} +1 -1
- package/dist/vega/{p-0d4cb1c7.entry.js → p-4d4bf82a.entry.js} +1 -1
- package/dist/vega/{p-415ffa35.js → p-4d7d5583.js} +1 -1
- package/dist/vega/{p-2a10e2e5.js → p-4f146dae.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-d78f6ede.js → p-600f7d6c.js} +1 -1
- package/dist/vega/{p-4ea30592.js → p-6188e783.js} +1 -1
- package/dist/vega/p-638d30a5.entry.js +1 -0
- package/dist/vega/{p-100b44c3.entry.js → p-67b0ccdc.entry.js} +1 -1
- package/dist/vega/p-68846f0d.js +1 -0
- package/dist/vega/{p-c165232c.entry.js → p-70444f6f.entry.js} +1 -1
- package/dist/vega/{p-e632475e.js → p-7127f966.js} +1 -1
- package/dist/vega/{p-49845a91.js → p-718c74ba.js} +1 -1
- package/dist/vega/p-77167587.entry.js +1 -0
- package/dist/vega/p-78ecfea0.entry.js +1 -0
- package/dist/vega/{p-b201f379.js → p-7cde8489.js} +1 -1
- package/dist/vega/p-9466619f.entry.js +1 -0
- package/dist/vega/p-9863e7a1.entry.js +1 -0
- package/dist/vega/p-999950d1.js +1 -0
- package/dist/vega/{p-9339c6c4.js → p-9a3a5b9e.js} +1 -1
- package/dist/vega/{p-1a011d47.entry.js → p-9adfcd47.entry.js} +1 -1
- package/dist/vega/{p-4aa94940.entry.js → p-9e36f7ff.entry.js} +1 -1
- package/dist/vega/{p-168bb296.entry.js → p-9f9d9a53.entry.js} +1 -1
- package/dist/vega/{p-cfecc1cb.entry.js → p-9feaac4b.entry.js} +1 -1
- package/dist/vega/{p-4742feef.entry.js → p-a0e69236.entry.js} +1 -1
- package/dist/vega/{p-95528b47.js → p-a17312a6.js} +1 -1
- package/dist/vega/{p-f3e6483c.js → p-a79fdf2f.js} +1 -1
- package/dist/vega/{p-c2d2faa0.js → p-a800bf6d.js} +1 -1
- package/dist/vega/{p-2b142818.entry.js → p-aaf9b39f.entry.js} +1 -1
- package/dist/vega/p-acbb96b3.entry.js +1 -0
- package/dist/vega/{p-cccd7648.entry.js → p-af2110fc.entry.js} +1 -1
- package/dist/vega/{p-560d2f48.entry.js → p-b35bb4a2.entry.js} +1 -1
- package/dist/vega/p-b8c10187.js +1 -0
- package/dist/vega/p-bdb5180c.js +1 -0
- package/dist/vega/{p-50d074ed.entry.js → p-c086529c.entry.js} +1 -1
- package/dist/vega/{p-3c05abd9.entry.js → p-c61bcd92.entry.js} +1 -1
- package/dist/vega/{p-5833f33b.entry.js → p-c7a9960f.entry.js} +1 -1
- package/dist/vega/{p-81b044b9.js → p-c7b9b7c2.js} +1 -1
- package/dist/vega/{p-f2b0b58a.js → p-c857e6e2.js} +1 -1
- package/dist/vega/{p-857069a5.entry.js → p-c871619c.entry.js} +1 -1
- package/dist/vega/{p-1f3cd061.entry.js → p-cbeb47be.entry.js} +1 -1
- package/dist/vega/{p-a786259a.js → p-cf6bfac7.js} +1 -1
- package/dist/vega/{p-5485c387.entry.js → p-d0975995.entry.js} +1 -1
- package/dist/vega/{p-c292ade4.entry.js → p-d2fc470e.entry.js} +1 -1
- package/dist/vega/{p-f428086c.entry.js → p-d70e1b75.entry.js} +1 -1
- package/dist/vega/{p-3afc025e.entry.js → p-da0fd3dc.entry.js} +1 -1
- package/dist/vega/{p-70df91fb.entry.js → p-da552ddf.entry.js} +1 -1
- package/dist/vega/{p-4aa52ed2.entry.js → p-ddce3e0e.entry.js} +1 -1
- package/dist/vega/{p-aa1174dc.js → p-dfb12762.js} +1 -1
- package/dist/vega/{p-daa60a59.entry.js → p-e0fb1f60.entry.js} +1 -1
- package/dist/vega/{p-db5fa164.entry.js → p-e1c017d1.entry.js} +1 -1
- package/dist/vega/{p-3ce2b05c.entry.js → p-e4c99b72.entry.js} +1 -1
- package/dist/vega/{p-d1cfe972.entry.js → p-e841c1fe.entry.js} +1 -1
- package/dist/vega/{p-0572c393.entry.js → p-ea96b0f9.entry.js} +1 -1
- package/dist/vega/{p-7425cedc.entry.js → p-eab9d999.entry.js} +1 -1
- package/dist/vega/{p-e6cf2ace.entry.js → p-ed9ad4fd.entry.js} +1 -1
- package/dist/vega/{p-34bcf4ed.entry.js → p-ef603656.entry.js} +1 -1
- package/dist/vega/p-f5fcd13e.entry.js +1 -0
- package/dist/vega/{p-6d219c44.entry.js → p-f65cb0b6.entry.js} +1 -1
- package/dist/vega/p-faa9a3bd.js +1 -0
- package/dist/vega/{p-a8792e3d.js → p-fc049028.js} +1 -1
- package/dist/vega/p-ff287001.entry.js +1 -0
- package/dist/vega/{p-67745549.entry.js → p-ffb3e479.entry.js} +1 -1
- package/dist/vega/p-ffd080db.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-43ff48c0.entry.js +0 -1
- package/dist/vega/p-464559e3.js +0 -1
- package/dist/vega/p-4bee4202.entry.js +0 -1
- package/dist/vega/p-5cfce62d.entry.js +0 -1
- package/dist/vega/p-60f77f5f.entry.js +0 -1
- package/dist/vega/p-641cdb5c.entry.js +0 -1
- package/dist/vega/p-6b6f0fb4.js +0 -1
- package/dist/vega/p-9441f2ba.entry.js +0 -1
- package/dist/vega/p-ac82b9f9.entry.js +0 -1
- package/dist/vega/p-b597393b.entry.js +0 -1
- package/dist/vega/p-b5f18f4b.entry.js +0 -1
- package/dist/vega/p-c3d2f316.js +0 -1
- package/dist/vega/p-cc5eaa1b.js +0 -1
- package/dist/vega/p-dad3ba5f.js +0 -1
- package/dist/vega/p-de64f6e6.js +0 -1
- package/dist/vega/p-e7fbef97.js +0 -1
- package/dist/vega/p-fc9ac6e9.entry.js +0 -1
|
@@ -18,7 +18,7 @@ export class PositionCalculationMockedComponent {
|
|
|
18
18
|
setIsScreenPosition(isScreenPosition) {
|
|
19
19
|
this.isScreenPosition = isScreenPosition;
|
|
20
20
|
}
|
|
21
|
-
getPositionBox(container, element, target, placement, alignment, translocation = { X: 0, Y: 0 }) {
|
|
21
|
+
getPositionBox(container, element, target, placement, alignment, translocation = { X: 0, Y: 0 }, positionRelativeTo) {
|
|
22
22
|
this.container = container;
|
|
23
23
|
this.showConfig = {
|
|
24
24
|
target: target,
|
|
@@ -27,11 +27,12 @@ export class PositionCalculationMockedComponent {
|
|
|
27
27
|
alignment: alignment,
|
|
28
28
|
translocation: translocation,
|
|
29
29
|
isScreenPosition: this.isScreenPosition,
|
|
30
|
+
positionRelativeTo: positionRelativeTo,
|
|
30
31
|
};
|
|
31
32
|
this.positionCalculationController.setCalculationStrategy();
|
|
32
33
|
this.positionCalculationController.adjustPosition();
|
|
33
|
-
let placementResult;
|
|
34
|
-
let alignmentResult;
|
|
34
|
+
let placementResult = null;
|
|
35
|
+
let alignmentResult = null;
|
|
35
36
|
element.className.split(' ').forEach((item) => {
|
|
36
37
|
if (item.includes('vega-placement')) {
|
|
37
38
|
placementResult = item.replace('vega-placement-', '');
|
|
@@ -291,7 +292,7 @@ describe('component.getPositionBox', () => {
|
|
|
291
292
|
X: 100,
|
|
292
293
|
Y: 100,
|
|
293
294
|
});
|
|
294
|
-
expect(positionBox).toEqual({ top:
|
|
295
|
+
expect(positionBox).toEqual({ top: 0, left: 200, placement: 'top', alignment: 'start' });
|
|
295
296
|
const positionBox1 = component.getPositionBox(container, element, target, 'right', undefined, {
|
|
296
297
|
X: 100,
|
|
297
298
|
Y: 100,
|
|
@@ -301,7 +302,7 @@ describe('component.getPositionBox', () => {
|
|
|
301
302
|
X: 100,
|
|
302
303
|
Y: 100,
|
|
303
304
|
});
|
|
304
|
-
expect(positionBox2).toEqual({ top: 200, left:
|
|
305
|
+
expect(positionBox2).toEqual({ top: 200, left: 0, placement: 'left', alignment: 'start' });
|
|
305
306
|
});
|
|
306
307
|
test('return result as expected when container scrolled', () => {
|
|
307
308
|
container.scrollTop = 20;
|
|
@@ -310,7 +311,7 @@ describe('component.getPositionBox', () => {
|
|
|
310
311
|
X: 100,
|
|
311
312
|
Y: 100,
|
|
312
313
|
});
|
|
313
|
-
expect(positionBox).toEqual({ top:
|
|
314
|
+
expect(positionBox).toEqual({ top: 0, left: 220, placement: 'top', alignment: 'start' });
|
|
314
315
|
const positionBox1 = component.getPositionBox(container, element, target, 'right', undefined, {
|
|
315
316
|
X: 100,
|
|
316
317
|
Y: 100,
|
|
@@ -11,28 +11,30 @@ describe('BodyPositionCalculationStrategy.getPositionBox', () => {
|
|
|
11
11
|
const element = document.querySelector('.element');
|
|
12
12
|
const target = document.querySelector('.target');
|
|
13
13
|
const container = document.querySelector('.container');
|
|
14
|
-
function mockElementReturn(element, method, value) {
|
|
15
|
-
spyOn(element, method).and.returnValue(value);
|
|
16
|
-
}
|
|
17
14
|
beforeAll(() => {
|
|
18
15
|
Object.assign(window, { innerWidth: 500 });
|
|
19
16
|
Object.assign(window, { innerHeight: 500 });
|
|
20
17
|
});
|
|
21
18
|
describe('directions', () => {
|
|
22
19
|
let component;
|
|
20
|
+
let elementRectSpy;
|
|
21
|
+
let targetRectSpy;
|
|
23
22
|
beforeEach(() => {
|
|
24
23
|
component = new PositionCalculationMockedComponent();
|
|
25
24
|
component.setIsScreenPosition(true);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
elementRectSpy = jest
|
|
26
|
+
.spyOn(element, 'getBoundingClientRect')
|
|
27
|
+
.mockReturnValue({ width: 50, height: 50 });
|
|
28
|
+
targetRectSpy = jest.spyOn(target, 'getBoundingClientRect').mockReturnValue({
|
|
30
29
|
width: 100,
|
|
31
30
|
height: 100,
|
|
32
31
|
top: 100,
|
|
33
32
|
left: 100,
|
|
34
33
|
});
|
|
35
34
|
});
|
|
35
|
+
afterEach(() => {
|
|
36
|
+
jest.restoreAllMocks();
|
|
37
|
+
});
|
|
36
38
|
test('return result as expected in top-start', () => {
|
|
37
39
|
expect(component.getPositionBox(container, element, target, ['top'], ['start'])).toEqual({
|
|
38
40
|
top: 50,
|
|
@@ -129,6 +131,159 @@ describe('BodyPositionCalculationStrategy.getPositionBox', () => {
|
|
|
129
131
|
alignment: 'end',
|
|
130
132
|
});
|
|
131
133
|
});
|
|
134
|
+
test('nudges element up when bottom placement slightly overflows viewport bottom edge', () => {
|
|
135
|
+
// no space for bottom → suitablePlacement=null, uses default bottom
|
|
136
|
+
// top=420+50=470, overflowBottom=470+50-500=20 < targetH(50) → top=450
|
|
137
|
+
Object.assign(window, { innerHeight: 500, innerWidth: 500 });
|
|
138
|
+
elementRectSpy.mockReturnValue({ width: 50, height: 50 });
|
|
139
|
+
targetRectSpy.mockReturnValue({
|
|
140
|
+
width: 100,
|
|
141
|
+
height: 50,
|
|
142
|
+
top: 420,
|
|
143
|
+
left: 100,
|
|
144
|
+
});
|
|
145
|
+
expect(component.getPositionBox(container, element, target, ['bottom'], ['start'])).toEqual({
|
|
146
|
+
top: 450,
|
|
147
|
+
left: 100,
|
|
148
|
+
placement: null,
|
|
149
|
+
alignment: null,
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
test('nudges element down when top placement slightly overflows viewport top edge', () => {
|
|
153
|
+
// no space for top → suitablePlacement=null, uses default top
|
|
154
|
+
// top=30-50=-20, overflowTop=20 < targetH(50) → top=0
|
|
155
|
+
Object.assign(window, { innerHeight: 500, innerWidth: 500 });
|
|
156
|
+
elementRectSpy.mockReturnValue({ width: 50, height: 50 });
|
|
157
|
+
targetRectSpy.mockReturnValue({
|
|
158
|
+
width: 100,
|
|
159
|
+
height: 50,
|
|
160
|
+
top: 30,
|
|
161
|
+
left: 100,
|
|
162
|
+
});
|
|
163
|
+
expect(component.getPositionBox(container, element, target, ['top'], ['start'])).toEqual({
|
|
164
|
+
top: 0,
|
|
165
|
+
left: 100,
|
|
166
|
+
placement: null,
|
|
167
|
+
alignment: null,
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
test('nudges element left when right placement slightly overflows viewport right edge', () => {
|
|
171
|
+
// no space for right → suitablePlacement=null, uses default right
|
|
172
|
+
// left=380+100=480, overflowRight=480+50-500=30 < targetW(100) → left=450
|
|
173
|
+
Object.assign(window, { innerHeight: 500, innerWidth: 500 });
|
|
174
|
+
elementRectSpy.mockReturnValue({ width: 50, height: 50 });
|
|
175
|
+
targetRectSpy.mockReturnValue({
|
|
176
|
+
width: 100,
|
|
177
|
+
height: 50,
|
|
178
|
+
top: 100,
|
|
179
|
+
left: 380,
|
|
180
|
+
});
|
|
181
|
+
expect(component.getPositionBox(container, element, target, ['right'], ['start'])).toEqual({
|
|
182
|
+
top: 100,
|
|
183
|
+
left: 450,
|
|
184
|
+
placement: null,
|
|
185
|
+
alignment: null,
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
test('nudges element right when left placement slightly overflows viewport left edge', () => {
|
|
189
|
+
// no space for left → suitablePlacement=null, uses default left
|
|
190
|
+
// left=30-50=-20, overflowLeft=20 < targetW(100) → left=0
|
|
191
|
+
Object.assign(window, { innerHeight: 500, innerWidth: 500 });
|
|
192
|
+
elementRectSpy.mockReturnValue({ width: 50, height: 50 });
|
|
193
|
+
targetRectSpy.mockReturnValue({
|
|
194
|
+
width: 100,
|
|
195
|
+
height: 50,
|
|
196
|
+
top: 100,
|
|
197
|
+
left: 30,
|
|
198
|
+
});
|
|
199
|
+
expect(component.getPositionBox(container, element, target, ['left'], ['start'])).toEqual({
|
|
200
|
+
top: 100,
|
|
201
|
+
left: 0,
|
|
202
|
+
placement: null,
|
|
203
|
+
alignment: null,
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
test('positions element correctly for bottom+start when fully within viewport', () => {
|
|
207
|
+
// top=200+50=250, left=50, both within viewport → no adjustment
|
|
208
|
+
Object.assign(window, { innerHeight: 500, innerWidth: 500 });
|
|
209
|
+
elementRectSpy.mockReturnValue({ width: 100, height: 100 });
|
|
210
|
+
targetRectSpy.mockReturnValue({
|
|
211
|
+
width: 100,
|
|
212
|
+
height: 50,
|
|
213
|
+
top: 200,
|
|
214
|
+
left: 50,
|
|
215
|
+
});
|
|
216
|
+
expect(component.getPositionBox(container, element, target, ['bottom'], ['start'])).toEqual({
|
|
217
|
+
top: 250,
|
|
218
|
+
left: 50,
|
|
219
|
+
placement: 'bottom',
|
|
220
|
+
alignment: 'start',
|
|
221
|
+
});
|
|
222
|
+
});
|
|
223
|
+
test('positions element correctly for right+center when fully within viewport', () => {
|
|
224
|
+
// top=200-(100-100)/2=200, left=200+100=300, both within viewport → no adjustment
|
|
225
|
+
Object.assign(window, { innerHeight: 500, innerWidth: 500 });
|
|
226
|
+
elementRectSpy.mockReturnValue({ width: 100, height: 100 });
|
|
227
|
+
targetRectSpy.mockReturnValue({
|
|
228
|
+
width: 100,
|
|
229
|
+
height: 100,
|
|
230
|
+
top: 200,
|
|
231
|
+
left: 200,
|
|
232
|
+
});
|
|
233
|
+
expect(component.getPositionBox(container, element, target, ['right'], ['center'])).toEqual({
|
|
234
|
+
top: 200,
|
|
235
|
+
left: 300,
|
|
236
|
+
placement: 'right',
|
|
237
|
+
alignment: 'center',
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
describe('positionRelativeTo — viewport adjustment is skipped', () => {
|
|
241
|
+
beforeEach(() => {
|
|
242
|
+
Object.assign(window, { innerHeight: 500, innerWidth: 500 });
|
|
243
|
+
});
|
|
244
|
+
test('does not clamp top when positionRelativeTo is set and element overflows window bottom', () => {
|
|
245
|
+
// Without positionRelativeTo: keepVerticallyInView would clamp top from 821 → 393
|
|
246
|
+
// (Math.min(821, 911-518)=393). With positionRelativeTo the raw calculated top is kept.
|
|
247
|
+
elementRectSpy.mockReturnValue({ width: 300, height: 518 });
|
|
248
|
+
targetRectSpy.mockReturnValue({
|
|
249
|
+
width: 137,
|
|
250
|
+
height: 40,
|
|
251
|
+
top: 781,
|
|
252
|
+
left: 11,
|
|
253
|
+
});
|
|
254
|
+
const result = component.getPositionBox(container, element, target, ['bottom'], ['start'], { X: 0, Y: 0 }, '#test2');
|
|
255
|
+
// top = 781 + 40 = 821, not clamped to 393
|
|
256
|
+
expect(result.top).toBe(821);
|
|
257
|
+
expect(result.left).toBe(11);
|
|
258
|
+
});
|
|
259
|
+
test('applies viewport adjustment normally when positionRelativeTo is not set', () => {
|
|
260
|
+
// Same geometry — without positionRelativeTo, keepVerticallyInView clamps top to 393
|
|
261
|
+
Object.assign(window, { innerHeight: 911, innerWidth: 500 });
|
|
262
|
+
elementRectSpy.mockReturnValue({ width: 300, height: 518 });
|
|
263
|
+
targetRectSpy.mockReturnValue({
|
|
264
|
+
width: 137,
|
|
265
|
+
height: 40,
|
|
266
|
+
top: 781,
|
|
267
|
+
left: 11,
|
|
268
|
+
});
|
|
269
|
+
const result = component.getPositionBox(container, element, target, ['bottom'], ['start']);
|
|
270
|
+
// keepVerticallyInView: Math.min(821, 911-518) = 393
|
|
271
|
+
expect(result.top).toBe(393);
|
|
272
|
+
expect(result.left).toBe(11);
|
|
273
|
+
});
|
|
274
|
+
test('does not clamp left when positionRelativeTo is set and element overflows window right', () => {
|
|
275
|
+
elementRectSpy.mockReturnValue({ width: 200, height: 50 });
|
|
276
|
+
targetRectSpy.mockReturnValue({
|
|
277
|
+
width: 60,
|
|
278
|
+
height: 40,
|
|
279
|
+
top: 100,
|
|
280
|
+
left: 380,
|
|
281
|
+
});
|
|
282
|
+
const result = component.getPositionBox(container, element, target, ['bottom'], ['start'], { X: 0, Y: 0 }, '#test2');
|
|
283
|
+
// left = 380, not clamped to Math.min(380, 500-200)=300
|
|
284
|
+
expect(result.left).toBe(380);
|
|
285
|
+
});
|
|
286
|
+
});
|
|
132
287
|
});
|
|
133
288
|
});
|
|
134
289
|
describe('ScreenScrollPositionUpdate.shouldUpdatePosition', () => {
|
|
@@ -31,6 +31,8 @@ export const staticTranslations = {
|
|
|
31
31
|
'Upload': 'Upload',
|
|
32
32
|
'Clear': 'Clear',
|
|
33
33
|
'Today': 'Today',
|
|
34
|
+
'Previous month': 'Previous month',
|
|
35
|
+
'Next month': 'Next month',
|
|
34
36
|
'Day': 'Day',
|
|
35
37
|
'Week': 'Week',
|
|
36
38
|
'Month': 'Month',
|
|
@@ -48,6 +50,13 @@ export const staticTranslations = {
|
|
|
48
50
|
'Thu-short': 'T',
|
|
49
51
|
'Fri-short': 'F',
|
|
50
52
|
'Sat-short': 'S',
|
|
53
|
+
'Sun-full': 'Sunday',
|
|
54
|
+
'Mon-full': 'Monday',
|
|
55
|
+
'Tue-full': 'Tuesday',
|
|
56
|
+
'Wed-full': 'Wednesday',
|
|
57
|
+
'Thu-full': 'Thursday',
|
|
58
|
+
'Fri-full': 'Friday',
|
|
59
|
+
'Sat-full': 'Saturday',
|
|
51
60
|
'January': 'January',
|
|
52
61
|
'February': 'February',
|
|
53
62
|
'March': 'March',
|
|
@@ -103,6 +112,10 @@ export const staticTranslations = {
|
|
|
103
112
|
'Less Indent': 'Less Indent',
|
|
104
113
|
'Link': 'Link',
|
|
105
114
|
'Image': 'Image',
|
|
115
|
+
'Upload from computer': 'Upload from computer',
|
|
116
|
+
'Insert via URL': 'Insert via URL',
|
|
117
|
+
'Image via URL': 'Image via URL',
|
|
118
|
+
'Insert': 'Insert',
|
|
106
119
|
'Clear Style': 'Clear Style',
|
|
107
120
|
'URL': 'URL',
|
|
108
121
|
'Text': 'Text',
|
|
@@ -145,5 +158,7 @@ export const staticTranslations = {
|
|
|
145
158
|
'Saturday': 'Saturday',
|
|
146
159
|
'am': 'am',
|
|
147
160
|
'pm': 'pm',
|
|
161
|
+
'date picker': 'Date Picker',
|
|
162
|
+
'Selected result': 'Selected result',
|
|
148
163
|
};
|
|
149
164
|
export default staticTranslations;
|
|
@@ -119,6 +119,8 @@ describe('VegaTranslationController', () => {
|
|
|
119
119
|
'Upload': 'Upload',
|
|
120
120
|
'Clear': 'Clear',
|
|
121
121
|
'Today': 'Today',
|
|
122
|
+
'Previous month': 'Previous month',
|
|
123
|
+
'Next month': 'Next month',
|
|
122
124
|
'Day': 'Day',
|
|
123
125
|
'Week': 'Week',
|
|
124
126
|
'Month': 'Month',
|
|
@@ -136,6 +138,13 @@ describe('VegaTranslationController', () => {
|
|
|
136
138
|
'Thu-short': 'T',
|
|
137
139
|
'Fri-short': 'F',
|
|
138
140
|
'Sat-short': 'S',
|
|
141
|
+
'Sun-full': 'Sunday',
|
|
142
|
+
'Mon-full': 'Monday',
|
|
143
|
+
'Tue-full': 'Tuesday',
|
|
144
|
+
'Wed-full': 'Wednesday',
|
|
145
|
+
'Thu-full': 'Thursday',
|
|
146
|
+
'Fri-full': 'Friday',
|
|
147
|
+
'Sat-full': 'Saturday',
|
|
139
148
|
'January': 'January',
|
|
140
149
|
'February': 'February',
|
|
141
150
|
'March': 'March',
|
|
@@ -191,6 +200,10 @@ describe('VegaTranslationController', () => {
|
|
|
191
200
|
'Less Indent': 'Less Indent',
|
|
192
201
|
'Link': 'Link',
|
|
193
202
|
'Image': 'Image',
|
|
203
|
+
'Image via URL': 'Image via URL',
|
|
204
|
+
'Insert': 'Insert',
|
|
205
|
+
'Insert via URL': 'Insert via URL',
|
|
206
|
+
'Upload from computer': 'Upload from computer',
|
|
194
207
|
'Clear Style': 'Clear Style',
|
|
195
208
|
'URL': 'URL',
|
|
196
209
|
'Text': 'Text',
|
|
@@ -214,6 +227,8 @@ describe('VegaTranslationController', () => {
|
|
|
214
227
|
'Select Language': 'Select Language',
|
|
215
228
|
'Code Block': 'Code Block',
|
|
216
229
|
'Copied': 'Copied',
|
|
230
|
+
'date picker': 'Date Picker',
|
|
231
|
+
'Selected result': 'Selected result',
|
|
217
232
|
'Repeat every {0} days': 'Repeat every {0} days',
|
|
218
233
|
'Repeat daily': 'Repeat daily',
|
|
219
234
|
'Repeat every {0} weeks on {1}': 'Repeat every {0} weeks on {1}',
|
|
@@ -192,7 +192,7 @@ test('content should append to modal while in modal', () => {
|
|
|
192
192
|
<div class="modal-dialog"></div>
|
|
193
193
|
</mock:shadow-root>
|
|
194
194
|
<vega-input-select slot="content"></vega-input-select>
|
|
195
|
-
<div class="dropdown vega-element-appender-appendable vega-alignment
|
|
195
|
+
<div class="dropdown vega-element-appender-appendable vega-no-suitable-alignment vega-no-suitable-placement" slot="content" style="box-sizing: border-box; left: NaNpx; top: NaNpx; z-index: 10001;"></div>
|
|
196
196
|
</vega-modal>`);
|
|
197
197
|
drop.hide();
|
|
198
198
|
});
|
|
@@ -213,7 +213,7 @@ test('content append proper while positionRelativeTo set', () => {
|
|
|
213
213
|
expect(document.body).toEqualHtml(`
|
|
214
214
|
<div id="container">
|
|
215
215
|
<vega-input-select></vega-input-select>
|
|
216
|
-
<div class="dropdown vega-element-appender-appendable vega-
|
|
216
|
+
<div class="dropdown vega-element-appender-appendable vega-no-suitable-alignment vega-no-suitable-placement" style="box-sizing: border-box; left: NaNpx; top: NaNpx; z-index: 10001;"></div>
|
|
217
217
|
</div>
|
|
218
218
|
`);
|
|
219
219
|
drop.hide();
|
|
@@ -244,7 +244,7 @@ test('content should append to modal content while in scroll modal content', ()
|
|
|
244
244
|
</div>
|
|
245
245
|
</mock:shadow-root>
|
|
246
246
|
<vega-input-select></vega-input-select>
|
|
247
|
-
<div class="dropdown vega-element-appender-appendable vega-alignment
|
|
247
|
+
<div class="dropdown vega-element-appender-appendable vega-no-suitable-alignment vega-no-suitable-placement" style="box-sizing: border-box; left: NaNpx; top: NaNpx; z-index: 10001;"></div>
|
|
248
248
|
</vega-modal>`);
|
|
249
249
|
drop.hide();
|
|
250
250
|
});
|
|
@@ -267,7 +267,7 @@ test('content should append to popover content while in scroll modal content', (
|
|
|
267
267
|
<vega-modal>
|
|
268
268
|
<vega-popover class="vega-popover">
|
|
269
269
|
<vega-input-select></vega-input-select>
|
|
270
|
-
<div class="dropdown vega-element-appender-appendable vega-
|
|
270
|
+
<div class="dropdown vega-element-appender-appendable vega-no-suitable-alignment vega-no-suitable-placement" style="box-sizing: border-box; left: NaNpx; top: NaNpx; z-index: 10001;"></div>
|
|
271
271
|
</vega-popover>
|
|
272
272
|
</vega-modal>
|
|
273
273
|
`);
|
|
@@ -515,6 +515,7 @@ describe('screen position', () => {
|
|
|
515
515
|
drop1.show();
|
|
516
516
|
expect(element).toHaveClass('vega-placement-top');
|
|
517
517
|
expect(element.style.top).toEqual('50px');
|
|
518
|
+
expect(element.style.left).toEqual('100px');
|
|
518
519
|
targetRectSpyOn.and.returnValue({
|
|
519
520
|
width: 100,
|
|
520
521
|
height: 100,
|
|
@@ -523,6 +524,7 @@ describe('screen position', () => {
|
|
|
523
524
|
});
|
|
524
525
|
drop1.onScroll();
|
|
525
526
|
expect(element).toHaveClass('vega-placement-top');
|
|
526
|
-
expect(element.style.top).toEqual('
|
|
527
|
+
expect(element.style.top).toEqual('0px');
|
|
528
|
+
expect(element.style.left).toEqual('100px');
|
|
527
529
|
});
|
|
528
530
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { newE2EPage } from '@stencil/core/testing';
|
|
2
2
|
import * as axe from 'axe-core';
|
|
3
3
|
import { TestIcons } from '../test-assets/test-icons';
|
|
4
|
+
import { getViewportByDeviceType } from './test-utils';
|
|
4
5
|
/**
|
|
5
6
|
* NOTE: This method is only for **E2E** test cases.
|
|
6
7
|
* Clear the input field and type the input
|
|
@@ -241,10 +242,15 @@ export const getScreenshotDiffResults = async (page, desc, selector) => {
|
|
|
241
242
|
* @param {number} config.timeout --sets the content timeout
|
|
242
243
|
* @param {InjectFeatureFlagsConfig} config.featureFlags -inject feature flags.
|
|
243
244
|
* @param {string} config.timezone -sets the browser timezone (defaults to 'Asia/Shanghai' for consistent behavior across environments).
|
|
245
|
+
* @param {boolean} config.isMobile - whether to set the viewport to a mobile device size (defaults to false).
|
|
244
246
|
*/
|
|
245
247
|
export const initVegaE2EPage = async (content, config) => {
|
|
246
248
|
var _a, _b, _c;
|
|
247
249
|
const page = await newE2EPage();
|
|
250
|
+
if (config === null || config === void 0 ? void 0 : config.isMobile) {
|
|
251
|
+
await page.setUserAgent('Mobile');
|
|
252
|
+
await page.setViewport(getViewportByDeviceType('mobile'));
|
|
253
|
+
}
|
|
248
254
|
// Set timezone to ensure consistent behavior across different environments
|
|
249
255
|
const timezone = (_a = config === null || config === void 0 ? void 0 : config.timezone) !== null && _a !== void 0 ? _a : 'Asia/Shanghai';
|
|
250
256
|
const pageWithTimezone = page;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { F as FeatureFlag } from './feature-flag-controller-30f7b625.js';
|
|
2
|
-
import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager, c as VegaEventManager, d as VegaZIndexManager, w as waitForVega, e as VegaSkeletonLoader, f as VegaTranslation, g as VegaRTETokenExtension, h as VegaRTELanguageExtension, i as VegaRTEFunctionExtension } from './token-extension-
|
|
2
|
+
import { V as VegaLoader, a as VegaNotify, b as VegaThemeManager, c as VegaEventManager, d as VegaZIndexManager, w as waitForVega, e as VegaSkeletonLoader, f as VegaTranslation, g as VegaRTETokenExtension, h as VegaRTELanguageExtension, i as VegaRTEFunctionExtension } from './token-extension-25df8dbb.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 VegaDialog } from './vega-dialog-controller-bbb2fc52.js';
|
|
5
5
|
import { T as TypographyUrls } from './typography-396de03f.js';
|
|
6
6
|
import { V as VegaIconManager } from './icon-manager-539d7cf7.js';
|
|
7
|
-
import { V as VegaInternalTranslation, s as staticTranslations } from './internal-translation-controller-
|
|
8
|
-
import { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-
|
|
7
|
+
import { V as VegaInternalTranslation, s as staticTranslations } from './internal-translation-controller-113a6288.js';
|
|
8
|
+
import { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-099dba7d.js';
|
|
9
9
|
import { v as vegaEnvManager } from './vega-env-manager-8f8dc473.js';
|
|
10
10
|
import { U as UPDATE_TRANSLATION } from './static-subject-title-52f93124.js';
|
|
11
11
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
12
12
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
13
13
|
import { f as forceUpdate } from './index-090d31ca.js';
|
|
14
|
-
import { V as VegaRTEContent } from './dto-renderer-manager-
|
|
14
|
+
import { V as VegaRTEContent } from './dto-renderer-manager-d413de1e.js';
|
|
15
15
|
import { v as vegaNonceManager, s as setVegaNonce } from './vega-nonce-manager-497e5eb5.js';
|
|
16
|
-
import { V as VegaRTEPresetToolbarItems } from './code-block-
|
|
16
|
+
import { V as VegaRTEPresetToolbarItems } from './code-block-2408a812.js';
|
|
17
17
|
|
|
18
18
|
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
19
19
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -394,7 +394,7 @@ function injectVegaRichTextEditorClassIntoGlobal() {
|
|
|
394
394
|
* Inject VegaPublicValidationRules to global as a public api
|
|
395
395
|
*/
|
|
396
396
|
function injectVegaPublicValidationRules() {
|
|
397
|
-
void import('./public-rules-
|
|
397
|
+
void import('./public-rules-41561e6e.js').then((module) => {
|
|
398
398
|
Object.entries(module).forEach(([name, value]) => {
|
|
399
399
|
globalThis[name] = value;
|
|
400
400
|
});
|
|
@@ -102,7 +102,7 @@ class AriaAttributesValueMapper extends MutationObserverSlimmer {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
if (finalValue === null || finalValue === undefined || String(finalValue).trim() === '') {
|
|
105
|
-
finalValue = defaultValue
|
|
105
|
+
finalValue = defaultValue;
|
|
106
106
|
}
|
|
107
107
|
try {
|
|
108
108
|
if (String(finalValue).trim() === '') {
|
|
@@ -110,8 +110,15 @@ class AriaAttributesValueMapper extends MutationObserverSlimmer {
|
|
|
110
110
|
return;
|
|
111
111
|
}
|
|
112
112
|
const existing = target.getAttribute(ariaAttr);
|
|
113
|
-
if (
|
|
114
|
-
|
|
113
|
+
if (finalValue === null || finalValue === undefined) {
|
|
114
|
+
if (existing !== null) {
|
|
115
|
+
target.removeAttribute(ariaAttr);
|
|
116
|
+
}
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const stringValue = String(finalValue);
|
|
120
|
+
if (existing !== stringValue) {
|
|
121
|
+
target.setAttribute(ariaAttr, stringValue);
|
|
115
122
|
}
|
|
116
123
|
}
|
|
117
124
|
catch (e) {
|
|
@@ -3,7 +3,7 @@ import { d as domNodeSubjectFactory } from './dom-node-subject-observer-factory-
|
|
|
3
3
|
import { a as VegaInternalRichTextEditorFlushChanges, b as VegaInternalRichTextEditorSelectionRangeChange } from './vega-internal-event-id-799d012e.js';
|
|
4
4
|
import { c as camelToDashCase } from './string-a953eafc.js';
|
|
5
5
|
import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
|
6
|
-
import { i as isNonNullable } from './type-guard-
|
|
6
|
+
import { i as isNonNullable } from './type-guard-af324dcd.js';
|
|
7
7
|
import { g as generateUUID } from './misc-9fdbcfbb.js';
|
|
8
8
|
import { V as VegaInternalThemeManager } from './dark-mode-style-controller-82e5c1c6.js';
|
|
9
9
|
import { c as cleanObject } from './object-66c37948.js';
|
|
@@ -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 { a0 as RTECodeBlockNode, b as RTETextNode, Z as ZERO_WIDTH_SPACE, _ as SelectionChangeAction, j as InternalAnnotationTypeEnum, s as stateEntityRenderingRegistry, c as RTEBlock, h as RTENode, z as RTEDecoratorNode, x as RTECodeBlock } from './code-block-
|
|
2
|
+
import { a0 as RTECodeBlockNode, b as RTETextNode, Z as ZERO_WIDTH_SPACE, _ as SelectionChangeAction, j as InternalAnnotationTypeEnum, s as stateEntityRenderingRegistry, c as RTEBlock, h as RTENode, z as RTEDecoratorNode, x as RTECodeBlock } from './code-block-2408a812.js';
|
|
3
3
|
import { d as debounce } from './timer-9321173b.js';
|
|
4
4
|
import { g as getActiveElement } from './component-7d906393.js';
|
|
5
5
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
6
6
|
import { d as domNodeSubjectFactory, D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-82f346e3.js';
|
|
7
7
|
import { b as VegaInternalRichTextEditorSelectionRangeChange, V as VegaInternalUpdateRTECursorPosition } from './vega-internal-event-id-799d012e.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-a5d78e69.js';
|
|
10
10
|
import { S as SynchronizeTaskQueue } from './synchronize-task-queue-ac8acc3b.js';
|
|
11
11
|
import { i as isHTMLElement } from './ui-ee31416b.js';
|
|
12
|
-
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-
|
|
12
|
+
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-c8898843.js';
|
|
13
13
|
|
|
14
14
|
let processing = false;
|
|
15
15
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as StateVariantFormatter, k as isBorderColorTokenType, b as BorderColors, e as BorderColorMap, l as isShadowsTokenType, f as Shadows, g as ShadowMap, m as isBorderTokenType, n as Borders, o as BorderMap, p as StateBackgroundColorFormatter, q as isSpacingTokenType, r as isBorderRadiusTokenType, s as isBackgroundColorTokenType, t as isTextColorTokenType, u as isBreakpointsTokenType, h as Spacing, v as isBorderStyleType, B as BorderRadius, C as Colors, w as isTypographyTokenType } from './type-guard-
|
|
1
|
+
import { j as StateVariantFormatter, k as isBorderColorTokenType, b as BorderColors, e as BorderColorMap, l as isShadowsTokenType, f as Shadows, g as ShadowMap, m as isBorderTokenType, n as Borders, o as BorderMap, p as StateBackgroundColorFormatter, q as isSpacingTokenType, r as isBorderRadiusTokenType, s as isBackgroundColorTokenType, t as isTextColorTokenType, u as isBreakpointsTokenType, h as Spacing, v as isBorderStyleType, B as BorderRadius, C as Colors, w as isTypographyTokenType } from './type-guard-af324dcd.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-2a36c54a.js';
|
|
5
5
|
import { a as TypographyKeys } from './typography-396de03f.js';
|
|
6
6
|
import { B as BorderStyle } from './ui-28fd4193.js';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as ActionHandleStrategy, d as RTETextBlock, b as RTETextNode, g as AppendChildrenAction, A as ActionHandleStrategyRegistry, T as TextStyleAnnotationAction, B as BlockUpdateTextStyleStrategy, H as HorizontalAlignmentAnnotationAction, l as BlockUpdateHorizontalAlignmentStrategy, k as ModifyContentActionType, m as BlockInsertLineBreakStrategy, n as BlockInsertLineBreakWithBlocksStrategy, o as BlockSplitWithTextNodeStrategy, p as BlockReplaceNodesStrategy, q as BlockMergeNodesStrategy, I as InsertChildrenAfterAction, r as RemoveChildrenAction, S as SyncUpSelectionAction, i as InsertChildrenBeforeAction, t as BlockAnnotation, u as BlockAnnotationTypeEnum, c as RTEBlock, v as CustomStyleAnnotation, w as CustomClassAnnotation, C as CustomAttributeAnnotation, x as RTECodeBlock, s as stateEntityRenderingRegistry, N as NodeAnnotation, y as NodeAnnotationTypeEnum, z as RTEDecoratorNode, D as NodeTypeEnum, E as CommonAnnotation, F as AnnotationAction, G as ReplaceChildNodesAction, M as ModifyContentAction, J as SplitBlockWithNodeAction, K as BlockDeleteNodeContentStrategy, U as UpdateTextAction, L as RemoveChildrenStrategy, O as RTE_TEXT_COLORS, P as RTE_DEFAULT_TEXT_COLOR, R as RTEDTOClassManager } from './code-block-
|
|
1
|
+
import { f as ActionHandleStrategy, d as RTETextBlock, b as RTETextNode, g as AppendChildrenAction, A as ActionHandleStrategyRegistry, T as TextStyleAnnotationAction, B as BlockUpdateTextStyleStrategy, H as HorizontalAlignmentAnnotationAction, l as BlockUpdateHorizontalAlignmentStrategy, k as ModifyContentActionType, m as BlockInsertLineBreakStrategy, n as BlockInsertLineBreakWithBlocksStrategy, o as BlockSplitWithTextNodeStrategy, p as BlockReplaceNodesStrategy, q as BlockMergeNodesStrategy, I as InsertChildrenAfterAction, r as RemoveChildrenAction, S as SyncUpSelectionAction, i as InsertChildrenBeforeAction, t as BlockAnnotation, u as BlockAnnotationTypeEnum, c as RTEBlock, v as CustomStyleAnnotation, w as CustomClassAnnotation, C as CustomAttributeAnnotation, x as RTECodeBlock, s as stateEntityRenderingRegistry, N as NodeAnnotation, y as NodeAnnotationTypeEnum, z as RTEDecoratorNode, D as NodeTypeEnum, E as CommonAnnotation, F as AnnotationAction, G as ReplaceChildNodesAction, M as ModifyContentAction, J as SplitBlockWithNodeAction, K as BlockDeleteNodeContentStrategy, U as UpdateTextAction, L as RemoveChildrenStrategy, O as RTE_TEXT_COLORS, P as RTE_DEFAULT_TEXT_COLOR, R as RTEDTOClassManager } from './code-block-2408a812.js';
|
|
2
2
|
import { g as generateUUID } from './misc-9fdbcfbb.js';
|
|
3
|
-
import { i as isNonNullable } from './type-guard-
|
|
3
|
+
import { i as isNonNullable } from './type-guard-af324dcd.js';
|
|
4
4
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
5
5
|
import { d as domNodeSubjectFactory } from './dom-node-subject-observer-factory-82f346e3.js';
|
|
6
6
|
import { V as VegaInternalUpdateRTECursorPosition, a as VegaInternalRichTextEditorFlushChanges } from './vega-internal-event-id-799d012e.js';
|