super-page-runtime 2.3.36 → 2.3.37-cdn1

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 (38) hide show
  1. package/dist/es/components/runtime/utils/events/standard-event.js +1 -1
  2. package/dist/es/components/runtime/utils/events/validator-util.js +230 -189
  3. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
  4. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +2 -2
  5. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
  6. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +26 -26
  7. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +3 -1
  8. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +17 -12
  9. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +69 -66
  10. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +36 -33
  11. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +36 -36
  12. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +45 -45
  13. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +61 -61
  14. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +35 -35
  15. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +58 -58
  16. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +19 -19
  17. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +59 -59
  18. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +26 -26
  20. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +27 -27
  21. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +49 -49
  22. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
  23. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +111 -111
  24. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +88 -88
  26. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +5 -5
  27. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
  28. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +19 -19
  29. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +102 -90
  30. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +6 -3
  31. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +1 -1
  32. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +41 -20
  33. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  34. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +26 -18
  35. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  36. package/dist/es/components/runtime/views/super-page.vue2.js +9 -3
  37. package/dist/es/style.css +168 -160
  38. package/package.json +2 -2
@@ -462,7 +462,7 @@ function ee(e2, o2, s2, a2, i2, r2, l2, u2) {
462
462
  let u3, p3 = l3 + a3;
463
463
  p3 = n(p3, e3, o3, r3), u3 = i3 && (i3.id || i3.ID) ? c.put(p3, s3) : c.post(p3, s3);
464
464
  return u3;
465
- }(p2, d2, m2, s2, e2.entity.data, e2.isTest);
465
+ }(p2, d2, m2, s2, l2, e2.isTest);
466
466
  }
467
467
  function te(e2, t2, n2, o2, s2, a2) {
468
468
  return ee(e2, t2, n2, o2, s2, a2, null, null);
@@ -1,43 +1,44 @@
1
1
  import e from "async-validator";
2
2
  import { ElMessage as t } from "element-plus";
3
- import { getComponentRefByCode as s, getComponentRef as n, getAllComponentRefs as r } from "../global-refs.js";
4
- import { getI18n as i } from "agilebuilder-ui/src/utils/util";
5
- import { getAdditionalParamMap as l } from "./standard-event.js";
6
- import { isPromise as o } from "agilebuilder-ui/src/utils/common-util";
3
+ import { getComponentRefByCode as s, getComponentRef as r, getAllComponentRefs as n } from "../global-refs.js";
4
+ import { getI18n as o } from "agilebuilder-ui/src/utils/util";
5
+ import { getAdditionalParamMap as i } from "./standard-event.js";
6
+ import { isPromise as l } from "agilebuilder-ui/src/utils/common-util";
7
7
  import { parseSubTablePermissionCondition as a } from "agilebuilder-ui/src/utils/calculator/calculator-util";
8
- import { isWorkflowPage as u, getListCode as f } from "../common-util.js";
9
- function c(e2, t2, s2) {
10
- const n2 = {};
8
+ import { isWorkflowPage as u, getListCode as c } from "../common-util.js";
9
+ import { scrollIntoComponentWithCode as f, scrollIntoComponentWithUuid as d } from "../anchor-util.js";
10
+ function m(e2, t2, s2) {
11
+ const r2 = {};
11
12
  t2 || (t2 = {});
12
- let r2 = 0;
13
- const i2 = e2.split(".");
14
- return i2.forEach((e3) => {
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;
13
+ let n2 = 0;
14
+ const o2 = e2.split(".");
15
+ return o2.forEach((e3) => {
16
+ let i2;
17
+ if (n2 === o2.length - 1) i2 = function(e4, t3, s3) {
18
+ let r3;
19
+ for (let n3 = 0; n3 < t3.length; n3++) if (r3 = 0 === n3 ? e4[t3[n3]] : r3.fields[t3[n3]], n3 !== t3.length - 1) {
20
+ if (t3[n3 + 1] === s3) break;
20
21
  }
21
- return n3;
22
- }(n2, i2, e3), l2.fields[e3] = s2;
22
+ return r3;
23
+ }(r2, o2, e3), i2.fields[e3] = s2;
23
24
  else {
24
25
  let s3;
25
- 0 === r2 ? l2 = t2 : (s3 = function(e4, t3, s4) {
26
- let n3;
27
- for (let r3 = 0; r3 < t3.length; r3++) {
28
- const i3 = t3[r3];
29
- if (n3 = 0 === r3 ? e4[i3] : n3.fields[t3[r3]], i3 === s4) break;
26
+ 0 === n2 ? i2 = t2 : (s3 = function(e4, t3, s4) {
27
+ let r3;
28
+ for (let n3 = 0; n3 < t3.length; n3++) {
29
+ const o3 = t3[n3];
30
+ if (r3 = 0 === n3 ? e4[o3] : r3.fields[t3[n3]], o3 === s4) break;
30
31
  }
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];
32
+ return r3;
33
+ }(r2, o2, o2[n2 - 1]), i2 = s3.fields), i2[e3] || (i2[e3] = { type: "object", required: true, fields: {} }), 0 === n2 ? r2[e3] = i2[e3] : s3.fields[e3] = i2[e3];
33
34
  }
34
- r2++;
35
- }), n2;
35
+ n2++;
36
+ }), r2;
36
37
  }
37
- function d(e2, t2, s2, n2, r2, i2) {
38
- return p(e2, t2, s2, n2, true, r2, i2);
38
+ function p(e2, t2, s2, r2, n2, o2) {
39
+ return b(e2, t2, s2, r2, true, n2, o2);
39
40
  }
40
- function m(e2) {
41
+ function g(e2) {
41
42
  if (e2) return Object.keys(e2).forEach((t2) => {
42
43
  if (t2.indexOf(".") >= 0) {
43
44
  let s2 = [];
@@ -45,128 +46,168 @@ function m(e2) {
45
46
  }
46
47
  }), e2;
47
48
  }
48
- function p(n2, r2, i2, l2, o2, a2, u2) {
49
- let f2, c2 = m(r2);
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
- let d2;
49
+ function b(r2, n2, o2, i2, l2, a2, u2) {
50
+ let c2, d2 = g(n2);
51
+ if (n2 && null !== n2 || !o2 || (d2 = {}), !d2 || 0 === Object.keys(d2).length) return r2.validateErrorField = "", true;
52
+ return new e(d2).validate(r2, { first: true }, (e2, d3) => {
53
+ let m2;
53
54
  if (e2) {
54
- f2 = e2[0].message, d2 = e2[0].field, t({ message: f2, showClose: true, type: "warning", duration: 3e3 });
55
- const n3 = s(u2, d2);
56
- n3 && n3.addRequiredClass && n3.addRequiredClass();
57
- } else f2 = true;
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);
55
+ c2 = e2[0].message, m2 = e2[0].field, t({ message: c2, showClose: true, type: "warning", duration: 3e3 });
56
+ const r3 = s(u2, m2);
57
+ if (r3 && r3.addRequiredClass) {
58
+ r3.addRequiredClass();
59
+ try {
60
+ f(u2, m2);
61
+ } catch (e3) {
62
+ console.error("滚动失败", e3);
63
+ }
64
+ }
65
+ } else c2 = true;
66
+ if (m2 && true === l2) {
67
+ if (/[A-Z]+/.test(m2) && void 0 !== r2[m2.toLowerCase()]) {
68
+ const e3 = JSON.parse(JSON.stringify(r2));
69
+ e3[m2.toUpperCase()] = r2[m2.toLowerCase()], delete e3[m2.toLowerCase()], c2 = b(e3, n2, o2, i2, false, a2, u2);
62
70
  }
63
71
  }
64
- }), f2;
72
+ }), c2;
65
73
  }
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) {
74
+ function h(e2, r2, n2) {
75
+ const l2 = e2.entity.data, c2 = { ...e2.entity.page, ...l2 }, d2 = e2.rules, m2 = r2.props.base ? r2.props.base.isEnableRequired : null;
76
+ return null != m2 && (n2 = m2), null == n2 && (n2 = false), function(e3, r3, n3, l3) {
69
77
  if (e3) {
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
- if (r5) {
75
- let l2, u3, g2, b2, h2 = r5;
76
- const w2 = n4.workflowRules;
78
+ return u(l3) ? function(e4, r4, n4) {
79
+ return new Promise((l4, u2) => {
80
+ const c3 = i(r4), d3 = r4.entity.context, m3 = r4.entity.task, p2 = true, g2 = r4.subTablePageInfo;
81
+ w(e4, r4, n4).then((n5) => {
82
+ if (n5) {
83
+ let i2, u3, b2, h2, y2 = n5;
84
+ const w2 = r4.workflowRules;
77
85
  if (w2) {
78
- if (!function(e5, n5) {
79
- var _a, _b, _c;
86
+ if (!function(e5, r5) {
87
+ var _a, _b, _c, _d;
80
88
  if (!e5.actionPermissions) return true;
81
- const r7 = Object.keys(e5.actionPermissions);
82
- for (let l3 = 0; l3 < r7.length; l3++) {
83
- const o5 = r7[l3], u4 = e5.actionPermissions[o5];
89
+ const n7 = Object.keys(e5.actionPermissions);
90
+ for (let i3 = 0; i3 < n7.length; i3++) {
91
+ const l5 = n7[i3], u4 = e5.actionPermissions[l5];
84
92
  if (u4 && u4.notEmpty) {
85
- let r8 = false;
86
- if (n5[o5] ? Array.isArray(n5[o5]) && 0 === n5[o5].length && (r8 = true) : r8 = true, r8) {
87
- const r9 = s(e5, o5);
88
- if (!r9) return true;
89
- const l4 = r9.getConfigure();
90
- if ((_a = u4.notEmptyCondition) == null ? void 0 : _a.parentCondition) {
91
- 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;
93
+ if ((_a = e5.hiddenNotValidatorCodes) == null ? void 0 : _a.has(l5)) continue;
94
+ let n8 = false;
95
+ if (r5[l5] ? Array.isArray(r5[l5]) && 0 === r5[l5].length && (n8 = true) : n8 = true, n8) {
96
+ const n9 = s(e5, l5);
97
+ if (!n9) return true;
98
+ const i4 = n9.getConfigure();
99
+ if ((_b = u4.notEmptyCondition) == null ? void 0 : _b.parentCondition) {
100
+ if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, r5, {}, (_c = e5.entity) == null ? void 0 : _c.request, (_d = e5.entity) == null ? void 0 : _d.task, e5.contextParam)) return true;
92
101
  }
93
- return t({ showClose: true, message: i().t("superPageRuntimeMessage.xxxNotEmpty", { label: l4.title ? l4.title : o5 }), type: "warning" }), false;
102
+ return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: i4.title ? i4.title : l5 }), type: "warning" }), false;
94
103
  }
95
104
  }
96
105
  }
97
106
  return true;
98
- }(n4, e4)) return void o4(false);
99
- const r6 = true, y2 = Object.assign({}, w2);
100
- y2.subRules && (Object.keys(y2.subRules).length > 0 ? y2.totalSubRules || (y2.totalSubRules = {}) : delete y2.subRules);
101
- const R2 = window.$vueApp.config.globalProperties.$formValidator(e4, y2, m2, f3, d3, c3, p2, r6);
102
- h2 = R2.msg, l2 = R2.field, u3 = R2.listCode, g2 = R2.rowIndex, b2 = R2.pageNum;
103
- } else h2 = true;
104
- if (true !== h2) {
105
- if (t({ showClose: true, message: h2 + "", type: "warning" }), u3) {
106
- const e5 = s(n4, u3);
107
- e5 && e5.addRequiredClass && e5.addRequiredClass(l2, g2, b2);
107
+ }(r4, e4)) return void l4(false);
108
+ const n6 = true, f2 = Object.assign({}, w2), R2 = r4.hiddenNotValidatorCodes;
109
+ R2 && R2.size > 0 && R2.forEach((e5) => {
110
+ f2.subRules && delete f2.subRules[e5], f2.rules && delete f2.rules[e5];
111
+ }), f2.subRules && (Object.keys(f2.subRules).length > 0 ? f2.totalSubRules || (f2.totalSubRules = {}) : delete f2.subRules);
112
+ const v2 = window.$vueApp.config.globalProperties.$formValidator(e4, f2, p2, c3, m3, d3, g2, n6);
113
+ y2 = v2.msg, i2 = v2.field, u3 = v2.listCode, b2 = v2.rowIndex, h2 = v2.pageNum;
114
+ } else y2 = true;
115
+ if (true !== y2) {
116
+ if (t({ showClose: true, message: y2 + "", type: "warning" }), u3) {
117
+ const e5 = s(r4, u3);
118
+ if (e5 && e5.addRequiredClass) {
119
+ e5.addRequiredClass(i2, b2, h2);
120
+ try {
121
+ f(r4, u3), e5.scrollToCell({ fieldName: i2, rowIndex: b2, pageNum: h2 });
122
+ } catch (e6) {
123
+ console.error("滚动到验证失败的子表字段失败,可能是表格组件版本较低没有scrollToCell方法", e6);
124
+ }
125
+ }
108
126
  } else {
109
- const e5 = s(n4, l2);
110
- e5 && e5.addRequiredClass && e5.addRequiredClass();
127
+ const e5 = s(r4, i2);
128
+ if (e5 && e5.addRequiredClass) {
129
+ e5.addRequiredClass();
130
+ try {
131
+ f(r4, i2);
132
+ } catch (e6) {
133
+ console.error("滚动失败", e6);
134
+ }
135
+ }
111
136
  }
112
- o4(false);
113
- } else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, o4(e4);
114
- } else u2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
137
+ l4(false);
138
+ } else Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4);
139
+ } else u2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
115
140
  }).catch((e5) => {
116
141
  u2(e5);
117
142
  });
118
143
  });
119
- }(n3, o3, r3) : function(e4, t2, s2) {
120
- return new Promise((n4, r4) => {
121
- h(e4, t2, s2).then((t3) => {
144
+ }(r3, l3, n3) : function(e4, t2, s2) {
145
+ return new Promise((r4, n4) => {
146
+ w(e4, t2, s2).then((t3) => {
122
147
  if (t3) {
123
148
  const t4 = JSON.parse(JSON.stringify(e4));
124
- Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, n4(t4);
125
- } else n4(false);
149
+ Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, r4(t4);
150
+ } else r4(false);
126
151
  }).catch((e5) => {
127
- r4(e5);
152
+ n4(e5);
128
153
  });
129
154
  });
130
- }(n3, o3, r3);
155
+ }(r3, l3, n3);
131
156
  }
132
157
  return new Promise((e4, t2) => {
133
158
  e4(true);
134
159
  });
135
- }(r2, f2, c2, e2);
160
+ }(n2, c2, d2, e2);
136
161
  }
137
- function b(e2) {
162
+ function y(e2) {
138
163
  return new Promise((t2, s2) => {
139
- const r2 = [], i2 = e2.customValidatorUuids;
140
- i2 && i2.forEach((t3) => {
141
- const s3 = n(e2, t3);
142
- s3 && s3.validator && r2.push(s3.validator());
143
- }), r2 && r2.length > 0 ? Promise.all(r2).then((e3) => {
164
+ const n2 = [], o2 = e2.customValidatorUuids;
165
+ o2 && o2.forEach((t3) => {
166
+ const s3 = r(e2, t3);
167
+ s3 && s3.validator && n2.push(s3.validator());
168
+ }), n2 && n2.length > 0 ? Promise.all(n2).then((e3) => {
144
169
  e3.includes(false) ? t2(false) : t2(true);
145
170
  }) : t2(true);
146
171
  });
147
172
  }
148
- function h(e2, s2, r2) {
149
- return new Promise((l2, a2) => {
150
- const f2 = JSON.parse(JSON.stringify(e2));
151
- if (r2 && 0 !== Object.keys(r2).length) {
152
- if (true === d(f2, r2, null, null, true, s2)) {
173
+ function w(e2, s2, n2) {
174
+ return new Promise((i2, a2) => {
175
+ const c2 = JSON.parse(JSON.stringify(e2)), f2 = { ...n2 }, m2 = s2.hiddenNotValidatorCodes;
176
+ if (f2 && m2 && m2.size > 0 && m2.forEach((e3) => {
177
+ delete f2[e3];
178
+ }), f2 && 0 !== Object.keys(f2).length) {
179
+ if (true === p(c2, f2, null, null, true, s2)) {
153
180
  const e3 = function(e4) {
154
181
  var _a;
155
182
  if (!e4) return true;
156
183
  if (u(e4)) return true;
157
184
  const s3 = e4.tableUuids;
158
185
  if (!s3) return true;
159
- for (let r3 = 0; r3 < s3.length; r3++) {
160
- const l3 = s3[r3], o2 = n(e4, l3);
161
- if (o2) {
162
- if (o2.getConfigure()) {
163
- const e5 = o2.getConfigure();
164
- if ((_a = e5 == null ? void 0 : e5.verification) == null ? void 0 : _a.notEmpty) {
165
- const s4 = o2.getTableData();
166
- 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;
186
+ for (let n3 = 0; n3 < s3.length; n3++) {
187
+ const i3 = s3[n3], l2 = e4.hiddenNotValidatorCodes;
188
+ if (l2 && l2.size > 0 && l2.has(i3)) continue;
189
+ const a3 = r(e4, i3);
190
+ if (a3) {
191
+ if (a3.getConfigure()) {
192
+ const s4 = a3.getConfigure();
193
+ if ((_a = s4 == null ? void 0 : s4.verification) == null ? void 0 : _a.notEmpty) {
194
+ const r2 = a3.getTableData();
195
+ if (!r2 || !Array.isArray(r2) || 0 === r2.length) {
196
+ try {
197
+ d(e4, i3);
198
+ } catch (e5) {
199
+ }
200
+ return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: s4.title ? s4.title : s4.code }), type: "warning" }), false;
201
+ }
202
+ }
203
+ }
204
+ if (!a3.validatorSunTableListData()) {
205
+ try {
206
+ d(e4, i3);
207
+ } catch (e5) {
167
208
  }
209
+ return false;
168
210
  }
169
- if (!o2.validatorSunTableListData()) return false;
170
211
  }
171
212
  }
172
213
  return true;
@@ -175,16 +216,16 @@ function h(e2, s2, r2) {
175
216
  const e4 = function(e5) {
176
217
  const t2 = [];
177
218
  e5.customRuleEvents && e5.customRuleEvents.length > 0 && e5.customRuleEvents.forEach((s3) => {
178
- s3.events.forEach((n2) => {
179
- const r3 = e5.customEvents[n2];
180
- t2.push(r3.apply(r3, [{ prop: s3.prop, pageContext: e5 }]));
219
+ s3.events.forEach((r2) => {
220
+ const n3 = e5.customEvents[r2];
221
+ t2.push(n3.apply(n3, [{ prop: s3.prop, pageContext: e5 }]));
181
222
  });
182
223
  });
183
224
  if (t2 && t2.length > 0) return new Promise((e6, s3) => {
184
- const n2 = [], r3 = [];
225
+ const r2 = [], n3 = [];
185
226
  t2.forEach((e7) => {
186
- o(e7) ? n2.push(e7) : r3.push(e7);
187
- }), r3.includes(false) && e6(false), n2.length > 0 ? Promise.all(n2).then((t3) => {
227
+ l(e7) ? r2.push(e7) : n3.push(e7);
228
+ }), n3.includes(false) && e6(false), r2.length > 0 ? Promise.all(r2).then((t3) => {
188
229
  t3.includes(false) ? e6(false) : e6(true);
189
230
  }).catch((t3) => {
190
231
  console.error(t3), e6(false);
@@ -192,135 +233,135 @@ function h(e2, s2, r2) {
192
233
  });
193
234
  return null;
194
235
  }(s2);
195
- e4 && o(e4) ? e4.then((e5) => {
196
- e5 ? b(s2).then((e6) => {
197
- l2(e6);
198
- }) : l2(false);
199
- }) : b(s2).then((e5) => {
200
- l2(e5);
236
+ e4 && l(e4) ? e4.then((e5) => {
237
+ e5 ? y(s2).then((e6) => {
238
+ i2(e6);
239
+ }) : i2(false);
240
+ }) : y(s2).then((e5) => {
241
+ i2(e5);
201
242
  });
202
- } else a2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
203
- } else a2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
204
- } else l2(true);
243
+ } else a2(new Error(o().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
244
+ } else a2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
245
+ } else i2(true);
205
246
  });
206
247
  }
207
- function w(e2, t2, s2) {
248
+ function R(e2, t2, s2) {
208
249
  if (!t2) return s2;
209
250
  s2 || (s2 = {});
210
- const n2 = u(e2), r2 = Object.keys(t2), i2 = t2;
211
- return r2.forEach((e3) => {
251
+ const r2 = u(e2), n2 = Object.keys(t2), o2 = t2;
252
+ return n2.forEach((e3) => {
212
253
  if ("__subRules" === e3) {
213
- const e4 = i2.__subRules;
254
+ const e4 = o2.__subRules;
214
255
  Object.keys(e4).forEach((t3) => {
215
256
  s2.subRules || (s2.subRules = {}), s2.subRules[t3] ? Object.assign(s2.subRules[t3], e4[t3]) : s2.subRules[t3] = e4[t3];
216
257
  });
217
- } else j(i2[e3]), n2 ? (s2.rules[e3] = i2[e3], s2[e3] && (s2[e3] = i2[e3])) : s2[e3] = i2[e3];
218
- }), m(s2);
258
+ } else x(o2[e3]), r2 ? (s2.rules[e3] = o2[e3], s2[e3] && (s2[e3] = o2[e3])) : s2[e3] = o2[e3];
259
+ }), g(s2);
219
260
  }
220
- function y(e2) {
261
+ function v(e2) {
221
262
  if (!e2 || 0 === Object.keys(e2).length) return;
222
263
  const t2 = {}, s2 = Object.keys(e2);
223
- for (let n2 = 0; n2 < s2.length; n2++) {
224
- const r2 = s2[n2], i2 = e2[r2];
225
- R(i2), r2.indexOf(".") > 0 ? c(r2, t2, i2) : i2 && i2.length > 0 && (t2[r2] = [...i2]);
264
+ for (let r2 = 0; r2 < s2.length; r2++) {
265
+ const n2 = s2[r2], o2 = e2[n2];
266
+ P(o2), n2.indexOf(".") > 0 ? m(n2, t2, o2) : o2 && o2.length > 0 && (t2[n2] = [...o2]);
226
267
  }
227
268
  return t2;
228
269
  }
229
- function R(e2, t2) {
270
+ function P(e2, t2) {
230
271
  e2.forEach((e3) => {
231
272
  e3.message;
232
- const t3 = e3.label, s2 = i().t(t3);
233
- 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 }));
273
+ const t3 = e3.label, s2 = o().t(t3);
274
+ e3.required && (e3.message = o().t("superPageRuntimeMessage.required", { label: s2 })), e3.myType && (e3.message = o().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), e3.patternType && (e3.message = o().t("superPageRuntimeMessage.formatMismatch", { label: s2 })), void 0 !== e3.max && null !== e3.max && (e3.message = o().t("superPageRuntimeMessage.overMaxLength", { label: s2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = o().t("superPageRuntimeMessage.limitMinLength", { label: s2, value: e3.min }));
234
275
  });
235
276
  }
236
- function v(e2) {
237
- const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, n2 = l(e2), r2 = e2.entity.context, i2 = e2.entity.task;
277
+ function E(e2) {
278
+ const t2 = e2.entity.data, s2 = { ...e2.entity.page, ...t2 }, r2 = i(e2), n2 = e2.entity.context, o2 = e2.entity.task;
238
279
  e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
239
280
  t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
240
281
  });
241
- let o2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, n2, i2, r2);
282
+ let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, s2, true, r2, o2, n2);
242
283
  const a2 = e2.customRules;
243
- return o2 = w(e2, a2, o2), o2 && (o2.rules || (o2.rules = {}), o2.subRules || (o2.subRules = {})), o2;
284
+ return l2 = R(e2, a2, l2), l2 && (l2.rules || (l2.rules = {}), l2.subRules || (l2.subRules = {})), l2;
244
285
  }
245
- function P(e2, t2) {
286
+ function k(e2, t2) {
246
287
  if (!t2) return;
247
- const n2 = {};
288
+ const r2 = {};
248
289
  if (t2.forEach((e3) => {
249
290
  const { name: t3, rules: s2 } = e3;
250
- s2 ? n2[t3] = s2 : false === e3.required && (n2[t3] = []);
291
+ s2 ? r2[t3] = s2 : false === e3.required && (r2[t3] = []);
251
292
  }), u(e2)) {
252
293
  let t3 = e2.workflowRules ? e2.workflowRules : { rules: {}, subRules: {} };
253
- t3 = w(e2, n2, t3), e2.workflowRules = t3;
294
+ t3 = R(e2, r2, t3), e2.workflowRules = t3;
254
295
  } else {
255
296
  let t3 = e2.rules ? e2.rules : {};
256
- t3 = w(e2, n2, t3), e2.rules = t3;
297
+ t3 = R(e2, r2, t3), e2.rules = t3;
257
298
  }
258
- const r2 = t2.filter((e3) => "_all_fields" === e3.name);
259
- r2 && r2.length > 0 && E(e2, r2[0]), t2.forEach((t3) => {
299
+ const n2 = t2.filter((e3) => "_all_fields" === e3.name);
300
+ n2 && n2.length > 0 && O(e2, n2[0]), t2.forEach((t3) => {
260
301
  if ("_all_fields" !== t3.name) {
261
- const n3 = s(e2, t3.name);
262
- C(e2, n3, t3);
302
+ const r3 = s(e2, t3.name);
303
+ T(e2, r3, t3);
263
304
  }
264
305
  });
265
306
  }
266
- function k(e2) {
267
- E(e2, { disabled: true });
307
+ function C(e2) {
308
+ O(e2, { disabled: true });
268
309
  }
269
- function E(e2, t2) {
270
- const s2 = r(e2);
271
- if (s2) for (const n2 in s2) {
272
- const r2 = s2[n2];
273
- C(e2, r2 ? r2.value : r2, t2);
310
+ function O(e2, t2) {
311
+ const s2 = n(e2);
312
+ if (s2) for (const r2 in s2) {
313
+ const n2 = s2[r2];
314
+ T(e2, n2 ? n2.value : n2, t2);
274
315
  }
275
316
  }
276
- function O(e2, t2, r2) {
317
+ function j(e2, t2, n2) {
277
318
  var _a;
278
- let i2, l2;
279
- 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;
280
- const o2 = e2.code, a2 = e2.version, u2 = f(o2, a2, l2);
281
- 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]) {
282
- const s2 = e2.workflowRules.subRules[r2];
319
+ let o2, i2;
320
+ if (n2 ? (o2 = s(e2, n2), i2 = o2 ? o2.getTableUuid() : null) : (i2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, o2 = i2 ? r(e2, i2) : null), !o2) return;
321
+ const l2 = e2.code, a2 = e2.version, u2 = c(l2, a2, i2);
322
+ if (e2.workflowRules || (e2.workflowRules = { rules: {}, subRules: {} }), e2.workflowRules.subRules || (e2.workflowRules.subRules = {}), e2.workflowRules.subRules[n2] || (e2.workflowRules.subRules[n2] = {}), ((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[n2]) {
323
+ const s2 = e2.workflowRules.subRules[n2];
283
324
  t2.forEach((e3) => {
284
325
  s2[e3.name] = e3;
285
326
  });
286
327
  }
287
- i2.dynamicControlTableEdit(e2, t2, u2);
328
+ o2.dynamicControlTableEdit(e2, t2, u2);
288
329
  }
289
- function C(e2, t2, s2) {
330
+ function T(e2, t2, s2) {
290
331
  var _a, _b, _c;
291
332
  if (t2) {
292
- const n2 = t2.getConfigure();
293
- if (void 0 !== s2.show && (s2.show ? t2.show() : t2.hide()), void 0 !== s2.required && ((_a = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _a.props) && (n2.runtime.props.required = s2.required), void 0 !== s2.readonly && ((_b = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _b.props) && (s2.readonly ? n2.runtime.props.state = "readonly" : n2.runtime.props.state = "enabled"), void 0 !== s2.disabled && n2 && (((_c = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _c.props) && (s2.disabled ? n2.runtime.props.state = "disabled" : n2.runtime.props.state = "enabled"), "table" === n2.name)) {
333
+ const r2 = t2.getConfigure();
334
+ if (void 0 !== s2.show && (s2.show ? t2.show() : t2.hide()), void 0 !== s2.required && ((_a = r2 == null ? void 0 : r2.runtime) == null ? void 0 : _a.props) && (r2.runtime.props.required = s2.required), void 0 !== s2.readonly && ((_b = r2 == null ? void 0 : r2.runtime) == null ? void 0 : _b.props) && (s2.readonly ? r2.runtime.props.state = "readonly" : r2.runtime.props.state = "enabled"), void 0 !== s2.disabled && r2 && (((_c = r2 == null ? void 0 : r2.runtime) == null ? void 0 : _c.props) && (s2.disabled ? r2.runtime.props.state = "disabled" : r2.runtime.props.state = "enabled"), "table" === r2.name)) {
294
335
  t2.changeOperationAddState(false);
295
- const s3 = t2 ? t2.getTableUuid() : null, n3 = e2.code, r2 = e2.version, i2 = f(n3, r2, s3), l2 = [{ name: "_all_fields", disabled: true }];
296
- t2.dynamicControlTableEdit(e2, l2, i2);
336
+ const s3 = t2 ? t2.getTableUuid() : null, r3 = e2.code, n2 = e2.version, o2 = c(r3, n2, s3), i2 = [{ name: "_all_fields", disabled: true }];
337
+ t2.dynamicControlTableEdit(e2, i2, o2);
297
338
  }
298
339
  }
299
340
  }
300
- function j(e2) {
341
+ function x(e2) {
301
342
  if (!(e2 == null ? void 0 : e2.type)) return;
302
- const t2 = x[e2.type];
343
+ const t2 = N[e2.type];
303
344
  t2 && (e2.validator = t2.validator);
304
345
  }
305
- const x = { boolean: { validator: function(e2, t2, s2) {
306
- return true === T(e2, t2) && ("number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2));
346
+ const N = { boolean: { validator: function(e2, t2, s2) {
347
+ return true === M(e2, t2) && ("number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2));
307
348
  } }, date: { validator: function(e2, t2, s2) {
308
- if (true !== T(e2, t2)) return false;
309
- const n2 = new Date(t2);
310
- return !isNaN(n2.getTime());
349
+ if (true !== M(e2, t2)) return false;
350
+ const r2 = new Date(t2);
351
+ return !isNaN(r2.getTime());
311
352
  } }, number: { validator: function(e2, t2, s2) {
312
- return true === T(e2, t2) && (("string" != typeof t2 || "" !== t2.trim()) && ("number" == typeof t2 || !isNaN(Number(t2))));
313
- } } }, T = (e2, t2) => null != t2 && "" !== t2 || !e2.required;
353
+ return true === M(e2, t2) && (("string" != typeof t2 || "" !== t2.trim()) && ("number" == typeof t2 || !isNaN(Number(t2))));
354
+ } } }, M = (e2, t2) => null != t2 && "" !== t2 || !e2.required;
314
355
  export {
315
- k as disabledAllFields,
316
- O as dynamicControlTableEdit,
317
- v as getWorkflowRules,
318
- R as i18nValidatePropRulesMessage,
319
- y as i18nValidateRulesMessage,
320
- w as packageCustomRules,
321
- j as packageCustomValidator,
322
- c as setObjectPropRule,
323
- P as updateFormItemEditState,
324
- g as validateDataModelFunc,
325
- d as validator
356
+ C as disabledAllFields,
357
+ j as dynamicControlTableEdit,
358
+ E as getWorkflowRules,
359
+ P as i18nValidatePropRulesMessage,
360
+ v as i18nValidateRulesMessage,
361
+ R as packageCustomRules,
362
+ x as packageCustomValidator,
363
+ m as setObjectPropRule,
364
+ k as updateFormItemEditState,
365
+ h as validateDataModelFunc,
366
+ p as validator
326
367
  };
@@ -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-3175013a"]]);
4
+ const r = o(e, [["__scopeId", "data-v-24135501"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -26,9 +26,9 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
26
26
  }
27
27
  g(H.configure, Q), o(() => {
28
28
  const e3 = v(H.pageContext, H.configure);
29
- e3 && oe(e3), S.value && (z || Object.keys(B).length > 0) && S.value.chart.on("click", function(e4) {
29
+ e3 && oe(e3), !z && H.configure.clickSet && S.value && m(H.pageContext, H.configure, S.value.chart), S.value && (z || Object.keys(B).length > 0) && S.value.chart.on("click", function(e4) {
30
30
  z ? U.value && U.value.drill && U.value.drill(e4, H.configure.cacheDatas) : Z(e4);
31
- }), !z && H.configure.clickSet && S.value && m(H.pageContext, H.configure, S.value.chart);
31
+ });
32
32
  });
33
33
  let $ = M.groupValue;
34
34
  function ee(e3) {
@@ -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-6a38f7d4"]]);
4
+ const t = r(e, [["__scopeId", "data-v-15c32b0b"]]);
5
5
  export {
6
6
  t as default
7
7
  };