intl-tel-input 25.4.3 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intl-tel-input",
3
- "version": "25.4.3",
3
+ "version": "25.4.4",
4
4
  "description": "A JavaScript plugin for entering and validating international telephone numbers",
5
5
  "keywords": [
6
6
  "international",
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.3/build/js/utils.js"`.
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.
@@ -3170,7 +3170,7 @@ var intlTelInput = Object.assign(
3170
3170
  attachUtils,
3171
3171
  startedLoadingUtilsScript: false,
3172
3172
  startedLoadingAutoCountry: false,
3173
- version: "25.4.3"
3173
+ version: "25.4.4"
3174
3174
  }
3175
3175
  );
3176
3176
  var intl_tel_input_default = intlTelInput;
@@ -3134,7 +3134,7 @@ var intlTelInput = Object.assign(
3134
3134
  attachUtils,
3135
3135
  startedLoadingUtilsScript: false,
3136
3136
  startedLoadingAutoCountry: false,
3137
- version: "25.4.3"
3137
+ version: "25.4.4"
3138
3138
  }
3139
3139
  );
3140
3140
  var intl_tel_input_default = intlTelInput;
@@ -3170,7 +3170,7 @@ var intlTelInput = Object.assign(
3170
3170
  attachUtils,
3171
3171
  startedLoadingUtilsScript: false,
3172
3172
  startedLoadingAutoCountry: false,
3173
- version: "25.4.3"
3173
+ version: "25.4.4"
3174
3174
  }
3175
3175
  );
3176
3176
  var intl_tel_input_default = intlTelInput;
@@ -3134,7 +3134,7 @@ var intlTelInput = Object.assign(
3134
3134
  attachUtils,
3135
3135
  startedLoadingUtilsScript: false,
3136
3136
  startedLoadingAutoCountry: false,
3137
- version: "25.4.3"
3137
+ version: "25.4.4"
3138
3138
  }
3139
3139
  );
3140
3140
  var intl_tel_input_default = intlTelInput;
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.3/build/js/utils.js"`.
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 R, mergeProps as z, vModelText as O } from "vue";
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.3"
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((R(), V("input", z({
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
- [O, i.value]
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.3"
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
- [G2, s.value]
8786
+ [
8787
+ G2,
8788
+ s.value,
8789
+ void 0,
8790
+ { lazy: !0 }
8791
+ ]
8787
8792
  ]);
8788
8793
  }
8789
8794
  };