@heartlandone/vega 2.76.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-12b7d808.js → app-globals-1021e33e.js} +7 -7
- package/dist/cjs/aria-attributes-value-mapper-9a41b9cf.js +143 -0
- package/dist/cjs/{child-nodes-event-prevent-slimmer-84435957.js → child-nodes-event-prevent-slimmer-cc6d2919.js} +1 -1
- 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-41baf118.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-34e4eb56.js → element-appender-slimmer-40d39bba.js} +179 -20
- 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 +13 -13
- 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/legend-input-processor-1e53e5bc.js +2126 -0
- package/dist/cjs/loader.cjs.js +9 -9
- 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-ea59bdcd.js → responsive-format-facade-0b65ce4a.js} +2 -2
- 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-0c3ced39.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-07cac85d.js → token-extension-5a1c473e.js} +102 -81
- 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 +7 -7
- package/dist/cjs/vega-app-header-button.cjs.entry.js +39 -146
- package/dist/cjs/vega-banner.cjs.entry.js +1 -1
- package/dist/cjs/vega-bar-chart.cjs.entry.js +2 -2
- package/dist/cjs/vega-box.cjs.entry.js +6 -6
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/vega-button-circle.cjs.entry.js +23 -8
- package/dist/cjs/vega-button-group_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-button-link.cjs.entry.js +18 -2
- package/dist/cjs/vega-button.cjs.entry.js +5 -5
- package/dist/cjs/vega-calendar_4.cjs.entry.js +7 -7
- package/dist/cjs/vega-card.cjs.entry.js +5 -5
- package/dist/cjs/vega-carousel.cjs.entry.js +4 -4
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-chip.cjs.entry.js +6 -6
- package/dist/cjs/vega-code-block.cjs.entry.js +10 -10
- package/dist/cjs/vega-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/vega-combo-box.cjs.entry.js +7 -7
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +128 -25
- package/dist/cjs/vega-dialog_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-divider.cjs.entry.js +5 -5
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +33 -9
- 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 +5 -5
- package/dist/cjs/vega-flex.cjs.entry.js +6 -6
- package/dist/cjs/vega-font.cjs.entry.js +5 -5
- package/dist/cjs/vega-form.cjs.entry.js +5 -5
- package/dist/cjs/vega-grid.cjs.entry.js +5 -5
- package/dist/cjs/vega-icon.cjs.entry.js +5 -5
- package/dist/cjs/vega-image-uploader.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +8 -8
- package/dist/cjs/vega-input-numeric.cjs.entry.js +7 -7
- package/dist/cjs/vega-input-passcode.cjs.entry.js +39 -9
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +4757 -5589
- package/dist/cjs/vega-input-range.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-select.cjs.entry.js +7 -7
- package/dist/cjs/vega-input.cjs.entry.js +220 -125
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +7 -8
- package/dist/cjs/vega-line-chart.cjs.entry.js +325 -23
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +2 -2
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +2 -2
- package/dist/cjs/vega-pagination.cjs.entry.js +6 -6
- package/dist/cjs/vega-pie-chart.cjs.entry.js +5 -88
- package/dist/cjs/vega-popover_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-radio_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +26 -6
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +129 -31
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +4 -4
- package/dist/cjs/vega-signature-capture.cjs.entry.js +7 -7
- package/dist/cjs/vega-stepper.cjs.entry.js +4 -4
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-table_11.cjs.entry.js +6 -6
- package/dist/cjs/vega-textarea.cjs.entry.js +4 -4
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +11 -11
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +8 -8
- package/dist/cjs/vega.cjs.js +9 -9
- package/dist/cjs/y-axis-input-processor-54a26515.js +832 -0
- package/dist/collection/components/vega-accordion/slimmers/vega-accordion-renderer.js +1 -1
- package/dist/collection/components/vega-accordion/vega-accordion.css +5 -0
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +44 -2
- package/dist/collection/components/vega-button-circle/vega-button-circle.js +17 -3
- 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 +18 -3
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +196 -207
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +32 -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-input-phone-number/slimmers/controllers/country-select-controller.js +1 -1
- package/dist/collection/components/vega-input-phone-number/slimmers/controllers/vega-input-phone-number-value-controller.js +1 -1
- package/dist/collection/components/vega-input-phone-number/slimmers/renderers/country-select-renderer.js +1 -1
- package/dist/collection/components/vega-input-phone-number/slimmers/renderers/phone-number-input-renderer.js +1 -1
- package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +4 -4
- 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-content/slimmers/renderers/vega-rich-text-content-renderer.js +15 -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/extensions/base-extension-renderer.js +11 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +15 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/function-extension.js +0 -11
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/function-toolbar-button-renderer.js +23 -23
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-extension.js +0 -10
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.js +7 -17
- package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-toolbar-button-renderer.js +12 -16
- package/dist/collection/components/vega-rich-text-editor/helpers/extension-context-manager.js +31 -0
- package/dist/collection/components/vega-rich-text-editor/helpers/extension-context-manager.test.js +19 -0
- 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/test/extensions/extension-test-utils.js +41 -0
- 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/chart/input-processors/format-time-positions-input-processor.js +2 -2
- package/dist/collection/helpers/chart/input-processors/pie-chart-arc-path-input-processor.js +1 -1
- package/dist/collection/helpers/chart/input-processors/x-axis-input-processor.js +5 -3
- package/dist/collection/helpers/chart/input-processors/x-axis-label-formatter-input-processor.js +2 -1
- package/dist/collection/helpers/chart/input-processors/y-axis-input-processor.js +7 -5
- package/dist/collection/helpers/chart/interacting-entry-generator/arc-path-hover-generator.js +1 -1
- package/dist/collection/helpers/chart/interacting-entry-generator/pie-legend-hover-generator.js +1 -1
- package/dist/collection/helpers/chart/renderers/canvas-renderer.js +1 -1
- package/dist/collection/helpers/chart/renderers/svg-renderer.js +1 -1
- package/dist/collection/helpers/chart/test/drawers/arc-path-drawer.test.js +1 -1
- package/dist/collection/helpers/chart/test/input-processors/format-time-positions-input-processor.test.js +1 -1
- package/dist/collection/helpers/chart/test/input-processors/sort-positions-input-processor.test.js +1 -1
- package/dist/collection/helpers/chart/test/input-processors/x-axis-input-processor.test.js +39 -0
- package/dist/collection/helpers/chart/test/input-processors/x-axis-label-formatter-input-processor.test.js +61 -14
- package/dist/collection/helpers/chart/test/input-processors/y-axis-input-processor.coverage.test.js +39 -0
- package/dist/collection/helpers/chart/test/input-processors/y-axis-input-processor.test.js +14 -0
- package/dist/collection/helpers/chart/test/renderers/svg-renderer.test.js +1 -1
- package/dist/collection/helpers/common/test/wait-for-component-did-render.test.js +67 -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 +14 -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/helpers/validator/rules/valid-phone-number-rule.js +1 -1
- package/dist/collection/helpers/validator/test/rules/valid-phone-number-rule.test.js +10 -0
- package/dist/collection/polyfill/d3/d3-array-polyfill.js +89 -0
- package/dist/collection/polyfill/d3/d3-axis-polyfill.js +195 -0
- package/dist/collection/polyfill/d3/d3-scale-polyfill.js +582 -0
- package/dist/collection/polyfill/d3/d3-selection-polyfill.js +274 -0
- package/dist/collection/polyfill/d3/d3-shape-polyfill.js +252 -0
- package/dist/collection/polyfill/d3/d3-time-format-polyfill.js +207 -0
- package/dist/collection/polyfill/d3/d3-time-polyfill.js +99 -0
- package/dist/collection/polyfill/d3/index.js +31 -0
- package/dist/collection/polyfill/d3/test/d3-array-polyfill.test.js +72 -0
- package/dist/collection/polyfill/d3/test/d3-axis-polyfill.test.js +171 -0
- package/dist/collection/polyfill/d3/test/d3-integration.test.js +137 -0
- package/dist/collection/polyfill/d3/test/d3-scale-polyfill.test.js +382 -0
- package/dist/collection/polyfill/d3/test/d3-selection-polyfill.test.js +239 -0
- package/dist/collection/polyfill/d3/test/d3-shape-polyfill.test.js +225 -0
- package/dist/collection/polyfill/d3/test/d3-time-format-polyfill.test.js +162 -0
- package/dist/collection/polyfill/d3/test/d3-time-polyfill.test.js +76 -0
- package/dist/collection/polyfill/d3/test/index.test.js +78 -0
- package/dist/collection/polyfill/libphonenumber/as-you-type.js +405 -0
- package/dist/collection/polyfill/libphonenumber/format-helpers.js +186 -0
- package/dist/collection/polyfill/libphonenumber/index.js +22 -0
- package/dist/collection/polyfill/libphonenumber/metadata.js +150 -0
- package/dist/collection/polyfill/libphonenumber/metadata.json.js +3900 -0
- package/dist/collection/polyfill/libphonenumber/parse-phone-number.js +127 -0
- package/dist/collection/polyfill/libphonenumber/phone-number.js +38 -0
- package/dist/collection/polyfill/libphonenumber/test/as-you-type.test.js +309 -0
- package/dist/collection/polyfill/libphonenumber/test/format-helpers.test.js +192 -0
- package/dist/collection/polyfill/libphonenumber/test/index.test.js +16 -0
- package/dist/collection/polyfill/libphonenumber/test/metadata.test.js +196 -0
- package/dist/collection/polyfill/libphonenumber/test/parse-phone-number.test.js +218 -0
- package/dist/collection/polyfill/libphonenumber/test/phone-number.test.js +56 -0
- package/dist/collection/polyfill/libphonenumber/types.js +23 -0
- package/dist/collection/utils/e2e-utils.js +6 -0
- package/dist/esm/{app-globals-c0676920.js → app-globals-0b3b7111.js} +7 -7
- package/dist/esm/aria-attributes-value-mapper-2c632641.js +141 -0
- package/dist/esm/{child-nodes-event-prevent-slimmer-649b9d30.js → child-nodes-event-prevent-slimmer-331312b8.js} +1 -1
- 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-4aee1c56.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-e4713a72.js → element-appender-slimmer-5d573612.js} +179 -20
- 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 +13 -13
- 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/legend-input-processor-122008c5.js +2116 -0
- package/dist/esm/loader.js +9 -9
- 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-7a071174.js → responsive-format-facade-2a36c54a.js} +2 -2
- 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-3d06b72d.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-e33fd151.js → token-extension-25df8dbb.js} +102 -81
- 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 +7 -7
- package/dist/esm/vega-app-header-button.entry.js +38 -145
- package/dist/esm/vega-banner.entry.js +1 -1
- package/dist/esm/vega-bar-chart.entry.js +2 -2
- package/dist/esm/vega-box.entry.js +6 -6
- package/dist/esm/vega-breadcrumb.entry.js +2 -2
- package/dist/esm/vega-button-circle.entry.js +23 -8
- package/dist/esm/vega-button-group_2.entry.js +2 -2
- package/dist/esm/vega-button-link.entry.js +18 -2
- package/dist/esm/vega-button.entry.js +5 -5
- package/dist/esm/vega-calendar_4.entry.js +7 -7
- package/dist/esm/vega-card.entry.js +5 -5
- package/dist/esm/vega-carousel.entry.js +4 -4
- package/dist/esm/vega-checkbox_2.entry.js +4 -4
- package/dist/esm/vega-chip.entry.js +6 -6
- package/dist/esm/vega-code-block.entry.js +10 -10
- package/dist/esm/vega-color-picker.entry.js +2 -2
- package/dist/esm/vega-combo-box.entry.js +7 -7
- package/dist/esm/vega-date-picker_2.entry.js +129 -26
- package/dist/esm/vega-dialog_2.entry.js +6 -6
- package/dist/esm/vega-divider.entry.js +5 -5
- package/dist/esm/vega-dropdown_5.entry.js +34 -10
- 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 +5 -5
- package/dist/esm/vega-flex.entry.js +6 -6
- package/dist/esm/vega-font.entry.js +5 -5
- package/dist/esm/vega-form.entry.js +5 -5
- package/dist/esm/vega-grid.entry.js +5 -5
- package/dist/esm/vega-icon.entry.js +5 -5
- package/dist/esm/vega-image-uploader.entry.js +7 -7
- package/dist/esm/vega-input-credit-card.entry.js +8 -8
- package/dist/esm/vega-input-numeric.entry.js +7 -7
- package/dist/esm/vega-input-passcode.entry.js +39 -9
- package/dist/esm/vega-input-phone-number.entry.js +4757 -5589
- package/dist/esm/vega-input-range.entry.js +5 -5
- package/dist/esm/vega-input-select.entry.js +7 -7
- package/dist/esm/vega-input.entry.js +220 -125
- package/dist/esm/vega-left-nav_5.entry.js +7 -8
- package/dist/esm/vega-line-chart.entry.js +311 -9
- package/dist/esm/vega-loader-wrapper_2.entry.js +4 -4
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +2 -2
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
- package/dist/esm/vega-pagination.entry.js +6 -6
- package/dist/esm/vega-pie-chart.entry.js +5 -88
- package/dist/esm/vega-popover_2.entry.js +9 -9
- package/dist/esm/vega-progress-tracker_2.entry.js +4 -4
- package/dist/esm/vega-radio_2.entry.js +7 -7
- package/dist/esm/vega-rich-text-content.entry.js +26 -6
- package/dist/esm/vega-rich-text-editor_4.entry.js +130 -32
- package/dist/esm/vega-selection-chip_2.entry.js +6 -6
- package/dist/esm/vega-selection-tile_2.entry.js +4 -4
- package/dist/esm/vega-sidenav_3.entry.js +4 -4
- package/dist/esm/vega-signature-capture.entry.js +7 -7
- package/dist/esm/vega-stepper.entry.js +4 -4
- package/dist/esm/vega-tab-group_2.entry.js +2 -2
- package/dist/esm/vega-table_11.entry.js +6 -6
- package/dist/esm/vega-textarea.entry.js +4 -4
- package/dist/esm/vega-time-picker_2.entry.js +11 -11
- package/dist/esm/vega-toggle-switch.entry.js +2 -2
- package/dist/esm/vega-tooltip_2.entry.js +8 -8
- package/dist/esm/vega.js +9 -9
- package/dist/esm/y-axis-input-processor-c7e05353.js +826 -0
- package/dist/sri/vega-sri-manifest.json +317 -313
- 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-circle/vega-button-circle.d.ts +2 -0
- 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/types.d.ts +14 -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-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.d.ts +3 -0
- package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +9 -1
- 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-content/slimmers/renderers/vega-rich-text-content-renderer.d.ts +6 -0
- package/dist/types/components/vega-rich-text-editor/extensions/base-extension-renderer.d.ts +9 -1
- package/dist/types/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.d.ts +9 -1
- package/dist/types/components/vega-rich-text-editor/extensions/functions/function-extension.d.ts +0 -7
- package/dist/types/components/vega-rich-text-editor/extensions/functions/renderers/function-toolbar-button-renderer.d.ts +5 -10
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-extension.d.ts +1 -5
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.d.ts +3 -8
- package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-toolbar-button-renderer.d.ts +5 -9
- package/dist/types/components/vega-rich-text-editor/helpers/extension-context-manager.d.ts +26 -0
- package/dist/types/components/vega-rich-text-editor/helpers/extension-context-manager.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +4 -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/vega-rich-text-editor/test/extensions/extension-test-utils.d.ts +21 -0
- package/dist/types/components.d.ts +22 -2
- package/dist/types/helpers/calendar/utils.d.ts +17 -0
- package/dist/types/helpers/chart/test/input-processors/y-axis-input-processor.coverage.test.d.ts +1 -0
- package/dist/types/helpers/common/test/wait-for-component-did-render.test.d.ts +1 -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/polyfill/d3/d3-array-polyfill.d.ts +48 -0
- package/dist/types/polyfill/d3/d3-axis-polyfill.d.ts +53 -0
- package/dist/types/polyfill/d3/d3-scale-polyfill.d.ts +42 -0
- package/dist/types/polyfill/d3/d3-selection-polyfill.d.ts +173 -0
- package/dist/types/polyfill/d3/d3-shape-polyfill.d.ts +129 -0
- package/dist/types/polyfill/d3/d3-time-format-polyfill.d.ts +28 -0
- package/dist/types/polyfill/d3/d3-time-polyfill.d.ts +68 -0
- package/dist/types/polyfill/d3/index.d.ts +27 -0
- package/dist/types/polyfill/d3/test/d3-array-polyfill.test.d.ts +1 -0
- package/dist/types/polyfill/d3/test/d3-axis-polyfill.test.d.ts +1 -0
- package/dist/types/polyfill/d3/test/d3-integration.test.d.ts +1 -0
- package/dist/types/polyfill/d3/test/d3-scale-polyfill.test.d.ts +1 -0
- package/dist/types/polyfill/d3/test/d3-selection-polyfill.test.d.ts +1 -0
- package/dist/types/polyfill/d3/test/d3-shape-polyfill.test.d.ts +1 -0
- package/dist/types/polyfill/d3/test/d3-time-format-polyfill.test.d.ts +1 -0
- package/dist/types/polyfill/d3/test/d3-time-polyfill.test.d.ts +1 -0
- package/dist/types/polyfill/d3/test/index.test.d.ts +1 -0
- package/dist/types/polyfill/libphonenumber/as-you-type.d.ts +154 -0
- package/dist/types/polyfill/libphonenumber/format-helpers.d.ts +64 -0
- package/dist/types/polyfill/libphonenumber/index.d.ts +22 -0
- package/dist/types/polyfill/libphonenumber/metadata.d.ts +45 -0
- package/dist/types/polyfill/libphonenumber/metadata.json.d.ts +470 -0
- package/dist/types/polyfill/libphonenumber/parse-phone-number.d.ts +26 -0
- package/dist/types/polyfill/libphonenumber/phone-number.d.ts +24 -0
- package/dist/types/polyfill/libphonenumber/test/as-you-type.test.d.ts +1 -0
- package/dist/types/polyfill/libphonenumber/test/format-helpers.test.d.ts +1 -0
- package/dist/types/polyfill/libphonenumber/test/index.test.d.ts +1 -0
- package/dist/types/polyfill/libphonenumber/test/metadata.test.d.ts +1 -0
- package/dist/types/polyfill/libphonenumber/test/parse-phone-number.test.d.ts +1 -0
- package/dist/types/polyfill/libphonenumber/test/phone-number.test.d.ts +1 -0
- package/dist/types/polyfill/libphonenumber/types.d.ts +77 -0
- package/dist/types/types/components.type.d.ts +2 -0
- package/dist/types/types/flag.type.d.ts +255 -4
- package/dist/types/types/ui.type.d.ts +3 -2
- package/dist/types/types/vega-chart.d.ts +10 -11
- package/dist/types/utils/e2e-utils.d.ts +2 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-d8fadcdc.entry.js → p-0037068c.entry.js} +1 -1
- package/dist/vega/{p-4bffdb28.js → p-051bbce6.js} +1 -1
- package/dist/vega/{p-02a7d60c.entry.js → p-0a3a285b.entry.js} +1 -1
- package/dist/vega/{p-1a3236e7.entry.js → p-0ac9a732.entry.js} +1 -1
- package/dist/vega/{p-2b49686d.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-b366deff.entry.js → p-19270396.entry.js} +1 -1
- package/dist/vega/{p-10734a00.js → p-1a51bf6f.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-6dcdb580.entry.js → p-1deedff2.entry.js} +1 -1
- package/dist/vega/{p-6d60b66a.entry.js → p-22f3d35c.entry.js} +1 -1
- package/dist/vega/{p-3d8122ab.entry.js → p-23427f6a.entry.js} +1 -1
- package/dist/vega/p-2466316a.js +1 -0
- package/dist/vega/p-27b0af38.entry.js +1 -0
- package/dist/vega/{p-bb5e0192.entry.js → p-2c2193f2.entry.js} +1 -1
- package/dist/vega/{p-dd3a94f4.entry.js → p-3237be8b.entry.js} +1 -1
- package/dist/vega/{p-94a77fbe.entry.js → p-36a09524.entry.js} +1 -1
- package/dist/vega/{p-7181861a.js → p-38e850c3.js} +1 -1
- package/dist/vega/{p-e2af0e24.entry.js → p-3b9fc697.entry.js} +1 -1
- package/dist/vega/{p-3244c605.entry.js → p-41d14339.entry.js} +1 -1
- package/dist/vega/{p-a0b66c25.js → p-4c060ba9.js} +1 -1
- package/dist/vega/p-4d4bf82a.entry.js +1 -0
- 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-b256b7a4.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-a7a8a4eb.entry.js → p-67b0ccdc.entry.js} +1 -1
- package/dist/vega/p-68846f0d.js +1 -0
- package/dist/vega/{p-d7a78c5e.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-8e34b266.js +1 -0
- 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-b136ebba.entry.js → p-9adfcd47.entry.js} +1 -1
- package/dist/vega/{p-d555f677.entry.js → p-9e36f7ff.entry.js} +1 -1
- package/dist/vega/{p-8dbdd609.entry.js → p-9f9d9a53.entry.js} +1 -1
- package/dist/vega/{p-7958614a.entry.js → p-9feaac4b.entry.js} +1 -1
- package/dist/vega/{p-ca5898dc.entry.js → p-a0e69236.entry.js} +1 -1
- package/dist/vega/{p-95528b47.js → p-a17312a6.js} +1 -1
- package/dist/vega/p-a46e977b.entry.js +1 -0
- package/dist/vega/p-a79fdf2f.js +1 -0
- package/dist/vega/p-a800bf6d.js +1 -0
- package/dist/vega/{p-c29068fb.entry.js → p-aaf9b39f.entry.js} +1 -1
- package/dist/vega/{p-2e91295d.entry.js → p-acbb96b3.entry.js} +1 -1
- package/dist/vega/p-af2110fc.entry.js +1 -0
- package/dist/vega/{p-f14a5eae.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-01d58eb8.entry.js → p-c086529c.entry.js} +1 -1
- package/dist/vega/{p-154f9cf7.entry.js → p-c61bcd92.entry.js} +1 -1
- package/dist/vega/{p-bebfbe95.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-89f2e16d.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-57927b10.entry.js → p-d07f5d5a.entry.js} +1 -1
- package/dist/vega/{p-033c31d8.entry.js → p-d0975995.entry.js} +1 -1
- package/dist/vega/{p-d6dbbe61.entry.js → p-d2ee5711.entry.js} +1 -1
- package/dist/vega/{p-8950987b.entry.js → p-d2fc470e.entry.js} +1 -1
- package/dist/vega/{p-a560d8c5.entry.js → p-d70e1b75.entry.js} +1 -1
- package/dist/vega/p-d8180e42.entry.js +1 -0
- package/dist/vega/{p-3afc025e.entry.js → p-da0fd3dc.entry.js} +1 -1
- package/dist/vega/{p-087ea379.entry.js → p-da552ddf.entry.js} +1 -1
- package/dist/vega/{p-eda988d5.entry.js → p-ddce3e0e.entry.js} +1 -1
- package/dist/vega/{p-aa1174dc.js → p-dfb12762.js} +1 -1
- package/dist/vega/{p-8b153acd.entry.js → p-e0fb1f60.entry.js} +1 -1
- package/dist/vega/{p-249df6d2.entry.js → p-e1c017d1.entry.js} +1 -1
- package/dist/vega/p-e4917e76.js +1 -0
- package/dist/vega/{p-fd7ddd64.entry.js → p-e4c99b72.entry.js} +1 -1
- package/dist/vega/{p-9a137bab.entry.js → p-e841c1fe.entry.js} +1 -1
- package/dist/vega/{p-f05b8f76.entry.js → p-ea96b0f9.entry.js} +1 -1
- package/dist/vega/{p-76181a70.entry.js → p-eab9d999.entry.js} +1 -1
- package/dist/vega/{p-2cc9d126.entry.js → p-ed9ad4fd.entry.js} +1 -1
- package/dist/vega/{p-2ba78982.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-32183637.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 +2 -6
- package/dist/cjs/legend-input-processor-27c65353.js +0 -4759
- package/dist/cjs/y-axis-input-processor-9fbfd5e7.js +0 -2302
- package/dist/esm/legend-input-processor-5ecae3a7.js +0 -4742
- package/dist/esm/y-axis-input-processor-bc54314a.js +0 -2290
- package/dist/vega/p-179aad4f.entry.js +0 -1
- package/dist/vega/p-1f5e35dc.entry.js +0 -1
- package/dist/vega/p-28ad1864.entry.js +0 -1
- package/dist/vega/p-32033e7a.js +0 -1
- package/dist/vega/p-32faa460.entry.js +0 -1
- package/dist/vega/p-464559e3.js +0 -1
- package/dist/vega/p-46b077d9.js +0 -1
- package/dist/vega/p-4e017458.entry.js +0 -1
- package/dist/vega/p-4e4a0228.entry.js +0 -1
- package/dist/vega/p-5831d6d3.entry.js +0 -1
- package/dist/vega/p-644f701a.js +0 -1
- package/dist/vega/p-6a62e476.entry.js +0 -1
- package/dist/vega/p-6b6f0fb4.js +0 -1
- package/dist/vega/p-a13a73fa.entry.js +0 -1
- package/dist/vega/p-b597393b.entry.js +0 -1
- package/dist/vega/p-be23bef2.js +0 -1
- package/dist/vega/p-c1d13eec.entry.js +0 -1
- package/dist/vega/p-c3d2f316.js +0 -1
- package/dist/vega/p-dad3ba5f.js +0 -1
- package/dist/vega/p-e1431c14.entry.js +0 -1
- package/dist/vega/p-e89e3ede.entry.js +0 -1
- package/dist/vega/p-f3d0f2dc.js +0 -1
- package/dist/vega/p-f5bafc45.entry.js +0 -1
- package/dist/vega/p-fc1fa345.js +0 -1
- /package/dist/cjs/{feature-flag-controller-04cb1e69.js → feature-flag-controller-9129ef52.js} +0 -0
- /package/dist/esm/{feature-flag-controller-09ea7e87.js → feature-flag-controller-30f7b625.js} +0 -0
- /package/dist/vega/{p-07cb0243.js → p-18e8d9b7.js} +0 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { M as MapToComponentMethod, L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
|
2
|
+
import { M as MutationObserverSlimmer } from './mutation-observer-slimmer-58ebc13c.js';
|
|
3
|
+
|
|
4
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
8
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Maps component attributes/properties to aria-XXX attributes on an inner native element.
|
|
12
|
+
* Observes attribute changes on host and updates the target element accordingly.
|
|
13
|
+
*/
|
|
14
|
+
class AriaAttributesValueMapper extends MutationObserverSlimmer {
|
|
15
|
+
/**
|
|
16
|
+
* The constructor initializes a class instance with a targetGetter function and an ariaMap.
|
|
17
|
+
*
|
|
18
|
+
* @param {() => HTMLElement} targetGetter - a function that returns the target element to set aria attributes on
|
|
19
|
+
* @param {AriaAttributesMap} ariaMap - a map where the key is the aria attribute to set on the target element, and the value is an object that defines the dependencies (attributes/properties on host to check for value) and an optional default value
|
|
20
|
+
*/
|
|
21
|
+
constructor(targetGetter, ariaMap) {
|
|
22
|
+
// Build attributeFilter from dependencies
|
|
23
|
+
const attrs = Array.from(new Set(Object.values(ariaMap).reduce((acc, cur) => acc.concat(cur.dependency), [])));
|
|
24
|
+
// create entry for MutationObserverSlimmer to observe host attributes (omit target so host is observed)
|
|
25
|
+
super({
|
|
26
|
+
options: { attributes: true, attributeFilter: attrs },
|
|
27
|
+
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
28
|
+
callback: (mutations) => {
|
|
29
|
+
this.handleMutations(mutations);
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
this.targetGetter = targetGetter;
|
|
33
|
+
this.ariaMap = ariaMap;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Component lifecycle - [componentDidLoad]
|
|
37
|
+
*/
|
|
38
|
+
componentDidLoad() {
|
|
39
|
+
this.performMapping();
|
|
40
|
+
super.componentDidLoad && super.componentDidLoad();
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Run mapping after each component render to ensure refs assigned and
|
|
44
|
+
* attributes/properties are up-to-date. This guarantees the mapper runs
|
|
45
|
+
* even when attribute changes are observed before the inner target ref
|
|
46
|
+
* is available.
|
|
47
|
+
*/
|
|
48
|
+
componentDidRender() {
|
|
49
|
+
this.performMapping();
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* The `handleMutations` function processes an array of `MutationRecord` objects to determine which attributes have changed and then calls the `performMapping` function to update the corresponding aria attributes on the target element. It collects the names of the changed attributes into a set and passes it to the `performMapping` function, which uses this information to decide which aria attributes need to be updated based on their defined dependencies.
|
|
53
|
+
*
|
|
54
|
+
* @param {MutationRecord[]} mutations - an array of MutationRecord objects that represent the changes observed by the MutationObserver. Each MutationRecord contains information about the type of mutation, the target element that was mutated, and any relevant attribute names if the mutation was an attribute change.
|
|
55
|
+
*/
|
|
56
|
+
handleMutations(mutations) {
|
|
57
|
+
const changedAttrs = new Set();
|
|
58
|
+
if (mutations && mutations.length) {
|
|
59
|
+
for (const m of mutations) {
|
|
60
|
+
if (m.attributeName)
|
|
61
|
+
changedAttrs.add(m.attributeName);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
this.performMapping(changedAttrs.size ? changedAttrs : undefined);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The `performMapping` function updates the aria attributes on the target element based on the defined dependencies in the `ariaMap`. It checks which attributes have changed (if provided) and only updates the aria attributes that depend on those changed attributes. For each aria attribute defined in the `ariaMap`, it looks for the first non-empty value among its dependencies (checking both attributes and properties on the host element) and sets that as the value of the aria attribute on the target element. If all dependencies are empty or undefined, it uses the default value specified in the `ariaMap`. The function also includes error handling when setting attributes on the target element.
|
|
68
|
+
*
|
|
69
|
+
* @param {Set<string>} changedAttrs - a set of attribute names that have changed on the host element
|
|
70
|
+
*/
|
|
71
|
+
performMapping(changedAttrs) {
|
|
72
|
+
const target = this.targetGetter ? this.targetGetter() : null;
|
|
73
|
+
if (!target)
|
|
74
|
+
return;
|
|
75
|
+
const host = this.host;
|
|
76
|
+
Object.keys(this.ariaMap).forEach((ariaAttr) => {
|
|
77
|
+
const { dependency, defaultValue } = this.ariaMap[ariaAttr];
|
|
78
|
+
// If no relevant dependency changed, skip updating this ariaAttr
|
|
79
|
+
if (changedAttrs && !dependency.some((item) => changedAttrs.has(item))) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
let finalValue = null;
|
|
83
|
+
for (const item of dependency) {
|
|
84
|
+
// Try attribute first
|
|
85
|
+
let val = host.getAttribute(item);
|
|
86
|
+
if (val === null || val === undefined || val === '') {
|
|
87
|
+
// Try property on host if attribute not present or empty
|
|
88
|
+
// support dashed-name -> camelCase property (e.g. data-aria-label -> dataAriaLabel)
|
|
89
|
+
const camel = item.replace(/-([a-z])/g, (_m, p1) => p1.toUpperCase());
|
|
90
|
+
const p1 = host[item];
|
|
91
|
+
const p2 = host[camel];
|
|
92
|
+
if (p1 !== undefined && p1 !== null) {
|
|
93
|
+
val = String(p1);
|
|
94
|
+
}
|
|
95
|
+
else if (p2 !== undefined && p2 !== null) {
|
|
96
|
+
val = String(p2);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (val !== null && val !== undefined && String(val).trim() !== '') {
|
|
100
|
+
finalValue = val;
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (finalValue === null || finalValue === undefined || String(finalValue).trim() === '') {
|
|
105
|
+
finalValue = defaultValue;
|
|
106
|
+
}
|
|
107
|
+
try {
|
|
108
|
+
if (String(finalValue).trim() === '') {
|
|
109
|
+
target.removeAttribute(ariaAttr);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
const existing = target.getAttribute(ariaAttr);
|
|
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);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
catch (e) {
|
|
125
|
+
LogUtility.warn('Errors occurred when setting aria attribute:', {
|
|
126
|
+
ariaAttr,
|
|
127
|
+
finalValue,
|
|
128
|
+
error: e,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
__decorate([
|
|
135
|
+
MapToComponentMethod('componentDidLoad')
|
|
136
|
+
], AriaAttributesValueMapper.prototype, "componentDidLoad", null);
|
|
137
|
+
__decorate([
|
|
138
|
+
MapToComponentMethod('componentDidRender')
|
|
139
|
+
], AriaAttributesValueMapper.prototype, "componentDidRender", null);
|
|
140
|
+
|
|
141
|
+
export { AriaAttributesValueMapper as A };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
2
2
|
import { i as internalVegaEventManager, j as jqueryDelegatedStrategyController } from './internal-vega-event-manager-32a3d848.js';
|
|
3
3
|
import { v as vegaEnvManager } from './vega-env-manager-8f8dc473.js';
|
|
4
|
-
import { F as FeatureFlag } from './feature-flag-controller-
|
|
4
|
+
import { F as FeatureFlag } from './feature-flag-controller-30f7b625.js';
|
|
5
5
|
|
|
6
6
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
7
7
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -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';
|
package/dist/esm/{element-appender-slimmer-e4713a72.js → element-appender-slimmer-5d573612.js}
RENAMED
|
@@ -4,10 +4,10 @@ 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
|
-
import { F as FeatureFlag } from './feature-flag-controller-
|
|
10
|
+
import { F as FeatureFlag } from './feature-flag-controller-30f7b625.js';
|
|
11
11
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
12
12
|
import { S as SHADOW_ROOT_ELEMENT_SCROLLING } from './static-subject-title-52f93124.js';
|
|
13
13
|
import { O as Observer } from './observer-3959f9dd.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-
|
|
12
|
-
export { F as FeatureFlag } from './feature-flag-controller-
|
|
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
|
+
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';
|