@intl-tel-input/vue 29.0.5 → 29.1.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.
|
@@ -2083,13 +2083,13 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2083
2083
|
let { onlyCountries: t, excludeCountries: n } = e;
|
|
2084
2084
|
return t?.length ? h.filter((e) => t.includes(e.iso2)) : n?.length ? h.filter((e) => !n.includes(e.iso2)) : [...h];
|
|
2085
2085
|
}, Se = (e, t) => {
|
|
2086
|
-
let { countryNameLocale: n, countryNameOverrides: r } = t, i;
|
|
2086
|
+
let { countryNameLocale: n, countryNameOverrides: r, uiTranslations: i } = t, a = i?.countryNames, o;
|
|
2087
2087
|
try {
|
|
2088
|
-
|
|
2088
|
+
o = typeof Intl < "u" && typeof Intl.DisplayNames == "function" ? new Intl.DisplayNames(n, { type: "region" }) : null;
|
|
2089
2089
|
} catch (e) {
|
|
2090
|
-
console.error(e),
|
|
2090
|
+
console.error(e), o = null;
|
|
2091
2091
|
}
|
|
2092
|
-
for (let t of e) t.name = r[t.iso2] ||
|
|
2092
|
+
for (let t of e) t.name = r[t.iso2] || a?.[t.iso2] || o?.of(t.iso2.toUpperCase()) || "";
|
|
2093
2093
|
}, Ce = (e) => {
|
|
2094
2094
|
let t = /* @__PURE__ */ new Set(), n = 0, r = {}, i = (e, t) => {
|
|
2095
2095
|
if (!e || !t) return;
|
|
@@ -2682,7 +2682,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2682
2682
|
},
|
|
2683
2683
|
startedLoadingUtils: !1,
|
|
2684
2684
|
startedLoadingAutoCountry: !1,
|
|
2685
|
-
version: "29.0
|
|
2685
|
+
version: "29.1.0",
|
|
2686
2686
|
NUMBER_FORMAT: M,
|
|
2687
2687
|
NUMBER_TYPE: N,
|
|
2688
2688
|
VALIDATION_ERROR: P,
|
package/dist/IntlTelInput.js
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { SomeOptions } from 'intl-tel-input';
|
|
2
|
-
import {
|
|
3
|
-
interface Props {
|
|
4
|
-
usePreciseValidation?: boolean;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
readonly?: boolean;
|
|
7
|
-
inputProps?: InputHTMLAttributes;
|
|
8
|
-
initialValue?: string | null;
|
|
9
|
-
modelValue?: string | null;
|
|
10
|
-
}
|
|
2
|
+
import { Props } from './props';
|
|
11
3
|
type __VLS_Props = Props & SomeOptions;
|
|
12
4
|
type StrictRejectSource = "key" | "paste";
|
|
13
5
|
type StrictRejectReason = "invalid" | "max-length";
|
|
@@ -36,7 +28,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
36
28
|
usePreciseValidation: boolean;
|
|
37
29
|
disabled: boolean;
|
|
38
30
|
readonly: boolean;
|
|
39
|
-
inputProps: InputHTMLAttributes;
|
|
31
|
+
inputProps: import('vue').InputHTMLAttributes;
|
|
40
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
41
33
|
input: HTMLInputElement;
|
|
42
34
|
}, any>;
|
package/dist/index.d.ts
CHANGED
package/dist/props.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intl-tel-input/vue",
|
|
3
|
-
"version": "29.0
|
|
3
|
+
"version": "29.1.0",
|
|
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.0
|
|
27
|
+
"intl-tel-input": "^29.1.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"vue": "^3.0.0"
|