intl-tel-input 26.0.1 → 26.0.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 +14 -13
- package/angular/README.md +1 -1
- package/angular/build/IntlTelInput.js +16 -6
- package/angular/build/IntlTelInputWithUtils.js +16 -6
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.js +17 -7
- package/build/js/intlTelInput.min.js +3 -3
- package/build/js/intlTelInputWithUtils.js +17 -7
- package/build/js/intlTelInputWithUtils.min.js +3 -3
- package/package.json +1 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +16 -6
- package/react/build/IntlTelInput.js +16 -6
- package/react/build/IntlTelInputWithUtils.cjs +16 -6
- package/react/build/IntlTelInputWithUtils.js +16 -6
- package/svelte/README.md +1 -1
- package/svelte/build/IntlTelInput.mjs +12 -6
- package/svelte/build/IntlTelInputWithUtils.mjs +12 -6
- package/vue/README.md +1 -1
- package/vue/build/exports/IntlTelInput.mjs +1 -1
- package/vue/build/exports/IntlTelInputWithUtils.mjs +1 -1
- package/vue/build/{intl-tel-input-Bk5kP2Ot.mjs → intl-tel-input-DYFK-Vt4.mjs} +12 -6
package/package.json
CHANGED
package/react/README.md
CHANGED
|
@@ -32,7 +32,7 @@ import "intl-tel-input/styles";
|
|
|
32
32
|
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.
|
|
33
33
|
|
|
34
34
|
## Utils Script
|
|
35
|
-
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 just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.
|
|
35
|
+
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 just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@26.0.2/build/js/utils.js"`.
|
|
36
36
|
|
|
37
37
|
## Props
|
|
38
38
|
Here's a list of all of the current props you can pass to the IntlTelInput React component.
|
|
@@ -2489,12 +2489,22 @@ var processAllCountries = (options) => {
|
|
|
2489
2489
|
};
|
|
2490
2490
|
var generateCountryNames = (countries, options) => {
|
|
2491
2491
|
const { countryNameLocale, i18n } = options;
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2492
|
+
let displayNames;
|
|
2493
|
+
try {
|
|
2494
|
+
const hasDisplayNames = typeof Intl !== "undefined" && typeof Intl.DisplayNames === "function";
|
|
2495
|
+
if (hasDisplayNames) {
|
|
2496
|
+
displayNames = new Intl.DisplayNames(countryNameLocale, {
|
|
2497
|
+
type: "region"
|
|
2498
|
+
});
|
|
2499
|
+
} else {
|
|
2500
|
+
displayNames = null;
|
|
2501
|
+
}
|
|
2502
|
+
} catch (e) {
|
|
2503
|
+
console.error(e);
|
|
2504
|
+
displayNames = null;
|
|
2505
|
+
}
|
|
2496
2506
|
for (const c of countries) {
|
|
2497
|
-
c.name = i18n[c.iso2] || displayNames?.of(c.iso2.toUpperCase());
|
|
2507
|
+
c.name = i18n[c.iso2] || displayNames?.of(c.iso2.toUpperCase()) || "";
|
|
2498
2508
|
}
|
|
2499
2509
|
};
|
|
2500
2510
|
var processDialCodes = (countries) => {
|
|
@@ -3856,7 +3866,7 @@ var intlTelInput = Object.assign(
|
|
|
3856
3866
|
attachUtils,
|
|
3857
3867
|
startedLoadingUtilsScript: false,
|
|
3858
3868
|
startedLoadingAutoCountry: false,
|
|
3859
|
-
version: "26.0.
|
|
3869
|
+
version: "26.0.2"
|
|
3860
3870
|
}
|
|
3861
3871
|
);
|
|
3862
3872
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -2453,12 +2453,22 @@ var processAllCountries = (options) => {
|
|
|
2453
2453
|
};
|
|
2454
2454
|
var generateCountryNames = (countries, options) => {
|
|
2455
2455
|
const { countryNameLocale, i18n } = options;
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2456
|
+
let displayNames;
|
|
2457
|
+
try {
|
|
2458
|
+
const hasDisplayNames = typeof Intl !== "undefined" && typeof Intl.DisplayNames === "function";
|
|
2459
|
+
if (hasDisplayNames) {
|
|
2460
|
+
displayNames = new Intl.DisplayNames(countryNameLocale, {
|
|
2461
|
+
type: "region"
|
|
2462
|
+
});
|
|
2463
|
+
} else {
|
|
2464
|
+
displayNames = null;
|
|
2465
|
+
}
|
|
2466
|
+
} catch (e) {
|
|
2467
|
+
console.error(e);
|
|
2468
|
+
displayNames = null;
|
|
2469
|
+
}
|
|
2460
2470
|
for (const c of countries) {
|
|
2461
|
-
c.name = i18n[c.iso2] || displayNames?.of(c.iso2.toUpperCase());
|
|
2471
|
+
c.name = i18n[c.iso2] || displayNames?.of(c.iso2.toUpperCase()) || "";
|
|
2462
2472
|
}
|
|
2463
2473
|
};
|
|
2464
2474
|
var processDialCodes = (countries) => {
|
|
@@ -3820,7 +3830,7 @@ var intlTelInput = Object.assign(
|
|
|
3820
3830
|
attachUtils,
|
|
3821
3831
|
startedLoadingUtilsScript: false,
|
|
3822
3832
|
startedLoadingAutoCountry: false,
|
|
3823
|
-
version: "26.0.
|
|
3833
|
+
version: "26.0.2"
|
|
3824
3834
|
}
|
|
3825
3835
|
);
|
|
3826
3836
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -2489,12 +2489,22 @@ var processAllCountries = (options) => {
|
|
|
2489
2489
|
};
|
|
2490
2490
|
var generateCountryNames = (countries, options) => {
|
|
2491
2491
|
const { countryNameLocale, i18n } = options;
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2492
|
+
let displayNames;
|
|
2493
|
+
try {
|
|
2494
|
+
const hasDisplayNames = typeof Intl !== "undefined" && typeof Intl.DisplayNames === "function";
|
|
2495
|
+
if (hasDisplayNames) {
|
|
2496
|
+
displayNames = new Intl.DisplayNames(countryNameLocale, {
|
|
2497
|
+
type: "region"
|
|
2498
|
+
});
|
|
2499
|
+
} else {
|
|
2500
|
+
displayNames = null;
|
|
2501
|
+
}
|
|
2502
|
+
} catch (e) {
|
|
2503
|
+
console.error(e);
|
|
2504
|
+
displayNames = null;
|
|
2505
|
+
}
|
|
2496
2506
|
for (const c of countries) {
|
|
2497
|
-
c.name = i18n[c.iso2] || displayNames?.of(c.iso2.toUpperCase());
|
|
2507
|
+
c.name = i18n[c.iso2] || displayNames?.of(c.iso2.toUpperCase()) || "";
|
|
2498
2508
|
}
|
|
2499
2509
|
};
|
|
2500
2510
|
var processDialCodes = (countries) => {
|
|
@@ -3856,7 +3866,7 @@ var intlTelInput = Object.assign(
|
|
|
3856
3866
|
attachUtils,
|
|
3857
3867
|
startedLoadingUtilsScript: false,
|
|
3858
3868
|
startedLoadingAutoCountry: false,
|
|
3859
|
-
version: "26.0.
|
|
3869
|
+
version: "26.0.2"
|
|
3860
3870
|
}
|
|
3861
3871
|
);
|
|
3862
3872
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -2453,12 +2453,22 @@ var processAllCountries = (options) => {
|
|
|
2453
2453
|
};
|
|
2454
2454
|
var generateCountryNames = (countries, options) => {
|
|
2455
2455
|
const { countryNameLocale, i18n } = options;
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2456
|
+
let displayNames;
|
|
2457
|
+
try {
|
|
2458
|
+
const hasDisplayNames = typeof Intl !== "undefined" && typeof Intl.DisplayNames === "function";
|
|
2459
|
+
if (hasDisplayNames) {
|
|
2460
|
+
displayNames = new Intl.DisplayNames(countryNameLocale, {
|
|
2461
|
+
type: "region"
|
|
2462
|
+
});
|
|
2463
|
+
} else {
|
|
2464
|
+
displayNames = null;
|
|
2465
|
+
}
|
|
2466
|
+
} catch (e) {
|
|
2467
|
+
console.error(e);
|
|
2468
|
+
displayNames = null;
|
|
2469
|
+
}
|
|
2460
2470
|
for (const c of countries) {
|
|
2461
|
-
c.name = i18n[c.iso2] || displayNames?.of(c.iso2.toUpperCase());
|
|
2471
|
+
c.name = i18n[c.iso2] || displayNames?.of(c.iso2.toUpperCase()) || "";
|
|
2462
2472
|
}
|
|
2463
2473
|
};
|
|
2464
2474
|
var processDialCodes = (countries) => {
|
|
@@ -3820,7 +3830,7 @@ var intlTelInput = Object.assign(
|
|
|
3820
3830
|
attachUtils,
|
|
3821
3831
|
startedLoadingUtilsScript: false,
|
|
3822
3832
|
startedLoadingAutoCountry: false,
|
|
3823
|
-
version: "26.0.
|
|
3833
|
+
version: "26.0.2"
|
|
3824
3834
|
}
|
|
3825
3835
|
);
|
|
3826
3836
|
var intl_tel_input_default = intlTelInput;
|
package/svelte/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Try it for yourself by downloading and building the project yourself in 3 simple
|
|
|
28
28
|
|
|
29
29
|
See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/svelte/demo/validation/App.svelte) 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/svelteWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/svelte"` 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@26.0.
|
|
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/svelteWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/svelte"` 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@26.0.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 Svelte component.
|
|
@@ -4019,11 +4019,17 @@ const Ms = (t) => {
|
|
|
4019
4019
|
}
|
|
4020
4020
|
return Nt;
|
|
4021
4021
|
}, xs = (t, e) => {
|
|
4022
|
-
const { countryNameLocale: n, i18n: i } = e
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4022
|
+
const { countryNameLocale: n, i18n: i } = e;
|
|
4023
|
+
let s;
|
|
4024
|
+
try {
|
|
4025
|
+
typeof Intl < "u" && typeof Intl.DisplayNames == "function" ? s = new Intl.DisplayNames(n, {
|
|
4026
|
+
type: "region"
|
|
4027
|
+
}) : s = null;
|
|
4028
|
+
} catch (r) {
|
|
4029
|
+
console.error(r), s = null;
|
|
4030
|
+
}
|
|
4031
|
+
for (const r of t)
|
|
4032
|
+
r.name = i[r.iso2] || (s == null ? void 0 : s.of(r.iso2.toUpperCase())) || "";
|
|
4027
4033
|
}, Us = (t) => {
|
|
4028
4034
|
const e = /* @__PURE__ */ new Set();
|
|
4029
4035
|
let n = 0;
|
|
@@ -4902,7 +4908,7 @@ const Ys = (t) => {
|
|
|
4902
4908
|
attachUtils: Ys,
|
|
4903
4909
|
startedLoadingUtilsScript: !1,
|
|
4904
4910
|
startedLoadingAutoCountry: !1,
|
|
4905
|
-
version: "26.0.
|
|
4911
|
+
version: "26.0.2"
|
|
4906
4912
|
}
|
|
4907
4913
|
);
|
|
4908
4914
|
var Ks = /* @__PURE__ */ is("<input/>");
|
|
@@ -4019,11 +4019,17 @@ const A9 = (t) => {
|
|
|
4019
4019
|
}
|
|
4020
4020
|
return d0;
|
|
4021
4021
|
}, T9 = (t, d) => {
|
|
4022
|
-
const { countryNameLocale: n, i18n: i } = d
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4022
|
+
const { countryNameLocale: n, i18n: i } = d;
|
|
4023
|
+
let s;
|
|
4024
|
+
try {
|
|
4025
|
+
typeof Intl < "u" && typeof Intl.DisplayNames == "function" ? s = new Intl.DisplayNames(n, {
|
|
4026
|
+
type: "region"
|
|
4027
|
+
}) : s = null;
|
|
4028
|
+
} catch ($) {
|
|
4029
|
+
console.error($), s = null;
|
|
4030
|
+
}
|
|
4031
|
+
for (const $ of t)
|
|
4032
|
+
$.name = i[$.iso2] || (s == null ? void 0 : s.of($.iso2.toUpperCase())) || "";
|
|
4027
4033
|
}, b9 = (t) => {
|
|
4028
4034
|
const d = /* @__PURE__ */ new Set();
|
|
4029
4035
|
let n = 0;
|
|
@@ -4902,7 +4908,7 @@ const U9 = (t) => {
|
|
|
4902
4908
|
attachUtils: U9,
|
|
4903
4909
|
startedLoadingUtilsScript: !1,
|
|
4904
4910
|
startedLoadingAutoCountry: !1,
|
|
4905
|
-
version: "26.0.
|
|
4911
|
+
version: "26.0.2"
|
|
4906
4912
|
}
|
|
4907
4913
|
);
|
|
4908
4914
|
(function() {
|
package/vue/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Alternatively, download and build the project yourself in 3 simple steps. You ju
|
|
|
32
32
|
|
|
33
33
|
See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/vue/demo/validation/App.vue) for a more fleshed-out example of how to handle validation. See the instructions above for how to run this demo (and others) yourself.
|
|
34
34
|
|
|
35
|
-
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@26.0.
|
|
35
|
+
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@26.0.2/build/js/utils.js"`.
|
|
36
36
|
|
|
37
37
|
## Props
|
|
38
38
|
Here's a list of all of the current props you can pass to the IntlTelInput Vue component.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as g, mergeModels as m, useModel as b, ref as r, onMounted as h, watch as C, onUnmounted as P, withDirectives as N, createElementBlock as M, openBlock as B, mergeProps as D, vModelText as E } from "vue";
|
|
2
|
-
import { i as I } from "../intl-tel-input-
|
|
2
|
+
import { i as I } from "../intl-tel-input-DYFK-Vt4.mjs";
|
|
3
3
|
const x = /* @__PURE__ */ g({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "IntlTelInput",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as T2, mergeModels as k1, useModel as v2, ref as a1, onMounted as M2, watch as I2, onUnmounted as N2, withDirectives as A2, createElementBlock as R2, openBlock as G2, mergeProps as _2, vModelText as L2 } from "vue";
|
|
2
|
-
import { i as z1 } from "../intl-tel-input-
|
|
2
|
+
import { i as z1 } from "../intl-tel-input-DYFK-Vt4.mjs";
|
|
3
3
|
(function() {
|
|
4
4
|
var P = this || self;
|
|
5
5
|
function p(d, $) {
|
|
@@ -2190,11 +2190,17 @@ const rt = (l) => {
|
|
|
2190
2190
|
}
|
|
2191
2191
|
return A;
|
|
2192
2192
|
}, at = (l, t) => {
|
|
2193
|
-
const { countryNameLocale: e, i18n: s } = t
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2193
|
+
const { countryNameLocale: e, i18n: s } = t;
|
|
2194
|
+
let i;
|
|
2195
|
+
try {
|
|
2196
|
+
typeof Intl < "u" && typeof Intl.DisplayNames == "function" ? i = new Intl.DisplayNames(e, {
|
|
2197
|
+
type: "region"
|
|
2198
|
+
}) : i = null;
|
|
2199
|
+
} catch (o) {
|
|
2200
|
+
console.error(o), i = null;
|
|
2201
|
+
}
|
|
2202
|
+
for (const o of l)
|
|
2203
|
+
o.name = s[o.iso2] || (i == null ? void 0 : i.of(o.iso2.toUpperCase())) || "";
|
|
2198
2204
|
}, ut = (l) => {
|
|
2199
2205
|
const t = /* @__PURE__ */ new Set();
|
|
2200
2206
|
let e = 0;
|
|
@@ -3073,7 +3079,7 @@ const yt = (l) => {
|
|
|
3073
3079
|
attachUtils: yt,
|
|
3074
3080
|
startedLoadingUtilsScript: !1,
|
|
3075
3081
|
startedLoadingAutoCountry: !1,
|
|
3076
|
-
version: "26.0.
|
|
3082
|
+
version: "26.0.2"
|
|
3077
3083
|
}
|
|
3078
3084
|
);
|
|
3079
3085
|
export {
|