super-page-runtime 2.3.6 → 2.3.7-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 (48) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
  2. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +76 -76
  3. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +26 -24
  4. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +59 -58
  5. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +38 -37
  6. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +28 -27
  7. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  8. package/dist/es/components/runtime/utils/charts/chart-util.js +30 -23
  9. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  10. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  11. package/dist/es/components/runtime/utils/events/standard-event.js +18 -18
  12. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  13. package/dist/es/components/runtime/utils/page-init-util.js +24 -25
  14. package/dist/es/components/runtime/utils/page-store.js +10 -10
  15. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  16. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +4 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +4 -4
  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/gauge/gauge-runtime.vue.js +4 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +15 -15
  22. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +4 -1
  23. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +7 -7
  24. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +4 -1
  25. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +8 -8
  26. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +4 -1
  27. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +7 -7
  28. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +11 -12
  29. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +7 -7
  30. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  31. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  32. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  33. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +19 -17
  34. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +4 -1
  35. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +32 -29
  36. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +4 -4
  37. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
  38. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
  39. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +45 -46
  40. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -5
  41. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -1
  42. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -1
  43. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  44. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  45. package/dist/es/components/runtime/views/super-page.vue2.js +11 -12
  46. package/dist/es/style.css +30 -0
  47. package/package.json +2 -2
  48. package/dist/es.zip +0 -0
@@ -1,7 +1,7 @@
1
1
  import e from "agilebuilder-ui/src/utils/request";
2
2
  import { getAdditionalParamMap as t } from "./events/standard-event.js";
3
3
  import { PageDimensions as s } from "./interfaces/page-design-types.js";
4
- import { getFormPropName as i, getVariableValue as o, setVariableValue as n, formatVariableValue as r } from "./page-helper-util.js";
4
+ import { getFormPropName as i, getVariableValue as n, setVariableValue as o, formatVariableValue as r } from "./page-helper-util.js";
5
5
  import { getSessionCache as l } from "agilebuilder-ui/src/utils/auth";
6
6
  import { functions as a } from "./api/page-expose-util.js";
7
7
  import { isWorkflowPage as p, deepCopy as u } from "./common-util.js";
@@ -40,7 +40,6 @@ function g(e2) {
40
40
  e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
41
41
  }), e2.props.judgeHeavyList) : null;
42
42
  } catch (e3) {
43
- console.error("getJudgeHeavyList error:", e3);
44
43
  }
45
44
  }
46
45
  function b(e2) {
@@ -62,7 +61,7 @@ function y(e2, t2) {
62
61
  }
63
62
  }
64
63
  function h(e2, t2) {
65
- if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query, e2.query)) {
64
+ if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
66
65
  Object.assign(t2, e2.query);
67
66
  w(e2.query.paramStoreId, t2);
68
67
  }
@@ -79,32 +78,32 @@ function w(e2, t2) {
79
78
  function E(e2, t2) {
80
79
  let s2, i2 = t2;
81
80
  t2 || (s2 = e2.props.base ? e2.props.base : {}, i2 = s2.prop);
82
- let o2 = null;
83
- return t2 && !t2.startsWith("${") ? o2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), o2 = i2.split("."), e2 && o2.length < 2 && (o2 = [e2.uuid])) : e2 && (o2 = ["page", e2.uuid]) : o2 = ["page", e2.uuid], o2 || e2 ? o2 : ["temp"];
81
+ let n2 = null;
82
+ return t2 && !t2.startsWith("${") ? n2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), n2 = i2.split("."), e2 && n2.length < 2 && (n2 = [e2.uuid])) : e2 && (n2 = ["page", e2.uuid]) : n2 = ["page", e2.uuid], n2 || e2 ? n2 : ["temp"];
84
83
  }
85
84
  function v(e2, t2, s2) {
86
85
  const i2 = E(t2, s2), r2 = e2.entity;
87
86
  if (null == r2.data.ID && null == r2.data.id) {
88
87
  let s3, l2, a2 = false;
89
88
  t2 && (s3 = t2.props.base ? t2.props.base : {}, l2 = t2.name, a2 = s3.multiple);
90
- const p2 = o(r2, i2);
89
+ const p2 = n(r2, i2);
91
90
  if (null == p2) {
92
91
  const t3 = s3 ? s3.defaultValue : null;
93
92
  if (t3) {
94
93
  const s4 = P(e2, t3, l2, a2);
95
- null != s4 && n(r2, i2, s4);
94
+ null != s4 && o(r2, i2, s4);
96
95
  }
97
96
  }
98
97
  }
99
98
  return i2;
100
99
  }
101
100
  function P(e2, t2, s2, i2) {
102
- let o2;
103
- if (t2 && (o2 = r(e2, t2), null != o2 && null != o2 && s2)) {
101
+ let n2;
102
+ if (t2 && (n2 = r(e2, t2), null != n2 && null != n2 && s2)) {
104
103
  let e3 = false;
105
- "checkbox" == s2 ? e3 = true : "select" == s2 && (e3 = i2), e3 && (o2 = (o2 + "").split(","));
104
+ "checkbox" == s2 ? e3 = true : "select" == s2 && (e3 = i2), e3 && (n2 = (n2 + "").split(","));
106
105
  }
107
- return o2;
106
+ return n2;
108
107
  }
109
108
  function M(e2, t2) {
110
109
  var _a, _b;
@@ -112,14 +111,14 @@ function M(e2, t2) {
112
111
  const s2 = [];
113
112
  if (e2.autoPermissions) for (const i2 of e2.autoPermissions) s2.push(t2.code + "." + i2.simpleCode);
114
113
  if (e2.functionCodes) {
115
- const i2 = e2.sourceTypes ? e2.sourceTypes : [], o2 = e2.functionCodes;
116
- for (let e3 = 0; e3 < o2.length; e3++) {
117
- const n2 = o2[e3], r2 = e3 < i2.length ? i2[e3] : "";
114
+ const i2 = e2.sourceTypes ? e2.sourceTypes : [], n2 = e2.functionCodes;
115
+ for (let e3 = 0; e3 < n2.length; e3++) {
116
+ const o2 = n2[e3], r2 = e3 < i2.length ? i2[e3] : "";
118
117
  let l2 = "";
119
- if ("service" == r2) l2 = n2;
120
- else if ("standard" === r2) l2 = t2.code + "." + n2;
118
+ if ("service" == r2) l2 = o2;
119
+ else if ("standard" === r2) l2 = t2.code + "." + o2;
121
120
  else {
122
- l2 = "custom" === k(n2, t2).type ? n2 : t2.code + "." + n2;
121
+ l2 = "custom" === k(o2, t2).type ? o2 : t2.code + "." + o2;
123
122
  }
124
123
  s2.includes(l2) || s2.push(l2);
125
124
  }
@@ -133,26 +132,26 @@ function k(e2, t2) {
133
132
  }
134
133
  return null;
135
134
  }
136
- function j(s2, i2, o2) {
137
- const n2 = s2.tableRuntimes, r2 = t(i2);
135
+ function j(s2, i2, n2) {
136
+ const o2 = s2.tableRuntimes, r2 = t(i2);
138
137
  let l2;
139
138
  const a2 = i2.code;
140
- return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: n2, additionalParamMapJson: l2, pageCode: a2, publishVersion: o2, pageType: s2.pageType });
139
+ return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: l2, pageCode: a2, publishVersion: n2, pageType: s2.pageType });
141
140
  }
142
141
  const C = ["button-detail", "print-label"];
143
142
  function I(e2, t2, s2) {
144
143
  var _a, _b;
145
- const o2 = t2.props && t2.props.base ? t2.props.base.prop : null, n2 = p(e2);
144
+ const n2 = t2.props && t2.props.base ? t2.props.base.prop : null, o2 = p(e2);
146
145
  let r2 = false;
147
- if (n2 && C.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
146
+ if (o2 && C.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
148
147
  const s3 = e2.fieldPermissionMap.get("all_fields");
149
148
  false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", r2 = true);
150
149
  }
151
- if (o2) {
152
- const l2 = i(o2);
150
+ if (n2) {
151
+ const l2 = i(n2);
153
152
  if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[l2] || (e2.rules[l2] = []), t2.props.rules.forEach((e3) => {
154
153
  d(e3), !s2 && e3 && e3.required && (e3.required = false);
155
- }), e2.rules[l2] = t2.props.rules), n2 && !r2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
154
+ }), e2.rules[l2] = t2.props.rules), o2 && !r2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
156
155
  const i2 = e2.fieldPermissionMap.get(l2);
157
156
  if (!s2 && e2.workflowRules && (e2.workflowRules[l2] || e2.workflowRules.rules && e2.workflowRules.rules[l2])) {
158
157
  let t3 = e2.workflowRules[l2];
@@ -1,18 +1,18 @@
1
1
  import { ref as e } from "vue";
2
- import { defineStore as a } from "pinia";
3
- import o from "./eventBus.js";
4
- const t = a("pageContextUtil", () => {
5
- const a2 = e({ systemCode: "", systemVersion: -1 }), t2 = e(false), n = e(false), u = e(false), l = e(0), v = e(0);
6
- return { pageContext: a2, setPageContext: function(e2) {
7
- a2.value = e2;
2
+ import { defineStore as o } from "pinia";
3
+ import a from "./eventBus.js";
4
+ const t = o("pageContextUtil", () => {
5
+ const o2 = e({ systemCode: "", systemVersion: -1 }), t2 = e(false), n = e(false), u = e(false), l = e(0), d = e(0);
6
+ return { pageContext: o2, setPageContext: function(e2) {
7
+ o2.value = e2;
8
8
  }, countComponentsTotalNmber: function() {
9
9
  l.value++, t2.value = false, u.value = false;
10
10
  }, countComponentsLoadedNumber: function() {
11
- v.value++, u.value = false;
12
- }, componentsTotalNmber: l, componentsLoadedNumber: v, setPageComponentsLoaded: function(e2) {
13
- t2.value = e2, t2.value && n.value && (o.$emit("pageLoaded"), u.value = true);
11
+ d.value++, u.value = false;
12
+ }, componentsTotalNmber: l, componentsLoadedNumber: d, setPageComponentsLoaded: function(e2) {
13
+ t2.value = e2, t2.value && n.value && (a.$emit("pageLoaded"), u.value = true);
14
14
  }, setFormPageDataLoadState: function(e2) {
15
- n.value = e2, t2.value && n.value && (t2.value, n.value, u.value = true);
15
+ n.value = e2, t2.value && n.value && (u.value = true);
16
16
  }, formPageDataLoaded: n, pageComponentsLoaded: t2, restorePageLoadState: function() {
17
17
  t2.value = false, n.value = false, u.value = false;
18
18
  }, pageLoaded: u, getPageLoaded: function() {
@@ -19,7 +19,7 @@ function u(t2, e2) {
19
19
  }
20
20
  function l(t2, e2, i2, s2) {
21
21
  const r2 = !(!e2.props || !e2.props.base) && e2.props.base.showOperation, u2 = e2.btnList;
22
- e2.btnList, r2 && u2 && u2.forEach((e3) => {
22
+ r2 && u2 && u2.forEach((e3) => {
23
23
  const r3 = {}, u3 = Object.assign({}, e3.props.base);
24
24
  if ("custom" === e3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === e3.isPermission || e3.isPermission + "" == "true") {
25
25
  const i3 = o(e3, t2);
@@ -1,4 +1,7 @@
1
1
  import e from "./column-line-runtime.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = o(e, [["__scopeId", "data-v-5b4e8687"]]);
2
5
  export {
3
- e as default
6
+ r as default
4
7
  };
@@ -6,11 +6,11 @@ import { doClickJumpPageEvent as k } from "../../../../utils/events/event-util.j
6
6
  import y from "../common/common-chart-header.vue.js";
7
7
  import { use as R } from "echarts/core";
8
8
  import { CanvasRenderer as j } from "echarts/renderers";
9
- import { LineChart as D, BarChart as V } from "echarts/charts";
10
- import { GridComponent as P, LegendComponent as b, TitleComponent as _, TooltipComponent as w, ToolboxComponent as T, DataZoomComponent as E } from "echarts/components";
9
+ import { LineChart as b, BarChart as D } from "echarts/charts";
10
+ import { GridComponent as V, LegendComponent as P, TitleComponent as _, TooltipComponent as w, ToolboxComponent as T, DataZoomComponent as E } from "echarts/components";
11
11
  import O from "vue-echarts";
12
12
  const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
13
- R([j, D, P, b, _, w, V, T, E]);
13
+ R([j, b, V, P, _, w, D, T, E]);
14
14
  const H = e2, N = r(null), S = r(), U = r(null), z = H.configure.props ? H.configure.props.enableDrill : null, F = H.configure.props ? H.configure.props.drillEndTrigger : null, q = H.configure.props ? H.configure.props.linkPage : null, B = {};
15
15
  if (H.configure.items) for (const e3 of H.configure.items) e3.props && e3.props.linkPage && e3.props.linkPage.jumpPageUrl ? B[e3.uuid] = e3 : q && q.jumpPageUrl && (B[e3.uuid] = H.configure);
16
16
  const G = H.configure.runtime ? H.configure.runtime : {}, J = G.style, K = G.class, L = G.dataConfig, M = G.headerInfo ? G.headerInfo : {}, Q = G.chartOption, W = H.configure.props ? H.configure.props : {}, X = f(W.customTheme);
@@ -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);
49
- }, chartOption: Q }), (e3, r2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: N }, [l(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.pageContext.showHomepageSearch]]), c(s(O), { ref_key: "chartRef", ref: S, 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(O), { 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 {
@@ -1,4 +1,7 @@
1
1
  import e from "./gauge-runtime.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const t = r(e, [["__scopeId", "data-v-8d392d9f"]]);
2
5
  export {
3
- e as default
6
+ t as default
4
7
  };
@@ -1,18 +1,18 @@
1
- import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as i, unref as s, withDirectives as p, createVNode as c, vShow as f } from "vue";
2
- import { getCustomTheme as m, initChartOption as g, exportCommonChart as h } from "../../../../utils/charts/chart-util.js";
3
- import { getChartDatasFromPage as l, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
1
+ import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as u, unref as c, withDirectives as i, createVNode as p, vShow as m } from "vue";
2
+ import { getCustomTheme as f, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
3
+ import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
4
4
  import { updateChartOption as C } from "../../../../utils/charts/chart-gauge-util.js";
5
5
  import y from "../common/common-chart-header.vue.js";
6
6
  import { use as v } from "echarts/core";
7
7
  import { CanvasRenderer as R } from "echarts/renderers";
8
- import { GaugeChart as V } from "echarts/charts";
9
- import { GridComponent as _, TitleComponent as j, TooltipComponent as w, ToolboxComponent as I } from "echarts/components";
10
- import k from "vue-echarts";
11
- const b = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: b2 }) {
12
- v([R, V, _, j, w, I]);
13
- const A = e2, H = r(null), z = r(null), D = r(null), F = A.configure.runtime ? A.configure.runtime : {}, O = F.style, P = F.class, S = F.dataConfig, T = F.headerInfo ? F.headerInfo : {}, q = F.chartOption, B = A.configure.props ? A.configure.props : {}, E = m(B.customTheme);
14
- g(A.configure, q), t(() => {
15
- const e3 = l(A.pageContext, A.configure);
8
+ import { GaugeChart as b } from "echarts/charts";
9
+ import { GridComponent as V, TitleComponent as _, TooltipComponent as j, ToolboxComponent as w } from "echarts/components";
10
+ import I from "vue-echarts";
11
+ const k = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: k2 }) {
12
+ v([R, b, V, _, j, w]);
13
+ const A = e2, H = r(null), z = r(null), D = r(null), F = A.configure.runtime ? A.configure.runtime : {}, O = F.style, P = F.class, S = F.dataConfig, T = F.headerInfo ? F.headerInfo : {}, q = F.chartOption, B = A.configure.props ? A.configure.props : {}, E = f(B.customTheme);
14
+ h(A.configure, q), t(() => {
15
+ const e3 = g(A.pageContext, A.configure);
16
16
  e3 && L(e3);
17
17
  });
18
18
  let G = T.groupValue;
@@ -26,10 +26,10 @@ const b = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }
26
26
  function L(e3) {
27
27
  e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(A.pageContext, A.configure, q, e3));
28
28
  }
29
- return x(A.pageContext, K, J), b2({ updateChartDatas: L, exportChart: function() {
30
- return h(z.value);
31
- } }), (e3, r2) => (n(), a("div", { style: i(s(O)), class: u([s(P), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: H }, [p(c(y, { ref_key: "headerRef", ref: D, headerInfo: s(T), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, s(T).showHeader || e3.pageContext.showHomepageSearch]]), c(s(k), { ref_key: "chartRef", ref: z, theme: s(E), option: s(q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
29
+ return x(A.pageContext, K, J), k2({ updateChartDatas: L, exportChart: function() {
30
+ return l(z.value);
31
+ } }), (e3, r2) => (n(), a("div", { style: u(c(O)), class: s([c(P), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: H }, [i(p(y, { ref_key: "headerRef", ref: D, headerInfo: c(T), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, c(T).showHeader || e3.pageContext.showHomepageSearch]]), p(c(I), { ref_key: "chartRef", ref: z, class: "amb-chart-content", theme: c(E), option: c(q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
32
32
  } });
33
33
  export {
34
- b as default
34
+ k as default
35
35
  };
@@ -1,4 +1,7 @@
1
1
  import e from "./pie-runtime.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const t = r(e, [["__scopeId", "data-v-961b3d1c"]]);
2
5
  export {
3
- e as default
6
+ t as default
4
7
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as u, normalizeStyle as i, unref as l, withDirectives as c, createVNode as p, vShow as s } from "vue";
1
+ import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as l, unref as i, withDirectives as c, createVNode as s, vShow as p } from "vue";
2
2
  import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as h, clearChartSelected as m, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
3
3
  import { updateChartOption as v } from "../../../../utils/charts/chart-pie-util.js";
4
4
  import { doClickJumpPageEvent as x } from "../../../../utils/events/event-util.js";
5
5
  import { getChartDatasFromPage as C, updateChartDatasources as R, monitorFieldChange as j } from "../../../../utils/page-helper-util.js";
6
6
  import k from "../common/common-chart-header.vue.js";
7
- import { use as y } from "echarts/core";
8
- import { CanvasRenderer as D } from "echarts/renderers";
9
- import { PieChart as V } from "echarts/charts";
10
- import { GridComponent as _, LegendComponent as b, TitleComponent as w, TooltipComponent as I, ToolboxComponent as P } from "echarts/components";
7
+ import { use as b } from "echarts/core";
8
+ import { CanvasRenderer as y } from "echarts/renderers";
9
+ import { PieChart as D } from "echarts/charts";
10
+ import { GridComponent as V, LegendComponent as _, TitleComponent as w, TooltipComponent as I, ToolboxComponent as P } from "echarts/components";
11
11
  import E from "vue-echarts";
12
12
  const A = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
13
- y([D, V, _, b, w, I, P]);
13
+ b([y, D, V, _, w, I, P]);
14
14
  const H = e2, S = r(null), T = r(null), U = r(null), z = H.configure.props ? H.configure.props.enableDrill : null, F = H.configure.props ? H.configure.props.drillEndTrigger : null, O = H.configure.props ? H.configure.props.linkPage : null, q = H.configure.runtime ? H.configure.runtime : {}, B = q.style, G = q.class, J = q.dataConfig, K = q.headerInfo ? q.headerInfo : {}, L = q.chartOption, M = H.configure.props ? H.configure.props : {}, N = f(M.customTheme);
15
15
  function Q(e3) {
16
16
  "clearDrill" == F ? U.value && U.value.closeDrill && U.value.closeDrill(0) : "clickEvent" == F && W();
@@ -39,7 +39,7 @@ const A = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} },
39
39
  Y(true);
40
40
  }), A2({ updateChartDatas: $, exportChart: function() {
41
41
  return d(T.value);
42
- } }), (e3, r2) => (a(), n("div", { style: i(l(B)), class: u([l(G), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: S }, [c(p(k, { ref_key: "headerRef", ref: U, headerInfo: l(K), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Q }, null, 8, ["headerInfo", "configure", "pageContext"]), [[s, l(K).showHeader || e3.pageContext.showHomepageSearch]]), p(l(E), { ref_key: "chartRef", ref: T, theme: l(N), option: l(L), autoresize: "" }, null, 8, ["theme", "option"])], 6));
42
+ } }), (e3, r2) => (n(), a("div", { style: l(i(B)), class: u([i(G), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: S }, [c(s(k, { ref_key: "headerRef", ref: U, headerInfo: i(K), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Q, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, i(K).showHeader || e3.pageContext.showHomepageSearch]]), s(i(E), { ref_key: "chartRef", ref: T, class: "amb-chart-content", theme: i(N), option: i(L), autoresize: "" }, null, 8, ["theme", "option"])], 6));
43
43
  } });
44
44
  export {
45
45
  A as default
@@ -1,4 +1,7 @@
1
1
  import r from "./radar-runtime.vue2.js";
2
+ /* empty css */
3
+ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const t = e(r, [["__scopeId", "data-v-f50eeed9"]]);
2
5
  export {
3
- r as default
6
+ t as default
4
7
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as i, unref as s, withDirectives as p, createVNode as c, vShow as f } from "vue";
2
- import { getCustomTheme as m, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
1
+ import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as u, unref as c, withDirectives as i, createVNode as p, vShow as m } from "vue";
2
+ import { getCustomTheme as f, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
3
3
  import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
4
4
  import { updateChartOption as C } from "../../../../utils/charts/chart-radar-util.js";
5
5
  import y from "../common/common-chart-header.vue.js";
6
6
  import { use as v } from "echarts/core";
7
7
  import { CanvasRenderer as R } from "echarts/renderers";
8
- import { RadarChart as V } from "echarts/charts";
9
- import { GridComponent as _, TitleComponent as j, TooltipComponent as w, ToolboxComponent as I, LegendComponent as k } from "echarts/components";
10
- import b from "vue-echarts";
8
+ import { RadarChart as b } from "echarts/charts";
9
+ import { GridComponent as V, TitleComponent as _, TooltipComponent as j, ToolboxComponent as w, LegendComponent as I } from "echarts/components";
10
+ import k from "vue-echarts";
11
11
  const A = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
12
- v([R, V, _, j, w, I, k]);
13
- const H = e2, z = r(null), D = r(null), F = r(null), O = H.configure.runtime ? H.configure.runtime : {}, P = O.style, S = O.class, T = O.dataConfig, q = O.headerInfo ? O.headerInfo : {}, B = O.chartOption, E = H.configure.props ? H.configure.props : {}, G = m(E.customTheme);
12
+ v([R, b, V, _, j, w, I]);
13
+ const H = e2, z = r(null), D = r(null), F = r(null), O = H.configure.runtime ? H.configure.runtime : {}, P = O.style, S = O.class, T = O.dataConfig, q = O.headerInfo ? O.headerInfo : {}, B = O.chartOption, E = H.configure.props ? H.configure.props : {}, G = f(E.customTheme);
14
14
  h(H.configure, B), t(() => {
15
15
  const e3 = g(H.pageContext, H.configure);
16
16
  e3 && M(e3);
@@ -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(D.value);
31
- } }), (e3, r2) => (n(), a("div", { style: i(s(P)), class: u([s(S), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: z }, [p(c(y, { ref_key: "headerRef", ref: F, headerInfo: s(q), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, s(q).showHeader || e3.pageContext.showHomepageSearch]]), c(s(b), { ref_key: "chartRef", ref: D, theme: s(G), option: s(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
31
+ } }), (e3, r2) => (n(), a("div", { style: u(c(P)), class: s([c(S), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: z }, [i(p(y, { ref_key: "headerRef", ref: F, headerInfo: c(q), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, c(q).showHeader || e3.pageContext.showHomepageSearch]]), p(c(k), { ref_key: "chartRef", ref: D, class: "amb-chart-content", theme: c(G), option: c(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
32
32
  } });
33
33
  export {
34
34
  A as default
@@ -1,4 +1,7 @@
1
1
  import t from "./scatter-runtime.vue2.js";
2
+ /* empty css */
3
+ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = e(t, [["__scopeId", "data-v-e08919a0"]]);
2
5
  export {
3
- t as default
6
+ r as default
4
7
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as u, unref as i, withDirectives as c, createVNode as p, vShow as f } from "vue";
2
- import { getCustomTheme as m, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
1
+ import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as c, unref as u, withDirectives as i, createVNode as p, vShow as m } from "vue";
2
+ import { getCustomTheme as f, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
3
3
  import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
4
4
  import { updateChartOption as C } from "../../../../utils/charts/chart-scatter-util.js";
5
5
  import y from "../common/common-chart-header.vue.js";
6
6
  import { use as v } from "echarts/core";
7
7
  import { CanvasRenderer as R } from "echarts/renderers";
8
- import { ScatterChart as V } from "echarts/charts";
9
- import { GridComponent as _, LegendComponent as j, TitleComponent as w, TooltipComponent as I, ToolboxComponent as k, DataZoomComponent as b } from "echarts/components";
8
+ import { ScatterChart as b } from "echarts/charts";
9
+ import { GridComponent as V, LegendComponent as _, TitleComponent as j, TooltipComponent as w, ToolboxComponent as I, DataZoomComponent as k } from "echarts/components";
10
10
  import A from "vue-echarts";
11
11
  const H = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
12
- v([R, V, _, j, w, I, k, b]);
13
- const z = e2, D = r(null), F = r(null), O = r(null), P = z.configure.runtime ? z.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, B = P.headerInfo ? P.headerInfo : {}, E = P.chartOption, G = z.configure.props ? z.configure.props : {}, J = m(G.customTheme);
12
+ v([R, b, V, _, j, w, I, k]);
13
+ const z = e2, D = r(null), F = r(null), O = r(null), P = z.configure.runtime ? z.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, B = P.headerInfo ? P.headerInfo : {}, E = P.chartOption, G = z.configure.props ? z.configure.props : {}, J = f(G.customTheme);
14
14
  h(z.configure, E), t(() => {
15
15
  const e3 = g(z.pageContext, z.configure);
16
16
  e3 && N(e3);
@@ -28,7 +28,7 @@ const H = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {}
28
28
  }
29
29
  return x(z.pageContext, M, L), H2({ updateChartDatas: N, exportChart: function() {
30
30
  return l(F.value);
31
- } }), (e3, r2) => (n(), a("div", { style: u(i(S)), class: s([i(T), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: D }, [c(p(y, { ref_key: "headerRef", ref: O, headerInfo: i(B), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, i(B).showHeader || e3.pageContext.showHomepageSearch]]), p(i(A), { ref_key: "chartRef", ref: F, theme: i(J), option: i(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: D }, [i(p(y, { ref_key: "headerRef", ref: O, 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: F, 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
@@ -3,6 +3,10 @@ import { getCustomFunc } from "../../../../utils/events/event-util.js";
3
3
  import { getMinValue, getMaxValue, getSumValue, getAvgValue } from "../../../../utils/charts/chart-util.js";
4
4
  class ExpressionEvaluator {
5
5
  static evaluate(e, t, r) {
6
+ if (t && t.length > 0) {
7
+ const e2 = t[t.length - 1];
8
+ e2.joinSign && (e2.joinSign = "");
9
+ }
6
10
  const o = t.map((t2) => this.createExpression(e, t2, r)).join(" ");
7
11
  return this.evaluateExpression(o);
8
12
  }
@@ -82,7 +86,7 @@ class ExpressionEvaluator {
82
86
  try {
83
87
  return eval(expression);
84
88
  } catch (e) {
85
- return console.error("表达式错误:", expression, e), false;
89
+ return false;
86
90
  }
87
91
  }
88
92
  }
@@ -123,7 +127,6 @@ function summaryStatistics(e, t, r, o) {
123
127
  const e2 = n2.apply(n2, [{ data: t, prop: r }]);
124
128
  a = e2 ? ` ${e2}` : " N/A";
125
129
  } catch (e2) {
126
- console.error("自定义函数脚本错误:", t, e2);
127
130
  }
128
131
  else a = " N/A";
129
132
  } else switch (n) {
@@ -156,8 +159,7 @@ function getHeaderCellStyleUtil(e, t, r) {
156
159
  const a2 = getCustomFunc(r.pageContext, t2.scopeFunc);
157
160
  if (a2) try {
158
161
  false !== a2.apply(a2, [{ item: t2, data: e }]) && copyStyle(o, t2);
159
- } catch (r2) {
160
- console.error("自定义函数脚本错误:", t2, e, r2);
162
+ } catch (e2) {
161
163
  }
162
164
  } else copyStyle(o, t2);
163
165
  }));
@@ -173,8 +175,7 @@ function getRowStyleUtil(e, t, r) {
173
175
  if (t3) try {
174
176
  const r2 = t3.apply(t3, [{ data: e }]);
175
177
  null != r2 && false !== r2 && copyStyle(o, a);
176
- } catch (t4) {
177
- console.error("自定义函数脚本错误:", e, t4);
178
+ } catch (e2) {
178
179
  }
179
180
  } else if (a.matchingCondition) {
180
181
  const t3 = ExpressionEvaluator.evaluate(r.pageContext, a.matchingCondition, e.row);
@@ -198,8 +199,7 @@ function getCellStyleUtil(e, t, r) {
198
199
  const t2 = getCustomFunc(r.pageContext, n.scopeFunc);
199
200
  if (t2) try {
200
201
  false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, n);
201
- } catch (t3) {
202
- console.error("自定义函数脚本错误:", e, t3);
202
+ } catch (e2) {
203
203
  }
204
204
  } else if (n.matchingCondition) {
205
205
  const t2 = ExpressionEvaluator.evaluate(r.pageContext, n.matchingCondition, e.row);
@@ -323,7 +323,7 @@ function computeFormula(itemConfs, datas, entity) {
323
323
  r += Number(e2[t]);
324
324
  });
325
325
  } catch (e2) {
326
- console.error("计算错误:", e2), r = 0;
326
+ r = 0;
327
327
  }
328
328
  totalValueMap[e] = r;
329
329
  } 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));
@@ -335,7 +335,7 @@ function computeFormula(itemConfs, datas, entity) {
335
335
  try {
336
336
  data[key] = eval(expr);
337
337
  } catch (e) {
338
- console.error(itemConfs[key] + " 计算错误, 替换后表达式为:" + expr, e), data[key] = 0;
338
+ data[key] = 0;
339
339
  }
340
340
  });
341
341
  });
@@ -375,8 +375,7 @@ function formatCustomFunc(e, t, r, o, a) {
375
375
  if (n) {
376
376
  try {
377
377
  return n.apply(n, [{ pageContext: o, configureObj: a, row: e, prop: r.props.base.prop }]);
378
- } catch (t2) {
379
- console.error("自定义函数脚本错误:", e, t2);
378
+ } catch (e2) {
380
379
  }
381
380
  return "";
382
381
  }
@@ -71,7 +71,7 @@ const B = e({ __name: "table-runtime", props: { configure: { type: Object, defau
71
71
  } else xe(o2, n2);
72
72
  }
73
73
  function xe(e3, o2) {
74
- var _a2;
74
+ var _a2, _b, _c, _d, _e, _f, _g;
75
75
  if (Oe("rowToColumn")) {
76
76
  if (e3 = H(e3, M.configure, re.value), !oe.value) {
77
77
  const o3 = function(e4, o4, n2) {
@@ -105,21 +105,21 @@ const B = e({ __name: "table-runtime", props: { configure: { type: Object, defau
105
105
  re.value = o3;
106
106
  }
107
107
  } else Oe("columnToRow") && (oe.value || (re.value = _(M.configure)), e3 = z(e3, M.configure));
108
- if (M.configure.props.dataOrigin.dataFormatting) {
108
+ if ((_b = (_a2 = M.configure.props) == null ? void 0 : _a2.dataOrigin) == null ? void 0 : _b.dataFormatting) {
109
109
  const o3 = F(M.pageContext, M.configure.props.dataOrigin.dataFormatting);
110
110
  if (o3) {
111
111
  const n2 = o3.apply(o3, [{ tableData: e3 }]);
112
112
  n2 && (e3 = n2);
113
113
  }
114
114
  }
115
- if (Object.keys(ge.value).length > 0 && e3 && e3.length > 0 && A(ge.value, e3, M.pageContext.entity), ((_a2 = M.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
115
+ if (Object.keys(ge.value).length > 0 && e3 && e3.length > 0 && A(ge.value, e3, M.pageContext.entity), ((_c = M.configure.pageination) == null ? void 0 : _c.enable) ? function(e4) {
116
116
  "frontend" === M.configure.pageination.type ? (de.value = he.length, Ie(1, M.configure.pageination.pageSize)) : "backend" === M.configure.pageination.type && (ne.value = he, M.configure.pageination.totalFrom && (de.value = e4.result[M.configure.pageination.totalFrom]));
117
- }(o2) : ne.value = e3, M.configure.props.highOrder.groupField && M.configure.props.highOrder.groupField.length > 0) {
117
+ }(o2) : ne.value = e3, ((_e = (_d = M.configure.props) == null ? void 0 : _d.highOrder) == null ? void 0 : _e.groupField) && ((_g = (_f = M.configure.props) == null ? void 0 : _f.highOrder) == null ? void 0 : _g.groupField.length) > 0) {
118
118
  const e4 = M.configure.props.highOrder.groupField;
119
119
  ne.value = function(e5, o3) {
120
- var _a3, _b;
120
+ var _a3, _b2;
121
121
  if (0 === le.value.length) return e5;
122
- const n2 = [], r2 = (_a3 = M.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), t2 = (_b = M.configure.items) == null ? void 0 : _b.filter((e6) => true === e6.props.base.groupSummary), i2 = {};
122
+ const n2 = [], r2 = (_a3 = M.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), t2 = (_b2 = M.configure.items) == null ? void 0 : _b2.filter((e6) => true === e6.props.base.groupSummary), i2 = {};
123
123
  e5.forEach((e6) => {
124
124
  const n3 = o3.map((o4) => e6[o4]).join("|");
125
125
  i2[n3] || (i2[n3] = []), i2[n3].push(e6);
@@ -226,7 +226,7 @@ const B = e({ __name: "table-runtime", props: { configure: { type: Object, defau
226
226
  e3.forEach((e4) => {
227
227
  const r2 = e4.props.base.prop, t2 = e4.props.base.name;
228
228
  let i2 = { name: r2, label: t2, i18nKey: t2 };
229
- e4.children && e4.childern.length > 0 && (i2.children = [], He(e4.children, i2.children, n2)), e4.props.format && e4.props.format.type && n2.push(e4), o2.push(i2);
229
+ e4.children && e4.children.length > 0 && (i2.children = [], He(e4.children, i2.children, n2)), e4.props.format && e4.props.format.type && n2.push(e4), o2.push(i2);
230
230
  });
231
231
  }
232
232
  return B2({ updateChartDatas: Ce, exportChart: function() {