super-page-designer 2.2.18 → 2.2.22
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/components/design/utils/assemblys-config.js +9 -9
- package/dist/es/components/design/utils/form-design-util.d.ts +1 -0
- package/dist/es/components/design/utils/form-design-util.js +43 -26
- package/dist/es/components/design/utils/home-chart-util.js +1 -1
- package/dist/es/components/design/utils/page-explore-util.js +10 -10
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue2.js +7 -7
- package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue.js} +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +24 -15
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +86 -84
- package/dist/es/style.css +2 -2
- package/package.json +4 -4
- /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as e, ref as i, reactive as n, computed as t, watch as l, onMounted as
|
|
2
|
-
import { Monitor as
|
|
1
|
+
import { defineComponent as e, ref as i, reactive as n, computed as t, watch as l, onMounted as o, resolveComponent as s, createElementBlock as r, openBlock as u, Fragment as a, createElementVNode as c, createBlock as g, createCommentVNode as m, createVNode as p, normalizeStyle as f, withDirectives as d, normalizeClass as v, withCtx as b, unref as y, vShow as h, renderList as j } from "vue";
|
|
2
|
+
import { Monitor as C, Cellphone as S, Iphone as k, Plus as O, Check as _, View as A } from "@element-plus/icons";
|
|
3
3
|
import { useDraggable as D } from "vue-draggable-plus";
|
|
4
4
|
import w from "../../assemblys/object-design.vue.js";
|
|
5
|
-
import { deepCopy as x, getUuidv4 as
|
|
6
|
-
import { addComponentRef as
|
|
7
|
-
import { caculatePageStyle as
|
|
8
|
-
import
|
|
9
|
-
import { ElMessage as
|
|
5
|
+
import { deepCopy as x, getUuidv4 as T, findDesignItemByUuid as W } from "../../../utils/common-util.js";
|
|
6
|
+
import { addComponentRef as N } from "../../../utils/page-helper-util.js";
|
|
7
|
+
import { caculatePageStyle as E } from "../../../utils/container-design-util.js";
|
|
8
|
+
import U from "./view-design-preview.vue.js";
|
|
9
|
+
import { ElMessage as J } from "element-plus";
|
|
10
10
|
import "@vueuse/core";
|
|
11
11
|
import "@element-plus/icons-vue";
|
|
12
12
|
import "codemirror";
|
|
@@ -16,124 +16,126 @@ 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";
|
|
23
23
|
import "../../../utils/eventBus.js";
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { setTableRuntimesFromConfigure as
|
|
27
|
-
import
|
|
28
|
-
import { copyHandleEvents as
|
|
29
|
-
import { setHomeChartRuntimesFromConfigure as
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
oe();
|
|
24
|
+
import P from "./components/quick-add-dialog.vue.js";
|
|
25
|
+
import z from "./components/i18n-setting.vue.js";
|
|
26
|
+
import { setTableRuntimesFromConfigure as M } from "../../../utils/page-table-util.js";
|
|
27
|
+
import R from "agilebuilder-ui/src/utils/request";
|
|
28
|
+
import { copyHandleEvents as B, deleteDesignItem as K } from "../../../utils/page-design-util.js";
|
|
29
|
+
import { setHomeChartRuntimesFromConfigure as q } from "../../../utils/home-chart-util.js";
|
|
30
|
+
import { getFormPropTitleMap as V } from "../../../utils/form-design-util.js";
|
|
31
|
+
const F = { class: "amb-design-content-center-header" }, H = { class: "amb-design-tool" }, L = { class: "amb-design-tool-item" }, I = { class: "amb-design-tool-item", style: { "padding-right": "20px" } }, $ = e({ __name: "view-design-display", props: { configure: {}, selectWidget: {}, selAsselbyType: {} }, emits: ["onSelectWidget", "onCustomAttrWidget", "changeSelectEvent", "addEvent", "changeSelectStandardEvent", "revocation", "regain"], setup(e2, { expose: $2, emit: G }) {
|
|
32
|
+
const Q = e2, X = i(null), Y = i(null), Z = G;
|
|
33
|
+
null == Q.configure.props && (Q.configure.props = {}), null == Q.configure.style && (Q.configure.style = {}), null != Q.configure.items && null != Q.configure.items || (Q.configure.items = []);
|
|
34
|
+
const ee = Q.configure.items, ie = i(null), ne = n({ index: 0 }), te = i({}), le = i(""), oe = i(null);
|
|
35
|
+
re();
|
|
35
36
|
const se = t(function() {
|
|
36
37
|
let e3 = null;
|
|
37
|
-
"ipad" ==
|
|
38
|
+
"ipad" == Q.configure.dimensions ? e3 = 768 : "phone" == Q.configure.dimensions && (e3 = 414);
|
|
38
39
|
const i2 = { width: e3 ? e3 + "px" : "" };
|
|
39
|
-
for (let e4 in
|
|
40
|
-
return
|
|
40
|
+
for (let e4 in te.value) i2[e4] = te.value[e4];
|
|
41
|
+
return oe.value && (i2["min-height"] = oe.value + "px"), i2;
|
|
41
42
|
});
|
|
42
|
-
function
|
|
43
|
-
|
|
43
|
+
function re() {
|
|
44
|
+
E(Q.configure, te, le), Q.configure.runtime || (Q.configure.runtime = {}), Q.configure.runtime.class = le.value, Q.configure.runtime.style = te.value;
|
|
44
45
|
}
|
|
45
|
-
l(
|
|
46
|
-
|
|
47
|
-
}), l(
|
|
48
|
-
|
|
46
|
+
l(Q.configure.props, () => {
|
|
47
|
+
re();
|
|
48
|
+
}), l(Q.configure.style, () => {
|
|
49
|
+
re();
|
|
49
50
|
});
|
|
50
|
-
const ue = i(),
|
|
51
|
-
function
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
function ge(e3, i2) {
|
|
55
|
-
Y("onSelectWidget", e3, i2);
|
|
51
|
+
const ue = i(), ae = t(() => ({ height: ue.value + "px" })), ce = i(null);
|
|
52
|
+
function ge(e3) {
|
|
53
|
+
Z("onSelectWidget", -1);
|
|
56
54
|
}
|
|
57
55
|
function me(e3, i2) {
|
|
58
|
-
|
|
56
|
+
Z("onSelectWidget", e3, i2);
|
|
57
|
+
}
|
|
58
|
+
function pe(e3, i2) {
|
|
59
|
+
Z("onCustomAttrWidget", e3, i2);
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
-
const i2 =
|
|
62
|
-
t2.uuid =
|
|
61
|
+
function fe(e3) {
|
|
62
|
+
const i2 = ee.indexOf(e3), t2 = n(x(e3));
|
|
63
|
+
t2.uuid = T(), B(t2), ee.splice(i2, 0, t2);
|
|
63
64
|
}
|
|
64
65
|
function de(e3) {
|
|
65
|
-
|
|
66
|
+
K(ee, e3, e3.items && e3.items.length > 0, true);
|
|
66
67
|
}
|
|
67
|
-
|
|
68
|
-
if (
|
|
69
|
-
const e3 =
|
|
70
|
-
e3.y && (ue.value = window.innerHeight - e3.y),
|
|
68
|
+
o(() => {
|
|
69
|
+
if (ce.value) {
|
|
70
|
+
const e3 = ce.value.getBoundingClientRect();
|
|
71
|
+
e3.y && (ue.value = window.innerHeight - e3.y), N(Q.configure, -1, ce);
|
|
71
72
|
}
|
|
72
|
-
if (
|
|
73
|
-
const e3 =
|
|
74
|
-
e3.y && (
|
|
73
|
+
if (ve.value) {
|
|
74
|
+
const e3 = ve.value.getBoundingClientRect();
|
|
75
|
+
e3.y && (oe.value = window.innerHeight - e3.y - 20);
|
|
75
76
|
}
|
|
76
77
|
});
|
|
77
|
-
const
|
|
78
|
-
function
|
|
79
|
-
|
|
80
|
-
const e3 = JSON.parse(JSON.stringify(
|
|
78
|
+
const ve = i(null);
|
|
79
|
+
function be() {
|
|
80
|
+
Q.configure.i18nKeys && Q.configure.i18nKeys.length > 0 && (Q.configure.i18nKeys = Array.from(new Set(Q.configure.i18nKeys)));
|
|
81
|
+
const e3 = JSON.parse(JSON.stringify(Q.configure));
|
|
81
82
|
e3.tableRuntimes = {}, e3.currentTableConfig = {}, function(e4) {
|
|
83
|
+
"form" === e4.pageType && e4.items ? (e4.formPropTiltleMap = V(e4), Q.configure.formPropTiltleMap = e4.formPropTiltleMap) : (delete e4.formPropLabelMap, delete Q.configure.formPropLabelMap);
|
|
82
84
|
e4.tableUuids && (e4.tableUuids = e4.tableUuids.filter((i2) => {
|
|
83
|
-
const n2 =
|
|
84
|
-
return !!n2 && (
|
|
85
|
+
const n2 = W(e4, i2);
|
|
86
|
+
return !!n2 && (M(n2, e4), true);
|
|
85
87
|
}));
|
|
86
88
|
e4.homepageChartUuids && (e4.homepageChartUuids = e4.homepageChartUuids.filter((i2) => {
|
|
87
|
-
let n2 =
|
|
88
|
-
return !!n2 && (n2 = JSON.parse(JSON.stringify(n2)),
|
|
89
|
+
let n2 = W(e4, i2);
|
|
90
|
+
return !!n2 && (n2 = JSON.parse(JSON.stringify(n2)), q(n2, e4), true);
|
|
89
91
|
}));
|
|
90
|
-
}(e3),
|
|
91
|
-
|
|
92
|
+
}(e3), R.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/save", { id: Q.configure.id, designJson: JSON.stringify(e3) }).then((e4) => {
|
|
93
|
+
J({ message: "保存成功", type: "success" });
|
|
92
94
|
}).catch((e4) => {
|
|
93
|
-
|
|
95
|
+
J({ message: "保存失败", type: "error" });
|
|
94
96
|
});
|
|
95
97
|
}
|
|
96
|
-
D(
|
|
98
|
+
D(ve, ee, { filter: ".el-scrollbar__bar", preventOnFilter: false, group: "amb-assembly-item", animation: 300, ghostClass: "amb-item-ghost", forceFallback: true, onAdd(e3) {
|
|
97
99
|
} });
|
|
98
|
-
const
|
|
99
|
-
const
|
|
100
|
-
function
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
const ye = i(false);
|
|
101
|
+
const he = i(null), je = i({}), Ce = i({}), Se = i(false);
|
|
102
|
+
function ke() {
|
|
103
|
+
Se.value = false, setTimeout(() => {
|
|
104
|
+
Se.value = true;
|
|
103
105
|
}, 1);
|
|
104
106
|
}
|
|
105
|
-
function
|
|
106
|
-
if (
|
|
107
|
-
let i2 =
|
|
107
|
+
function Oe(e3) {
|
|
108
|
+
if (Q.configure.customEvents) {
|
|
109
|
+
let i2 = Q.configure.customEvents.filter((i3) => i3.eventName === e3);
|
|
108
110
|
if (i2 && i2.length > 0) return i2[0];
|
|
109
111
|
}
|
|
110
112
|
}
|
|
111
113
|
return $2({ onSelectEvent: function(e3) {
|
|
112
|
-
|
|
114
|
+
Se.value = !(!e3 || "selected" !== e3);
|
|
113
115
|
}, addEvent: function(e3, i2) {
|
|
114
|
-
|
|
115
|
-
const n2 =
|
|
116
|
-
n2 && (Ce.value = n2),
|
|
116
|
+
je.value = e3;
|
|
117
|
+
const n2 = Oe(e3.eventName);
|
|
118
|
+
n2 && (Ce.value = n2), he.value = i2 || "event", ke();
|
|
117
119
|
}, changeEvent: function(e3) {
|
|
118
120
|
if (e3) {
|
|
119
|
-
|
|
120
|
-
const i2 =
|
|
121
|
-
Ce.value = i2 || null,
|
|
122
|
-
} else
|
|
121
|
+
he.value = null, je.value = e3;
|
|
122
|
+
const i2 = Oe(e3.eventName);
|
|
123
|
+
Ce.value = i2 || null, ke();
|
|
124
|
+
} else Se.value = false;
|
|
123
125
|
} }), (e3, i2) => {
|
|
124
|
-
const n2 =
|
|
125
|
-
return
|
|
126
|
+
const n2 = s("el-icon"), t2 = s("el-divider"), l2 = s("Setting");
|
|
127
|
+
return u(), r(a, null, [c("div", { class: "amb-design-content", ref_key: "ambPageDesignContent", ref: ce, style: f(ae.value) }, [c("div", F, [c("div", H, [c("div", L, [d(c("label", { class: v(["amb-page-type", { selected: !e3.configure.dimensions || "pc" == e3.configure.dimensions }]), onClick: i2[0] || (i2[0] = (i3) => e3.configure.dimensions = "pc") }, [p(n2, { size: 23 }, { default: b(() => [p(y(C))]), _: 1 })], 2), [[h, "assembly" === e3.selAsselbyType]]), d(c("label", { class: v(["amb-page-type", { selected: "ipad" == e3.configure.dimensions }]), onClick: i2[1] || (i2[1] = (i3) => e3.configure.dimensions = "ipad") }, [p(n2, { size: 23 }, { default: b(() => [p(y(S))]), _: 1 })], 2), [[h, "assembly" === e3.selAsselbyType]]), d(c("label", { class: v(["amb-page-type", { selected: "phone" == e3.configure.dimensions }]), onClick: i2[2] || (i2[2] = (i3) => e3.configure.dimensions = "phone") }, [p(n2, { size: 23 }, { default: b(() => [p(y(k))]), _: 1 })], 2), [[h, "assembly" === e3.selAsselbyType]]), d(p(t2, { direction: "vertical" }, null, 512), [[h, "assembly" === e3.selAsselbyType]])]), c("div", I, [c("label", { class: "amb-page-type", onClick: i2[3] || (i2[3] = (e4) => {
|
|
126
128
|
var _a;
|
|
127
|
-
(_a =
|
|
129
|
+
(_a = Y.value) == null ? void 0 : _a.show();
|
|
128
130
|
}) }, [p(n2, { size: 18 }, { default: b(() => [p(l2)]), _: 1 }), i2[9] || (i2[9] = c("label", null, "国际化配置", -1))]), c("label", { class: "amb-page-type", onClick: i2[4] || (i2[4] = (e4) => {
|
|
129
|
-
|
|
130
|
-
}) }, [p(n2, { size: 18 }, { default: b(() => [p(y(O))]), _: 1 }), i2[10] || (i2[10] = c("label", null, "快捷添加", -1))]), p(t2, { direction: "vertical" }), c("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: i2[5] || (i2[5] = (e4) =>
|
|
131
|
-
const e5 = JSON.parse(JSON.stringify(
|
|
131
|
+
X.value && X.value.openDialog();
|
|
132
|
+
}) }, [p(n2, { size: 18 }, { default: b(() => [p(y(O))]), _: 1 }), i2[10] || (i2[10] = c("label", null, "快捷添加", -1))]), p(t2, { direction: "vertical" }), c("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: i2[5] || (i2[5] = (e4) => be()) }, [p(n2, { size: 18 }, { default: b(() => [p(y(_))]), _: 1 }), i2[11] || (i2[11] = c("label", null, "保存", -1))]), p(t2, { direction: "vertical" }), c("label", { class: "amb-page-type", style: { "margin-left": "0px" }, onClick: i2[6] || (i2[6] = (e4) => function() {
|
|
133
|
+
const e5 = JSON.parse(JSON.stringify(Q.configure));
|
|
132
134
|
e5.tableRuntimes = {}, e5.tableUuids && e5.tableUuids.forEach((i3) => {
|
|
133
|
-
const n3 =
|
|
134
|
-
n3 &&
|
|
135
|
-
}),
|
|
136
|
-
}()) }, [p(n2, { size: 18 }, { default: b(() => [p(y(A))]), _: 1 }), i2[12] || (i2[12] = c("label", null, "预览", -1))])])])]),
|
|
135
|
+
const n3 = W(e5, i3);
|
|
136
|
+
n3 && M(n3, e5);
|
|
137
|
+
}), ie.value = e5, ye.value = true;
|
|
138
|
+
}()) }, [p(n2, { size: 18 }, { default: b(() => [p(y(A))]), _: 1 }), i2[12] || (i2[12] = c("label", null, "预览", -1))])])])]), d(c("div", { class: v(["amb-design-board", le.value]), ref_key: "pageDesignBoardMain", ref: ve, style: f(se.value), onClick: ge }, [(u(true), r(a, null, j(y(ee), (i3, n3) => (u(), g(w, { key: i3.uuid, indexObj: ne, configure: i3, pageDesign: e3.configure, selectWidget: e3.selectWidget, onOnSelectWidget: me, onOnCustomAttrWidget: pe, onOnCopy: fe, onOnDelete: de }, null, 8, ["indexObj", "configure", "pageDesign", "selectWidget"]))), 128))], 6), [[h, "assembly" === e3.selAsselbyType]])], 4), ye.value ? (u(), g(U, { key: 0, pageDesign: ie.value, modelValue: ye.value, "onUpdate:modelValue": i2[7] || (i2[7] = (e4) => ye.value = e4), onClose: i2[8] || (i2[8] = (e4) => ye.value = false) }, null, 8, ["pageDesign", "modelValue"])) : m("", true), p(P, { ref_key: "quickAddDialogRef", ref: X, pageDesign: e3.configure }, null, 8, ["pageDesign"]), p(z, { ref_key: "i18nSettingRef", ref: Y, pageDesign: e3.configure }, null, 8, ["pageDesign"])], 64);
|
|
137
139
|
};
|
|
138
140
|
} });
|
|
139
141
|
export {
|
package/dist/es/style.css
CHANGED
|
@@ -679,7 +679,7 @@ fieldset.amb-design-item-selected {
|
|
|
679
679
|
text-align: center;
|
|
680
680
|
}
|
|
681
681
|
|
|
682
|
-
.event-item[data-v-
|
|
682
|
+
.event-item[data-v-18fb54c3] {
|
|
683
683
|
font-size: 12px;
|
|
684
684
|
border-bottom: 2px dashed #f5f6f8;
|
|
685
685
|
padding-top: 5px;
|
|
@@ -9489,7 +9489,7 @@ li[data-v-5581ec9f] {
|
|
|
9489
9489
|
color: #7b7b7b;
|
|
9490
9490
|
}
|
|
9491
9491
|
|
|
9492
|
-
.seleteSort[data-v-
|
|
9492
|
+
.seleteSort[data-v-b3158a02] {
|
|
9493
9493
|
border-radius: 5px;
|
|
9494
9494
|
border: 1px solid rgba(88, 147, 239);
|
|
9495
9495
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-designer",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.22",
|
|
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.
|
|
32
|
+
"agilebuilder-ui": "1.1.9",
|
|
33
33
|
"echarts": "^5.5.0",
|
|
34
34
|
"element-plus": "^2.6.1",
|
|
35
35
|
"font-awesome": "^4.7.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"qrcode": "^1.5.3",
|
|
42
42
|
"quill": "^2.0.1",
|
|
43
43
|
"service-flow-designer": "2.2.14",
|
|
44
|
-
"super-page-runtime": "2.2.
|
|
44
|
+
"super-page-runtime": "2.2.21",
|
|
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.
|
|
55
|
+
"workflow-editor": "0.0.51-up"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@codemirror/autocomplete": "^6.16.0",
|