workflow-editor 0.0.89-up → 0.0.89-up-cdnTmp1
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.
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/index.mjs +18 -0
- package/es/plugins/formValidatorUtil.mjs +262 -0
- package/es/plugins/index.mjs +7 -0
- package/es/src/i18n/i18n.mjs +7 -0
- package/es/src/i18n/langs/cn.mjs +4 -0
- package/es/src/i18n/langs/en.mjs +4 -0
- package/es/style.css +1 -0
- package/es/workflow-editor/index.mjs +10 -0
- package/es/workflow-editor/src/api.mjs +6 -0
- package/es/workflow-editor/src/assets/wf-editor-icons.mjs +43 -0
- package/es/workflow-editor/src/json-object-templates/auto-task.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/copy-task.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/decision.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/end.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/fork.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/human-decision.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/human-task.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/join.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/process.mjs +9 -0
- package/es/workflow-editor/src/json-object-templates/start.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/subprocess.mjs +7 -0
- package/es/workflow-editor/src/json-object-templates/transition.mjs +6 -0
- package/es/workflow-editor/src/main/admin-save-dialog.vue.mjs +13 -0
- package/es/workflow-editor/src/main/canvas.vue.mjs +130 -0
- package/es/workflow-editor/src/main/canvas.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/context-menu.vue.mjs +33 -0
- package/es/workflow-editor/src/main/context-menu.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/icon-svg.vue.mjs +12 -0
- package/es/workflow-editor/src/main/icon-svg.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/selection-region.vue.mjs +17 -0
- package/es/workflow-editor/src/main/selection-region.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/tache-history-tooltip.vue.mjs +10 -0
- package/es/workflow-editor/src/main/tache-history-tooltip.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue.mjs +11 -0
- package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/toolbox.vue.mjs +16 -0
- package/es/workflow-editor/src/main/toolbox.vue2.mjs +4 -0
- package/es/workflow-editor/src/main/wf-history-canvas.vue.mjs +86 -0
- package/es/workflow-editor/src/main/wf-history-canvas.vue2.mjs +4 -0
- package/es/workflow-editor/src/process-service.mjs +20 -0
- package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.mjs +25 -0
- package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/auto-task.vue.mjs +22 -0
- package/es/workflow-editor/src/properties-editors/auto-task.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/additional-condition-utils.mjs +125 -0
- package/es/workflow-editor/src/properties-editors/common/additional-condition.vue.mjs +60 -0
- package/es/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.mjs +5 -0
- package/es/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.mjs +72 -0
- package/es/workflow-editor/src/properties-editors/common/common-notice-tool.vue.mjs +18 -0
- package/es/workflow-editor/src/properties-editors/common/common-user-condition.vue.mjs +55 -0
- package/es/workflow-editor/src/properties-editors/common/form-fields-utils.mjs +14 -0
- package/es/workflow-editor/src/properties-editors/common/form-fields.vue.mjs +20 -0
- package/es/workflow-editor/src/properties-editors/common/form-fields.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/i18n-input.vue.mjs +27 -0
- package/es/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.mjs +36 -0
- package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue.mjs +27 -0
- package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/notice.vue.mjs +31 -0
- package/es/workflow-editor/src/properties-editors/common/reminder.vue.mjs +46 -0
- package/es/workflow-editor/src/properties-editors/common/reminder.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/select-mail-template.vue.mjs +20 -0
- package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.mjs +95 -0
- package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue.mjs +16 -0
- package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/task-title.vue.mjs +61 -0
- package/es/workflow-editor/src/properties-editors/common/task-title.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/task-title.vue3.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/transactor-settings.vue.mjs +43 -0
- package/es/workflow-editor/src/properties-editors/common/user-selection.vue.mjs +116 -0
- package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.mjs +60 -0
- package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/common/variables.vue.mjs +41 -0
- package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.mjs +25 -0
- package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.mjs +30 -0
- package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/copy-task.vue.mjs +26 -0
- package/es/workflow-editor/src/properties-editors/copy-task.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/decision.vue.mjs +24 -0
- package/es/workflow-editor/src/properties-editors/fork.vue.mjs +21 -0
- package/es/workflow-editor/src/properties-editors/human-decision.vue.mjs +15 -0
- package/es/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.mjs +16 -0
- package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue.mjs +38 -0
- package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.mjs +84 -0
- package/es/workflow-editor/src/properties-editors/human-task/custom-actions.vue.mjs +62 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.mjs +80 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.mjs +86 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.mjs +43 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/human-task/editable-fields.vue.mjs +67 -0
- package/es/workflow-editor/src/properties-editors/human-task/events.vue.mjs +18 -0
- package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue.mjs +33 -0
- package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.mjs +56 -0
- package/es/workflow-editor/src/properties-editors/human-task.vue.mjs +28 -0
- package/es/workflow-editor/src/properties-editors/human-task.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/join.vue.mjs +15 -0
- package/es/workflow-editor/src/properties-editors/process/basic-properties.vue.mjs +88 -0
- package/es/workflow-editor/src/properties-editors/process/events.vue.mjs +21 -0
- package/es/workflow-editor/src/properties-editors/process/notice-settings.vue.mjs +25 -0
- package/es/workflow-editor/src/properties-editors/process/parameter-settings.vue.mjs +17 -0
- package/es/workflow-editor/src/properties-editors/process/permission-settings.vue.mjs +10 -0
- package/es/workflow-editor/src/properties-editors/process/selectPage.vue.mjs +28 -0
- package/es/workflow-editor/src/properties-editors/process.vue.mjs +34 -0
- package/es/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.mjs +64 -0
- package/es/workflow-editor/src/properties-editors/subprocess/events.vue.mjs +9 -0
- package/es/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.mjs +55 -0
- package/es/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.mjs +20 -0
- package/es/workflow-editor/src/properties-editors/subprocess.vue.mjs +22 -0
- package/es/workflow-editor/src/properties-editors/subprocess.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/transition/basic-properties.vue.mjs +14 -0
- package/es/workflow-editor/src/properties-editors/transition.vue.mjs +17 -0
- package/es/workflow-editor/src/properties-editors/transition.vue2.mjs +4 -0
- package/es/workflow-editor/src/properties-editors/user-condition.mjs +49 -0
- package/es/workflow-editor/src/store/getters.mjs +4 -0
- package/es/workflow-editor/src/store/workflow-editor.mjs +73 -0
- package/es/workflow-editor/src/taches/auto-task.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/common-methods.mjs +13 -0
- package/es/workflow-editor/src/taches/copy-task.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/custom-task.vue.mjs +16 -0
- package/es/workflow-editor/src/taches/decision.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/decision.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/end.vue.mjs +14 -0
- package/es/workflow-editor/src/taches/end.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/fork.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/fork.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/human-decision.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/human-decision.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/human-task.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/join.vue.mjs +16 -0
- package/es/workflow-editor/src/taches/join.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/joint.vue.mjs +54 -0
- package/es/workflow-editor/src/taches/joint.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/start.vue.mjs +14 -0
- package/es/workflow-editor/src/taches/start.vue2.mjs +4 -0
- package/es/workflow-editor/src/taches/subprocess.vue.mjs +25 -0
- package/es/workflow-editor/src/taches/tache-resizer.vue.mjs +30 -0
- package/es/workflow-editor/src/taches/tache-resizer.vue2.mjs +4 -0
- package/es/workflow-editor/src/transitions/broken-line.vue.mjs +32 -0
- package/es/workflow-editor/src/transitions/broken-line.vue2.mjs +4 -0
- package/es/workflow-editor/src/transitions/curve-line.vue.mjs +33 -0
- package/es/workflow-editor/src/transitions/curve-line.vue2.mjs +4 -0
- package/es/workflow-editor/src/transitions/straight-line.vue.mjs +13 -0
- package/es/workflow-editor/src/transitions/transition.vue.mjs +77 -0
- package/es/workflow-editor/src/transitions/transition.vue2.mjs +4 -0
- package/es/workflow-editor/src/transitions/virtual-transition.vue.mjs +17 -0
- package/es/workflow-editor/src/transitions/virtual-transition.vue2.mjs +4 -0
- package/es/workflow-editor/src/util.mjs +180 -0
- package/es/workflow-editor/src/workflow-editor.vue.mjs +212 -0
- package/es/workflow-editor/src/workflow-editor.vue2.mjs +4 -0
- package/es/workflow-editor/src/workflow-history.vue.mjs +35 -0
- package/es/workflow-editor/src/workflow-history.vue2.mjs +4 -0
- package/package.json +16 -8
- package/.prettierrc.json +0 -9
- package/index.html +0 -13
- package/lib/401-ff27e685.js +0 -101
- package/lib/404-33de0149.js +0 -26
- package/lib/authredirect-ae6e75b4.js +0 -10
- package/lib/iframe-page-1982a263.js +0 -33
- package/lib/index-369eae4a.js +0 -13
- package/lib/index-41d47f5c.js +0 -32779
- package/lib/tab-content-iframe-index-df889a3a.js +0 -33
- package/lib/tab-content-index-3d780597.js +0 -1260
- package/lib/tache-subprocess-history-33260653.js +0 -56
- package/lib/workflow-editor.css +0 -1
- package/lib/workflow-editor.js +0 -5
- package/lib/workflow-editor.umd.cjs +0 -90
- package/packages/index.js +0 -34
- package/packages/plugins/formValidatorUtil.js +0 -890
- package/packages/plugins/index.js +0 -8
- package/packages/workflow-editor/index.js +0 -14
- package/packages/workflow-editor/src/api.js +0 -7
- package/packages/workflow-editor/src/assets/tab-select.png +0 -0
- package/packages/workflow-editor/src/assets/tab-selectWhite.png +0 -0
- package/packages/workflow-editor/src/assets/wf-editor-icons.js +0 -2
- package/packages/workflow-editor/src/constant.js +0 -8
- package/packages/workflow-editor/src/json-object-templates/auto-task.js +0 -70
- package/packages/workflow-editor/src/json-object-templates/copy-task.js +0 -72
- package/packages/workflow-editor/src/json-object-templates/decision.js +0 -11
- package/packages/workflow-editor/src/json-object-templates/end.js +0 -14
- package/packages/workflow-editor/src/json-object-templates/fork.js +0 -10
- package/packages/workflow-editor/src/json-object-templates/human-decision.js +0 -9
- package/packages/workflow-editor/src/json-object-templates/human-task.js +0 -208
- package/packages/workflow-editor/src/json-object-templates/join.js +0 -10
- package/packages/workflow-editor/src/json-object-templates/process.js +0 -99
- package/packages/workflow-editor/src/json-object-templates/start.js +0 -13
- package/packages/workflow-editor/src/json-object-templates/subprocess.js +0 -31
- package/packages/workflow-editor/src/json-object-templates/transition.js +0 -26
- package/packages/workflow-editor/src/main/admin-save-dialog.vue +0 -67
- package/packages/workflow-editor/src/main/canvas.vue +0 -493
- package/packages/workflow-editor/src/main/context-menu.vue +0 -147
- package/packages/workflow-editor/src/main/icon-svg.vue +0 -32
- package/packages/workflow-editor/src/main/selection-region.vue +0 -66
- package/packages/workflow-editor/src/main/tache-history-tooltip.vue +0 -38
- package/packages/workflow-editor/src/main/tache-name-input.vue +0 -19
- package/packages/workflow-editor/src/main/tache-subprocess-history-dialog.vue +0 -40
- package/packages/workflow-editor/src/main/toolbox.vue +0 -60
- package/packages/workflow-editor/src/main/wf-history-canvas.vue +0 -309
- package/packages/workflow-editor/src/process-json.js +0 -624
- package/packages/workflow-editor/src/process-service.js +0 -69
- package/packages/workflow-editor/src/properties-editors/auto-task/basic-properties.vue +0 -81
- package/packages/workflow-editor/src/properties-editors/auto-task/permission-settings.vue +0 -155
- package/packages/workflow-editor/src/properties-editors/auto-task.vue +0 -74
- package/packages/workflow-editor/src/properties-editors/common/additional-condition-utils.js +0 -636
- package/packages/workflow-editor/src/properties-editors/common/additional-condition.vue +0 -300
- package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.js +0 -34
- package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields.vue +0 -268
- package/packages/workflow-editor/src/properties-editors/common/common-notice-tool.vue +0 -81
- package/packages/workflow-editor/src/properties-editors/common/common-user-condition.vue +0 -242
- package/packages/workflow-editor/src/properties-editors/common/form-fields-utils.js +0 -23
- package/packages/workflow-editor/src/properties-editors/common/form-fields.vue +0 -114
- package/packages/workflow-editor/src/properties-editors/common/i18n-input.vue +0 -90
- package/packages/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue +0 -143
- package/packages/workflow-editor/src/properties-editors/common/notice-reminder.vue +0 -144
- package/packages/workflow-editor/src/properties-editors/common/notice.vue +0 -108
- package/packages/workflow-editor/src/properties-editors/common/reminder.vue +0 -307
- package/packages/workflow-editor/src/properties-editors/common/select-mail-template.vue +0 -92
- package/packages/workflow-editor/src/properties-editors/common/standard-fields.vue +0 -66
- package/packages/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue +0 -354
- package/packages/workflow-editor/src/properties-editors/common/system-role-tree.vue +0 -68
- package/packages/workflow-editor/src/properties-editors/common/task-title.vue +0 -221
- package/packages/workflow-editor/src/properties-editors/common/transactor-settings.vue +0 -275
- package/packages/workflow-editor/src/properties-editors/common/user-selection.vue +0 -426
- package/packages/workflow-editor/src/properties-editors/common/value-selection-dialog.vue +0 -272
- package/packages/workflow-editor/src/properties-editors/common/variables.vue +0 -139
- package/packages/workflow-editor/src/properties-editors/copy-task/basic-properties.vue +0 -90
- package/packages/workflow-editor/src/properties-editors/copy-task/permission-settings.vue +0 -155
- package/packages/workflow-editor/src/properties-editors/copy-task.vue +0 -95
- package/packages/workflow-editor/src/properties-editors/decision.vue +0 -88
- package/packages/workflow-editor/src/properties-editors/fork.vue +0 -77
- package/packages/workflow-editor/src/properties-editors/human-decision.vue +0 -49
- package/packages/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue +0 -62
- package/packages/workflow-editor/src/properties-editors/human-task/basic-properties.vue +0 -184
- package/packages/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.js +0 -359
- package/packages/workflow-editor/src/properties-editors/human-task/custom-actions.vue +0 -256
- package/packages/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue +0 -405
- package/packages/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue +0 -257
- package/packages/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue +0 -430
- package/packages/workflow-editor/src/properties-editors/human-task/editable-fields.vue +0 -206
- package/packages/workflow-editor/src/properties-editors/human-task/events.vue +0 -60
- package/packages/workflow-editor/src/properties-editors/human-task/permission-settings.vue +0 -231
- package/packages/workflow-editor/src/properties-editors/human-task/selection-conditions.vue +0 -499
- package/packages/workflow-editor/src/properties-editors/human-task.vue +0 -107
- package/packages/workflow-editor/src/properties-editors/join.vue +0 -49
- package/packages/workflow-editor/src/properties-editors/process/basic-properties.vue +0 -336
- package/packages/workflow-editor/src/properties-editors/process/events.vue +0 -79
- package/packages/workflow-editor/src/properties-editors/process/notice-settings.vue +0 -68
- package/packages/workflow-editor/src/properties-editors/process/parameter-settings.vue +0 -106
- package/packages/workflow-editor/src/properties-editors/process/permission-settings.vue +0 -28
- package/packages/workflow-editor/src/properties-editors/process/selectPage.vue +0 -88
- package/packages/workflow-editor/src/properties-editors/process.vue +0 -118
- package/packages/workflow-editor/src/properties-editors/subprocess/basic-properties.vue +0 -201
- package/packages/workflow-editor/src/properties-editors/subprocess/events.vue +0 -26
- package/packages/workflow-editor/src/properties-editors/subprocess/field-mappings.vue +0 -216
- package/packages/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue +0 -66
- package/packages/workflow-editor/src/properties-editors/subprocess.vue +0 -80
- package/packages/workflow-editor/src/properties-editors/transition/basic-properties.vue +0 -53
- package/packages/workflow-editor/src/properties-editors/transition.vue +0 -75
- package/packages/workflow-editor/src/properties-editors/user-condition.js +0 -183
- package/packages/workflow-editor/src/store/getters.js +0 -33
- package/packages/workflow-editor/src/store/workflow-editor.js +0 -153
- package/packages/workflow-editor/src/taches/auto-task.vue +0 -99
- package/packages/workflow-editor/src/taches/common-methods.js +0 -21
- package/packages/workflow-editor/src/taches/copy-task.vue +0 -99
- package/packages/workflow-editor/src/taches/custom-task.vue +0 -88
- package/packages/workflow-editor/src/taches/decision.vue +0 -102
- package/packages/workflow-editor/src/taches/end.vue +0 -76
- package/packages/workflow-editor/src/taches/fork.vue +0 -102
- package/packages/workflow-editor/src/taches/human-decision.vue +0 -102
- package/packages/workflow-editor/src/taches/human-task.vue +0 -113
- package/packages/workflow-editor/src/taches/join.vue +0 -91
- package/packages/workflow-editor/src/taches/joint.vue +0 -177
- package/packages/workflow-editor/src/taches/start.vue +0 -76
- package/packages/workflow-editor/src/taches/subprocess.vue +0 -99
- package/packages/workflow-editor/src/taches/tache-resizer.vue +0 -80
- package/packages/workflow-editor/src/transitions/broken-line.vue +0 -91
- package/packages/workflow-editor/src/transitions/curve-line.vue +0 -91
- package/packages/workflow-editor/src/transitions/straight-line.vue +0 -26
- package/packages/workflow-editor/src/transitions/transition.vue +0 -229
- package/packages/workflow-editor/src/transitions/virtual-transition.vue +0 -43
- package/packages/workflow-editor/src/util.js +0 -499
- package/packages/workflow-editor/src/workflow-editor.vue +0 -869
- package/packages/workflow-editor/src/workflow-history.vue +0 -153
- package/public/vite.svg +0 -1
- package/src/i18n/i18n.js +0 -16
- package/src/i18n/langs/cn.js +0 -526
- package/src/i18n/langs/en.js +0 -534
- package/vite.config.js +0 -36
- /package/{lib → es}/vite.svg +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { mapGetters as e, mapMutations as t } from "vuex";
|
|
2
|
+
import o from "./joint.vue.mjs";
|
|
3
|
+
import i from "./common-methods.mjs";
|
|
4
|
+
import { watchShowName as n } from "../util.mjs";
|
|
5
|
+
import { resolveComponent as s, openBlock as m, createElementBlock as d, withModifiers as r, createElementVNode as l, normalizeClass as h, toDisplayString as a, Fragment as u, renderList as c, createBlock as p } from "vue";
|
|
6
|
+
import "./human-decision.vue2.mjs";
|
|
7
|
+
import x from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
|
+
const g = { name: "HumanDecision", components: { Joint: o }, props: { model: { type: Object, default: null } }, data() {
|
|
9
|
+
return { jointPoints: [], name: this.model.name };
|
|
10
|
+
}, computed: { ...e("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
11
|
+
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height + 12 };
|
|
12
|
+
} }, created() {
|
|
13
|
+
this.name = n(this, this.name);
|
|
14
|
+
}, mounted() {
|
|
15
|
+
this.$watch("model.name", function(e2) {
|
|
16
|
+
this.name = n(this, e2);
|
|
17
|
+
});
|
|
18
|
+
}, methods: { ...t("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...i } }, f = ["width", "height", "x", "y"], y = ["x", "y", "width", "height"], w = ["x", "y"];
|
|
19
|
+
const j = x(g, [["render", function(e2, t2, o2, i2, n2, x2) {
|
|
20
|
+
const g2 = s("joint");
|
|
21
|
+
return m(), d("g", { onMousedown: t2[0] || (t2[0] = r((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = r((t3) => e2.setPropertiesEditorFor("HumanDecision"), ["stop"])) }, [l("rect", { width: o2.model.width, height: o2.model.height, class: h({ draggable: true, "human-decision": !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, f), l("use", { "xlink:href": "#icon-human-decision", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#999", class: "draggable" }, null, 8, y), l("text", { x: x2.text.x, y: x2.text.y, "text-anchor": "middle", class: "draggable" }, a(n2.name), 9, w), (m(true), d(u, null, c(n2.jointPoints, (e3) => (m(), p(g2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
22
|
+
}]]);
|
|
23
|
+
export {
|
|
24
|
+
j as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { mapGetters as e, mapMutations as t } from "vuex";
|
|
2
|
+
import o from "./joint.vue.mjs";
|
|
3
|
+
import s from "./tache-resizer.vue.mjs";
|
|
4
|
+
import i from "./common-methods.mjs";
|
|
5
|
+
import { watchShowName as r } from "../util.mjs";
|
|
6
|
+
import { resolveComponent as n, openBlock as m, createElementBlock as l, withModifiers as a, createElementVNode as d, normalizeClass as h, toDisplayString as u, Fragment as p, renderList as c, createBlock as x } from "vue";
|
|
7
|
+
import f from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
|
+
const g = { name: "HumanTask", components: { Joint: o, TacheResizer: s }, props: { model: { type: Object, default: null } }, data() {
|
|
9
|
+
return { jointPoints: [], resizers: ["NW", "NE", "SW", "SE"], name: this.model.name };
|
|
10
|
+
}, computed: { ...e("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
11
|
+
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
|
|
12
|
+
} }, created() {
|
|
13
|
+
this.name = r(this, this.name);
|
|
14
|
+
}, mounted() {
|
|
15
|
+
this.$watch("model.name", function(e2) {
|
|
16
|
+
this.name = r(this, e2);
|
|
17
|
+
});
|
|
18
|
+
}, methods: { ...t("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...i } }, w = ["width", "height", "x", "y"], y = ["x", "y"];
|
|
19
|
+
const j = f(g, [["render", function(e2, t2, o2, s2, i2, r2) {
|
|
20
|
+
const f2 = n("joint"), g2 = n("tache-resizer");
|
|
21
|
+
return m(), l("g", { onMousedown: t2[0] || (t2[0] = a((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = a((t3) => e2.setPropertiesEditorFor("HumanTask"), ["stop"])) }, [d("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: h(["draggable", "task-tache", { selected: o2.model.isSelected }]), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, w), d("text", { x: r2.text.x, y: r2.text.y, "text-anchor": "middle", class: "draggable" }, u(i2.name), 9, y), (m(true), l(p, null, c(i2.jointPoints, (e3) => (m(), x(f2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128)), (m(true), l(p, null, c(i2.resizers, (e3) => (m(), x(g2, { key: e3, owner: o2.model, position: e3 }, null, 8, ["owner", "position"]))), 128))], 32);
|
|
22
|
+
}]]);
|
|
23
|
+
export {
|
|
24
|
+
j as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { mapGetters as e, mapMutations as t } from "vuex";
|
|
2
|
+
import o from "./joint.vue.mjs";
|
|
3
|
+
import i from "./common-methods.mjs";
|
|
4
|
+
import { resolveComponent as n, openBlock as s, createElementBlock as d, withModifiers as l, createElementVNode as r, normalizeClass as m, toDisplayString as h, Fragment as a, renderList as u, createBlock as p } from "vue";
|
|
5
|
+
import "./join.vue2.mjs";
|
|
6
|
+
import c from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
+
const x = { name: "Join", components: { Joint: o }, props: { model: { type: Object, default: null } }, data: () => ({ jointPoints: [] }), computed: { ...e("wfEditor", ["selectedTaches"]), text() {
|
|
8
|
+
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height + 12 };
|
|
9
|
+
} }, methods: { ...t("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...i } }, g = ["width", "height", "x", "y"], y = ["x", "y", "width", "height"], f = ["x", "y"];
|
|
10
|
+
const w = c(x, [["render", function(e2, t2, o2, i2, c2, x2) {
|
|
11
|
+
const w2 = n("joint");
|
|
12
|
+
return s(), d("g", { onMousedown: t2[0] || (t2[0] = l((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = l((t3) => e2.setPropertiesEditorFor("Join"), ["stop"])) }, [r("rect", { width: o2.model.width, height: o2.model.height, class: m({ draggable: true, decision: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, g), r("use", { "xlink:href": "#icon-join", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#999", class: "draggable" }, null, 8, y), r("text", { x: x2.text.x, y: x2.text.y, "text-anchor": "middle", class: "draggable" }, h(o2.model.name), 9, f), (s(true), d(a, null, u(c2.jointPoints, (e3) => (s(), p(w2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
13
|
+
}]]);
|
|
14
|
+
export {
|
|
15
|
+
w as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { mapGetters as t, mapMutations as i } from "vuex";
|
|
2
|
+
import { getJoint as e, findOutgoingTransitionsByTacheId as n, processTemplate as o } from "../util.mjs";
|
|
3
|
+
import { openBlock as r, createElementBlock as s, withModifiers as a, createElementVNode as d, normalizeClass as p, withDirectives as h, vShow as l } from "vue";
|
|
4
|
+
import "./joint.vue2.mjs";
|
|
5
|
+
import u from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
+
const g = { name: "Joint", props: { parent: { type: Object, default: null }, position: { type: String, default: null } }, data: () => ({ isActivated: false }), computed: { ...t("wfEditor", ["transitions", "startJoint", "endJoint", "draggerToMove"]), joint() {
|
|
7
|
+
return e(this.parent, this.position);
|
|
8
|
+
}, jointContainer() {
|
|
9
|
+
return { x: this.joint.x - 10, y: this.joint.y - 10 };
|
|
10
|
+
} }, methods: { ...i("wfEditor", ["setStartJoint", "setEndJoint", "stopDrawingLine", "setDraggerToMove", "setContextMenuVisible"]), isValidTransition(t2, i2) {
|
|
11
|
+
if (!t2)
|
|
12
|
+
return false;
|
|
13
|
+
if (t2.parent === i2.parent)
|
|
14
|
+
return this.$alert(this.$t("workflowEditorMessage.theStartAndEndOfTheFlowDirectionCannotBeTheSame")), false;
|
|
15
|
+
if ("Decision" !== t2.parent.type && "Fork" !== t2.parent.type && "HumanDecision" !== t2.parent.type) {
|
|
16
|
+
let i3 = 0;
|
|
17
|
+
this.draggerToMove && (i3 = 1);
|
|
18
|
+
if (n(t2.parent.id).length > i3)
|
|
19
|
+
return this.$alert(this.$t("workflowEditorMessage.onlyConditionJudgmentBranchAndManualJudgmentCanHaveMultipleOutboundFlows")), false;
|
|
20
|
+
}
|
|
21
|
+
return "Start" === t2.parent.type && "End" === i2.parent.type ? (this.$alert(this.$t("workflowEditorMessage.startAndEndNodesCannotBeConnectedDirectly")), false) : "End" !== t2.parent.type || (this.$alert(this.$t("workflowEditorMessage.endNodeCannotHaveOutFlowDirection")), false);
|
|
22
|
+
}, mouseup() {
|
|
23
|
+
if (this.draggerToMove) {
|
|
24
|
+
const t2 = this.draggerToMove.position, i2 = { parent: this.parent, position: this.position };
|
|
25
|
+
if ("start" === t2 ? this.draggerToMove.owner.startJoint = i2 : this.draggerToMove.owner.endJoint = i2, this.isValidTransition(this.draggerToMove.owner.startJoint, this.draggerToMove.owner.endJoint)) {
|
|
26
|
+
const t3 = this.draggerToMove.owner;
|
|
27
|
+
t3.id = "flow_" + t3.startJoint.parent.id + "_to_" + t3.endJoint.parent.id, t3.ref.attr = { id: t3.id, from: t3.startJoint.parent.id, to: t3.endJoint.parent.id };
|
|
28
|
+
} else
|
|
29
|
+
this.draggerToMove.owner.startJoint = this.draggerToMove.originStartJoint, this.draggerToMove.owner.endJoint = this.draggerToMove.originEndJoint;
|
|
30
|
+
this.setDraggerToMove(null);
|
|
31
|
+
} else
|
|
32
|
+
this.addTransition();
|
|
33
|
+
}, addTransition() {
|
|
34
|
+
const t2 = { parent: this.parent, position: this.position };
|
|
35
|
+
if (this.isValidTransition(this.startJoint, t2)) {
|
|
36
|
+
this.setEndJoint(t2);
|
|
37
|
+
const i2 = { id: "flow_" + this.startJoint.parent.id + "_to_" + this.endJoint.parent.id, startJoint: this.startJoint, endJoint: this.endJoint, isSelected: false, lineInfo: { type: "StraightLine", controlPoint: null } };
|
|
38
|
+
i2.ref = o.newTransition(), i2.ref.attr = { id: i2.id, from: this.startJoint.parent.id, to: this.endJoint.parent.id }, this.transitions.push(i2);
|
|
39
|
+
}
|
|
40
|
+
this.stopDrawingLine();
|
|
41
|
+
}, enterJoint() {
|
|
42
|
+
this.isActivated = true, this.$emit("enter-joint");
|
|
43
|
+
}, leaveJoint() {
|
|
44
|
+
this.isActivated = false, this.$emit("leave-joint");
|
|
45
|
+
} } }, J = ["x", "y"], c = ["cx", "cy"];
|
|
46
|
+
const v = u(g, [["render", function(t2, i2, e2, n2, o2, u2) {
|
|
47
|
+
return r(), s("g", { onMousedown: i2[4] || (i2[4] = a(() => {
|
|
48
|
+
}, ["stop"])) }, [d("rect", { x: u2.jointContainer.x, y: u2.jointContainer.y, class: p({ "joint-container": true, "joint-activated": o2.isActivated }), width: "20", height: "20", rx: "3", ry: "3", onMousemove: i2[0] || (i2[0] = a((...t3) => u2.enterJoint && u2.enterJoint(...t3), ["stop"])), onMouseout: i2[1] || (i2[1] = a((...t3) => u2.leaveJoint && u2.leaveJoint(...t3), ["stop"])), onMousedown: i2[2] || (i2[2] = a((i3) => {
|
|
49
|
+
t2.setContextMenuVisible(false), t2.setStartJoint({ parent: e2.parent, position: e2.position });
|
|
50
|
+
}, ["stop"])), onMouseup: i2[3] || (i2[3] = (...t3) => u2.mouseup && u2.mouseup(...t3)) }, null, 42, J), h(d("circle", { cx: u2.joint.x, cy: u2.joint.y, r: "3", class: "joint" }, null, 8, c), [[l, !o2.isActivated]])], 32);
|
|
51
|
+
}]]);
|
|
52
|
+
export {
|
|
53
|
+
v as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { mapGetters as e, mapMutations as t } from "vuex";
|
|
2
|
+
import o from "./joint.vue.mjs";
|
|
3
|
+
import i from "./common-methods.mjs";
|
|
4
|
+
import { resolveComponent as r, openBlock as s, createElementBlock as n, withModifiers as l, createElementVNode as d, normalizeClass as m, Fragment as a, renderList as h, createBlock as p } from "vue";
|
|
5
|
+
import "./start.vue2.mjs";
|
|
6
|
+
import u from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
7
|
+
const c = { name: "Start", components: { Joint: o }, props: { model: { type: Object, default: null } }, data: () => ({ jointPoints: [] }), computed: { ...e("wfEditor", ["selectedTaches"]) }, methods: { ...t("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...i } }, g = ["width", "height", "x", "y"], f = ["x", "y", "width", "height"];
|
|
8
|
+
const x = u(c, [["render", function(e2, t2, o2, i2, u2, c2) {
|
|
9
|
+
const x2 = r("joint");
|
|
10
|
+
return s(), n("g", { onMousedown: t2[0] || (t2[0] = l((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = l((t3) => e2.setPropertiesEditorFor(""), ["stop"])) }, [d("rect", { width: o2.model.width, height: o2.model.height, class: m({ draggable: true, start: !o2.model.isSelected, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, g), d("use", { "xlink:href": "#icon-start", x: o2.model.x, y: o2.model.y, width: o2.model.width, height: o2.model.height, fill: "#67C23A", class: "draggable" }, null, 8, f), (s(true), n(a, null, h(u2.jointPoints, (e3) => (s(), p(x2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128))], 32);
|
|
11
|
+
}]]);
|
|
12
|
+
export {
|
|
13
|
+
x as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { mapGetters as e, mapMutations as t } from "vuex";
|
|
2
|
+
import o from "./joint.vue.mjs";
|
|
3
|
+
import s from "./tache-resizer.vue.mjs";
|
|
4
|
+
import i from "./common-methods.mjs";
|
|
5
|
+
import { watchShowName as r } from "../util.mjs";
|
|
6
|
+
import { resolveComponent as n, openBlock as m, createElementBlock as l, withModifiers as d, createElementVNode as a, normalizeClass as h, toDisplayString as u, Fragment as p, renderList as c, createBlock as x } from "vue";
|
|
7
|
+
import f from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
|
+
const g = { name: "Subprocess", components: { Joint: o, TacheResizer: s }, props: { model: { type: Object, default: null } }, data() {
|
|
9
|
+
return { jointPoints: [], resizers: ["NW", "NE", "SW", "SE"], name: this.model.name };
|
|
10
|
+
}, computed: { ...e("wfEditor", ["selectedTaches", "processI18n"]), text() {
|
|
11
|
+
return { x: this.model.x + this.model.width / 2, y: this.model.y + this.model.height / 2 };
|
|
12
|
+
} }, created() {
|
|
13
|
+
this.name = r(this, this.name);
|
|
14
|
+
}, mounted() {
|
|
15
|
+
this.$watch("model.name", function(e2) {
|
|
16
|
+
this.name = r(this, e2);
|
|
17
|
+
});
|
|
18
|
+
}, methods: { ...t("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible"]), ...i } }, w = ["width", "height", "x", "y"], y = ["x", "y"];
|
|
19
|
+
const j = f(g, [["render", function(e2, t2, o2, s2, i2, r2) {
|
|
20
|
+
const f2 = n("joint"), g2 = n("tache-resizer");
|
|
21
|
+
return m(), l("g", { onMousedown: t2[0] || (t2[0] = d((...t3) => e2.startDrag && e2.startDrag(...t3), ["stop"])), onMouseup: t2[1] || (t2[1] = (...t3) => e2.endDrag && e2.endDrag(...t3)), onMouseenter: t2[2] || (t2[2] = (...t3) => e2.showJoints && e2.showJoints(...t3)), onMouseleave: t2[3] || (t2[3] = (...t3) => e2.hideJoints && e2.hideJoints(...t3)), onDblclick: t2[4] || (t2[4] = d((t3) => e2.setPropertiesEditorFor("Subprocess"), ["stop"])) }, [a("rect", { ref: "tache", width: o2.model.width, height: o2.model.height, class: h({ draggable: true, "task-tache": true, selected: o2.model.isSelected }), x: o2.model.x, y: o2.model.y, rx: "6", ry: "6" }, null, 10, w), a("text", { x: r2.text.x, y: r2.text.y, "text-anchor": "middle", class: "draggable" }, u(i2.name), 9, y), (m(true), l(p, null, c(i2.jointPoints, (e3) => (m(), x(f2, { key: e3, parent: o2.model, position: e3 }, null, 8, ["parent", "position"]))), 128)), (m(true), l(p, null, c(i2.resizers, (e3) => (m(), x(g2, { key: e3, owner: o2.model, position: e3 }, null, 8, ["owner", "position"]))), 128))], 32);
|
|
22
|
+
}]]);
|
|
23
|
+
export {
|
|
24
|
+
j as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { mapGetters as e, mapMutations as t } from "vuex";
|
|
2
|
+
import { openBlock as o, createElementBlock as r, normalizeStyle as s, withModifiers as i, createCommentVNode as n } from "vue";
|
|
3
|
+
import "./tache-resizer.vue2.mjs";
|
|
4
|
+
import h from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
+
const a = { name: "TacheResizer", props: { owner: { type: Object, default: null }, position: { type: String, default: "" } }, computed: { ...e("wfEditor", ["selectedTaches"]), area() {
|
|
6
|
+
let e2, t2;
|
|
7
|
+
switch (this.position) {
|
|
8
|
+
case "NW":
|
|
9
|
+
e2 = this.owner.x, t2 = this.owner.y;
|
|
10
|
+
break;
|
|
11
|
+
case "NE":
|
|
12
|
+
e2 = this.owner.x + this.owner.width, t2 = this.owner.y;
|
|
13
|
+
break;
|
|
14
|
+
case "SW":
|
|
15
|
+
e2 = this.owner.x, t2 = this.owner.y + this.owner.height;
|
|
16
|
+
break;
|
|
17
|
+
case "SE":
|
|
18
|
+
e2 = this.owner.x + this.owner.width, t2 = this.owner.y + this.owner.height;
|
|
19
|
+
}
|
|
20
|
+
e2 -= 4, t2 -= 4;
|
|
21
|
+
return { x: e2, y: t2, width: 8, height: 8, cursor: this.position.toLowerCase() + "-resize" };
|
|
22
|
+
} }, methods: { ...t("wfEditor", ["setMovingResizer", "setResizerToMove", "setContextMenuVisible"]) } }, w = ["x", "y", "width", "height"];
|
|
23
|
+
const u = h(a, [["render", function(e2, t2, h2, a2, u2, c) {
|
|
24
|
+
return h2.owner.isSelected && 1 == e2.selectedTaches.length ? (o(), r("rect", { key: 0, x: c.area.x, y: c.area.y, width: c.area.width, height: c.area.height, style: s({ cursor: c.area.cursor }), class: "resizer", onMousedown: t2[0] || (t2[0] = i((t3) => {
|
|
25
|
+
e2.setContextMenuVisible(false), e2.setResizerToMove({ owner: h2.owner, position: h2.position });
|
|
26
|
+
}, ["stop"])), onMouseup: t2[1] || (t2[1] = i((t3) => e2.setResizerToMove(null), ["stop"])) }, null, 44, w)) : n("", true);
|
|
27
|
+
}]]);
|
|
28
|
+
export {
|
|
29
|
+
u as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { getJoint as t } from "../util.mjs";
|
|
2
|
+
import { mapMutations as o } from "vuex";
|
|
3
|
+
import { openBlock as n, createElementBlock as r, createElementVNode as e, Fragment as i, renderList as s, withModifiers as l, createCommentVNode as a } from "vue";
|
|
4
|
+
import "./broken-line.vue2.mjs";
|
|
5
|
+
import h from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
+
const c = { name: "BrokenLine", props: { owner: { type: Object, default: null } }, computed: { startPoint() {
|
|
7
|
+
return t(this.owner.startJoint.parent, this.owner.startJoint.position);
|
|
8
|
+
}, endPoint() {
|
|
9
|
+
return t(this.owner.endJoint.parent, this.owner.endJoint.position);
|
|
10
|
+
}, controlPoint() {
|
|
11
|
+
return this.owner.lineInfo.controlPoint;
|
|
12
|
+
}, path() {
|
|
13
|
+
let t2 = "M " + this.startPoint.x + " " + this.startPoint.y + " ";
|
|
14
|
+
return this.controlPoint && this.controlPoint.forEach((o2) => {
|
|
15
|
+
t2 += "L " + o2.x + " " + o2.y;
|
|
16
|
+
}), t2 += "L " + this.endPoint.x + " " + this.endPoint.y, t2;
|
|
17
|
+
} }, created: function() {
|
|
18
|
+
if (this.owner.lineInfo, !this.owner.lineInfo.controlPoint) {
|
|
19
|
+
const t2 = this.startPoint.x + (this.endPoint.x - this.startPoint.x) / 2, o2 = this.startPoint.y + (this.endPoint.y - this.startPoint.y) / 2;
|
|
20
|
+
this.owner.lineInfo.controlPoint = [{ x: t2, y: o2 }];
|
|
21
|
+
}
|
|
22
|
+
}, methods: { ...o("wfEditor", ["setControlPointToMove"]), startDrag(t2, o2) {
|
|
23
|
+
this.setControlPointToMove({ owner: this.owner, pointIndex: t2 });
|
|
24
|
+
}, endDrag() {
|
|
25
|
+
this.setControlPointToMove(null);
|
|
26
|
+
} } }, u = ["d"], d = ["cx", "cy", "onMousedown"];
|
|
27
|
+
const p = h(c, [["render", function(t2, o2, h2, c2, p2, P) {
|
|
28
|
+
return n(), r("g", null, [e("path", { d: P.path, "marker-end": "url(#arrow)" }, null, 8, u), h2.owner.isSelected ? (n(), r(i, { key: 0 }, [P.controlPoint ? (n(true), r(i, { key: 0 }, s(P.controlPoint, (t3, e2) => (n(), r("circle", { key: t3.x + t3.y, cx: t3.x, cy: t3.y, r: "3", class: "control-point", onMousedown: l((t4) => P.startDrag(e2, t4), ["stop"]), onMouseup: o2[0] || (o2[0] = l((...t4) => P.endDrag && P.endDrag(...t4), ["stop"])) }, null, 40, d))), 128)) : a("", true)], 64)) : a("", true)]);
|
|
29
|
+
}], ["__scopeId", "data-v-788fb0ae"]]);
|
|
30
|
+
export {
|
|
31
|
+
p as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { getJoint as t } from "../util.mjs";
|
|
2
|
+
import { mapMutations as o } from "vuex";
|
|
3
|
+
import { openBlock as n, createElementBlock as i, createElementVNode as r, Fragment as e, withModifiers as s, createCommentVNode as l } from "vue";
|
|
4
|
+
import "./curve-line.vue2.mjs";
|
|
5
|
+
import a from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
+
const h = { name: "CurveLine", props: { owner: { type: Object, default: null } }, computed: { startPoint() {
|
|
7
|
+
return t(this.owner.startJoint.parent, this.owner.startJoint.position);
|
|
8
|
+
}, endPoint() {
|
|
9
|
+
return t(this.owner.endJoint.parent, this.owner.endJoint.position);
|
|
10
|
+
}, controlPoint() {
|
|
11
|
+
return this.owner.lineInfo.controlPoint;
|
|
12
|
+
}, path() {
|
|
13
|
+
return "M " + this.startPoint.x + " " + this.startPoint.y + " Q " + this.controlPoint.x + " " + this.controlPoint.y + " " + this.endPoint.x + " " + this.endPoint.y;
|
|
14
|
+
}, pathToStartPoint() {
|
|
15
|
+
return "M " + this.controlPoint.x + " " + this.controlPoint.y + "L " + this.startPoint.x + " " + this.startPoint.y;
|
|
16
|
+
}, pathToEndPoint() {
|
|
17
|
+
return "M " + this.controlPoint.x + " " + this.controlPoint.y + "L " + this.endPoint.x + " " + this.endPoint.y;
|
|
18
|
+
} }, created: function() {
|
|
19
|
+
if (!this.owner.lineInfo.controlPoint) {
|
|
20
|
+
let t2 = this.startPoint.x + (this.endPoint.x - this.startPoint.x) / 2;
|
|
21
|
+
(t2 + 10 < this.startPoint.x || t2 < this.startPoint.x + 10) && (t2 = this.startPoint.x + 30), this.owner.lineInfo.controlPoint = { x: t2, y: this.endPoint.y };
|
|
22
|
+
}
|
|
23
|
+
}, methods: { ...o("wfEditor", ["setControlPointToMove"]), startDrag(t2) {
|
|
24
|
+
this.setControlPointToMove({ owner: this.owner });
|
|
25
|
+
}, endDrag() {
|
|
26
|
+
this.setControlPointToMove(null);
|
|
27
|
+
} } }, P = ["d"], c = ["d"], d = ["d"], u = ["cx", "cy"];
|
|
28
|
+
const p = a(h, [["render", function(t2, o2, a2, h2, p2, x) {
|
|
29
|
+
return n(), i("g", null, [r("path", { d: x.path, "marker-end": "url(#arrow)" }, null, 8, P), a2.owner.isSelected ? (n(), i(e, { key: 0 }, [r("path", { d: x.pathToStartPoint, class: "control-line" }, null, 8, c), r("path", { d: x.pathToEndPoint, class: "control-line" }, null, 8, d), r("circle", { cx: x.controlPoint.x, cy: x.controlPoint.y, r: "3", class: "control-point", onMousedown: o2[0] || (o2[0] = s((...t3) => x.startDrag && x.startDrag(...t3), ["stop"])), onMouseup: o2[1] || (o2[1] = s((...t3) => x.endDrag && x.endDrag(...t3), ["stop"])) }, null, 40, u)], 64)) : l("", true)]);
|
|
30
|
+
}], ["__scopeId", "data-v-0ff53a0a"]]);
|
|
31
|
+
export {
|
|
32
|
+
p as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { getJoint as t } from "../util.mjs";
|
|
2
|
+
import { openBlock as r, createElementBlock as n } from "vue";
|
|
3
|
+
import e from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const o = ["d"];
|
|
5
|
+
const i = e({ name: "StraightLine", props: { owner: { type: Object, default: null } }, computed: { path() {
|
|
6
|
+
const r2 = t(this.owner.startJoint.parent, this.owner.startJoint.position), n2 = t(this.owner.endJoint.parent, this.owner.endJoint.position);
|
|
7
|
+
return "M" + r2.x + " " + r2.y + " L" + n2.x + " " + n2.y;
|
|
8
|
+
} } }, [["render", function(t2, e2, i2, p, a, s) {
|
|
9
|
+
return r(), n("path", { d: s.path, "marker-end": "url(#arrow)" }, null, 8, o);
|
|
10
|
+
}]]);
|
|
11
|
+
export {
|
|
12
|
+
i as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { getJoint as t, watchShowName as e, clearAllSelectedComponents as o, getMousePosition as i, findTacheById as n } from "../util.mjs";
|
|
2
|
+
import { mapGetters as s, mapMutations as r } from "vuex";
|
|
3
|
+
import a from "./straight-line.vue.mjs";
|
|
4
|
+
import l from "./curve-line.vue.mjs";
|
|
5
|
+
import d from "./broken-line.vue.mjs";
|
|
6
|
+
import { openBlock as h, createElementBlock as m, normalizeClass as x, withModifiers as c, createElementVNode as p, toDisplayString as y, createBlock as g, resolveDynamicComponent as u, Fragment as f, renderList as P, createCommentVNode as w } from "vue";
|
|
7
|
+
import "./transition.vue2.mjs";
|
|
8
|
+
import J from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
9
|
+
const T = { name: "Transition", components: { StraightLine: a, CurveLine: l, BrokenLine: d }, props: { model: { type: Object, default: null } }, data() {
|
|
10
|
+
const t2 = this.getTextPoint();
|
|
11
|
+
return { text: { x: t2.x, y: t2.y }, name: this.model.remark };
|
|
12
|
+
}, computed: { ...s("wfEditor", ["draggerToMove", "processI18n"]), draggers() {
|
|
13
|
+
const e2 = t(this.model.startJoint.parent, this.model.startJoint.position);
|
|
14
|
+
e2.position = "start";
|
|
15
|
+
const o2 = t(this.model.endJoint.parent, this.model.endJoint.position);
|
|
16
|
+
return o2.position = "end", [e2, o2];
|
|
17
|
+
}, path() {
|
|
18
|
+
return "M" + this.draggers[0].x + " " + this.draggers[0].y + " L" + this.draggers[1].x + " " + this.draggers[1].y;
|
|
19
|
+
} }, created() {
|
|
20
|
+
this.name = e(this, this.name);
|
|
21
|
+
}, mounted() {
|
|
22
|
+
this.$watch("model.remark", function(t2) {
|
|
23
|
+
if (this.name = e(this, t2), this.name && "" !== this.name) {
|
|
24
|
+
const t3 = this.getTextPoint();
|
|
25
|
+
this.text.x = t3.x, this.text.y = t3.y;
|
|
26
|
+
}
|
|
27
|
+
}), this.$watch("model.lineInfo.type", function(t2) {
|
|
28
|
+
const e2 = this.getTextPoint();
|
|
29
|
+
this.text.x = e2.x, this.text.y = e2.y;
|
|
30
|
+
}), this.$watch("model.lineInfo.controlPoint", function(t2) {
|
|
31
|
+
const e2 = this.getTextPoint();
|
|
32
|
+
this.text.x = e2.x, this.text.y = e2.y;
|
|
33
|
+
}), this.$watch("model.startJoint.parent.x", function(t2) {
|
|
34
|
+
const e2 = this.getTextPoint();
|
|
35
|
+
this.text.x = e2.x, this.text.y = e2.y;
|
|
36
|
+
}), this.$watch("model.startJoint.parent.y", function(t2) {
|
|
37
|
+
const e2 = this.getTextPoint();
|
|
38
|
+
this.text.x = e2.x, this.text.y = e2.y;
|
|
39
|
+
}), this.$watch("model.endJoint.parent.x", function(t2) {
|
|
40
|
+
const e2 = this.getTextPoint();
|
|
41
|
+
this.text.x = e2.x, this.text.y = e2.y;
|
|
42
|
+
}), this.$watch("model.endJoint.parent.y", function(t2) {
|
|
43
|
+
const e2 = this.getTextPoint();
|
|
44
|
+
this.text.x = e2.x, this.text.y = e2.y;
|
|
45
|
+
});
|
|
46
|
+
}, methods: { ...r("wfEditor", ["setMouseDownPosition", "setDraggerToMove", "setSelectedTransition", "setPropertiesEditorFor"]), getTextPoint() {
|
|
47
|
+
const e2 = t(this.model.startJoint.parent, this.model.startJoint.position), o2 = t(this.model.endJoint.parent, this.model.endJoint.position);
|
|
48
|
+
let i2 = e2.x < o2.x ? e2.x : o2.x, n2 = e2.y < o2.y ? e2.y : o2.y, s2 = i2 + Math.abs(e2.x - o2.x) / 2, r2 = n2 + Math.abs(e2.y - o2.y) / 2;
|
|
49
|
+
if ("CurveLine" === this.model.lineInfo.type) {
|
|
50
|
+
const t2 = this.model.lineInfo.controlPoint;
|
|
51
|
+
t2 && (i2 = e2.x < t2.x ? e2.x : parseFloat(t2.x), n2 = e2.y < t2.y ? e2.y : parseFloat(t2.y), s2 = i2 + Math.abs(e2.x - t2.x) / 2 + 10, r2 = n2 + Math.abs(e2.y - t2.y) / 2 - 10);
|
|
52
|
+
} else if ("BrokenLine" === this.model.lineInfo.type && this.model.lineInfo.controlPoint && this.model.lineInfo.controlPoint.length > 0) {
|
|
53
|
+
const t2 = this.model.lineInfo.controlPoint[0];
|
|
54
|
+
t2 && (i2 = e2.x < t2.x ? e2.x : parseFloat(t2.x), n2 = e2.y < t2.y ? e2.y : parseFloat(t2.y), s2 = i2 + Math.abs(e2.x - t2.x) / 2, r2 = n2 + Math.abs(e2.y - t2.y) / 2 - 10);
|
|
55
|
+
}
|
|
56
|
+
return { x: s2, y: r2 };
|
|
57
|
+
}, select(t2) {
|
|
58
|
+
o(), this.model.isSelected = true, this.setSelectedTransition(this.model);
|
|
59
|
+
}, startDrag(t2, e2) {
|
|
60
|
+
this.setMouseDownPosition(i(t2)), this.setDraggerToMove({ owner: this.model, position: e2, originStartJoint: this.model.startJoint, originEndJoint: this.model.endJoint });
|
|
61
|
+
}, endDrag() {
|
|
62
|
+
}, showPropertiesEditor() {
|
|
63
|
+
if (this.model.ref.attr.from && this.model.ref.attr.to) {
|
|
64
|
+
const t2 = n(this.model.ref.attr.from), e2 = n(this.model.ref.attr.to);
|
|
65
|
+
if (t2 && "HumanTask" === t2.type && e2 && "Decision" === e2.type)
|
|
66
|
+
return;
|
|
67
|
+
if (t2 && "Decision" === t2.type && e2 && "Decision" === e2.type)
|
|
68
|
+
return void this.setPropertiesEditorFor("Transition");
|
|
69
|
+
}
|
|
70
|
+
"Decision" !== this.model.endJoint.parent.type && this.setPropertiesEditorFor("Transition");
|
|
71
|
+
} } }, v = ["x", "y"], M = { key: 0 }, D = ["cx", "cy", "onMousedown"];
|
|
72
|
+
const I = J(T, [["render", function(t2, e2, o2, i2, n2, s2) {
|
|
73
|
+
return h(), m("g", { class: x({ "no-events": null != t2.draggerToMove }), onMousedown: e2[1] || (e2[1] = c((...t3) => s2.select && s2.select(...t3), ["stop"])), onDblclick: e2[2] || (e2[2] = c((...t3) => s2.showPropertiesEditor && s2.showPropertiesEditor(...t3), ["stop"])) }, [p("text", { x: n2.text.x, y: n2.text.y, "text-anchor": "middle", class: "draggable" }, y(n2.name), 9, v), (h(), g(u(o2.model.lineInfo.type), { owner: o2.model, class: x({ transition: true, selected: o2.model.isSelected || o2.model.startJoint.parent.isSelected && o2.model.endJoint.parent.isSelected }) }, null, 8, ["owner", "class"])), o2.model.isSelected ? (h(), m("g", M, [(h(true), m(f, null, P(s2.draggers, (t3) => (h(), m("circle", { key: t3.position, cx: t3.x, cy: t3.y, class: "transition-dragger", r: "4", onMousedown: c((e3) => s2.startDrag(e3, t3.position), ["stop"]), onMouseup: e2[0] || (e2[0] = (...t4) => s2.endDrag && s2.endDrag(...t4)) }, null, 40, D))), 128))])) : w("", true)], 34);
|
|
74
|
+
}], ["__scopeId", "data-v-893fde7e"]]);
|
|
75
|
+
export {
|
|
76
|
+
I as default
|
|
77
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getJoint as t } from "../util.mjs";
|
|
2
|
+
import { mapGetters as r } from "vuex";
|
|
3
|
+
import { openBlock as o, createElementBlock as i, withDirectives as n, createElementVNode as s, vShow as a } from "vue";
|
|
4
|
+
import "./virtual-transition.vue2.mjs";
|
|
5
|
+
import e from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
6
|
+
const u = { name: "VirtualTransition", props: { toPosition: { type: Object, default: null } }, computed: { ...r("wfEditor", ["startJoint"]), path() {
|
|
7
|
+
if (!this.startJoint)
|
|
8
|
+
return null;
|
|
9
|
+
const r2 = t(this.startJoint.parent, this.startJoint.position), o2 = this.toPosition;
|
|
10
|
+
return "M" + r2.x + " " + r2.y + " L" + o2.x + " " + o2.y;
|
|
11
|
+
} }, methods: {} }, l = ["d"];
|
|
12
|
+
const p = e(u, [["render", function(t2, r2, e2, u2, p2, m) {
|
|
13
|
+
return o(), i("g", null, [n(s("path", { d: m.path, class: "virtual-transition", "marker-end": "url(#arrow)" }, null, 8, l), [[a, m.path]])]);
|
|
14
|
+
}]]);
|
|
15
|
+
export {
|
|
16
|
+
p as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { getLanguageWithLocale as t } from "agilebuilder-ui";
|
|
2
|
+
import o from "../../src/i18n/i18n.mjs";
|
|
3
|
+
import e from "./json-object-templates/auto-task.mjs";
|
|
4
|
+
import n from "./json-object-templates/copy-task.mjs";
|
|
5
|
+
import i from "./json-object-templates/decision.mjs";
|
|
6
|
+
import r from "./json-object-templates/end.mjs";
|
|
7
|
+
import s from "./json-object-templates/fork.mjs";
|
|
8
|
+
import a from "./json-object-templates/human-decision.mjs";
|
|
9
|
+
import c from "./json-object-templates/human-task.mjs";
|
|
10
|
+
import l from "./json-object-templates/join.mjs";
|
|
11
|
+
import d from "./json-object-templates/process.mjs";
|
|
12
|
+
import f from "./json-object-templates/start.mjs";
|
|
13
|
+
import m from "./json-object-templates/subprocess.mjs";
|
|
14
|
+
import u from "./json-object-templates/transition.mjs";
|
|
15
|
+
function p() {
|
|
16
|
+
return window.$store;
|
|
17
|
+
}
|
|
18
|
+
function h() {
|
|
19
|
+
return window.$locale ? o.locale = window.$locale : o.locale = "cn", o.global;
|
|
20
|
+
}
|
|
21
|
+
function w() {
|
|
22
|
+
return [{ name: "Start", label: h().t("workflowEditor.task.start"), icon: "start", type: "primary", class: "", round: true, width: 48, height: 48, color: "#67C23A" }, { name: "HumanTask", label: h().t("workflowEditor.task.humanTask"), icon: "human-task", type: "", class: "", round: true, width: 80, height: 40, color: "#000" }, { name: "Decision", label: h().t("workflowEditor.task.conditionJudgment"), icon: "decision", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Fork", label: h().t("workflowEditor.task.branch"), icon: "fork", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Join", label: h().t("workflowEditor.task.converge"), icon: "join", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "Subprocess", label: h().t("workflowEditor.task.subprocess"), icon: "subprocess", type: "warning", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "HumanDecision", label: h().t("workflowEditor.task.manualJudgment"), icon: "human-decision", type: "", class: "", round: true, width: 48, height: 48, color: "#999" }, { name: "CopyTask", label: h().t("workflowEditor.task.cCtask"), icon: "copy-task", type: "", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "AutoTask", label: h().t("workflowEditor.task.autoTask"), icon: "human-task", type: "", class: "", round: true, width: 80, height: 40, color: "#0777D4" }, { name: "End", label: h().t("workflowEditor.task.end"), icon: "end", type: "danger", class: "workflow-end-button", round: true, width: 48, height: 48, color: "#F56C6C" }];
|
|
23
|
+
}
|
|
24
|
+
function g(t2) {
|
|
25
|
+
const o2 = w().filter((o3) => o3.name === t2);
|
|
26
|
+
return o2.length > 0 ? o2[0] : null;
|
|
27
|
+
}
|
|
28
|
+
function y(t2, o2) {
|
|
29
|
+
switch ("string" == typeof t2 && (t2 = function(t3) {
|
|
30
|
+
return p().getters["wfEditor/taches"].filter((o3) => o3.id === t3)[0];
|
|
31
|
+
}(t2)), o2) {
|
|
32
|
+
case "up":
|
|
33
|
+
case "top":
|
|
34
|
+
return { position: "up", x: t2.x + t2.width / 2, y: t2.y };
|
|
35
|
+
case "right":
|
|
36
|
+
return { position: "right", x: t2.x + t2.width, y: t2.y + t2.height / 2 };
|
|
37
|
+
case "down":
|
|
38
|
+
case "bottom":
|
|
39
|
+
return { position: "down", x: t2.x + t2.width / 2, y: t2.y + t2.height };
|
|
40
|
+
case "left":
|
|
41
|
+
return { position: "left", x: t2.x, y: t2.y + t2.height / 2 };
|
|
42
|
+
default:
|
|
43
|
+
return { position: "", x: t2.x, y: t2.y };
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function k(t2) {
|
|
47
|
+
const o2 = document.getElementById("svg").getScreenCTM();
|
|
48
|
+
return { x: (t2.clientX - o2.e) / o2.a, y: (t2.clientY - o2.f) / o2.d };
|
|
49
|
+
}
|
|
50
|
+
function b(t2, o2) {
|
|
51
|
+
if (!t2 || !o2)
|
|
52
|
+
return {};
|
|
53
|
+
const { x: e2, y: n2 } = t2, { x: i2, y: r2 } = o2;
|
|
54
|
+
var s2 = { x: 0, y: 0, width: Math.abs(i2 - e2), height: Math.abs(r2 - n2) };
|
|
55
|
+
return e2 <= i2 ? n2 <= r2 ? (s2.x = e2, s2.y = n2) : (s2.x = e2, s2.y = r2) : n2 >= r2 ? (s2.x = i2, s2.y = r2) : (s2.x = i2, s2.y = n2), s2;
|
|
56
|
+
}
|
|
57
|
+
function j(t2) {
|
|
58
|
+
let o2, e2, n2, i2;
|
|
59
|
+
o2 = e2 = 1e4, n2 = i2 = 0;
|
|
60
|
+
for (const r2 of t2)
|
|
61
|
+
o2 > r2.x && (o2 = r2.x), e2 > r2.y && (e2 = r2.y), n2 < r2.x + r2.width && (n2 = r2.x + r2.width), i2 < r2.y + r2.height && (i2 = r2.y + r2.height);
|
|
62
|
+
return { x: o2 - 10, y: e2 - 10, width: n2 - o2 + 20, height: i2 - e2 + 20 };
|
|
63
|
+
}
|
|
64
|
+
function E(t2, o2) {
|
|
65
|
+
T(), o2.$parent.region = null, o2.$parent.showHistory || (o2.model.isSelected = true), p().getters["wfEditor/selectedTaches"].push(o2.model);
|
|
66
|
+
const e2 = k(t2);
|
|
67
|
+
p().commit("wfEditor/setMouseDownPosition", e2), p().commit("wfEditor/setMovingTache", true);
|
|
68
|
+
}
|
|
69
|
+
function x() {
|
|
70
|
+
p().commit("wfEditor/setMovingTache", false), p().commit("wfEditor/setMouseDownPosition", null);
|
|
71
|
+
}
|
|
72
|
+
function T() {
|
|
73
|
+
!function() {
|
|
74
|
+
for (const t2 of p().getters["wfEditor/selectedTaches"])
|
|
75
|
+
t2.isSelected = false;
|
|
76
|
+
p().commit("wfEditor/setSelectedTaches", []);
|
|
77
|
+
}(), p().getters["wfEditor/selectedTransition"] && (p().getters["wfEditor/selectedTransition"].isSelected = false), p().commit("wfEditor/setSelectedTransition", null);
|
|
78
|
+
}
|
|
79
|
+
function S(t2) {
|
|
80
|
+
Object.getOwnPropertyNames(t2).forEach(function(o2) {
|
|
81
|
+
if ("object" == typeof t2[o2]) {
|
|
82
|
+
if (void 0 !== t2[o2]._text)
|
|
83
|
+
return void (t2[o2] = t2[o2]._text);
|
|
84
|
+
if (Object.keys(t2[o2]).length > 0)
|
|
85
|
+
S(t2[o2]);
|
|
86
|
+
else {
|
|
87
|
+
["variables", "events", "autoFilledFields"].indexOf(o2) < 0 && (t2[o2] = "");
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
function J(t2, o2) {
|
|
93
|
+
o2 || (o2 = []), Array.isArray(o2) || (o2 = [o2]);
|
|
94
|
+
const e2 = p().getters["wfEditor/taches"];
|
|
95
|
+
for (const n2 of o2) {
|
|
96
|
+
const o3 = { id: n2.attr.id, name: n2.attr.name, x: n2.g.x, y: n2.g.y, width: n2.g.width, height: n2.g.height, type: t2, isSelected: false, ref: n2 };
|
|
97
|
+
e2.push(o3);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function D(t2) {
|
|
101
|
+
t2 && (J("HumanTask", t2.humanTask), J("Decision", t2.decision), J("Fork", t2.fork), J("Join", t2.join), J("Subprocess", t2.subprocess), J("HumanDecision", t2.humanDecision), J("CopyTask", t2.copyTask), J("AutoTask", t2.autoTask), J("Start", t2.start), J("End", t2.end), function(t3, o2) {
|
|
102
|
+
o2 || (o2 = []), Array.isArray(o2) || (o2 = [o2]);
|
|
103
|
+
const e2 = p().getters["wfEditor/transitions"];
|
|
104
|
+
for (const t4 of o2) {
|
|
105
|
+
const o3 = t4.basicProperties.remark || "", n2 = { id: t4.attr.id, startJoint: { parent: P(t4.attr.from), position: t4.g.fromJoint }, endJoint: { parent: P(t4.attr.to), position: t4.g.toJoint }, isSelected: false, remark: o3, lineInfo: { type: t4.g.lineType, controlPoint: null }, ref: t4 };
|
|
106
|
+
if ("CurveLine" === t4.g.lineType && t4.g.coordinate) {
|
|
107
|
+
const o4 = t4.g.coordinate.split(",");
|
|
108
|
+
n2.lineInfo.controlPoint = { x: o4[0], y: o4[1] };
|
|
109
|
+
} else if ("BrokenLine" === t4.g.lineType && t4.g.coordinate) {
|
|
110
|
+
const o4 = t4.g.coordinate.split(";"), e3 = [];
|
|
111
|
+
o4.forEach((t5) => {
|
|
112
|
+
if ("" !== t5) {
|
|
113
|
+
const o5 = t5.split(",");
|
|
114
|
+
e3.push({ x: o5[0], y: o5[1] });
|
|
115
|
+
}
|
|
116
|
+
}), n2.lineInfo.controlPoint = e3;
|
|
117
|
+
}
|
|
118
|
+
e2.push(n2);
|
|
119
|
+
}
|
|
120
|
+
}(0, t2.transition));
|
|
121
|
+
}
|
|
122
|
+
function M(t2) {
|
|
123
|
+
return p().getters["wfEditor/transitions"].filter((o2) => o2.startJoint.parent.id === t2 || o2.ref.attr.from === t2);
|
|
124
|
+
}
|
|
125
|
+
function v(t2) {
|
|
126
|
+
return p().getters["wfEditor/transitions"].filter((o2) => o2.endJoint.parent.id === t2 || o2.ref.attr.to === t2);
|
|
127
|
+
}
|
|
128
|
+
function P(t2) {
|
|
129
|
+
const o2 = p().getters["wfEditor/taches"].filter((o3) => o3.ref.attr.id === t2);
|
|
130
|
+
return o2.length > 0 ? o2[0] : null;
|
|
131
|
+
}
|
|
132
|
+
function A(t2) {
|
|
133
|
+
return JSON.parse(JSON.stringify(t2));
|
|
134
|
+
}
|
|
135
|
+
function C(t2, o2) {
|
|
136
|
+
v(o2).map((o3) => {
|
|
137
|
+
o3.ref.attr.to = t2, o3.ref.attr.id = "flow_" + o3.ref.attr.from + "_to_" + o3.ref.attr.to, o3.id = o3.ref.attr.id;
|
|
138
|
+
});
|
|
139
|
+
return M(o2).map((o3) => {
|
|
140
|
+
o3.ref.attr.from = t2, o3.ref.attr.id = "flow_" + o3.ref.attr.from + "_to_" + o3.ref.attr.to, o3.id = o3.ref.attr.id;
|
|
141
|
+
}), true;
|
|
142
|
+
}
|
|
143
|
+
function I(t2) {
|
|
144
|
+
const o2 = P(t2.formModel.id);
|
|
145
|
+
if (o2 && o2.id !== t2.id)
|
|
146
|
+
return t2.$alert(h().t("workflowEditorMessage.itIsTheSameAsTheExistingLink", { name: o2.name })), void (t2.formModel.id = t2.id);
|
|
147
|
+
C(t2.formModel.id, t2.id), t2.$emit("update:id", t2.formModel.id);
|
|
148
|
+
}
|
|
149
|
+
function _(o2, e2) {
|
|
150
|
+
let n2 = "";
|
|
151
|
+
if (o2.processI18n && o2.model.ref && o2.model.ref.basicProperties && o2.model.ref.basicProperties.i18nKey) {
|
|
152
|
+
const i2 = o2.model.ref.basicProperties.i18nKey, r2 = t();
|
|
153
|
+
o2.processI18n[i2] && (n2 = o2.processI18n[i2][r2]), n2 || (n2 = e2);
|
|
154
|
+
} else
|
|
155
|
+
n2 = e2;
|
|
156
|
+
return n2;
|
|
157
|
+
}
|
|
158
|
+
const H = { newProcess: d, newHumanTask: c, newDecision: i, newStart: f, newEnd: r, newTransition: u, newSubprocess: m, newFork: s, newJoin: l, newHumanDecision: a, newCopyTask: n, newAutoTask: e };
|
|
159
|
+
export {
|
|
160
|
+
T as clearAllSelectedComponents,
|
|
161
|
+
A as deepCopy,
|
|
162
|
+
x as endDragTache,
|
|
163
|
+
v as findIncomingTransitionsByTacheId,
|
|
164
|
+
M as findOutgoingTransitionsByTacheId,
|
|
165
|
+
P as findTacheById,
|
|
166
|
+
g as getComponentInfo,
|
|
167
|
+
w as getComponentList,
|
|
168
|
+
h as getI18n,
|
|
169
|
+
y as getJoint,
|
|
170
|
+
k as getMousePosition,
|
|
171
|
+
j as getRealRegion,
|
|
172
|
+
b as getVirtualRegion,
|
|
173
|
+
D as initializeProcessData,
|
|
174
|
+
H as processTemplate,
|
|
175
|
+
S as removeTextProperty,
|
|
176
|
+
E as startDragTache,
|
|
177
|
+
C as updateTransitionsWhenTacheIdChanged,
|
|
178
|
+
I as validateTacheCode,
|
|
179
|
+
_ as watchShowName
|
|
180
|
+
};
|