super-page-runtime 2.3.4 → 2.3.5-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 (59) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +78 -70
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
  5. package/dist/es/components/runtime/utils/charts/chart-util.js +24 -26
  6. package/dist/es/components/runtime/utils/common-util.d.ts +1 -1
  7. package/dist/es/components/runtime/utils/common-util.js +62 -47
  8. package/dist/es/components/runtime/utils/events/event-util.js +119 -119
  9. package/dist/es/components/runtime/utils/events/print-label.js +25 -27
  10. package/dist/es/components/runtime/utils/events/standard-event.js +471 -481
  11. package/dist/es/components/runtime/utils/events/validator-util.js +24 -24
  12. package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
  13. package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
  14. package/dist/es/components/runtime/utils/page-init-util.d.ts +1 -1
  15. package/dist/es/components/runtime/utils/page-init-util.js +67 -60
  16. package/dist/es/components/runtime/utils/page-store.js +1 -1
  17. package/dist/es/components/runtime/utils/table-utils.d.ts +14 -0
  18. package/dist/es/components/runtime/utils/table-utils.js +62 -37
  19. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +12 -16
  20. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  21. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +9 -11
  22. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +3 -3
  23. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +14 -15
  24. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +11 -12
  25. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +17 -18
  26. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +18 -19
  27. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +8 -1
  28. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +10 -15
  29. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +6 -6
  30. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +130 -131
  31. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +8 -4
  32. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +24 -26
  33. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -3
  34. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
  35. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  36. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +40 -43
  37. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +116 -119
  38. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +42 -42
  39. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  40. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +62 -63
  41. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
  42. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +35 -34
  43. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
  44. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +17 -17
  45. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +54 -52
  46. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -8
  47. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -10
  48. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
  49. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -1
  50. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +59 -50
  51. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +63 -61
  53. package/dist/es/components/runtime/views/home-chart.vue.js +9 -9
  54. package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -7
  55. package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
  56. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  57. package/dist/es/components/runtime/views/super-page.vue2.js +138 -141
  58. package/dist/es/style.css +82 -82
  59. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import e from "async-validator";
2
2
  import { ElMessage as t } from "element-plus";
3
- import { getComponentRefByCode as n, getAllComponentRefs as s, getComponentRef as r } from "../global-refs.js";
3
+ import { getComponentRefByCode as n, getComponentRef as s, getAllComponentRefs as r } from "../global-refs.js";
4
4
  import { getI18n as i } from "agilebuilder-ui/src/utils/util";
5
5
  import { getAdditionalParamMap as l } from "./standard-event.js";
6
6
  import { isPromise as o } from "agilebuilder-ui/src/utils/common-util";
@@ -49,7 +49,7 @@ function d(n2, s2, r2, i2, l2, o2) {
49
49
  if (s2 && null !== s2 || !r2 || (u2 = {}), !u2 || 0 === Object.keys(u2).length) return n2.validateErrorField = "", true;
50
50
  return new e(u2).validate(n2, { first: true }, (e2, o3) => {
51
51
  let u3;
52
- if (e2 ? (a2 = e2[0].message, u3 = e2[0].field, t({ message: a2, showClose: true, type: "warning", duration: 3e3 }), console.log("errors", e2, "fields", o3)) : a2 = true, u3 && true === l2) {
52
+ if (e2 ? (a2 = e2[0].message, u3 = e2[0].field, t({ message: a2, showClose: true, type: "warning", duration: 3e3 })) : a2 = true, u3 && true === l2) {
53
53
  if (/[A-Z]+/.test(u3) && void 0 !== n2[u3.toLowerCase()]) {
54
54
  const e3 = JSON.parse(JSON.stringify(n2));
55
55
  e3[u3.toUpperCase()] = n2[u3.toLowerCase()], delete e3[u3.toLowerCase()], a2 = d(e3, s2, r2, i2, false);
@@ -94,17 +94,17 @@ function p(e2, n2, s2) {
94
94
  }
95
95
  function g(e2) {
96
96
  return new Promise((t2, n2) => {
97
- const s2 = [], i2 = e2.customValidatorUuids;
97
+ const r2 = [], i2 = e2.customValidatorUuids;
98
98
  i2 && i2.forEach((t3) => {
99
- const n3 = r(e2, t3);
100
- n3 && n3.validator && s2.push(n3.validator());
101
- }), s2 && s2.length > 0 ? Promise.all(s2).then((e3) => {
99
+ const n3 = s(e2, t3);
100
+ n3 && n3.validator && r2.push(n3.validator());
101
+ }), r2 && r2.length > 0 ? Promise.all(r2).then((e3) => {
102
102
  e3.includes(false) ? t2(false) : t2(true);
103
103
  }) : t2(true);
104
104
  });
105
105
  }
106
106
  function b(e2, t2, n2) {
107
- return new Promise((s2, l2) => {
107
+ return new Promise((r2, l2) => {
108
108
  const a2 = JSON.parse(JSON.stringify(e2));
109
109
  if (n2 && 0 !== Object.keys(n2).length) {
110
110
  if (true === c(a2, n2, null, null)) {
@@ -113,7 +113,7 @@ function b(e2, t2, n2) {
113
113
  const t3 = e4.tableUuids;
114
114
  if (!t3) return true;
115
115
  for (let n3 = 0; n3 < t3.length; n3++) {
116
- const s3 = t3[n3], i2 = r(e4, s3);
116
+ const r3 = t3[n3], i2 = s(e4, r3);
117
117
  if (i2) {
118
118
  if (!i2.validatorSunTableListData()) return false;
119
119
  }
@@ -124,33 +124,33 @@ function b(e2, t2, n2) {
124
124
  const e4 = function(e5) {
125
125
  const t3 = [];
126
126
  e5.customRuleEvents && e5.customRuleEvents.length > 0 && e5.customRuleEvents.forEach((n3) => {
127
- n3.events.forEach((s3) => {
128
- const r2 = e5.customEvents[s3];
129
- t3.push(r2.apply(r2, [{ prop: n3.prop, pageContext: e5 }]));
127
+ n3.events.forEach((s2) => {
128
+ const r3 = e5.customEvents[s2];
129
+ t3.push(r3.apply(r3, [{ prop: n3.prop, pageContext: e5 }]));
130
130
  });
131
131
  });
132
132
  if (t3 && t3.length > 0) return new Promise((e6, n3) => {
133
- const s3 = [], r2 = [];
133
+ const s2 = [], r3 = [];
134
134
  t3.forEach((e7) => {
135
- o(e7) ? s3.push(e7) : r2.push(e7);
136
- }), r2.includes(false) && e6(false), s3.length > 0 ? Promise.all(s3).then((t4) => {
135
+ o(e7) ? s2.push(e7) : r3.push(e7);
136
+ }), r3.includes(false) && e6(false), s2.length > 0 ? Promise.all(s2).then((t4) => {
137
137
  t4.includes(false) ? e6(false) : e6(true);
138
138
  }).catch((t4) => {
139
- console.error(t4), e6(false);
139
+ e6(false);
140
140
  }) : e6(true);
141
141
  });
142
142
  return null;
143
143
  }(t2);
144
144
  e4 && o(e4) ? e4.then((e5) => {
145
145
  e5 ? g(t2).then((e6) => {
146
- s2(e6);
147
- }) : s2(false);
146
+ r2(e6);
147
+ }) : r2(false);
148
148
  }) : g(t2).then((e5) => {
149
- s2(e5);
149
+ r2(e5);
150
150
  });
151
151
  } else l2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
152
152
  } else l2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
153
- } else s2(true);
153
+ } else r2(true);
154
154
  });
155
155
  }
156
156
  function h(e2, t2) {
@@ -212,19 +212,19 @@ function R(e2) {
212
212
  E(e2, { disabled: true });
213
213
  }
214
214
  function E(e2, t2) {
215
- const n2 = s(e2);
215
+ const n2 = r(e2);
216
216
  if (n2) for (const e3 in n2) {
217
217
  const s2 = n2[e3];
218
218
  O(s2 ? s2.value : s2, t2);
219
219
  }
220
220
  }
221
- function k(e2, t2, s2) {
221
+ function k(e2, t2, r2) {
222
222
  var _a;
223
223
  let i2, l2;
224
- if (s2 ? (i2 = n(e2, s2), l2 = i2 ? i2.getTableUuid() : null) : (l2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = l2 ? r(e2, l2) : null), !i2) return;
224
+ if (r2 ? (i2 = n(e2, r2), l2 = i2 ? i2.getTableUuid() : null) : (l2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = l2 ? s(e2, l2) : null), !i2) return;
225
225
  const o2 = e2.code, u2 = e2.version, f2 = a(o2, u2, l2);
226
- if (((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[s2]) {
227
- const n2 = e2.workflowRules.subRules[s2];
226
+ if (((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[r2]) {
227
+ const n2 = e2.workflowRules.subRules[r2];
228
228
  t2.forEach((e3) => {
229
229
  n2[e3.name] = e3;
230
230
  });
@@ -44,9 +44,8 @@ function analysisScanValue(scanValue, scanRuleSets) {
44
44
  }
45
45
  let res = false;
46
46
  if (validStr) try {
47
- console.log("validStr", validStr), res = eval("(" + validStr + ")"), console.log("res", res);
47
+ res = eval("(" + validStr + ")");
48
48
  } catch (e) {
49
- console.log(e);
50
49
  }
51
50
  else res = true;
52
51
  if (res) return executeAnalysisForScan(scanValue, scanSet);
@@ -63,11 +62,11 @@ function executeAnalysisForScan(e, t) {
63
62
  let n = e;
64
63
  if (t2.splitChar && t2.splitNum) {
65
64
  const a3 = (t2.splitChar, t2.splitChar), s2 = e.split(a3), l = t2.splitNum < 1 ? 1 : t2.splitNum;
66
- console.log(n, a3, s2, l), n = l <= s2.length ? s2[l - 1] : "";
65
+ n = l <= s2.length ? s2[l - 1] : "";
67
66
  }
68
67
  if (t2.splitChar2 && t2.splitNum2) {
69
68
  const e2 = (t2.splitChar2, t2.splitChar2), a3 = n.split(e2), s2 = t2.splitNum2 < 1 ? 1 : t2.splitNum2;
70
- console.log(n, e2, a3, s2), n = s2 <= a3.length ? a3[s2 - 1] : "";
69
+ n = s2 <= a3.length ? a3[s2 - 1] : "";
71
70
  }
72
71
  if (n.length > 0) {
73
72
  const e2 = _getScanIndexs(n, t2.startIndex, t2.endIndex), a3 = e2[0], s2 = e2[1];