intl-tel-input 25.12.1 → 25.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/angular/README.md +1 -1
- package/angular/build/IntlTelInput.js +14 -6
- package/angular/build/IntlTelInputWithUtils.js +66 -44
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.js +15 -7
- package/build/js/intlTelInput.min.js +3 -3
- package/build/js/intlTelInputWithUtils.js +67 -45
- package/build/js/intlTelInputWithUtils.min.js +3 -3
- package/build/js/utils.js +16 -16
- package/package.json +1 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +14 -6
- package/react/build/IntlTelInput.js +14 -6
- package/react/build/IntlTelInputWithUtils.cjs +66 -44
- package/react/build/IntlTelInputWithUtils.js +66 -44
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +34 -37
- package/vue/build/IntlTelInputWithUtils.mjs +67 -56
package/README.md
CHANGED
|
@@ -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.12.
|
|
84
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.3/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.12.
|
|
89
|
+
<script src="https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.3/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.12.
|
|
93
|
+
loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.3/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.12.
|
|
336
|
+
loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.3/build/js/utils.js"),
|
|
337
337
|
});
|
|
338
338
|
|
|
339
339
|
// (B) import utils module from your own hosted version of utils.js
|
|
@@ -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.12.
|
|
620
|
+
loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.3/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
|
@@ -29,7 +29,7 @@ import "intl-tel-input/styles";
|
|
|
29
29
|
|
|
30
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 { 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.
|
|
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.3/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.
|
|
@@ -3400,6 +3400,10 @@ var Iti = class _Iti {
|
|
|
3400
3400
|
return iso2Codes[0];
|
|
3401
3401
|
}
|
|
3402
3402
|
} else if (number.startsWith("+") && numeric.length) {
|
|
3403
|
+
const currentDial = this.selectedCountryData.dialCode || "";
|
|
3404
|
+
if (currentDial && currentDial.startsWith(numeric)) {
|
|
3405
|
+
return null;
|
|
3406
|
+
}
|
|
3403
3407
|
return "";
|
|
3404
3408
|
} else if ((!number || number === "+") && !selectedIso2) {
|
|
3405
3409
|
return this.defaultCountry;
|
|
@@ -3534,19 +3538,23 @@ var Iti = class _Iti {
|
|
|
3534
3538
|
let dialCode = "";
|
|
3535
3539
|
if (number.startsWith("+")) {
|
|
3536
3540
|
let numericChars = "";
|
|
3541
|
+
let foundBaseDialCode = false;
|
|
3537
3542
|
for (let i = 0; i < number.length; i++) {
|
|
3538
3543
|
const c = number.charAt(i);
|
|
3539
3544
|
if (/[0-9]/.test(c)) {
|
|
3540
3545
|
numericChars += c;
|
|
3541
|
-
const
|
|
3542
|
-
if (!
|
|
3546
|
+
const hasMapEntry = Boolean(this.dialCodeToIso2Map[numericChars]);
|
|
3547
|
+
if (!hasMapEntry) {
|
|
3543
3548
|
break;
|
|
3544
3549
|
}
|
|
3545
|
-
if (
|
|
3550
|
+
if (this.dialCodes.has(numericChars)) {
|
|
3546
3551
|
dialCode = number.substring(0, i + 1);
|
|
3547
|
-
|
|
3552
|
+
foundBaseDialCode = true;
|
|
3553
|
+
if (!includeAreaCode) {
|
|
3554
|
+
break;
|
|
3555
|
+
}
|
|
3556
|
+
} else if (includeAreaCode && foundBaseDialCode) {
|
|
3548
3557
|
dialCode = number.substring(0, i + 1);
|
|
3549
|
-
break;
|
|
3550
3558
|
}
|
|
3551
3559
|
if (numericChars.length === this.dialCodeMaxLen) {
|
|
3552
3560
|
break;
|
|
@@ -3799,7 +3807,7 @@ var intlTelInput = Object.assign((input, options) => {
|
|
|
3799
3807
|
attachUtils,
|
|
3800
3808
|
startedLoadingUtilsScript: false,
|
|
3801
3809
|
startedLoadingAutoCountry: false,
|
|
3802
|
-
version: "25.12.
|
|
3810
|
+
version: "25.12.3"
|
|
3803
3811
|
});
|
|
3804
3812
|
var intl_tel_input_default = intlTelInput;
|
|
3805
3813
|
|
|
@@ -3400,6 +3400,10 @@ var Iti = class _Iti {
|
|
|
3400
3400
|
return iso2Codes[0];
|
|
3401
3401
|
}
|
|
3402
3402
|
} else if (number.startsWith("+") && numeric.length) {
|
|
3403
|
+
const currentDial = this.selectedCountryData.dialCode || "";
|
|
3404
|
+
if (currentDial && currentDial.startsWith(numeric)) {
|
|
3405
|
+
return null;
|
|
3406
|
+
}
|
|
3403
3407
|
return "";
|
|
3404
3408
|
} else if ((!number || number === "+") && !selectedIso2) {
|
|
3405
3409
|
return this.defaultCountry;
|
|
@@ -3534,19 +3538,23 @@ var Iti = class _Iti {
|
|
|
3534
3538
|
let dialCode = "";
|
|
3535
3539
|
if (number.startsWith("+")) {
|
|
3536
3540
|
let numericChars = "";
|
|
3541
|
+
let foundBaseDialCode = false;
|
|
3537
3542
|
for (let i = 0; i < number.length; i++) {
|
|
3538
3543
|
const c = number.charAt(i);
|
|
3539
3544
|
if (/[0-9]/.test(c)) {
|
|
3540
3545
|
numericChars += c;
|
|
3541
|
-
const
|
|
3542
|
-
if (!
|
|
3546
|
+
const hasMapEntry = Boolean(this.dialCodeToIso2Map[numericChars]);
|
|
3547
|
+
if (!hasMapEntry) {
|
|
3543
3548
|
break;
|
|
3544
3549
|
}
|
|
3545
|
-
if (
|
|
3550
|
+
if (this.dialCodes.has(numericChars)) {
|
|
3546
3551
|
dialCode = number.substring(0, i + 1);
|
|
3547
|
-
|
|
3552
|
+
foundBaseDialCode = true;
|
|
3553
|
+
if (!includeAreaCode) {
|
|
3554
|
+
break;
|
|
3555
|
+
}
|
|
3556
|
+
} else if (includeAreaCode && foundBaseDialCode) {
|
|
3548
3557
|
dialCode = number.substring(0, i + 1);
|
|
3549
|
-
break;
|
|
3550
3558
|
}
|
|
3551
3559
|
if (numericChars.length === this.dialCodeMaxLen) {
|
|
3552
3560
|
break;
|
|
@@ -3799,7 +3807,7 @@ var intlTelInput = Object.assign((input, options) => {
|
|
|
3799
3807
|
attachUtils,
|
|
3800
3808
|
startedLoadingUtilsScript: false,
|
|
3801
3809
|
startedLoadingAutoCountry: false,
|
|
3802
|
-
version: "25.12.
|
|
3810
|
+
version: "25.12.3"
|
|
3803
3811
|
});
|
|
3804
3812
|
var intl_tel_input_default = intlTelInput;
|
|
3805
3813
|
|
|
@@ -4768,7 +4776,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
4768
4776
|
[9],
|
|
4769
4777
|
[8]
|
|
4770
4778
|
],
|
|
4771
|
-
[, , "4(?:79[01]|83[0-
|
|
4779
|
+
[, , "4(?:79[01]|83[0-36-9])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", , , , "412345678", , , [9]],
|
|
4772
4780
|
[, , "180(?:0\\d{3}|2)\\d{3}", , , , "1800123456", , , [7, 10]],
|
|
4773
4781
|
[, , "190[0-26]\\d{6}", , , , "1900123456", , , [10]],
|
|
4774
4782
|
[, , "13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", , , , "1300123456", , , [6, 8, 10, 12]],
|
|
@@ -4784,12 +4792,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
4784
4792
|
,
|
|
4785
4793
|
"0011",
|
|
4786
4794
|
,
|
|
4787
|
-
[[, "(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], [, "(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["13"]], [, "(\\d{3})(\\d{3})", "$1 $2", ["19"]], [, "(\\d{3})(\\d{4})", "$1 $2", ["180", "1802"]], [, "(\\d{4})(\\d{3,4})", "$1 $2", ["19"]], [, "(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], [, "(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)", "$CC ($1)"], [, "(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]], [
|
|
4788
|
-
,
|
|
4789
|
-
"(\\d{4})(\\d{4})(\\d{4})",
|
|
4790
|
-
"$1 $2 $3",
|
|
4791
|
-
["130"]
|
|
4792
|
-
]],
|
|
4795
|
+
[[, "(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], [, "(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["13"]], [, "(\\d{3})(\\d{3})", "$1 $2", ["19"]], [, "(\\d{3})(\\d{4})", "$1 $2", ["180", "1802"]], [, "(\\d{4})(\\d{3,4})", "$1 $2", ["19"]], [, "(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], [, "(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)", "$CC ($1)"], [, "(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]], [, "(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["130"]]],
|
|
4793
4796
|
[[, "(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], [, "(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)", "$CC ($1)"], [, "(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]],
|
|
4794
4797
|
[, , "163\\d{2,6}", , , , "1631234", , , [5, 6, 7, 8, 9]],
|
|
4795
4798
|
1,
|
|
@@ -4800,18 +4803,37 @@ var intl_tel_input_default = intlTelInput;
|
|
|
4800
4803
|
,
|
|
4801
4804
|
[, , , , , , , , , [-1]]
|
|
4802
4805
|
],
|
|
4803
|
-
AW: [
|
|
4806
|
+
AW: [
|
|
4807
|
+
,
|
|
4808
|
+
[, , "(?:[25-79]\\d\\d|800)\\d{4}", , , , , , , [7]],
|
|
4809
|
+
[, , "5(?:2\\d|8[1-9])\\d{4}", , , , "5212345"],
|
|
4810
|
+
[, , "(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4-8]))\\d{4}", , , , "5601234"],
|
|
4811
|
+
[, , "800\\d{4}", , , , "8001234"],
|
|
4812
|
+
[, , "900\\d{4}", , , , "9001234"],
|
|
4813
|
+
[, , , , , , , , , [-1]],
|
|
4814
|
+
[, , , , , , , , , [-1]],
|
|
4815
|
+
[, , "(?:28\\d|501)\\d{4}", , , , "5011234"],
|
|
4816
|
+
"AW",
|
|
4817
|
+
297,
|
|
4818
|
+
"00",
|
|
4804
4819
|
,
|
|
4805
4820
|
,
|
|
4806
|
-
"(?:[25-79]\\d\\d|800)\\d{4}",
|
|
4807
4821
|
,
|
|
4808
4822
|
,
|
|
4809
4823
|
,
|
|
4810
4824
|
,
|
|
4811
4825
|
,
|
|
4826
|
+
[[, "(\\d{3})(\\d{4})", "$1 $2", ["[25-9]"]]],
|
|
4812
4827
|
,
|
|
4813
|
-
[
|
|
4814
|
-
|
|
4828
|
+
[, , , , , , , , , [-1]],
|
|
4829
|
+
,
|
|
4830
|
+
,
|
|
4831
|
+
[, , , , , , , , , [-1]],
|
|
4832
|
+
[, , , , , , , , , [-1]],
|
|
4833
|
+
,
|
|
4834
|
+
,
|
|
4835
|
+
[, , , , , , , , , [-1]]
|
|
4836
|
+
],
|
|
4815
4837
|
AX: [, [
|
|
4816
4838
|
,
|
|
4817
4839
|
,
|
|
@@ -5252,7 +5274,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
5252
5274
|
CC: [, [, , "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", , , , , , , [6, 7, 8, 9, 10, 12]], [, , "8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}", , , , "891621234", , , [9], [8]], [
|
|
5253
5275
|
,
|
|
5254
5276
|
,
|
|
5255
|
-
"4(?:79[01]|83[0-
|
|
5277
|
+
"4(?:79[01]|83[0-36-9])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",
|
|
5256
5278
|
,
|
|
5257
5279
|
,
|
|
5258
5280
|
,
|
|
@@ -5542,7 +5564,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
5542
5564
|
CX: [, [, , "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", , , , , , , [6, 7, 8, 9, 10, 12]], [, , "8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", , , , "891641234", , , [9], [8]], [
|
|
5543
5565
|
,
|
|
5544
5566
|
,
|
|
5545
|
-
"4(?:79[01]|83[0-
|
|
5567
|
+
"4(?:79[01]|83[0-36-9])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",
|
|
5546
5568
|
,
|
|
5547
5569
|
,
|
|
5548
5570
|
,
|
|
@@ -6086,7 +6108,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
6086
6108
|
GB: [, [, , "[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}", , , , , , , [7, 9, 10], [4, 5, 6, 8]], [
|
|
6087
6109
|
,
|
|
6088
6110
|
,
|
|
6089
|
-
"(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-
|
|
6111
|
+
"(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",
|
|
6090
6112
|
,
|
|
6091
6113
|
,
|
|
6092
6114
|
,
|
|
@@ -7141,7 +7163,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
7141
7163
|
,
|
|
7142
7164
|
,
|
|
7143
7165
|
[7, 8]
|
|
7144
|
-
], [, , "7(?:62|8[0-6]|9[04-9])\\d{4}|(?:[14-69]\\d|2(?:[14-69]\\d|[78][1-9])|7[2-57]|8[02-9])\\d{5}", , , , "1123456"], [, , "(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[7-9]|9[
|
|
7166
|
+
], [, , "7(?:62|8[0-6]|9[04-9])\\d{4}|(?:[14-69]\\d|2(?:[14-69]\\d|[78][1-9])|7[2-57]|8[02-9])\\d{5}", , , , "1123456"], [, , "(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[7-9]|9[0-3]))\\d{5}", , , , "71123456"], [, , , , , , , , , [-1]], [, , "9[01]\\d{6}", , , , "90123456", , , [8]], [, , "80\\d{6}", , , , "80123456", , , [8]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "LB", 961, "00", "0", , , "0", , , , [[, "(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], , [
|
|
7145
7167
|
,
|
|
7146
7168
|
,
|
|
7147
7169
|
,
|
|
@@ -7385,7 +7407,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
7385
7407
|
,
|
|
7386
7408
|
,
|
|
7387
7409
|
[7]
|
|
7388
|
-
], [, , "3[2-
|
|
7410
|
+
], [, , "3[2-46-9]\\d{7}", , , , "321234567"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "22\\d{7}", , , , "221234567"], "MG", 261, "00", "0", , , "([24-9]\\d{6})$|0", "20$1", , , [[, "(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
7389
7411
|
MH: [
|
|
7390
7412
|
,
|
|
7391
7413
|
[, , "329\\d{4}|(?:[256]\\d|45)\\d{5}", , , , , , , [7]],
|
|
@@ -8576,15 +8598,15 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8576
8598
|
,
|
|
8577
8599
|
[, , , , , , , , , [-1]]
|
|
8578
8600
|
],
|
|
8579
|
-
SN: [, [, , "(?:[378]\\d|93)\\d{7}", , , , , , , [9]], [, , "3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}", , , , "301012345"], [
|
|
8601
|
+
SN: [, [, , "(?:[378]\\d|93)\\d{7}", , , , , , , [9]], [, , "3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}", , , , "301012345"], [, , "7(?:[05-8]\\d|[19]0|21)\\d{6}", , , , "701234567"], [
|
|
8580
8602
|
,
|
|
8581
8603
|
,
|
|
8582
|
-
"
|
|
8604
|
+
"800\\d{6}",
|
|
8583
8605
|
,
|
|
8584
8606
|
,
|
|
8585
8607
|
,
|
|
8586
|
-
"
|
|
8587
|
-
], [, , "
|
|
8608
|
+
"800123456"
|
|
8609
|
+
], [, , "88[4689]\\d{6}", , , , "884123456"], [, , "81[02468]\\d{6}", , , , "810123456"], [, , , , , , , , , [-1]], [, , "(?:3(?:392|9[01]\\d)\\d|93(?:3[13]0|929))\\d{4}", , , , "933301234"], "SN", 221, "00", , , , , , , , [[, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], [, "(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
8588
8610
|
SO: [, [, , "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", , , , , , , [6, 7, 8, 9]], [
|
|
8589
8611
|
,
|
|
8590
8612
|
,
|
|
@@ -8596,32 +8618,32 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8596
8618
|
,
|
|
8597
8619
|
,
|
|
8598
8620
|
[6, 7]
|
|
8599
|
-
], [, , "(?:(?:15|(?:3[59]|4[89]|6\\d|7[679]|8[08])\\d|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:[67]\\d\\d|904)\\d{5}", , , , "71123456", , , [7, 8, 9]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "SO", 252, "00", "0", , , "0", , , , [
|
|
8600
|
-
,
|
|
8601
|
-
"(\\d
|
|
8602
|
-
"$1 $2",
|
|
8603
|
-
["(?:2|90)4|[67]"]
|
|
8604
|
-
|
|
8605
|
-
|
|
8621
|
+
], [, , "(?:(?:15|(?:3[59]|4[89]|6\\d|7[679]|8[08])\\d|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:[67]\\d\\d|904)\\d{5}", , , , "71123456", , , [7, 8, 9]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "SO", 252, "00", "0", , , "0", , , , [
|
|
8622
|
+
[, "(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]],
|
|
8623
|
+
[, "(\\d{6})", "$1", ["[134]"]],
|
|
8624
|
+
[, "(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],
|
|
8625
|
+
[, "(\\d)(\\d{7})", "$1 $2", ["(?:2|90)4|[67]"]],
|
|
8626
|
+
[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[348]|64|79|90"]],
|
|
8627
|
+
[, "(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6[0-35-9]|7[67]|9[2-9]"]]
|
|
8628
|
+
], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
8629
|
+
SR: [, [, , "(?:[2-5]|[6-8]\\d|90)\\d{5}", , , , , , , [6, 7]], [, , "(?:2[1-3]|3[0-7]|4\\d|5[2-58])\\d{4}", , , , "211234", , , [6]], [, , "(?:6[08]|7[124-7]|8[1-9])\\d{5}", , , , "7412345", , , [7]], [, , "80\\d{5}", , , , "8012345", , , [7]], [, , "90\\d{5}", , , , "9012345", , , [7]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "56\\d{4}", , , , "561234", , , [6]], "SR", 597, "00", , , , , , , , [
|
|
8630
|
+
[, "(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]],
|
|
8631
|
+
[, "(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]],
|
|
8632
|
+
[, "(\\d{3})(\\d{4})", "$1-$2", ["[6-9]"]]
|
|
8633
|
+
], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
8634
|
+
SS: [, [, , "[19]\\d{8}", , , , , , , [9]], [, , "1[89]\\d{7}", , , , "181234567"], [, , "(?:12|9[1257-9])\\d{7}", , , , "977123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "SS", 211, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
8635
|
+
ST: [, [
|
|
8606
8636
|
,
|
|
8607
8637
|
,
|
|
8608
|
-
"
|
|
8638
|
+
"(?:22|9\\d)\\d{5}",
|
|
8609
8639
|
,
|
|
8610
8640
|
,
|
|
8611
8641
|
,
|
|
8612
|
-
"561234",
|
|
8613
8642
|
,
|
|
8614
8643
|
,
|
|
8615
|
-
[6]
|
|
8616
|
-
], "SR", 597, "00", , , , , , , , [[, "(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], [, "(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], [, "(\\d{3})(\\d{4})", "$1-$2", ["[6-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
8617
|
-
SS: [, [, , "[19]\\d{8}", , , , , , , [9]], [, , "1[89]\\d{7}", , , , "181234567"], [, , "(?:12|9[1257-9])\\d{7}", , , , "977123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "SS", 211, "00", "0", , , "0", , , , [[
|
|
8618
8644
|
,
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
["[19]"],
|
|
8622
|
-
"0$1"
|
|
8623
|
-
]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
8624
|
-
ST: [, [, , "(?:22|9\\d)\\d{5}", , , , , , , [7]], [, , "22\\d{5}", , , , "2221234"], [, , "900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}", , , , "9812345"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "ST", 239, "00", , , , , , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
8645
|
+
[7]
|
|
8646
|
+
], [, , "22\\d{5}", , , , "2221234"], [, , "900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}", , , , "9812345"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "ST", 239, "00", , , , , , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
8625
8647
|
SV: [, [, , "[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", , , , , , , [7, 8, 11]], [
|
|
8626
8648
|
,
|
|
8627
8649
|
,
|
package/build/js/data.js
CHANGED
package/build/js/data.min.js
CHANGED
package/build/js/intlTelInput.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* International Telephone Input v25.12.
|
|
2
|
+
* International Telephone Input v25.12.3
|
|
3
3
|
* https://github.com/jackocnr/intl-tel-input.git
|
|
4
4
|
* Licensed under the MIT license
|
|
5
5
|
*/
|
|
@@ -3589,6 +3589,10 @@ var factoryOutput = (() => {
|
|
|
3589
3589
|
return iso2Codes[0];
|
|
3590
3590
|
}
|
|
3591
3591
|
} else if (number.startsWith("+") && numeric.length) {
|
|
3592
|
+
const currentDial = this.selectedCountryData.dialCode || "";
|
|
3593
|
+
if (currentDial && currentDial.startsWith(numeric)) {
|
|
3594
|
+
return null;
|
|
3595
|
+
}
|
|
3592
3596
|
return "";
|
|
3593
3597
|
} else if ((!number || number === "+") && !selectedIso2) {
|
|
3594
3598
|
return this.defaultCountry;
|
|
@@ -3741,19 +3745,23 @@ var factoryOutput = (() => {
|
|
|
3741
3745
|
let dialCode = "";
|
|
3742
3746
|
if (number.startsWith("+")) {
|
|
3743
3747
|
let numericChars = "";
|
|
3748
|
+
let foundBaseDialCode = false;
|
|
3744
3749
|
for (let i = 0; i < number.length; i++) {
|
|
3745
3750
|
const c = number.charAt(i);
|
|
3746
3751
|
if (/[0-9]/.test(c)) {
|
|
3747
3752
|
numericChars += c;
|
|
3748
|
-
const
|
|
3749
|
-
if (!
|
|
3753
|
+
const hasMapEntry = Boolean(this.dialCodeToIso2Map[numericChars]);
|
|
3754
|
+
if (!hasMapEntry) {
|
|
3750
3755
|
break;
|
|
3751
3756
|
}
|
|
3752
|
-
if (
|
|
3757
|
+
if (this.dialCodes.has(numericChars)) {
|
|
3753
3758
|
dialCode = number.substring(0, i + 1);
|
|
3754
|
-
|
|
3759
|
+
foundBaseDialCode = true;
|
|
3760
|
+
if (!includeAreaCode) {
|
|
3761
|
+
break;
|
|
3762
|
+
}
|
|
3763
|
+
} else if (includeAreaCode && foundBaseDialCode) {
|
|
3755
3764
|
dialCode = number.substring(0, i + 1);
|
|
3756
|
-
break;
|
|
3757
3765
|
}
|
|
3758
3766
|
if (numericChars.length === this.dialCodeMaxLen) {
|
|
3759
3767
|
break;
|
|
@@ -4037,7 +4045,7 @@ var factoryOutput = (() => {
|
|
|
4037
4045
|
attachUtils,
|
|
4038
4046
|
startedLoadingUtilsScript: false,
|
|
4039
4047
|
startedLoadingAutoCountry: false,
|
|
4040
|
-
version: "25.12.
|
|
4048
|
+
version: "25.12.3"
|
|
4041
4049
|
}
|
|
4042
4050
|
);
|
|
4043
4051
|
var intl_tel_input_default = intlTelInput;
|