service-flow-designer 2.3.5-sit2-flow1 → 2.3.5-sit3-flow1

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.
@@ -1,7 +1,7 @@
1
1
  import e from "./datatable-select.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = t(e, [["__scopeId", "data-v-075d5fc4"]]);
4
+ const a = t(e, [["__scopeId", "data-v-58ec16d3"]]);
5
5
  export {
6
6
  a as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { ElDialog as e, ElContainer as l, ElHeader as a, ElSelect as t, ElOption as o, ElInput as s, ElButton as n, ElTable as u, ElTableColumn as r, ElPagination as i } from "element-plus/es";
1
+ import { ElDialog as e, ElContainer as l, ElHeader as a, ElSelect as t, ElOption as o, ElInput as s, ElButton as n, ElTable as r, ElTableColumn as u, ElPagination as i } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/dialog/style/css";
4
4
  import "element-plus/es/components/container/style/css";
@@ -10,61 +10,65 @@ import "element-plus/es/components/button/style/css";
10
10
  import "element-plus/es/components/input/style/css";
11
11
  import "element-plus/es/components/select/style/css";
12
12
  import "element-plus/es/components/option/style/css";
13
- import { defineComponent as p, ref as c, watch as m, createBlock as d, openBlock as v, withCtx as g, createVNode as f, createElementBlock as h, Fragment as y, renderList as b, unref as z, createTextVNode as C, createElementVNode as w } from "vue";
14
- import { Search as V } from "@element-plus/icons-vue";
15
- import S from "agilebuilder-ui/src/utils/request";
13
+ import { defineComponent as p, ref as c, watch as m, createBlock as d, openBlock as v, withCtx as f, createVNode as g, createElementBlock as h, Fragment as y, renderList as b, unref as C, createTextVNode as w, createElementVNode as z } from "vue";
14
+ import { Search as S } from "@element-plus/icons-vue";
15
+ import V from "agilebuilder-ui/src/utils/request";
16
16
  import { ElMessage as N } from "element-plus";
17
17
  const k = { class: "dialog-footer" }, T = p({ name: "DatatableSelect", inheritAttrs: false, __name: "datatable-select", props: { visible: { type: Boolean, default: false }, systemCode: { type: String, default: "" }, systemVersion: { type: Number, default: -1 } }, emits: ["update:visible", "select"], setup(p2, { emit: T2 }) {
18
- const _ = T2, P = p2, x = c(false), A = c([]), $ = c({ code: "", publishVersion: 1 }), U = c([]), I = c({ searchCode: "", searchName: "" }), B = c({ name: "" }), E = c({ currentPage: 1, pageSize: 20, showTotal: true, total: 0 }), M = c();
19
- function O(e2) {
18
+ const _ = T2, P = p2, x = c(false), A = c([]), O = c([]), $ = c({ code: "", publishVersion: 1 }), U = c([]), I = c({ searchCode: "", searchName: "" }), B = c({ name: "" }), E = c({ currentPage: 1, pageSize: 20, showTotal: true, total: 0 }), L = c();
19
+ function M(e2) {
20
+ e2 && "" !== e2.trim() ? A.value = O.value.filter((l2) => l2.name.toLowerCase().indexOf(e2.toLowerCase()) > -1 || l2.code.toLowerCase().indexOf(e2.toLowerCase()) > -1) : A.value = O.value;
21
+ }
22
+ function D(e2) {
20
23
  U.value = [], E.value.currentPage = 1, E.value.total = 0;
21
- const l2 = R(e2);
22
- $.value = l2, F($.value);
24
+ const l2 = X(e2);
25
+ $.value = l2, J($.value);
23
26
  }
24
- function D() {
25
- F($.value);
27
+ function F() {
28
+ J($.value);
26
29
  }
27
- function F(e2) {
30
+ function J(e2) {
28
31
  B.value = { name: "" };
29
32
  const l2 = { code: "MMS_MODULE_PAGE", pagination: { currentPage: E.value.currentPage, pageSize: E.value.pageSize, showTotal: true }, searchForm: [], dynamicColumnInfo: [] };
30
33
  I.value.searchCode && l2.searchForm.push({ leftBracket: "", rightBracket: "", joinSign: "and", propName: "name", operator: "CONTAIN", dataType: "TEXT", propValue: I.value.searchCode }), I.value.searchName && l2.searchForm.push({ leftBracket: "", rightBracket: "", joinSign: "and", propName: "alias", operator: "CONTAIN", dataType: "TEXT", propValue: I.value.searchName });
31
34
  const a2 = e2.code || P.systemCode;
32
- S.post(window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/list/" + a2 + "/0/" + e2.publishVersion, l2).then((e3) => {
35
+ V.post(window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/list/" + a2 + "/0/" + e2.publishVersion, l2).then((e3) => {
33
36
  U.value = e3.data, E.value.pageSize = e3.size, E.value.total = e3.total;
34
37
  });
35
38
  }
36
39
  function j(e2) {
37
40
  B.value = e2;
38
41
  }
39
- function J() {
42
+ function R() {
40
43
  if (B.value.name) {
41
- const e2 = R($.value.code);
44
+ const e2 = X($.value.code);
42
45
  _("select", { dataTable: B.value, system: e2 }), _("update:visible", false);
43
46
  } else N.warning("请选择一条记录!");
44
47
  }
45
- function R(e2) {
46
- return A.value.find((l2) => l2.code === e2);
48
+ function X(e2) {
49
+ const l2 = A.value.find((l3) => l3.code === e2);
50
+ if (l2) return JSON.parse(JSON.stringify(l2));
47
51
  }
48
- function X() {
52
+ function q() {
49
53
  _("update:visible", false);
50
54
  }
51
55
  m(() => P.visible, (e2) => {
52
- x.value = e2, e2 && S.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e3) => {
56
+ x.value = e2, e2 && V.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e3) => {
53
57
  e3 && e3.forEach((e4) => {
54
58
  e4.name = e4.name + "(" + e4.publishVersion + ")";
55
59
  });
56
60
  const l2 = e3.findIndex((e4) => e4.code === P.systemCode);
57
- $.value = JSON.parse(JSON.stringify(e3[l2])), A.value = e3, F($.value);
61
+ $.value = JSON.parse(JSON.stringify(e3[l2])), A.value = e3, O.value = e3, J($.value);
58
62
  });
59
63
  });
60
64
  return (p3, c2) => {
61
- const m2 = o, S2 = t, N2 = s, T3 = n, _2 = a, P2 = r, B2 = u, R2 = i, q = l, G = e;
62
- return v(), d(G, { "append-to-body": "", "destroy-on-close": "", modelValue: x.value, "onUpdate:modelValue": c2[7] || (c2[7] = (e2) => x.value = e2), title: "选择数据表", width: "60%", "before-close": X }, { footer: g(() => [w("div", k, [f(T3, { type: "default", size: "small", onClick: c2[6] || (c2[6] = (e2) => x.value = false) }, { default: g(() => c2[9] || (c2[9] = [C("返回")])), _: 1 }), f(T3, { size: "small", type: "primary", onClick: J }, { default: g(() => c2[10] || (c2[10] = [C(" 确定 ")])), _: 1 })])]), default: g(() => [f(q, { style: { height: "400px" } }, { default: g(() => [f(_2, { style: { padding: "0", height: "50px" } }, { default: g(() => [f(S2, { modelValue: $.value.code, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => $.value.code = e2), onChange: O, "value-key": "code", size: "small", style: { width: "240px" } }, { default: g(() => [(v(true), h(y, null, b(A.value, (e2) => (v(), d(m2, { key: e2.code, label: e2.name, value: e2.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), f(N2, { size: "small", clearable: "", modelValue: I.value.searchCode, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => I.value.searchCode = e2), placeholder: "编码", style: { width: "100px" } }, null, 8, ["modelValue"]), f(N2, { size: "small", clearable: "", modelValue: I.value.searchName, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => I.value.searchName = e2), placeholder: "名称", style: { width: "100px" } }, null, 8, ["modelValue"]), f(T3, { type: "primary", size: "small", icon: z(V), onClick: c2[3] || (c2[3] = (e2) => {
63
- F($.value);
64
- }) }, { default: g(() => c2[8] || (c2[8] = [C("查询")])), _: 1 }, 8, ["icon"])]), _: 1 }), f(B2, { ref_key: "tableRef", ref: M, "current-row-key": "code", "row-key": "code", onRowClick: j, data: U.value, "highlight-current-row": "", style: { width: "100%" } }, { default: g(() => [f(P2, { type: "index", width: "50" }), f(P2, { prop: "name", label: "编码" }), f(P2, { prop: "alias", label: "名称" }), f(P2, { prop: "modifierName", label: "修改人" }), f(P2, { prop: "modifiedTime", formatter: (e2) => ((e3) => {
65
+ const m2 = o, V2 = t, N2 = s, T3 = n, _2 = a, P2 = u, O2 = r, B2 = i, X2 = l, G = e;
66
+ return v(), d(G, { "append-to-body": "", "destroy-on-close": "", modelValue: x.value, "onUpdate:modelValue": c2[7] || (c2[7] = (e2) => x.value = e2), title: "选择数据表", width: "60%", "before-close": q }, { footer: f(() => [z("div", k, [g(T3, { type: "default", size: "small", onClick: c2[6] || (c2[6] = (e2) => x.value = false) }, { default: f(() => c2[9] || (c2[9] = [w("返回")])), _: 1 }), g(T3, { size: "small", type: "primary", onClick: R }, { default: f(() => c2[10] || (c2[10] = [w(" 确定 ")])), _: 1 })])]), default: f(() => [g(X2, { style: { height: "400px" } }, { default: f(() => [g(_2, { style: { padding: "0", height: "50px" } }, { default: f(() => [g(V2, { modelValue: $.value.code, "onUpdate:modelValue": c2[0] || (c2[0] = (e2) => $.value.code = e2), onChange: D, "filter-method": M, "value-key": "code", size: "small", filterable: "", style: { width: "240px" } }, { default: f(() => [(v(true), h(y, null, b(A.value, (e2) => (v(), d(m2, { key: e2.code, label: e2.name, value: e2.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), g(N2, { size: "small", clearable: "", modelValue: I.value.searchCode, "onUpdate:modelValue": c2[1] || (c2[1] = (e2) => I.value.searchCode = e2), placeholder: "编码", style: { width: "100px" } }, null, 8, ["modelValue"]), g(N2, { size: "small", clearable: "", modelValue: I.value.searchName, "onUpdate:modelValue": c2[2] || (c2[2] = (e2) => I.value.searchName = e2), placeholder: "名称", style: { width: "100px" } }, null, 8, ["modelValue"]), g(T3, { type: "primary", size: "small", icon: C(S), onClick: c2[3] || (c2[3] = (e2) => {
67
+ J($.value);
68
+ }) }, { default: f(() => c2[8] || (c2[8] = [w("查询")])), _: 1 }, 8, ["icon"])]), _: 1 }), g(O2, { ref_key: "tableRef", ref: L, "current-row-key": "code", "row-key": "code", onRowClick: j, data: U.value, "highlight-current-row": "", style: { width: "100%" } }, { default: f(() => [g(P2, { type: "index", width: "50" }), g(P2, { prop: "name", label: "编码" }), g(P2, { prop: "alias", label: "名称" }), g(P2, { prop: "modifierName", label: "修改人" }), g(P2, { prop: "modifiedTime", formatter: (e2) => ((e3) => {
65
69
  let l2 = new Date(e3);
66
70
  return `${l2.getFullYear()}-${("0" + (l2.getMonth() + 1)).slice(-2)}-${("0" + l2.getDate()).slice(-2)} ${("0" + l2.getHours()).slice(-2)}:${("0" + l2.getMinutes()).slice(-2)}:${("0" + l2.getSeconds()).slice(-2)}`;
67
- })(e2.modifiedTime), label: "修改时间" }, null, 8, ["formatter"])]), _: 1 }, 8, ["data"]), f(R2, { "current-page": E.value.currentPage, "onUpdate:currentPage": c2[4] || (c2[4] = (e2) => E.value.currentPage = e2), "page-size": E.value.pageSize, "onUpdate:pageSize": c2[5] || (c2[5] = (e2) => E.value.pageSize = e2), "page-sizes": [20, 30, 50, 100], small: "", background: "", layout: "total, sizes, prev, pager, next, jumper", total: E.value.total, onSizeChange: D, onCurrentChange: D }, null, 8, ["current-page", "page-size", "total"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]);
71
+ })(e2.modifiedTime), label: "修改时间" }, null, 8, ["formatter"])]), _: 1 }, 8, ["data"]), g(B2, { "current-page": E.value.currentPage, "onUpdate:currentPage": c2[4] || (c2[4] = (e2) => E.value.currentPage = e2), "page-size": E.value.pageSize, "onUpdate:pageSize": c2[5] || (c2[5] = (e2) => E.value.pageSize = e2), "page-sizes": [20, 30, 50, 100], small: "", background: "", layout: "total, sizes, prev, pager, next, jumper", total: E.value.total, onSizeChange: F, onCurrentChange: F }, null, 8, ["current-page", "page-size", "total"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]);
68
72
  };
69
73
  } });
70
74
  export {
@@ -2,7 +2,7 @@ import { ElDialog as e } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/dialog/style/css";
4
4
  import { defineComponent as o, ref as t, watch as l, createBlock as s, openBlock as a, withCtx as n, createVNode as u } from "vue";
5
- import p from "./json-view.vue2.js";
5
+ import p from "./json-view.vue.js";
6
6
  const d = o({ name: "JsonViewDialog", inheritAttrs: false, __name: "json-view-dialog", props: { jsonObject: { type: Object, default: () => {
7
7
  } }, appendToBody: { type: Boolean, default: false }, modelValue: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(o2, { emit: d2 }) {
8
8
  const m = o2, i = d2, r = t(false);
@@ -1,4 +1,54 @@
1
- import e from "./json-view.vue2.js";
1
+ import { defineComponent as e, ref as t, watch as r, onMounted as n, nextTick as o, createElementBlock as i, openBlock as c } from "vue";
2
+ import { EditorView as s, basicSetup as a } from "codemirror";
3
+ import { jsonLanguage as u } from "@codemirror/lang-json";
4
+ import { EditorState as m, Facet as l } from "@codemirror/state";
5
+ import { eclipse as f, githubDark as h, githubLight as d, dracula as g, vscodeDark as p, xcodeDark as v, xcodeLight as j } from "@uiw/codemirror-themes-all";
6
+ const w = e({ name: "JsonView", inheritAttrs: false, __name: "json-view", props: { jsonObject: { type: Object, default: () => {
7
+ } }, height: { type: Number, default: 0 }, theme: { type: String, default: null } }, setup(e2) {
8
+ const w2 = e2, y = t(null), b = t(), x = t("400px");
9
+ function O() {
10
+ y.value && y.value.destroy();
11
+ const e3 = w2.jsonObject ? JSON.stringify(w2.jsonObject, null, 2) : "";
12
+ if (w2.height) x.value = w2.height + "px";
13
+ else if (b.value) {
14
+ const e4 = b.value.getBoundingClientRect();
15
+ (e4.y || 0 === e4.y) && (x.value = window.innerHeight - e4.y - 100 + "px");
16
+ }
17
+ const t2 = function(e4) {
18
+ const t3 = function() {
19
+ if (w2.theme) switch (w2.theme) {
20
+ case "xcodeLight":
21
+ return j;
22
+ case "xcodeDark":
23
+ return v;
24
+ case "vscodeDark":
25
+ return p;
26
+ case "dracula":
27
+ return g;
28
+ case "githubLight":
29
+ return d;
30
+ case "githubDark":
31
+ return h;
32
+ case "eclipse":
33
+ return f;
34
+ }
35
+ return s.theme({});
36
+ }(), r3 = s.theme({ ".cm-content, .cm-gutter": { minHeight: x.value }, "&": { height: x.value, maxHeight: x.value, fontSize: "12px" } });
37
+ return m.create({ doc: e4, extensions: [m.tabSize.of(16), a, u, t3, r3, S.of(true), k] });
38
+ }(e3);
39
+ let r2 = document.getElementById("cf-codemirror-view-json");
40
+ r2 && (y.value = new s({ state: t2, parent: r2 }));
41
+ }
42
+ r(() => w2.jsonObject, (e3) => {
43
+ y.value && O();
44
+ }, { deep: true }), n(() => {
45
+ o(() => {
46
+ O();
47
+ });
48
+ });
49
+ const S = l.define({ combine: (e3) => e3.some((e4) => e4) }), k = m.transactionFilter.of((e3) => e3.isUserEvent && e3.docChanged && e3.state.facet(S) ? { changes: { from: e3.changes.from, to: e3.changes.to, insert: e3.startState.doc.sliceString(e3.changes.from, e3.changes.to) } } : e3);
50
+ return (e3, t2) => (c(), i("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref: b, id: "cf-codemirror-view-json" }, null, 512));
51
+ } });
2
52
  export {
3
- e as default
53
+ w as default
4
54
  };
@@ -1,54 +1,4 @@
1
- import { defineComponent as e, ref as t, watch as r, onMounted as n, nextTick as o, createElementBlock as i, openBlock as c } from "vue";
2
- import { EditorView as s, basicSetup as a } from "codemirror";
3
- import { jsonLanguage as u } from "@codemirror/lang-json";
4
- import { EditorState as m, Facet as l } from "@codemirror/state";
5
- import { eclipse as f, githubDark as h, githubLight as d, dracula as g, vscodeDark as p, xcodeDark as v, xcodeLight as j } from "@uiw/codemirror-themes-all";
6
- const w = e({ name: "JsonView", inheritAttrs: false, __name: "json-view", props: { jsonObject: { type: Object, default: () => {
7
- } }, height: { type: Number, default: 0 }, theme: { type: String, default: null } }, setup(e2) {
8
- const w2 = e2, y = t(null), b = t(), x = t("400px");
9
- function O() {
10
- y.value && y.value.destroy();
11
- const e3 = w2.jsonObject ? JSON.stringify(w2.jsonObject, null, 2) : "";
12
- if (w2.height) x.value = w2.height + "px";
13
- else if (b.value) {
14
- const e4 = b.value.getBoundingClientRect();
15
- (e4.y || 0 === e4.y) && (x.value = window.innerHeight - e4.y - 100 + "px");
16
- }
17
- const t2 = function(e4) {
18
- const t3 = function() {
19
- if (w2.theme) switch (w2.theme) {
20
- case "xcodeLight":
21
- return j;
22
- case "xcodeDark":
23
- return v;
24
- case "vscodeDark":
25
- return p;
26
- case "dracula":
27
- return g;
28
- case "githubLight":
29
- return d;
30
- case "githubDark":
31
- return h;
32
- case "eclipse":
33
- return f;
34
- }
35
- return s.theme({});
36
- }(), r3 = s.theme({ ".cm-content, .cm-gutter": { minHeight: x.value }, "&": { height: x.value, maxHeight: x.value, fontSize: "12px" } });
37
- return m.create({ doc: e4, extensions: [m.tabSize.of(16), a, u, t3, r3, S.of(true), k] });
38
- }(e3);
39
- let r2 = document.getElementById("cf-codemirror-view-json");
40
- r2 && (y.value = new s({ state: t2, parent: r2 }));
41
- }
42
- r(() => w2.jsonObject, (e3) => {
43
- y.value && O();
44
- }, { deep: true }), n(() => {
45
- o(() => {
46
- O();
47
- });
48
- });
49
- const S = l.define({ combine: (e3) => e3.some((e4) => e4) }), k = m.transactionFilter.of((e3) => e3.isUserEvent && e3.docChanged && e3.state.facet(S) ? { changes: { from: e3.changes.from, to: e3.changes.to, insert: e3.startState.doc.sliceString(e3.changes.from, e3.changes.to) } } : e3);
50
- return (e3, t2) => (c(), i("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref: b, id: "cf-codemirror-view-json" }, null, 512));
51
- } });
1
+ import e from "./json-view.vue.js";
52
2
  export {
53
- w as default
3
+ e as default
54
4
  };
@@ -14,7 +14,7 @@ import { json as _ } from "@codemirror/lang-json";
14
14
  import { EditorState as j } from "@codemirror/state";
15
15
  import S from "agilebuilder-ui/src/utils/request";
16
16
  import x from "@logicflow/core";
17
- import O from "../../common/components/json-view/json-view.vue2.js";
17
+ import O from "../../common/components/json-view/json-view.vue.js";
18
18
  import { vscodeDark as C } from "@uiw/codemirror-themes-all";
19
19
  import N from "./request-params.vue.js";
20
20
  import { getSystemBackendUrl as T } from "agilebuilder-ui/src/utils/common-util";
package/dist/es/style.css CHANGED
@@ -1204,13 +1204,13 @@
1204
1204
  position: static;
1205
1205
  }
1206
1206
 
1207
- .el-select + .el-input[data-v-075d5fc4] {
1207
+ .el-select + .el-input[data-v-58ec16d3] {
1208
1208
  margin-left: 10px;
1209
1209
  }
1210
- .el-input + .el-input[data-v-075d5fc4] {
1210
+ .el-input + .el-input[data-v-58ec16d3] {
1211
1211
  margin-left: 10px;
1212
1212
  }
1213
- .el-input + .el-button[data-v-075d5fc4] {
1213
+ .el-input + .el-button[data-v-58ec16d3] {
1214
1214
  margin-left: 10px;
1215
1215
  }
1216
1216
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "service-flow-designer",
3
- "version": "2.3.5-sit2-flow1",
3
+ "version": "2.3.5-sit3-flow1",
4
4
  "description": "AgileBuilder Service Flow Designer",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",