workflow-editor 0.0.81-up → 0.0.81-up-tmp1
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/dist/index.full.min.js +3237 -0
- package/dist/style.css +1 -0
- package/es/_virtual/FileSaver.min.mjs +4 -0
- package/es/_virtual/___vite-browser-external.mjs +6 -0
- package/es/_virtual/__vite-browser-external.mjs +4 -0
- package/es/_virtual/_commonjsHelpers.mjs +30 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/_virtual/clipboard.mjs +4 -0
- package/es/_virtual/dayjs.min.mjs +4 -0
- package/es/_virtual/index.mjs +4 -0
- package/es/_virtual/nprogress.mjs +4 -0
- package/es/_virtual/prism.mjs +4 -0
- package/es/_virtual/sax.mjs +4 -0
- package/es/_virtual/string_decoder.mjs +4 -0
- package/es/_virtual/tinymce.mjs +4 -0
- package/es/_virtual/weekOfYear.mjs +4 -0
- package/es/index.mjs +20 -0
- package/es/plugins/formValidatorUtil.mjs +391 -0
- package/es/plugins/index.mjs +9 -0
- package/es/style.css +1 -0
- package/es/vite.svg +1 -0
- package/es/workflow-editor/index.mjs +14 -0
- package/lib/_virtual/FileSaver.min.cjs +1 -0
- package/lib/_virtual/___vite-browser-external.cjs +1 -0
- package/lib/_virtual/__vite-browser-external.cjs +1 -0
- package/lib/_virtual/_commonjsHelpers.cjs +1 -0
- package/lib/_virtual/_plugin-vue_export-helper.cjs +1 -0
- package/lib/_virtual/clipboard.cjs +1 -0
- package/lib/_virtual/dayjs.min.cjs +1 -0
- package/lib/_virtual/index.cjs +1 -0
- package/lib/_virtual/nprogress.cjs +1 -0
- package/lib/_virtual/prism.cjs +1 -0
- package/lib/_virtual/sax.cjs +1 -0
- package/lib/_virtual/string_decoder.cjs +1 -0
- package/lib/_virtual/tinymce.cjs +1 -0
- package/lib/_virtual/weekOfYear.cjs +1 -0
- package/lib/index.cjs +1 -0
- package/lib/plugins/formValidatorUtil.cjs +1 -0
- package/lib/plugins/index.cjs +1 -0
- package/lib/style.css +1 -0
- package/lib/workflow-editor/index.cjs +1 -0
- package/package.json +5 -3
- package/vite.config.js +44 -10
- package/lib/401-5a92e011.js +0 -101
- package/lib/404-2e472acc.js +0 -26
- package/lib/authredirect-ae6e75b4.js +0 -10
- package/lib/iframe-page-4e84c0f8.js +0 -33
- package/lib/index-27119bd2.js +0 -31464
- package/lib/index-369eae4a.js +0 -13
- package/lib/tab-content-iframe-index-e9146736.js +0 -33
- package/lib/tab-content-index-bbc6792b.js +0 -1241
- package/lib/tache-subprocess-history-d51d6a50.js +0 -56
- package/lib/workflow-editor.css +0 -1
- package/lib/workflow-editor.js +0 -5
- package/lib/workflow-editor.umd.cjs +0 -85
- package/packages/index.js +0 -34
- package/packages/plugins/formValidatorUtil.js +0 -723
- 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 -568
- package/packages/workflow-editor/src/properties-editors/common/additional-condition.vue +0 -320
- 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 -117
- package/packages/workflow-editor/src/properties-editors/common/i18n-input.vue +0 -88
- 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 -149
- package/packages/workflow-editor/src/properties-editors/common/notice.vue +0 -108
- package/packages/workflow-editor/src/properties-editors/common/reminder.vue +0 -272
- 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 -165
- 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 -95
- 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 -224
- 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 -115
- 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 -209
- 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 -852
- package/packages/workflow-editor/src/workflow-history.vue +0 -153
- package/src/i18n/i18n.js +0 -16
- package/src/i18n/langs/cn.js +0 -521
- package/src/i18n/langs/en.js +0 -529
- /package/{public → dist}/vite.svg +0 -0
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import S from "../node_modules/async-validator/dist-web/index.mjs";
|
|
2
|
+
import { getI18n as E } from "../workflow-editor/src/util.mjs";
|
|
3
|
+
import "../node_modules/agilebuilder-ui/es/src/utils/insert_css.mjs";
|
|
4
|
+
import "../node_modules/agilebuilder-ui/es/src/store/index.mjs";
|
|
5
|
+
import "../node_modules/agilebuilder-ui/es/breadcrumb/index.mjs";
|
|
6
|
+
import "../node_modules/agilebuilder-ui/es/department-tree/index.mjs";
|
|
7
|
+
import "../node_modules/agilebuilder-ui/es/hamburger/index.mjs";
|
|
8
|
+
import "../node_modules/agilebuilder-ui/es/svg-icon/index.mjs";
|
|
9
|
+
import "../node_modules/agilebuilder-ui/es/super-grid/index.mjs";
|
|
10
|
+
import "../node_modules/agilebuilder-ui/es/department-user-tree/index.mjs";
|
|
11
|
+
import "../node_modules/agilebuilder-ui/es/workgroup-tree/index.mjs";
|
|
12
|
+
import "../node_modules/agilebuilder-ui/es/workgroup-user-tree/index.mjs";
|
|
13
|
+
import "../node_modules/agilebuilder-ui/es/department-tree-inline/index.mjs";
|
|
14
|
+
import "../node_modules/agilebuilder-ui/es/department-user-tree-inline/index.mjs";
|
|
15
|
+
import "../node_modules/agilebuilder-ui/es/workgroup-tree-inline/index.mjs";
|
|
16
|
+
import "../node_modules/agilebuilder-ui/es/workgroup-user-tree-inline/index.mjs";
|
|
17
|
+
import "../node_modules/agilebuilder-ui/es/workflow-button/index.mjs";
|
|
18
|
+
import "../node_modules/agilebuilder-ui/es/workflow-history-list/index.mjs";
|
|
19
|
+
import "../node_modules/agilebuilder-ui/es/valid-code/index.mjs";
|
|
20
|
+
import "vue";
|
|
21
|
+
import "../node_modules/js-cookie/dist/js.cookie.mjs";
|
|
22
|
+
import "../node_modules/agilebuilder-ui/es/src/utils/request.mjs";
|
|
23
|
+
import "../node_modules/agilebuilder-ui/es/src/i18n/i18n.mjs";
|
|
24
|
+
import { parseSubTablePermissionCondition as $ } from "../node_modules/agilebuilder-ui/es/src/utils/calculator/calculator-util.mjs";
|
|
25
|
+
import "../node_modules/agilebuilder-ui/es/super-grid/src/formatter.mjs";
|
|
26
|
+
import "../node_modules/agilebuilder-ui/es/remove-user/index.mjs";
|
|
27
|
+
import "../node_modules/agilebuilder-ui/es/remove-department/index.mjs";
|
|
28
|
+
import "../node_modules/agilebuilder-ui/es/remove-workgroup/index.mjs";
|
|
29
|
+
import "../node_modules/agilebuilder-ui/es/organization-input/index.mjs";
|
|
30
|
+
import "../node_modules/agilebuilder-ui/es/super-nine-grid/index.mjs";
|
|
31
|
+
import "../node_modules/agilebuilder-ui/es/dynamic-source-select/index.mjs";
|
|
32
|
+
import "../node_modules/agilebuilder-ui/es/fs-upload/index.mjs";
|
|
33
|
+
import "../node_modules/agilebuilder-ui/es/scan-code-input/index.mjs";
|
|
34
|
+
import "../node_modules/agilebuilder-ui/es/fs-preview/index.mjs";
|
|
35
|
+
import "../node_modules/agilebuilder-ui/es/fs-upload-list/index.mjs";
|
|
36
|
+
import "../node_modules/agilebuilder-ui/es/year-range-picker/index.mjs";
|
|
37
|
+
import "../node_modules/agilebuilder-ui/es/multipart-upload/index.mjs";
|
|
38
|
+
import "../node_modules/agilebuilder-ui/es/rich-editor/index.mjs";
|
|
39
|
+
import "../node_modules/agilebuilder-ui/es/secret-info/index.mjs";
|
|
40
|
+
import "../node_modules/agilebuilder-ui/es/IntervalSelection/index.mjs";
|
|
41
|
+
import "../node_modules/agilebuilder-ui/es/department-tree-mobile/index.mjs";
|
|
42
|
+
import "../node_modules/agilebuilder-ui/es/department-user-tree-mobile/index.mjs";
|
|
43
|
+
import "../node_modules/agilebuilder-ui/es/super-icon/index.mjs";
|
|
44
|
+
import "../node_modules/agilebuilder-ui/es/fs-upload-new/index.mjs";
|
|
45
|
+
import "../node_modules/agilebuilder-ui/es/scan-code-input-browser/index.mjs";
|
|
46
|
+
import "../node_modules/agilebuilder-ui/es/workgroup-tree-mobile/index.mjs";
|
|
47
|
+
import "../node_modules/agilebuilder-ui/es/row-form/index.mjs";
|
|
48
|
+
import "../node_modules/agilebuilder-ui/es/src/components/Affix/index.vue.mjs";
|
|
49
|
+
import "../node_modules/agilebuilder-ui/es/chat-embed/index.mjs";
|
|
50
|
+
import "../node_modules/agilebuilder-ui/es/chat-embed/src/voice/index.mjs";
|
|
51
|
+
import "../node_modules/agilebuilder-ui/es/date-picker-range/index.mjs";
|
|
52
|
+
import "../node_modules/agilebuilder-ui/es/src/components/Card/index.mjs";
|
|
53
|
+
import "../node_modules/agilebuilder-ui/es/src/components/Scrollbar/index.vue.mjs";
|
|
54
|
+
import "../node_modules/agilebuilder-ui/es/src/router/index.mjs";
|
|
55
|
+
import "../node_modules/agilebuilder-ui/es/src/utils/eventBus.mjs";
|
|
56
|
+
import "../node_modules/agilebuilder-ui/es/src/utils/local-storage.mjs";
|
|
57
|
+
import "../node_modules/nprogress/nprogress.css.mjs";
|
|
58
|
+
import "../node_modules/agilebuilder-ui/es/src/views/dsc-component/Sidebar/index.vue.mjs";
|
|
59
|
+
import "../node_modules/agilebuilder-ui/es/src/views/dsc-component/tabs/tab-content.vue.mjs";
|
|
60
|
+
import "../node_modules/agilebuilder-ui/es/src/views/layout/EmptyLayout.vue.mjs";
|
|
61
|
+
import "../node_modules/agilebuilder-ui/es/src/views/layout/Layout.vue.mjs";
|
|
62
|
+
import "../node_modules/agilebuilder-ui/es/src/views/layout/NewLayout.vue.mjs";
|
|
63
|
+
import "../node_modules/agilebuilder-ui/es/src/views/layout/components/Menubar/index.vue.mjs";
|
|
64
|
+
import "../node_modules/agilebuilder-ui/es/src/permission.mjs";
|
|
65
|
+
import "../node_modules/agilebuilder-ui/es/breadcrumb/src/breadcrumb.vue.mjs";
|
|
66
|
+
import "../node_modules/agilebuilder-ui/es/department-tree/src/department-tree.vue.mjs";
|
|
67
|
+
import "../node_modules/agilebuilder-ui/es/hamburger/src/hamburger.vue.mjs";
|
|
68
|
+
import "../node_modules/agilebuilder-ui/es/svg-icon/src/svg-icon.vue.mjs";
|
|
69
|
+
import "../node_modules/agilebuilder-ui/es/super-grid/src/super-grid.vue.mjs";
|
|
70
|
+
import "../node_modules/agilebuilder-ui/es/department-user-tree/src/department-user-tree.vue.mjs";
|
|
71
|
+
import "../node_modules/agilebuilder-ui/es/workgroup-tree/src/workgroup-tree.vue.mjs";
|
|
72
|
+
import "../node_modules/agilebuilder-ui/es/workgroup-user-tree/src/workgroup-user-tree.vue.mjs";
|
|
73
|
+
import "../node_modules/agilebuilder-ui/es/department-tree-inline/src/department-tree-inline.vue.mjs";
|
|
74
|
+
import "../node_modules/agilebuilder-ui/es/department-user-tree-inline/src/department-user-tree-inline.vue.mjs";
|
|
75
|
+
import "../node_modules/agilebuilder-ui/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.mjs";
|
|
76
|
+
import "../node_modules/agilebuilder-ui/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.mjs";
|
|
77
|
+
import "../node_modules/agilebuilder-ui/es/workflow-button/src/workflow-button.vue.mjs";
|
|
78
|
+
import "../node_modules/agilebuilder-ui/es/workflow-history-list/src/workflow-history-list.vue.mjs";
|
|
79
|
+
import "../node_modules/agilebuilder-ui/es/valid-code/src/valid-code.vue.mjs";
|
|
80
|
+
import "../node_modules/agilebuilder-ui/es/remove-user/src/remove-user.vue.mjs";
|
|
81
|
+
import "../node_modules/agilebuilder-ui/es/remove-department/src/remove-department.vue.mjs";
|
|
82
|
+
import "../node_modules/agilebuilder-ui/es/remove-workgroup/src/remove-workgroup.vue.mjs";
|
|
83
|
+
import "../node_modules/agilebuilder-ui/es/organization-input/src/organization-input.vue.mjs";
|
|
84
|
+
import "../node_modules/agilebuilder-ui/es/super-nine-grid/src/super-nine-grid.vue.mjs";
|
|
85
|
+
import "../node_modules/agilebuilder-ui/es/dynamic-source-select/src/dynamic-source-select.vue.mjs";
|
|
86
|
+
import "../node_modules/agilebuilder-ui/es/fs-upload/src/fs-upload.vue.mjs";
|
|
87
|
+
import "../node_modules/agilebuilder-ui/es/scan-code-input/src/scan-code-input.vue.mjs";
|
|
88
|
+
import "../node_modules/agilebuilder-ui/es/fs-preview/src/fs-preview.vue.mjs";
|
|
89
|
+
import "../node_modules/agilebuilder-ui/es/fs-upload-list/src/fs-upload-list.vue.mjs";
|
|
90
|
+
import "../node_modules/agilebuilder-ui/es/year-range-picker/src/year-range-picker.vue.mjs";
|
|
91
|
+
import "../node_modules/agilebuilder-ui/es/multipart-upload/src/index.vue.mjs";
|
|
92
|
+
import "../node_modules/agilebuilder-ui/es/rich-editor/index.vue.mjs";
|
|
93
|
+
import "../node_modules/agilebuilder-ui/es/secret-info/index.vue.mjs";
|
|
94
|
+
import "../node_modules/agilebuilder-ui/es/IntervalSelection/src/sectionDate.vue.mjs";
|
|
95
|
+
import "../node_modules/agilebuilder-ui/es/department-tree-mobile/src/department-tree-app.vue.mjs";
|
|
96
|
+
import "../node_modules/agilebuilder-ui/es/department-user-tree-mobile/src/department-user-tree-app.vue.mjs";
|
|
97
|
+
import "../node_modules/agilebuilder-ui/es/super-icon/src/index.vue.mjs";
|
|
98
|
+
import "../node_modules/agilebuilder-ui/es/fs-upload-new/src/fs-upload-new.vue.mjs";
|
|
99
|
+
import "../node_modules/agilebuilder-ui/es/scan-code-input-browser/src/scan-code-input.vue.mjs";
|
|
100
|
+
import "../node_modules/agilebuilder-ui/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.mjs";
|
|
101
|
+
import "../node_modules/agilebuilder-ui/es/row-form/index.vue.mjs";
|
|
102
|
+
import "../node_modules/agilebuilder-ui/es/chat-embed/src/index.vue.mjs";
|
|
103
|
+
import "../node_modules/agilebuilder-ui/es/chat-embed/src/voice/js/crypto-js.mjs";
|
|
104
|
+
import "../node_modules/agilebuilder-ui/es/chat-embed/src/voice/js/processor/index.umd.mjs";
|
|
105
|
+
import "../node_modules/agilebuilder-ui/es/date-picker-range/index.vue.mjs";
|
|
106
|
+
function R(e, r) {
|
|
107
|
+
const t = {}, o = e.dataType;
|
|
108
|
+
return o === "DATE" || o === "TIME" ? (t.type = "date", A(t), t.message = e.label + " " + E().t("workflowEditorMessage.requiredAndMustBeADate")) : o === "INTEGER" || o === "LONG" ? (t.pattern = /^-?\d+$/, t.message = e.label + " " + E().t("workflowEditorMessage.requiredAndMustBeAnInteger")) : o === "FLOAT" || o === "DOUBLE" ? (t.pattern = new RegExp("^(-?\\d+)(\\.\\d+)?$"), t.message = e.label + " " + E().t("workflowEditorMessage.requiredAndMustBeDecimal")) : o === "BOOLEAN" ? (t.type = "boolean", t.message = e.label + " " + E().t("workflowEditorMessage.mustFill"), A(t)) : t.message = e.label + " " + E().t("workflowEditorMessage.mustFill"), e.canEdit && (t.required = !0, t.trigger = "blur"), e.rowIndexes && (t.rowIndexes = e.rowIndexes), e.condition && (t.condition = e.condition), r[e.name] = e.dataType, t;
|
|
109
|
+
}
|
|
110
|
+
function A(e) {
|
|
111
|
+
e && e.type && e.type === "boolean" ? e.validator = function(r, t, o) {
|
|
112
|
+
return t == null ? !r.required : typeof t == "number" && (t === 1 || t === 0) ? !0 : typeof t == "boolean" && (t === !0 || t === !1);
|
|
113
|
+
} : e && e.type && e.type === "date" && (e.validator = function(r, t, o) {
|
|
114
|
+
if (t == null)
|
|
115
|
+
return !r.required;
|
|
116
|
+
{
|
|
117
|
+
const i = new Date(t);
|
|
118
|
+
return !isNaN(i.getTime());
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function B(e, r, t, o) {
|
|
123
|
+
const i = {};
|
|
124
|
+
let n = e.name;
|
|
125
|
+
t === !0 && (n = n), r || (r = {});
|
|
126
|
+
const u = n.split(".");
|
|
127
|
+
for (let l = 0; l < u.length; l++) {
|
|
128
|
+
const s = u[l];
|
|
129
|
+
let p;
|
|
130
|
+
if (l === u.length - 1)
|
|
131
|
+
p = z(i, u, s), p.fields[s] = R(e, o);
|
|
132
|
+
else {
|
|
133
|
+
let a;
|
|
134
|
+
l === 0 ? p = r : (a = K(i, u, u[l - 1]), p = a.fields), p[s] || (p[s] = {
|
|
135
|
+
type: "object",
|
|
136
|
+
required: !0,
|
|
137
|
+
fields: {}
|
|
138
|
+
}), l === 0 ? i[s] = p[s] : a.fields[s] = p[s];
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function K(e, r, t) {
|
|
143
|
+
let o;
|
|
144
|
+
for (let i = 0; i < r.length; i++) {
|
|
145
|
+
const n = r[i];
|
|
146
|
+
if (i === 0 ? o = e[n] : o = o.fields[r[i]], n === t)
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
return o;
|
|
150
|
+
}
|
|
151
|
+
function z(e, r, t) {
|
|
152
|
+
let o;
|
|
153
|
+
for (let i = 0; i < r.length && (i === 0 ? o = e[r[i]] : o = o.fields[r[i]], !(i !== r.length - 1 && r[i + 1] === t)); i++)
|
|
154
|
+
;
|
|
155
|
+
return o;
|
|
156
|
+
}
|
|
157
|
+
function G(e, r, t, o, i, n) {
|
|
158
|
+
typeof t > "u" && (t = !1);
|
|
159
|
+
const u = {}, l = {}, s = {}, p = {};
|
|
160
|
+
return e && e.forEach((m) => {
|
|
161
|
+
const c = m.canEdit;
|
|
162
|
+
if (typeof c < "u" && c === !0) {
|
|
163
|
+
let f = m.name;
|
|
164
|
+
if (f) {
|
|
165
|
+
t === !0 && (f = f);
|
|
166
|
+
const g = m.condition, b = null;
|
|
167
|
+
let d = null;
|
|
168
|
+
if (f.indexOf(".") > 0 && f.indexOf("$") === 0 ? d = !0 : d = $(
|
|
169
|
+
g,
|
|
170
|
+
l,
|
|
171
|
+
b,
|
|
172
|
+
r,
|
|
173
|
+
o,
|
|
174
|
+
i,
|
|
175
|
+
n
|
|
176
|
+
), d != null && d === !0) {
|
|
177
|
+
let y = {};
|
|
178
|
+
if (f.indexOf(".") > 0)
|
|
179
|
+
f.indexOf("$") === 0 ? Z(m, p, r, t, l) : I(m, u, r, t, l);
|
|
180
|
+
else if (f.indexOf("$") === 0) {
|
|
181
|
+
const w = f.substring(f.indexOf("$") + 1);
|
|
182
|
+
s[w] = {
|
|
183
|
+
required: !0,
|
|
184
|
+
message: E().t("workflowEditorMessage.subTableMustInputDatas", {
|
|
185
|
+
subTable: m.label
|
|
186
|
+
})
|
|
187
|
+
};
|
|
188
|
+
} else
|
|
189
|
+
y = R(m, l), u[f] = y;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}), Object.keys(p).length > 0 || Object.keys(s).length > 0 ? {
|
|
194
|
+
rules: u,
|
|
195
|
+
subRules: p,
|
|
196
|
+
totalSubRules: s,
|
|
197
|
+
dataTypeMap: l
|
|
198
|
+
} : u;
|
|
199
|
+
}
|
|
200
|
+
function I(e, r, t, o, i) {
|
|
201
|
+
let n = e.name;
|
|
202
|
+
o === !0 && (n = n);
|
|
203
|
+
const u = n.substring(0, n.indexOf("."));
|
|
204
|
+
if (t) {
|
|
205
|
+
t[u] || (t[u] = {});
|
|
206
|
+
const l = t[u], s = n.substring(n.indexOf(".") + 1);
|
|
207
|
+
U(s, l) && B(e, r, o, i);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
function U(e, r) {
|
|
211
|
+
if (e.indexOf(".") > 0) {
|
|
212
|
+
let t = r;
|
|
213
|
+
const o = e.split(".");
|
|
214
|
+
for (let i = 0; i < o.length - 1; i++) {
|
|
215
|
+
const n = o[i];
|
|
216
|
+
if (!t || !t[n])
|
|
217
|
+
return !1;
|
|
218
|
+
t = t[n];
|
|
219
|
+
}
|
|
220
|
+
return !0;
|
|
221
|
+
} else
|
|
222
|
+
return !0;
|
|
223
|
+
}
|
|
224
|
+
function Z(e, r, t, o, i) {
|
|
225
|
+
let n = e.name;
|
|
226
|
+
o === !0 && (n = n);
|
|
227
|
+
const u = n.substring(n.indexOf("$") + 1, n.indexOf("."));
|
|
228
|
+
if (!t)
|
|
229
|
+
return;
|
|
230
|
+
const l = t[u], s = n.substring(n.indexOf(".") + 1);
|
|
231
|
+
r[u] || (r[u] = {});
|
|
232
|
+
const p = JSON.parse(JSON.stringify(e));
|
|
233
|
+
if (p.name = s, s.indexOf(".") > 0) {
|
|
234
|
+
if (typeof l < "u" && l === null && l.length === 0) {
|
|
235
|
+
const a = l[0];
|
|
236
|
+
I(p, r[u], a, o, i);
|
|
237
|
+
}
|
|
238
|
+
} else
|
|
239
|
+
r[u][s] = R(p, i);
|
|
240
|
+
}
|
|
241
|
+
function D(e, r, t, o, i, n, u) {
|
|
242
|
+
return J(e, r, t, !0, o, i, n, u);
|
|
243
|
+
}
|
|
244
|
+
function J(e, r, t, o, i, n, u, l) {
|
|
245
|
+
let s = !1;
|
|
246
|
+
const p = new S(r);
|
|
247
|
+
let a;
|
|
248
|
+
if (p.validate(
|
|
249
|
+
e,
|
|
250
|
+
{
|
|
251
|
+
first: !0
|
|
252
|
+
},
|
|
253
|
+
(m, c) => {
|
|
254
|
+
if (m) {
|
|
255
|
+
const f = m[0].message;
|
|
256
|
+
a = m[0].field, typeof t < "u" && t !== null ? n !== void 0 && u !== void 0 ? s = E().t("workflowEditorMessage.pageRecordLine", {
|
|
257
|
+
pageNum: n,
|
|
258
|
+
row: u
|
|
259
|
+
}) + "," + f : s = E().t("workflowEditorMessage.recordLine", {
|
|
260
|
+
row: t + 1
|
|
261
|
+
}) + "," + f : s = f;
|
|
262
|
+
} else
|
|
263
|
+
s = !0;
|
|
264
|
+
if (a && o === !0 && i !== void 0 && i === !0 && /[A-Z]+/.test(a) && e[a.toLowerCase()] !== void 0) {
|
|
265
|
+
const g = JSON.parse(JSON.stringify(e));
|
|
266
|
+
g[a.toUpperCase()] = e[a.toLowerCase()], delete g[a.toLowerCase()], s = J(g, r, t, !1, i, n, u);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
), l) {
|
|
270
|
+
let m = { msg: s, field: a };
|
|
271
|
+
return n !== void 0 && u !== void 0 ? (m.pageNum = n, m.rowIndex = u) : m.rowIndex = t, m;
|
|
272
|
+
} else
|
|
273
|
+
return s;
|
|
274
|
+
}
|
|
275
|
+
function q(e, r, t, o, i, n, u, l, s, p) {
|
|
276
|
+
let a = {};
|
|
277
|
+
if (t && (a = JSON.parse(JSON.stringify(t))), r) {
|
|
278
|
+
console.log("formValidator333--subRules=", r);
|
|
279
|
+
const m = Object.keys(r);
|
|
280
|
+
for (let c = 0; c < m.length; c++) {
|
|
281
|
+
const f = m[c], g = r[f];
|
|
282
|
+
console.log("formValidator44--subFieldRule=", g);
|
|
283
|
+
const b = Object.keys(g);
|
|
284
|
+
console.log("formValidator555--subFieldProps=", b);
|
|
285
|
+
let d = e[f];
|
|
286
|
+
d || (d = []);
|
|
287
|
+
const y = C(a, e, f);
|
|
288
|
+
if (y !== !0)
|
|
289
|
+
return delete a[f], p ? { msg: y, listCode: f } : y;
|
|
290
|
+
let w, T = [];
|
|
291
|
+
s && s[f] && (w = s[f].pageSize, T = s[f].fields || []);
|
|
292
|
+
for (let O = 0; O < d.length; O++) {
|
|
293
|
+
const V = d[O], x = N(
|
|
294
|
+
b,
|
|
295
|
+
g,
|
|
296
|
+
d[O],
|
|
297
|
+
i,
|
|
298
|
+
e,
|
|
299
|
+
n,
|
|
300
|
+
u,
|
|
301
|
+
l,
|
|
302
|
+
T
|
|
303
|
+
);
|
|
304
|
+
console.log("formValidator666--rowRule=", x);
|
|
305
|
+
let j, L;
|
|
306
|
+
w !== void 0 && w > 0 && (j = Math.ceil((O + 1) / w), L = O + 1 - (j - 1) * w), Object.keys(x).forEach((M) => {
|
|
307
|
+
const k = x[M];
|
|
308
|
+
if (k && k.rules && (x[M] = k.rules), k && k.beforeValidate) {
|
|
309
|
+
const P = k.beforeValidate;
|
|
310
|
+
typeof P == "function" && P({
|
|
311
|
+
row: V,
|
|
312
|
+
parent: e,
|
|
313
|
+
rowIndex: O
|
|
314
|
+
}) === !1 && (x[M] = []);
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
const h = D(V, x, O, o, j, L, p);
|
|
318
|
+
if (!p && h !== !0 || p && h.msg !== !0)
|
|
319
|
+
return p && (h.listCode = f), h;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
for (const m in a) {
|
|
324
|
+
const c = C(a, e, m);
|
|
325
|
+
if (c !== !0)
|
|
326
|
+
return p ? { msg: c, listCode: m } : c;
|
|
327
|
+
}
|
|
328
|
+
return p ? { msg: !0 } : !0;
|
|
329
|
+
}
|
|
330
|
+
function H(e) {
|
|
331
|
+
if (e && e.id)
|
|
332
|
+
return e.id;
|
|
333
|
+
if (e && e.ID)
|
|
334
|
+
return e.ID;
|
|
335
|
+
}
|
|
336
|
+
function N(e, r, t, o, i, n, u, l, s) {
|
|
337
|
+
const p = H(t), a = {};
|
|
338
|
+
for (let m = 0; m < e.length; m++) {
|
|
339
|
+
const c = e[m];
|
|
340
|
+
if (s.indexOf(c) < 0)
|
|
341
|
+
continue;
|
|
342
|
+
const f = r[c], g = f.condition, b = $(
|
|
343
|
+
g,
|
|
344
|
+
o,
|
|
345
|
+
i,
|
|
346
|
+
t,
|
|
347
|
+
n,
|
|
348
|
+
u,
|
|
349
|
+
l
|
|
350
|
+
);
|
|
351
|
+
if (b != null && b === !0)
|
|
352
|
+
if (p === void 0)
|
|
353
|
+
a[c] = f;
|
|
354
|
+
else {
|
|
355
|
+
const d = f.rowIndexes;
|
|
356
|
+
(!d || d.indexOf(p) >= 0) && (a[c] = f);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
return a;
|
|
360
|
+
}
|
|
361
|
+
function C(e, r, t) {
|
|
362
|
+
let o = r[t];
|
|
363
|
+
return o || (o = []), o.length === 0 && e && e[t] && e[t].required !== void 0 && e[t].required === !0 ? e[t].message : !0;
|
|
364
|
+
}
|
|
365
|
+
function Q(e, r, t, o, i, n, u, l) {
|
|
366
|
+
const s = Object.keys(r);
|
|
367
|
+
if (s.indexOf("rules") >= 0 && s.indexOf("subRules") >= 0 && s.indexOf("totalSubRules") >= 0) {
|
|
368
|
+
const p = r.rules, a = r.subRules, m = r.totalSubRules, c = r.dataTypeMap;
|
|
369
|
+
let f = D(e, p, null, t, null, null, l);
|
|
370
|
+
return (!l && f === !0 || l && f.msg === !0) && (a || m) && (f = q(
|
|
371
|
+
e,
|
|
372
|
+
a,
|
|
373
|
+
m,
|
|
374
|
+
t,
|
|
375
|
+
c,
|
|
376
|
+
o,
|
|
377
|
+
i,
|
|
378
|
+
n,
|
|
379
|
+
u,
|
|
380
|
+
l
|
|
381
|
+
)), f;
|
|
382
|
+
} else
|
|
383
|
+
return D(e, r, null, t, null, null, l);
|
|
384
|
+
}
|
|
385
|
+
const Ne = {
|
|
386
|
+
formValidator: Q,
|
|
387
|
+
getValidator: G
|
|
388
|
+
};
|
|
389
|
+
export {
|
|
390
|
+
Ne as default
|
|
391
|
+
};
|