workflow-editor 0.0.81-up-tmp8 → 0.0.81-up-tmp10

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 (424) hide show
  1. package/dist/index.full.min.js +142 -138
  2. package/es/index.mjs +13 -15
  3. package/es/src/i18n/i18n.mjs +7 -0
  4. package/es/src/i18n/langs/cn.mjs +4 -0
  5. package/es/src/i18n/langs/en.mjs +4 -0
  6. package/es/style.css +153 -153
  7. package/es/workflow-editor/index.mjs +10 -0
  8. package/es/workflow-editor/src/api.mjs +6 -0
  9. package/es/workflow-editor/src/assets/wf-editor-icons.mjs +43 -0
  10. package/es/workflow-editor/src/json-object-templates/auto-task.mjs +7 -0
  11. package/es/workflow-editor/src/json-object-templates/copy-task.mjs +7 -0
  12. package/es/workflow-editor/src/json-object-templates/decision.mjs +7 -0
  13. package/es/workflow-editor/src/json-object-templates/end.mjs +7 -0
  14. package/es/workflow-editor/src/json-object-templates/fork.mjs +7 -0
  15. package/es/workflow-editor/src/json-object-templates/human-decision.mjs +7 -0
  16. package/es/workflow-editor/src/json-object-templates/human-task.mjs +7 -0
  17. package/es/workflow-editor/src/json-object-templates/join.mjs +7 -0
  18. package/es/workflow-editor/src/json-object-templates/process.mjs +9 -0
  19. package/es/workflow-editor/src/json-object-templates/start.mjs +7 -0
  20. package/es/workflow-editor/src/json-object-templates/subprocess.mjs +7 -0
  21. package/es/workflow-editor/src/json-object-templates/transition.mjs +6 -0
  22. package/es/workflow-editor/src/main/admin-save-dialog.vue.mjs +13 -0
  23. package/es/workflow-editor/src/main/canvas.vue.mjs +130 -0
  24. package/es/workflow-editor/src/main/canvas.vue2.mjs +4 -0
  25. package/es/workflow-editor/src/main/context-menu.vue.mjs +33 -0
  26. package/es/workflow-editor/src/main/context-menu.vue2.mjs +4 -0
  27. package/es/workflow-editor/src/main/icon-svg.vue.mjs +12 -0
  28. package/es/workflow-editor/src/main/icon-svg.vue2.mjs +4 -0
  29. package/es/workflow-editor/src/main/selection-region.vue.mjs +17 -0
  30. package/es/workflow-editor/src/main/selection-region.vue2.mjs +4 -0
  31. package/es/workflow-editor/src/main/tache-history-tooltip.vue.mjs +10 -0
  32. package/es/workflow-editor/src/main/tache-history-tooltip.vue2.mjs +4 -0
  33. package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue.mjs +11 -0
  34. package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.mjs +4 -0
  35. package/es/workflow-editor/src/main/toolbox.vue.mjs +16 -0
  36. package/es/workflow-editor/src/main/toolbox.vue2.mjs +4 -0
  37. package/es/workflow-editor/src/main/wf-history-canvas.vue.mjs +86 -0
  38. package/es/workflow-editor/src/main/wf-history-canvas.vue2.mjs +4 -0
  39. package/es/workflow-editor/src/process-service.mjs +21 -0
  40. package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.mjs +25 -0
  41. package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.mjs +4 -0
  42. package/es/workflow-editor/src/properties-editors/auto-task.vue.mjs +22 -0
  43. package/es/workflow-editor/src/properties-editors/auto-task.vue2.mjs +4 -0
  44. package/es/workflow-editor/src/properties-editors/common/additional-condition-utils.mjs +125 -0
  45. package/es/workflow-editor/src/properties-editors/common/additional-condition.vue.mjs +60 -0
  46. package/es/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.mjs +5 -0
  47. package/es/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.mjs +72 -0
  48. package/es/workflow-editor/src/properties-editors/common/common-notice-tool.vue.mjs +18 -0
  49. package/es/workflow-editor/src/properties-editors/common/common-user-condition.vue.mjs +55 -0
  50. package/es/workflow-editor/src/properties-editors/common/form-fields-utils.mjs +14 -0
  51. package/es/workflow-editor/src/properties-editors/common/form-fields.vue.mjs +20 -0
  52. package/es/workflow-editor/src/properties-editors/common/form-fields.vue2.mjs +4 -0
  53. package/es/workflow-editor/src/properties-editors/common/i18n-input.vue.mjs +25 -0
  54. package/es/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.mjs +36 -0
  55. package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue.mjs +27 -0
  56. package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue2.mjs +4 -0
  57. package/es/workflow-editor/src/properties-editors/common/notice.vue.mjs +31 -0
  58. package/es/workflow-editor/src/properties-editors/common/reminder.vue.mjs +36 -0
  59. package/es/workflow-editor/src/properties-editors/common/reminder.vue2.mjs +4 -0
  60. package/es/workflow-editor/src/properties-editors/common/select-mail-template.vue.mjs +20 -0
  61. package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.mjs +95 -0
  62. package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.mjs +4 -0
  63. package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue.mjs +16 -0
  64. package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue2.mjs +4 -0
  65. package/es/workflow-editor/src/properties-editors/common/task-title.vue.mjs +46 -0
  66. package/es/workflow-editor/src/properties-editors/common/task-title.vue2.mjs +4 -0
  67. package/es/workflow-editor/src/properties-editors/common/transactor-settings.vue.mjs +43 -0
  68. package/es/workflow-editor/src/properties-editors/common/user-selection.vue.mjs +116 -0
  69. package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.mjs +60 -0
  70. package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.mjs +4 -0
  71. package/es/workflow-editor/src/properties-editors/common/variables.vue.mjs +41 -0
  72. package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.mjs +25 -0
  73. package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.mjs +4 -0
  74. package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.mjs +30 -0
  75. package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.mjs +4 -0
  76. package/es/workflow-editor/src/properties-editors/copy-task.vue.mjs +26 -0
  77. package/es/workflow-editor/src/properties-editors/copy-task.vue2.mjs +4 -0
  78. package/es/workflow-editor/src/properties-editors/decision.vue.mjs +24 -0
  79. package/es/workflow-editor/src/properties-editors/fork.vue.mjs +21 -0
  80. package/es/workflow-editor/src/properties-editors/human-decision.vue.mjs +15 -0
  81. package/es/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.mjs +16 -0
  82. package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue.mjs +38 -0
  83. package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.mjs +4 -0
  84. package/es/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.mjs +84 -0
  85. package/es/workflow-editor/src/properties-editors/human-task/custom-actions.vue.mjs +62 -0
  86. package/es/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.mjs +80 -0
  87. package/es/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.mjs +86 -0
  88. package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.mjs +43 -0
  89. package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.mjs +4 -0
  90. package/es/workflow-editor/src/properties-editors/human-task/editable-fields.vue.mjs +67 -0
  91. package/es/workflow-editor/src/properties-editors/human-task/events.vue.mjs +18 -0
  92. package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue.mjs +33 -0
  93. package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.mjs +4 -0
  94. package/es/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.mjs +56 -0
  95. package/es/workflow-editor/src/properties-editors/human-task.vue.mjs +28 -0
  96. package/es/workflow-editor/src/properties-editors/human-task.vue2.mjs +4 -0
  97. package/es/workflow-editor/src/properties-editors/join.vue.mjs +15 -0
  98. package/es/workflow-editor/src/properties-editors/process/basic-properties.vue.mjs +88 -0
  99. package/es/workflow-editor/src/properties-editors/process/events.vue.mjs +21 -0
  100. package/es/workflow-editor/src/properties-editors/process/notice-settings.vue.mjs +25 -0
  101. package/es/workflow-editor/src/properties-editors/process/parameter-settings.vue.mjs +17 -0
  102. package/es/workflow-editor/src/properties-editors/process/permission-settings.vue.mjs +10 -0
  103. package/es/workflow-editor/src/properties-editors/process/selectPage.vue.mjs +28 -0
  104. package/es/workflow-editor/src/properties-editors/process.vue.mjs +34 -0
  105. package/es/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.mjs +64 -0
  106. package/es/workflow-editor/src/properties-editors/subprocess/events.vue.mjs +9 -0
  107. package/es/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.mjs +55 -0
  108. package/es/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.mjs +20 -0
  109. package/es/workflow-editor/src/properties-editors/subprocess.vue.mjs +22 -0
  110. package/es/workflow-editor/src/properties-editors/subprocess.vue2.mjs +4 -0
  111. package/es/workflow-editor/src/properties-editors/transition/basic-properties.vue.mjs +14 -0
  112. package/es/workflow-editor/src/properties-editors/transition.vue.mjs +17 -0
  113. package/es/workflow-editor/src/properties-editors/transition.vue2.mjs +4 -0
  114. package/es/workflow-editor/src/properties-editors/user-condition.mjs +49 -0
  115. package/es/workflow-editor/src/store/getters.mjs +4 -0
  116. package/es/workflow-editor/src/store/workflow-editor.mjs +73 -0
  117. package/es/workflow-editor/src/taches/auto-task.vue.mjs +25 -0
  118. package/es/workflow-editor/src/taches/common-methods.mjs +13 -0
  119. package/es/workflow-editor/src/taches/copy-task.vue.mjs +25 -0
  120. package/es/workflow-editor/src/taches/custom-task.vue.mjs +16 -0
  121. package/es/workflow-editor/src/taches/decision.vue.mjs +25 -0
  122. package/es/workflow-editor/src/taches/decision.vue2.mjs +4 -0
  123. package/es/workflow-editor/src/taches/end.vue.mjs +14 -0
  124. package/es/workflow-editor/src/taches/end.vue2.mjs +4 -0
  125. package/es/workflow-editor/src/taches/fork.vue.mjs +25 -0
  126. package/es/workflow-editor/src/taches/fork.vue2.mjs +4 -0
  127. package/es/workflow-editor/src/taches/human-decision.vue.mjs +25 -0
  128. package/es/workflow-editor/src/taches/human-decision.vue2.mjs +4 -0
  129. package/es/workflow-editor/src/taches/human-task.vue.mjs +25 -0
  130. package/es/workflow-editor/src/taches/join.vue.mjs +16 -0
  131. package/es/workflow-editor/src/taches/join.vue2.mjs +4 -0
  132. package/es/workflow-editor/src/taches/joint.vue.mjs +54 -0
  133. package/es/workflow-editor/src/taches/joint.vue2.mjs +4 -0
  134. package/es/workflow-editor/src/taches/start.vue.mjs +14 -0
  135. package/es/workflow-editor/src/taches/start.vue2.mjs +4 -0
  136. package/es/workflow-editor/src/taches/subprocess.vue.mjs +25 -0
  137. package/es/workflow-editor/src/taches/tache-resizer.vue.mjs +30 -0
  138. package/es/workflow-editor/src/taches/tache-resizer.vue2.mjs +4 -0
  139. package/es/workflow-editor/src/transitions/broken-line.vue.mjs +32 -0
  140. package/es/workflow-editor/src/transitions/broken-line.vue2.mjs +4 -0
  141. package/es/workflow-editor/src/transitions/curve-line.vue.mjs +33 -0
  142. package/es/workflow-editor/src/transitions/curve-line.vue2.mjs +4 -0
  143. package/es/workflow-editor/src/transitions/straight-line.vue.mjs +13 -0
  144. package/es/workflow-editor/src/transitions/transition.vue.mjs +70 -0
  145. package/es/workflow-editor/src/transitions/transition.vue2.mjs +4 -0
  146. package/es/workflow-editor/src/transitions/virtual-transition.vue.mjs +17 -0
  147. package/es/workflow-editor/src/transitions/virtual-transition.vue2.mjs +4 -0
  148. package/es/workflow-editor/src/util.mjs +180 -0
  149. package/es/workflow-editor/src/workflow-editor.vue.mjs +205 -0
  150. package/es/workflow-editor/src/workflow-editor.vue2.mjs +4 -0
  151. package/es/workflow-editor/src/workflow-history.vue.mjs +35 -0
  152. package/es/workflow-editor/src/workflow-history.vue2.mjs +4 -0
  153. package/lib/index.cjs +4 -4
  154. package/lib/src/i18n/i18n.cjs +3 -0
  155. package/lib/src/i18n/langs/cn.cjs +2 -0
  156. package/lib/src/i18n/langs/en.cjs +2 -0
  157. package/lib/style.css +110 -110
  158. package/lib/workflow-editor/index.cjs +7 -0
  159. package/lib/workflow-editor/src/api.cjs +5 -0
  160. package/lib/workflow-editor/src/assets/wf-editor-icons.cjs +44 -0
  161. package/lib/workflow-editor/src/json-object-templates/auto-task.cjs +5 -0
  162. package/lib/workflow-editor/src/json-object-templates/copy-task.cjs +5 -0
  163. package/lib/workflow-editor/src/json-object-templates/decision.cjs +5 -0
  164. package/lib/workflow-editor/src/json-object-templates/end.cjs +5 -0
  165. package/lib/workflow-editor/src/json-object-templates/fork.cjs +5 -0
  166. package/lib/workflow-editor/src/json-object-templates/human-decision.cjs +5 -0
  167. package/lib/workflow-editor/src/json-object-templates/human-task.cjs +5 -0
  168. package/lib/workflow-editor/src/json-object-templates/join.cjs +5 -0
  169. package/lib/workflow-editor/src/json-object-templates/process.cjs +6 -0
  170. package/lib/workflow-editor/src/json-object-templates/start.cjs +5 -0
  171. package/lib/workflow-editor/src/json-object-templates/subprocess.cjs +5 -0
  172. package/lib/workflow-editor/src/json-object-templates/transition.cjs +4 -0
  173. package/lib/workflow-editor/src/main/admin-save-dialog.vue.cjs +11 -0
  174. package/lib/workflow-editor/src/main/canvas.vue.cjs +101 -0
  175. package/lib/workflow-editor/src/main/canvas.vue2.cjs +2 -0
  176. package/lib/workflow-editor/src/main/context-menu.vue.cjs +29 -0
  177. package/lib/workflow-editor/src/main/context-menu.vue2.cjs +2 -0
  178. package/lib/workflow-editor/src/main/icon-svg.vue.cjs +10 -0
  179. package/lib/workflow-editor/src/main/icon-svg.vue2.cjs +2 -0
  180. package/lib/workflow-editor/src/main/selection-region.vue.cjs +13 -0
  181. package/lib/workflow-editor/src/main/selection-region.vue2.cjs +2 -0
  182. package/lib/workflow-editor/src/main/tache-history-tooltip.vue.cjs +8 -0
  183. package/lib/workflow-editor/src/main/tache-history-tooltip.vue2.cjs +2 -0
  184. package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue.cjs +9 -0
  185. package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.cjs +2 -0
  186. package/lib/workflow-editor/src/main/toolbox.vue.cjs +11 -0
  187. package/lib/workflow-editor/src/main/toolbox.vue2.cjs +2 -0
  188. package/lib/workflow-editor/src/main/wf-history-canvas.vue.cjs +67 -0
  189. package/lib/workflow-editor/src/main/wf-history-canvas.vue2.cjs +2 -0
  190. package/lib/workflow-editor/src/process-service.cjs +20 -0
  191. package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.cjs +20 -0
  192. package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.cjs +2 -0
  193. package/lib/workflow-editor/src/properties-editors/auto-task.vue.cjs +19 -0
  194. package/lib/workflow-editor/src/properties-editors/auto-task.vue2.cjs +2 -0
  195. package/lib/workflow-editor/src/properties-editors/common/additional-condition-utils.cjs +94 -0
  196. package/lib/workflow-editor/src/properties-editors/common/additional-condition.vue.cjs +54 -0
  197. package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.cjs +4 -0
  198. package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.cjs +67 -0
  199. package/lib/workflow-editor/src/properties-editors/common/common-notice-tool.vue.cjs +16 -0
  200. package/lib/workflow-editor/src/properties-editors/common/common-user-condition.vue.cjs +50 -0
  201. package/lib/workflow-editor/src/properties-editors/common/form-fields-utils.cjs +11 -0
  202. package/lib/workflow-editor/src/properties-editors/common/form-fields.vue.cjs +17 -0
  203. package/lib/workflow-editor/src/properties-editors/common/form-fields.vue2.cjs +2 -0
  204. package/lib/workflow-editor/src/properties-editors/common/i18n-input.vue.cjs +20 -0
  205. package/lib/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.cjs +31 -0
  206. package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue.cjs +22 -0
  207. package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue2.cjs +2 -0
  208. package/lib/workflow-editor/src/properties-editors/common/notice.vue.cjs +25 -0
  209. package/lib/workflow-editor/src/properties-editors/common/reminder.vue.cjs +31 -0
  210. package/lib/workflow-editor/src/properties-editors/common/reminder.vue2.cjs +2 -0
  211. package/lib/workflow-editor/src/properties-editors/common/select-mail-template.vue.cjs +17 -0
  212. package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.cjs +93 -0
  213. package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.cjs +2 -0
  214. package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue.cjs +13 -0
  215. package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue2.cjs +2 -0
  216. package/lib/workflow-editor/src/properties-editors/common/task-title.vue.cjs +42 -0
  217. package/lib/workflow-editor/src/properties-editors/common/task-title.vue2.cjs +2 -0
  218. package/lib/workflow-editor/src/properties-editors/common/transactor-settings.vue.cjs +37 -0
  219. package/lib/workflow-editor/src/properties-editors/common/user-selection.vue.cjs +110 -0
  220. package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.cjs +55 -0
  221. package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.cjs +2 -0
  222. package/lib/workflow-editor/src/properties-editors/common/variables.vue.cjs +39 -0
  223. package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.cjs +20 -0
  224. package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.cjs +2 -0
  225. package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.cjs +26 -0
  226. package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.cjs +2 -0
  227. package/lib/workflow-editor/src/properties-editors/copy-task.vue.cjs +19 -0
  228. package/lib/workflow-editor/src/properties-editors/copy-task.vue2.cjs +2 -0
  229. package/lib/workflow-editor/src/properties-editors/decision.vue.cjs +20 -0
  230. package/lib/workflow-editor/src/properties-editors/fork.vue.cjs +18 -0
  231. package/lib/workflow-editor/src/properties-editors/human-decision.vue.cjs +13 -0
  232. package/lib/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.cjs +13 -0
  233. package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue.cjs +31 -0
  234. package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.cjs +2 -0
  235. package/lib/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.cjs +82 -0
  236. package/lib/workflow-editor/src/properties-editors/human-task/custom-actions.vue.cjs +56 -0
  237. package/lib/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.cjs +75 -0
  238. package/lib/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.cjs +80 -0
  239. package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.cjs +39 -0
  240. package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.cjs +2 -0
  241. package/lib/workflow-editor/src/properties-editors/human-task/editable-fields.vue.cjs +60 -0
  242. package/lib/workflow-editor/src/properties-editors/human-task/events.vue.cjs +15 -0
  243. package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue.cjs +26 -0
  244. package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.cjs +2 -0
  245. package/lib/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.cjs +49 -0
  246. package/lib/workflow-editor/src/properties-editors/human-task.vue.cjs +19 -0
  247. package/lib/workflow-editor/src/properties-editors/human-task.vue2.cjs +2 -0
  248. package/lib/workflow-editor/src/properties-editors/join.vue.cjs +13 -0
  249. package/lib/workflow-editor/src/properties-editors/process/basic-properties.vue.cjs +81 -0
  250. package/lib/workflow-editor/src/properties-editors/process/events.vue.cjs +18 -0
  251. package/lib/workflow-editor/src/properties-editors/process/notice-settings.vue.cjs +21 -0
  252. package/lib/workflow-editor/src/properties-editors/process/parameter-settings.vue.cjs +13 -0
  253. package/lib/workflow-editor/src/properties-editors/process/permission-settings.vue.cjs +7 -0
  254. package/lib/workflow-editor/src/properties-editors/process/selectPage.vue.cjs +23 -0
  255. package/lib/workflow-editor/src/properties-editors/process.vue.cjs +24 -0
  256. package/lib/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.cjs +57 -0
  257. package/lib/workflow-editor/src/properties-editors/subprocess/events.vue.cjs +7 -0
  258. package/lib/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.cjs +50 -0
  259. package/lib/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.cjs +16 -0
  260. package/lib/workflow-editor/src/properties-editors/subprocess.vue.cjs +17 -0
  261. package/lib/workflow-editor/src/properties-editors/subprocess.vue2.cjs +2 -0
  262. package/lib/workflow-editor/src/properties-editors/transition/basic-properties.vue.cjs +10 -0
  263. package/lib/workflow-editor/src/properties-editors/transition.vue.cjs +12 -0
  264. package/lib/workflow-editor/src/properties-editors/transition.vue2.cjs +2 -0
  265. package/lib/workflow-editor/src/properties-editors/user-condition.cjs +33 -0
  266. package/lib/workflow-editor/src/store/getters.cjs +2 -0
  267. package/lib/workflow-editor/src/store/workflow-editor.cjs +71 -0
  268. package/lib/workflow-editor/src/taches/auto-task.vue.cjs +17 -0
  269. package/lib/workflow-editor/src/taches/common-methods.cjs +11 -0
  270. package/lib/workflow-editor/src/taches/copy-task.vue.cjs +17 -0
  271. package/lib/workflow-editor/src/taches/custom-task.vue.cjs +9 -0
  272. package/lib/workflow-editor/src/taches/decision.vue.cjs +19 -0
  273. package/lib/workflow-editor/src/taches/decision.vue2.cjs +2 -0
  274. package/lib/workflow-editor/src/taches/end.vue.cjs +9 -0
  275. package/lib/workflow-editor/src/taches/end.vue2.cjs +2 -0
  276. package/lib/workflow-editor/src/taches/fork.vue.cjs +19 -0
  277. package/lib/workflow-editor/src/taches/fork.vue2.cjs +2 -0
  278. package/lib/workflow-editor/src/taches/human-decision.vue.cjs +19 -0
  279. package/lib/workflow-editor/src/taches/human-decision.vue2.cjs +2 -0
  280. package/lib/workflow-editor/src/taches/human-task.vue.cjs +17 -0
  281. package/lib/workflow-editor/src/taches/join.vue.cjs +11 -0
  282. package/lib/workflow-editor/src/taches/join.vue2.cjs +2 -0
  283. package/lib/workflow-editor/src/taches/joint.vue.cjs +50 -0
  284. package/lib/workflow-editor/src/taches/joint.vue2.cjs +2 -0
  285. package/lib/workflow-editor/src/taches/start.vue.cjs +9 -0
  286. package/lib/workflow-editor/src/taches/start.vue2.cjs +2 -0
  287. package/lib/workflow-editor/src/taches/subprocess.vue.cjs +17 -0
  288. package/lib/workflow-editor/src/taches/tache-resizer.vue.cjs +27 -0
  289. package/lib/workflow-editor/src/taches/tache-resizer.vue2.cjs +2 -0
  290. package/lib/workflow-editor/src/transitions/broken-line.vue.cjs +28 -0
  291. package/lib/workflow-editor/src/transitions/broken-line.vue2.cjs +2 -0
  292. package/lib/workflow-editor/src/transitions/curve-line.vue.cjs +29 -0
  293. package/lib/workflow-editor/src/transitions/curve-line.vue2.cjs +2 -0
  294. package/lib/workflow-editor/src/transitions/straight-line.vue.cjs +9 -0
  295. package/lib/workflow-editor/src/transitions/transition.vue.cjs +63 -0
  296. package/lib/workflow-editor/src/transitions/transition.vue2.cjs +2 -0
  297. package/lib/workflow-editor/src/transitions/virtual-transition.vue.cjs +13 -0
  298. package/lib/workflow-editor/src/transitions/virtual-transition.vue2.cjs +2 -0
  299. package/lib/workflow-editor/src/util.cjs +139 -0
  300. package/lib/workflow-editor/src/workflow-editor.vue.cjs +191 -0
  301. package/lib/workflow-editor/src/workflow-editor.vue2.cjs +2 -0
  302. package/lib/workflow-editor/src/workflow-history.vue.cjs +28 -0
  303. package/lib/workflow-editor/src/workflow-history.vue2.cjs +2 -0
  304. package/package.json +1 -1
  305. package/packages/index.js +50 -0
  306. package/packages/plugins/formValidatorUtil.js +723 -0
  307. package/packages/plugins/index.js +8 -0
  308. package/packages/workflow-editor/index.js +14 -0
  309. package/packages/workflow-editor/src/api.js +7 -0
  310. package/packages/workflow-editor/src/assets/tab-select.png +0 -0
  311. package/packages/workflow-editor/src/assets/tab-selectWhite.png +0 -0
  312. package/packages/workflow-editor/src/assets/wf-editor-icons.js +2 -0
  313. package/packages/workflow-editor/src/constant.js +8 -0
  314. package/packages/workflow-editor/src/json-object-templates/auto-task.js +70 -0
  315. package/packages/workflow-editor/src/json-object-templates/copy-task.js +72 -0
  316. package/packages/workflow-editor/src/json-object-templates/decision.js +11 -0
  317. package/packages/workflow-editor/src/json-object-templates/end.js +14 -0
  318. package/packages/workflow-editor/src/json-object-templates/fork.js +10 -0
  319. package/packages/workflow-editor/src/json-object-templates/human-decision.js +9 -0
  320. package/packages/workflow-editor/src/json-object-templates/human-task.js +208 -0
  321. package/packages/workflow-editor/src/json-object-templates/join.js +10 -0
  322. package/packages/workflow-editor/src/json-object-templates/process.js +99 -0
  323. package/packages/workflow-editor/src/json-object-templates/start.js +13 -0
  324. package/packages/workflow-editor/src/json-object-templates/subprocess.js +31 -0
  325. package/packages/workflow-editor/src/json-object-templates/transition.js +26 -0
  326. package/packages/workflow-editor/src/main/admin-save-dialog.vue +67 -0
  327. package/packages/workflow-editor/src/main/canvas.vue +493 -0
  328. package/packages/workflow-editor/src/main/context-menu.vue +147 -0
  329. package/packages/workflow-editor/src/main/icon-svg.vue +32 -0
  330. package/packages/workflow-editor/src/main/selection-region.vue +66 -0
  331. package/packages/workflow-editor/src/main/tache-history-tooltip.vue +38 -0
  332. package/packages/workflow-editor/src/main/tache-name-input.vue +19 -0
  333. package/packages/workflow-editor/src/main/tache-subprocess-history-dialog.vue +40 -0
  334. package/packages/workflow-editor/src/main/toolbox.vue +60 -0
  335. package/packages/workflow-editor/src/main/wf-history-canvas.vue +309 -0
  336. package/packages/workflow-editor/src/process-json.js +624 -0
  337. package/packages/workflow-editor/src/process-service.js +68 -0
  338. package/packages/workflow-editor/src/properties-editors/auto-task/basic-properties.vue +81 -0
  339. package/packages/workflow-editor/src/properties-editors/auto-task/permission-settings.vue +155 -0
  340. package/packages/workflow-editor/src/properties-editors/auto-task.vue +74 -0
  341. package/packages/workflow-editor/src/properties-editors/common/additional-condition-utils.js +568 -0
  342. package/packages/workflow-editor/src/properties-editors/common/additional-condition.vue +320 -0
  343. package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.js +34 -0
  344. package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields.vue +268 -0
  345. package/packages/workflow-editor/src/properties-editors/common/common-notice-tool.vue +81 -0
  346. package/packages/workflow-editor/src/properties-editors/common/common-user-condition.vue +242 -0
  347. package/packages/workflow-editor/src/properties-editors/common/form-fields-utils.js +23 -0
  348. package/packages/workflow-editor/src/properties-editors/common/form-fields.vue +117 -0
  349. package/packages/workflow-editor/src/properties-editors/common/i18n-input.vue +88 -0
  350. package/packages/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue +143 -0
  351. package/packages/workflow-editor/src/properties-editors/common/notice-reminder.vue +149 -0
  352. package/packages/workflow-editor/src/properties-editors/common/notice.vue +108 -0
  353. package/packages/workflow-editor/src/properties-editors/common/reminder.vue +272 -0
  354. package/packages/workflow-editor/src/properties-editors/common/select-mail-template.vue +92 -0
  355. package/packages/workflow-editor/src/properties-editors/common/standard-fields.vue +66 -0
  356. package/packages/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue +354 -0
  357. package/packages/workflow-editor/src/properties-editors/common/system-role-tree.vue +68 -0
  358. package/packages/workflow-editor/src/properties-editors/common/task-title.vue +165 -0
  359. package/packages/workflow-editor/src/properties-editors/common/transactor-settings.vue +275 -0
  360. package/packages/workflow-editor/src/properties-editors/common/user-selection.vue +426 -0
  361. package/packages/workflow-editor/src/properties-editors/common/value-selection-dialog.vue +272 -0
  362. package/packages/workflow-editor/src/properties-editors/common/variables.vue +139 -0
  363. package/packages/workflow-editor/src/properties-editors/copy-task/basic-properties.vue +90 -0
  364. package/packages/workflow-editor/src/properties-editors/copy-task/permission-settings.vue +155 -0
  365. package/packages/workflow-editor/src/properties-editors/copy-task.vue +95 -0
  366. package/packages/workflow-editor/src/properties-editors/decision.vue +95 -0
  367. package/packages/workflow-editor/src/properties-editors/fork.vue +77 -0
  368. package/packages/workflow-editor/src/properties-editors/human-decision.vue +49 -0
  369. package/packages/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue +62 -0
  370. package/packages/workflow-editor/src/properties-editors/human-task/basic-properties.vue +184 -0
  371. package/packages/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.js +359 -0
  372. package/packages/workflow-editor/src/properties-editors/human-task/custom-actions.vue +256 -0
  373. package/packages/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue +405 -0
  374. package/packages/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue +257 -0
  375. package/packages/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue +430 -0
  376. package/packages/workflow-editor/src/properties-editors/human-task/editable-fields.vue +206 -0
  377. package/packages/workflow-editor/src/properties-editors/human-task/events.vue +60 -0
  378. package/packages/workflow-editor/src/properties-editors/human-task/permission-settings.vue +224 -0
  379. package/packages/workflow-editor/src/properties-editors/human-task/selection-conditions.vue +499 -0
  380. package/packages/workflow-editor/src/properties-editors/human-task.vue +107 -0
  381. package/packages/workflow-editor/src/properties-editors/join.vue +49 -0
  382. package/packages/workflow-editor/src/properties-editors/process/basic-properties.vue +336 -0
  383. package/packages/workflow-editor/src/properties-editors/process/events.vue +79 -0
  384. package/packages/workflow-editor/src/properties-editors/process/notice-settings.vue +68 -0
  385. package/packages/workflow-editor/src/properties-editors/process/parameter-settings.vue +106 -0
  386. package/packages/workflow-editor/src/properties-editors/process/permission-settings.vue +28 -0
  387. package/packages/workflow-editor/src/properties-editors/process/selectPage.vue +88 -0
  388. package/packages/workflow-editor/src/properties-editors/process.vue +115 -0
  389. package/packages/workflow-editor/src/properties-editors/subprocess/basic-properties.vue +201 -0
  390. package/packages/workflow-editor/src/properties-editors/subprocess/events.vue +26 -0
  391. package/packages/workflow-editor/src/properties-editors/subprocess/field-mappings.vue +216 -0
  392. package/packages/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue +66 -0
  393. package/packages/workflow-editor/src/properties-editors/subprocess.vue +80 -0
  394. package/packages/workflow-editor/src/properties-editors/transition/basic-properties.vue +53 -0
  395. package/packages/workflow-editor/src/properties-editors/transition.vue +75 -0
  396. package/packages/workflow-editor/src/properties-editors/user-condition.js +183 -0
  397. package/packages/workflow-editor/src/store/getters.js +33 -0
  398. package/packages/workflow-editor/src/store/workflow-editor.js +153 -0
  399. package/packages/workflow-editor/src/taches/auto-task.vue +99 -0
  400. package/packages/workflow-editor/src/taches/common-methods.js +21 -0
  401. package/packages/workflow-editor/src/taches/copy-task.vue +99 -0
  402. package/packages/workflow-editor/src/taches/custom-task.vue +88 -0
  403. package/packages/workflow-editor/src/taches/decision.vue +102 -0
  404. package/packages/workflow-editor/src/taches/end.vue +76 -0
  405. package/packages/workflow-editor/src/taches/fork.vue +102 -0
  406. package/packages/workflow-editor/src/taches/human-decision.vue +102 -0
  407. package/packages/workflow-editor/src/taches/human-task.vue +113 -0
  408. package/packages/workflow-editor/src/taches/join.vue +91 -0
  409. package/packages/workflow-editor/src/taches/joint.vue +177 -0
  410. package/packages/workflow-editor/src/taches/start.vue +76 -0
  411. package/packages/workflow-editor/src/taches/subprocess.vue +99 -0
  412. package/packages/workflow-editor/src/taches/tache-resizer.vue +80 -0
  413. package/packages/workflow-editor/src/transitions/broken-line.vue +91 -0
  414. package/packages/workflow-editor/src/transitions/curve-line.vue +91 -0
  415. package/packages/workflow-editor/src/transitions/straight-line.vue +26 -0
  416. package/packages/workflow-editor/src/transitions/transition.vue +209 -0
  417. package/packages/workflow-editor/src/transitions/virtual-transition.vue +43 -0
  418. package/packages/workflow-editor/src/util.js +499 -0
  419. package/packages/workflow-editor/src/workflow-editor.vue +852 -0
  420. package/packages/workflow-editor/src/workflow-history.vue +153 -0
  421. package/src/i18n/i18n.js +16 -0
  422. package/src/i18n/langs/cn.js +521 -0
  423. package/src/i18n/langs/en.js +529 -0
  424. package/.vscode/extensions.json +0 -3
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ const e = require("../../../src/i18n/i18n.cjs");
3
+ module.exports = function() {
4
+ return { attr: { id: "", name: e.global.t("workflowEditor.task.subprocess"), taskTitle: "" }, g: {}, processCode: "", processVersion: "", events: { beforeStart: "", end: false }, transactorSettings: { userCondition: "", additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, parameters: { field: [] }, result: { field: [] } };
5
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ module.exports = function() {
3
+ return { attr: { id: "", from: "", to: "" }, g: {}, basicProperties: { remark: "", isOriginalUser: false, condition: "" }, inform: { informType: "mail", userCondition: "", subject: "", content: "" }, autoFilledFields: { field: [] }, onTransit: false };
4
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ const e = require("vue");
3
+ const t = require("../../../_virtual/_plugin-vue_export-helper.cjs")({ name: "AdminSaveDialog", data: () => ({ dialogVisible: true }), methods: { updateWfVersion() {
4
+ this.$emit("update");
5
+ }, addWfVersion() {
6
+ this.$emit("add");
7
+ } } }, [["render", function(t2, o, i, l, r, a) {
8
+ const n = e.resolveComponent("el-button"), d = e.resolveComponent("el-dialog");
9
+ return e.openBlock(), e.createBlock(d, { "model-value": "", title: t2.$t("workflowEditorPublicModel.tipTitle"), center: true, top: "10vh", "append-to-body": "", onOpen: o[1] || (o[1] = (e2) => t2.$emit("open")), onOpend: o[2] || (o[2] = (e2) => t2.$emit("opend")), onClose: o[3] || (o[3] = (e2) => t2.$emit("close")), onClosed: o[4] || (o[4] = (e2) => t2.$emit("closed")) }, { footer: e.withCtx(() => [e.createVNode(n, { onClick: a.updateWfVersion }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("workflowEditorMessage.updateVersion")), 1)]), _: 1 }, 8, ["onClick"]), e.createVNode(n, { type: "primary", onClick: a.addWfVersion }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("workflowEditorMessage.addVersion")), 1)]), _: 1 }, 8, ["onClick"]), e.createVNode(n, { onClick: o[0] || (o[0] = (e2) => t2.$emit("close")) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: e.withCtx(() => [e.createElementVNode("div", null, e.toDisplayString(t2.$t("workflowEditorMessage.adminSaveTip")), 1), e.createElementVNode("ul", null, [e.createElementVNode("li", null, e.toDisplayString(t2.$t("workflowEditorMessage.adminSaveTip1")), 1), e.createElementVNode("li", null, e.toDisplayString(t2.$t("workflowEditorMessage.adminSaveTip2")), 1), e.createElementVNode("li", null, e.toDisplayString(t2.$t("workflowEditorMessage.adminSaveTip3")), 1), e.createElementVNode("li", null, e.toDisplayString(t2.$t("workflowEditorMessage.adminSaveTip4")), 1)]), e.createElementVNode("div", null, e.toDisplayString(t2.$t("workflowEditorMessage.adminSaveTip5")), 1)]), _: 1 }, 8, ["title"]);
10
+ }]]);
11
+ module.exports = t;
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ const e = require("../taches/start.vue.cjs"), o = require("../taches/end.vue.cjs"), i = require("../taches/human-task.vue.cjs"), t = require("../taches/decision.vue.cjs"), s = require("../taches/subprocess.vue.cjs"), n = require("../taches/custom-task.vue.cjs"), r = require("../taches/fork.vue.cjs"), h = require("../taches/join.vue.cjs"), a = require("../taches/human-decision.vue.cjs"), c = require("../taches/copy-task.vue.cjs"), l = require("../taches/auto-task.vue.cjs"), u = require("../transitions/transition.vue.cjs"), d = require("../transitions/virtual-transition.vue.cjs"), g = require("./selection-region.vue.cjs"), p = require("../properties-editors/human-task.vue.cjs"), v = require("../properties-editors/process.vue.cjs"), m = require("../properties-editors/decision.vue.cjs"), T = require("../properties-editors/transition.vue.cjs"), P = require("../properties-editors/fork.vue.cjs"), y = require("../properties-editors/join.vue.cjs"), w = require("../properties-editors/human-decision.vue.cjs"), k = require("../properties-editors/copy-task.vue.cjs"), M = require("../properties-editors/auto-task.vue.cjs"), f = require("../properties-editors/subprocess.vue.cjs"), j = require("./tache-history-tooltip.vue.cjs"), R = require("vuex"), E = require("../util.cjs"), q = require("vue");
3
+ require("./canvas.vue2.cjs");
4
+ const x = require("../../../_virtual/_plugin-vue_export-helper.cjs"), S = { name: "Canvas", components: { Start: e, End: o, HumanTask: i, Decision: t, Subprocess: s, CustomTask: n, Fork: r, Join: h, HumanDecision: a, CopyTask: c, Transition: u, VirtualTransition: d, SelectionRegion: g, HumanTaskPropertiesEditor: p, ProcessPropertiesEditor: v, DecisionPropertiesEditor: m, TransitionPropertiesEditor: T, ForkPropertiesEditor: P, JoinPropertiesEditor: y, HumanDecisionPropertiesEditor: w, CopyTaskPropertiesEditor: k, SubprocessPropertiesEditor: f, TacheHistoryTooltip: j, AutoTask: l, AutoTaskPropertiesEditor: M }, props: { process: { type: Object, default: null }, showHistory: { type: Boolean, default: false } }, data: function() {
5
+ return { inputArea: null, currentPosition: null, originPosition: null, offset: null, startPoint: null, region: null, endPoint: null, transitionsInRegion: [], showTacheHistory: false, tooltipPosition: null };
6
+ }, computed: { ...R.mapGetters("wfEditor", ["taches", "transitions", "isMovingTache", "mouseDownPosition", "startJoint", "endJoint", "isDrawingRegion", "isMovingRegion", "selectedTransition", "selectedTaches", "resizerToMove", "draggerToMove", "controlPointToMove", "propertiesEditorFor", "contextMenuVisible"]) }, watch: { propertiesEditorFor(e2, o2) {
7
+ } }, mounted: function() {
8
+ }, methods: { ...R.mapMutations("wfEditor", ["setTaches", "setTransitions", "resetState", "setMovingTache", "stopDrawingLine", "setSelectedTaches", "setDrawingRegion", "setResizerToMove", "setDraggerToMove", "setControlPointToMove", "setPropertiesEditorFor"]), forbidSelection: () => false, add: function() {
9
+ }, mousedown(e2) {
10
+ this.unselectAll(), this.setDrawingRegion(true), this.startPoint = E.getMousePosition(e2);
11
+ }, mousemove(e2) {
12
+ this.showHistory || (!this.originPosition && this.mouseDownPosition && (this.originPosition = this.mouseDownPosition), this.currentPosition = E.getMousePosition(e2), this.isMovingTache && this.moveTache(this.selectedTaches[0]), this.drawVirtualSelectionRegion(), this.moveSelectionRegion(), this.resizeSelectedTache(), this.moveTransition(), this.adjustCurveLine(), this.originPosition = this.currentPosition);
13
+ }, mouseup(e2) {
14
+ this.isMovingTache && this.setMovingTache(false), this.startJoint && this.stopDrawingLine(), this.drawRegionWhenNeeded(), this.resizerToMove && this.setResizerToMove(null), this.resetMovedTransition();
15
+ }, mouseleave(e2) {
16
+ this.drawRegionWhenNeeded(), this.resetMovedTransition(), this.resetState();
17
+ }, drawRegionWhenNeeded() {
18
+ this.isDrawingRegion && (this.selectComponents(), this.drawRealSelectionRegion(), this.setDrawingRegion(false));
19
+ }, resetMovedTransition() {
20
+ this.draggerToMove && (this.draggerToMove.owner.startJoint = this.draggerToMove.originStartJoint, this.draggerToMove.owner.endJoint = this.draggerToMove.originEndJoint, this.setDraggerToMove(null));
21
+ }, unselectAll() {
22
+ E.clearAllSelectedComponents(), this.transitionsInRegion = [], this.startPoint = null, this.region = null;
23
+ }, selectComponents() {
24
+ if (!this.startPoint || !this.region)
25
+ return this.startPoint = null, void (this.region = null);
26
+ for (const e2 of this.taches)
27
+ this.isInsideSelectionRegion(e2) && (e2.isSelected = true, this.selectedTaches.push(e2));
28
+ for (const e2 of this.transitions)
29
+ e2.startJoint.parent.isSelected && e2.endJoint.parent.isSelected && this.transitionsInRegion.push(e2);
30
+ }, isInsideSelectionRegion(e2) {
31
+ const o2 = e2.x >= this.region.x && e2.y >= this.region.y, i2 = e2.x + e2.width <= this.region.x + this.region.width && e2.y + e2.height <= this.region.y + this.region.height;
32
+ return o2 && i2;
33
+ }, moveTache(e2) {
34
+ const o2 = this.currentPosition.x - this.originPosition.x, i2 = this.currentPosition.y - this.originPosition.y;
35
+ e2.x += o2, e2.y += i2, e2.x < 0 && (e2.x = 2), e2.y < 0 && (e2.y = 2);
36
+ }, drawVirtualSelectionRegion() {
37
+ this.isDrawingRegion && this.startPoint && (this.region = E.getVirtualRegion(this.startPoint, this.currentPosition));
38
+ }, drawRealSelectionRegion() {
39
+ if (this.selectedTaches.length <= 1)
40
+ return this.startPoint = null, void (this.region = null);
41
+ this.region = E.getRealRegion(this.selectedTaches);
42
+ }, moveSelectionRegion() {
43
+ if (!this.isMovingRegion)
44
+ return;
45
+ let e2 = this.currentPosition.x - this.originPosition.x, o2 = this.currentPosition.y - this.originPosition.y;
46
+ this.region.x + e2 < 0 && (e2 = 2 - this.region.x), this.region.y + o2 < 0 && (o2 = 2 - this.region.y), this.region.x = this.region.x + e2, this.region.y = this.region.y + o2, this.moveTachesInRegion(e2, o2), this.moveTransitionControlPoints(e2, o2);
47
+ }, moveTachesInRegion(e2, o2) {
48
+ for (const i2 of this.selectedTaches)
49
+ i2.x += e2, i2.y += o2;
50
+ }, moveTransitionControlPoints(e2, o2) {
51
+ for (const i2 of this.transitionsInRegion)
52
+ "CurveLine" === i2.lineInfo.type ? (i2.lineInfo.controlPoint.x += e2, i2.lineInfo.controlPoint.y += o2) : "BrokenLine" === i2.lineInfo.type && i2.lineInfo.controlPoint.forEach((i3) => {
53
+ i3.x += e2, i3.y += o2;
54
+ });
55
+ }, resizeSelectedTache() {
56
+ if (!this.resizerToMove)
57
+ return;
58
+ let e2 = this.currentPosition.x - this.originPosition.x, o2 = this.currentPosition.y - this.originPosition.y;
59
+ const i2 = this.resizerToMove.owner;
60
+ switch (this.resizerToMove.position) {
61
+ case "NW":
62
+ i2.width - e2 < 80 && (e2 = i2.width - 80), i2.height - o2 < 40 && (o2 = i2.height - 40), i2.width -= e2, i2.height -= o2, i2.x += e2, i2.y += o2;
63
+ break;
64
+ case "NE":
65
+ i2.width + e2 < 80 && (e2 = 80 - i2.width), i2.height - o2 < 40 && (o2 = i2.height - 40), i2.width += e2, i2.height -= o2, i2.y += o2;
66
+ break;
67
+ case "SW":
68
+ i2.width - e2 < 80 && (e2 = i2.width - 80), i2.height + o2 < 40 && (o2 = 40 - i2.height), i2.width -= e2, i2.height += o2, i2.x += e2;
69
+ break;
70
+ case "SE":
71
+ i2.width + e2 < 80 && (e2 = 80 - i2.width), i2.height + o2 < 40 && (o2 = 40 - i2.height), i2.width += e2, i2.height += o2;
72
+ }
73
+ }, moveTransition() {
74
+ if (!this.draggerToMove)
75
+ return;
76
+ const e2 = this.draggerToMove.owner, o2 = this.draggerToMove.position, i2 = { parent: this.currentPosition, position: "" };
77
+ "start" === o2 ? e2.startJoint = i2 : e2.endJoint = i2;
78
+ }, adjustCurveLine() {
79
+ if (!this.controlPointToMove)
80
+ return;
81
+ const e2 = this.controlPointToMove.owner;
82
+ if (e2.lineInfo && "CurveLine" === e2.lineInfo.type)
83
+ e2.lineInfo.controlPoint = this.currentPosition;
84
+ else if (e2.lineInfo && "BrokenLine" === e2.lineInfo.type) {
85
+ const o2 = this.controlPointToMove.pointIndex;
86
+ e2.lineInfo.controlPoint[o2] = this.currentPosition;
87
+ }
88
+ }, endDrag(e2) {
89
+ }, showTacheHistoryTooltip(e2) {
90
+ this.showTacheHistory = true;
91
+ }, hideTacheHistoryTooltip() {
92
+ this.showTacheHistory = false;
93
+ }, updateTacheHistoryTooltipPosition(e2) {
94
+ const o2 = E.getMousePosition(e2);
95
+ this.tooltipPosition = { left: o2.x + "px", top: o2.y + "px" };
96
+ } } }, C = { ref: "svgContainer", style: { position: "relative" } }, D = q.createElementVNode("defs", null, [q.createElementVNode("marker", { id: "arrow", markerWidth: "10", markerHeight: "10", refX: "6", refY: "2", orient: "auto", markerUnits: "strokeWidth" }, [q.createElementVNode("path", { d: "M0,0 L0,4 L6,2 z", fill: "#666" })])], -1);
97
+ const H = x(S, [["render", function(e2, o2, i2, t2, s2, n2) {
98
+ const r2 = q.resolveComponent("virtual-transition"), h2 = q.resolveComponent("selection-region"), a2 = q.resolveComponent("tache-history-tooltip");
99
+ return q.openBlock(), q.createElementBlock("div", C, [(q.openBlock(), q.createElementBlock("svg", { id: "svg", width: "2000", height: "2000", onMousedown: o2[0] || (o2[0] = (...e3) => n2.mousedown && n2.mousedown(...e3)), onMousemove: o2[1] || (o2[1] = (...e3) => n2.mousemove && n2.mousemove(...e3)), onMouseup: o2[2] || (o2[2] = (...e3) => n2.mouseup && n2.mouseup(...e3)), onMouseleave: o2[3] || (o2[3] = (...e3) => n2.mouseleave && n2.mouseleave(...e3)), onDblclick: o2[4] || (o2[4] = (o3) => e2.setPropertiesEditorFor("Process")) }, [D, (q.openBlock(true), q.createElementBlock(q.Fragment, null, q.renderList(e2.taches, (e3) => (q.openBlock(), q.createBlock(q.resolveDynamicComponent(e3.type), { key: e3.id, model: e3, onMouseenter: n2.showTacheHistoryTooltip, onMouseleave: n2.hideTacheHistoryTooltip, onMousemove: n2.updateTacheHistoryTooltipPosition }, null, 40, ["model", "onMouseenter", "onMouseleave", "onMousemove"]))), 128)), (q.openBlock(true), q.createElementBlock(q.Fragment, null, q.renderList(e2.transitions, (e3) => (q.openBlock(), q.createBlock(q.resolveDynamicComponent("transition"), { key: e3.id, model: e3 }, null, 8, ["model"]))), 128)), q.createVNode(r2, { toPosition: e2.currentPosition }, null, 8, ["toPosition"]), q.createVNode(h2, { region: e2.region }, null, 8, ["region"])], 32)), !i2.showHistory && e2.propertiesEditorFor ? (q.openBlock(), q.createBlock(q.resolveDynamicComponent(e2.propertiesEditorFor + "PropertiesEditor"), { key: 0, model: e2.selectedTaches[0] || e2.selectedTransition || i2.process, onClose: o2[5] || (o2[5] = (o3) => e2.setPropertiesEditorFor("")) }, null, 40, ["model"])) : q.createCommentVNode("", true), i2.showHistory && e2.showTacheHistory ? (q.openBlock(), q.createBlock(a2, { key: 1, style: q.normalizeStyle(e2.tooltipPosition) }, null, 8, ["style"])) : q.createCommentVNode("", true)], 512);
100
+ }]]);
101
+ module.exports = H;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ module.exports = "";
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ const e = require("vuex"), t = require("./icon-svg.vue.cjs"), i = require("vue");
3
+ require("./context-menu.vue2.cjs");
4
+ const o = require("../../../_virtual/_plugin-vue_export-helper.cjs"), s = { name: "ContextMenu", components: { IconSvg: t }, data() {
5
+ return { menusForTransition: [{ name: "switch-line-type-StraightLine", label: this.$t("workflowEditor.main.straightLine"), icon: "switch" }, { name: "switch-line-type-CurveLine", label: this.$t("workflowEditor.main.curveLine"), icon: "switch" }, { name: "switch-line-type-BrokenLine", label: this.$t("workflowEditor.main.brokenLine"), icon: "switch" }, { name: "remove", label: this.$t("workflowEditor.common.remove"), icon: "delete" }, { name: "properties", label: this.$t("workflowEditor.common.attribute"), icon: "properties" }], menusForTache: [{ name: "remove", label: this.$t("workflowEditor.common.remove"), icon: "delete" }, { name: "properties", label: this.$t("workflowEditor.common.attribute"), icon: "properties" }], menusForProcess: [{ name: "properties", label: this.$t("workflowEditor.common.attribute"), icon: "properties" }], componentsWithoutPropertiesEditor: ["Start", "End"] };
6
+ }, computed: { ...e.mapGetters("wfEditor", ["taches", "transitions", "selectedTransition", "selectedTaches"]), menuType() {
7
+ let e2 = "";
8
+ return this.selectedTransition ? e2 = "Transition" : 1 === this.selectedTaches.length && (e2 = "Tache"), null === this.selectedTransition && 0 === this.selectedTaches.length && (e2 = "Process"), e2;
9
+ }, menus() {
10
+ return this.menuType ? this["menusFor" + this.menuType] : [];
11
+ } }, created() {
12
+ if (this.selectedTaches.length > 0) {
13
+ const e2 = this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? "" : this.selectedTaches[0].type;
14
+ this.menuType && "Tache" === this.menuType && e2 && this.menusForTache.push({ name: "copy", label: this.$t("workflowEditor.common.copy"), icon: "fuzhi" });
15
+ }
16
+ }, methods: { ...e.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible", "setSourceComponentForCopy"]), switchLineType(e2) {
17
+ this.selectedTransition.lineInfo.controlPoint = null, this.selectedTransition.lineInfo.type = e2;
18
+ }, execute(e2) {
19
+ if (e2.indexOf("switch-line-type-") >= 0) {
20
+ const t2 = e2.substring(e2.lastIndexOf("-") + 1);
21
+ this.switchLineType(t2);
22
+ }
23
+ "remove" === e2 && ("Tache" === this.menuType ? this.taches.splice(this.taches.indexOf(this.selectedTaches[0]), 1) : "Transition" === this.menuType && this.transitions.splice(this.transitions.indexOf(this.selectedTransition), 1)), "properties" === e2 && ("Tache" === this.menuType ? this.setPropertiesEditorFor(this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? "" : this.selectedTaches[0].type) : "Transition" === this.menuType ? this.setPropertiesEditorFor("Transition") : this.setPropertiesEditorFor("Process")), "copy" === e2 && this.setSourceComponentForCopy(this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? "" : this.selectedTaches[0].type), this.setContextMenuVisible(false);
24
+ } } }, n = { class: "context-menu" }, r = ["onMousedown"];
25
+ const c = o(s, [["render", function(e2, t2, o2, s2, c2, l) {
26
+ const h = i.resolveComponent("icon-svg");
27
+ return i.openBlock(), i.createElementBlock("ul", n, [(i.openBlock(true), i.createElementBlock(i.Fragment, null, i.renderList(l.menus, (e3) => (i.openBlock(), i.createElementBlock("li", { key: e3.name, onMousedown: i.withModifiers((t3) => l.execute(e3.name), ["stop"]) }, [i.createVNode(h, { icon: e3.icon }, null, 8, ["icon"]), i.createElementVNode("span", null, i.toDisplayString(e3.label), 1)], 40, r))), 128))]);
28
+ }], ["__scopeId", "data-v-7e8a1cf6"]]);
29
+ module.exports = c;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ module.exports = "";
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ const e = require("vue");
3
+ require("./icon-svg.vue2.cjs");
4
+ const r = require("../../../_virtual/_plugin-vue_export-helper.cjs"), n = { class: "svg-icon", "aria-hidden": "true" }, c = ["xlink:href"];
5
+ const i = r({ name: "IconSvg", props: { icon: { type: String, required: true } }, computed: { iconName() {
6
+ return `#icon-${this.icon}`;
7
+ } } }, [["render", function(r2, i2, o, t, u, s) {
8
+ return e.openBlock(), e.createElementBlock("svg", n, [e.createElementVNode("use", { "xlink:href": s.iconName }, null, 8, c)]);
9
+ }]]);
10
+ module.exports = i;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ module.exports = "";
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ const e = require("vuex"), t = require("../util.cjs"), o = require("vue");
3
+ require("./selection-region.vue2.cjs");
4
+ const i = require("../../../_virtual/_plugin-vue_export-helper.cjs"), n = { name: "SelectionRegion", props: { region: { type: Object, default: null } }, computed: { ...e.mapGetters("wfEditor", ["selectedTaches"]) }, methods: { ...e.mapMutations("wfEditor", ["setDrawingRegion", "setMovingRegion", "setMouseDownPosition"]), startDrag(e2) {
5
+ const o2 = t.getMousePosition(e2);
6
+ this.setMouseDownPosition(o2), this.setMovingRegion(true);
7
+ }, endDrag(e2) {
8
+ this.setMovingRegion(false), this.setMouseDownPosition(null);
9
+ } } }, s = ["x", "y", "width", "height"];
10
+ const r = i(n, [["render", function(e2, t2, i2, n2, r2, g) {
11
+ return o.openBlock(), o.createElementBlock("g", null, [i2.region ? (o.openBlock(), o.createElementBlock("rect", { key: 0, x: i2.region.x, y: i2.region.y, width: i2.region.width, height: i2.region.height, class: o.normalizeClass({ draggable: true, "selection-region": true, dashed: e2.selectedTaches.length < 1 }), onMousedown: t2[0] || (t2[0] = o.withModifiers((...e3) => g.startDrag && g.startDrag(...e3), ["stop"])), onMouseup: t2[1] || (t2[1] = o.withModifiers((...e3) => g.endDrag && g.endDrag(...e3), ["stop"])) }, null, 42, s)) : o.createCommentVNode("", true)]);
12
+ }]]);
13
+ module.exports = r;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ module.exports = "";
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ const e = require("vue");
3
+ require("./tache-history-tooltip.vue2.cjs");
4
+ const t = require("../../../_virtual/_plugin-vue_export-helper.cjs"), o = { class: "tooltip" }, r = ["innerHTML"];
5
+ const n = t({ name: "TacheHistoryTooltip", props: { content: { type: String, default: "" } }, methods: {} }, [["render", function(t2, n2, c, i, l, s) {
6
+ return e.openBlock(), e.createElementBlock("div", o, [e.createElementVNode("div", { innerHTML: c.content }, null, 8, r)]);
7
+ }], ["__scopeId", "data-v-ac799913"]]);
8
+ module.exports = n;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ module.exports = "";
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ const e = require("vue");
3
+ require("./tache-subprocess-history-dialog.vue2.cjs");
4
+ const o = require("../../../_virtual/_plugin-vue_export-helper.cjs"), t = ["src"];
5
+ const s = o({ name: "TacheSubprocessHistoryDialog", props: { workflowId: { type: Number, default: null } }, data: () => ({ dialogVisible: true }) }, [["render", function(o2, s2, r, l, n, c) {
6
+ const i = e.resolveComponent("el-dialog");
7
+ return e.openBlock(), e.createBlock(i, { "model-value": "", title: o2.$t("workflowEditorPublicModel.subprocessTitle"), "close-on-click-modal": false, "append-to-body": "", width: "90%", top: "5vh", onOpen: s2[0] || (s2[0] = (e2) => o2.$emit("open")), onOpend: s2[1] || (s2[1] = (e2) => o2.$emit("opend")), onClose: s2[2] || (s2[2] = (e2) => o2.$emit("close")), onClosed: s2[3] || (s2[3] = (e2) => o2.$emit("closed")) }, { default: e.withCtx(() => [e.createElementVNode("iframe", { id: "_subprocess-content", src: "#/show-sub-wf-history?workflowId=" + r.workflowId, name: "_subprocess-content", title: "Subprocess Content", frameborder: "0" }, null, 8, t)]), _: 1 }, 8, ["title"]);
8
+ }], ["__scopeId", "data-v-2b195c05"]]);
9
+ module.exports = s;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ module.exports = "";
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ const e = require("vuex"), o = require("./icon-svg.vue.cjs"), t = require("../util.cjs"), n = require("vue");
3
+ require("./toolbox.vue2.cjs");
4
+ const r = require("../../../_virtual/_plugin-vue_export-helper.cjs"), c = { name: "Toolbox", components: { IconSvg: o }, data: () => ({ componentList: t.getComponentList() }), computed: { ...e.mapGetters("wfEditor", ["componentToDraw"]) }, methods: { ...e.mapMutations("wfEditor", ["setComponentToDraw"]), select(e2) {
5
+ this.setComponentToDraw(e2);
6
+ } } }, s = { style: { height: "calc(100vh - 98px)", "background-color": "#FFFFFF" } };
7
+ const l = r(c, [["render", function(e2, o2, t2, r2, c2, l2) {
8
+ const a = n.resolveComponent("icon-svg"), i = n.resolveComponent("el-button");
9
+ return n.openBlock(), n.createElementBlock("div", s, [n.createElementVNode("h3", null, n.toDisplayString(e2.$t("workflowEditor.main.tacheType")), 1), (n.openBlock(true), n.createElementBlock(n.Fragment, null, n.renderList(c2.componentList, (e3) => (n.openBlock(), n.createBlock(i, { key: e3.name, type: e3.type, class: n.normalizeClass(e3.class), round: e3.round, onMousedown: (o3) => l2.select(e3.name) }, { default: n.withCtx(() => [n.createVNode(a, { icon: e3.icon }, null, 8, ["icon"]), n.createTextVNode(" " + n.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["type", "class", "round", "onMousedown"]))), 128))]);
10
+ }], ["__scopeId", "data-v-0d941719"]]);
11
+ module.exports = l;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ module.exports = "";
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ const e = require("../taches/start.vue.cjs"), t = require("../taches/end.vue.cjs"), o = require("../taches/human-task.vue.cjs"), s = require("../taches/decision.vue.cjs"), r = require("../taches/subprocess.vue.cjs"), i = require("../taches/custom-task.vue.cjs"), n = require("../taches/fork.vue.cjs"), a = require("../taches/join.vue.cjs"), c = require("../taches/human-decision.vue.cjs"), l = require("../taches/copy-task.vue.cjs"), u = require("../taches/auto-task.vue.cjs"), h = require("../transitions/transition.vue.cjs"), d = require("./tache-history-tooltip.vue.cjs"), p = require("vuex"), m = require("../util.cjs"), y = require("agilebuilder-ui"), k = require("./tache-subprocess-history-dialog.vue.cjs"), f = require("vue");
3
+ require("./wf-history-canvas.vue2.cjs");
4
+ const v = require("../../../_virtual/_plugin-vue_export-helper.cjs"), T = { name: "WfHistoryCanvas", components: { Start: e, End: t, HumanTask: o, Decision: s, Subprocess: r, CustomTask: i, Fork: n, Join: a, HumanDecision: c, CopyTask: l, Transition: h, TacheHistoryTooltip: d, TacheSubprocessHistoryDialog: k, AutoTask: u }, props: { process: { type: Object, default: null }, histories: { type: Array, default: null }, currentTasks: { type: Array, default: null }, allProcessI18n: { type: Object, default: null } }, data: function() {
5
+ return { showHistory: false, tooltipPosition: null, tacheHistoryInfo: null, showSubprocessDialog: false, subWorkflowId: null };
6
+ }, computed: { ...p.mapGetters("wfEditor", ["taches", "transitions", "processI18n"]) }, mounted: function() {
7
+ }, methods: { getTacheClass(e2) {
8
+ if (this.getCurrentTache(e2))
9
+ return "current-tache";
10
+ {
11
+ const t2 = this.getPassedTache(e2);
12
+ return t2 && t2.current ? "current-tache" : t2 ? "passed-tache" : "";
13
+ }
14
+ }, getPassedTache(e2) {
15
+ let t2 = null;
16
+ for (const o2 of this.histories)
17
+ if ("PROCESS_START" === o2.historyType && e2.ref.attr.id && "start" === e2.ref.attr.id || "PROCESS_END" === o2.historyType && e2.ref.attr.id && "end" === e2.ref.attr.id || e2.ref.attr.name && o2.taskName && o2.taskName === e2.ref.attr.name) {
18
+ t2 = o2;
19
+ break;
20
+ }
21
+ return t2;
22
+ }, getPassedTacheHistories(e2) {
23
+ const t2 = [];
24
+ for (const o2 of this.histories)
25
+ ("PROCESS_START" === o2.historyType && e2.ref.attr.id && "start" === e2.ref.attr.id || "PROCESS_END" === o2.historyType && e2.ref.attr.id && "end" === e2.ref.attr.id || e2.ref.attr.name && o2.taskName && o2.taskName === e2.ref.attr.name) && t2.push(this.i18nOperation(o2));
26
+ return t2;
27
+ }, i18nOperation(e2) {
28
+ let t2, o2;
29
+ const s2 = y.getLanguageWithLocale(), r2 = e2.bundleCode;
30
+ return r2 && "" !== r2 && this.processI18n && (t2 = this.processI18n[r2]), t2 && t2.processName && (o2 = t2.processName[s2]), y.i18nOperation(e2, o2, t2, s2);
31
+ }, getCurrentTache(e2) {
32
+ let t2 = null;
33
+ for (const o2 of this.currentTasks)
34
+ if (o2.taskName === e2.ref.attr.name) {
35
+ t2 = o2;
36
+ break;
37
+ }
38
+ return t2;
39
+ }, getTacheHistory(e2) {
40
+ let t2, o2 = null;
41
+ const s2 = this.getPassedTacheHistories(e2);
42
+ s2 && s2.length > 0 && (t2 = s2.join("</br>"));
43
+ const r2 = this.getCurrentTache(e2);
44
+ return r2 ? (o2 = this.$t("workflowEditorMessage.currentHandlingPersonnel") + ": " + r2.transactionResult, t2 && (o2 += "</br>" + t2)) : o2 = t2, o2;
45
+ }, forbidSelection: () => false, mousedown(e2) {
46
+ }, mousemove(e2) {
47
+ }, mouseup(e2) {
48
+ }, mouseleave(e2) {
49
+ }, endDrag(e2) {
50
+ }, showTacheHistoryTooltip(e2, t2) {
51
+ this.tacheHistoryInfo = this.getTacheHistory(e2), this.showHistory = true;
52
+ }, hideTacheHistoryTooltip() {
53
+ this.showHistory = false;
54
+ }, updateTacheHistoryTooltipPosition(e2) {
55
+ const t2 = m.getMousePosition(e2);
56
+ this.tooltipPosition = { left: t2.x + 5 + "px", top: t2.y + 5 + "px" };
57
+ }, showSubprocessHistory(e2) {
58
+ const t2 = this.getPassedTache(e2);
59
+ t2 && void 0 !== t2.hasChildren && true === t2.hasChildren && (t2.children && t2.children.length > 0 && (this.subWorkflowId = t2.children[0].workflowId), this.showSubprocessDialog = true);
60
+ }, closeSubprocessHistory() {
61
+ this.showSubprocessDialog = false;
62
+ } } }, g = { ref: "svgContainer", style: { position: "relative" } }, w = f.createElementVNode("defs", null, [f.createElementVNode("marker", { id: "arrow", markerWidth: "10", markerHeight: "10", refX: "6", refY: "2", orient: "auto", markerUnits: "strokeWidth" }, [f.createElementVNode("path", { d: "M0,0 L0,4 L6,2 z", fill: "#666" })])], -1);
63
+ const H = v(T, [["render", function(e2, t2, o2, s2, r2, i2) {
64
+ const n2 = f.resolveComponent("tache-history-tooltip"), a2 = f.resolveComponent("tache-subprocess-history-dialog");
65
+ return f.openBlock(), f.createElementBlock("div", g, [(f.openBlock(), f.createElementBlock("svg", { id: "svg", width: "2000", height: "2000", onMousedown: t2[0] || (t2[0] = (...e3) => i2.mousedown && i2.mousedown(...e3)), onMousemove: t2[1] || (t2[1] = (...e3) => i2.mousemove && i2.mousemove(...e3)), onMouseup: t2[2] || (t2[2] = (...e3) => i2.mouseup && i2.mouseup(...e3)), onMouseleave: t2[3] || (t2[3] = (...e3) => i2.mouseleave && i2.mouseleave(...e3)) }, [w, (f.openBlock(true), f.createElementBlock(f.Fragment, null, f.renderList(e2.taches, (e3) => (f.openBlock(), f.createBlock(f.resolveDynamicComponent(e3.type), { key: e3.id, model: e3, class: f.normalizeClass([i2.getTacheClass(e3)]), "display-mode": e3.displayMode, onMouseenter: (t3) => i2.showTacheHistoryTooltip(e3, t3), onMouseleave: (t3) => i2.hideTacheHistoryTooltip(e3), onMousemove: i2.updateTacheHistoryTooltipPosition, onClick: (t3) => i2.showSubprocessHistory(e3) }, null, 40, ["model", "class", "display-mode", "onMouseenter", "onMouseleave", "onMousemove", "onClick"]))), 128)), (f.openBlock(true), f.createElementBlock(f.Fragment, null, f.renderList(e2.transitions, (e3) => (f.openBlock(), f.createBlock(f.resolveDynamicComponent("transition"), { key: e3.id, model: e3 }, null, 8, ["model"]))), 128))], 32)), e2.showHistory && e2.tacheHistoryInfo ? (f.openBlock(), f.createBlock(n2, { key: 0, style: f.normalizeStyle(e2.tooltipPosition), content: e2.tacheHistoryInfo }, null, 8, ["style", "content"])) : f.createCommentVNode("", true), e2.showSubprocessDialog ? (f.openBlock(), f.createBlock(a2, { key: 1, "workflow-id": e2.subWorkflowId, onClose: i2.closeSubprocessHistory }, null, 8, ["workflow-id", "onClose"])) : f.createCommentVNode("", true)], 512);
66
+ }]]);
67
+ module.exports = H;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ module.exports = "";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ function o() {
3
+ return window.$store;
4
+ }
5
+ function e() {
6
+ return window.$http;
7
+ }
8
+ require("vue");
9
+ const t = { fetchFormFields: (t2, i, s, r) => new Promise((d, n) => {
10
+ let l;
11
+ t2 ? l = e().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields?formCode=" + t2 + "&formVersion=" + i + "&publishVersion=" + r) : s && (l = e().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/table-fields?tableName=" + s + "&publishVersion=" + r)), l ? l.then((e2) => {
12
+ const i2 = e2.formFields;
13
+ e2.subFormFields, o().commit("wfEditor/setFormCode", t2), o().commit("wfEditor/setTableCode", e2.tableCode), o().commit("wfEditor/setFormFields", i2), o().commit("wfEditor/setFormFieldsWithSub", i2);
14
+ const s2 = e2.subtableConditionMap;
15
+ o().commit("wfEditor/setSubtableConditionMap", s2);
16
+ const r2 = e2.systemPropSettingList;
17
+ o().commit("wfEditor/setPropSettingKeyList", r2), d(e2);
18
+ }) : d({});
19
+ }), fetchSubprocessFormFields: (o2, t2) => e().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields-with-processes?processCode=" + o2 + "&processVersion=" + t2) };
20
+ module.exports = t;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ const e = require("../common/task-title.vue.cjs"), t = require("../../util.cjs"), o = require("../common/i18n-input.vue.cjs"), l = require("vue");
3
+ require("./basic-properties.vue2.cjs");
4
+ const a = require("../../../../_virtual/_plugin-vue_export-helper.cjs")({ name: "BasicProperties", components: { TaskTitle: e, i18nInput: o }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
5
+ return { formModel: { name: this.name, id: this.id, tache: this.model } };
6
+ }, computed: { tache() {
7
+ return this.model;
8
+ } }, mounted() {
9
+ this.$watch("formModel.name", function(e2, t2) {
10
+ this.$emit("update:name", e2);
11
+ });
12
+ }, methods: { validateId() {
13
+ t.validateTacheCode(this);
14
+ }, setI18nValue(e2) {
15
+ this.tache.i18nKey = e2;
16
+ } } }, [["render", function(e2, t2, o2, a2, n, d) {
17
+ const r = l.resolveComponent("i18n-input"), i = l.resolveComponent("el-form-item"), u = l.resolveComponent("el-col"), m = l.resolveComponent("el-input"), c = l.resolveComponent("el-row"), s = l.resolveComponent("el-form");
18
+ return l.openBlock(), l.createBlock(s, { model: n.formModel, "label-width": "110px" }, { default: l.withCtx(() => [l.createVNode(c, null, { default: l.withCtx(() => [l.createVNode(u, { span: 12 }, { default: l.withCtx(() => [l.createVNode(i, { label: e2.$t("workflowEditor.task.name") }, { default: l.withCtx(() => [l.createVNode(r, { modelValue: n.formModel.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n.formModel.name = e3), "i18n-key": d.tache.i18nKey ? d.tache.i18nKey : "name." + n.formModel.id, onSetI18n: d.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 }), l.createVNode(u, { span: 12 }, { default: l.withCtx(() => [l.createVNode(i, { label: e2.$t("workflowEditor.task.code") }, { default: l.withCtx(() => [l.createVNode(m, { modelValue: n.formModel.id, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n.formModel.id = e3), onBlur: d.validateId }, null, 8, ["modelValue", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), l.createVNode(i, { label: e2.$t("workflowEditor.task.custombeanName") }, { default: l.withCtx(() => [l.createVNode(m, { modelValue: d.tache.beanName, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => d.tache.beanName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
19
+ }], ["__scopeId", "data-v-6aef99ff"]]);
20
+ module.exports = a;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ module.exports = "";
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ const e = require("./auto-task/basic-properties.vue.cjs"), t = require("vue");
3
+ require("./auto-task.vue2.cjs");
4
+ const o = require("../../../_virtual/_plugin-vue_export-helper.cjs")({ name: "HumanTaskPropertiesEditor", components: { BasicProperties: e }, props: { model: { type: Object, default: null } }, data() {
5
+ return this.model, this.model.ref.taskNotice || (this.model.ref.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
6
+ }, computed: { formModel() {
7
+ return this.model.ref;
8
+ } }, mounted() {
9
+ this.$watch("model.ref.attr.id", function(e2, t2) {
10
+ this.model.id = e2;
11
+ }), this.$watch("model.ref.attr.name", function(e2, t2) {
12
+ this.model.name = e2;
13
+ });
14
+ }, methods: { handleClick(e2, t2) {
15
+ } } }, [["render", function(e2, o2, r, a, i, l) {
16
+ const d = t.resolveComponent("basic-properties"), s = t.resolveComponent("el-tab-pane"), n = t.resolveComponent("el-tabs"), c = t.resolveComponent("el-dialog");
17
+ return t.openBlock(), t.createBlock(c, { "model-value": "", title: e2.$t("workflowEditor.task.propertiesOfAutoTask"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: o2[3] || (o2[3] = (t2) => e2.$emit("open")), onOpend: o2[4] || (o2[4] = (t2) => e2.$emit("opend")), onClose: o2[5] || (o2[5] = (t2) => e2.$emit("close")), onClosed: o2[6] || (o2[6] = (t2) => e2.$emit("closed")) }, { default: t.withCtx(() => [t.createVNode(n, { modelValue: i.activeTab, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => i.activeTab = e3), type: "border-card", onTabClick: l.handleClick }, { default: t.withCtx(() => [t.createVNode(s, { label: e2.$t("workflowEditor.task.basicProperties"), name: "basicProperties" }, { default: t.withCtx(() => [t.createVNode(d, { id: r.model.ref.attr.id, "onUpdate:id": o2[0] || (o2[0] = (e3) => r.model.ref.attr.id = e3), name: r.model.ref.attr.name, "onUpdate:name": o2[1] || (o2[1] = (e3) => r.model.ref.attr.name = e3), model: r.model.ref.basicProperties }, null, 8, ["id", "name", "model"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onTabClick"])]), _: 1 }, 8, ["title"]);
18
+ }], ["__scopeId", "data-v-adb7c2ff"]]);
19
+ module.exports = o;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ module.exports = "";
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const e = require("./form-fields-utils.cjs"), r = require("../../util.cjs"), t = [{ name: "${approvalResult}", label: r.getI18n().t("workflowEditor.process.approvalResults"), orgType: "other" }, { name: "${instanceCreatorName}", label: r.getI18n().t("workflowEditor.process.processInitiator"), orgType: "user" }, { name: "${instanceCreatorRole}", label: r.getI18n().t("workflowEditor.process.processInitiatorRole"), orgType: "role" }, { name: "${instanceCreatorDepartment}", label: r.getI18n().t("workflowEditor.process.processInitiatorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${superiorDepartment}", label: r.getI18n().t("workflowEditor.process.processInitiatorSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorUpstageDepartment}", label: r.getI18n().t("workflowEditor.process.processInitiatorTopDepartment"), orgType: "department" }, { name: "${instanceCreatorWorkGroup}", label: r.getI18n().t("workflowEditor.process.processInitiatorWorkingGroup"), orgType: "workgroup" }, { name: "${instanceCreatorDirectSuperiorName}", label: r.getI18n().t("workflowEditor.process.sponsorsImmediateSuperior"), orgType: "user" }, { name: "${instanceCreatorDeptApprover}", label: r.getI18n().t("workflowEditor.process.deptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptApprover}", label: r.getI18n().t("workflowEditor.process.superiorDeptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptLeader}", label: r.getI18n().t("workflowEditor.process.superiorDeptLeader"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDepartment}", label: r.getI18n().t("workflowEditor.process.processInitiatorsDirectSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorDirectSuperiorRole}", label: r.getI18n().t("workflowEditor.process.directSuperiorRoleOfProcessInitiator"), orgType: "role" }, { name: "${instanceCreatorDirectSuperiorWorkGroup}", label: r.getI18n().t("workflowEditor.process.ProcessInitiatorsImmediateSuperiorWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorName}", label: r.getI18n().t("workflowEditor.process.nameOfCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorRole}", label: r.getI18n().t("workflowEditor.process.currentHandlerRole"), orgType: "role" }, { name: "${currentTransactorDepartment}", label: r.getI18n().t("workflowEditor.process.currentHandlerDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorSuperiorDepartment}", label: r.getI18n().t("workflowEditor.process.currentHandlerSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorUpstageDepartment}", label: r.getI18n().t("workflowEditor.process.topDepartmentOfCurrentHandler"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment"] }, { name: "${currentTransactorWorkGroup}", label: r.getI18n().t("workflowEditor.process.currentHandlerWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorDirectSuperiorName}", label: r.getI18n().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorDirectSuperiorDepartment}", label: r.getI18n().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorDirectSuperiorRole}", label: r.getI18n().t("workflowEditor.process.currentManagerDirectSuperiorRole"), orgType: "role" }, { name: "${currentTransactorDirectSuperiorWorkGroup}", label: r.getI18n().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler"), orgType: "workgroup" }, { name: "${upstageDepartment}", label: r.getI18n().t("workflowEditor.process.topDepartments"), orgType: "department" }, { name: "${countersignatureDisagreeCount}", label: r.getI18n().t("workflowEditor.process.totalNnumberOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreeCount}", label: r.getI18n().t("workflowEditor.process.totalNumberOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureDisagreePercentage}", label: r.getI18n().t("workflowEditor.process.percentageOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreePercentage}", label: r.getI18n().t("workflowEditor.process.percentageOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionPercentage}", label: r.getI18n().t("workflowEditor.process.percentageOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstPercentage}", label: r.getI18n().t("workflowEditor.process.percentageOfVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorPercentage}", label: r.getI18n().t("workflowEditor.process.percentageOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionCount}", label: r.getI18n().t("workflowEditor.process.totalNumberOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstCount}", label: r.getI18n().t("workflowEditor.process.totalVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorCount}", label: r.getI18n().t("workflowEditor.process.totalNumberOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }], o = { "condition.operator.or": r.getI18n().t("workflowEditor.process.perhaps"), "condition.operator.and": r.getI18n().t("workflowEditor.process.also") };
4
+ function n(e2) {
5
+ return ["NUMBER", "DOUBLE", "FLOAT", "LONG", "INTEGER", "AMOUNT"].indexOf(e2) >= 0;
6
+ }
7
+ const a = [{ name: "operator.number.gt", label: r.getI18n().t("workflowEditor.process.greaterThan") }, { name: "operator.number.lt", label: r.getI18n().t("workflowEditor.process.lessThan") }, { name: "operator.number.eq", label: r.getI18n().t("workflowEditor.process.beEqualTo") }, { name: "operator.number.le", label: r.getI18n().t("workflowEditor.process.notGreaterThan") }, { name: "operator.number.ge", label: r.getI18n().t("workflowEditor.process.notLessThan") }, { name: "operator.number.ne", label: r.getI18n().t("workflowEditor.process.notEqualTo") }];
8
+ function s(e2) {
9
+ return ["STRING", "TEXT"].indexOf(e2) >= 0;
10
+ }
11
+ const p = [{ name: "operator.text.eq", label: r.getI18n().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: r.getI18n().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.contain", label: r.getI18n().t("workflowEditor.process.contain") }, { name: "operator.text.contain.not", label: r.getI18n().t("workflowEditor.process.notIncluded") }, { name: "operator.text.is.null", label: r.getI18n().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: r.getI18n().t("workflowEditor.process.isNotNull") }];
12
+ function l(e2) {
13
+ return ["DATE", "TIME"].indexOf(e2) >= 0;
14
+ }
15
+ const i = [{ name: "operator.date.gt", label: r.getI18n().t("workflowEditor.process.laterThan") }, { name: "operator.date.lt", label: r.getI18n().t("workflowEditor.process.earlierThan") }, { name: "operator.date.et", label: r.getI18n().t("workflowEditor.process.beEqualTo") }, { name: "operator.date.le", label: r.getI18n().t("workflowEditor.process.noLaterThan") }, { name: "operator.date.ge", label: r.getI18n().t("workflowEditor.process.noEarlierThan") }, { name: "operator.date.ne", label: r.getI18n().t("workflowEditor.process.notEqualTo") }], c = [{ name: "operator.text.eq", label: r.getI18n().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: r.getI18n().t("workflowEditor.process.notEqualTo") }];
16
+ function g(e2) {
17
+ return "${approvalResult}" === e2;
18
+ }
19
+ const u = [{ name: "operator.text.eq", label: r.getI18n().t("workflowEditor.process.beEqualTo") }], d = [...a, ...i, ...p, ...c];
20
+ function f(e2) {
21
+ const r2 = t.filter((r3) => r3.name === e2);
22
+ return r2.length > 0 ? r2[0] : null;
23
+ }
24
+ function m(e2) {
25
+ const r2 = f(e2);
26
+ return r2 ? r2.label : e2;
27
+ }
28
+ function w(r2) {
29
+ return r2 ? r2.indexOf("${field[") >= 0 ? e.getFormFieldLabel(r2) : r2.indexOf("${") >= 0 ? m(r2) : r2.indexOf("[") >= 0 ? r2.substring(0, r2.indexOf("[")) : r2 : "";
30
+ }
31
+ function T(e2) {
32
+ const r2 = d.filter((r3) => r3.name === e2);
33
+ return r2.length > 0 ? r2[0].label : "";
34
+ }
35
+ exports.allOperators = d, exports.displayCondition = function(e2) {
36
+ let r2 = "";
37
+ for (const t3 of e2)
38
+ 0 !== t3.key.length && void 0 !== t3.operator && "" !== t3.operator && null !== t3.operator && ("operator.text.is.null" === t3.operator || "operator.text.not.null" === t3.operator || "" !== t3.value && void 0 !== t3.value && null !== t3.value) && (r2 = r2 + t3.leftBracket + w(t3.key) + " " + T(t3.operator) + " " + w(t3.value) + t3.rightBracket + " " + o[t3.logicOperator] + " ");
39
+ const t2 = " 或者 ", n2 = " 并且 ";
40
+ return r2.lastIndexOf(t2) + 4 === r2.length ? r2 = r2.substring(0, r2.lastIndexOf(t2)) : r2.lastIndexOf(n2) + 4 === r2.length && (r2 = r2.substring(0, r2.lastIndexOf(n2))), r2;
41
+ }, exports.generateCondition = function(e2) {
42
+ let r2 = "";
43
+ for (const t3 of e2)
44
+ 0 === t3.key.length || "" === t3.operator || "" === t3.value && "operator.text.is.null" !== t3.operator && "operator.text.not.null" !== t3.operator || (r2 = r2 + t3.leftBracket + t3.key + " " + t3.operator + " " + t3.value + t3.rightBracket + " " + t3.logicOperator + " ");
45
+ const t2 = " condition.operator.or ", o2 = " condition.operator.and ";
46
+ return r2.lastIndexOf(t2) + 23 === r2.length ? r2 = r2.substring(0, r2.lastIndexOf(t2)) : r2.lastIndexOf(o2) + 24 === r2.length && (r2 = r2.substring(0, r2.lastIndexOf(o2))), r2;
47
+ }, exports.getFieldLabel = w, exports.getOperatorLabel = T, exports.getOperators = function(r2) {
48
+ const t2 = e.getFormField(r2) || f(r2);
49
+ if (t2)
50
+ return n(t2.dataType) ? a : l(t2.dataType) ? i : s(t2.dataType) ? p : g(r2) ? u : c;
51
+ }, exports.getRelatedStandardFields = function(e2) {
52
+ const r2 = t.filter((r3) => r3.name === e2);
53
+ let o2 = [];
54
+ r2.length > 0 && (o2 = r2[0].relatedFields || []);
55
+ const n2 = [];
56
+ return t.forEach((e3) => {
57
+ o2.indexOf(e3.name.substring(2, e3.name.length - 1)) >= 0 && n2.push(e3);
58
+ }), n2;
59
+ }, exports.getStandardField = f, exports.getStandardFieldLabel = m, exports.getStandardFieldsByTacheType = function(e2) {
60
+ if (e2)
61
+ return t;
62
+ const r2 = [];
63
+ return t.forEach((t2) => {
64
+ e2 || "other" === t2.orgType || r2.push(t2);
65
+ }), r2;
66
+ }, exports.isApproveResult = g, exports.isDate = l, exports.isNumber = n, exports.isString = s, exports.isTransitionOtherField = function(e2) {
67
+ if ("${approvalResult}" === e2)
68
+ return false;
69
+ const r2 = t.filter((r3) => r3.name === e2);
70
+ let o2 = false;
71
+ return r2.length > 0 && r2.forEach((r3) => {
72
+ e2 === r3.name && "other" === r3.orgType && (o2 = true);
73
+ }), o2;
74
+ }, exports.logicOperators = o, exports.operatorsForApproveResult = u, exports.operatorsForDate = i, exports.operatorsForNumber = a, exports.operatorsForString = p, exports.operatorsForText = c, exports.parseCondition = function(e2, r2) {
75
+ if (r2 && 0 !== r2.length) {
76
+ let t2 = r2.replace(/ condition.operator.or /g, " condition.operator.or^_^");
77
+ t2 = t2.replace(/ condition.operator.and /g, " condition.operator.and^_^");
78
+ const o2 = t2.split("^_^");
79
+ let n2 = 0;
80
+ for (let r3 of o2) {
81
+ if ("" === r3)
82
+ continue;
83
+ let t3 = "", o3 = "", a2 = "", s2 = "", p2 = "", l2 = "condition.operator.or", i2 = r3.indexOf("${");
84
+ if (i2 > 0 && (t3 = r3.substring(0, i2)), o3 = r3.substring(i2, r3.indexOf(" ")), r3 = r3.substring(r3.indexOf(" ") + 1), a2 = r3.substring(0, r3.indexOf(" ")), r3 = r3.substring(r3.indexOf(" ") + 1), i2 = r3.indexOf(")"), i2 >= 0) {
85
+ s2 = r3.substring(0, i2);
86
+ const e3 = r3.substring(i2);
87
+ i2 = e3.indexOf(")"), p2 = e3.indexOf(" ") >= 0 ? e3.substring(i2, e3.indexOf(" ")) : e3.substring(i2), i2 = r3.indexOf(" condition."), i2 >= 0 && (l2 = r3.substring(i2 + 1));
88
+ } else
89
+ i2 = r3.indexOf(" condition."), i2 > 0 ? (s2 = r3.substring(0, i2), l2 = r3.substring(i2 + 1)) : s2 = r3;
90
+ e2.push({ id: n2, leftBracket: t3, key: o3, operator: a2, value: s2, rightBracket: p2, logicOperator: l2 }), n2++;
91
+ }
92
+ return n2;
93
+ }
94
+ }, exports.standardFields = t;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ const e = require("./additional-condition-utils.cjs"), t = require("./value-selection-dialog.vue.cjs"), o = require("vuex"), l = require("vue"), a = require("../../../../_virtual/_plugin-vue_export-helper.cjs"), r = { name: "AdditionalCondition", components: { ValueSelectionDialog: t }, props: { modelValue: { type: String, default: null }, isTransition: { type: Boolean, default: false } }, data() {
3
+ const t2 = [], o2 = e.parseCondition(t2, this.modelValue);
4
+ return { standardFields: e.standardFields, tableData: t2, count: o2, currentRow: null, currentInput: null, options: [], valueDialogTitle: null, showOrganization: true, orgType: null };
5
+ }, computed: { ...o.mapGetters("wfEditor", ["formFields"]), availableStandardFields() {
6
+ return "key" === this.currentInput ? e.getStandardFieldsByTacheType(this.isTransition) : e.getRelatedStandardFields(this.currentRow.key);
7
+ } }, mounted() {
8
+ this.tableData.length > 0 && this.$refs.table.setCurrentRow(this.tableData[this.tableData.length - 1]), this.$watch("tableData", function(t2, o2) {
9
+ this.$emit("update:modelValue", e.generateCondition(this.tableData));
10
+ }, { deep: true });
11
+ }, methods: { format: (t2, o2) => "" === t2 || null == t2 ? "" : e.getFieldLabel(t2), getOperatorOptions: (t2) => e.getOperators(t2), selectRow(e2) {
12
+ this.$refs.table.setCurrentRow(e2);
13
+ }, openValueDialog(e2) {
14
+ this.showValueDialog = true, this.selectRow(e2);
15
+ }, closeValueDialog(e2) {
16
+ void 0 !== e2 && "" !== e2 && ("key" === this.currentInput && this.currentRow.key !== e2 && (this.currentRow.operator = "", this.currentRow.value = ""), this.currentRow[this.currentInput] = e2), this.currentInput = "";
17
+ }, getCondition: (e2) => e2.key + " " + e2.operator + " " + e2.value, handleCurrentChange(e2) {
18
+ this.currentRow = e2;
19
+ }, getRowIndex(e2) {
20
+ for (let t2 = 0; t2 < this.tableData.length; t2++)
21
+ if (this.tableData[t2].id === e2.id)
22
+ return t2;
23
+ return -1;
24
+ }, add() {
25
+ (null === this.count || void 0 === this.count || this.count.isNaN || "NaN" === this.count) && (this.count = 0);
26
+ const e2 = { id: this.count, leftBracket: "", key: "", operator: "", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
27
+ this.tableData.push(e2), this.$refs.table.setCurrentRow(e2), this.count++;
28
+ }, insert() {
29
+ if (null === this.currentRow)
30
+ return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
31
+ const e2 = { id: this.count, leftBracket: "", key: "", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
32
+ this.tableData.splice(this.getRowIndex(this.currentRow), 0, e2), this.$refs.table.setCurrentRow(e2), this.count++;
33
+ }, remove() {
34
+ if (null === this.currentRow)
35
+ return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
36
+ let e2 = this.getRowIndex(this.currentRow);
37
+ this.tableData.splice(e2, 1), this.tableData.length > 0 && (e2 = e2 <= this.tableData.length - 1 ? e2 : this.tableData.length - 1, this.$refs.table.setCurrentRow(this.tableData[e2]));
38
+ }, view() {
39
+ let t2 = e.displayCondition(this.tableData);
40
+ "" === t2 && (t2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(t2, this.$t("workflowEditorMessage.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
41
+ } });
42
+ }, selectField(e2) {
43
+ this.selectRow(e2), this.currentInput = "key", this.valueDialogTitle = this.$t("workflowEditorMessage.fieldSettings"), this.showOrganization = false;
44
+ }, selectValue() {
45
+ this.currentInput = "value", this.valueDialogTitle = this.$t("workflowEditorMessage.valueSetting"), this.showOrganization = true, this.orgType = this.getStandardFieldOrgType();
46
+ }, getStandardFieldOrgType() {
47
+ const e2 = this.standardFields.filter((e3) => e3.name === this.currentRow.key);
48
+ return e2.length > 0 ? e2[0].orgType : "";
49
+ }, isTransitionOtherField: (t2) => e.isTransitionOtherField(t2) } }, i = { style: { overflow: "auto", width: "100%" } };
50
+ const n = a(r, [["render", function(e2, t2, o2, a2, r2, n2) {
51
+ const d = l.resolveComponent("el-button"), s = l.resolveComponent("el-row"), u = l.resolveComponent("el-option"), c = l.resolveComponent("el-select"), h = l.resolveComponent("el-table-column"), w = l.resolveComponent("el-input"), p = l.resolveComponent("el-table"), g = l.resolveComponent("value-selection-dialog");
52
+ return l.openBlock(), l.createElementBlock("div", i, [l.createVNode(s, null, { default: l.withCtx(() => [l.createVNode(d, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: n2.add }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), l.createVNode(d, { type: "primary", size: "small", plain: "", icon: "ArrowRight", onClick: n2.insert }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.insert")), 1)]), _: 1 }, 8, ["onClick"]), l.createVNode(d, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: n2.remove }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"]), l.createVNode(d, { type: "primary", size: "small", plain: "", icon: "View", onClick: n2.view }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(e2.$t("workflowEditorPublicModel.viewConditions")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), l.createVNode(p, { ref: "table", data: r2.tableData, "row-key": "id", border: "", style: { width: "100%", "padding-top": "10px" }, "highlight-current-row": "", onCurrentChange: n2.handleCurrentChange }, { default: l.withCtx(() => [l.createVNode(h, { prop: "leftBracket", label: "(", width: "90" }, { default: l.withCtx((e3) => [l.createVNode(c, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (t3) => e3.row.leftBracket = t3, placeholder: "", onFocus: (t3) => n2.selectRow(e3.row) }, { default: l.withCtx(() => [l.createVNode(u, { label: "", value: "" }), l.createVNode(u, { label: "(", value: "(" }), l.createVNode(u, { label: "((", value: "((" }), l.createVNode(u, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), l.createVNode(h, { label: e2.$t("workflowEditor.common.fieldName"), width: "200" }, { default: l.withCtx((e3) => [l.createVNode(w, { value: n2.format(e3.row.key), onClick: (t3) => n2.selectField(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"]), l.createVNode(h, { label: e2.$t("workflowEditor.common.operator"), width: "130" }, { default: l.withCtx((e3) => [l.createVNode(c, { modelValue: e3.row.operator, "onUpdate:modelValue": (t3) => e3.row.operator = t3, placeholder: "", onFocus: (t3) => n2.selectRow(e3.row) }, { default: l.withCtx(() => [(l.openBlock(true), l.createElementBlock(l.Fragment, null, l.renderList(n2.getOperatorOptions(e3.row.key), (e4) => (l.openBlock(), l.createBlock(u, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), l.createVNode(h, { label: e2.$t("workflowEditor.common.value") }, { default: l.withCtx((t3) => [t3.row.key.indexOf("${field[") >= 0 || n2.isTransitionOtherField(t3.row.key) ? (l.openBlock(), l.createBlock(w, { key: 0, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, modelModifiers: { trim: true } }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "${approvalResult}" === t3.row.key ? (l.openBlock(), l.createBlock(c, { key: 1, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, modelModifiers: { trim: true } }, { default: l.withCtx(() => [l.createVNode(u, { value: "同意", label: e2.$t("workflowEditorPublicModel.agree") }, null, 8, ["label"]), l.createVNode(u, { value: "不同意", label: e2.$t("workflowEditorPublicModel.disagree") }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (l.openBlock(), l.createBlock(w, { key: 2, value: n2.format(t3.row.value, t3.row), readonly: "", onClick: n2.selectValue }, null, 8, ["value", "onClick"]))]), _: 1 }, 8, ["label"]), l.createVNode(h, { prop: "rightBracket", label: ")", width: "90", onFocus: t2[0] || (t2[0] = (t3) => n2.selectRow(e2.scope.row)) }, { default: l.withCtx((e3) => [l.createVNode(c, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (t3) => e3.row.rightBracket = t3, placeholder: "" }, { default: l.withCtx(() => [l.createVNode(u, { label: "", value: "" }), l.createVNode(u, { label: ")", value: ")" }), l.createVNode(u, { label: "))", value: "))" }), l.createVNode(u, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), l.createVNode(h, { prop: "logicOperator", label: e2.$t("workflowEditorPublicModel.andOr"), width: "110" }, { default: l.withCtx((t3) => [l.createVNode(c, { modelValue: t3.row.logicOperator, "onUpdate:modelValue": (e3) => t3.row.logicOperator = e3, placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onFocus: (e3) => n2.selectRow(t3.row) }, { default: l.withCtx(() => [l.createVNode(u, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), l.createVNode(u, { label: e2.$t("workflowEditor.process.also"), value: "condition.operator.and" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onFocus"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"]), r2.currentInput ? (l.openBlock(), l.createBlock(g, { key: 0, title: r2.valueDialogTitle, "show-organization": r2.showOrganization, "standard-fields": n2.availableStandardFields, "org-type": r2.orgType, onClose: n2.closeValueDialog }, null, 8, ["title", "show-organization", "standard-fields", "org-type", "onClose"])) : l.createCommentVNode("", true)]);
53
+ }]]);
54
+ module.exports = n;