workflow-editor 0.0.81-up-tmp10 → 0.0.81-up-tmp11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/extensions.json +3 -0
- package/package.json +1 -1
- package/vite.config.js +3 -3
- package/dist/index.full.min.js +0 -3504
- package/dist/style.css +0 -526
- package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
- package/es/index.mjs +0 -17
- package/es/plugins/formValidatorUtil.mjs +0 -206
- package/es/plugins/index.mjs +0 -7
- package/es/src/i18n/i18n.mjs +0 -7
- package/es/src/i18n/langs/cn.mjs +0 -4
- package/es/src/i18n/langs/en.mjs +0 -4
- package/es/style.css +0 -525
- package/es/vite.svg +0 -1
- package/es/workflow-editor/index.mjs +0 -10
- package/es/workflow-editor/src/api.mjs +0 -6
- package/es/workflow-editor/src/assets/wf-editor-icons.mjs +0 -43
- package/es/workflow-editor/src/json-object-templates/auto-task.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/copy-task.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/decision.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/end.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/fork.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/human-decision.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/human-task.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/join.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/process.mjs +0 -9
- package/es/workflow-editor/src/json-object-templates/start.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/subprocess.mjs +0 -7
- package/es/workflow-editor/src/json-object-templates/transition.mjs +0 -6
- package/es/workflow-editor/src/main/admin-save-dialog.vue.mjs +0 -13
- package/es/workflow-editor/src/main/canvas.vue.mjs +0 -130
- package/es/workflow-editor/src/main/canvas.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/context-menu.vue.mjs +0 -33
- package/es/workflow-editor/src/main/context-menu.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/icon-svg.vue.mjs +0 -12
- package/es/workflow-editor/src/main/icon-svg.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/selection-region.vue.mjs +0 -17
- package/es/workflow-editor/src/main/selection-region.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/tache-history-tooltip.vue.mjs +0 -10
- package/es/workflow-editor/src/main/tache-history-tooltip.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue.mjs +0 -11
- package/es/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/toolbox.vue.mjs +0 -16
- package/es/workflow-editor/src/main/toolbox.vue2.mjs +0 -4
- package/es/workflow-editor/src/main/wf-history-canvas.vue.mjs +0 -86
- package/es/workflow-editor/src/main/wf-history-canvas.vue2.mjs +0 -4
- package/es/workflow-editor/src/process-service.mjs +0 -21
- package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.mjs +0 -25
- package/es/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/auto-task.vue.mjs +0 -22
- package/es/workflow-editor/src/properties-editors/auto-task.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/additional-condition-utils.mjs +0 -125
- package/es/workflow-editor/src/properties-editors/common/additional-condition.vue.mjs +0 -60
- package/es/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.mjs +0 -5
- package/es/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.mjs +0 -72
- package/es/workflow-editor/src/properties-editors/common/common-notice-tool.vue.mjs +0 -18
- package/es/workflow-editor/src/properties-editors/common/common-user-condition.vue.mjs +0 -55
- package/es/workflow-editor/src/properties-editors/common/form-fields-utils.mjs +0 -14
- package/es/workflow-editor/src/properties-editors/common/form-fields.vue.mjs +0 -20
- package/es/workflow-editor/src/properties-editors/common/form-fields.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/i18n-input.vue.mjs +0 -25
- package/es/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.mjs +0 -36
- package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue.mjs +0 -27
- package/es/workflow-editor/src/properties-editors/common/notice-reminder.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/notice.vue.mjs +0 -31
- package/es/workflow-editor/src/properties-editors/common/reminder.vue.mjs +0 -36
- package/es/workflow-editor/src/properties-editors/common/reminder.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/select-mail-template.vue.mjs +0 -20
- package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.mjs +0 -95
- package/es/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue.mjs +0 -16
- package/es/workflow-editor/src/properties-editors/common/system-role-tree.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/task-title.vue.mjs +0 -46
- package/es/workflow-editor/src/properties-editors/common/task-title.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/transactor-settings.vue.mjs +0 -43
- package/es/workflow-editor/src/properties-editors/common/user-selection.vue.mjs +0 -116
- package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.mjs +0 -60
- package/es/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/common/variables.vue.mjs +0 -41
- package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.mjs +0 -25
- package/es/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.mjs +0 -30
- package/es/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/copy-task.vue.mjs +0 -26
- package/es/workflow-editor/src/properties-editors/copy-task.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/decision.vue.mjs +0 -24
- package/es/workflow-editor/src/properties-editors/fork.vue.mjs +0 -21
- package/es/workflow-editor/src/properties-editors/human-decision.vue.mjs +0 -15
- package/es/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.mjs +0 -16
- package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue.mjs +0 -38
- package/es/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.mjs +0 -84
- package/es/workflow-editor/src/properties-editors/human-task/custom-actions.vue.mjs +0 -62
- package/es/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.mjs +0 -80
- package/es/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.mjs +0 -86
- package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.mjs +0 -43
- package/es/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/human-task/editable-fields.vue.mjs +0 -67
- package/es/workflow-editor/src/properties-editors/human-task/events.vue.mjs +0 -18
- package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue.mjs +0 -33
- package/es/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.mjs +0 -56
- package/es/workflow-editor/src/properties-editors/human-task.vue.mjs +0 -28
- package/es/workflow-editor/src/properties-editors/human-task.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/join.vue.mjs +0 -15
- package/es/workflow-editor/src/properties-editors/process/basic-properties.vue.mjs +0 -88
- package/es/workflow-editor/src/properties-editors/process/events.vue.mjs +0 -21
- package/es/workflow-editor/src/properties-editors/process/notice-settings.vue.mjs +0 -25
- package/es/workflow-editor/src/properties-editors/process/parameter-settings.vue.mjs +0 -17
- package/es/workflow-editor/src/properties-editors/process/permission-settings.vue.mjs +0 -10
- package/es/workflow-editor/src/properties-editors/process/selectPage.vue.mjs +0 -28
- package/es/workflow-editor/src/properties-editors/process.vue.mjs +0 -34
- package/es/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.mjs +0 -64
- package/es/workflow-editor/src/properties-editors/subprocess/events.vue.mjs +0 -9
- package/es/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.mjs +0 -55
- package/es/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.mjs +0 -20
- package/es/workflow-editor/src/properties-editors/subprocess.vue.mjs +0 -22
- package/es/workflow-editor/src/properties-editors/subprocess.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/transition/basic-properties.vue.mjs +0 -14
- package/es/workflow-editor/src/properties-editors/transition.vue.mjs +0 -17
- package/es/workflow-editor/src/properties-editors/transition.vue2.mjs +0 -4
- package/es/workflow-editor/src/properties-editors/user-condition.mjs +0 -49
- package/es/workflow-editor/src/store/getters.mjs +0 -4
- package/es/workflow-editor/src/store/workflow-editor.mjs +0 -73
- package/es/workflow-editor/src/taches/auto-task.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/common-methods.mjs +0 -13
- package/es/workflow-editor/src/taches/copy-task.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/custom-task.vue.mjs +0 -16
- package/es/workflow-editor/src/taches/decision.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/decision.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/end.vue.mjs +0 -14
- package/es/workflow-editor/src/taches/end.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/fork.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/fork.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/human-decision.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/human-decision.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/human-task.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/join.vue.mjs +0 -16
- package/es/workflow-editor/src/taches/join.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/joint.vue.mjs +0 -54
- package/es/workflow-editor/src/taches/joint.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/start.vue.mjs +0 -14
- package/es/workflow-editor/src/taches/start.vue2.mjs +0 -4
- package/es/workflow-editor/src/taches/subprocess.vue.mjs +0 -25
- package/es/workflow-editor/src/taches/tache-resizer.vue.mjs +0 -30
- package/es/workflow-editor/src/taches/tache-resizer.vue2.mjs +0 -4
- package/es/workflow-editor/src/transitions/broken-line.vue.mjs +0 -32
- package/es/workflow-editor/src/transitions/broken-line.vue2.mjs +0 -4
- package/es/workflow-editor/src/transitions/curve-line.vue.mjs +0 -33
- package/es/workflow-editor/src/transitions/curve-line.vue2.mjs +0 -4
- package/es/workflow-editor/src/transitions/straight-line.vue.mjs +0 -13
- package/es/workflow-editor/src/transitions/transition.vue.mjs +0 -70
- package/es/workflow-editor/src/transitions/transition.vue2.mjs +0 -4
- package/es/workflow-editor/src/transitions/virtual-transition.vue.mjs +0 -17
- package/es/workflow-editor/src/transitions/virtual-transition.vue2.mjs +0 -4
- package/es/workflow-editor/src/util.mjs +0 -180
- package/es/workflow-editor/src/workflow-editor.vue.mjs +0 -205
- package/es/workflow-editor/src/workflow-editor.vue2.mjs +0 -4
- package/es/workflow-editor/src/workflow-history.vue.mjs +0 -35
- package/es/workflow-editor/src/workflow-history.vue2.mjs +0 -4
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -7
- package/lib/index.cjs +0 -8
- package/lib/plugins/formValidatorUtil.cjs +0 -203
- package/lib/plugins/index.cjs +0 -5
- package/lib/src/i18n/i18n.cjs +0 -3
- package/lib/src/i18n/langs/cn.cjs +0 -2
- package/lib/src/i18n/langs/en.cjs +0 -2
- package/lib/style.css +0 -525
- package/lib/vite.svg +0 -1
- package/lib/workflow-editor/index.cjs +0 -7
- package/lib/workflow-editor/src/api.cjs +0 -5
- package/lib/workflow-editor/src/assets/wf-editor-icons.cjs +0 -44
- package/lib/workflow-editor/src/json-object-templates/auto-task.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/copy-task.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/decision.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/end.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/fork.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/human-decision.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/human-task.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/join.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/process.cjs +0 -6
- package/lib/workflow-editor/src/json-object-templates/start.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/subprocess.cjs +0 -5
- package/lib/workflow-editor/src/json-object-templates/transition.cjs +0 -4
- package/lib/workflow-editor/src/main/admin-save-dialog.vue.cjs +0 -11
- package/lib/workflow-editor/src/main/canvas.vue.cjs +0 -101
- package/lib/workflow-editor/src/main/canvas.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/context-menu.vue.cjs +0 -29
- package/lib/workflow-editor/src/main/context-menu.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/icon-svg.vue.cjs +0 -10
- package/lib/workflow-editor/src/main/icon-svg.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/selection-region.vue.cjs +0 -13
- package/lib/workflow-editor/src/main/selection-region.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/tache-history-tooltip.vue.cjs +0 -8
- package/lib/workflow-editor/src/main/tache-history-tooltip.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue.cjs +0 -9
- package/lib/workflow-editor/src/main/tache-subprocess-history-dialog.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/toolbox.vue.cjs +0 -11
- package/lib/workflow-editor/src/main/toolbox.vue2.cjs +0 -2
- package/lib/workflow-editor/src/main/wf-history-canvas.vue.cjs +0 -67
- package/lib/workflow-editor/src/main/wf-history-canvas.vue2.cjs +0 -2
- package/lib/workflow-editor/src/process-service.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/auto-task/basic-properties.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/auto-task.vue.cjs +0 -19
- package/lib/workflow-editor/src/properties-editors/auto-task.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/additional-condition-utils.cjs +0 -94
- package/lib/workflow-editor/src/properties-editors/common/additional-condition.vue.cjs +0 -54
- package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.cjs +0 -4
- package/lib/workflow-editor/src/properties-editors/common/auto-filled-fields.vue.cjs +0 -67
- package/lib/workflow-editor/src/properties-editors/common/common-notice-tool.vue.cjs +0 -16
- package/lib/workflow-editor/src/properties-editors/common/common-user-condition.vue.cjs +0 -50
- package/lib/workflow-editor/src/properties-editors/common/form-fields-utils.cjs +0 -11
- package/lib/workflow-editor/src/properties-editors/common/form-fields.vue.cjs +0 -17
- package/lib/workflow-editor/src/properties-editors/common/form-fields.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/i18n-input.vue.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue.cjs +0 -31
- package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue.cjs +0 -22
- package/lib/workflow-editor/src/properties-editors/common/notice-reminder.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/notice.vue.cjs +0 -25
- package/lib/workflow-editor/src/properties-editors/common/reminder.vue.cjs +0 -31
- package/lib/workflow-editor/src/properties-editors/common/reminder.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/select-mail-template.vue.cjs +0 -17
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue.cjs +0 -93
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/common/system-role-tree.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/task-title.vue.cjs +0 -42
- package/lib/workflow-editor/src/properties-editors/common/task-title.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/transactor-settings.vue.cjs +0 -37
- package/lib/workflow-editor/src/properties-editors/common/user-selection.vue.cjs +0 -110
- package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue.cjs +0 -55
- package/lib/workflow-editor/src/properties-editors/common/value-selection-dialog.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/common/variables.vue.cjs +0 -39
- package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/copy-task/basic-properties.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue.cjs +0 -26
- package/lib/workflow-editor/src/properties-editors/copy-task/permission-settings.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/copy-task.vue.cjs +0 -19
- package/lib/workflow-editor/src/properties-editors/copy-task.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/decision.vue.cjs +0 -20
- package/lib/workflow-editor/src/properties-editors/fork.vue.cjs +0 -18
- package/lib/workflow-editor/src/properties-editors/human-decision.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue.cjs +0 -31
- package/lib/workflow-editor/src/properties-editors/human-task/basic-properties.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.cjs +0 -82
- package/lib/workflow-editor/src/properties-editors/human-task/custom-actions.vue.cjs +0 -56
- package/lib/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue.cjs +0 -75
- package/lib/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue.cjs +0 -80
- package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue.cjs +0 -39
- package/lib/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/human-task/editable-fields.vue.cjs +0 -60
- package/lib/workflow-editor/src/properties-editors/human-task/events.vue.cjs +0 -15
- package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue.cjs +0 -26
- package/lib/workflow-editor/src/properties-editors/human-task/permission-settings.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/human-task/selection-conditions.vue.cjs +0 -49
- package/lib/workflow-editor/src/properties-editors/human-task.vue.cjs +0 -19
- package/lib/workflow-editor/src/properties-editors/human-task.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/join.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/process/basic-properties.vue.cjs +0 -81
- package/lib/workflow-editor/src/properties-editors/process/events.vue.cjs +0 -18
- package/lib/workflow-editor/src/properties-editors/process/notice-settings.vue.cjs +0 -21
- package/lib/workflow-editor/src/properties-editors/process/parameter-settings.vue.cjs +0 -13
- package/lib/workflow-editor/src/properties-editors/process/permission-settings.vue.cjs +0 -7
- package/lib/workflow-editor/src/properties-editors/process/selectPage.vue.cjs +0 -23
- package/lib/workflow-editor/src/properties-editors/process.vue.cjs +0 -24
- package/lib/workflow-editor/src/properties-editors/subprocess/basic-properties.vue.cjs +0 -57
- package/lib/workflow-editor/src/properties-editors/subprocess/events.vue.cjs +0 -7
- package/lib/workflow-editor/src/properties-editors/subprocess/field-mappings.vue.cjs +0 -50
- package/lib/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue.cjs +0 -16
- package/lib/workflow-editor/src/properties-editors/subprocess.vue.cjs +0 -17
- package/lib/workflow-editor/src/properties-editors/subprocess.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/transition/basic-properties.vue.cjs +0 -10
- package/lib/workflow-editor/src/properties-editors/transition.vue.cjs +0 -12
- package/lib/workflow-editor/src/properties-editors/transition.vue2.cjs +0 -2
- package/lib/workflow-editor/src/properties-editors/user-condition.cjs +0 -33
- package/lib/workflow-editor/src/store/getters.cjs +0 -2
- package/lib/workflow-editor/src/store/workflow-editor.cjs +0 -71
- package/lib/workflow-editor/src/taches/auto-task.vue.cjs +0 -17
- package/lib/workflow-editor/src/taches/common-methods.cjs +0 -11
- package/lib/workflow-editor/src/taches/copy-task.vue.cjs +0 -17
- package/lib/workflow-editor/src/taches/custom-task.vue.cjs +0 -9
- package/lib/workflow-editor/src/taches/decision.vue.cjs +0 -19
- package/lib/workflow-editor/src/taches/decision.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/end.vue.cjs +0 -9
- package/lib/workflow-editor/src/taches/end.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/fork.vue.cjs +0 -19
- package/lib/workflow-editor/src/taches/fork.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/human-decision.vue.cjs +0 -19
- package/lib/workflow-editor/src/taches/human-decision.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/human-task.vue.cjs +0 -17
- package/lib/workflow-editor/src/taches/join.vue.cjs +0 -11
- package/lib/workflow-editor/src/taches/join.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/joint.vue.cjs +0 -50
- package/lib/workflow-editor/src/taches/joint.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/start.vue.cjs +0 -9
- package/lib/workflow-editor/src/taches/start.vue2.cjs +0 -2
- package/lib/workflow-editor/src/taches/subprocess.vue.cjs +0 -17
- package/lib/workflow-editor/src/taches/tache-resizer.vue.cjs +0 -27
- package/lib/workflow-editor/src/taches/tache-resizer.vue2.cjs +0 -2
- package/lib/workflow-editor/src/transitions/broken-line.vue.cjs +0 -28
- package/lib/workflow-editor/src/transitions/broken-line.vue2.cjs +0 -2
- package/lib/workflow-editor/src/transitions/curve-line.vue.cjs +0 -29
- package/lib/workflow-editor/src/transitions/curve-line.vue2.cjs +0 -2
- package/lib/workflow-editor/src/transitions/straight-line.vue.cjs +0 -9
- package/lib/workflow-editor/src/transitions/transition.vue.cjs +0 -63
- package/lib/workflow-editor/src/transitions/transition.vue2.cjs +0 -2
- package/lib/workflow-editor/src/transitions/virtual-transition.vue.cjs +0 -13
- package/lib/workflow-editor/src/transitions/virtual-transition.vue2.cjs +0 -2
- package/lib/workflow-editor/src/util.cjs +0 -139
- package/lib/workflow-editor/src/workflow-editor.vue.cjs +0 -191
- package/lib/workflow-editor/src/workflow-editor.vue2.cjs +0 -2
- package/lib/workflow-editor/src/workflow-history.vue.cjs +0 -28
- package/lib/workflow-editor/src/workflow-history.vue2.cjs +0 -2
- /package/{dist → public}/vite.svg +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const n = require("../../../src/i18n/i18n.cjs");
|
|
3
|
-
module.exports = function() {
|
|
4
|
-
return { attr: { id: "newHumanTask", name: n.global.t("workflowEditor.task.newTask") }, g: {}, basicProperties: { processingMode: { type: "EDIT", passRate: 0, moreTransactor: false, actions: { action: [] } }, taskCode: "", taskTitle: "", remark: "", mailNotice: false, taskUrl: "" }, transactorSettings: { userCondition: "", moreTransactor: false, additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, permissionSettings: { editForm: { permission: false, field: [], subTablePermission: [{ tableName: "sub_table1", permission: false, modelName: "model", action: [{ name: "notEmpty", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "add", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "update", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "delete", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }], field: [{ name: "all_fields", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "xxx", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }] }, { tableName: "sub_table2", permission: false, modelName: "model", action: [{ name: "notEmpty", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "add", userCondition: "人员条件", parentCondition: "主表字段条件" }, { name: "update", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "delete", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }], field: [{ name: "all_fields", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }, { name: "xxx", constraintRule: "REQUIRED/READ_ONLY", userCondition: "人员条件", parentCondition: "主表字段条件", condition: "子表字段条件" }] }] }, viewOpinion: { permission: false, condition: "" }, editOpinion: { permission: false, condition: "" }, requireOpinion: { permission: false, condition: "" }, viewMeetingResult: { permission: false, condition: "" }, viewVoteResult: { permission: false, condition: "" }, viewFlowHistory: { permission: false, condition: "" }, printForm: { permission: false, condition: "" }, officialText: { permission: false }, attachment: { permission: false }, deleteInstance: { userCondition: "" } }, autoFilledFields: { field: [] }, reminder: null, events: { afterComplete: false }, variables: { variable: [] } };
|
|
5
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("./human-task.cjs"), r = require("../../../src/i18n/i18n.cjs");
|
|
3
|
-
module.exports = function() {
|
|
4
|
-
const t = e();
|
|
5
|
-
return t.g = { x: 200, y: 150, width: 80, height: 40 }, { attr: { name: r.global.t("workflowEditor.task.newProcess"), code: "" }, properties: { basicProperties: { admin: "", formVersion: 1, formCode: "", processTypeCode: "", systemCode: "", creator: "", customType: "", branchCode: "" }, permissionSettings: { viewFlowHistory: "", viewSubscribeResult: "", viewVoteResult: "" }, reminder: null, parameterSettings: { doTask: { url: "", parameterName: "" }, viewForm: { url: "", parameterName: "" }, startProcess: { url: "", parameterName: "", parameterValue: "" }, handleEmergency: { url: "", parameterName: "" } }, events: { event: [] }, variables: { variable: [] } }, start: { attr: { id: "start" }, g: { x: 50, y: 50, width: 48, height: 48 } }, humanTask: t, end: { attr: { id: "end" }, g: { x: 500, y: 300, width: 48, height: 48 } } };
|
|
6
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../../src/i18n/i18n.cjs");
|
|
3
|
-
module.exports = function() {
|
|
4
|
-
return { attr: { id: "", name: e.global.t("workflowEditor.task.subprocess"), taskTitle: "" }, g: {}, processCode: "", processVersion: "", events: { beforeStart: "", end: false }, transactorSettings: { userCondition: "", additionalCondition: { onlyInCreatorDepartment: false, withCreatorDepartment: false, selectOneFromMultiple: false } }, parameters: { field: [] }, result: { field: [] } };
|
|
5
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
module.exports = function() {
|
|
3
|
-
return { attr: { id: "", from: "", to: "" }, g: {}, basicProperties: { remark: "", isOriginalUser: false, condition: "" }, inform: { informType: "mail", userCondition: "", subject: "", content: "" }, autoFilledFields: { field: [] }, onTransit: false };
|
|
4
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue");
|
|
3
|
-
const t = require("../../../_virtual/_plugin-vue_export-helper.cjs")({ name: "AdminSaveDialog", data: () => ({ dialogVisible: true }), methods: { updateWfVersion() {
|
|
4
|
-
this.$emit("update");
|
|
5
|
-
}, addWfVersion() {
|
|
6
|
-
this.$emit("add");
|
|
7
|
-
} } }, [["render", function(t2, o, i, l, r, a) {
|
|
8
|
-
const n = e.resolveComponent("el-button"), d = e.resolveComponent("el-dialog");
|
|
9
|
-
return e.openBlock(), e.createBlock(d, { "model-value": "", title: t2.$t("workflowEditorPublicModel.tipTitle"), center: true, top: "10vh", "append-to-body": "", onOpen: o[1] || (o[1] = (e2) => t2.$emit("open")), onOpend: o[2] || (o[2] = (e2) => t2.$emit("opend")), onClose: o[3] || (o[3] = (e2) => t2.$emit("close")), onClosed: o[4] || (o[4] = (e2) => t2.$emit("closed")) }, { footer: e.withCtx(() => [e.createVNode(n, { onClick: a.updateWfVersion }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("workflowEditorMessage.updateVersion")), 1)]), _: 1 }, 8, ["onClick"]), e.createVNode(n, { type: "primary", onClick: a.addWfVersion }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("workflowEditorMessage.addVersion")), 1)]), _: 1 }, 8, ["onClick"]), e.createVNode(n, { onClick: o[0] || (o[0] = (e2) => t2.$emit("close")) }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(t2.$t("workflowEditorPublicModel.cancel")), 1)]), _: 1 })]), default: e.withCtx(() => [e.createElementVNode("div", null, e.toDisplayString(t2.$t("workflowEditorMessage.adminSaveTip")), 1), e.createElementVNode("ul", null, [e.createElementVNode("li", null, e.toDisplayString(t2.$t("workflowEditorMessage.adminSaveTip1")), 1), e.createElementVNode("li", null, e.toDisplayString(t2.$t("workflowEditorMessage.adminSaveTip2")), 1), e.createElementVNode("li", null, e.toDisplayString(t2.$t("workflowEditorMessage.adminSaveTip3")), 1), e.createElementVNode("li", null, e.toDisplayString(t2.$t("workflowEditorMessage.adminSaveTip4")), 1)]), e.createElementVNode("div", null, e.toDisplayString(t2.$t("workflowEditorMessage.adminSaveTip5")), 1)]), _: 1 }, 8, ["title"]);
|
|
10
|
-
}]]);
|
|
11
|
-
module.exports = t;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../taches/start.vue.cjs"), o = require("../taches/end.vue.cjs"), i = require("../taches/human-task.vue.cjs"), t = require("../taches/decision.vue.cjs"), s = require("../taches/subprocess.vue.cjs"), n = require("../taches/custom-task.vue.cjs"), r = require("../taches/fork.vue.cjs"), h = require("../taches/join.vue.cjs"), a = require("../taches/human-decision.vue.cjs"), c = require("../taches/copy-task.vue.cjs"), l = require("../taches/auto-task.vue.cjs"), u = require("../transitions/transition.vue.cjs"), d = require("../transitions/virtual-transition.vue.cjs"), g = require("./selection-region.vue.cjs"), p = require("../properties-editors/human-task.vue.cjs"), v = require("../properties-editors/process.vue.cjs"), m = require("../properties-editors/decision.vue.cjs"), T = require("../properties-editors/transition.vue.cjs"), P = require("../properties-editors/fork.vue.cjs"), y = require("../properties-editors/join.vue.cjs"), w = require("../properties-editors/human-decision.vue.cjs"), k = require("../properties-editors/copy-task.vue.cjs"), M = require("../properties-editors/auto-task.vue.cjs"), f = require("../properties-editors/subprocess.vue.cjs"), j = require("./tache-history-tooltip.vue.cjs"), R = require("vuex"), E = require("../util.cjs"), q = require("vue");
|
|
3
|
-
require("./canvas.vue2.cjs");
|
|
4
|
-
const x = require("../../../_virtual/_plugin-vue_export-helper.cjs"), S = { name: "Canvas", components: { Start: e, End: o, HumanTask: i, Decision: t, Subprocess: s, CustomTask: n, Fork: r, Join: h, HumanDecision: a, CopyTask: c, Transition: u, VirtualTransition: d, SelectionRegion: g, HumanTaskPropertiesEditor: p, ProcessPropertiesEditor: v, DecisionPropertiesEditor: m, TransitionPropertiesEditor: T, ForkPropertiesEditor: P, JoinPropertiesEditor: y, HumanDecisionPropertiesEditor: w, CopyTaskPropertiesEditor: k, SubprocessPropertiesEditor: f, TacheHistoryTooltip: j, AutoTask: l, AutoTaskPropertiesEditor: M }, props: { process: { type: Object, default: null }, showHistory: { type: Boolean, default: false } }, data: function() {
|
|
5
|
-
return { inputArea: null, currentPosition: null, originPosition: null, offset: null, startPoint: null, region: null, endPoint: null, transitionsInRegion: [], showTacheHistory: false, tooltipPosition: null };
|
|
6
|
-
}, computed: { ...R.mapGetters("wfEditor", ["taches", "transitions", "isMovingTache", "mouseDownPosition", "startJoint", "endJoint", "isDrawingRegion", "isMovingRegion", "selectedTransition", "selectedTaches", "resizerToMove", "draggerToMove", "controlPointToMove", "propertiesEditorFor", "contextMenuVisible"]) }, watch: { propertiesEditorFor(e2, o2) {
|
|
7
|
-
} }, mounted: function() {
|
|
8
|
-
}, methods: { ...R.mapMutations("wfEditor", ["setTaches", "setTransitions", "resetState", "setMovingTache", "stopDrawingLine", "setSelectedTaches", "setDrawingRegion", "setResizerToMove", "setDraggerToMove", "setControlPointToMove", "setPropertiesEditorFor"]), forbidSelection: () => false, add: function() {
|
|
9
|
-
}, mousedown(e2) {
|
|
10
|
-
this.unselectAll(), this.setDrawingRegion(true), this.startPoint = E.getMousePosition(e2);
|
|
11
|
-
}, mousemove(e2) {
|
|
12
|
-
this.showHistory || (!this.originPosition && this.mouseDownPosition && (this.originPosition = this.mouseDownPosition), this.currentPosition = E.getMousePosition(e2), this.isMovingTache && this.moveTache(this.selectedTaches[0]), this.drawVirtualSelectionRegion(), this.moveSelectionRegion(), this.resizeSelectedTache(), this.moveTransition(), this.adjustCurveLine(), this.originPosition = this.currentPosition);
|
|
13
|
-
}, mouseup(e2) {
|
|
14
|
-
this.isMovingTache && this.setMovingTache(false), this.startJoint && this.stopDrawingLine(), this.drawRegionWhenNeeded(), this.resizerToMove && this.setResizerToMove(null), this.resetMovedTransition();
|
|
15
|
-
}, mouseleave(e2) {
|
|
16
|
-
this.drawRegionWhenNeeded(), this.resetMovedTransition(), this.resetState();
|
|
17
|
-
}, drawRegionWhenNeeded() {
|
|
18
|
-
this.isDrawingRegion && (this.selectComponents(), this.drawRealSelectionRegion(), this.setDrawingRegion(false));
|
|
19
|
-
}, resetMovedTransition() {
|
|
20
|
-
this.draggerToMove && (this.draggerToMove.owner.startJoint = this.draggerToMove.originStartJoint, this.draggerToMove.owner.endJoint = this.draggerToMove.originEndJoint, this.setDraggerToMove(null));
|
|
21
|
-
}, unselectAll() {
|
|
22
|
-
E.clearAllSelectedComponents(), this.transitionsInRegion = [], this.startPoint = null, this.region = null;
|
|
23
|
-
}, selectComponents() {
|
|
24
|
-
if (!this.startPoint || !this.region)
|
|
25
|
-
return this.startPoint = null, void (this.region = null);
|
|
26
|
-
for (const e2 of this.taches)
|
|
27
|
-
this.isInsideSelectionRegion(e2) && (e2.isSelected = true, this.selectedTaches.push(e2));
|
|
28
|
-
for (const e2 of this.transitions)
|
|
29
|
-
e2.startJoint.parent.isSelected && e2.endJoint.parent.isSelected && this.transitionsInRegion.push(e2);
|
|
30
|
-
}, isInsideSelectionRegion(e2) {
|
|
31
|
-
const o2 = e2.x >= this.region.x && e2.y >= this.region.y, i2 = e2.x + e2.width <= this.region.x + this.region.width && e2.y + e2.height <= this.region.y + this.region.height;
|
|
32
|
-
return o2 && i2;
|
|
33
|
-
}, moveTache(e2) {
|
|
34
|
-
const o2 = this.currentPosition.x - this.originPosition.x, i2 = this.currentPosition.y - this.originPosition.y;
|
|
35
|
-
e2.x += o2, e2.y += i2, e2.x < 0 && (e2.x = 2), e2.y < 0 && (e2.y = 2);
|
|
36
|
-
}, drawVirtualSelectionRegion() {
|
|
37
|
-
this.isDrawingRegion && this.startPoint && (this.region = E.getVirtualRegion(this.startPoint, this.currentPosition));
|
|
38
|
-
}, drawRealSelectionRegion() {
|
|
39
|
-
if (this.selectedTaches.length <= 1)
|
|
40
|
-
return this.startPoint = null, void (this.region = null);
|
|
41
|
-
this.region = E.getRealRegion(this.selectedTaches);
|
|
42
|
-
}, moveSelectionRegion() {
|
|
43
|
-
if (!this.isMovingRegion)
|
|
44
|
-
return;
|
|
45
|
-
let e2 = this.currentPosition.x - this.originPosition.x, o2 = this.currentPosition.y - this.originPosition.y;
|
|
46
|
-
this.region.x + e2 < 0 && (e2 = 2 - this.region.x), this.region.y + o2 < 0 && (o2 = 2 - this.region.y), this.region.x = this.region.x + e2, this.region.y = this.region.y + o2, this.moveTachesInRegion(e2, o2), this.moveTransitionControlPoints(e2, o2);
|
|
47
|
-
}, moveTachesInRegion(e2, o2) {
|
|
48
|
-
for (const i2 of this.selectedTaches)
|
|
49
|
-
i2.x += e2, i2.y += o2;
|
|
50
|
-
}, moveTransitionControlPoints(e2, o2) {
|
|
51
|
-
for (const i2 of this.transitionsInRegion)
|
|
52
|
-
"CurveLine" === i2.lineInfo.type ? (i2.lineInfo.controlPoint.x += e2, i2.lineInfo.controlPoint.y += o2) : "BrokenLine" === i2.lineInfo.type && i2.lineInfo.controlPoint.forEach((i3) => {
|
|
53
|
-
i3.x += e2, i3.y += o2;
|
|
54
|
-
});
|
|
55
|
-
}, resizeSelectedTache() {
|
|
56
|
-
if (!this.resizerToMove)
|
|
57
|
-
return;
|
|
58
|
-
let e2 = this.currentPosition.x - this.originPosition.x, o2 = this.currentPosition.y - this.originPosition.y;
|
|
59
|
-
const i2 = this.resizerToMove.owner;
|
|
60
|
-
switch (this.resizerToMove.position) {
|
|
61
|
-
case "NW":
|
|
62
|
-
i2.width - e2 < 80 && (e2 = i2.width - 80), i2.height - o2 < 40 && (o2 = i2.height - 40), i2.width -= e2, i2.height -= o2, i2.x += e2, i2.y += o2;
|
|
63
|
-
break;
|
|
64
|
-
case "NE":
|
|
65
|
-
i2.width + e2 < 80 && (e2 = 80 - i2.width), i2.height - o2 < 40 && (o2 = i2.height - 40), i2.width += e2, i2.height -= o2, i2.y += o2;
|
|
66
|
-
break;
|
|
67
|
-
case "SW":
|
|
68
|
-
i2.width - e2 < 80 && (e2 = i2.width - 80), i2.height + o2 < 40 && (o2 = 40 - i2.height), i2.width -= e2, i2.height += o2, i2.x += e2;
|
|
69
|
-
break;
|
|
70
|
-
case "SE":
|
|
71
|
-
i2.width + e2 < 80 && (e2 = 80 - i2.width), i2.height + o2 < 40 && (o2 = 40 - i2.height), i2.width += e2, i2.height += o2;
|
|
72
|
-
}
|
|
73
|
-
}, moveTransition() {
|
|
74
|
-
if (!this.draggerToMove)
|
|
75
|
-
return;
|
|
76
|
-
const e2 = this.draggerToMove.owner, o2 = this.draggerToMove.position, i2 = { parent: this.currentPosition, position: "" };
|
|
77
|
-
"start" === o2 ? e2.startJoint = i2 : e2.endJoint = i2;
|
|
78
|
-
}, adjustCurveLine() {
|
|
79
|
-
if (!this.controlPointToMove)
|
|
80
|
-
return;
|
|
81
|
-
const e2 = this.controlPointToMove.owner;
|
|
82
|
-
if (e2.lineInfo && "CurveLine" === e2.lineInfo.type)
|
|
83
|
-
e2.lineInfo.controlPoint = this.currentPosition;
|
|
84
|
-
else if (e2.lineInfo && "BrokenLine" === e2.lineInfo.type) {
|
|
85
|
-
const o2 = this.controlPointToMove.pointIndex;
|
|
86
|
-
e2.lineInfo.controlPoint[o2] = this.currentPosition;
|
|
87
|
-
}
|
|
88
|
-
}, endDrag(e2) {
|
|
89
|
-
}, showTacheHistoryTooltip(e2) {
|
|
90
|
-
this.showTacheHistory = true;
|
|
91
|
-
}, hideTacheHistoryTooltip() {
|
|
92
|
-
this.showTacheHistory = false;
|
|
93
|
-
}, updateTacheHistoryTooltipPosition(e2) {
|
|
94
|
-
const o2 = E.getMousePosition(e2);
|
|
95
|
-
this.tooltipPosition = { left: o2.x + "px", top: o2.y + "px" };
|
|
96
|
-
} } }, C = { ref: "svgContainer", style: { position: "relative" } }, D = q.createElementVNode("defs", null, [q.createElementVNode("marker", { id: "arrow", markerWidth: "10", markerHeight: "10", refX: "6", refY: "2", orient: "auto", markerUnits: "strokeWidth" }, [q.createElementVNode("path", { d: "M0,0 L0,4 L6,2 z", fill: "#666" })])], -1);
|
|
97
|
-
const H = x(S, [["render", function(e2, o2, i2, t2, s2, n2) {
|
|
98
|
-
const r2 = q.resolveComponent("virtual-transition"), h2 = q.resolveComponent("selection-region"), a2 = q.resolveComponent("tache-history-tooltip");
|
|
99
|
-
return q.openBlock(), q.createElementBlock("div", C, [(q.openBlock(), q.createElementBlock("svg", { id: "svg", width: "2000", height: "2000", onMousedown: o2[0] || (o2[0] = (...e3) => n2.mousedown && n2.mousedown(...e3)), onMousemove: o2[1] || (o2[1] = (...e3) => n2.mousemove && n2.mousemove(...e3)), onMouseup: o2[2] || (o2[2] = (...e3) => n2.mouseup && n2.mouseup(...e3)), onMouseleave: o2[3] || (o2[3] = (...e3) => n2.mouseleave && n2.mouseleave(...e3)), onDblclick: o2[4] || (o2[4] = (o3) => e2.setPropertiesEditorFor("Process")) }, [D, (q.openBlock(true), q.createElementBlock(q.Fragment, null, q.renderList(e2.taches, (e3) => (q.openBlock(), q.createBlock(q.resolveDynamicComponent(e3.type), { key: e3.id, model: e3, onMouseenter: n2.showTacheHistoryTooltip, onMouseleave: n2.hideTacheHistoryTooltip, onMousemove: n2.updateTacheHistoryTooltipPosition }, null, 40, ["model", "onMouseenter", "onMouseleave", "onMousemove"]))), 128)), (q.openBlock(true), q.createElementBlock(q.Fragment, null, q.renderList(e2.transitions, (e3) => (q.openBlock(), q.createBlock(q.resolveDynamicComponent("transition"), { key: e3.id, model: e3 }, null, 8, ["model"]))), 128)), q.createVNode(r2, { toPosition: e2.currentPosition }, null, 8, ["toPosition"]), q.createVNode(h2, { region: e2.region }, null, 8, ["region"])], 32)), !i2.showHistory && e2.propertiesEditorFor ? (q.openBlock(), q.createBlock(q.resolveDynamicComponent(e2.propertiesEditorFor + "PropertiesEditor"), { key: 0, model: e2.selectedTaches[0] || e2.selectedTransition || i2.process, onClose: o2[5] || (o2[5] = (o3) => e2.setPropertiesEditorFor("")) }, null, 40, ["model"])) : q.createCommentVNode("", true), i2.showHistory && e2.showTacheHistory ? (q.openBlock(), q.createBlock(a2, { key: 1, style: q.normalizeStyle(e2.tooltipPosition) }, null, 8, ["style"])) : q.createCommentVNode("", true)], 512);
|
|
100
|
-
}]]);
|
|
101
|
-
module.exports = H;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vuex"), t = require("./icon-svg.vue.cjs"), i = require("vue");
|
|
3
|
-
require("./context-menu.vue2.cjs");
|
|
4
|
-
const o = require("../../../_virtual/_plugin-vue_export-helper.cjs"), s = { name: "ContextMenu", components: { IconSvg: t }, data() {
|
|
5
|
-
return { menusForTransition: [{ name: "switch-line-type-StraightLine", label: this.$t("workflowEditor.main.straightLine"), icon: "switch" }, { name: "switch-line-type-CurveLine", label: this.$t("workflowEditor.main.curveLine"), icon: "switch" }, { name: "switch-line-type-BrokenLine", label: this.$t("workflowEditor.main.brokenLine"), icon: "switch" }, { name: "remove", label: this.$t("workflowEditor.common.remove"), icon: "delete" }, { name: "properties", label: this.$t("workflowEditor.common.attribute"), icon: "properties" }], menusForTache: [{ name: "remove", label: this.$t("workflowEditor.common.remove"), icon: "delete" }, { name: "properties", label: this.$t("workflowEditor.common.attribute"), icon: "properties" }], menusForProcess: [{ name: "properties", label: this.$t("workflowEditor.common.attribute"), icon: "properties" }], componentsWithoutPropertiesEditor: ["Start", "End"] };
|
|
6
|
-
}, computed: { ...e.mapGetters("wfEditor", ["taches", "transitions", "selectedTransition", "selectedTaches"]), menuType() {
|
|
7
|
-
let e2 = "";
|
|
8
|
-
return this.selectedTransition ? e2 = "Transition" : 1 === this.selectedTaches.length && (e2 = "Tache"), null === this.selectedTransition && 0 === this.selectedTaches.length && (e2 = "Process"), e2;
|
|
9
|
-
}, menus() {
|
|
10
|
-
return this.menuType ? this["menusFor" + this.menuType] : [];
|
|
11
|
-
} }, created() {
|
|
12
|
-
if (this.selectedTaches.length > 0) {
|
|
13
|
-
const e2 = this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? "" : this.selectedTaches[0].type;
|
|
14
|
-
this.menuType && "Tache" === this.menuType && e2 && this.menusForTache.push({ name: "copy", label: this.$t("workflowEditor.common.copy"), icon: "fuzhi" });
|
|
15
|
-
}
|
|
16
|
-
}, methods: { ...e.mapMutations("wfEditor", ["setPropertiesEditorFor", "setContextMenuVisible", "setSourceComponentForCopy"]), switchLineType(e2) {
|
|
17
|
-
this.selectedTransition.lineInfo.controlPoint = null, this.selectedTransition.lineInfo.type = e2;
|
|
18
|
-
}, execute(e2) {
|
|
19
|
-
if (e2.indexOf("switch-line-type-") >= 0) {
|
|
20
|
-
const t2 = e2.substring(e2.lastIndexOf("-") + 1);
|
|
21
|
-
this.switchLineType(t2);
|
|
22
|
-
}
|
|
23
|
-
"remove" === e2 && ("Tache" === this.menuType ? this.taches.splice(this.taches.indexOf(this.selectedTaches[0]), 1) : "Transition" === this.menuType && this.transitions.splice(this.transitions.indexOf(this.selectedTransition), 1)), "properties" === e2 && ("Tache" === this.menuType ? this.setPropertiesEditorFor(this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? "" : this.selectedTaches[0].type) : "Transition" === this.menuType ? this.setPropertiesEditorFor("Transition") : this.setPropertiesEditorFor("Process")), "copy" === e2 && this.setSourceComponentForCopy(this.componentsWithoutPropertiesEditor.indexOf(this.selectedTaches[0].type) >= 0 ? "" : this.selectedTaches[0].type), this.setContextMenuVisible(false);
|
|
24
|
-
} } }, n = { class: "context-menu" }, r = ["onMousedown"];
|
|
25
|
-
const c = o(s, [["render", function(e2, t2, o2, s2, c2, l) {
|
|
26
|
-
const h = i.resolveComponent("icon-svg");
|
|
27
|
-
return i.openBlock(), i.createElementBlock("ul", n, [(i.openBlock(true), i.createElementBlock(i.Fragment, null, i.renderList(l.menus, (e3) => (i.openBlock(), i.createElementBlock("li", { key: e3.name, onMousedown: i.withModifiers((t3) => l.execute(e3.name), ["stop"]) }, [i.createVNode(h, { icon: e3.icon }, null, 8, ["icon"]), i.createElementVNode("span", null, i.toDisplayString(e3.label), 1)], 40, r))), 128))]);
|
|
28
|
-
}], ["__scopeId", "data-v-7e8a1cf6"]]);
|
|
29
|
-
module.exports = c;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue");
|
|
3
|
-
require("./icon-svg.vue2.cjs");
|
|
4
|
-
const r = require("../../../_virtual/_plugin-vue_export-helper.cjs"), n = { class: "svg-icon", "aria-hidden": "true" }, c = ["xlink:href"];
|
|
5
|
-
const i = r({ name: "IconSvg", props: { icon: { type: String, required: true } }, computed: { iconName() {
|
|
6
|
-
return `#icon-${this.icon}`;
|
|
7
|
-
} } }, [["render", function(r2, i2, o, t, u, s) {
|
|
8
|
-
return e.openBlock(), e.createElementBlock("svg", n, [e.createElementVNode("use", { "xlink:href": s.iconName }, null, 8, c)]);
|
|
9
|
-
}]]);
|
|
10
|
-
module.exports = i;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vuex"), t = require("../util.cjs"), o = require("vue");
|
|
3
|
-
require("./selection-region.vue2.cjs");
|
|
4
|
-
const i = require("../../../_virtual/_plugin-vue_export-helper.cjs"), n = { name: "SelectionRegion", props: { region: { type: Object, default: null } }, computed: { ...e.mapGetters("wfEditor", ["selectedTaches"]) }, methods: { ...e.mapMutations("wfEditor", ["setDrawingRegion", "setMovingRegion", "setMouseDownPosition"]), startDrag(e2) {
|
|
5
|
-
const o2 = t.getMousePosition(e2);
|
|
6
|
-
this.setMouseDownPosition(o2), this.setMovingRegion(true);
|
|
7
|
-
}, endDrag(e2) {
|
|
8
|
-
this.setMovingRegion(false), this.setMouseDownPosition(null);
|
|
9
|
-
} } }, s = ["x", "y", "width", "height"];
|
|
10
|
-
const r = i(n, [["render", function(e2, t2, i2, n2, r2, g) {
|
|
11
|
-
return o.openBlock(), o.createElementBlock("g", null, [i2.region ? (o.openBlock(), o.createElementBlock("rect", { key: 0, x: i2.region.x, y: i2.region.y, width: i2.region.width, height: i2.region.height, class: o.normalizeClass({ draggable: true, "selection-region": true, dashed: e2.selectedTaches.length < 1 }), onMousedown: t2[0] || (t2[0] = o.withModifiers((...e3) => g.startDrag && g.startDrag(...e3), ["stop"])), onMouseup: t2[1] || (t2[1] = o.withModifiers((...e3) => g.endDrag && g.endDrag(...e3), ["stop"])) }, null, 42, s)) : o.createCommentVNode("", true)]);
|
|
12
|
-
}]]);
|
|
13
|
-
module.exports = r;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue");
|
|
3
|
-
require("./tache-history-tooltip.vue2.cjs");
|
|
4
|
-
const t = require("../../../_virtual/_plugin-vue_export-helper.cjs"), o = { class: "tooltip" }, r = ["innerHTML"];
|
|
5
|
-
const n = t({ name: "TacheHistoryTooltip", props: { content: { type: String, default: "" } }, methods: {} }, [["render", function(t2, n2, c, i, l, s) {
|
|
6
|
-
return e.openBlock(), e.createElementBlock("div", o, [e.createElementVNode("div", { innerHTML: c.content }, null, 8, r)]);
|
|
7
|
-
}], ["__scopeId", "data-v-ac799913"]]);
|
|
8
|
-
module.exports = n;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue");
|
|
3
|
-
require("./tache-subprocess-history-dialog.vue2.cjs");
|
|
4
|
-
const o = require("../../../_virtual/_plugin-vue_export-helper.cjs"), t = ["src"];
|
|
5
|
-
const s = o({ name: "TacheSubprocessHistoryDialog", props: { workflowId: { type: Number, default: null } }, data: () => ({ dialogVisible: true }) }, [["render", function(o2, s2, r, l, n, c) {
|
|
6
|
-
const i = e.resolveComponent("el-dialog");
|
|
7
|
-
return e.openBlock(), e.createBlock(i, { "model-value": "", title: o2.$t("workflowEditorPublicModel.subprocessTitle"), "close-on-click-modal": false, "append-to-body": "", width: "90%", top: "5vh", onOpen: s2[0] || (s2[0] = (e2) => o2.$emit("open")), onOpend: s2[1] || (s2[1] = (e2) => o2.$emit("opend")), onClose: s2[2] || (s2[2] = (e2) => o2.$emit("close")), onClosed: s2[3] || (s2[3] = (e2) => o2.$emit("closed")) }, { default: e.withCtx(() => [e.createElementVNode("iframe", { id: "_subprocess-content", src: "#/show-sub-wf-history?workflowId=" + r.workflowId, name: "_subprocess-content", title: "Subprocess Content", frameborder: "0" }, null, 8, t)]), _: 1 }, 8, ["title"]);
|
|
8
|
-
}], ["__scopeId", "data-v-2b195c05"]]);
|
|
9
|
-
module.exports = s;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vuex"), o = require("./icon-svg.vue.cjs"), t = require("../util.cjs"), n = require("vue");
|
|
3
|
-
require("./toolbox.vue2.cjs");
|
|
4
|
-
const r = require("../../../_virtual/_plugin-vue_export-helper.cjs"), c = { name: "Toolbox", components: { IconSvg: o }, data: () => ({ componentList: t.getComponentList() }), computed: { ...e.mapGetters("wfEditor", ["componentToDraw"]) }, methods: { ...e.mapMutations("wfEditor", ["setComponentToDraw"]), select(e2) {
|
|
5
|
-
this.setComponentToDraw(e2);
|
|
6
|
-
} } }, s = { style: { height: "calc(100vh - 98px)", "background-color": "#FFFFFF" } };
|
|
7
|
-
const l = r(c, [["render", function(e2, o2, t2, r2, c2, l2) {
|
|
8
|
-
const a = n.resolveComponent("icon-svg"), i = n.resolveComponent("el-button");
|
|
9
|
-
return n.openBlock(), n.createElementBlock("div", s, [n.createElementVNode("h3", null, n.toDisplayString(e2.$t("workflowEditor.main.tacheType")), 1), (n.openBlock(true), n.createElementBlock(n.Fragment, null, n.renderList(c2.componentList, (e3) => (n.openBlock(), n.createBlock(i, { key: e3.name, type: e3.type, class: n.normalizeClass(e3.class), round: e3.round, onMousedown: (o3) => l2.select(e3.name) }, { default: n.withCtx(() => [n.createVNode(a, { icon: e3.icon }, null, 8, ["icon"]), n.createTextVNode(" " + n.toDisplayString(e3.label), 1)]), _: 2 }, 1032, ["type", "class", "round", "onMousedown"]))), 128))]);
|
|
10
|
-
}], ["__scopeId", "data-v-0d941719"]]);
|
|
11
|
-
module.exports = l;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../taches/start.vue.cjs"), t = require("../taches/end.vue.cjs"), o = require("../taches/human-task.vue.cjs"), s = require("../taches/decision.vue.cjs"), r = require("../taches/subprocess.vue.cjs"), i = require("../taches/custom-task.vue.cjs"), n = require("../taches/fork.vue.cjs"), a = require("../taches/join.vue.cjs"), c = require("../taches/human-decision.vue.cjs"), l = require("../taches/copy-task.vue.cjs"), u = require("../taches/auto-task.vue.cjs"), h = require("../transitions/transition.vue.cjs"), d = require("./tache-history-tooltip.vue.cjs"), p = require("vuex"), m = require("../util.cjs"), y = require("agilebuilder-ui"), k = require("./tache-subprocess-history-dialog.vue.cjs"), f = require("vue");
|
|
3
|
-
require("./wf-history-canvas.vue2.cjs");
|
|
4
|
-
const v = require("../../../_virtual/_plugin-vue_export-helper.cjs"), T = { name: "WfHistoryCanvas", components: { Start: e, End: t, HumanTask: o, Decision: s, Subprocess: r, CustomTask: i, Fork: n, Join: a, HumanDecision: c, CopyTask: l, Transition: h, TacheHistoryTooltip: d, TacheSubprocessHistoryDialog: k, AutoTask: u }, props: { process: { type: Object, default: null }, histories: { type: Array, default: null }, currentTasks: { type: Array, default: null }, allProcessI18n: { type: Object, default: null } }, data: function() {
|
|
5
|
-
return { showHistory: false, tooltipPosition: null, tacheHistoryInfo: null, showSubprocessDialog: false, subWorkflowId: null };
|
|
6
|
-
}, computed: { ...p.mapGetters("wfEditor", ["taches", "transitions", "processI18n"]) }, mounted: function() {
|
|
7
|
-
}, methods: { getTacheClass(e2) {
|
|
8
|
-
if (this.getCurrentTache(e2))
|
|
9
|
-
return "current-tache";
|
|
10
|
-
{
|
|
11
|
-
const t2 = this.getPassedTache(e2);
|
|
12
|
-
return t2 && t2.current ? "current-tache" : t2 ? "passed-tache" : "";
|
|
13
|
-
}
|
|
14
|
-
}, getPassedTache(e2) {
|
|
15
|
-
let t2 = null;
|
|
16
|
-
for (const o2 of this.histories)
|
|
17
|
-
if ("PROCESS_START" === o2.historyType && e2.ref.attr.id && "start" === e2.ref.attr.id || "PROCESS_END" === o2.historyType && e2.ref.attr.id && "end" === e2.ref.attr.id || e2.ref.attr.name && o2.taskName && o2.taskName === e2.ref.attr.name) {
|
|
18
|
-
t2 = o2;
|
|
19
|
-
break;
|
|
20
|
-
}
|
|
21
|
-
return t2;
|
|
22
|
-
}, getPassedTacheHistories(e2) {
|
|
23
|
-
const t2 = [];
|
|
24
|
-
for (const o2 of this.histories)
|
|
25
|
-
("PROCESS_START" === o2.historyType && e2.ref.attr.id && "start" === e2.ref.attr.id || "PROCESS_END" === o2.historyType && e2.ref.attr.id && "end" === e2.ref.attr.id || e2.ref.attr.name && o2.taskName && o2.taskName === e2.ref.attr.name) && t2.push(this.i18nOperation(o2));
|
|
26
|
-
return t2;
|
|
27
|
-
}, i18nOperation(e2) {
|
|
28
|
-
let t2, o2;
|
|
29
|
-
const s2 = y.getLanguageWithLocale(), r2 = e2.bundleCode;
|
|
30
|
-
return r2 && "" !== r2 && this.processI18n && (t2 = this.processI18n[r2]), t2 && t2.processName && (o2 = t2.processName[s2]), y.i18nOperation(e2, o2, t2, s2);
|
|
31
|
-
}, getCurrentTache(e2) {
|
|
32
|
-
let t2 = null;
|
|
33
|
-
for (const o2 of this.currentTasks)
|
|
34
|
-
if (o2.taskName === e2.ref.attr.name) {
|
|
35
|
-
t2 = o2;
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
return t2;
|
|
39
|
-
}, getTacheHistory(e2) {
|
|
40
|
-
let t2, o2 = null;
|
|
41
|
-
const s2 = this.getPassedTacheHistories(e2);
|
|
42
|
-
s2 && s2.length > 0 && (t2 = s2.join("</br>"));
|
|
43
|
-
const r2 = this.getCurrentTache(e2);
|
|
44
|
-
return r2 ? (o2 = this.$t("workflowEditorMessage.currentHandlingPersonnel") + ": " + r2.transactionResult, t2 && (o2 += "</br>" + t2)) : o2 = t2, o2;
|
|
45
|
-
}, forbidSelection: () => false, mousedown(e2) {
|
|
46
|
-
}, mousemove(e2) {
|
|
47
|
-
}, mouseup(e2) {
|
|
48
|
-
}, mouseleave(e2) {
|
|
49
|
-
}, endDrag(e2) {
|
|
50
|
-
}, showTacheHistoryTooltip(e2, t2) {
|
|
51
|
-
this.tacheHistoryInfo = this.getTacheHistory(e2), this.showHistory = true;
|
|
52
|
-
}, hideTacheHistoryTooltip() {
|
|
53
|
-
this.showHistory = false;
|
|
54
|
-
}, updateTacheHistoryTooltipPosition(e2) {
|
|
55
|
-
const t2 = m.getMousePosition(e2);
|
|
56
|
-
this.tooltipPosition = { left: t2.x + 5 + "px", top: t2.y + 5 + "px" };
|
|
57
|
-
}, showSubprocessHistory(e2) {
|
|
58
|
-
const t2 = this.getPassedTache(e2);
|
|
59
|
-
t2 && void 0 !== t2.hasChildren && true === t2.hasChildren && (t2.children && t2.children.length > 0 && (this.subWorkflowId = t2.children[0].workflowId), this.showSubprocessDialog = true);
|
|
60
|
-
}, closeSubprocessHistory() {
|
|
61
|
-
this.showSubprocessDialog = false;
|
|
62
|
-
} } }, g = { ref: "svgContainer", style: { position: "relative" } }, w = f.createElementVNode("defs", null, [f.createElementVNode("marker", { id: "arrow", markerWidth: "10", markerHeight: "10", refX: "6", refY: "2", orient: "auto", markerUnits: "strokeWidth" }, [f.createElementVNode("path", { d: "M0,0 L0,4 L6,2 z", fill: "#666" })])], -1);
|
|
63
|
-
const H = v(T, [["render", function(e2, t2, o2, s2, r2, i2) {
|
|
64
|
-
const n2 = f.resolveComponent("tache-history-tooltip"), a2 = f.resolveComponent("tache-subprocess-history-dialog");
|
|
65
|
-
return f.openBlock(), f.createElementBlock("div", g, [(f.openBlock(), f.createElementBlock("svg", { id: "svg", width: "2000", height: "2000", onMousedown: t2[0] || (t2[0] = (...e3) => i2.mousedown && i2.mousedown(...e3)), onMousemove: t2[1] || (t2[1] = (...e3) => i2.mousemove && i2.mousemove(...e3)), onMouseup: t2[2] || (t2[2] = (...e3) => i2.mouseup && i2.mouseup(...e3)), onMouseleave: t2[3] || (t2[3] = (...e3) => i2.mouseleave && i2.mouseleave(...e3)) }, [w, (f.openBlock(true), f.createElementBlock(f.Fragment, null, f.renderList(e2.taches, (e3) => (f.openBlock(), f.createBlock(f.resolveDynamicComponent(e3.type), { key: e3.id, model: e3, class: f.normalizeClass([i2.getTacheClass(e3)]), "display-mode": e3.displayMode, onMouseenter: (t3) => i2.showTacheHistoryTooltip(e3, t3), onMouseleave: (t3) => i2.hideTacheHistoryTooltip(e3), onMousemove: i2.updateTacheHistoryTooltipPosition, onClick: (t3) => i2.showSubprocessHistory(e3) }, null, 40, ["model", "class", "display-mode", "onMouseenter", "onMouseleave", "onMousemove", "onClick"]))), 128)), (f.openBlock(true), f.createElementBlock(f.Fragment, null, f.renderList(e2.transitions, (e3) => (f.openBlock(), f.createBlock(f.resolveDynamicComponent("transition"), { key: e3.id, model: e3 }, null, 8, ["model"]))), 128))], 32)), e2.showHistory && e2.tacheHistoryInfo ? (f.openBlock(), f.createBlock(n2, { key: 0, style: f.normalizeStyle(e2.tooltipPosition), content: e2.tacheHistoryInfo }, null, 8, ["style", "content"])) : f.createCommentVNode("", true), e2.showSubprocessDialog ? (f.openBlock(), f.createBlock(a2, { key: 1, "workflow-id": e2.subWorkflowId, onClose: i2.closeSubprocessHistory }, null, 8, ["workflow-id", "onClose"])) : f.createCommentVNode("", true)], 512);
|
|
66
|
-
}]]);
|
|
67
|
-
module.exports = H;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
function o() {
|
|
3
|
-
return window.$store;
|
|
4
|
-
}
|
|
5
|
-
function e() {
|
|
6
|
-
return window.$http;
|
|
7
|
-
}
|
|
8
|
-
require("vue");
|
|
9
|
-
const t = { fetchFormFields: (t2, i, s, r) => new Promise((d, n) => {
|
|
10
|
-
let l;
|
|
11
|
-
t2 ? l = e().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields?formCode=" + t2 + "&formVersion=" + i + "&publishVersion=" + r) : s && (l = e().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/table-fields?tableName=" + s + "&publishVersion=" + r)), l ? l.then((e2) => {
|
|
12
|
-
const i2 = e2.formFields;
|
|
13
|
-
e2.subFormFields, o().commit("wfEditor/setFormCode", t2), o().commit("wfEditor/setTableCode", e2.tableCode), o().commit("wfEditor/setFormFields", i2), o().commit("wfEditor/setFormFieldsWithSub", i2);
|
|
14
|
-
const s2 = e2.subtableConditionMap;
|
|
15
|
-
o().commit("wfEditor/setSubtableConditionMap", s2);
|
|
16
|
-
const r2 = e2.systemPropSettingList;
|
|
17
|
-
o().commit("wfEditor/setPropSettingKeyList", r2), d(e2);
|
|
18
|
-
}) : d({});
|
|
19
|
-
}), fetchSubprocessFormFields: (o2, t2) => e().get(window.$vueApp.config.globalProperties.baseAPI + "/wf-editor/workflow-editors/form-fields-with-processes?processCode=" + o2 + "&processVersion=" + t2) };
|
|
20
|
-
module.exports = t;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../common/task-title.vue.cjs"), t = require("../../util.cjs"), o = require("../common/i18n-input.vue.cjs"), l = require("vue");
|
|
3
|
-
require("./basic-properties.vue2.cjs");
|
|
4
|
-
const a = require("../../../../_virtual/_plugin-vue_export-helper.cjs")({ name: "BasicProperties", components: { TaskTitle: e, i18nInput: o }, props: { model: { type: Object, default: null }, id: { type: String, default: null }, name: { type: String, default: null } }, data() {
|
|
5
|
-
return { formModel: { name: this.name, id: this.id, tache: this.model } };
|
|
6
|
-
}, computed: { tache() {
|
|
7
|
-
return this.model;
|
|
8
|
-
} }, mounted() {
|
|
9
|
-
this.$watch("formModel.name", function(e2, t2) {
|
|
10
|
-
this.$emit("update:name", e2);
|
|
11
|
-
});
|
|
12
|
-
}, methods: { validateId() {
|
|
13
|
-
t.validateTacheCode(this);
|
|
14
|
-
}, setI18nValue(e2) {
|
|
15
|
-
this.tache.i18nKey = e2;
|
|
16
|
-
} } }, [["render", function(e2, t2, o2, a2, n, d) {
|
|
17
|
-
const r = l.resolveComponent("i18n-input"), i = l.resolveComponent("el-form-item"), u = l.resolveComponent("el-col"), m = l.resolveComponent("el-input"), c = l.resolveComponent("el-row"), s = l.resolveComponent("el-form");
|
|
18
|
-
return l.openBlock(), l.createBlock(s, { model: n.formModel, "label-width": "110px" }, { default: l.withCtx(() => [l.createVNode(c, null, { default: l.withCtx(() => [l.createVNode(u, { span: 12 }, { default: l.withCtx(() => [l.createVNode(i, { label: e2.$t("workflowEditor.task.name") }, { default: l.withCtx(() => [l.createVNode(r, { modelValue: n.formModel.name, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => n.formModel.name = e3), "i18n-key": d.tache.i18nKey ? d.tache.i18nKey : "name." + n.formModel.id, onSetI18n: d.setI18nValue }, null, 8, ["modelValue", "i18n-key", "onSetI18n"])]), _: 1 }, 8, ["label"])]), _: 1 }), l.createVNode(u, { span: 12 }, { default: l.withCtx(() => [l.createVNode(i, { label: e2.$t("workflowEditor.task.code") }, { default: l.withCtx(() => [l.createVNode(m, { modelValue: n.formModel.id, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => n.formModel.id = e3), onBlur: d.validateId }, null, 8, ["modelValue", "onBlur"])]), _: 1 }, 8, ["label"])]), _: 1 })]), _: 1 }), l.createVNode(i, { label: e2.$t("workflowEditor.task.custombeanName") }, { default: l.withCtx(() => [l.createVNode(m, { modelValue: d.tache.beanName, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => d.tache.beanName = e3) }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["model"]);
|
|
19
|
-
}], ["__scopeId", "data-v-6aef99ff"]]);
|
|
20
|
-
module.exports = a;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("./auto-task/basic-properties.vue.cjs"), t = require("vue");
|
|
3
|
-
require("./auto-task.vue2.cjs");
|
|
4
|
-
const o = require("../../../_virtual/_plugin-vue_export-helper.cjs")({ name: "HumanTaskPropertiesEditor", components: { BasicProperties: e }, props: { model: { type: Object, default: null } }, data() {
|
|
5
|
-
return this.model, this.model.ref.taskNotice || (this.model.ref.taskNotice = {}), { activeTab: "basicProperties", dialogVisible: true };
|
|
6
|
-
}, computed: { formModel() {
|
|
7
|
-
return this.model.ref;
|
|
8
|
-
} }, mounted() {
|
|
9
|
-
this.$watch("model.ref.attr.id", function(e2, t2) {
|
|
10
|
-
this.model.id = e2;
|
|
11
|
-
}), this.$watch("model.ref.attr.name", function(e2, t2) {
|
|
12
|
-
this.model.name = e2;
|
|
13
|
-
});
|
|
14
|
-
}, methods: { handleClick(e2, t2) {
|
|
15
|
-
} } }, [["render", function(e2, o2, r, a, i, l) {
|
|
16
|
-
const d = t.resolveComponent("basic-properties"), s = t.resolveComponent("el-tab-pane"), n = t.resolveComponent("el-tabs"), c = t.resolveComponent("el-dialog");
|
|
17
|
-
return t.openBlock(), t.createBlock(c, { "model-value": "", title: e2.$t("workflowEditor.task.propertiesOfAutoTask"), center: true, top: "10vh", "append-to-body": "", class: "properties-editor", onOpen: o2[3] || (o2[3] = (t2) => e2.$emit("open")), onOpend: o2[4] || (o2[4] = (t2) => e2.$emit("opend")), onClose: o2[5] || (o2[5] = (t2) => e2.$emit("close")), onClosed: o2[6] || (o2[6] = (t2) => e2.$emit("closed")) }, { default: t.withCtx(() => [t.createVNode(n, { modelValue: i.activeTab, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => i.activeTab = e3), type: "border-card", onTabClick: l.handleClick }, { default: t.withCtx(() => [t.createVNode(s, { label: e2.$t("workflowEditor.task.basicProperties"), name: "basicProperties" }, { default: t.withCtx(() => [t.createVNode(d, { id: r.model.ref.attr.id, "onUpdate:id": o2[0] || (o2[0] = (e3) => r.model.ref.attr.id = e3), name: r.model.ref.attr.name, "onUpdate:name": o2[1] || (o2[1] = (e3) => r.model.ref.attr.name = e3), model: r.model.ref.basicProperties }, null, 8, ["id", "name", "model"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["modelValue", "onTabClick"])]), _: 1 }, 8, ["title"]);
|
|
18
|
-
}], ["__scopeId", "data-v-adb7c2ff"]]);
|
|
19
|
-
module.exports = o;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const e = require("./form-fields-utils.cjs"), r = require("../../util.cjs"), t = [{ name: "${approvalResult}", label: r.getI18n().t("workflowEditor.process.approvalResults"), orgType: "other" }, { name: "${instanceCreatorName}", label: r.getI18n().t("workflowEditor.process.processInitiator"), orgType: "user" }, { name: "${instanceCreatorRole}", label: r.getI18n().t("workflowEditor.process.processInitiatorRole"), orgType: "role" }, { name: "${instanceCreatorDepartment}", label: r.getI18n().t("workflowEditor.process.processInitiatorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${superiorDepartment}", label: r.getI18n().t("workflowEditor.process.processInitiatorSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorUpstageDepartment}", label: r.getI18n().t("workflowEditor.process.processInitiatorTopDepartment"), orgType: "department" }, { name: "${instanceCreatorWorkGroup}", label: r.getI18n().t("workflowEditor.process.processInitiatorWorkingGroup"), orgType: "workgroup" }, { name: "${instanceCreatorDirectSuperiorName}", label: r.getI18n().t("workflowEditor.process.sponsorsImmediateSuperior"), orgType: "user" }, { name: "${instanceCreatorDeptApprover}", label: r.getI18n().t("workflowEditor.process.deptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptApprover}", label: r.getI18n().t("workflowEditor.process.superiorDeptApprover"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDeptLeader}", label: r.getI18n().t("workflowEditor.process.superiorDeptLeader"), orgType: "user" }, { name: "${instanceCreatorDirectSuperiorDepartment}", label: r.getI18n().t("workflowEditor.process.processInitiatorsDirectSuperiorDepartment"), orgType: "department", relatedFields: ["upstageDepartment"] }, { name: "${instanceCreatorDirectSuperiorRole}", label: r.getI18n().t("workflowEditor.process.directSuperiorRoleOfProcessInitiator"), orgType: "role" }, { name: "${instanceCreatorDirectSuperiorWorkGroup}", label: r.getI18n().t("workflowEditor.process.ProcessInitiatorsImmediateSuperiorWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorName}", label: r.getI18n().t("workflowEditor.process.nameOfCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorRole}", label: r.getI18n().t("workflowEditor.process.currentHandlerRole"), orgType: "role" }, { name: "${currentTransactorDepartment}", label: r.getI18n().t("workflowEditor.process.currentHandlerDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorSuperiorDepartment}", label: r.getI18n().t("workflowEditor.process.currentHandlerSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorUpstageDepartment}", label: r.getI18n().t("workflowEditor.process.topDepartmentOfCurrentHandler"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment"] }, { name: "${currentTransactorWorkGroup}", label: r.getI18n().t("workflowEditor.process.currentHandlerWorkingGroup"), orgType: "workgroup" }, { name: "${currentTransactorDirectSuperiorName}", label: r.getI18n().t("workflowEditor.process.nameOfTheImmediateSuperiorOfTheCurrentHandler"), orgType: "user", relatedFields: ["instanceCreatorName", "instanceCreatorDirectSuperiorName"] }, { name: "${currentTransactorDirectSuperiorDepartment}", label: r.getI18n().t("workflowEditor.process.currentHandlerDirectSuperiorDepartment"), orgType: "department", relatedFields: ["instanceCreatorDepartment", "superiorDepartment", "instanceCreatorUpstageDepartment", "instanceCreatorDirectSuperiorDepartment", "upstageDepartment"] }, { name: "${currentTransactorDirectSuperiorRole}", label: r.getI18n().t("workflowEditor.process.currentManagerDirectSuperiorRole"), orgType: "role" }, { name: "${currentTransactorDirectSuperiorWorkGroup}", label: r.getI18n().t("workflowEditor.process.workingGroupDirectlyUnderTheCurrentHandler"), orgType: "workgroup" }, { name: "${upstageDepartment}", label: r.getI18n().t("workflowEditor.process.topDepartments"), orgType: "department" }, { name: "${countersignatureDisagreeCount}", label: r.getI18n().t("workflowEditor.process.totalNnumberOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreeCount}", label: r.getI18n().t("workflowEditor.process.totalNumberOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureDisagreePercentage}", label: r.getI18n().t("workflowEditor.process.percentageOfPersonsWhoDisagreeWithTheCountersignature"), orgType: "other", dataType: "INTEGER" }, { name: "${countersignatureAgreePercentage}", label: r.getI18n().t("workflowEditor.process.percentageOfCountersignedAndAgreedPersonnel"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionPercentage}", label: r.getI18n().t("workflowEditor.process.percentageOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstPercentage}", label: r.getI18n().t("workflowEditor.process.percentageOfVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorPercentage}", label: r.getI18n().t("workflowEditor.process.percentageOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }, { name: "${abstentionCount}", label: r.getI18n().t("workflowEditor.process.totalNumberOfAbstentions"), orgType: "other", dataType: "INTEGER" }, { name: "${againstCount}", label: r.getI18n().t("workflowEditor.process.totalVotesAgainst"), orgType: "other", dataType: "INTEGER" }, { name: "${favorCount}", label: r.getI18n().t("workflowEditor.process.totalNumberOfAffirmativeVotes"), orgType: "other", dataType: "INTEGER" }], o = { "condition.operator.or": r.getI18n().t("workflowEditor.process.perhaps"), "condition.operator.and": r.getI18n().t("workflowEditor.process.also") };
|
|
4
|
-
function n(e2) {
|
|
5
|
-
return ["NUMBER", "DOUBLE", "FLOAT", "LONG", "INTEGER", "AMOUNT"].indexOf(e2) >= 0;
|
|
6
|
-
}
|
|
7
|
-
const a = [{ name: "operator.number.gt", label: r.getI18n().t("workflowEditor.process.greaterThan") }, { name: "operator.number.lt", label: r.getI18n().t("workflowEditor.process.lessThan") }, { name: "operator.number.eq", label: r.getI18n().t("workflowEditor.process.beEqualTo") }, { name: "operator.number.le", label: r.getI18n().t("workflowEditor.process.notGreaterThan") }, { name: "operator.number.ge", label: r.getI18n().t("workflowEditor.process.notLessThan") }, { name: "operator.number.ne", label: r.getI18n().t("workflowEditor.process.notEqualTo") }];
|
|
8
|
-
function s(e2) {
|
|
9
|
-
return ["STRING", "TEXT"].indexOf(e2) >= 0;
|
|
10
|
-
}
|
|
11
|
-
const p = [{ name: "operator.text.eq", label: r.getI18n().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: r.getI18n().t("workflowEditor.process.notEqualTo") }, { name: "operator.text.contain", label: r.getI18n().t("workflowEditor.process.contain") }, { name: "operator.text.contain.not", label: r.getI18n().t("workflowEditor.process.notIncluded") }, { name: "operator.text.is.null", label: r.getI18n().t("workflowEditor.process.isNull") }, { name: "operator.text.not.null", label: r.getI18n().t("workflowEditor.process.isNotNull") }];
|
|
12
|
-
function l(e2) {
|
|
13
|
-
return ["DATE", "TIME"].indexOf(e2) >= 0;
|
|
14
|
-
}
|
|
15
|
-
const i = [{ name: "operator.date.gt", label: r.getI18n().t("workflowEditor.process.laterThan") }, { name: "operator.date.lt", label: r.getI18n().t("workflowEditor.process.earlierThan") }, { name: "operator.date.et", label: r.getI18n().t("workflowEditor.process.beEqualTo") }, { name: "operator.date.le", label: r.getI18n().t("workflowEditor.process.noLaterThan") }, { name: "operator.date.ge", label: r.getI18n().t("workflowEditor.process.noEarlierThan") }, { name: "operator.date.ne", label: r.getI18n().t("workflowEditor.process.notEqualTo") }], c = [{ name: "operator.text.eq", label: r.getI18n().t("workflowEditor.process.beEqualTo") }, { name: "operator.text.neq", label: r.getI18n().t("workflowEditor.process.notEqualTo") }];
|
|
16
|
-
function g(e2) {
|
|
17
|
-
return "${approvalResult}" === e2;
|
|
18
|
-
}
|
|
19
|
-
const u = [{ name: "operator.text.eq", label: r.getI18n().t("workflowEditor.process.beEqualTo") }], d = [...a, ...i, ...p, ...c];
|
|
20
|
-
function f(e2) {
|
|
21
|
-
const r2 = t.filter((r3) => r3.name === e2);
|
|
22
|
-
return r2.length > 0 ? r2[0] : null;
|
|
23
|
-
}
|
|
24
|
-
function m(e2) {
|
|
25
|
-
const r2 = f(e2);
|
|
26
|
-
return r2 ? r2.label : e2;
|
|
27
|
-
}
|
|
28
|
-
function w(r2) {
|
|
29
|
-
return r2 ? r2.indexOf("${field[") >= 0 ? e.getFormFieldLabel(r2) : r2.indexOf("${") >= 0 ? m(r2) : r2.indexOf("[") >= 0 ? r2.substring(0, r2.indexOf("[")) : r2 : "";
|
|
30
|
-
}
|
|
31
|
-
function T(e2) {
|
|
32
|
-
const r2 = d.filter((r3) => r3.name === e2);
|
|
33
|
-
return r2.length > 0 ? r2[0].label : "";
|
|
34
|
-
}
|
|
35
|
-
exports.allOperators = d, exports.displayCondition = function(e2) {
|
|
36
|
-
let r2 = "";
|
|
37
|
-
for (const t3 of e2)
|
|
38
|
-
0 !== t3.key.length && void 0 !== t3.operator && "" !== t3.operator && null !== t3.operator && ("operator.text.is.null" === t3.operator || "operator.text.not.null" === t3.operator || "" !== t3.value && void 0 !== t3.value && null !== t3.value) && (r2 = r2 + t3.leftBracket + w(t3.key) + " " + T(t3.operator) + " " + w(t3.value) + t3.rightBracket + " " + o[t3.logicOperator] + " ");
|
|
39
|
-
const t2 = " 或者 ", n2 = " 并且 ";
|
|
40
|
-
return r2.lastIndexOf(t2) + 4 === r2.length ? r2 = r2.substring(0, r2.lastIndexOf(t2)) : r2.lastIndexOf(n2) + 4 === r2.length && (r2 = r2.substring(0, r2.lastIndexOf(n2))), r2;
|
|
41
|
-
}, exports.generateCondition = function(e2) {
|
|
42
|
-
let r2 = "";
|
|
43
|
-
for (const t3 of e2)
|
|
44
|
-
0 === t3.key.length || "" === t3.operator || "" === t3.value && "operator.text.is.null" !== t3.operator && "operator.text.not.null" !== t3.operator || (r2 = r2 + t3.leftBracket + t3.key + " " + t3.operator + " " + t3.value + t3.rightBracket + " " + t3.logicOperator + " ");
|
|
45
|
-
const t2 = " condition.operator.or ", o2 = " condition.operator.and ";
|
|
46
|
-
return r2.lastIndexOf(t2) + 23 === r2.length ? r2 = r2.substring(0, r2.lastIndexOf(t2)) : r2.lastIndexOf(o2) + 24 === r2.length && (r2 = r2.substring(0, r2.lastIndexOf(o2))), r2;
|
|
47
|
-
}, exports.getFieldLabel = w, exports.getOperatorLabel = T, exports.getOperators = function(r2) {
|
|
48
|
-
const t2 = e.getFormField(r2) || f(r2);
|
|
49
|
-
if (t2)
|
|
50
|
-
return n(t2.dataType) ? a : l(t2.dataType) ? i : s(t2.dataType) ? p : g(r2) ? u : c;
|
|
51
|
-
}, exports.getRelatedStandardFields = function(e2) {
|
|
52
|
-
const r2 = t.filter((r3) => r3.name === e2);
|
|
53
|
-
let o2 = [];
|
|
54
|
-
r2.length > 0 && (o2 = r2[0].relatedFields || []);
|
|
55
|
-
const n2 = [];
|
|
56
|
-
return t.forEach((e3) => {
|
|
57
|
-
o2.indexOf(e3.name.substring(2, e3.name.length - 1)) >= 0 && n2.push(e3);
|
|
58
|
-
}), n2;
|
|
59
|
-
}, exports.getStandardField = f, exports.getStandardFieldLabel = m, exports.getStandardFieldsByTacheType = function(e2) {
|
|
60
|
-
if (e2)
|
|
61
|
-
return t;
|
|
62
|
-
const r2 = [];
|
|
63
|
-
return t.forEach((t2) => {
|
|
64
|
-
e2 || "other" === t2.orgType || r2.push(t2);
|
|
65
|
-
}), r2;
|
|
66
|
-
}, exports.isApproveResult = g, exports.isDate = l, exports.isNumber = n, exports.isString = s, exports.isTransitionOtherField = function(e2) {
|
|
67
|
-
if ("${approvalResult}" === e2)
|
|
68
|
-
return false;
|
|
69
|
-
const r2 = t.filter((r3) => r3.name === e2);
|
|
70
|
-
let o2 = false;
|
|
71
|
-
return r2.length > 0 && r2.forEach((r3) => {
|
|
72
|
-
e2 === r3.name && "other" === r3.orgType && (o2 = true);
|
|
73
|
-
}), o2;
|
|
74
|
-
}, exports.logicOperators = o, exports.operatorsForApproveResult = u, exports.operatorsForDate = i, exports.operatorsForNumber = a, exports.operatorsForString = p, exports.operatorsForText = c, exports.parseCondition = function(e2, r2) {
|
|
75
|
-
if (r2 && 0 !== r2.length) {
|
|
76
|
-
let t2 = r2.replace(/ condition.operator.or /g, " condition.operator.or^_^");
|
|
77
|
-
t2 = t2.replace(/ condition.operator.and /g, " condition.operator.and^_^");
|
|
78
|
-
const o2 = t2.split("^_^");
|
|
79
|
-
let n2 = 0;
|
|
80
|
-
for (let r3 of o2) {
|
|
81
|
-
if ("" === r3)
|
|
82
|
-
continue;
|
|
83
|
-
let t3 = "", o3 = "", a2 = "", s2 = "", p2 = "", l2 = "condition.operator.or", i2 = r3.indexOf("${");
|
|
84
|
-
if (i2 > 0 && (t3 = r3.substring(0, i2)), o3 = r3.substring(i2, r3.indexOf(" ")), r3 = r3.substring(r3.indexOf(" ") + 1), a2 = r3.substring(0, r3.indexOf(" ")), r3 = r3.substring(r3.indexOf(" ") + 1), i2 = r3.indexOf(")"), i2 >= 0) {
|
|
85
|
-
s2 = r3.substring(0, i2);
|
|
86
|
-
const e3 = r3.substring(i2);
|
|
87
|
-
i2 = e3.indexOf(")"), p2 = e3.indexOf(" ") >= 0 ? e3.substring(i2, e3.indexOf(" ")) : e3.substring(i2), i2 = r3.indexOf(" condition."), i2 >= 0 && (l2 = r3.substring(i2 + 1));
|
|
88
|
-
} else
|
|
89
|
-
i2 = r3.indexOf(" condition."), i2 > 0 ? (s2 = r3.substring(0, i2), l2 = r3.substring(i2 + 1)) : s2 = r3;
|
|
90
|
-
e2.push({ id: n2, leftBracket: t3, key: o3, operator: a2, value: s2, rightBracket: p2, logicOperator: l2 }), n2++;
|
|
91
|
-
}
|
|
92
|
-
return n2;
|
|
93
|
-
}
|
|
94
|
-
}, exports.standardFields = t;
|