super-page-runtime 2.2.23 → 2.2.29-tmp1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +56 -56
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -45
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +16 -14
  5. package/dist/es/components/runtime/utils/charts/chart-util.js +4 -2
  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 +194 -182
  8. package/dist/es/components/runtime/utils/events/print-label.js +38 -37
  9. package/dist/es/components/runtime/utils/events/standard-event.js +452 -440
  10. package/dist/es/components/runtime/utils/events/validator-util.js +30 -30
  11. package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
  12. package/dist/es/components/runtime/utils/page-helper-util.js +215 -214
  13. package/dist/es/components/runtime/utils/page-init-util.js +72 -61
  14. package/dist/es/components/runtime/utils/page-store.js +1 -1
  15. package/dist/es/components/runtime/utils/table-utils.js +23 -23
  16. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +16 -12
  17. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  18. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +11 -9
  19. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
  20. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -13
  21. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
  22. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +17 -16
  23. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +12 -7
  24. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +16 -15
  25. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +26 -22
  26. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +3 -3
  27. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
  28. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +114 -111
  29. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +139 -136
  30. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -0
  31. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -29
  32. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +40 -38
  33. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +43 -41
  34. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +39 -38
  35. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +8 -6
  36. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -9
  37. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -0
  38. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -0
  39. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  40. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +72 -71
  41. package/dist/es/components/runtime/views/home-chart.vue.js +10 -9
  42. package/dist/es/components/runtime/views/super-page-dialog.vue.js +14 -13
  43. package/dist/es/components/runtime/views/super-page.vue.js +134 -132
  44. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { isMobileBrowser as e, isPromise as n } from "agilebuilder-ui/src/utils/common-util";
2
- import { getAdditionalParamMap as t, standardEvents as i, judgeDataNumber as o, dealAfterOperate as r } from "./standard-event.js";
2
+ import { getAdditionalParamMap as t, standardEvents as o, judgeDataNumber as i, dealAfterOperate as r } from "./standard-event.js";
3
3
  import { validateDataModelFunc as u } from "./validator-util.js";
4
4
  import { getComponentRef as c, getComponentRefByCode as l } from "../global-refs.js";
5
5
  import { ElMessage as a } from "element-plus";
@@ -8,8 +8,8 @@ import { getListCode as f, deepCopy as g } from "../common-util.js";
8
8
  import m from "../eventBus.js";
9
9
  import { getValueFromSource as p } from "../page-helper-util.js";
10
10
  import { expressJump as d } from "../table-utils.js";
11
- const b = ["downloadTemplate", "back", "exportForm", "exportPDF", "lineEditCreate", "workflowSave"];
12
- function C(e2, n2) {
11
+ const v = ["downloadTemplate", "back", "exportForm", "exportPDF", "lineEditCreate", "workflowSave"], b = ["downloadTemplate", "exportForm", "exportPDF", "export", "exportCharts"], C = ["import"];
12
+ function x(e2, n2) {
13
13
  if (e2 && e2.customEvents) {
14
14
  const t2 = function(e3) {
15
15
  const n3 = {};
@@ -30,15 +30,15 @@ function C(e2, n2) {
30
30
  !function(e3, n3) {
31
31
  if (!n3) return;
32
32
  for (const t3 in n3) {
33
- x(n3[t3], e3);
33
+ j(n3[t3], e3);
34
34
  }
35
- }(n2, t2), n2.customEvents = t2;
35
+ }(n2, t2), console.log("initPage customEvents", t2), n2.customEvents = t2;
36
36
  }
37
37
  }
38
- function v(e2, n2) {
38
+ function k(e2, n2) {
39
39
  if (e2.customEvents) return e2.customEvents[n2];
40
40
  }
41
- function x(e2, n2) {
41
+ function j(e2, n2) {
42
42
  e2.get = function(e3) {
43
43
  return e3 ? l(n2, e3) : void 0;
44
44
  }, e2.getByUuid = function(e3) {
@@ -59,10 +59,10 @@ function x(e2, n2) {
59
59
  }, e2.getPage = function() {
60
60
  return n2 && n2.entity ? n2.entity.page : {};
61
61
  }, e2.getCustomFunc = function(e3) {
62
- return v(n2, e3);
62
+ return k(n2, e3);
63
63
  };
64
64
  }
65
- function k(e2) {
65
+ function O(e2) {
66
66
  if (e2 && e2.customEvents) {
67
67
  const n2 = e2.customEvents.filter((e3) => "customFunc" === e3.name && e3.jsContent);
68
68
  n2 && n2.length > 0 && n2.forEach((e3) => {
@@ -70,171 +70,171 @@ function k(e2) {
70
70
  });
71
71
  }
72
72
  }
73
- function j(e2, n2, t2, i2, o2) {
74
- return y(e2, n2, t2, i2, true, o2, false);
73
+ function h(e2, n2, t2, o2, i2) {
74
+ return N(e2, n2, t2, o2, true, i2, false);
75
75
  }
76
- function O(e2, n2, t2, i2, o2) {
76
+ function E(e2, n2, t2, o2, i2) {
77
77
  var _a, _b;
78
- if (i2 && "change" === i2) {
78
+ if (o2 && "change" === o2) {
79
79
  const e3 = n2.subTableWatchProps;
80
80
  if (e3) for (const n3 in e3) {
81
- const i3 = e3[n3], o3 = (_b = (_a = t2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop;
82
- i3 && i3.indexOf(o3) >= 0 && m.$emit("_refreshSubTable_" + n3, { propName: o3 });
81
+ const o3 = e3[n3], i3 = (_b = (_a = t2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop;
82
+ o3 && o3.indexOf(i3) >= 0 && m.$emit("_refreshSubTable_" + n3, { propName: i3 });
83
83
  }
84
84
  }
85
- return y(e2, n2, t2, i2, true, o2, true);
85
+ return N(e2, n2, t2, o2, true, i2, true);
86
86
  }
87
- function h(e2, n2, t2, i2) {
88
- return O(e2, n2, t2, "afterInit", i2);
87
+ function y(e2, n2, t2, o2) {
88
+ return E(e2, n2, t2, "afterInit", o2);
89
89
  }
90
- function E(e2, n2, t2, i2, o2) {
91
- return y(e2, n2, t2, i2, false, o2, false);
90
+ function w(e2, n2, t2, o2, i2) {
91
+ return N(e2, n2, t2, o2, false, i2, false);
92
92
  }
93
- function y(e2, t2, i2, r2, u2, c2, l2) {
94
- const a2 = i2 && i2.runtime && i2.runtime.events ? i2.runtime.events : [];
93
+ function N(e2, t2, o2, r2, u2, c2, l2) {
94
+ const a2 = o2 && o2.runtime && o2.runtime.events ? o2.runtime.events : [];
95
95
  let s2;
96
96
  if (l2 || !/* @__PURE__ */ function(e3) {
97
97
  return e3 && ("click" === e3 || "suffixClick" === e3 || "prefixClick" === e3);
98
98
  }(r2)) {
99
- if (s2 = q(t2, a2, r2), u2) {
100
- return B(t2, i2, s2, N(t2, i2, e2, c2));
99
+ if (s2 = I(t2, a2, r2), u2) {
100
+ return z(t2, o2, s2, P(t2, o2, e2, c2));
101
101
  }
102
102
  return s2;
103
103
  }
104
- !function(e3, t3, i3) {
105
- const r3 = o(t3, i3.ids);
104
+ !function(e3, t3, o3) {
105
+ const r3 = i(t3, o3.ids);
106
106
  if (!r3) return;
107
- if (void 0 !== e3.canClick && false === e3.canClick) return;
108
- $(i3).then((o2) => {
109
- if (true === o2.canExecute) {
107
+ if (void 0 !== e3.canClick && false === e3.canClick) return void console.log("不能重复点击");
108
+ H(o3).then((i2) => {
109
+ if (true === i2.canExecute) {
110
110
  e3.clickUuid = t3.uuid, e3.canClick = false;
111
- const o3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r4 = q(e3, o3, "beforeValidateForm");
111
+ const i3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r4 = I(e3, i3, "beforeValidateForm");
112
112
  let u3;
113
- if (r4 && (u3 = B(e3, t3, r4, i3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
113
+ if (r4 && (u3 = z(e3, t3, r4, o3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
114
114
  n(u3) ? u3.then((n2) => {
115
- n2 && true === n2 ? S(e3, t3, i3) : e3.canClick = true;
115
+ n2 && true === n2 ? R(e3, t3, o3) : e3.canClick = true;
116
116
  }).catch((n2) => {
117
- e3.canClick = true;
118
- }) : S(e3, t3, i3);
117
+ console.log(n2), e3.canClick = true;
118
+ }) : R(e3, t3, o3);
119
119
  }
120
120
  });
121
- }(t2, i2, P(e2, t2, i2, c2));
121
+ }(t2, o2, T(e2, t2, o2, c2));
122
122
  }
123
- function w(e2, n2) {
123
+ function S(e2, n2) {
124
124
  return n2.props.base.tableUuid ? n2.props.base.tableUuid : e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null;
125
125
  }
126
- function N(e2, n2, t2, i2) {
127
- const o2 = {};
128
- if (i2) for (const e3 in i2) o2[e3] = i2[e3];
129
- return null != t2 && (o2._value = t2), e2 && (o2.pageContext = e2), n2 && (o2.configureObj = n2), o2;
126
+ function P(e2, n2, t2, o2) {
127
+ const i2 = {};
128
+ if (o2) for (const e3 in o2) i2[e3] = o2[e3];
129
+ return null != t2 && (i2._value = t2), e2 && (i2.pageContext = e2), n2 && (i2.configureObj = n2), i2;
130
130
  }
131
- function S(e2, t2, i2) {
132
- const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
131
+ function R(e2, t2, o2) {
132
+ const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
133
133
  let r2 = true;
134
- (i2 == null ? void 0 : i2.skipValidate) && (r2 = false);
135
- const c2 = A(e2, o2, "click");
134
+ console.log("doValidateForm---eventParams=", o2), (o2 == null ? void 0 : o2.skipValidate) && (r2 = false);
135
+ const c2 = $(e2, i2, "click");
136
136
  if (c2) {
137
137
  const e3 = function(e4, n2) {
138
- return e4 && b.includes(n2.eventName);
138
+ return e4 && v.includes(n2.eventName);
139
139
  }(c2.isStandard, c2.event);
140
140
  e3 && (r2 = false);
141
141
  }
142
- u(e2, t2, r2).then((o3) => {
143
- if (!o3) return void (e2.canClick = true);
144
- const r3 = T(e2, t2, i2);
142
+ u(e2, t2, r2).then((i3) => {
143
+ if (!i3) return void (e2.canClick = true);
144
+ const r3 = U(e2, t2, o2);
145
145
  r3 ? n(r3) ? r3.then((n2) => {
146
- n2 ? _(e2, t2, c2, i2) : e2.canClick = true;
146
+ n2 ? q(e2, t2, c2, o2) : e2.canClick = true;
147
147
  }).catch((n2) => {
148
- e2.canClick = true;
149
- }) : _(e2, t2, c2, i2) : e2.canClick = true;
148
+ console.error(n2), e2.canClick = true;
149
+ }) : q(e2, t2, c2, o2) : e2.canClick = true;
150
150
  }).catch((n2) => {
151
- e2.canClick = true;
151
+ console.error(n2), e2.canClick = true;
152
152
  });
153
153
  }
154
- function R(e2, n2, t2, i2, o2) {
155
- const r2 = P(e2, n2, t2, o2);
156
- _(n2, t2, A(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], i2), r2);
154
+ function F(e2, n2, t2, o2, i2) {
155
+ const r2 = T(e2, n2, t2, i2);
156
+ q(n2, t2, $(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], o2), r2);
157
157
  }
158
- function P(e2, n2, t2, i2) {
159
- const o2 = n2.code, r2 = n2.version, u2 = w(n2, t2);
158
+ function T(e2, n2, t2, o2) {
159
+ const i2 = n2.code, r2 = n2.version, u2 = S(n2, t2);
160
160
  if (u2) {
161
161
  const e3 = c(n2, u2), t3 = e3 ? e3.getSelections() : null, l2 = e3 ? e3.getSelectionIds() : null;
162
- i2 || (i2 = {}), i2.tableUuid = u2, i2.listCode = f(o2, r2, u2);
163
- U(n2) && (i2.selections = t3, i2.id = l2 && l2.length > 0 ? l2[0] : null, i2.ids = l2);
162
+ o2 || (o2 = {}), o2.tableUuid = u2, o2.listCode = f(i2, r2, u2);
163
+ L(n2) && (o2.selections = t3, o2.id = l2 && l2.length > 0 ? l2[0] : null, o2.ids = l2);
164
164
  const a2 = e3 ? e3.getTableConfigure() : null;
165
- i2.tableConfigure = a2;
165
+ o2.tableConfigure = a2;
166
166
  }
167
- return N(n2, t2, e2, i2);
167
+ return P(n2, t2, e2, o2);
168
168
  }
169
- function T(e2, n2, t2) {
170
- const i2 = q(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
171
- let o2;
172
- return i2 && (o2 = B(e2, n2, i2, null, t2)), void 0 === o2 || o2;
169
+ function U(e2, n2, t2) {
170
+ const o2 = I(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
171
+ let i2;
172
+ return o2 && (i2 = z(e2, n2, o2, null, t2)), void 0 === i2 || i2;
173
173
  }
174
- function F(e2, n2, t2) {
175
- const i2 = e2.code + "_";
176
- m.$emit(i2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
174
+ function D(e2, n2, t2) {
175
+ const o2 = e2.code + "_";
176
+ m.$emit(o2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
177
177
  }
178
- function U(e2, n2) {
178
+ function L(e2, n2) {
179
179
  return !(!e2.pageType || "list" !== e2.pageType);
180
180
  }
181
- function D(e2, t2, i2) {
182
- const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = q(e2, o2, "afterClick");
181
+ function _(e2, t2, o2) {
182
+ const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = I(e2, i2, "afterClick");
183
183
  if (r2) {
184
- const o3 = B(e2, t2, r2, null, i2);
185
- n(o3) ? o3.finally(() => {
184
+ const i3 = z(e2, t2, r2, null, o2);
185
+ n(i3) ? i3.finally(() => {
186
186
  e2.canClick = true;
187
187
  }) : e2.canClick = true;
188
188
  } else e2.canClick = true;
189
189
  }
190
- function L(e2, n2, t2, i2, o2, u2) {
191
- i2 ? (e2.result = o2, e2.canClick = true) : r(e2, n2, o2, "", u2);
192
- const c2 = q(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
193
- c2 && B(e2, n2, c2, t2);
190
+ function V(e2, n2, t2, o2, i2, u2) {
191
+ o2 ? (e2.result = i2, e2.canClick = true) : r(e2, n2, i2, "", u2);
192
+ const c2 = I(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
193
+ c2 && z(e2, n2, c2, t2);
194
194
  }
195
- function _(e2, t2, i2, o2) {
195
+ function q(e2, t2, o2, i2) {
196
196
  let r2 = t2, u2 = t2.props.linkPage;
197
197
  if (u2 && u2 instanceof Array) {
198
198
  const n2 = function(e3) {
199
199
  let n3 = e3 ? e3.row : null;
200
200
  n3 || (n3 = e3 && e3.selections && e3.selections.length > 0 ? e3.selections[0] : null);
201
201
  return n3;
202
- }(o2), i3 = d(e2, t2, u2, n2);
202
+ }(i2), o3 = d(e2, t2, u2, n2);
203
203
  let c2, l2 = false;
204
- i3 && (l2 = i3.show, c2 = l2 ? i3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = g(t2), r2.props.linkPage = u2);
204
+ o3 && (l2 = o3.show, c2 = l2 ? o3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = g(t2), r2.props.linkPage = u2);
205
205
  }
206
- u2 && u2.jumpPageUrl ? (e2.canClick = true, F(e2, r2, o2)) : function(e3, t3, i3, o3) {
207
- const r3 = i3;
206
+ u2 && u2.jumpPageUrl ? (e2.canClick = true, D(e2, r2, i2)) : function(e3, t3, o3, i3) {
207
+ const r3 = o3;
208
208
  if (r3) {
209
- const i4 = r3.func, u3 = r3.isStandard, c2 = r3.event, l2 = B(e3, t3, i4, o3), a2 = U(e3);
209
+ const o4 = r3.func, u3 = r3.isStandard, c2 = r3.event, l2 = z(e3, t3, o4, i3), a2 = L(e3);
210
210
  if (function(e4, n2) {
211
211
  return e4 && ("exportForm" === n2.eventName || "exportPDF" === n2.eventName || "import" === n2.eventName || "assign" === n2.eventName || "copyTask" === n2.eventName || "addSigner" === n2.eventName || "returnTaskTo" === n2.eventName || "removeSigner" === n2.eventName);
212
212
  }(u3, c2)) return void (e3.canClick = true);
213
213
  n(l2) ? l2.then((n2) => {
214
- n2 ? L(e3, t3, o3, u3, n2, a2) : e3.canClick = true;
214
+ n2 ? V(e3, t3, i3, u3, n2, a2) : e3.canClick = true;
215
215
  }).catch((n2) => {
216
- e3.canClick = true;
217
- }) : L(e3, t3, o3, u3, l2, a2);
216
+ console.error(n2), e3.canClick = true;
217
+ }) : V(e3, t3, i3, u3, l2, a2);
218
218
  } else e3.canClick = true;
219
- }(e2, t2, i2, o2);
219
+ }(e2, t2, o2, i2);
220
220
  }
221
- function V(e2, n2) {
221
+ function A(e2, n2) {
222
222
  const t2 = e2.customEvents;
223
223
  if (t2 && n2) {
224
224
  let e3 = "";
225
225
  return e3 = "object" == typeof n2 ? n2.componentUuid + "_" + n2.name : n2, t2[e3];
226
226
  }
227
227
  }
228
- function q(e2, n2, t2) {
228
+ function I(e2, n2, t2) {
229
229
  if (n2 && t2) {
230
- const o2 = n2.filter((e3) => e3.name === t2);
231
- if (o2 && o2.length > 0) {
232
- const n3 = o2[0];
233
- return n3.isStandard ? i[n3.eventName] : V(e2, n3);
230
+ const i2 = n2.filter((e3) => e3.name === t2);
231
+ if (i2 && i2.length > 0) {
232
+ const n3 = i2[0];
233
+ return n3.isStandard ? o[n3.eventName] : A(e2, n3);
234
234
  }
235
235
  }
236
236
  }
237
- function I(e2, n2) {
237
+ function B(e2, n2) {
238
238
  if (e2 && n2) {
239
239
  const t2 = e2.filter((e3) => e3.name === n2);
240
240
  if (t2 && t2.length > 0) {
@@ -242,40 +242,40 @@ function I(e2, n2) {
242
242
  }
243
243
  }
244
244
  }
245
- function A(e2, n2, t2) {
245
+ function $(e2, n2, t2) {
246
246
  if (n2 && t2) {
247
- const o2 = n2.filter((e3) => e3.name === t2);
248
- if (o2 && o2.length > 0) {
249
- const n3 = o2[0];
250
- return n3.isStandard ? { func: i[n3.eventName], isStandard: true, event: n3 } : { func: V(e2, n3), isStandard: false, event: n3 };
247
+ const i2 = n2.filter((e3) => e3.name === t2);
248
+ if (i2 && i2.length > 0) {
249
+ const n3 = i2[0];
250
+ return n3.isStandard ? { func: o[n3.eventName], isStandard: true, event: n3 } : { func: A(e2, n3), isStandard: false, event: n3 };
251
251
  }
252
252
  }
253
253
  }
254
- function B(e2, n2, t2, i2, o2) {
254
+ function z(e2, n2, t2, o2, i2) {
255
255
  if (t2) {
256
- if (i2 || (i2 = { pageContext: e2, configureObj: n2 }), o2 && i2) for (const e3 in o2) i2[e3] = o2[e3];
257
- return t2.apply(t2, [i2]);
256
+ if (o2 || (o2 = { pageContext: e2, configureObj: n2 }), i2 && o2) for (const e3 in i2) o2[e3] = i2[e3];
257
+ return t2.apply(t2, [o2]);
258
258
  }
259
259
  }
260
- function $(e2) {
261
- const n2 = e2.pageContext, i2 = e2.configureObj, o2 = U(n2);
260
+ function H(e2) {
261
+ const n2 = e2.pageContext, o2 = e2.configureObj, i2 = L(n2);
262
262
  let r2 = [];
263
- if (o2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
263
+ if (i2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
264
264
  else {
265
265
  const e3 = n2.entity.data;
266
266
  r2.push(e3);
267
267
  }
268
- const u2 = i2.props.base.condition;
269
- return new Promise((e3, i3) => {
268
+ const u2 = o2.props.base.condition;
269
+ return new Promise((e3, o3) => {
270
270
  if (void 0 === u2 || "" === u2 || void 0 === r2 || 0 === r2.length) e3({ canExecute: true });
271
271
  else {
272
- const i4 = n2.entity.context, o3 = t(n2), c2 = true, l2 = n2.tableName;
272
+ const o4 = n2.entity.context, i3 = t(n2), c2 = true, l2 = n2.tableName;
273
273
  let f2, g2, m2 = true;
274
274
  for (let e4 = 0; e4 < r2.length; e4++) {
275
275
  const t2 = r2[e4];
276
276
  for (let e5 = 0; e5 < u2.length; e5++) {
277
277
  const r3 = u2[e5], a2 = r3.toolTips, p2 = r3.conditionList;
278
- if (!s(p2, t2, o3, i4, c2, l2, null, n2)) {
278
+ if (!s(p2, t2, i3, o4, c2, l2, null, n2)) {
279
279
  m2 = false, f2 = a2, g2 = t2;
280
280
  break;
281
281
  }
@@ -285,65 +285,65 @@ function $(e2) {
285
285
  }
286
286
  });
287
287
  }
288
- function z(e2, n2, t2, i2) {
289
- var o2;
290
- n2 && (H("loadBeforeSend", E(null, (o2 = { pageContext: t2, configureObj: i2 }).pageContext, o2.configureObj, "beforeListLoad", o2), e2), H("beforeRequest", function(e3) {
291
- return E(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
292
- }({ pageContext: t2, configureObj: i2 }), e2), H("gridDataLoaded", function(e3) {
293
- return E(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
294
- }({ pageContext: t2, configureObj: i2 }), e2), H("gridComplete", function(e3) {
295
- return E(null, e3.pageContext, e3.configureObj, "afterListLoad", e3);
296
- }({ pageContext: t2, configureObj: i2 }), e2), H("resizeHeight", function(e3) {
297
- return E(null, e3.pageContext, e3.configureObj, "resizeTableHeight", e3);
298
- }({ pageContext: t2, configureObj: i2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), H("beforeInsertRow", function(e3) {
299
- return E(null, e3.pageContext, e3.configureObj, "beforeAddRow", e3);
300
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), H("afterInsertRow", function(e3) {
301
- return E(null, e3.pageContext, e3.configureObj, "afterAddRow", e3);
302
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), H("beforeDelete", function(e3) {
303
- return E(null, e3.pageContext, e3.configureObj, "beforeRemoveRow", e3);
304
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), H("afterDelete", function(e3) {
305
- return E(null, e3.pageContext, e3.configureObj, "afterRemoveRow", e3);
306
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), H("beforeEdit", function(e3) {
307
- return E(null, e3.pageContext, e3.configureObj, "beforeEdit", e3);
308
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), H("beforeRestore", function(e3) {
309
- return E(null, e3.pageContext, e3.configureObj, "beforeRestore", e3);
310
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), H("beforeRestoreValidate", function(e3) {
311
- return E(null, e3.pageContext, e3.configureObj, "beforeRestoreValidate", e3);
312
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), function(e3, n3, t3) {
288
+ function W(e2, n2, t2, o2) {
289
+ var i2;
290
+ n2 && (G("loadBeforeSend", w(null, (i2 = { pageContext: t2, configureObj: o2 }).pageContext, i2.configureObj, "beforeListLoad", i2), e2), G("beforeRequest", function(e3) {
291
+ return w(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
292
+ }({ pageContext: t2, configureObj: o2 }), e2), G("gridDataLoaded", function(e3) {
293
+ return w(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
294
+ }({ pageContext: t2, configureObj: o2 }), e2), G("gridComplete", function(e3) {
295
+ return w(null, e3.pageContext, e3.configureObj, "afterListLoad", e3);
296
+ }({ pageContext: t2, configureObj: o2 }), e2), G("resizeHeight", function(e3) {
297
+ return w(null, e3.pageContext, e3.configureObj, "resizeTableHeight", e3);
298
+ }({ pageContext: t2, configureObj: o2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), G("beforeInsertRow", function(e3) {
299
+ return w(null, e3.pageContext, e3.configureObj, "beforeAddRow", e3);
300
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("afterInsertRow", function(e3) {
301
+ return w(null, e3.pageContext, e3.configureObj, "afterAddRow", e3);
302
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeDelete", function(e3) {
303
+ return w(null, e3.pageContext, e3.configureObj, "beforeRemoveRow", e3);
304
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("afterDelete", function(e3) {
305
+ return w(null, e3.pageContext, e3.configureObj, "afterRemoveRow", e3);
306
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeEdit", function(e3) {
307
+ return w(null, e3.pageContext, e3.configureObj, "beforeEdit", e3);
308
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeRestore", function(e3) {
309
+ return w(null, e3.pageContext, e3.configureObj, "beforeRestore", e3);
310
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), G("beforeRestoreValidate", function(e3) {
311
+ return w(null, e3.pageContext, e3.configureObj, "beforeRestoreValidate", e3);
312
+ }({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), function(e3, n3, t3) {
313
313
  n3 && (t3[e3] = n3);
314
- }("filterDataEvent", E(null, t2, i2, "filter-data", { pageContext: t2, configureObj: i2 }), e2));
315
- }
316
- function H(e2, n2, t2) {
317
- n2 && (t2[e2] = n2);
318
- }
319
- function W(e2, n2, t2) {
320
- return j(null, e2, n2, "select", t2);
314
+ }("filterDataEvent", w(null, t2, o2, "filter-data", { pageContext: t2, configureObj: o2 }), e2));
321
315
  }
322
316
  function G(e2, n2, t2) {
323
- return j(null, e2, n2, "select-all", t2);
317
+ n2 && (t2[e2] = n2);
324
318
  }
325
319
  function J(e2, n2, t2) {
326
- return j(null, e2, n2, "selection-change", t2);
320
+ return h(null, e2, n2, "select", t2);
327
321
  }
328
322
  function K(e2, n2, t2) {
329
- return j(null, e2, n2, "cell-click", t2);
323
+ return h(null, e2, n2, "select-all", t2);
330
324
  }
331
325
  function M(e2, n2, t2) {
332
- return j(null, e2, n2, "cell-dblclick", t2);
326
+ return h(null, e2, n2, "selection-change", t2);
333
327
  }
334
328
  function Q(e2, n2, t2) {
335
- return j(null, e2, n2, "row-click", t2);
329
+ return h(null, e2, n2, "cell-click", t2);
336
330
  }
337
331
  function X(e2, n2, t2) {
338
- return j(null, e2, n2, "row-dblclick", t2);
332
+ return h(null, e2, n2, "cell-dblclick", t2);
339
333
  }
340
334
  function Y(e2, n2, t2) {
341
- return j(null, e2, n2, "header-click", t2);
335
+ return h(null, e2, n2, "row-click", t2);
342
336
  }
343
- function Z(e2) {
344
- return E(null, e2.pageContext, e2.configureObj, "before-upload", e2);
337
+ function Z(e2, n2, t2) {
338
+ return h(null, e2, n2, "row-dblclick", t2);
345
339
  }
346
- function ee(n2) {
340
+ function ee(e2, n2, t2) {
341
+ return h(null, e2, n2, "header-click", t2);
342
+ }
343
+ function ne(e2) {
344
+ return w(null, e2.pageContext, e2.configureObj, "before-upload", e2);
345
+ }
346
+ function te(n2) {
347
347
  let t2 = true;
348
348
  if (!e()) {
349
349
  const e2 = n2 && n2.events ? n2.events : [];
@@ -354,37 +354,49 @@ function ee(n2) {
354
354
  }
355
355
  return t2;
356
356
  }
357
- function ne(e2, n2, t2, i2, o2) {
358
- return B(e2, n2, q(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: i2, ...o2 });
357
+ function oe(e2, n2, t2, o2, i2) {
358
+ return z(e2, n2, I(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: o2, ...i2 });
359
+ }
360
+ function ie(n2, t2) {
361
+ let o2 = true;
362
+ if (e()) {
363
+ const e2 = $(n2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], "click");
364
+ if (e2) {
365
+ const n3 = e2.isStandard, t3 = e2.event, i2 = navigator ? navigator.userAgent : null;
366
+ n3 && i2 && (i2.indexOf(" uni-app ") > 0 ? (b.includes(t3.eventName) || C.includes(t3.eventName)) && (o2 = false) : C.includes(t3.eventName) && (o2 = false));
367
+ }
368
+ }
369
+ return o2;
359
370
  }
360
371
  export {
361
- x as appendDefaultMethods,
362
- $ as canExecuteButton,
363
- K as cellClick,
364
- M as cellDblClick,
365
- D as doAfterClickEvent,
366
- T as doBeforeClickEvent,
367
- F as doClickJumpPageEvent,
368
- R as doSuffixOrPrefixClickEvent,
369
- Z as fileUploadBeforeUpload,
370
- A as getClickEventFuncByType,
371
- v as getCustomFunc,
372
- q as getEventFuncByType,
373
- I as getEventNameByType,
374
- E as getHandleEvent,
375
- w as getTableUuid,
376
- G as gridSelectAllRecords,
377
- W as gridSelectRecord,
378
- J as gridSelectionChange,
379
- h as handleAfterInitEvent,
380
- ne as handleChartEvent,
381
- j as handleEvent,
382
- O as handleFormEvent,
383
- Y as headerClick,
384
- C as initPageEvents,
385
- ee as isShowComponent,
386
- k as removeCustomFuncFromWindow,
387
- Q as rowClick,
388
- X as rowDblClick,
389
- z as setTableEvents
372
+ j as appendDefaultMethods,
373
+ H as canExecuteButton,
374
+ Q as cellClick,
375
+ X as cellDblClick,
376
+ _ as doAfterClickEvent,
377
+ U as doBeforeClickEvent,
378
+ D as doClickJumpPageEvent,
379
+ F as doSuffixOrPrefixClickEvent,
380
+ ne as fileUploadBeforeUpload,
381
+ $ as getClickEventFuncByType,
382
+ k as getCustomFunc,
383
+ I as getEventFuncByType,
384
+ B as getEventNameByType,
385
+ w as getHandleEvent,
386
+ S as getTableUuid,
387
+ K as gridSelectAllRecords,
388
+ J as gridSelectRecord,
389
+ M as gridSelectionChange,
390
+ y as handleAfterInitEvent,
391
+ oe as handleChartEvent,
392
+ h as handleEvent,
393
+ E as handleFormEvent,
394
+ ee as headerClick,
395
+ x as initPageEvents,
396
+ te as isShowComponent,
397
+ ie as isShowMobileEvent,
398
+ O as removeCustomFuncFromWindow,
399
+ Y as rowClick,
400
+ Z as rowDblClick,
401
+ W as setTableEvents
390
402
  };