@heartlandone/vega 2.75.0 → 2.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-bf183914.js → app-globals-12b7d808.js} +28 -32
- package/dist/cjs/breakpoints-751d433a.js +56 -0
- package/dist/cjs/{child-nodes-event-prevent-slimmer-aca87dac.js → child-nodes-event-prevent-slimmer-84435957.js} +2 -2
- package/dist/cjs/{child-nodes-notify-observer-slimmer-257fedb3.js → child-nodes-notify-observer-slimmer-ed39283b.js} +1 -1
- package/dist/cjs/{code-block-c1d2e6a8.js → code-block-f1480ec3.js} +17 -17
- package/dist/cjs/{component-global-style-slimmer-adfa2e59.js → component-global-style-slimmer-93c5fb50.js} +2 -1
- package/dist/cjs/{component-usage-runtime-metrics-d10ace87.js → component-usage-runtime-metrics-4572c5b7.js} +1 -1
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-787c67dc.js → component-value-history-controller-slimmer.abstract-a9264cc8.js} +5 -5
- package/dist/cjs/{create-public-api-runtime-metrics-slimmer-e2e274e1.js → create-public-api-runtime-metrics-slimmer-9cb09fb2.js} +3 -41
- package/dist/cjs/{dark-mode-style-controller-c21172aa.js → dark-mode-style-controller-3a04af3d.js} +292 -1254
- package/dist/cjs/{date-required-rule-30ee62d0.js → date-required-rule-912469e0.js} +1 -1
- package/dist/cjs/{design-token-cbc01283.js → design-token-41baf118.js} +2 -2
- package/dist/cjs/dom-node-subject-observer-factory-c62823de.js +141 -0
- package/dist/cjs/{dto-renderer-manager-2fc24151.js → dto-renderer-manager-809c947b.js} +230 -55
- package/dist/cjs/{element-appender-slimmer-318d29c7.js → element-appender-slimmer-34e4eb56.js} +349 -166
- package/dist/cjs/{event-emit-slimmer-2dacabbd.js → event-emit-slimmer-062cdcb8.js} +2 -2
- package/dist/cjs/{feature-flag-controller-ce2162c8.js → feature-flag-controller-04cb1e69.js} +7 -1
- package/dist/cjs/{form-field-controller-slimmer-aef2fb1e.js → form-field-controller-slimmer-102f37c7.js} +13 -14
- package/dist/cjs/{internal-icon-manager-32f9ed63.js → icon-manager-c12c6ea9.js} +1 -52
- package/dist/cjs/{image-annotation-action-e4a35325.js → image-annotation-action-8d9fa20c.js} +10 -9
- package/dist/cjs/index-592b4052.js +220 -0
- package/dist/cjs/{index-4d7bce1a.js → index-f054eb5d.js} +15 -3
- package/dist/cjs/index.cjs.js +68 -65
- package/dist/cjs/{inject-keyboard-manager-d21b4387.js → inject-keyboard-manager-0f5bd568.js} +1 -1
- package/dist/cjs/internal-icon-manager-c989189a.js +55 -0
- package/dist/cjs/{translation-5f9f9c0c.js → internal-translation-controller-053eb0f1.js} +0 -93
- package/dist/cjs/{internal-vega-event-manager-6befeb34.js → internal-vega-event-manager-f7ecf3d4.js} +81 -81
- package/dist/cjs/internal-vega-z-index-manager-f03ddb37.js +180 -0
- package/dist/cjs/{keyboard-manager-3dea6b28.js → keyboard-manager-055e9f67.js} +2 -2
- package/dist/cjs/{keyboard-manager-slimmer-0d45f944.js → keyboard-manager-slimmer-0cc0c1c7.js} +1 -1
- package/dist/cjs/loader.cjs.js +26 -23
- package/dist/cjs/misc-3d30df91.js +41 -0
- package/dist/cjs/{month-view-generator-49cc5fc2.js → month-view-generator-6a6dd527.js} +1 -1
- package/dist/cjs/{page-resize-observer-slimmer-11937d6f.js → page-resize-observer-slimmer-7f065ee1.js} +2 -54
- package/dist/cjs/{public-rules-661823fa.js → public-rules-922849f3.js} +12 -13
- package/dist/cjs/{range-79b668e7.js → range-8aa49b08.js} +2 -2
- package/dist/cjs/{responsive-format-facade-f71d399c.js → responsive-format-facade-ea59bdcd.js} +13 -22
- package/dist/cjs/{rich-text-editor-required-rule-d5feeffd.js → rich-text-editor-required-rule-22225840.js} +1 -1
- package/dist/cjs/{string-format-strategy.abstract-63514c60.js → string-format-strategy.abstract-f2575647.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-f3e0bbc7.js → string-input-formatter-slimmer-0a334fc6.js} +5 -5
- package/dist/cjs/{string-mask-strategy-d23ac21a.js → string-mask-strategy-dda58395.js} +2 -2
- package/dist/cjs/{style-formatter-566df206.js → style-formatter-0c3ced39.js} +2 -2
- package/dist/cjs/{sub-state-notify-slimmer-468e19aa.js → sub-state-notify-slimmer-58121111.js} +1 -1
- package/dist/cjs/{sub-state-observer-slimmer-5d0b8ac3.js → sub-state-observer-slimmer-1dfbc4c3.js} +2 -2
- package/dist/cjs/{time-required-rule-c96ecdc9.js → time-required-rule-d6fa7aa8.js} +1 -1
- package/dist/cjs/{function-extension-ca9aa115.js → token-extension-07cac85d.js} +501 -387
- package/dist/cjs/{translation-slimmer-f0ebe710.js → translation-slimmer-4533bd67.js} +4 -4
- package/dist/cjs/{type-guard-a0f026d8.js → type-guard-407ba0b8.js} +3 -3
- package/dist/cjs/{ui-9e181079.js → ui-234ea151.js} +12 -0
- package/dist/cjs/{valid-credit-card-number-rule-c854bed9.js → valid-credit-card-number-rule-41a8b51b.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +21 -30
- package/dist/cjs/vega-app-footer.cjs.entry.js +3 -3
- package/dist/cjs/vega-app-header-button.cjs.entry.js +183 -49
- package/dist/cjs/vega-backdrop.cjs.entry.js +2 -2
- package/dist/cjs/vega-banner.cjs.entry.js +15 -13
- package/dist/cjs/vega-bar-chart.cjs.entry.js +1 -1
- package/dist/cjs/vega-box.cjs.entry.js +18 -33
- package/dist/cjs/vega-brand-logo.cjs.entry.js +7 -5
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +14 -13
- package/dist/cjs/vega-button-circle.cjs.entry.js +20 -30
- package/dist/cjs/vega-button-group_2.cjs.entry.js +15 -15
- package/dist/cjs/vega-button-link.cjs.entry.js +15 -14
- package/dist/cjs/vega-button.cjs.entry.js +21 -30
- package/dist/cjs/vega-calendar_4.cjs.entry.js +48 -45
- package/dist/cjs/vega-card.cjs.entry.js +9 -28
- package/dist/cjs/vega-carousel.cjs.entry.js +15 -26
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +22 -20
- package/dist/cjs/vega-chip.cjs.entry.js +22 -33
- package/dist/cjs/vega-code-block.cjs.entry.js +658 -2709
- package/dist/cjs/vega-color-picker.cjs.entry.js +15 -12
- package/dist/cjs/vega-combo-box.cjs.entry.js +29 -28
- package/dist/cjs/vega-counter-badge.cjs.entry.js +1 -1
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +53 -56
- package/dist/cjs/vega-dialog-controller-03ef4d9a.js +84 -0
- package/dist/cjs/vega-dialog_2.cjs.entry.js +37 -44
- package/dist/cjs/vega-divider.cjs.entry.js +12 -30
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +49 -55
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/{dom-node-subject-observer-factory-b5e71bf6.js → vega-event-id-ee01d8dd.js} +0 -139
- package/dist/cjs/vega-field-error.cjs.entry.js +1 -1
- package/dist/cjs/vega-field-label.cjs.entry.js +9 -8
- package/dist/cjs/vega-file-uploader.cjs.entry.js +28 -23
- package/dist/cjs/vega-flag-icon.cjs.entry.js +13 -27
- package/dist/cjs/vega-flex.cjs.entry.js +11 -28
- package/dist/cjs/vega-font.cjs.entry.js +12 -29
- package/dist/cjs/vega-form.cjs.entry.js +24 -22
- package/dist/cjs/vega-grid.cjs.entry.js +9 -28
- package/dist/cjs/vega-hint.cjs.entry.js +1 -1
- package/dist/cjs/vega-icon.cjs.entry.js +18 -31
- package/dist/cjs/vega-image-uploader.cjs.entry.js +34 -37
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +31 -27
- package/dist/cjs/vega-input-numeric.cjs.entry.js +24 -22
- package/dist/cjs/vega-input-passcode.cjs.entry.js +26 -24
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +31 -35
- package/dist/cjs/vega-input-range.cjs.entry.js +22 -20
- package/dist/cjs/vega-input-select.cjs.entry.js +41 -46
- package/dist/cjs/vega-input.cjs.entry.js +43 -31
- package/dist/cjs/vega-item-toggle.cjs.entry.js +8 -7
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +38 -40
- package/dist/cjs/vega-line-chart.cjs.entry.js +1 -1
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +16 -32
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +5 -4
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +12 -12
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +9 -10
- package/dist/cjs/vega-pagination.cjs.entry.js +28 -38
- package/dist/cjs/vega-pie-chart.cjs.entry.js +1 -1
- package/dist/cjs/vega-popover_2.cjs.entry.js +21 -31
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +66 -39
- package/dist/cjs/vega-radio_2.cjs.entry.js +25 -23
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +22 -20
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +115 -62
- package/dist/cjs/vega-section-title.cjs.entry.js +1 -1
- package/dist/cjs/vega-segment-control.cjs.entry.js +10 -8
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +25 -32
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +22 -20
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +34 -40
- package/dist/cjs/vega-signature-capture.cjs.entry.js +27 -31
- package/dist/cjs/vega-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/vega-slot-container.cjs.entry.js +1 -1
- package/dist/cjs/vega-stepper.cjs.entry.js +23 -21
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +15 -14
- package/dist/cjs/vega-table_11.cjs.entry.js +67 -68
- package/dist/cjs/vega-text.cjs.entry.js +4 -3
- package/dist/cjs/vega-textarea.cjs.entry.js +22 -20
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +35 -41
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +15 -12
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +17 -28
- package/dist/cjs/vega.cjs.js +26 -23
- package/dist/cjs/{index-95fca64f.js → wait-for-component-did-render-70a01bf9.js} +1 -12
- package/dist/collection/components/vega-app-header-button/vega-app-header-button.js +17 -2
- package/dist/collection/components/vega-box/slimmers/controllers/vega-box-responsive-style-controller.js +2 -1
- package/dist/collection/components/vega-box/slimmers/controllers/vega-box-state-styles-controller.js +2 -1
- package/dist/collection/components/vega-button/vega-button.js +2 -1
- package/dist/collection/components/vega-button-circle/vega-button-circle.js +2 -1
- package/dist/collection/components/vega-button-link/vega-button-link.css +1 -1
- package/dist/collection/components/vega-button-link/vega-button-link.js +2 -1
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/base-repeat-pattern.js +1 -1
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-daily-repeat-pattern.js +1 -1
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-monthly-repeat-pattern.js +1 -1
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-weekly-repeat-pattern.js +1 -1
- package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeat-pattern/calendar-event-yearly-repeat-pattern.js +1 -1
- package/dist/collection/components/vega-code-block/slimmers/controllers/prism-code-highlight-parse-controller.js +5 -14
- package/dist/collection/components/vega-combo-box/slimmers/renderers/vega-combo-box-dropdown-renderer.js +2 -2
- package/dist/collection/components/vega-date-picker/slimmers/controllers/vega-date-picker-calendar-open-state-controller.js +1 -1
- package/dist/collection/components/vega-date-picker/slimmers/renderers/vega-date-picker-calendar-renderer.js +1 -1
- package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-search-controller.js +2 -2
- package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.js +2 -2
- package/dist/collection/components/vega-dropdown/vega-dropdown-group/slimmers/renderers/vega-dropdown-group-renderer.js +3 -3
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +6 -4
- package/dist/collection/components/vega-icon/vega-icon.js +2 -1
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-container-renderer.js +10 -2
- package/dist/collection/components/vega-input-phone-number/slimmers/renderers/country-select-renderer.js +1 -1
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +2 -2
- package/dist/collection/components/vega-pagination/vega-pagination.js +1 -1
- package/dist/collection/components/vega-progress-tracker/slimmers/controllers/dto/internal-progress-tracker-step.js +30 -6
- package/dist/collection/components/vega-progress-tracker/slimmers/controllers/vega-progress-tracker-current-steps-controller.js +1 -1
- package/dist/collection/components/vega-progress-tracker/slimmers/renderers/vega-progress-tracker-renderer.js +8 -1
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.js +27 -0
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.css +12 -0
- package/dist/collection/components/vega-progress-tracker/vega-progress-tracker.js +8 -3
- package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +16 -0
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +3 -22
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner.js +59 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/index.js +4 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-after-opening-tag-processor.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-before-closing-tag-processor.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-between-tags-processor.js +77 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/html-block.test.js +39 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +166 -1
- package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/html-content-cleaner.test.js +186 -0
- package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-after-opening-tag-processor.test.js +22 -0
- package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-before-closing-tag-processor.test.js +22 -0
- package/dist/collection/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-between-tags-processor.test.js +26 -0
- package/dist/collection/components/vega-signature-capture/slimmers/written-mode/controllers/written-mode-svg-controller.js +2 -1
- package/dist/collection/components/vega-table/interface.js +3 -0
- package/dist/collection/components/vega-table/vega-table-foot-cell/slimmers/renderers/vega-table-foot-cell-renderer.js +1 -1
- package/dist/collection/global/scripts/before-vega-load.js +4 -3
- package/dist/collection/helpers/calendar/calendar-date.js +1 -1
- package/dist/collection/helpers/calendar/calendar-event.js +1 -1
- package/dist/collection/helpers/calendar/calendar-time.js +1 -1
- package/dist/collection/helpers/code-format/code-formatter.js +57 -7
- package/dist/collection/helpers/code-format/test/code-formatter.test.js +49 -1
- package/dist/collection/helpers/common/index.js +2 -37
- package/dist/collection/helpers/common/test/wait-for-vega-handler.test.js +2 -2
- package/dist/collection/helpers/common/wait-for-component-did-render.js +27 -0
- package/dist/collection/helpers/common/wait-for-vega-handler.js +12 -1
- package/dist/collection/helpers/feature-control/feature-flags-map.js +6 -0
- package/dist/collection/helpers/formatter/responsive-map-formatter/responsive-border-radius-style-formatter.js +1 -1
- package/dist/collection/helpers/public-api.js +0 -2
- package/dist/collection/helpers/slimmers/component-global-style-slimmer.js +2 -1
- package/dist/collection/helpers/slimmers/field-error-ui-controller-slimmer.js +3 -4
- package/dist/collection/helpers/slimmers/form-field-message-translator.js +1 -1
- package/dist/collection/helpers/slimmers/global/vega-translate-observer-slimmer.js +1 -1
- package/dist/collection/helpers/slimmers/global/vega-watch-method-cancel-slimmer.js +1 -1
- package/dist/collection/helpers/slimmers/mutation-observer/aria-attributes-value-mapper.js +128 -0
- package/dist/collection/helpers/slimmers/mutation-observer/test/aria-attributes-value-mapper.test.js +196 -0
- package/dist/collection/helpers/slimmers/position-calculation/base-position-calculation-strategy.js +162 -151
- package/dist/collection/helpers/slimmers/position-calculation/position-calculation-controller.js +9 -0
- package/dist/collection/helpers/slimmers/position-calculation/screen-position-calculation-strategy.js +112 -1
- package/dist/collection/helpers/slimmers/position-calculation/screen-scroll-position-update.js +53 -0
- package/dist/collection/helpers/slimmers/position-calculation/test/screen-position-calculation-strategy.test.js +103 -6
- package/dist/collection/helpers/slimmers/string-input-formatter-slimmer.js +1 -1
- package/dist/collection/helpers/slimmers/translation/translation-slimmer.js +1 -1
- package/dist/collection/helpers/theme/controllers/brand-style-controller.js +3 -1
- package/dist/collection/helpers/theme/controllers/color-schema-overriding-controller.js +8 -6
- package/dist/collection/helpers/theme/controllers/dark-mode-style-controller.js +3 -1
- package/dist/collection/helpers/theme/internal-theme-manager.js +2 -1
- package/dist/collection/helpers/theme/tests/theme-manager-controller.test.js +1 -2
- package/dist/collection/helpers/ui/element-appender.js +4 -5
- package/dist/collection/helpers/ui/test/element-appender.test.js +66 -17
- package/dist/collection/index.js +2 -0
- package/dist/collection/polyfill/prism/index.js +2 -0
- package/dist/collection/polyfill/prism/languages/css.js +86 -0
- package/dist/collection/polyfill/prism/languages/javascript.js +96 -0
- package/dist/collection/polyfill/prism/languages/jsx.js +46 -0
- package/dist/collection/polyfill/prism/languages/language-registry.js +41 -0
- package/dist/collection/polyfill/prism/languages/markup.js +71 -0
- package/dist/collection/polyfill/prism/languages/tsx.js +10 -0
- package/dist/collection/polyfill/prism/languages/typescript.js +64 -0
- package/dist/collection/polyfill/prism/test/css.test.js +61 -0
- package/dist/collection/polyfill/prism/test/javascript.test.js +113 -0
- package/dist/collection/polyfill/prism/test/jsx.test.js +48 -0
- package/dist/collection/polyfill/prism/test/language-registry.test.js +77 -0
- package/dist/collection/polyfill/prism/test/markup.test.js +57 -0
- package/dist/collection/polyfill/prism/test/test-utils.js +22 -0
- package/dist/collection/polyfill/prism/test/tokenizer.test.js +180 -0
- package/dist/collection/polyfill/prism/test/tsx.test.js +87 -0
- package/dist/collection/polyfill/prism/test/typescript.test.js +86 -0
- package/dist/collection/polyfill/prism/tokenizer.js +242 -0
- package/dist/collection/polyfill/prism/types.js +1 -0
- package/dist/collection/polyfill/tinycolor/tinycolor-polyfill.js +320 -0
- package/dist/collection/polyfill/tinycolor/tinycolor-polyfill.test.js +361 -0
- package/dist/collection/types/ui.type.js +12 -0
- package/dist/collection/utils/e2e-utils.js +10 -3
- package/dist/collection/utils/sanitize/constants/tag-sets.js +5 -0
- package/dist/collection/utils/sanitize/core/html-sanitizer.js +39 -0
- package/dist/collection/utils/sanitize/core/sanitize-strategy.js +62 -0
- package/dist/collection/utils/sanitize/core/types.js +4 -0
- package/dist/collection/utils/sanitize/index.js +12 -0
- package/dist/collection/utils/sanitize/strategies/empty-sanitize-strategy.js +17 -0
- package/dist/collection/utils/sanitize/strategies/index.js +3 -0
- package/dist/collection/utils/sanitize/strategies/label-sanitize-strategy.js +13 -0
- package/dist/collection/utils/sanitize/strategies/style-sanitize-strategy.js +50 -0
- package/dist/collection/utils/sanitize/test/empty-strategy.test.js +12 -0
- package/dist/collection/utils/sanitize/test/html-sanitizer.test.js +57 -0
- package/dist/collection/utils/sanitize/test/label-strategy.test.js +56 -0
- package/dist/collection/utils/sanitize/test/sanitize-strategy.test.js +85 -0
- package/dist/collection/utils/sanitize/test/sanitize.test.js +22 -0
- package/dist/collection/utils/sanitize/test/serialize-fragment.test.js +25 -0
- package/dist/collection/utils/sanitize/test/style-strategy.test.js +45 -0
- package/dist/collection/utils/sanitize/utils/serialize-fragment.js +17 -0
- package/dist/esm/{app-globals-f3414aca.js → app-globals-c0676920.js} +12 -16
- package/dist/esm/breakpoints-56e5407b.js +53 -0
- package/dist/esm/{child-nodes-event-prevent-slimmer-e662bee2.js → child-nodes-event-prevent-slimmer-649b9d30.js} +2 -2
- package/dist/esm/{child-nodes-notify-observer-slimmer-b676cd2b.js → child-nodes-notify-observer-slimmer-541dd6a4.js} +1 -1
- package/dist/esm/{code-block-8ee34ab6.js → code-block-b6247a45.js} +7 -7
- package/dist/esm/{component-global-style-slimmer-08046b38.js → component-global-style-slimmer-ac703085.js} +2 -1
- package/dist/esm/{component-usage-runtime-metrics-a84cc93e.js → component-usage-runtime-metrics-46020a03.js} +1 -1
- package/dist/esm/{component-value-history-controller-slimmer.abstract-a61bf821.js → component-value-history-controller-slimmer.abstract-2bb8533d.js} +6 -6
- package/dist/esm/{create-public-api-runtime-metrics-slimmer-bedf3a1e.js → create-public-api-runtime-metrics-slimmer-aaadaa08.js} +3 -38
- package/dist/esm/{dark-mode-style-controller-de88a117.js → dark-mode-style-controller-82e5c1c6.js} +292 -1254
- package/dist/esm/{date-required-rule-47ecc28f.js → date-required-rule-e771e7d9.js} +1 -1
- package/dist/esm/{design-token-9b299589.js → design-token-4aee1c56.js} +2 -2
- package/dist/esm/dom-node-subject-observer-factory-82f346e3.js +138 -0
- package/dist/esm/{dto-renderer-manager-f07cf2d9.js → dto-renderer-manager-6fd22ab7.js} +204 -29
- package/dist/esm/{element-appender-slimmer-7cb08343.js → element-appender-slimmer-e4713a72.js} +348 -165
- package/dist/esm/{event-emit-slimmer-09827cec.js → event-emit-slimmer-ffaecb9a.js} +2 -2
- package/dist/esm/{feature-flag-controller-51659753.js → feature-flag-controller-09ea7e87.js} +7 -1
- package/dist/esm/{form-field-controller-slimmer-5d9dc384.js → form-field-controller-slimmer-5817d14d.js} +10 -11
- package/dist/esm/{internal-icon-manager-f0486245.js → icon-manager-539d7cf7.js} +2 -52
- package/dist/esm/{image-annotation-action-53529cd9.js → image-annotation-action-6701b4c9.js} +6 -5
- package/dist/esm/index-3b327f29.js +215 -0
- package/dist/esm/{index-e9da316f.js → index-bfc6dfa2.js} +13 -1
- package/dist/esm/index.js +32 -29
- package/dist/esm/{inject-keyboard-manager-83d76ff5.js → inject-keyboard-manager-78730062.js} +1 -1
- package/dist/esm/internal-icon-manager-bd80b3bb.js +53 -0
- package/dist/esm/{translation-96e5debd.js → internal-translation-controller-911515f9.js} +1 -93
- package/dist/esm/{internal-vega-event-manager-efb6786e.js → internal-vega-event-manager-32a3d848.js} +1 -1
- package/dist/esm/internal-vega-z-index-manager-7d2b54c3.js +178 -0
- package/dist/esm/{keyboard-manager-c92808d8.js → keyboard-manager-38934f94.js} +2 -2
- package/dist/esm/{keyboard-manager-slimmer-79c78ce8.js → keyboard-manager-slimmer-9984d922.js} +1 -1
- package/dist/esm/loader.js +27 -24
- package/dist/esm/misc-9fdbcfbb.js +37 -0
- package/dist/esm/{month-view-generator-16192182.js → month-view-generator-eaf9029c.js} +1 -1
- package/dist/esm/{page-resize-observer-slimmer-8744cb44.js → page-resize-observer-slimmer-d6af0d86.js} +2 -52
- package/dist/esm/{public-rules-6ebdfcf5.js → public-rules-25cc3a39.js} +13 -14
- package/dist/esm/{range-5257c062.js → range-663f44dc.js} +2 -2
- package/dist/esm/{responsive-format-facade-05e53016.js → responsive-format-facade-7a071174.js} +3 -12
- package/dist/esm/{rich-text-editor-required-rule-f63a37d1.js → rich-text-editor-required-rule-a238b862.js} +1 -1
- package/dist/esm/{string-format-strategy.abstract-fc60db79.js → string-format-strategy.abstract-713fba36.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-ee32b1fd.js → string-input-formatter-slimmer-5b413ff9.js} +4 -4
- package/dist/esm/{string-mask-strategy-0b0accaa.js → string-mask-strategy-6beaf664.js} +2 -2
- package/dist/esm/{style-formatter-5f5bd714.js → style-formatter-3d06b72d.js} +2 -2
- package/dist/esm/{sub-state-notify-slimmer-4453047a.js → sub-state-notify-slimmer-5133f1a8.js} +2 -2
- package/dist/esm/{sub-state-observer-slimmer-202ec7dc.js → sub-state-observer-slimmer-478c9f41.js} +3 -3
- package/dist/esm/{time-required-rule-5fa43804.js → time-required-rule-e4138a76.js} +1 -1
- package/dist/esm/{function-extension-63028f20.js → token-extension-e33fd151.js} +488 -376
- package/dist/esm/{translation-slimmer-c936cb1b.js → translation-slimmer-2394b173.js} +1 -1
- package/dist/esm/{type-guard-c65a227d.js → type-guard-f50e34d6.js} +1 -1
- package/dist/esm/{ui-bb99c0c2.js → ui-ee31416b.js} +12 -0
- package/dist/esm/{valid-credit-card-number-rule-666c415d.js → valid-credit-card-number-rule-22ce81db.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +19 -28
- package/dist/esm/vega-app-footer.entry.js +3 -3
- package/dist/esm/vega-app-header-button.entry.js +174 -40
- package/dist/esm/vega-backdrop.entry.js +2 -2
- package/dist/esm/vega-banner.entry.js +12 -10
- package/dist/esm/vega-bar-chart.entry.js +1 -1
- package/dist/esm/vega-box.entry.js +14 -29
- package/dist/esm/vega-brand-logo.entry.js +7 -5
- package/dist/esm/vega-breadcrumb.entry.js +11 -10
- package/dist/esm/vega-button-circle.entry.js +19 -29
- package/dist/esm/vega-button-group_2.entry.js +12 -12
- package/dist/esm/vega-button-link.entry.js +13 -12
- package/dist/esm/vega-button.entry.js +19 -28
- package/dist/esm/vega-calendar_4.entry.js +23 -20
- package/dist/esm/vega-card.entry.js +9 -28
- package/dist/esm/vega-carousel.entry.js +14 -25
- package/dist/esm/vega-checkbox_2.entry.js +19 -17
- package/dist/esm/vega-chip.entry.js +18 -29
- package/dist/esm/vega-code-block.entry.js +653 -2704
- package/dist/esm/vega-color-picker.entry.js +15 -12
- package/dist/esm/vega-combo-box.entry.js +22 -21
- package/dist/esm/vega-counter-badge.entry.js +1 -1
- package/dist/esm/vega-date-picker_2.entry.js +34 -37
- package/dist/esm/vega-dialog-controller-bbb2fc52.js +82 -0
- package/dist/esm/vega-dialog_2.entry.js +23 -30
- package/dist/esm/vega-divider.entry.js +11 -29
- package/dist/esm/vega-dropdown_5.entry.js +39 -45
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-event-id-38aa77a0.js +113 -0
- package/dist/esm/vega-field-error.entry.js +1 -1
- package/dist/esm/vega-field-label.entry.js +7 -6
- package/dist/esm/vega-file-uploader.entry.js +19 -14
- package/dist/esm/vega-flag-icon.entry.js +12 -26
- package/dist/esm/vega-flex.entry.js +11 -28
- package/dist/esm/vega-font.entry.js +11 -28
- package/dist/esm/vega-form.entry.js +20 -18
- package/dist/esm/vega-grid.entry.js +9 -28
- package/dist/esm/vega-hint.entry.js +1 -1
- package/dist/esm/vega-icon.entry.js +15 -28
- package/dist/esm/vega-image-uploader.entry.js +28 -31
- package/dist/esm/vega-input-credit-card.entry.js +25 -21
- package/dist/esm/vega-input-numeric.entry.js +21 -19
- package/dist/esm/vega-input-passcode.entry.js +20 -18
- package/dist/esm/vega-input-phone-number.entry.js +27 -31
- package/dist/esm/vega-input-range.entry.js +19 -17
- package/dist/esm/vega-input-select.entry.js +27 -32
- package/dist/esm/vega-input.entry.js +33 -21
- package/dist/esm/{vega-internal-event-id-4a06d705.js → vega-internal-event-id-799d012e.js} +1 -1
- package/dist/esm/vega-item-toggle.entry.js +6 -5
- package/dist/esm/vega-left-nav_5.entry.js +29 -31
- package/dist/esm/vega-line-chart.entry.js +1 -1
- package/dist/esm/vega-loader-wrapper_2.entry.js +13 -29
- package/dist/esm/vega-page-notification_2.entry.js +4 -3
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +9 -9
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +7 -8
- package/dist/esm/vega-pagination.entry.js +20 -30
- package/dist/esm/vega-pie-chart.entry.js +1 -1
- package/dist/esm/vega-popover_2.entry.js +20 -30
- package/dist/esm/vega-progress-tracker_2.entry.js +64 -37
- package/dist/esm/vega-radio_2.entry.js +21 -19
- package/dist/esm/vega-rich-text-content.entry.js +18 -16
- package/dist/esm/vega-rich-text-editor_4.entry.js +90 -37
- package/dist/esm/vega-section-title.entry.js +1 -1
- package/dist/esm/vega-segment-control.entry.js +9 -7
- package/dist/esm/vega-selection-chip_2.entry.js +22 -29
- package/dist/esm/vega-selection-tile_2.entry.js +19 -17
- package/dist/esm/vega-sidenav_3.entry.js +24 -30
- package/dist/esm/vega-signature-capture.entry.js +24 -28
- package/dist/esm/vega-skeleton.entry.js +1 -1
- package/dist/esm/vega-slot-container.entry.js +1 -1
- package/dist/esm/vega-stepper.entry.js +18 -16
- package/dist/esm/vega-tab-group_2.entry.js +11 -10
- package/dist/esm/vega-table_11.entry.js +28 -29
- package/dist/esm/vega-text.entry.js +4 -3
- package/dist/esm/vega-textarea.entry.js +18 -16
- package/dist/esm/vega-time-picker_2.entry.js +26 -32
- package/dist/esm/vega-toggle-switch.entry.js +15 -12
- package/dist/esm/vega-tooltip_2.entry.js +18 -29
- package/dist/esm/vega.js +27 -24
- package/dist/esm/{index-51a7da7f.js → wait-for-component-did-render-b08ef07b.js} +3 -13
- package/dist/sri/vega-sri-manifest.json +415 -403
- package/dist/types/components/vega-app-footer/types.d.ts +18 -0
- package/dist/types/components/vega-app-header-button/types.d.ts +31 -0
- package/dist/types/components/vega-app-header-button/vega-app-header-button.d.ts +2 -0
- package/dist/types/components/vega-banner/types.d.ts +9 -0
- package/dist/types/components/vega-box/interface.d.ts +46 -0
- package/dist/types/components/vega-breadcrumb/types.d.ts +28 -0
- package/dist/types/components/vega-button/types.d.ts +12 -0
- package/dist/types/components/vega-button-circle/types.d.ts +9 -0
- package/dist/types/components/vega-button-group/types.d.ts +48 -0
- package/dist/types/components/vega-button-link/types.d.ts +3 -0
- package/dist/types/components/vega-calendar/types.d.ts +189 -0
- package/dist/types/components/vega-calendar/vega-calendar-event-preview/types.d.ts +6 -0
- package/dist/types/components/vega-chart/vega-bar-chart/types.d.ts +3 -0
- package/dist/types/components/vega-chip/types.d.ts +12 -0
- package/dist/types/components/vega-code-block/slimmers/controllers/prism-code-highlight-parse-controller.d.ts +2 -10
- package/dist/types/components/vega-combo-box/types.d.ts +6 -0
- package/dist/types/components/vega-date-picker/types.d.ts +39 -0
- package/dist/types/components/vega-dialog/types.d.ts +5 -0
- package/dist/types/components/vega-divider/interface.d.ts +18 -0
- package/dist/types/components/vega-dropdown/types.d.ts +30 -0
- package/dist/types/components/vega-dropdown/vega-dropdown-item/types.d.ts +9 -1
- package/dist/types/components/vega-field-error/types.d.ts +12 -0
- package/dist/types/components/vega-field-label/types.d.ts +16 -0
- package/dist/types/components/vega-file-uploader/types.d.ts +12 -0
- package/dist/types/components/vega-font/types.d.ts +3 -0
- package/dist/types/components/vega-form/types.d.ts +45 -0
- package/dist/types/components/vega-image-uploader/types.d.ts +33 -1
- package/dist/types/components/vega-input/types.d.ts +31 -0
- package/dist/types/components/vega-input-phone-number/types.d.ts +15 -0
- package/dist/types/components/vega-input-range/types.d.ts +9 -0
- package/dist/types/components/vega-input-select/types.d.ts +45 -0
- package/dist/types/components/vega-item-toggle/types.d.ts +21 -0
- package/dist/types/components/vega-loading-indicator/types.d.ts +3 -0
- package/dist/types/components/vega-modal/types.d.ts +9 -0
- package/dist/types/components/vega-nav/interface.d.ts +108 -0
- package/dist/types/components/vega-page-notification/types.d.ts +15 -0
- package/dist/types/components/vega-pagination/types.d.ts +11 -0
- package/dist/types/components/vega-progress-tracker/slimmers/controllers/dto/internal-progress-tracker-step.d.ts +16 -4
- package/dist/types/components/vega-progress-tracker/type.d.ts +8 -0
- package/dist/types/components/vega-progress-tracker/vega-progress-tracker-step/vega-progress-tracker-step.d.ts +6 -0
- package/dist/types/components/vega-progress-tracker/vega-progress-tracker.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +10 -0
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +473 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner-processor.interface.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner.d.ts +35 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/index.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-after-opening-tag-processor.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-before-closing-tag-processor.d.ts +19 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/processors/remove-whitespace-between-tags-processor.d.ts +59 -0
- package/dist/types/components/vega-rich-text-editor/test/html-cleaner/html-content-cleaner.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-after-opening-tag-processor.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-before-closing-tag-processor.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/html-cleaner/remove-whitespace-between-tags-processor.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-image-editor/types.d.ts +24 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-link-editor/types.d.ts +24 -0
- package/dist/types/components/vega-segment-control/types.d.ts +18 -0
- package/dist/types/components/vega-selection-chip/interface.d.ts +12 -0
- package/dist/types/components/vega-selection-chip/vega-selection-chip-group/interface.d.ts +4 -0
- package/dist/types/components/vega-selection-tile/interface.d.ts +9 -0
- package/dist/types/components/vega-sidenav/types.d.ts +51 -0
- package/dist/types/components/vega-signature-capture/types.d.ts +29 -2
- package/dist/types/components/vega-skeleton/interface.d.ts +6 -0
- package/dist/types/components/vega-tab-group/types.d.ts +36 -0
- package/dist/types/components/vega-table/interface.d.ts +237 -20
- package/dist/types/components/vega-table/vega-table-expand-row/types.d.ts +6 -0
- package/dist/types/components/vega-table/vega-table-foot/types.d.ts +9 -0
- package/dist/types/components/vega-table/vega-table-foot-row/types.d.ts +9 -0
- package/dist/types/components/vega-table/vega-table-head/types.d.ts +9 -0
- package/dist/types/components/vega-table/vega-table-head-row/types.d.ts +12 -0
- package/dist/types/components/vega-table/vega-table-row/types.d.ts +18 -0
- package/dist/types/components/vega-text/types.d.ts +6 -0
- package/dist/types/components/vega-time-picker/types.d.ts +33 -0
- package/dist/types/components/vega-virtual-scroll/types.d.ts +30 -1
- package/dist/types/components.d.ts +13 -3
- package/dist/types/helpers/code-format/code-formatter.d.ts +14 -0
- package/dist/types/helpers/common/index.d.ts +2 -15
- package/dist/types/helpers/common/wait-for-component-did-render.d.ts +8 -0
- package/dist/types/helpers/common/wait-for-vega-handler.d.ts +6 -15
- package/dist/types/helpers/feature-control/feature-flag.d.ts +2 -1
- package/dist/types/helpers/public-api.d.ts +0 -2
- package/dist/types/helpers/slimmers/mutation-observer/aria-attributes-value-mapper.d.ts +44 -0
- package/dist/types/helpers/slimmers/mutation-observer/test/aria-attributes-value-mapper.test.d.ts +1 -0
- package/dist/types/helpers/slimmers/position-calculation/base-position-calculation-strategy.d.ts +57 -48
- package/dist/types/helpers/slimmers/position-calculation/position-calculation-controller.d.ts +5 -0
- package/dist/types/helpers/slimmers/position-calculation/screen-position-calculation-strategy.d.ts +41 -1
- package/dist/types/helpers/slimmers/position-calculation/screen-scroll-position-update.d.ts +39 -0
- package/dist/types/helpers/ui/element-appender.d.ts +0 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/polyfill/prism/index.d.ts +3 -0
- package/dist/types/polyfill/prism/languages/css.d.ts +6 -0
- package/dist/types/polyfill/prism/languages/javascript.d.ts +7 -0
- package/dist/types/polyfill/prism/languages/jsx.d.ts +7 -0
- package/dist/types/polyfill/prism/languages/language-registry.d.ts +8 -0
- package/dist/types/polyfill/prism/languages/markup.d.ts +6 -0
- package/dist/types/polyfill/prism/languages/tsx.d.ts +7 -0
- package/dist/types/polyfill/prism/languages/typescript.d.ts +2 -0
- package/dist/types/polyfill/prism/test/css.test.d.ts +1 -0
- package/dist/types/polyfill/prism/test/javascript.test.d.ts +1 -0
- package/dist/types/polyfill/prism/test/jsx.test.d.ts +1 -0
- package/dist/types/polyfill/prism/test/language-registry.test.d.ts +1 -0
- package/dist/types/polyfill/prism/test/markup.test.d.ts +1 -0
- package/dist/types/polyfill/prism/test/test-utils.d.ts +10 -0
- package/dist/types/polyfill/prism/test/tokenizer.test.d.ts +1 -0
- package/dist/types/polyfill/prism/test/tsx.test.d.ts +1 -0
- package/dist/types/polyfill/prism/test/typescript.test.d.ts +1 -0
- package/dist/types/polyfill/prism/tokenizer.d.ts +17 -0
- package/dist/types/polyfill/prism/types.d.ts +25 -0
- package/dist/types/polyfill/tinycolor/tinycolor-polyfill.d.ts +149 -0
- package/dist/types/polyfill/tinycolor/tinycolor-polyfill.test.d.ts +1 -0
- package/dist/types/types/components.type.d.ts +4 -1
- package/dist/types/types/design-token.type.d.ts +36 -0
- package/dist/types/types/flag.type.d.ts +3 -0
- package/dist/types/types/general.d.ts +12 -0
- package/dist/types/types/ui.type.d.ts +372 -0
- package/dist/types/types/vega-chart.d.ts +281 -2
- package/dist/types/utils/e2e-utils.d.ts +2 -0
- package/dist/types/utils/sanitize/constants/tag-sets.d.ts +6 -0
- package/dist/types/utils/sanitize/core/html-sanitizer.d.ts +22 -0
- package/dist/types/utils/sanitize/core/sanitize-strategy.d.ts +27 -0
- package/dist/types/utils/sanitize/core/types.d.ts +13 -0
- package/dist/types/utils/sanitize/index.d.ts +12 -0
- package/dist/types/utils/sanitize/strategies/empty-sanitize-strategy.d.ts +14 -0
- package/dist/types/utils/sanitize/strategies/index.d.ts +3 -0
- package/dist/types/utils/sanitize/strategies/label-sanitize-strategy.d.ts +10 -0
- package/dist/types/utils/sanitize/strategies/style-sanitize-strategy.d.ts +24 -0
- package/dist/types/utils/sanitize/test/empty-strategy.test.d.ts +1 -0
- package/dist/types/utils/sanitize/test/html-sanitizer.test.d.ts +1 -0
- package/dist/types/utils/sanitize/test/label-strategy.test.d.ts +1 -0
- package/dist/types/utils/sanitize/test/sanitize-strategy.test.d.ts +1 -0
- package/dist/types/utils/sanitize/test/sanitize.test.d.ts +1 -0
- package/dist/types/utils/sanitize/test/serialize-fragment.test.d.ts +1 -0
- package/dist/types/utils/sanitize/test/style-strategy.test.d.ts +1 -0
- package/dist/types/utils/sanitize/utils/serialize-fragment.d.ts +12 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-01d58eb8.entry.js +1 -0
- package/dist/vega/p-021d4ae4.js +1 -0
- package/dist/vega/p-02a7d60c.entry.js +1 -0
- package/dist/vega/{p-66fa700b.js → p-02c9796a.js} +1 -1
- package/dist/vega/p-033c31d8.entry.js +1 -0
- package/dist/vega/{p-e77a83e4.js → p-07cb0243.js} +1 -1
- package/dist/vega/p-087ea379.entry.js +1 -0
- package/dist/vega/{p-e5af5a4d.entry.js → p-0b4880bd.entry.js} +1 -1
- package/dist/vega/{p-920719ad.js → p-0e679d8c.js} +1 -1
- package/dist/vega/{p-c9b6b5a9.js → p-10734a00.js} +1 -1
- package/dist/vega/p-154f9cf7.entry.js +1 -0
- package/dist/vega/p-179aad4f.entry.js +1 -0
- package/dist/vega/p-1a3236e7.entry.js +1 -0
- package/dist/vega/p-1f3cd061.entry.js +1 -0
- package/dist/vega/p-1f5e35dc.entry.js +1 -0
- package/dist/vega/p-242fbcad.entry.js +1 -0
- package/dist/vega/p-249df6d2.entry.js +1 -0
- package/dist/vega/p-28ad1864.entry.js +1 -0
- package/dist/vega/p-2a10e2e5.js +1 -0
- package/dist/vega/p-2b49686d.entry.js +1 -0
- package/dist/vega/p-2ba78982.entry.js +1 -0
- package/dist/vega/p-2bb5a232.js +1 -0
- package/dist/vega/{p-e9b86dac.entry.js → p-2c1a85dd.entry.js} +1 -1
- package/dist/vega/p-2cc9d126.entry.js +1 -0
- package/dist/vega/p-2d69632d.js +1 -0
- package/dist/vega/p-2e91295d.entry.js +1 -0
- package/dist/vega/p-31ac7386.js +1 -0
- package/dist/vega/p-32033e7a.js +1 -0
- package/dist/vega/p-32183637.entry.js +1 -0
- package/dist/vega/p-3244c605.entry.js +1 -0
- package/dist/vega/p-32faa460.entry.js +1 -0
- package/dist/vega/p-33f9ad94.entry.js +1 -0
- package/dist/vega/{p-4897bedd.entry.js → p-358b4a06.entry.js} +1 -1
- package/dist/vega/p-3afc025e.entry.js +1 -0
- package/dist/vega/p-3d8122ab.entry.js +1 -0
- package/dist/vega/{p-ea04a387.entry.js → p-3f3c771a.entry.js} +1 -1
- package/dist/vega/{p-1f83cebf.js → p-415ffa35.js} +1 -1
- package/dist/vega/{p-d849e0f5.js → p-4415ad28.js} +1 -1
- package/dist/vega/{p-ce1a2982.js → p-464559e3.js} +1 -1
- package/dist/vega/p-49845a91.js +1 -0
- package/dist/vega/{p-e16b3adf.js → p-4bffdb28.js} +1 -1
- package/dist/vega/p-4e017458.entry.js +1 -0
- package/dist/vega/p-4e4a0228.entry.js +1 -0
- package/dist/vega/{p-a2aeb646.js → p-4ea30592.js} +1 -1
- package/dist/vega/{p-0b38a01f.entry.js → p-51fcb07f.entry.js} +1 -1
- package/dist/vega/p-57927b10.entry.js +1 -0
- package/dist/vega/p-5831d6d3.entry.js +1 -0
- package/dist/vega/p-593e0f80.js +1 -0
- package/dist/vega/p-5a25014f.js +1 -0
- package/dist/vega/p-5eb7f382.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-644f701a.js +1 -0
- package/dist/vega/p-6a62e476.entry.js +1 -0
- package/dist/vega/{p-75f981ce.js → p-6b6f0fb4.js} +1 -1
- package/dist/vega/p-6d219c44.entry.js +1 -0
- package/dist/vega/p-6d60b66a.entry.js +1 -0
- package/dist/vega/{p-ad2055f4.entry.js → p-6dcdb580.entry.js} +1 -1
- package/dist/vega/{p-c8f1b9d5.js → p-7181861a.js} +1 -1
- package/dist/vega/p-76181a70.entry.js +1 -0
- package/dist/vega/p-781fd6e0.js +1 -0
- package/dist/vega/p-7958614a.entry.js +1 -0
- package/dist/vega/{p-5b71c85e.js → p-7c39ce96.js} +1 -1
- package/dist/vega/p-7d7aaff9.entry.js +1 -0
- package/dist/vega/{p-4dd6554e.entry.js → p-7f46cc1e.entry.js} +1 -1
- package/dist/vega/{p-badad9ed.js → p-81b044b9.js} +1 -1
- package/dist/vega/p-8950987b.entry.js +1 -0
- package/dist/vega/p-89f2e16d.entry.js +1 -0
- package/dist/vega/p-8ac2d165.js +1 -0
- package/dist/vega/p-8b153acd.entry.js +1 -0
- package/dist/vega/p-8b5d3a52.js +1 -0
- package/dist/vega/{p-fff13ed1.entry.js → p-8b891f36.entry.js} +1 -1
- package/dist/vega/p-8dbdd609.entry.js +1 -0
- package/dist/vega/{p-dd11f735.js → p-9339c6c4.js} +1 -1
- package/dist/vega/p-94a77fbe.entry.js +1 -0
- package/dist/vega/p-95528b47.js +1 -0
- package/dist/vega/p-9a137bab.entry.js +1 -0
- package/dist/vega/{p-6f8be8ea.js → p-a0b66c25.js} +1 -1
- package/dist/vega/{p-0bb3be0b.entry.js → p-a13a73fa.entry.js} +1 -1
- package/dist/vega/p-a560d8c5.entry.js +1 -0
- package/dist/vega/{p-d0e31633.js → p-a786259a.js} +1 -1
- package/dist/vega/p-a7a8a4eb.entry.js +1 -0
- package/dist/vega/p-a8792e3d.js +1 -0
- package/dist/vega/{p-60851f9d.js → p-aa1174dc.js} +1 -1
- package/dist/vega/p-ab834f06.js +1 -0
- package/dist/vega/p-b136ebba.entry.js +1 -0
- package/dist/vega/p-b201f379.js +1 -0
- package/dist/vega/p-b256b7a4.js +1 -0
- package/dist/vega/p-b366deff.entry.js +1 -0
- package/dist/vega/p-b597393b.entry.js +1 -0
- package/dist/vega/p-b7f3221f.js +1 -0
- package/dist/vega/p-bb5e0192.entry.js +1 -0
- package/dist/vega/p-be1a210b.js +1 -0
- package/dist/vega/p-bebfbe95.entry.js +1 -0
- package/dist/vega/p-bf6fc19f.entry.js +1 -0
- package/dist/vega/p-c1d13eec.entry.js +1 -0
- package/dist/vega/p-c29068fb.entry.js +1 -0
- package/dist/vega/p-c3d2f316.js +1 -0
- package/dist/vega/{p-671afda4.entry.js → p-c72e08c6.entry.js} +1 -1
- package/dist/vega/p-c801c85d.js +1 -0
- package/dist/vega/p-c8feb644.entry.js +1 -0
- package/dist/vega/p-ca5898dc.entry.js +1 -0
- package/dist/vega/p-d555f677.entry.js +1 -0
- package/dist/vega/p-d64fab3d.js +1 -0
- package/dist/vega/p-d6dbbe61.entry.js +1 -0
- package/dist/vega/p-d7a78c5e.entry.js +1 -0
- package/dist/vega/p-d8fadcdc.entry.js +1 -0
- package/dist/vega/p-dad3ba5f.js +1 -0
- package/dist/vega/p-dd3a94f4.entry.js +1 -0
- package/dist/vega/p-e1431c14.entry.js +1 -0
- package/dist/vega/p-e1fbfd20.js +1 -0
- package/dist/vega/p-e2af0e24.entry.js +1 -0
- package/dist/vega/{p-521d1d07.js → p-e52890db.js} +1 -1
- package/dist/vega/{p-1298b126.js → p-e632475e.js} +1 -1
- package/dist/vega/p-e6adf829.js +1 -0
- package/dist/vega/{p-77edf50c.js → p-e827d56d.js} +1 -1
- package/dist/vega/p-e8775a56.entry.js +1 -0
- package/dist/vega/p-e89e3ede.entry.js +1 -0
- package/dist/vega/p-eda988d5.entry.js +1 -0
- package/dist/vega/p-f05b8f76.entry.js +1 -0
- package/dist/vega/p-f0e828d8.js +1 -0
- package/dist/vega/p-f14a5eae.entry.js +1 -0
- package/dist/vega/p-f2b0b58a.js +1 -0
- package/dist/vega/p-f3d0f2dc.js +1 -0
- package/dist/vega/{p-5910be31.entry.js → p-f5bafc45.entry.js} +1 -1
- package/dist/vega/p-fc1fa345.js +1 -0
- package/dist/vega/p-fd7ddd64.entry.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +3 -5
- package/dist/cjs/_commonjsHelpers-537d719a.js +0 -20
- package/dist/cjs/language-extension-38e4905e.js +0 -210
- package/dist/cjs/sanitize-fb222510.js +0 -131
- package/dist/cjs/wait-for-vega-handler-5469ff80.js +0 -63
- package/dist/collection/utils/sanitize.js +0 -126
- package/dist/collection/utils/test/sanitize.test.js +0 -65
- package/dist/esm/_commonjsHelpers-9943807e.js +0 -17
- package/dist/esm/dom-node-subject-observer-factory-064ee2b2.js +0 -250
- package/dist/esm/language-extension-c4ff21dd.js +0 -207
- package/dist/esm/sanitize-fd0cb40d.js +0 -129
- package/dist/esm/wait-for-vega-handler-c2c07ac3.js +0 -61
- package/dist/types/utils/sanitize.d.ts +0 -71
- package/dist/vega/p-011b94b1.entry.js +0 -1
- package/dist/vega/p-06aaced4.js +0 -1
- package/dist/vega/p-07d3df01.entry.js +0 -1
- package/dist/vega/p-08f18b22.entry.js +0 -1
- package/dist/vega/p-10ac8b57.js +0 -1
- package/dist/vega/p-112455b1.js +0 -1
- package/dist/vega/p-17c55205.entry.js +0 -1
- package/dist/vega/p-1e0d8228.entry.js +0 -1
- package/dist/vega/p-20ad42be.js +0 -1
- package/dist/vega/p-22b2841f.entry.js +0 -1
- package/dist/vega/p-22c5d83b.js +0 -1
- package/dist/vega/p-34246870.entry.js +0 -1
- package/dist/vega/p-35bf5789.entry.js +0 -1
- package/dist/vega/p-3bbc0c7d.entry.js +0 -1
- package/dist/vega/p-3bf66be2.js +0 -1
- package/dist/vega/p-3c5a28e4.entry.js +0 -1
- package/dist/vega/p-3cfd8616.entry.js +0 -1
- package/dist/vega/p-3e5f362f.js +0 -1
- package/dist/vega/p-43f585f7.entry.js +0 -1
- package/dist/vega/p-476a173a.js +0 -1
- package/dist/vega/p-4a537391.entry.js +0 -1
- package/dist/vega/p-509eb52e.entry.js +0 -1
- package/dist/vega/p-50ab977c.entry.js +0 -1
- package/dist/vega/p-53a694d1.entry.js +0 -1
- package/dist/vega/p-56e97df8.js +0 -1
- package/dist/vega/p-5a27084e.entry.js +0 -1
- package/dist/vega/p-5d676a94.js +0 -1
- package/dist/vega/p-5df9a856.entry.js +0 -1
- package/dist/vega/p-5ea2e43c.entry.js +0 -1
- package/dist/vega/p-60274fb1.js +0 -1
- package/dist/vega/p-60da99c6.entry.js +0 -1
- package/dist/vega/p-67f18b9e.entry.js +0 -1
- package/dist/vega/p-67fcf6f2.entry.js +0 -9
- package/dist/vega/p-6a2205a1.entry.js +0 -1
- package/dist/vega/p-6a4277df.entry.js +0 -1
- package/dist/vega/p-6e136980.js +0 -1
- package/dist/vega/p-6f239144.entry.js +0 -1
- package/dist/vega/p-7045e84c.entry.js +0 -1
- package/dist/vega/p-7288f8c4.js +0 -1
- package/dist/vega/p-747d6afc.entry.js +0 -1
- package/dist/vega/p-75651f32.entry.js +0 -1
- package/dist/vega/p-7ae55fd5.js +0 -1
- package/dist/vega/p-81134e9e.entry.js +0 -1
- package/dist/vega/p-87238c4c.entry.js +0 -1
- package/dist/vega/p-8a887843.entry.js +0 -1
- package/dist/vega/p-8c0eb12f.entry.js +0 -1
- package/dist/vega/p-8c9ea6f4.js +0 -1
- package/dist/vega/p-8d0ca805.js +0 -1
- package/dist/vega/p-8e42a14c.entry.js +0 -1
- package/dist/vega/p-91ec2e30.js +0 -1
- package/dist/vega/p-94394df7.entry.js +0 -1
- package/dist/vega/p-991008a8.entry.js +0 -1
- package/dist/vega/p-9fd503e9.entry.js +0 -1
- package/dist/vega/p-a20854d6.entry.js +0 -1
- package/dist/vega/p-a4670e23.js +0 -1
- package/dist/vega/p-a530797f.entry.js +0 -1
- package/dist/vega/p-a5bd3c15.entry.js +0 -1
- package/dist/vega/p-a65941d0.entry.js +0 -1
- package/dist/vega/p-a85ad369.entry.js +0 -1
- package/dist/vega/p-a86010f7.entry.js +0 -1
- package/dist/vega/p-aa10eeb3.entry.js +0 -1
- package/dist/vega/p-ab2f35af.entry.js +0 -1
- package/dist/vega/p-ac4563d7.js +0 -1
- package/dist/vega/p-aedf7146.js +0 -1
- package/dist/vega/p-b4ea3fad.js +0 -1
- package/dist/vega/p-bb4a558d.entry.js +0 -1
- package/dist/vega/p-bb8339ed.entry.js +0 -1
- package/dist/vega/p-be930e85.entry.js +0 -1
- package/dist/vega/p-bf2bd6d0.entry.js +0 -1
- package/dist/vega/p-c379a5a5.entry.js +0 -1
- package/dist/vega/p-c616c592.js +0 -1
- package/dist/vega/p-ca3472c1.entry.js +0 -1
- package/dist/vega/p-cc43bffb.js +0 -1
- package/dist/vega/p-d6ed3d76.entry.js +0 -1
- package/dist/vega/p-db8cdba6.js +0 -1
- package/dist/vega/p-e1610196.entry.js +0 -1
- package/dist/vega/p-e87b0b4a.entry.js +0 -1
- package/dist/vega/p-e9c4fd24.entry.js +0 -1
- package/dist/vega/p-eb60cfe1.entry.js +0 -1
- package/dist/vega/p-ef001c70.entry.js +0 -1
- package/dist/vega/p-ef9cbad1.js +0 -1
- package/dist/vega/p-f383c856.js +0 -1
- package/dist/vega/p-f3c3ff26.entry.js +0 -1
- package/dist/vega/p-f52a0155.entry.js +0 -1
- package/dist/vega/p-f69f84a7.js +0 -1
- package/dist/vega/p-f8f7cf48.entry.js +0 -1
- package/dist/vega/p-fba14ad2.entry.js +0 -1
- package/dist/vega/p-fbd64f9c.entry.js +0 -1
- package/dist/vega/p-fdc270b8.entry.js +0 -1
- package/dist/vega/p-fe12eff6.js +0 -1
- package/dist/vega/p-ffbff9b5.entry.js +0 -1
- /package/dist/{types/utils/test/sanitize.test.d.ts → collection/components/vega-rich-text-editor/slimmers/controllers/html-cleaner/html-content-cleaner-processor.interface.js} +0 -0
- /package/dist/vega/{p-d9671d27.js → p-6c170474.js} +0 -0
package/dist/esm/{element-appender-slimmer-7cb08343.js → element-appender-slimmer-e4713a72.js}
RENAMED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { c as MapToComponentField, I as InjectVegaSlimmer, V as VegaSlimmer, L as LogUtility, M as MapToComponentMethod } from './global-slimmer-registry-17c4efd4.js';
|
|
2
|
-
import { f as findParent, d as isElementVisible, b as isParent } from './ui-
|
|
3
|
-
import {
|
|
2
|
+
import { f as findParent, d as isElementVisible, b as isParent } from './ui-ee31416b.js';
|
|
3
|
+
import { I as InternalVegaZIndexManager } from './internal-vega-z-index-manager-7d2b54c3.js';
|
|
4
4
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
5
|
-
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-
|
|
6
|
-
import {
|
|
7
|
-
import { H as isTranslocationType, a3 as isEATriggerStrategy } from './type-guard-
|
|
8
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
5
|
+
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-d6af0d86.js';
|
|
6
|
+
import { A as Alignments, P as Placements } from './ui-28fd4193.js';
|
|
7
|
+
import { H as isTranslocationType, a3 as isEATriggerStrategy } from './type-guard-f50e34d6.js';
|
|
8
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-7a071174.js';
|
|
9
|
+
import { t as tryGetDocument } from './try-get-document-bef0f526.js';
|
|
10
|
+
import { F as FeatureFlag } from './feature-flag-controller-09ea7e87.js';
|
|
9
11
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
10
12
|
import { S as SHADOW_ROOT_ELEMENT_SCROLLING } from './static-subject-title-52f93124.js';
|
|
11
13
|
import { O as Observer } from './observer-3959f9dd.js';
|
|
12
|
-
import { d as domNodeSubjectFactory, D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-
|
|
13
|
-
import { x as VegaInternalNestEAHierarchyTreeChange } from './vega-internal-event-id-
|
|
14
|
+
import { d as domNodeSubjectFactory, D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-82f346e3.js';
|
|
15
|
+
import { x as VegaInternalNestEAHierarchyTreeChange } from './vega-internal-event-id-799d012e.js';
|
|
14
16
|
|
|
15
17
|
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
16
18
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -268,6 +270,17 @@ __decorate$6([
|
|
|
268
270
|
* calculate position
|
|
269
271
|
*/
|
|
270
272
|
class BasePositionCalculationStrategy extends VegaSlimmer {
|
|
273
|
+
/**
|
|
274
|
+
* Whether the controller should adjust/recompute position at this time.
|
|
275
|
+
*
|
|
276
|
+
* This hook allows strategies to avoid unnecessary work (for example, on scroll) by deciding
|
|
277
|
+
* whether a re-position is required.
|
|
278
|
+
*
|
|
279
|
+
* @returns {boolean} True when the controller should proceed with width/height/position adjustments.
|
|
280
|
+
*/
|
|
281
|
+
shouldAdjustPosition() {
|
|
282
|
+
return true;
|
|
283
|
+
}
|
|
271
284
|
/**
|
|
272
285
|
* Get the position box.
|
|
273
286
|
*
|
|
@@ -293,121 +306,46 @@ class BasePositionCalculationStrategy extends VegaSlimmer {
|
|
|
293
306
|
return positionBox;
|
|
294
307
|
}
|
|
295
308
|
/**
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
* The function takes an element as an argument and returns an object with three properties: width,
|
|
299
|
-
* height, and top.
|
|
300
|
-
*
|
|
301
|
-
* Note: If element is hide, we should temporary change it to `block` to get the bounding client rect of element,
|
|
302
|
-
* After do that, this element will change to origin `hide`, if not, it will be contained in the calculate of `document.documentElement.scrollHeight`
|
|
303
|
-
*
|
|
304
|
-
* @returns {ElementBoundBox} An object with the width, height, and top properties of the element.
|
|
305
|
-
*/
|
|
306
|
-
getElementBoundBox() {
|
|
307
|
-
const element = this.showConfig.appendableElement;
|
|
308
|
-
const isElementHide = element.classList.contains('vega-force-hidden');
|
|
309
|
-
if (isElementHide)
|
|
310
|
-
element.classList.remove('vega-force-hidden');
|
|
311
|
-
const elementRect = element.getBoundingClientRect();
|
|
312
|
-
if (isElementHide)
|
|
313
|
-
element.classList.add('vega-force-hidden');
|
|
314
|
-
return {
|
|
315
|
-
width: elementRect.width,
|
|
316
|
-
height: elementRect.height,
|
|
317
|
-
left: elementRect.left,
|
|
318
|
-
top: elementRect.top,
|
|
319
|
-
};
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* It takes a placement string or array of placements and returns an array of placements
|
|
323
|
-
* if given placement is single, we should completion the placements with the default {@link Placements}
|
|
324
|
-
* and make given placement as default.
|
|
325
|
-
* if given placement is array, we should use it directly, even it partial of {@link Placements}.
|
|
326
|
-
* if not placement give. we should use {@link Placements}.
|
|
327
|
-
*
|
|
328
|
-
* @returns {PlacementType[]} ordered placements.
|
|
329
|
-
*/
|
|
330
|
-
getPlacements() {
|
|
331
|
-
const placement = this.showConfig.placement;
|
|
332
|
-
if (typeof placement === 'string') {
|
|
333
|
-
const partial = Placements.filter((direction) => direction !== placement);
|
|
334
|
-
return [placement, ...partial];
|
|
335
|
-
}
|
|
336
|
-
else if (Array.isArray(placement)) {
|
|
337
|
-
return placement;
|
|
338
|
-
}
|
|
339
|
-
else {
|
|
340
|
-
return [...Placements];
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
/**
|
|
344
|
-
* It returns acceptable alignments.
|
|
345
|
-
*
|
|
346
|
-
* @returns {PositionAlignmentType[]} acceptable alignments
|
|
347
|
-
*/
|
|
348
|
-
getAlignments() {
|
|
349
|
-
const alignment = this.showConfig.alignment;
|
|
350
|
-
if (typeof alignment === 'string') {
|
|
351
|
-
const partial = Alignments.filter((item) => item !== alignment);
|
|
352
|
-
return [alignment, ...partial];
|
|
353
|
-
}
|
|
354
|
-
else if (Array.isArray(alignment)) {
|
|
355
|
-
return alignment;
|
|
356
|
-
}
|
|
357
|
-
else {
|
|
358
|
-
return [...Alignments];
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
/**
|
|
362
|
-
* It takes a placement, a target box, and a element box, and returns an element box
|
|
309
|
+
* Whether the alignment space is enough
|
|
363
310
|
*
|
|
364
|
-
* @param {
|
|
311
|
+
* @param {ElementScrollDimension} containerBox - The bounding box of the container element.
|
|
365
312
|
* @param {ElementBoundBox} targetBox - The position of the target element.
|
|
366
|
-
* @param {
|
|
367
|
-
* @param {
|
|
368
|
-
* @
|
|
369
|
-
|
|
370
|
-
calculatePosition(elementBox, targetBox, placement, alignment) {
|
|
371
|
-
return {
|
|
372
|
-
top: this.calculateTop(elementBox, targetBox, placement, alignment),
|
|
373
|
-
left: this.calculateLeft(elementBox, targetBox, placement, alignment),
|
|
374
|
-
};
|
|
375
|
-
}
|
|
376
|
-
/**
|
|
377
|
-
* It returns the translocation of the element relative to the target element
|
|
378
|
-
*
|
|
379
|
-
* @param {PlacementType} placement - The suitable placement of the element.
|
|
380
|
-
* @returns {TranslocationType} A translocation object with X and Y properties.
|
|
313
|
+
* @param {ElementBoundBox} elementBox - The box of the element that we're trying to position.
|
|
314
|
+
* @param {PlacementType} placement - The placement of the element relative to the target.
|
|
315
|
+
* @param {PlacementType} alignment - The alignment of the element relative to the target.
|
|
316
|
+
* @returns {boolean} return true if it has enough space, otherwise false
|
|
381
317
|
*/
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
(originPlacement &&
|
|
396
|
-
['top', 'bottom'].includes(originPlacement) &&
|
|
397
|
-
['left', 'right'].includes(placement))) {
|
|
398
|
-
xValue = translocation.Y;
|
|
399
|
-
yValue = translocation.X;
|
|
400
|
-
}
|
|
401
|
-
if (['bottom', 'top'].includes(placement)) {
|
|
402
|
-
result.Y = placement === 'top' ? -yValue : yValue;
|
|
403
|
-
result.X = xValue;
|
|
318
|
+
hasEnoughAlignmentSpace(containerBox, targetBox, elementBox, placement, alignment) {
|
|
319
|
+
if (['top', 'bottom'].includes(placement)) {
|
|
320
|
+
switch (alignment) {
|
|
321
|
+
case 'start': {
|
|
322
|
+
return targetBox.left + elementBox.width <= containerBox.width;
|
|
323
|
+
}
|
|
324
|
+
case 'center': {
|
|
325
|
+
return (targetBox.left >= (elementBox.width - targetBox.width) / 2 &&
|
|
326
|
+
targetBox.left + targetBox.width / 2 + elementBox.width / 2 <= containerBox.width);
|
|
327
|
+
}
|
|
328
|
+
case 'end': {
|
|
329
|
+
return targetBox.left + targetBox.width >= elementBox.width;
|
|
330
|
+
}
|
|
404
331
|
}
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
332
|
+
}
|
|
333
|
+
if (['right', 'left'].includes(placement)) {
|
|
334
|
+
switch (alignment) {
|
|
335
|
+
case 'start': {
|
|
336
|
+
return targetBox.top + elementBox.height <= containerBox.height;
|
|
337
|
+
}
|
|
338
|
+
case 'center': {
|
|
339
|
+
return (targetBox.top >= (elementBox.height - targetBox.height) / 2 &&
|
|
340
|
+
targetBox.top + targetBox.height / 2 + elementBox.height / 2 <= containerBox.height);
|
|
341
|
+
}
|
|
342
|
+
case 'end': {
|
|
343
|
+
return targetBox.top + targetBox.height >= elementBox.height;
|
|
344
|
+
}
|
|
408
345
|
}
|
|
409
346
|
}
|
|
410
|
-
|
|
347
|
+
/* istanbul ignore next */
|
|
348
|
+
return false;
|
|
411
349
|
}
|
|
412
350
|
/**
|
|
413
351
|
* Calculate the left position of the element
|
|
@@ -477,6 +415,24 @@ class BasePositionCalculationStrategy extends VegaSlimmer {
|
|
|
477
415
|
throw new Error(`Unexpected placement: ${placement}. Expected values are top, bottom, left, or right.`);
|
|
478
416
|
}
|
|
479
417
|
}
|
|
418
|
+
/**
|
|
419
|
+
* It returns acceptable alignments.
|
|
420
|
+
*
|
|
421
|
+
* @returns {PositionAlignmentType[]} acceptable alignments
|
|
422
|
+
*/
|
|
423
|
+
getAlignments() {
|
|
424
|
+
const alignment = this.showConfig.alignment;
|
|
425
|
+
if (typeof alignment === 'string') {
|
|
426
|
+
const partial = Alignments.filter((item) => item !== alignment);
|
|
427
|
+
return [alignment, ...partial];
|
|
428
|
+
}
|
|
429
|
+
else if (Array.isArray(alignment)) {
|
|
430
|
+
return alignment;
|
|
431
|
+
}
|
|
432
|
+
else {
|
|
433
|
+
return [...Alignments];
|
|
434
|
+
}
|
|
435
|
+
}
|
|
480
436
|
/**
|
|
481
437
|
* It takes a list of placements and returns the first placement that has enough space to place the
|
|
482
438
|
* element
|
|
@@ -501,6 +457,105 @@ class BasePositionCalculationStrategy extends VegaSlimmer {
|
|
|
501
457
|
return defaultPlacement;
|
|
502
458
|
}
|
|
503
459
|
}
|
|
460
|
+
/**
|
|
461
|
+
* "Get the width, height, and top position of an element."
|
|
462
|
+
*
|
|
463
|
+
* The function takes an element as an argument and returns an object with three properties: width,
|
|
464
|
+
* height, and top.
|
|
465
|
+
*
|
|
466
|
+
* Note: If element is hide, we should temporary change it to `block` to get the bounding client rect of element,
|
|
467
|
+
* After do that, this element will change to origin `hide`, if not, it will be contained in the calculate of `document.documentElement.scrollHeight`
|
|
468
|
+
*
|
|
469
|
+
* @returns {ElementBoundBox} An object with the width, height, and top properties of the element.
|
|
470
|
+
*/
|
|
471
|
+
getElementBoundBox() {
|
|
472
|
+
const element = this.showConfig.appendableElement;
|
|
473
|
+
const isElementHide = element.classList.contains('vega-force-hidden');
|
|
474
|
+
if (isElementHide)
|
|
475
|
+
element.classList.remove('vega-force-hidden');
|
|
476
|
+
const elementRect = element.getBoundingClientRect();
|
|
477
|
+
if (isElementHide)
|
|
478
|
+
element.classList.add('vega-force-hidden');
|
|
479
|
+
return {
|
|
480
|
+
width: elementRect.width,
|
|
481
|
+
height: elementRect.height,
|
|
482
|
+
left: elementRect.left,
|
|
483
|
+
top: elementRect.top,
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* It takes a placement string or array of placements and returns an array of placements
|
|
488
|
+
* if given placement is single, we should completion the placements with the default {@link Placements}
|
|
489
|
+
* and make given placement as default.
|
|
490
|
+
* if given placement is array, we should use it directly, even it partial of {@link Placements}.
|
|
491
|
+
* if not placement give. we should use {@link Placements}.
|
|
492
|
+
*
|
|
493
|
+
* @returns {PlacementType[]} ordered placements.
|
|
494
|
+
*/
|
|
495
|
+
getPlacements() {
|
|
496
|
+
const placement = this.showConfig.placement;
|
|
497
|
+
if (typeof placement === 'string') {
|
|
498
|
+
const partial = Placements.filter((direction) => direction !== placement);
|
|
499
|
+
return [placement, ...partial];
|
|
500
|
+
}
|
|
501
|
+
else if (Array.isArray(placement)) {
|
|
502
|
+
return placement;
|
|
503
|
+
}
|
|
504
|
+
else {
|
|
505
|
+
return [...Placements];
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* It takes a placement, a target box, and a element box, and returns an element box
|
|
510
|
+
*
|
|
511
|
+
* @param {ElementBoundBox} elementBox - The position of the element element.
|
|
512
|
+
* @param {ElementBoundBox} targetBox - The position of the target element.
|
|
513
|
+
* @param {PlacementType} placement - The placement of the element.
|
|
514
|
+
* @param {PositionAlignmentType} alignment - The alignment of the element
|
|
515
|
+
* @returns {ElementPositionBox} An object with top and left properties.
|
|
516
|
+
*/
|
|
517
|
+
calculatePosition(elementBox, targetBox, placement, alignment) {
|
|
518
|
+
return {
|
|
519
|
+
top: this.calculateTop(elementBox, targetBox, placement, alignment),
|
|
520
|
+
left: this.calculateLeft(elementBox, targetBox, placement, alignment),
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* It returns the translocation of the element relative to the target element
|
|
525
|
+
*
|
|
526
|
+
* @param {PlacementType} placement - The suitable placement of the element.
|
|
527
|
+
* @returns {TranslocationType} A translocation object with X and Y properties.
|
|
528
|
+
*/
|
|
529
|
+
getTranslocationBox(placement) {
|
|
530
|
+
const originPlacement = Array.isArray(this.showConfig.placement)
|
|
531
|
+
? this.showConfig.placement[0]
|
|
532
|
+
: this.showConfig.placement;
|
|
533
|
+
const translocation = this.getTranslocation();
|
|
534
|
+
const result = { X: 0, Y: 0 };
|
|
535
|
+
if (isTranslocationType(translocation)) {
|
|
536
|
+
let xValue = translocation.X;
|
|
537
|
+
let yValue = translocation.Y;
|
|
538
|
+
// If originPlacement and placement is not in same axis, it should reverse axis.
|
|
539
|
+
if ((originPlacement &&
|
|
540
|
+
['left', 'right'].includes(originPlacement) &&
|
|
541
|
+
['top', 'bottom'].includes(placement)) ||
|
|
542
|
+
(originPlacement &&
|
|
543
|
+
['top', 'bottom'].includes(originPlacement) &&
|
|
544
|
+
['left', 'right'].includes(placement))) {
|
|
545
|
+
xValue = translocation.Y;
|
|
546
|
+
yValue = translocation.X;
|
|
547
|
+
}
|
|
548
|
+
if (['bottom', 'top'].includes(placement)) {
|
|
549
|
+
result.Y = placement === 'top' ? -yValue : yValue;
|
|
550
|
+
result.X = xValue;
|
|
551
|
+
}
|
|
552
|
+
if (['left', 'right'].includes(placement)) {
|
|
553
|
+
result.X = placement === 'left' ? -xValue : xValue;
|
|
554
|
+
result.Y = yValue;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
return result;
|
|
558
|
+
}
|
|
504
559
|
/**
|
|
505
560
|
* It takes a list of alignments and returns the suitable one that has enough space to fit the element
|
|
506
561
|
*
|
|
@@ -525,48 +580,6 @@ class BasePositionCalculationStrategy extends VegaSlimmer {
|
|
|
525
580
|
return defaultAlignment;
|
|
526
581
|
}
|
|
527
582
|
}
|
|
528
|
-
/**
|
|
529
|
-
* Whether the alignment space is enough
|
|
530
|
-
*
|
|
531
|
-
* @param {ElementScrollDimension} containerBox - The bounding box of the container element.
|
|
532
|
-
* @param {ElementBoundBox} targetBox - The position of the target element.
|
|
533
|
-
* @param {ElementBoundBox} elementBox - The box of the element that we're trying to position.
|
|
534
|
-
* @param {PlacementType} placement - The placement of the element relative to the target.
|
|
535
|
-
* @param {PlacementType} alignment - The alignment of the element relative to the target.
|
|
536
|
-
* @returns {boolean} return true if it has enough space, otherwise false
|
|
537
|
-
*/
|
|
538
|
-
hasEnoughAlignmentSpace(containerBox, targetBox, elementBox, placement, alignment) {
|
|
539
|
-
if (['top', 'bottom'].includes(placement)) {
|
|
540
|
-
switch (alignment) {
|
|
541
|
-
case 'start': {
|
|
542
|
-
return targetBox.left + elementBox.width <= containerBox.width;
|
|
543
|
-
}
|
|
544
|
-
case 'center': {
|
|
545
|
-
return (targetBox.left >= (elementBox.width - targetBox.width) / 2 &&
|
|
546
|
-
targetBox.left + targetBox.width / 2 + elementBox.width / 2 <= containerBox.width);
|
|
547
|
-
}
|
|
548
|
-
case 'end': {
|
|
549
|
-
return targetBox.left + targetBox.width >= elementBox.width;
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
if (['right', 'left'].includes(placement)) {
|
|
554
|
-
switch (alignment) {
|
|
555
|
-
case 'start': {
|
|
556
|
-
return targetBox.top + elementBox.height <= containerBox.height;
|
|
557
|
-
}
|
|
558
|
-
case 'center': {
|
|
559
|
-
return (targetBox.top >= (elementBox.height - targetBox.height) / 2 &&
|
|
560
|
-
targetBox.top + targetBox.height / 2 + elementBox.height / 2 <= containerBox.height);
|
|
561
|
-
}
|
|
562
|
-
case 'end': {
|
|
563
|
-
return targetBox.top + targetBox.height >= elementBox.height;
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
/* istanbul ignore next */
|
|
568
|
-
return false;
|
|
569
|
-
}
|
|
570
583
|
/**
|
|
571
584
|
* If the placement is top or left, then the target's top or left position must be greater than or
|
|
572
585
|
* equal to the element's height or width. If the placement is bottom or right, then the container's
|
|
@@ -669,6 +682,60 @@ __decorate$5([
|
|
|
669
682
|
MapToComponentField()
|
|
670
683
|
], BodyPositionCalculationStrategy.prototype, "showConfig", void 0);
|
|
671
684
|
|
|
685
|
+
/**
|
|
686
|
+
* Updates position on scroll When the target rect changes, we recompute placement/alignment.
|
|
687
|
+
*/
|
|
688
|
+
class ScreenScrollPositionUpdate {
|
|
689
|
+
constructor() {
|
|
690
|
+
this.viewportWidth = window.innerWidth;
|
|
691
|
+
this.viewportHeight = window.innerHeight;
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* Determines whether the appendable element's position should update on scroll.
|
|
695
|
+
*
|
|
696
|
+
* @param {ScrollPositionUpdateStrategyContext} context - Current/previous rectangles plus viewport size.
|
|
697
|
+
* @returns {ScrollPositionUpdateDecision} Decision that indicates whether to recompute position.
|
|
698
|
+
*/
|
|
699
|
+
shouldUpdatePosition(context) {
|
|
700
|
+
const { previousTargetRect, currentTargetRect, appendableRect, viewportWidth, viewportHeight, } = context;
|
|
701
|
+
this.viewportWidth = viewportWidth;
|
|
702
|
+
this.viewportHeight = viewportHeight;
|
|
703
|
+
const targetChanged = !previousTargetRect ||
|
|
704
|
+
currentTargetRect.left !== previousTargetRect.left ||
|
|
705
|
+
currentTargetRect.top !== previousTargetRect.top;
|
|
706
|
+
const isTargetWithinViewport = !this.isRectOutsideViewport(currentTargetRect);
|
|
707
|
+
const isAppendableNotEntirelyInViewport = !this.isRectEntirelyWithinViewport(appendableRect);
|
|
708
|
+
return {
|
|
709
|
+
shouldUpdate: targetChanged && isTargetWithinViewport && isAppendableNotEntirelyInViewport,
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* Whether the rect is fully within the viewport bounds.
|
|
714
|
+
*
|
|
715
|
+
* @param {DOMRect} rect - The DOMRect to check.
|
|
716
|
+
* @returns {boolean} True when rect is fully within the viewport.
|
|
717
|
+
*/
|
|
718
|
+
isRectEntirelyWithinViewport(rect) {
|
|
719
|
+
return (rect.left >= 0 &&
|
|
720
|
+
rect.top >= 0 &&
|
|
721
|
+
rect.right <= this.viewportWidth &&
|
|
722
|
+
rect.bottom <= this.viewportHeight);
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Whether the element is fully outside the viewport.
|
|
726
|
+
* If true, the rect has "disappeared" from the viewport.
|
|
727
|
+
*
|
|
728
|
+
* @param {DOMRect} rect - The DOMRect to check.
|
|
729
|
+
* @returns {boolean} True when rect is completely outside viewport bounds.
|
|
730
|
+
*/
|
|
731
|
+
isRectOutsideViewport(rect) {
|
|
732
|
+
return (rect.right <= 0 ||
|
|
733
|
+
rect.bottom <= 0 ||
|
|
734
|
+
rect.left >= this.viewportWidth ||
|
|
735
|
+
rect.top >= this.viewportHeight);
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
|
|
672
739
|
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
673
740
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
674
741
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -679,6 +746,76 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
679
746
|
* calculate position by screen container
|
|
680
747
|
*/
|
|
681
748
|
class ScreenPositionCalculationStrategy extends BasePositionCalculationStrategy {
|
|
749
|
+
constructor() {
|
|
750
|
+
super(...arguments);
|
|
751
|
+
this.scrollFrameRequestId = null;
|
|
752
|
+
this.usePreviousPlacement = false;
|
|
753
|
+
this.scrollPositionUpdateStrategy = new ScreenScrollPositionUpdate();
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* For screen-positioned appendable we may get a lot of scroll events.
|
|
757
|
+
* This hook throttles the check with requestAnimationFrame and only allows an adjust when
|
|
758
|
+
* the strategy determines we should update.
|
|
759
|
+
*
|
|
760
|
+
* @returns {boolean} True when controller should perform a position adjustment.
|
|
761
|
+
*/
|
|
762
|
+
shouldAdjustPosition() {
|
|
763
|
+
if (this.scrollFrameRequestId !== null) {
|
|
764
|
+
return false;
|
|
765
|
+
}
|
|
766
|
+
if (!FeatureFlag.isEnabled('VEGA_ELEMENT_APPENDER.AUTO_PLACEMENT')) {
|
|
767
|
+
this.usePreviousPlacement = true;
|
|
768
|
+
return true;
|
|
769
|
+
}
|
|
770
|
+
if (!this.previousTargetRect) {
|
|
771
|
+
this.previousTargetRect = this.showConfig.target.getBoundingClientRect();
|
|
772
|
+
this.usePreviousPlacement = false;
|
|
773
|
+
return true;
|
|
774
|
+
}
|
|
775
|
+
/**
|
|
776
|
+
* This avoids doing expensive DOM reads on every scroll event, while still
|
|
777
|
+
* updating placement/alignment when the trigger moves and the appendable
|
|
778
|
+
* would be clipped by the viewport (auto placement).
|
|
779
|
+
*
|
|
780
|
+
* The below method is e2e-test covered in @see{module:the-screen-position-scroll-RAFCallback-trigger-as-expected}
|
|
781
|
+
*/
|
|
782
|
+
/* istanbul ignore next */
|
|
783
|
+
this.scrollFrameRequestId = requestAnimationFrame(() => {
|
|
784
|
+
var _a;
|
|
785
|
+
this.scrollFrameRequestId = null;
|
|
786
|
+
let viewportWidth = window.innerWidth;
|
|
787
|
+
let viewportHeight = window.innerHeight;
|
|
788
|
+
if (this.showConfig.positionRelativeTo) {
|
|
789
|
+
const containerDom = (_a = tryGetDocument()) === null || _a === void 0 ? void 0 : _a.querySelector(this.showConfig.positionRelativeTo);
|
|
790
|
+
if (containerDom) {
|
|
791
|
+
viewportWidth = containerDom.getBoundingClientRect().width;
|
|
792
|
+
viewportHeight = containerDom.getBoundingClientRect().height;
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
const currentTargetRect = this.showConfig.target.getBoundingClientRect();
|
|
796
|
+
const appendableRect = this.showConfig.appendableElement.getBoundingClientRect();
|
|
797
|
+
const { shouldUpdate } = this.scrollPositionUpdateStrategy.shouldUpdatePosition({
|
|
798
|
+
currentTargetRect,
|
|
799
|
+
previousTargetRect: this.previousTargetRect,
|
|
800
|
+
appendableRect,
|
|
801
|
+
viewportWidth,
|
|
802
|
+
viewportHeight,
|
|
803
|
+
});
|
|
804
|
+
this.usePreviousPlacement = !shouldUpdate;
|
|
805
|
+
this.previousTargetRect = currentTargetRect;
|
|
806
|
+
});
|
|
807
|
+
return true;
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* Clears any pending scroll animation frame callback.
|
|
811
|
+
* Call this when popover is hidden/destroyed to avoid leaks and stale callbacks.
|
|
812
|
+
*/
|
|
813
|
+
clearScrollFrame() {
|
|
814
|
+
if (this.scrollFrameRequestId !== null) {
|
|
815
|
+
cancelAnimationFrame(this.scrollFrameRequestId);
|
|
816
|
+
this.scrollFrameRequestId = null;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
682
819
|
/**
|
|
683
820
|
* Get the position of the element in the container according to the target element and the placement
|
|
684
821
|
* If give a translocation, it will apply the translocation to the result.
|
|
@@ -688,7 +825,8 @@ class ScreenPositionCalculationStrategy extends BasePositionCalculationStrategy
|
|
|
688
825
|
* returns an ElementPositionBox.
|
|
689
826
|
*/
|
|
690
827
|
getPosition(usePreviousPlacement) {
|
|
691
|
-
const
|
|
828
|
+
const stayPlacement = usePreviousPlacement ? this.usePreviousPlacement : false;
|
|
829
|
+
const positionBox = stayPlacement
|
|
692
830
|
? this.getPositionBox([this.previousPositionBox.placement], [this.previousPositionBox.alignment])
|
|
693
831
|
: this.getPositionBox();
|
|
694
832
|
this.previousPositionBox = positionBox;
|
|
@@ -722,6 +860,43 @@ class ScreenPositionCalculationStrategy extends BasePositionCalculationStrategy
|
|
|
722
860
|
height: window.innerHeight,
|
|
723
861
|
};
|
|
724
862
|
}
|
|
863
|
+
/**
|
|
864
|
+
* Whether the alignment space is enough
|
|
865
|
+
*
|
|
866
|
+
* @param {ElementScrollDimension} containerBox - The bounding box of the container element.
|
|
867
|
+
* @param {ElementBoundBox} targetBox - The position of the target element.
|
|
868
|
+
* @param {ElementBoundBox} elementBox - The box of the element that we're trying to position.
|
|
869
|
+
* @param {PlacementType} placement - The placement of the element relative to the target.
|
|
870
|
+
* @param {PlacementType} alignment - The alignment of the element relative to the target.
|
|
871
|
+
* @returns {boolean} return true if it has enough space, otherwise false
|
|
872
|
+
*/
|
|
873
|
+
hasEnoughAlignmentSpace(containerBox, targetBox, elementBox, placement, alignment) {
|
|
874
|
+
const left = this.calculateLeft(elementBox, targetBox, placement, alignment);
|
|
875
|
+
const top = this.calculateTop(elementBox, targetBox, placement, alignment);
|
|
876
|
+
return (left >= 0 &&
|
|
877
|
+
top >= 0 &&
|
|
878
|
+
left + elementBox.width <= containerBox.width &&
|
|
879
|
+
top + elementBox.height <= containerBox.height);
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* Screen-specific suitable placement selection.
|
|
883
|
+
* Tries to find a placement that has enough alignment space within the viewport first,
|
|
884
|
+
* otherwise falls back to the base strategy.
|
|
885
|
+
*
|
|
886
|
+
* @param {ElementScrollDimension} containerBox - The bounding box of the container.
|
|
887
|
+
* @param {ElementBoundBox} elementBox - The box of the element to place.
|
|
888
|
+
* @param {ElementBoundBox} targetBox - The box of the target element.
|
|
889
|
+
* @param {PlacementType[]} placements - Ordered list of placements to try.
|
|
890
|
+
* @returns {PlacementType} The chosen placement.
|
|
891
|
+
*/
|
|
892
|
+
getSuitablePlacement(containerBox, elementBox, targetBox, placements) {
|
|
893
|
+
const alignments = this.getAlignments();
|
|
894
|
+
const suitablePlacement = placements.find((placement) => alignments.some((alignment) => this.hasEnoughAlignmentSpace(containerBox, targetBox, elementBox, placement, alignment)));
|
|
895
|
+
if (suitablePlacement) {
|
|
896
|
+
return suitablePlacement;
|
|
897
|
+
}
|
|
898
|
+
return super.getSuitablePlacement(containerBox, elementBox, targetBox, placements);
|
|
899
|
+
}
|
|
725
900
|
}
|
|
726
901
|
__decorate$4([
|
|
727
902
|
MapToComponentField()
|
|
@@ -742,6 +917,13 @@ class PositionCalculationController extends VegaSlimmer {
|
|
|
742
917
|
this.bodyPositionStrategy = new BodyPositionCalculationStrategy();
|
|
743
918
|
this.screenPositionStrategy = new ScreenPositionCalculationStrategy();
|
|
744
919
|
}
|
|
920
|
+
/**
|
|
921
|
+
* Clears any pending screen-position scroll animation frame callback.
|
|
922
|
+
* Call this when the appendable is hidden/destroyed.
|
|
923
|
+
*/
|
|
924
|
+
clearScreenPositionScrollFrame() {
|
|
925
|
+
this.screenPositionStrategy.clearScrollFrame();
|
|
926
|
+
}
|
|
745
927
|
/**
|
|
746
928
|
* Sets the calculate postion strategy.
|
|
747
929
|
*/
|
|
@@ -756,6 +938,8 @@ class PositionCalculationController extends VegaSlimmer {
|
|
|
756
938
|
* @param {boolean} [usePreviousPlacement] - Should keep use previous placement and alignment.
|
|
757
939
|
*/
|
|
758
940
|
adjustPosition(usePreviousPlacement) {
|
|
941
|
+
if (!this.positionStrategy.shouldAdjustPosition())
|
|
942
|
+
return;
|
|
759
943
|
this.adjustWidth();
|
|
760
944
|
this.adjustHeight();
|
|
761
945
|
this.applyPosition(this.positionStrategy.getPosition(usePreviousPlacement));
|
|
@@ -918,6 +1102,7 @@ class ElementAppender {
|
|
|
918
1102
|
* @returns {void} Nothing is being returned.
|
|
919
1103
|
*/
|
|
920
1104
|
show() {
|
|
1105
|
+
this.positionCalculationController.clearScreenPositionScrollFrame();
|
|
921
1106
|
this.setShowConfig();
|
|
922
1107
|
if (!this.showConfig.target) {
|
|
923
1108
|
LogUtility.error(`No target element found, please add it at new elementAppender.`);
|
|
@@ -941,6 +1126,7 @@ class ElementAppender {
|
|
|
941
1126
|
hide() {
|
|
942
1127
|
if (!this.showConfig)
|
|
943
1128
|
return;
|
|
1129
|
+
this.positionCalculationController.clearScreenPositionScrollFrame();
|
|
944
1130
|
this.toggleShow(false);
|
|
945
1131
|
this.resetContainerPosition();
|
|
946
1132
|
InternalVegaZIndexManager.removeZIndex(this.showConfig.appendableElement, 'base');
|
|
@@ -949,11 +1135,7 @@ class ElementAppender {
|
|
|
949
1135
|
* Update position while window scroll.
|
|
950
1136
|
*/
|
|
951
1137
|
onScroll() {
|
|
952
|
-
|
|
953
|
-
const currentTargetRect = this.showConfig.target.getBoundingClientRect();
|
|
954
|
-
if (this.showConfig.isScreenPosition &&
|
|
955
|
-
(currentTargetRect.left !== ((_a = this.previousTargetRect) === null || _a === void 0 ? void 0 : _a.left) ||
|
|
956
|
-
currentTargetRect.top !== this.previousTargetRect.top)) {
|
|
1138
|
+
if (this.showConfig.isScreenPosition) {
|
|
957
1139
|
this.adjustPosition(true);
|
|
958
1140
|
}
|
|
959
1141
|
}
|
|
@@ -965,6 +1147,7 @@ class ElementAppender {
|
|
|
965
1147
|
destroy() {
|
|
966
1148
|
if (!this.showConfig)
|
|
967
1149
|
return;
|
|
1150
|
+
this.positionCalculationController.clearScreenPositionScrollFrame();
|
|
968
1151
|
this.removeVisibleAppendElement(this.showConfig.appendableElement);
|
|
969
1152
|
this.resetContainerPosition();
|
|
970
1153
|
InternalVegaZIndexManager.removeZIndex(this.showConfig.appendableElement, 'base');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as MapToComponentField, V as VegaSlimmer, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
2
2
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
3
3
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
4
|
-
import { d as domNodeSubjectFactory, D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-
|
|
5
|
-
import { j as jqueryDelegatedStrategyController, i as internalVegaEventManager } from './internal-vega-event-manager-
|
|
4
|
+
import { d as domNodeSubjectFactory, D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-82f346e3.js';
|
|
5
|
+
import { j as jqueryDelegatedStrategyController, i as internalVegaEventManager } from './internal-vega-event-manager-32a3d848.js';
|
|
6
6
|
import { t as tryGetDocument } from './try-get-document-bef0f526.js';
|
|
7
7
|
|
|
8
8
|
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
package/dist/esm/{feature-flag-controller-51659753.js → feature-flag-controller-09ea7e87.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
|
2
|
-
import k from './index-
|
|
2
|
+
import k from './index-bfc6dfa2.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The concrete feature flag map that we are going to use to determine if a feature is enabled or not.
|
|
@@ -212,6 +212,12 @@ const FeatureFlagsMap = {
|
|
|
212
212
|
createdAtVersion: '2.48.1',
|
|
213
213
|
disabledByDefault: true,
|
|
214
214
|
},
|
|
215
|
+
'VEGA_ELEMENT_APPENDER.AUTO_PLACEMENT': {
|
|
216
|
+
description: `A feature flag to automatic placement for appendable pop-ups when isScreenPosition is enabled.`,
|
|
217
|
+
createdTimestamp: 1770940800000,
|
|
218
|
+
createdAtVersion: '2.76.0',
|
|
219
|
+
disabledByDefault: false,
|
|
220
|
+
},
|
|
215
221
|
};
|
|
216
222
|
const FeatureFlagsMap$1 = Object.freeze(FeatureFlagsMap);
|
|
217
223
|
|