intl-tel-input 25.11.2 → 25.12.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 (50) hide show
  1. package/README.md +8 -8
  2. package/angular/README.md +6 -6
  3. package/angular/build/IntlTelInput.js +4 -3
  4. package/angular/build/IntlTelInputWithUtils.js +13 -12
  5. package/angular/build/types/intl-tel-input/i18n/index.d.ts +4 -0
  6. package/angular/build/types/intl-tel-input/i18n/lt/countries.d.ts +3 -0
  7. package/angular/build/types/intl-tel-input/i18n/lt/index.d.ts +6 -0
  8. package/angular/build/types/intl-tel-input/i18n/lt/interface.d.ts +3 -0
  9. package/angular/build/types/intl-tel-input/i18n/sl/countries.d.ts +3 -0
  10. package/angular/build/types/intl-tel-input/i18n/sl/index.d.ts +6 -0
  11. package/angular/build/types/intl-tel-input/i18n/sl/interface.d.ts +3 -0
  12. package/angular/build/types/intl-tel-input/i18n/sq/countries.d.ts +3 -0
  13. package/angular/build/types/intl-tel-input/i18n/sq/index.d.ts +6 -0
  14. package/angular/build/types/intl-tel-input/i18n/sq/interface.d.ts +3 -0
  15. package/angular/build/types/intl-tel-input/i18n/sr/countries.d.ts +3 -0
  16. package/angular/build/types/intl-tel-input/i18n/sr/index.d.ts +6 -0
  17. package/angular/build/types/intl-tel-input/i18n/sr/interface.d.ts +3 -0
  18. package/angular/build/types/modules/constants.d.ts +1 -0
  19. package/angular/build/types/modules/types/public-api.d.ts +4 -2
  20. package/build/js/data.js +1 -1
  21. package/build/js/data.min.js +1 -1
  22. package/build/js/i18n/index.js +4 -0
  23. package/build/js/i18n/lt/countries.js +245 -0
  24. package/build/js/i18n/lt/index.js +5 -0
  25. package/build/js/i18n/lt/interface.js +14 -0
  26. package/build/js/i18n/sl/countries.js +245 -0
  27. package/build/js/i18n/sl/index.js +5 -0
  28. package/build/js/i18n/sl/interface.js +14 -0
  29. package/build/js/i18n/sq/countries.js +245 -0
  30. package/build/js/i18n/sq/index.js +5 -0
  31. package/build/js/i18n/sq/interface.js +14 -0
  32. package/build/js/i18n/sr/countries.js +245 -0
  33. package/build/js/i18n/sr/index.js +5 -0
  34. package/build/js/i18n/sr/interface.js +14 -0
  35. package/build/js/intlTelInput.d.ts +81 -2
  36. package/build/js/intlTelInput.js +5 -4
  37. package/build/js/intlTelInput.min.js +3 -3
  38. package/build/js/intlTelInputWithUtils.js +14 -13
  39. package/build/js/intlTelInputWithUtils.min.js +3 -3
  40. package/build/js/utils.js +9 -9
  41. package/package.json +1 -1
  42. package/react/README.md +1 -1
  43. package/react/build/IntlTelInput.cjs +4 -3
  44. package/react/build/IntlTelInput.d.ts +81 -2
  45. package/react/build/IntlTelInput.js +4 -3
  46. package/react/build/IntlTelInputWithUtils.cjs +13 -12
  47. package/react/build/IntlTelInputWithUtils.js +13 -12
  48. package/vue/README.md +1 -1
  49. package/vue/build/IntlTelInput.mjs +65 -64
  50. package/vue/build/IntlTelInputWithUtils.mjs +166 -165
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  <img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/angular.png" alt="Angular logo" width="16" /> NEWS: we now have our own <a href="https://github.com/jackocnr/intl-tel-input/tree/master/angular">Angular component</a>!
8
8
 
9
- 🗣️ NEWS: we now provide [translations](#translations) in over 30 languages! [See them in action](https://intl-tel-input.com/storybook/?path=/docs/intltelinput--i18n).
9
+ 🗣️ NEWS: we now provide [translations](#translations) in over 40 languages! [See them in action](https://intl-tel-input.com/storybook/?path=/docs/intltelinput--i18n).
10
10
 
11
11
  International Telephone Input is a JavaScript plugin for entering and validating international telephone numbers. It takes a regular input field, adds a searchable country dropdown, auto-detects the user's country, displays a relevant placeholder number, formats the number as you type, and provides comprehensive validation methods. React, Vue and Angular components are also included.
12
12
 
@@ -68,7 +68,7 @@ By default, on mobile devices, we show a fullscreen popup instead of the inline
68
68
  * Typescript type definitions included
69
69
  * Easily customise styles by overriding CSS variables, e.g. support dark mode
70
70
  * React, Vue, and Angular components also included
71
- * Translations for country names (etc) provided in many different languages, and support for RTL layout
71
+ * Translations for country names (etc) provided in over 40 languages, and support for RTL layout
72
72
  * Lots of initialisation options for customisation, as well as instance methods/events for interaction
73
73
 
74
74
  ## Browser Compatibility
@@ -81,16 +81,16 @@ _Note: We have now dropped support for all versions of Internet Explorer because
81
81
  ## Getting Started (Using a CDN)
82
82
  1. Add the CSS
83
83
  ```html
84
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@25.11.2/build/css/intlTelInput.css">
84
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.0/build/css/intlTelInput.css">
85
85
  ```
86
86
 
87
87
  2. Add the plugin script and initialise it on your input element
88
88
  ```html
89
- <script src="https://cdn.jsdelivr.net/npm/intl-tel-input@25.11.2/build/js/intlTelInput.min.js"></script>
89
+ <script src="https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.0/build/js/intlTelInput.min.js"></script>
90
90
  <script>
91
91
  const input = document.querySelector("#phone");
92
92
  window.intlTelInput(input, {
93
- loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.11.2/build/js/utils.js"),
93
+ loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.0/build/js/utils.js"),
94
94
  });
95
95
  </script>
96
96
  ```
@@ -333,7 +333,7 @@ The `loadUtils` option takes a function which returns a Promise which resolves t
333
333
  ```js
334
334
  // (A) import utils module from a CDN
335
335
  intlTelInput(htmlInputElement, {
336
- loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.11.2/build/js/utils.js"),
336
+ loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.0/build/js/utils.js"),
337
337
  });
338
338
 
339
339
  // (B) import utils module from your own hosted version of utils.js
@@ -583,7 +583,7 @@ Example:
583
583
  <img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/vanilla-dark.png" alt="Screenshot" width="263" height="269" />
584
584
 
585
585
  ## Translations
586
- We provide [translations](https://github.com/jackocnr/intl-tel-input/tree/master/build/js/i18n) for the 200+ country names, as well as other user interface text (e.g. the placeholder text for the country search input) in over 30 languages. See the `i18n` option for details on how to use them. [See them in action](https://intl-tel-input.com/storybook/?path=/docs/intltelinput--i18n).
586
+ We provide [translations](https://github.com/jackocnr/intl-tel-input/tree/master/build/js/i18n) for the 200+ country names, as well as other user interface text (e.g. the placeholder text for the country search input) in over 40 languages. See the `i18n` option for details on how to use them. [See them in action](https://intl-tel-input.com/storybook/?path=/docs/intltelinput--i18n).
587
587
 
588
588
  Supported languages: Arabic, Bengali, Bosnian, Bulgarian, Catalan, Chinese, Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Marathi, Norwegian, Persian, Polish, Portuguese, Romanian, Russian, Slovak, Spanish, Swedish, Telugu, Thai, Turkish, Ukrainian, Urdu, Uzbek, Vietnamese.
589
589
 
@@ -617,7 +617,7 @@ The `loadUtils` option takes a function that returns a Promise resolving to the
617
617
  ```js
618
618
  // (A) import utils module from a CDN
619
619
  intlTelInput(htmlInputElement, {
620
- loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.11.2/build/js/utils.js"),
620
+ loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.0/build/js/utils.js"),
621
621
  });
622
622
 
623
623
  // (B) import utils module from your own hosted version of utils.js
package/angular/README.md CHANGED
@@ -14,7 +14,7 @@ Try it for yourself by downloading the project and opening /angular/demo/validat
14
14
 
15
15
  ## Getting Started
16
16
  ```html
17
- import IntlTelInput from "intl-tel-input/angularWithUtils";
17
+ import { IntlTelInputComponent } from "intl-tel-input/angularWithUtils";
18
18
  import "intl-tel-input/styles";
19
19
 
20
20
  <intl-tel-input
@@ -27,15 +27,15 @@ import "intl-tel-input/styles";
27
27
  />
28
28
  ```
29
29
 
30
- See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/angular/demo/validation/validation.component.ts) for a more fleshed-out example of how to handle validation.
30
+ See the [validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/angular/demo/validation/validation.component.ts) for a more fleshed-out example of how to handle validation, or check out the [form demo](https://github.com/jackocnr/intl-tel-input/blob/master/angular/demo/form/form.component.ts) for an alternative approach using `ReactiveFormsModule`.
31
31
 
32
- A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/angularWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/angular"` import, then you should couple this with the `loadUtils` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.11.2/build/js/utils.js"`.
32
+ A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just `import { IntlTelInputComponent } from "intl-tel-input/angularWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/angular"` import, then you should couple this with the `loadUtils` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.0/build/js/utils.js"`.
33
33
 
34
34
  ## Props
35
35
  Here's a list of all of the current props you can pass to the IntlTelInput Angular component.
36
36
 
37
- **disabled**
38
- Type: `Boolean`, Default: `false`
37
+ **disabled**
38
+ Type: `Boolean`, Default: `false`
39
39
  Sets the disabled attribute of both the telephone input and selected country button. _Note: we recommend using this instead of `inputProps.disabled`._
40
40
 
41
41
  **initialValue**
@@ -83,4 +83,4 @@ You can access all of the plugin's [instance methods](https://github.com/jackocn
83
83
 
84
84
  ## Accessing Static Methods
85
85
 
86
- You can access all of the plugin's [static methods](https://github.com/jackocnr/intl-tel-input/blob/master/README.md#static-methods) by importing `intlTelInput` from the same file as the angular component e.g. `import { intlTelInput } from "intl-tel-input/angular"` (note the lower case "i" in "intlTelInput"). You can then use this as you would with the main plugin e.g. `intlTelInput.getCountryData()` or `intlTelInput.utils.numberType` etc.
86
+ You can access all of the plugin's [static methods](https://github.com/jackocnr/intl-tel-input/blob/master/README.md#static-methods) by importing `intlTelInput` from the same file as the angular component e.g. `import { IntlTelInputComponent } from "intl-tel-input/angular"` (note the lower case "i" in "intlTelInput"). You can then use this as you would with the main plugin e.g. `intlTelInput.getCountryData()` or `intlTelInput.utils.numberType` etc.
@@ -2043,7 +2043,8 @@ var US = {
2043
2043
  };
2044
2044
  var PLACEHOLDER_MODES = {
2045
2045
  AGGRESSIVE: "aggressive",
2046
- POLITE: "polite"
2046
+ POLITE: "polite",
2047
+ OFF: "off"
2047
2048
  };
2048
2049
  var INITIAL_COUNTRY = {
2049
2050
  AUTO: "auto"
@@ -3464,7 +3465,7 @@ var Iti = class _Iti {
3464
3465
  //* Update the input placeholder to an example number from the currently selected country.
3465
3466
  _updatePlaceholder() {
3466
3467
  const { autoPlaceholder, placeholderNumberType, nationalMode, customPlaceholder } = this.options;
3467
- const shouldSetPlaceholder = autoPlaceholder === "aggressive" || !this.ui.hadInitialPlaceholder && autoPlaceholder === "polite";
3468
+ const shouldSetPlaceholder = autoPlaceholder === PLACEHOLDER_MODES.AGGRESSIVE || !this.ui.hadInitialPlaceholder && autoPlaceholder === PLACEHOLDER_MODES.POLITE;
3468
3469
  if (intlTelInput.utils && shouldSetPlaceholder) {
3469
3470
  const numberType = intlTelInput.utils.numberType[placeholderNumberType];
3470
3471
  let placeholder = this.selectedCountryData.iso2 ? intlTelInput.utils.getExampleNumber(this.selectedCountryData.iso2, nationalMode, numberType) : "";
@@ -3798,7 +3799,7 @@ var intlTelInput = Object.assign((input, options) => {
3798
3799
  attachUtils,
3799
3800
  startedLoadingUtilsScript: false,
3800
3801
  startedLoadingAutoCountry: false,
3801
- version: "25.11.2"
3802
+ version: "25.12.0"
3802
3803
  });
3803
3804
  var intl_tel_input_default = intlTelInput;
3804
3805
 
@@ -2043,7 +2043,8 @@ var US = {
2043
2043
  };
2044
2044
  var PLACEHOLDER_MODES = {
2045
2045
  AGGRESSIVE: "aggressive",
2046
- POLITE: "polite"
2046
+ POLITE: "polite",
2047
+ OFF: "off"
2047
2048
  };
2048
2049
  var INITIAL_COUNTRY = {
2049
2050
  AUTO: "auto"
@@ -3464,7 +3465,7 @@ var Iti = class _Iti {
3464
3465
  //* Update the input placeholder to an example number from the currently selected country.
3465
3466
  _updatePlaceholder() {
3466
3467
  const { autoPlaceholder, placeholderNumberType, nationalMode, customPlaceholder } = this.options;
3467
- const shouldSetPlaceholder = autoPlaceholder === "aggressive" || !this.ui.hadInitialPlaceholder && autoPlaceholder === "polite";
3468
+ const shouldSetPlaceholder = autoPlaceholder === PLACEHOLDER_MODES.AGGRESSIVE || !this.ui.hadInitialPlaceholder && autoPlaceholder === PLACEHOLDER_MODES.POLITE;
3468
3469
  if (intlTelInput.utils && shouldSetPlaceholder) {
3469
3470
  const numberType = intlTelInput.utils.numberType[placeholderNumberType];
3470
3471
  let placeholder = this.selectedCountryData.iso2 ? intlTelInput.utils.getExampleNumber(this.selectedCountryData.iso2, nationalMode, numberType) : "";
@@ -3798,7 +3799,7 @@ var intlTelInput = Object.assign((input, options) => {
3798
3799
  attachUtils,
3799
3800
  startedLoadingUtilsScript: false,
3800
3801
  startedLoadingAutoCountry: false,
3801
- version: "25.11.2"
3802
+ version: "25.12.0"
3802
3803
  });
3803
3804
  var intl_tel_input_default = intlTelInput;
3804
3805
 
@@ -5573,7 +5574,7 @@ var intl_tel_input_default = intlTelInput;
5573
5574
  ,
5574
5575
  ,
5575
5576
  [9]
5576
- ], [, , "7(?:060\\d|19(?:[0-4]\\d|50))\\d{4}|(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}", , , , "601123456", , , [9]], [, , "800\\d{6}", , , , "800123456", , , [9]], [, , "9(?:0[05689]|76)\\d{6}", , , , "900123456", , , [9]], [, , "8[134]\\d{7}", , , , "811234567", , , [9]], [, , "70[01]\\d{6}", , , , "700123456", , , [9]], [, , "9[17]0\\d{6}", , , , "910123456", , , [9]], "CZ", 420, "00", , , , , , , , [[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], [, "(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], [
5577
+ ], [, , "7(?:060\\d|19(?:[0-5]\\d|6[0-6]))\\d{4}|(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}", , , , "601123456", , , [9]], [, , "800\\d{6}", , , , "800123456", , , [9]], [, , "9(?:0[05689]|76)\\d{6}", , , , "900123456", , , [9]], [, , "8[134]\\d{7}", , , , "811234567", , , [9]], [, , "70[01]\\d{6}", , , , "700123456", , , [9]], [, , "9[17]0\\d{6}", , , , "910123456", , , [9]], "CZ", 420, "00", , , , , , , , [[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], [, "(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], [
5577
5578
  ,
5578
5579
  "(\\d{2})(\\d{3})(\\d{3})(\\d{3})",
5579
5580
  "$1 $2 $3 $4",
@@ -5906,7 +5907,7 @@ var intl_tel_input_default = intlTelInput;
5906
5907
  ,
5907
5908
  [, , "[5-9]\\d{8}", , , , , , , [9]],
5908
5909
  [, , "96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}", , , , "810123456"],
5909
- [, , "(?:590[16]00\\d|9(?:6906(?:09|10)|7390\\d\\d))\\d\\d|(?:6\\d|7[1-48])\\d{7}", , , , "612345678"],
5910
+ [, , "96906(?:09|10)\\d\\d|(?:590(?:10[0-2]|600)|97390\\d)\\d{3}|(?:6\\d|7[1-48])\\d{7}", , , , "612345678"],
5910
5911
  [, , "[89]00\\d{6}", , , , "800123456"],
5911
5912
  [, , "80[367]\\d{6}", , , , "803123456"],
5912
5913
  [, , "90[12]\\d{6}", , , , "901123456"],
@@ -6139,7 +6140,7 @@ var intl_tel_input_default = intlTelInput;
6139
6140
  GE: [, [, , "(?:[3-57]\\d\\d|800)\\d{6}", , , , , , , [9], [6, 7]], [, , "(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}", , , , "322123456", , , , [6, 7]], [
6140
6141
  ,
6141
6142
  ,
6142
- "5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|5(?:0(?:0[17]0|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}|(?:5(?:0(?:0(?:0\\d|11|22|3[0-6]|44|5[05]|77|88|9[09])|(?:[14]\\d|77)\\d|22[02])|1(?:1(?:[03][01]|[124]\\d|5[2-6]|7[0-4])|4\\d\\d)|[23]555|4(?:4\\d\\d|555)|5(?:[0157-9]\\d\\d|200|333|444)|6[89]\\d\\d|7(?:[0147-9]\\d\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}",
6143
+ "5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|5(?:0(?:0[17]0|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}|(?:5(?:0(?:0(?:0\\d|1[12]|22|3[0-6]|44|5[05]|77|88|9[09])|(?:[14]\\d|77)\\d|22[02])|1(?:1(?:[03][01]|[124]\\d|5[2-6]|7[0-4])|4\\d\\d)|[23]555|4(?:4\\d\\d|555)|5(?:[0157-9]\\d\\d|200|333|444)|6[89]\\d\\d|7(?:(?:[0147-9]\\d|22)\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}",
6143
6144
  ,
6144
6145
  ,
6145
6146
  ,
@@ -6383,7 +6384,7 @@ var intl_tel_input_default = intlTelInput;
6383
6384
  ,
6384
6385
  ,
6385
6386
  [8]
6386
- ], [, , "(?:4(?:44[0-35-9]|6(?:4[0-57-9]|6[0-4])|7(?:3[0-4]|4[0-48]|6[0-5]))|5(?:35[4-8]|73[0-6]|95[0-8])|6(?:26[013-8]|(?:66|78)[0-5])|70(?:7[1-8]|8[0-8])|84(?:4[0-2]|8[0-35-9])|9(?:29[013-9]|39[014-9]|59[0-4]|899))\\d{4}|(?:4(?:4[0-35-9]|6[0-357-9]|7[0-25])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|70[1-59]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}", , , , "51234567", , , [8]], [, , "800\\d{6}", , , , "800123456", , , [9]], [
6387
+ ], [, , "(?:4(?:44[0-35-9]|6(?:4[0-57-9]|6[0-6])|7(?:3[0-4]|4[0-48]|6[0-5]))|5(?:35[4-8]|73[0-6]|95[0-8])|6(?:26[013-8]|(?:66|78)[0-5])|70(?:7[1-8]|8[0-8])|84(?:4[0-2]|8[0-35-9])|9(?:29[013-9]|39[014-9]|59[0-467]|899))\\d{4}|(?:4(?:4[0-35-9]|6[0-357-9]|7[0-25])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|70[1-59]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}", , , , "51234567", , , [8]], [, , "800\\d{6}", , , , "800123456", , , [9]], [
6387
6388
  ,
6388
6389
  ,
6389
6390
  "900(?:[0-24-9]\\d{7}|3\\d{1,4})",
@@ -6820,7 +6821,7 @@ var intl_tel_input_default = intlTelInput;
6820
6821
  ,
6821
6822
  [-1]
6822
6823
  ]],
6823
- JO: [, [, , "(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}", , , , , , , [8, 9]], [
6824
+ JO: [, [, , "(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}", , , , , , , [8, 9]], [
6824
6825
  ,
6825
6826
  ,
6826
6827
  "87(?:000|90[01])\\d{3}|(?:2(?:6(?:2[0-35-9]|3[0-578]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-3]|[5-7][023])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2(?:[05]0|22)|3(?:00|33)|4(?:0[0-25]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[178]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[0239]))|87(?:20|7[078]|99))\\d{4}",
@@ -6831,7 +6832,7 @@ var intl_tel_input_default = intlTelInput;
6831
6832
  ,
6832
6833
  ,
6833
6834
  [8]
6834
- ], [, , "7(?:[78][0-25-9]|9\\d)\\d{6}", , , , "790123456", , , [9]], [, , "80\\d{6}", , , , "80012345", , , [8]], [, , "9\\d{7}", , , , "90012345", , , [8]], [, , "85\\d{6}", , , , "85012345", , , [8]], [, , "70\\d{7}", , , , "700123456", , , [9]], [, , , , , , , , , [-1]], "JO", 962, "00", "0", , , "0", , , , [[, "(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], [, "(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], [, "(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], [, "(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], , [
6835
+ ], [, , "(?:427|7(?:[78][0-25-9]|9\\d))\\d{6}", , , , "790123456", , , [9]], [, , "80\\d{6}", , , , "80012345", , , [8]], [, , "9\\d{7}", , , , "90012345", , , [8]], [, , "85\\d{6}", , , , "85012345", , , [8]], [, , "70\\d{7}", , , , "700123456", , , [9]], [, , , , , , , , , [-1]], "JO", 962, "00", "0", , , "0", , , , [[, "(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], [, "(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], [, "(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], [, "(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[47]"], "0$1"]], , [
6835
6836
  ,
6836
6837
  ,
6837
6838
  "74(?:66|77)\\d{5}",
@@ -7161,7 +7162,7 @@ var intl_tel_input_default = intlTelInput;
7161
7162
  ,
7162
7163
  "5002345678"
7163
7164
  ], [, , , , , , , , , [-1]], "LC", 1, "011", "1", , , "([2-8]\\d{6})$|1", "758$1", , , , , [, , , , , , , , , [-1]], , "758", [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7164
- LI: [, [, , "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", , , , , , , [7, 9]], [, , "(?:2(?:01|1[27]|2[024]|3\\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\\d{4}", , , , "2345678", , , [7]], [, , "(?:6(?:(?:4[5-9]|5\\d)\\d|6(?:[024-6]\\d|[17]0|3[7-9]))\\d|7(?:[37-9]\\d|42|56))\\d{4}", , , , "660234567"], [, , "8002[28]\\d\\d|80(?:05\\d|9)\\d{4}", , , , "8002222"], [
7165
+ LI: [, [, , "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", , , , , , , [7, 9]], [, , "(?:2(?:01|1[27]|2[024]|3\\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\\d{4}", , , , "2345678", , , [7]], [, , "(?:6(?:(?:4[5-9]|5\\d)\\d|6(?:[024-68]\\d|1[01]|3[7-9]|70))\\d|7(?:[37-9]\\d|42|56))\\d{4}", , , , "660234567"], [, , "8002[28]\\d\\d|80(?:05\\d|9)\\d{4}", , , , "8002222"], [
7165
7166
  ,
7166
7167
  ,
7167
7168
  "90(?:02[258]|1(?:23|3[14])|66[136])\\d\\d",
@@ -9006,7 +9007,7 @@ var intl_tel_input_default = intlTelInput;
9006
9007
  ], [
9007
9008
  ,
9008
9009
  ,
9009
- "3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}",
9010
+ "3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}",
9010
9011
  ,
9011
9012
  ,
9012
9013
  ,
@@ -9018,7 +9019,7 @@ var intl_tel_input_default = intlTelInput;
9018
9019
  ], [
9019
9020
  ,
9020
9021
  ,
9021
- "3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}",
9022
+ "3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}",
9022
9023
  ,
9023
9024
  ,
9024
9025
  ,
@@ -20,6 +20,7 @@ export { default as id, countryTranslations as idCountryTranslations, interfaceT
20
20
  export { default as it, countryTranslations as itCountryTranslations, interfaceTranslations as itInterfaceTranslations } from "./it";
21
21
  export { default as ja, countryTranslations as jaCountryTranslations, interfaceTranslations as jaInterfaceTranslations } from "./ja";
22
22
  export { default as ko, countryTranslations as koCountryTranslations, interfaceTranslations as koInterfaceTranslations } from "./ko";
23
+ export { default as lt, countryTranslations as ltCountryTranslations, interfaceTranslations as ltInterfaceTranslations } from "./lt";
23
24
  export { default as mr, countryTranslations as mrCountryTranslations, interfaceTranslations as mrInterfaceTranslations } from "./mr";
24
25
  export { default as nl, countryTranslations as nlCountryTranslations, interfaceTranslations as nlInterfaceTranslations } from "./nl";
25
26
  export { default as no, countryTranslations as noCountryTranslations, interfaceTranslations as noInterfaceTranslations } from "./no";
@@ -28,6 +29,9 @@ export { default as pt, countryTranslations as ptCountryTranslations, interfaceT
28
29
  export { default as ro, countryTranslations as roCountryTranslations, interfaceTranslations as roInterfaceTranslations } from "./ro";
29
30
  export { default as ru, countryTranslations as ruCountryTranslations, interfaceTranslations as ruInterfaceTranslations } from "./ru";
30
31
  export { default as sk, countryTranslations as skCountryTranslations, interfaceTranslations as skInterfaceTranslations } from "./sk";
32
+ export { default as sl, countryTranslations as slCountryTranslations, interfaceTranslations as slInterfaceTranslations } from "./sl";
33
+ export { default as sq, countryTranslations as sqCountryTranslations, interfaceTranslations as sqInterfaceTranslations } from "./sq";
34
+ export { default as sr, countryTranslations as srCountryTranslations, interfaceTranslations as srInterfaceTranslations } from "./sr";
31
35
  export { default as sv, countryTranslations as svCountryTranslations, interfaceTranslations as svInterfaceTranslations } from "./sv";
32
36
  export { default as te, countryTranslations as teCountryTranslations, interfaceTranslations as teInterfaceTranslations } from "./te";
33
37
  export { default as th, countryTranslations as thCountryTranslations, interfaceTranslations as thInterfaceTranslations } from "./th";
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const countryTranslations: I18n;
3
+ export default countryTranslations;
@@ -0,0 +1,6 @@
1
+ import { I18n } from "../types";
2
+ import countryTranslations from "./countries.js";
3
+ import interfaceTranslations from "./interface.js";
4
+ export { countryTranslations, interfaceTranslations };
5
+ declare const allTranslations: I18n;
6
+ export default allTranslations;
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const interfaceTranslations: I18n;
3
+ export default interfaceTranslations;
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const countryTranslations: I18n;
3
+ export default countryTranslations;
@@ -0,0 +1,6 @@
1
+ import { I18n } from "../types";
2
+ import countryTranslations from "./countries.js";
3
+ import interfaceTranslations from "./interface.js";
4
+ export { countryTranslations, interfaceTranslations };
5
+ declare const allTranslations: I18n;
6
+ export default allTranslations;
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const interfaceTranslations: I18n;
3
+ export default interfaceTranslations;
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const countryTranslations: I18n;
3
+ export default countryTranslations;
@@ -0,0 +1,6 @@
1
+ import { I18n } from "../types";
2
+ import countryTranslations from "./countries.js";
3
+ import interfaceTranslations from "./interface.js";
4
+ export { countryTranslations, interfaceTranslations };
5
+ declare const allTranslations: I18n;
6
+ export default allTranslations;
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const interfaceTranslations: I18n;
3
+ export default interfaceTranslations;
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const countryTranslations: I18n;
3
+ export default countryTranslations;
@@ -0,0 +1,6 @@
1
+ import { I18n } from "../types";
2
+ import countryTranslations from "./countries.js";
3
+ import interfaceTranslations from "./interface.js";
4
+ export { countryTranslations, interfaceTranslations };
5
+ declare const allTranslations: I18n;
6
+ export default allTranslations;
@@ -0,0 +1,3 @@
1
+ import { I18n } from "../types";
2
+ declare const interfaceTranslations: I18n;
3
+ export default interfaceTranslations;
@@ -63,6 +63,7 @@ export declare const US: {
63
63
  export declare const PLACEHOLDER_MODES: {
64
64
  readonly AGGRESSIVE: "aggressive";
65
65
  readonly POLITE: "polite";
66
+ readonly OFF: "off";
66
67
  };
67
68
  export declare const INITIAL_COUNTRY: {
68
69
  readonly AUTO: "auto";
@@ -1,6 +1,7 @@
1
1
  import type { Country, Iso2 } from "../../intl-tel-input/data";
2
2
  import type { I18n } from "../../intl-tel-input/i18n/types";
3
3
  import type { Iti } from "../../intl-tel-input";
4
+ import type { PLACEHOLDER_MODES } from "../constants";
4
5
  export type UtilsLoader = () => Promise<{
5
6
  default: ItiUtils;
6
7
  }>;
@@ -23,14 +24,15 @@ export type ItiUtils = {
23
24
  numberType: Record<string, number>;
24
25
  };
25
26
  export type NumberType = "FIXED_LINE_OR_MOBILE" | "FIXED_LINE" | "MOBILE" | "PAGER" | "PERSONAL_NUMBER" | "PREMIUM_RATE" | "SHARED_COST" | "TOLL_FREE" | "UAN" | "UNKNOWN" | "VOICEMAIL" | "VOIP";
27
+ type ValueOf<T> = T[keyof T];
26
28
  export interface AllOptions {
27
29
  allowDropdown: boolean;
28
30
  allowPhonewords: boolean;
29
- autoPlaceholder: string;
31
+ autoPlaceholder: ValueOf<typeof PLACEHOLDER_MODES>;
30
32
  containerClass: string;
31
33
  countryOrder: Iso2[] | null;
32
34
  countrySearch: boolean;
33
- customPlaceholder: ((selectedCountryPlaceholder: string, selectedCountryData: object) => string) | null;
35
+ customPlaceholder: ((selectedCountryPlaceholder: string, selectedCountryData: SelectedCountryData) => string) | null;
34
36
  dropdownContainer: HTMLElement | null;
35
37
  excludeCountries: Iso2[];
36
38
  fixDropdownWidth: boolean;
package/build/js/data.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v25.11.2
2
+ * International Telephone Input v25.12.0
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v25.11.2
2
+ * International Telephone Input v25.12.0
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */
@@ -20,6 +20,7 @@ export { default as id, countryTranslations as idCountryTranslations, interfaceT
20
20
  export { default as it, countryTranslations as itCountryTranslations, interfaceTranslations as itInterfaceTranslations } from "./it";
21
21
  export { default as ja, countryTranslations as jaCountryTranslations, interfaceTranslations as jaInterfaceTranslations } from "./ja";
22
22
  export { default as ko, countryTranslations as koCountryTranslations, interfaceTranslations as koInterfaceTranslations } from "./ko";
23
+ export { default as lt, countryTranslations as ltCountryTranslations, interfaceTranslations as ltInterfaceTranslations } from "./lt";
23
24
  export { default as mr, countryTranslations as mrCountryTranslations, interfaceTranslations as mrInterfaceTranslations } from "./mr";
24
25
  export { default as nl, countryTranslations as nlCountryTranslations, interfaceTranslations as nlInterfaceTranslations } from "./nl";
25
26
  export { default as no, countryTranslations as noCountryTranslations, interfaceTranslations as noInterfaceTranslations } from "./no";
@@ -28,6 +29,9 @@ export { default as pt, countryTranslations as ptCountryTranslations, interfaceT
28
29
  export { default as ro, countryTranslations as roCountryTranslations, interfaceTranslations as roInterfaceTranslations } from "./ro";
29
30
  export { default as ru, countryTranslations as ruCountryTranslations, interfaceTranslations as ruInterfaceTranslations } from "./ru";
30
31
  export { default as sk, countryTranslations as skCountryTranslations, interfaceTranslations as skInterfaceTranslations } from "./sk";
32
+ export { default as sl, countryTranslations as slCountryTranslations, interfaceTranslations as slInterfaceTranslations } from "./sl";
33
+ export { default as sq, countryTranslations as sqCountryTranslations, interfaceTranslations as sqInterfaceTranslations } from "./sq";
34
+ export { default as sr, countryTranslations as srCountryTranslations, interfaceTranslations as srInterfaceTranslations } from "./sr";
31
35
  export { default as sv, countryTranslations as svCountryTranslations, interfaceTranslations as svInterfaceTranslations } from "./sv";
32
36
  export { default as te, countryTranslations as teCountryTranslations, interfaceTranslations as teInterfaceTranslations } from "./te";
33
37
  export { default as th, countryTranslations as thCountryTranslations, interfaceTranslations as thInterfaceTranslations } from "./th";