intl-tel-input 25.2.0 → 25.2.1
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 +17 -21
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/i18n/tr/interface.js +2 -2
- package/build/js/intlTelInput.js +5 -5
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +258 -143
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/build/js/utils.js +35 -34
- package/package.json +2 -2
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +4 -4
- package/react/build/IntlTelInput.js +4 -4
- package/react/build/IntlTelInputWithUtils.cjs +257 -142
- package/react/build/IntlTelInputWithUtils.js +257 -142
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +6 -6
- package/vue/build/IntlTelInputWithUtils.mjs +438 -323
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.2.
|
|
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.2.1/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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mergeModels as D, useModel as x, ref as L, onMounted as E, watch as M, onUnmounted as F, withDirectives as B, openBlock as V, createElementBlock as
|
|
1
|
+
import { mergeModels as D, useModel as x, ref as L, onMounted as E, watch as M, onUnmounted as F, withDirectives as B, openBlock as V, createElementBlock as z, mergeProps as O, vModelText as R } from "vue";
|
|
2
2
|
const N = [
|
|
3
3
|
[
|
|
4
4
|
"af",
|
|
@@ -1671,7 +1671,7 @@ const T = {
|
|
|
1671
1671
|
const t = v(u);
|
|
1672
1672
|
if (t.charAt(0) === "1") {
|
|
1673
1673
|
const e = t.substr(1, 3);
|
|
1674
|
-
return H.
|
|
1674
|
+
return H.includes(e);
|
|
1675
1675
|
}
|
|
1676
1676
|
return !1;
|
|
1677
1677
|
}, K = (u, t, e, i) => {
|
|
@@ -1744,14 +1744,14 @@ class G {
|
|
|
1744
1744
|
(s) => s.toLowerCase()
|
|
1745
1745
|
);
|
|
1746
1746
|
this.countries = I.filter(
|
|
1747
|
-
(s) => i.
|
|
1747
|
+
(s) => i.includes(s.iso2)
|
|
1748
1748
|
);
|
|
1749
1749
|
} else if (e.length) {
|
|
1750
1750
|
const i = e.map(
|
|
1751
1751
|
(s) => s.toLowerCase()
|
|
1752
1752
|
);
|
|
1753
1753
|
this.countries = I.filter(
|
|
1754
|
-
(s) => i.
|
|
1754
|
+
(s) => !i.includes(s.iso2)
|
|
1755
1755
|
);
|
|
1756
1756
|
} else
|
|
1757
1757
|
this.countries = I;
|
|
@@ -2529,7 +2529,7 @@ const W = (u) => {
|
|
|
2529
2529
|
attachUtils: W,
|
|
2530
2530
|
startedLoadingUtilsScript: !1,
|
|
2531
2531
|
startedLoadingAutoCountry: !1,
|
|
2532
|
-
version: "25.2.
|
|
2532
|
+
version: "25.2.1"
|
|
2533
2533
|
}
|
|
2534
2534
|
), J = {
|
|
2535
2535
|
__name: "IntlTelInput",
|
|
@@ -2588,7 +2588,7 @@ const W = (u) => {
|
|
|
2588
2588
|
), F(() => {
|
|
2589
2589
|
var h;
|
|
2590
2590
|
return (h = r.value) == null ? void 0 : h.destroy();
|
|
2591
|
-
}), t({ instance: r, input: o }), (h, m) => B((V(),
|
|
2591
|
+
}), t({ instance: r, input: o }), (h, m) => B((V(), z("input", O({
|
|
2592
2592
|
ref_key: "input",
|
|
2593
2593
|
ref: o,
|
|
2594
2594
|
"onUpdate:modelValue": m[0] || (m[0] = (b) => i.value = b),
|