super-page-designer 2.2.79 → 2.2.82

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,5 +1,5 @@
1
1
  import { defineComponent as e, ref as a, computed as l, resolveComponent as i, createBlock as o, openBlock as t, withCtx as n, createElementVNode as r, createVNode as s, createCommentVNode as u, withDirectives as d, renderSlot as p, createTextVNode as c, unref as g, vShow as m, createElementBlock as f, Fragment as v, renderList as b, normalizeClass as y, toDisplayString as V } from "vue";
2
- import O from "../../form/common/dataorigin-input-table.vue2.js";
2
+ import O from "../../form/common/dataorigin-input-table.vue.js";
3
3
  import { Codemirror as _ } from "vue-codemirror";
4
4
  import C from "../../workflow/component/combination.vue.js";
5
5
  import S from "./return-set-table.vue.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, createBlock as o, openBlock as u, withCtx as i, createElementVNode as n, createVNode as s, createCommentVNode as d, withDirectives as r, unref as m, createElementBlock as p, Fragment as c, renderList as b, createTextVNode as f, vShow as v, normalizeClass as y } from "vue";
2
- import V from "./dataorigin-input-table.vue2.js";
2
+ import V from "./dataorigin-input-table.vue.js";
3
3
  import g from "./condition.vue.js";
4
4
  import S from "./row-ul-li.vue.js";
5
5
  import "uuid";
@@ -1,4 +1,28 @@
1
- import t from "./dataorigin-input-table.vue2.js";
1
+ import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
2
+ import { Search as p } from "@element-plus/icons-vue";
3
+ const v = { class: "dialog-footer" }, c = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: c2 }) {
4
+ const f = e2, g = l(f.modelValue), V = c2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
5
+ function S() {
6
+ if (_.value.length > 0) {
7
+ let e3 = "";
8
+ _.value.forEach((l2) => {
9
+ e3 = e3 + l2.name + ",";
10
+ }), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
11
+ } else b.value = false;
12
+ }
13
+ function w(e3) {
14
+ _.value = e3;
15
+ }
16
+ function y() {
17
+ b.value = true;
18
+ }
19
+ return a(() => f.modelValue, (e3) => {
20
+ g.value = e3;
21
+ }), (e3, l2) => {
22
+ const a2 = t("el-icon"), c3 = t("el-input"), f2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
23
+ return d(), o(u, null, [n(c3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: y }, { suffix: i(() => [n(a2, { onClick: y }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", v, [n(_2, { onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: S }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: w }, { default: i(() => [n(f2, { type: "selection", width: "55" }), n(f2, { prop: "date", label: "Date", width: "180" }), n(f2, { prop: "name", label: "Name", width: "180" }), n(f2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
24
+ };
25
+ } });
2
26
  export {
3
- t as default
27
+ c as default
4
28
  };
@@ -1,28 +1,4 @@
1
- import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
2
- import { Search as p } from "@element-plus/icons-vue";
3
- const v = { class: "dialog-footer" }, c = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: c2 }) {
4
- const f = e2, g = l(f.modelValue), V = c2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
5
- function S() {
6
- if (_.value.length > 0) {
7
- let e3 = "";
8
- _.value.forEach((l2) => {
9
- e3 = e3 + l2.name + ",";
10
- }), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
11
- } else b.value = false;
12
- }
13
- function w(e3) {
14
- _.value = e3;
15
- }
16
- function y() {
17
- b.value = true;
18
- }
19
- return a(() => f.modelValue, (e3) => {
20
- g.value = e3;
21
- }), (e3, l2) => {
22
- const a2 = t("el-icon"), c3 = t("el-input"), f2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
23
- return d(), o(u, null, [n(c3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: y }, { suffix: i(() => [n(a2, { onClick: y }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", v, [n(_2, { onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: S }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: w }, { default: i(() => [n(f2, { type: "selection", width: "55" }), n(f2, { prop: "date", label: "Date", width: "180" }), n(f2, { prop: "name", label: "Name", width: "180" }), n(f2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
24
- };
25
- } });
1
+ import t from "./dataorigin-input-table.vue.js";
26
2
  export {
27
- c as default
3
+ t as default
28
4
  };
@@ -54,13 +54,13 @@ const I = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", pr
54
54
  }, { immediate: true }), z.configure.props.parameter && z.pageDesign && n(z.configure.props.parameter, (e3) => {
55
55
  let i2 = {};
56
56
  e3.forEach((e4) => {
57
- e4.name && e4.value && (i2[e4.name] = e4.value);
57
+ e4.paramName && e4.paramValue && (i2[e4.name] = e4.value);
58
58
  }), z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.customParams = i2;
59
59
  }, { immediate: true }), ((_d = (_c = z.configure.props) == null ? void 0 : _c.dataOrigin) == null ? void 0 : _d.serviceInputs) && z.pageDesign && n(z.configure.props.dataOrigin.serviceInputs, (e3) => {
60
60
  B(z.configure, e3);
61
61
  }, { immediate: true }), z.configure.componentIndex = z.indexObj.index;
62
- let E = z.indexObj.index;
63
- const N = R2, F = o({});
62
+ let N = z.indexObj.index;
63
+ const E = R2, F = o({});
64
64
  F.value = C(z.configure.name);
65
65
  const J = o(true);
66
66
  null == F.value && (F.value = j, J.value = false), n(() => z.configure.name, (e3) => {
@@ -82,16 +82,16 @@ const I = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", pr
82
82
  }), z.configure.props && z.configure.props.verification && z.configure.props.verification.required && (z.configure.props.verification.required = false);
83
83
  }
84
84
  });
85
- const G = o(null), K = o({}), L = o(""), Q = o({});
86
- function V() {
87
- W(z.configure, K, L), z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.common || (z.configure.runtime.common = {}), z.configure.runtime.common.class = L.value, z.configure.runtime.common.style = K.value;
85
+ const V = o(null), G = o({}), K = o(""), L = o({});
86
+ function Q() {
87
+ W(z.configure, G, K), z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.common || (z.configure.runtime.common = {}), z.configure.runtime.common.class = K.value, z.configure.runtime.common.style = G.value;
88
88
  }
89
89
  if (z.configure.props && z.configure.props && (n(z.configure.props.size, (e3) => {
90
- V();
90
+ Q();
91
91
  }), n(z.configure.props.position, (e3) => {
92
- V();
92
+ Q();
93
93
  }, { immediate: true })), z.configure.style && z.configure.style && n(z.configure.style, () => {
94
- V();
94
+ Q();
95
95
  }), z.configure.props) {
96
96
  z.configure.props.size || (z.configure.props.size = {});
97
97
  const e3 = z.configure.props.size;
@@ -99,40 +99,40 @@ const I = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", pr
99
99
  i2 || (i2 = {}, e3[O.PC] = i2), 0 == Object.keys(i2).length && (i2.widthType = e3.widthType, i2.flexSpan = e3.flexSpan, i2.fixWidth = e3.fixWidth, i2.fixHeight = e3.fixHeight, delete e3.widthType, delete e3.flexSpan, delete e3.fixWidth, delete e3.fixHeight);
100
100
  }
101
101
  const X = r(() => {
102
- const e3 = K.value;
103
- if (Q.value = {}, !e3 || !z.pageDesign) return {};
102
+ const e3 = G.value;
103
+ if (L.value = {}, !e3 || !z.pageDesign) return {};
104
104
  const i2 = {};
105
105
  z.configure.design && z.configure.design.style && Object.assign(i2, z.configure.design.style);
106
106
  const n2 = z.pageDesign.dimensions ? z.pageDesign.dimensions : "pc", o2 = e3[n2 + "_style"];
107
- return o2 && (i2.width = o2.width, i2.height = o2.height, Q.value = { height: o2.height }), L.value = e3[n2 + "_class"], i2;
107
+ return o2 && (i2.width = o2.width, i2.height = o2.height, L.value = { height: o2.height }), K.value = e3[n2 + "_class"], i2;
108
108
  });
109
109
  n(z.selectWidget, (e3) => {
110
- e3 && e3.value == E ? Y.value = "amb-design-item-selected" : Y.value = "";
110
+ e3 && e3.value == N ? Y.value = "amb-design-item-selected" : Y.value = "";
111
111
  });
112
112
  const Y = o("");
113
113
  function Z(e3) {
114
- e3 && e3.preventDefault(), N("onSelectWidget", E, z.configure);
114
+ e3 && e3.preventDefault(), E("onSelectWidget", N, z.configure);
115
115
  }
116
116
  function $(e3, i2) {
117
- N("onSelectWidget", e3, i2);
117
+ E("onSelectWidget", e3, i2);
118
118
  }
119
119
  function ee(e3, i2) {
120
- N("onCustomAttrWidget", e3, i2);
120
+ E("onCustomAttrWidget", e3, i2);
121
121
  }
122
122
  function ie(e3) {
123
- e3.preventDefault(), N("onCopy", z.configure);
123
+ e3.preventDefault(), E("onCopy", z.configure);
124
124
  }
125
125
  function ne(e3) {
126
- if (e3.preventDefault(), N("onDelete", z.configure), z.pageDesign.allChartUuids) {
126
+ if (e3.preventDefault(), E("onDelete", z.configure), z.pageDesign.allChartUuids) {
127
127
  const e4 = z.pageDesign.allChartUuids.findIndex((e5) => e5 === z.configure.uuid);
128
128
  e4 >= 0 && z.pageDesign.allChartUuids.splice(e4, 1);
129
129
  }
130
130
  }
131
131
  return s(() => {
132
- z.configure.props && z.configure.props.isInit && (delete z.configure.props.isInit, N("onSelectWidget", E, z.configure));
132
+ z.configure.props && z.configure.props.isInit && (delete z.configure.props.isInit, E("onSelectWidget", N, z.configure));
133
133
  }), (e3, i2) => {
134
134
  const n2 = t("el-icon");
135
- return u(), g("div", { style: a([{ position: "relative" }, X.value]), class: p(L.value), ref_key: "thisRef", ref: G }, [(u(), c(f(F.value), { style: a([K.value, Q.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: d(Z, ["stop"]), onHandleSelect: Z, class: p([[Y.value], "amb-design-item"]), onOnSelectWidget: $, onOnCustomAttrWidget: ee }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class"])), l(m("span", I, [l(D(n2, { onClick: d(ie, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(x))]), _: 1 }, 512), [[h, J.value]]), D(n2, { onClick: d(ne, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(y))]), _: 1 })], 512), [[h, Y.value && e3.showSelectedClass]])], 6);
135
+ return u(), g("div", { style: a([{ position: "relative" }, X.value]), class: p(K.value), ref_key: "thisRef", ref: V }, [(u(), c(f(F.value), { style: a([G.value, L.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: d(Z, ["stop"]), onHandleSelect: Z, class: p([[Y.value], "amb-design-item"]), onOnSelectWidget: $, onOnCustomAttrWidget: ee }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class"])), l(m("span", I, [l(D(n2, { onClick: d(ie, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(x))]), _: 1 }, 512), [[h, J.value]]), D(n2, { onClick: d(ne, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(y))]), _: 1 })], 512), [[h, Y.value && e3.showSelectedClass]])], 6);
136
136
  };
137
137
  } });
138
138
  export {
@@ -1,5 +1,5 @@
1
1
  import o from "./config.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = e(o, [["__scopeId", "data-v-8dba0ddd"]]);
5
5
  export {
@@ -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 c, withCtx as m, vShow as d, unref as v, createTextVNode as f, toDisplayString as p, 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.vue2.js";
3
+ import C from "./config.vue.js";
4
4
  import { standardButtonOperations as E } from "../../../utils/assemblys-config.js";
5
5
  import { findDesignItemByUuid as S, getUuidv4 as _, deepCopy as V } from "../../../utils/common-util.js";
6
6
  import { usePageContextStore as k } 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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-designer",
3
- "version": "2.2.79",
3
+ "version": "2.2.82",
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.26",
32
+ "agilebuilder-ui": "1.1.28",
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.78",
44
- "super-page-runtime": "2.2.77",
43
+ "service-flow-designer": "2.2.81",
44
+ "super-page-runtime": "2.2.80",
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.54-up"
55
+ "workflow-editor": "0.0.55-up"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@codemirror/autocomplete": "^6.16.0",