workflow-editor 0.0.81-up-tmp10 → 0.0.81-up-tmp11

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 (316) hide show
  1. package/.vscode/extensions.json +3 -0
  2. package/package.json +1 -1
  3. package/vite.config.js +3 -3
  4. package/dist/index.full.min.js +0 -3504
  5. package/dist/style.css +0 -526
  6. package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
  7. package/es/index.mjs +0 -17
  8. package/es/plugins/formValidatorUtil.mjs +0 -206
  9. package/es/plugins/index.mjs +0 -7
  10. package/es/src/i18n/i18n.mjs +0 -7
  11. package/es/src/i18n/langs/cn.mjs +0 -4
  12. package/es/src/i18n/langs/en.mjs +0 -4
  13. package/es/style.css +0 -525
  14. package/es/vite.svg +0 -1
  15. package/es/workflow-editor/index.mjs +0 -10
  16. package/es/workflow-editor/src/api.mjs +0 -6
  17. package/es/workflow-editor/src/assets/wf-editor-icons.mjs +0 -43
  18. package/es/workflow-editor/src/json-object-templates/auto-task.mjs +0 -7
  19. package/es/workflow-editor/src/json-object-templates/copy-task.mjs +0 -7
  20. package/es/workflow-editor/src/json-object-templates/decision.mjs +0 -7
  21. package/es/workflow-editor/src/json-object-templates/end.mjs +0 -7
  22. package/es/workflow-editor/src/json-object-templates/fork.mjs +0 -7
  23. package/es/workflow-editor/src/json-object-templates/human-decision.mjs +0 -7
  24. package/es/workflow-editor/src/json-object-templates/human-task.mjs +0 -7
  25. package/es/workflow-editor/src/json-object-templates/join.mjs +0 -7
  26. package/es/workflow-editor/src/json-object-templates/process.mjs +0 -9
  27. package/es/workflow-editor/src/json-object-templates/start.mjs +0 -7
  28. package/es/workflow-editor/src/json-object-templates/subprocess.mjs +0 -7
  29. package/es/workflow-editor/src/json-object-templates/transition.mjs +0 -6
  30. package/es/workflow-editor/src/main/admin-save-dialog.vue.mjs +0 -13
  31. package/es/workflow-editor/src/main/canvas.vue.mjs +0 -130
  32. package/es/workflow-editor/src/main/canvas.vue2.mjs +0 -4
  33. package/es/workflow-editor/src/main/context-menu.vue.mjs +0 -33
  34. package/es/workflow-editor/src/main/context-menu.vue2.mjs +0 -4
  35. package/es/workflow-editor/src/main/icon-svg.vue.mjs +0 -12
  36. package/es/workflow-editor/src/main/icon-svg.vue2.mjs +0 -4
  37. package/es/workflow-editor/src/main/selection-region.vue.mjs +0 -17
  38. package/es/workflow-editor/src/main/selection-region.vue2.mjs +0 -4
  39. package/es/workflow-editor/src/main/tache-history-tooltip.vue.mjs +0 -10
  40. package/es/workflow-editor/src/main/tache-history-tooltip.vue2.mjs +0 -4
  41. package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue.mjs +0 -11
  42. package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.mjs +0 -4
  43. package/es/workflow-editor/src/main/toolbox.vue.mjs +0 -16
  44. package/es/workflow-editor/src/main/toolbox.vue2.mjs +0 -4
  45. package/es/workflow-editor/src/main/wf-history-canvas.vue.mjs +0 -86
  46. package/es/workflow-editor/src/main/wf-history-canvas.vue2.mjs +0 -4
  47. package/es/workflow-editor/src/process-service.mjs +0 -21
  48. package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.mjs +0 -25
  49. package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.mjs +0 -4
  50. package/es/workflow-editor/src/properties-editors/auto-task.vue.mjs +0 -22
  51. package/es/workflow-editor/src/properties-editors/auto-task.vue2.mjs +0 -4
  52. package/es/workflow-editor/src/properties-editors/common/additional-condition-utils.mjs +0 -125
  53. package/es/workflow-editor/src/properties-editors/common/additional-condition.vue.mjs +0 -60
  54. package/es/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.mjs +0 -5
  55. package/es/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.mjs +0 -72
  56. package/es/workflow-editor/src/properties-editors/common/common-notice-tool.vue.mjs +0 -18
  57. package/es/workflow-editor/src/properties-editors/common/common-user-condition.vue.mjs +0 -55
  58. package/es/workflow-editor/src/properties-editors/common/form-fields-utils.mjs +0 -14
  59. package/es/workflow-editor/src/properties-editors/common/form-fields.vue.mjs +0 -20
  60. package/es/workflow-editor/src/properties-editors/common/form-fields.vue2.mjs +0 -4
  61. package/es/workflow-editor/src/properties-editors/common/i18n-input.vue.mjs +0 -25
  62. package/es/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.mjs +0 -36
  63. package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue.mjs +0 -27
  64. package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue2.mjs +0 -4
  65. package/es/workflow-editor/src/properties-editors/common/notice.vue.mjs +0 -31
  66. package/es/workflow-editor/src/properties-editors/common/reminder.vue.mjs +0 -36
  67. package/es/workflow-editor/src/properties-editors/common/reminder.vue2.mjs +0 -4
  68. package/es/workflow-editor/src/properties-editors/common/select-mail-template.vue.mjs +0 -20
  69. package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.mjs +0 -95
  70. package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.mjs +0 -4
  71. package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue.mjs +0 -16
  72. package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue2.mjs +0 -4
  73. package/es/workflow-editor/src/properties-editors/common/task-title.vue.mjs +0 -46
  74. package/es/workflow-editor/src/properties-editors/common/task-title.vue2.mjs +0 -4
  75. package/es/workflow-editor/src/properties-editors/common/transactor-settings.vue.mjs +0 -43
  76. package/es/workflow-editor/src/properties-editors/common/user-selection.vue.mjs +0 -116
  77. package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.mjs +0 -60
  78. package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.mjs +0 -4
  79. package/es/workflow-editor/src/properties-editors/common/variables.vue.mjs +0 -41
  80. package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.mjs +0 -25
  81. package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.mjs +0 -4
  82. package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.mjs +0 -30
  83. package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.mjs +0 -4
  84. package/es/workflow-editor/src/properties-editors/copy-task.vue.mjs +0 -26
  85. package/es/workflow-editor/src/properties-editors/copy-task.vue2.mjs +0 -4
  86. package/es/workflow-editor/src/properties-editors/decision.vue.mjs +0 -24
  87. package/es/workflow-editor/src/properties-editors/fork.vue.mjs +0 -21
  88. package/es/workflow-editor/src/properties-editors/human-decision.vue.mjs +0 -15
  89. package/es/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.mjs +0 -16
  90. package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue.mjs +0 -38
  91. package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.mjs +0 -4
  92. package/es/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.mjs +0 -84
  93. package/es/workflow-editor/src/properties-editors/human-task/custom-actions.vue.mjs +0 -62
  94. package/es/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.mjs +0 -80
  95. package/es/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.mjs +0 -86
  96. package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.mjs +0 -43
  97. package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.mjs +0 -4
  98. package/es/workflow-editor/src/properties-editors/human-task/editable-fields.vue.mjs +0 -67
  99. package/es/workflow-editor/src/properties-editors/human-task/events.vue.mjs +0 -18
  100. package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue.mjs +0 -33
  101. package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.mjs +0 -4
  102. package/es/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.mjs +0 -56
  103. package/es/workflow-editor/src/properties-editors/human-task.vue.mjs +0 -28
  104. package/es/workflow-editor/src/properties-editors/human-task.vue2.mjs +0 -4
  105. package/es/workflow-editor/src/properties-editors/join.vue.mjs +0 -15
  106. package/es/workflow-editor/src/properties-editors/process/basic-properties.vue.mjs +0 -88
  107. package/es/workflow-editor/src/properties-editors/process/events.vue.mjs +0 -21
  108. package/es/workflow-editor/src/properties-editors/process/notice-settings.vue.mjs +0 -25
  109. package/es/workflow-editor/src/properties-editors/process/parameter-settings.vue.mjs +0 -17
  110. package/es/workflow-editor/src/properties-editors/process/permission-settings.vue.mjs +0 -10
  111. package/es/workflow-editor/src/properties-editors/process/selectPage.vue.mjs +0 -28
  112. package/es/workflow-editor/src/properties-editors/process.vue.mjs +0 -34
  113. package/es/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.mjs +0 -64
  114. package/es/workflow-editor/src/properties-editors/subprocess/events.vue.mjs +0 -9
  115. package/es/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.mjs +0 -55
  116. package/es/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.mjs +0 -20
  117. package/es/workflow-editor/src/properties-editors/subprocess.vue.mjs +0 -22
  118. package/es/workflow-editor/src/properties-editors/subprocess.vue2.mjs +0 -4
  119. package/es/workflow-editor/src/properties-editors/transition/basic-properties.vue.mjs +0 -14
  120. package/es/workflow-editor/src/properties-editors/transition.vue.mjs +0 -17
  121. package/es/workflow-editor/src/properties-editors/transition.vue2.mjs +0 -4
  122. package/es/workflow-editor/src/properties-editors/user-condition.mjs +0 -49
  123. package/es/workflow-editor/src/store/getters.mjs +0 -4
  124. package/es/workflow-editor/src/store/workflow-editor.mjs +0 -73
  125. package/es/workflow-editor/src/taches/auto-task.vue.mjs +0 -25
  126. package/es/workflow-editor/src/taches/common-methods.mjs +0 -13
  127. package/es/workflow-editor/src/taches/copy-task.vue.mjs +0 -25
  128. package/es/workflow-editor/src/taches/custom-task.vue.mjs +0 -16
  129. package/es/workflow-editor/src/taches/decision.vue.mjs +0 -25
  130. package/es/workflow-editor/src/taches/decision.vue2.mjs +0 -4
  131. package/es/workflow-editor/src/taches/end.vue.mjs +0 -14
  132. package/es/workflow-editor/src/taches/end.vue2.mjs +0 -4
  133. package/es/workflow-editor/src/taches/fork.vue.mjs +0 -25
  134. package/es/workflow-editor/src/taches/fork.vue2.mjs +0 -4
  135. package/es/workflow-editor/src/taches/human-decision.vue.mjs +0 -25
  136. package/es/workflow-editor/src/taches/human-decision.vue2.mjs +0 -4
  137. package/es/workflow-editor/src/taches/human-task.vue.mjs +0 -25
  138. package/es/workflow-editor/src/taches/join.vue.mjs +0 -16
  139. package/es/workflow-editor/src/taches/join.vue2.mjs +0 -4
  140. package/es/workflow-editor/src/taches/joint.vue.mjs +0 -54
  141. package/es/workflow-editor/src/taches/joint.vue2.mjs +0 -4
  142. package/es/workflow-editor/src/taches/start.vue.mjs +0 -14
  143. package/es/workflow-editor/src/taches/start.vue2.mjs +0 -4
  144. package/es/workflow-editor/src/taches/subprocess.vue.mjs +0 -25
  145. package/es/workflow-editor/src/taches/tache-resizer.vue.mjs +0 -30
  146. package/es/workflow-editor/src/taches/tache-resizer.vue2.mjs +0 -4
  147. package/es/workflow-editor/src/transitions/broken-line.vue.mjs +0 -32
  148. package/es/workflow-editor/src/transitions/broken-line.vue2.mjs +0 -4
  149. package/es/workflow-editor/src/transitions/curve-line.vue.mjs +0 -33
  150. package/es/workflow-editor/src/transitions/curve-line.vue2.mjs +0 -4
  151. package/es/workflow-editor/src/transitions/straight-line.vue.mjs +0 -13
  152. package/es/workflow-editor/src/transitions/transition.vue.mjs +0 -70
  153. package/es/workflow-editor/src/transitions/transition.vue2.mjs +0 -4
  154. package/es/workflow-editor/src/transitions/virtual-transition.vue.mjs +0 -17
  155. package/es/workflow-editor/src/transitions/virtual-transition.vue2.mjs +0 -4
  156. package/es/workflow-editor/src/util.mjs +0 -180
  157. package/es/workflow-editor/src/workflow-editor.vue.mjs +0 -205
  158. package/es/workflow-editor/src/workflow-editor.vue2.mjs +0 -4
  159. package/es/workflow-editor/src/workflow-history.vue.mjs +0 -35
  160. package/es/workflow-editor/src/workflow-history.vue2.mjs +0 -4
  161. package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -7
  162. package/lib/index.cjs +0 -8
  163. package/lib/plugins/formValidatorUtil.cjs +0 -203
  164. package/lib/plugins/index.cjs +0 -5
  165. package/lib/src/i18n/i18n.cjs +0 -3
  166. package/lib/src/i18n/langs/cn.cjs +0 -2
  167. package/lib/src/i18n/langs/en.cjs +0 -2
  168. package/lib/style.css +0 -525
  169. package/lib/vite.svg +0 -1
  170. package/lib/workflow-editor/index.cjs +0 -7
  171. package/lib/workflow-editor/src/api.cjs +0 -5
  172. package/lib/workflow-editor/src/assets/wf-editor-icons.cjs +0 -44
  173. package/lib/workflow-editor/src/json-object-templates/auto-task.cjs +0 -5
  174. package/lib/workflow-editor/src/json-object-templates/copy-task.cjs +0 -5
  175. package/lib/workflow-editor/src/json-object-templates/decision.cjs +0 -5
  176. package/lib/workflow-editor/src/json-object-templates/end.cjs +0 -5
  177. package/lib/workflow-editor/src/json-object-templates/fork.cjs +0 -5
  178. package/lib/workflow-editor/src/json-object-templates/human-decision.cjs +0 -5
  179. package/lib/workflow-editor/src/json-object-templates/human-task.cjs +0 -5
  180. package/lib/workflow-editor/src/json-object-templates/join.cjs +0 -5
  181. package/lib/workflow-editor/src/json-object-templates/process.cjs +0 -6
  182. package/lib/workflow-editor/src/json-object-templates/start.cjs +0 -5
  183. package/lib/workflow-editor/src/json-object-templates/subprocess.cjs +0 -5
  184. package/lib/workflow-editor/src/json-object-templates/transition.cjs +0 -4
  185. package/lib/workflow-editor/src/main/admin-save-dialog.vue.cjs +0 -11
  186. package/lib/workflow-editor/src/main/canvas.vue.cjs +0 -101
  187. package/lib/workflow-editor/src/main/canvas.vue2.cjs +0 -2
  188. package/lib/workflow-editor/src/main/context-menu.vue.cjs +0 -29
  189. package/lib/workflow-editor/src/main/context-menu.vue2.cjs +0 -2
  190. package/lib/workflow-editor/src/main/icon-svg.vue.cjs +0 -10
  191. package/lib/workflow-editor/src/main/icon-svg.vue2.cjs +0 -2
  192. package/lib/workflow-editor/src/main/selection-region.vue.cjs +0 -13
  193. package/lib/workflow-editor/src/main/selection-region.vue2.cjs +0 -2
  194. package/lib/workflow-editor/src/main/tache-history-tooltip.vue.cjs +0 -8
  195. package/lib/workflow-editor/src/main/tache-history-tooltip.vue2.cjs +0 -2
  196. package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue.cjs +0 -9
  197. package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.cjs +0 -2
  198. package/lib/workflow-editor/src/main/toolbox.vue.cjs +0 -11
  199. package/lib/workflow-editor/src/main/toolbox.vue2.cjs +0 -2
  200. package/lib/workflow-editor/src/main/wf-history-canvas.vue.cjs +0 -67
  201. package/lib/workflow-editor/src/main/wf-history-canvas.vue2.cjs +0 -2
  202. package/lib/workflow-editor/src/process-service.cjs +0 -20
  203. package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.cjs +0 -20
  204. package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.cjs +0 -2
  205. package/lib/workflow-editor/src/properties-editors/auto-task.vue.cjs +0 -19
  206. package/lib/workflow-editor/src/properties-editors/auto-task.vue2.cjs +0 -2
  207. package/lib/workflow-editor/src/properties-editors/common/additional-condition-utils.cjs +0 -94
  208. package/lib/workflow-editor/src/properties-editors/common/additional-condition.vue.cjs +0 -54
  209. package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.cjs +0 -4
  210. package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.cjs +0 -67
  211. package/lib/workflow-editor/src/properties-editors/common/common-notice-tool.vue.cjs +0 -16
  212. package/lib/workflow-editor/src/properties-editors/common/common-user-condition.vue.cjs +0 -50
  213. package/lib/workflow-editor/src/properties-editors/common/form-fields-utils.cjs +0 -11
  214. package/lib/workflow-editor/src/properties-editors/common/form-fields.vue.cjs +0 -17
  215. package/lib/workflow-editor/src/properties-editors/common/form-fields.vue2.cjs +0 -2
  216. package/lib/workflow-editor/src/properties-editors/common/i18n-input.vue.cjs +0 -20
  217. package/lib/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.cjs +0 -31
  218. package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue.cjs +0 -22
  219. package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue2.cjs +0 -2
  220. package/lib/workflow-editor/src/properties-editors/common/notice.vue.cjs +0 -25
  221. package/lib/workflow-editor/src/properties-editors/common/reminder.vue.cjs +0 -31
  222. package/lib/workflow-editor/src/properties-editors/common/reminder.vue2.cjs +0 -2
  223. package/lib/workflow-editor/src/properties-editors/common/select-mail-template.vue.cjs +0 -17
  224. package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.cjs +0 -93
  225. package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.cjs +0 -2
  226. package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue.cjs +0 -13
  227. package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue2.cjs +0 -2
  228. package/lib/workflow-editor/src/properties-editors/common/task-title.vue.cjs +0 -42
  229. package/lib/workflow-editor/src/properties-editors/common/task-title.vue2.cjs +0 -2
  230. package/lib/workflow-editor/src/properties-editors/common/transactor-settings.vue.cjs +0 -37
  231. package/lib/workflow-editor/src/properties-editors/common/user-selection.vue.cjs +0 -110
  232. package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.cjs +0 -55
  233. package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.cjs +0 -2
  234. package/lib/workflow-editor/src/properties-editors/common/variables.vue.cjs +0 -39
  235. package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.cjs +0 -20
  236. package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.cjs +0 -2
  237. package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.cjs +0 -26
  238. package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.cjs +0 -2
  239. package/lib/workflow-editor/src/properties-editors/copy-task.vue.cjs +0 -19
  240. package/lib/workflow-editor/src/properties-editors/copy-task.vue2.cjs +0 -2
  241. package/lib/workflow-editor/src/properties-editors/decision.vue.cjs +0 -20
  242. package/lib/workflow-editor/src/properties-editors/fork.vue.cjs +0 -18
  243. package/lib/workflow-editor/src/properties-editors/human-decision.vue.cjs +0 -13
  244. package/lib/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.cjs +0 -13
  245. package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue.cjs +0 -31
  246. package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.cjs +0 -2
  247. package/lib/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.cjs +0 -82
  248. package/lib/workflow-editor/src/properties-editors/human-task/custom-actions.vue.cjs +0 -56
  249. package/lib/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.cjs +0 -75
  250. package/lib/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.cjs +0 -80
  251. package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.cjs +0 -39
  252. package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.cjs +0 -2
  253. package/lib/workflow-editor/src/properties-editors/human-task/editable-fields.vue.cjs +0 -60
  254. package/lib/workflow-editor/src/properties-editors/human-task/events.vue.cjs +0 -15
  255. package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue.cjs +0 -26
  256. package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.cjs +0 -2
  257. package/lib/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.cjs +0 -49
  258. package/lib/workflow-editor/src/properties-editors/human-task.vue.cjs +0 -19
  259. package/lib/workflow-editor/src/properties-editors/human-task.vue2.cjs +0 -2
  260. package/lib/workflow-editor/src/properties-editors/join.vue.cjs +0 -13
  261. package/lib/workflow-editor/src/properties-editors/process/basic-properties.vue.cjs +0 -81
  262. package/lib/workflow-editor/src/properties-editors/process/events.vue.cjs +0 -18
  263. package/lib/workflow-editor/src/properties-editors/process/notice-settings.vue.cjs +0 -21
  264. package/lib/workflow-editor/src/properties-editors/process/parameter-settings.vue.cjs +0 -13
  265. package/lib/workflow-editor/src/properties-editors/process/permission-settings.vue.cjs +0 -7
  266. package/lib/workflow-editor/src/properties-editors/process/selectPage.vue.cjs +0 -23
  267. package/lib/workflow-editor/src/properties-editors/process.vue.cjs +0 -24
  268. package/lib/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.cjs +0 -57
  269. package/lib/workflow-editor/src/properties-editors/subprocess/events.vue.cjs +0 -7
  270. package/lib/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.cjs +0 -50
  271. package/lib/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.cjs +0 -16
  272. package/lib/workflow-editor/src/properties-editors/subprocess.vue.cjs +0 -17
  273. package/lib/workflow-editor/src/properties-editors/subprocess.vue2.cjs +0 -2
  274. package/lib/workflow-editor/src/properties-editors/transition/basic-properties.vue.cjs +0 -10
  275. package/lib/workflow-editor/src/properties-editors/transition.vue.cjs +0 -12
  276. package/lib/workflow-editor/src/properties-editors/transition.vue2.cjs +0 -2
  277. package/lib/workflow-editor/src/properties-editors/user-condition.cjs +0 -33
  278. package/lib/workflow-editor/src/store/getters.cjs +0 -2
  279. package/lib/workflow-editor/src/store/workflow-editor.cjs +0 -71
  280. package/lib/workflow-editor/src/taches/auto-task.vue.cjs +0 -17
  281. package/lib/workflow-editor/src/taches/common-methods.cjs +0 -11
  282. package/lib/workflow-editor/src/taches/copy-task.vue.cjs +0 -17
  283. package/lib/workflow-editor/src/taches/custom-task.vue.cjs +0 -9
  284. package/lib/workflow-editor/src/taches/decision.vue.cjs +0 -19
  285. package/lib/workflow-editor/src/taches/decision.vue2.cjs +0 -2
  286. package/lib/workflow-editor/src/taches/end.vue.cjs +0 -9
  287. package/lib/workflow-editor/src/taches/end.vue2.cjs +0 -2
  288. package/lib/workflow-editor/src/taches/fork.vue.cjs +0 -19
  289. package/lib/workflow-editor/src/taches/fork.vue2.cjs +0 -2
  290. package/lib/workflow-editor/src/taches/human-decision.vue.cjs +0 -19
  291. package/lib/workflow-editor/src/taches/human-decision.vue2.cjs +0 -2
  292. package/lib/workflow-editor/src/taches/human-task.vue.cjs +0 -17
  293. package/lib/workflow-editor/src/taches/join.vue.cjs +0 -11
  294. package/lib/workflow-editor/src/taches/join.vue2.cjs +0 -2
  295. package/lib/workflow-editor/src/taches/joint.vue.cjs +0 -50
  296. package/lib/workflow-editor/src/taches/joint.vue2.cjs +0 -2
  297. package/lib/workflow-editor/src/taches/start.vue.cjs +0 -9
  298. package/lib/workflow-editor/src/taches/start.vue2.cjs +0 -2
  299. package/lib/workflow-editor/src/taches/subprocess.vue.cjs +0 -17
  300. package/lib/workflow-editor/src/taches/tache-resizer.vue.cjs +0 -27
  301. package/lib/workflow-editor/src/taches/tache-resizer.vue2.cjs +0 -2
  302. package/lib/workflow-editor/src/transitions/broken-line.vue.cjs +0 -28
  303. package/lib/workflow-editor/src/transitions/broken-line.vue2.cjs +0 -2
  304. package/lib/workflow-editor/src/transitions/curve-line.vue.cjs +0 -29
  305. package/lib/workflow-editor/src/transitions/curve-line.vue2.cjs +0 -2
  306. package/lib/workflow-editor/src/transitions/straight-line.vue.cjs +0 -9
  307. package/lib/workflow-editor/src/transitions/transition.vue.cjs +0 -63
  308. package/lib/workflow-editor/src/transitions/transition.vue2.cjs +0 -2
  309. package/lib/workflow-editor/src/transitions/virtual-transition.vue.cjs +0 -13
  310. package/lib/workflow-editor/src/transitions/virtual-transition.vue2.cjs +0 -2
  311. package/lib/workflow-editor/src/util.cjs +0 -139
  312. package/lib/workflow-editor/src/workflow-editor.vue.cjs +0 -191
  313. package/lib/workflow-editor/src/workflow-editor.vue2.cjs +0 -2
  314. package/lib/workflow-editor/src/workflow-history.vue.cjs +0 -28
  315. package/lib/workflow-editor/src/workflow-history.vue2.cjs +0 -2
  316. /package/{dist → public}/vite.svg +0 -0
@@ -1,180 +0,0 @@
1
- import { getLanguageWithLocale as t } from "agilebuilder-ui";
2
- import o from "../../src/i18n/i18n.mjs";
3
- import e from "./json-object-templates/auto-task.mjs";
4
- import n from "./json-object-templates/copy-task.mjs";
5
- import i from "./json-object-templates/decision.mjs";
6
- import r from "./json-object-templates/end.mjs";
7
- import s from "./json-object-templates/fork.mjs";
8
- import a from "./json-object-templates/human-decision.mjs";
9
- import c from "./json-object-templates/human-task.mjs";
10
- import l from "./json-object-templates/join.mjs";
11
- import d from "./json-object-templates/process.mjs";
12
- import f from "./json-object-templates/start.mjs";
13
- import m from "./json-object-templates/subprocess.mjs";
14
- import u from "./json-object-templates/transition.mjs";
15
- function p() {
16
- return window.$store;
17
- }
18
- function h() {
19
- return window.$locale ? o.locale = window.$locale : o.locale = "cn", o.global;
20
- }
21
- function w() {
22
- return [{ name: "Start", label: h().t("workflowEditor.task.start"), icon: "start", type: "primary", class: "", round: true, width: 48, height: 48, color: "#67C23A" }, { name: "HumanTask", label: h().t("workflowEditor.task.humanTask"), icon: "human-task", type: "", class: "", round: true, width: 80, height: 40, color: "#000" }, { name: "Decision", label: h().t("workflowEditor.task.conditionJudgment"), icon: "decision", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Fork", label: h().t("workflowEditor.task.branch"), icon: "fork", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Join", label: h().t("workflowEditor.task.converge"), icon: "join", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Subprocess", label: h().t("workflowEditor.task.subprocess"), icon: "subprocess", type: "warning", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "HumanDecision", label: h().t("workflowEditor.task.manualJudgment"), icon: "human-decision", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "CopyTask", label: h().t("workflowEditor.task.cCtask"), icon: "copy-task", type: "", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "AutoTask", label: h().t("workflowEditor.task.autoTask"), icon: "human-task", type: "", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "End", label: h().t("workflowEditor.task.end"), icon: "end", type: "danger", class: "workflow-end-button", round: true, width: 48, height: 48, color: "#F56C6C" }];
23
- }
24
- function g(t2) {
25
- const o2 = w().filter((o3) => o3.name === t2);
26
- return o2.length > 0 ? o2[0] : null;
27
- }
28
- function y(t2, o2) {
29
- switch ("string" == typeof t2 && (t2 = function(t3) {
30
- return p().getters["wfEditor/taches"].filter((o3) => o3.id === t3)[0];
31
- }(t2)), o2) {
32
- case "up":
33
- case "top":
34
- return { position: "up", x: t2.x + t2.width / 2, y: t2.y };
35
- case "right":
36
- return { position: "right", x: t2.x + t2.width, y: t2.y + t2.height / 2 };
37
- case "down":
38
- case "bottom":
39
- return { position: "down", x: t2.x + t2.width / 2, y: t2.y + t2.height };
40
- case "left":
41
- return { position: "left", x: t2.x, y: t2.y + t2.height / 2 };
42
- default:
43
- return { position: "", x: t2.x, y: t2.y };
44
- }
45
- }
46
- function k(t2) {
47
- const o2 = document.getElementById("svg").getScreenCTM();
48
- return { x: (t2.clientX - o2.e) / o2.a, y: (t2.clientY - o2.f) / o2.d };
49
- }
50
- function b(t2, o2) {
51
- if (!t2 || !o2)
52
- return {};
53
- const { x: e2, y: n2 } = t2, { x: i2, y: r2 } = o2;
54
- var s2 = { x: 0, y: 0, width: Math.abs(i2 - e2), height: Math.abs(r2 - n2) };
55
- return e2 <= i2 ? n2 <= r2 ? (s2.x = e2, s2.y = n2) : (s2.x = e2, s2.y = r2) : n2 >= r2 ? (s2.x = i2, s2.y = r2) : (s2.x = i2, s2.y = n2), s2;
56
- }
57
- function j(t2) {
58
- let o2, e2, n2, i2;
59
- o2 = e2 = 1e4, n2 = i2 = 0;
60
- for (const r2 of t2)
61
- o2 > r2.x && (o2 = r2.x), e2 > r2.y && (e2 = r2.y), n2 < r2.x + r2.width && (n2 = r2.x + r2.width), i2 < r2.y + r2.height && (i2 = r2.y + r2.height);
62
- return { x: o2 - 10, y: e2 - 10, width: n2 - o2 + 20, height: i2 - e2 + 20 };
63
- }
64
- function E(t2, o2) {
65
- T(), o2.$parent.region = null, o2.$parent.showHistory || (o2.model.isSelected = true), p().getters["wfEditor/selectedTaches"].push(o2.model);
66
- const e2 = k(t2);
67
- p().commit("wfEditor/setMouseDownPosition", e2), p().commit("wfEditor/setMovingTache", true);
68
- }
69
- function x() {
70
- p().commit("wfEditor/setMovingTache", false), p().commit("wfEditor/setMouseDownPosition", null);
71
- }
72
- function T() {
73
- !function() {
74
- for (const t2 of p().getters["wfEditor/selectedTaches"])
75
- t2.isSelected = false;
76
- p().commit("wfEditor/setSelectedTaches", []);
77
- }(), p().getters["wfEditor/selectedTransition"] && (p().getters["wfEditor/selectedTransition"].isSelected = false), p().commit("wfEditor/setSelectedTransition", null);
78
- }
79
- function S(t2) {
80
- Object.getOwnPropertyNames(t2).forEach(function(o2) {
81
- if ("object" == typeof t2[o2]) {
82
- if (void 0 !== t2[o2]._text)
83
- return void (t2[o2] = t2[o2]._text);
84
- if (Object.keys(t2[o2]).length > 0)
85
- S(t2[o2]);
86
- else {
87
- ["variables", "events", "autoFilledFields"].indexOf(o2) < 0 && (t2[o2] = "");
88
- }
89
- }
90
- });
91
- }
92
- function J(t2, o2) {
93
- o2 || (o2 = []), Array.isArray(o2) || (o2 = [o2]);
94
- const e2 = p().getters["wfEditor/taches"];
95
- for (const n2 of o2) {
96
- const o3 = { id: n2.attr.id, name: n2.attr.name, x: n2.g.x, y: n2.g.y, width: n2.g.width, height: n2.g.height, type: t2, isSelected: false, ref: n2 };
97
- e2.push(o3);
98
- }
99
- }
100
- function D(t2) {
101
- t2 && (J("HumanTask", t2.humanTask), J("Decision", t2.decision), J("Fork", t2.fork), J("Join", t2.join), J("Subprocess", t2.subprocess), J("HumanDecision", t2.humanDecision), J("CopyTask", t2.copyTask), J("AutoTask", t2.autoTask), J("Start", t2.start), J("End", t2.end), function(t3, o2) {
102
- o2 || (o2 = []), Array.isArray(o2) || (o2 = [o2]);
103
- const e2 = p().getters["wfEditor/transitions"];
104
- for (const t4 of o2) {
105
- const o3 = t4.basicProperties.remark || "", n2 = { id: t4.attr.id, startJoint: { parent: P(t4.attr.from), position: t4.g.fromJoint }, endJoint: { parent: P(t4.attr.to), position: t4.g.toJoint }, isSelected: false, remark: o3, lineInfo: { type: t4.g.lineType, controlPoint: null }, ref: t4 };
106
- if ("CurveLine" === t4.g.lineType && t4.g.coordinate) {
107
- const o4 = t4.g.coordinate.split(",");
108
- n2.lineInfo.controlPoint = { x: o4[0], y: o4[1] };
109
- } else if ("BrokenLine" === t4.g.lineType && t4.g.coordinate) {
110
- const o4 = t4.g.coordinate.split(";"), e3 = [];
111
- o4.forEach((t5) => {
112
- if ("" !== t5) {
113
- const o5 = t5.split(",");
114
- e3.push({ x: o5[0], y: o5[1] });
115
- }
116
- }), n2.lineInfo.controlPoint = e3;
117
- }
118
- e2.push(n2);
119
- }
120
- }(0, t2.transition));
121
- }
122
- function M(t2) {
123
- return p().getters["wfEditor/transitions"].filter((o2) => o2.startJoint.parent.id === t2 || o2.ref.attr.from === t2);
124
- }
125
- function v(t2) {
126
- return p().getters["wfEditor/transitions"].filter((o2) => o2.endJoint.parent.id === t2 || o2.ref.attr.to === t2);
127
- }
128
- function P(t2) {
129
- const o2 = p().getters["wfEditor/taches"].filter((o3) => o3.ref.attr.id === t2);
130
- return o2.length > 0 ? o2[0] : null;
131
- }
132
- function A(t2) {
133
- return JSON.parse(JSON.stringify(t2));
134
- }
135
- function C(t2, o2) {
136
- v(o2).map((o3) => {
137
- o3.ref.attr.to = t2, o3.ref.attr.id = "flow_" + o3.ref.attr.from + "_to_" + o3.ref.attr.to, o3.id = o3.ref.attr.id;
138
- });
139
- return M(o2).map((o3) => {
140
- o3.ref.attr.from = t2, o3.ref.attr.id = "flow_" + o3.ref.attr.from + "_to_" + o3.ref.attr.to, o3.id = o3.ref.attr.id;
141
- }), true;
142
- }
143
- function I(t2) {
144
- const o2 = P(t2.formModel.id);
145
- if (o2 && o2.id !== t2.id)
146
- return t2.$alert(h().t("workflowEditorMessage.itIsTheSameAsTheExistingLink", { name: o2.name })), void (t2.formModel.id = t2.id);
147
- C(t2.formModel.id, t2.id), t2.$emit("update:id", t2.formModel.id);
148
- }
149
- function _(o2, e2) {
150
- let n2 = "";
151
- if (o2.processI18n && o2.model.ref && o2.model.ref.basicProperties && o2.model.ref.basicProperties.i18nKey) {
152
- const i2 = o2.model.ref.basicProperties.i18nKey, r2 = t();
153
- o2.processI18n[i2] && (n2 = o2.processI18n[i2][r2]), n2 || (n2 = e2);
154
- } else
155
- n2 = e2;
156
- return n2;
157
- }
158
- const H = { newProcess: d, newHumanTask: c, newDecision: i, newStart: f, newEnd: r, newTransition: u, newSubprocess: m, newFork: s, newJoin: l, newHumanDecision: a, newCopyTask: n, newAutoTask: e };
159
- export {
160
- T as clearAllSelectedComponents,
161
- A as deepCopy,
162
- x as endDragTache,
163
- v as findIncomingTransitionsByTacheId,
164
- M as findOutgoingTransitionsByTacheId,
165
- P as findTacheById,
166
- g as getComponentInfo,
167
- w as getComponentList,
168
- h as getI18n,
169
- y as getJoint,
170
- k as getMousePosition,
171
- j as getRealRegion,
172
- b as getVirtualRegion,
173
- D as initializeProcessData,
174
- H as processTemplate,
175
- S as removeTextProperty,
176
- E as startDragTache,
177
- C as updateTransitionsWhenTacheIdChanged,
178
- I as validateTacheCode,
179
- _ as watchShowName
180
- };
@@ -1,205 +0,0 @@
1
- import "./assets/wf-editor-icons.mjs";
2
- import { mapGetters as e, mapMutations as t } from "vuex";
3
- import { getComponentInfo as s, processTemplate as o, initializeProcessData as i, removeTextProperty as n, getMousePosition as r } from "./util.mjs";
4
- import a from "./main/toolbox.vue.mjs";
5
- import l from "./main/canvas.vue.mjs";
6
- import d from "./main/icon-svg.vue.mjs";
7
- import c from "./main/context-menu.vue.mjs";
8
- import h from "xml-js";
9
- import f from "./process-service.mjs";
10
- import m from "file-saver";
11
- import p from "prismjs";
12
- import u from "./main/admin-save-dialog.vue.mjs";
13
- import { authApi as w, http as b } from "agilebuilder-ui";
14
- import { resolveComponent as y, resolveDirective as g, openBlock as C, createElementBlock as v, createVNode as x, withCtx as P, createBlock as k, createTextVNode as S, toDisplayString as V, createCommentVNode as I, withDirectives as $, createElementVNode as D, Fragment as E, renderList as T, withModifiers as M, normalizeStyle as A } from "vue";
15
- import "./workflow-editor.vue2.mjs";
16
- import F from "../../_virtual/_plugin-vue_export-helper.mjs";
17
- const X = { name: "WorkflowEditor", components: { WorkflowCanvas: l, Toolbox: a, IconSvg: d, ContextMenu: c, AdminSaveDialog: u }, props: { code: { type: String, default: null }, version: { type: Number, default: null }, id: { type: Number, default: null }, readonly: { type: Boolean, default: false }, systemCode: { type: String, default: null }, systemPublishVersion: { type: Number, default: null }, pageCode: { type: String, default: null } }, data: function() {
18
- return { activeTab: "canvas", count: 1, currentPosition: { x: 0, y: 0 }, process: null, definitionId: null, xml: "", contextMenuPosition: null, isAdminSave: false, isShowEnable: false, defVersion: 0, workflowDefVersionList: [], isShowDefVersionList: false, canvasKey: 0 };
19
- }, computed: { ...e("wfEditor", ["componentToDraw", "taches", "selectedTaches", "transitions", "contextMenuVisible", "systemVersion", "tableCode", "pageCode", "sourceComponentType"]), ...e(["sidebar"]), componentInfo() {
20
- return s(this.componentToDraw);
21
- } }, watch: { activeTab(e2) {
22
- "xml" === e2 && (this.xml = this.getProcessXml(), this.$nextTick(function() {
23
- p.highlightElement(this.$refs.xml);
24
- }));
25
- }, sourceComponentType(e2) {
26
- e2 && this.copyTache();
27
- } }, created: function() {
28
- w.setSessionCache("wf_editor_systemVersion", this.systemPublishVersion), this.setPageCode(this.pageCode), this.systemCode && this.setSystemCode(this.systemCode), this.systemCode && this.getWorkflowDefVersionList(), this.clearCanvas(), this.id && (this.definitionId = this.id), this.code, this.id, this.code || this.id ? this.initShowDefinitionWhenUpdate(this.id, this.code, this.version) : (this.isShowEnable = false, window.$store.commit("wfEditor/setIsCreateDefinition", "true"), this.process = o.newProcess(), i(this.process));
29
- }, mounted: function() {
30
- }, methods: { ...t("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setSystemCode", "setSystemVersion", "setProcessCode", "setPageCode", "setSourceComponentForCopy"]), initShowDefinitionWhenUpdate(e2, t2, s2) {
31
- window.$store.commit("wfEditor/setIsCreateDefinition", "false");
32
- let o2 = this.baseAPI + "/wf-editor/open-xmls/with-definitions";
33
- o2 = this.packageUrlParam(o2, e2, t2, s2), this.$http.get(o2).then((e3) => {
34
- const t3 = e3.definition;
35
- if (t3) {
36
- this.definitionId = t3.id, this.defVersion = t3.definitionVersion, window.$store.commit("wfEditor/setTableCode", t3.tableCode);
37
- const e4 = t3.enable;
38
- this.isShowEnable = !e4 || "ENABLE" !== e4, t3.formCode ? window.$store.commit("wfEditor/setIsHandleCreate", "true") : window.$store.commit("wfEditor/setIsHandleCreate", "false");
39
- }
40
- const s3 = e3.xml;
41
- this.initProcessByXml(s3, t3), this.canvasKey++;
42
- });
43
- }, getWorkflowDefVersionList() {
44
- this.isShowDefVersionList = false;
45
- let e2 = { wfDefinitionCode: this.code, publishVersion: this.systemPublishVersion };
46
- b.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/workflow-definitions/version-list", e2).then((e3) => {
47
- this.workflowDefVersionList = e3, e3.length > 0 && !this.defVersion && (this.defVersion = e3[0].definitionVersion), this.isShowDefVersionList = true;
48
- });
49
- }, showContextMenu(e2) {
50
- this.setContextMenuVisible(true);
51
- const t2 = this.$refs.wfEditor.getBoundingClientRect();
52
- this.contextMenuPosition = { x: e2.clientX - t2.x, y: e2.clientY - t2.y };
53
- }, changeDefVersion(e2) {
54
- const t2 = this.workflowDefVersionList.filter((t3) => t3.definitionVersion === e2);
55
- if (t2 && t2.length > 0) {
56
- const e3 = t2[0];
57
- this.clearCanvas(), this.initShowDefinitionWhenUpdate(e3.id, e3.code, e3.definitionVersion), this.$emit("changeDefVersion", e3);
58
- }
59
- }, initProcessByXml(e2, t2) {
60
- if (e2) {
61
- const t3 = { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 }, s2 = h.xml2js(e2, t3);
62
- n(s2.process), this.process = s2.process;
63
- } else
64
- this.process = o.newProcess(), this.initProcessBaseInfo(t2);
65
- this.process && this.process.properties && this.process.properties.basicProperties ? this.setSystemCode(this.process.properties.basicProperties.systemCode) : this.setSystemCode(this.systemCode), this.process && this.process.attr && this.setProcessCode(this.process.attr.code), this.fetchFormFields(), this.clearCanvas(), i(this.process), this.count = this.getMaxCount() + 1;
66
- }, initProcessBaseInfo(e2) {
67
- this.process.attr.name = e2.name, this.process.attr.code = e2.code, this.process.properties.basicProperties.systemCode = e2.systemCode, this.pageCode && (this.process.properties.parameterSettings || (this.process.properties.parameterSettings = {}), this.process.properties.parameterSettings.doTask || (this.process.properties.parameterSettings.doTask = {}), this.process.properties.parameterSettings.doTask.url = "page:" + this.pageCode);
68
- }, fetchFormFields() {
69
- const e2 = this.process.properties.basicProperties, t2 = e2.formCode, s2 = e2.formVersion;
70
- this.tableCode, t2 && "" !== t2 && s2 ? f.fetchFormFields(e2.formCode, e2.formVersion, null, this.systemPublishVersion) : this.tableCode && f.fetchFormFields(null, null, this.tableCode, this.systemPublishVersion);
71
- }, packageUrlParam: (e2, t2, s2, o2) => (t2 ? e2 = e2 + "?id=" + t2 : s2 && (e2 = e2 + "?code=" + s2 + "&version=" + o2), e2), getProcessXml() {
72
- const e2 = { start: [], humanTask: [], decision: [], transition: [], fork: [], join: [], subprocess: [], humanDecision: [], copyTask: [], autoTask: [], end: [] };
73
- e2.attr = this.process.attr, e2.properties = this.process.properties, this.taches.map((t3) => {
74
- const s2 = t3.type;
75
- e2[s2.charAt(0).toLowerCase() + s2.substring(1)].push(t3.ref), t3.ref.g = { x: t3.x, y: t3.y, width: t3.width, height: t3.height };
76
- }), this.transitions.map((t3) => {
77
- if (e2.transition.push(t3.ref), t3.ref.g = { fromJoint: t3.startJoint.position, toJoint: t3.endJoint.position, coordinate: "", lineType: t3.lineInfo.type }, "CurveLine" === t3.lineInfo.type && t3.lineInfo.controlPoint)
78
- t3.ref.g.coordinate = t3.lineInfo.controlPoint.x + "," + t3.lineInfo.controlPoint.y;
79
- else if ("BrokenLine" === t3.lineInfo.type && t3.lineInfo.controlPoint) {
80
- let e3 = "";
81
- t3.lineInfo.controlPoint.forEach((t4) => {
82
- e3 += t4.x + "," + t4.y + ";";
83
- }), t3.ref.g.coordinate = e3;
84
- }
85
- });
86
- let t2 = h.json2xml({ process: e2 }, { attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 });
87
- return t2 = '<?xml version="1.0" encoding="utf-8"?>\n' + t2, t2;
88
- }, saveXml() {
89
- const e2 = this.getProcessXml();
90
- if (this.code || this.id || this.definitionId)
91
- this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/updates").then(() => {
92
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.$alert(this.$t("workflowEditorMessage.updateSuccessful"));
93
- });
94
- else {
95
- const t2 = { xml: e2, publishVersion: this.systemPublishVersion };
96
- this.$http.post(this.baseAPI + "/wf-editor/workflow-definitions", t2).then((e3) => {
97
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.definitionId = e3.id, this.$alert(this.$t("workflowEditorMessage.savedSuccessfully"));
98
- });
99
- }
100
- }, saveWf(e2, t2, s2) {
101
- return new Promise((s3, o2) => {
102
- const i2 = this.packageSaveXmlParam(e2);
103
- this.$http.post(t2, i2).then((e3) => {
104
- this.definitionId = e3.id, s3();
105
- });
106
- });
107
- }, packageSaveXmlParam(e2) {
108
- const t2 = { xml: e2, publishVersion: this.systemPublishVersion };
109
- return this.definitionId ? t2.id = this.definitionId : this.id ? t2.id = this.id : this.code && (t2.code = this.code, t2.version = this.version), t2;
110
- }, adminSave() {
111
- const e2 = this.getProcessXml();
112
- if (this.code || this.id || this.definitionId) {
113
- const t2 = this.baseAPI + "/wf-editor/workflow-definitions/states", s2 = {};
114
- this.definitionId ? s2.id = this.definitionId : this.id ? s2.id = this.id : this.code && (s2.code = this.code, s2.version = this.version), this.$http.post(t2, s2).then((t3) => {
115
- "DRAFT" === t3 ? this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/updates").then(() => {
116
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.$alert(this.$t("workflowEditorMessage.updateSuccessful"));
117
- }) : this.isAdminSave = true;
118
- });
119
- } else {
120
- const t2 = { xml: e2, publishVersion: this.systemPublishVersion };
121
- this.$http.post(this.baseAPI + "/wf-editor/workflow-definitions", t2).then((e3) => {
122
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.definitionId = e3.id, this.$alert(this.$t("workflowEditorMessage.savedSuccessfully"));
123
- });
124
- }
125
- }, updateWfVersion() {
126
- const e2 = this.getProcessXml();
127
- this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/update-version").then(() => {
128
- window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.isAdminSave = false, this.$alert(this.$t("workflowEditorMessage.updateVersionSuccessful"));
129
- });
130
- }, addWfVersion() {
131
- const e2 = this.getProcessXml();
132
- this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/updates").then(() => {
133
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.isAdminSave = false, this.$alert(this.$t("workflowEditorMessage.addVersionSuccessful"));
134
- });
135
- }, exportProcessFromClient() {
136
- const e2 = new Blob([this.getProcessXml()], { type: "text/xml;charset=utf-8" });
137
- m.saveAs(e2, this.process.attr.name + ".xml");
138
- }, exportProcess() {
139
- const e2 = this.getProcessXml();
140
- this.$http({ method: "post", url: this.baseAPI + "/wf-editor/save-as-xmls", data: { xmlContent: e2 } }).then((e3) => {
141
- this.download(e3), this.$t("workflowEditorMessage.exportSucceeded");
142
- });
143
- }, download(e2) {
144
- if (!e2)
145
- return;
146
- const t2 = window.URL.createObjectURL(new Blob([e2])), s2 = document.createElement("a");
147
- s2.style.display = "none", s2.href = t2, s2.setAttribute("download", "myXml.xml"), document.body.appendChild(s2), s2.click();
148
- }, uploadSuccess(e2, t2, s2) {
149
- const o2 = e2;
150
- this.clearCanvas(), this.initProcessByXml(o2), this.$refs.upload.clearFiles();
151
- }, getCurrentPosition(e2) {
152
- if (this.componentToDraw) {
153
- const t2 = this.$refs.wfEditor.getBoundingClientRect();
154
- this.currentPosition = { x: e2.clientX - t2.x - 22, y: e2.clientY - t2.y - 22 };
155
- }
156
- }, startDrag(e2) {
157
- this.getCurrentPosition(e2);
158
- }, drag(e2) {
159
- this.getCurrentPosition(e2);
160
- }, endDrag() {
161
- this.componentToDraw && this.setComponentToDraw("");
162
- }, addTache(e2) {
163
- if (this.componentToDraw) {
164
- const t2 = r(e2), s2 = o["new" + this.componentToDraw]();
165
- s2.attr.id = this.componentToDraw.charAt(0).toLowerCase() + this.componentToDraw.substring(1) + "_" + this.count;
166
- const i2 = { id: s2.attr.id, name: s2.attr.name, x: t2.x - this.componentInfo.width / 2, y: t2.y - this.componentInfo.height / 2, width: this.componentInfo.width, height: this.componentInfo.height, type: this.componentToDraw, isSelected: false };
167
- i2.ref = s2, this.taches.push(i2), this.count++;
168
- }
169
- }, copyTache() {
170
- const e2 = this.selectedTaches && this.selectedTaches.length > 0 ? this.selectedTaches[0] : null;
171
- if (!e2)
172
- return;
173
- const t2 = JSON.parse(JSON.stringify(e2)), s2 = t2.type, o2 = t2.ref;
174
- o2.attr.id = s2.charAt(0).toLowerCase() + s2.substring(1) + "_" + this.count, o2.attr.name = e2.name + "_copy", t2.id = o2.attr.id, t2.name = o2.attr.name, t2.x = e2.x + 20, t2.y = e2.y + 20, t2.isSelected = false, t2.ref = o2, this.taches.push(t2), this.count++, this.setSourceComponentForCopy("");
175
- }, clearStatus() {
176
- this.componentToDraw && this.setComponentToDraw("");
177
- }, getMaxCount() {
178
- let e2 = 0;
179
- return this.taches.map((t2) => {
180
- let s2 = t2.id.substring(t2.id.lastIndexOf("_") + 1);
181
- s2 = +s2, e2 < s2 && (e2 = s2);
182
- }), e2;
183
- }, selectProcessFile() {
184
- this.$refs.processFile.click();
185
- }, openXmlFromClient() {
186
- if ("" === this.$refs.processFile.value)
187
- return;
188
- const e2 = this.$refs.processFile.files[0], t2 = new FileReader();
189
- t2.readAsText(e2);
190
- const s2 = this;
191
- t2.onload = function() {
192
- s2.clearCanvas(), s2.initProcessByXml(t2.result), s2.$refs.processFile.value = "";
193
- };
194
- }, enableWf() {
195
- this.definitionId && this.$http.put(this.baseAPI + "/wf-editor/workflow-editors/" + this.definitionId + "/states").then(() => {
196
- this.getWorkflowDefVersionList(), this.isShowEnable = false, this.$alert(this.$t("workflowEditorMessage.enabledSuccessfully"));
197
- });
198
- } } }, _ = { style: { width: "100%", height: "100%", background: "#fff" } }, L = { key: 0, class: "xml line-numbers" };
199
- const W = F(X, [["render", function(e2, t2, s2, o2, i2, n2) {
200
- const r2 = y("el-button"), a2 = y("el-option"), l2 = y("el-select"), d2 = y("el-row"), c2 = y("toolbox"), h2 = y("workflow-canvas"), f2 = y("el-tab-pane"), m2 = y("el-tabs"), p2 = y("icon-svg"), u2 = y("context-menu"), w2 = y("admin-save-dialog"), b2 = g("permission");
201
- return C(), v("div", { ref: "wfEditor", style: { position: "relative", height: "100%" }, onMousedown: t2[9] || (t2[9] = (t3) => e2.setContextMenuVisible(false)), onMousewheel: t2[10] || (t2[10] = (t3) => e2.setContextMenuVisible(false)) }, [x(d2, { class: "button-area" }, { default: P(() => [s2.readonly ? I("", true) : (C(), k(r2, { key: 0, type: "primary", onClick: n2.saveXml }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.save")), 1)]), _: 1 }, 8, ["onClick"])), s2.readonly ? I("", true) : $((C(), k(r2, { key: 1, class: "button--default", onClick: n2.adminSave }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.adminSave")), 1)]), _: 1 }, 8, ["onClick"])), [[b2, "wf.workflowDefinition.adminSave"]]), e2.isShowEnable ? (C(), k(r2, { key: 2, class: "button--default", onClick: n2.enableWf }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.enable")), 1)]), _: 1 }, 8, ["onClick"])) : I("", true), x(r2, { class: "button--default", onClick: n2.exportProcessFromClient }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.export")), 1)]), _: 1 }, 8, ["onClick"]), s2.readonly ? I("", true) : (C(), k(r2, { key: 3, class: "button--default", onClick: n2.selectProcessFile }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.open")) + " ", 1), D("input", { ref: "processFile", type: "file", name: "processFile", accept: ".xml", style: { display: "none" }, onChange: t2[0] || (t2[0] = (...e3) => n2.openXmlFromClient && n2.openXmlFromClient(...e3)) }, null, 544)]), _: 1 }, 8, ["onClick"])), x(r2, { type: "primary", class: "button--return", onClick: t2[1] || (t2[1] = (t3) => e2.$emit("back")) }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.return")), 1)]), _: 1 }), e2.isShowDefVersionList ? (C(), k(l2, { key: 4, modelValue: e2.defVersion, "onUpdate:modelValue": t2[2] || (t2[2] = (t3) => e2.defVersion = t3), style: { "padding-left": "10px", width: "200px" }, onChange: n2.changeDefVersion }, { default: P(() => [(C(true), v(E, null, T(e2.workflowDefVersionList, (e3) => (C(), k(a2, { key: e3.definitionVersion, label: e3.definitionVersion, value: e3.definitionVersion }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onChange"])) : I("", true)]), _: 1 }), D("div", { class: "main", onMousedown: t2[4] || (t2[4] = (...e3) => n2.startDrag && n2.startDrag(...e3)), onMousemove: t2[5] || (t2[5] = (...e3) => n2.drag && n2.drag(...e3)), onMouseup: t2[6] || (t2[6] = (...e3) => n2.endDrag && n2.endDrag(...e3)), onMouseleave: t2[7] || (t2[7] = (...e3) => n2.clearStatus && n2.clearStatus(...e3)) }, [s2.readonly ? I("", true) : (C(), k(c2, { key: 0, class: "toolbox", onselectstart: "return false", oncontextmenu: "return false" })), (C(), v("section", { class: "tabBox", key: e2.canvasKey }, [x(m2, { modelValue: e2.activeTab, "onUpdate:modelValue": t2[3] || (t2[3] = (t3) => e2.activeTab = t3), class: "tabs" }, { default: P(() => [x(f2, { label: e2.$t("workflowEditorPublicModel.flowChart"), name: "canvas", class: "tab-pane" }, { default: P(() => [x(h2, { onselectstart: "return false", process: e2.process, class: "canvas", onMouseup: n2.addTache, onContextmenu: M(n2.showContextMenu, ["prevent"]) }, null, 8, ["process", "onMouseup", "onContextmenu"])]), _: 1 }, 8, ["label"]), x(f2, { label: "XML", name: "xml", class: "tab-pane" }, { default: P(() => [D("div", _, ["xml" === e2.activeTab ? (C(), v("pre", L, [D("code", { ref: "xml", class: "language-xml" }, V(e2.xml), 513)])) : I("", true)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]))], 32), e2.componentToDraw ? (C(), k(p2, { key: 0, style: A({ height: n2.componentInfo.height, width: n2.componentInfo.width, color: n2.componentInfo.color, left: e2.currentPosition.x + "px", top: e2.currentPosition.y + "px" }), icon: n2.componentInfo.icon, class: "component-icon" }, null, 8, ["style", "icon"])) : I("", true), e2.contextMenuVisible ? (C(), k(u2, { key: 1, style: A({ position: "absolute", left: e2.contextMenuPosition.x + "px", top: e2.contextMenuPosition.y + "px" }) }, null, 8, ["style"])) : I("", true), e2.isAdminSave ? (C(), k(w2, { key: 2, onClose: t2[8] || (t2[8] = (t3) => e2.isAdminSave = false), onUpdate: n2.updateWfVersion, onAdd: n2.addWfVersion }, null, 8, ["onUpdate", "onAdd"])) : I("", true)], 544);
202
- }], ["__scopeId", "data-v-865cb4ee"]]);
203
- export {
204
- W as default
205
- };
@@ -1,4 +0,0 @@
1
- const t = "";
2
- export {
3
- t as default
4
- };
@@ -1,35 +0,0 @@
1
- import "./assets/wf-editor-icons.mjs";
2
- import { mapGetters as s, mapMutations as t } from "vuex";
3
- import { processTemplate as e, initializeProcessData as o, removeTextProperty as r } from "./util.mjs";
4
- import i from "./main/wf-history-canvas.vue.mjs";
5
- import n from "xml-js";
6
- import a from "./api.mjs";
7
- import { resolveComponent as c, openBlock as l, createElementBlock as h, createElementVNode as u, createVNode as m, withModifiers as p } from "vue";
8
- import "./workflow-history.vue2.mjs";
9
- import d from "../../_virtual/_plugin-vue_export-helper.mjs";
10
- const f = { name: "WorkflowHistory", components: { WfHistoryCanvas: i }, props: { id: { type: Number, default: null } }, data: function() {
11
- return { process: null, histories: [], currentTasks: [], allProcessI18n: null };
12
- }, computed: { ...s("wfEditor", ["componentToDraw", "taches", "transitions", "contextMenuVisible"]), ...s(["sidebar"]) }, watch: {}, created: function() {
13
- this.showHistory();
14
- }, mounted: function() {
15
- }, methods: { ...a, ...t("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setProcessI18n"]), showHistory() {
16
- this.clearCanvas(), this.id ? this.$http.get(this.baseAPI + "/wf-editor/i18n-settings/get-bundle-info?workflowId=" + this.id).then((s2) => {
17
- this.allProcessI18n = s2;
18
- const t2 = this.baseAPI + "/wf-editor/instance-histories/" + this.id;
19
- this.$http.get(t2).then((t3) => {
20
- let e2;
21
- this.initProcessByXml(t3.xml), t3.histories && t3.histories.length > 0 && (e2 = t3.histories[0].bundleCode), !e2 && t3.currentTasks && t3.currentTasks.length > 0 && (e2 = t3.currentTasks[0].bundleCode), e2 && this.setProcessI18n(s2[e2]), this.histories = t3.histories, this.currentTasks = t3.currentTasks;
22
- });
23
- }) : (this.process = e.newProcess(), o(this.process));
24
- }, showContextMenu(s2) {
25
- }, initProcessByXml(s2) {
26
- const t2 = n.xml2js(s2, { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 });
27
- r(t2.process), this.process = t2.process, o(this.process);
28
- } } }, w = { ref: "wfEditor", style: { position: "relative", height: "100%" } }, v = { class: "main" };
29
- const y = d(f, [["render", function(s2, t2, e2, o2, r2, i2) {
30
- const n2 = c("wf-history-canvas");
31
- return l(), h("div", w, [u("div", v, [u("section", null, [m(n2, { onselectstart: "return false", process: s2.process, histories: s2.histories, "current-tasks": s2.currentTasks, "all-process-i18n": s2.allProcessI18n, "show-history": true, class: "canvas", onContextmenu: p(i2.showContextMenu, ["prevent"]) }, null, 8, ["process", "histories", "current-tasks", "all-process-i18n", "onContextmenu"])])])], 512);
32
- }], ["__scopeId", "data-v-6658e14b"]]);
33
- export {
34
- y as default
35
- };
@@ -1,4 +0,0 @@
1
- const t = "";
2
- export {
3
- t as default
4
- };
@@ -1,7 +0,0 @@
1
- "use strict";
2
- module.exports = (t, o) => {
3
- const s = t.__vccOpts || t;
4
- for (const [t2, c] of o)
5
- s[t2] = c;
6
- return s;
7
- };
package/lib/index.cjs DELETED
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const r = require("./workflow-editor/index.cjs"), o = require("./plugins/index.cjs"), e = require("./src/i18n/langs/cn.cjs"), t = require("./src/i18n/langs/en.cjs"), i = r.WorkflowEditor, s = r.WorkflowHistory, n = r.wfEditorStore, l = [i, s], c = function(r2) {
4
- c.installed || (l.forEach((o2) => {
5
- r2.component(o2.name, o2);
6
- }), r2.use(o));
7
- };
8
- exports.wfEditorCn = e, exports.wfEditorEn = t, exports.WorkflowEditor = i, exports.WorkflowHistory = s, exports.wfEditorInstall = c, exports.wfEditorStore = n;