@intl-tel-input/vue 29.0.4 → 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.4",
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-T5zFPeX_.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-T5zFPeX_.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
@@ -12613,7 +12613,7 @@ var n = {};
12613
12613
  [
12614
12614
  ,
12615
12615
  ,
12616
- "5(?:4[0-29]|6[0-3])\\d{6}|(?:55|6\\d|7[7-9])\\d{7}",
12616
+ "5(?:4[0-29]|6[0-4])\\d{6}|(?:55|6\\d|7[7-9])\\d{7}",
12617
12617
  ,
12618
12618
  ,
12619
12619
  ,
@@ -22058,7 +22058,7 @@ var n = {};
22058
22058
  [
22059
22059
  ,
22060
22060
  ,
22061
- "(?:601[0-4]0|[7-9]0[1-9]\\d\\d)\\d{5}",
22061
+ "[6-9]0[1-9]\\d{7}",
22062
22062
  ,
22063
22063
  ,
22064
22064
  ,
@@ -31804,7 +31804,7 @@ var n = {};
31804
31804
  [
31805
31805
  ,
31806
31806
  ,
31807
- "(?:4[015-8]|9\\d)\\d{6}",
31807
+ "[49]\\d{7}",
31808
31808
  ,
31809
31809
  ,
31810
31810
  ,
@@ -38261,7 +38261,7 @@ var n = {};
38261
38261
  [
38262
38262
  ,
38263
38263
  ,
38264
- "(?:4[015-8]|9\\d)\\d{6}",
38264
+ "[49]\\d{7}",
38265
38265
  ,
38266
38266
  ,
38267
38267
  ,
@@ -39186,7 +39186,7 @@ var n = {};
39186
39186
  [
39187
39187
  ,
39188
39188
  ,
39189
- "(?:(?:15|(?:3[59]|4[89]|6\\d|7[679]|8[08])\\d|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:[67]\\d\\d|904)\\d{5}",
39189
+ "(?:(?:15|(?:3[59]|4[89]|6\\d|7[0-35-9]|8[08])\\d|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:[67]\\d\\d|904)\\d{5}",
39190
39190
  ,
39191
39191
  ,
39192
39192
  ,
@@ -39290,21 +39290,21 @@ var n = {};
39290
39290
  ],
39291
39291
  [
39292
39292
  ,
39293
- "(\\d)(\\d{7})",
39293
+ "(\\d{2})(\\d{5,7})",
39294
39294
  "$1 $2",
39295
- ["(?:2|90)4|[67]"]
39295
+ ["1|28|9[2-9]"]
39296
39296
  ],
39297
39297
  [
39298
39298
  ,
39299
- "(\\d{3})(\\d{3})(\\d{3})",
39300
- "$1 $2 $3",
39301
- ["[348]|64|79|90"]
39299
+ "(\\d)(\\d{7})",
39300
+ "$1 $2",
39301
+ ["[267]|904"]
39302
39302
  ],
39303
39303
  [
39304
39304
  ,
39305
- "(\\d{2})(\\d{5,7})",
39306
- "$1 $2",
39307
- ["1|28|6[0-35-9]|7[67]|9[2-9]"]
39305
+ "(\\d{2})(\\d{3})(\\d{4})",
39306
+ "$1 $2 $3",
39307
+ ["[346-9]"]
39308
39308
  ]
39309
39309
  ],
39310
39310
  ,
@@ -43665,7 +43665,7 @@ var n = {};
43665
43665
  [
43666
43666
  ,
43667
43667
  ,
43668
- "72[48]0\\d{5}|7(?:[014-8]\\d|2[0167]|3[06]|9[0-589])\\d{6}",
43668
+ "72[48]0\\d{5}|7(?:[014-8]\\d|2[0167]|3[016]|9[0-589])\\d{6}",
43669
43669
  ,
43670
43670
  ,
43671
43671
  ,
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.4",
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.4"
27
+ "intl-tel-input": "^29.1.0"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "vue": "^3.0.0"