intl-tel-input 25.5.1 → 25.5.2
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/build/IntlTelInput.js +4 -3
- package/angular/build/IntlTelInputWithUtils.js +4 -3
- package/build/css/intlTelInput.css +5 -0
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.js +5 -4
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +5 -4
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/package.json +1 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +4 -3
- package/react/build/IntlTelInput.js +4 -3
- package/react/build/IntlTelInputWithUtils.cjs +4 -3
- package/react/build/IntlTelInputWithUtils.js +4 -3
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +4 -4
- package/vue/build/IntlTelInputWithUtils.mjs +4 -4
- package/angular/build/intl-tel-input.js +0 -1814
package/package.json
CHANGED
package/react/README.md
CHANGED
|
@@ -28,7 +28,7 @@ import "intl-tel-input/styles";
|
|
|
28
28
|
|
|
29
29
|
See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/react/demo/validation/ValidationApp.tsx) for a more fleshed-out example of how to handle validation.
|
|
30
30
|
|
|
31
|
-
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/reactWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/react"` 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.5.
|
|
31
|
+
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/reactWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/react"` 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.5.2/build/js/utils.js"`.
|
|
32
32
|
|
|
33
33
|
## Props
|
|
34
34
|
Here's a list of all of the current props you can pass to the IntlTelInput React component.
|
|
@@ -1790,6 +1790,7 @@ var Iti = class {
|
|
|
1790
1790
|
}
|
|
1791
1791
|
this.isAndroid = typeof navigator !== "undefined" ? /Android/i.test(navigator.userAgent) : false;
|
|
1792
1792
|
this.isRTL = !!this.telInput.closest("[dir=rtl]");
|
|
1793
|
+
this.telInput.dir = "ltr";
|
|
1793
1794
|
const showOnDefaultSide = this.options.allowDropdown || this.options.separateDialCode;
|
|
1794
1795
|
this.showSelectedCountryOnLeft = this.isRTL ? !showOnDefaultSide : showOnDefaultSide;
|
|
1795
1796
|
if (this.options.separateDialCode) {
|
|
@@ -2008,7 +2009,7 @@ var Iti = class {
|
|
|
2008
2009
|
if (separateDialCode) {
|
|
2009
2010
|
this.selectedDialCode = createEl(
|
|
2010
2011
|
"div",
|
|
2011
|
-
{ class: "iti__selected-dial-code", "aria-hidden": "true" },
|
|
2012
|
+
{ class: "iti__selected-dial-code", "aria-hidden": "true", dir: "ltr" },
|
|
2012
2013
|
this.selectedCountry
|
|
2013
2014
|
);
|
|
2014
2015
|
}
|
|
@@ -2126,7 +2127,7 @@ var Iti = class {
|
|
|
2126
2127
|
content += `<div class='iti__flag iti__${c.iso2}'></div>`;
|
|
2127
2128
|
}
|
|
2128
2129
|
content += `<span class='iti__country-name'>${c.name}</span>`;
|
|
2129
|
-
content += `<span class='iti__dial-code'>+${c.dialCode}</span>`;
|
|
2130
|
+
content += `<span class='iti__dial-code' dir='ltr'>+${c.dialCode}</span>`;
|
|
2130
2131
|
listItem.insertAdjacentHTML("beforeend", content);
|
|
2131
2132
|
}
|
|
2132
2133
|
}
|
|
@@ -3202,7 +3203,7 @@ var intlTelInput = Object.assign(
|
|
|
3202
3203
|
attachUtils,
|
|
3203
3204
|
startedLoadingUtilsScript: false,
|
|
3204
3205
|
startedLoadingAutoCountry: false,
|
|
3205
|
-
version: "25.5.
|
|
3206
|
+
version: "25.5.2"
|
|
3206
3207
|
}
|
|
3207
3208
|
);
|
|
3208
3209
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -1754,6 +1754,7 @@ var Iti = class {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
this.isAndroid = typeof navigator !== "undefined" ? /Android/i.test(navigator.userAgent) : false;
|
|
1756
1756
|
this.isRTL = !!this.telInput.closest("[dir=rtl]");
|
|
1757
|
+
this.telInput.dir = "ltr";
|
|
1757
1758
|
const showOnDefaultSide = this.options.allowDropdown || this.options.separateDialCode;
|
|
1758
1759
|
this.showSelectedCountryOnLeft = this.isRTL ? !showOnDefaultSide : showOnDefaultSide;
|
|
1759
1760
|
if (this.options.separateDialCode) {
|
|
@@ -1972,7 +1973,7 @@ var Iti = class {
|
|
|
1972
1973
|
if (separateDialCode) {
|
|
1973
1974
|
this.selectedDialCode = createEl(
|
|
1974
1975
|
"div",
|
|
1975
|
-
{ class: "iti__selected-dial-code", "aria-hidden": "true" },
|
|
1976
|
+
{ class: "iti__selected-dial-code", "aria-hidden": "true", dir: "ltr" },
|
|
1976
1977
|
this.selectedCountry
|
|
1977
1978
|
);
|
|
1978
1979
|
}
|
|
@@ -2090,7 +2091,7 @@ var Iti = class {
|
|
|
2090
2091
|
content += `<div class='iti__flag iti__${c.iso2}'></div>`;
|
|
2091
2092
|
}
|
|
2092
2093
|
content += `<span class='iti__country-name'>${c.name}</span>`;
|
|
2093
|
-
content += `<span class='iti__dial-code'>+${c.dialCode}</span>`;
|
|
2094
|
+
content += `<span class='iti__dial-code' dir='ltr'>+${c.dialCode}</span>`;
|
|
2094
2095
|
listItem.insertAdjacentHTML("beforeend", content);
|
|
2095
2096
|
}
|
|
2096
2097
|
}
|
|
@@ -3166,7 +3167,7 @@ var intlTelInput = Object.assign(
|
|
|
3166
3167
|
attachUtils,
|
|
3167
3168
|
startedLoadingUtilsScript: false,
|
|
3168
3169
|
startedLoadingAutoCountry: false,
|
|
3169
|
-
version: "25.5.
|
|
3170
|
+
version: "25.5.2"
|
|
3170
3171
|
}
|
|
3171
3172
|
);
|
|
3172
3173
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -1790,6 +1790,7 @@ var Iti = class {
|
|
|
1790
1790
|
}
|
|
1791
1791
|
this.isAndroid = typeof navigator !== "undefined" ? /Android/i.test(navigator.userAgent) : false;
|
|
1792
1792
|
this.isRTL = !!this.telInput.closest("[dir=rtl]");
|
|
1793
|
+
this.telInput.dir = "ltr";
|
|
1793
1794
|
const showOnDefaultSide = this.options.allowDropdown || this.options.separateDialCode;
|
|
1794
1795
|
this.showSelectedCountryOnLeft = this.isRTL ? !showOnDefaultSide : showOnDefaultSide;
|
|
1795
1796
|
if (this.options.separateDialCode) {
|
|
@@ -2008,7 +2009,7 @@ var Iti = class {
|
|
|
2008
2009
|
if (separateDialCode) {
|
|
2009
2010
|
this.selectedDialCode = createEl(
|
|
2010
2011
|
"div",
|
|
2011
|
-
{ class: "iti__selected-dial-code", "aria-hidden": "true" },
|
|
2012
|
+
{ class: "iti__selected-dial-code", "aria-hidden": "true", dir: "ltr" },
|
|
2012
2013
|
this.selectedCountry
|
|
2013
2014
|
);
|
|
2014
2015
|
}
|
|
@@ -2126,7 +2127,7 @@ var Iti = class {
|
|
|
2126
2127
|
content += `<div class='iti__flag iti__${c.iso2}'></div>`;
|
|
2127
2128
|
}
|
|
2128
2129
|
content += `<span class='iti__country-name'>${c.name}</span>`;
|
|
2129
|
-
content += `<span class='iti__dial-code'>+${c.dialCode}</span>`;
|
|
2130
|
+
content += `<span class='iti__dial-code' dir='ltr'>+${c.dialCode}</span>`;
|
|
2130
2131
|
listItem.insertAdjacentHTML("beforeend", content);
|
|
2131
2132
|
}
|
|
2132
2133
|
}
|
|
@@ -3202,7 +3203,7 @@ var intlTelInput = Object.assign(
|
|
|
3202
3203
|
attachUtils,
|
|
3203
3204
|
startedLoadingUtilsScript: false,
|
|
3204
3205
|
startedLoadingAutoCountry: false,
|
|
3205
|
-
version: "25.5.
|
|
3206
|
+
version: "25.5.2"
|
|
3206
3207
|
}
|
|
3207
3208
|
);
|
|
3208
3209
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -1754,6 +1754,7 @@ var Iti = class {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
this.isAndroid = typeof navigator !== "undefined" ? /Android/i.test(navigator.userAgent) : false;
|
|
1756
1756
|
this.isRTL = !!this.telInput.closest("[dir=rtl]");
|
|
1757
|
+
this.telInput.dir = "ltr";
|
|
1757
1758
|
const showOnDefaultSide = this.options.allowDropdown || this.options.separateDialCode;
|
|
1758
1759
|
this.showSelectedCountryOnLeft = this.isRTL ? !showOnDefaultSide : showOnDefaultSide;
|
|
1759
1760
|
if (this.options.separateDialCode) {
|
|
@@ -1972,7 +1973,7 @@ var Iti = class {
|
|
|
1972
1973
|
if (separateDialCode) {
|
|
1973
1974
|
this.selectedDialCode = createEl(
|
|
1974
1975
|
"div",
|
|
1975
|
-
{ class: "iti__selected-dial-code", "aria-hidden": "true" },
|
|
1976
|
+
{ class: "iti__selected-dial-code", "aria-hidden": "true", dir: "ltr" },
|
|
1976
1977
|
this.selectedCountry
|
|
1977
1978
|
);
|
|
1978
1979
|
}
|
|
@@ -2090,7 +2091,7 @@ var Iti = class {
|
|
|
2090
2091
|
content += `<div class='iti__flag iti__${c.iso2}'></div>`;
|
|
2091
2092
|
}
|
|
2092
2093
|
content += `<span class='iti__country-name'>${c.name}</span>`;
|
|
2093
|
-
content += `<span class='iti__dial-code'>+${c.dialCode}</span>`;
|
|
2094
|
+
content += `<span class='iti__dial-code' dir='ltr'>+${c.dialCode}</span>`;
|
|
2094
2095
|
listItem.insertAdjacentHTML("beforeend", content);
|
|
2095
2096
|
}
|
|
2096
2097
|
}
|
|
@@ -3166,7 +3167,7 @@ var intlTelInput = Object.assign(
|
|
|
3166
3167
|
attachUtils,
|
|
3167
3168
|
startedLoadingUtilsScript: false,
|
|
3168
3169
|
startedLoadingAutoCountry: false,
|
|
3169
|
-
version: "25.5.
|
|
3170
|
+
version: "25.5.2"
|
|
3170
3171
|
}
|
|
3171
3172
|
);
|
|
3172
3173
|
var intl_tel_input_default = intlTelInput;
|
package/vue/README.md
CHANGED
|
@@ -34,7 +34,7 @@ See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master
|
|
|
34
34
|
"vue:demo": "vite --config vue/demo/[demo variant]/vite.config.js"
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
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/vueWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/vue"` 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.5.
|
|
37
|
+
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/vueWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/vue"` 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.5.2/build/js/utils.js"`.
|
|
38
38
|
|
|
39
39
|
## Props
|
|
40
40
|
Here's a list of all of the current props you can pass to the IntlTelInput Vue component.
|
|
@@ -1698,7 +1698,7 @@ class W {
|
|
|
1698
1698
|
}
|
|
1699
1699
|
//* Can't be private as it's called from intlTelInput convenience wrapper.
|
|
1700
1700
|
_init() {
|
|
1701
|
-
this.options.useFullscreenPopup && (this.options.fixDropdownWidth = !1), this.options.onlyCountries.length === 1 && (this.options.initialCountry = this.options.onlyCountries[0]), this.options.separateDialCode && (this.options.nationalMode = !1), this.options.allowDropdown && !this.options.showFlags && !this.options.separateDialCode && (this.options.nationalMode = !1), this.options.useFullscreenPopup && !this.options.dropdownContainer && (this.options.dropdownContainer = document.body), this.isAndroid = typeof navigator < "u" ? /Android/i.test(navigator.userAgent) : !1, this.isRTL = !!this.telInput.closest("[dir=rtl]");
|
|
1701
|
+
this.options.useFullscreenPopup && (this.options.fixDropdownWidth = !1), this.options.onlyCountries.length === 1 && (this.options.initialCountry = this.options.onlyCountries[0]), this.options.separateDialCode && (this.options.nationalMode = !1), this.options.allowDropdown && !this.options.showFlags && !this.options.separateDialCode && (this.options.nationalMode = !1), this.options.useFullscreenPopup && !this.options.dropdownContainer && (this.options.dropdownContainer = document.body), this.isAndroid = typeof navigator < "u" ? /Android/i.test(navigator.userAgent) : !1, this.isRTL = !!this.telInput.closest("[dir=rtl]"), this.telInput.dir = "ltr";
|
|
1702
1702
|
const t = this.options.allowDropdown || this.options.separateDialCode;
|
|
1703
1703
|
this.showSelectedCountryOnLeft = this.isRTL ? !t : t, this.options.separateDialCode && (this.isRTL ? this.originalPaddingRight = this.telInput.style.paddingRight : this.originalPaddingLeft = this.telInput.style.paddingLeft), this.options.i18n = { ...k, ...this.options.i18n };
|
|
1704
1704
|
const e = new Promise((s, n) => {
|
|
@@ -1837,7 +1837,7 @@ class W {
|
|
|
1837
1837
|
b
|
|
1838
1838
|
)), e && (this.selectedDialCode = m(
|
|
1839
1839
|
"div",
|
|
1840
|
-
{ class: "iti__selected-dial-code", "aria-hidden": "true" },
|
|
1840
|
+
{ class: "iti__selected-dial-code", "aria-hidden": "true", dir: "ltr" },
|
|
1841
1841
|
this.selectedCountry
|
|
1842
1842
|
)), t) {
|
|
1843
1843
|
const f = r ? "" : "iti--flexible-dropdown-width";
|
|
@@ -1914,7 +1914,7 @@ class W {
|
|
|
1914
1914
|
);
|
|
1915
1915
|
e.nodeById[this.id] = s;
|
|
1916
1916
|
let n = "";
|
|
1917
|
-
this.options.showFlags && (n += `<div class='iti__flag iti__${e.iso2}'></div>`), n += `<span class='iti__country-name'>${e.name}</span>`, n += `<span class='iti__dial-code'>+${e.dialCode}</span>`, s.insertAdjacentHTML("beforeend", n);
|
|
1917
|
+
this.options.showFlags && (n += `<div class='iti__flag iti__${e.iso2}'></div>`), n += `<span class='iti__country-name'>${e.name}</span>`, n += `<span class='iti__dial-code' dir='ltr'>+${e.dialCode}</span>`, s.insertAdjacentHTML("beforeend", n);
|
|
1918
1918
|
}
|
|
1919
1919
|
}
|
|
1920
1920
|
//* Set the initial state of the input value and the selected country by:
|
|
@@ -2537,7 +2537,7 @@ const G = (h) => {
|
|
|
2537
2537
|
attachUtils: G,
|
|
2538
2538
|
startedLoadingUtilsScript: !1,
|
|
2539
2539
|
startedLoadingAutoCountry: !1,
|
|
2540
|
-
version: "25.5.
|
|
2540
|
+
version: "25.5.2"
|
|
2541
2541
|
}
|
|
2542
2542
|
), Y = {
|
|
2543
2543
|
__name: "IntlTelInput",
|
|
@@ -1698,7 +1698,7 @@ class j2 {
|
|
|
1698
1698
|
}
|
|
1699
1699
|
//* Can't be private as it's called from intlTelInput convenience wrapper.
|
|
1700
1700
|
_init() {
|
|
1701
|
-
this.options.useFullscreenPopup && (this.options.fixDropdownWidth = !1), this.options.onlyCountries.length === 1 && (this.options.initialCountry = this.options.onlyCountries[0]), this.options.separateDialCode && (this.options.nationalMode = !1), this.options.allowDropdown && !this.options.showFlags && !this.options.separateDialCode && (this.options.nationalMode = !1), this.options.useFullscreenPopup && !this.options.dropdownContainer && (this.options.dropdownContainer = document.body), this.isAndroid = typeof navigator < "u" ? /Android/i.test(navigator.userAgent) : !1, this.isRTL = !!this.telInput.closest("[dir=rtl]");
|
|
1701
|
+
this.options.useFullscreenPopup && (this.options.fixDropdownWidth = !1), this.options.onlyCountries.length === 1 && (this.options.initialCountry = this.options.onlyCountries[0]), this.options.separateDialCode && (this.options.nationalMode = !1), this.options.allowDropdown && !this.options.showFlags && !this.options.separateDialCode && (this.options.nationalMode = !1), this.options.useFullscreenPopup && !this.options.dropdownContainer && (this.options.dropdownContainer = document.body), this.isAndroid = typeof navigator < "u" ? /Android/i.test(navigator.userAgent) : !1, this.isRTL = !!this.telInput.closest("[dir=rtl]"), this.telInput.dir = "ltr";
|
|
1702
1702
|
const e = this.options.allowDropdown || this.options.separateDialCode;
|
|
1703
1703
|
this.showSelectedCountryOnLeft = this.isRTL ? !e : e, this.options.separateDialCode && (this.isRTL ? this.originalPaddingRight = this.telInput.style.paddingRight : this.originalPaddingLeft = this.telInput.style.paddingLeft), this.options.i18n = { ...u2, ...this.options.i18n };
|
|
1704
1704
|
const i = new Promise((o, a) => {
|
|
@@ -1837,7 +1837,7 @@ class j2 {
|
|
|
1837
1837
|
O
|
|
1838
1838
|
)), i && (this.selectedDialCode = E(
|
|
1839
1839
|
"div",
|
|
1840
|
-
{ class: "iti__selected-dial-code", "aria-hidden": "true" },
|
|
1840
|
+
{ class: "iti__selected-dial-code", "aria-hidden": "true", dir: "ltr" },
|
|
1841
1841
|
this.selectedCountry
|
|
1842
1842
|
)), e) {
|
|
1843
1843
|
const T = g ? "" : "iti--flexible-dropdown-width";
|
|
@@ -1914,7 +1914,7 @@ class j2 {
|
|
|
1914
1914
|
);
|
|
1915
1915
|
i.nodeById[this.id] = o;
|
|
1916
1916
|
let a = "";
|
|
1917
|
-
this.options.showFlags && (a += `<div class='iti__flag iti__${i.iso2}'></div>`), a += `<span class='iti__country-name'>${i.name}</span>`, a += `<span class='iti__dial-code'>+${i.dialCode}</span>`, o.insertAdjacentHTML("beforeend", a);
|
|
1917
|
+
this.options.showFlags && (a += `<div class='iti__flag iti__${i.iso2}'></div>`), a += `<span class='iti__country-name'>${i.name}</span>`, a += `<span class='iti__dial-code' dir='ltr'>+${i.dialCode}</span>`, o.insertAdjacentHTML("beforeend", a);
|
|
1918
1918
|
}
|
|
1919
1919
|
}
|
|
1920
1920
|
//* Set the initial state of the input value and the selected country by:
|
|
@@ -2537,7 +2537,7 @@ const W2 = (I) => {
|
|
|
2537
2537
|
attachUtils: W2,
|
|
2538
2538
|
startedLoadingUtilsScript: !1,
|
|
2539
2539
|
startedLoadingAutoCountry: !1,
|
|
2540
|
-
version: "25.5.
|
|
2540
|
+
version: "25.5.2"
|
|
2541
2541
|
}
|
|
2542
2542
|
);
|
|
2543
2543
|
(function() {
|