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,86 @@
1
+ import o from "../taches/start.vue.mjs";
2
+ import e from "../taches/end.vue.mjs";
3
+ import t from "../taches/human-task.vue.mjs";
4
+ import s from "../taches/decision.vue.mjs";
5
+ import r from "../taches/subprocess.vue.mjs";
6
+ import i from "../taches/custom-task.vue.mjs";
7
+ import a from "../taches/fork.vue.mjs";
8
+ import n from "../taches/join.vue.mjs";
9
+ import u from "../taches/human-decision.vue.mjs";
10
+ import l from "../taches/copy-task.vue.mjs";
11
+ import h from "../taches/auto-task.vue.mjs";
12
+ import c from "../transitions/transition.vue.mjs";
13
+ import m from "./tache-history-tooltip.vue.mjs";
14
+ import { mapGetters as p } from "vuex";
15
+ import { getMousePosition as d } from "../util.mjs";
16
+ import { getLanguageWithLocale as f, i18nOperation as y } from "agilebuilder-ui";
17
+ import T from "./tache-subprocess-history-dialog.vue.mjs";
18
+ import { resolveComponent as v, openBlock as k, createElementBlock as g, Fragment as w, renderList as H, createBlock as b, resolveDynamicComponent as S, normalizeClass as j, normalizeStyle as C, createCommentVNode as P, createElementVNode as M } from "vue";
19
+ import "./wf-history-canvas.vue2.mjs";
20
+ import I from "../../../_virtual/_plugin-vue_export-helper.mjs";
21
+ const D = { name: "WfHistoryCanvas", components: { Start: o, End: e, HumanTask: t, Decision: s, Subprocess: r, CustomTask: i, Fork: a, Join: n, HumanDecision: u, CopyTask: l, Transition: c, TacheHistoryTooltip: m, TacheSubprocessHistoryDialog: T, AutoTask: h }, props: { process: { type: Object, default: null }, histories: { type: Array, default: null }, currentTasks: { type: Array, default: null }, allProcessI18n: { type: Object, default: null } }, data: function() {
22
+ return { showHistory: false, tooltipPosition: null, tacheHistoryInfo: null, showSubprocessDialog: false, subWorkflowId: null };
23
+ }, computed: { ...p("wfEditor", ["taches", "transitions", "processI18n"]) }, mounted: function() {
24
+ }, methods: { getTacheClass(o2) {
25
+ if (this.getCurrentTache(o2))
26
+ return "current-tache";
27
+ {
28
+ const e2 = this.getPassedTache(o2);
29
+ return e2 && e2.current ? "current-tache" : e2 ? "passed-tache" : "";
30
+ }
31
+ }, getPassedTache(o2) {
32
+ let e2 = null;
33
+ for (const t2 of this.histories)
34
+ if ("PROCESS_START" === t2.historyType && o2.ref.attr.id && "start" === o2.ref.attr.id || "PROCESS_END" === t2.historyType && o2.ref.attr.id && "end" === o2.ref.attr.id || o2.ref.attr.name && t2.taskName && t2.taskName === o2.ref.attr.name) {
35
+ e2 = t2;
36
+ break;
37
+ }
38
+ return e2;
39
+ }, getPassedTacheHistories(o2) {
40
+ const e2 = [];
41
+ for (const t2 of this.histories)
42
+ ("PROCESS_START" === t2.historyType && o2.ref.attr.id && "start" === o2.ref.attr.id || "PROCESS_END" === t2.historyType && o2.ref.attr.id && "end" === o2.ref.attr.id || o2.ref.attr.name && t2.taskName && t2.taskName === o2.ref.attr.name) && e2.push(this.i18nOperation(t2));
43
+ return e2;
44
+ }, i18nOperation(o2) {
45
+ let e2, t2;
46
+ const s2 = f(), r2 = o2.bundleCode;
47
+ return r2 && "" !== r2 && this.processI18n && (e2 = this.processI18n[r2]), e2 && e2.processName && (t2 = e2.processName[s2]), y(o2, t2, e2, s2);
48
+ }, getCurrentTache(o2) {
49
+ let e2 = null;
50
+ for (const t2 of this.currentTasks)
51
+ if (t2.taskName === o2.ref.attr.name) {
52
+ e2 = t2;
53
+ break;
54
+ }
55
+ return e2;
56
+ }, getTacheHistory(o2) {
57
+ let e2, t2 = null;
58
+ const s2 = this.getPassedTacheHistories(o2);
59
+ s2 && s2.length > 0 && (e2 = s2.join("</br>"));
60
+ const r2 = this.getCurrentTache(o2);
61
+ return r2 ? (t2 = this.$t("workflowEditorMessage.currentHandlingPersonnel") + ": " + r2.transactionResult, e2 && (t2 += "</br>" + e2)) : t2 = e2, t2;
62
+ }, forbidSelection: () => false, mousedown(o2) {
63
+ }, mousemove(o2) {
64
+ }, mouseup(o2) {
65
+ }, mouseleave(o2) {
66
+ }, endDrag(o2) {
67
+ }, showTacheHistoryTooltip(o2, e2) {
68
+ this.tacheHistoryInfo = this.getTacheHistory(o2), this.showHistory = true;
69
+ }, hideTacheHistoryTooltip() {
70
+ this.showHistory = false;
71
+ }, updateTacheHistoryTooltipPosition(o2) {
72
+ const e2 = d(o2);
73
+ this.tooltipPosition = { left: e2.x + 5 + "px", top: e2.y + 5 + "px" };
74
+ }, showSubprocessHistory(o2) {
75
+ const e2 = this.getPassedTache(o2);
76
+ e2 && void 0 !== e2.hasChildren && true === e2.hasChildren && (e2.children && e2.children.length > 0 && (this.subWorkflowId = e2.children[0].workflowId), this.showSubprocessDialog = true);
77
+ }, closeSubprocessHistory() {
78
+ this.showSubprocessDialog = false;
79
+ } } }, E = { ref: "svgContainer", style: { position: "relative" } }, N = M("defs", null, [M("marker", { id: "arrow", markerWidth: "10", markerHeight: "10", refX: "6", refY: "2", orient: "auto", markerUnits: "strokeWidth" }, [M("path", { d: "M0,0 L0,4 L6,2 z", fill: "#666" })])], -1);
80
+ const O = I(D, [["render", function(o2, e2, t2, s2, r2, i2) {
81
+ const a2 = v("tache-history-tooltip"), n2 = v("tache-subprocess-history-dialog");
82
+ return k(), g("div", E, [(k(), g("svg", { id: "svg", width: "2000", height: "2000", onMousedown: e2[0] || (e2[0] = (...o3) => i2.mousedown && i2.mousedown(...o3)), onMousemove: e2[1] || (e2[1] = (...o3) => i2.mousemove && i2.mousemove(...o3)), onMouseup: e2[2] || (e2[2] = (...o3) => i2.mouseup && i2.mouseup(...o3)), onMouseleave: e2[3] || (e2[3] = (...o3) => i2.mouseleave && i2.mouseleave(...o3)) }, [N, (k(true), g(w, null, H(o2.taches, (o3) => (k(), b(S(o3.type), { key: o3.id, model: o3, class: j([i2.getTacheClass(o3)]), "display-mode": o3.displayMode, onMouseenter: (e3) => i2.showTacheHistoryTooltip(o3, e3), onMouseleave: (e3) => i2.hideTacheHistoryTooltip(o3), onMousemove: i2.updateTacheHistoryTooltipPosition, onClick: (e3) => i2.showSubprocessHistory(o3) }, null, 40, ["model", "class", "display-mode", "onMouseenter", "onMouseleave", "onMousemove", "onClick"]))), 128)), (k(true), g(w, null, H(o2.transitions, (o3) => (k(), b(S("transition"), { key: o3.id, model: o3 }, null, 8, ["model"]))), 128))], 32)), o2.showHistory && o2.tacheHistoryInfo ? (k(), b(a2, { key: 0, style: C(o2.tooltipPosition), content: o2.tacheHistoryInfo }, null, 8, ["style", "content"])) : P("", true), o2.showSubprocessDialog ? (k(), b(n2, { key: 1, "workflow-id": o2.subWorkflowId, onClose: i2.closeSubprocessHistory }, null, 8, ["workflow-id", "onClose"])) : P("", true)], 512);
83
+ }]]);
84
+ export {
85
+ O as default
86
+ };
@@ -0,0 +1,4 @@
1
+ const t = "";
2
+ export {
3
+ t as default
4
+ };
@@ -0,0 +1,21 @@
1
+ import "vue";
2
+ function o() {
3
+ return window.$store;
4
+ }
5
+ function e() {
6
+ return window.$http;
7
+ }
8
+ const t = { fetchFormFields: (t2, i, s, r) => new Promise((d, n) => {
9
+ let f;
10
+ t2 ? f = e().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields?formCode=" + t2 + "&formVersion=" + i + "&publishVersion=" + r) : s && (f = e().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/table-fields?tableName=" + s + "&publishVersion=" + r)), f ? f.then((e2) => {
11
+ const i2 = e2.formFields;
12
+ e2.subFormFields, o().commit("wfEditor/setFormCode", t2), o().commit("wfEditor/setTableCode", e2.tableCode), o().commit("wfEditor/setFormFields", i2), o().commit("wfEditor/setFormFieldsWithSub", i2);
13
+ const s2 = e2.subtableConditionMap;
14
+ o().commit("wfEditor/setSubtableConditionMap", s2);
15
+ const r2 = e2.systemPropSettingList;
16
+ o().commit("wfEditor/setPropSettingKeyList", r2), d(e2);
17
+ }) : d({});
18
+ }), fetchSubprocessFormFields: (o2, t2) => e().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields-with-processes?processCode=" + o2 + "&processVersion=" + t2) };
19
+ export {
20
+ t as default
21
+ };
@@ -0,0 +1,25 @@
1
+ import e from "../common/task-title.vue.mjs";
2
+ import { validateTacheCode as l } from "../../util.mjs";
3
+ import t from "../common/i18n-input.vue.mjs";
4
+ import { resolveComponent as o, openBlock as a, createBlock as m, withCtx as n, createVNode as d } from "vue";
5
+ import "./basic-properties.vue2.mjs";
6
+ import i from "../../../../_virtual/_plugin-vue_export-helper.mjs";
7
+ const u = i({ name: "BasicProperties", components: { TaskTitle: e, i18nInput: t }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
8
+ return { formModel: { name: this.name, id: this.id, tache: this.model } };
9
+ }, computed: { tache() {
10
+ return this.model;
11
+ } }, mounted() {
12
+ this.$watch("formModel.name", function(e2, l2) {
13
+ this.$emit("update:name", e2);
14
+ });
15
+ }, methods: { validateId() {
16
+ l(this);
17
+ }, setI18nValue(e2) {
18
+ this.tache.i18nKey = e2;
19
+ } } }, [["render", function(e2, l2, t2, i2, u2, r) {
20
+ const f = o("i18n-input"), s = o("el-form-item"), p = o("el-col"), c = o("el-input"), h = o("el-row"), b = o("el-form");
21
+ return a(), m(b, { model: u2.formModel, "label-width": "110px" }, { default: n(() => [d(h, null, { default: n(() => [d(p, { span: 12 }, { default: n(() => [d(s, { label: e2.$t("workflowEditor.task.name") }, { default: n(() => [d(f, { modelValue: u2.formModel.name, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => u2.formModel.name = e3), "i18n-key": r.tache.i18nKey ? r.tache.i18nKey : "name." + u2.formModel.id, onSetI18n: r.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 }), d(p, { span: 12 }, { default: n(() => [d(s, { label: e2.$t("workflowEditor.task.code") }, { default: n(() => [d(c, { modelValue: u2.formModel.id, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => u2.formModel.id = e3), onBlur: r.validateId }, null, 8, ["modelValue", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), d(s, { label: e2.$t("workflowEditor.task.custombeanName") }, { default: n(() => [d(c, { modelValue: r.tache.beanName, "onUpdate:modelValue": l2[2] || (l2[2] = (e3) => r.tache.beanName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
22
+ }], ["__scopeId", "data-v-6aef99ff"]]);
23
+ export {
24
+ u as default
25
+ };
@@ -0,0 +1,4 @@
1
+ const t = "";
2
+ export {
3
+ t as default
4
+ };
@@ -0,0 +1,22 @@
1
+ import e from "./auto-task/basic-properties.vue.mjs";
2
+ import { resolveComponent as t, openBlock as o, createBlock as a, withCtx as r, createVNode as i } from "vue";
3
+ import "./auto-task.vue2.mjs";
4
+ import l from "../../../_virtual/_plugin-vue_export-helper.mjs";
5
+ const d = l({ name: "HumanTaskPropertiesEditor", components: { BasicProperties: e }, props: { model: { type: Object, default: null } }, data() {
6
+ return this.model, this.model.ref.taskNotice || (this.model.ref.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
7
+ }, computed: { formModel() {
8
+ return this.model.ref;
9
+ } }, mounted() {
10
+ this.$watch("model.ref.attr.id", function(e2, t2) {
11
+ this.model.id = e2;
12
+ }), this.$watch("model.ref.attr.name", function(e2, t2) {
13
+ this.model.name = e2;
14
+ });
15
+ }, methods: { handleClick(e2, t2) {
16
+ } } }, [["render", function(e2, l2, d2, s, m, n) {
17
+ const p = t("basic-properties"), c = t("el-tab-pane"), u = t("el-tabs"), f = t("el-dialog");
18
+ return o(), a(f, { "model-value": "", title: e2.$t("workflowEditor.task.propertiesOfAutoTask"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: l2[3] || (l2[3] = (t2) => e2.$emit("open")), onOpend: l2[4] || (l2[4] = (t2) => e2.$emit("opend")), onClose: l2[5] || (l2[5] = (t2) => e2.$emit("close")), onClosed: l2[6] || (l2[6] = (t2) => e2.$emit("closed")) }, { default: r(() => [i(u, { modelValue: m.activeTab, "onUpdate:modelValue": l2[2] || (l2[2] = (e3) => m.activeTab = e3), type: "border-card", onTabClick: n.handleClick }, { default: r(() => [i(c, { label: e2.$t("workflowEditor.task.basicProperties"), name: "basicProperties" }, { default: r(() => [i(p, { id: d2.model.ref.attr.id, "onUpdate:id": l2[0] || (l2[0] = (e3) => d2.model.ref.attr.id = e3), name: d2.model.ref.attr.name, "onUpdate:name": l2[1] || (l2[1] = (e3) => d2.model.ref.attr.name = e3), model: d2.model.ref.basicProperties }, null, 8, ["id", "name", "model"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onTabClick"])]), _: 1 }, 8, ["title"]);
19
+ }], ["__scopeId", "data-v-adb7c2ff"]]);
20
+ export {
21
+ d as default
22
+ };
@@ -0,0 +1,4 @@
1
+ const t = "";
2
+ export {
3
+ t as default
4
+ };
@@ -0,0 +1,125 @@
1
+ import { getFormFieldLabel as e, getFormField as r } from "./form-fields-utils.mjs";
2
+ import { getI18n as t } from "../../util.mjs";
3
+ const o = [{ name: "${approvalResult}", label: t().t("workflowEditor.process.approvalResults"), orgType: "other" }, { name: "${instanceCreatorName}", label: t().t("workflowEditor.process.processInitiator"), orgType: "user" }, { name: "${instanceCreatorRole}", label: t().t("workflowEditor.process.processInitiatorRole"), orgType: "role" }, { name: "${instanceCreatorDepartment}", label: t().t("workflowEditor.process.processInitiatorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${superiorDepartment}", label: t().t("workflowEditor.process.processInitiatorSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorUpstageDepartment}", label: t().t("workflowEditor.process.processInitiatorTopDepartment"), orgType: "department" }, { name: "${instanceCreatorWorkGroup}", label: t().t("workflowEditor.process.processInitiatorWorkingGroup"), orgType: "workgroup" }, { name: "${instanceCreatorDirectSuperiorName}", label: t().t("workflowEditor.process.sponsorsImmediateSuperior"), orgType: "user" }, { name: "${instanceCreatorDeptApprover}", label: t().t("workflowEditor.process.deptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptApprover}", label: t().t("workflowEditor.process.superiorDeptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptLeader}", label: t().t("workflowEditor.process.superiorDeptLeader"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDepartment}", label: t().t("workflowEditor.process.processInitiatorsDirectSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorDirectSuperiorRole}", label: t().t("workflowEditor.process.directSuperiorRoleOfProcessInitiator"), orgType: "role" }, { name: "${instanceCreatorDirectSuperiorWorkGroup}", label: t().t("workflowEditor.process.ProcessInitiatorsImmediateSuperiorWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorName}", label: t().t("workflowEditor.process.nameOfCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorRole}", label: t().t("workflowEditor.process.currentHandlerRole"), orgType: "role" }, { name: "${currentTransactorDepartment}", label: t().t("workflowEditor.process.currentHandlerDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorSuperiorDepartment}", label: t().t("workflowEditor.process.currentHandlerSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorUpstageDepartment}", label: t().t("workflowEditor.process.topDepartmentOfCurrentHandler"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment"] }, { name: "${currentTransactorWorkGroup}", label: t().t("workflowEditor.process.currentHandlerWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorDirectSuperiorName}", label: t().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorDirectSuperiorDepartment}", label: t().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorDirectSuperiorRole}", label: t().t("workflowEditor.process.currentManagerDirectSuperiorRole"), orgType: "role" }, { name: "${currentTransactorDirectSuperiorWorkGroup}", label: t().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler"), orgType: "workgroup" }, { name: "${upstageDepartment}", label: t().t("workflowEditor.process.topDepartments"), orgType: "department" }, { name: "${countersignatureDisagreeCount}", label: t().t("workflowEditor.process.totalNnumberOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreeCount}", label: t().t("workflowEditor.process.totalNumberOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureDisagreePercentage}", label: t().t("workflowEditor.process.percentageOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreePercentage}", label: t().t("workflowEditor.process.percentageOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionPercentage}", label: t().t("workflowEditor.process.percentageOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstPercentage}", label: t().t("workflowEditor.process.percentageOfVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorPercentage}", label: t().t("workflowEditor.process.percentageOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionCount}", label: t().t("workflowEditor.process.totalNumberOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstCount}", label: t().t("workflowEditor.process.totalVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorCount}", label: t().t("workflowEditor.process.totalNumberOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }], a = { "condition.operator.or": t().t("workflowEditor.process.perhaps"), "condition.operator.and": t().t("workflowEditor.process.also") };
4
+ function n(e2) {
5
+ return ["NUMBER", "DOUBLE", "FLOAT", "LONG", "INTEGER", "AMOUNT"].indexOf(e2) >= 0;
6
+ }
7
+ const s = [{ name: "operator.number.gt", label: t().t("workflowEditor.process.greaterThan") }, { name: "operator.number.lt", label: t().t("workflowEditor.process.lessThan") }, { name: "operator.number.eq", label: t().t("workflowEditor.process.beEqualTo") }, { name: "operator.number.le", label: t().t("workflowEditor.process.notGreaterThan") }, { name: "operator.number.ge", label: t().t("workflowEditor.process.notLessThan") }, { name: "operator.number.ne", label: t().t("workflowEditor.process.notEqualTo") }];
8
+ function l(e2) {
9
+ return ["STRING", "TEXT"].indexOf(e2) >= 0;
10
+ }
11
+ const i = [{ name: "operator.text.eq", label: t().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: t().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.contain", label: t().t("workflowEditor.process.contain") }, { name: "operator.text.contain.not", label: t().t("workflowEditor.process.notIncluded") }, { name: "operator.text.is.null", label: t().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: t().t("workflowEditor.process.isNotNull") }];
12
+ function p(e2) {
13
+ return ["DATE", "TIME"].indexOf(e2) >= 0;
14
+ }
15
+ const c = [{ name: "operator.date.gt", label: t().t("workflowEditor.process.laterThan") }, { name: "operator.date.lt", label: t().t("workflowEditor.process.earlierThan") }, { name: "operator.date.et", label: t().t("workflowEditor.process.beEqualTo") }, { name: "operator.date.le", label: t().t("workflowEditor.process.noLaterThan") }, { name: "operator.date.ge", label: t().t("workflowEditor.process.noEarlierThan") }, { name: "operator.date.ne", label: t().t("workflowEditor.process.notEqualTo") }], u = [{ name: "operator.text.eq", label: t().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: t().t("workflowEditor.process.notEqualTo") }];
16
+ function d(e2) {
17
+ return "${approvalResult}" === e2;
18
+ }
19
+ const f = [{ name: "operator.text.eq", label: t().t("workflowEditor.process.beEqualTo") }], m = [...s, ...c, ...i, ...u];
20
+ function g(e2, r2) {
21
+ if (r2 && 0 !== r2.length) {
22
+ let t2 = r2.replace(/ condition.operator.or /g, " condition.operator.or^_^");
23
+ t2 = t2.replace(/ condition.operator.and /g, " condition.operator.and^_^");
24
+ const o2 = t2.split("^_^");
25
+ let a2 = 0;
26
+ for (let r3 of o2) {
27
+ if ("" === r3)
28
+ continue;
29
+ let t3 = "", o3 = "", n2 = "", s2 = "", l2 = "", i2 = "condition.operator.or", p2 = r3.indexOf("${");
30
+ if (p2 > 0 && (t3 = r3.substring(0, p2)), o3 = r3.substring(p2, r3.indexOf(" ")), r3 = r3.substring(r3.indexOf(" ") + 1), n2 = r3.substring(0, r3.indexOf(" ")), r3 = r3.substring(r3.indexOf(" ") + 1), p2 = r3.indexOf(")"), p2 >= 0) {
31
+ s2 = r3.substring(0, p2);
32
+ const e3 = r3.substring(p2);
33
+ p2 = e3.indexOf(")"), l2 = e3.indexOf(" ") >= 0 ? e3.substring(p2, e3.indexOf(" ")) : e3.substring(p2), p2 = r3.indexOf(" condition."), p2 >= 0 && (i2 = r3.substring(p2 + 1));
34
+ } else
35
+ p2 = r3.indexOf(" condition."), p2 > 0 ? (s2 = r3.substring(0, p2), i2 = r3.substring(p2 + 1)) : s2 = r3;
36
+ e2.push({ id: a2, leftBracket: t3, key: o3, operator: n2, value: s2, rightBracket: l2, logicOperator: i2 }), a2++;
37
+ }
38
+ return a2;
39
+ }
40
+ }
41
+ function w(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
+ }
48
+ function T(e2) {
49
+ const r2 = o.filter((r3) => r3.name === e2);
50
+ return r2.length > 0 ? r2[0] : null;
51
+ }
52
+ function E(e2) {
53
+ const r2 = T(e2);
54
+ return r2 ? r2.label : e2;
55
+ }
56
+ function b(r2) {
57
+ return r2 ? r2.indexOf("${field[") >= 0 ? e(r2) : r2.indexOf("${") >= 0 ? E(r2) : r2.indexOf("[") >= 0 ? r2.substring(0, r2.indexOf("[")) : r2 : "";
58
+ }
59
+ function k(e2) {
60
+ const r2 = m.filter((r3) => r3.name === e2);
61
+ return r2.length > 0 ? r2[0].label : "";
62
+ }
63
+ function D(e2) {
64
+ let r2 = "";
65
+ for (const t3 of e2)
66
+ 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 + b(t3.key) + " " + k(t3.operator) + " " + b(t3.value) + t3.rightBracket + " " + a[t3.logicOperator] + " ");
67
+ const t2 = " 或者 ", o2 = " 并且 ";
68
+ return r2.lastIndexOf(t2) + 4 === r2.length ? r2 = r2.substring(0, r2.lastIndexOf(t2)) : r2.lastIndexOf(o2) + 4 === r2.length && (r2 = r2.substring(0, r2.lastIndexOf(o2))), r2;
69
+ }
70
+ function y(e2) {
71
+ const r2 = o.filter((r3) => r3.name === e2);
72
+ let t2 = [];
73
+ r2.length > 0 && (t2 = r2[0].relatedFields || []);
74
+ const a2 = [];
75
+ return o.forEach((e3) => {
76
+ t2.indexOf(e3.name.substring(2, e3.name.length - 1)) >= 0 && a2.push(e3);
77
+ }), a2;
78
+ }
79
+ function h(e2) {
80
+ if (e2)
81
+ return o;
82
+ const r2 = [];
83
+ return o.forEach((t2) => {
84
+ e2 || "other" === t2.orgType || r2.push(t2);
85
+ }), r2;
86
+ }
87
+ function O(e2) {
88
+ if ("${approvalResult}" === e2)
89
+ return false;
90
+ const r2 = o.filter((r3) => r3.name === e2);
91
+ let t2 = false;
92
+ return r2.length > 0 && r2.forEach((r3) => {
93
+ e2 === r3.name && "other" === r3.orgType && (t2 = true);
94
+ }), t2;
95
+ }
96
+ function x(e2) {
97
+ const t2 = r(e2) || T(e2);
98
+ if (t2)
99
+ return n(t2.dataType) ? s : p(t2.dataType) ? c : l(t2.dataType) ? i : d(e2) ? f : u;
100
+ }
101
+ export {
102
+ m as allOperators,
103
+ D as displayCondition,
104
+ w as generateCondition,
105
+ b as getFieldLabel,
106
+ k as getOperatorLabel,
107
+ x as getOperators,
108
+ y as getRelatedStandardFields,
109
+ T as getStandardField,
110
+ E as getStandardFieldLabel,
111
+ h as getStandardFieldsByTacheType,
112
+ d as isApproveResult,
113
+ p as isDate,
114
+ n as isNumber,
115
+ l as isString,
116
+ O as isTransitionOtherField,
117
+ a as logicOperators,
118
+ f as operatorsForApproveResult,
119
+ c as operatorsForDate,
120
+ s as operatorsForNumber,
121
+ i as operatorsForString,
122
+ u as operatorsForText,
123
+ g as parseCondition,
124
+ o as standardFields
125
+ };
@@ -0,0 +1,60 @@
1
+ import { parseCondition as e, standardFields as t, getStandardFieldsByTacheType as l, getRelatedStandardFields as o, generateCondition as a, getFieldLabel as r, getOperators as i, displayCondition as n, isTransitionOtherField as u } from "./additional-condition-utils.mjs";
2
+ import s from "./value-selection-dialog.vue.mjs";
3
+ import { mapGetters as d } from "vuex";
4
+ import { resolveComponent as c, openBlock as h, createElementBlock as w, createVNode as p, withCtx as f, createTextVNode as m, toDisplayString as g, Fragment as b, renderList as k, createBlock as v, createCommentVNode as y } from "vue";
5
+ import V from "../../../../_virtual/_plugin-vue_export-helper.mjs";
6
+ const C = { name: "AdditionalCondition", components: { ValueSelectionDialog: s }, props: { modelValue: { type: String, default: null }, isTransition: { type: Boolean, default: false } }, data() {
7
+ const l2 = [], o2 = e(l2, this.modelValue);
8
+ return { standardFields: t, tableData: l2, count: o2, currentRow: null, currentInput: null, options: [], valueDialogTitle: null, showOrganization: true, orgType: null };
9
+ }, computed: { ...d("wfEditor", ["formFields"]), availableStandardFields() {
10
+ return "key" === this.currentInput ? l(this.isTransition) : o(this.currentRow.key);
11
+ } }, mounted() {
12
+ this.tableData.length > 0 && this.$refs.table.setCurrentRow(this.tableData[this.tableData.length - 1]), this.$watch("tableData", function(e2, t2) {
13
+ this.$emit("update:modelValue", a(this.tableData));
14
+ }, { deep: true });
15
+ }, methods: { format: (e2, t2) => "" === e2 || null == e2 ? "" : r(e2), getOperatorOptions: (e2) => i(e2), selectRow(e2) {
16
+ this.$refs.table.setCurrentRow(e2);
17
+ }, openValueDialog(e2) {
18
+ this.showValueDialog = true, this.selectRow(e2);
19
+ }, closeValueDialog(e2) {
20
+ void 0 !== e2 && "" !== e2 && ("key" === this.currentInput && this.currentRow.key !== e2 && (this.currentRow.operator = "", this.currentRow.value = ""), this.currentRow[this.currentInput] = e2), this.currentInput = "";
21
+ }, getCondition: (e2) => e2.key + " " + e2.operator + " " + e2.value, handleCurrentChange(e2) {
22
+ this.currentRow = e2;
23
+ }, getRowIndex(e2) {
24
+ for (let t2 = 0; t2 < this.tableData.length; t2++)
25
+ if (this.tableData[t2].id === e2.id)
26
+ return t2;
27
+ return -1;
28
+ }, add() {
29
+ (null === this.count || void 0 === this.count || this.count.isNaN || "NaN" === this.count) && (this.count = 0);
30
+ const e2 = { id: this.count, leftBracket: "", key: "", operator: "", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
31
+ this.tableData.push(e2), this.$refs.table.setCurrentRow(e2), this.count++;
32
+ }, insert() {
33
+ if (null === this.currentRow)
34
+ return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
35
+ const e2 = { id: this.count, leftBracket: "", key: "", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
36
+ this.tableData.splice(this.getRowIndex(this.currentRow), 0, e2), this.$refs.table.setCurrentRow(e2), this.count++;
37
+ }, remove() {
38
+ if (null === this.currentRow)
39
+ return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
40
+ let e2 = this.getRowIndex(this.currentRow);
41
+ 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]));
42
+ }, view() {
43
+ let e2 = n(this.tableData);
44
+ "" === e2 && (e2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(e2, this.$t("workflowEditorMessage.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
45
+ } });
46
+ }, selectField(e2) {
47
+ this.selectRow(e2), this.currentInput = "key", this.valueDialogTitle = this.$t("workflowEditorMessage.fieldSettings"), this.showOrganization = false;
48
+ }, selectValue() {
49
+ this.currentInput = "value", this.valueDialogTitle = this.$t("workflowEditorMessage.valueSetting"), this.showOrganization = true, this.orgType = this.getStandardFieldOrgType();
50
+ }, getStandardFieldOrgType() {
51
+ const e2 = this.standardFields.filter((e3) => e3.name === this.currentRow.key);
52
+ return e2.length > 0 ? e2[0].orgType : "";
53
+ }, isTransitionOtherField: (e2) => u(e2) } }, R = { style: { overflow: "auto", width: "100%" } };
54
+ const $ = V(C, [["render", function(e2, t2, l2, o2, a2, r2) {
55
+ const i2 = c("el-button"), n2 = c("el-row"), u2 = c("el-option"), s2 = c("el-select"), d2 = c("el-table-column"), V2 = c("el-input"), C2 = c("el-table"), $2 = c("value-selection-dialog");
56
+ return h(), w("div", R, [p(n2, null, { default: f(() => [p(i2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: r2.add }, { default: f(() => [m(g(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), p(i2, { type: "primary", size: "small", plain: "", icon: "ArrowRight", onClick: r2.insert }, { default: f(() => [m(g(e2.$t("workflowEditorPublicModel.insert")), 1)]), _: 1 }, 8, ["onClick"]), p(i2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: r2.remove }, { default: f(() => [m(g(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"]), p(i2, { type: "primary", size: "small", plain: "", icon: "View", onClick: r2.view }, { default: f(() => [m(g(e2.$t("workflowEditorPublicModel.viewConditions")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), p(C2, { ref: "table", data: a2.tableData, "row-key": "id", border: "", style: { width: "100%", "padding-top": "10px" }, "highlight-current-row": "", onCurrentChange: r2.handleCurrentChange }, { default: f(() => [p(d2, { prop: "leftBracket", label: "(", width: "90" }, { default: f((e3) => [p(s2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (t3) => e3.row.leftBracket = t3, placeholder: "", onFocus: (t3) => r2.selectRow(e3.row) }, { default: f(() => [p(u2, { label: "", value: "" }), p(u2, { label: "(", value: "(" }), p(u2, { label: "((", value: "((" }), p(u2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), p(d2, { label: e2.$t("workflowEditor.common.fieldName"), width: "200" }, { default: f((e3) => [p(V2, { value: r2.format(e3.row.key), onClick: (t3) => r2.selectField(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"]), p(d2, { label: e2.$t("workflowEditor.common.operator"), width: "130" }, { default: f((e3) => [p(s2, { modelValue: e3.row.operator, "onUpdate:modelValue": (t3) => e3.row.operator = t3, placeholder: "", onFocus: (t3) => r2.selectRow(e3.row) }, { default: f(() => [(h(true), w(b, null, k(r2.getOperatorOptions(e3.row.key), (e4) => (h(), v(u2, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), p(d2, { label: e2.$t("workflowEditor.common.value") }, { default: f((t3) => [t3.row.key.indexOf("${field[") >= 0 || r2.isTransitionOtherField(t3.row.key) ? (h(), v(V2, { 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 ? (h(), v(s2, { key: 1, modelValue: t3.row.value, "onUpdate:modelValue": (e3) => t3.row.value = e3, modelModifiers: { trim: true } }, { default: f(() => [p(u2, { value: "同意", label: e2.$t("workflowEditorPublicModel.agree") }, null, 8, ["label"]), p(u2, { value: "不同意", label: e2.$t("workflowEditorPublicModel.disagree") }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : (h(), v(V2, { key: 2, value: r2.format(t3.row.value, t3.row), readonly: "", onClick: r2.selectValue }, null, 8, ["value", "onClick"]))]), _: 1 }, 8, ["label"]), p(d2, { prop: "rightBracket", label: ")", width: "90", onFocus: t2[0] || (t2[0] = (t3) => r2.selectRow(e2.scope.row)) }, { default: f((e3) => [p(s2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (t3) => e3.row.rightBracket = t3, placeholder: "" }, { default: f(() => [p(u2, { label: "", value: "" }), p(u2, { label: ")", value: ")" }), p(u2, { label: "))", value: "))" }), p(u2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), p(d2, { prop: "logicOperator", label: e2.$t("workflowEditorPublicModel.andOr"), width: "110" }, { default: f((t3) => [p(s2, { modelValue: t3.row.logicOperator, "onUpdate:modelValue": (e3) => t3.row.logicOperator = e3, placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onFocus: (e3) => r2.selectRow(t3.row) }, { default: f(() => [p(u2, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), p(u2, { 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"]), a2.currentInput ? (h(), v($2, { key: 0, title: a2.valueDialogTitle, "show-organization": a2.showOrganization, "standard-fields": r2.availableStandardFields, "org-type": a2.orgType, onClose: r2.closeValueDialog }, null, 8, ["title", "show-organization", "standard-fields", "org-type", "onClose"])) : y("", true)]);
57
+ }]]);
58
+ export {
59
+ $ as default
60
+ };
@@ -0,0 +1,5 @@
1
+ import { getI18n as r } from "../../util.mjs";
2
+ const e = { "${currentTime}": r().t("workflowEditor.process.handlingTimeOfThisLink"), "${currentTransactorId}": r().t("workflowEditor.process.handlerIDOfThisLink"), "${currentTransactorMainDepartmentId}": r().t("workflowEditor.process.currentHandlerPrincipalDepartmentID"), "${currentTransactorDirectSuperiorId}": r().t("workflowEditor.process.iDOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorMainDepartmentId}": r().t("workflowEditor.process.iDOfTheSuperiorDepartmentDirectlyUnderTheCurrentHandler"), "${currentTransactor}": r().t("workflowEditor.process.loginNameOfTheHandlerInThisLink"), "${currentTransactorName }": r().t("workflowEditor.process.NameOfCurrentHandler"), "${currentTransactorDepartment }": r().t("workflowEditor.process.CurrentHandlerDepartment"), "${currentTransactorDepartmentId}": r().t("workflowEditor.process.CurrentHandlerDepartmentID"), "${currentTransactorMainDepartment}": r().t("workflowEditor.process.CurrentManagersPrincipalDepartment"), "${currentTransactorSuperiorDepartmentId}": r().t("workflowEditor.process.iDOfSsuperiorDepartmentOfCurrentHandler"), "${currentTransactorSuperiorDepartment}": r().t("workflowEditor.process.CurrentHandlersSuperiorDepartment"), "${currentTransactorUpstageDepartment}": r().t("workflowEditor.process.TopDepartmentOfCurrentHandler"), "${currentTransactorUpstageDepartmentId}": r().t("workflowEditor.process.TopDepartmentIDOfCurrentHandler"), "${currentTransactorRole}": r().t("workflowEditor.process.CurrentHandlerRole"), "${currentTransactorRoleId}": r().t("workflowEditor.process.CurrentHandlerRoleID"), "${currentTransactorWorkGroup}": r().t("workflowEditor.process.currentHandlerWorkingGroup"), "${currentTransactorWorkGroupId}": r().t("workflowEditor.process.CurrentHandlerWorkingGroupID"), "${currentTransactorDirectSuperior}": r().t("workflowEditor.process.LoginNameOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorName}": r().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), "${currentTransactorDirectSuperiorDepartment}": r().t("workflowEditor.process.currentHandlersDirectSuperiorDepartment"), "${currentTransactorDirectSuperiorDepartmentId}": r().t("workflowEditor.process.currentManagersIdDirectlyUnderTheSuperior"), "${currentTransactorDirectSuperiorMainDepartment}": r().t("workflowEditor.process.currentManagersDirectSuperiorDepartment"), "${currentTransactorDirectSuperiorRole}": r().t("workflowEditor.process.currentManagersDirectSuperiorRole"), "${currentTransactorDirectSuperiorRoleId}": r().t("workflowEditor.process.currentHandlersDirectSuperiorRoleID"), "${currentTransactorDirectSuperiorWorkGroup}": r().t("workflowEditor.process.currentManagersDirectSuperiorWork"), "${currentTransactorDirectSuperiorWorkGroupId}": r().t("workflowEditor.process.iDOfTheWorkingGroupDirectlyUnderTheCurrentHandler"), "${currentOperation}": r().t("workflowEditor.process.operationsPerformedInThisPhase"), "${previousTransactorId}": r().t("workflowEditor.process.handlerIDOfThePreviousLink"), "${previousTransactor}": r().t("workflowEditor.process.lastLinkHandlerLogin"), "${previousTransactorName}": r().t("workflowEditor.process.nameOfHandlerInThePreviousLink") };
3
+ export {
4
+ e as standardValues
5
+ };
@@ -0,0 +1,72 @@
1
+ import { standardValues as e } from "./auto-filled-fields-utils.mjs";
2
+ import l from "./form-fields.vue.mjs";
3
+ import { getFormFieldLabel as t } from "./form-fields-utils.mjs";
4
+ import { resolveComponent as o, openBlock as a, createElementBlock as i, createVNode as n, withCtx as r, createTextVNode as d, toDisplayString as s, Fragment as u, renderList as m, createBlock as p, createCommentVNode as h } from "vue";
5
+ import f from "../../../../_virtual/_plugin-vue_export-helper.mjs";
6
+ const c = f({ name: "AutoFilledFields", components: { FormFields: l }, props: { modelValue: { type: Object, default: () => ({}) }, opinionSetting: { type: Object, default: () => ({}) } }, data() {
7
+ const l2 = [];
8
+ if (void 0 !== this.modelValue.field && null !== this.modelValue.field)
9
+ if (Array.isArray(this.modelValue.field))
10
+ this.modelValue.field.map((e2) => {
11
+ const t3 = { ...e2 };
12
+ "string" == typeof e2.value && -1 !== e2.value.indexOf("+") ? t3.value = e2.value.split("+") : (t3.value = [], t3.value.push(e2.value)), l2.push(t3);
13
+ });
14
+ else {
15
+ const e2 = { ...this.modelValue.field };
16
+ "string" == typeof this.modelValue.field.value && -1 !== this.modelValue.field.value.indexOf("+") ? e2.value = this.modelValue.field.value.split("+") : (e2.value = [], e2.value.push(this.modelValue.field.value)), l2.push(e2);
17
+ }
18
+ let t2 = {};
19
+ return this.opinionSetting && this.opinionSetting.opinionSourceField && (t2 = { ...this.opinionSetting }), { tableData: l2, currentRow: null, standardValues: e, showFormFields: false, isSelectOpinionField: false, opinionAutoSetting: t2 };
20
+ }, computed: { keys() {
21
+ return Object.keys(this.standardValues);
22
+ } }, watch: { opinionAutoSetting: { deep: true, handler(e2) {
23
+ const l2 = { ...e2 };
24
+ this.$emit("update:opinion-setting", l2);
25
+ } } }, mounted() {
26
+ this.tableData && this.tableData.length > 0 && this.setCurrentRow(this.tableData[0]), this.$watch("tableData", function() {
27
+ const e2 = [];
28
+ this.tableData.map((l2) => {
29
+ if ("" !== l2.name && l2.value.length > 0) {
30
+ const t2 = { ...l2 };
31
+ t2.value = l2.value.join("+"), e2.push(t2);
32
+ }
33
+ }), this.$emit("update:modelValue", { field: e2 });
34
+ }, { deep: true });
35
+ }, created() {
36
+ }, methods: { add() {
37
+ for (let e3 = 0; e3 < this.tableData.length; e3++)
38
+ if ("" === this.tableData[e3].name || "" === this.tableData[e3].value)
39
+ return void this.$alert(this.$t("workflowEditorMessage.theFieldNameOrFieldValueInLineCannotBeEmpty", { row: e3 + 1 }));
40
+ const e2 = { name: "", value: [], separator: "", fillType: "cover", fillTime: "after" };
41
+ this.tableData.push(e2), this.setCurrentRow(e2);
42
+ }, remove() {
43
+ if (null === this.currentRow)
44
+ return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
45
+ let e2;
46
+ for (let l2 = 0; l2 < this.tableData.length; l2++)
47
+ if (this.tableData[l2].name === this.currentRow.name) {
48
+ e2 = l2;
49
+ break;
50
+ }
51
+ this.tableData.splice(e2, 1), e2 = e2 <= this.tableData.length - 1 ? e2 : this.tableData.length - 1, this.setCurrentRow(this.tableData[e2]);
52
+ }, setCurrentRow(e2) {
53
+ this.$refs.table.setCurrentRow(e2);
54
+ }, handleCurrentChange(e2) {
55
+ this.currentRow = e2;
56
+ }, checkName(e2) {
57
+ this.showFormFields || "" !== e2 || this.$alert(this.$t("workflowEditorMessage.fieldNameCannotBeEmpty"));
58
+ }, checkValue(e2) {
59
+ 0 === e2.length && this.$alert(this.$t("workflowEditorMessage.fieldValueCannotBeEmpty"));
60
+ }, setField(e2) {
61
+ this.isSelectOpinionField ? this.opinionAutoSetting.opinionSourceField = e2 : void 0 !== e2 && (this.currentRow.name = e2), this.showFormFields = false, this.isSelectOpinionField = false;
62
+ }, getFieldLabel: (e2) => t(e2), selectOpinionField() {
63
+ this.showFormFields = true, this.isSelectOpinionField = true;
64
+ }, clearOpinionField() {
65
+ delete this.opinionAutoSetting.opinionSourceField;
66
+ } } }, [["render", function(e2, l2, t2, f2, c2, w) {
67
+ const b = o("el-button"), v = o("el-row"), g = o("el-table-column"), k = o("el-input"), F = o("el-option"), V = o("el-select"), C = o("el-table"), y = o("el-card"), $ = o("el-form-item"), E = o("form-fields");
68
+ return a(), i("div", null, [n(y, { class: "box-card" }, { header: r(() => [d(" 表单自动填充字段设置 ")]), default: r(() => [n(v, { style: { "margin-bottom": "5px" } }, { default: r(() => [n(b, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: w.add }, { default: r(() => [d(s(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), n(b, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: w.remove }, { default: r(() => [d(s(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), n(C, { ref: "table", data: c2.tableData, border: "", "highlight-current-row": "", style: { width: "100%" }, onCurrentChange: w.handleCurrentChange }, { default: r(() => [n(g, { type: "index", width: "50" }), n(g, { prop: "name", label: e2.$t("workflowEditor.common.name"), width: "150" }, { default: r((t3) => [n(k, { value: w.getFieldLabel(t3.row.name), placeholder: e2.$t("workflowEditorMessage.pleaseEnterContent"), readonly: "", onClick: l2[0] || (l2[0] = (e3) => c2.showFormFields = true), onBlur: (e3) => w.checkName(t3.row.name) }, null, 8, ["value", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), n(g, { prop: "value", label: e2.$t("workflowEditor.common.fieldValue"), width: "200" }, { default: r((l3) => [n(V, { modelValue: l3.row.value, "onUpdate:modelValue": (e3) => l3.row.value = e3, multiple: "", filterable: "", "allow-create": "", "default-first-option": "", placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onBlur: (e3) => w.checkValue(l3.row.value) }, { default: r(() => [(a(true), i(u, null, m(w.keys, (e3) => (a(), p(F, { key: e3, label: c2.standardValues[e3], value: e3 }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "onBlur"])]), _: 1 }, 8, ["label"]), n(g, { prop: "separator", label: e2.$t("workflowEditor.common.separator") }, { default: r((e3) => [n(k, { modelValue: e3.row.separator, "onUpdate:modelValue": (l3) => e3.row.separator = l3, modelModifiers: { trim: true } }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), n(g, { prop: "fillType", label: e2.$t("workflowEditor.common.fillInMethod") }, { default: r((l3) => [n(V, { modelValue: l3.row.fillType, "onUpdate:modelValue": (e3) => l3.row.fillType = e3 }, { default: r(() => [n(F, { label: e2.$t("workflowEditor.common.cover"), value: "cover" }, null, 8, ["label"]), n(F, { label: e2.$t("workflowEditor.common.append"), value: "append" }, null, 8, ["label"]), n(F, { label: e2.$t("workflowEditor.common.insertToFront"), value: "prepend" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"]), n(g, { prop: "fillTime", label: e2.$t("workflowEditor.common.fillInTime") }, { default: r((l3) => [n(V, { modelValue: l3.row.fillTime, "onUpdate:modelValue": (e3) => l3.row.fillTime = e3 }, { default: r(() => [n(F, { label: e2.$t("workflowEditor.common.fillInBeforeHandling"), value: "before" }, null, 8, ["label"]), n(F, { label: e2.$t("workflowEditor.common.fillInAfterHandling"), value: "after" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "onCurrentChange"])]), _: 1 }), n(y, { class: "box-card", style: { "margin-top": "10px" } }, { header: r(() => [d(" 办理意见 ")]), default: r(() => [n($, { label: "意见来源字段", "label-width": "100" }, { default: r(() => [n(k, { value: w.getFieldLabel(c2.opinionAutoSetting.opinionSourceField), placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), readonly: "", clearable: true, onClick: w.selectOpinionField }, { append: r(() => [n(b, { icon: "Delete", onClick: w.clearOpinionField }, null, 8, ["onClick"])]), _: 1 }, 8, ["value", "placeholder", "onClick"])]), _: 1 })]), _: 1 }), c2.showFormFields ? (a(), p(E, { key: 0, onClose: w.setField }, null, 8, ["onClose"])) : h("", true)]);
69
+ }]]);
70
+ export {
71
+ c as default
72
+ };
@@ -0,0 +1,18 @@
1
+ import { resolveComponent as l, openBlock as t, createElementBlock as e, createVNode as o, withCtx as u, createTextVNode as s, toDisplayString as i, createBlock as m, createCommentVNode as a } from "vue";
2
+ import d from "../../../../_virtual/_plugin-vue_export-helper.mjs";
3
+ const r = d({ name: "CommonNoticeTool", props: { label: { type: String, default: null }, modelValue: { type: String, default: null }, customMsg: { type: String, default: null } }, data() {
4
+ let l2 = [];
5
+ this.modelValue && "" !== this.modelValue && null !== this.modelValue && (l2 = this.modelValue.split(","));
6
+ let t2 = "";
7
+ return this.customMsg && "" !== this.customMsg && null !== this.customMsg && (t2 = this.customMsg), { tools: l2, myCustomMsg: t2 };
8
+ }, watch: { tools(l2) {
9
+ this.$emit("update:modelValue", this.tools.join(","));
10
+ }, myCustomMsg(l2) {
11
+ this.$emit("input-msg", this.myCustomMsg);
12
+ } } }, [["render", function(d2, r2, n, c, f, b) {
13
+ const g = l("el-checkbox"), h = l("el-checkbox-group"), p = l("el-form-item"), M = l("el-input");
14
+ return t(), e("div", null, [o(p, { label: n.label }, { default: u(() => [o(h, { modelValue: f.tools, "onUpdate:modelValue": r2[0] || (r2[0] = (l2) => f.tools = l2) }, { default: u(() => [o(g, { label: "mail" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.mail")), 1)]), _: 1 }), o(g, { label: "DINGDING" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.dingding")), 1)]), _: 1 }), o(g, { label: "QIWEI" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.qiwei")), 1)]), _: 1 }), o(g, { label: "FEISHU" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.feishu")), 1)]), _: 1 }), o(g, { label: "custom" }, { default: u(() => [s(i(d2.$t("workflowEditorPublicModel.custom")), 1)]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), f.tools.indexOf("custom") >= 0 ? (t(), m(p, { key: 0, "label-width": "110", label: d2.$t("workflowEditor.common.customMsg") }, { default: u(() => [o(M, { modelValue: f.myCustomMsg, "onUpdate:modelValue": r2[1] || (r2[1] = (l2) => f.myCustomMsg = l2) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])) : a("", true)]);
15
+ }]]);
16
+ export {
17
+ r as default
18
+ };
@@ -0,0 +1,55 @@
1
+ import e from "./value-selection-dialog.vue.mjs";
2
+ import { parseCondition as o, userStandardFieldsForReminder as l, userStandardFieldsForTransactor as t, departmentStandardFieldsForReminder as r, departmentStandardFieldsForTransactor as a, workgroupStandardFieldsForReminder as i, workgroupStandardFieldsForTransactor as n, generateUserCondition as s, formatStandardValue as u, displayUserCondition as d } from "../user-condition.mjs";
3
+ import { getFormFieldLabel as c } from "./form-fields-utils.mjs";
4
+ import { resolveComponent as w, openBlock as h, createElementBlock as p, createVNode as m, withCtx as f, createTextVNode as k, toDisplayString as g, createBlock as b, createCommentVNode as v } from "vue";
5
+ import $ from "../../../../_virtual/_plugin-vue_export-helper.mjs";
6
+ const C = $({ name: "CommonUserCondition", components: { ValueSelectionDialog: e }, props: { modelValue: { type: String, default: null }, usedIn: { type: String, default: "reminder" } }, data() {
7
+ const e2 = [];
8
+ let l2 = 0;
9
+ return this.modelValue && "" !== this.modelValue && (l2 = o(e2, this.modelValue)), { users: e2, count: l2, currentRow: null, showValueDialog: false };
10
+ }, computed: { standardFields() {
11
+ let e2 = "reminder" === this.usedIn ? l : t;
12
+ return "${department}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ? r : a : "${workgroup}" === this.currentRow.key ? e2 = "reminder" === this.usedIn ? i : n : "${role}" === this.currentRow.key && (e2 = {}), e2;
13
+ } }, mounted() {
14
+ this.users.length > 0 && this.$refs.table.setCurrentRow(this.users[this.users.length - 1]), this.$watch("users", function(e2, o2) {
15
+ this.$emit("update:modelValue", s(this.users));
16
+ }, { deep: true });
17
+ }, methods: { format: (e2) => e2.indexOf("${field[") >= 0 ? c(e2) : e2.indexOf("${") >= 0 ? u(e2) : e2.substring(0, e2.indexOf("[")), selectRow(e2) {
18
+ this.$refs.table.setCurrentRow(e2);
19
+ }, openValueDialog(e2) {
20
+ this.showValueDialog = true, this.selectRow(e2);
21
+ }, closeValueDialog(e2) {
22
+ void 0 !== e2 && "" !== e2 && (this.currentRow.value = e2), this.showValueDialog = false;
23
+ }, getCondition: (e2) => e2.key + " " + e2.operator + " " + e2.value, handleCurrentChange(e2) {
24
+ this.currentRow = e2;
25
+ }, getRowIndex(e2) {
26
+ for (let o2 = 0; o2 < this.users.length; o2++)
27
+ if (this.users[o2].id === e2.id)
28
+ return o2;
29
+ return -1;
30
+ }, add() {
31
+ const e2 = { id: this.count, leftBracket: "", key: "${user}", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
32
+ this.users.push(e2), this.$refs.table.setCurrentRow(e2), this.count++;
33
+ }, insert() {
34
+ if (null === this.currentRow)
35
+ return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
36
+ const e2 = { id: this.count, leftBracket: "", key: "${user}", operator: "operator.text.eq", value: "", rightBracket: "", logicOperator: "condition.operator.or" };
37
+ this.users.splice(this.getRowIndex(this.currentRow), 0, e2), this.$refs.table.setCurrentRow(e2), this.count++;
38
+ }, remove() {
39
+ if (null === this.currentRow)
40
+ return void this.$alert(this.$t("workflowEditorMessage.pleaseSelectARow"));
41
+ let e2 = this.getRowIndex(this.currentRow);
42
+ this.users.splice(e2, 1), this.users.length > 0 && (e2 = e2 <= this.users.length - 1 ? e2 : this.users.length - 1, this.$refs.table.setCurrentRow(this.users[e2]));
43
+ }, view() {
44
+ let e2 = d(this.users);
45
+ "" === e2 && (e2 = this.$t("workflowEditorMessage.conditionsHaveNotBeenSet")), this.$confirm(e2, this.$t("workflowEditorPublicModel.viewConditions"), { showConfirmButton: false, showCancelButton: false, callback: function() {
46
+ } });
47
+ }, handleKeyChange(e2) {
48
+ this.currentRow.value = "";
49
+ } } }, [["render", function(e2, o2, l2, t2, r2, a2) {
50
+ const i2 = w("el-button"), n2 = w("el-row"), s2 = w("el-option"), u2 = w("el-select"), d2 = w("el-table-column"), c2 = w("el-input"), $2 = w("el-table"), C2 = w("value-selection-dialog");
51
+ return h(), p("div", null, [m(n2, null, { default: f(() => [m(i2, { type: "primary", size: "small", plain: "", icon: "CirclePlus", onClick: a2.add }, { default: f(() => [k(g(e2.$t("workflowEditorPublicModel.add")), 1)]), _: 1 }, 8, ["onClick"]), m(i2, { type: "primary", size: "small", plain: "", icon: "ArrowRight", onClick: a2.insert }, { default: f(() => [k(g(e2.$t("workflowEditorPublicModel.insert")), 1)]), _: 1 }, 8, ["onClick"]), m(i2, { type: "primary", size: "small", plain: "", icon: "Delete", onClick: a2.remove }, { default: f(() => [k(g(e2.$t("workflowEditorPublicModel.delete")), 1)]), _: 1 }, 8, ["onClick"]), m(i2, { type: "primary", size: "small", plain: "", icon: "View", onClick: a2.view }, { default: f(() => [k(g(e2.$t("workflowEditorPublicModel.viewConditions")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }), m($2, { ref: "table", data: r2.users, "row-key": "id", border: "", style: { width: "100%", "padding-top": "10px" }, "highlight-current-row": "", onCurrentChange: a2.handleCurrentChange }, { default: f(() => [m(d2, { prop: "leftBracket", label: "(", width: "90" }, { default: f((e3) => [m(u2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (o3) => e3.row.leftBracket = o3, placeholder: "", onFocus: (o3) => a2.selectRow(e3.row) }, { default: f(() => [m(s2, { label: "", value: "" }), m(s2, { label: "(", value: "(" }), m(s2, { label: "((", value: "((" }), m(s2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }), m(d2, { label: e2.$t("workflowEditor.common.type"), width: "110" }, { default: f((o3) => [m(u2, { modelValue: o3.row.key, "onUpdate:modelValue": (e3) => o3.row.key = e3, placeholder: "", onFocus: (e3) => a2.selectRow(o3.row), onChange: a2.handleKeyChange }, { default: f(() => [m(s2, { label: e2.$t("workflowEditor.common.user"), value: "${user}" }, null, 8, ["label"]), m(s2, { label: e2.$t("workflowEditor.common.role"), value: "${role}" }, null, 8, ["label"]), m(s2, { label: e2.$t("workflowEditor.common.department"), value: "${department}" }, null, 8, ["label"]), m(s2, { label: e2.$t("workflowEditor.common.workgroup"), value: "${workgroup}" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus", "onChange"])]), _: 1 }, 8, ["label"]), m(d2, { label: e2.$t("workflowEditor.common.operator"), width: "110" }, { default: f((o3) => [m(u2, { modelValue: o3.row.operator, "onUpdate:modelValue": (e3) => o3.row.operator = e3, placeholder: "", onFocus: (e3) => a2.selectRow(o3.row) }, { default: f(() => [m(s2, { label: e2.$t("workflowEditor.process.beEqualTo"), value: "operator.text.eq" }, null, 8, ["label"]), m(s2, { label: e2.$t("workflowEditor.process.notEqualTo"), value: "operator.text.neq" }, null, 8, ["label"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onFocus"])]), _: 1 }, 8, ["label"]), m(d2, { label: e2.$t("workflowEditor.common.value") }, { default: f((e3) => [m(c2, { value: a2.format(e3.row.value), readonly: "", onClick: (o3) => a2.openValueDialog(e3.row) }, null, 8, ["value", "onClick"])]), _: 1 }, 8, ["label"]), m(d2, { prop: "rightBracket", label: ")", width: "90", onFocus: o2[0] || (o2[0] = (o3) => a2.selectRow(e2.scope.row)) }, { default: f((e3) => [m(u2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (o3) => e3.row.rightBracket = o3, placeholder: "" }, { default: f(() => [m(s2, { label: "", value: "" }), m(s2, { label: ")", value: ")" }), m(s2, { label: "))", value: "))" }), m(s2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), m(d2, { prop: "logicOperator", label: e2.$t("workflowEditorPublicModel.andOr"), width: "110" }, { default: f((o3) => [m(u2, { modelValue: o3.row.logicOperator, "onUpdate:modelValue": (e3) => o3.row.logicOperator = e3, placeholder: e2.$t("workflowEditorMessage.pleaseSelect"), onFocus: (e3) => a2.selectRow(o3.row) }, { default: f(() => [m(s2, { label: e2.$t("workflowEditor.process.perhaps"), value: "condition.operator.or" }, null, 8, ["label"]), m(s2, { 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.showValueDialog ? (h(), b(C2, { key: 0, "standard-fields": a2.standardFields, "org-type": r2.currentRow.key.substring(r2.currentRow.key.indexOf("{") + 1, r2.currentRow.key.lastIndexOf("}")), onClose: a2.closeValueDialog }, null, 8, ["standard-fields", "org-type", "onClose"])) : v("", true)]);
52
+ }]]);
53
+ export {
54
+ C as default
55
+ };
@@ -0,0 +1,14 @@
1
+ function e(e2) {
2
+ const t = n(e2);
3
+ return t ? t.label : e2;
4
+ }
5
+ function n(e2) {
6
+ const n2 = window.$store.getters["wfEditor/formFields"];
7
+ e2 && (e2.indexOf("${field[") >= 0 || e2.indexOf("${deptField[") >= 0) && (e2 = e2.substring(e2.indexOf("[") + 1, e2.lastIndexOf("]")));
8
+ const t = n2.filter((n3) => n3.name === e2);
9
+ return t.length > 0 ? t[0] : null;
10
+ }
11
+ export {
12
+ n as getFormField,
13
+ e as getFormFieldLabel
14
+ };