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,63 +0,0 @@
1
- "use strict";
2
- const t = require("../util.cjs"), e = require("vuex"), o = require("./straight-line.vue.cjs"), i = require("./curve-line.vue.cjs"), n = require("./broken-line.vue.cjs"), s = require("vue");
3
- require("./transition.vue2.cjs");
4
- const r = require("../../../_virtual/_plugin-vue_export-helper.cjs"), a = { name: "Transition", components: { StraightLine: o, CurveLine: i, BrokenLine: n }, props: { model: { type: Object, default: null } }, data() {
5
- const t2 = this.getTextPoint();
6
- return { text: { x: t2.x, y: t2.y }, name: this.model.remark };
7
- }, computed: { ...e.mapGetters("wfEditor", ["draggerToMove", "processI18n"]), draggers() {
8
- const e2 = t.getJoint(this.model.startJoint.parent, this.model.startJoint.position);
9
- e2.position = "start";
10
- const o2 = t.getJoint(this.model.endJoint.parent, this.model.endJoint.position);
11
- return o2.position = "end", [e2, o2];
12
- }, path() {
13
- return "M" + this.draggers[0].x + " " + this.draggers[0].y + " L" + this.draggers[1].x + " " + this.draggers[1].y;
14
- } }, created() {
15
- this.name = t.watchShowName(this, this.name);
16
- }, mounted() {
17
- this.$watch("model.remark", function(e2) {
18
- if (this.name = t.watchShowName(this, e2), this.name && "" !== this.name) {
19
- const t2 = this.getTextPoint();
20
- this.text.x = t2.x, this.text.y = t2.y;
21
- }
22
- }), this.$watch("model.lineInfo.type", function(t2) {
23
- const e2 = this.getTextPoint();
24
- this.text.x = e2.x, this.text.y = e2.y;
25
- }), this.$watch("model.lineInfo.controlPoint", function(t2) {
26
- const e2 = this.getTextPoint();
27
- this.text.x = e2.x, this.text.y = e2.y;
28
- }), this.$watch("model.startJoint.parent.x", function(t2) {
29
- const e2 = this.getTextPoint();
30
- this.text.x = e2.x, this.text.y = e2.y;
31
- }), this.$watch("model.startJoint.parent.y", function(t2) {
32
- const e2 = this.getTextPoint();
33
- this.text.x = e2.x, this.text.y = e2.y;
34
- }), this.$watch("model.endJoint.parent.x", function(t2) {
35
- const e2 = this.getTextPoint();
36
- this.text.x = e2.x, this.text.y = e2.y;
37
- }), this.$watch("model.endJoint.parent.y", function(t2) {
38
- const e2 = this.getTextPoint();
39
- this.text.x = e2.x, this.text.y = e2.y;
40
- });
41
- }, methods: { ...e.mapMutations("wfEditor", ["setMouseDownPosition", "setDraggerToMove", "setSelectedTransition", "setPropertiesEditorFor"]), getTextPoint() {
42
- const e2 = t.getJoint(this.model.startJoint.parent, this.model.startJoint.position), o2 = t.getJoint(this.model.endJoint.parent, this.model.endJoint.position);
43
- let i2 = e2.x < o2.x ? e2.x : o2.x, n2 = e2.y < o2.y ? e2.y : o2.y, s2 = i2 + Math.abs(e2.x - o2.x) / 2, r2 = n2 + Math.abs(e2.y - o2.y) / 2;
44
- if ("CurveLine" === this.model.lineInfo.type) {
45
- const t2 = this.model.lineInfo.controlPoint;
46
- t2 && (i2 = e2.x < t2.x ? e2.x : parseFloat(t2.x), n2 = e2.y < t2.y ? e2.y : parseFloat(t2.y), s2 = i2 + Math.abs(e2.x - t2.x) / 2 + 10, r2 = n2 + Math.abs(e2.y - t2.y) / 2 - 10);
47
- } else if ("BrokenLine" === this.model.lineInfo.type && this.model.lineInfo.controlPoint && this.model.lineInfo.controlPoint.length > 0) {
48
- const t2 = this.model.lineInfo.controlPoint[0];
49
- t2 && (i2 = e2.x < t2.x ? e2.x : parseFloat(t2.x), n2 = e2.y < t2.y ? e2.y : parseFloat(t2.y), s2 = i2 + Math.abs(e2.x - t2.x) / 2, r2 = n2 + Math.abs(e2.y - t2.y) / 2 - 10);
50
- }
51
- return { x: s2, y: r2 };
52
- }, select(e2) {
53
- t.clearAllSelectedComponents(), this.model.isSelected = true, this.setSelectedTransition(this.model);
54
- }, startDrag(e2, o2) {
55
- this.setMouseDownPosition(t.getMousePosition(e2)), this.setDraggerToMove({ owner: this.model, position: o2, originStartJoint: this.model.startJoint, originEndJoint: this.model.endJoint });
56
- }, endDrag() {
57
- }, showPropertiesEditor() {
58
- "Decision" !== this.model.endJoint.parent.type && this.setPropertiesEditorFor("Transition");
59
- } } }, l = ["x", "y"], c = { key: 0 }, d = ["cx", "cy", "onMousedown"];
60
- const h = r(a, [["render", function(t2, e2, o2, i2, n2, r2) {
61
- return s.openBlock(), s.createElementBlock("g", { class: s.normalizeClass({ "no-events": null != t2.draggerToMove }), onMousedown: e2[1] || (e2[1] = s.withModifiers((...t3) => r2.select && r2.select(...t3), ["stop"])), onDblclick: e2[2] || (e2[2] = s.withModifiers((...t3) => r2.showPropertiesEditor && r2.showPropertiesEditor(...t3), ["stop"])) }, [s.createElementVNode("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, s.toDisplayString(n2.name), 9, l), (s.openBlock(), s.createBlock(s.resolveDynamicComponent(o2.model.lineInfo.type), { owner: o2.model, class: s.normalizeClass({ transition: true, selected: o2.model.isSelected || o2.model.startJoint.parent.isSelected && o2.model.endJoint.parent.isSelected }) }, null, 8, ["owner", "class"])), o2.model.isSelected ? (s.openBlock(), s.createElementBlock("g", c, [(s.openBlock(true), s.createElementBlock(s.Fragment, null, s.renderList(r2.draggers, (t3) => (s.openBlock(), s.createElementBlock("circle", { key: t3.position, cx: t3.x, cy: t3.y, class: "transition-dragger", r: "4", onMousedown: s.withModifiers((e3) => r2.startDrag(e3, t3.position), ["stop"]), onMouseup: e2[0] || (e2[0] = (...t4) => r2.endDrag && r2.endDrag(...t4)) }, null, 40, d))), 128))])) : s.createCommentVNode("", true)], 34);
62
- }], ["__scopeId", "data-v-a1576cad"]]);
63
- module.exports = h;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- module.exports = "";
@@ -1,13 +0,0 @@
1
- "use strict";
2
- const t = require("../util.cjs"), e = require("vuex"), r = require("vue");
3
- require("./virtual-transition.vue2.cjs");
4
- const i = require("../../../_virtual/_plugin-vue_export-helper.cjs"), n = { name: "VirtualTransition", props: { toPosition: { type: Object, default: null } }, computed: { ...e.mapGetters("wfEditor", ["startJoint"]), path() {
5
- if (!this.startJoint)
6
- return null;
7
- const e2 = t.getJoint(this.startJoint.parent, this.startJoint.position), r2 = this.toPosition;
8
- return "M" + e2.x + " " + e2.y + " L" + r2.x + " " + r2.y;
9
- } }, methods: {} }, o = ["d"];
10
- const s = i(n, [["render", function(t2, e2, i2, n2, s2, u) {
11
- return r.openBlock(), r.createElementBlock("g", null, [r.withDirectives(r.createElementVNode("path", { d: u.path, class: "virtual-transition", "marker-end": "url(#arrow)" }, null, 8, o), [[r.vShow, u.path]])]);
12
- }]]);
13
- module.exports = s;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- module.exports = "";
@@ -1,139 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const t = require("agilebuilder-ui"), e = require("../../src/i18n/i18n.cjs"), o = require("./json-object-templates/auto-task.cjs"), n = require("./json-object-templates/copy-task.cjs"), r = require("./json-object-templates/decision.cjs"), i = require("./json-object-templates/end.cjs"), s = require("./json-object-templates/fork.cjs"), a = require("./json-object-templates/human-decision.cjs"), c = require("./json-object-templates/human-task.cjs"), l = require("./json-object-templates/join.cjs"), d = require("./json-object-templates/process.cjs"), u = require("./json-object-templates/start.cjs"), f = require("./json-object-templates/subprocess.cjs");
4
- function p() {
5
- return window.$store;
6
- }
7
- function h() {
8
- return window.$locale ? e.locale = window.$locale : e.locale = "cn", e.global;
9
- }
10
- function m() {
11
- 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" }];
12
- }
13
- function w(t3) {
14
- const e2 = document.getElementById("svg").getScreenCTM();
15
- return { x: (t3.clientX - e2.e) / e2.a, y: (t3.clientY - e2.f) / e2.d };
16
- }
17
- function g() {
18
- !function() {
19
- for (const t3 of p().getters["wfEditor/selectedTaches"])
20
- t3.isSelected = false;
21
- p().commit("wfEditor/setSelectedTaches", []);
22
- }(), p().getters["wfEditor/selectedTransition"] && (p().getters["wfEditor/selectedTransition"].isSelected = false), p().commit("wfEditor/setSelectedTransition", null);
23
- }
24
- function y(t3, e2) {
25
- e2 || (e2 = []), Array.isArray(e2) || (e2 = [e2]);
26
- const o2 = p().getters["wfEditor/taches"];
27
- for (const n2 of e2) {
28
- const e3 = { 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: t3, isSelected: false, ref: n2 };
29
- o2.push(e3);
30
- }
31
- }
32
- function k(t3) {
33
- const e2 = p().getters["wfEditor/transitions"].filter((e3) => e3.startJoint.parent.id === t3 || e3.ref.attr.from === t3);
34
- return e2;
35
- }
36
- function x(t3) {
37
- const e2 = p().getters["wfEditor/transitions"].filter((e3) => e3.endJoint.parent.id === t3 || e3.ref.attr.to === t3);
38
- return e2;
39
- }
40
- function b(t3) {
41
- const e2 = p().getters["wfEditor/taches"].filter((e3) => e3.ref.attr.id === t3);
42
- return e2.length > 0 ? e2[0] : null;
43
- }
44
- function j(t3, e2) {
45
- x(e2).map((e3) => {
46
- e3.ref.attr.to = t3, e3.ref.attr.id = "flow_" + e3.ref.attr.from + "_to_" + e3.ref.attr.to, e3.id = e3.ref.attr.id;
47
- });
48
- return k(e2).map((e3) => {
49
- e3.ref.attr.from = t3, e3.ref.attr.id = "flow_" + e3.ref.attr.from + "_to_" + e3.ref.attr.to, e3.id = e3.ref.attr.id;
50
- }), true;
51
- }
52
- const T = { newProcess: d, newHumanTask: c, newDecision: r, newStart: u, newEnd: i, newTransition: require("./json-object-templates/transition.cjs"), newSubprocess: f, newFork: s, newJoin: l, newHumanDecision: a, newCopyTask: n, newAutoTask: o };
53
- exports.clearAllSelectedComponents = g, exports.deepCopy = function(t3) {
54
- return JSON.parse(JSON.stringify(t3));
55
- }, exports.endDragTache = function() {
56
- p().commit("wfEditor/setMovingTache", false), p().commit("wfEditor/setMouseDownPosition", null);
57
- }, exports.findIncomingTransitionsByTacheId = x, exports.findOutgoingTransitionsByTacheId = k, exports.findTacheById = b, exports.getComponentInfo = function(t3) {
58
- const e2 = m().filter((e3) => e3.name === t3);
59
- return e2.length > 0 ? e2[0] : null;
60
- }, exports.getComponentList = m, exports.getI18n = h, exports.getJoint = function(t3, e2) {
61
- switch ("string" == typeof t3 && (t3 = function(t4) {
62
- return p().getters["wfEditor/taches"].filter((e3) => e3.id === t4)[0];
63
- }(t3)), e2) {
64
- case "up":
65
- case "top":
66
- return { position: "up", x: t3.x + t3.width / 2, y: t3.y };
67
- case "right":
68
- return { position: "right", x: t3.x + t3.width, y: t3.y + t3.height / 2 };
69
- case "down":
70
- case "bottom":
71
- return { position: "down", x: t3.x + t3.width / 2, y: t3.y + t3.height };
72
- case "left":
73
- return { position: "left", x: t3.x, y: t3.y + t3.height / 2 };
74
- default:
75
- return { position: "", x: t3.x, y: t3.y };
76
- }
77
- }, exports.getMousePosition = w, exports.getRealRegion = function(t3) {
78
- let e2, o2, n2, r2;
79
- e2 = o2 = 1e4, n2 = r2 = 0;
80
- for (const i2 of t3)
81
- e2 > i2.x && (e2 = i2.x), o2 > i2.y && (o2 = i2.y), n2 < i2.x + i2.width && (n2 = i2.x + i2.width), r2 < i2.y + i2.height && (r2 = i2.y + i2.height);
82
- return { x: e2 - 10, y: o2 - 10, width: n2 - e2 + 20, height: r2 - o2 + 20 };
83
- }, exports.getVirtualRegion = function(t3, e2) {
84
- if (!t3 || !e2)
85
- return {};
86
- const { x: o2, y: n2 } = t3, { x: r2, y: i2 } = e2;
87
- var s2 = { x: 0, y: 0, width: Math.abs(r2 - o2), height: Math.abs(i2 - n2) };
88
- return o2 <= r2 ? n2 <= i2 ? (s2.x = o2, s2.y = n2) : (s2.x = o2, s2.y = i2) : n2 >= i2 ? (s2.x = r2, s2.y = i2) : (s2.x = r2, s2.y = n2), s2;
89
- }, exports.initializeProcessData = function(t3) {
90
- t3 && (y("HumanTask", t3.humanTask), y("Decision", t3.decision), y("Fork", t3.fork), y("Join", t3.join), y("Subprocess", t3.subprocess), y("HumanDecision", t3.humanDecision), y("CopyTask", t3.copyTask), y("AutoTask", t3.autoTask), y("Start", t3.start), y("End", t3.end), function(t4, e2) {
91
- e2 || (e2 = []), Array.isArray(e2) || (e2 = [e2]);
92
- const o2 = p().getters["wfEditor/transitions"];
93
- for (const t5 of e2) {
94
- const e3 = t5.basicProperties.remark || "", n2 = { id: t5.attr.id, startJoint: { parent: b(t5.attr.from), position: t5.g.fromJoint }, endJoint: { parent: b(t5.attr.to), position: t5.g.toJoint }, isSelected: false, remark: e3, lineInfo: { type: t5.g.lineType, controlPoint: null }, ref: t5 };
95
- if ("CurveLine" === t5.g.lineType && t5.g.coordinate) {
96
- const e4 = t5.g.coordinate.split(",");
97
- n2.lineInfo.controlPoint = { x: e4[0], y: e4[1] };
98
- } else if ("BrokenLine" === t5.g.lineType && t5.g.coordinate) {
99
- const e4 = t5.g.coordinate.split(";"), o3 = [];
100
- e4.forEach((t6) => {
101
- if ("" !== t6) {
102
- const e5 = t6.split(",");
103
- o3.push({ x: e5[0], y: e5[1] });
104
- }
105
- }), n2.lineInfo.controlPoint = o3;
106
- }
107
- o2.push(n2);
108
- }
109
- }(0, t3.transition));
110
- }, exports.processTemplate = T, exports.removeTextProperty = function t2(e2) {
111
- Object.getOwnPropertyNames(e2).forEach(function(o2) {
112
- if ("object" == typeof e2[o2]) {
113
- if (void 0 !== e2[o2]._text)
114
- return void (e2[o2] = e2[o2]._text);
115
- if (Object.keys(e2[o2]).length > 0)
116
- t2(e2[o2]);
117
- else {
118
- ["variables", "events", "autoFilledFields"].indexOf(o2) < 0 && (e2[o2] = "");
119
- }
120
- }
121
- });
122
- }, exports.startDragTache = function(t3, e2) {
123
- g(), e2.$parent.region = null, e2.$parent.showHistory || (e2.model.isSelected = true), p().getters["wfEditor/selectedTaches"].push(e2.model);
124
- const o2 = w(t3);
125
- p().commit("wfEditor/setMouseDownPosition", o2), p().commit("wfEditor/setMovingTache", true);
126
- }, exports.updateTransitionsWhenTacheIdChanged = j, exports.validateTacheCode = function(t3) {
127
- const e2 = b(t3.formModel.id);
128
- if (e2 && e2.id !== t3.id)
129
- return t3.$alert(h().t("workflowEditorMessage.itIsTheSameAsTheExistingLink", { name: e2.name })), void (t3.formModel.id = t3.id);
130
- j(t3.formModel.id, t3.id), t3.$emit("update:id", t3.formModel.id);
131
- }, exports.watchShowName = function(e2, o2) {
132
- let n2 = "";
133
- if (e2.processI18n && e2.model.ref && e2.model.ref.basicProperties && e2.model.ref.basicProperties.i18nKey) {
134
- const r2 = e2.model.ref.basicProperties.i18nKey, i2 = t.getLanguageWithLocale();
135
- e2.processI18n[r2] && (n2 = e2.processI18n[r2][i2]), n2 || (n2 = o2);
136
- } else
137
- n2 = o2;
138
- return n2;
139
- };
@@ -1,191 +0,0 @@
1
- "use strict";
2
- require("./assets/wf-editor-icons.cjs");
3
- const e = require("vuex"), t = require("./util.cjs"), o = require("./main/toolbox.vue.cjs"), s = require("./main/canvas.vue.cjs"), i = require("./main/icon-svg.vue.cjs"), n = require("./main/context-menu.vue.cjs"), r = require("xml-js"), a = require("./process-service.cjs"), l = require("file-saver"), c = require("prismjs"), d = require("./main/admin-save-dialog.vue.cjs"), h = require("agilebuilder-ui"), p = require("vue");
4
- require("./workflow-editor.vue2.cjs");
5
- const m = require("../../_virtual/_plugin-vue_export-helper.cjs"), f = { name: "WorkflowEditor", components: { WorkflowCanvas: s, Toolbox: o, IconSvg: i, ContextMenu: n, AdminSaveDialog: d }, 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() {
6
- 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 };
7
- }, computed: { ...e.mapGetters("wfEditor", ["componentToDraw", "taches", "selectedTaches", "transitions", "contextMenuVisible", "systemVersion", "tableCode", "pageCode", "sourceComponentType"]), ...e.mapGetters(["sidebar"]), componentInfo() {
8
- return t.getComponentInfo(this.componentToDraw);
9
- } }, watch: { activeTab(e2) {
10
- "xml" === e2 && (this.xml = this.getProcessXml(), this.$nextTick(function() {
11
- c.highlightElement(this.$refs.xml);
12
- }));
13
- }, sourceComponentType(e2) {
14
- e2 && this.copyTache();
15
- } }, created: function() {
16
- h.authApi.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 = t.processTemplate.newProcess(), t.initializeProcessData(this.process));
17
- }, mounted: function() {
18
- }, methods: { ...e.mapMutations("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setSystemCode", "setSystemVersion", "setProcessCode", "setPageCode", "setSourceComponentForCopy"]), initShowDefinitionWhenUpdate(e2, t2, o2) {
19
- window.$store.commit("wfEditor/setIsCreateDefinition", "false");
20
- let s2 = this.baseAPI + "/wf-editor/open-xmls/with-definitions";
21
- s2 = this.packageUrlParam(s2, e2, t2, o2), this.$http.get(s2).then((e3) => {
22
- const t3 = e3.definition;
23
- if (t3) {
24
- this.definitionId = t3.id, this.defVersion = t3.definitionVersion, window.$store.commit("wfEditor/setTableCode", t3.tableCode);
25
- const e4 = t3.enable;
26
- this.isShowEnable = !e4 || "ENABLE" !== e4, t3.formCode ? window.$store.commit("wfEditor/setIsHandleCreate", "true") : window.$store.commit("wfEditor/setIsHandleCreate", "false");
27
- }
28
- const o3 = e3.xml;
29
- this.initProcessByXml(o3, t3), this.canvasKey++;
30
- });
31
- }, getWorkflowDefVersionList() {
32
- this.isShowDefVersionList = false;
33
- let e2 = { wfDefinitionCode: this.code, publishVersion: this.systemPublishVersion };
34
- h.http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/workflow-definitions/version-list", e2).then((e3) => {
35
- this.workflowDefVersionList = e3, e3.length > 0 && !this.defVersion && (this.defVersion = e3[0].definitionVersion), this.isShowDefVersionList = true;
36
- });
37
- }, showContextMenu(e2) {
38
- this.setContextMenuVisible(true);
39
- const t2 = this.$refs.wfEditor.getBoundingClientRect();
40
- this.contextMenuPosition = { x: e2.clientX - t2.x, y: e2.clientY - t2.y };
41
- }, changeDefVersion(e2) {
42
- const t2 = this.workflowDefVersionList.filter((t3) => t3.definitionVersion === e2);
43
- if (t2 && t2.length > 0) {
44
- const e3 = t2[0];
45
- this.clearCanvas(), this.initShowDefinitionWhenUpdate(e3.id, e3.code, e3.definitionVersion), this.$emit("changeDefVersion", e3);
46
- }
47
- }, initProcessByXml(e2, o2) {
48
- if (e2) {
49
- const o3 = { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 }, s2 = r.xml2js(e2, o3);
50
- t.removeTextProperty(s2.process), this.process = s2.process;
51
- } else
52
- this.process = t.processTemplate.newProcess(), this.initProcessBaseInfo(o2);
53
- 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(), t.initializeProcessData(this.process), this.count = this.getMaxCount() + 1;
54
- }, initProcessBaseInfo(e2) {
55
- 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);
56
- }, fetchFormFields() {
57
- const e2 = this.process.properties.basicProperties, t2 = e2.formCode, o2 = e2.formVersion;
58
- this.tableCode, t2 && "" !== t2 && o2 ? a.fetchFormFields(e2.formCode, e2.formVersion, null, this.systemPublishVersion) : this.tableCode && a.fetchFormFields(null, null, this.tableCode, this.systemPublishVersion);
59
- }, packageUrlParam: (e2, t2, o2, s2) => (t2 ? e2 = e2 + "?id=" + t2 : o2 && (e2 = e2 + "?code=" + o2 + "&version=" + s2), e2), getProcessXml() {
60
- const e2 = { start: [], humanTask: [], decision: [], transition: [], fork: [], join: [], subprocess: [], humanDecision: [], copyTask: [], autoTask: [], end: [] };
61
- e2.attr = this.process.attr, e2.properties = this.process.properties, this.taches.map((t3) => {
62
- const o2 = t3.type;
63
- e2[o2.charAt(0).toLowerCase() + o2.substring(1)].push(t3.ref), t3.ref.g = { x: t3.x, y: t3.y, width: t3.width, height: t3.height };
64
- }), this.transitions.map((t3) => {
65
- 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)
66
- t3.ref.g.coordinate = t3.lineInfo.controlPoint.x + "," + t3.lineInfo.controlPoint.y;
67
- else if ("BrokenLine" === t3.lineInfo.type && t3.lineInfo.controlPoint) {
68
- let e3 = "";
69
- t3.lineInfo.controlPoint.forEach((t4) => {
70
- e3 += t4.x + "," + t4.y + ";";
71
- }), t3.ref.g.coordinate = e3;
72
- }
73
- });
74
- let t2 = r.json2xml({ process: e2 }, { attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 });
75
- return t2 = '<?xml version="1.0" encoding="utf-8"?>\n' + t2, t2;
76
- }, saveXml() {
77
- const e2 = this.getProcessXml();
78
- if (this.code || this.id || this.definitionId)
79
- this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/updates").then(() => {
80
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.$alert(this.$t("workflowEditorMessage.updateSuccessful"));
81
- });
82
- else {
83
- const t2 = { xml: e2, publishVersion: this.systemPublishVersion };
84
- this.$http.post(this.baseAPI + "/wf-editor/workflow-definitions", t2).then((e3) => {
85
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.definitionId = e3.id, this.$alert(this.$t("workflowEditorMessage.savedSuccessfully"));
86
- });
87
- }
88
- }, saveWf(e2, t2, o2) {
89
- return new Promise((o3, s2) => {
90
- const i2 = this.packageSaveXmlParam(e2);
91
- this.$http.post(t2, i2).then((e3) => {
92
- this.definitionId = e3.id, o3();
93
- });
94
- });
95
- }, packageSaveXmlParam(e2) {
96
- const t2 = { xml: e2, publishVersion: this.systemPublishVersion };
97
- return this.definitionId ? t2.id = this.definitionId : this.id ? t2.id = this.id : this.code && (t2.code = this.code, t2.version = this.version), t2;
98
- }, adminSave() {
99
- const e2 = this.getProcessXml();
100
- if (this.code || this.id || this.definitionId) {
101
- const t2 = this.baseAPI + "/wf-editor/workflow-definitions/states", o2 = {};
102
- this.definitionId ? o2.id = this.definitionId : this.id ? o2.id = this.id : this.code && (o2.code = this.code, o2.version = this.version), this.$http.post(t2, o2).then((t3) => {
103
- "DRAFT" === t3 ? this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/updates").then(() => {
104
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.$alert(this.$t("workflowEditorMessage.updateSuccessful"));
105
- }) : this.isAdminSave = true;
106
- });
107
- } else {
108
- const t2 = { xml: e2, publishVersion: this.systemPublishVersion };
109
- this.$http.post(this.baseAPI + "/wf-editor/workflow-definitions", t2).then((e3) => {
110
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.definitionId = e3.id, this.$alert(this.$t("workflowEditorMessage.savedSuccessfully"));
111
- });
112
- }
113
- }, updateWfVersion() {
114
- const e2 = this.getProcessXml();
115
- this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/update-version").then(() => {
116
- window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.isAdminSave = false, this.$alert(this.$t("workflowEditorMessage.updateVersionSuccessful"));
117
- });
118
- }, addWfVersion() {
119
- const e2 = this.getProcessXml();
120
- this.saveWf(e2, this.baseAPI + "/wf-editor/workflow-definitions/updates").then(() => {
121
- this.isShowEnable = true, window.$store.commit("wfEditor/setIsCreateDefinition", "false"), this.isAdminSave = false, this.$alert(this.$t("workflowEditorMessage.addVersionSuccessful"));
122
- });
123
- }, exportProcessFromClient() {
124
- const e2 = new Blob([this.getProcessXml()], { type: "text/xml;charset=utf-8" });
125
- l.saveAs(e2, this.process.attr.name + ".xml");
126
- }, exportProcess() {
127
- const e2 = this.getProcessXml();
128
- this.$http({ method: "post", url: this.baseAPI + "/wf-editor/save-as-xmls", data: { xmlContent: e2 } }).then((e3) => {
129
- this.download(e3), this.$t("workflowEditorMessage.exportSucceeded");
130
- });
131
- }, download(e2) {
132
- if (!e2)
133
- return;
134
- const t2 = window.URL.createObjectURL(new Blob([e2])), o2 = document.createElement("a");
135
- o2.style.display = "none", o2.href = t2, o2.setAttribute("download", "myXml.xml"), document.body.appendChild(o2), o2.click();
136
- }, uploadSuccess(e2, t2, o2) {
137
- const s2 = e2;
138
- this.clearCanvas(), this.initProcessByXml(s2), this.$refs.upload.clearFiles();
139
- }, getCurrentPosition(e2) {
140
- if (this.componentToDraw) {
141
- const t2 = this.$refs.wfEditor.getBoundingClientRect();
142
- this.currentPosition = { x: e2.clientX - t2.x - 22, y: e2.clientY - t2.y - 22 };
143
- }
144
- }, startDrag(e2) {
145
- this.getCurrentPosition(e2);
146
- }, drag(e2) {
147
- this.getCurrentPosition(e2);
148
- }, endDrag() {
149
- this.componentToDraw && this.setComponentToDraw("");
150
- }, addTache(e2) {
151
- if (this.componentToDraw) {
152
- const o2 = t.getMousePosition(e2), s2 = t.processTemplate["new" + this.componentToDraw]();
153
- s2.attr.id = this.componentToDraw.charAt(0).toLowerCase() + this.componentToDraw.substring(1) + "_" + this.count;
154
- const i2 = { id: s2.attr.id, name: s2.attr.name, x: o2.x - this.componentInfo.width / 2, y: o2.y - this.componentInfo.height / 2, width: this.componentInfo.width, height: this.componentInfo.height, type: this.componentToDraw, isSelected: false };
155
- i2.ref = s2, this.taches.push(i2), this.count++;
156
- }
157
- }, copyTache() {
158
- const e2 = this.selectedTaches && this.selectedTaches.length > 0 ? this.selectedTaches[0] : null;
159
- if (!e2)
160
- return;
161
- const t2 = JSON.parse(JSON.stringify(e2)), o2 = t2.type, s2 = t2.ref;
162
- s2.attr.id = o2.charAt(0).toLowerCase() + o2.substring(1) + "_" + this.count, s2.attr.name = e2.name + "_copy", t2.id = s2.attr.id, t2.name = s2.attr.name, t2.x = e2.x + 20, t2.y = e2.y + 20, t2.isSelected = false, t2.ref = s2, this.taches.push(t2), this.count++, this.setSourceComponentForCopy("");
163
- }, clearStatus() {
164
- this.componentToDraw && this.setComponentToDraw("");
165
- }, getMaxCount() {
166
- let e2 = 0;
167
- return this.taches.map((t2) => {
168
- let o2 = t2.id.substring(t2.id.lastIndexOf("_") + 1);
169
- o2 = +o2, e2 < o2 && (e2 = o2);
170
- }), e2;
171
- }, selectProcessFile() {
172
- this.$refs.processFile.click();
173
- }, openXmlFromClient() {
174
- if ("" === this.$refs.processFile.value)
175
- return;
176
- const e2 = this.$refs.processFile.files[0], t2 = new FileReader();
177
- t2.readAsText(e2);
178
- const o2 = this;
179
- t2.onload = function() {
180
- o2.clearCanvas(), o2.initProcessByXml(t2.result), o2.$refs.processFile.value = "";
181
- };
182
- }, enableWf() {
183
- this.definitionId && this.$http.put(this.baseAPI + "/wf-editor/workflow-editors/" + this.definitionId + "/states").then(() => {
184
- this.getWorkflowDefVersionList(), this.isShowEnable = false, this.$alert(this.$t("workflowEditorMessage.enabledSuccessfully"));
185
- });
186
- } } }, u = { style: { width: "100%", height: "100%", background: "#fff" } }, w = { key: 0, class: "xml line-numbers" };
187
- const C = m(f, [["render", function(e2, t2, o2, s2, i2, n2) {
188
- const r2 = p.resolveComponent("el-button"), a2 = p.resolveComponent("el-option"), l2 = p.resolveComponent("el-select"), c2 = p.resolveComponent("el-row"), d2 = p.resolveComponent("toolbox"), h2 = p.resolveComponent("workflow-canvas"), m2 = p.resolveComponent("el-tab-pane"), f2 = p.resolveComponent("el-tabs"), C2 = p.resolveComponent("icon-svg"), y = p.resolveComponent("context-menu"), g = p.resolveComponent("admin-save-dialog"), b = p.resolveDirective("permission");
189
- return p.openBlock(), p.createElementBlock("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)) }, [p.createVNode(c2, { class: "button-area" }, { default: p.withCtx(() => [o2.readonly ? p.createCommentVNode("", true) : (p.openBlock(), p.createBlock(r2, { key: 0, type: "primary", onClick: n2.saveXml }, { default: p.withCtx(() => [p.createTextVNode(p.toDisplayString(e2.$t("workflowEditorPublicModel.save")), 1)]), _: 1 }, 8, ["onClick"])), o2.readonly ? p.createCommentVNode("", true) : p.withDirectives((p.openBlock(), p.createBlock(r2, { key: 1, class: "button--default", onClick: n2.adminSave }, { default: p.withCtx(() => [p.createTextVNode(p.toDisplayString(e2.$t("workflowEditorPublicModel.adminSave")), 1)]), _: 1 }, 8, ["onClick"])), [[b, "wf.workflowDefinition.adminSave"]]), e2.isShowEnable ? (p.openBlock(), p.createBlock(r2, { key: 2, class: "button--default", onClick: n2.enableWf }, { default: p.withCtx(() => [p.createTextVNode(p.toDisplayString(e2.$t("workflowEditorPublicModel.enable")), 1)]), _: 1 }, 8, ["onClick"])) : p.createCommentVNode("", true), p.createVNode(r2, { class: "button--default", onClick: n2.exportProcessFromClient }, { default: p.withCtx(() => [p.createTextVNode(p.toDisplayString(e2.$t("workflowEditorPublicModel.export")), 1)]), _: 1 }, 8, ["onClick"]), o2.readonly ? p.createCommentVNode("", true) : (p.openBlock(), p.createBlock(r2, { key: 3, class: "button--default", onClick: n2.selectProcessFile }, { default: p.withCtx(() => [p.createTextVNode(p.toDisplayString(e2.$t("workflowEditorPublicModel.open")) + " ", 1), p.createElementVNode("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"])), p.createVNode(r2, { type: "primary", class: "button--return", onClick: t2[1] || (t2[1] = (t3) => e2.$emit("back")) }, { default: p.withCtx(() => [p.createTextVNode(p.toDisplayString(e2.$t("workflowEditorPublicModel.return")), 1)]), _: 1 }), e2.isShowDefVersionList ? (p.openBlock(), p.createBlock(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.withCtx(() => [(p.openBlock(true), p.createElementBlock(p.Fragment, null, p.renderList(e2.workflowDefVersionList, (e3) => (p.openBlock(), p.createBlock(a2, { key: e3.definitionVersion, label: e3.definitionVersion, value: e3.definitionVersion }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onChange"])) : p.createCommentVNode("", true)]), _: 1 }), p.createElementVNode("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)) }, [o2.readonly ? p.createCommentVNode("", true) : (p.openBlock(), p.createBlock(d2, { key: 0, class: "toolbox", onselectstart: "return false", oncontextmenu: "return false" })), (p.openBlock(), p.createElementBlock("section", { class: "tabBox", key: e2.canvasKey }, [p.createVNode(f2, { modelValue: e2.activeTab, "onUpdate:modelValue": t2[3] || (t2[3] = (t3) => e2.activeTab = t3), class: "tabs" }, { default: p.withCtx(() => [p.createVNode(m2, { label: e2.$t("workflowEditorPublicModel.flowChart"), name: "canvas", class: "tab-pane" }, { default: p.withCtx(() => [p.createVNode(h2, { onselectstart: "return false", process: e2.process, class: "canvas", onMouseup: n2.addTache, onContextmenu: p.withModifiers(n2.showContextMenu, ["prevent"]) }, null, 8, ["process", "onMouseup", "onContextmenu"])]), _: 1 }, 8, ["label"]), p.createVNode(m2, { label: "XML", name: "xml", class: "tab-pane" }, { default: p.withCtx(() => [p.createElementVNode("div", u, ["xml" === e2.activeTab ? (p.openBlock(), p.createElementBlock("pre", w, [p.createElementVNode("code", { ref: "xml", class: "language-xml" }, p.toDisplayString(e2.xml), 513)])) : p.createCommentVNode("", true)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]))], 32), e2.componentToDraw ? (p.openBlock(), p.createBlock(C2, { key: 0, style: p.normalizeStyle({ 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"])) : p.createCommentVNode("", true), e2.contextMenuVisible ? (p.openBlock(), p.createBlock(y, { key: 1, style: p.normalizeStyle({ position: "absolute", left: e2.contextMenuPosition.x + "px", top: e2.contextMenuPosition.y + "px" }) }, null, 8, ["style"])) : p.createCommentVNode("", true), e2.isAdminSave ? (p.openBlock(), p.createBlock(g, { key: 2, onClose: t2[8] || (t2[8] = (t3) => e2.isAdminSave = false), onUpdate: n2.updateWfVersion, onAdd: n2.addWfVersion }, null, 8, ["onUpdate", "onAdd"])) : p.createCommentVNode("", true)], 544);
190
- }], ["__scopeId", "data-v-865cb4ee"]]);
191
- module.exports = C;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- module.exports = "";
@@ -1,28 +0,0 @@
1
- "use strict";
2
- require("./assets/wf-editor-icons.cjs");
3
- const e = require("vuex"), s = require("./util.cjs"), t = require("./main/wf-history-canvas.vue.cjs"), r = require("xml-js"), o = require("./api.cjs"), i = require("vue");
4
- require("./workflow-history.vue2.cjs");
5
- const n = require("../../_virtual/_plugin-vue_export-helper.cjs"), c = { name: "WorkflowHistory", components: { WfHistoryCanvas: t }, props: { id: { type: Number, default: null } }, data: function() {
6
- return { process: null, histories: [], currentTasks: [], allProcessI18n: null };
7
- }, computed: { ...e.mapGetters("wfEditor", ["componentToDraw", "taches", "transitions", "contextMenuVisible"]), ...e.mapGetters(["sidebar"]) }, watch: {}, created: function() {
8
- this.showHistory();
9
- }, mounted: function() {
10
- }, methods: { ...o, ...e.mapMutations("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setProcessI18n"]), showHistory() {
11
- this.clearCanvas(), this.id ? this.$http.get(this.baseAPI + "/wf-editor/i18n-settings/get-bundle-info?workflowId=" + this.id).then((e2) => {
12
- this.allProcessI18n = e2;
13
- const s2 = this.baseAPI + "/wf-editor/instance-histories/" + this.id;
14
- this.$http.get(s2).then((s3) => {
15
- let t2;
16
- this.initProcessByXml(s3.xml), s3.histories && s3.histories.length > 0 && (t2 = s3.histories[0].bundleCode), !t2 && s3.currentTasks && s3.currentTasks.length > 0 && (t2 = s3.currentTasks[0].bundleCode), t2 && this.setProcessI18n(e2[t2]), this.histories = s3.histories, this.currentTasks = s3.currentTasks;
17
- });
18
- }) : (this.process = s.processTemplate.newProcess(), s.initializeProcessData(this.process));
19
- }, showContextMenu(e2) {
20
- }, initProcessByXml(e2) {
21
- const t2 = r.xml2js(e2, { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 });
22
- s.removeTextProperty(t2.process), this.process = t2.process, s.initializeProcessData(this.process);
23
- } } }, a = { ref: "wfEditor", style: { position: "relative", height: "100%" } }, l = { class: "main" };
24
- const u = n(c, [["render", function(e2, s2, t2, r2, o2, n2) {
25
- const c2 = i.resolveComponent("wf-history-canvas");
26
- return i.openBlock(), i.createElementBlock("div", a, [i.createElementVNode("div", l, [i.createElementVNode("section", null, [i.createVNode(c2, { onselectstart: "return false", process: e2.process, histories: e2.histories, "current-tasks": e2.currentTasks, "all-process-i18n": e2.allProcessI18n, "show-history": true, class: "canvas", onContextmenu: i.withModifiers(n2.showContextMenu, ["prevent"]) }, null, 8, ["process", "histories", "current-tasks", "all-process-i18n", "onContextmenu"])])])], 512);
27
- }], ["__scopeId", "data-v-6658e14b"]]);
28
- module.exports = u;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- module.exports = "";
File without changes