intl-tel-input 25.15.0 → 26.0.0-beta.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 (214) hide show
  1. package/README.md +22 -38
  2. package/angular/build/IntlTelInput.js +78 -324
  3. package/angular/build/IntlTelInputWithUtils.js +78 -324
  4. package/angular/build/types/intl-tel-input/i18n/ar/index.d.ts +3 -6
  5. package/angular/build/types/intl-tel-input/i18n/bg/index.d.ts +3 -6
  6. package/angular/build/types/intl-tel-input/i18n/bn/index.d.ts +3 -6
  7. package/angular/build/types/intl-tel-input/i18n/bs/index.d.ts +3 -6
  8. package/angular/build/types/intl-tel-input/i18n/ca/index.d.ts +3 -6
  9. package/angular/build/types/intl-tel-input/i18n/cs/index.d.ts +3 -6
  10. package/angular/build/types/intl-tel-input/i18n/da/index.d.ts +3 -6
  11. package/angular/build/types/intl-tel-input/i18n/de/index.d.ts +3 -6
  12. package/angular/build/types/intl-tel-input/i18n/ee/index.d.ts +3 -6
  13. package/angular/build/types/intl-tel-input/i18n/el/index.d.ts +3 -6
  14. package/angular/build/types/intl-tel-input/i18n/en/index.d.ts +3 -6
  15. package/angular/build/types/intl-tel-input/i18n/es/index.d.ts +3 -6
  16. package/angular/build/types/intl-tel-input/i18n/fa/index.d.ts +3 -6
  17. package/angular/build/types/intl-tel-input/i18n/fi/index.d.ts +3 -6
  18. package/angular/build/types/intl-tel-input/i18n/fr/index.d.ts +3 -6
  19. package/angular/build/types/intl-tel-input/i18n/hi/index.d.ts +3 -6
  20. package/angular/build/types/intl-tel-input/i18n/hr/index.d.ts +3 -6
  21. package/angular/build/types/intl-tel-input/i18n/hu/index.d.ts +3 -6
  22. package/angular/build/types/intl-tel-input/i18n/id/index.d.ts +3 -6
  23. package/angular/build/types/intl-tel-input/i18n/index.d.ts +43 -43
  24. package/angular/build/types/intl-tel-input/i18n/it/index.d.ts +3 -6
  25. package/angular/build/types/intl-tel-input/i18n/ja/index.d.ts +3 -6
  26. package/angular/build/types/intl-tel-input/i18n/ko/index.d.ts +3 -6
  27. package/angular/build/types/intl-tel-input/i18n/lt/index.d.ts +3 -6
  28. package/angular/build/types/intl-tel-input/i18n/mr/index.d.ts +3 -6
  29. package/angular/build/types/intl-tel-input/i18n/nl/index.d.ts +3 -6
  30. package/angular/build/types/intl-tel-input/i18n/no/index.d.ts +3 -6
  31. package/angular/build/types/intl-tel-input/i18n/pl/index.d.ts +3 -6
  32. package/angular/build/types/intl-tel-input/i18n/pt/index.d.ts +3 -6
  33. package/angular/build/types/intl-tel-input/i18n/ro/index.d.ts +3 -6
  34. package/angular/build/types/intl-tel-input/i18n/ru/index.d.ts +3 -6
  35. package/angular/build/types/intl-tel-input/i18n/sk/index.d.ts +3 -6
  36. package/angular/build/types/intl-tel-input/i18n/sl/index.d.ts +3 -6
  37. package/angular/build/types/intl-tel-input/i18n/sq/index.d.ts +3 -6
  38. package/angular/build/types/intl-tel-input/i18n/sr/index.d.ts +3 -6
  39. package/angular/build/types/intl-tel-input/i18n/sv/index.d.ts +3 -6
  40. package/angular/build/types/intl-tel-input/i18n/te/index.d.ts +3 -6
  41. package/angular/build/types/intl-tel-input/i18n/th/index.d.ts +3 -6
  42. package/angular/build/types/intl-tel-input/i18n/tr/index.d.ts +3 -6
  43. package/angular/build/types/intl-tel-input/i18n/types.d.ts +2 -4
  44. package/angular/build/types/intl-tel-input/i18n/uk/index.d.ts +3 -6
  45. package/angular/build/types/intl-tel-input/i18n/ur/index.d.ts +3 -6
  46. package/angular/build/types/intl-tel-input/i18n/uz/index.d.ts +3 -6
  47. package/angular/build/types/intl-tel-input/i18n/vi/index.d.ts +3 -6
  48. package/angular/build/types/intl-tel-input/i18n/zh/index.d.ts +3 -6
  49. package/angular/build/types/intl-tel-input.d.ts +1 -1
  50. package/angular/build/types/modules/constants.d.ts +1 -1
  51. package/angular/build/types/modules/core/icons.d.ts +2 -0
  52. package/angular/build/types/modules/core/options.d.ts +1 -2
  53. package/angular/build/types/modules/core/ui.d.ts +2 -3
  54. package/angular/build/types/modules/data/country-data.d.ts +2 -2
  55. package/angular/build/types/modules/format/formatting.d.ts +2 -2
  56. package/angular/build/types/modules/types/public-api.d.ts +3 -1
  57. package/build/css/demo.css +1 -3
  58. package/build/css/intlTelInput-no-assets.css +17 -19
  59. package/build/css/intlTelInput-no-assets.min.css +1 -1
  60. package/build/css/intlTelInput.css +18 -21
  61. package/build/css/intlTelInput.min.css +1 -1
  62. package/build/js/data.js +1 -1
  63. package/build/js/data.min.js +1 -1
  64. package/build/js/i18n/ar/index.js +23 -5
  65. package/build/js/i18n/bg/index.js +17 -5
  66. package/build/js/i18n/bn/index.js +17 -5
  67. package/build/js/i18n/bs/index.js +23 -5
  68. package/build/js/i18n/ca/index.js +17 -5
  69. package/build/js/i18n/cs/index.js +20 -5
  70. package/build/js/i18n/da/index.js +17 -5
  71. package/build/js/i18n/de/index.js +17 -5
  72. package/build/js/i18n/ee/index.js +17 -5
  73. package/build/js/i18n/el/index.js +17 -5
  74. package/build/js/i18n/en/index.js +18 -5
  75. package/build/js/i18n/es/index.js +17 -5
  76. package/build/js/i18n/fa/index.js +17 -5
  77. package/build/js/i18n/fi/index.js +17 -5
  78. package/build/js/i18n/fr/index.js +17 -5
  79. package/build/js/i18n/hi/index.js +17 -5
  80. package/build/js/i18n/hr/index.js +23 -5
  81. package/build/js/i18n/hu/index.js +17 -5
  82. package/build/js/i18n/id/index.js +17 -5
  83. package/build/js/i18n/index.js +43 -43
  84. package/build/js/i18n/it/index.js +17 -5
  85. package/build/js/i18n/ja/index.js +17 -5
  86. package/build/js/i18n/ko/index.js +17 -5
  87. package/build/js/i18n/lt/index.js +26 -5
  88. package/build/js/i18n/mr/index.js +17 -5
  89. package/build/js/i18n/nl/index.js +17 -5
  90. package/build/js/i18n/no/index.js +17 -5
  91. package/build/js/i18n/pl/index.js +21 -5
  92. package/build/js/i18n/pt/index.js +17 -5
  93. package/build/js/i18n/ro/index.js +21 -5
  94. package/build/js/i18n/ru/index.js +23 -5
  95. package/build/js/i18n/sk/index.js +23 -5
  96. package/build/js/i18n/sl/index.js +25 -5
  97. package/build/js/i18n/sq/index.js +18 -5
  98. package/build/js/i18n/sr/index.js +24 -5
  99. package/build/js/i18n/sv/index.js +17 -5
  100. package/build/js/i18n/te/index.js +17 -5
  101. package/build/js/i18n/th/index.js +17 -5
  102. package/build/js/i18n/tr/index.js +17 -5
  103. package/build/js/i18n/uk/index.js +23 -5
  104. package/build/js/i18n/ur/index.js +17 -5
  105. package/build/js/i18n/uz/index.js +17 -5
  106. package/build/js/i18n/vi/index.js +17 -5
  107. package/build/js/i18n/zh/index.js +17 -5
  108. package/build/js/intlTelInput.d.ts +118 -677
  109. package/build/js/intlTelInput.js +79 -329
  110. package/build/js/intlTelInput.min.js +8 -4
  111. package/build/js/intlTelInputWithUtils.js +79 -329
  112. package/build/js/intlTelInputWithUtils.min.js +7 -3
  113. package/package.json +10 -4
  114. package/react/build/IntlTelInput.cjs +78 -328
  115. package/react/build/IntlTelInput.d.ts +118 -677
  116. package/react/build/IntlTelInput.js +78 -328
  117. package/react/build/IntlTelInputWithUtils.cjs +78 -328
  118. package/react/build/IntlTelInputWithUtils.js +78 -328
  119. package/svelte/build/IntlTelInput.mjs +1170 -1413
  120. package/svelte/build/IntlTelInputWithUtils.mjs +935 -1178
  121. package/vue/build/exports/IntlTelInput.mjs +1 -1
  122. package/vue/build/exports/IntlTelInputWithUtils.mjs +1 -1
  123. package/vue/build/{intl-tel-input-Db39yQmC.mjs → intl-tel-input-BY4WpieT.mjs} +136 -138
  124. package/vue/build/modules/core/ui.d.ts +0 -1
  125. package/vue/build/modules/format/formatting.d.ts +1 -1
  126. package/vue/build/modules/types/public-api.d.ts +2 -1
  127. package/build/js/i18n/ar/countries.js +0 -245
  128. package/build/js/i18n/ar/interface.js +0 -23
  129. package/build/js/i18n/bg/countries.js +0 -245
  130. package/build/js/i18n/bg/interface.js +0 -13
  131. package/build/js/i18n/bn/countries.js +0 -245
  132. package/build/js/i18n/bn/interface.js +0 -13
  133. package/build/js/i18n/bs/countries.js +0 -245
  134. package/build/js/i18n/bs/interface.js +0 -20
  135. package/build/js/i18n/ca/countries.js +0 -245
  136. package/build/js/i18n/ca/interface.js +0 -13
  137. package/build/js/i18n/cs/countries.js +0 -245
  138. package/build/js/i18n/cs/interface.js +0 -20
  139. package/build/js/i18n/da/countries.js +0 -245
  140. package/build/js/i18n/da/interface.js +0 -13
  141. package/build/js/i18n/de/countries.js +0 -245
  142. package/build/js/i18n/de/interface.js +0 -13
  143. package/build/js/i18n/ee/countries.js +0 -245
  144. package/build/js/i18n/ee/interface.js +0 -13
  145. package/build/js/i18n/el/countries.js +0 -245
  146. package/build/js/i18n/el/interface.js +0 -13
  147. package/build/js/i18n/en/countries.js +0 -245
  148. package/build/js/i18n/en/interface.js +0 -14
  149. package/build/js/i18n/es/countries.js +0 -245
  150. package/build/js/i18n/es/interface.js +0 -13
  151. package/build/js/i18n/fa/countries.js +0 -245
  152. package/build/js/i18n/fa/interface.js +0 -13
  153. package/build/js/i18n/fi/countries.js +0 -245
  154. package/build/js/i18n/fi/interface.js +0 -13
  155. package/build/js/i18n/fr/countries.js +0 -245
  156. package/build/js/i18n/fr/interface.js +0 -13
  157. package/build/js/i18n/hi/countries.js +0 -245
  158. package/build/js/i18n/hi/interface.js +0 -13
  159. package/build/js/i18n/hr/countries.js +0 -245
  160. package/build/js/i18n/hr/interface.js +0 -20
  161. package/build/js/i18n/hu/countries.js +0 -245
  162. package/build/js/i18n/hu/interface.js +0 -13
  163. package/build/js/i18n/id/countries.js +0 -245
  164. package/build/js/i18n/id/interface.js +0 -13
  165. package/build/js/i18n/it/countries.js +0 -245
  166. package/build/js/i18n/it/interface.js +0 -13
  167. package/build/js/i18n/ja/countries.js +0 -245
  168. package/build/js/i18n/ja/interface.js +0 -13
  169. package/build/js/i18n/ko/countries.js +0 -245
  170. package/build/js/i18n/ko/interface.js +0 -13
  171. package/build/js/i18n/lt/countries.js +0 -245
  172. package/build/js/i18n/lt/interface.js +0 -26
  173. package/build/js/i18n/mr/countries.js +0 -245
  174. package/build/js/i18n/mr/interface.js +0 -13
  175. package/build/js/i18n/nl/countries.js +0 -245
  176. package/build/js/i18n/nl/interface.js +0 -13
  177. package/build/js/i18n/no/countries.js +0 -245
  178. package/build/js/i18n/no/interface.js +0 -13
  179. package/build/js/i18n/pl/countries.js +0 -245
  180. package/build/js/i18n/pl/interface.js +0 -19
  181. package/build/js/i18n/pt/countries.js +0 -245
  182. package/build/js/i18n/pt/interface.js +0 -13
  183. package/build/js/i18n/ro/countries.js +0 -245
  184. package/build/js/i18n/ro/interface.js +0 -18
  185. package/build/js/i18n/ru/countries.js +0 -245
  186. package/build/js/i18n/ru/interface.js +0 -20
  187. package/build/js/i18n/sk/countries.js +0 -245
  188. package/build/js/i18n/sk/interface.js +0 -20
  189. package/build/js/i18n/sl/countries.js +0 -245
  190. package/build/js/i18n/sl/interface.js +0 -25
  191. package/build/js/i18n/sq/countries.js +0 -245
  192. package/build/js/i18n/sq/interface.js +0 -14
  193. package/build/js/i18n/sr/countries.js +0 -245
  194. package/build/js/i18n/sr/interface.js +0 -21
  195. package/build/js/i18n/sv/countries.js +0 -245
  196. package/build/js/i18n/sv/interface.js +0 -13
  197. package/build/js/i18n/te/countries.js +0 -245
  198. package/build/js/i18n/te/interface.js +0 -13
  199. package/build/js/i18n/th/countries.js +0 -245
  200. package/build/js/i18n/th/interface.js +0 -13
  201. package/build/js/i18n/tr/countries.js +0 -245
  202. package/build/js/i18n/tr/interface.js +0 -13
  203. package/build/js/i18n/uk/countries.js +0 -245
  204. package/build/js/i18n/uk/interface.js +0 -20
  205. package/build/js/i18n/ur/countries.js +0 -245
  206. package/build/js/i18n/ur/interface.js +0 -13
  207. package/build/js/i18n/uz/countries.js +0 -245
  208. package/build/js/i18n/uz/interface.js +0 -13
  209. package/build/js/i18n/vi/countries.js +0 -245
  210. package/build/js/i18n/vi/interface.js +0 -13
  211. package/build/js/i18n/zh/countries.js +0 -245
  212. package/build/js/i18n/zh/interface.js +0 -13
  213. package/vue/build/IntlTelInput.mjs +0 -3398
  214. package/vue/build/IntlTelInputWithUtils.mjs +0 -9540
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intl-tel-input",
3
- "version": "25.15.0",
3
+ "version": "26.0.0-beta.0",
4
4
  "description": "A JavaScript plugin for entering and validating international telephone numbers",
5
5
  "keywords": [
6
6
  "international",
@@ -39,11 +39,13 @@
39
39
  "@playwright/test": "^1.47.2",
40
40
  "@testing-library/jest-dom": "^6.4.6",
41
41
  "@testing-library/user-event": "^14.5.2",
42
+ "@types/node": "^22.10.5",
42
43
  "@types/react": "^18.2.74",
43
44
  "@types/react-dom": "^18.2.24",
44
45
  "@typescript-eslint/eslint-plugin": "^8.1.0",
45
46
  "@typescript-eslint/parser": "^8.1.0",
46
47
  "@vitejs/plugin-vue": "^5.2.1",
48
+ "@vue/tsconfig": "^0.7.0",
47
49
  "babel-plugin-add-module-exports": "^1.0.4",
48
50
  "cspell": "^8.6.1",
49
51
  "esbuild": "^0.25.0",
@@ -83,7 +85,9 @@
83
85
  "ts-node": "^10.9.2",
84
86
  "typescript": "^5.5.3",
85
87
  "vite": "^6.1.0",
86
- "vue": "^3.4.38",
88
+ "vite-plugin-dts": "^4.4.0",
89
+ "vue": "^3.5.13",
90
+ "vue-tsc": "^2.2.0",
87
91
  "zone.js": "^0.15.0"
88
92
  },
89
93
  "files": [
@@ -156,10 +160,12 @@
156
160
  "default": "./react/build/IntlTelInputWithUtils.js"
157
161
  },
158
162
  "./vue": {
159
- "import": "./vue/build/IntlTelInput.mjs"
163
+ "types": "./vue/build/exports/IntlTelInput.d.ts",
164
+ "import": "./vue/build/exports/IntlTelInput.mjs"
160
165
  },
161
166
  "./vueWithUtils": {
162
- "import": "./vue/build/IntlTelInputWithUtils.mjs"
167
+ "types": "./vue/build/exports/IntlTelInputWithUtils.d.ts",
168
+ "import": "./vue/build/exports/IntlTelInputWithUtils.mjs"
163
169
  },
164
170
  "./angular": {
165
171
  "types": "./angular/build/types/intl-tel-input/angular.d.ts",
@@ -1735,273 +1735,6 @@ for (const c of rawCountryData) {
1735
1735
  }
1736
1736
  var data_default = allCountries;
1737
1737
 
1738
- // src/js/intl-tel-input/i18n/en/countries.ts
1739
- var countryTranslations = {
1740
- ad: "Andorra",
1741
- ae: "United Arab Emirates",
1742
- af: "Afghanistan",
1743
- ag: "Antigua & Barbuda",
1744
- ai: "Anguilla",
1745
- al: "Albania",
1746
- am: "Armenia",
1747
- ao: "Angola",
1748
- ar: "Argentina",
1749
- as: "American Samoa",
1750
- at: "Austria",
1751
- au: "Australia",
1752
- aw: "Aruba",
1753
- ax: "\xC5land Islands",
1754
- az: "Azerbaijan",
1755
- ba: "Bosnia & Herzegovina",
1756
- bb: "Barbados",
1757
- bd: "Bangladesh",
1758
- be: "Belgium",
1759
- bf: "Burkina Faso",
1760
- bg: "Bulgaria",
1761
- bh: "Bahrain",
1762
- bi: "Burundi",
1763
- bj: "Benin",
1764
- bl: "St. Barth\xE9lemy",
1765
- bm: "Bermuda",
1766
- bn: "Brunei",
1767
- bo: "Bolivia",
1768
- bq: "Caribbean Netherlands",
1769
- br: "Brazil",
1770
- bs: "Bahamas",
1771
- bt: "Bhutan",
1772
- bw: "Botswana",
1773
- by: "Belarus",
1774
- bz: "Belize",
1775
- ca: "Canada",
1776
- cc: "Cocos (Keeling) Islands",
1777
- cd: "Congo - Kinshasa",
1778
- cf: "Central African Republic",
1779
- cg: "Congo - Brazzaville",
1780
- ch: "Switzerland",
1781
- ci: "C\xF4te d\u2019Ivoire",
1782
- ck: "Cook Islands",
1783
- cl: "Chile",
1784
- cm: "Cameroon",
1785
- cn: "China",
1786
- co: "Colombia",
1787
- cr: "Costa Rica",
1788
- cu: "Cuba",
1789
- cv: "Cape Verde",
1790
- cw: "Cura\xE7ao",
1791
- cx: "Christmas Island",
1792
- cy: "Cyprus",
1793
- cz: "Czechia",
1794
- de: "Germany",
1795
- dj: "Djibouti",
1796
- dk: "Denmark",
1797
- dm: "Dominica",
1798
- do: "Dominican Republic",
1799
- dz: "Algeria",
1800
- ec: "Ecuador",
1801
- ee: "Estonia",
1802
- eg: "Egypt",
1803
- eh: "Western Sahara",
1804
- er: "Eritrea",
1805
- es: "Spain",
1806
- et: "Ethiopia",
1807
- fi: "Finland",
1808
- fj: "Fiji",
1809
- fk: "Falkland Islands",
1810
- fm: "Micronesia",
1811
- fo: "Faroe Islands",
1812
- fr: "France",
1813
- ga: "Gabon",
1814
- gb: "United Kingdom",
1815
- gd: "Grenada",
1816
- ge: "Georgia",
1817
- gf: "French Guiana",
1818
- gg: "Guernsey",
1819
- gh: "Ghana",
1820
- gi: "Gibraltar",
1821
- gl: "Greenland",
1822
- gm: "Gambia",
1823
- gn: "Guinea",
1824
- gp: "Guadeloupe",
1825
- gq: "Equatorial Guinea",
1826
- gr: "Greece",
1827
- gt: "Guatemala",
1828
- gu: "Guam",
1829
- gw: "Guinea-Bissau",
1830
- gy: "Guyana",
1831
- hk: "Hong Kong SAR China",
1832
- hn: "Honduras",
1833
- hr: "Croatia",
1834
- ht: "Haiti",
1835
- hu: "Hungary",
1836
- id: "Indonesia",
1837
- ie: "Ireland",
1838
- il: "Israel",
1839
- im: "Isle of Man",
1840
- in: "India",
1841
- io: "British Indian Ocean Territory",
1842
- iq: "Iraq",
1843
- ir: "Iran",
1844
- is: "Iceland",
1845
- it: "Italy",
1846
- je: "Jersey",
1847
- jm: "Jamaica",
1848
- jo: "Jordan",
1849
- jp: "Japan",
1850
- ke: "Kenya",
1851
- kg: "Kyrgyzstan",
1852
- kh: "Cambodia",
1853
- ki: "Kiribati",
1854
- km: "Comoros",
1855
- kn: "St. Kitts & Nevis",
1856
- kp: "North Korea",
1857
- kr: "South Korea",
1858
- kw: "Kuwait",
1859
- ky: "Cayman Islands",
1860
- kz: "Kazakhstan",
1861
- la: "Laos",
1862
- lb: "Lebanon",
1863
- lc: "St. Lucia",
1864
- li: "Liechtenstein",
1865
- lk: "Sri Lanka",
1866
- lr: "Liberia",
1867
- ls: "Lesotho",
1868
- lt: "Lithuania",
1869
- lu: "Luxembourg",
1870
- lv: "Latvia",
1871
- ly: "Libya",
1872
- ma: "Morocco",
1873
- mc: "Monaco",
1874
- md: "Moldova",
1875
- me: "Montenegro",
1876
- mf: "St. Martin",
1877
- mg: "Madagascar",
1878
- mh: "Marshall Islands",
1879
- mk: "North Macedonia",
1880
- ml: "Mali",
1881
- mm: "Myanmar (Burma)",
1882
- mn: "Mongolia",
1883
- mo: "Macao SAR China",
1884
- mp: "Northern Mariana Islands",
1885
- mq: "Martinique",
1886
- mr: "Mauritania",
1887
- ms: "Montserrat",
1888
- mt: "Malta",
1889
- mu: "Mauritius",
1890
- mv: "Maldives",
1891
- mw: "Malawi",
1892
- mx: "Mexico",
1893
- my: "Malaysia",
1894
- mz: "Mozambique",
1895
- na: "Namibia",
1896
- nc: "New Caledonia",
1897
- ne: "Niger",
1898
- nf: "Norfolk Island",
1899
- ng: "Nigeria",
1900
- ni: "Nicaragua",
1901
- nl: "Netherlands",
1902
- no: "Norway",
1903
- np: "Nepal",
1904
- nr: "Nauru",
1905
- nu: "Niue",
1906
- nz: "New Zealand",
1907
- om: "Oman",
1908
- pa: "Panama",
1909
- pe: "Peru",
1910
- pf: "French Polynesia",
1911
- pg: "Papua New Guinea",
1912
- ph: "Philippines",
1913
- pk: "Pakistan",
1914
- pl: "Poland",
1915
- pm: "St. Pierre & Miquelon",
1916
- pr: "Puerto Rico",
1917
- ps: "Palestinian Territories",
1918
- pt: "Portugal",
1919
- pw: "Palau",
1920
- py: "Paraguay",
1921
- qa: "Qatar",
1922
- re: "R\xE9union",
1923
- ro: "Romania",
1924
- rs: "Serbia",
1925
- ru: "Russia",
1926
- rw: "Rwanda",
1927
- sa: "Saudi Arabia",
1928
- sb: "Solomon Islands",
1929
- sc: "Seychelles",
1930
- sd: "Sudan",
1931
- se: "Sweden",
1932
- sg: "Singapore",
1933
- sh: "St. Helena",
1934
- si: "Slovenia",
1935
- sj: "Svalbard & Jan Mayen",
1936
- sk: "Slovakia",
1937
- sl: "Sierra Leone",
1938
- sm: "San Marino",
1939
- sn: "Senegal",
1940
- so: "Somalia",
1941
- sr: "Suriname",
1942
- ss: "South Sudan",
1943
- st: "S\xE3o Tom\xE9 & Pr\xEDncipe",
1944
- sv: "El Salvador",
1945
- sx: "Sint Maarten",
1946
- sy: "Syria",
1947
- sz: "Eswatini",
1948
- tc: "Turks & Caicos Islands",
1949
- td: "Chad",
1950
- tg: "Togo",
1951
- th: "Thailand",
1952
- tj: "Tajikistan",
1953
- tk: "Tokelau",
1954
- tl: "Timor-Leste",
1955
- tm: "Turkmenistan",
1956
- tn: "Tunisia",
1957
- to: "Tonga",
1958
- tr: "Turkey",
1959
- tt: "Trinidad & Tobago",
1960
- tv: "Tuvalu",
1961
- tw: "Taiwan",
1962
- tz: "Tanzania",
1963
- ua: "Ukraine",
1964
- ug: "Uganda",
1965
- us: "United States",
1966
- uy: "Uruguay",
1967
- uz: "Uzbekistan",
1968
- va: "Vatican City",
1969
- vc: "St. Vincent & Grenadines",
1970
- ve: "Venezuela",
1971
- vg: "British Virgin Islands",
1972
- vi: "U.S. Virgin Islands",
1973
- vn: "Vietnam",
1974
- vu: "Vanuatu",
1975
- wf: "Wallis & Futuna",
1976
- ws: "Samoa",
1977
- ye: "Yemen",
1978
- yt: "Mayotte",
1979
- za: "South Africa",
1980
- zm: "Zambia",
1981
- zw: "Zimbabwe"
1982
- };
1983
- var countries_default = countryTranslations;
1984
-
1985
- // src/js/intl-tel-input/i18n/en/interface.ts
1986
- var interfaceTranslations = {
1987
- selectedCountryAriaLabel: "Change country, selected ${countryName} (${dialCode})",
1988
- noCountrySelected: "Select country",
1989
- countryListAriaLabel: "List of countries",
1990
- searchPlaceholder: "Search",
1991
- clearSearchAriaLabel: "Clear search",
1992
- zeroSearchResults: "No results found",
1993
- oneSearchResult: "1 result found",
1994
- multipleSearchResults: "${count} results found",
1995
- // additional countries (not supported by country-list library)
1996
- ac: "Ascension Island",
1997
- xk: "Kosovo"
1998
- };
1999
- var interface_default = interfaceTranslations;
2000
-
2001
- // src/js/intl-tel-input/i18n/en/index.ts
2002
- var allTranslations = { ...countries_default, ...interface_default };
2003
- var en_default = allTranslations;
2004
-
2005
1738
  // src/js/modules/constants.ts
2006
1739
  var EVENTS = {
2007
1740
  OPEN_COUNTRY_DROPDOWN: "open:countrydropdown",
@@ -2101,29 +1834,50 @@ var ARIA = {
2101
1834
  MODAL: "aria-modal"
2102
1835
  };
2103
1836
 
1837
+ // src/js/intl-tel-input/i18n/en/index.ts
1838
+ var interfaceTranslations = {
1839
+ selectedCountryAriaLabel: "Change country, selected ${countryName} (${dialCode})",
1840
+ noCountrySelected: "Select country",
1841
+ countryListAriaLabel: "List of countries",
1842
+ searchPlaceholder: "Search",
1843
+ clearSearchAriaLabel: "Clear search",
1844
+ searchEmptyState: "No results found",
1845
+ searchSummaryAria(count) {
1846
+ if (count === 0) {
1847
+ return "No results found";
1848
+ }
1849
+ if (count === 1) {
1850
+ return "1 result found";
1851
+ }
1852
+ return `${count} results found`;
1853
+ }
1854
+ };
1855
+ var en_default = interfaceTranslations;
1856
+
2104
1857
  // src/js/modules/core/options.ts
2105
1858
  var mq = (q) => typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia(q).matches;
2106
1859
  var computeDefaultUseFullscreenPopup = () => {
2107
1860
  if (typeof navigator !== "undefined" && typeof window !== "undefined") {
2108
- const isMobileUserAgent = /Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
2109
- navigator.userAgent
2110
- );
2111
1861
  const isNarrowViewport = mq("(max-width: 500px)");
2112
1862
  const isShortViewport = mq("(max-height: 600px)");
2113
1863
  const isCoarsePointer = mq("(pointer: coarse)");
2114
- return isMobileUserAgent || isNarrowViewport || isCoarsePointer && isShortViewport;
1864
+ return isNarrowViewport || isCoarsePointer && isShortViewport;
2115
1865
  }
2116
1866
  return false;
2117
1867
  };
2118
1868
  var defaults = {
2119
- // Allow alphanumeric "phonewords" (e.g. +1 800 FLOWERS) as valid numbers
2120
- allowPhonewords: false,
2121
1869
  //* Whether or not to allow the dropdown.
2122
1870
  allowDropdown: true,
1871
+ //* Whether or not to allow extensions after the main number.
1872
+ allowNumberExtensions: false,
1873
+ // Allow alphanumeric "phonewords" (e.g. +1 800 FLOWERS) as valid numbers
1874
+ allowPhonewords: false,
2123
1875
  //* Add a placeholder in the input with an example number for the selected country.
2124
1876
  autoPlaceholder: PLACEHOLDER_MODES.POLITE,
2125
1877
  //* Modify the parentClass.
2126
1878
  containerClass: "",
1879
+ //* Locale for localising country names via Intl.DisplayNames.
1880
+ countryNameLocale: "en",
2127
1881
  //* The order of the countries in the dropdown. Defaults to alphabetical.
2128
1882
  countryOrder: null,
2129
1883
  //* Add a country search input at the top of the dropdown.
@@ -2165,9 +1919,9 @@ var defaults = {
2165
1919
  //* Use full screen popup instead of dropdown for country list.
2166
1920
  useFullscreenPopup: computeDefaultUseFullscreenPopup(),
2167
1921
  //* The number type to enforce during validation.
2168
- validationNumberTypes: ["MOBILE"]
1922
+ allowedNumberTypes: ["MOBILE", "FIXED_LINE"]
2169
1923
  };
2170
- var applyOptionSideEffects = (o, defaultEnglishStrings) => {
1924
+ var applyOptionSideEffects = (o) => {
2171
1925
  if (o.useFullscreenPopup) {
2172
1926
  o.fixDropdownWidth = false;
2173
1927
  }
@@ -2183,7 +1937,7 @@ var applyOptionSideEffects = (o, defaultEnglishStrings) => {
2183
1937
  if (o.useFullscreenPopup && !o.dropdownContainer) {
2184
1938
  o.dropdownContainer = document.body;
2185
1939
  }
2186
- o.i18n = { ...defaultEnglishStrings, ...o.i18n };
1940
+ o.i18n = { ...en_default, ...o.i18n };
2187
1941
  };
2188
1942
 
2189
1943
  // src/js/modules/utils/string.ts
@@ -2267,6 +2021,11 @@ var buildClearIcon = (id2) => {
2267
2021
  <circle cx="8" cy="8" r="8" class="iti__search-clear-bg" mask="url(#${maskId})" />
2268
2022
  </svg>`;
2269
2023
  };
2024
+ var buildGlobeIcon = () => `
2025
+ <svg width="256" height="256" viewBox="0 0 512 512" class="iti__globe-svg">
2026
+ <path d="M508 213a240 240 0 0 0-449-87l-2 5-2 5c-8 14-13 30-17 46a65 65 0 0 1 56 4c16-10 35-19 56-27l9-3c-6 23-10 48-10 74h-16l4 6c3 4 5 8 6 13h6c0 22 3 44 8 65l2 10-25-10-4 5 12 18 9 3 6 2 8 3 9 26 1 2 16-7h1l-5-13-1-2c24 6 49 9 75 10v26l11 10 7 7v-30l1-13c22 0 44-3 65-8l10-2-21 48-1 1a317 317 0 0 1-14 23l-21 5h-2c6 16 7 33 1 50a240 240 0 0 0 211-265m-401-56-11 6c19-44 54-79 98-98-11 20-21 44-29 69-21 6-40 15-58 23m154 182v4c-29-1-57-6-81-13-7-25-12-52-13-81h94zm0-109h-94c1-29 6-56 13-81 24-7 52-12 81-13zm0-112c-22 1-44 4-65 8l-10 2 12-30 9-17 1-2a332 332 0 0 1 13-23c13-4 26-6 40-7zm187 69 6 4c4 12 6 25 6 38v1h-68c-1-26-4-51-10-74l48 20 1 1 14 8zm-14-44 10 20c-20-11-43-21-68-29-8-25-18-49-29-69 37 16 67 44 87 78M279 49h1c13 1 27 3 39 7l14 23 1 2a343 343 0 0 1 12 26l2 5 6 16c-23-6-48-9-74-10h-1zm0 87h1c29 1 56 6 81 13 7 24 12 51 12 80v1h-94zm2 207h-2v-94h95c-1 29-6 56-13 81-24 7-51 12-80 13m86 60-20 10c11-20 21-43 29-68 25-8 48-18 68-29-16 37-43 67-77 87m87-115-7 5-16 9-2 1a337 337 0 0 1-47 21c6-24 9-49 10-75h68c0 13-2 27-6 39"/>
2027
+ <path d="m261 428-2-2-22-21a40 40 0 0 0-32-11h-1a37 37 0 0 0-18 8l-1 1-4 2-2 2-5 4c-9-3-36-31-47-44s-32-45-34-55l3-2a151 151 0 0 0 11-9v-1a39 39 0 0 0 5-48l-3-3-11-19-3-4-5-7h-1l-3-3-4-3-5-2a35 35 0 0 0-16-3h-5c-4 1-14 5-24 11l-4 2-4 3-4 2c-9 8-17 17-18 27a380 380 0 0 0 212 259h3c12 0 25-10 36-21l10-12 6-11a39 39 0 0 0-8-40"/>
2028
+ </svg>`;
2270
2029
 
2271
2030
  // src/js/modules/core/ui.ts
2272
2031
  var UI = class {
@@ -2286,19 +2045,13 @@ var UI = class {
2286
2045
  //* Generate all of the markup for the plugin: the selected country overlay, and the dropdown.
2287
2046
  generateMarkup(countries) {
2288
2047
  this.countries = countries;
2289
- this._prepareTelInput();
2048
+ this.telInput.classList.add("iti__tel-input");
2290
2049
  const wrapper = this._createWrapperAndInsert();
2291
2050
  this._maybeBuildCountryContainer(wrapper);
2292
2051
  wrapper.appendChild(this.telInput);
2293
2052
  this._maybeUpdateInputPaddingAndReveal();
2294
2053
  this._maybeBuildHiddenInputs(wrapper);
2295
2054
  }
2296
- _prepareTelInput() {
2297
- this.telInput.classList.add("iti__tel-input");
2298
- if (!this.telInput.hasAttribute("autocomplete") && !this.telInput.form?.hasAttribute("autocomplete")) {
2299
- this.telInput.setAttribute("autocomplete", "off");
2300
- }
2301
- }
2302
2055
  _createWrapperAndInsert() {
2303
2056
  const { allowDropdown, showFlags, containerClass, useFullscreenPopup } = this.options;
2304
2057
  const parentClasses = buildClassNames({
@@ -2485,7 +2238,7 @@ var UI = class {
2485
2238
  },
2486
2239
  this.dropdownContent
2487
2240
  );
2488
- this.searchNoResults.textContent = i18n.zeroSearchResults;
2241
+ this.searchNoResults.textContent = i18n.searchEmptyState;
2489
2242
  }
2490
2243
  _maybeUpdateInputPaddingAndReveal() {
2491
2244
  if (this.countryContainer) {
@@ -2602,22 +2355,7 @@ var UI = class {
2602
2355
  updateSearchResultsA11yText() {
2603
2356
  const { i18n } = this.options;
2604
2357
  const count = this.countryList.childElementCount;
2605
- let searchText;
2606
- if (count === 0) {
2607
- searchText = i18n.zeroSearchResults;
2608
- } else {
2609
- if (i18n.searchResultsText) {
2610
- searchText = i18n.searchResultsText(count);
2611
- } else if (count === 1) {
2612
- searchText = i18n.oneSearchResult;
2613
- } else {
2614
- searchText = i18n.multipleSearchResults.replace(
2615
- "${count}",
2616
- count.toString()
2617
- );
2618
- }
2619
- }
2620
- this.searchResultsA11yText.textContent = searchText;
2358
+ this.searchResultsA11yText.textContent = i18n.searchSummaryAria(count);
2621
2359
  }
2622
2360
  //* Check if an element is visible within it's container, else scroll until it is.
2623
2361
  scrollTo(element) {
@@ -2749,12 +2487,14 @@ var processAllCountries = (options) => {
2749
2487
  }
2750
2488
  return data_default;
2751
2489
  };
2752
- var translateCountryNames = (countries, options) => {
2490
+ var generateCountryNames = (countries, options) => {
2491
+ const { countryNameLocale, i18n } = options;
2492
+ const hasDisplayNames = typeof Intl !== "undefined" && typeof Intl.DisplayNames === "function";
2493
+ const displayNames = hasDisplayNames ? new Intl.DisplayNames(countryNameLocale, {
2494
+ type: "region"
2495
+ }) : null;
2753
2496
  for (const c of countries) {
2754
- const iso2 = c.iso2.toLowerCase();
2755
- if (options.i18n[iso2]) {
2756
- c.name = options.i18n[iso2];
2757
- }
2497
+ c.name = i18n[c.iso2] || displayNames?.of(c.iso2.toUpperCase());
2758
2498
  }
2759
2499
  };
2760
2500
  var processDialCodes = (countries) => {
@@ -2834,11 +2574,11 @@ var cacheSearchTokens = (countries) => {
2834
2574
  };
2835
2575
 
2836
2576
  // src/js/modules/format/formatting.ts
2837
- var beforeSetNumber = (fullNumber, dialCode, separateDialCode, selectedCountryData) => {
2577
+ var beforeSetNumber = (fullNumber, hasValidDialCode, separateDialCode, selectedCountryData) => {
2838
2578
  let number = fullNumber;
2839
2579
  if (separateDialCode) {
2840
- if (dialCode) {
2841
- dialCode = `+${selectedCountryData.dialCode}`;
2580
+ if (hasValidDialCode) {
2581
+ const dialCode = `+${selectedCountryData.dialCode}`;
2842
2582
  const start = number[dialCode.length] === " " || number[dialCode.length] === "-" ? dialCode.length + 1 : dialCode.length;
2843
2583
  number = number.substring(start);
2844
2584
  }
@@ -2905,9 +2645,6 @@ var isRegionlessNanp = (number) => {
2905
2645
  };
2906
2646
 
2907
2647
  // src/js/intl-tel-input.ts
2908
- for (const c of data_default) {
2909
- c.name = en_default[c.iso2];
2910
- }
2911
2648
  var id = 0;
2912
2649
  var iso2Set = new Set(data_default.map((c) => c.iso2));
2913
2650
  var isIso2 = (val) => iso2Set.has(val);
@@ -2915,7 +2652,7 @@ var Iti = class _Iti {
2915
2652
  constructor(input, customOptions = {}) {
2916
2653
  this.id = id++;
2917
2654
  this.options = { ...defaults, ...customOptions };
2918
- applyOptionSideEffects(this.options, en_default);
2655
+ applyOptionSideEffects(this.options);
2919
2656
  this.ui = new UI(input, this.options, this.id);
2920
2657
  this.isAndroid = _Iti._getIsAndroid();
2921
2658
  this.promise = this._createInitPromises();
@@ -2997,7 +2734,7 @@ var Iti = class _Iti {
2997
2734
  //********************
2998
2735
  //* Prepare all of the country data, including onlyCountries, excludeCountries, countryOrder options.
2999
2736
  _processCountryData() {
3000
- translateCountryNames(this.countries, this.options);
2737
+ generateCountryNames(this.countries, this.options);
3001
2738
  sortCountries(this.countries, this.options);
3002
2739
  cacheSearchTokens(this.countries);
3003
2740
  }
@@ -3220,7 +2957,7 @@ var Iti = class _Iti {
3220
2957
  inputValue,
3221
2958
  intlTelInput.utils,
3222
2959
  this.selectedCountryData,
3223
- this.options.separateDialCode
2960
+ separateDialCode
3224
2961
  );
3225
2962
  const newCaretPos = translateCursorPosition(
3226
2963
  relevantCharsBeforeCaret,
@@ -3231,6 +2968,10 @@ var Iti = class _Iti {
3231
2968
  this._setTelInputValue(formattedValue);
3232
2969
  this.ui.telInput.setSelectionRange(newCaretPos, newCaretPos);
3233
2970
  }
2971
+ if (separateDialCode && inputValue.startsWith("+") && this.selectedCountryData.dialCode) {
2972
+ const cleanNumber = beforeSetNumber(inputValue, true, separateDialCode, this.selectedCountryData);
2973
+ this._setTelInputValue(cleanNumber);
2974
+ }
3234
2975
  };
3235
2976
  this.ui.telInput.addEventListener(
3236
2977
  "input",
@@ -3664,18 +3405,21 @@ var Iti = class _Iti {
3664
3405
  }
3665
3406
  if (this.ui.selectedCountry) {
3666
3407
  const flagClass = iso2 && showFlags ? `${CLASSES.FLAG} iti__${iso2}` : `${CLASSES.FLAG} ${CLASSES.GLOBE}`;
3667
- let ariaLabel, title;
3408
+ let ariaLabel, title, selectedCountryInner;
3668
3409
  if (iso2) {
3669
3410
  const { name, dialCode } = this.selectedCountryData;
3670
3411
  title = name;
3671
3412
  ariaLabel = i18n.selectedCountryAriaLabel.replace("${countryName}", name).replace("${dialCode}", `+${dialCode}`);
3413
+ selectedCountryInner = "";
3672
3414
  } else {
3673
3415
  title = i18n.noCountrySelected;
3674
3416
  ariaLabel = i18n.noCountrySelected;
3417
+ selectedCountryInner = buildGlobeIcon();
3675
3418
  }
3676
3419
  this.ui.selectedCountryInner.className = flagClass;
3677
3420
  this.ui.selectedCountry.setAttribute("title", title);
3678
3421
  this.ui.selectedCountry.setAttribute(ARIA.LABEL, ariaLabel);
3422
+ this.ui.selectedCountryInner.innerHTML = selectedCountryInner;
3679
3423
  }
3680
3424
  if (separateDialCode) {
3681
3425
  const dialCode = this.selectedCountryData.dialCode ? `+${this.selectedCountryData.dialCode}` : "";
@@ -3688,7 +3432,7 @@ var Iti = class _Iti {
3688
3432
  }
3689
3433
  //* Update the maximum valid number length for the currently selected country.
3690
3434
  _updateMaxLength() {
3691
- const { strictMode, placeholderNumberType, validationNumberTypes } = this.options;
3435
+ const { strictMode, placeholderNumberType, allowedNumberTypes } = this.options;
3692
3436
  const { iso2 } = this.selectedCountryData;
3693
3437
  if (strictMode && intlTelInput.utils) {
3694
3438
  if (iso2) {
@@ -3703,7 +3447,7 @@ var Iti = class _Iti {
3703
3447
  while (intlTelInput.utils.isPossibleNumber(
3704
3448
  exampleNumber,
3705
3449
  iso2,
3706
- validationNumberTypes
3450
+ allowedNumberTypes
3707
3451
  )) {
3708
3452
  validNumber = exampleNumber;
3709
3453
  exampleNumber += "0";
@@ -3842,10 +3586,10 @@ var Iti = class _Iti {
3842
3586
  }
3843
3587
  //* Remove the dial code if separateDialCode is enabled also cap the length if the input has a maxlength attribute
3844
3588
  _beforeSetNumber(fullNumber) {
3845
- const dialCode = this._getDialCode(fullNumber);
3589
+ const hasValidDialCode = Boolean(this._getDialCode(fullNumber));
3846
3590
  const number = beforeSetNumber(
3847
3591
  fullNumber,
3848
- dialCode,
3592
+ hasValidDialCode,
3849
3593
  this.options.separateDialCode,
3850
3594
  this.selectedCountryData
3851
3595
  );
@@ -3969,7 +3713,7 @@ var Iti = class _Iti {
3969
3713
  return intlTelInput.utils ? intlTelInput.utils.isPossibleNumber(
3970
3714
  val,
3971
3715
  this.selectedCountryData.iso2,
3972
- this.options.validationNumberTypes
3716
+ this.options.allowedNumberTypes
3973
3717
  ) : null;
3974
3718
  }
3975
3719
  //* Shared internal validation logic to handle alpha character extension rules.
@@ -3980,23 +3724,29 @@ var Iti = class _Iti {
3980
3724
  if (!this.selectedCountryData.iso2) {
3981
3725
  return false;
3982
3726
  }
3727
+ const { allowNumberExtensions, allowPhonewords } = this.options;
3983
3728
  const testValidity = (s) => precise ? this._utilsIsValidNumber(s) : this._utilsIsPossibleNumber(s);
3984
3729
  const val = this._getFullNumber();
3730
+ if (!testValidity(val)) {
3731
+ return false;
3732
+ }
3985
3733
  const alphaCharPosition = val.search(REGEX.ALPHA_UNICODE);
3986
3734
  const hasAlphaChar = alphaCharPosition > -1;
3987
- if (hasAlphaChar && !this.options.allowPhonewords) {
3988
- const beforeAlphaChar = val.substring(0, alphaCharPosition);
3989
- const beforeAlphaIsValid = testValidity(beforeAlphaChar);
3990
- const isValid = testValidity(val);
3991
- return beforeAlphaIsValid && isValid;
3735
+ if (hasAlphaChar) {
3736
+ const selectedIso2 = this.selectedCountryData.iso2;
3737
+ const hasExtension = Boolean(intlTelInput.utils.getExtension(val, selectedIso2));
3738
+ if (hasExtension) {
3739
+ return allowNumberExtensions;
3740
+ }
3741
+ return allowPhonewords;
3992
3742
  }
3993
- return testValidity(val);
3743
+ return true;
3994
3744
  }
3995
3745
  _utilsIsValidNumber(val) {
3996
3746
  return intlTelInput.utils ? intlTelInput.utils.isValidNumber(
3997
3747
  val,
3998
3748
  this.selectedCountryData.iso2,
3999
- this.options.validationNumberTypes
3749
+ this.options.allowedNumberTypes
4000
3750
  ) : null;
4001
3751
  }
4002
3752
  //* Update the selected country, and update the input val accordingly.
@@ -4106,7 +3856,7 @@ var intlTelInput = Object.assign(
4106
3856
  attachUtils,
4107
3857
  startedLoadingUtilsScript: false,
4108
3858
  startedLoadingAutoCountry: false,
4109
- version: "25.15.0"
3859
+ version: "26.0.0-beta.0"
4110
3860
  }
4111
3861
  );
4112
3862
  var intl_tel_input_default = intlTelInput;