@leadal/flowstream-ui-plus 0.0.10 → 0.0.12
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/README.md +73 -7
- package/dist/flowstream-ui-plus.js +5229 -4711
- package/dist/flowstream-ui-plus.umd.cjs +15 -15
- package/dist/index.d.ts +84 -57
- package/dist/style.css +1 -1
- package/docs//346/216/245/345/205/245/346/226/207/346/241/243.md +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -89,6 +89,8 @@ export declare interface Assignee {
|
|
|
89
89
|
/** /server/assignment/event/query 请求参数。 */
|
|
90
90
|
export declare interface AssignmentQueryArgs {
|
|
91
91
|
processDefinitionId: string;
|
|
92
|
+
/** 流程实例 ID;动态路由以流程启动者为基准时,后端据此读取 drafter。 */
|
|
93
|
+
processInstanceId?: string;
|
|
92
94
|
activityId: string;
|
|
93
95
|
parentId: string;
|
|
94
96
|
ntype: string;
|
|
@@ -99,6 +101,27 @@ export declare interface AssignmentQueryArgs {
|
|
|
99
101
|
/** 查询办理人时转发给扩展路由 apiUrl 的业务参数。 */
|
|
100
102
|
export declare type AssignmentQueryParams = Record<string, unknown>;
|
|
101
103
|
|
|
104
|
+
/** 发送前检查下一办理环节及办理人是否唯一。 */
|
|
105
|
+
export declare const checkSend: (data: CheckSendArgs) => Promise<ApiResponse<CheckSendInfo>>;
|
|
106
|
+
|
|
107
|
+
/** /server/task/event/checkSend 请求参数。 */
|
|
108
|
+
export declare interface CheckSendArgs {
|
|
109
|
+
processDefinitionId: string;
|
|
110
|
+
activityId: string;
|
|
111
|
+
processInstanceId?: string;
|
|
112
|
+
userId: string;
|
|
113
|
+
extendParams?: AssignmentQueryParams;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** 发送前唯一下一节点、唯一办理人检查结果。 */
|
|
117
|
+
export declare interface CheckSendInfo {
|
|
118
|
+
matched: boolean;
|
|
119
|
+
activityId?: string | null;
|
|
120
|
+
activityName?: string | null;
|
|
121
|
+
userId?: string | null;
|
|
122
|
+
userName?: string | null;
|
|
123
|
+
}
|
|
124
|
+
|
|
102
125
|
export declare const claimTask: (data: {
|
|
103
126
|
workId: Id;
|
|
104
127
|
assignee: Id;
|
|
@@ -207,6 +230,7 @@ export declare const flowApi: {
|
|
|
207
230
|
procdefId: string;
|
|
208
231
|
}) => Promise<string>;
|
|
209
232
|
sendTask: (data: FlowTaskSendData) => Promise<ApiResponse<unknown>>;
|
|
233
|
+
checkSend: (data: CheckSendArgs) => Promise<ApiResponse<CheckSendInfo>>;
|
|
210
234
|
getFirstHandleNodes: (data: FirstHandleNodesGetArgs) => Promise<ApiResponse<FlowNode[]>>;
|
|
211
235
|
flowStartNodeList: (data: FirstHandleNodesGetArgs) => Promise<ApiResponse<FlowNode[]>>;
|
|
212
236
|
nodeAssistant: (data: AssignmentQueryArgs) => Promise<ApiResponse<unknown>>;
|
|
@@ -511,6 +535,44 @@ export declare interface FlowDefinitionListGetArgs {
|
|
|
511
535
|
[key: string]: unknown;
|
|
512
536
|
}
|
|
513
537
|
|
|
538
|
+
export declare const FlowDefinitionPreview: ComponentWithInstall<DefineComponent< {
|
|
539
|
+
processDefinitionId?: string;
|
|
540
|
+
bpmnXml?: string;
|
|
541
|
+
fitViewport?: boolean;
|
|
542
|
+
}, {
|
|
543
|
+
refresh: () => Promise<void>;
|
|
544
|
+
fitViewport: () => void;
|
|
545
|
+
viewer: ShallowRef< {
|
|
546
|
+
importXML(xml: string): Promise<{
|
|
547
|
+
warnings: unknown[];
|
|
548
|
+
}>;
|
|
549
|
+
get(name: string): any;
|
|
550
|
+
destroy(): void;
|
|
551
|
+
} | undefined, {
|
|
552
|
+
importXML(xml: string): Promise<{
|
|
553
|
+
warnings: unknown[];
|
|
554
|
+
}>;
|
|
555
|
+
get(name: string): any;
|
|
556
|
+
destroy(): void;
|
|
557
|
+
} | undefined>;
|
|
558
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
559
|
+
error: (error: unknown) => any;
|
|
560
|
+
loaded: () => any;
|
|
561
|
+
}, string, PublicProps, Readonly<{
|
|
562
|
+
processDefinitionId?: string;
|
|
563
|
+
bpmnXml?: string;
|
|
564
|
+
fitViewport?: boolean;
|
|
565
|
+
}> & Readonly<{
|
|
566
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
567
|
+
onLoaded?: (() => any) | undefined;
|
|
568
|
+
}>, {
|
|
569
|
+
bpmnXml: string;
|
|
570
|
+
processDefinitionId: string;
|
|
571
|
+
fitViewport: boolean;
|
|
572
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
573
|
+
canvasRef: HTMLDivElement;
|
|
574
|
+
}, HTMLDivElement>>;
|
|
575
|
+
|
|
514
576
|
export declare const FlowDiagram: ComponentWithInstall<DefineComponent< {
|
|
515
577
|
processDefinitionId: string;
|
|
516
578
|
processInstanceId: string;
|
|
@@ -1372,6 +1434,7 @@ onAfterSend?: ((result: ApiResponse<unknown>, data: FlowTaskSendData) => any) |
|
|
|
1372
1434
|
visible: Ref<boolean, boolean>;
|
|
1373
1435
|
effectiveZIndex: Ref<number | undefined, number | undefined>;
|
|
1374
1436
|
loading: Ref<boolean, boolean>;
|
|
1437
|
+
checkingSend: Ref<boolean, boolean>;
|
|
1375
1438
|
nodeLoading: Ref<boolean, boolean>;
|
|
1376
1439
|
nodeResolved: Ref<boolean, boolean>;
|
|
1377
1440
|
nextNodes: Ref< {
|
|
@@ -1423,12 +1486,7 @@ flowNodeAssignees: FlowNodeAssignee[];
|
|
|
1423
1486
|
variables: Record<string, unknown>;
|
|
1424
1487
|
opinion: string;
|
|
1425
1488
|
};
|
|
1426
|
-
send: (formData?:
|
|
1427
|
-
workId: Id;
|
|
1428
|
-
flowNodeAssignees: FlowNodeAssignee[];
|
|
1429
|
-
variables: Record<string, unknown>;
|
|
1430
|
-
opinion: string;
|
|
1431
|
-
}>) => Promise<ApiResponse<unknown>>;
|
|
1489
|
+
send: (formData?: FlowTaskSendData) => Promise<ApiResponse<unknown>>;
|
|
1432
1490
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1433
1491
|
click: () => any;
|
|
1434
1492
|
beforeSend: (data: FlowTaskSendData) => any;
|
|
@@ -4409,6 +4467,7 @@ onAfterSend?: ((result: ApiResponse<unknown>, data: FlowTaskSendData) => any) |
|
|
|
4409
4467
|
visible: Ref<boolean, boolean>;
|
|
4410
4468
|
effectiveZIndex: Ref<number | undefined, number | undefined>;
|
|
4411
4469
|
loading: Ref<boolean, boolean>;
|
|
4470
|
+
checkingSend: Ref<boolean, boolean>;
|
|
4412
4471
|
nodeLoading: Ref<boolean, boolean>;
|
|
4413
4472
|
nodeResolved: Ref<boolean, boolean>;
|
|
4414
4473
|
nextNodes: Ref< {
|
|
@@ -4460,12 +4519,7 @@ flowNodeAssignees: FlowNodeAssignee[];
|
|
|
4460
4519
|
variables: Record<string, unknown>;
|
|
4461
4520
|
opinion: string;
|
|
4462
4521
|
};
|
|
4463
|
-
send: (formData?:
|
|
4464
|
-
workId: Id;
|
|
4465
|
-
flowNodeAssignees: FlowNodeAssignee[];
|
|
4466
|
-
variables: Record<string, unknown>;
|
|
4467
|
-
opinion: string;
|
|
4468
|
-
}>) => Promise<ApiResponse<unknown>>;
|
|
4522
|
+
send: (formData?: FlowTaskSendData) => Promise<ApiResponse<unknown>>;
|
|
4469
4523
|
}, {}, {}, {}, {
|
|
4470
4524
|
dialogTitle: string;
|
|
4471
4525
|
dialogWidth: string;
|
|
@@ -4525,6 +4579,7 @@ onAfterSend?: ((result: ApiResponse<unknown>, data: FlowTaskSendData) => any) |
|
|
|
4525
4579
|
visible: Ref<boolean, boolean>;
|
|
4526
4580
|
effectiveZIndex: Ref<number | undefined, number | undefined>;
|
|
4527
4581
|
loading: Ref<boolean, boolean>;
|
|
4582
|
+
checkingSend: Ref<boolean, boolean>;
|
|
4528
4583
|
nodeLoading: Ref<boolean, boolean>;
|
|
4529
4584
|
nodeResolved: Ref<boolean, boolean>;
|
|
4530
4585
|
nextNodes: Ref< {
|
|
@@ -4576,12 +4631,7 @@ flowNodeAssignees: FlowNodeAssignee[];
|
|
|
4576
4631
|
variables: Record<string, unknown>;
|
|
4577
4632
|
opinion: string;
|
|
4578
4633
|
};
|
|
4579
|
-
send: (formData?:
|
|
4580
|
-
workId: Id;
|
|
4581
|
-
flowNodeAssignees: FlowNodeAssignee[];
|
|
4582
|
-
variables: Record<string, unknown>;
|
|
4583
|
-
opinion: string;
|
|
4584
|
-
}>) => Promise<ApiResponse<unknown>>;
|
|
4634
|
+
send: (formData?: FlowTaskSendData) => Promise<ApiResponse<unknown>>;
|
|
4585
4635
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4586
4636
|
click: () => any;
|
|
4587
4637
|
beforeSend: (data: FlowTaskSendData) => any;
|
|
@@ -4642,6 +4692,7 @@ declare namespace flowSimulation {
|
|
|
4642
4692
|
terminateFlow,
|
|
4643
4693
|
downloadBpmn,
|
|
4644
4694
|
sendTask,
|
|
4695
|
+
checkSend,
|
|
4645
4696
|
getFirstHandleNodes,
|
|
4646
4697
|
flowStartNodeList,
|
|
4647
4698
|
nodeAssistant,
|
|
@@ -7663,6 +7714,7 @@ onAfterSend?: ((result: ApiResponse<unknown>, data: FlowTaskSendData) => any) |
|
|
|
7663
7714
|
visible: Ref<boolean, boolean>;
|
|
7664
7715
|
effectiveZIndex: Ref<number | undefined, number | undefined>;
|
|
7665
7716
|
loading: Ref<boolean, boolean>;
|
|
7717
|
+
checkingSend: Ref<boolean, boolean>;
|
|
7666
7718
|
nodeLoading: Ref<boolean, boolean>;
|
|
7667
7719
|
nodeResolved: Ref<boolean, boolean>;
|
|
7668
7720
|
nextNodes: Ref< {
|
|
@@ -7714,12 +7766,7 @@ flowNodeAssignees: FlowNodeAssignee[];
|
|
|
7714
7766
|
variables: Record<string, unknown>;
|
|
7715
7767
|
opinion: string;
|
|
7716
7768
|
};
|
|
7717
|
-
send: (formData?:
|
|
7718
|
-
workId: Id;
|
|
7719
|
-
flowNodeAssignees: FlowNodeAssignee[];
|
|
7720
|
-
variables: Record<string, unknown>;
|
|
7721
|
-
opinion: string;
|
|
7722
|
-
}>) => Promise<ApiResponse<unknown>>;
|
|
7769
|
+
send: (formData?: FlowTaskSendData) => Promise<ApiResponse<unknown>>;
|
|
7723
7770
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7724
7771
|
click: () => any;
|
|
7725
7772
|
beforeSend: (data: FlowTaskSendData) => any;
|
|
@@ -7817,10 +7864,11 @@ onClose?: (() => any) | undefined;
|
|
|
7817
7864
|
onError?: ((error: unknown) => any) | undefined;
|
|
7818
7865
|
onNextNodesResolved?: ((nodes: FlowNode[]) => any) | undefined;
|
|
7819
7866
|
onAfterSend?: ((result: ApiResponse<unknown>, data: FlowTaskSendData) => any) | undefined;
|
|
7820
|
-
}>, "send" | "open" | "close" | "visible" | "effectiveZIndex" | "loading" | "nodeLoading" | "assembleData" | "nodeResolved" | "nextNodes" | "getNextNode" | ("dialogTitle" | "dialogWidth" | "defaultOpinion" | "bpmnXml" | "assignmentQueryParams" | "variables" | "processInstanceId" | "dealUser" | "modelValue" | "showTrigger" | "forceSingleAssignee" | "deleteInstanceOnCancel")> & {
|
|
7867
|
+
}>, "send" | "open" | "close" | "visible" | "effectiveZIndex" | "loading" | "nodeLoading" | "assembleData" | "checkingSend" | "nodeResolved" | "nextNodes" | "getNextNode" | ("dialogTitle" | "dialogWidth" | "defaultOpinion" | "bpmnXml" | "assignmentQueryParams" | "variables" | "processInstanceId" | "dealUser" | "modelValue" | "showTrigger" | "forceSingleAssignee" | "deleteInstanceOnCancel")> & {
|
|
7821
7868
|
visible: boolean;
|
|
7822
7869
|
effectiveZIndex: number | undefined;
|
|
7823
7870
|
loading: boolean;
|
|
7871
|
+
checkingSend: boolean;
|
|
7824
7872
|
nodeLoading: boolean;
|
|
7825
7873
|
nodeResolved: boolean;
|
|
7826
7874
|
nextNodes: {
|
|
@@ -7859,12 +7907,7 @@ flowNodeAssignees: FlowNodeAssignee[];
|
|
|
7859
7907
|
variables: Record<string, unknown>;
|
|
7860
7908
|
opinion: string;
|
|
7861
7909
|
};
|
|
7862
|
-
send: (formData?:
|
|
7863
|
-
workId: Id;
|
|
7864
|
-
flowNodeAssignees: FlowNodeAssignee[];
|
|
7865
|
-
variables: Record<string, unknown>;
|
|
7866
|
-
opinion: string;
|
|
7867
|
-
}>) => Promise<ApiResponse<unknown>>;
|
|
7910
|
+
send: (formData?: FlowTaskSendData) => Promise<ApiResponse<unknown>>;
|
|
7868
7911
|
} & {} & ComponentCustomProperties & {} & {
|
|
7869
7912
|
$slots: {
|
|
7870
7913
|
default?(_: {}): any;
|
|
@@ -10865,6 +10908,7 @@ onAfterSend?: ((result: ApiResponse<unknown>, data: FlowTaskSendData) => any) |
|
|
|
10865
10908
|
visible: Ref<boolean, boolean>;
|
|
10866
10909
|
effectiveZIndex: Ref<number | undefined, number | undefined>;
|
|
10867
10910
|
loading: Ref<boolean, boolean>;
|
|
10911
|
+
checkingSend: Ref<boolean, boolean>;
|
|
10868
10912
|
nodeLoading: Ref<boolean, boolean>;
|
|
10869
10913
|
nodeResolved: Ref<boolean, boolean>;
|
|
10870
10914
|
nextNodes: Ref< {
|
|
@@ -10916,12 +10960,7 @@ flowNodeAssignees: FlowNodeAssignee[];
|
|
|
10916
10960
|
variables: Record<string, unknown>;
|
|
10917
10961
|
opinion: string;
|
|
10918
10962
|
};
|
|
10919
|
-
send: (formData?:
|
|
10920
|
-
workId: Id;
|
|
10921
|
-
flowNodeAssignees: FlowNodeAssignee[];
|
|
10922
|
-
variables: Record<string, unknown>;
|
|
10923
|
-
opinion: string;
|
|
10924
|
-
}>) => Promise<ApiResponse<unknown>>;
|
|
10963
|
+
send: (formData?: FlowTaskSendData) => Promise<ApiResponse<unknown>>;
|
|
10925
10964
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10926
10965
|
click: () => any;
|
|
10927
10966
|
beforeSend: (data: FlowTaskSendData) => any;
|
|
@@ -11019,10 +11058,11 @@ onClose?: (() => any) | undefined;
|
|
|
11019
11058
|
onError?: ((error: unknown) => any) | undefined;
|
|
11020
11059
|
onNextNodesResolved?: ((nodes: FlowNode[]) => any) | undefined;
|
|
11021
11060
|
onAfterSend?: ((result: ApiResponse<unknown>, data: FlowTaskSendData) => any) | undefined;
|
|
11022
|
-
}>, "send" | "open" | "close" | "visible" | "effectiveZIndex" | "loading" | "nodeLoading" | "assembleData" | "nodeResolved" | "nextNodes" | "getNextNode" | ("dialogTitle" | "dialogWidth" | "defaultOpinion" | "bpmnXml" | "assignmentQueryParams" | "variables" | "processInstanceId" | "dealUser" | "modelValue" | "showTrigger" | "forceSingleAssignee" | "deleteInstanceOnCancel")> & {
|
|
11061
|
+
}>, "send" | "open" | "close" | "visible" | "effectiveZIndex" | "loading" | "nodeLoading" | "assembleData" | "checkingSend" | "nodeResolved" | "nextNodes" | "getNextNode" | ("dialogTitle" | "dialogWidth" | "defaultOpinion" | "bpmnXml" | "assignmentQueryParams" | "variables" | "processInstanceId" | "dealUser" | "modelValue" | "showTrigger" | "forceSingleAssignee" | "deleteInstanceOnCancel")> & {
|
|
11023
11062
|
visible: boolean;
|
|
11024
11063
|
effectiveZIndex: number | undefined;
|
|
11025
11064
|
loading: boolean;
|
|
11065
|
+
checkingSend: boolean;
|
|
11026
11066
|
nodeLoading: boolean;
|
|
11027
11067
|
nodeResolved: boolean;
|
|
11028
11068
|
nextNodes: {
|
|
@@ -11061,12 +11101,7 @@ flowNodeAssignees: FlowNodeAssignee[];
|
|
|
11061
11101
|
variables: Record<string, unknown>;
|
|
11062
11102
|
opinion: string;
|
|
11063
11103
|
};
|
|
11064
|
-
send: (formData?:
|
|
11065
|
-
workId: Id;
|
|
11066
|
-
flowNodeAssignees: FlowNodeAssignee[];
|
|
11067
|
-
variables: Record<string, unknown>;
|
|
11068
|
-
opinion: string;
|
|
11069
|
-
}>) => Promise<ApiResponse<unknown>>;
|
|
11104
|
+
send: (formData?: FlowTaskSendData) => Promise<ApiResponse<unknown>>;
|
|
11070
11105
|
} & {} & ComponentCustomProperties & {} & {
|
|
11071
11106
|
$slots: {
|
|
11072
11107
|
default?(_: {}): any;
|
|
@@ -14094,6 +14129,7 @@ onAfterSend?: ((result: ApiResponse<unknown>, data: FlowTaskSendData) => any) |
|
|
|
14094
14129
|
visible: Ref<boolean, boolean>;
|
|
14095
14130
|
effectiveZIndex: Ref<number | undefined, number | undefined>;
|
|
14096
14131
|
loading: Ref<boolean, boolean>;
|
|
14132
|
+
checkingSend: Ref<boolean, boolean>;
|
|
14097
14133
|
nodeLoading: Ref<boolean, boolean>;
|
|
14098
14134
|
nodeResolved: Ref<boolean, boolean>;
|
|
14099
14135
|
nextNodes: Ref< {
|
|
@@ -14145,12 +14181,7 @@ flowNodeAssignees: FlowNodeAssignee[];
|
|
|
14145
14181
|
variables: Record<string, unknown>;
|
|
14146
14182
|
opinion: string;
|
|
14147
14183
|
};
|
|
14148
|
-
send: (formData?:
|
|
14149
|
-
workId: Id;
|
|
14150
|
-
flowNodeAssignees: FlowNodeAssignee[];
|
|
14151
|
-
variables: Record<string, unknown>;
|
|
14152
|
-
opinion: string;
|
|
14153
|
-
}>) => Promise<ApiResponse<unknown>>;
|
|
14184
|
+
send: (formData?: FlowTaskSendData) => Promise<ApiResponse<unknown>>;
|
|
14154
14185
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
14155
14186
|
click: () => any;
|
|
14156
14187
|
beforeSend: (data: FlowTaskSendData) => any;
|
|
@@ -14248,10 +14279,11 @@ onClose?: (() => any) | undefined;
|
|
|
14248
14279
|
onError?: ((error: unknown) => any) | undefined;
|
|
14249
14280
|
onNextNodesResolved?: ((nodes: FlowNode[]) => any) | undefined;
|
|
14250
14281
|
onAfterSend?: ((result: ApiResponse<unknown>, data: FlowTaskSendData) => any) | undefined;
|
|
14251
|
-
}>, "send" | "open" | "close" | "visible" | "effectiveZIndex" | "loading" | "nodeLoading" | "assembleData" | "nodeResolved" | "nextNodes" | "getNextNode" | ("dialogTitle" | "dialogWidth" | "defaultOpinion" | "bpmnXml" | "assignmentQueryParams" | "variables" | "processInstanceId" | "dealUser" | "modelValue" | "showTrigger" | "forceSingleAssignee" | "deleteInstanceOnCancel")> & {
|
|
14282
|
+
}>, "send" | "open" | "close" | "visible" | "effectiveZIndex" | "loading" | "nodeLoading" | "assembleData" | "checkingSend" | "nodeResolved" | "nextNodes" | "getNextNode" | ("dialogTitle" | "dialogWidth" | "defaultOpinion" | "bpmnXml" | "assignmentQueryParams" | "variables" | "processInstanceId" | "dealUser" | "modelValue" | "showTrigger" | "forceSingleAssignee" | "deleteInstanceOnCancel")> & {
|
|
14252
14283
|
visible: boolean;
|
|
14253
14284
|
effectiveZIndex: number | undefined;
|
|
14254
14285
|
loading: boolean;
|
|
14286
|
+
checkingSend: boolean;
|
|
14255
14287
|
nodeLoading: boolean;
|
|
14256
14288
|
nodeResolved: boolean;
|
|
14257
14289
|
nextNodes: {
|
|
@@ -14290,12 +14322,7 @@ flowNodeAssignees: FlowNodeAssignee[];
|
|
|
14290
14322
|
variables: Record<string, unknown>;
|
|
14291
14323
|
opinion: string;
|
|
14292
14324
|
};
|
|
14293
|
-
send: (formData?:
|
|
14294
|
-
workId: Id;
|
|
14295
|
-
flowNodeAssignees: FlowNodeAssignee[];
|
|
14296
|
-
variables: Record<string, unknown>;
|
|
14297
|
-
opinion: string;
|
|
14298
|
-
}>) => Promise<ApiResponse<unknown>>;
|
|
14325
|
+
send: (formData?: FlowTaskSendData) => Promise<ApiResponse<unknown>>;
|
|
14299
14326
|
} & {} & ComponentCustomProperties & {} & {
|
|
14300
14327
|
$slots: {
|
|
14301
14328
|
default?(_: {}): any;
|