@types/vue-tel-input 2.1.3 → 2.1.5

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.
vue-tel-input/README.md CHANGED
@@ -6,11 +6,111 @@ This package contains type definitions for vue-tel-input (https://educationlink.
6
6
 
7
7
  # Details
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vue-tel-input.
9
+ ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vue-tel-input/index.d.ts)
10
+ ````ts
11
+ import { PluginFunction, VueConstructor } from "vue";
12
+ import { DirectiveOptions } from "vue/types/options";
13
+
14
+ export default VueTelInput;
15
+ export const VueTelInput: VueTelInputConstructor;
16
+
17
+ export interface VueTelInputProps {
18
+ value: string;
19
+ placeholder: string;
20
+ disabledFetchingCountry: boolean;
21
+ disabled: boolean;
22
+ disabledFormatting: boolean;
23
+ invalidMsg: string;
24
+ required: boolean;
25
+ defaultCountry: string;
26
+ enabledCountryCode: boolean;
27
+ enabledFlags: boolean;
28
+ preferredCountries: boolean;
29
+ onlyCountries: any[];
30
+ ignoredCountries: any[];
31
+ autocomplete: string;
32
+ name: string;
33
+ wrapperClasses: string;
34
+ inputClasses: string;
35
+ dropdownOptions: VueTelInputDowndownOption;
36
+ inputOptions: VueTelInputInputOption;
37
+ maxLen: number;
38
+ }
39
+
40
+ export interface VueTelInputData {
41
+ phone: string;
42
+ activeCountry: VueTelInputCountryOption;
43
+ open: boolean;
44
+ selectedIndex: any;
45
+ typeToFindInput: string;
46
+ typeToFindTimer: any;
47
+ }
48
+
49
+ export interface VueTelInputWatch {
50
+ state: (value: any) => void;
51
+ value: () => void;
52
+ }
53
+
54
+ export interface VueTelInputMethods {
55
+ initializeCountry: () => void;
56
+ getCountries: (list: any[]) => any[];
57
+ findCountry: (iso: string) => any[];
58
+ getItemClass: (index: number, iso2: string) => any;
59
+ choose: (country: any) => void;
60
+ onInput: () => void;
61
+ onBlur: () => void;
62
+ toggleDropdown: () => void;
63
+ clickedOutside: () => void;
64
+ keyboardNav: (e: Event) => void;
65
+ reset: () => void;
66
+ }
67
+
68
+ export interface VueTelInputComputed {
69
+ mode: () => string;
70
+ filteredCountries: () => string[];
71
+ sortedCountries: () => string[];
72
+ formattedResult: () => string;
73
+ state: () => boolean;
74
+ response: () => VueTelInputResponse;
75
+ }
76
+
77
+ export interface VueTelInputDirective {
78
+ "click-outside": DirectiveOptions;
79
+ }
80
+
81
+ export interface VueTelInputResponse {
82
+ number: string;
83
+ isValid: boolean;
84
+ country: VueTelInputCountryOption;
85
+ }
86
+
87
+ export interface VueTelInputCountryOption {
88
+ iso2: string;
89
+ }
90
+
91
+ export interface VueTelInputDowndownOption {
92
+ disabledDialCode: boolean;
93
+ }
94
+
95
+ export interface VueTelInputInputOption {
96
+ showDialCode: boolean;
97
+ }
98
+
99
+ export interface VueTelInputConstructor extends VueConstructor {
100
+ install: PluginFunction<never>;
101
+ props: VueTelInputProps;
102
+ data: () => VueTelInputData;
103
+ watch: VueTelInputWatch;
104
+ methods: VueTelInputMethods;
105
+ computed: VueTelInputComputed;
106
+ directives: VueTelInputDirective;
107
+ }
108
+
109
+ ````
9
110
 
10
111
  ### Additional Details
11
- * Last updated: Tue, 26 Sep 2023 10:06:28 GMT
12
- * Dependencies: [@types/vue](https://npmjs.com/package/@types/vue)
13
- * Global values: none
112
+ * Last updated: Wed, 18 Oct 2023 11:45:07 GMT
113
+ * Dependencies: [vue](https://npmjs.com/package/vue)
14
114
 
15
115
  # Credits
16
116
  These definitions were written by [Komang Suryadana](https://github.com/suryadana).
vue-tel-input/index.d.ts CHANGED
@@ -1,9 +1,3 @@
1
- // Type definitions for vue-tel-input 2.1
2
- // Project: https://educationlink.github.io/vue-tel-input
3
- // Definitions by: Komang Suryadana <https://github.com/suryadana>
4
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
- // TypeScript Version: 2.3
6
-
7
1
  import { PluginFunction, VueConstructor } from "vue";
8
2
  import { DirectiveOptions } from "vue/types/options";
9
3
 
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@types/vue-tel-input",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "TypeScript definitions for vue-tel-input",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vue-tel-input",
6
6
  "license": "MIT",
7
7
  "contributors": [
8
8
  {
9
9
  "name": "Komang Suryadana",
10
- "url": "https://github.com/suryadana",
11
- "githubUsername": "suryadana"
10
+ "githubUsername": "suryadana",
11
+ "url": "https://github.com/suryadana"
12
12
  }
13
13
  ],
14
14
  "main": "",
@@ -22,6 +22,6 @@
22
22
  "dependencies": {
23
23
  "vue": "^2.0.0"
24
24
  },
25
- "typesPublisherContentHash": "da9f9b053e7a01f15470400087b97f965c65862e5def73b8bb1aace6a187766d",
25
+ "typesPublisherContentHash": "718c79b4bdacd6d341b77e00cf996e1b00fa345addfca8f5012e2283684628a6",
26
26
  "typeScriptVersion": "4.5"
27
27
  }