super-page-runtime 2.3.17-sit1 → 2.3.17-sit3

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 (30) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +44 -31
  2. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +2 -1
  3. package/dist/es/components/runtime/utils/charts/chart-util.js +5 -5
  4. package/dist/es/components/runtime/utils/events/standard-event.js +3 -2
  5. package/dist/es/components/runtime/utils/events/validator-util.d.ts +1 -1
  6. package/dist/es/components/runtime/utils/events/validator-util.js +172 -166
  7. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  9. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +11 -10
  10. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
  11. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
  13. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  14. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
  15. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  16. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +3 -3
  20. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -0
  21. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +75 -72
  22. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -2
  23. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +4 -1
  24. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +20 -19
  25. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +77 -70
  27. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +7 -5
  28. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +74 -58
  29. package/dist/es/style.css +122 -71
  30. package/package.json +2 -2
@@ -1,222 +1,225 @@
1
1
  import e from "async-validator";
2
2
  import { ElMessage as t } from "element-plus";
3
- import { getComponentRefByCode as n, getComponentRef as s, getAllComponentRefs as r } from "../global-refs.js";
3
+ import { getComponentRefByCode as s, getComponentRef as n, getAllComponentRefs as r } from "../global-refs.js";
4
4
  import { getI18n as i } from "agilebuilder-ui/src/utils/util";
5
- import { getAdditionalParamMap as o } from "./standard-event.js";
6
- import { isPromise as l } from "agilebuilder-ui/src/utils/common-util";
5
+ import { getAdditionalParamMap as l } from "./standard-event.js";
6
+ import { isPromise as o } from "agilebuilder-ui/src/utils/common-util";
7
7
  import { parseSubTablePermissionCondition as a } from "agilebuilder-ui/src/utils/calculator/calculator-util";
8
- import { getListCode as u, isWorkflowPage as f } from "../common-util.js";
9
- function c(e2, t2, n2) {
10
- const s2 = {};
8
+ import { isWorkflowPage as u, getListCode as f } from "../common-util.js";
9
+ function c(e2, t2, s2) {
10
+ const n2 = {};
11
11
  t2 || (t2 = {});
12
12
  let r2 = 0;
13
13
  const i2 = e2.split(".");
14
14
  return i2.forEach((e3) => {
15
- let o2;
16
- if (r2 === i2.length - 1) o2 = function(e4, t3, n3) {
17
- let s3;
18
- for (let r3 = 0; r3 < t3.length; r3++) if (s3 = 0 === r3 ? e4[t3[r3]] : s3.fields[t3[r3]], r3 !== t3.length - 1) {
19
- if (t3[r3 + 1] === n3) break;
15
+ let l2;
16
+ if (r2 === i2.length - 1) l2 = function(e4, t3, s3) {
17
+ let n3;
18
+ for (let r3 = 0; r3 < t3.length; r3++) if (n3 = 0 === r3 ? e4[t3[r3]] : n3.fields[t3[r3]], r3 !== t3.length - 1) {
19
+ if (t3[r3 + 1] === s3) break;
20
20
  }
21
- return s3;
22
- }(s2, i2, e3), o2.fields[e3] = n2;
21
+ return n3;
22
+ }(n2, i2, e3), l2.fields[e3] = s2;
23
23
  else {
24
- let n3;
25
- 0 === r2 ? o2 = t2 : (n3 = function(e4, t3, n4) {
26
- let s3;
24
+ let s3;
25
+ 0 === r2 ? l2 = t2 : (s3 = function(e4, t3, s4) {
26
+ let n3;
27
27
  for (let r3 = 0; r3 < t3.length; r3++) {
28
28
  const i3 = t3[r3];
29
- if (s3 = 0 === r3 ? e4[i3] : s3.fields[t3[r3]], i3 === n4) break;
29
+ if (n3 = 0 === r3 ? e4[i3] : n3.fields[t3[r3]], i3 === s4) break;
30
30
  }
31
- return s3;
32
- }(s2, i2, i2[r2 - 1]), o2 = n3.fields), o2[e3] || (o2[e3] = { type: "object", required: true, fields: {} }), 0 === r2 ? s2[e3] = o2[e3] : n3.fields[e3] = o2[e3];
31
+ return n3;
32
+ }(n2, i2, i2[r2 - 1]), l2 = s3.fields), l2[e3] || (l2[e3] = { type: "object", required: true, fields: {} }), 0 === r2 ? n2[e3] = l2[e3] : s3.fields[e3] = l2[e3];
33
33
  }
34
34
  r2++;
35
- }), s2;
35
+ }), n2;
36
36
  }
37
- function d(e2, t2, n2, s2, r2, i2) {
38
- return p(e2, t2, n2, s2, true, r2, i2);
37
+ function d(e2, t2, s2, n2, r2, i2) {
38
+ return p(e2, t2, s2, n2, true, r2, i2);
39
39
  }
40
40
  function m(e2) {
41
41
  if (e2) return Object.keys(e2).forEach((t2) => {
42
42
  if (t2.indexOf(".") >= 0) {
43
- let n2 = [];
44
- n2 = t2.split("."), e2[n2[0]] ? e2[n2[0]].fields[n2[1]] = e2[t2][0] : (e2[n2[0]] = new Object(), e2[n2[0]].fields = new Object(), e2[n2[0]].fields[n2[1]] = e2[t2][0], e2[n2[0]].type = "object"), delete e2[t2];
43
+ let s2 = [];
44
+ s2 = t2.split("."), e2[s2[0]] ? e2[s2[0]].fields[s2[1]] = e2[t2][0] : (e2[s2[0]] = new Object(), e2[s2[0]].fields = new Object(), e2[s2[0]].fields[s2[1]] = e2[t2][0], e2[s2[0]].type = "object"), delete e2[t2];
45
45
  }
46
46
  }), e2;
47
47
  }
48
- function p(s2, r2, i2, o2, l2, a2, u2) {
48
+ function p(n2, r2, i2, l2, o2, a2, u2) {
49
49
  let f2, c2 = m(r2);
50
- if (r2 && null !== r2 || !i2 || (c2 = {}), !c2 || 0 === Object.keys(c2).length) return s2.validateErrorField = "", true;
51
- return new e(c2).validate(s2, { first: true }, (e2, c3) => {
50
+ if (r2 && null !== r2 || !i2 || (c2 = {}), !c2 || 0 === Object.keys(c2).length) return n2.validateErrorField = "", true;
51
+ return new e(c2).validate(n2, { first: true }, (e2, c3) => {
52
52
  let d2;
53
53
  if (e2) {
54
54
  f2 = e2[0].message, d2 = e2[0].field, t({ message: f2, showClose: true, type: "warning", duration: 3e3 });
55
- const s3 = n(u2, d2);
56
- s3 && s3.addRequiredClass && s3.addRequiredClass();
55
+ const n3 = s(u2, d2);
56
+ n3 && n3.addRequiredClass && n3.addRequiredClass();
57
57
  } else f2 = true;
58
- if (d2 && true === l2) {
59
- if (/[A-Z]+/.test(d2) && void 0 !== s2[d2.toLowerCase()]) {
60
- const e3 = JSON.parse(JSON.stringify(s2));
61
- e3[d2.toUpperCase()] = s2[d2.toLowerCase()], delete e3[d2.toLowerCase()], f2 = p(e3, r2, i2, o2, false, a2, u2);
58
+ if (d2 && true === o2) {
59
+ if (/[A-Z]+/.test(d2) && void 0 !== n2[d2.toLowerCase()]) {
60
+ const e3 = JSON.parse(JSON.stringify(n2));
61
+ e3[d2.toUpperCase()] = n2[d2.toLowerCase()], delete e3[d2.toLowerCase()], f2 = p(e3, r2, i2, l2, false, a2, u2);
62
62
  }
63
63
  }
64
64
  }), f2;
65
65
  }
66
- function g(e2, s2, r2) {
67
- const l2 = e2.entity.data, u2 = { ...e2.entity.page, ...l2 }, c2 = e2.rules, d2 = s2.props.base ? s2.props.base.isEnableRequired : null;
68
- return null != d2 && (r2 = d2), null == r2 && (r2 = false), function(e3, s3, r3, l3) {
66
+ function g(e2, n2, r2) {
67
+ const o2 = e2.entity.data, f2 = { ...e2.entity.page, ...o2 }, c2 = e2.rules, d2 = n2.props.base ? n2.props.base.isEnableRequired : null;
68
+ return null != d2 && (r2 = d2), null == r2 && (r2 = false), function(e3, n3, r3, o3) {
69
69
  if (e3) {
70
- return f(l3) ? function(e4, s4, r4) {
71
- return new Promise((l4, u3) => {
72
- const f2 = o(s4), c3 = s4.entity.context, d3 = s4.entity.task, m2 = true, p2 = s4.subTablePageInfo;
73
- h(e4, s4, r4).then((r5) => {
70
+ return u(o3) ? function(e4, n4, r4) {
71
+ return new Promise((o4, u2) => {
72
+ const f3 = l(n4), c3 = n4.entity.context, d3 = n4.entity.task, m2 = true, p2 = n4.subTablePageInfo;
73
+ h(e4, n4, r4).then((r5) => {
74
74
  if (r5) {
75
- let o2, u4, g2, b2, h2 = r5;
76
- const y2 = s4.workflowRules;
77
- if (y2) {
78
- if (!function(e5, s5) {
75
+ let l2, u3, g2, b2, h2 = r5;
76
+ const w2 = n4.workflowRules;
77
+ if (w2) {
78
+ if (!function(e5, n5) {
79
79
  var _a, _b, _c;
80
80
  if (!e5.actionPermissions) return true;
81
81
  const r7 = Object.keys(e5.actionPermissions);
82
- for (let o3 = 0; o3 < r7.length; o3++) {
83
- const l5 = r7[o3], u5 = e5.actionPermissions[l5];
84
- if (u5 && u5.notEmpty) {
82
+ for (let l3 = 0; l3 < r7.length; l3++) {
83
+ const o5 = r7[l3], u4 = e5.actionPermissions[o5];
84
+ if (u4 && u4.notEmpty) {
85
85
  let r8 = false;
86
- if (s5[l5] ? Array.isArray(s5[l5]) && 0 === s5[l5].length && (r8 = true) : r8 = true, r8) {
87
- const r9 = n(e5, l5).getConfigure();
88
- if ((_a = u5.notEmptyCondition) == null ? void 0 : _a.parentCondition) {
89
- if (false === a(u5.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, s5, {}, (_b = e5.entity) == null ? void 0 : _b.request, (_c = e5.entity) == null ? void 0 : _c.task, e5.contextParam)) return true;
86
+ if (n5[o5] ? Array.isArray(n5[o5]) && 0 === n5[o5].length && (r8 = true) : r8 = true, r8) {
87
+ const r9 = s(e5, o5).getConfigure();
88
+ if ((_a = u4.notEmptyCondition) == null ? void 0 : _a.parentCondition) {
89
+ if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, n5, {}, (_b = e5.entity) == null ? void 0 : _b.request, (_c = e5.entity) == null ? void 0 : _c.task, e5.contextParam)) return true;
90
90
  }
91
- return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: r9.title ? r9.title : l5 }), type: "warning" }), false;
91
+ return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: r9.title ? r9.title : o5 }), type: "warning" }), false;
92
92
  }
93
93
  }
94
94
  }
95
95
  return true;
96
- }(s4, e4)) return void l4(false);
97
- const r6 = true, w2 = window.$vueApp.config.globalProperties.$formValidator(e4, y2, m2, f2, d3, c3, p2, r6);
98
- h2 = w2.msg, o2 = w2.field, u4 = w2.listCode, g2 = w2.rowIndex, b2 = w2.pageNum;
96
+ }(n4, e4)) return void o4(false);
97
+ const r6 = true, y2 = Object.assign({}, w2);
98
+ y2.subRules && (Object.keys(y2.subRules).length > 0 ? y2.totalSubRules || (y2.totalSubRules = {}) : delete y2.subRules);
99
+ const R2 = window.$vueApp.config.globalProperties.$formValidator(e4, y2, m2, f3, d3, c3, p2, r6);
100
+ h2 = R2.msg, l2 = R2.field, u3 = R2.listCode, g2 = R2.rowIndex, b2 = R2.pageNum;
99
101
  } else h2 = true;
100
102
  if (true !== h2) {
101
- if (t({ showClose: true, message: h2 + "", type: "warning" }), u4) {
102
- const e5 = n(s4, u4);
103
- e5 && e5.addRequiredClass && e5.addRequiredClass(o2, g2, b2);
103
+ if (t({ showClose: true, message: h2 + "", type: "warning" }), u3) {
104
+ const e5 = s(n4, u3);
105
+ e5 && e5.addRequiredClass && e5.addRequiredClass(l2, g2, b2);
104
106
  } else {
105
- const e5 = n(s4, o2);
107
+ const e5 = s(n4, l2);
106
108
  e5 && e5.addRequiredClass && e5.addRequiredClass();
107
109
  }
108
- l4(false);
109
- } else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4);
110
- } else u3(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
110
+ o4(false);
111
+ } else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, o4(e4);
112
+ } else u2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
111
113
  }).catch((e5) => {
112
- u3(e5);
114
+ u2(e5);
113
115
  });
114
116
  });
115
- }(s3, l3, r3) : function(e4, t2, n2) {
116
- return new Promise((s4, r4) => {
117
- h(e4, t2, n2).then((t3) => {
117
+ }(n3, o3, r3) : function(e4, t2, s2) {
118
+ return new Promise((n4, r4) => {
119
+ h(e4, t2, s2).then((t3) => {
118
120
  if (t3) {
119
121
  const t4 = JSON.parse(JSON.stringify(e4));
120
- Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, s4(t4);
121
- } else s4(false);
122
+ Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, n4(t4);
123
+ } else n4(false);
122
124
  }).catch((e5) => {
123
125
  r4(e5);
124
126
  });
125
127
  });
126
- }(s3, l3, r3);
128
+ }(n3, o3, r3);
127
129
  }
128
130
  return new Promise((e4, t2) => {
129
131
  e4(true);
130
132
  });
131
- }(r2, u2, c2, e2);
133
+ }(r2, f2, c2, e2);
132
134
  }
133
135
  function b(e2) {
134
- return new Promise((t2, n2) => {
136
+ return new Promise((t2, s2) => {
135
137
  const r2 = [], i2 = e2.customValidatorUuids;
136
138
  i2 && i2.forEach((t3) => {
137
- const n3 = s(e2, t3);
138
- n3 && n3.validator && r2.push(n3.validator());
139
+ const s3 = n(e2, t3);
140
+ s3 && s3.validator && r2.push(s3.validator());
139
141
  }), r2 && r2.length > 0 ? Promise.all(r2).then((e3) => {
140
142
  e3.includes(false) ? t2(false) : t2(true);
141
143
  }) : t2(true);
142
144
  });
143
145
  }
144
- function h(e2, n2, r2) {
145
- return new Promise((o2, a2) => {
146
- const u2 = JSON.parse(JSON.stringify(e2));
146
+ function h(e2, s2, r2) {
147
+ return new Promise((l2, a2) => {
148
+ const f2 = JSON.parse(JSON.stringify(e2));
147
149
  if (r2 && 0 !== Object.keys(r2).length) {
148
- if (true === d(u2, r2, null, null, true, n2)) {
150
+ if (true === d(f2, r2, null, null, true, s2)) {
149
151
  const e3 = function(e4) {
150
152
  var _a;
151
153
  if (!e4) return true;
152
- const n3 = e4.tableUuids;
153
- if (!n3) return true;
154
- for (let r3 = 0; r3 < n3.length; r3++) {
155
- const o3 = n3[r3], l2 = s(e4, o3);
156
- if (l2) {
157
- if (l2.getConfigure()) {
158
- const e5 = l2.getConfigure();
154
+ if (u(e4)) return true;
155
+ const s3 = e4.tableUuids;
156
+ if (!s3) return true;
157
+ for (let r3 = 0; r3 < s3.length; r3++) {
158
+ const l3 = s3[r3], o2 = n(e4, l3);
159
+ if (o2) {
160
+ if (o2.getConfigure()) {
161
+ const e5 = o2.getConfigure();
159
162
  if ((_a = e5 == null ? void 0 : e5.verification) == null ? void 0 : _a.notEmpty) {
160
- const n4 = l2.getTableData();
161
- if (!n4 || !Array.isArray(n4) || 0 === n4.length) return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: e5.title ? e5.title : e5.code }), type: "warning" }), false;
163
+ const s4 = o2.getTableData();
164
+ if (!s4 || !Array.isArray(s4) || 0 === s4.length) return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: e5.title ? e5.title : e5.code }), type: "warning" }), false;
162
165
  }
163
166
  }
164
- if (!l2.validatorSunTableListData()) return false;
167
+ if (!o2.validatorSunTableListData()) return false;
165
168
  }
166
169
  }
167
170
  return true;
168
- }(n2);
171
+ }(s2);
169
172
  if (true === e3) {
170
173
  const e4 = function(e5) {
171
174
  const t2 = [];
172
- e5.customRuleEvents && e5.customRuleEvents.length > 0 && e5.customRuleEvents.forEach((n3) => {
173
- n3.events.forEach((s2) => {
174
- const r3 = e5.customEvents[s2];
175
- t2.push(r3.apply(r3, [{ prop: n3.prop, pageContext: e5 }]));
175
+ e5.customRuleEvents && e5.customRuleEvents.length > 0 && e5.customRuleEvents.forEach((s3) => {
176
+ s3.events.forEach((n2) => {
177
+ const r3 = e5.customEvents[n2];
178
+ t2.push(r3.apply(r3, [{ prop: s3.prop, pageContext: e5 }]));
176
179
  });
177
180
  });
178
- if (t2 && t2.length > 0) return new Promise((e6, n3) => {
179
- const s2 = [], r3 = [];
181
+ if (t2 && t2.length > 0) return new Promise((e6, s3) => {
182
+ const n2 = [], r3 = [];
180
183
  t2.forEach((e7) => {
181
- l(e7) ? s2.push(e7) : r3.push(e7);
182
- }), r3.includes(false) && e6(false), s2.length > 0 ? Promise.all(s2).then((t3) => {
184
+ o(e7) ? n2.push(e7) : r3.push(e7);
185
+ }), r3.includes(false) && e6(false), n2.length > 0 ? Promise.all(n2).then((t3) => {
183
186
  t3.includes(false) ? e6(false) : e6(true);
184
187
  }).catch((t3) => {
185
188
  e6(false);
186
189
  }) : e6(true);
187
190
  });
188
191
  return null;
189
- }(n2);
190
- e4 && l(e4) ? e4.then((e5) => {
191
- e5 ? b(n2).then((e6) => {
192
- o2(e6);
193
- }) : o2(false);
194
- }) : b(n2).then((e5) => {
195
- o2(e5);
192
+ }(s2);
193
+ e4 && o(e4) ? e4.then((e5) => {
194
+ e5 ? b(s2).then((e6) => {
195
+ l2(e6);
196
+ }) : l2(false);
197
+ }) : b(s2).then((e5) => {
198
+ l2(e5);
196
199
  });
197
200
  } else a2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
198
201
  } else a2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
199
- } else o2(true);
202
+ } else l2(true);
200
203
  });
201
204
  }
202
- function y(e2, t2) {
203
- if (!e2) return t2;
204
- t2 || (t2 = {});
205
- const n2 = Object.keys(e2), s2 = e2;
206
- return n2.forEach((e3) => {
205
+ function w(e2, t2, s2) {
206
+ if (!t2) return s2;
207
+ s2 || (s2 = {});
208
+ const n2 = u(e2), r2 = Object.keys(t2), i2 = t2;
209
+ return r2.forEach((e3) => {
207
210
  if ("__subRules" === e3) {
208
- const e4 = s2.__subRules;
209
- Object.keys(e4).forEach((n3) => {
210
- t2.subRules || (t2.subRules = {}), t2.subRules[n3] ? Object.assign(t2.subRules[n3], e4[n3]) : t2.subRules[n3] = e4[n3];
211
+ const e4 = i2.__subRules;
212
+ Object.keys(e4).forEach((t3) => {
213
+ s2.subRules || (s2.subRules = {}), s2.subRules[t3] ? Object.assign(s2.subRules[t3], e4[t3]) : s2.subRules[t3] = e4[t3];
211
214
  });
212
- } else x(s2[e3]), t2[e3] = s2[e3];
213
- }), m(t2);
215
+ } else j(i2[e3]), n2 ? (s2.rules[e3] = i2[e3], s2[e3] && (s2[e3] = i2[e3])) : s2[e3] = i2[e3];
216
+ }), m(s2);
214
217
  }
215
- function w(e2) {
218
+ function y(e2) {
216
219
  if (!e2 || 0 === Object.keys(e2).length) return;
217
- const t2 = {}, n2 = Object.keys(e2);
218
- for (let s2 = 0; s2 < n2.length; s2++) {
219
- const r2 = n2[s2], i2 = e2[r2];
220
+ const t2 = {}, s2 = Object.keys(e2);
221
+ for (let n2 = 0; n2 < s2.length; n2++) {
222
+ const r2 = s2[n2], i2 = e2[r2];
220
223
  R(i2), r2.indexOf(".") > 0 ? c(r2, t2, i2) : i2 && i2.length > 0 && (t2[r2] = [...i2]);
221
224
  }
222
225
  return t2;
@@ -224,90 +227,93 @@ function w(e2) {
224
227
  function R(e2, t2) {
225
228
  e2.forEach((e3) => {
226
229
  e3.message;
227
- const t3 = e3.label, n2 = i().t(t3);
228
- e3.required && (e3.message = i().t("superPageRuntimeMessage.required", { label: n2 })), e3.myType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: n2 })), e3.patternType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: n2 })), void 0 !== e3.max && null !== e3.max && (e3.message = i().t("superPageRuntimeMessage.overMaxLength", { label: n2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = i().t("superPageRuntimeMessage.limitMinLength", { label: n2, value: e3.min }));
230
+ const t3 = e3.label, s2 = i().t(t3);
231
+ e3.required && (e3.message = i().t("superPageRuntimeMessage.required", { label: s2 })), e3.myType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), e3.patternType && (e3.message = i().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), void 0 !== e3.max && null !== e3.max && (e3.message = i().t("superPageRuntimeMessage.overMaxLength", { label: s2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = i().t("superPageRuntimeMessage.limitMinLength", { label: s2, value: e3.min }));
229
232
  });
230
233
  }
231
234
  function v(e2) {
232
- const t2 = e2.entity.data, n2 = { ...e2.entity.page, ...t2 }, s2 = o(e2), r2 = e2.entity.context, i2 = e2.entity.task;
235
+ const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 = l(e2), r2 = e2.entity.context, i2 = e2.entity.task;
233
236
  e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
234
237
  t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
235
238
  });
236
- let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, n2, true, s2, i2, r2);
237
- return l2 = y(e2.customRules, l2), l2;
239
+ let o2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2, i2, r2);
240
+ const a2 = e2.customRules;
241
+ return o2 = w(e2, a2, o2), o2 && (o2.rules || (o2.rules = {}), o2.subRules || (o2.subRules = {})), o2;
238
242
  }
239
243
  function P(e2, t2) {
240
244
  if (!t2) return;
241
- const s2 = {};
242
- t2.forEach((e3) => {
243
- const { name: t3, rules: n2 } = e3;
244
- n2 ? s2[t3] = n2 : false === e3.required && (s2[t3] = []);
245
- });
246
- let r2 = e2.rules ? e2.rules : {};
247
- r2 = y(s2, r2), e2.rules = r2;
248
- let i2 = e2.workflowRules ? e2.workflowRules : {};
249
- i2 = y(s2, i2), e2.workflowRules = i2;
250
- const o2 = t2.filter((e3) => "_all_fields" === e3.name);
251
- o2 && o2.length > 0 && k(e2, o2[0]), t2.forEach((t3) => {
245
+ const n2 = {};
246
+ if (t2.forEach((e3) => {
247
+ const { name: t3, rules: s2 } = e3;
248
+ s2 ? n2[t3] = s2 : false === e3.required && (n2[t3] = []);
249
+ }), u(e2)) {
250
+ let t3 = e2.workflowRules ? e2.workflowRules : { rules: {}, subRules: {} };
251
+ t3 = w(e2, n2, t3), e2.workflowRules = t3;
252
+ } else {
253
+ let t3 = e2.rules ? e2.rules : {};
254
+ t3 = w(e2, n2, t3), e2.rules = t3;
255
+ }
256
+ const r2 = t2.filter((e3) => "_all_fields" === e3.name);
257
+ r2 && r2.length > 0 && E(e2, r2[0]), t2.forEach((t3) => {
252
258
  if ("_all_fields" !== t3.name) {
253
- O(n(e2, t3.name), t3);
259
+ C(s(e2, t3.name), t3);
254
260
  }
255
261
  });
256
262
  }
257
- function E(e2) {
258
- k(e2, { disabled: true });
263
+ function k(e2) {
264
+ E(e2, { disabled: true });
259
265
  }
260
- function k(e2, t2) {
261
- const n2 = r(e2);
262
- if (n2) for (const e3 in n2) {
263
- const s2 = n2[e3];
264
- O(s2 ? s2.value : s2, t2);
266
+ function E(e2, t2) {
267
+ const s2 = r(e2);
268
+ if (s2) for (const e3 in s2) {
269
+ const n2 = s2[e3];
270
+ C(n2 ? n2.value : n2, t2);
265
271
  }
266
272
  }
267
- function C(e2, t2, r2) {
273
+ function O(e2, t2, r2) {
268
274
  var _a;
269
- let i2, o2;
270
- if (r2 ? (i2 = n(e2, r2), o2 = i2 ? i2.getTableUuid() : null) : (o2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = o2 ? s(e2, o2) : null), !i2) return;
271
- const l2 = e2.code, a2 = e2.version, f2 = u(l2, a2, o2);
272
- if (((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[r2]) {
273
- const n2 = e2.workflowRules.subRules[r2];
275
+ let i2, l2;
276
+ if (r2 ? (i2 = s(e2, r2), l2 = i2 ? i2.getTableUuid() : null) : (l2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = l2 ? n(e2, l2) : null), !i2) return;
277
+ const o2 = e2.code, a2 = e2.version, u2 = f(o2, a2, l2);
278
+ if (e2.workflowRules || (e2.workflowRules = { rules: {}, subRules: {} }), e2.workflowRules.subRules || (e2.workflowRules.subRules = {}), e2.workflowRules.subRules[r2] || (e2.workflowRules.subRules[r2] = {}), ((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[r2]) {
279
+ const s2 = e2.workflowRules.subRules[r2];
274
280
  t2.forEach((e3) => {
275
- n2[e3.name] = e3;
281
+ s2[e3.name] = e3;
276
282
  });
277
283
  }
278
- i2.dynamicControlTableEdit(e2, t2, f2);
284
+ i2.dynamicControlTableEdit(e2, t2, u2);
279
285
  }
280
- function O(e2, t2) {
286
+ function C(e2, t2) {
281
287
  var _a, _b, _c;
282
288
  if (e2) {
283
- const n2 = e2.getConfigure();
284
- void 0 !== t2.show && (t2.show ? e2.show() : e2.hide()), void 0 !== t2.required && ((_a = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _a.props) && (n2.runtime.props.required = t2.required), void 0 !== t2.readonly && ((_b = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _b.props) && (t2.readonly ? n2.runtime.props.state = "readonly" : n2.runtime.props.state = "enabled"), void 0 !== t2.disabled && n2 && (((_c = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _c.props) && (t2.disabled ? n2.runtime.props.state = "disabled" : n2.runtime.props.state = "enabled"), "table" === n2.name && e2.changeOperationAddState(false));
289
+ const s2 = e2.getConfigure();
290
+ void 0 !== t2.show && (t2.show ? e2.show() : e2.hide()), void 0 !== t2.required && ((_a = s2 == null ? void 0 : s2.runtime) == null ? void 0 : _a.props) && (s2.runtime.props.required = t2.required), void 0 !== t2.readonly && ((_b = s2 == null ? void 0 : s2.runtime) == null ? void 0 : _b.props) && (t2.readonly ? s2.runtime.props.state = "readonly" : s2.runtime.props.state = "enabled"), void 0 !== t2.disabled && s2 && (((_c = s2 == null ? void 0 : s2.runtime) == null ? void 0 : _c.props) && (t2.disabled ? s2.runtime.props.state = "disabled" : s2.runtime.props.state = "enabled"), "table" === s2.name && e2.changeOperationAddState(false));
285
291
  }
286
292
  }
287
- function x(e2) {
293
+ function j(e2) {
288
294
  if (!(e2 == null ? void 0 : e2.type)) return;
289
- const t2 = j[e2.type];
295
+ const t2 = x[e2.type];
290
296
  t2 && (e2.validator = t2.validator);
291
297
  }
292
- const j = { boolean: { validator: function(e2, t2, n2) {
298
+ const x = { boolean: { validator: function(e2, t2, s2) {
293
299
  return true === M(e2, t2) && ("number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2));
294
- } }, date: { validator: function(e2, t2, n2) {
300
+ } }, date: { validator: function(e2, t2, s2) {
295
301
  if (true !== M(e2, t2)) return false;
296
- const s2 = new Date(t2);
297
- return !isNaN(s2.getTime());
298
- } }, number: { validator: function(e2, t2, n2) {
302
+ const n2 = new Date(t2);
303
+ return !isNaN(n2.getTime());
304
+ } }, number: { validator: function(e2, t2, s2) {
299
305
  return true === M(e2, t2) && (("string" != typeof t2 || "" !== t2.trim()) && ("number" == typeof t2 || !isNaN(Number(t2))));
300
306
  } } }, M = (e2, t2) => null != t2 && "" !== t2 || !e2.required;
301
307
  export {
302
- E as disabledAllFields,
303
- C as dynamicControlTableEdit,
308
+ k as disabledAllFields,
309
+ O as dynamicControlTableEdit,
304
310
  v as getWorkflowRules,
305
311
  R as i18nValidatePropRulesMessage,
306
- w as i18nValidateRulesMessage,
307
- y as packageCustomRules,
308
- x as packageCustomValidator,
312
+ y as i18nValidateRulesMessage,
313
+ w as packageCustomRules,
314
+ j as packageCustomValidator,
309
315
  c as setObjectPropRule,
310
- O as updateComponentDisplayState,
316
+ C as updateComponentDisplayState,
311
317
  P as updateFormItemEditState,
312
318
  g as validateDataModelFunc,
313
319
  d as validator
@@ -1,7 +1,7 @@
1
1
  import e from "./column-line-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = o(e, [["__scopeId", "data-v-e1cf60d6"]]);
4
+ const r = o(e, [["__scopeId", "data-v-3175013a"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -45,7 +45,7 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
45
45
  return C(H.pageContext, re, () => {
46
46
  ee(true);
47
47
  }), A2({ updateChartDatas: oe, exportChart: function() {
48
- return d(S.value);
48
+ return d(S.value, M);
49
49
  }, chartOption: Q }), (e3, r2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: N }, [l(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.pageContext.showHomepageSearch]]), c(s(E), { ref_key: "chartRef", ref: S, class: "amb-chart-content", theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
50
50
  } });
51
51
  export {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, ref as t, onMounted as i, onUnmounted as o, resolveComponent as l, createBlock as a, openBlock as r, withCtx as n, createElementVNode as u, createVNode as s, createTextVNode as p, createCommentVNode as c, createElementBlock as g, Fragment as m, renderList as d } from "vue";
2
2
  import f from "../../object-render.vue.js";
3
- import { updateChartDatasources as v, getValueFromVariable as h } from "../../../../utils/page-helper-util.js";
4
- import { ElLoading as y, ElMessage as C } from "element-plus";
3
+ import { updateChartDatasources as v, getValueFromVariable as y } from "../../../../utils/page-helper-util.js";
4
+ import { ElLoading as h, ElMessage as C } from "element-plus";
5
5
  import b from "agilebuilder-ui/src/utils/request";
6
6
  import "agilebuilder-ui/src/utils/common-util";
7
7
  import "agilebuilder-ui/src/utils/util";
@@ -15,13 +15,14 @@ import "vue-i18n";
15
15
  import "agilebuilder-ui/src/utils/auth";
16
16
  import "axios";
17
17
  import "../../../../utils/events/print-label.js";
18
+ import "dayjs";
18
19
  const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "dialogBody" }, O = { class: "dialog-footer" }, x = e({ __name: "common-homepage-search", props: { configure: { type: Object, required: true }, pageContext: { type: Object, default: () => {
19
20
  } } }, setup(e2, { expose: x2 }) {
20
- const N = e2, _ = t(false), J = t({}), j = t(0);
21
+ const N = e2, _ = t(false), j = t({}), J = t(0);
21
22
  let I;
22
23
  i(() => {
23
24
  I = setTimeout(() => {
24
- J.value = JSON.parse(JSON.stringify(N.pageContext.entity));
25
+ j.value = JSON.parse(JSON.stringify(N.pageContext.entity));
25
26
  }, 200);
26
27
  }), o(() => {
27
28
  I && clearTimeout(I);
@@ -29,7 +30,7 @@ const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
29
30
  const k = t([]), w = () => {
30
31
  _.value = false;
31
32
  }, T = () => {
32
- const e3 = y.service({ lock: true, text: "Loading", background: "rgba(0, 0, 0, 0.7)" });
33
+ const e3 = h.service({ lock: true, text: "Loading", background: "rgba(0, 0, 0, 0.7)" });
33
34
  v(N.pageContext, N.pageContext.initChartServiceConfigs, null, false).then(() => {
34
35
  _.value = false;
35
36
  }).finally(() => {
@@ -37,26 +38,26 @@ const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
37
38
  });
38
39
  };
39
40
  function H() {
40
- N.pageContext.entity = JSON.parse(JSON.stringify(J.value)), j.value++;
41
+ N.pageContext.entity = JSON.parse(JSON.stringify(j.value)), J.value++;
41
42
  }
42
43
  function A() {
43
44
  const e3 = {};
44
45
  N.pageContext.variables.forEach((t3) => {
45
46
  const i3 = "${page." + t3.name + "}";
46
- e3[i3] = h(N.pageContext.entity, i3, null);
47
+ e3[i3] = y(N.pageContext.entity, i3, null);
47
48
  });
48
49
  let t2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS"), i2 = {};
49
50
  t2 && (i2 = JSON.parse(t2)), i2[N.configure.homeChartSettingUserId] = e3;
50
51
  const o2 = JSON.stringify(e3);
51
- window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(i2)), J.value = JSON.parse(JSON.stringify(N.pageContext.entity)), b.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: N.configure.homeChartSettingUserId, searchConditionsJson: o2 }).then((e4) => {
52
+ window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(i2)), j.value = JSON.parse(JSON.stringify(N.pageContext.entity)), b.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: N.configure.homeChartSettingUserId, searchConditionsJson: o2 }).then((e4) => {
52
53
  C.success("保存成功"), T();
53
54
  });
54
55
  }
55
56
  return x2({ openSearch: () => {
56
57
  _.value = true, k.value = N.configure.pushHomepage.searchConditions;
57
58
  } }), (t2, i2) => {
58
- const o2 = l("el-empty"), v2 = l("el-form"), h2 = l("el-button"), y2 = l("el-dialog");
59
- return r(), a(y2, { modelValue: _.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(o2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: j.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() => i2[1] || (i2[1] = [p(" 确定 ")])), _: 1 }), s(h2, { type: "default", onClick: H }, { default: n(() => i2[2] || (i2[2] = [p("重置")])), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => i2[3] || (i2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
59
+ const o2 = l("el-empty"), v2 = l("el-form"), y2 = l("el-button"), h2 = l("el-dialog");
60
+ return r(), a(h2, { modelValue: _.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(o2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: J.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(y2, { type: "primary", onClick: T }, { default: n(() => i2[1] || (i2[1] = [p(" 确定 ")])), _: 1 }), s(y2, { type: "default", onClick: H }, { default: n(() => i2[2] || (i2[2] = [p("重置")])), _: 1 }), s(y2, { type: "primary", onClick: A }, { default: n(() => i2[3] || (i2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
60
61
  };
61
62
  } });
62
63
  export {
@@ -1,7 +1,7 @@
1
1
  import e from "./gauge-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = r(e, [["__scopeId", "data-v-807f72b1"]]);
4
+ const t = r(e, [["__scopeId", "data-v-6f349ab2"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -27,7 +27,7 @@ const k = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }
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), O.value && O.value.setOption(q, true));
28
28
  }
29
29
  return x(A.pageContext, K, J), k2({ updateChartDatas: L, exportChart: function() {
30
- return l(O.value);
30
+ return l(O.value, T);
31
31
  } }), (e3, r2) => (n(), a("div", { style: u(i(F)), class: s([i(P), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: H }, [c(p(v, { ref_key: "headerRef", ref: z, headerInfo: i(T), configure: e3.configure, pageContext: e3.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, i(T).showHeader || e3.pageContext.showHomepageSearch]]), p(i(I), { ref_key: "chartRef", ref: O, class: "amb-chart-content", theme: i(E), option: i(q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
32
32
  } });
33
33
  export {
@@ -1,7 +1,7 @@
1
1
  import e from "./pie-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = r(e, [["__scopeId", "data-v-17d626a7"]]);
4
+ const t = r(e, [["__scopeId", "data-v-6a38f7d4"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -38,7 +38,7 @@ const A = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} },
38
38
  return j(H.pageContext, Z, () => {
39
39
  Y(true);
40
40
  }), A2({ updateChartDatas: $, exportChart: function() {
41
- return d(S.value);
41
+ return d(S.value, K);
42
42
  } }), (e3, r2) => (n(), a("div", { style: i(l(B)), class: u([l(G), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: O }, [c(s(k, { ref_key: "headerRef", ref: T, headerInfo: l(K), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Q, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, l(K).showHeader || e3.pageContext.showHomepageSearch]]), s(l(E), { ref_key: "chartRef", ref: S, class: "amb-chart-content", theme: l(N), option: l(L), autoresize: "" }, null, 8, ["theme", "option"])], 6));
43
43
  } });
44
44
  export {