@robot-admin/naive-ui-components 0.35.0 → 0.36.0
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/CHANGELOG.md +9 -0
- package/README.md +7 -5
- package/README_EN.md +7 -5
- package/THIRD_PARTY_NOTICES.md +10 -1
- package/dist/C_DataPicker.cjs +1 -1
- package/dist/C_DataPicker.css +63 -48
- package/dist/C_DataPicker.d.cts +3 -2
- package/dist/C_DataPicker.d.ts +3 -2
- package/dist/C_DataPicker.js +1 -1
- package/dist/C_DataPicker2.cjs +1 -0
- package/dist/C_DataPicker2.js +1 -0
- package/dist/C_Date.d.cts +1 -1
- package/dist/C_Date.d.ts +1 -1
- package/dist/C_Form.d.ts +1 -1
- package/dist/C_FormModal.d.ts +1 -1
- package/dist/C_Select.d.cts +1 -1
- package/dist/C_Select.d.ts +1 -1
- package/dist/C_Table.d.cts +2 -2
- package/dist/C_Table.d.ts +6 -3
- package/dist/C_Tree.d.cts +2 -1
- package/dist/C_Tree.d.ts +5 -2
- package/dist/C_UserPicker.cjs +1 -0
- package/dist/C_UserPicker.css +75 -0
- package/dist/C_UserPicker.d.cts +3 -0
- package/dist/C_UserPicker.d.ts +7 -0
- package/dist/C_UserPicker.js +1 -0
- package/dist/C_WorkFlow.css +635 -355
- package/dist/C_WorkFlow.d.cts +2 -2
- package/dist/C_WorkFlow.d.ts +7 -2
- package/dist/C_WorkFlow2.cjs +1 -1
- package/dist/C_WorkFlow2.js +1 -1
- package/dist/NodeConfigModal.cjs +1 -0
- package/dist/NodeConfigModal.js +1 -0
- package/dist/conditions.cjs +1 -0
- package/dist/conditions.js +1 -0
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants3.d.cts +3 -3
- package/dist/constants3.d.ts +3 -3
- package/dist/constants4.d.cts +2 -2
- package/dist/constants4.d.ts +2 -2
- package/dist/constants5.d.cts +2 -2
- package/dist/constants5.d.ts +2 -2
- package/dist/data2.d.cts +5 -5
- package/dist/data2.d.ts +5 -5
- package/dist/editors.d.cts +12 -237
- package/dist/editors.d.ts +12 -237
- package/dist/formField.cjs +1 -1
- package/dist/formField.d.cts +7 -1190
- package/dist/formField.d.ts +7 -1190
- package/dist/formField.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +12 -9
- package/dist/index.d.ts +13 -9
- package/dist/index.js +1 -1
- package/dist/index.vue.d.cts +4 -4
- package/dist/index.vue.d.ts +4 -4
- package/dist/index10.vue.d.ts +3 -3
- package/dist/index11.vue.d.cts +3 -3
- package/dist/index11.vue.d.ts +1 -1
- package/dist/index12.vue.d.cts +1 -1
- package/dist/index13.vue.d.ts +4 -4
- package/dist/index14.vue.d.cts +4 -4
- package/dist/index16.vue.d.ts +2 -2
- package/dist/index17.vue.d.cts +2 -2
- package/dist/index17.vue.d.ts +5 -5
- package/dist/index18.vue.d.cts +5 -5
- package/dist/index19.vue.d.ts +1 -1
- package/dist/index20.vue.d.cts +1 -1
- package/dist/index20.vue.d.ts +1 -1
- package/dist/index21.vue.d.cts +1 -1
- package/dist/index21.vue.d.ts +2 -2
- package/dist/index22.vue.d.cts +2 -2
- package/dist/index24.vue.d.cts +1 -1
- package/dist/index24.vue.d.ts +1 -1
- package/dist/index26.vue.d.cts +1 -1
- package/dist/index26.vue.d.ts +1 -1
- package/dist/index27.vue.d.cts +1 -1
- package/dist/index27.vue.d.ts +1 -1
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index30.vue.d.cts +1 -1
- package/dist/index30.vue.d.ts +1 -1
- package/dist/index31.vue.d.cts +2 -2
- package/dist/index31.vue.d.ts +2 -2
- package/dist/index32.vue.d.cts +2 -2
- package/dist/index32.vue.d.ts +2 -2
- package/dist/index4.vue.d.cts +5 -5
- package/dist/index4.vue.d.ts +5 -5
- package/dist/index8.vue.d.ts +2 -2
- package/dist/index9.vue.d.cts +2 -2
- package/dist/mapUtils.d.cts +2 -2
- package/dist/mapUtils.d.ts +2 -2
- package/dist/resolver.cjs +1 -1
- package/dist/resolver.d.cts +1 -1
- package/dist/resolver.d.ts +1 -1
- package/dist/resolver.js +1 -1
- package/dist/source.cjs +1 -0
- package/dist/source.d.cts +37 -0
- package/dist/source.d.ts +37 -0
- package/dist/source.js +1 -0
- package/dist/style.css +774 -402
- package/dist/types3.d.ts +1223 -53
- package/dist/types4.d.cts +1223 -53
- package/dist/types4.d.ts +55 -45
- package/dist/types5.d.cts +55 -45
- package/dist/types5.d.ts +50 -0
- package/dist/types6.d.cts +50 -0
- package/dist/types6.d.ts +284 -0
- package/dist/types7.d.cts +284 -0
- package/dist/useCollapsePanel.d.cts +5 -5
- package/dist/useCollapsePanel.d.ts +5 -5
- package/dist/useComponentLocale.cjs +1 -1
- package/dist/useComponentLocale.js +1 -1
- package/dist/useCropperCore.d.cts +9 -9
- package/dist/useCropperCore.d.ts +9 -9
- package/dist/useDynamicFormState.d.cts +3 -3
- package/dist/useDynamicFormState.d.ts +3 -3
- package/dist/useEdgeInteraction.d.cts +2 -2
- package/dist/useEdgeInteraction.d.ts +2 -2
- package/dist/useFullscreen.d.cts +1 -1
- package/dist/useFullscreen.d.ts +1 -1
- package/dist/useInfiniteScroll.d.cts +4 -4
- package/dist/useInfiniteScroll.d.ts +4 -4
- package/dist/useQRCode.d.cts +5 -5
- package/dist/useQRCode.d.ts +5 -5
- package/dist/useSignatureHistory.d.cts +4 -4
- package/dist/useSignatureHistory.d.ts +4 -4
- package/dist/useSplitResize.d.cts +6 -6
- package/dist/useSplitResize.d.ts +6 -6
- package/dist/useWorkflowValidation.d.cts +137 -15
- package/dist/useWorkflowValidation.d.ts +137 -15
- package/dist/verification.d.cts +1 -1
- package/dist/verification.d.ts +1 -1
- package/docs/components.en.md +8 -7
- package/docs/components.md +8 -7
- package/docs/guides/user-picker.md +124 -0
- package/docs/guides/workflow-people.md +60 -0
- package/docs/guides/workflow.md +153 -0
- package/docs/people-workflow-review-20261114.md +75 -0
- package/licenses/VueFlow.txt +20 -0
- package/package.json +1 -1
|
@@ -1,16 +1,34 @@
|
|
|
1
|
+
import { p as DataPickerValue } from "./types4.cjs";
|
|
2
|
+
import { l as UserPickerSource, o as UserPickerOrganization, r as UserPickerFields } from "./types7.cjs";
|
|
1
3
|
import * as vue from "vue";
|
|
2
|
-
import { Component, Ref } from "vue";
|
|
4
|
+
import { Component, Ref, VNodeChild } from "vue";
|
|
3
5
|
import { Connection, EdgeChange, EdgeUpdateEvent, NodeChange } from "@vue-flow/core";
|
|
4
6
|
|
|
7
|
+
//#region src/components/C_WorkFlow/people.d.ts
|
|
8
|
+
/** 部门范围通过稳定编码传递;是否包含下级由来源的业务规则决定。 */
|
|
9
|
+
interface WorkflowPeopleFilters {
|
|
10
|
+
departmentId?: DataPickerValue;
|
|
11
|
+
includeDescendants?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** 工作流只消费人员来源,不绑定组织服务、登录态或后端权限协议。 */
|
|
14
|
+
interface WorkflowPeopleOptions {
|
|
15
|
+
source: UserPickerSource<User, string, WorkflowPeopleFilters>;
|
|
16
|
+
organization?: UserPickerOrganization<Department, WorkflowPeopleFilters>;
|
|
17
|
+
fields?: UserPickerFields<User>;
|
|
18
|
+
fixedFilters?: WorkflowPeopleFilters;
|
|
19
|
+
rowCheckable?: (user: User) => boolean;
|
|
20
|
+
maxSelection?: number;
|
|
21
|
+
scope?: string | number;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
5
24
|
//#region src/components/C_WorkFlow/types.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* 工作流相关类型定义
|
|
8
|
-
*/
|
|
9
25
|
interface User {
|
|
10
26
|
id: string;
|
|
11
27
|
name: string;
|
|
12
28
|
avatar?: string;
|
|
13
29
|
department: string;
|
|
30
|
+
/** 优先按稳定部门键关联;未提供时仅兼容唯一部门名称。 */
|
|
31
|
+
departmentId?: string;
|
|
14
32
|
role: string;
|
|
15
33
|
email?: string;
|
|
16
34
|
phone?: string;
|
|
@@ -33,6 +51,28 @@ interface Condition {
|
|
|
33
51
|
field: string;
|
|
34
52
|
operator: 'equals' | 'not_equals' | 'greater_than' | 'less_than' | 'contains';
|
|
35
53
|
value: string;
|
|
54
|
+
/** 显式分支目标;不传时保留历史未绑定条件的读取行为。 */
|
|
55
|
+
targetNodeId?: string;
|
|
56
|
+
/** 默认分支不求值,仅作为设计态兜底声明。 */
|
|
57
|
+
isDefault?: boolean;
|
|
58
|
+
/** 非负整数;未指定时按条件数组的顺序展示。 */
|
|
59
|
+
priority?: number;
|
|
60
|
+
}
|
|
61
|
+
interface WorkflowConditionField {
|
|
62
|
+
key: string;
|
|
63
|
+
label: string;
|
|
64
|
+
type?: 'text' | 'number' | 'boolean' | 'date';
|
|
65
|
+
operators?: readonly Condition['operator'][];
|
|
66
|
+
}
|
|
67
|
+
interface WorkflowNodeRenderContext {
|
|
68
|
+
node: WorkflowNode;
|
|
69
|
+
readonly: boolean;
|
|
70
|
+
edit: () => void;
|
|
71
|
+
remove: () => void;
|
|
72
|
+
}
|
|
73
|
+
interface WorkflowSlots {
|
|
74
|
+
/** 替换节点内容,连接端口及编辑控件仍由组件管理。 */
|
|
75
|
+
node?: (context: WorkflowNodeRenderContext) => VNodeChild;
|
|
36
76
|
}
|
|
37
77
|
type NodeStatus = 'pending' | 'approved' | 'rejected' | 'active' | 'completed';
|
|
38
78
|
type NodeType = 'start' | 'approval' | 'copy' | 'condition';
|
|
@@ -141,6 +181,12 @@ interface WorkflowProps {
|
|
|
141
181
|
/** 是否允许循环连接,默认 true。无环审批流程应设为 false;执行规则由业务后端校验。 */
|
|
142
182
|
allowCycles?: boolean;
|
|
143
183
|
theme?: 'light' | 'dark';
|
|
184
|
+
/** 显式条件字段目录;未提供继续使用旧字段。 */
|
|
185
|
+
conditionFields?: readonly WorkflowConditionField[];
|
|
186
|
+
/** 可用节点工具;未传保留原菜单。 */
|
|
187
|
+
allowedNodeTypes?: readonly NodeType[];
|
|
188
|
+
/** 人员候选与组织来源,按需打开配置面板时加载。 */
|
|
189
|
+
people?: WorkflowPeopleOptions;
|
|
144
190
|
}
|
|
145
191
|
interface WorkflowEmits {
|
|
146
192
|
'update:modelValue': [value: WorkflowData];
|
|
@@ -246,7 +292,8 @@ interface WorkflowHistory {
|
|
|
246
292
|
}
|
|
247
293
|
//#endregion
|
|
248
294
|
//#region src/components/C_WorkFlow/index.vue.d.ts
|
|
249
|
-
|
|
295
|
+
type __VLS_Slots = WorkflowSlots;
|
|
296
|
+
declare const __VLS_base: vue.DefineComponent<WorkflowProps, {
|
|
250
297
|
validateWorkflow: () => ValidationError[];
|
|
251
298
|
getCurrentWorkflowData: () => WorkflowData;
|
|
252
299
|
saveWorkflow: () => void;
|
|
@@ -262,25 +309,30 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
|
|
|
262
309
|
"node-click": (node: WorkflowNode<NodeType>) => any;
|
|
263
310
|
"update:modelValue": (value: WorkflowData) => any;
|
|
264
311
|
change: (value: WorkflowData) => any;
|
|
265
|
-
"edge-click": (edge: WorkflowEdge) => any;
|
|
266
312
|
save: (data: WorkflowData) => any;
|
|
267
313
|
"validate-error": (errors: ValidationError[]) => any;
|
|
314
|
+
"edge-click": (edge: WorkflowEdge) => any;
|
|
268
315
|
}, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
|
|
269
316
|
"onNode-click"?: ((node: WorkflowNode<NodeType>) => any) | undefined;
|
|
270
317
|
"onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
|
|
271
318
|
onChange?: ((value: WorkflowData) => any) | undefined;
|
|
272
|
-
"onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
|
|
273
319
|
onSave?: ((data: WorkflowData) => any) | undefined;
|
|
274
320
|
"onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
|
|
321
|
+
"onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
|
|
275
322
|
}>, {
|
|
276
323
|
readonly: boolean;
|
|
277
|
-
theme: "light" | "dark";
|
|
278
324
|
users: User[];
|
|
279
325
|
roles: Role[];
|
|
280
326
|
departments: Department[];
|
|
281
327
|
allowCycles: boolean;
|
|
282
328
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
329
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
283
330
|
declare const _default: typeof __VLS_export;
|
|
331
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
332
|
+
new (): {
|
|
333
|
+
$slots: S;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
284
336
|
//#endregion
|
|
285
337
|
//#region src/components/C_WorkFlow/composables/useWorkflowNodes.d.ts
|
|
286
338
|
type EmitFn$1 = <Event extends keyof WorkflowEmits>(event: Event, ...args: WorkflowEmits[Event]) => void;
|
|
@@ -314,6 +366,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
314
366
|
name: string;
|
|
315
367
|
avatar?: string | undefined;
|
|
316
368
|
department: string;
|
|
369
|
+
departmentId?: string | undefined;
|
|
317
370
|
role: string;
|
|
318
371
|
email?: string | undefined;
|
|
319
372
|
phone?: string | undefined;
|
|
@@ -344,6 +397,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
344
397
|
name: string;
|
|
345
398
|
avatar?: string | undefined;
|
|
346
399
|
department: string;
|
|
400
|
+
departmentId?: string | undefined;
|
|
347
401
|
role: string;
|
|
348
402
|
email?: string | undefined;
|
|
349
403
|
phone?: string | undefined;
|
|
@@ -357,6 +411,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
357
411
|
name: string;
|
|
358
412
|
avatar?: string | undefined;
|
|
359
413
|
department: string;
|
|
414
|
+
departmentId?: string | undefined;
|
|
360
415
|
role: string;
|
|
361
416
|
email?: string | undefined;
|
|
362
417
|
phone?: string | undefined;
|
|
@@ -387,6 +442,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
387
442
|
name: string;
|
|
388
443
|
avatar?: string | undefined;
|
|
389
444
|
department: string;
|
|
445
|
+
departmentId?: string | undefined;
|
|
390
446
|
role: string;
|
|
391
447
|
email?: string | undefined;
|
|
392
448
|
phone?: string | undefined;
|
|
@@ -399,6 +455,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
399
455
|
name: string;
|
|
400
456
|
avatar?: string | undefined;
|
|
401
457
|
department: string;
|
|
458
|
+
departmentId?: string | undefined;
|
|
402
459
|
role: string;
|
|
403
460
|
email?: string | undefined;
|
|
404
461
|
phone?: string | undefined;
|
|
@@ -430,6 +487,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
430
487
|
field: string;
|
|
431
488
|
operator: "equals" | "not_equals" | "greater_than" | "less_than" | "contains";
|
|
432
489
|
value: string;
|
|
490
|
+
targetNodeId?: string | undefined;
|
|
491
|
+
isDefault?: boolean | undefined;
|
|
492
|
+
priority?: number | undefined;
|
|
433
493
|
}[] | undefined;
|
|
434
494
|
title: string;
|
|
435
495
|
status?: NodeStatus | undefined;
|
|
@@ -439,6 +499,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
439
499
|
name: string;
|
|
440
500
|
avatar?: string | undefined;
|
|
441
501
|
department: string;
|
|
502
|
+
departmentId?: string | undefined;
|
|
442
503
|
role: string;
|
|
443
504
|
email?: string | undefined;
|
|
444
505
|
phone?: string | undefined;
|
|
@@ -472,6 +533,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
472
533
|
name: string;
|
|
473
534
|
avatar?: string | undefined;
|
|
474
535
|
department: string;
|
|
536
|
+
departmentId?: string | undefined;
|
|
475
537
|
role: string;
|
|
476
538
|
email?: string | undefined;
|
|
477
539
|
phone?: string | undefined;
|
|
@@ -502,6 +564,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
502
564
|
name: string;
|
|
503
565
|
avatar?: string | undefined;
|
|
504
566
|
department: string;
|
|
567
|
+
departmentId?: string | undefined;
|
|
505
568
|
role: string;
|
|
506
569
|
email?: string | undefined;
|
|
507
570
|
phone?: string | undefined;
|
|
@@ -515,6 +578,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
515
578
|
name: string;
|
|
516
579
|
avatar?: string | undefined;
|
|
517
580
|
department: string;
|
|
581
|
+
departmentId?: string | undefined;
|
|
518
582
|
role: string;
|
|
519
583
|
email?: string | undefined;
|
|
520
584
|
phone?: string | undefined;
|
|
@@ -545,6 +609,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
545
609
|
name: string;
|
|
546
610
|
avatar?: string | undefined;
|
|
547
611
|
department: string;
|
|
612
|
+
departmentId?: string | undefined;
|
|
548
613
|
role: string;
|
|
549
614
|
email?: string | undefined;
|
|
550
615
|
phone?: string | undefined;
|
|
@@ -557,6 +622,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
557
622
|
name: string;
|
|
558
623
|
avatar?: string | undefined;
|
|
559
624
|
department: string;
|
|
625
|
+
departmentId?: string | undefined;
|
|
560
626
|
role: string;
|
|
561
627
|
email?: string | undefined;
|
|
562
628
|
phone?: string | undefined;
|
|
@@ -588,6 +654,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
588
654
|
field: string;
|
|
589
655
|
operator: "equals" | "not_equals" | "greater_than" | "less_than" | "contains";
|
|
590
656
|
value: string;
|
|
657
|
+
targetNodeId?: string | undefined;
|
|
658
|
+
isDefault?: boolean | undefined;
|
|
659
|
+
priority?: number | undefined;
|
|
591
660
|
}[] | undefined;
|
|
592
661
|
title: string;
|
|
593
662
|
status?: NodeStatus | undefined;
|
|
@@ -597,6 +666,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
597
666
|
name: string;
|
|
598
667
|
avatar?: string | undefined;
|
|
599
668
|
department: string;
|
|
669
|
+
departmentId?: string | undefined;
|
|
600
670
|
role: string;
|
|
601
671
|
email?: string | undefined;
|
|
602
672
|
phone?: string | undefined;
|
|
@@ -683,6 +753,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
683
753
|
name: string;
|
|
684
754
|
avatar?: string | undefined;
|
|
685
755
|
department: string;
|
|
756
|
+
departmentId?: string | undefined;
|
|
686
757
|
role: string;
|
|
687
758
|
email?: string | undefined;
|
|
688
759
|
phone?: string | undefined;
|
|
@@ -713,6 +784,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
713
784
|
name: string;
|
|
714
785
|
avatar?: string | undefined;
|
|
715
786
|
department: string;
|
|
787
|
+
departmentId?: string | undefined;
|
|
716
788
|
role: string;
|
|
717
789
|
email?: string | undefined;
|
|
718
790
|
phone?: string | undefined;
|
|
@@ -726,6 +798,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
726
798
|
name: string;
|
|
727
799
|
avatar?: string | undefined;
|
|
728
800
|
department: string;
|
|
801
|
+
departmentId?: string | undefined;
|
|
729
802
|
role: string;
|
|
730
803
|
email?: string | undefined;
|
|
731
804
|
phone?: string | undefined;
|
|
@@ -756,6 +829,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
756
829
|
name: string;
|
|
757
830
|
avatar?: string | undefined;
|
|
758
831
|
department: string;
|
|
832
|
+
departmentId?: string | undefined;
|
|
759
833
|
role: string;
|
|
760
834
|
email?: string | undefined;
|
|
761
835
|
phone?: string | undefined;
|
|
@@ -768,6 +842,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
768
842
|
name: string;
|
|
769
843
|
avatar?: string | undefined;
|
|
770
844
|
department: string;
|
|
845
|
+
departmentId?: string | undefined;
|
|
771
846
|
role: string;
|
|
772
847
|
email?: string | undefined;
|
|
773
848
|
phone?: string | undefined;
|
|
@@ -799,6 +874,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
799
874
|
field: string;
|
|
800
875
|
operator: "equals" | "not_equals" | "greater_than" | "less_than" | "contains";
|
|
801
876
|
value: string;
|
|
877
|
+
targetNodeId?: string | undefined;
|
|
878
|
+
isDefault?: boolean | undefined;
|
|
879
|
+
priority?: number | undefined;
|
|
802
880
|
}[] | undefined;
|
|
803
881
|
title: string;
|
|
804
882
|
status?: NodeStatus | undefined;
|
|
@@ -808,6 +886,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
808
886
|
name: string;
|
|
809
887
|
avatar?: string | undefined;
|
|
810
888
|
department: string;
|
|
889
|
+
departmentId?: string | undefined;
|
|
811
890
|
role: string;
|
|
812
891
|
email?: string | undefined;
|
|
813
892
|
phone?: string | undefined;
|
|
@@ -841,6 +920,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
841
920
|
name: string;
|
|
842
921
|
avatar?: string | undefined;
|
|
843
922
|
department: string;
|
|
923
|
+
departmentId?: string | undefined;
|
|
844
924
|
role: string;
|
|
845
925
|
email?: string | undefined;
|
|
846
926
|
phone?: string | undefined;
|
|
@@ -871,6 +951,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
871
951
|
name: string;
|
|
872
952
|
avatar?: string | undefined;
|
|
873
953
|
department: string;
|
|
954
|
+
departmentId?: string | undefined;
|
|
874
955
|
role: string;
|
|
875
956
|
email?: string | undefined;
|
|
876
957
|
phone?: string | undefined;
|
|
@@ -884,6 +965,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
884
965
|
name: string;
|
|
885
966
|
avatar?: string | undefined;
|
|
886
967
|
department: string;
|
|
968
|
+
departmentId?: string | undefined;
|
|
887
969
|
role: string;
|
|
888
970
|
email?: string | undefined;
|
|
889
971
|
phone?: string | undefined;
|
|
@@ -914,6 +996,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
914
996
|
name: string;
|
|
915
997
|
avatar?: string | undefined;
|
|
916
998
|
department: string;
|
|
999
|
+
departmentId?: string | undefined;
|
|
917
1000
|
role: string;
|
|
918
1001
|
email?: string | undefined;
|
|
919
1002
|
phone?: string | undefined;
|
|
@@ -926,6 +1009,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
926
1009
|
name: string;
|
|
927
1010
|
avatar?: string | undefined;
|
|
928
1011
|
department: string;
|
|
1012
|
+
departmentId?: string | undefined;
|
|
929
1013
|
role: string;
|
|
930
1014
|
email?: string | undefined;
|
|
931
1015
|
phone?: string | undefined;
|
|
@@ -957,6 +1041,9 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
957
1041
|
field: string;
|
|
958
1042
|
operator: "equals" | "not_equals" | "greater_than" | "less_than" | "contains";
|
|
959
1043
|
value: string;
|
|
1044
|
+
targetNodeId?: string | undefined;
|
|
1045
|
+
isDefault?: boolean | undefined;
|
|
1046
|
+
priority?: number | undefined;
|
|
960
1047
|
}[] | undefined;
|
|
961
1048
|
title: string;
|
|
962
1049
|
status?: NodeStatus | undefined;
|
|
@@ -966,6 +1053,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
966
1053
|
name: string;
|
|
967
1054
|
avatar?: string | undefined;
|
|
968
1055
|
department: string;
|
|
1056
|
+
departmentId?: string | undefined;
|
|
969
1057
|
role: string;
|
|
970
1058
|
email?: string | undefined;
|
|
971
1059
|
phone?: string | undefined;
|
|
@@ -981,6 +1069,11 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
981
1069
|
}>;
|
|
982
1070
|
commitCanvasChange: () => void;
|
|
983
1071
|
handleCanvasChanges: (changes: NodeChange[] | EdgeChange[]) => void;
|
|
1072
|
+
handleCanvasKeydown: (event: KeyboardEvent) => void;
|
|
1073
|
+
canConnect: (connection: Connection, excludingEdgeId?: string) => boolean;
|
|
1074
|
+
validateCanvasConnection: (connection: Connection | {
|
|
1075
|
+
id: string;
|
|
1076
|
+
}) => boolean;
|
|
984
1077
|
connectNodes: (connection: Connection) => void;
|
|
985
1078
|
updateConnection: ({
|
|
986
1079
|
edge,
|
|
@@ -996,6 +1089,7 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
|
|
|
996
1089
|
handleConfigSave: (configData: Record<string, unknown>) => void;
|
|
997
1090
|
resetNodes: () => void;
|
|
998
1091
|
getCurrentWorkflowData: () => WorkflowData;
|
|
1092
|
+
getNodeSnapshot: (id: string) => WorkflowNode | undefined;
|
|
999
1093
|
fitView: () => void;
|
|
1000
1094
|
deleteNode: (nodeId: string) => void;
|
|
1001
1095
|
};
|
|
@@ -1008,10 +1102,7 @@ interface DetailItem {
|
|
|
1008
1102
|
type: DetailItemType;
|
|
1009
1103
|
label: string;
|
|
1010
1104
|
value?: string;
|
|
1011
|
-
users?:
|
|
1012
|
-
name: string;
|
|
1013
|
-
department?: string;
|
|
1014
|
-
}[];
|
|
1105
|
+
users?: User[];
|
|
1015
1106
|
modeKey?: string;
|
|
1016
1107
|
}
|
|
1017
1108
|
/** 流程步骤(已排序) */
|
|
@@ -1065,6 +1156,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1065
1156
|
name: string;
|
|
1066
1157
|
avatar?: string | undefined;
|
|
1067
1158
|
department: string;
|
|
1159
|
+
departmentId?: string | undefined;
|
|
1068
1160
|
role: string;
|
|
1069
1161
|
email?: string | undefined;
|
|
1070
1162
|
phone?: string | undefined;
|
|
@@ -1095,6 +1187,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1095
1187
|
name: string;
|
|
1096
1188
|
avatar?: string | undefined;
|
|
1097
1189
|
department: string;
|
|
1190
|
+
departmentId?: string | undefined;
|
|
1098
1191
|
role: string;
|
|
1099
1192
|
email?: string | undefined;
|
|
1100
1193
|
phone?: string | undefined;
|
|
@@ -1108,6 +1201,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1108
1201
|
name: string;
|
|
1109
1202
|
avatar?: string | undefined;
|
|
1110
1203
|
department: string;
|
|
1204
|
+
departmentId?: string | undefined;
|
|
1111
1205
|
role: string;
|
|
1112
1206
|
email?: string | undefined;
|
|
1113
1207
|
phone?: string | undefined;
|
|
@@ -1138,6 +1232,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1138
1232
|
name: string;
|
|
1139
1233
|
avatar?: string | undefined;
|
|
1140
1234
|
department: string;
|
|
1235
|
+
departmentId?: string | undefined;
|
|
1141
1236
|
role: string;
|
|
1142
1237
|
email?: string | undefined;
|
|
1143
1238
|
phone?: string | undefined;
|
|
@@ -1150,6 +1245,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1150
1245
|
name: string;
|
|
1151
1246
|
avatar?: string | undefined;
|
|
1152
1247
|
department: string;
|
|
1248
|
+
departmentId?: string | undefined;
|
|
1153
1249
|
role: string;
|
|
1154
1250
|
email?: string | undefined;
|
|
1155
1251
|
phone?: string | undefined;
|
|
@@ -1181,6 +1277,9 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1181
1277
|
field: string;
|
|
1182
1278
|
operator: "equals" | "not_equals" | "greater_than" | "less_than" | "contains";
|
|
1183
1279
|
value: string;
|
|
1280
|
+
targetNodeId?: string | undefined;
|
|
1281
|
+
isDefault?: boolean | undefined;
|
|
1282
|
+
priority?: number | undefined;
|
|
1184
1283
|
}[] | undefined;
|
|
1185
1284
|
title: string;
|
|
1186
1285
|
status?: NodeStatus | undefined;
|
|
@@ -1190,6 +1289,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1190
1289
|
name: string;
|
|
1191
1290
|
avatar?: string | undefined;
|
|
1192
1291
|
department: string;
|
|
1292
|
+
departmentId?: string | undefined;
|
|
1193
1293
|
role: string;
|
|
1194
1294
|
email?: string | undefined;
|
|
1195
1295
|
phone?: string | undefined;
|
|
@@ -1204,8 +1304,14 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1204
1304
|
label: string;
|
|
1205
1305
|
value?: string | undefined;
|
|
1206
1306
|
users?: {
|
|
1307
|
+
id: string;
|
|
1207
1308
|
name: string;
|
|
1208
|
-
|
|
1309
|
+
avatar?: string | undefined;
|
|
1310
|
+
department: string;
|
|
1311
|
+
departmentId?: string | undefined;
|
|
1312
|
+
role: string;
|
|
1313
|
+
email?: string | undefined;
|
|
1314
|
+
phone?: string | undefined;
|
|
1209
1315
|
}[] | undefined;
|
|
1210
1316
|
modeKey?: string | undefined;
|
|
1211
1317
|
}[];
|
|
@@ -1240,6 +1346,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1240
1346
|
name: string;
|
|
1241
1347
|
avatar?: string | undefined;
|
|
1242
1348
|
department: string;
|
|
1349
|
+
departmentId?: string | undefined;
|
|
1243
1350
|
role: string;
|
|
1244
1351
|
email?: string | undefined;
|
|
1245
1352
|
phone?: string | undefined;
|
|
@@ -1270,6 +1377,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1270
1377
|
name: string;
|
|
1271
1378
|
avatar?: string | undefined;
|
|
1272
1379
|
department: string;
|
|
1380
|
+
departmentId?: string | undefined;
|
|
1273
1381
|
role: string;
|
|
1274
1382
|
email?: string | undefined;
|
|
1275
1383
|
phone?: string | undefined;
|
|
@@ -1283,6 +1391,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1283
1391
|
name: string;
|
|
1284
1392
|
avatar?: string | undefined;
|
|
1285
1393
|
department: string;
|
|
1394
|
+
departmentId?: string | undefined;
|
|
1286
1395
|
role: string;
|
|
1287
1396
|
email?: string | undefined;
|
|
1288
1397
|
phone?: string | undefined;
|
|
@@ -1313,6 +1422,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1313
1422
|
name: string;
|
|
1314
1423
|
avatar?: string | undefined;
|
|
1315
1424
|
department: string;
|
|
1425
|
+
departmentId?: string | undefined;
|
|
1316
1426
|
role: string;
|
|
1317
1427
|
email?: string | undefined;
|
|
1318
1428
|
phone?: string | undefined;
|
|
@@ -1325,6 +1435,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1325
1435
|
name: string;
|
|
1326
1436
|
avatar?: string | undefined;
|
|
1327
1437
|
department: string;
|
|
1438
|
+
departmentId?: string | undefined;
|
|
1328
1439
|
role: string;
|
|
1329
1440
|
email?: string | undefined;
|
|
1330
1441
|
phone?: string | undefined;
|
|
@@ -1356,6 +1467,9 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1356
1467
|
field: string;
|
|
1357
1468
|
operator: "equals" | "not_equals" | "greater_than" | "less_than" | "contains";
|
|
1358
1469
|
value: string;
|
|
1470
|
+
targetNodeId?: string | undefined;
|
|
1471
|
+
isDefault?: boolean | undefined;
|
|
1472
|
+
priority?: number | undefined;
|
|
1359
1473
|
}[] | undefined;
|
|
1360
1474
|
title: string;
|
|
1361
1475
|
status?: NodeStatus | undefined;
|
|
@@ -1365,6 +1479,7 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1365
1479
|
name: string;
|
|
1366
1480
|
avatar?: string | undefined;
|
|
1367
1481
|
department: string;
|
|
1482
|
+
departmentId?: string | undefined;
|
|
1368
1483
|
role: string;
|
|
1369
1484
|
email?: string | undefined;
|
|
1370
1485
|
phone?: string | undefined;
|
|
@@ -1379,8 +1494,14 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
|
|
|
1379
1494
|
label: string;
|
|
1380
1495
|
value?: string | undefined;
|
|
1381
1496
|
users?: {
|
|
1497
|
+
id: string;
|
|
1382
1498
|
name: string;
|
|
1383
|
-
|
|
1499
|
+
avatar?: string | undefined;
|
|
1500
|
+
department: string;
|
|
1501
|
+
departmentId?: string | undefined;
|
|
1502
|
+
role: string;
|
|
1503
|
+
email?: string | undefined;
|
|
1504
|
+
phone?: string | undefined;
|
|
1384
1505
|
}[] | undefined;
|
|
1385
1506
|
modeKey?: string | undefined;
|
|
1386
1507
|
}[];
|
|
@@ -1411,6 +1532,7 @@ interface WorkflowValidationOptions {
|
|
|
1411
1532
|
onValidateError?: (errors: ValidationError[]) => void;
|
|
1412
1533
|
/** 默认允许循环以兼容通用流程;审批业务可显式关闭。 */
|
|
1413
1534
|
allowCycles?: boolean | (() => boolean);
|
|
1535
|
+
conditionFields?: () => readonly WorkflowConditionField[] | undefined;
|
|
1414
1536
|
}
|
|
1415
1537
|
/** 工作流验证 —— 封装流程校验逻辑、错误展示和节点定位 */
|
|
1416
1538
|
declare function useWorkflowValidation(nodes: Ref<WorkflowNode[]>, edges: Ref<WorkflowEdge[]>, vueFlowRef: Ref, options?: WorkflowValidationOptions): {
|
|
@@ -1442,4 +1564,4 @@ declare function useWorkflowValidation(nodes: Ref<WorkflowNode[]>, edges: Ref<Wo
|
|
|
1442
1564
|
resetValidation: () => void;
|
|
1443
1565
|
};
|
|
1444
1566
|
//#endregion
|
|
1445
|
-
export {
|
|
1567
|
+
export { WorkflowHistory as A, WorkflowApiResponse as C, WorkflowEdge as D, WorkflowData as E, WorkflowSlots as F, WorkflowStats as I, WorkflowUtils as L, WorkflowNodeDataMap as M, WorkflowNodeRenderContext as N, WorkflowEmits as O, WorkflowProps as P, WorkflowPeopleFilters as R, ValidationErrorType as S, WorkflowConfig as T, NodeType as _, ApprovalMode as a, User as b, Condition as c, Department as d, MenuPosition as f, NodeTemplate as g, NodeStatus as h, _default as i, WorkflowNode as j, WorkflowExpose as k, ConditionNodeData as l, NodeData as m, useWorkflowPreview as n, ApprovalNodeData as o, NodeConfigFormData as p, useWorkflowNodes as r, BaseNodeData as s, useWorkflowValidation as t, CopyNodeData as u, Role as v, WorkflowConditionField as w, ValidationError as x, StartNodeData as y, WorkflowPeopleOptions as z };
|