service-flow-designer 2.2.25 → 2.2.28
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 +5 -7
- package/dist/es/assets/icon/aggregateQuery.svg.js +2 -2
- package/dist/es/assets/icon/base.png.js +2 -2
- package/dist/es/assets/icon/dynamicSql.svg.js +2 -2
- package/dist/es/assets/icon/end.png.js +2 -2
- package/dist/es/assets/icon/end.svg.js +2 -2
- package/dist/es/assets/icon/http-service.svg.js +2 -2
- package/dist/es/assets/icon/regularQuery.svg.js +2 -2
- package/dist/es/assets/icon/sort.svg.js +2 -2
- package/dist/es/assets/icon/start.png.js +2 -2
- package/dist/es/assets/icon/vardef-v.png.js +2 -2
- package/dist/es/designer/common/components/database-select.vue.d.ts +5 -5
- package/dist/es/designer/common/components/datatable-select.vue.d.ts +5 -5
- package/dist/es/designer/common/components/datatable-select.vue.js +5 -5
- package/dist/es/designer/common/components/datatable-select.vue2.js +53 -295
- package/dist/es/designer/common/components/file-upload.vue.d.ts +5 -5
- package/dist/es/designer/common/components/file-upload.vue.js +5 -5
- package/dist/es/designer/common/components/file-upload.vue2.js +27 -98
- 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 +18 -60
- package/dist/es/designer/common/components/json-view/json-view-dialog.vue2.js +2 -2
- 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 +42 -130
- package/dist/es/designer/common/components/json-view/json-view.vue2.js +2 -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 +7 -63
- package/dist/es/designer/common/components/node-base-config.vue2.js +2 -2
- package/dist/es/designer/common/components/sql-view/index.d.ts +4 -0
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.d.ts +36 -0
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.js +21 -0
- package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue2.js +4 -0
- package/dist/es/designer/common/components/sql-view/sql-view.vue.d.ts +32 -0
- package/dist/es/designer/common/components/sql-view/sql-view.vue.js +4 -0
- package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +33 -0
- package/dist/es/designer/common/components/value-set-input/index.js +2 -2
- package/dist/es/designer/common/components/value-set-input/option.js +6 -59
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue.d.ts +15 -6
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue.js +5 -5
- package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +114 -555
- package/dist/es/designer/common/util/node-util.js +24 -46
- package/dist/es/designer/desginer-index.vue.d.ts +4 -4
- package/dist/es/designer/desginer-index.vue.js +5 -5
- package/dist/es/designer/desginer-index.vue2.js +31 -106
- package/dist/es/designer/flow/base/AbLogicNode.js +9 -14
- package/dist/es/designer/flow/base/AbLogicNodeModel.js +21 -53
- package/dist/es/designer/flow/base/AbLogicResizeNode.js +9 -14
- package/dist/es/designer/flow/base/AbLogicResizeNodeModel.js +11 -30
- package/dist/es/designer/flow/edge/CustomLine.js +15 -42
- package/dist/es/designer/service-components/base/custom-function/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/end-node/index.js +25 -68
- 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 +5 -5
- package/dist/es/designer/service-components/base/end-node/index.vue2.js +4 -29
- package/dist/es/designer/service-components/base/judge-condition/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/loop-node/index.js +5 -174
- package/dist/es/designer/service-components/base/loop-node/index.vue.d.ts +3 -3
- package/dist/es/designer/service-components/base/notification/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/base/start-node/index.js +25 -69
- 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 +5 -5
- package/dist/es/designer/service-components/base/start-node/index.vue2.js +4 -29
- package/dist/es/designer/service-components/components-icons.js +9 -33
- package/dist/es/designer/service-components/computation/clean/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/computation/connect/index.vue.d.ts +5 -5
- 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 +5 -5
- package/dist/es/designer/service-components/computation/sort/config.vue2.js +41 -297
- package/dist/es/designer/service-components/computation/sort/index.js +12 -34
- 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 +5 -5
- package/dist/es/designer/service-components/computation/sort/index.vue2.js +8 -40
- package/dist/es/designer/service-components/computation/split-joint/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/computation/statistics/index.vue.d.ts +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/config.vue.d.ts +22 -4
- package/dist/es/designer/service-components/database/aggregate-query/config.vue.js +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +76 -330
- 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 +22 -217
- package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue2.js +2 -2
- 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 +29 -439
- package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue2.js +2 -2
- package/dist/es/designer/service-components/database/aggregate-query/index.js +14 -39
- 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 +5 -5
- package/dist/es/designer/service-components/database/aggregate-query/index.vue2.js +19 -90
- 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 +15 -177
- package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue2.js +2 -2
- 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 +16 -185
- package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue2.js +2 -2
- 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 +5 -5
- package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +73 -476
- package/dist/es/designer/service-components/database/dynamic-sql/index.js +12 -34
- 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 +5 -5
- package/dist/es/designer/service-components/database/dynamic-sql/index.vue2.js +8 -40
- package/dist/es/designer/service-components/database/regular-query/config.vue.d.ts +23 -5
- package/dist/es/designer/service-components/database/regular-query/config.vue.js +5 -5
- package/dist/es/designer/service-components/database/regular-query/config.vue2.js +55 -656
- package/dist/es/designer/service-components/database/regular-query/index.js +14 -39
- 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 +5 -5
- package/dist/es/designer/service-components/database/regular-query/index.vue2.js +19 -85
- package/dist/es/designer/service-components/index.js +38 -224
- 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 +18 -125
- package/dist/es/designer/service-components/service/common/cookie-data.vue2.js +2 -2
- 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 +18 -153
- package/dist/es/designer/service-components/service/common/form-data.vue2.js +2 -2
- 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 +18 -126
- package/dist/es/designer/service-components/service/common/header-data.vue2.js +2 -2
- 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 +5 -5
- package/dist/es/designer/service-components/service/common/json-data.vue2.js +18 -127
- 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 +5 -5
- package/dist/es/designer/service-components/service/common/param-config.vue2.js +19 -211
- 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 +18 -126
- package/dist/es/designer/service-components/service/common/query-params.vue2.js +2 -2
- 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 +27 -93
- package/dist/es/designer/service-components/service/common/raw-data.vue2.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.vue.js +2 -2
- package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +11 -64
- package/dist/es/designer/service-components/service/custom-bean/index.js +12 -34
- 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 +5 -5
- package/dist/es/designer/service-components/service/custom-bean/index.vue2.js +8 -40
- 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 +5 -5
- package/dist/es/designer/service-components/service/http-service/config.vue2.js +23 -296
- package/dist/es/designer/service-components/service/http-service/index.js +12 -34
- 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 +5 -5
- package/dist/es/designer/service-components/service/http-service/index.vue2.js +8 -40
- 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 +42 -262
- package/dist/es/designer/service-components/service/http-service/response-json-setting.vue2.js +2 -2
- 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 +15 -63
- package/dist/es/designer/service-components/service/http-service/response-text-setting.vue2.js +2 -2
- 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 +42 -262
- package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue2.js +2 -2
- package/dist/es/designer/service-components/util/common-options.js +14 -130
- package/dist/es/designer/service-flow-view/flow-tool-util.js +14 -24
- package/dist/es/designer/service-flow-view/flow-util.d.ts +2 -0
- package/dist/es/designer/service-flow-view/flow-util.js +50 -112
- 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 +5 -5
- package/dist/es/designer/service-flow-view/service-flow-tool.vue2.js +29 -188
- package/dist/es/designer/service-flow-view/service-node-config.vue.d.ts +15 -6
- package/dist/es/designer/service-flow-view/service-node-config.vue.js +5 -5
- package/dist/es/designer/service-flow-view/service-node-config.vue2.js +31 -148
- 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 +51 -421
- package/dist/es/designer/service-flow-view/service-params.vue2.js +2 -2
- 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 +54 -304
- package/dist/es/designer/service-flow-view/service-result.vue2.js +2 -2
- 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 +38 -307
- package/dist/es/designer/service-flow-view/service-test/request-params.vue2.js +2 -2
- 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 +64 -325
- package/dist/es/designer/service-flow-view/service-test/service-test.vue2.js +2 -2
- 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 +5 -5
- package/dist/es/designer/service-flow-view/service-update-log.vue2.js +35 -205
- 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 +5 -5
- package/dist/es/designer/service-flow-view/view-index.vue2.js +90 -354
- package/dist/es/designer/service-panel/component-panel.vue.d.ts +2 -2
- package/dist/es/designer/service-panel/component-panel.vue.js +5 -5
- package/dist/es/designer/service-panel/component-panel.vue2.js +13 -81
- package/dist/es/designer/service-panel/service-list.vue.d.ts +5 -5
- package/dist/es/designer/service-panel/service-list.vue.js +5 -5
- package/dist/es/designer/service-panel/service-list.vue2.js +76 -378
- package/dist/es/designer/service-panel/service-panel.vue.d.ts +5 -5
- package/dist/es/designer/service-panel/service-panel.vue.js +5 -5
- package/dist/es/designer/service-panel/service-panel.vue2.js +18 -78
- package/dist/es/index.js +2 -2
- package/dist/es/stores/page-store.d.ts +11 -11
- package/dist/es/stores/page-store.js +26 -73
- package/dist/es/style.css +768 -820
- package/dist/es/utils/common-util.d.ts +1 -0
- package/dist/es/utils/common-util.js +95 -205
- package/package.json +4 -2
- package/dist/es/assets/icon/clean.svg.js +0 -4
- package/dist/es/assets/icon/condition.png.js +0 -4
- package/dist/es/assets/icon/connect.svg.js +0 -4
- package/dist/es/assets/icon/function.png.js +0 -4
- package/dist/es/assets/icon/loop.svg.js +0 -4
- package/dist/es/assets/icon/notification.svg.js +0 -4
- package/dist/es/assets/icon/split-joint.svg.js +0 -4
- package/dist/es/assets/icon/statistics.svg.js +0 -4
- package/dist/es/designer/common/components/database-select.vue.js +0 -7
- package/dist/es/designer/common/components/database-select.vue2.js +0 -218
- 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.vue.d.ts +0 -18
- package/dist/es/designer/service-components/base/custom-function/config.vue.js +0 -7
- package/dist/es/designer/service-components/base/custom-function/config.vue2.js +0 -321
- package/dist/es/designer/service-components/base/custom-function/config.vue3.js +0 -1
- package/dist/es/designer/service-components/base/custom-function/index.js +0 -39
- package/dist/es/designer/service-components/base/custom-function/index.vue.js +0 -7
- package/dist/es/designer/service-components/base/custom-function/index.vue2.js +0 -44
- 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/config.vue.d.ts +0 -40
- package/dist/es/designer/service-components/base/judge-condition/config.vue.js +0 -4
- package/dist/es/designer/service-components/base/judge-condition/config.vue2.js +0 -589
- package/dist/es/designer/service-components/base/judge-condition/index.js +0 -49
- package/dist/es/designer/service-components/base/judge-condition/index.vue.js +0 -7
- package/dist/es/designer/service-components/base/judge-condition/index.vue2.js +0 -67
- package/dist/es/designer/service-components/base/judge-condition/index.vue3.js +0 -1
- package/dist/es/designer/service-components/base/loop-node/config.vue.d.ts +0 -14
- package/dist/es/designer/service-components/base/loop-node/config.vue.js +0 -7
- package/dist/es/designer/service-components/base/loop-node/config.vue2.js +0 -80
- 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/config.vue.d.ts +0 -18
- package/dist/es/designer/service-components/base/notification/config.vue.js +0 -4
- package/dist/es/designer/service-components/base/notification/config.vue2.js +0 -339
- package/dist/es/designer/service-components/base/notification/index.js +0 -39
- package/dist/es/designer/service-components/base/notification/index.vue.js +0 -7
- package/dist/es/designer/service-components/base/notification/index.vue2.js +0 -44
- package/dist/es/designer/service-components/base/notification/index.vue3.js +0 -1
- package/dist/es/designer/service-components/base/notification/quill-example.vue.d.ts +0 -19
- package/dist/es/designer/service-components/base/notification/recipients-select.vue.d.ts +0 -47
- package/dist/es/designer/service-components/base/notification/recipients-select.vue.js +0 -7
- package/dist/es/designer/service-components/base/notification/recipients-select.vue2.js +0 -153
- package/dist/es/designer/service-components/base/notification/recipients-select.vue3.js +0 -1
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue.d.ts +0 -18
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue.js +0 -110
- package/dist/es/designer/service-components/base/notification/select-mail-template.vue2.js +0 -4
- package/dist/es/designer/service-components/base/start-node/index.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/clean/config.vue.d.ts +0 -25
- package/dist/es/designer/service-components/computation/clean/config.vue.js +0 -7
- package/dist/es/designer/service-components/computation/clean/config.vue2.js +0 -434
- package/dist/es/designer/service-components/computation/clean/config.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/clean/index.js +0 -39
- package/dist/es/designer/service-components/computation/clean/index.vue.js +0 -7
- package/dist/es/designer/service-components/computation/clean/index.vue2.js +0 -44
- package/dist/es/designer/service-components/computation/clean/index.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/connect/config.vue.d.ts +0 -23
- package/dist/es/designer/service-components/computation/connect/config.vue.js +0 -7
- package/dist/es/designer/service-components/computation/connect/config.vue2.js +0 -522
- package/dist/es/designer/service-components/computation/connect/config.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/connect/index.js +0 -39
- package/dist/es/designer/service-components/computation/connect/index.vue.js +0 -7
- package/dist/es/designer/service-components/computation/connect/index.vue2.js +0 -44
- 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.vue.d.ts +0 -23
- package/dist/es/designer/service-components/computation/split-joint/config.vue.js +0 -7
- package/dist/es/designer/service-components/computation/split-joint/config.vue2.js +0 -343
- package/dist/es/designer/service-components/computation/split-joint/config.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/split-joint/index.js +0 -39
- package/dist/es/designer/service-components/computation/split-joint/index.vue.js +0 -7
- package/dist/es/designer/service-components/computation/split-joint/index.vue2.js +0 -44
- package/dist/es/designer/service-components/computation/split-joint/index.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/statistics/config.vue.d.ts +0 -23
- package/dist/es/designer/service-components/computation/statistics/config.vue.js +0 -7
- package/dist/es/designer/service-components/computation/statistics/config.vue2.js +0 -452
- package/dist/es/designer/service-components/computation/statistics/config.vue3.js +0 -1
- package/dist/es/designer/service-components/computation/statistics/index.js +0 -39
- package/dist/es/designer/service-components/computation/statistics/index.vue.js +0 -7
- package/dist/es/designer/service-components/computation/statistics/index.vue2.js +0 -44
- 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,56 +1,34 @@
|
|
|
1
|
-
function
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
for (let i = 0; i < edges.length; i++) {
|
|
6
|
-
result.push(flowData.nodes.find((item) => item.id === edges[i].targetNodeId));
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return result;
|
|
1
|
+
function e(e2, r2) {
|
|
2
|
+
const t2 = r2.edges.filter((r3) => r3.sourceNodeId === e2.id), n = [];
|
|
3
|
+
if (t2) for (let e3 = 0; e3 < t2.length; e3++) n.push(r2.nodes.find((r3) => r3.id === t2[e3].targetNodeId));
|
|
4
|
+
return n;
|
|
10
5
|
}
|
|
11
|
-
function
|
|
12
|
-
if (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
if (Array.isArray(tempData) && Array.isArray(flowData)) {
|
|
19
|
-
if (tempData.length !== flowData.length)
|
|
20
|
-
return false;
|
|
21
|
-
for (let i = 0; i < tempData.length; i++) {
|
|
22
|
-
if (!isDeepEqual(tempData[i], flowData[i]))
|
|
23
|
-
return false;
|
|
24
|
-
}
|
|
6
|
+
function r(e2, t2) {
|
|
7
|
+
if ("object" != typeof e2 || "object" != typeof t2) return e2 === t2;
|
|
8
|
+
if (null == e2 || null == t2) return e2 === t2;
|
|
9
|
+
if (Array.isArray(e2) && Array.isArray(t2)) {
|
|
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;
|
|
25
12
|
return true;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
for (let key of keys1) {
|
|
33
|
-
if (!keys2.includes(key) || !isDeepEqual(tempData[key], flowData[key])) {
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
13
|
+
}
|
|
14
|
+
{
|
|
15
|
+
const n = Object.keys(e2), i = Object.keys(t2);
|
|
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;
|
|
37
18
|
return true;
|
|
38
19
|
}
|
|
39
20
|
}
|
|
40
|
-
function
|
|
41
|
-
for (let
|
|
42
|
-
if (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (result) {
|
|
47
|
-
return result;
|
|
48
|
-
}
|
|
21
|
+
function t(e2, r2) {
|
|
22
|
+
for (let n = 0; n < r2.length; n++) {
|
|
23
|
+
if (r2[n].code === e2) return r2[n];
|
|
24
|
+
if (r2[n].children && r2[n].children.length > 0) {
|
|
25
|
+
const i = t(e2, r2[n].children);
|
|
26
|
+
if (i) return i;
|
|
49
27
|
}
|
|
50
28
|
}
|
|
51
29
|
}
|
|
52
30
|
export {
|
|
53
|
-
findServcieByCode,
|
|
54
|
-
getNextNodeById,
|
|
55
|
-
isDeepEqual
|
|
31
|
+
t as findServcieByCode,
|
|
32
|
+
e as getNextNodeById,
|
|
33
|
+
r as isDeepEqual
|
|
56
34
|
};
|
|
@@ -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,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import e from "./desginer-index.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const i = r(e, [["__scopeId", "data-v-7117ba9e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|
|
@@ -1,115 +1,40 @@
|
|
|
1
|
-
import { ElAside, ElMain
|
|
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, ref, computed, onMounted
|
|
7
|
-
import
|
|
8
|
-
import
|
|
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
|
+
import v from "./service-panel/service-panel.vue.js";
|
|
8
|
+
import m from "./service-flow-view/view-index.vue.js";
|
|
9
9
|
import "./service-components/index.js";
|
|
10
|
-
import { useServiceFlowStore } from "../stores/page-store.js";
|
|
11
|
-
import
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
import { useServiceFlowStore as g } from "../stores/page-store.js";
|
|
11
|
+
import d from "agilebuilder-ui/src/utils/request";
|
|
12
|
+
const f = n({ __name: "desginer-index", props: { pageContext: { type: Object, default: () => ({}) } }, setup(n2) {
|
|
13
|
+
const f2 = n2, w = s([]);
|
|
14
|
+
g().setPageContext(f2.pageContext);
|
|
15
|
+
const y = s(null), C = s(), x = s(), F = l(() => ({ height: x.value - 60 + "px" })), D = s();
|
|
16
|
+
a(() => {
|
|
17
|
+
if (I(), D.value) {
|
|
18
|
+
const e2 = D.value.getBoundingClientRect();
|
|
19
|
+
(e2.y || 0 === e2.y) && (x.value = window.innerHeight - e2.y);
|
|
18
20
|
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const serviceFlowStoreUtil = useServiceFlowStore();
|
|
24
|
-
serviceFlowStoreUtil.setPageContext(props.pageContext);
|
|
25
|
-
const logicFlowInstance = ref(null);
|
|
26
|
-
const serviceFlowViewRef = ref();
|
|
27
|
-
const winHeight = ref();
|
|
28
|
-
const containerHeightStyle = computed(() => {
|
|
29
|
-
return {
|
|
30
|
-
height: winHeight.value - 60 + "px"
|
|
31
|
-
};
|
|
21
|
+
});
|
|
22
|
+
const I = () => {
|
|
23
|
+
d.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow/tree/" + f2.pageContext.systemCode + "/" + f2.pageContext.systemVersion).then((e2) => {
|
|
24
|
+
e2 && (w.value = e2.children);
|
|
32
25
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/service-flow/tree/" + props.pageContext.systemCode + "/" + props.pageContext.systemVersion
|
|
46
|
-
).then((res) => {
|
|
47
|
-
if (res) {
|
|
48
|
-
serviceTreeData.value = res.children;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
const dragNode = (serviceComponent) => {
|
|
53
|
-
console.log("dragNode");
|
|
54
|
-
serviceFlowViewRef.value.onDragNode(serviceComponent);
|
|
55
|
-
};
|
|
56
|
-
const onServiceClick = (service) => {
|
|
57
|
-
console.log("service-click", service);
|
|
58
|
-
serviceFlowViewRef.value.onServiceClick(service);
|
|
59
|
-
};
|
|
60
|
-
const clearFlowCanvas = () => {
|
|
61
|
-
serviceFlowViewRef.value.clearFlowCanvas();
|
|
62
|
-
logicFlowInstance.value = null;
|
|
63
|
-
};
|
|
64
|
-
return (_ctx, _cache) => {
|
|
65
|
-
const _component_el_aside = ElAside;
|
|
66
|
-
const _component_el_main = ElMain;
|
|
67
|
-
const _component_el_container = ElContainer;
|
|
68
|
-
return openBlock(), createElementBlock("div", {
|
|
69
|
-
ref_key: "serviceFlowContainerRef",
|
|
70
|
-
ref: serviceFlowContainerRef
|
|
71
|
-
}, [
|
|
72
|
-
createVNode(_component_el_container, { class: "amb-container" }, {
|
|
73
|
-
default: withCtx(() => [
|
|
74
|
-
createVNode(_component_el_aside, { class: "serviceflow-container-left" }, {
|
|
75
|
-
default: withCtx(() => [
|
|
76
|
-
createVNode(ServicePanel, {
|
|
77
|
-
logicFlowInstance: logicFlowInstance.value,
|
|
78
|
-
"onUpdate:logicFlowInstance": _cache[0] || (_cache[0] = ($event) => logicFlowInstance.value = $event),
|
|
79
|
-
serviceTreeData: serviceTreeData.value,
|
|
80
|
-
onServiceClick,
|
|
81
|
-
onClearFlowCanvas: clearFlowCanvas,
|
|
82
|
-
onLoadTreeData: loadTreeData,
|
|
83
|
-
onDragNode: dragNode,
|
|
84
|
-
style: normalizeStyle(containerHeightStyle.value)
|
|
85
|
-
}, null, 8, ["logicFlowInstance", "serviceTreeData", "style"])
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
}),
|
|
89
|
-
createVNode(_component_el_main, {
|
|
90
|
-
class: "serviceflow-container-main",
|
|
91
|
-
style: normalizeStyle(containerHeightStyle.value)
|
|
92
|
-
}, {
|
|
93
|
-
default: withCtx(() => [
|
|
94
|
-
createVNode(ServiceFlowView, {
|
|
95
|
-
logicFlowInstance: logicFlowInstance.value,
|
|
96
|
-
"onUpdate:logicFlowInstance": _cache[1] || (_cache[1] = ($event) => logicFlowInstance.value = $event),
|
|
97
|
-
serviceTreeData: serviceTreeData.value,
|
|
98
|
-
pageContext: __props.pageContext,
|
|
99
|
-
onLoadTreeData: loadTreeData,
|
|
100
|
-
ref_key: "serviceFlowViewRef",
|
|
101
|
-
ref: serviceFlowViewRef
|
|
102
|
-
}, null, 8, ["logicFlowInstance", "serviceTreeData", "pageContext"])
|
|
103
|
-
]),
|
|
104
|
-
_: 1
|
|
105
|
-
}, 8, ["style"])
|
|
106
|
-
]),
|
|
107
|
-
_: 1
|
|
108
|
-
})
|
|
109
|
-
], 512);
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
});
|
|
26
|
+
}, _ = (e2) => {
|
|
27
|
+
C.value.onDragNode(e2);
|
|
28
|
+
}, b = (e2) => {
|
|
29
|
+
C.value.onServiceClick(e2);
|
|
30
|
+
}, T = () => {
|
|
31
|
+
C.value.clearFlowCanvas(), y.value = null;
|
|
32
|
+
};
|
|
33
|
+
return (s2, l2) => {
|
|
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
|
+
};
|
|
37
|
+
} });
|
|
113
38
|
export {
|
|
114
|
-
|
|
39
|
+
f as default
|
|
115
40
|
};
|
|
@@ -1,29 +1,24 @@
|
|
|
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
|
-
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
import { HtmlNode } from "@logicflow/core";
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
+
import { HtmlNode as e } from "@logicflow/core";
|
|
8
5
|
import "@logicflow/extension";
|
|
9
|
-
class
|
|
6
|
+
class t extends e {
|
|
10
7
|
constructor() {
|
|
11
8
|
super(...arguments);
|
|
12
9
|
__publicField(this, "isMounted", false);
|
|
13
10
|
__publicField(this, "r");
|
|
14
11
|
__publicField(this, "app");
|
|
15
12
|
}
|
|
16
|
-
setHtml(
|
|
17
|
-
if (
|
|
13
|
+
setHtml(e2) {
|
|
14
|
+
if (this.isMounted) this.r.component.props.properties = this.props.model.getProperties();
|
|
15
|
+
else {
|
|
18
16
|
this.isMounted = true;
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
this.app.mount(node);
|
|
22
|
-
} else {
|
|
23
|
-
this.r.component.props.properties = this.props.model.getProperties();
|
|
17
|
+
const t2 = document.createElement("div");
|
|
18
|
+
e2.appendChild(t2), this.app.mount(t2);
|
|
24
19
|
}
|
|
25
20
|
}
|
|
26
21
|
}
|
|
27
22
|
export {
|
|
28
|
-
|
|
23
|
+
t as default
|
|
29
24
|
};
|
|
@@ -1,71 +1,39 @@
|
|
|
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
|
-
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
import { HtmlNodeModel } from "@logicflow/core";
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
+
import { HtmlNodeModel as e } from "@logicflow/core";
|
|
8
5
|
import "vue";
|
|
9
|
-
class
|
|
10
|
-
constructor(
|
|
11
|
-
super(
|
|
6
|
+
class t extends e {
|
|
7
|
+
constructor(e2, t2) {
|
|
8
|
+
super(e2, t2);
|
|
12
9
|
__publicField(this, "nodeWidth", 200);
|
|
13
10
|
__publicField(this, "nodeHeight", 115);
|
|
14
|
-
console.log("----constructor---AbLogicNodeModel---");
|
|
15
11
|
this.setAttributes();
|
|
16
12
|
}
|
|
17
13
|
setAttributes() {
|
|
18
|
-
this.width = this.nodeWidth
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
this.inputData = this.text.value;
|
|
22
|
-
this.stroke = "#1E90FF";
|
|
23
|
-
this.fill = "#F0F8FF";
|
|
24
|
-
this.radius = 100;
|
|
25
|
-
this.menu = [
|
|
26
|
-
{
|
|
27
|
-
className: "lf-menu-delete",
|
|
28
|
-
icon: true,
|
|
29
|
-
text: "删除",
|
|
30
|
-
callback: (node) => {
|
|
31
|
-
this.graphModel.deleteNode(node.id);
|
|
32
|
-
this.graphModel.eventCenter.emit("custom:deleteNode", node);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
];
|
|
14
|
+
this.width = this.nodeWidth, this.height = this.nodeHeight, this.text.editable = false, this.inputData = this.text.value, this.stroke = "#1E90FF", this.fill = "#F0F8FF", this.radius = 100, this.menu = [{ className: "lf-menu-delete", icon: true, text: "删除", callback: (e2) => {
|
|
15
|
+
this.graphModel.deleteNode(e2.id), this.graphModel.eventCenter.emit("custom:deleteNode", e2);
|
|
16
|
+
} }];
|
|
36
17
|
}
|
|
37
18
|
getOutlineStyle() {
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
style.height = this.nodeHeight;
|
|
41
|
-
return style;
|
|
19
|
+
const e2 = super.getOutlineStyle();
|
|
20
|
+
return e2.width = this.nodeWidth, e2.height = this.nodeHeight, e2;
|
|
42
21
|
}
|
|
43
|
-
initNodeData(
|
|
44
|
-
super.initNodeData(
|
|
22
|
+
initNodeData(e2) {
|
|
23
|
+
super.initNodeData(e2);
|
|
45
24
|
}
|
|
46
25
|
getConnectedSourceRules() {
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
if (!source) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
let isValid = true;
|
|
56
|
-
if (excludes.indexOf(source.type) === -1) {
|
|
57
|
-
const n = source.graphModel.getNodeOutgoingEdge(source.id);
|
|
58
|
-
if (n.length > 0) {
|
|
59
|
-
isValid = false;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return isValid;
|
|
26
|
+
const e2 = super.getConnectedSourceRules(), t2 = ["judgeCondition", "end"], i = { message: "条件判断才能作为source有多条边连线!", validate: (e3, i2, s, d) => {
|
|
27
|
+
if (!e3) return false;
|
|
28
|
+
let o = true;
|
|
29
|
+
if (-1 === t2.indexOf(e3.type)) {
|
|
30
|
+
e3.graphModel.getNodeOutgoingEdge(e3.id).length > 0 && (o = false);
|
|
63
31
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return
|
|
32
|
+
return o;
|
|
33
|
+
} };
|
|
34
|
+
return e2.push(i), e2;
|
|
67
35
|
}
|
|
68
36
|
}
|
|
69
37
|
export {
|
|
70
|
-
|
|
38
|
+
t as default
|
|
71
39
|
};
|
|
@@ -1,29 +1,24 @@
|
|
|
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
|
-
import { HtmlResize } from "@logicflow/extension";
|
|
9
|
-
class
|
|
5
|
+
import { HtmlResize as e } from "@logicflow/extension";
|
|
6
|
+
class t extends e.view {
|
|
10
7
|
constructor() {
|
|
11
8
|
super(...arguments);
|
|
12
9
|
__publicField(this, "isMounted", false);
|
|
13
10
|
__publicField(this, "r");
|
|
14
11
|
__publicField(this, "app");
|
|
15
12
|
}
|
|
16
|
-
setHtml(
|
|
17
|
-
if (
|
|
13
|
+
setHtml(e2) {
|
|
14
|
+
if (this.isMounted) this.r.component.props.properties = this.props.model.getProperties();
|
|
15
|
+
else {
|
|
18
16
|
this.isMounted = true;
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
this.app.mount(node);
|
|
22
|
-
} else {
|
|
23
|
-
this.r.component.props.properties = this.props.model.getProperties();
|
|
17
|
+
const t2 = document.createElement("div");
|
|
18
|
+
e2.appendChild(t2), this.app.mount(t2);
|
|
24
19
|
}
|
|
25
20
|
}
|
|
26
21
|
}
|
|
27
22
|
export {
|
|
28
|
-
|
|
23
|
+
t as default
|
|
29
24
|
};
|
|
@@ -1,45 +1,26 @@
|
|
|
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
|
-
import { HtmlResize } from "@logicflow/extension";
|
|
10
|
-
class
|
|
11
|
-
constructor(
|
|
12
|
-
super(
|
|
6
|
+
import { HtmlResize as t } from "@logicflow/extension";
|
|
7
|
+
class e extends t.model {
|
|
8
|
+
constructor(t2, e2) {
|
|
9
|
+
super(t2, e2);
|
|
13
10
|
__publicField(this, "nodeWidth", 200);
|
|
14
11
|
__publicField(this, "nodeHeight", 115);
|
|
15
|
-
console.log("----constructor---AbLogicNodeModel---");
|
|
16
12
|
this.setAttributes();
|
|
17
13
|
}
|
|
18
14
|
setAttributes() {
|
|
19
|
-
this.text.editable = false
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this.fill = "#F0F8FF";
|
|
23
|
-
this.radius = 100;
|
|
24
|
-
this.menu = [
|
|
25
|
-
{
|
|
26
|
-
className: "lf-menu-delete",
|
|
27
|
-
icon: true,
|
|
28
|
-
text: "删除",
|
|
29
|
-
callback: (node) => {
|
|
30
|
-
this.graphModel.deleteNode(node.id);
|
|
31
|
-
this.graphModel.eventCenter.emit("custom:deleteNode", node);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
];
|
|
15
|
+
this.text.editable = false, this.inputData = this.text.value, this.stroke = "#1E90FF", this.fill = "#F0F8FF", this.radius = 100, this.menu = [{ className: "lf-menu-delete", icon: true, text: "删除", callback: (t2) => {
|
|
16
|
+
this.graphModel.deleteNode(t2.id), this.graphModel.eventCenter.emit("custom:deleteNode", t2);
|
|
17
|
+
} }];
|
|
35
18
|
}
|
|
36
19
|
getOutlineStyle() {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
style.height = this.nodeHeight;
|
|
40
|
-
return style;
|
|
20
|
+
const t2 = super.getOutlineStyle();
|
|
21
|
+
return t2.width = this.nodeWidth, t2.height = this.nodeHeight, t2;
|
|
41
22
|
}
|
|
42
23
|
}
|
|
43
24
|
export {
|
|
44
|
-
|
|
25
|
+
e as default
|
|
45
26
|
};
|
|
@@ -1,49 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
class
|
|
3
|
-
}
|
|
4
|
-
class CustomLineModel extends PolylineEdgeModel {
|
|
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 {
|
|
5
4
|
getEdgeStyle() {
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
style.stroke = this.isSelected ? "#ff7f0e" : "#C8CDD4";
|
|
9
|
-
return style;
|
|
5
|
+
const e2 = super.getEdgeStyle();
|
|
6
|
+
return e2.strokeWidth = 2, e2.stroke = this.isSelected ? "#ff7f0e" : "#C8CDD4", e2;
|
|
10
7
|
}
|
|
11
8
|
getTextPosition() {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
let [x2, y2] = currentPositionList[1].split(",");
|
|
20
|
-
let distence = 50;
|
|
21
|
-
const newX1 = Number(x1);
|
|
22
|
-
const newY1 = Number(y1);
|
|
23
|
-
const newx2 = Number(x2);
|
|
24
|
-
const newy2 = Number(y2);
|
|
25
|
-
if (newX1 === newx2) {
|
|
26
|
-
if (newy2 < newY1) {
|
|
27
|
-
distence = -50;
|
|
28
|
-
}
|
|
29
|
-
position.y = newY1 + distence;
|
|
30
|
-
position.x = newX1;
|
|
31
|
-
} else {
|
|
32
|
-
if (newx2 < newX1) {
|
|
33
|
-
distence = -50;
|
|
34
|
-
}
|
|
35
|
-
position.x = newX1 + distence;
|
|
36
|
-
position.y = newY1 - 10;
|
|
37
|
-
}
|
|
9
|
+
const e2 = super.getTextPosition(), t2 = this.points.split(" ");
|
|
10
|
+
if (t2 && t2.forEach((e3) => {
|
|
11
|
+
const [t3, s2] = e3.split(",");
|
|
12
|
+
}), t2.length > 1) {
|
|
13
|
+
let [s2, o] = t2[0].split(","), [i, r] = t2[1].split(","), l = 50;
|
|
14
|
+
const n = Number(s2), c = Number(o), p = Number(i), u = Number(r);
|
|
15
|
+
n === p ? (u < c && (l = -50), e2.y = c + l, e2.x = n) : (p < n && (l = -50), e2.x = n + l, e2.y = c - 10);
|
|
38
16
|
}
|
|
39
|
-
return
|
|
17
|
+
return e2;
|
|
40
18
|
}
|
|
41
|
-
}
|
|
42
|
-
const CustomLine$1 = {
|
|
43
|
-
type: "customLine",
|
|
44
|
-
view: CustomLine,
|
|
45
|
-
model: CustomLineModel
|
|
46
|
-
};
|
|
19
|
+
} };
|
|
47
20
|
export {
|
|
48
|
-
|
|
21
|
+
s as default
|
|
49
22
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
graphModel: ObjectConstructor;
|
|
3
3
|
properties: {
|
|
4
4
|
type: ObjectConstructor;
|
|
5
5
|
default: () => {};
|
|
6
6
|
};
|
|
7
|
-
}
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
8
|
btnClick: (...args: any[]) => void;
|
|
9
9
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
10
|
graphModel: ObjectConstructor;
|
|
@@ -12,9 +12,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
12
12
|
type: ObjectConstructor;
|
|
13
13
|
default: () => {};
|
|
14
14
|
};
|
|
15
|
-
}>> & {
|
|
15
|
+
}>> & Readonly<{
|
|
16
16
|
onBtnClick?: (...args: any[]) => any;
|
|
17
|
-
}
|
|
17
|
+
}>, {
|
|
18
18
|
properties: Record<string, any>;
|
|
19
|
-
}, {}>;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
20
|
export default _default;
|