@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
package/dist/esm/{element-appender-slimmer-9ea377d0.js → element-appender-slimmer-5d573612.js}
RENAMED
|
@@ -4,8 +4,8 @@ import { I as InternalVegaZIndexManager } from './internal-vega-z-index-manager-
|
|
|
4
4
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
5
5
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-d6af0d86.js';
|
|
6
6
|
import { A as Alignments, P as Placements } from './ui-28fd4193.js';
|
|
7
|
-
import { H as isTranslocationType,
|
|
8
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
7
|
+
import { H as isTranslocationType, i as isNonNullable, a4 as isEATriggerStrategy } from './type-guard-af324dcd.js';
|
|
8
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-2a36c54a.js';
|
|
9
9
|
import { t as tryGetDocument } from './try-get-document-bef0f526.js';
|
|
10
10
|
import { F as FeatureFlag } from './feature-flag-controller-30f7b625.js';
|
|
11
11
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
@@ -290,19 +290,24 @@ class BasePositionCalculationStrategy extends VegaSlimmer {
|
|
|
290
290
|
* returns an ElementPositionBox.
|
|
291
291
|
*/
|
|
292
292
|
getPositionBox(placement, alignment) {
|
|
293
|
-
const placements = placement
|
|
294
|
-
const alignments = alignment
|
|
293
|
+
const placements = placement && placement.length > 0 ? placement : this.getPlacements();
|
|
294
|
+
const alignments = alignment && alignment.length > 0 ? alignment : this.getAlignments();
|
|
295
295
|
const targetBox = this.getTargetBoundBox();
|
|
296
296
|
const elementBox = this.getElementBoundBox();
|
|
297
297
|
const containerBox = this.getElementScrollDimension();
|
|
298
298
|
const suitablePlacement = this.getSuitablePlacement(containerBox, elementBox, targetBox, placements);
|
|
299
|
-
const
|
|
300
|
-
const
|
|
301
|
-
const
|
|
299
|
+
const activePlacement = suitablePlacement || placements[0];
|
|
300
|
+
const suitableAlignment = this.getSuitableAlignment(containerBox, elementBox, targetBox, activePlacement, alignments);
|
|
301
|
+
const activeAlignment = suitableAlignment || alignments[0];
|
|
302
|
+
const positionBox = this.calculatePosition(elementBox, targetBox, activePlacement, activeAlignment);
|
|
303
|
+
const translocationBox = this.getTranslocationBox(activePlacement);
|
|
302
304
|
positionBox.placement = suitablePlacement;
|
|
303
305
|
positionBox.alignment = suitableAlignment;
|
|
304
306
|
positionBox.left += translocationBox.X;
|
|
305
307
|
positionBox.top += translocationBox.Y;
|
|
308
|
+
if (!this.showConfig.positionRelativeTo) {
|
|
309
|
+
this.adjustPositionForViewport(positionBox, elementBox, targetBox, activePlacement);
|
|
310
|
+
}
|
|
306
311
|
return positionBox;
|
|
307
312
|
}
|
|
308
313
|
/**
|
|
@@ -441,7 +446,7 @@ class BasePositionCalculationStrategy extends VegaSlimmer {
|
|
|
441
446
|
* @param {ElementBoundBox} elementBox - The box of the element to be placed.
|
|
442
447
|
* @param {ElementBoundBox} targetBox - The box of the target element.
|
|
443
448
|
* @param {PlacementType[]} placements - The placements that we want to try.
|
|
444
|
-
* @returns {PlacementType} A function that takes in a containerBox, elementBox, targetBox, placements, and element.
|
|
449
|
+
* @returns {Nullable<PlacementType>} A function that takes in a containerBox, elementBox, targetBox, placements, and element.
|
|
445
450
|
*/
|
|
446
451
|
getSuitablePlacement(containerBox, elementBox, targetBox, placements) {
|
|
447
452
|
const defaultPlacement = placements[0];
|
|
@@ -454,7 +459,7 @@ class BasePositionCalculationStrategy extends VegaSlimmer {
|
|
|
454
459
|
No enough space found for placing element and we will keep using the defined placement:
|
|
455
460
|
${defaultPlacement}
|
|
456
461
|
`);
|
|
457
|
-
return
|
|
462
|
+
return null;
|
|
458
463
|
}
|
|
459
464
|
}
|
|
460
465
|
/**
|
|
@@ -520,6 +525,115 @@ class BasePositionCalculationStrategy extends VegaSlimmer {
|
|
|
520
525
|
left: this.calculateLeft(elementBox, targetBox, placement, alignment),
|
|
521
526
|
};
|
|
522
527
|
}
|
|
528
|
+
/**
|
|
529
|
+
* Keeps the vertical position within the visible viewport
|
|
530
|
+
*
|
|
531
|
+
* @param {number} top - The calculated top position.
|
|
532
|
+
* @param {number} elementHeight - The height of the element.
|
|
533
|
+
* @returns {number} The top position constrained to the viewport.
|
|
534
|
+
*/
|
|
535
|
+
keepVerticallyInView(top, elementHeight) {
|
|
536
|
+
return Math.max(0, Math.min(top, window.innerHeight - elementHeight));
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Keeps the horizontal position within the visible viewport
|
|
540
|
+
*
|
|
541
|
+
* @param {number} left - The calculated left position.
|
|
542
|
+
* @param {number} elementWidth - The width of the element.
|
|
543
|
+
* @returns {number} The left position constrained to the viewport.
|
|
544
|
+
*/
|
|
545
|
+
keepHorizontallyInView(left, elementWidth) {
|
|
546
|
+
return Math.max(0, Math.min(left, window.innerWidth - elementWidth));
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Checks if the target element is visible in the viewport
|
|
550
|
+
*
|
|
551
|
+
* @param {ElementBoundBox} targetBox - The bounding box of the target element.
|
|
552
|
+
* @returns {boolean} True if target is visible in viewport.
|
|
553
|
+
*/
|
|
554
|
+
isTargetInView(targetBox) {
|
|
555
|
+
const innerHeight = window.innerHeight;
|
|
556
|
+
const innerWidth = window.innerWidth;
|
|
557
|
+
const targetBottom = targetBox.top + targetBox.height;
|
|
558
|
+
const targetRight = targetBox.left + targetBox.width;
|
|
559
|
+
return (targetBox.top <= innerHeight &&
|
|
560
|
+
targetBottom >= 0 &&
|
|
561
|
+
targetBox.left <= innerWidth &&
|
|
562
|
+
targetRight >= 0);
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Corrects `positionBox` so the element stays within the viewport after translocation.
|
|
566
|
+
* Only runs when the target is visible; skips correction entirely if the target has
|
|
567
|
+
* scrolled out of view so the element simply follows it.
|
|
568
|
+
*
|
|
569
|
+
* @param {ElementPositionBox} positionBox - The final position box to adjust (mutated in place).
|
|
570
|
+
* @param {ElementBoundBox} elementBox - Dimensions of the positioned element.
|
|
571
|
+
* @param {ElementBoundBox} targetBox - Bounding box of the target element.
|
|
572
|
+
* @param {PlacementType} placement - Active placement used to select the correction axis.
|
|
573
|
+
*/
|
|
574
|
+
adjustPositionForViewport(positionBox, elementBox, targetBox, placement) {
|
|
575
|
+
if (!this.isTargetInView(targetBox)) {
|
|
576
|
+
return;
|
|
577
|
+
}
|
|
578
|
+
if (placement === 'top' || placement === 'bottom') {
|
|
579
|
+
positionBox.top = this.adjustForVerticalOverflow(positionBox.top, elementBox.height, targetBox.height);
|
|
580
|
+
}
|
|
581
|
+
else if (placement === 'left' || placement === 'right') {
|
|
582
|
+
positionBox.left = this.adjustForHorizontalOverflow(positionBox.left, elementBox.width, targetBox.width);
|
|
583
|
+
}
|
|
584
|
+
positionBox.top = this.keepVerticallyInView(positionBox.top, elementBox.height);
|
|
585
|
+
positionBox.left = this.keepHorizontallyInView(positionBox.left, elementBox.width);
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Nudges `top` so the element stays within the viewport vertically.
|
|
589
|
+
* Only corrects when the overflow is less than `targetHeight` to keep the element
|
|
590
|
+
* visually anchored to its target; larger overflows are handled by `keepVerticallyInView`.
|
|
591
|
+
*
|
|
592
|
+
* @param {number} top - The calculated top position.
|
|
593
|
+
* @param {number} elementHeight - Height of the positioned element.
|
|
594
|
+
* @param {number} targetHeight - Height of the target, used as the max correctable overflow.
|
|
595
|
+
* @returns {number} The adjusted top position.
|
|
596
|
+
*/
|
|
597
|
+
adjustForVerticalOverflow(top, elementHeight, targetHeight) {
|
|
598
|
+
// Pixels the element bleeds past the bottom of the viewport (positive = overflow).
|
|
599
|
+
const overflowBottom = top + elementHeight - window.innerHeight;
|
|
600
|
+
// Pixels the element bleeds past the top of the viewport (positive = overflow).
|
|
601
|
+
const overflowTop = -top;
|
|
602
|
+
// Only nudge when overflow is smaller than targetHeight; larger overflows are left to
|
|
603
|
+
// keepVerticallyInView to hard-clamp, since nudging that far would detach from the target.
|
|
604
|
+
if (overflowBottom > 0 && overflowBottom < targetHeight) {
|
|
605
|
+
return top - overflowBottom; // shift up until bottom edge is flush with viewport bottom
|
|
606
|
+
}
|
|
607
|
+
if (overflowTop > 0 && overflowTop < targetHeight) {
|
|
608
|
+
return top + overflowTop; // shift down until top edge is flush with viewport top
|
|
609
|
+
}
|
|
610
|
+
return top;
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* Nudges `left` so the element stays within the viewport horizontally.
|
|
614
|
+
* Only corrects when the overflow is less than `targetWidth` to keep the element
|
|
615
|
+
* visually anchored to its target; larger overflows are handled by `keepHorizontallyInView`.
|
|
616
|
+
*
|
|
617
|
+
* @param {number} left - The calculated left position.
|
|
618
|
+
* @param {number} elementWidth - Width of the positioned element.
|
|
619
|
+
* @param {number} targetWidth - Width of the target, used as the max correctable overflow.
|
|
620
|
+
* @returns {number} The adjusted left position.
|
|
621
|
+
*/
|
|
622
|
+
adjustForHorizontalOverflow(left, elementWidth, targetWidth) {
|
|
623
|
+
// Pixels the element bleeds past the right edge of the viewport (positive = overflow).
|
|
624
|
+
const overflowRight = left + elementWidth - window.innerWidth;
|
|
625
|
+
// Pixels the element bleeds past the left edge of the viewport (positive = overflow).
|
|
626
|
+
const overflowLeft = -left;
|
|
627
|
+
// Only nudge when overflow is smaller than targetWidth; larger overflows are left to
|
|
628
|
+
// keepHorizontallyInView to hard-clamp, since nudging that far would detach from the target.
|
|
629
|
+
if (overflowRight > 0 && overflowRight < targetWidth) {
|
|
630
|
+
return left - overflowRight; // shift left until right edge is flush with viewport right
|
|
631
|
+
}
|
|
632
|
+
if (overflowLeft > 0 && overflowLeft < targetWidth) {
|
|
633
|
+
return left + overflowLeft; // shift right until left edge is flush with viewport left
|
|
634
|
+
}
|
|
635
|
+
return left;
|
|
636
|
+
}
|
|
523
637
|
/**
|
|
524
638
|
* It returns the translocation of the element relative to the target element
|
|
525
639
|
*
|
|
@@ -564,7 +678,7 @@ class BasePositionCalculationStrategy extends VegaSlimmer {
|
|
|
564
678
|
* @param {ElementBoundBox} targetBox - The box of the element that the element to be positioned is aligned to.
|
|
565
679
|
* @param {PlacementType} placement - The placement of the element relative to the target.
|
|
566
680
|
* @param {PositionAlignmentType[]} alignments - An array of alignments to try.
|
|
567
|
-
* @returns {PositionAlignmentType} the alignment that is suitable for the element.
|
|
681
|
+
* @returns {Nullable<PositionAlignmentType>} the alignment that is suitable for the element.
|
|
568
682
|
*/
|
|
569
683
|
getSuitableAlignment(containerBox, elementBox, targetBox, placement, alignments) {
|
|
570
684
|
const defaultAlignment = alignments[0];
|
|
@@ -577,7 +691,7 @@ class BasePositionCalculationStrategy extends VegaSlimmer {
|
|
|
577
691
|
No enough space found for placing element and we will keep using the defined alignment:
|
|
578
692
|
${defaultAlignment}
|
|
579
693
|
`);
|
|
580
|
-
return
|
|
694
|
+
return null;
|
|
581
695
|
}
|
|
582
696
|
}
|
|
583
697
|
/**
|
|
@@ -826,9 +940,17 @@ class ScreenPositionCalculationStrategy extends BasePositionCalculationStrategy
|
|
|
826
940
|
*/
|
|
827
941
|
getPosition(usePreviousPlacement) {
|
|
828
942
|
const stayPlacement = usePreviousPlacement ? this.usePreviousPlacement : false;
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
943
|
+
let positionBox;
|
|
944
|
+
if (stayPlacement) {
|
|
945
|
+
positionBox = this.getPositionBox([this.previousPositionBox.placement].filter(isNonNullable), [this.previousPositionBox.alignment].filter(isNonNullable));
|
|
946
|
+
if (!FeatureFlag.isEnabled('VEGA_ELEMENT_APPENDER.AUTO_PLACEMENT')) {
|
|
947
|
+
positionBox.placement = this.previousPositionBox.placement;
|
|
948
|
+
positionBox.alignment = this.previousPositionBox.alignment;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
else {
|
|
952
|
+
positionBox = this.getPositionBox();
|
|
953
|
+
}
|
|
832
954
|
this.previousPositionBox = positionBox;
|
|
833
955
|
return positionBox;
|
|
834
956
|
}
|
|
@@ -887,7 +1009,7 @@ class ScreenPositionCalculationStrategy extends BasePositionCalculationStrategy
|
|
|
887
1009
|
* @param {ElementBoundBox} elementBox - The box of the element to place.
|
|
888
1010
|
* @param {ElementBoundBox} targetBox - The box of the target element.
|
|
889
1011
|
* @param {PlacementType[]} placements - Ordered list of placements to try.
|
|
890
|
-
* @returns {PlacementType} The chosen placement.
|
|
1012
|
+
* @returns {Nullable<PlacementType>} The chosen placement.
|
|
891
1013
|
*/
|
|
892
1014
|
getSuitablePlacement(containerBox, elementBox, targetBox, placements) {
|
|
893
1015
|
const alignments = this.getAlignments();
|
|
@@ -963,10 +1085,20 @@ class PositionCalculationController extends VegaSlimmer {
|
|
|
963
1085
|
}
|
|
964
1086
|
appendableElement.style.left = `${positionBox.left}px`;
|
|
965
1087
|
appendableElement.style.top = `${positionBox.top}px`;
|
|
966
|
-
appendableElement.classList.remove('vega-placement-left', 'vega-placement-right', 'vega-placement-top', 'vega-placement-bottom');
|
|
967
|
-
appendableElement.classList.remove('vega-alignment-start', 'vega-alignment-center', 'vega-alignment-end');
|
|
968
|
-
|
|
969
|
-
|
|
1088
|
+
appendableElement.classList.remove('vega-placement-left', 'vega-placement-right', 'vega-placement-top', 'vega-placement-bottom', 'vega-no-suitable-placement');
|
|
1089
|
+
appendableElement.classList.remove('vega-alignment-start', 'vega-alignment-center', 'vega-alignment-end', 'vega-no-suitable-alignment');
|
|
1090
|
+
if (positionBox.placement) {
|
|
1091
|
+
appendableElement.classList.add(`vega-placement-${positionBox.placement}`);
|
|
1092
|
+
}
|
|
1093
|
+
else {
|
|
1094
|
+
appendableElement.classList.add(`vega-no-suitable-placement`);
|
|
1095
|
+
}
|
|
1096
|
+
if (positionBox.alignment) {
|
|
1097
|
+
appendableElement.classList.add(`vega-alignment-${positionBox.alignment}`);
|
|
1098
|
+
}
|
|
1099
|
+
else {
|
|
1100
|
+
appendableElement.classList.add(`vega-no-suitable-alignment`);
|
|
1101
|
+
}
|
|
970
1102
|
}
|
|
971
1103
|
/**
|
|
972
1104
|
* It sets the width of the appendable element to the width of the target element if the
|
|
@@ -1704,6 +1836,7 @@ class ElementAppenderSlimmer extends VegaSlimmer {
|
|
|
1704
1836
|
show() {
|
|
1705
1837
|
this.elementAppender && this.elementAppender.show();
|
|
1706
1838
|
this[this.isDropdownShowName] = true;
|
|
1839
|
+
this.setAriaOwns();
|
|
1707
1840
|
}
|
|
1708
1841
|
hide() {
|
|
1709
1842
|
this.elementAppender && this.elementAppender.hide();
|
|
@@ -1713,6 +1846,7 @@ class ElementAppenderSlimmer extends VegaSlimmer {
|
|
|
1713
1846
|
});
|
|
1714
1847
|
}
|
|
1715
1848
|
destroy() {
|
|
1849
|
+
this.removeAriaOwns();
|
|
1716
1850
|
this.destroyElementAppender();
|
|
1717
1851
|
this[this.isDropdownShowName] = false;
|
|
1718
1852
|
}
|
|
@@ -1795,6 +1929,31 @@ class ElementAppenderSlimmer extends VegaSlimmer {
|
|
|
1795
1929
|
return new NoneTriggerStrategy();
|
|
1796
1930
|
}
|
|
1797
1931
|
}
|
|
1932
|
+
/**
|
|
1933
|
+
* Sets `ariaOwnsElements` on the target element to reference the appendable element directly.
|
|
1934
|
+
* Uses the Element Reflection API which works across shadow DOM boundaries by using
|
|
1935
|
+
* direct element references instead of IDREF strings.
|
|
1936
|
+
* This ensures screen readers (e.g. VoiceOver) can navigate to the portal-appended
|
|
1937
|
+
* content immediately after the trigger, rather than at the end of the document.
|
|
1938
|
+
*/
|
|
1939
|
+
setAriaOwns() {
|
|
1940
|
+
if (this.showConfig) {
|
|
1941
|
+
const target = this.showConfig.target;
|
|
1942
|
+
const appendableElement = this.showConfig.appendableElement;
|
|
1943
|
+
if (target && appendableElement) {
|
|
1944
|
+
target.ariaOwnsElements = [appendableElement];
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
/**
|
|
1949
|
+
* Removes `ariaOwnsElements` from the target element when the popup is hidden or destroyed.
|
|
1950
|
+
*/
|
|
1951
|
+
removeAriaOwns() {
|
|
1952
|
+
var _a;
|
|
1953
|
+
if ((_a = this.showConfig) === null || _a === void 0 ? void 0 : _a.target) {
|
|
1954
|
+
this.showConfig.target.ariaOwnsElements = [];
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1798
1957
|
}
|
|
1799
1958
|
ElementAppenderSlimmer.DELAY_HIDE_TIME = 100;
|
|
1800
1959
|
__decorate([
|
|
@@ -8,7 +8,7 @@ import { a as isAsyncFunction, g as generateUUID } from './misc-9fdbcfbb.js';
|
|
|
8
8
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
9
9
|
import { d as domNodeSubjectFactory, D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-82f346e3.js';
|
|
10
10
|
import { e as VegaInternalFieldErrorStateChange, c as VegaInternalFormSubmit, f as VegaInternalValid } from './vega-internal-event-id-799d012e.js';
|
|
11
|
-
import { V as VegaInternalTranslation } from './internal-translation-controller-
|
|
11
|
+
import { V as VegaInternalTranslation } from './internal-translation-controller-113a6288.js';
|
|
12
12
|
import { h as htmlSanitizer, l as labelSanitizeStrategy } from './index-3b327f29.js';
|
|
13
13
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-d6af0d86.js';
|
|
14
14
|
import { I as InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
|
package/dist/esm/{image-annotation-action-6701b4c9.js → image-annotation-action-54936eaa.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h } from './index-090d31ca.js';
|
|
2
2
|
import { V as VegaInternalIconManager } from './internal-icon-manager-bd80b3bb.js';
|
|
3
3
|
import { c as MapToComponentField, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
4
|
-
import { A as ActionHandleStrategyRegistry, O as RTE_TEXT_COLORS, b as RTETextNode, $ as TextColorAnnotationAction, y as NodeAnnotationTypeEnum, F as AnnotationAction } from './code-block-
|
|
4
|
+
import { A as ActionHandleStrategyRegistry, O as RTE_TEXT_COLORS, b as RTETextNode, $ as TextColorAnnotationAction, y as NodeAnnotationTypeEnum, F as AnnotationAction } from './code-block-2408a812.js';
|
|
5
5
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-82f346e3.js';
|
|
6
6
|
import { a as VegaClick, T as VegaPopoverShow, U as VegaPopoverHide, f as VegaChange } from './vega-event-id-38aa77a0.js';
|
|
7
7
|
import { a as VegaDarkModeStyleController } from './dark-mode-style-controller-82e5c1c6.js';
|
|
8
|
-
import { g as ImageAnnotation } from './dto-renderer-manager-
|
|
8
|
+
import { g as ImageAnnotation } from './dto-renderer-manager-d413de1e.js';
|
|
9
9
|
|
|
10
10
|
const text = {
|
|
11
11
|
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M64 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V80C0 53.5 21.5 32 48 32H224 400c26.5 0 48 21.5 48 48v48c0 17.7-14.3 32-32 32s-32-14.3-32-32V96H256l0 320h48c17.7 0 32 14.3 32 32s-14.3 32-32 32H144c-17.7 0-32-14.3-32-32s14.3-32 32-32h48l0-320H64z"/></svg>`,
|
package/dist/esm/index.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
export { g as getCurrentBreakpoint } from './breakpoints-56e5407b.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-7dec1eab.js';
|
|
4
4
|
export { c as camelToDashCase } from './string-a953eafc.js';
|
|
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-
|
|
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-af324dcd.js';
|
|
6
6
|
export { B as Breakpoints } from './breakpoints-d9faf11c.js';
|
|
7
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 { d as BoxDisplay, e as BreakpointKeys, C as CssStates, F as FlexDirections } from './ui-28fd4193.js';
|
|
10
10
|
export { F as FrameworkEnum, v as VegaEnvManager } from './vega-env-manager-8f8dc473.js';
|
|
11
|
-
export { A as ActionHandlerInterceptor, I as InsertNodeToNearestRootAction, o as RTELanguageToolbarButtonRenderer, m as RTETokenNode, n as RTETokenNodeRenderer, R as RTETokenToolbarButtonRenderer, c as VegaEventManager, V as VegaLoader, a as VegaNotify, j as VegaRTEExtension, k as VegaRTEExtensionRenderer, i as VegaRTEFunctionExtension, h as VegaRTELanguageExtension, g as VegaRTETokenExtension, l as VegaRTEToolbarButtonRenderer, e as VegaSkeletonLoader, b as VegaThemeManager, f as VegaTranslation, d as VegaZIndexManager, w as waitForVega } from './token-extension-
|
|
11
|
+
export { A as ActionHandlerInterceptor, I as InsertNodeToNearestRootAction, o as RTELanguageToolbarButtonRenderer, m as RTETokenNode, n as RTETokenNodeRenderer, R as RTETokenToolbarButtonRenderer, c as VegaEventManager, V as VegaLoader, a as VegaNotify, j as VegaRTEExtension, k as VegaRTEExtensionRenderer, i as VegaRTEFunctionExtension, h as VegaRTELanguageExtension, g as VegaRTETokenExtension, l as VegaRTEToolbarButtonRenderer, e as VegaSkeletonLoader, b as VegaThemeManager, f as VegaTranslation, d as VegaZIndexManager, w as waitForVega } from './token-extension-25df8dbb.js';
|
|
12
12
|
export { F as FeatureFlag } from './feature-flag-controller-30f7b625.js';
|
|
13
13
|
export { V as VegaDialog } from './vega-dialog-controller-bbb2fc52.js';
|
|
14
14
|
export { B as VegaJQueryDelegatedEventStrategy } from './internal-vega-event-manager-32a3d848.js';
|
|
15
15
|
export { V as VegaIconManager } from './icon-manager-539d7cf7.js';
|
|
16
|
-
export { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-
|
|
16
|
+
export { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-099dba7d.js';
|
|
17
17
|
import './ui-ee31416b.js';
|
|
18
|
-
export { s as VegaTranslationResourceEN } from './internal-translation-controller-
|
|
18
|
+
export { s as VegaTranslationResourceEN } from './internal-translation-controller-113a6288.js';
|
|
19
19
|
export { s as setVegaNonce } from './vega-nonce-manager-497e5eb5.js';
|
|
20
|
-
export { f as ActionHandleStrategy, g as AppendChildrenAction, Q as CodeLanguage, C as CustomAttributeAnnotation, w as CustomClassAnnotation, v as CustomStyleAnnotation, I as InsertChildrenAfterAction, i as InsertChildrenBeforeAction, M as ModifyContentAction, k as ModifyContentActionType, e as RTEAnnotationStyle, c as RTEBlock, z as RTEDecoratorNode, h as RTENode, d as RTETextBlock, b as RTETextNode, r as RemoveChildrenAction, V as VegaRTEPresetToolbarItems } from './code-block-
|
|
21
|
-
export { B as BlockToRTEBlockStrategyAbstract, b as ElementToDTOStrategy, I as InsertNewParagraphAction, c as RTEImageBlock, f as RTEImageNode, e as RTEListBlock, d as RTEListItemBlock, U as UpdateCursorPositionAction, V as VegaRTEContent, h as htmlElementToAnnotationGenerator } from './dto-renderer-manager-
|
|
22
|
-
export { G as GridColumns, a as GridRows } from './responsive-format-facade-
|
|
20
|
+
export { f as ActionHandleStrategy, g as AppendChildrenAction, Q as CodeLanguage, C as CustomAttributeAnnotation, w as CustomClassAnnotation, v as CustomStyleAnnotation, I as InsertChildrenAfterAction, i as InsertChildrenBeforeAction, M as ModifyContentAction, k as ModifyContentActionType, e as RTEAnnotationStyle, c as RTEBlock, z as RTEDecoratorNode, h as RTENode, d as RTETextBlock, b as RTETextNode, r as RemoveChildrenAction, V as VegaRTEPresetToolbarItems } from './code-block-2408a812.js';
|
|
21
|
+
export { B as BlockToRTEBlockStrategyAbstract, b as ElementToDTOStrategy, I as InsertNewParagraphAction, c as RTEImageBlock, f as RTEImageNode, e as RTEListBlock, d as RTEListItemBlock, U as UpdateCursorPositionAction, V as VegaRTEContent, h as htmlElementToAnnotationGenerator } from './dto-renderer-manager-d413de1e.js';
|
|
22
|
+
export { G as GridColumns, a as GridRows } from './responsive-format-facade-2a36c54a.js';
|
|
23
23
|
export { C as CheckBoxRequiredRule } from './check-box-required-rule-cb0aa339.js';
|
|
24
|
-
export { D as DateRequiredRule } from './date-required-rule-
|
|
24
|
+
export { D as DateRequiredRule } from './date-required-rule-09d5aa16.js';
|
|
25
25
|
export { I as InputPhoneNumberRequiredRule } from './input-phone-number-required-rule-be6a5572.js';
|
|
26
26
|
export { I as InputRangeRequiredRule } from './input-range-required-rule-3ad74776.js';
|
|
27
27
|
export { R as RequiredFieldRule } from './required-field-rule-ab4bdc47.js';
|
|
28
|
-
export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-
|
|
29
|
-
export { T as TimeRangeRequiredRule, a as TimeRequiredRule } from './time-required-rule-
|
|
28
|
+
export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-b09039da.js';
|
|
29
|
+
export { T as TimeRangeRequiredRule, a as TimeRequiredRule } from './time-required-rule-c7cfb257.js';
|
|
30
30
|
export { T as ToggleSwitchRequiredRule } from './toggle-switch-required-rule-b3cf4302.js';
|
|
31
31
|
export { F as FileUploaderRequiredRule } from './file-uploader-required-rule-ad886d01.js';
|
|
32
|
-
export { R as RTERange } from './range-
|
|
32
|
+
export { R as RTERange } from './range-a5d78e69.js';
|
|
33
33
|
import './misc-9fdbcfbb.js';
|
|
34
34
|
import './create-public-api-runtime-metrics-slimmer-aaadaa08.js';
|
|
35
35
|
import './dynamic-slimmer-90b8af32.js';
|
|
@@ -35,6 +35,8 @@ const staticTranslations = {
|
|
|
35
35
|
'Upload': 'Upload',
|
|
36
36
|
'Clear': 'Clear',
|
|
37
37
|
'Today': 'Today',
|
|
38
|
+
'Previous month': 'Previous month',
|
|
39
|
+
'Next month': 'Next month',
|
|
38
40
|
'Day': 'Day',
|
|
39
41
|
'Week': 'Week',
|
|
40
42
|
'Month': 'Month',
|
|
@@ -52,6 +54,13 @@ const staticTranslations = {
|
|
|
52
54
|
'Thu-short': 'T',
|
|
53
55
|
'Fri-short': 'F',
|
|
54
56
|
'Sat-short': 'S',
|
|
57
|
+
'Sun-full': 'Sunday',
|
|
58
|
+
'Mon-full': 'Monday',
|
|
59
|
+
'Tue-full': 'Tuesday',
|
|
60
|
+
'Wed-full': 'Wednesday',
|
|
61
|
+
'Thu-full': 'Thursday',
|
|
62
|
+
'Fri-full': 'Friday',
|
|
63
|
+
'Sat-full': 'Saturday',
|
|
55
64
|
'January': 'January',
|
|
56
65
|
'February': 'February',
|
|
57
66
|
'March': 'March',
|
|
@@ -107,6 +116,10 @@ const staticTranslations = {
|
|
|
107
116
|
'Less Indent': 'Less Indent',
|
|
108
117
|
'Link': 'Link',
|
|
109
118
|
'Image': 'Image',
|
|
119
|
+
'Upload from computer': 'Upload from computer',
|
|
120
|
+
'Insert via URL': 'Insert via URL',
|
|
121
|
+
'Image via URL': 'Image via URL',
|
|
122
|
+
'Insert': 'Insert',
|
|
110
123
|
'Clear Style': 'Clear Style',
|
|
111
124
|
'URL': 'URL',
|
|
112
125
|
'Text': 'Text',
|
|
@@ -149,6 +162,8 @@ const staticTranslations = {
|
|
|
149
162
|
'Saturday': 'Saturday',
|
|
150
163
|
'am': 'am',
|
|
151
164
|
'pm': 'pm',
|
|
165
|
+
'date picker': 'Date Picker',
|
|
166
|
+
'Selected result': 'Selected result',
|
|
152
167
|
};
|
|
153
168
|
|
|
154
169
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as isParent, e as getDeepActiveElementInShadow } from './ui-ee31416b.js';
|
|
2
|
-
import { i as isNonNullable } from './type-guard-
|
|
2
|
+
import { i as isNonNullable } from './type-guard-af324dcd.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* It listens to the keyup event on the window and calls the appropriate method on the registered elements
|
package/dist/esm/{keyboard-manager-slimmer-9984d922.js → keyboard-manager-slimmer-c8898843.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-f9bfa678.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;
|