service-flow-designer 2.1.96 → 2.2.2
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/es/_virtual/_plugin-vue_export-helper.js +1 -2
- package/dist/es/designer/common/components/database-select.vue.d.ts +5 -5
- package/dist/es/designer/common/components/database-select.vue.js +1 -1
- package/dist/es/designer/common/components/database-select.vue2.js +4 -4
- package/dist/es/designer/common/components/datatable-select.vue.d.ts +5 -5
- package/dist/es/designer/common/components/datatable-select.vue.js +2 -2
- package/dist/es/designer/common/components/datatable-select.vue2.js +11 -10
- package/dist/es/designer/common/components/file-upload.vue.d.ts +5 -5
- package/dist/es/designer/common/components/file-upload.vue.js +1 -1
- package/dist/es/designer/common/components/file-upload.vue2.js +4 -4
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue.d.ts +5 -5
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue.js +3 -3
- package/dist/es/designer/common/components/json-view/json-view.vue.d.ts +4 -4
- package/dist/es/designer/common/components/json-view/json-view.vue.js +2 -54
- package/dist/es/designer/common/components/json-view/json-view.vue2.js +52 -2
- package/dist/es/designer/common/components/node-base-config.vue.d.ts +4 -4
- package/dist/es/designer/common/components/node-base-config.vue.js +4 -4
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.d.ts +5 -5
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.js +2 -2
- package/dist/es/designer/common/components/sql-view/sql-view.vue.d.ts +4 -4
- package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +3 -4
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue.d.ts +6 -6
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue.js +1 -1
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +85 -95
- package/dist/es/designer/common/util/node-util.js +9 -21
- package/dist/es/designer/desginer-index.vue.d.ts +4 -4
- package/dist/es/designer/desginer-index.vue.js +1 -1
- package/dist/es/designer/desginer-index.vue2.js +4 -4
- package/dist/es/designer/flow/base/AbLogicNode.js +2 -6
- package/dist/es/designer/flow/base/AbLogicNodeModel.js +2 -6
- package/dist/es/designer/flow/base/AbLogicResizeNode.js +2 -6
- package/dist/es/designer/flow/base/AbLogicResizeNodeModel.js +1 -4
- package/dist/es/designer/flow/edge/CustomLine.js +4 -4
- package/dist/es/designer/service-components/base/custom-function/config.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/custom-function/config.vue.js +1 -1
- package/dist/es/designer/service-components/base/custom-function/config.vue2.js +45 -45
- package/dist/es/designer/service-components/base/custom-function/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/custom-function/index.vue.js +1 -1
- package/dist/es/designer/service-components/base/custom-function/index.vue2.js +6 -6
- package/dist/es/designer/service-components/base/end-node/index.js +2 -6
- package/dist/es/designer/service-components/base/end-node/index.vue.d.ts +3 -3
- package/dist/es/designer/service-components/base/end-node/index.vue.js +1 -1
- package/dist/es/designer/service-components/base/end-node/index.vue2.js +4 -4
- package/dist/es/designer/service-components/base/judge-condition/config.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/judge-condition/config.vue2.js +19 -21
- package/dist/es/designer/service-components/base/judge-condition/index.js +1 -4
- package/dist/es/designer/service-components/base/judge-condition/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/judge-condition/index.vue.js +1 -1
- package/dist/es/designer/service-components/base/judge-condition/index.vue2.js +7 -7
- package/dist/es/designer/service-components/base/loop-node/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/base/loop-node/config.vue.js +1 -1
- package/dist/es/designer/service-components/base/loop-node/config.vue2.js +4 -4
- package/dist/es/designer/service-components/base/loop-node/index.js +2 -3
- package/dist/es/designer/service-components/base/loop-node/index.vue.d.ts +3 -3
- package/dist/es/designer/service-components/base/notification/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/base/notification/config.vue2.js +13 -13
- package/dist/es/designer/service-components/base/notification/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/notification/index.vue.js +1 -1
- package/dist/es/designer/service-components/base/notification/index.vue2.js +6 -6
- package/dist/es/designer/service-components/base/notification/quill-example.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/notification/recipients-select.vue.d.ts +4 -4
- package/dist/es/designer/service-components/base/notification/recipients-select.vue.js +1 -1
- package/dist/es/designer/service-components/base/notification/recipients-select.vue2.js +4 -4
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue.js +4 -4
- package/dist/es/designer/service-components/base/start-node/index.js +2 -6
- package/dist/es/designer/service-components/base/start-node/index.vue.d.ts +3 -3
- package/dist/es/designer/service-components/base/start-node/index.vue.js +1 -1
- package/dist/es/designer/service-components/base/start-node/index.vue2.js +4 -4
- package/dist/es/designer/service-components/computation/clean/config.vue.d.ts +5 -5
- package/dist/es/designer/service-components/computation/clean/config.vue.js +1 -1
- package/dist/es/designer/service-components/computation/clean/config.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/clean/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/computation/clean/index.vue.js +1 -1
- package/dist/es/designer/service-components/computation/clean/index.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/connect/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/computation/connect/config.vue.js +1 -1
- package/dist/es/designer/service-components/computation/connect/config.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/connect/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/computation/connect/index.vue.js +1 -1
- package/dist/es/designer/service-components/computation/connect/index.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/sort/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/computation/sort/config.vue.js +1 -1
- package/dist/es/designer/service-components/computation/sort/config.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/sort/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/computation/sort/index.vue.js +1 -1
- package/dist/es/designer/service-components/computation/sort/index.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/split-joint/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/computation/split-joint/config.vue.js +1 -1
- package/dist/es/designer/service-components/computation/split-joint/config.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/split-joint/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/computation/split-joint/index.vue.js +1 -1
- package/dist/es/designer/service-components/computation/split-joint/index.vue2.js +6 -6
- package/dist/es/designer/service-components/computation/statistics/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/computation/statistics/config.vue.js +1 -1
- package/dist/es/designer/service-components/computation/statistics/config.vue2.js +7 -7
- package/dist/es/designer/service-components/computation/statistics/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/computation/statistics/index.vue.js +1 -1
- package/dist/es/designer/service-components/computation/statistics/index.vue2.js +6 -6
- package/dist/es/designer/service-components/database/aggregate-query/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/database/aggregate-query/config.vue.js +1 -1
- package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +57 -59
- package/dist/es/designer/service-components/database/aggregate-query/dimension-additional.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue.js +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.d.ts +4 -4
- package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.js +8 -9
- package/dist/es/designer/service-components/database/aggregate-query/index.js +1 -4
- package/dist/es/designer/service-components/database/aggregate-query/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/index.vue.js +1 -1
- package/dist/es/designer/service-components/database/aggregate-query/index.vue2.js +13 -16
- package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue.d.ts +4 -4
- package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue.js +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.js +5 -5
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue.js +1 -1
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +54 -54
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue.js +1 -1
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue2.js +6 -6
- package/dist/es/designer/service-components/database/regular-query/config.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/regular-query/config.vue.js +1 -1
- package/dist/es/designer/service-components/database/regular-query/config.vue2.js +6 -7
- package/dist/es/designer/service-components/database/regular-query/index.js +1 -4
- package/dist/es/designer/service-components/database/regular-query/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/regular-query/index.vue.js +1 -1
- package/dist/es/designer/service-components/database/regular-query/index.vue2.js +13 -16
- package/dist/es/designer/service-components/index.js +2 -4
- package/dist/es/designer/service-components/service/common/cookie-data.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/common/cookie-data.vue.js +5 -5
- package/dist/es/designer/service-components/service/common/form-data.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/common/form-data.vue.js +5 -5
- package/dist/es/designer/service-components/service/common/header-data.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/common/header-data.vue.js +5 -5
- package/dist/es/designer/service-components/service/common/json-data.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/common/json-data.vue.js +1 -1
- package/dist/es/designer/service-components/service/common/json-data.vue2.js +5 -5
- package/dist/es/designer/service-components/service/common/param-config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/service/common/param-config.vue.js +1 -1
- package/dist/es/designer/service-components/service/common/param-config.vue2.js +14 -14
- package/dist/es/designer/service-components/service/common/query-params.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/common/query-params.vue.js +5 -5
- package/dist/es/designer/service-components/service/common/raw-data.vue.d.ts +6 -6
- package/dist/es/designer/service-components/service/common/raw-data.vue.js +2 -2
- package/dist/es/designer/service-components/service/common/xml-data.vue.d.ts +6 -6
- package/dist/es/designer/service-components/service/custom-bean/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +4 -4
- package/dist/es/designer/service-components/service/custom-bean/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/custom-bean/index.vue.js +1 -1
- package/dist/es/designer/service-components/service/custom-bean/index.vue2.js +6 -6
- package/dist/es/designer/service-components/service/http-service/config.vue.d.ts +4 -4
- package/dist/es/designer/service-components/service/http-service/config.vue.js +1 -1
- package/dist/es/designer/service-components/service/http-service/config.vue2.js +4 -4
- package/dist/es/designer/service-components/service/http-service/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/http-service/index.vue.js +1 -1
- package/dist/es/designer/service-components/service/http-service/index.vue2.js +6 -6
- package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +10 -12
- package/dist/es/designer/service-components/service/http-service/response-text-setting.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/http-service/response-text-setting.vue.js +4 -4
- package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.d.ts +5 -5
- package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +10 -12
- package/dist/es/designer/service-components/util/common-options.js +1 -2
- package/dist/es/designer/service-flow-view/flow-util.js +2 -5
- package/dist/es/designer/service-flow-view/service-flow-tool.vue.d.ts +5 -5
- package/dist/es/designer/service-flow-view/service-flow-tool.vue.js +2 -2
- package/dist/es/designer/service-flow-view/service-flow-tool.vue2.js +24 -24
- package/dist/es/designer/service-flow-view/service-node-config.vue.d.ts +6 -6
- package/dist/es/designer/service-flow-view/service-node-config.vue.js +2 -2
- package/dist/es/designer/service-flow-view/service-node-config.vue2.js +11 -8
- package/dist/es/designer/service-flow-view/service-params.vue.d.ts +4 -4
- package/dist/es/designer/service-flow-view/service-params.vue.js +10 -12
- package/dist/es/designer/service-flow-view/service-result.vue.d.ts +4 -4
- package/dist/es/designer/service-flow-view/service-result.vue.js +11 -13
- package/dist/es/designer/service-flow-view/service-test/request-params.vue.d.ts +4 -4
- package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +22 -24
- package/dist/es/designer/service-flow-view/service-test/service-test.vue.d.ts +5 -5
- package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +6 -7
- package/dist/es/designer/service-flow-view/service-update-log.vue.d.ts +6 -6
- package/dist/es/designer/service-flow-view/service-update-log.vue.js +2 -2
- package/dist/es/designer/service-flow-view/service-update-log.vue2.js +25 -27
- package/dist/es/designer/service-flow-view/view-index.vue.d.ts +6 -6
- package/dist/es/designer/service-flow-view/view-index.vue.js +1 -1
- package/dist/es/designer/service-flow-view/view-index.vue2.js +76 -79
- package/dist/es/designer/service-panel/component-panel.vue.d.ts +2 -2
- package/dist/es/designer/service-panel/component-panel.vue.js +1 -1
- package/dist/es/designer/service-panel/component-panel.vue2.js +4 -4
- package/dist/es/designer/service-panel/service-list.vue.d.ts +5 -5
- package/dist/es/designer/service-panel/service-list.vue.js +1 -1
- package/dist/es/designer/service-panel/service-list.vue2.js +62 -63
- package/dist/es/designer/service-panel/service-panel.vue.d.ts +5 -5
- package/dist/es/designer/service-panel/service-panel.vue.js +1 -1
- package/dist/es/designer/service-panel/service-panel.vue2.js +2 -2
- package/dist/es/stores/page-store.d.ts +11 -11
- package/dist/es/style.css +791 -791
- package/dist/es/utils/common-util.js +15 -30
- package/package.json +2 -2
- package/dist/es/designer/common/components/database-select.vue3.js +0 -1
- package/dist/es/designer/common/components/datatable-select.vue3.js +0 -1
- package/dist/es/designer/common/components/file-upload.vue3.js +0 -1
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue3.js +0 -1
- package/dist/es/designer/desginer-index.vue3.js +0 -1
- package/dist/es/designer/service-components/base/custom-function/config.vue3.js +0 -1
- package/dist/es/designer/service-components/base/custom-function/index.vue3.js +0 -1
- package/dist/es/designer/service-components/base/end-node/index.vue3.js +0 -1
- package/dist/es/designer/service-components/base/judge-condition/index.vue3.js +0 -1
- package/dist/es/designer/service-components/base/loop-node/config.vue3.js +0 -1
- package/dist/es/designer/service-components/base/loop-node/index.vue.js +0 -1
- package/dist/es/designer/service-components/base/notification/index.vue3.js +0 -1
- package/dist/es/designer/service-components/base/notification/recipients-select.vue3.js +0 -1
- package/dist/es/designer/service-components/base/start-node/index.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/clean/config.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/clean/index.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/connect/config.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/connect/index.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/sort/config.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/sort/index.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/split-joint/config.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/split-joint/index.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/statistics/config.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/statistics/index.vue3.js +0 -1
- package/dist/es/designer/service-components/database/aggregate-query/config.vue3.js +0 -1
- package/dist/es/designer/service-components/database/aggregate-query/index.vue3.js +0 -1
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue3.js +0 -1
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue3.js +0 -1
- package/dist/es/designer/service-components/database/regular-query/config.vue3.js +0 -1
- package/dist/es/designer/service-components/database/regular-query/index.vue3.js +0 -1
- package/dist/es/designer/service-components/service/common/json-data.vue3.js +0 -1
- package/dist/es/designer/service-components/service/common/param-config.vue3.js +0 -1
- package/dist/es/designer/service-components/service/custom-bean/index.vue3.js +0 -1
- package/dist/es/designer/service-components/service/http-service/config.vue3.js +0 -1
- package/dist/es/designer/service-components/service/http-service/index.vue3.js +0 -1
- package/dist/es/designer/service-flow-view/service-flow-tool.vue3.js +0 -1
- package/dist/es/designer/service-flow-view/service-node-config.vue3.js +0 -1
- package/dist/es/designer/service-flow-view/service-update-log.vue3.js +0 -1
- package/dist/es/designer/service-flow-view/view-index.vue3.js +0 -1
- package/dist/es/designer/service-panel/component-panel.vue3.js +0 -1
- package/dist/es/designer/service-panel/service-list.vue3.js +0 -1
- package/dist/es/designer/service-panel/service-panel.vue3.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare function setSelectOptions(): void;
|
|
2
|
-
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
3
|
modelValue: {
|
|
4
4
|
type: StringConstructor[];
|
|
5
5
|
default: any;
|
|
@@ -70,9 +70,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
70
70
|
type: StringConstructor;
|
|
71
71
|
default: string;
|
|
72
72
|
};
|
|
73
|
-
}
|
|
73
|
+
}>, {
|
|
74
74
|
setSelectOptions: typeof setSelectOptions;
|
|
75
|
-
},
|
|
75
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
76
76
|
"update:modelValue": (...args: any[]) => void;
|
|
77
77
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
78
78
|
modelValue: {
|
|
@@ -145,9 +145,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
145
145
|
type: StringConstructor;
|
|
146
146
|
default: string;
|
|
147
147
|
};
|
|
148
|
-
}>> & {
|
|
148
|
+
}>> & Readonly<{
|
|
149
149
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
150
|
-
}
|
|
150
|
+
}>, {
|
|
151
151
|
size: string;
|
|
152
152
|
modelValue: string;
|
|
153
153
|
placeholder: string;
|
|
@@ -158,5 +158,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
158
158
|
customInputTypes: any[];
|
|
159
159
|
customOptions: Record<string, any>;
|
|
160
160
|
showFileUpload: boolean;
|
|
161
|
-
}, {}>;
|
|
161
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
162
162
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElPopover as e, ElRow as l, ElCol as a, ElCascaderPanel as t, ElEmpty as u, ElInput as s, ElButton as n, ElIcon as o, ElTable as i, ElTableColumn as r } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/popover/style/css";
|
|
4
4
|
import "element-plus/es/components/row/style/css";
|
|
@@ -10,132 +10,122 @@ import "element-plus/es/components/col/style/css";
|
|
|
10
10
|
import "element-plus/es/components/cascader-panel/style/css";
|
|
11
11
|
import "element-plus/es/components/input/style/css";
|
|
12
12
|
import "element-plus/es/components/button/style/css";
|
|
13
|
-
import { defineComponent as p, ref as v, computed as c,
|
|
14
|
-
import {
|
|
15
|
-
import { v4 as
|
|
16
|
-
import { getTypeOptions as
|
|
17
|
-
import { useServiceFlowStore as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { ElMessage as
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
const l2 =
|
|
27
|
-
l2 >= 0 &&
|
|
28
|
-
}),
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
-1 === le.value.findIndex((e2) => "file" === e2.value) && le.value.push({ label: "文件", value: "file" });
|
|
13
|
+
import { defineComponent as p, ref as v, computed as c, createElementBlock as m, createBlock as d, openBlock as f, toDisplayString as y, withCtx as h, createVNode as V, createElementVNode as g, withDirectives as w, unref as x, createTextVNode as b, Fragment as k, renderList as z, vShow as C, normalizeStyle as O, withModifiers as S, nextTick as _ } from "vue";
|
|
14
|
+
import { Plus as U, InfoFilled as j, Search as q, Delete as I } from "@element-plus/icons-vue";
|
|
15
|
+
import { v4 as L } from "uuid";
|
|
16
|
+
import { getTypeOptions as T, contextVarOptions as A, taskVarOptions as F } from "./option.js";
|
|
17
|
+
import { useServiceFlowStore as $ } from "../../../../stores/page-store.js";
|
|
18
|
+
import E from "../file-upload.vue.js";
|
|
19
|
+
import M from "agilebuilder-ui/src/utils/request";
|
|
20
|
+
import { ElMessage as R } from "element-plus";
|
|
21
|
+
const B = { key: 0 }, K = { style: { "margin-top": "10px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, P = { style: { "font-size": "10px", "line-height": "30px" } }, D = { style: { "margin-bottom": "5px" } }, G = { style: { "margin-top": "10px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, H = { class: "totalStyle" }, J = p({ name: "ValueSetInput", inheritAttrs: false, __name: "value-set-input", props: { modelValue: { type: [String], default: null }, paramTypes: { type: Array, default: () => [] }, size: { type: String, default: "default" }, inputSize: { type: String, default: "small" }, showLabel: { type: Boolean, default: false }, width: { type: String, default: "" }, customInputTypes: { type: Array, default: [] }, customOptions: { type: Object, default: () => ({}) }, showFileUpload: { type: Boolean, default: false }, autoCreateFieldType: { type: String, required: false }, placeholder: { type: String, default: "请选择" } }, emits: ["update:modelValue"], setup(p2, { expose: J2, emit: N }) {
|
|
22
|
+
const Q = $(), W = N, X = p2, Y = v(null);
|
|
23
|
+
Y.value = X.modelValue;
|
|
24
|
+
const Z = v([]), ee = v(""), le = v({}), ae = v(null), te = v([]), ue = v(null), se = v(null), ne = v([]), oe = v({}), ie = v(null), re = v(), pe = ["context", "system", "task", "data", "service"];
|
|
25
|
+
X.customInputTypes.forEach((e2) => {
|
|
26
|
+
const l2 = pe.findIndex((l3) => e2 === l3);
|
|
27
|
+
l2 >= 0 && pe.splice(l2, 1);
|
|
28
|
+
}), Z.value = T(X.paramTypes), me();
|
|
29
|
+
const ve = () => {
|
|
30
|
+
if (X.showFileUpload) -1 === Z.value.findIndex((e2) => "file" === e2.value) && Z.value.push({ label: "文件", value: "file" });
|
|
32
31
|
else {
|
|
33
|
-
const e2 =
|
|
34
|
-
e2 >= 0 &&
|
|
32
|
+
const e2 = Z.value.findIndex((e3) => "file" === e3.value);
|
|
33
|
+
e2 >= 0 && Z.value.splice(e2, 1);
|
|
35
34
|
}
|
|
36
35
|
};
|
|
37
|
-
if (
|
|
38
|
-
const e2 =
|
|
36
|
+
if (X.modelValue) {
|
|
37
|
+
const e2 = X.modelValue.match(/\${(.*?)\.(.*?)}/);
|
|
39
38
|
if (e2) {
|
|
40
39
|
const l2 = e2[1], a2 = e2[2];
|
|
41
|
-
|
|
40
|
+
ue.value = l2, se.value = a2, ve(), "file" === ue.value ? ee.value = "file" : pe.includes(l2) ? ("system" === ue.value && Ce(), ee.value = "select") : ee.value = "input";
|
|
42
41
|
}
|
|
43
|
-
|
|
42
|
+
ae.value = fe();
|
|
44
43
|
}
|
|
45
|
-
const
|
|
46
|
-
function
|
|
47
|
-
|
|
44
|
+
const ce = c(() => ne.value.filter((e2) => !ie.value || e2.label.toLowerCase().includes(ie.value.toLowerCase() || e2.value.toLowerCase().includes(ie.value.toLowerCase()))));
|
|
45
|
+
function me() {
|
|
46
|
+
oe.value.dataModelOptions = Q.pageContextVarOptions.dataOptions, X.customOptions.data && (oe.value.dataModelOptions = X.customOptions.data), oe.value.serviceVarOptions = Q.getServiceVarOptions();
|
|
48
47
|
const e2 = [{ value: "query", label: "query" }];
|
|
49
|
-
|
|
48
|
+
Q.pageContext && de(Q.pageContext.variables, e2, ""), te.value = e2;
|
|
50
49
|
}
|
|
51
|
-
function
|
|
52
|
-
if (e2)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
let
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const s2 = t2.alias ? u2 + "(" + t2.alias + ")" : u2;
|
|
61
|
-
l2.push({ value: u2, label: s2 }), e3 = u2;
|
|
62
|
-
}
|
|
63
|
-
t2.items && ye(t2.items, l2, e3);
|
|
50
|
+
function de(e2, l2, a2) {
|
|
51
|
+
if (e2) for (let t2 of e2) {
|
|
52
|
+
if (!t2.name) continue;
|
|
53
|
+
let e3 = a2;
|
|
54
|
+
if (!t2.isArrayElement) {
|
|
55
|
+
let u2 = t2.name;
|
|
56
|
+
a2 && (u2 = a2 + "." + u2);
|
|
57
|
+
const s2 = t2.alias ? u2 + "(" + t2.alias + ")" : u2;
|
|
58
|
+
l2.push({ value: u2, label: s2 }), e3 = u2;
|
|
64
59
|
}
|
|
60
|
+
t2.items && de(t2.items, l2, e3);
|
|
61
|
+
}
|
|
65
62
|
}
|
|
66
|
-
function
|
|
63
|
+
function fe() {
|
|
67
64
|
var _a;
|
|
68
|
-
return
|
|
69
|
-
if (
|
|
70
|
-
const e4 =
|
|
71
|
-
if (e4)
|
|
72
|
-
|
|
73
|
-
} else if ("file" === e3)
|
|
74
|
-
return l2.split("|")[0];
|
|
65
|
+
return X.modelValue ? (e2 = ue.value, ((_a = Z.value.find((l2) => l2.value === e2)) == null ? void 0 : _a.label) + " : " + function(e3, l2) {
|
|
66
|
+
if (pe.includes(e3)) {
|
|
67
|
+
const e4 = ne.value.find((e5) => e5.value === l2);
|
|
68
|
+
if (e4) return e4.label;
|
|
69
|
+
} else if ("file" === e3) return l2.split("|")[0];
|
|
75
70
|
return l2;
|
|
76
|
-
}(
|
|
71
|
+
}(ue.value, se.value)) : X.modelValue;
|
|
77
72
|
var e2;
|
|
78
73
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
74
|
+
function ye(e2) {
|
|
75
|
+
se.value = "", "file" === e2 ? ee.value = "file" : pe.includes(e2) ? (ee.value = "select", "system" === e2 ? Ce() : he(e2)) : ee.value = "input";
|
|
81
76
|
}
|
|
82
|
-
function
|
|
83
|
-
"context" === e2 ?
|
|
77
|
+
function he(e2) {
|
|
78
|
+
"context" === e2 ? ne.value = A : "system" === e2 ? ne.value = oe.value.systemVarOptions || [] : "task" === e2 ? ne.value = F : "data" === e2 ? ne.value = oe.value.dataModelOptions || [] : "service" === e2 && (ne.value = oe.value.serviceVarOptions || []);
|
|
84
79
|
}
|
|
85
|
-
function
|
|
86
|
-
|
|
80
|
+
function Ve() {
|
|
81
|
+
se.value ? (Y.value = "${" + ue.value + "." + se.value + "}", W("update:modelValue", Y.value), re.value.hide()) : R.warning("请输入参数名");
|
|
87
82
|
}
|
|
88
|
-
function
|
|
89
|
-
if (
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return void K.warning("该变量已存在!");
|
|
95
|
-
const l2 = { code: A(), level: 1, name: pe.value, alias: pe.value, type: Z.autoCreateFieldType ? Z.autoCreateFieldType : "string", defaultValue: "", items: [] };
|
|
96
|
-
"array" == l2.type && l2.items.push({ level: l2.level + 1, code: A(), name: "items", isArrayElement: true, alias: "", type: "object", defaultValue: "", items: [] }), P2.currentService.variables || (P2.currentService.variables = []), P2.currentService.variables.push(l2), re.value.serviceVarOptions = P2.getServiceVarOptions(), ge(ne.value), oe.value = pe.value, ee.value = "${" + ne.value + "." + pe.value + "}", Y2("update:modelValue", ee.value), ve.value.hide();
|
|
83
|
+
function ge() {
|
|
84
|
+
if (ie.value = ie.value.trim(), !ie.value) return void R.warning("请输入参数名");
|
|
85
|
+
const e2 = oe.value.serviceVarOptions || [];
|
|
86
|
+
for (let l3 of e2) if (l3.value === ie.value) return void R.warning("该变量已存在!");
|
|
87
|
+
const l2 = { code: L(), level: 1, name: ie.value, alias: ie.value, type: X.autoCreateFieldType ? X.autoCreateFieldType : "string", defaultValue: "", items: [] };
|
|
88
|
+
"array" == l2.type && l2.items.push({ level: l2.level + 1, code: L(), name: "items", isArrayElement: true, alias: "", type: "object", defaultValue: "", items: [] }), Q.currentService.variables || (Q.currentService.variables = []), Q.currentService.variables.push(l2), oe.value.serviceVarOptions = Q.getServiceVarOptions(), he(ue.value), se.value = ie.value, Y.value = "${" + ue.value + "." + ie.value + "}", W("update:modelValue", Y.value), re.value.hide();
|
|
97
89
|
}
|
|
98
|
-
!
|
|
99
|
-
const
|
|
100
|
-
const
|
|
101
|
-
|
|
90
|
+
!ue.value && Z.value.length > 0 && (ue.value = Z.value[0].value, ye(ue.value));
|
|
91
|
+
const we = v();
|
|
92
|
+
const xe = () => {
|
|
93
|
+
ve(), me(), ue.value && he(ue.value), _(() => {
|
|
102
94
|
!function() {
|
|
103
|
-
if (!
|
|
104
|
-
const e2 =
|
|
105
|
-
|
|
95
|
+
if (!X.showLabel && "select" === ee.value) {
|
|
96
|
+
const e2 = ce.value.findIndex((e3) => e3.value === se.value);
|
|
97
|
+
we.value.setCurrentRow(ce.value[e2]);
|
|
106
98
|
}
|
|
107
99
|
}();
|
|
108
100
|
});
|
|
109
101
|
};
|
|
110
|
-
function
|
|
111
|
-
|
|
102
|
+
function be() {
|
|
103
|
+
Y.value = null, ue.value = null, se.value = null, W("update:modelValue", Y.value);
|
|
112
104
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
105
|
+
function ke() {
|
|
106
|
+
Y.value = "${file." + le.value.name + "|" + le.value.fileUuid + "}", se.value = le.value.name + "|" + le.value.fileUuid, W("update:modelValue", Y.value), re.value.hide();
|
|
115
107
|
}
|
|
116
|
-
let
|
|
117
|
-
function
|
|
118
|
-
if (
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
Oe = pe.value, B.post("/component/system-params/query", e2).then((e3) => {
|
|
108
|
+
let ze = null;
|
|
109
|
+
function Ce() {
|
|
110
|
+
if (ze && ze == ie.value) return;
|
|
111
|
+
const e2 = { query: ie.value };
|
|
112
|
+
ze = ie.value, M.post("/component/system-params/query", e2).then((e3) => {
|
|
122
113
|
const l2 = [];
|
|
123
|
-
for (let a2 of e3)
|
|
124
|
-
|
|
125
|
-
re.value.systemVarOptions = l2, "system" == ne.value && ge(ne.value);
|
|
114
|
+
for (let a2 of e3) l2.push({ value: a2.propKey, label: a2.propKey + " (" + a2.propValue + ")" });
|
|
115
|
+
oe.value.systemVarOptions = l2, "system" == ue.value && he(ue.value);
|
|
126
116
|
});
|
|
127
117
|
}
|
|
128
|
-
return
|
|
129
|
-
const _2 =
|
|
130
|
-
return p2.showLabel ? (
|
|
131
|
-
return a2 = e2.value,
|
|
118
|
+
return J2({ setSelectOptions: me }), (v2, c2) => {
|
|
119
|
+
const _2 = n, L2 = s, T2 = t, A2 = a, F2 = u, $2 = o, M2 = r, R2 = i, J3 = l, N2 = e;
|
|
120
|
+
return p2.showLabel ? (f(), m("span", B, y(ae.value), 1)) : (f(), d(N2, { key: 1, ref_key: "popoverRef", ref: re, trigger: "click", width: 450 }, { reference: h(() => [V(L2, { style: O({ width: p2.width ? p2.width : "" }), readonly: "", size: p2.inputSize, onClick: xe, formatter: fe, class: "input-with-select", "prefix-icon": x(q), modelValue: Y.value, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => Y.value = e2), placeholder: p2.placeholder }, { append: h(() => [V(_2, { size: p2.inputSize, icon: x(I), onClick: S(be, ["stop"]) }, null, 8, ["size", "icon"])]), _: 1 }, 8, ["style", "size", "prefix-icon", "modelValue", "placeholder"])]), default: h(() => [V(J3, null, { default: h(() => [V(A2, { span: 8 }, { default: h(() => [V(T2, { modelValue: ue.value, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => ue.value = e2), onChange: ye, props: { emitPath: false }, size: "small", style: { width: "fit-content", height: "200px" }, options: Z.value }, null, 8, ["modelValue", "options"])]), _: 1 }), ue.value ? "input" === ee.value ? (f(), d(A2, { key: 1, span: 16 }, { default: h(() => [V(L2, { style: { width: "88%" }, size: "small", modelValue: se.value, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => se.value = e2), placeholder: "请手动输入" }, null, 8, ["modelValue"]), V(_2, { style: { float: "right" }, onClick: Ve, size: "small", type: "primary", icon: x(U), circle: "" }, null, 8, ["icon"]), g("div", K, [V($2, null, { default: h(() => [V(x(j))]), _: 1 }), c2[5] || (c2[5] = g("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))]), w(g("div", P, [c2[6] || (c2[6] = b(" 可用参数: ")), (f(true), m(k, null, z(te.value, (e2) => (f(), d(_2, { type: "primary", size: "small", onClick: (l2) => {
|
|
121
|
+
return a2 = e2.value, se.value = a2, void Ve();
|
|
132
122
|
var a2;
|
|
133
|
-
} }, { default: h(() => [
|
|
134
|
-
return a2 = e2.row,
|
|
123
|
+
} }, { default: h(() => [b(y(e2.label), 1)]), _: 2 }, 1032, ["onClick"]))), 256))], 512), [[C, "request" == ue.value]])]), _: 1 })) : "file" === ee.value ? (f(), d(A2, { key: 2, span: 16 }, { default: h(() => [V(E, { modelValue: le.value, "onUpdate:modelValue": c2[3] || (c2[3] = (e2) => le.value = e2), onOnSuccess: ke }, null, 8, ["modelValue"])]), _: 1 })) : (f(), d(A2, { key: 3, span: 16 }, { default: h(() => [g("div", D, [V(L2, { size: "small", modelValue: ie.value, "onUpdate:modelValue": c2[4] || (c2[4] = (e2) => ie.value = e2), placeholder: "搜索", "suffix-icon": x(q), style: { width: "88%" } }, null, 8, ["modelValue", "suffix-icon"]), w(V(_2, { style: { float: "right" }, onClick: ge, size: "small", type: "primary", icon: x(U), circle: "" }, null, 8, ["icon"]), [[C, "service" == ue.value]]), w(g("div", G, [V($2, null, { default: h(() => [V(x(j))]), _: 1 }), c2[7] || (c2[7] = g("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))], 512), [[C, "service" == ue.value]])]), V(R2, { ref_key: "tableRef", ref: we, height: "155", "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "tree-props": { children: "items" }, "highlight-current-row": true, data: ce.value }, { default: h(() => [V(M2, null, { default: h((e2) => [V(_2, { size: "small", onClick: (l2) => {
|
|
124
|
+
return a2 = e2.row, se.value = a2.value, Y.value = "${" + ue.value + "." + a2.value + "}", W("update:modelValue", Y.value), void re.value.hide();
|
|
135
125
|
var a2;
|
|
136
|
-
} }, { default: h(() => [
|
|
126
|
+
} }, { default: h(() => c2[8] || (c2[8] = [b(" 选择 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), V(M2, { prop: "label" })]), _: 1 }, 8, ["data"]), g("div", H, "总计:" + y(ce.value.length), 1)]), _: 1 })) : (f(), d(A2, { key: 0, span: 16 }, { default: h(() => [V(F2, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 })]), _: 1 }, 512));
|
|
137
127
|
};
|
|
138
128
|
} });
|
|
139
129
|
export {
|
|
140
|
-
|
|
130
|
+
J as default
|
|
141
131
|
};
|
|
@@ -1,41 +1,29 @@
|
|
|
1
1
|
function e(e2, r2) {
|
|
2
2
|
const t2 = r2.edges.filter((r3) => r3.sourceNodeId === e2.id), n = [];
|
|
3
|
-
if (t2)
|
|
4
|
-
for (let e3 = 0; e3 < t2.length; e3++)
|
|
5
|
-
n.push(r2.nodes.find((r3) => r3.id === t2[e3].targetNodeId));
|
|
3
|
+
if (t2) for (let e3 = 0; e3 < t2.length; e3++) n.push(r2.nodes.find((r3) => r3.id === t2[e3].targetNodeId));
|
|
6
4
|
return n;
|
|
7
5
|
}
|
|
8
6
|
function r(e2, t2) {
|
|
9
|
-
if ("object" != typeof e2 || "object" != typeof t2)
|
|
10
|
-
|
|
11
|
-
if (null == e2 || null == t2)
|
|
12
|
-
return e2 === t2;
|
|
7
|
+
if ("object" != typeof e2 || "object" != typeof t2) return e2 === t2;
|
|
8
|
+
if (null == e2 || null == t2) return e2 === t2;
|
|
13
9
|
if (Array.isArray(e2) && Array.isArray(t2)) {
|
|
14
|
-
if (e2.length !== t2.length)
|
|
15
|
-
|
|
16
|
-
for (let n = 0; n < e2.length; n++)
|
|
17
|
-
if (!r(e2[n], t2[n]))
|
|
18
|
-
return false;
|
|
10
|
+
if (e2.length !== t2.length) return false;
|
|
11
|
+
for (let n = 0; n < e2.length; n++) if (!r(e2[n], t2[n])) return false;
|
|
19
12
|
return true;
|
|
20
13
|
}
|
|
21
14
|
{
|
|
22
15
|
const n = Object.keys(e2), i = Object.keys(t2);
|
|
23
|
-
if (n.length !== i.length)
|
|
24
|
-
|
|
25
|
-
for (let f of n)
|
|
26
|
-
if (!i.includes(f) || !r(e2[f], t2[f]))
|
|
27
|
-
return false;
|
|
16
|
+
if (n.length !== i.length) return false;
|
|
17
|
+
for (let f of n) if (!i.includes(f) || !r(e2[f], t2[f])) return false;
|
|
28
18
|
return true;
|
|
29
19
|
}
|
|
30
20
|
}
|
|
31
21
|
function t(e2, r2) {
|
|
32
22
|
for (let n = 0; n < r2.length; n++) {
|
|
33
|
-
if (r2[n].code === e2)
|
|
34
|
-
return r2[n];
|
|
23
|
+
if (r2[n].code === e2) return r2[n];
|
|
35
24
|
if (r2[n].children && r2[n].children.length > 0) {
|
|
36
25
|
const i = t(e2, r2[n].children);
|
|
37
|
-
if (i)
|
|
38
|
-
return i;
|
|
26
|
+
if (i) return i;
|
|
39
27
|
}
|
|
40
28
|
}
|
|
41
29
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
pageContext: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
4
|
default: () => {};
|
|
5
5
|
};
|
|
6
|
-
}
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
7
|
pageContext: {
|
|
8
8
|
type: ObjectConstructor;
|
|
9
9
|
default: () => {};
|
|
10
10
|
};
|
|
11
|
-
}
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
12
|
pageContext: Record<string, any>;
|
|
13
|
-
}, {}>;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
14
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElContainer as e, ElAside as t, ElMain as o } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/container/style/css";
|
|
4
4
|
import "element-plus/es/components/main/style/css";
|
|
5
5
|
import "element-plus/es/components/aside/style/css";
|
|
6
|
-
import { defineComponent as n, ref as s, computed as l, onMounted as a,
|
|
6
|
+
import { defineComponent as n, ref as s, computed as l, onMounted as a, createElementBlock as r, openBlock as i, createVNode as c, withCtx as p, normalizeStyle as u } from "vue";
|
|
7
7
|
import v from "./service-panel/service-panel.vue.js";
|
|
8
8
|
import m from "./service-flow-view/view-index.vue.js";
|
|
9
9
|
import "./service-components/index.js";
|
|
@@ -31,8 +31,8 @@ const f = n({ __name: "desginer-index", props: { pageContext: { type: Object, de
|
|
|
31
31
|
C.value.clearFlowCanvas(), y.value = null;
|
|
32
32
|
};
|
|
33
33
|
return (s2, l2) => {
|
|
34
|
-
const a2 =
|
|
35
|
-
return
|
|
34
|
+
const a2 = t, g2 = o, d2 = e;
|
|
35
|
+
return i(), r("div", { ref_key: "serviceFlowContainerRef", ref: D }, [c(d2, { class: "amb-container" }, { default: p(() => [c(a2, { class: "serviceflow-container-left" }, { default: p(() => [c(v, { logicFlowInstance: y.value, "onUpdate:logicFlowInstance": l2[0] || (l2[0] = (e2) => y.value = e2), serviceTreeData: w.value, onServiceClick: b, onClearFlowCanvas: T, onLoadTreeData: I, onDragNode: _, style: u(F.value) }, null, 8, ["logicFlowInstance", "serviceTreeData", "style"])]), _: 1 }), c(g2, { class: "serviceflow-container-main", style: u(F.value) }, { default: p(() => [c(m, { logicFlowInstance: y.value, "onUpdate:logicFlowInstance": l2[1] || (l2[1] = (e2) => y.value = e2), serviceTreeData: w.value, pageContext: n2.pageContext, onLoadTreeData: I, ref_key: "serviceFlowViewRef", ref: C }, null, 8, ["logicFlowInstance", "serviceTreeData", "pageContext"])]), _: 1 }, 8, ["style"])]), _: 1 })], 512);
|
|
36
36
|
};
|
|
37
37
|
} });
|
|
38
38
|
export {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) =>
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
4
|
import { HtmlNode as e } from "@logicflow/core";
|
|
8
5
|
import "@logicflow/extension";
|
|
9
6
|
class t extends e {
|
|
@@ -14,8 +11,7 @@ class t extends e {
|
|
|
14
11
|
__publicField(this, "app");
|
|
15
12
|
}
|
|
16
13
|
setHtml(e2) {
|
|
17
|
-
if (this.isMounted)
|
|
18
|
-
this.r.component.props.properties = this.props.model.getProperties();
|
|
14
|
+
if (this.isMounted) this.r.component.props.properties = this.props.model.getProperties();
|
|
19
15
|
else {
|
|
20
16
|
this.isMounted = true;
|
|
21
17
|
const t2 = document.createElement("div");
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) =>
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
4
|
import { HtmlNodeModel as e } from "@logicflow/core";
|
|
8
5
|
import "vue";
|
|
9
6
|
class t extends e {
|
|
@@ -27,8 +24,7 @@ class t extends e {
|
|
|
27
24
|
}
|
|
28
25
|
getConnectedSourceRules() {
|
|
29
26
|
const e2 = super.getConnectedSourceRules(), t2 = ["judgeCondition", "end"], i = { message: "条件判断才能作为source有多条边连线!", validate: (e3, i2, s, d) => {
|
|
30
|
-
if (!e3)
|
|
31
|
-
return false;
|
|
27
|
+
if (!e3) return false;
|
|
32
28
|
let o = true;
|
|
33
29
|
if (-1 === t2.indexOf(e3.type)) {
|
|
34
30
|
e3.graphModel.getNodeOutgoingEdge(e3.id).length > 0 && (o = false);
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) =>
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
4
|
import "@logicflow/core";
|
|
8
5
|
import { HtmlResize as e } from "@logicflow/extension";
|
|
9
6
|
class t extends e.view {
|
|
@@ -14,8 +11,7 @@ class t extends e.view {
|
|
|
14
11
|
__publicField(this, "app");
|
|
15
12
|
}
|
|
16
13
|
setHtml(e2) {
|
|
17
|
-
if (this.isMounted)
|
|
18
|
-
this.r.component.props.properties = this.props.model.getProperties();
|
|
14
|
+
if (this.isMounted) this.r.component.props.properties = this.props.model.getProperties();
|
|
19
15
|
else {
|
|
20
16
|
this.isMounted = true;
|
|
21
17
|
const t2 = document.createElement("div");
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) =>
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
4
|
import "@logicflow/core";
|
|
8
5
|
import "vue";
|
|
9
6
|
import { HtmlResize as t } from "@logicflow/extension";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const s = { type: "customLine", view: class extends
|
|
3
|
-
}, model: class extends
|
|
1
|
+
import { PolylineEdgeModel as e, PolylineEdge as t } from "@logicflow/core";
|
|
2
|
+
const s = { type: "customLine", view: class extends t {
|
|
3
|
+
}, model: class extends e {
|
|
4
4
|
getEdgeStyle() {
|
|
5
5
|
const e2 = super.getEdgeStyle();
|
|
6
6
|
return e2.strokeWidth = 2, e2.stroke = this.isSelected ? "#ff7f0e" : "#C8CDD4", e2;
|
|
@@ -8,7 +8,7 @@ const s = { type: "customLine", view: class extends e {
|
|
|
8
8
|
getTextPosition() {
|
|
9
9
|
const e2 = super.getTextPosition(), t2 = this.points.split(" ");
|
|
10
10
|
if (t2 && t2.forEach((e3) => {
|
|
11
|
-
e3.split(",");
|
|
11
|
+
const [t3, s2] = e3.split(",");
|
|
12
12
|
}), t2.length > 1) {
|
|
13
13
|
let [s2, o] = t2[0].split(","), [i, r] = t2[1].split(","), l = 50;
|
|
14
14
|
const n = Number(s2), c = Number(o), p = Number(i), u = Number(r);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
properties: {
|
|
3
3
|
type: ObjectConstructor;
|
|
4
4
|
default: () => {};
|
|
5
5
|
};
|
|
6
|
-
}
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
7
|
fullScreen: (...args: any[]) => void;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
9
|
properties: {
|
|
10
10
|
type: ObjectConstructor;
|
|
11
11
|
default: () => {};
|
|
12
12
|
};
|
|
13
|
-
}>> & {
|
|
13
|
+
}>> & Readonly<{
|
|
14
14
|
onFullScreen?: (...args: any[]) => any;
|
|
15
|
-
}
|
|
15
|
+
}>, {
|
|
16
16
|
properties: Record<string, any>;
|
|
17
|
-
}, {}>;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
18
|
export default _default;
|