@intl-tel-input/vue 29.0.5 → 29.1.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.
@@ -2083,13 +2083,13 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
2083
2083
  let { onlyCountries: t, excludeCountries: n } = e;
2084
2084
  return t?.length ? h.filter((e) => t.includes(e.iso2)) : n?.length ? h.filter((e) => !n.includes(e.iso2)) : [...h];
2085
2085
  }, Se = (e, t) => {
2086
- let { countryNameLocale: n, countryNameOverrides: r } = t, i;
2086
+ let { countryNameLocale: n, countryNameOverrides: r, uiTranslations: i } = t, a = i?.countryNames, o;
2087
2087
  try {
2088
- i = typeof Intl < "u" && typeof Intl.DisplayNames == "function" ? new Intl.DisplayNames(n, { type: "region" }) : null;
2088
+ o = typeof Intl < "u" && typeof Intl.DisplayNames == "function" ? new Intl.DisplayNames(n, { type: "region" }) : null;
2089
2089
  } catch (e) {
2090
- console.error(e), i = null;
2090
+ console.error(e), o = null;
2091
2091
  }
2092
- for (let t of e) t.name = r[t.iso2] || i?.of(t.iso2.toUpperCase()) || "";
2092
+ for (let t of e) t.name = r[t.iso2] || a?.[t.iso2] || o?.of(t.iso2.toUpperCase()) || "";
2093
2093
  }, Ce = (e) => {
2094
2094
  let t = /* @__PURE__ */ new Set(), n = 0, r = {}, i = (e, t) => {
2095
2095
  if (!e || !t) return;
@@ -2682,7 +2682,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
2682
2682
  },
2683
2683
  startedLoadingUtils: !1,
2684
2684
  startedLoadingAutoCountry: !1,
2685
- version: "29.0.5",
2685
+ version: "29.1.0",
2686
2686
  NUMBER_FORMAT: M,
2687
2687
  NUMBER_TYPE: N,
2688
2688
  VALIDATION_ERROR: P,
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./IntlTelInput-DEjmr0k0.js";
1
+ import { n as e, t } from "./IntlTelInput-Dp7tvaDb.js";
2
2
  //#region packages/vue/src/index.ts
3
3
  var n = t;
4
4
  //#endregion
@@ -1,13 +1,5 @@
1
1
  import { SomeOptions } from 'intl-tel-input';
2
- import { InputHTMLAttributes } from 'vue';
3
- interface Props {
4
- usePreciseValidation?: boolean;
5
- disabled?: boolean;
6
- readonly?: boolean;
7
- inputProps?: InputHTMLAttributes;
8
- initialValue?: string | null;
9
- modelValue?: string | null;
10
- }
2
+ import { Props } from './props';
11
3
  type __VLS_Props = Props & SomeOptions;
12
4
  type StrictRejectSource = "key" | "paste";
13
5
  type StrictRejectReason = "invalid" | "max-length";
@@ -36,7 +28,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
36
28
  usePreciseValidation: boolean;
37
29
  disabled: boolean;
38
30
  readonly: boolean;
39
- inputProps: InputHTMLAttributes;
31
+ inputProps: import('vue').InputHTMLAttributes;
40
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
41
33
  input: HTMLInputElement;
42
34
  }, any>;
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./IntlTelInput-DEjmr0k0.js";
1
+ import { n as e, t } from "./IntlTelInput-Dp7tvaDb.js";
2
2
  //#region packages/core/dist/js/utils.js
3
3
  var n = {};
4
4
  //#endregion
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { default as IntlTelInput } from './IntlTelInput.vue';
2
2
  import { default as intlTelInput } from 'intl-tel-input';
3
3
  export { intlTelInput };
4
+ export type { Props } from './props';
4
5
  export default IntlTelInput;
@@ -0,0 +1,9 @@
1
+ import { InputHTMLAttributes } from 'vue';
2
+ export interface Props {
3
+ usePreciseValidation?: boolean;
4
+ disabled?: boolean;
5
+ readonly?: boolean;
6
+ inputProps?: InputHTMLAttributes;
7
+ initialValue?: string | null;
8
+ modelValue?: string | null;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intl-tel-input/vue",
3
- "version": "29.0.5",
3
+ "version": "29.1.0",
4
4
  "description": "A Vue component for intl-tel-input, for entering, formatting, and validating international telephone numbers",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  "README.md"
25
25
  ],
26
26
  "dependencies": {
27
- "intl-tel-input": "^29.0.5"
27
+ "intl-tel-input": "^29.1.0"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "vue": "^3.0.0"