@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,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal libphonenumber-js polyfill
|
|
3
|
+
*
|
|
4
|
+
* This module provides a zero-dependency replacement for the subset of
|
|
5
|
+
* `libphonenumber-js` used by `vega-input-phone-number`.
|
|
6
|
+
*
|
|
7
|
+
* Exported API surface:
|
|
8
|
+
* - getCountryCallingCode(country)
|
|
9
|
+
* - getCountries()
|
|
10
|
+
* - parseIncompletePhoneNumber(text)
|
|
11
|
+
* - formatIncompletePhoneNumber(number, country?)
|
|
12
|
+
* - parsePhoneNumber(text, optionsOrCountry?)
|
|
13
|
+
* - PhoneNumber (class)
|
|
14
|
+
* - AsYouType (class)
|
|
15
|
+
* - PARSE_ERROR_NOT_A_NUMBER (constant)
|
|
16
|
+
* - PARSE_ERROR_INVALID_COUNTRY (constant)
|
|
17
|
+
*/
|
|
18
|
+
export { getCountryCallingCode, getCountries } from './metadata';
|
|
19
|
+
export { parseIncompletePhoneNumber, parsePhoneNumber } from './parse-phone-number';
|
|
20
|
+
export { formatIncompletePhoneNumber, AsYouType } from './as-you-type';
|
|
21
|
+
export { PhoneNumber } from './phone-number';
|
|
22
|
+
export { PARSE_ERROR_NOT_A_NUMBER, PARSE_ERROR_INVALID_COUNTRY } from './types';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { VegaCountryCode } from '../../types/flag.type';
|
|
2
|
+
import type { FormatRule, MetadataJson } from './types';
|
|
3
|
+
export declare const META: MetadataJson;
|
|
4
|
+
/**
|
|
5
|
+
* Return the calling code string for a given country code.
|
|
6
|
+
*
|
|
7
|
+
* @param {VegaCountryCode} country - the country code to look up
|
|
8
|
+
* @returns {string} the calling code for the given country
|
|
9
|
+
* @example getCountryCallingCode('US') // '1'
|
|
10
|
+
*/
|
|
11
|
+
export declare function getCountryCallingCode(country: VegaCountryCode): string;
|
|
12
|
+
/**
|
|
13
|
+
* Return an array of all supported country codes.
|
|
14
|
+
*
|
|
15
|
+
* @returns {VegaCountryCode[]} an array of supported country codes
|
|
16
|
+
*/
|
|
17
|
+
export declare function getCountries(): VegaCountryCode[];
|
|
18
|
+
/**
|
|
19
|
+
* Get the list of format rules for a country. Returns undefined if none.
|
|
20
|
+
*
|
|
21
|
+
* @param {VegaCountryCode} country - the country code to retrieve formats for
|
|
22
|
+
* @returns {FormatRule[] | undefined} the format rules or undefined
|
|
23
|
+
*/
|
|
24
|
+
export declare function getFormats(country: VegaCountryCode): FormatRule[] | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Given digits (without leading +), detect which calling code prefix matches.
|
|
27
|
+
*
|
|
28
|
+
* @param {string} digits - the digit string to detect a calling code from
|
|
29
|
+
* @returns {{ countries: string[] | undefined; callingCode: string | undefined }} the matched countries and calling code
|
|
30
|
+
*/
|
|
31
|
+
export declare function detectCallingCode(digits: string): {
|
|
32
|
+
countries: string[] | undefined;
|
|
33
|
+
callingCode: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Determine the specific country from a set of countries sharing the same
|
|
37
|
+
* calling code, by checking leading digits patterns and validation patterns.
|
|
38
|
+
*
|
|
39
|
+
* Mirrors getCountryByNationalNumber from the original library.
|
|
40
|
+
*
|
|
41
|
+
* @param {string[]} possibleCountries - the candidate country codes
|
|
42
|
+
* @param {string} nationalNumber - the national number to match against
|
|
43
|
+
* @returns {VegaCountryCode | undefined} the matched country or undefined
|
|
44
|
+
*/
|
|
45
|
+
export declare function getCountryByNationalNumber(possibleCountries: string[], nationalNumber: string): VegaCountryCode | undefined;
|
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
version: number;
|
|
3
|
+
countryCallingCode: {
|
|
4
|
+
'1': string[];
|
|
5
|
+
'7': string[];
|
|
6
|
+
'20': string[];
|
|
7
|
+
'27': string[];
|
|
8
|
+
'30': string[];
|
|
9
|
+
'31': string[];
|
|
10
|
+
'32': string[];
|
|
11
|
+
'33': string[];
|
|
12
|
+
'34': string[];
|
|
13
|
+
'36': string[];
|
|
14
|
+
'39': string[];
|
|
15
|
+
'40': string[];
|
|
16
|
+
'41': string[];
|
|
17
|
+
'43': string[];
|
|
18
|
+
'44': string[];
|
|
19
|
+
'45': string[];
|
|
20
|
+
'46': string[];
|
|
21
|
+
'47': string[];
|
|
22
|
+
'48': string[];
|
|
23
|
+
'49': string[];
|
|
24
|
+
'51': string[];
|
|
25
|
+
'52': string[];
|
|
26
|
+
'53': string[];
|
|
27
|
+
'54': string[];
|
|
28
|
+
'55': string[];
|
|
29
|
+
'56': string[];
|
|
30
|
+
'57': string[];
|
|
31
|
+
'58': string[];
|
|
32
|
+
'60': string[];
|
|
33
|
+
'61': string[];
|
|
34
|
+
'62': string[];
|
|
35
|
+
'63': string[];
|
|
36
|
+
'64': string[];
|
|
37
|
+
'65': string[];
|
|
38
|
+
'66': string[];
|
|
39
|
+
'81': string[];
|
|
40
|
+
'82': string[];
|
|
41
|
+
'84': string[];
|
|
42
|
+
'86': string[];
|
|
43
|
+
'90': string[];
|
|
44
|
+
'91': string[];
|
|
45
|
+
'92': string[];
|
|
46
|
+
'93': string[];
|
|
47
|
+
'94': string[];
|
|
48
|
+
'95': string[];
|
|
49
|
+
'98': string[];
|
|
50
|
+
'211': string[];
|
|
51
|
+
'212': string[];
|
|
52
|
+
'213': string[];
|
|
53
|
+
'216': string[];
|
|
54
|
+
'218': string[];
|
|
55
|
+
'220': string[];
|
|
56
|
+
'221': string[];
|
|
57
|
+
'222': string[];
|
|
58
|
+
'223': string[];
|
|
59
|
+
'224': string[];
|
|
60
|
+
'225': string[];
|
|
61
|
+
'226': string[];
|
|
62
|
+
'227': string[];
|
|
63
|
+
'228': string[];
|
|
64
|
+
'229': string[];
|
|
65
|
+
'230': string[];
|
|
66
|
+
'231': string[];
|
|
67
|
+
'232': string[];
|
|
68
|
+
'233': string[];
|
|
69
|
+
'234': string[];
|
|
70
|
+
'235': string[];
|
|
71
|
+
'236': string[];
|
|
72
|
+
'237': string[];
|
|
73
|
+
'238': string[];
|
|
74
|
+
'239': string[];
|
|
75
|
+
'240': string[];
|
|
76
|
+
'241': string[];
|
|
77
|
+
'242': string[];
|
|
78
|
+
'243': string[];
|
|
79
|
+
'244': string[];
|
|
80
|
+
'245': string[];
|
|
81
|
+
'246': string[];
|
|
82
|
+
'247': string[];
|
|
83
|
+
'248': string[];
|
|
84
|
+
'249': string[];
|
|
85
|
+
'250': string[];
|
|
86
|
+
'251': string[];
|
|
87
|
+
'252': string[];
|
|
88
|
+
'253': string[];
|
|
89
|
+
'254': string[];
|
|
90
|
+
'255': string[];
|
|
91
|
+
'256': string[];
|
|
92
|
+
'257': string[];
|
|
93
|
+
'258': string[];
|
|
94
|
+
'260': string[];
|
|
95
|
+
'261': string[];
|
|
96
|
+
'262': string[];
|
|
97
|
+
'263': string[];
|
|
98
|
+
'264': string[];
|
|
99
|
+
'265': string[];
|
|
100
|
+
'266': string[];
|
|
101
|
+
'267': string[];
|
|
102
|
+
'268': string[];
|
|
103
|
+
'269': string[];
|
|
104
|
+
'290': string[];
|
|
105
|
+
'291': string[];
|
|
106
|
+
'297': string[];
|
|
107
|
+
'298': string[];
|
|
108
|
+
'299': string[];
|
|
109
|
+
'350': string[];
|
|
110
|
+
'351': string[];
|
|
111
|
+
'352': string[];
|
|
112
|
+
'353': string[];
|
|
113
|
+
'354': string[];
|
|
114
|
+
'355': string[];
|
|
115
|
+
'356': string[];
|
|
116
|
+
'357': string[];
|
|
117
|
+
'358': string[];
|
|
118
|
+
'359': string[];
|
|
119
|
+
'370': string[];
|
|
120
|
+
'371': string[];
|
|
121
|
+
'372': string[];
|
|
122
|
+
'373': string[];
|
|
123
|
+
'374': string[];
|
|
124
|
+
'375': string[];
|
|
125
|
+
'376': string[];
|
|
126
|
+
'377': string[];
|
|
127
|
+
'378': string[];
|
|
128
|
+
'380': string[];
|
|
129
|
+
'381': string[];
|
|
130
|
+
'382': string[];
|
|
131
|
+
'383': string[];
|
|
132
|
+
'385': string[];
|
|
133
|
+
'386': string[];
|
|
134
|
+
'387': string[];
|
|
135
|
+
'389': string[];
|
|
136
|
+
'420': string[];
|
|
137
|
+
'421': string[];
|
|
138
|
+
'423': string[];
|
|
139
|
+
'500': string[];
|
|
140
|
+
'501': string[];
|
|
141
|
+
'502': string[];
|
|
142
|
+
'503': string[];
|
|
143
|
+
'504': string[];
|
|
144
|
+
'505': string[];
|
|
145
|
+
'506': string[];
|
|
146
|
+
'507': string[];
|
|
147
|
+
'508': string[];
|
|
148
|
+
'509': string[];
|
|
149
|
+
'590': string[];
|
|
150
|
+
'591': string[];
|
|
151
|
+
'592': string[];
|
|
152
|
+
'593': string[];
|
|
153
|
+
'594': string[];
|
|
154
|
+
'595': string[];
|
|
155
|
+
'596': string[];
|
|
156
|
+
'597': string[];
|
|
157
|
+
'598': string[];
|
|
158
|
+
'599': string[];
|
|
159
|
+
'670': string[];
|
|
160
|
+
'672': string[];
|
|
161
|
+
'673': string[];
|
|
162
|
+
'674': string[];
|
|
163
|
+
'675': string[];
|
|
164
|
+
'676': string[];
|
|
165
|
+
'677': string[];
|
|
166
|
+
'678': string[];
|
|
167
|
+
'679': string[];
|
|
168
|
+
'680': string[];
|
|
169
|
+
'681': string[];
|
|
170
|
+
'682': string[];
|
|
171
|
+
'683': string[];
|
|
172
|
+
'685': string[];
|
|
173
|
+
'686': string[];
|
|
174
|
+
'687': string[];
|
|
175
|
+
'688': string[];
|
|
176
|
+
'689': string[];
|
|
177
|
+
'690': string[];
|
|
178
|
+
'691': string[];
|
|
179
|
+
'692': string[];
|
|
180
|
+
'850': string[];
|
|
181
|
+
'852': string[];
|
|
182
|
+
'853': string[];
|
|
183
|
+
'855': string[];
|
|
184
|
+
'856': string[];
|
|
185
|
+
'880': string[];
|
|
186
|
+
'886': string[];
|
|
187
|
+
'960': string[];
|
|
188
|
+
'961': string[];
|
|
189
|
+
'962': string[];
|
|
190
|
+
'963': string[];
|
|
191
|
+
'964': string[];
|
|
192
|
+
'965': string[];
|
|
193
|
+
'966': string[];
|
|
194
|
+
'967': string[];
|
|
195
|
+
'968': string[];
|
|
196
|
+
'970': string[];
|
|
197
|
+
'971': string[];
|
|
198
|
+
'972': string[];
|
|
199
|
+
'973': string[];
|
|
200
|
+
'974': string[];
|
|
201
|
+
'975': string[];
|
|
202
|
+
'976': string[];
|
|
203
|
+
'977': string[];
|
|
204
|
+
'992': string[];
|
|
205
|
+
'993': string[];
|
|
206
|
+
'994': string[];
|
|
207
|
+
'995': string[];
|
|
208
|
+
'996': string[];
|
|
209
|
+
'998': string[];
|
|
210
|
+
};
|
|
211
|
+
countries: {
|
|
212
|
+
AC: (string | number[])[];
|
|
213
|
+
AD: (string | number[] | (string | string[])[][])[];
|
|
214
|
+
AE: (string | number[] | (string | string[])[][])[];
|
|
215
|
+
AF: (string | number[] | (string | string[])[][])[];
|
|
216
|
+
AG: (string | number | number[])[];
|
|
217
|
+
AI: (string | number | number[])[];
|
|
218
|
+
AL: (string | number[] | (string | string[])[][])[];
|
|
219
|
+
AM: (string | number[] | (string | string[])[][])[];
|
|
220
|
+
AO: (string | number[] | (string | string[])[][])[];
|
|
221
|
+
AR: (string | number | number[] | (string | number | string[])[][])[];
|
|
222
|
+
AS: (string | number | number[])[];
|
|
223
|
+
AT: (string | number[] | (string | string[])[][])[];
|
|
224
|
+
AU: (string | number | (string | string[])[][] | (number | (string | number[])[])[])[];
|
|
225
|
+
AW: (string | number[] | (string | string[])[][])[];
|
|
226
|
+
AX: (string | number | number[])[];
|
|
227
|
+
AZ: (string | number[] | (string | string[])[][])[];
|
|
228
|
+
BA: (string | number[] | (string | string[])[][])[];
|
|
229
|
+
BB: (string | number | number[])[];
|
|
230
|
+
BD: (string | number[] | (string | string[])[][])[];
|
|
231
|
+
BE: (string | number[] | (string | string[])[][])[];
|
|
232
|
+
BF: (string | number[] | (string | string[])[][])[];
|
|
233
|
+
BG: (string | number[] | (string | string[])[][])[];
|
|
234
|
+
BH: (string | number[] | (string | string[])[][])[];
|
|
235
|
+
BI: (string | number[] | (string | string[])[][])[];
|
|
236
|
+
BJ: (string | number[] | (string | string[])[][])[];
|
|
237
|
+
BL: (string | number | (number | string[])[])[];
|
|
238
|
+
BM: (string | number | number[])[];
|
|
239
|
+
BN: (string | number[] | (string | string[])[][])[];
|
|
240
|
+
BO: (string | number | number[] | (string | string[])[][])[];
|
|
241
|
+
BQ: (string | number | number[])[];
|
|
242
|
+
BR: (string | number | number[] | (string | string[])[][])[];
|
|
243
|
+
BS: (string | number | number[])[];
|
|
244
|
+
BT: (string | number[] | (string | string[])[][])[];
|
|
245
|
+
BW: (string | number[] | (string | string[])[][])[];
|
|
246
|
+
BY: (string | number | number[] | (string | string[])[][])[];
|
|
247
|
+
BZ: (string | number[] | (string | string[])[][])[];
|
|
248
|
+
CA: (string | number | (number | (string | number[])[])[])[];
|
|
249
|
+
CC: (string | number | (number | (string | number[])[])[])[];
|
|
250
|
+
CD: (string | number[] | (string | string[])[][])[];
|
|
251
|
+
CF: (string | number[] | (string | string[])[][])[];
|
|
252
|
+
CG: (string | number[] | (string | string[])[][])[];
|
|
253
|
+
CH: (string | number[] | (string | string[])[][])[];
|
|
254
|
+
CI: (string | number[] | (string | string[])[][])[];
|
|
255
|
+
CK: (string | number[] | (string | string[])[][])[];
|
|
256
|
+
CL: (string | number[] | (string | string[])[][])[];
|
|
257
|
+
CM: (string | number[] | (string | string[])[][])[];
|
|
258
|
+
CN: (string | number | number[] | (string | number | string[])[][])[];
|
|
259
|
+
CO: (string | number | number[] | (string | number | string[])[][])[];
|
|
260
|
+
CR: (string | number | number[] | (string | string[])[][])[];
|
|
261
|
+
CU: (string | number[] | (string | string[])[][])[];
|
|
262
|
+
CV: (string | number[] | (string | string[])[][])[];
|
|
263
|
+
CW: (string | number | number[] | (string | string[])[][])[];
|
|
264
|
+
CX: (string | number | (number | (string | number[])[])[])[];
|
|
265
|
+
CY: (string | number[] | (string | string[])[][])[];
|
|
266
|
+
CZ: (string | number[] | (string | string[])[][])[];
|
|
267
|
+
DE: (string | number[] | (string | string[])[][])[];
|
|
268
|
+
DJ: (string | number[] | (string | string[])[][])[];
|
|
269
|
+
DK: (string | number[] | (string | string[])[][])[];
|
|
270
|
+
DM: (string | number | number[])[];
|
|
271
|
+
DO: (string | number | number[])[];
|
|
272
|
+
DZ: (string | number[] | (string | string[])[][])[];
|
|
273
|
+
EC: (string | number[] | (string | number | string[])[][])[];
|
|
274
|
+
EE: (string | number[] | (string | string[])[][])[];
|
|
275
|
+
EG: (string | number[] | (string | string[])[][])[];
|
|
276
|
+
EH: (string | number | (number | string[])[])[];
|
|
277
|
+
ER: (string | number[] | (string | string[])[][])[];
|
|
278
|
+
ES: (string | number[] | (string | string[])[][])[];
|
|
279
|
+
ET: (string | number[] | (string | string[])[][])[];
|
|
280
|
+
FI: (string | number | number[] | (string | string[])[][])[];
|
|
281
|
+
FJ: (string | number | number[] | (string | string[])[][])[];
|
|
282
|
+
FK: (string | number[])[];
|
|
283
|
+
FM: (string | number[] | (string | string[])[][])[];
|
|
284
|
+
FO: (string | number | number[] | (string | string[])[][])[];
|
|
285
|
+
FR: (string | number[] | (string | string[])[][])[];
|
|
286
|
+
GA: (string | number | number[] | (string | string[])[][])[];
|
|
287
|
+
GB: (string | number | (string | string[])[][] | (number | (string | number[])[])[])[];
|
|
288
|
+
GD: (string | number | number[])[];
|
|
289
|
+
GE: (string | number[] | (string | string[])[][])[];
|
|
290
|
+
GF: (string | number[] | (string | string[])[][])[];
|
|
291
|
+
GG: (string | number | (number | (string | number[])[])[])[];
|
|
292
|
+
GH: (string | number[] | (string | string[])[][])[];
|
|
293
|
+
GI: (string | number[] | (string | string[])[][])[];
|
|
294
|
+
GL: (string | number[] | (string | string[])[][])[];
|
|
295
|
+
GM: (string | number[] | (string | string[])[][])[];
|
|
296
|
+
GN: (string | number[] | (string | string[])[][])[];
|
|
297
|
+
GP: (string | number | (string | string[])[][] | (number | string[])[])[];
|
|
298
|
+
GQ: (string | number[] | (string | string[])[][])[];
|
|
299
|
+
GR: (string | number[] | (string | string[])[][])[];
|
|
300
|
+
GT: (string | number[] | (string | string[])[][])[];
|
|
301
|
+
GU: (string | number | number[])[];
|
|
302
|
+
GW: (string | number[] | (string | string[])[][])[];
|
|
303
|
+
GY: (string | number[] | (string | string[])[][])[];
|
|
304
|
+
HK: (string | number | number[] | (string | string[])[][])[];
|
|
305
|
+
HN: (string | number[] | (string | string[])[][])[];
|
|
306
|
+
HR: (string | number[] | (string | string[])[][])[];
|
|
307
|
+
HT: (string | number[] | (string | string[])[][])[];
|
|
308
|
+
HU: (string | number[] | (string | string[])[][])[];
|
|
309
|
+
ID: (string | number[] | (string | string[])[][])[];
|
|
310
|
+
IE: (string | number[] | (string | string[])[][])[];
|
|
311
|
+
IL: (string | number[] | (string | string[])[][])[];
|
|
312
|
+
IM: (string | number | number[])[];
|
|
313
|
+
IN: (string | number[] | (string | number | string[])[][])[];
|
|
314
|
+
IO: (string | number[] | (string | string[])[][])[];
|
|
315
|
+
IQ: (string | number[] | (string | string[])[][])[];
|
|
316
|
+
IR: (string | number[] | (string | string[])[][])[];
|
|
317
|
+
IS: (string | number | number[] | (string | string[])[][])[];
|
|
318
|
+
IT: (string | number | (string | string[])[][] | (number | (string | number[])[])[])[];
|
|
319
|
+
JE: (string | number | (number | string[])[])[];
|
|
320
|
+
JM: (string | number | number[])[];
|
|
321
|
+
JO: (string | number[] | (string | string[])[][])[];
|
|
322
|
+
JP: (string | number | number[] | (string | string[])[][])[];
|
|
323
|
+
KE: (string | number[] | (string | string[])[][])[];
|
|
324
|
+
KG: (string | number[] | (string | string[])[][])[];
|
|
325
|
+
KH: (string | number[] | (string | string[])[][])[];
|
|
326
|
+
KI: (string | number | number[])[];
|
|
327
|
+
KM: (string | number[] | (string | string[])[][])[];
|
|
328
|
+
KN: (string | number | number[])[];
|
|
329
|
+
KP: (string | number[] | (string | string[])[][])[];
|
|
330
|
+
KR: (string | number | number[] | (string | string[])[][])[];
|
|
331
|
+
KW: (string | number[] | (string | string[])[][])[];
|
|
332
|
+
KY: (string | number | number[])[];
|
|
333
|
+
KZ: (string | number | number[])[];
|
|
334
|
+
LA: (string | number[] | (string | string[])[][])[];
|
|
335
|
+
LB: (string | number[] | (string | string[])[][])[];
|
|
336
|
+
LC: (string | number | number[])[];
|
|
337
|
+
LI: (string | number | number[] | (string | string[])[][])[];
|
|
338
|
+
LK: (string | number[] | (string | string[])[][])[];
|
|
339
|
+
LR: (string | number[] | (string | string[])[][])[];
|
|
340
|
+
LS: (string | number[] | (string | string[])[][])[];
|
|
341
|
+
LT: (string | number | number[] | (string | number | string[])[][])[];
|
|
342
|
+
LU: (string | number | number[] | (string | string[])[][])[];
|
|
343
|
+
LV: (string | number[] | (string | string[])[][])[];
|
|
344
|
+
LY: (string | number[] | (string | string[])[][])[];
|
|
345
|
+
MA: (string | number | number[] | (string | string[])[][])[];
|
|
346
|
+
MC: (string | number[] | (string | string[])[][])[];
|
|
347
|
+
MD: (string | number[] | (string | string[])[][])[];
|
|
348
|
+
ME: (string | number[] | (string | string[])[][])[];
|
|
349
|
+
MF: (string | number | (number | string[])[])[];
|
|
350
|
+
MG: (string | number | number[] | (string | string[])[][])[];
|
|
351
|
+
MH: (string | number[] | (string | string[])[][])[];
|
|
352
|
+
MK: (string | number[] | (string | string[])[][])[];
|
|
353
|
+
ML: (string | number[] | (string | string[])[][])[];
|
|
354
|
+
MM: (string | number[] | (string | string[])[][])[];
|
|
355
|
+
MN: (string | number[] | (string | string[])[][])[];
|
|
356
|
+
MO: (string | number[] | (string | string[])[][])[];
|
|
357
|
+
MP: (string | number | number[])[];
|
|
358
|
+
MQ: (string | number[] | (string | string[])[][])[];
|
|
359
|
+
MR: (string | number[] | (string | string[])[][])[];
|
|
360
|
+
MS: (string | number | number[])[];
|
|
361
|
+
MT: (string | number[] | (string | string[])[][])[];
|
|
362
|
+
MU: (string | number | number[] | (string | string[])[][])[];
|
|
363
|
+
MV: (string | number | number[] | (string | string[])[][])[];
|
|
364
|
+
MW: (string | number[] | (string | string[])[][])[];
|
|
365
|
+
MX: (string | number | number[] | (string | string[])[][])[];
|
|
366
|
+
MY: (string | number[] | (string | string[])[][])[];
|
|
367
|
+
MZ: (string | number[] | (string | string[])[][])[];
|
|
368
|
+
NA: (string | number[] | (string | string[])[][])[];
|
|
369
|
+
NC: (string | number[] | (string | string[])[][])[];
|
|
370
|
+
NE: (string | number[] | (string | string[])[][])[];
|
|
371
|
+
NF: (string | number | number[] | (string | string[])[][])[];
|
|
372
|
+
NG: (string | number[] | (string | string[])[][])[];
|
|
373
|
+
NI: (string | number[] | (string | string[])[][])[];
|
|
374
|
+
NL: (string | number[] | (string | string[])[][])[];
|
|
375
|
+
NO: (string | number | number[] | (string | string[])[][])[];
|
|
376
|
+
NP: (string | number[] | (string | string[])[][])[];
|
|
377
|
+
NR: (string | number[] | (string | string[])[][])[];
|
|
378
|
+
NU: (string | number[] | (string | string[])[][])[];
|
|
379
|
+
NZ: (string | number | number[] | (string | string[])[][])[];
|
|
380
|
+
OM: (string | number[] | (string | string[])[][])[];
|
|
381
|
+
PA: (string | number[] | (string | string[])[][])[];
|
|
382
|
+
PE: (string | number | number[] | (string | string[])[][])[];
|
|
383
|
+
PF: (string | number[] | (string | string[])[][])[];
|
|
384
|
+
PG: (string | number | number[] | (string | string[])[][])[];
|
|
385
|
+
PH: (string | number[] | (string | string[])[][])[];
|
|
386
|
+
PK: (string | number[] | (string | string[])[][])[];
|
|
387
|
+
PL: (string | number[] | (string | string[])[][])[];
|
|
388
|
+
PM: (string | number[] | (string | string[])[][])[];
|
|
389
|
+
PR: (string | number | number[])[];
|
|
390
|
+
PS: (string | number[] | (string | string[])[][])[];
|
|
391
|
+
PT: (string | number[] | (string | string[])[][])[];
|
|
392
|
+
PW: (string | number[] | (string | string[])[][])[];
|
|
393
|
+
PY: (string | number[] | (string | string[])[][])[];
|
|
394
|
+
QA: (string | number[] | (string | string[])[][])[];
|
|
395
|
+
RE: (string | number | (string | string[])[][] | (number | string[])[])[];
|
|
396
|
+
RO: (string | number | number[] | (string | string[])[][])[];
|
|
397
|
+
RS: (string | number[] | (string | string[])[][])[];
|
|
398
|
+
RU: (string | number | number[] | (string | number | string[])[][] | (string | number[])[][])[];
|
|
399
|
+
RW: (string | number[] | (string | string[])[][])[];
|
|
400
|
+
SA: (string | number[] | (string | string[])[][])[];
|
|
401
|
+
SB: (string | number[] | (string | string[])[][])[];
|
|
402
|
+
SC: (string | number | number[] | (string | string[])[][])[];
|
|
403
|
+
SD: (string | number[] | (string | string[])[][])[];
|
|
404
|
+
SE: (string | number[] | (string | number | string[])[][])[];
|
|
405
|
+
SG: (string | number[] | (string | string[])[][])[];
|
|
406
|
+
SH: (string | number | number[])[];
|
|
407
|
+
SI: (string | number | number[] | (string | string[])[][])[];
|
|
408
|
+
SJ: (string | number | number[])[];
|
|
409
|
+
SK: (string | number[] | (string | string[])[][])[];
|
|
410
|
+
SL: (string | number[] | (string | string[])[][])[];
|
|
411
|
+
SM: (string | number | number[] | (string | string[])[][])[];
|
|
412
|
+
SN: (string | number[] | (string | string[])[][])[];
|
|
413
|
+
SO: (string | number[] | (string | string[])[][])[];
|
|
414
|
+
SR: (string | number[] | (string | string[])[][])[];
|
|
415
|
+
SS: (string | number[] | (string | string[])[][])[];
|
|
416
|
+
ST: (string | number[] | (string | string[])[][])[];
|
|
417
|
+
SV: (string | number[] | (string | string[])[][])[];
|
|
418
|
+
SX: (string | number | number[])[];
|
|
419
|
+
SY: (string | number[] | (string | number | string[])[][])[];
|
|
420
|
+
SZ: (string | number[] | (string | string[])[][])[];
|
|
421
|
+
TA: (string | number | number[])[];
|
|
422
|
+
TC: (string | number | number[])[];
|
|
423
|
+
TD: (string | number | number[] | (string | string[])[][])[];
|
|
424
|
+
TG: (string | number[] | (string | string[])[][])[];
|
|
425
|
+
TH: (string | number[] | (string | string[])[][])[];
|
|
426
|
+
TJ: (string | number | number[] | (string | string[])[][])[];
|
|
427
|
+
TK: (string | number[])[];
|
|
428
|
+
TL: (string | number[] | (string | string[])[][])[];
|
|
429
|
+
TM: (string | number | number[] | (string | string[])[][])[];
|
|
430
|
+
TN: (string | number[] | (string | string[])[][])[];
|
|
431
|
+
TO: (string | number[] | (string | string[])[][])[];
|
|
432
|
+
TR: (string | number[] | (string | number | string[])[][])[];
|
|
433
|
+
TT: (string | number | number[])[];
|
|
434
|
+
TV: (string | number[] | (string | string[])[][])[];
|
|
435
|
+
TW: (string | number | number[] | (string | string[])[][])[];
|
|
436
|
+
TZ: (string | number[] | (string | string[])[][])[];
|
|
437
|
+
UA: (string | number | number[] | (string | string[])[][])[];
|
|
438
|
+
UG: (string | number[] | (string | string[])[][])[];
|
|
439
|
+
US: (string | number | number[] | (string | number | string[])[][])[];
|
|
440
|
+
UY: (string | number | number[] | (string | string[])[][])[];
|
|
441
|
+
UZ: (string | number[] | (string | string[])[][])[];
|
|
442
|
+
VA: (string | number | number[])[];
|
|
443
|
+
VC: (string | number | number[])[];
|
|
444
|
+
VE: (string | number[] | (string | string[])[][])[];
|
|
445
|
+
VG: (string | number | number[])[];
|
|
446
|
+
VI: (string | number | number[])[];
|
|
447
|
+
VN: (string | number[] | (string | number | string[])[][])[];
|
|
448
|
+
VU: (string | number[] | (string | string[])[][])[];
|
|
449
|
+
WF: (string | number[] | (string | string[])[][])[];
|
|
450
|
+
WS: (string | number[] | (string | string[])[][])[];
|
|
451
|
+
XK: (string | number[] | (string | string[])[][])[];
|
|
452
|
+
YE: (string | number[] | (string | string[])[][])[];
|
|
453
|
+
YT: (string | number | (number | string[])[])[];
|
|
454
|
+
ZA: (string | number[] | (string | string[])[][])[];
|
|
455
|
+
ZM: (string | number[] | (string | string[])[][])[];
|
|
456
|
+
ZW: (string | number[] | (string | string[])[][])[];
|
|
457
|
+
};
|
|
458
|
+
nonGeographic: {
|
|
459
|
+
'800': (string | number | (string | string[])[][] | (number | string[])[])[];
|
|
460
|
+
'808': (string | number | (string | string[])[][] | (number | string[])[])[];
|
|
461
|
+
'870': (string | number | (string | string[])[][] | (number | (string | number[])[])[])[];
|
|
462
|
+
'878': (string | number | (string | string[])[][] | (number | string[])[])[];
|
|
463
|
+
'881': (string | number | (string | string[])[][] | (number | string[])[])[];
|
|
464
|
+
'882': (string | number | (string | string[])[][] | (number | (string | number[])[])[])[];
|
|
465
|
+
'883': (string | number | (string | string[])[][] | (number | string[])[])[];
|
|
466
|
+
'888': (string | number | (number | string[])[])[];
|
|
467
|
+
'979': (string | number | (string | string[])[][] | (number | string[])[])[];
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Phone number parsing for the libphonenumber polyfill.
|
|
3
|
+
*/
|
|
4
|
+
import type { VegaCountryCode } from '../../types/flag.type';
|
|
5
|
+
import type { ParsePhoneNumberOptions } from './types';
|
|
6
|
+
import { PhoneNumber } from './phone-number';
|
|
7
|
+
/**
|
|
8
|
+
* Strip everything except digits and a leading +.
|
|
9
|
+
*
|
|
10
|
+
* Mirrors the behavior of libphonenumber-js/core parseIncompletePhoneNumber.
|
|
11
|
+
*
|
|
12
|
+
* @param {string} text - The raw phone number input to sanitize.
|
|
13
|
+
* @returns {string} The sanitized string containing only digits and an optional leading +.
|
|
14
|
+
* @example parseIncompletePhoneNumber('(302) 333-4444') // '3023334444'
|
|
15
|
+
* @example parseIncompletePhoneNumber('+1 (302) 333-4444') // '+13023334444'
|
|
16
|
+
*/
|
|
17
|
+
export declare function parseIncompletePhoneNumber(text: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Parse a phone number string into a PhoneNumber instance.
|
|
20
|
+
*
|
|
21
|
+
* @param {string} text - The raw phone number string to parse.
|
|
22
|
+
* @param {VegaCountryCode | ParsePhoneNumberOptions} [optionsOrCountry] - A default country code or parsing options.
|
|
23
|
+
* @returns {PhoneNumber} The parsed PhoneNumber instance.
|
|
24
|
+
* @throws {Error} if the input cannot be parsed.
|
|
25
|
+
*/
|
|
26
|
+
export declare function parsePhoneNumber(text: string, optionsOrCountry?: VegaCountryCode | ParsePhoneNumberOptions): PhoneNumber;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { VegaCountryCode } from '../../types/flag.type';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a parsed phone number.
|
|
4
|
+
*/
|
|
5
|
+
export declare class PhoneNumber {
|
|
6
|
+
country: VegaCountryCode | undefined;
|
|
7
|
+
countryCallingCode: string;
|
|
8
|
+
nationalNumber: string;
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new PhoneNumber instance.
|
|
11
|
+
*
|
|
12
|
+
* @param {string} countryCallingCode - The country calling code for the phone number.
|
|
13
|
+
* @param {string} nationalNumber - The national portion of the phone number.
|
|
14
|
+
* @param {VegaCountryCode} country - The optional country code associated with the number.
|
|
15
|
+
*/
|
|
16
|
+
constructor(countryCallingCode: string, nationalNumber: string, country?: VegaCountryCode);
|
|
17
|
+
/**
|
|
18
|
+
* Returns true if the national number matches the country's validation
|
|
19
|
+
* pattern and its length is among the expected possible lengths.
|
|
20
|
+
*
|
|
21
|
+
* @returns {boolean} Whether the phone number is valid.
|
|
22
|
+
*/
|
|
23
|
+
isValid(): boolean;
|
|
24
|
+
}
|
|
@@ -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 {};
|