super-page-runtime 2.3.33-sit1 → 2.3.33

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/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +47 -46
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +3 -1
  5. package/dist/es/components/runtime/utils/charts/chart-util.js +46 -44
  6. package/dist/es/components/runtime/utils/events/event-util.d.ts +1 -0
  7. package/dist/es/components/runtime/utils/events/event-util.js +140 -128
  8. package/dist/es/components/runtime/utils/events/print-label.js +27 -25
  9. package/dist/es/components/runtime/utils/events/standard-event.js +738 -726
  10. package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
  11. package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
  12. package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
  13. package/dist/es/components/runtime/utils/page-init-util.js +130 -125
  14. package/dist/es/components/runtime/utils/page-store.js +21 -21
  15. package/dist/es/components/runtime/utils/table-utils.js +4 -4
  16. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  17. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  18. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  19. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  21. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +14 -10
  22. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  23. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +11 -9
  24. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
  26. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +15 -14
  27. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
  28. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -15
  29. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
  30. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +69 -68
  31. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  32. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +27 -23
  33. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  34. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  35. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  37. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +3 -1
  38. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  39. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  40. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  41. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
  42. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
  43. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +29 -26
  44. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +119 -116
  45. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  46. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +46 -45
  47. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -3
  48. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  49. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +28 -28
  50. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +35 -35
  51. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  52. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  53. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +9 -9
  54. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  55. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -56
  56. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +12 -10
  57. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +12 -11
  58. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +4 -3
  59. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -15
  60. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  61. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +53 -46
  62. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  63. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  64. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  65. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  66. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  67. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +18 -16
  68. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
  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.vue.js +1 -1
  72. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +32 -27
  73. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  74. package/dist/es/components/runtime/views/home-chart.vue.js +9 -9
  75. package/dist/es/components/runtime/views/super-page-dialog.vue.js +5 -4
  76. package/dist/es/components/runtime/views/super-page.vue2.js +183 -182
  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 +15 -3
  80. package/package.json +2 -2
@@ -3,31 +3,31 @@ import e from "../../../../assets/chart-themes/gauge-theme.js";
3
3
  import i from "../../../../assets/chart-themes/pie-theme.js";
4
4
  import n from "../../../../assets/chart-themes/radar-theme.js";
5
5
  import s from "../../../../assets/chart-themes/scatter-theme.js";
6
- import { getDefaultValue as r } from "../page-init-util.js";
7
- import { getValueFromSource as o, setValueForVariableName as a, getParamNames as l, getValueFromVariable as c, formatVariableValue as f, setVariableValue as u } from "../page-helper-util.js";
6
+ import { getDefaultValue as o } from "../page-init-util.js";
7
+ import { getValueFromSource as r, setValueForVariableName as a, getParamNames as l, getValueFromVariable as c, formatVariableValue as f, setVariableValue as u } from "../page-helper-util.js";
8
8
  import { getI18n as d } from "agilebuilder-ui/src/utils/util";
9
9
  import { appendDefaultMethods as p } from "../events/event-util.js";
10
10
  var h = ((t2) => (t2.X_FIELD_NAME = "__x", t2.Y_TEMP_NAME = "__y", t2))(h || {});
11
- function g(r2, o2 = "bar") {
12
- return "bar" === o2 ? t[r2] : "gauge" === o2 ? e[r2] : "pie" === o2 ? i[r2] : "radar" === o2 ? n[r2] : "scatter" === o2 ? s[r2] : t[r2];
11
+ function g(o2, r2 = "bar") {
12
+ return "bar" === r2 ? t[o2] : "gauge" === r2 ? e[o2] : "pie" === r2 ? i[o2] : "radar" === r2 ? n[o2] : "scatter" === r2 ? s[o2] : t[o2];
13
13
  }
14
14
  function m() {
15
15
  return [{ value: "theme1", label: "主题1" }, { value: "theme2", label: "主题2" }, { value: "theme3", label: "主题3" }];
16
16
  }
17
17
  function x(t2, e2, i2, n2, s2) {
18
- return function(r2) {
19
- let o2 = r2 == null ? void 0 : r2.value;
20
- if (s2 && (o2 = r2), null == o2 || null == o2) return o2;
21
- if (Array.isArray(o2)) return o2;
22
- if (isNaN(o2) || !t2 || !t2.indexOf) return o2;
18
+ return function(o2) {
19
+ let r2 = o2 == null ? void 0 : o2.value;
20
+ if (s2 && (r2 = o2), null == r2 || null == r2) return r2;
21
+ if (Array.isArray(r2)) return console.log("numformatter is array", r2), r2;
22
+ if (isNaN(r2) || !t2 || !t2.indexOf) return r2;
23
23
  if (t2.indexOf("precision") > -1) {
24
24
  let t3 = parseInt(e2);
25
- (null == t3 || isNaN(t3)) && (t3 = 2), o2 = parseFloat(parseFloat(o2).toFixed(t3));
25
+ (null == t3 || isNaN(t3)) && (t3 = 2), r2 = parseFloat(parseFloat(r2).toFixed(t3));
26
26
  }
27
27
  let a2 = "";
28
28
  t2.indexOf("prefix") > -1 && i2 && (a2 = i2);
29
29
  let l2 = "";
30
- return t2.indexOf("append") > -1 && n2 && (l2 = n2), a2 + o2.toLocaleString() + l2;
30
+ return t2.indexOf("append") > -1 && n2 && (l2 = n2), a2 + r2.toLocaleString() + l2;
31
31
  };
32
32
  }
33
33
  function b(t2, e2) {
@@ -53,37 +53,39 @@ function I(t2, e2, i2) {
53
53
  if (!(i2 && e2 && e2.clickSet && t2)) return;
54
54
  const n2 = e2.clickSet;
55
55
  i2.on("click", function(s2) {
56
- let r2 = e2.highlightInfos ? e2.highlightInfos : [], o2 = -1;
57
- if (r2) {
56
+ let o2 = e2.highlightInfos ? e2.highlightInfos : [];
57
+ console.log("highlightInfos", o2, s2);
58
+ let r2 = -1;
59
+ if (o2) {
58
60
  const t3 = [];
59
- for (let a2 = 0; a2 < r2.length; a2++) {
60
- const l2 = r2[a2], c2 = l2.seriesIndex === s2.seriesIndex && l2.dataIndex === s2.dataIndex;
61
+ for (let a2 = 0; a2 < o2.length; a2++) {
62
+ const l2 = o2[a2], c2 = l2.seriesIndex === s2.seriesIndex && l2.dataIndex === s2.dataIndex;
61
63
  if (c2 || !n2.multiple) {
62
64
  if (n2.selected) {
63
65
  const t4 = "chart-pie" === e2.name ? "unselect" : "downplay";
64
66
  i2.dispatchAction({ type: t4, seriesIndex: l2.seriesIndex, dataIndex: l2.dataIndex });
65
67
  }
66
68
  } else t3.push(l2);
67
- c2 && (o2 = a2);
69
+ c2 && (r2 = a2);
68
70
  }
69
- r2 = t3;
71
+ o2 = t3;
70
72
  }
71
- if (-1 === o2) {
73
+ if (-1 === r2) {
72
74
  if (n2.selected) {
73
75
  const t3 = "chart-pie" === e2.name ? "select" : "highlight";
74
76
  i2.dispatchAction({ type: t3, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
75
77
  }
76
- r2.push({ seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
78
+ o2.push({ seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
77
79
  }
78
- e2.highlightInfos = r2, N(t2, e2);
80
+ e2.highlightInfos = o2, N(t2, e2);
79
81
  });
80
82
  }
81
83
  function v(t2, e2, i2) {
82
84
  if (!i2 || !e2 || !t2) return;
83
85
  const n2 = e2.highlightInfos ? e2.highlightInfos : [];
84
86
  for (let t3 = 0; t3 < n2.length; t3++) {
85
- const s2 = n2[t3], r2 = "chart-pie" === e2.name ? "unselect" : "downplay";
86
- i2.dispatchAction({ type: r2, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
87
+ const s2 = n2[t3], o2 = "chart-pie" === e2.name ? "unselect" : "downplay";
88
+ i2.dispatchAction({ type: o2, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
87
89
  }
88
90
  e2.highlightInfos = [], N(t2, e2);
89
91
  }
@@ -91,13 +93,13 @@ function N(t2, e2) {
91
93
  if (!e2.clickSet) return;
92
94
  const i2 = e2.clickSet, n2 = i2.variables;
93
95
  if (!n2 || 0 == n2.length) return;
94
- const s2 = e2.highlightInfos ? e2.highlightInfos : [], r2 = e2.cacheDatas ? e2.cacheDatas : [], l2 = [], c2 = [];
95
- for (const t3 of s2) c2.includes(t3.dataIndex) || (c2.push(t3.dataIndex), t3.dataIndex < r2.length && l2.push(r2[t3.dataIndex]));
96
+ const s2 = e2.highlightInfos ? e2.highlightInfos : [], o2 = e2.cacheDatas ? e2.cacheDatas : [], l2 = [], c2 = [];
97
+ for (const t3 of s2) c2.includes(t3.dataIndex) || (c2.push(t3.dataIndex), t3.dataIndex < o2.length && l2.push(o2[t3.dataIndex]));
96
98
  for (const e3 of n2) {
97
99
  if (!e3.fieldName || !e3.variable) continue;
98
100
  const n3 = [];
99
101
  for (const t3 of l2) {
100
- const i3 = o(t3, e3.fieldName, void 0);
102
+ const i3 = r(t3, e3.fieldName, void 0);
101
103
  null != i3 && n3.push(i3);
102
104
  }
103
105
  i2.multiple ? a(t2.entity, e3.variable, n3) : a(t2.entity, e3.variable, n3.length > 0 ? n3[0] : void 0);
@@ -105,22 +107,22 @@ function N(t2, e2) {
105
107
  }
106
108
  function y(t2, e2, i2) {
107
109
  const n2 = e2.items ? e2.items : [], s2 = e2.props ? e2.props.orderByTarget : "";
108
- let r2 = null;
109
- if ("x" == s2 || "X" == s2) r2 = "__x";
110
+ let o2 = null;
111
+ if ("x" == s2 || "X" == s2) o2 = "__x";
110
112
  else if (s2) {
111
113
  for (const t3 of n2) if (t3.uuid == s2) {
112
114
  const e3 = t3.props ? t3.props : {}, i3 = e3.yaxisSource, n3 = e3.yaxisField;
113
115
  if (n3 && (!i3 || "variable" == i3)) {
114
- r2 = n3;
116
+ o2 = n3;
115
117
  break;
116
118
  }
117
119
  if ("formula" == i3 && e3.formula) {
118
- r2 = t3.uuid + "_field";
120
+ o2 = t3.uuid + "_field";
119
121
  break;
120
122
  }
121
123
  }
122
124
  }
123
- if (!r2) return;
125
+ if (!o2) return;
124
126
  const a2 = e2.props ? e2.props.orderSource : "";
125
127
  let l2 = e2.props ? e2.props.orderFix : "";
126
128
  if ("variable" == a2) {
@@ -128,18 +130,18 @@ function y(t2, e2, i2) {
128
130
  l2 = f(t2, i3);
129
131
  }
130
132
  l2 = "desc" == l2 || "DESC" == l2 ? "desc" : "asc", i2.sort((t3, e3) => {
131
- const i3 = o(t3, r2, void 0), n3 = o(e3, r2, void 0);
133
+ const i3 = r(t3, o2, void 0), n3 = r(e3, o2, void 0);
132
134
  return "desc" === l2 ? n3 - i3 : i3 - n3;
133
135
  });
134
136
  }
135
137
  function S(t2, e2, i2, n2, s2) {
136
138
  if (!i2) return i2;
137
- const r2 = e2.props ? e2.props : {};
138
- if (!r2.limitQuantity) return i2;
139
+ const o2 = e2.props ? e2.props : {};
140
+ if (!o2.limitQuantity) return i2;
139
141
  let a2 = null;
140
- if (r2.itemNumVariable ? (a2 = f(t2, r2.itemNumVariable), a2 = parseInt(a2)) : a2 = r2.itemNumFix ? r2.itemNumFix : 10, null == a2 || null == a2 || isNaN(a2)) return i2;
142
+ if (o2.itemNumVariable ? (a2 = f(t2, o2.itemNumVariable), a2 = parseInt(a2)) : a2 = o2.itemNumFix ? o2.itemNumFix : 10, null == a2 || null == a2 || isNaN(a2)) return i2;
141
143
  if (i2.length < a2) return i2;
142
- const l2 = r2.overItemAlias, c2 = [], u2 = {};
144
+ const l2 = o2.overItemAlias, c2 = [], u2 = {};
143
145
  n2 = n2 || [], s2 = s2 || [];
144
146
  for (let t3 = 0; t3 < i2.length; t3++) {
145
147
  const e3 = i2[t3];
@@ -148,14 +150,14 @@ function S(t2, e2, i2, n2, s2) {
148
150
  if (!l2) break;
149
151
  for (const t4 of n2) {
150
152
  if (!t4) continue;
151
- let i3 = o(e3, t4, void 0);
153
+ let i3 = r(e3, t4, void 0);
152
154
  i3 = null == i3 || null == i3 ? "" : i3, u2[t4] || (u2[t4] = []);
153
155
  const n3 = u2[t4];
154
156
  n3.includes(i3) || n3.push(i3);
155
157
  }
156
158
  for (const t4 of s2) {
157
159
  if (!t4) continue;
158
- const i3 = o(e3, t4, void 0);
160
+ const i3 = r(e3, t4, void 0);
159
161
  if (isNaN(i3)) continue;
160
162
  const n3 = u2[t4];
161
163
  isNaN(n3) ? u2[t4] = i3 : u2[t4] = i3 + n3;
@@ -187,7 +189,7 @@ function F(t2, e2, i2) {
187
189
  function _(t2, e2) {
188
190
  let i2;
189
191
  for (const n2 of t2) {
190
- const t3 = parseFloat(o(n2, e2, null));
192
+ const t3 = parseFloat(r(n2, e2, null));
191
193
  (void 0 === i2 || !isNaN(t3) && t3 < i2) && (i2 = t3);
192
194
  }
193
195
  return i2;
@@ -195,7 +197,7 @@ function _(t2, e2) {
195
197
  function A(t2, e2) {
196
198
  let i2;
197
199
  for (const n2 of t2) {
198
- const t3 = parseFloat(o(n2, e2, null));
200
+ const t3 = parseFloat(r(n2, e2, null));
199
201
  (void 0 === i2 || !isNaN(t3) && t3 > i2) && (i2 = t3);
200
202
  }
201
203
  return i2;
@@ -203,7 +205,7 @@ function A(t2, e2) {
203
205
  function M(t2, e2) {
204
206
  let i2;
205
207
  for (const n2 of t2) {
206
- const t3 = parseFloat(o(n2, e2, null));
208
+ const t3 = parseFloat(r(n2, e2, null));
207
209
  void 0 === i2 ? i2 = t3 : isNaN(t3) || (i2 += t3);
208
210
  }
209
211
  return i2;
@@ -218,11 +220,11 @@ function w(t2, e2, i2, n2) {
218
220
  const s2 = l(t2);
219
221
  for (const e3 of s2) {
220
222
  let s3 = null;
221
- s3 = e3.startsWith("${row.") ? o(i2, e3.substring(6, e3.length - 1), null) : c(n2.entity, e3), t2 = t2.replace(new RegExp(e3.replace("$", "\\$"), "g"), s3);
223
+ s3 = e3.startsWith("${row.") ? r(i2, e3.substring(6, e3.length - 1), null) : c(n2.entity, e3), t2 = t2.replace(new RegExp(e3.replace("$", "\\$"), "g"), s3);
222
224
  }
223
225
  t2.includes("return ") || (t2 = "return " + t2);
224
- const r2 = new Function("params", t2);
225
- return p(r2, n2), r2({ pageContext: n2, row: i2 });
226
+ const o2 = new Function("params", t2);
227
+ return p(o2, n2), o2({ pageContext: n2, row: i2 });
226
228
  }
227
229
  function $(t2, e2) {
228
230
  if (!t2 || !t2.$el) return;
@@ -246,7 +248,7 @@ function j(t2, e2, i2) {
246
248
  }
247
249
  if (s2 && t2) {
248
250
  for (const i3 of t2) if (i3.prop && i3.value) {
249
- const t3 = r(e2, i3.value, "input-text", false), n3 = i3.prop.substring(2, i3.prop.length - 1).split(".");
251
+ const t3 = o(e2, i3.value, "input-text", false), n3 = i3.prop.substring(2, i3.prop.length - 1).split(".");
250
252
  null != t3 && u(e2.entity, n3, t3);
251
253
  }
252
254
  }
@@ -30,6 +30,7 @@ export declare function getHandleEvent($event: any, pageContext: PageContext, co
30
30
  export declare function getTableUuid(pageContext: PageContext, configure: Component): any;
31
31
  export declare function handleEventByEventName(pageContext: PageContext, configure: Component, eventName: string, otherParams?: object): any;
32
32
  export declare function doSuffixOrPrefixClickEvent($event: any, pageContext: PageContext, configure: Component, eventType: any, otherParams?: object): void;
33
+ export declare function getDefaultEventParams($event: any, pageContext: PageContext, configure: Component, otherParams?: object): {};
33
34
  export declare function doBeforeClickEvent(pageContext: PageContext, configure: Component, otherParams?: object): any;
34
35
  /**
35
36
  * TODO: 跳转页面功能