@nuwatop/code-canvas-core 0.5.12 → 0.5.13
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/index.esm.js +897 -897
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -8,7 +8,7 @@ import { subscribeWithSelector as Jr } from "zustand/middleware";
|
|
|
8
8
|
import { immer as Fr } from "zustand/middleware/immer";
|
|
9
9
|
import Wt, { useMemo as y, useCallback as j, useEffect as At, createContext as Qr, useContext as De, useState as mt, useRef as _t, useLayoutEffect as Un, useId as Zr, Suspense as Xr } from "react";
|
|
10
10
|
import * as Ft from "@ant-design/icons";
|
|
11
|
-
import { CloseCircleOutlined as Ir, PlusOutlined as Yn, UploadOutlined as ti, MenuOutlined as ei, MinusOutlined as ni, LeftOutlined as Gn, RightOutlined as Jn, UpOutlined as ri, DownOutlined as Fn, ApiOutlined as ii, InboxOutlined as
|
|
11
|
+
import { CloseCircleOutlined as Ir, PlusOutlined as Yn, UploadOutlined as ti, MenuOutlined as ei, MinusOutlined as ni, LeftOutlined as Gn, RightOutlined as Jn, UpOutlined as ri, DownOutlined as Fn, ApiOutlined as ii, InboxOutlined as oi, FilePdfOutlined as ai } from "@ant-design/icons";
|
|
12
12
|
import ci from "clsx";
|
|
13
13
|
import Ut from "dayjs";
|
|
14
14
|
import { pdfjs as ve, Document as si, Page as li } from "react-pdf";
|
|
@@ -30,13 +30,13 @@ const vi = () => {
|
|
|
30
30
|
props: n = {},
|
|
31
31
|
customTheme: i = "light",
|
|
32
32
|
forMainDocument: r = !1,
|
|
33
|
-
skipUnmount:
|
|
33
|
+
skipUnmount: o = !1
|
|
34
34
|
}) => {
|
|
35
35
|
var C;
|
|
36
36
|
vi();
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
39
|
-
if (
|
|
37
|
+
const a = Oe.get(e);
|
|
38
|
+
if (a) {
|
|
39
|
+
if (o)
|
|
40
40
|
Object.keys(e).forEach((w) => {
|
|
41
41
|
if (w.startsWith("__reactContainer") || w.startsWith("_reactRootContainer"))
|
|
42
42
|
try {
|
|
@@ -46,7 +46,7 @@ const vi = () => {
|
|
|
46
46
|
});
|
|
47
47
|
else
|
|
48
48
|
try {
|
|
49
|
-
|
|
49
|
+
a.unmount();
|
|
50
50
|
} catch (w) {
|
|
51
51
|
console.warn("[mountReactComponent] Unmount failed (benign if DOM was cleared):", w);
|
|
52
52
|
}
|
|
@@ -104,11 +104,11 @@ function _e(e) {
|
|
|
104
104
|
const t = [], n = e.split(".").flatMap((i) => {
|
|
105
105
|
const r = i.match(/^([^\[]+)(\[\d+\])(.*)$/);
|
|
106
106
|
if (r) {
|
|
107
|
-
const
|
|
108
|
-
let
|
|
109
|
-
for (; c =
|
|
110
|
-
|
|
111
|
-
return
|
|
107
|
+
const o = [r[1]];
|
|
108
|
+
let a = r[2] + r[3], c;
|
|
109
|
+
for (; c = a.match(/^\[(\d+)\](.*)$/); )
|
|
110
|
+
o.push(`[${c[1]}]`), a = c[2];
|
|
111
|
+
return a && o.push(a), o;
|
|
112
112
|
}
|
|
113
113
|
return [i];
|
|
114
114
|
});
|
|
@@ -136,15 +136,15 @@ function Si(e, t, n) {
|
|
|
136
136
|
if (!t.length) return n;
|
|
137
137
|
const i = Array.isArray(e) ? [...e] : { ...e };
|
|
138
138
|
let r = i;
|
|
139
|
-
for (let
|
|
140
|
-
const c = t[
|
|
139
|
+
for (let a = 0; a < t.length - 1; a++) {
|
|
140
|
+
const c = t[a], l = t[a + 1], d = c.key;
|
|
141
141
|
let b = r[d];
|
|
142
142
|
b == null ? b = l.type === "array" ? [] : {} : l.type === "array" && !Array.isArray(b) ? b = [] : l.type === "property" && Array.isArray(b) ? b = Object.fromEntries(
|
|
143
143
|
b.map((h, v) => [String(v), h]).filter(([, h]) => h !== void 0)
|
|
144
144
|
) : b = Array.isArray(b) ? [...b] : { ...b }, r[d] = b, r = b;
|
|
145
145
|
}
|
|
146
|
-
const
|
|
147
|
-
return r[
|
|
146
|
+
const o = t[t.length - 1];
|
|
147
|
+
return r[o.key] = n, i;
|
|
148
148
|
}
|
|
149
149
|
function it(e, t) {
|
|
150
150
|
if (t)
|
|
@@ -161,51 +161,51 @@ const pn = {
|
|
|
161
161
|
validateStore: {}
|
|
162
162
|
};
|
|
163
163
|
function vn(e, t, n, i) {
|
|
164
|
-
const { baseName: r, index:
|
|
165
|
-
if (e.dataSets[r] || (e.dataSets[r] = {}),
|
|
164
|
+
const { baseName: r, index: o } = xe(t);
|
|
165
|
+
if (e.dataSets[r] || (e.dataSets[r] = {}), o !== null) {
|
|
166
166
|
const d = e.dataSets[r];
|
|
167
167
|
let b = d.value;
|
|
168
168
|
Array.isArray(b) || (b = []);
|
|
169
|
-
const h = b[
|
|
170
|
-
s[
|
|
169
|
+
const h = b[o], v = n.length === 0 ? h : tn(h ?? {}, n), g = i(v), f = n.length === 0 ? g : Si(h ?? {}, n, g), s = [...b];
|
|
170
|
+
s[o] = f, e.dataSets[r] = { ...d, value: s };
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
173
|
if (n.length === 0) {
|
|
174
174
|
e.dataSets[r] = i(e.dataSets[r]);
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
|
-
let
|
|
177
|
+
let a = e.dataSets[r];
|
|
178
178
|
for (let d = 0; d < n.length - 1; d++) {
|
|
179
179
|
const b = n[d], h = n[d + 1];
|
|
180
|
-
let v =
|
|
181
|
-
v == null && (
|
|
180
|
+
let v = a[b.key];
|
|
181
|
+
v == null && (a[b.key] = h.type === "array" ? [] : {}, v = a[b.key]), a = v;
|
|
182
182
|
}
|
|
183
|
-
const c = n[n.length - 1], l =
|
|
184
|
-
|
|
183
|
+
const c = n[n.length - 1], l = a[c.key];
|
|
184
|
+
a[c.key] = i(l);
|
|
185
185
|
}
|
|
186
186
|
const _ = Gr()(
|
|
187
187
|
Jr(
|
|
188
188
|
Fr((e, t) => ({
|
|
189
189
|
...pn,
|
|
190
190
|
// ============ 数据集操作(支持 name[index] 与 field 多级路径;append 默认 true 为合并更新) ============
|
|
191
|
-
setDataSet: (n, i, r,
|
|
191
|
+
setDataSet: (n, i, r, o = !0) => e((a) => {
|
|
192
192
|
if (!n) return;
|
|
193
|
-
const c = i ? _e(i) : [], l =
|
|
194
|
-
vn(
|
|
193
|
+
const c = i ? _e(i) : [], l = o && typeof r == "object" && r !== null && !Array.isArray(r);
|
|
194
|
+
vn(a, n, c, (b) => l && b != null && typeof b == "object" && !Array.isArray(b) ? { ...b, ...r } : r);
|
|
195
195
|
}),
|
|
196
|
-
updateDataSet: (n, i, r) => e((
|
|
196
|
+
updateDataSet: (n, i, r) => e((o) => {
|
|
197
197
|
if (!n || typeof r != "function") return;
|
|
198
|
-
const
|
|
199
|
-
vn(
|
|
198
|
+
const a = i ? _e(i) : [];
|
|
199
|
+
vn(o, n, a, r);
|
|
200
200
|
}),
|
|
201
201
|
getDataSet: (n, i) => {
|
|
202
202
|
if (!n) return;
|
|
203
|
-
const r = t().dataSets, { baseName:
|
|
204
|
-
if (
|
|
203
|
+
const r = t().dataSets, { baseName: o, index: a } = xe(n), c = r[o];
|
|
204
|
+
if (a !== null) {
|
|
205
205
|
const l = c == null ? void 0 : c.value;
|
|
206
|
-
if (!Array.isArray(l) || l[
|
|
206
|
+
if (!Array.isArray(l) || l[a] === void 0)
|
|
207
207
|
return;
|
|
208
|
-
const d = l[
|
|
208
|
+
const d = l[a];
|
|
209
209
|
return i ? tn(d, _e(i)) : d;
|
|
210
210
|
}
|
|
211
211
|
if (c)
|
|
@@ -228,8 +228,8 @@ const _ = Gr()(
|
|
|
228
228
|
const i = t().commandQueues[n];
|
|
229
229
|
if (i && i.length > 0) {
|
|
230
230
|
const r = i[0];
|
|
231
|
-
return e((
|
|
232
|
-
|
|
231
|
+
return e((o) => {
|
|
232
|
+
o.commandQueues[n] = o.commandQueues[n].slice(1);
|
|
233
233
|
}), r;
|
|
234
234
|
}
|
|
235
235
|
},
|
|
@@ -238,24 +238,24 @@ const _ = Gr()(
|
|
|
238
238
|
}),
|
|
239
239
|
getCommands: (n) => t().commandQueues[n] || [],
|
|
240
240
|
// ============ Props 操作 ============
|
|
241
|
-
setProps: (n, i, r) => e((
|
|
242
|
-
const
|
|
243
|
-
|
|
241
|
+
setProps: (n, i, r) => e((o) => {
|
|
242
|
+
const a = `${n}_props`;
|
|
243
|
+
o.propsStore[a] || (o.propsStore[a] = {}), o.propsStore[a][i] = r;
|
|
244
244
|
}),
|
|
245
245
|
getProps: (n, i) => {
|
|
246
|
-
var
|
|
246
|
+
var o;
|
|
247
247
|
const r = `${n}_props`;
|
|
248
|
-
return (
|
|
248
|
+
return (o = t().propsStore[r]) == null ? void 0 : o[i];
|
|
249
249
|
},
|
|
250
250
|
// ============ 校验结果(key 使用 getValidateStoreKey,考虑 sessionId) ============
|
|
251
|
-
setValidateResult: (n, i, r,
|
|
251
|
+
setValidateResult: (n, i, r, o) => e((a) => {
|
|
252
252
|
const c = be(n, i);
|
|
253
|
-
c && (
|
|
253
|
+
c && (a.validateStore[c] || (a.validateStore[c] = {}), a.validateStore[c][r] = o);
|
|
254
254
|
}),
|
|
255
255
|
getValidateResult: (n, i, r) => {
|
|
256
|
-
var
|
|
257
|
-
const
|
|
258
|
-
return
|
|
256
|
+
var a;
|
|
257
|
+
const o = be(n, i);
|
|
258
|
+
return o ? ((a = t().validateStore[o]) == null ? void 0 : a[r]) ?? "" : "";
|
|
259
259
|
},
|
|
260
260
|
getValidateResults: (n, i) => {
|
|
261
261
|
const r = be(n, i);
|
|
@@ -266,7 +266,7 @@ const _ = Gr()(
|
|
|
266
266
|
}))
|
|
267
267
|
)
|
|
268
268
|
);
|
|
269
|
-
function
|
|
269
|
+
function oc(e) {
|
|
270
270
|
const { dataSet: t, dataSetField: n } = e, i = _((r) => r.setDataSet);
|
|
271
271
|
return {
|
|
272
272
|
get value() {
|
|
@@ -278,7 +278,7 @@ function ac(e) {
|
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function ac(e) {
|
|
282
282
|
const t = _((n) => n.setDataSetBatch);
|
|
283
283
|
return {
|
|
284
284
|
get value() {
|
|
@@ -298,44 +298,44 @@ function sc() {
|
|
|
298
298
|
function wi(e, t) {
|
|
299
299
|
const n = _((r) => {
|
|
300
300
|
if (!e) return;
|
|
301
|
-
const
|
|
302
|
-
return r.dataSets[
|
|
301
|
+
const o = xe(e).baseName;
|
|
302
|
+
return r.dataSets[o];
|
|
303
303
|
}), i = _((r) => r.getDataSet);
|
|
304
304
|
return y(() => {
|
|
305
305
|
if (!e) return [];
|
|
306
|
-
const r = t && String(t).trim() !== "" ? t : "",
|
|
307
|
-
return Array.isArray(
|
|
306
|
+
const r = t && String(t).trim() !== "" ? t : "", o = i(e, r);
|
|
307
|
+
return Array.isArray(o) ? o : o != null && typeof o == "object" && Array.isArray(o.value) ? o.value : [];
|
|
308
308
|
}, [n, e, t, i]);
|
|
309
309
|
}
|
|
310
310
|
function lc() {
|
|
311
|
-
const e = _((
|
|
311
|
+
const e = _((o) => o.setDataSetBatch), t = _((o) => o.setDataSet), n = _((o) => o.updateDataSet), i = _((o) => o.getDataSet), r = _.getState;
|
|
312
312
|
return {
|
|
313
313
|
get items() {
|
|
314
|
-
const
|
|
315
|
-
return new Proxy(
|
|
316
|
-
get(
|
|
317
|
-
return
|
|
314
|
+
const o = r().dataSets;
|
|
315
|
+
return new Proxy(o, {
|
|
316
|
+
get(a, c) {
|
|
317
|
+
return a[c] || {};
|
|
318
318
|
}
|
|
319
319
|
});
|
|
320
320
|
},
|
|
321
321
|
getDataSet: i,
|
|
322
322
|
setDataSet: t,
|
|
323
323
|
updateDataSet: n,
|
|
324
|
-
updateItem: (
|
|
325
|
-
const c =
|
|
326
|
-
e(
|
|
324
|
+
updateItem: (o, a) => {
|
|
325
|
+
const c = a !== null && typeof a == "object" && !Array.isArray(a) ? a : { value: a };
|
|
326
|
+
e(o, c);
|
|
327
327
|
},
|
|
328
|
-
getItem: (
|
|
328
|
+
getItem: (o) => r().dataSets[o] || {}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
331
|
function uc(e) {
|
|
332
|
-
const t = _((
|
|
332
|
+
const t = _((o) => o.addCommand), n = _((o) => o.popCommand), i = _((o) => o.getCommands), r = _((o) => o.clearCommands);
|
|
333
333
|
return {
|
|
334
334
|
commands: i(e),
|
|
335
|
-
addCommand: (
|
|
335
|
+
addCommand: (o, a) => {
|
|
336
336
|
t(e, {
|
|
337
|
-
actionName:
|
|
338
|
-
arg:
|
|
337
|
+
actionName: o,
|
|
338
|
+
arg: a,
|
|
339
339
|
timestamp: Date.now()
|
|
340
340
|
});
|
|
341
341
|
},
|
|
@@ -348,17 +348,17 @@ function Di(e, t, n = {}) {
|
|
|
348
348
|
(r) => r.commandQueues[t],
|
|
349
349
|
(r) => {
|
|
350
350
|
if (r && r.length > 0) {
|
|
351
|
-
const
|
|
352
|
-
|
|
351
|
+
const o = [...r], a = [];
|
|
352
|
+
o.forEach((c) => {
|
|
353
353
|
try {
|
|
354
354
|
const l = n[c.actionName];
|
|
355
355
|
typeof l == "function" ? l(c.arg) : console.warn(
|
|
356
356
|
`[watchCommands] Function not found: ${c.actionName}`
|
|
357
|
-
),
|
|
357
|
+
), a.push(c);
|
|
358
358
|
} catch (l) {
|
|
359
|
-
console.error("[watchCommands] 命令执行失败:", c, l),
|
|
359
|
+
console.error("[watchCommands] 命令执行失败:", c, l), a.push(c);
|
|
360
360
|
}
|
|
361
|
-
}),
|
|
361
|
+
}), a.length > 0 && (console.log("[watchCommands] Clearing command queue after execution"), _.getState().clearCommands(t));
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
);
|
|
@@ -375,10 +375,10 @@ function re(e, t = null, n = {}) {
|
|
|
375
375
|
const i = e.match(/^([^(]+)\(([^)]*)\)$/);
|
|
376
376
|
if (!i)
|
|
377
377
|
return { actionName: e, arg: t };
|
|
378
|
-
const r = i[1].trim(),
|
|
379
|
-
if (!
|
|
378
|
+
const r = i[1].trim(), o = i[2].trim();
|
|
379
|
+
if (!o)
|
|
380
380
|
return { actionName: r, arg: t };
|
|
381
|
-
const
|
|
381
|
+
const a = o.split(",").map((l) => {
|
|
382
382
|
const d = l.trim();
|
|
383
383
|
if (d === "@value")
|
|
384
384
|
return t;
|
|
@@ -387,7 +387,7 @@ function re(e, t = null, n = {}) {
|
|
|
387
387
|
return n[b];
|
|
388
388
|
}
|
|
389
389
|
return d.startsWith('"') && d.endsWith('"') || d.startsWith("'") && d.endsWith("'") ? d.slice(1, -1) : isNaN(Number(d)) ? d : Number(d);
|
|
390
|
-
}), c =
|
|
390
|
+
}), c = a.length === 1 ? a[0] : a;
|
|
391
391
|
return { actionName: r, arg: c };
|
|
392
392
|
}
|
|
393
393
|
function wt(e, t, n = {}) {
|
|
@@ -440,11 +440,11 @@ function Ci() {
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
function je(e, t, n) {
|
|
443
|
-
return Ci() ? je = Reflect.construct.bind() : je = function(r,
|
|
443
|
+
return Ci() ? je = Reflect.construct.bind() : je = function(r, o, a) {
|
|
444
444
|
var c = [null];
|
|
445
|
-
c.push.apply(c,
|
|
445
|
+
c.push.apply(c, o);
|
|
446
446
|
var l = Function.bind.apply(r, c), d = new l();
|
|
447
|
-
return
|
|
447
|
+
return a && we(d, a.prototype), d;
|
|
448
448
|
}, je.apply(null, arguments);
|
|
449
449
|
}
|
|
450
450
|
function Ti(e) {
|
|
@@ -491,14 +491,14 @@ function rn(e) {
|
|
|
491
491
|
function Vt(e) {
|
|
492
492
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
493
493
|
n[i - 1] = arguments[i];
|
|
494
|
-
var r = 0,
|
|
494
|
+
var r = 0, o = n.length;
|
|
495
495
|
if (typeof e == "function")
|
|
496
496
|
return e.apply(null, n);
|
|
497
497
|
if (typeof e == "string") {
|
|
498
|
-
var
|
|
498
|
+
var a = e.replace(Ni, function(c) {
|
|
499
499
|
if (c === "%%")
|
|
500
500
|
return "%";
|
|
501
|
-
if (r >=
|
|
501
|
+
if (r >= o)
|
|
502
502
|
return c;
|
|
503
503
|
switch (c) {
|
|
504
504
|
case "%s":
|
|
@@ -516,7 +516,7 @@ function Vt(e) {
|
|
|
516
516
|
return c;
|
|
517
517
|
}
|
|
518
518
|
});
|
|
519
|
-
return
|
|
519
|
+
return a;
|
|
520
520
|
}
|
|
521
521
|
return e;
|
|
522
522
|
}
|
|
@@ -527,25 +527,25 @@ function $t(e, t) {
|
|
|
527
527
|
return !!(e == null || t === "array" && Array.isArray(e) && !e.length || ki(t) && typeof e == "string" && !e);
|
|
528
528
|
}
|
|
529
529
|
function Oi(e, t, n) {
|
|
530
|
-
var i = [], r = 0,
|
|
531
|
-
function
|
|
532
|
-
i.push.apply(i, c || []), r++, r ===
|
|
530
|
+
var i = [], r = 0, o = e.length;
|
|
531
|
+
function a(c) {
|
|
532
|
+
i.push.apply(i, c || []), r++, r === o && n(i);
|
|
533
533
|
}
|
|
534
534
|
e.forEach(function(c) {
|
|
535
|
-
t(c,
|
|
535
|
+
t(c, a);
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
538
|
function bn(e, t, n) {
|
|
539
539
|
var i = 0, r = e.length;
|
|
540
|
-
function a
|
|
541
|
-
if (
|
|
542
|
-
n(
|
|
540
|
+
function o(a) {
|
|
541
|
+
if (a && a.length) {
|
|
542
|
+
n(a);
|
|
543
543
|
return;
|
|
544
544
|
}
|
|
545
545
|
var c = i;
|
|
546
|
-
i = i + 1, c < r ? t(e[c],
|
|
546
|
+
i = i + 1, c < r ? t(e[c], o) : n([]);
|
|
547
547
|
}
|
|
548
|
-
|
|
548
|
+
o([]);
|
|
549
549
|
}
|
|
550
550
|
function _i(e) {
|
|
551
551
|
var t = [];
|
|
@@ -563,24 +563,24 @@ var Sn = /* @__PURE__ */ function(e) {
|
|
|
563
563
|
}(/* @__PURE__ */ nn(Error));
|
|
564
564
|
function Ei(e, t, n, i, r) {
|
|
565
565
|
if (t.first) {
|
|
566
|
-
var
|
|
566
|
+
var o = new Promise(function(v, g) {
|
|
567
567
|
var f = function(u) {
|
|
568
568
|
return i(u), u.length ? g(new Sn(u, rn(u))) : v(r);
|
|
569
569
|
}, s = _i(e);
|
|
570
570
|
bn(s, n, f);
|
|
571
571
|
});
|
|
572
|
-
return
|
|
572
|
+
return o.catch(function(v) {
|
|
573
573
|
return v;
|
|
574
|
-
}),
|
|
574
|
+
}), o;
|
|
575
575
|
}
|
|
576
|
-
var
|
|
576
|
+
var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], c = Object.keys(e), l = c.length, d = 0, b = [], h = new Promise(function(v, g) {
|
|
577
577
|
var f = function(m) {
|
|
578
578
|
if (b.push.apply(b, m), d++, d === l)
|
|
579
579
|
return i(b), b.length ? g(new Sn(b, rn(b))) : v(r);
|
|
580
580
|
};
|
|
581
581
|
c.length || (i(b), v(r)), c.forEach(function(s) {
|
|
582
582
|
var m = e[s];
|
|
583
|
-
|
|
583
|
+
a.indexOf(s) !== -1 ? bn(m, n, f) : Oi(m, n, f);
|
|
584
584
|
});
|
|
585
585
|
});
|
|
586
586
|
return h.catch(function(v) {
|
|
@@ -618,10 +618,10 @@ function Dn(e, t) {
|
|
|
618
618
|
}
|
|
619
619
|
return e;
|
|
620
620
|
}
|
|
621
|
-
var Zn = function(t, n, i, r,
|
|
622
|
-
t.required && (!i.hasOwnProperty(t.field) || $t(n,
|
|
623
|
-
}, Ri = function(t, n, i, r,
|
|
624
|
-
(/^\s+$/.test(n) || n === "") && r.push(Vt(
|
|
621
|
+
var Zn = function(t, n, i, r, o, a) {
|
|
622
|
+
t.required && (!i.hasOwnProperty(t.field) || $t(n, a || t.type)) && r.push(Vt(o.messages.required, t.fullField));
|
|
623
|
+
}, Ri = function(t, n, i, r, o) {
|
|
624
|
+
(/^\s+$/.test(n) || n === "") && r.push(Vt(o.messages.whitespace, t.fullField));
|
|
625
625
|
}, Ee, ji = function() {
|
|
626
626
|
if (Ee)
|
|
627
627
|
return Ee;
|
|
@@ -638,11 +638,11 @@ var Zn = function(t, n, i, r, a, o) {
|
|
|
638
638
|
(?:` + i + ":){1}(?:(?::" + i + "){0,4}:" + n + "|(?::" + i + `){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
639
639
|
(?::(?:(?::` + i + "){0,5}:" + n + "|(?::" + i + `){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|
640
640
|
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|
641
|
-
`).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(),
|
|
642
|
-
return C && C.exact ?
|
|
641
|
+
`).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), o = new RegExp("(?:^" + n + "$)|(?:^" + r + "$)"), a = new RegExp("^" + n + "$"), c = new RegExp("^" + r + "$"), l = function(C) {
|
|
642
|
+
return C && C.exact ? o : new RegExp("(?:" + t(C) + n + t(C) + ")|(?:" + t(C) + r + t(C) + ")", "g");
|
|
643
643
|
};
|
|
644
644
|
l.v4 = function(A) {
|
|
645
|
-
return A && A.exact ?
|
|
645
|
+
return A && A.exact ? a : new RegExp("" + t(A) + n + t(A), "g");
|
|
646
646
|
}, l.v6 = function(A) {
|
|
647
647
|
return A && A.exact ? c : new RegExp("" + t(A) + r + t(A), "g");
|
|
648
648
|
};
|
|
@@ -696,27 +696,27 @@ var Zn = function(t, n, i, r, a, o) {
|
|
|
696
696
|
hex: function(t) {
|
|
697
697
|
return typeof t == "string" && !!t.match(xn.hex);
|
|
698
698
|
}
|
|
699
|
-
}, Bi = function(t, n, i, r,
|
|
699
|
+
}, Bi = function(t, n, i, r, o) {
|
|
700
700
|
if (t.required && n === void 0) {
|
|
701
|
-
Zn(t, n, i, r,
|
|
701
|
+
Zn(t, n, i, r, o);
|
|
702
702
|
return;
|
|
703
703
|
}
|
|
704
|
-
var
|
|
705
|
-
|
|
706
|
-
}, Ki = function(t, n, i, r,
|
|
707
|
-
var
|
|
704
|
+
var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], c = t.type;
|
|
705
|
+
a.indexOf(c) > -1 ? pe[c](n) || r.push(Vt(o.messages.types[c], t.fullField, t.type)) : c && typeof n !== t.type && r.push(Vt(o.messages.types[c], t.fullField, t.type));
|
|
706
|
+
}, Ki = function(t, n, i, r, o) {
|
|
707
|
+
var a = typeof t.len == "number", c = typeof t.min == "number", l = typeof t.max == "number", d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, b = n, h = null, v = typeof n == "number", g = typeof n == "string", f = Array.isArray(n);
|
|
708
708
|
if (v ? h = "number" : g ? h = "string" : f && (h = "array"), !h)
|
|
709
709
|
return !1;
|
|
710
|
-
f && (b = n.length), g && (b = n.replace(d, "_").length),
|
|
711
|
-
}, le = "enum", zi = function(t, n, i, r,
|
|
712
|
-
t[le] = Array.isArray(t[le]) ? t[le] : [], t[le].indexOf(n) === -1 && r.push(Vt(
|
|
713
|
-
}, Li = function(t, n, i, r,
|
|
710
|
+
f && (b = n.length), g && (b = n.replace(d, "_").length), a ? b !== t.len && r.push(Vt(o.messages[h].len, t.fullField, t.len)) : c && !l && b < t.min ? r.push(Vt(o.messages[h].min, t.fullField, t.min)) : l && !c && b > t.max ? r.push(Vt(o.messages[h].max, t.fullField, t.max)) : c && l && (b < t.min || b > t.max) && r.push(Vt(o.messages[h].range, t.fullField, t.min, t.max));
|
|
711
|
+
}, le = "enum", zi = function(t, n, i, r, o) {
|
|
712
|
+
t[le] = Array.isArray(t[le]) ? t[le] : [], t[le].indexOf(n) === -1 && r.push(Vt(o.messages[le], t.fullField, t[le].join(", ")));
|
|
713
|
+
}, Li = function(t, n, i, r, o) {
|
|
714
714
|
if (t.pattern) {
|
|
715
715
|
if (t.pattern instanceof RegExp)
|
|
716
|
-
t.pattern.lastIndex = 0, t.pattern.test(n) || r.push(Vt(
|
|
716
|
+
t.pattern.lastIndex = 0, t.pattern.test(n) || r.push(Vt(o.messages.pattern.mismatch, t.fullField, n, t.pattern));
|
|
717
717
|
else if (typeof t.pattern == "string") {
|
|
718
|
-
var
|
|
719
|
-
|
|
718
|
+
var a = new RegExp(t.pattern);
|
|
719
|
+
a.test(n) || r.push(Vt(o.messages.pattern.mismatch, t.fullField, n, t.pattern));
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
722
|
}, ht = {
|
|
@@ -726,124 +726,124 @@ var Zn = function(t, n, i, r, a, o) {
|
|
|
726
726
|
range: Ki,
|
|
727
727
|
enum: zi,
|
|
728
728
|
pattern: Li
|
|
729
|
-
}, Vi = function(t, n, i, r,
|
|
730
|
-
var
|
|
729
|
+
}, Vi = function(t, n, i, r, o) {
|
|
730
|
+
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
731
731
|
if (c) {
|
|
732
732
|
if ($t(n, "string") && !t.required)
|
|
733
733
|
return i();
|
|
734
|
-
ht.required(t, n, r,
|
|
734
|
+
ht.required(t, n, r, a, o, "string"), $t(n, "string") || (ht.type(t, n, r, a, o), ht.range(t, n, r, a, o), ht.pattern(t, n, r, a, o), t.whitespace === !0 && ht.whitespace(t, n, r, a, o));
|
|
735
735
|
}
|
|
736
|
-
i(
|
|
737
|
-
}, qi = function(t, n, i, r,
|
|
738
|
-
var
|
|
736
|
+
i(a);
|
|
737
|
+
}, qi = function(t, n, i, r, o) {
|
|
738
|
+
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
739
739
|
if (c) {
|
|
740
740
|
if ($t(n) && !t.required)
|
|
741
741
|
return i();
|
|
742
|
-
ht.required(t, n, r,
|
|
742
|
+
ht.required(t, n, r, a, o), n !== void 0 && ht.type(t, n, r, a, o);
|
|
743
743
|
}
|
|
744
|
-
i(
|
|
745
|
-
}, Wi = function(t, n, i, r,
|
|
746
|
-
var
|
|
744
|
+
i(a);
|
|
745
|
+
}, Wi = function(t, n, i, r, o) {
|
|
746
|
+
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
747
747
|
if (c) {
|
|
748
748
|
if (n === "" && (n = void 0), $t(n) && !t.required)
|
|
749
749
|
return i();
|
|
750
|
-
ht.required(t, n, r,
|
|
750
|
+
ht.required(t, n, r, a, o), n !== void 0 && (ht.type(t, n, r, a, o), ht.range(t, n, r, a, o));
|
|
751
751
|
}
|
|
752
|
-
i(
|
|
753
|
-
}, Hi = function(t, n, i, r,
|
|
754
|
-
var
|
|
752
|
+
i(a);
|
|
753
|
+
}, Hi = function(t, n, i, r, o) {
|
|
754
|
+
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
755
755
|
if (c) {
|
|
756
756
|
if ($t(n) && !t.required)
|
|
757
757
|
return i();
|
|
758
|
-
ht.required(t, n, r,
|
|
758
|
+
ht.required(t, n, r, a, o), n !== void 0 && ht.type(t, n, r, a, o);
|
|
759
759
|
}
|
|
760
|
-
i(
|
|
761
|
-
}, Pi = function(t, n, i, r,
|
|
762
|
-
var
|
|
760
|
+
i(a);
|
|
761
|
+
}, Pi = function(t, n, i, r, o) {
|
|
762
|
+
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
763
763
|
if (c) {
|
|
764
764
|
if ($t(n) && !t.required)
|
|
765
765
|
return i();
|
|
766
|
-
ht.required(t, n, r,
|
|
766
|
+
ht.required(t, n, r, a, o), $t(n) || ht.type(t, n, r, a, o);
|
|
767
767
|
}
|
|
768
|
-
i(
|
|
769
|
-
}, Ui = function(t, n, i, r,
|
|
770
|
-
var
|
|
768
|
+
i(a);
|
|
769
|
+
}, Ui = function(t, n, i, r, o) {
|
|
770
|
+
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
771
771
|
if (c) {
|
|
772
772
|
if ($t(n) && !t.required)
|
|
773
773
|
return i();
|
|
774
|
-
ht.required(t, n, r,
|
|
774
|
+
ht.required(t, n, r, a, o), n !== void 0 && (ht.type(t, n, r, a, o), ht.range(t, n, r, a, o));
|
|
775
775
|
}
|
|
776
|
-
i(
|
|
777
|
-
}, Yi = function(t, n, i, r,
|
|
778
|
-
var
|
|
776
|
+
i(a);
|
|
777
|
+
}, Yi = function(t, n, i, r, o) {
|
|
778
|
+
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
779
779
|
if (c) {
|
|
780
780
|
if ($t(n) && !t.required)
|
|
781
781
|
return i();
|
|
782
|
-
ht.required(t, n, r,
|
|
782
|
+
ht.required(t, n, r, a, o), n !== void 0 && (ht.type(t, n, r, a, o), ht.range(t, n, r, a, o));
|
|
783
783
|
}
|
|
784
|
-
i(
|
|
785
|
-
}, Gi = function(t, n, i, r,
|
|
786
|
-
var
|
|
784
|
+
i(a);
|
|
785
|
+
}, Gi = function(t, n, i, r, o) {
|
|
786
|
+
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
787
787
|
if (c) {
|
|
788
788
|
if (n == null && !t.required)
|
|
789
789
|
return i();
|
|
790
|
-
ht.required(t, n, r,
|
|
790
|
+
ht.required(t, n, r, a, o, "array"), n != null && (ht.type(t, n, r, a, o), ht.range(t, n, r, a, o));
|
|
791
791
|
}
|
|
792
|
-
i(
|
|
793
|
-
}, Ji = function(t, n, i, r,
|
|
794
|
-
var
|
|
792
|
+
i(a);
|
|
793
|
+
}, Ji = function(t, n, i, r, o) {
|
|
794
|
+
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
795
795
|
if (c) {
|
|
796
796
|
if ($t(n) && !t.required)
|
|
797
797
|
return i();
|
|
798
|
-
ht.required(t, n, r,
|
|
798
|
+
ht.required(t, n, r, a, o), n !== void 0 && ht.type(t, n, r, a, o);
|
|
799
799
|
}
|
|
800
|
-
i(
|
|
801
|
-
}, Fi = "enum", Qi = function(t, n, i, r,
|
|
802
|
-
var
|
|
800
|
+
i(a);
|
|
801
|
+
}, Fi = "enum", Qi = function(t, n, i, r, o) {
|
|
802
|
+
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
803
803
|
if (c) {
|
|
804
804
|
if ($t(n) && !t.required)
|
|
805
805
|
return i();
|
|
806
|
-
ht.required(t, n, r,
|
|
806
|
+
ht.required(t, n, r, a, o), n !== void 0 && ht[Fi](t, n, r, a, o);
|
|
807
807
|
}
|
|
808
|
-
i(
|
|
809
|
-
}, Zi = function(t, n, i, r,
|
|
810
|
-
var
|
|
808
|
+
i(a);
|
|
809
|
+
}, Zi = function(t, n, i, r, o) {
|
|
810
|
+
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
811
811
|
if (c) {
|
|
812
812
|
if ($t(n, "string") && !t.required)
|
|
813
813
|
return i();
|
|
814
|
-
ht.required(t, n, r,
|
|
814
|
+
ht.required(t, n, r, a, o), $t(n, "string") || ht.pattern(t, n, r, a, o);
|
|
815
815
|
}
|
|
816
|
-
i(
|
|
817
|
-
}, Xi = function(t, n, i, r,
|
|
818
|
-
var
|
|
816
|
+
i(a);
|
|
817
|
+
}, Xi = function(t, n, i, r, o) {
|
|
818
|
+
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
819
819
|
if (c) {
|
|
820
820
|
if ($t(n, "date") && !t.required)
|
|
821
821
|
return i();
|
|
822
|
-
if (ht.required(t, n, r,
|
|
822
|
+
if (ht.required(t, n, r, a, o), !$t(n, "date")) {
|
|
823
823
|
var l;
|
|
824
|
-
n instanceof Date ? l = n : l = new Date(n), ht.type(t, l, r,
|
|
824
|
+
n instanceof Date ? l = n : l = new Date(n), ht.type(t, l, r, a, o), l && ht.range(t, l.getTime(), r, a, o);
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
|
-
i(
|
|
828
|
-
}, Ii = function(t, n, i, r,
|
|
829
|
-
var
|
|
830
|
-
ht.required(t, n, r,
|
|
831
|
-
}, Ue = function(t, n, i, r,
|
|
832
|
-
var
|
|
827
|
+
i(a);
|
|
828
|
+
}, Ii = function(t, n, i, r, o) {
|
|
829
|
+
var a = [], c = Array.isArray(n) ? "array" : typeof n;
|
|
830
|
+
ht.required(t, n, r, a, o, c), i(a);
|
|
831
|
+
}, Ue = function(t, n, i, r, o) {
|
|
832
|
+
var a = t.type, c = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
833
833
|
if (l) {
|
|
834
|
-
if ($t(n,
|
|
834
|
+
if ($t(n, a) && !t.required)
|
|
835
835
|
return i();
|
|
836
|
-
ht.required(t, n, r, c,
|
|
836
|
+
ht.required(t, n, r, c, o, a), $t(n, a) || ht.type(t, n, r, c, o);
|
|
837
837
|
}
|
|
838
838
|
i(c);
|
|
839
|
-
},
|
|
840
|
-
var
|
|
839
|
+
}, to = function(t, n, i, r, o) {
|
|
840
|
+
var a = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
841
841
|
if (c) {
|
|
842
842
|
if ($t(n) && !t.required)
|
|
843
843
|
return i();
|
|
844
|
-
ht.required(t, n, r,
|
|
844
|
+
ht.required(t, n, r, a, o);
|
|
845
845
|
}
|
|
846
|
-
i(
|
|
846
|
+
i(a);
|
|
847
847
|
}, Se = {
|
|
848
848
|
string: Vi,
|
|
849
849
|
method: qi,
|
|
@@ -861,9 +861,9 @@ var Zn = function(t, n, i, r, a, o) {
|
|
|
861
861
|
hex: Ue,
|
|
862
862
|
email: Ue,
|
|
863
863
|
required: Ii,
|
|
864
|
-
any:
|
|
864
|
+
any: to
|
|
865
865
|
};
|
|
866
|
-
function
|
|
866
|
+
function on() {
|
|
867
867
|
return {
|
|
868
868
|
default: "Validation error on field %s",
|
|
869
869
|
required: "%s is required",
|
|
@@ -916,9 +916,9 @@ function an() {
|
|
|
916
916
|
}
|
|
917
917
|
};
|
|
918
918
|
}
|
|
919
|
-
var
|
|
919
|
+
var an = on(), Ae = /* @__PURE__ */ function() {
|
|
920
920
|
function e(n) {
|
|
921
|
-
this.rules = null, this._messages =
|
|
921
|
+
this.rules = null, this._messages = an, this.define(n);
|
|
922
922
|
}
|
|
923
923
|
var t = e.prototype;
|
|
924
924
|
return t.define = function(i) {
|
|
@@ -927,17 +927,17 @@ var on = an(), Ae = /* @__PURE__ */ function() {
|
|
|
927
927
|
throw new Error("Cannot configure a schema with no rules");
|
|
928
928
|
if (typeof i != "object" || Array.isArray(i))
|
|
929
929
|
throw new Error("Rules must be an object");
|
|
930
|
-
this.rules = {}, Object.keys(i).forEach(function(
|
|
931
|
-
var
|
|
932
|
-
r.rules[
|
|
930
|
+
this.rules = {}, Object.keys(i).forEach(function(o) {
|
|
931
|
+
var a = i[o];
|
|
932
|
+
r.rules[o] = Array.isArray(a) ? a : [a];
|
|
933
933
|
});
|
|
934
934
|
}, t.messages = function(i) {
|
|
935
|
-
return i && (this._messages = Dn(
|
|
936
|
-
}, t.validate = function(i, r,
|
|
937
|
-
var
|
|
938
|
-
r === void 0 && (r = {}),
|
|
935
|
+
return i && (this._messages = Dn(on(), i)), this._messages;
|
|
936
|
+
}, t.validate = function(i, r, o) {
|
|
937
|
+
var a = this;
|
|
938
|
+
r === void 0 && (r = {}), o === void 0 && (o = function() {
|
|
939
939
|
});
|
|
940
|
-
var c = i, l = r, d =
|
|
940
|
+
var c = i, l = r, d = o;
|
|
941
941
|
if (typeof l == "function" && (d = l, l = {}), !this.rules || Object.keys(this.rules).length === 0)
|
|
942
942
|
return d && d(null, c), Promise.resolve(c);
|
|
943
943
|
function b(s) {
|
|
@@ -955,17 +955,17 @@ var on = an(), Ae = /* @__PURE__ */ function() {
|
|
|
955
955
|
}
|
|
956
956
|
if (l.messages) {
|
|
957
957
|
var h = this.messages();
|
|
958
|
-
h ===
|
|
958
|
+
h === an && (h = on()), Dn(h, l.messages), l.messages = h;
|
|
959
959
|
} else
|
|
960
960
|
l.messages = this.messages();
|
|
961
961
|
var v = {}, g = l.keys || Object.keys(this.rules);
|
|
962
962
|
g.forEach(function(s) {
|
|
963
|
-
var m =
|
|
963
|
+
var m = a.rules[s], u = c[s];
|
|
964
964
|
m.forEach(function(S) {
|
|
965
965
|
var A = S;
|
|
966
966
|
typeof A.transform == "function" && (c === i && (c = ie({}, c)), u = c[s] = A.transform(u)), typeof A == "function" ? A = {
|
|
967
967
|
validator: A
|
|
968
|
-
} : A = ie({}, A), A.validator =
|
|
968
|
+
} : A = ie({}, A), A.validator = a.getValidationMethod(A), A.validator && (A.field = s, A.fullField = A.fullField || s, A.type = a.getType(A), v[s] = v[s] || [], v[s].push({
|
|
969
969
|
rule: A,
|
|
970
970
|
value: u,
|
|
971
971
|
source: c,
|
|
@@ -1039,8 +1039,8 @@ var on = an(), Ae = /* @__PURE__ */ function() {
|
|
|
1039
1039
|
}, t.getValidationMethod = function(i) {
|
|
1040
1040
|
if (typeof i.validator == "function")
|
|
1041
1041
|
return i.validator;
|
|
1042
|
-
var r = Object.keys(i),
|
|
1043
|
-
return
|
|
1042
|
+
var r = Object.keys(i), o = r.indexOf("message");
|
|
1043
|
+
return o !== -1 && r.splice(o, 1), r.length === 1 && r[0] === "required" ? Se.required : Se[this.getType(i)] || void 0;
|
|
1044
1044
|
}, e;
|
|
1045
1045
|
}();
|
|
1046
1046
|
Ae.register = function(t, n) {
|
|
@@ -1049,9 +1049,9 @@ Ae.register = function(t, n) {
|
|
|
1049
1049
|
Se[t] = n;
|
|
1050
1050
|
};
|
|
1051
1051
|
Ae.warning = Qn;
|
|
1052
|
-
Ae.messages =
|
|
1052
|
+
Ae.messages = an;
|
|
1053
1053
|
Ae.validators = Se;
|
|
1054
|
-
function
|
|
1054
|
+
function eo(e) {
|
|
1055
1055
|
if (!e || typeof e != "string") return null;
|
|
1056
1056
|
try {
|
|
1057
1057
|
let t = e.trim();
|
|
@@ -1064,7 +1064,7 @@ function Xn(e) {
|
|
|
1064
1064
|
return !e || !Array.isArray(e) ? [] : e.map((t) => {
|
|
1065
1065
|
const n = { ...t };
|
|
1066
1066
|
if (n.pattern && typeof n.pattern == "string" && n.pattern.trim()) {
|
|
1067
|
-
const i =
|
|
1067
|
+
const i = eo(n.pattern);
|
|
1068
1068
|
i ? n.pattern = i : delete n.pattern;
|
|
1069
1069
|
}
|
|
1070
1070
|
return n;
|
|
@@ -1079,12 +1079,12 @@ function In(e, t, n, i) {
|
|
|
1079
1079
|
const r = { [An]: e };
|
|
1080
1080
|
new Ae(r).validate({ [An]: t }, { first: !0 }).then(() => {
|
|
1081
1081
|
n();
|
|
1082
|
-
}).catch(({ errors:
|
|
1083
|
-
i(
|
|
1082
|
+
}).catch(({ errors: a }) => {
|
|
1083
|
+
i(a || []);
|
|
1084
1084
|
});
|
|
1085
1085
|
}
|
|
1086
1086
|
function zt(e) {
|
|
1087
|
-
const { rules: t, dataSet: n, dataSetField: i, sessionId: r, id:
|
|
1087
|
+
const { rules: t, dataSet: n, dataSetField: i, sessionId: r, id: o, develop: a } = e, c = _((w) => w.setValidateResult), l = _((w) => w.getProps), d = _((w) => w.setProps), b = y(
|
|
1088
1088
|
() => be(r, n),
|
|
1089
1089
|
[r, n]
|
|
1090
1090
|
), h = _(
|
|
@@ -1095,7 +1095,7 @@ function zt(e) {
|
|
|
1095
1095
|
), v = _(
|
|
1096
1096
|
(w) => {
|
|
1097
1097
|
var D;
|
|
1098
|
-
return r &&
|
|
1098
|
+
return r && o ? ((D = w.propsStore[`${r}_props`]) == null ? void 0 : D[o]) ?? null : null;
|
|
1099
1099
|
}
|
|
1100
1100
|
), g = _((w) => w.getDataSet), f = y(
|
|
1101
1101
|
() => it(r, n),
|
|
@@ -1111,12 +1111,12 @@ function zt(e) {
|
|
|
1111
1111
|
), u = j(
|
|
1112
1112
|
(w) => {
|
|
1113
1113
|
const D = w ?? "";
|
|
1114
|
-
if (r && n && i && c(r, n, i, D), r &&
|
|
1115
|
-
const T = l(r,
|
|
1116
|
-
d(r,
|
|
1114
|
+
if (r && n && i && c(r, n, i, D), r && o) {
|
|
1115
|
+
const T = l(r, o) || {};
|
|
1116
|
+
d(r, o, { ...T, validateStatus: D ? "error" : void 0, help: D });
|
|
1117
1117
|
}
|
|
1118
1118
|
},
|
|
1119
|
-
[r, n, i,
|
|
1119
|
+
[r, n, i, o, c, l, d]
|
|
1120
1120
|
), S = j(
|
|
1121
1121
|
(w) => {
|
|
1122
1122
|
const D = Xn(t || []);
|
|
@@ -1131,28 +1131,28 @@ function zt(e) {
|
|
|
1131
1131
|
);
|
|
1132
1132
|
},
|
|
1133
1133
|
[t, u]
|
|
1134
|
-
), A =
|
|
1134
|
+
), A = a ? void 0 : r && n && i ? h : (v == null ? void 0 : v.help) ?? "", C = !a && A ? "error" : void 0;
|
|
1135
1135
|
return At(() => {
|
|
1136
1136
|
if (m == null || !f || !i) return;
|
|
1137
1137
|
const w = g(f, i);
|
|
1138
1138
|
S(w);
|
|
1139
1139
|
}, [m, f, i, g, S]), { validate: S, help: A, validateStatus: C };
|
|
1140
1140
|
}
|
|
1141
|
-
const
|
|
1141
|
+
const no = ["value", "validateStatus", "help"];
|
|
1142
1142
|
function Qt(e, t, n) {
|
|
1143
|
-
const i = (n == null ? void 0 : n.skipKeys) ??
|
|
1144
|
-
return !t || typeof t != "object" || Object.keys(t).forEach((
|
|
1145
|
-
if (i.includes(
|
|
1146
|
-
const
|
|
1147
|
-
|
|
1143
|
+
const i = (n == null ? void 0 : n.skipKeys) ?? no, r = { ...e };
|
|
1144
|
+
return !t || typeof t != "object" || Object.keys(t).forEach((o) => {
|
|
1145
|
+
if (i.includes(o)) return;
|
|
1146
|
+
const a = t[o];
|
|
1147
|
+
a != null && (r[o] = a);
|
|
1148
1148
|
}), r;
|
|
1149
1149
|
}
|
|
1150
|
-
const
|
|
1150
|
+
const ae = Qr(null);
|
|
1151
1151
|
function Me(e) {
|
|
1152
1152
|
return typeof e == "string" && e.trim() !== "";
|
|
1153
1153
|
}
|
|
1154
1154
|
function Ke(e, t, n) {
|
|
1155
|
-
const i = De(
|
|
1155
|
+
const i = De(ae);
|
|
1156
1156
|
return y(() => {
|
|
1157
1157
|
const r = n ?? (i == null ? void 0 : i.sessionId);
|
|
1158
1158
|
if (Me(e))
|
|
@@ -1167,45 +1167,45 @@ function Ke(e, t, n) {
|
|
|
1167
1167
|
dataSetField: t,
|
|
1168
1168
|
sessionId: r
|
|
1169
1169
|
};
|
|
1170
|
-
const
|
|
1170
|
+
const o = i.index, a = i.dataSet, c = i.dataSetFieldRoot;
|
|
1171
1171
|
if (Me(t)) {
|
|
1172
1172
|
const l = t.trim();
|
|
1173
1173
|
if (l.startsWith("["))
|
|
1174
1174
|
return {
|
|
1175
|
-
dataSet:
|
|
1175
|
+
dataSet: a,
|
|
1176
1176
|
dataSetField: l,
|
|
1177
1177
|
sessionId: r
|
|
1178
1178
|
};
|
|
1179
1179
|
if (Me(c))
|
|
1180
1180
|
return {
|
|
1181
|
-
dataSet:
|
|
1182
|
-
dataSetField: `${c}[${
|
|
1181
|
+
dataSet: a,
|
|
1182
|
+
dataSetField: `${c}[${o}].${l}`,
|
|
1183
1183
|
sessionId: r
|
|
1184
1184
|
};
|
|
1185
|
-
const d = `[${
|
|
1185
|
+
const d = `[${o}].${l}`;
|
|
1186
1186
|
return {
|
|
1187
|
-
dataSet:
|
|
1187
|
+
dataSet: a,
|
|
1188
1188
|
dataSetField: d,
|
|
1189
1189
|
sessionId: r
|
|
1190
1190
|
};
|
|
1191
1191
|
}
|
|
1192
1192
|
return Me(c) ? {
|
|
1193
|
-
dataSet:
|
|
1194
|
-
dataSetField: `${c}[${
|
|
1193
|
+
dataSet: a,
|
|
1194
|
+
dataSetField: `${c}[${o}]`,
|
|
1195
1195
|
sessionId: r
|
|
1196
1196
|
} : {
|
|
1197
|
-
dataSet:
|
|
1198
|
-
dataSetField: `[${
|
|
1197
|
+
dataSet: a,
|
|
1198
|
+
dataSetField: `[${o}]`,
|
|
1199
1199
|
sessionId: r
|
|
1200
1200
|
};
|
|
1201
1201
|
}, [i, e, t, n]);
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function ro(e, t) {
|
|
1204
1204
|
return e === t ? !0 : String(e ?? "") === String(t ?? "");
|
|
1205
1205
|
}
|
|
1206
1206
|
function ce(e, t) {
|
|
1207
1207
|
if (Array.isArray(e))
|
|
1208
|
-
return e.find((n) =>
|
|
1208
|
+
return e.find((n) => ro(n.value, t));
|
|
1209
1209
|
}
|
|
1210
1210
|
let qt = {};
|
|
1211
1211
|
function mc(e) {
|
|
@@ -1214,7 +1214,7 @@ function mc(e) {
|
|
|
1214
1214
|
function Jt() {
|
|
1215
1215
|
return qt;
|
|
1216
1216
|
}
|
|
1217
|
-
async function
|
|
1217
|
+
async function oe(e) {
|
|
1218
1218
|
if (qt.request) {
|
|
1219
1219
|
const t = {
|
|
1220
1220
|
...e,
|
|
@@ -1242,61 +1242,61 @@ function cn() {
|
|
|
1242
1242
|
return qt.getAccessToken ? qt.getAccessToken() : null;
|
|
1243
1243
|
}
|
|
1244
1244
|
const hc = {
|
|
1245
|
-
post: (e, t, n) =>
|
|
1246
|
-
get: (e, t, n) =>
|
|
1245
|
+
post: (e, t, n) => oe({ url: e, data: t, method: "POST", ...n }),
|
|
1246
|
+
get: (e, t, n) => oe({ url: e, params: t, method: "GET", ...n })
|
|
1247
1247
|
};
|
|
1248
|
-
function
|
|
1248
|
+
function io() {
|
|
1249
1249
|
const e = Jt(), t = j(
|
|
1250
1250
|
async (l, d) => {
|
|
1251
1251
|
const b = typeof l == "string" ? { url: l, ...d } : l;
|
|
1252
|
-
return
|
|
1252
|
+
return oe(b);
|
|
1253
1253
|
},
|
|
1254
1254
|
[]
|
|
1255
1255
|
), n = j(
|
|
1256
|
-
async (l, d, b) =>
|
|
1256
|
+
async (l, d, b) => oe({ url: l, params: d, method: "GET", ...b }),
|
|
1257
1257
|
[]
|
|
1258
1258
|
), i = j(
|
|
1259
|
-
async (l, d, b) =>
|
|
1259
|
+
async (l, d, b) => oe({ url: l, data: d, method: "POST", ...b }),
|
|
1260
1260
|
[]
|
|
1261
1261
|
), r = j(
|
|
1262
1262
|
async (l) => dn(l),
|
|
1263
1263
|
[]
|
|
1264
|
-
),
|
|
1264
|
+
), o = j(
|
|
1265
1265
|
async (l, d) => tr(l, d),
|
|
1266
1266
|
[]
|
|
1267
|
-
),
|
|
1267
|
+
), a = j(() => cn(), []), c = j(() => !!e.request, [e.request]);
|
|
1268
1268
|
return {
|
|
1269
1269
|
request: t,
|
|
1270
1270
|
get: n,
|
|
1271
1271
|
post: i,
|
|
1272
1272
|
getDictOptions: r,
|
|
1273
|
-
upload:
|
|
1274
|
-
getAccessToken:
|
|
1273
|
+
upload: o,
|
|
1274
|
+
getAccessToken: a,
|
|
1275
1275
|
isConfigured: c,
|
|
1276
1276
|
baseURL: e.baseURL
|
|
1277
1277
|
};
|
|
1278
1278
|
}
|
|
1279
1279
|
function Ce(e) {
|
|
1280
|
-
const [t, n] = mt([]), [i, r] = mt(!1), [
|
|
1280
|
+
const [t, n] = mt([]), [i, r] = mt(!1), [o, a] = mt(null);
|
|
1281
1281
|
return At(() => {
|
|
1282
1282
|
if (!e) {
|
|
1283
1283
|
n([]);
|
|
1284
1284
|
return;
|
|
1285
1285
|
}
|
|
1286
1286
|
let c = !1;
|
|
1287
|
-
return r(!0),
|
|
1287
|
+
return r(!0), a(null), dn(e).then((l) => {
|
|
1288
1288
|
c || n(l);
|
|
1289
1289
|
}).catch((l) => {
|
|
1290
|
-
c || (
|
|
1290
|
+
c || (a(l), console.error(`Failed to load dict: ${e}`, l));
|
|
1291
1291
|
}).finally(() => {
|
|
1292
1292
|
c || r(!1);
|
|
1293
1293
|
}), () => {
|
|
1294
1294
|
c = !0;
|
|
1295
1295
|
};
|
|
1296
|
-
}, [e]), { options: t, loading: i, error:
|
|
1296
|
+
}, [e]), { options: t, loading: i, error: o };
|
|
1297
1297
|
}
|
|
1298
1298
|
function mn(e, t) {
|
|
1299
|
-
const [n, i] = mt([]), [r,
|
|
1299
|
+
const [n, i] = mt([]), [r, o] = mt(!1), [a, c] = mt(null), {
|
|
1300
1300
|
labelKey: l = "label",
|
|
1301
1301
|
valueKey: d = "value",
|
|
1302
1302
|
immediate: b = !0,
|
|
@@ -1313,9 +1313,9 @@ function mn(e, t) {
|
|
|
1313
1313
|
[l, d]
|
|
1314
1314
|
), s = j(async () => {
|
|
1315
1315
|
if (e) {
|
|
1316
|
-
|
|
1316
|
+
o(!0), c(null);
|
|
1317
1317
|
try {
|
|
1318
|
-
const m = await
|
|
1318
|
+
const m = await oe({
|
|
1319
1319
|
url: e,
|
|
1320
1320
|
method: "GET",
|
|
1321
1321
|
...g != null && Object.keys(g).length > 0 ? { params: g } : {}
|
|
@@ -1325,13 +1325,13 @@ function mn(e, t) {
|
|
|
1325
1325
|
} catch (m) {
|
|
1326
1326
|
c(m), console.error(`Failed to load remote options: ${e}`, m);
|
|
1327
1327
|
} finally {
|
|
1328
|
-
|
|
1328
|
+
o(!1);
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
}, [e, g, f, h]);
|
|
1332
1332
|
return At(() => {
|
|
1333
1333
|
b && e && s();
|
|
1334
|
-
}, [b, e, s]), { options: n, loading: r, error:
|
|
1334
|
+
}, [b, e, s]), { options: n, loading: r, error: a, reload: s };
|
|
1335
1335
|
}
|
|
1336
1336
|
const de = (e) => {
|
|
1337
1337
|
if (e == null || e === "") return 0;
|
|
@@ -1349,7 +1349,7 @@ const de = (e) => {
|
|
|
1349
1349
|
} else
|
|
1350
1350
|
t = new Date(e);
|
|
1351
1351
|
return isNaN(t.getTime()) ? null : t;
|
|
1352
|
-
},
|
|
1352
|
+
}, oo = (e, t = "CNY", n = {}) => {
|
|
1353
1353
|
try {
|
|
1354
1354
|
const i = de(e), r = /^[A-Z]{3}$/.test(t) ? t : "CNY";
|
|
1355
1355
|
return new Intl.NumberFormat("zh-CN", {
|
|
@@ -1360,7 +1360,7 @@ const de = (e) => {
|
|
|
1360
1360
|
} catch {
|
|
1361
1361
|
return "";
|
|
1362
1362
|
}
|
|
1363
|
-
},
|
|
1363
|
+
}, ao = (e, t = {}) => {
|
|
1364
1364
|
try {
|
|
1365
1365
|
const n = de(e);
|
|
1366
1366
|
return new Intl.NumberFormat("zh-CN", {
|
|
@@ -1371,7 +1371,7 @@ const de = (e) => {
|
|
|
1371
1371
|
} catch {
|
|
1372
1372
|
return "";
|
|
1373
1373
|
}
|
|
1374
|
-
},
|
|
1374
|
+
}, co = (e, t = 2) => {
|
|
1375
1375
|
try {
|
|
1376
1376
|
const n = de(e), i = Math.max(0, Math.min(20, Math.floor(t)));
|
|
1377
1377
|
return new Intl.NumberFormat("zh-CN", {
|
|
@@ -1382,7 +1382,7 @@ const de = (e) => {
|
|
|
1382
1382
|
} catch {
|
|
1383
1383
|
return "";
|
|
1384
1384
|
}
|
|
1385
|
-
},
|
|
1385
|
+
}, so = (e, t = "compact") => {
|
|
1386
1386
|
try {
|
|
1387
1387
|
const n = de(e);
|
|
1388
1388
|
return new Intl.NumberFormat("zh-CN", {
|
|
@@ -1392,7 +1392,7 @@ const de = (e) => {
|
|
|
1392
1392
|
} catch {
|
|
1393
1393
|
return "";
|
|
1394
1394
|
}
|
|
1395
|
-
},
|
|
1395
|
+
}, lo = (e, t = {}) => {
|
|
1396
1396
|
try {
|
|
1397
1397
|
const n = ze(e);
|
|
1398
1398
|
return n ? new Intl.DateTimeFormat("zh-CN", {
|
|
@@ -1408,30 +1408,30 @@ const de = (e) => {
|
|
|
1408
1408
|
try {
|
|
1409
1409
|
const n = ze(e);
|
|
1410
1410
|
if (!n) return "";
|
|
1411
|
-
const i = n.getFullYear(), r = String(n.getMonth() + 1).padStart(2, "0"),
|
|
1412
|
-
return t.replace("YYYY", String(i)).replace("MM", r).replace("DD",
|
|
1411
|
+
const i = n.getFullYear(), r = String(n.getMonth() + 1).padStart(2, "0"), o = String(n.getDate()).padStart(2, "0"), a = String(n.getHours()).padStart(2, "0"), c = String(n.getMinutes()).padStart(2, "0"), l = String(n.getSeconds()).padStart(2, "0");
|
|
1412
|
+
return t.replace("YYYY", String(i)).replace("MM", r).replace("DD", o).replace("HH", a).replace("mm", c).replace("ss", l);
|
|
1413
1413
|
} catch {
|
|
1414
1414
|
return "";
|
|
1415
1415
|
}
|
|
1416
|
-
},
|
|
1416
|
+
}, uo = (e, t = "YYYY-MM-DD HH:mm:ss") => er(e, t), fo = (e) => {
|
|
1417
1417
|
try {
|
|
1418
1418
|
const t = ze(e);
|
|
1419
1419
|
if (!t) return "";
|
|
1420
|
-
const i = (/* @__PURE__ */ new Date()).getTime() - t.getTime(), r = Math.floor(i / 1e3),
|
|
1421
|
-
return r < 60 ? "刚刚" :
|
|
1420
|
+
const i = (/* @__PURE__ */ new Date()).getTime() - t.getTime(), r = Math.floor(i / 1e3), o = Math.floor(r / 60), a = Math.floor(o / 60), c = Math.floor(a / 24), l = Math.floor(c / 30), d = Math.floor(c / 365);
|
|
1421
|
+
return r < 60 ? "刚刚" : o < 60 ? `${o}分钟前` : a < 24 ? `${a}小时前` : c < 30 ? `${c}天前` : l < 12 ? `${l}个月前` : `${d}年前`;
|
|
1422
1422
|
} catch {
|
|
1423
1423
|
return "";
|
|
1424
1424
|
}
|
|
1425
|
-
},
|
|
1425
|
+
}, mo = (e) => {
|
|
1426
1426
|
try {
|
|
1427
1427
|
const t = Math.floor(de(e));
|
|
1428
1428
|
if (t < 0 || t > 31536e3) return "";
|
|
1429
|
-
const n = Math.floor(t / 3600), i = Math.floor(t % 3600 / 60), r = t % 60,
|
|
1430
|
-
return n > 0 &&
|
|
1429
|
+
const n = Math.floor(t / 3600), i = Math.floor(t % 3600 / 60), r = t % 60, o = [];
|
|
1430
|
+
return n > 0 && o.push(`${n}小时`), i > 0 && o.push(`${i}分钟`), (r > 0 || o.length === 0) && o.push(`${r}秒`), o.join("");
|
|
1431
1431
|
} catch {
|
|
1432
1432
|
return "";
|
|
1433
1433
|
}
|
|
1434
|
-
},
|
|
1434
|
+
}, ho = (e) => {
|
|
1435
1435
|
try {
|
|
1436
1436
|
const t = ze(e);
|
|
1437
1437
|
if (!t) return "";
|
|
@@ -1443,34 +1443,34 @@ const de = (e) => {
|
|
|
1443
1443
|
} catch {
|
|
1444
1444
|
return "";
|
|
1445
1445
|
}
|
|
1446
|
-
},
|
|
1446
|
+
}, yo = (e, t = 2, n = !0) => {
|
|
1447
1447
|
try {
|
|
1448
1448
|
const i = de(e);
|
|
1449
1449
|
if (i < 0 || i > Number.MAX_SAFE_INTEGER) return "";
|
|
1450
1450
|
if (i === 0) return "0 B";
|
|
1451
|
-
const r = Math.max(0, Math.min(10, Math.floor(t))),
|
|
1452
|
-
Math.floor(Math.log(i) / Math.log(
|
|
1453
|
-
|
|
1451
|
+
const r = Math.max(0, Math.min(10, Math.floor(t))), o = n ? 1024 : 1e3, a = n ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB"] : ["B", "KB", "MB", "GB", "TB", "PB"], c = Math.min(
|
|
1452
|
+
Math.floor(Math.log(i) / Math.log(o)),
|
|
1453
|
+
a.length - 1
|
|
1454
1454
|
);
|
|
1455
|
-
return `${parseFloat((i / Math.pow(
|
|
1455
|
+
return `${parseFloat((i / Math.pow(o, c)).toFixed(r))} ${a[c]}`;
|
|
1456
1456
|
} catch {
|
|
1457
1457
|
return "";
|
|
1458
1458
|
}
|
|
1459
|
-
},
|
|
1459
|
+
}, go = (e, t = "CN") => {
|
|
1460
1460
|
try {
|
|
1461
1461
|
const n = Et(e).replace(/\D/g, "");
|
|
1462
1462
|
return n ? t === "CN" && n.length === 11 && /^1[3-9]\d{9}$/.test(n) ? n.replace(/(\d{3})(\d{4})(\d{4})/, "$1 $2 $3") : t === "US" && n.length === 10 ? n.replace(/(\d{3})(\d{3})(\d{4})/, "($1) $2-$3") : Et(e) : "";
|
|
1463
1463
|
} catch {
|
|
1464
1464
|
return "";
|
|
1465
1465
|
}
|
|
1466
|
-
},
|
|
1466
|
+
}, po = (e) => {
|
|
1467
1467
|
try {
|
|
1468
1468
|
const t = Et(e).replace(/\D/g, "");
|
|
1469
1469
|
return t.length === 11 ? t.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : Et(e);
|
|
1470
1470
|
} catch {
|
|
1471
1471
|
return "";
|
|
1472
1472
|
}
|
|
1473
|
-
},
|
|
1473
|
+
}, vo = (e) => {
|
|
1474
1474
|
try {
|
|
1475
1475
|
const t = Et(e);
|
|
1476
1476
|
if (!t || !t.includes("@")) return "";
|
|
@@ -1479,53 +1479,53 @@ const de = (e) => {
|
|
|
1479
1479
|
} catch {
|
|
1480
1480
|
return "";
|
|
1481
1481
|
}
|
|
1482
|
-
},
|
|
1482
|
+
}, bo = (e, t = !0) => {
|
|
1483
1483
|
try {
|
|
1484
1484
|
const n = Et(e).replace(/\s/g, "");
|
|
1485
1485
|
return n.length === 18 && /^\d{17}[\dXx]$/.test(n) ? t ? n.replace(/(\d{6})\d{8}(\d{3}[\dXx])/, "$1********$2") : n.replace(/(\d{6})(\d{8})(\d{4})/, "$1 $2 $3") : "";
|
|
1486
1486
|
} catch {
|
|
1487
1487
|
return "";
|
|
1488
1488
|
}
|
|
1489
|
-
},
|
|
1489
|
+
}, So = (e, t = !0) => {
|
|
1490
1490
|
try {
|
|
1491
1491
|
const n = Et(e).replace(/\s/g, "");
|
|
1492
1492
|
if (!/^\d{13,19}$/.test(n)) return "";
|
|
1493
1493
|
if (t && n.length >= 8) {
|
|
1494
|
-
const i = n.slice(0, 4), r = n.slice(-4),
|
|
1495
|
-
return (i +
|
|
1494
|
+
const i = n.slice(0, 4), r = n.slice(-4), o = n.length - 8, a = "*".repeat(o);
|
|
1495
|
+
return (i + a + r).replace(/(.{4})/g, "$1 ").trim();
|
|
1496
1496
|
}
|
|
1497
1497
|
return n.replace(/(.{4})/g, "$1 ").trim();
|
|
1498
1498
|
} catch {
|
|
1499
1499
|
return "";
|
|
1500
1500
|
}
|
|
1501
|
-
},
|
|
1501
|
+
}, wo = (e) => {
|
|
1502
1502
|
try {
|
|
1503
1503
|
const t = Et(e);
|
|
1504
1504
|
return t.length <= 1 ? t : t.length === 2 ? t[0] + "*" : t[0] + "*".repeat(t.length - 2) + t[t.length - 1];
|
|
1505
1505
|
} catch {
|
|
1506
1506
|
return "";
|
|
1507
1507
|
}
|
|
1508
|
-
},
|
|
1508
|
+
}, Do = (e, t = 50, n = "...") => {
|
|
1509
1509
|
try {
|
|
1510
1510
|
const i = Et(e), r = Math.max(1, Math.min(1e3, Math.floor(t)));
|
|
1511
1511
|
return i.length <= r ? i : i.slice(0, r) + n;
|
|
1512
1512
|
} catch {
|
|
1513
1513
|
return "";
|
|
1514
1514
|
}
|
|
1515
|
-
},
|
|
1515
|
+
}, xo = (e) => {
|
|
1516
1516
|
try {
|
|
1517
1517
|
const t = Et(e);
|
|
1518
1518
|
return t ? t.charAt(0).toUpperCase() + t.slice(1).toLowerCase() : "";
|
|
1519
1519
|
} catch {
|
|
1520
1520
|
return "";
|
|
1521
1521
|
}
|
|
1522
|
-
},
|
|
1522
|
+
}, Ao = (e, t = ", ") => {
|
|
1523
1523
|
try {
|
|
1524
1524
|
return Array.isArray(e) ? e.join(t) : Et(e);
|
|
1525
1525
|
} catch {
|
|
1526
1526
|
return "";
|
|
1527
1527
|
}
|
|
1528
|
-
},
|
|
1528
|
+
}, Co = (e) => ({
|
|
1529
1529
|
0: "女",
|
|
1530
1530
|
1: "男",
|
|
1531
1531
|
2: "未知",
|
|
@@ -1535,68 +1535,68 @@ const de = (e) => {
|
|
|
1535
1535
|
f: "女",
|
|
1536
1536
|
M: "男",
|
|
1537
1537
|
F: "女"
|
|
1538
|
-
})[Et(e)] || Et(e),
|
|
1538
|
+
})[Et(e)] || Et(e), To = (e, t) => t ? t[Et(e)] || Et(e) : {
|
|
1539
1539
|
0: "禁用",
|
|
1540
1540
|
1: "启用",
|
|
1541
1541
|
true: "是",
|
|
1542
1542
|
false: "否"
|
|
1543
|
-
}[Et(e)] || Et(e),
|
|
1543
|
+
}[Et(e)] || Et(e), No = (e) => {
|
|
1544
1544
|
try {
|
|
1545
1545
|
return Et(e).replace(/<[^>]*>/g, "");
|
|
1546
1546
|
} catch {
|
|
1547
1547
|
return "";
|
|
1548
1548
|
}
|
|
1549
1549
|
};
|
|
1550
|
-
function
|
|
1550
|
+
function ko(e, t, n = {}) {
|
|
1551
1551
|
if (!t || e === void 0 || e === null)
|
|
1552
1552
|
return Et(e);
|
|
1553
1553
|
switch (t) {
|
|
1554
1554
|
case "currency":
|
|
1555
|
-
return
|
|
1555
|
+
return oo(e, n.currency, n);
|
|
1556
1556
|
case "number":
|
|
1557
|
-
return
|
|
1557
|
+
return ao(e, n);
|
|
1558
1558
|
case "percent":
|
|
1559
|
-
return
|
|
1559
|
+
return co(e, n.precision);
|
|
1560
1560
|
case "compact":
|
|
1561
|
-
return
|
|
1561
|
+
return so(e, n.notation);
|
|
1562
1562
|
case "timestamp":
|
|
1563
|
-
return
|
|
1563
|
+
return uo(e, n.pattern);
|
|
1564
1564
|
case "date":
|
|
1565
|
-
return
|
|
1565
|
+
return lo(e, n);
|
|
1566
1566
|
case "dateCustom":
|
|
1567
1567
|
return er(e, n.pattern);
|
|
1568
1568
|
case "relativeTime":
|
|
1569
|
-
return
|
|
1569
|
+
return fo(e);
|
|
1570
1570
|
case "duration":
|
|
1571
|
-
return
|
|
1571
|
+
return mo(e);
|
|
1572
1572
|
case "age":
|
|
1573
|
-
return
|
|
1573
|
+
return ho(e);
|
|
1574
1574
|
case "fileSize":
|
|
1575
|
-
return
|
|
1575
|
+
return yo(e, n.precision, n.binary);
|
|
1576
1576
|
case "phone":
|
|
1577
|
-
return
|
|
1577
|
+
return go(e, n.country);
|
|
1578
1578
|
case "phoneMask":
|
|
1579
|
-
return
|
|
1579
|
+
return po(e);
|
|
1580
1580
|
case "emailMask":
|
|
1581
|
-
return
|
|
1581
|
+
return vo(e);
|
|
1582
1582
|
case "idCard":
|
|
1583
|
-
return
|
|
1583
|
+
return bo(e, n.mask);
|
|
1584
1584
|
case "bankCard":
|
|
1585
|
-
return
|
|
1585
|
+
return So(e, n.mask);
|
|
1586
1586
|
case "usernameMask":
|
|
1587
|
-
return
|
|
1587
|
+
return wo(e);
|
|
1588
1588
|
case "truncate":
|
|
1589
|
-
return
|
|
1589
|
+
return Do(e, n.maxLength, n.suffix);
|
|
1590
1590
|
case "capitalize":
|
|
1591
|
-
return
|
|
1591
|
+
return xo(e);
|
|
1592
1592
|
case "array":
|
|
1593
|
-
return
|
|
1593
|
+
return Ao(e, n.delimiter);
|
|
1594
1594
|
case "gender":
|
|
1595
|
-
return
|
|
1595
|
+
return Co(e);
|
|
1596
1596
|
case "status":
|
|
1597
|
-
return
|
|
1597
|
+
return To(e, n.statusMap);
|
|
1598
1598
|
case "stripHtml":
|
|
1599
|
-
return
|
|
1599
|
+
return No(e);
|
|
1600
1600
|
default:
|
|
1601
1601
|
return Et(e);
|
|
1602
1602
|
}
|
|
@@ -1670,8 +1670,8 @@ const vc = ({
|
|
|
1670
1670
|
tooltip: n,
|
|
1671
1671
|
iconName: i,
|
|
1672
1672
|
clickAction: r,
|
|
1673
|
-
sessionId:
|
|
1674
|
-
develop:
|
|
1673
|
+
sessionId: o,
|
|
1674
|
+
develop: a,
|
|
1675
1675
|
onClick: c,
|
|
1676
1676
|
children: l,
|
|
1677
1677
|
index: d,
|
|
@@ -1679,17 +1679,17 @@ const vc = ({
|
|
|
1679
1679
|
dataSetField: h,
|
|
1680
1680
|
...v
|
|
1681
1681
|
}) => {
|
|
1682
|
-
const g = _((k) => k.addCommand), f = De(
|
|
1682
|
+
const g = _((k) => k.addCommand), f = De(ae), s = d ?? (f == null ? void 0 : f.index), m = _(
|
|
1683
1683
|
(k) => {
|
|
1684
1684
|
var M;
|
|
1685
|
-
return
|
|
1685
|
+
return o && e ? (M = k.propsStore[`${o}_props`]) == null ? void 0 : M[e] : null;
|
|
1686
1686
|
}
|
|
1687
1687
|
), u = y(() => {
|
|
1688
1688
|
const k = { ...v };
|
|
1689
1689
|
return m && typeof m == "object" && Object.keys(m).forEach((M) => {
|
|
1690
1690
|
m[M] !== void 0 && m[M] !== null && (k[M] = m[M]);
|
|
1691
|
-
}),
|
|
1692
|
-
}, [v, m,
|
|
1691
|
+
}), a && (k.disabled = !1), k;
|
|
1692
|
+
}, [v, m, a]), S = y(() => {
|
|
1693
1693
|
const k = (m == null ? void 0 : m.iconName) || i;
|
|
1694
1694
|
return k && Ft[k] ? Ft[k] : null;
|
|
1695
1695
|
}, [i, m == null ? void 0 : m.iconName]), A = j(
|
|
@@ -1698,7 +1698,7 @@ const vc = ({
|
|
|
1698
1698
|
c(k);
|
|
1699
1699
|
return;
|
|
1700
1700
|
}
|
|
1701
|
-
if (r &&
|
|
1701
|
+
if (r && o) {
|
|
1702
1702
|
const { actionName: M, arg: B } = xi(r, {
|
|
1703
1703
|
id: e,
|
|
1704
1704
|
index: s,
|
|
@@ -1706,12 +1706,12 @@ const vc = ({
|
|
|
1706
1706
|
dataSetField: h,
|
|
1707
1707
|
...u
|
|
1708
1708
|
}), P = I(M, B);
|
|
1709
|
-
g(
|
|
1709
|
+
g(o, P);
|
|
1710
1710
|
}
|
|
1711
1711
|
},
|
|
1712
1712
|
[
|
|
1713
1713
|
r,
|
|
1714
|
-
|
|
1714
|
+
o,
|
|
1715
1715
|
e,
|
|
1716
1716
|
s,
|
|
1717
1717
|
b,
|
|
@@ -1738,18 +1738,18 @@ const vc = ({
|
|
|
1738
1738
|
children: C || l
|
|
1739
1739
|
}
|
|
1740
1740
|
);
|
|
1741
|
-
},
|
|
1742
|
-
function
|
|
1741
|
+
}, Oo = ["value", "validateStatus", "help"], _o = 200;
|
|
1742
|
+
function Eo(e) {
|
|
1743
1743
|
if (!e) return;
|
|
1744
1744
|
const t = {};
|
|
1745
1745
|
return Object.entries(e).forEach(([n, i]) => {
|
|
1746
1746
|
i !== "" && i !== void 0 && i !== null && (t[n] = i);
|
|
1747
1747
|
}), Object.keys(t).length > 0 ? t : void 0;
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function Mo(e, t, n) {
|
|
1750
1750
|
const i = { ...e };
|
|
1751
1751
|
if (t && typeof t == "object" && Object.keys(t).forEach((r) => {
|
|
1752
|
-
!
|
|
1752
|
+
!Oo.includes(r) && t[r] !== void 0 && t[r] !== null && (i[r] = t[r]);
|
|
1753
1753
|
}), n.develop) {
|
|
1754
1754
|
const r = i.disabled;
|
|
1755
1755
|
i.disabled = !1, i.readOnly = !0, r && (i.className = `${i.className || ""} ant-input-disabled`.trim());
|
|
@@ -1762,8 +1762,8 @@ const rr = (e) => {
|
|
|
1762
1762
|
sessionId: n,
|
|
1763
1763
|
develop: i,
|
|
1764
1764
|
dataSet: r,
|
|
1765
|
-
dataSetField:
|
|
1766
|
-
index:
|
|
1765
|
+
dataSetField: o,
|
|
1766
|
+
index: a,
|
|
1767
1767
|
changeAction: c,
|
|
1768
1768
|
onChange: l,
|
|
1769
1769
|
value: d,
|
|
@@ -1780,7 +1780,7 @@ const rr = (e) => {
|
|
|
1780
1780
|
addonAfter: C,
|
|
1781
1781
|
addonBefore: w,
|
|
1782
1782
|
...D
|
|
1783
|
-
} = e, T = Ke(r,
|
|
1783
|
+
} = e, T = Ke(r, o, n), O = T.dataSet, N = T.dataSetField, x = T.sessionId, E = _t(""), k = _t(null), M = _((W) => W.addCommand), B = _((W) => W.getDataSet), P = _((W) => W.setDataSet), U = _((W) => W.getProps), $ = _((W) => W.setProps), z = _((W) => W.setValidateResult), K = y(
|
|
1784
1784
|
() => it(x, O),
|
|
1785
1785
|
[x, O]
|
|
1786
1786
|
), L = _(
|
|
@@ -1806,8 +1806,8 @@ const rr = (e) => {
|
|
|
1806
1806
|
var et;
|
|
1807
1807
|
return q ? (et = W.dataSets[q]) == null ? void 0 : et.validate : void 0;
|
|
1808
1808
|
}
|
|
1809
|
-
), nt = y(() => X !== void 0 ? X : (L == null ? void 0 : L.value) !== void 0 ? L.value : d, [X, L == null ? void 0 : L.value, d]),
|
|
1810
|
-
() =>
|
|
1809
|
+
), nt = y(() => X !== void 0 ? X : (L == null ? void 0 : L.value) !== void 0 ? L.value : d, [X, L == null ? void 0 : L.value, d]), ot = y(
|
|
1810
|
+
() => Mo(D, L ?? null, { develop: i }),
|
|
1811
1811
|
[D, L, i]
|
|
1812
1812
|
), rt = j(
|
|
1813
1813
|
(W) => {
|
|
@@ -1861,13 +1861,13 @@ const rr = (e) => {
|
|
|
1861
1861
|
id: t,
|
|
1862
1862
|
dataSet: O,
|
|
1863
1863
|
dataSetField: N,
|
|
1864
|
-
...
|
|
1864
|
+
...ot
|
|
1865
1865
|
});
|
|
1866
1866
|
M(x, I(Z, st));
|
|
1867
1867
|
}
|
|
1868
1868
|
g && (k.current && clearTimeout(k.current), k.current = setTimeout(() => {
|
|
1869
1869
|
k.current = null, vt(et);
|
|
1870
|
-
},
|
|
1870
|
+
}, _o));
|
|
1871
1871
|
},
|
|
1872
1872
|
[
|
|
1873
1873
|
l,
|
|
@@ -1879,7 +1879,7 @@ const rr = (e) => {
|
|
|
1879
1879
|
t,
|
|
1880
1880
|
O,
|
|
1881
1881
|
N,
|
|
1882
|
-
|
|
1882
|
+
ot,
|
|
1883
1883
|
M,
|
|
1884
1884
|
g,
|
|
1885
1885
|
vt
|
|
@@ -1896,7 +1896,7 @@ const rr = (e) => {
|
|
|
1896
1896
|
vt
|
|
1897
1897
|
]), tt = j(
|
|
1898
1898
|
(W) => {
|
|
1899
|
-
const Z =
|
|
1899
|
+
const Z = ot.onPressEnter;
|
|
1900
1900
|
if (Z) {
|
|
1901
1901
|
Z(W);
|
|
1902
1902
|
return;
|
|
@@ -1906,13 +1906,13 @@ const rr = (e) => {
|
|
|
1906
1906
|
id: t,
|
|
1907
1907
|
dataSet: O,
|
|
1908
1908
|
dataSetField: N,
|
|
1909
|
-
...
|
|
1909
|
+
...ot
|
|
1910
1910
|
});
|
|
1911
1911
|
M(x, I(st, dt));
|
|
1912
1912
|
}
|
|
1913
1913
|
},
|
|
1914
1914
|
[
|
|
1915
|
-
|
|
1915
|
+
ot,
|
|
1916
1916
|
u,
|
|
1917
1917
|
x,
|
|
1918
1918
|
nt,
|
|
@@ -1922,7 +1922,7 @@ const rr = (e) => {
|
|
|
1922
1922
|
M
|
|
1923
1923
|
]
|
|
1924
1924
|
), lt = j(() => {
|
|
1925
|
-
const et =
|
|
1925
|
+
const et = ot.onClear;
|
|
1926
1926
|
if (et) {
|
|
1927
1927
|
et();
|
|
1928
1928
|
return;
|
|
@@ -1932,12 +1932,12 @@ const rr = (e) => {
|
|
|
1932
1932
|
id: t,
|
|
1933
1933
|
dataSet: O,
|
|
1934
1934
|
dataSetField: N,
|
|
1935
|
-
...
|
|
1935
|
+
...ot
|
|
1936
1936
|
});
|
|
1937
1937
|
M(x, I(Z, st));
|
|
1938
1938
|
}
|
|
1939
1939
|
}, [
|
|
1940
|
-
|
|
1940
|
+
ot,
|
|
1941
1941
|
S,
|
|
1942
1942
|
x,
|
|
1943
1943
|
t,
|
|
@@ -1956,14 +1956,14 @@ const rr = (e) => {
|
|
|
1956
1956
|
const W = String(B(K, N) ?? "");
|
|
1957
1957
|
vt(W);
|
|
1958
1958
|
}, [V, K, N, B, vt]);
|
|
1959
|
-
const
|
|
1960
|
-
() =>
|
|
1961
|
-
[
|
|
1959
|
+
const at = y(() => Eo(h), [h]), Rt = y(
|
|
1960
|
+
() => at ? { components: { Input: at } } : void 0,
|
|
1961
|
+
[at]
|
|
1962
1962
|
), Mt = i ? void 0 : x && O && N ? Y : (L == null ? void 0 : L.help) ?? "", G = /* @__PURE__ */ ct(fe, { children: [
|
|
1963
1963
|
/* @__PURE__ */ p(
|
|
1964
1964
|
Be,
|
|
1965
1965
|
{
|
|
1966
|
-
...
|
|
1966
|
+
...ot,
|
|
1967
1967
|
value: nt,
|
|
1968
1968
|
onChange: bt,
|
|
1969
1969
|
onBlur: yt,
|
|
@@ -1984,8 +1984,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
1984
1984
|
develop: n,
|
|
1985
1985
|
dataSet: i,
|
|
1986
1986
|
dataSetField: r,
|
|
1987
|
-
rules:
|
|
1988
|
-
validateOnBlur:
|
|
1987
|
+
rules: o,
|
|
1988
|
+
validateOnBlur: a,
|
|
1989
1989
|
validateOnChange: c,
|
|
1990
1990
|
changeAction: l,
|
|
1991
1991
|
pressEnterAction: d,
|
|
@@ -2008,7 +2008,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2008
2008
|
), D = _(
|
|
2009
2009
|
(q) => C && r ? q.getDataSet(C, r) : void 0
|
|
2010
2010
|
), { validate: T, help: O } = zt({
|
|
2011
|
-
rules:
|
|
2011
|
+
rules: o,
|
|
2012
2012
|
dataSet: i,
|
|
2013
2013
|
dataSetField: r,
|
|
2014
2014
|
sessionId: t,
|
|
@@ -2031,8 +2031,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2031
2031
|
},
|
|
2032
2032
|
[g, C, r, S, c, T, l, x]
|
|
2033
2033
|
), k = j(() => {
|
|
2034
|
-
|
|
2035
|
-
}, [
|
|
2034
|
+
a && T(N);
|
|
2035
|
+
}, [a, T, N]), M = j(
|
|
2036
2036
|
(q) => {
|
|
2037
2037
|
if (m.onPressEnter) {
|
|
2038
2038
|
m.onPressEnter(q);
|
|
@@ -2182,14 +2182,14 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2182
2182
|
] }) : X,
|
|
2183
2183
|
O && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: O })
|
|
2184
2184
|
] });
|
|
2185
|
-
}, { TextArea:
|
|
2185
|
+
}, { TextArea: $o } = Be, Ro = 200, wc = ({
|
|
2186
2186
|
id: e,
|
|
2187
2187
|
sessionId: t,
|
|
2188
2188
|
develop: n,
|
|
2189
2189
|
dataSet: i,
|
|
2190
2190
|
dataSetField: r,
|
|
2191
|
-
rules:
|
|
2192
|
-
validateOnBlur:
|
|
2191
|
+
rules: o,
|
|
2192
|
+
validateOnBlur: a,
|
|
2193
2193
|
validateOnChange: c,
|
|
2194
2194
|
changeAction: l,
|
|
2195
2195
|
pressEnterAction: d,
|
|
@@ -2210,7 +2210,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2210
2210
|
), O = _(
|
|
2211
2211
|
(U) => D && u ? U.getDataSet(D, u) : void 0
|
|
2212
2212
|
), { validate: N, help: x } = zt({
|
|
2213
|
-
rules:
|
|
2213
|
+
rules: o,
|
|
2214
2214
|
dataSet: m,
|
|
2215
2215
|
dataSetField: u,
|
|
2216
2216
|
sessionId: S,
|
|
@@ -2233,7 +2233,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2233
2233
|
}
|
|
2234
2234
|
c && (w.current && clearTimeout(w.current), w.current = setTimeout(() => {
|
|
2235
2235
|
w.current = null, N($);
|
|
2236
|
-
},
|
|
2236
|
+
}, Ro));
|
|
2237
2237
|
},
|
|
2238
2238
|
[
|
|
2239
2239
|
h,
|
|
@@ -2248,8 +2248,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2248
2248
|
N
|
|
2249
2249
|
]
|
|
2250
2250
|
), M = j(() => {
|
|
2251
|
-
|
|
2252
|
-
}, [
|
|
2251
|
+
a && N(E);
|
|
2252
|
+
}, [a, N, E]), B = j(
|
|
2253
2253
|
(U) => {
|
|
2254
2254
|
if (f.onPressEnter) {
|
|
2255
2255
|
f.onPressEnter(U);
|
|
@@ -2303,7 +2303,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2303
2303
|
[]
|
|
2304
2304
|
), /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
|
|
2305
2305
|
/* @__PURE__ */ p(
|
|
2306
|
-
|
|
2306
|
+
$o,
|
|
2307
2307
|
{
|
|
2308
2308
|
...f,
|
|
2309
2309
|
disabled: n ? !1 : f.disabled,
|
|
@@ -2317,14 +2317,14 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2317
2317
|
),
|
|
2318
2318
|
x && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: x })
|
|
2319
2319
|
] });
|
|
2320
|
-
}, { Password:
|
|
2320
|
+
}, { Password: jo } = Be, Bo = 200, Dc = ({
|
|
2321
2321
|
id: e,
|
|
2322
2322
|
sessionId: t,
|
|
2323
2323
|
develop: n,
|
|
2324
2324
|
dataSet: i,
|
|
2325
2325
|
dataSetField: r,
|
|
2326
|
-
rules:
|
|
2327
|
-
validateOnBlur:
|
|
2326
|
+
rules: o,
|
|
2327
|
+
validateOnBlur: a,
|
|
2328
2328
|
validateOnChange: c,
|
|
2329
2329
|
changeAction: l,
|
|
2330
2330
|
pressEnterAction: d,
|
|
@@ -2345,7 +2345,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2345
2345
|
), C = _(
|
|
2346
2346
|
(k) => S && r ? k.getDataSet(S, r) : void 0
|
|
2347
2347
|
), { validate: w, help: D } = zt({
|
|
2348
|
-
rules:
|
|
2348
|
+
rules: o,
|
|
2349
2349
|
dataSet: i,
|
|
2350
2350
|
dataSetField: r,
|
|
2351
2351
|
sessionId: t,
|
|
@@ -2368,7 +2368,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2368
2368
|
}
|
|
2369
2369
|
c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
|
|
2370
2370
|
u.current = null, w(M);
|
|
2371
|
-
},
|
|
2371
|
+
}, Bo));
|
|
2372
2372
|
},
|
|
2373
2373
|
[
|
|
2374
2374
|
h,
|
|
@@ -2383,8 +2383,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2383
2383
|
w
|
|
2384
2384
|
]
|
|
2385
2385
|
), N = j(() => {
|
|
2386
|
-
|
|
2387
|
-
}, [
|
|
2386
|
+
a && w(T);
|
|
2387
|
+
}, [a, w, T]), x = j(
|
|
2388
2388
|
(k) => {
|
|
2389
2389
|
if (f.onPressEnter) {
|
|
2390
2390
|
f.onPressEnter(k);
|
|
@@ -2430,7 +2430,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2430
2430
|
[]
|
|
2431
2431
|
), /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
|
|
2432
2432
|
/* @__PURE__ */ p(
|
|
2433
|
-
|
|
2433
|
+
jo,
|
|
2434
2434
|
{
|
|
2435
2435
|
...f,
|
|
2436
2436
|
disabled: n ? !1 : f.disabled,
|
|
@@ -2444,14 +2444,14 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2444
2444
|
),
|
|
2445
2445
|
D && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
|
|
2446
2446
|
] });
|
|
2447
|
-
}, { Search:
|
|
2447
|
+
}, { Search: Ko } = Be, xc = ({
|
|
2448
2448
|
id: e,
|
|
2449
2449
|
sessionId: t,
|
|
2450
2450
|
develop: n,
|
|
2451
2451
|
dataSet: i,
|
|
2452
2452
|
dataSetField: r,
|
|
2453
|
-
changeAction:
|
|
2454
|
-
searchAction:
|
|
2453
|
+
changeAction: o,
|
|
2454
|
+
searchAction: a,
|
|
2455
2455
|
onChange: c,
|
|
2456
2456
|
onSearch: l,
|
|
2457
2457
|
value: d,
|
|
@@ -2469,26 +2469,26 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2469
2469
|
c(w);
|
|
2470
2470
|
return;
|
|
2471
2471
|
}
|
|
2472
|
-
if (s && r && f(s, r, w),
|
|
2473
|
-
const { actionName: D, arg: T } = wt(
|
|
2472
|
+
if (s && r && f(s, r, w), o && t) {
|
|
2473
|
+
const { actionName: D, arg: T } = wt(o, w, { id: e, dataSet: i, dataSetField: r });
|
|
2474
2474
|
v(t, I(D, T));
|
|
2475
2475
|
}
|
|
2476
|
-
}, [c, s, r, f,
|
|
2476
|
+
}, [c, s, r, f, o, t, e, v]), A = j((C) => {
|
|
2477
2477
|
if (l) {
|
|
2478
2478
|
l(C);
|
|
2479
2479
|
return;
|
|
2480
2480
|
}
|
|
2481
|
-
|
|
2482
|
-
}, [l,
|
|
2483
|
-
return /* @__PURE__ */ p(
|
|
2484
|
-
},
|
|
2481
|
+
a && t && v(t, I(a, C));
|
|
2482
|
+
}, [l, a, t, v]);
|
|
2483
|
+
return /* @__PURE__ */ p(Ko, { ...h, disabled: n ? !1 : h.disabled, value: u, onChange: S, onSearch: A });
|
|
2484
|
+
}, zo = 200, Ac = ({
|
|
2485
2485
|
id: e,
|
|
2486
2486
|
sessionId: t,
|
|
2487
2487
|
develop: n,
|
|
2488
2488
|
dataSet: i,
|
|
2489
2489
|
dataSetField: r,
|
|
2490
|
-
enableDict:
|
|
2491
|
-
dictType:
|
|
2490
|
+
enableDict: o,
|
|
2491
|
+
dictType: a,
|
|
2492
2492
|
optionsCfg: c,
|
|
2493
2493
|
rules: l,
|
|
2494
2494
|
validateOnBlur: d,
|
|
@@ -2508,7 +2508,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2508
2508
|
dropdownMatchSelectWidth: T,
|
|
2509
2509
|
...O
|
|
2510
2510
|
}) => {
|
|
2511
|
-
const N = _((tt) => tt.addCommand), x = _((tt) => tt.setDataSet), E = _t(null), k = De(
|
|
2511
|
+
const N = _((tt) => tt.addCommand), x = _((tt) => tt.setDataSet), E = _t(null), k = De(ae), M = y(
|
|
2512
2512
|
() => it(t, i),
|
|
2513
2513
|
[t, i]
|
|
2514
2514
|
), B = m ?? (k == null ? void 0 : k.index), P = _(
|
|
@@ -2522,7 +2522,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2522
2522
|
() => (P == null ? void 0 : P.optionsCfg) != null ? P.optionsCfg : c,
|
|
2523
2523
|
[P == null ? void 0 : P.optionsCfg, c]
|
|
2524
2524
|
), { options: z, loading: K } = Ce(
|
|
2525
|
-
D || (
|
|
2525
|
+
D || (o ? a : void 0)
|
|
2526
2526
|
), { options: L, loading: R } = mn(
|
|
2527
2527
|
$ == null ? void 0 : $.url,
|
|
2528
2528
|
{
|
|
@@ -2542,16 +2542,16 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2542
2542
|
}), V = y(() => U != null && U !== "" ? U : (P == null ? void 0 : P.value) !== void 0 ? P.value : s ?? f, [U, P == null ? void 0 : P.value, s, f]), nt = y(
|
|
2543
2543
|
() => Qt(O, P ?? void 0),
|
|
2544
2544
|
[O, P]
|
|
2545
|
-
),
|
|
2546
|
-
if (
|
|
2545
|
+
), ot = y(() => P != null && P.options && Array.isArray(P.options) ? P.options : $ != null && $.url && L.length > 0 ? L : (D || o && a) && z.length > 0 ? z : g || [], [P == null ? void 0 : P.options, $ == null ? void 0 : $.url, L, D, o, a, z, g]), rt = y(() => {
|
|
2546
|
+
if (ot.length === 0) return V;
|
|
2547
2547
|
if (Array.isArray(V))
|
|
2548
2548
|
return V.map((lt) => {
|
|
2549
|
-
var
|
|
2550
|
-
return ((
|
|
2549
|
+
var at;
|
|
2550
|
+
return ((at = ce(ot, lt)) == null ? void 0 : at.value) ?? lt;
|
|
2551
2551
|
});
|
|
2552
|
-
const tt = ce(
|
|
2552
|
+
const tt = ce(ot, V);
|
|
2553
2553
|
return (tt == null ? void 0 : tt.value) ?? V;
|
|
2554
|
-
}, [V,
|
|
2554
|
+
}, [V, ot]), vt = j(
|
|
2555
2555
|
(tt, lt) => {
|
|
2556
2556
|
if (v) {
|
|
2557
2557
|
v(tt, lt);
|
|
@@ -2559,14 +2559,14 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2559
2559
|
}
|
|
2560
2560
|
if (M && r && x(M, r, tt), b && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
|
|
2561
2561
|
E.current = null, X(tt);
|
|
2562
|
-
},
|
|
2563
|
-
const { actionName:
|
|
2562
|
+
}, zo)), h && t) {
|
|
2563
|
+
const { actionName: at, arg: Rt } = wt(h, tt, {
|
|
2564
2564
|
id: e,
|
|
2565
2565
|
dataSet: i,
|
|
2566
2566
|
dataSetField: r,
|
|
2567
2567
|
index: B
|
|
2568
2568
|
});
|
|
2569
|
-
N(t, I(
|
|
2569
|
+
N(t, I(at, Rt));
|
|
2570
2570
|
}
|
|
2571
2571
|
},
|
|
2572
2572
|
[
|
|
@@ -2600,7 +2600,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2600
2600
|
disabled: n ? !1 : nt.disabled,
|
|
2601
2601
|
open: n ? !1 : void 0,
|
|
2602
2602
|
value: rt,
|
|
2603
|
-
options:
|
|
2603
|
+
options: ot,
|
|
2604
2604
|
onChange: vt,
|
|
2605
2605
|
onBlur: bt,
|
|
2606
2606
|
filterOption: yt,
|
|
@@ -2617,8 +2617,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2617
2617
|
develop: n,
|
|
2618
2618
|
dataSet: i,
|
|
2619
2619
|
dataSetField: r,
|
|
2620
|
-
rules:
|
|
2621
|
-
validateOnBlur:
|
|
2620
|
+
rules: o,
|
|
2621
|
+
validateOnBlur: a,
|
|
2622
2622
|
validateOnChange: c,
|
|
2623
2623
|
changeAction: l,
|
|
2624
2624
|
onChange: d,
|
|
@@ -2637,7 +2637,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2637
2637
|
), u = _(
|
|
2638
2638
|
(T) => s && r ? T.getDataSet(s, r) : void 0
|
|
2639
2639
|
), { validate: S, help: A } = zt({
|
|
2640
|
-
rules:
|
|
2640
|
+
rules: o,
|
|
2641
2641
|
dataSet: i,
|
|
2642
2642
|
dataSetField: r,
|
|
2643
2643
|
sessionId: t,
|
|
@@ -2671,8 +2671,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2671
2671
|
g
|
|
2672
2672
|
]
|
|
2673
2673
|
), D = j(() => {
|
|
2674
|
-
|
|
2675
|
-
}, [
|
|
2674
|
+
a && S(C);
|
|
2675
|
+
}, [a, S, C]);
|
|
2676
2676
|
return /* @__PURE__ */ ct("div", { style: { display: "inline-block" }, onBlur: D, children: [
|
|
2677
2677
|
/* @__PURE__ */ p(
|
|
2678
2678
|
hr,
|
|
@@ -2691,8 +2691,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2691
2691
|
develop: n,
|
|
2692
2692
|
dataSet: i,
|
|
2693
2693
|
dataSetField: r,
|
|
2694
|
-
changeAction:
|
|
2695
|
-
valueFormat:
|
|
2694
|
+
changeAction: o,
|
|
2695
|
+
valueFormat: a = "YYYY-MM-DD",
|
|
2696
2696
|
rules: c,
|
|
2697
2697
|
validateOnBlur: l,
|
|
2698
2698
|
validateOnChange: d,
|
|
@@ -2722,11 +2722,11 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2722
2722
|
if (!x) return null;
|
|
2723
2723
|
if (Ut.isDayjs(x)) return x;
|
|
2724
2724
|
if (typeof x == "string") {
|
|
2725
|
-
const E = Ut(x,
|
|
2725
|
+
const E = Ut(x, a);
|
|
2726
2726
|
return E.isValid() ? E : null;
|
|
2727
2727
|
}
|
|
2728
2728
|
return null;
|
|
2729
|
-
}, [
|
|
2729
|
+
}, [a]), D = y(() => {
|
|
2730
2730
|
const x = S ?? (u == null ? void 0 : u.value) ?? h ?? v;
|
|
2731
2731
|
return w(x);
|
|
2732
2732
|
}, [S, u == null ? void 0 : u.value, h, v, w]), T = j(
|
|
@@ -2736,8 +2736,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2736
2736
|
return;
|
|
2737
2737
|
}
|
|
2738
2738
|
const k = Array.isArray(E) ? E[0] : E;
|
|
2739
|
-
if (m && r && s(m, r, k), d && A(k),
|
|
2740
|
-
const { actionName: M, arg: B } = wt(
|
|
2739
|
+
if (m && r && s(m, r, k), d && A(k), o && t) {
|
|
2740
|
+
const { actionName: M, arg: B } = wt(o, k, {
|
|
2741
2741
|
id: e,
|
|
2742
2742
|
dataSet: i,
|
|
2743
2743
|
dataSetField: r
|
|
@@ -2745,20 +2745,20 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2745
2745
|
f(t, I(M, B));
|
|
2746
2746
|
}
|
|
2747
2747
|
},
|
|
2748
|
-
[b, m, r, s, d, A,
|
|
2748
|
+
[b, m, r, s, d, A, o, t, e, f]
|
|
2749
2749
|
);
|
|
2750
2750
|
At(() => {
|
|
2751
2751
|
if (v && D === null && m && r) {
|
|
2752
|
-
const x = Ut(v).format(
|
|
2752
|
+
const x = Ut(v).format(a);
|
|
2753
2753
|
s(m, r, x);
|
|
2754
2754
|
}
|
|
2755
|
-
}, [v, D, m, r, s,
|
|
2755
|
+
}, [v, D, m, r, s, a]);
|
|
2756
2756
|
const O = j(() => {
|
|
2757
2757
|
if (l) {
|
|
2758
|
-
const x = D ? D.format(
|
|
2758
|
+
const x = D ? D.format(a) : null;
|
|
2759
2759
|
A(x);
|
|
2760
2760
|
}
|
|
2761
|
-
}, [l, A, D,
|
|
2761
|
+
}, [l, A, D, a]), N = y(
|
|
2762
2762
|
() => Qt(g, u ?? void 0),
|
|
2763
2763
|
[g, u]
|
|
2764
2764
|
);
|
|
@@ -2782,8 +2782,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2782
2782
|
develop: n,
|
|
2783
2783
|
dataSet: i,
|
|
2784
2784
|
dataSetField: r,
|
|
2785
|
-
changeAction:
|
|
2786
|
-
valueFormat:
|
|
2785
|
+
changeAction: o,
|
|
2786
|
+
valueFormat: a = "HH:mm:ss",
|
|
2787
2787
|
onChange: c,
|
|
2788
2788
|
value: l,
|
|
2789
2789
|
defaultValue: d,
|
|
@@ -2808,23 +2808,23 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2808
2808
|
if (!x) return null;
|
|
2809
2809
|
if (Ut.isDayjs(x)) return x;
|
|
2810
2810
|
if (typeof x == "string") {
|
|
2811
|
-
const E = Ut(x,
|
|
2811
|
+
const E = Ut(x, a);
|
|
2812
2812
|
return E.isValid() ? E : null;
|
|
2813
2813
|
}
|
|
2814
2814
|
return null;
|
|
2815
|
-
}, [
|
|
2815
|
+
}, [a]), D = y(() => w(S ?? l ?? d), [S, l, d, w]), T = j((x, E) => {
|
|
2816
2816
|
if (c) {
|
|
2817
2817
|
c(x, E);
|
|
2818
2818
|
return;
|
|
2819
2819
|
}
|
|
2820
2820
|
const k = E || "";
|
|
2821
|
-
if (u && r && m(u, r, k), h && A(k),
|
|
2822
|
-
const { actionName: M, arg: B } = wt(
|
|
2821
|
+
if (u && r && m(u, r, k), h && A(k), o && t) {
|
|
2822
|
+
const { actionName: M, arg: B } = wt(o, k, { id: e, dataSet: i, dataSetField: r });
|
|
2823
2823
|
f(t, I(M, B));
|
|
2824
2824
|
}
|
|
2825
|
-
}, [c, u, r, m, h, A,
|
|
2826
|
-
v && A(D ? D.format(
|
|
2827
|
-
}, [v, A, D,
|
|
2825
|
+
}, [c, u, r, m, h, A, o, t, e, f]), O = j(() => {
|
|
2826
|
+
v && A(D ? D.format(a) : "");
|
|
2827
|
+
}, [v, A, D, a]), N = C ? "error" : void 0;
|
|
2828
2828
|
return /* @__PURE__ */ ct(fe, { children: [
|
|
2829
2829
|
/* @__PURE__ */ p(
|
|
2830
2830
|
yr,
|
|
@@ -2841,14 +2841,14 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2841
2841
|
),
|
|
2842
2842
|
C && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: C })
|
|
2843
2843
|
] });
|
|
2844
|
-
}, { RangePicker:
|
|
2844
|
+
}, { RangePicker: Lo } = Kn, kc = ({
|
|
2845
2845
|
id: e,
|
|
2846
2846
|
sessionId: t,
|
|
2847
2847
|
develop: n,
|
|
2848
2848
|
dataSet: i,
|
|
2849
2849
|
dataSetField: r,
|
|
2850
|
-
changeAction:
|
|
2851
|
-
valueFormat:
|
|
2850
|
+
changeAction: o,
|
|
2851
|
+
valueFormat: a = "YYYY-MM-DD",
|
|
2852
2852
|
rules: c,
|
|
2853
2853
|
validateOnBlur: l,
|
|
2854
2854
|
validateOnChange: d,
|
|
@@ -2876,9 +2876,9 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2876
2876
|
develop: n
|
|
2877
2877
|
}), w = j((x) => {
|
|
2878
2878
|
if (!x || !Array.isArray(x) || x.length !== 2) return null;
|
|
2879
|
-
const [E, k] = x, M = Ut.isDayjs(E) ? E : Ut(E,
|
|
2879
|
+
const [E, k] = x, M = Ut.isDayjs(E) ? E : Ut(E, a), B = Ut.isDayjs(k) ? k : Ut(k, a);
|
|
2880
2880
|
return M.isValid() && B.isValid() ? [M, B] : null;
|
|
2881
|
-
}, [
|
|
2881
|
+
}, [a]), D = y(() => {
|
|
2882
2882
|
const x = S ?? (u == null ? void 0 : u.value) ?? h ?? v;
|
|
2883
2883
|
return w(x);
|
|
2884
2884
|
}, [S, u == null ? void 0 : u.value, h, v, w]), T = y(
|
|
@@ -2890,8 +2890,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2890
2890
|
b(x, E);
|
|
2891
2891
|
return;
|
|
2892
2892
|
}
|
|
2893
|
-
if (m && r && s(m, r, E), d && A(E),
|
|
2894
|
-
const { actionName: k, arg: M } = wt(
|
|
2893
|
+
if (m && r && s(m, r, E), d && A(E), o && t) {
|
|
2894
|
+
const { actionName: k, arg: M } = wt(o, E, {
|
|
2895
2895
|
id: e,
|
|
2896
2896
|
dataSet: i,
|
|
2897
2897
|
dataSetField: r
|
|
@@ -2899,14 +2899,14 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2899
2899
|
f(t, I(k, M));
|
|
2900
2900
|
}
|
|
2901
2901
|
},
|
|
2902
|
-
[b, m, r, s, d, A,
|
|
2902
|
+
[b, m, r, s, d, A, o, t, e, f]
|
|
2903
2903
|
), N = j(() => {
|
|
2904
2904
|
var x, E;
|
|
2905
|
-
l && A(D ? [(x = D[0]) == null ? void 0 : x.format(
|
|
2906
|
-
}, [l, A, D,
|
|
2905
|
+
l && A(D ? [(x = D[0]) == null ? void 0 : x.format(a), (E = D[1]) == null ? void 0 : E.format(a)] : null);
|
|
2906
|
+
}, [l, A, D, a]);
|
|
2907
2907
|
return /* @__PURE__ */ ct("div", { onBlur: N, children: [
|
|
2908
2908
|
/* @__PURE__ */ p(
|
|
2909
|
-
|
|
2909
|
+
Lo,
|
|
2910
2910
|
{
|
|
2911
2911
|
...T,
|
|
2912
2912
|
disabled: n ? !1 : T.disabled,
|
|
@@ -2924,8 +2924,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2924
2924
|
develop: n,
|
|
2925
2925
|
dataSet: i,
|
|
2926
2926
|
dataSetField: r,
|
|
2927
|
-
options:
|
|
2928
|
-
optionsCfg:
|
|
2927
|
+
options: o = [],
|
|
2928
|
+
optionsCfg: a,
|
|
2929
2929
|
changeAction: c,
|
|
2930
2930
|
buttonStyle: l,
|
|
2931
2931
|
optionType: d = "default",
|
|
@@ -2958,13 +2958,13 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
2958
2958
|
id: e,
|
|
2959
2959
|
develop: n
|
|
2960
2960
|
}), E = y(() => O !== void 0 ? O : (T == null ? void 0 : T.value) !== void 0 ? T.value : f ?? s, [O, T == null ? void 0 : T.value, f, s]), { options: k } = Ce(m), { options: M } = mn(
|
|
2961
|
-
|
|
2961
|
+
a == null ? void 0 : a.url,
|
|
2962
2962
|
{
|
|
2963
|
-
valueKey: (
|
|
2964
|
-
labelKey: (
|
|
2965
|
-
immediate: !!(
|
|
2963
|
+
valueKey: (a == null ? void 0 : a.codeKey) || "value",
|
|
2964
|
+
labelKey: (a == null ? void 0 : a.labelKey) || "label",
|
|
2965
|
+
immediate: !!(a != null && a.url)
|
|
2966
2966
|
}
|
|
2967
|
-
), B = y(() => T != null && T.options ? T.options :
|
|
2967
|
+
), B = y(() => T != null && T.options ? T.options : a != null && a.url && M.length > 0 ? M : m && k.length > 0 ? k : o, [T == null ? void 0 : T.options, a == null ? void 0 : a.url, M, m, k, o]), P = y(() => {
|
|
2968
2968
|
if (B.length === 0) return E;
|
|
2969
2969
|
const K = ce(B, E);
|
|
2970
2970
|
return (K == null ? void 0 : K.value) ?? E;
|
|
@@ -3030,8 +3030,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3030
3030
|
develop: n,
|
|
3031
3031
|
dataSet: i,
|
|
3032
3032
|
dataSetField: r,
|
|
3033
|
-
options:
|
|
3034
|
-
optionsCfg:
|
|
3033
|
+
options: o = [],
|
|
3034
|
+
optionsCfg: a,
|
|
3035
3035
|
multiple: c = !1,
|
|
3036
3036
|
changeAction: l,
|
|
3037
3037
|
rules: d,
|
|
@@ -3067,16 +3067,16 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3067
3067
|
id: e,
|
|
3068
3068
|
develop: n
|
|
3069
3069
|
}), { options: M } = Ce(S), { options: B } = mn(
|
|
3070
|
-
|
|
3070
|
+
a == null ? void 0 : a.url,
|
|
3071
3071
|
{
|
|
3072
|
-
valueKey: (
|
|
3073
|
-
labelKey: (
|
|
3074
|
-
immediate: !!(
|
|
3072
|
+
valueKey: (a == null ? void 0 : a.codeKey) || "value",
|
|
3073
|
+
labelKey: (a == null ? void 0 : a.labelKey) || "label",
|
|
3074
|
+
immediate: !!(a != null && a.url)
|
|
3075
3075
|
}
|
|
3076
3076
|
), P = y(() => {
|
|
3077
3077
|
if (!c)
|
|
3078
3078
|
return x !== void 0 ? !!x : (N == null ? void 0 : N.checked) !== void 0 ? N.checked : f ?? m;
|
|
3079
|
-
}, [c, x, N == null ? void 0 : N.checked, f, m]), U = y(() => N != null && N.options ? N.options :
|
|
3079
|
+
}, [c, x, N == null ? void 0 : N.checked, f, m]), U = y(() => N != null && N.options ? N.options : a != null && a.url && B.length > 0 ? B : S && M.length > 0 ? M : o, [N == null ? void 0 : N.options, a == null ? void 0 : a.url, B, S, M, o]), $ = y(() => {
|
|
3080
3080
|
if (!c) return [];
|
|
3081
3081
|
let q = [];
|
|
3082
3082
|
return Array.isArray(x) ? q = x : Array.isArray(N == null ? void 0 : N.values) ? q = N.values : q = s || [], U.length === 0 ? q : q.map((V) => {
|
|
@@ -3093,8 +3093,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3093
3093
|
return;
|
|
3094
3094
|
}
|
|
3095
3095
|
if (O && r && T(O, r, V), h && E(V), l && t) {
|
|
3096
|
-
const { actionName: nt, arg:
|
|
3097
|
-
D(t, I(nt,
|
|
3096
|
+
const { actionName: nt, arg: ot } = wt(l, V, { id: e, dataSet: i, dataSetField: r });
|
|
3097
|
+
D(t, I(nt, ot));
|
|
3098
3098
|
}
|
|
3099
3099
|
}, [v, O, r, T, h, E, l, t, e, D]), Y = j((q) => {
|
|
3100
3100
|
if (g) {
|
|
@@ -3116,7 +3116,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3116
3116
|
{
|
|
3117
3117
|
orientation: L,
|
|
3118
3118
|
wrap: !0,
|
|
3119
|
-
children: U.map((
|
|
3119
|
+
children: U.map((ot) => /* @__PURE__ */ p(ue, { value: ot.value, disabled: ot.disabled, children: ot.label }, ot.value))
|
|
3120
3120
|
}
|
|
3121
3121
|
) }),
|
|
3122
3122
|
k && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
|
|
@@ -3141,8 +3141,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3141
3141
|
develop: n,
|
|
3142
3142
|
dataSet: i,
|
|
3143
3143
|
dataSetField: r,
|
|
3144
|
-
changeAction:
|
|
3145
|
-
rules:
|
|
3144
|
+
changeAction: o,
|
|
3145
|
+
rules: a,
|
|
3146
3146
|
validateOnBlur: c,
|
|
3147
3147
|
validateOnChange: l,
|
|
3148
3148
|
onChange: d,
|
|
@@ -3161,7 +3161,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3161
3161
|
), u = _(
|
|
3162
3162
|
(O) => s && r ? O.getDataSet(s, r) : void 0
|
|
3163
3163
|
), { validate: S, help: A } = zt({
|
|
3164
|
-
rules:
|
|
3164
|
+
rules: a,
|
|
3165
3165
|
dataSet: i,
|
|
3166
3166
|
dataSetField: r,
|
|
3167
3167
|
sessionId: t,
|
|
@@ -3173,8 +3173,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3173
3173
|
d(O);
|
|
3174
3174
|
return;
|
|
3175
3175
|
}
|
|
3176
|
-
if (s && r && f(s, r, O), l && S(O),
|
|
3177
|
-
const { actionName: N, arg: x } = wt(
|
|
3176
|
+
if (s && r && f(s, r, O), l && S(O), o && t) {
|
|
3177
|
+
const { actionName: N, arg: x } = wt(o, O, {
|
|
3178
3178
|
id: e,
|
|
3179
3179
|
dataSet: i,
|
|
3180
3180
|
dataSetField: r
|
|
@@ -3182,7 +3182,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3182
3182
|
g(t, I(N, x));
|
|
3183
3183
|
}
|
|
3184
3184
|
},
|
|
3185
|
-
[d, s, r, f, l, S,
|
|
3185
|
+
[d, s, r, f, l, S, o, t, e, g]
|
|
3186
3186
|
), D = j(() => {
|
|
3187
3187
|
c && S(C);
|
|
3188
3188
|
}, [c, S, C]), T = y(
|
|
@@ -3207,8 +3207,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3207
3207
|
develop: n,
|
|
3208
3208
|
dataSet: i,
|
|
3209
3209
|
dataSetField: r,
|
|
3210
|
-
changeAction:
|
|
3211
|
-
onChange:
|
|
3210
|
+
changeAction: o,
|
|
3211
|
+
onChange: a,
|
|
3212
3212
|
value: c,
|
|
3213
3213
|
defaultValue: l,
|
|
3214
3214
|
...d
|
|
@@ -3219,34 +3219,34 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3219
3219
|
), f = y(() => {
|
|
3220
3220
|
if (g && r) return h(g, r);
|
|
3221
3221
|
}, [g, r, h]), s = y(() => f ?? c ?? l, [f, c, l]), m = j((u) => {
|
|
3222
|
-
if (
|
|
3223
|
-
|
|
3222
|
+
if (a) {
|
|
3223
|
+
a(u);
|
|
3224
3224
|
return;
|
|
3225
3225
|
}
|
|
3226
|
-
if (g && r && v(g, r, u),
|
|
3227
|
-
const { actionName: S, arg: A } = wt(
|
|
3226
|
+
if (g && r && v(g, r, u), o && t) {
|
|
3227
|
+
const { actionName: S, arg: A } = wt(o, u, { id: e, dataSet: i, dataSetField: r });
|
|
3228
3228
|
b(t, I(S, A));
|
|
3229
3229
|
}
|
|
3230
|
-
}, [
|
|
3230
|
+
}, [a, g, r, v, o, t, e, b]);
|
|
3231
3231
|
return /* @__PURE__ */ p(pr, { ...d, disabled: n ? !1 : d.disabled, value: s, onChange: m });
|
|
3232
|
-
},
|
|
3232
|
+
}, Vo = 200, ir = (e, t, n = 1) => {
|
|
3233
3233
|
if (!Array.isArray(e)) return [];
|
|
3234
|
-
const { codeKey: i, labelKey: r, childrenKey:
|
|
3234
|
+
const { codeKey: i, labelKey: r, childrenKey: o, maxLevel: a } = t;
|
|
3235
3235
|
return e.map((c) => {
|
|
3236
|
-
const l = n <
|
|
3236
|
+
const l = n < a && Array.isArray(c == null ? void 0 : c[o]) ? ir(c[o], t, n + 1) : void 0, d = {
|
|
3237
3237
|
value: String(c == null ? void 0 : c[i]),
|
|
3238
3238
|
label: c == null ? void 0 : c[r]
|
|
3239
3239
|
};
|
|
3240
3240
|
return l && l.length && (d.children = l), d;
|
|
3241
3241
|
});
|
|
3242
|
-
}, Tn = (e) => !e || typeof e != "string" ? [] : e.includes(",") ? e.split(",").map((t) => t.trim()).filter((t) => t) : [e],
|
|
3243
|
-
const n = (i, r,
|
|
3244
|
-
for (const
|
|
3245
|
-
const c =
|
|
3242
|
+
}, Tn = (e) => !e || typeof e != "string" ? [] : e.includes(",") ? e.split(",").map((t) => t.trim()).filter((t) => t) : [e], qo = (e, t) => {
|
|
3243
|
+
const n = (i, r, o = []) => {
|
|
3244
|
+
for (const a of i) {
|
|
3245
|
+
const c = a.value, l = [...o, c];
|
|
3246
3246
|
if (c === r)
|
|
3247
3247
|
return l;
|
|
3248
|
-
if (
|
|
3249
|
-
const d = n(
|
|
3248
|
+
if (a.children && Array.isArray(a.children)) {
|
|
3249
|
+
const d = n(a.children, r, l);
|
|
3250
3250
|
if (d) return d;
|
|
3251
3251
|
}
|
|
3252
3252
|
}
|
|
@@ -3259,8 +3259,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3259
3259
|
develop: n,
|
|
3260
3260
|
dataSet: i,
|
|
3261
3261
|
dataSetField: r,
|
|
3262
|
-
optionsCfg:
|
|
3263
|
-
rules:
|
|
3262
|
+
optionsCfg: o,
|
|
3263
|
+
rules: a,
|
|
3264
3264
|
validateOnBlur: c,
|
|
3265
3265
|
validateOnChange: l,
|
|
3266
3266
|
changeAction: d,
|
|
@@ -3277,22 +3277,22 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3277
3277
|
), O = _(
|
|
3278
3278
|
($) => T && r ? $.getDataSet(T, r) : void 0
|
|
3279
3279
|
), { validate: N, help: x, validateStatus: E } = zt({
|
|
3280
|
-
rules:
|
|
3280
|
+
rules: a,
|
|
3281
3281
|
dataSet: i,
|
|
3282
3282
|
dataSetField: r,
|
|
3283
3283
|
sessionId: t,
|
|
3284
3284
|
id: e,
|
|
3285
3285
|
develop: n
|
|
3286
|
-
}), k = y(() => (
|
|
3286
|
+
}), k = y(() => (o == null ? void 0 : o.url) && A.length > 0, [o == null ? void 0 : o.url, A.length]), M = y(() => {
|
|
3287
3287
|
let $ = O ?? g ?? v ?? [];
|
|
3288
|
-
return typeof $ == "string" ? k ? Tn($).map((K) =>
|
|
3289
|
-
}, [O, g, v, k, A]), B = y(() =>
|
|
3288
|
+
return typeof $ == "string" ? k ? Tn($).map((K) => qo(K, A)).filter((K) => Array.isArray(K) && K.length > 0) : [$] : Nn($) && k ? $.map((K) => Tn(K)).filter((K) => Array.isArray(K) && K.length > 0) : kn($) && k ? $.filter((z) => Array.isArray(z) && z.length > 0) : $;
|
|
3289
|
+
}, [O, g, v, k, A]), B = y(() => o != null && o.url && A.length > 0 ? A : h || [], [o == null ? void 0 : o.url, A, h]);
|
|
3290
3290
|
At(() => {
|
|
3291
3291
|
(async () => {
|
|
3292
|
-
if (
|
|
3292
|
+
if (o != null && o.url) {
|
|
3293
3293
|
D(!0);
|
|
3294
3294
|
try {
|
|
3295
|
-
const z = await
|
|
3295
|
+
const z = await oe({ url: o.url, method: "GET" }), K = Array.isArray(z) ? z : z != null && z.data ? Array.isArray(z.data) ? z.data : z.data.list || z.data.records || [] : [], L = o.codeKey || "value", R = o.labelKey || "label", Y = o.childrenKey || "children", X = o.maxLevel || 5, q = ir(K, {
|
|
3296
3296
|
codeKey: L,
|
|
3297
3297
|
labelKey: R,
|
|
3298
3298
|
childrenKey: Y,
|
|
@@ -3306,7 +3306,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3306
3306
|
}
|
|
3307
3307
|
}
|
|
3308
3308
|
})();
|
|
3309
|
-
}, [
|
|
3309
|
+
}, [o == null ? void 0 : o.url, o == null ? void 0 : o.codeKey, o == null ? void 0 : o.labelKey, o == null ? void 0 : o.childrenKey, o == null ? void 0 : o.maxLevel]);
|
|
3310
3310
|
const P = j(
|
|
3311
3311
|
($, z) => {
|
|
3312
3312
|
if (b) {
|
|
@@ -3316,7 +3316,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3316
3316
|
let K = $;
|
|
3317
3317
|
if (Nn($) && k ? K = String($[$.length - 1] || "") : kn($) && k && (K = $.map((L) => L.join(","))), T && r && u(T, r, K), l && (S.current && clearTimeout(S.current), S.current = setTimeout(() => {
|
|
3318
3318
|
S.current = null, N($);
|
|
3319
|
-
},
|
|
3319
|
+
}, Vo)), d && t) {
|
|
3320
3320
|
const { actionName: L, arg: R } = wt(d, $, {
|
|
3321
3321
|
id: e,
|
|
3322
3322
|
dataSet: i,
|
|
@@ -3370,8 +3370,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3370
3370
|
develop: n,
|
|
3371
3371
|
dataSet: i,
|
|
3372
3372
|
dataSetField: r,
|
|
3373
|
-
changeAction:
|
|
3374
|
-
onChange:
|
|
3373
|
+
changeAction: o,
|
|
3374
|
+
onChange: a,
|
|
3375
3375
|
value: c,
|
|
3376
3376
|
defaultValue: l,
|
|
3377
3377
|
treeData: d,
|
|
@@ -3410,12 +3410,12 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3410
3410
|
[S, D]
|
|
3411
3411
|
), k = j(
|
|
3412
3412
|
(z, K, L) => {
|
|
3413
|
-
if (
|
|
3414
|
-
|
|
3413
|
+
if (a) {
|
|
3414
|
+
a(z, K, L);
|
|
3415
3415
|
return;
|
|
3416
3416
|
}
|
|
3417
|
-
if (w && r && C(w, r, z), m && O(z),
|
|
3418
|
-
const { actionName: R, arg: Y } = wt(
|
|
3417
|
+
if (w && r && C(w, r, z), m && O(z), o && t) {
|
|
3418
|
+
const { actionName: R, arg: Y } = wt(o, z, {
|
|
3419
3419
|
id: e,
|
|
3420
3420
|
dataSet: i,
|
|
3421
3421
|
dataSetField: r
|
|
@@ -3423,7 +3423,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3423
3423
|
A(t, I(R, Y));
|
|
3424
3424
|
}
|
|
3425
3425
|
},
|
|
3426
|
-
[
|
|
3426
|
+
[a, w, r, C, m, O, o, t, e, A]
|
|
3427
3427
|
), M = j(() => {
|
|
3428
3428
|
u && O(x);
|
|
3429
3429
|
}, [u, O, x]), B = y(() => {
|
|
@@ -3464,8 +3464,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3464
3464
|
develop: n,
|
|
3465
3465
|
dataSet: i,
|
|
3466
3466
|
dataSetField: r,
|
|
3467
|
-
changeAction:
|
|
3468
|
-
buttonText:
|
|
3467
|
+
changeAction: o,
|
|
3468
|
+
buttonText: a = "上传文件",
|
|
3469
3469
|
rules: c,
|
|
3470
3470
|
validateOnBlur: l,
|
|
3471
3471
|
validateOnChange: d,
|
|
@@ -3555,9 +3555,9 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3555
3555
|
return;
|
|
3556
3556
|
}
|
|
3557
3557
|
const W = Array.isArray(G.fileList) ? B(G.fileList) : G.fileList, et = Array.isArray(W) ? k(W) : [], Z = Array.isArray(W) && W.some((dt) => (dt == null ? void 0 : dt.status) === "uploading");
|
|
3558
|
-
T && A && (et.length > 0 || !Array.isArray(W) || W.length === 0) ? (D(T, A, et), U(null)) : Z ? U(W) : W.length === 0 && U(null), d && x(W),
|
|
3558
|
+
T && A && (et.length > 0 || !Array.isArray(W) || W.length === 0) ? (D(T, A, et), U(null)) : Z ? U(W) : W.length === 0 && U(null), d && x(W), o && C && w(
|
|
3559
3559
|
C,
|
|
3560
|
-
I(
|
|
3560
|
+
I(o, {
|
|
3561
3561
|
file: G.file,
|
|
3562
3562
|
fileList: W,
|
|
3563
3563
|
src: et
|
|
@@ -3571,7 +3571,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3571
3571
|
D,
|
|
3572
3572
|
d,
|
|
3573
3573
|
x,
|
|
3574
|
-
|
|
3574
|
+
o,
|
|
3575
3575
|
C,
|
|
3576
3576
|
w,
|
|
3577
3577
|
B,
|
|
@@ -3589,7 +3589,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3589
3589
|
var Z, st;
|
|
3590
3590
|
const W = ((Z = G.response) == null ? void 0 : Z.src) ?? G.name ?? "", et = ((st = String(W).split(".").pop()) == null ? void 0 : st.toLowerCase()) || "";
|
|
3591
3591
|
return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(et) || /^data:image\//.test(q(G));
|
|
3592
|
-
}, [q]), [nt,
|
|
3592
|
+
}, [q]), [nt, ot] = mt({
|
|
3593
3593
|
url: "",
|
|
3594
3594
|
name: "",
|
|
3595
3595
|
urls: [],
|
|
@@ -3600,11 +3600,11 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3600
3600
|
if (W)
|
|
3601
3601
|
if (V(G) && (z != null && z.length)) {
|
|
3602
3602
|
const et = z.filter((dt) => V(dt)), Z = et.map((dt) => q(dt)).filter(Boolean), st = et.findIndex((dt) => (dt.uid || dt.url) === (G.uid || G.url));
|
|
3603
|
-
|
|
3603
|
+
ot({ url: W, name: G.name, urls: Z, current: st >= 0 ? st : 0, open: !0 });
|
|
3604
3604
|
} else V(G) || window.open(W, "_blank");
|
|
3605
|
-
}, [q, V, z]), bt = !!Jt().upload && !s, yt = K, tt = yt.buttonText ??
|
|
3606
|
-
(G) => Mt ? (ke.warning(`最多只能上传 ${
|
|
3607
|
-
[Mt,
|
|
3605
|
+
}, [q, V, z]), bt = !!Jt().upload && !s, yt = K, tt = yt.buttonText ?? a, lt = yt.listType ?? m.listType, at = yt.maxCount, Rt = (z == null ? void 0 : z.length) ?? 0, Mt = typeof at == "number" && Rt >= at, Bt = j(
|
|
3606
|
+
(G) => Mt ? (ke.warning(`最多只能上传 ${at} 个文件`), !1) : L(G),
|
|
3607
|
+
[Mt, at, L]
|
|
3608
3608
|
);
|
|
3609
3609
|
return /* @__PURE__ */ ct("div", { onBlur: X, children: [
|
|
3610
3610
|
/* @__PURE__ */ p(
|
|
@@ -3631,7 +3631,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3631
3631
|
{
|
|
3632
3632
|
preview: {
|
|
3633
3633
|
current: nt.current,
|
|
3634
|
-
onOpenChange: (G) => !G &&
|
|
3634
|
+
onOpenChange: (G) => !G && ot((W) => ({ ...W, open: !1 }))
|
|
3635
3635
|
},
|
|
3636
3636
|
children: nt.urls.map((G, W) => /* @__PURE__ */ p(
|
|
3637
3637
|
Zt,
|
|
@@ -3640,7 +3640,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3640
3640
|
style: { width: 1, height: 1 },
|
|
3641
3641
|
preview: {
|
|
3642
3642
|
open: nt.open && nt.current === W,
|
|
3643
|
-
onOpenChange: (et) => !et &&
|
|
3643
|
+
onOpenChange: (et) => !et && ot((Z) => ({ ...Z, open: !1 }))
|
|
3644
3644
|
}
|
|
3645
3645
|
},
|
|
3646
3646
|
W
|
|
@@ -3654,7 +3654,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3654
3654
|
style: { width: 1, height: 1 },
|
|
3655
3655
|
preview: {
|
|
3656
3656
|
open: nt.open,
|
|
3657
|
-
onOpenChange: (G) => !G &&
|
|
3657
|
+
onOpenChange: (G) => !G && ot((W) => ({ ...W, open: !1 }))
|
|
3658
3658
|
}
|
|
3659
3659
|
}
|
|
3660
3660
|
) })
|
|
@@ -3665,8 +3665,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3665
3665
|
develop: n,
|
|
3666
3666
|
dataSet: i,
|
|
3667
3667
|
dataSetField: r,
|
|
3668
|
-
changeAction:
|
|
3669
|
-
selectAction:
|
|
3668
|
+
changeAction: o,
|
|
3669
|
+
selectAction: a,
|
|
3670
3670
|
onChange: c,
|
|
3671
3671
|
onSelect: l,
|
|
3672
3672
|
value: d,
|
|
@@ -3681,7 +3681,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3681
3681
|
const m = _((B) => B.addCommand), u = _((B) => B.getDataSet), S = _((B) => B.setDataSet), A = y(
|
|
3682
3682
|
() => it(t, i),
|
|
3683
3683
|
[t, i]
|
|
3684
|
-
), [C, w] = mt(h || []), [, D] = mt(!1), T = Wt.useRef(void 0), { get: O } =
|
|
3684
|
+
), [C, w] = mt(h || []), [, D] = mt(!1), T = Wt.useRef(void 0), { get: O } = io(), N = y(() => {
|
|
3685
3685
|
if (A && r) return u(A, r);
|
|
3686
3686
|
}, [A, r, u]), x = y(() => N ?? d ?? b, [N, d, b]), E = j((B) => {
|
|
3687
3687
|
if (!(g != null && g.queryApi)) {
|
|
@@ -3728,17 +3728,17 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3728
3728
|
c(B);
|
|
3729
3729
|
return;
|
|
3730
3730
|
}
|
|
3731
|
-
if (A && r && S(A, r, B),
|
|
3732
|
-
const { actionName: P, arg: U } = wt(
|
|
3731
|
+
if (A && r && S(A, r, B), o && t) {
|
|
3732
|
+
const { actionName: P, arg: U } = wt(o, B, { id: e, dataSet: i, dataSetField: r });
|
|
3733
3733
|
m(t, I(P, U));
|
|
3734
3734
|
}
|
|
3735
|
-
}, [c, A, r, S,
|
|
3735
|
+
}, [c, A, r, S, o, t, e, m]), M = j((B, P) => {
|
|
3736
3736
|
if (l) {
|
|
3737
3737
|
l(B, P);
|
|
3738
3738
|
return;
|
|
3739
3739
|
}
|
|
3740
|
-
|
|
3741
|
-
}, [l,
|
|
3740
|
+
a && t && m(t, I(a, { value: B, option: P }));
|
|
3741
|
+
}, [l, a, t, m]);
|
|
3742
3742
|
return /* @__PURE__ */ p(
|
|
3743
3743
|
wr,
|
|
3744
3744
|
{
|
|
@@ -3759,8 +3759,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3759
3759
|
develop: n,
|
|
3760
3760
|
dataSet: i,
|
|
3761
3761
|
dataSetField: r,
|
|
3762
|
-
submitAction:
|
|
3763
|
-
resetAction:
|
|
3762
|
+
submitAction: o,
|
|
3763
|
+
resetAction: a,
|
|
3764
3764
|
showSubmit: c = !0,
|
|
3765
3765
|
showReset: l = !0,
|
|
3766
3766
|
submitText: d = "提交",
|
|
@@ -3778,13 +3778,13 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3778
3778
|
h(w);
|
|
3779
3779
|
return;
|
|
3780
3780
|
}
|
|
3781
|
-
S && r && u(S, r, w),
|
|
3781
|
+
S && r && u(S, r, w), o && t && m(t, I(o, w));
|
|
3782
3782
|
}, C = () => {
|
|
3783
3783
|
if (s.resetFields(), v) {
|
|
3784
3784
|
v();
|
|
3785
3785
|
return;
|
|
3786
3786
|
}
|
|
3787
|
-
|
|
3787
|
+
a && t && m(t, I(a, null));
|
|
3788
3788
|
};
|
|
3789
3789
|
return /* @__PURE__ */ ct(Re, { ...f, form: s, onFinish: A, children: [
|
|
3790
3790
|
g,
|
|
@@ -3814,8 +3814,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3814
3814
|
develop: n,
|
|
3815
3815
|
dataSet: i,
|
|
3816
3816
|
dataSetField: r,
|
|
3817
|
-
dataSource:
|
|
3818
|
-
targetKeys:
|
|
3817
|
+
dataSource: o,
|
|
3818
|
+
targetKeys: a,
|
|
3819
3819
|
selectedKeys: c,
|
|
3820
3820
|
disabled: l,
|
|
3821
3821
|
showSearch: d,
|
|
@@ -3851,12 +3851,12 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3851
3851
|
const tt = M(P, `${r}.dataSource`);
|
|
3852
3852
|
if (Array.isArray(tt)) return tt;
|
|
3853
3853
|
}
|
|
3854
|
-
}, [P, r, M]), q = y(() => n ? X ?? Ht(
|
|
3854
|
+
}, [P, r, M]), q = y(() => n ? X ?? Ht(o, []) : P ? X ?? [] : Ht(o, []), [n, P, X, o]), V = y(() => n ? Y ?? Ht(a, []) : P ? Y ?? [] : Ht(a, []), [n, P, Y, a]), nt = y(() => Ht(c, []), [c]), ot = j((tt, lt, at) => {
|
|
3855
3855
|
if (w) {
|
|
3856
|
-
w(tt, lt,
|
|
3856
|
+
w(tt, lt, at);
|
|
3857
3857
|
return;
|
|
3858
3858
|
}
|
|
3859
|
-
P && r && B(P, r, tt), u && t && k(t, I(u, { targetKeys: tt, direction: lt, moveKeys:
|
|
3859
|
+
P && r && B(P, r, tt), u && t && k(t, I(u, { targetKeys: tt, direction: lt, moveKeys: at }));
|
|
3860
3860
|
}, [w, P, r, B, u, t, k]), rt = j((tt, lt) => {
|
|
3861
3861
|
if (D) {
|
|
3862
3862
|
D(tt, lt);
|
|
@@ -3890,7 +3890,7 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3890
3890
|
titles: z,
|
|
3891
3891
|
actions: K,
|
|
3892
3892
|
locale: L,
|
|
3893
|
-
onChange:
|
|
3893
|
+
onChange: ot,
|
|
3894
3894
|
onSelectChange: rt,
|
|
3895
3895
|
onSearch: vt,
|
|
3896
3896
|
onScroll: bt,
|
|
@@ -3911,14 +3911,14 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3911
3911
|
return t;
|
|
3912
3912
|
}
|
|
3913
3913
|
return e;
|
|
3914
|
-
},
|
|
3914
|
+
}, Wo = (e) => {
|
|
3915
3915
|
if (!e) return null;
|
|
3916
3916
|
const t = Ft[e];
|
|
3917
3917
|
return t ? /* @__PURE__ */ p(t, {}) : null;
|
|
3918
|
-
},
|
|
3918
|
+
}, Ho = (e) => sn(e, []).map((n) => ({
|
|
3919
3919
|
label: n.label,
|
|
3920
3920
|
value: n.value,
|
|
3921
|
-
icon: n.icon ?
|
|
3921
|
+
icon: n.icon ? Wo(n.icon) : void 0,
|
|
3922
3922
|
disabled: n.disabled
|
|
3923
3923
|
})), Vc = ({
|
|
3924
3924
|
id: e,
|
|
@@ -3927,8 +3927,8 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3927
3927
|
dataSet: i,
|
|
3928
3928
|
dataSetField: r,
|
|
3929
3929
|
// 核心属性
|
|
3930
|
-
options:
|
|
3931
|
-
value:
|
|
3930
|
+
options: o,
|
|
3931
|
+
value: a,
|
|
3932
3932
|
defaultValue: c,
|
|
3933
3933
|
block: l,
|
|
3934
3934
|
disabled: d,
|
|
@@ -3945,12 +3945,12 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3945
3945
|
const S = _((M) => M.addCommand), A = _((M) => M.getDataSet), C = _((M) => M.setDataSet), w = y(
|
|
3946
3946
|
() => it(t, i),
|
|
3947
3947
|
[t, i]
|
|
3948
|
-
), D = y(() => sn(s, {}), [s]), T = y(() => sn(m, {}), [m]), O = y(() =>
|
|
3948
|
+
), D = y(() => sn(s, {}), [s]), T = y(() => sn(m, {}), [m]), O = y(() => Ho(o), [o]), x = y(() => {
|
|
3949
3949
|
if (w && r) {
|
|
3950
3950
|
const M = A(w, r);
|
|
3951
3951
|
if (typeof M == "string") return M;
|
|
3952
3952
|
}
|
|
3953
|
-
}, [w, r, A]) ??
|
|
3953
|
+
}, [w, r, A]) ?? a, E = j((M) => {
|
|
3954
3954
|
const B = String(M);
|
|
3955
3955
|
if (f) {
|
|
3956
3956
|
f(B);
|
|
@@ -3974,15 +3974,15 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
3974
3974
|
}
|
|
3975
3975
|
);
|
|
3976
3976
|
return T && Object.keys(T).length > 0 ? /* @__PURE__ */ p(Kt, { theme: { components: { Segmented: T } }, children: k }) : k;
|
|
3977
|
-
},
|
|
3978
|
-
const [i, r] = mt(void 0),
|
|
3977
|
+
}, Po = (e, t, n) => {
|
|
3978
|
+
const [i, r] = mt(void 0), o = t === "100%", a = _t(0);
|
|
3979
3979
|
return Un(() => {
|
|
3980
|
-
if (!
|
|
3980
|
+
if (!o || !e.current) {
|
|
3981
3981
|
r(void 0);
|
|
3982
3982
|
return;
|
|
3983
3983
|
}
|
|
3984
3984
|
const c = e.current, l = () => {
|
|
3985
|
-
|
|
3985
|
+
a.current && cancelAnimationFrame(a.current), a.current = requestAnimationFrame(() => {
|
|
3986
3986
|
const v = c.clientHeight;
|
|
3987
3987
|
if (v === 0) return;
|
|
3988
3988
|
let g = 0;
|
|
@@ -4023,26 +4023,26 @@ const bc = Wt.memo(rr), Cn = 200, Sc = ({
|
|
|
4023
4023
|
attributes: !0,
|
|
4024
4024
|
attributeFilter: ["style", "class"]
|
|
4025
4025
|
}), () => {
|
|
4026
|
-
clearTimeout(d),
|
|
4026
|
+
clearTimeout(d), a.current && cancelAnimationFrame(a.current), b.disconnect(), h.disconnect();
|
|
4027
4027
|
};
|
|
4028
|
-
}, [
|
|
4028
|
+
}, [o, n]), o ? i : t;
|
|
4029
4029
|
}, On = /* @__PURE__ */ new Map();
|
|
4030
|
-
function
|
|
4030
|
+
function Uo(e) {
|
|
4031
4031
|
let t = On.get(e);
|
|
4032
4032
|
return t || (t = dn(e), On.set(e, t)), t;
|
|
4033
4033
|
}
|
|
4034
|
-
const
|
|
4034
|
+
const Yo = ({ dictCode: e, value: t }) => {
|
|
4035
4035
|
const [n, i] = mt(null);
|
|
4036
4036
|
if (At(() => {
|
|
4037
4037
|
if (!e) {
|
|
4038
4038
|
i([]);
|
|
4039
4039
|
return;
|
|
4040
4040
|
}
|
|
4041
|
-
let
|
|
4042
|
-
return
|
|
4043
|
-
|
|
4041
|
+
let o = !1;
|
|
4042
|
+
return Uo(e).then((a) => {
|
|
4043
|
+
o || i(a);
|
|
4044
4044
|
}), () => {
|
|
4045
|
-
|
|
4045
|
+
o = !0;
|
|
4046
4046
|
};
|
|
4047
4047
|
}, [e]), t == null || t === "")
|
|
4048
4048
|
return /* @__PURE__ */ p("span", {});
|
|
@@ -4050,47 +4050,47 @@ const Ua = ({ dictCode: e, value: t }) => {
|
|
|
4050
4050
|
return /* @__PURE__ */ p("span", { children: String(t) });
|
|
4051
4051
|
const r = ce(n, t);
|
|
4052
4052
|
return /* @__PURE__ */ p("span", { children: (r == null ? void 0 : r.label) ?? String(t) });
|
|
4053
|
-
},
|
|
4053
|
+
}, Go = (e, t) => {
|
|
4054
4054
|
const n = t.columnDictType || t.dictType || "";
|
|
4055
|
-
return n ? /* @__PURE__ */ p(
|
|
4056
|
-
},
|
|
4057
|
-
const [n, i] = (t.imageWidthHeight || "").split(/\s*[,,]\s*/), r = n || "50",
|
|
4058
|
-
let
|
|
4059
|
-
return Array.isArray(e) ?
|
|
4055
|
+
return n ? /* @__PURE__ */ p(Yo, { dictCode: n, value: e }) : /* @__PURE__ */ p("span", { children: e != null && e !== "" ? String(e) : "" });
|
|
4056
|
+
}, Jo = (e, t) => {
|
|
4057
|
+
const [n, i] = (t.imageWidthHeight || "").split(/\s*[,,]\s*/), r = n || "50", o = i || "50";
|
|
4058
|
+
let a = [];
|
|
4059
|
+
return Array.isArray(e) ? a = e.slice(0, 3) : typeof e == "string" && e && (a = [e]), a.length === 0 ? /* @__PURE__ */ p("span", { children: "无图片" }) : a.length === 1 ? /* @__PURE__ */ p(
|
|
4060
4060
|
Zt,
|
|
4061
4061
|
{
|
|
4062
|
-
src:
|
|
4062
|
+
src: a[0],
|
|
4063
4063
|
alt: "image",
|
|
4064
4064
|
width: r,
|
|
4065
|
-
height:
|
|
4066
|
-
preview: { src:
|
|
4065
|
+
height: o,
|
|
4066
|
+
preview: { src: a[0] }
|
|
4067
4067
|
}
|
|
4068
|
-
) : /* @__PURE__ */ p(Zt.PreviewGroup, { children:
|
|
4068
|
+
) : /* @__PURE__ */ p(Zt.PreviewGroup, { children: a.map((c, l) => /* @__PURE__ */ p(
|
|
4069
4069
|
Zt,
|
|
4070
4070
|
{
|
|
4071
4071
|
src: c,
|
|
4072
4072
|
alt: `image-${l}`,
|
|
4073
4073
|
width: r,
|
|
4074
|
-
height:
|
|
4074
|
+
height: o,
|
|
4075
4075
|
style: { marginRight: 8, marginBottom: 8 }
|
|
4076
4076
|
},
|
|
4077
4077
|
l
|
|
4078
4078
|
)) });
|
|
4079
|
-
},
|
|
4079
|
+
}, Fo = (e, t) => {
|
|
4080
4080
|
let n = parseFloat(e);
|
|
4081
4081
|
if (isNaN(n))
|
|
4082
4082
|
return /* @__PURE__ */ p("span", { children: "无效金额" });
|
|
4083
|
-
const i = t.currencySymbol || "", r = t.showCommaSeparator || !1,
|
|
4084
|
-
Number.isInteger(n) &&
|
|
4083
|
+
const i = t.currencySymbol || "", r = t.showCommaSeparator || !1, o = t.minDecimalPlace || 0, a = t.maxDecimalPlace || 2;
|
|
4084
|
+
Number.isInteger(n) && o > 0 && (n = parseFloat(n.toFixed(o)));
|
|
4085
4085
|
const c = {
|
|
4086
4086
|
style: "decimal",
|
|
4087
|
-
minimumFractionDigits:
|
|
4088
|
-
maximumFractionDigits:
|
|
4087
|
+
minimumFractionDigits: o,
|
|
4088
|
+
maximumFractionDigits: a,
|
|
4089
4089
|
useGrouping: r
|
|
4090
4090
|
};
|
|
4091
4091
|
let l = new Intl.NumberFormat("zh-CN", c).format(n);
|
|
4092
4092
|
return i && (l = i + l), /* @__PURE__ */ p("span", { children: l });
|
|
4093
|
-
},
|
|
4093
|
+
}, Qo = (e, t) => {
|
|
4094
4094
|
let n = "";
|
|
4095
4095
|
try {
|
|
4096
4096
|
const i = Ut(e);
|
|
@@ -4099,56 +4099,56 @@ const Ua = ({ dictCode: e, value: t }) => {
|
|
|
4099
4099
|
n = "";
|
|
4100
4100
|
}
|
|
4101
4101
|
return /* @__PURE__ */ p("span", { children: n });
|
|
4102
|
-
},
|
|
4102
|
+
}, Zo = (e, t) => {
|
|
4103
4103
|
if (e == null || e === "")
|
|
4104
4104
|
return /* @__PURE__ */ p("span", {});
|
|
4105
4105
|
const n = t.arraySeparator || ",";
|
|
4106
4106
|
return Array.isArray(e) ? /* @__PURE__ */ p("span", { children: e.join(n) }) : /* @__PURE__ */ p("span", { children: String(e) });
|
|
4107
|
-
},
|
|
4107
|
+
}, Xo = (e) => {
|
|
4108
4108
|
const t = { ...e };
|
|
4109
4109
|
return t.specialFields === !0 && t.renderType && (t.render = (n, i, r) => {
|
|
4110
4110
|
switch (t.renderType) {
|
|
4111
4111
|
case "image":
|
|
4112
|
-
return
|
|
4112
|
+
return Jo(n, t);
|
|
4113
4113
|
case "money":
|
|
4114
|
-
return
|
|
4114
|
+
return Fo(n, t);
|
|
4115
4115
|
case "date":
|
|
4116
|
-
return
|
|
4116
|
+
return Qo(n, t);
|
|
4117
4117
|
case "array":
|
|
4118
|
-
return
|
|
4118
|
+
return Zo(n, t);
|
|
4119
4119
|
case "dict":
|
|
4120
|
-
return
|
|
4120
|
+
return Go(n, t);
|
|
4121
4121
|
default:
|
|
4122
4122
|
return n;
|
|
4123
4123
|
}
|
|
4124
4124
|
}), t;
|
|
4125
|
-
}, Ye = 15, ye = 10,
|
|
4125
|
+
}, Ye = 15, ye = 10, Io = [
|
|
4126
4126
|
{ value: "small", label: "紧凑" },
|
|
4127
4127
|
{ value: "middle", label: "默认" },
|
|
4128
4128
|
{ value: "large", label: "宽松" }
|
|
4129
4129
|
];
|
|
4130
4130
|
function _n(e, t, n, i) {
|
|
4131
4131
|
const r = {};
|
|
4132
|
-
return t.forEach((
|
|
4133
|
-
|
|
4132
|
+
return t.forEach((o) => {
|
|
4133
|
+
o.width !== void 0 && (r[o.key] = o.width);
|
|
4134
4134
|
}), {
|
|
4135
4135
|
rowIndexVisible: e,
|
|
4136
|
-
order: t.map((
|
|
4137
|
-
visible: t.reduce((
|
|
4138
|
-
fixed: t.reduce((
|
|
4136
|
+
order: t.map((o) => o.key),
|
|
4137
|
+
visible: t.reduce((o, a) => (o[a.key] = a.visible, o), {}),
|
|
4138
|
+
fixed: t.reduce((o, a) => (a.fixed && (o[a.key] = a.fixed), o), {}),
|
|
4139
4139
|
width: Object.keys(r).length ? r : void 0,
|
|
4140
4140
|
scrollX: n,
|
|
4141
4141
|
size: i
|
|
4142
4142
|
};
|
|
4143
4143
|
}
|
|
4144
|
-
function
|
|
4145
|
-
const
|
|
4146
|
-
for (const v of
|
|
4144
|
+
function ta(e, t, n, i, r) {
|
|
4145
|
+
const o = (e == null ? void 0 : e.order) ?? t.map((v) => v.key), a = (e == null ? void 0 : e.visible) ?? {}, c = (e == null ? void 0 : e.fixed) ?? {}, l = (e == null ? void 0 : e.width) ?? {}, d = new Map(t.map((v) => [v.key, v])), b = [], h = /* @__PURE__ */ new Set();
|
|
4146
|
+
for (const v of o) {
|
|
4147
4147
|
const g = d.get(v);
|
|
4148
4148
|
g && (h.add(v), b.push({
|
|
4149
4149
|
key: g.key,
|
|
4150
4150
|
title: g.title,
|
|
4151
|
-
visible:
|
|
4151
|
+
visible: a[v] ?? g.visible,
|
|
4152
4152
|
fixed: c[v] ?? g.fixed,
|
|
4153
4153
|
width: l[v] ?? g.width
|
|
4154
4154
|
}));
|
|
@@ -4156,7 +4156,7 @@ function Ia(e, t, n, i, r) {
|
|
|
4156
4156
|
for (const v of t)
|
|
4157
4157
|
h.has(v.key) || b.push({
|
|
4158
4158
|
...v,
|
|
4159
|
-
visible:
|
|
4159
|
+
visible: a[v.key] ?? v.visible,
|
|
4160
4160
|
fixed: c[v.key] ?? v.fixed,
|
|
4161
4161
|
width: l[v.key] ?? v.width
|
|
4162
4162
|
});
|
|
@@ -4167,24 +4167,24 @@ function Ia(e, t, n, i, r) {
|
|
|
4167
4167
|
size: (e == null ? void 0 : e.size) ?? r ?? "middle"
|
|
4168
4168
|
};
|
|
4169
4169
|
}
|
|
4170
|
-
const Ge = 420, En = 440,
|
|
4170
|
+
const Ge = 420, En = 440, ea = ({
|
|
4171
4171
|
open: e,
|
|
4172
4172
|
position: t,
|
|
4173
4173
|
rowIndexVisible: n,
|
|
4174
4174
|
columnItems: i,
|
|
4175
4175
|
defaultRowIndexVisible: r,
|
|
4176
|
-
defaultColumnItems:
|
|
4177
|
-
scrollX:
|
|
4176
|
+
defaultColumnItems: o,
|
|
4177
|
+
scrollX: a = !1,
|
|
4178
4178
|
defaultScrollX: c = !1,
|
|
4179
4179
|
size: l = "middle",
|
|
4180
4180
|
defaultSize: d = "middle",
|
|
4181
4181
|
onSave: b,
|
|
4182
4182
|
onClose: h
|
|
4183
4183
|
}) => {
|
|
4184
|
-
const [v, g] = mt(n), [f, s] = mt(i), [m, u] = mt(
|
|
4184
|
+
const [v, g] = mt(n), [f, s] = mt(i), [m, u] = mt(a), [S, A] = mt(l), [C, w] = mt(null);
|
|
4185
4185
|
At(() => {
|
|
4186
|
-
e && (g(n), s([...i]), u(
|
|
4187
|
-
}, [e, n, i,
|
|
4186
|
+
e && (g(n), s([...i]), u(a), A(l));
|
|
4187
|
+
}, [e, n, i, a, l]);
|
|
4188
4188
|
const D = j(
|
|
4189
4189
|
(R) => {
|
|
4190
4190
|
queueMicrotask(() => b(R));
|
|
@@ -4195,9 +4195,9 @@ const Ge = 420, En = 440, to = ({
|
|
|
4195
4195
|
[m, S]
|
|
4196
4196
|
), O = j(() => {
|
|
4197
4197
|
g(r);
|
|
4198
|
-
const R =
|
|
4198
|
+
const R = o.map((Y) => ({ ...Y }));
|
|
4199
4199
|
s(R), u(c), A(d), D(_n(r, R, c, d));
|
|
4200
|
-
}, [r,
|
|
4200
|
+
}, [r, o, c, d, D]), N = j(
|
|
4201
4201
|
(R) => {
|
|
4202
4202
|
s((Y) => {
|
|
4203
4203
|
const X = Y.map((q) => q.key === R ? { ...q, visible: !q.visible } : q);
|
|
@@ -4226,8 +4226,8 @@ const Ge = 420, En = 440, to = ({
|
|
|
4226
4226
|
s((X) => {
|
|
4227
4227
|
const q = X.find((rt) => rt.key === R);
|
|
4228
4228
|
if (!q) return X;
|
|
4229
|
-
const V = typeof q.width == "number" ? q.width : 80, nt = Math.max(Ye, V + Y),
|
|
4230
|
-
return D(T(v,
|
|
4229
|
+
const V = typeof q.width == "number" ? q.width : 80, nt = Math.max(Ye, V + Y), ot = X.map((rt) => rt.key === R ? { ...rt, width: nt } : rt);
|
|
4230
|
+
return D(T(v, ot)), ot;
|
|
4231
4231
|
});
|
|
4232
4232
|
},
|
|
4233
4233
|
[v, T, D]
|
|
@@ -4293,7 +4293,7 @@ const Ge = 420, En = 440, to = ({
|
|
|
4293
4293
|
size: "small",
|
|
4294
4294
|
value: S,
|
|
4295
4295
|
onChange: U,
|
|
4296
|
-
options: [...
|
|
4296
|
+
options: [...Io],
|
|
4297
4297
|
style: { width: 80 }
|
|
4298
4298
|
}
|
|
4299
4299
|
)
|
|
@@ -4394,8 +4394,8 @@ const Ge = 420, En = 440, to = ({
|
|
|
4394
4394
|
develop: n,
|
|
4395
4395
|
dataSet: i,
|
|
4396
4396
|
dataSetField: r,
|
|
4397
|
-
columns:
|
|
4398
|
-
operateColumns:
|
|
4397
|
+
columns: o = [],
|
|
4398
|
+
operateColumns: a = [],
|
|
4399
4399
|
sampleData: c,
|
|
4400
4400
|
operationColumnVisible: l = !0,
|
|
4401
4401
|
selectRowEnable: d,
|
|
@@ -4433,7 +4433,7 @@ const Ge = 420, En = 440, to = ({
|
|
|
4433
4433
|
return ut;
|
|
4434
4434
|
}
|
|
4435
4435
|
return F;
|
|
4436
|
-
}, []), nt = y(() => Array.isArray(
|
|
4436
|
+
}, []), nt = y(() => Array.isArray(o) ? o : [], [o]), ot = y(() => Array.isArray(a) ? a : [], [a]), rt = y(
|
|
4437
4437
|
() => ({
|
|
4438
4438
|
dataSet: it(t, i),
|
|
4439
4439
|
pagination: i ? it(t, `${i}_pagination`) : void 0,
|
|
@@ -4462,9 +4462,9 @@ const Ge = 420, En = 440, to = ({
|
|
|
4462
4462
|
var Ot;
|
|
4463
4463
|
const ut = rt.columnSettings ? (Ot = F.dataSets[rt.columnSettings]) == null ? void 0 : Ot.value : void 0;
|
|
4464
4464
|
return typeof ut == "object" && ut !== null ? ut : void 0;
|
|
4465
|
-
}), tt = wi(rt.dataSet, r), lt = y(() => rt.dataSet ? tt : (c == null ? void 0 : c.data) || [], [rt.dataSet, tt, c == null ? void 0 : c.data]),
|
|
4466
|
-
() => Rt ? { components: { Table:
|
|
4467
|
-
[Rt,
|
|
4465
|
+
}), tt = wi(rt.dataSet, r), lt = y(() => rt.dataSet ? tt : (c == null ? void 0 : c.data) || [], [rt.dataSet, tt, c == null ? void 0 : c.data]), at = y(() => V(M, {}), [M, V]), Rt = at && Object.keys(at).length > 0, Mt = y(
|
|
4466
|
+
() => Rt ? { components: { Table: at } } : void 0,
|
|
4467
|
+
[Rt, at]
|
|
4468
4468
|
), Bt = _(
|
|
4469
4469
|
(F) => rt.pagination ? F.dataSets[rt.pagination] : void 0
|
|
4470
4470
|
), G = y(() => rt.pagination ? z(rt.pagination, "") || {} : {}, [rt.pagination, z, Bt]), W = y(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), et = y(() => {
|
|
@@ -4496,7 +4496,7 @@ const Ge = 420, En = 440, to = ({
|
|
|
4496
4496
|
fixed: ut,
|
|
4497
4497
|
width: typeof Ot == "number" ? Ot : "auto"
|
|
4498
4498
|
};
|
|
4499
|
-
}).filter((F) => F.key), [nt]), dt = g === !0, Dt = !1, Q = S === "small" || S === "large" ? S : "middle", { rowIndexVisible: gt, items: xt, scrollX: J, size: H } = y(() =>
|
|
4499
|
+
}).filter((F) => F.key), [nt]), dt = g === !0, Dt = !1, Q = S === "small" || S === "large" ? S : "middle", { rowIndexVisible: gt, items: xt, scrollX: J, size: H } = y(() => ta(
|
|
4500
4500
|
yt,
|
|
4501
4501
|
st,
|
|
4502
4502
|
dt,
|
|
@@ -4519,20 +4519,20 @@ const Ge = 420, En = 440, to = ({
|
|
|
4519
4519
|
const Tt = ut.get(Ct.key);
|
|
4520
4520
|
if (!Tt) return;
|
|
4521
4521
|
const Lt = Ct.fixed || void 0, Pt = Ct.width === "auto" || Ct.width === void 0 ? void 0 : Ct.width;
|
|
4522
|
-
F.push(
|
|
4522
|
+
F.push(Xo({
|
|
4523
4523
|
...Tt,
|
|
4524
4524
|
dataIndex: Tt.dataIndex || Tt.key,
|
|
4525
4525
|
fixed: Lt || Tt.fixed,
|
|
4526
4526
|
width: Pt ?? Tt.width
|
|
4527
4527
|
}));
|
|
4528
|
-
}), l !== !1 &&
|
|
4528
|
+
}), l !== !1 && ot.length > 0 && F.push({
|
|
4529
4529
|
title: "操作",
|
|
4530
4530
|
key: "action",
|
|
4531
|
-
render: (Ct, Tt) => /* @__PURE__ */ p(Yt, { children:
|
|
4531
|
+
render: (Ct, Tt) => /* @__PURE__ */ p(Yt, { children: ot.map((Lt, Pt) => /* @__PURE__ */ p(Ar, { title: Lt.tooltip, children: /* @__PURE__ */ p("a", { onClick: () => Z(Lt, Tt), style: { marginRight: 5 }, children: Lt.title }) }, Pt)) })
|
|
4532
4532
|
}), F;
|
|
4533
4533
|
}, [
|
|
4534
4534
|
nt,
|
|
4535
|
-
|
|
4535
|
+
ot,
|
|
4536
4536
|
gt,
|
|
4537
4537
|
xt,
|
|
4538
4538
|
l,
|
|
@@ -4561,11 +4561,11 @@ const Ge = 420, En = 440, to = ({
|
|
|
4561
4561
|
if (!b) return;
|
|
4562
4562
|
const Ot = [F[v]];
|
|
4563
4563
|
R(Ot), rt.selected && K(rt.selected, "", Ot), h != null && h.trim() && t && $(t, I(h.trim(), { record: F, selectedRowKeys: Ot }));
|
|
4564
|
-
}, [b, h, t, v, rt.selected, K, $]), me = j((F) => b && L.includes(F[v]) ? "ant-table-row-selected" : "", [b, v, L]),
|
|
4564
|
+
}, [b, h, t, v, rt.selected, K, $]), me = j((F) => b && L.includes(F[v]) ? "ant-table-row-selected" : "", [b, v, L]), ar = j((F) => b ? { onClick: () => Gt(F), style: { cursor: "pointer" } } : {}, [b, Gt]), { style: cr, className: sr, ...he } = U, jt = y(() => {
|
|
4565
4565
|
if (C) return C;
|
|
4566
4566
|
let F = he["scroll-x"], ut = he["scroll-y"];
|
|
4567
4567
|
if (String(F) === "true" ? F = !0 : String(F) === "false" ? F = void 0 : F === "max-content" && (F = "max-content"), (ut === "" || ut === null || ut === void 0) && (ut = void 0), F !== void 0 || ut !== void 0) return { x: F, y: ut };
|
|
4568
|
-
}, [C, he["scroll-x"], he["scroll-y"]]), qe =
|
|
4568
|
+
}, [C, he["scroll-x"], he["scroll-y"]]), qe = Po(Y, jt == null ? void 0 : jt.y, W), lr = y(() => {
|
|
4569
4569
|
if (!jt && !ft) return;
|
|
4570
4570
|
const F = ft ? J ? !0 : "max-content" : jt == null ? void 0 : jt.x, ut = (jt == null ? void 0 : jt.y) === "100%" ? qe : jt == null ? void 0 : jt.y;
|
|
4571
4571
|
return F !== void 0 || ut !== void 0 ? { x: F, y: ut } : jt ? jt.y === "100%" ? { x: jt.x, y: qe } : jt : void 0;
|
|
@@ -4609,7 +4609,7 @@ const Ge = 420, En = 440, to = ({
|
|
|
4609
4609
|
title: fr,
|
|
4610
4610
|
summary: dr,
|
|
4611
4611
|
footer: void 0,
|
|
4612
|
-
onRow:
|
|
4612
|
+
onRow: ar
|
|
4613
4613
|
}
|
|
4614
4614
|
);
|
|
4615
4615
|
return /* @__PURE__ */ ct(
|
|
@@ -4623,7 +4623,7 @@ const Ge = 420, En = 440, to = ({
|
|
|
4623
4623
|
Te && /* @__PURE__ */ p("div", { "data-table-slot": "title", children: Te }),
|
|
4624
4624
|
/* @__PURE__ */ ct("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
|
|
4625
4625
|
b && (() => {
|
|
4626
|
-
const F = (
|
|
4626
|
+
const F = (at == null ? void 0 : at.rowSelectedBg) || "#e6f4ff", ut = (at == null ? void 0 : at.rowSelectedHoverBg) || (at == null ? void 0 : at.rowSelectedBg) || "#bae0ff", Ot = at == null ? void 0 : at.rowSelectedColor, Ct = (at == null ? void 0 : at.rowSelectedLinkColor) ?? Ot, Tt = (at == null ? void 0 : at.rowSelectedLinkHoverColor) ?? Ct;
|
|
4627
4627
|
return /* @__PURE__ */ p("style", { children: `
|
|
4628
4628
|
.ant-table-row-selected > td {
|
|
4629
4629
|
background: ${F} !important;
|
|
@@ -4642,7 +4642,7 @@ const Ge = 420, En = 440, to = ({
|
|
|
4642
4642
|
hn && /* @__PURE__ */ p("div", { "data-table-slot": "footer", children: hn }),
|
|
4643
4643
|
ur,
|
|
4644
4644
|
ft && /* @__PURE__ */ p(
|
|
4645
|
-
|
|
4645
|
+
ea,
|
|
4646
4646
|
{
|
|
4647
4647
|
open: vt,
|
|
4648
4648
|
position: X,
|
|
@@ -4661,14 +4661,14 @@ const Ge = 420, En = 440, to = ({
|
|
|
4661
4661
|
]
|
|
4662
4662
|
}
|
|
4663
4663
|
);
|
|
4664
|
-
}, { Text:
|
|
4664
|
+
}, { Text: na } = fn, Wc = ({
|
|
4665
4665
|
id: e,
|
|
4666
4666
|
sessionId: t,
|
|
4667
4667
|
develop: n,
|
|
4668
4668
|
content: i,
|
|
4669
4669
|
children: r,
|
|
4670
|
-
dataSet:
|
|
4671
|
-
dataSetField:
|
|
4670
|
+
dataSet: o,
|
|
4671
|
+
dataSetField: a,
|
|
4672
4672
|
fontSize: c,
|
|
4673
4673
|
color: l,
|
|
4674
4674
|
dictCode: d,
|
|
@@ -4685,11 +4685,11 @@ const Ge = 420, En = 440, to = ({
|
|
|
4685
4685
|
var R;
|
|
4686
4686
|
return !t || !e ? null : ((R = L.propsStore[`${t}_props`]) == null ? void 0 : R[e]) ?? null;
|
|
4687
4687
|
}), A = y(
|
|
4688
|
-
() => d === "selectedCount" &&
|
|
4689
|
-
[d,
|
|
4688
|
+
() => d === "selectedCount" && a && !o ? a : o,
|
|
4689
|
+
[d, a, o]
|
|
4690
4690
|
), C = y(
|
|
4691
|
-
() => d === "selectedCount" ? "selectedCount" :
|
|
4692
|
-
[d,
|
|
4691
|
+
() => d === "selectedCount" ? "selectedCount" : a,
|
|
4692
|
+
[d, a]
|
|
4693
4693
|
), w = y(
|
|
4694
4694
|
() => it(t, A),
|
|
4695
4695
|
[t, A]
|
|
@@ -4719,7 +4719,7 @@ const Ge = 420, En = 440, to = ({
|
|
|
4719
4719
|
if (n)
|
|
4720
4720
|
return k;
|
|
4721
4721
|
const L = (S == null ? void 0 : S.formatType) || b;
|
|
4722
|
-
return L && k !== void 0 && k !== null ?
|
|
4722
|
+
return L && k !== void 0 && k !== null ? ko(k, L, N) : k;
|
|
4723
4723
|
}, [n, k, b, N, S == null ? void 0 : S.formatType]), B = y(() => {
|
|
4724
4724
|
const L = { ...m };
|
|
4725
4725
|
return S && typeof S == "object" && Object.keys(S).forEach((R) => {
|
|
@@ -4746,28 +4746,28 @@ const Ge = 420, En = 440, to = ({
|
|
|
4746
4746
|
L.fontSize = Y;
|
|
4747
4747
|
}
|
|
4748
4748
|
return U && (L.color = U), L;
|
|
4749
|
-
}, [c, U, S == null ? void 0 : S.fontSize]), K = /* @__PURE__ */ p(
|
|
4749
|
+
}, [c, U, S == null ? void 0 : S.fontSize]), K = /* @__PURE__ */ p(na, { ...B, style: { ...z, ...g, ...B.style }, children: M != null && M !== "" ? String(M) : r });
|
|
4750
4750
|
return $ ? /* @__PURE__ */ p(Kt, { theme: { token: $ }, children: K }) : K;
|
|
4751
|
-
}, { Title:
|
|
4751
|
+
}, { Title: ra } = fn, Hc = ({
|
|
4752
4752
|
id: e,
|
|
4753
4753
|
sessionId: t,
|
|
4754
4754
|
develop: n,
|
|
4755
4755
|
content: i,
|
|
4756
4756
|
children: r,
|
|
4757
|
-
dataSet:
|
|
4758
|
-
dataSetField:
|
|
4757
|
+
dataSet: o,
|
|
4758
|
+
dataSetField: a,
|
|
4759
4759
|
level: c = 1,
|
|
4760
4760
|
color: l,
|
|
4761
4761
|
styles: d,
|
|
4762
4762
|
...b
|
|
4763
4763
|
}) => {
|
|
4764
4764
|
const h = _((w) => w.getDataSet), v = _((w) => w.getProps), g = y(
|
|
4765
|
-
() => it(t,
|
|
4766
|
-
[t,
|
|
4765
|
+
() => it(t, o),
|
|
4766
|
+
[t, o]
|
|
4767
4767
|
), f = y(() => t && e ? v(t, e) : null, [t, e, v]), s = y(() => {
|
|
4768
|
-
if (g &&
|
|
4769
|
-
return h(g,
|
|
4770
|
-
}, [g,
|
|
4768
|
+
if (g && a)
|
|
4769
|
+
return h(g, a);
|
|
4770
|
+
}, [g, a, h]), m = y(() => n ? i : s != null && s !== "" ? String(s) : (f == null ? void 0 : f.content) !== void 0 ? f.content : i, [n, s, f == null ? void 0 : f.content, i]), u = (f == null ? void 0 : f.color) ?? l, S = Ve(u), A = y(() => {
|
|
4771
4771
|
const w = {};
|
|
4772
4772
|
return S && (w.color = S), w;
|
|
4773
4773
|
}, [S]), C = y(() => {
|
|
@@ -4776,26 +4776,26 @@ const Ge = 420, En = 440, to = ({
|
|
|
4776
4776
|
D !== "content" && f[D] !== void 0 && f[D] !== null && (w[D] = f[D]);
|
|
4777
4777
|
}), w;
|
|
4778
4778
|
}, [b, f]);
|
|
4779
|
-
return /* @__PURE__ */ p(
|
|
4780
|
-
}, { Paragraph:
|
|
4779
|
+
return /* @__PURE__ */ p(ra, { level: c, ...C, style: { ...A, ...d, ...C.style }, children: m || r });
|
|
4780
|
+
}, { Paragraph: ia } = fn, Pc = ({
|
|
4781
4781
|
id: e,
|
|
4782
4782
|
sessionId: t,
|
|
4783
4783
|
develop: n,
|
|
4784
4784
|
content: i,
|
|
4785
4785
|
children: r,
|
|
4786
|
-
dataSet:
|
|
4787
|
-
dataSetField:
|
|
4786
|
+
dataSet: o,
|
|
4787
|
+
dataSetField: a,
|
|
4788
4788
|
color: c,
|
|
4789
4789
|
styles: l,
|
|
4790
4790
|
...d
|
|
4791
4791
|
}) => {
|
|
4792
4792
|
const b = _((C) => C.getDataSet), h = _((C) => C.getProps), v = y(
|
|
4793
|
-
() => it(t,
|
|
4794
|
-
[t,
|
|
4793
|
+
() => it(t, o),
|
|
4794
|
+
[t, o]
|
|
4795
4795
|
), g = y(() => t && e ? h(t, e) : null, [t, e, h]), f = y(() => {
|
|
4796
|
-
if (v &&
|
|
4797
|
-
return b(v,
|
|
4798
|
-
}, [v,
|
|
4796
|
+
if (v && a)
|
|
4797
|
+
return b(v, a);
|
|
4798
|
+
}, [v, a, b]), s = y(() => n ? i : f != null && f !== "" ? String(f) : (g == null ? void 0 : g.content) !== void 0 ? g.content : i, [n, f, g == null ? void 0 : g.content, i]), m = (g == null ? void 0 : g.color) ?? c, u = Ve(m), S = y(() => {
|
|
4799
4799
|
const C = {};
|
|
4800
4800
|
return u && (C.color = u), C;
|
|
4801
4801
|
}, [u]), A = y(() => {
|
|
@@ -4804,8 +4804,8 @@ const Ge = 420, En = 440, to = ({
|
|
|
4804
4804
|
w !== "content" && g[w] !== void 0 && g[w] !== null && (C[w] = g[w]);
|
|
4805
4805
|
}), C;
|
|
4806
4806
|
}, [d, g]);
|
|
4807
|
-
return /* @__PURE__ */ p(
|
|
4808
|
-
},
|
|
4807
|
+
return /* @__PURE__ */ p(ia, { ...A, style: { ...S, ...l, ...A.style }, children: s || r });
|
|
4808
|
+
}, oa = (e) => {
|
|
4809
4809
|
if (!e) return [];
|
|
4810
4810
|
if (typeof e == "string")
|
|
4811
4811
|
try {
|
|
@@ -4820,8 +4820,8 @@ const Ge = 420, En = 440, to = ({
|
|
|
4820
4820
|
develop: n,
|
|
4821
4821
|
dataSet: i,
|
|
4822
4822
|
dataSetField: r,
|
|
4823
|
-
tabs:
|
|
4824
|
-
items:
|
|
4823
|
+
tabs: o,
|
|
4824
|
+
items: a,
|
|
4825
4825
|
changeAction: c,
|
|
4826
4826
|
onChange: l,
|
|
4827
4827
|
activeKey: d,
|
|
@@ -4833,14 +4833,14 @@ const Ge = 420, En = 440, to = ({
|
|
|
4833
4833
|
const f = _((N) => N.addCommand), s = _((N) => N.getDataSet), m = _((N) => N.setDataSet), u = y(
|
|
4834
4834
|
() => it(t, i),
|
|
4835
4835
|
[t, i]
|
|
4836
|
-
), S = y(() =>
|
|
4836
|
+
), S = y(() => oa(o), [o]), A = y(() => a && a.length > 0 ? n ? a.map((N) => ({ ...N, forceRender: !0 })) : a : S.length > 0 ? S.map((N, x) => ({
|
|
4837
4837
|
key: N.key,
|
|
4838
4838
|
label: N.tab,
|
|
4839
4839
|
disabled: N.disabled,
|
|
4840
4840
|
// 开发模式下强制渲染所有 TabPane,以便设计每个 Tab 的内容
|
|
4841
4841
|
forceRender: n ? !0 : void 0,
|
|
4842
4842
|
children: h ? h(N.key, x) : null
|
|
4843
|
-
})) : [], [
|
|
4843
|
+
})) : [], [a, S, h, n]), C = y(() => {
|
|
4844
4844
|
if (u && r) return s(u, r);
|
|
4845
4845
|
}, [u, r, s]), [w, D] = Wt.useState(void 0), T = y(() => {
|
|
4846
4846
|
if (n && w)
|
|
@@ -4875,8 +4875,8 @@ const Ge = 420, En = 440, to = ({
|
|
|
4875
4875
|
develop: n,
|
|
4876
4876
|
dataSet: i,
|
|
4877
4877
|
dataSetField: r,
|
|
4878
|
-
selectAction:
|
|
4879
|
-
checkAction:
|
|
4878
|
+
selectAction: o,
|
|
4879
|
+
checkAction: a,
|
|
4880
4880
|
expandAction: c,
|
|
4881
4881
|
dragEndAction: l,
|
|
4882
4882
|
dragEnterAction: d,
|
|
@@ -4930,24 +4930,24 @@ const Ge = 420, En = 440, to = ({
|
|
|
4930
4930
|
(Q) => L ? Q.getDataSet(L, "") : void 0
|
|
4931
4931
|
), V = _(
|
|
4932
4932
|
(Q) => R ? Q.getDataSet(R, "") : void 0
|
|
4933
|
-
), nt = y(() => n ? Y ?? E ?? [] : z ? Y ?? [] : E ?? [], [n, z, Y, E]),
|
|
4933
|
+
), nt = y(() => n ? Y ?? E ?? [] : z ? Y ?? [] : E ?? [], [n, z, Y, E]), ot = X, rt = q, vt = V, bt = j(
|
|
4934
4934
|
(Q, gt) => {
|
|
4935
4935
|
if (m) {
|
|
4936
4936
|
m(Q, gt);
|
|
4937
4937
|
return;
|
|
4938
4938
|
}
|
|
4939
|
-
K && $(K, "", Q),
|
|
4939
|
+
K && $(K, "", Q), o && t && U(t, I(o, { selectedKeys: Q }));
|
|
4940
4940
|
},
|
|
4941
|
-
[m, K, t, $,
|
|
4941
|
+
[m, K, t, $, o, U]
|
|
4942
4942
|
), yt = j(
|
|
4943
4943
|
(Q, gt) => {
|
|
4944
4944
|
if (u) {
|
|
4945
4945
|
u(Q, gt);
|
|
4946
4946
|
return;
|
|
4947
4947
|
}
|
|
4948
|
-
L && $(L, "", Q),
|
|
4948
|
+
L && $(L, "", Q), a && t && U(t, I(a, { checkedKeys: Q }));
|
|
4949
4949
|
},
|
|
4950
|
-
[u, L, t, $,
|
|
4950
|
+
[u, L, t, $, a, U]
|
|
4951
4951
|
), tt = j(
|
|
4952
4952
|
(Q, gt) => {
|
|
4953
4953
|
if (S) {
|
|
@@ -4966,7 +4966,7 @@ const Ge = 420, En = 440, to = ({
|
|
|
4966
4966
|
l && t && U(t, I(l, Q));
|
|
4967
4967
|
},
|
|
4968
4968
|
[A, l, t, U]
|
|
4969
|
-
),
|
|
4969
|
+
), at = j(
|
|
4970
4970
|
(Q) => {
|
|
4971
4971
|
if (C) {
|
|
4972
4972
|
C(Q);
|
|
@@ -5044,14 +5044,14 @@ const Ge = 420, En = 440, to = ({
|
|
|
5044
5044
|
...P,
|
|
5045
5045
|
...n ? { motion: !1 } : {},
|
|
5046
5046
|
treeData: nt,
|
|
5047
|
-
...K != null ? { selectedKeys:
|
|
5047
|
+
...K != null ? { selectedKeys: ot ?? [] } : {},
|
|
5048
5048
|
...L != null ? { checkedKeys: rt ?? [] } : {},
|
|
5049
5049
|
...R != null ? { expandedKeys: vt ?? [] } : {},
|
|
5050
5050
|
onSelect: bt,
|
|
5051
5051
|
onCheck: yt,
|
|
5052
5052
|
onExpand: tt,
|
|
5053
5053
|
onDragEnd: lt,
|
|
5054
|
-
onDragEnter:
|
|
5054
|
+
onDragEnter: at,
|
|
5055
5055
|
onDragLeave: Rt,
|
|
5056
5056
|
onDragOver: Mt,
|
|
5057
5057
|
onDragStart: Bt,
|
|
@@ -5069,19 +5069,19 @@ const Ge = 420, En = 440, to = ({
|
|
|
5069
5069
|
develop: n,
|
|
5070
5070
|
items: i,
|
|
5071
5071
|
children: r,
|
|
5072
|
-
dataSet:
|
|
5073
|
-
dataSetField:
|
|
5072
|
+
dataSet: o,
|
|
5073
|
+
dataSetField: a,
|
|
5074
5074
|
// @ts-ignore
|
|
5075
5075
|
remoteUrl: c,
|
|
5076
5076
|
mode: l,
|
|
5077
5077
|
...d
|
|
5078
5078
|
}) => {
|
|
5079
5079
|
const b = _((S) => S.getDataSet), h = _((S) => S.getProps), v = y(
|
|
5080
|
-
() => it(t,
|
|
5081
|
-
[t,
|
|
5080
|
+
() => it(t, o),
|
|
5081
|
+
[t, o]
|
|
5082
5082
|
), g = y(() => t && e ? h(t, e) : null, [t, e, h]), f = y(() => {
|
|
5083
|
-
if (v &&
|
|
5084
|
-
}, [v,
|
|
5083
|
+
if (v && a) return b(v, a);
|
|
5084
|
+
}, [v, a, b]), s = y(() => {
|
|
5085
5085
|
let S;
|
|
5086
5086
|
const A = f != null ? Array.isArray(f) ? f : typeof f == "string" ? (() => {
|
|
5087
5087
|
try {
|
|
@@ -5124,8 +5124,8 @@ const Ge = 420, En = 440, to = ({
|
|
|
5124
5124
|
develop: n,
|
|
5125
5125
|
dataSet: i,
|
|
5126
5126
|
dataSetField: r,
|
|
5127
|
-
changeAction:
|
|
5128
|
-
onChange:
|
|
5127
|
+
changeAction: o,
|
|
5128
|
+
onChange: a,
|
|
5129
5129
|
current: c,
|
|
5130
5130
|
items: l,
|
|
5131
5131
|
direction: d,
|
|
@@ -5142,12 +5142,12 @@ const Ge = 420, En = 440, to = ({
|
|
|
5142
5142
|
), C = y(() => {
|
|
5143
5143
|
if (A && r) return u(A, r);
|
|
5144
5144
|
}, [A, r, u]), w = y(() => C ?? c ?? 0, [C, c]), D = y(() => b ?? d, [b, d]), T = y(() => v ?? h, [v, h]), O = y(() => Je(l, []), [l]), N = y(() => Je(g, {}), [g]), x = y(() => Je(f, {}), [f]), E = j((B) => {
|
|
5145
|
-
if (
|
|
5146
|
-
|
|
5145
|
+
if (a) {
|
|
5146
|
+
a(B);
|
|
5147
5147
|
return;
|
|
5148
5148
|
}
|
|
5149
|
-
A && r && S(A, r, B),
|
|
5150
|
-
}, [
|
|
5149
|
+
A && r && S(A, r, B), o && t && m(t, I(o, B));
|
|
5150
|
+
}, [a, A, r, S, o, t, m]), k = Object.keys(x).length > 0, M = /* @__PURE__ */ p(
|
|
5151
5151
|
Or,
|
|
5152
5152
|
{
|
|
5153
5153
|
...s,
|
|
@@ -5174,14 +5174,14 @@ const Ge = 420, En = 440, to = ({
|
|
|
5174
5174
|
const r = Qe.Timer;
|
|
5175
5175
|
if (r)
|
|
5176
5176
|
return /* @__PURE__ */ p(r, { type: "countdown", ...i });
|
|
5177
|
-
const { Countdown:
|
|
5178
|
-
return /* @__PURE__ */ p(
|
|
5179
|
-
},
|
|
5177
|
+
const { Countdown: o } = Qe;
|
|
5178
|
+
return /* @__PURE__ */ p(o, { ...i });
|
|
5179
|
+
}, aa = {
|
|
5180
5180
|
top: "top",
|
|
5181
5181
|
bottom: "bottom",
|
|
5182
5182
|
left: "start",
|
|
5183
5183
|
right: "end"
|
|
5184
|
-
},
|
|
5184
|
+
}, ca = (e) => {
|
|
5185
5185
|
if (!e) return [];
|
|
5186
5186
|
if (typeof e == "string")
|
|
5187
5187
|
try {
|
|
@@ -5196,8 +5196,8 @@ const Ge = 420, En = 440, to = ({
|
|
|
5196
5196
|
develop: n,
|
|
5197
5197
|
dataSet: i,
|
|
5198
5198
|
dataSetField: r,
|
|
5199
|
-
dotPosition:
|
|
5200
|
-
dotPlacement:
|
|
5199
|
+
dotPosition: o,
|
|
5200
|
+
dotPlacement: a,
|
|
5201
5201
|
slides: c,
|
|
5202
5202
|
changeAction: l,
|
|
5203
5203
|
afterChange: d,
|
|
@@ -5209,10 +5209,10 @@ const Ge = 420, En = 440, to = ({
|
|
|
5209
5209
|
() => it(t, i),
|
|
5210
5210
|
[t, i]
|
|
5211
5211
|
), m = y(() => {
|
|
5212
|
-
if (
|
|
5213
|
-
if (
|
|
5214
|
-
return
|
|
5215
|
-
}, [
|
|
5212
|
+
if (a) return a;
|
|
5213
|
+
if (o)
|
|
5214
|
+
return aa[o] || o;
|
|
5215
|
+
}, [o, a]), u = y(() => ca(c), [c]), S = j((C) => {
|
|
5216
5216
|
if (d) {
|
|
5217
5217
|
d(C);
|
|
5218
5218
|
return;
|
|
@@ -5239,19 +5239,19 @@ const Ge = 420, En = 440, to = ({
|
|
|
5239
5239
|
}
|
|
5240
5240
|
);
|
|
5241
5241
|
};
|
|
5242
|
-
function
|
|
5242
|
+
function sa(e) {
|
|
5243
5243
|
if (!e || typeof e != "string" || /^(data:|blob:|https?:\/\/)/i.test(e)) return e;
|
|
5244
5244
|
const t = Jt().viewRes;
|
|
5245
5245
|
return t ? t(e) : e;
|
|
5246
5246
|
}
|
|
5247
|
-
const
|
|
5247
|
+
const la = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNmMGYwZjAiLz48cGF0aCBkPSJNNzAgNzBhMTIgMTIgMCAxIDEgMCAyNCAxMiAxMiAwIDAgMSAwLTI0em02MCAxMEw4NSAxMzBsLTI1LTIwLTIwIDE1djE1aDEyMHYtNDB6IiBmaWxsPSIjYmZiZmJmIi8+PC9zdmc+", Xc = ({
|
|
5248
5248
|
id: e,
|
|
5249
5249
|
sessionId: t,
|
|
5250
5250
|
develop: n,
|
|
5251
5251
|
dataSet: i,
|
|
5252
5252
|
dataSetField: r,
|
|
5253
|
-
remoteUrl:
|
|
5254
|
-
objectFit:
|
|
5253
|
+
remoteUrl: o,
|
|
5254
|
+
objectFit: a = "cover",
|
|
5255
5255
|
src: c,
|
|
5256
5256
|
...l
|
|
5257
5257
|
}) => {
|
|
@@ -5263,7 +5263,7 @@ const so = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
5263
5263
|
return d(v, r);
|
|
5264
5264
|
}, [v, r, d]), f = y(() => {
|
|
5265
5265
|
let u;
|
|
5266
|
-
return g != null && g !== "" ? u = String(g) : (h == null ? void 0 : h.src) !== void 0 ? u = h.src : u = c,
|
|
5266
|
+
return g != null && g !== "" ? u = String(g) : (h == null ? void 0 : h.src) !== void 0 ? u = h.src : u = c, sa(u);
|
|
5267
5267
|
}, [g, h == null ? void 0 : h.src, c]), s = y(() => {
|
|
5268
5268
|
const u = { ...l };
|
|
5269
5269
|
return h && typeof h == "object" && Object.keys(h).forEach((S) => {
|
|
@@ -5272,18 +5272,18 @@ const so = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
5272
5272
|
}, [l, h]), m = {
|
|
5273
5273
|
...s,
|
|
5274
5274
|
src: f || void 0,
|
|
5275
|
-
fallback: s.fallback ||
|
|
5275
|
+
fallback: s.fallback || la,
|
|
5276
5276
|
// Disable preview in designer mode to prevent GrapesJS selection interference
|
|
5277
5277
|
preview: n ? !1 : s.preview,
|
|
5278
5278
|
// Use styles prop instead of CSS overrides (AntD 5.7+)
|
|
5279
5279
|
styles: {
|
|
5280
5280
|
root: { width: "100%", height: "100%" },
|
|
5281
|
-
image: { width: "100%", height: "100%", objectFit:
|
|
5281
|
+
image: { width: "100%", height: "100%", objectFit: a }
|
|
5282
5282
|
}
|
|
5283
5283
|
};
|
|
5284
5284
|
return /* @__PURE__ */ p("div", { style: { width: "100%", height: "100%", display: "flex" }, children: /* @__PURE__ */ p(Zt, { ...m }) });
|
|
5285
|
-
}, { PreviewGroup:
|
|
5286
|
-
function
|
|
5285
|
+
}, { PreviewGroup: ua } = Zt;
|
|
5286
|
+
function fa(e) {
|
|
5287
5287
|
if (!e || typeof e != "string" || /^(data:|blob:|https?:\/\/)/i.test(e)) return e;
|
|
5288
5288
|
const t = Jt().viewRes;
|
|
5289
5289
|
return t ? t(e) : e;
|
|
@@ -5294,16 +5294,16 @@ const Ic = ({
|
|
|
5294
5294
|
develop: n,
|
|
5295
5295
|
children: i,
|
|
5296
5296
|
dataSet: r,
|
|
5297
|
-
dataSetField:
|
|
5298
|
-
items:
|
|
5297
|
+
dataSetField: o,
|
|
5298
|
+
items: a,
|
|
5299
5299
|
...c
|
|
5300
5300
|
}) => {
|
|
5301
5301
|
const l = _((m) => m.getDataSet), d = _((m) => m.getProps), b = y(
|
|
5302
5302
|
() => it(t, r),
|
|
5303
5303
|
[t, r]
|
|
5304
5304
|
), h = y(() => t && e ? d(t, e) : null, [t, e, d]), v = y(() => {
|
|
5305
|
-
if (b &&
|
|
5306
|
-
}, [b,
|
|
5305
|
+
if (b && o) return l(b, o);
|
|
5306
|
+
}, [b, o, l]), g = y(() => {
|
|
5307
5307
|
const m = v != null ? Array.isArray(v) ? v : typeof v == "string" ? (() => {
|
|
5308
5308
|
try {
|
|
5309
5309
|
return JSON.parse(v);
|
|
@@ -5311,25 +5311,25 @@ const Ic = ({
|
|
|
5311
5311
|
return;
|
|
5312
5312
|
}
|
|
5313
5313
|
})() : void 0 : h == null ? void 0 : h.items;
|
|
5314
|
-
return n ? m ??
|
|
5315
|
-
}, [n, b, v, h == null ? void 0 : h.items,
|
|
5314
|
+
return n ? m ?? a ?? [] : b ? Array.isArray(m) ? m : [] : a ?? [];
|
|
5315
|
+
}, [n, b, v, h == null ? void 0 : h.items, a]), f = y(() => g.map((m) => {
|
|
5316
5316
|
const u = typeof m == "string" ? m : m && typeof m == "object" ? m.url ?? m.src : void 0;
|
|
5317
|
-
return
|
|
5317
|
+
return fa(u);
|
|
5318
5318
|
}).filter((m) => !!m), [g]), s = y(() => {
|
|
5319
5319
|
const m = { ...c };
|
|
5320
5320
|
return h && typeof h == "object" && Object.keys(h).forEach((u) => {
|
|
5321
5321
|
u !== "items" && h[u] !== void 0 && h[u] !== null && (m[u] = h[u]);
|
|
5322
5322
|
}), m;
|
|
5323
5323
|
}, [c, h]);
|
|
5324
|
-
return /* @__PURE__ */ p(
|
|
5324
|
+
return /* @__PURE__ */ p(ua, { ...s, items: f, children: i });
|
|
5325
5325
|
}, ts = ({
|
|
5326
5326
|
id: e,
|
|
5327
5327
|
sessionId: t,
|
|
5328
5328
|
develop: n,
|
|
5329
5329
|
children: i,
|
|
5330
5330
|
dataSet: r,
|
|
5331
|
-
dataSetField:
|
|
5332
|
-
src:
|
|
5331
|
+
dataSetField: o,
|
|
5332
|
+
src: a,
|
|
5333
5333
|
clickAction: c,
|
|
5334
5334
|
icon: l,
|
|
5335
5335
|
token: d,
|
|
@@ -5339,12 +5339,12 @@ const Ic = ({
|
|
|
5339
5339
|
() => it(t, r),
|
|
5340
5340
|
[t, r]
|
|
5341
5341
|
), f = y(() => t && e ? v(t, e) : null, [t, e, v]), s = y(() => {
|
|
5342
|
-
if (g &&
|
|
5343
|
-
}, [g,
|
|
5344
|
-
let D =
|
|
5342
|
+
if (g && o) return h(g, o);
|
|
5343
|
+
}, [g, o, h]), m = y(() => {
|
|
5344
|
+
let D = a;
|
|
5345
5345
|
if (n || (s != null && s !== "" ? D = String(s) : (f == null ? void 0 : f.src) !== void 0 && (D = f.src)), !(typeof D == "string" && D.trim() === ""))
|
|
5346
5346
|
return D;
|
|
5347
|
-
}, [n, s, f == null ? void 0 : f.src,
|
|
5347
|
+
}, [n, s, f == null ? void 0 : f.src, a]), u = y(() => {
|
|
5348
5348
|
let D = l;
|
|
5349
5349
|
if (!n && (f != null && f.icon) && (D = f.icon), typeof D == "string" && D) {
|
|
5350
5350
|
const T = Ft[D];
|
|
@@ -5389,7 +5389,7 @@ const Ic = ({
|
|
|
5389
5389
|
}
|
|
5390
5390
|
);
|
|
5391
5391
|
return C ? /* @__PURE__ */ p(Kt, { theme: C, children: w }) : w;
|
|
5392
|
-
},
|
|
5392
|
+
}, da = {
|
|
5393
5393
|
0: "default",
|
|
5394
5394
|
1: "success",
|
|
5395
5395
|
2: "warning",
|
|
@@ -5404,8 +5404,8 @@ const Ic = ({
|
|
|
5404
5404
|
develop: n,
|
|
5405
5405
|
children: i,
|
|
5406
5406
|
content: r,
|
|
5407
|
-
dataSet:
|
|
5408
|
-
dataSetField:
|
|
5407
|
+
dataSet: o,
|
|
5408
|
+
dataSetField: a,
|
|
5409
5409
|
dictCode: c,
|
|
5410
5410
|
autoColor: l = !1,
|
|
5411
5411
|
colorMap: d,
|
|
@@ -5416,8 +5416,8 @@ const Ic = ({
|
|
|
5416
5416
|
...g
|
|
5417
5417
|
}) => {
|
|
5418
5418
|
const f = _((k) => k.getDataSet), s = _((k) => k.getProps), m = y(
|
|
5419
|
-
() => it(t,
|
|
5420
|
-
[t,
|
|
5419
|
+
() => it(t, o),
|
|
5420
|
+
[t, o]
|
|
5421
5421
|
), { options: u } = Ce(c), S = y(() => {
|
|
5422
5422
|
if (d) {
|
|
5423
5423
|
if (typeof d == "string")
|
|
@@ -5429,8 +5429,8 @@ const Ic = ({
|
|
|
5429
5429
|
return d;
|
|
5430
5430
|
}
|
|
5431
5431
|
}, [d]), A = y(() => t && e ? s(t, e) : null, [t, e, s]), C = y(() => {
|
|
5432
|
-
if (m &&
|
|
5433
|
-
}, [m,
|
|
5432
|
+
if (m && a) return f(m, a);
|
|
5433
|
+
}, [m, a, f]), w = y(() => n ? r : C != null && C !== "" ? String(C) : (A == null ? void 0 : A.content) !== void 0 ? A.content : r, [n, C, A == null ? void 0 : A.content, r]), D = y(() => {
|
|
5434
5434
|
if (c && u.length > 0 && w !== void 0 && w !== null) {
|
|
5435
5435
|
const k = ce(u, w);
|
|
5436
5436
|
return (k == null ? void 0 : k.label) ?? w;
|
|
@@ -5439,7 +5439,7 @@ const Ic = ({
|
|
|
5439
5439
|
}, [c, u, w]), T = y(() => {
|
|
5440
5440
|
if (!l || w === void 0 || w === null) return;
|
|
5441
5441
|
const k = String(w).toLowerCase();
|
|
5442
|
-
return S && S[k] ? S[k] :
|
|
5442
|
+
return S && S[k] ? S[k] : da[k];
|
|
5443
5443
|
}, [l, w, S]), O = y(() => {
|
|
5444
5444
|
const k = { ...g };
|
|
5445
5445
|
return A && typeof A == "object" && Object.keys(A).forEach((M) => {
|
|
@@ -5453,8 +5453,8 @@ const Ic = ({
|
|
|
5453
5453
|
develop: n,
|
|
5454
5454
|
dataSet: i,
|
|
5455
5455
|
dataSetField: r,
|
|
5456
|
-
changeAction:
|
|
5457
|
-
showSizeChangeAction:
|
|
5456
|
+
changeAction: o,
|
|
5457
|
+
showSizeChangeAction: a,
|
|
5458
5458
|
onChange: c,
|
|
5459
5459
|
onShowSizeChange: l,
|
|
5460
5460
|
current: d,
|
|
@@ -5474,14 +5474,14 @@ const Ic = ({
|
|
|
5474
5474
|
c(O, N);
|
|
5475
5475
|
return;
|
|
5476
5476
|
}
|
|
5477
|
-
s && f(s, m ?? "", { current: O, pageSize: N, total: w }),
|
|
5478
|
-
}, [c, s, m, f, w,
|
|
5477
|
+
s && f(s, m ?? "", { current: O, pageSize: N, total: w }), o && t && g(t, I(o, { page: O, pageSize: N }));
|
|
5478
|
+
}, [c, s, m, f, w, o, t, g]), T = j((O, N) => {
|
|
5479
5479
|
if (l) {
|
|
5480
5480
|
l(O, N);
|
|
5481
5481
|
return;
|
|
5482
5482
|
}
|
|
5483
|
-
s && f(s, m ?? "", { current: O, pageSize: N, total: w }),
|
|
5484
|
-
}, [l, s, m, f, w,
|
|
5483
|
+
s && f(s, m ?? "", { current: O, pageSize: N, total: w }), a && t && g(t, I(a, { current: O, pageSize: N }));
|
|
5484
|
+
}, [l, s, m, f, w, a, t, g]);
|
|
5485
5485
|
return /* @__PURE__ */ p(
|
|
5486
5486
|
qn,
|
|
5487
5487
|
{
|
|
@@ -5503,27 +5503,27 @@ const Ic = ({
|
|
|
5503
5503
|
develop: n,
|
|
5504
5504
|
items: i,
|
|
5505
5505
|
children: r,
|
|
5506
|
-
...
|
|
5507
|
-
}) => /* @__PURE__ */ p(Mr, { ...
|
|
5508
|
-
const
|
|
5506
|
+
...o
|
|
5507
|
+
}) => /* @__PURE__ */ p(Mr, { ...o, items: i, children: r }), $e = (e) => Object.entries(e).map(([t, n]) => `${t.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), ma = ({ mode: e, arrowStyle: t, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
|
|
5508
|
+
const o = _t(null), a = _t(null), [c, l] = mt(0), [d, b] = mt(!1), [h, v] = mt(0), [g, f] = mt(0), s = e === "horizontal";
|
|
5509
5509
|
At(() => {
|
|
5510
5510
|
const D = () => {
|
|
5511
|
-
if (!
|
|
5512
|
-
const O =
|
|
5511
|
+
if (!o.current || !a.current) return;
|
|
5512
|
+
const O = o.current, N = a.current;
|
|
5513
5513
|
let x = 0, E = 0, k = !1;
|
|
5514
5514
|
s ? (x = O.clientWidth, E = N.scrollWidth, k = E > x) : (x = O.clientHeight, E = N.scrollHeight, k = E > x), f(x), v(E), b(k), k || l(0);
|
|
5515
5515
|
}, T = new ResizeObserver(D);
|
|
5516
|
-
return
|
|
5516
|
+
return o.current && T.observe(o.current), a.current && T.observe(a.current), D(), () => T.disconnect();
|
|
5517
5517
|
}, [s]);
|
|
5518
5518
|
const m = c <= 0, u = !d || c >= h - g, S = j(() => {
|
|
5519
5519
|
var T, O;
|
|
5520
5520
|
if (m) return;
|
|
5521
|
-
const D = s ? ((T =
|
|
5521
|
+
const D = s ? ((T = o.current) == null ? void 0 : T.clientWidth) ?? 200 : ((O = o.current) == null ? void 0 : O.clientHeight) ?? 200;
|
|
5522
5522
|
l((N) => Math.max(0, N - D));
|
|
5523
5523
|
}, [s, m]), A = j(() => {
|
|
5524
5524
|
var O, N, x, E, k, M;
|
|
5525
5525
|
if (u) return;
|
|
5526
|
-
const D = s ? ((O =
|
|
5526
|
+
const D = s ? ((O = o.current) == null ? void 0 : O.clientWidth) ?? 200 : ((N = o.current) == null ? void 0 : N.clientHeight) ?? 200, T = s ? (((x = a.current) == null ? void 0 : x.scrollWidth) ?? 0) - (((E = o.current) == null ? void 0 : E.clientWidth) ?? 0) : (((k = a.current) == null ? void 0 : k.scrollHeight) ?? 0) - (((M = o.current) == null ? void 0 : M.clientHeight) ?? 0);
|
|
5527
5527
|
l((B) => Math.min(T, B + D));
|
|
5528
5528
|
}, [s, u]), C = n || (s ? /* @__PURE__ */ p(Gn, {}) : /* @__PURE__ */ p(ri, {})), w = i || (s ? /* @__PURE__ */ p(Jn, {}) : /* @__PURE__ */ p(Fn, {}));
|
|
5529
5529
|
return /* @__PURE__ */ ct(
|
|
@@ -5559,7 +5559,7 @@ const Ic = ({
|
|
|
5559
5559
|
/* @__PURE__ */ p(
|
|
5560
5560
|
"div",
|
|
5561
5561
|
{
|
|
5562
|
-
ref:
|
|
5562
|
+
ref: o,
|
|
5563
5563
|
style: {
|
|
5564
5564
|
flex: 1,
|
|
5565
5565
|
overflow: "hidden",
|
|
@@ -5570,7 +5570,7 @@ const Ic = ({
|
|
|
5570
5570
|
children: /* @__PURE__ */ p(
|
|
5571
5571
|
"div",
|
|
5572
5572
|
{
|
|
5573
|
-
ref:
|
|
5573
|
+
ref: a,
|
|
5574
5574
|
style: {
|
|
5575
5575
|
transform: s ? `translateX(-${c}px)` : `translateY(-${c}px)`,
|
|
5576
5576
|
transition: "transform 0.3s ease-out",
|
|
@@ -5604,7 +5604,7 @@ const Ic = ({
|
|
|
5604
5604
|
]
|
|
5605
5605
|
}
|
|
5606
5606
|
);
|
|
5607
|
-
},
|
|
5607
|
+
}, ha = ({ mode: e, children: t }) => /* @__PURE__ */ p(
|
|
5608
5608
|
"div",
|
|
5609
5609
|
{
|
|
5610
5610
|
style: {
|
|
@@ -5622,8 +5622,8 @@ const Ic = ({
|
|
|
5622
5622
|
develop: n,
|
|
5623
5623
|
dataSet: i,
|
|
5624
5624
|
dataSetField: r,
|
|
5625
|
-
clickAction:
|
|
5626
|
-
selectAction:
|
|
5625
|
+
clickAction: o,
|
|
5626
|
+
selectAction: a,
|
|
5627
5627
|
openChangeAction: c,
|
|
5628
5628
|
deselectAction: l,
|
|
5629
5629
|
onClick: d,
|
|
@@ -5675,12 +5675,12 @@ const Ic = ({
|
|
|
5675
5675
|
), nt = y(
|
|
5676
5676
|
() => Y.openKeys ?? (D && T ? void 0 : s),
|
|
5677
5677
|
[Y.openKeys, D, T, s]
|
|
5678
|
-
),
|
|
5678
|
+
), ot = y(
|
|
5679
5679
|
() => it(t, D),
|
|
5680
5680
|
[t, D]
|
|
5681
5681
|
), rt = _((H) => {
|
|
5682
|
-
if (!Y.openKeys &&
|
|
5683
|
-
return H.getDataSet(
|
|
5682
|
+
if (!Y.openKeys && ot && T)
|
|
5683
|
+
return H.getDataSet(ot, T);
|
|
5684
5684
|
}), vt = y(() => {
|
|
5685
5685
|
const H = (ft) => Array.isArray(ft) ? ft.map((pt) => {
|
|
5686
5686
|
const St = { ...pt };
|
|
@@ -5703,12 +5703,12 @@ const Ic = ({
|
|
|
5703
5703
|
d(H);
|
|
5704
5704
|
return;
|
|
5705
5705
|
}
|
|
5706
|
-
|
|
5706
|
+
o && t && $(
|
|
5707
5707
|
t,
|
|
5708
|
-
I(
|
|
5708
|
+
I(o, { key: H.key, keyPath: H.keyPath })
|
|
5709
5709
|
);
|
|
5710
5710
|
},
|
|
5711
|
-
[d,
|
|
5711
|
+
[d, o, t, $]
|
|
5712
5712
|
), lt = j(
|
|
5713
5713
|
(H) => {
|
|
5714
5714
|
if (b) {
|
|
@@ -5721,9 +5721,9 @@ const Ic = ({
|
|
|
5721
5721
|
z(K, r, { ...ft, selectedKeys: H.selectedKeys });
|
|
5722
5722
|
} else
|
|
5723
5723
|
z(K, "selectedKeys", H.selectedKeys);
|
|
5724
|
-
|
|
5724
|
+
a && t && $(
|
|
5725
5725
|
t,
|
|
5726
|
-
I(
|
|
5726
|
+
I(a, { selectedKeys: H.selectedKeys })
|
|
5727
5727
|
);
|
|
5728
5728
|
},
|
|
5729
5729
|
[
|
|
@@ -5731,11 +5731,11 @@ const Ic = ({
|
|
|
5731
5731
|
K,
|
|
5732
5732
|
r,
|
|
5733
5733
|
z,
|
|
5734
|
-
|
|
5734
|
+
a,
|
|
5735
5735
|
t,
|
|
5736
5736
|
$
|
|
5737
5737
|
]
|
|
5738
|
-
),
|
|
5738
|
+
), at = j(
|
|
5739
5739
|
(H) => {
|
|
5740
5740
|
if (h) {
|
|
5741
5741
|
h(H);
|
|
@@ -5747,7 +5747,7 @@ const Ic = ({
|
|
|
5747
5747
|
z(K, r, { ...ft, openKeys: H });
|
|
5748
5748
|
} else
|
|
5749
5749
|
z(K, "openKeys", H);
|
|
5750
|
-
else
|
|
5750
|
+
else ot && T && z(ot, T, H);
|
|
5751
5751
|
c && t && $(
|
|
5752
5752
|
t,
|
|
5753
5753
|
I(c, { openKeys: H })
|
|
@@ -5757,7 +5757,7 @@ const Ic = ({
|
|
|
5757
5757
|
h,
|
|
5758
5758
|
K,
|
|
5759
5759
|
r,
|
|
5760
|
-
|
|
5760
|
+
ot,
|
|
5761
5761
|
T,
|
|
5762
5762
|
z,
|
|
5763
5763
|
c,
|
|
@@ -5836,7 +5836,7 @@ const Ic = ({
|
|
|
5836
5836
|
defaultOpenKeys: m,
|
|
5837
5837
|
onClick: tt,
|
|
5838
5838
|
onSelect: lt,
|
|
5839
|
-
onOpenChange:
|
|
5839
|
+
onOpenChange: at,
|
|
5840
5840
|
onDeselect: Rt,
|
|
5841
5841
|
styles: u,
|
|
5842
5842
|
classNames: S,
|
|
@@ -5845,7 +5845,7 @@ const Ic = ({
|
|
|
5845
5845
|
disabledOverflow: E !== "default"
|
|
5846
5846
|
}
|
|
5847
5847
|
), gt = () => E === "pagination" ? /* @__PURE__ */ p(
|
|
5848
|
-
|
|
5848
|
+
ma,
|
|
5849
5849
|
{
|
|
5850
5850
|
mode: O || "horizontal",
|
|
5851
5851
|
arrowStyle: k,
|
|
@@ -5853,7 +5853,7 @@ const Ic = ({
|
|
|
5853
5853
|
arrowIconNext: et,
|
|
5854
5854
|
children: Q
|
|
5855
5855
|
}
|
|
5856
|
-
) : E === "scroll" ? /* @__PURE__ */ p(
|
|
5856
|
+
) : E === "scroll" ? /* @__PURE__ */ p(ha, { mode: O || "horizontal", children: Q }) : Q, xt = y(() => {
|
|
5857
5857
|
const H = {};
|
|
5858
5858
|
return n && (H.motion = !1), Bt && (H.components = { Menu: Bt }), Object.keys(H).length > 0 ? H : void 0;
|
|
5859
5859
|
}, [n, Bt]);
|
|
@@ -5864,19 +5864,19 @@ const Ic = ({
|
|
|
5864
5864
|
] }) : H;
|
|
5865
5865
|
return xt ? /* @__PURE__ */ p(Kt, { theme: xt, children: ft }) : ft;
|
|
5866
5866
|
})();
|
|
5867
|
-
},
|
|
5867
|
+
}, os = ({
|
|
5868
5868
|
id: e,
|
|
5869
5869
|
sessionId: t,
|
|
5870
5870
|
develop: n,
|
|
5871
5871
|
...i
|
|
5872
|
-
}) => /* @__PURE__ */ p(Rr, { ...i }),
|
|
5872
|
+
}) => /* @__PURE__ */ p(Rr, { ...i }), as = ({
|
|
5873
5873
|
id: e,
|
|
5874
5874
|
sessionId: t,
|
|
5875
5875
|
develop: n,
|
|
5876
5876
|
dataSet: i,
|
|
5877
5877
|
dataSetField: r,
|
|
5878
|
-
count:
|
|
5879
|
-
showZero:
|
|
5878
|
+
count: o,
|
|
5879
|
+
showZero: a,
|
|
5880
5880
|
overflowCount: c,
|
|
5881
5881
|
dot: l,
|
|
5882
5882
|
offset: d,
|
|
@@ -5893,7 +5893,7 @@ const Ic = ({
|
|
|
5893
5893
|
[t, i]
|
|
5894
5894
|
), A = y(() => {
|
|
5895
5895
|
if (S && r) return u(S, r);
|
|
5896
|
-
}, [S, r, u]), C = y(() => A ??
|
|
5896
|
+
}, [S, r, u]), C = y(() => A ?? o, [A, o]), D = (Xt.useToken ? Xt.useToken() : { token: void 0 }).token, T = y(() => {
|
|
5897
5897
|
if (!(!g || typeof g != "string"))
|
|
5898
5898
|
return D && g in D ? D[g] : g;
|
|
5899
5899
|
}, [g, D]);
|
|
@@ -5902,7 +5902,7 @@ const Ic = ({
|
|
|
5902
5902
|
{
|
|
5903
5903
|
...m,
|
|
5904
5904
|
count: C,
|
|
5905
|
-
showZero:
|
|
5905
|
+
showZero: a,
|
|
5906
5906
|
overflowCount: c,
|
|
5907
5907
|
dot: l,
|
|
5908
5908
|
offset: d,
|
|
@@ -5933,8 +5933,8 @@ const Ic = ({
|
|
|
5933
5933
|
develop: n,
|
|
5934
5934
|
dataSet: i,
|
|
5935
5935
|
dataSetField: r,
|
|
5936
|
-
text:
|
|
5937
|
-
placement:
|
|
5936
|
+
text: o,
|
|
5937
|
+
placement: a,
|
|
5938
5938
|
color: c,
|
|
5939
5939
|
children: l,
|
|
5940
5940
|
...d
|
|
@@ -5944,7 +5944,7 @@ const Ic = ({
|
|
|
5944
5944
|
[t, i]
|
|
5945
5945
|
), v = y(() => {
|
|
5946
5946
|
if (h && r) return b(h, r);
|
|
5947
|
-
}, [h, r, b]), g = y(() => v ??
|
|
5947
|
+
}, [h, r, b]), g = y(() => v ?? o, [v, o]), s = (Xt.useToken ? Xt.useToken() : { token: void 0 }).token, m = y(() => {
|
|
5948
5948
|
if (!(!c || typeof c != "string"))
|
|
5949
5949
|
return s && c in s ? s[c] : c;
|
|
5950
5950
|
}, [c, s]);
|
|
@@ -5953,7 +5953,7 @@ const Ic = ({
|
|
|
5953
5953
|
{
|
|
5954
5954
|
...d,
|
|
5955
5955
|
text: g,
|
|
5956
|
-
placement:
|
|
5956
|
+
placement: a,
|
|
5957
5957
|
color: m,
|
|
5958
5958
|
children: /* @__PURE__ */ p(
|
|
5959
5959
|
"div",
|
|
@@ -5972,7 +5972,7 @@ const Ic = ({
|
|
|
5972
5972
|
)
|
|
5973
5973
|
}
|
|
5974
5974
|
);
|
|
5975
|
-
},
|
|
5975
|
+
}, ya = (e) => {
|
|
5976
5976
|
if (!e) return [];
|
|
5977
5977
|
if (typeof e == "string")
|
|
5978
5978
|
try {
|
|
@@ -5982,7 +5982,7 @@ const Ic = ({
|
|
|
5982
5982
|
return [];
|
|
5983
5983
|
}
|
|
5984
5984
|
return e;
|
|
5985
|
-
},
|
|
5985
|
+
}, ga = (e) => {
|
|
5986
5986
|
if (!(e == null || e === "")) {
|
|
5987
5987
|
if (typeof e == "number") return e;
|
|
5988
5988
|
if (typeof e == "string") {
|
|
@@ -5996,7 +5996,7 @@ const Ic = ({
|
|
|
5996
5996
|
}
|
|
5997
5997
|
return e;
|
|
5998
5998
|
}
|
|
5999
|
-
},
|
|
5999
|
+
}, pa = (e) => {
|
|
6000
6000
|
if (!(e == null || e === "")) {
|
|
6001
6001
|
if (typeof e == "number") return e;
|
|
6002
6002
|
if (typeof e == "string") {
|
|
@@ -6017,8 +6017,8 @@ const Ic = ({
|
|
|
6017
6017
|
develop: n,
|
|
6018
6018
|
dataSet: i,
|
|
6019
6019
|
dataSetField: r,
|
|
6020
|
-
items:
|
|
6021
|
-
columns:
|
|
6020
|
+
items: o,
|
|
6021
|
+
columns: a,
|
|
6022
6022
|
gutter: c,
|
|
6023
6023
|
fresh: l,
|
|
6024
6024
|
layoutChangeAction: d,
|
|
@@ -6026,7 +6026,7 @@ const Ic = ({
|
|
|
6026
6026
|
itemRender: h,
|
|
6027
6027
|
...v
|
|
6028
6028
|
}) => {
|
|
6029
|
-
const g = Ke(i, r, t), f = g.dataSet, s = g.dataSetField, m = g.sessionId, u = De(
|
|
6029
|
+
const g = Ke(i, r, t), f = g.dataSet, s = g.dataSetField, m = g.sessionId, u = De(ae), S = _(($) => $.addCommand), A = y(
|
|
6030
6030
|
() => it(m, f),
|
|
6031
6031
|
[m, f]
|
|
6032
6032
|
), C = _(($) => A && s ? $.getDataSet(A, s) : null), w = y(() => !m || e == null || e === "" ? null : u && typeof u.index == "number" ? `${String(e)}_${u.index}` : String(e), [m, e, u]), D = _(
|
|
@@ -6034,7 +6034,7 @@ const Ic = ({
|
|
|
6034
6034
|
var z;
|
|
6035
6035
|
return w ? ((z = $.propsStore[`${m}_props`]) == null ? void 0 : z[w]) ?? null : null;
|
|
6036
6036
|
}
|
|
6037
|
-
), T = y(() => C && Array.isArray(C) ? C :
|
|
6037
|
+
), T = y(() => C && Array.isArray(C) ? C : ya(o), [C, o]), O = (D == null ? void 0 : D.columns) !== void 0 && (D == null ? void 0 : D.columns) !== null ? D.columns : a, N = y(() => ga(O), [O]), x = y(() => pa(c), [c]), E = y(() => {
|
|
6038
6038
|
if (b) return b;
|
|
6039
6039
|
if (d && m)
|
|
6040
6040
|
return ($) => {
|
|
@@ -6079,7 +6079,7 @@ const Ic = ({
|
|
|
6079
6079
|
return !f || !s ? M : ($, z) => {
|
|
6080
6080
|
const K = typeof z == "number" ? z : typeof ($ == null ? void 0 : $.index) == "number" ? $.index : Number(($ == null ? void 0 : $.index) ?? 0);
|
|
6081
6081
|
return /* @__PURE__ */ p(
|
|
6082
|
-
|
|
6082
|
+
ae.Provider,
|
|
6083
6083
|
{
|
|
6084
6084
|
value: {
|
|
6085
6085
|
dataSet: f,
|
|
@@ -6113,8 +6113,8 @@ const Ic = ({
|
|
|
6113
6113
|
develop: n,
|
|
6114
6114
|
closeAction: i,
|
|
6115
6115
|
onClose: r,
|
|
6116
|
-
dataSet:
|
|
6117
|
-
dataSetField:
|
|
6116
|
+
dataSet: o,
|
|
6117
|
+
dataSetField: a,
|
|
6118
6118
|
title: c,
|
|
6119
6119
|
description: l,
|
|
6120
6120
|
closeText: d,
|
|
@@ -6122,11 +6122,11 @@ const Ic = ({
|
|
|
6122
6122
|
...h
|
|
6123
6123
|
}) => {
|
|
6124
6124
|
const v = _((w) => w.getDataSet), g = _((w) => w.getProps), f = y(
|
|
6125
|
-
() => it(t,
|
|
6126
|
-
[t,
|
|
6125
|
+
() => it(t, o),
|
|
6126
|
+
[t, o]
|
|
6127
6127
|
), s = y(() => t && e ? g(t, e) : null, [t, e, g]), m = y(() => {
|
|
6128
|
-
if (f &&
|
|
6129
|
-
}, [f,
|
|
6128
|
+
if (f && a) return v(f, a);
|
|
6129
|
+
}, [f, a, v]), u = y(() => n ? c : m != null && m !== "" ? String(m) : (s == null ? void 0 : s.title) !== void 0 ? s.title : (s == null ? void 0 : s.message) !== void 0 ? s.message : c, [n, m, s == null ? void 0 : s.title, s == null ? void 0 : s.message, c]), S = y(() => {
|
|
6130
6130
|
const w = { ...h, description: l };
|
|
6131
6131
|
return s && typeof s == "object" && Object.keys(s).forEach((D) => {
|
|
6132
6132
|
D !== "title" && D !== "message" && s[D] !== void 0 && s[D] !== null && (w[D] = s[D]);
|
|
@@ -6149,8 +6149,8 @@ const Ic = ({
|
|
|
6149
6149
|
develop: n,
|
|
6150
6150
|
dataSet: i,
|
|
6151
6151
|
dataSetField: r,
|
|
6152
|
-
okAction:
|
|
6153
|
-
cancelAction:
|
|
6152
|
+
okAction: o,
|
|
6153
|
+
cancelAction: a,
|
|
6154
6154
|
onOk: c,
|
|
6155
6155
|
onCancel: l,
|
|
6156
6156
|
open: d,
|
|
@@ -6164,18 +6164,18 @@ const Ic = ({
|
|
|
6164
6164
|
if (s && r)
|
|
6165
6165
|
return g(s, r);
|
|
6166
6166
|
}, [s, r, g]), u = m !== void 0 ? !!m : d, S = j(() => {
|
|
6167
|
-
c && c(), s && r && f(s, r, !1),
|
|
6168
|
-
actionName:
|
|
6167
|
+
c && c(), s && r && f(s, r, !1), o && t && v(t, {
|
|
6168
|
+
actionName: o,
|
|
6169
6169
|
arg: null,
|
|
6170
6170
|
timestamp: Date.now()
|
|
6171
6171
|
});
|
|
6172
|
-
}, [c, s, r, f,
|
|
6173
|
-
l && l(), s && r && f(s, r, !1),
|
|
6174
|
-
actionName:
|
|
6172
|
+
}, [c, s, r, f, o, t, v]), A = j(() => {
|
|
6173
|
+
l && l(), s && r && f(s, r, !1), a && t && v(t, {
|
|
6174
|
+
actionName: a,
|
|
6175
6175
|
arg: null,
|
|
6176
6176
|
timestamp: Date.now()
|
|
6177
6177
|
});
|
|
6178
|
-
}, [l, s, r, f,
|
|
6178
|
+
}, [l, s, r, f, a, t, v]);
|
|
6179
6179
|
return /* @__PURE__ */ p(
|
|
6180
6180
|
zn,
|
|
6181
6181
|
{
|
|
@@ -6192,8 +6192,8 @@ const Ic = ({
|
|
|
6192
6192
|
develop: n,
|
|
6193
6193
|
dataSet: i,
|
|
6194
6194
|
dataSetField: r,
|
|
6195
|
-
closeAction:
|
|
6196
|
-
onClose:
|
|
6195
|
+
closeAction: o,
|
|
6196
|
+
onClose: a,
|
|
6197
6197
|
open: c,
|
|
6198
6198
|
children: l,
|
|
6199
6199
|
...d
|
|
@@ -6205,12 +6205,12 @@ const Ic = ({
|
|
|
6205
6205
|
if (g && r)
|
|
6206
6206
|
return h(g, r);
|
|
6207
6207
|
}, [g, r, h]), s = f !== void 0 ? !!f : c, m = j(() => {
|
|
6208
|
-
|
|
6209
|
-
actionName:
|
|
6208
|
+
a && a(), g && r && v(g, r, !1), o && t && b(t, {
|
|
6209
|
+
actionName: o,
|
|
6210
6210
|
arg: null,
|
|
6211
6211
|
timestamp: Date.now()
|
|
6212
6212
|
});
|
|
6213
|
-
}, [
|
|
6213
|
+
}, [a, g, r, v, o, t, b]);
|
|
6214
6214
|
return /* @__PURE__ */ p(
|
|
6215
6215
|
Br,
|
|
6216
6216
|
{
|
|
@@ -6237,9 +6237,9 @@ const Ic = ({
|
|
|
6237
6237
|
return t;
|
|
6238
6238
|
}
|
|
6239
6239
|
return e;
|
|
6240
|
-
},
|
|
6241
|
-
Object.entries(e).map(([t, n]) => [
|
|
6242
|
-
),
|
|
6240
|
+
}, va = (e) => e.replace(/-([a-z])/g, (t, n) => n.toUpperCase()), ba = (e) => !e || typeof e != "object" || Array.isArray(e) ? e ?? {} : Object.fromEntries(
|
|
6241
|
+
Object.entries(e).map(([t, n]) => [va(t), n])
|
|
6242
|
+
), Sa = (e) => ln(e, []).map((n) => ({
|
|
6243
6243
|
key: n.key,
|
|
6244
6244
|
tab: n.tab,
|
|
6245
6245
|
disabled: n.disabled
|
|
@@ -6250,8 +6250,8 @@ const Ic = ({
|
|
|
6250
6250
|
dataSet: i,
|
|
6251
6251
|
dataSetField: r,
|
|
6252
6252
|
// 内容插槽
|
|
6253
|
-
title:
|
|
6254
|
-
extra:
|
|
6253
|
+
title: o,
|
|
6254
|
+
extra: a,
|
|
6255
6255
|
cover: c,
|
|
6256
6256
|
tabBarExtraContent: l,
|
|
6257
6257
|
actions: d,
|
|
@@ -6281,13 +6281,13 @@ const Ic = ({
|
|
|
6281
6281
|
), E = C === "default" ? "medium" : C, k = y(() => {
|
|
6282
6282
|
const V = ln(s, {});
|
|
6283
6283
|
return Object.fromEntries(
|
|
6284
|
-
Object.entries(V).map(([nt,
|
|
6284
|
+
Object.entries(V).map(([nt, ot]) => [
|
|
6285
6285
|
nt,
|
|
6286
|
-
|
|
6286
|
+
ba(ot)
|
|
6287
6287
|
])
|
|
6288
6288
|
);
|
|
6289
6289
|
}, [s]), M = y(() => {
|
|
6290
|
-
const V =
|
|
6290
|
+
const V = Sa(b);
|
|
6291
6291
|
return V.length > 0 ? V : void 0;
|
|
6292
6292
|
}, [b]), P = y(() => {
|
|
6293
6293
|
if (x && r) {
|
|
@@ -6301,18 +6301,18 @@ const Ic = ({
|
|
|
6301
6301
|
}
|
|
6302
6302
|
x && r && N(x, `${r}.activeTabKey`, V), g && t && T(t, I(g, { key: V }));
|
|
6303
6303
|
}, [f, x, r, N, g, t, T]), { titleSlot: $, extraSlot: z, coverSlot: K, actionsSlot: L, otherChildren: R, actionsFromChildren: Y } = y(() => {
|
|
6304
|
-
let V = null, nt = null,
|
|
6304
|
+
let V = null, nt = null, ot = null, rt = [];
|
|
6305
6305
|
const vt = [];
|
|
6306
6306
|
let bt = !1;
|
|
6307
|
-
return
|
|
6307
|
+
return o && (V = o), a && (nt = a), c && (ot = c), d && (rt = d), Wt.Children.forEach(w, (yt) => {
|
|
6308
6308
|
if (!Wt.isValidElement(yt)) {
|
|
6309
6309
|
vt.push(yt);
|
|
6310
6310
|
return;
|
|
6311
6311
|
}
|
|
6312
6312
|
const tt = yt.props, lt = tt["data-slot-type"];
|
|
6313
|
-
lt === "title" && !
|
|
6314
|
-
}), { titleSlot: V, extraSlot: nt, coverSlot:
|
|
6315
|
-
}, [w,
|
|
6313
|
+
lt === "title" && !o ? V = yt : lt === "extra" && !a ? nt = yt : lt === "cover" && !c ? ot = yt : lt === "actions" && !d ? (rt = [yt], bt = !0) : lt === "body" && tt.children ? vt.push(tt.children) : vt.push(yt);
|
|
6314
|
+
}), { titleSlot: V, extraSlot: nt, coverSlot: ot, actionsSlot: rt, otherChildren: vt, actionsFromChildren: bt };
|
|
6315
|
+
}, [w, o, a, c, d]), X = y(() => {
|
|
6316
6316
|
const V = ln(m, {});
|
|
6317
6317
|
return Y ? { actionsLiMargin: "0px", ...V } : V;
|
|
6318
6318
|
}, [m, Y]), q = /* @__PURE__ */ p(
|
|
@@ -6340,22 +6340,22 @@ const Ic = ({
|
|
|
6340
6340
|
develop: n,
|
|
6341
6341
|
text: i,
|
|
6342
6342
|
children: r,
|
|
6343
|
-
styles:
|
|
6344
|
-
token:
|
|
6343
|
+
styles: o,
|
|
6344
|
+
token: a,
|
|
6345
6345
|
...c
|
|
6346
6346
|
}) => {
|
|
6347
6347
|
const l = r || i;
|
|
6348
|
-
return
|
|
6348
|
+
return a && Object.keys(a).length > 0 ? /* @__PURE__ */ p(
|
|
6349
6349
|
Kt,
|
|
6350
6350
|
{
|
|
6351
6351
|
theme: {
|
|
6352
6352
|
components: {
|
|
6353
|
-
Divider:
|
|
6353
|
+
Divider: a
|
|
6354
6354
|
}
|
|
6355
6355
|
},
|
|
6356
|
-
children: /* @__PURE__ */ p(gn, { ...c, styles:
|
|
6356
|
+
children: /* @__PURE__ */ p(gn, { ...c, styles: o, children: l })
|
|
6357
6357
|
}
|
|
6358
|
-
) : /* @__PURE__ */ p(gn, { ...c, styles:
|
|
6358
|
+
) : /* @__PURE__ */ p(gn, { ...c, styles: o, children: l });
|
|
6359
6359
|
}, Mn = (e) => {
|
|
6360
6360
|
if (!e) return [];
|
|
6361
6361
|
if (typeof e == "string")
|
|
@@ -6365,20 +6365,20 @@ const Ic = ({
|
|
|
6365
6365
|
return [];
|
|
6366
6366
|
}
|
|
6367
6367
|
return e;
|
|
6368
|
-
},
|
|
6368
|
+
}, or = (e) => e.map((t) => t.divider ? { type: "divider", key: t.key } : {
|
|
6369
6369
|
key: t.key,
|
|
6370
6370
|
label: t.label,
|
|
6371
6371
|
disabled: t.disabled,
|
|
6372
6372
|
danger: t.danger,
|
|
6373
|
-
children: t.children ?
|
|
6373
|
+
children: t.children ? or(t.children) : void 0
|
|
6374
6374
|
}), ys = ({
|
|
6375
6375
|
id: e,
|
|
6376
6376
|
sessionId: t,
|
|
6377
6377
|
develop: n,
|
|
6378
6378
|
dataSet: i,
|
|
6379
6379
|
dataSetField: r,
|
|
6380
|
-
text:
|
|
6381
|
-
items:
|
|
6380
|
+
text: o = "下拉菜单",
|
|
6381
|
+
items: a,
|
|
6382
6382
|
clickAction: c,
|
|
6383
6383
|
selectAction: l,
|
|
6384
6384
|
deselectAction: d,
|
|
@@ -6389,7 +6389,7 @@ const Ic = ({
|
|
|
6389
6389
|
index: f,
|
|
6390
6390
|
...s
|
|
6391
6391
|
}) => {
|
|
6392
|
-
const m = _((x) => x.addCommand), u = De(
|
|
6392
|
+
const m = _((x) => x.addCommand), u = De(ae), S = f ?? (u == null ? void 0 : u.index), A = y(
|
|
6393
6393
|
() => it(t, i),
|
|
6394
6394
|
[t, i]
|
|
6395
6395
|
), C = _((x) => {
|
|
@@ -6401,7 +6401,7 @@ const Ic = ({
|
|
|
6401
6401
|
const x = C;
|
|
6402
6402
|
if (Array.isArray(x == null ? void 0 : x.items)) return x.items;
|
|
6403
6403
|
if (Array.isArray(x == null ? void 0 : x.value)) return x.value;
|
|
6404
|
-
}, [C]), D = y(() => n ? w ?? Mn(
|
|
6404
|
+
}, [C]), D = y(() => n ? w ?? Mn(a) ?? [] : A ? w ?? [] : Mn(a) ?? [], [n, A, w, a]), T = j(
|
|
6405
6405
|
(x, E) => {
|
|
6406
6406
|
if (h) {
|
|
6407
6407
|
h(x, E);
|
|
@@ -6430,7 +6430,7 @@ const Ic = ({
|
|
|
6430
6430
|
]
|
|
6431
6431
|
), O = y(
|
|
6432
6432
|
() => ({
|
|
6433
|
-
items:
|
|
6433
|
+
items: or(D),
|
|
6434
6434
|
onClick: (x) => {
|
|
6435
6435
|
if (c && t) {
|
|
6436
6436
|
const { actionName: E, arg: k } = re(c, x.key, {
|
|
@@ -6493,13 +6493,13 @@ const Ic = ({
|
|
|
6493
6493
|
children: [
|
|
6494
6494
|
v,
|
|
6495
6495
|
n && !v && !g && /* @__PURE__ */ p("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
|
|
6496
|
-
!v && !n &&
|
|
6497
|
-
|
|
6496
|
+
!v && !n && o && /* @__PURE__ */ p(It, { children: /* @__PURE__ */ ct(Yt, { children: [
|
|
6497
|
+
o,
|
|
6498
6498
|
/* @__PURE__ */ p(Fn, {})
|
|
6499
6499
|
] }) })
|
|
6500
6500
|
]
|
|
6501
6501
|
}
|
|
6502
|
-
), [v, n,
|
|
6502
|
+
), [v, n, o, g]);
|
|
6503
6503
|
return /* @__PURE__ */ p(zr, { ...s, menu: O, onOpenChange: T, children: N });
|
|
6504
6504
|
}, gs = ({
|
|
6505
6505
|
id: e,
|
|
@@ -6525,20 +6525,20 @@ const Ic = ({
|
|
|
6525
6525
|
develop: n,
|
|
6526
6526
|
dataSet: i,
|
|
6527
6527
|
dataSetField: r,
|
|
6528
|
-
value:
|
|
6529
|
-
...
|
|
6528
|
+
value: o,
|
|
6529
|
+
...a
|
|
6530
6530
|
}) => {
|
|
6531
6531
|
const c = _((f) => f.getDataSet), l = _((f) => f.getProps), d = y(
|
|
6532
6532
|
() => it(t, i),
|
|
6533
6533
|
[t, i]
|
|
6534
6534
|
), b = y(() => t && e ? l(t, e) : null, [t, e, l]), h = y(() => {
|
|
6535
6535
|
if (d && r) return c(d, r);
|
|
6536
|
-
}, [d, r, c]), v = y(() => n ?
|
|
6537
|
-
const f = { ...
|
|
6536
|
+
}, [d, r, c]), v = y(() => n ? o : h != null && h !== "" ? String(h) : (b == null ? void 0 : b.value) !== void 0 ? b.value : o, [n, h, b == null ? void 0 : b.value, o]), g = y(() => {
|
|
6537
|
+
const f = { ...a };
|
|
6538
6538
|
return b && typeof b == "object" && Object.keys(b).forEach((s) => {
|
|
6539
6539
|
s !== "value" && b[s] !== void 0 && b[s] !== null && (f[s] = b[s]);
|
|
6540
6540
|
}), f;
|
|
6541
|
-
}, [
|
|
6541
|
+
}, [a, b]);
|
|
6542
6542
|
return /* @__PURE__ */ p(qr, { ...g, value: v || "" });
|
|
6543
6543
|
}, ge = (e) => {
|
|
6544
6544
|
if (!e) return;
|
|
@@ -6562,8 +6562,8 @@ const Ic = ({
|
|
|
6562
6562
|
develop: n,
|
|
6563
6563
|
panels: i,
|
|
6564
6564
|
orientation: r = "horizontal",
|
|
6565
|
-
lazy:
|
|
6566
|
-
draggerIcon:
|
|
6565
|
+
lazy: o = !1,
|
|
6566
|
+
draggerIcon: a,
|
|
6567
6567
|
collapsibleIcon: c,
|
|
6568
6568
|
resizeAction: l,
|
|
6569
6569
|
resizeEndAction: d,
|
|
@@ -6578,7 +6578,7 @@ const Ic = ({
|
|
|
6578
6578
|
const u = _((k) => k.addCommand), S = y(
|
|
6579
6579
|
() => Fe(i, []),
|
|
6580
6580
|
[i]
|
|
6581
|
-
), A = y(() => Fe(g, {}), [g]), C = y(() => ge(
|
|
6581
|
+
), A = y(() => Fe(g, {}), [g]), C = y(() => ge(a), [a]), w = y(() => {
|
|
6582
6582
|
if (c) {
|
|
6583
6583
|
if (typeof c == "string") {
|
|
6584
6584
|
const k = Fe(c, null);
|
|
@@ -6656,7 +6656,7 @@ const Ic = ({
|
|
|
6656
6656
|
{
|
|
6657
6657
|
...x,
|
|
6658
6658
|
orientation: r,
|
|
6659
|
-
lazy:
|
|
6659
|
+
lazy: o,
|
|
6660
6660
|
onResize: D,
|
|
6661
6661
|
onResizeEnd: T,
|
|
6662
6662
|
style: { height: "100%", width: "100%", ...x.style },
|
|
@@ -6675,8 +6675,8 @@ const Ic = ({
|
|
|
6675
6675
|
// 过滤掉 SplitterPanelConfig 中的属性,避免传递给 div 导致 React 警告
|
|
6676
6676
|
key: i,
|
|
6677
6677
|
defaultSize: r,
|
|
6678
|
-
min:
|
|
6679
|
-
max:
|
|
6678
|
+
min: o,
|
|
6679
|
+
max: a,
|
|
6680
6680
|
collapsible: c,
|
|
6681
6681
|
resizable: l,
|
|
6682
6682
|
sessionId: d,
|
|
@@ -6695,8 +6695,8 @@ const Ic = ({
|
|
|
6695
6695
|
develop: n,
|
|
6696
6696
|
dataSet: i,
|
|
6697
6697
|
dataSetField: r,
|
|
6698
|
-
renderItem:
|
|
6699
|
-
renderEmpty:
|
|
6698
|
+
renderItem: o,
|
|
6699
|
+
renderEmpty: a,
|
|
6700
6700
|
items: c,
|
|
6701
6701
|
maxCount: l,
|
|
6702
6702
|
containerStyle: d,
|
|
@@ -6728,12 +6728,12 @@ const Ic = ({
|
|
|
6728
6728
|
return l ? B.slice(0, l) : B;
|
|
6729
6729
|
}, [E, h, D, O, l]);
|
|
6730
6730
|
if (!E || E.length === 0)
|
|
6731
|
-
return
|
|
6731
|
+
return a ? /* @__PURE__ */ p(fe, { children: a() }) : /* @__PURE__ */ p("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
|
|
6732
6732
|
const M = (B, P) => {
|
|
6733
6733
|
T(B), P && N(P);
|
|
6734
6734
|
};
|
|
6735
6735
|
return /* @__PURE__ */ ct("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
|
|
6736
|
-
/* @__PURE__ */ p("div", { style: { flex: 1 }, children: k.map((B, P) => /* @__PURE__ */ p(Wt.Fragment, { children:
|
|
6736
|
+
/* @__PURE__ */ p("div", { style: { flex: 1 }, children: k.map((B, P) => /* @__PURE__ */ p(Wt.Fragment, { children: o ? o(B, P) : /* @__PURE__ */ p("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(B) }) }, B.id || P)) }),
|
|
6737
6737
|
!h && E.length > 0 && /* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ p(
|
|
6738
6738
|
qn,
|
|
6739
6739
|
{
|
|
@@ -6750,14 +6750,14 @@ const Ic = ({
|
|
|
6750
6750
|
}
|
|
6751
6751
|
) })
|
|
6752
6752
|
] });
|
|
6753
|
-
},
|
|
6753
|
+
}, wa = "@keyframes and-icon-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}", Da = ".and-icon-svg-root svg,.and-icon-svg-root svg path{fill:currentColor}.and-icon-svg-root svg{color:inherit}", xs = ({
|
|
6754
6754
|
id: e,
|
|
6755
6755
|
sessionId: t,
|
|
6756
6756
|
develop: n,
|
|
6757
6757
|
name: i,
|
|
6758
6758
|
svg: r,
|
|
6759
|
-
size:
|
|
6760
|
-
color:
|
|
6759
|
+
size: o = 16,
|
|
6760
|
+
color: a,
|
|
6761
6761
|
spin: c = !1,
|
|
6762
6762
|
rotate: l = 0,
|
|
6763
6763
|
twoToneColor: d,
|
|
@@ -6766,8 +6766,8 @@ const Ic = ({
|
|
|
6766
6766
|
onClick: v
|
|
6767
6767
|
}) => {
|
|
6768
6768
|
const g = typeof r == "string" ? r.trim() : "", f = {
|
|
6769
|
-
fontSize:
|
|
6770
|
-
color:
|
|
6769
|
+
fontSize: o,
|
|
6770
|
+
color: a,
|
|
6771
6771
|
cursor: v ? "pointer" : void 0,
|
|
6772
6772
|
...h,
|
|
6773
6773
|
...b
|
|
@@ -6777,14 +6777,14 @@ const Ic = ({
|
|
|
6777
6777
|
display: "inline-flex",
|
|
6778
6778
|
alignItems: "center",
|
|
6779
6779
|
justifyContent: "center",
|
|
6780
|
-
width:
|
|
6781
|
-
height:
|
|
6780
|
+
width: o,
|
|
6781
|
+
height: o,
|
|
6782
6782
|
transform: l ? `rotate(${l}deg)` : void 0,
|
|
6783
6783
|
...f
|
|
6784
6784
|
};
|
|
6785
6785
|
return /* @__PURE__ */ ct(fe, { children: [
|
|
6786
|
-
/* @__PURE__ */ p("style", { children:
|
|
6787
|
-
c && /* @__PURE__ */ p("style", { children:
|
|
6786
|
+
/* @__PURE__ */ p("style", { children: Da }),
|
|
6787
|
+
c && /* @__PURE__ */ p("style", { children: wa }),
|
|
6788
6788
|
/* @__PURE__ */ p(
|
|
6789
6789
|
"span",
|
|
6790
6790
|
{
|
|
@@ -6821,8 +6821,8 @@ const Ic = ({
|
|
|
6821
6821
|
develop: n,
|
|
6822
6822
|
dataSet: i,
|
|
6823
6823
|
dataSetField: r,
|
|
6824
|
-
products:
|
|
6825
|
-
columns:
|
|
6824
|
+
products: o,
|
|
6825
|
+
columns: a = 4,
|
|
6826
6826
|
clickAction: c,
|
|
6827
6827
|
style: l
|
|
6828
6828
|
}) => {
|
|
@@ -6835,10 +6835,10 @@ const Ic = ({
|
|
|
6835
6835
|
return Array.isArray(s) ? s : [];
|
|
6836
6836
|
}
|
|
6837
6837
|
return [];
|
|
6838
|
-
}, [h, r, b]), g = v.length > 0 ? v :
|
|
6838
|
+
}, [h, r, b]), g = v.length > 0 ? v : o || [], f = (s) => {
|
|
6839
6839
|
c && t && d(t, I(c, s));
|
|
6840
6840
|
};
|
|
6841
|
-
return /* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns: `repeat(${
|
|
6841
|
+
return /* @__PURE__ */ p("div", { style: { display: "grid", gridTemplateColumns: `repeat(${a}, 1fr)`, gap: 16, ...l }, children: g.map((s) => /* @__PURE__ */ p(
|
|
6842
6842
|
Ze,
|
|
6843
6843
|
{
|
|
6844
6844
|
hoverable: !0,
|
|
@@ -6888,7 +6888,7 @@ const Ic = ({
|
|
|
6888
6888
|
...r
|
|
6889
6889
|
},
|
|
6890
6890
|
children: [
|
|
6891
|
-
t || /* @__PURE__ */ p(
|
|
6891
|
+
t || /* @__PURE__ */ p(oi, { style: { fontSize: 28, marginBottom: 8, color: "#bfbfbf" } }),
|
|
6892
6892
|
n && /* @__PURE__ */ p("div", { style: { fontWeight: 500, fontSize: 13, marginBottom: 4 }, children: n }),
|
|
6893
6893
|
i && /* @__PURE__ */ p("div", { style: { fontSize: 12, opacity: 0.7 }, children: i })
|
|
6894
6894
|
]
|
|
@@ -6899,8 +6899,8 @@ const Ic = ({
|
|
|
6899
6899
|
storePropsKey: n,
|
|
6900
6900
|
sessionId: i,
|
|
6901
6901
|
title: r,
|
|
6902
|
-
develop:
|
|
6903
|
-
style:
|
|
6902
|
+
develop: o = !1,
|
|
6903
|
+
style: a,
|
|
6904
6904
|
id: c,
|
|
6905
6905
|
componentResolver: l,
|
|
6906
6906
|
placeholder: d,
|
|
@@ -6949,7 +6949,7 @@ const Ic = ({
|
|
|
6949
6949
|
...t,
|
|
6950
6950
|
sessionId: i
|
|
6951
6951
|
}), [s.props, t, i, h]), A = d || "请配置组件";
|
|
6952
|
-
if (
|
|
6952
|
+
if (o) {
|
|
6953
6953
|
const N = b === "row";
|
|
6954
6954
|
return /* @__PURE__ */ ct(
|
|
6955
6955
|
"div",
|
|
@@ -6987,12 +6987,12 @@ const Ic = ({
|
|
|
6987
6987
|
id: c,
|
|
6988
6988
|
title: A,
|
|
6989
6989
|
description: "动态容器未配置组件解析器",
|
|
6990
|
-
style:
|
|
6990
|
+
style: a
|
|
6991
6991
|
}
|
|
6992
6992
|
);
|
|
6993
6993
|
const D = u ? w(u) : null;
|
|
6994
|
-
return D ? /* @__PURE__ */ p(Xr, { fallback: /* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ p(Pn, {}) }), children: /* @__PURE__ */ p("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...
|
|
6995
|
-
|
|
6994
|
+
return D ? /* @__PURE__ */ p(Xr, { fallback: /* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ p(Pn, {}) }), children: /* @__PURE__ */ p("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...a }, children: m && g !== null ? /* @__PURE__ */ p(
|
|
6995
|
+
ae.Provider,
|
|
6996
6996
|
{
|
|
6997
6997
|
value: { dataSet: m, index: g, sessionId: i },
|
|
6998
6998
|
children: /* @__PURE__ */ p(D, { ...S })
|
|
@@ -7003,7 +7003,7 @@ const Ic = ({
|
|
|
7003
7003
|
id: c,
|
|
7004
7004
|
title: A,
|
|
7005
7005
|
description: u ? `组件 "${u}" 未找到` : void 0,
|
|
7006
|
-
style:
|
|
7006
|
+
style: a
|
|
7007
7007
|
}
|
|
7008
7008
|
);
|
|
7009
7009
|
}, Ts = ({
|
|
@@ -7012,8 +7012,8 @@ const Ic = ({
|
|
|
7012
7012
|
height: n,
|
|
7013
7013
|
rotate: i = -22,
|
|
7014
7014
|
zIndex: r = 9,
|
|
7015
|
-
image:
|
|
7016
|
-
gap:
|
|
7015
|
+
image: o,
|
|
7016
|
+
gap: a = [100, 100],
|
|
7017
7017
|
offset: c,
|
|
7018
7018
|
inherit: l = !0,
|
|
7019
7019
|
font: d,
|
|
@@ -7037,8 +7037,8 @@ const Ic = ({
|
|
|
7037
7037
|
height: n,
|
|
7038
7038
|
rotate: i,
|
|
7039
7039
|
zIndex: r,
|
|
7040
|
-
image:
|
|
7041
|
-
gap:
|
|
7040
|
+
image: o,
|
|
7041
|
+
gap: a,
|
|
7042
7042
|
offset: c,
|
|
7043
7043
|
inherit: l,
|
|
7044
7044
|
font: f,
|
|
@@ -7075,17 +7075,17 @@ let un = !1;
|
|
|
7075
7075
|
function Ns(e) {
|
|
7076
7076
|
typeof window > "u" || (ve.GlobalWorkerOptions.workerSrc = e, un = !0);
|
|
7077
7077
|
}
|
|
7078
|
-
function
|
|
7078
|
+
function xa(e) {
|
|
7079
7079
|
typeof window > "u" || un && ve.GlobalWorkerOptions.workerSrc || (ve.GlobalWorkerOptions.workerSrc = e ?? `https://unpkg.com/pdfjs-dist@${ve.version}/build/pdf.worker.min.mjs`, un = !0);
|
|
7080
7080
|
}
|
|
7081
|
-
const
|
|
7081
|
+
const Aa = 0.5, Ca = 3, Rn = 0.1, ks = ({
|
|
7082
7082
|
id: e,
|
|
7083
7083
|
sessionId: t,
|
|
7084
7084
|
develop: n,
|
|
7085
7085
|
dataSet: i,
|
|
7086
7086
|
dataSetField: r,
|
|
7087
|
-
filePath:
|
|
7088
|
-
initialPage:
|
|
7087
|
+
filePath: o,
|
|
7088
|
+
initialPage: a = 1,
|
|
7089
7089
|
metaPathPrefix: c = "",
|
|
7090
7090
|
loadErrorMessage: l,
|
|
7091
7091
|
nonPdfBackgroundColor: d = "#ECECEC",
|
|
@@ -7095,7 +7095,7 @@ const Ao = 0.5, Co = 3, Rn = 0.1, ks = ({
|
|
|
7095
7095
|
style: g
|
|
7096
7096
|
}) => {
|
|
7097
7097
|
At(() => {
|
|
7098
|
-
|
|
7098
|
+
xa();
|
|
7099
7099
|
}, []);
|
|
7100
7100
|
const f = _((J) => J.setDataSet), s = y(
|
|
7101
7101
|
() => it(t, i),
|
|
@@ -7116,8 +7116,8 @@ const Ao = 0.5, Co = 3, Rn = 0.1, ks = ({
|
|
|
7116
7116
|
const H = u.filePath;
|
|
7117
7117
|
H != null && H !== "" && (J = String(H));
|
|
7118
7118
|
}
|
|
7119
|
-
return J === void 0 && (J =
|
|
7120
|
-
}, [m, u,
|
|
7119
|
+
return J === void 0 && (J = o), J;
|
|
7120
|
+
}, [m, u, o]), A = y(() => {
|
|
7121
7121
|
if (u && typeof u == "object") {
|
|
7122
7122
|
const J = u.nonPdfBackgroundColor;
|
|
7123
7123
|
if (typeof J == "string" && J.trim())
|
|
@@ -7125,10 +7125,10 @@ const Ao = 0.5, Co = 3, Rn = 0.1, ks = ({
|
|
|
7125
7125
|
}
|
|
7126
7126
|
return d;
|
|
7127
7127
|
}, [u, d]), [C, w] = mt(0), [D, T] = mt(
|
|
7128
|
-
() => Math.max(1,
|
|
7128
|
+
() => Math.max(1, a || 1)
|
|
7129
7129
|
), O = _t(D);
|
|
7130
7130
|
O.current = D;
|
|
7131
|
-
const [N, x] = mt(null), [E, k] = mt(!!S), [M, B] = mt("all"), [P, U] = mt("width"), [$, z] = mt(1), K = _t(null), L = _t(null), R = _t({}), Y = _t(!1), X = _t(null), [q, V] = mt(600), [nt,
|
|
7131
|
+
const [N, x] = mt(null), [E, k] = mt(!!S), [M, B] = mt("all"), [P, U] = mt("width"), [$, z] = mt(1), K = _t(null), L = _t(null), R = _t({}), Y = _t(!1), X = _t(null), [q, V] = mt(600), [nt, ot] = mt(800), rt = _t(0), vt = y(
|
|
7132
7132
|
() => ({
|
|
7133
7133
|
cMapUrl: `https://unpkg.com/pdfjs-dist@${ve.version}/cmaps/`,
|
|
7134
7134
|
cMapPacked: !0
|
|
@@ -7143,16 +7143,16 @@ const Ao = 0.5, Co = 3, Rn = 0.1, ks = ({
|
|
|
7143
7143
|
if (!J) return;
|
|
7144
7144
|
const H = new ResizeObserver(() => {
|
|
7145
7145
|
const St = J.clientWidth, kt = J.clientHeight;
|
|
7146
|
-
St > 0 && V(St), kt > 0 &&
|
|
7146
|
+
St > 0 && V(St), kt > 0 && ot(kt);
|
|
7147
7147
|
});
|
|
7148
7148
|
H.observe(J);
|
|
7149
7149
|
const ft = J.clientWidth, pt = J.clientHeight;
|
|
7150
|
-
return ft > 0 && V(ft), pt > 0 &&
|
|
7150
|
+
return ft > 0 && V(ft), pt > 0 && ot(pt), () => H.disconnect();
|
|
7151
7151
|
}, [S]);
|
|
7152
7152
|
const tt = y(() => Math.max(240, q - 16), [q]), lt = y(
|
|
7153
7153
|
() => Math.max(320, nt - 16),
|
|
7154
7154
|
[nt]
|
|
7155
|
-
),
|
|
7155
|
+
), at = y(
|
|
7156
7156
|
() => Math.max(120, tt * $),
|
|
7157
7157
|
[tt, $]
|
|
7158
7158
|
), Rt = y(
|
|
@@ -7181,9 +7181,9 @@ const Ao = 0.5, Co = 3, Rn = 0.1, ks = ({
|
|
|
7181
7181
|
const J = yt;
|
|
7182
7182
|
typeof J != "number" || !Number.isFinite(J) || (G(J, "auto"), s && bt && f(s, `${bt}.targetPage`, void 0));
|
|
7183
7183
|
}, [yt, G, s, bt, f]), At(() => {
|
|
7184
|
-
const J = Math.max(1,
|
|
7184
|
+
const J = Math.max(1, a ?? 1);
|
|
7185
7185
|
T(J);
|
|
7186
|
-
}, [
|
|
7186
|
+
}, [a]);
|
|
7187
7187
|
const et = j(
|
|
7188
7188
|
({ numPages: J }) => {
|
|
7189
7189
|
x(null), k(!1);
|
|
@@ -7235,7 +7235,7 @@ const Ao = 0.5, Co = 3, Rn = 0.1, ks = ({
|
|
|
7235
7235
|
const st = j((J) => {
|
|
7236
7236
|
z((H) => {
|
|
7237
7237
|
const ft = Number((H + J).toFixed(2));
|
|
7238
|
-
return Math.max(
|
|
7238
|
+
return Math.max(Aa, Math.min(Ca, ft));
|
|
7239
7239
|
});
|
|
7240
7240
|
}, []), dt = j(() => {
|
|
7241
7241
|
if (!S) return;
|
|
@@ -7401,7 +7401,7 @@ const Ao = 0.5, Co = 3, Rn = 0.1, ks = ({
|
|
|
7401
7401
|
li,
|
|
7402
7402
|
{
|
|
7403
7403
|
pageNumber: J,
|
|
7404
|
-
width: P === "width" ?
|
|
7404
|
+
width: P === "width" ? at : void 0,
|
|
7405
7405
|
height: P === "height" ? Rt : void 0,
|
|
7406
7406
|
renderTextLayer: !1,
|
|
7407
7407
|
renderAnnotationLayer: !1
|
|
@@ -7428,7 +7428,7 @@ const Ao = 0.5, Co = 3, Rn = 0.1, ks = ({
|
|
|
7428
7428
|
Hr,
|
|
7429
7429
|
{
|
|
7430
7430
|
image: /* @__PURE__ */ p(
|
|
7431
|
-
|
|
7431
|
+
ai,
|
|
7432
7432
|
{
|
|
7433
7433
|
style: {
|
|
7434
7434
|
fontSize: 72,
|
|
@@ -7445,10 +7445,10 @@ const Ao = 0.5, Co = 3, Rn = 0.1, ks = ({
|
|
|
7445
7445
|
fontSize: 14,
|
|
7446
7446
|
color: "rgba(0, 0, 0, 0.88)"
|
|
7447
7447
|
},
|
|
7448
|
-
children: "
|
|
7448
|
+
children: "暂无预览"
|
|
7449
7449
|
}
|
|
7450
7450
|
),
|
|
7451
|
-
/* @__PURE__ */ p("div", { style: { fontSize: 12, color: "rgba(0, 0, 0, 0.45)" }, children: "
|
|
7451
|
+
/* @__PURE__ */ p("div", { style: { fontSize: 12, color: "rgba(0, 0, 0, 0.45)" }, children: "请传入文件路径" })
|
|
7452
7452
|
] })
|
|
7453
7453
|
}
|
|
7454
7454
|
)
|
|
@@ -7460,8 +7460,8 @@ const Ao = 0.5, Co = 3, Rn = 0.1, ks = ({
|
|
|
7460
7460
|
);
|
|
7461
7461
|
};
|
|
7462
7462
|
function Os(e, t, n, i) {
|
|
7463
|
-
const { getProps: r, setProps:
|
|
7464
|
-
|
|
7463
|
+
const { getProps: r, setProps: o } = _.getState(), a = r(e, t), c = a && typeof a == "object" && !Array.isArray(a) ? a : {};
|
|
7464
|
+
o(e, t, {
|
|
7465
7465
|
...c,
|
|
7466
7466
|
pdfCommand: n,
|
|
7467
7467
|
pdfCommandArg: i,
|
|
@@ -7480,11 +7480,11 @@ function Nt(e) {
|
|
|
7480
7480
|
return e;
|
|
7481
7481
|
}
|
|
7482
7482
|
}
|
|
7483
|
-
function
|
|
7483
|
+
function Ta(e, t) {
|
|
7484
7484
|
return e == null || e === "" ? t : e === !0 || e === "true" ? !0 : e === !1 || e === "false" ? !1 : t;
|
|
7485
7485
|
}
|
|
7486
7486
|
function te(e, t) {
|
|
7487
|
-
const { chartType: n, defaultHeight: i = 300, defaultData: r = [] } = t,
|
|
7487
|
+
const { chartType: n, defaultHeight: i = 300, defaultData: r = [] } = t, o = (a) => {
|
|
7488
7488
|
const {
|
|
7489
7489
|
// 基础组件 props(不传给图表)
|
|
7490
7490
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -7532,7 +7532,7 @@ function te(e, t) {
|
|
|
7532
7532
|
events: $,
|
|
7533
7533
|
// 其余配置直接透传
|
|
7534
7534
|
...z
|
|
7535
|
-
} =
|
|
7535
|
+
} = a, K = _t(null), L = _((G) => G.getDataSet), R = _((G) => G.addCommand), Y = y(() => {
|
|
7536
7536
|
if (v && g) {
|
|
7537
7537
|
const W = L(v, g);
|
|
7538
7538
|
if (W !== void 0) return W;
|
|
@@ -7558,7 +7558,7 @@ function te(e, t) {
|
|
|
7558
7558
|
data: Y,
|
|
7559
7559
|
// 优先使用 common 中的配置,没配置则使用默认值
|
|
7560
7560
|
height: q.height ?? i,
|
|
7561
|
-
autoFit:
|
|
7561
|
+
autoFit: Ta(q.autoFit, !0),
|
|
7562
7562
|
// 合并其他通用配置 (margin, padding, insert, etc.)
|
|
7563
7563
|
...q,
|
|
7564
7564
|
// 设计器模式禁用动画
|
|
@@ -7567,8 +7567,8 @@ function te(e, t) {
|
|
|
7567
7567
|
...z
|
|
7568
7568
|
}, nt = Nt(C);
|
|
7569
7569
|
nt !== void 0 && (V.title = nt);
|
|
7570
|
-
const
|
|
7571
|
-
|
|
7570
|
+
const ot = Nt(w);
|
|
7571
|
+
ot !== void 0 && (V.legend = ot);
|
|
7572
7572
|
const rt = Nt(D);
|
|
7573
7573
|
rt !== void 0 && (V.label = rt);
|
|
7574
7574
|
const vt = Nt(T);
|
|
@@ -7581,8 +7581,8 @@ function te(e, t) {
|
|
|
7581
7581
|
tt !== void 0 && (V.annotations = tt);
|
|
7582
7582
|
const lt = Nt(k);
|
|
7583
7583
|
lt !== void 0 && (V.axis = lt);
|
|
7584
|
-
const
|
|
7585
|
-
|
|
7584
|
+
const at = Nt(M);
|
|
7585
|
+
at !== void 0 && (V.scrollbar = at);
|
|
7586
7586
|
const Rt = Nt(B);
|
|
7587
7587
|
Rt !== void 0 && (V.slider = Rt);
|
|
7588
7588
|
const Mt = Nt(P);
|
|
@@ -7590,93 +7590,93 @@ function te(e, t) {
|
|
|
7590
7590
|
const Bt = Nt(U);
|
|
7591
7591
|
return Bt !== void 0 && (V.state = Bt), /* @__PURE__ */ p(e, { ...V });
|
|
7592
7592
|
};
|
|
7593
|
-
return
|
|
7593
|
+
return o.displayName = `withBaseChart(${n})`, o;
|
|
7594
7594
|
}
|
|
7595
|
-
const
|
|
7595
|
+
const Na = [
|
|
7596
7596
|
{ year: "2020", value: 3 },
|
|
7597
7597
|
{ year: "2021", value: 4 },
|
|
7598
7598
|
{ year: "2022", value: 3.5 },
|
|
7599
7599
|
{ year: "2023", value: 5 },
|
|
7600
7600
|
{ year: "2024", value: 4.9 },
|
|
7601
7601
|
{ year: "2025", value: 6 }
|
|
7602
|
-
],
|
|
7602
|
+
], ka = te(ui, {
|
|
7603
7603
|
chartType: "AndVLine",
|
|
7604
7604
|
defaultHeight: 300,
|
|
7605
|
-
defaultData:
|
|
7605
|
+
defaultData: Na
|
|
7606
7606
|
}), _s = (e) => {
|
|
7607
7607
|
const {
|
|
7608
7608
|
xField: t = "year",
|
|
7609
7609
|
yField: n = "value",
|
|
7610
7610
|
seriesField: i,
|
|
7611
7611
|
smooth: r = !1,
|
|
7612
|
-
connectNulls:
|
|
7613
|
-
lineStyle:
|
|
7612
|
+
connectNulls: o = !1,
|
|
7613
|
+
lineStyle: a,
|
|
7614
7614
|
...c
|
|
7615
7615
|
} = e;
|
|
7616
7616
|
return /* @__PURE__ */ p(
|
|
7617
|
-
|
|
7617
|
+
ka,
|
|
7618
7618
|
{
|
|
7619
7619
|
...c,
|
|
7620
7620
|
xField: t,
|
|
7621
7621
|
yField: n,
|
|
7622
7622
|
seriesField: i,
|
|
7623
7623
|
smooth: r,
|
|
7624
|
-
connectNulls:
|
|
7625
|
-
lineStyle:
|
|
7624
|
+
connectNulls: o,
|
|
7625
|
+
lineStyle: a
|
|
7626
7626
|
}
|
|
7627
7627
|
);
|
|
7628
|
-
},
|
|
7628
|
+
}, Oa = [
|
|
7629
7629
|
{ category: "一月", value: 38 },
|
|
7630
7630
|
{ category: "二月", value: 52 },
|
|
7631
7631
|
{ category: "三月", value: 61 },
|
|
7632
7632
|
{ category: "四月", value: 45 },
|
|
7633
7633
|
{ category: "五月", value: 48 },
|
|
7634
7634
|
{ category: "六月", value: 58 }
|
|
7635
|
-
],
|
|
7635
|
+
], _a = te(fi, {
|
|
7636
7636
|
chartType: "AndVColumn",
|
|
7637
7637
|
defaultHeight: 300,
|
|
7638
|
-
defaultData:
|
|
7638
|
+
defaultData: Oa
|
|
7639
7639
|
}), Es = (e) => {
|
|
7640
7640
|
const {
|
|
7641
7641
|
xField: t = "category",
|
|
7642
7642
|
yField: n = "value",
|
|
7643
7643
|
seriesField: i,
|
|
7644
7644
|
isGroup: r = !1,
|
|
7645
|
-
isStack:
|
|
7646
|
-
columnWidth:
|
|
7645
|
+
isStack: o = !1,
|
|
7646
|
+
columnWidth: a,
|
|
7647
7647
|
...c
|
|
7648
7648
|
} = e, l = {
|
|
7649
7649
|
...c,
|
|
7650
7650
|
xField: t,
|
|
7651
7651
|
yField: n
|
|
7652
7652
|
};
|
|
7653
|
-
return i && (l.seriesField = i), r && (l.isGroup = r),
|
|
7654
|
-
},
|
|
7653
|
+
return i && (l.seriesField = i), r && (l.isGroup = r), o && (l.isStack = o), a && (l.columnWidth = a), /* @__PURE__ */ p(_a, { ...l });
|
|
7654
|
+
}, Ea = [
|
|
7655
7655
|
{ type: "分类一", value: 27 },
|
|
7656
7656
|
{ type: "分类二", value: 25 },
|
|
7657
7657
|
{ type: "分类三", value: 18 },
|
|
7658
7658
|
{ type: "分类四", value: 15 },
|
|
7659
7659
|
{ type: "分类五", value: 10 },
|
|
7660
7660
|
{ type: "其他", value: 5 }
|
|
7661
|
-
],
|
|
7661
|
+
], Ma = te(di, {
|
|
7662
7662
|
chartType: "AndVPie",
|
|
7663
7663
|
defaultHeight: 300,
|
|
7664
|
-
defaultData:
|
|
7664
|
+
defaultData: Ea
|
|
7665
7665
|
}), Ms = (e) => {
|
|
7666
7666
|
const {
|
|
7667
7667
|
angleField: t = "value",
|
|
7668
7668
|
colorField: n = "type",
|
|
7669
7669
|
radius: i = 0.8,
|
|
7670
7670
|
innerRadius: r,
|
|
7671
|
-
...
|
|
7672
|
-
} = e,
|
|
7673
|
-
...
|
|
7671
|
+
...o
|
|
7672
|
+
} = e, a = {
|
|
7673
|
+
...o,
|
|
7674
7674
|
angleField: t,
|
|
7675
7675
|
colorField: n,
|
|
7676
7676
|
radius: i
|
|
7677
7677
|
};
|
|
7678
|
-
return r !== void 0 && r > 0 && (
|
|
7679
|
-
}, $
|
|
7678
|
+
return r !== void 0 && r > 0 && (a.innerRadius = r), /* @__PURE__ */ p(Ma, { ...a });
|
|
7679
|
+
}, $a = te(mi, {
|
|
7680
7680
|
chartType: "AndVArea",
|
|
7681
7681
|
defaultHeight: 300,
|
|
7682
7682
|
defaultData: [
|
|
@@ -7697,8 +7697,8 @@ const No = [
|
|
|
7697
7697
|
yField: n,
|
|
7698
7698
|
seriesField: i,
|
|
7699
7699
|
colorField: r,
|
|
7700
|
-
shapeField:
|
|
7701
|
-
sizeField:
|
|
7700
|
+
shapeField: o,
|
|
7701
|
+
sizeField: a,
|
|
7702
7702
|
// JSON 配置
|
|
7703
7703
|
line: c,
|
|
7704
7704
|
point: l,
|
|
@@ -7711,12 +7711,12 @@ const No = [
|
|
|
7711
7711
|
} = e, f = {
|
|
7712
7712
|
...g
|
|
7713
7713
|
};
|
|
7714
|
-
t && (f.xField = t), n && (f.yField = n), i && (f.seriesField = i), r && (f.colorField = r),
|
|
7714
|
+
t && (f.xField = t), n && (f.yField = n), i && (f.seriesField = i), r && (f.colorField = r), o && (f.shapeField = o), a && (f.sizeField = a), d !== void 0 && (f.stack = d === !0 || d === "true"), b !== void 0 && (f.percent = b === !0 || b === "true"), h !== void 0 && (f.symmetry = h === !0 || h === "true"), v !== void 0 && (f.diff = v === !0 || v === "true");
|
|
7715
7715
|
const s = Nt(c);
|
|
7716
7716
|
s !== void 0 && (f.line = s);
|
|
7717
7717
|
const m = Nt(l);
|
|
7718
|
-
return m !== void 0 && (f.point = m), /* @__PURE__ */ p($
|
|
7719
|
-
},
|
|
7718
|
+
return m !== void 0 && (f.point = m), /* @__PURE__ */ p($a, { ...f });
|
|
7719
|
+
}, Ra = te(hi, {
|
|
7720
7720
|
chartType: "AndVDualAxes",
|
|
7721
7721
|
defaultHeight: 300,
|
|
7722
7722
|
defaultData: [
|
|
@@ -7738,17 +7738,17 @@ const No = [
|
|
|
7738
7738
|
seriesField: i,
|
|
7739
7739
|
colorField: r,
|
|
7740
7740
|
// JSON 配置
|
|
7741
|
-
children:
|
|
7742
|
-
...
|
|
7741
|
+
children: o,
|
|
7742
|
+
...a
|
|
7743
7743
|
} = e, c = {
|
|
7744
|
-
...
|
|
7744
|
+
...a
|
|
7745
7745
|
};
|
|
7746
|
-
console.log("[AndVDualAxes] props:", { xField: t, yField: n, children:
|
|
7746
|
+
console.log("[AndVDualAxes] props:", { xField: t, yField: n, children: o }), t && (c.xField = t);
|
|
7747
7747
|
const l = Nt(n);
|
|
7748
7748
|
l ? c.yField = l : n && (c.yField = n), i && (c.seriesField = i), r && (c.colorField = r);
|
|
7749
|
-
const d = Nt(
|
|
7750
|
-
return d !== void 0 && (c.children = d), /* @__PURE__ */ p(
|
|
7751
|
-
},
|
|
7749
|
+
const d = Nt(o);
|
|
7750
|
+
return d !== void 0 && (c.children = d), /* @__PURE__ */ p(Ra, { ...c });
|
|
7751
|
+
}, ja = te(yi, {
|
|
7752
7752
|
chartType: "AndVGauge",
|
|
7753
7753
|
defaultHeight: 300,
|
|
7754
7754
|
defaultData: { percent: 0.7 }
|
|
@@ -7759,8 +7759,8 @@ const No = [
|
|
|
7759
7759
|
} = e, n = {
|
|
7760
7760
|
...t
|
|
7761
7761
|
};
|
|
7762
|
-
return console.log("[AndVGauge] chartProps:", JSON.stringify(n, null, 2)), /* @__PURE__ */ p(
|
|
7763
|
-
},
|
|
7762
|
+
return console.log("[AndVGauge] chartProps:", JSON.stringify(n, null, 2)), /* @__PURE__ */ p(ja, { ...n });
|
|
7763
|
+
}, Ba = te(gi, {
|
|
7764
7764
|
chartType: "AndVLiquid",
|
|
7765
7765
|
defaultHeight: 300,
|
|
7766
7766
|
defaultData: 0.25
|
|
@@ -7772,8 +7772,8 @@ const No = [
|
|
|
7772
7772
|
} = e, i = {
|
|
7773
7773
|
...n
|
|
7774
7774
|
};
|
|
7775
|
-
return t !== void 0 && (i.percent = t), console.log("[AndVLiquid] chartProps:", JSON.stringify(i, null, 2)), /* @__PURE__ */ p(
|
|
7776
|
-
},
|
|
7775
|
+
return t !== void 0 && (i.percent = t), console.log("[AndVLiquid] chartProps:", JSON.stringify(i, null, 2)), /* @__PURE__ */ p(Ba, { ...i });
|
|
7776
|
+
}, Ka = te(pi, {
|
|
7777
7777
|
chartType: "AndVBar",
|
|
7778
7778
|
defaultHeight: 300,
|
|
7779
7779
|
defaultData: [
|
|
@@ -7791,8 +7791,8 @@ const No = [
|
|
|
7791
7791
|
seriesField: i,
|
|
7792
7792
|
colorField: r,
|
|
7793
7793
|
// 布尔配置
|
|
7794
|
-
stack:
|
|
7795
|
-
group:
|
|
7794
|
+
stack: o,
|
|
7795
|
+
group: a,
|
|
7796
7796
|
percent: c,
|
|
7797
7797
|
// JSON 配置
|
|
7798
7798
|
conversionTag: l,
|
|
@@ -7801,22 +7801,22 @@ const No = [
|
|
|
7801
7801
|
} = e, h = {
|
|
7802
7802
|
...b
|
|
7803
7803
|
};
|
|
7804
|
-
t && (h.xField = t), n && (h.yField = n), i && (h.seriesField = i), r && (h.colorField = r),
|
|
7804
|
+
t && (h.xField = t), n && (h.yField = n), i && (h.seriesField = i), r && (h.colorField = r), o !== void 0 && (h.stack = o === !0 || o === "true"), a !== void 0 && (h.group = a === !0 || a === "true"), c !== void 0 && (h.percent = c === !0 || c === "true");
|
|
7805
7805
|
const v = Nt(l);
|
|
7806
7806
|
v !== void 0 && (h.conversionTag = v);
|
|
7807
7807
|
const g = Nt(d);
|
|
7808
|
-
return g !== void 0 && (h.markBackground = g), console.log("[AndVBar] chartProps:", JSON.stringify(h, null, 2)), /* @__PURE__ */ p(
|
|
7808
|
+
return g !== void 0 && (h.markBackground = g), console.log("[AndVBar] chartProps:", JSON.stringify(h, null, 2)), /* @__PURE__ */ p(Ka, { ...h });
|
|
7809
7809
|
};
|
|
7810
7810
|
export {
|
|
7811
7811
|
yc as AVAILABLE_TOKENS,
|
|
7812
7812
|
ls as AndAlert,
|
|
7813
7813
|
Bc as AndAutoComplete,
|
|
7814
7814
|
ts as AndAvatar,
|
|
7815
|
-
|
|
7815
|
+
as as AndBadge,
|
|
7816
7816
|
cs as AndBadgeRibbon,
|
|
7817
7817
|
rs as AndBreadCrumb,
|
|
7818
7818
|
vc as AndButton,
|
|
7819
|
-
|
|
7819
|
+
os as AndCalendar,
|
|
7820
7820
|
ms as AndCard,
|
|
7821
7821
|
Zc as AndCarousel,
|
|
7822
7822
|
$c as AndCascade,
|
|
@@ -7883,16 +7883,16 @@ export {
|
|
|
7883
7883
|
Ms as AndVPie,
|
|
7884
7884
|
Ts as AndWatermark,
|
|
7885
7885
|
gc as COMMON_TOKENS,
|
|
7886
|
-
|
|
7886
|
+
ae as DataSetInheritContext,
|
|
7887
7887
|
ic as cleanupAllMounts,
|
|
7888
7888
|
nc as clearCssCache,
|
|
7889
7889
|
I as createCommand,
|
|
7890
7890
|
fc as createWatchCommands,
|
|
7891
|
-
|
|
7891
|
+
ro as dictValueEquals,
|
|
7892
7892
|
Os as dispatchPdfViewerCommand,
|
|
7893
|
-
|
|
7893
|
+
xa as ensurePdfjsWorker,
|
|
7894
7894
|
ce as findDictOptionByValue,
|
|
7895
|
-
|
|
7895
|
+
ko as formatByType,
|
|
7896
7896
|
cn as getAccessToken,
|
|
7897
7897
|
Jt as getCoreConfig,
|
|
7898
7898
|
it as getDataSetStoreKey,
|
|
@@ -7911,7 +7911,7 @@ export {
|
|
|
7911
7911
|
dc as parseQueryAction,
|
|
7912
7912
|
Xn as processValidationRules,
|
|
7913
7913
|
hc as req,
|
|
7914
|
-
|
|
7914
|
+
oe as request,
|
|
7915
7915
|
pc as resolveTokenColorWithToken,
|
|
7916
7916
|
mc as setCoreConfig,
|
|
7917
7917
|
Si as setNestedValue,
|
|
@@ -7919,7 +7919,7 @@ export {
|
|
|
7919
7919
|
tr as upload,
|
|
7920
7920
|
cc as useAddCommand,
|
|
7921
7921
|
_ as useAndStore,
|
|
7922
|
-
|
|
7922
|
+
io as useApiService,
|
|
7923
7923
|
uc as useCommandsStore,
|
|
7924
7924
|
Ce as useDictOptions,
|
|
7925
7925
|
zt as useFieldValidation,
|
|
@@ -7928,8 +7928,8 @@ export {
|
|
|
7928
7928
|
mn as useRemoteOptions,
|
|
7929
7929
|
Ve as useResolveTokenColor,
|
|
7930
7930
|
Ke as useResolvedDataSet,
|
|
7931
|
-
|
|
7932
|
-
|
|
7931
|
+
oc as useStore,
|
|
7932
|
+
ac as useStoreByName,
|
|
7933
7933
|
wi as useStoreData,
|
|
7934
7934
|
In as validateWithSchema,
|
|
7935
7935
|
Di as watchCommands,
|