intl-tel-input 25.4.2 → 25.4.4
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 +5 -5
- package/angular/README.md +1 -1
- package/angular/build/IntlTelInput.cjs +37 -8675
- package/angular/build/IntlTelInput.d.ts +8 -6
- package/angular/build/IntlTelInput.js +25 -8653
- package/angular/build/IntlTelInputWithUtils.cjs +37 -8675
- package/angular/build/IntlTelInputWithUtils.js +25 -8653
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.js +2 -2
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +2 -2
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/package.json +1 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +1 -1
- package/react/build/IntlTelInput.d.ts +4 -2
- package/react/build/IntlTelInput.js +1 -1
- package/react/build/IntlTelInputWithUtils.cjs +1 -1
- package/react/build/IntlTelInputWithUtils.js +1 -1
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +10 -5
- package/vue/build/IntlTelInputWithUtils.mjs +8 -3
package/package.json
CHANGED
package/react/README.md
CHANGED
|
@@ -28,7 +28,7 @@ import "intl-tel-input/styles";
|
|
|
28
28
|
|
|
29
29
|
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.
|
|
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/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 alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.4.
|
|
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/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 alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.4.4/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 React component.
|
|
@@ -491,6 +491,7 @@ declare module "intl-tel-input/react" {
|
|
|
491
491
|
import { Iti, SomeOptions } from "intl-tel-input";
|
|
492
492
|
import React from "react";
|
|
493
493
|
export { intlTelInput };
|
|
494
|
+
type InputProps = Omit<React.ComponentPropsWithoutRef<"input">, "onInput">;
|
|
494
495
|
type ItiProps = {
|
|
495
496
|
initialValue?: string;
|
|
496
497
|
onChangeNumber?: (number: string) => void;
|
|
@@ -499,7 +500,7 @@ declare module "intl-tel-input/react" {
|
|
|
499
500
|
onChangeErrorCode?: (errorCode: number | null) => void;
|
|
500
501
|
usePreciseValidation?: boolean;
|
|
501
502
|
initOptions?: SomeOptions;
|
|
502
|
-
inputProps?:
|
|
503
|
+
inputProps?: InputProps;
|
|
503
504
|
disabled?: boolean | undefined;
|
|
504
505
|
};
|
|
505
506
|
export type IntlTelInputRef = {
|
|
@@ -522,6 +523,7 @@ declare module "intl-tel-input/reactWithUtils" {
|
|
|
522
523
|
import { Iti, SomeOptions } from "intl-tel-input";
|
|
523
524
|
import React from "react";
|
|
524
525
|
export { intlTelInput };
|
|
526
|
+
type InputProps = Omit<React.ComponentPropsWithoutRef<"input">, "onInput">;
|
|
525
527
|
type ItiProps = {
|
|
526
528
|
initialValue?: string;
|
|
527
529
|
onChangeNumber?: (number: string) => void;
|
|
@@ -530,7 +532,7 @@ declare module "intl-tel-input/reactWithUtils" {
|
|
|
530
532
|
onChangeErrorCode?: (errorCode: number | null) => void;
|
|
531
533
|
usePreciseValidation?: boolean;
|
|
532
534
|
initOptions?: SomeOptions;
|
|
533
|
-
inputProps?:
|
|
535
|
+
inputProps?: InputProps;
|
|
534
536
|
disabled?: boolean | undefined;
|
|
535
537
|
};
|
|
536
538
|
export type IntlTelInputRef = {
|
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.4.
|
|
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.4.4/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, createElementBlock as V, openBlock as
|
|
1
|
+
import { mergeModels as D, useModel as x, ref as L, onMounted as E, watch as M, onUnmounted as F, withDirectives as B, createElementBlock as V, openBlock as z, mergeProps as R, vModelText as O } from "vue";
|
|
2
2
|
const N = [
|
|
3
3
|
[
|
|
4
4
|
"af",
|
|
@@ -2530,7 +2530,7 @@ const W = (u) => {
|
|
|
2530
2530
|
attachUtils: W,
|
|
2531
2531
|
startedLoadingUtilsScript: !1,
|
|
2532
2532
|
startedLoadingAutoCountry: !1,
|
|
2533
|
-
version: "25.4.
|
|
2533
|
+
version: "25.4.4"
|
|
2534
2534
|
}
|
|
2535
2535
|
), J = {
|
|
2536
2536
|
__name: "IntlTelInput",
|
|
@@ -2579,7 +2579,7 @@ const W = (u) => {
|
|
|
2579
2579
|
n("changeCountry", ((h = r.value) == null ? void 0 : h.getSelectedCountryData().iso2) ?? ""), C(), d();
|
|
2580
2580
|
};
|
|
2581
2581
|
return E(() => {
|
|
2582
|
-
o.value && (r.value = l(o.value, s.options), s.value && r.value.setNumber(s.value), s.disabled && r.value.setDisabled(s.disabled));
|
|
2582
|
+
o.value && (r.value = l(o.value, s.options), s.value && r.value.setNumber(s.value), s.disabled && r.value.setDisabled(s.disabled), a.value = c());
|
|
2583
2583
|
}), M(
|
|
2584
2584
|
() => s.disabled,
|
|
2585
2585
|
(h) => {
|
|
@@ -2589,7 +2589,7 @@ const W = (u) => {
|
|
|
2589
2589
|
), F(() => {
|
|
2590
2590
|
var h;
|
|
2591
2591
|
return (h = r.value) == null ? void 0 : h.destroy();
|
|
2592
|
-
}), t({ instance: r, input: o }), (h, m) => B((
|
|
2592
|
+
}), t({ instance: r, input: o }), (h, m) => B((z(), V("input", R({
|
|
2593
2593
|
ref_key: "input",
|
|
2594
2594
|
ref: o,
|
|
2595
2595
|
"onUpdate:modelValue": m[0] || (m[0] = (b) => i.value = b),
|
|
@@ -2597,7 +2597,12 @@ const W = (u) => {
|
|
|
2597
2597
|
onCountrychange: p,
|
|
2598
2598
|
onInput: C
|
|
2599
2599
|
}, u.inputProps), null, 16)), [
|
|
2600
|
-
[
|
|
2600
|
+
[
|
|
2601
|
+
O,
|
|
2602
|
+
i.value,
|
|
2603
|
+
void 0,
|
|
2604
|
+
{ lazy: !0 }
|
|
2605
|
+
]
|
|
2601
2606
|
]);
|
|
2602
2607
|
}
|
|
2603
2608
|
};
|
|
@@ -2530,7 +2530,7 @@ const W2 = (y) => {
|
|
|
2530
2530
|
attachUtils: W2,
|
|
2531
2531
|
startedLoadingUtilsScript: !1,
|
|
2532
2532
|
startedLoadingAutoCountry: !1,
|
|
2533
|
-
version: "25.4.
|
|
2533
|
+
version: "25.4.4"
|
|
2534
2534
|
}
|
|
2535
2535
|
);
|
|
2536
2536
|
(function() {
|
|
@@ -8765,7 +8765,7 @@ const Y2 = {
|
|
|
8765
8765
|
a("changeCountry", ((I = g.value) == null ? void 0 : I.getSelectedCountryData().iso2) ?? ""), b(), _();
|
|
8766
8766
|
};
|
|
8767
8767
|
return M2(() => {
|
|
8768
|
-
c.value && (g.value = C(c.value, o.options), o.value && g.value.setNumber(o.value), o.disabled && g.value.setDisabled(o.disabled));
|
|
8768
|
+
c.value && (g.value = C(c.value, o.options), o.value && g.value.setNumber(o.value), o.disabled && g.value.setDisabled(o.disabled), f.value = S());
|
|
8769
8769
|
}), P2(
|
|
8770
8770
|
() => o.disabled,
|
|
8771
8771
|
(I) => {
|
|
@@ -8783,7 +8783,12 @@ const Y2 = {
|
|
|
8783
8783
|
onCountrychange: w,
|
|
8784
8784
|
onInput: b
|
|
8785
8785
|
}, y.inputProps), null, 16)), [
|
|
8786
|
-
[
|
|
8786
|
+
[
|
|
8787
|
+
G2,
|
|
8788
|
+
s.value,
|
|
8789
|
+
void 0,
|
|
8790
|
+
{ lazy: !0 }
|
|
8791
|
+
]
|
|
8787
8792
|
]);
|
|
8788
8793
|
}
|
|
8789
8794
|
};
|