@nuwatop/code-canvas-core 0.5.0 → 0.5.2
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/components/AndPdfViewer/index.d.ts.map +1 -1
- package/dist/index.esm.js +867 -887
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as b, jsxs as
|
|
1
|
+
import { jsx as b, jsxs as ct, Fragment as le } from "react/jsx-runtime";
|
|
2
2
|
import { createRoot as mr } from "react-dom/client";
|
|
3
|
-
import { theme as Zt, ConfigProvider as
|
|
3
|
+
import { theme as Zt, ConfigProvider as Rt, Button as Xt, Input as $e, InputNumber as $n, Space as Yt, Select as Rn, Switch as hr, DatePicker as jn, TimePicker as yr, Radio as Ve, Checkbox as se, Rate as gr, Slider as pr, Cascader as vr, TreeSelect as br, message as Ce, Upload as Sr, Image as Ft, AutoComplete as wr, Form as Ee, Transfer as Dr, Segmented as xr, Modal as Bn, Tooltip as Ar, Table as Cr, Flex as Kn, Typography as sn, Tabs as Tr, Tree as Nr, Timeline as kr, Steps as Or, Statistic as Ge, Carousel as _r, Avatar as Er, Tag as Ln, Pagination as zn, Breadcrumb as Mr, Menu as $r, Calendar as Rr, Badge as Vn, Masonry as jr, Alert as qn, Drawer as Br, Result as Kr, Card as Je, Divider as hn, Dropdown as Lr, Row as zr, Col as Vr, QRCode as qr, Splitter as qe, Spin as Wn, Watermark as Wr } from "antd";
|
|
4
4
|
import { StyleProvider as Hr, createCache as Pr } from "@ant-design/cssinjs";
|
|
5
5
|
import Ur from "antd/locale/zh_CN";
|
|
6
6
|
import { create as Yr } from "zustand";
|
|
7
7
|
import { subscribeWithSelector as Gr } from "zustand/middleware";
|
|
8
8
|
import { immer as Jr } from "zustand/middleware/immer";
|
|
9
|
-
import Wt, { useMemo as y, useCallback as j, useEffect as
|
|
9
|
+
import Wt, { useMemo as y, useCallback as j, useEffect as Dt, createContext as Qr, useContext as be, useState as ht, useRef as Mt, useLayoutEffect as Hn, useId as Fr, Suspense as Zr } from "react";
|
|
10
10
|
import * as Jt from "@ant-design/icons";
|
|
11
|
-
import { CloseCircleOutlined as Xr, PlusOutlined as
|
|
11
|
+
import { CloseCircleOutlined as Xr, PlusOutlined as Pn, UploadOutlined as Ir, MenuOutlined as ti, MinusOutlined as ei, LeftOutlined as Un, RightOutlined as Yn, UpOutlined as ni, DownOutlined as Gn, ApiOutlined as ri, InboxOutlined as ii } from "@ant-design/icons";
|
|
12
12
|
import ai from "clsx";
|
|
13
13
|
import Ut from "dayjs";
|
|
14
14
|
import { pdfjs as ye, Document as oi, Page as ci } from "react-pdf";
|
|
15
15
|
import "react-pdf/dist/Page/TextLayer.css";
|
|
16
16
|
import "react-pdf/dist/Page/AnnotationLayer.css";
|
|
17
17
|
import { Line as si, Column as li, Pie as ui, Area as fi, DualAxes as di, Gauge as mi, Liquid as hi, Bar as yi } from "@ant-design/plots";
|
|
18
|
-
const
|
|
19
|
-
let
|
|
18
|
+
const Te = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap();
|
|
19
|
+
let Fe = !1;
|
|
20
20
|
const gi = () => {
|
|
21
|
-
|
|
21
|
+
Fe || (Fe = !0);
|
|
22
22
|
}, pi = (e) => {
|
|
23
|
-
let t =
|
|
24
|
-
return t || (t = Pr(),
|
|
23
|
+
let t = Qe.get(e);
|
|
24
|
+
return t || (t = Pr(), Qe.set(e, t)), t;
|
|
25
25
|
}, tc = (e) => {
|
|
26
|
-
e &&
|
|
26
|
+
e && Qe.delete(e);
|
|
27
27
|
}, ec = async ({
|
|
28
28
|
el: e,
|
|
29
29
|
component: t,
|
|
@@ -34,7 +34,7 @@ const gi = () => {
|
|
|
34
34
|
}) => {
|
|
35
35
|
var C;
|
|
36
36
|
gi();
|
|
37
|
-
const o =
|
|
37
|
+
const o = Te.get(e);
|
|
38
38
|
if (o) {
|
|
39
39
|
if (a)
|
|
40
40
|
Object.keys(e).forEach((w) => {
|
|
@@ -50,12 +50,12 @@ const gi = () => {
|
|
|
50
50
|
} catch (w) {
|
|
51
51
|
console.warn("[mountReactComponent] Unmount failed (benign if DOM was cleared):", w);
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
Te.delete(e);
|
|
54
54
|
}
|
|
55
55
|
const c = mr(e);
|
|
56
|
-
|
|
56
|
+
Te.set(e, c);
|
|
57
57
|
const l = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, v = !r && l && d && d.defaultView !== null, h = v ? l : window.document.head, p = v ? d : window.document, g = pi(p), m = (((C = window.__GLS_COMPS__) == null ? void 0 : C.theme) || i) === "dark" ? Zt.darkAlgorithm : Zt.defaultAlgorithm, u = (w) => /* @__PURE__ */ b(Hr, { cache: g, container: h, hashPriority: "high", children: /* @__PURE__ */ b(
|
|
58
|
-
|
|
58
|
+
Rt,
|
|
59
59
|
{
|
|
60
60
|
locale: Ur,
|
|
61
61
|
theme: {
|
|
@@ -77,7 +77,7 @@ const gi = () => {
|
|
|
77
77
|
root: c,
|
|
78
78
|
unmount: () => {
|
|
79
79
|
try {
|
|
80
|
-
c.unmount(),
|
|
80
|
+
c.unmount(), Te.delete(e);
|
|
81
81
|
} catch (w) {
|
|
82
82
|
console.error("[code-canvas-core] Failed to unmount component:", w);
|
|
83
83
|
}
|
|
@@ -87,7 +87,7 @@ const gi = () => {
|
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
89
|
}, nc = () => {
|
|
90
|
-
console.info("[code-canvas-core] Cleanup called - components will be garbage collected"),
|
|
90
|
+
console.info("[code-canvas-core] Cleanup called - components will be garbage collected"), Fe = !1;
|
|
91
91
|
};
|
|
92
92
|
function Se(e) {
|
|
93
93
|
const t = e.match(/^(.+)\[(\d+)\]$/);
|
|
@@ -99,7 +99,7 @@ function Se(e) {
|
|
|
99
99
|
index: null
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Ne(e) {
|
|
103
103
|
if (!e || typeof e != "string") return [];
|
|
104
104
|
const t = [], n = e.split(".").flatMap((i) => {
|
|
105
105
|
const r = i.match(/^([^\[]+)(\[\d+\])(.*)$/);
|
|
@@ -119,7 +119,7 @@ function ke(e) {
|
|
|
119
119
|
} else i && t.push({ type: "property", key: i });
|
|
120
120
|
return t;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Ze(e, t) {
|
|
123
123
|
if (t.length === 0) return e;
|
|
124
124
|
let n = e;
|
|
125
125
|
for (const i of t) {
|
|
@@ -154,19 +154,19 @@ function ge(e, t) {
|
|
|
154
154
|
if (t)
|
|
155
155
|
return e ? `${e}_${t}_validate` : `${t}_validate`;
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const yn = {
|
|
158
158
|
dataSets: {},
|
|
159
159
|
commandQueues: {},
|
|
160
160
|
propsStore: {},
|
|
161
161
|
validateStore: {}
|
|
162
162
|
};
|
|
163
|
-
function
|
|
163
|
+
function gn(e, t, n, i) {
|
|
164
164
|
const { baseName: r, index: a } = Se(t);
|
|
165
165
|
if (e.dataSets[r] || (e.dataSets[r] = {}), a !== null) {
|
|
166
166
|
const d = e.dataSets[r];
|
|
167
167
|
let v = d.value;
|
|
168
168
|
Array.isArray(v) || (v = []);
|
|
169
|
-
const h = v[a], p = n.length === 0 ? h :
|
|
169
|
+
const h = v[a], p = n.length === 0 ? h : Ze(h ?? {}, n), g = i(p), f = n.length === 0 ? g : vi(h ?? {}, n, g), s = [...v];
|
|
170
170
|
s[a] = f, e.dataSets[r] = { ...d, value: s };
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
@@ -186,17 +186,17 @@ function pn(e, t, n, i) {
|
|
|
186
186
|
const _ = Yr()(
|
|
187
187
|
Gr(
|
|
188
188
|
Jr((e, t) => ({
|
|
189
|
-
...
|
|
189
|
+
...yn,
|
|
190
190
|
// ============ 数据集操作(支持 name[index] 与 field 多级路径;append 默认 true 为合并更新) ============
|
|
191
191
|
setDataSet: (n, i, r, a = !0) => e((o) => {
|
|
192
192
|
if (!n) return;
|
|
193
|
-
const c = i ?
|
|
194
|
-
|
|
193
|
+
const c = i ? Ne(i) : [], l = a && typeof r == "object" && r !== null && !Array.isArray(r);
|
|
194
|
+
gn(o, n, c, (v) => l && v != null && typeof v == "object" && !Array.isArray(v) ? { ...v, ...r } : r);
|
|
195
195
|
}),
|
|
196
196
|
updateDataSet: (n, i, r) => e((a) => {
|
|
197
197
|
if (!n || typeof r != "function") return;
|
|
198
|
-
const o = i ?
|
|
199
|
-
|
|
198
|
+
const o = i ? Ne(i) : [];
|
|
199
|
+
gn(a, n, o, r);
|
|
200
200
|
}),
|
|
201
201
|
getDataSet: (n, i) => {
|
|
202
202
|
if (!n) return;
|
|
@@ -206,10 +206,10 @@ const _ = Yr()(
|
|
|
206
206
|
if (!Array.isArray(l) || l[o] === void 0)
|
|
207
207
|
return;
|
|
208
208
|
const d = l[o];
|
|
209
|
-
return i ?
|
|
209
|
+
return i ? Ze(d, Ne(i)) : d;
|
|
210
210
|
}
|
|
211
211
|
if (c)
|
|
212
|
-
return i ?
|
|
212
|
+
return i ? Ze(c, Ne(i)) : c;
|
|
213
213
|
},
|
|
214
214
|
setDataSetBatch: (n, i) => e((r) => {
|
|
215
215
|
r.dataSets[n] = {
|
|
@@ -262,7 +262,7 @@ const _ = Yr()(
|
|
|
262
262
|
return r ? t().validateStore[r] ?? {} : {};
|
|
263
263
|
},
|
|
264
264
|
// ============ 全局操作 ============
|
|
265
|
-
reset: () => e(
|
|
265
|
+
reset: () => e(yn)
|
|
266
266
|
}))
|
|
267
267
|
)
|
|
268
268
|
);
|
|
@@ -419,10 +419,10 @@ function ne() {
|
|
|
419
419
|
function Di(e, t) {
|
|
420
420
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ve(e, t);
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
return
|
|
422
|
+
function Xe(e) {
|
|
423
|
+
return Xe = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
424
424
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
425
|
-
},
|
|
425
|
+
}, Xe(e);
|
|
426
426
|
}
|
|
427
427
|
function ve(e, t) {
|
|
428
428
|
return ve = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, r) {
|
|
@@ -439,20 +439,20 @@ function xi() {
|
|
|
439
439
|
return !1;
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
return xi() ?
|
|
442
|
+
function Me(e, t, n) {
|
|
443
|
+
return xi() ? Me = Reflect.construct.bind() : Me = function(r, a, o) {
|
|
444
444
|
var c = [null];
|
|
445
445
|
c.push.apply(c, a);
|
|
446
446
|
var l = Function.bind.apply(r, c), d = new l();
|
|
447
447
|
return o && ve(d, o.prototype), d;
|
|
448
|
-
},
|
|
448
|
+
}, Me.apply(null, arguments);
|
|
449
449
|
}
|
|
450
450
|
function Ai(e) {
|
|
451
451
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ie(e) {
|
|
454
454
|
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
455
|
-
return
|
|
455
|
+
return Ie = function(i) {
|
|
456
456
|
if (i === null || !Ai(i)) return i;
|
|
457
457
|
if (typeof i != "function")
|
|
458
458
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -461,7 +461,7 @@ function tn(e) {
|
|
|
461
461
|
t.set(i, r);
|
|
462
462
|
}
|
|
463
463
|
function r() {
|
|
464
|
-
return
|
|
464
|
+
return Me(i, arguments, Xe(this).constructor);
|
|
465
465
|
}
|
|
466
466
|
return r.prototype = Object.create(i.prototype, {
|
|
467
467
|
constructor: {
|
|
@@ -471,16 +471,16 @@ function tn(e) {
|
|
|
471
471
|
configurable: !0
|
|
472
472
|
}
|
|
473
473
|
}), ve(r, i);
|
|
474
|
-
},
|
|
474
|
+
}, Ie(e);
|
|
475
475
|
}
|
|
476
|
-
var Ci = /%[sdj%]/g,
|
|
476
|
+
var Ci = /%[sdj%]/g, Jn = function() {
|
|
477
477
|
};
|
|
478
|
-
typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (
|
|
478
|
+
typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (Jn = function(t, n) {
|
|
479
479
|
typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && n.every(function(i) {
|
|
480
480
|
return typeof i == "string";
|
|
481
481
|
}) && console.warn(t, n);
|
|
482
482
|
});
|
|
483
|
-
function
|
|
483
|
+
function tn(e) {
|
|
484
484
|
if (!e || !e.length) return null;
|
|
485
485
|
var t = {};
|
|
486
486
|
return e.forEach(function(n) {
|
|
@@ -488,7 +488,7 @@ function en(e) {
|
|
|
488
488
|
t[i] = t[i] || [], t[i].push(n);
|
|
489
489
|
}), t;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function zt(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
494
|
var r = 0, a = n.length;
|
|
@@ -523,7 +523,7 @@ function Vt(e) {
|
|
|
523
523
|
function Ti(e) {
|
|
524
524
|
return e === "string" || e === "url" || e === "hex" || e === "email" || e === "date" || e === "pattern";
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Ot(e, t) {
|
|
527
527
|
return !!(e == null || t === "array" && Array.isArray(e) && !e.length || Ti(t) && typeof e == "string" && !e);
|
|
528
528
|
}
|
|
529
529
|
function Ni(e, t, n) {
|
|
@@ -535,7 +535,7 @@ function Ni(e, t, n) {
|
|
|
535
535
|
t(c, o);
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function pn(e, t, n) {
|
|
539
539
|
var i = 0, r = e.length;
|
|
540
540
|
function a(o) {
|
|
541
541
|
if (o && o.length) {
|
|
@@ -553,21 +553,21 @@ function ki(e) {
|
|
|
553
553
|
t.push.apply(t, e[n] || []);
|
|
554
554
|
}), t;
|
|
555
555
|
}
|
|
556
|
-
var
|
|
556
|
+
var vn = /* @__PURE__ */ function(e) {
|
|
557
557
|
Di(t, e);
|
|
558
558
|
function t(n, i) {
|
|
559
559
|
var r;
|
|
560
560
|
return r = e.call(this, "Async Validation Error") || this, r.errors = n, r.fields = i, r;
|
|
561
561
|
}
|
|
562
562
|
return t;
|
|
563
|
-
}(/* @__PURE__ */
|
|
563
|
+
}(/* @__PURE__ */ Ie(Error));
|
|
564
564
|
function Oi(e, t, n, i, r) {
|
|
565
565
|
if (t.first) {
|
|
566
566
|
var a = new Promise(function(p, g) {
|
|
567
567
|
var f = function(u) {
|
|
568
|
-
return i(u), u.length ? g(new
|
|
568
|
+
return i(u), u.length ? g(new vn(u, tn(u))) : p(r);
|
|
569
569
|
}, s = ki(e);
|
|
570
|
-
|
|
570
|
+
pn(s, n, f);
|
|
571
571
|
});
|
|
572
572
|
return a.catch(function(p) {
|
|
573
573
|
return p;
|
|
@@ -576,11 +576,11 @@ function Oi(e, t, n, i, r) {
|
|
|
576
576
|
var o = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], c = Object.keys(e), l = c.length, d = 0, v = [], h = new Promise(function(p, g) {
|
|
577
577
|
var f = function(m) {
|
|
578
578
|
if (v.push.apply(v, m), d++, d === l)
|
|
579
|
-
return i(v), v.length ? g(new
|
|
579
|
+
return i(v), v.length ? g(new vn(v, tn(v))) : p(r);
|
|
580
580
|
};
|
|
581
581
|
c.length || (i(v), p(r)), c.forEach(function(s) {
|
|
582
582
|
var m = e[s];
|
|
583
|
-
o.indexOf(s) !== -1 ?
|
|
583
|
+
o.indexOf(s) !== -1 ? pn(m, n, f) : Ni(m, n, f);
|
|
584
584
|
});
|
|
585
585
|
});
|
|
586
586
|
return h.catch(function(p) {
|
|
@@ -598,7 +598,7 @@ function Ei(e, t) {
|
|
|
598
598
|
}
|
|
599
599
|
return n;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function bn(e, t) {
|
|
602
602
|
return function(n) {
|
|
603
603
|
var i;
|
|
604
604
|
return e.fullFields ? i = Ei(t, e.fullFields) : i = t[n.field || e.fullField], _i(n) ? (n.field = n.field || e.fullField, n.fieldValue = i, n) : {
|
|
@@ -608,7 +608,7 @@ function Sn(e, t) {
|
|
|
608
608
|
};
|
|
609
609
|
};
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function Sn(e, t) {
|
|
612
612
|
if (t) {
|
|
613
613
|
for (var n in t)
|
|
614
614
|
if (t.hasOwnProperty(n)) {
|
|
@@ -618,13 +618,13 @@ function wn(e, t) {
|
|
|
618
618
|
}
|
|
619
619
|
return e;
|
|
620
620
|
}
|
|
621
|
-
var
|
|
622
|
-
t.required && (!i.hasOwnProperty(t.field) ||
|
|
621
|
+
var Qn = function(t, n, i, r, a, o) {
|
|
622
|
+
t.required && (!i.hasOwnProperty(t.field) || Ot(n, o || t.type)) && r.push(zt(a.messages.required, t.fullField));
|
|
623
623
|
}, Mi = function(t, n, i, r, a) {
|
|
624
|
-
(/^\s+$/.test(n) || n === "") && r.push(
|
|
625
|
-
},
|
|
626
|
-
if (
|
|
627
|
-
return
|
|
624
|
+
(/^\s+$/.test(n) || n === "") && r.push(zt(a.messages.whitespace, t.fullField));
|
|
625
|
+
}, ke, $i = function() {
|
|
626
|
+
if (ke)
|
|
627
|
+
return ke;
|
|
628
628
|
var e = "[a-fA-F\\d:]", t = function(C) {
|
|
629
629
|
return C && C.includeBoundaries ? "(?:(?<=\\s|^)(?=" + e + ")|(?<=" + e + ")(?=\\s|$))" : "";
|
|
630
630
|
}, n = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", i = "[a-fA-F\\d]{1,4}", r = (`
|
|
@@ -647,8 +647,8 @@ var Fn = function(t, n, i, r, a, o) {
|
|
|
647
647
|
return x && x.exact ? c : new RegExp("" + t(x) + r + t(x), "g");
|
|
648
648
|
};
|
|
649
649
|
var d = "(?:(?:[a-z]+:)?//)", v = "(?:\\S+(?::\\S*)?@)?", h = l.v4().source, p = l.v6().source, g = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", f = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", s = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", m = "(?::\\d{2,5})?", u = '(?:[/?#][^\\s"]*)?', S = "(?:" + d + "|www\\.)" + v + "(?:localhost|" + h + "|" + p + "|" + g + f + s + ")" + m + u;
|
|
650
|
-
return
|
|
651
|
-
},
|
|
650
|
+
return ke = new RegExp("(?:^" + S + "$)", "i"), ke;
|
|
651
|
+
}, wn = {
|
|
652
652
|
// http://emailregex.com/
|
|
653
653
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
654
654
|
// url: new RegExp(
|
|
@@ -688,39 +688,39 @@ var Fn = function(t, n, i, r, a, o) {
|
|
|
688
688
|
return typeof t == "function";
|
|
689
689
|
},
|
|
690
690
|
email: function(t) {
|
|
691
|
-
return typeof t == "string" && t.length <= 320 && !!t.match(
|
|
691
|
+
return typeof t == "string" && t.length <= 320 && !!t.match(wn.email);
|
|
692
692
|
},
|
|
693
693
|
url: function(t) {
|
|
694
694
|
return typeof t == "string" && t.length <= 2048 && !!t.match($i());
|
|
695
695
|
},
|
|
696
696
|
hex: function(t) {
|
|
697
|
-
return typeof t == "string" && !!t.match(
|
|
697
|
+
return typeof t == "string" && !!t.match(wn.hex);
|
|
698
698
|
}
|
|
699
699
|
}, Ri = function(t, n, i, r, a) {
|
|
700
700
|
if (t.required && n === void 0) {
|
|
701
|
-
|
|
701
|
+
Qn(t, n, i, r, a);
|
|
702
702
|
return;
|
|
703
703
|
}
|
|
704
704
|
var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], c = t.type;
|
|
705
|
-
o.indexOf(c) > -1 ? he[c](n) || r.push(
|
|
705
|
+
o.indexOf(c) > -1 ? he[c](n) || r.push(zt(a.messages.types[c], t.fullField, t.type)) : c && typeof n !== t.type && r.push(zt(a.messages.types[c], t.fullField, t.type));
|
|
706
706
|
}, ji = function(t, n, i, r, a) {
|
|
707
707
|
var o = typeof t.len == "number", c = typeof t.min == "number", l = typeof t.max == "number", d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, v = n, h = null, p = typeof n == "number", g = typeof n == "string", f = Array.isArray(n);
|
|
708
708
|
if (p ? h = "number" : g ? h = "string" : f && (h = "array"), !h)
|
|
709
709
|
return !1;
|
|
710
|
-
f && (v = n.length), g && (v = n.replace(d, "_").length), o ? v !== t.len && r.push(
|
|
710
|
+
f && (v = n.length), g && (v = n.replace(d, "_").length), o ? v !== t.len && r.push(zt(a.messages[h].len, t.fullField, t.len)) : c && !l && v < t.min ? r.push(zt(a.messages[h].min, t.fullField, t.min)) : l && !c && v > t.max ? r.push(zt(a.messages[h].max, t.fullField, t.max)) : c && l && (v < t.min || v > t.max) && r.push(zt(a.messages[h].range, t.fullField, t.min, t.max));
|
|
711
711
|
}, ce = "enum", Bi = function(t, n, i, r, a) {
|
|
712
|
-
t[ce] = Array.isArray(t[ce]) ? t[ce] : [], t[ce].indexOf(n) === -1 && r.push(
|
|
712
|
+
t[ce] = Array.isArray(t[ce]) ? t[ce] : [], t[ce].indexOf(n) === -1 && r.push(zt(a.messages[ce], t.fullField, t[ce].join(", ")));
|
|
713
713
|
}, Ki = function(t, n, i, r, a) {
|
|
714
714
|
if (t.pattern) {
|
|
715
715
|
if (t.pattern instanceof RegExp)
|
|
716
|
-
t.pattern.lastIndex = 0, t.pattern.test(n) || r.push(
|
|
716
|
+
t.pattern.lastIndex = 0, t.pattern.test(n) || r.push(zt(a.messages.pattern.mismatch, t.fullField, n, t.pattern));
|
|
717
717
|
else if (typeof t.pattern == "string") {
|
|
718
718
|
var o = new RegExp(t.pattern);
|
|
719
|
-
o.test(n) || r.push(
|
|
719
|
+
o.test(n) || r.push(zt(a.messages.pattern.mismatch, t.fullField, n, t.pattern));
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
722
|
}, yt = {
|
|
723
|
-
required:
|
|
723
|
+
required: Qn,
|
|
724
724
|
whitespace: Mi,
|
|
725
725
|
type: Ri,
|
|
726
726
|
range: ji,
|
|
@@ -729,15 +729,15 @@ var Fn = function(t, n, i, r, a, o) {
|
|
|
729
729
|
}, Li = function(t, n, i, r, a) {
|
|
730
730
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
731
731
|
if (c) {
|
|
732
|
-
if (
|
|
732
|
+
if (Ot(n, "string") && !t.required)
|
|
733
733
|
return i();
|
|
734
|
-
yt.required(t, n, r, o, a, "string"),
|
|
734
|
+
yt.required(t, n, r, o, a, "string"), Ot(n, "string") || (yt.type(t, n, r, o, a), yt.range(t, n, r, o, a), yt.pattern(t, n, r, o, a), t.whitespace === !0 && yt.whitespace(t, n, r, o, a));
|
|
735
735
|
}
|
|
736
736
|
i(o);
|
|
737
737
|
}, zi = function(t, n, i, r, a) {
|
|
738
738
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
739
739
|
if (c) {
|
|
740
|
-
if (
|
|
740
|
+
if (Ot(n) && !t.required)
|
|
741
741
|
return i();
|
|
742
742
|
yt.required(t, n, r, o, a), n !== void 0 && yt.type(t, n, r, o, a);
|
|
743
743
|
}
|
|
@@ -745,7 +745,7 @@ var Fn = function(t, n, i, r, a, o) {
|
|
|
745
745
|
}, Vi = function(t, n, i, r, a) {
|
|
746
746
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
747
747
|
if (c) {
|
|
748
|
-
if (n === "" && (n = void 0),
|
|
748
|
+
if (n === "" && (n = void 0), Ot(n) && !t.required)
|
|
749
749
|
return i();
|
|
750
750
|
yt.required(t, n, r, o, a), n !== void 0 && (yt.type(t, n, r, o, a), yt.range(t, n, r, o, a));
|
|
751
751
|
}
|
|
@@ -753,7 +753,7 @@ var Fn = function(t, n, i, r, a, o) {
|
|
|
753
753
|
}, qi = function(t, n, i, r, a) {
|
|
754
754
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
755
755
|
if (c) {
|
|
756
|
-
if (
|
|
756
|
+
if (Ot(n) && !t.required)
|
|
757
757
|
return i();
|
|
758
758
|
yt.required(t, n, r, o, a), n !== void 0 && yt.type(t, n, r, o, a);
|
|
759
759
|
}
|
|
@@ -761,15 +761,15 @@ var Fn = function(t, n, i, r, a, o) {
|
|
|
761
761
|
}, Wi = function(t, n, i, r, a) {
|
|
762
762
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
763
763
|
if (c) {
|
|
764
|
-
if (
|
|
764
|
+
if (Ot(n) && !t.required)
|
|
765
765
|
return i();
|
|
766
|
-
yt.required(t, n, r, o, a),
|
|
766
|
+
yt.required(t, n, r, o, a), Ot(n) || yt.type(t, n, r, o, a);
|
|
767
767
|
}
|
|
768
768
|
i(o);
|
|
769
769
|
}, Hi = function(t, n, i, r, a) {
|
|
770
770
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
771
771
|
if (c) {
|
|
772
|
-
if (
|
|
772
|
+
if (Ot(n) && !t.required)
|
|
773
773
|
return i();
|
|
774
774
|
yt.required(t, n, r, o, a), n !== void 0 && (yt.type(t, n, r, o, a), yt.range(t, n, r, o, a));
|
|
775
775
|
}
|
|
@@ -777,7 +777,7 @@ var Fn = function(t, n, i, r, a, o) {
|
|
|
777
777
|
}, Pi = function(t, n, i, r, a) {
|
|
778
778
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
779
779
|
if (c) {
|
|
780
|
-
if (
|
|
780
|
+
if (Ot(n) && !t.required)
|
|
781
781
|
return i();
|
|
782
782
|
yt.required(t, n, r, o, a), n !== void 0 && (yt.type(t, n, r, o, a), yt.range(t, n, r, o, a));
|
|
783
783
|
}
|
|
@@ -793,7 +793,7 @@ var Fn = function(t, n, i, r, a, o) {
|
|
|
793
793
|
}, Yi = function(t, n, i, r, a) {
|
|
794
794
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
795
795
|
if (c) {
|
|
796
|
-
if (
|
|
796
|
+
if (Ot(n) && !t.required)
|
|
797
797
|
return i();
|
|
798
798
|
yt.required(t, n, r, o, a), n !== void 0 && yt.type(t, n, r, o, a);
|
|
799
799
|
}
|
|
@@ -801,7 +801,7 @@ var Fn = function(t, n, i, r, a, o) {
|
|
|
801
801
|
}, Gi = "enum", Ji = function(t, n, i, r, a) {
|
|
802
802
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
803
803
|
if (c) {
|
|
804
|
-
if (
|
|
804
|
+
if (Ot(n) && !t.required)
|
|
805
805
|
return i();
|
|
806
806
|
yt.required(t, n, r, o, a), n !== void 0 && yt[Gi](t, n, r, o, a);
|
|
807
807
|
}
|
|
@@ -809,17 +809,17 @@ var Fn = function(t, n, i, r, a, o) {
|
|
|
809
809
|
}, Qi = function(t, n, i, r, a) {
|
|
810
810
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
811
811
|
if (c) {
|
|
812
|
-
if (
|
|
812
|
+
if (Ot(n, "string") && !t.required)
|
|
813
813
|
return i();
|
|
814
|
-
yt.required(t, n, r, o, a),
|
|
814
|
+
yt.required(t, n, r, o, a), Ot(n, "string") || yt.pattern(t, n, r, o, a);
|
|
815
815
|
}
|
|
816
816
|
i(o);
|
|
817
817
|
}, Fi = function(t, n, i, r, a) {
|
|
818
818
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
819
819
|
if (c) {
|
|
820
|
-
if (
|
|
820
|
+
if (Ot(n, "date") && !t.required)
|
|
821
821
|
return i();
|
|
822
|
-
if (yt.required(t, n, r, o, a), !
|
|
822
|
+
if (yt.required(t, n, r, o, a), !Ot(n, "date")) {
|
|
823
823
|
var l;
|
|
824
824
|
n instanceof Date ? l = n : l = new Date(n), yt.type(t, l, r, o, a), l && yt.range(t, l.getTime(), r, o, a);
|
|
825
825
|
}
|
|
@@ -828,18 +828,18 @@ var Fn = function(t, n, i, r, a, o) {
|
|
|
828
828
|
}, Zi = function(t, n, i, r, a) {
|
|
829
829
|
var o = [], c = Array.isArray(n) ? "array" : typeof n;
|
|
830
830
|
yt.required(t, n, r, o, a, c), i(o);
|
|
831
|
-
},
|
|
831
|
+
}, We = function(t, n, i, r, a) {
|
|
832
832
|
var o = t.type, c = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
833
833
|
if (l) {
|
|
834
|
-
if (
|
|
834
|
+
if (Ot(n, o) && !t.required)
|
|
835
835
|
return i();
|
|
836
|
-
yt.required(t, n, r, c, a, o),
|
|
836
|
+
yt.required(t, n, r, c, a, o), Ot(n, o) || yt.type(t, n, r, c, a);
|
|
837
837
|
}
|
|
838
838
|
i(c);
|
|
839
839
|
}, Xi = function(t, n, i, r, a) {
|
|
840
840
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
841
841
|
if (c) {
|
|
842
|
-
if (
|
|
842
|
+
if (Ot(n) && !t.required)
|
|
843
843
|
return i();
|
|
844
844
|
yt.required(t, n, r, o, a);
|
|
845
845
|
}
|
|
@@ -857,13 +857,13 @@ var Fn = function(t, n, i, r, a, o) {
|
|
|
857
857
|
enum: Ji,
|
|
858
858
|
pattern: Qi,
|
|
859
859
|
date: Fi,
|
|
860
|
-
url:
|
|
861
|
-
hex:
|
|
862
|
-
email:
|
|
860
|
+
url: We,
|
|
861
|
+
hex: We,
|
|
862
|
+
email: We,
|
|
863
863
|
required: Zi,
|
|
864
864
|
any: Xi
|
|
865
865
|
};
|
|
866
|
-
function
|
|
866
|
+
function en() {
|
|
867
867
|
return {
|
|
868
868
|
default: "Validation error on field %s",
|
|
869
869
|
required: "%s is required",
|
|
@@ -916,9 +916,9 @@ function nn() {
|
|
|
916
916
|
}
|
|
917
917
|
};
|
|
918
918
|
}
|
|
919
|
-
var
|
|
919
|
+
var nn = en(), we = /* @__PURE__ */ function() {
|
|
920
920
|
function e(n) {
|
|
921
|
-
this.rules = null, this._messages =
|
|
921
|
+
this.rules = null, this._messages = nn, this.define(n);
|
|
922
922
|
}
|
|
923
923
|
var t = e.prototype;
|
|
924
924
|
return t.define = function(i) {
|
|
@@ -932,7 +932,7 @@ var rn = nn(), we = /* @__PURE__ */ function() {
|
|
|
932
932
|
r.rules[a] = Array.isArray(o) ? o : [o];
|
|
933
933
|
});
|
|
934
934
|
}, t.messages = function(i) {
|
|
935
|
-
return i && (this._messages =
|
|
935
|
+
return i && (this._messages = Sn(en(), i)), this._messages;
|
|
936
936
|
}, t.validate = function(i, r, a) {
|
|
937
937
|
var o = this;
|
|
938
938
|
r === void 0 && (r = {}), a === void 0 && (a = function() {
|
|
@@ -951,11 +951,11 @@ var rn = nn(), we = /* @__PURE__ */ function() {
|
|
|
951
951
|
}
|
|
952
952
|
for (var x = 0; x < s.length; x++)
|
|
953
953
|
S(s[x]);
|
|
954
|
-
m.length ? (u =
|
|
954
|
+
m.length ? (u = tn(m), d(m, u)) : d(null, c);
|
|
955
955
|
}
|
|
956
956
|
if (l.messages) {
|
|
957
957
|
var h = this.messages();
|
|
958
|
-
h ===
|
|
958
|
+
h === nn && (h = en()), Sn(h, l.messages), l.messages = h;
|
|
959
959
|
} else
|
|
960
960
|
l.messages = this.messages();
|
|
961
961
|
var p = {}, g = l.keys || Object.keys(this.rules);
|
|
@@ -987,14 +987,14 @@ var rn = nn(), we = /* @__PURE__ */ function() {
|
|
|
987
987
|
D === void 0 && (D = []);
|
|
988
988
|
var T = Array.isArray(D) ? D : [D];
|
|
989
989
|
!l.suppressWarning && T.length && e.warning("async-validator:", T), T.length && u.message !== void 0 && (T = [].concat(u.message));
|
|
990
|
-
var O = T.map(
|
|
990
|
+
var O = T.map(bn(u, c));
|
|
991
991
|
if (l.first && O.length)
|
|
992
992
|
return f[u.field] = 1, m(O);
|
|
993
993
|
if (!S)
|
|
994
994
|
m(O);
|
|
995
995
|
else {
|
|
996
996
|
if (u.required && !s.value)
|
|
997
|
-
return u.message !== void 0 ? O = [].concat(u.message).map(
|
|
997
|
+
return u.message !== void 0 ? O = [].concat(u.message).map(bn(u, c)) : l.error && (O = [l.error(u, zt(l.messages.required, u.field))]), m(O);
|
|
998
998
|
var N = {};
|
|
999
999
|
u.defaultField && Object.keys(s.value).map(function(k) {
|
|
1000
1000
|
N[k] = u.defaultField;
|
|
@@ -1034,7 +1034,7 @@ var rn = nn(), we = /* @__PURE__ */ function() {
|
|
|
1034
1034
|
}, c);
|
|
1035
1035
|
}, t.getType = function(i) {
|
|
1036
1036
|
if (i.type === void 0 && i.pattern instanceof RegExp && (i.type = "pattern"), typeof i.validator != "function" && i.type && !pe.hasOwnProperty(i.type))
|
|
1037
|
-
throw new Error(
|
|
1037
|
+
throw new Error(zt("Unknown rule type %s", i.type));
|
|
1038
1038
|
return i.type || "string";
|
|
1039
1039
|
}, t.getValidationMethod = function(i) {
|
|
1040
1040
|
if (typeof i.validator == "function")
|
|
@@ -1048,8 +1048,8 @@ we.register = function(t, n) {
|
|
|
1048
1048
|
throw new Error("Cannot register a validator by type, validator is not a function");
|
|
1049
1049
|
pe[t] = n;
|
|
1050
1050
|
};
|
|
1051
|
-
we.warning =
|
|
1052
|
-
we.messages =
|
|
1051
|
+
we.warning = Jn;
|
|
1052
|
+
we.messages = nn;
|
|
1053
1053
|
we.validators = pe;
|
|
1054
1054
|
function Ii(e) {
|
|
1055
1055
|
if (!e || typeof e != "string") return null;
|
|
@@ -1060,7 +1060,7 @@ function Ii(e) {
|
|
|
1060
1060
|
return null;
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function Fn(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()) {
|
|
@@ -1070,14 +1070,14 @@ function Zn(e) {
|
|
|
1070
1070
|
return n;
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
|
-
const
|
|
1074
|
-
function
|
|
1073
|
+
const Dn = "_v";
|
|
1074
|
+
function Zn(e, t, n, i) {
|
|
1075
1075
|
if (!(e != null && e.length)) {
|
|
1076
1076
|
n();
|
|
1077
1077
|
return;
|
|
1078
1078
|
}
|
|
1079
|
-
const r = { [
|
|
1080
|
-
new we(r).validate({ [
|
|
1079
|
+
const r = { [Dn]: e };
|
|
1080
|
+
new we(r).validate({ [Dn]: t }, { first: !0 }).then(() => {
|
|
1081
1081
|
n();
|
|
1082
1082
|
}).catch(({ errors: o }) => {
|
|
1083
1083
|
i(o || []);
|
|
@@ -1119,8 +1119,8 @@ function Kt(e) {
|
|
|
1119
1119
|
[r, n, i, a, c, l, d]
|
|
1120
1120
|
), S = j(
|
|
1121
1121
|
(w) => {
|
|
1122
|
-
const D =
|
|
1123
|
-
|
|
1122
|
+
const D = Fn(t || []);
|
|
1123
|
+
Zn(
|
|
1124
1124
|
D,
|
|
1125
1125
|
w,
|
|
1126
1126
|
() => u(""),
|
|
@@ -1132,7 +1132,7 @@ function Kt(e) {
|
|
|
1132
1132
|
},
|
|
1133
1133
|
[t, u]
|
|
1134
1134
|
), x = o ? void 0 : r && n && i ? h : (p == null ? void 0 : p.help) ?? "", C = !o && x ? "error" : void 0;
|
|
1135
|
-
return
|
|
1135
|
+
return Dt(() => {
|
|
1136
1136
|
if (m == null || !f || !i) return;
|
|
1137
1137
|
const w = g(f, i);
|
|
1138
1138
|
S(w);
|
|
@@ -1148,14 +1148,14 @@ function Qt(e, t, n) {
|
|
|
1148
1148
|
}), r;
|
|
1149
1149
|
}
|
|
1150
1150
|
const ie = Qr(null);
|
|
1151
|
-
function
|
|
1151
|
+
function Oe(e) {
|
|
1152
1152
|
return typeof e == "string" && e.trim() !== "";
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function Re(e, t, n) {
|
|
1155
1155
|
const i = be(ie);
|
|
1156
1156
|
return y(() => {
|
|
1157
1157
|
const r = n ?? (i == null ? void 0 : i.sessionId);
|
|
1158
|
-
if (
|
|
1158
|
+
if (Oe(e))
|
|
1159
1159
|
return {
|
|
1160
1160
|
dataSet: e,
|
|
1161
1161
|
dataSetField: t,
|
|
@@ -1168,7 +1168,7 @@ function je(e, t, n) {
|
|
|
1168
1168
|
sessionId: r
|
|
1169
1169
|
};
|
|
1170
1170
|
const a = i.index, o = i.dataSet, c = i.dataSetFieldRoot;
|
|
1171
|
-
if (
|
|
1171
|
+
if (Oe(t)) {
|
|
1172
1172
|
const l = t.trim();
|
|
1173
1173
|
if (l.startsWith("["))
|
|
1174
1174
|
return {
|
|
@@ -1176,7 +1176,7 @@ function je(e, t, n) {
|
|
|
1176
1176
|
dataSetField: l,
|
|
1177
1177
|
sessionId: r
|
|
1178
1178
|
};
|
|
1179
|
-
if (
|
|
1179
|
+
if (Oe(c))
|
|
1180
1180
|
return {
|
|
1181
1181
|
dataSet: o,
|
|
1182
1182
|
dataSetField: `${c}[${a}].${l}`,
|
|
@@ -1189,7 +1189,7 @@ function je(e, t, n) {
|
|
|
1189
1189
|
sessionId: r
|
|
1190
1190
|
};
|
|
1191
1191
|
}
|
|
1192
|
-
return
|
|
1192
|
+
return Oe(c) ? {
|
|
1193
1193
|
dataSet: o,
|
|
1194
1194
|
dataSetField: `${c}[${a}]`,
|
|
1195
1195
|
sessionId: r
|
|
@@ -1226,19 +1226,19 @@ async function re(e) {
|
|
|
1226
1226
|
"Request handler not configured. Please call setCoreConfig() first."
|
|
1227
1227
|
);
|
|
1228
1228
|
}
|
|
1229
|
-
async function
|
|
1229
|
+
async function Xn(e, t) {
|
|
1230
1230
|
if (qt.upload)
|
|
1231
1231
|
return qt.upload(e, t);
|
|
1232
1232
|
throw new Error(
|
|
1233
1233
|
"Upload handler not configured. Please call setCoreConfig() first."
|
|
1234
1234
|
);
|
|
1235
1235
|
}
|
|
1236
|
-
async function
|
|
1236
|
+
async function ln(e) {
|
|
1237
1237
|
return qt.getDictOptions ? qt.getDictOptions(e) : (console.warn(
|
|
1238
1238
|
"Dict service not configured. Please call setCoreConfig() with getDictOptions."
|
|
1239
1239
|
), []);
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function rn() {
|
|
1242
1242
|
return qt.getAccessToken ? qt.getAccessToken() : null;
|
|
1243
1243
|
}
|
|
1244
1244
|
const dc = {
|
|
@@ -1259,12 +1259,12 @@ function na() {
|
|
|
1259
1259
|
async (l, d, v) => re({ url: l, data: d, method: "POST", ...v }),
|
|
1260
1260
|
[]
|
|
1261
1261
|
), r = j(
|
|
1262
|
-
async (l) =>
|
|
1262
|
+
async (l) => ln(l),
|
|
1263
1263
|
[]
|
|
1264
1264
|
), a = j(
|
|
1265
|
-
async (l, d) =>
|
|
1265
|
+
async (l, d) => Xn(l, d),
|
|
1266
1266
|
[]
|
|
1267
|
-
), o = j(() =>
|
|
1267
|
+
), o = j(() => rn(), []), c = j(() => !!e.request, [e.request]);
|
|
1268
1268
|
return {
|
|
1269
1269
|
request: t,
|
|
1270
1270
|
get: n,
|
|
@@ -1278,13 +1278,13 @@ function na() {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
function De(e) {
|
|
1280
1280
|
const [t, n] = ht([]), [i, r] = ht(!1), [a, o] = ht(null);
|
|
1281
|
-
return
|
|
1281
|
+
return Dt(() => {
|
|
1282
1282
|
if (!e) {
|
|
1283
1283
|
n([]);
|
|
1284
1284
|
return;
|
|
1285
1285
|
}
|
|
1286
1286
|
let c = !1;
|
|
1287
|
-
return r(!0), o(null),
|
|
1287
|
+
return r(!0), o(null), ln(e).then((l) => {
|
|
1288
1288
|
c || n(l);
|
|
1289
1289
|
}).catch((l) => {
|
|
1290
1290
|
c || (o(l), console.error(`Failed to load dict: ${e}`, l));
|
|
@@ -1295,7 +1295,7 @@ function De(e) {
|
|
|
1295
1295
|
};
|
|
1296
1296
|
}, [e]), { options: t, loading: i, error: a };
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function un(e, t) {
|
|
1299
1299
|
const [n, i] = ht([]), [r, a] = ht(!1), [o, c] = ht(null), {
|
|
1300
1300
|
labelKey: l = "label",
|
|
1301
1301
|
valueKey: d = "value",
|
|
@@ -1329,7 +1329,7 @@ function fn(e, t) {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
}, [e, g, f, h]);
|
|
1332
|
-
return
|
|
1332
|
+
return Dt(() => {
|
|
1333
1333
|
v && e && s();
|
|
1334
1334
|
}, [v, e, s]), { options: n, loading: r, error: o, reload: s };
|
|
1335
1335
|
}
|
|
@@ -1337,7 +1337,7 @@ const ue = (e) => {
|
|
|
1337
1337
|
if (e == null || e === "") return 0;
|
|
1338
1338
|
const t = Number(e);
|
|
1339
1339
|
return isNaN(t) || !isFinite(t) ? 0 : t;
|
|
1340
|
-
},
|
|
1340
|
+
}, Nt = (e) => e == null ? "" : String(e), je = (e) => {
|
|
1341
1341
|
if (e == null) return null;
|
|
1342
1342
|
let t;
|
|
1343
1343
|
if (e instanceof Date)
|
|
@@ -1394,7 +1394,7 @@ const ue = (e) => {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
}, ca = (e, t = {}) => {
|
|
1396
1396
|
try {
|
|
1397
|
-
const n =
|
|
1397
|
+
const n = je(e);
|
|
1398
1398
|
return n ? new Intl.DateTimeFormat("zh-CN", {
|
|
1399
1399
|
year: "numeric",
|
|
1400
1400
|
month: "2-digit",
|
|
@@ -1404,18 +1404,18 @@ const ue = (e) => {
|
|
|
1404
1404
|
} catch {
|
|
1405
1405
|
return "";
|
|
1406
1406
|
}
|
|
1407
|
-
},
|
|
1407
|
+
}, In = (e, t = "YYYY-MM-DD") => {
|
|
1408
1408
|
try {
|
|
1409
|
-
const n =
|
|
1409
|
+
const n = je(e);
|
|
1410
1410
|
if (!n) return "";
|
|
1411
1411
|
const i = n.getFullYear(), r = String(n.getMonth() + 1).padStart(2, "0"), a = String(n.getDate()).padStart(2, "0"), o = String(n.getHours()).padStart(2, "0"), c = String(n.getMinutes()).padStart(2, "0"), l = String(n.getSeconds()).padStart(2, "0");
|
|
1412
1412
|
return t.replace("YYYY", String(i)).replace("MM", r).replace("DD", a).replace("HH", o).replace("mm", c).replace("ss", l);
|
|
1413
1413
|
} catch {
|
|
1414
1414
|
return "";
|
|
1415
1415
|
}
|
|
1416
|
-
}, sa = (e, t = "YYYY-MM-DD HH:mm:ss") =>
|
|
1416
|
+
}, sa = (e, t = "YYYY-MM-DD HH:mm:ss") => In(e, t), la = (e) => {
|
|
1417
1417
|
try {
|
|
1418
|
-
const t =
|
|
1418
|
+
const t = je(e);
|
|
1419
1419
|
if (!t) return "";
|
|
1420
1420
|
const i = (/* @__PURE__ */ new Date()).getTime() - t.getTime(), r = Math.floor(i / 1e3), a = Math.floor(r / 60), o = Math.floor(a / 60), c = Math.floor(o / 24), l = Math.floor(c / 30), d = Math.floor(c / 365);
|
|
1421
1421
|
return r < 60 ? "刚刚" : a < 60 ? `${a}分钟前` : o < 24 ? `${o}小时前` : c < 30 ? `${c}天前` : l < 12 ? `${l}个月前` : `${d}年前`;
|
|
@@ -1433,7 +1433,7 @@ const ue = (e) => {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
}, fa = (e) => {
|
|
1435
1435
|
try {
|
|
1436
|
-
const t =
|
|
1436
|
+
const t = je(e);
|
|
1437
1437
|
if (!t) return "";
|
|
1438
1438
|
const n = /* @__PURE__ */ new Date();
|
|
1439
1439
|
if (t > n) return "";
|
|
@@ -1458,21 +1458,21 @@ const ue = (e) => {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
}, ma = (e, t = "CN") => {
|
|
1460
1460
|
try {
|
|
1461
|
-
const n =
|
|
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") :
|
|
1461
|
+
const n = Nt(e).replace(/\D/g, "");
|
|
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") : Nt(e) : "";
|
|
1463
1463
|
} catch {
|
|
1464
1464
|
return "";
|
|
1465
1465
|
}
|
|
1466
1466
|
}, ha = (e) => {
|
|
1467
1467
|
try {
|
|
1468
|
-
const t =
|
|
1469
|
-
return t.length === 11 ? t.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") :
|
|
1468
|
+
const t = Nt(e).replace(/\D/g, "");
|
|
1469
|
+
return t.length === 11 ? t.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : Nt(e);
|
|
1470
1470
|
} catch {
|
|
1471
1471
|
return "";
|
|
1472
1472
|
}
|
|
1473
1473
|
}, ya = (e) => {
|
|
1474
1474
|
try {
|
|
1475
|
-
const t =
|
|
1475
|
+
const t = Nt(e);
|
|
1476
1476
|
if (!t || !t.includes("@")) return "";
|
|
1477
1477
|
const [n, i] = t.split("@");
|
|
1478
1478
|
return n.length <= 1 ? t : n.length <= 3 ? `${n[0]}*@${i}` : `${n[0] + "*".repeat(n.length - 2) + n[n.length - 1]}@${i}`;
|
|
@@ -1481,14 +1481,14 @@ const ue = (e) => {
|
|
|
1481
1481
|
}
|
|
1482
1482
|
}, ga = (e, t = !0) => {
|
|
1483
1483
|
try {
|
|
1484
|
-
const n =
|
|
1484
|
+
const n = Nt(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
|
}, pa = (e, t = !0) => {
|
|
1490
1490
|
try {
|
|
1491
|
-
const n =
|
|
1491
|
+
const n = Nt(e).replace(/\s/g, "");
|
|
1492
1492
|
if (!/^\d{13,19}$/.test(n)) return "";
|
|
1493
1493
|
if (t && n.length >= 8) {
|
|
1494
1494
|
const i = n.slice(0, 4), r = n.slice(-4), a = n.length - 8, o = "*".repeat(a);
|
|
@@ -1500,28 +1500,28 @@ const ue = (e) => {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
}, va = (e) => {
|
|
1502
1502
|
try {
|
|
1503
|
-
const t =
|
|
1503
|
+
const t = Nt(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
|
}, ba = (e, t = 50, n = "...") => {
|
|
1509
1509
|
try {
|
|
1510
|
-
const i =
|
|
1510
|
+
const i = Nt(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
|
}, Sa = (e) => {
|
|
1516
1516
|
try {
|
|
1517
|
-
const t =
|
|
1517
|
+
const t = Nt(e);
|
|
1518
1518
|
return t ? t.charAt(0).toUpperCase() + t.slice(1).toLowerCase() : "";
|
|
1519
1519
|
} catch {
|
|
1520
1520
|
return "";
|
|
1521
1521
|
}
|
|
1522
1522
|
}, wa = (e, t = ", ") => {
|
|
1523
1523
|
try {
|
|
1524
|
-
return Array.isArray(e) ? e.join(t) :
|
|
1524
|
+
return Array.isArray(e) ? e.join(t) : Nt(e);
|
|
1525
1525
|
} catch {
|
|
1526
1526
|
return "";
|
|
1527
1527
|
}
|
|
@@ -1535,21 +1535,21 @@ const ue = (e) => {
|
|
|
1535
1535
|
f: "女",
|
|
1536
1536
|
M: "男",
|
|
1537
1537
|
F: "女"
|
|
1538
|
-
})[
|
|
1538
|
+
})[Nt(e)] || Nt(e), xa = (e, t) => t ? t[Nt(e)] || Nt(e) : {
|
|
1539
1539
|
0: "禁用",
|
|
1540
1540
|
1: "启用",
|
|
1541
1541
|
true: "是",
|
|
1542
1542
|
false: "否"
|
|
1543
|
-
}[
|
|
1543
|
+
}[Nt(e)] || Nt(e), Aa = (e) => {
|
|
1544
1544
|
try {
|
|
1545
|
-
return
|
|
1545
|
+
return Nt(e).replace(/<[^>]*>/g, "");
|
|
1546
1546
|
} catch {
|
|
1547
1547
|
return "";
|
|
1548
1548
|
}
|
|
1549
1549
|
};
|
|
1550
1550
|
function Ca(e, t, n = {}) {
|
|
1551
1551
|
if (!t || e === void 0 || e === null)
|
|
1552
|
-
return
|
|
1552
|
+
return Nt(e);
|
|
1553
1553
|
switch (t) {
|
|
1554
1554
|
case "currency":
|
|
1555
1555
|
return ra(e, n.currency, n);
|
|
@@ -1564,7 +1564,7 @@ function Ca(e, t, n = {}) {
|
|
|
1564
1564
|
case "date":
|
|
1565
1565
|
return ca(e, n);
|
|
1566
1566
|
case "dateCustom":
|
|
1567
|
-
return
|
|
1567
|
+
return In(e, n.pattern);
|
|
1568
1568
|
case "relativeTime":
|
|
1569
1569
|
return la(e);
|
|
1570
1570
|
case "duration":
|
|
@@ -1598,10 +1598,10 @@ function Ca(e, t, n = {}) {
|
|
|
1598
1598
|
case "stripHtml":
|
|
1599
1599
|
return Aa(e);
|
|
1600
1600
|
default:
|
|
1601
|
-
return
|
|
1601
|
+
return Nt(e);
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
1604
|
-
const
|
|
1604
|
+
const Be = {
|
|
1605
1605
|
// 基础颜色
|
|
1606
1606
|
colorPrimary: "colorPrimary",
|
|
1607
1607
|
colorSuccess: "colorSuccess",
|
|
@@ -1632,7 +1632,7 @@ const Ke = {
|
|
|
1632
1632
|
colorLink: "colorLink",
|
|
1633
1633
|
colorLinkHover: "colorLinkHover",
|
|
1634
1634
|
colorLinkActive: "colorLinkActive"
|
|
1635
|
-
}, mc = Object.keys(
|
|
1635
|
+
}, mc = Object.keys(Be), hc = [
|
|
1636
1636
|
{ label: "主色", value: "colorPrimary" },
|
|
1637
1637
|
{ label: "成功", value: "colorSuccess" },
|
|
1638
1638
|
{ label: "警告", value: "colorWarning" },
|
|
@@ -1642,14 +1642,14 @@ const Ke = {
|
|
|
1642
1642
|
{ label: "次级文本", value: "colorTextSecondary" },
|
|
1643
1643
|
{ label: "链接", value: "colorLink" }
|
|
1644
1644
|
];
|
|
1645
|
-
function
|
|
1646
|
-
return
|
|
1645
|
+
function tr(e) {
|
|
1646
|
+
return Be.hasOwnProperty(e);
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1648
|
+
function Ke(e) {
|
|
1649
1649
|
const { token: t } = Zt.useToken();
|
|
1650
1650
|
if (e) {
|
|
1651
|
-
if (
|
|
1652
|
-
const n =
|
|
1651
|
+
if (tr(e)) {
|
|
1652
|
+
const n = Be[e];
|
|
1653
1653
|
return t[n] || e;
|
|
1654
1654
|
}
|
|
1655
1655
|
return e;
|
|
@@ -1657,8 +1657,8 @@ function Le(e) {
|
|
|
1657
1657
|
}
|
|
1658
1658
|
function yc(e, t) {
|
|
1659
1659
|
if (e) {
|
|
1660
|
-
if (
|
|
1661
|
-
const n =
|
|
1660
|
+
if (tr(e)) {
|
|
1661
|
+
const n = Be[e];
|
|
1662
1662
|
return t[n] || e;
|
|
1663
1663
|
}
|
|
1664
1664
|
return e;
|
|
@@ -1756,7 +1756,7 @@ function Oa(e, t, n) {
|
|
|
1756
1756
|
}
|
|
1757
1757
|
return i;
|
|
1758
1758
|
}
|
|
1759
|
-
const
|
|
1759
|
+
const er = (e) => {
|
|
1760
1760
|
const {
|
|
1761
1761
|
id: t,
|
|
1762
1762
|
sessionId: n,
|
|
@@ -1780,39 +1780,39 @@ const nr = (e) => {
|
|
|
1780
1780
|
addonAfter: C,
|
|
1781
1781
|
addonBefore: w,
|
|
1782
1782
|
...D
|
|
1783
|
-
} = e, T =
|
|
1783
|
+
} = e, T = Re(r, a, n), O = T.dataSet, N = T.dataSetField, A = T.sessionId, E = Mt(""), k = Mt(null), M = _((q) => q.addCommand), B = _((q) => q.getDataSet), H = _((q) => q.setDataSet), P = _((q) => q.getProps), $ = _((q) => q.setProps), z = _((q) => q.setValidateResult), K = y(
|
|
1784
1784
|
() => rt(A, O),
|
|
1785
1785
|
[A, O]
|
|
1786
|
-
),
|
|
1787
|
-
(
|
|
1786
|
+
), V = _(
|
|
1787
|
+
(q) => {
|
|
1788
1788
|
var et;
|
|
1789
|
-
return A && t ? ((et =
|
|
1789
|
+
return A && t ? ((et = q.propsStore[`${A}_props`]) == null ? void 0 : et[t]) ?? null : null;
|
|
1790
1790
|
}
|
|
1791
1791
|
), R = y(
|
|
1792
1792
|
() => ge(A, O),
|
|
1793
1793
|
[A, O]
|
|
1794
1794
|
), L = _(
|
|
1795
|
-
(
|
|
1795
|
+
(q) => {
|
|
1796
1796
|
var et;
|
|
1797
|
-
return R && N ? ((et =
|
|
1797
|
+
return R && N ? ((et = q.validateStore[R]) == null ? void 0 : et[N]) ?? "" : "";
|
|
1798
1798
|
}
|
|
1799
1799
|
), Q = _(
|
|
1800
|
-
(
|
|
1800
|
+
(q) => K && N ? q.getDataSet(K, N) : void 0
|
|
1801
1801
|
), G = y(
|
|
1802
1802
|
() => O ? rt(A, `${O}_validateAction`) : void 0,
|
|
1803
1803
|
[A, O]
|
|
1804
1804
|
), U = _(
|
|
1805
|
-
(
|
|
1805
|
+
(q) => {
|
|
1806
1806
|
var et;
|
|
1807
|
-
return G ? (et =
|
|
1807
|
+
return G ? (et = q.dataSets[G]) == null ? void 0 : et.validate : void 0;
|
|
1808
1808
|
}
|
|
1809
|
-
), at = y(() => Q !== void 0 ? Q : (
|
|
1810
|
-
() => Oa(D,
|
|
1811
|
-
[D,
|
|
1809
|
+
), at = y(() => Q !== void 0 ? Q : (V == null ? void 0 : V.value) !== void 0 ? V.value : d, [Q, V == null ? void 0 : V.value, d]), it = y(
|
|
1810
|
+
() => Oa(D, V ?? null, { develop: i }),
|
|
1811
|
+
[D, V, i]
|
|
1812
1812
|
), nt = j(
|
|
1813
|
-
(
|
|
1814
|
-
const et =
|
|
1815
|
-
if (A && O && N &&
|
|
1813
|
+
(q) => {
|
|
1814
|
+
const et = q ?? "";
|
|
1815
|
+
if (A && O && N && z(
|
|
1816
1816
|
A,
|
|
1817
1817
|
O,
|
|
1818
1818
|
N,
|
|
@@ -1831,39 +1831,39 @@ const nr = (e) => {
|
|
|
1831
1831
|
O,
|
|
1832
1832
|
N,
|
|
1833
1833
|
t,
|
|
1834
|
-
|
|
1834
|
+
z,
|
|
1835
1835
|
P,
|
|
1836
1836
|
$
|
|
1837
1837
|
]
|
|
1838
1838
|
), pt = j(
|
|
1839
|
-
(
|
|
1840
|
-
const et =
|
|
1841
|
-
|
|
1839
|
+
(q) => {
|
|
1840
|
+
const et = Fn(p || []);
|
|
1841
|
+
Zn(
|
|
1842
1842
|
et,
|
|
1843
|
-
|
|
1843
|
+
q,
|
|
1844
1844
|
() => nt(""),
|
|
1845
1845
|
(Z) => {
|
|
1846
|
-
var
|
|
1847
|
-
return nt(((
|
|
1846
|
+
var st;
|
|
1847
|
+
return nt(((st = Z[0]) == null ? void 0 : st.message) ?? "");
|
|
1848
1848
|
}
|
|
1849
1849
|
);
|
|
1850
1850
|
},
|
|
1851
1851
|
[p, nt]
|
|
1852
|
-
),
|
|
1853
|
-
(
|
|
1854
|
-
const et =
|
|
1852
|
+
), St = j(
|
|
1853
|
+
(q) => {
|
|
1854
|
+
const et = q.target.value;
|
|
1855
1855
|
if (E.current = et, l) {
|
|
1856
|
-
l(et,
|
|
1856
|
+
l(et, q);
|
|
1857
1857
|
return;
|
|
1858
1858
|
}
|
|
1859
1859
|
if (K && N && H(K, N, et), c && A) {
|
|
1860
|
-
const { actionName: Z, arg:
|
|
1860
|
+
const { actionName: Z, arg: st } = bt(c, et, {
|
|
1861
1861
|
id: t,
|
|
1862
1862
|
dataSet: O,
|
|
1863
1863
|
dataSetField: N,
|
|
1864
1864
|
...it
|
|
1865
1865
|
});
|
|
1866
|
-
M(A, I(Z,
|
|
1866
|
+
M(A, I(Z, st));
|
|
1867
1867
|
}
|
|
1868
1868
|
g && (k.current && clearTimeout(k.current), k.current = setTimeout(() => {
|
|
1869
1869
|
k.current = null, pt(et);
|
|
@@ -1886,8 +1886,8 @@ const nr = (e) => {
|
|
|
1886
1886
|
]
|
|
1887
1887
|
), gt = j(() => {
|
|
1888
1888
|
if (!f) return;
|
|
1889
|
-
const
|
|
1890
|
-
pt(
|
|
1889
|
+
const q = K && N ? String(B(K, N) ?? "") : E.current;
|
|
1890
|
+
pt(q);
|
|
1891
1891
|
}, [
|
|
1892
1892
|
f,
|
|
1893
1893
|
K,
|
|
@@ -1895,20 +1895,20 @@ const nr = (e) => {
|
|
|
1895
1895
|
B,
|
|
1896
1896
|
pt
|
|
1897
1897
|
]), tt = j(
|
|
1898
|
-
(
|
|
1898
|
+
(q) => {
|
|
1899
1899
|
const Z = it.onPressEnter;
|
|
1900
1900
|
if (Z) {
|
|
1901
|
-
Z(
|
|
1901
|
+
Z(q);
|
|
1902
1902
|
return;
|
|
1903
1903
|
}
|
|
1904
1904
|
if (u && A) {
|
|
1905
|
-
const { actionName:
|
|
1905
|
+
const { actionName: st, arg: dt } = bt(u, at, {
|
|
1906
1906
|
id: t,
|
|
1907
1907
|
dataSet: O,
|
|
1908
1908
|
dataSetField: N,
|
|
1909
1909
|
...it
|
|
1910
1910
|
});
|
|
1911
|
-
M(A, I(
|
|
1911
|
+
M(A, I(st, dt));
|
|
1912
1912
|
}
|
|
1913
1913
|
},
|
|
1914
1914
|
[
|
|
@@ -1921,20 +1921,20 @@ const nr = (e) => {
|
|
|
1921
1921
|
N,
|
|
1922
1922
|
M
|
|
1923
1923
|
]
|
|
1924
|
-
),
|
|
1924
|
+
), ut = j(() => {
|
|
1925
1925
|
const et = it.onClear;
|
|
1926
1926
|
if (et) {
|
|
1927
1927
|
et();
|
|
1928
1928
|
return;
|
|
1929
1929
|
}
|
|
1930
1930
|
if (S && A) {
|
|
1931
|
-
const { actionName: Z, arg:
|
|
1931
|
+
const { actionName: Z, arg: st } = bt(S, "", {
|
|
1932
1932
|
id: t,
|
|
1933
1933
|
dataSet: O,
|
|
1934
1934
|
dataSetField: N,
|
|
1935
1935
|
...it
|
|
1936
1936
|
});
|
|
1937
|
-
M(A, I(Z,
|
|
1937
|
+
M(A, I(Z, st));
|
|
1938
1938
|
}
|
|
1939
1939
|
}, [
|
|
1940
1940
|
it,
|
|
@@ -1945,40 +1945,40 @@ const nr = (e) => {
|
|
|
1945
1945
|
N,
|
|
1946
1946
|
M
|
|
1947
1947
|
]);
|
|
1948
|
-
|
|
1948
|
+
Dt(
|
|
1949
1949
|
() => () => {
|
|
1950
1950
|
k.current && clearTimeout(k.current);
|
|
1951
1951
|
},
|
|
1952
1952
|
[]
|
|
1953
|
-
),
|
|
1953
|
+
), Dt(() => {
|
|
1954
1954
|
if (U == null || !K || !N)
|
|
1955
1955
|
return;
|
|
1956
|
-
const
|
|
1957
|
-
pt(
|
|
1956
|
+
const q = String(B(K, N) ?? "");
|
|
1957
|
+
pt(q);
|
|
1958
1958
|
}, [U, K, N, B, pt]);
|
|
1959
1959
|
const ot = y(() => ka(h), [h]), Ct = y(
|
|
1960
1960
|
() => ot ? { components: { Input: ot } } : void 0,
|
|
1961
1961
|
[ot]
|
|
1962
|
-
),
|
|
1962
|
+
), kt = i ? void 0 : A && O && N ? L : (V == null ? void 0 : V.help) ?? "", J = /* @__PURE__ */ ct(le, { children: [
|
|
1963
1963
|
/* @__PURE__ */ b(
|
|
1964
|
-
|
|
1964
|
+
$e,
|
|
1965
1965
|
{
|
|
1966
1966
|
...it,
|
|
1967
1967
|
value: at,
|
|
1968
|
-
onChange:
|
|
1968
|
+
onChange: St,
|
|
1969
1969
|
onBlur: gt,
|
|
1970
1970
|
onPressEnter: tt,
|
|
1971
|
-
onClear:
|
|
1972
|
-
status: !i &&
|
|
1971
|
+
onClear: ut,
|
|
1972
|
+
status: !i && kt ? "error" : void 0,
|
|
1973
1973
|
styles: v
|
|
1974
1974
|
}
|
|
1975
1975
|
),
|
|
1976
|
-
|
|
1976
|
+
kt && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: kt })
|
|
1977
1977
|
] });
|
|
1978
|
-
return Ct ? /* @__PURE__ */ b(
|
|
1978
|
+
return Ct ? /* @__PURE__ */ b(Rt, { theme: Ct, children: J }) : J;
|
|
1979
1979
|
};
|
|
1980
|
-
|
|
1981
|
-
const pc = Wt.memo(
|
|
1980
|
+
er.displayName = "AndInput";
|
|
1981
|
+
const pc = Wt.memo(er), xn = 200, vc = ({
|
|
1982
1982
|
id: e,
|
|
1983
1983
|
sessionId: t,
|
|
1984
1984
|
develop: n,
|
|
@@ -1997,7 +1997,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
1997
1997
|
value: s,
|
|
1998
1998
|
...m
|
|
1999
1999
|
}) => {
|
|
2000
|
-
const u = _((G) => G.addCommand), S = _((G) => G.setDataSet), x =
|
|
2000
|
+
const u = _((G) => G.addCommand), S = _((G) => G.setDataSet), x = Mt(null), C = y(
|
|
2001
2001
|
() => rt(t, i),
|
|
2002
2002
|
[t, i]
|
|
2003
2003
|
), w = _(
|
|
@@ -2027,7 +2027,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2027
2027
|
}
|
|
2028
2028
|
C && r && S(C, r, G), c && (x.current && clearTimeout(x.current), x.current = setTimeout(() => {
|
|
2029
2029
|
x.current = null, T(G);
|
|
2030
|
-
},
|
|
2030
|
+
}, xn)), A(l, "change", G);
|
|
2031
2031
|
},
|
|
2032
2032
|
[g, C, r, S, c, T, l, A]
|
|
2033
2033
|
), k = j(() => {
|
|
@@ -2064,7 +2064,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2064
2064
|
}
|
|
2065
2065
|
if (C && r && S(C, r, null), c && (x.current && clearTimeout(x.current), x.current = setTimeout(() => {
|
|
2066
2066
|
x.current = null, T(null);
|
|
2067
|
-
},
|
|
2067
|
+
}, xn)), A(l, "change", null), v && t) {
|
|
2068
2068
|
const { actionName: G, arg: U } = bt(v, null, {
|
|
2069
2069
|
id: e,
|
|
2070
2070
|
dataSet: i,
|
|
@@ -2093,19 +2093,19 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2093
2093
|
},
|
|
2094
2094
|
[p, A]
|
|
2095
2095
|
);
|
|
2096
|
-
|
|
2096
|
+
Dt(
|
|
2097
2097
|
() => () => {
|
|
2098
2098
|
x.current && clearTimeout(x.current);
|
|
2099
2099
|
},
|
|
2100
2100
|
[]
|
|
2101
|
-
),
|
|
2101
|
+
), Dt(() => {
|
|
2102
2102
|
f !== void 0 && N === void 0 && C && r && S(C, r, f);
|
|
2103
2103
|
}, [f, N, C, r, S]);
|
|
2104
2104
|
const P = y(
|
|
2105
2105
|
() => Qt(m, w ?? void 0),
|
|
2106
2106
|
[m, w]
|
|
2107
|
-
), { addonBefore: $, addonAfter:
|
|
2108
|
-
if (!(h && N !== null && N !== void 0)) return
|
|
2107
|
+
), { addonBefore: $, addonAfter: z, style: K, suffix: V, ...R } = P, L = y(() => {
|
|
2108
|
+
if (!(h && N !== null && N !== void 0)) return V;
|
|
2109
2109
|
const U = /* @__PURE__ */ b(
|
|
2110
2110
|
"span",
|
|
2111
2111
|
{
|
|
@@ -2119,12 +2119,12 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2119
2119
|
children: /* @__PURE__ */ b(Xr, {})
|
|
2120
2120
|
}
|
|
2121
2121
|
);
|
|
2122
|
-
return
|
|
2123
|
-
|
|
2122
|
+
return V == null || V === !1 ? U : /* @__PURE__ */ ct(le, { children: [
|
|
2123
|
+
V,
|
|
2124
2124
|
U
|
|
2125
2125
|
] });
|
|
2126
|
-
}, [h, N,
|
|
2127
|
-
|
|
2126
|
+
}, [h, N, V, B]), Q = /* @__PURE__ */ b(
|
|
2127
|
+
$n,
|
|
2128
2128
|
{
|
|
2129
2129
|
...R,
|
|
2130
2130
|
disabled: n ? !1 : R.disabled,
|
|
@@ -2142,8 +2142,8 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2142
2142
|
style: { width: "100%", ...K }
|
|
2143
2143
|
}
|
|
2144
2144
|
);
|
|
2145
|
-
return /* @__PURE__ */
|
|
2146
|
-
$ ||
|
|
2145
|
+
return /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
|
|
2146
|
+
$ || z ? /* @__PURE__ */ ct(Yt.Compact, { style: { width: "100%" }, children: [
|
|
2147
2147
|
$ && /* @__PURE__ */ b(
|
|
2148
2148
|
"div",
|
|
2149
2149
|
{
|
|
@@ -2162,7 +2162,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2162
2162
|
}
|
|
2163
2163
|
),
|
|
2164
2164
|
Q,
|
|
2165
|
-
|
|
2165
|
+
z && /* @__PURE__ */ b(
|
|
2166
2166
|
"div",
|
|
2167
2167
|
{
|
|
2168
2168
|
style: {
|
|
@@ -2176,13 +2176,13 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2176
2176
|
color: "rgba(0, 0, 0, 0.88)",
|
|
2177
2177
|
fontSize: 14
|
|
2178
2178
|
},
|
|
2179
|
-
children:
|
|
2179
|
+
children: z
|
|
2180
2180
|
}
|
|
2181
2181
|
)
|
|
2182
2182
|
] }) : Q,
|
|
2183
2183
|
O && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: O })
|
|
2184
2184
|
] });
|
|
2185
|
-
}, { TextArea: _a } =
|
|
2185
|
+
}, { TextArea: _a } = $e, Ea = 200, bc = ({
|
|
2186
2186
|
id: e,
|
|
2187
2187
|
sessionId: t,
|
|
2188
2188
|
develop: n,
|
|
@@ -2199,7 +2199,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2199
2199
|
defaultValue: g,
|
|
2200
2200
|
...f
|
|
2201
2201
|
}) => {
|
|
2202
|
-
const s =
|
|
2202
|
+
const s = Re(i, r, t), m = s.dataSet, u = s.dataSetField, S = s.sessionId, x = _((P) => P.addCommand), C = _((P) => P.setDataSet), w = Mt(null), D = y(
|
|
2203
2203
|
() => rt(S, m),
|
|
2204
2204
|
[S, m]
|
|
2205
2205
|
), T = _(
|
|
@@ -2224,12 +2224,12 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2224
2224
|
return;
|
|
2225
2225
|
}
|
|
2226
2226
|
if (D && u && C(D, u, $), l && S) {
|
|
2227
|
-
const { actionName:
|
|
2227
|
+
const { actionName: z, arg: K } = bt(l, $, {
|
|
2228
2228
|
id: e,
|
|
2229
2229
|
dataSet: m,
|
|
2230
2230
|
dataSetField: u
|
|
2231
2231
|
});
|
|
2232
|
-
x(S, I(
|
|
2232
|
+
x(S, I(z, K));
|
|
2233
2233
|
}
|
|
2234
2234
|
c && (w.current && clearTimeout(w.current), w.current = setTimeout(() => {
|
|
2235
2235
|
w.current = null, N($);
|
|
@@ -2256,12 +2256,12 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2256
2256
|
return;
|
|
2257
2257
|
}
|
|
2258
2258
|
if (d && S && !P.shiftKey) {
|
|
2259
|
-
const { actionName: $, arg:
|
|
2259
|
+
const { actionName: $, arg: z } = bt(d, E, {
|
|
2260
2260
|
id: e,
|
|
2261
2261
|
dataSet: m,
|
|
2262
2262
|
dataSetField: u
|
|
2263
2263
|
});
|
|
2264
|
-
x(S, I($,
|
|
2264
|
+
x(S, I($, z));
|
|
2265
2265
|
}
|
|
2266
2266
|
},
|
|
2267
2267
|
[
|
|
@@ -2296,12 +2296,12 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2296
2296
|
u,
|
|
2297
2297
|
x
|
|
2298
2298
|
]);
|
|
2299
|
-
return
|
|
2299
|
+
return Dt(
|
|
2300
2300
|
() => () => {
|
|
2301
2301
|
w.current && clearTimeout(w.current);
|
|
2302
2302
|
},
|
|
2303
2303
|
[]
|
|
2304
|
-
), /* @__PURE__ */
|
|
2304
|
+
), /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
|
|
2305
2305
|
/* @__PURE__ */ b(
|
|
2306
2306
|
_a,
|
|
2307
2307
|
{
|
|
@@ -2317,7 +2317,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2317
2317
|
),
|
|
2318
2318
|
A && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: A })
|
|
2319
2319
|
] });
|
|
2320
|
-
}, { Password: Ma } =
|
|
2320
|
+
}, { Password: Ma } = $e, $a = 200, Sc = ({
|
|
2321
2321
|
id: e,
|
|
2322
2322
|
sessionId: t,
|
|
2323
2323
|
develop: n,
|
|
@@ -2334,7 +2334,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2334
2334
|
defaultValue: g,
|
|
2335
2335
|
...f
|
|
2336
2336
|
}) => {
|
|
2337
|
-
const s = _((k) => k.addCommand), m = _((k) => k.setDataSet), u =
|
|
2337
|
+
const s = _((k) => k.addCommand), m = _((k) => k.setDataSet), u = Mt(null), S = y(
|
|
2338
2338
|
() => rt(t, i),
|
|
2339
2339
|
[t, i]
|
|
2340
2340
|
), x = _(
|
|
@@ -2423,12 +2423,12 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2423
2423
|
s(t, I(k, M));
|
|
2424
2424
|
}
|
|
2425
2425
|
}, [f.onClear, v, t, e, i, r, s]);
|
|
2426
|
-
return
|
|
2426
|
+
return Dt(
|
|
2427
2427
|
() => () => {
|
|
2428
2428
|
u.current && clearTimeout(u.current);
|
|
2429
2429
|
},
|
|
2430
2430
|
[]
|
|
2431
|
-
), /* @__PURE__ */
|
|
2431
|
+
), /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
|
|
2432
2432
|
/* @__PURE__ */ b(
|
|
2433
2433
|
Ma,
|
|
2434
2434
|
{
|
|
@@ -2444,7 +2444,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2444
2444
|
),
|
|
2445
2445
|
D && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
|
|
2446
2446
|
] });
|
|
2447
|
-
}, { Search: Ra } =
|
|
2447
|
+
}, { Search: Ra } = $e, wc = ({
|
|
2448
2448
|
id: e,
|
|
2449
2449
|
sessionId: t,
|
|
2450
2450
|
develop: n,
|
|
@@ -2508,22 +2508,22 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2508
2508
|
dropdownMatchSelectWidth: T,
|
|
2509
2509
|
...O
|
|
2510
2510
|
}) => {
|
|
2511
|
-
const N = _((tt) => tt.addCommand), A = _((tt) => tt.setDataSet), E =
|
|
2511
|
+
const N = _((tt) => tt.addCommand), A = _((tt) => tt.setDataSet), E = Mt(null), k = be(ie), M = y(
|
|
2512
2512
|
() => rt(t, i),
|
|
2513
2513
|
[t, i]
|
|
2514
2514
|
), B = m ?? (k == null ? void 0 : k.index), H = _(
|
|
2515
2515
|
(tt) => {
|
|
2516
|
-
var
|
|
2517
|
-
return t && e ? ((
|
|
2516
|
+
var ut;
|
|
2517
|
+
return t && e ? ((ut = tt.propsStore[`${t}_props`]) == null ? void 0 : ut[e]) ?? null : null;
|
|
2518
2518
|
}
|
|
2519
2519
|
), P = _(
|
|
2520
2520
|
(tt) => M && r ? tt.getDataSet(M, r) : void 0
|
|
2521
2521
|
), $ = y(
|
|
2522
2522
|
() => (H == null ? void 0 : H.optionsCfg) != null ? H.optionsCfg : c,
|
|
2523
2523
|
[H == null ? void 0 : H.optionsCfg, c]
|
|
2524
|
-
), { options:
|
|
2524
|
+
), { options: z, loading: K } = De(
|
|
2525
2525
|
D || (a ? o : void 0)
|
|
2526
|
-
), { options:
|
|
2526
|
+
), { options: V, loading: R } = un(
|
|
2527
2527
|
$ == null ? void 0 : $.url,
|
|
2528
2528
|
{
|
|
2529
2529
|
valueKey: ($ == null ? void 0 : $.codeKey) || "value",
|
|
@@ -2542,19 +2542,19 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2542
2542
|
}), U = y(() => P != null && P !== "" ? P : (H == null ? void 0 : H.value) !== void 0 ? H.value : s ?? f, [P, H == null ? void 0 : H.value, s, f]), at = y(
|
|
2543
2543
|
() => Qt(O, H ?? void 0),
|
|
2544
2544
|
[O, H]
|
|
2545
|
-
), it = y(() => H != null && H.options && Array.isArray(H.options) ? H.options : $ != null && $.url &&
|
|
2545
|
+
), it = y(() => H != null && H.options && Array.isArray(H.options) ? H.options : $ != null && $.url && V.length > 0 ? V : (D || a && o) && z.length > 0 ? z : g || [], [H == null ? void 0 : H.options, $ == null ? void 0 : $.url, V, D, a, o, z, g]), nt = y(() => {
|
|
2546
2546
|
if (it.length === 0) return U;
|
|
2547
2547
|
if (Array.isArray(U))
|
|
2548
|
-
return U.map((
|
|
2548
|
+
return U.map((ut) => {
|
|
2549
2549
|
var ot;
|
|
2550
|
-
return ((ot = ae(it,
|
|
2550
|
+
return ((ot = ae(it, ut)) == null ? void 0 : ot.value) ?? ut;
|
|
2551
2551
|
});
|
|
2552
2552
|
const tt = ae(it, U);
|
|
2553
2553
|
return (tt == null ? void 0 : tt.value) ?? U;
|
|
2554
2554
|
}, [U, it]), pt = j(
|
|
2555
|
-
(tt,
|
|
2555
|
+
(tt, ut) => {
|
|
2556
2556
|
if (p) {
|
|
2557
|
-
p(tt,
|
|
2557
|
+
p(tt, ut);
|
|
2558
2558
|
return;
|
|
2559
2559
|
}
|
|
2560
2560
|
if (M && r && A(M, r, tt), v && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
|
|
@@ -2582,19 +2582,19 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2582
2582
|
B,
|
|
2583
2583
|
N
|
|
2584
2584
|
]
|
|
2585
|
-
),
|
|
2585
|
+
), St = j(() => {
|
|
2586
2586
|
d && Q(nt);
|
|
2587
2587
|
}, [d, Q, nt]);
|
|
2588
|
-
|
|
2588
|
+
Dt(
|
|
2589
2589
|
() => () => {
|
|
2590
2590
|
E.current && clearTimeout(E.current);
|
|
2591
2591
|
},
|
|
2592
2592
|
[]
|
|
2593
2593
|
);
|
|
2594
|
-
const gt = j((tt,
|
|
2595
|
-
return /* @__PURE__ */
|
|
2594
|
+
const gt = j((tt, ut) => ((ut == null ? void 0 : ut.label) ?? "").toLowerCase().includes(tt.toLowerCase()), []);
|
|
2595
|
+
return /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
|
|
2596
2596
|
/* @__PURE__ */ b(
|
|
2597
|
-
|
|
2597
|
+
Rn,
|
|
2598
2598
|
{
|
|
2599
2599
|
...at,
|
|
2600
2600
|
disabled: n ? !1 : at.disabled,
|
|
@@ -2602,7 +2602,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2602
2602
|
value: nt,
|
|
2603
2603
|
options: it,
|
|
2604
2604
|
onChange: pt,
|
|
2605
|
-
onBlur:
|
|
2605
|
+
onBlur: St,
|
|
2606
2606
|
filterOption: gt,
|
|
2607
2607
|
loading: L,
|
|
2608
2608
|
status: G ? "error" : void 0,
|
|
@@ -2673,7 +2673,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2673
2673
|
), D = j(() => {
|
|
2674
2674
|
o && S(C);
|
|
2675
2675
|
}, [o, S, C]);
|
|
2676
|
-
return /* @__PURE__ */
|
|
2676
|
+
return /* @__PURE__ */ ct("div", { style: { display: "inline-block" }, onBlur: D, children: [
|
|
2677
2677
|
/* @__PURE__ */ b(
|
|
2678
2678
|
hr,
|
|
2679
2679
|
{
|
|
@@ -2747,7 +2747,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2747
2747
|
},
|
|
2748
2748
|
[v, m, r, s, d, x, a, t, e, f]
|
|
2749
2749
|
);
|
|
2750
|
-
|
|
2750
|
+
Dt(() => {
|
|
2751
2751
|
if (p && D === null && m && r) {
|
|
2752
2752
|
const A = Ut(p).format(o);
|
|
2753
2753
|
s(m, r, A);
|
|
@@ -2762,9 +2762,9 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2762
2762
|
() => Qt(g, u ?? void 0),
|
|
2763
2763
|
[g, u]
|
|
2764
2764
|
);
|
|
2765
|
-
return /* @__PURE__ */
|
|
2765
|
+
return /* @__PURE__ */ ct("div", { onBlur: O, children: [
|
|
2766
2766
|
/* @__PURE__ */ b(
|
|
2767
|
-
|
|
2767
|
+
jn,
|
|
2768
2768
|
{
|
|
2769
2769
|
...N,
|
|
2770
2770
|
disabled: n ? !1 : N.disabled,
|
|
@@ -2825,7 +2825,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2825
2825
|
}, [c, u, r, m, h, x, a, t, e, f]), O = j(() => {
|
|
2826
2826
|
p && x(D ? D.format(o) : "");
|
|
2827
2827
|
}, [p, x, D, o]), N = C ? "error" : void 0;
|
|
2828
|
-
return /* @__PURE__ */
|
|
2828
|
+
return /* @__PURE__ */ ct(le, { children: [
|
|
2829
2829
|
/* @__PURE__ */ b(
|
|
2830
2830
|
yr,
|
|
2831
2831
|
{
|
|
@@ -2841,7 +2841,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2841
2841
|
),
|
|
2842
2842
|
C && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: C })
|
|
2843
2843
|
] });
|
|
2844
|
-
}, { RangePicker: Ba } =
|
|
2844
|
+
}, { RangePicker: Ba } = jn, Tc = ({
|
|
2845
2845
|
id: e,
|
|
2846
2846
|
sessionId: t,
|
|
2847
2847
|
develop: n,
|
|
@@ -2904,7 +2904,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2904
2904
|
var A, E;
|
|
2905
2905
|
l && x(D ? [(A = D[0]) == null ? void 0 : A.format(o), (E = D[1]) == null ? void 0 : E.format(o)] : null);
|
|
2906
2906
|
}, [l, x, D, o]);
|
|
2907
|
-
return /* @__PURE__ */
|
|
2907
|
+
return /* @__PURE__ */ ct("div", { onBlur: N, children: [
|
|
2908
2908
|
/* @__PURE__ */ b(
|
|
2909
2909
|
Ba,
|
|
2910
2910
|
{
|
|
@@ -2945,8 +2945,8 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2945
2945
|
[t, i]
|
|
2946
2946
|
), T = _(
|
|
2947
2947
|
(K) => {
|
|
2948
|
-
var
|
|
2949
|
-
return t && e ? ((
|
|
2948
|
+
var V;
|
|
2949
|
+
return t && e ? ((V = K.propsStore[`${t}_props`]) == null ? void 0 : V[e]) ?? null : null;
|
|
2950
2950
|
}
|
|
2951
2951
|
), O = _(
|
|
2952
2952
|
(K) => D && r ? K.getDataSet(D, r) : void 0
|
|
@@ -2957,7 +2957,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2957
2957
|
sessionId: t,
|
|
2958
2958
|
id: e,
|
|
2959
2959
|
develop: n
|
|
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 } = De(m), { options: M } =
|
|
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 } = De(m), { options: M } = un(
|
|
2961
2961
|
o == null ? void 0 : o.url,
|
|
2962
2962
|
{
|
|
2963
2963
|
valueKey: (o == null ? void 0 : o.codeKey) || "value",
|
|
@@ -2973,13 +2973,13 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2973
2973
|
[x, T]
|
|
2974
2974
|
), $ = j(
|
|
2975
2975
|
(K) => {
|
|
2976
|
-
const
|
|
2976
|
+
const V = K.target.value;
|
|
2977
2977
|
if (g) {
|
|
2978
|
-
g(
|
|
2978
|
+
g(V);
|
|
2979
2979
|
return;
|
|
2980
2980
|
}
|
|
2981
|
-
if (D && r && w(D, r,
|
|
2982
|
-
const { actionName: R, arg: L } = bt(c,
|
|
2981
|
+
if (D && r && w(D, r, V), p && N(V), c && t) {
|
|
2982
|
+
const { actionName: R, arg: L } = bt(c, V, {
|
|
2983
2983
|
id: e,
|
|
2984
2984
|
dataSet: i,
|
|
2985
2985
|
dataSetField: r
|
|
@@ -2999,12 +2999,12 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
2999
2999
|
e,
|
|
3000
3000
|
C
|
|
3001
3001
|
]
|
|
3002
|
-
),
|
|
3002
|
+
), z = j(() => {
|
|
3003
3003
|
h && N(H);
|
|
3004
3004
|
}, [h, N, H]);
|
|
3005
|
-
return /* @__PURE__ */
|
|
3005
|
+
return /* @__PURE__ */ ct("div", { onBlur: z, children: [
|
|
3006
3006
|
/* @__PURE__ */ b(
|
|
3007
|
-
|
|
3007
|
+
Ve.Group,
|
|
3008
3008
|
{
|
|
3009
3009
|
...P,
|
|
3010
3010
|
disabled: n ? !1 : P.disabled,
|
|
@@ -3012,12 +3012,12 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3012
3012
|
onChange: $,
|
|
3013
3013
|
buttonStyle: (T == null ? void 0 : T.buttonStyle) ?? l,
|
|
3014
3014
|
optionType: (T == null ? void 0 : T.optionType) ?? d,
|
|
3015
|
-
children: d === "button" ? B.map((K) => /* @__PURE__ */ b(
|
|
3015
|
+
children: d === "button" ? B.map((K) => /* @__PURE__ */ b(Ve.Button, { value: K.value, disabled: K.disabled, children: K.label }, K.value)) : /* @__PURE__ */ b(
|
|
3016
3016
|
Yt,
|
|
3017
3017
|
{
|
|
3018
3018
|
orientation: (T == null ? void 0 : T.direction) ?? u ?? "horizontal",
|
|
3019
3019
|
wrap: !0,
|
|
3020
|
-
children: B.map((K) => /* @__PURE__ */ b(
|
|
3020
|
+
children: B.map((K) => /* @__PURE__ */ b(Ve, { value: K.value, disabled: K.disabled, children: K.label }, K.value))
|
|
3021
3021
|
}
|
|
3022
3022
|
)
|
|
3023
3023
|
}
|
|
@@ -3066,7 +3066,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3066
3066
|
sessionId: t,
|
|
3067
3067
|
id: e,
|
|
3068
3068
|
develop: n
|
|
3069
|
-
}), { options: M } = De(S), { options: B } =
|
|
3069
|
+
}), { options: M } = De(S), { options: B } = un(
|
|
3070
3070
|
o == null ? void 0 : o.url,
|
|
3071
3071
|
{
|
|
3072
3072
|
valueKey: (o == null ? void 0 : o.codeKey) || "value",
|
|
@@ -3083,7 +3083,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3083
3083
|
var G;
|
|
3084
3084
|
return ((G = ae(P, Q)) == null ? void 0 : G.value) ?? Q;
|
|
3085
3085
|
});
|
|
3086
|
-
}, [c, A, N == null ? void 0 : N.values, s, P]),
|
|
3086
|
+
}, [c, A, N == null ? void 0 : N.values, s, P]), z = y(
|
|
3087
3087
|
() => Qt(w, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
|
|
3088
3088
|
[w, N]
|
|
3089
3089
|
), K = j((L) => {
|
|
@@ -3096,7 +3096,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3096
3096
|
const { actionName: G, arg: U } = bt(l, Q, { id: e, dataSet: i, dataSetField: r });
|
|
3097
3097
|
D(t, I(G, U));
|
|
3098
3098
|
}
|
|
3099
|
-
}, [p, O, r, T, h, E, l, t, e, D]),
|
|
3099
|
+
}, [p, O, r, T, h, E, l, t, e, D]), V = j((L) => {
|
|
3100
3100
|
if (g) {
|
|
3101
3101
|
g(L);
|
|
3102
3102
|
return;
|
|
@@ -3108,22 +3108,22 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3108
3108
|
}, [g, O, r, T, h, E, l, t, e, D]), R = j(() => {
|
|
3109
3109
|
v && E(c ? $ : H);
|
|
3110
3110
|
}, [v, E, c, $, H]);
|
|
3111
|
-
return c && P.length > 0 ? /* @__PURE__ */
|
|
3112
|
-
/* @__PURE__ */ b(se.Group, { ...
|
|
3111
|
+
return c && P.length > 0 ? /* @__PURE__ */ ct("div", { onBlur: R, children: [
|
|
3112
|
+
/* @__PURE__ */ b(se.Group, { ...z, value: $, onChange: V, disabled: n ? !1 : z.disabled, children: /* @__PURE__ */ b(
|
|
3113
3113
|
Yt,
|
|
3114
3114
|
{
|
|
3115
|
-
direction:
|
|
3115
|
+
direction: z.direction ?? x,
|
|
3116
3116
|
wrap: !0,
|
|
3117
3117
|
children: P.map((L) => /* @__PURE__ */ b(se, { value: L.value, disabled: L.disabled, children: L.label }, L.value))
|
|
3118
3118
|
}
|
|
3119
3119
|
) }),
|
|
3120
3120
|
k && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
|
|
3121
|
-
] }) : /* @__PURE__ */
|
|
3121
|
+
] }) : /* @__PURE__ */ ct("div", { onBlur: R, children: [
|
|
3122
3122
|
/* @__PURE__ */ b(
|
|
3123
3123
|
se,
|
|
3124
3124
|
{
|
|
3125
|
-
...
|
|
3126
|
-
disabled: n ? !1 :
|
|
3125
|
+
...z,
|
|
3126
|
+
disabled: n ? !1 : z.disabled,
|
|
3127
3127
|
checked: H,
|
|
3128
3128
|
onChange: K,
|
|
3129
3129
|
children: u
|
|
@@ -3185,7 +3185,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3185
3185
|
() => Qt(p, m ?? void 0),
|
|
3186
3186
|
[p, m]
|
|
3187
3187
|
);
|
|
3188
|
-
return /* @__PURE__ */
|
|
3188
|
+
return /* @__PURE__ */ ct("div", { onBlur: D, children: [
|
|
3189
3189
|
/* @__PURE__ */ b(
|
|
3190
3190
|
gr,
|
|
3191
3191
|
{
|
|
@@ -3225,17 +3225,17 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3225
3225
|
}
|
|
3226
3226
|
}, [o, g, r, p, a, t, e, v]);
|
|
3227
3227
|
return /* @__PURE__ */ b(pr, { ...d, disabled: n ? !1 : d.disabled, value: s, onChange: m });
|
|
3228
|
-
}, Ka = 200,
|
|
3228
|
+
}, Ka = 200, nr = (e, t, n = 1) => {
|
|
3229
3229
|
if (!Array.isArray(e)) return [];
|
|
3230
3230
|
const { codeKey: i, labelKey: r, childrenKey: a, maxLevel: o } = t;
|
|
3231
3231
|
return e.map((c) => {
|
|
3232
|
-
const l = n < o && Array.isArray(c == null ? void 0 : c[a]) ?
|
|
3232
|
+
const l = n < o && Array.isArray(c == null ? void 0 : c[a]) ? nr(c[a], t, n + 1) : void 0, d = {
|
|
3233
3233
|
value: String(c == null ? void 0 : c[i]),
|
|
3234
3234
|
label: c == null ? void 0 : c[r]
|
|
3235
3235
|
};
|
|
3236
3236
|
return l && l.length && (d.children = l), d;
|
|
3237
3237
|
});
|
|
3238
|
-
},
|
|
3238
|
+
}, An = (e) => !e || typeof e != "string" ? [] : e.includes(",") ? e.split(",").map((t) => t.trim()).filter((t) => t) : [e], La = (e, t) => {
|
|
3239
3239
|
const n = (i, r, a = []) => {
|
|
3240
3240
|
for (const o of i) {
|
|
3241
3241
|
const c = o.value, l = [...a, c];
|
|
@@ -3249,7 +3249,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3249
3249
|
return null;
|
|
3250
3250
|
};
|
|
3251
3251
|
return n(t, e) || [];
|
|
3252
|
-
},
|
|
3252
|
+
}, Cn = (e) => Array.isArray(e) && e.length > 0 && !Array.isArray(e[0]), Tn = (e) => Array.isArray(e) && e.length > 0 && Array.isArray(e[0]), Ec = ({
|
|
3253
3253
|
id: e,
|
|
3254
3254
|
sessionId: t,
|
|
3255
3255
|
develop: n,
|
|
@@ -3267,7 +3267,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3267
3267
|
remoteUrl: f,
|
|
3268
3268
|
...s
|
|
3269
3269
|
}) => {
|
|
3270
|
-
const m = _(($) => $.addCommand), u = _(($) => $.setDataSet), S =
|
|
3270
|
+
const m = _(($) => $.addCommand), u = _(($) => $.setDataSet), S = Mt(null), [x, C] = ht([]), [w, D] = ht(!1), T = y(
|
|
3271
3271
|
() => rt(t, i),
|
|
3272
3272
|
[t, i]
|
|
3273
3273
|
), O = _(
|
|
@@ -3281,22 +3281,22 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3281
3281
|
develop: n
|
|
3282
3282
|
}), k = y(() => (a == null ? void 0 : a.url) && x.length > 0, [a == null ? void 0 : a.url, x.length]), M = y(() => {
|
|
3283
3283
|
let $ = O ?? g ?? p ?? [];
|
|
3284
|
-
return typeof $ == "string" ? k ?
|
|
3284
|
+
return typeof $ == "string" ? k ? An($).map((K) => La(K, x)).filter((K) => Array.isArray(K) && K.length > 0) : [$] : Cn($) && k ? $.map((K) => An(K)).filter((K) => Array.isArray(K) && K.length > 0) : Tn($) && k ? $.filter((z) => Array.isArray(z) && z.length > 0) : $;
|
|
3285
3285
|
}, [O, g, p, k, x]), B = y(() => a != null && a.url && x.length > 0 ? x : h || [], [a == null ? void 0 : a.url, x, h]);
|
|
3286
|
-
|
|
3286
|
+
Dt(() => {
|
|
3287
3287
|
(async () => {
|
|
3288
3288
|
if (a != null && a.url) {
|
|
3289
3289
|
D(!0);
|
|
3290
3290
|
try {
|
|
3291
|
-
const
|
|
3292
|
-
codeKey:
|
|
3291
|
+
const z = await re({ url: a.url, method: "GET" }), K = Array.isArray(z) ? z : z != null && z.data ? Array.isArray(z.data) ? z.data : z.data.list || z.data.records || [] : [], V = a.codeKey || "value", R = a.labelKey || "label", L = a.childrenKey || "children", Q = a.maxLevel || 5, G = nr(K, {
|
|
3292
|
+
codeKey: V,
|
|
3293
3293
|
labelKey: R,
|
|
3294
3294
|
childrenKey: L,
|
|
3295
3295
|
maxLevel: Q
|
|
3296
3296
|
});
|
|
3297
3297
|
C(G);
|
|
3298
|
-
} catch (
|
|
3299
|
-
console.error("Failed to load remote options:",
|
|
3298
|
+
} catch (z) {
|
|
3299
|
+
console.error("Failed to load remote options:", z), C([]);
|
|
3300
3300
|
} finally {
|
|
3301
3301
|
D(!1);
|
|
3302
3302
|
}
|
|
@@ -3304,21 +3304,21 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3304
3304
|
})();
|
|
3305
3305
|
}, [a == null ? void 0 : a.url, a == null ? void 0 : a.codeKey, a == null ? void 0 : a.labelKey, a == null ? void 0 : a.childrenKey, a == null ? void 0 : a.maxLevel]);
|
|
3306
3306
|
const H = j(
|
|
3307
|
-
($,
|
|
3307
|
+
($, z) => {
|
|
3308
3308
|
if (v) {
|
|
3309
|
-
v($,
|
|
3309
|
+
v($, z);
|
|
3310
3310
|
return;
|
|
3311
3311
|
}
|
|
3312
3312
|
let K = $;
|
|
3313
|
-
if (
|
|
3313
|
+
if (Cn($) && k ? K = String($[$.length - 1] || "") : Tn($) && k && (K = $.map((V) => V.join(","))), T && r && u(T, r, K), l && (S.current && clearTimeout(S.current), S.current = setTimeout(() => {
|
|
3314
3314
|
S.current = null, N($);
|
|
3315
3315
|
}, Ka)), d && t) {
|
|
3316
|
-
const { actionName:
|
|
3316
|
+
const { actionName: V, arg: R } = bt(d, $, {
|
|
3317
3317
|
id: e,
|
|
3318
3318
|
dataSet: i,
|
|
3319
3319
|
dataSetField: r
|
|
3320
3320
|
});
|
|
3321
|
-
m(t, I(
|
|
3321
|
+
m(t, I(V, R));
|
|
3322
3322
|
}
|
|
3323
3323
|
},
|
|
3324
3324
|
[
|
|
@@ -3337,12 +3337,12 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3337
3337
|
), P = j(() => {
|
|
3338
3338
|
c && N(M);
|
|
3339
3339
|
}, [c, N, M]);
|
|
3340
|
-
return
|
|
3340
|
+
return Dt(
|
|
3341
3341
|
() => () => {
|
|
3342
3342
|
S.current && clearTimeout(S.current);
|
|
3343
3343
|
},
|
|
3344
3344
|
[]
|
|
3345
|
-
), /* @__PURE__ */
|
|
3345
|
+
), /* @__PURE__ */ ct("div", { style: { width: "100%" }, children: [
|
|
3346
3346
|
/* @__PURE__ */ b(
|
|
3347
3347
|
vr,
|
|
3348
3348
|
{
|
|
@@ -3381,16 +3381,16 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3381
3381
|
validateOnBlur: u,
|
|
3382
3382
|
...S
|
|
3383
3383
|
}) => {
|
|
3384
|
-
const x = _((
|
|
3384
|
+
const x = _((z) => z.addCommand), C = _((z) => z.setDataSet), w = y(
|
|
3385
3385
|
() => rt(t, i),
|
|
3386
3386
|
[t, i]
|
|
3387
3387
|
), D = _(
|
|
3388
|
-
(
|
|
3388
|
+
(z) => {
|
|
3389
3389
|
var K;
|
|
3390
|
-
return t && e ? ((K =
|
|
3390
|
+
return t && e ? ((K = z.propsStore[`${t}_props`]) == null ? void 0 : K[e]) ?? null : null;
|
|
3391
3391
|
}
|
|
3392
3392
|
), T = _(
|
|
3393
|
-
(
|
|
3393
|
+
(z) => w && r ? z.getDataSet(w, r) : void 0
|
|
3394
3394
|
), { validate: O, help: N } = Kt({
|
|
3395
3395
|
rules: s,
|
|
3396
3396
|
dataSet: i,
|
|
@@ -3405,13 +3405,13 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3405
3405
|
() => Qt(S, D ?? void 0),
|
|
3406
3406
|
[S, D]
|
|
3407
3407
|
), k = j(
|
|
3408
|
-
(
|
|
3408
|
+
(z, K, V) => {
|
|
3409
3409
|
if (o) {
|
|
3410
|
-
o(
|
|
3410
|
+
o(z, K, V);
|
|
3411
3411
|
return;
|
|
3412
3412
|
}
|
|
3413
|
-
if (w && r && C(w, r,
|
|
3414
|
-
const { actionName: R, arg: L } = bt(a,
|
|
3413
|
+
if (w && r && C(w, r, z), m && O(z), a && t) {
|
|
3414
|
+
const { actionName: R, arg: L } = bt(a, z, {
|
|
3415
3415
|
id: e,
|
|
3416
3416
|
dataSet: i,
|
|
3417
3417
|
dataSetField: r
|
|
@@ -3424,10 +3424,10 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3424
3424
|
u && O(A);
|
|
3425
3425
|
}, [u, O, A]), B = y(() => {
|
|
3426
3426
|
if (!f) return;
|
|
3427
|
-
const
|
|
3428
|
-
return Object.entries(f).forEach(([K,
|
|
3429
|
-
|
|
3430
|
-
}), Object.keys(
|
|
3427
|
+
const z = {};
|
|
3428
|
+
return Object.entries(f).forEach(([K, V]) => {
|
|
3429
|
+
V !== "" && V !== void 0 && V !== null && (z[K] = V);
|
|
3430
|
+
}), Object.keys(z).length > 0 ? z : void 0;
|
|
3431
3431
|
}, [f]), H = y(() => {
|
|
3432
3432
|
if (B)
|
|
3433
3433
|
return {
|
|
@@ -3435,7 +3435,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3435
3435
|
TreeSelect: B
|
|
3436
3436
|
}
|
|
3437
3437
|
};
|
|
3438
|
-
}, [B]), P = N ? "error" : void 0, $ = /* @__PURE__ */
|
|
3438
|
+
}, [B]), P = N ? "error" : void 0, $ = /* @__PURE__ */ ct("div", { onBlur: M, children: [
|
|
3439
3439
|
/* @__PURE__ */ b(
|
|
3440
3440
|
br,
|
|
3441
3441
|
{
|
|
@@ -3453,7 +3453,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3453
3453
|
),
|
|
3454
3454
|
N && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
|
|
3455
3455
|
] });
|
|
3456
|
-
return H ? /* @__PURE__ */ b(
|
|
3456
|
+
return H ? /* @__PURE__ */ b(Rt, { theme: H, children: $ }) : $;
|
|
3457
3457
|
}, $c = ({
|
|
3458
3458
|
id: e,
|
|
3459
3459
|
sessionId: t,
|
|
@@ -3473,13 +3473,13 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3473
3473
|
action: s,
|
|
3474
3474
|
...m
|
|
3475
3475
|
}) => {
|
|
3476
|
-
const u =
|
|
3476
|
+
const u = Re(i, r, t), S = u.dataSet, x = u.dataSetField, C = u.sessionId, w = _((J) => J.addCommand), D = _((J) => J.setDataSet), T = y(
|
|
3477
3477
|
() => rt(C, S),
|
|
3478
3478
|
[C, S]
|
|
3479
3479
|
), O = _(
|
|
3480
3480
|
(J) => {
|
|
3481
|
-
var
|
|
3482
|
-
return C && e ? ((
|
|
3481
|
+
var q;
|
|
3482
|
+
return C && e ? ((q = J.propsStore[`${C}_props`]) == null ? void 0 : q[e]) ?? null : null;
|
|
3483
3483
|
}
|
|
3484
3484
|
), N = _(
|
|
3485
3485
|
(J) => T && x ? J.getDataSet(T, x) : void 0
|
|
@@ -3490,32 +3490,32 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3490
3490
|
sessionId: C,
|
|
3491
3491
|
id: e,
|
|
3492
3492
|
develop: n
|
|
3493
|
-
}), k = j((J) => J.map((
|
|
3493
|
+
}), k = j((J) => J.map((q) => {
|
|
3494
3494
|
var et;
|
|
3495
|
-
return ((et =
|
|
3496
|
-
}).filter((
|
|
3497
|
-
const
|
|
3498
|
-
return J.map((Z,
|
|
3499
|
-
const
|
|
3495
|
+
return ((et = q == null ? void 0 : q.response) == null ? void 0 : et.src) ?? (q == null ? void 0 : q.src) ?? (q == null ? void 0 : q.url) ?? (q == null ? void 0 : q.thumbUrl) ?? "";
|
|
3496
|
+
}).filter((q) => q && typeof q == "string"), []), M = j((J) => {
|
|
3497
|
+
const q = Gt().viewRes, et = (Z) => (q ? q(Z) : Z) || Z;
|
|
3498
|
+
return J.map((Z, st) => {
|
|
3499
|
+
const dt = et(Z);
|
|
3500
3500
|
return {
|
|
3501
|
-
uid: `src-${
|
|
3501
|
+
uid: `src-${st}-${Z}`,
|
|
3502
3502
|
name: Z.split("/").pop() || Z,
|
|
3503
|
-
url:
|
|
3504
|
-
thumbUrl:
|
|
3503
|
+
url: dt,
|
|
3504
|
+
thumbUrl: dt,
|
|
3505
3505
|
status: "done",
|
|
3506
3506
|
response: { src: Z }
|
|
3507
3507
|
};
|
|
3508
3508
|
});
|
|
3509
3509
|
}, []), B = j((J) => {
|
|
3510
|
-
const
|
|
3510
|
+
const q = Gt().viewRes, et = (Z) => (Z && q ? q(Z) : Z) || Z;
|
|
3511
3511
|
return J.map((Z) => {
|
|
3512
|
-
var
|
|
3513
|
-
const
|
|
3514
|
-
for (const
|
|
3515
|
-
const
|
|
3516
|
-
|
|
3512
|
+
var W;
|
|
3513
|
+
const st = ((W = Z == null ? void 0 : Z.response) == null ? void 0 : W.src) ?? (Z == null ? void 0 : Z.src) ?? (Z == null ? void 0 : Z.url) ?? (Z == null ? void 0 : Z.thumbUrl) ?? "", dt = typeof st == "string" ? et(st) : st, Y = {};
|
|
3514
|
+
for (const ft of Object.keys(Z)) {
|
|
3515
|
+
const mt = Z[ft];
|
|
3516
|
+
mt instanceof File ? Y[ft] = mt : mt && typeof mt == "object" && !Array.isArray(mt) ? Y[ft] = { ...mt } : Y[ft] = mt;
|
|
3517
3517
|
}
|
|
3518
|
-
return
|
|
3518
|
+
return dt && typeof dt == "string" && (Y.url = dt, Y.thumbUrl = dt), Y;
|
|
3519
3519
|
});
|
|
3520
3520
|
}, []), [H, P] = ht(null), $ = y(() => {
|
|
3521
3521
|
const J = N ?? (O == null ? void 0 : O.fileList) ?? h;
|
|
@@ -3524,38 +3524,38 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3524
3524
|
if (Array.isArray(J))
|
|
3525
3525
|
return J.length > 0 && typeof J[0] == "string" ? M(J) : B(J);
|
|
3526
3526
|
}
|
|
3527
|
-
}, [N, O == null ? void 0 : O.fileList, h, M, B]),
|
|
3527
|
+
}, [N, O == null ? void 0 : O.fileList, h, M, B]), z = H ?? $, K = y(
|
|
3528
3528
|
() => Qt(m, O ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
|
|
3529
3529
|
[m, O]
|
|
3530
|
-
),
|
|
3531
|
-
const { file:
|
|
3530
|
+
), V = j((J) => J.size / 1024 / 1024 < f ? !0 : (Ce.error(`文件大小不能超过 ${f}MB`), !1), [f]), R = j(async (J) => {
|
|
3531
|
+
const { file: q, onSuccess: et, onError: Z, onProgress: st } = J;
|
|
3532
3532
|
if (Gt().upload)
|
|
3533
3533
|
try {
|
|
3534
|
-
|
|
3535
|
-
const Y = await
|
|
3534
|
+
st == null || st({ percent: 30 });
|
|
3535
|
+
const Y = await Xn(q, {
|
|
3536
3536
|
url: g,
|
|
3537
3537
|
headers: {
|
|
3538
|
-
Authorization:
|
|
3538
|
+
Authorization: rn() ? `Bearer ${rn()}` : ""
|
|
3539
3539
|
}
|
|
3540
3540
|
});
|
|
3541
|
-
|
|
3541
|
+
st == null || st({ percent: 100 }), et == null || et(Y, q);
|
|
3542
3542
|
} catch (Y) {
|
|
3543
|
-
Z == null || Z(Y),
|
|
3543
|
+
Z == null || Z(Y), Ce.error("上传失败");
|
|
3544
3544
|
}
|
|
3545
3545
|
else
|
|
3546
|
-
Z == null || Z(new Error("Upload handler not configured")),
|
|
3546
|
+
Z == null || Z(new Error("Upload handler not configured")), Ce.warning("上传功能未配置");
|
|
3547
3547
|
}, [g]), L = j(
|
|
3548
3548
|
(J) => {
|
|
3549
3549
|
if (v) {
|
|
3550
3550
|
v(J);
|
|
3551
3551
|
return;
|
|
3552
3552
|
}
|
|
3553
|
-
const
|
|
3554
|
-
T && x && (et.length > 0 || !Array.isArray(
|
|
3553
|
+
const q = Array.isArray(J.fileList) ? B(J.fileList) : J.fileList, et = Array.isArray(q) ? k(q) : [], Z = Array.isArray(q) && q.some((dt) => (dt == null ? void 0 : dt.status) === "uploading");
|
|
3554
|
+
T && x && (et.length > 0 || !Array.isArray(q) || q.length === 0) ? (D(T, x, et), P(null)) : Z ? P(q) : q.length === 0 && P(null), d && A(q), a && C && w(
|
|
3555
3555
|
C,
|
|
3556
3556
|
I(a, {
|
|
3557
3557
|
file: J.file,
|
|
3558
|
-
fileList:
|
|
3558
|
+
fileList: q,
|
|
3559
3559
|
src: et
|
|
3560
3560
|
})
|
|
3561
3561
|
);
|
|
@@ -3574,16 +3574,16 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3574
3574
|
k
|
|
3575
3575
|
]
|
|
3576
3576
|
), Q = j(() => {
|
|
3577
|
-
l && A(
|
|
3578
|
-
}, [l, A,
|
|
3579
|
-
var
|
|
3580
|
-
const
|
|
3581
|
-
if (!
|
|
3582
|
-
const et = ((
|
|
3583
|
-
return String(
|
|
3577
|
+
l && A(z);
|
|
3578
|
+
}, [l, A, z]), G = j((J) => {
|
|
3579
|
+
var dt;
|
|
3580
|
+
const q = J.url || J.thumbUrl;
|
|
3581
|
+
if (!q) return "";
|
|
3582
|
+
const et = ((dt = J.response) == null ? void 0 : dt.src) ?? (typeof q == "string" ? q : ""), Z = Gt().viewRes, st = et && Z ? Z(et) : q;
|
|
3583
|
+
return String(st).replace(/([?&])download=1(&|$)/, (Y, W, ft) => ft ? W : "");
|
|
3584
3584
|
}, []), U = j((J) => {
|
|
3585
|
-
var Z,
|
|
3586
|
-
const
|
|
3585
|
+
var Z, st;
|
|
3586
|
+
const q = ((Z = J.response) == null ? void 0 : Z.src) ?? J.name ?? "", et = ((st = String(q).split(".").pop()) == null ? void 0 : st.toLowerCase()) || "";
|
|
3587
3587
|
return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(et) || /^data:image\//.test(G(J));
|
|
3588
3588
|
}, [G]), [at, it] = ht({
|
|
3589
3589
|
url: "",
|
|
@@ -3592,31 +3592,31 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3592
3592
|
current: 0,
|
|
3593
3593
|
open: !1
|
|
3594
3594
|
}), nt = j((J) => {
|
|
3595
|
-
const
|
|
3596
|
-
if (
|
|
3597
|
-
if (U(J) && (
|
|
3598
|
-
const et =
|
|
3599
|
-
it({ url:
|
|
3600
|
-
} else U(J) || window.open(
|
|
3601
|
-
}, [G, U,
|
|
3602
|
-
(J) =>
|
|
3603
|
-
[
|
|
3595
|
+
const q = G(J);
|
|
3596
|
+
if (q)
|
|
3597
|
+
if (U(J) && (z != null && z.length)) {
|
|
3598
|
+
const et = z.filter((dt) => U(dt)), Z = et.map((dt) => G(dt)).filter(Boolean), st = et.findIndex((dt) => (dt.uid || dt.url) === (J.uid || J.url));
|
|
3599
|
+
it({ url: q, name: J.name, urls: Z, current: st >= 0 ? st : 0, open: !0 });
|
|
3600
|
+
} else U(J) || window.open(q, "_blank");
|
|
3601
|
+
}, [G, U, z]), St = !!Gt().upload && !s, gt = K, tt = gt.buttonText ?? o, ut = gt.listType ?? m.listType, ot = gt.maxCount, Ct = (z == null ? void 0 : z.length) ?? 0, kt = typeof ot == "number" && Ct >= ot, $t = j(
|
|
3602
|
+
(J) => kt ? (Ce.warning(`最多只能上传 ${ot} 个文件`), !1) : V(J),
|
|
3603
|
+
[kt, ot, V]
|
|
3604
3604
|
);
|
|
3605
|
-
return /* @__PURE__ */
|
|
3605
|
+
return /* @__PURE__ */ ct("div", { onBlur: Q, children: [
|
|
3606
3606
|
/* @__PURE__ */ b(
|
|
3607
3607
|
Sr,
|
|
3608
3608
|
{
|
|
3609
3609
|
...K,
|
|
3610
3610
|
disabled: n ? !1 : K.disabled,
|
|
3611
|
-
fileList:
|
|
3611
|
+
fileList: z,
|
|
3612
3612
|
onChange: L,
|
|
3613
3613
|
onPreview: nt,
|
|
3614
|
-
beforeUpload:
|
|
3615
|
-
customRequest:
|
|
3616
|
-
action:
|
|
3614
|
+
beforeUpload: $t,
|
|
3615
|
+
customRequest: St ? R : void 0,
|
|
3616
|
+
action: St ? void 0 : s || g,
|
|
3617
3617
|
openFileDialogOnClick: !n,
|
|
3618
|
-
children: !
|
|
3619
|
-
/* @__PURE__ */ b(
|
|
3618
|
+
children: !kt && (p || (ut === "picture-card" || ut === "picture-circle" ? /* @__PURE__ */ ct("button", { style: { border: 0, background: "none" }, type: "button", children: [
|
|
3619
|
+
/* @__PURE__ */ b(Pn, {}),
|
|
3620
3620
|
/* @__PURE__ */ b("div", { style: { marginTop: 8 }, children: tt })
|
|
3621
3621
|
] }) : /* @__PURE__ */ b(Xt, { icon: /* @__PURE__ */ b(Ir, {}), children: tt })))
|
|
3622
3622
|
}
|
|
@@ -3627,19 +3627,19 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3627
3627
|
{
|
|
3628
3628
|
preview: {
|
|
3629
3629
|
current: at.current,
|
|
3630
|
-
onOpenChange: (J) => !J && it((
|
|
3630
|
+
onOpenChange: (J) => !J && it((q) => ({ ...q, open: !1 }))
|
|
3631
3631
|
},
|
|
3632
|
-
children: at.urls.map((J,
|
|
3632
|
+
children: at.urls.map((J, q) => /* @__PURE__ */ b(
|
|
3633
3633
|
Ft,
|
|
3634
3634
|
{
|
|
3635
3635
|
src: J,
|
|
3636
3636
|
style: { width: 1, height: 1 },
|
|
3637
3637
|
preview: {
|
|
3638
|
-
open: at.open && at.current ===
|
|
3638
|
+
open: at.open && at.current === q,
|
|
3639
3639
|
onOpenChange: (et) => !et && it((Z) => ({ ...Z, open: !1 }))
|
|
3640
3640
|
}
|
|
3641
3641
|
},
|
|
3642
|
-
|
|
3642
|
+
q
|
|
3643
3643
|
))
|
|
3644
3644
|
}
|
|
3645
3645
|
) : /* @__PURE__ */ b(
|
|
@@ -3650,7 +3650,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3650
3650
|
style: { width: 1, height: 1 },
|
|
3651
3651
|
preview: {
|
|
3652
3652
|
open: at.open,
|
|
3653
|
-
onOpenChange: (J) => !J && it((
|
|
3653
|
+
onOpenChange: (J) => !J && it((q) => ({ ...q, open: !1 }))
|
|
3654
3654
|
}
|
|
3655
3655
|
}
|
|
3656
3656
|
) })
|
|
@@ -3695,16 +3695,16 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3695
3695
|
if (g != null && g.queryApi) {
|
|
3696
3696
|
D(!0);
|
|
3697
3697
|
try {
|
|
3698
|
-
const { queryApi: H, keyWordParamName: P = "keyword", valueKey: $ = "value", labelKey:
|
|
3699
|
-
P && (
|
|
3700
|
-
G.key && (
|
|
3698
|
+
const { queryApi: H, keyWordParamName: P = "keyword", valueKey: $ = "value", labelKey: z = "label", fixedParams: K = [] } = g, V = {};
|
|
3699
|
+
P && (V[P] = B), Array.isArray(K) && K.forEach((G) => {
|
|
3700
|
+
G.key && (V[G.key] = G.value);
|
|
3701
3701
|
});
|
|
3702
|
-
const R = await O(H,
|
|
3702
|
+
const R = await O(H, V);
|
|
3703
3703
|
let L = [];
|
|
3704
3704
|
Array.isArray(R) ? L = R : R && Array.isArray(R.data) ? L = R.data : R && R.data && Array.isArray(R.data.records) ? L = R.data.records : R && R.result && Array.isArray(R.result) && (L = R.result);
|
|
3705
3705
|
const Q = L.map((G) => ({
|
|
3706
3706
|
value: G[$],
|
|
3707
|
-
label: G[
|
|
3707
|
+
label: G[z] || G[$],
|
|
3708
3708
|
...G
|
|
3709
3709
|
}));
|
|
3710
3710
|
w(Q);
|
|
@@ -3766,7 +3766,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3766
3766
|
children: g,
|
|
3767
3767
|
...f
|
|
3768
3768
|
}) => {
|
|
3769
|
-
const [s] =
|
|
3769
|
+
const [s] = Ee.useForm(), m = _((w) => w.addCommand), u = _((w) => w.setDataSet), S = y(
|
|
3770
3770
|
() => rt(t, i),
|
|
3771
3771
|
[t, i]
|
|
3772
3772
|
), x = (w) => {
|
|
@@ -3782,9 +3782,9 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3782
3782
|
}
|
|
3783
3783
|
o && t && m(t, I(o, null));
|
|
3784
3784
|
};
|
|
3785
|
-
return /* @__PURE__ */
|
|
3785
|
+
return /* @__PURE__ */ ct(Ee, { ...f, form: s, onFinish: x, children: [
|
|
3786
3786
|
g,
|
|
3787
|
-
(c || l) && /* @__PURE__ */ b(
|
|
3787
|
+
(c || l) && /* @__PURE__ */ b(Ee.Item, { children: /* @__PURE__ */ ct(Yt, { children: [
|
|
3788
3788
|
c && /* @__PURE__ */ b(Xt, { type: "primary", htmlType: "submit", children: d }),
|
|
3789
3789
|
l && /* @__PURE__ */ b(Xt, { onClick: C, children: v })
|
|
3790
3790
|
] }) })
|
|
@@ -3795,7 +3795,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3795
3795
|
develop: n,
|
|
3796
3796
|
children: i,
|
|
3797
3797
|
...r
|
|
3798
|
-
}) => /* @__PURE__ */ b(
|
|
3798
|
+
}) => /* @__PURE__ */ b(Ee.Item, { ...r, children: i }), Ht = (e, t) => {
|
|
3799
3799
|
if (e == null) return t;
|
|
3800
3800
|
if (typeof e == "string")
|
|
3801
3801
|
try {
|
|
@@ -3837,7 +3837,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3837
3837
|
const k = _((tt) => tt.addCommand), M = _((tt) => tt.getDataSet), B = _((tt) => tt.setDataSet), H = y(
|
|
3838
3838
|
() => rt(t, i),
|
|
3839
3839
|
[t, i]
|
|
3840
|
-
), P = y(() => Ht(N, {}), [N]), $ = y(() => Ht(A, {}), [A]),
|
|
3840
|
+
), P = y(() => Ht(N, {}), [N]), $ = y(() => Ht(A, {}), [A]), z = y(() => Ht(f, ["源列表", "目标列表"]), [f]), K = y(() => Ht(s, [">", "<"]), [s]), V = y(() => Ht(m, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [m]), R = y(() => Ht(p, !1), [p]), L = y(() => {
|
|
3841
3841
|
if (H && r) {
|
|
3842
3842
|
const tt = M(H, r);
|
|
3843
3843
|
if (Array.isArray(tt)) return tt;
|
|
@@ -3847,27 +3847,27 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3847
3847
|
const tt = M(H, `${r}.dataSource`);
|
|
3848
3848
|
if (Array.isArray(tt)) return tt;
|
|
3849
3849
|
}
|
|
3850
|
-
}, [H, r, M]), G = y(() => n ? Q ?? Ht(a, []) : H ? Q ?? [] : Ht(a, []), [n, H, Q, a]), U = y(() => n ? L ?? Ht(o, []) : H ? L ?? [] : Ht(o, []), [n, H, L, o]), at = y(() => Ht(c, []), [c]), it = j((tt,
|
|
3850
|
+
}, [H, r, M]), G = y(() => n ? Q ?? Ht(a, []) : H ? Q ?? [] : Ht(a, []), [n, H, Q, a]), U = y(() => n ? L ?? Ht(o, []) : H ? L ?? [] : Ht(o, []), [n, H, L, o]), at = y(() => Ht(c, []), [c]), it = j((tt, ut, ot) => {
|
|
3851
3851
|
if (w) {
|
|
3852
|
-
w(tt,
|
|
3852
|
+
w(tt, ut, ot);
|
|
3853
3853
|
return;
|
|
3854
3854
|
}
|
|
3855
|
-
H && r && B(H, r, tt), u && t && k(t, I(u, { targetKeys: tt, direction:
|
|
3856
|
-
}, [w, H, r, B, u, t, k]), nt = j((tt,
|
|
3855
|
+
H && r && B(H, r, tt), u && t && k(t, I(u, { targetKeys: tt, direction: ut, moveKeys: ot }));
|
|
3856
|
+
}, [w, H, r, B, u, t, k]), nt = j((tt, ut) => {
|
|
3857
3857
|
if (D) {
|
|
3858
|
-
D(tt,
|
|
3858
|
+
D(tt, ut);
|
|
3859
3859
|
return;
|
|
3860
3860
|
}
|
|
3861
|
-
S && t && k(t, I(S, { sourceSelectedKeys: tt, targetSelectedKeys:
|
|
3862
|
-
}, [D, S, t, k]), pt = j((tt,
|
|
3861
|
+
S && t && k(t, I(S, { sourceSelectedKeys: tt, targetSelectedKeys: ut }));
|
|
3862
|
+
}, [D, S, t, k]), pt = j((tt, ut) => {
|
|
3863
3863
|
if (T) {
|
|
3864
|
-
T(tt,
|
|
3864
|
+
T(tt, ut);
|
|
3865
3865
|
return;
|
|
3866
3866
|
}
|
|
3867
|
-
x && t && k(t, I(x, { direction: tt, value:
|
|
3868
|
-
}, [T, x, t, k]),
|
|
3867
|
+
x && t && k(t, I(x, { direction: tt, value: ut }));
|
|
3868
|
+
}, [T, x, t, k]), St = j((tt, ut) => {
|
|
3869
3869
|
if (O) {
|
|
3870
|
-
O(tt,
|
|
3870
|
+
O(tt, ut);
|
|
3871
3871
|
return;
|
|
3872
3872
|
}
|
|
3873
3873
|
C && t && k(t, I(C, { direction: tt }));
|
|
@@ -3883,20 +3883,20 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3883
3883
|
oneWay: h,
|
|
3884
3884
|
pagination: R,
|
|
3885
3885
|
status: g || void 0,
|
|
3886
|
-
titles:
|
|
3886
|
+
titles: z,
|
|
3887
3887
|
actions: K,
|
|
3888
|
-
locale:
|
|
3888
|
+
locale: V,
|
|
3889
3889
|
onChange: it,
|
|
3890
3890
|
onSelectChange: nt,
|
|
3891
3891
|
onSearch: pt,
|
|
3892
|
-
onScroll:
|
|
3892
|
+
onScroll: St,
|
|
3893
3893
|
styles: P,
|
|
3894
3894
|
render: (tt) => tt.title,
|
|
3895
3895
|
...E
|
|
3896
3896
|
}
|
|
3897
3897
|
);
|
|
3898
|
-
return $ && Object.keys($).length > 0 ? /* @__PURE__ */ b(
|
|
3899
|
-
},
|
|
3898
|
+
return $ && Object.keys($).length > 0 ? /* @__PURE__ */ b(Rt, { theme: { components: { Transfer: $ } }, children: gt }) : gt;
|
|
3899
|
+
}, an = (e, t) => {
|
|
3900
3900
|
if (e == null) return t;
|
|
3901
3901
|
if (typeof e == "string")
|
|
3902
3902
|
try {
|
|
@@ -3911,7 +3911,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3911
3911
|
if (!e) return null;
|
|
3912
3912
|
const t = Jt[e];
|
|
3913
3913
|
return t ? /* @__PURE__ */ b(t, {}) : null;
|
|
3914
|
-
}, Va = (e) =>
|
|
3914
|
+
}, Va = (e) => an(e, []).map((n) => ({
|
|
3915
3915
|
label: n.label,
|
|
3916
3916
|
value: n.value,
|
|
3917
3917
|
icon: n.icon ? za(n.icon) : void 0,
|
|
@@ -3941,7 +3941,7 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3941
3941
|
const S = _((M) => M.addCommand), x = _((M) => M.getDataSet), C = _((M) => M.setDataSet), w = y(
|
|
3942
3942
|
() => rt(t, i),
|
|
3943
3943
|
[t, i]
|
|
3944
|
-
), D = y(() =>
|
|
3944
|
+
), D = y(() => an(s, {}), [s]), T = y(() => an(m, {}), [m]), O = y(() => Va(a), [a]), A = y(() => {
|
|
3945
3945
|
if (w && r) {
|
|
3946
3946
|
const M = x(w, r);
|
|
3947
3947
|
if (typeof M == "string") return M;
|
|
@@ -3969,10 +3969,10 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
3969
3969
|
styles: D
|
|
3970
3970
|
}
|
|
3971
3971
|
);
|
|
3972
|
-
return T && Object.keys(T).length > 0 ? /* @__PURE__ */ b(
|
|
3972
|
+
return T && Object.keys(T).length > 0 ? /* @__PURE__ */ b(Rt, { theme: { components: { Segmented: T } }, children: k }) : k;
|
|
3973
3973
|
}, qa = (e, t, n) => {
|
|
3974
|
-
const [i, r] = ht(void 0), a = t === "100%", o =
|
|
3975
|
-
return
|
|
3974
|
+
const [i, r] = ht(void 0), a = t === "100%", o = Mt(0);
|
|
3975
|
+
return Hn(() => {
|
|
3976
3976
|
if (!a || !e.current) {
|
|
3977
3977
|
r(void 0);
|
|
3978
3978
|
return;
|
|
@@ -4022,14 +4022,14 @@ const pc = Wt.memo(nr), An = 200, vc = ({
|
|
|
4022
4022
|
clearTimeout(d), o.current && cancelAnimationFrame(o.current), v.disconnect(), h.disconnect();
|
|
4023
4023
|
};
|
|
4024
4024
|
}, [a, n]), a ? i : t;
|
|
4025
|
-
},
|
|
4025
|
+
}, Nn = /* @__PURE__ */ new Map();
|
|
4026
4026
|
function Wa(e) {
|
|
4027
|
-
let t =
|
|
4028
|
-
return t || (t =
|
|
4027
|
+
let t = Nn.get(e);
|
|
4028
|
+
return t || (t = ln(e), Nn.set(e, t)), t;
|
|
4029
4029
|
}
|
|
4030
4030
|
const Ha = ({ dictCode: e, value: t }) => {
|
|
4031
4031
|
const [n, i] = ht(null);
|
|
4032
|
-
if (
|
|
4032
|
+
if (Dt(() => {
|
|
4033
4033
|
if (!e) {
|
|
4034
4034
|
i([]);
|
|
4035
4035
|
return;
|
|
@@ -4118,12 +4118,12 @@ const Ha = ({ dictCode: e, value: t }) => {
|
|
|
4118
4118
|
return n;
|
|
4119
4119
|
}
|
|
4120
4120
|
}), t;
|
|
4121
|
-
},
|
|
4121
|
+
}, He = 15, de = 10, Fa = [
|
|
4122
4122
|
{ value: "small", label: "紧凑" },
|
|
4123
4123
|
{ value: "middle", label: "默认" },
|
|
4124
4124
|
{ value: "large", label: "宽松" }
|
|
4125
4125
|
];
|
|
4126
|
-
function
|
|
4126
|
+
function kn(e, t, n, i) {
|
|
4127
4127
|
const r = {};
|
|
4128
4128
|
return t.forEach((a) => {
|
|
4129
4129
|
a.width !== void 0 && (r[a.key] = a.width);
|
|
@@ -4163,7 +4163,7 @@ function Za(e, t, n, i, r) {
|
|
|
4163
4163
|
size: (e == null ? void 0 : e.size) ?? r ?? "middle"
|
|
4164
4164
|
};
|
|
4165
4165
|
}
|
|
4166
|
-
const
|
|
4166
|
+
const Pe = 420, On = 440, Xa = ({
|
|
4167
4167
|
open: e,
|
|
4168
4168
|
position: t,
|
|
4169
4169
|
rowIndexVisible: n,
|
|
@@ -4178,7 +4178,7 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4178
4178
|
onClose: h
|
|
4179
4179
|
}) => {
|
|
4180
4180
|
const [p, g] = ht(n), [f, s] = ht(i), [m, u] = ht(o), [S, x] = ht(l), [C, w] = ht(null);
|
|
4181
|
-
|
|
4181
|
+
Dt(() => {
|
|
4182
4182
|
e && (g(n), s([...i]), u(o), x(l));
|
|
4183
4183
|
}, [e, n, i, o, l]);
|
|
4184
4184
|
const D = j(
|
|
@@ -4187,12 +4187,12 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4187
4187
|
},
|
|
4188
4188
|
[v]
|
|
4189
4189
|
), T = j(
|
|
4190
|
-
(R, L, Q, G) =>
|
|
4190
|
+
(R, L, Q, G) => kn(R, L, Q ?? m, G ?? S),
|
|
4191
4191
|
[m, S]
|
|
4192
4192
|
), O = j(() => {
|
|
4193
4193
|
g(r);
|
|
4194
4194
|
const R = a.map((L) => ({ ...L }));
|
|
4195
|
-
s(R), u(c), x(d), D(
|
|
4195
|
+
s(R), u(c), x(d), D(kn(r, R, c, d));
|
|
4196
4196
|
}, [r, a, c, d, D]), N = j(
|
|
4197
4197
|
(R) => {
|
|
4198
4198
|
s((L) => {
|
|
@@ -4222,7 +4222,7 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4222
4222
|
s((Q) => {
|
|
4223
4223
|
const G = Q.find((nt) => nt.key === R);
|
|
4224
4224
|
if (!G) return Q;
|
|
4225
|
-
const U = typeof G.width == "number" ? G.width : 80, at = Math.max(
|
|
4225
|
+
const U = typeof G.width == "number" ? G.width : 80, at = Math.max(He, U + L), it = Q.map((nt) => nt.key === R ? { ...nt, width: at } : nt);
|
|
4226
4226
|
return D(T(p, it)), it;
|
|
4227
4227
|
});
|
|
4228
4228
|
},
|
|
@@ -4251,27 +4251,27 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4251
4251
|
[p, f, m, T, D]
|
|
4252
4252
|
), $ = (R) => (L) => {
|
|
4253
4253
|
w(R), L.dataTransfer.effectAllowed = "move", L.dataTransfer.setData("text/plain", String(R));
|
|
4254
|
-
},
|
|
4254
|
+
}, z = (R) => (L) => {
|
|
4255
4255
|
L.preventDefault(), L.dataTransfer.dropEffect = "move", !(C === null || C === R) && (M(C, R), w(R));
|
|
4256
|
-
}, K = () => w(null),
|
|
4256
|
+
}, K = () => w(null), V = t != null ? (() => {
|
|
4257
4257
|
let R = t.y, L = t.x;
|
|
4258
|
-
return typeof window < "u" && (L +
|
|
4258
|
+
return typeof window < "u" && (L + Pe > window.innerWidth && (L = window.innerWidth - Pe - 16), L < 16 && (L = 16), R + On > window.innerHeight && (R = Math.max(16, window.innerHeight - On - 16)), R < 16 && (R = 16)), { margin: 0, top: R, left: L };
|
|
4259
4259
|
})() : void 0;
|
|
4260
4260
|
return /* @__PURE__ */ b(
|
|
4261
|
-
|
|
4261
|
+
Bn,
|
|
4262
4262
|
{
|
|
4263
4263
|
title: "列设置",
|
|
4264
4264
|
open: e,
|
|
4265
4265
|
onCancel: h,
|
|
4266
4266
|
footer: null,
|
|
4267
|
-
width:
|
|
4267
|
+
width: Pe,
|
|
4268
4268
|
destroyOnHidden: !0,
|
|
4269
4269
|
centered: t == null,
|
|
4270
|
-
style:
|
|
4270
|
+
style: V,
|
|
4271
4271
|
mask: !1,
|
|
4272
4272
|
className: `and-table-column-setting-modal${t != null ? " and-table-column-setting-modal-positioned" : ""}`,
|
|
4273
|
-
children: /* @__PURE__ */
|
|
4274
|
-
/* @__PURE__ */ b("div", { className: "and-table-column-setting-header", children: /* @__PURE__ */
|
|
4273
|
+
children: /* @__PURE__ */ ct("div", { className: "and-table-column-setting-body", children: [
|
|
4274
|
+
/* @__PURE__ */ b("div", { className: "and-table-column-setting-header", children: /* @__PURE__ */ ct("div", { className: "and-table-column-setting-header-row", children: [
|
|
4275
4275
|
/* @__PURE__ */ b(
|
|
4276
4276
|
se,
|
|
4277
4277
|
{
|
|
@@ -4281,10 +4281,10 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4281
4281
|
}
|
|
4282
4282
|
),
|
|
4283
4283
|
/* @__PURE__ */ b(se, { checked: m, onChange: (R) => H(R.target.checked), children: "自动滚动" }),
|
|
4284
|
-
/* @__PURE__ */
|
|
4284
|
+
/* @__PURE__ */ ct(Yt, { align: "center", children: [
|
|
4285
4285
|
/* @__PURE__ */ b("span", { className: "and-table-column-setting-label", children: "表格" }),
|
|
4286
4286
|
/* @__PURE__ */ b(
|
|
4287
|
-
|
|
4287
|
+
Rn,
|
|
4288
4288
|
{
|
|
4289
4289
|
size: "small",
|
|
4290
4290
|
value: S,
|
|
@@ -4295,8 +4295,8 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4295
4295
|
)
|
|
4296
4296
|
] })
|
|
4297
4297
|
] }) }),
|
|
4298
|
-
/* @__PURE__ */ b("div", { className: "and-table-column-setting-list-wrap", children: /* @__PURE__ */
|
|
4299
|
-
/* @__PURE__ */ b("thead", { children: /* @__PURE__ */
|
|
4298
|
+
/* @__PURE__ */ b("div", { className: "and-table-column-setting-list-wrap", children: /* @__PURE__ */ ct("table", { className: "and-table-column-setting-table", children: [
|
|
4299
|
+
/* @__PURE__ */ b("thead", { children: /* @__PURE__ */ ct("tr", { children: [
|
|
4300
4300
|
/* @__PURE__ */ b("th", { className: "and-table-column-setting-th-drag", children: "排序" }),
|
|
4301
4301
|
/* @__PURE__ */ b("th", { className: "and-table-column-setting-th-name", children: "列名/可见" }),
|
|
4302
4302
|
/* @__PURE__ */ b("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
|
|
@@ -4304,21 +4304,21 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4304
4304
|
] }) }),
|
|
4305
4305
|
/* @__PURE__ */ b("tbody", { children: f.map((R, L) => {
|
|
4306
4306
|
const Q = typeof R.width == "number" ? R.width : null, G = R.width === "auto" || R.width === void 0 && Q === null;
|
|
4307
|
-
return /* @__PURE__ */
|
|
4307
|
+
return /* @__PURE__ */ ct(
|
|
4308
4308
|
"tr",
|
|
4309
4309
|
{
|
|
4310
4310
|
className: `and-table-column-setting-row ${C === L ? "and-table-column-setting-row-dragging" : ""}`,
|
|
4311
4311
|
draggable: !0,
|
|
4312
4312
|
onDragStart: $(L),
|
|
4313
|
-
onDragOver:
|
|
4313
|
+
onDragOver: z(L),
|
|
4314
4314
|
onDragEnd: K,
|
|
4315
4315
|
children: [
|
|
4316
4316
|
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ b("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ b(ti, {}) }) }),
|
|
4317
|
-
/* @__PURE__ */
|
|
4317
|
+
/* @__PURE__ */ ct("td", { className: "and-table-column-setting-td-name", children: [
|
|
4318
4318
|
/* @__PURE__ */ b(se, { checked: R.visible, onChange: () => N(R.key) }),
|
|
4319
4319
|
/* @__PURE__ */ b("span", { className: "and-table-column-setting-title", title: R.title, children: R.title })
|
|
4320
4320
|
] }),
|
|
4321
|
-
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */
|
|
4321
|
+
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */ ct("div", { className: "and-table-column-setting-width", children: [
|
|
4322
4322
|
/* @__PURE__ */ b(
|
|
4323
4323
|
"span",
|
|
4324
4324
|
{
|
|
@@ -4329,17 +4329,17 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4329
4329
|
}
|
|
4330
4330
|
),
|
|
4331
4331
|
/* @__PURE__ */ b(
|
|
4332
|
-
|
|
4332
|
+
$n,
|
|
4333
4333
|
{
|
|
4334
4334
|
size: "small",
|
|
4335
|
-
min:
|
|
4335
|
+
min: He,
|
|
4336
4336
|
step: de,
|
|
4337
4337
|
value: G ? void 0 : Q ?? 80,
|
|
4338
4338
|
placeholder: "auto",
|
|
4339
4339
|
controls: !1,
|
|
4340
4340
|
style: { width: 44 },
|
|
4341
4341
|
onChange: (U) => {
|
|
4342
|
-
U == null || typeof U == "string" && U === "" ? E(R.key, "auto") : E(R.key, Math.max(
|
|
4342
|
+
U == null || typeof U == "string" && U === "" ? E(R.key, "auto") : E(R.key, Math.max(He, Number(U)));
|
|
4343
4343
|
}
|
|
4344
4344
|
}
|
|
4345
4345
|
),
|
|
@@ -4349,18 +4349,18 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4349
4349
|
className: "and-table-column-setting-fix-btn",
|
|
4350
4350
|
onClick: () => k(R.key, de),
|
|
4351
4351
|
title: `加 ${de}px`,
|
|
4352
|
-
children: /* @__PURE__ */ b(
|
|
4352
|
+
children: /* @__PURE__ */ b(Pn, {})
|
|
4353
4353
|
}
|
|
4354
4354
|
)
|
|
4355
4355
|
] }) }),
|
|
4356
|
-
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */
|
|
4356
|
+
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ ct(Yt, { className: "and-table-column-setting-fix", children: [
|
|
4357
4357
|
/* @__PURE__ */ b(
|
|
4358
4358
|
"span",
|
|
4359
4359
|
{
|
|
4360
4360
|
className: `and-table-column-setting-fix-btn ${R.fixed === "left" ? "active" : ""}`,
|
|
4361
4361
|
onClick: () => A(R.key, R.fixed === "left" ? !1 : "left"),
|
|
4362
4362
|
title: "固定到左侧",
|
|
4363
|
-
children: /* @__PURE__ */ b(
|
|
4363
|
+
children: /* @__PURE__ */ b(Un, {})
|
|
4364
4364
|
}
|
|
4365
4365
|
),
|
|
4366
4366
|
/* @__PURE__ */ b("span", { className: "and-table-column-setting-fix-divider", children: "|" }),
|
|
@@ -4370,7 +4370,7 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4370
4370
|
className: `and-table-column-setting-fix-btn ${R.fixed === "right" ? "active" : ""}`,
|
|
4371
4371
|
onClick: () => A(R.key, R.fixed === "right" ? !1 : "right"),
|
|
4372
4372
|
title: "固定到右侧",
|
|
4373
|
-
children: /* @__PURE__ */ b(
|
|
4373
|
+
children: /* @__PURE__ */ b(Yn, {})
|
|
4374
4374
|
}
|
|
4375
4375
|
)
|
|
4376
4376
|
] }) })
|
|
@@ -4420,13 +4420,13 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4420
4420
|
columnSettingsKey: H,
|
|
4421
4421
|
...P
|
|
4422
4422
|
}) => {
|
|
4423
|
-
const $ = _((F) => F.addCommand),
|
|
4424
|
-
if (F == null) return
|
|
4423
|
+
const $ = _((F) => F.addCommand), z = _((F) => F.getDataSet), K = _((F) => F.setDataSet), [V, R] = ht([]), L = Mt(null), [Q, G] = ht(void 0), U = j((F, lt) => {
|
|
4424
|
+
if (F == null) return lt;
|
|
4425
4425
|
if (typeof F == "string")
|
|
4426
4426
|
try {
|
|
4427
|
-
return JSON.parse(F) ??
|
|
4427
|
+
return JSON.parse(F) ?? lt;
|
|
4428
4428
|
} catch {
|
|
4429
|
-
return
|
|
4429
|
+
return lt;
|
|
4430
4430
|
}
|
|
4431
4431
|
return F;
|
|
4432
4432
|
}, []), at = y(() => Array.isArray(a) ? a : [], [a]), it = y(() => Array.isArray(o) ? o : [], [o]), nt = y(
|
|
@@ -4440,161 +4440,161 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4440
4440
|
[t, i]
|
|
4441
4441
|
), pt = _(
|
|
4442
4442
|
(F) => {
|
|
4443
|
-
var
|
|
4444
|
-
return nt.columnSettingOpen ? ((
|
|
4443
|
+
var lt;
|
|
4444
|
+
return nt.columnSettingOpen ? ((lt = F.dataSets[nt.columnSettingOpen]) == null ? void 0 : lt.value) === !0 : !1;
|
|
4445
4445
|
}
|
|
4446
|
-
),
|
|
4447
|
-
|
|
4446
|
+
), St = 420;
|
|
4447
|
+
Hn(() => {
|
|
4448
4448
|
if (!pt || !L.current) return;
|
|
4449
4449
|
const F = L.current.querySelector(".ant-table-thead") || L.current.querySelector(".ant-table-header");
|
|
4450
4450
|
if (!F) return;
|
|
4451
|
-
const
|
|
4451
|
+
const lt = F.getBoundingClientRect();
|
|
4452
4452
|
G({
|
|
4453
|
-
x:
|
|
4454
|
-
y:
|
|
4453
|
+
x: lt.right - St,
|
|
4454
|
+
y: lt.bottom + 8
|
|
4455
4455
|
});
|
|
4456
4456
|
}, [pt]);
|
|
4457
4457
|
const gt = _((F) => {
|
|
4458
|
-
var
|
|
4459
|
-
const
|
|
4460
|
-
return typeof
|
|
4461
|
-
}), tt = bi(nt.dataSet, r),
|
|
4458
|
+
var Tt;
|
|
4459
|
+
const lt = nt.columnSettings ? (Tt = F.dataSets[nt.columnSettings]) == null ? void 0 : Tt.value : void 0;
|
|
4460
|
+
return typeof lt == "object" && lt !== null ? lt : void 0;
|
|
4461
|
+
}), tt = bi(nt.dataSet, r), ut = y(() => nt.dataSet ? tt : (c == null ? void 0 : c.data) || [], [nt.dataSet, tt, c == null ? void 0 : c.data]), ot = y(() => U(M, {}), [M, U]), Ct = ot && Object.keys(ot).length > 0, kt = y(
|
|
4462
4462
|
() => Ct ? { components: { Table: ot } } : void 0,
|
|
4463
4463
|
[Ct, ot]
|
|
4464
|
-
),
|
|
4464
|
+
), $t = _(
|
|
4465
4465
|
(F) => nt.pagination ? F.dataSets[nt.pagination] : void 0
|
|
4466
|
-
), J = y(() => nt.pagination ?
|
|
4467
|
-
if (!
|
|
4468
|
-
const F = typeof s == "object" ? s : {},
|
|
4466
|
+
), J = y(() => nt.pagination ? z(nt.pagination, "") || {} : {}, [nt.pagination, z, $t]), q = y(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), et = y(() => {
|
|
4467
|
+
if (!q) return !1;
|
|
4468
|
+
const F = typeof s == "object" ? s : {}, lt = P || {}, Tt = F.showSizeChanger ?? lt["pagination-showSizeChanger"] ?? !0, wt = F.showQuickJumper ?? lt["pagination-showQuickJumper"] ?? !1, xt = F.simple ?? lt["pagination-simple"] ?? !1, Lt = F.defaultPageSize ?? lt["pagination-defaultPageSize"] ?? 10, Pt = F.pageSizeOptions ?? lt["pagination-pageSizeOptions"] ?? "10,20,50,100", ze = typeof Pt == "string" ? Pt.split(",").map((te) => parseInt(String(te).trim(), 10) || 10).filter((te) => !isNaN(te)) : Array.isArray(Pt) ? Pt : [10, 20, 50, 100];
|
|
4469
4469
|
return {
|
|
4470
4470
|
...J,
|
|
4471
|
-
showSizeChanger:
|
|
4472
|
-
showQuickJumper:
|
|
4471
|
+
showSizeChanger: Tt,
|
|
4472
|
+
showQuickJumper: wt,
|
|
4473
4473
|
simple: xt,
|
|
4474
|
-
defaultPageSize:
|
|
4475
|
-
pageSizeOptions:
|
|
4474
|
+
defaultPageSize: Lt,
|
|
4475
|
+
pageSizeOptions: ze,
|
|
4476
4476
|
showTotal: (te, oe) => (F.showTotal || "共 ${total} 条").replace("${total}", String(te)).replace("${range[0]}", String(oe[0])).replace("${range[1]}", String(oe[1])).replace("${range}", `${oe[0]}-${oe[1]}`),
|
|
4477
4477
|
onChange: (te, oe) => {
|
|
4478
4478
|
nt.pagination && K(nt.pagination, "", { ...J, current: te, pageSize: oe }), f && t && $(t, I(f, null));
|
|
4479
4479
|
},
|
|
4480
4480
|
hideOnSinglePage: !1
|
|
4481
4481
|
};
|
|
4482
|
-
}, [
|
|
4483
|
-
t && $(t, I(F.action, { ...
|
|
4484
|
-
}, [t, $]),
|
|
4485
|
-
let
|
|
4486
|
-
F.fixed === !0 || F.fixed === "left" ?
|
|
4487
|
-
const
|
|
4482
|
+
}, [q, s, P, J, nt.pagination, K, f, t, $]), Z = j((F, lt) => {
|
|
4483
|
+
t && $(t, I(F.action, { ...lt }));
|
|
4484
|
+
}, [t, $]), st = y(() => at.map((F) => {
|
|
4485
|
+
let lt = !1;
|
|
4486
|
+
F.fixed === !0 || F.fixed === "left" ? lt = "left" : F.fixed === "right" && (lt = "right");
|
|
4487
|
+
const Tt = F.width;
|
|
4488
4488
|
return {
|
|
4489
4489
|
key: String(F.key ?? F.dataIndex ?? ""),
|
|
4490
4490
|
title: typeof F.title == "string" ? F.title : "列",
|
|
4491
4491
|
visible: F.visible !== !1,
|
|
4492
|
-
fixed:
|
|
4493
|
-
width: typeof
|
|
4492
|
+
fixed: lt,
|
|
4493
|
+
width: typeof Tt == "number" ? Tt : "auto"
|
|
4494
4494
|
};
|
|
4495
|
-
}).filter((F) => F.key), [at]),
|
|
4495
|
+
}).filter((F) => F.key), [at]), dt = g === !0, Y = !1, W = S === "small" || S === "large" ? S : "middle", { rowIndexVisible: ft, items: mt, scrollX: jt, size: X } = y(() => Za(
|
|
4496
4496
|
gt,
|
|
4497
|
-
|
|
4498
|
-
|
|
4497
|
+
st,
|
|
4498
|
+
dt,
|
|
4499
4499
|
Y,
|
|
4500
|
-
|
|
4501
|
-
), [gt,
|
|
4500
|
+
W
|
|
4501
|
+
), [gt, st, dt, Y, W]), vt = !!(i && t), Et = y(() => {
|
|
4502
4502
|
const F = [];
|
|
4503
|
-
|
|
4503
|
+
ft && F.push({
|
|
4504
4504
|
title: "序号",
|
|
4505
4505
|
key: "rowIndex",
|
|
4506
4506
|
width: 60,
|
|
4507
4507
|
align: "center",
|
|
4508
|
-
render: (
|
|
4509
|
-
const Pt = J.current || 1,
|
|
4510
|
-
return (Pt - 1) *
|
|
4508
|
+
render: (wt, xt, Lt) => {
|
|
4509
|
+
const Pt = J.current || 1, ze = J.pageSize || 10;
|
|
4510
|
+
return (Pt - 1) * ze + Lt + 1;
|
|
4511
4511
|
}
|
|
4512
4512
|
});
|
|
4513
|
-
const
|
|
4514
|
-
return
|
|
4515
|
-
const xt =
|
|
4513
|
+
const lt = new Map(at.map((wt) => [String(wt.key ?? wt.dataIndex ?? ""), wt]));
|
|
4514
|
+
return mt.filter((wt) => wt.visible).forEach((wt) => {
|
|
4515
|
+
const xt = lt.get(wt.key);
|
|
4516
4516
|
if (!xt) return;
|
|
4517
|
-
const
|
|
4517
|
+
const Lt = wt.fixed || void 0, Pt = wt.width === "auto" || wt.width === void 0 ? void 0 : wt.width;
|
|
4518
4518
|
F.push(Qa({
|
|
4519
4519
|
...xt,
|
|
4520
4520
|
dataIndex: xt.dataIndex || xt.key,
|
|
4521
|
-
fixed:
|
|
4521
|
+
fixed: Lt || xt.fixed,
|
|
4522
4522
|
width: Pt ?? xt.width
|
|
4523
4523
|
}));
|
|
4524
4524
|
}), l !== !1 && it.length > 0 && F.push({
|
|
4525
4525
|
title: "操作",
|
|
4526
4526
|
key: "action",
|
|
4527
|
-
render: (
|
|
4527
|
+
render: (wt, xt) => /* @__PURE__ */ b(Yt, { children: it.map((Lt, Pt) => /* @__PURE__ */ b(Ar, { title: Lt.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => Z(Lt, xt), style: { marginRight: 5 }, children: Lt.title }) }, Pt)) })
|
|
4528
4528
|
}), F;
|
|
4529
4529
|
}, [
|
|
4530
4530
|
at,
|
|
4531
4531
|
it,
|
|
4532
|
-
|
|
4533
|
-
|
|
4532
|
+
ft,
|
|
4533
|
+
mt,
|
|
4534
4534
|
l,
|
|
4535
4535
|
J,
|
|
4536
4536
|
Z
|
|
4537
|
-
]),
|
|
4537
|
+
]), Bt = j(() => {
|
|
4538
4538
|
nt.columnSettingOpen && K(nt.columnSettingOpen, "", !1);
|
|
4539
|
-
}, [nt.columnSettingOpen, K]),
|
|
4539
|
+
}, [nt.columnSettingOpen, K]), Vt = j(
|
|
4540
4540
|
(F) => {
|
|
4541
4541
|
nt.columnSettings && K(nt.columnSettings, "value", F);
|
|
4542
4542
|
},
|
|
4543
4543
|
[nt.columnSettings, K]
|
|
4544
|
-
),
|
|
4544
|
+
), ir = y(() => {
|
|
4545
4545
|
if (!v && d)
|
|
4546
4546
|
return {
|
|
4547
|
-
selectedRowKeys:
|
|
4548
|
-
onChange: (F,
|
|
4547
|
+
selectedRowKeys: V,
|
|
4548
|
+
onChange: (F, lt, Tt) => {
|
|
4549
4549
|
R(F), nt.selected && K(nt.selected, "", F), h != null && h.trim() && t && $(t, I(h.trim(), {
|
|
4550
4550
|
selectedRowKeys: F,
|
|
4551
|
-
selectedRows:
|
|
4552
|
-
info:
|
|
4551
|
+
selectedRows: lt,
|
|
4552
|
+
info: Tt
|
|
4553
4553
|
}));
|
|
4554
4554
|
}
|
|
4555
4555
|
};
|
|
4556
|
-
}, [d, v,
|
|
4556
|
+
}, [d, v, V, nt.selected, K, h, t, $]), fn = j((F) => {
|
|
4557
4557
|
if (!v) return;
|
|
4558
|
-
const
|
|
4559
|
-
R(
|
|
4560
|
-
}, [v, h, t, p, nt.selected, K, $]), ar = j((F) => v &&
|
|
4558
|
+
const Tt = [F[p]];
|
|
4559
|
+
R(Tt), nt.selected && K(nt.selected, "", Tt), h != null && h.trim() && t && $(t, I(h.trim(), { record: F, selectedRowKeys: Tt }));
|
|
4560
|
+
}, [v, h, t, p, nt.selected, K, $]), ar = j((F) => v && V.includes(F[p]) ? "ant-table-row-selected" : "", [v, p, V]), or = j((F) => v ? { onClick: () => fn(F), style: { cursor: "pointer" } } : {}, [v, fn]), { style: cr, className: sr, ...fe } = P, _t = y(() => {
|
|
4561
4561
|
if (C) return C;
|
|
4562
|
-
let F = fe["scroll-x"],
|
|
4563
|
-
if (String(F) === "true" ? F = !0 : String(F) === "false" ? F = void 0 : F === "max-content" && (F = "max-content"), (
|
|
4564
|
-
}, [C, fe["scroll-x"], fe["scroll-y"]]),
|
|
4565
|
-
if (!
|
|
4566
|
-
const F = vt ?
|
|
4567
|
-
return F !== void 0 ||
|
|
4568
|
-
}, [
|
|
4569
|
-
let F = null,
|
|
4570
|
-
const
|
|
4562
|
+
let F = fe["scroll-x"], lt = fe["scroll-y"];
|
|
4563
|
+
if (String(F) === "true" ? F = !0 : String(F) === "false" ? F = void 0 : F === "max-content" && (F = "max-content"), (lt === "" || lt === null || lt === void 0) && (lt = void 0), F !== void 0 || lt !== void 0) return { x: F, y: lt };
|
|
4564
|
+
}, [C, fe["scroll-x"], fe["scroll-y"]]), Le = qa(L, _t == null ? void 0 : _t.y, q), lr = y(() => {
|
|
4565
|
+
if (!_t && !vt) return;
|
|
4566
|
+
const F = vt ? jt ? !0 : "max-content" : _t == null ? void 0 : _t.x, lt = (_t == null ? void 0 : _t.y) === "100%" ? Le : _t == null ? void 0 : _t.y;
|
|
4567
|
+
return F !== void 0 || lt !== void 0 ? { x: F, y: lt } : _t ? _t.y === "100%" ? { x: _t.x, y: Le } : _t : void 0;
|
|
4568
|
+
}, [_t, Le, vt, jt]), { titleSlot: xe, summarySlot: Ae, footerSlot: dn, otherChildren: ur } = y(() => {
|
|
4569
|
+
let F = null, lt = null, Tt = null;
|
|
4570
|
+
const wt = [];
|
|
4571
4571
|
return Wt.Children.forEach(k, (xt) => {
|
|
4572
4572
|
if (!Wt.isValidElement(xt)) {
|
|
4573
|
-
|
|
4573
|
+
wt.push(xt);
|
|
4574
4574
|
return;
|
|
4575
4575
|
}
|
|
4576
|
-
const
|
|
4577
|
-
|
|
4578
|
-
}), { titleSlot: F, summarySlot:
|
|
4576
|
+
const Lt = xt.props["data-slot-type"];
|
|
4577
|
+
Lt === "title" ? F = xt : Lt === "summary" ? lt = xt : Lt === "footer" ? Tt = xt : wt.push(xt);
|
|
4578
|
+
}), { titleSlot: F, summarySlot: lt, footerSlot: Tt, otherChildren: wt };
|
|
4579
4579
|
}, [k]), fr = y(() => {
|
|
4580
|
-
if (!
|
|
4580
|
+
if (!xe) {
|
|
4581
4581
|
if (N) return N;
|
|
4582
4582
|
if (D && n) return () => /* @__PURE__ */ b("div", { "data-table-slot-container": "title", style: { minHeight: 20 } });
|
|
4583
4583
|
}
|
|
4584
|
-
}, [D,
|
|
4584
|
+
}, [D, xe, N, n]), dr = y(() => {
|
|
4585
4585
|
if (A) return A;
|
|
4586
|
-
if (T &&
|
|
4587
|
-
return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan:
|
|
4586
|
+
if (T && Ae)
|
|
4587
|
+
return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: Et.length, style: { padding: 0 }, children: Ae }) });
|
|
4588
4588
|
if (T && n)
|
|
4589
|
-
return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan:
|
|
4590
|
-
}, [T,
|
|
4589
|
+
return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: Et.length, style: { padding: 0 }, children: /* @__PURE__ */ b("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
|
|
4590
|
+
}, [T, Ae, A, Et.length, n]), mn = /* @__PURE__ */ b(
|
|
4591
4591
|
Cr,
|
|
4592
4592
|
{
|
|
4593
4593
|
...fe,
|
|
4594
|
-
columns:
|
|
4595
|
-
dataSource:
|
|
4594
|
+
columns: Et,
|
|
4595
|
+
dataSource: ut,
|
|
4596
4596
|
rowKey: p,
|
|
4597
|
-
rowSelection:
|
|
4597
|
+
rowSelection: ir,
|
|
4598
4598
|
rowClassName: ar,
|
|
4599
4599
|
pagination: et,
|
|
4600
4600
|
locale: { emptyText: m },
|
|
@@ -4608,56 +4608,56 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4608
4608
|
onRow: or
|
|
4609
4609
|
}
|
|
4610
4610
|
);
|
|
4611
|
-
return /* @__PURE__ */
|
|
4612
|
-
|
|
4611
|
+
return /* @__PURE__ */ ct(
|
|
4612
|
+
Kn,
|
|
4613
4613
|
{
|
|
4614
4614
|
ref: L,
|
|
4615
4615
|
vertical: !0,
|
|
4616
4616
|
style: { width: "100%", height: "100%", ...cr },
|
|
4617
4617
|
className: sr,
|
|
4618
4618
|
children: [
|
|
4619
|
-
|
|
4620
|
-
/* @__PURE__ */
|
|
4619
|
+
xe && /* @__PURE__ */ b("div", { "data-table-slot": "title", children: xe }),
|
|
4620
|
+
/* @__PURE__ */ ct("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
|
|
4621
4621
|
v && (() => {
|
|
4622
|
-
const F = (ot == null ? void 0 : ot.rowSelectedBg) || "#e6f4ff",
|
|
4622
|
+
const F = (ot == null ? void 0 : ot.rowSelectedBg) || "#e6f4ff", lt = (ot == null ? void 0 : ot.rowSelectedHoverBg) || (ot == null ? void 0 : ot.rowSelectedBg) || "#bae0ff", Tt = ot == null ? void 0 : ot.rowSelectedColor, wt = (ot == null ? void 0 : ot.rowSelectedLinkColor) ?? Tt, xt = (ot == null ? void 0 : ot.rowSelectedLinkHoverColor) ?? wt;
|
|
4623
4623
|
return /* @__PURE__ */ b("style", { children: `
|
|
4624
4624
|
.ant-table-row-selected > td {
|
|
4625
4625
|
background: ${F} !important;
|
|
4626
|
-
${
|
|
4626
|
+
${Tt ? `color: ${Tt};` : ""}
|
|
4627
4627
|
}
|
|
4628
4628
|
.ant-table-row-selected:hover > td {
|
|
4629
|
-
background: ${
|
|
4629
|
+
background: ${lt} !important;
|
|
4630
4630
|
}
|
|
4631
|
-
${
|
|
4631
|
+
${wt ? `.ant-table-row-selected > td a { color: ${wt}; }` : ""}
|
|
4632
4632
|
${xt ? `.ant-table-row-selected > td a:hover { color: ${xt}; }` : ""}
|
|
4633
4633
|
` });
|
|
4634
4634
|
})(),
|
|
4635
|
-
|
|
4635
|
+
kt ? /* @__PURE__ */ b(Rt, { theme: kt, children: mn }) : mn
|
|
4636
4636
|
] }),
|
|
4637
|
-
|
|
4638
|
-
|
|
4637
|
+
Ae,
|
|
4638
|
+
dn && /* @__PURE__ */ b("div", { "data-table-slot": "footer", children: dn }),
|
|
4639
4639
|
ur,
|
|
4640
4640
|
vt && /* @__PURE__ */ b(
|
|
4641
4641
|
Xa,
|
|
4642
4642
|
{
|
|
4643
4643
|
open: pt,
|
|
4644
4644
|
position: Q,
|
|
4645
|
-
rowIndexVisible:
|
|
4646
|
-
columnItems:
|
|
4647
|
-
defaultRowIndexVisible:
|
|
4648
|
-
defaultColumnItems:
|
|
4649
|
-
scrollX:
|
|
4645
|
+
rowIndexVisible: ft,
|
|
4646
|
+
columnItems: mt,
|
|
4647
|
+
defaultRowIndexVisible: dt,
|
|
4648
|
+
defaultColumnItems: st,
|
|
4649
|
+
scrollX: jt,
|
|
4650
4650
|
defaultScrollX: Y,
|
|
4651
4651
|
size: X,
|
|
4652
|
-
defaultSize:
|
|
4653
|
-
onSave:
|
|
4654
|
-
onClose:
|
|
4652
|
+
defaultSize: W,
|
|
4653
|
+
onSave: Vt,
|
|
4654
|
+
onClose: Bt
|
|
4655
4655
|
}
|
|
4656
4656
|
)
|
|
4657
4657
|
]
|
|
4658
4658
|
}
|
|
4659
4659
|
);
|
|
4660
|
-
}, { Text: Ia } =
|
|
4660
|
+
}, { Text: Ia } = sn, Vc = ({
|
|
4661
4661
|
id: e,
|
|
4662
4662
|
sessionId: t,
|
|
4663
4663
|
develop: n,
|
|
@@ -4677,9 +4677,9 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4677
4677
|
clickAction: s,
|
|
4678
4678
|
...m
|
|
4679
4679
|
}) => {
|
|
4680
|
-
const u = _((
|
|
4680
|
+
const u = _((V) => V.getDataSet), S = _((V) => {
|
|
4681
4681
|
var R;
|
|
4682
|
-
return !t || !e ? null : ((R =
|
|
4682
|
+
return !t || !e ? null : ((R = V.propsStore[`${t}_props`]) == null ? void 0 : R[e]) ?? null;
|
|
4683
4683
|
}), x = y(
|
|
4684
4684
|
() => d === "selectedCount" && o && !a ? o : a,
|
|
4685
4685
|
[d, o, a]
|
|
@@ -4689,10 +4689,10 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4689
4689
|
), w = y(
|
|
4690
4690
|
() => rt(t, x),
|
|
4691
4691
|
[t, x]
|
|
4692
|
-
), D = _((
|
|
4692
|
+
), D = _((V) => {
|
|
4693
4693
|
if (!w) return;
|
|
4694
4694
|
const R = Se(w).baseName;
|
|
4695
|
-
return
|
|
4695
|
+
return V.dataSets[R];
|
|
4696
4696
|
}), { options: T } = De(d), O = y(() => {
|
|
4697
4697
|
if (w && C)
|
|
4698
4698
|
return u(w, C);
|
|
@@ -4705,46 +4705,46 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4705
4705
|
return {};
|
|
4706
4706
|
}
|
|
4707
4707
|
return h;
|
|
4708
|
-
}, [h]), A = (
|
|
4708
|
+
}, [h]), A = (V) => V == null || V === "" || typeof V == "string" && V.trim() === "", E = y(() => n ? i : O != null && O !== "" ? A(O) && p ? i : O : (S == null ? void 0 : S.content) !== void 0 ? S.content : i, [n, O, S == null ? void 0 : S.content, i, p]), k = y(() => {
|
|
4709
4709
|
if (d && T.length > 0 && E !== void 0 && E !== null) {
|
|
4710
|
-
const
|
|
4711
|
-
return (
|
|
4710
|
+
const V = ae(T, E);
|
|
4711
|
+
return (V == null ? void 0 : V.label) ?? E;
|
|
4712
4712
|
}
|
|
4713
4713
|
return E;
|
|
4714
4714
|
}, [d, T, E]), M = y(() => {
|
|
4715
4715
|
if (n)
|
|
4716
4716
|
return k;
|
|
4717
|
-
const
|
|
4718
|
-
return
|
|
4717
|
+
const V = (S == null ? void 0 : S.formatType) || v;
|
|
4718
|
+
return V && k !== void 0 && k !== null ? Ca(k, V, N) : k;
|
|
4719
4719
|
}, [n, k, v, N, S == null ? void 0 : S.formatType]), B = y(() => {
|
|
4720
|
-
const
|
|
4720
|
+
const V = { ...m };
|
|
4721
4721
|
return S && typeof S == "object" && Object.keys(S).forEach((R) => {
|
|
4722
|
-
!["content", "formatType", "formatValue", "clickAction"].includes(R) && S[R] !== void 0 && S[R] !== null && (
|
|
4723
|
-
}),
|
|
4724
|
-
}, [m, S]), H = (S == null ? void 0 : S.color) ?? l, P =
|
|
4722
|
+
!["content", "formatType", "formatValue", "clickAction"].includes(R) && S[R] !== void 0 && S[R] !== null && (V[R] = S[R]);
|
|
4723
|
+
}), V;
|
|
4724
|
+
}, [m, S]), H = (S == null ? void 0 : S.color) ?? l, P = Ke(H), $ = y(() => {
|
|
4725
4725
|
if (!f) return;
|
|
4726
|
-
let
|
|
4726
|
+
let V = f;
|
|
4727
4727
|
if (typeof f == "string")
|
|
4728
4728
|
try {
|
|
4729
|
-
|
|
4729
|
+
V = JSON.parse(f);
|
|
4730
4730
|
} catch {
|
|
4731
4731
|
return;
|
|
4732
4732
|
}
|
|
4733
|
-
if (!
|
|
4733
|
+
if (!V || typeof V != "object") return;
|
|
4734
4734
|
const R = {};
|
|
4735
|
-
return Object.entries(
|
|
4735
|
+
return Object.entries(V).forEach(([L, Q]) => {
|
|
4736
4736
|
Q !== "" && Q !== void 0 && Q !== null && (R[L] = Q);
|
|
4737
4737
|
}), Object.keys(R).length > 0 ? R : void 0;
|
|
4738
|
-
}, [f]),
|
|
4739
|
-
const
|
|
4738
|
+
}, [f]), z = y(() => {
|
|
4739
|
+
const V = { width: "100%" }, R = (S == null ? void 0 : S.fontSize) ?? c;
|
|
4740
4740
|
if (R) {
|
|
4741
4741
|
const L = R && !String(R).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${R}px` : R;
|
|
4742
|
-
|
|
4742
|
+
V.fontSize = L;
|
|
4743
4743
|
}
|
|
4744
|
-
return P && (
|
|
4745
|
-
}, [c, P, S == null ? void 0 : S.fontSize]), K = /* @__PURE__ */ b(Ia, { ...B, style: { ...
|
|
4746
|
-
return $ ? /* @__PURE__ */ b(
|
|
4747
|
-
}, { Title: to } =
|
|
4744
|
+
return P && (V.color = P), V;
|
|
4745
|
+
}, [c, P, S == null ? void 0 : S.fontSize]), K = /* @__PURE__ */ b(Ia, { ...B, style: { ...z, ...g, ...B.style }, children: M != null && M !== "" ? String(M) : r });
|
|
4746
|
+
return $ ? /* @__PURE__ */ b(Rt, { theme: { token: $ }, children: K }) : K;
|
|
4747
|
+
}, { Title: to } = sn, qc = ({
|
|
4748
4748
|
id: e,
|
|
4749
4749
|
sessionId: t,
|
|
4750
4750
|
develop: n,
|
|
@@ -4763,7 +4763,7 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4763
4763
|
), f = y(() => t && e ? p(t, e) : null, [t, e, p]), s = y(() => {
|
|
4764
4764
|
if (g && o)
|
|
4765
4765
|
return h(g, o);
|
|
4766
|
-
}, [g, o, 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 =
|
|
4766
|
+
}, [g, o, 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 = Ke(u), x = y(() => {
|
|
4767
4767
|
const w = {};
|
|
4768
4768
|
return S && (w.color = S), w;
|
|
4769
4769
|
}, [S]), C = y(() => {
|
|
@@ -4773,7 +4773,7 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4773
4773
|
}), w;
|
|
4774
4774
|
}, [v, f]);
|
|
4775
4775
|
return /* @__PURE__ */ b(to, { level: c, ...C, style: { ...x, ...d, ...C.style }, children: m || r });
|
|
4776
|
-
}, { Paragraph: eo } =
|
|
4776
|
+
}, { Paragraph: eo } = sn, Wc = ({
|
|
4777
4777
|
id: e,
|
|
4778
4778
|
sessionId: t,
|
|
4779
4779
|
develop: n,
|
|
@@ -4791,7 +4791,7 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4791
4791
|
), g = y(() => t && e ? h(t, e) : null, [t, e, h]), f = y(() => {
|
|
4792
4792
|
if (p && o)
|
|
4793
4793
|
return v(p, o);
|
|
4794
|
-
}, [p, o, v]), 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 =
|
|
4794
|
+
}, [p, o, v]), 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 = Ke(m), S = y(() => {
|
|
4795
4795
|
const C = {};
|
|
4796
4796
|
return u && (C.color = u), C;
|
|
4797
4797
|
}, [u]), x = y(() => {
|
|
@@ -4899,141 +4899,141 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
4899
4899
|
token: B,
|
|
4900
4900
|
...H
|
|
4901
4901
|
}) => {
|
|
4902
|
-
const P = _((
|
|
4902
|
+
const P = _((W) => W.addCommand), $ = _((W) => W.setDataSet), z = y(
|
|
4903
4903
|
() => rt(t, i),
|
|
4904
4904
|
[t, i]
|
|
4905
4905
|
), K = y(
|
|
4906
4906
|
() => i ? rt(t, `${i}_selected`) : void 0,
|
|
4907
4907
|
[t, i]
|
|
4908
|
-
),
|
|
4908
|
+
), V = y(
|
|
4909
4909
|
() => i ? rt(t, `${i}_checked`) : void 0,
|
|
4910
4910
|
[t, i]
|
|
4911
4911
|
), R = y(
|
|
4912
4912
|
() => i ? rt(t, `${i}_expanded`) : void 0,
|
|
4913
4913
|
[t, i]
|
|
4914
|
-
), L = _((
|
|
4915
|
-
if (!
|
|
4914
|
+
), L = _((W) => {
|
|
4915
|
+
if (!z) return;
|
|
4916
4916
|
if (r)
|
|
4917
|
-
return
|
|
4918
|
-
const
|
|
4919
|
-
if (!
|
|
4920
|
-
if (Array.isArray(
|
|
4921
|
-
const
|
|
4922
|
-
return Array.isArray(
|
|
4917
|
+
return W.getDataSet(z, r);
|
|
4918
|
+
const ft = W.dataSets[z];
|
|
4919
|
+
if (!ft) return;
|
|
4920
|
+
if (Array.isArray(ft)) return ft;
|
|
4921
|
+
const mt = ft.value;
|
|
4922
|
+
return Array.isArray(mt) ? mt : void 0;
|
|
4923
4923
|
}), Q = _(
|
|
4924
|
-
(
|
|
4924
|
+
(W) => K ? W.getDataSet(K, "") : void 0
|
|
4925
4925
|
), G = _(
|
|
4926
|
-
(
|
|
4926
|
+
(W) => V ? W.getDataSet(V, "") : void 0
|
|
4927
4927
|
), U = _(
|
|
4928
|
-
(
|
|
4929
|
-
), at = y(() => n ? L ?? E ?? [] :
|
|
4930
|
-
(
|
|
4928
|
+
(W) => R ? W.getDataSet(R, "") : void 0
|
|
4929
|
+
), at = y(() => n ? L ?? E ?? [] : z ? L ?? [] : E ?? [], [n, z, L, E]), it = Q, nt = G, pt = U, St = j(
|
|
4930
|
+
(W, ft) => {
|
|
4931
4931
|
if (m) {
|
|
4932
|
-
m(
|
|
4932
|
+
m(W, ft);
|
|
4933
4933
|
return;
|
|
4934
4934
|
}
|
|
4935
|
-
K && $(K, "",
|
|
4935
|
+
K && $(K, "", W), a && t && P(t, I(a, { selectedKeys: W }));
|
|
4936
4936
|
},
|
|
4937
4937
|
[m, K, t, $, a, P]
|
|
4938
4938
|
), gt = j(
|
|
4939
|
-
(
|
|
4939
|
+
(W, ft) => {
|
|
4940
4940
|
if (u) {
|
|
4941
|
-
u(
|
|
4941
|
+
u(W, ft);
|
|
4942
4942
|
return;
|
|
4943
4943
|
}
|
|
4944
|
-
|
|
4944
|
+
V && $(V, "", W), o && t && P(t, I(o, { checkedKeys: W }));
|
|
4945
4945
|
},
|
|
4946
|
-
[u,
|
|
4946
|
+
[u, V, t, $, o, P]
|
|
4947
4947
|
), tt = j(
|
|
4948
|
-
(
|
|
4948
|
+
(W, ft) => {
|
|
4949
4949
|
if (S) {
|
|
4950
|
-
S(
|
|
4950
|
+
S(W, ft);
|
|
4951
4951
|
return;
|
|
4952
4952
|
}
|
|
4953
|
-
R && $(R, "",
|
|
4953
|
+
R && $(R, "", W), c && t && P(t, I(c, { expandedKeys: W, expanded: ft.expanded }));
|
|
4954
4954
|
},
|
|
4955
4955
|
[S, R, t, $, c, P]
|
|
4956
|
-
),
|
|
4957
|
-
(
|
|
4956
|
+
), ut = j(
|
|
4957
|
+
(W) => {
|
|
4958
4958
|
if (x) {
|
|
4959
|
-
x(
|
|
4959
|
+
x(W);
|
|
4960
4960
|
return;
|
|
4961
4961
|
}
|
|
4962
|
-
l && t && P(t, I(l,
|
|
4962
|
+
l && t && P(t, I(l, W));
|
|
4963
4963
|
},
|
|
4964
4964
|
[x, l, t, P]
|
|
4965
4965
|
), ot = j(
|
|
4966
|
-
(
|
|
4966
|
+
(W) => {
|
|
4967
4967
|
if (C) {
|
|
4968
|
-
C(
|
|
4968
|
+
C(W);
|
|
4969
4969
|
return;
|
|
4970
4970
|
}
|
|
4971
|
-
d && t && P(t, I(d,
|
|
4971
|
+
d && t && P(t, I(d, W));
|
|
4972
4972
|
},
|
|
4973
4973
|
[C, d, t, P]
|
|
4974
4974
|
), Ct = j(
|
|
4975
|
-
(
|
|
4975
|
+
(W) => {
|
|
4976
4976
|
if (w) {
|
|
4977
|
-
w(
|
|
4977
|
+
w(W);
|
|
4978
4978
|
return;
|
|
4979
4979
|
}
|
|
4980
|
-
v && t && P(t, I(v,
|
|
4980
|
+
v && t && P(t, I(v, W));
|
|
4981
4981
|
},
|
|
4982
4982
|
[w, v, t, P]
|
|
4983
|
-
),
|
|
4984
|
-
(
|
|
4983
|
+
), kt = j(
|
|
4984
|
+
(W) => {
|
|
4985
4985
|
if (D) {
|
|
4986
|
-
D(
|
|
4986
|
+
D(W);
|
|
4987
4987
|
return;
|
|
4988
4988
|
}
|
|
4989
|
-
h && t && P(t, I(h,
|
|
4989
|
+
h && t && P(t, I(h, W));
|
|
4990
4990
|
},
|
|
4991
4991
|
[D, h, t, P]
|
|
4992
|
-
),
|
|
4993
|
-
(
|
|
4992
|
+
), $t = j(
|
|
4993
|
+
(W) => {
|
|
4994
4994
|
if (T) {
|
|
4995
|
-
T(
|
|
4995
|
+
T(W);
|
|
4996
4996
|
return;
|
|
4997
4997
|
}
|
|
4998
|
-
p && t && P(t, I(p,
|
|
4998
|
+
p && t && P(t, I(p, W));
|
|
4999
4999
|
},
|
|
5000
5000
|
[T, p, t, P]
|
|
5001
5001
|
), J = j(
|
|
5002
|
-
(
|
|
5002
|
+
(W) => {
|
|
5003
5003
|
if (O) {
|
|
5004
|
-
O(
|
|
5004
|
+
O(W);
|
|
5005
5005
|
return;
|
|
5006
5006
|
}
|
|
5007
|
-
g && t && P(t, I(g,
|
|
5007
|
+
g && t && P(t, I(g, W));
|
|
5008
5008
|
},
|
|
5009
5009
|
[O, g, t, P]
|
|
5010
|
-
),
|
|
5011
|
-
(
|
|
5010
|
+
), q = j(
|
|
5011
|
+
(W) => {
|
|
5012
5012
|
if (N) {
|
|
5013
|
-
N(
|
|
5013
|
+
N(W);
|
|
5014
5014
|
return;
|
|
5015
5015
|
}
|
|
5016
|
-
f && t && P(t, I(f,
|
|
5016
|
+
f && t && P(t, I(f, W));
|
|
5017
5017
|
},
|
|
5018
5018
|
[N, f, t, P]
|
|
5019
5019
|
), et = j(
|
|
5020
|
-
(
|
|
5020
|
+
(W, ft) => {
|
|
5021
5021
|
if (A) {
|
|
5022
|
-
A(
|
|
5022
|
+
A(W, ft);
|
|
5023
5023
|
return;
|
|
5024
5024
|
}
|
|
5025
|
-
s && t && P(t, I(s, { loadedKeys:
|
|
5025
|
+
s && t && P(t, I(s, { loadedKeys: W, ...ft }));
|
|
5026
5026
|
},
|
|
5027
5027
|
[A, s, t, P]
|
|
5028
5028
|
), Z = y(() => {
|
|
5029
5029
|
if (!B) return;
|
|
5030
|
-
const
|
|
5031
|
-
return Object.entries(B).forEach(([
|
|
5032
|
-
|
|
5033
|
-
}), Object.keys(
|
|
5034
|
-
}, [B]),
|
|
5035
|
-
const
|
|
5036
|
-
return n && (
|
|
5030
|
+
const W = {};
|
|
5031
|
+
return Object.entries(B).forEach(([ft, mt]) => {
|
|
5032
|
+
mt !== "" && mt !== void 0 && mt !== null && (W[ft] = mt);
|
|
5033
|
+
}), Object.keys(W).length > 0 ? W : void 0;
|
|
5034
|
+
}, [B]), st = y(() => {
|
|
5035
|
+
const W = {};
|
|
5036
|
+
return n && (W.motion = !1), Z && (W.components = { Tree: Z }), Object.keys(W).length > 0 ? W : void 0;
|
|
5037
5037
|
}, [n, Z]), Y = /* @__PURE__ */ b(
|
|
5038
5038
|
Nr,
|
|
5039
5039
|
{
|
|
@@ -5041,24 +5041,24 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
5041
5041
|
...n ? { motion: !1 } : {},
|
|
5042
5042
|
treeData: at,
|
|
5043
5043
|
...K != null ? { selectedKeys: it ?? [] } : {},
|
|
5044
|
-
...
|
|
5044
|
+
...V != null ? { checkedKeys: nt ?? [] } : {},
|
|
5045
5045
|
...R != null ? { expandedKeys: pt ?? [] } : {},
|
|
5046
|
-
onSelect:
|
|
5046
|
+
onSelect: St,
|
|
5047
5047
|
onCheck: gt,
|
|
5048
5048
|
onExpand: tt,
|
|
5049
|
-
onDragEnd:
|
|
5049
|
+
onDragEnd: ut,
|
|
5050
5050
|
onDragEnter: ot,
|
|
5051
5051
|
onDragLeave: Ct,
|
|
5052
|
-
onDragOver:
|
|
5053
|
-
onDragStart:
|
|
5052
|
+
onDragOver: kt,
|
|
5053
|
+
onDragStart: $t,
|
|
5054
5054
|
onDrop: J,
|
|
5055
|
-
onRightClick:
|
|
5055
|
+
onRightClick: q,
|
|
5056
5056
|
onLoad: et,
|
|
5057
5057
|
styles: k,
|
|
5058
5058
|
classNames: M
|
|
5059
5059
|
}
|
|
5060
5060
|
);
|
|
5061
|
-
return
|
|
5061
|
+
return st ? /* @__PURE__ */ b(Rt, { theme: st, children: Y }) : Y;
|
|
5062
5062
|
}, Uc = ({
|
|
5063
5063
|
id: e,
|
|
5064
5064
|
sessionId: t,
|
|
@@ -5105,7 +5105,7 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
5105
5105
|
children: r
|
|
5106
5106
|
}
|
|
5107
5107
|
);
|
|
5108
|
-
},
|
|
5108
|
+
}, Ue = (e, t) => {
|
|
5109
5109
|
if (!e) return t;
|
|
5110
5110
|
if (typeof e == "string")
|
|
5111
5111
|
try {
|
|
@@ -5137,7 +5137,7 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
5137
5137
|
[t, i]
|
|
5138
5138
|
), C = y(() => {
|
|
5139
5139
|
if (x && r) return u(x, r);
|
|
5140
|
-
}, [x, r, u]), w = y(() => C ?? c ?? 0, [C, c]), D = y(() => v ?? d, [v, d]), T = y(() => p ?? h, [p, h]), O = y(() =>
|
|
5140
|
+
}, [x, r, u]), w = y(() => C ?? c ?? 0, [C, c]), D = y(() => v ?? d, [v, d]), T = y(() => p ?? h, [p, h]), O = y(() => Ue(l, []), [l]), N = y(() => Ue(g, {}), [g]), A = y(() => Ue(f, {}), [f]), E = j((B) => {
|
|
5141
5141
|
if (o) {
|
|
5142
5142
|
o(B);
|
|
5143
5143
|
return;
|
|
@@ -5155,22 +5155,22 @@ const Ue = 420, _n = 440, Xa = ({
|
|
|
5155
5155
|
onChange: E
|
|
5156
5156
|
}
|
|
5157
5157
|
);
|
|
5158
|
-
return k ? /* @__PURE__ */ b(
|
|
5158
|
+
return k ? /* @__PURE__ */ b(Rt, { theme: { components: { Steps: A } }, children: M }) : M;
|
|
5159
5159
|
}, Gc = ({
|
|
5160
5160
|
id: e,
|
|
5161
5161
|
sessionId: t,
|
|
5162
5162
|
develop: n,
|
|
5163
5163
|
...i
|
|
5164
|
-
}) => /* @__PURE__ */ b(
|
|
5164
|
+
}) => /* @__PURE__ */ b(Ge, { ...i }), Jc = ({
|
|
5165
5165
|
id: e,
|
|
5166
5166
|
sessionId: t,
|
|
5167
5167
|
develop: n,
|
|
5168
5168
|
...i
|
|
5169
5169
|
}) => {
|
|
5170
|
-
const r =
|
|
5170
|
+
const r = Ge.Timer;
|
|
5171
5171
|
if (r)
|
|
5172
5172
|
return /* @__PURE__ */ b(r, { type: "countdown", ...i });
|
|
5173
|
-
const { Countdown: a } =
|
|
5173
|
+
const { Countdown: a } = Ge;
|
|
5174
5174
|
return /* @__PURE__ */ b(a, { ...i });
|
|
5175
5175
|
}, ro = {
|
|
5176
5176
|
top: "top",
|
|
@@ -5384,7 +5384,7 @@ const Zc = ({
|
|
|
5384
5384
|
children: i
|
|
5385
5385
|
}
|
|
5386
5386
|
);
|
|
5387
|
-
return C ? /* @__PURE__ */ b(
|
|
5387
|
+
return C ? /* @__PURE__ */ b(Rt, { theme: C, children: w }) : w;
|
|
5388
5388
|
}, lo = {
|
|
5389
5389
|
0: "default",
|
|
5390
5390
|
1: "success",
|
|
@@ -5441,8 +5441,8 @@ const Zc = ({
|
|
|
5441
5441
|
return x && typeof x == "object" && Object.keys(x).forEach((M) => {
|
|
5442
5442
|
!["content", "color"].includes(M) && x[M] !== void 0 && x[M] !== null && (k[M] = x[M]);
|
|
5443
5443
|
}), k;
|
|
5444
|
-
}, [g, x]), N = (x == null ? void 0 : x.color) ?? v, E =
|
|
5445
|
-
return /* @__PURE__ */ b(
|
|
5444
|
+
}, [g, x]), N = (x == null ? void 0 : x.color) ?? v, E = Ke(N) || T;
|
|
5445
|
+
return /* @__PURE__ */ b(Ln, { ...O, color: E, children: D || i });
|
|
5446
5446
|
}, ts = ({
|
|
5447
5447
|
id: e,
|
|
5448
5448
|
sessionId: t,
|
|
@@ -5479,7 +5479,7 @@ const Zc = ({
|
|
|
5479
5479
|
s && f(s, m ?? "", { current: O, pageSize: N, total: w }), o && t && g(t, I(o, { current: O, pageSize: N }));
|
|
5480
5480
|
}, [l, s, m, f, w, o, t, g]);
|
|
5481
5481
|
return /* @__PURE__ */ b(
|
|
5482
|
-
|
|
5482
|
+
zn,
|
|
5483
5483
|
{
|
|
5484
5484
|
...p,
|
|
5485
5485
|
current: x,
|
|
@@ -5500,9 +5500,9 @@ const Zc = ({
|
|
|
5500
5500
|
items: i,
|
|
5501
5501
|
children: r,
|
|
5502
5502
|
...a
|
|
5503
|
-
}) => /* @__PURE__ */ b(Mr, { ...a, items: i, children: r }),
|
|
5504
|
-
const a =
|
|
5505
|
-
|
|
5503
|
+
}) => /* @__PURE__ */ b(Mr, { ...a, items: i, children: r }), _e = (e) => Object.entries(e).map(([t, n]) => `${t.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), uo = ({ mode: e, arrowStyle: t, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
|
|
5504
|
+
const a = Mt(null), o = Mt(null), [c, l] = ht(0), [d, v] = ht(!1), [h, p] = ht(0), [g, f] = ht(0), s = e === "horizontal";
|
|
5505
|
+
Dt(() => {
|
|
5506
5506
|
const D = () => {
|
|
5507
5507
|
if (!a.current || !o.current) return;
|
|
5508
5508
|
const O = a.current, N = o.current;
|
|
@@ -5521,8 +5521,8 @@ const Zc = ({
|
|
|
5521
5521
|
if (u) return;
|
|
5522
5522
|
const D = s ? ((O = a.current) == null ? void 0 : O.clientWidth) ?? 200 : ((N = a.current) == null ? void 0 : N.clientHeight) ?? 200, T = s ? (((A = o.current) == null ? void 0 : A.scrollWidth) ?? 0) - (((E = a.current) == null ? void 0 : E.clientWidth) ?? 0) : (((k = o.current) == null ? void 0 : k.scrollHeight) ?? 0) - (((M = a.current) == null ? void 0 : M.clientHeight) ?? 0);
|
|
5523
5523
|
l((B) => Math.min(T, B + D));
|
|
5524
|
-
}, [s, u]), C = n || (s ? /* @__PURE__ */ b(
|
|
5525
|
-
return /* @__PURE__ */
|
|
5524
|
+
}, [s, u]), C = n || (s ? /* @__PURE__ */ b(Un, {}) : /* @__PURE__ */ b(ni, {})), w = i || (s ? /* @__PURE__ */ b(Yn, {}) : /* @__PURE__ */ b(Gn, {}));
|
|
5525
|
+
return /* @__PURE__ */ ct(
|
|
5526
5526
|
"div",
|
|
5527
5527
|
{
|
|
5528
5528
|
style: {
|
|
@@ -5648,10 +5648,10 @@ const Zc = ({
|
|
|
5648
5648
|
// 仅设计器/业务用,不传给 DOM,避免 React 警告
|
|
5649
5649
|
...P
|
|
5650
5650
|
}) => {
|
|
5651
|
-
const $ = _((X) => X.addCommand),
|
|
5651
|
+
const $ = _((X) => X.addCommand), z = _((X) => X.setDataSet), K = y(
|
|
5652
5652
|
() => rt(t, i),
|
|
5653
5653
|
[t, i]
|
|
5654
|
-
),
|
|
5654
|
+
), V = _(
|
|
5655
5655
|
(X) => {
|
|
5656
5656
|
if (K)
|
|
5657
5657
|
return r ? X.getDataSet(K, r) : X.dataSets[K];
|
|
@@ -5662,7 +5662,7 @@ const Zc = ({
|
|
|
5662
5662
|
// 更安全的做法是分别订阅需要的字段,或者确保 getDataSet 返回的是稳定的 state 引用。
|
|
5663
5663
|
// 这里我们先假定 state.dataSets[...] 返回的是稳定的 immer state 引用。
|
|
5664
5664
|
// 为了防止 undefined 情况下的 {} 导致的新引用,我们在 selector 内部只返回 undefined,在外部处理默认值。
|
|
5665
|
-
), R = y(() => ({}), []), L =
|
|
5665
|
+
), R = y(() => ({}), []), L = V ?? R, Q = y(
|
|
5666
5666
|
() => (L == null ? void 0 : L.items) ?? (Array.isArray(L) ? L : void 0) ?? (Array.isArray(L == null ? void 0 : L.value) ? L.value : void 0),
|
|
5667
5667
|
[L]
|
|
5668
5668
|
), G = y(() => n ? Q ?? g ?? [] : K ? Q ?? [] : g ?? [], [n, K, Q, g]), U = y(
|
|
@@ -5678,16 +5678,16 @@ const Zc = ({
|
|
|
5678
5678
|
if (!L.openKeys && it && T)
|
|
5679
5679
|
return X.getDataSet(it, T);
|
|
5680
5680
|
}), pt = y(() => {
|
|
5681
|
-
const X = (vt) => Array.isArray(vt) ? vt.map((
|
|
5682
|
-
const
|
|
5683
|
-
if (
|
|
5684
|
-
const
|
|
5685
|
-
|
|
5681
|
+
const X = (vt) => Array.isArray(vt) ? vt.map((Et) => {
|
|
5682
|
+
const Bt = { ...Et };
|
|
5683
|
+
if (Bt.icon && typeof Bt.icon == "string") {
|
|
5684
|
+
const Vt = Jt[Bt.icon];
|
|
5685
|
+
Vt && (Bt.icon = /* @__PURE__ */ b(Vt, {}));
|
|
5686
5686
|
}
|
|
5687
|
-
return
|
|
5687
|
+
return Bt.children && Bt.children.length > 0 && (Bt.children = X(Bt.children)), Bt;
|
|
5688
5688
|
}) : [];
|
|
5689
5689
|
return X(G || []);
|
|
5690
|
-
}, [G]),
|
|
5690
|
+
}, [G]), St = y(
|
|
5691
5691
|
() => U,
|
|
5692
5692
|
[U]
|
|
5693
5693
|
), gt = y(
|
|
@@ -5705,7 +5705,7 @@ const Zc = ({
|
|
|
5705
5705
|
);
|
|
5706
5706
|
},
|
|
5707
5707
|
[d, a, t, $]
|
|
5708
|
-
),
|
|
5708
|
+
), ut = j(
|
|
5709
5709
|
(X) => {
|
|
5710
5710
|
if (v) {
|
|
5711
5711
|
v(X);
|
|
@@ -5714,9 +5714,9 @@ const Zc = ({
|
|
|
5714
5714
|
if (K)
|
|
5715
5715
|
if (r) {
|
|
5716
5716
|
const vt = _.getState().getDataSet(K, r) || {};
|
|
5717
|
-
|
|
5717
|
+
z(K, r, { ...vt, selectedKeys: X.selectedKeys });
|
|
5718
5718
|
} else
|
|
5719
|
-
|
|
5719
|
+
z(K, "selectedKeys", X.selectedKeys);
|
|
5720
5720
|
o && t && $(
|
|
5721
5721
|
t,
|
|
5722
5722
|
I(o, { selectedKeys: X.selectedKeys })
|
|
@@ -5726,7 +5726,7 @@ const Zc = ({
|
|
|
5726
5726
|
v,
|
|
5727
5727
|
K,
|
|
5728
5728
|
r,
|
|
5729
|
-
|
|
5729
|
+
z,
|
|
5730
5730
|
o,
|
|
5731
5731
|
t,
|
|
5732
5732
|
$
|
|
@@ -5740,10 +5740,10 @@ const Zc = ({
|
|
|
5740
5740
|
if (K)
|
|
5741
5741
|
if (r) {
|
|
5742
5742
|
const vt = _.getState().getDataSet(K, r) || {};
|
|
5743
|
-
|
|
5743
|
+
z(K, r, { ...vt, openKeys: X });
|
|
5744
5744
|
} else
|
|
5745
|
-
|
|
5746
|
-
else it && T &&
|
|
5745
|
+
z(K, "openKeys", X);
|
|
5746
|
+
else it && T && z(it, T, X);
|
|
5747
5747
|
c && t && $(
|
|
5748
5748
|
t,
|
|
5749
5749
|
I(c, { openKeys: X })
|
|
@@ -5755,7 +5755,7 @@ const Zc = ({
|
|
|
5755
5755
|
r,
|
|
5756
5756
|
it,
|
|
5757
5757
|
T,
|
|
5758
|
-
|
|
5758
|
+
z,
|
|
5759
5759
|
c,
|
|
5760
5760
|
t,
|
|
5761
5761
|
$
|
|
@@ -5775,15 +5775,15 @@ const Zc = ({
|
|
|
5775
5775
|
);
|
|
5776
5776
|
},
|
|
5777
5777
|
[p, l, t, $]
|
|
5778
|
-
),
|
|
5778
|
+
), kt = O === "inline" && N !== void 0 ? { inlineCollapsed: N } : {}, $t = y(() => {
|
|
5779
5779
|
if (!x) return;
|
|
5780
5780
|
const X = {};
|
|
5781
|
-
return Object.entries(x).forEach(([vt,
|
|
5782
|
-
|
|
5781
|
+
return Object.entries(x).forEach(([vt, Et]) => {
|
|
5782
|
+
Et !== "" && Et !== void 0 && Et !== null && (X[vt] = Et);
|
|
5783
5783
|
}), Object.keys(X).length > 0 ? X : void 0;
|
|
5784
5784
|
}, [x]), J = n ? {
|
|
5785
5785
|
motion: { motionName: "" }
|
|
5786
|
-
} : {},
|
|
5786
|
+
} : {}, q = y(() => {
|
|
5787
5787
|
if (typeof M == "string" && M) {
|
|
5788
5788
|
const X = Jt[M];
|
|
5789
5789
|
if (X) return /* @__PURE__ */ b(X, {});
|
|
@@ -5795,43 +5795,43 @@ const Zc = ({
|
|
|
5795
5795
|
if (X) return /* @__PURE__ */ b(X, {});
|
|
5796
5796
|
}
|
|
5797
5797
|
return B;
|
|
5798
|
-
}, [B]), Z = y(() => E === "pagination" || E === "scroll" ? null : w, [E, w]),
|
|
5799
|
-
var
|
|
5798
|
+
}, [B]), Z = y(() => E === "pagination" || E === "scroll" ? null : w, [E, w]), st = Fr(), dt = e || st.replace(/:/g, "-"), Y = y(() => {
|
|
5799
|
+
var Bt;
|
|
5800
5800
|
if (!u || typeof u == "function") return "";
|
|
5801
|
-
const X = (
|
|
5801
|
+
const X = (Bt = u.subMenu) == null ? void 0 : Bt.root;
|
|
5802
5802
|
if (!X) return "";
|
|
5803
|
-
const vt = [],
|
|
5803
|
+
const vt = [], Et = `[data-and-menu-id="${dt}"]`;
|
|
5804
5804
|
if (X.item && Object.keys(X.item).length > 0) {
|
|
5805
|
-
const
|
|
5806
|
-
vt.push(`${
|
|
5805
|
+
const Vt = _e(X.item);
|
|
5806
|
+
vt.push(`${Et} .ant-menu-submenu > .ant-menu-submenu-title { ${Vt} }`);
|
|
5807
5807
|
}
|
|
5808
5808
|
if (X.itemIcon && Object.keys(X.itemIcon).length > 0) {
|
|
5809
|
-
const
|
|
5810
|
-
vt.push(`${
|
|
5809
|
+
const Vt = _e(X.itemIcon);
|
|
5810
|
+
vt.push(`${Et} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${Vt} }`);
|
|
5811
5811
|
}
|
|
5812
5812
|
if (X.itemContent && Object.keys(X.itemContent).length > 0) {
|
|
5813
|
-
const
|
|
5814
|
-
vt.push(`${
|
|
5813
|
+
const Vt = _e(X.itemContent);
|
|
5814
|
+
vt.push(`${Et} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${Vt} }`);
|
|
5815
5815
|
}
|
|
5816
5816
|
if (X.selected && Object.keys(X.selected).length > 0) {
|
|
5817
|
-
const
|
|
5818
|
-
vt.push(`${
|
|
5817
|
+
const Vt = _e(X.selected);
|
|
5818
|
+
vt.push(`${Et} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${Vt} }`);
|
|
5819
5819
|
}
|
|
5820
5820
|
return vt.join(`
|
|
5821
5821
|
`);
|
|
5822
|
-
}, [u,
|
|
5822
|
+
}, [u, dt]), W = /* @__PURE__ */ b(
|
|
5823
5823
|
$r,
|
|
5824
5824
|
{
|
|
5825
5825
|
...P,
|
|
5826
|
-
...
|
|
5826
|
+
...kt,
|
|
5827
5827
|
...J,
|
|
5828
5828
|
mode: O,
|
|
5829
5829
|
items: pt,
|
|
5830
|
-
selectedKeys:
|
|
5830
|
+
selectedKeys: St,
|
|
5831
5831
|
openKeys: gt,
|
|
5832
5832
|
defaultOpenKeys: m,
|
|
5833
5833
|
onClick: tt,
|
|
5834
|
-
onSelect:
|
|
5834
|
+
onSelect: ut,
|
|
5835
5835
|
onOpenChange: ot,
|
|
5836
5836
|
onDeselect: Ct,
|
|
5837
5837
|
styles: u,
|
|
@@ -5840,25 +5840,25 @@ const Zc = ({
|
|
|
5840
5840
|
overflowedIndicator: Z,
|
|
5841
5841
|
disabledOverflow: E !== "default"
|
|
5842
5842
|
}
|
|
5843
|
-
),
|
|
5843
|
+
), ft = () => E === "pagination" ? /* @__PURE__ */ b(
|
|
5844
5844
|
uo,
|
|
5845
5845
|
{
|
|
5846
5846
|
mode: O || "horizontal",
|
|
5847
5847
|
arrowStyle: k,
|
|
5848
|
-
arrowIconPrev:
|
|
5848
|
+
arrowIconPrev: q,
|
|
5849
5849
|
arrowIconNext: et,
|
|
5850
|
-
children:
|
|
5850
|
+
children: W
|
|
5851
5851
|
}
|
|
5852
|
-
) : E === "scroll" ? /* @__PURE__ */ b(fo, { mode: O || "horizontal", children:
|
|
5852
|
+
) : E === "scroll" ? /* @__PURE__ */ b(fo, { mode: O || "horizontal", children: W }) : W, mt = y(() => {
|
|
5853
5853
|
const X = {};
|
|
5854
|
-
return n && (X.motion = !1),
|
|
5855
|
-
}, [n,
|
|
5854
|
+
return n && (X.motion = !1), $t && (X.components = { Menu: $t }), Object.keys(X).length > 0 ? X : void 0;
|
|
5855
|
+
}, [n, $t]);
|
|
5856
5856
|
return (() => {
|
|
5857
|
-
const X =
|
|
5857
|
+
const X = ft(), vt = Y ? /* @__PURE__ */ ct("div", { "data-and-menu-id": dt, style: { display: "contents" }, children: [
|
|
5858
5858
|
/* @__PURE__ */ b("style", { children: Y }),
|
|
5859
5859
|
X
|
|
5860
5860
|
] }) : X;
|
|
5861
|
-
return
|
|
5861
|
+
return mt ? /* @__PURE__ */ b(Rt, { theme: mt, children: vt }) : vt;
|
|
5862
5862
|
})();
|
|
5863
5863
|
}, rs = ({
|
|
5864
5864
|
id: e,
|
|
@@ -5894,7 +5894,7 @@ const Zc = ({
|
|
|
5894
5894
|
return D && g in D ? D[g] : g;
|
|
5895
5895
|
}, [g, D]);
|
|
5896
5896
|
return /* @__PURE__ */ b(
|
|
5897
|
-
|
|
5897
|
+
Vn,
|
|
5898
5898
|
{
|
|
5899
5899
|
...m,
|
|
5900
5900
|
count: C,
|
|
@@ -5945,7 +5945,7 @@ const Zc = ({
|
|
|
5945
5945
|
return s && c in s ? s[c] : c;
|
|
5946
5946
|
}, [c, s]);
|
|
5947
5947
|
return /* @__PURE__ */ b(
|
|
5948
|
-
|
|
5948
|
+
Vn.Ribbon,
|
|
5949
5949
|
{
|
|
5950
5950
|
...d,
|
|
5951
5951
|
text: g,
|
|
@@ -6022,13 +6022,13 @@ const Zc = ({
|
|
|
6022
6022
|
itemRender: h,
|
|
6023
6023
|
...p
|
|
6024
6024
|
}) => {
|
|
6025
|
-
const g =
|
|
6025
|
+
const g = Re(i, r, t), f = g.dataSet, s = g.dataSetField, m = g.sessionId, u = be(ie), S = _(($) => $.addCommand), x = y(
|
|
6026
6026
|
() => rt(m, f),
|
|
6027
6027
|
[m, f]
|
|
6028
6028
|
), C = _(($) => x && s ? $.getDataSet(x, s) : null), w = y(() => !m || e == null || e === "" ? null : u && typeof u.index == "number" ? `${String(e)}_${u.index}` : String(e), [m, e, u]), D = _(
|
|
6029
6029
|
($) => {
|
|
6030
|
-
var
|
|
6031
|
-
return w ? ((
|
|
6030
|
+
var z;
|
|
6031
|
+
return w ? ((z = $.propsStore[`${m}_props`]) == null ? void 0 : z[w]) ?? null : null;
|
|
6032
6032
|
}
|
|
6033
6033
|
), T = y(() => C && Array.isArray(C) ? C : mo(a), [C, a]), O = (D == null ? void 0 : D.columns) !== void 0 && (D == null ? void 0 : D.columns) !== null ? D.columns : o, N = y(() => ho(O), [O]), A = y(() => yo(c), [c]), E = y(() => {
|
|
6034
6034
|
if (v) return v;
|
|
@@ -6051,7 +6051,7 @@ const Zc = ({
|
|
|
6051
6051
|
if (h) return h;
|
|
6052
6052
|
if (n)
|
|
6053
6053
|
return ($) => {
|
|
6054
|
-
var
|
|
6054
|
+
var z;
|
|
6055
6055
|
return /* @__PURE__ */ b(
|
|
6056
6056
|
"div",
|
|
6057
6057
|
{
|
|
@@ -6066,14 +6066,14 @@ const Zc = ({
|
|
|
6066
6066
|
color: "#1677ff",
|
|
6067
6067
|
fontSize: 14
|
|
6068
6068
|
},
|
|
6069
|
-
children: ((
|
|
6069
|
+
children: ((z = $.data) == null ? void 0 : z.title) || `Item ${$.key}`
|
|
6070
6070
|
}
|
|
6071
6071
|
);
|
|
6072
6072
|
};
|
|
6073
6073
|
}, [h, n]), B = y(() => {
|
|
6074
6074
|
if (M)
|
|
6075
|
-
return !f || !s ? M : ($,
|
|
6076
|
-
const K = typeof
|
|
6075
|
+
return !f || !s ? M : ($, z) => {
|
|
6076
|
+
const K = typeof z == "number" ? z : typeof ($ == null ? void 0 : $.index) == "number" ? $.index : Number(($ == null ? void 0 : $.index) ?? 0);
|
|
6077
6077
|
return /* @__PURE__ */ b(
|
|
6078
6078
|
ie.Provider,
|
|
6079
6079
|
{
|
|
@@ -6131,7 +6131,7 @@ const Zc = ({
|
|
|
6131
6131
|
r && r(w);
|
|
6132
6132
|
}, [r]);
|
|
6133
6133
|
return /* @__PURE__ */ b(
|
|
6134
|
-
|
|
6134
|
+
qn,
|
|
6135
6135
|
{
|
|
6136
6136
|
...S,
|
|
6137
6137
|
title: u,
|
|
@@ -6173,7 +6173,7 @@ const Zc = ({
|
|
|
6173
6173
|
});
|
|
6174
6174
|
}, [l, s, r, f, o, t, p]);
|
|
6175
6175
|
return /* @__PURE__ */ b(
|
|
6176
|
-
|
|
6176
|
+
Bn,
|
|
6177
6177
|
{
|
|
6178
6178
|
...h,
|
|
6179
6179
|
open: u,
|
|
@@ -6222,7 +6222,7 @@ const Zc = ({
|
|
|
6222
6222
|
develop: n,
|
|
6223
6223
|
children: i,
|
|
6224
6224
|
...r
|
|
6225
|
-
}) => /* @__PURE__ */ b(Kr, { ...r, children: i }),
|
|
6225
|
+
}) => /* @__PURE__ */ b(Kr, { ...r, children: i }), on = (e, t) => {
|
|
6226
6226
|
if (e == null) return t;
|
|
6227
6227
|
if (typeof e == "string")
|
|
6228
6228
|
try {
|
|
@@ -6235,7 +6235,7 @@ const Zc = ({
|
|
|
6235
6235
|
return e;
|
|
6236
6236
|
}, go = (e) => e.replace(/-([a-z])/g, (t, n) => n.toUpperCase()), po = (e) => !e || typeof e != "object" || Array.isArray(e) ? e ?? {} : Object.fromEntries(
|
|
6237
6237
|
Object.entries(e).map(([t, n]) => [go(t), n])
|
|
6238
|
-
), vo = (e) =>
|
|
6238
|
+
), vo = (e) => on(e, []).map((n) => ({
|
|
6239
6239
|
key: n.key,
|
|
6240
6240
|
tab: n.tab,
|
|
6241
6241
|
disabled: n.disabled
|
|
@@ -6275,7 +6275,7 @@ const Zc = ({
|
|
|
6275
6275
|
() => rt(t, i),
|
|
6276
6276
|
[t, i]
|
|
6277
6277
|
), E = C === "default" ? "medium" : C, k = y(() => {
|
|
6278
|
-
const U =
|
|
6278
|
+
const U = on(s, {});
|
|
6279
6279
|
return Object.fromEntries(
|
|
6280
6280
|
Object.entries(U).map(([at, it]) => [
|
|
6281
6281
|
at,
|
|
@@ -6296,31 +6296,31 @@ const Zc = ({
|
|
|
6296
6296
|
return;
|
|
6297
6297
|
}
|
|
6298
6298
|
A && r && N(A, `${r}.activeTabKey`, U), g && t && T(t, I(g, { key: U }));
|
|
6299
|
-
}, [f, A, r, N, g, t, T]), { titleSlot: $, extraSlot:
|
|
6299
|
+
}, [f, A, r, N, g, t, T]), { titleSlot: $, extraSlot: z, coverSlot: K, actionsSlot: V, otherChildren: R, actionsFromChildren: L } = y(() => {
|
|
6300
6300
|
let U = null, at = null, it = null, nt = [];
|
|
6301
6301
|
const pt = [];
|
|
6302
|
-
let
|
|
6302
|
+
let St = !1;
|
|
6303
6303
|
return a && (U = a), o && (at = o), c && (it = c), d && (nt = d), Wt.Children.forEach(w, (gt) => {
|
|
6304
6304
|
if (!Wt.isValidElement(gt)) {
|
|
6305
6305
|
pt.push(gt);
|
|
6306
6306
|
return;
|
|
6307
6307
|
}
|
|
6308
|
-
const tt = gt.props,
|
|
6309
|
-
|
|
6310
|
-
}), { titleSlot: U, extraSlot: at, coverSlot: it, actionsSlot: nt, otherChildren: pt, actionsFromChildren:
|
|
6308
|
+
const tt = gt.props, ut = tt["data-slot-type"];
|
|
6309
|
+
ut === "title" && !a ? U = gt : ut === "extra" && !o ? at = gt : ut === "cover" && !c ? it = gt : ut === "actions" && !d ? (nt = [gt], St = !0) : ut === "body" && tt.children ? pt.push(tt.children) : pt.push(gt);
|
|
6310
|
+
}), { titleSlot: U, extraSlot: at, coverSlot: it, actionsSlot: nt, otherChildren: pt, actionsFromChildren: St };
|
|
6311
6311
|
}, [w, a, o, c, d]), Q = y(() => {
|
|
6312
|
-
const U =
|
|
6312
|
+
const U = on(m, {});
|
|
6313
6313
|
return L ? { actionsLiMargin: "0px", ...U } : U;
|
|
6314
6314
|
}, [m, L]), G = /* @__PURE__ */ b(
|
|
6315
|
-
|
|
6315
|
+
Je,
|
|
6316
6316
|
{
|
|
6317
6317
|
...D,
|
|
6318
6318
|
size: E,
|
|
6319
6319
|
title: $,
|
|
6320
|
-
extra:
|
|
6320
|
+
extra: z,
|
|
6321
6321
|
cover: K,
|
|
6322
6322
|
tabBarExtraContent: l,
|
|
6323
|
-
actions:
|
|
6323
|
+
actions: V.length > 0 ? V : void 0,
|
|
6324
6324
|
tabList: M,
|
|
6325
6325
|
activeTabKey: H,
|
|
6326
6326
|
defaultActiveTabKey: p,
|
|
@@ -6329,7 +6329,7 @@ const Zc = ({
|
|
|
6329
6329
|
children: R
|
|
6330
6330
|
}
|
|
6331
6331
|
);
|
|
6332
|
-
return Q && Object.keys(Q).length > 0 ? /* @__PURE__ */ b(
|
|
6332
|
+
return Q && Object.keys(Q).length > 0 ? /* @__PURE__ */ b(Rt, { theme: { components: { Card: Q } }, children: G }) : G;
|
|
6333
6333
|
}, ds = ({
|
|
6334
6334
|
id: e,
|
|
6335
6335
|
sessionId: t,
|
|
@@ -6342,17 +6342,17 @@ const Zc = ({
|
|
|
6342
6342
|
}) => {
|
|
6343
6343
|
const l = r || i;
|
|
6344
6344
|
return o && Object.keys(o).length > 0 ? /* @__PURE__ */ b(
|
|
6345
|
-
|
|
6345
|
+
Rt,
|
|
6346
6346
|
{
|
|
6347
6347
|
theme: {
|
|
6348
6348
|
components: {
|
|
6349
6349
|
Divider: o
|
|
6350
6350
|
}
|
|
6351
6351
|
},
|
|
6352
|
-
children: /* @__PURE__ */ b(
|
|
6352
|
+
children: /* @__PURE__ */ b(hn, { ...c, styles: a, children: l })
|
|
6353
6353
|
}
|
|
6354
|
-
) : /* @__PURE__ */ b(
|
|
6355
|
-
},
|
|
6354
|
+
) : /* @__PURE__ */ b(hn, { ...c, styles: a, children: l });
|
|
6355
|
+
}, _n = (e) => {
|
|
6356
6356
|
if (!e) return [];
|
|
6357
6357
|
if (typeof e == "string")
|
|
6358
6358
|
try {
|
|
@@ -6361,12 +6361,12 @@ const Zc = ({
|
|
|
6361
6361
|
return [];
|
|
6362
6362
|
}
|
|
6363
6363
|
return e;
|
|
6364
|
-
},
|
|
6364
|
+
}, rr = (e) => e.map((t) => t.divider ? { type: "divider", key: t.key } : {
|
|
6365
6365
|
key: t.key,
|
|
6366
6366
|
label: t.label,
|
|
6367
6367
|
disabled: t.disabled,
|
|
6368
6368
|
danger: t.danger,
|
|
6369
|
-
children: t.children ?
|
|
6369
|
+
children: t.children ? rr(t.children) : void 0
|
|
6370
6370
|
}), ms = ({
|
|
6371
6371
|
id: e,
|
|
6372
6372
|
sessionId: t,
|
|
@@ -6397,7 +6397,7 @@ const Zc = ({
|
|
|
6397
6397
|
const A = C;
|
|
6398
6398
|
if (Array.isArray(A == null ? void 0 : A.items)) return A.items;
|
|
6399
6399
|
if (Array.isArray(A == null ? void 0 : A.value)) return A.value;
|
|
6400
|
-
}, [C]), D = y(() => n ? w ??
|
|
6400
|
+
}, [C]), D = y(() => n ? w ?? _n(o) ?? [] : x ? w ?? [] : _n(o) ?? [], [n, x, w, o]), T = j(
|
|
6401
6401
|
(A, E) => {
|
|
6402
6402
|
if (h) {
|
|
6403
6403
|
h(A, E);
|
|
@@ -6426,7 +6426,7 @@ const Zc = ({
|
|
|
6426
6426
|
]
|
|
6427
6427
|
), O = y(
|
|
6428
6428
|
() => ({
|
|
6429
|
-
items:
|
|
6429
|
+
items: rr(D),
|
|
6430
6430
|
onClick: (A) => {
|
|
6431
6431
|
if (c && t) {
|
|
6432
6432
|
const { actionName: E, arg: k } = ee(c, A.key, {
|
|
@@ -6481,7 +6481,7 @@ const Zc = ({
|
|
|
6481
6481
|
r,
|
|
6482
6482
|
S
|
|
6483
6483
|
]
|
|
6484
|
-
), N = y(() => /* @__PURE__ */
|
|
6484
|
+
), N = y(() => /* @__PURE__ */ ct(
|
|
6485
6485
|
"div",
|
|
6486
6486
|
{
|
|
6487
6487
|
className: "and-dropdown-trigger-slot",
|
|
@@ -6489,9 +6489,9 @@ const Zc = ({
|
|
|
6489
6489
|
children: [
|
|
6490
6490
|
p,
|
|
6491
6491
|
n && !p && !g && /* @__PURE__ */ b("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
|
|
6492
|
-
!p && !n && a && /* @__PURE__ */ b(Xt, { children: /* @__PURE__ */
|
|
6492
|
+
!p && !n && a && /* @__PURE__ */ b(Xt, { children: /* @__PURE__ */ ct(Yt, { children: [
|
|
6493
6493
|
a,
|
|
6494
|
-
/* @__PURE__ */ b(
|
|
6494
|
+
/* @__PURE__ */ b(Gn, {})
|
|
6495
6495
|
] }) })
|
|
6496
6496
|
]
|
|
6497
6497
|
}
|
|
@@ -6515,7 +6515,7 @@ const Zc = ({
|
|
|
6515
6515
|
develop: n,
|
|
6516
6516
|
children: i,
|
|
6517
6517
|
...r
|
|
6518
|
-
}) => /* @__PURE__ */ b(
|
|
6518
|
+
}) => /* @__PURE__ */ b(Kn, { ...r, children: i }), ps = ({
|
|
6519
6519
|
id: e,
|
|
6520
6520
|
sessionId: t,
|
|
6521
6521
|
develop: n,
|
|
@@ -6541,7 +6541,7 @@ const Zc = ({
|
|
|
6541
6541
|
const t = Jt[e];
|
|
6542
6542
|
if (t)
|
|
6543
6543
|
return Wt.createElement(t);
|
|
6544
|
-
},
|
|
6544
|
+
}, Ye = (e, t) => {
|
|
6545
6545
|
if (e == null) return t;
|
|
6546
6546
|
if (typeof e == "string")
|
|
6547
6547
|
try {
|
|
@@ -6572,12 +6572,12 @@ const Zc = ({
|
|
|
6572
6572
|
...m
|
|
6573
6573
|
}) => {
|
|
6574
6574
|
const u = _((k) => k.addCommand), S = y(
|
|
6575
|
-
() =>
|
|
6575
|
+
() => Ye(i, []),
|
|
6576
6576
|
[i]
|
|
6577
|
-
), x = y(() =>
|
|
6577
|
+
), x = y(() => Ye(g, {}), [g]), C = y(() => me(o), [o]), w = y(() => {
|
|
6578
6578
|
if (c) {
|
|
6579
6579
|
if (typeof c == "string") {
|
|
6580
|
-
const k =
|
|
6580
|
+
const k = Ye(c, null);
|
|
6581
6581
|
return k && typeof k == "object" ? {
|
|
6582
6582
|
start: me(k.start),
|
|
6583
6583
|
end: me(k.end)
|
|
@@ -6609,7 +6609,7 @@ const Zc = ({
|
|
|
6609
6609
|
), O = () => f && Wt.Children.count(f) > 0 ? Wt.Children.map(f, (k, M) => {
|
|
6610
6610
|
const B = S[M] || {};
|
|
6611
6611
|
return /* @__PURE__ */ b(
|
|
6612
|
-
|
|
6612
|
+
qe.Panel,
|
|
6613
6613
|
{
|
|
6614
6614
|
defaultSize: B.defaultSize,
|
|
6615
6615
|
min: B.min,
|
|
@@ -6621,14 +6621,14 @@ const Zc = ({
|
|
|
6621
6621
|
B.key || M
|
|
6622
6622
|
);
|
|
6623
6623
|
}) : S.map((k, M) => /* @__PURE__ */ b(
|
|
6624
|
-
|
|
6624
|
+
qe.Panel,
|
|
6625
6625
|
{
|
|
6626
6626
|
defaultSize: k.defaultSize || void 0,
|
|
6627
6627
|
min: k.min || void 0,
|
|
6628
6628
|
max: k.max || void 0,
|
|
6629
6629
|
collapsible: k.collapsible,
|
|
6630
6630
|
resizable: k.resizable !== !1,
|
|
6631
|
-
children: s ? s(k.key, M) : /* @__PURE__ */
|
|
6631
|
+
children: s ? s(k.key, M) : /* @__PURE__ */ ct(
|
|
6632
6632
|
"div",
|
|
6633
6633
|
{
|
|
6634
6634
|
style: {
|
|
@@ -6648,7 +6648,7 @@ const Zc = ({
|
|
|
6648
6648
|
},
|
|
6649
6649
|
k.key || M
|
|
6650
6650
|
)), { layout: N, ...A } = m, E = /* @__PURE__ */ b("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ b(
|
|
6651
|
-
|
|
6651
|
+
qe,
|
|
6652
6652
|
{
|
|
6653
6653
|
...A,
|
|
6654
6654
|
orientation: r,
|
|
@@ -6663,7 +6663,7 @@ const Zc = ({
|
|
|
6663
6663
|
},
|
|
6664
6664
|
r
|
|
6665
6665
|
) });
|
|
6666
|
-
return x && Object.keys(x).length > 0 ? /* @__PURE__ */ b(
|
|
6666
|
+
return x && Object.keys(x).length > 0 ? /* @__PURE__ */ b(Rt, { theme: { components: { Splitter: x } }, children: E }) : E;
|
|
6667
6667
|
}, bs = ({
|
|
6668
6668
|
children: e,
|
|
6669
6669
|
className: t,
|
|
@@ -6728,10 +6728,10 @@ const Zc = ({
|
|
|
6728
6728
|
const M = (B, H) => {
|
|
6729
6729
|
T(B), H && N(H);
|
|
6730
6730
|
};
|
|
6731
|
-
return /* @__PURE__ */
|
|
6731
|
+
return /* @__PURE__ */ ct("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
|
|
6732
6732
|
/* @__PURE__ */ b("div", { style: { flex: 1 }, children: k.map((B, H) => /* @__PURE__ */ b(Wt.Fragment, { children: a ? a(B, H) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(B) }) }, B.id || H)) }),
|
|
6733
6733
|
!h && E.length > 0 && /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ b(
|
|
6734
|
-
|
|
6734
|
+
zn,
|
|
6735
6735
|
{
|
|
6736
6736
|
current: D,
|
|
6737
6737
|
pageSize: O,
|
|
@@ -6778,7 +6778,7 @@ const Zc = ({
|
|
|
6778
6778
|
transform: l ? `rotate(${l}deg)` : void 0,
|
|
6779
6779
|
...f
|
|
6780
6780
|
};
|
|
6781
|
-
return /* @__PURE__ */
|
|
6781
|
+
return /* @__PURE__ */ ct(le, { children: [
|
|
6782
6782
|
/* @__PURE__ */ b("style", { children: So }),
|
|
6783
6783
|
c && /* @__PURE__ */ b("style", { children: bo }),
|
|
6784
6784
|
/* @__PURE__ */ b(
|
|
@@ -6835,34 +6835,34 @@ const Zc = ({
|
|
|
6835
6835
|
c && t && d(t, I(c, s));
|
|
6836
6836
|
};
|
|
6837
6837
|
return /* @__PURE__ */ b("div", { style: { display: "grid", gridTemplateColumns: `repeat(${o}, 1fr)`, gap: 16, ...l }, children: g.map((s) => /* @__PURE__ */ b(
|
|
6838
|
-
|
|
6838
|
+
Je,
|
|
6839
6839
|
{
|
|
6840
6840
|
hoverable: !0,
|
|
6841
6841
|
cover: s.image && /* @__PURE__ */ b("img", { alt: s.name, src: s.image, style: { height: 200, objectFit: "cover" } }),
|
|
6842
6842
|
onClick: () => f(s),
|
|
6843
6843
|
children: /* @__PURE__ */ b(
|
|
6844
|
-
|
|
6844
|
+
Je.Meta,
|
|
6845
6845
|
{
|
|
6846
6846
|
title: s.name,
|
|
6847
|
-
description: /* @__PURE__ */
|
|
6848
|
-
s.price !== void 0 && /* @__PURE__ */
|
|
6849
|
-
/* @__PURE__ */
|
|
6847
|
+
description: /* @__PURE__ */ ct(Yt, { direction: "vertical", size: 4, children: [
|
|
6848
|
+
s.price !== void 0 && /* @__PURE__ */ ct("div", { children: [
|
|
6849
|
+
/* @__PURE__ */ ct("span", { style: { color: "#f5222d", fontSize: 18, fontWeight: "bold" }, children: [
|
|
6850
6850
|
"¥",
|
|
6851
6851
|
s.price
|
|
6852
6852
|
] }),
|
|
6853
|
-
s.originalPrice && /* @__PURE__ */
|
|
6853
|
+
s.originalPrice && /* @__PURE__ */ ct("span", { style: { marginLeft: 8, color: "#999", textDecoration: "line-through" }, children: [
|
|
6854
6854
|
"¥",
|
|
6855
6855
|
s.originalPrice
|
|
6856
6856
|
] })
|
|
6857
6857
|
] }),
|
|
6858
|
-
s.tags && s.tags.length > 0 && /* @__PURE__ */ b(Yt, { size: 4, wrap: !0, children: s.tags.map((m, u) => /* @__PURE__ */ b(
|
|
6858
|
+
s.tags && s.tags.length > 0 && /* @__PURE__ */ b(Yt, { size: 4, wrap: !0, children: s.tags.map((m, u) => /* @__PURE__ */ b(Ln, { color: "blue", children: m }, u)) })
|
|
6859
6859
|
] })
|
|
6860
6860
|
}
|
|
6861
6861
|
)
|
|
6862
6862
|
},
|
|
6863
6863
|
s.id
|
|
6864
6864
|
)) });
|
|
6865
|
-
},
|
|
6865
|
+
}, En = ({ id: e, icon: t, title: n, description: i, style: r }) => /* @__PURE__ */ ct(
|
|
6866
6866
|
"div",
|
|
6867
6867
|
{
|
|
6868
6868
|
id: e,
|
|
@@ -6947,7 +6947,7 @@ const Zc = ({
|
|
|
6947
6947
|
}), [s.props, t, i, h]), x = d || "请配置组件";
|
|
6948
6948
|
if (a) {
|
|
6949
6949
|
const N = v === "row";
|
|
6950
|
-
return /* @__PURE__ */
|
|
6950
|
+
return /* @__PURE__ */ ct(
|
|
6951
6951
|
"div",
|
|
6952
6952
|
{
|
|
6953
6953
|
id: c,
|
|
@@ -6978,7 +6978,7 @@ const Zc = ({
|
|
|
6978
6978
|
const C = Gt(), w = l || C.componentResolver;
|
|
6979
6979
|
if (!w)
|
|
6980
6980
|
return /* @__PURE__ */ b(
|
|
6981
|
-
|
|
6981
|
+
En,
|
|
6982
6982
|
{
|
|
6983
6983
|
id: c,
|
|
6984
6984
|
title: x,
|
|
@@ -6987,14 +6987,14 @@ const Zc = ({
|
|
|
6987
6987
|
}
|
|
6988
6988
|
);
|
|
6989
6989
|
const D = u ? w(u) : null;
|
|
6990
|
-
return D ? /* @__PURE__ */ b(Zr, { fallback: /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ b(
|
|
6990
|
+
return D ? /* @__PURE__ */ b(Zr, { fallback: /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ b(Wn, {}) }), children: /* @__PURE__ */ b("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...o }, children: m && g !== null ? /* @__PURE__ */ b(
|
|
6991
6991
|
ie.Provider,
|
|
6992
6992
|
{
|
|
6993
6993
|
value: { dataSet: m, index: g, sessionId: i },
|
|
6994
6994
|
children: /* @__PURE__ */ b(D, { ...S })
|
|
6995
6995
|
}
|
|
6996
6996
|
) : /* @__PURE__ */ b(D, { ...S }) }) }) : /* @__PURE__ */ b(
|
|
6997
|
-
|
|
6997
|
+
En,
|
|
6998
6998
|
{
|
|
6999
6999
|
id: c,
|
|
7000
7000
|
title: x,
|
|
@@ -7057,7 +7057,7 @@ const Zc = ({
|
|
|
7057
7057
|
}
|
|
7058
7058
|
);
|
|
7059
7059
|
return h && Object.keys(h).length > 0 ? /* @__PURE__ */ b(
|
|
7060
|
-
|
|
7060
|
+
Rt,
|
|
7061
7061
|
{
|
|
7062
7062
|
theme: {
|
|
7063
7063
|
algorithm: Zt.defaultAlgorithm,
|
|
@@ -7067,14 +7067,14 @@ const Zc = ({
|
|
|
7067
7067
|
}
|
|
7068
7068
|
) : s;
|
|
7069
7069
|
};
|
|
7070
|
-
let
|
|
7070
|
+
let cn = !1;
|
|
7071
7071
|
function Cs(e) {
|
|
7072
|
-
typeof window > "u" || (ye.GlobalWorkerOptions.workerSrc = e,
|
|
7072
|
+
typeof window > "u" || (ye.GlobalWorkerOptions.workerSrc = e, cn = !0);
|
|
7073
7073
|
}
|
|
7074
7074
|
function wo(e) {
|
|
7075
|
-
typeof window > "u" ||
|
|
7075
|
+
typeof window > "u" || cn && ye.GlobalWorkerOptions.workerSrc || (ye.GlobalWorkerOptions.workerSrc = e ?? `https://unpkg.com/pdfjs-dist@${ye.version}/build/pdf.worker.min.mjs`, cn = !0);
|
|
7076
7076
|
}
|
|
7077
|
-
const Do = 0.5, xo = 3,
|
|
7077
|
+
const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
|
|
7078
7078
|
id: e,
|
|
7079
7079
|
sessionId: t,
|
|
7080
7080
|
develop: n,
|
|
@@ -7090,7 +7090,7 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
|
|
|
7090
7090
|
className: p,
|
|
7091
7091
|
style: g
|
|
7092
7092
|
}) => {
|
|
7093
|
-
|
|
7093
|
+
Dt(() => {
|
|
7094
7094
|
wo();
|
|
7095
7095
|
}, []);
|
|
7096
7096
|
const f = _((Y) => Y.setDataSet), s = y(
|
|
@@ -7098,19 +7098,19 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
|
|
|
7098
7098
|
[t, i]
|
|
7099
7099
|
), m = _((Y) => {
|
|
7100
7100
|
if (!s || !r) return;
|
|
7101
|
-
const
|
|
7102
|
-
if (
|
|
7101
|
+
const W = Y.getDataSet(s, r);
|
|
7102
|
+
if (W != null && W !== "") return String(W);
|
|
7103
7103
|
}), u = _(
|
|
7104
7104
|
(Y) => {
|
|
7105
|
-
var
|
|
7106
|
-
return t && e ? ((
|
|
7105
|
+
var W;
|
|
7106
|
+
return t && e ? ((W = Y.propsStore[`${t}_props`]) == null ? void 0 : W[e]) ?? null : null;
|
|
7107
7107
|
}
|
|
7108
7108
|
), S = y(() => {
|
|
7109
7109
|
let Y;
|
|
7110
7110
|
if (m !== void 0) Y = m;
|
|
7111
7111
|
else if (u && typeof u == "object") {
|
|
7112
|
-
const
|
|
7113
|
-
|
|
7112
|
+
const W = u.filePath;
|
|
7113
|
+
W != null && W !== "" && (Y = String(W));
|
|
7114
7114
|
}
|
|
7115
7115
|
return Y === void 0 && (Y = a), Y;
|
|
7116
7116
|
}, [m, u, a]), x = y(() => {
|
|
@@ -7122,7 +7122,7 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
|
|
|
7122
7122
|
return d;
|
|
7123
7123
|
}, [u, d]), [C, w] = ht(0), [D, T] = ht(
|
|
7124
7124
|
() => Math.max(1, o || 1)
|
|
7125
|
-
), [O, N] = ht(null), [A, E] = ht(!!S), [k, M] = ht("all"), [B, H] = ht("width"), [P, $] = ht(1),
|
|
7125
|
+
), [O, N] = ht(null), [A, E] = ht(!!S), [k, M] = ht("all"), [B, H] = ht("width"), [P, $] = ht(1), z = Mt(null), K = Mt(null), V = Mt({}), [R, L] = ht(600), [Q, G] = ht(800), U = Mt(0), at = y(
|
|
7126
7126
|
() => ({
|
|
7127
7127
|
cMapUrl: `https://unpkg.com/pdfjs-dist@${ye.version}/cmaps/`,
|
|
7128
7128
|
cMapPacked: !0
|
|
@@ -7132,75 +7132,68 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
|
|
|
7132
7132
|
if (!(!s || !it))
|
|
7133
7133
|
return Y.getDataSet(s, `${it}.targetPage`);
|
|
7134
7134
|
});
|
|
7135
|
-
|
|
7136
|
-
const Y =
|
|
7135
|
+
Dt(() => {
|
|
7136
|
+
const Y = K.current;
|
|
7137
7137
|
if (!Y) return;
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
}, X = () => {
|
|
7142
|
-
z == null && (z = window.requestAnimationFrame(Lt));
|
|
7143
|
-
}, vt = new ResizeObserver(() => {
|
|
7144
|
-
const Tt = Math.round(Y.clientWidth), xe = Math.round(Y.clientHeight);
|
|
7145
|
-
Tt > 0 && (ct = Tt), xe > 0 && (dt = xe), (ct > 0 || dt > 0) && X();
|
|
7138
|
+
const W = new ResizeObserver(() => {
|
|
7139
|
+
const jt = Y.clientWidth, X = Y.clientHeight;
|
|
7140
|
+
jt > 0 && L(jt), X > 0 && G(X);
|
|
7146
7141
|
});
|
|
7147
|
-
|
|
7148
|
-
const
|
|
7149
|
-
return
|
|
7150
|
-
vt.disconnect(), z != null && window.cancelAnimationFrame(z);
|
|
7151
|
-
};
|
|
7142
|
+
W.observe(Y);
|
|
7143
|
+
const ft = Y.clientWidth, mt = Y.clientHeight;
|
|
7144
|
+
return ft > 0 && L(ft), mt > 0 && G(mt), () => W.disconnect();
|
|
7152
7145
|
}, [S]);
|
|
7153
|
-
const pt = y(() => Math.max(240, R - 16), [R]),
|
|
7146
|
+
const pt = y(() => Math.max(240, R - 16), [R]), St = y(
|
|
7154
7147
|
() => Math.max(320, Q - 16),
|
|
7155
7148
|
[Q]
|
|
7156
7149
|
), gt = y(
|
|
7157
7150
|
() => Math.max(120, pt * P),
|
|
7158
7151
|
[pt, P]
|
|
7159
7152
|
), tt = y(
|
|
7160
|
-
() => Math.max(180,
|
|
7161
|
-
[
|
|
7162
|
-
),
|
|
7163
|
-
(Y,
|
|
7164
|
-
!s || !it || (f(s, `${it}.currentPage`, Y),
|
|
7153
|
+
() => Math.max(180, St * P),
|
|
7154
|
+
[St, P]
|
|
7155
|
+
), ut = y(() => k === "all" ? Array.from({ length: C }, (Y, W) => W + 1) : [D], [k, C, D]), ot = j(
|
|
7156
|
+
(Y, W) => {
|
|
7157
|
+
!s || !it || (f(s, `${it}.currentPage`, Y), W > 0 && f(s, `${it}.totalPages`, W));
|
|
7165
7158
|
},
|
|
7166
7159
|
[s, it, f]
|
|
7167
7160
|
);
|
|
7168
|
-
|
|
7161
|
+
Dt(() => {
|
|
7169
7162
|
C > 0 && ot(D, C);
|
|
7170
7163
|
}, [D, C, ot]);
|
|
7171
7164
|
const Ct = j(
|
|
7172
|
-
(Y,
|
|
7173
|
-
const
|
|
7174
|
-
if (T(
|
|
7175
|
-
const
|
|
7176
|
-
|
|
7165
|
+
(Y, W = "auto") => {
|
|
7166
|
+
const ft = C > 0 ? Math.max(1, Math.min(Math.floor(Y), C)) : Math.max(1, Math.floor(Y));
|
|
7167
|
+
if (T(ft), k === "all") {
|
|
7168
|
+
const mt = V.current[ft];
|
|
7169
|
+
mt && mt.scrollIntoView({ block: "start", behavior: W });
|
|
7177
7170
|
}
|
|
7178
7171
|
},
|
|
7179
7172
|
[C, k]
|
|
7180
7173
|
);
|
|
7181
|
-
|
|
7174
|
+
Dt(() => {
|
|
7182
7175
|
const Y = nt;
|
|
7183
7176
|
typeof Y != "number" || !Number.isFinite(Y) || (Ct(Y, "auto"), s && it && f(s, `${it}.targetPage`, void 0));
|
|
7184
|
-
}, [nt, Ct, s, it, f]),
|
|
7177
|
+
}, [nt, Ct, s, it, f]), Dt(() => {
|
|
7185
7178
|
T((Y) => Math.max(1, o || Y));
|
|
7186
7179
|
}, [o, S]);
|
|
7187
|
-
const
|
|
7180
|
+
const kt = j(
|
|
7188
7181
|
({ numPages: Y }) => {
|
|
7189
|
-
w(Y), N(null), E(!1), T((
|
|
7182
|
+
w(Y), N(null), E(!1), T((W) => Math.min(Math.max(1, W), Y || 1));
|
|
7190
7183
|
},
|
|
7191
7184
|
[]
|
|
7192
|
-
),
|
|
7185
|
+
), $t = j((Y) => {
|
|
7193
7186
|
N(Y), E(!1);
|
|
7194
7187
|
}, []);
|
|
7195
|
-
|
|
7196
|
-
E(!!S), N(null), $(1),
|
|
7188
|
+
Dt(() => {
|
|
7189
|
+
E(!!S), N(null), $(1), V.current = {};
|
|
7197
7190
|
}, [S]);
|
|
7198
7191
|
const J = j((Y) => {
|
|
7199
|
-
$((
|
|
7200
|
-
const
|
|
7201
|
-
return Math.max(Do, Math.min(xo,
|
|
7192
|
+
$((W) => {
|
|
7193
|
+
const ft = Number((W + Y).toFixed(2));
|
|
7194
|
+
return Math.max(Do, Math.min(xo, ft));
|
|
7202
7195
|
});
|
|
7203
|
-
}, []),
|
|
7196
|
+
}, []), q = j(() => {
|
|
7204
7197
|
if (!S) return;
|
|
7205
7198
|
const Y = window.open(S, "_blank", "noopener,noreferrer");
|
|
7206
7199
|
Y && (Y.onload = () => {
|
|
@@ -7214,45 +7207,32 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
|
|
|
7214
7207
|
const Y = document.createElement("a");
|
|
7215
7208
|
Y.href = S, Y.download = "", Y.rel = "noopener noreferrer", Y.target = "_blank", document.body.appendChild(Y), Y.click(), Y.remove();
|
|
7216
7209
|
}, [S]), Z = j(() => {
|
|
7217
|
-
var
|
|
7218
|
-
const Y =
|
|
7219
|
-
Y && ((
|
|
7220
|
-
}, []),
|
|
7210
|
+
var W;
|
|
7211
|
+
const Y = z.current;
|
|
7212
|
+
Y && ((W = Y.requestFullscreen) == null || W.call(Y));
|
|
7213
|
+
}, []), st = j(() => {
|
|
7221
7214
|
document.fullscreenElement && document.exitFullscreen();
|
|
7222
|
-
}, [])
|
|
7223
|
-
St(() => {
|
|
7224
|
-
const Y = () => {
|
|
7225
|
-
if (!t || !e) return;
|
|
7226
|
-
const z = _.getState().getProps(t, e);
|
|
7227
|
-
!z || typeof z != "object" || Array.isArray(z) || z.pdfCommand == null && z.pdfCommandArg == null || _.getState().setProps(t, e, {
|
|
7228
|
-
...z,
|
|
7229
|
-
pdfCommand: void 0,
|
|
7230
|
-
pdfCommandArg: void 0
|
|
7231
|
-
});
|
|
7232
|
-
};
|
|
7233
|
-
return document.addEventListener("fullscreenchange", Y), () => document.removeEventListener("fullscreenchange", Y);
|
|
7234
|
-
}, [t, e]);
|
|
7235
|
-
const mt = j(() => {
|
|
7215
|
+
}, []), dt = j(() => {
|
|
7236
7216
|
if (k !== "all" || C <= 0) return;
|
|
7237
7217
|
const Y = K.current;
|
|
7238
7218
|
if (!Y) return;
|
|
7239
|
-
const
|
|
7240
|
-
let
|
|
7241
|
-
for (let
|
|
7242
|
-
const X =
|
|
7219
|
+
const W = Y.scrollTop + Y.clientHeight * 0.35;
|
|
7220
|
+
let ft = D, mt = Number.POSITIVE_INFINITY;
|
|
7221
|
+
for (let jt = 1; jt <= C; jt++) {
|
|
7222
|
+
const X = V.current[jt];
|
|
7243
7223
|
if (!X) continue;
|
|
7244
|
-
const vt = Math.abs(X.offsetTop -
|
|
7245
|
-
vt <
|
|
7224
|
+
const vt = Math.abs(X.offsetTop - W);
|
|
7225
|
+
vt < mt && (mt = vt, ft = jt);
|
|
7246
7226
|
}
|
|
7247
|
-
|
|
7227
|
+
ft !== D && T(ft);
|
|
7248
7228
|
}, [k, C, D]);
|
|
7249
|
-
return
|
|
7229
|
+
return Dt(() => {
|
|
7250
7230
|
if (!u || typeof u != "object") return;
|
|
7251
|
-
const Y = u._pdfCmdNonce,
|
|
7252
|
-
if (!(Y == null || Y === U.current || !
|
|
7253
|
-
switch (U.current = Y,
|
|
7231
|
+
const Y = u._pdfCmdNonce, W = u.pdfCommand, ft = u.pdfCommandArg;
|
|
7232
|
+
if (!(Y == null || Y === U.current || !W)) {
|
|
7233
|
+
switch (U.current = Y, W) {
|
|
7254
7234
|
case "print":
|
|
7255
|
-
|
|
7235
|
+
q();
|
|
7256
7236
|
break;
|
|
7257
7237
|
case "download":
|
|
7258
7238
|
et();
|
|
@@ -7261,10 +7241,10 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
|
|
|
7261
7241
|
Z();
|
|
7262
7242
|
break;
|
|
7263
7243
|
case "exitFullscreen":
|
|
7264
|
-
|
|
7244
|
+
st();
|
|
7265
7245
|
break;
|
|
7266
7246
|
case "goToPage":
|
|
7267
|
-
typeof
|
|
7247
|
+
typeof ft == "number" && Ct(ft, "smooth");
|
|
7268
7248
|
break;
|
|
7269
7249
|
case "fitWidth":
|
|
7270
7250
|
H("width"), $(1);
|
|
@@ -7273,10 +7253,10 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
|
|
|
7273
7253
|
H("height"), $(1);
|
|
7274
7254
|
break;
|
|
7275
7255
|
case "zoomIn":
|
|
7276
|
-
J(
|
|
7256
|
+
J(Mn);
|
|
7277
7257
|
break;
|
|
7278
7258
|
case "zoomOut":
|
|
7279
|
-
J(
|
|
7259
|
+
J(-Mn);
|
|
7280
7260
|
break;
|
|
7281
7261
|
case "previewSingle":
|
|
7282
7262
|
M("single");
|
|
@@ -7286,9 +7266,9 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
|
|
|
7286
7266
|
break;
|
|
7287
7267
|
}
|
|
7288
7268
|
if (t && e) {
|
|
7289
|
-
const
|
|
7269
|
+
const mt = _.getState().getProps(t, e), jt = mt && typeof mt == "object" && !Array.isArray(mt) ? mt : {};
|
|
7290
7270
|
_.getState().setProps(t, e, {
|
|
7291
|
-
...
|
|
7271
|
+
...jt,
|
|
7292
7272
|
pdfCommand: void 0,
|
|
7293
7273
|
pdfCommandArg: void 0
|
|
7294
7274
|
});
|
|
@@ -7298,16 +7278,16 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
|
|
|
7298
7278
|
u,
|
|
7299
7279
|
t,
|
|
7300
7280
|
e,
|
|
7301
|
-
|
|
7281
|
+
q,
|
|
7302
7282
|
et,
|
|
7303
7283
|
Z,
|
|
7304
|
-
|
|
7284
|
+
st,
|
|
7305
7285
|
Ct,
|
|
7306
7286
|
J
|
|
7307
7287
|
]), /* @__PURE__ */ b(
|
|
7308
7288
|
"div",
|
|
7309
7289
|
{
|
|
7310
|
-
ref:
|
|
7290
|
+
ref: z,
|
|
7311
7291
|
className: p,
|
|
7312
7292
|
style: {
|
|
7313
7293
|
display: "flex",
|
|
@@ -7327,29 +7307,29 @@ const Do = 0.5, xo = 3, $n = 0.1, Ts = ({
|
|
|
7327
7307
|
backgroundColor: x,
|
|
7328
7308
|
border: n ? "1px dashed #ccc" : void 0
|
|
7329
7309
|
},
|
|
7330
|
-
onScroll:
|
|
7310
|
+
onScroll: dt,
|
|
7331
7311
|
children: O ? /* @__PURE__ */ b(
|
|
7332
|
-
|
|
7312
|
+
qn,
|
|
7333
7313
|
{
|
|
7334
7314
|
type: "error",
|
|
7335
7315
|
message: (l == null ? void 0 : l.trim()) || O.message,
|
|
7336
7316
|
showIcon: !0
|
|
7337
7317
|
}
|
|
7338
|
-
) : /* @__PURE__ */
|
|
7339
|
-
A ? /* @__PURE__ */ b("div", { style: { padding: 48, textAlign: "center" }, children: /* @__PURE__ */ b(
|
|
7318
|
+
) : /* @__PURE__ */ ct(le, { children: [
|
|
7319
|
+
A ? /* @__PURE__ */ b("div", { style: { padding: 48, textAlign: "center" }, children: /* @__PURE__ */ b(Wn, {}) }) : null,
|
|
7340
7320
|
/* @__PURE__ */ b(
|
|
7341
7321
|
oi,
|
|
7342
7322
|
{
|
|
7343
7323
|
file: S,
|
|
7344
|
-
onLoadSuccess:
|
|
7345
|
-
onLoadError:
|
|
7324
|
+
onLoadSuccess: kt,
|
|
7325
|
+
onLoadError: $t,
|
|
7346
7326
|
loading: null,
|
|
7347
7327
|
options: at,
|
|
7348
|
-
children:
|
|
7328
|
+
children: ut.map((Y) => /* @__PURE__ */ b(
|
|
7349
7329
|
"div",
|
|
7350
7330
|
{
|
|
7351
|
-
ref: (
|
|
7352
|
-
|
|
7331
|
+
ref: (W) => {
|
|
7332
|
+
V.current[Y] = W;
|
|
7353
7333
|
},
|
|
7354
7334
|
style: {
|
|
7355
7335
|
display: "flex",
|
|
@@ -7451,29 +7431,29 @@ function It(e, t) {
|
|
|
7451
7431
|
// 事件配置
|
|
7452
7432
|
events: $,
|
|
7453
7433
|
// 其余配置直接透传
|
|
7454
|
-
...
|
|
7455
|
-
} = o, K =
|
|
7434
|
+
...z
|
|
7435
|
+
} = o, K = Mt(null), V = _((J) => J.getDataSet), R = _((J) => J.addCommand), L = y(() => {
|
|
7456
7436
|
if (p && g) {
|
|
7457
|
-
const
|
|
7458
|
-
if (
|
|
7437
|
+
const q = V(p, g);
|
|
7438
|
+
if (q !== void 0) return q;
|
|
7459
7439
|
}
|
|
7460
7440
|
const J = At(f);
|
|
7461
7441
|
return J !== void 0 ? J : d ? r : [];
|
|
7462
|
-
}, [f, p, g,
|
|
7463
|
-
var
|
|
7442
|
+
}, [f, p, g, V, d]), Q = (J) => {
|
|
7443
|
+
var q;
|
|
7464
7444
|
if (K.current = J, !d && l) {
|
|
7465
7445
|
const et = At($);
|
|
7466
|
-
et && typeof et == "object" && Object.entries(et).forEach(([Z,
|
|
7467
|
-
typeof
|
|
7446
|
+
et && typeof et == "object" && Object.entries(et).forEach(([Z, st]) => {
|
|
7447
|
+
typeof st == "string" && J.on(Z, (dt) => {
|
|
7468
7448
|
R(l, {
|
|
7469
|
-
actionName:
|
|
7470
|
-
arg:
|
|
7449
|
+
actionName: st,
|
|
7450
|
+
arg: dt,
|
|
7471
7451
|
timestamp: Date.now()
|
|
7472
7452
|
});
|
|
7473
7453
|
});
|
|
7474
7454
|
});
|
|
7475
7455
|
}
|
|
7476
|
-
(
|
|
7456
|
+
(q = z.onReady) == null || q.call(z, J);
|
|
7477
7457
|
}, G = At(s) || {}, U = {
|
|
7478
7458
|
data: L,
|
|
7479
7459
|
// 优先使用 common 中的配置,没配置则使用默认值
|
|
@@ -7484,7 +7464,7 @@ function It(e, t) {
|
|
|
7484
7464
|
// 设计器模式禁用动画
|
|
7485
7465
|
animate: d ? !1 : At(O),
|
|
7486
7466
|
onReady: Q,
|
|
7487
|
-
...
|
|
7467
|
+
...z
|
|
7488
7468
|
}, at = At(C);
|
|
7489
7469
|
at !== void 0 && (U.title = at);
|
|
7490
7470
|
const it = At(w);
|
|
@@ -7493,22 +7473,22 @@ function It(e, t) {
|
|
|
7493
7473
|
nt !== void 0 && (U.label = nt);
|
|
7494
7474
|
const pt = At(T);
|
|
7495
7475
|
pt !== void 0 && (U.tooltip = pt);
|
|
7496
|
-
const
|
|
7497
|
-
|
|
7476
|
+
const St = At(N);
|
|
7477
|
+
St !== void 0 && (U.scale = St);
|
|
7498
7478
|
const gt = At(A);
|
|
7499
7479
|
gt !== void 0 && (U.interaction = gt);
|
|
7500
7480
|
const tt = At(E);
|
|
7501
7481
|
tt !== void 0 && (U.annotations = tt);
|
|
7502
|
-
const
|
|
7503
|
-
|
|
7482
|
+
const ut = At(k);
|
|
7483
|
+
ut !== void 0 && (U.axis = ut);
|
|
7504
7484
|
const ot = At(M);
|
|
7505
7485
|
ot !== void 0 && (U.scrollbar = ot);
|
|
7506
7486
|
const Ct = At(B);
|
|
7507
7487
|
Ct !== void 0 && (U.slider = Ct);
|
|
7508
|
-
const
|
|
7509
|
-
|
|
7510
|
-
const
|
|
7511
|
-
return
|
|
7488
|
+
const kt = At(H);
|
|
7489
|
+
kt !== void 0 && (U.theme = kt);
|
|
7490
|
+
const $t = At(P);
|
|
7491
|
+
return $t !== void 0 && (U.state = $t), /* @__PURE__ */ b(e, { ...U });
|
|
7512
7492
|
};
|
|
7513
7493
|
return a.displayName = `withBaseChart(${n})`, a;
|
|
7514
7494
|
}
|
|
@@ -7813,30 +7793,30 @@ export {
|
|
|
7813
7793
|
wo as ensurePdfjsWorker,
|
|
7814
7794
|
ae as findDictOptionByValue,
|
|
7815
7795
|
Ca as formatByType,
|
|
7816
|
-
|
|
7796
|
+
rn as getAccessToken,
|
|
7817
7797
|
Gt as getCoreConfig,
|
|
7818
7798
|
rt as getDataSetStoreKey,
|
|
7819
|
-
|
|
7820
|
-
|
|
7799
|
+
ln as getDictOptions,
|
|
7800
|
+
Ze as getNestedValue,
|
|
7821
7801
|
ge as getValidateStoreKey,
|
|
7822
7802
|
gi as initReactMount,
|
|
7823
|
-
|
|
7803
|
+
tr as isTokenName,
|
|
7824
7804
|
Qt as mergeStoreProps,
|
|
7825
7805
|
ec as mountReactComponent,
|
|
7826
7806
|
ee as parseAction,
|
|
7827
7807
|
Se as parseArrayNotation,
|
|
7828
7808
|
bt as parseChangeAction,
|
|
7829
7809
|
wi as parseClickAction,
|
|
7830
|
-
|
|
7810
|
+
Ne as parseNestedPath,
|
|
7831
7811
|
uc as parseQueryAction,
|
|
7832
|
-
|
|
7812
|
+
Fn as processValidationRules,
|
|
7833
7813
|
dc as req,
|
|
7834
7814
|
re as request,
|
|
7835
7815
|
yc as resolveTokenColorWithToken,
|
|
7836
7816
|
fc as setCoreConfig,
|
|
7837
7817
|
vi as setNestedValue,
|
|
7838
7818
|
Cs as setPdfjsWorkerSrc,
|
|
7839
|
-
|
|
7819
|
+
Xn as upload,
|
|
7840
7820
|
ac as useAddCommand,
|
|
7841
7821
|
_ as useAndStore,
|
|
7842
7822
|
na as useApiService,
|
|
@@ -7845,13 +7825,13 @@ export {
|
|
|
7845
7825
|
Kt as useFieldValidation,
|
|
7846
7826
|
cc as useItemStore,
|
|
7847
7827
|
oc as usePopCommand,
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7828
|
+
un as useRemoteOptions,
|
|
7829
|
+
Ke as useResolveTokenColor,
|
|
7830
|
+
Re as useResolvedDataSet,
|
|
7851
7831
|
rc as useStore,
|
|
7852
7832
|
ic as useStoreByName,
|
|
7853
7833
|
bi as useStoreData,
|
|
7854
|
-
|
|
7834
|
+
Zn as validateWithSchema,
|
|
7855
7835
|
Si as watchCommands,
|
|
7856
7836
|
It as withBaseChart
|
|
7857
7837
|
};
|