@leadal/flowstream-ui-plus 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.
@@ -0,0 +1,1542 @@
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { Attrs } from 'vue';
3
+ import { AxiosInstance } from 'axios';
4
+ import { Component } from 'vue';
5
+ import { ComponentCustomProperties } from 'vue';
6
+ import { ComponentCustomProps } from 'vue';
7
+ import { ComponentInternalInstance } from 'vue';
8
+ import { ComponentOptionsBase } from 'vue';
9
+ import { ComponentOptionsMixin } from 'vue';
10
+ import { ComponentProvideOptions } from 'vue';
11
+ import { ComponentPublicInstance } from 'vue';
12
+ import { CreateComponentPublicInstanceWithMixins } from 'vue';
13
+ import { DebuggerEvent } from 'vue';
14
+ import { DefineComponent } from 'vue';
15
+ import { GlobalComponents } from 'vue';
16
+ import { GlobalDirectives } from 'vue';
17
+ import { nextTick } from 'vue';
18
+ import { ObjectPlugin } from 'vue';
19
+ import { OnCleanup } from '@vue/reactivity';
20
+ import { Plugin as Plugin_2 } from 'vue';
21
+ import { PublicProps } from 'vue';
22
+ import { Ref } from 'vue';
23
+ import { ShallowRef } from 'vue';
24
+ import { Slot } from 'vue';
25
+ import { VNodeProps } from 'vue';
26
+ import { WatchOptions } from 'vue';
27
+ import { WatchStopHandle } from 'vue';
28
+
29
+ export declare const activateFlow: (data: {
30
+ workId: Id;
31
+ }) => Promise<ApiResponse<unknown>>;
32
+
33
+ export declare interface ApiResponse<T = unknown> {
34
+ code: number;
35
+ message?: string | null;
36
+ msg?: string | null;
37
+ data: T;
38
+ count?: number;
39
+ [key: string]: unknown;
40
+ }
41
+
42
+ export declare interface Assignee {
43
+ name: string;
44
+ /**
45
+ * FlowStream 新版审批人标识。保留 name 以兼容旧版接口,建议两个字段均传入。
46
+ */
47
+ userId?: string;
48
+ [key: string]: unknown;
49
+ }
50
+
51
+ export declare const completeTask: (data: {
52
+ workId: Id;
53
+ variables?: Data;
54
+ }) => Promise<ApiResponse<unknown>>;
55
+
56
+ declare type ComponentWithInstall<T extends Component> = T & Plugin_2;
57
+
58
+ export declare function configureWorkflow(options?: WorkflowPluginOptions): void;
59
+
60
+ declare type Data = Record<string, unknown>;
61
+
62
+ export declare const doneTaskList: (data: Data) => Promise<ApiResponse<unknown>>;
63
+
64
+ export declare const downloadBpmn: (params: {
65
+ procdefId: string;
66
+ }) => Promise<string>;
67
+
68
+ export declare const draftFlowList: (data: Data) => Promise<ApiResponse<unknown>>;
69
+
70
+ export declare const draftTaskList: (page: Pick<PageConfig, "currentPage" | "pageSize">, data: Data) => Promise<ApiResponse<unknown>>;
71
+
72
+ export declare const flowApi: {
73
+ draftFlowList: (data: {
74
+ [x: string]: unknown;
75
+ }) => Promise<ApiResponse<unknown>>;
76
+ draftTaskList: (page: Pick<PageConfig, "currentPage" | "pageSize">, data: {
77
+ [x: string]: unknown;
78
+ }) => Promise<ApiResponse<unknown>>;
79
+ saveDraft: (data: {
80
+ [x: string]: unknown;
81
+ }) => Promise<ApiResponse<unknown>>;
82
+ startDraft: (data: {
83
+ [x: string]: unknown;
84
+ }) => Promise<ApiResponse<unknown>>;
85
+ todoTaskList: (data: {
86
+ [x: string]: unknown;
87
+ }) => Promise<ApiResponse<unknown>>;
88
+ doneTaskList: (data: {
89
+ [x: string]: unknown;
90
+ }) => Promise<ApiResponse<unknown>>;
91
+ getOptList: (data: {
92
+ workId: Id;
93
+ }) => Promise<ApiResponse<unknown>>;
94
+ revocationTask: (data: {
95
+ workId: Id;
96
+ }) => Promise<ApiResponse<unknown>>;
97
+ rollbackTask: (data: {
98
+ workId: Id;
99
+ } & {
100
+ [x: string]: unknown;
101
+ }) => Promise<ApiResponse<unknown>>;
102
+ recycleTask: (data: {
103
+ workId: Id;
104
+ }) => Promise<ApiResponse<unknown>>;
105
+ completeTask: (data: {
106
+ workId: Id;
107
+ variables?: {
108
+ [x: string]: unknown;
109
+ };
110
+ }) => Promise<ApiResponse<unknown>>;
111
+ suspendFlow: (data: {
112
+ processInstanceIds: Id[];
113
+ }) => Promise<ApiResponse<unknown>>;
114
+ activateFlow: (data: {
115
+ workId: Id;
116
+ }) => Promise<ApiResponse<unknown>>;
117
+ terminateFlow: (data: {
118
+ workId: Id;
119
+ }) => Promise<ApiResponse<unknown>>;
120
+ downloadBpmn: (params: {
121
+ procdefId: string;
122
+ }) => Promise<string>;
123
+ sendTask: (data: {
124
+ workId: Id;
125
+ flowNodeAssignees: FlowNodeAssignee[];
126
+ variables?: {
127
+ [x: string]: unknown;
128
+ };
129
+ opinion?: string;
130
+ }) => Promise<ApiResponse<unknown>>;
131
+ flowStartNodeList: (data: {
132
+ processDefinitionId: string;
133
+ }) => Promise<ApiResponse<unknown>>;
134
+ nodeAssistant: (data: {
135
+ [x: string]: unknown;
136
+ }) => Promise<ApiResponse<unknown>>;
137
+ nextSendNode: (data: {
138
+ [x: string]: unknown;
139
+ }) => Promise<ApiResponse<unknown>>;
140
+ jumpTask: (data: {
141
+ [x: string]: unknown;
142
+ }) => Promise<ApiResponse<unknown>>;
143
+ startNodes: (data: {
144
+ processDefinitionId: Id;
145
+ }) => Promise<ApiResponse<unknown>>;
146
+ flowMonitorLine: (data: {
147
+ processInstanceId: string;
148
+ fetchFlowNodeState: boolean;
149
+ }) => Promise<ApiResponse<unknown>>;
150
+ flowTrack: (data: {
151
+ processInstanceId: string;
152
+ }) => Promise<ApiResponse<unknown>>;
153
+ };
154
+
155
+ export declare const FlowButton: ComponentWithInstall< {
156
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
157
+ type?: string;
158
+ label?: string;
159
+ }> & Readonly<{
160
+ onClick?: ((type?: string | undefined) => any) | undefined;
161
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
162
+ click: (type?: string | undefined) => any;
163
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLSpanElement, ComponentProvideOptions, {
164
+ P: {};
165
+ B: {};
166
+ D: {};
167
+ C: {};
168
+ M: {};
169
+ Defaults: {};
170
+ }, Readonly<{
171
+ type?: string;
172
+ label?: string;
173
+ }> & Readonly<{
174
+ onClick?: ((type?: string | undefined) => any) | undefined;
175
+ }>, {}, {}, {}, {}, {}>;
176
+ __isFragment?: never;
177
+ __isTeleport?: never;
178
+ __isSuspense?: never;
179
+ } & ComponentOptionsBase<Readonly<{
180
+ type?: string;
181
+ label?: string;
182
+ }> & Readonly<{
183
+ onClick?: ((type?: string | undefined) => any) | undefined;
184
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
185
+ click: (type?: string | undefined) => any;
186
+ }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
187
+ $slots: {
188
+ default?(_: {}): any;
189
+ };
190
+ })>;
191
+
192
+ export declare const FlowButtons: ComponentWithInstall< {
193
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
194
+ processInstanceId?: string;
195
+ workId: string;
196
+ beforeAction?: (action: string, context: Record<string, unknown>) => boolean | void;
197
+ afterAction?: (action: string, result: ApiResponse) => void;
198
+ }> & Readonly<{
199
+ onAfterAction?: ((action: string, result: ApiResponse<unknown>) => any) | undefined;
200
+ onExecuteAction?: ((action: string) => any) | undefined;
201
+ onError?: ((error: unknown) => any) | undefined;
202
+ }>, {
203
+ getAvailableActions: () => Promise<{
204
+ [x: string]: unknown;
205
+ name: string;
206
+ label: string;
207
+ }[]>;
208
+ executeAction: (button: WorkflowActionItem) => Promise<void>;
209
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
210
+ afterAction: (action: string, result: ApiResponse<unknown>) => any;
211
+ executeAction: (action: string) => any;
212
+ error: (error: unknown) => any;
213
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
214
+ P: {};
215
+ B: {};
216
+ D: {};
217
+ C: {};
218
+ M: {};
219
+ Defaults: {};
220
+ }, Readonly<{
221
+ processInstanceId?: string;
222
+ workId: string;
223
+ beforeAction?: (action: string, context: Record<string, unknown>) => boolean | void;
224
+ afterAction?: (action: string, result: ApiResponse) => void;
225
+ }> & Readonly<{
226
+ onAfterAction?: ((action: string, result: ApiResponse<unknown>) => any) | undefined;
227
+ onExecuteAction?: ((action: string) => any) | undefined;
228
+ onError?: ((error: unknown) => any) | undefined;
229
+ }>, {
230
+ getAvailableActions: () => Promise<{
231
+ [x: string]: unknown;
232
+ name: string;
233
+ label: string;
234
+ }[]>;
235
+ executeAction: (button: WorkflowActionItem) => Promise<void>;
236
+ }, {}, {}, {}, {}>;
237
+ __isFragment?: never;
238
+ __isTeleport?: never;
239
+ __isSuspense?: never;
240
+ } & ComponentOptionsBase<Readonly<{
241
+ processInstanceId?: string;
242
+ workId: string;
243
+ beforeAction?: (action: string, context: Record<string, unknown>) => boolean | void;
244
+ afterAction?: (action: string, result: ApiResponse) => void;
245
+ }> & Readonly<{
246
+ onAfterAction?: ((action: string, result: ApiResponse<unknown>) => any) | undefined;
247
+ onExecuteAction?: ((action: string) => any) | undefined;
248
+ onError?: ((error: unknown) => any) | undefined;
249
+ }>, {
250
+ getAvailableActions: () => Promise<{
251
+ [x: string]: unknown;
252
+ name: string;
253
+ label: string;
254
+ }[]>;
255
+ executeAction: (button: WorkflowActionItem) => Promise<void>;
256
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
257
+ afterAction: (action: string, result: ApiResponse<unknown>) => any;
258
+ executeAction: (action: string) => any;
259
+ error: (error: unknown) => any;
260
+ }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
261
+ $slots: {
262
+ prefix?(_: {
263
+ action: {
264
+ [x: string]: unknown;
265
+ name: string;
266
+ label: string;
267
+ };
268
+ }): any;
269
+ default?(_: {
270
+ action: {
271
+ [x: string]: unknown;
272
+ name: string;
273
+ label: string;
274
+ };
275
+ }): any;
276
+ suffix?(_: {
277
+ action: {
278
+ [x: string]: unknown;
279
+ name: string;
280
+ label: string;
281
+ };
282
+ }): any;
283
+ };
284
+ })>;
285
+
286
+ export declare const FlowDiagram: ComponentWithInstall<DefineComponent< {
287
+ processDefinitionId: string;
288
+ processInstanceId: string;
289
+ }, {
290
+ refresh: () => Promise<void>;
291
+ viewer: ShallowRef< {
292
+ importXML(xml: string): Promise<{
293
+ warnings: unknown[];
294
+ }>;
295
+ get(name: string): any;
296
+ destroy(): void;
297
+ } | undefined, {
298
+ importXML(xml: string): Promise<{
299
+ warnings: unknown[];
300
+ }>;
301
+ get(name: string): any;
302
+ destroy(): void;
303
+ } | undefined>;
304
+ trackData: Ref<Record<string, unknown>[], Record<string, unknown>[]>;
305
+ isTrackHidden: Ref<boolean, boolean>;
306
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
307
+ error: (error: unknown) => any;
308
+ loaded: () => any;
309
+ }, string, PublicProps, Readonly<{
310
+ processDefinitionId: string;
311
+ processInstanceId: string;
312
+ }> & Readonly<{
313
+ onError?: ((error: unknown) => any) | undefined;
314
+ onLoaded?: (() => any) | undefined;
315
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
316
+ canvasRef: HTMLDivElement;
317
+ }, HTMLDivElement>>;
318
+
319
+ export declare const FlowGrid: ComponentWithInstall<DefineComponent< {
320
+ type: "todo" | "done" | "draft";
321
+ dealUserId?: string;
322
+ appId?: string;
323
+ appModuleId?: string;
324
+ }, {
325
+ data: Ref<Record<string, unknown>[], Record<string, unknown>[]>;
326
+ loading: Ref<boolean, boolean>;
327
+ pageConfig: {
328
+ currentPage: number;
329
+ pageSize: number;
330
+ total: number;
331
+ };
332
+ gridRef: Ref<({
333
+ $: ComponentInternalInstance;
334
+ $data: {};
335
+ $props: {
336
+ readonly data?: Record<string, unknown>[] | undefined;
337
+ readonly tableLabel?: TableColumn[] | undefined;
338
+ readonly pageConfig?: PageConfig | undefined;
339
+ readonly hidePage?: boolean | undefined;
340
+ readonly hideSelection?: boolean | undefined;
341
+ readonly hideNumber?: boolean | undefined;
342
+ readonly operation?: boolean | undefined;
343
+ readonly tableHeight?: string | undefined;
344
+ readonly isFixed?: boolean | undefined;
345
+ readonly btnWidth?: number | undefined;
346
+ readonly size?: "large" | "default" | "small" | "medium" | undefined;
347
+ readonly "onPage-change"?: ((currentPage: number) => any) | undefined;
348
+ readonly "onSize-change"?: ((pageSize: number) => any) | undefined;
349
+ readonly "onRow-click"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
350
+ readonly "onRow-dblclick"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
351
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
352
+ $attrs: Attrs;
353
+ $refs: {
354
+ [x: string]: unknown;
355
+ } & {
356
+ rootRef: HTMLDivElement;
357
+ tableRef: unknown;
358
+ };
359
+ $slots: Readonly<{
360
+ [name: string]: Slot<any> | undefined;
361
+ }>;
362
+ $root: ComponentPublicInstance | null;
363
+ $parent: ComponentPublicInstance | null;
364
+ $host: Element | null;
365
+ $emit: ((event: "page-change", currentPage: number) => void) & ((event: "size-change", pageSize: number) => void) & ((event: "row-click", row: Record<string, unknown>, column: unknown, event: Event) => void) & ((event: "row-dblclick", row: Record<string, unknown>, column: unknown, event: Event) => void);
366
+ $el: any;
367
+ $options: ComponentOptionsBase<Readonly<{
368
+ data?: Record<string, unknown>[];
369
+ tableLabel?: TableColumn[];
370
+ pageConfig?: PageConfig;
371
+ hidePage?: boolean;
372
+ hideSelection?: boolean;
373
+ hideNumber?: boolean;
374
+ operation?: boolean;
375
+ tableHeight?: string;
376
+ isFixed?: boolean;
377
+ btnWidth?: number;
378
+ size?: "large" | "default" | "small" | "medium";
379
+ }> & Readonly<{
380
+ "onPage-change"?: ((currentPage: number) => any) | undefined;
381
+ "onSize-change"?: ((pageSize: number) => any) | undefined;
382
+ "onRow-click"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
383
+ "onRow-dblclick"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
384
+ }>, {
385
+ tableRef: Ref<any, any>;
386
+ clearSelection: () => void;
387
+ toggleRowSelection: (row: Record<string, unknown>, selected?: boolean) => void;
388
+ toggleAllSelection: () => void;
389
+ setCurrentRow: (row?: Record<string, unknown>) => void;
390
+ computeHeight: () => void;
391
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
392
+ "page-change": (currentPage: number) => any;
393
+ "size-change": (pageSize: number) => any;
394
+ "row-click": (row: Record<string, unknown>, column: unknown, event: Event) => any;
395
+ "row-dblclick": (row: Record<string, unknown>, column: unknown, event: Event) => any;
396
+ }, string, {
397
+ size: "large" | "default" | "small" | "medium";
398
+ data: Record<string, unknown>[];
399
+ tableLabel: TableColumn[];
400
+ pageConfig: PageConfig;
401
+ hidePage: boolean;
402
+ hideSelection: boolean;
403
+ hideNumber: boolean;
404
+ operation: boolean;
405
+ tableHeight: string;
406
+ isFixed: boolean;
407
+ btnWidth: number;
408
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
409
+ beforeCreate?: (() => void) | (() => void)[];
410
+ created?: (() => void) | (() => void)[];
411
+ beforeMount?: (() => void) | (() => void)[];
412
+ mounted?: (() => void) | (() => void)[];
413
+ beforeUpdate?: (() => void) | (() => void)[];
414
+ updated?: (() => void) | (() => void)[];
415
+ activated?: (() => void) | (() => void)[];
416
+ deactivated?: (() => void) | (() => void)[];
417
+ beforeDestroy?: (() => void) | (() => void)[];
418
+ beforeUnmount?: (() => void) | (() => void)[];
419
+ destroyed?: (() => void) | (() => void)[];
420
+ unmounted?: (() => void) | (() => void)[];
421
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
422
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
423
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
424
+ };
425
+ $forceUpdate: () => void;
426
+ $nextTick: nextTick;
427
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
428
+ } & Readonly<{
429
+ size: "large" | "default" | "small" | "medium";
430
+ data: Record<string, unknown>[];
431
+ tableLabel: TableColumn[];
432
+ pageConfig: PageConfig;
433
+ hidePage: boolean;
434
+ hideSelection: boolean;
435
+ hideNumber: boolean;
436
+ operation: boolean;
437
+ tableHeight: string;
438
+ isFixed: boolean;
439
+ btnWidth: number;
440
+ }> & Omit<Readonly<{
441
+ data?: Record<string, unknown>[];
442
+ tableLabel?: TableColumn[];
443
+ pageConfig?: PageConfig;
444
+ hidePage?: boolean;
445
+ hideSelection?: boolean;
446
+ hideNumber?: boolean;
447
+ operation?: boolean;
448
+ tableHeight?: string;
449
+ isFixed?: boolean;
450
+ btnWidth?: number;
451
+ size?: "large" | "default" | "small" | "medium";
452
+ }> & Readonly<{
453
+ "onPage-change"?: ((currentPage: number) => any) | undefined;
454
+ "onSize-change"?: ((pageSize: number) => any) | undefined;
455
+ "onRow-click"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
456
+ "onRow-dblclick"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
457
+ }>, "tableRef" | ("size" | "data" | "tableLabel" | "pageConfig" | "hidePage" | "hideSelection" | "hideNumber" | "operation" | "tableHeight" | "isFixed" | "btnWidth") | "clearSelection" | "toggleRowSelection" | "toggleAllSelection" | "setCurrentRow" | "computeHeight"> & {
458
+ tableRef: any;
459
+ clearSelection: () => void;
460
+ toggleRowSelection: (row: Record<string, unknown>, selected?: boolean) => void;
461
+ toggleAllSelection: () => void;
462
+ setCurrentRow: (row?: Record<string, unknown>) => void;
463
+ computeHeight: () => void;
464
+ } & {} & ComponentCustomProperties & {} & {
465
+ $slots: {
466
+ default?(_: {}): any;
467
+ operation?(_: {
468
+ row: any;
469
+ }): any;
470
+ 'pagination-left'?(_: {}): any;
471
+ };
472
+ }) | undefined, ({
473
+ $: ComponentInternalInstance;
474
+ $data: {};
475
+ $props: {
476
+ readonly data?: Record<string, unknown>[] | undefined;
477
+ readonly tableLabel?: TableColumn[] | undefined;
478
+ readonly pageConfig?: PageConfig | undefined;
479
+ readonly hidePage?: boolean | undefined;
480
+ readonly hideSelection?: boolean | undefined;
481
+ readonly hideNumber?: boolean | undefined;
482
+ readonly operation?: boolean | undefined;
483
+ readonly tableHeight?: string | undefined;
484
+ readonly isFixed?: boolean | undefined;
485
+ readonly btnWidth?: number | undefined;
486
+ readonly size?: "large" | "default" | "small" | "medium" | undefined;
487
+ readonly "onPage-change"?: ((currentPage: number) => any) | undefined;
488
+ readonly "onSize-change"?: ((pageSize: number) => any) | undefined;
489
+ readonly "onRow-click"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
490
+ readonly "onRow-dblclick"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
491
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
492
+ $attrs: Attrs;
493
+ $refs: {
494
+ [x: string]: unknown;
495
+ } & {
496
+ rootRef: HTMLDivElement;
497
+ tableRef: unknown;
498
+ };
499
+ $slots: Readonly<{
500
+ [name: string]: Slot<any> | undefined;
501
+ }>;
502
+ $root: ComponentPublicInstance | null;
503
+ $parent: ComponentPublicInstance | null;
504
+ $host: Element | null;
505
+ $emit: ((event: "page-change", currentPage: number) => void) & ((event: "size-change", pageSize: number) => void) & ((event: "row-click", row: Record<string, unknown>, column: unknown, event: Event) => void) & ((event: "row-dblclick", row: Record<string, unknown>, column: unknown, event: Event) => void);
506
+ $el: any;
507
+ $options: ComponentOptionsBase<Readonly<{
508
+ data?: Record<string, unknown>[];
509
+ tableLabel?: TableColumn[];
510
+ pageConfig?: PageConfig;
511
+ hidePage?: boolean;
512
+ hideSelection?: boolean;
513
+ hideNumber?: boolean;
514
+ operation?: boolean;
515
+ tableHeight?: string;
516
+ isFixed?: boolean;
517
+ btnWidth?: number;
518
+ size?: "large" | "default" | "small" | "medium";
519
+ }> & Readonly<{
520
+ "onPage-change"?: ((currentPage: number) => any) | undefined;
521
+ "onSize-change"?: ((pageSize: number) => any) | undefined;
522
+ "onRow-click"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
523
+ "onRow-dblclick"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
524
+ }>, {
525
+ tableRef: Ref<any, any>;
526
+ clearSelection: () => void;
527
+ toggleRowSelection: (row: Record<string, unknown>, selected?: boolean) => void;
528
+ toggleAllSelection: () => void;
529
+ setCurrentRow: (row?: Record<string, unknown>) => void;
530
+ computeHeight: () => void;
531
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
532
+ "page-change": (currentPage: number) => any;
533
+ "size-change": (pageSize: number) => any;
534
+ "row-click": (row: Record<string, unknown>, column: unknown, event: Event) => any;
535
+ "row-dblclick": (row: Record<string, unknown>, column: unknown, event: Event) => any;
536
+ }, string, {
537
+ size: "large" | "default" | "small" | "medium";
538
+ data: Record<string, unknown>[];
539
+ tableLabel: TableColumn[];
540
+ pageConfig: PageConfig;
541
+ hidePage: boolean;
542
+ hideSelection: boolean;
543
+ hideNumber: boolean;
544
+ operation: boolean;
545
+ tableHeight: string;
546
+ isFixed: boolean;
547
+ btnWidth: number;
548
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
549
+ beforeCreate?: (() => void) | (() => void)[];
550
+ created?: (() => void) | (() => void)[];
551
+ beforeMount?: (() => void) | (() => void)[];
552
+ mounted?: (() => void) | (() => void)[];
553
+ beforeUpdate?: (() => void) | (() => void)[];
554
+ updated?: (() => void) | (() => void)[];
555
+ activated?: (() => void) | (() => void)[];
556
+ deactivated?: (() => void) | (() => void)[];
557
+ beforeDestroy?: (() => void) | (() => void)[];
558
+ beforeUnmount?: (() => void) | (() => void)[];
559
+ destroyed?: (() => void) | (() => void)[];
560
+ unmounted?: (() => void) | (() => void)[];
561
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
562
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
563
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
564
+ };
565
+ $forceUpdate: () => void;
566
+ $nextTick: nextTick;
567
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
568
+ } & Readonly<{
569
+ size: "large" | "default" | "small" | "medium";
570
+ data: Record<string, unknown>[];
571
+ tableLabel: TableColumn[];
572
+ pageConfig: PageConfig;
573
+ hidePage: boolean;
574
+ hideSelection: boolean;
575
+ hideNumber: boolean;
576
+ operation: boolean;
577
+ tableHeight: string;
578
+ isFixed: boolean;
579
+ btnWidth: number;
580
+ }> & Omit<Readonly<{
581
+ data?: Record<string, unknown>[];
582
+ tableLabel?: TableColumn[];
583
+ pageConfig?: PageConfig;
584
+ hidePage?: boolean;
585
+ hideSelection?: boolean;
586
+ hideNumber?: boolean;
587
+ operation?: boolean;
588
+ tableHeight?: string;
589
+ isFixed?: boolean;
590
+ btnWidth?: number;
591
+ size?: "large" | "default" | "small" | "medium";
592
+ }> & Readonly<{
593
+ "onPage-change"?: ((currentPage: number) => any) | undefined;
594
+ "onSize-change"?: ((pageSize: number) => any) | undefined;
595
+ "onRow-click"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
596
+ "onRow-dblclick"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
597
+ }>, "tableRef" | ("size" | "data" | "tableLabel" | "pageConfig" | "hidePage" | "hideSelection" | "hideNumber" | "operation" | "tableHeight" | "isFixed" | "btnWidth") | "clearSelection" | "toggleRowSelection" | "toggleAllSelection" | "setCurrentRow" | "computeHeight"> & {
598
+ tableRef: any;
599
+ clearSelection: () => void;
600
+ toggleRowSelection: (row: Record<string, unknown>, selected?: boolean) => void;
601
+ toggleAllSelection: () => void;
602
+ setCurrentRow: (row?: Record<string, unknown>) => void;
603
+ computeHeight: () => void;
604
+ } & {} & ComponentCustomProperties & {} & {
605
+ $slots: {
606
+ default?(_: {}): any;
607
+ operation?(_: {
608
+ row: any;
609
+ }): any;
610
+ 'pagination-left'?(_: {}): any;
611
+ };
612
+ }) | undefined>;
613
+ loadTableData: () => Promise<void>;
614
+ onRowDblclick: (row: Record<string, unknown>) => void;
615
+ create: (flow: {
616
+ name: string;
617
+ processDefinitionId: string;
618
+ }) => void;
619
+ buildDefaultBusinessTitle: (flowName: string) => string;
620
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
621
+ error: (error: unknown) => any;
622
+ onHandle: (payload: {
623
+ action: string;
624
+ workData: Record<string, unknown>;
625
+ }) => any;
626
+ }, string, PublicProps, Readonly<{
627
+ type: "todo" | "done" | "draft";
628
+ dealUserId?: string;
629
+ appId?: string;
630
+ appModuleId?: string;
631
+ }> & Readonly<{
632
+ onError?: ((error: unknown) => any) | undefined;
633
+ onOnHandle?: ((payload: {
634
+ action: string;
635
+ workData: Record<string, unknown>;
636
+ }) => any) | undefined;
637
+ }>, {
638
+ dealUserId: string;
639
+ appId: string;
640
+ appModuleId: string;
641
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
642
+ gridRef: ({
643
+ $: ComponentInternalInstance;
644
+ $data: {};
645
+ $props: {
646
+ readonly data?: Record<string, unknown>[] | undefined;
647
+ readonly tableLabel?: TableColumn[] | undefined;
648
+ readonly pageConfig?: PageConfig | undefined;
649
+ readonly hidePage?: boolean | undefined;
650
+ readonly hideSelection?: boolean | undefined;
651
+ readonly hideNumber?: boolean | undefined;
652
+ readonly operation?: boolean | undefined;
653
+ readonly tableHeight?: string | undefined;
654
+ readonly isFixed?: boolean | undefined;
655
+ readonly btnWidth?: number | undefined;
656
+ readonly size?: "large" | "default" | "small" | "medium" | undefined;
657
+ readonly "onPage-change"?: ((currentPage: number) => any) | undefined;
658
+ readonly "onSize-change"?: ((pageSize: number) => any) | undefined;
659
+ readonly "onRow-click"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
660
+ readonly "onRow-dblclick"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
661
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
662
+ $attrs: Attrs;
663
+ $refs: {
664
+ [x: string]: unknown;
665
+ } & {
666
+ rootRef: HTMLDivElement;
667
+ tableRef: unknown;
668
+ };
669
+ $slots: Readonly<{
670
+ [name: string]: Slot<any> | undefined;
671
+ }>;
672
+ $root: ComponentPublicInstance | null;
673
+ $parent: ComponentPublicInstance | null;
674
+ $host: Element | null;
675
+ $emit: ((event: "page-change", currentPage: number) => void) & ((event: "size-change", pageSize: number) => void) & ((event: "row-click", row: Record<string, unknown>, column: unknown, event: Event) => void) & ((event: "row-dblclick", row: Record<string, unknown>, column: unknown, event: Event) => void);
676
+ $el: any;
677
+ $options: ComponentOptionsBase<Readonly<{
678
+ data?: Record<string, unknown>[];
679
+ tableLabel?: TableColumn[];
680
+ pageConfig?: PageConfig;
681
+ hidePage?: boolean;
682
+ hideSelection?: boolean;
683
+ hideNumber?: boolean;
684
+ operation?: boolean;
685
+ tableHeight?: string;
686
+ isFixed?: boolean;
687
+ btnWidth?: number;
688
+ size?: "large" | "default" | "small" | "medium";
689
+ }> & Readonly<{
690
+ "onPage-change"?: ((currentPage: number) => any) | undefined;
691
+ "onSize-change"?: ((pageSize: number) => any) | undefined;
692
+ "onRow-click"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
693
+ "onRow-dblclick"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
694
+ }>, {
695
+ tableRef: Ref<any, any>;
696
+ clearSelection: () => void;
697
+ toggleRowSelection: (row: Record<string, unknown>, selected?: boolean) => void;
698
+ toggleAllSelection: () => void;
699
+ setCurrentRow: (row?: Record<string, unknown>) => void;
700
+ computeHeight: () => void;
701
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
702
+ "page-change": (currentPage: number) => any;
703
+ "size-change": (pageSize: number) => any;
704
+ "row-click": (row: Record<string, unknown>, column: unknown, event: Event) => any;
705
+ "row-dblclick": (row: Record<string, unknown>, column: unknown, event: Event) => any;
706
+ }, string, {
707
+ size: "large" | "default" | "small" | "medium";
708
+ data: Record<string, unknown>[];
709
+ tableLabel: TableColumn[];
710
+ pageConfig: PageConfig;
711
+ hidePage: boolean;
712
+ hideSelection: boolean;
713
+ hideNumber: boolean;
714
+ operation: boolean;
715
+ tableHeight: string;
716
+ isFixed: boolean;
717
+ btnWidth: number;
718
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
719
+ beforeCreate?: (() => void) | (() => void)[];
720
+ created?: (() => void) | (() => void)[];
721
+ beforeMount?: (() => void) | (() => void)[];
722
+ mounted?: (() => void) | (() => void)[];
723
+ beforeUpdate?: (() => void) | (() => void)[];
724
+ updated?: (() => void) | (() => void)[];
725
+ activated?: (() => void) | (() => void)[];
726
+ deactivated?: (() => void) | (() => void)[];
727
+ beforeDestroy?: (() => void) | (() => void)[];
728
+ beforeUnmount?: (() => void) | (() => void)[];
729
+ destroyed?: (() => void) | (() => void)[];
730
+ unmounted?: (() => void) | (() => void)[];
731
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
732
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
733
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
734
+ };
735
+ $forceUpdate: () => void;
736
+ $nextTick: nextTick;
737
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
738
+ } & Readonly<{
739
+ size: "large" | "default" | "small" | "medium";
740
+ data: Record<string, unknown>[];
741
+ tableLabel: TableColumn[];
742
+ pageConfig: PageConfig;
743
+ hidePage: boolean;
744
+ hideSelection: boolean;
745
+ hideNumber: boolean;
746
+ operation: boolean;
747
+ tableHeight: string;
748
+ isFixed: boolean;
749
+ btnWidth: number;
750
+ }> & Omit<Readonly<{
751
+ data?: Record<string, unknown>[];
752
+ tableLabel?: TableColumn[];
753
+ pageConfig?: PageConfig;
754
+ hidePage?: boolean;
755
+ hideSelection?: boolean;
756
+ hideNumber?: boolean;
757
+ operation?: boolean;
758
+ tableHeight?: string;
759
+ isFixed?: boolean;
760
+ btnWidth?: number;
761
+ size?: "large" | "default" | "small" | "medium";
762
+ }> & Readonly<{
763
+ "onPage-change"?: ((currentPage: number) => any) | undefined;
764
+ "onSize-change"?: ((pageSize: number) => any) | undefined;
765
+ "onRow-click"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
766
+ "onRow-dblclick"?: ((row: Record<string, unknown>, column: unknown, event: Event) => any) | undefined;
767
+ }>, "tableRef" | ("size" | "data" | "tableLabel" | "pageConfig" | "hidePage" | "hideSelection" | "hideNumber" | "operation" | "tableHeight" | "isFixed" | "btnWidth") | "clearSelection" | "toggleRowSelection" | "toggleAllSelection" | "setCurrentRow" | "computeHeight"> & {
768
+ tableRef: any;
769
+ clearSelection: () => void;
770
+ toggleRowSelection: (row: Record<string, unknown>, selected?: boolean) => void;
771
+ toggleAllSelection: () => void;
772
+ setCurrentRow: (row?: Record<string, unknown>) => void;
773
+ computeHeight: () => void;
774
+ } & {} & ComponentCustomProperties & {} & {
775
+ $slots: {
776
+ default?(_: {}): any;
777
+ operation?(_: {
778
+ row: any;
779
+ }): any;
780
+ 'pagination-left'?(_: {}): any;
781
+ };
782
+ }) | null;
783
+ }, any>>;
784
+
785
+ export declare const FlowJump: ComponentWithInstall< {
786
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
787
+ processDefinitionId: Id;
788
+ workId?: Id;
789
+ processInstanceId?: Id;
790
+ dealUser?: {
791
+ [key: string]: unknown;
792
+ id?: Id;
793
+ userId?: Id;
794
+ name?: string;
795
+ };
796
+ modelValue?: boolean;
797
+ showTrigger?: boolean;
798
+ dialogTitle?: string;
799
+ dialogWidth?: string;
800
+ }> & Readonly<{
801
+ onClick?: (() => any) | undefined;
802
+ onError?: ((error: unknown) => any) | undefined;
803
+ onClose?: (() => any) | undefined;
804
+ "onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
805
+ onOpen?: (() => any) | undefined;
806
+ onBeforeJump?: ((data: Record<string, unknown>) => any) | undefined;
807
+ onAfterJump?: ((result: ApiResponse<unknown>) => any) | undefined;
808
+ }>, {
809
+ visible: Ref<boolean, boolean>;
810
+ loading: Ref<boolean, boolean>;
811
+ nodeLoading: Ref<boolean, boolean>;
812
+ assigneeLoading: Ref<boolean, boolean>;
813
+ startNodeList: Ref< {
814
+ [x: string]: unknown;
815
+ id: string;
816
+ activityId?: string | undefined;
817
+ activityName?: string | undefined;
818
+ flowElementType?: string | undefined;
819
+ assignees?: (string | {
820
+ [x: string]: unknown;
821
+ name: string;
822
+ userId?: string | undefined;
823
+ })[] | undefined;
824
+ }[], FlowNode[] | {
825
+ [x: string]: unknown;
826
+ id: string;
827
+ activityId?: string | undefined;
828
+ activityName?: string | undefined;
829
+ flowElementType?: string | undefined;
830
+ assignees?: (string | {
831
+ [x: string]: unknown;
832
+ name: string;
833
+ userId?: string | undefined;
834
+ })[] | undefined;
835
+ }[]>;
836
+ selectedActivityId: Ref<string, string>;
837
+ selectedAssigneeId: Ref<string, string>;
838
+ open: () => Promise<void>;
839
+ close: () => void;
840
+ getStartNodes: () => Promise<{
841
+ [x: string]: unknown;
842
+ id: string;
843
+ activityId?: string | undefined;
844
+ activityName?: string | undefined;
845
+ flowElementType?: string | undefined;
846
+ assignees?: (string | {
847
+ [x: string]: unknown;
848
+ name: string;
849
+ userId?: string | undefined;
850
+ })[] | undefined;
851
+ }[]>;
852
+ assembleData: (targetNode?: FlowNode, assigneeId?: Id) => {
853
+ workId: Id;
854
+ flowNodeAssignee: {
855
+ activityId: string;
856
+ assignees: {
857
+ name: string;
858
+ userId: string;
859
+ }[];
860
+ };
861
+ variables: {};
862
+ };
863
+ jump: (formData?: Record<string, unknown>) => Promise<ApiResponse<unknown>>;
864
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
865
+ click: () => any;
866
+ error: (error: unknown) => any;
867
+ close: () => any;
868
+ "update:modelValue": (visible: boolean) => any;
869
+ open: () => any;
870
+ beforeJump: (data: Record<string, unknown>) => any;
871
+ afterJump: (result: ApiResponse<unknown>) => any;
872
+ }, PublicProps, {
873
+ processInstanceId: Id;
874
+ workId: Id;
875
+ dealUser: {
876
+ [key: string]: unknown;
877
+ id?: Id;
878
+ userId?: Id;
879
+ name?: string;
880
+ };
881
+ modelValue: boolean;
882
+ showTrigger: boolean;
883
+ dialogTitle: string;
884
+ dialogWidth: string;
885
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
886
+ P: {};
887
+ B: {};
888
+ D: {};
889
+ C: {};
890
+ M: {};
891
+ Defaults: {};
892
+ }, Readonly<{
893
+ processDefinitionId: Id;
894
+ workId?: Id;
895
+ processInstanceId?: Id;
896
+ dealUser?: {
897
+ [key: string]: unknown;
898
+ id?: Id;
899
+ userId?: Id;
900
+ name?: string;
901
+ };
902
+ modelValue?: boolean;
903
+ showTrigger?: boolean;
904
+ dialogTitle?: string;
905
+ dialogWidth?: string;
906
+ }> & Readonly<{
907
+ onClick?: (() => any) | undefined;
908
+ onError?: ((error: unknown) => any) | undefined;
909
+ onClose?: (() => any) | undefined;
910
+ "onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
911
+ onOpen?: (() => any) | undefined;
912
+ onBeforeJump?: ((data: Record<string, unknown>) => any) | undefined;
913
+ onAfterJump?: ((result: ApiResponse<unknown>) => any) | undefined;
914
+ }>, {
915
+ visible: Ref<boolean, boolean>;
916
+ loading: Ref<boolean, boolean>;
917
+ nodeLoading: Ref<boolean, boolean>;
918
+ assigneeLoading: Ref<boolean, boolean>;
919
+ startNodeList: Ref< {
920
+ [x: string]: unknown;
921
+ id: string;
922
+ activityId?: string | undefined;
923
+ activityName?: string | undefined;
924
+ flowElementType?: string | undefined;
925
+ assignees?: (string | {
926
+ [x: string]: unknown;
927
+ name: string;
928
+ userId?: string | undefined;
929
+ })[] | undefined;
930
+ }[], FlowNode[] | {
931
+ [x: string]: unknown;
932
+ id: string;
933
+ activityId?: string | undefined;
934
+ activityName?: string | undefined;
935
+ flowElementType?: string | undefined;
936
+ assignees?: (string | {
937
+ [x: string]: unknown;
938
+ name: string;
939
+ userId?: string | undefined;
940
+ })[] | undefined;
941
+ }[]>;
942
+ selectedActivityId: Ref<string, string>;
943
+ selectedAssigneeId: Ref<string, string>;
944
+ open: () => Promise<void>;
945
+ close: () => void;
946
+ getStartNodes: () => Promise<{
947
+ [x: string]: unknown;
948
+ id: string;
949
+ activityId?: string | undefined;
950
+ activityName?: string | undefined;
951
+ flowElementType?: string | undefined;
952
+ assignees?: (string | {
953
+ [x: string]: unknown;
954
+ name: string;
955
+ userId?: string | undefined;
956
+ })[] | undefined;
957
+ }[]>;
958
+ assembleData: (targetNode?: FlowNode, assigneeId?: Id) => {
959
+ workId: Id;
960
+ flowNodeAssignee: {
961
+ activityId: string;
962
+ assignees: {
963
+ name: string;
964
+ userId: string;
965
+ }[];
966
+ };
967
+ variables: {};
968
+ };
969
+ jump: (formData?: Record<string, unknown>) => Promise<ApiResponse<unknown>>;
970
+ }, {}, {}, {}, {
971
+ processInstanceId: Id;
972
+ workId: Id;
973
+ dealUser: {
974
+ [key: string]: unknown;
975
+ id?: Id;
976
+ userId?: Id;
977
+ name?: string;
978
+ };
979
+ modelValue: boolean;
980
+ showTrigger: boolean;
981
+ dialogTitle: string;
982
+ dialogWidth: string;
983
+ }>;
984
+ __isFragment?: never;
985
+ __isTeleport?: never;
986
+ __isSuspense?: never;
987
+ } & ComponentOptionsBase<Readonly<{
988
+ processDefinitionId: Id;
989
+ workId?: Id;
990
+ processInstanceId?: Id;
991
+ dealUser?: {
992
+ [key: string]: unknown;
993
+ id?: Id;
994
+ userId?: Id;
995
+ name?: string;
996
+ };
997
+ modelValue?: boolean;
998
+ showTrigger?: boolean;
999
+ dialogTitle?: string;
1000
+ dialogWidth?: string;
1001
+ }> & Readonly<{
1002
+ onClick?: (() => any) | undefined;
1003
+ onError?: ((error: unknown) => any) | undefined;
1004
+ onClose?: (() => any) | undefined;
1005
+ "onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
1006
+ onOpen?: (() => any) | undefined;
1007
+ onBeforeJump?: ((data: Record<string, unknown>) => any) | undefined;
1008
+ onAfterJump?: ((result: ApiResponse<unknown>) => any) | undefined;
1009
+ }>, {
1010
+ visible: Ref<boolean, boolean>;
1011
+ loading: Ref<boolean, boolean>;
1012
+ nodeLoading: Ref<boolean, boolean>;
1013
+ assigneeLoading: Ref<boolean, boolean>;
1014
+ startNodeList: Ref< {
1015
+ [x: string]: unknown;
1016
+ id: string;
1017
+ activityId?: string | undefined;
1018
+ activityName?: string | undefined;
1019
+ flowElementType?: string | undefined;
1020
+ assignees?: (string | {
1021
+ [x: string]: unknown;
1022
+ name: string;
1023
+ userId?: string | undefined;
1024
+ })[] | undefined;
1025
+ }[], FlowNode[] | {
1026
+ [x: string]: unknown;
1027
+ id: string;
1028
+ activityId?: string | undefined;
1029
+ activityName?: string | undefined;
1030
+ flowElementType?: string | undefined;
1031
+ assignees?: (string | {
1032
+ [x: string]: unknown;
1033
+ name: string;
1034
+ userId?: string | undefined;
1035
+ })[] | undefined;
1036
+ }[]>;
1037
+ selectedActivityId: Ref<string, string>;
1038
+ selectedAssigneeId: Ref<string, string>;
1039
+ open: () => Promise<void>;
1040
+ close: () => void;
1041
+ getStartNodes: () => Promise<{
1042
+ [x: string]: unknown;
1043
+ id: string;
1044
+ activityId?: string | undefined;
1045
+ activityName?: string | undefined;
1046
+ flowElementType?: string | undefined;
1047
+ assignees?: (string | {
1048
+ [x: string]: unknown;
1049
+ name: string;
1050
+ userId?: string | undefined;
1051
+ })[] | undefined;
1052
+ }[]>;
1053
+ assembleData: (targetNode?: FlowNode, assigneeId?: Id) => {
1054
+ workId: Id;
1055
+ flowNodeAssignee: {
1056
+ activityId: string;
1057
+ assignees: {
1058
+ name: string;
1059
+ userId: string;
1060
+ }[];
1061
+ };
1062
+ variables: {};
1063
+ };
1064
+ jump: (formData?: Record<string, unknown>) => Promise<ApiResponse<unknown>>;
1065
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1066
+ click: () => any;
1067
+ error: (error: unknown) => any;
1068
+ close: () => any;
1069
+ "update:modelValue": (visible: boolean) => any;
1070
+ open: () => any;
1071
+ beforeJump: (data: Record<string, unknown>) => any;
1072
+ afterJump: (result: ApiResponse<unknown>) => any;
1073
+ }, string, {
1074
+ processInstanceId: Id;
1075
+ workId: Id;
1076
+ dealUser: {
1077
+ [key: string]: unknown;
1078
+ id?: Id;
1079
+ userId?: Id;
1080
+ name?: string;
1081
+ };
1082
+ modelValue: boolean;
1083
+ showTrigger: boolean;
1084
+ dialogTitle: string;
1085
+ dialogWidth: string;
1086
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1087
+ $slots: {
1088
+ default?(_: {}): any;
1089
+ };
1090
+ })>;
1091
+
1092
+ export declare const flowMonitorLine: (data: {
1093
+ processInstanceId: string;
1094
+ fetchFlowNodeState: boolean;
1095
+ }) => Promise<ApiResponse<unknown>>;
1096
+
1097
+ export declare interface FlowNode {
1098
+ id: string;
1099
+ activityId?: string;
1100
+ activityName?: string;
1101
+ flowElementType?: string;
1102
+ /** 接口历史上同时返回过字符串数组和对象数组,因此两种格式均兼容。 */
1103
+ assignees?: Array<Assignee | string>;
1104
+ [key: string]: unknown;
1105
+ }
1106
+
1107
+ export declare interface FlowNodeAssignee {
1108
+ activityId: string;
1109
+ assignees: Assignee[];
1110
+ }
1111
+
1112
+ export declare const FlowSend: ComponentWithInstall< {
1113
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
1114
+ processDefinitionId: Id;
1115
+ activity: {
1116
+ activityId: string;
1117
+ activityName?: string;
1118
+ [key: string]: unknown;
1119
+ };
1120
+ workId: Id;
1121
+ processInstanceId?: Id;
1122
+ variables?: Record<string, unknown>;
1123
+ dealUser?: {
1124
+ id?: Id;
1125
+ userId?: Id;
1126
+ name?: string;
1127
+ };
1128
+ bpmnXml?: string;
1129
+ showTrigger?: boolean;
1130
+ dialogTitle?: string;
1131
+ dialogWidth?: string;
1132
+ defaultOpinion?: string;
1133
+ modelValue?: boolean;
1134
+ }> & Readonly<{
1135
+ onClick?: (() => any) | undefined;
1136
+ onError?: ((error: unknown) => any) | undefined;
1137
+ onClose?: (() => any) | undefined;
1138
+ "onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
1139
+ onOpen?: (() => any) | undefined;
1140
+ onNextNodesResolved?: ((nodes: FlowNode[]) => any) | undefined;
1141
+ onBeforeSend?: ((data: Record<string, unknown>) => any) | undefined;
1142
+ onAfterSend?: ((result: ApiResponse<unknown>) => any) | undefined;
1143
+ }>, {
1144
+ visible: Ref<boolean, boolean>;
1145
+ loading: Ref<boolean, boolean>;
1146
+ nodeLoading: Ref<boolean, boolean>;
1147
+ nodeResolved: Ref<boolean, boolean>;
1148
+ nextNodes: Ref< {
1149
+ [x: string]: unknown;
1150
+ id: string;
1151
+ activityId?: string | undefined;
1152
+ activityName?: string | undefined;
1153
+ flowElementType?: string | undefined;
1154
+ assignees?: (string | {
1155
+ [x: string]: unknown;
1156
+ name: string;
1157
+ userId?: string | undefined;
1158
+ })[] | undefined;
1159
+ }[], FlowNode[] | {
1160
+ [x: string]: unknown;
1161
+ id: string;
1162
+ activityId?: string | undefined;
1163
+ activityName?: string | undefined;
1164
+ flowElementType?: string | undefined;
1165
+ assignees?: (string | {
1166
+ [x: string]: unknown;
1167
+ name: string;
1168
+ userId?: string | undefined;
1169
+ })[] | undefined;
1170
+ }[]>;
1171
+ open: () => Promise<void>;
1172
+ close: () => void;
1173
+ getNextNode: (variables?: Record<string, unknown>) => Promise<{
1174
+ [x: string]: unknown;
1175
+ id: string;
1176
+ activityId?: string | undefined;
1177
+ activityName?: string | undefined;
1178
+ flowElementType?: string | undefined;
1179
+ assignees?: (string | {
1180
+ [x: string]: unknown;
1181
+ name: string;
1182
+ userId?: string | undefined;
1183
+ })[] | undefined;
1184
+ }[]>;
1185
+ assembleData: () => {
1186
+ workId: Id;
1187
+ flowNodeAssignees: FlowNodeAssignee[];
1188
+ variables: Record<string, unknown>;
1189
+ opinion: string;
1190
+ };
1191
+ send: (formData?: ReturnType<() => {
1192
+ workId: Id;
1193
+ flowNodeAssignees: FlowNodeAssignee[];
1194
+ variables: Record<string, unknown>;
1195
+ opinion: string;
1196
+ }>) => Promise<ApiResponse<unknown>>;
1197
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1198
+ click: () => any;
1199
+ error: (error: unknown) => any;
1200
+ close: () => any;
1201
+ "update:modelValue": (visible: boolean) => any;
1202
+ open: () => any;
1203
+ nextNodesResolved: (nodes: FlowNode[]) => any;
1204
+ beforeSend: (data: Record<string, unknown>) => any;
1205
+ afterSend: (result: ApiResponse<unknown>) => any;
1206
+ }, PublicProps, {
1207
+ processInstanceId: Id;
1208
+ dealUser: {
1209
+ id?: Id;
1210
+ userId?: Id;
1211
+ name?: string;
1212
+ };
1213
+ modelValue: boolean;
1214
+ showTrigger: boolean;
1215
+ dialogTitle: string;
1216
+ dialogWidth: string;
1217
+ variables: Record<string, unknown>;
1218
+ bpmnXml: string;
1219
+ defaultOpinion: string;
1220
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
1221
+ assigneeTreeRef: unknown;
1222
+ }, HTMLDivElement, ComponentProvideOptions, {
1223
+ P: {};
1224
+ B: {};
1225
+ D: {};
1226
+ C: {};
1227
+ M: {};
1228
+ Defaults: {};
1229
+ }, Readonly<{
1230
+ processDefinitionId: Id;
1231
+ activity: {
1232
+ activityId: string;
1233
+ activityName?: string;
1234
+ [key: string]: unknown;
1235
+ };
1236
+ workId: Id;
1237
+ processInstanceId?: Id;
1238
+ variables?: Record<string, unknown>;
1239
+ dealUser?: {
1240
+ id?: Id;
1241
+ userId?: Id;
1242
+ name?: string;
1243
+ };
1244
+ bpmnXml?: string;
1245
+ showTrigger?: boolean;
1246
+ dialogTitle?: string;
1247
+ dialogWidth?: string;
1248
+ defaultOpinion?: string;
1249
+ modelValue?: boolean;
1250
+ }> & Readonly<{
1251
+ onClick?: (() => any) | undefined;
1252
+ onError?: ((error: unknown) => any) | undefined;
1253
+ onClose?: (() => any) | undefined;
1254
+ "onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
1255
+ onOpen?: (() => any) | undefined;
1256
+ onNextNodesResolved?: ((nodes: FlowNode[]) => any) | undefined;
1257
+ onBeforeSend?: ((data: Record<string, unknown>) => any) | undefined;
1258
+ onAfterSend?: ((result: ApiResponse<unknown>) => any) | undefined;
1259
+ }>, {
1260
+ visible: Ref<boolean, boolean>;
1261
+ loading: Ref<boolean, boolean>;
1262
+ nodeLoading: Ref<boolean, boolean>;
1263
+ nodeResolved: Ref<boolean, boolean>;
1264
+ nextNodes: Ref< {
1265
+ [x: string]: unknown;
1266
+ id: string;
1267
+ activityId?: string | undefined;
1268
+ activityName?: string | undefined;
1269
+ flowElementType?: string | undefined;
1270
+ assignees?: (string | {
1271
+ [x: string]: unknown;
1272
+ name: string;
1273
+ userId?: string | undefined;
1274
+ })[] | undefined;
1275
+ }[], FlowNode[] | {
1276
+ [x: string]: unknown;
1277
+ id: string;
1278
+ activityId?: string | undefined;
1279
+ activityName?: string | undefined;
1280
+ flowElementType?: string | undefined;
1281
+ assignees?: (string | {
1282
+ [x: string]: unknown;
1283
+ name: string;
1284
+ userId?: string | undefined;
1285
+ })[] | undefined;
1286
+ }[]>;
1287
+ open: () => Promise<void>;
1288
+ close: () => void;
1289
+ getNextNode: (variables?: Record<string, unknown>) => Promise<{
1290
+ [x: string]: unknown;
1291
+ id: string;
1292
+ activityId?: string | undefined;
1293
+ activityName?: string | undefined;
1294
+ flowElementType?: string | undefined;
1295
+ assignees?: (string | {
1296
+ [x: string]: unknown;
1297
+ name: string;
1298
+ userId?: string | undefined;
1299
+ })[] | undefined;
1300
+ }[]>;
1301
+ assembleData: () => {
1302
+ workId: Id;
1303
+ flowNodeAssignees: FlowNodeAssignee[];
1304
+ variables: Record<string, unknown>;
1305
+ opinion: string;
1306
+ };
1307
+ send: (formData?: ReturnType<() => {
1308
+ workId: Id;
1309
+ flowNodeAssignees: FlowNodeAssignee[];
1310
+ variables: Record<string, unknown>;
1311
+ opinion: string;
1312
+ }>) => Promise<ApiResponse<unknown>>;
1313
+ }, {}, {}, {}, {
1314
+ processInstanceId: Id;
1315
+ dealUser: {
1316
+ id?: Id;
1317
+ userId?: Id;
1318
+ name?: string;
1319
+ };
1320
+ modelValue: boolean;
1321
+ showTrigger: boolean;
1322
+ dialogTitle: string;
1323
+ dialogWidth: string;
1324
+ variables: Record<string, unknown>;
1325
+ bpmnXml: string;
1326
+ defaultOpinion: string;
1327
+ }>;
1328
+ __isFragment?: never;
1329
+ __isTeleport?: never;
1330
+ __isSuspense?: never;
1331
+ } & ComponentOptionsBase<Readonly<{
1332
+ processDefinitionId: Id;
1333
+ activity: {
1334
+ activityId: string;
1335
+ activityName?: string;
1336
+ [key: string]: unknown;
1337
+ };
1338
+ workId: Id;
1339
+ processInstanceId?: Id;
1340
+ variables?: Record<string, unknown>;
1341
+ dealUser?: {
1342
+ id?: Id;
1343
+ userId?: Id;
1344
+ name?: string;
1345
+ };
1346
+ bpmnXml?: string;
1347
+ showTrigger?: boolean;
1348
+ dialogTitle?: string;
1349
+ dialogWidth?: string;
1350
+ defaultOpinion?: string;
1351
+ modelValue?: boolean;
1352
+ }> & Readonly<{
1353
+ onClick?: (() => any) | undefined;
1354
+ onError?: ((error: unknown) => any) | undefined;
1355
+ onClose?: (() => any) | undefined;
1356
+ "onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
1357
+ onOpen?: (() => any) | undefined;
1358
+ onNextNodesResolved?: ((nodes: FlowNode[]) => any) | undefined;
1359
+ onBeforeSend?: ((data: Record<string, unknown>) => any) | undefined;
1360
+ onAfterSend?: ((result: ApiResponse<unknown>) => any) | undefined;
1361
+ }>, {
1362
+ visible: Ref<boolean, boolean>;
1363
+ loading: Ref<boolean, boolean>;
1364
+ nodeLoading: Ref<boolean, boolean>;
1365
+ nodeResolved: Ref<boolean, boolean>;
1366
+ nextNodes: Ref< {
1367
+ [x: string]: unknown;
1368
+ id: string;
1369
+ activityId?: string | undefined;
1370
+ activityName?: string | undefined;
1371
+ flowElementType?: string | undefined;
1372
+ assignees?: (string | {
1373
+ [x: string]: unknown;
1374
+ name: string;
1375
+ userId?: string | undefined;
1376
+ })[] | undefined;
1377
+ }[], FlowNode[] | {
1378
+ [x: string]: unknown;
1379
+ id: string;
1380
+ activityId?: string | undefined;
1381
+ activityName?: string | undefined;
1382
+ flowElementType?: string | undefined;
1383
+ assignees?: (string | {
1384
+ [x: string]: unknown;
1385
+ name: string;
1386
+ userId?: string | undefined;
1387
+ })[] | undefined;
1388
+ }[]>;
1389
+ open: () => Promise<void>;
1390
+ close: () => void;
1391
+ getNextNode: (variables?: Record<string, unknown>) => Promise<{
1392
+ [x: string]: unknown;
1393
+ id: string;
1394
+ activityId?: string | undefined;
1395
+ activityName?: string | undefined;
1396
+ flowElementType?: string | undefined;
1397
+ assignees?: (string | {
1398
+ [x: string]: unknown;
1399
+ name: string;
1400
+ userId?: string | undefined;
1401
+ })[] | undefined;
1402
+ }[]>;
1403
+ assembleData: () => {
1404
+ workId: Id;
1405
+ flowNodeAssignees: FlowNodeAssignee[];
1406
+ variables: Record<string, unknown>;
1407
+ opinion: string;
1408
+ };
1409
+ send: (formData?: ReturnType<() => {
1410
+ workId: Id;
1411
+ flowNodeAssignees: FlowNodeAssignee[];
1412
+ variables: Record<string, unknown>;
1413
+ opinion: string;
1414
+ }>) => Promise<ApiResponse<unknown>>;
1415
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1416
+ click: () => any;
1417
+ error: (error: unknown) => any;
1418
+ close: () => any;
1419
+ "update:modelValue": (visible: boolean) => any;
1420
+ open: () => any;
1421
+ nextNodesResolved: (nodes: FlowNode[]) => any;
1422
+ beforeSend: (data: Record<string, unknown>) => any;
1423
+ afterSend: (result: ApiResponse<unknown>) => any;
1424
+ }, string, {
1425
+ processInstanceId: Id;
1426
+ dealUser: {
1427
+ id?: Id;
1428
+ userId?: Id;
1429
+ name?: string;
1430
+ };
1431
+ modelValue: boolean;
1432
+ showTrigger: boolean;
1433
+ dialogTitle: string;
1434
+ dialogWidth: string;
1435
+ variables: Record<string, unknown>;
1436
+ bpmnXml: string;
1437
+ defaultOpinion: string;
1438
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1439
+ $slots: {
1440
+ default?(_: {}): any;
1441
+ };
1442
+ })>;
1443
+
1444
+ export declare const flowStartNodeList: (data: {
1445
+ processDefinitionId: string;
1446
+ }) => Promise<ApiResponse<unknown>>;
1447
+
1448
+ declare const FlowstreamUIPlus: Plugin_2;
1449
+ export { FlowstreamUIPlus }
1450
+ export default FlowstreamUIPlus;
1451
+
1452
+ export declare const flowTrack: (data: {
1453
+ processInstanceId: string;
1454
+ }) => Promise<ApiResponse<unknown>>;
1455
+
1456
+ export declare const getOptList: (data: {
1457
+ workId: Id;
1458
+ }) => Promise<ApiResponse<unknown>>;
1459
+
1460
+ export declare type Id = string | number;
1461
+
1462
+ export declare const jumpTask: (data: Data) => Promise<ApiResponse<unknown>>;
1463
+
1464
+ /** @deprecated 请使用 FlowstreamUIPlus。 */
1465
+ export declare const LeadalFlowVue3: ObjectPlugin<any[]>;
1466
+
1467
+ export declare const nextSendNode: (data: Data) => Promise<ApiResponse<unknown>>;
1468
+
1469
+ export declare const nodeAssistant: (data: Data) => Promise<ApiResponse<unknown>>;
1470
+
1471
+ export declare interface PageConfig {
1472
+ currentPage: number;
1473
+ pageSize: number;
1474
+ total: number;
1475
+ }
1476
+
1477
+ export declare const recycleTask: (data: {
1478
+ workId: Id;
1479
+ }) => Promise<ApiResponse<unknown>>;
1480
+
1481
+ export declare const revocationTask: (data: {
1482
+ workId: Id;
1483
+ }) => Promise<ApiResponse<unknown>>;
1484
+
1485
+ export declare const rollbackTask: (data: {
1486
+ workId: Id;
1487
+ } & Data) => Promise<ApiResponse<unknown>>;
1488
+
1489
+ export declare const saveDraft: (data: Data) => Promise<ApiResponse<unknown>>;
1490
+
1491
+ export declare const sendTask: (data: {
1492
+ workId: Id;
1493
+ flowNodeAssignees: FlowNodeAssignee[];
1494
+ variables?: Data;
1495
+ opinion?: string;
1496
+ }) => Promise<ApiResponse<unknown>>;
1497
+
1498
+ export declare const startDraft: (data: Data) => Promise<ApiResponse<unknown>>;
1499
+
1500
+ export declare const startNodes: (data: {
1501
+ processDefinitionId: Id;
1502
+ }) => Promise<ApiResponse<unknown>>;
1503
+
1504
+ export declare const suspendFlow: (data: {
1505
+ processInstanceIds: Id[];
1506
+ }) => Promise<ApiResponse<unknown>>;
1507
+
1508
+ export declare interface TableColumn<Row = Record<string, unknown>> {
1509
+ label: string;
1510
+ prop: string;
1511
+ width?: string | number;
1512
+ minWidth?: string | number;
1513
+ sortable?: boolean | string;
1514
+ showTooltip?: boolean;
1515
+ formatter?: (row: Row, column?: unknown, value?: unknown, index?: number) => unknown;
1516
+ hiddenCondition?: (column: TableColumn<Row>) => boolean;
1517
+ }
1518
+
1519
+ export declare const terminateFlow: (data: {
1520
+ workId: Id;
1521
+ }) => Promise<ApiResponse<unknown>>;
1522
+
1523
+ export declare const todoTaskList: (data: Data) => Promise<ApiResponse<unknown>>;
1524
+
1525
+ export declare interface WorkflowActionItem {
1526
+ name: string;
1527
+ label: string;
1528
+ [key: string]: unknown;
1529
+ }
1530
+
1531
+ /** @deprecated 请使用 FlowstreamUIPlus。 */
1532
+ export declare const WorkflowComponentsVue3: ObjectPlugin<any[]>;
1533
+
1534
+ export declare const workflowHttp: AxiosInstance;
1535
+
1536
+ export declare interface WorkflowPluginOptions {
1537
+ baseURL?: string;
1538
+ timeout?: number;
1539
+ getToken?: () => string | undefined;
1540
+ }
1541
+
1542
+ export { }