workflow-editor 0.0.81-up-tmp12 → 0.0.81-up-tmp16

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 (281) hide show
  1. package/es/{index.mjs → index.js} +4 -4
  2. package/es/plugins/{formValidatorUtil.mjs → formValidatorUtil.js} +16 -16
  3. package/es/plugins/{index.mjs → index.js} +1 -1
  4. package/es/src/i18n/i18n.js +7 -0
  5. package/es/style.css +152 -152
  6. package/es/workflow-editor/index.js +10 -0
  7. package/es/workflow-editor/src/json-object-templates/{auto-task.mjs → auto-task.js} +1 -1
  8. package/es/workflow-editor/src/json-object-templates/{copy-task.mjs → copy-task.js} +1 -1
  9. package/es/workflow-editor/src/json-object-templates/{decision.mjs → decision.js} +1 -1
  10. package/es/workflow-editor/src/json-object-templates/{end.mjs → end.js} +1 -1
  11. package/es/workflow-editor/src/json-object-templates/{fork.mjs → fork.js} +1 -1
  12. package/es/workflow-editor/src/json-object-templates/{human-decision.mjs → human-decision.js} +1 -1
  13. package/es/workflow-editor/src/json-object-templates/{human-task.mjs → human-task.js} +1 -1
  14. package/es/workflow-editor/src/json-object-templates/{join.mjs → join.js} +1 -1
  15. package/es/workflow-editor/src/json-object-templates/{process.mjs → process.js} +2 -2
  16. package/es/workflow-editor/src/json-object-templates/{start.mjs → start.js} +1 -1
  17. package/es/workflow-editor/src/json-object-templates/{subprocess.mjs → subprocess.js} +1 -1
  18. package/es/workflow-editor/src/main/{admin-save-dialog.vue.mjs → admin-save-dialog.vue.js} +1 -1
  19. package/es/workflow-editor/src/main/{canvas.vue.mjs → canvas.vue.js} +29 -29
  20. package/es/workflow-editor/src/main/{context-menu.vue.mjs → context-menu.vue.js} +3 -3
  21. package/es/workflow-editor/src/main/{icon-svg.vue.mjs → icon-svg.vue.js} +4 -4
  22. package/es/workflow-editor/src/main/{selection-region.vue.mjs → selection-region.vue.js} +3 -3
  23. package/es/workflow-editor/src/main/{tache-history-tooltip.vue.mjs → tache-history-tooltip.vue.js} +2 -2
  24. package/es/workflow-editor/src/main/{tache-subprocess-history-dialog.vue.mjs → tache-subprocess-history-dialog.vue.js} +2 -2
  25. package/es/workflow-editor/src/main/{toolbox.vue.mjs → toolbox.vue.js} +6 -6
  26. package/es/workflow-editor/src/main/{wf-history-canvas.vue.mjs → wf-history-canvas.vue.js} +17 -17
  27. package/es/workflow-editor/src/properties-editors/auto-task/{basic-properties.vue.mjs → basic-properties.vue.js} +7 -7
  28. package/es/workflow-editor/src/properties-editors/{auto-task.vue.mjs → auto-task.vue.js} +3 -3
  29. package/es/workflow-editor/src/properties-editors/common/{additional-condition-utils.mjs → additional-condition-utils.js} +2 -2
  30. package/es/workflow-editor/src/properties-editors/common/{additional-condition.vue.mjs → additional-condition.vue.js} +3 -3
  31. package/es/workflow-editor/src/properties-editors/common/{auto-filled-fields-utils.mjs → auto-filled-fields-utils.js} +1 -1
  32. package/es/workflow-editor/src/properties-editors/common/{auto-filled-fields.vue.mjs → auto-filled-fields.vue.js} +6 -6
  33. package/es/workflow-editor/src/properties-editors/common/{common-notice-tool.vue.mjs → common-notice-tool.vue.js} +3 -3
  34. package/es/workflow-editor/src/properties-editors/common/{common-user-condition.vue.mjs → common-user-condition.vue.js} +4 -4
  35. package/es/workflow-editor/src/properties-editors/common/{form-fields.vue.mjs → form-fields.vue.js} +2 -2
  36. package/es/workflow-editor/src/properties-editors/common/{i18n-input.vue.mjs → i18n-input.vue.js} +6 -6
  37. package/es/workflow-editor/src/properties-editors/common/{i18n-set-dialog.vue.mjs → i18n-set-dialog.vue.js} +2 -2
  38. package/es/workflow-editor/src/properties-editors/common/{notice-reminder.vue.mjs → notice-reminder.vue.js} +7 -7
  39. package/es/workflow-editor/src/properties-editors/common/{notice.vue.mjs → notice.vue.js} +4 -4
  40. package/es/workflow-editor/src/properties-editors/common/{reminder.vue.mjs → reminder.vue.js} +5 -5
  41. package/es/workflow-editor/src/properties-editors/common/{select-mail-template.vue.mjs → select-mail-template.vue.js} +1 -1
  42. package/es/workflow-editor/src/properties-editors/common/{system-role-tree-inline.vue.mjs → system-role-tree-inline.vue.js} +2 -2
  43. package/es/workflow-editor/src/properties-editors/common/{system-role-tree.vue.mjs → system-role-tree.vue.js} +3 -3
  44. package/es/workflow-editor/src/properties-editors/common/{task-title.vue.mjs → task-title.vue.js} +4 -4
  45. package/es/workflow-editor/src/properties-editors/common/{transactor-settings.vue.mjs → transactor-settings.vue.js} +4 -4
  46. package/es/workflow-editor/src/properties-editors/common/{user-selection.vue.mjs → user-selection.vue.js} +4 -4
  47. package/es/workflow-editor/src/properties-editors/common/{value-selection-dialog.vue.mjs → value-selection-dialog.vue.js} +4 -4
  48. package/es/workflow-editor/src/properties-editors/common/{variables.vue.mjs → variables.vue.js} +1 -1
  49. package/es/workflow-editor/src/properties-editors/copy-task/{basic-properties.vue.mjs → basic-properties.vue.js} +7 -7
  50. package/es/workflow-editor/src/properties-editors/copy-task/{permission-settings.vue.mjs → permission-settings.vue.js} +4 -4
  51. package/es/workflow-editor/src/properties-editors/{copy-task.vue.mjs → copy-task.vue.js} +11 -11
  52. package/es/workflow-editor/src/properties-editors/{decision.vue.mjs → decision.vue.js} +3 -3
  53. package/es/workflow-editor/src/properties-editors/{fork.vue.mjs → fork.vue.js} +2 -2
  54. package/es/workflow-editor/src/properties-editors/{human-decision.vue.mjs → human-decision.vue.js} +1 -1
  55. package/es/workflow-editor/src/properties-editors/human-task/{additional-condition-dialog.vue.mjs → additional-condition-dialog.vue.js} +2 -2
  56. package/es/workflow-editor/src/properties-editors/human-task/{basic-properties.vue.mjs → basic-properties.vue.js} +7 -7
  57. package/es/workflow-editor/src/properties-editors/human-task/{componentsConfigUtil.mjs → componentsConfigUtil.js} +1 -1
  58. package/es/workflow-editor/src/properties-editors/human-task/{custom-actions.vue.mjs → custom-actions.vue.js} +4 -4
  59. package/es/workflow-editor/src/properties-editors/human-task/{editable-child-field-setting.vue.mjs → editable-child-field-setting.vue.js} +3 -3
  60. package/es/workflow-editor/src/properties-editors/human-task/{editable-child-fields.vue.mjs → editable-child-fields.vue.js} +3 -3
  61. package/es/workflow-editor/src/properties-editors/human-task/{editable-field-selection.vue.mjs → editable-field-selection.vue.js} +3 -3
  62. package/es/workflow-editor/src/properties-editors/human-task/{editable-fields.vue.mjs → editable-fields.vue.js} +4 -4
  63. package/es/workflow-editor/src/properties-editors/human-task/{events.vue.mjs → events.vue.js} +1 -1
  64. package/es/workflow-editor/src/properties-editors/human-task/{permission-settings.vue.mjs → permission-settings.vue.js} +7 -7
  65. package/es/workflow-editor/src/properties-editors/human-task/{selection-conditions.vue.mjs → selection-conditions.vue.js} +4 -4
  66. package/es/workflow-editor/src/properties-editors/{human-task.vue.mjs → human-task.vue.js} +9 -9
  67. package/es/workflow-editor/src/properties-editors/{join.vue.mjs → join.vue.js} +1 -1
  68. package/es/workflow-editor/src/properties-editors/process/{basic-properties.vue.mjs → basic-properties.vue.js} +6 -6
  69. package/es/workflow-editor/src/properties-editors/process/{events.vue.mjs → events.vue.js} +6 -6
  70. package/es/workflow-editor/src/properties-editors/process/{notice-settings.vue.mjs → notice-settings.vue.js} +3 -3
  71. package/es/workflow-editor/src/properties-editors/process/{parameter-settings.vue.mjs → parameter-settings.vue.js} +2 -2
  72. package/es/workflow-editor/src/properties-editors/process/{permission-settings.vue.mjs → permission-settings.vue.js} +2 -2
  73. package/es/workflow-editor/src/properties-editors/process/{selectPage.vue.mjs → selectPage.vue.js} +1 -1
  74. package/es/workflow-editor/src/properties-editors/{process.vue.mjs → process.vue.js} +8 -8
  75. package/es/workflow-editor/src/properties-editors/subprocess/{basic-properties.vue.mjs → basic-properties.vue.js} +8 -8
  76. package/es/workflow-editor/src/properties-editors/subprocess/{events.vue.mjs → events.vue.js} +1 -1
  77. package/es/workflow-editor/src/properties-editors/subprocess/{field-mappings.vue.mjs → field-mappings.vue.js} +5 -5
  78. package/es/workflow-editor/src/properties-editors/subprocess/{transactor-settings.vue.mjs → transactor-settings.vue.js} +7 -7
  79. package/es/workflow-editor/src/properties-editors/{subprocess.vue.mjs → subprocess.vue.js} +5 -5
  80. package/es/workflow-editor/src/properties-editors/transition/{basic-properties.vue.mjs → basic-properties.vue.js} +3 -3
  81. package/es/workflow-editor/src/properties-editors/{transition.vue.mjs → transition.vue.js} +9 -9
  82. package/es/workflow-editor/src/properties-editors/{user-condition.mjs → user-condition.js} +1 -1
  83. package/es/workflow-editor/src/store/{workflow-editor.mjs → workflow-editor.js} +1 -1
  84. package/es/workflow-editor/src/taches/{auto-task.vue.mjs → auto-task.vue.js} +7 -7
  85. package/es/workflow-editor/src/taches/{common-methods.mjs → common-methods.js} +1 -1
  86. package/es/workflow-editor/src/taches/{copy-task.vue.mjs → copy-task.vue.js} +7 -7
  87. package/es/workflow-editor/src/taches/{custom-task.vue.mjs → custom-task.vue.js} +4 -4
  88. package/es/workflow-editor/src/taches/{decision.vue.mjs → decision.vue.js} +5 -5
  89. package/es/workflow-editor/src/taches/{end.vue.mjs → end.vue.js} +4 -4
  90. package/es/workflow-editor/src/taches/{fork.vue.mjs → fork.vue.js} +5 -5
  91. package/es/workflow-editor/src/taches/{human-decision.vue.mjs → human-decision.vue.js} +7 -7
  92. package/es/workflow-editor/src/taches/{human-task.vue.mjs → human-task.vue.js} +5 -5
  93. package/es/workflow-editor/src/taches/{join.vue.mjs → join.vue.js} +4 -4
  94. package/es/workflow-editor/src/taches/{joint.vue.mjs → joint.vue.js} +3 -3
  95. package/es/workflow-editor/src/taches/{start.vue.mjs → start.vue.js} +4 -4
  96. package/es/workflow-editor/src/taches/{subprocess.vue.mjs → subprocess.vue.js} +7 -7
  97. package/es/workflow-editor/src/taches/{tache-resizer.vue.mjs → tache-resizer.vue.js} +2 -2
  98. package/es/workflow-editor/src/transitions/{broken-line.vue.mjs → broken-line.vue.js} +3 -3
  99. package/es/workflow-editor/src/transitions/{curve-line.vue.mjs → curve-line.vue.js} +3 -3
  100. package/es/workflow-editor/src/transitions/{straight-line.vue.mjs → straight-line.vue.js} +2 -2
  101. package/es/workflow-editor/src/transitions/{transition.vue.mjs → transition.vue.js} +8 -8
  102. package/es/workflow-editor/src/transitions/{virtual-transition.vue.mjs → virtual-transition.vue.js} +3 -3
  103. package/es/workflow-editor/src/{util.mjs → util.js} +13 -13
  104. package/es/workflow-editor/src/{workflow-editor.vue.mjs → workflow-editor.vue.js} +16 -16
  105. package/es/workflow-editor/src/{workflow-history.vue.mjs → workflow-history.vue.js} +8 -8
  106. package/lib/style.css +144 -144
  107. package/package.json +7 -1
  108. package/.prettierrc.json +0 -9
  109. package/es/src/i18n/i18n.mjs +0 -7
  110. package/es/workflow-editor/index.mjs +0 -10
  111. package/index.html +0 -13
  112. package/packages/index.js +0 -50
  113. package/packages/plugins/formValidatorUtil.js +0 -723
  114. package/packages/plugins/index.js +0 -8
  115. package/packages/workflow-editor/index.js +0 -14
  116. package/packages/workflow-editor/src/api.js +0 -7
  117. package/packages/workflow-editor/src/assets/tab-select.png +0 -0
  118. package/packages/workflow-editor/src/assets/tab-selectWhite.png +0 -0
  119. package/packages/workflow-editor/src/assets/wf-editor-icons.js +0 -2
  120. package/packages/workflow-editor/src/constant.js +0 -8
  121. package/packages/workflow-editor/src/json-object-templates/auto-task.js +0 -70
  122. package/packages/workflow-editor/src/json-object-templates/copy-task.js +0 -72
  123. package/packages/workflow-editor/src/json-object-templates/decision.js +0 -11
  124. package/packages/workflow-editor/src/json-object-templates/end.js +0 -14
  125. package/packages/workflow-editor/src/json-object-templates/fork.js +0 -10
  126. package/packages/workflow-editor/src/json-object-templates/human-decision.js +0 -9
  127. package/packages/workflow-editor/src/json-object-templates/human-task.js +0 -208
  128. package/packages/workflow-editor/src/json-object-templates/join.js +0 -10
  129. package/packages/workflow-editor/src/json-object-templates/process.js +0 -99
  130. package/packages/workflow-editor/src/json-object-templates/start.js +0 -13
  131. package/packages/workflow-editor/src/json-object-templates/subprocess.js +0 -31
  132. package/packages/workflow-editor/src/json-object-templates/transition.js +0 -26
  133. package/packages/workflow-editor/src/main/admin-save-dialog.vue +0 -67
  134. package/packages/workflow-editor/src/main/canvas.vue +0 -493
  135. package/packages/workflow-editor/src/main/context-menu.vue +0 -147
  136. package/packages/workflow-editor/src/main/icon-svg.vue +0 -32
  137. package/packages/workflow-editor/src/main/selection-region.vue +0 -66
  138. package/packages/workflow-editor/src/main/tache-history-tooltip.vue +0 -38
  139. package/packages/workflow-editor/src/main/tache-name-input.vue +0 -19
  140. package/packages/workflow-editor/src/main/tache-subprocess-history-dialog.vue +0 -40
  141. package/packages/workflow-editor/src/main/toolbox.vue +0 -60
  142. package/packages/workflow-editor/src/main/wf-history-canvas.vue +0 -309
  143. package/packages/workflow-editor/src/process-json.js +0 -624
  144. package/packages/workflow-editor/src/process-service.js +0 -68
  145. package/packages/workflow-editor/src/properties-editors/auto-task/basic-properties.vue +0 -81
  146. package/packages/workflow-editor/src/properties-editors/auto-task/permission-settings.vue +0 -155
  147. package/packages/workflow-editor/src/properties-editors/auto-task.vue +0 -74
  148. package/packages/workflow-editor/src/properties-editors/common/additional-condition-utils.js +0 -568
  149. package/packages/workflow-editor/src/properties-editors/common/additional-condition.vue +0 -320
  150. package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.js +0 -34
  151. package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields.vue +0 -268
  152. package/packages/workflow-editor/src/properties-editors/common/common-notice-tool.vue +0 -81
  153. package/packages/workflow-editor/src/properties-editors/common/common-user-condition.vue +0 -242
  154. package/packages/workflow-editor/src/properties-editors/common/form-fields-utils.js +0 -23
  155. package/packages/workflow-editor/src/properties-editors/common/form-fields.vue +0 -117
  156. package/packages/workflow-editor/src/properties-editors/common/i18n-input.vue +0 -88
  157. package/packages/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue +0 -143
  158. package/packages/workflow-editor/src/properties-editors/common/notice-reminder.vue +0 -149
  159. package/packages/workflow-editor/src/properties-editors/common/notice.vue +0 -108
  160. package/packages/workflow-editor/src/properties-editors/common/reminder.vue +0 -272
  161. package/packages/workflow-editor/src/properties-editors/common/select-mail-template.vue +0 -92
  162. package/packages/workflow-editor/src/properties-editors/common/standard-fields.vue +0 -66
  163. package/packages/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue +0 -354
  164. package/packages/workflow-editor/src/properties-editors/common/system-role-tree.vue +0 -68
  165. package/packages/workflow-editor/src/properties-editors/common/task-title.vue +0 -165
  166. package/packages/workflow-editor/src/properties-editors/common/transactor-settings.vue +0 -275
  167. package/packages/workflow-editor/src/properties-editors/common/user-selection.vue +0 -426
  168. package/packages/workflow-editor/src/properties-editors/common/value-selection-dialog.vue +0 -272
  169. package/packages/workflow-editor/src/properties-editors/common/variables.vue +0 -139
  170. package/packages/workflow-editor/src/properties-editors/copy-task/basic-properties.vue +0 -90
  171. package/packages/workflow-editor/src/properties-editors/copy-task/permission-settings.vue +0 -155
  172. package/packages/workflow-editor/src/properties-editors/copy-task.vue +0 -95
  173. package/packages/workflow-editor/src/properties-editors/decision.vue +0 -95
  174. package/packages/workflow-editor/src/properties-editors/fork.vue +0 -77
  175. package/packages/workflow-editor/src/properties-editors/human-decision.vue +0 -49
  176. package/packages/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue +0 -62
  177. package/packages/workflow-editor/src/properties-editors/human-task/basic-properties.vue +0 -184
  178. package/packages/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.js +0 -359
  179. package/packages/workflow-editor/src/properties-editors/human-task/custom-actions.vue +0 -256
  180. package/packages/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue +0 -405
  181. package/packages/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue +0 -257
  182. package/packages/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue +0 -430
  183. package/packages/workflow-editor/src/properties-editors/human-task/editable-fields.vue +0 -206
  184. package/packages/workflow-editor/src/properties-editors/human-task/events.vue +0 -60
  185. package/packages/workflow-editor/src/properties-editors/human-task/permission-settings.vue +0 -224
  186. package/packages/workflow-editor/src/properties-editors/human-task/selection-conditions.vue +0 -499
  187. package/packages/workflow-editor/src/properties-editors/human-task.vue +0 -107
  188. package/packages/workflow-editor/src/properties-editors/join.vue +0 -49
  189. package/packages/workflow-editor/src/properties-editors/process/basic-properties.vue +0 -336
  190. package/packages/workflow-editor/src/properties-editors/process/events.vue +0 -79
  191. package/packages/workflow-editor/src/properties-editors/process/notice-settings.vue +0 -68
  192. package/packages/workflow-editor/src/properties-editors/process/parameter-settings.vue +0 -106
  193. package/packages/workflow-editor/src/properties-editors/process/permission-settings.vue +0 -28
  194. package/packages/workflow-editor/src/properties-editors/process/selectPage.vue +0 -88
  195. package/packages/workflow-editor/src/properties-editors/process.vue +0 -115
  196. package/packages/workflow-editor/src/properties-editors/subprocess/basic-properties.vue +0 -201
  197. package/packages/workflow-editor/src/properties-editors/subprocess/events.vue +0 -26
  198. package/packages/workflow-editor/src/properties-editors/subprocess/field-mappings.vue +0 -216
  199. package/packages/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue +0 -66
  200. package/packages/workflow-editor/src/properties-editors/subprocess.vue +0 -80
  201. package/packages/workflow-editor/src/properties-editors/transition/basic-properties.vue +0 -53
  202. package/packages/workflow-editor/src/properties-editors/transition.vue +0 -75
  203. package/packages/workflow-editor/src/properties-editors/user-condition.js +0 -183
  204. package/packages/workflow-editor/src/store/getters.js +0 -33
  205. package/packages/workflow-editor/src/store/workflow-editor.js +0 -153
  206. package/packages/workflow-editor/src/taches/auto-task.vue +0 -99
  207. package/packages/workflow-editor/src/taches/common-methods.js +0 -21
  208. package/packages/workflow-editor/src/taches/copy-task.vue +0 -99
  209. package/packages/workflow-editor/src/taches/custom-task.vue +0 -88
  210. package/packages/workflow-editor/src/taches/decision.vue +0 -102
  211. package/packages/workflow-editor/src/taches/end.vue +0 -76
  212. package/packages/workflow-editor/src/taches/fork.vue +0 -102
  213. package/packages/workflow-editor/src/taches/human-decision.vue +0 -102
  214. package/packages/workflow-editor/src/taches/human-task.vue +0 -113
  215. package/packages/workflow-editor/src/taches/join.vue +0 -91
  216. package/packages/workflow-editor/src/taches/joint.vue +0 -177
  217. package/packages/workflow-editor/src/taches/start.vue +0 -76
  218. package/packages/workflow-editor/src/taches/subprocess.vue +0 -99
  219. package/packages/workflow-editor/src/taches/tache-resizer.vue +0 -80
  220. package/packages/workflow-editor/src/transitions/broken-line.vue +0 -91
  221. package/packages/workflow-editor/src/transitions/curve-line.vue +0 -91
  222. package/packages/workflow-editor/src/transitions/straight-line.vue +0 -26
  223. package/packages/workflow-editor/src/transitions/transition.vue +0 -209
  224. package/packages/workflow-editor/src/transitions/virtual-transition.vue +0 -43
  225. package/packages/workflow-editor/src/util.js +0 -499
  226. package/packages/workflow-editor/src/workflow-editor.vue +0 -852
  227. package/packages/workflow-editor/src/workflow-history.vue +0 -153
  228. package/public/vite.svg +0 -1
  229. package/src/i18n/i18n.js +0 -16
  230. package/src/i18n/langs/cn.js +0 -521
  231. package/src/i18n/langs/en.js +0 -529
  232. package/vite.config.js +0 -103
  233. /package/es/_virtual/{_plugin-vue_export-helper.mjs → _plugin-vue_export-helper.js} +0 -0
  234. /package/es/src/i18n/langs/{cn.mjs → cn.js} +0 -0
  235. /package/es/src/i18n/langs/{en.mjs → en.js} +0 -0
  236. /package/es/workflow-editor/src/{api.mjs → api.js} +0 -0
  237. /package/es/workflow-editor/src/assets/{wf-editor-icons.mjs → wf-editor-icons.js} +0 -0
  238. /package/es/workflow-editor/src/json-object-templates/{transition.mjs → transition.js} +0 -0
  239. /package/es/workflow-editor/src/main/{canvas.vue2.mjs → canvas.vue2.js} +0 -0
  240. /package/es/workflow-editor/src/main/{context-menu.vue2.mjs → context-menu.vue2.js} +0 -0
  241. /package/es/workflow-editor/src/main/{icon-svg.vue2.mjs → icon-svg.vue2.js} +0 -0
  242. /package/es/workflow-editor/src/main/{selection-region.vue2.mjs → selection-region.vue2.js} +0 -0
  243. /package/es/workflow-editor/src/main/{tache-history-tooltip.vue2.mjs → tache-history-tooltip.vue2.js} +0 -0
  244. /package/es/workflow-editor/src/main/{tache-subprocess-history-dialog.vue2.mjs → tache-subprocess-history-dialog.vue2.js} +0 -0
  245. /package/es/workflow-editor/src/main/{toolbox.vue2.mjs → toolbox.vue2.js} +0 -0
  246. /package/es/workflow-editor/src/main/{wf-history-canvas.vue2.mjs → wf-history-canvas.vue2.js} +0 -0
  247. /package/es/workflow-editor/src/{process-service.mjs → process-service.js} +0 -0
  248. /package/es/workflow-editor/src/properties-editors/auto-task/{basic-properties.vue2.mjs → basic-properties.vue2.js} +0 -0
  249. /package/es/workflow-editor/src/properties-editors/{auto-task.vue2.mjs → auto-task.vue2.js} +0 -0
  250. /package/es/workflow-editor/src/properties-editors/common/{form-fields-utils.mjs → form-fields-utils.js} +0 -0
  251. /package/es/workflow-editor/src/properties-editors/common/{form-fields.vue2.mjs → form-fields.vue2.js} +0 -0
  252. /package/es/workflow-editor/src/properties-editors/common/{notice-reminder.vue2.mjs → notice-reminder.vue2.js} +0 -0
  253. /package/es/workflow-editor/src/properties-editors/common/{reminder.vue2.mjs → reminder.vue2.js} +0 -0
  254. /package/es/workflow-editor/src/properties-editors/common/{system-role-tree-inline.vue2.mjs → system-role-tree-inline.vue2.js} +0 -0
  255. /package/es/workflow-editor/src/properties-editors/common/{system-role-tree.vue2.mjs → system-role-tree.vue2.js} +0 -0
  256. /package/es/workflow-editor/src/properties-editors/common/{task-title.vue2.mjs → task-title.vue2.js} +0 -0
  257. /package/es/workflow-editor/src/properties-editors/common/{value-selection-dialog.vue2.mjs → value-selection-dialog.vue2.js} +0 -0
  258. /package/es/workflow-editor/src/properties-editors/copy-task/{basic-properties.vue2.mjs → basic-properties.vue2.js} +0 -0
  259. /package/es/workflow-editor/src/properties-editors/copy-task/{permission-settings.vue2.mjs → permission-settings.vue2.js} +0 -0
  260. /package/es/workflow-editor/src/properties-editors/{copy-task.vue2.mjs → copy-task.vue2.js} +0 -0
  261. /package/es/workflow-editor/src/properties-editors/human-task/{basic-properties.vue2.mjs → basic-properties.vue2.js} +0 -0
  262. /package/es/workflow-editor/src/properties-editors/human-task/{editable-field-selection.vue2.mjs → editable-field-selection.vue2.js} +0 -0
  263. /package/es/workflow-editor/src/properties-editors/human-task/{permission-settings.vue2.mjs → permission-settings.vue2.js} +0 -0
  264. /package/es/workflow-editor/src/properties-editors/{human-task.vue2.mjs → human-task.vue2.js} +0 -0
  265. /package/es/workflow-editor/src/properties-editors/{subprocess.vue2.mjs → subprocess.vue2.js} +0 -0
  266. /package/es/workflow-editor/src/properties-editors/{transition.vue2.mjs → transition.vue2.js} +0 -0
  267. /package/es/workflow-editor/src/store/{getters.mjs → getters.js} +0 -0
  268. /package/es/workflow-editor/src/taches/{decision.vue2.mjs → decision.vue2.js} +0 -0
  269. /package/es/workflow-editor/src/taches/{end.vue2.mjs → end.vue2.js} +0 -0
  270. /package/es/workflow-editor/src/taches/{fork.vue2.mjs → fork.vue2.js} +0 -0
  271. /package/es/workflow-editor/src/taches/{human-decision.vue2.mjs → human-decision.vue2.js} +0 -0
  272. /package/es/workflow-editor/src/taches/{join.vue2.mjs → join.vue2.js} +0 -0
  273. /package/es/workflow-editor/src/taches/{joint.vue2.mjs → joint.vue2.js} +0 -0
  274. /package/es/workflow-editor/src/taches/{start.vue2.mjs → start.vue2.js} +0 -0
  275. /package/es/workflow-editor/src/taches/{tache-resizer.vue2.mjs → tache-resizer.vue2.js} +0 -0
  276. /package/es/workflow-editor/src/transitions/{broken-line.vue2.mjs → broken-line.vue2.js} +0 -0
  277. /package/es/workflow-editor/src/transitions/{curve-line.vue2.mjs → curve-line.vue2.js} +0 -0
  278. /package/es/workflow-editor/src/transitions/{transition.vue2.mjs → transition.vue2.js} +0 -0
  279. /package/es/workflow-editor/src/transitions/{virtual-transition.vue2.mjs → virtual-transition.vue2.js} +0 -0
  280. /package/es/workflow-editor/src/{workflow-editor.vue2.mjs → workflow-editor.vue2.js} +0 -0
  281. /package/es/workflow-editor/src/{workflow-history.vue2.mjs → workflow-history.vue2.js} +0 -0
@@ -1,309 +0,0 @@
1
- <template>
2
- <div ref="svgContainer" style="position:relative">
3
- <svg
4
- id="svg"
5
- width="2000"
6
- height="2000"
7
- @mousedown="mousedown"
8
- @mousemove="mousemove"
9
- @mouseup="mouseup"
10
- @mouseleave="mouseleave"
11
- >
12
- <defs>
13
- <marker id="arrow" markerWidth="10" markerHeight="10" refX="6" refY="2" orient="auto" markerUnits="strokeWidth">
14
- <path d="M0,0 L0,4 L6,2 z" fill="#666" />
15
- </marker>
16
- </defs>
17
- <component
18
- :is="tache.type"
19
- v-for="tache in taches"
20
- :key="tache.id"
21
- :model="tache"
22
- :class="[getTacheClass(tache)]"
23
- :display-mode="tache.displayMode"
24
- @mouseenter.native="showTacheHistoryTooltip(tache,$event)"
25
- @mouseleave.native="hideTacheHistoryTooltip(tache)"
26
- @mousemove.native="updateTacheHistoryTooltipPosition"
27
- @click.native="showSubprocessHistory(tache)"
28
- />
29
- <!-- <transition
30
- v-for="transition in transitions"
31
- :key="transition.id"
32
- :model="transition"
33
- /> -->
34
- <!--必须这样写,否则线条不显示-->
35
- <component :is="'transition'"
36
- v-for="transition in transitions"
37
- :key="transition.id"
38
- :model="transition"/>
39
- </svg>
40
- <tache-history-tooltip v-if="showHistory&&tacheHistoryInfo" :style="tooltipPosition" :content="tacheHistoryInfo" />
41
- <tache-subprocess-history-dialog v-if="showSubprocessDialog" :workflow-id="subWorkflowId" @close="closeSubprocessHistory" />
42
- </div>
43
- </template>
44
-
45
- <script>
46
- import Start from '../taches/start'
47
- import End from '../taches/end'
48
- import HumanTask from '../taches/human-task'
49
- import Decision from '../taches/decision'
50
- import Subprocess from '../taches/subprocess'
51
- import CustomTask from '../taches/custom-task'
52
- import Fork from '../taches/fork'
53
- import Join from '../taches/join'
54
- import HumanDecision from '../taches/human-decision'
55
- import CopyTask from '../taches/copy-task'
56
- import AutoTask from '../taches/auto-task'
57
- import Transition from '../transitions/transition'
58
- import TacheHistoryTooltip from './tache-history-tooltip'
59
- import { mapGetters } from 'vuex'
60
- import { getMousePosition } from '../util'
61
- import { i18nOperation } from 'agilebuilder-ui'
62
- import { getLanguageWithLocale } from 'agilebuilder-ui'
63
- import TacheSubprocessHistoryDialog from './tache-subprocess-history-dialog'
64
-
65
- export default {
66
- name: 'WfHistoryCanvas',
67
- components: {
68
- Start,
69
- End,
70
- HumanTask,
71
- Decision,
72
- Subprocess,
73
- CustomTask,
74
- Fork,
75
- Join,
76
- HumanDecision,
77
- CopyTask,
78
- Transition,
79
- TacheHistoryTooltip,
80
- TacheSubprocessHistoryDialog,
81
- AutoTask
82
- },
83
- props: {
84
- process: {
85
- type: Object,
86
- default: null
87
- },
88
- histories: {
89
- type: Array,
90
- default: null
91
- },
92
- currentTasks: {
93
- type: Array,
94
- default: null
95
- },
96
- // 主子流程的国际化配置
97
- allProcessI18n: {
98
- type: Object,
99
- default: null
100
- }
101
- },
102
- data: function() {
103
- return {
104
- showHistory: false,
105
- tooltipPosition: null,
106
- tacheHistoryInfo: null,
107
- showSubprocessDialog: false,
108
- subWorkflowId: null // 子流程最新实例
109
- }
110
- },
111
- computed: {
112
- ...mapGetters('wfEditor', [
113
- 'taches',
114
- 'transitions',
115
- 'processI18n'
116
- ])
117
- // classifiedTaches() {
118
- // this.taches.map(tache => {
119
- // this.tagPassedTache(tache)
120
- // this.tagCurrentTache(tache)
121
- // })
122
- // return this.taches
123
- // }
124
-
125
- },
126
- mounted: function() {
127
-
128
- },
129
- methods: {
130
- getTacheClass(tache) {
131
- // 先判断是否为当前节点 (流程中一个节点可能走多次,这个节点会同时出现在当前和历史节点中)
132
- if (this.getCurrentTache(tache)) {
133
- return 'current-tache'
134
- } else {
135
- const passTache = this.getPassedTache(tache)
136
- if (passTache && passTache.current) {
137
- // 子流程时会进入该判断
138
- return 'current-tache'
139
- } else if (passTache) {
140
- return 'passed-tache'
141
- } else {
142
- return ''
143
- }
144
- }
145
- },
146
- getPassedTache(tache) {
147
- let result = null
148
- for (const item of this.histories) {
149
- if ((item.historyType === 'PROCESS_START' && tache.ref.attr.id && tache.ref.attr.id === 'start') ||
150
- (item.historyType === 'PROCESS_END' && tache.ref.attr.id && tache.ref.attr.id === 'end') ||
151
- (tache.ref.attr.name && item.taskName && item.taskName === tache.ref.attr.name)) {
152
- result = item
153
- break
154
- }
155
- }
156
- return result
157
- },
158
- // 获得当前环节的流转历史信息,多条件流转历史记录之间换行显示。因为一个环节可能会走多次
159
- getPassedTacheHistories(tache) {
160
- const result = []
161
- for (const item of this.histories) {
162
- if ((item.historyType === 'PROCESS_START' && tache.ref.attr.id && tache.ref.attr.id === 'start') ||
163
- (item.historyType === 'PROCESS_END' && tache.ref.attr.id && tache.ref.attr.id === 'end') ||
164
- (tache.ref.attr.name && item.taskName && item.taskName === tache.ref.attr.name)) {
165
- result.push(this.i18nOperation(item))
166
- }
167
- }
168
- return result
169
- },
170
- i18nOperation(item) {
171
- let oneProcessI18n
172
- let processNameI18n
173
- const language = getLanguageWithLocale()
174
- const bundleCode = item.bundleCode
175
- if (bundleCode && bundleCode !== '' && this.processI18n) {
176
- oneProcessI18n = this.processI18n[bundleCode]
177
- }
178
- if (oneProcessI18n && oneProcessI18n['processName']) {
179
- processNameI18n = oneProcessI18n['processName'][language]
180
- }
181
- return i18nOperation(item, processNameI18n, oneProcessI18n, language)
182
- },
183
- getCurrentTache(tache) {
184
- let result = null
185
- for (const item of this.currentTasks) {
186
- if (item.taskName === tache.ref.attr.name) {
187
- result = item
188
- break
189
- }
190
- }
191
- return result
192
- },
193
- getTacheHistory(tache) {
194
- let content = null
195
- let historyText
196
- const histories = this.getPassedTacheHistories(tache)
197
- if (histories && histories.length > 0) {
198
- historyText = histories.join('</br>')
199
- }
200
- const current = this.getCurrentTache(tache)
201
- if (current) {
202
- content = this.$t('workflowEditorMessage.currentHandlingPersonnel') + ': ' + current.transactionResult
203
- if (historyText) {
204
- content += '</br>' + historyText
205
- }
206
- } else {
207
- content = historyText
208
- }
209
- return content
210
- },
211
- forbidSelection() {
212
- return false
213
- },
214
- mousedown(event) {
215
- console.log('mousedown')
216
- },
217
- mousemove(event) {
218
- },
219
- // 有些组件上的mouseup,会传播到canvas上来
220
- mouseup(event) {
221
-
222
- },
223
- mouseleave(event) {
224
-
225
- },
226
-
227
- endDrag(event) {
228
-
229
- },
230
- showTacheHistoryTooltip(tache, event) {
231
- this.tacheHistoryInfo = this.getTacheHistory(tache)
232
- this.showHistory = true
233
- },
234
- hideTacheHistoryTooltip() {
235
- // this.tacheHistoryInfo = null
236
- this.showHistory = false
237
- },
238
- updateTacheHistoryTooltipPosition(event) {
239
- const position = getMousePosition(event)
240
- this.tooltipPosition = {
241
- // 提示框的位置要偏离鼠标指针5px,防止提示框不停闪烁
242
- left: position.x + 5 + 'px',
243
- top: position.y + 5 + 'px'
244
- }
245
- },
246
- // 查看子流程流转历史
247
- showSubprocessHistory(tache) {
248
- const history = this.getPassedTache(tache)
249
- if (history && history.hasChildren !== undefined && history.hasChildren === true) {
250
- if (history.children && history.children.length > 0) {
251
- this.subWorkflowId = history.children[0].workflowId
252
- }
253
- this.showSubprocessDialog = true
254
- }
255
- },
256
- closeSubprocessHistory() {
257
- this.showSubprocessDialog = false
258
- }
259
- }
260
- }
261
- </script>
262
- <style >
263
- #svg{
264
- /* border:1px solid red; */
265
- background: white;
266
- background-image:
267
- linear-gradient(rgba(242,242,242,.7) 1px, transparent 0),
268
- linear-gradient(90deg, rgba(242,242,242,.7) 1px, transparent 0),
269
- linear-gradient(#e5e5e5 1px, transparent 0),
270
- linear-gradient(90deg,#e5e5e5 1px, transparent 0);
271
- background-size:
272
- 15px 15px,
273
- 15px 15px,
274
- 75px 75px,
275
- 75px 75px;
276
- }
277
- g{
278
- font-size: 16px;
279
- }
280
- g text{
281
- dominant-baseline: middle;
282
- }
283
- .selected{
284
- fill: #fff;
285
- stroke: #f00;
286
- stroke-width: 2;
287
- }
288
- .task-tache{
289
- fill: #fff;
290
- stroke: #666;
291
- stroke-width: 2;
292
- }
293
- .passed-tache .task-tache{
294
- fill: green;
295
- stroke: green;
296
- stroke-width: 2;
297
- }
298
- .current-tache .task-tache{
299
- fill: red;
300
- stroke: red;
301
- stroke-width: 2;
302
- }
303
- .passed-tache text{
304
- fill:white;
305
- }
306
- .current-tache text{
307
- fill: white
308
- }
309
- </style>