@heartlandone/vega 2.76.0 → 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.
Files changed (357) hide show
  1. package/dist/cjs/{app-globals-12b7d808.js → app-globals-04e7024b.js} +2 -2
  2. package/dist/cjs/aria-attributes-value-mapper-f58c73f8.js +136 -0
  3. package/dist/cjs/{child-nodes-event-prevent-slimmer-84435957.js → child-nodes-event-prevent-slimmer-cc6d2919.js} +1 -1
  4. package/dist/cjs/{design-token-41baf118.js → design-token-c49717c8.js} +1 -1
  5. package/dist/cjs/{element-appender-slimmer-34e4eb56.js → element-appender-slimmer-38583ca9.js} +2 -2
  6. package/dist/cjs/index.cjs.js +4 -4
  7. package/dist/cjs/legend-input-processor-1e53e5bc.js +2126 -0
  8. package/dist/cjs/loader.cjs.js +4 -4
  9. package/dist/cjs/{responsive-format-facade-ea59bdcd.js → responsive-format-facade-acc39a40.js} +1 -1
  10. package/dist/cjs/{style-formatter-0c3ced39.js → style-formatter-028af284.js} +1 -1
  11. package/dist/cjs/{token-extension-07cac85d.js → token-extension-ffcaeae0.js} +98 -77
  12. package/dist/cjs/vega-accordion.cjs.entry.js +5 -5
  13. package/dist/cjs/vega-app-header-button.cjs.entry.js +18 -143
  14. package/dist/cjs/vega-banner.cjs.entry.js +1 -1
  15. package/dist/cjs/vega-bar-chart.cjs.entry.js +2 -2
  16. package/dist/cjs/vega-box.cjs.entry.js +4 -4
  17. package/dist/cjs/vega-breadcrumb.cjs.entry.js +2 -2
  18. package/dist/cjs/vega-button-circle.cjs.entry.js +21 -6
  19. package/dist/cjs/vega-button-group_2.cjs.entry.js +2 -2
  20. package/dist/cjs/vega-button-link.cjs.entry.js +2 -2
  21. package/dist/cjs/vega-button.cjs.entry.js +3 -3
  22. package/dist/cjs/vega-calendar_4.cjs.entry.js +2 -2
  23. package/dist/cjs/vega-card.cjs.entry.js +3 -3
  24. package/dist/cjs/vega-carousel.cjs.entry.js +2 -2
  25. package/dist/cjs/vega-checkbox_2.cjs.entry.js +2 -2
  26. package/dist/cjs/vega-chip.cjs.entry.js +4 -4
  27. package/dist/cjs/vega-code-block.cjs.entry.js +2 -2
  28. package/dist/cjs/vega-combo-box.cjs.entry.js +2 -2
  29. package/dist/cjs/vega-date-picker_2.cjs.entry.js +29 -7
  30. package/dist/cjs/vega-dialog_2.cjs.entry.js +4 -4
  31. package/dist/cjs/vega-divider.cjs.entry.js +3 -3
  32. package/dist/cjs/vega-dropdown_5.cjs.entry.js +4 -4
  33. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  34. package/dist/cjs/vega-flag-icon.cjs.entry.js +3 -3
  35. package/dist/cjs/vega-flex.cjs.entry.js +4 -4
  36. package/dist/cjs/vega-font.cjs.entry.js +3 -3
  37. package/dist/cjs/vega-form.cjs.entry.js +2 -2
  38. package/dist/cjs/vega-grid.cjs.entry.js +3 -3
  39. package/dist/cjs/vega-icon.cjs.entry.js +3 -3
  40. package/dist/cjs/vega-image-uploader.cjs.entry.js +3 -3
  41. package/dist/cjs/vega-input-credit-card.cjs.entry.js +2 -2
  42. package/dist/cjs/vega-input-numeric.cjs.entry.js +2 -2
  43. package/dist/cjs/vega-input-passcode.cjs.entry.js +2 -2
  44. package/dist/cjs/vega-input-phone-number.cjs.entry.js +4753 -5585
  45. package/dist/cjs/vega-input-range.cjs.entry.js +2 -2
  46. package/dist/cjs/vega-input-select.cjs.entry.js +3 -3
  47. package/dist/cjs/vega-left-nav_5.cjs.entry.js +3 -3
  48. package/dist/cjs/vega-line-chart.cjs.entry.js +325 -23
  49. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +2 -2
  50. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +2 -2
  51. package/dist/cjs/vega-pagination.cjs.entry.js +3 -3
  52. package/dist/cjs/vega-pie-chart.cjs.entry.js +5 -88
  53. package/dist/cjs/vega-popover_2.cjs.entry.js +4 -4
  54. package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +2 -2
  55. package/dist/cjs/vega-radio_2.cjs.entry.js +2 -2
  56. package/dist/cjs/vega-rich-text-content.cjs.entry.js +14 -0
  57. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +2 -2
  58. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +3 -3
  59. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +2 -2
  60. package/dist/cjs/vega-sidenav_3.cjs.entry.js +2 -2
  61. package/dist/cjs/vega-signature-capture.cjs.entry.js +3 -3
  62. package/dist/cjs/vega-stepper.cjs.entry.js +2 -2
  63. package/dist/cjs/vega-tab-group_2.cjs.entry.js +2 -2
  64. package/dist/cjs/vega-table_11.cjs.entry.js +3 -3
  65. package/dist/cjs/vega-textarea.cjs.entry.js +2 -2
  66. package/dist/cjs/vega-time-picker_2.cjs.entry.js +4 -4
  67. package/dist/cjs/vega-tooltip_2.cjs.entry.js +3 -3
  68. package/dist/cjs/vega.cjs.js +4 -4
  69. package/dist/cjs/y-axis-input-processor-54a26515.js +832 -0
  70. package/dist/collection/components/vega-accordion/slimmers/vega-accordion-renderer.js +1 -1
  71. package/dist/collection/components/vega-accordion/vega-accordion.css +5 -0
  72. package/dist/collection/components/vega-button-circle/vega-button-circle.js +17 -3
  73. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.js +16 -2
  74. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.css +184 -207
  75. package/dist/collection/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.js +32 -0
  76. package/dist/collection/components/vega-input-phone-number/slimmers/controllers/country-select-controller.js +1 -1
  77. package/dist/collection/components/vega-input-phone-number/slimmers/controllers/vega-input-phone-number-value-controller.js +1 -1
  78. package/dist/collection/components/vega-input-phone-number/slimmers/renderers/country-select-renderer.js +1 -1
  79. package/dist/collection/components/vega-input-phone-number/slimmers/renderers/phone-number-input-renderer.js +1 -1
  80. package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.js +4 -4
  81. package/dist/collection/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.js +15 -0
  82. package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +11 -0
  83. package/dist/collection/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.js +15 -1
  84. package/dist/collection/components/vega-rich-text-editor/extensions/extension.abstract.js +2 -0
  85. package/dist/collection/components/vega-rich-text-editor/extensions/functions/function-extension.js +0 -11
  86. package/dist/collection/components/vega-rich-text-editor/extensions/functions/renderers/function-toolbar-button-renderer.js +23 -23
  87. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-extension.js +0 -10
  88. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.js +7 -17
  89. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-toolbar-button-renderer.js +12 -16
  90. package/dist/collection/components/vega-rich-text-editor/helpers/extension-context-manager.js +31 -0
  91. package/dist/collection/components/vega-rich-text-editor/helpers/extension-context-manager.test.js +19 -0
  92. package/dist/collection/components/vega-rich-text-editor/test/extensions/extension-test-utils.js +41 -0
  93. package/dist/collection/helpers/chart/input-processors/format-time-positions-input-processor.js +2 -2
  94. package/dist/collection/helpers/chart/input-processors/pie-chart-arc-path-input-processor.js +1 -1
  95. package/dist/collection/helpers/chart/input-processors/x-axis-input-processor.js +5 -3
  96. package/dist/collection/helpers/chart/input-processors/x-axis-label-formatter-input-processor.js +2 -1
  97. package/dist/collection/helpers/chart/input-processors/y-axis-input-processor.js +7 -5
  98. package/dist/collection/helpers/chart/interacting-entry-generator/arc-path-hover-generator.js +1 -1
  99. package/dist/collection/helpers/chart/interacting-entry-generator/pie-legend-hover-generator.js +1 -1
  100. package/dist/collection/helpers/chart/renderers/canvas-renderer.js +1 -1
  101. package/dist/collection/helpers/chart/renderers/svg-renderer.js +1 -1
  102. package/dist/collection/helpers/chart/test/drawers/arc-path-drawer.test.js +1 -1
  103. package/dist/collection/helpers/chart/test/input-processors/format-time-positions-input-processor.test.js +1 -1
  104. package/dist/collection/helpers/chart/test/input-processors/sort-positions-input-processor.test.js +1 -1
  105. package/dist/collection/helpers/chart/test/input-processors/x-axis-input-processor.test.js +39 -0
  106. package/dist/collection/helpers/chart/test/input-processors/x-axis-label-formatter-input-processor.test.js +61 -14
  107. package/dist/collection/helpers/chart/test/input-processors/y-axis-input-processor.coverage.test.js +39 -0
  108. package/dist/collection/helpers/chart/test/input-processors/y-axis-input-processor.test.js +14 -0
  109. package/dist/collection/helpers/chart/test/renderers/svg-renderer.test.js +1 -1
  110. package/dist/collection/helpers/common/test/wait-for-component-did-render.test.js +67 -0
  111. package/dist/collection/helpers/slimmers/mutation-observer/aria-attributes-value-mapper.js +4 -0
  112. package/dist/collection/helpers/slimmers/mutation-observer/test/aria-attributes-value-mapper.test.js +1 -1
  113. package/dist/collection/helpers/validator/rules/valid-phone-number-rule.js +1 -1
  114. package/dist/collection/helpers/validator/test/rules/valid-phone-number-rule.test.js +10 -0
  115. package/dist/collection/polyfill/d3/d3-array-polyfill.js +89 -0
  116. package/dist/collection/polyfill/d3/d3-axis-polyfill.js +195 -0
  117. package/dist/collection/polyfill/d3/d3-scale-polyfill.js +582 -0
  118. package/dist/collection/polyfill/d3/d3-selection-polyfill.js +274 -0
  119. package/dist/collection/polyfill/d3/d3-shape-polyfill.js +252 -0
  120. package/dist/collection/polyfill/d3/d3-time-format-polyfill.js +207 -0
  121. package/dist/collection/polyfill/d3/d3-time-polyfill.js +99 -0
  122. package/dist/collection/polyfill/d3/index.js +31 -0
  123. package/dist/collection/polyfill/d3/test/d3-array-polyfill.test.js +72 -0
  124. package/dist/collection/polyfill/d3/test/d3-axis-polyfill.test.js +171 -0
  125. package/dist/collection/polyfill/d3/test/d3-integration.test.js +137 -0
  126. package/dist/collection/polyfill/d3/test/d3-scale-polyfill.test.js +382 -0
  127. package/dist/collection/polyfill/d3/test/d3-selection-polyfill.test.js +239 -0
  128. package/dist/collection/polyfill/d3/test/d3-shape-polyfill.test.js +225 -0
  129. package/dist/collection/polyfill/d3/test/d3-time-format-polyfill.test.js +162 -0
  130. package/dist/collection/polyfill/d3/test/d3-time-polyfill.test.js +76 -0
  131. package/dist/collection/polyfill/d3/test/index.test.js +78 -0
  132. package/dist/collection/polyfill/libphonenumber/as-you-type.js +405 -0
  133. package/dist/collection/polyfill/libphonenumber/format-helpers.js +186 -0
  134. package/dist/collection/polyfill/libphonenumber/index.js +22 -0
  135. package/dist/collection/polyfill/libphonenumber/metadata.js +150 -0
  136. package/dist/collection/polyfill/libphonenumber/metadata.json.js +3900 -0
  137. package/dist/collection/polyfill/libphonenumber/parse-phone-number.js +127 -0
  138. package/dist/collection/polyfill/libphonenumber/phone-number.js +38 -0
  139. package/dist/collection/polyfill/libphonenumber/test/as-you-type.test.js +309 -0
  140. package/dist/collection/polyfill/libphonenumber/test/format-helpers.test.js +192 -0
  141. package/dist/collection/polyfill/libphonenumber/test/index.test.js +16 -0
  142. package/dist/collection/polyfill/libphonenumber/test/metadata.test.js +196 -0
  143. package/dist/collection/polyfill/libphonenumber/test/parse-phone-number.test.js +218 -0
  144. package/dist/collection/polyfill/libphonenumber/test/phone-number.test.js +56 -0
  145. package/dist/collection/polyfill/libphonenumber/types.js +23 -0
  146. package/dist/esm/{app-globals-c0676920.js → app-globals-32055795.js} +2 -2
  147. package/dist/esm/aria-attributes-value-mapper-d4fef46a.js +134 -0
  148. package/dist/esm/{child-nodes-event-prevent-slimmer-649b9d30.js → child-nodes-event-prevent-slimmer-331312b8.js} +1 -1
  149. package/dist/esm/{design-token-4aee1c56.js → design-token-5bc034e1.js} +1 -1
  150. package/dist/esm/{element-appender-slimmer-e4713a72.js → element-appender-slimmer-9ea377d0.js} +2 -2
  151. package/dist/esm/index.js +4 -4
  152. package/dist/esm/legend-input-processor-122008c5.js +2116 -0
  153. package/dist/esm/loader.js +4 -4
  154. package/dist/esm/{responsive-format-facade-7a071174.js → responsive-format-facade-aa705823.js} +1 -1
  155. package/dist/esm/{style-formatter-3d06b72d.js → style-formatter-28138f5c.js} +1 -1
  156. package/dist/esm/{token-extension-e33fd151.js → token-extension-73e4460a.js} +98 -77
  157. package/dist/esm/vega-accordion.entry.js +5 -5
  158. package/dist/esm/vega-app-header-button.entry.js +17 -142
  159. package/dist/esm/vega-banner.entry.js +1 -1
  160. package/dist/esm/vega-bar-chart.entry.js +2 -2
  161. package/dist/esm/vega-box.entry.js +4 -4
  162. package/dist/esm/vega-breadcrumb.entry.js +2 -2
  163. package/dist/esm/vega-button-circle.entry.js +21 -6
  164. package/dist/esm/vega-button-group_2.entry.js +2 -2
  165. package/dist/esm/vega-button-link.entry.js +2 -2
  166. package/dist/esm/vega-button.entry.js +3 -3
  167. package/dist/esm/vega-calendar_4.entry.js +2 -2
  168. package/dist/esm/vega-card.entry.js +3 -3
  169. package/dist/esm/vega-carousel.entry.js +2 -2
  170. package/dist/esm/vega-checkbox_2.entry.js +2 -2
  171. package/dist/esm/vega-chip.entry.js +4 -4
  172. package/dist/esm/vega-code-block.entry.js +2 -2
  173. package/dist/esm/vega-combo-box.entry.js +2 -2
  174. package/dist/esm/vega-date-picker_2.entry.js +29 -7
  175. package/dist/esm/vega-dialog_2.entry.js +4 -4
  176. package/dist/esm/vega-divider.entry.js +3 -3
  177. package/dist/esm/vega-dropdown_5.entry.js +4 -4
  178. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  179. package/dist/esm/vega-flag-icon.entry.js +3 -3
  180. package/dist/esm/vega-flex.entry.js +4 -4
  181. package/dist/esm/vega-font.entry.js +3 -3
  182. package/dist/esm/vega-form.entry.js +2 -2
  183. package/dist/esm/vega-grid.entry.js +3 -3
  184. package/dist/esm/vega-icon.entry.js +3 -3
  185. package/dist/esm/vega-image-uploader.entry.js +3 -3
  186. package/dist/esm/vega-input-credit-card.entry.js +2 -2
  187. package/dist/esm/vega-input-numeric.entry.js +2 -2
  188. package/dist/esm/vega-input-passcode.entry.js +2 -2
  189. package/dist/esm/vega-input-phone-number.entry.js +4753 -5585
  190. package/dist/esm/vega-input-range.entry.js +2 -2
  191. package/dist/esm/vega-input-select.entry.js +3 -3
  192. package/dist/esm/vega-left-nav_5.entry.js +3 -3
  193. package/dist/esm/vega-line-chart.entry.js +311 -9
  194. package/dist/esm/vega-loader-wrapper_2.entry.js +2 -2
  195. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +2 -2
  196. package/dist/esm/vega-pagination.entry.js +3 -3
  197. package/dist/esm/vega-pie-chart.entry.js +5 -88
  198. package/dist/esm/vega-popover_2.entry.js +4 -4
  199. package/dist/esm/vega-progress-tracker_2.entry.js +2 -2
  200. package/dist/esm/vega-radio_2.entry.js +2 -2
  201. package/dist/esm/vega-rich-text-content.entry.js +14 -0
  202. package/dist/esm/vega-rich-text-editor_4.entry.js +2 -2
  203. package/dist/esm/vega-selection-chip_2.entry.js +3 -3
  204. package/dist/esm/vega-selection-tile_2.entry.js +2 -2
  205. package/dist/esm/vega-sidenav_3.entry.js +2 -2
  206. package/dist/esm/vega-signature-capture.entry.js +3 -3
  207. package/dist/esm/vega-stepper.entry.js +2 -2
  208. package/dist/esm/vega-tab-group_2.entry.js +2 -2
  209. package/dist/esm/vega-table_11.entry.js +3 -3
  210. package/dist/esm/vega-textarea.entry.js +2 -2
  211. package/dist/esm/vega-time-picker_2.entry.js +4 -4
  212. package/dist/esm/vega-tooltip_2.entry.js +3 -3
  213. package/dist/esm/vega.js +4 -4
  214. package/dist/esm/y-axis-input-processor-c7e05353.js +826 -0
  215. package/dist/sri/vega-sri-manifest.json +234 -230
  216. package/dist/types/components/vega-button-circle/vega-button-circle.d.ts +2 -0
  217. package/dist/types/components/vega-date-picker/types.d.ts +14 -0
  218. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/slimmers/renderers/vega-date-picker-month-item-renderer.d.ts +3 -0
  219. package/dist/types/components/vega-date-picker/vega-date-picker-calendar/vega-date-picker-calendar.d.ts +9 -1
  220. package/dist/types/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.d.ts +6 -0
  221. package/dist/types/components/vega-rich-text-editor/extensions/base-extension-renderer.d.ts +9 -1
  222. package/dist/types/components/vega-rich-text-editor/extensions/base-toolbar-button-renderer.d.ts +9 -1
  223. package/dist/types/components/vega-rich-text-editor/extensions/functions/function-extension.d.ts +0 -7
  224. package/dist/types/components/vega-rich-text-editor/extensions/functions/renderers/function-toolbar-button-renderer.d.ts +5 -10
  225. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-extension.d.ts +1 -5
  226. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node-renderer.d.ts +3 -8
  227. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-toolbar-button-renderer.d.ts +5 -9
  228. package/dist/types/components/vega-rich-text-editor/helpers/extension-context-manager.d.ts +26 -0
  229. package/dist/types/components/vega-rich-text-editor/helpers/extension-context-manager.test.d.ts +1 -0
  230. package/dist/types/components/vega-rich-text-editor/interface.d.ts +4 -0
  231. package/dist/types/components/vega-rich-text-editor/test/extensions/extension-test-utils.d.ts +21 -0
  232. package/dist/types/components.d.ts +11 -1
  233. package/dist/types/helpers/chart/test/input-processors/y-axis-input-processor.coverage.test.d.ts +1 -0
  234. package/dist/types/helpers/common/test/wait-for-component-did-render.test.d.ts +1 -0
  235. package/dist/types/polyfill/d3/d3-array-polyfill.d.ts +48 -0
  236. package/dist/types/polyfill/d3/d3-axis-polyfill.d.ts +53 -0
  237. package/dist/types/polyfill/d3/d3-scale-polyfill.d.ts +42 -0
  238. package/dist/types/polyfill/d3/d3-selection-polyfill.d.ts +173 -0
  239. package/dist/types/polyfill/d3/d3-shape-polyfill.d.ts +129 -0
  240. package/dist/types/polyfill/d3/d3-time-format-polyfill.d.ts +28 -0
  241. package/dist/types/polyfill/d3/d3-time-polyfill.d.ts +68 -0
  242. package/dist/types/polyfill/d3/index.d.ts +27 -0
  243. package/dist/types/polyfill/d3/test/d3-array-polyfill.test.d.ts +1 -0
  244. package/dist/types/polyfill/d3/test/d3-axis-polyfill.test.d.ts +1 -0
  245. package/dist/types/polyfill/d3/test/d3-integration.test.d.ts +1 -0
  246. package/dist/types/polyfill/d3/test/d3-scale-polyfill.test.d.ts +1 -0
  247. package/dist/types/polyfill/d3/test/d3-selection-polyfill.test.d.ts +1 -0
  248. package/dist/types/polyfill/d3/test/d3-shape-polyfill.test.d.ts +1 -0
  249. package/dist/types/polyfill/d3/test/d3-time-format-polyfill.test.d.ts +1 -0
  250. package/dist/types/polyfill/d3/test/d3-time-polyfill.test.d.ts +1 -0
  251. package/dist/types/polyfill/d3/test/index.test.d.ts +1 -0
  252. package/dist/types/polyfill/libphonenumber/as-you-type.d.ts +154 -0
  253. package/dist/types/polyfill/libphonenumber/format-helpers.d.ts +64 -0
  254. package/dist/types/polyfill/libphonenumber/index.d.ts +22 -0
  255. package/dist/types/polyfill/libphonenumber/metadata.d.ts +45 -0
  256. package/dist/types/polyfill/libphonenumber/metadata.json.d.ts +470 -0
  257. package/dist/types/polyfill/libphonenumber/parse-phone-number.d.ts +26 -0
  258. package/dist/types/polyfill/libphonenumber/phone-number.d.ts +24 -0
  259. package/dist/types/polyfill/libphonenumber/test/as-you-type.test.d.ts +1 -0
  260. package/dist/types/polyfill/libphonenumber/test/format-helpers.test.d.ts +1 -0
  261. package/dist/types/polyfill/libphonenumber/test/index.test.d.ts +1 -0
  262. package/dist/types/polyfill/libphonenumber/test/metadata.test.d.ts +1 -0
  263. package/dist/types/polyfill/libphonenumber/test/parse-phone-number.test.d.ts +1 -0
  264. package/dist/types/polyfill/libphonenumber/test/phone-number.test.d.ts +1 -0
  265. package/dist/types/polyfill/libphonenumber/types.d.ts +77 -0
  266. package/dist/types/types/components.type.d.ts +1 -0
  267. package/dist/types/types/flag.type.d.ts +255 -4
  268. package/dist/types/types/vega-chart.d.ts +10 -11
  269. package/dist/vega/index.esm.js +1 -1
  270. package/dist/vega/{p-d8fadcdc.entry.js → p-0037068c.entry.js} +1 -1
  271. package/dist/vega/{p-3d8122ab.entry.js → p-010ff53d.entry.js} +1 -1
  272. package/dist/vega/{p-bb5e0192.entry.js → p-03004a05.entry.js} +1 -1
  273. package/dist/vega/{p-f05b8f76.entry.js → p-0572c393.entry.js} +1 -1
  274. package/dist/vega/{p-02a7d60c.entry.js → p-0a3a285b.entry.js} +1 -1
  275. package/dist/vega/p-0d4cb1c7.entry.js +1 -0
  276. package/dist/vega/{p-a7a8a4eb.entry.js → p-100b44c3.entry.js} +1 -1
  277. package/dist/vega/{p-8dbdd609.entry.js → p-168bb296.entry.js} +1 -1
  278. package/dist/vega/{p-b136ebba.entry.js → p-1a011d47.entry.js} +1 -1
  279. package/dist/vega/{p-10734a00.js → p-1a51bf6f.js} +1 -1
  280. package/dist/vega/{p-6dcdb580.entry.js → p-1deedff2.entry.js} +1 -1
  281. package/dist/vega/{p-3244c605.entry.js → p-1fa0c7da.entry.js} +1 -1
  282. package/dist/vega/{p-dd3a94f4.entry.js → p-22056609.entry.js} +1 -1
  283. package/dist/vega/{p-c29068fb.entry.js → p-2b142818.entry.js} +1 -1
  284. package/dist/vega/{p-2ba78982.entry.js → p-34bcf4ed.entry.js} +1 -1
  285. package/dist/vega/{p-94a77fbe.entry.js → p-36a09524.entry.js} +1 -1
  286. package/dist/vega/{p-154f9cf7.entry.js → p-3c05abd9.entry.js} +1 -1
  287. package/dist/vega/{p-fd7ddd64.entry.js → p-3ce2b05c.entry.js} +1 -1
  288. package/dist/vega/{p-28ad1864.entry.js → p-43ff48c0.entry.js} +1 -1
  289. package/dist/vega/{p-ca5898dc.entry.js → p-4742feef.entry.js} +1 -1
  290. package/dist/vega/{p-eda988d5.entry.js → p-4aa52ed2.entry.js} +1 -1
  291. package/dist/vega/{p-d555f677.entry.js → p-4aa94940.entry.js} +1 -1
  292. package/dist/vega/p-4bee4202.entry.js +1 -0
  293. package/dist/vega/{p-01d58eb8.entry.js → p-50d074ed.entry.js} +1 -1
  294. package/dist/vega/{p-033c31d8.entry.js → p-5485c387.entry.js} +1 -1
  295. package/dist/vega/{p-f14a5eae.entry.js → p-560d2f48.entry.js} +1 -1
  296. package/dist/vega/{p-bebfbe95.entry.js → p-5833f33b.entry.js} +1 -1
  297. package/dist/vega/{p-b366deff.entry.js → p-592296d7.entry.js} +1 -1
  298. package/dist/vega/{p-5831d6d3.entry.js → p-5cfce62d.entry.js} +1 -1
  299. package/dist/vega/p-5f377954.js +1 -1
  300. package/dist/vega/{p-e1431c14.entry.js → p-60f77f5f.entry.js} +1 -1
  301. package/dist/vega/p-641cdb5c.entry.js +1 -0
  302. package/dist/vega/{p-32183637.entry.js → p-67745549.entry.js} +1 -1
  303. package/dist/vega/{p-087ea379.entry.js → p-70df91fb.entry.js} +1 -1
  304. package/dist/vega/{p-76181a70.entry.js → p-7425cedc.entry.js} +1 -1
  305. package/dist/vega/{p-89f2e16d.entry.js → p-857069a5.entry.js} +1 -1
  306. package/dist/vega/p-8e34b266.js +1 -0
  307. package/dist/vega/{p-32faa460.entry.js → p-9441f2ba.entry.js} +1 -1
  308. package/dist/vega/{p-2b49686d.entry.js → p-9fb877c1.entry.js} +1 -1
  309. package/dist/vega/p-a46e977b.entry.js +1 -0
  310. package/dist/vega/p-ac82b9f9.entry.js +1 -0
  311. package/dist/vega/p-b1773281.entry.js +1 -0
  312. package/dist/vega/{p-6d60b66a.entry.js → p-b54dc37c.entry.js} +1 -1
  313. package/dist/vega/{p-179aad4f.entry.js → p-b5f18f4b.entry.js} +1 -1
  314. package/dist/vega/{p-7181861a.js → p-bff57aa4.js} +1 -1
  315. package/dist/vega/{p-d7a78c5e.entry.js → p-c165232c.entry.js} +1 -1
  316. package/dist/vega/{p-8950987b.entry.js → p-c292ade4.entry.js} +1 -1
  317. package/dist/vega/p-c2d2faa0.js +1 -0
  318. package/dist/vega/{p-fc1fa345.js → p-cc5eaa1b.js} +1 -1
  319. package/dist/vega/p-cccd7648.entry.js +1 -0
  320. package/dist/vega/{p-7958614a.entry.js → p-cfecc1cb.entry.js} +1 -1
  321. package/dist/vega/{p-57927b10.entry.js → p-d07f5d5a.entry.js} +1 -1
  322. package/dist/vega/{p-9a137bab.entry.js → p-d1cfe972.entry.js} +1 -1
  323. package/dist/vega/{p-d6dbbe61.entry.js → p-d2ee5711.entry.js} +1 -1
  324. package/dist/vega/{p-b256b7a4.js → p-d78f6ede.js} +1 -1
  325. package/dist/vega/p-d8180e42.entry.js +1 -0
  326. package/dist/vega/{p-8b153acd.entry.js → p-daa60a59.entry.js} +1 -1
  327. package/dist/vega/{p-249df6d2.entry.js → p-db5fa164.entry.js} +1 -1
  328. package/dist/vega/p-de64f6e6.js +1 -0
  329. package/dist/vega/p-e4917e76.js +1 -0
  330. package/dist/vega/{p-2cc9d126.entry.js → p-e6cf2ace.entry.js} +1 -1
  331. package/dist/vega/p-e7fbef97.js +1 -0
  332. package/dist/vega/p-f3e6483c.js +1 -0
  333. package/dist/vega/{p-a560d8c5.entry.js → p-f428086c.entry.js} +1 -1
  334. package/dist/vega/{p-4e017458.entry.js → p-fc9ac6e9.entry.js} +1 -1
  335. package/dist/vega/{p-e2af0e24.entry.js → p-ffd48e37.entry.js} +1 -1
  336. package/dist/vega/vega.esm.js +1 -1
  337. package/package.json +2 -6
  338. package/dist/cjs/legend-input-processor-27c65353.js +0 -4759
  339. package/dist/cjs/y-axis-input-processor-9fbfd5e7.js +0 -2302
  340. package/dist/esm/legend-input-processor-5ecae3a7.js +0 -4742
  341. package/dist/esm/y-axis-input-processor-bc54314a.js +0 -2290
  342. package/dist/vega/p-1f5e35dc.entry.js +0 -1
  343. package/dist/vega/p-2e91295d.entry.js +0 -1
  344. package/dist/vega/p-32033e7a.js +0 -1
  345. package/dist/vega/p-46b077d9.js +0 -1
  346. package/dist/vega/p-4e4a0228.entry.js +0 -1
  347. package/dist/vega/p-644f701a.js +0 -1
  348. package/dist/vega/p-6a62e476.entry.js +0 -1
  349. package/dist/vega/p-a13a73fa.entry.js +0 -1
  350. package/dist/vega/p-be23bef2.js +0 -1
  351. package/dist/vega/p-c1d13eec.entry.js +0 -1
  352. package/dist/vega/p-e89e3ede.entry.js +0 -1
  353. package/dist/vega/p-f3d0f2dc.js +0 -1
  354. package/dist/vega/p-f5bafc45.entry.js +0 -1
  355. /package/dist/cjs/{feature-flag-controller-04cb1e69.js → feature-flag-controller-9129ef52.js} +0 -0
  356. /package/dist/esm/{feature-flag-controller-09ea7e87.js → feature-flag-controller-30f7b625.js} +0 -0
  357. /package/dist/vega/{p-07cb0243.js → p-18e8d9b7.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
+ }