@heartlandone/vega 2.75.1 → 2.77.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-35614ce8.js → app-globals-04e7024b.js} +28 -32
- package/dist/cjs/aria-attributes-value-mapper-f58c73f8.js +136 -0
- package/dist/cjs/breakpoints-751d433a.js +56 -0
- package/dist/cjs/{child-nodes-event-prevent-slimmer-aca87dac.js → child-nodes-event-prevent-slimmer-cc6d2919.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-bb39e07e.js → design-token-c49717c8.js} +2 -2
- package/dist/cjs/dom-node-subject-observer-factory-c62823de.js +141 -0
- package/dist/cjs/{dto-renderer-manager-03e1a038.js → dto-renderer-manager-809c947b.js} +33 -33
- package/dist/cjs/{element-appender-slimmer-daa8b9f5.js → element-appender-slimmer-38583ca9.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-9129ef52.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-3fa501b7.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/legend-input-processor-1e53e5bc.js +2126 -0
- 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-dc2a8d62.js → public-rules-922849f3.js} +12 -13
- package/dist/cjs/{range-79b668e7.js → range-8aa49b08.js} +2 -2
- package/dist/cjs/{responsive-format-facade-d5dba942.js → responsive-format-facade-acc39a40.js} +13 -22
- package/dist/cjs/{rich-text-editor-required-rule-ba312af9.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-49693da7.js → style-formatter-028af284.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-cfbbc57e.js → token-extension-ffcaeae0.js} +621 -486
- 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 +23 -32
- package/dist/cjs/vega-app-footer.cjs.entry.js +3 -3
- package/dist/cjs/vega-app-header-button.cjs.entry.js +47 -38
- 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 +3 -3
- 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 +37 -32
- 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 +78 -59
- 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 +4764 -5600
- 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 +326 -24
- 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 +6 -89
- 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 +36 -20
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +58 -55
- 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/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 +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 +19 -4
- 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-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +16 -2
- package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +184 -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-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/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 +2 -2
- 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-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/slimmers/renderers/vega-rich-text-content-renderer.js +15 -0
- package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.js +1 -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/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/extensions/extension-test-utils.js +41 -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/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/code-format/test/code-formatter.test.js +1 -1
- package/dist/collection/helpers/common/index.js +2 -37
- package/dist/collection/helpers/common/test/wait-for-component-did-render.test.js +67 -0
- 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 +132 -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/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/index.js +2 -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/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/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-2ac60ff5.js → app-globals-32055795.js} +12 -16
- package/dist/esm/aria-attributes-value-mapper-d4fef46a.js +134 -0
- package/dist/esm/breakpoints-56e5407b.js +53 -0
- package/dist/esm/{child-nodes-event-prevent-slimmer-e662bee2.js → child-nodes-event-prevent-slimmer-331312b8.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-007efbaa.js → design-token-5bc034e1.js} +2 -2
- package/dist/esm/dom-node-subject-observer-factory-82f346e3.js +138 -0
- package/dist/esm/{dto-renderer-manager-ee1a5864.js → dto-renderer-manager-6fd22ab7.js} +7 -7
- package/dist/esm/{element-appender-slimmer-35e26b5a.js → element-appender-slimmer-9ea377d0.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-30f7b625.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-285d432e.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/legend-input-processor-122008c5.js +2116 -0
- 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-724873f5.js → public-rules-25cc3a39.js} +13 -14
- package/dist/esm/{range-5257c062.js → range-663f44dc.js} +2 -2
- package/dist/esm/{responsive-format-facade-28ee2dbd.js → responsive-format-facade-aa705823.js} +3 -12
- package/dist/esm/{rich-text-editor-required-rule-873e2e67.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-314b37f3.js → style-formatter-28138f5c.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-e8c0e43e.js → token-extension-73e4460a.js} +609 -476
- 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 +21 -30
- package/dist/esm/vega-app-footer.entry.js +3 -3
- package/dist/esm/vega-app-header-button.entry.js +38 -29
- 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 +3 -3
- 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 +36 -31
- 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 +59 -40
- 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 +4760 -5596
- 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 +312 -10
- 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 +6 -89
- 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 +32 -16
- package/dist/esm/vega-rich-text-editor_4.entry.js +33 -30
- 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/esm/y-axis-input-processor-c7e05353.js +826 -0
- package/dist/sri/vega-sri-manifest.json +425 -409
- 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-circle/vega-button-circle.d.ts +2 -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 +53 -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-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-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 +477 -2
- package/dist/types/components/vega-rich-text-editor/test/extensions/extension-test-utils.d.ts +21 -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 +24 -4
- package/dist/types/helpers/chart/test/input-processors/y-axis-input-processor.coverage.test.d.ts +1 -0
- package/dist/types/helpers/common/index.d.ts +2 -15
- package/dist/types/helpers/common/test/wait-for-component-did-render.test.d.ts +1 -0
- 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/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/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 +5 -1
- package/dist/types/types/design-token.type.d.ts +36 -0
- package/dist/types/types/flag.type.d.ts +257 -3
- 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 +292 -14
- 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-0037068c.entry.js +1 -0
- package/dist/vega/p-010ff53d.entry.js +1 -0
- package/dist/vega/p-021d4ae4.js +1 -0
- package/dist/vega/{p-66fa700b.js → p-02c9796a.js} +1 -1
- package/dist/vega/p-03004a05.entry.js +1 -0
- package/dist/vega/p-0572c393.entry.js +1 -0
- package/dist/vega/p-0a3a285b.entry.js +1 -0
- package/dist/vega/{p-e5af5a4d.entry.js → p-0b4880bd.entry.js} +1 -1
- package/dist/vega/p-0d4cb1c7.entry.js +1 -0
- package/dist/vega/{p-920719ad.js → p-0e679d8c.js} +1 -1
- package/dist/vega/p-100b44c3.entry.js +1 -0
- package/dist/vega/p-168bb296.entry.js +1 -0
- package/dist/vega/{p-e77a83e4.js → p-18e8d9b7.js} +1 -1
- package/dist/vega/p-1a011d47.entry.js +1 -0
- package/dist/vega/p-1a3236e7.entry.js +1 -0
- package/dist/vega/{p-c9b6b5a9.js → p-1a51bf6f.js} +1 -1
- package/dist/vega/{p-ad2055f4.entry.js → p-1deedff2.entry.js} +1 -1
- package/dist/vega/p-1f3cd061.entry.js +1 -0
- package/dist/vega/p-1fa0c7da.entry.js +1 -0
- package/dist/vega/p-22056609.entry.js +1 -0
- package/dist/vega/p-242fbcad.entry.js +1 -0
- package/dist/vega/p-2a10e2e5.js +1 -0
- package/dist/vega/p-2b142818.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-2d69632d.js +1 -0
- package/dist/vega/p-31ac7386.js +1 -0
- package/dist/vega/p-33f9ad94.entry.js +1 -0
- package/dist/vega/p-34bcf4ed.entry.js +1 -0
- package/dist/vega/{p-4897bedd.entry.js → p-358b4a06.entry.js} +1 -1
- package/dist/vega/p-36a09524.entry.js +1 -0
- package/dist/vega/p-3afc025e.entry.js +1 -0
- package/dist/vega/p-3c05abd9.entry.js +1 -0
- package/dist/vega/p-3ce2b05c.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-43ff48c0.entry.js +1 -0
- package/dist/vega/{p-d849e0f5.js → p-4415ad28.js} +1 -1
- package/dist/vega/{p-0575d22e.js → p-464559e3.js} +1 -1
- package/dist/vega/p-4742feef.entry.js +1 -0
- package/dist/vega/p-49845a91.js +1 -0
- package/dist/vega/p-4aa52ed2.entry.js +1 -0
- package/dist/vega/p-4aa94940.entry.js +1 -0
- package/dist/vega/p-4bee4202.entry.js +1 -0
- package/dist/vega/{p-e16b3adf.js → p-4bffdb28.js} +1 -1
- package/dist/vega/{p-a2aeb646.js → p-4ea30592.js} +1 -1
- package/dist/vega/p-50d074ed.entry.js +1 -0
- package/dist/vega/{p-0b38a01f.entry.js → p-51fcb07f.entry.js} +1 -1
- package/dist/vega/p-5485c387.entry.js +1 -0
- package/dist/vega/p-560d2f48.entry.js +1 -0
- package/dist/vega/p-5833f33b.entry.js +1 -0
- package/dist/vega/p-592296d7.entry.js +1 -0
- package/dist/vega/p-593e0f80.js +1 -0
- package/dist/vega/p-5a25014f.js +1 -0
- package/dist/vega/p-5cfce62d.entry.js +1 -0
- package/dist/vega/p-5eb7f382.js +1 -0
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-60f77f5f.entry.js +1 -0
- package/dist/vega/p-641cdb5c.entry.js +1 -0
- package/dist/vega/p-67745549.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-70df91fb.entry.js +1 -0
- package/dist/vega/p-7425cedc.entry.js +1 -0
- package/dist/vega/p-781fd6e0.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-857069a5.entry.js +1 -0
- package/dist/vega/p-8ac2d165.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-8e34b266.js +1 -0
- package/dist/vega/{p-dd11f735.js → p-9339c6c4.js} +1 -1
- package/dist/vega/p-9441f2ba.entry.js +1 -0
- package/dist/vega/p-95528b47.js +1 -0
- package/dist/vega/p-9fb877c1.entry.js +1 -0
- package/dist/vega/{p-6f8be8ea.js → p-a0b66c25.js} +1 -1
- package/dist/vega/p-a46e977b.entry.js +1 -0
- package/dist/vega/{p-d0e31633.js → p-a786259a.js} +1 -1
- 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-ac82b9f9.entry.js +1 -0
- package/dist/vega/p-b1773281.entry.js +1 -0
- package/dist/vega/p-b201f379.js +1 -0
- package/dist/vega/p-b54dc37c.entry.js +1 -0
- package/dist/vega/p-b597393b.entry.js +1 -0
- package/dist/vega/p-b5f18f4b.entry.js +1 -0
- package/dist/vega/p-b7f3221f.js +1 -0
- package/dist/vega/p-be1a210b.js +1 -0
- package/dist/vega/p-bf6fc19f.entry.js +1 -0
- package/dist/vega/{p-691ba1ae.js → p-bff57aa4.js} +1 -1
- package/dist/vega/p-c165232c.entry.js +1 -0
- package/dist/vega/p-c292ade4.entry.js +1 -0
- package/dist/vega/p-c2d2faa0.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-cc5eaa1b.js +1 -0
- package/dist/vega/p-cccd7648.entry.js +1 -0
- package/dist/vega/p-cfecc1cb.entry.js +1 -0
- package/dist/vega/p-d07f5d5a.entry.js +1 -0
- package/dist/vega/p-d1cfe972.entry.js +1 -0
- package/dist/vega/p-d2ee5711.entry.js +1 -0
- package/dist/vega/p-d64fab3d.js +1 -0
- package/dist/vega/p-d78f6ede.js +1 -0
- package/dist/vega/p-d8180e42.entry.js +1 -0
- package/dist/vega/p-daa60a59.entry.js +1 -0
- package/dist/vega/p-dad3ba5f.js +1 -0
- package/dist/vega/p-db5fa164.entry.js +1 -0
- package/dist/vega/p-de64f6e6.js +1 -0
- package/dist/vega/p-e1fbfd20.js +1 -0
- package/dist/vega/p-e4917e76.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-e6cf2ace.entry.js +1 -0
- package/dist/vega/p-e7fbef97.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-f0e828d8.js +1 -0
- package/dist/vega/p-f2b0b58a.js +1 -0
- package/dist/vega/p-f3e6483c.js +1 -0
- package/dist/vega/p-f428086c.entry.js +1 -0
- package/dist/vega/p-fc9ac6e9.entry.js +1 -0
- package/dist/vega/p-ffd48e37.entry.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +3 -9
- package/dist/cjs/_commonjsHelpers-537d719a.js +0 -20
- package/dist/cjs/language-extension-8c4a56ff.js +0 -210
- package/dist/cjs/legend-input-processor-27c65353.js +0 -4759
- package/dist/cjs/sanitize-fb222510.js +0 -131
- package/dist/cjs/wait-for-vega-handler-5469ff80.js +0 -63
- package/dist/cjs/y-axis-input-processor-9fbfd5e7.js +0 -2302
- 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-29bf8acd.js +0 -207
- package/dist/esm/legend-input-processor-5ecae3a7.js +0 -4742
- package/dist/esm/sanitize-fd0cb40d.js +0 -129
- package/dist/esm/wait-for-vega-handler-c2c07ac3.js +0 -61
- package/dist/esm/y-axis-input-processor-bc54314a.js +0 -2290
- package/dist/types/utils/sanitize.d.ts +0 -71
- package/dist/vega/p-011b94b1.entry.js +0 -1
- package/dist/vega/p-012753b5.entry.js +0 -1
- package/dist/vega/p-024331ce.entry.js +0 -1
- package/dist/vega/p-08a90cc6.entry.js +0 -1
- package/dist/vega/p-0bb3be0b.entry.js +0 -1
- package/dist/vega/p-0ede1fea.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-3353b3d7.js +0 -1
- package/dist/vega/p-365b1b35.entry.js +0 -1
- package/dist/vega/p-3ae9ee3d.entry.js +0 -1
- package/dist/vega/p-3af92370.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-3e5f362f.js +0 -1
- package/dist/vega/p-430be941.js +0 -1
- package/dist/vega/p-43f585f7.entry.js +0 -1
- package/dist/vega/p-45296fd4.entry.js +0 -1
- package/dist/vega/p-46b077d9.js +0 -1
- package/dist/vega/p-476a173a.js +0 -1
- package/dist/vega/p-491618a6.entry.js +0 -1
- package/dist/vega/p-4a537391.entry.js +0 -1
- package/dist/vega/p-4aa893ef.entry.js +0 -1
- package/dist/vega/p-4c47e8bb.entry.js +0 -1
- package/dist/vega/p-4da75f2b.js +0 -1
- package/dist/vega/p-509eb52e.entry.js +0 -1
- package/dist/vega/p-5110ba73.entry.js +0 -1
- package/dist/vega/p-556f9a21.entry.js +0 -1
- package/dist/vega/p-55b54ba0.entry.js +0 -1
- package/dist/vega/p-5910be31.entry.js +0 -1
- package/dist/vega/p-5d676a94.js +0 -1
- package/dist/vega/p-5ea2e43c.entry.js +0 -1
- package/dist/vega/p-5efc6fe1.entry.js +0 -1
- package/dist/vega/p-64cd1931.entry.js +0 -1
- package/dist/vega/p-67fcf6f2.entry.js +0 -9
- package/dist/vega/p-68df4288.js +0 -1
- 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-6fa8e231.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-749f96a4.js +0 -1
- package/dist/vega/p-7aaece55.entry.js +0 -1
- package/dist/vega/p-7ec6a104.entry.js +0 -1
- package/dist/vega/p-81134e9e.entry.js +0 -1
- package/dist/vega/p-89d685a8.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-8d701832.entry.js +0 -1
- package/dist/vega/p-8e42a14c.entry.js +0 -1
- package/dist/vega/p-8ed0faa2.entry.js +0 -1
- package/dist/vega/p-94394df7.entry.js +0 -1
- package/dist/vega/p-99aa554b.entry.js +0 -1
- package/dist/vega/p-9a2446f1.entry.js +0 -1
- package/dist/vega/p-9fd503e9.entry.js +0 -1
- package/dist/vega/p-a4670e23.js +0 -1
- package/dist/vega/p-a475d525.entry.js +0 -1
- package/dist/vega/p-a530797f.entry.js +0 -1
- package/dist/vega/p-a85ad369.entry.js +0 -1
- package/dist/vega/p-ac5e9955.entry.js +0 -1
- package/dist/vega/p-aedf7146.js +0 -1
- package/dist/vega/p-b1f869fb.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-be23bef2.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-c2488ed6.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-cf5b80f9.entry.js +0 -1
- package/dist/vega/p-db60a38e.entry.js +0 -1
- package/dist/vega/p-db8cdba6.js +0 -1
- package/dist/vega/p-e93545fd.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-ec192283.entry.js +0 -1
- package/dist/vega/p-ef9cbad1.js +0 -1
- package/dist/vega/p-f2a3a1ec.entry.js +0 -1
- package/dist/vega/p-f2cdd212.entry.js +0 -1
- package/dist/vega/p-f3c3ff26.entry.js +0 -1
- package/dist/vega/p-f4c05b4a.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-f8641214.entry.js +0 -1
- package/dist/vega/p-f89443aa.entry.js +0 -1
- package/dist/vega/p-f8f7cf48.entry.js +0 -1
- package/dist/vega/p-fe12eff6.js +0 -1
- /package/dist/{types/utils/test/sanitize.test.d.ts → collection/polyfill/prism/types.js} +0 -0
- /package/dist/vega/{p-d9671d27.js → p-6c170474.js} +0 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* D3 Selection Polyfill - A lightweight DOM selection and manipulation utility.
|
|
3
|
+
*
|
|
4
|
+
* This is a drop-in replacement for d3-selection, implementing only the methods
|
|
5
|
+
* used in the Vega chart rendering system.
|
|
6
|
+
*
|
|
7
|
+
* Supported methods: select, selectAll, append, attr, property, text, datum,
|
|
8
|
+
* call, node, nodes, each, remove, clone, transition, duration.
|
|
9
|
+
*
|
|
10
|
+
* @see VD-5022 - [Zero Dependencies] remove d3 dependency
|
|
11
|
+
*/
|
|
12
|
+
declare type SelectionCallback<GElement, Datum> = (this: GElement, d?: Datum, i?: number, nodes?: GElement[]) => any;
|
|
13
|
+
/**
|
|
14
|
+
* A lightweight selection class mimicking d3-selection's chainable API.
|
|
15
|
+
* Wraps an array of DOM elements and provides attribute/property/child manipulation.
|
|
16
|
+
*/
|
|
17
|
+
export declare class D3SelectionPolyfill<GElement extends Element = Element, Datum = unknown, PElement extends Element = Element, PDatum = unknown> {
|
|
18
|
+
private _groups;
|
|
19
|
+
private _datum;
|
|
20
|
+
/**
|
|
21
|
+
* @param {Element[]} elements - Array of DOM elements to wrap.
|
|
22
|
+
* @param {*} [datum] - Optional bound datum for the selection.
|
|
23
|
+
*/
|
|
24
|
+
constructor(elements: GElement[], datum?: Datum);
|
|
25
|
+
/**
|
|
26
|
+
* Selects the first descendant element matching the selector.
|
|
27
|
+
*
|
|
28
|
+
* @template DescElement
|
|
29
|
+
* @template Datum
|
|
30
|
+
* @template GElement
|
|
31
|
+
* @param {string} selector - CSS selector string.
|
|
32
|
+
* @returns {D3SelectionPolyfill<DescElement, Datum, GElement, Datum>} A new selection wrapping the matched element.
|
|
33
|
+
*/
|
|
34
|
+
select<DescElement extends Element = Element>(selector: string): D3SelectionPolyfill<DescElement, Datum, GElement, Datum>;
|
|
35
|
+
/**
|
|
36
|
+
* Selects all descendant elements matching the selector.
|
|
37
|
+
*
|
|
38
|
+
* @template DescElement
|
|
39
|
+
* @template NewDatum
|
|
40
|
+
* @template GElement
|
|
41
|
+
* @template Datum
|
|
42
|
+
* @param {string} selector - CSS selector string.
|
|
43
|
+
* @returns {D3SelectionPolyfill<DescElement, NewDatum, GElement, Datum>} A new selection wrapping all matched elements.
|
|
44
|
+
*/
|
|
45
|
+
selectAll<DescElement extends Element = Element, NewDatum = unknown>(selector: string): D3SelectionPolyfill<DescElement, NewDatum, GElement, Datum>;
|
|
46
|
+
/**
|
|
47
|
+
* Appends a new child element to each element in the selection.
|
|
48
|
+
* Accepts either a tag name string or a factory function that returns a DOM element.
|
|
49
|
+
*
|
|
50
|
+
* @template ChildElement
|
|
51
|
+
* @template Datum
|
|
52
|
+
* @template GElement
|
|
53
|
+
* @param {string | Function} tagOrFactory - Tag name (e.g. 'g', 'path') or a factory function.
|
|
54
|
+
* @returns {D3SelectionPolyfill<ChildElement, Datum, GElement, Datum>} A new selection wrapping the appended elements.
|
|
55
|
+
*/
|
|
56
|
+
append<ChildElement extends Element = Element>(tagOrFactory: string | (() => ChildElement)): D3SelectionPolyfill<ChildElement, Datum, GElement, Datum>;
|
|
57
|
+
/**
|
|
58
|
+
* Sets or gets an attribute on each element.
|
|
59
|
+
* If value is a function, it is called with the bound datum.
|
|
60
|
+
*
|
|
61
|
+
* @param {...*} args - Attribute name, and optionally a value or function returning a value.
|
|
62
|
+
* @returns {any} This selection for chaining, or the attribute value if getting.
|
|
63
|
+
*/
|
|
64
|
+
attr(...args: any[]): any;
|
|
65
|
+
/**
|
|
66
|
+
* Sets a JavaScript property on each element.
|
|
67
|
+
*
|
|
68
|
+
* @param {string} name - Property name.
|
|
69
|
+
* @param {unknown} value - Property value.
|
|
70
|
+
* @returns {this} This selection for chaining.
|
|
71
|
+
*/
|
|
72
|
+
property(name: string, value: unknown): this;
|
|
73
|
+
/**
|
|
74
|
+
* Sets the text content of each element.
|
|
75
|
+
*
|
|
76
|
+
* @param {string} value - Text content string.
|
|
77
|
+
* @returns {this} This selection for chaining.
|
|
78
|
+
*/
|
|
79
|
+
text(value: string): this;
|
|
80
|
+
/**
|
|
81
|
+
* Binds a datum to the selection.
|
|
82
|
+
*
|
|
83
|
+
* @template NewDatum
|
|
84
|
+
* @template GElement
|
|
85
|
+
* @template PElement
|
|
86
|
+
* @template PDatum
|
|
87
|
+
* @param {*} data - The datum to bind.
|
|
88
|
+
* @returns {D3SelectionPolyfill<GElement, NewDatum, PElement, PDatum>} A new selection with the bound datum.
|
|
89
|
+
*/
|
|
90
|
+
datum<NewDatum>(data: NewDatum): D3SelectionPolyfill<GElement, NewDatum, PElement, PDatum>;
|
|
91
|
+
/**
|
|
92
|
+
* Calls a function with this selection as argument. Used for grouping operations.
|
|
93
|
+
*
|
|
94
|
+
* @param {Function} fn - Function to call.
|
|
95
|
+
* @param {...*} args - Additional arguments.
|
|
96
|
+
* @returns {this} This selection for chaining.
|
|
97
|
+
*/
|
|
98
|
+
call(fn: (selection: this, ...args: any[]) => void, ...args: any[]): this;
|
|
99
|
+
/**
|
|
100
|
+
* Returns the first DOM node in the selection, or null.
|
|
101
|
+
*
|
|
102
|
+
* @template GElement
|
|
103
|
+
* @returns {GElement | null} The first element or null.
|
|
104
|
+
*/
|
|
105
|
+
node(): GElement | null;
|
|
106
|
+
/**
|
|
107
|
+
* Returns all DOM nodes in the selection as an array.
|
|
108
|
+
*
|
|
109
|
+
* @template GElement
|
|
110
|
+
* @returns {GElement[]} Array of elements.
|
|
111
|
+
*/
|
|
112
|
+
nodes(): GElement[];
|
|
113
|
+
/**
|
|
114
|
+
* Iterates over each element, calling the provided function.
|
|
115
|
+
* The function is called with `this` set to the current DOM element.
|
|
116
|
+
*
|
|
117
|
+
* @param {Function} fn - Callback function.
|
|
118
|
+
* @returns {this} This selection for chaining.
|
|
119
|
+
*/
|
|
120
|
+
each(fn: SelectionCallback<GElement, Datum>): this;
|
|
121
|
+
/**
|
|
122
|
+
* Removes all elements in the selection from the DOM.
|
|
123
|
+
*
|
|
124
|
+
* @returns {this} This selection for chaining.
|
|
125
|
+
*/
|
|
126
|
+
remove(): this;
|
|
127
|
+
/**
|
|
128
|
+
* Clones each element in the selection (shallow clone) and inserts after the original.
|
|
129
|
+
*
|
|
130
|
+
* @template GElement
|
|
131
|
+
* @template Datum
|
|
132
|
+
* @template PElement
|
|
133
|
+
* @template PDatum
|
|
134
|
+
* @returns {D3SelectionPolyfill<GElement, Datum, PElement, PDatum>} A new selection wrapping the cloned elements.
|
|
135
|
+
*/
|
|
136
|
+
clone(): D3SelectionPolyfill<GElement, Datum, PElement, PDatum>;
|
|
137
|
+
/**
|
|
138
|
+
* Creates a transition-like object. This is a simplified polyfill that
|
|
139
|
+
* applies attribute changes immediately (no actual animation), which is
|
|
140
|
+
* sufficient for Vega's usage of hover path swapping.
|
|
141
|
+
*
|
|
142
|
+
* @param {*} [_name] - Transition name (ignored in polyfill).
|
|
143
|
+
* @returns {this} This selection for chaining (acts as a no-op).
|
|
144
|
+
*/
|
|
145
|
+
transition(_name?: unknown): this;
|
|
146
|
+
/**
|
|
147
|
+
* Sets the transition duration. No-op in this polyfill since
|
|
148
|
+
* transitions are applied immediately.
|
|
149
|
+
*
|
|
150
|
+
* @param {number} _ms - Duration in milliseconds (ignored).
|
|
151
|
+
* @returns {this} This selection for chaining.
|
|
152
|
+
*/
|
|
153
|
+
duration(_ms: number): this;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Selects a DOM element by wrapping it in a D3SelectionPolyfill.
|
|
157
|
+
* Mimics d3.select().
|
|
158
|
+
*
|
|
159
|
+
* @template GElement
|
|
160
|
+
* @param {Element | EventTarget} element - A DOM element or EventTarget to wrap.
|
|
161
|
+
* @returns {D3SelectionPolyfill<GElement>} A new D3SelectionPolyfill wrapping the element.
|
|
162
|
+
*/
|
|
163
|
+
export declare function select<GElement extends Element = Element>(element: GElement | EventTarget): D3SelectionPolyfill<GElement>;
|
|
164
|
+
/**
|
|
165
|
+
* Creates a detached SVG element (e.g., 'svg:text', 'svg:circle', 'svg:path').
|
|
166
|
+
* Mimics d3.create().
|
|
167
|
+
*
|
|
168
|
+
* @template GElement
|
|
169
|
+
* @param {string} qualifiedName - A qualified name like 'svg:text' or 'svg:circle'.
|
|
170
|
+
* @returns {D3SelectionPolyfill<GElement>} A new D3SelectionPolyfill wrapping the created element.
|
|
171
|
+
*/
|
|
172
|
+
export declare function create<GElement extends Element = Element>(qualifiedName: string): D3SelectionPolyfill<GElement>;
|
|
173
|
+
export {};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* D3 Shape Polyfill - Lightweight SVG shape generators.
|
|
3
|
+
*
|
|
4
|
+
* This is a drop-in replacement for d3-shape, implementing only the methods
|
|
5
|
+
* used in the Vega chart rendering system: line, arc, and pie.
|
|
6
|
+
*
|
|
7
|
+
* @see VD-5022 - [Zero Dependencies] remove d3 dependency
|
|
8
|
+
*/
|
|
9
|
+
declare type LineAccessor<T> = (d: T, i?: number) => number;
|
|
10
|
+
/**
|
|
11
|
+
* A line generator that creates SVG path data strings from data arrays.
|
|
12
|
+
* Mimics d3.line() with .x() and .y() value extractors.
|
|
13
|
+
*/
|
|
14
|
+
declare class LineGenerator<T> {
|
|
15
|
+
/**
|
|
16
|
+
* Sets the x accessor function.
|
|
17
|
+
*
|
|
18
|
+
* @param accessor - Function that returns the x value for a datum.
|
|
19
|
+
* @returns This generator for chaining.
|
|
20
|
+
*/
|
|
21
|
+
x(accessor: LineAccessor<T>): this;
|
|
22
|
+
/**
|
|
23
|
+
* Sets the y accessor function.
|
|
24
|
+
*
|
|
25
|
+
* @param accessor - Function that returns the y value for a datum.
|
|
26
|
+
* @returns This generator for chaining.
|
|
27
|
+
*/
|
|
28
|
+
y(accessor: LineAccessor<T>): this;
|
|
29
|
+
/**
|
|
30
|
+
* Generates an SVG path data string for the given data.
|
|
31
|
+
* Called as a function (used by d3's attr('d', lineGenerator)).
|
|
32
|
+
*
|
|
33
|
+
* @param data - Array of data points.
|
|
34
|
+
* @returns SVG path data string (M...L...L...).
|
|
35
|
+
*/
|
|
36
|
+
generate(data: T[]): string;
|
|
37
|
+
/** Default x value extractor: reads `.x` property or first array index. */
|
|
38
|
+
private xAccessor;
|
|
39
|
+
/** Default y value extractor: reads `.y` property or second array index. */
|
|
40
|
+
private yAccessor;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Creates a line generator. Mimics d3.line<T>().
|
|
44
|
+
* The returned object is also callable as a function for d3 compatibility.
|
|
45
|
+
*
|
|
46
|
+
* @returns A new LineGenerator with callable function interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function line<T = [number, number]>(): LineGenerator<T> & ((data: T[]) => string);
|
|
49
|
+
/**
|
|
50
|
+
* An arc generator that creates SVG path data strings for arc/pie slices.
|
|
51
|
+
* Mimics d3.arc<T>() with .innerRadius() and .outerRadius() value setters.
|
|
52
|
+
*/
|
|
53
|
+
declare class ArcGenerator<T> {
|
|
54
|
+
/** Inner radius value for the arc. */
|
|
55
|
+
private innerRadiusValue;
|
|
56
|
+
/** Outer radius value for the arc. */
|
|
57
|
+
private outerRadiusValue;
|
|
58
|
+
/**
|
|
59
|
+
* Sets the inner radius for the arc.
|
|
60
|
+
*
|
|
61
|
+
* @param radius - Inner radius value.
|
|
62
|
+
* @returns This generator for chaining.
|
|
63
|
+
*/
|
|
64
|
+
innerRadius(radius: number): this;
|
|
65
|
+
/**
|
|
66
|
+
* Sets the outer radius for the arc.
|
|
67
|
+
*
|
|
68
|
+
* @param radius - Outer radius value.
|
|
69
|
+
* @returns This generator for chaining.
|
|
70
|
+
*/
|
|
71
|
+
outerRadius(radius: number): this;
|
|
72
|
+
/**
|
|
73
|
+
* Generates an SVG path data string for an arc datum.
|
|
74
|
+
* The datum must have startAngle and endAngle properties (in angle units).
|
|
75
|
+
*
|
|
76
|
+
* @param d - Arc datum with startAngle and endAngle.
|
|
77
|
+
* @returns SVG path data string for the arc.
|
|
78
|
+
*/
|
|
79
|
+
generate(d: T): string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Creates an arc generator. Mimics d3.arc<T>().
|
|
83
|
+
* The returned object is also callable as a function for d3 compatibility.
|
|
84
|
+
*
|
|
85
|
+
* @returns A new ArcGenerator with callable function interface.
|
|
86
|
+
*/
|
|
87
|
+
export declare function arc<T>(): ArcGenerator<T> & ((d: T) => string);
|
|
88
|
+
/**
|
|
89
|
+
* A pie arc datum produced by the pie generator.
|
|
90
|
+
*/
|
|
91
|
+
export declare type PieArcDatum<T> = {
|
|
92
|
+
data: T;
|
|
93
|
+
index: number;
|
|
94
|
+
value: number;
|
|
95
|
+
startAngle: number;
|
|
96
|
+
endAngle: number;
|
|
97
|
+
padAngle: number;
|
|
98
|
+
};
|
|
99
|
+
declare type PieValueAccessor<T> = (d: T) => number;
|
|
100
|
+
/**
|
|
101
|
+
* A pie layout generator that computes start/end angles for data items.
|
|
102
|
+
* Mimics d3.pie<T>() with .value() setter.
|
|
103
|
+
*/
|
|
104
|
+
declare class PieGenerator<T> {
|
|
105
|
+
/**
|
|
106
|
+
* Sets the value accessor function.
|
|
107
|
+
*
|
|
108
|
+
* @param accessor - Function that returns the numeric value for each datum.
|
|
109
|
+
* @returns This generator for chaining.
|
|
110
|
+
*/
|
|
111
|
+
value(accessor: PieValueAccessor<T>): this & ((data: T[]) => PieArcDatum<T>[]);
|
|
112
|
+
/**
|
|
113
|
+
* Computes pie arc data from the input data array.
|
|
114
|
+
*
|
|
115
|
+
* @param data - Array of data items.
|
|
116
|
+
* @returns Array of PieArcDatum with computed angles.
|
|
117
|
+
*/
|
|
118
|
+
generate(data: T[]): PieArcDatum<T>[];
|
|
119
|
+
/** Default value extractor: reads `.value` property or falls back to 0. */
|
|
120
|
+
private valueAccessor;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Creates a pie layout generator. Mimics d3.pie<T>().
|
|
124
|
+
* The returned object is also callable as a function for d3 compatibility.
|
|
125
|
+
*
|
|
126
|
+
* @returns A new PieGenerator with callable function interface.
|
|
127
|
+
*/
|
|
128
|
+
export declare function pie<T>(): PieGenerator<T> & ((data: T[]) => PieArcDatum<T>[]);
|
|
129
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* D3 Time Format Polyfill - Lightweight date formatting and parsing.
|
|
3
|
+
*
|
|
4
|
+
* This is a drop-in replacement for d3-time-format, implementing only the methods
|
|
5
|
+
* used in the Vega chart rendering system: timeFormat and timeParse.
|
|
6
|
+
*
|
|
7
|
+
* @see VD-5022 - [Zero Dependencies] remove d3 dependency
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Creates a date formatter function for the given specifier.
|
|
11
|
+
* Mimics d3.timeFormat().
|
|
12
|
+
*
|
|
13
|
+
* Supported directives: %Y, %m, %d, %H, %I, %M, %S, %L, %b, %B, %a, %p, %%
|
|
14
|
+
*
|
|
15
|
+
* @param {string} specifier - Format specifier string (e.g., '%Y-%m-%d', '.%L', ':%S').
|
|
16
|
+
* @returns {Function} A function that formats a Date into a string.
|
|
17
|
+
*/
|
|
18
|
+
export declare function timeFormat(specifier: string): (date: Date) => string;
|
|
19
|
+
/**
|
|
20
|
+
* Creates a date parser function for the given specifier.
|
|
21
|
+
* Mimics d3.timeParse().
|
|
22
|
+
*
|
|
23
|
+
* Supported directives: %Y, %m, %d, %H, %I, %M, %S, %L
|
|
24
|
+
*
|
|
25
|
+
* @param {string} specifier - Parse specifier string (e.g., '%Y-%m-%d').
|
|
26
|
+
* @returns {Function} A function that parses a string into a Date, or null on failure.
|
|
27
|
+
*/
|
|
28
|
+
export declare function timeParse(specifier: string): (dateString: string) => Date | null;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* D3 Time Polyfill - Lightweight time interval functions.
|
|
3
|
+
*
|
|
4
|
+
* This is a drop-in replacement for d3-time, implementing only the time interval
|
|
5
|
+
* floor functions used in the Vega chart time axis label formatter:
|
|
6
|
+
* timeSecond, timeMinute, timeHour, timeDay, timeWeek, timeMonth, timeYear.
|
|
7
|
+
*
|
|
8
|
+
* Each function floors a Date to the nearest interval boundary, which is used
|
|
9
|
+
* to determine the appropriate label granularity for time-series chart axes.
|
|
10
|
+
*
|
|
11
|
+
* @see VD-5022 - [Zero Dependencies] remove d3 dependency
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Floors a date to the nearest second boundary.
|
|
15
|
+
* Used to detect sub-second (millisecond) granularity.
|
|
16
|
+
*
|
|
17
|
+
* @param {Date} date - Input date.
|
|
18
|
+
* @returns {Date} A new Date floored to the nearest second.
|
|
19
|
+
*/
|
|
20
|
+
export declare function timeSecond(date: Date): Date;
|
|
21
|
+
/**
|
|
22
|
+
* Floors a date to the nearest minute boundary.
|
|
23
|
+
* Used to detect sub-minute (second) granularity.
|
|
24
|
+
*
|
|
25
|
+
* @param {Date} date - Input date.
|
|
26
|
+
* @returns {Date} A new Date floored to the nearest minute.
|
|
27
|
+
*/
|
|
28
|
+
export declare function timeMinute(date: Date): Date;
|
|
29
|
+
/**
|
|
30
|
+
* Floors a date to the nearest hour boundary.
|
|
31
|
+
* Used to detect sub-hour (minute) granularity.
|
|
32
|
+
*
|
|
33
|
+
* @param {Date} date - Input date.
|
|
34
|
+
* @returns {Date} A new Date floored to the nearest hour.
|
|
35
|
+
*/
|
|
36
|
+
export declare function timeHour(date: Date): Date;
|
|
37
|
+
/**
|
|
38
|
+
* Floors a date to the start of the day (midnight).
|
|
39
|
+
* Used to detect sub-day (hour) granularity.
|
|
40
|
+
*
|
|
41
|
+
* @param {Date} date - Input date.
|
|
42
|
+
* @returns {Date} A new Date floored to midnight.
|
|
43
|
+
*/
|
|
44
|
+
export declare function timeDay(date: Date): Date;
|
|
45
|
+
/**
|
|
46
|
+
* Floors a date to the start of the week (Sunday).
|
|
47
|
+
* Used to distinguish day vs week label granularity.
|
|
48
|
+
*
|
|
49
|
+
* @param {Date} date - Input date.
|
|
50
|
+
* @returns {Date} A new Date floored to the start of the week (Sunday at midnight).
|
|
51
|
+
*/
|
|
52
|
+
export declare function timeWeek(date: Date): Date;
|
|
53
|
+
/**
|
|
54
|
+
* Floors a date to the first of the month.
|
|
55
|
+
* Used to detect sub-month granularity.
|
|
56
|
+
*
|
|
57
|
+
* @param {Date} date - Input date.
|
|
58
|
+
* @returns {Date} A new Date floored to the 1st of the month at midnight.
|
|
59
|
+
*/
|
|
60
|
+
export declare function timeMonth(date: Date): Date;
|
|
61
|
+
/**
|
|
62
|
+
* Floors a date to January 1st of the year.
|
|
63
|
+
* Used to detect sub-year (month) granularity.
|
|
64
|
+
*
|
|
65
|
+
* @param {Date} date - Input date.
|
|
66
|
+
* @returns {Date} A new Date floored to January 1st at midnight.
|
|
67
|
+
*/
|
|
68
|
+
export declare function timeYear(date: Date): Date;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* D3 Polyfill - A lightweight drop-in replacement for the d3 library.
|
|
3
|
+
*
|
|
4
|
+
* This module re-exports only the d3 functions and types used by the Vega
|
|
5
|
+
* chart rendering system, implemented without any external dependencies.
|
|
6
|
+
*
|
|
7
|
+
* Replaces the following d3 sub-packages:
|
|
8
|
+
* - d3-selection: select, create
|
|
9
|
+
* - d3-shape: line, arc, pie
|
|
10
|
+
* - d3-scale: scaleLinear, scaleTime, scaleBand
|
|
11
|
+
* - d3-axis: axisBottom, axisLeft, AxisDomain, AxisScale, Axis
|
|
12
|
+
* - d3-array: min, max, extent, map
|
|
13
|
+
* - d3-time-format: timeFormat, timeParse
|
|
14
|
+
* - d3-time: timeSecond, timeMinute, timeHour, timeDay, timeWeek, timeMonth, timeYear
|
|
15
|
+
*
|
|
16
|
+
* @see VD-5022 - [Zero Dependencies] remove d3 dependency
|
|
17
|
+
*/
|
|
18
|
+
export { select, create, D3SelectionPolyfill } from './d3-selection-polyfill';
|
|
19
|
+
export { line, arc, pie } from './d3-shape-polyfill';
|
|
20
|
+
export type { PieArcDatum } from './d3-shape-polyfill';
|
|
21
|
+
export { scaleLinear, scaleTime, scaleBand } from './d3-scale-polyfill';
|
|
22
|
+
export { axisBottom, axisLeft } from './d3-axis-polyfill';
|
|
23
|
+
export type { AxisDomain, AxisScale, Axis } from './d3-axis-polyfill';
|
|
24
|
+
export { min, max, extent, map } from './d3-array-polyfill';
|
|
25
|
+
export { timeFormat, timeParse } from './d3-time-format-polyfill';
|
|
26
|
+
export { timeSecond, timeMinute, timeHour, timeDay, timeWeek, timeMonth, timeYear } from './d3-time-polyfill';
|
|
27
|
+
export declare type Selection<GElement extends Element, Datum, PElement extends Element, PDatum> = import('./d3-selection-polyfill').D3SelectionPolyfill<GElement, Datum, PElement, PDatum>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Progressive as-you-type phone number formatter for the libphonenumber polyfill.
|
|
3
|
+
*/
|
|
4
|
+
import type { VegaCountryCode } from '../../types/flag.type';
|
|
5
|
+
/**
|
|
6
|
+
* Format a possibly-incomplete phone number for display.
|
|
7
|
+
*
|
|
8
|
+
* Internally uses AsYouType to produce correct progressive formatting.
|
|
9
|
+
*
|
|
10
|
+
* @param {string} number - the raw phone number string to format
|
|
11
|
+
* @param {VegaCountryCode} [country] - optional default country code
|
|
12
|
+
* @returns {string} the formatted incomplete phone number
|
|
13
|
+
* @example formatIncompletePhoneNumber('3023334444', 'US') // '(302) 333-4444'
|
|
14
|
+
* @example formatIncompletePhoneNumber('+13023334444') // '+1 302 333 4444'
|
|
15
|
+
*/
|
|
16
|
+
export declare function formatIncompletePhoneNumber(number: string, country?: VegaCountryCode): string;
|
|
17
|
+
/**
|
|
18
|
+
* Progressive phone number formatter.
|
|
19
|
+
*
|
|
20
|
+
* Internally uses template-based formatting matching libphonenumber-js.
|
|
21
|
+
*/
|
|
22
|
+
export declare class AsYouType {
|
|
23
|
+
private _country;
|
|
24
|
+
private _allDigits;
|
|
25
|
+
private _hasPlus;
|
|
26
|
+
private _callingCode;
|
|
27
|
+
private _nationalNumber;
|
|
28
|
+
private _matchingFormats;
|
|
29
|
+
private _chosenFormat;
|
|
30
|
+
private _populatedTemplate;
|
|
31
|
+
private _populatedPosition;
|
|
32
|
+
/**
|
|
33
|
+
* Stores a complex prefix (e.g. national prefix captured groups) that was
|
|
34
|
+
* stripped from the national number. This prefix is re-prepended when
|
|
35
|
+
* producing output. Mirrors `complexPrefixBeforeNationalSignificantNumber`
|
|
36
|
+
* in the original library.
|
|
37
|
+
*/
|
|
38
|
+
private _complexPrefix;
|
|
39
|
+
constructor(defaultCountry?: VegaCountryCode);
|
|
40
|
+
/**
|
|
41
|
+
* The currently detected country.
|
|
42
|
+
*
|
|
43
|
+
* @returns {VegaCountryCode | undefined} the detected country code or undefined
|
|
44
|
+
*/
|
|
45
|
+
get country(): VegaCountryCode | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Feed characters into the formatter. Returns the formatted number so far.
|
|
48
|
+
*
|
|
49
|
+
* The original library processes one digit at a time, running narrow-down
|
|
50
|
+
* and format logic after each digit. This is critical because formats may
|
|
51
|
+
* be eliminated at intermediate digit counts, triggering national-prefix
|
|
52
|
+
* re-extraction that changes the output structure. We replicate that
|
|
53
|
+
* behavior here by looping over each digit individually.
|
|
54
|
+
*
|
|
55
|
+
* @param {string} text - the raw input characters to process
|
|
56
|
+
* @returns {string} the formatted phone number so far
|
|
57
|
+
*/
|
|
58
|
+
input(text: string): string;
|
|
59
|
+
/**
|
|
60
|
+
* Update internal state after a new digit is added.
|
|
61
|
+
* Detects calling code and country for international numbers,
|
|
62
|
+
* or keeps the full digit string as the national number in national mode.
|
|
63
|
+
*
|
|
64
|
+
* @returns {void}
|
|
65
|
+
*/
|
|
66
|
+
private updateState;
|
|
67
|
+
/**
|
|
68
|
+
* Initialize the list of candidate format rules for a given country.
|
|
69
|
+
* Filters out formats that alter the number or do not suit the current mode.
|
|
70
|
+
*
|
|
71
|
+
* @param {VegaCountryCode} country - the country whose formats to load
|
|
72
|
+
* @returns {void}
|
|
73
|
+
*/
|
|
74
|
+
private initFormats;
|
|
75
|
+
/**
|
|
76
|
+
* Narrow down matching formats based on the leading digits of the national number.
|
|
77
|
+
* Removes formats that no longer match and resets the chosen format if it was eliminated.
|
|
78
|
+
*
|
|
79
|
+
* @returns {void}
|
|
80
|
+
*/
|
|
81
|
+
private narrowDownFormats;
|
|
82
|
+
/**
|
|
83
|
+
* Attempt to format the national number after a new digit is added.
|
|
84
|
+
* Tries complete formatting first, then template-based, then chooses a new format.
|
|
85
|
+
*
|
|
86
|
+
* @param {string} newDigits - the newly added digit characters
|
|
87
|
+
* @returns {string | undefined} the formatted national number or undefined if no format applies
|
|
88
|
+
*/
|
|
89
|
+
private formatDigit;
|
|
90
|
+
/**
|
|
91
|
+
* Try to format the national number as a complete number using the matching format rules.
|
|
92
|
+
* Only attempts formatting when the number length is a possible length for the country.
|
|
93
|
+
*
|
|
94
|
+
* @returns {string | undefined} the formatted number if a complete match is found, or undefined
|
|
95
|
+
*/
|
|
96
|
+
private tryFormatComplete;
|
|
97
|
+
/**
|
|
98
|
+
* Choose a new format from the remaining candidates and apply it to the national number.
|
|
99
|
+
* Builds a template for each candidate and returns the formatted result on first match.
|
|
100
|
+
*
|
|
101
|
+
* @returns {string | undefined} the formatted national number or undefined if no format matches
|
|
102
|
+
*/
|
|
103
|
+
private chooseFormatAndApply;
|
|
104
|
+
/**
|
|
105
|
+
* Insert digits into the current populated template one at a time.
|
|
106
|
+
* Replaces placeholder characters with the actual digits.
|
|
107
|
+
*
|
|
108
|
+
* @param {string} digits - the digit characters to insert into the template
|
|
109
|
+
* @returns {string | undefined} the partially formatted string or undefined if the template is exhausted
|
|
110
|
+
*/
|
|
111
|
+
private formatNextDigits;
|
|
112
|
+
/**
|
|
113
|
+
* Fill an entire template string with the given digits.
|
|
114
|
+
* Used to synchronize the template state after a complete format match.
|
|
115
|
+
*
|
|
116
|
+
* @param {string} template - the format template containing digit placeholders
|
|
117
|
+
* @param {string} digits - the digit characters to populate the template with
|
|
118
|
+
* @returns {PopulatedTemplateResult | undefined} the filled template and last position, or undefined if the template ran out of placeholders
|
|
119
|
+
*/
|
|
120
|
+
private populateTemplateFull;
|
|
121
|
+
/**
|
|
122
|
+
* Reset the chosen format, populated template, and position to their initial values.
|
|
123
|
+
*
|
|
124
|
+
* @returns {void}
|
|
125
|
+
*/
|
|
126
|
+
private resetFormat;
|
|
127
|
+
/**
|
|
128
|
+
* Try to extract a national prefix from the current national number.
|
|
129
|
+
* Uses the country's `nationalPrefixForParsing` pattern (metadata index [7]).
|
|
130
|
+
*
|
|
131
|
+
* Called proactively on every digit input, mirroring the original library's
|
|
132
|
+
* `reExtractNationalSignificantNumber`. When extraction first succeeds
|
|
133
|
+
* (or the extracted prefix changes), formats are re-initialized so that
|
|
134
|
+
* only formats appropriate for the shorter national number remain.
|
|
135
|
+
*
|
|
136
|
+
* @returns {void}
|
|
137
|
+
*/
|
|
138
|
+
private tryReExtractNationalPrefix;
|
|
139
|
+
/**
|
|
140
|
+
* Build the full output string by prepending the calling code or complex prefix
|
|
141
|
+
* to the formatted national number.
|
|
142
|
+
*
|
|
143
|
+
* @param {string} formattedNational - the formatted national number portion
|
|
144
|
+
* @returns {string} the complete formatted phone number with prefix
|
|
145
|
+
*/
|
|
146
|
+
private getFullOutput;
|
|
147
|
+
/**
|
|
148
|
+
* Produce a fallback output when no format template matches.
|
|
149
|
+
* Returns the raw digits with the plus sign or complex prefix if applicable.
|
|
150
|
+
*
|
|
151
|
+
* @returns {string} the non-formatted output string
|
|
152
|
+
*/
|
|
153
|
+
private getNonFormattedOutput;
|
|
154
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Template-based formatting utilities for the libphonenumber polyfill.
|
|
3
|
+
*
|
|
4
|
+
* These helpers replicate the progressive formatting logic used by
|
|
5
|
+
* libphonenumber-js to produce as-you-type output.
|
|
6
|
+
*/
|
|
7
|
+
import type { FormatRule } from './types';
|
|
8
|
+
/**
|
|
9
|
+
* Check whether a format's replacement template only uses captured groups
|
|
10
|
+
* (doesn't insert extra digits). This mirrors NON_ALTERING_FORMAT_REG_EXP
|
|
11
|
+
* in the original library.
|
|
12
|
+
*
|
|
13
|
+
* @param {string} replacement - the replacement string to test
|
|
14
|
+
* @returns {boolean} true if the format is non-altering
|
|
15
|
+
*/
|
|
16
|
+
export declare function isNonAlteringFormat(replacement: string): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a format is suitable given the current formatting context.
|
|
19
|
+
* Mirrors formatSuits() from the original library's AsYouTypeFormatter.
|
|
20
|
+
*
|
|
21
|
+
* @param {FormatRule} formatRule - the format rule to check
|
|
22
|
+
* @param {boolean} international - whether the number is international
|
|
23
|
+
* @param {boolean} nationalPrefix - whether a national prefix is present
|
|
24
|
+
* @returns {boolean} true if the format is suitable
|
|
25
|
+
*/
|
|
26
|
+
export declare function formatSuits(formatRule: FormatRule, international: boolean, nationalPrefix: boolean): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Check whether a format's leading digits match the given national number.
|
|
29
|
+
*
|
|
30
|
+
* @param {FormatRule} formatRule - the format rule to check
|
|
31
|
+
* @param {string} nationalNumber - the national number digits
|
|
32
|
+
* @param {number} leadingDigitsPatternIndex - index into the leading digits patterns
|
|
33
|
+
* @returns {boolean} true if the leading digits match
|
|
34
|
+
*/
|
|
35
|
+
export declare function formatMatchesLeadingDigits(formatRule: FormatRule, nationalNumber: string, leadingDigitsPatternIndex: number): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Build a formatting template for a given format rule and national number.
|
|
38
|
+
*
|
|
39
|
+
* This replicates the template-generation logic from the original library:
|
|
40
|
+
* 1. Generate a dummy number of 9s matching the format pattern.
|
|
41
|
+
* 2. Format it with the replacement template.
|
|
42
|
+
* 3. Replace each 9 with the DIGIT_PLACEHOLDER.
|
|
43
|
+
*
|
|
44
|
+
* @param {FormatRule} formatRule - the format rule to build a template from
|
|
45
|
+
* @param {number} nationalSignificantNumberLength - length of the national significant number
|
|
46
|
+
* @returns {string | undefined} the built template, or undefined if no match
|
|
47
|
+
*/
|
|
48
|
+
export declare function buildTemplate(formatRule: FormatRule, nationalSignificantNumberLength: number): string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Cut a template at a given position, handling closing parentheses.
|
|
51
|
+
* Matches the cut-and-strip logic from the original library.
|
|
52
|
+
*
|
|
53
|
+
* @param {string} str - the template string to cut
|
|
54
|
+
* @param {number} cutBefore - the position to cut before
|
|
55
|
+
* @returns {string} the cut and stripped template
|
|
56
|
+
*/
|
|
57
|
+
export declare function cutAndStripNonPairedParens(str: string, cutBefore: number): string;
|
|
58
|
+
/**
|
|
59
|
+
* Apply international separator style: replace parentheses and dashes with spaces.
|
|
60
|
+
*
|
|
61
|
+
* @param {string} template - the template string to transform
|
|
62
|
+
* @returns {string} the template with international separator style applied
|
|
63
|
+
*/
|
|
64
|
+
export declare function applyInternationalSeparatorStyle(template: string): string;
|