super-page-runtime 2.3.12-rc1 → 2.3.12-rc3

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 (25) hide show
  1. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +3 -3
  2. package/dist/es/components/runtime/utils/events/standard-event.js +223 -217
  3. package/dist/es/components/runtime/utils/events/validator-util.d.ts +2 -1
  4. package/dist/es/components/runtime/utils/events/validator-util.js +12 -9
  5. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
  6. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +8 -8
  7. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +8 -8
  9. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
  10. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +10 -10
  11. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +8 -8
  13. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
  14. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +11 -11
  15. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +1 -0
  16. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +15 -0
  17. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +144 -144
  18. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +10 -7
  19. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +7 -4
  20. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +43 -41
  21. package/dist/es/components/runtime/views/super-page-dialog.vue.js +3 -3
  22. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  23. package/dist/es/components/runtime/views/super-page.vue2.js +154 -147
  24. package/dist/es/style.css +87 -84
  25. package/package.json +2 -2
@@ -1,70 +1,72 @@
1
- import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as a, onUnmounted as i, resolveComponent as n, createBlock as s, createCommentVNode as u, openBlock as p, normalizeStyle as r, normalizeClass as d, unref as v, withCtx as m, createElementBlock as f, toDisplayString as c } from "vue";
1
+ import { defineComponent as e, ref as l, watch as t, onMounted as a, nextTick as o, onUnmounted as i, resolveComponent as n, createBlock as s, createCommentVNode as r, openBlock as u, normalizeStyle as p, normalizeClass as d, unref as m, withCtx as v, createElementBlock as f, toDisplayString as c } from "vue";
2
2
  import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
3
3
  import { handleAfterInitEvent as g, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
4
- import b from "agilebuilder-ui/src/utils/request";
5
- import { FsUploadNew as w } from "agilebuilder-ui";
6
- import x from "../../../../utils/eventBus.js";
7
- import { $t as k } from "../../../../utils/i18n-util.js";
4
+ import w from "agilebuilder-ui/src/utils/request";
5
+ import { FsUploadNew as b } from "agilebuilder-ui";
6
+ import k from "../../../../utils/eventBus.js";
7
+ import { $t as x } from "../../../../utils/i18n-util.js";
8
8
  import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
9
9
  const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
10
- const j = e2, N = l(null), R = j.configure.runtime ? j.configure.runtime : {}, T = l(R.props ? R.props : {}), z = R.style, D = R.class, I = R.headerStyle, O = R.titleExceedStyle, S = j.pageContext.entity ? j.pageContext.entity : {}, q = j.configure.props.base ? j.configure.props.base : {}, F = K(q.prop), U = K(q.propName);
11
- F && F.length > 1 && t(() => j.pageContext.entity[F[0]][F[1]], (e3) => {
12
- J(h(S, F));
10
+ var _a, _b, _c, _d, _e, _f, _g;
11
+ const j = e2, N = l(null), S = j.configure.runtime ? j.configure.runtime : {}, R = l(S.props ? S.props : {}), T = S.style, z = S.class, D = S.headerStyle, I = S.titleExceedStyle, O = j.pageContext.entity ? j.pageContext.entity : {}, q = j.configure.props.base ? j.configure.props.base : {}, F = L(q.prop), W = L(q.propName);
12
+ let U = l({});
13
+ U.value.isShowWatermark = void 0 === ((_b = (_a = j.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = j.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", U.value.content = ((_e = (_d = j.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = j.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", F && F.length > 1 && t(() => j.pageContext.entity[F[0]][F[1]], (e3) => {
14
+ K(h(O, F));
13
15
  });
14
- const $ = j.pageContext.code, W = l(F ? $ + "__" + F.join("__") : null), B = h(S, F), E = l(null), A = l(false), G = l([]), H = l({});
15
- function J(e3) {
16
+ const $ = j.pageContext.code, B = l(F ? $ + "__" + F.join("__") : null), E = h(O, F), A = l(null), G = l(false), H = l([]), J = l({});
17
+ function K(e3) {
16
18
  if (e3) {
17
19
  const l2 = e3.split(",");
18
20
  if (l2.length > 0) {
19
21
  const e4 = j.pageContext.backendUrl;
20
- b.post(e4 + "/common/fs-upload/search-file-names", l2).then((e5) => {
21
- G.value = [];
22
+ w.post(e4 + "/common/fs-upload/search-file-names", l2).then((e5) => {
23
+ H.value = [];
22
24
  const t2 = [];
23
- for (let o2 = 0; o2 < l2.length; o2++) {
24
- const a2 = l2[o2];
25
- t2.push(e5[a2]), G.value.push({ showName: e5[a2], serverPath: a2 });
25
+ for (let a2 = 0; a2 < l2.length; a2++) {
26
+ const o2 = l2[a2];
27
+ t2.push(e5[o2]), H.value.push({ showName: e5[o2], serverPath: o2 });
26
28
  }
27
- "input" === T.value.displayType && (H.value.showName = t2.join(","), H.value.serverPath = l2.join(","));
29
+ "input" === R.value.displayType && (J.value.showName = t2.join(","), J.value.serverPath = l2.join(","));
28
30
  }).finally(() => {
29
- A.value = true;
31
+ G.value = true;
30
32
  });
31
- } else A.value = true;
32
- } else G.value = [], H.value = {}, A.value = true;
33
+ } else G.value = true;
34
+ } else H.value = [], J.value = {}, G.value = true;
33
35
  }
34
- function K(e3) {
36
+ function L(e3) {
35
37
  return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
36
38
  }
37
- function L(e3) {
39
+ function M(e3) {
38
40
  return C(e3);
39
41
  }
40
- J(B);
41
- const M = (e3, l2, t2) => {
42
- V();
43
- }, Q = (e3) => {
44
- V();
45
- }, V = () => {
42
+ K(E);
43
+ const Q = (e3, l2, t2) => {
44
+ X();
45
+ }, V = (e3) => {
46
+ X();
47
+ }, X = () => {
46
48
  const e3 = [], l2 = [];
47
- if (T.value.limit && G.value.length > T.value.limit) {
48
- const e4 = G.value.length - T.value.limit;
49
- for (let l3 = 0; l3 < e4; l3++) G.value.shift();
49
+ if (R.value.limit && H.value.length > R.value.limit) {
50
+ const e4 = H.value.length - R.value.limit;
51
+ for (let l3 = 0; l3 < e4; l3++) H.value.shift();
50
52
  }
51
- for (let t2 = 0; t2 < G.value.length; t2++) e3.push(G.value[t2].showName), l2.push(G.value[t2].serverPath);
52
- y(j.pageContext.entity, F, l2.join(",")), y(j.pageContext.entity, U, e3.join(",")), l2.length > 0 && (N.value = "");
53
- }, X = l(null), Y = l(null);
54
- return o(() => {
55
- x.$on(W.value + "-pickFileDone", (e3) => {
56
- W.value, E.value.pickFileDone(e3);
57
- }), a(() => {
58
- const e3 = h(S, F), l2 = { showName: h(S, U), serverPath: e3 };
59
- g(l2, j.pageContext, j.configure, { formItemRef: X.value, componentRef: E.value, titleRef: Y.value, value: l2, entity: j.pageContext.entity.data, pageData: j.pageContext.entity.page });
53
+ for (let t2 = 0; t2 < H.value.length; t2++) e3.push(H.value[t2].showName), l2.push(H.value[t2].serverPath);
54
+ y(j.pageContext.entity, F, l2.join(",")), y(j.pageContext.entity, W, e3.join(",")), l2.length > 0 && (N.value = "");
55
+ }, Y = l(null), Z = l(null);
56
+ return a(() => {
57
+ k.$on(B.value + "-pickFileDone", (e3) => {
58
+ B.value, A.value.pickFileDone(e3);
59
+ }), o(() => {
60
+ const e3 = h(O, F), l2 = { showName: h(O, W), serverPath: e3 };
61
+ g(l2, j.pageContext, j.configure, { formItemRef: Y.value, componentRef: A.value, titleRef: Z.value, value: l2, entity: j.pageContext.entity.data, pageData: j.pageContext.entity.page });
60
62
  });
61
63
  }), i(() => {
62
- x.$off(W.value + "-pickFileDone");
64
+ k.$off(B.value + "-pickFileDone");
63
65
  }), _2({ addRequiredClass: function() {
64
66
  N.value = P();
65
67
  } }), (e3, l2) => {
66
68
  const t2 = n("el-form-item");
67
- return T.value.tittleShow ? (p(), s(t2, { key: 0, ref_key: "formItemRef", ref: X, required: T.value.required, class: d(v(D) + (N.value ? " " + N.value : "")), "label-width": T.value.labelWidth, style: r(v(z)) }, { label: m(() => [T.value.tittleShow ? (p(), f("div", { key: 0, ref_key: "titleRef", ref: Y, style: r({ ...v(I), ...v(O) }) }, c(v(k)(T.value.title)), 5)) : u("", true)]), default: m(() => [A.value ? (p(), s(v(w), { key: 0, ref_key: "fileUploadRef", ref: E, style: { width: "100%" }, disabled: "disabled" === T.value.state, displayType: T.value.displayType, accept: T.value.accept, multiple: T.value.multiple, placeholder: T.value.placeholder, limit: T.value.limit, "limit-file-size": T.value.limitFileSize, "disabled-no-preview": T.value.disabledNoPreview, "disabled-no-download": T.value.disabledNoDownload, openCameraOrChoosePhoto: T.value.openCameraOrChoosePhoto, "file-info": H.value, "file-list": G.value, "system-code": e3.pageContext.systemCode, componentId: W.value, "on-success": M, "on-remove": Q, "before-upload": L, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : A.value ? (p(), s(v(w), { key: 1, ref_key: "fileUploadRef", ref: E, style: { width: "100%" }, disabled: "disabled" === T.value.state, displayType: T.value.displayType, accept: T.value.accept, multiple: T.value.multiple, placeholder: T.value.placeholder, limit: T.value.limit, "limit-file-size": T.value.limitFileSize, "disabled-no-preview": T.value.disabledNoPreview, "disabled-no-download": T.value.disabledNoDownload, openCameraOrChoosePhoto: T.value.openCameraOrChoosePhoto, "file-info": H.value, "file-list": G.value, "system-code": e3.pageContext.systemCode, componentId: W.value, "on-success": M, "on-remove": Q, "before-upload": L, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true);
69
+ return R.value.tittleShow ? (u(), s(t2, { key: 0, ref_key: "formItemRef", ref: Y, required: R.value.required, class: d(m(z) + (N.value ? " " + N.value : "")), "label-width": R.value.labelWidth, style: p(m(T)) }, { label: v(() => [R.value.tittleShow ? (u(), f("div", { key: 0, ref_key: "titleRef", ref: Z, style: p({ ...m(D), ...m(I) }) }, c(m(x)(R.value.title)), 5)) : r("", true)]), default: v(() => [G.value ? (u(), s(m(b), { key: 0, ref_key: "fileUploadRef", ref: A, style: { width: "100%" }, disabled: "disabled" === R.value.state, displayType: R.value.displayType, accept: R.value.accept, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-preview": R.value.disabledNoPreview, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "file-info": J.value, "file-list": H.value, "system-code": e3.pageContext.systemCode, componentId: B.value, watermark: m(U), "on-success": Q, "on-remove": V, "before-upload": M, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : r("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : G.value ? (u(), s(m(b), { key: 1, ref_key: "fileUploadRef", ref: A, style: { width: "100%" }, disabled: "disabled" === R.value.state, displayType: R.value.displayType, accept: R.value.accept, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-preview": R.value.disabledNoPreview, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "file-info": J.value, "file-list": H.value, "system-code": e3.pageContext.systemCode, componentId: B.value, watermark: m(U), "on-success": Q, "on-remove": V, "before-upload": M, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : r("", true);
68
70
  };
69
71
  } });
70
72
  export {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as e, ref as a, resolveComponent as l, createBlock as u, openBlock as t, withCtx as n, createElementBlock as o, createCommentVNode as r } from "vue";
2
2
  import i from "./super-page.vue.js";
3
3
  const s = ["src"], d = { key: 1, class: "amb-super-page-runtime-dialog-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, g = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: g2 }) {
4
- const p = e2, v = g2, m = a(true), c = p.jumpPageSetting ? p.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), w = a(null), C = a(null), j = a(null), b = a({}), y = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), V = a(null), x = a(true), S = a(false);
4
+ const p = e2, v = g2, m = a(true), c = p.jumpPageSetting ? p.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), w = a(null), C = a(null), j = a(null), b = a({}), y = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), x = a(null), V = a(true), S = a(false);
5
5
  if (c) {
6
- x.value = (c == null ? void 0 : c.alignCenter) ?? true, S.value = (c == null ? void 0 : c.fullscreen) ?? false, _.value = !(!c || void 0 === c._isIframe) && c._isIframe, V.value = c && c._path ? c._path : null, j.value = c && c.dialogType ? c.dialogType : "dialog", y.value = !(!c || !c.draggable) && c.draggable, k.value = !(!c || !c.overflow) && c.overflow, O.value = c && c.showPosition ? c.showPosition : "rtl", f.value = c && c.jumpPageTitle ? c.jumpPageTitle : null, P.value = c && c.jumpPageWidth ? c.jumpPageWidth : "dialog" === j.value ? "calc(100% - 30px)" : "100%", I.value = c && c.jumpPageHeight ? c.jumpPageHeight : null, h.value = c && c.pageCode, w.value = c && c.dataId ? c.dataId : null, C.value = c && c.taskId ? c.taskId : null;
6
+ V.value = (c == null ? void 0 : c.alignCenter) ?? true, S.value = (c == null ? void 0 : c.fullscreen) ?? false, _.value = !(!c || void 0 === c._isIframe) && c._isIframe, x.value = c && c._path ? c._path : null, j.value = c && c.dialogType ? c.dialogType : "dialog", y.value = !(!c || !c.draggable) && c.draggable, k.value = !(!c || !c.overflow) && c.overflow, O.value = c && c.showPosition ? c.showPosition : "rtl", f.value = c && c.jumpPageTitle ? c.jumpPageTitle : null, P.value = c && c.jumpPageWidth ? c.jumpPageWidth : "dialog" === j.value ? "calc(100% - 30px)" : "100%", I.value = c && c.jumpPageHeight ? c.jumpPageHeight : null, h.value = c && c.pageCode, w.value = c && c.dataId ? c.dataId : null, C.value = c && c.taskId ? c.taskId : null;
7
7
  const e3 = !!c.isNeedId;
8
8
  if (p.parentPageEventParams) {
9
9
  try {
@@ -18,7 +18,7 @@ const s = ["src"], d = { key: 1, class: "amb-super-page-runtime-dialog-iframe",
18
18
  }
19
19
  return (e3, a2) => {
20
20
  const g3 = l("el-drawer"), p2 = l("el-dialog");
21
- return j.value && "drawer" === j.value ? (t(), u(g3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => v("open")), onOpened: a2[2] || (a2[2] = (e4) => v("opened")), onClose: a2[3] || (a2[3] = (e4) => v("close")), onClosed: a2[4] || (a2[4] = (e4) => v("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: b.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (t(), o("iframe", { key: 1, src: V.value, class: "amb-super-page-runtime-drawer-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, s)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (t(), u(p2, { key: 1, "model-value": "", title: f.value, "close-on-click-modal": false, "append-to-body": "", width: P.value, fullscreen: S.value, alignCenter: x.value, draggable: y.value, overflow: k.value, class: "amb-super-page-runtime-dialog-view", onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => v("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: b.value, contentHeight: I.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (t(), o("iframe", d)) : r("", true)]), _: 1 }, 8, ["title", "width", "fullscreen", "alignCenter", "draggable", "overflow"]));
21
+ return j.value && "drawer" === j.value ? (t(), u(g3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => v("open")), onOpened: a2[2] || (a2[2] = (e4) => v("opened")), onClose: a2[3] || (a2[3] = (e4) => v("close")), onClosed: a2[4] || (a2[4] = (e4) => v("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: b.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (t(), o("iframe", { key: 1, src: x.value, class: "amb-super-page-runtime-drawer-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, s)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (t(), u(p2, { key: 1, "model-value": "", title: f.value, "close-on-click-modal": false, "append-to-body": "", width: P.value, fullscreen: S.value, alignCenter: V.value, draggable: y.value, overflow: k.value, class: "amb-super-page-runtime-dialog-view", onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => v("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, style: { "min-height": "100px" }, pageCode: h.value, pageRequest: b.value, contentHeight: I.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (t(), o("iframe", d)) : r("", true)]), _: 1 }, 8, ["title", "width", "fullscreen", "alignCenter", "draggable", "overflow"]));
22
22
  };
23
23
  } });
24
24
  export {
@@ -1,7 +1,7 @@
1
1
  import e from "./super-page.vue2.js";
2
2
  /* empty css */
3
3
  import p from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = p(e, [["__scopeId", "data-v-5ed222b6"]]);
4
+ const r = p(e, [["__scopeId", "data-v-58ebe759"]]);
5
5
  export {
6
6
  r as default
7
7
  };