intl-tel-input 25.3.1 → 25.4.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.
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.3.1/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.0/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 z, mergeProps as O, vModelText as R } 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 R, mergeProps as z, vModelText as O } from "vue";
2
2
  const N = [
3
3
  [
4
4
  "af",
@@ -2117,7 +2117,7 @@ class G {
2117
2117
  _updateSearchResultsText() {
2118
2118
  const { i18n: t } = this.options, e = this.countryList.childElementCount;
2119
2119
  let i;
2120
- e === 0 ? i = t.zeroSearchResults : e === 1 ? i = t.oneSearchResult : i = t.multipleSearchResults.replace("${count}", e.toString()), this.searchResultsA11yText.textContent = i;
2120
+ "searchResultsText" in t ? i = t.searchResultsText(e) : e === 0 ? i = t.zeroSearchResults : e === 1 ? i = t.oneSearchResult : i = t.multipleSearchResults.replace("${count}", e.toString()), this.searchResultsA11yText.textContent = i;
2121
2121
  }
2122
2122
  //* Highlight the next/prev item in the list (and ensure it is visible).
2123
2123
  _handleUpDownKey(t) {
@@ -2386,6 +2386,7 @@ class G {
2386
2386
  //* Remove plugin.
2387
2387
  destroy() {
2388
2388
  var n, o;
2389
+ this.telInput.iti = void 0;
2389
2390
  const { allowDropdown: t, separateDialCode: e } = this.options;
2390
2391
  if (t) {
2391
2392
  this._closeDropdown(), this.selectedCountry.removeEventListener(
@@ -2511,7 +2512,7 @@ const W = (u) => {
2511
2512
  }, l = Object.assign(
2512
2513
  (u, t) => {
2513
2514
  const e = new G(u, t);
2514
- return e._init(), u.setAttribute("data-intl-tel-input-id", e.id.toString()), l.instances[e.id] = e, e;
2515
+ return e._init(), u.setAttribute("data-intl-tel-input-id", e.id.toString()), l.instances[e.id] = e, u.iti = e, e;
2515
2516
  },
2516
2517
  {
2517
2518
  defaults: T,
@@ -2529,7 +2530,7 @@ const W = (u) => {
2529
2530
  attachUtils: W,
2530
2531
  startedLoadingUtilsScript: !1,
2531
2532
  startedLoadingAutoCountry: !1,
2532
- version: "25.3.1"
2533
+ version: "25.4.0"
2533
2534
  }
2534
2535
  ), J = {
2535
2536
  __name: "IntlTelInput",
@@ -2588,7 +2589,7 @@ const W = (u) => {
2588
2589
  ), F(() => {
2589
2590
  var h;
2590
2591
  return (h = r.value) == null ? void 0 : h.destroy();
2591
- }), t({ instance: r, input: o }), (h, m) => B((V(), z("input", O({
2592
+ }), t({ instance: r, input: o }), (h, m) => B((R(), V("input", z({
2592
2593
  ref_key: "input",
2593
2594
  ref: o,
2594
2595
  "onUpdate:modelValue": m[0] || (m[0] = (b) => i.value = b),
@@ -2596,7 +2597,7 @@ const W = (u) => {
2596
2597
  onCountrychange: p,
2597
2598
  onInput: C
2598
2599
  }, u.inputProps), null, 16)), [
2599
- [R, i.value]
2600
+ [O, i.value]
2600
2601
  ]);
2601
2602
  }
2602
2603
  };