@intl-tel-input/vue 29.5.8 → 29.5.10
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.
|
@@ -2543,17 +2543,15 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2543
2543
|
return this.#l = e ? this.#s.get(e) : null, this.#l && (this.#d = this.#l.iso2), this.#e.setSelectedCountry(this.#l), this.#$(), this.#Q(), t !== e;
|
|
2544
2544
|
}
|
|
2545
2545
|
#Q() {
|
|
2546
|
-
let { strictMode: e,
|
|
2546
|
+
let { strictMode: e, allowedNumberTypes: t } = this.#t;
|
|
2547
2547
|
if (!e || !Q.utils) return;
|
|
2548
|
-
|
|
2549
|
-
if (!r) {
|
|
2548
|
+
if (!this.#l) {
|
|
2550
2549
|
this.#u = null;
|
|
2551
2550
|
return;
|
|
2552
2551
|
}
|
|
2553
|
-
let
|
|
2554
|
-
for (; Q.utils.isValidNumber(i,
|
|
2555
|
-
|
|
2556
|
-
this.#u = o.length, r === "by" && (this.#u = o.length + 1);
|
|
2552
|
+
let { iso2: n, dialCode: r } = this.#l, i = `+${r}${"9".repeat(T)}`;
|
|
2553
|
+
for (; i.length > r.length + 1 && !Q.utils.isValidNumber(i, n, t);) i = i.slice(0, -1);
|
|
2554
|
+
this.#u = Q.utils.getCoreNumber(i, n).length || null, n === "by" && this.#u && (this.#u += 1);
|
|
2557
2555
|
}
|
|
2558
2556
|
#$() {
|
|
2559
2557
|
let { placeholderNumberPolicy: e, placeholderNumberType: t, numberDisplayFormat: n, customPlaceholder: r } = this.#t, i = e === O.AGGRESSIVE || !this.#e.hadInitialPlaceholder && e === O.POLITE;
|
|
@@ -2763,7 +2761,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2763
2761
|
},
|
|
2764
2762
|
startedLoadingUtils: !1,
|
|
2765
2763
|
startedLoadingAutoCountry: !1,
|
|
2766
|
-
version: "29.5.
|
|
2764
|
+
version: "29.5.10",
|
|
2767
2765
|
NUMBER_FORMAT: N,
|
|
2768
2766
|
NUMBER_TYPE: P,
|
|
2769
2767
|
VALIDATION_ERROR: F,
|
package/dist/IntlTelInput.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./IntlTelInput-
|
|
1
|
+
import { n as e, t } from "./IntlTelInput-K_lHx6uB.js";
|
|
2
2
|
//#region packages/core/dist/js/utils.js
|
|
3
3
|
var n = {};
|
|
4
4
|
//#endregion
|
|
@@ -49393,7 +49393,7 @@ var n = {};
|
|
|
49393
49393
|
}
|
|
49394
49394
|
}), t("utils.getCoreNumber", (e, t) => {
|
|
49395
49395
|
try {
|
|
49396
|
-
return
|
|
49396
|
+
return I(G(k.g(), e, t));
|
|
49397
49397
|
} catch {
|
|
49398
49398
|
return "";
|
|
49399
49399
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intl-tel-input/vue",
|
|
3
|
-
"version": "29.5.
|
|
3
|
+
"version": "29.5.10",
|
|
4
4
|
"description": "A Vue component for intl-tel-input, for entering, formatting, and validating international telephone numbers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"README.md"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"intl-tel-input": "^29.5.
|
|
27
|
+
"intl-tel-input": "^29.5.10"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"vue": "^3.0.0"
|