cosey 0.7.5 → 0.7.7
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/components/audio-card/audio-card.api.d.ts +1 -1
- package/components/audio-card/audio-card.d.ts +2 -2
- package/components/audio-card/index.d.ts +3 -3
- package/components/config-provider/config-provider.js +11 -4
- package/components/config-provider/override-element-plus.js +19 -7
- package/components/copy/copy.api.d.ts +6 -1
- package/components/copy/copy.api.js +4 -0
- package/components/copy/copy.d.ts +11 -1
- package/components/copy/copy.js +1 -0
- package/components/copy/index.d.ts +21 -3
- package/components/editor/editor.js +1 -1
- package/components/field/components/number-range/number-range.d.ts +3 -3
- package/components/field/components/number-range/number-range.vue.js +1 -1
- package/components/field/components/radio-group/radio-group.d.ts +1 -1
- package/components/field/field.api.d.ts +1 -0
- package/components/field/field.api.js +1 -0
- package/components/field/index.js +1 -0
- package/components/file-card/file-card.api.d.ts +1 -1
- package/components/file-card/file-card.d.ts +2 -2
- package/components/file-card/index.d.ts +3 -3
- package/components/form/form-item.api.d.ts +2 -1
- package/components/form/form-item.api.js +2 -1
- package/components/form/form-item.vue.js +4 -4
- package/components/form/index.d.ts +1 -1
- package/components/form/useBubbleTemplate.d.ts +3 -1
- package/components/form/useBubbleTemplate.js +1 -1
- package/components/form-dialog/form-dialog.api.d.ts +237 -0
- package/components/form-dialog/form-dialog.api.js +53 -0
- package/components/form-dialog/form-dialog.d.ts +221 -59
- package/components/form-dialog/form-dialog.js +53 -46
- package/components/form-dialog/index.d.ts +2 -2
- package/components/form-dialog/index.js +2 -2
- package/components/form-dialog/useFormDialogWidth.d.ts +1 -1
- package/components/form-dialog/useFormDialogWidth.js +1 -1
- package/components/form-drawer/form-drawer.api.d.ts +226 -0
- package/components/form-drawer/form-drawer.api.js +26 -0
- package/components/form-drawer/form-drawer.d.ts +273 -43
- package/components/form-drawer/form-drawer.js +54 -11
- package/components/form-drawer/index.d.ts +44 -76
- package/components/form-drawer/index.js +2 -2
- package/components/form-group/form-group.api.d.ts +73 -0
- package/components/form-group/form-group.api.js +41 -0
- package/components/form-group/form-group.d.ts +143 -14
- package/components/form-group/form-group.js +69 -0
- package/components/{input-number-range/style/index.d.ts → form-group/form-group.style.d.ts} +1 -1
- package/components/form-group/{style/index.js → form-group.style.js} +2 -2
- package/components/form-group/index.d.ts +230 -22
- package/components/form-group/index.js +2 -1
- package/components/form-list/form-list.api.d.ts +1 -0
- package/components/form-query/form-query.api.js +1 -1
- package/components/image-card/image-card.api.d.ts +1 -1
- package/components/image-card/image-card.d.ts +2 -2
- package/components/image-card/index.d.ts +3 -3
- package/components/index.js +8 -6
- package/components/input-number-range/index.d.ts +118 -15
- package/components/input-number-range/index.js +2 -2
- package/components/input-number-range/input-number-range.api.d.ts +43 -0
- package/components/input-number-range/input-number-range.api.js +44 -0
- package/components/input-number-range/input-number-range.d.ts +79 -24
- package/components/input-number-range/input-number-range.js +109 -4
- package/components/{long-text/style/index.d.ts → input-number-range/input-number-range.style.d.ts} +1 -1
- package/components/input-number-range/{style/index.js → input-number-range.style.js} +1 -1
- package/components/long-text/index.d.ts +63 -17
- package/components/long-text/index.js +2 -2
- package/components/long-text/long-text.api.d.ts +23 -0
- package/components/long-text/long-text.api.js +20 -0
- package/components/long-text/long-text.d.ts +38 -14
- package/components/long-text/long-text.js +56 -6
- package/components/{scroll-view/style/index.d.ts → long-text/long-text.style.d.ts} +1 -1
- package/components/long-text/{style/index.js → long-text.style.js} +2 -2
- package/components/media-card/index.d.ts +3 -3
- package/components/media-card/media-card.api.d.ts +2 -2
- package/components/media-card/media-card.d.ts +2 -2
- package/components/media-card/media-card.style.js +2 -1
- package/components/panel/panel.api.d.ts +2 -5
- package/components/remote-select/index.d.ts +6 -6
- package/components/remote-select/remote-select.api.d.ts +1 -1
- package/components/remote-select/remote-select.d.ts +2 -2
- package/components/remote-select/remote-select.js +1 -1
- package/components/scroll-view/index.d.ts +5 -5
- package/components/scroll-view/scroll-view.style.d.ts +4 -0
- package/components/scroll-view/{style/index.js → scroll-view.style.js} +1 -1
- package/components/scroll-view/scroll-view.vue.d.ts +1 -1
- package/components/scroll-view/scroll-view.vue.js +1 -1
- package/components/stack-dialog/index.d.ts +609 -4
- package/components/stack-dialog/index.js +2 -2
- package/components/stack-dialog/stack-dialog.api.d.ts +200 -0
- package/components/stack-dialog/stack-dialog.api.js +65 -0
- package/components/stack-dialog/stack-dialog.d.ts +204 -30
- package/components/stack-dialog/stack-dialog.js +67 -59
- package/components/svga-card/index.d.ts +3 -3
- package/components/svga-card/svga-card.api.d.ts +1 -1
- package/components/svga-card/svga-card.d.ts +2 -2
- package/components/table/index.d.ts +22 -4
- package/components/table/index.js +1 -1
- package/components/table/table-column/table-column.d.ts +3 -3
- package/components/table/table-column-editor/table-column-editor.api.d.ts +17 -0
- package/components/table/table-column-editor/table-column-editor.api.js +15 -0
- package/components/table/table-column-editor/table-column-editor.d.ts +26 -11
- package/components/table/table-column-editor/table-column-editor.js +154 -4
- package/components/table/table-export/item.d.ts +15 -0
- package/components/table/table-export/item.js +37 -0
- package/components/table/table-export/list.d.ts +15 -0
- package/components/table/table-export/list.js +27 -0
- package/components/table/table-export/table-export.api.d.ts +208 -0
- package/components/table/table-export/table-export.api.js +32 -0
- package/components/table/table-export/table-export.d.ts +262 -35
- package/components/table/table-export/table-export.js +238 -26
- package/components/table/table-export/{style/index.js → table-export.style.js} +1 -1
- package/components/table/table-footer/index.d.ts +30 -6
- package/components/table/table-footer/index.js +25 -5
- package/components/table/table-footer/utils.d.ts +1 -1
- package/components/table/table-footer/utils.js +6 -2
- package/components/table/table-query/table-query.api.d.ts +172 -0
- package/components/table/table-query/table-query.api.js +31 -0
- package/components/table/table-query/table-query.d.ts +207 -44
- package/components/table/table-query/table-query.js +84 -24
- package/components/table/table-stats/table-stats.api.d.ts +17 -0
- package/components/table/table-stats/table-stats.api.js +12 -0
- package/components/table/table-stats/table-stats.d.ts +23 -14
- package/components/table/table-stats/table-stats.js +37 -5
- package/components/table/table.d.ts +8 -2
- package/components/table/table.js +7 -1
- package/components/table/table.vue.d.ts +14 -2
- package/components/table/table.vue.js +15 -12
- package/components/theme/getGlobalStyleHook.js +2 -22
- package/components/transition-group/index.d.ts +3 -3
- package/components/transition-group/transition-group.d.ts +1 -1
- package/components/upload/upload.js +1 -1
- package/components/video-card/index.d.ts +3 -3
- package/components/video-card/video-card.api.d.ts +1 -1
- package/components/video-card/video-card.d.ts +2 -2
- package/config/root-config-provider.js +1 -1
- package/hooks/useColorScheme.d.ts +2 -2
- package/hooks/useColorScheme.js +1 -1
- package/index.js +7 -2
- package/layout/layout-header/style/index.js +1 -1
- package/package.json +4 -5
- package/router/index.d.ts +1 -0
- package/router/index.js +4 -3
- package/types/helper.d.ts +8 -0
- package/utils/index.js +1 -0
- package/utils/warning.d.ts +2 -0
- package/utils/warning.js +2 -0
- package/components/form-dialog/form-dialog.vue.js +0 -63
- package/components/form-drawer/form-drawer.vue.d.ts +0 -482
- package/components/form-drawer/form-drawer.vue.js +0 -64
- package/components/form-group/form-group.vue.d.ts +0 -19
- package/components/form-group/form-group.vue.js +0 -139
- package/components/input-number-range/input-number-range.vue.d.ts +0 -18
- package/components/input-number-range/input-number-range.vue.js +0 -166
- package/components/long-text/long-text.vue.d.ts +0 -14
- package/components/long-text/long-text.vue.js +0 -94
- package/components/stack-dialog/stack-dialog.vue.js +0 -75
- package/components/table/table-column-editor/table-column-editor.vue.d.ts +0 -22
- package/components/table/table-column-editor/table-column-editor.vue.js +0 -188
- package/components/table/table-export/item.vue.d.ts +0 -7
- package/components/table/table-export/item.vue.js +0 -41
- package/components/table/table-export/list.vue.d.ts +0 -7
- package/components/table/table-export/list.vue.js +0 -32
- package/components/table/table-export/style/index.d.ts +0 -4
- package/components/table/table-export/table-export.vue.d.ts +0 -428
- package/components/table/table-export/table-export.vue.js +0 -250
- package/components/table/table-query/table-query.vue.d.ts +0 -349
- package/components/table/table-query/table-query.vue.js +0 -92
- package/components/table/table-stats/table-stats.vue.d.ts +0 -6
- package/components/table/table-stats/table-stats.vue.js +0 -52
- /package/components/scroll-view/{scroll-view.d.ts → scroll-view.api.d.ts} +0 -0
- /package/components/scroll-view/{scroll-view.js → scroll-view.api.js} +0 -0
- /package/components/{form-group/style/index.d.ts → table/table-export/table-export.style.d.ts} +0 -0
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
width: {
|
|
3
|
+
type: import("vue").PropType<import("./form-dialog.api").FormDialogWidth>;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
closeOnClickModal: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
closeOnPressEscape: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
4
14
|
confirmText: {
|
|
5
15
|
type: StringConstructor;
|
|
6
16
|
default: string;
|
|
@@ -10,10 +20,10 @@ export declare const formDialogButtonProps: {
|
|
|
10
20
|
default: string;
|
|
11
21
|
};
|
|
12
22
|
confirmProps: {
|
|
13
|
-
type: PropType<ButtonProps>;
|
|
23
|
+
type: import("vue").PropType<import("element-plus").ButtonProps>;
|
|
14
24
|
};
|
|
15
25
|
cancelProps: {
|
|
16
|
-
type: PropType<ButtonProps>;
|
|
26
|
+
type: import("vue").PropType<import("element-plus").ButtonProps>;
|
|
17
27
|
};
|
|
18
28
|
hideConfirm: {
|
|
19
29
|
type: BooleanConstructor;
|
|
@@ -21,19 +31,156 @@ export declare const formDialogButtonProps: {
|
|
|
21
31
|
hideCancel: {
|
|
22
32
|
type: BooleanConstructor;
|
|
23
33
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
appendToBody: BooleanConstructor;
|
|
35
|
+
appendTo: {
|
|
36
|
+
readonly type: import("vue").PropType<string | HTMLElement>;
|
|
37
|
+
readonly required: false;
|
|
38
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
39
|
+
__epPropKey: true;
|
|
40
|
+
} & {
|
|
41
|
+
readonly default: "body";
|
|
42
|
+
};
|
|
43
|
+
beforeClose: {
|
|
44
|
+
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
45
|
+
readonly required: false;
|
|
46
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
47
|
+
__epPropKey: true;
|
|
48
|
+
};
|
|
49
|
+
destroyOnClose: BooleanConstructor;
|
|
50
|
+
lockScroll: {
|
|
51
|
+
readonly type: import("vue").PropType<boolean>;
|
|
52
|
+
readonly required: false;
|
|
53
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
54
|
+
__epPropKey: true;
|
|
55
|
+
} & {
|
|
56
|
+
readonly default: true;
|
|
57
|
+
};
|
|
58
|
+
modal: {
|
|
59
|
+
readonly type: import("vue").PropType<boolean>;
|
|
60
|
+
readonly required: false;
|
|
61
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
62
|
+
__epPropKey: true;
|
|
63
|
+
} & {
|
|
64
|
+
readonly default: true;
|
|
65
|
+
};
|
|
66
|
+
modalPenetrable: BooleanConstructor;
|
|
67
|
+
openDelay: {
|
|
68
|
+
readonly type: import("vue").PropType<number>;
|
|
69
|
+
readonly required: false;
|
|
70
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
71
|
+
__epPropKey: true;
|
|
72
|
+
} & {
|
|
73
|
+
readonly default: 0;
|
|
74
|
+
};
|
|
75
|
+
closeDelay: {
|
|
76
|
+
readonly type: import("vue").PropType<number>;
|
|
77
|
+
readonly required: false;
|
|
78
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
79
|
+
__epPropKey: true;
|
|
80
|
+
} & {
|
|
81
|
+
readonly default: 0;
|
|
82
|
+
};
|
|
83
|
+
top: {
|
|
84
|
+
readonly type: import("vue").PropType<string>;
|
|
85
|
+
readonly required: false;
|
|
86
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
87
|
+
__epPropKey: true;
|
|
88
|
+
};
|
|
89
|
+
modelValue: BooleanConstructor;
|
|
90
|
+
modalClass: StringConstructor;
|
|
91
|
+
headerClass: StringConstructor;
|
|
92
|
+
bodyClass: StringConstructor;
|
|
93
|
+
footerClass: StringConstructor;
|
|
94
|
+
zIndex: {
|
|
95
|
+
readonly type: import("vue").PropType<number>;
|
|
96
|
+
readonly required: false;
|
|
97
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
98
|
+
__epPropKey: true;
|
|
99
|
+
};
|
|
100
|
+
trapFocus: BooleanConstructor;
|
|
101
|
+
headerAriaLevel: {
|
|
102
|
+
readonly type: import("vue").PropType<string>;
|
|
103
|
+
readonly required: false;
|
|
104
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
105
|
+
__epPropKey: true;
|
|
106
|
+
} & {
|
|
107
|
+
readonly default: "2";
|
|
108
|
+
};
|
|
109
|
+
transition: {
|
|
110
|
+
readonly type: import("vue").PropType<import("element-plus").DialogTransition>;
|
|
111
|
+
readonly required: false;
|
|
112
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
113
|
+
__epPropKey: true;
|
|
114
|
+
} & {
|
|
115
|
+
readonly default: undefined;
|
|
116
|
+
};
|
|
117
|
+
center: BooleanConstructor;
|
|
118
|
+
alignCenter: {
|
|
119
|
+
readonly type: import("vue").PropType<boolean>;
|
|
120
|
+
readonly required: false;
|
|
121
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
122
|
+
__epPropKey: true;
|
|
123
|
+
} & {
|
|
124
|
+
readonly default: undefined;
|
|
125
|
+
};
|
|
126
|
+
closeIcon: {
|
|
127
|
+
readonly type: import("vue").PropType<string | import("vue").Component>;
|
|
128
|
+
readonly required: false;
|
|
129
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
130
|
+
__epPropKey: true;
|
|
131
|
+
};
|
|
132
|
+
draggable: {
|
|
133
|
+
readonly type: import("vue").PropType<boolean>;
|
|
134
|
+
readonly required: false;
|
|
135
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
136
|
+
__epPropKey: true;
|
|
137
|
+
} & {
|
|
138
|
+
readonly default: undefined;
|
|
139
|
+
};
|
|
140
|
+
overflow: {
|
|
141
|
+
readonly type: import("vue").PropType<boolean>;
|
|
142
|
+
readonly required: false;
|
|
143
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
144
|
+
__epPropKey: true;
|
|
145
|
+
} & {
|
|
146
|
+
readonly default: undefined;
|
|
147
|
+
};
|
|
148
|
+
fullscreen: BooleanConstructor;
|
|
149
|
+
showClose: {
|
|
150
|
+
readonly type: import("vue").PropType<boolean>;
|
|
151
|
+
readonly required: false;
|
|
152
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
153
|
+
__epPropKey: true;
|
|
154
|
+
} & {
|
|
155
|
+
readonly default: true;
|
|
156
|
+
};
|
|
157
|
+
title: {
|
|
158
|
+
readonly type: import("vue").PropType<string>;
|
|
159
|
+
readonly required: false;
|
|
160
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
161
|
+
__epPropKey: true;
|
|
162
|
+
} & {
|
|
163
|
+
readonly default: "";
|
|
164
|
+
};
|
|
165
|
+
ariaLevel: {
|
|
166
|
+
readonly type: import("vue").PropType<string>;
|
|
167
|
+
readonly required: false;
|
|
168
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
169
|
+
__epPropKey: true;
|
|
170
|
+
} & {
|
|
171
|
+
readonly default: "2";
|
|
172
|
+
};
|
|
173
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
174
|
+
open: () => boolean;
|
|
175
|
+
opened: () => boolean;
|
|
176
|
+
close: () => boolean;
|
|
177
|
+
closed: () => boolean;
|
|
178
|
+
"update:modelValue": (value: boolean) => boolean;
|
|
179
|
+
openAutoFocus: () => boolean;
|
|
180
|
+
closeAutoFocus: () => boolean;
|
|
181
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
182
|
width: {
|
|
36
|
-
type: PropType<FormDialogWidth>;
|
|
183
|
+
type: import("vue").PropType<import("./form-dialog.api").FormDialogWidth>;
|
|
37
184
|
default: string;
|
|
38
185
|
};
|
|
39
186
|
closeOnClickModal: {
|
|
@@ -53,10 +200,10 @@ export declare const formDialogProps: {
|
|
|
53
200
|
default: string;
|
|
54
201
|
};
|
|
55
202
|
confirmProps: {
|
|
56
|
-
type: PropType<ButtonProps>;
|
|
203
|
+
type: import("vue").PropType<import("element-plus").ButtonProps>;
|
|
57
204
|
};
|
|
58
205
|
cancelProps: {
|
|
59
|
-
type: PropType<ButtonProps>;
|
|
206
|
+
type: import("vue").PropType<import("element-plus").ButtonProps>;
|
|
60
207
|
};
|
|
61
208
|
hideConfirm: {
|
|
62
209
|
type: BooleanConstructor;
|
|
@@ -66,7 +213,7 @@ export declare const formDialogProps: {
|
|
|
66
213
|
};
|
|
67
214
|
appendToBody: BooleanConstructor;
|
|
68
215
|
appendTo: {
|
|
69
|
-
readonly type: PropType<string | HTMLElement>;
|
|
216
|
+
readonly type: import("vue").PropType<string | HTMLElement>;
|
|
70
217
|
readonly required: false;
|
|
71
218
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
72
219
|
__epPropKey: true;
|
|
@@ -74,14 +221,14 @@ export declare const formDialogProps: {
|
|
|
74
221
|
readonly default: "body";
|
|
75
222
|
};
|
|
76
223
|
beforeClose: {
|
|
77
|
-
readonly type: PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
224
|
+
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
78
225
|
readonly required: false;
|
|
79
226
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
80
227
|
__epPropKey: true;
|
|
81
228
|
};
|
|
82
229
|
destroyOnClose: BooleanConstructor;
|
|
83
230
|
lockScroll: {
|
|
84
|
-
readonly type: PropType<boolean>;
|
|
231
|
+
readonly type: import("vue").PropType<boolean>;
|
|
85
232
|
readonly required: false;
|
|
86
233
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
87
234
|
__epPropKey: true;
|
|
@@ -89,7 +236,7 @@ export declare const formDialogProps: {
|
|
|
89
236
|
readonly default: true;
|
|
90
237
|
};
|
|
91
238
|
modal: {
|
|
92
|
-
readonly type: PropType<boolean>;
|
|
239
|
+
readonly type: import("vue").PropType<boolean>;
|
|
93
240
|
readonly required: false;
|
|
94
241
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
95
242
|
__epPropKey: true;
|
|
@@ -98,7 +245,7 @@ export declare const formDialogProps: {
|
|
|
98
245
|
};
|
|
99
246
|
modalPenetrable: BooleanConstructor;
|
|
100
247
|
openDelay: {
|
|
101
|
-
readonly type: PropType<number>;
|
|
248
|
+
readonly type: import("vue").PropType<number>;
|
|
102
249
|
readonly required: false;
|
|
103
250
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
104
251
|
__epPropKey: true;
|
|
@@ -106,7 +253,7 @@ export declare const formDialogProps: {
|
|
|
106
253
|
readonly default: 0;
|
|
107
254
|
};
|
|
108
255
|
closeDelay: {
|
|
109
|
-
readonly type: PropType<number>;
|
|
256
|
+
readonly type: import("vue").PropType<number>;
|
|
110
257
|
readonly required: false;
|
|
111
258
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
112
259
|
__epPropKey: true;
|
|
@@ -114,7 +261,7 @@ export declare const formDialogProps: {
|
|
|
114
261
|
readonly default: 0;
|
|
115
262
|
};
|
|
116
263
|
top: {
|
|
117
|
-
readonly type: PropType<string>;
|
|
264
|
+
readonly type: import("vue").PropType<string>;
|
|
118
265
|
readonly required: false;
|
|
119
266
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
120
267
|
__epPropKey: true;
|
|
@@ -125,14 +272,14 @@ export declare const formDialogProps: {
|
|
|
125
272
|
bodyClass: StringConstructor;
|
|
126
273
|
footerClass: StringConstructor;
|
|
127
274
|
zIndex: {
|
|
128
|
-
readonly type: PropType<number>;
|
|
275
|
+
readonly type: import("vue").PropType<number>;
|
|
129
276
|
readonly required: false;
|
|
130
277
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
131
278
|
__epPropKey: true;
|
|
132
279
|
};
|
|
133
280
|
trapFocus: BooleanConstructor;
|
|
134
281
|
headerAriaLevel: {
|
|
135
|
-
readonly type: PropType<string>;
|
|
282
|
+
readonly type: import("vue").PropType<string>;
|
|
136
283
|
readonly required: false;
|
|
137
284
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
138
285
|
__epPropKey: true;
|
|
@@ -140,7 +287,7 @@ export declare const formDialogProps: {
|
|
|
140
287
|
readonly default: "2";
|
|
141
288
|
};
|
|
142
289
|
transition: {
|
|
143
|
-
readonly type: PropType<import("element-plus").DialogTransition>;
|
|
290
|
+
readonly type: import("vue").PropType<import("element-plus").DialogTransition>;
|
|
144
291
|
readonly required: false;
|
|
145
292
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
146
293
|
__epPropKey: true;
|
|
@@ -149,7 +296,7 @@ export declare const formDialogProps: {
|
|
|
149
296
|
};
|
|
150
297
|
center: BooleanConstructor;
|
|
151
298
|
alignCenter: {
|
|
152
|
-
readonly type: PropType<boolean>;
|
|
299
|
+
readonly type: import("vue").PropType<boolean>;
|
|
153
300
|
readonly required: false;
|
|
154
301
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
155
302
|
__epPropKey: true;
|
|
@@ -157,13 +304,13 @@ export declare const formDialogProps: {
|
|
|
157
304
|
readonly default: undefined;
|
|
158
305
|
};
|
|
159
306
|
closeIcon: {
|
|
160
|
-
readonly type: PropType<string | import("vue").Component>;
|
|
307
|
+
readonly type: import("vue").PropType<string | import("vue").Component>;
|
|
161
308
|
readonly required: false;
|
|
162
309
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
163
310
|
__epPropKey: true;
|
|
164
311
|
};
|
|
165
312
|
draggable: {
|
|
166
|
-
readonly type: PropType<boolean>;
|
|
313
|
+
readonly type: import("vue").PropType<boolean>;
|
|
167
314
|
readonly required: false;
|
|
168
315
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
169
316
|
__epPropKey: true;
|
|
@@ -171,7 +318,7 @@ export declare const formDialogProps: {
|
|
|
171
318
|
readonly default: undefined;
|
|
172
319
|
};
|
|
173
320
|
overflow: {
|
|
174
|
-
readonly type: PropType<boolean>;
|
|
321
|
+
readonly type: import("vue").PropType<boolean>;
|
|
175
322
|
readonly required: false;
|
|
176
323
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
177
324
|
__epPropKey: true;
|
|
@@ -180,7 +327,7 @@ export declare const formDialogProps: {
|
|
|
180
327
|
};
|
|
181
328
|
fullscreen: BooleanConstructor;
|
|
182
329
|
showClose: {
|
|
183
|
-
readonly type: PropType<boolean>;
|
|
330
|
+
readonly type: import("vue").PropType<boolean>;
|
|
184
331
|
readonly required: false;
|
|
185
332
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
186
333
|
__epPropKey: true;
|
|
@@ -188,7 +335,7 @@ export declare const formDialogProps: {
|
|
|
188
335
|
readonly default: true;
|
|
189
336
|
};
|
|
190
337
|
title: {
|
|
191
|
-
readonly type: PropType<string>;
|
|
338
|
+
readonly type: import("vue").PropType<string>;
|
|
192
339
|
readonly required: false;
|
|
193
340
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
194
341
|
__epPropKey: true;
|
|
@@ -196,33 +343,48 @@ export declare const formDialogProps: {
|
|
|
196
343
|
readonly default: "";
|
|
197
344
|
};
|
|
198
345
|
ariaLevel: {
|
|
199
|
-
readonly type: PropType<string>;
|
|
346
|
+
readonly type: import("vue").PropType<string>;
|
|
200
347
|
readonly required: false;
|
|
201
348
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
202
349
|
__epPropKey: true;
|
|
203
350
|
} & {
|
|
204
351
|
readonly default: "2";
|
|
205
352
|
};
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
353
|
+
}>> & Readonly<{
|
|
354
|
+
onOpen?: (() => any) | undefined;
|
|
355
|
+
onClose?: (() => any) | undefined;
|
|
356
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
357
|
+
onOpened?: (() => any) | undefined;
|
|
358
|
+
onClosed?: (() => any) | undefined;
|
|
359
|
+
onOpenAutoFocus?: (() => any) | undefined;
|
|
360
|
+
onCloseAutoFocus?: (() => any) | undefined;
|
|
361
|
+
}>, {
|
|
362
|
+
width: import("./form-dialog.api").FormDialogWidth;
|
|
363
|
+
overflow: boolean;
|
|
364
|
+
transition: import("element-plus").DialogTransition;
|
|
365
|
+
center: boolean;
|
|
366
|
+
title: string;
|
|
367
|
+
closeOnPressEscape: boolean;
|
|
368
|
+
draggable: boolean;
|
|
369
|
+
appendToBody: boolean;
|
|
370
|
+
appendTo: string | HTMLElement;
|
|
371
|
+
modelValue: boolean;
|
|
372
|
+
showClose: boolean;
|
|
373
|
+
confirmText: string;
|
|
374
|
+
cancelText: string;
|
|
375
|
+
hideConfirm: boolean;
|
|
376
|
+
hideCancel: boolean;
|
|
377
|
+
closeOnClickModal: boolean;
|
|
378
|
+
destroyOnClose: boolean;
|
|
379
|
+
lockScroll: boolean;
|
|
380
|
+
modal: boolean;
|
|
381
|
+
modalPenetrable: boolean;
|
|
382
|
+
openDelay: number;
|
|
383
|
+
closeDelay: number;
|
|
384
|
+
trapFocus: boolean;
|
|
385
|
+
headerAriaLevel: string;
|
|
386
|
+
alignCenter: boolean;
|
|
387
|
+
fullscreen: boolean;
|
|
388
|
+
ariaLevel: string;
|
|
389
|
+
}, import("vue").SlotsType<import("./form-dialog.api").FormDialogSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
390
|
+
export default _default;
|
|
@@ -1,49 +1,56 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineComponent, computed, createVNode, mergeProps, h } from 'vue';
|
|
2
|
+
import { formDialogEmits, formDialogSlots, formDialogProps, elFormDialogExposeKeys } from './form-dialog.api.js';
|
|
3
|
+
import '../form/index.js';
|
|
4
|
+
import { useFormDialogWidth } from './useFormDialogWidth.js';
|
|
5
|
+
import { ElDialog } from 'element-plus';
|
|
6
|
+
import { useBubbleTemplate } from '../form/useBubbleTemplate.js';
|
|
2
7
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
var stdin_default = defineComponent({
|
|
9
|
+
name: "CoFormDialog",
|
|
10
|
+
props: formDialogProps,
|
|
11
|
+
slots: formDialogSlots,
|
|
12
|
+
emits: formDialogEmits,
|
|
13
|
+
setup(props, {
|
|
14
|
+
emit,
|
|
15
|
+
slots,
|
|
16
|
+
expose: _expose
|
|
17
|
+
}) {
|
|
18
|
+
const {
|
|
19
|
+
visible,
|
|
20
|
+
handleOpen,
|
|
21
|
+
handleClosed,
|
|
22
|
+
expose,
|
|
23
|
+
buttonTemplate,
|
|
24
|
+
elPopupRef
|
|
25
|
+
} = useBubbleTemplate({
|
|
26
|
+
props,
|
|
27
|
+
emit,
|
|
28
|
+
slots,
|
|
29
|
+
exposeKeys: elFormDialogExposeKeys
|
|
30
|
+
});
|
|
31
|
+
const width = useFormDialogWidth(computed(() => props.width));
|
|
32
|
+
_expose(expose);
|
|
33
|
+
return () => {
|
|
34
|
+
return createVNode(ElDialog, mergeProps({
|
|
35
|
+
"ref": elPopupRef
|
|
36
|
+
}, props, {
|
|
37
|
+
"modelValue": visible.value,
|
|
38
|
+
"onUpdate:modelValue": $event => visible.value = $event,
|
|
39
|
+
"style": {
|
|
40
|
+
maxWidth: props.fullscreen ? null : "calc(100vw - 32px)"
|
|
41
|
+
},
|
|
42
|
+
"width": width.value,
|
|
43
|
+
"append-to-body": true,
|
|
44
|
+
"onOpen": handleOpen,
|
|
45
|
+
"onClosed": handleClosed
|
|
46
|
+
}), {
|
|
47
|
+
...slots,
|
|
48
|
+
footer: () => {
|
|
49
|
+
return slots.footer ? slots.footer({}) : h(buttonTemplate);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
};
|
|
23
53
|
}
|
|
24
|
-
};
|
|
25
|
-
const mapFormDialogWidth = {
|
|
26
|
-
sm: 420,
|
|
27
|
-
md: 640,
|
|
28
|
-
lg: 900,
|
|
29
|
-
xl: 1200
|
|
30
|
-
};
|
|
31
|
-
const formDialogProps = {
|
|
32
|
-
...dialogProps,
|
|
33
|
-
...formDialogButtonProps,
|
|
34
|
-
width: {
|
|
35
|
-
type: [String, Number],
|
|
36
|
-
default: "fit-content"
|
|
37
|
-
},
|
|
38
|
-
closeOnClickModal: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default: false
|
|
41
|
-
},
|
|
42
|
-
closeOnPressEscape: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: false
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
const elFormDialogExposeKeys = ["resetPosition", "handleClose"];
|
|
54
|
+
});
|
|
48
55
|
|
|
49
|
-
export {
|
|
56
|
+
export { stdin_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Plugin, Component } from 'vue';
|
|
2
2
|
import { useFormDialogWidth } from './useFormDialogWidth';
|
|
3
|
-
import { FormDialogProps } from './form-dialog';
|
|
4
|
-
export * from './form-dialog';
|
|
3
|
+
import { FormDialogProps } from './form-dialog.api';
|
|
4
|
+
export * from './form-dialog.api';
|
|
5
5
|
declare const _FormDialog: Component<FormDialogProps> & Plugin;
|
|
6
6
|
export { _FormDialog as FormDialog, useFormDialogWidth };
|
|
7
7
|
export default _FormDialog;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { withInstall } from '../utils.js';
|
|
2
|
-
import stdin_default$1 from './form-dialog.
|
|
2
|
+
import stdin_default$1 from './form-dialog.js';
|
|
3
3
|
export { useFormDialogWidth } from './useFormDialogWidth.js';
|
|
4
|
-
export { elFormDialogExposeKeys, formDialogButtonProps, formDialogProps, mapFormDialogWidth } from './form-dialog.js';
|
|
4
|
+
export { elFormDialogExposeKeys, formDialogButtonProps, formDialogEmits, formDialogProps, formDialogSlots, mapFormDialogWidth } from './form-dialog.api.js';
|
|
5
5
|
|
|
6
6
|
const _FormDialog = withInstall(stdin_default$1);
|
|
7
7
|
var stdin_default = _FormDialog;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { type FormDialogWidth } from './form-dialog';
|
|
2
|
+
import { type FormDialogWidth } from './form-dialog.api';
|
|
3
3
|
export declare function getFormDialogWidth(outWidth?: FormDialogWidth): FormDialogWidth | undefined;
|
|
4
4
|
export declare function useFormDialogWidth(width: Ref<FormDialogWidth | undefined>): import("vue").ComputedRef<FormDialogWidth | undefined>;
|