intl-tel-input 25.1.0 → 25.2.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.
- package/README.md +6 -6
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/i18n/index.js +1 -0
- package/build/js/i18n/uk/countries.js +245 -0
- package/build/js/i18n/uk/index.js +5 -0
- package/build/js/i18n/uk/interface.js +13 -0
- package/build/js/intlTelInput.d.ts +19 -1
- package/build/js/intlTelInput.js +3 -7
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +3 -7
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/package.json +1 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +2 -6
- package/react/build/IntlTelInput.d.ts +19 -1
- package/react/build/IntlTelInput.js +2 -6
- package/react/build/IntlTelInputWithUtils.cjs +2 -6
- package/react/build/IntlTelInputWithUtils.js +2 -6
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +3 -7
- package/vue/build/IntlTelInputWithUtils.mjs +3 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* International Telephone Input v25.
|
|
2
|
+
* International Telephone Input v25.2.0
|
|
3
3
|
* https://github.com/jackocnr/intl-tel-input.git
|
|
4
4
|
* Licensed under the MIT license
|
|
5
5
|
*/
|
|
@@ -2595,10 +2595,6 @@ var factoryOutput = (() => {
|
|
|
2595
2595
|
const selectedDialCode = this.selectedCountryData.dialCode;
|
|
2596
2596
|
number = this._ensureHasDialCode(number);
|
|
2597
2597
|
const dialCodeMatch = this._getDialCode(number, true);
|
|
2598
|
-
if (dialCodeMatch && dialCodeMatch === this.prevDialCodeMatch) {
|
|
2599
|
-
return null;
|
|
2600
|
-
}
|
|
2601
|
-
this.prevDialCodeMatch = dialCodeMatch;
|
|
2602
2598
|
const numeric = getNumeric(number);
|
|
2603
2599
|
if (dialCodeMatch) {
|
|
2604
2600
|
const dialCodeMatchNumeric = getNumeric(dialCodeMatch);
|
|
@@ -2606,7 +2602,7 @@ var factoryOutput = (() => {
|
|
|
2606
2602
|
if (!selectedIso2 && this.defaultCountry && iso2Codes.includes(this.defaultCountry)) {
|
|
2607
2603
|
return this.defaultCountry;
|
|
2608
2604
|
}
|
|
2609
|
-
const alreadySelected = selectedIso2 && iso2Codes.includes(selectedIso2) && numeric.length === dialCodeMatchNumeric.length;
|
|
2605
|
+
const alreadySelected = selectedIso2 && iso2Codes.includes(selectedIso2) && (numeric.length === dialCodeMatchNumeric.length || !this.selectedCountryData.areaCodes);
|
|
2610
2606
|
const isRegionlessNanpNumber = selectedDialCode === "1" && isRegionlessNanp(numeric);
|
|
2611
2607
|
if (!isRegionlessNanpNumber && !alreadySelected) {
|
|
2612
2608
|
for (let j = 0; j < iso2Codes.length; j++) {
|
|
@@ -3172,7 +3168,7 @@ var factoryOutput = (() => {
|
|
|
3172
3168
|
attachUtils,
|
|
3173
3169
|
startedLoadingUtilsScript: false,
|
|
3174
3170
|
startedLoadingAutoCountry: false,
|
|
3175
|
-
version: "25.
|
|
3171
|
+
version: "25.2.0"
|
|
3176
3172
|
}
|
|
3177
3173
|
);
|
|
3178
3174
|
var intl_tel_input_default = intlTelInput;
|