super-page-designer 2.2.97 → 2.3.0-sit4

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.
Files changed (35) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +1 -1
  2. package/dist/es/components/design/utils/page-design-util.d.ts +3 -1
  3. package/dist/es/components/design/utils/page-design-util.js +23 -22
  4. package/dist/es/components/design/utils/page-table-util.js +62 -54
  5. package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +20 -20
  6. package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +24 -24
  7. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +3 -3
  8. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +69 -55
  9. package/dist/es/components/design/views/assemblys/container/card/card-design.vue.js +2 -2
  10. package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +1 -1
  11. package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +4 -4
  12. package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +1 -1
  13. package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +4 -4
  14. package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +6 -6
  15. package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
  16. package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +6 -6
  17. package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +8 -8
  18. package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
  19. package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +1 -1
  20. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1 -0
  21. package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
  22. package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +24 -24
  23. package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +16 -16
  24. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +13 -10
  25. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +12 -12
  26. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +13 -13
  27. package/dist/es/components/design/views/design/page-event/completion-data.d.ts +7 -0
  28. package/dist/es/components/design/views/design/page-event/completion-data.js +4 -0
  29. package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +2 -2
  30. package/dist/es/components/design/views/design/page-event/config.vue3.js +56 -50
  31. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
  32. package/dist/es/components/design/views/design/view/view-design-display.vue.js +2 -2
  33. package/dist/es/components/design/views/design/view/view-design.vue.js +16 -16
  34. package/dist/es/style.css +37 -37
  35. package/package.json +5 -5
@@ -1,72 +1,78 @@
1
- import { defineComponent as e, ref as t, onMounted as o, onUnmounted as n, resolveComponent as l, createElementBlock as a, openBlock as i, createElementVNode as r, createVNode as u, createTextVNode as s, withCtx as c, unref as f, normalizeStyle as p } from "vue";
2
- import { useLocalStorage as d } from "@vueuse/core";
3
- import { Search as m, MagicStick as g } from "@element-plus/icons-vue";
4
- import { EditorView as v, basicSetup as w } from "codemirror";
5
- import { javascriptLanguage as y, javascript as b } from "@codemirror/lang-javascript";
6
- import { EditorState as h } from "@codemirror/state";
1
+ import { defineComponent as e, ref as t, onMounted as l, onUnmounted as o, resolveComponent as n, createElementBlock as a, openBlock as r, createElementVNode as i, createVNode as s, createTextVNode as u, withCtx as c, unref as d, normalizeStyle as m } from "vue";
2
+ import { useLocalStorage as f } from "@vueuse/core";
3
+ import { Search as p, MagicStick as v } from "@element-plus/icons-vue";
4
+ import { EditorView as h, basicSetup as g } from "codemirror";
5
+ import { javascriptLanguage as b, javascript as _ } from "@codemirror/lang-javascript";
6
+ import { EditorState as x } from "@codemirror/state";
7
7
  import "@codemirror/autocomplete";
8
8
  import "@codemirror/language";
9
- import { openSearchPanel as _ } from "@codemirror/search";
10
- import x from "js-beautify";
11
- const C = { style: { padding: "8px 16px", margin: "10px 0px", "background-color": "#f4f4f5" }, class: "pppp" }, $ = { style: { color: "#909399", "font-size": "14px" } }, P = { key: 0 }, U = { key: 1 }, k = { class: "editorTool" }, F = e({ __name: "config", props: { eventForm: { type: Object, default: () => ({}) } }, emits: ["fullScreen"], setup(e2, { expose: F2, emit: S }) {
12
- const j = e2;
9
+ import { openSearchPanel as y } from "@codemirror/search";
10
+ import k from "js-beautify";
11
+ import w from "./completion-data.js";
12
+ const j = { style: { padding: "8px 16px", margin: "10px 0px", "background-color": "#f4f4f5" }, class: "pppp" }, C = { style: { color: "#909399", "font-size": "14px" } }, z = { key: 0 }, F = { key: 1 }, S = { class: "editorTool" }, O = e({ __name: "config", props: { eventForm: { type: Object, default: () => ({}) } }, emits: ["fullScreen"], setup(e2, { expose: O2, emit: V }) {
13
+ const D = e2;
13
14
  t(false);
14
- const z = t({ theme: "default", fontSize: 14, searchOpen: false }), V = t(null), E = t(null), D = t(null), O = t({ backgroundColor: "#fff", color: "#333", border: "1px solid #ddd", overflow: "auto" });
15
- let T;
16
- o(() => {
17
- let e3 = d("editorStyle", "").value;
18
- e3 && (e3 = JSON.parse(e3), z.value.theme = e3.theme || "default", z.value.fontSize = e3.fontSize || 14), R();
19
- }), n(() => {
20
- T && clearTimeout(T);
15
+ const L = t({ theme: "default", fontSize: 14, searchOpen: false }), T = t(null), W = t(null), $ = t(null), B = t({ backgroundColor: "#fff", color: "#333", border: "1px solid #ddd", overflow: "auto" });
16
+ let R;
17
+ l(() => {
18
+ let e3 = f("editorStyle", "").value;
19
+ e3 && (e3 = JSON.parse(e3), L.value.theme = e3.theme || "default", L.value.fontSize = e3.fontSize || 14), G();
20
+ }), o(() => {
21
+ R && clearTimeout(R);
21
22
  });
22
- const B = y.data.of({ autocomplete: function(e3) {
23
- let t2 = e3.matchBefore(/\w*|window\.\$PageUtil\.|window\.|logicContext\./);
24
- if (t2) {
25
- if ("window." === (t2 == null ? void 0 : t2.text)) return { from: t2.from, options: [{ label: "window.$PageUtil", type: "property", info: "页面工具方法" }, { label: "window.$message", type: "property", info: "提示信息" }, { label: "window.$http()", type: "property", info: "接口调用" }] };
26
- if ("window.$message." === (t2 == null ? void 0 : t2.text)) return { form: t2.from, options: [{ label: "window.$message.info()", type: "function", info: "提示消息" }, { label: "window.$message.success()", type: "function", info: "成功消息" }, { label: "window.$message.warning()", type: "function", info: "警告消息" }, { label: "window.$message.error()", type: "function", info: "错误消息" }] };
27
- if ("window.$PageUtil." === (t2 == null ? void 0 : t2.text)) return { from: t2.from, options: [{ label: "window.$PageUtil.standardEvents", type: "function", info: "显示方法" }, { label: "window.$PageUtil.showElement()", type: "function", info: "显示页面中的某个组件元素" }, { label: "window.$PageUtil.hideElement()", type: "function", info: "隐藏页面中的某个组件元素" }, { label: "window.$PageUtil.enableElement()", type: "function", info: "设置组件元素可用状态" }, { label: "window.$PageUtil.disableElement()", type: "function", info: "禁用页面中的某个组件元素" }, { label: "window.$PageUtil.setEntityDataValue()", type: "function", info: "设置Data值" }, { label: "window.$PageUtil.setEntityPageValue()", type: "function", info: "设置页面变量值" }, { label: "window.$PageUtil.setEntityValueByType()", type: "function", info: "根据类型设置值" }, { label: "window.$PageUtil.dsiabledAllFields()", type: "function", info: "禁用所有字段" }, { label: "window.$PageUtil.dynamicControlFormEdit()", type: "function", info: "表单编辑权限动态控制" }, { label: "window.$PageUtil.dynamicControlTableEdit()", type: "function", info: "控制表格编辑权限" }, { label: "window.$PageUtil.openPage()", type: "function", info: "打开页面" }, { label: "window.$PageUtil.refreshPage()", type: "function", info: "刷新页面" }, { label: "window.$PageUtil.refreshSubTableHandle()", type: "function", info: "刷新表单中子表内容" }, { label: "window.$PageUtil.refreshChildData()", type: "function", info: "对外开放的api方法更新子表集合" }, { label: "window.$PageUtil.getServerConfigValue()", type: "function", info: "根据key获得serverConfig中配置的信息" }, { label: "window.$PageUtil.getBackendUrl()", type: "function", info: "获得当前系统的后端访问路径" }, { label: "window.$PageUtil.getPlateBackendUrl()", type: "function", info: "获得平台后端访问路径" }] };
28
- if ("logicContext." === (t2 == null ? void 0 : t2.text)) return { from: t2.from, options: [{ label: "logicContext.page", type: "property", info: "页面变量" }, { label: "logicContext.logic", type: "property", info: "页面变量" }, { label: "logicContext.task", type: "property", info: "任务变量" }, { label: "logicContext.context", type: "property", info: "上下文变量" }, { label: "logicContext.system", type: "property", info: "系统变量" }, { label: "logicContext.data", type: "property", info: "数据模型变量" }] };
23
+ const U = b.data.of({ autocomplete: function(e3) {
24
+ const t2 = e3.matchBefore(/(?:window\.[\w$\.]*|logicContext\.[\w$\.]*)/);
25
+ if (!t2 || "" === t2.text) return null;
26
+ const l2 = t2.text;
27
+ if (w[l2]) return { from: t2.from, options: w[l2], filter: true };
28
+ let o2 = null;
29
+ for (const e4 of Object.keys(w)) l2.startsWith(e4) && (!o2 || e4.length > o2.length) && (o2 = e4);
30
+ if (!o2) for (const e4 of Object.keys(w)) e4.startsWith(l2) && (!o2 || e4.length > o2.length) && (o2 = e4);
31
+ if (o2) {
32
+ let e4 = w[o2];
33
+ return (l2.length > o2.length || l2 !== o2) && (e4 = e4.filter((e5) => e5.label.startsWith(l2))), { from: t2.from, options: e4, filter: false };
29
34
  }
35
+ if ("window.$" === l2) return { from: t2.from, options: w["window."].filter((e4) => e4.label.startsWith("window.$")), filter: false };
30
36
  return null;
31
37
  } });
32
- function L() {
33
- d("editorStyle", z.value).value = z.value, V.value && (V.value && V.value.destroy(), R());
38
+ function q() {
39
+ f("editorStyle", L.value).value = L.value, T.value && (T.value && T.value.destroy(), G());
34
40
  }
35
- function H() {
36
- const e3 = v.theme({}), t2 = v.theme({ ".cm-content, .cm-gutter": { minHeight: "400px" }, "&": { fontSize: z.value.fontSize + "px" } });
37
- return h.create({ doc: j.eventForm.jsContent, extensions: [h.tabSize.of(16), w, b(), B, e3, t2, v.updateListener.of(function(e4) {
38
- j.eventForm.jsContent = e4.state.doc.toString();
41
+ function E() {
42
+ const e3 = h.theme({}), t2 = h.theme({ ".cm-content, .cm-gutter": { minHeight: "400px" }, "&": { fontSize: L.value.fontSize + "px" } });
43
+ return x.create({ doc: D.eventForm.jsContent, extensions: [x.tabSize.of(16), g, _(), U, e3, t2, h.updateListener.of(function(e4) {
44
+ D.eventForm.jsContent = e4.state.doc.toString();
39
45
  })] });
40
46
  }
41
- function R() {
42
- const e3 = H();
43
- V.value = new v({ state: e3, parent: document.getElementById("cf-codemirror") || void 0 });
47
+ function G() {
48
+ const e3 = E();
49
+ T.value = new h({ state: e3, parent: document.getElementById("cf-codemirror") || void 0 });
44
50
  }
45
- function q() {
46
- if (V.value) {
47
- V.value.focus(), _(V.value) && V.value.update([]);
51
+ function H() {
52
+ if (T.value) {
53
+ T.value.focus(), y(T.value) && T.value.update([]);
48
54
  }
49
55
  }
50
- function G() {
51
- if (V.value) {
52
- const e3 = x.js(j.eventForm.jsContent, { indent_level: 0, indent_size: 2, space_in_empty_paren: false, max_preserve_newlines: 2, preserve_newlines: true, jslint_happy: false, keep_array_indentation: false, keep_function_indentation: false, space_before_conditional: true, break_chained_methods: false, eval_code: false, unescape_strings: false, wrap_line_length: 0, end_with_newline: false });
53
- V.value.dispatch({ changes: { from: 0, to: j.eventForm.jsContent.length, insert: e3 } });
56
+ function J() {
57
+ if (T.value) {
58
+ const e3 = k.js(D.eventForm.jsContent, { indent_level: 0, indent_size: 2, space_in_empty_paren: false, max_preserve_newlines: 2, preserve_newlines: true, jslint_happy: false, keep_array_indentation: false, keep_function_indentation: false, space_before_conditional: true, break_chained_methods: false, eval_code: false, unescape_strings: false, wrap_line_length: 0, end_with_newline: false });
59
+ T.value.dispatch({ changes: { from: 0, to: D.eventForm.jsContent.length, insert: e3 } });
54
60
  }
55
61
  }
56
- return F2({ resize: function() {
57
- T && clearTimeout(T), E.value && (T = setTimeout(() => {
58
- const e3 = E.value.getBoundingClientRect(), t2 = window.innerHeight - e3.y - 30 + "px";
59
- V.value && V.value.dom && (V.value.dom.style.height = t2);
62
+ return O2({ resize: function() {
63
+ R && clearTimeout(R), W.value && (R = setTimeout(() => {
64
+ const e3 = W.value.getBoundingClientRect(), t2 = window.innerHeight - e3.y - 30 + "px";
65
+ T.value && T.value.dom && (T.value.dom.style.height = t2);
60
66
  }, 10));
61
67
  }, updateJsContent: function(e3) {
62
68
  var _a;
63
- const t2 = j.eventForm.jsContent ? j.eventForm.jsContent : "";
64
- e3 && j.eventForm && (e3.jsContent || (e3.jsContent = ""), Object.assign(j.eventForm, e3), (_a = V.value) == null ? void 0 : _a.dispatch({ changes: { from: 0, to: t2.length, insert: j.eventForm.jsContent } }));
65
- } }), (t2, o2) => {
66
- const n2 = l("el-input"), d2 = l("el-option"), v2 = l("el-select"), w2 = l("el-tooltip"), y2 = l("el-icon");
67
- return i(), a("div", { style: { "padding-right": "20px" }, ref_key: "editorContentRef", ref: D }, [r("div", C, [r("span", $, [o2[6] || (o2[6] = s(" function ")), "customFunc" === e2.eventForm.name ? (i(), a("span", P, [o2[3] || (o2[3] = s(" ( ")), o2[4] || (o2[4] = r("span", { class: "is_req" }, [r("span", { class: "cell--span required__label" })], -1)), u(n2, { size: "small", modelValue: e2.eventForm.funcParam, "onUpdate:modelValue": o2[0] || (o2[0] = (t3) => e2.eventForm.funcParam = t3), style: { width: "300px" }, title: "方法参数" }, null, 8, ["modelValue"]), o2[5] || (o2[5] = s(" ) "))])) : (i(), a("span", U, " ( params ) ")), o2[7] || (o2[7] = s("{ "))]), r("span", k, [u(w2, { class: "box-item", effect: "dark", content: "切换主题", placement: "top" }, { default: c(() => [u(v2, { class: "editorOption", onChange: L, modelValue: z.value.theme, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => z.value.theme = e3), placeholder: "", size: "small", style: { width: "120px" } }, { default: c(() => [u(d2, { label: "默认", value: "default" }), u(d2, { label: "VScodeDark", value: "vscodeDark" }), u(d2, { label: "Dracula", value: "dracula" }), u(d2, { label: "GithubLight", value: "githubLight" }), u(d2, { label: "GithubDark", value: "githubDark" }), u(d2, { label: "Eclipse", value: "eclipse" }), u(d2, { label: "XcodeLight", value: "xcodeLight" }), u(d2, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(w2, { class: "box-item", effect: "dark", content: "切换字体大小", placement: "top" }, { default: c(() => [u(v2, { class: "editorOption", modelValue: z.value.fontSize, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => z.value.fontSize = e3), placeholder: "", onChange: L, size: "small", style: { width: "80px" } }, { default: c(() => [u(d2, { label: "12", value: 12 }), u(d2, { label: "14", value: 14 }), u(d2, { label: "16", value: 16 }), u(d2, { label: "18", value: 18 }), u(d2, { label: "20", value: 20 }), u(d2, { label: "22", value: 22 }), u(d2, { label: "24", value: 24 }), u(d2, { label: "26", value: 26 }), u(d2, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), u(w2, { class: "box-item", effect: "dark", content: "打开搜索", placement: "top" }, { default: c(() => [u(y2, { class: "editorOption", onClick: q }, { default: c(() => [u(f(m))]), _: 1 })]), _: 1 }), u(w2, { class: "box-item", effect: "dark", content: "格式化代码", placement: "top" }, { default: c(() => [u(y2, { class: "editorOption", onClick: G }, { default: c(() => [u(f(g))]), _: 1 })]), _: 1 })]), r("div", { style: p(O.value), id: "cf-codemirror", ref_key: "codemirrorRef", ref: E }, null, 4), o2[8] || (o2[8] = r("span", { style: { color: "gray" } }, " }", -1))], 512);
69
+ const t2 = D.eventForm.jsContent ? D.eventForm.jsContent : "";
70
+ e3 && D.eventForm && (e3.jsContent || (e3.jsContent = ""), Object.assign(D.eventForm, e3), (_a = T.value) == null ? void 0 : _a.dispatch({ changes: { from: 0, to: t2.length, insert: D.eventForm.jsContent } }));
71
+ } }), (t2, l2) => {
72
+ const o2 = n("el-input"), f2 = n("el-option"), h2 = n("el-select"), g2 = n("el-tooltip"), b2 = n("el-icon");
73
+ return r(), a("div", { style: { "padding-right": "20px" }, ref_key: "editorContentRef", ref: $ }, [i("div", j, [i("span", C, [l2[6] || (l2[6] = u(" function ")), "customFunc" === e2.eventForm.name ? (r(), a("span", z, [l2[3] || (l2[3] = u(" ( ")), l2[4] || (l2[4] = i("span", { class: "is_req" }, [i("span", { class: "cell--span required__label" })], -1)), s(o2, { size: "small", modelValue: e2.eventForm.funcParam, "onUpdate:modelValue": l2[0] || (l2[0] = (t3) => e2.eventForm.funcParam = t3), style: { width: "300px" }, title: "方法参数" }, null, 8, ["modelValue"]), l2[5] || (l2[5] = u(" ) "))])) : (r(), a("span", F, " ( params ) ")), l2[7] || (l2[7] = u("{ "))]), i("span", S, [s(g2, { class: "box-item", effect: "dark", content: "切换主题", placement: "top" }, { default: c(() => [s(h2, { class: "editorOption", onChange: q, modelValue: L.value.theme, "onUpdate:modelValue": l2[1] || (l2[1] = (e3) => L.value.theme = e3), placeholder: "", size: "small", style: { width: "120px" } }, { default: c(() => [s(f2, { label: "默认", value: "default" }), s(f2, { label: "VScodeDark", value: "vscodeDark" }), s(f2, { label: "Dracula", value: "dracula" }), s(f2, { label: "GithubLight", value: "githubLight" }), s(f2, { label: "GithubDark", value: "githubDark" }), s(f2, { label: "Eclipse", value: "eclipse" }), s(f2, { label: "XcodeLight", value: "xcodeLight" }), s(f2, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(g2, { class: "box-item", effect: "dark", content: "切换字体大小", placement: "top" }, { default: c(() => [s(h2, { class: "editorOption", modelValue: L.value.fontSize, "onUpdate:modelValue": l2[2] || (l2[2] = (e3) => L.value.fontSize = e3), placeholder: "", onChange: q, size: "small", style: { width: "80px" } }, { default: c(() => [s(f2, { label: "12", value: 12 }), s(f2, { label: "14", value: 14 }), s(f2, { label: "16", value: 16 }), s(f2, { label: "18", value: 18 }), s(f2, { label: "20", value: 20 }), s(f2, { label: "22", value: 22 }), s(f2, { label: "24", value: 24 }), s(f2, { label: "26", value: 26 }), s(f2, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), s(g2, { class: "box-item", effect: "dark", content: "打开搜索", placement: "top" }, { default: c(() => [s(b2, { class: "editorOption", onClick: H }, { default: c(() => [s(d(p))]), _: 1 })]), _: 1 }), s(g2, { class: "box-item", effect: "dark", content: "格式化代码", placement: "top" }, { default: c(() => [s(b2, { class: "editorOption", onClick: J }, { default: c(() => [s(d(v))]), _: 1 })]), _: 1 })]), i("div", { style: m(B.value), id: "cf-codemirror", ref_key: "codemirrorRef", ref: W }, null, 4), l2[8] || (l2[8] = i("span", { style: { color: "gray" } }, " }", -1))], 512);
68
74
  };
69
75
  } });
70
76
  export {
71
- F as default
77
+ O as default
72
78
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch as l, resolveComponent as u, createElementBlock as o, openBlock as s, createElementVNode as i, createVNode as r, withDirectives as m, withCtx as c, vShow as d, unref as v, createTextVNode as p, toDisplayString as f, Fragment as g, renderList as b, createBlock as y } from "vue";
2
2
  import { ElMessageBox as x, ElMessage as h } from "element-plus";
3
- import C from "./config.vue.js";
3
+ import C from "./config.vue2.js";
4
4
  import { standardButtonOperations as E } from "../../../utils/assemblys-config.js";
5
5
  import { findDesignItemByUuid as S, getUuidv4 as V, deepCopy as k } from "../../../utils/common-util.js";
6
6
  import { usePageContextStore as _ } from "../../../../../stores/page-store.js";
@@ -16,7 +16,7 @@ import "@codemirror/autocomplete";
16
16
  import "@codemirror/language";
17
17
  import "@codemirror/search";
18
18
  import "js-beautify";
19
- /* empty css */
19
+ /* empty css */
20
20
  import "../../../utils/assemblys-config.js";
21
21
  import "../../../../../stores/page-store.js";
22
22
  import "../../../../../stores/event-undo-redo-store.js";
@@ -61,7 +61,7 @@ const L = { class: "amb-design-content-center-header" }, I = { class: "amb-desig
61
61
  }
62
62
  function pe(e3) {
63
63
  const i2 = ie.indexOf(e3), t2 = n(W(e3));
64
- t2.uuid = N(), q(t2), ie.splice(i2, 0, t2);
64
+ t2.uuid = N(), q(t2, X.configure), ie.splice(i2, 0, t2);
65
65
  }
66
66
  function fe(e3) {
67
67
  V(ie, e3, e3.items && e3.items.length > 0, true);
@@ -1,28 +1,28 @@
1
- import { defineComponent as e, reactive as n, ref as t, resolveComponent as o, createBlock as l, openBlock as s, withCtx as a, createVNode as i, unref as c } from "vue";
1
+ import { defineComponent as e, reactive as n, ref as t, resolveComponent as o, createBlock as l, openBlock as s, withCtx as i, createVNode as a, unref as c } from "vue";
2
2
  import u from "./assemblys-container.vue.js";
3
3
  import r from "./view-design-display.vue.js";
4
4
  import f from "./attr-container.vue.js";
5
5
  import v from "./components/el-aside-expand-component.vue.js";
6
- const g = e({ __name: "view-design", props: { configure: {}, system: {} }, emits: ["addEvent", "changeEvent", "onSelectEvent", "revocation", "regain"], setup(e2, { expose: g2, emit: m }) {
7
- const d = e2, p = m;
8
- null == d.configure.items && (d.configure.items = []);
6
+ const g = e({ __name: "view-design", props: { configure: {}, system: {} }, emits: ["addEvent", "changeEvent", "onSelectEvent", "revocation", "regain"], setup(e2, { expose: g2, emit: d }) {
7
+ const m = e2, p = d;
8
+ null == m.configure.items && (m.configure.items = []);
9
9
  const y = n({ value: -1 }), E = t(null);
10
- let S = t("assembly");
11
- function b(e3, n2) {
12
- e3 = null == e3 ? -1 : e3, y.value = e3, -1 == e3 && (n2 = d.configure), E.value && E.value && (null == n2.style && (n2.style = {}), null == n2.props && (n2.props = {}), null == n2.events && (n2.events = []), E.value.changeAssembly(n2));
10
+ let b = t("assembly");
11
+ function S(e3, n2) {
12
+ n2 && !n2.isTable && (m.configure.currentTableConfig = void 0), e3 = null == e3 ? -1 : e3, y.value = e3, -1 == e3 && (n2 = m.configure), E.value && E.value && (null == n2.style && (n2.style = {}), null == n2.props && (n2.props = {}), null == n2.events && (n2.events = []), E.value.changeAssembly(n2));
13
13
  }
14
14
  function h(e3, n2) {
15
15
  E.value.changeAssemblyByComponent(e3, n2);
16
16
  }
17
- const _ = t(null);
18
- function C(e3) {
19
- S.value = e3 && "selected" === e3 ? "pageEvent" : "assembly", _.value.onSelectEvent(e3);
17
+ const C = t(null);
18
+ function _(e3) {
19
+ b.value = e3 && "selected" === e3 ? "pageEvent" : "assembly", C.value.onSelectEvent(e3);
20
20
  }
21
21
  function W(e3, n2) {
22
- _.value.addEvent(e3, n2);
22
+ C.value.addEvent(e3, n2);
23
23
  }
24
24
  function A(e3) {
25
- _.value.changeEvent(e3);
25
+ C.value.changeEvent(e3);
26
26
  }
27
27
  function R() {
28
28
  p("revocation");
@@ -34,15 +34,15 @@ const g = e({ __name: "view-design", props: { configure: {}, system: {} }, emits
34
34
  function O(e3) {
35
35
  I.value.changeSelectEvent(e3);
36
36
  }
37
- function k(e3) {
37
+ function T(e3) {
38
38
  I.value.doCreateEvent(e3);
39
39
  }
40
- function w(e3, n2) {
40
+ function k(e3, n2) {
41
41
  I.value.changeSelectStandardEvent(e3, n2);
42
42
  }
43
- return g2({ onSelectWidget: b }), (e3, n2) => {
43
+ return g2({ onSelectWidget: S }), (e3, n2) => {
44
44
  const t2 = o("el-main"), g3 = o("el-container");
45
- return s(), l(g3, { class: "amb-container" }, { default: a(() => [i(v, null, { default: a(() => [i(u, { ref_key: "assemblysContainerRef", ref: I, configure: e3.configure, designItems: e3.configure.items, selectWidget: y, onOnSelectWidget: b, onAddEvent: W, onChangeEvent: A, onOnSelectEvent: C }, null, 8, ["configure", "designItems", "selectWidget"])]), _: 1 }), i(t2, { class: "amb-container-main" }, { default: a(() => [i(r, { ref_key: "viewDesignDisplayRef", ref: _, configure: e3.configure, selectWidget: y, selAsselbyType: c(S), onOnSelectWidget: b, onOnCustomAttrWidget: h, onChangeSelectEvent: O, onAddEvent: k, onChangeSelectStandardEvent: w, onRevocation: R, onRegain: j }, null, 8, ["configure", "selectWidget", "selAsselbyType"])]), _: 1 }), i(v, { direction: "left" }, { default: a(() => [i(f, { pageInfo: e3.configure, system: e3.system, ref_key: "attrContainerRef", ref: E }, null, 8, ["pageInfo", "system"])]), _: 1 })]), _: 1 });
45
+ return s(), l(g3, { class: "amb-container" }, { default: i(() => [a(v, null, { default: i(() => [a(u, { ref_key: "assemblysContainerRef", ref: I, configure: e3.configure, designItems: e3.configure.items, selectWidget: y, onOnSelectWidget: S, onAddEvent: W, onChangeEvent: A, onOnSelectEvent: _ }, null, 8, ["configure", "designItems", "selectWidget"])]), _: 1 }), a(t2, { class: "amb-container-main" }, { default: i(() => [a(r, { ref_key: "viewDesignDisplayRef", ref: C, configure: e3.configure, selectWidget: y, selAsselbyType: c(b), onOnSelectWidget: S, onOnCustomAttrWidget: h, onChangeSelectEvent: O, onAddEvent: T, onChangeSelectStandardEvent: k, onRevocation: R, onRegain: j }, null, 8, ["configure", "selectWidget", "selAsselbyType"])]), _: 1 }), a(v, { direction: "left" }, { default: i(() => [a(f, { pageInfo: e3.configure, system: e3.system, ref_key: "attrContainerRef", ref: E }, null, 8, ["pageInfo", "system"])]), _: 1 })]), _: 1 });
46
46
  };
47
47
  } });
48
48
  export {
package/dist/es/style.css CHANGED
@@ -836,14 +836,14 @@ fieldset.amb-design-item-selected {
836
836
  }.runtime-page-container[data-v-f796b484] {
837
837
  height: calc(100vh - 73px);
838
838
  }
839
- .editorTool[data-v-8dba0ddd] {
839
+ .editorTool[data-v-c8908117] {
840
840
  margin-left: auto;
841
841
  }
842
- .editorOption[data-v-8dba0ddd] {
842
+ .editorOption[data-v-c8908117] {
843
843
  margin-right: 10px;
844
844
  cursor: pointer;
845
845
  }
846
- .pppp[data-v-8dba0ddd] {
846
+ .pppp[data-v-c8908117] {
847
847
  display: flex; /* 使用Flex布局 */
848
848
  justify-content: flex-start;
849
849
  align-items: center; /* 子元素在交叉轴(垂直方向)上居中对齐 */
@@ -930,25 +930,25 @@ fieldset.amb-design-item-selected {
930
930
  }
931
931
  ._amb-page-container_1k9lg_1 ._amb-page-container-header_1k9lg_6 ~ ._amb-page-container-main_1k9lg_9 {
932
932
  height: calc(100vh - 60px);
933
- }.amb-component-popover-icon-list-view[data-v-608ccc5b] {
933
+ }.amb-component-popover-icon-list-view[data-v-70020263] {
934
934
  display: flex;
935
935
  flex-direction: column;
936
936
  gap: 10px;
937
937
  overflow: hidden;
938
938
  height: 300px;
939
939
  }
940
- .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll[data-v-608ccc5b] {
940
+ .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll[data-v-70020263] {
941
941
  flex: 1 1 auto;
942
942
  overflow: auto;
943
943
  }
944
- .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid[data-v-608ccc5b] {
944
+ .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid[data-v-70020263] {
945
945
  display: grid;
946
946
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
947
947
  grid-gap: 15px;
948
948
  padding: 0;
949
949
  list-style: none;
950
950
  }
951
- .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item[data-v-608ccc5b] {
951
+ .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item[data-v-70020263] {
952
952
  position: relative;
953
953
  width: 40px;
954
954
  height: 40px;
@@ -960,14 +960,14 @@ fieldset.amb-design-item-selected {
960
960
  border-radius: 5px;
961
961
  line-height: 1;
962
962
  }
963
- .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item svg[data-v-608ccc5b] {
963
+ .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item svg[data-v-70020263] {
964
964
  width: 24px;
965
965
  height: 24px;
966
966
  }
967
- .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item[data-v-608ccc5b]:hover {
967
+ .amb-component-popover-icon-list-view .amb-component-popover-icon-list-scroll .amb-component-popover-icon-grid .amb-component-popover-icon-grid-item[data-v-70020263]:hover {
968
968
  background-color: var(--el-menu-active-color);
969
969
  color: var(--el-color-white);
970
- }.runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane {
970
+ }.runtime-page-container-tabs-view[data-v-626f9a46] > .el-tabs__content > .el-tab-pane {
971
971
  display: flex;
972
972
  flex-direction: row;
973
973
  align-items: flex-start;
@@ -975,16 +975,16 @@ fieldset.amb-design-item-selected {
975
975
  flex-wrap: wrap;
976
976
  gap: var(--runtime-page-container-view-gap, 15px);
977
977
  }
978
- .runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > div {
978
+ .runtime-page-container-tabs-view[data-v-626f9a46] > .el-tabs__content > .el-tab-pane > div {
979
979
  width: 100%;
980
980
  }
981
- .runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > div[style*="display: inline-block"] {
981
+ .runtime-page-container-tabs-view[data-v-626f9a46] > .el-tabs__content > .el-tab-pane > div[style*="display: inline-block"] {
982
982
  width: auto;
983
983
  }
984
- .runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > [style*="display: inline-block"] {
984
+ .runtime-page-container-tabs-view[data-v-626f9a46] > .el-tabs__content > .el-tab-pane > [style*="display: inline-block"] {
985
985
  width: auto;
986
986
  }
987
- .runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > .amb-design-item-default {
987
+ .runtime-page-container-tabs-view[data-v-626f9a46] > .el-tabs__content > .el-tab-pane > .amb-design-item-default {
988
988
  display: flex;
989
989
  flex-direction: row;
990
990
  align-items: flex-start;
@@ -992,18 +992,18 @@ fieldset.amb-design-item-selected {
992
992
  flex-wrap: wrap;
993
993
  gap: var(--runtime-page-container-view-gap, 15px);
994
994
  }
995
- .runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div {
995
+ .runtime-page-container-tabs-view[data-v-626f9a46] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div {
996
996
  width: 100%;
997
997
  }
998
- .runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div[style*="display: inline-block"] {
998
+ .runtime-page-container-tabs-view[data-v-626f9a46] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > div[style*="display: inline-block"] {
999
999
  width: auto;
1000
1000
  }
1001
- .runtime-page-container-tabs-view[data-v-f64cf23d] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > [style*="display: inline-block"] {
1001
+ .runtime-page-container-tabs-view[data-v-626f9a46] > .el-tabs__content > .el-tab-pane > .amb-design-item-default > [style*="display: inline-block"] {
1002
1002
  width: auto;
1003
- }.yx-card-box-view-main[data-v-65a008af] > .el-card__header {
1003
+ }.yx-card-box-view-main[data-v-231a66cb] > .el-card__header {
1004
1004
  position: relative;
1005
1005
  }
1006
- .yx-card-box-view-main .yx-card-box-view-header[data-v-65a008af] {
1006
+ .yx-card-box-view-main .yx-card-box-view-header[data-v-231a66cb] {
1007
1007
  display: flex;
1008
1008
  flex-direction: row;
1009
1009
  justify-content: space-between;
@@ -1011,12 +1011,12 @@ fieldset.amb-design-item-selected {
1011
1011
  gap: 15px;
1012
1012
  flex: 1 1 auto;
1013
1013
  }
1014
- .yx-card-box-view-main .yx-card-box-view-title[data-v-65a008af] {
1014
+ .yx-card-box-view-main .yx-card-box-view-title[data-v-231a66cb] {
1015
1015
  position: relative;
1016
1016
  z-index: 2;
1017
1017
  flex: 1 1 auto;
1018
1018
  }
1019
- .yx-card-box-view-main .yx-card-box-view-title[data-v-65a008af]::after {
1019
+ .yx-card-box-view-main .yx-card-box-view-title[data-v-231a66cb]::after {
1020
1020
  content: " ";
1021
1021
  position: absolute;
1022
1022
  left: 0;
@@ -1025,29 +1025,29 @@ fieldset.amb-design-item-selected {
1025
1025
  right: 0;
1026
1026
  z-index: 0;
1027
1027
  }
1028
- .yx-card-box-view-context[data-v-65a008af] {
1028
+ .yx-card-box-view-context[data-v-231a66cb] {
1029
1029
  gap: var(--layout-form-flex-gap, 15px);
1030
1030
  }
1031
- .yx-card-box-view-context[data-v-65a008af] > div {
1031
+ .yx-card-box-view-context[data-v-231a66cb] > div {
1032
1032
  width: 100%;
1033
1033
  }
1034
- .yx-card-box-view-context[data-v-65a008af] > div[style*="display: inline-block"] {
1034
+ .yx-card-box-view-context[data-v-231a66cb] > div[style*="display: inline-block"] {
1035
1035
  width: auto;
1036
1036
  }
1037
- .yx-card-box-view-context[data-v-65a008af] > .el-form-item {
1037
+ .yx-card-box-view-context[data-v-231a66cb] > .el-form-item {
1038
1038
  margin: 0;
1039
1039
  }
1040
- .yx-card-box-view-context[data-v-65a008af] > .el-form-item[class*=el-col-8] {
1040
+ .yx-card-box-view-context[data-v-231a66cb] > .el-form-item[class*=el-col-8] {
1041
1041
  flex: 0 0 calc((100% - var(--layout-form-flex-gap, 15px) * 2) / 3);
1042
1042
  }
1043
1043
  @media (max-width: 768px) {
1044
- .yx-card-box-view-context[data-v-65a008af] > .el-form-item[class*=el-col-8] {
1044
+ .yx-card-box-view-context[data-v-231a66cb] > .el-form-item[class*=el-col-8] {
1045
1045
  max-width: none;
1046
1046
  flex: 0 0 calc((100% - var(--layout-form-flex-gap, 15px) * 1) / 2);
1047
1047
  }
1048
1048
  }
1049
1049
  @media (max-width: 600px) {
1050
- .yx-card-box-view-context[data-v-65a008af] > .el-form-item[class*=el-col-8] {
1050
+ .yx-card-box-view-context[data-v-231a66cb] > .el-form-item[class*=el-col-8] {
1051
1051
  width: 100%;
1052
1052
  max-width: none;
1053
1053
  flex: auto;
@@ -1778,7 +1778,7 @@ fieldset.amb-design-item-selected {
1778
1778
  cursor: default;
1779
1779
  }
1780
1780
 
1781
- .seleteSort[data-v-30496704] {
1781
+ .seleteSort[data-v-307b2416] {
1782
1782
  border-radius: 5px;
1783
1783
  border: 1px solid rgba(88, 147, 239);
1784
1784
  }
@@ -10876,10 +10876,10 @@ fieldset.amb-design-item-selected {
10876
10876
  opacity: 0.5;
10877
10877
  background: #c8ebfb;
10878
10878
  }
10879
- li[data-v-e50b5e57] {
10879
+ li[data-v-f6dbf7b2] {
10880
10880
  color: #333;
10881
10881
  }
10882
- .context-menu[data-v-e50b5e57] {
10882
+ .context-menu[data-v-f6dbf7b2] {
10883
10883
  position: fixed;
10884
10884
  background: #fff;
10885
10885
  z-index: 999;
@@ -10887,7 +10887,7 @@ li[data-v-e50b5e57] {
10887
10887
  margin: 0;
10888
10888
  margin-top: 30px;
10889
10889
  }
10890
- .context-menu li[data-v-e50b5e57] {
10890
+ .context-menu li[data-v-f6dbf7b2] {
10891
10891
  min-width: 75px;
10892
10892
  height: 28px;
10893
10893
  line-height: 28px;
@@ -10895,19 +10895,19 @@ li[data-v-e50b5e57] {
10895
10895
  color: #1a1a1a;
10896
10896
  cursor: pointer;
10897
10897
  }
10898
- .context-menu li[data-v-e50b5e57]:hover {
10898
+ .context-menu li[data-v-f6dbf7b2]:hover {
10899
10899
  background: #5893ef;
10900
10900
  color: #fff;
10901
10901
  }
10902
- .context-menu[data-v-e50b5e57] {
10902
+ .context-menu[data-v-f6dbf7b2] {
10903
10903
  border: 1px solid #eee;
10904
10904
  box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
10905
10905
  border-radius: 5px;
10906
10906
  }
10907
- li[data-v-e50b5e57] {
10907
+ li[data-v-f6dbf7b2] {
10908
10908
  list-style-type: none;
10909
10909
  }
10910
- .amb-object-design-table-ref .super-grid-main-table-footer-view[data-v-e50b5e57] {
10910
+ .amb-object-design-table-ref .super-grid-main-table-footer-view[data-v-f6dbf7b2] {
10911
10911
  position: relative;
10912
10912
  display: flex;
10913
10913
  justify-content: space-between;
@@ -10916,7 +10916,7 @@ li[data-v-e50b5e57] {
10916
10916
  gap: var(--super-grid-main-view-gap, 10px);
10917
10917
  width: 100%;
10918
10918
  }
10919
- .amb-object-design-table-ref[data-v-e50b5e57] .el-pagination {
10919
+ .amb-object-design-table-ref[data-v-f6dbf7b2] .el-pagination {
10920
10920
  display: flex;
10921
10921
  flex-wrap: wrap;
10922
10922
  align-items: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-designer",
3
- "version": "2.2.97",
3
+ "version": "2.3.0-sit4",
4
4
  "description": "AgileBuilder super page designer",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",
@@ -29,7 +29,7 @@
29
29
  "@vitejs/plugin-vue": "^5.0.4",
30
30
  "@vueuse/core": "^10.9.0",
31
31
  "agilebuilder-private-libs": "1.0.26",
32
- "agilebuilder-ui": "1.1.35",
32
+ "agilebuilder-ui": "1.1.36-sit1",
33
33
  "echarts": "^5.5.0",
34
34
  "element-plus": "^2.6.1",
35
35
  "font-awesome": "^4.7.0",
@@ -40,8 +40,8 @@
40
40
  "pinia": "^2.1.7",
41
41
  "qrcode": "^1.5.3",
42
42
  "quill": "^2.0.1",
43
- "service-flow-designer": "2.2.95",
44
- "super-page-runtime": "2.2.92",
43
+ "service-flow-designer": "2.3.0-sit2",
44
+ "super-page-runtime": "2.3.0-sit1",
45
45
  "uuid": "^9.0.1",
46
46
  "vite": "^5.1.6",
47
47
  "vite-plugin-node-stdlib-browser": "^0.2.1",
@@ -52,7 +52,7 @@
52
52
  "vue-echarts": "^6.6.9",
53
53
  "vue-router": "^4.3.0",
54
54
  "vuex": "^4.1.0",
55
- "workflow-editor": "0.0.56-up"
55
+ "workflow-editor": "0.0.58-up"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@codemirror/autocomplete": "^6.16.0",