super-page-runtime 2.2.83 → 2.2.89-sit1

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 (69) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +56 -56
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +74 -74
  4. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
  5. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
  6. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
  7. package/dist/es/components/runtime/utils/charts/chart-util.js +7 -9
  8. package/dist/es/components/runtime/utils/events/event-util.js +113 -113
  9. package/dist/es/components/runtime/utils/events/print-label.js +37 -38
  10. package/dist/es/components/runtime/utils/events/standard-event.js +535 -540
  11. package/dist/es/components/runtime/utils/events/validator-util.js +72 -62
  12. package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
  13. package/dist/es/components/runtime/utils/page-helper-util.js +210 -210
  14. package/dist/es/components/runtime/utils/page-init-util.js +47 -50
  15. package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
  16. package/dist/es/components/runtime/utils/page-store.js +1 -1
  17. package/dist/es/components/runtime/utils/table-utils.js +23 -23
  18. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +16 -13
  19. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -1
  20. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +15 -11
  21. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +12 -16
  22. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  23. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +9 -11
  24. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +12 -13
  27. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +13 -14
  28. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
  29. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -17
  30. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +131 -122
  31. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +90 -57
  32. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -26
  33. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +4 -4
  34. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  35. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
  37. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +6 -6
  38. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
  39. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +39 -36
  40. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
  41. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +11 -8
  42. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  43. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  44. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +92 -94
  45. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +123 -124
  46. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +16 -14
  47. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  48. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +80 -77
  49. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
  50. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +34 -29
  51. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +39 -41
  52. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +22 -22
  53. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +50 -51
  54. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -8
  55. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -10
  56. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
  57. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -1
  58. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  59. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -4
  60. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -1
  61. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
  62. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  63. package/dist/es/components/runtime/views/super-page-dialog.vue.js +9 -10
  64. package/dist/es/components/runtime/views/{super-page-dialog.vue2.js → super-page-dialog.vue3.js} +1 -0
  65. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  66. package/dist/es/components/runtime/views/super-page.vue2.js +126 -126
  67. package/dist/es/index.js +1 -0
  68. package/dist/es/style.css +234 -99
  69. package/package.json +2 -2
@@ -1,76 +1,75 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, onUnmounted as a, watch as u, resolveComponent as i, createBlock as c, openBlock as r, normalizeStyle as s, normalizeClass as p, unref as v, withCtx as f, createVNode as g, createCommentVNode as y, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
2
- import { SuperIcon as k } from "agilebuilder-ui";
3
- import { getFormModelFields as T } from "../../../../utils/page-init-util.js";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as c, normalizeClass as s, unref as v, withCtx as f, createVNode as g, createCommentVNode as y, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
2
+ import { SuperIcon as T } from "agilebuilder-ui";
3
+ import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
4
4
  import { getModelFieldFromPageContext as V, isNumberDataType as h, setVariableValue as w, getVariableValue as b } from "../../../../utils/page-helper-util.js";
5
5
  import { handleFormEvent as _, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as j } from "../../../../utils/events/event-util.js";
6
- import { formatScanRuleSets as R, analysisScanValue as D, setScanAnalysisValue as P } from "../../../../utils/form/scan-util.js";
7
- import N from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as O } from "agilebuilder-ui/src/utils/common-util";
9
- import q from "../../../../utils/eventBus.js";
10
- import { $t as z } from "../../../../utils/i18n-util.js";
11
- const J = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: J2 }) {
6
+ import { formatScanRuleSets as R, analysisScanValue as D, setScanAnalysisValue as O } from "../../../../utils/form/scan-util.js";
7
+ import P from "../common/title-suffix-element.vue.js";
8
+ import { isMobileBrowser as q } from "agilebuilder-ui/src/utils/common-util";
9
+ import z from "../../../../utils/eventBus.js";
10
+ import { $t as L } from "../../../../utils/i18n-util.js";
11
+ const M = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: M2 }) {
12
12
  var _a, _b, _c;
13
- const L = e2, M = L.pageContext.entity ? L.pageContext.entity : {}, A = t("text");
14
- let B = T(L.pageContext, L.configure);
15
- if (L.pageContext.modelFieldsMap) {
16
- const e3 = V(B, L.pageContext);
17
- e3 && (A.value = h(e3.dataType) ? "number" : "text");
13
+ const N = e2, B = N.pageContext.entity ? N.pageContext.entity : {}, F = t("text");
14
+ let J = k(N.pageContext, N.configure);
15
+ if (N.pageContext.modelFieldsMap) {
16
+ const e3 = V(J, N.pageContext);
17
+ e3 && (F.value = h(e3.dataType) ? "number" : "text");
18
18
  }
19
- const F = t(O()), $ = L.pageContext.code, E = t(B && B.length > 0 ? $ + "__" + B.join("__") : null), U = l({ get: () => b(M, B), set(e3) {
20
- e3 = e3.trim(), w(M, B, e3);
21
- } }), W = t(null), G = t(null), H = t(null);
22
- o(() => {
23
- q.$on(E.value + "-scanDone", (e3) => {
24
- console.log("superPage4444---scanDone--componentId.value=", E.value, "data=", JSON.stringify(e3)), re(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
25
- }), n(() => {
26
- const e3 = U.value;
27
- S(e3, L.pageContext, L.configure, { formItemRef: W.value, componentRef: G.value, titleRef: H.value, value: e3, entity: L.pageContext.entity.data, pageData: L.pageContext.entity.page });
28
- }), console.log("input-text");
29
- }), a(() => {
30
- q.$off(E.value + "-scanDone");
31
- });
32
- const K = L.configure.runtime ? L.configure.runtime : {}, Q = t(K.props ? K.props : {}), X = t(!!((_a = Q.value.scan) == null ? void 0 : _a.enable));
19
+ const $ = t(q()), A = N.pageContext.code, E = t(J && J.length > 0 ? A + "__" + J.join("__") : null), U = l({ get: () => b(B, J), set(e3) {
20
+ e3 = e3.trim(), w(B, J, e3);
21
+ } }), W = t(null), G = t(null), H = t(null), K = N.configure.runtime ? N.configure.runtime : {}, Q = t(K.props ? K.props : {}), X = t(!!((_a = Q.value.scan) == null ? void 0 : _a.enable));
33
22
  let Y = false;
34
23
  const Z = window.localStorage.getItem("auth_source");
35
24
  Z && "dingtalk" === Z && (Y = true);
36
25
  let ee = "";
37
- const te = navigator.userAgent;
38
- ee = te.indexOf(" uni-app ") > 0 ? "app" : "browser";
39
- const le = !(!F.value || !ee || "app" !== ee), oe = t(!!((le || Y) && X.value || F.value && X.value && "https:" === window.location.protocol));
40
- let ne = {};
26
+ ee = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
27
+ const te = !(!$.value || !ee || "app" !== ee), le = t(!!((te || Y) && X.value || $.value && X.value && "https:" === window.location.protocol));
28
+ let oe = {};
41
29
  ((_b = Q.value.scan) == null ? void 0 : _b.enable) && ((_c = Q.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(Q.value.scan.ruleList).then((e3) => {
42
- ne = e3;
30
+ oe = e3;
43
31
  }), u(() => U.value, (e3) => {
44
32
  e3 = e3.trim();
45
- const t2 = D(e3, ne);
46
- t2 && P(L.pageContext, t2.scanSet, t2.params);
33
+ const t2 = D(e3, oe);
34
+ t2 && O(N.pageContext, t2.scanSet, t2.params);
47
35
  }));
48
- const ae = K.style, ue = K.class, ie = K.headerStyle, ce = K.titleExceedStyle;
36
+ const ne = K.style, ae = K.class, ue = K.headerStyle, ie = K.titleExceedStyle;
49
37
  function re(e3) {
50
- return w(M, B, e3);
38
+ return w(B, J, e3);
51
39
  }
52
- const se = t(false);
53
- function pe() {
54
- if (console.log("scanClick----userAgent=", ee), le || Y) {
55
- const e3 = { type: "scan", componentId: E.value, systemCode: L.pageContext.systemCode };
40
+ o(() => {
41
+ z.$on(E.value + "-scanDone", (e3) => {
42
+ re(e3.result), _(e3.result, N.pageContext, N.configure, "afterScanDone");
43
+ }), n(() => {
44
+ var _a2;
45
+ const e3 = U.value;
46
+ S(e3, N.pageContext, N.configure, { formItemRef: W.value, componentRef: G.value, titleRef: H.value, value: e3, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page }), le.value && ((_a2 = Q.value.scan) == null ? void 0 : _a2.autoOpen) && ce();
47
+ });
48
+ }), a(() => {
49
+ z.$off(E.value + "-scanDone");
50
+ });
51
+ const pe = t(false);
52
+ function ce() {
53
+ if (te || Y) {
54
+ const e3 = { type: "scan", componentId: E.value, systemCode: N.pageContext.systemCode };
56
55
  Y && (e3.type = "dingTalkScan"), window.parent.postMessage(JSON.stringify(e3), "*");
57
- } else if (F.value) if ("https:" === window.location.protocol) se.value = true;
56
+ } else if ($.value) if ("https:" === window.location.protocol) pe.value = true;
58
57
  else {
59
- const e3 = { type: "scan", componentId: E.value, systemCode: L.pageContext.systemCode };
58
+ const e3 = { type: "scan", componentId: E.value, systemCode: N.pageContext.systemCode };
60
59
  window.parent.postMessage(JSON.stringify(e3), "*");
61
60
  }
62
- else se.value = true;
61
+ else pe.value = true;
63
62
  }
64
- function ve(e3) {
65
- se.value = false, re(e3);
63
+ function se(e3) {
64
+ pe.value = false, re(e3);
66
65
  }
67
- return J2({ getValue: function() {
68
- return b(M, B);
69
- }, setValue: re, scanClick: pe }), (e3, t2) => {
66
+ return M2({ getValue: function() {
67
+ return b(B, J);
68
+ }, setValue: re, scanClick: ce }), (e3, t2) => {
70
69
  const l2 = i("el-input"), o2 = i("scan-code-input-browser"), n2 = i("el-form-item");
71
- return r(), c(n2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: p(v(ue)), "label-width": Q.value.labelWidth, style: s(v(ae)) }, { label: f(() => [Q.value.tittleShow ? (r(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: s({ ...v(ie), ...v(ce) }) }, [Q.value.prefixType ? (r(), c(N, { key: 0, pageContext: e3.pageContext, property: Q.value }, null, 8, ["pageContext", "property"])) : (r(), C(I, { key: 1 }, [d(x(v(z)(Q.value.title)), 1)], 64))], 4)) : y("", true)]), default: f(() => [g(l2, { ref_key: "componentRef", ref: G, disabled: "disabled" === Q.value.state, readonly: "readonly" === Q.value.state, size: Q.value.size, clearable: Q.value.clearable, placeholder: Q.value.placeholder, maxlength: Q.value.maxLength, "show-word-limit": Q.value.showInputNum, type: A.value, modelValue: U.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => U.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")) }, m({ _: 2 }, ["outer" != Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prefix", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (r(), c(v(k), { key: 0, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(Q.value.preText)), 1)]), key: "0" } : void 0, "outer" == Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prepend", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (r(), c(v(k), { key: 0, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(Q.value.preText)), 1)]), key: "1" } : void 0, "outer" != Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "suffix", fn: f(() => [Q.value.sufIconType && Q.value.sufIconValue ? (r(), c(v(k), { key: 0, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(Q.value.sufText)), 1)]), key: "2" } : void 0, oe.value || "outer" == Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "append", fn: f(() => [oe.value ? (r(), c(v(k), { key: 0, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => pe()) })) : y("", true), Q.value.sufIconType && Q.value.sufIconValue ? (r(), c(v(k), { key: 1, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(Q.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), se.value ? (r(), c(o2, { key: 0, onClose: ve })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
70
+ return p(), r(n2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: s(v(ae)), "label-width": Q.value.labelWidth, style: c(v(ne)) }, { label: f(() => [Q.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: c({ ...v(ue), ...v(ie) }) }, [Q.value.prefixType ? (p(), r(P, { key: 0, pageContext: e3.pageContext, property: Q.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(L)(Q.value.title)), 1)], 64))], 4)) : y("", true)]), default: f(() => [g(l2, { ref_key: "componentRef", ref: G, disabled: "disabled" === Q.value.state, readonly: "readonly" === Q.value.state, size: Q.value.size, clearable: Q.value.clearable, placeholder: Q.value.placeholder, maxlength: Q.value.maxLength, "show-word-limit": Q.value.showInputNum, type: F.value, modelValue: U.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => U.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")) }, m({ _: 2 }, ["outer" != Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prefix", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(L)(Q.value.preText)), 1)]), key: "0" } : void 0, "outer" == Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prepend", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(L)(Q.value.preText)), 1)]), key: "1" } : void 0, "outer" != Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "suffix", fn: f(() => [Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 0, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(L)(Q.value.sufText)), 1)]), key: "2" } : void 0, le.value || "outer" == Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "append", fn: f(() => [le.value ? (p(), r(v(T), { key: 0, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => ce()) })) : y("", true), Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 1, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(L)(Q.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), pe.value ? (p(), r(o2, { key: 0, onClose: se })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
72
71
  };
73
72
  } });
74
73
  export {
75
- J as default
74
+ M as default
76
75
  };
@@ -1,16 +1,14 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as o, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as c, createElementVNode as f, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as x } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as i, createBlock as o, openBlock as p, normalizeStyle as s, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as x } from "vue";
2
2
  import { getFormModelFields as d } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue as m, formatValueByType as h } from "../../../../utils/page-helper-util.js";
4
4
  import { SuperIcon as k } from "agilebuilder-ui";
5
5
  import { getCustomFunc as w, handleAfterInitEvent as T, handleFormEvent as C } from "../../../../utils/events/event-util.js";
6
6
  import { $t as _ } from "../../../../utils/i18n-util.js";
7
7
  const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px", "margin-bottom": "20px" } }, b = { style: { overflow: "hidden", "white-space": "nowrap" } }, V = ["title"], j = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
8
- const R = e2, P = R.pageContext.entity ? R.pageContext.entity : {};
9
- let S = d(R.pageContext, R.configure);
10
- const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, z = q.class, D = q.headerStyle, E = q.appendClass, F = q.appendStyle, W = q.titleExceedStyle, A = t(q.props ? q.props : {}), B = t(A.value.options ? A.value.options : []), G = A.value.formatType;
11
- console.log("designProperty.value", A.value);
12
- const H = l(() => {
13
- let e3 = m(P, S);
8
+ const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
9
+ let P = d(R.pageContext, R.configure);
10
+ const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, z = q.class, D = q.headerStyle, E = q.appendClass, F = q.appendStyle, W = q.titleExceedStyle, A = t(q.props ? q.props : {}), B = t(A.value.options ? A.value.options : []), G = A.value.formatType, H = l(() => {
11
+ let e3 = m(S, P);
14
12
  if (G) if (A.value.hasOptions) {
15
13
  let t2 = null;
16
14
  B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
@@ -29,7 +27,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
29
27
  B.value = e3 || [];
30
28
  } }), (e3, t2) => {
31
29
  const l2 = n("el-form-item");
32
- return A.value.whetherTittle ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: L, class: r(c(z)), style: p(c(O)) }, [f("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (s(), i(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(c(z)), "label-width": A.value.labelWidth, style: p(c(O)) }, { label: y(() => [A.value.tittleShow ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: L, style: p({ ...c(D), ...c(W) }) }, v(c(_)(A.value.title)), 5)) : g("", true)]), default: y(() => [f("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => c(C)(t3, e3.pageContext, e3.configure, "click")) }, [f("span", b, [A.value.preIconValue || A.value.preText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: p(c(F)) }, [A.value.preIconType && A.value.preIconValue ? (s(), i(c(k), { key: 0, iconType: A.value.preIconType, iconValue: A.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), x(" " + v(c(_)(A.value.preText)), 1)], 6)) : g("", true), x("  " + v(H.value), 1)]), A.value.sufIconValue || A.value.sufText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }) }, [A.value.sufIconType && A.value.sufIconValue ? (s(), i(c(k), { key: 0, style: {}, iconType: A.value.sufIconType, iconValue: A.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), f("span", null, " " + v(c(_)(A.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => c(C)(t3, e3.pageContext, e3.configure, "click")) }, [f("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(A.value.prefixIcon) + " " + v(H.value), 9, V), A.value.suffixTxt ? (s(), o("span", { key: 0, class: r(c(E)), style: p(c(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
30
+ return A.value.whetherTittle ? (p(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: s(f(O)) }, [c("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (p(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(f(z)), "label-width": A.value.labelWidth, style: s(f(O)) }, { label: y(() => [A.value.tittleShow ? (p(), i("div", { key: 0, ref_key: "titleRef", ref: L, style: s({ ...f(D), ...f(W) }) }, v(f(_)(A.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [A.value.preIconValue || A.value.preText ? (p(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: s(f(F)) }, [A.value.preIconType && A.value.preIconValue ? (p(), o(f(k), { key: 0, iconType: A.value.preIconType, iconValue: A.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), x(" " + v(f(_)(A.value.preText)), 1)], 6)) : g("", true), x("  " + v(H.value), 1)]), A.value.sufIconValue || A.value.sufText ? (p(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }) }, [A.value.sufIconType && A.value.sufIconValue ? (p(), o(f(k), { key: 0, style: {}, iconType: A.value.sufIconType, iconValue: A.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(A.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (p(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(A.value.prefixIcon) + " " + v(H.value), 9, V), A.value.suffixTxt ? (p(), i("span", { key: 0, class: r(f(E)), style: s(f(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
33
31
  };
34
32
  } });
35
33
  export {
@@ -1,30 +1,29 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as g, createElementBlock as m, createCommentVNode as v } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as m, createElementBlock as g, createCommentVNode as v } from "vue";
2
2
  import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue as b } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/events/event-util.js";
5
5
  import { $t as C } from "../../../../utils/i18n-util.js";
6
6
  const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
7
7
  const _2 = e2, h = y(_2.pageContext, _2.configure), R = _2.configure.runtime ? _2.configure.runtime : {}, j = R.style, w = R.class, I = R.headerStyle, S = t(R.props ? R.props : {});
8
- console.log("designProperty", S.value);
9
8
  let $ = S.value.formatting;
10
- const D = _2.pageContext.entity ? _2.pageContext.entity : {}, P = l(() => {
9
+ const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
11
10
  let e3 = b(D, h);
12
11
  return e3 = null == e3 || null == e3 ? "" : e3, $ && (e3 = $.replace(/\${value}/g, e3)), e3;
13
12
  });
14
- let V = S.value.tooltip, W = null;
15
- V && (W = l(() => {
13
+ let W = S.value.tooltip, q = null;
14
+ W && (q = l(() => {
16
15
  let e3 = b(D, h);
17
- return e3 = null == e3 || null == e3 ? "" : e3, V.replace(/\${value}/g, e3);
16
+ return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
18
17
  }));
19
- const q = t(null), z = t(null), A = t(null);
18
+ const z = t(null), A = t(null), B = t(null);
20
19
  return n(() => {
21
20
  a(() => {
22
- const e3 = P.value;
23
- k(e3, _2.pageContext, _2.configure, { formItemRef: q.value, componentRef: z.value, titleRef: A.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
21
+ const e3 = V.value;
22
+ k(e3, _2.pageContext, _2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
24
23
  });
25
24
  }), (e3, t2) => {
26
25
  const l2 = i("el-link"), n2 = i("el-tooltip"), a2 = i("el-form-item");
27
- return o(), u(a2, { ref_key: "formItemRef", ref: q, class: s(p(w)), "label-width": S.value.labelWidth, style: r(p(j)) }, { label: f(() => [S.value.tittleShow ? (o(), m("div", { key: 0, ref_key: "titleRef", ref: A, style: r({ ...p(I) }) }, g(p(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(n2, { disabled: !p(W), content: p(W) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: z, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(x)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [d(g(P.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
26
+ return o(), u(a2, { ref_key: "formItemRef", ref: z, class: s(p(w)), "label-width": S.value.labelWidth, style: r(p(j)) }, { label: f(() => [S.value.tittleShow ? (o(), g("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...p(I) }) }, m(p(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(n2, { disabled: !p(q), content: p(q) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(x)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [d(m(V.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
28
27
  };
29
28
  } });
30
29
  export {
@@ -46,7 +46,6 @@ const q = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
46
46
  Q && clearTimeout(Q), Q = setTimeout(function() {
47
47
  const e3 = L();
48
48
  e3 != N && (N = e3, S(w.pageContext, X, void 0).then((e4) => {
49
- console.log("查询失败!", e4);
50
49
  }));
51
50
  }, 200);
52
51
  }
@@ -70,7 +70,6 @@ const R = { style: { width: "100%", height: "100%" } }, S = e({ __name: "richtex
70
70
  i2.src === e5 && (i2.src = t5.url + "&jwt=" + L());
71
71
  }
72
72
  }).catch((e6) => {
73
- console.error(e6, "上传图片失败");
74
73
  });
75
74
  }
76
75
  }
@@ -1,10 +1,10 @@
1
- import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as g, createVNode as v, createElementBlock as m, Fragment as d, renderList as h, createCommentVNode as y, createElementVNode as x, toDisplayString as b, createTextVNode as C } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as v, createVNode as g, createElementBlock as m, Fragment as d, renderList as h, createCommentVNode as y, createElementVNode as x, toDisplayString as b, createTextVNode as C } from "vue";
2
2
  import { setVariableValue as _, getVariableValue as k, getOptionDatasFromPage as w, queryOptionDatasources as S, autoSetAfterSelect as T } from "../../../../utils/page-helper-util.js";
3
3
  import { getFormModelFields as j } from "../../../../utils/page-init-util.js";
4
4
  import { handleFormEvent as R, handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
5
- import q from "../common/title-suffix-element.vue.js";
6
- import { $t as z } from "../../../../utils/i18n-util.js";
7
- const I = { style: { float: "left" } }, M = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, O = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: O2 }) {
5
+ import z from "../common/title-suffix-element.vue.js";
6
+ import { $t as I } from "../../../../utils/i18n-util.js";
7
+ const M = { style: { float: "left" } }, q = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, O = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: O2 }) {
8
8
  const P = e2, A = P.pageContext.entity ? P.pageContext.entity : {};
9
9
  let D = j(P.pageContext, P.configure);
10
10
  const W = P.configure.runtime ? P.configure.runtime : {}, E = W.style, F = W.class, U = W.headerStyle, $ = W.titleExceedStyle, B = t(W.props ? W.props : {}), G = l({ get() {
@@ -21,10 +21,10 @@ const I = { style: { float: "left" } }, M = { style: { float: "right", color: "v
21
21
  if ("remote" == L.filterType) {
22
22
  let e3;
23
23
  B.value.filterable = true, B.value.remote = true, B.value.remoteShowSuffix = true, B.value.remoteMethod = function(t2) {
24
- e3 !== t2 && (e3 = t2, K.value = true, console.log("query", t2), S(P.pageContext, X, t2).then((e4) => {
24
+ e3 !== t2 && (e3 = t2, K.value = true, S(P.pageContext, X, t2).then((e4) => {
25
25
  K.value = false;
26
26
  }).then((e4) => {
27
- console.log("查询失败!", e4), K.value = false;
27
+ K.value = false;
28
28
  }));
29
29
  };
30
30
  }
@@ -61,7 +61,7 @@ const I = { style: { float: "left" } }, M = { style: { float: "right", color: "v
61
61
  le && clearTimeout(le), le = setTimeout(function() {
62
62
  const e3 = ee();
63
63
  e3 != te && (te = e3, S(P.pageContext, X, void 0).then((e4) => {
64
- console.log("查询失败!", e4), K.value = false;
64
+ K.value = false;
65
65
  }));
66
66
  }, 200);
67
67
  }
@@ -78,7 +78,7 @@ const I = { style: { float: "left" } }, M = { style: { float: "right", color: "v
78
78
  H.value = e3 || [];
79
79
  } }), (e3, t2) => {
80
80
  const l2 = i("el-option"), o2 = i("el-select"), a2 = i("el-form-item");
81
- return s(), r(a2, { ref_key: "formItemRef", ref: ae, required: !!B.value.required, class: f(c(F)), "label-width": B.value.labelWidth, style: p(c(E)) }, { label: g(() => [B.value.tittleShow ? (s(), m("div", { key: 0, ref_key: "titleRef", ref: ne, style: p({ ...c(U), ...c($) }) }, [B.value.prefixType ? (s(), r(q, { key: 0, pageContext: e3.pageContext, property: B.value }, null, 8, ["pageContext", "property"])) : (s(), m(d, { key: 1 }, [C(b(c(z)(B.value.title)), 1)], 64))], 4)) : y("", true)]), default: g(() => [v(o2, { ref_key: "componentRef", ref: ue, style: { width: "100%" }, disabled: "disabled" === B.value.state, size: B.value.size, clearable: B.value.clearable, multiple: B.value.multiple, "collapse-tags": B.value.collapseTags, "collapse-tags-tooltip": B.value.collapseTagsTooltip, filterable: B.value.filterable, "allow-create": B.value.allowCreate, placeholder: B.value.placeholder, "remote-show-suffix": B.value.remoteShowSuffix, remote: B.value.remote, "remote-method": B.value.remoteMethod, loading: K.value, onChange: B.value.changeMethod, modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4) }, { default: g(() => [(s(true), m(d, null, h(H.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => c(R)(t3.value, e3.pageContext, e3.configure, "click", { values: G.value }) }, { default: g(() => [t3._description_ ? (s(), m(d, { key: 0 }, [x("span", I, b(t3.label), 1), x("span", M, b(t3._description_), 1)], 64)) : y("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
81
+ return s(), r(a2, { ref_key: "formItemRef", ref: ae, required: !!B.value.required, class: f(c(F)), "label-width": B.value.labelWidth, style: p(c(E)) }, { label: v(() => [B.value.tittleShow ? (s(), m("div", { key: 0, ref_key: "titleRef", ref: ne, style: p({ ...c(U), ...c($) }) }, [B.value.prefixType ? (s(), r(z, { key: 0, pageContext: e3.pageContext, property: B.value }, null, 8, ["pageContext", "property"])) : (s(), m(d, { key: 1 }, [C(b(c(I)(B.value.title)), 1)], 64))], 4)) : y("", true)]), default: v(() => [g(o2, { ref_key: "componentRef", ref: ue, style: { width: "100%" }, disabled: "disabled" === B.value.state, size: B.value.size, clearable: B.value.clearable, multiple: B.value.multiple, "collapse-tags": B.value.collapseTags, "collapse-tags-tooltip": B.value.collapseTagsTooltip, filterable: B.value.filterable, "allow-create": B.value.allowCreate, placeholder: B.value.placeholder, "remote-show-suffix": B.value.remoteShowSuffix, remote: B.value.remote, "remote-method": B.value.remoteMethod, loading: K.value, onChange: B.value.changeMethod, modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4) }, { default: v(() => [(s(true), m(d, null, h(H.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => c(R)(t3.value, e3.pageContext, e3.configure, "click", { values: G.value }) }, { default: v(() => [t3._description_ ? (s(), m(d, { key: 0 }, [x("span", M, b(t3.label), 1), x("span", q, b(t3._description_), 1)], 64)) : y("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
82
82
  };
83
83
  } });
84
84
  export {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, resolveDirective as r, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as d, vShow as m, nextTick as v } from "vue";
2
2
  import C from "./error-render.vue.js";
3
3
  import { getRuntimeComponentByName as b } from "../../utils/assemblys-config.js";
4
- import { PageDimensions as h } from "../../utils/interfaces/page-design-types.js";
5
- import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/global-refs.js";
4
+ import { PageDimensions as x } from "../../utils/interfaces/page-design-types.js";
5
+ import { addComponentRef as h, addComponentRefByCode as y } from "../../utils/global-refs.js";
6
6
  import { getPermissionCodes as w, packageFormRules as j, controlObjectRenderState as _ } from "../../utils/page-init-util.js";
7
7
  import { caculateShowCondition as N, getFormPropName as P, getSizeConfig as L } from "../../utils/page-helper-util.js";
8
8
  import { isWorkflowPage as O, getPropClassName as S, isNumber as M } from "../../utils/common-util.js";
@@ -63,7 +63,7 @@ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
63
63
  const G = H2.configure.runtime && H2.configure.runtime.common ? H2.configure.runtime.common : {};
64
64
  if (G.class && (A.value += " " + G.class), G.style) {
65
65
  Object.assign(z.value, G.style);
66
- const e3 = H2.pageContext && H2.pageContext.dimensions ? H2.pageContext.dimensions : h.PC, o2 = G.style[e3 + "_style"];
66
+ const e3 = H2.pageContext && H2.pageContext.dimensions ? H2.pageContext.dimensions : x.PC, o2 = G.style[e3 + "_style"];
67
67
  o2 && Object.assign(z.value, o2);
68
68
  const t2 = G.style[e3 + "_class"];
69
69
  t2 && (A.value += " " + t2);
@@ -76,7 +76,8 @@ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
76
76
  B.value = "hide";
77
77
  }), e3 && !e3.getConfigure && (e3.getConfigure = function() {
78
78
  return H2.configure;
79
- }), H2.configure.uuid && x(H2.pageContext, H2.configure.uuid, q), H2.configure.code) y(H2.pageContext, H2.configure.code, q);
79
+ }), H2.configure.uuid && h(H2.pageContext, H2.configure.uuid, q), H2.configure.code) y(H2.pageContext, H2.configure.code, q);
80
+ else if ("table" === H2.configure.name) y(H2.pageContext, H2.configure.uuid, q);
80
81
  else if (H2.configure.props && H2.configure.props.base) {
81
82
  const e4 = H2.configure.props.base;
82
83
  if (e4.prop) {
@@ -1,4 +1,7 @@
1
1
  import o from "./workflowbutton-runtime.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = t(o, [["__scopeId", "data-v-122e7d4a"]]);
2
5
  export {
3
- o as default
6
+ r as default
4
7
  };
@@ -1,22 +1,22 @@
1
- import { defineComponent as e, ref as t, createElementBlock as n, openBlock as o, Fragment as r, renderList as u, createBlock as s, createCommentVNode as i } from "vue";
1
+ import { defineComponent as e, ref as t, createElementBlock as n, openBlock as o, Fragment as r, renderList as u, createBlock as i, createCommentVNode as s } from "vue";
2
2
  import a from "../../object-render.vue.js";
3
- import { getClickEventFuncByType as c } from "../../../../utils/events/event-util.js";
4
- import { isVisibleWorkflowButton as m } from "../../../../utils/events/standard-event.js";
5
- const l = { class: "page-runtime-header-btn" }, p = e({ __name: "workflowbutton-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
3
+ import { getClickEventFuncByType as m } from "../../../../utils/events/event-util.js";
4
+ import { isVisibleWorkflowButton as c } from "../../../../utils/events/standard-event.js";
5
+ const l = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" }, p = e({ __name: "workflowbutton-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
6
6
  const p2 = e2, f = p2.configure.runtime ? p2.configure.runtime : {};
7
7
  t(f.style ? f.style : {}), f.class;
8
8
  const g = p2.pageContext.workflowButtonComponent, v = p2.pageContext.completeTaskParam, x = t([]);
9
9
  return p2.configure.items.forEach((e3) => {
10
10
  (function(e4) {
11
11
  const t2 = function(e5) {
12
- const t3 = c(p2.pageContext, e5, "click");
12
+ const t3 = m(p2.pageContext, e5, "click");
13
13
  if (t3) {
14
14
  if (t3.isStandard) return t3.event.eventName;
15
15
  }
16
16
  }(e4.runtime && e4.runtime.events ? e4.runtime.events : []);
17
- return m(t2, g, v);
17
+ return c(t2, g, v);
18
18
  })(e3) && x.value.push(e3);
19
- }), (e3, t2) => (o(), n("span", l, [(o(true), n(r, null, u(x.value, (t3, u2) => (o(), n(r, null, [t3.check ? (o(), s(a, { key: u2, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])) : i("", true)], 64))), 256))]));
19
+ }), (e3, t2) => (o(), n("span", l, [(o(true), n(r, null, u(x.value, (t3, u2) => (o(), n(r, null, [t3.check ? (o(), i(a, { key: u2, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])) : s("", true)], 64))), 256))]));
20
20
  } });
21
21
  export {
22
22
  p as default
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onUnmounted as a, resolveDirective as i, withDirectives as n, createElementBlock as o, openBlock as r, createBlock as s, createCommentVNode as l, unref as m } from "vue";
1
+ import { defineComponent as e, ref as t, onUnmounted as a, resolveDirective as i, withDirectives as n, createElementBlock as r, openBlock as o, createBlock as s, createCommentVNode as l, unref as m } from "vue";
2
2
  import { deepCopy as u } from "../utils/common-util.js";
3
3
  import h from "./assemblys/home-chart-render.vue.js";
4
4
  import g from "agilebuilder-ui/src/utils/request";
@@ -7,7 +7,7 @@ import { initPageEvents as p } from "../utils/events/event-util.js";
7
7
  import { setHomeChartInitConfigValue as f } from "../utils/charts/chart-util.js";
8
8
  const C = { "element-loading-text": "加载中..." }, v = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartCode: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
9
9
  const v2 = e2, y = t(true), S = t(false), b = t({});
10
- let I, H = t(null);
10
+ let I, U = t(null);
11
11
  return v2.chartCode && g.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/home-chart-layout/" + v2.chartCode).then((e3) => {
12
12
  var _a, _b;
13
13
  if (e3 && e3.designJson) {
@@ -18,17 +18,17 @@ const C = { "element-loading-text": "加载中..." }, v = e({ name: "HomeChart",
18
18
  e4[v2.homeChartSettingUserId] && (t2.chartJson.runtime.headerInfo ? t2.chartJson.runtime.headerInfo.title = e4[v2.homeChartSettingUserId] : t2.chartJson.runtime.headerInfo = { textAlign: "center", title: e4[v2.homeChartSettingUserId] });
19
19
  }
20
20
  const i2 = window.frameElement;
21
- b.value = t2.chartJson, b.value.homeChartSettingUserId = v2.homeChartSettingUserId, i2 && (console.log(i2.clientHeight + "iframeElement.clientHeight"), b.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
21
+ b.value = t2.chartJson, b.value.homeChartSettingUserId = v2.homeChartSettingUserId, i2 && (b.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
22
22
  const n2 = { showHomepageSearch: false, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: t2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: t2.beanName, initChartServiceConfigs: [t2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
23
23
  if (((_a = b.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = b.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
24
24
  const e4 = n2.entity.page;
25
25
  for (const a3 of t2.variables) a3.name && (a3.isArrayElement ? e4[a3.name] = [] : a3.defaultValue ? e4[a3.name] = a3.defaultValue : e4[a3.name] = void 0);
26
26
  }
27
- t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && c(n2, t2.initOptionConfigs, void 0), f(b.value.pushHomepage.initConfig, n2, v2.homeChartSettingUserId), p(t2, n2), H.value = n2, I = setTimeout(() => {
27
+ t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && c(n2, t2.initOptionConfigs, void 0), f(b.value.pushHomepage.initConfig, n2, v2.homeChartSettingUserId), p(t2, n2), U.value = n2, I = setTimeout(() => {
28
28
  !function(e4, t3) {
29
- if (!t3 || 0 == t3.length) return void console.log("无需要初始化时统计的统计图数据");
29
+ if (!t3 || 0 == t3.length) return;
30
30
  e4.initChartData = {}, e4.initChartData.data = u(e4.entity.data), e4.initChartData.page = u(e4.entity.page), t3 && t3.length > 0 && d(e4, t3, null, true);
31
- }(H.value, [t2.initChartServiceConfigs]);
31
+ }(U.value, [t2.initChartServiceConfigs]);
32
32
  }, 200);
33
33
  } else S.value = true;
34
34
  }).finally(() => {
@@ -37,7 +37,7 @@ const C = { "element-loading-text": "加载中..." }, v = e({ name: "HomeChart",
37
37
  I && clearTimeout(I);
38
38
  }), (e3, t2) => {
39
39
  const a2 = i("loading");
40
- return n((r(), o("div", C, [y.value ? l("", true) : (r(), s(h, { key: 0, configure: b.value, pageContext: m(H) }, null, 8, ["configure", "pageContext"]))])), [[a2, y.value]]);
40
+ return n((o(), r("div", C, [y.value ? l("", true) : (o(), s(h, { key: 0, configure: b.value, pageContext: m(U) }, null, 8, ["configure", "pageContext"]))])), [[a2, y.value]]);
41
41
  };
42
42
  } });
43
43
  export {
@@ -1,24 +1,23 @@
1
- import { defineComponent as e, ref as a, resolveComponent as l, createBlock as t, openBlock as o, withCtx as u, createElementBlock as n, createCommentVNode as r } from "vue";
2
- import s from "./super-page.vue.js";
3
- const i = ["src"], d = ["src"], 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), j = a(null), w = a(null), y = a(null), C = a({}), b = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), S = a(null);
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
+ import i from "./super-page.vue.js";
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(false), S = a(false);
5
5
  if (c) {
6
- console.log("弹出页面myJumpPageSetting=", c), _.value = !(!c || void 0 === c._isIframe) && c._isIframe, S.value = c && c._path ? c._path : null, y.value = c && c.dialogType ? c.dialogType : "dialog", b.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 : "100%", I.value = c && c.jumpPageHeight ? c.jumpPageHeight : null, h.value = c && c.pageCode, j.value = c && c.dataId ? c.dataId : null, w.value = c && c.taskId ? c.taskId : null;
6
+ x.value = (c == null ? void 0 : c.alignCenter) ?? false, 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;
7
7
  const e3 = !!c.isNeedId;
8
8
  if (p.parentPageEventParams) {
9
9
  try {
10
10
  const e4 = JSON.parse(JSON.stringify(p.parentPageEventParams));
11
- e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(C.value, e4);
11
+ e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(b.value, e4);
12
12
  } catch (e4) {
13
- console.error(e4);
14
13
  }
15
- null !== j.value && void 0 !== j.value || (j.value = p.parentPageEventParams.id);
14
+ null !== w.value && void 0 !== w.value || (w.value = p.parentPageEventParams.id);
16
15
  }
17
- C.value.parentPageCode = c && c.parentPageCode ? c.parentPageCode : null, C.value.parentPageVersion = c && c.parentPageVersion ? c.parentPageVersion : null, C.value.jumpMode = c ? c.jumpMode : null, C.value.id = j.value, C.value.isNeedId = e3, C.value.taskId = w.value, p.customParams && Object.assign(C.value, p.customParams);
16
+ b.value.parentPageCode = c && c.parentPageCode ? c.parentPageCode : null, b.value.parentPageVersion = c && c.parentPageVersion ? c.parentPageVersion : null, b.value.jumpMode = c ? c.jumpMode : null, b.value.id = w.value, b.value.isNeedId = e3, b.value.taskId = C.value, p.customParams && Object.assign(b.value, p.customParams);
18
17
  }
19
18
  return (e3, a2) => {
20
19
  const g3 = l("el-drawer"), p2 = l("el-dialog");
21
- return y.value && "drawer" === y.value ? (o(), t(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", 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: u(() => [!_.value && h.value ? (o(), t(s, { key: 0, pageCode: h.value, pageRequest: C.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (o(), n("iframe", { key: 1, height: "98%", width: "100%", src: S.value, frameborder: "0", allowtransparency: "no" }, null, 8, i)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (o(), t(p2, { key: 1, "model-value": "", title: f.value, "close-on-click-modal": false, "append-to-body": "", width: P.value, draggable: b.value, overflow: k.value, 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: u(() => [!_.value && h.value ? (o(), t(s, { key: 0, pageCode: h.value, pageRequest: C.value, contentHeight: I.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (o(), n("iframe", { key: 1, height: "98%", width: "100%", src: S.value, frameborder: "0", allowtransparency: "no" }, null, 8, d)) : r("", true)]), _: 1 }, 8, ["title", "width", "draggable", "overflow"]));
20
+ 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"]));
22
21
  };
23
22
  } });
24
23
  export {
@@ -1,4 +1,5 @@
1
1
  import e from "./super-page-dialog.vue.js";
2
+ /* empty css */
2
3
  export {
3
4
  e as default
4
5
  };
@@ -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-818c8e87"]]);
4
+ const r = p(e, [["__scopeId", "data-v-6ab2b391"]]);
5
5
  export {
6
6
  r as default
7
7
  };