super-page-runtime 2.3.18-tmp1 → 2.3.18-tmp3

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 (44) hide show
  1. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  2. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +49 -48
  3. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -12
  4. package/dist/es/components/runtime/utils/charts/chart-util.js +58 -56
  5. package/dist/es/components/runtime/utils/events/event-util.js +111 -111
  6. package/dist/es/components/runtime/utils/events/print-label.js +1 -0
  7. package/dist/es/components/runtime/utils/events/standard-event.js +524 -512
  8. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  9. package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
  10. package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
  11. package/dist/es/components/runtime/utils/page-init-util.js +82 -79
  12. package/dist/es/components/runtime/utils/page-store.js +10 -10
  13. package/dist/es/components/runtime/utils/table-utils.js +28 -28
  14. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +14 -10
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
  17. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
  18. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +15 -14
  19. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
  20. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -15
  21. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +86 -85
  22. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +24 -22
  23. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
  25. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +40 -38
  26. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +90 -87
  27. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +39 -38
  28. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -0
  29. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +26 -26
  30. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
  31. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +49 -49
  32. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
  33. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  34. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -0
  35. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +13 -13
  36. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +16 -16
  37. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +6 -6
  38. package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
  39. package/dist/es/components/runtime/views/super-page-dialog.vue.js +9 -9
  40. package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
  41. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  42. package/dist/es/components/runtime/views/super-page.vue2.js +172 -171
  43. package/dist/es/style.css +76 -76
  44. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- function e(e2, t) {
2
- let n = true, r = "";
1
+ function e(e2, n) {
2
+ let t = true, r = "";
3
3
  return e2.forEach((e3) => {
4
4
  if ("-1" !== e3.propDbName && -1 !== e3.propDbName) {
5
- const a = t[e3.propDbName];
6
- e3.supplementaryCharacters && e3.length ? a ? a.length > e3.length ? r += a.substring(0, e3.length) : r += a.padEnd(e3.length, e3.supplementaryCharacters) : r += "".padEnd(e3.length, e3.supplementaryCharacters) : a ? r += a : n = false;
5
+ const a = n[e3.propDbName];
6
+ e3.supplementaryCharacters && e3.length ? a ? a.length > e3.length ? r += a.substring(0, e3.length) : r += a.padEnd(e3.length, e3.supplementaryCharacters) : r += "".padEnd(e3.length, e3.supplementaryCharacters) : a ? r += a : t = false;
7
7
  } else r += e3.fixedValue;
8
- }), n ? r : null;
8
+ }), console.log("跟据规则生成条码:" + r), t ? r : null;
9
9
  }
10
10
  export {
11
11
  e as generateCodeByRule
@@ -1,9 +1,9 @@
1
- import { getValueFromSource as o, setValueForVariableName as t } from "../page-helper-util.js";
2
- import { deepCopy as r } from "../common-util.js";
3
- import { setDefaultGrid as s, CommonName as e, caculateFormulaValue as l, executeChartFormula as n, sortDatas as p, limitDatas as i } from "./chart-util.js";
1
+ import { getValueFromSource as o, setValueForVariableName as e } from "../page-helper-util.js";
2
+ import { deepCopy as s } from "../common-util.js";
3
+ import { setDefaultGrid as r, CommonName as t, caculateFormulaValue as l, executeChartFormula as n, sortDatas as p, limitDatas as i } from "./chart-util.js";
4
4
  function u(u2, c, a, f) {
5
5
  if (!f || !f.result) return;
6
- s(a);
6
+ r(a);
7
7
  const g = f && f.result ? f.result : {};
8
8
  let m = f && f.groupValue ? f.groupValue : void 0;
9
9
  const h = c.serviceDataField;
@@ -14,67 +14,68 @@ function u(u2, c, a, f) {
14
14
  m = [];
15
15
  for (const o2 of y) m.push(o2.group);
16
16
  }
17
- const x = {}, v = [], E = [];
18
- for (const o2 of y) x[o2.group] = o2.target, o2.target && !v.includes(o2.target) && (v.push(o2.target), m.includes(o2.group) && E.push(o2.target));
19
- let F = c.props ? c.props.mulGroupShow : "";
20
- F = "break" == F ? "\r\n" : " ";
21
- for (const t2 of d) {
22
- if (!t2) continue;
23
- const r2 = [];
24
- for (const s3 of m) {
25
- const e2 = x[s3], l2 = o(t2, e2, void 0);
26
- l2 && r2.push(l2);
17
+ const v = {}, x = [], F = [];
18
+ for (const o2 of y) v[o2.group] = o2.target, o2.target && !x.includes(o2.target) && (x.push(o2.target), m.includes(o2.group) && F.push(o2.target));
19
+ let E = c.props ? c.props.mulGroupShow : "";
20
+ E = "break" == E ? "\r\n" : " ", console.log("groupValue", m);
21
+ for (const e2 of d) {
22
+ if (!e2) continue;
23
+ const s2 = [];
24
+ for (const r3 of m) {
25
+ const t2 = v[r3], l2 = o(e2, t2, void 0);
26
+ l2 && s2.push(l2);
27
27
  }
28
- const s2 = r2.join(F);
29
- t2[e.X_FIELD_NAME] = s2;
28
+ const r2 = s2.join(E);
29
+ e2[t.X_FIELD_NAME] = r2;
30
30
  }
31
31
  const S = c.items ? c.items : [];
32
- if (0 == S.length) return;
32
+ if (0 == S.length) return void console.log("饼图的系列为空,操作失败!", c);
33
33
  const _ = c.props ? c.props : {};
34
34
  let A = _.yaxisField;
35
- if (S[0].props.yaxisField = A, S[0].props.yaxisSource = _.yaxisSource, S[0].props.formula = _.formula, "formula" === _.yaxisSource) {
36
- const t2 = [], r2 = l(S, d, t2);
37
- let s2 = _.formula ? _.formula : "";
38
- for (const o2 in r2) s2 = s2.replace(new RegExp(o2.replace("$", "\\$"), "g"), r2[o2]);
39
- A = e.Y_TEMP_NAME;
35
+ if (console.log("valueField", A), S[0].props.yaxisField = A, S[0].props.yaxisSource = _.yaxisSource, S[0].props.formula = _.formula, "formula" === _.yaxisSource) {
36
+ const e2 = [], s2 = l(S, d, e2);
37
+ let r2 = _.formula ? _.formula : "";
38
+ for (const o2 in s2) r2 = r2.replace(new RegExp(o2.replace("$", "\\$"), "g"), s2[o2]);
39
+ A = t.Y_TEMP_NAME;
40
40
  const p2 = {};
41
- for (const r3 of d) {
42
- if (!r3) continue;
43
- for (const s3 of t2) {
44
- const t3 = o(r3, s3, void 0);
45
- let e3 = p2[s3];
46
- void 0 === t3 || isNaN(t3) || (void 0 === e3 ? e3 = t3 : e3 += t3), p2[s3] = e3;
41
+ for (const s3 of d) {
42
+ if (!s3) continue;
43
+ for (const r3 of e2) {
44
+ const e3 = o(s3, r3, void 0);
45
+ let t3 = p2[r3];
46
+ void 0 === e3 || isNaN(e3) || (void 0 === t3 ? t3 = e3 : t3 += e3), p2[r3] = t3;
47
47
  }
48
- const e2 = n(s2, p2, r3, u2);
49
- r3[A] = e2;
48
+ console.log("formula", r2);
49
+ const t2 = n(r2, p2, s3, u2);
50
+ console.log("formula-result", t2), s3[A] = t2;
50
51
  }
51
52
  }
52
- S[0].props.yaxisField = A, S[0].props.yaxisSource = "", p(u2, c, d), d = i(u2, c, d, v, [A]);
53
+ S[0].props.yaxisField = A, S[0].props.yaxisSource = "", p(u2, c, d), d = i(u2, c, d, x, [A]);
53
54
  const D = [], M = [];
54
- for (const t2 of d) {
55
- if (!t2) continue;
56
- D.push(t2[e.X_FIELD_NAME]);
57
- const r2 = o(t2, A, void 0);
58
- M.push(r2);
55
+ for (const e2 of d) {
56
+ if (!e2) continue;
57
+ D.push(e2[t.X_FIELD_NAME]);
58
+ const s2 = o(e2, A, void 0);
59
+ M.push(s2);
59
60
  }
60
61
  const N = c.defaultSeries;
61
62
  let j = N[0].pieColors;
62
63
  j = j || [];
63
- let b = N[0].pieColorMap;
64
- b = b || {};
65
- const w = [];
64
+ let V = N[0].pieColorMap;
65
+ V = V || {};
66
+ const b = [];
66
67
  for (let o2 = 0; o2 < D.length && o2 < M.length; o2++) {
67
- const t2 = { value: M[o2], name: D[o2] };
68
- if (o2 < j.length || b[t2.name]) {
69
- let r2 = b[t2.name];
70
- r2 || (r2 = j[o2]), r2 && (t2.itemStyle = { color: r2 });
68
+ const e2 = { value: M[o2], name: D[o2] };
69
+ if (o2 < j.length || V[e2.name]) {
70
+ let s2 = V[e2.name];
71
+ s2 || (s2 = j[o2]), s2 && (e2.itemStyle = { color: s2 });
71
72
  }
72
- w.push(t2);
73
+ b.push(e2);
73
74
  }
74
- const I = r(N);
75
- I[0].data = w, a.series = [I[0]];
76
- const V = c.props ? c.props.selGroupVariable : null;
77
- !(c.props ? c.props.enableDrill : null) && V && (c.highlightInfos = [], t(u2.entity, V, null)), c.groupFields = E, c.cacheDatas = d, c.rawResult = f;
75
+ const w = s(N);
76
+ w[0].data = b, a.series = [w[0]];
77
+ const I = c.props ? c.props.selGroupVariable : null;
78
+ !(c.props ? c.props.enableDrill : null) && I && (c.highlightInfos = [], e(u2.entity, I, null)), c.groupFields = F, c.cacheDatas = d, c.rawResult = f;
78
79
  }
79
80
  export {
80
81
  u as updateChartOption
@@ -1,13 +1,13 @@
1
1
  import { getValueFromSource as o } from "../page-helper-util.js";
2
2
  import { deepCopy as s } from "../common-util.js";
3
3
  import { setDefaultGrid as i, caculateFormulaValue as e, executeChartFormula as r } from "./chart-util.js";
4
- function t(t2, a, l, u) {
4
+ function t(t2, l, a, u) {
5
5
  if (!u || !u.result) return;
6
- i(l);
7
- const f = u && u.result ? u.result : {}, c = a.serviceDataField;
6
+ i(a);
7
+ const c = u && u.result ? u.result : {}, f = l.serviceDataField;
8
8
  let d = null;
9
- c ? d = f[c] : f && (d = Array.isArray(f) ? f : [f]), d || (d = []);
10
- const n = a.items ? a.items : [], p = [], m = {};
9
+ f ? d = c[f] : c && (d = Array.isArray(c) ? c : [c]), d || (d = []);
10
+ const n = l.items ? l.items : [], p = [], m = {};
11
11
  for (const o2 of n) {
12
12
  const s2 = o2.props ? o2.props : {}, i2 = o2.props ? o2.style : {}, e2 = s2.xaxisField, r2 = s2.sizeField, t3 = { uuid: o2.uuid, xaxisField: e2, yaxisField: s2.yaxisField, yaxisSource: s2.yaxisSource, formula: s2.formula, sizeField: r2, symbolSize: i2.symbolSize, data: [] };
13
13
  p.push(t3), m[t3.uuid] = t3;
@@ -26,20 +26,22 @@ function t(t2, a, l, u) {
26
26
  void 0 === e2 || isNaN(e2) || (void 0 === r2 ? r2 = e2 : r2 += e2), F[i2] = r2;
27
27
  }
28
28
  for (const i2 of p) {
29
- const e2 = i2.data, a2 = [];
30
- if (a2.push(o(s2, i2.xaxisField, void 0)), "formula" === i2.yaxisSource) {
29
+ const e2 = i2.data, l2 = [];
30
+ if (l2.push(o(s2, i2.xaxisField, void 0)), "formula" === i2.yaxisSource) {
31
31
  const o2 = r(i2.formula, F, s2, t2);
32
- a2.push(o2);
33
- } else a2.push(o(s2, i2.yaxisField, void 0));
34
- i2.sizeField ? a2.push(o(s2, i2.xaxisField, void 0)) : a2.push(i2.symbolSize), e2.push(a2);
32
+ l2.push(o2);
33
+ } else l2.push(o(s2, i2.yaxisField, void 0));
34
+ i2.sizeField ? l2.push(o(s2, i2.xaxisField, void 0)) : l2.push(i2.symbolSize), e2.push(l2);
35
35
  }
36
36
  }
37
- const h = a.defaultSeries, S = s(h);
37
+ const h = l.defaultSeries;
38
+ console.log("defaultSeries", h);
39
+ const S = s(h);
38
40
  for (const o2 of S) {
39
41
  const s2 = m[o2.uuid];
40
42
  o2.data = s2.data;
41
43
  }
42
- l.series = S, a.cacheDatas = d, a.rawResult = u;
44
+ a.series = S, l.cacheDatas = d, l.rawResult = u;
43
45
  }
44
46
  export {
45
47
  t as updateChartOption
@@ -2,7 +2,7 @@ import t from "../../../../assets/chart-themes/theme1.js";
2
2
  import e from "../../../../assets/chart-themes/theme2.js";
3
3
  import n from "../../../../assets/chart-themes/theme3.js";
4
4
  import { getDefaultValue as i } from "../page-init-util.js";
5
- import { getValueFromSource as s, setValueForVariableName as o, getParamNames as r, formatVariableValue as l, getValueFromVariable as a, setVariableValue as c } from "../page-helper-util.js";
5
+ import { getValueFromSource as o, setValueForVariableName as s, getParamNames as r, formatVariableValue as l, getValueFromVariable as a, setVariableValue as c } from "../page-helper-util.js";
6
6
  import { appendDefaultMethods as f } from "../events/event-util.js";
7
7
  var u = ((t2) => (t2.X_FIELD_NAME = "__x", t2.Y_TEMP_NAME = "__y", t2))(u || {});
8
8
  const d = { theme1: t, theme2: e, theme3: n };
@@ -12,11 +12,11 @@ function p(t2) {
12
12
  function h() {
13
13
  return [{ value: "theme1", label: "主题1" }, { value: "theme2", label: "主题2" }, { value: "theme3", label: "主题3" }];
14
14
  }
15
- function m(t2, e2, n2, i2, s2) {
16
- return function(o2) {
17
- let r2 = o2 == null ? void 0 : o2.value;
18
- if (s2 && (r2 = o2), null == r2 || null == r2) return r2;
19
- if (Array.isArray(r2)) return r2;
15
+ function g(t2, e2, n2, i2, o2) {
16
+ return function(s2) {
17
+ let r2 = s2 == null ? void 0 : s2.value;
18
+ if (o2 && (r2 = s2), null == r2 || null == r2) return r2;
19
+ if (Array.isArray(r2)) return console.log("numformatter is array", r2), r2;
20
20
  if (isNaN(r2) || !t2 || !t2.indexOf) return r2;
21
21
  if (t2.indexOf("precision") > -1) {
22
22
  let t3 = parseInt(e2);
@@ -28,34 +28,36 @@ function m(t2, e2, n2, i2, s2) {
28
28
  return t2.indexOf("append") > -1 && i2 && (a2 = i2), l2 + r2.toLocaleString() + a2;
29
29
  };
30
30
  }
31
- function g(t2, e2) {
31
+ function m(t2, e2) {
32
32
  if (!e2) return;
33
- if (e2.tooltipFormatterArgs && (e2.tooltip || (e2.tooltip = {}), e2.tooltip.valueFormatter = m.apply(e2, e2.tooltipFormatterArgs)), e2.series) {
33
+ if (e2.tooltipFormatterArgs && (e2.tooltip || (e2.tooltip = {}), e2.tooltip.valueFormatter = g.apply(e2, e2.tooltipFormatterArgs)), e2.series) {
34
34
  const n3 = t2.props ? t2.props.enableDrill : null;
35
- for (const i3 of e2.series) e2.radar || (i3.data = []), i3.labelFormatterArgs && (i3.label || (i3.label = {}), i3.label.formatter = m.apply(i3, i3.labelFormatterArgs)), !n3 && t2.clickSet && t2.clickSet.selected && i3.emphasis && (i3.emphasis.disabled = false), "pie" === i3.type && t2.clickSet && t2.clickSet.selected && (t2.clickSet.multiple ? i3.selectedMode = "multiple" : i3.selectedMode = "single");
35
+ for (const i3 of e2.series) e2.radar || (i3.data = []), i3.labelFormatterArgs && (i3.label || (i3.label = {}), i3.label.formatter = g.apply(i3, i3.labelFormatterArgs)), !n3 && t2.clickSet && t2.clickSet.selected && i3.emphasis && (i3.emphasis.disabled = false), "pie" === i3.type && t2.clickSet && t2.clickSet.selected && (t2.clickSet.multiple ? i3.selectedMode = "multiple" : i3.selectedMode = "single");
36
36
  }
37
37
  if (e2.radar) for (const t3 of e2.radar) t3.indicator = [];
38
38
  const n2 = e2.series;
39
39
  t2.defaultSeries = n2;
40
40
  const i2 = e2.xAxis;
41
41
  i2 && i2.length > 0 && i2[0].data && (i2[0].data = []), t2.defaultXaxis = i2;
42
- const s2 = e2.yAxis;
43
- if (s2) for (const t3 of s2) t3.data && (t3.data = []), "auto" === t3._dataMin && (t3.min = function(t4) {
42
+ const o2 = e2.yAxis;
43
+ if (o2) for (const t3 of o2) t3.data && (t3.data = []), "auto" === t3._dataMin && (t3.min = function(t4) {
44
44
  if (t4.min) return 10 * Math.floor(t4.min / 10);
45
45
  }), "auto" === t3._dataMax && (t3.max = function(t4) {
46
46
  if (t4.max) return 10 * Math.ceil(t4.max / 10);
47
47
  });
48
- t2.defaultYaxis = s2;
48
+ t2.defaultYaxis = o2;
49
49
  }
50
50
  function x(t2, e2, n2) {
51
51
  if (!(n2 && e2 && e2.clickSet && t2)) return;
52
52
  const i2 = e2.clickSet;
53
- n2.on("click", function(s2) {
54
- let o2 = e2.highlightInfos ? e2.highlightInfos : [], r2 = -1;
55
- if (o2) {
53
+ n2.on("click", function(o2) {
54
+ let s2 = e2.highlightInfos ? e2.highlightInfos : [];
55
+ console.log("highlightInfos", s2, o2);
56
+ let r2 = -1;
57
+ if (s2) {
56
58
  const t3 = [];
57
- for (let l2 = 0; l2 < o2.length; l2++) {
58
- const a2 = o2[l2], c2 = a2.seriesIndex === s2.seriesIndex && a2.dataIndex === s2.dataIndex;
59
+ for (let l2 = 0; l2 < s2.length; l2++) {
60
+ const a2 = s2[l2], c2 = a2.seriesIndex === o2.seriesIndex && a2.dataIndex === o2.dataIndex;
59
61
  if (c2 || !i2.multiple) {
60
62
  if (i2.selected) {
61
63
  const t4 = "chart-pie" === e2.name ? "unselect" : "downplay";
@@ -64,24 +66,24 @@ function x(t2, e2, n2) {
64
66
  } else t3.push(a2);
65
67
  c2 && (r2 = l2);
66
68
  }
67
- o2 = t3;
69
+ s2 = t3;
68
70
  }
69
71
  if (-1 === r2) {
70
72
  if (i2.selected) {
71
73
  const t3 = "chart-pie" === e2.name ? "select" : "highlight";
72
- n2.dispatchAction({ type: t3, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
74
+ n2.dispatchAction({ type: t3, seriesIndex: o2.seriesIndex, dataIndex: o2.dataIndex });
73
75
  }
74
- o2.push({ seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
76
+ s2.push({ seriesIndex: o2.seriesIndex, dataIndex: o2.dataIndex });
75
77
  }
76
- e2.highlightInfos = o2, b(t2, e2);
78
+ e2.highlightInfos = s2, b(t2, e2);
77
79
  });
78
80
  }
79
81
  function I(t2, e2, n2) {
80
82
  if (!n2 || !e2 || !t2) return;
81
83
  const i2 = e2.highlightInfos ? e2.highlightInfos : [];
82
84
  for (let t3 = 0; t3 < i2.length; t3++) {
83
- const s2 = i2[t3], o2 = "chart-pie" === e2.name ? "unselect" : "downplay";
84
- n2.dispatchAction({ type: o2, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
85
+ const o2 = i2[t3], s2 = "chart-pie" === e2.name ? "unselect" : "downplay";
86
+ n2.dispatchAction({ type: s2, seriesIndex: o2.seriesIndex, dataIndex: o2.dataIndex });
85
87
  }
86
88
  e2.highlightInfos = [], b(t2, e2);
87
89
  }
@@ -95,18 +97,18 @@ function b(t2, e2) {
95
97
  if (!e3.fieldName || !e3.variable) continue;
96
98
  const i3 = [];
97
99
  for (const t3 of a2) {
98
- const n3 = s(t3, e3.fieldName, void 0);
100
+ const n3 = o(t3, e3.fieldName, void 0);
99
101
  null != n3 && i3.push(n3);
100
102
  }
101
- n2.multiple ? o(t2.entity, e3.variable, i3) : o(t2.entity, e3.variable, i3.length > 0 ? i3[0] : void 0);
103
+ n2.multiple ? s(t2.entity, e3.variable, i3) : s(t2.entity, e3.variable, i3.length > 0 ? i3[0] : void 0);
102
104
  }
103
105
  }
104
106
  function v(t2, e2, n2) {
105
- const i2 = e2.items ? e2.items : [], o2 = e2.props ? e2.props.orderByTarget : "";
107
+ const i2 = e2.items ? e2.items : [], s2 = e2.props ? e2.props.orderByTarget : "";
106
108
  let r2 = null;
107
- if ("x" == o2 || "X" == o2) r2 = "__x";
108
- else if (o2) {
109
- for (const t3 of i2) if (t3.uuid == o2) {
109
+ if ("x" == s2 || "X" == s2) r2 = "__x";
110
+ else if (s2) {
111
+ for (const t3 of i2) if (t3.uuid == s2) {
110
112
  const e3 = t3.props ? t3.props : {}, n3 = e3.yaxisSource, i3 = e3.yaxisField;
111
113
  if (i3 && (!n3 || "variable" == n3)) {
112
114
  r2 = i3;
@@ -122,11 +124,11 @@ function v(t2, e2, n2) {
122
124
  c2 = l(t2, n3);
123
125
  }
124
126
  c2 = "desc" == c2 || "DESC" == c2 ? "desc" : "asc", n2.sort((t3, e3) => {
125
- const n3 = s(t3, r2, void 0), i3 = s(e3, r2, void 0);
127
+ const n3 = o(t3, r2, void 0), i3 = o(e3, r2, void 0);
126
128
  return "desc" === c2 ? i3 - n3 : n3 - i3;
127
129
  });
128
130
  }
129
- function N(t2, e2, n2, i2, o2) {
131
+ function N(t2, e2, n2, i2, s2) {
130
132
  if (!n2) return n2;
131
133
  const r2 = e2.props ? e2.props : {};
132
134
  if (!r2.limitQuantity) return n2;
@@ -134,7 +136,7 @@ function N(t2, e2, n2, i2, o2) {
134
136
  if (r2.itemNumVariable ? (a2 = l(t2, r2.itemNumVariable), a2 = parseInt(a2)) : a2 = r2.itemNumFix ? r2.itemNumFix : 10, null == a2 || null == a2 || isNaN(a2)) return n2;
135
137
  if (n2.length < a2) return n2;
136
138
  const c2 = r2.overItemAlias, f2 = [], u2 = {};
137
- i2 = i2 || [], o2 = o2 || [];
139
+ i2 = i2 || [], s2 = s2 || [];
138
140
  for (let t3 = 0; t3 < n2.length; t3++) {
139
141
  const e3 = n2[t3];
140
142
  if (t3 < a2) f2.push(e3);
@@ -142,14 +144,14 @@ function N(t2, e2, n2, i2, o2) {
142
144
  if (!c2) break;
143
145
  for (const t4 of i2) {
144
146
  if (!t4) continue;
145
- let n3 = s(e3, t4, void 0);
147
+ let n3 = o(e3, t4, void 0);
146
148
  n3 = null == n3 || null == n3 ? "" : n3, u2[t4] || (u2[t4] = []);
147
149
  const i3 = u2[t4];
148
150
  i3.includes(n3) || i3.push(n3);
149
151
  }
150
- for (const t4 of o2) {
152
+ for (const t4 of s2) {
151
153
  if (!t4) continue;
152
- const n3 = s(e3, t4, void 0);
154
+ const n3 = o(e3, t4, void 0);
153
155
  if (isNaN(n3)) continue;
154
156
  const i3 = u2[t4];
155
157
  isNaN(i3) ? u2[t4] = n3 : u2[t4] = n3 + i3;
@@ -160,11 +162,11 @@ function N(t2, e2, n2, i2, o2) {
160
162
  }
161
163
  function y(t2, e2, n2) {
162
164
  const i2 = {};
163
- for (const s2 of t2) {
164
- const t3 = s2.props ? s2.props : {};
165
+ for (const o2 of t2) {
166
+ const t3 = o2.props ? o2.props : {};
165
167
  if ("formula" === t3.yaxisSource) {
166
- const s3 = r(t3.formula);
167
- for (const t4 of s3) if (!(t4 in i2)) {
168
+ const o3 = r(t3.formula);
169
+ for (const t4 of o3) if (!(t4 in i2)) {
168
170
  if (t4.startsWith("${min.")) i2[t4] = S(e2, t4.substring(6, t4.length - 1));
169
171
  else if (t4.startsWith("${max.")) i2[t4] = F(e2, t4.substring(6, t4.length - 1));
170
172
  else if (t4.startsWith("${sum.")) i2[t4] = _(e2, t4.substring(6, t4.length - 1));
@@ -181,7 +183,7 @@ function y(t2, e2, n2) {
181
183
  function S(t2, e2) {
182
184
  let n2;
183
185
  for (const i2 of t2) {
184
- const t3 = parseFloat(s(i2, e2, null));
186
+ const t3 = parseFloat(o(i2, e2, null));
185
187
  (void 0 === n2 || !isNaN(t3) && t3 < n2) && (n2 = t3);
186
188
  }
187
189
  return n2;
@@ -189,7 +191,7 @@ function S(t2, e2) {
189
191
  function F(t2, e2) {
190
192
  let n2;
191
193
  for (const i2 of t2) {
192
- const t3 = parseFloat(s(i2, e2, null));
194
+ const t3 = parseFloat(o(i2, e2, null));
193
195
  (void 0 === n2 || !isNaN(t3) && t3 > n2) && (n2 = t3);
194
196
  }
195
197
  return n2;
@@ -197,7 +199,7 @@ function F(t2, e2) {
197
199
  function _(t2, e2) {
198
200
  let n2;
199
201
  for (const i2 of t2) {
200
- const t3 = parseFloat(s(i2, e2, null));
202
+ const t3 = parseFloat(o(i2, e2, null));
201
203
  void 0 === n2 ? n2 = t3 : isNaN(t3) || (n2 += t3);
202
204
  }
203
205
  return n2;
@@ -209,10 +211,10 @@ function A(t2, e2) {
209
211
  function k(t2, e2, n2, i2) {
210
212
  if (!t2) return;
211
213
  if (e2) for (const n3 in e2) t2 = t2.replace(new RegExp("\\${add." + n3 + "}", "g"), e2[n3]);
212
- const o2 = r(t2);
213
- for (const e3 of o2) {
214
- let o3 = null;
215
- o3 = e3.startsWith("${row.") ? s(n2, e3.substring(6, e3.length - 1), null) : a(i2.entity, e3), t2 = t2.replace(new RegExp(e3.replace("$", "\\$"), "g"), o3);
214
+ const s2 = r(t2);
215
+ for (const e3 of s2) {
216
+ let s3 = null;
217
+ s3 = e3.startsWith("${row.") ? o(n2, e3.substring(6, e3.length - 1), null) : a(i2.entity, e3), t2 = t2.replace(new RegExp(e3.replace("$", "\\$"), "g"), s3);
216
218
  }
217
219
  t2.includes("return ") || (t2 = "return " + t2);
218
220
  const l2 = new Function("params", t2);
@@ -222,26 +224,26 @@ function M(t2, e2) {
222
224
  if (!t2 || !t2.$el) return;
223
225
  const n2 = t2.$el.getElementsByTagName("canvas");
224
226
  if (!n2 || 0 === n2.length) return;
225
- const i2 = n2[0], s2 = i2.width + ":" + i2.height;
226
- return { isTable: false, fileContent: i2.toDataURL(), fileSize: s2, title: e2 == null ? void 0 : e2.title };
227
+ const i2 = n2[0], o2 = i2.width + ":" + i2.height;
228
+ return { isTable: false, fileContent: i2.toDataURL(), fileSize: o2, title: e2 == null ? void 0 : e2.title };
227
229
  }
228
230
  function $(t2, e2, n2) {
229
- const s2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS");
231
+ const o2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS");
230
232
  let r2 = true;
231
- if (s2) {
232
- const t3 = JSON.parse(s2);
233
+ if (o2) {
234
+ const t3 = JSON.parse(o2);
233
235
  if (t3[n2]) {
234
236
  const i2 = t3[n2];
235
237
  if (Object.keys(i2).length > 0) {
236
238
  r2 = false;
237
- for (const t4 in i2) null !== i2[t4] && void 0 !== i2[t4] && o(e2.entity, t4, i2[t4]);
239
+ for (const t4 in i2) null !== i2[t4] && void 0 !== i2[t4] && s(e2.entity, t4, i2[t4]);
238
240
  }
239
241
  }
240
242
  }
241
243
  if (r2 && t2) {
242
244
  for (const n3 of t2) if (n3.prop && n3.value) {
243
- const t3 = i(e2, n3.value, "input-text", false), s3 = n3.prop.substring(2, n3.prop.length - 1).split(".");
244
- null != t3 && c(e2.entity, s3, t3);
245
+ const t3 = i(e2, n3.value, "input-text", false), o3 = n3.prop.substring(2, n3.prop.length - 1).split(".");
246
+ null != t3 && c(e2.entity, o3, t3);
245
247
  }
246
248
  }
247
249
  }
@@ -262,9 +264,9 @@ export {
262
264
  h as getCustomThemeOptions,
263
265
  F as getMaxValue,
264
266
  S as getMinValue,
265
- m as getNumFormatter,
267
+ g as getNumFormatter,
266
268
  _ as getSumValue,
267
- g as initChartOption,
269
+ m as initChartOption,
268
270
  N as limitDatas,
269
271
  x as monitorChartClickToVariable,
270
272
  w as setDefaultGrid,