super-page-runtime 2.2.91-sti9 → 2.2.92-sit1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,8 +4,8 @@ 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";
6
6
  import { analysisCondition as s } from "agilebuilder-ui/src/utils/util";
7
- import { getListCode as f, deepCopy as g } from "../common-util.js";
8
- import m from "../eventBus.js";
7
+ import { getListCode as f, deepCopy as m } from "../common-util.js";
8
+ import g 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
11
  const v = ["downloadTemplate", "back", "exportForm", "exportPDF", "lineEditCreate", "workflowSave"], b = ["downloadTemplate", "exportForm", "exportPDF", "export", "exportCharts"], C = ["import"];
@@ -79,7 +79,7 @@ function E(e2, n2, t2, i2, o2) {
79
79
  const e3 = n2.subTableWatchProps;
80
80
  if (e3) for (const n3 in e3) {
81
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 });
82
+ i3 && i3.indexOf(o3) >= 0 && g.$emit("_refreshSubTable_" + n3, { propName: o3 });
83
83
  }
84
84
  }
85
85
  return N(e2, n2, t2, i2, true, o2, true);
@@ -93,11 +93,11 @@ function w(e2, n2, t2, i2, o2) {
93
93
  function N(e2, t2, i2, r2, u2, c2, l2) {
94
94
  const a2 = i2 && i2.runtime && i2.runtime.events ? i2.runtime.events : [];
95
95
  let s2;
96
- if (l2 || !/* @__PURE__ */ function(e3) {
97
- return e3 && ("click" === e3 || "suffixClick" === e3 || "prefixClick" === e3);
96
+ if (l2 || !function(e3) {
97
+ return e3 && S.indexOf(e3) >= 0;
98
98
  }(r2)) {
99
- if (s2 = I(t2, a2, r2), u2) {
100
- return z(t2, i2, s2, P(t2, i2, e2, c2));
99
+ if (s2 = B(t2, a2, r2), u2) {
100
+ return H(t2, i2, s2, R(t2, i2, e2, c2));
101
101
  }
102
102
  return s2;
103
103
  }
@@ -105,34 +105,35 @@ function N(e2, t2, i2, r2, u2, c2, l2) {
105
105
  const r3 = o(t3, i3.ids);
106
106
  if (!r3) return;
107
107
  if (void 0 !== e3.canClick && false === e3.canClick) return;
108
- H(i3).then((o2) => {
108
+ Q(i3).then((o2) => {
109
109
  if (true === o2.canExecute) {
110
110
  e3.clickUuid = t3.uuid, e3.canClick = false;
111
- const o3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r4 = I(e3, o3, "beforeValidateForm");
111
+ const o3 = t3.runtime && t3.runtime.events ? t3.runtime.events : [], r4 = B(e3, o3, "beforeValidateForm");
112
112
  let u3;
113
- if (r4 && (u3 = z(e3, t3, r4, i3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
113
+ if (r4 && (u3 = H(e3, t3, r4, i3)), void 0 === u3 && (u3 = true), !u3) return void (e3.canClick = true);
114
114
  n(u3) ? u3.then((n2) => {
115
- n2 && true === n2 ? R(e3, t3, i3) : e3.canClick = true;
115
+ n2 && true === n2 ? F(e3, t3, i3) : e3.canClick = true;
116
116
  }).catch((n2) => {
117
117
  e3.canClick = true;
118
- }) : R(e3, t3, i3);
118
+ }) : F(e3, t3, i3);
119
119
  }
120
120
  });
121
- }(t2, i2, T(e2, t2, i2, c2));
121
+ }(t2, i2, U(e2, t2, i2, c2));
122
122
  }
123
- function S(e2, n2) {
123
+ const S = ["click", "suffixClick", "prefixClick", "menuClick"];
124
+ function P(e2, n2) {
124
125
  return n2.props.base.tableUuid ? n2.props.base.tableUuid : e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null;
125
126
  }
126
- function P(e2, n2, t2, i2) {
127
+ function R(e2, n2, t2, i2) {
127
128
  const o2 = {};
128
129
  if (i2) for (const e3 in i2) o2[e3] = i2[e3];
129
130
  return null != t2 && (o2._value = t2), e2 && (o2.pageContext = e2), n2 && (o2.configureObj = n2), o2;
130
131
  }
131
- function R(e2, t2, i2) {
132
+ function F(e2, t2, i2) {
132
133
  const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [];
133
134
  let r2 = true;
134
135
  (i2 == null ? void 0 : i2.skipValidate) && (r2 = false);
135
- const c2 = $(e2, o2, "click");
136
+ const c2 = z(e2, o2, "click");
136
137
  if (c2) {
137
138
  const e3 = function(e4, n2) {
138
139
  return e4 && v.includes(n2.eventName);
@@ -141,58 +142,58 @@ function R(e2, t2, i2) {
141
142
  }
142
143
  u(e2, t2, r2).then((o3) => {
143
144
  if (!o3) return void (e2.canClick = true);
144
- const r3 = U(e2, t2, i2);
145
+ const r3 = D(e2, t2, i2);
145
146
  r3 ? n(r3) ? r3.then((n2) => {
146
- n2 ? q(e2, t2, c2, i2) : e2.canClick = true;
147
+ n2 ? A(e2, t2, c2, i2) : e2.canClick = true;
147
148
  }).catch((n2) => {
148
149
  e2.canClick = true;
149
- }) : q(e2, t2, c2, i2) : e2.canClick = true;
150
+ }) : A(e2, t2, c2, i2) : e2.canClick = true;
150
151
  }).catch((n2) => {
151
152
  e2.canClick = true;
152
153
  });
153
154
  }
154
- function F(e2, n2, t2, i2, o2) {
155
- const r2 = T(e2, n2, t2, o2);
156
- q(n2, t2, $(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], i2), r2);
155
+ function T(e2, n2, t2, i2, o2) {
156
+ const r2 = U(e2, n2, t2, o2);
157
+ A(n2, t2, z(n2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], i2), r2);
157
158
  }
158
- function T(e2, n2, t2, i2) {
159
- const o2 = n2.code, r2 = n2.version, u2 = S(n2, t2);
159
+ function U(e2, n2, t2, i2) {
160
+ const o2 = n2.code, r2 = n2.version, u2 = P(n2, t2);
160
161
  if (u2) {
161
162
  const e3 = c(n2, u2), t3 = e3 ? e3.getSelections() : null, l2 = e3 ? e3.getSelectionIds() : null;
162
163
  i2 || (i2 = {}), i2.tableUuid = u2, i2.listCode = f(o2, r2, u2);
163
- L(n2) && (i2.selections = t3, i2.id = l2 && l2.length > 0 ? l2[0] : null, i2.ids = l2);
164
+ _(n2) && (i2.selections = t3, i2.id = l2 && l2.length > 0 ? l2[0] : null, i2.ids = l2);
164
165
  const a2 = e3 ? e3.getTableConfigure() : null;
165
166
  i2.tableConfigure = a2;
166
167
  }
167
- return P(n2, t2, e2, i2);
168
+ return R(n2, t2, e2, i2);
168
169
  }
169
- function U(e2, n2, t2) {
170
- const i2 = I(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
170
+ function D(e2, n2, t2) {
171
+ const i2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "beforeClick");
171
172
  let o2;
172
- return i2 && (o2 = z(e2, n2, i2, null, t2)), void 0 === o2 || o2;
173
+ return i2 && (o2 = H(e2, n2, i2, null, t2)), void 0 === o2 || o2;
173
174
  }
174
- function D(e2, n2, t2) {
175
+ function L(e2, n2, t2) {
175
176
  const i2 = e2.code + "_";
176
- m.$emit(i2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
177
+ g.$emit(i2 + "open-dialog", { pageContext: e2, configureObj: n2, eventParams: t2 });
177
178
  }
178
- function L(e2, n2) {
179
+ function _(e2, n2) {
179
180
  return !(!e2.pageType || "list" !== e2.pageType);
180
181
  }
181
- function _(e2, t2, i2) {
182
- const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = I(e2, o2, "afterClick");
182
+ function V(e2, t2, i2) {
183
+ const o2 = t2.runtime && t2.runtime.events ? t2.runtime.events : [], r2 = B(e2, o2, "afterClick");
183
184
  if (r2) {
184
- const o3 = z(e2, t2, r2, null, i2);
185
+ const o3 = H(e2, t2, r2, null, i2);
185
186
  n(o3) ? o3.finally(() => {
186
187
  e2.canClick = true;
187
188
  }) : e2.canClick = true;
188
189
  } else e2.canClick = true;
189
190
  }
190
- function V(e2, n2, t2, i2, o2, u2) {
191
+ function q(e2, n2, t2, i2, o2, u2) {
191
192
  i2 ? (e2.result = o2, e2.canClick = true) : r(e2, n2, o2, "", u2);
192
- const c2 = I(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
193
- c2 && z(e2, n2, c2, t2);
193
+ const c2 = B(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
194
+ c2 && H(e2, n2, c2, t2);
194
195
  }
195
- function q(e2, t2, i2, o2) {
196
+ function A(e2, t2, i2, o2) {
196
197
  let r2 = t2, u2 = t2.props.linkPage;
197
198
  if (u2 && u2 instanceof Array) {
198
199
  const n2 = function(e3) {
@@ -201,40 +202,40 @@ function q(e2, t2, i2, o2) {
201
202
  return n3;
202
203
  }(o2), i3 = d(e2, t2, u2, n2);
203
204
  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);
205
+ i3 && (l2 = i3.show, c2 = l2 ? i3.toPage : null), u2 = c2 ? c2.linkPage : null, u2 && (r2 = m(t2), r2.props.linkPage = u2);
205
206
  }
206
- u2 && u2.jumpPageUrl ? (e2.canClick = true, D(e2, r2, o2)) : function(e3, t3, i3, o3) {
207
- const r3 = i3, u3 = L(e3);
207
+ u2 && u2.jumpPageUrl ? (e2.canClick = true, L(e2, r2, o2)) : function(e3, t3, i3, o3) {
208
+ const r3 = i3, u3 = _(e3);
208
209
  if (r3) {
209
- const i4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = z(e3, t3, i4, o3);
210
+ const i4 = r3.func, c2 = r3.isStandard, l2 = r3.event, a2 = H(e3, t3, i4, o3);
210
211
  if (function(e4, n2) {
211
212
  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);
212
213
  }(c2, l2)) return void (e3.canClick = true);
213
214
  n(a2) ? a2.then((n2) => {
214
- n2 ? V(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
215
+ n2 ? q(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
215
216
  }).catch((n2) => {
216
217
  e3.canClick = true;
217
- }) : V(e3, t3, o3, c2, a2, u3);
218
- } else V(e3, t3, o3, false, null, u3);
218
+ }) : q(e3, t3, o3, c2, a2, u3);
219
+ } else q(e3, t3, o3, false, null, u3);
219
220
  }(e2, t2, i2, o2);
220
221
  }
221
- function A(e2, n2) {
222
+ function I(e2, n2) {
222
223
  const t2 = e2.customEvents;
223
224
  if (t2 && n2) {
224
225
  let e3 = "";
225
226
  return e3 = "object" == typeof n2 ? n2.componentUuid + "_" + n2.name : n2, t2[e3];
226
227
  }
227
228
  }
228
- function I(e2, n2, t2) {
229
+ function B(e2, n2, t2) {
229
230
  if (n2 && t2) {
230
231
  const o2 = n2.filter((e3) => e3.name === t2);
231
232
  if (o2 && o2.length > 0) {
232
233
  const n3 = o2[0];
233
- return n3.isStandard ? i[n3.eventName] : A(e2, n3);
234
+ return n3.isStandard ? i[n3.eventName] : I(e2, n3);
234
235
  }
235
236
  }
236
237
  }
237
- function B(e2, n2) {
238
+ function $(e2, n2) {
238
239
  if (e2 && n2) {
239
240
  const t2 = e2.filter((e3) => e3.name === n2);
240
241
  if (t2 && t2.length > 0) {
@@ -242,23 +243,23 @@ function B(e2, n2) {
242
243
  }
243
244
  }
244
245
  }
245
- function $(e2, n2, t2) {
246
+ function z(e2, n2, t2) {
246
247
  if (n2 && t2) {
247
248
  const o2 = n2.filter((e3) => e3.name === t2);
248
249
  if (o2 && o2.length > 0) {
249
250
  const n3 = o2[0];
250
- return n3.isStandard ? { func: i[n3.eventName], isStandard: true, event: n3 } : { func: A(e2, n3), isStandard: false, event: n3 };
251
+ return n3.isStandard ? { func: i[n3.eventName], isStandard: true, event: n3 } : { func: I(e2, n3), isStandard: false, event: n3 };
251
252
  }
252
253
  }
253
254
  }
254
- function z(e2, n2, t2, i2, o2) {
255
+ function H(e2, n2, t2, i2, o2) {
255
256
  if (t2) {
256
257
  if (i2 || (i2 = { pageContext: e2, configureObj: n2 }), o2 && i2) for (const e3 in o2) i2[e3] = o2[e3];
257
258
  return t2.apply(t2, [i2]);
258
259
  }
259
260
  }
260
- function H(e2) {
261
- const n2 = e2.pageContext, i2 = e2.configureObj, o2 = L(n2);
261
+ function Q(e2) {
262
+ const n2 = e2.pageContext, i2 = e2.configureObj, o2 = _(n2);
262
263
  let r2 = [];
263
264
  if (o2) n2.editData ? r2.push(n2.editData) : r2 = e2.selections;
264
265
  else {
@@ -270,80 +271,80 @@ function H(e2) {
270
271
  if (void 0 === u2 || "" === u2 || void 0 === r2 || 0 === r2.length) e3({ canExecute: true });
271
272
  else {
272
273
  const i4 = n2.entity.context, o3 = t(n2), c2 = true, l2 = n2.tableName;
273
- let f2, g2, m2 = true;
274
+ let f2, m2, g2 = true;
274
275
  for (let e4 = 0; e4 < r2.length; e4++) {
275
276
  const t2 = r2[e4];
276
277
  for (let e5 = 0; e5 < u2.length; e5++) {
277
278
  const r3 = u2[e5], a2 = r3.toolTips, p2 = r3.conditionList;
278
279
  if (!s(p2, t2, o3, i4, c2, l2, null, n2)) {
279
- m2 = false, f2 = a2, g2 = t2;
280
+ g2 = false, f2 = a2, m2 = t2;
280
281
  break;
281
282
  }
282
283
  }
283
284
  }
284
- m2 ? e3({ canExecute: true }) : (f2 && a({ showClose: true, type: "warning", message: f2 }), e3({ canExecute: false, message: f2, failEntity: g2 }));
285
+ g2 ? e3({ canExecute: true }) : (f2 && a({ showClose: true, type: "warning", message: f2 }), e3({ canExecute: false, message: f2, failEntity: m2 }));
285
286
  }
286
287
  });
287
288
  }
288
- function Q(e2, n2, t2, i2) {
289
+ function W(e2, n2, t2, i2) {
289
290
  var o2;
290
- n2 && (W("loadBeforeSend", w(null, (o2 = { pageContext: t2, configureObj: i2 }).pageContext, o2.configureObj, "beforeListLoad", o2), e2), W("beforeRequest", function(e3) {
291
+ n2 && (G("loadBeforeSend", w(null, (o2 = { pageContext: t2, configureObj: i2 }).pageContext, o2.configureObj, "beforeListLoad", o2), e2), G("beforeRequest", function(e3) {
291
292
  return w(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
292
- }({ pageContext: t2, configureObj: i2 }), e2), W("gridDataLoaded", function(e3) {
293
+ }({ pageContext: t2, configureObj: i2 }), e2), G("gridDataLoaded", function(e3) {
293
294
  return w(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
294
- }({ pageContext: t2, configureObj: i2 }), e2), W("gridComplete", function(e3) {
295
+ }({ pageContext: t2, configureObj: i2 }), e2), G("gridComplete", function(e3) {
295
296
  return w(null, e3.pageContext, e3.configureObj, "afterListLoad", e3);
296
- }({ pageContext: t2, configureObj: i2 }), e2), W("resizeHeight", function(e3) {
297
+ }({ pageContext: t2, configureObj: i2 }), e2), G("resizeHeight", function(e3) {
297
298
  return w(null, e3.pageContext, e3.configureObj, "resizeTableHeight", e3);
298
- }({ pageContext: t2, configureObj: i2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), W("beforeInsertRow", function(e3) {
299
+ }({ pageContext: t2, configureObj: i2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), G("beforeInsertRow", function(e3) {
299
300
  return w(null, e3.pageContext, e3.configureObj, "beforeAddRow", e3);
300
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("afterInsertRow", function(e3) {
301
+ }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("afterInsertRow", function(e3) {
301
302
  return w(null, e3.pageContext, e3.configureObj, "afterAddRow", e3);
302
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("beforeDelete", function(e3) {
303
+ }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("beforeDelete", function(e3) {
303
304
  return w(null, e3.pageContext, e3.configureObj, "beforeRemoveRow", e3);
304
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("afterDelete", function(e3) {
305
+ }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("afterDelete", function(e3) {
305
306
  return w(null, e3.pageContext, e3.configureObj, "afterRemoveRow", e3);
306
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("beforeEdit", function(e3) {
307
+ }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("beforeEdit", function(e3) {
307
308
  return w(null, e3.pageContext, e3.configureObj, "beforeEdit", e3);
308
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("beforeRestore", function(e3) {
309
+ }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("beforeRestore", function(e3) {
309
310
  return w(null, e3.pageContext, e3.configureObj, "beforeRestore", e3);
310
- }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("beforeRestoreValidate", function(e3) {
311
+ }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), G("beforeRestoreValidate", function(e3) {
311
312
  return w(null, e3.pageContext, e3.configureObj, "beforeRestoreValidate", e3);
312
313
  }({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), function(e3, n3, t3) {
313
314
  n3 && (t3[e3] = n3);
314
315
  }("filterDataEvent", w(null, t2, i2, "filter-data", { pageContext: t2, configureObj: i2 }), e2));
315
316
  }
316
- function W(e2, n2, t2) {
317
+ function G(e2, n2, t2) {
317
318
  n2 && (t2[e2] = n2);
318
319
  }
319
- function G(e2, n2, t2) {
320
+ function J(e2, n2, t2) {
320
321
  return h(null, e2, n2, "select", t2);
321
322
  }
322
- function J(e2, n2, t2) {
323
+ function K(e2, n2, t2) {
323
324
  return h(null, e2, n2, "select-all", t2);
324
325
  }
325
- function K(e2, n2, t2) {
326
+ function M(e2, n2, t2) {
326
327
  return h(null, e2, n2, "selection-change", t2);
327
328
  }
328
- function M(e2, n2, t2) {
329
+ function X(e2, n2, t2) {
329
330
  return h(null, e2, n2, "cell-click", t2);
330
331
  }
331
- function X(e2, n2, t2) {
332
+ function Y(e2, n2, t2) {
332
333
  return h(null, e2, n2, "cell-dblclick", t2);
333
334
  }
334
- function Y(e2, n2, t2) {
335
+ function Z(e2, n2, t2) {
335
336
  return h(null, e2, n2, "row-click", t2);
336
337
  }
337
- function Z(e2, n2, t2) {
338
+ function ee(e2, n2, t2) {
338
339
  return h(null, e2, n2, "row-dblclick", t2);
339
340
  }
340
- function ee(e2, n2, t2) {
341
+ function ne(e2, n2, t2) {
341
342
  return h(null, e2, n2, "header-click", t2);
342
343
  }
343
- function ne(e2) {
344
+ function te(e2) {
344
345
  return w(null, e2.pageContext, e2.configureObj, "before-upload", e2);
345
346
  }
346
- function te(n2) {
347
+ function ie(n2) {
347
348
  let t2 = true;
348
349
  if (!e()) {
349
350
  const e2 = n2 && n2.events ? n2.events : [];
@@ -354,13 +355,13 @@ function te(n2) {
354
355
  }
355
356
  return t2;
356
357
  }
357
- function ie(e2, n2, t2, i2, o2) {
358
- return z(e2, n2, I(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: i2, ...o2 });
358
+ function oe(e2, n2, t2, i2, o2) {
359
+ return H(e2, n2, B(e2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], t2), { configure: n2, pageContext: e2, chartOption: i2, ...o2 });
359
360
  }
360
- function oe(n2, t2) {
361
+ function re(n2, t2) {
361
362
  let i2 = true;
362
363
  if (e()) {
363
- const e2 = $(n2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], "click");
364
+ const e2 = z(n2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], "click");
364
365
  if (e2) {
365
366
  const n3 = e2.isStandard, t3 = e2.event, o2 = navigator ? navigator.userAgent : null;
366
367
  n3 && o2 && (o2.indexOf(" uni-app ") > 0 ? (b.includes(t3.eventName) || C.includes(t3.eventName)) && (i2 = false) : C.includes(t3.eventName) && (i2 = false));
@@ -370,33 +371,33 @@ function oe(n2, t2) {
370
371
  }
371
372
  export {
372
373
  j as appendDefaultMethods,
373
- H as canExecuteButton,
374
- M 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,
374
+ Q as canExecuteButton,
375
+ X as cellClick,
376
+ Y as cellDblClick,
377
+ V as doAfterClickEvent,
378
+ D as doBeforeClickEvent,
379
+ L as doClickJumpPageEvent,
380
+ T as doSuffixOrPrefixClickEvent,
381
+ te as fileUploadBeforeUpload,
382
+ z as getClickEventFuncByType,
382
383
  k as getCustomFunc,
383
- I as getEventFuncByType,
384
- B as getEventNameByType,
384
+ B as getEventFuncByType,
385
+ $ as getEventNameByType,
385
386
  w as getHandleEvent,
386
- S as getTableUuid,
387
- J as gridSelectAllRecords,
388
- G as gridSelectRecord,
389
- K as gridSelectionChange,
387
+ P as getTableUuid,
388
+ K as gridSelectAllRecords,
389
+ J as gridSelectRecord,
390
+ M as gridSelectionChange,
390
391
  y as handleAfterInitEvent,
391
- ie as handleChartEvent,
392
+ oe as handleChartEvent,
392
393
  h as handleEvent,
393
394
  E as handleFormEvent,
394
- ee as headerClick,
395
+ ne as headerClick,
395
396
  x as initPageEvents,
396
- te as isShowComponent,
397
- oe as isShowMobileEvent,
397
+ ie as isShowComponent,
398
+ re as isShowMobileEvent,
398
399
  O as removeCustomFuncFromWindow,
399
- Y as rowClick,
400
- Z as rowDblClick,
401
- Q as setTableEvents
400
+ Z as rowClick,
401
+ ee as rowDblClick,
402
+ W as setTableEvents
402
403
  };
@@ -3,84 +3,97 @@ import { hiprint as t, disAutoConnect as n } from "vue-plugin-hiprint";
3
3
  import { generateCodeByRule as o } from "../barcode-util.js";
4
4
  function a(n2, a2) {
5
5
  e.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/print-models/by-codes", [a2]).then((e2) => {
6
- const a3 = JSON.parse(e2[0].template), l2 = [];
6
+ const a3 = JSON.parse(e2[0].template), i2 = [];
7
7
  a3.panels.forEach((e3) => {
8
8
  e3.printElements.forEach((e4) => {
9
- "barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || l2.push(e4.options);
9
+ "barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || i2.push(e4.options);
10
10
  });
11
11
  });
12
- const i = new t.PrintTemplate({ template: a3 }), r = { callback: () => {
13
- }, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 };
14
- n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, p2) {
15
- if (t2.length > 0) {
16
- const l3 = [], i2 = JSON.parse(JSON.stringify(e3.selections));
17
- t2.forEach((e4) => {
18
- l3.push(function(e5, t3) {
12
+ const l = new t.PrintTemplate({ template: a3 }), r = { callback: () => {
13
+ }, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 }, f = {};
14
+ a3.panels[0].printElements.forEach((e3) => {
15
+ if ("datetime" === e3.options.dataType && e3.options.field) {
16
+ const t2 = e3.options.field.substring(6);
17
+ f[t2] = e3.options.dateFormat;
18
+ }
19
+ }), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2, i3) {
20
+ const l2 = JSON.parse(JSON.stringify(e3.selections));
21
+ if (l2.forEach((e4) => {
22
+ Object.keys(t2).forEach((t3) => {
23
+ if (e4[t3] && "number" == typeof e4[t3] && !isNaN(e4[t3])) try {
24
+ e4[t3] = new Date(e4[t3]);
25
+ } catch (e5) {
26
+ }
27
+ });
28
+ }), n3.length > 0) {
29
+ const e4 = [];
30
+ n3.forEach((t3) => {
31
+ e4.push(function(e5, t4) {
19
32
  return new Promise((n4, a5) => {
20
- const p3 = e5.field.split("."), l4 = [];
21
- p3.length < 2 && n4([]);
33
+ const s3 = e5.field.split("."), i4 = [];
34
+ s3.length < 2 && n4([]);
22
35
  try {
23
- s(p3[1]).then((e6) => {
24
- t3.forEach((t4, n5) => {
25
- const a6 = { type: p3[0], name: p3[1], value: null, index: n5 };
26
- a6.value = o(JSON.parse(e6.barcodeModelItems), t4), l4.push(a6);
27
- }), n4(l4);
36
+ p(s3[1]).then((e6) => {
37
+ t4.forEach((t5, n5) => {
38
+ const a6 = { type: s3[0], name: s3[1], value: null, index: n5 };
39
+ a6.value = o(JSON.parse(e6.barcodeModelItems), t5), i4.push(a6);
40
+ }), n4(i4);
28
41
  });
29
42
  } catch (e6) {
30
43
  n4([]);
31
44
  }
32
45
  });
33
- }(e4, i2));
34
- }), Promise.all(l3).then((e4) => {
35
- e4.forEach((e5) => {
36
- e5.forEach((e6) => {
37
- const t3 = e6.index, n4 = i2[t3];
38
- n4[e6.type] || (n4[e6.type] = {}), n4[e6.type][e6.name] = e6.value;
46
+ }(t3, l2));
47
+ }), Promise.all(e4).then((e5) => {
48
+ e5.forEach((e6) => {
49
+ e6.forEach((e7) => {
50
+ const t3 = e7.index, n4 = l2[t3];
51
+ n4[e7.type] || (n4[e7.type] = {}), n4[e7.type][e7.name] = e7.value;
39
52
  });
40
- }), n3.print(i2, a4, p2);
53
+ }), a4.print(l2, s2, i3);
41
54
  });
42
- } else n3.print(e3.selections, a4, p2);
43
- }(n2, l2, i, c, r) : "form" === n2.pageContext.pageType && p(n2, l2, i, c, r) : p(n2, l2, i, c, r);
55
+ } else a4.print(l2, s2, i3);
56
+ }(n2, f, i2, l, c, r) : "form" === n2.pageContext.pageType && s(n2, i2, l, c, r) : s(n2, i2, l, c, r);
44
57
  });
45
58
  }
46
- function p(e2, t2, n2, a2, p2) {
59
+ function s(e2, t2, n2, a2, s2) {
47
60
  if (t2.length > 0) {
48
- const l2 = [];
61
+ const i2 = [];
49
62
  t2.forEach((t3) => {
50
- l2.push(function(e3, t4) {
63
+ i2.push(function(e3, t4) {
51
64
  return new Promise((n3, a3) => {
52
- const p3 = t4.field.split("."), l3 = { type: null, name: null, value: null };
53
- p3.length < 2 && n3(l3), l3.type = p3[0], l3.name = p3[1];
65
+ const s3 = t4.field.split("."), i3 = { type: null, name: null, value: null };
66
+ s3.length < 2 && n3(i3), i3.type = s3[0], i3.name = s3[1];
54
67
  try {
55
- s(l3.name).then((t5) => {
68
+ p(i3.name).then((t5) => {
56
69
  const a4 = JSON.parse(t5.barcodeModelItems);
57
- l3.value = o(a4, e3.entity.data), n3(l3);
70
+ i3.value = o(a4, e3.entity.data), n3(i3);
58
71
  });
59
72
  } catch (e4) {
60
- n3(l3);
73
+ n3(i3);
61
74
  }
62
75
  });
63
76
  }(e2.pageContext, t3));
64
- }), Promise.all(l2).then((t3) => {
77
+ }), Promise.all(i2).then((t3) => {
65
78
  const o2 = {};
66
79
  t3.forEach((e3) => {
67
80
  e3.type && e3.name && e3.value && (o2[e3.type] || (o2[e3.type] = {}), o2[e3.type][e3.name] = e3.value);
68
81
  });
69
- const s2 = { table: {} };
70
- Object.assign(s2, e2.pageContext.entity, o2), s2.table = e2.pageContext.entity.data, n2.print(s2, a2, p2);
82
+ const p2 = { table: {} };
83
+ Object.assign(p2, e2.pageContext.entity, o2), p2.table = e2.pageContext.entity.data, n2.print(p2, a2, s2);
71
84
  });
72
85
  } else {
73
86
  const t3 = { table: {} };
74
- Object.assign(t3, e2.pageContext.entity), t3.table = e2.pageContext.entity.data, n2.print(t3, a2, p2);
87
+ Object.assign(t3, e2.pageContext.entity), t3.table = e2.pageContext.entity.data, n2.print(t3, a2, s2);
75
88
  }
76
89
  }
77
- function s(t2) {
90
+ function p(t2) {
78
91
  const n2 = encodeURIComponent(t2);
79
92
  return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
80
93
  }
81
94
  n();
82
- const l = { printLabel: a };
95
+ const i = { printLabel: a };
83
96
  export {
84
- l as default,
97
+ i as default,
85
98
  a as printLabel
86
99
  };