@robot-admin/naive-ui-components 0.20.0 → 0.21.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.
Files changed (178) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +5 -5
  3. package/README_EN.md +5 -5
  4. package/SECURITY.md +39 -0
  5. package/dist/C_AntV.css +31 -31
  6. package/dist/C_AntV2.cjs +1 -1
  7. package/dist/C_AntV2.js +1 -1
  8. package/dist/C_Chat.css +90 -90
  9. package/dist/C_Chat2.cjs +1 -1
  10. package/dist/C_Chat2.js +1 -1
  11. package/dist/C_CollapsePanel2.cjs +1 -1
  12. package/dist/C_CollapsePanel2.js +1 -1
  13. package/dist/C_Draggable.css +53 -53
  14. package/dist/C_Draggable2.cjs +1 -1
  15. package/dist/C_Draggable2.js +1 -1
  16. package/dist/C_FilePreview.css +98 -98
  17. package/dist/C_FilePreview.d.cts +2 -2
  18. package/dist/C_FilePreview.d.ts +2 -2
  19. package/dist/C_FilePreview2.cjs +1 -1
  20. package/dist/C_FilePreview2.js +1 -1
  21. package/dist/C_Form.base.css +9 -9
  22. package/dist/C_Form.css +9 -9
  23. package/dist/C_FormSearch.css +52 -52
  24. package/dist/C_FormSearch2.cjs +1 -1
  25. package/dist/C_FormSearch2.js +1 -1
  26. package/dist/C_Language.css +2 -2
  27. package/dist/C_Language2.cjs +1 -1
  28. package/dist/C_Language2.js +1 -1
  29. package/dist/C_Login.css +79 -79
  30. package/dist/C_Login2.cjs +1 -1
  31. package/dist/C_Login2.js +1 -1
  32. package/dist/C_Menu.css +1 -1
  33. package/dist/C_Menu.d.cts +2 -2
  34. package/dist/C_Menu.d.ts +2 -2
  35. package/dist/C_Menu2.cjs +1 -1
  36. package/dist/C_Menu2.js +1 -1
  37. package/dist/C_NotificationCenter.css +124 -124
  38. package/dist/C_NotificationCenter.d.cts +2 -2
  39. package/dist/C_NotificationCenter.d.ts +2 -2
  40. package/dist/C_NotificationCenter2.cjs +1 -1
  41. package/dist/C_NotificationCenter2.js +1 -1
  42. package/dist/C_Skeleton.css +2 -2
  43. package/dist/C_Skeleton2.cjs +1 -1
  44. package/dist/C_Skeleton2.js +1 -1
  45. package/dist/C_SplitPane.css +66 -66
  46. package/dist/C_SplitPane2.cjs +1 -1
  47. package/dist/C_SplitPane2.js +1 -1
  48. package/dist/C_Table.base.css +9 -9
  49. package/dist/C_Table.css +9 -9
  50. package/dist/C_Table.d.ts +1 -0
  51. package/dist/C_Theme2.cjs +1 -1
  52. package/dist/C_Theme2.js +1 -1
  53. package/dist/C_Timeline.css +46 -46
  54. package/dist/C_Timeline2.cjs +1 -1
  55. package/dist/C_Timeline2.js +1 -1
  56. package/dist/C_Transfer.css +26 -26
  57. package/dist/C_Transfer2.cjs +1 -1
  58. package/dist/C_Transfer2.js +1 -1
  59. package/dist/C_Tree.css +23 -23
  60. package/dist/C_Tree.d.ts +1 -0
  61. package/dist/C_Tree2.cjs +1 -1
  62. package/dist/C_Tree2.js +1 -1
  63. package/dist/C_Upload2.cjs +1 -1
  64. package/dist/C_Upload2.js +1 -1
  65. package/dist/C_VideoPlayer.d.cts +2 -2
  66. package/dist/C_VideoPlayer.d.ts +2 -2
  67. package/dist/C_VideoPlayer2.cjs +2 -2
  68. package/dist/C_VideoPlayer2.js +2 -2
  69. package/dist/C_WaterFall.css +31 -29
  70. package/dist/C_WaterFall2.cjs +1 -1
  71. package/dist/C_WaterFall2.js +1 -1
  72. package/dist/C_WorkFlow.css +111 -111
  73. package/dist/C_WorkFlow2.cjs +1 -1
  74. package/dist/C_WorkFlow2.js +1 -1
  75. package/dist/config.cjs +1 -0
  76. package/dist/config.d.cts +8 -0
  77. package/dist/config.d.ts +8 -0
  78. package/dist/config.js +1 -0
  79. package/dist/constants3.d.cts +34 -11
  80. package/dist/constants3.d.ts +34 -11
  81. package/dist/constants4.d.cts +20 -9
  82. package/dist/constants4.d.ts +20 -9
  83. package/dist/constants5.d.cts +22 -18
  84. package/dist/constants5.d.ts +22 -18
  85. package/dist/data.d.cts +8 -8
  86. package/dist/data.d.ts +8 -8
  87. package/dist/dateRange.d.cts +2 -0
  88. package/dist/dateRange.d.ts +2 -0
  89. package/dist/feedback.cjs +1 -1
  90. package/dist/feedback.js +1 -1
  91. package/dist/helpers.cjs +1 -1
  92. package/dist/helpers.js +1 -1
  93. package/dist/index.cjs +1 -1
  94. package/dist/index.d.cts +7 -6
  95. package/dist/index.d.ts +8 -6
  96. package/dist/index.js +1 -1
  97. package/dist/index.vue.d.cts +6 -6
  98. package/dist/index.vue.d.ts +6 -6
  99. package/dist/index10.vue.d.cts +3 -3
  100. package/dist/index10.vue.d.ts +5 -5
  101. package/dist/index11.vue.d.cts +5 -5
  102. package/dist/index11.vue.d.ts +2 -2
  103. package/dist/index12.vue.d.cts +2 -2
  104. package/dist/index12.vue.d.ts +5 -5
  105. package/dist/index13.vue.d.cts +5 -5
  106. package/dist/index13.vue.d.ts +6 -6
  107. package/dist/index14.vue.d.cts +6 -6
  108. package/dist/index14.vue.d.ts +0 -1
  109. package/dist/index15.vue.d.cts +0 -1
  110. package/dist/index15.vue.d.ts +1 -1
  111. package/dist/index16.vue.d.cts +1 -1
  112. package/dist/index17.vue.d.ts +2 -2
  113. package/dist/index18.vue.d.cts +2 -2
  114. package/dist/index18.vue.d.ts +44 -40
  115. package/dist/index19.vue.d.cts +1 -1
  116. package/dist/index19.vue.d.ts +1 -1
  117. package/dist/index2.vue.d.cts +3 -3
  118. package/dist/index2.vue.d.ts +3 -3
  119. package/dist/index20.vue.d.cts +1 -1
  120. package/dist/index20.vue.d.ts +1 -1
  121. package/dist/index21.vue.d.cts +1 -1
  122. package/dist/index21.vue.d.ts +1 -1
  123. package/dist/index22.vue.d.cts +2 -2
  124. package/dist/index22.vue.d.ts +2 -2
  125. package/dist/index25.vue.d.cts +5 -6
  126. package/dist/index25.vue.d.ts +5 -6
  127. package/dist/index26.vue.d.cts +3 -3
  128. package/dist/index26.vue.d.ts +3 -3
  129. package/dist/index3.vue.d.cts +5 -5
  130. package/dist/index3.vue.d.ts +5 -5
  131. package/dist/index4.vue.d.cts +44 -40
  132. package/dist/index6.vue.d.ts +2 -4
  133. package/dist/index7.vue.d.cts +2 -4
  134. package/dist/index9.vue.d.ts +3 -3
  135. package/dist/mapUtils.d.cts +1 -1
  136. package/dist/mapUtils.d.ts +1 -1
  137. package/dist/style.css +846 -844
  138. package/dist/useCalendarEvents.d.cts +1 -1
  139. package/dist/useCalendarEvents.d.ts +1 -1
  140. package/dist/useCollapsePanel.d.cts +1 -1
  141. package/dist/useCollapsePanel.d.ts +1 -1
  142. package/dist/useComponentLocale.cjs +1 -1
  143. package/dist/useComponentLocale.js +1 -1
  144. package/dist/useCropperCore.d.cts +8 -8
  145. package/dist/useCropperCore.d.ts +8 -8
  146. package/dist/useDraggableLayout.d.cts +1 -0
  147. package/dist/useDraggableLayout.d.ts +1 -0
  148. package/dist/useDynamicFormState.d.cts +2 -2
  149. package/dist/useDynamicFormState.d.ts +2 -2
  150. package/dist/useEdgeInteraction.d.cts +1 -1
  151. package/dist/useEdgeInteraction.d.ts +1 -1
  152. package/dist/useFullscreen.d.cts +41 -23
  153. package/dist/useFullscreen.d.ts +41 -23
  154. package/dist/useGlobalSearch.d.cts +1 -1
  155. package/dist/useGlobalSearch.d.ts +1 -1
  156. package/dist/useInfiniteScroll.d.cts +7 -5
  157. package/dist/useInfiniteScroll.d.ts +7 -5
  158. package/dist/useQRCode.d.cts +3 -3
  159. package/dist/useQRCode.d.ts +3 -3
  160. package/dist/useSignatureHistory.d.cts +5 -5
  161. package/dist/useSignatureHistory.d.ts +5 -5
  162. package/dist/useSplitResize.d.cts +10 -11
  163. package/dist/useSplitResize.d.ts +10 -11
  164. package/dist/useTableQuery.cjs +1 -1
  165. package/dist/useTableQuery.d.cts +12 -16
  166. package/dist/useTableQuery.d.ts +12 -16
  167. package/dist/useTableQuery.js +1 -1
  168. package/dist/useWorkflowValidation.d.cts +91 -83
  169. package/dist/useWorkflowValidation.d.ts +91 -83
  170. package/dist/verification.d.cts +4 -4
  171. package/dist/verification.d.ts +4 -4
  172. package/docs/architecture.en.md +3 -1
  173. package/docs/architecture.md +3 -1
  174. package/docs/guides/usage.en.md +16 -0
  175. package/docs/guides/usage.md +56 -0
  176. package/package.json +27 -10
  177. package/dist/context.cjs +0 -1
  178. package/dist/context.js +0 -1
@@ -1,5 +1,6 @@
1
1
  import * as vue from "vue";
2
2
  import { Component, Ref } from "vue";
3
+ import { Connection, EdgeChange, EdgeUpdateEvent, NodeChange } from "@vue-flow/core";
3
4
 
4
5
  //#region src/components/C_WorkFlow/types.d.ts
5
6
  /**
@@ -260,20 +261,20 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
260
261
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
261
262
  "update:modelValue": (value: WorkflowData) => any;
262
263
  change: (value: WorkflowData) => any;
263
- save: (data: WorkflowData) => any;
264
- "validate-error": (errors: ValidationError[]) => any;
265
264
  "node-click": (node: WorkflowNode<NodeType>) => any;
265
+ save: (data: WorkflowData) => any;
266
266
  "edge-click": (edge: WorkflowEdge) => any;
267
+ "validate-error": (errors: ValidationError[]) => any;
267
268
  }, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
268
269
  "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
269
270
  onChange?: ((value: WorkflowData) => any) | undefined;
270
- onSave?: ((data: WorkflowData) => any) | undefined;
271
- "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
272
271
  "onNode-click"?: ((node: WorkflowNode<NodeType>) => any) | undefined;
272
+ onSave?: ((data: WorkflowData) => any) | undefined;
273
273
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
274
+ "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
274
275
  }>, {
275
- readonly: boolean;
276
276
  theme: "light" | "dark";
277
+ readonly: boolean;
277
278
  users: User[];
278
279
  roles: Role[];
279
280
  departments: Department[];
@@ -303,19 +304,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
303
304
  zIndex?: number | undefined;
304
305
  extent?: "parent" | [[number, number], [number, number]] | undefined;
305
306
  expandParent?: boolean | undefined;
306
- type: "copy";
307
+ type: "start";
307
308
  data: {
308
- copyUsers?: {
309
- id: string;
310
- name: string;
311
- avatar?: string | undefined;
312
- department: string;
313
- role: string;
314
- email?: string | undefined;
315
- phone?: string | undefined;
316
- }[] | undefined;
317
309
  title: string;
318
- status?: NodeStatus | undefined;
310
+ status: "active";
319
311
  config?: Record<string, unknown> | undefined;
320
312
  initiators?: {
321
313
  id: string;
@@ -345,10 +337,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
345
337
  zIndex?: number | undefined;
346
338
  extent?: "parent" | [[number, number], [number, number]] | undefined;
347
339
  expandParent?: boolean | undefined;
348
- type: "start";
340
+ type: "copy";
349
341
  data: {
342
+ copyUsers?: {
343
+ id: string;
344
+ name: string;
345
+ avatar?: string | undefined;
346
+ department: string;
347
+ role: string;
348
+ email?: string | undefined;
349
+ phone?: string | undefined;
350
+ }[] | undefined;
350
351
  title: string;
351
- status: "active";
352
+ status?: NodeStatus | undefined;
352
353
  config?: Record<string, unknown> | undefined;
353
354
  initiators?: {
354
355
  id: string;
@@ -461,19 +462,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
461
462
  zIndex?: number | undefined;
462
463
  extent?: "parent" | [[number, number], [number, number]] | undefined;
463
464
  expandParent?: boolean | undefined;
464
- type: "copy";
465
+ type: "start";
465
466
  data: {
466
- copyUsers?: {
467
- id: string;
468
- name: string;
469
- avatar?: string | undefined;
470
- department: string;
471
- role: string;
472
- email?: string | undefined;
473
- phone?: string | undefined;
474
- }[] | undefined;
475
467
  title: string;
476
- status?: NodeStatus | undefined;
468
+ status: "active";
477
469
  config?: Record<string, unknown> | undefined;
478
470
  initiators?: {
479
471
  id: string;
@@ -503,10 +495,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
503
495
  zIndex?: number | undefined;
504
496
  extent?: "parent" | [[number, number], [number, number]] | undefined;
505
497
  expandParent?: boolean | undefined;
506
- type: "start";
498
+ type: "copy";
507
499
  data: {
500
+ copyUsers?: {
501
+ id: string;
502
+ name: string;
503
+ avatar?: string | undefined;
504
+ department: string;
505
+ role: string;
506
+ email?: string | undefined;
507
+ phone?: string | undefined;
508
+ }[] | undefined;
508
509
  title: string;
509
- status: "active";
510
+ status?: NodeStatus | undefined;
510
511
  config?: Record<string, unknown> | undefined;
511
512
  initiators?: {
512
513
  id: string;
@@ -672,19 +673,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
672
673
  zIndex?: number | undefined;
673
674
  extent?: "parent" | [[number, number], [number, number]] | undefined;
674
675
  expandParent?: boolean | undefined;
675
- type: "copy";
676
+ type: "start";
676
677
  data: {
677
- copyUsers?: {
678
- id: string;
679
- name: string;
680
- avatar?: string | undefined;
681
- department: string;
682
- role: string;
683
- email?: string | undefined;
684
- phone?: string | undefined;
685
- }[] | undefined;
686
678
  title: string;
687
- status?: NodeStatus | undefined;
679
+ status: "active";
688
680
  config?: Record<string, unknown> | undefined;
689
681
  initiators?: {
690
682
  id: string;
@@ -714,10 +706,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
714
706
  zIndex?: number | undefined;
715
707
  extent?: "parent" | [[number, number], [number, number]] | undefined;
716
708
  expandParent?: boolean | undefined;
717
- type: "start";
709
+ type: "copy";
718
710
  data: {
711
+ copyUsers?: {
712
+ id: string;
713
+ name: string;
714
+ avatar?: string | undefined;
715
+ department: string;
716
+ role: string;
717
+ email?: string | undefined;
718
+ phone?: string | undefined;
719
+ }[] | undefined;
719
720
  title: string;
720
- status: "active";
721
+ status?: NodeStatus | undefined;
721
722
  config?: Record<string, unknown> | undefined;
722
723
  initiators?: {
723
724
  id: string;
@@ -830,19 +831,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
830
831
  zIndex?: number | undefined;
831
832
  extent?: "parent" | [[number, number], [number, number]] | undefined;
832
833
  expandParent?: boolean | undefined;
833
- type: "copy";
834
+ type: "start";
834
835
  data: {
835
- copyUsers?: {
836
- id: string;
837
- name: string;
838
- avatar?: string | undefined;
839
- department: string;
840
- role: string;
841
- email?: string | undefined;
842
- phone?: string | undefined;
843
- }[] | undefined;
844
836
  title: string;
845
- status?: NodeStatus | undefined;
837
+ status: "active";
846
838
  config?: Record<string, unknown> | undefined;
847
839
  initiators?: {
848
840
  id: string;
@@ -872,10 +864,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
872
864
  zIndex?: number | undefined;
873
865
  extent?: "parent" | [[number, number], [number, number]] | undefined;
874
866
  expandParent?: boolean | undefined;
875
- type: "start";
867
+ type: "copy";
876
868
  data: {
869
+ copyUsers?: {
870
+ id: string;
871
+ name: string;
872
+ avatar?: string | undefined;
873
+ department: string;
874
+ role: string;
875
+ email?: string | undefined;
876
+ phone?: string | undefined;
877
+ }[] | undefined;
877
878
  title: string;
878
- status: "active";
879
+ status?: NodeStatus | undefined;
879
880
  config?: Record<string, unknown> | undefined;
880
881
  initiators?: {
881
882
  id: string;
@@ -978,6 +979,13 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
978
979
  copyNodes: number;
979
980
  conditionNodes: number;
980
981
  }>;
982
+ commitCanvasChange: () => void;
983
+ handleCanvasChanges: (changes: NodeChange[] | EdgeChange[]) => void;
984
+ connectNodes: (connection: Connection) => void;
985
+ updateConnection: ({
986
+ edge,
987
+ connection
988
+ }: EdgeUpdateEvent) => void;
981
989
  addNode: (type: NodeType) => void;
982
990
  onNodeClick: (event: {
983
991
  node: {
@@ -1047,19 +1055,10 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1047
1055
  zIndex?: number | undefined;
1048
1056
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1049
1057
  expandParent?: boolean | undefined;
1050
- type: "copy";
1058
+ type: "start";
1051
1059
  data: {
1052
- copyUsers?: {
1053
- id: string;
1054
- name: string;
1055
- avatar?: string | undefined;
1056
- department: string;
1057
- role: string;
1058
- email?: string | undefined;
1059
- phone?: string | undefined;
1060
- }[] | undefined;
1061
1060
  title: string;
1062
- status?: NodeStatus | undefined;
1061
+ status: "active";
1063
1062
  config?: Record<string, unknown> | undefined;
1064
1063
  initiators?: {
1065
1064
  id: string;
@@ -1089,10 +1088,19 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1089
1088
  zIndex?: number | undefined;
1090
1089
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1091
1090
  expandParent?: boolean | undefined;
1092
- type: "start";
1091
+ type: "copy";
1093
1092
  data: {
1093
+ copyUsers?: {
1094
+ id: string;
1095
+ name: string;
1096
+ avatar?: string | undefined;
1097
+ department: string;
1098
+ role: string;
1099
+ email?: string | undefined;
1100
+ phone?: string | undefined;
1101
+ }[] | undefined;
1094
1102
  title: string;
1095
- status: "active";
1103
+ status?: NodeStatus | undefined;
1096
1104
  config?: Record<string, unknown> | undefined;
1097
1105
  initiators?: {
1098
1106
  id: string;
@@ -1222,19 +1230,10 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1222
1230
  zIndex?: number | undefined;
1223
1231
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1224
1232
  expandParent?: boolean | undefined;
1225
- type: "copy";
1233
+ type: "start";
1226
1234
  data: {
1227
- copyUsers?: {
1228
- id: string;
1229
- name: string;
1230
- avatar?: string | undefined;
1231
- department: string;
1232
- role: string;
1233
- email?: string | undefined;
1234
- phone?: string | undefined;
1235
- }[] | undefined;
1236
1235
  title: string;
1237
- status?: NodeStatus | undefined;
1236
+ status: "active";
1238
1237
  config?: Record<string, unknown> | undefined;
1239
1238
  initiators?: {
1240
1239
  id: string;
@@ -1264,10 +1263,19 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1264
1263
  zIndex?: number | undefined;
1265
1264
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1266
1265
  expandParent?: boolean | undefined;
1267
- type: "start";
1266
+ type: "copy";
1268
1267
  data: {
1268
+ copyUsers?: {
1269
+ id: string;
1270
+ name: string;
1271
+ avatar?: string | undefined;
1272
+ department: string;
1273
+ role: string;
1274
+ email?: string | undefined;
1275
+ phone?: string | undefined;
1276
+ }[] | undefined;
1269
1277
  title: string;
1270
- status: "active";
1278
+ status?: NodeStatus | undefined;
1271
1279
  config?: Record<string, unknown> | undefined;
1272
1280
  initiators?: {
1273
1281
  id: string;
@@ -1,5 +1,6 @@
1
1
  import * as vue from "vue";
2
2
  import { Component, Ref } from "vue";
3
+ import { Connection, EdgeChange, EdgeUpdateEvent, NodeChange } from "@vue-flow/core";
3
4
 
4
5
  //#region src/components/C_WorkFlow/types.d.ts
5
6
  /**
@@ -260,20 +261,20 @@ declare const __VLS_export: vue.DefineComponent<WorkflowProps, {
260
261
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
261
262
  "update:modelValue": (value: WorkflowData) => any;
262
263
  change: (value: WorkflowData) => any;
263
- save: (data: WorkflowData) => any;
264
- "validate-error": (errors: ValidationError[]) => any;
265
264
  "node-click": (node: WorkflowNode<NodeType>) => any;
265
+ save: (data: WorkflowData) => any;
266
266
  "edge-click": (edge: WorkflowEdge) => any;
267
+ "validate-error": (errors: ValidationError[]) => any;
267
268
  }, string, vue.PublicProps, Readonly<WorkflowProps> & Readonly<{
268
269
  "onUpdate:modelValue"?: ((value: WorkflowData) => any) | undefined;
269
270
  onChange?: ((value: WorkflowData) => any) | undefined;
270
- onSave?: ((data: WorkflowData) => any) | undefined;
271
- "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
272
271
  "onNode-click"?: ((node: WorkflowNode<NodeType>) => any) | undefined;
272
+ onSave?: ((data: WorkflowData) => any) | undefined;
273
273
  "onEdge-click"?: ((edge: WorkflowEdge) => any) | undefined;
274
+ "onValidate-error"?: ((errors: ValidationError[]) => any) | undefined;
274
275
  }>, {
275
- readonly: boolean;
276
276
  theme: "light" | "dark";
277
+ readonly: boolean;
277
278
  users: User[];
278
279
  roles: Role[];
279
280
  departments: Department[];
@@ -303,19 +304,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
303
304
  zIndex?: number | undefined;
304
305
  extent?: "parent" | [[number, number], [number, number]] | undefined;
305
306
  expandParent?: boolean | undefined;
306
- type: "copy";
307
+ type: "start";
307
308
  data: {
308
- copyUsers?: {
309
- id: string;
310
- name: string;
311
- avatar?: string | undefined;
312
- department: string;
313
- role: string;
314
- email?: string | undefined;
315
- phone?: string | undefined;
316
- }[] | undefined;
317
309
  title: string;
318
- status?: NodeStatus | undefined;
310
+ status: "active";
319
311
  config?: Record<string, unknown> | undefined;
320
312
  initiators?: {
321
313
  id: string;
@@ -345,10 +337,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
345
337
  zIndex?: number | undefined;
346
338
  extent?: "parent" | [[number, number], [number, number]] | undefined;
347
339
  expandParent?: boolean | undefined;
348
- type: "start";
340
+ type: "copy";
349
341
  data: {
342
+ copyUsers?: {
343
+ id: string;
344
+ name: string;
345
+ avatar?: string | undefined;
346
+ department: string;
347
+ role: string;
348
+ email?: string | undefined;
349
+ phone?: string | undefined;
350
+ }[] | undefined;
350
351
  title: string;
351
- status: "active";
352
+ status?: NodeStatus | undefined;
352
353
  config?: Record<string, unknown> | undefined;
353
354
  initiators?: {
354
355
  id: string;
@@ -461,19 +462,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
461
462
  zIndex?: number | undefined;
462
463
  extent?: "parent" | [[number, number], [number, number]] | undefined;
463
464
  expandParent?: boolean | undefined;
464
- type: "copy";
465
+ type: "start";
465
466
  data: {
466
- copyUsers?: {
467
- id: string;
468
- name: string;
469
- avatar?: string | undefined;
470
- department: string;
471
- role: string;
472
- email?: string | undefined;
473
- phone?: string | undefined;
474
- }[] | undefined;
475
467
  title: string;
476
- status?: NodeStatus | undefined;
468
+ status: "active";
477
469
  config?: Record<string, unknown> | undefined;
478
470
  initiators?: {
479
471
  id: string;
@@ -503,10 +495,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
503
495
  zIndex?: number | undefined;
504
496
  extent?: "parent" | [[number, number], [number, number]] | undefined;
505
497
  expandParent?: boolean | undefined;
506
- type: "start";
498
+ type: "copy";
507
499
  data: {
500
+ copyUsers?: {
501
+ id: string;
502
+ name: string;
503
+ avatar?: string | undefined;
504
+ department: string;
505
+ role: string;
506
+ email?: string | undefined;
507
+ phone?: string | undefined;
508
+ }[] | undefined;
508
509
  title: string;
509
- status: "active";
510
+ status?: NodeStatus | undefined;
510
511
  config?: Record<string, unknown> | undefined;
511
512
  initiators?: {
512
513
  id: string;
@@ -672,19 +673,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
672
673
  zIndex?: number | undefined;
673
674
  extent?: "parent" | [[number, number], [number, number]] | undefined;
674
675
  expandParent?: boolean | undefined;
675
- type: "copy";
676
+ type: "start";
676
677
  data: {
677
- copyUsers?: {
678
- id: string;
679
- name: string;
680
- avatar?: string | undefined;
681
- department: string;
682
- role: string;
683
- email?: string | undefined;
684
- phone?: string | undefined;
685
- }[] | undefined;
686
678
  title: string;
687
- status?: NodeStatus | undefined;
679
+ status: "active";
688
680
  config?: Record<string, unknown> | undefined;
689
681
  initiators?: {
690
682
  id: string;
@@ -714,10 +706,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
714
706
  zIndex?: number | undefined;
715
707
  extent?: "parent" | [[number, number], [number, number]] | undefined;
716
708
  expandParent?: boolean | undefined;
717
- type: "start";
709
+ type: "copy";
718
710
  data: {
711
+ copyUsers?: {
712
+ id: string;
713
+ name: string;
714
+ avatar?: string | undefined;
715
+ department: string;
716
+ role: string;
717
+ email?: string | undefined;
718
+ phone?: string | undefined;
719
+ }[] | undefined;
719
720
  title: string;
720
- status: "active";
721
+ status?: NodeStatus | undefined;
721
722
  config?: Record<string, unknown> | undefined;
722
723
  initiators?: {
723
724
  id: string;
@@ -830,19 +831,10 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
830
831
  zIndex?: number | undefined;
831
832
  extent?: "parent" | [[number, number], [number, number]] | undefined;
832
833
  expandParent?: boolean | undefined;
833
- type: "copy";
834
+ type: "start";
834
835
  data: {
835
- copyUsers?: {
836
- id: string;
837
- name: string;
838
- avatar?: string | undefined;
839
- department: string;
840
- role: string;
841
- email?: string | undefined;
842
- phone?: string | undefined;
843
- }[] | undefined;
844
836
  title: string;
845
- status?: NodeStatus | undefined;
837
+ status: "active";
846
838
  config?: Record<string, unknown> | undefined;
847
839
  initiators?: {
848
840
  id: string;
@@ -872,10 +864,19 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
872
864
  zIndex?: number | undefined;
873
865
  extent?: "parent" | [[number, number], [number, number]] | undefined;
874
866
  expandParent?: boolean | undefined;
875
- type: "start";
867
+ type: "copy";
876
868
  data: {
869
+ copyUsers?: {
870
+ id: string;
871
+ name: string;
872
+ avatar?: string | undefined;
873
+ department: string;
874
+ role: string;
875
+ email?: string | undefined;
876
+ phone?: string | undefined;
877
+ }[] | undefined;
877
878
  title: string;
878
- status: "active";
879
+ status?: NodeStatus | undefined;
879
880
  config?: Record<string, unknown> | undefined;
880
881
  initiators?: {
881
882
  id: string;
@@ -978,6 +979,13 @@ declare function useWorkflowNodes(props: WorkflowProps, emit: EmitFn$1, vueFlowR
978
979
  copyNodes: number;
979
980
  conditionNodes: number;
980
981
  }>;
982
+ commitCanvasChange: () => void;
983
+ handleCanvasChanges: (changes: NodeChange[] | EdgeChange[]) => void;
984
+ connectNodes: (connection: Connection) => void;
985
+ updateConnection: ({
986
+ edge,
987
+ connection
988
+ }: EdgeUpdateEvent) => void;
981
989
  addNode: (type: NodeType) => void;
982
990
  onNodeClick: (event: {
983
991
  node: {
@@ -1047,19 +1055,10 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1047
1055
  zIndex?: number | undefined;
1048
1056
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1049
1057
  expandParent?: boolean | undefined;
1050
- type: "copy";
1058
+ type: "start";
1051
1059
  data: {
1052
- copyUsers?: {
1053
- id: string;
1054
- name: string;
1055
- avatar?: string | undefined;
1056
- department: string;
1057
- role: string;
1058
- email?: string | undefined;
1059
- phone?: string | undefined;
1060
- }[] | undefined;
1061
1060
  title: string;
1062
- status?: NodeStatus | undefined;
1061
+ status: "active";
1063
1062
  config?: Record<string, unknown> | undefined;
1064
1063
  initiators?: {
1065
1064
  id: string;
@@ -1089,10 +1088,19 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1089
1088
  zIndex?: number | undefined;
1090
1089
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1091
1090
  expandParent?: boolean | undefined;
1092
- type: "start";
1091
+ type: "copy";
1093
1092
  data: {
1093
+ copyUsers?: {
1094
+ id: string;
1095
+ name: string;
1096
+ avatar?: string | undefined;
1097
+ department: string;
1098
+ role: string;
1099
+ email?: string | undefined;
1100
+ phone?: string | undefined;
1101
+ }[] | undefined;
1094
1102
  title: string;
1095
- status: "active";
1103
+ status?: NodeStatus | undefined;
1096
1104
  config?: Record<string, unknown> | undefined;
1097
1105
  initiators?: {
1098
1106
  id: string;
@@ -1222,19 +1230,10 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1222
1230
  zIndex?: number | undefined;
1223
1231
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1224
1232
  expandParent?: boolean | undefined;
1225
- type: "copy";
1233
+ type: "start";
1226
1234
  data: {
1227
- copyUsers?: {
1228
- id: string;
1229
- name: string;
1230
- avatar?: string | undefined;
1231
- department: string;
1232
- role: string;
1233
- email?: string | undefined;
1234
- phone?: string | undefined;
1235
- }[] | undefined;
1236
1235
  title: string;
1237
- status?: NodeStatus | undefined;
1236
+ status: "active";
1238
1237
  config?: Record<string, unknown> | undefined;
1239
1238
  initiators?: {
1240
1239
  id: string;
@@ -1264,10 +1263,19 @@ declare function useWorkflowPreview(nodes: Ref<WorkflowNode[]>, edges: Ref<Workf
1264
1263
  zIndex?: number | undefined;
1265
1264
  extent?: "parent" | [[number, number], [number, number]] | undefined;
1266
1265
  expandParent?: boolean | undefined;
1267
- type: "start";
1266
+ type: "copy";
1268
1267
  data: {
1268
+ copyUsers?: {
1269
+ id: string;
1270
+ name: string;
1271
+ avatar?: string | undefined;
1272
+ department: string;
1273
+ role: string;
1274
+ email?: string | undefined;
1275
+ phone?: string | undefined;
1276
+ }[] | undefined;
1269
1277
  title: string;
1270
- status: "active";
1278
+ status?: NodeStatus | undefined;
1271
1279
  config?: Record<string, unknown> | undefined;
1272
1280
  initiators?: {
1273
1281
  id: string;
@@ -77,19 +77,19 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
77
77
  show: () => void;
78
78
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
79
79
  change: (valid: boolean) => any;
80
- reset: () => any;
81
80
  success: (data: CaptchaSuccessPayload) => any;
82
- "load-error": (error: unknown) => any;
81
+ reset: () => any;
83
82
  fail: (error: string) => any;
84
83
  "verify-error": (error: unknown) => any;
84
+ "load-error": (error: unknown) => any;
85
85
  "visible-change": (visible: boolean) => any;
86
86
  }, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
87
87
  onChange?: ((valid: boolean) => any) | undefined;
88
- onReset?: (() => any) | undefined;
89
88
  onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
90
- "onLoad-error"?: ((error: unknown) => any) | undefined;
89
+ onReset?: (() => any) | undefined;
91
90
  onFail?: ((error: string) => any) | undefined;
92
91
  "onVerify-error"?: ((error: unknown) => any) | undefined;
92
+ "onLoad-error"?: ((error: unknown) => any) | undefined;
93
93
  "onVisible-change"?: ((visible: boolean) => any) | undefined;
94
94
  }>, {
95
95
  theme: "light" | "dark";
@@ -77,19 +77,19 @@ declare const __VLS_export: vue.DefineComponent<CaptchaProps, {
77
77
  show: () => void;
78
78
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
79
79
  change: (valid: boolean) => any;
80
- reset: () => any;
81
80
  success: (data: CaptchaSuccessPayload) => any;
82
- "load-error": (error: unknown) => any;
81
+ reset: () => any;
83
82
  fail: (error: string) => any;
84
83
  "verify-error": (error: unknown) => any;
84
+ "load-error": (error: unknown) => any;
85
85
  "visible-change": (visible: boolean) => any;
86
86
  }, string, vue.PublicProps, Readonly<CaptchaProps> & Readonly<{
87
87
  onChange?: ((valid: boolean) => any) | undefined;
88
- onReset?: (() => any) | undefined;
89
88
  onSuccess?: ((data: CaptchaSuccessPayload) => any) | undefined;
90
- "onLoad-error"?: ((error: unknown) => any) | undefined;
89
+ onReset?: (() => any) | undefined;
91
90
  onFail?: ((error: string) => any) | undefined;
92
91
  "onVerify-error"?: ((error: unknown) => any) | undefined;
92
+ "onLoad-error"?: ((error: unknown) => any) | undefined;
93
93
  "onVisible-change"?: ((visible: boolean) => any) | undefined;
94
94
  }>, {
95
95
  theme: "light" | "dark";
@@ -25,7 +25,7 @@ The core is currently an internal boundary, not a separately published package.
25
25
  - ESM resolves `.d.ts`; CJS resolves `.d.cts`. Each declaration condition matches its JavaScript format.
26
26
  - All public reachable declarations are checked for `naive-ui/es/*` and `naive-ui/lib/*` internal imports, in both formats.
27
27
 
28
- The consumer contract check unpacks a real tarball into a temporary directory and attaches the repository's resolved dependencies. It covers Node16/NodeNext ESM/CJS types and subpath runtime imports without optional peers. It does not reinstall online, so it does not replace minimum/latest dependency matrices or application acceptance.
28
+ The default consumer contract check unpacks a real tarball into a temporary directory and attaches the repository's resolved dependencies. It covers Node16/NodeNext ESM/CJS types and subpath runtime imports without optional peers. The `minimum` and `latest` profiles instead install fresh dependencies from the registry and also render representative components. CI runs both profiles; application acceptance remains a separate check.
29
29
 
30
30
  ## Highlight instances
31
31
 
@@ -81,3 +81,5 @@ Running both UI libraries in one application is outside this iteration. That wou
81
81
  Verify behavior through published consumers, public types, multiple applications, dynamic registration, unmount and host-state restoration. Source-level dependency guards complement runtime verification.
82
82
 
83
83
  `bun run verify` is the local quality gate. `bun run check:audit` remains a separate check and CI gate. Record actual advisory results; do not hide them by disabling checks or forcing unverified major versions.
84
+
85
+ Fresh consumer compatibility is checked with `bun run check:consumer-contracts minimum` and `latest`. Each profile installs the real tarball in an isolated temporary directory, checks ESM/CJS types and renders representative components. CI runs both profiles. `/config` exports shared injection keys and protocol types without loading the presentation layer.