super-page-runtime 2.3.39 → 2.3.40-sit2

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 (80) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
  2. package/dist/es/components/runtime/utils/events/event-util.js +114 -114
  3. package/dist/es/components/runtime/utils/events/print-label.js +33 -34
  4. package/dist/es/components/runtime/utils/events/standard-event.d.ts +8 -1
  5. package/dist/es/components/runtime/utils/events/standard-event.js +507 -499
  6. package/dist/es/components/runtime/utils/events/validator-util.js +69 -72
  7. package/dist/es/components/runtime/utils/page-helper-util.d.ts +7 -0
  8. package/dist/es/components/runtime/utils/page-helper-util.js +4 -0
  9. package/dist/es/components/runtime/utils/page-init-util.js +26 -28
  10. package/dist/es/components/runtime/utils/page-store.js +9 -9
  11. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  14. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  15. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  16. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  17. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  19. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  20. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
  22. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  23. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +95 -100
  27. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
  28. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  29. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  30. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  31. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +7 -7
  32. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +3 -3
  33. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +24 -17
  34. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  35. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  37. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  38. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  39. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  40. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  41. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +9 -11
  42. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  43. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  44. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  45. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +39 -37
  46. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  47. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  48. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +33 -33
  49. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  50. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  51. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +6 -7
  52. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +5 -6
  53. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  54. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +42 -43
  55. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
  56. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +4 -6
  57. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +49 -47
  58. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  60. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +89 -90
  61. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  62. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  63. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  64. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  65. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  66. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +8 -10
  67. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
  68. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
  70. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  71. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  72. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  73. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  74. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  75. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  76. package/dist/es/components/runtime/views/super-page.vue2.js +99 -98
  77. package/dist/es/i18n/langs/cn.js +1 -1
  78. package/dist/es/i18n/langs/en.js +1 -1
  79. package/dist/es/style.css +102 -102
  80. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, createBlock as t, openBlock as o } from "vue";
2
2
  import n from "../button/button-runtime.vue2.js";
3
- const r = e({ __name: "exportpdf-runtime", props: { pageContext: {}, configure: {} }, setup: (e2) => (r2, u) => (o(), t(n, { configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])) });
3
+ const r = e({ __name: "exportpdf-runtime", props: { pageContext: {}, configure: {} }, setup: (e2) => (e3, r2) => (o(), t(n, { configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"])) });
4
4
  export {
5
5
  r as default
6
6
  };
@@ -11,9 +11,9 @@ const x = { key: 1 }, _ = e({ __name: "printlabel-runtime", props: { pageContext
11
11
  n(() => {
12
12
  j.value && y(null, _2.pageContext, _2.configure, { componentRef: R.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
13
13
  });
14
- }), (t2, l2) => {
15
- const n2 = u("el-button"), y2 = u("ArrowDown"), _3 = u("el-icon"), w2 = u("el-text"), T = u("el-dropdown-item"), h = u("el-dropdown-menu"), A = u("el-dropdown");
16
- return j.value ? (a(), o(A, { key: 1, ref_key: "componentRef", ref: R, class: p(r(D)), style: i(r(B)), placement: z.value.placement, "split-button": z.value.splitButton, disabled: "disabled" === z.value.state, type: z.value.buttonType, size: z.value.size, trigger: z.value.trigger }, { dropdown: s(() => [v(h, null, { default: s(() => [(a(true), g(c, null, d(z.value.template, (t3, l3) => (a(), o(T, { key: t3, onClick: (l4) => r(b)(l4, e2.pageContext, e2.configure, "click", { menuItem: t3 }) }, { default: s(() => [m(f(r(C)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: s(() => ["button" === z.value.triggerElement ? (a(), g(c, { key: 0 }, [z.value.splitButton ? (a(), g("span", x, f(r(C)(z.value.title)), 1)) : (a(), o(n2, { key: 0, size: z.value.size, type: z.value.buttonType, onClick: l2[0] || (l2[0] = (t3) => r(b)(t3, e2.pageContext, e2.configure, "menuClick")) }, { default: s(() => [m(f(r(C)(z.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (a(), o(w2, { key: 1 }, { default: s(() => [m(f(r(C)(z.value.title)) + " ", 1), v(_3, null, { default: s(() => [v(y2)]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"])) : (a(), o(k, { key: 0, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]));
14
+ }), (e3, t2) => {
15
+ const l2 = u("el-button"), n2 = u("ArrowDown"), y2 = u("el-icon"), _3 = u("el-text"), w2 = u("el-dropdown-item"), T = u("el-dropdown-menu"), h = u("el-dropdown");
16
+ return j.value ? (a(), o(h, { key: 1, ref_key: "componentRef", ref: R, class: p(r(D)), style: i(r(B)), placement: z.value.placement, "split-button": z.value.splitButton, disabled: "disabled" === z.value.state, type: z.value.buttonType, size: z.value.size, trigger: z.value.trigger }, { dropdown: s(() => [v(T, null, { default: s(() => [(a(true), g(c, null, d(z.value.template, (t3, l3) => (a(), o(w2, { key: t3, onClick: (l4) => r(b)(l4, e3.pageContext, e3.configure, "click", { menuItem: t3 }) }, { default: s(() => [m(f(r(C)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: s(() => ["button" === z.value.triggerElement ? (a(), g(c, { key: 0 }, [z.value.splitButton ? (a(), g("span", x, f(r(C)(z.value.title)), 1)) : (a(), o(l2, { key: 0, size: z.value.size, type: z.value.buttonType, onClick: t2[0] || (t2[0] = (t3) => r(b)(t3, e3.pageContext, e3.configure, "menuClick")) }, { default: s(() => [m(f(r(C)(z.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (a(), o(_3, { key: 1 }, { default: s(() => [m(f(r(C)(z.value.title)) + " ", 1), v(y2, null, { default: s(() => [v(n2)]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"])) : (a(), o(k, { key: 0, configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"]));
17
17
  };
18
18
  } });
19
19
  export {
@@ -46,7 +46,7 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
46
46
  ee(true);
47
47
  }), A2({ updateChartDatas: oe, exportChart: function() {
48
48
  return d(S.value, M);
49
- }, chartOption: Q }), (r2, o2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: N }, [l(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e2.configure, pageContext: e2.pageContext, onDrillEnd: Y, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e2.pageContext.showHomepageSearch]]), c(s(E), { ref_key: "chartRef", ref: S, class: "amb-chart-content", theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
49
+ }, chartOption: Q }), (e3, r2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: N }, [l(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.pageContext.showHomepageSearch]]), c(s(E), { ref_key: "chartRef", ref: S, class: "amb-chart-content", theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
50
50
  } });
51
51
  export {
52
52
  A as default
@@ -1,13 +1,9 @@
1
- import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as n, Fragment as d, renderList as p } from "vue";
2
- const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup(e2) {
3
- const t2 = e2;
4
- return l(t2.headerInfo, () => {
5
- t2.headerInfo;
6
- }), (l2, t3) => {
7
- const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = o("el-radio-group");
8
- return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[0] || (t3[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (r(true), u(d, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[1] || (t3[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (r(), a(b, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[2] || (t3[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
9
- };
10
- } });
1
+ import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as d, Fragment as n, renderList as p } from "vue";
2
+ const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup: (e2) => (l(e2.headerInfo, () => {
3
+ }), (l2, t2) => {
4
+ const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = o("el-radio-group");
5
+ return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[0] || (t2[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, null, p(e2.headerInfo.options, (e3) => (r(), a(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (r(true), u(n, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[1] || (t2[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (r(), a(b, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[2] || (t2[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, null, p(e2.headerInfo.options, (e3) => (r(), a(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
6
+ }) });
11
7
  export {
12
8
  t as default
13
9
  };
@@ -3,13 +3,12 @@ import { Search as p } from "@element-plus/icons-vue";
3
3
  import g from "./common-chart-header-group.vue.js";
4
4
  import m from "./common-chart-header-breadcrumb.vue.js";
5
5
  import b from "./common-homepage-search.vue.js";
6
- import { setVariableValueWithProp as v, getValueFromSource as y, setValueForVariableName as O } from "../../../../utils/page-helper-util.js";
7
- const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-header-item" }, k = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" }, j = { class: "amb-widget-chart-header-item" }, C = { key: 0, class: "amb-widget-chart-header-item" }, P = e({ __name: "common-chart-header", props: { headerInfo: { type: Object, required: true }, configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["drill-end"], setup(e2, { expose: P2, emit: _ }) {
6
+ import { setVariableValueWithProp as v, getValueFromSource as y, setValueForVariableName as w } from "../../../../utils/page-helper-util.js";
7
+ const x = { class: "amb-widget-chart-header" }, O = { class: "amb-widget-chart-header-item" }, k = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" }, j = { class: "amb-widget-chart-header-item" }, C = { key: 0, class: "amb-widget-chart-header-item" }, P = e({ __name: "common-chart-header", props: { headerInfo: { type: Object, required: true }, configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["drill-end"], setup(e2, { expose: P2, emit: _ }) {
8
8
  const N = e2, D = o(null), A = o(), R = _;
9
9
  function S(e3) {
10
10
  const o2 = N.headerInfo.drillOptions.length;
11
- if (e3 >= o2) N.headerInfo.drillOptions;
12
- else {
11
+ if (!(e3 >= o2)) {
13
12
  for (let r2 = o2 - 1; r2 >= e3; r2--) N.headerInfo.drillOptions.splice(r2, 1);
14
13
  q(e3);
15
14
  }
@@ -35,7 +34,7 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
35
34
  for (let e4 of o2.variables) {
36
35
  if (!e4.fieldName || !e4.variable) continue;
37
36
  const o3 = y(r2, e4.fieldName, void 0);
38
- O(N.pageContext.entity, e4.variable, o3);
37
+ w(N.pageContext.entity, e4.variable, o3);
39
38
  }
40
39
  }
41
40
  N.headerInfo.drillOptions || (N.headerInfo.drillOptions = []);
@@ -47,12 +46,11 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
47
46
  if (r2 + 1 >= N.headerInfo.options.length) {
48
47
  return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0), void R("drill-end", e3);
49
48
  }
50
- N.headerInfo.options;
51
49
  const n2 = N.headerInfo.options[r2], t2 = o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : null, a2 = { fieldName: n2.target ? n2.target.replace(".", "_") : "", rawFieldName: n2.target ? n2.target : "", label: e3.name, value: e3.name, data: t2 };
52
50
  N.headerInfo.drillOptions.push(a2), q(r2 + 1);
53
51
  }, closeDrill: S }), (o2, v2) => {
54
- const y2 = r("el-icon"), O2 = r("el-tooltip");
55
- return t(), n("div", w, [a("div", x, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && (!e2.headerInfo.textAlign || "left" == e2.headerInfo.textAlign)]]), !e2.headerInfo.showDrill || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(m, { key: 0, ref_key: "drillObjRef", ref: D, headerInfo: e2.headerInfo, onCloseDrill: S }, null, 8, ["headerInfo"])), !e2.headerInfo.showGroup || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"]))]), a("div", k, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && "center" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "center" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "center" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), a("div", j, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && "right" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "right" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "right" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), e2.pageContext.showHomepageSearch ? (t(), n("div", C, [c(O2, { content: "打开查询弹窗", effect: "light" }, { default: I(() => [c(y2, { onClick: G }, { default: I(() => [c(u(p))]), _: 1 })]), _: 1 }), c(b, { ref_key: "commonHomepageSearchRef", ref: A, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])])) : l("", true)]);
52
+ const y2 = r("el-icon"), w2 = r("el-tooltip");
53
+ return t(), n("div", x, [a("div", O, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && (!e2.headerInfo.textAlign || "left" == e2.headerInfo.textAlign)]]), !e2.headerInfo.showDrill || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(m, { key: 0, ref_key: "drillObjRef", ref: D, headerInfo: e2.headerInfo, onCloseDrill: S }, null, 8, ["headerInfo"])), !e2.headerInfo.showGroup || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"]))]), a("div", k, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && "center" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "center" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "center" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), a("div", j, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + "  ", 5), [[s, e2.headerInfo.title && "right" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "right" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "right" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), e2.pageContext.showHomepageSearch ? (t(), n("div", C, [c(w2, { content: "打开查询弹窗", effect: "light" }, { default: I(() => [c(y2, { onClick: G }, { default: I(() => [c(u(p))]), _: 1 })]), _: 1 }), c(b, { ref_key: "commonHomepageSearchRef", ref: A, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])])) : l("", true)]);
56
54
  };
57
55
  } });
58
56
  export {
@@ -56,7 +56,7 @@ const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
56
56
  _.value = true, k.value = N.configure.pushHomepage.searchConditions;
57
57
  } }), (t2, i2) => {
58
58
  const o2 = l("el-empty"), v2 = l("el-form"), h2 = l("el-button"), y2 = l("el-dialog");
59
- return r(), a(y2, { modelValue: _.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(o2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: j.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() => [...i2[1] || (i2[1] = [p(" 确定 ", -1)])]), _: 1 }), s(h2, { type: "default", onClick: H }, { default: n(() => [...i2[2] || (i2[2] = [p("重置", -1)])]), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => [...i2[3] || (i2[3] = [p(" 保存为默认条件 ", -1)])]), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
59
+ return r(), a(y2, { modelValue: _.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(o2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: j.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() => i2[1] || (i2[1] = [p(" 确定 ")])), _: 1 }), s(h2, { type: "default", onClick: H }, { default: n(() => i2[2] || (i2[2] = [p("重置")])), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => i2[3] || (i2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
60
60
  };
61
61
  } });
62
62
  export {
@@ -2,10 +2,10 @@ import { defineComponent as e, ref as t, markRaw as i, onUnmounted as n, resolve
2
2
  import { deepCopy as C } from "../../../../utils/common-util.js";
3
3
  import b from "agilebuilder-ui/src/utils/request";
4
4
  import { updateOptionDatasources as k, updateChartDatasources as x, setValueForVariableName as S, setVariableValue as j, getFormPropName as O, getValueFromVariable as w } from "../../../../utils/page-helper-util.js";
5
- import { initPageEvents as _, isShowComponent as H } from "../../../../utils/events/event-util.js";
6
- import J from "../../object-render.vue.js";
7
- import N from "../../error-render.vue.js";
8
- import { getRuntimeComponentByName as U } from "../../../../utils/assemblys-config.js";
5
+ import { initPageEvents as _, isShowComponent as J } from "../../../../utils/events/event-util.js";
6
+ import N from "../../object-render.vue.js";
7
+ import U from "../../error-render.vue.js";
8
+ import { getRuntimeComponentByName as H } from "../../../../utils/assemblys-config.js";
9
9
  import { addComponentRef as V, addComponentRefByCode as A } from "../../../../utils/global-refs.js";
10
10
  import { getDefaultValue as E, controlObjectRenderState as P } from "../../../../utils/page-init-util.js";
11
11
  import { ElLoading as D } from "element-plus";
@@ -68,15 +68,15 @@ const $ = { "element-loading-text": "加载中..." }, q = { style: { overflow: "
68
68
  if (e3 && e3.designJson) {
69
69
  L.value = {};
70
70
  const n2 = JSON.parse(e3.designJson), a2 = window.frameElement;
71
- L.value = n2.chartJson, a2 && (a2.clientHeight, L.value.runtime.common.style.pc_style.height = a2.clientHeight + "px");
71
+ L.value = n2.chartJson, a2 && (L.value.runtime.common.style.pc_style.height = a2.clientHeight + "px");
72
72
  const l2 = { isTest: true, showHomepageSearch: false, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: n2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: n2.beanName, initChartServiceConfigs: [n2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
73
73
  if (z.value = ((_a = L.value.pushHomepage) == null ? void 0 : _a.searchConditions) || [], n2.variables) {
74
74
  const e4 = l2.entity.page;
75
75
  for (const t2 of n2.variables) t2.name && (t2.isArrayElement ? e4[t2.name] = [] : t2.defaultValue ? e4[t2.name] = t2.defaultValue : e4[t2.name] = void 0);
76
76
  }
77
- n2.initOptionConfigs && n2.initOptionConfigs.length > 0 && k(l2, n2.initOptionConfigs, void 0), Z(l2), M.value = i(U(L.value.name));
77
+ n2.initOptionConfigs && n2.initOptionConfigs.length > 0 && k(l2, n2.initOptionConfigs, void 0), Z(l2), M.value = i(H(L.value.name));
78
78
  const o2 = t(true);
79
- null == M.value && (M.value = N, o2.value = false), _(n2, l2), R.value = l2, G.value = true, X.value = JSON.parse(JSON.stringify(R.value.entity)), function(e4, t2) {
79
+ null == M.value && (M.value = U, o2.value = false), _(n2, l2), R.value = l2, G.value = true, X.value = JSON.parse(JSON.stringify(R.value.entity)), function(e4, t2) {
80
80
  if (!t2 || 0 == t2.length) return;
81
81
  e4.initChartData = {}, e4.initChartData.data = C(e4.entity.data), e4.initChartData.page = C(e4.entity.page), t2 && t2.length > 0 && x(e4, t2, null, true);
82
82
  }(R.value, [n2.initChartServiceConfigs]);
@@ -86,7 +86,7 @@ const $ = { "element-loading-text": "加载中..." }, q = { style: { overflow: "
86
86
  }), n(() => {
87
87
  }), (e3, t2) => {
88
88
  const i2 = a("el-empty"), n2 = a("el-button"), C2 = a("el-col"), b2 = a("el-form"), k2 = l("loading");
89
- return o((r(), u("div", $, [s("div", q, [z.value && 0 !== z.value.length ? c("", true) : (r(), p(i2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), p(b2, { key: K.value }, { default: v(() => [(r(true), u(g, null, m(z.value, (e4) => (r(), p(J, { key: e4.uuid, configure: e4, pageContext: d(R) }, null, 8, ["configure", "pageContext"]))), 128)), f(C2, { span: 24, style: { "text-align": "right", margin: "10px 0" } }, { default: v(() => [f(n2, { type: "primary", onClick: ee }, { default: v(() => [...t2[0] || (t2[0] = [h("查询", -1)])]), _: 1 }), f(n2, { type: "default", onClick: te }, { default: v(() => [...t2[1] || (t2[1] = [h("重置", -1)])]), _: 1 }), f(n2, { type: "primary", onClick: ie }, { default: v(() => [...t2[2] || (t2[2] = [h("保存为默认条件", -1)])]), _: 1 })]), _: 1 })]), _: 1 })), G.value && d(H)(L.value) ? (r(), p(y(M.value), { key: 1, ref: Y, style: { width: "100%", height: "300px" }, configure: L.value, pageContext: d(R) }, null, 8, ["configure", "pageContext"])) : c("", true)], 512)])), [[k2, B.value]]);
89
+ return o((r(), u("div", $, [s("div", q, [z.value && 0 !== z.value.length ? c("", true) : (r(), p(i2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), p(b2, { key: K.value }, { default: v(() => [(r(true), u(g, null, m(z.value, (e4) => (r(), p(N, { key: e4.uuid, configure: e4, pageContext: d(R) }, null, 8, ["configure", "pageContext"]))), 128)), f(C2, { span: 24, style: { "text-align": "right", margin: "10px 0" } }, { default: v(() => [f(n2, { type: "primary", onClick: ee }, { default: v(() => t2[0] || (t2[0] = [h("查询")])), _: 1 }), f(n2, { type: "default", onClick: te }, { default: v(() => t2[1] || (t2[1] = [h("重置")])), _: 1 }), f(n2, { type: "primary", onClick: ie }, { default: v(() => t2[2] || (t2[2] = [h("保存为默认条件")])), _: 1 })]), _: 1 })]), _: 1 })), G.value && d(J)(L.value) ? (r(), p(y(M.value), { key: 1, ref: Y, style: { width: "100%", height: "300px" }, configure: L.value, pageContext: d(R) }, null, 8, ["configure", "pageContext"])) : c("", true)], 512)])), [[k2, B.value]]);
90
90
  };
91
91
  } });
92
92
  export {
@@ -28,7 +28,7 @@ const k = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }
28
28
  }
29
29
  return x(A.pageContext, K, J), k2({ updateChartDatas: L, exportChart: function() {
30
30
  return l(O.value, T);
31
- } }), (r2, t2) => (n(), a("div", { style: u(i(F)), class: s([i(P), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: H }, [c(p(v, { ref_key: "headerRef", ref: z, headerInfo: i(T), configure: e2.configure, pageContext: e2.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, i(T).showHeader || e2.pageContext.showHomepageSearch]]), p(i(I), { ref_key: "chartRef", ref: O, class: "amb-chart-content", theme: i(E), option: i(q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
31
+ } }), (e3, r2) => (n(), a("div", { style: u(i(F)), class: s([i(P), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: H }, [c(p(v, { ref_key: "headerRef", ref: z, headerInfo: i(T), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, i(T).showHeader || e3.pageContext.showHomepageSearch]]), p(i(I), { ref_key: "chartRef", ref: O, class: "amb-chart-content", theme: i(E), option: i(q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
32
32
  } });
33
33
  export {
34
34
  k as default
@@ -39,7 +39,7 @@ const T = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} },
39
39
  Y(true);
40
40
  }), T2({ updateChartDatas: $, exportChart: function() {
41
41
  return d(O.value, J);
42
- } }), (r2, o2) => (n(), a("div", { style: i(l(q)), class: u([l(B), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: H }, [c(s(k, { ref_key: "headerRef", ref: S, headerInfo: l(J), configure: e2.configure, pageContext: e2.pageContext, onDrillEnd: Q, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, l(J).showHeader || e2.pageContext.showHomepageSearch]]), s(l(E), { ref_key: "chartRef", ref: O, class: "amb-chart-content", theme: l(M), option: l(K), autoresize: "" }, null, 8, ["theme", "option"])], 6));
42
+ } }), (e3, r2) => (n(), a("div", { style: i(l(q)), class: u([l(B), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: H }, [c(s(k, { ref_key: "headerRef", ref: S, headerInfo: l(J), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Q, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, l(J).showHeader || e3.pageContext.showHomepageSearch]]), s(l(E), { ref_key: "chartRef", ref: O, class: "amb-chart-content", theme: l(M), option: l(K), autoresize: "" }, null, 8, ["theme", "option"])], 6));
43
43
  } });
44
44
  export {
45
45
  T as default
@@ -28,7 +28,7 @@ const A = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }
28
28
  }
29
29
  return x(H.pageContext, L, K), A2({ updateChartDatas: M, exportChart: function() {
30
30
  return l(z.value, q);
31
- } }), (r2, t2) => (n(), a("div", { style: u(i(P)), class: s([i(S), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: O }, [c(p(v, { ref_key: "headerRef", ref: D, headerInfo: i(q), configure: e2.configure, pageContext: e2.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, i(q).showHeader || e2.pageContext.showHomepageSearch]]), p(i(k), { ref_key: "chartRef", ref: z, class: "amb-chart-content", theme: i(G), option: i(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
31
+ } }), (e3, r2) => (n(), a("div", { style: u(i(P)), class: s([i(S), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: O }, [c(p(v, { ref_key: "headerRef", ref: D, headerInfo: i(q), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, i(q).showHeader || e3.pageContext.showHomepageSearch]]), p(i(k), { ref_key: "chartRef", ref: z, class: "amb-chart-content", theme: i(G), option: i(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
32
32
  } });
33
33
  export {
34
34
  A as default
@@ -28,7 +28,7 @@ const H = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {}
28
28
  }
29
29
  return x(O.pageContext, M, L), H2({ updateChartDatas: N, exportChart: function() {
30
30
  return l(D.value, B);
31
- } }), (r2, t2) => (n(), a("div", { style: c(u(S)), class: s([u(T), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: z }, [i(p(v, { ref_key: "headerRef", ref: F, headerInfo: u(B), configure: e2.configure, pageContext: e2.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, u(B).showHeader || e2.pageContext.showHomepageSearch]]), p(u(A), { ref_key: "chartRef", ref: D, class: "amb-chart-content", theme: u(J), option: u(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
31
+ } }), (e3, r2) => (n(), a("div", { style: c(u(S)), class: s([u(T), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: z }, [i(p(v, { ref_key: "headerRef", ref: F, headerInfo: u(B), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, u(B).showHeader || e3.pageContext.showHomepageSearch]]), p(u(A), { ref_key: "chartRef", ref: D, class: "amb-chart-content", theme: u(J), option: u(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
32
32
  } });
33
33
  export {
34
34
  H as default
@@ -11,24 +11,24 @@ class ExpressionEvaluator {
11
11
  return this.evaluateExpression(o);
12
12
  }
13
13
  static createExpression(e, t, r) {
14
- const { propName: o, operator: n, propValue: a, leftBracket: s, rightBracket: l, joinSign: i, dataType: c } = t;
14
+ const { propName: o, operator: a, propValue: n, leftBracket: s, rightBracket: l, joinSign: i, dataType: c } = t;
15
15
  if (!o || "" === o) return "";
16
16
  const u = getValueFromVariable(e.entity, o, r);
17
- let p = `${s} ${this.getComparisonExpression(u, t, getValueFromVariable(e.entity, a, r))} ${l}`;
17
+ let p = `${s} ${this.getComparisonExpression(u, t, getValueFromVariable(e.entity, n, r))} ${l}`;
18
18
  return i && ("and" === i || "AND" === i ? p += "&&" : "or" !== i && "OR" !== i || (p += "||")), p.trim();
19
19
  }
20
20
  static getComparisonExpression(e, t, r) {
21
- const { dataType: o, variableIsNull: n } = t;
22
- let a = t.operator;
23
- a || (a = "EQ");
21
+ const { dataType: o, variableIsNull: a } = t;
22
+ let n = t.operator;
23
+ n || (n = "EQ");
24
24
  let s = this.parseValue(e, o);
25
25
  const l = this.parseValue(r, o);
26
- if (null == l && n) {
27
- if (null == s && (s = "null"), "null" === n) return `${s} === null`;
28
- if ("ignore" === n) return "1=1";
29
- if ("notequal" === n) return "1!=1";
26
+ if (null == l && a) {
27
+ if (null == s && (s = "null"), "null" === a) return `${s} === null`;
28
+ if ("ignore" === a) return "1=1";
29
+ if ("notequal" === a) return "1!=1";
30
30
  }
31
- switch (a) {
31
+ switch (n) {
32
32
  case "EQ":
33
33
  return `${s} === ${l}`;
34
34
  case "GT":
@@ -55,7 +55,7 @@ class ExpressionEvaluator {
55
55
  }
56
56
  return `[${l}].includes(${s})`;
57
57
  default:
58
- throw new Error(`比较符号不匹配: ${a}`);
58
+ throw new Error(`比较符号不匹配: ${n}`);
59
59
  }
60
60
  }
61
61
  static changeDataType(e) {
@@ -86,7 +86,7 @@ class ExpressionEvaluator {
86
86
  try {
87
87
  return eval(expression);
88
88
  } catch (e) {
89
- return console.error("表达式错误:", expression, e), false;
89
+ return false;
90
90
  }
91
91
  }
92
92
  }
@@ -114,40 +114,39 @@ function getSummaryDataColumn(e, t) {
114
114
  const r = {};
115
115
  return ((_a = e.props.summaries) == null ? void 0 : _a.dataColumn) && e.props.summaries.dataColumn.length > 0 && e.props.summaries.dataColumn.forEach((o) => {
116
116
  var _a2;
117
- const n = (_a2 = e.items) == null ? void 0 : _a2.find((e2) => o.prop === e2.props.base.prop);
118
- n && ("table" === t && n.props.base.tableSummary || "group" === t && n.props.base.groupSummary) && (r[o.prop] = o);
117
+ const a = (_a2 = e.items) == null ? void 0 : _a2.find((e2) => o.prop === e2.props.base.prop);
118
+ a && ("table" === t && a.props.base.tableSummary || "group" === t && a.props.base.groupSummary) && (r[o.prop] = o);
119
119
  }), r;
120
120
  }
121
121
  function summaryStatistics(e, t, r, o) {
122
- let n = "";
123
- const a = e.summaryMode, s = t.map((e2) => Number(e2[r])).filter((e2) => !Number.isNaN(e2));
124
- if (s.length > 0) if ("custom" === a) {
125
- const a2 = getCustomFunc(o, e.customFunc);
126
- if (a2) try {
127
- const e2 = a2.apply(a2, [{ data: t, prop: r }]);
128
- n = e2 ? ` ${e2}` : " N/A";
122
+ let a = "";
123
+ const n = e.summaryMode, s = t.map((e2) => Number(e2[r])).filter((e2) => !Number.isNaN(e2));
124
+ if (s.length > 0) if ("custom" === n) {
125
+ const n2 = getCustomFunc(o, e.customFunc);
126
+ if (n2) try {
127
+ const e2 = n2.apply(n2, [{ data: t, prop: r }]);
128
+ a = e2 ? ` ${e2}` : " N/A";
129
129
  } catch (e2) {
130
- console.error("自定义函数脚本错误:", t, e2);
131
130
  }
132
- else n = " N/A";
133
- } else switch (a) {
131
+ else a = " N/A";
132
+ } else switch (n) {
134
133
  case "sum":
135
- n = ` ${s.reduce((e2, t2) => e2 + t2, 0)}`;
134
+ a = ` ${s.reduce((e2, t2) => e2 + t2, 0)}`;
136
135
  break;
137
136
  case "avg":
138
- n = " " + s.reduce((e2, t2) => e2 + t2, 0) / s.length;
137
+ a = " " + s.reduce((e2, t2) => e2 + t2, 0) / s.length;
139
138
  break;
140
139
  case "min":
141
- n = ` ${Math.min(...s)}`;
140
+ a = ` ${Math.min(...s)}`;
142
141
  break;
143
142
  case "max":
144
- n = ` ${Math.max(...s)}`;
143
+ a = ` ${Math.max(...s)}`;
145
144
  break;
146
145
  default:
147
- n = " N/A";
146
+ a = " N/A";
148
147
  }
149
- else n = " N/A";
150
- return n;
148
+ else a = " N/A";
149
+ return a;
151
150
  }
152
151
  function replacePlaceholders(e, t) {
153
152
  if (e) return e.replace(/\$\{row\.(\w+)\}/g, (e2, r) => Object.prototype.hasOwnProperty.call(t, r) ? t[r] : "");
@@ -157,33 +156,31 @@ function getHeaderCellStyleUtil(e, t, r) {
157
156
  const o = {};
158
157
  e.column.property && ((_a = t.titleStyle) == null ? void 0 : _a.forEach((t2) => {
159
158
  if (t2.field && t2.field.includes(e.column.property)) if (t2.scopeFunc) {
160
- const n2 = getCustomFunc(r.pageContext, t2.scopeFunc);
161
- if (n2) try {
162
- false !== n2.apply(n2, [{ item: t2, data: e }]) && copyStyle(o, t2);
163
- } catch (r2) {
164
- console.error("自定义函数脚本错误:", t2, e, r2);
159
+ const a2 = getCustomFunc(r.pageContext, t2.scopeFunc);
160
+ if (a2) try {
161
+ false !== a2.apply(a2, [{ item: t2, data: e }]) && copyStyle(o, t2);
162
+ } catch (e2) {
165
163
  }
166
164
  } else copyStyle(o, t2);
167
165
  }));
168
- const n = getCellStyleUtil(e, t.cellTitleStyle, r);
169
- return n && Object.assign(o, n), o;
166
+ const a = getCellStyleUtil(e, t.cellTitleStyle, r);
167
+ return a && Object.assign(o, a), o;
170
168
  }
171
169
  function getRowStyleUtil(e, t, r) {
172
170
  const o = {};
173
171
  if (r.configure.style.rowStyle) for (let t2 = 0; t2 < r.configure.style.rowStyle.length; t2++) {
174
- const n = r.configure.style.rowStyle[t2];
175
- if (n.scopeFunc) {
176
- const t3 = getCustomFunc(r.pageContext, n.scopeFunc);
172
+ const a = r.configure.style.rowStyle[t2];
173
+ if (a.scopeFunc) {
174
+ const t3 = getCustomFunc(r.pageContext, a.scopeFunc);
177
175
  if (t3) try {
178
176
  const r2 = t3.apply(t3, [{ data: e }]);
179
- null != r2 && false !== r2 && copyStyle(o, n);
180
- } catch (t4) {
181
- console.error("自定义函数脚本错误:", e, t4);
177
+ null != r2 && false !== r2 && copyStyle(o, a);
178
+ } catch (e2) {
182
179
  }
183
- } else if (n.matchingCondition) {
184
- const t3 = ExpressionEvaluator.evaluate(r.pageContext, n.matchingCondition, e.row);
185
- (t3 || void 0 === t3) && copyStyle(o, n);
186
- } else copyStyle(o, n);
180
+ } else if (a.matchingCondition) {
181
+ const t3 = ExpressionEvaluator.evaluate(r.pageContext, a.matchingCondition, e.row);
182
+ (t3 || void 0 === t3) && copyStyle(o, a);
183
+ } else copyStyle(o, a);
187
184
  }
188
185
  if (t && t.length > 0 && -1 !== t.indexOf(e.rowIndex)) {
189
186
  const e2 = {};
@@ -196,19 +193,18 @@ function getRowStyleUtil(e, t, r) {
196
193
  }
197
194
  function getCellStyleUtil(e, t, r) {
198
195
  const o = {};
199
- if (t) for (let n = 0; n < t.length; n++) {
200
- const a = t[n];
201
- if (isSetStyle(a)) if (a.scopeFunc) {
202
- const t2 = getCustomFunc(r.pageContext, a.scopeFunc);
196
+ if (t) for (let a = 0; a < t.length; a++) {
197
+ const n = t[a];
198
+ if (isSetStyle(n)) if (n.scopeFunc) {
199
+ const t2 = getCustomFunc(r.pageContext, n.scopeFunc);
203
200
  if (t2) try {
204
- false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, a);
205
- } catch (t3) {
206
- console.error("自定义函数脚本错误:", e, t3);
201
+ false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, n);
202
+ } catch (e2) {
207
203
  }
208
- } else if (a.matchingCondition) {
209
- const t2 = ExpressionEvaluator.evaluate(r.pageContext, a.matchingCondition, e.row);
210
- (t2 || void 0 === t2) && copyStyle(o, a);
211
- } else copyStyle(o, a);
204
+ } else if (n.matchingCondition) {
205
+ const t2 = ExpressionEvaluator.evaluate(r.pageContext, n.matchingCondition, e.row);
206
+ (t2 || void 0 === t2) && copyStyle(o, n);
207
+ } else copyStyle(o, n);
212
208
  }
213
209
  return o;
214
210
  }
@@ -220,35 +216,35 @@ function copyStyle(e, t) {
220
216
  Object.assign(e, t.style), t.customStyle && Object.assign(e, JSON.parse(t.customStyle));
221
217
  }
222
218
  function rowDataToColumn(e, t, r) {
223
- const o = t.props.dataOrigin.groupField, n = t.props.dataOrigin.rowToColumn.titleColumns, a = t.props.dataOrigin.rowToColumn.dataColumns, s = [], l = {};
219
+ const o = t.props.dataOrigin.groupField, a = t.props.dataOrigin.rowToColumn.titleColumns, n = t.props.dataOrigin.rowToColumn.dataColumns, s = [], l = {};
224
220
  if (o && o.length > 0) e.forEach((e2) => {
225
221
  const t2 = o.map((t3) => e2[t3]).join("|");
226
222
  if (!l[t2]) {
227
223
  const r2 = {};
228
224
  o.forEach((t3) => r2[t3] = e2[t3]), l[t2] = r2, s.push(r2);
229
225
  }
230
- a.forEach((r2) => {
231
- const o2 = `${n.map((t3) => e2[t3]).join("")}${r2}`;
226
+ n.forEach((r2) => {
227
+ const o2 = `${a.map((t3) => e2[t3]).join("")}${r2}`;
232
228
  l[t2][o2] = e2[r2];
233
229
  });
234
230
  });
235
231
  else {
236
232
  const t2 = [];
237
233
  e.forEach((e2) => {
238
- n.forEach((r2) => {
234
+ a.forEach((r2) => {
239
235
  e2[r2] && t2.push(e2[r2]);
240
236
  });
241
- }), a.forEach((t3) => {
242
- const o2 = {}, a2 = r.find((e2) => {
237
+ }), n.forEach((t3) => {
238
+ const o2 = {}, n2 = r.find((e2) => {
243
239
  var _a, _b;
244
240
  return ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop) === t3;
245
241
  });
246
- a2 && (o2.$GroupColumn = a2.props.base.name), e.forEach((e2) => {
247
- n.forEach((r2) => {
248
- const n2 = e2[r2];
249
- if (!n2) return;
250
- const a3 = e2[t3];
251
- o2[n2] = a3;
242
+ n2 && (o2.$GroupColumn = n2.props.base.name), e.forEach((e2) => {
243
+ a.forEach((r2) => {
244
+ const a2 = e2[r2];
245
+ if (!a2) return;
246
+ const n3 = e2[t3];
247
+ o2[a2] = n3;
252
248
  });
253
249
  }), s.push(o2);
254
250
  });
@@ -256,9 +252,9 @@ function rowDataToColumn(e, t, r) {
256
252
  return s;
257
253
  }
258
254
  function colDataToRow(e, t) {
259
- const r = t.props.dataOrigin.groupField, o = t.props.dataOrigin.columnToRow.titleColumns, n = t.props.dataOrigin.columnToRow.dataColumns, a = t.props.dataOrigin.columnToRow.transColumns, s = t.props.dataOrigin.columnToRow.dataColumnsMapping;
255
+ const r = t.props.dataOrigin.groupField, o = t.props.dataOrigin.columnToRow.titleColumns, a = t.props.dataOrigin.columnToRow.dataColumns, n = t.props.dataOrigin.columnToRow.transColumns, s = t.props.dataOrigin.columnToRow.dataColumnsMapping;
260
256
  if (0 === e.length) return e;
261
- const l = [], i = groupBy(e, r), c = n.reduce((e2, t2) => t2.columns.length > e2.columns.length ? t2 : e2, n[0]), u = n.reduce((e2, t2) => (t2.columns.forEach((r2) => {
257
+ const l = [], i = groupBy(e, r), c = a.reduce((e2, t2) => t2.columns.length > e2.columns.length ? t2 : e2, a[0]), u = a.reduce((e2, t2) => (t2.columns.forEach((r2) => {
262
258
  e2[r2] = t2.prop;
263
259
  }), e2), {});
264
260
  return i.forEach((e2) => {
@@ -266,14 +262,14 @@ function colDataToRow(e, t) {
266
262
  const i2 = c.prop, p = {};
267
263
  if (r.forEach((t3) => {
268
264
  p[t3] = e2[t3];
269
- }), p[i2] = e2[t2], n.length > 1) {
265
+ }), p[i2] = e2[t2], a.length > 1) {
270
266
  const r2 = s.find((e3) => e3.props.includes(t2));
271
267
  r2 && r2.props.length > 1 && r2.props.forEach((r3) => {
272
268
  r3 !== t2 && u[r3] && (p[u[r3]] = e2[r3]);
273
269
  });
274
270
  }
275
271
  o.forEach((e3) => {
276
- const r2 = a.filter((t3) => t3.relatedTitle === e3.prop);
272
+ const r2 = n.filter((t3) => t3.relatedTitle === e3.prop);
277
273
  let o2 = false;
278
274
  r2 && r2.length > 0 && r2.forEach((r3) => {
279
275
  if (r3.columns.includes(t2)) return p[e3.prop] = r3.label, void (o2 = true);
@@ -283,25 +279,25 @@ function colDataToRow(e, t) {
283
279
  }), l;
284
280
  }
285
281
  function getColumnToRowTableConfig(e) {
286
- const t = e.items, r = e.props.dataOrigin.groupField, o = e.props.dataOrigin.columnToRow.titleColumns, n = e.props.dataOrigin.columnToRow.dataColumns, a = [];
282
+ const t = e.items, r = e.props.dataOrigin.groupField, o = e.props.dataOrigin.columnToRow.titleColumns, a = e.props.dataOrigin.columnToRow.dataColumns, n = [];
287
283
  r && r.length > 0 && r.forEach((e2) => {
288
284
  if (t) {
289
285
  const r2 = t.find((t2) => t2.props.base.prop === e2);
290
- r2 && a.push(r2);
286
+ r2 && n.push(r2);
291
287
  }
292
288
  });
293
- return [...o, ...n].forEach((e2) => {
289
+ return [...o, ...a].forEach((e2) => {
294
290
  if (t) {
295
291
  const r2 = t.find((t2) => t2.props.base.prop === e2);
296
- r2 ? a.push(r2) : a.push({ uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: e2.prop, name: e2.title, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: "string" }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } });
292
+ r2 ? n.push(r2) : n.push({ uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: e2.prop, name: e2.title, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: "string" }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } });
297
293
  }
298
- }), a;
294
+ }), n;
299
295
  }
300
296
  function groupBy(e, t) {
301
297
  const r = {};
302
298
  return e.forEach((e2) => {
303
299
  const o = t.map((t2) => e2[t2]).join("|");
304
- r[o] || (r[o] = { ...e2, records: [] }, t.forEach((t2, n) => {
300
+ r[o] || (r[o] = { ...e2, records: [] }, t.forEach((t2, a) => {
305
301
  r[o][t2] = e2[t2];
306
302
  })), r[o].records.push(e2);
307
303
  }), Object.values(r).map((e2) => ({ ...e2, records: void 0 }));
@@ -329,7 +325,7 @@ function computeFormula(itemConfs, datas, entity) {
329
325
  r += Number(e2[t]);
330
326
  });
331
327
  } catch (e2) {
332
- console.error("计算错误:", e2), r = 0;
328
+ r = 0;
333
329
  }
334
330
  totalValueMap[e] = r;
335
331
  } else (e.startsWith("${page.") || e.startsWith("${data.") || e.startsWith("${row.") || e.startsWith("${request.") || e.startsWith("${context.") || e.startsWith("${system.") || e.startsWith("${fixed.")) && (totalValueMap[e] = getValueFromVariable(entity, e, data));
@@ -341,7 +337,7 @@ function computeFormula(itemConfs, datas, entity) {
341
337
  try {
342
338
  data[key] = eval(expr);
343
339
  } catch (e) {
344
- console.error(itemConfs[key] + " 计算错误, 替换后表达式为:" + expr, e), data[key] = 0;
340
+ data[key] = 0;
345
341
  }
346
342
  });
347
343
  });
@@ -349,19 +345,19 @@ function computeFormula(itemConfs, datas, entity) {
349
345
  function getFieldName(e) {
350
346
  return e.substring(6, e.length - 1);
351
347
  }
352
- function formatColContent(e, t, r, o, n) {
353
- const a = e[r.props.base.prop];
348
+ function formatColContent(e, t, r, o, a) {
349
+ const n = e[r.props.base.prop];
354
350
  switch (t.type) {
355
351
  case "number":
356
- return formatNumber(a, t);
352
+ return formatNumber(n, t);
357
353
  case "currency":
358
- return formatCurrency(a, t);
354
+ return formatCurrency(n, t);
359
355
  case "percent":
360
- return formatPercent(a, t);
356
+ return formatPercent(n, t);
361
357
  case "custom":
362
- return formatCustomFunc(e, t, r, o, n);
358
+ return formatCustomFunc(e, t, r, o, a);
363
359
  default:
364
- return a;
360
+ return n;
365
361
  }
366
362
  }
367
363
  function formatNumber(e, t) {
@@ -376,29 +372,28 @@ function formatPercent(e, t) {
376
372
  let r = e;
377
373
  return r || (r = 0, e = 0), t.decimalDigit && (r = Number(e).toFixed(t.decimalDigit)), r + " %";
378
374
  }
379
- function formatCustomFunc(e, t, r, o, n) {
380
- const a = getCustomFunc(o, t.customFunc);
381
- if (a) {
375
+ function formatCustomFunc(e, t, r, o, a) {
376
+ const n = getCustomFunc(o, t.customFunc);
377
+ if (n) {
382
378
  try {
383
- return a.apply(a, [{ pageContext: o, configureObj: n, row: e, prop: r.props.base.prop }]);
384
- } catch (t2) {
385
- console.error("自定义函数脚本错误:", e, t2);
379
+ return n.apply(n, [{ pageContext: o, configureObj: a, row: e, prop: r.props.base.prop }]);
380
+ } catch (e2) {
386
381
  }
387
382
  return "";
388
383
  }
389
384
  }
390
- function mergeRowByProperty(e, t, r, o, n) {
391
- const a = e[o];
385
+ function mergeRowByProperty(e, t, r, o, a) {
386
+ const n = e[o];
392
387
  let s = 1, l = true;
393
388
  for (let e2 = r - 1; e2 >= 0; e2--) {
394
- if (n[e2][o] === a) {
389
+ if (a[e2][o] === n) {
395
390
  l = false;
396
391
  break;
397
392
  }
398
393
  break;
399
394
  }
400
395
  if (!l) return [0, 0];
401
- for (let e2 = r + 1; e2 < n.length && n[e2][o] === a; e2++) s++;
396
+ for (let e2 = r + 1; e2 < a.length && a[e2][o] === n; e2++) s++;
402
397
  return [s, 1];
403
398
  }
404
399
  export {
@@ -182,9 +182,8 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
182
182
  return o2.forEach((e4, o3) => {
183
183
  if (se.value[e4.property]) {
184
184
  const n2 = se.value[e4.property].label;
185
- return void (t2[o3] = C("div", {}, [P(n2, r2)]));
186
- }
187
- if (ce.value[e4.property]) {
185
+ t2[o3] = C("div", {}, [P(n2, r2)]);
186
+ } else if (ce.value[e4.property]) {
188
187
  const n2 = r2.filter((e5, o4) => !fe.includes(o4));
189
188
  t2[o3] = A(ce.value[e4.property], n2, e4.property, W.pageContext);
190
189
  }