@dronico/droni-kit 1.20.0 → 1.21.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.
@@ -6,14 +6,6 @@ declare const meta: {
6
6
  type: StringConstructor;
7
7
  default: string;
8
8
  };
9
- explorerUrl: {
10
- type: StringConstructor;
11
- default: string;
12
- };
13
- uploadUrl: {
14
- type: StringConstructor;
15
- default: string;
16
- };
17
9
  accept: {
18
10
  type: StringConstructor;
19
11
  default: string;
@@ -30,30 +22,23 @@ declare const meta: {
30
22
  type: () => "all" | "top" | "bottom" | "left" | "right" | "none";
31
23
  default: string;
32
24
  };
25
+ uploadBtn: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ browserBtn: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
33
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
34
- select: (file: File) => any;
35
34
  "update:modelValue": (value: string) => any;
36
- "upload-start": (file: File) => any;
37
- "upload-success": (payload: {
38
- file: File;
39
- response: unknown;
40
- url: string;
41
- }) => any;
42
- "upload-error": (error: Error) => any;
43
- browse: () => any;
35
+ "open-browser": () => any;
36
+ "upload-file": (file: File) => any;
44
37
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
45
38
  modelValue: {
46
39
  type: StringConstructor;
47
40
  default: string;
48
41
  };
49
- explorerUrl: {
50
- type: StringConstructor;
51
- default: string;
52
- };
53
- uploadUrl: {
54
- type: StringConstructor;
55
- default: string;
56
- };
57
42
  accept: {
58
43
  type: StringConstructor;
59
44
  default: string;
@@ -70,25 +55,26 @@ declare const meta: {
70
55
  type: () => "all" | "top" | "bottom" | "left" | "right" | "none";
71
56
  default: string;
72
57
  };
58
+ uploadBtn: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ browserBtn: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
73
66
  }>> & Readonly<{
74
- onSelect?: ((file: File) => any) | undefined;
75
67
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
76
- "onUpload-start"?: ((file: File) => any) | undefined;
77
- "onUpload-success"?: ((payload: {
78
- file: File;
79
- response: unknown;
80
- url: string;
81
- }) => any) | undefined;
82
- "onUpload-error"?: ((error: Error) => any) | undefined;
83
- onBrowse?: (() => any) | undefined;
68
+ "onOpen-browser"?: (() => any) | undefined;
69
+ "onUpload-file"?: ((file: File) => any) | undefined;
84
70
  }>, {
85
71
  size: "sm" | "md" | "lg";
86
72
  block: boolean;
87
73
  rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
88
74
  modelValue: string;
89
- explorerUrl: string;
90
- uploadUrl: string;
91
75
  accept: string;
76
+ uploadBtn: boolean;
77
+ browserBtn: boolean;
92
78
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
93
79
  fileInputRef: HTMLInputElement;
94
80
  }, any>;
@@ -99,16 +85,6 @@ declare const meta: {
99
85
  type: "text";
100
86
  };
101
87
  };
102
- explorerUrl: {
103
- control: {
104
- type: "text";
105
- };
106
- };
107
- uploadUrl: {
108
- control: {
109
- type: "text";
110
- };
111
- };
112
88
  accept: {
113
89
  control: {
114
90
  type: "text";
@@ -131,6 +107,16 @@ declare const meta: {
131
107
  };
132
108
  options: string[];
133
109
  };
110
+ uploadBtn: {
111
+ control: {
112
+ type: "boolean";
113
+ };
114
+ };
115
+ browserBtn: {
116
+ control: {
117
+ type: "boolean";
118
+ };
119
+ };
134
120
  };
135
121
  };
136
122
  export default meta;
@@ -3,14 +3,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
3
3
  type: StringConstructor;
4
4
  default: string;
5
5
  };
6
- explorerUrl: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- uploadUrl: {
11
- type: StringConstructor;
12
- default: string;
13
- };
14
6
  accept: {
15
7
  type: StringConstructor;
16
8
  default: string;
@@ -27,30 +19,23 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
27
19
  type: () => "all" | "top" | "bottom" | "left" | "right" | "none";
28
20
  default: string;
29
21
  };
22
+ uploadBtn: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ browserBtn: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
30
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
31
- select: (file: File) => any;
32
31
  "update:modelValue": (value: string) => any;
33
- "upload-start": (file: File) => any;
34
- "upload-success": (payload: {
35
- file: File;
36
- response: unknown;
37
- url: string;
38
- }) => any;
39
- "upload-error": (error: Error) => any;
40
- browse: () => any;
32
+ "open-browser": () => any;
33
+ "upload-file": (file: File) => any;
41
34
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
42
35
  modelValue: {
43
36
  type: StringConstructor;
44
37
  default: string;
45
38
  };
46
- explorerUrl: {
47
- type: StringConstructor;
48
- default: string;
49
- };
50
- uploadUrl: {
51
- type: StringConstructor;
52
- default: string;
53
- };
54
39
  accept: {
55
40
  type: StringConstructor;
56
41
  default: string;
@@ -67,25 +52,26 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
67
52
  type: () => "all" | "top" | "bottom" | "left" | "right" | "none";
68
53
  default: string;
69
54
  };
55
+ uploadBtn: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ browserBtn: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
70
63
  }>> & Readonly<{
71
- onSelect?: ((file: File) => any) | undefined;
72
64
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
73
- "onUpload-start"?: ((file: File) => any) | undefined;
74
- "onUpload-success"?: ((payload: {
75
- file: File;
76
- response: unknown;
77
- url: string;
78
- }) => any) | undefined;
79
- "onUpload-error"?: ((error: Error) => any) | undefined;
80
- onBrowse?: (() => any) | undefined;
65
+ "onOpen-browser"?: (() => any) | undefined;
66
+ "onUpload-file"?: ((file: File) => any) | undefined;
81
67
  }>, {
82
68
  size: "sm" | "md" | "lg";
83
69
  block: boolean;
84
70
  rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
85
71
  modelValue: string;
86
- explorerUrl: string;
87
- uploadUrl: string;
88
72
  accept: string;
73
+ uploadBtn: boolean;
74
+ browserBtn: boolean;
89
75
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
90
76
  fileInputRef: HTMLInputElement;
91
77
  }, any>;
@@ -3,7 +3,7 @@ declare const meta: {
3
3
  title: string;
4
4
  component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
5
  modelValue: {
6
- type: (NumberConstructor | StringConstructor)[];
6
+ type: (StringConstructor | NumberConstructor)[];
7
7
  default: string;
8
8
  };
9
9
  size: {
@@ -22,7 +22,7 @@ declare const meta: {
22
22
  "update:modelValue": (value: string) => any;
23
23
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
24
24
  modelValue: {
25
- type: (NumberConstructor | StringConstructor)[];
25
+ type: (StringConstructor | NumberConstructor)[];
26
26
  default: string;
27
27
  };
28
28
  size: {
@@ -1,6 +1,6 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  modelValue: {
3
- type: (NumberConstructor | StringConstructor)[];
3
+ type: (StringConstructor | NumberConstructor)[];
4
4
  default: string;
5
5
  };
6
6
  size: {
@@ -19,7 +19,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
19
19
  "update:modelValue": (value: string) => any;
20
20
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
21
  modelValue: {
22
- type: (NumberConstructor | StringConstructor)[];
22
+ type: (StringConstructor | NumberConstructor)[];
23
23
  default: string;
24
24
  };
25
25
  size: {
@@ -30,9 +30,9 @@ declare const meta: {
30
30
  }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
31
31
  size: "s" | "m" | "l";
32
32
  title: string;
33
- error: string;
34
33
  icon: string;
35
34
  helpText: string;
35
+ error: string;
36
36
  required: boolean;
37
37
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLLabelElement, import('vue').ComponentProvideOptions, {
38
38
  P: {};
@@ -69,9 +69,9 @@ declare const meta: {
69
69
  }>> & Readonly<{}>, {}, {}, {}, {}, {
70
70
  size: "s" | "m" | "l";
71
71
  title: string;
72
- error: string;
73
72
  icon: string;
74
73
  helpText: string;
74
+ error: string;
75
75
  required: boolean;
76
76
  }>;
77
77
  __isFragment?: never;
@@ -105,9 +105,9 @@ declare const meta: {
105
105
  }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
106
106
  size: "s" | "m" | "l";
107
107
  title: string;
108
- error: string;
109
108
  icon: string;
110
109
  helpText: string;
110
+ error: string;
111
111
  required: boolean;
112
112
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
113
113
  $slots: {
@@ -60,9 +60,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
60
60
  }>> & Readonly<{}>, {
61
61
  size: "s" | "m" | "l";
62
62
  title: string;
63
- error: string;
64
63
  icon: string;
65
64
  helpText: string;
65
+ error: string;
66
66
  required: boolean;
67
67
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLLabelElement>;
68
68
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -3,7 +3,7 @@ declare const meta: {
3
3
  title: string;
4
4
  component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
5
  modelValue: {
6
- type: (NumberConstructor | StringConstructor)[];
6
+ type: (StringConstructor | NumberConstructor)[];
7
7
  default: string;
8
8
  };
9
9
  options: {
@@ -38,7 +38,7 @@ declare const meta: {
38
38
  "update:modelValue": (value: string | number) => any;
39
39
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
40
40
  modelValue: {
41
- type: (NumberConstructor | StringConstructor)[];
41
+ type: (StringConstructor | NumberConstructor)[];
42
42
  default: string;
43
43
  };
44
44
  options: {
@@ -1,6 +1,6 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  modelValue: {
3
- type: (NumberConstructor | StringConstructor)[];
3
+ type: (StringConstructor | NumberConstructor)[];
4
4
  default: string;
5
5
  };
6
6
  options: {
@@ -35,7 +35,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
35
35
  "update:modelValue": (value: string | number) => any;
36
36
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
37
37
  modelValue: {
38
- type: (NumberConstructor | StringConstructor)[];
38
+ type: (StringConstructor | NumberConstructor)[];
39
39
  default: string;
40
40
  };
41
41
  options: {
@@ -52,8 +52,8 @@ declare const meta: {
52
52
  block: boolean;
53
53
  label: string;
54
54
  modelValue: boolean;
55
- description: string;
56
55
  labelPosition: "left" | "right";
56
+ description: string;
57
57
  showIcons: boolean;
58
58
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
59
59
  P: {};
@@ -109,8 +109,8 @@ declare const meta: {
109
109
  block: boolean;
110
110
  label: string;
111
111
  modelValue: boolean;
112
- description: string;
113
112
  labelPosition: "left" | "right";
113
+ description: string;
114
114
  showIcons: boolean;
115
115
  }>;
116
116
  __isFragment?: never;
@@ -166,8 +166,8 @@ declare const meta: {
166
166
  block: boolean;
167
167
  label: string;
168
168
  modelValue: boolean;
169
- description: string;
170
169
  labelPosition: "left" | "right";
170
+ description: string;
171
171
  showIcons: boolean;
172
172
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
173
173
  $slots: {
@@ -95,8 +95,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
95
95
  block: boolean;
96
96
  label: string;
97
97
  modelValue: boolean;
98
- description: string;
99
98
  labelPosition: "left" | "right";
99
+ description: string;
100
100
  showIcons: boolean;
101
101
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
102
102
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -60,8 +60,8 @@ declare const meta: {
60
60
  block: boolean;
61
61
  rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
62
62
  modelValue: string;
63
- resize: "none" | "both" | "horizontal" | "vertical";
64
63
  autoheight: boolean;
64
+ resize: "none" | "both" | "horizontal" | "vertical";
65
65
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
66
66
  tags: string[];
67
67
  argTypes: {
@@ -57,7 +57,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
57
57
  block: boolean;
58
58
  rounded: "all" | "top" | "bottom" | "left" | "right" | "none";
59
59
  modelValue: string;
60
- resize: "none" | "both" | "horizontal" | "vertical";
61
60
  autoheight: boolean;
61
+ resize: "none" | "both" | "horizontal" | "vertical";
62
62
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
63
63
  export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dronico/droni-kit",
3
3
  "author": "Gustavo Barragan <dev@droni.co>",
4
- "version": "1.20.0",
4
+ "version": "1.21.0",
5
5
  "private": false,
6
6
  "access": "public",
7
7
  "publishConfig": {