super-page-runtime 2.3.40 → 2.3.41
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.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +64 -52
- package/dist/es/components/runtime/utils/events/event-util.js +198 -186
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +488 -509
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +56 -51
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +51 -51
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +45 -43
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +5 -5
- package/dist/es/style.css +10 -10
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { isMobileBrowser as e, isPromise as n } from "agilebuilder-ui/src/utils/common-util";
|
|
2
|
-
import { getAdditionalParamMap as t, standardEvents as o, judgeDataNumber as i,
|
|
3
|
-
import { isNotNeedValidateRequired as
|
|
4
|
-
import { getComponentRef as
|
|
5
|
-
import { ElMessage as
|
|
6
|
-
import { analysisCondition as
|
|
7
|
-
import { getListCode as
|
|
2
|
+
import { getAdditionalParamMap as t, standardEvents as o, judgeDataNumber as i, checkAndTipFileUploading as r, dealAfterOperate as u } from "./standard-event.js";
|
|
3
|
+
import { isNotNeedValidateRequired as c, validateDataModelFunc as l } from "./validator-util.js";
|
|
4
|
+
import { getComponentRef as a, getComponentRefByCode as s } from "../global-refs.js";
|
|
5
|
+
import { ElMessage as f } from "element-plus";
|
|
6
|
+
import { analysisCondition as m } from "agilebuilder-ui/src/utils/util";
|
|
7
|
+
import { getListCode as g, deepCopy as p } from "../common-util.js";
|
|
8
8
|
import d from "../eventBus.js";
|
|
9
|
-
import { getValueFromSource as
|
|
9
|
+
import { getValueFromSource as b } from "../page-helper-util.js";
|
|
10
10
|
import { expressJump as v } from "../table-utils.js";
|
|
11
|
-
const
|
|
12
|
-
function
|
|
11
|
+
const C = ["downloadTemplate", "exportForm", "exportPDF", "export", "exportCharts"], x = ["import"];
|
|
12
|
+
function j(e2, n2) {
|
|
13
13
|
if (e2 && e2.customEvents) {
|
|
14
14
|
const t2 = function(e3) {
|
|
15
15
|
const n3 = {};
|
|
@@ -24,7 +24,7 @@ function x(e2, n2) {
|
|
|
24
24
|
n3[e4.eventName] = t3;
|
|
25
25
|
} catch (n4) {
|
|
26
26
|
const t4 = `自定义方法${e4.eventName}解析失败,请检查函数体是否正确`;
|
|
27
|
-
console.error(t4, n4),
|
|
27
|
+
console.error(t4, n4), f.error(t4);
|
|
28
28
|
}
|
|
29
29
|
} else {
|
|
30
30
|
let t3 = e4.componentUuid + "_";
|
|
@@ -33,7 +33,7 @@ function x(e2, n2) {
|
|
|
33
33
|
n3[t3] = new Function("params", e4.jsContent);
|
|
34
34
|
} catch (n4) {
|
|
35
35
|
let t4 = "";
|
|
36
|
-
e4.title && (t4 += e4.title + "的"), e4.label && (t4 += e4.label), t4 += "事件解析失败,请检查事件函数体是否正确",
|
|
36
|
+
e4.title && (t4 += e4.title + "的"), e4.label && (t4 += e4.label), t4 += "事件解析失败,请检查事件函数体是否正确", f.error(t4), console.error(t4, n4);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}), n3;
|
|
@@ -41,24 +41,24 @@ function x(e2, n2) {
|
|
|
41
41
|
!function(e3, n3) {
|
|
42
42
|
if (!n3) return;
|
|
43
43
|
for (const t3 in n3) {
|
|
44
|
-
|
|
44
|
+
h(n3[t3], e3);
|
|
45
45
|
}
|
|
46
46
|
}(n2, t2), n2.customEvents = t2;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function k(e2, n2) {
|
|
50
50
|
if (e2.customEvents) return e2.customEvents[n2];
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function h(e2, n2) {
|
|
53
53
|
e2.get = function(e3) {
|
|
54
|
-
return e3 ?
|
|
54
|
+
return e3 ? s(n2, e3) : void 0;
|
|
55
55
|
}, e2.getByUuid = function(e3) {
|
|
56
|
-
return e3 ?
|
|
56
|
+
return e3 ? a(n2, e3) : void 0;
|
|
57
57
|
}, e2.getPageContext = function() {
|
|
58
58
|
return n2;
|
|
59
59
|
}, e2.getContextValue = function(e3) {
|
|
60
60
|
let t2 = n2 && n2.entity ? n2.entity.context : null;
|
|
61
|
-
return t2 = t2 || {},
|
|
61
|
+
return t2 = t2 || {}, b(t2, e3, "context");
|
|
62
62
|
}, e2.getContext = function() {
|
|
63
63
|
return n2 && n2.entity ? n2.entity.context : {};
|
|
64
64
|
}, e2.getSystem = function() {
|
|
@@ -70,7 +70,7 @@ function k(e2, n2) {
|
|
|
70
70
|
}, e2.getPage = function() {
|
|
71
71
|
return n2 && n2.entity ? n2.entity.page : {};
|
|
72
72
|
}, e2.getCustomFunc = function(e3) {
|
|
73
|
-
return
|
|
73
|
+
return k(n2, e3);
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
function O(e2) {
|
|
@@ -81,10 +81,10 @@ function O(e2) {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
function h(e2, n2, t2, o2, i2) {
|
|
85
|
-
return w(e2, n2, t2, o2, true, i2, false);
|
|
86
|
-
}
|
|
87
84
|
function y(e2, n2, t2, o2, i2) {
|
|
85
|
+
return S(e2, n2, t2, o2, true, i2, false);
|
|
86
|
+
}
|
|
87
|
+
function E(e2, n2, t2, o2, i2) {
|
|
88
88
|
var _a, _b;
|
|
89
89
|
if (o2 && "change" === o2) {
|
|
90
90
|
const e3 = n2.subTableWatchProps;
|
|
@@ -93,116 +93,117 @@ function y(e2, n2, t2, o2, i2) {
|
|
|
93
93
|
o3 && o3.indexOf(i3) >= 0 && d.$emit("_refreshSubTable_" + n3, { propName: i3 });
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
return
|
|
97
|
-
}
|
|
98
|
-
function
|
|
99
|
-
return
|
|
100
|
-
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
103
|
-
}
|
|
104
|
-
function
|
|
105
|
-
const
|
|
106
|
-
let
|
|
107
|
-
if (
|
|
108
|
-
return e3 &&
|
|
109
|
-
}(
|
|
110
|
-
if (
|
|
111
|
-
return
|
|
96
|
+
return S(e2, n2, t2, o2, true, i2, true);
|
|
97
|
+
}
|
|
98
|
+
function N(e2, n2, t2, o2) {
|
|
99
|
+
return E(e2, n2, t2, "afterInit", o2);
|
|
100
|
+
}
|
|
101
|
+
function w(e2, n2, t2, o2, i2) {
|
|
102
|
+
return S(e2, n2, t2, o2, false, i2, false);
|
|
103
|
+
}
|
|
104
|
+
function S(e2, t2, o2, u2, c2, l2, a2) {
|
|
105
|
+
const s2 = o2 && o2.runtime && o2.runtime.events ? o2.runtime.events : [];
|
|
106
|
+
let f2;
|
|
107
|
+
if (a2 || !function(e3) {
|
|
108
|
+
return e3 && P.indexOf(e3) >= 0;
|
|
109
|
+
}(u2)) {
|
|
110
|
+
if (f2 = B(t2, s2, u2), c2) {
|
|
111
|
+
return Q(t2, o2, f2, T(t2, o2, e2, l2));
|
|
112
112
|
}
|
|
113
|
-
return
|
|
113
|
+
return f2;
|
|
114
114
|
}
|
|
115
115
|
!function(e3, t3, o3) {
|
|
116
|
-
const
|
|
117
|
-
if (!
|
|
116
|
+
const u3 = i(t3, o3.ids);
|
|
117
|
+
if (!u3) return;
|
|
118
118
|
if (void 0 !== e3.canClick && false === e3.canClick) return;
|
|
119
|
-
|
|
119
|
+
if (r(e3)) return;
|
|
120
|
+
W(o3).then((i2) => {
|
|
120
121
|
if (true === i2.canExecute) {
|
|
121
122
|
e3.clickUuid = t3.uuid, e3.canClick = false;
|
|
122
|
-
const i3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [],
|
|
123
|
-
let
|
|
124
|
-
if (
|
|
125
|
-
n(
|
|
126
|
-
n2 && true === n2 ?
|
|
123
|
+
const i3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r2 = B(e3, i3, "beforeValidateForm");
|
|
124
|
+
let u4;
|
|
125
|
+
if (r2 && (u4 = Q(e3, t3, r2, o3)), void 0 === u4 && (u4 = true), !u4) return void (e3.canClick = true);
|
|
126
|
+
n(u4) ? u4.then((n2) => {
|
|
127
|
+
n2 && true === n2 ? F(e3, t3, o3) : e3.canClick = true;
|
|
127
128
|
}).catch((n2) => {
|
|
128
129
|
e3.canClick = true;
|
|
129
|
-
}) :
|
|
130
|
+
}) : F(e3, t3, o3);
|
|
130
131
|
}
|
|
131
132
|
});
|
|
132
|
-
}(t2, o2,
|
|
133
|
+
}(t2, o2, D(e2, t2, o2, l2));
|
|
133
134
|
}
|
|
134
|
-
const
|
|
135
|
-
function
|
|
135
|
+
const P = ["click", "suffixClick", "prefixClick", "menuClick"];
|
|
136
|
+
function R(e2, n2) {
|
|
136
137
|
return n2.props.base.tableUuid ? n2.props.base.tableUuid : e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null;
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
+
function T(e2, n2, t2, o2) {
|
|
139
140
|
const i2 = {};
|
|
140
141
|
if (o2) for (const e3 in o2) i2[e3] = o2[e3];
|
|
141
142
|
return null != t2 && (i2._value = t2), e2 && (i2.pageContext = e2), n2 && (i2.configureObj = n2), i2;
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
+
function F(e2, t2, o2) {
|
|
144
145
|
const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
|
|
145
146
|
let r2 = true;
|
|
146
147
|
(o2 == null ? void 0 : o2.skipValidate) && (r2 = false);
|
|
147
|
-
const
|
|
148
|
-
if (
|
|
149
|
-
const e3 =
|
|
150
|
-
|
|
148
|
+
const u2 = z(e2, i2, "click");
|
|
149
|
+
if (u2) {
|
|
150
|
+
const e3 = u2.isStandard, n2 = u2.event;
|
|
151
|
+
c(e3, n2) && (r2 = false);
|
|
151
152
|
}
|
|
152
|
-
|
|
153
|
+
l(e2, t2, u2, r2).then((i3) => {
|
|
153
154
|
if (!i3) return void (e2.canClick = true);
|
|
154
|
-
const r3 =
|
|
155
|
+
const r3 = L(e2, t2, o2);
|
|
155
156
|
r3 ? n(r3) ? r3.then((n2) => {
|
|
156
|
-
n2 ?
|
|
157
|
+
n2 ? I(e2, t2, u2, o2) : e2.canClick = true;
|
|
157
158
|
}).catch((n2) => {
|
|
158
159
|
console.error(n2), e2.canClick = true;
|
|
159
|
-
}) :
|
|
160
|
+
}) : I(e2, t2, u2, o2) : e2.canClick = true;
|
|
160
161
|
}).catch((n2) => {
|
|
161
162
|
console.error(n2), e2.canClick = true;
|
|
162
163
|
});
|
|
163
164
|
}
|
|
164
|
-
function
|
|
165
|
-
const r2 =
|
|
166
|
-
|
|
165
|
+
function U(e2, n2, t2, o2, i2) {
|
|
166
|
+
const r2 = D(e2, n2, t2, i2);
|
|
167
|
+
I(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], o2), r2);
|
|
167
168
|
}
|
|
168
|
-
function
|
|
169
|
-
const i2 = n2.code, r2 = n2.version, u2 =
|
|
169
|
+
function D(e2, n2, t2, o2) {
|
|
170
|
+
const i2 = n2.code, r2 = n2.version, u2 = R(n2, t2);
|
|
170
171
|
if (u2) {
|
|
171
|
-
const e3 =
|
|
172
|
-
o2 || (o2 = {}), o2.tableUuid = u2, o2.listCode =
|
|
173
|
-
|
|
174
|
-
const
|
|
175
|
-
o2.tableConfigure =
|
|
172
|
+
const e3 = a(n2, u2), t3 = e3 ? e3.getSelections() : null, c2 = e3 ? e3.getSelectionIds() : null;
|
|
173
|
+
o2 || (o2 = {}), o2.tableUuid = u2, o2.listCode = g(i2, r2, u2);
|
|
174
|
+
V(n2) && (o2.selections = t3, o2.id = c2 && c2.length > 0 ? c2[0] : null, o2.ids = c2);
|
|
175
|
+
const l2 = e3 ? e3.getTableConfigure() : null;
|
|
176
|
+
o2.tableConfigure = l2;
|
|
176
177
|
}
|
|
177
|
-
return
|
|
178
|
+
return T(n2, t2, e2, o2);
|
|
178
179
|
}
|
|
179
|
-
function
|
|
180
|
-
const o2 =
|
|
180
|
+
function L(e2, n2, t2) {
|
|
181
|
+
const o2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
|
|
181
182
|
let i2;
|
|
182
|
-
return o2 && (i2 =
|
|
183
|
+
return o2 && (i2 = Q(e2, n2, o2, null, t2)), void 0 === i2 || i2;
|
|
183
184
|
}
|
|
184
|
-
function
|
|
185
|
+
function _(e2, n2, t2) {
|
|
185
186
|
const o2 = e2.code + "_";
|
|
186
187
|
d.$emit(o2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
|
|
187
188
|
}
|
|
188
|
-
function
|
|
189
|
+
function V(e2, n2) {
|
|
189
190
|
return !(!e2.pageType || "list" !== e2.pageType);
|
|
190
191
|
}
|
|
191
|
-
function
|
|
192
|
-
const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 =
|
|
192
|
+
function q(e2, t2, o2) {
|
|
193
|
+
const i2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = B(e2, i2, "afterClick");
|
|
193
194
|
if (r2) {
|
|
194
|
-
const i3 =
|
|
195
|
+
const i3 = Q(e2, t2, r2, null, o2);
|
|
195
196
|
n(i3) ? i3.finally(() => {
|
|
196
197
|
e2.canClick = true;
|
|
197
198
|
}) : e2.canClick = true;
|
|
198
199
|
} else e2.canClick = true;
|
|
199
200
|
}
|
|
200
|
-
function
|
|
201
|
-
o2 ? (e2.result = i2, e2.canClick = true) :
|
|
202
|
-
const c2 =
|
|
203
|
-
c2 &&
|
|
201
|
+
function A(e2, n2, t2, o2, i2, r2) {
|
|
202
|
+
o2 ? (e2.result = i2, e2.canClick = true) : u(e2, n2, i2, "", r2);
|
|
203
|
+
const c2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
|
|
204
|
+
c2 && Q(e2, n2, c2, t2);
|
|
204
205
|
}
|
|
205
|
-
function
|
|
206
|
+
function I(e2, t2, o2, i2) {
|
|
206
207
|
let r2 = t2, u2 = t2.props.linkPage;
|
|
207
208
|
if (u2 && u2 instanceof Array) {
|
|
208
209
|
const n2 = function(e3) {
|
|
@@ -211,40 +212,40 @@ function A(e2, t2, o2, i2) {
|
|
|
211
212
|
return n3;
|
|
212
213
|
}(i2), o3 = v(e2, t2, u2, n2);
|
|
213
214
|
let c2, l2 = false;
|
|
214
|
-
o3 && (l2 = o3.show, c2 = l2 ? o3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 =
|
|
215
|
+
o3 && (l2 = o3.show, c2 = l2 ? o3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = p(t2), r2.props.linkPage = u2);
|
|
215
216
|
}
|
|
216
|
-
u2 && u2.jumpPageUrl ? (e2.canClick = true,
|
|
217
|
-
const r3 = o3, u3 =
|
|
217
|
+
u2 && u2.jumpPageUrl ? (e2.canClick = true, _(e2, r2, i2)) : function(e3, t3, o3, i3) {
|
|
218
|
+
const r3 = o3, u3 = V(e3);
|
|
218
219
|
if (r3) {
|
|
219
|
-
const o4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 =
|
|
220
|
+
const o4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = Q(e3, t3, o4, i3);
|
|
220
221
|
if (function(e4, n2) {
|
|
221
222
|
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 || "saveQueryCharts" === n2.eventName || "addTransactor" === n2.eventName || "removeTransactor" === n2.eventName);
|
|
222
223
|
}(c2, l2)) return void (e3.canClick = true);
|
|
223
224
|
n(a2) ? a2.then((n2) => {
|
|
224
|
-
n2 ?
|
|
225
|
+
n2 ? A(e3, t3, i3, c2, n2, u3) : e3.canClick = true;
|
|
225
226
|
}).catch((n2) => {
|
|
226
227
|
console.error(n2), e3.canClick = true;
|
|
227
|
-
}) :
|
|
228
|
-
} else
|
|
228
|
+
}) : A(e3, t3, i3, c2, a2, u3);
|
|
229
|
+
} else A(e3, t3, i3, false, null, u3);
|
|
229
230
|
}(e2, t2, o2, i2);
|
|
230
231
|
}
|
|
231
|
-
function
|
|
232
|
+
function $(e2, n2) {
|
|
232
233
|
const t2 = e2.customEvents;
|
|
233
234
|
if (t2 && n2) {
|
|
234
235
|
let e3 = "";
|
|
235
236
|
return e3 = "object" == typeof n2 ? n2.componentUuid + "_" + n2.name : n2, t2[e3];
|
|
236
237
|
}
|
|
237
238
|
}
|
|
238
|
-
function
|
|
239
|
+
function B(e2, n2, t2) {
|
|
239
240
|
if (n2 && t2) {
|
|
240
241
|
const i2 = n2.filter((e3) => e3.name === t2);
|
|
241
242
|
if (i2 && i2.length > 0) {
|
|
242
243
|
const n3 = i2[0];
|
|
243
|
-
return n3.isStandard ? o[n3.eventName] :
|
|
244
|
+
return n3.isStandard ? o[n3.eventName] : $(e2, n3);
|
|
244
245
|
}
|
|
245
246
|
}
|
|
246
247
|
}
|
|
247
|
-
function
|
|
248
|
+
function H(e2, n2) {
|
|
248
249
|
if (e2 && n2) {
|
|
249
250
|
const t2 = e2.filter((e3) => e3.name === n2);
|
|
250
251
|
if (t2 && t2.length > 0) {
|
|
@@ -252,23 +253,34 @@ function B(e2, n2) {
|
|
|
252
253
|
}
|
|
253
254
|
}
|
|
254
255
|
}
|
|
255
|
-
function
|
|
256
|
+
function z(e2, n2, t2) {
|
|
256
257
|
if (n2 && t2) {
|
|
257
258
|
const i2 = n2.filter((e3) => e3.name === t2);
|
|
258
259
|
if (i2 && i2.length > 0) {
|
|
259
260
|
const n3 = i2[0];
|
|
260
|
-
return n3.isStandard ? { func: o[n3.eventName], isStandard: true, event: n3 } : { func:
|
|
261
|
+
return n3.isStandard ? { func: o[n3.eventName], isStandard: true, event: n3 } : { func: $(e2, n3), isStandard: false, event: n3 };
|
|
261
262
|
}
|
|
262
263
|
}
|
|
263
264
|
}
|
|
264
|
-
function
|
|
265
|
+
function Q(e2, n2, t2, o2, i2) {
|
|
265
266
|
if (t2) {
|
|
266
267
|
if (o2 || (o2 = { pageContext: e2, configureObj: n2 }), i2 && o2) for (const e3 in i2) o2[e3] = i2[e3];
|
|
267
|
-
|
|
268
|
+
try {
|
|
269
|
+
return t2.apply(t2, [o2]);
|
|
270
|
+
} catch (e3) {
|
|
271
|
+
throw function(e4, n3) {
|
|
272
|
+
var _a, _b, _c, _d;
|
|
273
|
+
let t3 = "";
|
|
274
|
+
const o3 = (e4 == null ? void 0 : e4.title) || ((_b = (_a = e4 == null ? void 0 : e4.props) == null ? void 0 : _a.base) == null ? void 0 : _b.title), i3 = (e4 == null ? void 0 : e4.label) || ((_d = (_c = e4 == null ? void 0 : e4.props) == null ? void 0 : _c.base) == null ? void 0 : _d.label);
|
|
275
|
+
o3 && (t3 += o3 + "的");
|
|
276
|
+
i3 && (t3 += i3);
|
|
277
|
+
t3 += "事件执行失败,请检查事件函数体是否正确", f.error(t3), console.error(t3, n3);
|
|
278
|
+
}(n2, e3), e3;
|
|
279
|
+
}
|
|
268
280
|
}
|
|
269
281
|
}
|
|
270
|
-
function
|
|
271
|
-
const n2 = e2.pageContext, o2 = e2.configureObj, i2 =
|
|
282
|
+
function W(e2) {
|
|
283
|
+
const n2 = e2.pageContext, o2 = e2.configureObj, i2 = V(n2);
|
|
272
284
|
let r2 = [];
|
|
273
285
|
if (i2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
|
|
274
286
|
else {
|
|
@@ -280,89 +292,89 @@ function Q(e2) {
|
|
|
280
292
|
if (null == u2 || "" === u2 || null == r2 || 0 === r2.length) e3({ canExecute: true });
|
|
281
293
|
else {
|
|
282
294
|
const o4 = n2.entity.context, i3 = t(n2), c2 = true, l2 = n2.tableName;
|
|
283
|
-
let a2,
|
|
295
|
+
let a2, s2, g2 = true;
|
|
284
296
|
for (let e4 = 0; e4 < r2.length; e4++) {
|
|
285
297
|
const t2 = r2[e4];
|
|
286
298
|
for (let e5 = 0; e5 < u2.length; e5++) {
|
|
287
|
-
const r3 = u2[e5],
|
|
288
|
-
if (!
|
|
289
|
-
g2 = false, a2 =
|
|
299
|
+
const r3 = u2[e5], f2 = r3.toolTips, p2 = r3.conditionList;
|
|
300
|
+
if (!m(p2, t2, i3, o4, c2, l2, null, n2)) {
|
|
301
|
+
g2 = false, a2 = f2, s2 = t2;
|
|
290
302
|
break;
|
|
291
303
|
}
|
|
292
304
|
}
|
|
293
305
|
}
|
|
294
|
-
g2 ? e3({ canExecute: true }) : (a2 &&
|
|
306
|
+
g2 ? e3({ canExecute: true }) : (a2 && f({ showClose: true, type: "warning", message: a2 }), e3({ canExecute: false, message: a2, failEntity: s2 }));
|
|
295
307
|
}
|
|
296
308
|
});
|
|
297
309
|
}
|
|
298
|
-
function
|
|
310
|
+
function G(e2, n2, t2, o2) {
|
|
299
311
|
var i2;
|
|
300
|
-
n2 && (
|
|
301
|
-
return
|
|
302
|
-
}({ pageContext: t2, configureObj: o2 }), e2),
|
|
303
|
-
return
|
|
304
|
-
}({ pageContext: t2, configureObj: o2 }), e2),
|
|
305
|
-
return
|
|
306
|
-
}({ pageContext: t2, configureObj: o2 }), e2),
|
|
307
|
-
return
|
|
308
|
-
}({ pageContext: t2, configureObj: o2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}),
|
|
309
|
-
return
|
|
310
|
-
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions),
|
|
311
|
-
return
|
|
312
|
-
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions),
|
|
313
|
-
return
|
|
314
|
-
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions),
|
|
315
|
-
return
|
|
316
|
-
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions),
|
|
317
|
-
return
|
|
318
|
-
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions),
|
|
319
|
-
return
|
|
320
|
-
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions),
|
|
321
|
-
return
|
|
312
|
+
n2 && (J("loadBeforeSend", w(null, (i2 = { pageContext: t2, configureObj: o2 }).pageContext, i2.configureObj, "beforeListLoad", i2), e2), J("beforeRequest", function(e3) {
|
|
313
|
+
return w(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
|
|
314
|
+
}({ pageContext: t2, configureObj: o2 }), e2), J("gridDataLoaded", function(e3) {
|
|
315
|
+
return w(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
|
|
316
|
+
}({ pageContext: t2, configureObj: o2 }), e2), J("gridComplete", function(e3) {
|
|
317
|
+
return w(null, e3.pageContext, e3.configureObj, "afterListLoad", e3);
|
|
318
|
+
}({ pageContext: t2, configureObj: o2 }), e2), J("resizeHeight", function(e3) {
|
|
319
|
+
return w(null, e3.pageContext, e3.configureObj, "resizeTableHeight", e3);
|
|
320
|
+
}({ pageContext: t2, configureObj: o2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), J("beforeInsertRow", function(e3) {
|
|
321
|
+
return w(null, e3.pageContext, e3.configureObj, "beforeAddRow", e3);
|
|
322
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), J("afterInsertRow", function(e3) {
|
|
323
|
+
return w(null, e3.pageContext, e3.configureObj, "afterAddRow", e3);
|
|
324
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), J("beforeDelete", function(e3) {
|
|
325
|
+
return w(null, e3.pageContext, e3.configureObj, "beforeRemoveRow", e3);
|
|
326
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), J("afterDelete", function(e3) {
|
|
327
|
+
return w(null, e3.pageContext, e3.configureObj, "afterRemoveRow", e3);
|
|
328
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), J("beforeEdit", function(e3) {
|
|
329
|
+
return w(null, e3.pageContext, e3.configureObj, "beforeEdit", e3);
|
|
330
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), J("beforeRestore", function(e3) {
|
|
331
|
+
return w(null, e3.pageContext, e3.configureObj, "beforeRestore", e3);
|
|
332
|
+
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), J("beforeRestoreValidate", function(e3) {
|
|
333
|
+
return w(null, e3.pageContext, e3.configureObj, "beforeRestoreValidate", e3);
|
|
322
334
|
}({ pageContext: t2, configureObj: o2 }), e2.lineEditOptions), function(e3, n3, t3) {
|
|
323
335
|
n3 && (t3[e3] = n3);
|
|
324
|
-
}("filterDataEvent",
|
|
325
|
-
}
|
|
326
|
-
function G(e2, n2, t2) {
|
|
327
|
-
n2 && (t2[e2] = n2);
|
|
336
|
+
}("filterDataEvent", w(null, t2, o2, "filter-data", { pageContext: t2, configureObj: o2 }), e2));
|
|
328
337
|
}
|
|
329
338
|
function J(e2, n2, t2) {
|
|
330
|
-
|
|
339
|
+
n2 && (t2[e2] = n2);
|
|
331
340
|
}
|
|
332
341
|
function K(e2, n2, t2) {
|
|
333
|
-
return
|
|
342
|
+
return y(null, e2, n2, "select", t2);
|
|
334
343
|
}
|
|
335
344
|
function M(e2, n2, t2) {
|
|
336
|
-
return
|
|
345
|
+
return y(null, e2, n2, "select-all", t2);
|
|
337
346
|
}
|
|
338
347
|
function X(e2, n2, t2) {
|
|
339
|
-
return
|
|
348
|
+
return y(null, e2, n2, "selection-change", t2);
|
|
340
349
|
}
|
|
341
350
|
function Y(e2, n2, t2) {
|
|
342
|
-
return
|
|
351
|
+
return y(null, e2, n2, "cell-click", t2);
|
|
343
352
|
}
|
|
344
353
|
function Z(e2, n2, t2) {
|
|
345
|
-
return
|
|
354
|
+
return y(null, e2, n2, "cell-dblclick", t2);
|
|
346
355
|
}
|
|
347
356
|
function ee(e2, n2, t2) {
|
|
348
|
-
return
|
|
357
|
+
return y(null, e2, n2, "row-click", t2);
|
|
349
358
|
}
|
|
350
359
|
function ne(e2, n2, t2) {
|
|
351
|
-
return
|
|
360
|
+
return y(null, e2, n2, "row-dblclick", t2);
|
|
352
361
|
}
|
|
353
|
-
function te(e2) {
|
|
354
|
-
return
|
|
362
|
+
function te(e2, n2, t2) {
|
|
363
|
+
return y(null, e2, n2, "header-click", t2);
|
|
355
364
|
}
|
|
356
|
-
function oe(e2
|
|
357
|
-
return
|
|
365
|
+
function oe(e2) {
|
|
366
|
+
return y(null, e2.pageContext, e2.configureObj, "before-upload", e2);
|
|
358
367
|
}
|
|
359
368
|
function ie(e2, n2, t2) {
|
|
360
|
-
return
|
|
369
|
+
return y(null, e2, n2, "uploaded", t2);
|
|
361
370
|
}
|
|
362
371
|
function re(e2, n2, t2) {
|
|
363
|
-
return
|
|
372
|
+
return y(null, e2, n2, "before-delete", t2);
|
|
373
|
+
}
|
|
374
|
+
function ue(e2, n2, t2) {
|
|
375
|
+
return y(null, e2, n2, "deleted", t2);
|
|
364
376
|
}
|
|
365
|
-
function
|
|
377
|
+
function ce(n2) {
|
|
366
378
|
let t2 = true;
|
|
367
379
|
if (!e()) {
|
|
368
380
|
const e2 = n2 && n2.events ? n2.events : [];
|
|
@@ -373,53 +385,53 @@ function ue(n2) {
|
|
|
373
385
|
}
|
|
374
386
|
return t2;
|
|
375
387
|
}
|
|
376
|
-
function
|
|
377
|
-
return
|
|
388
|
+
function le(e2, n2, t2, o2, i2) {
|
|
389
|
+
return Q(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: o2, ...i2 });
|
|
378
390
|
}
|
|
379
|
-
function
|
|
391
|
+
function ae(n2, t2) {
|
|
380
392
|
let o2 = true;
|
|
381
393
|
if (e()) {
|
|
382
|
-
const e2 =
|
|
394
|
+
const e2 = z(n2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], "click");
|
|
383
395
|
if (e2) {
|
|
384
396
|
const n3 = e2.isStandard, t3 = e2.event, i2 = navigator ? navigator.userAgent : null;
|
|
385
|
-
n3 && i2 && (i2.indexOf("Html5Plus") > 0 ? (
|
|
397
|
+
n3 && i2 && (i2.indexOf("Html5Plus") > 0 ? (C.includes(t3.eventName) || x.includes(t3.eventName)) && (o2 = false) : x.includes(t3.eventName) && (o2 = false));
|
|
386
398
|
}
|
|
387
399
|
}
|
|
388
400
|
return o2;
|
|
389
401
|
}
|
|
390
402
|
export {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
403
|
+
h as appendDefaultMethods,
|
|
404
|
+
W as canExecuteButton,
|
|
405
|
+
Y as cellClick,
|
|
406
|
+
Z as cellDblClick,
|
|
407
|
+
q as doAfterClickEvent,
|
|
408
|
+
L as doBeforeClickEvent,
|
|
409
|
+
_ as doClickJumpPageEvent,
|
|
410
|
+
U as doSuffixOrPrefixClickEvent,
|
|
411
|
+
re as fileUploadBeforeDelete,
|
|
412
|
+
oe as fileUploadBeforeUpload,
|
|
413
|
+
ue as fileUploadDeleted,
|
|
414
|
+
ie as fileUploadUploaded,
|
|
415
|
+
z as getClickEventFuncByType,
|
|
416
|
+
k as getCustomFunc,
|
|
417
|
+
D as getDefaultEventParams,
|
|
418
|
+
B as getEventFuncByType,
|
|
419
|
+
H as getEventNameByType,
|
|
420
|
+
w as getHandleEvent,
|
|
421
|
+
R as getTableUuid,
|
|
422
|
+
M as gridSelectAllRecords,
|
|
423
|
+
K as gridSelectRecord,
|
|
424
|
+
X as gridSelectionChange,
|
|
425
|
+
N as handleAfterInitEvent,
|
|
426
|
+
le as handleChartEvent,
|
|
427
|
+
y as handleEvent,
|
|
428
|
+
E as handleFormEvent,
|
|
429
|
+
te as headerClick,
|
|
430
|
+
j as initPageEvents,
|
|
431
|
+
ce as isShowComponent,
|
|
432
|
+
ae as isShowMobileEvent,
|
|
421
433
|
O as removeCustomFuncFromWindow,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
434
|
+
ee as rowClick,
|
|
435
|
+
ne as rowDblClick,
|
|
436
|
+
G as setTableEvents
|
|
425
437
|
};
|
|
@@ -54,6 +54,7 @@ export declare const standardEvents: {
|
|
|
54
54
|
removeTransactor: (params: any) => void;
|
|
55
55
|
};
|
|
56
56
|
export declare function exportFormReport(pageContext: any, configureObj: any, templateFile: any, isPdf: any): void;
|
|
57
|
+
export declare function checkAndTipFileUploading(pageContext: any): boolean;
|
|
57
58
|
export declare function getSaveFormRequestWithRow(pageContext: PageContext, configureObj: any, url: string, isUnControlVersion: boolean, mainDefaultValueColumns: any, dynamicColumnInfo: any, row: any, otherParams: any, isTable?: any): any;
|
|
58
59
|
export declare function getSaveFormRequest(pageContext: PageContext, configureObj: any, url: any, isUnControlVersion: any, mainDefaultValueColumns: any, dynamicColumnInfo: any): any;
|
|
59
60
|
/**
|