@vtj/ui 0.13.32 → 0.13.34
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/dist/index.mjs +1602 -1598
- package/dist/index.umd.js +4 -4
- package/package.json +4 -4
- package/types/components/action/Action.d.ts +573 -721
- package/types/components/action/hooks.d.ts +100 -123
- package/types/components/action-bar/ActionBar.d.ts +383 -481
- package/types/components/attachment/Attachment.d.ts +422 -731
- package/types/components/data-item/DataItem.d.ts +383 -481
- package/types/components/dialog-form/DialogForm.d.ts +138 -332
- package/types/components/field/Field.d.ts +86 -224
- package/types/components/form/Form.d.ts +138 -332
- package/types/components/grid/renderers/components/DateEdit.d.ts +235 -338
- package/types/components/grid/renderers/components/GridEdit.d.ts +81 -249
- package/types/components/grid-editor/GridEditor.d.ts +81 -249
- package/types/components/mask/Mask.d.ts +400 -498
- package/types/components/mask/components/Content.d.ts +1 -0
- package/types/components/query-form/QueryForm.d.ts +290 -672
- package/types/components/tabs/Tabs.d.ts +193 -241
- package/types/version.d.ts +2 -2
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
import { ElTooltipProps, BadgeProps,
|
|
1
|
+
import { ElTooltipProps, BadgeProps, Measurable, PopperEffect, ButtonProps } from 'element-plus';
|
|
2
2
|
import { ActionProps } from './types';
|
|
3
|
-
import { ComputedRef, ExtractPropTypes, PropType, StyleValue } from 'vue';
|
|
3
|
+
import { ComputedRef, ExtractPropTypes, PropType, CSSProperties, StyleValue } from 'vue';
|
|
4
|
+
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
5
|
+
import { EpPropFinalized, EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
4
6
|
export declare function useTooltip(props: ActionProps): ComputedRef<Partial<ElTooltipProps> | undefined>;
|
|
5
7
|
export declare function useBadge(props: ActionProps): ComputedRef<Partial<BadgeProps> | undefined>;
|
|
6
8
|
export declare function useDropdown(props: ActionProps): ComputedRef<Partial< ExtractPropTypes<{
|
|
7
9
|
readonly trigger: {
|
|
8
|
-
readonly type: PropType<
|
|
10
|
+
readonly type: PropType<Arrayable<"click" | "contextmenu" | "hover">>;
|
|
9
11
|
readonly required: false;
|
|
10
12
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
11
|
-
__epPropKey: true;
|
|
12
|
-
} & {
|
|
13
|
+
readonly __epPropKey: true;
|
|
13
14
|
readonly default: "hover";
|
|
14
15
|
};
|
|
15
|
-
readonly triggerKeys:
|
|
16
|
-
readonly type: PropType<string[]>;
|
|
17
|
-
readonly required: false;
|
|
18
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
19
|
-
__epPropKey: true;
|
|
20
|
-
} & {
|
|
21
|
-
readonly default: () => string[];
|
|
22
|
-
};
|
|
16
|
+
readonly triggerKeys: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | ((new (...args: any[]) => string[]) | (() => string[]))[], unknown, unknown, () => string[], boolean>;
|
|
23
17
|
readonly virtualTriggering: BooleanConstructor;
|
|
24
18
|
readonly virtualRef: {
|
|
25
19
|
readonly type: PropType<Measurable>;
|
|
@@ -29,104 +23,56 @@ export declare function useDropdown(props: ActionProps): ComputedRef<Partial< Ex
|
|
|
29
23
|
};
|
|
30
24
|
readonly effect: {
|
|
31
25
|
readonly default: "light";
|
|
32
|
-
readonly type: PropType<PopperEffect
|
|
26
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown>>;
|
|
33
27
|
readonly required: false;
|
|
34
28
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
35
29
|
readonly __epPropKey: true;
|
|
36
30
|
};
|
|
37
31
|
readonly type: {
|
|
38
|
-
readonly type: PropType<"" | "primary" | "success" | "warning" | "info" | "danger" | "default" | "text"
|
|
32
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>) | ((new (...args: any[]) => "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger") | (() => EpPropMergeType<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown>))[], unknown, unknown>>;
|
|
39
33
|
readonly required: false;
|
|
40
34
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
35
|
__epPropKey: true;
|
|
42
36
|
};
|
|
43
|
-
readonly placement:
|
|
44
|
-
|
|
45
|
-
readonly required: false;
|
|
46
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
47
|
-
__epPropKey: true;
|
|
48
|
-
} & {
|
|
49
|
-
readonly default: "bottom";
|
|
50
|
-
};
|
|
51
|
-
readonly popperOptions: {
|
|
52
|
-
readonly type: PropType<any>;
|
|
53
|
-
readonly required: false;
|
|
54
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
|
-
__epPropKey: true;
|
|
56
|
-
} & {
|
|
57
|
-
readonly default: () => {};
|
|
58
|
-
};
|
|
37
|
+
readonly placement: EpPropFinalized<(new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "left" | "right" | "top" | "bottom" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], unknown, unknown, "bottom", boolean>;
|
|
38
|
+
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => {}, boolean>;
|
|
59
39
|
readonly id: StringConstructor;
|
|
60
|
-
readonly size:
|
|
61
|
-
readonly type: PropType<string>;
|
|
62
|
-
readonly required: false;
|
|
63
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
64
|
-
__epPropKey: true;
|
|
65
|
-
} & {
|
|
66
|
-
readonly default: "";
|
|
67
|
-
};
|
|
40
|
+
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
68
41
|
readonly splitButton: BooleanConstructor;
|
|
69
|
-
readonly hideOnClick:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
};
|
|
77
|
-
readonly loop: {
|
|
78
|
-
readonly type: PropType<boolean>;
|
|
79
|
-
readonly required: false;
|
|
80
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
81
|
-
__epPropKey: true;
|
|
82
|
-
} & {
|
|
83
|
-
readonly default: true;
|
|
84
|
-
};
|
|
85
|
-
readonly showArrow: {
|
|
86
|
-
readonly type: PropType<boolean>;
|
|
87
|
-
readonly required: false;
|
|
88
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
89
|
-
__epPropKey: true;
|
|
90
|
-
} & {
|
|
91
|
-
readonly default: true;
|
|
92
|
-
};
|
|
93
|
-
readonly showTimeout: {
|
|
94
|
-
readonly type: PropType<number>;
|
|
95
|
-
readonly required: false;
|
|
96
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
97
|
-
__epPropKey: true;
|
|
98
|
-
} & {
|
|
99
|
-
readonly default: 150;
|
|
100
|
-
};
|
|
101
|
-
readonly hideTimeout: {
|
|
102
|
-
readonly type: PropType<number>;
|
|
103
|
-
readonly required: false;
|
|
104
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
105
|
-
__epPropKey: true;
|
|
106
|
-
} & {
|
|
107
|
-
readonly default: 150;
|
|
108
|
-
};
|
|
109
|
-
readonly tabindex: {
|
|
110
|
-
readonly type: PropType<string | number>;
|
|
111
|
-
readonly required: false;
|
|
112
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
113
|
-
__epPropKey: true;
|
|
114
|
-
} & {
|
|
115
|
-
readonly default: 0;
|
|
116
|
-
};
|
|
117
|
-
readonly maxHeight: {
|
|
118
|
-
readonly type: PropType<string | number>;
|
|
119
|
-
readonly required: false;
|
|
120
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
121
|
-
__epPropKey: true;
|
|
122
|
-
} & {
|
|
123
|
-
readonly default: "";
|
|
124
|
-
};
|
|
42
|
+
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
43
|
+
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
44
|
+
readonly showArrow: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
45
|
+
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
46
|
+
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
|
47
|
+
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
48
|
+
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, "", boolean>;
|
|
125
49
|
readonly popperClass: {
|
|
126
|
-
readonly type: PropType<string | {
|
|
50
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string | {
|
|
51
|
+
[x: string]: boolean;
|
|
52
|
+
} | (string | {
|
|
53
|
+
[x: string]: boolean;
|
|
54
|
+
} | (string | {
|
|
55
|
+
[x: string]: boolean;
|
|
56
|
+
} | (string | {
|
|
57
|
+
[x: string]: boolean;
|
|
58
|
+
} | (string | {
|
|
59
|
+
[x: string]: boolean;
|
|
60
|
+
} | (string | {
|
|
61
|
+
[x: string]: boolean;
|
|
62
|
+
} | (string | {
|
|
63
|
+
[x: string]: boolean;
|
|
64
|
+
} | (string | {
|
|
65
|
+
[x: string]: boolean;
|
|
66
|
+
} | (string | {
|
|
67
|
+
[x: string]: boolean;
|
|
68
|
+
} | (string | {
|
|
69
|
+
[x: string]: boolean;
|
|
70
|
+
} | (string | {
|
|
127
71
|
[x: string]: boolean;
|
|
128
72
|
} | (string | {
|
|
129
73
|
[x: string]: boolean;
|
|
74
|
+
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
75
|
+
[x: string]: boolean;
|
|
130
76
|
} | (string | {
|
|
131
77
|
[x: string]: boolean;
|
|
132
78
|
} | (string | {
|
|
@@ -143,48 +89,79 @@ export declare function useDropdown(props: ActionProps): ComputedRef<Partial< Ex
|
|
|
143
89
|
[x: string]: boolean;
|
|
144
90
|
} | (string | {
|
|
145
91
|
[x: string]: boolean;
|
|
146
|
-
} | (string |
|
|
92
|
+
} | (string | {
|
|
93
|
+
[x: string]: boolean;
|
|
94
|
+
} | (string | {
|
|
95
|
+
[x: string]: boolean;
|
|
96
|
+
} | (string | {
|
|
97
|
+
[x: string]: boolean;
|
|
98
|
+
} | any)[])[])[])[])[])[])[])[])[])[])[]) | ((new (...args: any[]) => string | {
|
|
99
|
+
[x: string]: boolean;
|
|
100
|
+
} | (string | {
|
|
101
|
+
[x: string]: boolean;
|
|
102
|
+
} | (string | {
|
|
103
|
+
[x: string]: boolean;
|
|
104
|
+
} | (string | {
|
|
105
|
+
[x: string]: boolean;
|
|
106
|
+
} | (string | {
|
|
107
|
+
[x: string]: boolean;
|
|
108
|
+
} | (string | {
|
|
109
|
+
[x: string]: boolean;
|
|
110
|
+
} | (string | {
|
|
111
|
+
[x: string]: boolean;
|
|
112
|
+
} | (string | {
|
|
113
|
+
[x: string]: boolean;
|
|
114
|
+
} | (string | {
|
|
115
|
+
[x: string]: boolean;
|
|
116
|
+
} | (string | {
|
|
117
|
+
[x: string]: boolean;
|
|
118
|
+
} | (string | {
|
|
119
|
+
[x: string]: boolean;
|
|
120
|
+
} | (string | {
|
|
121
|
+
[x: string]: boolean;
|
|
122
|
+
} | any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
|
123
|
+
[x: string]: boolean;
|
|
124
|
+
} | (string | {
|
|
147
125
|
[x: string]: boolean;
|
|
148
|
-
}
|
|
126
|
+
} | (string | {
|
|
127
|
+
[x: string]: boolean;
|
|
128
|
+
} | (string | {
|
|
129
|
+
[x: string]: boolean;
|
|
130
|
+
} | (string | {
|
|
131
|
+
[x: string]: boolean;
|
|
132
|
+
} | (string | {
|
|
133
|
+
[x: string]: boolean;
|
|
134
|
+
} | (string | {
|
|
135
|
+
[x: string]: boolean;
|
|
136
|
+
} | (string | {
|
|
137
|
+
[x: string]: boolean;
|
|
138
|
+
} | (string | {
|
|
139
|
+
[x: string]: boolean;
|
|
140
|
+
} | (string | {
|
|
141
|
+
[x: string]: boolean;
|
|
142
|
+
} | (string | {
|
|
143
|
+
[x: string]: boolean;
|
|
144
|
+
} | (string | {
|
|
145
|
+
[x: string]: boolean;
|
|
146
|
+
} | any)[])[])[])[])[])[])[])[])[])[])[]))[], unknown, unknown>>;
|
|
149
147
|
readonly required: false;
|
|
150
148
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
151
149
|
__epPropKey: true;
|
|
152
150
|
};
|
|
153
151
|
readonly popperStyle: {
|
|
154
|
-
readonly type: PropType<StyleValue
|
|
152
|
+
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue) | ((new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue))[], unknown, unknown>>;
|
|
155
153
|
readonly required: false;
|
|
156
154
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
157
155
|
__epPropKey: true;
|
|
158
156
|
};
|
|
159
157
|
readonly disabled: BooleanConstructor;
|
|
160
|
-
readonly role:
|
|
161
|
-
readonly type: PropType<"dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation">;
|
|
162
|
-
readonly required: false;
|
|
163
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
164
|
-
__epPropKey: true;
|
|
165
|
-
} & {
|
|
166
|
-
readonly default: "menu";
|
|
167
|
-
};
|
|
158
|
+
readonly role: EpPropFinalized<StringConstructor, "dialog" | "menu" | "grid" | "listbox" | "tooltip" | "tree" | "group" | "navigation", unknown, "menu", boolean>;
|
|
168
159
|
readonly buttonProps: {
|
|
169
160
|
readonly type: PropType<Partial< ButtonProps>>;
|
|
170
161
|
readonly required: false;
|
|
171
162
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
172
163
|
__epPropKey: true;
|
|
173
164
|
};
|
|
174
|
-
readonly teleported:
|
|
175
|
-
|
|
176
|
-
readonly required: false;
|
|
177
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
178
|
-
__epPropKey: true;
|
|
179
|
-
} & {
|
|
180
|
-
readonly default: true;
|
|
181
|
-
};
|
|
182
|
-
readonly persistent: {
|
|
183
|
-
readonly type: PropType<boolean>;
|
|
184
|
-
readonly required: false;
|
|
185
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
186
|
-
__epPropKey: true;
|
|
187
|
-
} & {
|
|
188
|
-
readonly default: true;
|
|
189
|
-
};
|
|
165
|
+
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
166
|
+
readonly persistent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
190
167
|
}>> | undefined>;
|