@nuwatop/code-canvas-core 0.5.59 → 0.5.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsx as p, jsxs as ye, Fragment as St } from "react/jsx-runtime";
|
|
2
|
-
import { createRoot as
|
|
3
|
-
import { theme as ct, ConfigProvider as Ke, Button as st, Tooltip as
|
|
4
|
-
import { StyleProvider as
|
|
5
|
-
import
|
|
6
|
-
import { create as
|
|
7
|
-
import { subscribeWithSelector as
|
|
8
|
-
import { immer as
|
|
9
|
-
import Le, { useMemo as f, useCallback as z, useEffect as Ne, createContext as
|
|
2
|
+
import { createRoot as _r } from "react-dom/client";
|
|
3
|
+
import { theme as ct, ConfigProvider as Ke, Button as st, Tooltip as Wn, Space as _e, Input as qt, InputNumber as Hn, Select as Un, Switch as Er, DatePicker as Yn, TimePicker as Or, Radio as Yt, Checkbox as bt, Rate as $r, Slider as Mr, Cascader as Rr, TreeSelect as jr, message as Bt, Upload as Br, Image as at, AutoComplete as Kr, Form as Vt, Transfer as Lr, Segmented as zr, Modal as In, Table as Vr, Flex as Jn, Typography as mn, Tabs as Fr, Tree as qr, Timeline as Pr, Steps as Wr, Statistic as en, Carousel as Hr, Avatar as Ur, Tag as Gn, Pagination as Qn, Breadcrumb as Yr, Menu as Ir, Calendar as Jr, Badge as Zn, Masonry as Gr, Alert as Xn, Drawer as Qr, Result as Zr, Card as tn, Divider as wn, Dropdown as Xr, Row as ei, Col as ti, QRCode as ni, Splitter as It, Spin as er, Watermark as ri, Empty as ii } from "antd";
|
|
4
|
+
import { StyleProvider as oi, createCache as ai } from "@ant-design/cssinjs";
|
|
5
|
+
import ci from "antd/locale/zh_CN";
|
|
6
|
+
import { create as si } from "zustand";
|
|
7
|
+
import { subscribeWithSelector as li } from "zustand/middleware";
|
|
8
|
+
import { immer as ui } from "zustand/middleware/immer";
|
|
9
|
+
import Le, { useMemo as f, useCallback as z, useEffect as Ne, createContext as di, useContext as Ge, useState as we, useRef as Re, useLayoutEffect as tr, useId as fi, Suspense as mi } from "react";
|
|
10
10
|
import * as Je from "@ant-design/icons";
|
|
11
|
-
import { CloseCircleOutlined as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { pdfjs as
|
|
11
|
+
import { CloseCircleOutlined as yi, PlusOutlined as nr, UploadOutlined as hi, MenuOutlined as gi, MinusOutlined as pi, LeftOutlined as rr, RightOutlined as ir, UpOutlined as vi, DownOutlined as or, ApiOutlined as bi, InboxOutlined as Si, FilePdfOutlined as wi } from "@ant-design/icons";
|
|
12
|
+
import xi from "clsx";
|
|
13
|
+
import tt from "dayjs";
|
|
14
|
+
import { pdfjs as ar, Document as Ai, Page as Di } from "react-pdf";
|
|
15
15
|
import "react-pdf/dist/Page/TextLayer.css";
|
|
16
16
|
import "react-pdf/dist/Page/AnnotationLayer.css";
|
|
17
|
-
import { Line as
|
|
17
|
+
import { Line as Ci, Column as Ni, Pie as Ti, Area as ki, DualAxes as _i, Gauge as Ei, Liquid as Oi, Bar as $i } from "@ant-design/plots";
|
|
18
18
|
const Kt = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap();
|
|
19
19
|
let rn = !1;
|
|
20
|
-
const
|
|
20
|
+
const Mi = () => {
|
|
21
21
|
rn || (rn = !0);
|
|
22
|
-
},
|
|
22
|
+
}, Ri = (t) => {
|
|
23
23
|
let e = nn.get(t);
|
|
24
|
-
return e || (e =
|
|
25
|
-
},
|
|
24
|
+
return e || (e = ai(), nn.set(t, e)), e;
|
|
25
|
+
}, Dc = (t) => {
|
|
26
26
|
t && nn.delete(t);
|
|
27
|
-
},
|
|
27
|
+
}, Cc = async ({
|
|
28
28
|
el: t,
|
|
29
29
|
component: e,
|
|
30
30
|
props: n = {},
|
|
@@ -33,7 +33,7 @@ const $i = () => {
|
|
|
33
33
|
skipUnmount: o = !1
|
|
34
34
|
}) => {
|
|
35
35
|
var C;
|
|
36
|
-
|
|
36
|
+
Mi();
|
|
37
37
|
const a = Kt.get(t);
|
|
38
38
|
if (a) {
|
|
39
39
|
if (o)
|
|
@@ -52,12 +52,12 @@ const $i = () => {
|
|
|
52
52
|
}
|
|
53
53
|
Kt.delete(t);
|
|
54
54
|
}
|
|
55
|
-
const c =
|
|
55
|
+
const c = _r(t);
|
|
56
56
|
Kt.set(t, c);
|
|
57
|
-
const s = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, v = !r && s && d && d.defaultView !== null, h = v ? s : window.document.head, m = v ? d : window.document, b =
|
|
57
|
+
const s = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, v = !r && s && d && d.defaultView !== null, h = v ? s : window.document.head, m = v ? d : window.document, b = Ri(m), g = (((C = window.__GLS_COMPS__) == null ? void 0 : C.theme) || i) === "dark" ? ct.darkAlgorithm : ct.defaultAlgorithm, u = (x) => /* @__PURE__ */ p(oi, { cache: b, container: h, hashPriority: "high", children: /* @__PURE__ */ p(
|
|
58
58
|
Ke,
|
|
59
59
|
{
|
|
60
|
-
locale:
|
|
60
|
+
locale: ci,
|
|
61
61
|
theme: {
|
|
62
62
|
algorithm: g,
|
|
63
63
|
cssVar: {
|
|
@@ -86,7 +86,7 @@ const $i = () => {
|
|
|
86
86
|
window.__CURRENT_STYLE_CONTAINER__ = h, c.render(u(x));
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
},
|
|
89
|
+
}, Nc = () => {
|
|
90
90
|
console.info("[code-canvas-core] Cleanup called - components will be garbage collected"), rn = !1;
|
|
91
91
|
};
|
|
92
92
|
function wt(t) {
|
|
@@ -132,7 +132,7 @@ function kt(t, e) {
|
|
|
132
132
|
}
|
|
133
133
|
return n;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function ji(t, e, n) {
|
|
136
136
|
if (!e.length) return n;
|
|
137
137
|
const i = Array.isArray(t) ? [...t] : { ...t };
|
|
138
138
|
let r = i;
|
|
@@ -166,7 +166,7 @@ function An(t, e, n, i) {
|
|
|
166
166
|
const d = t.dataSets[r];
|
|
167
167
|
let v = d.value;
|
|
168
168
|
Array.isArray(v) || (v = []);
|
|
169
|
-
const h = v[o], m = n.length === 0 ? h : kt(h ?? {}, n), b = i(m), y = n.length === 0 ? b :
|
|
169
|
+
const h = v[o], m = n.length === 0 ? h : kt(h ?? {}, n), b = i(m), y = n.length === 0 ? b : ji(h ?? {}, n, b), l = [...v];
|
|
170
170
|
l[o] = y, t.dataSets[r] = { ...d, value: l };
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
@@ -183,9 +183,9 @@ function An(t, e, n, i) {
|
|
|
183
183
|
const c = n[n.length - 1], s = a[c.key];
|
|
184
184
|
a[c.key] = i(s);
|
|
185
185
|
}
|
|
186
|
-
const _ =
|
|
187
|
-
|
|
188
|
-
|
|
186
|
+
const _ = si()(
|
|
187
|
+
li(
|
|
188
|
+
ui((t, e) => ({
|
|
189
189
|
...xn,
|
|
190
190
|
// ============ 数据集操作(支持 name[index] 与 field 多级路径;append 默认 true 为合并更新) ============
|
|
191
191
|
setDataSet: (n, i, r, o = !0) => t((a) => {
|
|
@@ -266,7 +266,7 @@ const _ = ci()(
|
|
|
266
266
|
}))
|
|
267
267
|
)
|
|
268
268
|
);
|
|
269
|
-
function
|
|
269
|
+
function Tc(t) {
|
|
270
270
|
const { dataSet: e, dataSetField: n } = t, i = _((r) => r.setDataSet);
|
|
271
271
|
return {
|
|
272
272
|
get value() {
|
|
@@ -278,7 +278,7 @@ function Nc(t) {
|
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function kc(t) {
|
|
282
282
|
const e = _((n) => n.setDataSetBatch);
|
|
283
283
|
return {
|
|
284
284
|
get value() {
|
|
@@ -289,13 +289,13 @@ function Tc(t) {
|
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function _c() {
|
|
293
293
|
return _((t) => t.addCommand);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Ec() {
|
|
296
296
|
return _((t) => t.popCommand);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Bi(t, e) {
|
|
299
299
|
const n = _((r) => {
|
|
300
300
|
if (!t) return;
|
|
301
301
|
const o = wt(t).baseName;
|
|
@@ -307,7 +307,7 @@ function ji(t, e) {
|
|
|
307
307
|
return Array.isArray(o) ? o : o != null && typeof o == "object" && Array.isArray(o.value) ? o.value : [];
|
|
308
308
|
}, [n, t, e, i]);
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Oc() {
|
|
311
311
|
const t = _((o) => o.setDataSetBatch), e = _((o) => o.setDataSet), n = _((o) => o.updateDataSet), i = _((o) => o.getDataSet), r = _.getState;
|
|
312
312
|
return {
|
|
313
313
|
get items() {
|
|
@@ -328,7 +328,7 @@ function Ec() {
|
|
|
328
328
|
getItem: (o) => r().dataSets[o] || {}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function $c(t) {
|
|
332
332
|
const e = _((o) => o.addCommand), n = _((o) => o.popCommand), i = _((o) => o.getCommands), r = _((o) => o.clearCommands);
|
|
333
333
|
return {
|
|
334
334
|
commands: i(t),
|
|
@@ -343,7 +343,7 @@ function Oc(t) {
|
|
|
343
343
|
clearCommands: () => r(t)
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Ki(t, e, n = {}) {
|
|
347
347
|
return _.subscribe(
|
|
348
348
|
(r) => r.commandQueues[e],
|
|
349
349
|
(r) => {
|
|
@@ -363,10 +363,10 @@ function Bi(t, e, n = {}) {
|
|
|
363
363
|
}
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Mc(t) {
|
|
367
367
|
return function(e, n) {
|
|
368
368
|
const i = t();
|
|
369
|
-
return
|
|
369
|
+
return Ki(e, n, i);
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
372
|
function dt(t, e = null, n = {}) {
|
|
@@ -393,10 +393,10 @@ function dt(t, e = null, n = {}) {
|
|
|
393
393
|
function ke(t, e, n = {}) {
|
|
394
394
|
return dt(t, e, n);
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function cr(t, e = {}) {
|
|
397
397
|
return dt(t, null, e);
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function Rc(t, e = {}) {
|
|
400
400
|
return dt(t, null, e);
|
|
401
401
|
}
|
|
402
402
|
function oe(t, e) {
|
|
@@ -416,7 +416,7 @@ function ft() {
|
|
|
416
416
|
return t;
|
|
417
417
|
}, ft.apply(this, arguments);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Li(t, e) {
|
|
420
420
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, _t(t, e);
|
|
421
421
|
}
|
|
422
422
|
function on(t) {
|
|
@@ -429,7 +429,7 @@ function _t(t, e) {
|
|
|
429
429
|
return i.__proto__ = r, i;
|
|
430
430
|
}, _t(t, e);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function zi() {
|
|
433
433
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
434
434
|
if (typeof Proxy == "function") return !0;
|
|
435
435
|
try {
|
|
@@ -440,20 +440,20 @@ function Li() {
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
function Ft(t, e, n) {
|
|
443
|
-
return
|
|
443
|
+
return zi() ? Ft = Reflect.construct.bind() : Ft = function(r, o, a) {
|
|
444
444
|
var c = [null];
|
|
445
445
|
c.push.apply(c, o);
|
|
446
446
|
var s = Function.bind.apply(r, c), d = new s();
|
|
447
447
|
return a && _t(d, a.prototype), d;
|
|
448
448
|
}, Ft.apply(null, arguments);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Vi(t) {
|
|
451
451
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
452
452
|
}
|
|
453
453
|
function an(t) {
|
|
454
454
|
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
455
455
|
return an = function(i) {
|
|
456
|
-
if (i === null || !
|
|
456
|
+
if (i === null || !Vi(i)) return i;
|
|
457
457
|
if (typeof i != "function")
|
|
458
458
|
throw new TypeError("Super expression must either be null or a function");
|
|
459
459
|
if (typeof e < "u") {
|
|
@@ -473,9 +473,9 @@ function an(t) {
|
|
|
473
473
|
}), _t(r, i);
|
|
474
474
|
}, an(t);
|
|
475
475
|
}
|
|
476
|
-
var
|
|
476
|
+
var Fi = /%[sdj%]/g, sr = 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" && (sr = function(e, 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(e, n);
|
|
@@ -495,7 +495,7 @@ function qe(t) {
|
|
|
495
495
|
if (typeof t == "function")
|
|
496
496
|
return t.apply(null, n);
|
|
497
497
|
if (typeof t == "string") {
|
|
498
|
-
var a = t.replace(
|
|
498
|
+
var a = t.replace(Fi, function(c) {
|
|
499
499
|
if (c === "%%")
|
|
500
500
|
return "%";
|
|
501
501
|
if (r >= o)
|
|
@@ -520,13 +520,13 @@ function qe(t) {
|
|
|
520
520
|
}
|
|
521
521
|
return t;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function qi(t) {
|
|
524
524
|
return t === "string" || t === "url" || t === "hex" || t === "email" || t === "date" || t === "pattern";
|
|
525
525
|
}
|
|
526
526
|
function Be(t, e) {
|
|
527
|
-
return !!(t == null || e === "array" && Array.isArray(t) && !t.length ||
|
|
527
|
+
return !!(t == null || e === "array" && Array.isArray(t) && !t.length || qi(e) && typeof t == "string" && !t);
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Pi(t, e, n) {
|
|
530
530
|
var i = [], r = 0, o = t.length;
|
|
531
531
|
function a(c) {
|
|
532
532
|
i.push.apply(i, c || []), r++, r === o && n(i);
|
|
@@ -547,26 +547,26 @@ function Dn(t, e, n) {
|
|
|
547
547
|
}
|
|
548
548
|
o([]);
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Wi(t) {
|
|
551
551
|
var e = [];
|
|
552
552
|
return Object.keys(t).forEach(function(n) {
|
|
553
553
|
e.push.apply(e, t[n] || []);
|
|
554
554
|
}), e;
|
|
555
555
|
}
|
|
556
556
|
var Cn = /* @__PURE__ */ function(t) {
|
|
557
|
-
|
|
557
|
+
Li(e, t);
|
|
558
558
|
function e(n, i) {
|
|
559
559
|
var r;
|
|
560
560
|
return r = t.call(this, "Async Validation Error") || this, r.errors = n, r.fields = i, r;
|
|
561
561
|
}
|
|
562
562
|
return e;
|
|
563
563
|
}(/* @__PURE__ */ an(Error));
|
|
564
|
-
function
|
|
564
|
+
function Hi(t, e, n, i, r) {
|
|
565
565
|
if (e.first) {
|
|
566
566
|
var o = new Promise(function(m, b) {
|
|
567
567
|
var y = function(u) {
|
|
568
568
|
return i(u), u.length ? b(new Cn(u, cn(u))) : m(r);
|
|
569
|
-
}, l =
|
|
569
|
+
}, l = Wi(t);
|
|
570
570
|
Dn(l, n, y);
|
|
571
571
|
});
|
|
572
572
|
return o.catch(function(m) {
|
|
@@ -580,17 +580,17 @@ function Wi(t, e, n, i, r) {
|
|
|
580
580
|
};
|
|
581
581
|
c.length || (i(v), m(r)), c.forEach(function(l) {
|
|
582
582
|
var g = t[l];
|
|
583
|
-
a.indexOf(l) !== -1 ? Dn(g, n, y) :
|
|
583
|
+
a.indexOf(l) !== -1 ? Dn(g, n, y) : Pi(g, n, y);
|
|
584
584
|
});
|
|
585
585
|
});
|
|
586
586
|
return h.catch(function(m) {
|
|
587
587
|
return m;
|
|
588
588
|
}), h;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Ui(t) {
|
|
591
591
|
return !!(t && t.message !== void 0);
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Yi(t, e) {
|
|
594
594
|
for (var n = t, i = 0; i < e.length; i++) {
|
|
595
595
|
if (n == null)
|
|
596
596
|
return n;
|
|
@@ -601,7 +601,7 @@ function Ui(t, e) {
|
|
|
601
601
|
function Nn(t, e) {
|
|
602
602
|
return function(n) {
|
|
603
603
|
var i;
|
|
604
|
-
return t.fullFields ? i =
|
|
604
|
+
return t.fullFields ? i = Yi(e, t.fullFields) : i = e[n.field || t.fullField], Ui(n) ? (n.field = n.field || t.fullField, n.fieldValue = i, n) : {
|
|
605
605
|
message: typeof n == "function" ? n() : n,
|
|
606
606
|
fieldValue: i,
|
|
607
607
|
field: n.field || t.fullField
|
|
@@ -618,11 +618,11 @@ function Tn(t, e) {
|
|
|
618
618
|
}
|
|
619
619
|
return t;
|
|
620
620
|
}
|
|
621
|
-
var
|
|
621
|
+
var lr = function(e, n, i, r, o, a) {
|
|
622
622
|
e.required && (!i.hasOwnProperty(e.field) || Be(n, a || e.type)) && r.push(qe(o.messages.required, e.fullField));
|
|
623
|
-
},
|
|
623
|
+
}, Ii = function(e, n, i, r, o) {
|
|
624
624
|
(/^\s+$/.test(n) || n === "") && r.push(qe(o.messages.whitespace, e.fullField));
|
|
625
|
-
}, Lt,
|
|
625
|
+
}, Lt, Ji = function() {
|
|
626
626
|
if (Lt)
|
|
627
627
|
return Lt;
|
|
628
628
|
var t = "[a-fA-F\\d:]", e = function(C) {
|
|
@@ -691,26 +691,26 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
691
691
|
return typeof e == "string" && e.length <= 320 && !!e.match(kn.email);
|
|
692
692
|
},
|
|
693
693
|
url: function(e) {
|
|
694
|
-
return typeof e == "string" && e.length <= 2048 && !!e.match(
|
|
694
|
+
return typeof e == "string" && e.length <= 2048 && !!e.match(Ji());
|
|
695
695
|
},
|
|
696
696
|
hex: function(e) {
|
|
697
697
|
return typeof e == "string" && !!e.match(kn.hex);
|
|
698
698
|
}
|
|
699
|
-
},
|
|
699
|
+
}, Gi = function(e, n, i, r, o) {
|
|
700
700
|
if (e.required && n === void 0) {
|
|
701
|
-
|
|
701
|
+
lr(e, n, i, r, o);
|
|
702
702
|
return;
|
|
703
703
|
}
|
|
704
704
|
var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], c = e.type;
|
|
705
705
|
a.indexOf(c) > -1 ? Ct[c](n) || r.push(qe(o.messages.types[c], e.fullField, e.type)) : c && typeof n !== e.type && r.push(qe(o.messages.types[c], e.fullField, e.type));
|
|
706
|
-
},
|
|
706
|
+
}, Qi = function(e, n, i, r, o) {
|
|
707
707
|
var a = typeof e.len == "number", c = typeof e.min == "number", s = typeof e.max == "number", d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, v = n, h = null, m = typeof n == "number", b = typeof n == "string", y = Array.isArray(n);
|
|
708
708
|
if (m ? h = "number" : b ? h = "string" : y && (h = "array"), !h)
|
|
709
709
|
return !1;
|
|
710
710
|
y && (v = n.length), b && (v = n.replace(d, "_").length), a ? v !== e.len && r.push(qe(o.messages[h].len, e.fullField, e.len)) : c && !s && v < e.min ? r.push(qe(o.messages[h].min, e.fullField, e.min)) : s && !c && v > e.max ? r.push(qe(o.messages[h].max, e.fullField, e.max)) : c && s && (v < e.min || v > e.max) && r.push(qe(o.messages[h].range, e.fullField, e.min, e.max));
|
|
711
|
-
}, gt = "enum",
|
|
711
|
+
}, gt = "enum", Zi = function(e, n, i, r, o) {
|
|
712
712
|
e[gt] = Array.isArray(e[gt]) ? e[gt] : [], e[gt].indexOf(n) === -1 && r.push(qe(o.messages[gt], e.fullField, e[gt].join(", ")));
|
|
713
|
-
},
|
|
713
|
+
}, Xi = function(e, n, i, r, o) {
|
|
714
714
|
if (e.pattern) {
|
|
715
715
|
if (e.pattern instanceof RegExp)
|
|
716
716
|
e.pattern.lastIndex = 0, e.pattern.test(n) || r.push(qe(o.messages.pattern.mismatch, e.fullField, n, e.pattern));
|
|
@@ -720,13 +720,13 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
722
|
}, xe = {
|
|
723
|
-
required:
|
|
724
|
-
whitespace:
|
|
725
|
-
type:
|
|
726
|
-
range:
|
|
727
|
-
enum:
|
|
728
|
-
pattern:
|
|
729
|
-
},
|
|
723
|
+
required: lr,
|
|
724
|
+
whitespace: Ii,
|
|
725
|
+
type: Gi,
|
|
726
|
+
range: Qi,
|
|
727
|
+
enum: Zi,
|
|
728
|
+
pattern: Xi
|
|
729
|
+
}, eo = function(e, n, i, r, o) {
|
|
730
730
|
var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
731
731
|
if (c) {
|
|
732
732
|
if (Be(n, "string") && !e.required)
|
|
@@ -734,7 +734,7 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
734
734
|
xe.required(e, n, r, a, o, "string"), Be(n, "string") || (xe.type(e, n, r, a, o), xe.range(e, n, r, a, o), xe.pattern(e, n, r, a, o), e.whitespace === !0 && xe.whitespace(e, n, r, a, o));
|
|
735
735
|
}
|
|
736
736
|
i(a);
|
|
737
|
-
},
|
|
737
|
+
}, to = function(e, n, i, r, o) {
|
|
738
738
|
var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
739
739
|
if (c) {
|
|
740
740
|
if (Be(n) && !e.required)
|
|
@@ -742,7 +742,7 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
742
742
|
xe.required(e, n, r, a, o), n !== void 0 && xe.type(e, n, r, a, o);
|
|
743
743
|
}
|
|
744
744
|
i(a);
|
|
745
|
-
},
|
|
745
|
+
}, no = function(e, n, i, r, o) {
|
|
746
746
|
var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
747
747
|
if (c) {
|
|
748
748
|
if (n === "" && (n = void 0), Be(n) && !e.required)
|
|
@@ -750,7 +750,7 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
750
750
|
xe.required(e, n, r, a, o), n !== void 0 && (xe.type(e, n, r, a, o), xe.range(e, n, r, a, o));
|
|
751
751
|
}
|
|
752
752
|
i(a);
|
|
753
|
-
},
|
|
753
|
+
}, ro = function(e, n, i, r, o) {
|
|
754
754
|
var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
755
755
|
if (c) {
|
|
756
756
|
if (Be(n) && !e.required)
|
|
@@ -758,7 +758,7 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
758
758
|
xe.required(e, n, r, a, o), n !== void 0 && xe.type(e, n, r, a, o);
|
|
759
759
|
}
|
|
760
760
|
i(a);
|
|
761
|
-
},
|
|
761
|
+
}, io = function(e, n, i, r, o) {
|
|
762
762
|
var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
763
763
|
if (c) {
|
|
764
764
|
if (Be(n) && !e.required)
|
|
@@ -766,7 +766,7 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
766
766
|
xe.required(e, n, r, a, o), Be(n) || xe.type(e, n, r, a, o);
|
|
767
767
|
}
|
|
768
768
|
i(a);
|
|
769
|
-
},
|
|
769
|
+
}, oo = function(e, n, i, r, o) {
|
|
770
770
|
var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
771
771
|
if (c) {
|
|
772
772
|
if (Be(n) && !e.required)
|
|
@@ -774,7 +774,7 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
774
774
|
xe.required(e, n, r, a, o), n !== void 0 && (xe.type(e, n, r, a, o), xe.range(e, n, r, a, o));
|
|
775
775
|
}
|
|
776
776
|
i(a);
|
|
777
|
-
},
|
|
777
|
+
}, ao = function(e, n, i, r, o) {
|
|
778
778
|
var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
779
779
|
if (c) {
|
|
780
780
|
if (Be(n) && !e.required)
|
|
@@ -782,7 +782,7 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
782
782
|
xe.required(e, n, r, a, o), n !== void 0 && (xe.type(e, n, r, a, o), xe.range(e, n, r, a, o));
|
|
783
783
|
}
|
|
784
784
|
i(a);
|
|
785
|
-
},
|
|
785
|
+
}, co = function(e, n, i, r, o) {
|
|
786
786
|
var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
787
787
|
if (c) {
|
|
788
788
|
if (n == null && !e.required)
|
|
@@ -790,7 +790,7 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
790
790
|
xe.required(e, n, r, a, o, "array"), n != null && (xe.type(e, n, r, a, o), xe.range(e, n, r, a, o));
|
|
791
791
|
}
|
|
792
792
|
i(a);
|
|
793
|
-
},
|
|
793
|
+
}, so = function(e, n, i, r, o) {
|
|
794
794
|
var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
795
795
|
if (c) {
|
|
796
796
|
if (Be(n) && !e.required)
|
|
@@ -798,15 +798,15 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
798
798
|
xe.required(e, n, r, a, o), n !== void 0 && xe.type(e, n, r, a, o);
|
|
799
799
|
}
|
|
800
800
|
i(a);
|
|
801
|
-
},
|
|
801
|
+
}, lo = "enum", uo = function(e, n, i, r, o) {
|
|
802
802
|
var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
803
803
|
if (c) {
|
|
804
804
|
if (Be(n) && !e.required)
|
|
805
805
|
return i();
|
|
806
|
-
xe.required(e, n, r, a, o), n !== void 0 && xe[
|
|
806
|
+
xe.required(e, n, r, a, o), n !== void 0 && xe[lo](e, n, r, a, o);
|
|
807
807
|
}
|
|
808
808
|
i(a);
|
|
809
|
-
},
|
|
809
|
+
}, fo = function(e, n, i, r, o) {
|
|
810
810
|
var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
811
811
|
if (c) {
|
|
812
812
|
if (Be(n, "string") && !e.required)
|
|
@@ -814,7 +814,7 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
814
814
|
xe.required(e, n, r, a, o), Be(n, "string") || xe.pattern(e, n, r, a, o);
|
|
815
815
|
}
|
|
816
816
|
i(a);
|
|
817
|
-
},
|
|
817
|
+
}, mo = function(e, n, i, r, o) {
|
|
818
818
|
var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
819
819
|
if (c) {
|
|
820
820
|
if (Be(n, "date") && !e.required)
|
|
@@ -825,7 +825,7 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
i(a);
|
|
828
|
-
},
|
|
828
|
+
}, yo = function(e, n, i, r, o) {
|
|
829
829
|
var a = [], c = Array.isArray(n) ? "array" : typeof n;
|
|
830
830
|
xe.required(e, n, r, a, o, c), i(a);
|
|
831
831
|
}, Jt = function(e, n, i, r, o) {
|
|
@@ -836,7 +836,7 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
836
836
|
xe.required(e, n, r, c, o, a), Be(n, a) || xe.type(e, n, r, c, o);
|
|
837
837
|
}
|
|
838
838
|
i(c);
|
|
839
|
-
},
|
|
839
|
+
}, ho = function(e, n, i, r, o) {
|
|
840
840
|
var a = [], c = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
841
841
|
if (c) {
|
|
842
842
|
if (Be(n) && !e.required)
|
|
@@ -845,23 +845,23 @@ var sr = function(e, n, i, r, o, a) {
|
|
|
845
845
|
}
|
|
846
846
|
i(a);
|
|
847
847
|
}, Tt = {
|
|
848
|
-
string:
|
|
849
|
-
method:
|
|
850
|
-
number:
|
|
851
|
-
boolean:
|
|
852
|
-
regexp:
|
|
853
|
-
integer:
|
|
854
|
-
float:
|
|
855
|
-
array:
|
|
856
|
-
object:
|
|
857
|
-
enum:
|
|
858
|
-
pattern:
|
|
859
|
-
date:
|
|
848
|
+
string: eo,
|
|
849
|
+
method: to,
|
|
850
|
+
number: no,
|
|
851
|
+
boolean: ro,
|
|
852
|
+
regexp: io,
|
|
853
|
+
integer: oo,
|
|
854
|
+
float: ao,
|
|
855
|
+
array: co,
|
|
856
|
+
object: so,
|
|
857
|
+
enum: uo,
|
|
858
|
+
pattern: fo,
|
|
859
|
+
date: mo,
|
|
860
860
|
url: Jt,
|
|
861
861
|
hex: Jt,
|
|
862
862
|
email: Jt,
|
|
863
|
-
required:
|
|
864
|
-
any:
|
|
863
|
+
required: yo,
|
|
864
|
+
any: ho
|
|
865
865
|
};
|
|
866
866
|
function sn() {
|
|
867
867
|
return {
|
|
@@ -974,7 +974,7 @@ var ln = sn(), Et = /* @__PURE__ */ function() {
|
|
|
974
974
|
});
|
|
975
975
|
});
|
|
976
976
|
var y = {};
|
|
977
|
-
return
|
|
977
|
+
return Hi(m, s, function(l, g) {
|
|
978
978
|
var u = l.rule, A = (u.type === "object" || u.type === "array") && (typeof u.fields == "object" || typeof u.defaultField == "object");
|
|
979
979
|
A = A && (u.required || !u.required && l.value), u.field = l.field;
|
|
980
980
|
function w(S, D) {
|
|
@@ -1048,10 +1048,10 @@ Et.register = function(e, n) {
|
|
|
1048
1048
|
throw new Error("Cannot register a validator by type, validator is not a function");
|
|
1049
1049
|
Tt[e] = n;
|
|
1050
1050
|
};
|
|
1051
|
-
Et.warning =
|
|
1051
|
+
Et.warning = sr;
|
|
1052
1052
|
Et.messages = ln;
|
|
1053
1053
|
Et.validators = Tt;
|
|
1054
|
-
function
|
|
1054
|
+
function go(t) {
|
|
1055
1055
|
if (!t || typeof t != "string") return null;
|
|
1056
1056
|
try {
|
|
1057
1057
|
let e = t.trim();
|
|
@@ -1060,18 +1060,18 @@ function ho(t) {
|
|
|
1060
1060
|
return null;
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function ur(t) {
|
|
1064
1064
|
return !t || !Array.isArray(t) ? [] : t.map((e) => {
|
|
1065
1065
|
const n = { ...e };
|
|
1066
1066
|
if (n.pattern && typeof n.pattern == "string" && n.pattern.trim()) {
|
|
1067
|
-
const i =
|
|
1067
|
+
const i = go(n.pattern);
|
|
1068
1068
|
i ? n.pattern = i : delete n.pattern;
|
|
1069
1069
|
}
|
|
1070
1070
|
return n;
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
1073
|
const _n = "_v";
|
|
1074
|
-
function
|
|
1074
|
+
function dr(t, e, n, i) {
|
|
1075
1075
|
if (!(t != null && t.length)) {
|
|
1076
1076
|
n();
|
|
1077
1077
|
return;
|
|
@@ -1119,8 +1119,8 @@ function ze(t) {
|
|
|
1119
1119
|
[r, n, i, o, c, s, d]
|
|
1120
1120
|
), A = z(
|
|
1121
1121
|
(x) => {
|
|
1122
|
-
const S =
|
|
1123
|
-
|
|
1122
|
+
const S = ur(e || []);
|
|
1123
|
+
dr(
|
|
1124
1124
|
S,
|
|
1125
1125
|
x,
|
|
1126
1126
|
() => u(""),
|
|
@@ -1138,9 +1138,9 @@ function ze(t) {
|
|
|
1138
1138
|
A(x);
|
|
1139
1139
|
}, [g, y, i, b, A]), { validate: A, help: w, validateStatus: C };
|
|
1140
1140
|
}
|
|
1141
|
-
const
|
|
1141
|
+
const po = ["value", "validateStatus", "help"];
|
|
1142
1142
|
function Ve(t, e, n) {
|
|
1143
|
-
const i = (n == null ? void 0 : n.skipKeys) ??
|
|
1143
|
+
const i = (n == null ? void 0 : n.skipKeys) ?? po, r = { ...t };
|
|
1144
1144
|
return !e || typeof e != "object" || Object.keys(e).forEach((o) => {
|
|
1145
1145
|
if (i.includes(o)) return;
|
|
1146
1146
|
const a = e[o];
|
|
@@ -1155,18 +1155,21 @@ function Ot(t, e, n) {
|
|
|
1155
1155
|
const o = i !== void 0 ? i : r !== void 0 ? r : typeof n == "number" ? n : void 0;
|
|
1156
1156
|
return o !== void 0 && Number.isFinite(o) ? `${String(t)}_${o}` : String(t);
|
|
1157
1157
|
}
|
|
1158
|
-
const Pe =
|
|
1159
|
-
function
|
|
1158
|
+
const Pe = di(null);
|
|
1159
|
+
function et(t) {
|
|
1160
1160
|
return typeof t == "string" && t.trim() !== "";
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1162
|
+
function vo(t, e) {
|
|
1163
1163
|
return t === "config.cells" && e.startsWith("config.content.") ? `config.${e.slice(15)}` : e;
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function En(t) {
|
|
1166
|
+
return et(t) && t.trim().startsWith("[");
|
|
1167
|
+
}
|
|
1168
|
+
function ot(t, e, n) {
|
|
1166
1169
|
const i = Ge(Pe);
|
|
1167
1170
|
return f(() => {
|
|
1168
1171
|
const r = n ?? (i == null ? void 0 : i.sessionId);
|
|
1169
|
-
if (
|
|
1172
|
+
if (et(t))
|
|
1170
1173
|
return {
|
|
1171
1174
|
dataSet: t,
|
|
1172
1175
|
dataSetField: e,
|
|
@@ -1179,25 +1182,25 @@ function it(t, e, n) {
|
|
|
1179
1182
|
sessionId: r
|
|
1180
1183
|
};
|
|
1181
1184
|
const o = typeof i.index == "number" ? i.index : void 0, a = typeof i.parentIndex == "number" ? i.parentIndex : void 0, c = i.dataSet, s = i.dataSetFieldRoot;
|
|
1182
|
-
if (
|
|
1183
|
-
const d =
|
|
1185
|
+
if (et(e)) {
|
|
1186
|
+
const d = vo(
|
|
1184
1187
|
s,
|
|
1185
1188
|
e.trim()
|
|
1186
1189
|
);
|
|
1187
1190
|
if (d.startsWith("["))
|
|
1188
1191
|
return {
|
|
1189
1192
|
dataSet: c,
|
|
1190
|
-
dataSetField:
|
|
1193
|
+
dataSetField: et(s) ? `${s}${d}` : d,
|
|
1191
1194
|
sessionId: r
|
|
1192
1195
|
};
|
|
1193
|
-
if (typeof a == "number" && typeof o == "number" &&
|
|
1196
|
+
if (typeof a == "number" && typeof o == "number" && et(s) && !En(s))
|
|
1194
1197
|
return {
|
|
1195
1198
|
dataSet: c,
|
|
1196
1199
|
dataSetField: `[${a}].${s}[${o}].${d}`,
|
|
1197
1200
|
sessionId: r
|
|
1198
1201
|
};
|
|
1199
1202
|
if (typeof o == "number")
|
|
1200
|
-
return
|
|
1203
|
+
return et(s) ? {
|
|
1201
1204
|
dataSet: c,
|
|
1202
1205
|
dataSetField: `${s}[${o}].${d}`,
|
|
1203
1206
|
sessionId: r
|
|
@@ -1206,18 +1209,18 @@ function it(t, e, n) {
|
|
|
1206
1209
|
dataSetField: `[${o}].${d}`,
|
|
1207
1210
|
sessionId: r
|
|
1208
1211
|
};
|
|
1209
|
-
const v =
|
|
1212
|
+
const v = et(s) ? `${s}.${d}` : d;
|
|
1210
1213
|
return {
|
|
1211
1214
|
dataSet: c,
|
|
1212
1215
|
dataSetField: v,
|
|
1213
1216
|
sessionId: r
|
|
1214
1217
|
};
|
|
1215
1218
|
}
|
|
1216
|
-
return typeof a == "number" && typeof o == "number" &&
|
|
1219
|
+
return typeof a == "number" && typeof o == "number" && et(s) && !En(s) ? {
|
|
1217
1220
|
dataSet: c,
|
|
1218
1221
|
dataSetField: `[${a}].${s}[${o}]`,
|
|
1219
1222
|
sessionId: r
|
|
1220
|
-
} : typeof o == "number" &&
|
|
1223
|
+
} : typeof o == "number" && et(s) ? {
|
|
1221
1224
|
dataSet: c,
|
|
1222
1225
|
dataSetField: `${s}[${o}]`,
|
|
1223
1226
|
sessionId: r
|
|
@@ -1227,20 +1230,20 @@ function it(t, e, n) {
|
|
|
1227
1230
|
sessionId: r
|
|
1228
1231
|
} : {
|
|
1229
1232
|
dataSet: c,
|
|
1230
|
-
dataSetField:
|
|
1233
|
+
dataSetField: et(s) ? s : e,
|
|
1231
1234
|
sessionId: r
|
|
1232
1235
|
};
|
|
1233
1236
|
}, [i, t, e, n]);
|
|
1234
1237
|
}
|
|
1235
|
-
function
|
|
1238
|
+
function bo(t, e) {
|
|
1236
1239
|
return t === e ? !0 : String(t ?? "") === String(e ?? "");
|
|
1237
1240
|
}
|
|
1238
|
-
function
|
|
1241
|
+
function nt(t, e) {
|
|
1239
1242
|
if (Array.isArray(t))
|
|
1240
|
-
return t.find((n) =>
|
|
1243
|
+
return t.find((n) => bo(n.value, e));
|
|
1241
1244
|
}
|
|
1242
1245
|
let He = {};
|
|
1243
|
-
function
|
|
1246
|
+
function jc(t) {
|
|
1244
1247
|
He = { ...He, ...t };
|
|
1245
1248
|
}
|
|
1246
1249
|
function Ie() {
|
|
@@ -1258,7 +1261,7 @@ async function mt(t) {
|
|
|
1258
1261
|
"Request handler not configured. Please call setCoreConfig() first."
|
|
1259
1262
|
);
|
|
1260
1263
|
}
|
|
1261
|
-
async function
|
|
1264
|
+
async function fr(t, e) {
|
|
1262
1265
|
if (He.upload)
|
|
1263
1266
|
return He.upload(t, e);
|
|
1264
1267
|
throw new Error(
|
|
@@ -1273,11 +1276,11 @@ async function yn(t) {
|
|
|
1273
1276
|
function un() {
|
|
1274
1277
|
return He.getAccessToken ? He.getAccessToken() : null;
|
|
1275
1278
|
}
|
|
1276
|
-
const
|
|
1279
|
+
const Bc = {
|
|
1277
1280
|
post: (t, e, n) => mt({ url: t, data: e, method: "POST", ...n }),
|
|
1278
1281
|
get: (t, e, n) => mt({ url: t, params: e, method: "GET", ...n })
|
|
1279
1282
|
};
|
|
1280
|
-
function
|
|
1283
|
+
function So() {
|
|
1281
1284
|
const t = Ie(), e = z(
|
|
1282
1285
|
async (s, d) => {
|
|
1283
1286
|
const v = typeof s == "string" ? { url: s, ...d } : s;
|
|
@@ -1294,7 +1297,7 @@ function bo() {
|
|
|
1294
1297
|
async (s) => yn(s),
|
|
1295
1298
|
[]
|
|
1296
1299
|
), o = z(
|
|
1297
|
-
async (s, d) =>
|
|
1300
|
+
async (s, d) => fr(s, d),
|
|
1298
1301
|
[]
|
|
1299
1302
|
), a = z(() => un(), []), c = z(() => !!t.request, [t.request]);
|
|
1300
1303
|
return {
|
|
@@ -1381,7 +1384,7 @@ const xt = (t) => {
|
|
|
1381
1384
|
} else
|
|
1382
1385
|
e = new Date(t);
|
|
1383
1386
|
return isNaN(e.getTime()) ? null : e;
|
|
1384
|
-
},
|
|
1387
|
+
}, wo = (t, e = "CNY", n = {}) => {
|
|
1385
1388
|
try {
|
|
1386
1389
|
const i = xt(t), r = /^[A-Z]{3}$/.test(e) ? e : "CNY";
|
|
1387
1390
|
return new Intl.NumberFormat("zh-CN", {
|
|
@@ -1392,7 +1395,7 @@ const xt = (t) => {
|
|
|
1392
1395
|
} catch {
|
|
1393
1396
|
return "";
|
|
1394
1397
|
}
|
|
1395
|
-
},
|
|
1398
|
+
}, xo = (t, e = {}) => {
|
|
1396
1399
|
try {
|
|
1397
1400
|
const n = xt(t);
|
|
1398
1401
|
return new Intl.NumberFormat("zh-CN", {
|
|
@@ -1403,7 +1406,7 @@ const xt = (t) => {
|
|
|
1403
1406
|
} catch {
|
|
1404
1407
|
return "";
|
|
1405
1408
|
}
|
|
1406
|
-
},
|
|
1409
|
+
}, Ao = (t, e = 2) => {
|
|
1407
1410
|
try {
|
|
1408
1411
|
const n = xt(t), i = Math.max(0, Math.min(20, Math.floor(e)));
|
|
1409
1412
|
return new Intl.NumberFormat("zh-CN", {
|
|
@@ -1414,7 +1417,7 @@ const xt = (t) => {
|
|
|
1414
1417
|
} catch {
|
|
1415
1418
|
return "";
|
|
1416
1419
|
}
|
|
1417
|
-
},
|
|
1420
|
+
}, Do = (t, e = "compact") => {
|
|
1418
1421
|
try {
|
|
1419
1422
|
const n = xt(t);
|
|
1420
1423
|
return new Intl.NumberFormat("zh-CN", {
|
|
@@ -1424,7 +1427,7 @@ const xt = (t) => {
|
|
|
1424
1427
|
} catch {
|
|
1425
1428
|
return "";
|
|
1426
1429
|
}
|
|
1427
|
-
},
|
|
1430
|
+
}, Co = (t, e = {}) => {
|
|
1428
1431
|
try {
|
|
1429
1432
|
const n = Pt(t);
|
|
1430
1433
|
return n ? new Intl.DateTimeFormat("zh-CN", {
|
|
@@ -1436,7 +1439,7 @@ const xt = (t) => {
|
|
|
1436
1439
|
} catch {
|
|
1437
1440
|
return "";
|
|
1438
1441
|
}
|
|
1439
|
-
},
|
|
1442
|
+
}, mr = (t, e = "YYYY-MM-DD") => {
|
|
1440
1443
|
try {
|
|
1441
1444
|
const n = Pt(t);
|
|
1442
1445
|
if (!n) return "";
|
|
@@ -1445,7 +1448,7 @@ const xt = (t) => {
|
|
|
1445
1448
|
} catch {
|
|
1446
1449
|
return "";
|
|
1447
1450
|
}
|
|
1448
|
-
},
|
|
1451
|
+
}, No = (t, e = "YYYY-MM-DD HH:mm:ss") => mr(t, e), To = (t) => {
|
|
1449
1452
|
try {
|
|
1450
1453
|
const e = Pt(t);
|
|
1451
1454
|
if (!e) return "";
|
|
@@ -1454,7 +1457,7 @@ const xt = (t) => {
|
|
|
1454
1457
|
} catch {
|
|
1455
1458
|
return "";
|
|
1456
1459
|
}
|
|
1457
|
-
},
|
|
1460
|
+
}, ko = (t) => {
|
|
1458
1461
|
try {
|
|
1459
1462
|
const e = Math.floor(xt(t));
|
|
1460
1463
|
if (e < 0 || e > 31536e3) return "";
|
|
@@ -1463,7 +1466,7 @@ const xt = (t) => {
|
|
|
1463
1466
|
} catch {
|
|
1464
1467
|
return "";
|
|
1465
1468
|
}
|
|
1466
|
-
},
|
|
1469
|
+
}, _o = (t) => {
|
|
1467
1470
|
try {
|
|
1468
1471
|
const e = Pt(t);
|
|
1469
1472
|
if (!e) return "";
|
|
@@ -1475,7 +1478,7 @@ const xt = (t) => {
|
|
|
1475
1478
|
} catch {
|
|
1476
1479
|
return "";
|
|
1477
1480
|
}
|
|
1478
|
-
},
|
|
1481
|
+
}, Eo = (t, e = 2, n = !0) => {
|
|
1479
1482
|
try {
|
|
1480
1483
|
const i = xt(t);
|
|
1481
1484
|
if (i < 0 || i > Number.MAX_SAFE_INTEGER) return "";
|
|
@@ -1488,21 +1491,21 @@ const xt = (t) => {
|
|
|
1488
1491
|
} catch {
|
|
1489
1492
|
return "";
|
|
1490
1493
|
}
|
|
1491
|
-
},
|
|
1494
|
+
}, Oo = (t, e = "CN") => {
|
|
1492
1495
|
try {
|
|
1493
1496
|
const n = je(t).replace(/\D/g, "");
|
|
1494
1497
|
return n ? e === "CN" && n.length === 11 && /^1[3-9]\d{9}$/.test(n) ? n.replace(/(\d{3})(\d{4})(\d{4})/, "$1 $2 $3") : e === "US" && n.length === 10 ? n.replace(/(\d{3})(\d{3})(\d{4})/, "($1) $2-$3") : je(t) : "";
|
|
1495
1498
|
} catch {
|
|
1496
1499
|
return "";
|
|
1497
1500
|
}
|
|
1498
|
-
},
|
|
1501
|
+
}, $o = (t) => {
|
|
1499
1502
|
try {
|
|
1500
1503
|
const e = je(t).replace(/\D/g, "");
|
|
1501
1504
|
return e.length === 11 ? e.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : je(t);
|
|
1502
1505
|
} catch {
|
|
1503
1506
|
return "";
|
|
1504
1507
|
}
|
|
1505
|
-
},
|
|
1508
|
+
}, Mo = (t) => {
|
|
1506
1509
|
try {
|
|
1507
1510
|
const e = je(t);
|
|
1508
1511
|
if (!e || !e.includes("@")) return "";
|
|
@@ -1511,14 +1514,14 @@ const xt = (t) => {
|
|
|
1511
1514
|
} catch {
|
|
1512
1515
|
return "";
|
|
1513
1516
|
}
|
|
1514
|
-
},
|
|
1517
|
+
}, Ro = (t, e = !0) => {
|
|
1515
1518
|
try {
|
|
1516
1519
|
const n = je(t).replace(/\s/g, "");
|
|
1517
1520
|
return n.length === 18 && /^\d{17}[\dXx]$/.test(n) ? e ? n.replace(/(\d{6})\d{8}(\d{3}[\dXx])/, "$1********$2") : n.replace(/(\d{6})(\d{8})(\d{4})/, "$1 $2 $3") : "";
|
|
1518
1521
|
} catch {
|
|
1519
1522
|
return "";
|
|
1520
1523
|
}
|
|
1521
|
-
},
|
|
1524
|
+
}, jo = (t, e = !0) => {
|
|
1522
1525
|
try {
|
|
1523
1526
|
const n = je(t).replace(/\s/g, "");
|
|
1524
1527
|
if (!/^\d{13,19}$/.test(n)) return "";
|
|
@@ -1530,34 +1533,34 @@ const xt = (t) => {
|
|
|
1530
1533
|
} catch {
|
|
1531
1534
|
return "";
|
|
1532
1535
|
}
|
|
1533
|
-
},
|
|
1536
|
+
}, Bo = (t) => {
|
|
1534
1537
|
try {
|
|
1535
1538
|
const e = je(t);
|
|
1536
1539
|
return e.length <= 1 ? e : e.length === 2 ? e[0] + "*" : e[0] + "*".repeat(e.length - 2) + e[e.length - 1];
|
|
1537
1540
|
} catch {
|
|
1538
1541
|
return "";
|
|
1539
1542
|
}
|
|
1540
|
-
},
|
|
1543
|
+
}, Ko = (t, e = 50, n = "...") => {
|
|
1541
1544
|
try {
|
|
1542
1545
|
const i = je(t), r = Math.max(1, Math.min(1e3, Math.floor(e)));
|
|
1543
1546
|
return i.length <= r ? i : i.slice(0, r) + n;
|
|
1544
1547
|
} catch {
|
|
1545
1548
|
return "";
|
|
1546
1549
|
}
|
|
1547
|
-
},
|
|
1550
|
+
}, Lo = (t) => {
|
|
1548
1551
|
try {
|
|
1549
1552
|
const e = je(t);
|
|
1550
1553
|
return e ? e.charAt(0).toUpperCase() + e.slice(1).toLowerCase() : "";
|
|
1551
1554
|
} catch {
|
|
1552
1555
|
return "";
|
|
1553
1556
|
}
|
|
1554
|
-
},
|
|
1557
|
+
}, zo = (t, e = ", ") => {
|
|
1555
1558
|
try {
|
|
1556
1559
|
return Array.isArray(t) ? t.join(e) : je(t);
|
|
1557
1560
|
} catch {
|
|
1558
1561
|
return "";
|
|
1559
1562
|
}
|
|
1560
|
-
},
|
|
1563
|
+
}, Vo = (t) => ({
|
|
1561
1564
|
0: "女",
|
|
1562
1565
|
1: "男",
|
|
1563
1566
|
2: "未知",
|
|
@@ -1567,68 +1570,68 @@ const xt = (t) => {
|
|
|
1567
1570
|
f: "女",
|
|
1568
1571
|
M: "男",
|
|
1569
1572
|
F: "女"
|
|
1570
|
-
})[je(t)] || je(t),
|
|
1573
|
+
})[je(t)] || je(t), Fo = (t, e) => e ? e[je(t)] || je(t) : {
|
|
1571
1574
|
0: "禁用",
|
|
1572
1575
|
1: "启用",
|
|
1573
1576
|
true: "是",
|
|
1574
1577
|
false: "否"
|
|
1575
|
-
}[je(t)] || je(t),
|
|
1578
|
+
}[je(t)] || je(t), qo = (t) => {
|
|
1576
1579
|
try {
|
|
1577
1580
|
return je(t).replace(/<[^>]*>/g, "");
|
|
1578
1581
|
} catch {
|
|
1579
1582
|
return "";
|
|
1580
1583
|
}
|
|
1581
1584
|
};
|
|
1582
|
-
function
|
|
1585
|
+
function Po(t, e, n = {}) {
|
|
1583
1586
|
if (!e || t === void 0 || t === null)
|
|
1584
1587
|
return je(t);
|
|
1585
1588
|
switch (e) {
|
|
1586
1589
|
case "currency":
|
|
1587
|
-
return
|
|
1590
|
+
return wo(t, n.currency, n);
|
|
1588
1591
|
case "number":
|
|
1589
|
-
return
|
|
1592
|
+
return xo(t, n);
|
|
1590
1593
|
case "percent":
|
|
1591
|
-
return
|
|
1594
|
+
return Ao(t, n.precision);
|
|
1592
1595
|
case "compact":
|
|
1593
|
-
return
|
|
1596
|
+
return Do(t, n.notation);
|
|
1594
1597
|
case "timestamp":
|
|
1595
|
-
return
|
|
1598
|
+
return No(t, n.pattern);
|
|
1596
1599
|
case "date":
|
|
1597
|
-
return
|
|
1600
|
+
return Co(t, n);
|
|
1598
1601
|
case "dateCustom":
|
|
1599
|
-
return
|
|
1602
|
+
return mr(t, n.pattern);
|
|
1600
1603
|
case "relativeTime":
|
|
1601
|
-
return No(t);
|
|
1602
|
-
case "duration":
|
|
1603
1604
|
return To(t);
|
|
1604
|
-
case "
|
|
1605
|
+
case "duration":
|
|
1605
1606
|
return ko(t);
|
|
1607
|
+
case "age":
|
|
1608
|
+
return _o(t);
|
|
1606
1609
|
case "fileSize":
|
|
1607
|
-
return
|
|
1610
|
+
return Eo(t, n.precision, n.binary);
|
|
1608
1611
|
case "phone":
|
|
1609
|
-
return
|
|
1612
|
+
return Oo(t, n.country);
|
|
1610
1613
|
case "phoneMask":
|
|
1611
|
-
return Oo(t);
|
|
1612
|
-
case "emailMask":
|
|
1613
1614
|
return $o(t);
|
|
1615
|
+
case "emailMask":
|
|
1616
|
+
return Mo(t);
|
|
1614
1617
|
case "idCard":
|
|
1615
|
-
return Mo(t, n.mask);
|
|
1616
|
-
case "bankCard":
|
|
1617
1618
|
return Ro(t, n.mask);
|
|
1619
|
+
case "bankCard":
|
|
1620
|
+
return jo(t, n.mask);
|
|
1618
1621
|
case "usernameMask":
|
|
1619
|
-
return
|
|
1622
|
+
return Bo(t);
|
|
1620
1623
|
case "truncate":
|
|
1621
|
-
return
|
|
1624
|
+
return Ko(t, n.maxLength, n.suffix);
|
|
1622
1625
|
case "capitalize":
|
|
1623
|
-
return
|
|
1626
|
+
return Lo(t);
|
|
1624
1627
|
case "array":
|
|
1625
|
-
return
|
|
1628
|
+
return zo(t, n.delimiter);
|
|
1626
1629
|
case "gender":
|
|
1627
|
-
return
|
|
1630
|
+
return Vo(t);
|
|
1628
1631
|
case "status":
|
|
1629
|
-
return
|
|
1632
|
+
return Fo(t, n.statusMap);
|
|
1630
1633
|
case "stripHtml":
|
|
1631
|
-
return
|
|
1634
|
+
return qo(t);
|
|
1632
1635
|
default:
|
|
1633
1636
|
return je(t);
|
|
1634
1637
|
}
|
|
@@ -1664,7 +1667,7 @@ const Wt = {
|
|
|
1664
1667
|
colorLink: "colorLink",
|
|
1665
1668
|
colorLinkHover: "colorLinkHover",
|
|
1666
1669
|
colorLinkActive: "colorLinkActive"
|
|
1667
|
-
},
|
|
1670
|
+
}, Kc = Object.keys(Wt), Lc = [
|
|
1668
1671
|
{ label: "主色", value: "colorPrimary" },
|
|
1669
1672
|
{ label: "成功", value: "colorSuccess" },
|
|
1670
1673
|
{ label: "警告", value: "colorWarning" },
|
|
@@ -1674,29 +1677,29 @@ const Wt = {
|
|
|
1674
1677
|
{ label: "次级文本", value: "colorTextSecondary" },
|
|
1675
1678
|
{ label: "链接", value: "colorLink" }
|
|
1676
1679
|
];
|
|
1677
|
-
function
|
|
1680
|
+
function yr(t) {
|
|
1678
1681
|
return Wt.hasOwnProperty(t);
|
|
1679
1682
|
}
|
|
1680
1683
|
function Ht(t) {
|
|
1681
1684
|
const { token: e } = ct.useToken();
|
|
1682
1685
|
if (t) {
|
|
1683
|
-
if (
|
|
1686
|
+
if (yr(t)) {
|
|
1684
1687
|
const n = Wt[t];
|
|
1685
1688
|
return e[n] || t;
|
|
1686
1689
|
}
|
|
1687
1690
|
return t;
|
|
1688
1691
|
}
|
|
1689
1692
|
}
|
|
1690
|
-
function
|
|
1693
|
+
function zc(t, e) {
|
|
1691
1694
|
if (t) {
|
|
1692
|
-
if (
|
|
1695
|
+
if (yr(t)) {
|
|
1693
1696
|
const n = Wt[t];
|
|
1694
1697
|
return e[n] || t;
|
|
1695
1698
|
}
|
|
1696
1699
|
return t;
|
|
1697
1700
|
}
|
|
1698
1701
|
}
|
|
1699
|
-
const
|
|
1702
|
+
const Vc = ({
|
|
1700
1703
|
id: t,
|
|
1701
1704
|
text: e,
|
|
1702
1705
|
tooltip: n,
|
|
@@ -1732,7 +1735,7 @@ const zc = ({
|
|
|
1732
1735
|
return;
|
|
1733
1736
|
}
|
|
1734
1737
|
if (r && o) {
|
|
1735
|
-
const { actionName: M, arg: V } =
|
|
1738
|
+
const { actionName: M, arg: V } = cr(r, {
|
|
1736
1739
|
id: t,
|
|
1737
1740
|
index: g,
|
|
1738
1741
|
parentIndex: u,
|
|
@@ -1781,27 +1784,27 @@ const zc = ({
|
|
|
1781
1784
|
onClick: x,
|
|
1782
1785
|
children: S || s
|
|
1783
1786
|
}
|
|
1784
|
-
), H = D ? /* @__PURE__ */ p(
|
|
1787
|
+
), H = D ? /* @__PURE__ */ p(Wn, { title: D, children: /* @__PURE__ */ p("span", { style: { display: K ? "block" : "inline-block", width: K ? "100%" : void 0 }, children: j }) }) : j;
|
|
1785
1788
|
return k ? /* @__PURE__ */ p(Ke, { theme: k, children: H }) : H;
|
|
1786
|
-
},
|
|
1789
|
+
}, rt = {
|
|
1787
1790
|
whiteSpace: "nowrap",
|
|
1788
1791
|
flex: "none"
|
|
1789
1792
|
};
|
|
1790
|
-
function
|
|
1793
|
+
function Wo(t) {
|
|
1791
1794
|
const e = typeof t == "string" ? t.trim() : "";
|
|
1792
1795
|
if (!e) return;
|
|
1793
1796
|
const n = Je[e];
|
|
1794
1797
|
if (n)
|
|
1795
1798
|
return Le.createElement(n);
|
|
1796
1799
|
}
|
|
1797
|
-
function
|
|
1800
|
+
function it({
|
|
1798
1801
|
iconName: t,
|
|
1799
1802
|
label: e
|
|
1800
1803
|
}) {
|
|
1801
1804
|
const n = typeof t == "string" ? t.trim() : "", i = e == null ? "" : typeof e == "string" ? e.trim() : String(e).trim();
|
|
1802
1805
|
return n ? {
|
|
1803
1806
|
iconConfigured: !0,
|
|
1804
|
-
iconNode:
|
|
1807
|
+
iconNode: Wo(n) ?? n,
|
|
1805
1808
|
labelText: i || void 0
|
|
1806
1809
|
} : {
|
|
1807
1810
|
iconConfigured: !1,
|
|
@@ -1809,25 +1812,25 @@ function rt({
|
|
|
1809
1812
|
labelText: i || void 0
|
|
1810
1813
|
};
|
|
1811
1814
|
}
|
|
1812
|
-
const
|
|
1813
|
-
function
|
|
1815
|
+
const Ho = ["value", "validateStatus", "help"], Uo = 200;
|
|
1816
|
+
function Yo(t) {
|
|
1814
1817
|
if (!t) return;
|
|
1815
1818
|
const e = {};
|
|
1816
1819
|
return Object.entries(t).forEach(([n, i]) => {
|
|
1817
1820
|
i !== "" && i !== void 0 && i !== null && (e[n] = i);
|
|
1818
1821
|
}), Object.keys(e).length > 0 ? e : void 0;
|
|
1819
1822
|
}
|
|
1820
|
-
function
|
|
1823
|
+
function Io(t, e, n) {
|
|
1821
1824
|
const i = { ...t };
|
|
1822
1825
|
if (e && typeof e == "object" && Object.keys(e).forEach((r) => {
|
|
1823
|
-
!
|
|
1826
|
+
!Ho.includes(r) && e[r] !== void 0 && e[r] !== null && (i[r] = e[r]);
|
|
1824
1827
|
}), n.develop) {
|
|
1825
1828
|
const r = i.disabled;
|
|
1826
1829
|
i.disabled = !1, i.readOnly = !0, r && (i.className = `${i.className || ""} ant-input-disabled`.trim());
|
|
1827
1830
|
}
|
|
1828
1831
|
return i;
|
|
1829
1832
|
}
|
|
1830
|
-
const
|
|
1833
|
+
const hr = (t) => {
|
|
1831
1834
|
const {
|
|
1832
1835
|
id: e,
|
|
1833
1836
|
sessionId: n,
|
|
@@ -1849,7 +1852,7 @@ const yr = (t) => {
|
|
|
1849
1852
|
clearAction: A,
|
|
1850
1853
|
bordered: w,
|
|
1851
1854
|
...C
|
|
1852
|
-
} = t, x =
|
|
1855
|
+
} = t, x = ot(r, o, n), S = x.dataSet, D = x.dataSetField, E = x.sessionId, k = Ge(Pe), N = a ?? (k == null ? void 0 : k.index), T = k == null ? void 0 : k.parentIndex, $ = Re(""), R = Re(null), O = _((Z) => Z.addCommand), P = _((Z) => Z.getDataSet), B = _((Z) => Z.setDataSet), K = _((Z) => Z.getProps), j = _((Z) => Z.setProps), H = _((Z) => Z.setValidateResult), L = f(
|
|
1853
1856
|
() => le(E, S),
|
|
1854
1857
|
[E, S]
|
|
1855
1858
|
), M = f(
|
|
@@ -1879,7 +1882,7 @@ const yr = (t) => {
|
|
|
1879
1882
|
return de ? (ce = Z.dataSets[de]) == null ? void 0 : ce.validate : void 0;
|
|
1880
1883
|
}
|
|
1881
1884
|
), J = f(() => I !== void 0 ? I : (V == null ? void 0 : V.value) !== void 0 ? V.value : d, [I, V == null ? void 0 : V.value, d]), se = f(
|
|
1882
|
-
() =>
|
|
1885
|
+
() => Io(C, V ?? null, { develop: i }),
|
|
1883
1886
|
[C, V, i]
|
|
1884
1887
|
), {
|
|
1885
1888
|
prefixIconNode: me,
|
|
@@ -1894,10 +1897,10 @@ const yr = (t) => {
|
|
|
1894
1897
|
addonBefore: Te,
|
|
1895
1898
|
addonAfter: Qe,
|
|
1896
1899
|
...We
|
|
1897
|
-
} = Z, Ue =
|
|
1900
|
+
} = Z, Ue = it({
|
|
1898
1901
|
iconName: ce == null ? void 0 : String(ce),
|
|
1899
1902
|
label: q == null ? void 0 : String(q)
|
|
1900
|
-
}), Ze =
|
|
1903
|
+
}), Ze = it({
|
|
1901
1904
|
iconName: Y == null ? void 0 : String(Y),
|
|
1902
1905
|
label: ue == null ? void 0 : String(ue)
|
|
1903
1906
|
});
|
|
@@ -1936,8 +1939,8 @@ const yr = (t) => {
|
|
|
1936
1939
|
]
|
|
1937
1940
|
), ae = z(
|
|
1938
1941
|
(Z) => {
|
|
1939
|
-
const ce =
|
|
1940
|
-
|
|
1942
|
+
const ce = ur(m || []);
|
|
1943
|
+
dr(
|
|
1941
1944
|
ce,
|
|
1942
1945
|
Z,
|
|
1943
1946
|
() => F(""),
|
|
@@ -1968,7 +1971,7 @@ const yr = (t) => {
|
|
|
1968
1971
|
}
|
|
1969
1972
|
b && (R.current && clearTimeout(R.current), R.current = setTimeout(() => {
|
|
1970
1973
|
R.current = null, ae(ce);
|
|
1971
|
-
},
|
|
1974
|
+
}, Uo));
|
|
1972
1975
|
},
|
|
1973
1976
|
[
|
|
1974
1977
|
s,
|
|
@@ -2067,12 +2070,12 @@ const yr = (t) => {
|
|
|
2067
2070
|
const Z = String(P(L, D) ?? "");
|
|
2068
2071
|
ae(Z);
|
|
2069
2072
|
}, [fe, L, D, P, ae]);
|
|
2070
|
-
const ge = f(() =>
|
|
2073
|
+
const ge = f(() => Yo(h), [h]), ee = f(
|
|
2071
2074
|
() => ge ? { components: { Input: ge } } : void 0,
|
|
2072
2075
|
[ge]
|
|
2073
2076
|
), ne = i ? void 0 : E && S && D ? G : (V == null ? void 0 : V.help) ?? "", Se = !i && ne ? "error" : void 0, W = /* @__PURE__ */ ye(St, { children: [
|
|
2074
2077
|
/* @__PURE__ */ ye(_e.Compact, { style: { width: "100%" }, children: [
|
|
2075
|
-
ie ? /* @__PURE__ */ p(_e.Addon, { style:
|
|
2078
|
+
ie ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: ie }) : null,
|
|
2076
2079
|
/* @__PURE__ */ p(
|
|
2077
2080
|
qt,
|
|
2078
2081
|
{
|
|
@@ -2088,14 +2091,14 @@ const yr = (t) => {
|
|
|
2088
2091
|
styles: v
|
|
2089
2092
|
}
|
|
2090
2093
|
),
|
|
2091
|
-
re ? /* @__PURE__ */ p(_e.Addon, { style:
|
|
2094
|
+
re ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: re }) : null
|
|
2092
2095
|
] }),
|
|
2093
2096
|
ne && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: ne })
|
|
2094
2097
|
] });
|
|
2095
2098
|
return ee ? /* @__PURE__ */ p(Ke, { theme: ee, children: W }) : W;
|
|
2096
2099
|
};
|
|
2097
|
-
|
|
2098
|
-
const
|
|
2100
|
+
hr.displayName = "AndInput";
|
|
2101
|
+
const Fc = Le.memo(hr), On = 200, qc = ({
|
|
2099
2102
|
id: t,
|
|
2100
2103
|
sessionId: e,
|
|
2101
2104
|
develop: n,
|
|
@@ -2114,7 +2117,7 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2114
2117
|
value: l,
|
|
2115
2118
|
...g
|
|
2116
2119
|
}) => {
|
|
2117
|
-
const u =
|
|
2120
|
+
const u = ot(i, r, e), A = u.dataSet, w = u.dataSetField, C = u.sessionId, x = _((te) => te.addCommand), S = _((te) => te.setDataSet), D = Re(null), E = f(
|
|
2118
2121
|
() => le(C, A),
|
|
2119
2122
|
[C, A]
|
|
2120
2123
|
), k = _(
|
|
@@ -2144,7 +2147,7 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2144
2147
|
}
|
|
2145
2148
|
E && w && S(E, w, te), c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
|
|
2146
2149
|
D.current = null, T(te);
|
|
2147
|
-
},
|
|
2150
|
+
}, On)), O(s, "change", te);
|
|
2148
2151
|
},
|
|
2149
2152
|
[
|
|
2150
2153
|
b,
|
|
@@ -2190,7 +2193,7 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2190
2193
|
}
|
|
2191
2194
|
if (E && w && S(E, w, null), c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
|
|
2192
2195
|
D.current = null, T(null);
|
|
2193
|
-
},
|
|
2196
|
+
}, On)), O(s, "change", null), v && C) {
|
|
2194
2197
|
const { actionName: te, arg: F } = ke(v, null, {
|
|
2195
2198
|
id: t,
|
|
2196
2199
|
dataSet: A,
|
|
@@ -2238,13 +2241,13 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2238
2241
|
style: I,
|
|
2239
2242
|
...de
|
|
2240
2243
|
} = L, fe = f(
|
|
2241
|
-
() =>
|
|
2244
|
+
() => it({
|
|
2242
2245
|
iconName: M != null ? String(M) : void 0,
|
|
2243
2246
|
label: U != null ? String(U) : void 0
|
|
2244
2247
|
}),
|
|
2245
2248
|
[M, U]
|
|
2246
2249
|
), J = f(
|
|
2247
|
-
() =>
|
|
2250
|
+
() => it({
|
|
2248
2251
|
iconName: V != null ? String(V) : void 0,
|
|
2249
2252
|
label: G != null ? String(G) : void 0
|
|
2250
2253
|
}),
|
|
@@ -2261,7 +2264,7 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2261
2264
|
onClick: (ae) => {
|
|
2262
2265
|
ae.stopPropagation(), j();
|
|
2263
2266
|
},
|
|
2264
|
-
children: /* @__PURE__ */ p(
|
|
2267
|
+
children: /* @__PURE__ */ p(yi, {})
|
|
2265
2268
|
}
|
|
2266
2269
|
);
|
|
2267
2270
|
return me == null || me === !1 ? F : /* @__PURE__ */ ye(St, { children: [
|
|
@@ -2271,14 +2274,14 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2271
2274
|
}, [h, R, me, j]);
|
|
2272
2275
|
return /* @__PURE__ */ ye("div", { style: { width: "100%" }, children: [
|
|
2273
2276
|
/* @__PURE__ */ ye(_e.Compact, { style: { width: "100%" }, children: [
|
|
2274
|
-
X ? /* @__PURE__ */ p(_e.Addon, { style:
|
|
2277
|
+
X ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: X }) : null,
|
|
2275
2278
|
/* @__PURE__ */ p(
|
|
2276
|
-
|
|
2279
|
+
Hn,
|
|
2277
2280
|
{
|
|
2278
2281
|
...de,
|
|
2279
2282
|
disabled: n ? !1 : de.disabled,
|
|
2280
2283
|
readOnly: n ? !0 : de.readOnly,
|
|
2281
|
-
className:
|
|
2284
|
+
className: xi(de.className, {
|
|
2282
2285
|
"ant-input-number-disabled": n && de.disabled
|
|
2283
2286
|
}),
|
|
2284
2287
|
prefix: se,
|
|
@@ -2292,11 +2295,11 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2292
2295
|
style: { width: "100%", ...I }
|
|
2293
2296
|
}
|
|
2294
2297
|
),
|
|
2295
|
-
ie ? /* @__PURE__ */ p(_e.Addon, { style:
|
|
2298
|
+
ie ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: ie }) : null
|
|
2296
2299
|
] }),
|
|
2297
2300
|
$ && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: $ })
|
|
2298
2301
|
] });
|
|
2299
|
-
}, { TextArea:
|
|
2302
|
+
}, { TextArea: $n } = qt, Jo = 200, Pc = ({
|
|
2300
2303
|
id: t,
|
|
2301
2304
|
sessionId: e,
|
|
2302
2305
|
develop: n,
|
|
@@ -2314,7 +2317,7 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2314
2317
|
index: y,
|
|
2315
2318
|
...l
|
|
2316
2319
|
}) => {
|
|
2317
|
-
const g =
|
|
2320
|
+
const g = ot(i, r, e), u = g.dataSet, A = g.dataSetField, w = g.sessionId, C = _((J) => J.addCommand), x = _((J) => J.setDataSet), S = Re(null), D = Ge(Pe), E = y ?? (D == null ? void 0 : D.index), k = D == null ? void 0 : D.parentIndex, N = f(
|
|
2318
2321
|
() => le(w, u),
|
|
2319
2322
|
[w, u]
|
|
2320
2323
|
), T = f(
|
|
@@ -2344,10 +2347,10 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2344
2347
|
addonBefore: X,
|
|
2345
2348
|
addonAfter: ie,
|
|
2346
2349
|
...re
|
|
2347
|
-
} = J, te =
|
|
2350
|
+
} = J, te = it({
|
|
2348
2351
|
iconName: se == null ? void 0 : String(se),
|
|
2349
2352
|
label: X == null ? void 0 : String(X)
|
|
2350
|
-
}), F =
|
|
2353
|
+
}), F = it({
|
|
2351
2354
|
iconName: me == null ? void 0 : String(me),
|
|
2352
2355
|
label: ie == null ? void 0 : String(ie)
|
|
2353
2356
|
});
|
|
@@ -2375,7 +2378,7 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2375
2378
|
}
|
|
2376
2379
|
c && (S.current && clearTimeout(S.current), S.current = setTimeout(() => {
|
|
2377
2380
|
S.current = null, O(se);
|
|
2378
|
-
},
|
|
2381
|
+
}, Jo));
|
|
2379
2382
|
},
|
|
2380
2383
|
[
|
|
2381
2384
|
h,
|
|
@@ -2470,15 +2473,15 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2470
2473
|
...M ? { flex: 1, minWidth: 0 } : {}
|
|
2471
2474
|
}
|
|
2472
2475
|
}, fe = M ? /* @__PURE__ */ ye(_e.Compact, { style: { width: "100%", display: "flex" }, children: [
|
|
2473
|
-
j != null && j !== !1 ? /* @__PURE__ */ p(_e.Addon, { style:
|
|
2474
|
-
/* @__PURE__ */ p(
|
|
2475
|
-
H != null && H !== !1 ? /* @__PURE__ */ p(_e.Addon, { style:
|
|
2476
|
-
] }) : /* @__PURE__ */ p(
|
|
2476
|
+
j != null && j !== !1 ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: j }) : null,
|
|
2477
|
+
/* @__PURE__ */ p($n, { ...de }),
|
|
2478
|
+
H != null && H !== !1 ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: H }) : null
|
|
2479
|
+
] }) : /* @__PURE__ */ p($n, { ...de });
|
|
2477
2480
|
return /* @__PURE__ */ ye("div", { style: { width: "100%" }, children: [
|
|
2478
2481
|
fe,
|
|
2479
2482
|
P && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: P })
|
|
2480
2483
|
] });
|
|
2481
|
-
}, { Password:
|
|
2484
|
+
}, { Password: Go } = qt, Qo = 200, Wc = ({
|
|
2482
2485
|
id: t,
|
|
2483
2486
|
sessionId: e,
|
|
2484
2487
|
develop: n,
|
|
@@ -2522,10 +2525,10 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2522
2525
|
addonBefore: M,
|
|
2523
2526
|
addonAfter: V,
|
|
2524
2527
|
...U
|
|
2525
|
-
} = j, G =
|
|
2528
|
+
} = j, G = it({
|
|
2526
2529
|
iconName: H == null ? void 0 : String(H),
|
|
2527
2530
|
label: M == null ? void 0 : String(M)
|
|
2528
|
-
}), I =
|
|
2531
|
+
}), I = it({
|
|
2529
2532
|
iconName: L == null ? void 0 : String(L),
|
|
2530
2533
|
label: V == null ? void 0 : String(V)
|
|
2531
2534
|
});
|
|
@@ -2553,7 +2556,7 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2553
2556
|
}
|
|
2554
2557
|
c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
|
|
2555
2558
|
u.current = null, x(H);
|
|
2556
|
-
},
|
|
2559
|
+
}, Qo));
|
|
2557
2560
|
},
|
|
2558
2561
|
[
|
|
2559
2562
|
h,
|
|
@@ -2617,9 +2620,9 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2617
2620
|
[]
|
|
2618
2621
|
), /* @__PURE__ */ ye("div", { style: { width: "100%" }, children: [
|
|
2619
2622
|
/* @__PURE__ */ ye(_e.Compact, { style: { width: "100%" }, children: [
|
|
2620
|
-
T ? /* @__PURE__ */ p(_e.Addon, { style:
|
|
2623
|
+
T ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: T }) : null,
|
|
2621
2624
|
/* @__PURE__ */ p(
|
|
2622
|
-
|
|
2625
|
+
Go,
|
|
2623
2626
|
{
|
|
2624
2627
|
...R,
|
|
2625
2628
|
prefix: k,
|
|
@@ -2633,11 +2636,11 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2633
2636
|
status: S ? "error" : void 0
|
|
2634
2637
|
}
|
|
2635
2638
|
),
|
|
2636
|
-
$ ? /* @__PURE__ */ p(_e.Addon, { style:
|
|
2639
|
+
$ ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: $ }) : null
|
|
2637
2640
|
] }),
|
|
2638
2641
|
S && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: S })
|
|
2639
2642
|
] });
|
|
2640
|
-
}, { Search:
|
|
2643
|
+
}, { Search: Zo } = qt, Hc = ({
|
|
2641
2644
|
id: t,
|
|
2642
2645
|
sessionId: e,
|
|
2643
2646
|
develop: n,
|
|
@@ -2671,10 +2674,10 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2671
2674
|
addonBefore: O,
|
|
2672
2675
|
addonAfter: P,
|
|
2673
2676
|
...B
|
|
2674
|
-
} = T, K =
|
|
2677
|
+
} = T, K = it({
|
|
2675
2678
|
iconName: $ == null ? void 0 : String($),
|
|
2676
2679
|
label: O == null ? void 0 : String(O)
|
|
2677
|
-
}), j =
|
|
2680
|
+
}), j = it({
|
|
2678
2681
|
iconName: R == null ? void 0 : String(R),
|
|
2679
2682
|
label: P == null ? void 0 : String(P)
|
|
2680
2683
|
});
|
|
@@ -2713,9 +2716,9 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2713
2716
|
[s, a, e, m]
|
|
2714
2717
|
);
|
|
2715
2718
|
return /* @__PURE__ */ ye(_e.Compact, { style: { width: "100%" }, children: [
|
|
2716
|
-
S ? /* @__PURE__ */ p(_e.Addon, { style:
|
|
2719
|
+
S ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: S }) : null,
|
|
2717
2720
|
/* @__PURE__ */ p(
|
|
2718
|
-
|
|
2721
|
+
Zo,
|
|
2719
2722
|
{
|
|
2720
2723
|
...E,
|
|
2721
2724
|
prefix: C,
|
|
@@ -2726,9 +2729,9 @@ const Vc = Le.memo(yr), En = 200, Fc = ({
|
|
|
2726
2729
|
onSearch: N
|
|
2727
2730
|
}
|
|
2728
2731
|
),
|
|
2729
|
-
D ? /* @__PURE__ */ p(_e.Addon, { style:
|
|
2732
|
+
D ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: D }) : null
|
|
2730
2733
|
] });
|
|
2731
|
-
},
|
|
2734
|
+
}, Xo = 200, ea = "_selected";
|
|
2732
2735
|
function pt(t) {
|
|
2733
2736
|
var e;
|
|
2734
2737
|
if (t == null) return "";
|
|
@@ -2741,13 +2744,13 @@ function pt(t) {
|
|
|
2741
2744
|
}
|
|
2742
2745
|
return String(t);
|
|
2743
2746
|
}
|
|
2744
|
-
function
|
|
2747
|
+
function ta(t, e) {
|
|
2745
2748
|
if (t === e || t == null && e == null) return !0;
|
|
2746
2749
|
if (t == null || e == null) return !1;
|
|
2747
2750
|
const n = t.key, i = e.key, r = t.label, o = e.label;
|
|
2748
2751
|
return Array.isArray(n) && Array.isArray(i) && Array.isArray(r) && Array.isArray(o) ? n.length !== i.length || r.length !== o.length ? !1 : n.every((a, c) => a === i[c]) && r.every((a, c) => a === o[c]) : Array.isArray(n) || Array.isArray(i) ? !1 : n === i && r === o;
|
|
2749
2752
|
}
|
|
2750
|
-
function
|
|
2753
|
+
function Mn(t, e, n, i, r) {
|
|
2751
2754
|
var d;
|
|
2752
2755
|
if (!(r === "multiple" || r === "tags" || Array.isArray(t))) {
|
|
2753
2756
|
if (t == null || t === "")
|
|
@@ -2756,8 +2759,8 @@ function $n(t, e, n, i, r) {
|
|
|
2756
2759
|
const b = t;
|
|
2757
2760
|
return { key: b.value, label: pt(b.label) };
|
|
2758
2761
|
}
|
|
2759
|
-
const v = e && !Array.isArray(e) ? e :
|
|
2760
|
-
h ?? ((d =
|
|
2762
|
+
const v = e && !Array.isArray(e) ? e : nt(n, t), h = (v == null ? void 0 : v.label) ?? (v == null ? void 0 : v.children), m = pt(
|
|
2763
|
+
h ?? ((d = nt(n, t)) == null ? void 0 : d.label) ?? String(t)
|
|
2761
2764
|
);
|
|
2762
2765
|
return { key: t, label: m };
|
|
2763
2766
|
}
|
|
@@ -2772,11 +2775,11 @@ function $n(t, e, n, i, r) {
|
|
|
2772
2775
|
const a = Array.isArray(e) ? e : [], c = t, s = c.map((v, h) => {
|
|
2773
2776
|
var y;
|
|
2774
2777
|
const m = a[h], b = (m == null ? void 0 : m.label) ?? (m == null ? void 0 : m.children);
|
|
2775
|
-
return b != null ? pt(b) : pt(((y =
|
|
2778
|
+
return b != null ? pt(b) : pt(((y = nt(n, v)) == null ? void 0 : y.label) ?? String(v));
|
|
2776
2779
|
});
|
|
2777
2780
|
return { key: c, label: s };
|
|
2778
2781
|
}
|
|
2779
|
-
const
|
|
2782
|
+
const Uc = ({
|
|
2780
2783
|
id: t,
|
|
2781
2784
|
sessionId: e,
|
|
2782
2785
|
develop: n,
|
|
@@ -2803,7 +2806,7 @@ const Hc = ({
|
|
|
2803
2806
|
dropdownMatchSelectWidth: D,
|
|
2804
2807
|
...E
|
|
2805
2808
|
}) => {
|
|
2806
|
-
const k =
|
|
2809
|
+
const k = ot(i, r, e), N = k.dataSet, T = k.dataSetField, $ = k.sessionId, R = _((pe) => pe.addCommand), O = _((pe) => pe.setDataSet), P = Re(null), B = Ge(Pe), K = f(
|
|
2807
2810
|
() => le($, N),
|
|
2808
2811
|
[$, N]
|
|
2809
2812
|
), j = g ?? (B == null ? void 0 : B.index), H = B == null ? void 0 : B.parentIndex, L = f(
|
|
@@ -2845,11 +2848,11 @@ const Hc = ({
|
|
|
2845
2848
|
if (Array.isArray(X))
|
|
2846
2849
|
return X.map((Ae) => {
|
|
2847
2850
|
var ge;
|
|
2848
|
-
return ((ge =
|
|
2851
|
+
return ((ge = nt(re, Ae)) == null ? void 0 : ge.value) ?? Ae;
|
|
2849
2852
|
});
|
|
2850
|
-
const pe =
|
|
2853
|
+
const pe = nt(re, X);
|
|
2851
2854
|
return (pe == null ? void 0 : pe.value) ?? X;
|
|
2852
|
-
}, [X, re]), F = T ? `${T}${
|
|
2855
|
+
}, [X, re]), F = T ? `${T}${ea}` : "", ae = z(
|
|
2853
2856
|
(pe, Ae) => {
|
|
2854
2857
|
if (m) {
|
|
2855
2858
|
m(pe, Ae);
|
|
@@ -2857,7 +2860,7 @@ const Hc = ({
|
|
|
2857
2860
|
}
|
|
2858
2861
|
if (K && T) {
|
|
2859
2862
|
O(K, T, pe);
|
|
2860
|
-
const ge =
|
|
2863
|
+
const ge = Mn(
|
|
2861
2864
|
pe,
|
|
2862
2865
|
Ae,
|
|
2863
2866
|
re,
|
|
@@ -2868,7 +2871,7 @@ const Hc = ({
|
|
|
2868
2871
|
}
|
|
2869
2872
|
if (v && (P.current && clearTimeout(P.current), P.current = setTimeout(() => {
|
|
2870
2873
|
P.current = null, se(pe);
|
|
2871
|
-
},
|
|
2874
|
+
}, Xo)), h && $) {
|
|
2872
2875
|
const { actionName: ge, arg: ee } = ke(h, pe, {
|
|
2873
2876
|
id: t,
|
|
2874
2877
|
dataSet: N,
|
|
@@ -2902,14 +2905,14 @@ const Hc = ({
|
|
|
2902
2905
|
);
|
|
2903
2906
|
Ne(() => {
|
|
2904
2907
|
if (m || !K || !T || !F) return;
|
|
2905
|
-
const pe =
|
|
2908
|
+
const pe = Mn(
|
|
2906
2909
|
X,
|
|
2907
2910
|
void 0,
|
|
2908
2911
|
re,
|
|
2909
2912
|
ie.labelInValue,
|
|
2910
2913
|
ie.mode
|
|
2911
2914
|
), Ae = _.getState().getDataSet(K, F);
|
|
2912
|
-
|
|
2915
|
+
ta(Ae, pe) || O(K, F, pe);
|
|
2913
2916
|
}, [
|
|
2914
2917
|
m,
|
|
2915
2918
|
K,
|
|
@@ -2933,7 +2936,7 @@ const Hc = ({
|
|
|
2933
2936
|
const ve = z((pe, Ae) => ((Ae == null ? void 0 : Ae.label) ?? "").toLowerCase().includes(pe.toLowerCase()), []);
|
|
2934
2937
|
return /* @__PURE__ */ ye("div", { style: { width: "100%" }, children: [
|
|
2935
2938
|
/* @__PURE__ */ p(
|
|
2936
|
-
|
|
2939
|
+
Un,
|
|
2937
2940
|
{
|
|
2938
2941
|
...ie,
|
|
2939
2942
|
disabled: n ? !1 : ie.disabled,
|
|
@@ -2950,7 +2953,7 @@ const Hc = ({
|
|
|
2950
2953
|
),
|
|
2951
2954
|
me && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: me })
|
|
2952
2955
|
] });
|
|
2953
|
-
},
|
|
2956
|
+
}, Yc = ({
|
|
2954
2957
|
id: t,
|
|
2955
2958
|
sessionId: e,
|
|
2956
2959
|
develop: n,
|
|
@@ -3014,7 +3017,7 @@ const Hc = ({
|
|
|
3014
3017
|
}, [a, A, C]);
|
|
3015
3018
|
return /* @__PURE__ */ ye("div", { style: { display: "inline-block" }, onBlur: S, children: [
|
|
3016
3019
|
/* @__PURE__ */ p(
|
|
3017
|
-
|
|
3020
|
+
Er,
|
|
3018
3021
|
{
|
|
3019
3022
|
...m,
|
|
3020
3023
|
disabled: n ? !1 : m.disabled,
|
|
@@ -3024,7 +3027,7 @@ const Hc = ({
|
|
|
3024
3027
|
),
|
|
3025
3028
|
w && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: w })
|
|
3026
3029
|
] });
|
|
3027
|
-
},
|
|
3030
|
+
}, Ic = ({
|
|
3028
3031
|
id: t,
|
|
3029
3032
|
sessionId: e,
|
|
3030
3033
|
develop: n,
|
|
@@ -3059,9 +3062,9 @@ const Hc = ({
|
|
|
3059
3062
|
develop: n
|
|
3060
3063
|
}), x = z((N) => {
|
|
3061
3064
|
if (!N) return null;
|
|
3062
|
-
if (
|
|
3065
|
+
if (tt.isDayjs(N)) return N;
|
|
3063
3066
|
if (typeof N == "string") {
|
|
3064
|
-
const T =
|
|
3067
|
+
const T = tt(N, a);
|
|
3065
3068
|
return T.isValid() ? T : null;
|
|
3066
3069
|
}
|
|
3067
3070
|
return null;
|
|
@@ -3088,7 +3091,7 @@ const Hc = ({
|
|
|
3088
3091
|
);
|
|
3089
3092
|
Ne(() => {
|
|
3090
3093
|
if (m && S === null && g && r) {
|
|
3091
|
-
const N =
|
|
3094
|
+
const N = tt(m).format(a);
|
|
3092
3095
|
l(g, r, N);
|
|
3093
3096
|
}
|
|
3094
3097
|
}, [m, S, g, r, l, a]);
|
|
@@ -3103,7 +3106,7 @@ const Hc = ({
|
|
|
3103
3106
|
);
|
|
3104
3107
|
return /* @__PURE__ */ ye("div", { onBlur: E, style: { display: "flex" }, children: [
|
|
3105
3108
|
/* @__PURE__ */ p(
|
|
3106
|
-
|
|
3109
|
+
Yn,
|
|
3107
3110
|
{
|
|
3108
3111
|
...k,
|
|
3109
3112
|
disabled: n ? !1 : k.disabled,
|
|
@@ -3115,7 +3118,7 @@ const Hc = ({
|
|
|
3115
3118
|
),
|
|
3116
3119
|
C && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: C })
|
|
3117
3120
|
] });
|
|
3118
|
-
},
|
|
3121
|
+
}, Jc = ({
|
|
3119
3122
|
id: t,
|
|
3120
3123
|
sessionId: e,
|
|
3121
3124
|
develop: n,
|
|
@@ -3145,9 +3148,9 @@ const Hc = ({
|
|
|
3145
3148
|
develop: n
|
|
3146
3149
|
}), x = z((N) => {
|
|
3147
3150
|
if (!N) return null;
|
|
3148
|
-
if (
|
|
3151
|
+
if (tt.isDayjs(N)) return N;
|
|
3149
3152
|
if (typeof N == "string") {
|
|
3150
|
-
const T =
|
|
3153
|
+
const T = tt(N, a);
|
|
3151
3154
|
return T.isValid() ? T : null;
|
|
3152
3155
|
}
|
|
3153
3156
|
return null;
|
|
@@ -3166,7 +3169,7 @@ const Hc = ({
|
|
|
3166
3169
|
}, [m, w, S, a]), k = C ? "error" : void 0;
|
|
3167
3170
|
return /* @__PURE__ */ ye(St, { children: [
|
|
3168
3171
|
/* @__PURE__ */ p(
|
|
3169
|
-
|
|
3172
|
+
Or,
|
|
3170
3173
|
{
|
|
3171
3174
|
...b,
|
|
3172
3175
|
disabled: n ? !1 : b.disabled,
|
|
@@ -3180,7 +3183,7 @@ const Hc = ({
|
|
|
3180
3183
|
),
|
|
3181
3184
|
C && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: C })
|
|
3182
3185
|
] });
|
|
3183
|
-
}, { RangePicker:
|
|
3186
|
+
}, { RangePicker: na } = Yn, Gc = ({
|
|
3184
3187
|
id: t,
|
|
3185
3188
|
sessionId: e,
|
|
3186
3189
|
develop: n,
|
|
@@ -3215,7 +3218,7 @@ const Hc = ({
|
|
|
3215
3218
|
develop: n
|
|
3216
3219
|
}), x = z((N) => {
|
|
3217
3220
|
if (!N || !Array.isArray(N) || N.length !== 2) return null;
|
|
3218
|
-
const [T, $] = N, R =
|
|
3221
|
+
const [T, $] = N, R = tt.isDayjs(T) ? T : tt(T, a), O = tt.isDayjs($) ? $ : tt($, a);
|
|
3219
3222
|
return R.isValid() && O.isValid() ? [R, O] : null;
|
|
3220
3223
|
}, [a]), S = f(() => {
|
|
3221
3224
|
const N = A ?? (u == null ? void 0 : u.value) ?? h ?? m;
|
|
@@ -3245,7 +3248,7 @@ const Hc = ({
|
|
|
3245
3248
|
}, [s, w, S, a]);
|
|
3246
3249
|
return /* @__PURE__ */ ye("div", { onBlur: k, children: [
|
|
3247
3250
|
/* @__PURE__ */ p(
|
|
3248
|
-
|
|
3251
|
+
na,
|
|
3249
3252
|
{
|
|
3250
3253
|
...D,
|
|
3251
3254
|
disabled: n ? !1 : D.disabled,
|
|
@@ -3257,7 +3260,7 @@ const Hc = ({
|
|
|
3257
3260
|
),
|
|
3258
3261
|
C && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: C })
|
|
3259
3262
|
] });
|
|
3260
|
-
},
|
|
3263
|
+
}, Qc = ({
|
|
3261
3264
|
id: t,
|
|
3262
3265
|
sessionId: e,
|
|
3263
3266
|
develop: n,
|
|
@@ -3280,7 +3283,7 @@ const Hc = ({
|
|
|
3280
3283
|
remoteUrl: w,
|
|
3281
3284
|
...C
|
|
3282
3285
|
}) => {
|
|
3283
|
-
const x =
|
|
3286
|
+
const x = ot(i, r, e), S = x.dataSet, D = x.dataSetField, E = x.sessionId, k = _((J) => J.addCommand), N = _((J) => J.setDataSet), T = Ge(Pe), $ = u ?? (T == null ? void 0 : T.index), R = T == null ? void 0 : T.parentIndex, O = f(
|
|
3284
3287
|
() => le(E, S),
|
|
3285
3288
|
[E, S]
|
|
3286
3289
|
), P = f(
|
|
@@ -3309,7 +3312,7 @@ const Hc = ({
|
|
|
3309
3312
|
}
|
|
3310
3313
|
), U = f(() => B != null && B.options ? B.options : a != null && a.url && V.length > 0 ? V : g && M.length > 0 ? M : o, [B == null ? void 0 : B.options, a == null ? void 0 : a.url, V, g, M, o]), G = f(() => {
|
|
3311
3314
|
if (U.length === 0) return L;
|
|
3312
|
-
const J =
|
|
3315
|
+
const J = nt(U, L);
|
|
3313
3316
|
return (J == null ? void 0 : J.value) ?? L;
|
|
3314
3317
|
}, [L, U]), I = f(
|
|
3315
3318
|
() => Ve(C, B ?? void 0),
|
|
@@ -3373,7 +3376,7 @@ const Hc = ({
|
|
|
3373
3376
|
),
|
|
3374
3377
|
H && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: H })
|
|
3375
3378
|
] });
|
|
3376
|
-
},
|
|
3379
|
+
}, Zc = ({
|
|
3377
3380
|
id: t,
|
|
3378
3381
|
sessionId: e,
|
|
3379
3382
|
develop: n,
|
|
@@ -3399,7 +3402,7 @@ const Hc = ({
|
|
|
3399
3402
|
remoteUrl: x,
|
|
3400
3403
|
...S
|
|
3401
3404
|
}) => {
|
|
3402
|
-
const D =
|
|
3405
|
+
const D = ot(i, r, e), E = D.dataSet, k = D.dataSetField, N = D.sessionId, T = _((re) => re.addCommand), $ = _((re) => re.setDataSet), R = Ge(Pe), O = w ?? (R == null ? void 0 : R.index), P = R == null ? void 0 : R.parentIndex, B = f(
|
|
3403
3406
|
() => le(N, E),
|
|
3404
3407
|
[N, E]
|
|
3405
3408
|
), K = f(
|
|
@@ -3434,7 +3437,7 @@ const Hc = ({
|
|
|
3434
3437
|
let re = [];
|
|
3435
3438
|
return Array.isArray(H) ? re = H : Array.isArray(j == null ? void 0 : j.values) ? re = j.values : re = l || [], I.length === 0 ? re : re.map((te) => {
|
|
3436
3439
|
var F;
|
|
3437
|
-
return ((F =
|
|
3440
|
+
return ((F = nt(I, te)) == null ? void 0 : F.value) ?? te;
|
|
3438
3441
|
});
|
|
3439
3442
|
}, [c, H, j == null ? void 0 : j.values, l, I]), fe = f(
|
|
3440
3443
|
() => Ve(S, j ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
|
|
@@ -3524,7 +3527,7 @@ const Hc = ({
|
|
|
3524
3527
|
),
|
|
3525
3528
|
M && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: M })
|
|
3526
3529
|
] });
|
|
3527
|
-
},
|
|
3530
|
+
}, Xc = ({
|
|
3528
3531
|
id: t,
|
|
3529
3532
|
sessionId: e,
|
|
3530
3533
|
develop: n,
|
|
@@ -3580,7 +3583,7 @@ const Hc = ({
|
|
|
3580
3583
|
);
|
|
3581
3584
|
return /* @__PURE__ */ ye("div", { onBlur: S, children: [
|
|
3582
3585
|
/* @__PURE__ */ p(
|
|
3583
|
-
|
|
3586
|
+
$r,
|
|
3584
3587
|
{
|
|
3585
3588
|
...D,
|
|
3586
3589
|
disabled: n ? !1 : D.disabled,
|
|
@@ -3590,7 +3593,7 @@ const Hc = ({
|
|
|
3590
3593
|
),
|
|
3591
3594
|
w && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: w })
|
|
3592
3595
|
] });
|
|
3593
|
-
},
|
|
3596
|
+
}, es = ({
|
|
3594
3597
|
id: t,
|
|
3595
3598
|
sessionId: e,
|
|
3596
3599
|
develop: n,
|
|
@@ -3617,18 +3620,18 @@ const Hc = ({
|
|
|
3617
3620
|
v(e, oe(A, w));
|
|
3618
3621
|
}
|
|
3619
3622
|
}, [a, b, r, m, o, e, t, v]);
|
|
3620
|
-
return /* @__PURE__ */ p(
|
|
3621
|
-
},
|
|
3623
|
+
return /* @__PURE__ */ p(Mr, { ...d, disabled: n ? !1 : d.disabled, value: l, onChange: g });
|
|
3624
|
+
}, ra = 200, gr = (t, e, n = 1) => {
|
|
3622
3625
|
if (!Array.isArray(t)) return [];
|
|
3623
3626
|
const { codeKey: i, labelKey: r, childrenKey: o, maxLevel: a } = e;
|
|
3624
3627
|
return t.map((c) => {
|
|
3625
|
-
const s = n < a && Array.isArray(c == null ? void 0 : c[o]) ?
|
|
3628
|
+
const s = n < a && Array.isArray(c == null ? void 0 : c[o]) ? gr(c[o], e, n + 1) : void 0, d = {
|
|
3626
3629
|
value: String(c == null ? void 0 : c[i]),
|
|
3627
3630
|
label: c == null ? void 0 : c[r]
|
|
3628
3631
|
};
|
|
3629
3632
|
return s && s.length && (d.children = s), d;
|
|
3630
3633
|
});
|
|
3631
|
-
},
|
|
3634
|
+
}, Rn = (t) => !t || typeof t != "string" ? [] : t.includes(",") ? t.split(",").map((e) => e.trim()).filter((e) => e) : [t], ia = (t, e) => {
|
|
3632
3635
|
const n = (i, r, o = []) => {
|
|
3633
3636
|
for (const a of i) {
|
|
3634
3637
|
const c = a.value, s = [...o, c];
|
|
@@ -3642,7 +3645,7 @@ const Hc = ({
|
|
|
3642
3645
|
return null;
|
|
3643
3646
|
};
|
|
3644
3647
|
return n(e, t) || [];
|
|
3645
|
-
},
|
|
3648
|
+
}, jn = (t) => Array.isArray(t) && t.length > 0 && !Array.isArray(t[0]), Bn = (t) => Array.isArray(t) && t.length > 0 && Array.isArray(t[0]), ts = ({
|
|
3646
3649
|
id: t,
|
|
3647
3650
|
sessionId: e,
|
|
3648
3651
|
develop: n,
|
|
@@ -3674,14 +3677,14 @@ const Hc = ({
|
|
|
3674
3677
|
develop: n
|
|
3675
3678
|
}), $ = f(() => (o == null ? void 0 : o.url) && w.length > 0, [o == null ? void 0 : o.url, w.length]), R = f(() => {
|
|
3676
3679
|
let K = E ?? b ?? m ?? [];
|
|
3677
|
-
return typeof K == "string" ? $ ?
|
|
3680
|
+
return typeof K == "string" ? $ ? Rn(K).map((H) => ia(H, w)).filter((H) => Array.isArray(H) && H.length > 0) : [K] : jn(K) && $ ? K.map((H) => Rn(H)).filter((H) => Array.isArray(H) && H.length > 0) : Bn(K) && $ ? K.filter((j) => Array.isArray(j) && j.length > 0) : K;
|
|
3678
3681
|
}, [E, b, m, $, w]), O = f(() => o != null && o.url && w.length > 0 ? w : h || [], [o == null ? void 0 : o.url, w, h]);
|
|
3679
3682
|
Ne(() => {
|
|
3680
3683
|
(async () => {
|
|
3681
3684
|
if (o != null && o.url) {
|
|
3682
3685
|
S(!0);
|
|
3683
3686
|
try {
|
|
3684
|
-
const j = await mt({ url: o.url, method: "GET" }), H = Array.isArray(j) ? j : j != null && j.data ? Array.isArray(j.data) ? j.data : j.data.list || j.data.records || [] : [], L = o.codeKey || "value", M = o.labelKey || "label", V = o.childrenKey || "children", U = o.maxLevel || 5, G =
|
|
3687
|
+
const j = await mt({ url: o.url, method: "GET" }), H = Array.isArray(j) ? j : j != null && j.data ? Array.isArray(j.data) ? j.data : j.data.list || j.data.records || [] : [], L = o.codeKey || "value", M = o.labelKey || "label", V = o.childrenKey || "children", U = o.maxLevel || 5, G = gr(H, {
|
|
3685
3688
|
codeKey: L,
|
|
3686
3689
|
labelKey: M,
|
|
3687
3690
|
childrenKey: V,
|
|
@@ -3703,9 +3706,9 @@ const Hc = ({
|
|
|
3703
3706
|
return;
|
|
3704
3707
|
}
|
|
3705
3708
|
let H = K;
|
|
3706
|
-
if (
|
|
3709
|
+
if (jn(K) && $ ? H = String(K[K.length - 1] || "") : Bn(K) && $ && (H = K.map((L) => L.join(","))), D && r && u(D, r, H), s && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
|
|
3707
3710
|
A.current = null, k(K);
|
|
3708
|
-
},
|
|
3711
|
+
}, ra)), d && e) {
|
|
3709
3712
|
const { actionName: L, arg: M } = ke(d, K, {
|
|
3710
3713
|
id: t,
|
|
3711
3714
|
dataSet: i,
|
|
@@ -3737,7 +3740,7 @@ const Hc = ({
|
|
|
3737
3740
|
[]
|
|
3738
3741
|
), /* @__PURE__ */ ye("div", { style: { width: "100%" }, children: [
|
|
3739
3742
|
/* @__PURE__ */ p(
|
|
3740
|
-
|
|
3743
|
+
Rr,
|
|
3741
3744
|
{
|
|
3742
3745
|
...l,
|
|
3743
3746
|
disabled: n ? !1 : l.disabled,
|
|
@@ -3753,7 +3756,7 @@ const Hc = ({
|
|
|
3753
3756
|
),
|
|
3754
3757
|
N && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
|
|
3755
3758
|
] });
|
|
3756
|
-
},
|
|
3759
|
+
}, ns = ({
|
|
3757
3760
|
id: t,
|
|
3758
3761
|
sessionId: e,
|
|
3759
3762
|
develop: n,
|
|
@@ -3830,7 +3833,7 @@ const Hc = ({
|
|
|
3830
3833
|
};
|
|
3831
3834
|
}, [O]), B = k ? "error" : void 0, K = /* @__PURE__ */ ye("div", { onBlur: R, children: [
|
|
3832
3835
|
/* @__PURE__ */ p(
|
|
3833
|
-
|
|
3836
|
+
jr,
|
|
3834
3837
|
{
|
|
3835
3838
|
...T,
|
|
3836
3839
|
disabled: n ? !1 : T.disabled,
|
|
@@ -3847,7 +3850,7 @@ const Hc = ({
|
|
|
3847
3850
|
k && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
|
|
3848
3851
|
] });
|
|
3849
3852
|
return P ? /* @__PURE__ */ p(Ke, { theme: P, children: K }) : K;
|
|
3850
|
-
},
|
|
3853
|
+
}, rs = ({
|
|
3851
3854
|
id: t,
|
|
3852
3855
|
sessionId: e,
|
|
3853
3856
|
develop: n,
|
|
@@ -3868,7 +3871,7 @@ const Hc = ({
|
|
|
3868
3871
|
action: u,
|
|
3869
3872
|
...A
|
|
3870
3873
|
}) => {
|
|
3871
|
-
const w =
|
|
3874
|
+
const w = ot(i, r, e), C = w.dataSet, x = w.dataSetField, S = w.sessionId, D = _((ee) => ee.addCommand), E = _((ee) => ee.setDataSet), k = f(
|
|
3872
3875
|
() => le(S, C),
|
|
3873
3876
|
[S, C]
|
|
3874
3877
|
), N = _(
|
|
@@ -3929,7 +3932,7 @@ const Hc = ({
|
|
|
3929
3932
|
if (Ie().upload)
|
|
3930
3933
|
try {
|
|
3931
3934
|
Z == null || Z({ percent: 30 });
|
|
3932
|
-
const Y = await
|
|
3935
|
+
const Y = await fr(ne, {
|
|
3933
3936
|
url: b,
|
|
3934
3937
|
headers: {
|
|
3935
3938
|
Authorization: un() ? `Bearer ${un()}` : ""
|
|
@@ -4006,7 +4009,7 @@ const Hc = ({
|
|
|
4006
4009
|
);
|
|
4007
4010
|
return /* @__PURE__ */ ye("div", { onBlur: I, children: [
|
|
4008
4011
|
/* @__PURE__ */ p(
|
|
4009
|
-
|
|
4012
|
+
Br,
|
|
4010
4013
|
{
|
|
4011
4014
|
...M,
|
|
4012
4015
|
disabled: n ? !1 : M.disabled,
|
|
@@ -4018,9 +4021,9 @@ const Hc = ({
|
|
|
4018
4021
|
action: ie ? void 0 : u || b,
|
|
4019
4022
|
openFileDialogOnClick: !n,
|
|
4020
4023
|
children: !Ae && (m || (F === "picture-card" || F === "picture-circle" ? /* @__PURE__ */ ye("button", { style: { border: 0, background: "none" }, type: "button", children: [
|
|
4021
|
-
/* @__PURE__ */ p(
|
|
4024
|
+
/* @__PURE__ */ p(nr, {}),
|
|
4022
4025
|
/* @__PURE__ */ p("div", { style: { marginTop: 8 }, children: te })
|
|
4023
|
-
] }) : /* @__PURE__ */ p(st, { icon: /* @__PURE__ */ p(
|
|
4026
|
+
] }) : /* @__PURE__ */ p(st, { icon: /* @__PURE__ */ p(hi, {}), children: te })))
|
|
4024
4027
|
}
|
|
4025
4028
|
),
|
|
4026
4029
|
R && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: R }),
|
|
@@ -4057,7 +4060,7 @@ const Hc = ({
|
|
|
4057
4060
|
}
|
|
4058
4061
|
) })
|
|
4059
4062
|
] });
|
|
4060
|
-
},
|
|
4063
|
+
}, is = ({
|
|
4061
4064
|
id: t,
|
|
4062
4065
|
sessionId: e,
|
|
4063
4066
|
develop: n,
|
|
@@ -4079,7 +4082,7 @@ const Hc = ({
|
|
|
4079
4082
|
const g = _((O) => O.addCommand), u = _((O) => O.getDataSet), A = _((O) => O.setDataSet), w = f(
|
|
4080
4083
|
() => le(e, i),
|
|
4081
4084
|
[e, i]
|
|
4082
|
-
), [C, x] = we(h || []), [, S] = we(!1), D = Le.useRef(void 0), { get: E } =
|
|
4085
|
+
), [C, x] = we(h || []), [, S] = we(!1), D = Le.useRef(void 0), { get: E } = So(), k = f(() => {
|
|
4083
4086
|
if (w && r) return u(w, r);
|
|
4084
4087
|
}, [w, r, u]), N = f(() => k ?? d ?? v, [k, d, v]), T = z((O) => {
|
|
4085
4088
|
if (!(b != null && b.queryApi)) {
|
|
@@ -4138,7 +4141,7 @@ const Hc = ({
|
|
|
4138
4141
|
a && e && g(e, oe(a, { value: O, option: P }));
|
|
4139
4142
|
}, [s, a, e, g]);
|
|
4140
4143
|
return /* @__PURE__ */ p(
|
|
4141
|
-
|
|
4144
|
+
Kr,
|
|
4142
4145
|
{
|
|
4143
4146
|
...l,
|
|
4144
4147
|
disabled: n ? !1 : l.disabled,
|
|
@@ -4151,7 +4154,7 @@ const Hc = ({
|
|
|
4151
4154
|
style: { width: "100%", ...l.style }
|
|
4152
4155
|
}
|
|
4153
4156
|
);
|
|
4154
|
-
},
|
|
4157
|
+
}, os = ({
|
|
4155
4158
|
id: t,
|
|
4156
4159
|
sessionId: e,
|
|
4157
4160
|
develop: n,
|
|
@@ -4191,7 +4194,7 @@ const Hc = ({
|
|
|
4191
4194
|
s && /* @__PURE__ */ p(st, { onClick: C, children: v })
|
|
4192
4195
|
] }) })
|
|
4193
4196
|
] });
|
|
4194
|
-
},
|
|
4197
|
+
}, as = ({
|
|
4195
4198
|
id: t,
|
|
4196
4199
|
sessionId: e,
|
|
4197
4200
|
develop: n,
|
|
@@ -4206,7 +4209,7 @@ const Hc = ({
|
|
|
4206
4209
|
return e;
|
|
4207
4210
|
}
|
|
4208
4211
|
return t;
|
|
4209
|
-
},
|
|
4212
|
+
}, cs = ({
|
|
4210
4213
|
id: t,
|
|
4211
4214
|
sessionId: e,
|
|
4212
4215
|
develop: n,
|
|
@@ -4274,7 +4277,7 @@ const Hc = ({
|
|
|
4274
4277
|
}
|
|
4275
4278
|
C && e && $(e, oe(C, { direction: ie }));
|
|
4276
4279
|
}, [E, C, e, $]), X = /* @__PURE__ */ p(
|
|
4277
|
-
|
|
4280
|
+
Lr,
|
|
4278
4281
|
{
|
|
4279
4282
|
dataSource: G,
|
|
4280
4283
|
targetKeys: I,
|
|
@@ -4309,16 +4312,16 @@ const Hc = ({
|
|
|
4309
4312
|
return e;
|
|
4310
4313
|
}
|
|
4311
4314
|
return t;
|
|
4312
|
-
},
|
|
4315
|
+
}, oa = (t) => {
|
|
4313
4316
|
if (!t) return null;
|
|
4314
4317
|
const e = Je[t];
|
|
4315
4318
|
return e ? /* @__PURE__ */ p(e, {}) : null;
|
|
4316
|
-
},
|
|
4319
|
+
}, aa = (t) => dn(t, []).map((n) => ({
|
|
4317
4320
|
label: n.label,
|
|
4318
4321
|
value: n.value,
|
|
4319
|
-
icon: n.icon ?
|
|
4322
|
+
icon: n.icon ? oa(n.icon) : void 0,
|
|
4320
4323
|
disabled: n.disabled
|
|
4321
|
-
})),
|
|
4324
|
+
})), ss = ({
|
|
4322
4325
|
id: t,
|
|
4323
4326
|
sessionId: e,
|
|
4324
4327
|
develop: n,
|
|
@@ -4343,7 +4346,7 @@ const Hc = ({
|
|
|
4343
4346
|
const A = _((R) => R.addCommand), w = _((R) => R.getDataSet), C = _((R) => R.setDataSet), x = f(
|
|
4344
4347
|
() => le(e, i),
|
|
4345
4348
|
[e, i]
|
|
4346
|
-
), S = f(() => dn(l, {}), [l]), D = f(() => dn(g, {}), [g]), E = f(() =>
|
|
4349
|
+
), S = f(() => dn(l, {}), [l]), D = f(() => dn(g, {}), [g]), E = f(() => aa(o), [o]), N = f(() => {
|
|
4347
4350
|
if (x && r) {
|
|
4348
4351
|
const R = w(x, r);
|
|
4349
4352
|
if (typeof R == "string") return R;
|
|
@@ -4356,7 +4359,7 @@ const Hc = ({
|
|
|
4356
4359
|
}
|
|
4357
4360
|
x && r && C(x, r, O), b && e && A(e, oe(b, { value: O }));
|
|
4358
4361
|
}, [y, x, r, C, b, e, A]), $ = /* @__PURE__ */ p(
|
|
4359
|
-
|
|
4362
|
+
zr,
|
|
4360
4363
|
{
|
|
4361
4364
|
...u,
|
|
4362
4365
|
options: E,
|
|
@@ -4372,9 +4375,9 @@ const Hc = ({
|
|
|
4372
4375
|
}
|
|
4373
4376
|
);
|
|
4374
4377
|
return D && Object.keys(D).length > 0 ? /* @__PURE__ */ p(Ke, { theme: { components: { Segmented: D } }, children: $ }) : $;
|
|
4375
|
-
},
|
|
4378
|
+
}, ca = (t, e, n) => {
|
|
4376
4379
|
const [i, r] = we(void 0), o = e === "100%", a = Re(0);
|
|
4377
|
-
return
|
|
4380
|
+
return tr(() => {
|
|
4378
4381
|
if (!o || !t.current) {
|
|
4379
4382
|
r(void 0);
|
|
4380
4383
|
return;
|
|
@@ -4424,12 +4427,12 @@ const Hc = ({
|
|
|
4424
4427
|
clearTimeout(d), a.current && cancelAnimationFrame(a.current), v.disconnect(), h.disconnect();
|
|
4425
4428
|
};
|
|
4426
4429
|
}, [o, n]), o ? i : e;
|
|
4427
|
-
},
|
|
4428
|
-
function
|
|
4429
|
-
let e =
|
|
4430
|
-
return e || (e = yn(t),
|
|
4430
|
+
}, Kn = /* @__PURE__ */ new Map();
|
|
4431
|
+
function sa(t) {
|
|
4432
|
+
let e = Kn.get(t);
|
|
4433
|
+
return e || (e = yn(t), Kn.set(t, e)), e;
|
|
4431
4434
|
}
|
|
4432
|
-
const
|
|
4435
|
+
const la = ({ dictCode: t, value: e }) => {
|
|
4433
4436
|
const [n, i] = we(null);
|
|
4434
4437
|
if (Ne(() => {
|
|
4435
4438
|
if (!t) {
|
|
@@ -4437,7 +4440,7 @@ const sa = ({ dictCode: t, value: e }) => {
|
|
|
4437
4440
|
return;
|
|
4438
4441
|
}
|
|
4439
4442
|
let o = !1;
|
|
4440
|
-
return
|
|
4443
|
+
return sa(t).then((a) => {
|
|
4441
4444
|
o || i(a);
|
|
4442
4445
|
}), () => {
|
|
4443
4446
|
o = !0;
|
|
@@ -4446,12 +4449,12 @@ const sa = ({ dictCode: t, value: e }) => {
|
|
|
4446
4449
|
return /* @__PURE__ */ p("span", {});
|
|
4447
4450
|
if (!n)
|
|
4448
4451
|
return /* @__PURE__ */ p("span", { children: String(e) });
|
|
4449
|
-
const r =
|
|
4452
|
+
const r = nt(n, e);
|
|
4450
4453
|
return /* @__PURE__ */ p("span", { children: (r == null ? void 0 : r.label) ?? String(e) });
|
|
4451
|
-
}, la = (t, e) => {
|
|
4452
|
-
const n = e.columnDictType || e.dictType || "";
|
|
4453
|
-
return n ? /* @__PURE__ */ p(sa, { dictCode: n, value: t }) : /* @__PURE__ */ p("span", { children: t != null && t !== "" ? String(t) : "" });
|
|
4454
4454
|
}, ua = (t, e) => {
|
|
4455
|
+
const n = e.columnDictType || e.dictType || "";
|
|
4456
|
+
return n ? /* @__PURE__ */ p(la, { dictCode: n, value: t }) : /* @__PURE__ */ p("span", { children: t != null && t !== "" ? String(t) : "" });
|
|
4457
|
+
}, da = (t, e) => {
|
|
4455
4458
|
const [n, i] = (e.imageWidthHeight || "").split(/\s*[,,]\s*/), r = n || "50", o = i || "50";
|
|
4456
4459
|
let a = [];
|
|
4457
4460
|
return Array.isArray(t) ? a = t.slice(0, 3) : typeof t == "string" && t && (a = [t]), a.length === 0 ? /* @__PURE__ */ p("span", { children: "无图片" }) : a.length === 1 ? /* @__PURE__ */ p(
|
|
@@ -4474,7 +4477,7 @@ const sa = ({ dictCode: t, value: e }) => {
|
|
|
4474
4477
|
},
|
|
4475
4478
|
s
|
|
4476
4479
|
)) });
|
|
4477
|
-
},
|
|
4480
|
+
}, fa = (t, e) => {
|
|
4478
4481
|
let n = parseFloat(t);
|
|
4479
4482
|
if (isNaN(n))
|
|
4480
4483
|
return /* @__PURE__ */ p("span", { children: "无效金额" });
|
|
@@ -4488,22 +4491,22 @@ const sa = ({ dictCode: t, value: e }) => {
|
|
|
4488
4491
|
};
|
|
4489
4492
|
let s = new Intl.NumberFormat("zh-CN", c).format(n);
|
|
4490
4493
|
return i && (s = i + s), /* @__PURE__ */ p("span", { children: s });
|
|
4491
|
-
},
|
|
4494
|
+
}, ma = (t, e) => {
|
|
4492
4495
|
let n = "";
|
|
4493
4496
|
try {
|
|
4494
|
-
const i =
|
|
4497
|
+
const i = tt(t);
|
|
4495
4498
|
i.isValid() && (e.dateFormat === "date" ? n = i.format("YYYY-MM-DD") : e.dateFormat === "time" ? n = i.format("HH:mm:ss") : (e.dateFormat, n = i.format("YYYY-MM-DD HH:mm:ss")));
|
|
4496
4499
|
} catch {
|
|
4497
4500
|
n = "";
|
|
4498
4501
|
}
|
|
4499
4502
|
return /* @__PURE__ */ p("span", { children: n });
|
|
4500
|
-
},
|
|
4503
|
+
}, ya = (t, e) => {
|
|
4501
4504
|
if (t == null || t === "")
|
|
4502
4505
|
return /* @__PURE__ */ p("span", {});
|
|
4503
4506
|
const n = e.arraySeparator || ",";
|
|
4504
4507
|
return Array.isArray(t) ? /* @__PURE__ */ p("span", { children: t.join(n) }) : /* @__PURE__ */ p("span", { children: String(t) });
|
|
4505
4508
|
};
|
|
4506
|
-
function
|
|
4509
|
+
function ha(t) {
|
|
4507
4510
|
const e = [16, 16];
|
|
4508
4511
|
if (t == null || t === "") return e;
|
|
4509
4512
|
let n = [];
|
|
@@ -4522,12 +4525,12 @@ function ya(t) {
|
|
|
4522
4525
|
const i = Number(n[0]), r = Number(n[1]);
|
|
4523
4526
|
return !Number.isFinite(i) || !Number.isFinite(r) ? e : [Math.max(1, i), Math.max(1, r)];
|
|
4524
4527
|
}
|
|
4525
|
-
function
|
|
4528
|
+
function ga(t) {
|
|
4526
4529
|
return !!(t == null || t === "" || Array.isArray(t) && t.length === 0);
|
|
4527
4530
|
}
|
|
4528
|
-
const
|
|
4531
|
+
const pa = (t, e, n, i) => {
|
|
4529
4532
|
var h;
|
|
4530
|
-
if (
|
|
4533
|
+
if (ga(t))
|
|
4531
4534
|
return /* @__PURE__ */ p("span", {});
|
|
4532
4535
|
const r = (h = e.columnIcon) == null ? void 0 : h.trim();
|
|
4533
4536
|
if (!r)
|
|
@@ -4535,7 +4538,7 @@ const ga = (t, e, n, i) => {
|
|
|
4535
4538
|
const o = Je[r];
|
|
4536
4539
|
if (!o)
|
|
4537
4540
|
return /* @__PURE__ */ p("span", {});
|
|
4538
|
-
const [a, c] =
|
|
4541
|
+
const [a, c] = ha(e.iconSize), s = (e.iconClickAction || "").trim(), d = i == null ? void 0 : i.runAction, v = /* @__PURE__ */ p(
|
|
4539
4542
|
"span",
|
|
4540
4543
|
{
|
|
4541
4544
|
style: {
|
|
@@ -4561,32 +4564,32 @@ const ga = (t, e, n, i) => {
|
|
|
4561
4564
|
children: v
|
|
4562
4565
|
}
|
|
4563
4566
|
) : v;
|
|
4564
|
-
},
|
|
4567
|
+
}, va = (t, e) => {
|
|
4565
4568
|
const n = { ...t };
|
|
4566
4569
|
return n.specialFields === !0 && n.renderType && (n.render = (i, r, o) => {
|
|
4567
4570
|
switch (n.renderType) {
|
|
4568
4571
|
case "image":
|
|
4569
|
-
return ua(i, n);
|
|
4570
|
-
case "money":
|
|
4571
4572
|
return da(i, n);
|
|
4572
|
-
case "
|
|
4573
|
+
case "money":
|
|
4573
4574
|
return fa(i, n);
|
|
4574
|
-
case "
|
|
4575
|
+
case "date":
|
|
4575
4576
|
return ma(i, n);
|
|
4577
|
+
case "array":
|
|
4578
|
+
return ya(i, n);
|
|
4576
4579
|
case "dict":
|
|
4577
|
-
return
|
|
4580
|
+
return ua(i, n);
|
|
4578
4581
|
case "icon":
|
|
4579
|
-
return
|
|
4582
|
+
return pa(i, n, r, e);
|
|
4580
4583
|
default:
|
|
4581
4584
|
return i;
|
|
4582
4585
|
}
|
|
4583
4586
|
}), n;
|
|
4584
|
-
}, Gt = 15, At = 10,
|
|
4587
|
+
}, Gt = 15, At = 10, ba = [
|
|
4585
4588
|
{ value: "small", label: "紧凑" },
|
|
4586
4589
|
{ value: "middle", label: "默认" },
|
|
4587
4590
|
{ value: "large", label: "宽松" }
|
|
4588
4591
|
];
|
|
4589
|
-
function
|
|
4592
|
+
function Ln(t, e, n, i) {
|
|
4590
4593
|
const r = {};
|
|
4591
4594
|
return e.forEach((o) => {
|
|
4592
4595
|
o.width !== void 0 && (r[o.key] = o.width);
|
|
@@ -4600,7 +4603,7 @@ function Kn(t, e, n, i) {
|
|
|
4600
4603
|
size: i
|
|
4601
4604
|
};
|
|
4602
4605
|
}
|
|
4603
|
-
function
|
|
4606
|
+
function Sa(t, e, n, i) {
|
|
4604
4607
|
const r = (t == null ? void 0 : t.order) ?? e.map((h) => h.key), o = (t == null ? void 0 : t.visible) ?? {}, a = (t == null ? void 0 : t.fixed) ?? {}, c = (t == null ? void 0 : t.width) ?? {}, s = new Map(e.map((h) => [h.key, h])), d = [], v = /* @__PURE__ */ new Set();
|
|
4605
4608
|
for (const h of r) {
|
|
4606
4609
|
const m = s.get(h);
|
|
@@ -4626,7 +4629,7 @@ function ba(t, e, n, i) {
|
|
|
4626
4629
|
size: (t == null ? void 0 : t.size) ?? i ?? "middle"
|
|
4627
4630
|
};
|
|
4628
4631
|
}
|
|
4629
|
-
const Qt = 420,
|
|
4632
|
+
const Qt = 420, zn = 440, wa = ({
|
|
4630
4633
|
open: t,
|
|
4631
4634
|
position: e,
|
|
4632
4635
|
rowIndexVisible: n,
|
|
@@ -4650,12 +4653,12 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
4650
4653
|
},
|
|
4651
4654
|
[v]
|
|
4652
4655
|
), D = z(
|
|
4653
|
-
(M, V, U, G) =>
|
|
4656
|
+
(M, V, U, G) => Ln(M, V, U ?? g, G ?? A),
|
|
4654
4657
|
[g, A]
|
|
4655
4658
|
), E = z(() => {
|
|
4656
4659
|
b(r);
|
|
4657
4660
|
const M = o.map((V) => ({ ...V }));
|
|
4658
|
-
l(M), u(c), w(d), S(
|
|
4661
|
+
l(M), u(c), w(d), S(Ln(r, M, c, d));
|
|
4659
4662
|
}, [r, o, c, d, S]), k = z(
|
|
4660
4663
|
(M) => {
|
|
4661
4664
|
l((V) => {
|
|
@@ -4718,10 +4721,10 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
4718
4721
|
V.preventDefault(), V.dataTransfer.dropEffect = "move", !(C === null || C === M) && (R(C, M), x(M));
|
|
4719
4722
|
}, H = () => x(null), L = e != null ? (() => {
|
|
4720
4723
|
let M = e.y, V = e.x;
|
|
4721
|
-
return typeof window < "u" && (V + Qt > window.innerWidth && (V = window.innerWidth - Qt - 16), V < 16 && (V = 16), M +
|
|
4724
|
+
return typeof window < "u" && (V + Qt > window.innerWidth && (V = window.innerWidth - Qt - 16), V < 16 && (V = 16), M + zn > window.innerHeight && (M = Math.max(16, window.innerHeight - zn - 16)), M < 16 && (M = 16)), { margin: 0, top: M, left: V };
|
|
4722
4725
|
})() : void 0;
|
|
4723
4726
|
return /* @__PURE__ */ p(
|
|
4724
|
-
|
|
4727
|
+
In,
|
|
4725
4728
|
{
|
|
4726
4729
|
title: "列设置",
|
|
4727
4730
|
open: t,
|
|
@@ -4747,12 +4750,12 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
4747
4750
|
/* @__PURE__ */ ye(_e, { align: "center", children: [
|
|
4748
4751
|
/* @__PURE__ */ p("span", { className: "and-table-column-setting-label", children: "表格" }),
|
|
4749
4752
|
/* @__PURE__ */ p(
|
|
4750
|
-
|
|
4753
|
+
Un,
|
|
4751
4754
|
{
|
|
4752
4755
|
size: "small",
|
|
4753
4756
|
value: A,
|
|
4754
4757
|
onChange: B,
|
|
4755
|
-
options: [...
|
|
4758
|
+
options: [...ba],
|
|
4756
4759
|
style: { width: 80 }
|
|
4757
4760
|
}
|
|
4758
4761
|
)
|
|
@@ -4776,7 +4779,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
4776
4779
|
onDragOver: j(V),
|
|
4777
4780
|
onDragEnd: H,
|
|
4778
4781
|
children: [
|
|
4779
|
-
/* @__PURE__ */ p("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ p("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ p(
|
|
4782
|
+
/* @__PURE__ */ p("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ p("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ p(gi, {}) }) }),
|
|
4780
4783
|
/* @__PURE__ */ ye("td", { className: "and-table-column-setting-td-name", children: [
|
|
4781
4784
|
/* @__PURE__ */ p(bt, { checked: M.visible, onChange: () => k(M.key) }),
|
|
4782
4785
|
/* @__PURE__ */ p("span", { className: "and-table-column-setting-title", title: M.title, children: M.title })
|
|
@@ -4788,11 +4791,11 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
4788
4791
|
className: "and-table-column-setting-fix-btn",
|
|
4789
4792
|
onClick: () => $(M.key, -At),
|
|
4790
4793
|
title: `减 ${At}px`,
|
|
4791
|
-
children: /* @__PURE__ */ p(
|
|
4794
|
+
children: /* @__PURE__ */ p(pi, {})
|
|
4792
4795
|
}
|
|
4793
4796
|
),
|
|
4794
4797
|
/* @__PURE__ */ p(
|
|
4795
|
-
|
|
4798
|
+
Hn,
|
|
4796
4799
|
{
|
|
4797
4800
|
size: "small",
|
|
4798
4801
|
min: Gt,
|
|
@@ -4812,7 +4815,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
4812
4815
|
className: "and-table-column-setting-fix-btn",
|
|
4813
4816
|
onClick: () => $(M.key, At),
|
|
4814
4817
|
title: `加 ${At}px`,
|
|
4815
|
-
children: /* @__PURE__ */ p(
|
|
4818
|
+
children: /* @__PURE__ */ p(nr, {})
|
|
4816
4819
|
}
|
|
4817
4820
|
)
|
|
4818
4821
|
] }) }),
|
|
@@ -4823,7 +4826,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
4823
4826
|
className: `and-table-column-setting-fix-btn ${M.fixed === "left" ? "active" : ""}`,
|
|
4824
4827
|
onClick: () => N(M.key, M.fixed === "left" ? !1 : "left"),
|
|
4825
4828
|
title: "固定到左侧",
|
|
4826
|
-
children: /* @__PURE__ */ p(
|
|
4829
|
+
children: /* @__PURE__ */ p(rr, {})
|
|
4827
4830
|
}
|
|
4828
4831
|
),
|
|
4829
4832
|
/* @__PURE__ */ p("span", { className: "and-table-column-setting-fix-divider", children: "|" }),
|
|
@@ -4833,7 +4836,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
4833
4836
|
className: `and-table-column-setting-fix-btn ${M.fixed === "right" ? "active" : ""}`,
|
|
4834
4837
|
onClick: () => N(M.key, M.fixed === "right" ? !1 : "right"),
|
|
4835
4838
|
title: "固定到右侧",
|
|
4836
|
-
children: /* @__PURE__ */ p(
|
|
4839
|
+
children: /* @__PURE__ */ p(ir, {})
|
|
4837
4840
|
}
|
|
4838
4841
|
)
|
|
4839
4842
|
] }) })
|
|
@@ -4847,7 +4850,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
4847
4850
|
] })
|
|
4848
4851
|
}
|
|
4849
4852
|
);
|
|
4850
|
-
},
|
|
4853
|
+
}, xa = [
|
|
4851
4854
|
"value",
|
|
4852
4855
|
"validateStatus",
|
|
4853
4856
|
"help",
|
|
@@ -4858,7 +4861,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
4858
4861
|
"develop",
|
|
4859
4862
|
"dataSet",
|
|
4860
4863
|
"dataSetField"
|
|
4861
|
-
],
|
|
4864
|
+
], ls = (t) => {
|
|
4862
4865
|
const { id: e, sessionId: n } = t, i = _(
|
|
4863
4866
|
(Q) => {
|
|
4864
4867
|
var he;
|
|
@@ -4868,7 +4871,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
4868
4871
|
() => Ve(
|
|
4869
4872
|
{ ...t },
|
|
4870
4873
|
i ?? void 0,
|
|
4871
|
-
{ skipKeys: [...
|
|
4874
|
+
{ skipKeys: [...xa] }
|
|
4872
4875
|
),
|
|
4873
4876
|
[t, i]
|
|
4874
4877
|
), {
|
|
@@ -4931,7 +4934,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
4931
4934
|
return X.columnSettingOpen ? ((he = Q.dataSets[X.columnSettingOpen]) == null ? void 0 : he.value) === !0 : !1;
|
|
4932
4935
|
}
|
|
4933
4936
|
), Ce = 420;
|
|
4934
|
-
|
|
4937
|
+
tr(() => {
|
|
4935
4938
|
if (!ae || !I.current) return;
|
|
4936
4939
|
const Q = I.current.querySelector(".ant-table-thead") || I.current.querySelector(".ant-table-header");
|
|
4937
4940
|
if (!Q) return;
|
|
@@ -4945,12 +4948,12 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
4945
4948
|
var Me;
|
|
4946
4949
|
const he = X.columnSettings ? (Me = Q.dataSets[X.columnSettings]) == null ? void 0 : Me.value : void 0;
|
|
4947
4950
|
return typeof he == "object" && he !== null ? he : void 0;
|
|
4948
|
-
}), pe =
|
|
4951
|
+
}), pe = Bi(X.dataSet, c), Ae = f(() => X.dataSet ? pe : (v == null ? void 0 : v.data) || [], [X.dataSet, pe, v == null ? void 0 : v.data]), ge = f(() => J(B, {}), [B, J]), ee = ge && Object.keys(ge).length > 0, ne = f(
|
|
4949
4952
|
() => ee ? { components: { Table: ge } } : void 0,
|
|
4950
4953
|
[ee, ge]
|
|
4951
4954
|
), Se = _(
|
|
4952
4955
|
(Q) => X.pagination ? Q.dataSets[X.pagination] : void 0
|
|
4953
|
-
), W = f(() => X.pagination ? M(X.pagination, "") || {} : {}, [X.pagination, M, Se]), Z = f(() => !(A === !1 || typeof A == "object" && (A == null ? void 0 : A.visible) === !1), [A]), ce =
|
|
4956
|
+
), W = f(() => X.pagination ? M(X.pagination, "") || {} : {}, [X.pagination, M, Se]), Z = f(() => !(A === !1 || typeof A == "object" && (A == null ? void 0 : A.visible) === !1), [A]), ce = ca(I, F == null ? void 0 : F.y, Z), Y = f(() => {
|
|
4954
4957
|
if (!Z) return !1;
|
|
4955
4958
|
const Q = typeof A == "object" ? A : {}, he = H || {}, Me = Q.showSizeChanger ?? he["pagination-showSizeChanger"] ?? !0, Ee = Q.showQuickJumper ?? he["pagination-showQuickJumper"] ?? !1, Oe = Q.simple ?? he["pagination-simple"] ?? !1, Fe = Q.defaultPageSize ?? he["pagination-defaultPageSize"] ?? 10, Xe = Q.pageSizeOptions ?? he["pagination-pageSizeOptions"] ?? "10,20,50,100", Ut = typeof Xe == "string" ? Xe.split(",").map((ut) => parseInt(String(ut).trim(), 10) || 10).filter((ut) => !isNaN(ut)) : Array.isArray(Xe) ? Xe : [10, 20, 50, 100];
|
|
4956
4959
|
return {
|
|
@@ -4984,12 +4987,12 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
4984
4987
|
fixed: he,
|
|
4985
4988
|
width: typeof Me == "number" ? Me : "auto"
|
|
4986
4989
|
};
|
|
4987
|
-
}).filter((Q) => Q.key), [se]), De = g === !0, Te = !1, Qe = x === "small" || x === "large" ? x : "middle", { rowIndexVisible: We, items: Ue, scrollX: Ze, size: gn } = f(() =>
|
|
4990
|
+
}).filter((Q) => Q.key), [se]), De = g === !0, Te = !1, Qe = x === "small" || x === "large" ? x : "middle", { rowIndexVisible: We, items: Ue, scrollX: Ze, size: gn } = f(() => Sa(
|
|
4988
4991
|
ve,
|
|
4989
4992
|
be,
|
|
4990
4993
|
De,
|
|
4991
4994
|
Qe
|
|
4992
|
-
), [ve, be, De, Qe]), yt = !!(a && n),
|
|
4995
|
+
), [ve, be, De, Qe]), yt = !!(a && n), br = f(() => {
|
|
4993
4996
|
if (Ze !== void 0) return Ze;
|
|
4994
4997
|
const Q = F == null ? void 0 : F.x;
|
|
4995
4998
|
return Q === !0 || typeof Q == "number" && Number.isFinite(Q) && Q > 0 ? !0 : Q === "max-content" ? !1 : Te;
|
|
@@ -5011,7 +5014,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5011
5014
|
if (!Oe) return;
|
|
5012
5015
|
const Fe = Ee.fixed || void 0, Xe = Ee.width === "auto" || Ee.width === void 0 ? void 0 : Ee.width;
|
|
5013
5016
|
Q.push(
|
|
5014
|
-
|
|
5017
|
+
va(
|
|
5015
5018
|
{
|
|
5016
5019
|
...Oe,
|
|
5017
5020
|
dataIndex: Oe.dataIndex || Oe.key,
|
|
@@ -5024,7 +5027,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5024
5027
|
}), h !== !1 && me.length > 0 && Q.push({
|
|
5025
5028
|
title: "操作",
|
|
5026
5029
|
key: "action",
|
|
5027
|
-
render: (Ee, Oe) => /* @__PURE__ */ p(_e, { children: me.map((Fe, Xe) => /* @__PURE__ */ p(
|
|
5030
|
+
render: (Ee, Oe) => /* @__PURE__ */ p(_e, { children: me.map((Fe, Xe) => /* @__PURE__ */ p(Wn, { title: Fe.tooltip, children: /* @__PURE__ */ p("a", { onClick: () => q(Fe, Oe), style: { marginRight: 5 }, children: Fe.title }) }, Xe)) })
|
|
5028
5031
|
}), Q;
|
|
5029
5032
|
}, [
|
|
5030
5033
|
se,
|
|
@@ -5035,14 +5038,14 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5035
5038
|
W,
|
|
5036
5039
|
q,
|
|
5037
5040
|
ue
|
|
5038
|
-
]),
|
|
5041
|
+
]), Sr = z(() => {
|
|
5039
5042
|
X.columnSettingOpen && V(X.columnSettingOpen, "", !1);
|
|
5040
|
-
}, [X.columnSettingOpen, V]),
|
|
5043
|
+
}, [X.columnSettingOpen, V]), wr = z(
|
|
5041
5044
|
(Q) => {
|
|
5042
5045
|
X.columnSettings && V(X.columnSettings, "value", Q);
|
|
5043
5046
|
},
|
|
5044
5047
|
[X.columnSettings, V]
|
|
5045
|
-
),
|
|
5048
|
+
), xr = f(() => {
|
|
5046
5049
|
if (!b && m)
|
|
5047
5050
|
return {
|
|
5048
5051
|
selectedRowKeys: U,
|
|
@@ -5058,11 +5061,11 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5058
5061
|
if (!b) return;
|
|
5059
5062
|
const Me = [Q[l]];
|
|
5060
5063
|
G(Me), X.selected && V(X.selected, "", Me), y != null && y.trim() && n && L(n, oe(y.trim(), { record: Q, selectedRowKeys: Me }));
|
|
5061
|
-
}, [b, y, n, l, X.selected, V, L]),
|
|
5064
|
+
}, [b, y, n, l, X.selected, V, L]), Ar = z((Q) => b && U.includes(Q[l]) ? "ant-table-row-selected" : "", [b, l, U]), Dr = z((Q) => b ? { onClick: () => vn(Q), style: { cursor: "pointer" } } : {}, [b, vn]), Cr = f(() => {
|
|
5062
5065
|
if (!F && !yt) return;
|
|
5063
5066
|
const Q = pn, he = (F == null ? void 0 : F.y) === "100%" ? ce : F == null ? void 0 : F.y;
|
|
5064
5067
|
return Q !== void 0 || he !== void 0 ? { x: Q, y: he } : F ? F.y === "100%" ? { x: F.x, y: ce } : F : void 0;
|
|
5065
|
-
}, [F, ce, yt, pn]), { titleSlot: Rt, summarySlot: jt, footerSlot: bn, otherChildren:
|
|
5068
|
+
}, [F, ce, yt, pn]), { titleSlot: Rt, summarySlot: jt, footerSlot: bn, otherChildren: Nr } = f(() => {
|
|
5066
5069
|
let Q = null, he = null, Me = null;
|
|
5067
5070
|
const Ee = [];
|
|
5068
5071
|
return Le.Children.forEach(P, (Oe) => {
|
|
@@ -5073,40 +5076,40 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5073
5076
|
const Fe = Oe.props["data-slot-type"];
|
|
5074
5077
|
Fe === "title" ? Q = Oe : Fe === "summary" ? he = Oe : Fe === "footer" ? Me = Oe : Ee.push(Oe);
|
|
5075
5078
|
}), { titleSlot: Q, summarySlot: he, footerSlot: Me, otherChildren: Ee };
|
|
5076
|
-
}, [P]),
|
|
5079
|
+
}, [P]), Tr = f(() => {
|
|
5077
5080
|
if (!Rt) {
|
|
5078
5081
|
if ($) return $;
|
|
5079
5082
|
if (k && o) return () => /* @__PURE__ */ p("div", { "data-table-slot-container": "title", style: { minHeight: 20 } });
|
|
5080
5083
|
}
|
|
5081
|
-
}, [k, Rt, $, o]),
|
|
5084
|
+
}, [k, Rt, $, o]), kr = f(() => {
|
|
5082
5085
|
if (R) return R;
|
|
5083
5086
|
if (N && jt)
|
|
5084
5087
|
return () => /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { colSpan: Mt.length, style: { padding: 0 }, children: jt }) });
|
|
5085
5088
|
if (N && o)
|
|
5086
5089
|
return () => /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { colSpan: Mt.length, style: { padding: 0 }, children: /* @__PURE__ */ p("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
|
|
5087
5090
|
}, [N, jt, R, Mt.length, o]), Sn = /* @__PURE__ */ p(
|
|
5088
|
-
|
|
5091
|
+
Vr,
|
|
5089
5092
|
{
|
|
5090
5093
|
...te,
|
|
5091
5094
|
columns: Mt,
|
|
5092
5095
|
dataSource: Ae,
|
|
5093
5096
|
rowKey: l,
|
|
5094
|
-
rowSelection:
|
|
5095
|
-
rowClassName:
|
|
5097
|
+
rowSelection: xr,
|
|
5098
|
+
rowClassName: Ar,
|
|
5096
5099
|
pagination: Y,
|
|
5097
5100
|
locale: { emptyText: w },
|
|
5098
5101
|
bordered: C,
|
|
5099
5102
|
size: yt ? gn : x,
|
|
5100
5103
|
sticky: S,
|
|
5101
|
-
scroll:
|
|
5102
|
-
title:
|
|
5103
|
-
summary:
|
|
5104
|
+
scroll: Cr,
|
|
5105
|
+
title: Tr,
|
|
5106
|
+
summary: kr,
|
|
5104
5107
|
footer: void 0,
|
|
5105
|
-
onRow:
|
|
5108
|
+
onRow: Dr
|
|
5106
5109
|
}
|
|
5107
5110
|
);
|
|
5108
5111
|
return /* @__PURE__ */ ye(
|
|
5109
|
-
|
|
5112
|
+
Jn,
|
|
5110
5113
|
{
|
|
5111
5114
|
ref: I,
|
|
5112
5115
|
vertical: !0,
|
|
@@ -5133,9 +5136,9 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5133
5136
|
] }),
|
|
5134
5137
|
jt,
|
|
5135
5138
|
bn && /* @__PURE__ */ p("div", { "data-table-slot": "footer", children: bn }),
|
|
5136
|
-
|
|
5139
|
+
Nr,
|
|
5137
5140
|
yt && /* @__PURE__ */ p(
|
|
5138
|
-
|
|
5141
|
+
wa,
|
|
5139
5142
|
{
|
|
5140
5143
|
open: ae,
|
|
5141
5144
|
position: de,
|
|
@@ -5143,18 +5146,18 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5143
5146
|
columnItems: Ue,
|
|
5144
5147
|
defaultRowIndexVisible: De,
|
|
5145
5148
|
defaultColumnItems: be,
|
|
5146
|
-
scrollX:
|
|
5149
|
+
scrollX: br,
|
|
5147
5150
|
defaultScrollX: Te,
|
|
5148
5151
|
size: gn,
|
|
5149
5152
|
defaultSize: Qe,
|
|
5150
|
-
onSave:
|
|
5151
|
-
onClose:
|
|
5153
|
+
onSave: wr,
|
|
5154
|
+
onClose: Sr
|
|
5152
5155
|
}
|
|
5153
5156
|
)
|
|
5154
5157
|
]
|
|
5155
5158
|
}
|
|
5156
5159
|
);
|
|
5157
|
-
}, { Text:
|
|
5160
|
+
}, { Text: Aa } = mn, us = ({
|
|
5158
5161
|
id: t,
|
|
5159
5162
|
sessionId: e,
|
|
5160
5163
|
develop: n,
|
|
@@ -5176,7 +5179,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5176
5179
|
index: u,
|
|
5177
5180
|
...A
|
|
5178
5181
|
}) => {
|
|
5179
|
-
const w = _((F) => F.addCommand), C = Ge(Pe), x = u ?? (C == null ? void 0 : C.index), S = C == null ? void 0 : C.parentIndex, D = typeof o == "string" && o.trim() !== "", E = typeof a == "string" && a.trim() !== "", k = D || E || d === "selectedCount", N =
|
|
5182
|
+
const w = _((F) => F.addCommand), C = Ge(Pe), x = u ?? (C == null ? void 0 : C.index), S = C == null ? void 0 : C.parentIndex, D = typeof o == "string" && o.trim() !== "", E = typeof a == "string" && a.trim() !== "", k = D || E || d === "selectedCount", N = ot(
|
|
5180
5183
|
k ? o : void 0,
|
|
5181
5184
|
k ? a : void 0,
|
|
5182
5185
|
e
|
|
@@ -5216,7 +5219,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5216
5219
|
return h;
|
|
5217
5220
|
}, [h]), V = (F) => F == null || F === "" || typeof F == "string" && F.trim() === "", U = f(() => n ? i : L != null && L !== "" ? V(L) && m ? i : L : (O == null ? void 0 : O.content) !== void 0 ? O.content : i, [n, L, O == null ? void 0 : O.content, i, m]), G = f(() => {
|
|
5218
5221
|
if (d && H.length > 0 && U !== void 0 && U !== null) {
|
|
5219
|
-
const F =
|
|
5222
|
+
const F = nt(H, U);
|
|
5220
5223
|
return (F == null ? void 0 : F.label) ?? U;
|
|
5221
5224
|
}
|
|
5222
5225
|
return U;
|
|
@@ -5224,7 +5227,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5224
5227
|
if (n)
|
|
5225
5228
|
return G;
|
|
5226
5229
|
const F = (O == null ? void 0 : O.formatType) || v;
|
|
5227
|
-
return F && G !== void 0 && G !== null ?
|
|
5230
|
+
return F && G !== void 0 && G !== null ? Po(G, F, M) : G;
|
|
5228
5231
|
}, [n, G, v, M, O == null ? void 0 : O.formatType]), de = f(() => {
|
|
5229
5232
|
const F = { ...A };
|
|
5230
5233
|
return O && typeof O == "object" && Object.keys(O).forEach((ae) => {
|
|
@@ -5264,13 +5267,13 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5264
5267
|
}
|
|
5265
5268
|
return X && (F.color = X), F;
|
|
5266
5269
|
}, [c, X, O == null ? void 0 : O.fontSize]), te = /* @__PURE__ */ p(
|
|
5267
|
-
|
|
5270
|
+
Aa,
|
|
5268
5271
|
{
|
|
5269
5272
|
...de,
|
|
5270
5273
|
style: { ...re, ...b, ...de.style },
|
|
5271
5274
|
onClick: (F) => {
|
|
5272
5275
|
if (typeof de.onClick == "function" && de.onClick(F), fe && T) {
|
|
5273
|
-
const { actionName: ae, arg: Ce } =
|
|
5276
|
+
const { actionName: ae, arg: Ce } = cr(fe, {
|
|
5274
5277
|
id: t,
|
|
5275
5278
|
index: x,
|
|
5276
5279
|
parentIndex: S,
|
|
@@ -5286,7 +5289,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5286
5289
|
}
|
|
5287
5290
|
);
|
|
5288
5291
|
return ie ? /* @__PURE__ */ p(Ke, { theme: { token: ie }, children: te }) : te;
|
|
5289
|
-
}, { Title:
|
|
5292
|
+
}, { Title: Da } = mn, ds = ({
|
|
5290
5293
|
id: t,
|
|
5291
5294
|
sessionId: e,
|
|
5292
5295
|
develop: n,
|
|
@@ -5314,8 +5317,8 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5314
5317
|
S !== "content" && y[S] !== void 0 && y[S] !== null && (x[S] = y[S]);
|
|
5315
5318
|
}), x;
|
|
5316
5319
|
}, [v, y]);
|
|
5317
|
-
return /* @__PURE__ */ p(
|
|
5318
|
-
}, { Paragraph:
|
|
5320
|
+
return /* @__PURE__ */ p(Da, { level: c, ...C, style: { ...w, ...d, ...C.style }, children: g || r });
|
|
5321
|
+
}, { Paragraph: Ca } = mn, fs = ({
|
|
5319
5322
|
id: t,
|
|
5320
5323
|
sessionId: e,
|
|
5321
5324
|
develop: n,
|
|
@@ -5342,8 +5345,8 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5342
5345
|
x !== "content" && b[x] !== void 0 && b[x] !== null && (C[x] = b[x]);
|
|
5343
5346
|
}), C;
|
|
5344
5347
|
}, [d, b]);
|
|
5345
|
-
return /* @__PURE__ */ p(
|
|
5346
|
-
},
|
|
5348
|
+
return /* @__PURE__ */ p(Ca, { ...w, style: { ...A, ...s, ...w.style }, children: l || r });
|
|
5349
|
+
}, Na = (t) => {
|
|
5347
5350
|
if (!t) return [];
|
|
5348
5351
|
if (typeof t == "string")
|
|
5349
5352
|
try {
|
|
@@ -5352,7 +5355,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5352
5355
|
return [];
|
|
5353
5356
|
}
|
|
5354
5357
|
return t;
|
|
5355
|
-
},
|
|
5358
|
+
}, ms = ({
|
|
5356
5359
|
id: t,
|
|
5357
5360
|
sessionId: e,
|
|
5358
5361
|
develop: n,
|
|
@@ -5371,7 +5374,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5371
5374
|
const y = _((k) => k.addCommand), l = _((k) => k.getDataSet), g = _((k) => k.setDataSet), u = f(
|
|
5372
5375
|
() => le(e, i),
|
|
5373
5376
|
[e, i]
|
|
5374
|
-
), A = f(() =>
|
|
5377
|
+
), A = f(() => Na(o), [o]), w = f(() => a && a.length > 0 ? n ? a.map((k) => ({ ...k, forceRender: !0 })) : a : A.length > 0 ? A.map((k, N) => ({
|
|
5375
5378
|
key: k.key,
|
|
5376
5379
|
label: k.tab,
|
|
5377
5380
|
disabled: k.disabled,
|
|
@@ -5397,7 +5400,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5397
5400
|
u && r && g(u, r, k), c && e && y(e, oe(c, k));
|
|
5398
5401
|
}, [n, s, u, r, g, c, e, y]);
|
|
5399
5402
|
return /* @__PURE__ */ p(
|
|
5400
|
-
|
|
5403
|
+
Fr,
|
|
5401
5404
|
{
|
|
5402
5405
|
...b,
|
|
5403
5406
|
activeKey: D,
|
|
@@ -5407,7 +5410,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5407
5410
|
children: m
|
|
5408
5411
|
}
|
|
5409
5412
|
);
|
|
5410
|
-
},
|
|
5413
|
+
}, ys = ({
|
|
5411
5414
|
id: t,
|
|
5412
5415
|
sessionId: e,
|
|
5413
5416
|
develop: n,
|
|
@@ -5577,7 +5580,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5577
5580
|
const W = {};
|
|
5578
5581
|
return n && (W.motion = !1), ge && (W.components = { Tree: ge }), Object.keys(W).length > 0 ? W : void 0;
|
|
5579
5582
|
}, [n, ge]), Se = /* @__PURE__ */ p(
|
|
5580
|
-
|
|
5583
|
+
qr,
|
|
5581
5584
|
{
|
|
5582
5585
|
...P,
|
|
5583
5586
|
...n ? { motion: !1 } : {},
|
|
@@ -5601,7 +5604,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5601
5604
|
}
|
|
5602
5605
|
);
|
|
5603
5606
|
return ee ? /* @__PURE__ */ p(Ke, { theme: ee, children: Se }) : Se;
|
|
5604
|
-
},
|
|
5607
|
+
}, hs = ({
|
|
5605
5608
|
id: t,
|
|
5606
5609
|
sessionId: e,
|
|
5607
5610
|
develop: n,
|
|
@@ -5639,7 +5642,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5639
5642
|
}), A;
|
|
5640
5643
|
}, [d, b]), u = f(() => s === "left" ? "start" : s === "right" ? "end" : s, [s]);
|
|
5641
5644
|
return /* @__PURE__ */ p(
|
|
5642
|
-
|
|
5645
|
+
Pr,
|
|
5643
5646
|
{
|
|
5644
5647
|
...g,
|
|
5645
5648
|
mode: u,
|
|
@@ -5656,7 +5659,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5656
5659
|
return e;
|
|
5657
5660
|
}
|
|
5658
5661
|
return t;
|
|
5659
|
-
},
|
|
5662
|
+
}, gs = ({
|
|
5660
5663
|
id: t,
|
|
5661
5664
|
sessionId: e,
|
|
5662
5665
|
develop: n,
|
|
@@ -5686,7 +5689,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5686
5689
|
}
|
|
5687
5690
|
w && r && A(w, r, O), o && e && g(e, oe(o, O));
|
|
5688
5691
|
}, [a, w, r, A, o, e, g]), $ = Object.keys(N).length > 0, R = /* @__PURE__ */ p(
|
|
5689
|
-
|
|
5692
|
+
Wr,
|
|
5690
5693
|
{
|
|
5691
5694
|
...l,
|
|
5692
5695
|
current: x,
|
|
@@ -5698,12 +5701,12 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5698
5701
|
}
|
|
5699
5702
|
);
|
|
5700
5703
|
return $ ? /* @__PURE__ */ p(Ke, { theme: { components: { Steps: N } }, children: R }) : R;
|
|
5701
|
-
},
|
|
5704
|
+
}, ps = ({
|
|
5702
5705
|
id: t,
|
|
5703
5706
|
sessionId: e,
|
|
5704
5707
|
develop: n,
|
|
5705
5708
|
...i
|
|
5706
|
-
}) => /* @__PURE__ */ p(en, { ...i }),
|
|
5709
|
+
}) => /* @__PURE__ */ p(en, { ...i }), vs = ({
|
|
5707
5710
|
id: t,
|
|
5708
5711
|
sessionId: e,
|
|
5709
5712
|
develop: n,
|
|
@@ -5714,12 +5717,12 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5714
5717
|
return /* @__PURE__ */ p(r, { type: "countdown", ...i });
|
|
5715
5718
|
const { Countdown: o } = en;
|
|
5716
5719
|
return /* @__PURE__ */ p(o, { ...i });
|
|
5717
|
-
},
|
|
5720
|
+
}, Ta = {
|
|
5718
5721
|
top: "top",
|
|
5719
5722
|
bottom: "bottom",
|
|
5720
5723
|
left: "start",
|
|
5721
5724
|
right: "end"
|
|
5722
|
-
},
|
|
5725
|
+
}, ka = (t) => {
|
|
5723
5726
|
if (!t) return [];
|
|
5724
5727
|
if (typeof t == "string")
|
|
5725
5728
|
try {
|
|
@@ -5728,7 +5731,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5728
5731
|
return [];
|
|
5729
5732
|
}
|
|
5730
5733
|
return t;
|
|
5731
|
-
},
|
|
5734
|
+
}, bs = ({
|
|
5732
5735
|
id: t,
|
|
5733
5736
|
sessionId: e,
|
|
5734
5737
|
develop: n,
|
|
@@ -5749,8 +5752,8 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5749
5752
|
), g = f(() => {
|
|
5750
5753
|
if (a) return a;
|
|
5751
5754
|
if (o)
|
|
5752
|
-
return
|
|
5753
|
-
}, [o, a]), u = f(() =>
|
|
5755
|
+
return Ta[o] || o;
|
|
5756
|
+
}, [o, a]), u = f(() => ka(c), [c]), A = z((C) => {
|
|
5754
5757
|
if (d) {
|
|
5755
5758
|
d(C);
|
|
5756
5759
|
return;
|
|
@@ -5768,7 +5771,7 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5768
5771
|
}, children: n ? C.title : null }) }, C.key);
|
|
5769
5772
|
}) : null), [h, u, v, n]);
|
|
5770
5773
|
return /* @__PURE__ */ p(
|
|
5771
|
-
|
|
5774
|
+
Hr,
|
|
5772
5775
|
{
|
|
5773
5776
|
...m,
|
|
5774
5777
|
dotPlacement: g,
|
|
@@ -5777,13 +5780,13 @@ const Qt = 420, Ln = 440, Sa = ({
|
|
|
5777
5780
|
}
|
|
5778
5781
|
);
|
|
5779
5782
|
};
|
|
5780
|
-
function
|
|
5783
|
+
function _a(t) {
|
|
5781
5784
|
if (!t || typeof t != "string" || /^(data:|blob:|https?:\/\/)/i.test(t)) return t;
|
|
5782
5785
|
const e = Ie().viewRes;
|
|
5783
5786
|
return e ? e(t) : t;
|
|
5784
5787
|
}
|
|
5785
|
-
const
|
|
5786
|
-
function
|
|
5788
|
+
const Ea = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNmMGYwZjAiLz48cGF0aCBkPSJNNzAgNzBhMTIgMTIgMCAxIDEgMCAyNCAxMiAxMiAwIDAgMSAwLTI0em02MCAxMEw4NSAxMzBsLTI1LTIwLTIwIDE1djE1aDEyMHYtNDB6IiBmaWxsPSIjYmZiZmJmIi8+PC9zdmc+";
|
|
5789
|
+
function Oa(t, e, n) {
|
|
5787
5790
|
if (!e) return;
|
|
5788
5791
|
const { baseName: i, index: r } = wt(e), o = t[i];
|
|
5789
5792
|
if (r !== null) {
|
|
@@ -5795,7 +5798,7 @@ function Ea(t, e, n) {
|
|
|
5795
5798
|
if (o)
|
|
5796
5799
|
return n ? kt(o, vt(n)) : o;
|
|
5797
5800
|
}
|
|
5798
|
-
const
|
|
5801
|
+
const Ss = ({
|
|
5799
5802
|
id: t,
|
|
5800
5803
|
sessionId: e,
|
|
5801
5804
|
develop: n,
|
|
@@ -5810,10 +5813,10 @@ const bs = ({
|
|
|
5810
5813
|
() => le(e, i),
|
|
5811
5814
|
[e, i]
|
|
5812
5815
|
), h = _(
|
|
5813
|
-
(g) => v && r ?
|
|
5816
|
+
(g) => v && r ? Oa(g.dataSets, v, r) : void 0
|
|
5814
5817
|
), m = f(() => e && t ? d(e, t) : null, [e, t, d]), b = f(() => {
|
|
5815
5818
|
let g;
|
|
5816
|
-
return h != null && h !== "" ? g = String(h) : (m == null ? void 0 : m.src) !== void 0 ? g = m.src : g = c,
|
|
5819
|
+
return h != null && h !== "" ? g = String(h) : (m == null ? void 0 : m.src) !== void 0 ? g = m.src : g = c, _a(g);
|
|
5817
5820
|
}, [h, m == null ? void 0 : m.src, c]), y = f(() => {
|
|
5818
5821
|
const g = { ...s };
|
|
5819
5822
|
return m && typeof m == "object" && Object.keys(m).forEach((u) => {
|
|
@@ -5822,7 +5825,7 @@ const bs = ({
|
|
|
5822
5825
|
}, [s, m]), l = {
|
|
5823
5826
|
...y,
|
|
5824
5827
|
src: b || void 0,
|
|
5825
|
-
fallback: y.fallback ||
|
|
5828
|
+
fallback: y.fallback || Ea,
|
|
5826
5829
|
// Disable preview in designer mode to prevent GrapesJS selection interference
|
|
5827
5830
|
preview: n ? !1 : y.preview,
|
|
5828
5831
|
// Use styles prop instead of CSS overrides (AntD 5.7+)
|
|
@@ -5832,13 +5835,13 @@ const bs = ({
|
|
|
5832
5835
|
}
|
|
5833
5836
|
};
|
|
5834
5837
|
return /* @__PURE__ */ p("div", { style: { width: "100%", height: "100%", display: "flex" }, children: /* @__PURE__ */ p(at, { ...l }) });
|
|
5835
|
-
}, { PreviewGroup:
|
|
5836
|
-
function
|
|
5838
|
+
}, { PreviewGroup: $a } = at;
|
|
5839
|
+
function Ma(t) {
|
|
5837
5840
|
if (!t || typeof t != "string" || /^(data:|blob:|https?:\/\/)/i.test(t)) return t;
|
|
5838
5841
|
const e = Ie().viewRes;
|
|
5839
5842
|
return e ? e(t) : t;
|
|
5840
5843
|
}
|
|
5841
|
-
const
|
|
5844
|
+
const ws = ({
|
|
5842
5845
|
id: t,
|
|
5843
5846
|
sessionId: e,
|
|
5844
5847
|
develop: n,
|
|
@@ -5864,15 +5867,15 @@ const Ss = ({
|
|
|
5864
5867
|
return n ? g ?? a ?? [] : v ? Array.isArray(g) ? g : [] : a ?? [];
|
|
5865
5868
|
}, [n, v, m, h == null ? void 0 : h.items, a]), y = f(() => b.map((g) => {
|
|
5866
5869
|
const u = typeof g == "string" ? g : g && typeof g == "object" ? g.url ?? g.src : void 0;
|
|
5867
|
-
return
|
|
5870
|
+
return Ma(u);
|
|
5868
5871
|
}).filter((g) => !!g), [b]), l = f(() => {
|
|
5869
5872
|
const g = { ...c };
|
|
5870
5873
|
return h && typeof h == "object" && Object.keys(h).forEach((u) => {
|
|
5871
5874
|
u !== "items" && h[u] !== void 0 && h[u] !== null && (g[u] = h[u]);
|
|
5872
5875
|
}), g;
|
|
5873
5876
|
}, [c, h]);
|
|
5874
|
-
return /* @__PURE__ */ p(
|
|
5875
|
-
},
|
|
5877
|
+
return /* @__PURE__ */ p($a, { ...l, items: y, children: i });
|
|
5878
|
+
}, xs = ({
|
|
5876
5879
|
id: t,
|
|
5877
5880
|
sessionId: e,
|
|
5878
5881
|
develop: n,
|
|
@@ -5930,7 +5933,7 @@ const Ss = ({
|
|
|
5930
5933
|
if (w)
|
|
5931
5934
|
return { components: { Avatar: w } };
|
|
5932
5935
|
}, [w]), x = /* @__PURE__ */ p(
|
|
5933
|
-
|
|
5936
|
+
Ur,
|
|
5934
5937
|
{
|
|
5935
5938
|
...A,
|
|
5936
5939
|
src: g,
|
|
@@ -5939,7 +5942,7 @@ const Ss = ({
|
|
|
5939
5942
|
}
|
|
5940
5943
|
);
|
|
5941
5944
|
return C ? /* @__PURE__ */ p(Ke, { theme: C, children: x }) : x;
|
|
5942
|
-
},
|
|
5945
|
+
}, Ra = {
|
|
5943
5946
|
0: "default",
|
|
5944
5947
|
1: "success",
|
|
5945
5948
|
2: "warning",
|
|
@@ -5948,7 +5951,7 @@ const Ss = ({
|
|
|
5948
5951
|
false: "default",
|
|
5949
5952
|
yes: "success",
|
|
5950
5953
|
no: "default"
|
|
5951
|
-
},
|
|
5954
|
+
}, As = ({
|
|
5952
5955
|
id: t,
|
|
5953
5956
|
sessionId: e,
|
|
5954
5957
|
develop: n,
|
|
@@ -5965,7 +5968,7 @@ const Ss = ({
|
|
|
5965
5968
|
clickAction: m,
|
|
5966
5969
|
...b
|
|
5967
5970
|
}) => {
|
|
5968
|
-
const y =
|
|
5971
|
+
const y = ot(o, a, e), l = y.dataSet, g = y.dataSetField, u = y.sessionId, A = f(
|
|
5969
5972
|
() => le(u, l),
|
|
5970
5973
|
[u, l]
|
|
5971
5974
|
), { options: w } = $t(c), C = f(() => {
|
|
@@ -5987,14 +5990,14 @@ const Ss = ({
|
|
|
5987
5990
|
(P) => A && g ? P.getDataSet(A, g) : void 0
|
|
5988
5991
|
), D = f(() => n ? r : S != null && S !== "" ? String(S) : (x == null ? void 0 : x.content) !== void 0 ? x.content : r, [n, S, x == null ? void 0 : x.content, r]), E = f(() => {
|
|
5989
5992
|
if (c && w.length > 0 && D !== void 0 && D !== null) {
|
|
5990
|
-
const P =
|
|
5993
|
+
const P = nt(w, D);
|
|
5991
5994
|
return (P == null ? void 0 : P.label) ?? D;
|
|
5992
5995
|
}
|
|
5993
5996
|
return D;
|
|
5994
5997
|
}, [c, w, D]), k = f(() => {
|
|
5995
5998
|
if (!s || D === void 0 || D === null) return;
|
|
5996
5999
|
const P = String(D).toLowerCase();
|
|
5997
|
-
return C && C[P] ? C[P] :
|
|
6000
|
+
return C && C[P] ? C[P] : Ra[P];
|
|
5998
6001
|
}, [s, D, C]), N = f(() => {
|
|
5999
6002
|
const P = { ...b };
|
|
6000
6003
|
return x && typeof x == "object" && Object.keys(x).forEach((B) => {
|
|
@@ -6004,8 +6007,8 @@ const Ss = ({
|
|
|
6004
6007
|
const { bordered: P, ...B } = N;
|
|
6005
6008
|
return B;
|
|
6006
6009
|
}, [N]), $ = (x == null ? void 0 : x.color) ?? v, O = Ht($) || k;
|
|
6007
|
-
return /* @__PURE__ */ p(
|
|
6008
|
-
},
|
|
6010
|
+
return /* @__PURE__ */ p(Gn, { ...T, color: O, children: E || i });
|
|
6011
|
+
}, Ds = ({
|
|
6009
6012
|
id: t,
|
|
6010
6013
|
sessionId: e,
|
|
6011
6014
|
develop: n,
|
|
@@ -6079,7 +6082,7 @@ const Ss = ({
|
|
|
6079
6082
|
g && l(g, u ?? "", { current: k, pageSize: N, total: S }), a && e && y(e, oe(a, { current: k, pageSize: N }));
|
|
6080
6083
|
}, [s, g, u, l, S, a, e, y]);
|
|
6081
6084
|
return /* @__PURE__ */ p(
|
|
6082
|
-
|
|
6085
|
+
Qn,
|
|
6083
6086
|
{
|
|
6084
6087
|
...b,
|
|
6085
6088
|
current: C,
|
|
@@ -6093,14 +6096,14 @@ const Ss = ({
|
|
|
6093
6096
|
}, [b.showTotal])
|
|
6094
6097
|
}
|
|
6095
6098
|
);
|
|
6096
|
-
},
|
|
6099
|
+
}, Cs = ({
|
|
6097
6100
|
id: t,
|
|
6098
6101
|
sessionId: e,
|
|
6099
6102
|
develop: n,
|
|
6100
6103
|
items: i,
|
|
6101
6104
|
children: r,
|
|
6102
6105
|
...o
|
|
6103
|
-
}) => /* @__PURE__ */ p(
|
|
6106
|
+
}) => /* @__PURE__ */ p(Yr, { ...o, items: i, children: r }), zt = (t) => Object.entries(t).map(([e, n]) => `${e.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), ja = ({ mode: t, arrowStyle: e, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
|
|
6104
6107
|
const o = Re(null), a = Re(null), [c, s] = we(0), [d, v] = we(!1), [h, m] = we(0), [b, y] = we(0), l = t === "horizontal";
|
|
6105
6108
|
Ne(() => {
|
|
6106
6109
|
const S = () => {
|
|
@@ -6121,7 +6124,7 @@ const Ss = ({
|
|
|
6121
6124
|
if (u) return;
|
|
6122
6125
|
const S = l ? ((E = o.current) == null ? void 0 : E.clientWidth) ?? 200 : ((k = o.current) == null ? void 0 : k.clientHeight) ?? 200, D = l ? (((N = a.current) == null ? void 0 : N.scrollWidth) ?? 0) - (((T = o.current) == null ? void 0 : T.clientWidth) ?? 0) : ((($ = a.current) == null ? void 0 : $.scrollHeight) ?? 0) - (((R = o.current) == null ? void 0 : R.clientHeight) ?? 0);
|
|
6123
6126
|
s((O) => Math.min(D, O + S));
|
|
6124
|
-
}, [l, u]), C = n || (l ? /* @__PURE__ */ p(
|
|
6127
|
+
}, [l, u]), C = n || (l ? /* @__PURE__ */ p(rr, {}) : /* @__PURE__ */ p(vi, {})), x = i || (l ? /* @__PURE__ */ p(ir, {}) : /* @__PURE__ */ p(or, {}));
|
|
6125
6128
|
return /* @__PURE__ */ ye(
|
|
6126
6129
|
"div",
|
|
6127
6130
|
{
|
|
@@ -6200,7 +6203,7 @@ const Ss = ({
|
|
|
6200
6203
|
]
|
|
6201
6204
|
}
|
|
6202
6205
|
);
|
|
6203
|
-
},
|
|
6206
|
+
}, Ba = ({ mode: t, children: e }) => /* @__PURE__ */ p(
|
|
6204
6207
|
"div",
|
|
6205
6208
|
{
|
|
6206
6209
|
style: {
|
|
@@ -6212,7 +6215,7 @@ const Ss = ({
|
|
|
6212
6215
|
},
|
|
6213
6216
|
children: e
|
|
6214
6217
|
}
|
|
6215
|
-
),
|
|
6218
|
+
), Ns = ({
|
|
6216
6219
|
id: t,
|
|
6217
6220
|
sessionId: e,
|
|
6218
6221
|
develop: n,
|
|
@@ -6395,7 +6398,7 @@ const Ss = ({
|
|
|
6395
6398
|
if (q) return /* @__PURE__ */ p(q, {});
|
|
6396
6399
|
}
|
|
6397
6400
|
return O;
|
|
6398
|
-
}, [O]), ge = f(() => T === "pagination" || T === "scroll" ? null : x, [T, x]), ee =
|
|
6401
|
+
}, [O]), ge = f(() => T === "pagination" || T === "scroll" ? null : x, [T, x]), ee = fi(), ne = t || ee.replace(/:/g, "-"), Se = f(() => {
|
|
6399
6402
|
var De;
|
|
6400
6403
|
if (!u || typeof u == "function") return "";
|
|
6401
6404
|
const q = (De = u.subMenu) == null ? void 0 : De.root;
|
|
@@ -6420,7 +6423,7 @@ const Ss = ({
|
|
|
6420
6423
|
return ue.join(`
|
|
6421
6424
|
`);
|
|
6422
6425
|
}, [u, ne]), W = /* @__PURE__ */ p(
|
|
6423
|
-
|
|
6426
|
+
Ir,
|
|
6424
6427
|
{
|
|
6425
6428
|
...B,
|
|
6426
6429
|
...ae,
|
|
@@ -6441,7 +6444,7 @@ const Ss = ({
|
|
|
6441
6444
|
disabledOverflow: T !== "default"
|
|
6442
6445
|
}
|
|
6443
6446
|
), Z = () => T === "pagination" ? /* @__PURE__ */ p(
|
|
6444
|
-
|
|
6447
|
+
ja,
|
|
6445
6448
|
{
|
|
6446
6449
|
mode: E || "horizontal",
|
|
6447
6450
|
arrowStyle: $,
|
|
@@ -6449,7 +6452,7 @@ const Ss = ({
|
|
|
6449
6452
|
arrowIconNext: Ae,
|
|
6450
6453
|
children: W
|
|
6451
6454
|
}
|
|
6452
|
-
) : T === "scroll" ? /* @__PURE__ */ p(
|
|
6455
|
+
) : T === "scroll" ? /* @__PURE__ */ p(Ba, { mode: E || "horizontal", children: W }) : W, ce = f(() => {
|
|
6453
6456
|
const q = {};
|
|
6454
6457
|
return n && (q.motion = !1), Ce && (q.components = { Menu: Ce }), Object.keys(q).length > 0 ? q : void 0;
|
|
6455
6458
|
}, [n, Ce]);
|
|
@@ -6460,12 +6463,12 @@ const Ss = ({
|
|
|
6460
6463
|
] }) : q;
|
|
6461
6464
|
return ce ? /* @__PURE__ */ p(Ke, { theme: ce, children: ue }) : ue;
|
|
6462
6465
|
})();
|
|
6463
|
-
},
|
|
6466
|
+
}, Ts = ({
|
|
6464
6467
|
id: t,
|
|
6465
6468
|
sessionId: e,
|
|
6466
6469
|
develop: n,
|
|
6467
6470
|
...i
|
|
6468
|
-
}) => /* @__PURE__ */ p(
|
|
6471
|
+
}) => /* @__PURE__ */ p(Jr, { ...i }), ks = ({
|
|
6469
6472
|
id: t,
|
|
6470
6473
|
sessionId: e,
|
|
6471
6474
|
develop: n,
|
|
@@ -6494,7 +6497,7 @@ const Ss = ({
|
|
|
6494
6497
|
return S && b in S ? S[b] : b;
|
|
6495
6498
|
}, [b, S]);
|
|
6496
6499
|
return /* @__PURE__ */ p(
|
|
6497
|
-
|
|
6500
|
+
Zn,
|
|
6498
6501
|
{
|
|
6499
6502
|
...g,
|
|
6500
6503
|
count: C,
|
|
@@ -6523,7 +6526,7 @@ const Ss = ({
|
|
|
6523
6526
|
)
|
|
6524
6527
|
}
|
|
6525
6528
|
);
|
|
6526
|
-
},
|
|
6529
|
+
}, _s = ({
|
|
6527
6530
|
id: t,
|
|
6528
6531
|
sessionId: e,
|
|
6529
6532
|
develop: n,
|
|
@@ -6545,7 +6548,7 @@ const Ss = ({
|
|
|
6545
6548
|
return l && c in l ? l[c] : c;
|
|
6546
6549
|
}, [c, l]);
|
|
6547
6550
|
return /* @__PURE__ */ p(
|
|
6548
|
-
|
|
6551
|
+
Zn.Ribbon,
|
|
6549
6552
|
{
|
|
6550
6553
|
...d,
|
|
6551
6554
|
text: b,
|
|
@@ -6568,7 +6571,7 @@ const Ss = ({
|
|
|
6568
6571
|
)
|
|
6569
6572
|
}
|
|
6570
6573
|
);
|
|
6571
|
-
},
|
|
6574
|
+
}, Ka = (t) => {
|
|
6572
6575
|
if (!t) return [];
|
|
6573
6576
|
if (typeof t == "string")
|
|
6574
6577
|
try {
|
|
@@ -6578,7 +6581,7 @@ const Ss = ({
|
|
|
6578
6581
|
return [];
|
|
6579
6582
|
}
|
|
6580
6583
|
return t;
|
|
6581
|
-
},
|
|
6584
|
+
}, La = (t) => {
|
|
6582
6585
|
if (!(t == null || t === "")) {
|
|
6583
6586
|
if (typeof t == "number") return t;
|
|
6584
6587
|
if (typeof t == "string") {
|
|
@@ -6592,7 +6595,7 @@ const Ss = ({
|
|
|
6592
6595
|
}
|
|
6593
6596
|
return t;
|
|
6594
6597
|
}
|
|
6595
|
-
},
|
|
6598
|
+
}, za = (t) => {
|
|
6596
6599
|
if (!(t == null || t === "")) {
|
|
6597
6600
|
if (typeof t == "number") return t;
|
|
6598
6601
|
if (typeof t == "string") {
|
|
@@ -6607,7 +6610,7 @@ const Ss = ({
|
|
|
6607
6610
|
}
|
|
6608
6611
|
return Array.isArray(t), t;
|
|
6609
6612
|
}
|
|
6610
|
-
},
|
|
6613
|
+
}, Es = ({
|
|
6611
6614
|
id: t,
|
|
6612
6615
|
sessionId: e,
|
|
6613
6616
|
develop: n,
|
|
@@ -6622,7 +6625,7 @@ const Ss = ({
|
|
|
6622
6625
|
itemRender: h,
|
|
6623
6626
|
...m
|
|
6624
6627
|
}) => {
|
|
6625
|
-
const b =
|
|
6628
|
+
const b = ot(i, r, e), y = b.dataSet, l = b.dataSetField, g = b.sessionId, u = Ge(Pe), A = _((K) => K.addCommand), w = f(
|
|
6626
6629
|
() => le(g, y),
|
|
6627
6630
|
[g, y]
|
|
6628
6631
|
), C = _((K) => w && l ? K.getDataSet(w, l) : null), x = f(() => !g || t == null || t === "" ? null : u && typeof u.index == "number" ? `${String(t)}_${u.index}` : String(t), [g, t, u]), S = _(
|
|
@@ -6630,7 +6633,7 @@ const Ss = ({
|
|
|
6630
6633
|
var j;
|
|
6631
6634
|
return x ? ((j = K.propsStore[`${g}_props`]) == null ? void 0 : j[x]) ?? null : null;
|
|
6632
6635
|
}
|
|
6633
|
-
), D = f(() => C && Array.isArray(C) ? C :
|
|
6636
|
+
), D = f(() => C && Array.isArray(C) ? C : Ka(o), [C, o]), E = (S == null ? void 0 : S.columns) !== void 0 && (S == null ? void 0 : S.columns) !== null ? S.columns : a, k = f(() => La(E), [E]), N = f(() => za(c), [c]), T = f(() => {
|
|
6634
6637
|
if (v) return v;
|
|
6635
6638
|
if (d && g)
|
|
6636
6639
|
return (K) => {
|
|
@@ -6694,7 +6697,7 @@ const Ss = ({
|
|
|
6694
6697
|
...B
|
|
6695
6698
|
} = m;
|
|
6696
6699
|
return /* @__PURE__ */ p(
|
|
6697
|
-
|
|
6700
|
+
Gr,
|
|
6698
6701
|
{
|
|
6699
6702
|
...B,
|
|
6700
6703
|
items: $,
|
|
@@ -6705,7 +6708,7 @@ const Ss = ({
|
|
|
6705
6708
|
onLayoutChange: T
|
|
6706
6709
|
}
|
|
6707
6710
|
);
|
|
6708
|
-
},
|
|
6711
|
+
}, Os = ({
|
|
6709
6712
|
id: t,
|
|
6710
6713
|
sessionId: e,
|
|
6711
6714
|
develop: n,
|
|
@@ -6733,7 +6736,7 @@ const Ss = ({
|
|
|
6733
6736
|
r && r(x);
|
|
6734
6737
|
}, [r]);
|
|
6735
6738
|
return /* @__PURE__ */ p(
|
|
6736
|
-
|
|
6739
|
+
Xn,
|
|
6737
6740
|
{
|
|
6738
6741
|
...A,
|
|
6739
6742
|
title: u,
|
|
@@ -6741,7 +6744,7 @@ const Ss = ({
|
|
|
6741
6744
|
onClose: C
|
|
6742
6745
|
}
|
|
6743
6746
|
);
|
|
6744
|
-
},
|
|
6747
|
+
}, $s = ({
|
|
6745
6748
|
id: t,
|
|
6746
6749
|
sessionId: e,
|
|
6747
6750
|
develop: n,
|
|
@@ -6775,7 +6778,7 @@ const Ss = ({
|
|
|
6775
6778
|
});
|
|
6776
6779
|
}, [s, l, r, y, a, e, m]);
|
|
6777
6780
|
return /* @__PURE__ */ p(
|
|
6778
|
-
|
|
6781
|
+
In,
|
|
6779
6782
|
{
|
|
6780
6783
|
...h,
|
|
6781
6784
|
open: u,
|
|
@@ -6784,7 +6787,7 @@ const Ss = ({
|
|
|
6784
6787
|
children: v
|
|
6785
6788
|
}
|
|
6786
6789
|
);
|
|
6787
|
-
},
|
|
6790
|
+
}, Ms = ({
|
|
6788
6791
|
id: t,
|
|
6789
6792
|
sessionId: e,
|
|
6790
6793
|
develop: n,
|
|
@@ -6810,7 +6813,7 @@ const Ss = ({
|
|
|
6810
6813
|
});
|
|
6811
6814
|
}, [a, b, r, m, o, e, v]);
|
|
6812
6815
|
return /* @__PURE__ */ p(
|
|
6813
|
-
|
|
6816
|
+
Qr,
|
|
6814
6817
|
{
|
|
6815
6818
|
...d,
|
|
6816
6819
|
open: l,
|
|
@@ -6818,7 +6821,7 @@ const Ss = ({
|
|
|
6818
6821
|
children: s
|
|
6819
6822
|
}
|
|
6820
6823
|
);
|
|
6821
|
-
},
|
|
6824
|
+
}, Rs = ({
|
|
6822
6825
|
id: t,
|
|
6823
6826
|
sessionId: e,
|
|
6824
6827
|
develop: n,
|
|
@@ -6838,7 +6841,7 @@ const Ss = ({
|
|
|
6838
6841
|
};
|
|
6839
6842
|
return Ve(s, a ?? void 0);
|
|
6840
6843
|
}, [o, r, a]);
|
|
6841
|
-
return /* @__PURE__ */ p(
|
|
6844
|
+
return /* @__PURE__ */ p(Zr, { ...c, children: i });
|
|
6842
6845
|
}, fn = (t, e) => {
|
|
6843
6846
|
if (t == null) return e;
|
|
6844
6847
|
if (typeof t == "string")
|
|
@@ -6850,13 +6853,13 @@ const Ss = ({
|
|
|
6850
6853
|
return e;
|
|
6851
6854
|
}
|
|
6852
6855
|
return t;
|
|
6853
|
-
},
|
|
6854
|
-
Object.entries(t).map(([e, n]) => [
|
|
6855
|
-
),
|
|
6856
|
+
}, Va = (t) => t.replace(/-([a-z])/g, (e, n) => n.toUpperCase()), Fa = (t) => !t || typeof t != "object" || Array.isArray(t) ? t ?? {} : Object.fromEntries(
|
|
6857
|
+
Object.entries(t).map(([e, n]) => [Va(e), n])
|
|
6858
|
+
), qa = (t) => fn(t, []).map((n) => ({
|
|
6856
6859
|
key: n.key,
|
|
6857
6860
|
tab: n.tab,
|
|
6858
6861
|
disabled: n.disabled
|
|
6859
|
-
})),
|
|
6862
|
+
})), js = ({
|
|
6860
6863
|
id: t,
|
|
6861
6864
|
sessionId: e,
|
|
6862
6865
|
develop: n,
|
|
@@ -6896,11 +6899,11 @@ const Ss = ({
|
|
|
6896
6899
|
return Object.fromEntries(
|
|
6897
6900
|
Object.entries(I).map(([de, fe]) => [
|
|
6898
6901
|
de,
|
|
6899
|
-
|
|
6902
|
+
Fa(fe)
|
|
6900
6903
|
])
|
|
6901
6904
|
);
|
|
6902
6905
|
}, [l]), R = f(() => {
|
|
6903
|
-
const I =
|
|
6906
|
+
const I = qa(v);
|
|
6904
6907
|
return I.length > 0 ? I : void 0;
|
|
6905
6908
|
}, [v]), P = f(() => {
|
|
6906
6909
|
if (N && r) {
|
|
@@ -6947,7 +6950,7 @@ const Ss = ({
|
|
|
6947
6950
|
}
|
|
6948
6951
|
);
|
|
6949
6952
|
return U && Object.keys(U).length > 0 ? /* @__PURE__ */ p(Ke, { theme: { components: { Card: U } }, children: G }) : G;
|
|
6950
|
-
},
|
|
6953
|
+
}, Bs = ({
|
|
6951
6954
|
id: t,
|
|
6952
6955
|
sessionId: e,
|
|
6953
6956
|
develop: n,
|
|
@@ -6969,7 +6972,7 @@ const Ss = ({
|
|
|
6969
6972
|
children: /* @__PURE__ */ p(wn, { ...c, styles: o, children: s })
|
|
6970
6973
|
}
|
|
6971
6974
|
) : /* @__PURE__ */ p(wn, { ...c, styles: o, children: s });
|
|
6972
|
-
},
|
|
6975
|
+
}, Vn = (t) => {
|
|
6973
6976
|
if (!t) return [];
|
|
6974
6977
|
if (typeof t == "string")
|
|
6975
6978
|
try {
|
|
@@ -6978,13 +6981,13 @@ const Ss = ({
|
|
|
6978
6981
|
return [];
|
|
6979
6982
|
}
|
|
6980
6983
|
return t;
|
|
6981
|
-
},
|
|
6984
|
+
}, pr = (t) => t.map((e) => e.divider ? { type: "divider", key: e.key } : {
|
|
6982
6985
|
key: e.key,
|
|
6983
6986
|
label: e.label,
|
|
6984
6987
|
disabled: e.disabled,
|
|
6985
6988
|
danger: e.danger,
|
|
6986
|
-
children: e.children ?
|
|
6987
|
-
}),
|
|
6989
|
+
children: e.children ? pr(e.children) : void 0
|
|
6990
|
+
}), Ks = ({
|
|
6988
6991
|
id: t,
|
|
6989
6992
|
sessionId: e,
|
|
6990
6993
|
develop: n,
|
|
@@ -7014,7 +7017,7 @@ const Ss = ({
|
|
|
7014
7017
|
const T = x;
|
|
7015
7018
|
if (Array.isArray(T == null ? void 0 : T.items)) return T.items;
|
|
7016
7019
|
if (Array.isArray(T == null ? void 0 : T.value)) return T.value;
|
|
7017
|
-
}, [x]), D = f(() => n ? S ??
|
|
7020
|
+
}, [x]), D = f(() => n ? S ?? Vn(a) ?? [] : C ? S ?? [] : Vn(a) ?? [], [n, C, S, a]), E = z(
|
|
7018
7021
|
(T, $) => {
|
|
7019
7022
|
if (h) {
|
|
7020
7023
|
h(T, $);
|
|
@@ -7045,7 +7048,7 @@ const Ss = ({
|
|
|
7045
7048
|
]
|
|
7046
7049
|
), k = f(
|
|
7047
7050
|
() => ({
|
|
7048
|
-
items:
|
|
7051
|
+
items: pr(D),
|
|
7049
7052
|
onClick: (T) => {
|
|
7050
7053
|
if (c && e) {
|
|
7051
7054
|
const { actionName: $, arg: R } = dt(c, T.key, {
|
|
@@ -7114,31 +7117,31 @@ const Ss = ({
|
|
|
7114
7117
|
n && !m && !b && /* @__PURE__ */ p("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
|
|
7115
7118
|
!m && !n && o && /* @__PURE__ */ p(st, { children: /* @__PURE__ */ ye(_e, { children: [
|
|
7116
7119
|
o,
|
|
7117
|
-
/* @__PURE__ */ p(
|
|
7120
|
+
/* @__PURE__ */ p(or, {})
|
|
7118
7121
|
] }) })
|
|
7119
7122
|
]
|
|
7120
7123
|
}
|
|
7121
7124
|
), [m, n, o, b]);
|
|
7122
|
-
return /* @__PURE__ */ p(
|
|
7123
|
-
},
|
|
7125
|
+
return /* @__PURE__ */ p(Xr, { ...l, menu: k, onOpenChange: E, children: N });
|
|
7126
|
+
}, Ls = ({
|
|
7124
7127
|
id: t,
|
|
7125
7128
|
sessionId: e,
|
|
7126
7129
|
develop: n,
|
|
7127
7130
|
children: i,
|
|
7128
7131
|
...r
|
|
7129
|
-
}) => /* @__PURE__ */ p(
|
|
7132
|
+
}) => /* @__PURE__ */ p(ei, { ...r, children: i }), zs = ({
|
|
7130
7133
|
id: t,
|
|
7131
7134
|
sessionId: e,
|
|
7132
7135
|
develop: n,
|
|
7133
7136
|
children: i,
|
|
7134
7137
|
...r
|
|
7135
|
-
}) => /* @__PURE__ */ p(
|
|
7138
|
+
}) => /* @__PURE__ */ p(ti, { ...r, children: i }), Vs = ({
|
|
7136
7139
|
id: t,
|
|
7137
7140
|
sessionId: e,
|
|
7138
7141
|
develop: n,
|
|
7139
7142
|
children: i,
|
|
7140
7143
|
...r
|
|
7141
|
-
}) => /* @__PURE__ */ p(
|
|
7144
|
+
}) => /* @__PURE__ */ p(Jn, { ...r, children: i }), Fs = ({
|
|
7142
7145
|
id: t,
|
|
7143
7146
|
sessionId: e,
|
|
7144
7147
|
develop: n,
|
|
@@ -7158,7 +7161,7 @@ const Ss = ({
|
|
|
7158
7161
|
l !== "value" && v[l] !== void 0 && v[l] !== null && (y[l] = v[l]);
|
|
7159
7162
|
}), y;
|
|
7160
7163
|
}, [a, v]);
|
|
7161
|
-
return /* @__PURE__ */ p(
|
|
7164
|
+
return /* @__PURE__ */ p(ni, { ...b, value: m || "" });
|
|
7162
7165
|
}, Dt = (t) => {
|
|
7163
7166
|
if (!t) return;
|
|
7164
7167
|
const e = Je[t];
|
|
@@ -7175,7 +7178,7 @@ const Ss = ({
|
|
|
7175
7178
|
return e;
|
|
7176
7179
|
}
|
|
7177
7180
|
return t;
|
|
7178
|
-
},
|
|
7181
|
+
}, qs = ({
|
|
7179
7182
|
id: t,
|
|
7180
7183
|
sessionId: e,
|
|
7181
7184
|
develop: n,
|
|
@@ -7287,7 +7290,7 @@ const Ss = ({
|
|
|
7287
7290
|
r
|
|
7288
7291
|
) });
|
|
7289
7292
|
return w && Object.keys(w).length > 0 ? /* @__PURE__ */ p(Ke, { theme: { components: { Splitter: w } }, children: T }) : T;
|
|
7290
|
-
},
|
|
7293
|
+
}, Ps = ({
|
|
7291
7294
|
children: t,
|
|
7292
7295
|
className: e,
|
|
7293
7296
|
style: n,
|
|
@@ -7308,7 +7311,7 @@ const Ss = ({
|
|
|
7308
7311
|
...v,
|
|
7309
7312
|
children: t
|
|
7310
7313
|
}
|
|
7311
|
-
),
|
|
7314
|
+
), Ws = ({
|
|
7312
7315
|
id: t,
|
|
7313
7316
|
sessionId: e,
|
|
7314
7317
|
develop: n,
|
|
@@ -7359,7 +7362,7 @@ const Ss = ({
|
|
|
7359
7362
|
return /* @__PURE__ */ ye("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
|
|
7360
7363
|
/* @__PURE__ */ p("div", { style: { flex: 1 }, children: O.map((B, K) => /* @__PURE__ */ p(Le.Fragment, { children: o ? o(B, K) : /* @__PURE__ */ p("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(B) }) }, B.id || K)) }),
|
|
7361
7364
|
!h && R.length > 0 && /* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ p(
|
|
7362
|
-
|
|
7365
|
+
Qn,
|
|
7363
7366
|
{
|
|
7364
7367
|
current: E,
|
|
7365
7368
|
pageSize: N,
|
|
@@ -7375,7 +7378,7 @@ const Ss = ({
|
|
|
7375
7378
|
}
|
|
7376
7379
|
) })
|
|
7377
7380
|
] });
|
|
7378
|
-
},
|
|
7381
|
+
}, Pa = "@keyframes and-icon-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}", Wa = ".and-icon-svg-root svg,.and-icon-svg-root svg path{fill:currentColor}.and-icon-svg-root svg{color:inherit}", Hs = ({
|
|
7379
7382
|
id: t,
|
|
7380
7383
|
sessionId: e,
|
|
7381
7384
|
develop: n,
|
|
@@ -7408,8 +7411,8 @@ const Ss = ({
|
|
|
7408
7411
|
...y
|
|
7409
7412
|
};
|
|
7410
7413
|
return /* @__PURE__ */ ye(St, { children: [
|
|
7411
|
-
/* @__PURE__ */ p("style", { children:
|
|
7412
|
-
c && /* @__PURE__ */ p("style", { children:
|
|
7414
|
+
/* @__PURE__ */ p("style", { children: Wa }),
|
|
7415
|
+
c && /* @__PURE__ */ p("style", { children: Pa }),
|
|
7413
7416
|
/* @__PURE__ */ p(
|
|
7414
7417
|
"span",
|
|
7415
7418
|
{
|
|
@@ -7440,7 +7443,7 @@ const Ss = ({
|
|
|
7440
7443
|
onClick: m
|
|
7441
7444
|
}
|
|
7442
7445
|
) : (console.warn(`Icon "${i}" not found in @ant-design/icons`), null);
|
|
7443
|
-
},
|
|
7446
|
+
}, Us = ({
|
|
7444
7447
|
id: t,
|
|
7445
7448
|
sessionId: e,
|
|
7446
7449
|
develop: n,
|
|
@@ -7484,14 +7487,14 @@ const Ss = ({
|
|
|
7484
7487
|
l.originalPrice
|
|
7485
7488
|
] })
|
|
7486
7489
|
] }),
|
|
7487
|
-
l.tags && l.tags.length > 0 && /* @__PURE__ */ p(_e, { size: 4, wrap: !0, children: l.tags.map((g, u) => /* @__PURE__ */ p(
|
|
7490
|
+
l.tags && l.tags.length > 0 && /* @__PURE__ */ p(_e, { size: 4, wrap: !0, children: l.tags.map((g, u) => /* @__PURE__ */ p(Gn, { color: "blue", children: g }, u)) })
|
|
7488
7491
|
] })
|
|
7489
7492
|
}
|
|
7490
7493
|
)
|
|
7491
7494
|
},
|
|
7492
7495
|
l.id
|
|
7493
7496
|
)) });
|
|
7494
|
-
},
|
|
7497
|
+
}, Fn = ({ id: t, icon: e, title: n, description: i, style: r }) => /* @__PURE__ */ ye(
|
|
7495
7498
|
"div",
|
|
7496
7499
|
{
|
|
7497
7500
|
id: t,
|
|
@@ -7513,12 +7516,12 @@ const Ss = ({
|
|
|
7513
7516
|
...r
|
|
7514
7517
|
},
|
|
7515
7518
|
children: [
|
|
7516
|
-
e || /* @__PURE__ */ p(
|
|
7519
|
+
e || /* @__PURE__ */ p(Si, { style: { fontSize: 28, marginBottom: 8, color: "#bfbfbf" } }),
|
|
7517
7520
|
n && /* @__PURE__ */ p("div", { style: { fontWeight: 500, fontSize: 13, marginBottom: 4 }, children: n }),
|
|
7518
7521
|
i && /* @__PURE__ */ p("div", { style: { fontSize: 12, opacity: 0.7 }, children: i })
|
|
7519
7522
|
]
|
|
7520
7523
|
}
|
|
7521
|
-
),
|
|
7524
|
+
), Ys = ({
|
|
7522
7525
|
componentName: t,
|
|
7523
7526
|
componentProps: e = {},
|
|
7524
7527
|
storePropsKey: n,
|
|
@@ -7560,7 +7563,9 @@ const Ss = ({
|
|
|
7560
7563
|
if (y !== null) {
|
|
7561
7564
|
const B = P == null ? void 0 : P.value;
|
|
7562
7565
|
if (!Array.isArray(B)) return null;
|
|
7563
|
-
const K = Number(
|
|
7566
|
+
const K = Number(
|
|
7567
|
+
(m == null ? void 0 : m.parentIndex) !== void 0 ? m.parentIndex : m == null ? void 0 : m.index
|
|
7568
|
+
);
|
|
7564
7569
|
if (Number.isFinite(K)) {
|
|
7565
7570
|
const j = B[K];
|
|
7566
7571
|
if (Array.isArray(j))
|
|
@@ -7619,7 +7624,7 @@ const Ss = ({
|
|
|
7619
7624
|
boxSizing: "border-box"
|
|
7620
7625
|
},
|
|
7621
7626
|
children: [
|
|
7622
|
-
/* @__PURE__ */ p(
|
|
7627
|
+
/* @__PURE__ */ p(bi, { style: { fontSize: 20, flexShrink: 0, color: "#bfbfbf", ...O ? {} : { marginBottom: 4 } } }),
|
|
7623
7628
|
/* @__PURE__ */ p("div", { style: { fontWeight: 500, fontSize: 12 }, children: r || "动态容器" }),
|
|
7624
7629
|
/* @__PURE__ */ p("div", { style: { fontSize: 11, opacity: 0.7 }, children: w ? `${w}` : "未配置" }),
|
|
7625
7630
|
n && /* @__PURE__ */ p("div", { style: { fontSize: 10, opacity: 0.5, marginTop: O ? 0 : 2 }, children: n })
|
|
@@ -7630,7 +7635,7 @@ const Ss = ({
|
|
|
7630
7635
|
const D = Ie(), E = s || D.componentResolver;
|
|
7631
7636
|
if (!E)
|
|
7632
7637
|
return /* @__PURE__ */ p(
|
|
7633
|
-
|
|
7638
|
+
Fn,
|
|
7634
7639
|
{
|
|
7635
7640
|
id: c,
|
|
7636
7641
|
title: S,
|
|
@@ -7639,14 +7644,14 @@ const Ss = ({
|
|
|
7639
7644
|
}
|
|
7640
7645
|
);
|
|
7641
7646
|
const k = w ? E(w) : null;
|
|
7642
|
-
return k ? /* @__PURE__ */ p(
|
|
7647
|
+
return k ? /* @__PURE__ */ p(mi, { fallback: /* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ p(er, {}) }), children: /* @__PURE__ */ p("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...a }, children: x ? /* @__PURE__ */ p(
|
|
7643
7648
|
Pe.Provider,
|
|
7644
7649
|
{
|
|
7645
7650
|
value: x,
|
|
7646
7651
|
children: /* @__PURE__ */ p(k, { ...C })
|
|
7647
7652
|
}
|
|
7648
7653
|
) : /* @__PURE__ */ p(k, { ...C }) }) }) : /* @__PURE__ */ p(
|
|
7649
|
-
|
|
7654
|
+
Fn,
|
|
7650
7655
|
{
|
|
7651
7656
|
id: c,
|
|
7652
7657
|
title: S,
|
|
@@ -7654,7 +7659,7 @@ const Ss = ({
|
|
|
7654
7659
|
style: a
|
|
7655
7660
|
}
|
|
7656
7661
|
);
|
|
7657
|
-
},
|
|
7662
|
+
}, Is = ({
|
|
7658
7663
|
content: t = "Watermark",
|
|
7659
7664
|
width: e,
|
|
7660
7665
|
height: n,
|
|
@@ -7678,7 +7683,7 @@ const Ss = ({
|
|
|
7678
7683
|
fontStyle: (d == null ? void 0 : d.fontStyle) ?? "normal",
|
|
7679
7684
|
textAlign: (d == null ? void 0 : d.textAlign) ?? "center"
|
|
7680
7685
|
}, l = /* @__PURE__ */ p(
|
|
7681
|
-
|
|
7686
|
+
ri,
|
|
7682
7687
|
{
|
|
7683
7688
|
content: t,
|
|
7684
7689
|
width: e,
|
|
@@ -7738,23 +7743,23 @@ if (typeof URL < "u") {
|
|
|
7738
7743
|
}
|
|
7739
7744
|
});
|
|
7740
7745
|
}
|
|
7741
|
-
let
|
|
7742
|
-
function
|
|
7743
|
-
typeof window > "u" || (
|
|
7746
|
+
let vr = !1, qn = !1;
|
|
7747
|
+
function Js(t) {
|
|
7748
|
+
typeof window > "u" || (ar.GlobalWorkerOptions.workerSrc = t, vr = !0);
|
|
7744
7749
|
}
|
|
7745
|
-
function
|
|
7750
|
+
function Ha(t) {
|
|
7746
7751
|
var i, r;
|
|
7747
|
-
if (typeof window > "u" ||
|
|
7752
|
+
if (typeof window > "u" || vr) return;
|
|
7748
7753
|
const e = (i = Ie().pdfWorkerFallbackUrl) == null ? void 0 : i.trim(), n = (r = t ?? e) == null ? void 0 : r.trim();
|
|
7749
7754
|
if (n) {
|
|
7750
|
-
|
|
7755
|
+
ar.GlobalWorkerOptions.workerSrc = n;
|
|
7751
7756
|
return;
|
|
7752
7757
|
}
|
|
7753
|
-
|
|
7758
|
+
qn || (qn = !0, console.warn(
|
|
7754
7759
|
"[@nuwatop/code-canvas-core] PDF worker 未配置。请在入口调用 setPdfjsWorkerSrc(localUrl),或通过 setCoreConfig({ pdfWorkerFallbackUrl }) 指定同源脚本地址。"
|
|
7755
7760
|
));
|
|
7756
7761
|
}
|
|
7757
|
-
const
|
|
7762
|
+
const Ua = 0.5, Ya = 3, Pn = 0.1, Gs = ({
|
|
7758
7763
|
id: t,
|
|
7759
7764
|
sessionId: e,
|
|
7760
7765
|
develop: n,
|
|
@@ -7771,7 +7776,7 @@ const Ha = 0.5, Ua = 3, qn = 0.1, Js = ({
|
|
|
7771
7776
|
style: b
|
|
7772
7777
|
}) => {
|
|
7773
7778
|
Ne(() => {
|
|
7774
|
-
|
|
7779
|
+
Ha();
|
|
7775
7780
|
}, []);
|
|
7776
7781
|
const y = _((Y) => Y.setDataSet), l = f(
|
|
7777
7782
|
() => le(e, i),
|
|
@@ -7909,7 +7914,7 @@ const Ha = 0.5, Ua = 3, qn = 0.1, Js = ({
|
|
|
7909
7914
|
const ee = z((Y) => {
|
|
7910
7915
|
j((q) => {
|
|
7911
7916
|
const ue = Number((q + Y).toFixed(2));
|
|
7912
|
-
return Math.max(
|
|
7917
|
+
return Math.max(Ua, Math.min(Ya, ue));
|
|
7913
7918
|
});
|
|
7914
7919
|
}, []), ne = z(() => {
|
|
7915
7920
|
if (!A) return;
|
|
@@ -7971,10 +7976,10 @@ const Ha = 0.5, Ua = 3, qn = 0.1, Js = ({
|
|
|
7971
7976
|
B("height"), j(1);
|
|
7972
7977
|
break;
|
|
7973
7978
|
case "zoomIn":
|
|
7974
|
-
ee(
|
|
7979
|
+
ee(Pn);
|
|
7975
7980
|
break;
|
|
7976
7981
|
case "zoomOut":
|
|
7977
|
-
ee(-
|
|
7982
|
+
ee(-Pn);
|
|
7978
7983
|
break;
|
|
7979
7984
|
case "previewSingle":
|
|
7980
7985
|
O("single");
|
|
@@ -8028,7 +8033,7 @@ const Ha = 0.5, Ua = 3, qn = 0.1, Js = ({
|
|
|
8028
8033
|
border: n ? "1px dashed #ccc" : void 0
|
|
8029
8034
|
},
|
|
8030
8035
|
children: k ? /* @__PURE__ */ p(
|
|
8031
|
-
|
|
8036
|
+
Xn,
|
|
8032
8037
|
{
|
|
8033
8038
|
type: "error",
|
|
8034
8039
|
message: (s == null ? void 0 : s.trim()) || k.message,
|
|
@@ -8048,11 +8053,11 @@ const Ha = 0.5, Ua = 3, qn = 0.1, Js = ({
|
|
|
8048
8053
|
zIndex: 2,
|
|
8049
8054
|
pointerEvents: "none"
|
|
8050
8055
|
},
|
|
8051
|
-
children: /* @__PURE__ */ p(
|
|
8056
|
+
children: /* @__PURE__ */ p(er, {})
|
|
8052
8057
|
}
|
|
8053
8058
|
) : null,
|
|
8054
8059
|
/* @__PURE__ */ p(
|
|
8055
|
-
|
|
8060
|
+
Ai,
|
|
8056
8061
|
{
|
|
8057
8062
|
file: A,
|
|
8058
8063
|
onLoadSuccess: Ae,
|
|
@@ -8072,7 +8077,7 @@ const Ha = 0.5, Ua = 3, qn = 0.1, Js = ({
|
|
|
8072
8077
|
padding: "8px 0"
|
|
8073
8078
|
},
|
|
8074
8079
|
children: /* @__PURE__ */ p(
|
|
8075
|
-
|
|
8080
|
+
Di,
|
|
8076
8081
|
{
|
|
8077
8082
|
pageNumber: Y,
|
|
8078
8083
|
width: P === "width" ? te : void 0,
|
|
@@ -8099,10 +8104,10 @@ const Ha = 0.5, Ua = 3, qn = 0.1, Js = ({
|
|
|
8099
8104
|
padding: 24
|
|
8100
8105
|
},
|
|
8101
8106
|
children: /* @__PURE__ */ p(
|
|
8102
|
-
|
|
8107
|
+
ii,
|
|
8103
8108
|
{
|
|
8104
8109
|
image: /* @__PURE__ */ p(
|
|
8105
|
-
|
|
8110
|
+
wi,
|
|
8106
8111
|
{
|
|
8107
8112
|
style: {
|
|
8108
8113
|
fontSize: 72,
|
|
@@ -8133,7 +8138,7 @@ const Ha = 0.5, Ua = 3, qn = 0.1, Js = ({
|
|
|
8133
8138
|
}
|
|
8134
8139
|
);
|
|
8135
8140
|
};
|
|
8136
|
-
function
|
|
8141
|
+
function Qs(t, e, n, i) {
|
|
8137
8142
|
const { getProps: r, setProps: o } = _.getState(), a = r(t, e), c = a && typeof a == "object" && !Array.isArray(a) ? a : {};
|
|
8138
8143
|
o(t, e, {
|
|
8139
8144
|
...c,
|
|
@@ -8154,7 +8159,7 @@ function $e(t) {
|
|
|
8154
8159
|
return t;
|
|
8155
8160
|
}
|
|
8156
8161
|
}
|
|
8157
|
-
function
|
|
8162
|
+
function Ia(t, e) {
|
|
8158
8163
|
return t == null || t === "" ? e : t === !0 || t === "true" ? !0 : t === !1 || t === "false" ? !1 : e;
|
|
8159
8164
|
}
|
|
8160
8165
|
function lt(t, e) {
|
|
@@ -8232,7 +8237,7 @@ function lt(t, e) {
|
|
|
8232
8237
|
data: V,
|
|
8233
8238
|
// 优先使用 common 中的配置,没配置则使用默认值
|
|
8234
8239
|
height: G.height ?? i,
|
|
8235
|
-
autoFit:
|
|
8240
|
+
autoFit: Ia(G.autoFit, !0),
|
|
8236
8241
|
// 合并其他通用配置 (margin, padding, insert, etc.)
|
|
8237
8242
|
...G,
|
|
8238
8243
|
// 设计器模式禁用动画
|
|
@@ -8266,18 +8271,18 @@ function lt(t, e) {
|
|
|
8266
8271
|
};
|
|
8267
8272
|
return o.displayName = `withBaseChart(${n})`, o;
|
|
8268
8273
|
}
|
|
8269
|
-
const
|
|
8274
|
+
const Ja = [
|
|
8270
8275
|
{ year: "2020", value: 3 },
|
|
8271
8276
|
{ year: "2021", value: 4 },
|
|
8272
8277
|
{ year: "2022", value: 3.5 },
|
|
8273
8278
|
{ year: "2023", value: 5 },
|
|
8274
8279
|
{ year: "2024", value: 4.9 },
|
|
8275
8280
|
{ year: "2025", value: 6 }
|
|
8276
|
-
],
|
|
8281
|
+
], Ga = lt(Ci, {
|
|
8277
8282
|
chartType: "AndVLine",
|
|
8278
8283
|
defaultHeight: 300,
|
|
8279
|
-
defaultData:
|
|
8280
|
-
}),
|
|
8284
|
+
defaultData: Ja
|
|
8285
|
+
}), Zs = (t) => {
|
|
8281
8286
|
const {
|
|
8282
8287
|
xField: e = "year",
|
|
8283
8288
|
yField: n = "value",
|
|
@@ -8288,7 +8293,7 @@ const Ia = [
|
|
|
8288
8293
|
...c
|
|
8289
8294
|
} = t;
|
|
8290
8295
|
return /* @__PURE__ */ p(
|
|
8291
|
-
|
|
8296
|
+
Ga,
|
|
8292
8297
|
{
|
|
8293
8298
|
...c,
|
|
8294
8299
|
xField: e,
|
|
@@ -8299,18 +8304,18 @@ const Ia = [
|
|
|
8299
8304
|
lineStyle: a
|
|
8300
8305
|
}
|
|
8301
8306
|
);
|
|
8302
|
-
},
|
|
8307
|
+
}, Qa = [
|
|
8303
8308
|
{ category: "一月", value: 38 },
|
|
8304
8309
|
{ category: "二月", value: 52 },
|
|
8305
8310
|
{ category: "三月", value: 61 },
|
|
8306
8311
|
{ category: "四月", value: 45 },
|
|
8307
8312
|
{ category: "五月", value: 48 },
|
|
8308
8313
|
{ category: "六月", value: 58 }
|
|
8309
|
-
],
|
|
8314
|
+
], Za = lt(Ni, {
|
|
8310
8315
|
chartType: "AndVColumn",
|
|
8311
8316
|
defaultHeight: 300,
|
|
8312
|
-
defaultData:
|
|
8313
|
-
}),
|
|
8317
|
+
defaultData: Qa
|
|
8318
|
+
}), Xs = (t) => {
|
|
8314
8319
|
const {
|
|
8315
8320
|
xField: e = "category",
|
|
8316
8321
|
yField: n = "value",
|
|
@@ -8324,19 +8329,19 @@ const Ia = [
|
|
|
8324
8329
|
xField: e,
|
|
8325
8330
|
yField: n
|
|
8326
8331
|
};
|
|
8327
|
-
return i && (s.seriesField = i), r && (s.isGroup = r), o && (s.isStack = o), a && (s.columnWidth = a), /* @__PURE__ */ p(
|
|
8328
|
-
},
|
|
8332
|
+
return i && (s.seriesField = i), r && (s.isGroup = r), o && (s.isStack = o), a && (s.columnWidth = a), /* @__PURE__ */ p(Za, { ...s });
|
|
8333
|
+
}, Xa = [
|
|
8329
8334
|
{ type: "分类一", value: 27 },
|
|
8330
8335
|
{ type: "分类二", value: 25 },
|
|
8331
8336
|
{ type: "分类三", value: 18 },
|
|
8332
8337
|
{ type: "分类四", value: 15 },
|
|
8333
8338
|
{ type: "分类五", value: 10 },
|
|
8334
8339
|
{ type: "其他", value: 5 }
|
|
8335
|
-
],
|
|
8340
|
+
], ec = lt(Ti, {
|
|
8336
8341
|
chartType: "AndVPie",
|
|
8337
8342
|
defaultHeight: 300,
|
|
8338
|
-
defaultData:
|
|
8339
|
-
}),
|
|
8343
|
+
defaultData: Xa
|
|
8344
|
+
}), el = (t) => {
|
|
8340
8345
|
const {
|
|
8341
8346
|
angleField: e = "value",
|
|
8342
8347
|
colorField: n = "type",
|
|
@@ -8349,8 +8354,8 @@ const Ia = [
|
|
|
8349
8354
|
colorField: n,
|
|
8350
8355
|
radius: i
|
|
8351
8356
|
};
|
|
8352
|
-
return r !== void 0 && r > 0 && (a.innerRadius = r), /* @__PURE__ */ p(
|
|
8353
|
-
},
|
|
8357
|
+
return r !== void 0 && r > 0 && (a.innerRadius = r), /* @__PURE__ */ p(ec, { ...a });
|
|
8358
|
+
}, tc = lt(ki, {
|
|
8354
8359
|
chartType: "AndVArea",
|
|
8355
8360
|
defaultHeight: 300,
|
|
8356
8361
|
defaultData: [
|
|
@@ -8364,7 +8369,7 @@ const Ia = [
|
|
|
8364
8369
|
{ year: "1998", value: 9 },
|
|
8365
8370
|
{ year: "1999", value: 13 }
|
|
8366
8371
|
]
|
|
8367
|
-
}),
|
|
8372
|
+
}), tl = (t) => {
|
|
8368
8373
|
const {
|
|
8369
8374
|
// 字段
|
|
8370
8375
|
xField: e,
|
|
@@ -8389,8 +8394,8 @@ const Ia = [
|
|
|
8389
8394
|
const l = $e(c);
|
|
8390
8395
|
l !== void 0 && (y.line = l);
|
|
8391
8396
|
const g = $e(s);
|
|
8392
|
-
return g !== void 0 && (y.point = g), /* @__PURE__ */ p(
|
|
8393
|
-
},
|
|
8397
|
+
return g !== void 0 && (y.point = g), /* @__PURE__ */ p(tc, { ...y });
|
|
8398
|
+
}, nc = lt(_i, {
|
|
8394
8399
|
chartType: "AndVDualAxes",
|
|
8395
8400
|
defaultHeight: 300,
|
|
8396
8401
|
defaultData: [
|
|
@@ -8404,7 +8409,7 @@ const Ia = [
|
|
|
8404
8409
|
{ year: "1998", value: 9, count: 1 },
|
|
8405
8410
|
{ year: "1999", value: 13, count: 20 }
|
|
8406
8411
|
]
|
|
8407
|
-
}),
|
|
8412
|
+
}), nl = (t) => {
|
|
8408
8413
|
const {
|
|
8409
8414
|
// 字段
|
|
8410
8415
|
xField: e,
|
|
@@ -8421,33 +8426,33 @@ const Ia = [
|
|
|
8421
8426
|
const s = $e(n);
|
|
8422
8427
|
s ? c.yField = s : n && (c.yField = n), i && (c.seriesField = i), r && (c.colorField = r);
|
|
8423
8428
|
const d = $e(o);
|
|
8424
|
-
return d !== void 0 && (c.children = d), /* @__PURE__ */ p(
|
|
8425
|
-
},
|
|
8429
|
+
return d !== void 0 && (c.children = d), /* @__PURE__ */ p(nc, { ...c });
|
|
8430
|
+
}, rc = lt(Ei, {
|
|
8426
8431
|
chartType: "AndVGauge",
|
|
8427
8432
|
defaultHeight: 300,
|
|
8428
8433
|
defaultData: { percent: 0.7 }
|
|
8429
8434
|
// Gauge 默认数据
|
|
8430
|
-
}),
|
|
8435
|
+
}), rl = (t) => {
|
|
8431
8436
|
const {
|
|
8432
8437
|
...e
|
|
8433
8438
|
} = t, n = {
|
|
8434
8439
|
...e
|
|
8435
8440
|
};
|
|
8436
|
-
return console.log("[AndVGauge] chartProps:", JSON.stringify(n, null, 2)), /* @__PURE__ */ p(
|
|
8437
|
-
},
|
|
8441
|
+
return console.log("[AndVGauge] chartProps:", JSON.stringify(n, null, 2)), /* @__PURE__ */ p(rc, { ...n });
|
|
8442
|
+
}, ic = lt(Oi, {
|
|
8438
8443
|
chartType: "AndVLiquid",
|
|
8439
8444
|
defaultHeight: 300,
|
|
8440
8445
|
defaultData: 0.25
|
|
8441
8446
|
// Liquid 默认 percent (注意:Liquid 数据直接作为 percent 传递)
|
|
8442
|
-
}),
|
|
8447
|
+
}), il = (t) => {
|
|
8443
8448
|
const {
|
|
8444
8449
|
percent: e,
|
|
8445
8450
|
...n
|
|
8446
8451
|
} = t, i = {
|
|
8447
8452
|
...n
|
|
8448
8453
|
};
|
|
8449
|
-
return e !== void 0 && (i.percent = e), console.log("[AndVLiquid] chartProps:", JSON.stringify(i, null, 2)), /* @__PURE__ */ p(
|
|
8450
|
-
},
|
|
8454
|
+
return e !== void 0 && (i.percent = e), console.log("[AndVLiquid] chartProps:", JSON.stringify(i, null, 2)), /* @__PURE__ */ p(ic, { ...i });
|
|
8455
|
+
}, oc = lt($i, {
|
|
8451
8456
|
chartType: "AndVBar",
|
|
8452
8457
|
defaultHeight: 300,
|
|
8453
8458
|
defaultData: [
|
|
@@ -8457,7 +8462,7 @@ const Ia = [
|
|
|
8457
8462
|
{ year: "1957 年", value: 145 },
|
|
8458
8463
|
{ year: "1958 年", value: 48 }
|
|
8459
8464
|
]
|
|
8460
|
-
}),
|
|
8465
|
+
}), ol = (t) => {
|
|
8461
8466
|
const {
|
|
8462
8467
|
// 特有字段
|
|
8463
8468
|
xField: e,
|
|
@@ -8479,134 +8484,134 @@ const Ia = [
|
|
|
8479
8484
|
const m = $e(s);
|
|
8480
8485
|
m !== void 0 && (h.conversionTag = m);
|
|
8481
8486
|
const b = $e(d);
|
|
8482
|
-
return b !== void 0 && (h.markBackground = b), console.log("[AndVBar] chartProps:", JSON.stringify(h, null, 2)), /* @__PURE__ */ p(
|
|
8487
|
+
return b !== void 0 && (h.markBackground = b), console.log("[AndVBar] chartProps:", JSON.stringify(h, null, 2)), /* @__PURE__ */ p(oc, { ...h });
|
|
8483
8488
|
};
|
|
8484
8489
|
export {
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8490
|
+
Kc as AVAILABLE_TOKENS,
|
|
8491
|
+
Os as AndAlert,
|
|
8492
|
+
is as AndAutoComplete,
|
|
8493
|
+
xs as AndAvatar,
|
|
8494
|
+
ks as AndBadge,
|
|
8495
|
+
_s as AndBadgeRibbon,
|
|
8496
|
+
Cs as AndBreadCrumb,
|
|
8497
|
+
Vc as AndButton,
|
|
8498
|
+
Ts as AndCalendar,
|
|
8499
|
+
js as AndCard,
|
|
8500
|
+
bs as AndCarousel,
|
|
8501
|
+
ts as AndCascade,
|
|
8502
|
+
Zc as AndCheckbox,
|
|
8503
|
+
zs as AndColumn,
|
|
8504
|
+
Vs as AndContainer,
|
|
8505
|
+
Ic as AndDatePicker,
|
|
8506
|
+
Bs as AndDivider,
|
|
8507
|
+
Ms as AndDrawer,
|
|
8508
|
+
Ks as AndDropdown,
|
|
8509
|
+
Ks as AndDropdownMenu,
|
|
8510
|
+
Ys as AndDynamicContainer,
|
|
8511
|
+
as as AndFormItem,
|
|
8512
|
+
Hs as AndIcon,
|
|
8513
|
+
Ss as AndImage,
|
|
8514
|
+
ws as AndImageGroup,
|
|
8515
|
+
Fc as AndInput,
|
|
8516
|
+
Pc as AndInputArea,
|
|
8517
|
+
qc as AndInputNumber,
|
|
8518
|
+
Wc as AndInputPassword,
|
|
8519
|
+
Hc as AndInputSearch,
|
|
8520
|
+
Ws as AndIterator,
|
|
8521
|
+
Es as AndMasonry,
|
|
8522
|
+
Ns as AndMenu,
|
|
8523
|
+
$s as AndModal,
|
|
8524
|
+
Ds as AndPagination,
|
|
8525
|
+
fs as AndParagraph,
|
|
8526
|
+
Gs as AndPdfViewer,
|
|
8527
|
+
Us as AndProductCategory,
|
|
8528
|
+
Fs as AndQRCode,
|
|
8529
|
+
Qc as AndRadio,
|
|
8530
|
+
Gc as AndRangePicker,
|
|
8531
|
+
Xc as AndRate,
|
|
8532
|
+
Rs as AndResult,
|
|
8533
|
+
Ls as AndRow,
|
|
8534
|
+
ss as AndSegmented,
|
|
8535
|
+
Uc as AndSelect,
|
|
8536
|
+
os as AndSimpleForm,
|
|
8537
|
+
es as AndSlider,
|
|
8538
|
+
qs as AndSplitter,
|
|
8539
|
+
Ps as AndSplitterPanel,
|
|
8540
|
+
ps as AndStatistics,
|
|
8541
|
+
vs as AndStatisticsCountdown,
|
|
8542
|
+
gs as AndSteps,
|
|
8543
|
+
Yc as AndSwitch,
|
|
8544
|
+
ls as AndTable,
|
|
8545
|
+
ms as AndTabs,
|
|
8546
|
+
As as AndTag,
|
|
8547
|
+
us as AndText,
|
|
8548
|
+
Jc as AndTimePicker,
|
|
8549
|
+
hs as AndTimeline,
|
|
8550
|
+
ds as AndTitle,
|
|
8551
|
+
cs as AndTransfer,
|
|
8552
|
+
ys as AndTree,
|
|
8553
|
+
ns as AndTreeSelect,
|
|
8554
|
+
rs as AndUpload,
|
|
8555
|
+
tl as AndVArea,
|
|
8556
|
+
ol as AndVBar,
|
|
8557
|
+
Xs as AndVColumn,
|
|
8558
|
+
nl as AndVDualAxes,
|
|
8559
|
+
rl as AndVGauge,
|
|
8560
|
+
Zs as AndVLine,
|
|
8561
|
+
il as AndVLiquid,
|
|
8562
|
+
el as AndVPie,
|
|
8563
|
+
Is as AndWatermark,
|
|
8564
|
+
Lc as COMMON_TOKENS,
|
|
8560
8565
|
Pe as DataSetInheritContext,
|
|
8561
|
-
|
|
8562
|
-
|
|
8566
|
+
Nc as cleanupAllMounts,
|
|
8567
|
+
Dc as clearCssCache,
|
|
8563
8568
|
oe as createCommand,
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8569
|
+
Mc as createWatchCommands,
|
|
8570
|
+
bo as dictValueEquals,
|
|
8571
|
+
Qs as dispatchPdfViewerCommand,
|
|
8572
|
+
Ha as ensurePdfjsWorker,
|
|
8573
|
+
nt as findDictOptionByValue,
|
|
8574
|
+
Po as formatByType,
|
|
8570
8575
|
un as getAccessToken,
|
|
8571
8576
|
Ie as getCoreConfig,
|
|
8572
8577
|
le as getDataSetStoreKey,
|
|
8573
8578
|
yn as getDictOptions,
|
|
8574
8579
|
kt as getNestedValue,
|
|
8575
8580
|
Nt as getValidateStoreKey,
|
|
8576
|
-
|
|
8577
|
-
|
|
8581
|
+
Mi as initReactMount,
|
|
8582
|
+
yr as isTokenName,
|
|
8578
8583
|
Ve as mergeStoreProps,
|
|
8579
|
-
|
|
8584
|
+
Cc as mountReactComponent,
|
|
8580
8585
|
dt as parseAction,
|
|
8581
8586
|
wt as parseArrayNotation,
|
|
8582
8587
|
ke as parseChangeAction,
|
|
8583
|
-
|
|
8588
|
+
cr as parseClickAction,
|
|
8584
8589
|
vt as parseNestedPath,
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8590
|
+
Rc as parseQueryAction,
|
|
8591
|
+
ur as processValidationRules,
|
|
8592
|
+
Bc as req,
|
|
8588
8593
|
mt as request,
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8594
|
+
zc as resolveTokenColorWithToken,
|
|
8595
|
+
jc as setCoreConfig,
|
|
8596
|
+
ji as setNestedValue,
|
|
8597
|
+
Js as setPdfjsWorkerSrc,
|
|
8598
|
+
fr as upload,
|
|
8599
|
+
_c as useAddCommand,
|
|
8595
8600
|
_ as useAndStore,
|
|
8596
|
-
|
|
8597
|
-
|
|
8601
|
+
So as useApiService,
|
|
8602
|
+
$c as useCommandsStore,
|
|
8598
8603
|
$t as useDictOptions,
|
|
8599
8604
|
ze as useFieldValidation,
|
|
8600
|
-
|
|
8601
|
-
|
|
8605
|
+
Oc as useItemStore,
|
|
8606
|
+
Ec as usePopCommand,
|
|
8602
8607
|
hn as useRemoteOptions,
|
|
8603
8608
|
Ht as useResolveTokenColor,
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8609
|
+
ot as useResolvedDataSet,
|
|
8610
|
+
Tc as useStore,
|
|
8611
|
+
kc as useStoreByName,
|
|
8612
|
+
Bi as useStoreData,
|
|
8613
|
+
dr as validateWithSchema,
|
|
8614
|
+
Ki as watchCommands,
|
|
8610
8615
|
lt as withBaseChart
|
|
8611
8616
|
};
|
|
8612
8617
|
//# sourceMappingURL=index.esm.js.map
|