@weaveui/web 0.0.1
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/LICENSE +35 -0
- package/README.md +119 -0
- package/THIRD_PARTY_NOTICES +29 -0
- package/dist/apm-log.es.js +996 -0
- package/dist/apm-log.umd.cjs +1 -0
- package/dist/business/apm-log/behavior-directive.d.ts +9 -0
- package/dist/business/apm-log/behavior-log.d.ts +6 -0
- package/dist/business/apm-log/behavior-types.d.ts +121 -0
- package/dist/business/apm-log/browser.d.ts +3 -0
- package/dist/business/apm-log/directive.d.ts +13 -0
- package/dist/business/apm-log/index.d.ts +8 -0
- package/dist/business/apm-log/legacy-apm-log.d.ts +6 -0
- package/dist/business/apm-log/types.d.ts +147 -0
- package/dist/business/apm-log/vue.d.ts +5 -0
- package/dist/business/monitor/index.d.ts +81 -0
- package/dist/business/monitor/monitor-plugin.d.ts +9 -0
- package/dist/business/monitor/runtime-types.d.ts +166 -0
- package/dist/business/monitor/runtime.d.ts +6 -0
- package/dist/business/monitor/types.d.ts +221 -0
- package/dist/business/permission/Permission.d.ts +18 -0
- package/dist/business/permission/PermissionPluginClass.d.ts +40 -0
- package/dist/business/permission/directive.d.ts +7 -0
- package/dist/business/permission/index.d.ts +35 -0
- package/dist/business/permission/permission-plugin.d.ts +16 -0
- package/dist/business/permission/storage.d.ts +30 -0
- package/dist/business/permission/tree.d.ts +19 -0
- package/dist/business/permission/types.d.ts +115 -0
- package/dist/business/upload-cos/index.d.ts +117 -0
- package/dist/business/upload-cos/src/UploadCos.vue.d.ts +70 -0
- package/dist/business/upload-cos/src/types.d.ts +72 -0
- package/dist/business/upload-cos/src/utils.d.ts +9 -0
- package/dist/index.d.ts +1894 -0
- package/dist/index.es.js +4315 -0
- package/dist/index.umd.cjs +6 -0
- package/dist/monitor.es.js +1217 -0
- package/dist/monitor.umd.cjs +1 -0
- package/dist/permission.es.js +631 -0
- package/dist/permission.umd.cjs +1 -0
- package/dist/style.css +1 -0
- package/dist/upload-cos.es.js +426 -0
- package/dist/upload-cos.style.css +1 -0
- package/dist/upload-cos.umd.cjs +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/is.d.ts +2 -0
- package/dist/utils/withInstall.d.ts +7 -0
- package/package.json +105 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1894 @@
|
|
|
1
|
+
import { AllowedComponentProps } from 'vue';
|
|
2
|
+
import { Component } from 'vue';
|
|
3
|
+
import { ComponentCustomProps } from 'vue';
|
|
4
|
+
import { ComponentOptionsBase } from 'vue';
|
|
5
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
6
|
+
import { ComponentProvideOptions } from 'vue';
|
|
7
|
+
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
8
|
+
import { DefineComponent } from 'vue';
|
|
9
|
+
import { GlobalComponents } from 'vue';
|
|
10
|
+
import { GlobalDirectives } from 'vue';
|
|
11
|
+
import { Plugin as Plugin_2 } from 'vue';
|
|
12
|
+
import { PublicProps } from 'vue';
|
|
13
|
+
import { ShallowUnwrapRef } from 'vue';
|
|
14
|
+
import { TableInstance } from 'element-plus';
|
|
15
|
+
import { UploadRawFile } from 'element-plus';
|
|
16
|
+
import { UploadUserFile } from 'element-plus';
|
|
17
|
+
import { VNode } from 'vue';
|
|
18
|
+
import { VNodeProps } from 'vue';
|
|
19
|
+
|
|
20
|
+
export declare const Button: SFCWithInstall< {
|
|
21
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ButtonProps> & Readonly<{
|
|
22
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
24
|
+
click: (event: MouseEvent) => any;
|
|
25
|
+
}, PublicProps, {
|
|
26
|
+
size: ButtonSize;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
type: ButtonType;
|
|
29
|
+
loading: boolean;
|
|
30
|
+
nativeType: ButtonNativeType;
|
|
31
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLButtonElement, ComponentProvideOptions, {
|
|
32
|
+
P: {};
|
|
33
|
+
B: {};
|
|
34
|
+
D: {};
|
|
35
|
+
C: {};
|
|
36
|
+
M: {};
|
|
37
|
+
Defaults: {};
|
|
38
|
+
}, Readonly<ButtonProps> & Readonly<{
|
|
39
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
40
|
+
}>, {}, {}, {}, {}, {
|
|
41
|
+
size: ButtonSize;
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
type: ButtonType;
|
|
44
|
+
loading: boolean;
|
|
45
|
+
nativeType: ButtonNativeType;
|
|
46
|
+
}>;
|
|
47
|
+
__isFragment?: never;
|
|
48
|
+
__isTeleport?: never;
|
|
49
|
+
__isSuspense?: never;
|
|
50
|
+
} & ComponentOptionsBase<Readonly<ButtonProps> & Readonly<{
|
|
51
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
52
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
53
|
+
click: (event: MouseEvent) => any;
|
|
54
|
+
}, string, {
|
|
55
|
+
size: ButtonSize;
|
|
56
|
+
disabled: boolean;
|
|
57
|
+
type: ButtonType;
|
|
58
|
+
loading: boolean;
|
|
59
|
+
nativeType: ButtonNativeType;
|
|
60
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
61
|
+
$slots: {
|
|
62
|
+
default?(_: {}): any;
|
|
63
|
+
};
|
|
64
|
+
})>;
|
|
65
|
+
|
|
66
|
+
export declare type ButtonNativeType = 'button' | 'submit' | 'reset';
|
|
67
|
+
|
|
68
|
+
export declare interface ButtonProps {
|
|
69
|
+
type?: ButtonType;
|
|
70
|
+
size?: ButtonSize;
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
loading?: boolean;
|
|
73
|
+
nativeType?: ButtonNativeType;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export declare type ButtonSize = 'small' | 'medium' | 'large';
|
|
77
|
+
|
|
78
|
+
export declare type ButtonType = 'primary' | 'secondary' | 'text';
|
|
79
|
+
|
|
80
|
+
export declare const CatImage: SFCWithInstall< {
|
|
81
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<CatImageProps> & Readonly<{
|
|
82
|
+
"onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
|
|
83
|
+
"onUpdate:imgIndex"?: ((index: number) => any) | undefined;
|
|
84
|
+
onChange?: ((file: CatImageFile, index: number) => any) | undefined;
|
|
85
|
+
onCancel?: (() => any) | undefined;
|
|
86
|
+
}>, {
|
|
87
|
+
open: (index?: number) => void;
|
|
88
|
+
close: () => void;
|
|
89
|
+
reset: () => void;
|
|
90
|
+
changeImage: (index: number) => void;
|
|
91
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
92
|
+
"update:modelValue": (visible: boolean) => any;
|
|
93
|
+
"update:imgIndex": (index: number) => any;
|
|
94
|
+
change: (file: CatImageFile, index: number) => any;
|
|
95
|
+
cancel: () => any;
|
|
96
|
+
}, PublicProps, {
|
|
97
|
+
title: string;
|
|
98
|
+
files: CatImageFile[];
|
|
99
|
+
fileImgList: CatImageFile[];
|
|
100
|
+
imgIndex: number;
|
|
101
|
+
previewUrl: string;
|
|
102
|
+
showTrigger: boolean;
|
|
103
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
104
|
+
viewportRef: HTMLDivElement;
|
|
105
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
106
|
+
P: {};
|
|
107
|
+
B: {};
|
|
108
|
+
D: {};
|
|
109
|
+
C: {};
|
|
110
|
+
M: {};
|
|
111
|
+
Defaults: {};
|
|
112
|
+
}, Readonly<CatImageProps> & Readonly<{
|
|
113
|
+
"onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
|
|
114
|
+
"onUpdate:imgIndex"?: ((index: number) => any) | undefined;
|
|
115
|
+
onChange?: ((file: CatImageFile, index: number) => any) | undefined;
|
|
116
|
+
onCancel?: (() => any) | undefined;
|
|
117
|
+
}>, {
|
|
118
|
+
open: (index?: number) => void;
|
|
119
|
+
close: () => void;
|
|
120
|
+
reset: () => void;
|
|
121
|
+
changeImage: (index: number) => void;
|
|
122
|
+
}, {}, {}, {}, {
|
|
123
|
+
title: string;
|
|
124
|
+
files: CatImageFile[];
|
|
125
|
+
fileImgList: CatImageFile[];
|
|
126
|
+
imgIndex: number;
|
|
127
|
+
previewUrl: string;
|
|
128
|
+
showTrigger: boolean;
|
|
129
|
+
}>;
|
|
130
|
+
__isFragment?: never;
|
|
131
|
+
__isTeleport?: never;
|
|
132
|
+
__isSuspense?: never;
|
|
133
|
+
} & ComponentOptionsBase<Readonly<CatImageProps> & Readonly<{
|
|
134
|
+
"onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
|
|
135
|
+
"onUpdate:imgIndex"?: ((index: number) => any) | undefined;
|
|
136
|
+
onChange?: ((file: CatImageFile, index: number) => any) | undefined;
|
|
137
|
+
onCancel?: (() => any) | undefined;
|
|
138
|
+
}>, {
|
|
139
|
+
open: (index?: number) => void;
|
|
140
|
+
close: () => void;
|
|
141
|
+
reset: () => void;
|
|
142
|
+
changeImage: (index: number) => void;
|
|
143
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
144
|
+
"update:modelValue": (visible: boolean) => any;
|
|
145
|
+
"update:imgIndex": (index: number) => any;
|
|
146
|
+
change: (file: CatImageFile, index: number) => any;
|
|
147
|
+
cancel: () => any;
|
|
148
|
+
}, string, {
|
|
149
|
+
title: string;
|
|
150
|
+
files: CatImageFile[];
|
|
151
|
+
fileImgList: CatImageFile[];
|
|
152
|
+
imgIndex: number;
|
|
153
|
+
previewUrl: string;
|
|
154
|
+
showTrigger: boolean;
|
|
155
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
156
|
+
$slots: {
|
|
157
|
+
default?(_: {
|
|
158
|
+
open: (index?: number) => void;
|
|
159
|
+
files: CatImageFile[];
|
|
160
|
+
activeFile: CatImageFile;
|
|
161
|
+
visible: boolean;
|
|
162
|
+
}): any;
|
|
163
|
+
};
|
|
164
|
+
})>;
|
|
165
|
+
|
|
166
|
+
export declare interface CatImageFile {
|
|
167
|
+
name?: string;
|
|
168
|
+
url?: string;
|
|
169
|
+
[key: string]: unknown;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export declare interface CatImageProps {
|
|
173
|
+
/**
|
|
174
|
+
* When explicitly bound, controls the preview state through v-model.
|
|
175
|
+
* When omitted, CatImage maintains its own open state.
|
|
176
|
+
*/
|
|
177
|
+
modelValue?: boolean;
|
|
178
|
+
files?: CatImageFile[];
|
|
179
|
+
/** Compatibility alias for the previous component API. */
|
|
180
|
+
fileImgList?: CatImageFile[];
|
|
181
|
+
imgIndex?: number;
|
|
182
|
+
/** Whether the Element Plus dialog renders its modal overlay. */
|
|
183
|
+
modal?: boolean;
|
|
184
|
+
/** @deprecated Use modal instead. This legacy prop controls the dialog overlay, not preview visibility. */
|
|
185
|
+
visible?: boolean;
|
|
186
|
+
previewUrl?: string;
|
|
187
|
+
previewUrlResolver?: CatImageUrlResolver;
|
|
188
|
+
title?: string;
|
|
189
|
+
showTrigger?: boolean;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export declare type CatImageUrlResolver = (file: CatImageFile, index: number) => string | undefined;
|
|
193
|
+
|
|
194
|
+
export declare const Checkbox: SFCWithInstall<DefineComponent< {
|
|
195
|
+
data?: CheckboxOption[];
|
|
196
|
+
modelValue?: CheckboxValue[];
|
|
197
|
+
disabled?: boolean;
|
|
198
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
199
|
+
"update:modelValue": (value: CheckboxValue[]) => any;
|
|
200
|
+
}, string, PublicProps, Readonly<{
|
|
201
|
+
data?: CheckboxOption[];
|
|
202
|
+
modelValue?: CheckboxValue[];
|
|
203
|
+
disabled?: boolean;
|
|
204
|
+
}> & Readonly<{
|
|
205
|
+
"onUpdate:modelValue"?: ((value: CheckboxValue[]) => any) | undefined;
|
|
206
|
+
}>, {
|
|
207
|
+
data: CheckboxOption[];
|
|
208
|
+
modelValue: CheckboxValue[];
|
|
209
|
+
disabled: boolean;
|
|
210
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>>;
|
|
211
|
+
|
|
212
|
+
export declare interface CheckboxOption {
|
|
213
|
+
label: string;
|
|
214
|
+
value: CheckboxValue;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export declare type CheckboxValue = string | number;
|
|
218
|
+
|
|
219
|
+
export declare const CopyText: SFCWithInstall< {
|
|
220
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
221
|
+
text?: string | number;
|
|
222
|
+
label?: string;
|
|
223
|
+
successText?: string;
|
|
224
|
+
title?: string;
|
|
225
|
+
trigger?: CopyTextTrigger;
|
|
226
|
+
disabled?: boolean;
|
|
227
|
+
resetDelay?: number;
|
|
228
|
+
}> & Readonly<{
|
|
229
|
+
onSuccess?: ((payload: CopyTextPayload) => any) | undefined;
|
|
230
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
231
|
+
}>, {
|
|
232
|
+
copy: () => Promise<void>;
|
|
233
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
234
|
+
success: (payload: CopyTextPayload) => any;
|
|
235
|
+
error: (error: unknown) => any;
|
|
236
|
+
}, PublicProps, {
|
|
237
|
+
disabled: boolean;
|
|
238
|
+
label: string;
|
|
239
|
+
title: string;
|
|
240
|
+
text: string | number;
|
|
241
|
+
successText: string;
|
|
242
|
+
trigger: CopyTextTrigger;
|
|
243
|
+
resetDelay: number;
|
|
244
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLButtonElement, ComponentProvideOptions, {
|
|
245
|
+
P: {};
|
|
246
|
+
B: {};
|
|
247
|
+
D: {};
|
|
248
|
+
C: {};
|
|
249
|
+
M: {};
|
|
250
|
+
Defaults: {};
|
|
251
|
+
}, Readonly<{
|
|
252
|
+
text?: string | number;
|
|
253
|
+
label?: string;
|
|
254
|
+
successText?: string;
|
|
255
|
+
title?: string;
|
|
256
|
+
trigger?: CopyTextTrigger;
|
|
257
|
+
disabled?: boolean;
|
|
258
|
+
resetDelay?: number;
|
|
259
|
+
}> & Readonly<{
|
|
260
|
+
onSuccess?: ((payload: CopyTextPayload) => any) | undefined;
|
|
261
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
262
|
+
}>, {
|
|
263
|
+
copy: () => Promise<void>;
|
|
264
|
+
}, {}, {}, {}, {
|
|
265
|
+
disabled: boolean;
|
|
266
|
+
label: string;
|
|
267
|
+
title: string;
|
|
268
|
+
text: string | number;
|
|
269
|
+
successText: string;
|
|
270
|
+
trigger: CopyTextTrigger;
|
|
271
|
+
resetDelay: number;
|
|
272
|
+
}>;
|
|
273
|
+
__isFragment?: never;
|
|
274
|
+
__isTeleport?: never;
|
|
275
|
+
__isSuspense?: never;
|
|
276
|
+
} & ComponentOptionsBase<Readonly<{
|
|
277
|
+
text?: string | number;
|
|
278
|
+
label?: string;
|
|
279
|
+
successText?: string;
|
|
280
|
+
title?: string;
|
|
281
|
+
trigger?: CopyTextTrigger;
|
|
282
|
+
disabled?: boolean;
|
|
283
|
+
resetDelay?: number;
|
|
284
|
+
}> & Readonly<{
|
|
285
|
+
onSuccess?: ((payload: CopyTextPayload) => any) | undefined;
|
|
286
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
287
|
+
}>, {
|
|
288
|
+
copy: () => Promise<void>;
|
|
289
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
290
|
+
success: (payload: CopyTextPayload) => any;
|
|
291
|
+
error: (error: unknown) => any;
|
|
292
|
+
}, string, {
|
|
293
|
+
disabled: boolean;
|
|
294
|
+
label: string;
|
|
295
|
+
title: string;
|
|
296
|
+
text: string | number;
|
|
297
|
+
successText: string;
|
|
298
|
+
trigger: CopyTextTrigger;
|
|
299
|
+
resetDelay: number;
|
|
300
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
301
|
+
$slots: {
|
|
302
|
+
default?(_: {
|
|
303
|
+
copied: boolean;
|
|
304
|
+
copy: () => Promise<void>;
|
|
305
|
+
text: string;
|
|
306
|
+
}): any;
|
|
307
|
+
};
|
|
308
|
+
})>;
|
|
309
|
+
|
|
310
|
+
export declare interface CopyTextPayload {
|
|
311
|
+
text: string;
|
|
312
|
+
source: 'clipboard' | 'fallback';
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export declare type CopyTextTrigger = 'button' | 'text' | 'icon';
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Creates an adapter for values such as
|
|
319
|
+
* { companyId: [], departmentId: [], userId: [] } without coupling the component
|
|
320
|
+
* to one specific organisation API.
|
|
321
|
+
*/
|
|
322
|
+
export declare function createGroupedMemberValueAdapter(options: GroupedMemberValueAdapterOptions): MemberValueAdapter<Record<string, TreeKey[]>>;
|
|
323
|
+
|
|
324
|
+
export declare const CustomTable: SFCWithInstall<(<TRow extends object = object, TFilters extends object = object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
325
|
+
slots: Partial<Record<string, (_: {
|
|
326
|
+
column: CustomTableColumn<TRow> & {
|
|
327
|
+
key: CustomTableColumnKey;
|
|
328
|
+
sourceIndex: number;
|
|
329
|
+
};
|
|
330
|
+
index: number;
|
|
331
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
332
|
+
column: CustomTableColumn<TRow> & {
|
|
333
|
+
key: CustomTableColumnKey;
|
|
334
|
+
sourceIndex: number;
|
|
335
|
+
};
|
|
336
|
+
index: any;
|
|
337
|
+
row: any;
|
|
338
|
+
value: unknown;
|
|
339
|
+
}) => any>> & {
|
|
340
|
+
toolbar?(_: {
|
|
341
|
+
filters: TFilters;
|
|
342
|
+
page: number;
|
|
343
|
+
pageSize: number;
|
|
344
|
+
visibleColumnKeys: readonly CustomTableColumnKey[];
|
|
345
|
+
loading: boolean;
|
|
346
|
+
exporting: boolean;
|
|
347
|
+
reload: () => Promise<void>;
|
|
348
|
+
setFilters: (filters: TFilters) => void;
|
|
349
|
+
setVisibleColumnKeys: (keys: readonly CustomTableColumnKey[]) => void;
|
|
350
|
+
exportRows: () => Promise<void>;
|
|
351
|
+
}): any;
|
|
352
|
+
'toolbar-left'?(_: {
|
|
353
|
+
filters: TFilters;
|
|
354
|
+
page: number;
|
|
355
|
+
pageSize: number;
|
|
356
|
+
visibleColumnKeys: readonly CustomTableColumnKey[];
|
|
357
|
+
loading: boolean;
|
|
358
|
+
exporting: boolean;
|
|
359
|
+
reload: () => Promise<void>;
|
|
360
|
+
setFilters: (filters: TFilters) => void;
|
|
361
|
+
setVisibleColumnKeys: (keys: readonly CustomTableColumnKey[]) => void;
|
|
362
|
+
exportRows: () => Promise<void>;
|
|
363
|
+
}): any;
|
|
364
|
+
'toolbar-right'?(_: {
|
|
365
|
+
filters: TFilters;
|
|
366
|
+
page: number;
|
|
367
|
+
pageSize: number;
|
|
368
|
+
visibleColumnKeys: readonly CustomTableColumnKey[];
|
|
369
|
+
loading: boolean;
|
|
370
|
+
exporting: boolean;
|
|
371
|
+
reload: () => Promise<void>;
|
|
372
|
+
setFilters: (filters: TFilters) => void;
|
|
373
|
+
setVisibleColumnKeys: (keys: readonly CustomTableColumnKey[]) => void;
|
|
374
|
+
exportRows: () => Promise<void>;
|
|
375
|
+
}): any;
|
|
376
|
+
};
|
|
377
|
+
attrs: any;
|
|
378
|
+
emit: ((evt: "sort-change", sort: CustomTableSort) => void) & ((evt: "update:filters", filters: TFilters) => void) & ((evt: "update:page", page: number) => void) & ((evt: "update:pageSize", pageSize: number) => void) & ((evt: "update:visibleColumnKeys", keys: string[]) => void) & ((evt: "reload") => void) & ((evt: "load-success", result: CustomTableLoadResult<TRow>) => void) & ((evt: "load-error", error: unknown) => void) & ((evt: "export-error", error: unknown) => void) & ((evt: "persistence-error", error: unknown) => void);
|
|
379
|
+
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
380
|
+
props: {
|
|
381
|
+
readonly "onSort-change"?: ((sort: CustomTableSort) => any) | undefined;
|
|
382
|
+
readonly "onUpdate:filters"?: ((filters: TFilters) => any) | undefined;
|
|
383
|
+
readonly "onUpdate:page"?: ((page: number) => any) | undefined;
|
|
384
|
+
readonly "onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
385
|
+
readonly "onUpdate:visibleColumnKeys"?: ((keys: string[]) => any) | undefined;
|
|
386
|
+
readonly onReload?: (() => any) | undefined;
|
|
387
|
+
readonly "onLoad-success"?: ((result: CustomTableLoadResult<TRow>) => any) | undefined;
|
|
388
|
+
readonly "onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
389
|
+
readonly "onExport-error"?: ((error: unknown) => any) | undefined;
|
|
390
|
+
readonly "onPersistence-error"?: ((error: unknown) => any) | undefined;
|
|
391
|
+
columns: readonly CustomTableColumn<TRow>[];
|
|
392
|
+
rows?: readonly TRow[] | undefined;
|
|
393
|
+
loader?: CustomTableLoader<TRow, TFilters> | undefined;
|
|
394
|
+
filters?: TFilters | undefined;
|
|
395
|
+
page?: number | undefined;
|
|
396
|
+
pageSize?: number | undefined;
|
|
397
|
+
pagination?: boolean | undefined;
|
|
398
|
+
pageSizes?: readonly number[] | undefined;
|
|
399
|
+
visibleColumnKeys?: readonly CustomTableColumnKey[] | undefined;
|
|
400
|
+
showRefresh?: boolean | undefined;
|
|
401
|
+
showColumnSettings?: boolean | undefined;
|
|
402
|
+
columnPersistenceKey?: string | undefined;
|
|
403
|
+
storageAdapter?: CustomTableStorageAdapter | undefined;
|
|
404
|
+
autoLoad?: boolean | undefined;
|
|
405
|
+
exporter?: CustomTableExporter<TRow, TFilters> | undefined;
|
|
406
|
+
rowKey?: string | ((row: TRow) => string | number) | undefined;
|
|
407
|
+
emptyText?: string | undefined;
|
|
408
|
+
} & PublicProps;
|
|
409
|
+
expose(exposed: ShallowUnwrapRef<CustomTableExposed<TRow, TFilters>>): void;
|
|
410
|
+
attrs: any;
|
|
411
|
+
slots: Partial<Record<string, (_: {
|
|
412
|
+
column: CustomTableColumn<TRow> & {
|
|
413
|
+
key: CustomTableColumnKey;
|
|
414
|
+
sourceIndex: number;
|
|
415
|
+
};
|
|
416
|
+
index: number;
|
|
417
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
418
|
+
column: CustomTableColumn<TRow> & {
|
|
419
|
+
key: CustomTableColumnKey;
|
|
420
|
+
sourceIndex: number;
|
|
421
|
+
};
|
|
422
|
+
index: any;
|
|
423
|
+
row: any;
|
|
424
|
+
value: unknown;
|
|
425
|
+
}) => any>> & {
|
|
426
|
+
toolbar?(_: {
|
|
427
|
+
filters: TFilters;
|
|
428
|
+
page: number;
|
|
429
|
+
pageSize: number;
|
|
430
|
+
visibleColumnKeys: readonly CustomTableColumnKey[];
|
|
431
|
+
loading: boolean;
|
|
432
|
+
exporting: boolean;
|
|
433
|
+
reload: () => Promise<void>;
|
|
434
|
+
setFilters: (filters: TFilters) => void;
|
|
435
|
+
setVisibleColumnKeys: (keys: readonly CustomTableColumnKey[]) => void;
|
|
436
|
+
exportRows: () => Promise<void>;
|
|
437
|
+
}): any;
|
|
438
|
+
'toolbar-left'?(_: {
|
|
439
|
+
filters: TFilters;
|
|
440
|
+
page: number;
|
|
441
|
+
pageSize: number;
|
|
442
|
+
visibleColumnKeys: readonly CustomTableColumnKey[];
|
|
443
|
+
loading: boolean;
|
|
444
|
+
exporting: boolean;
|
|
445
|
+
reload: () => Promise<void>;
|
|
446
|
+
setFilters: (filters: TFilters) => void;
|
|
447
|
+
setVisibleColumnKeys: (keys: readonly CustomTableColumnKey[]) => void;
|
|
448
|
+
exportRows: () => Promise<void>;
|
|
449
|
+
}): any;
|
|
450
|
+
'toolbar-right'?(_: {
|
|
451
|
+
filters: TFilters;
|
|
452
|
+
page: number;
|
|
453
|
+
pageSize: number;
|
|
454
|
+
visibleColumnKeys: readonly CustomTableColumnKey[];
|
|
455
|
+
loading: boolean;
|
|
456
|
+
exporting: boolean;
|
|
457
|
+
reload: () => Promise<void>;
|
|
458
|
+
setFilters: (filters: TFilters) => void;
|
|
459
|
+
setVisibleColumnKeys: (keys: readonly CustomTableColumnKey[]) => void;
|
|
460
|
+
exportRows: () => Promise<void>;
|
|
461
|
+
}): any;
|
|
462
|
+
};
|
|
463
|
+
emit: ((evt: "sort-change", sort: CustomTableSort) => void) & ((evt: "update:filters", filters: TFilters) => void) & ((evt: "update:page", page: number) => void) & ((evt: "update:pageSize", pageSize: number) => void) & ((evt: "update:visibleColumnKeys", keys: string[]) => void) & ((evt: "reload") => void) & ((evt: "load-success", result: CustomTableLoadResult<TRow>) => void) & ((evt: "load-error", error: unknown) => void) & ((evt: "export-error", error: unknown) => void) & ((evt: "persistence-error", error: unknown) => void);
|
|
464
|
+
}>) => VNode & {
|
|
465
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
466
|
+
})>;
|
|
467
|
+
|
|
468
|
+
export declare interface CustomTableCellContext<TRow extends object = object> {
|
|
469
|
+
row: TRow;
|
|
470
|
+
column: CustomTableColumn<TRow>;
|
|
471
|
+
index: number;
|
|
472
|
+
value: unknown;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* A simple `{ prop, label }` column is sufficient for ordinary data fields.
|
|
477
|
+
* Use the optional slot and formatter hooks for custom rendering.
|
|
478
|
+
*/
|
|
479
|
+
export declare interface CustomTableColumn<TRow extends object = object> {
|
|
480
|
+
key?: CustomTableColumnKey;
|
|
481
|
+
prop?: string;
|
|
482
|
+
label?: string;
|
|
483
|
+
type?: CustomTableColumnType;
|
|
484
|
+
width?: number | string;
|
|
485
|
+
minWidth?: number | string;
|
|
486
|
+
fixed?: boolean | 'left' | 'right';
|
|
487
|
+
align?: CustomTableColumnAlign;
|
|
488
|
+
headerAlign?: CustomTableColumnAlign;
|
|
489
|
+
sortable?: boolean | 'custom';
|
|
490
|
+
showOverflowTooltip?: boolean;
|
|
491
|
+
className?: string;
|
|
492
|
+
labelClassName?: string;
|
|
493
|
+
hideable?: boolean;
|
|
494
|
+
visible?: boolean;
|
|
495
|
+
index?: number | ((index: number) => number);
|
|
496
|
+
cellSlot?: string;
|
|
497
|
+
headerSlot?: string;
|
|
498
|
+
/** Legacy alias for cellSlot. */
|
|
499
|
+
slot?: string;
|
|
500
|
+
/** Legacy alias for headerSlot. */
|
|
501
|
+
header?: string;
|
|
502
|
+
value?: (row: TRow, index: number) => unknown;
|
|
503
|
+
formatter?: (context: CustomTableCellContext<TRow>) => unknown;
|
|
504
|
+
sortMethod?: (left: TRow, right: TRow) => number;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
export declare type CustomTableColumnAlign = 'left' | 'center' | 'right';
|
|
508
|
+
|
|
509
|
+
export declare type CustomTableColumnKey = string;
|
|
510
|
+
|
|
511
|
+
export declare type CustomTableColumnType = 'default' | 'selection' | 'index' | 'expand';
|
|
512
|
+
|
|
513
|
+
export declare interface CustomTableExportContext<TRow extends object = object, TFilters extends object = object> {
|
|
514
|
+
rows: readonly TRow[];
|
|
515
|
+
columns: readonly CustomTableColumn<TRow>[];
|
|
516
|
+
filters: TFilters;
|
|
517
|
+
page: number;
|
|
518
|
+
pageSize: number;
|
|
519
|
+
total: number;
|
|
520
|
+
sort: CustomTableSort;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
export declare type CustomTableExporter<TRow extends object = object, TFilters extends object = object> = (context: CustomTableExportContext<TRow, TFilters>) => void | Promise<void>;
|
|
524
|
+
|
|
525
|
+
export declare interface CustomTableExposed<TRow extends object = object, TFilters extends object = object> {
|
|
526
|
+
reload: () => Promise<void>;
|
|
527
|
+
clearSelection: () => void;
|
|
528
|
+
setFilters: (filters: TFilters) => void;
|
|
529
|
+
setVisibleColumnKeys: (keys: readonly CustomTableColumnKey[]) => void;
|
|
530
|
+
getTableInstance: () => TableInstance | null;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
export declare interface CustomTableHeaderContext<TRow extends object = object> {
|
|
534
|
+
column: CustomTableColumn<TRow>;
|
|
535
|
+
index: number;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export declare interface CustomTableLoadContext<TFilters extends object = object> {
|
|
539
|
+
filters: TFilters;
|
|
540
|
+
page: number;
|
|
541
|
+
pageSize: number;
|
|
542
|
+
sort: CustomTableSort;
|
|
543
|
+
signal: AbortSignal;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
export declare type CustomTableLoader<TRow extends object = object, TFilters extends object = object> = (context: CustomTableLoadContext<TFilters>) => CustomTableLoadResult<TRow> | Promise<CustomTableLoadResult<TRow>>;
|
|
547
|
+
|
|
548
|
+
export declare interface CustomTableLoadResult<TRow extends object = object> {
|
|
549
|
+
rows: readonly TRow[];
|
|
550
|
+
total: number;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
export declare interface CustomTableProps<TRow extends object = object, TFilters extends object = object> {
|
|
554
|
+
columns: readonly CustomTableColumn<TRow>[];
|
|
555
|
+
rows?: readonly TRow[];
|
|
556
|
+
loader?: CustomTableLoader<TRow, TFilters>;
|
|
557
|
+
filters?: TFilters;
|
|
558
|
+
page?: number;
|
|
559
|
+
pageSize?: number;
|
|
560
|
+
pagination?: boolean;
|
|
561
|
+
pageSizes?: readonly number[];
|
|
562
|
+
visibleColumnKeys?: readonly CustomTableColumnKey[];
|
|
563
|
+
showRefresh?: boolean;
|
|
564
|
+
showColumnSettings?: boolean;
|
|
565
|
+
columnPersistenceKey?: string;
|
|
566
|
+
storageAdapter?: CustomTableStorageAdapter;
|
|
567
|
+
autoLoad?: boolean;
|
|
568
|
+
exporter?: CustomTableExporter<TRow, TFilters>;
|
|
569
|
+
rowKey?: string | ((row: TRow) => string | number);
|
|
570
|
+
emptyText?: string;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
export declare interface CustomTableSort {
|
|
574
|
+
key: CustomTableColumnKey | null;
|
|
575
|
+
order: CustomTableSortOrder;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
export declare type CustomTableSortOrder = 'ascending' | 'descending' | null;
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Persistence is opt-in. The component only serializes visible keys and never
|
|
582
|
+
* reads browser storage unless both this adapter and columnPersistenceKey exist.
|
|
583
|
+
*/
|
|
584
|
+
export declare interface CustomTableStorageAdapter {
|
|
585
|
+
getItem: (key: string) => string | null | undefined | Promise<string | null | undefined>;
|
|
586
|
+
setItem: (key: string, value: string) => void | Promise<void>;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
export declare interface CustomTableToolbarContext<TRow extends object = object, TFilters extends object = object> {
|
|
590
|
+
filters: TFilters;
|
|
591
|
+
page: number;
|
|
592
|
+
pageSize: number;
|
|
593
|
+
visibleColumnKeys: readonly CustomTableColumnKey[];
|
|
594
|
+
loading: boolean;
|
|
595
|
+
exporting: boolean;
|
|
596
|
+
reload: () => Promise<void>;
|
|
597
|
+
setFilters: (filters: TFilters) => void;
|
|
598
|
+
setVisibleColumnKeys: (keys: readonly CustomTableColumnKey[]) => void;
|
|
599
|
+
exportRows: () => Promise<void>;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
export declare const CustomTree: SFCWithInstall<DefineComponent<CustomTreeProps, {
|
|
603
|
+
clear: () => void;
|
|
604
|
+
getSelection: () => TreeSelection;
|
|
605
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
606
|
+
"update:modelValue": (keys: TreeKey[]) => any;
|
|
607
|
+
change: (selection: TreeSelection) => any;
|
|
608
|
+
}, string, PublicProps, Readonly<CustomTreeProps> & Readonly<{
|
|
609
|
+
"onUpdate:modelValue"?: ((keys: TreeKey[]) => any) | undefined;
|
|
610
|
+
onChange?: ((selection: TreeSelection) => any) | undefined;
|
|
611
|
+
}>, {
|
|
612
|
+
data: readonly TreeNode[];
|
|
613
|
+
modelValue: readonly TreeKey[];
|
|
614
|
+
disabled: boolean;
|
|
615
|
+
emptyText: string;
|
|
616
|
+
fields: TreeFieldMap;
|
|
617
|
+
maxColumns: number;
|
|
618
|
+
selectionStrategy: TreeSelectionStrategy;
|
|
619
|
+
searchable: boolean;
|
|
620
|
+
showSelected: boolean;
|
|
621
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>>;
|
|
622
|
+
|
|
623
|
+
export declare interface CustomTreeExposed {
|
|
624
|
+
clear: () => void;
|
|
625
|
+
getSelection: () => TreeSelection;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
export declare interface CustomTreeProps {
|
|
629
|
+
data?: readonly TreeNode[];
|
|
630
|
+
modelValue?: readonly TreeKey[];
|
|
631
|
+
fields?: TreeFieldMap;
|
|
632
|
+
/** Limits the number of visible drill-down columns. Zero means no limit. */
|
|
633
|
+
maxColumns?: number;
|
|
634
|
+
selectionStrategy?: TreeSelectionStrategy;
|
|
635
|
+
isSelectable?: (node: TreeNode) => boolean;
|
|
636
|
+
disabled?: boolean;
|
|
637
|
+
searchable?: boolean;
|
|
638
|
+
/** One or more zero-based columns that render a search box. */
|
|
639
|
+
searchColumns?: number | readonly number[];
|
|
640
|
+
showSelected?: boolean;
|
|
641
|
+
maxHeight?: string | number;
|
|
642
|
+
emptyText?: string;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
export declare const CustomUpload: SFCWithInstall< {
|
|
646
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<CustomUploadProps> & Readonly<{
|
|
647
|
+
"onUpdate:modelValue"?: ((files: UploadFileItem[]) => any) | undefined;
|
|
648
|
+
onSelect?: ((file: File) => any) | undefined;
|
|
649
|
+
onChange?: ((files: UploadFileItem[]) => any) | undefined;
|
|
650
|
+
onSuccess?: ((file: UploadFileItem) => any) | undefined;
|
|
651
|
+
onError?: ((error: unknown, file: File) => any) | undefined;
|
|
652
|
+
}>, {
|
|
653
|
+
uploadFile: (file: File) => Promise<UploadFileItem[]>;
|
|
654
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
655
|
+
"update:modelValue": (files: UploadFileItem[]) => any;
|
|
656
|
+
select: (file: File) => any;
|
|
657
|
+
change: (files: UploadFileItem[]) => any;
|
|
658
|
+
success: (file: UploadFileItem) => any;
|
|
659
|
+
error: (error: unknown, file: File) => any;
|
|
660
|
+
}, PublicProps, {
|
|
661
|
+
data: Record<string, unknown>;
|
|
662
|
+
disabled: boolean;
|
|
663
|
+
multiple: boolean;
|
|
664
|
+
uploadUrl: string;
|
|
665
|
+
headers: Record<string, string>;
|
|
666
|
+
accept: string;
|
|
667
|
+
fileName: string;
|
|
668
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
669
|
+
P: {};
|
|
670
|
+
B: {};
|
|
671
|
+
D: {};
|
|
672
|
+
C: {};
|
|
673
|
+
M: {};
|
|
674
|
+
Defaults: {};
|
|
675
|
+
}, Readonly<CustomUploadProps> & Readonly<{
|
|
676
|
+
"onUpdate:modelValue"?: ((files: UploadFileItem[]) => any) | undefined;
|
|
677
|
+
onSelect?: ((file: File) => any) | undefined;
|
|
678
|
+
onChange?: ((files: UploadFileItem[]) => any) | undefined;
|
|
679
|
+
onSuccess?: ((file: UploadFileItem) => any) | undefined;
|
|
680
|
+
onError?: ((error: unknown, file: File) => any) | undefined;
|
|
681
|
+
}>, {
|
|
682
|
+
uploadFile: (file: File) => Promise<UploadFileItem[]>;
|
|
683
|
+
}, {}, {}, {}, {
|
|
684
|
+
data: Record<string, unknown>;
|
|
685
|
+
disabled: boolean;
|
|
686
|
+
multiple: boolean;
|
|
687
|
+
uploadUrl: string;
|
|
688
|
+
headers: Record<string, string>;
|
|
689
|
+
accept: string;
|
|
690
|
+
fileName: string;
|
|
691
|
+
}>;
|
|
692
|
+
__isFragment?: never;
|
|
693
|
+
__isTeleport?: never;
|
|
694
|
+
__isSuspense?: never;
|
|
695
|
+
} & ComponentOptionsBase<Readonly<CustomUploadProps> & Readonly<{
|
|
696
|
+
"onUpdate:modelValue"?: ((files: UploadFileItem[]) => any) | undefined;
|
|
697
|
+
onSelect?: ((file: File) => any) | undefined;
|
|
698
|
+
onChange?: ((files: UploadFileItem[]) => any) | undefined;
|
|
699
|
+
onSuccess?: ((file: UploadFileItem) => any) | undefined;
|
|
700
|
+
onError?: ((error: unknown, file: File) => any) | undefined;
|
|
701
|
+
}>, {
|
|
702
|
+
uploadFile: (file: File) => Promise<UploadFileItem[]>;
|
|
703
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
704
|
+
"update:modelValue": (files: UploadFileItem[]) => any;
|
|
705
|
+
select: (file: File) => any;
|
|
706
|
+
change: (files: UploadFileItem[]) => any;
|
|
707
|
+
success: (file: UploadFileItem) => any;
|
|
708
|
+
error: (error: unknown, file: File) => any;
|
|
709
|
+
}, string, {
|
|
710
|
+
data: Record<string, unknown>;
|
|
711
|
+
disabled: boolean;
|
|
712
|
+
multiple: boolean;
|
|
713
|
+
uploadUrl: string;
|
|
714
|
+
headers: Record<string, string>;
|
|
715
|
+
accept: string;
|
|
716
|
+
fileName: string;
|
|
717
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
718
|
+
$slots: {
|
|
719
|
+
default?(_: {
|
|
720
|
+
disabled: boolean;
|
|
721
|
+
uploading: boolean;
|
|
722
|
+
}): any;
|
|
723
|
+
};
|
|
724
|
+
})>;
|
|
725
|
+
|
|
726
|
+
export declare interface CustomUploadProps {
|
|
727
|
+
/** Optional controlled list. Omit it to let the component keep its own files. */
|
|
728
|
+
modelValue?: UploadFileItem[];
|
|
729
|
+
uploader?: UploadHandler;
|
|
730
|
+
uploadUrl?: string;
|
|
731
|
+
data?: Record<string, unknown>;
|
|
732
|
+
headers?: Record<string, string>;
|
|
733
|
+
accept?: string;
|
|
734
|
+
fileName?: string;
|
|
735
|
+
multiple?: boolean;
|
|
736
|
+
disabled?: boolean;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
export declare const DateRangePicker: SFCWithInstall<DefineComponent< {
|
|
740
|
+
modelValue?: DateRangeValue;
|
|
741
|
+
disabled?: boolean;
|
|
742
|
+
type?: string;
|
|
743
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
744
|
+
"update:modelValue": (value: DateRangeValue) => any;
|
|
745
|
+
change: (value: DateRangeValue) => any;
|
|
746
|
+
}, string, PublicProps, Readonly<{
|
|
747
|
+
modelValue?: DateRangeValue;
|
|
748
|
+
disabled?: boolean;
|
|
749
|
+
type?: string;
|
|
750
|
+
}> & Readonly<{
|
|
751
|
+
"onUpdate:modelValue"?: ((value: DateRangeValue) => any) | undefined;
|
|
752
|
+
onChange?: ((value: DateRangeValue) => any) | undefined;
|
|
753
|
+
}>, {
|
|
754
|
+
modelValue: DateRangeValue;
|
|
755
|
+
disabled: boolean;
|
|
756
|
+
type: string;
|
|
757
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
758
|
+
datePickerRef: unknown;
|
|
759
|
+
}, HTMLDivElement>>;
|
|
760
|
+
|
|
761
|
+
export declare const DaterangePicker: SFCWithInstall<DefineComponent< {
|
|
762
|
+
modelValue?: DateRangeValue;
|
|
763
|
+
disabled?: boolean;
|
|
764
|
+
type?: string;
|
|
765
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
766
|
+
"update:modelValue": (value: DateRangeValue) => any;
|
|
767
|
+
change: (value: DateRangeValue) => any;
|
|
768
|
+
}, string, PublicProps, Readonly<{
|
|
769
|
+
modelValue?: DateRangeValue;
|
|
770
|
+
disabled?: boolean;
|
|
771
|
+
type?: string;
|
|
772
|
+
}> & Readonly<{
|
|
773
|
+
"onUpdate:modelValue"?: ((value: DateRangeValue) => any) | undefined;
|
|
774
|
+
onChange?: ((value: DateRangeValue) => any) | undefined;
|
|
775
|
+
}>, {
|
|
776
|
+
modelValue: DateRangeValue;
|
|
777
|
+
disabled: boolean;
|
|
778
|
+
type: string;
|
|
779
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
780
|
+
datePickerRef: unknown;
|
|
781
|
+
}, HTMLDivElement>>;
|
|
782
|
+
|
|
783
|
+
export declare type DateRangeValue = [string, string] | string[] | null;
|
|
784
|
+
|
|
785
|
+
export declare const defaultMemberValueAdapter: MemberValueAdapter;
|
|
786
|
+
|
|
787
|
+
export declare const Dialog: SFCWithInstall< {
|
|
788
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<DialogProps> & Readonly<{
|
|
789
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
790
|
+
onChange?: ((item: DialogItem) => any) | undefined;
|
|
791
|
+
onClose?: (() => any) | undefined;
|
|
792
|
+
"onUpdate:activeKey"?: ((value: DialogKey) => any) | undefined;
|
|
793
|
+
"onUpdate:expandedKeys"?: ((value: DialogKey[]) => any) | undefined;
|
|
794
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
795
|
+
"update:modelValue": (value: boolean) => any;
|
|
796
|
+
change: (item: DialogItem) => any;
|
|
797
|
+
close: () => any;
|
|
798
|
+
"update:activeKey": (value: DialogKey) => any;
|
|
799
|
+
"update:expandedKeys": (value: DialogKey[]) => any;
|
|
800
|
+
}, PublicProps, {
|
|
801
|
+
modelValue: boolean;
|
|
802
|
+
title: string;
|
|
803
|
+
width: string | number;
|
|
804
|
+
mode: DialogMode;
|
|
805
|
+
items: DialogItem[];
|
|
806
|
+
expandedKeys: DialogKey[];
|
|
807
|
+
showClose: boolean;
|
|
808
|
+
showNavigation: boolean;
|
|
809
|
+
showStepActions: boolean;
|
|
810
|
+
destroyOnClose: boolean;
|
|
811
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
812
|
+
P: {};
|
|
813
|
+
B: {};
|
|
814
|
+
D: {};
|
|
815
|
+
C: {};
|
|
816
|
+
M: {};
|
|
817
|
+
Defaults: {};
|
|
818
|
+
}, Readonly<DialogProps> & Readonly<{
|
|
819
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
820
|
+
onChange?: ((item: DialogItem) => any) | undefined;
|
|
821
|
+
onClose?: (() => any) | undefined;
|
|
822
|
+
"onUpdate:activeKey"?: ((value: DialogKey) => any) | undefined;
|
|
823
|
+
"onUpdate:expandedKeys"?: ((value: DialogKey[]) => any) | undefined;
|
|
824
|
+
}>, {}, {}, {}, {}, {
|
|
825
|
+
modelValue: boolean;
|
|
826
|
+
title: string;
|
|
827
|
+
width: string | number;
|
|
828
|
+
mode: DialogMode;
|
|
829
|
+
items: DialogItem[];
|
|
830
|
+
expandedKeys: DialogKey[];
|
|
831
|
+
showClose: boolean;
|
|
832
|
+
showNavigation: boolean;
|
|
833
|
+
showStepActions: boolean;
|
|
834
|
+
destroyOnClose: boolean;
|
|
835
|
+
}>;
|
|
836
|
+
__isFragment?: never;
|
|
837
|
+
__isTeleport?: never;
|
|
838
|
+
__isSuspense?: never;
|
|
839
|
+
} & ComponentOptionsBase<Readonly<DialogProps> & Readonly<{
|
|
840
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
841
|
+
onChange?: ((item: DialogItem) => any) | undefined;
|
|
842
|
+
onClose?: (() => any) | undefined;
|
|
843
|
+
"onUpdate:activeKey"?: ((value: DialogKey) => any) | undefined;
|
|
844
|
+
"onUpdate:expandedKeys"?: ((value: DialogKey[]) => any) | undefined;
|
|
845
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
846
|
+
"update:modelValue": (value: boolean) => any;
|
|
847
|
+
change: (item: DialogItem) => any;
|
|
848
|
+
close: () => any;
|
|
849
|
+
"update:activeKey": (value: DialogKey) => any;
|
|
850
|
+
"update:expandedKeys": (value: DialogKey[]) => any;
|
|
851
|
+
}, string, {
|
|
852
|
+
modelValue: boolean;
|
|
853
|
+
title: string;
|
|
854
|
+
width: string | number;
|
|
855
|
+
mode: DialogMode;
|
|
856
|
+
items: DialogItem[];
|
|
857
|
+
expandedKeys: DialogKey[];
|
|
858
|
+
showClose: boolean;
|
|
859
|
+
showNavigation: boolean;
|
|
860
|
+
showStepActions: boolean;
|
|
861
|
+
destroyOnClose: boolean;
|
|
862
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
863
|
+
$slots: {
|
|
864
|
+
navigation?(_: {
|
|
865
|
+
items: DialogItem[];
|
|
866
|
+
activeKey: DialogKey;
|
|
867
|
+
select: (item: DialogItem) => void;
|
|
868
|
+
}): any;
|
|
869
|
+
default?(_: {}): any;
|
|
870
|
+
panel?(_: {
|
|
871
|
+
item: DialogItem;
|
|
872
|
+
activeKey: DialogKey;
|
|
873
|
+
}): any;
|
|
874
|
+
section?(_: {
|
|
875
|
+
item: DialogItem;
|
|
876
|
+
expanded: boolean;
|
|
877
|
+
}): any;
|
|
878
|
+
footer?(_: {
|
|
879
|
+
item: DialogItem;
|
|
880
|
+
activeKey: DialogKey;
|
|
881
|
+
close: () => void;
|
|
882
|
+
}): any;
|
|
883
|
+
};
|
|
884
|
+
})>;
|
|
885
|
+
|
|
886
|
+
export declare interface DialogItem {
|
|
887
|
+
key: DialogKey;
|
|
888
|
+
label: string;
|
|
889
|
+
disabled?: boolean;
|
|
890
|
+
hidden?: boolean;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
export declare type DialogKey = string | number;
|
|
894
|
+
|
|
895
|
+
export declare type DialogMode = 'default' | 'steps' | 'sections';
|
|
896
|
+
|
|
897
|
+
export declare interface DialogProps {
|
|
898
|
+
modelValue?: boolean;
|
|
899
|
+
title?: string;
|
|
900
|
+
width?: string | number;
|
|
901
|
+
mode?: DialogMode;
|
|
902
|
+
items?: DialogItem[];
|
|
903
|
+
activeKey?: DialogKey;
|
|
904
|
+
expandedKeys?: DialogKey[];
|
|
905
|
+
showClose?: boolean;
|
|
906
|
+
showNavigation?: boolean;
|
|
907
|
+
showStepActions?: boolean;
|
|
908
|
+
destroyOnClose?: boolean;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
export declare const EditableBox: SFCWithInstall<DefineComponent< {
|
|
912
|
+
modelValue?: EditableBoxContentItem[];
|
|
913
|
+
fixedModules?: EditableBoxModule[];
|
|
914
|
+
moduleGroups?: EditableBoxModuleGroup[];
|
|
915
|
+
fixedGroupTitle?: string;
|
|
916
|
+
textLimit?: number;
|
|
917
|
+
moduleLimit?: number;
|
|
918
|
+
width?: EditableBoxDimension;
|
|
919
|
+
height?: EditableBoxDimension;
|
|
920
|
+
textType?: EditableBoxValue;
|
|
921
|
+
placeholder?: string;
|
|
922
|
+
showCounter?: boolean;
|
|
923
|
+
draggable?: boolean;
|
|
924
|
+
disabled?: boolean;
|
|
925
|
+
required?: boolean;
|
|
926
|
+
allowLineBreak?: boolean;
|
|
927
|
+
}, {
|
|
928
|
+
clear: () => void;
|
|
929
|
+
focus: () => void;
|
|
930
|
+
getContent: () => EditableBoxContentItem[];
|
|
931
|
+
validate: () => boolean;
|
|
932
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
933
|
+
"update:modelValue": (content: EditableBoxContentItem[]) => any;
|
|
934
|
+
change: (content: EditableBoxContentItem[]) => any;
|
|
935
|
+
blur: (content: EditableBoxContentItem[]) => any;
|
|
936
|
+
"limit-exceed": (payload: EditableBoxLimitPayload) => any;
|
|
937
|
+
}, string, PublicProps, Readonly<{
|
|
938
|
+
modelValue?: EditableBoxContentItem[];
|
|
939
|
+
fixedModules?: EditableBoxModule[];
|
|
940
|
+
moduleGroups?: EditableBoxModuleGroup[];
|
|
941
|
+
fixedGroupTitle?: string;
|
|
942
|
+
textLimit?: number;
|
|
943
|
+
moduleLimit?: number;
|
|
944
|
+
width?: EditableBoxDimension;
|
|
945
|
+
height?: EditableBoxDimension;
|
|
946
|
+
textType?: EditableBoxValue;
|
|
947
|
+
placeholder?: string;
|
|
948
|
+
showCounter?: boolean;
|
|
949
|
+
draggable?: boolean;
|
|
950
|
+
disabled?: boolean;
|
|
951
|
+
required?: boolean;
|
|
952
|
+
allowLineBreak?: boolean;
|
|
953
|
+
}> & Readonly<{
|
|
954
|
+
"onUpdate:modelValue"?: ((content: EditableBoxContentItem[]) => any) | undefined;
|
|
955
|
+
onChange?: ((content: EditableBoxContentItem[]) => any) | undefined;
|
|
956
|
+
onBlur?: ((content: EditableBoxContentItem[]) => any) | undefined;
|
|
957
|
+
"onLimit-exceed"?: ((payload: EditableBoxLimitPayload) => any) | undefined;
|
|
958
|
+
}>, {
|
|
959
|
+
modelValue: EditableBoxContentItem[];
|
|
960
|
+
disabled: boolean;
|
|
961
|
+
width: EditableBoxDimension;
|
|
962
|
+
draggable: boolean;
|
|
963
|
+
placeholder: string;
|
|
964
|
+
fixedModules: EditableBoxModule[];
|
|
965
|
+
moduleGroups: EditableBoxModuleGroup[];
|
|
966
|
+
fixedGroupTitle: string;
|
|
967
|
+
textLimit: number;
|
|
968
|
+
moduleLimit: number;
|
|
969
|
+
textType: EditableBoxValue;
|
|
970
|
+
showCounter: boolean;
|
|
971
|
+
required: boolean;
|
|
972
|
+
allowLineBreak: boolean;
|
|
973
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
974
|
+
editor: HTMLDivElement;
|
|
975
|
+
}, HTMLDivElement>>;
|
|
976
|
+
|
|
977
|
+
export declare interface EditableBoxContentItem {
|
|
978
|
+
type: EditableBoxValue;
|
|
979
|
+
val: EditableBoxValue;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
export declare type EditableBoxDimension = string | number;
|
|
983
|
+
|
|
984
|
+
export declare interface EditableBoxExposed {
|
|
985
|
+
clear: () => void;
|
|
986
|
+
focus: () => void;
|
|
987
|
+
getContent: () => EditableBoxContentItem[];
|
|
988
|
+
validate: () => boolean;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
export declare interface EditableBoxLimitPayload {
|
|
992
|
+
type: 'text' | 'module';
|
|
993
|
+
limit: number;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
export declare interface EditableBoxModule {
|
|
997
|
+
id: EditableBoxValue;
|
|
998
|
+
label: string;
|
|
999
|
+
type?: EditableBoxValue;
|
|
1000
|
+
disabled?: boolean;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
export declare interface EditableBoxModuleGroup {
|
|
1004
|
+
key?: string;
|
|
1005
|
+
title: string;
|
|
1006
|
+
modules: EditableBoxModule[];
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
export declare interface EditableBoxProps {
|
|
1010
|
+
modelValue?: EditableBoxContentItem[];
|
|
1011
|
+
fixedModules?: EditableBoxModule[];
|
|
1012
|
+
moduleGroups?: EditableBoxModuleGroup[];
|
|
1013
|
+
fixedGroupTitle?: string;
|
|
1014
|
+
textLimit?: number;
|
|
1015
|
+
moduleLimit?: number;
|
|
1016
|
+
width?: EditableBoxDimension;
|
|
1017
|
+
height?: EditableBoxDimension;
|
|
1018
|
+
textType?: EditableBoxValue;
|
|
1019
|
+
placeholder?: string;
|
|
1020
|
+
showCounter?: boolean;
|
|
1021
|
+
draggable?: boolean;
|
|
1022
|
+
disabled?: boolean;
|
|
1023
|
+
required?: boolean;
|
|
1024
|
+
allowLineBreak?: boolean;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
export declare type EditableBoxValue = string | number;
|
|
1028
|
+
|
|
1029
|
+
export declare const ExpandSelect: SFCWithInstall<DefineComponent<ExpandSelectProps, {
|
|
1030
|
+
getSelectedValues: (key: string) => ExpandSelectValue[];
|
|
1031
|
+
getSelectedOptions: (key: string) => ExpandSelectOption[];
|
|
1032
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1033
|
+
change: (key: string, selectedValues: ExpandSelectValue[]) => any;
|
|
1034
|
+
}, string, PublicProps, Readonly<ExpandSelectProps> & Readonly<{
|
|
1035
|
+
onChange?: ((key: string, selectedValues: ExpandSelectValue[]) => any) | undefined;
|
|
1036
|
+
}>, {
|
|
1037
|
+
expandList: ExpandSelectItem[];
|
|
1038
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>>;
|
|
1039
|
+
|
|
1040
|
+
export declare interface ExpandSelectExposed {
|
|
1041
|
+
getSelectedValues: (key: string) => ExpandSelectValue[];
|
|
1042
|
+
getSelectedOptions: (key: string) => ExpandSelectOption[];
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
export declare interface ExpandSelectItem {
|
|
1046
|
+
title: string;
|
|
1047
|
+
key: string;
|
|
1048
|
+
multiple?: boolean;
|
|
1049
|
+
expanded?: boolean;
|
|
1050
|
+
options: ExpandSelectOption[];
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
export declare interface ExpandSelectOption {
|
|
1054
|
+
label: string;
|
|
1055
|
+
value?: ExpandSelectValue;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
export declare interface ExpandSelectProps {
|
|
1059
|
+
expandList?: ExpandSelectItem[];
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
export declare type ExpandSelectValue = string | number;
|
|
1063
|
+
|
|
1064
|
+
export declare const FilePreview: SFCWithInstall< {
|
|
1065
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<FilePreviewProps> & Readonly<{
|
|
1066
|
+
"onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
|
|
1067
|
+
onOpen?: ((file: FilePreviewItem, index: number) => any) | undefined;
|
|
1068
|
+
onClose?: (() => any) | undefined;
|
|
1069
|
+
onPreview?: ((file: FilePreviewItem, index: number) => any) | undefined;
|
|
1070
|
+
}>, {
|
|
1071
|
+
open: (file?: FilePreviewItem, index?: number) => void;
|
|
1072
|
+
close: () => void;
|
|
1073
|
+
resolvePreviewUrl: (file: FilePreviewItem | undefined, index: number) => string;
|
|
1074
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1075
|
+
"update:modelValue": (visible: boolean) => any;
|
|
1076
|
+
open: (file: FilePreviewItem, index: number) => any;
|
|
1077
|
+
close: () => any;
|
|
1078
|
+
preview: (file: FilePreviewItem, index: number) => any;
|
|
1079
|
+
}, PublicProps, {
|
|
1080
|
+
title: string;
|
|
1081
|
+
files: FilePreviewItem[];
|
|
1082
|
+
previewUrl: string;
|
|
1083
|
+
showTrigger: boolean;
|
|
1084
|
+
allFiles: FilePreviewItem[];
|
|
1085
|
+
iframeSandbox: string;
|
|
1086
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLSpanElement, ComponentProvideOptions, {
|
|
1087
|
+
P: {};
|
|
1088
|
+
B: {};
|
|
1089
|
+
D: {};
|
|
1090
|
+
C: {};
|
|
1091
|
+
M: {};
|
|
1092
|
+
Defaults: {};
|
|
1093
|
+
}, Readonly<FilePreviewProps> & Readonly<{
|
|
1094
|
+
"onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
|
|
1095
|
+
onOpen?: ((file: FilePreviewItem, index: number) => any) | undefined;
|
|
1096
|
+
onClose?: (() => any) | undefined;
|
|
1097
|
+
onPreview?: ((file: FilePreviewItem, index: number) => any) | undefined;
|
|
1098
|
+
}>, {
|
|
1099
|
+
open: (file?: FilePreviewItem, index?: number) => void;
|
|
1100
|
+
close: () => void;
|
|
1101
|
+
resolvePreviewUrl: (file: FilePreviewItem | undefined, index: number) => string;
|
|
1102
|
+
}, {}, {}, {}, {
|
|
1103
|
+
title: string;
|
|
1104
|
+
files: FilePreviewItem[];
|
|
1105
|
+
previewUrl: string;
|
|
1106
|
+
showTrigger: boolean;
|
|
1107
|
+
allFiles: FilePreviewItem[];
|
|
1108
|
+
iframeSandbox: string;
|
|
1109
|
+
}>;
|
|
1110
|
+
__isFragment?: never;
|
|
1111
|
+
__isTeleport?: never;
|
|
1112
|
+
__isSuspense?: never;
|
|
1113
|
+
} & ComponentOptionsBase<Readonly<FilePreviewProps> & Readonly<{
|
|
1114
|
+
"onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
|
|
1115
|
+
onOpen?: ((file: FilePreviewItem, index: number) => any) | undefined;
|
|
1116
|
+
onClose?: (() => any) | undefined;
|
|
1117
|
+
onPreview?: ((file: FilePreviewItem, index: number) => any) | undefined;
|
|
1118
|
+
}>, {
|
|
1119
|
+
open: (file?: FilePreviewItem, index?: number) => void;
|
|
1120
|
+
close: () => void;
|
|
1121
|
+
resolvePreviewUrl: (file: FilePreviewItem | undefined, index: number) => string;
|
|
1122
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1123
|
+
"update:modelValue": (visible: boolean) => any;
|
|
1124
|
+
open: (file: FilePreviewItem, index: number) => any;
|
|
1125
|
+
close: () => any;
|
|
1126
|
+
preview: (file: FilePreviewItem, index: number) => any;
|
|
1127
|
+
}, string, {
|
|
1128
|
+
title: string;
|
|
1129
|
+
files: FilePreviewItem[];
|
|
1130
|
+
previewUrl: string;
|
|
1131
|
+
showTrigger: boolean;
|
|
1132
|
+
allFiles: FilePreviewItem[];
|
|
1133
|
+
iframeSandbox: string;
|
|
1134
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1135
|
+
$slots: {
|
|
1136
|
+
default?(_: {
|
|
1137
|
+
open: (file?: FilePreviewItem, index?: number) => void;
|
|
1138
|
+
file: FilePreviewItem | undefined;
|
|
1139
|
+
files: FilePreviewItem[];
|
|
1140
|
+
visible: boolean;
|
|
1141
|
+
}): any;
|
|
1142
|
+
};
|
|
1143
|
+
})>;
|
|
1144
|
+
|
|
1145
|
+
export declare const FilePreviewer: SFCWithInstall< {
|
|
1146
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<FilePreviewProps> & Readonly<{
|
|
1147
|
+
"onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
|
|
1148
|
+
onOpen?: ((file: FilePreviewItem, index: number) => any) | undefined;
|
|
1149
|
+
onClose?: (() => any) | undefined;
|
|
1150
|
+
onPreview?: ((file: FilePreviewItem, index: number) => any) | undefined;
|
|
1151
|
+
}>, {
|
|
1152
|
+
open: (file?: FilePreviewItem, index?: number) => void;
|
|
1153
|
+
close: () => void;
|
|
1154
|
+
resolvePreviewUrl: (file: FilePreviewItem | undefined, index: number) => string;
|
|
1155
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1156
|
+
"update:modelValue": (visible: boolean) => any;
|
|
1157
|
+
open: (file: FilePreviewItem, index: number) => any;
|
|
1158
|
+
close: () => any;
|
|
1159
|
+
preview: (file: FilePreviewItem, index: number) => any;
|
|
1160
|
+
}, PublicProps, {
|
|
1161
|
+
title: string;
|
|
1162
|
+
files: FilePreviewItem[];
|
|
1163
|
+
previewUrl: string;
|
|
1164
|
+
showTrigger: boolean;
|
|
1165
|
+
allFiles: FilePreviewItem[];
|
|
1166
|
+
iframeSandbox: string;
|
|
1167
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLSpanElement, ComponentProvideOptions, {
|
|
1168
|
+
P: {};
|
|
1169
|
+
B: {};
|
|
1170
|
+
D: {};
|
|
1171
|
+
C: {};
|
|
1172
|
+
M: {};
|
|
1173
|
+
Defaults: {};
|
|
1174
|
+
}, Readonly<FilePreviewProps> & Readonly<{
|
|
1175
|
+
"onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
|
|
1176
|
+
onOpen?: ((file: FilePreviewItem, index: number) => any) | undefined;
|
|
1177
|
+
onClose?: (() => any) | undefined;
|
|
1178
|
+
onPreview?: ((file: FilePreviewItem, index: number) => any) | undefined;
|
|
1179
|
+
}>, {
|
|
1180
|
+
open: (file?: FilePreviewItem, index?: number) => void;
|
|
1181
|
+
close: () => void;
|
|
1182
|
+
resolvePreviewUrl: (file: FilePreviewItem | undefined, index: number) => string;
|
|
1183
|
+
}, {}, {}, {}, {
|
|
1184
|
+
title: string;
|
|
1185
|
+
files: FilePreviewItem[];
|
|
1186
|
+
previewUrl: string;
|
|
1187
|
+
showTrigger: boolean;
|
|
1188
|
+
allFiles: FilePreviewItem[];
|
|
1189
|
+
iframeSandbox: string;
|
|
1190
|
+
}>;
|
|
1191
|
+
__isFragment?: never;
|
|
1192
|
+
__isTeleport?: never;
|
|
1193
|
+
__isSuspense?: never;
|
|
1194
|
+
} & ComponentOptionsBase<Readonly<FilePreviewProps> & Readonly<{
|
|
1195
|
+
"onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
|
|
1196
|
+
onOpen?: ((file: FilePreviewItem, index: number) => any) | undefined;
|
|
1197
|
+
onClose?: (() => any) | undefined;
|
|
1198
|
+
onPreview?: ((file: FilePreviewItem, index: number) => any) | undefined;
|
|
1199
|
+
}>, {
|
|
1200
|
+
open: (file?: FilePreviewItem, index?: number) => void;
|
|
1201
|
+
close: () => void;
|
|
1202
|
+
resolvePreviewUrl: (file: FilePreviewItem | undefined, index: number) => string;
|
|
1203
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1204
|
+
"update:modelValue": (visible: boolean) => any;
|
|
1205
|
+
open: (file: FilePreviewItem, index: number) => any;
|
|
1206
|
+
close: () => any;
|
|
1207
|
+
preview: (file: FilePreviewItem, index: number) => any;
|
|
1208
|
+
}, string, {
|
|
1209
|
+
title: string;
|
|
1210
|
+
files: FilePreviewItem[];
|
|
1211
|
+
previewUrl: string;
|
|
1212
|
+
showTrigger: boolean;
|
|
1213
|
+
allFiles: FilePreviewItem[];
|
|
1214
|
+
iframeSandbox: string;
|
|
1215
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1216
|
+
$slots: {
|
|
1217
|
+
default?(_: {
|
|
1218
|
+
open: (file?: FilePreviewItem, index?: number) => void;
|
|
1219
|
+
file: FilePreviewItem | undefined;
|
|
1220
|
+
files: FilePreviewItem[];
|
|
1221
|
+
visible: boolean;
|
|
1222
|
+
}): any;
|
|
1223
|
+
};
|
|
1224
|
+
})>;
|
|
1225
|
+
|
|
1226
|
+
export declare interface FilePreviewItem {
|
|
1227
|
+
name?: string;
|
|
1228
|
+
url?: string;
|
|
1229
|
+
fileType?: string;
|
|
1230
|
+
ext?: string;
|
|
1231
|
+
[key: string]: unknown;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
export declare interface FilePreviewProps {
|
|
1235
|
+
/**
|
|
1236
|
+
* When explicitly bound, controls the preview state through v-model.
|
|
1237
|
+
* When omitted, FilePreview maintains its own open state.
|
|
1238
|
+
*/
|
|
1239
|
+
modelValue?: boolean;
|
|
1240
|
+
file?: FilePreviewItem;
|
|
1241
|
+
files?: FilePreviewItem[];
|
|
1242
|
+
/** Compatibility alias for the previous component API. */
|
|
1243
|
+
allFiles?: FilePreviewItem[];
|
|
1244
|
+
previewUrl?: string;
|
|
1245
|
+
previewUrlResolver?: FilePreviewUrlResolver;
|
|
1246
|
+
iframeSandbox?: string;
|
|
1247
|
+
title?: string;
|
|
1248
|
+
showTrigger?: boolean;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
export declare type FilePreviewUrlResolver = (file: FilePreviewItem, index: number) => string | undefined;
|
|
1252
|
+
|
|
1253
|
+
export declare interface GroupedMemberValueAdapterOptions {
|
|
1254
|
+
/** Maps node types to fields in the external grouped value. */
|
|
1255
|
+
groupKeys: Record<string, string>;
|
|
1256
|
+
getNodeType?: (node: TreeNode) => string | undefined;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
export declare interface MemberSelection {
|
|
1260
|
+
keys: TreeKey[];
|
|
1261
|
+
nodes: TreeNode[];
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
export declare const MemberSelector: SFCWithInstall< {
|
|
1265
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<MemberSelectorProps> & Readonly<{
|
|
1266
|
+
"onUpdate:modelValue"?: ((value: MemberValue | undefined) => any) | undefined;
|
|
1267
|
+
onCancel?: (() => any) | undefined;
|
|
1268
|
+
onLoad?: ((nodes: object[]) => any) | undefined;
|
|
1269
|
+
"onSelection-change"?: ((selection: MemberSelection) => any) | undefined;
|
|
1270
|
+
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
1271
|
+
onInvalid?: ((message: string) => any) | undefined;
|
|
1272
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1273
|
+
onConfirm?: ((selection: MemberSelection) => any) | undefined;
|
|
1274
|
+
}>, {
|
|
1275
|
+
open: () => void;
|
|
1276
|
+
close: () => void;
|
|
1277
|
+
clear: () => void;
|
|
1278
|
+
reload: () => Promise<void>;
|
|
1279
|
+
getSelection: () => MemberSelection;
|
|
1280
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1281
|
+
"update:modelValue": (value: MemberValue | undefined) => any;
|
|
1282
|
+
cancel: () => any;
|
|
1283
|
+
load: (nodes: object[]) => any;
|
|
1284
|
+
"selection-change": (selection: MemberSelection) => any;
|
|
1285
|
+
"load-error": (error: unknown) => any;
|
|
1286
|
+
invalid: (message: string) => any;
|
|
1287
|
+
"update:visible": (value: boolean) => any;
|
|
1288
|
+
confirm: (selection: MemberSelection) => any;
|
|
1289
|
+
}, PublicProps, {
|
|
1290
|
+
disabled: boolean;
|
|
1291
|
+
title: string;
|
|
1292
|
+
visible: boolean;
|
|
1293
|
+
showSummary: boolean;
|
|
1294
|
+
emptyText: string;
|
|
1295
|
+
fields: TreeFieldMap;
|
|
1296
|
+
required: boolean;
|
|
1297
|
+
selectedTitle: string;
|
|
1298
|
+
multiple: boolean;
|
|
1299
|
+
showUsers: boolean;
|
|
1300
|
+
allowedTypes: readonly string[];
|
|
1301
|
+
defaultExpandedKeys: readonly TreeKey[];
|
|
1302
|
+
summaryActionText: string;
|
|
1303
|
+
requiredMessage: string;
|
|
1304
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1305
|
+
P: {};
|
|
1306
|
+
B: {};
|
|
1307
|
+
D: {};
|
|
1308
|
+
C: {};
|
|
1309
|
+
M: {};
|
|
1310
|
+
Defaults: {};
|
|
1311
|
+
}, Readonly<MemberSelectorProps> & Readonly<{
|
|
1312
|
+
"onUpdate:modelValue"?: ((value: MemberValue | undefined) => any) | undefined;
|
|
1313
|
+
onCancel?: (() => any) | undefined;
|
|
1314
|
+
onLoad?: ((nodes: object[]) => any) | undefined;
|
|
1315
|
+
"onSelection-change"?: ((selection: MemberSelection) => any) | undefined;
|
|
1316
|
+
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
1317
|
+
onInvalid?: ((message: string) => any) | undefined;
|
|
1318
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1319
|
+
onConfirm?: ((selection: MemberSelection) => any) | undefined;
|
|
1320
|
+
}>, {
|
|
1321
|
+
open: () => void;
|
|
1322
|
+
close: () => void;
|
|
1323
|
+
clear: () => void;
|
|
1324
|
+
reload: () => Promise<void>;
|
|
1325
|
+
getSelection: () => MemberSelection;
|
|
1326
|
+
}, {}, {}, {}, {
|
|
1327
|
+
disabled: boolean;
|
|
1328
|
+
title: string;
|
|
1329
|
+
visible: boolean;
|
|
1330
|
+
showSummary: boolean;
|
|
1331
|
+
emptyText: string;
|
|
1332
|
+
fields: TreeFieldMap;
|
|
1333
|
+
required: boolean;
|
|
1334
|
+
selectedTitle: string;
|
|
1335
|
+
multiple: boolean;
|
|
1336
|
+
showUsers: boolean;
|
|
1337
|
+
allowedTypes: readonly string[];
|
|
1338
|
+
defaultExpandedKeys: readonly TreeKey[];
|
|
1339
|
+
summaryActionText: string;
|
|
1340
|
+
requiredMessage: string;
|
|
1341
|
+
}>;
|
|
1342
|
+
__isFragment?: never;
|
|
1343
|
+
__isTeleport?: never;
|
|
1344
|
+
__isSuspense?: never;
|
|
1345
|
+
} & ComponentOptionsBase<Readonly<MemberSelectorProps> & Readonly<{
|
|
1346
|
+
"onUpdate:modelValue"?: ((value: MemberValue | undefined) => any) | undefined;
|
|
1347
|
+
onCancel?: (() => any) | undefined;
|
|
1348
|
+
onLoad?: ((nodes: object[]) => any) | undefined;
|
|
1349
|
+
"onSelection-change"?: ((selection: MemberSelection) => any) | undefined;
|
|
1350
|
+
"onLoad-error"?: ((error: unknown) => any) | undefined;
|
|
1351
|
+
onInvalid?: ((message: string) => any) | undefined;
|
|
1352
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1353
|
+
onConfirm?: ((selection: MemberSelection) => any) | undefined;
|
|
1354
|
+
}>, {
|
|
1355
|
+
open: () => void;
|
|
1356
|
+
close: () => void;
|
|
1357
|
+
clear: () => void;
|
|
1358
|
+
reload: () => Promise<void>;
|
|
1359
|
+
getSelection: () => MemberSelection;
|
|
1360
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1361
|
+
"update:modelValue": (value: MemberValue | undefined) => any;
|
|
1362
|
+
cancel: () => any;
|
|
1363
|
+
load: (nodes: object[]) => any;
|
|
1364
|
+
"selection-change": (selection: MemberSelection) => any;
|
|
1365
|
+
"load-error": (error: unknown) => any;
|
|
1366
|
+
invalid: (message: string) => any;
|
|
1367
|
+
"update:visible": (value: boolean) => any;
|
|
1368
|
+
confirm: (selection: MemberSelection) => any;
|
|
1369
|
+
}, string, {
|
|
1370
|
+
disabled: boolean;
|
|
1371
|
+
title: string;
|
|
1372
|
+
visible: boolean;
|
|
1373
|
+
showSummary: boolean;
|
|
1374
|
+
emptyText: string;
|
|
1375
|
+
fields: TreeFieldMap;
|
|
1376
|
+
required: boolean;
|
|
1377
|
+
selectedTitle: string;
|
|
1378
|
+
multiple: boolean;
|
|
1379
|
+
showUsers: boolean;
|
|
1380
|
+
allowedTypes: readonly string[];
|
|
1381
|
+
defaultExpandedKeys: readonly TreeKey[];
|
|
1382
|
+
summaryActionText: string;
|
|
1383
|
+
requiredMessage: string;
|
|
1384
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1385
|
+
$slots: {
|
|
1386
|
+
summary?(_: {
|
|
1387
|
+
nodes: object[];
|
|
1388
|
+
open: () => void;
|
|
1389
|
+
clear: () => void;
|
|
1390
|
+
}): any;
|
|
1391
|
+
node?(_: {
|
|
1392
|
+
node: object;
|
|
1393
|
+
selected: boolean;
|
|
1394
|
+
selectable: boolean;
|
|
1395
|
+
}): any;
|
|
1396
|
+
'selected-item'?(_: {
|
|
1397
|
+
node: object;
|
|
1398
|
+
remove: (node: TreeNode) => void;
|
|
1399
|
+
}): any;
|
|
1400
|
+
};
|
|
1401
|
+
})>;
|
|
1402
|
+
|
|
1403
|
+
export declare interface MemberSelectorExposed {
|
|
1404
|
+
open: () => void;
|
|
1405
|
+
close: () => void;
|
|
1406
|
+
clear: () => void;
|
|
1407
|
+
reload: () => Promise<void>;
|
|
1408
|
+
getSelection: () => MemberSelection;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
export declare interface MemberSelectorProps {
|
|
1412
|
+
/** Optional controlled dialog state. Omit it to use open() and close(). */
|
|
1413
|
+
visible?: boolean;
|
|
1414
|
+
modelValue?: MemberValue;
|
|
1415
|
+
treeData?: readonly TreeNode[];
|
|
1416
|
+
loadTree?: MemberTreeLoader;
|
|
1417
|
+
valueAdapter?: MemberValueAdapter;
|
|
1418
|
+
fields?: TreeFieldMap;
|
|
1419
|
+
title?: string;
|
|
1420
|
+
selectedTitle?: string;
|
|
1421
|
+
multiple?: boolean;
|
|
1422
|
+
showUsers?: boolean;
|
|
1423
|
+
allowedTypes?: readonly string[];
|
|
1424
|
+
isSelectable?: (node: TreeNode) => boolean;
|
|
1425
|
+
nodeLabel?: (node: TreeNode) => string;
|
|
1426
|
+
defaultExpandedKeys?: readonly TreeKey[];
|
|
1427
|
+
showSummary?: boolean;
|
|
1428
|
+
summaryActionText?: string;
|
|
1429
|
+
disabled?: boolean;
|
|
1430
|
+
required?: boolean;
|
|
1431
|
+
requiredMessage?: string;
|
|
1432
|
+
emptyText?: string;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
export declare interface MemberTreeLoadContext {
|
|
1436
|
+
signal: AbortSignal;
|
|
1437
|
+
showUsers: boolean;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
export declare type MemberTreeLoader = (context: MemberTreeLoadContext) => Promise<readonly TreeNode[]>;
|
|
1441
|
+
|
|
1442
|
+
export declare type MemberValue = TreeKey | readonly TreeKey[] | Record<string, readonly TreeKey[]>;
|
|
1443
|
+
|
|
1444
|
+
export declare interface MemberValueAdapter<Value = MemberValue> {
|
|
1445
|
+
toKeys: (value: Value | undefined) => TreeKey[];
|
|
1446
|
+
fromSelection: (selection: MemberSelection) => Value;
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
export declare const Multiple: SFCWithInstall< {
|
|
1450
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<MultipleProps> & Readonly<{
|
|
1451
|
+
onAdd?: ((value: SelectOptionValue) => any) | undefined;
|
|
1452
|
+
"onUpdate:modelValue"?: ((value: SelectOptionValue[]) => any) | undefined;
|
|
1453
|
+
onChange?: ((value: SelectOptionValue[]) => any) | undefined;
|
|
1454
|
+
onRemove?: ((value: SelectOptionValue) => any) | undefined;
|
|
1455
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1456
|
+
add: (value: SelectOptionValue) => any;
|
|
1457
|
+
"update:modelValue": (value: SelectOptionValue[]) => any;
|
|
1458
|
+
change: (value: SelectOptionValue[]) => any;
|
|
1459
|
+
remove: (value: SelectOptionValue) => any;
|
|
1460
|
+
}, PublicProps, {
|
|
1461
|
+
size: string;
|
|
1462
|
+
props: SelectFieldMap;
|
|
1463
|
+
modelValue: SelectOptionValue[];
|
|
1464
|
+
disabled: boolean;
|
|
1465
|
+
list: SelectRawOption[];
|
|
1466
|
+
collapse: boolean;
|
|
1467
|
+
isHandle: boolean;
|
|
1468
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1469
|
+
triggerRef: HTMLDivElement;
|
|
1470
|
+
}, any, ComponentProvideOptions, {
|
|
1471
|
+
P: {};
|
|
1472
|
+
B: {};
|
|
1473
|
+
D: {};
|
|
1474
|
+
C: {};
|
|
1475
|
+
M: {};
|
|
1476
|
+
Defaults: {};
|
|
1477
|
+
}, Readonly<MultipleProps> & Readonly<{
|
|
1478
|
+
onAdd?: ((value: SelectOptionValue) => any) | undefined;
|
|
1479
|
+
"onUpdate:modelValue"?: ((value: SelectOptionValue[]) => any) | undefined;
|
|
1480
|
+
onChange?: ((value: SelectOptionValue[]) => any) | undefined;
|
|
1481
|
+
onRemove?: ((value: SelectOptionValue) => any) | undefined;
|
|
1482
|
+
}>, {}, {}, {}, {}, {
|
|
1483
|
+
size: string;
|
|
1484
|
+
props: SelectFieldMap;
|
|
1485
|
+
modelValue: SelectOptionValue[];
|
|
1486
|
+
disabled: boolean;
|
|
1487
|
+
list: SelectRawOption[];
|
|
1488
|
+
collapse: boolean;
|
|
1489
|
+
isHandle: boolean;
|
|
1490
|
+
}>;
|
|
1491
|
+
__isFragment?: never;
|
|
1492
|
+
__isTeleport?: never;
|
|
1493
|
+
__isSuspense?: never;
|
|
1494
|
+
} & ComponentOptionsBase<Readonly<MultipleProps> & Readonly<{
|
|
1495
|
+
onAdd?: ((value: SelectOptionValue) => any) | undefined;
|
|
1496
|
+
"onUpdate:modelValue"?: ((value: SelectOptionValue[]) => any) | undefined;
|
|
1497
|
+
onChange?: ((value: SelectOptionValue[]) => any) | undefined;
|
|
1498
|
+
onRemove?: ((value: SelectOptionValue) => any) | undefined;
|
|
1499
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1500
|
+
add: (value: SelectOptionValue) => any;
|
|
1501
|
+
"update:modelValue": (value: SelectOptionValue[]) => any;
|
|
1502
|
+
change: (value: SelectOptionValue[]) => any;
|
|
1503
|
+
remove: (value: SelectOptionValue) => any;
|
|
1504
|
+
}, string, {
|
|
1505
|
+
size: string;
|
|
1506
|
+
props: SelectFieldMap;
|
|
1507
|
+
modelValue: SelectOptionValue[];
|
|
1508
|
+
disabled: boolean;
|
|
1509
|
+
list: SelectRawOption[];
|
|
1510
|
+
collapse: boolean;
|
|
1511
|
+
isHandle: boolean;
|
|
1512
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1513
|
+
$slots: {
|
|
1514
|
+
handle?(_: {
|
|
1515
|
+
selectAll: () => void;
|
|
1516
|
+
invertSelection: () => void;
|
|
1517
|
+
}): any;
|
|
1518
|
+
};
|
|
1519
|
+
})>;
|
|
1520
|
+
|
|
1521
|
+
export declare const MultipleCreate: SFCWithInstall<DefineComponent<MultipleCreateProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1522
|
+
add: (value: SelectOptionValue) => any;
|
|
1523
|
+
"update:modelValue": (value: SelectOptionValue[]) => any;
|
|
1524
|
+
change: (value: SelectOptionValue[]) => any;
|
|
1525
|
+
remove: (value: SelectOptionValue) => any;
|
|
1526
|
+
}, string, PublicProps, Readonly<MultipleCreateProps> & Readonly<{
|
|
1527
|
+
onAdd?: ((value: SelectOptionValue) => any) | undefined;
|
|
1528
|
+
"onUpdate:modelValue"?: ((value: SelectOptionValue[]) => any) | undefined;
|
|
1529
|
+
onChange?: ((value: SelectOptionValue[]) => any) | undefined;
|
|
1530
|
+
onRemove?: ((value: SelectOptionValue) => any) | undefined;
|
|
1531
|
+
}>, {
|
|
1532
|
+
size: string;
|
|
1533
|
+
props: SelectFieldMap;
|
|
1534
|
+
modelValue: SelectOptionValue[];
|
|
1535
|
+
disabled: boolean;
|
|
1536
|
+
repeat: boolean;
|
|
1537
|
+
list: SelectRawOption[];
|
|
1538
|
+
maxlength: number;
|
|
1539
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1540
|
+
triggerRef: HTMLDivElement;
|
|
1541
|
+
}, any>>;
|
|
1542
|
+
|
|
1543
|
+
export declare interface MultipleCreateProps {
|
|
1544
|
+
list?: SelectRawOption[];
|
|
1545
|
+
modelValue?: SelectOptionValue[];
|
|
1546
|
+
disabled?: boolean;
|
|
1547
|
+
props?: SelectFieldMap;
|
|
1548
|
+
repeat?: boolean;
|
|
1549
|
+
maxlength?: number;
|
|
1550
|
+
size?: string;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
export declare interface MultipleProps {
|
|
1554
|
+
list?: SelectRawOption[];
|
|
1555
|
+
modelValue?: SelectOptionValue[];
|
|
1556
|
+
disabled?: boolean;
|
|
1557
|
+
props?: SelectFieldMap;
|
|
1558
|
+
collapse?: boolean;
|
|
1559
|
+
isHandle?: boolean;
|
|
1560
|
+
size?: string;
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
declare const plugin: Plugin_2;
|
|
1564
|
+
export default plugin;
|
|
1565
|
+
|
|
1566
|
+
export declare const Reject: SFCWithInstall<DefineComponent<RejectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1567
|
+
cancel: () => any;
|
|
1568
|
+
confirm: (action: "reject", reason: string) => any;
|
|
1569
|
+
}, string, PublicProps, Readonly<RejectProps> & Readonly<{
|
|
1570
|
+
onCancel?: (() => any) | undefined;
|
|
1571
|
+
onConfirm?: ((action: "reject", reason: string) => any) | undefined;
|
|
1572
|
+
}>, {
|
|
1573
|
+
title: string;
|
|
1574
|
+
content: string;
|
|
1575
|
+
show: boolean;
|
|
1576
|
+
reasonPlaceholder: string;
|
|
1577
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>>;
|
|
1578
|
+
|
|
1579
|
+
export declare interface RejectProps {
|
|
1580
|
+
show?: boolean;
|
|
1581
|
+
title?: string;
|
|
1582
|
+
content?: string;
|
|
1583
|
+
reasonPlaceholder?: string;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
export declare interface SelectFieldMap {
|
|
1587
|
+
id: string;
|
|
1588
|
+
name: string;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
export declare interface SelectOption {
|
|
1592
|
+
id: SelectOptionValue;
|
|
1593
|
+
name: string;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
export declare type SelectOptionValue = string | number;
|
|
1597
|
+
|
|
1598
|
+
export declare type SelectRawOption = SelectOptionValue | SelectRecordOption;
|
|
1599
|
+
|
|
1600
|
+
export declare type SelectRecordOption = Record<string, SelectOptionValue>;
|
|
1601
|
+
|
|
1602
|
+
declare type SFCWithInstall<T> = T & Plugin_2;
|
|
1603
|
+
|
|
1604
|
+
export declare const TimelinePro: SFCWithInstall< {
|
|
1605
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<TimelineProProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
1606
|
+
title: string;
|
|
1607
|
+
emptyText: string;
|
|
1608
|
+
items: TimelineProItem[];
|
|
1609
|
+
direction: TimelineProDirection;
|
|
1610
|
+
pending: boolean;
|
|
1611
|
+
pendingText: string;
|
|
1612
|
+
compact: boolean;
|
|
1613
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
1614
|
+
P: {};
|
|
1615
|
+
B: {};
|
|
1616
|
+
D: {};
|
|
1617
|
+
C: {};
|
|
1618
|
+
M: {};
|
|
1619
|
+
Defaults: {};
|
|
1620
|
+
}, Readonly<TimelineProProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
1621
|
+
title: string;
|
|
1622
|
+
emptyText: string;
|
|
1623
|
+
items: TimelineProItem[];
|
|
1624
|
+
direction: TimelineProDirection;
|
|
1625
|
+
pending: boolean;
|
|
1626
|
+
pendingText: string;
|
|
1627
|
+
compact: boolean;
|
|
1628
|
+
}>;
|
|
1629
|
+
__isFragment?: never;
|
|
1630
|
+
__isTeleport?: never;
|
|
1631
|
+
__isSuspense?: never;
|
|
1632
|
+
} & ComponentOptionsBase<Readonly<TimelineProProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
1633
|
+
title: string;
|
|
1634
|
+
emptyText: string;
|
|
1635
|
+
items: TimelineProItem[];
|
|
1636
|
+
direction: TimelineProDirection;
|
|
1637
|
+
pending: boolean;
|
|
1638
|
+
pendingText: string;
|
|
1639
|
+
compact: boolean;
|
|
1640
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1641
|
+
$slots: {
|
|
1642
|
+
header?(_: {}): any;
|
|
1643
|
+
item?(_: {
|
|
1644
|
+
item: TimelineProItem;
|
|
1645
|
+
index: number;
|
|
1646
|
+
}): any;
|
|
1647
|
+
pending?(_: {}): any;
|
|
1648
|
+
empty?(_: {}): any;
|
|
1649
|
+
};
|
|
1650
|
+
})>;
|
|
1651
|
+
|
|
1652
|
+
export declare type TimelineProDirection = 'vertical' | 'horizontal';
|
|
1653
|
+
|
|
1654
|
+
export declare interface TimelineProItem {
|
|
1655
|
+
key: string | number;
|
|
1656
|
+
title: string;
|
|
1657
|
+
time?: string;
|
|
1658
|
+
description?: string;
|
|
1659
|
+
operator?: string;
|
|
1660
|
+
status?: string;
|
|
1661
|
+
type?: TimelineProItemType;
|
|
1662
|
+
icon?: Component;
|
|
1663
|
+
meta?: Record<string, string | number | boolean | null | undefined>;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
export declare type TimelineProItemType = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
1667
|
+
|
|
1668
|
+
export declare interface TimelineProProps {
|
|
1669
|
+
items?: TimelineProItem[];
|
|
1670
|
+
title?: string;
|
|
1671
|
+
direction?: TimelineProDirection;
|
|
1672
|
+
pending?: boolean;
|
|
1673
|
+
pendingText?: string;
|
|
1674
|
+
emptyText?: string;
|
|
1675
|
+
compact?: boolean;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
export declare const Tips: SFCWithInstall<DefineComponent<TipsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1679
|
+
cancel: () => any;
|
|
1680
|
+
confirm: () => any;
|
|
1681
|
+
}, string, PublicProps, Readonly<TipsProps> & Readonly<{
|
|
1682
|
+
onCancel?: (() => any) | undefined;
|
|
1683
|
+
onConfirm?: (() => any) | undefined;
|
|
1684
|
+
}>, {
|
|
1685
|
+
modelValue: boolean;
|
|
1686
|
+
title: string;
|
|
1687
|
+
content: string;
|
|
1688
|
+
cancelText: string;
|
|
1689
|
+
confirmText: string;
|
|
1690
|
+
confirmStatus: boolean;
|
|
1691
|
+
cancelStatus: boolean;
|
|
1692
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>>;
|
|
1693
|
+
|
|
1694
|
+
export declare const TipsInput: SFCWithInstall<DefineComponent<TipsInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1695
|
+
cancel: () => any;
|
|
1696
|
+
confirm: (value: string) => any;
|
|
1697
|
+
}, string, PublicProps, Readonly<TipsInputProps> & Readonly<{
|
|
1698
|
+
onCancel?: (() => any) | undefined;
|
|
1699
|
+
onConfirm?: ((value: string) => any) | undefined;
|
|
1700
|
+
}>, {
|
|
1701
|
+
title: string;
|
|
1702
|
+
content: string;
|
|
1703
|
+
show: boolean;
|
|
1704
|
+
inputPlaceholder: string;
|
|
1705
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>>;
|
|
1706
|
+
|
|
1707
|
+
export declare interface TipsInputProps {
|
|
1708
|
+
show?: boolean;
|
|
1709
|
+
title?: string;
|
|
1710
|
+
content?: string;
|
|
1711
|
+
inputPlaceholder?: string;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
export declare interface TipsProps {
|
|
1715
|
+
modelValue?: boolean;
|
|
1716
|
+
title?: string;
|
|
1717
|
+
content?: string;
|
|
1718
|
+
cancelText?: string;
|
|
1719
|
+
confirmText?: string;
|
|
1720
|
+
confirmStatus?: boolean;
|
|
1721
|
+
cancelStatus?: boolean;
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
export declare type TreeFieldAccessor<TValue = unknown> = string | ((node: TreeNode) => TValue);
|
|
1725
|
+
|
|
1726
|
+
export declare interface TreeFieldMap {
|
|
1727
|
+
id?: TreeFieldAccessor;
|
|
1728
|
+
label?: TreeFieldAccessor;
|
|
1729
|
+
children?: TreeFieldAccessor;
|
|
1730
|
+
type?: TreeFieldAccessor;
|
|
1731
|
+
disabled?: TreeFieldAccessor;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
export declare type TreeKey = string | number;
|
|
1735
|
+
|
|
1736
|
+
/**
|
|
1737
|
+
* A public tree node intentionally accepts ordinary application interfaces.
|
|
1738
|
+
* Use TreeFieldMap when the node does not use the default id/label/children names.
|
|
1739
|
+
*/
|
|
1740
|
+
export declare type TreeNode = object;
|
|
1741
|
+
|
|
1742
|
+
export declare interface TreeSelection {
|
|
1743
|
+
/** Every selectable node currently covered by the selection. */
|
|
1744
|
+
checkedKeys: TreeKey[];
|
|
1745
|
+
/** The compact value emitted through v-model. */
|
|
1746
|
+
selectedKeys: TreeKey[];
|
|
1747
|
+
selectedNodes: TreeNode[];
|
|
1748
|
+
leafNodes: TreeNode[];
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
export declare type TreeSelectionStrategy = 'parent' | 'leaf' | 'all';
|
|
1752
|
+
|
|
1753
|
+
export declare const Upload: SFCWithInstall<DefineComponent<UploadProps, {
|
|
1754
|
+
uploadFile: (file: File) => Promise<UploadFileItem[]>;
|
|
1755
|
+
removeFile: (index: number) => void;
|
|
1756
|
+
removeAll: () => void;
|
|
1757
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1758
|
+
"update:modelValue": (files: UploadFileItem[]) => any;
|
|
1759
|
+
select: (file: File) => any;
|
|
1760
|
+
change: (files: UploadFileItem[]) => any;
|
|
1761
|
+
success: (file: UploadFileItem) => any;
|
|
1762
|
+
error: (error: unknown, file: File) => any;
|
|
1763
|
+
preview: (file: UploadFileItem, index: number) => any;
|
|
1764
|
+
remove: (file: UploadFileItem, index: number) => any;
|
|
1765
|
+
exceed: (files: UploadRawFile[], uploadFiles: UploadUserFile[]) => any;
|
|
1766
|
+
}, string, PublicProps, Readonly<UploadProps> & Readonly<{
|
|
1767
|
+
"onUpdate:modelValue"?: ((files: UploadFileItem[]) => any) | undefined;
|
|
1768
|
+
onSelect?: ((file: File) => any) | undefined;
|
|
1769
|
+
onChange?: ((files: UploadFileItem[]) => any) | undefined;
|
|
1770
|
+
onSuccess?: ((file: UploadFileItem) => any) | undefined;
|
|
1771
|
+
onError?: ((error: unknown, file: File) => any) | undefined;
|
|
1772
|
+
onPreview?: ((file: UploadFileItem, index: number) => any) | undefined;
|
|
1773
|
+
onRemove?: ((file: UploadFileItem, index: number) => any) | undefined;
|
|
1774
|
+
onExceed?: ((files: UploadRawFile[], uploadFiles: UploadUserFile[]) => any) | undefined;
|
|
1775
|
+
}>, {
|
|
1776
|
+
data: Record<string, unknown>;
|
|
1777
|
+
disabled: boolean;
|
|
1778
|
+
multiple: boolean;
|
|
1779
|
+
dragBox: boolean;
|
|
1780
|
+
inputBox: boolean;
|
|
1781
|
+
uploadUrl: string;
|
|
1782
|
+
headers: Record<string, string>;
|
|
1783
|
+
limit: number;
|
|
1784
|
+
accept: string;
|
|
1785
|
+
tips: string;
|
|
1786
|
+
fileName: string;
|
|
1787
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>>;
|
|
1788
|
+
|
|
1789
|
+
export declare interface UploadFileItem {
|
|
1790
|
+
uid?: UploadFileValue;
|
|
1791
|
+
name?: string;
|
|
1792
|
+
caption?: string;
|
|
1793
|
+
url?: string;
|
|
1794
|
+
size?: string | number;
|
|
1795
|
+
key?: string;
|
|
1796
|
+
status?: 'ready' | 'uploading' | 'success' | 'fail';
|
|
1797
|
+
raw?: File;
|
|
1798
|
+
[key: string]: unknown;
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
export declare type UploadFileValue = string | number;
|
|
1802
|
+
|
|
1803
|
+
export declare type UploadHandler = (context: UploadRequestContext) => UploadHandlerResult | Promise<UploadHandlerResult>;
|
|
1804
|
+
|
|
1805
|
+
export declare type UploadHandlerResult = UploadFileItem | UploadFileItem[];
|
|
1806
|
+
|
|
1807
|
+
export declare const UploadList: SFCWithInstall<DefineComponent<UploadListProps, {
|
|
1808
|
+
uploadFile: (file: File) => Promise<UploadFileItem[]>;
|
|
1809
|
+
removeFile: (index: number) => void;
|
|
1810
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1811
|
+
"update:modelValue": (files: UploadFileItem[]) => any;
|
|
1812
|
+
select: (file: File) => any;
|
|
1813
|
+
change: (files: UploadFileItem[]) => any;
|
|
1814
|
+
success: (file: UploadFileItem) => any;
|
|
1815
|
+
error: (error: unknown, file: File) => any;
|
|
1816
|
+
preview: (file: UploadFileItem, index: number) => any;
|
|
1817
|
+
remove: (file: UploadFileItem, index: number) => any;
|
|
1818
|
+
exceed: (files: UploadRawFile[], uploadFiles: UploadUserFile[]) => any;
|
|
1819
|
+
}, string, PublicProps, Readonly<UploadListProps> & Readonly<{
|
|
1820
|
+
"onUpdate:modelValue"?: ((files: UploadFileItem[]) => any) | undefined;
|
|
1821
|
+
onSelect?: ((file: File) => any) | undefined;
|
|
1822
|
+
onChange?: ((files: UploadFileItem[]) => any) | undefined;
|
|
1823
|
+
onSuccess?: ((file: UploadFileItem) => any) | undefined;
|
|
1824
|
+
onError?: ((error: unknown, file: File) => any) | undefined;
|
|
1825
|
+
onPreview?: ((file: UploadFileItem, index: number) => any) | undefined;
|
|
1826
|
+
onRemove?: ((file: UploadFileItem, index: number) => any) | undefined;
|
|
1827
|
+
onExceed?: ((files: UploadRawFile[], uploadFiles: UploadUserFile[]) => any) | undefined;
|
|
1828
|
+
}>, {
|
|
1829
|
+
data: Record<string, unknown>;
|
|
1830
|
+
disabled: boolean;
|
|
1831
|
+
preview: boolean;
|
|
1832
|
+
multiple: boolean;
|
|
1833
|
+
uploadUrl: string;
|
|
1834
|
+
headers: Record<string, string>;
|
|
1835
|
+
limit: number;
|
|
1836
|
+
accept: string;
|
|
1837
|
+
tips: string;
|
|
1838
|
+
fileName: string;
|
|
1839
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>>;
|
|
1840
|
+
|
|
1841
|
+
export declare interface UploadListProps extends Omit<UploadProps, 'dragBox' | 'inputBox'> {
|
|
1842
|
+
preview?: boolean;
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
export declare interface UploadProps {
|
|
1846
|
+
/** Optional controlled list. Omit it to let the component keep its own files. */
|
|
1847
|
+
modelValue?: UploadFileItem[];
|
|
1848
|
+
uploader?: UploadHandler;
|
|
1849
|
+
uploadUrl?: string;
|
|
1850
|
+
data?: Record<string, unknown>;
|
|
1851
|
+
headers?: Record<string, string>;
|
|
1852
|
+
dragBox?: boolean;
|
|
1853
|
+
inputBox?: boolean;
|
|
1854
|
+
limit?: number;
|
|
1855
|
+
accept?: string;
|
|
1856
|
+
tips?: string;
|
|
1857
|
+
disabled?: boolean;
|
|
1858
|
+
fileName?: string;
|
|
1859
|
+
multiple?: boolean;
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
export declare interface UploadRequestContext {
|
|
1863
|
+
file: File;
|
|
1864
|
+
fileName: string;
|
|
1865
|
+
uploadUrl?: string;
|
|
1866
|
+
data?: Record<string, unknown>;
|
|
1867
|
+
headers?: Record<string, string>;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
export declare const WEB_UI_BRAND_NAME = "Element Custom UI";
|
|
1871
|
+
|
|
1872
|
+
export declare const WEB_UI_PLUGIN_NAME = "ElementCustomUI";
|
|
1873
|
+
|
|
1874
|
+
export declare const WEB_UI_RUNTIME_ID = "element-custom-ui";
|
|
1875
|
+
|
|
1876
|
+
export declare const YyCheckbox: SFCWithInstall<DefineComponent< {
|
|
1877
|
+
data?: CheckboxOption[];
|
|
1878
|
+
modelValue?: CheckboxValue[];
|
|
1879
|
+
disabled?: boolean;
|
|
1880
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1881
|
+
"update:modelValue": (value: CheckboxValue[]) => any;
|
|
1882
|
+
}, string, PublicProps, Readonly<{
|
|
1883
|
+
data?: CheckboxOption[];
|
|
1884
|
+
modelValue?: CheckboxValue[];
|
|
1885
|
+
disabled?: boolean;
|
|
1886
|
+
}> & Readonly<{
|
|
1887
|
+
"onUpdate:modelValue"?: ((value: CheckboxValue[]) => any) | undefined;
|
|
1888
|
+
}>, {
|
|
1889
|
+
data: CheckboxOption[];
|
|
1890
|
+
modelValue: CheckboxValue[];
|
|
1891
|
+
disabled: boolean;
|
|
1892
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>>;
|
|
1893
|
+
|
|
1894
|
+
export { }
|