@nuwatop/code-canvas-core 0.5.41 → 0.5.42
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 +926 -923
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as y, jsxs as le, Fragment as
|
|
2
|
-
import { createRoot as
|
|
3
|
-
import { theme as
|
|
4
|
-
import { StyleProvider as
|
|
5
|
-
import
|
|
6
|
-
import { create as
|
|
7
|
-
import { subscribeWithSelector as
|
|
8
|
-
import { immer as
|
|
9
|
-
import Le, { useMemo as d, useCallback as L, useEffect as Ae, createContext as
|
|
1
|
+
import { jsx as y, jsxs as le, Fragment as pt } from "react/jsx-runtime";
|
|
2
|
+
import { createRoot as Nr } from "react-dom/client";
|
|
3
|
+
import { theme as tt, ConfigProvider as Ke, Button as nt, Tooltip as Wn, Space as Ce, Input as qt, InputNumber as Pn, Select as Hn, Switch as Tr, DatePicker as Un, TimePicker as kr, Radio as Yt, Checkbox as gt, Rate as _r, Slider as Er, Cascader as Or, TreeSelect as Mr, message as Rt, Upload as $r, Image as et, AutoComplete as Rr, Form as zt, Transfer as jr, Segmented as Br, Modal as Yn, Table as Kr, Flex as Fn, Typography as dn, Tabs as Lr, Tree as zr, Timeline as Vr, Steps as qr, Statistic as It, Carousel as Wr, Avatar as Pr, Tag as Jn, Pagination as Gn, Breadcrumb as Hr, Menu as Ur, Calendar as Yr, Badge as Qn, Masonry as Fr, Alert as Zn, Drawer as Jr, Result as Gr, Card as en, Divider as Sn, Dropdown as Qr, Row as Zr, Col as Xr, QRCode as Ir, Splitter as Ft, Spin as Xn, Watermark as ei, Empty as ti } from "antd";
|
|
4
|
+
import { StyleProvider as ni, createCache as ri } from "@ant-design/cssinjs";
|
|
5
|
+
import ii from "antd/locale/zh_CN";
|
|
6
|
+
import { create as oi } from "zustand";
|
|
7
|
+
import { subscribeWithSelector as ai } from "zustand/middleware";
|
|
8
|
+
import { immer as ci } from "zustand/middleware/immer";
|
|
9
|
+
import Le, { useMemo as d, useCallback as L, useEffect as Ae, createContext as si, useContext as Tt, useState as ve, useRef as Me, useLayoutEffect as In, useId as li, Suspense as ui } from "react";
|
|
10
10
|
import * as Ye from "@ant-design/icons";
|
|
11
|
-
import { CloseCircleOutlined as
|
|
12
|
-
import
|
|
11
|
+
import { CloseCircleOutlined as fi, PlusOutlined as er, UploadOutlined as di, MenuOutlined as mi, MinusOutlined as hi, LeftOutlined as tr, RightOutlined as nr, UpOutlined as yi, DownOutlined as rr, ApiOutlined as gi, InboxOutlined as pi, FilePdfOutlined as vi } from "@ant-design/icons";
|
|
12
|
+
import bi from "clsx";
|
|
13
13
|
import Ge from "dayjs";
|
|
14
|
-
import { pdfjs as
|
|
14
|
+
import { pdfjs as ir, Document as Si, Page as wi } 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
|
|
18
|
-
const
|
|
19
|
-
let
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
let e =
|
|
24
|
-
return e || (e =
|
|
25
|
-
},
|
|
26
|
-
t &&
|
|
27
|
-
},
|
|
17
|
+
import { Line as xi, Column as Ai, Pie as Di, Area as Ci, DualAxes as Ni, Gauge as Ti, Liquid as ki, Bar as _i } from "@ant-design/plots";
|
|
18
|
+
const jt = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap();
|
|
19
|
+
let nn = !1;
|
|
20
|
+
const Ei = () => {
|
|
21
|
+
nn || (nn = !0);
|
|
22
|
+
}, Oi = (t) => {
|
|
23
|
+
let e = tn.get(t);
|
|
24
|
+
return e || (e = ri(), tn.set(t, e)), e;
|
|
25
|
+
}, wc = (t) => {
|
|
26
|
+
t && tn.delete(t);
|
|
27
|
+
}, xc = async ({
|
|
28
28
|
el: t,
|
|
29
29
|
component: e,
|
|
30
30
|
props: n = {},
|
|
@@ -33,8 +33,8 @@ const _i = () => {
|
|
|
33
33
|
skipUnmount: o = !1
|
|
34
34
|
}) => {
|
|
35
35
|
var N;
|
|
36
|
-
|
|
37
|
-
const a =
|
|
36
|
+
Ei();
|
|
37
|
+
const a = jt.get(t);
|
|
38
38
|
if (a) {
|
|
39
39
|
if (o)
|
|
40
40
|
Object.keys(t).forEach((w) => {
|
|
@@ -50,14 +50,14 @@ const _i = () => {
|
|
|
50
50
|
} catch (w) {
|
|
51
51
|
console.warn("[mountReactComponent] Unmount failed (benign if DOM was cleared):", w);
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
jt.delete(t);
|
|
54
54
|
}
|
|
55
|
-
const c =
|
|
56
|
-
|
|
57
|
-
const u = window.__ANTD_CSSINJS_CONTAINER__, f = window.__ANTD_IFRAME_DOC__, b = !r && u && f && f.defaultView !== null, m = b ? u : window.document.head, p = b ? f : window.document, v =
|
|
55
|
+
const c = Nr(t);
|
|
56
|
+
jt.set(t, c);
|
|
57
|
+
const u = window.__ANTD_CSSINJS_CONTAINER__, f = window.__ANTD_IFRAME_DOC__, b = !r && u && f && f.defaultView !== null, m = b ? u : window.document.head, p = b ? f : window.document, v = Oi(p), g = (((N = window.__GLS_COMPS__) == null ? void 0 : N.theme) || i) === "dark" ? tt.darkAlgorithm : tt.defaultAlgorithm, s = (w) => /* @__PURE__ */ y(ni, { cache: v, container: m, hashPriority: "high", children: /* @__PURE__ */ y(
|
|
58
58
|
Ke,
|
|
59
59
|
{
|
|
60
|
-
locale:
|
|
60
|
+
locale: ii,
|
|
61
61
|
theme: {
|
|
62
62
|
algorithm: g,
|
|
63
63
|
cssVar: {
|
|
@@ -77,7 +77,7 @@ const _i = () => {
|
|
|
77
77
|
root: c,
|
|
78
78
|
unmount: () => {
|
|
79
79
|
try {
|
|
80
|
-
c.unmount(),
|
|
80
|
+
c.unmount(), jt.delete(t);
|
|
81
81
|
} catch (w) {
|
|
82
82
|
console.error("[code-canvas-core] Failed to unmount component:", w);
|
|
83
83
|
}
|
|
@@ -86,10 +86,10 @@ const _i = () => {
|
|
|
86
86
|
window.__CURRENT_STYLE_CONTAINER__ = m, c.render(s(w));
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
},
|
|
90
|
-
console.info("[code-canvas-core] Cleanup called - components will be garbage collected"),
|
|
89
|
+
}, Ac = () => {
|
|
90
|
+
console.info("[code-canvas-core] Cleanup called - components will be garbage collected"), nn = !1;
|
|
91
91
|
};
|
|
92
|
-
function
|
|
92
|
+
function vt(t) {
|
|
93
93
|
const e = t.match(/^(.+)\[(\d+)\]$/);
|
|
94
94
|
return e ? {
|
|
95
95
|
baseName: e[1],
|
|
@@ -99,7 +99,7 @@ function pt(t) {
|
|
|
99
99
|
index: null
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function yt(t) {
|
|
103
103
|
if (!t || typeof t != "string") return [];
|
|
104
104
|
const e = [], n = t.split(".").flatMap((i) => {
|
|
105
105
|
const r = i.match(/^([^\[]+)(\[\d+\])(.*)$/);
|
|
@@ -119,7 +119,7 @@ function ht(t) {
|
|
|
119
119
|
} else i && e.push({ type: "property", key: i });
|
|
120
120
|
return e;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Ct(t, e) {
|
|
123
123
|
if (e.length === 0) return t;
|
|
124
124
|
let n = t;
|
|
125
125
|
for (const i of e) {
|
|
@@ -132,7 +132,7 @@ function Dt(t, e) {
|
|
|
132
132
|
}
|
|
133
133
|
return n;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Mi(t, e, n) {
|
|
136
136
|
if (!e.length) return n;
|
|
137
137
|
const i = Array.isArray(t) ? [...t] : { ...t };
|
|
138
138
|
let r = i;
|
|
@@ -150,23 +150,23 @@ function re(t, e) {
|
|
|
150
150
|
if (e)
|
|
151
151
|
return t ? `${t}_${e}` : e;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function At(t, e) {
|
|
154
154
|
if (e)
|
|
155
155
|
return t ? `${t}_${e}_validate` : `${e}_validate`;
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const wn = {
|
|
158
158
|
dataSets: {},
|
|
159
159
|
commandQueues: {},
|
|
160
160
|
propsStore: {},
|
|
161
161
|
validateStore: {}
|
|
162
162
|
};
|
|
163
|
-
function
|
|
164
|
-
const { baseName: r, index: o } =
|
|
163
|
+
function xn(t, e, n, i) {
|
|
164
|
+
const { baseName: r, index: o } = vt(e);
|
|
165
165
|
if (t.dataSets[r] || (t.dataSets[r] = {}), o !== null) {
|
|
166
166
|
const f = t.dataSets[r];
|
|
167
167
|
let b = f.value;
|
|
168
168
|
Array.isArray(b) || (b = []);
|
|
169
|
-
const m = b[o], p = n.length === 0 ? m :
|
|
169
|
+
const m = b[o], p = n.length === 0 ? m : Ct(m ?? {}, n), v = i(p), h = n.length === 0 ? v : Mi(m ?? {}, n, v), l = [...b];
|
|
170
170
|
l[o] = h, t.dataSets[r] = { ...f, value: l };
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
@@ -183,33 +183,33 @@ function wn(t, e, n, i) {
|
|
|
183
183
|
const c = n[n.length - 1], u = a[c.key];
|
|
184
184
|
a[c.key] = i(u);
|
|
185
185
|
}
|
|
186
|
-
const k =
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
...
|
|
186
|
+
const k = oi()(
|
|
187
|
+
ai(
|
|
188
|
+
ci((t, e) => ({
|
|
189
|
+
...wn,
|
|
190
190
|
// ============ 数据集操作(支持 name[index] 与 field 多级路径;append 默认 true 为合并更新) ============
|
|
191
191
|
setDataSet: (n, i, r, o = !0) => t((a) => {
|
|
192
192
|
if (!n) return;
|
|
193
|
-
const c = i ?
|
|
194
|
-
|
|
193
|
+
const c = i ? yt(i) : [], u = o && typeof r == "object" && r !== null && !Array.isArray(r);
|
|
194
|
+
xn(a, n, c, (b) => u && b != null && typeof b == "object" && !Array.isArray(b) ? { ...b, ...r } : r);
|
|
195
195
|
}),
|
|
196
196
|
updateDataSet: (n, i, r) => t((o) => {
|
|
197
197
|
if (!n || typeof r != "function") return;
|
|
198
|
-
const a = i ?
|
|
199
|
-
|
|
198
|
+
const a = i ? yt(i) : [];
|
|
199
|
+
xn(o, n, a, r);
|
|
200
200
|
}),
|
|
201
201
|
getDataSet: (n, i) => {
|
|
202
202
|
if (!n) return;
|
|
203
|
-
const r = e().dataSets, { baseName: o, index: a } =
|
|
203
|
+
const r = e().dataSets, { baseName: o, index: a } = vt(n), c = r[o];
|
|
204
204
|
if (a !== null) {
|
|
205
205
|
const u = c == null ? void 0 : c.value;
|
|
206
206
|
if (!Array.isArray(u) || u[a] === void 0)
|
|
207
207
|
return;
|
|
208
208
|
const f = u[a];
|
|
209
|
-
return i ?
|
|
209
|
+
return i ? Ct(f, yt(i)) : f;
|
|
210
210
|
}
|
|
211
211
|
if (c)
|
|
212
|
-
return i ?
|
|
212
|
+
return i ? Ct(c, yt(i)) : c;
|
|
213
213
|
},
|
|
214
214
|
setDataSetBatch: (n, i) => t((r) => {
|
|
215
215
|
r.dataSets[n] = {
|
|
@@ -249,24 +249,24 @@ const k = ii()(
|
|
|
249
249
|
},
|
|
250
250
|
// ============ 校验结果(key 使用 getValidateStoreKey,考虑 sessionId) ============
|
|
251
251
|
setValidateResult: (n, i, r, o) => t((a) => {
|
|
252
|
-
const c =
|
|
252
|
+
const c = At(n, i);
|
|
253
253
|
c && (a.validateStore[c] || (a.validateStore[c] = {}), a.validateStore[c][r] = o);
|
|
254
254
|
}),
|
|
255
255
|
getValidateResult: (n, i, r) => {
|
|
256
256
|
var a;
|
|
257
|
-
const o =
|
|
257
|
+
const o = At(n, i);
|
|
258
258
|
return o ? ((a = e().validateStore[o]) == null ? void 0 : a[r]) ?? "" : "";
|
|
259
259
|
},
|
|
260
260
|
getValidateResults: (n, i) => {
|
|
261
|
-
const r =
|
|
261
|
+
const r = At(n, i);
|
|
262
262
|
return r ? e().validateStore[r] ?? {} : {};
|
|
263
263
|
},
|
|
264
264
|
// ============ 全局操作 ============
|
|
265
|
-
reset: () => t(
|
|
265
|
+
reset: () => t(wn)
|
|
266
266
|
}))
|
|
267
267
|
)
|
|
268
268
|
);
|
|
269
|
-
function
|
|
269
|
+
function Dc(t) {
|
|
270
270
|
const { dataSet: e, dataSetField: n } = t, i = k((r) => r.setDataSet);
|
|
271
271
|
return {
|
|
272
272
|
get value() {
|
|
@@ -278,7 +278,7 @@ function Ac(t) {
|
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function Cc(t) {
|
|
282
282
|
const e = k((n) => n.setDataSetBatch);
|
|
283
283
|
return {
|
|
284
284
|
get value() {
|
|
@@ -289,16 +289,16 @@ function Dc(t) {
|
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Nc() {
|
|
293
293
|
return k((t) => t.addCommand);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Tc() {
|
|
296
296
|
return k((t) => t.popCommand);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function $i(t, e) {
|
|
299
299
|
const n = k((r) => {
|
|
300
300
|
if (!t) return;
|
|
301
|
-
const o =
|
|
301
|
+
const o = vt(t).baseName;
|
|
302
302
|
return r.dataSets[o];
|
|
303
303
|
}), i = k((r) => r.getDataSet);
|
|
304
304
|
return d(() => {
|
|
@@ -307,7 +307,7 @@ function Mi(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 kc() {
|
|
311
311
|
const t = k((o) => o.setDataSetBatch), e = k((o) => o.setDataSet), n = k((o) => o.updateDataSet), i = k((o) => o.getDataSet), r = k.getState;
|
|
312
312
|
return {
|
|
313
313
|
get items() {
|
|
@@ -328,7 +328,7 @@ function Tc() {
|
|
|
328
328
|
getItem: (o) => r().dataSets[o] || {}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function _c(t) {
|
|
332
332
|
const e = k((o) => o.addCommand), n = k((o) => o.popCommand), i = k((o) => o.getCommands), r = k((o) => o.clearCommands);
|
|
333
333
|
return {
|
|
334
334
|
commands: i(t),
|
|
@@ -343,7 +343,7 @@ function kc(t) {
|
|
|
343
343
|
clearCommands: () => r(t)
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Ri(t, e, n = {}) {
|
|
347
347
|
return k.subscribe(
|
|
348
348
|
(r) => r.commandQueues[e],
|
|
349
349
|
(r) => {
|
|
@@ -363,13 +363,13 @@ function $i(t, e, n = {}) {
|
|
|
363
363
|
}
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Ec(t) {
|
|
367
367
|
return function(e, n) {
|
|
368
368
|
const i = t();
|
|
369
|
-
return
|
|
369
|
+
return Ri(e, n, i);
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function at(t, e = null, n = {}) {
|
|
373
373
|
if (!t)
|
|
374
374
|
return { actionName: "", arg: null };
|
|
375
375
|
const i = t.match(/^([^(]+)\(([^)]*)\)$/);
|
|
@@ -391,13 +391,13 @@ function ot(t, e = null, n = {}) {
|
|
|
391
391
|
return { actionName: r, arg: c };
|
|
392
392
|
}
|
|
393
393
|
function De(t, e, n = {}) {
|
|
394
|
-
return
|
|
394
|
+
return at(t, e, n);
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
return
|
|
396
|
+
function ji(t, e = {}) {
|
|
397
|
+
return at(t, null, e);
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
return
|
|
399
|
+
function Oc(t, e = {}) {
|
|
400
|
+
return at(t, null, e);
|
|
401
401
|
}
|
|
402
402
|
function I(t, e) {
|
|
403
403
|
return {
|
|
@@ -406,30 +406,30 @@ function I(t, e) {
|
|
|
406
406
|
timestamp: Date.now()
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
return
|
|
409
|
+
function ct() {
|
|
410
|
+
return ct = Object.assign ? Object.assign.bind() : function(t) {
|
|
411
411
|
for (var e = 1; e < arguments.length; e++) {
|
|
412
412
|
var n = arguments[e];
|
|
413
413
|
for (var i in n)
|
|
414
414
|
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
415
415
|
}
|
|
416
416
|
return t;
|
|
417
|
-
},
|
|
417
|
+
}, ct.apply(this, arguments);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
t.prototype = Object.create(e.prototype), t.prototype.constructor = t,
|
|
419
|
+
function Bi(t, e) {
|
|
420
|
+
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Nt(t, e);
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
return
|
|
422
|
+
function rn(t) {
|
|
423
|
+
return rn = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
424
424
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
425
|
-
},
|
|
425
|
+
}, rn(t);
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
427
|
+
function Nt(t, e) {
|
|
428
|
+
return Nt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, r) {
|
|
429
429
|
return i.__proto__ = r, i;
|
|
430
|
-
},
|
|
430
|
+
}, Nt(t, e);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Ki() {
|
|
433
433
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
434
434
|
if (typeof Proxy == "function") return !0;
|
|
435
435
|
try {
|
|
@@ -439,21 +439,21 @@ function Bi() {
|
|
|
439
439
|
return !1;
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
return
|
|
442
|
+
function Vt(t, e, n) {
|
|
443
|
+
return Ki() ? Vt = Reflect.construct.bind() : Vt = function(r, o, a) {
|
|
444
444
|
var c = [null];
|
|
445
445
|
c.push.apply(c, o);
|
|
446
446
|
var u = Function.bind.apply(r, c), f = new u();
|
|
447
|
-
return a &&
|
|
448
|
-
},
|
|
447
|
+
return a && Nt(f, a.prototype), f;
|
|
448
|
+
}, Vt.apply(null, arguments);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Li(t) {
|
|
451
451
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function on(t) {
|
|
454
454
|
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
455
|
-
return
|
|
456
|
-
if (i === null || !
|
|
455
|
+
return on = function(i) {
|
|
456
|
+
if (i === null || !Li(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") {
|
|
@@ -461,7 +461,7 @@ function rn(t) {
|
|
|
461
461
|
e.set(i, r);
|
|
462
462
|
}
|
|
463
463
|
function r() {
|
|
464
|
-
return
|
|
464
|
+
return Vt(i, arguments, rn(this).constructor);
|
|
465
465
|
}
|
|
466
466
|
return r.prototype = Object.create(i.prototype, {
|
|
467
467
|
constructor: {
|
|
@@ -470,17 +470,17 @@ function rn(t) {
|
|
|
470
470
|
writable: !0,
|
|
471
471
|
configurable: !0
|
|
472
472
|
}
|
|
473
|
-
}),
|
|
474
|
-
},
|
|
473
|
+
}), Nt(r, i);
|
|
474
|
+
}, on(t);
|
|
475
475
|
}
|
|
476
|
-
var
|
|
476
|
+
var zi = /%[sdj%]/g, or = 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" && (or = 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);
|
|
482
482
|
});
|
|
483
|
-
function
|
|
483
|
+
function an(t) {
|
|
484
484
|
if (!t || !t.length) return null;
|
|
485
485
|
var e = {};
|
|
486
486
|
return t.forEach(function(n) {
|
|
@@ -495,7 +495,7 @@ function We(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(zi, function(c) {
|
|
499
499
|
if (c === "%%")
|
|
500
500
|
return "%";
|
|
501
501
|
if (r >= o)
|
|
@@ -520,13 +520,13 @@ function We(t) {
|
|
|
520
520
|
}
|
|
521
521
|
return t;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Vi(t) {
|
|
524
524
|
return t === "string" || t === "url" || t === "hex" || t === "email" || t === "date" || t === "pattern";
|
|
525
525
|
}
|
|
526
526
|
function je(t, e) {
|
|
527
|
-
return !!(t == null || e === "array" && Array.isArray(t) && !t.length ||
|
|
527
|
+
return !!(t == null || e === "array" && Array.isArray(t) && !t.length || Vi(e) && typeof t == "string" && !t);
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function qi(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);
|
|
@@ -535,7 +535,7 @@ function Vi(t, e, n) {
|
|
|
535
535
|
e(c, a);
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function An(t, e, n) {
|
|
539
539
|
var i = 0, r = t.length;
|
|
540
540
|
function o(a) {
|
|
541
541
|
if (a && a.length) {
|
|
@@ -547,27 +547,27 @@ function xn(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
|
-
var
|
|
557
|
-
|
|
556
|
+
var Dn = /* @__PURE__ */ function(t) {
|
|
557
|
+
Bi(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
|
-
}(/* @__PURE__ */
|
|
564
|
-
function
|
|
563
|
+
}(/* @__PURE__ */ on(Error));
|
|
564
|
+
function Pi(t, e, n, i, r) {
|
|
565
565
|
if (e.first) {
|
|
566
566
|
var o = new Promise(function(p, v) {
|
|
567
567
|
var h = function(s) {
|
|
568
|
-
return i(s), s.length ? v(new
|
|
569
|
-
}, l =
|
|
570
|
-
|
|
568
|
+
return i(s), s.length ? v(new Dn(s, an(s))) : p(r);
|
|
569
|
+
}, l = Wi(t);
|
|
570
|
+
An(l, n, h);
|
|
571
571
|
});
|
|
572
572
|
return o.catch(function(p) {
|
|
573
573
|
return p;
|
|
@@ -576,21 +576,21 @@ function Wi(t, e, n, i, r) {
|
|
|
576
576
|
var a = e.firstFields === !0 ? Object.keys(t) : e.firstFields || [], c = Object.keys(t), u = c.length, f = 0, b = [], m = new Promise(function(p, v) {
|
|
577
577
|
var h = function(g) {
|
|
578
578
|
if (b.push.apply(b, g), f++, f === u)
|
|
579
|
-
return i(b), b.length ? v(new
|
|
579
|
+
return i(b), b.length ? v(new Dn(b, an(b))) : p(r);
|
|
580
580
|
};
|
|
581
581
|
c.length || (i(b), p(r)), c.forEach(function(l) {
|
|
582
582
|
var g = t[l];
|
|
583
|
-
a.indexOf(l) !== -1 ?
|
|
583
|
+
a.indexOf(l) !== -1 ? An(g, n, h) : qi(g, n, h);
|
|
584
584
|
});
|
|
585
585
|
});
|
|
586
586
|
return m.catch(function(p) {
|
|
587
587
|
return p;
|
|
588
588
|
}), m;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Hi(t) {
|
|
591
591
|
return !!(t && t.message !== void 0);
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Ui(t, e) {
|
|
594
594
|
for (var n = t, i = 0; i < e.length; i++) {
|
|
595
595
|
if (n == null)
|
|
596
596
|
return n;
|
|
@@ -598,33 +598,33 @@ function Hi(t, e) {
|
|
|
598
598
|
}
|
|
599
599
|
return n;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Cn(t, e) {
|
|
602
602
|
return function(n) {
|
|
603
603
|
var i;
|
|
604
|
-
return t.fullFields ? i =
|
|
604
|
+
return t.fullFields ? i = Ui(e, t.fullFields) : i = e[n.field || t.fullField], Hi(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
|
|
608
608
|
};
|
|
609
609
|
};
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function Nn(t, e) {
|
|
612
612
|
if (e) {
|
|
613
613
|
for (var n in e)
|
|
614
614
|
if (e.hasOwnProperty(n)) {
|
|
615
615
|
var i = e[n];
|
|
616
|
-
typeof i == "object" && typeof t[n] == "object" ? t[n] =
|
|
616
|
+
typeof i == "object" && typeof t[n] == "object" ? t[n] = ct({}, t[n], i) : t[n] = i;
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
return t;
|
|
620
620
|
}
|
|
621
|
-
var
|
|
621
|
+
var ar = function(e, n, i, r, o, a) {
|
|
622
622
|
e.required && (!i.hasOwnProperty(e.field) || je(n, a || e.type)) && r.push(We(o.messages.required, e.fullField));
|
|
623
|
-
},
|
|
623
|
+
}, Yi = function(e, n, i, r, o) {
|
|
624
624
|
(/^\s+$/.test(n) || n === "") && r.push(We(o.messages.whitespace, e.fullField));
|
|
625
|
-
},
|
|
626
|
-
if (
|
|
627
|
-
return
|
|
625
|
+
}, Bt, Fi = function() {
|
|
626
|
+
if (Bt)
|
|
627
|
+
return Bt;
|
|
628
628
|
var t = "[a-fA-F\\d:]", e = function(N) {
|
|
629
629
|
return N && N.includeBoundaries ? "(?:(?<=\\s|^)(?=" + t + ")|(?<=" + t + ")(?=\\s|$))" : "";
|
|
630
630
|
}, n = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", i = "[a-fA-F\\d]{1,4}", r = (`
|
|
@@ -647,8 +647,8 @@ var or = function(e, n, i, r, o, a) {
|
|
|
647
647
|
return C && C.exact ? c : new RegExp("" + e(C) + r + e(C), "g");
|
|
648
648
|
};
|
|
649
649
|
var f = "(?:(?:[a-z]+:)?//)", b = "(?:\\S+(?::\\S*)?@)?", m = u.v4().source, p = u.v6().source, v = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", h = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", l = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", g = "(?::\\d{2,5})?", s = '(?:[/?#][^\\s"]*)?', A = "(?:" + f + "|www\\.)" + b + "(?:localhost|" + m + "|" + p + "|" + v + h + l + ")" + g + s;
|
|
650
|
-
return
|
|
651
|
-
},
|
|
650
|
+
return Bt = new RegExp("(?:^" + A + "$)", "i"), Bt;
|
|
651
|
+
}, Tn = {
|
|
652
652
|
// http://emailregex.com/
|
|
653
653
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
654
654
|
// url: new RegExp(
|
|
@@ -656,12 +656,12 @@ var or = function(e, n, i, r, o, a) {
|
|
|
656
656
|
// 'i',
|
|
657
657
|
// ),
|
|
658
658
|
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
|
|
659
|
-
},
|
|
659
|
+
}, xt = {
|
|
660
660
|
integer: function(e) {
|
|
661
|
-
return
|
|
661
|
+
return xt.number(e) && parseInt(e, 10) === e;
|
|
662
662
|
},
|
|
663
663
|
float: function(e) {
|
|
664
|
-
return
|
|
664
|
+
return xt.number(e) && !xt.integer(e);
|
|
665
665
|
},
|
|
666
666
|
array: function(e) {
|
|
667
667
|
return Array.isArray(e);
|
|
@@ -682,35 +682,35 @@ var or = function(e, n, i, r, o, a) {
|
|
|
682
682
|
return isNaN(e) ? !1 : typeof e == "number";
|
|
683
683
|
},
|
|
684
684
|
object: function(e) {
|
|
685
|
-
return typeof e == "object" && !
|
|
685
|
+
return typeof e == "object" && !xt.array(e);
|
|
686
686
|
},
|
|
687
687
|
method: function(e) {
|
|
688
688
|
return typeof e == "function";
|
|
689
689
|
},
|
|
690
690
|
email: function(e) {
|
|
691
|
-
return typeof e == "string" && e.length <= 320 && !!e.match(
|
|
691
|
+
return typeof e == "string" && e.length <= 320 && !!e.match(Tn.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(Fi());
|
|
695
695
|
},
|
|
696
696
|
hex: function(e) {
|
|
697
|
-
return typeof e == "string" && !!e.match(
|
|
697
|
+
return typeof e == "string" && !!e.match(Tn.hex);
|
|
698
698
|
}
|
|
699
|
-
},
|
|
699
|
+
}, Ji = function(e, n, i, r, o) {
|
|
700
700
|
if (e.required && n === void 0) {
|
|
701
|
-
|
|
701
|
+
ar(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
|
-
a.indexOf(c) > -1 ?
|
|
706
|
-
},
|
|
705
|
+
a.indexOf(c) > -1 ? xt[c](n) || r.push(We(o.messages.types[c], e.fullField, e.type)) : c && typeof n !== e.type && r.push(We(o.messages.types[c], e.fullField, e.type));
|
|
706
|
+
}, Gi = function(e, n, i, r, o) {
|
|
707
707
|
var a = typeof e.len == "number", c = typeof e.min == "number", u = typeof e.max == "number", f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, b = n, m = null, p = typeof n == "number", v = typeof n == "string", h = Array.isArray(n);
|
|
708
708
|
if (p ? m = "number" : v ? m = "string" : h && (m = "array"), !m)
|
|
709
709
|
return !1;
|
|
710
710
|
h && (b = n.length), v && (b = n.replace(f, "_").length), a ? b !== e.len && r.push(We(o.messages[m].len, e.fullField, e.len)) : c && !u && b < e.min ? r.push(We(o.messages[m].min, e.fullField, e.min)) : u && !c && b > e.max ? r.push(We(o.messages[m].max, e.fullField, e.max)) : c && u && (b < e.min || b > e.max) && r.push(We(o.messages[m].range, e.fullField, e.min, e.max));
|
|
711
|
-
},
|
|
712
|
-
e[
|
|
713
|
-
},
|
|
711
|
+
}, mt = "enum", Qi = function(e, n, i, r, o) {
|
|
712
|
+
e[mt] = Array.isArray(e[mt]) ? e[mt] : [], e[mt].indexOf(n) === -1 && r.push(We(o.messages[mt], e.fullField, e[mt].join(", ")));
|
|
713
|
+
}, Zi = 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(We(o.messages.pattern.mismatch, e.fullField, n, e.pattern));
|
|
@@ -720,13 +720,13 @@ var or = function(e, n, i, r, o, a) {
|
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
722
|
}, be = {
|
|
723
|
-
required:
|
|
724
|
-
whitespace:
|
|
725
|
-
type:
|
|
726
|
-
range:
|
|
727
|
-
enum:
|
|
728
|
-
pattern:
|
|
729
|
-
},
|
|
723
|
+
required: ar,
|
|
724
|
+
whitespace: Yi,
|
|
725
|
+
type: Ji,
|
|
726
|
+
range: Gi,
|
|
727
|
+
enum: Qi,
|
|
728
|
+
pattern: Zi
|
|
729
|
+
}, Xi = 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 (je(n, "string") && !e.required)
|
|
@@ -734,7 +734,7 @@ var or = function(e, n, i, r, o, a) {
|
|
|
734
734
|
be.required(e, n, r, a, o, "string"), je(n, "string") || (be.type(e, n, r, a, o), be.range(e, n, r, a, o), be.pattern(e, n, r, a, o), e.whitespace === !0 && be.whitespace(e, n, r, a, o));
|
|
735
735
|
}
|
|
736
736
|
i(a);
|
|
737
|
-
},
|
|
737
|
+
}, Ii = 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 (je(n) && !e.required)
|
|
@@ -742,7 +742,7 @@ var or = function(e, n, i, r, o, a) {
|
|
|
742
742
|
be.required(e, n, r, a, o), n !== void 0 && be.type(e, n, r, a, o);
|
|
743
743
|
}
|
|
744
744
|
i(a);
|
|
745
|
-
},
|
|
745
|
+
}, eo = 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), je(n) && !e.required)
|
|
@@ -750,7 +750,7 @@ var or = function(e, n, i, r, o, a) {
|
|
|
750
750
|
be.required(e, n, r, a, o), n !== void 0 && (be.type(e, n, r, a, o), be.range(e, n, r, a, o));
|
|
751
751
|
}
|
|
752
752
|
i(a);
|
|
753
|
-
},
|
|
753
|
+
}, to = 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 (je(n) && !e.required)
|
|
@@ -758,7 +758,7 @@ var or = function(e, n, i, r, o, a) {
|
|
|
758
758
|
be.required(e, n, r, a, o), n !== void 0 && be.type(e, n, r, a, o);
|
|
759
759
|
}
|
|
760
760
|
i(a);
|
|
761
|
-
},
|
|
761
|
+
}, no = 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 (je(n) && !e.required)
|
|
@@ -766,7 +766,7 @@ var or = function(e, n, i, r, o, a) {
|
|
|
766
766
|
be.required(e, n, r, a, o), je(n) || be.type(e, n, r, a, o);
|
|
767
767
|
}
|
|
768
768
|
i(a);
|
|
769
|
-
},
|
|
769
|
+
}, ro = 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 (je(n) && !e.required)
|
|
@@ -774,7 +774,7 @@ var or = function(e, n, i, r, o, a) {
|
|
|
774
774
|
be.required(e, n, r, a, o), n !== void 0 && (be.type(e, n, r, a, o), be.range(e, n, r, a, o));
|
|
775
775
|
}
|
|
776
776
|
i(a);
|
|
777
|
-
},
|
|
777
|
+
}, io = 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 (je(n) && !e.required)
|
|
@@ -782,7 +782,7 @@ var or = function(e, n, i, r, o, a) {
|
|
|
782
782
|
be.required(e, n, r, a, o), n !== void 0 && (be.type(e, n, r, a, o), be.range(e, n, r, a, o));
|
|
783
783
|
}
|
|
784
784
|
i(a);
|
|
785
|
-
},
|
|
785
|
+
}, oo = 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 or = function(e, n, i, r, o, a) {
|
|
|
790
790
|
be.required(e, n, r, a, o, "array"), n != null && (be.type(e, n, r, a, o), be.range(e, n, r, a, o));
|
|
791
791
|
}
|
|
792
792
|
i(a);
|
|
793
|
-
},
|
|
793
|
+
}, ao = 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 (je(n) && !e.required)
|
|
@@ -798,15 +798,15 @@ var or = function(e, n, i, r, o, a) {
|
|
|
798
798
|
be.required(e, n, r, a, o), n !== void 0 && be.type(e, n, r, a, o);
|
|
799
799
|
}
|
|
800
800
|
i(a);
|
|
801
|
-
},
|
|
801
|
+
}, co = "enum", so = 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 (je(n) && !e.required)
|
|
805
805
|
return i();
|
|
806
|
-
be.required(e, n, r, a, o), n !== void 0 && be[
|
|
806
|
+
be.required(e, n, r, a, o), n !== void 0 && be[co](e, n, r, a, o);
|
|
807
807
|
}
|
|
808
808
|
i(a);
|
|
809
|
-
},
|
|
809
|
+
}, lo = 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 (je(n, "string") && !e.required)
|
|
@@ -814,7 +814,7 @@ var or = function(e, n, i, r, o, a) {
|
|
|
814
814
|
be.required(e, n, r, a, o), je(n, "string") || be.pattern(e, n, r, a, o);
|
|
815
815
|
}
|
|
816
816
|
i(a);
|
|
817
|
-
},
|
|
817
|
+
}, uo = 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 (je(n, "date") && !e.required)
|
|
@@ -825,10 +825,10 @@ var or = function(e, n, i, r, o, a) {
|
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
i(a);
|
|
828
|
-
},
|
|
828
|
+
}, fo = function(e, n, i, r, o) {
|
|
829
829
|
var a = [], c = Array.isArray(n) ? "array" : typeof n;
|
|
830
830
|
be.required(e, n, r, a, o, c), i(a);
|
|
831
|
-
},
|
|
831
|
+
}, Jt = function(e, n, i, r, o) {
|
|
832
832
|
var a = e.type, c = [], u = e.required || !e.required && r.hasOwnProperty(e.field);
|
|
833
833
|
if (u) {
|
|
834
834
|
if (je(n, a) && !e.required)
|
|
@@ -836,7 +836,7 @@ var or = function(e, n, i, r, o, a) {
|
|
|
836
836
|
be.required(e, n, r, c, o, a), je(n, a) || be.type(e, n, r, c, o);
|
|
837
837
|
}
|
|
838
838
|
i(c);
|
|
839
|
-
},
|
|
839
|
+
}, mo = 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 (je(n) && !e.required)
|
|
@@ -844,26 +844,26 @@ var or = function(e, n, i, r, o, a) {
|
|
|
844
844
|
be.required(e, n, r, a, o);
|
|
845
845
|
}
|
|
846
846
|
i(a);
|
|
847
|
-
},
|
|
848
|
-
string:
|
|
849
|
-
method:
|
|
850
|
-
number:
|
|
851
|
-
boolean:
|
|
852
|
-
regexp:
|
|
853
|
-
integer:
|
|
854
|
-
float:
|
|
855
|
-
array:
|
|
856
|
-
object:
|
|
857
|
-
enum:
|
|
858
|
-
pattern:
|
|
859
|
-
date:
|
|
860
|
-
url:
|
|
861
|
-
hex:
|
|
862
|
-
email:
|
|
863
|
-
required:
|
|
864
|
-
any:
|
|
847
|
+
}, Dt = {
|
|
848
|
+
string: Xi,
|
|
849
|
+
method: Ii,
|
|
850
|
+
number: eo,
|
|
851
|
+
boolean: to,
|
|
852
|
+
regexp: no,
|
|
853
|
+
integer: ro,
|
|
854
|
+
float: io,
|
|
855
|
+
array: oo,
|
|
856
|
+
object: ao,
|
|
857
|
+
enum: so,
|
|
858
|
+
pattern: lo,
|
|
859
|
+
date: uo,
|
|
860
|
+
url: Jt,
|
|
861
|
+
hex: Jt,
|
|
862
|
+
email: Jt,
|
|
863
|
+
required: fo,
|
|
864
|
+
any: mo
|
|
865
865
|
};
|
|
866
|
-
function
|
|
866
|
+
function cn() {
|
|
867
867
|
return {
|
|
868
868
|
default: "Validation error on field %s",
|
|
869
869
|
required: "%s is required",
|
|
@@ -916,9 +916,9 @@ function an() {
|
|
|
916
916
|
}
|
|
917
917
|
};
|
|
918
918
|
}
|
|
919
|
-
var
|
|
919
|
+
var sn = cn(), kt = /* @__PURE__ */ function() {
|
|
920
920
|
function t(n) {
|
|
921
|
-
this.rules = null, this._messages =
|
|
921
|
+
this.rules = null, this._messages = sn, this.define(n);
|
|
922
922
|
}
|
|
923
923
|
var e = t.prototype;
|
|
924
924
|
return e.define = function(i) {
|
|
@@ -932,7 +932,7 @@ var cn = an(), Tt = /* @__PURE__ */ function() {
|
|
|
932
932
|
r.rules[o] = Array.isArray(a) ? a : [a];
|
|
933
933
|
});
|
|
934
934
|
}, e.messages = function(i) {
|
|
935
|
-
return i && (this._messages =
|
|
935
|
+
return i && (this._messages = Nn(cn(), i)), this._messages;
|
|
936
936
|
}, e.validate = function(i, r, o) {
|
|
937
937
|
var a = this;
|
|
938
938
|
r === void 0 && (r = {}), o === void 0 && (o = function() {
|
|
@@ -951,11 +951,11 @@ var cn = an(), Tt = /* @__PURE__ */ function() {
|
|
|
951
951
|
}
|
|
952
952
|
for (var C = 0; C < l.length; C++)
|
|
953
953
|
A(l[C]);
|
|
954
|
-
g.length ? (s =
|
|
954
|
+
g.length ? (s = an(g), f(g, s)) : f(null, c);
|
|
955
955
|
}
|
|
956
956
|
if (u.messages) {
|
|
957
957
|
var m = this.messages();
|
|
958
|
-
m ===
|
|
958
|
+
m === sn && (m = cn()), Nn(m, u.messages), u.messages = m;
|
|
959
959
|
} else
|
|
960
960
|
u.messages = this.messages();
|
|
961
961
|
var p = {}, v = u.keys || Object.keys(this.rules);
|
|
@@ -963,9 +963,9 @@ var cn = an(), Tt = /* @__PURE__ */ function() {
|
|
|
963
963
|
var g = a.rules[l], s = c[l];
|
|
964
964
|
g.forEach(function(A) {
|
|
965
965
|
var C = A;
|
|
966
|
-
typeof C.transform == "function" && (c === i && (c =
|
|
966
|
+
typeof C.transform == "function" && (c === i && (c = ct({}, c)), s = c[l] = C.transform(s)), typeof C == "function" ? C = {
|
|
967
967
|
validator: C
|
|
968
|
-
} : C =
|
|
968
|
+
} : C = ct({}, C), C.validator = a.getValidationMethod(C), C.validator && (C.field = l, C.fullField = C.fullField || l, C.type = a.getType(C), p[l] = p[l] || [], p[l].push({
|
|
969
969
|
rule: C,
|
|
970
970
|
value: s,
|
|
971
971
|
source: c,
|
|
@@ -974,11 +974,11 @@ var cn = an(), Tt = /* @__PURE__ */ function() {
|
|
|
974
974
|
});
|
|
975
975
|
});
|
|
976
976
|
var h = {};
|
|
977
|
-
return
|
|
977
|
+
return Pi(p, u, function(l, g) {
|
|
978
978
|
var s = l.rule, A = (s.type === "object" || s.type === "array") && (typeof s.fields == "object" || typeof s.defaultField == "object");
|
|
979
979
|
A = A && (s.required || !s.required && l.value), s.field = l.field;
|
|
980
980
|
function C(S, x) {
|
|
981
|
-
return
|
|
981
|
+
return ct({}, x, {
|
|
982
982
|
fullField: s.fullField + "." + S,
|
|
983
983
|
fullFields: s.fullFields ? [].concat(s.fullFields, [S]) : [S]
|
|
984
984
|
});
|
|
@@ -987,18 +987,18 @@ var cn = an(), Tt = /* @__PURE__ */ function() {
|
|
|
987
987
|
S === void 0 && (S = []);
|
|
988
988
|
var x = Array.isArray(S) ? S : [S];
|
|
989
989
|
!u.suppressWarning && x.length && t.warning("async-validator:", x), x.length && s.message !== void 0 && (x = [].concat(s.message));
|
|
990
|
-
var E = x.map(
|
|
990
|
+
var E = x.map(Cn(s, c));
|
|
991
991
|
if (u.first && E.length)
|
|
992
992
|
return h[s.field] = 1, g(E);
|
|
993
993
|
if (!A)
|
|
994
994
|
g(E);
|
|
995
995
|
else {
|
|
996
996
|
if (s.required && !l.value)
|
|
997
|
-
return s.message !== void 0 ? E = [].concat(s.message).map(
|
|
997
|
+
return s.message !== void 0 ? E = [].concat(s.message).map(Cn(s, c)) : u.error && (E = [u.error(s, We(u.messages.required, s.field))]), g(E);
|
|
998
998
|
var T = {};
|
|
999
999
|
s.defaultField && Object.keys(l.value).map(function(O) {
|
|
1000
1000
|
T[O] = s.defaultField;
|
|
1001
|
-
}), T =
|
|
1001
|
+
}), T = ct({}, T, l.rule.fields);
|
|
1002
1002
|
var D = {};
|
|
1003
1003
|
Object.keys(T).forEach(function(O) {
|
|
1004
1004
|
var M = T[O], z = Array.isArray(M) ? M : [M];
|
|
@@ -1033,25 +1033,25 @@ var cn = an(), Tt = /* @__PURE__ */ function() {
|
|
|
1033
1033
|
b(l);
|
|
1034
1034
|
}, c);
|
|
1035
1035
|
}, e.getType = function(i) {
|
|
1036
|
-
if (i.type === void 0 && i.pattern instanceof RegExp && (i.type = "pattern"), typeof i.validator != "function" && i.type && !
|
|
1036
|
+
if (i.type === void 0 && i.pattern instanceof RegExp && (i.type = "pattern"), typeof i.validator != "function" && i.type && !Dt.hasOwnProperty(i.type))
|
|
1037
1037
|
throw new Error(We("Unknown rule type %s", i.type));
|
|
1038
1038
|
return i.type || "string";
|
|
1039
1039
|
}, e.getValidationMethod = function(i) {
|
|
1040
1040
|
if (typeof i.validator == "function")
|
|
1041
1041
|
return i.validator;
|
|
1042
1042
|
var r = Object.keys(i), o = r.indexOf("message");
|
|
1043
|
-
return o !== -1 && r.splice(o, 1), r.length === 1 && r[0] === "required" ?
|
|
1043
|
+
return o !== -1 && r.splice(o, 1), r.length === 1 && r[0] === "required" ? Dt.required : Dt[this.getType(i)] || void 0;
|
|
1044
1044
|
}, t;
|
|
1045
1045
|
}();
|
|
1046
|
-
|
|
1046
|
+
kt.register = function(e, n) {
|
|
1047
1047
|
if (typeof n != "function")
|
|
1048
1048
|
throw new Error("Cannot register a validator by type, validator is not a function");
|
|
1049
|
-
|
|
1049
|
+
Dt[e] = n;
|
|
1050
1050
|
};
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
function
|
|
1051
|
+
kt.warning = or;
|
|
1052
|
+
kt.messages = sn;
|
|
1053
|
+
kt.validators = Dt;
|
|
1054
|
+
function ho(t) {
|
|
1055
1055
|
if (!t || typeof t != "string") return null;
|
|
1056
1056
|
try {
|
|
1057
1057
|
let e = t.trim();
|
|
@@ -1060,24 +1060,24 @@ function mo(t) {
|
|
|
1060
1060
|
return null;
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function cr(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 = ho(n.pattern);
|
|
1068
1068
|
i ? n.pattern = i : delete n.pattern;
|
|
1069
1069
|
}
|
|
1070
1070
|
return n;
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
|
-
const
|
|
1074
|
-
function
|
|
1073
|
+
const kn = "_v";
|
|
1074
|
+
function sr(t, e, n, i) {
|
|
1075
1075
|
if (!(t != null && t.length)) {
|
|
1076
1076
|
n();
|
|
1077
1077
|
return;
|
|
1078
1078
|
}
|
|
1079
|
-
const r = { [
|
|
1080
|
-
new
|
|
1079
|
+
const r = { [kn]: t };
|
|
1080
|
+
new kt(r).validate({ [kn]: e }, { first: !0 }).then(() => {
|
|
1081
1081
|
n();
|
|
1082
1082
|
}).catch(({ errors: a }) => {
|
|
1083
1083
|
i(a || []);
|
|
@@ -1085,7 +1085,7 @@ function cr(t, e, n, i) {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
function ze(t) {
|
|
1087
1087
|
const { rules: e, dataSet: n, dataSetField: i, sessionId: r, id: o, develop: a } = t, c = k((w) => w.setValidateResult), u = k((w) => w.getProps), f = k((w) => w.setProps), b = d(
|
|
1088
|
-
() =>
|
|
1088
|
+
() => At(r, n),
|
|
1089
1089
|
[r, n]
|
|
1090
1090
|
), m = k(
|
|
1091
1091
|
(w) => {
|
|
@@ -1119,8 +1119,8 @@ function ze(t) {
|
|
|
1119
1119
|
[r, n, i, o, c, u, f]
|
|
1120
1120
|
), A = L(
|
|
1121
1121
|
(w) => {
|
|
1122
|
-
const S =
|
|
1123
|
-
|
|
1122
|
+
const S = cr(e || []);
|
|
1123
|
+
sr(
|
|
1124
1124
|
S,
|
|
1125
1125
|
w,
|
|
1126
1126
|
() => s(""),
|
|
@@ -1138,24 +1138,24 @@ function ze(t) {
|
|
|
1138
1138
|
A(w);
|
|
1139
1139
|
}, [g, h, i, v, A]), { validate: A, help: C, validateStatus: N };
|
|
1140
1140
|
}
|
|
1141
|
-
const
|
|
1141
|
+
const yo = ["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) ?? yo, 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];
|
|
1147
1147
|
a != null && (r[o] = a);
|
|
1148
1148
|
}), r;
|
|
1149
1149
|
}
|
|
1150
|
-
const
|
|
1151
|
-
function
|
|
1150
|
+
const lt = si(null);
|
|
1151
|
+
function Kt(t) {
|
|
1152
1152
|
return typeof t == "string" && t.trim() !== "";
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1155
|
-
const i =
|
|
1154
|
+
function _t(t, e, n) {
|
|
1155
|
+
const i = Tt(lt);
|
|
1156
1156
|
return d(() => {
|
|
1157
1157
|
const r = n ?? (i == null ? void 0 : i.sessionId);
|
|
1158
|
-
if (
|
|
1158
|
+
if (Kt(t))
|
|
1159
1159
|
return {
|
|
1160
1160
|
dataSet: t,
|
|
1161
1161
|
dataSetField: e,
|
|
@@ -1168,7 +1168,7 @@ function kt(t, e, n) {
|
|
|
1168
1168
|
sessionId: r
|
|
1169
1169
|
};
|
|
1170
1170
|
const o = i.index, a = i.dataSet, c = i.dataSetFieldRoot;
|
|
1171
|
-
if (
|
|
1171
|
+
if (Kt(e)) {
|
|
1172
1172
|
const u = e.trim();
|
|
1173
1173
|
if (u.startsWith("["))
|
|
1174
1174
|
return {
|
|
@@ -1176,7 +1176,7 @@ function kt(t, e, n) {
|
|
|
1176
1176
|
dataSetField: u,
|
|
1177
1177
|
sessionId: r
|
|
1178
1178
|
};
|
|
1179
|
-
if (
|
|
1179
|
+
if (Kt(c))
|
|
1180
1180
|
return {
|
|
1181
1181
|
dataSet: a,
|
|
1182
1182
|
dataSetField: `${c}[${o}].${u}`,
|
|
@@ -1189,7 +1189,7 @@ function kt(t, e, n) {
|
|
|
1189
1189
|
sessionId: r
|
|
1190
1190
|
};
|
|
1191
1191
|
}
|
|
1192
|
-
return
|
|
1192
|
+
return Kt(c) ? {
|
|
1193
1193
|
dataSet: a,
|
|
1194
1194
|
dataSetField: `${c}[${o}]`,
|
|
1195
1195
|
sessionId: r
|
|
@@ -1200,21 +1200,21 @@ function kt(t, e, n) {
|
|
|
1200
1200
|
};
|
|
1201
1201
|
}, [i, t, e, n]);
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function go(t, e) {
|
|
1204
1204
|
return t === e ? !0 : String(t ?? "") === String(e ?? "");
|
|
1205
1205
|
}
|
|
1206
1206
|
function Qe(t, e) {
|
|
1207
1207
|
if (Array.isArray(t))
|
|
1208
|
-
return t.find((n) =>
|
|
1208
|
+
return t.find((n) => go(n.value, e));
|
|
1209
1209
|
}
|
|
1210
1210
|
let Pe = {};
|
|
1211
|
-
function
|
|
1211
|
+
function Mc(t) {
|
|
1212
1212
|
Pe = { ...Pe, ...t };
|
|
1213
1213
|
}
|
|
1214
1214
|
function Ue() {
|
|
1215
1215
|
return Pe;
|
|
1216
1216
|
}
|
|
1217
|
-
async function
|
|
1217
|
+
async function st(t) {
|
|
1218
1218
|
if (Pe.request) {
|
|
1219
1219
|
const e = {
|
|
1220
1220
|
...t,
|
|
@@ -1226,45 +1226,45 @@ async function ct(t) {
|
|
|
1226
1226
|
"Request handler not configured. Please call setCoreConfig() first."
|
|
1227
1227
|
);
|
|
1228
1228
|
}
|
|
1229
|
-
async function
|
|
1229
|
+
async function lr(t, e) {
|
|
1230
1230
|
if (Pe.upload)
|
|
1231
1231
|
return Pe.upload(t, e);
|
|
1232
1232
|
throw new Error(
|
|
1233
1233
|
"Upload handler not configured. Please call setCoreConfig() first."
|
|
1234
1234
|
);
|
|
1235
1235
|
}
|
|
1236
|
-
async function
|
|
1236
|
+
async function mn(t) {
|
|
1237
1237
|
return Pe.getDictOptions ? Pe.getDictOptions(t) : (console.warn(
|
|
1238
1238
|
"Dict service not configured. Please call setCoreConfig() with getDictOptions."
|
|
1239
1239
|
), []);
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function ln() {
|
|
1242
1242
|
return Pe.getAccessToken ? Pe.getAccessToken() : null;
|
|
1243
1243
|
}
|
|
1244
|
-
const
|
|
1245
|
-
post: (t, e, n) =>
|
|
1246
|
-
get: (t, e, n) =>
|
|
1244
|
+
const $c = {
|
|
1245
|
+
post: (t, e, n) => st({ url: t, data: e, method: "POST", ...n }),
|
|
1246
|
+
get: (t, e, n) => st({ url: t, params: e, method: "GET", ...n })
|
|
1247
1247
|
};
|
|
1248
|
-
function
|
|
1248
|
+
function po() {
|
|
1249
1249
|
const t = Ue(), e = L(
|
|
1250
1250
|
async (u, f) => {
|
|
1251
1251
|
const b = typeof u == "string" ? { url: u, ...f } : u;
|
|
1252
|
-
return
|
|
1252
|
+
return st(b);
|
|
1253
1253
|
},
|
|
1254
1254
|
[]
|
|
1255
1255
|
), n = L(
|
|
1256
|
-
async (u, f, b) =>
|
|
1256
|
+
async (u, f, b) => st({ url: u, params: f, method: "GET", ...b }),
|
|
1257
1257
|
[]
|
|
1258
1258
|
), i = L(
|
|
1259
|
-
async (u, f, b) =>
|
|
1259
|
+
async (u, f, b) => st({ url: u, data: f, method: "POST", ...b }),
|
|
1260
1260
|
[]
|
|
1261
1261
|
), r = L(
|
|
1262
|
-
async (u) =>
|
|
1262
|
+
async (u) => mn(u),
|
|
1263
1263
|
[]
|
|
1264
1264
|
), o = L(
|
|
1265
|
-
async (u, f) =>
|
|
1265
|
+
async (u, f) => lr(u, f),
|
|
1266
1266
|
[]
|
|
1267
|
-
), a = L(() =>
|
|
1267
|
+
), a = L(() => ln(), []), c = L(() => !!t.request, [t.request]);
|
|
1268
1268
|
return {
|
|
1269
1269
|
request: e,
|
|
1270
1270
|
get: n,
|
|
@@ -1276,7 +1276,7 @@ function go() {
|
|
|
1276
1276
|
baseURL: t.baseURL
|
|
1277
1277
|
};
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function Et(t) {
|
|
1280
1280
|
const [e, n] = ve([]), [i, r] = ve(!1), [o, a] = ve(null);
|
|
1281
1281
|
return Ae(() => {
|
|
1282
1282
|
if (!t) {
|
|
@@ -1284,7 +1284,7 @@ function _t(t) {
|
|
|
1284
1284
|
return;
|
|
1285
1285
|
}
|
|
1286
1286
|
let c = !1;
|
|
1287
|
-
return r(!0), a(null),
|
|
1287
|
+
return r(!0), a(null), mn(t).then((u) => {
|
|
1288
1288
|
c || n(u);
|
|
1289
1289
|
}).catch((u) => {
|
|
1290
1290
|
c || (a(u), console.error(`Failed to load dict: ${t}`, u));
|
|
@@ -1295,7 +1295,7 @@ function _t(t) {
|
|
|
1295
1295
|
};
|
|
1296
1296
|
}, [t]), { options: e, loading: i, error: o };
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function hn(t, e) {
|
|
1299
1299
|
const [n, i] = ve([]), [r, o] = ve(!1), [a, c] = ve(null), {
|
|
1300
1300
|
labelKey: u = "label",
|
|
1301
1301
|
valueKey: f = "value",
|
|
@@ -1315,7 +1315,7 @@ function mn(t, e) {
|
|
|
1315
1315
|
if (t) {
|
|
1316
1316
|
o(!0), c(null);
|
|
1317
1317
|
try {
|
|
1318
|
-
const g = await
|
|
1318
|
+
const g = await st({
|
|
1319
1319
|
url: t,
|
|
1320
1320
|
method: "GET",
|
|
1321
1321
|
...v != null && Object.keys(v).length > 0 ? { params: v } : {}
|
|
@@ -1333,11 +1333,11 @@ function mn(t, e) {
|
|
|
1333
1333
|
b && t && l();
|
|
1334
1334
|
}, [b, t, l]), { options: n, loading: r, error: a, reload: l };
|
|
1335
1335
|
}
|
|
1336
|
-
const
|
|
1336
|
+
const bt = (t) => {
|
|
1337
1337
|
if (t == null || t === "") return 0;
|
|
1338
1338
|
const e = Number(t);
|
|
1339
1339
|
return isNaN(e) || !isFinite(e) ? 0 : e;
|
|
1340
|
-
}, $e = (t) => t == null ? "" : String(t),
|
|
1340
|
+
}, $e = (t) => t == null ? "" : String(t), Wt = (t) => {
|
|
1341
1341
|
if (t == null) return null;
|
|
1342
1342
|
let e;
|
|
1343
1343
|
if (t instanceof Date)
|
|
@@ -1349,9 +1349,9 @@ const vt = (t) => {
|
|
|
1349
1349
|
} else
|
|
1350
1350
|
e = new Date(t);
|
|
1351
1351
|
return isNaN(e.getTime()) ? null : e;
|
|
1352
|
-
},
|
|
1352
|
+
}, vo = (t, e = "CNY", n = {}) => {
|
|
1353
1353
|
try {
|
|
1354
|
-
const i =
|
|
1354
|
+
const i = bt(t), r = /^[A-Z]{3}$/.test(e) ? e : "CNY";
|
|
1355
1355
|
return new Intl.NumberFormat("zh-CN", {
|
|
1356
1356
|
style: "currency",
|
|
1357
1357
|
currency: r,
|
|
@@ -1360,9 +1360,9 @@ const vt = (t) => {
|
|
|
1360
1360
|
} catch {
|
|
1361
1361
|
return "";
|
|
1362
1362
|
}
|
|
1363
|
-
},
|
|
1363
|
+
}, bo = (t, e = {}) => {
|
|
1364
1364
|
try {
|
|
1365
|
-
const n =
|
|
1365
|
+
const n = bt(t);
|
|
1366
1366
|
return new Intl.NumberFormat("zh-CN", {
|
|
1367
1367
|
minimumFractionDigits: 0,
|
|
1368
1368
|
maximumFractionDigits: 2,
|
|
@@ -1371,9 +1371,9 @@ const vt = (t) => {
|
|
|
1371
1371
|
} catch {
|
|
1372
1372
|
return "";
|
|
1373
1373
|
}
|
|
1374
|
-
},
|
|
1374
|
+
}, So = (t, e = 2) => {
|
|
1375
1375
|
try {
|
|
1376
|
-
const n =
|
|
1376
|
+
const n = bt(t), i = Math.max(0, Math.min(20, Math.floor(e)));
|
|
1377
1377
|
return new Intl.NumberFormat("zh-CN", {
|
|
1378
1378
|
style: "percent",
|
|
1379
1379
|
minimumFractionDigits: i,
|
|
@@ -1382,9 +1382,9 @@ const vt = (t) => {
|
|
|
1382
1382
|
} catch {
|
|
1383
1383
|
return "";
|
|
1384
1384
|
}
|
|
1385
|
-
},
|
|
1385
|
+
}, wo = (t, e = "compact") => {
|
|
1386
1386
|
try {
|
|
1387
|
-
const n =
|
|
1387
|
+
const n = bt(t);
|
|
1388
1388
|
return new Intl.NumberFormat("zh-CN", {
|
|
1389
1389
|
notation: e,
|
|
1390
1390
|
compactDisplay: "short"
|
|
@@ -1392,9 +1392,9 @@ const vt = (t) => {
|
|
|
1392
1392
|
} catch {
|
|
1393
1393
|
return "";
|
|
1394
1394
|
}
|
|
1395
|
-
},
|
|
1395
|
+
}, xo = (t, e = {}) => {
|
|
1396
1396
|
try {
|
|
1397
|
-
const n =
|
|
1397
|
+
const n = Wt(t);
|
|
1398
1398
|
return n ? new Intl.DateTimeFormat("zh-CN", {
|
|
1399
1399
|
year: "numeric",
|
|
1400
1400
|
month: "2-digit",
|
|
@@ -1404,36 +1404,36 @@ const vt = (t) => {
|
|
|
1404
1404
|
} catch {
|
|
1405
1405
|
return "";
|
|
1406
1406
|
}
|
|
1407
|
-
},
|
|
1407
|
+
}, ur = (t, e = "YYYY-MM-DD") => {
|
|
1408
1408
|
try {
|
|
1409
|
-
const n =
|
|
1409
|
+
const n = Wt(t);
|
|
1410
1410
|
if (!n) return "";
|
|
1411
1411
|
const i = n.getFullYear(), r = String(n.getMonth() + 1).padStart(2, "0"), o = String(n.getDate()).padStart(2, "0"), a = String(n.getHours()).padStart(2, "0"), c = String(n.getMinutes()).padStart(2, "0"), u = String(n.getSeconds()).padStart(2, "0");
|
|
1412
1412
|
return e.replace("YYYY", String(i)).replace("MM", r).replace("DD", o).replace("HH", a).replace("mm", c).replace("ss", u);
|
|
1413
1413
|
} catch {
|
|
1414
1414
|
return "";
|
|
1415
1415
|
}
|
|
1416
|
-
},
|
|
1416
|
+
}, Ao = (t, e = "YYYY-MM-DD HH:mm:ss") => ur(t, e), Do = (t) => {
|
|
1417
1417
|
try {
|
|
1418
|
-
const e =
|
|
1418
|
+
const e = Wt(t);
|
|
1419
1419
|
if (!e) return "";
|
|
1420
1420
|
const i = (/* @__PURE__ */ new Date()).getTime() - e.getTime(), r = Math.floor(i / 1e3), o = Math.floor(r / 60), a = Math.floor(o / 60), c = Math.floor(a / 24), u = Math.floor(c / 30), f = Math.floor(c / 365);
|
|
1421
1421
|
return r < 60 ? "刚刚" : o < 60 ? `${o}分钟前` : a < 24 ? `${a}小时前` : c < 30 ? `${c}天前` : u < 12 ? `${u}个月前` : `${f}年前`;
|
|
1422
1422
|
} catch {
|
|
1423
1423
|
return "";
|
|
1424
1424
|
}
|
|
1425
|
-
},
|
|
1425
|
+
}, Co = (t) => {
|
|
1426
1426
|
try {
|
|
1427
|
-
const e = Math.floor(
|
|
1427
|
+
const e = Math.floor(bt(t));
|
|
1428
1428
|
if (e < 0 || e > 31536e3) return "";
|
|
1429
1429
|
const n = Math.floor(e / 3600), i = Math.floor(e % 3600 / 60), r = e % 60, o = [];
|
|
1430
1430
|
return n > 0 && o.push(`${n}小时`), i > 0 && o.push(`${i}分钟`), (r > 0 || o.length === 0) && o.push(`${r}秒`), o.join("");
|
|
1431
1431
|
} catch {
|
|
1432
1432
|
return "";
|
|
1433
1433
|
}
|
|
1434
|
-
},
|
|
1434
|
+
}, No = (t) => {
|
|
1435
1435
|
try {
|
|
1436
|
-
const e =
|
|
1436
|
+
const e = Wt(t);
|
|
1437
1437
|
if (!e) return "";
|
|
1438
1438
|
const n = /* @__PURE__ */ new Date();
|
|
1439
1439
|
if (e > n) return "";
|
|
@@ -1443,9 +1443,9 @@ const vt = (t) => {
|
|
|
1443
1443
|
} catch {
|
|
1444
1444
|
return "";
|
|
1445
1445
|
}
|
|
1446
|
-
},
|
|
1446
|
+
}, To = (t, e = 2, n = !0) => {
|
|
1447
1447
|
try {
|
|
1448
|
-
const i =
|
|
1448
|
+
const i = bt(t);
|
|
1449
1449
|
if (i < 0 || i > Number.MAX_SAFE_INTEGER) return "";
|
|
1450
1450
|
if (i === 0) return "0 B";
|
|
1451
1451
|
const r = Math.max(0, Math.min(10, Math.floor(e))), o = n ? 1024 : 1e3, a = n ? ["B", "KiB", "MiB", "GiB", "TiB", "PiB"] : ["B", "KB", "MB", "GB", "TB", "PB"], c = Math.min(
|
|
@@ -1456,21 +1456,21 @@ const vt = (t) => {
|
|
|
1456
1456
|
} catch {
|
|
1457
1457
|
return "";
|
|
1458
1458
|
}
|
|
1459
|
-
},
|
|
1459
|
+
}, ko = (t, e = "CN") => {
|
|
1460
1460
|
try {
|
|
1461
1461
|
const n = $e(t).replace(/\D/g, "");
|
|
1462
1462
|
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") : $e(t) : "";
|
|
1463
1463
|
} catch {
|
|
1464
1464
|
return "";
|
|
1465
1465
|
}
|
|
1466
|
-
},
|
|
1466
|
+
}, _o = (t) => {
|
|
1467
1467
|
try {
|
|
1468
1468
|
const e = $e(t).replace(/\D/g, "");
|
|
1469
1469
|
return e.length === 11 ? e.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : $e(t);
|
|
1470
1470
|
} catch {
|
|
1471
1471
|
return "";
|
|
1472
1472
|
}
|
|
1473
|
-
},
|
|
1473
|
+
}, Eo = (t) => {
|
|
1474
1474
|
try {
|
|
1475
1475
|
const e = $e(t);
|
|
1476
1476
|
if (!e || !e.includes("@")) return "";
|
|
@@ -1479,14 +1479,14 @@ const vt = (t) => {
|
|
|
1479
1479
|
} catch {
|
|
1480
1480
|
return "";
|
|
1481
1481
|
}
|
|
1482
|
-
},
|
|
1482
|
+
}, Oo = (t, e = !0) => {
|
|
1483
1483
|
try {
|
|
1484
1484
|
const n = $e(t).replace(/\s/g, "");
|
|
1485
1485
|
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") : "";
|
|
1486
1486
|
} catch {
|
|
1487
1487
|
return "";
|
|
1488
1488
|
}
|
|
1489
|
-
},
|
|
1489
|
+
}, Mo = (t, e = !0) => {
|
|
1490
1490
|
try {
|
|
1491
1491
|
const n = $e(t).replace(/\s/g, "");
|
|
1492
1492
|
if (!/^\d{13,19}$/.test(n)) return "";
|
|
@@ -1498,34 +1498,34 @@ const vt = (t) => {
|
|
|
1498
1498
|
} catch {
|
|
1499
1499
|
return "";
|
|
1500
1500
|
}
|
|
1501
|
-
},
|
|
1501
|
+
}, $o = (t) => {
|
|
1502
1502
|
try {
|
|
1503
1503
|
const e = $e(t);
|
|
1504
1504
|
return e.length <= 1 ? e : e.length === 2 ? e[0] + "*" : e[0] + "*".repeat(e.length - 2) + e[e.length - 1];
|
|
1505
1505
|
} catch {
|
|
1506
1506
|
return "";
|
|
1507
1507
|
}
|
|
1508
|
-
},
|
|
1508
|
+
}, Ro = (t, e = 50, n = "...") => {
|
|
1509
1509
|
try {
|
|
1510
1510
|
const i = $e(t), r = Math.max(1, Math.min(1e3, Math.floor(e)));
|
|
1511
1511
|
return i.length <= r ? i : i.slice(0, r) + n;
|
|
1512
1512
|
} catch {
|
|
1513
1513
|
return "";
|
|
1514
1514
|
}
|
|
1515
|
-
},
|
|
1515
|
+
}, jo = (t) => {
|
|
1516
1516
|
try {
|
|
1517
1517
|
const e = $e(t);
|
|
1518
1518
|
return e ? e.charAt(0).toUpperCase() + e.slice(1).toLowerCase() : "";
|
|
1519
1519
|
} catch {
|
|
1520
1520
|
return "";
|
|
1521
1521
|
}
|
|
1522
|
-
},
|
|
1522
|
+
}, Bo = (t, e = ", ") => {
|
|
1523
1523
|
try {
|
|
1524
1524
|
return Array.isArray(t) ? t.join(e) : $e(t);
|
|
1525
1525
|
} catch {
|
|
1526
1526
|
return "";
|
|
1527
1527
|
}
|
|
1528
|
-
},
|
|
1528
|
+
}, Ko = (t) => ({
|
|
1529
1529
|
0: "女",
|
|
1530
1530
|
1: "男",
|
|
1531
1531
|
2: "未知",
|
|
@@ -1535,73 +1535,73 @@ const vt = (t) => {
|
|
|
1535
1535
|
f: "女",
|
|
1536
1536
|
M: "男",
|
|
1537
1537
|
F: "女"
|
|
1538
|
-
})[$e(t)] || $e(t),
|
|
1538
|
+
})[$e(t)] || $e(t), Lo = (t, e) => e ? e[$e(t)] || $e(t) : {
|
|
1539
1539
|
0: "禁用",
|
|
1540
1540
|
1: "启用",
|
|
1541
1541
|
true: "是",
|
|
1542
1542
|
false: "否"
|
|
1543
|
-
}[$e(t)] || $e(t),
|
|
1543
|
+
}[$e(t)] || $e(t), zo = (t) => {
|
|
1544
1544
|
try {
|
|
1545
1545
|
return $e(t).replace(/<[^>]*>/g, "");
|
|
1546
1546
|
} catch {
|
|
1547
1547
|
return "";
|
|
1548
1548
|
}
|
|
1549
1549
|
};
|
|
1550
|
-
function
|
|
1550
|
+
function Vo(t, e, n = {}) {
|
|
1551
1551
|
if (!e || t === void 0 || t === null)
|
|
1552
1552
|
return $e(t);
|
|
1553
1553
|
switch (e) {
|
|
1554
1554
|
case "currency":
|
|
1555
|
-
return
|
|
1555
|
+
return vo(t, n.currency, n);
|
|
1556
1556
|
case "number":
|
|
1557
|
-
return
|
|
1557
|
+
return bo(t, n);
|
|
1558
1558
|
case "percent":
|
|
1559
|
-
return
|
|
1559
|
+
return So(t, n.precision);
|
|
1560
1560
|
case "compact":
|
|
1561
|
-
return
|
|
1561
|
+
return wo(t, n.notation);
|
|
1562
1562
|
case "timestamp":
|
|
1563
|
-
return
|
|
1563
|
+
return Ao(t, n.pattern);
|
|
1564
1564
|
case "date":
|
|
1565
|
-
return
|
|
1565
|
+
return xo(t, n);
|
|
1566
1566
|
case "dateCustom":
|
|
1567
|
-
return
|
|
1567
|
+
return ur(t, n.pattern);
|
|
1568
1568
|
case "relativeTime":
|
|
1569
|
-
return Ao(t);
|
|
1570
|
-
case "duration":
|
|
1571
1569
|
return Do(t);
|
|
1572
|
-
case "
|
|
1570
|
+
case "duration":
|
|
1573
1571
|
return Co(t);
|
|
1572
|
+
case "age":
|
|
1573
|
+
return No(t);
|
|
1574
1574
|
case "fileSize":
|
|
1575
|
-
return
|
|
1575
|
+
return To(t, n.precision, n.binary);
|
|
1576
1576
|
case "phone":
|
|
1577
|
-
return
|
|
1577
|
+
return ko(t, n.country);
|
|
1578
1578
|
case "phoneMask":
|
|
1579
|
-
return ko(t);
|
|
1580
|
-
case "emailMask":
|
|
1581
1579
|
return _o(t);
|
|
1580
|
+
case "emailMask":
|
|
1581
|
+
return Eo(t);
|
|
1582
1582
|
case "idCard":
|
|
1583
|
-
return Eo(t, n.mask);
|
|
1584
|
-
case "bankCard":
|
|
1585
1583
|
return Oo(t, n.mask);
|
|
1584
|
+
case "bankCard":
|
|
1585
|
+
return Mo(t, n.mask);
|
|
1586
1586
|
case "usernameMask":
|
|
1587
|
-
return
|
|
1587
|
+
return $o(t);
|
|
1588
1588
|
case "truncate":
|
|
1589
|
-
return
|
|
1589
|
+
return Ro(t, n.maxLength, n.suffix);
|
|
1590
1590
|
case "capitalize":
|
|
1591
|
-
return
|
|
1591
|
+
return jo(t);
|
|
1592
1592
|
case "array":
|
|
1593
|
-
return
|
|
1593
|
+
return Bo(t, n.delimiter);
|
|
1594
1594
|
case "gender":
|
|
1595
|
-
return
|
|
1595
|
+
return Ko(t);
|
|
1596
1596
|
case "status":
|
|
1597
|
-
return
|
|
1597
|
+
return Lo(t, n.statusMap);
|
|
1598
1598
|
case "stripHtml":
|
|
1599
|
-
return
|
|
1599
|
+
return zo(t);
|
|
1600
1600
|
default:
|
|
1601
1601
|
return $e(t);
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
1604
|
-
const
|
|
1604
|
+
const Pt = {
|
|
1605
1605
|
// 基础颜色
|
|
1606
1606
|
colorPrimary: "colorPrimary",
|
|
1607
1607
|
colorSuccess: "colorSuccess",
|
|
@@ -1632,7 +1632,7 @@ const Wt = {
|
|
|
1632
1632
|
colorLink: "colorLink",
|
|
1633
1633
|
colorLinkHover: "colorLinkHover",
|
|
1634
1634
|
colorLinkActive: "colorLinkActive"
|
|
1635
|
-
},
|
|
1635
|
+
}, Rc = Object.keys(Pt), jc = [
|
|
1636
1636
|
{ label: "主色", value: "colorPrimary" },
|
|
1637
1637
|
{ label: "成功", value: "colorSuccess" },
|
|
1638
1638
|
{ label: "警告", value: "colorWarning" },
|
|
@@ -1642,29 +1642,29 @@ const Wt = {
|
|
|
1642
1642
|
{ label: "次级文本", value: "colorTextSecondary" },
|
|
1643
1643
|
{ label: "链接", value: "colorLink" }
|
|
1644
1644
|
];
|
|
1645
|
-
function
|
|
1646
|
-
return
|
|
1645
|
+
function fr(t) {
|
|
1646
|
+
return Pt.hasOwnProperty(t);
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1649
|
-
const { token: e } =
|
|
1648
|
+
function Ht(t) {
|
|
1649
|
+
const { token: e } = tt.useToken();
|
|
1650
1650
|
if (t) {
|
|
1651
|
-
if (
|
|
1652
|
-
const n =
|
|
1651
|
+
if (fr(t)) {
|
|
1652
|
+
const n = Pt[t];
|
|
1653
1653
|
return e[n] || t;
|
|
1654
1654
|
}
|
|
1655
1655
|
return t;
|
|
1656
1656
|
}
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function Bc(t, e) {
|
|
1659
1659
|
if (t) {
|
|
1660
|
-
if (
|
|
1661
|
-
const n =
|
|
1660
|
+
if (fr(t)) {
|
|
1661
|
+
const n = Pt[t];
|
|
1662
1662
|
return e[n] || t;
|
|
1663
1663
|
}
|
|
1664
1664
|
return t;
|
|
1665
1665
|
}
|
|
1666
1666
|
}
|
|
1667
|
-
const
|
|
1667
|
+
const Kc = ({
|
|
1668
1668
|
id: t,
|
|
1669
1669
|
text: e,
|
|
1670
1670
|
tooltip: n,
|
|
@@ -1680,7 +1680,7 @@ const Bc = ({
|
|
|
1680
1680
|
token: p,
|
|
1681
1681
|
...v
|
|
1682
1682
|
}) => {
|
|
1683
|
-
const h = k((K) => K.addCommand), l =
|
|
1683
|
+
const h = k((K) => K.addCommand), l = Tt(lt), g = f ?? (l == null ? void 0 : l.index), s = k(
|
|
1684
1684
|
(K) => {
|
|
1685
1685
|
var B;
|
|
1686
1686
|
return o && t ? (B = K.propsStore[`${o}_props`]) == null ? void 0 : B[t] : null;
|
|
@@ -1700,7 +1700,7 @@ const Bc = ({
|
|
|
1700
1700
|
return;
|
|
1701
1701
|
}
|
|
1702
1702
|
if (r && o) {
|
|
1703
|
-
const { actionName: B, arg: R } =
|
|
1703
|
+
const { actionName: B, arg: R } = ji(r, {
|
|
1704
1704
|
id: t,
|
|
1705
1705
|
index: g,
|
|
1706
1706
|
dataSet: b,
|
|
@@ -1739,7 +1739,7 @@ const Bc = ({
|
|
|
1739
1739
|
token: M,
|
|
1740
1740
|
...z
|
|
1741
1741
|
} = A, q = D || T, W = !!(z != null && z.block), $ = /* @__PURE__ */ y(
|
|
1742
|
-
|
|
1742
|
+
nt,
|
|
1743
1743
|
{
|
|
1744
1744
|
...z,
|
|
1745
1745
|
iconPlacement: q,
|
|
@@ -1747,24 +1747,27 @@ const Bc = ({
|
|
|
1747
1747
|
onClick: N,
|
|
1748
1748
|
children: w || u
|
|
1749
1749
|
}
|
|
1750
|
-
), j = S ? /* @__PURE__ */ y(
|
|
1750
|
+
), j = S ? /* @__PURE__ */ y(Wn, { title: S, children: /* @__PURE__ */ y("span", { style: { display: W ? "block" : "inline-block", width: W ? "100%" : void 0 }, children: $ }) }) : $;
|
|
1751
1751
|
return E ? /* @__PURE__ */ y(Ke, { theme: E, children: j }) : j;
|
|
1752
|
+
}, Ze = {
|
|
1753
|
+
whiteSpace: "nowrap",
|
|
1754
|
+
flex: "none"
|
|
1752
1755
|
};
|
|
1753
|
-
function
|
|
1756
|
+
function qo(t) {
|
|
1754
1757
|
const e = typeof t == "string" ? t.trim() : "";
|
|
1755
1758
|
if (!e) return;
|
|
1756
1759
|
const n = Ye[e];
|
|
1757
1760
|
if (n)
|
|
1758
1761
|
return Le.createElement(n);
|
|
1759
1762
|
}
|
|
1760
|
-
function
|
|
1763
|
+
function Xe({
|
|
1761
1764
|
iconName: t,
|
|
1762
1765
|
label: e
|
|
1763
1766
|
}) {
|
|
1764
1767
|
const n = typeof t == "string" ? t.trim() : "", i = e == null ? "" : typeof e == "string" ? e.trim() : String(e).trim();
|
|
1765
1768
|
return n ? {
|
|
1766
1769
|
iconConfigured: !0,
|
|
1767
|
-
iconNode:
|
|
1770
|
+
iconNode: qo(n) ?? n,
|
|
1768
1771
|
labelText: i || void 0
|
|
1769
1772
|
} : {
|
|
1770
1773
|
iconConfigured: !1,
|
|
@@ -1772,25 +1775,25 @@ function Ze({
|
|
|
1772
1775
|
labelText: i || void 0
|
|
1773
1776
|
};
|
|
1774
1777
|
}
|
|
1775
|
-
const
|
|
1776
|
-
function
|
|
1778
|
+
const Wo = ["value", "validateStatus", "help"], Po = 200;
|
|
1779
|
+
function Ho(t) {
|
|
1777
1780
|
if (!t) return;
|
|
1778
1781
|
const e = {};
|
|
1779
1782
|
return Object.entries(t).forEach(([n, i]) => {
|
|
1780
1783
|
i !== "" && i !== void 0 && i !== null && (e[n] = i);
|
|
1781
1784
|
}), Object.keys(e).length > 0 ? e : void 0;
|
|
1782
1785
|
}
|
|
1783
|
-
function
|
|
1786
|
+
function Uo(t, e, n) {
|
|
1784
1787
|
const i = { ...t };
|
|
1785
1788
|
if (e && typeof e == "object" && Object.keys(e).forEach((r) => {
|
|
1786
|
-
!
|
|
1789
|
+
!Wo.includes(r) && e[r] !== void 0 && e[r] !== null && (i[r] = e[r]);
|
|
1787
1790
|
}), n.develop) {
|
|
1788
1791
|
const r = i.disabled;
|
|
1789
1792
|
i.disabled = !1, i.readOnly = !0, r && (i.className = `${i.className || ""} ant-input-disabled`.trim());
|
|
1790
1793
|
}
|
|
1791
1794
|
return i;
|
|
1792
1795
|
}
|
|
1793
|
-
const
|
|
1796
|
+
const dr = (t) => {
|
|
1794
1797
|
const {
|
|
1795
1798
|
id: e,
|
|
1796
1799
|
sessionId: n,
|
|
@@ -1812,7 +1815,7 @@ const fr = (t) => {
|
|
|
1812
1815
|
clearAction: A,
|
|
1813
1816
|
bordered: C,
|
|
1814
1817
|
...N
|
|
1815
|
-
} = t, w =
|
|
1818
|
+
} = t, w = _t(r, o, n), S = w.dataSet, x = w.dataSetField, E = w.sessionId, T = Me(""), D = Me(null), _ = k((U) => U.addCommand), O = k((U) => U.getDataSet), M = k((U) => U.setDataSet), z = k((U) => U.getProps), q = k((U) => U.setProps), W = k((U) => U.setValidateResult), $ = d(
|
|
1816
1819
|
() => re(E, S),
|
|
1817
1820
|
[E, S]
|
|
1818
1821
|
), j = k(
|
|
@@ -1821,7 +1824,7 @@ const fr = (t) => {
|
|
|
1821
1824
|
return E && e ? ((J = U.propsStore[`${E}_props`]) == null ? void 0 : J[e]) ?? null : null;
|
|
1822
1825
|
}
|
|
1823
1826
|
), K = d(
|
|
1824
|
-
() =>
|
|
1827
|
+
() => At(E, S),
|
|
1825
1828
|
[E, S]
|
|
1826
1829
|
), B = k(
|
|
1827
1830
|
(U) => {
|
|
@@ -1839,7 +1842,7 @@ const fr = (t) => {
|
|
|
1839
1842
|
return P ? (J = U.dataSets[P]) == null ? void 0 : J.validate : void 0;
|
|
1840
1843
|
}
|
|
1841
1844
|
), F = d(() => R !== void 0 ? R : (j == null ? void 0 : j.value) !== void 0 ? j.value : f, [R, j == null ? void 0 : j.value, f]), H = d(
|
|
1842
|
-
() =>
|
|
1845
|
+
() => Uo(N, j ?? null, { develop: i }),
|
|
1843
1846
|
[N, j, i]
|
|
1844
1847
|
), {
|
|
1845
1848
|
prefixIconNode: ee,
|
|
@@ -1854,10 +1857,10 @@ const fr = (t) => {
|
|
|
1854
1857
|
addonBefore: Y,
|
|
1855
1858
|
addonAfter: se,
|
|
1856
1859
|
...he
|
|
1857
|
-
} = U, Se =
|
|
1860
|
+
} = U, Se = Xe({
|
|
1858
1861
|
iconName: J == null ? void 0 : String(J),
|
|
1859
1862
|
label: V == null ? void 0 : String(V)
|
|
1860
|
-
}), xe =
|
|
1863
|
+
}), xe = Xe({
|
|
1861
1864
|
iconName: ue == null ? void 0 : String(ue),
|
|
1862
1865
|
label: ce == null ? void 0 : String(ce)
|
|
1863
1866
|
});
|
|
@@ -1896,8 +1899,8 @@ const fr = (t) => {
|
|
|
1896
1899
|
]
|
|
1897
1900
|
), ne = L(
|
|
1898
1901
|
(U) => {
|
|
1899
|
-
const J =
|
|
1900
|
-
|
|
1902
|
+
const J = cr(p || []);
|
|
1903
|
+
sr(
|
|
1901
1904
|
J,
|
|
1902
1905
|
U,
|
|
1903
1906
|
() => X(""),
|
|
@@ -1926,7 +1929,7 @@ const fr = (t) => {
|
|
|
1926
1929
|
}
|
|
1927
1930
|
v && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
|
|
1928
1931
|
D.current = null, ne(J);
|
|
1929
|
-
},
|
|
1932
|
+
}, Po));
|
|
1930
1933
|
},
|
|
1931
1934
|
[
|
|
1932
1935
|
u,
|
|
@@ -2015,14 +2018,14 @@ const fr = (t) => {
|
|
|
2015
2018
|
const U = String(O($, x) ?? "");
|
|
2016
2019
|
ne(U);
|
|
2017
2020
|
}, [G, $, x, O, ne]);
|
|
2018
|
-
const Re = d(() =>
|
|
2021
|
+
const Re = d(() => Ho(m), [m]), we = d(
|
|
2019
2022
|
() => Re ? { components: { Input: Re } } : void 0,
|
|
2020
2023
|
[Re]
|
|
2021
|
-
), Oe = i ? void 0 : E && S && x ? B : (j == null ? void 0 : j.help) ?? "", Be = !i && Oe ? "error" : void 0, pe = /* @__PURE__ */ le(
|
|
2024
|
+
), Oe = i ? void 0 : E && S && x ? B : (j == null ? void 0 : j.help) ?? "", Be = !i && Oe ? "error" : void 0, pe = /* @__PURE__ */ le(pt, { children: [
|
|
2022
2025
|
/* @__PURE__ */ le(Ce.Compact, { style: { width: "100%" }, children: [
|
|
2023
|
-
de ? /* @__PURE__ */ y(Ce.Addon, { children: de }) : null,
|
|
2026
|
+
de ? /* @__PURE__ */ y(Ce.Addon, { style: Ze, children: de }) : null,
|
|
2024
2027
|
/* @__PURE__ */ y(
|
|
2025
|
-
|
|
2028
|
+
qt,
|
|
2026
2029
|
{
|
|
2027
2030
|
...te,
|
|
2028
2031
|
prefix: ee,
|
|
@@ -2036,14 +2039,14 @@ const fr = (t) => {
|
|
|
2036
2039
|
styles: b
|
|
2037
2040
|
}
|
|
2038
2041
|
),
|
|
2039
|
-
me ? /* @__PURE__ */ y(Ce.Addon, { children: me }) : null
|
|
2042
|
+
me ? /* @__PURE__ */ y(Ce.Addon, { style: Ze, children: me }) : null
|
|
2040
2043
|
] }),
|
|
2041
2044
|
Oe && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: Oe })
|
|
2042
2045
|
] });
|
|
2043
2046
|
return we ? /* @__PURE__ */ y(Ke, { theme: we, children: pe }) : pe;
|
|
2044
2047
|
};
|
|
2045
|
-
|
|
2046
|
-
const
|
|
2048
|
+
dr.displayName = "AndInput";
|
|
2049
|
+
const Lc = Le.memo(dr), _n = 200, zc = ({
|
|
2047
2050
|
id: t,
|
|
2048
2051
|
sessionId: e,
|
|
2049
2052
|
develop: n,
|
|
@@ -2092,7 +2095,7 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2092
2095
|
}
|
|
2093
2096
|
N && r && A(N, r, te), c && (C.current && clearTimeout(C.current), C.current = setTimeout(() => {
|
|
2094
2097
|
C.current = null, x(te);
|
|
2095
|
-
},
|
|
2098
|
+
}, _n)), D(u, "change", te);
|
|
2096
2099
|
},
|
|
2097
2100
|
[v, N, r, A, c, x, u, D]
|
|
2098
2101
|
), O = L(() => {
|
|
@@ -2129,7 +2132,7 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2129
2132
|
}
|
|
2130
2133
|
if (N && r && A(N, r, null), c && (C.current && clearTimeout(C.current), C.current = setTimeout(() => {
|
|
2131
2134
|
C.current = null, x(null);
|
|
2132
|
-
},
|
|
2135
|
+
}, _n)), D(u, "change", null), b && e) {
|
|
2133
2136
|
const { actionName: te, arg: X } = De(b, null, {
|
|
2134
2137
|
id: t,
|
|
2135
2138
|
dataSet: i,
|
|
@@ -2177,13 +2180,13 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2177
2180
|
style: R,
|
|
2178
2181
|
...P
|
|
2179
2182
|
} = W, G = d(
|
|
2180
|
-
() =>
|
|
2183
|
+
() => Xe({
|
|
2181
2184
|
iconName: $ != null ? String($) : void 0,
|
|
2182
2185
|
label: K != null ? String(K) : void 0
|
|
2183
2186
|
}),
|
|
2184
2187
|
[$, K]
|
|
2185
2188
|
), F = d(
|
|
2186
|
-
() =>
|
|
2189
|
+
() => Xe({
|
|
2187
2190
|
iconName: j != null ? String(j) : void 0,
|
|
2188
2191
|
label: B != null ? String(B) : void 0
|
|
2189
2192
|
}),
|
|
@@ -2200,24 +2203,24 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2200
2203
|
onClick: (ne) => {
|
|
2201
2204
|
ne.stopPropagation(), z();
|
|
2202
2205
|
},
|
|
2203
|
-
children: /* @__PURE__ */ y(
|
|
2206
|
+
children: /* @__PURE__ */ y(fi, {})
|
|
2204
2207
|
}
|
|
2205
2208
|
);
|
|
2206
|
-
return ee == null || ee === !1 ? X : /* @__PURE__ */ le(
|
|
2209
|
+
return ee == null || ee === !1 ? X : /* @__PURE__ */ le(pt, { children: [
|
|
2207
2210
|
ee,
|
|
2208
2211
|
X
|
|
2209
2212
|
] });
|
|
2210
2213
|
}, [m, T, ee, z]);
|
|
2211
2214
|
return /* @__PURE__ */ le("div", { style: { width: "100%" }, children: [
|
|
2212
2215
|
/* @__PURE__ */ le(Ce.Compact, { style: { width: "100%" }, children: [
|
|
2213
|
-
oe ? /* @__PURE__ */ y(Ce.Addon, { children: oe }) : null,
|
|
2216
|
+
oe ? /* @__PURE__ */ y(Ce.Addon, { style: Ze, children: oe }) : null,
|
|
2214
2217
|
/* @__PURE__ */ y(
|
|
2215
|
-
|
|
2218
|
+
Pn,
|
|
2216
2219
|
{
|
|
2217
2220
|
...P,
|
|
2218
2221
|
disabled: n ? !1 : P.disabled,
|
|
2219
2222
|
readOnly: n ? !0 : P.readOnly,
|
|
2220
|
-
className:
|
|
2223
|
+
className: bi(P.className, {
|
|
2221
2224
|
"ant-input-number-disabled": n && P.disabled
|
|
2222
2225
|
}),
|
|
2223
2226
|
prefix: H,
|
|
@@ -2231,11 +2234,11 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2231
2234
|
style: { width: "100%", ...R }
|
|
2232
2235
|
}
|
|
2233
2236
|
),
|
|
2234
|
-
de ? /* @__PURE__ */ y(Ce.Addon, { children: de }) : null
|
|
2237
|
+
de ? /* @__PURE__ */ y(Ce.Addon, { style: Ze, children: de }) : null
|
|
2235
2238
|
] }),
|
|
2236
2239
|
E && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: E })
|
|
2237
2240
|
] });
|
|
2238
|
-
}, { TextArea:
|
|
2241
|
+
}, { TextArea: En } = qt, Yo = 200, Vc = ({
|
|
2239
2242
|
id: t,
|
|
2240
2243
|
sessionId: e,
|
|
2241
2244
|
develop: n,
|
|
@@ -2252,7 +2255,7 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2252
2255
|
defaultValue: v,
|
|
2253
2256
|
...h
|
|
2254
2257
|
}) => {
|
|
2255
|
-
const l =
|
|
2258
|
+
const l = _t(i, r, e), g = l.dataSet, s = l.dataSetField, A = l.sessionId, C = k((G) => G.addCommand), N = k((G) => G.setDataSet), w = Me(null), S = d(
|
|
2256
2259
|
() => re(A, g),
|
|
2257
2260
|
[A, g]
|
|
2258
2261
|
), x = k(
|
|
@@ -2279,10 +2282,10 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2279
2282
|
addonBefore: ee,
|
|
2280
2283
|
addonAfter: oe,
|
|
2281
2284
|
...de
|
|
2282
|
-
} = G, me =
|
|
2285
|
+
} = G, me = Xe({
|
|
2283
2286
|
iconName: F == null ? void 0 : String(F),
|
|
2284
2287
|
label: ee == null ? void 0 : String(ee)
|
|
2285
|
-
}), te =
|
|
2288
|
+
}), te = Xe({
|
|
2286
2289
|
iconName: H == null ? void 0 : String(H),
|
|
2287
2290
|
label: oe == null ? void 0 : String(oe)
|
|
2288
2291
|
});
|
|
@@ -2308,7 +2311,7 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2308
2311
|
}
|
|
2309
2312
|
c && (w.current && clearTimeout(w.current), w.current = setTimeout(() => {
|
|
2310
2313
|
w.current = null, T(F);
|
|
2311
|
-
},
|
|
2314
|
+
}, Yo));
|
|
2312
2315
|
},
|
|
2313
2316
|
[
|
|
2314
2317
|
m,
|
|
@@ -2393,15 +2396,15 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2393
2396
|
...W ? { flex: 1, minWidth: 0 } : {}
|
|
2394
2397
|
}
|
|
2395
2398
|
}, P = W ? /* @__PURE__ */ le(Ce.Compact, { style: { width: "100%", display: "flex" }, children: [
|
|
2396
|
-
M != null && M !== !1 ? /* @__PURE__ */ y(Ce.Addon, { children: M }) : null,
|
|
2397
|
-
/* @__PURE__ */ y(
|
|
2398
|
-
z != null && z !== !1 ? /* @__PURE__ */ y(Ce.Addon, { children: z }) : null
|
|
2399
|
-
] }) : /* @__PURE__ */ y(
|
|
2399
|
+
M != null && M !== !1 ? /* @__PURE__ */ y(Ce.Addon, { style: Ze, children: M }) : null,
|
|
2400
|
+
/* @__PURE__ */ y(En, { ...R }),
|
|
2401
|
+
z != null && z !== !1 ? /* @__PURE__ */ y(Ce.Addon, { style: Ze, children: z }) : null
|
|
2402
|
+
] }) : /* @__PURE__ */ y(En, { ...R });
|
|
2400
2403
|
return /* @__PURE__ */ le("div", { style: { width: "100%" }, children: [
|
|
2401
2404
|
P,
|
|
2402
2405
|
D && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
|
|
2403
2406
|
] });
|
|
2404
|
-
}, { Password:
|
|
2407
|
+
}, { Password: Fo } = qt, Jo = 200, qc = ({
|
|
2405
2408
|
id: t,
|
|
2406
2409
|
sessionId: e,
|
|
2407
2410
|
develop: n,
|
|
@@ -2445,10 +2448,10 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2445
2448
|
addonBefore: R,
|
|
2446
2449
|
addonAfter: P,
|
|
2447
2450
|
...G
|
|
2448
|
-
} = j, F =
|
|
2451
|
+
} = j, F = Xe({
|
|
2449
2452
|
iconName: K == null ? void 0 : String(K),
|
|
2450
2453
|
label: R == null ? void 0 : String(R)
|
|
2451
|
-
}), H =
|
|
2454
|
+
}), H = Xe({
|
|
2452
2455
|
iconName: B == null ? void 0 : String(B),
|
|
2453
2456
|
label: P == null ? void 0 : String(P)
|
|
2454
2457
|
});
|
|
@@ -2476,7 +2479,7 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2476
2479
|
}
|
|
2477
2480
|
c && (s.current && clearTimeout(s.current), s.current = setTimeout(() => {
|
|
2478
2481
|
s.current = null, w(K);
|
|
2479
|
-
},
|
|
2482
|
+
}, Jo));
|
|
2480
2483
|
},
|
|
2481
2484
|
[
|
|
2482
2485
|
m,
|
|
@@ -2540,9 +2543,9 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2540
2543
|
[]
|
|
2541
2544
|
), /* @__PURE__ */ le("div", { style: { width: "100%" }, children: [
|
|
2542
2545
|
/* @__PURE__ */ le(Ce.Compact, { style: { width: "100%" }, children: [
|
|
2543
|
-
_ ? /* @__PURE__ */ y(Ce.Addon, { children: _ }) : null,
|
|
2546
|
+
_ ? /* @__PURE__ */ y(Ce.Addon, { style: Ze, children: _ }) : null,
|
|
2544
2547
|
/* @__PURE__ */ y(
|
|
2545
|
-
|
|
2548
|
+
Fo,
|
|
2546
2549
|
{
|
|
2547
2550
|
...M,
|
|
2548
2551
|
prefix: T,
|
|
@@ -2556,11 +2559,11 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2556
2559
|
status: S ? "error" : void 0
|
|
2557
2560
|
}
|
|
2558
2561
|
),
|
|
2559
|
-
O ? /* @__PURE__ */ y(Ce.Addon, { children: O }) : null
|
|
2562
|
+
O ? /* @__PURE__ */ y(Ce.Addon, { style: Ze, children: O }) : null
|
|
2560
2563
|
] }),
|
|
2561
2564
|
S && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: S })
|
|
2562
2565
|
] });
|
|
2563
|
-
}, { Search:
|
|
2566
|
+
}, { Search: Go } = qt, Wc = ({
|
|
2564
2567
|
id: t,
|
|
2565
2568
|
sessionId: e,
|
|
2566
2569
|
develop: n,
|
|
@@ -2594,10 +2597,10 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2594
2597
|
addonBefore: z,
|
|
2595
2598
|
addonAfter: q,
|
|
2596
2599
|
...W
|
|
2597
|
-
} = _, $ =
|
|
2600
|
+
} = _, $ = Xe({
|
|
2598
2601
|
iconName: O == null ? void 0 : String(O),
|
|
2599
2602
|
label: z == null ? void 0 : String(z)
|
|
2600
|
-
}), j =
|
|
2603
|
+
}), j = Xe({
|
|
2601
2604
|
iconName: M == null ? void 0 : String(M),
|
|
2602
2605
|
label: q == null ? void 0 : String(q)
|
|
2603
2606
|
});
|
|
@@ -2636,9 +2639,9 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2636
2639
|
[u, a, e, p]
|
|
2637
2640
|
);
|
|
2638
2641
|
return /* @__PURE__ */ le(Ce.Compact, { style: { width: "100%" }, children: [
|
|
2639
|
-
S ? /* @__PURE__ */ y(Ce.Addon, { children: S }) : null,
|
|
2642
|
+
S ? /* @__PURE__ */ y(Ce.Addon, { style: Ze, children: S }) : null,
|
|
2640
2643
|
/* @__PURE__ */ y(
|
|
2641
|
-
|
|
2644
|
+
Go,
|
|
2642
2645
|
{
|
|
2643
2646
|
...E,
|
|
2644
2647
|
prefix: N,
|
|
@@ -2649,10 +2652,10 @@ const Kc = Le.memo(fr), kn = 200, Lc = ({
|
|
|
2649
2652
|
onSearch: D
|
|
2650
2653
|
}
|
|
2651
2654
|
),
|
|
2652
|
-
x ? /* @__PURE__ */ y(Ce.Addon, { children: x }) : null
|
|
2655
|
+
x ? /* @__PURE__ */ y(Ce.Addon, { style: Ze, children: x }) : null
|
|
2653
2656
|
] });
|
|
2654
|
-
},
|
|
2655
|
-
function
|
|
2657
|
+
}, Qo = 200, Zo = "_selected";
|
|
2658
|
+
function ht(t) {
|
|
2656
2659
|
var e;
|
|
2657
2660
|
if (t == null) return "";
|
|
2658
2661
|
if (typeof t == "string" || typeof t == "number" || typeof t == "boolean")
|
|
@@ -2660,26 +2663,26 @@ function mt(t) {
|
|
|
2660
2663
|
if (Le.isValidElement(t)) {
|
|
2661
2664
|
const n = (e = t.props) == null ? void 0 : e.children;
|
|
2662
2665
|
if (typeof n == "string" || typeof n == "number") return String(n);
|
|
2663
|
-
if (Array.isArray(n)) return n.map(
|
|
2666
|
+
if (Array.isArray(n)) return n.map(ht).join("");
|
|
2664
2667
|
}
|
|
2665
2668
|
return String(t);
|
|
2666
2669
|
}
|
|
2667
|
-
function
|
|
2670
|
+
function Xo(t, e) {
|
|
2668
2671
|
if (t === e || t == null && e == null) return !0;
|
|
2669
2672
|
if (t == null || e == null) return !1;
|
|
2670
2673
|
const n = t.key, i = e.key, r = t.label, o = e.label;
|
|
2671
2674
|
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;
|
|
2672
2675
|
}
|
|
2673
|
-
function
|
|
2676
|
+
function On(t, e, n, i, r) {
|
|
2674
2677
|
var f;
|
|
2675
2678
|
if (!(r === "multiple" || r === "tags" || Array.isArray(t))) {
|
|
2676
2679
|
if (t == null || t === "")
|
|
2677
2680
|
return null;
|
|
2678
2681
|
if (i && t && typeof t == "object" && !Array.isArray(t) && "value" in t) {
|
|
2679
2682
|
const v = t;
|
|
2680
|
-
return { key: v.value, label:
|
|
2683
|
+
return { key: v.value, label: ht(v.label) };
|
|
2681
2684
|
}
|
|
2682
|
-
const b = e && !Array.isArray(e) ? e : Qe(n, t), m = (b == null ? void 0 : b.label) ?? (b == null ? void 0 : b.children), p =
|
|
2685
|
+
const b = e && !Array.isArray(e) ? e : Qe(n, t), m = (b == null ? void 0 : b.label) ?? (b == null ? void 0 : b.children), p = ht(
|
|
2683
2686
|
m ?? ((f = Qe(n, t)) == null ? void 0 : f.label) ?? String(t)
|
|
2684
2687
|
);
|
|
2685
2688
|
return { key: t, label: p };
|
|
@@ -2688,18 +2691,18 @@ function En(t, e, n, i, r) {
|
|
|
2688
2691
|
return null;
|
|
2689
2692
|
if (i && t[0] && typeof t[0] == "object" && t[0] !== null && "value" in t[0]) {
|
|
2690
2693
|
const b = t.map((p) => p.value), m = t.map(
|
|
2691
|
-
(p) =>
|
|
2694
|
+
(p) => ht(p.label)
|
|
2692
2695
|
);
|
|
2693
2696
|
return { key: b, label: m };
|
|
2694
2697
|
}
|
|
2695
2698
|
const a = Array.isArray(e) ? e : [], c = t, u = c.map((b, m) => {
|
|
2696
2699
|
var h;
|
|
2697
2700
|
const p = a[m], v = (p == null ? void 0 : p.label) ?? (p == null ? void 0 : p.children);
|
|
2698
|
-
return v != null ?
|
|
2701
|
+
return v != null ? ht(v) : ht(((h = Qe(n, b)) == null ? void 0 : h.label) ?? String(b));
|
|
2699
2702
|
});
|
|
2700
2703
|
return { key: c, label: u };
|
|
2701
2704
|
}
|
|
2702
|
-
const
|
|
2705
|
+
const Pc = ({
|
|
2703
2706
|
id: t,
|
|
2704
2707
|
sessionId: e,
|
|
2705
2708
|
develop: n,
|
|
@@ -2726,7 +2729,7 @@ const Wc = ({
|
|
|
2726
2729
|
dropdownMatchSelectWidth: x,
|
|
2727
2730
|
...E
|
|
2728
2731
|
}) => {
|
|
2729
|
-
const T = k((ie) => ie.addCommand), D = k((ie) => ie.setDataSet), _ = Me(null), O =
|
|
2732
|
+
const T = k((ie) => ie.addCommand), D = k((ie) => ie.setDataSet), _ = Me(null), O = Tt(lt), M = d(
|
|
2730
2733
|
() => re(e, i),
|
|
2731
2734
|
[e, i]
|
|
2732
2735
|
), z = g ?? (O == null ? void 0 : O.index), q = k(
|
|
@@ -2739,9 +2742,9 @@ const Wc = ({
|
|
|
2739
2742
|
), $ = d(
|
|
2740
2743
|
() => (q == null ? void 0 : q.optionsCfg) != null ? q.optionsCfg : c,
|
|
2741
2744
|
[q == null ? void 0 : q.optionsCfg, c]
|
|
2742
|
-
), { options: j, loading: K } =
|
|
2745
|
+
), { options: j, loading: K } = Et(
|
|
2743
2746
|
S || (o ? a : void 0)
|
|
2744
|
-
), { options: B, loading: R } =
|
|
2747
|
+
), { options: B, loading: R } = hn(
|
|
2745
2748
|
$ == null ? void 0 : $.url,
|
|
2746
2749
|
{
|
|
2747
2750
|
valueKey: ($ == null ? void 0 : $.codeKey) || "value",
|
|
@@ -2769,7 +2772,7 @@ const Wc = ({
|
|
|
2769
2772
|
});
|
|
2770
2773
|
const ie = Qe(oe, H);
|
|
2771
2774
|
return (ie == null ? void 0 : ie.value) ?? H;
|
|
2772
|
-
}, [H, oe]), me = r ? `${r}${
|
|
2775
|
+
}, [H, oe]), me = r ? `${r}${Zo}` : "", te = L(
|
|
2773
2776
|
(ie, ge) => {
|
|
2774
2777
|
if (p) {
|
|
2775
2778
|
p(ie, ge);
|
|
@@ -2777,7 +2780,7 @@ const Wc = ({
|
|
|
2777
2780
|
}
|
|
2778
2781
|
if (M && r) {
|
|
2779
2782
|
D(M, r, ie);
|
|
2780
|
-
const ae =
|
|
2783
|
+
const ae = On(
|
|
2781
2784
|
ie,
|
|
2782
2785
|
ge,
|
|
2783
2786
|
oe,
|
|
@@ -2788,7 +2791,7 @@ const Wc = ({
|
|
|
2788
2791
|
}
|
|
2789
2792
|
if (b && (_.current && clearTimeout(_.current), _.current = setTimeout(() => {
|
|
2790
2793
|
_.current = null, G(ie);
|
|
2791
|
-
},
|
|
2794
|
+
}, Qo)), m && e) {
|
|
2792
2795
|
const { actionName: ae, arg: Ee } = De(m, ie, {
|
|
2793
2796
|
id: t,
|
|
2794
2797
|
dataSet: i,
|
|
@@ -2818,14 +2821,14 @@ const Wc = ({
|
|
|
2818
2821
|
);
|
|
2819
2822
|
Ae(() => {
|
|
2820
2823
|
if (p || !M || !r || !me) return;
|
|
2821
|
-
const ie =
|
|
2824
|
+
const ie = On(
|
|
2822
2825
|
H,
|
|
2823
2826
|
void 0,
|
|
2824
2827
|
oe,
|
|
2825
2828
|
ee.labelInValue,
|
|
2826
2829
|
ee.mode
|
|
2827
2830
|
), ge = k.getState().getDataSet(M, me);
|
|
2828
|
-
|
|
2831
|
+
Xo(ge, ie) || D(M, me, ie);
|
|
2829
2832
|
}, [
|
|
2830
2833
|
p,
|
|
2831
2834
|
M,
|
|
@@ -2849,7 +2852,7 @@ const Wc = ({
|
|
|
2849
2852
|
const ne = L((ie, ge) => ((ge == null ? void 0 : ge.label) ?? "").toLowerCase().includes(ie.toLowerCase()), []);
|
|
2850
2853
|
return /* @__PURE__ */ le("div", { style: { width: "100%" }, children: [
|
|
2851
2854
|
/* @__PURE__ */ y(
|
|
2852
|
-
|
|
2855
|
+
Hn,
|
|
2853
2856
|
{
|
|
2854
2857
|
...ee,
|
|
2855
2858
|
disabled: n ? !1 : ee.disabled,
|
|
@@ -2866,7 +2869,7 @@ const Wc = ({
|
|
|
2866
2869
|
),
|
|
2867
2870
|
F && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: F })
|
|
2868
2871
|
] });
|
|
2869
|
-
},
|
|
2872
|
+
}, Hc = ({
|
|
2870
2873
|
id: t,
|
|
2871
2874
|
sessionId: e,
|
|
2872
2875
|
develop: n,
|
|
@@ -2930,7 +2933,7 @@ const Wc = ({
|
|
|
2930
2933
|
}, [a, A, N]);
|
|
2931
2934
|
return /* @__PURE__ */ le("div", { style: { display: "inline-block" }, onBlur: S, children: [
|
|
2932
2935
|
/* @__PURE__ */ y(
|
|
2933
|
-
|
|
2936
|
+
Tr,
|
|
2934
2937
|
{
|
|
2935
2938
|
...p,
|
|
2936
2939
|
disabled: n ? !1 : p.disabled,
|
|
@@ -2940,7 +2943,7 @@ const Wc = ({
|
|
|
2940
2943
|
),
|
|
2941
2944
|
C && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: C })
|
|
2942
2945
|
] });
|
|
2943
|
-
},
|
|
2946
|
+
}, Uc = ({
|
|
2944
2947
|
id: t,
|
|
2945
2948
|
sessionId: e,
|
|
2946
2949
|
develop: n,
|
|
@@ -3019,7 +3022,7 @@ const Wc = ({
|
|
|
3019
3022
|
);
|
|
3020
3023
|
return /* @__PURE__ */ le("div", { onBlur: E, style: { display: "flex" }, children: [
|
|
3021
3024
|
/* @__PURE__ */ y(
|
|
3022
|
-
|
|
3025
|
+
Un,
|
|
3023
3026
|
{
|
|
3024
3027
|
...T,
|
|
3025
3028
|
disabled: n ? !1 : T.disabled,
|
|
@@ -3031,7 +3034,7 @@ const Wc = ({
|
|
|
3031
3034
|
),
|
|
3032
3035
|
N && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
|
|
3033
3036
|
] });
|
|
3034
|
-
},
|
|
3037
|
+
}, Yc = ({
|
|
3035
3038
|
id: t,
|
|
3036
3039
|
sessionId: e,
|
|
3037
3040
|
develop: n,
|
|
@@ -3080,9 +3083,9 @@ const Wc = ({
|
|
|
3080
3083
|
}, [c, s, r, g, m, C, o, e, t, h]), E = L(() => {
|
|
3081
3084
|
p && C(S ? S.format(a) : "");
|
|
3082
3085
|
}, [p, C, S, a]), T = N ? "error" : void 0;
|
|
3083
|
-
return /* @__PURE__ */ le(
|
|
3086
|
+
return /* @__PURE__ */ le(pt, { children: [
|
|
3084
3087
|
/* @__PURE__ */ y(
|
|
3085
|
-
|
|
3088
|
+
kr,
|
|
3086
3089
|
{
|
|
3087
3090
|
...v,
|
|
3088
3091
|
disabled: n ? !1 : v.disabled,
|
|
@@ -3096,7 +3099,7 @@ const Wc = ({
|
|
|
3096
3099
|
),
|
|
3097
3100
|
N && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: N })
|
|
3098
3101
|
] });
|
|
3099
|
-
}, { RangePicker:
|
|
3102
|
+
}, { RangePicker: Io } = Un, Fc = ({
|
|
3100
3103
|
id: t,
|
|
3101
3104
|
sessionId: e,
|
|
3102
3105
|
develop: n,
|
|
@@ -3161,7 +3164,7 @@ const Wc = ({
|
|
|
3161
3164
|
}, [u, C, S, a]);
|
|
3162
3165
|
return /* @__PURE__ */ le("div", { onBlur: T, children: [
|
|
3163
3166
|
/* @__PURE__ */ y(
|
|
3164
|
-
|
|
3167
|
+
Io,
|
|
3165
3168
|
{
|
|
3166
3169
|
...x,
|
|
3167
3170
|
disabled: n ? !1 : x.disabled,
|
|
@@ -3173,7 +3176,7 @@ const Wc = ({
|
|
|
3173
3176
|
),
|
|
3174
3177
|
N && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
|
|
3175
3178
|
] });
|
|
3176
|
-
},
|
|
3179
|
+
}, Jc = ({
|
|
3177
3180
|
id: t,
|
|
3178
3181
|
sessionId: e,
|
|
3179
3182
|
develop: n,
|
|
@@ -3212,7 +3215,7 @@ const Wc = ({
|
|
|
3212
3215
|
sessionId: e,
|
|
3213
3216
|
id: t,
|
|
3214
3217
|
develop: n
|
|
3215
|
-
}), _ = d(() => E !== void 0 ? E : (x == null ? void 0 : x.value) !== void 0 ? x.value : h ?? l, [E, x == null ? void 0 : x.value, h, l]), { options: O } =
|
|
3218
|
+
}), _ = d(() => E !== void 0 ? E : (x == null ? void 0 : x.value) !== void 0 ? x.value : h ?? l, [E, x == null ? void 0 : x.value, h, l]), { options: O } = Et(g), { options: M } = hn(
|
|
3216
3219
|
a == null ? void 0 : a.url,
|
|
3217
3220
|
{
|
|
3218
3221
|
valueKey: (a == null ? void 0 : a.codeKey) || "value",
|
|
@@ -3259,7 +3262,7 @@ const Wc = ({
|
|
|
3259
3262
|
}, [m, T, q]);
|
|
3260
3263
|
return /* @__PURE__ */ le("div", { onBlur: j, children: [
|
|
3261
3264
|
/* @__PURE__ */ y(
|
|
3262
|
-
|
|
3265
|
+
Yt.Group,
|
|
3263
3266
|
{
|
|
3264
3267
|
...W,
|
|
3265
3268
|
disabled: n ? !1 : W.disabled,
|
|
@@ -3267,19 +3270,19 @@ const Wc = ({
|
|
|
3267
3270
|
onChange: $,
|
|
3268
3271
|
buttonStyle: (x == null ? void 0 : x.buttonStyle) ?? u,
|
|
3269
3272
|
optionType: (x == null ? void 0 : x.optionType) ?? f,
|
|
3270
|
-
children: f === "button" ? z.map((K) => /* @__PURE__ */ y(
|
|
3273
|
+
children: f === "button" ? z.map((K) => /* @__PURE__ */ y(Yt.Button, { value: K.value, disabled: K.disabled, children: K.label }, K.value)) : /* @__PURE__ */ y(
|
|
3271
3274
|
Ce,
|
|
3272
3275
|
{
|
|
3273
3276
|
orientation: (x == null ? void 0 : x.direction) ?? s ?? "horizontal",
|
|
3274
3277
|
wrap: !0,
|
|
3275
|
-
children: z.map((K) => /* @__PURE__ */ y(
|
|
3278
|
+
children: z.map((K) => /* @__PURE__ */ y(Yt, { value: K.value, disabled: K.disabled, children: K.label }, K.value))
|
|
3276
3279
|
}
|
|
3277
3280
|
)
|
|
3278
3281
|
}
|
|
3279
3282
|
),
|
|
3280
3283
|
D && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
|
|
3281
3284
|
] });
|
|
3282
|
-
},
|
|
3285
|
+
}, Gc = ({
|
|
3283
3286
|
id: t,
|
|
3284
3287
|
sessionId: e,
|
|
3285
3288
|
develop: n,
|
|
@@ -3321,7 +3324,7 @@ const Wc = ({
|
|
|
3321
3324
|
sessionId: e,
|
|
3322
3325
|
id: t,
|
|
3323
3326
|
develop: n
|
|
3324
|
-
}), { options: M } =
|
|
3327
|
+
}), { options: M } = Et(A), { options: z } = hn(
|
|
3325
3328
|
a == null ? void 0 : a.url,
|
|
3326
3329
|
{
|
|
3327
3330
|
valueKey: (a == null ? void 0 : a.codeKey) || "value",
|
|
@@ -3366,12 +3369,12 @@ const Wc = ({
|
|
|
3366
3369
|
if (c && W.length > 0) {
|
|
3367
3370
|
const { indeterminate: F, direction: H, ...ee } = j;
|
|
3368
3371
|
return /* @__PURE__ */ le("div", { onBlur: G, children: [
|
|
3369
|
-
/* @__PURE__ */ y(
|
|
3372
|
+
/* @__PURE__ */ y(gt.Group, { ...ee, value: $, onChange: P, disabled: n ? !1 : j.disabled, children: /* @__PURE__ */ y(
|
|
3370
3373
|
Ce,
|
|
3371
3374
|
{
|
|
3372
3375
|
orientation: B,
|
|
3373
3376
|
wrap: !0,
|
|
3374
|
-
children: W.map((oe) => /* @__PURE__ */ y(
|
|
3377
|
+
children: W.map((oe) => /* @__PURE__ */ y(gt, { value: oe.value, disabled: oe.disabled, children: oe.label }, oe.value))
|
|
3375
3378
|
}
|
|
3376
3379
|
) }),
|
|
3377
3380
|
O && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: O })
|
|
@@ -3379,7 +3382,7 @@ const Wc = ({
|
|
|
3379
3382
|
}
|
|
3380
3383
|
return /* @__PURE__ */ le("div", { onBlur: G, children: [
|
|
3381
3384
|
/* @__PURE__ */ y(
|
|
3382
|
-
|
|
3385
|
+
gt,
|
|
3383
3386
|
{
|
|
3384
3387
|
...j,
|
|
3385
3388
|
disabled: n ? !1 : j.disabled,
|
|
@@ -3390,7 +3393,7 @@ const Wc = ({
|
|
|
3390
3393
|
),
|
|
3391
3394
|
O && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: O })
|
|
3392
3395
|
] });
|
|
3393
|
-
},
|
|
3396
|
+
}, Qc = ({
|
|
3394
3397
|
id: t,
|
|
3395
3398
|
sessionId: e,
|
|
3396
3399
|
develop: n,
|
|
@@ -3446,7 +3449,7 @@ const Wc = ({
|
|
|
3446
3449
|
);
|
|
3447
3450
|
return /* @__PURE__ */ le("div", { onBlur: S, children: [
|
|
3448
3451
|
/* @__PURE__ */ y(
|
|
3449
|
-
|
|
3452
|
+
_r,
|
|
3450
3453
|
{
|
|
3451
3454
|
...x,
|
|
3452
3455
|
disabled: n ? !1 : x.disabled,
|
|
@@ -3456,7 +3459,7 @@ const Wc = ({
|
|
|
3456
3459
|
),
|
|
3457
3460
|
C && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: C })
|
|
3458
3461
|
] });
|
|
3459
|
-
},
|
|
3462
|
+
}, Zc = ({
|
|
3460
3463
|
id: t,
|
|
3461
3464
|
sessionId: e,
|
|
3462
3465
|
develop: n,
|
|
@@ -3483,18 +3486,18 @@ const Wc = ({
|
|
|
3483
3486
|
b(e, I(A, C));
|
|
3484
3487
|
}
|
|
3485
3488
|
}, [a, v, r, p, o, e, t, b]);
|
|
3486
|
-
return /* @__PURE__ */ y(
|
|
3487
|
-
},
|
|
3489
|
+
return /* @__PURE__ */ y(Er, { ...f, disabled: n ? !1 : f.disabled, value: l, onChange: g });
|
|
3490
|
+
}, ea = 200, mr = (t, e, n = 1) => {
|
|
3488
3491
|
if (!Array.isArray(t)) return [];
|
|
3489
3492
|
const { codeKey: i, labelKey: r, childrenKey: o, maxLevel: a } = e;
|
|
3490
3493
|
return t.map((c) => {
|
|
3491
|
-
const u = n < a && Array.isArray(c == null ? void 0 : c[o]) ?
|
|
3494
|
+
const u = n < a && Array.isArray(c == null ? void 0 : c[o]) ? mr(c[o], e, n + 1) : void 0, f = {
|
|
3492
3495
|
value: String(c == null ? void 0 : c[i]),
|
|
3493
3496
|
label: c == null ? void 0 : c[r]
|
|
3494
3497
|
};
|
|
3495
3498
|
return u && u.length && (f.children = u), f;
|
|
3496
3499
|
});
|
|
3497
|
-
},
|
|
3500
|
+
}, Mn = (t) => !t || typeof t != "string" ? [] : t.includes(",") ? t.split(",").map((e) => e.trim()).filter((e) => e) : [t], ta = (t, e) => {
|
|
3498
3501
|
const n = (i, r, o = []) => {
|
|
3499
3502
|
for (const a of i) {
|
|
3500
3503
|
const c = a.value, u = [...o, c];
|
|
@@ -3508,7 +3511,7 @@ const Wc = ({
|
|
|
3508
3511
|
return null;
|
|
3509
3512
|
};
|
|
3510
3513
|
return n(e, t) || [];
|
|
3511
|
-
},
|
|
3514
|
+
}, $n = (t) => Array.isArray(t) && t.length > 0 && !Array.isArray(t[0]), Rn = (t) => Array.isArray(t) && t.length > 0 && Array.isArray(t[0]), Xc = ({
|
|
3512
3515
|
id: t,
|
|
3513
3516
|
sessionId: e,
|
|
3514
3517
|
develop: n,
|
|
@@ -3540,14 +3543,14 @@ const Wc = ({
|
|
|
3540
3543
|
develop: n
|
|
3541
3544
|
}), O = d(() => (o == null ? void 0 : o.url) && C.length > 0, [o == null ? void 0 : o.url, C.length]), M = d(() => {
|
|
3542
3545
|
let $ = E ?? v ?? p ?? [];
|
|
3543
|
-
return typeof $ == "string" ? O ?
|
|
3546
|
+
return typeof $ == "string" ? O ? Mn($).map((K) => ta(K, C)).filter((K) => Array.isArray(K) && K.length > 0) : [$] : $n($) && O ? $.map((K) => Mn(K)).filter((K) => Array.isArray(K) && K.length > 0) : Rn($) && O ? $.filter((j) => Array.isArray(j) && j.length > 0) : $;
|
|
3544
3547
|
}, [E, v, p, O, C]), z = d(() => o != null && o.url && C.length > 0 ? C : m || [], [o == null ? void 0 : o.url, C, m]);
|
|
3545
3548
|
Ae(() => {
|
|
3546
3549
|
(async () => {
|
|
3547
3550
|
if (o != null && o.url) {
|
|
3548
3551
|
S(!0);
|
|
3549
3552
|
try {
|
|
3550
|
-
const j = await
|
|
3553
|
+
const j = await st({ url: o.url, method: "GET" }), K = Array.isArray(j) ? j : j != null && j.data ? Array.isArray(j.data) ? j.data : j.data.list || j.data.records || [] : [], B = o.codeKey || "value", R = o.labelKey || "label", P = o.childrenKey || "children", G = o.maxLevel || 5, F = mr(K, {
|
|
3551
3554
|
codeKey: B,
|
|
3552
3555
|
labelKey: R,
|
|
3553
3556
|
childrenKey: P,
|
|
@@ -3569,9 +3572,9 @@ const Wc = ({
|
|
|
3569
3572
|
return;
|
|
3570
3573
|
}
|
|
3571
3574
|
let K = $;
|
|
3572
|
-
if (
|
|
3575
|
+
if ($n($) && O ? K = String($[$.length - 1] || "") : Rn($) && O && (K = $.map((B) => B.join(","))), x && r && s(x, r, K), u && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
|
|
3573
3576
|
A.current = null, T($);
|
|
3574
|
-
},
|
|
3577
|
+
}, ea)), f && e) {
|
|
3575
3578
|
const { actionName: B, arg: R } = De(f, $, {
|
|
3576
3579
|
id: t,
|
|
3577
3580
|
dataSet: i,
|
|
@@ -3603,7 +3606,7 @@ const Wc = ({
|
|
|
3603
3606
|
[]
|
|
3604
3607
|
), /* @__PURE__ */ le("div", { style: { width: "100%" }, children: [
|
|
3605
3608
|
/* @__PURE__ */ y(
|
|
3606
|
-
|
|
3609
|
+
Or,
|
|
3607
3610
|
{
|
|
3608
3611
|
...l,
|
|
3609
3612
|
disabled: n ? !1 : l.disabled,
|
|
@@ -3619,7 +3622,7 @@ const Wc = ({
|
|
|
3619
3622
|
),
|
|
3620
3623
|
D && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
|
|
3621
3624
|
] });
|
|
3622
|
-
},
|
|
3625
|
+
}, Ic = ({
|
|
3623
3626
|
id: t,
|
|
3624
3627
|
sessionId: e,
|
|
3625
3628
|
develop: n,
|
|
@@ -3696,7 +3699,7 @@ const Wc = ({
|
|
|
3696
3699
|
};
|
|
3697
3700
|
}, [z]), W = T ? "error" : void 0, $ = /* @__PURE__ */ le("div", { onBlur: M, children: [
|
|
3698
3701
|
/* @__PURE__ */ y(
|
|
3699
|
-
|
|
3702
|
+
Mr,
|
|
3700
3703
|
{
|
|
3701
3704
|
..._,
|
|
3702
3705
|
disabled: n ? !1 : _.disabled,
|
|
@@ -3713,7 +3716,7 @@ const Wc = ({
|
|
|
3713
3716
|
T && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: T })
|
|
3714
3717
|
] });
|
|
3715
3718
|
return q ? /* @__PURE__ */ y(Ke, { theme: q, children: $ }) : $;
|
|
3716
|
-
},
|
|
3719
|
+
}, es = ({
|
|
3717
3720
|
id: t,
|
|
3718
3721
|
sessionId: e,
|
|
3719
3722
|
develop: n,
|
|
@@ -3734,7 +3737,7 @@ const Wc = ({
|
|
|
3734
3737
|
action: s,
|
|
3735
3738
|
...A
|
|
3736
3739
|
}) => {
|
|
3737
|
-
const C =
|
|
3740
|
+
const C = _t(i, r, e), N = C.dataSet, w = C.dataSetField, S = C.sessionId, x = k((U) => U.addCommand), E = k((U) => U.setDataSet), T = d(
|
|
3738
3741
|
() => re(S, N),
|
|
3739
3742
|
[S, N]
|
|
3740
3743
|
), D = k(
|
|
@@ -3790,25 +3793,25 @@ const Wc = ({
|
|
|
3790
3793
|
skipKeys: ["value", "help", "validateStatus", "fileList", "listDisplayText"]
|
|
3791
3794
|
}),
|
|
3792
3795
|
[A, D]
|
|
3793
|
-
), P = L((U) => U.size / 1024 / 1024 < h ? !0 : (
|
|
3796
|
+
), P = L((U) => U.size / 1024 / 1024 < h ? !0 : (Rt.error(`文件大小不能超过 ${h}MB`), !1), [h]), G = L(async (U) => {
|
|
3794
3797
|
const { file: J, onSuccess: ue, onError: V, onProgress: ce } = U;
|
|
3795
3798
|
if (Ue().upload)
|
|
3796
3799
|
try {
|
|
3797
3800
|
ce == null || ce({ percent: 30 });
|
|
3798
|
-
const Q = await
|
|
3801
|
+
const Q = await lr(J, {
|
|
3799
3802
|
url: v,
|
|
3800
3803
|
headers: {
|
|
3801
|
-
Authorization:
|
|
3804
|
+
Authorization: ln() ? `Bearer ${ln()}` : ""
|
|
3802
3805
|
},
|
|
3803
3806
|
form: l == null ? void 0 : l.form,
|
|
3804
3807
|
query: l == null ? void 0 : l.query
|
|
3805
3808
|
});
|
|
3806
3809
|
ce == null || ce({ percent: 100 }), ue == null || ue(Q, J);
|
|
3807
3810
|
} catch (Q) {
|
|
3808
|
-
V == null || V(Q),
|
|
3811
|
+
V == null || V(Q), Rt.error("上传失败");
|
|
3809
3812
|
}
|
|
3810
3813
|
else
|
|
3811
|
-
V == null || V(new Error("Upload handler not configured")),
|
|
3814
|
+
V == null || V(new Error("Upload handler not configured")), Rt.warning("上传功能未配置");
|
|
3812
3815
|
}, [v, l]), F = L(
|
|
3813
3816
|
(U) => {
|
|
3814
3817
|
if (b) {
|
|
@@ -3867,12 +3870,12 @@ const Wc = ({
|
|
|
3867
3870
|
const U = ie.showUploadList;
|
|
3868
3871
|
return ae !== "text" || U === !1 || !Ee || !(B != null && B.length) ? B : B.map((J) => ({ ...J, name: Ee }));
|
|
3869
3872
|
}, [B, ae, ie.showUploadList, Ee]), we = ie.maxCount, Oe = (B == null ? void 0 : B.length) ?? 0, Be = typeof we == "number" && Oe >= we, pe = L(
|
|
3870
|
-
(U) => Be ? (
|
|
3873
|
+
(U) => Be ? (Rt.warning(`最多只能上传 ${we} 个文件`), !1) : P(U),
|
|
3871
3874
|
[Be, we, P]
|
|
3872
3875
|
);
|
|
3873
3876
|
return /* @__PURE__ */ le("div", { onBlur: H, children: [
|
|
3874
3877
|
/* @__PURE__ */ y(
|
|
3875
|
-
|
|
3878
|
+
$r,
|
|
3876
3879
|
{
|
|
3877
3880
|
...R,
|
|
3878
3881
|
disabled: n ? !1 : R.disabled,
|
|
@@ -3884,21 +3887,21 @@ const Wc = ({
|
|
|
3884
3887
|
action: ne ? void 0 : s || v,
|
|
3885
3888
|
openFileDialogOnClick: !n,
|
|
3886
3889
|
children: !Be && (p || (ae === "picture-card" || ae === "picture-circle" ? /* @__PURE__ */ le("button", { style: { border: 0, background: "none" }, type: "button", children: [
|
|
3887
|
-
/* @__PURE__ */ y(
|
|
3890
|
+
/* @__PURE__ */ y(er, {}),
|
|
3888
3891
|
/* @__PURE__ */ y("div", { style: { marginTop: 8 }, children: ge })
|
|
3889
|
-
] }) : /* @__PURE__ */ y(
|
|
3892
|
+
] }) : /* @__PURE__ */ y(nt, { icon: /* @__PURE__ */ y(di, {}), children: ge })))
|
|
3890
3893
|
}
|
|
3891
3894
|
),
|
|
3892
3895
|
M && /* @__PURE__ */ y("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: M }),
|
|
3893
3896
|
de.url && /* @__PURE__ */ y("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: de.urls.length > 1 ? /* @__PURE__ */ y(
|
|
3894
|
-
|
|
3897
|
+
et.PreviewGroup,
|
|
3895
3898
|
{
|
|
3896
3899
|
preview: {
|
|
3897
3900
|
current: de.current,
|
|
3898
3901
|
onOpenChange: (U) => !U && me((J) => ({ ...J, open: !1 }))
|
|
3899
3902
|
},
|
|
3900
3903
|
children: de.urls.map((U, J) => /* @__PURE__ */ y(
|
|
3901
|
-
|
|
3904
|
+
et,
|
|
3902
3905
|
{
|
|
3903
3906
|
src: U,
|
|
3904
3907
|
style: { width: 1, height: 1 },
|
|
@@ -3911,7 +3914,7 @@ const Wc = ({
|
|
|
3911
3914
|
))
|
|
3912
3915
|
}
|
|
3913
3916
|
) : /* @__PURE__ */ y(
|
|
3914
|
-
|
|
3917
|
+
et,
|
|
3915
3918
|
{
|
|
3916
3919
|
src: de.url,
|
|
3917
3920
|
alt: de.name,
|
|
@@ -3923,7 +3926,7 @@ const Wc = ({
|
|
|
3923
3926
|
}
|
|
3924
3927
|
) })
|
|
3925
3928
|
] });
|
|
3926
|
-
},
|
|
3929
|
+
}, ts = ({
|
|
3927
3930
|
id: t,
|
|
3928
3931
|
sessionId: e,
|
|
3929
3932
|
develop: n,
|
|
@@ -3945,7 +3948,7 @@ const Wc = ({
|
|
|
3945
3948
|
const g = k((z) => z.addCommand), s = k((z) => z.getDataSet), A = k((z) => z.setDataSet), C = d(
|
|
3946
3949
|
() => re(e, i),
|
|
3947
3950
|
[e, i]
|
|
3948
|
-
), [N, w] = ve(m || []), [, S] = ve(!1), x = Le.useRef(void 0), { get: E } =
|
|
3951
|
+
), [N, w] = ve(m || []), [, S] = ve(!1), x = Le.useRef(void 0), { get: E } = po(), T = d(() => {
|
|
3949
3952
|
if (C && r) return s(C, r);
|
|
3950
3953
|
}, [C, r, s]), D = d(() => T ?? f ?? b, [T, f, b]), _ = L((z) => {
|
|
3951
3954
|
if (!(v != null && v.queryApi)) {
|
|
@@ -4004,7 +4007,7 @@ const Wc = ({
|
|
|
4004
4007
|
a && e && g(e, I(a, { value: z, option: q }));
|
|
4005
4008
|
}, [u, a, e, g]);
|
|
4006
4009
|
return /* @__PURE__ */ y(
|
|
4007
|
-
|
|
4010
|
+
Rr,
|
|
4008
4011
|
{
|
|
4009
4012
|
...l,
|
|
4010
4013
|
disabled: n ? !1 : l.disabled,
|
|
@@ -4017,7 +4020,7 @@ const Wc = ({
|
|
|
4017
4020
|
style: { width: "100%", ...l.style }
|
|
4018
4021
|
}
|
|
4019
4022
|
);
|
|
4020
|
-
},
|
|
4023
|
+
}, ns = ({
|
|
4021
4024
|
id: t,
|
|
4022
4025
|
sessionId: e,
|
|
4023
4026
|
develop: n,
|
|
@@ -4034,7 +4037,7 @@ const Wc = ({
|
|
|
4034
4037
|
children: v,
|
|
4035
4038
|
...h
|
|
4036
4039
|
}) => {
|
|
4037
|
-
const [l] =
|
|
4040
|
+
const [l] = zt.useForm(), g = k((w) => w.addCommand), s = k((w) => w.setDataSet), A = d(
|
|
4038
4041
|
() => re(e, i),
|
|
4039
4042
|
[e, i]
|
|
4040
4043
|
), C = (w) => {
|
|
@@ -4050,20 +4053,20 @@ const Wc = ({
|
|
|
4050
4053
|
}
|
|
4051
4054
|
a && e && g(e, I(a, null));
|
|
4052
4055
|
};
|
|
4053
|
-
return /* @__PURE__ */ le(
|
|
4056
|
+
return /* @__PURE__ */ le(zt, { ...h, form: l, onFinish: C, children: [
|
|
4054
4057
|
v,
|
|
4055
|
-
(c || u) && /* @__PURE__ */ y(
|
|
4056
|
-
c && /* @__PURE__ */ y(
|
|
4057
|
-
u && /* @__PURE__ */ y(
|
|
4058
|
+
(c || u) && /* @__PURE__ */ y(zt.Item, { children: /* @__PURE__ */ le(Ce, { children: [
|
|
4059
|
+
c && /* @__PURE__ */ y(nt, { type: "primary", htmlType: "submit", children: f }),
|
|
4060
|
+
u && /* @__PURE__ */ y(nt, { onClick: N, children: b })
|
|
4058
4061
|
] }) })
|
|
4059
4062
|
] });
|
|
4060
|
-
},
|
|
4063
|
+
}, rs = ({
|
|
4061
4064
|
id: t,
|
|
4062
4065
|
sessionId: e,
|
|
4063
4066
|
develop: n,
|
|
4064
4067
|
children: i,
|
|
4065
4068
|
...r
|
|
4066
|
-
}) => /* @__PURE__ */ y(
|
|
4069
|
+
}) => /* @__PURE__ */ y(zt.Item, { ...r, children: i }), He = (t, e) => {
|
|
4067
4070
|
if (t == null) return e;
|
|
4068
4071
|
if (typeof t == "string")
|
|
4069
4072
|
try {
|
|
@@ -4072,7 +4075,7 @@ const Wc = ({
|
|
|
4072
4075
|
return e;
|
|
4073
4076
|
}
|
|
4074
4077
|
return t;
|
|
4075
|
-
},
|
|
4078
|
+
}, is = ({
|
|
4076
4079
|
id: t,
|
|
4077
4080
|
sessionId: e,
|
|
4078
4081
|
develop: n,
|
|
@@ -4140,7 +4143,7 @@ const Wc = ({
|
|
|
4140
4143
|
}
|
|
4141
4144
|
N && e && O(e, I(N, { direction: ne }));
|
|
4142
4145
|
}, [E, N, e, O]), X = /* @__PURE__ */ y(
|
|
4143
|
-
|
|
4146
|
+
jr,
|
|
4144
4147
|
{
|
|
4145
4148
|
dataSource: F,
|
|
4146
4149
|
targetKeys: H,
|
|
@@ -4164,7 +4167,7 @@ const Wc = ({
|
|
|
4164
4167
|
}
|
|
4165
4168
|
);
|
|
4166
4169
|
return $ && Object.keys($).length > 0 ? /* @__PURE__ */ y(Ke, { theme: { components: { Transfer: $ } }, children: X }) : X;
|
|
4167
|
-
},
|
|
4170
|
+
}, un = (t, e) => {
|
|
4168
4171
|
if (t == null) return e;
|
|
4169
4172
|
if (typeof t == "string")
|
|
4170
4173
|
try {
|
|
@@ -4175,16 +4178,16 @@ const Wc = ({
|
|
|
4175
4178
|
return e;
|
|
4176
4179
|
}
|
|
4177
4180
|
return t;
|
|
4178
|
-
},
|
|
4181
|
+
}, na = (t) => {
|
|
4179
4182
|
if (!t) return null;
|
|
4180
4183
|
const e = Ye[t];
|
|
4181
4184
|
return e ? /* @__PURE__ */ y(e, {}) : null;
|
|
4182
|
-
},
|
|
4185
|
+
}, ra = (t) => un(t, []).map((n) => ({
|
|
4183
4186
|
label: n.label,
|
|
4184
4187
|
value: n.value,
|
|
4185
|
-
icon: n.icon ?
|
|
4188
|
+
icon: n.icon ? na(n.icon) : void 0,
|
|
4186
4189
|
disabled: n.disabled
|
|
4187
|
-
})),
|
|
4190
|
+
})), os = ({
|
|
4188
4191
|
id: t,
|
|
4189
4192
|
sessionId: e,
|
|
4190
4193
|
develop: n,
|
|
@@ -4209,7 +4212,7 @@ const Wc = ({
|
|
|
4209
4212
|
const A = k((M) => M.addCommand), C = k((M) => M.getDataSet), N = k((M) => M.setDataSet), w = d(
|
|
4210
4213
|
() => re(e, i),
|
|
4211
4214
|
[e, i]
|
|
4212
|
-
), S = d(() =>
|
|
4215
|
+
), S = d(() => un(l, {}), [l]), x = d(() => un(g, {}), [g]), E = d(() => ra(o), [o]), D = d(() => {
|
|
4213
4216
|
if (w && r) {
|
|
4214
4217
|
const M = C(w, r);
|
|
4215
4218
|
if (typeof M == "string") return M;
|
|
@@ -4222,7 +4225,7 @@ const Wc = ({
|
|
|
4222
4225
|
}
|
|
4223
4226
|
w && r && N(w, r, z), v && e && A(e, I(v, { value: z }));
|
|
4224
4227
|
}, [h, w, r, N, v, e, A]), O = /* @__PURE__ */ y(
|
|
4225
|
-
|
|
4228
|
+
Br,
|
|
4226
4229
|
{
|
|
4227
4230
|
...s,
|
|
4228
4231
|
options: E,
|
|
@@ -4238,9 +4241,9 @@ const Wc = ({
|
|
|
4238
4241
|
}
|
|
4239
4242
|
);
|
|
4240
4243
|
return x && Object.keys(x).length > 0 ? /* @__PURE__ */ y(Ke, { theme: { components: { Segmented: x } }, children: O }) : O;
|
|
4241
|
-
},
|
|
4244
|
+
}, ia = (t, e, n) => {
|
|
4242
4245
|
const [i, r] = ve(void 0), o = e === "100%", a = Me(0);
|
|
4243
|
-
return
|
|
4246
|
+
return In(() => {
|
|
4244
4247
|
if (!o || !t.current) {
|
|
4245
4248
|
r(void 0);
|
|
4246
4249
|
return;
|
|
@@ -4290,12 +4293,12 @@ const Wc = ({
|
|
|
4290
4293
|
clearTimeout(f), a.current && cancelAnimationFrame(a.current), b.disconnect(), m.disconnect();
|
|
4291
4294
|
};
|
|
4292
4295
|
}, [o, n]), o ? i : e;
|
|
4293
|
-
},
|
|
4294
|
-
function
|
|
4295
|
-
let e =
|
|
4296
|
-
return e || (e =
|
|
4296
|
+
}, jn = /* @__PURE__ */ new Map();
|
|
4297
|
+
function oa(t) {
|
|
4298
|
+
let e = jn.get(t);
|
|
4299
|
+
return e || (e = mn(t), jn.set(t, e)), e;
|
|
4297
4300
|
}
|
|
4298
|
-
const
|
|
4301
|
+
const aa = ({ dictCode: t, value: e }) => {
|
|
4299
4302
|
const [n, i] = ve(null);
|
|
4300
4303
|
if (Ae(() => {
|
|
4301
4304
|
if (!t) {
|
|
@@ -4303,7 +4306,7 @@ const oa = ({ dictCode: t, value: e }) => {
|
|
|
4303
4306
|
return;
|
|
4304
4307
|
}
|
|
4305
4308
|
let o = !1;
|
|
4306
|
-
return
|
|
4309
|
+
return oa(t).then((a) => {
|
|
4307
4310
|
o || i(a);
|
|
4308
4311
|
}), () => {
|
|
4309
4312
|
o = !0;
|
|
@@ -4314,14 +4317,14 @@ const oa = ({ dictCode: t, value: e }) => {
|
|
|
4314
4317
|
return /* @__PURE__ */ y("span", { children: String(e) });
|
|
4315
4318
|
const r = Qe(n, e);
|
|
4316
4319
|
return /* @__PURE__ */ y("span", { children: (r == null ? void 0 : r.label) ?? String(e) });
|
|
4317
|
-
}, aa = (t, e) => {
|
|
4318
|
-
const n = e.columnDictType || e.dictType || "";
|
|
4319
|
-
return n ? /* @__PURE__ */ y(oa, { dictCode: n, value: t }) : /* @__PURE__ */ y("span", { children: t != null && t !== "" ? String(t) : "" });
|
|
4320
4320
|
}, ca = (t, e) => {
|
|
4321
|
+
const n = e.columnDictType || e.dictType || "";
|
|
4322
|
+
return n ? /* @__PURE__ */ y(aa, { dictCode: n, value: t }) : /* @__PURE__ */ y("span", { children: t != null && t !== "" ? String(t) : "" });
|
|
4323
|
+
}, sa = (t, e) => {
|
|
4321
4324
|
const [n, i] = (e.imageWidthHeight || "").split(/\s*[,,]\s*/), r = n || "50", o = i || "50";
|
|
4322
4325
|
let a = [];
|
|
4323
4326
|
return Array.isArray(t) ? a = t.slice(0, 3) : typeof t == "string" && t && (a = [t]), a.length === 0 ? /* @__PURE__ */ y("span", { children: "无图片" }) : a.length === 1 ? /* @__PURE__ */ y(
|
|
4324
|
-
|
|
4327
|
+
et,
|
|
4325
4328
|
{
|
|
4326
4329
|
src: a[0],
|
|
4327
4330
|
alt: "image",
|
|
@@ -4329,8 +4332,8 @@ const oa = ({ dictCode: t, value: e }) => {
|
|
|
4329
4332
|
height: o,
|
|
4330
4333
|
preview: { src: a[0] }
|
|
4331
4334
|
}
|
|
4332
|
-
) : /* @__PURE__ */ y(
|
|
4333
|
-
|
|
4335
|
+
) : /* @__PURE__ */ y(et.PreviewGroup, { children: a.map((c, u) => /* @__PURE__ */ y(
|
|
4336
|
+
et,
|
|
4334
4337
|
{
|
|
4335
4338
|
src: c,
|
|
4336
4339
|
alt: `image-${u}`,
|
|
@@ -4340,7 +4343,7 @@ const oa = ({ dictCode: t, value: e }) => {
|
|
|
4340
4343
|
},
|
|
4341
4344
|
u
|
|
4342
4345
|
)) });
|
|
4343
|
-
},
|
|
4346
|
+
}, la = (t, e) => {
|
|
4344
4347
|
let n = parseFloat(t);
|
|
4345
4348
|
if (isNaN(n))
|
|
4346
4349
|
return /* @__PURE__ */ y("span", { children: "无效金额" });
|
|
@@ -4354,7 +4357,7 @@ const oa = ({ dictCode: t, value: e }) => {
|
|
|
4354
4357
|
};
|
|
4355
4358
|
let u = new Intl.NumberFormat("zh-CN", c).format(n);
|
|
4356
4359
|
return i && (u = i + u), /* @__PURE__ */ y("span", { children: u });
|
|
4357
|
-
},
|
|
4360
|
+
}, ua = (t, e) => {
|
|
4358
4361
|
let n = "";
|
|
4359
4362
|
try {
|
|
4360
4363
|
const i = Ge(t);
|
|
@@ -4363,13 +4366,13 @@ const oa = ({ dictCode: t, value: e }) => {
|
|
|
4363
4366
|
n = "";
|
|
4364
4367
|
}
|
|
4365
4368
|
return /* @__PURE__ */ y("span", { children: n });
|
|
4366
|
-
},
|
|
4369
|
+
}, fa = (t, e) => {
|
|
4367
4370
|
if (t == null || t === "")
|
|
4368
4371
|
return /* @__PURE__ */ y("span", {});
|
|
4369
4372
|
const n = e.arraySeparator || ",";
|
|
4370
4373
|
return Array.isArray(t) ? /* @__PURE__ */ y("span", { children: t.join(n) }) : /* @__PURE__ */ y("span", { children: String(t) });
|
|
4371
4374
|
};
|
|
4372
|
-
function
|
|
4375
|
+
function da(t) {
|
|
4373
4376
|
const e = [16, 16];
|
|
4374
4377
|
if (t == null || t === "") return e;
|
|
4375
4378
|
let n = [];
|
|
@@ -4388,12 +4391,12 @@ function fa(t) {
|
|
|
4388
4391
|
const i = Number(n[0]), r = Number(n[1]);
|
|
4389
4392
|
return !Number.isFinite(i) || !Number.isFinite(r) ? e : [Math.max(1, i), Math.max(1, r)];
|
|
4390
4393
|
}
|
|
4391
|
-
function
|
|
4394
|
+
function ma(t) {
|
|
4392
4395
|
return !!(t == null || t === "" || Array.isArray(t) && t.length === 0);
|
|
4393
4396
|
}
|
|
4394
|
-
const
|
|
4397
|
+
const ha = (t, e, n, i) => {
|
|
4395
4398
|
var m;
|
|
4396
|
-
if (
|
|
4399
|
+
if (ma(t))
|
|
4397
4400
|
return /* @__PURE__ */ y("span", {});
|
|
4398
4401
|
const r = (m = e.columnIcon) == null ? void 0 : m.trim();
|
|
4399
4402
|
if (!r)
|
|
@@ -4401,7 +4404,7 @@ const ma = (t, e, n, i) => {
|
|
|
4401
4404
|
const o = Ye[r];
|
|
4402
4405
|
if (!o)
|
|
4403
4406
|
return /* @__PURE__ */ y("span", {});
|
|
4404
|
-
const [a, c] =
|
|
4407
|
+
const [a, c] = da(e.iconSize), u = (e.iconClickAction || "").trim(), f = i == null ? void 0 : i.runAction, b = /* @__PURE__ */ y(
|
|
4405
4408
|
"span",
|
|
4406
4409
|
{
|
|
4407
4410
|
style: {
|
|
@@ -4427,32 +4430,32 @@ const ma = (t, e, n, i) => {
|
|
|
4427
4430
|
children: b
|
|
4428
4431
|
}
|
|
4429
4432
|
) : b;
|
|
4430
|
-
},
|
|
4433
|
+
}, ya = (t, e) => {
|
|
4431
4434
|
const n = { ...t };
|
|
4432
4435
|
return n.specialFields === !0 && n.renderType && (n.render = (i, r, o) => {
|
|
4433
4436
|
switch (n.renderType) {
|
|
4434
4437
|
case "image":
|
|
4435
|
-
return ca(i, n);
|
|
4436
|
-
case "money":
|
|
4437
4438
|
return sa(i, n);
|
|
4438
|
-
case "
|
|
4439
|
+
case "money":
|
|
4439
4440
|
return la(i, n);
|
|
4440
|
-
case "
|
|
4441
|
+
case "date":
|
|
4441
4442
|
return ua(i, n);
|
|
4443
|
+
case "array":
|
|
4444
|
+
return fa(i, n);
|
|
4442
4445
|
case "dict":
|
|
4443
|
-
return
|
|
4446
|
+
return ca(i, n);
|
|
4444
4447
|
case "icon":
|
|
4445
|
-
return
|
|
4448
|
+
return ha(i, n, r, e);
|
|
4446
4449
|
default:
|
|
4447
4450
|
return i;
|
|
4448
4451
|
}
|
|
4449
4452
|
}), n;
|
|
4450
|
-
},
|
|
4453
|
+
}, Gt = 15, St = 10, ga = [
|
|
4451
4454
|
{ value: "small", label: "紧凑" },
|
|
4452
4455
|
{ value: "middle", label: "默认" },
|
|
4453
4456
|
{ value: "large", label: "宽松" }
|
|
4454
4457
|
];
|
|
4455
|
-
function
|
|
4458
|
+
function Bn(t, e, n, i) {
|
|
4456
4459
|
const r = {};
|
|
4457
4460
|
return e.forEach((o) => {
|
|
4458
4461
|
o.width !== void 0 && (r[o.key] = o.width);
|
|
@@ -4466,7 +4469,7 @@ function jn(t, e, n, i) {
|
|
|
4466
4469
|
size: i
|
|
4467
4470
|
};
|
|
4468
4471
|
}
|
|
4469
|
-
function
|
|
4472
|
+
function pa(t, e, n, i) {
|
|
4470
4473
|
const r = (t == null ? void 0 : t.order) ?? e.map((m) => m.key), o = (t == null ? void 0 : t.visible) ?? {}, a = (t == null ? void 0 : t.fixed) ?? {}, c = (t == null ? void 0 : t.width) ?? {}, u = new Map(e.map((m) => [m.key, m])), f = [], b = /* @__PURE__ */ new Set();
|
|
4471
4474
|
for (const m of r) {
|
|
4472
4475
|
const p = u.get(m);
|
|
@@ -4492,7 +4495,7 @@ function ga(t, e, n, i) {
|
|
|
4492
4495
|
size: (t == null ? void 0 : t.size) ?? i ?? "middle"
|
|
4493
4496
|
};
|
|
4494
4497
|
}
|
|
4495
|
-
const
|
|
4498
|
+
const Qt = 420, Kn = 440, va = ({
|
|
4496
4499
|
open: t,
|
|
4497
4500
|
position: e,
|
|
4498
4501
|
rowIndexVisible: n,
|
|
@@ -4516,12 +4519,12 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4516
4519
|
},
|
|
4517
4520
|
[b]
|
|
4518
4521
|
), x = L(
|
|
4519
|
-
(R, P, G, F) =>
|
|
4522
|
+
(R, P, G, F) => Bn(R, P, G ?? g, F ?? A),
|
|
4520
4523
|
[g, A]
|
|
4521
4524
|
), E = L(() => {
|
|
4522
4525
|
v(r);
|
|
4523
4526
|
const R = o.map((P) => ({ ...P }));
|
|
4524
|
-
l(R), s(c), C(f), S(
|
|
4527
|
+
l(R), s(c), C(f), S(Bn(r, R, c, f));
|
|
4525
4528
|
}, [r, o, c, f, S]), T = L(
|
|
4526
4529
|
(R) => {
|
|
4527
4530
|
l((P) => {
|
|
@@ -4551,7 +4554,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4551
4554
|
l((G) => {
|
|
4552
4555
|
const F = G.find((de) => de.key === R);
|
|
4553
4556
|
if (!F) return G;
|
|
4554
|
-
const H = typeof F.width == "number" ? F.width : 80, ee = Math.max(
|
|
4557
|
+
const H = typeof F.width == "number" ? F.width : 80, ee = Math.max(Gt, H + P), oe = G.map((de) => de.key === R ? { ...de, width: ee } : de);
|
|
4555
4558
|
return S(x(p, oe)), oe;
|
|
4556
4559
|
});
|
|
4557
4560
|
},
|
|
@@ -4584,16 +4587,16 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4584
4587
|
P.preventDefault(), P.dataTransfer.dropEffect = "move", !(N === null || N === R) && (M(N, R), w(R));
|
|
4585
4588
|
}, K = () => w(null), B = e != null ? (() => {
|
|
4586
4589
|
let R = e.y, P = e.x;
|
|
4587
|
-
return typeof window < "u" && (P +
|
|
4590
|
+
return typeof window < "u" && (P + Qt > window.innerWidth && (P = window.innerWidth - Qt - 16), P < 16 && (P = 16), R + Kn > window.innerHeight && (R = Math.max(16, window.innerHeight - Kn - 16)), R < 16 && (R = 16)), { margin: 0, top: R, left: P };
|
|
4588
4591
|
})() : void 0;
|
|
4589
4592
|
return /* @__PURE__ */ y(
|
|
4590
|
-
|
|
4593
|
+
Yn,
|
|
4591
4594
|
{
|
|
4592
4595
|
title: "列设置",
|
|
4593
4596
|
open: t,
|
|
4594
4597
|
onCancel: m,
|
|
4595
4598
|
footer: null,
|
|
4596
|
-
width:
|
|
4599
|
+
width: Qt,
|
|
4597
4600
|
destroyOnHidden: !0,
|
|
4598
4601
|
centered: e == null,
|
|
4599
4602
|
style: B,
|
|
@@ -4602,23 +4605,23 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4602
4605
|
children: /* @__PURE__ */ le("div", { className: "and-table-column-setting-body", children: [
|
|
4603
4606
|
/* @__PURE__ */ y("div", { className: "and-table-column-setting-header", children: /* @__PURE__ */ le("div", { className: "and-table-column-setting-header-row", children: [
|
|
4604
4607
|
/* @__PURE__ */ y(
|
|
4605
|
-
|
|
4608
|
+
gt,
|
|
4606
4609
|
{
|
|
4607
4610
|
checked: p,
|
|
4608
4611
|
onChange: (R) => z(R.target.checked),
|
|
4609
4612
|
children: "序号列"
|
|
4610
4613
|
}
|
|
4611
4614
|
),
|
|
4612
|
-
/* @__PURE__ */ y(
|
|
4615
|
+
/* @__PURE__ */ y(gt, { checked: g, onChange: (R) => q(R.target.checked), children: "自动滚动" }),
|
|
4613
4616
|
/* @__PURE__ */ le(Ce, { align: "center", children: [
|
|
4614
4617
|
/* @__PURE__ */ y("span", { className: "and-table-column-setting-label", children: "表格" }),
|
|
4615
4618
|
/* @__PURE__ */ y(
|
|
4616
|
-
|
|
4619
|
+
Hn,
|
|
4617
4620
|
{
|
|
4618
4621
|
size: "small",
|
|
4619
4622
|
value: A,
|
|
4620
4623
|
onChange: W,
|
|
4621
|
-
options: [...
|
|
4624
|
+
options: [...ga],
|
|
4622
4625
|
style: { width: 80 }
|
|
4623
4626
|
}
|
|
4624
4627
|
)
|
|
@@ -4642,9 +4645,9 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4642
4645
|
onDragOver: j(P),
|
|
4643
4646
|
onDragEnd: K,
|
|
4644
4647
|
children: [
|
|
4645
|
-
/* @__PURE__ */ y("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ y("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ y(
|
|
4648
|
+
/* @__PURE__ */ y("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ y("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ y(mi, {}) }) }),
|
|
4646
4649
|
/* @__PURE__ */ le("td", { className: "and-table-column-setting-td-name", children: [
|
|
4647
|
-
/* @__PURE__ */ y(
|
|
4650
|
+
/* @__PURE__ */ y(gt, { checked: R.visible, onChange: () => T(R.key) }),
|
|
4648
4651
|
/* @__PURE__ */ y("span", { className: "and-table-column-setting-title", title: R.title, children: R.title })
|
|
4649
4652
|
] }),
|
|
4650
4653
|
/* @__PURE__ */ y("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */ le("div", { className: "and-table-column-setting-width", children: [
|
|
@@ -4652,23 +4655,23 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4652
4655
|
"span",
|
|
4653
4656
|
{
|
|
4654
4657
|
className: "and-table-column-setting-fix-btn",
|
|
4655
|
-
onClick: () => O(R.key, -
|
|
4656
|
-
title: `减 ${
|
|
4657
|
-
children: /* @__PURE__ */ y(
|
|
4658
|
+
onClick: () => O(R.key, -St),
|
|
4659
|
+
title: `减 ${St}px`,
|
|
4660
|
+
children: /* @__PURE__ */ y(hi, {})
|
|
4658
4661
|
}
|
|
4659
4662
|
),
|
|
4660
4663
|
/* @__PURE__ */ y(
|
|
4661
|
-
|
|
4664
|
+
Pn,
|
|
4662
4665
|
{
|
|
4663
4666
|
size: "small",
|
|
4664
|
-
min:
|
|
4665
|
-
step:
|
|
4667
|
+
min: Gt,
|
|
4668
|
+
step: St,
|
|
4666
4669
|
value: F ? void 0 : G ?? 80,
|
|
4667
4670
|
placeholder: "auto",
|
|
4668
4671
|
controls: !1,
|
|
4669
4672
|
style: { width: 44 },
|
|
4670
4673
|
onChange: (H) => {
|
|
4671
|
-
H == null || typeof H == "string" && H === "" ? _(R.key, "auto") : _(R.key, Math.max(
|
|
4674
|
+
H == null || typeof H == "string" && H === "" ? _(R.key, "auto") : _(R.key, Math.max(Gt, Number(H)));
|
|
4672
4675
|
}
|
|
4673
4676
|
}
|
|
4674
4677
|
),
|
|
@@ -4676,9 +4679,9 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4676
4679
|
"span",
|
|
4677
4680
|
{
|
|
4678
4681
|
className: "and-table-column-setting-fix-btn",
|
|
4679
|
-
onClick: () => O(R.key,
|
|
4680
|
-
title: `加 ${
|
|
4681
|
-
children: /* @__PURE__ */ y(
|
|
4682
|
+
onClick: () => O(R.key, St),
|
|
4683
|
+
title: `加 ${St}px`,
|
|
4684
|
+
children: /* @__PURE__ */ y(er, {})
|
|
4682
4685
|
}
|
|
4683
4686
|
)
|
|
4684
4687
|
] }) }),
|
|
@@ -4689,7 +4692,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4689
4692
|
className: `and-table-column-setting-fix-btn ${R.fixed === "left" ? "active" : ""}`,
|
|
4690
4693
|
onClick: () => D(R.key, R.fixed === "left" ? !1 : "left"),
|
|
4691
4694
|
title: "固定到左侧",
|
|
4692
|
-
children: /* @__PURE__ */ y(
|
|
4695
|
+
children: /* @__PURE__ */ y(tr, {})
|
|
4693
4696
|
}
|
|
4694
4697
|
),
|
|
4695
4698
|
/* @__PURE__ */ y("span", { className: "and-table-column-setting-fix-divider", children: "|" }),
|
|
@@ -4699,7 +4702,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4699
4702
|
className: `and-table-column-setting-fix-btn ${R.fixed === "right" ? "active" : ""}`,
|
|
4700
4703
|
onClick: () => D(R.key, R.fixed === "right" ? !1 : "right"),
|
|
4701
4704
|
title: "固定到右侧",
|
|
4702
|
-
children: /* @__PURE__ */ y(
|
|
4705
|
+
children: /* @__PURE__ */ y(nr, {})
|
|
4703
4706
|
}
|
|
4704
4707
|
)
|
|
4705
4708
|
] }) })
|
|
@@ -4709,11 +4712,11 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4709
4712
|
);
|
|
4710
4713
|
}) })
|
|
4711
4714
|
] }) }),
|
|
4712
|
-
/* @__PURE__ */ y("div", { className: "and-table-column-setting-footer", children: /* @__PURE__ */ y(
|
|
4715
|
+
/* @__PURE__ */ y("div", { className: "and-table-column-setting-footer", children: /* @__PURE__ */ y(nt, { onClick: E, children: "重置" }) })
|
|
4713
4716
|
] })
|
|
4714
4717
|
}
|
|
4715
4718
|
);
|
|
4716
|
-
},
|
|
4719
|
+
}, ba = [
|
|
4717
4720
|
"value",
|
|
4718
4721
|
"validateStatus",
|
|
4719
4722
|
"help",
|
|
@@ -4724,7 +4727,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4724
4727
|
"develop",
|
|
4725
4728
|
"dataSet",
|
|
4726
4729
|
"dataSetField"
|
|
4727
|
-
],
|
|
4730
|
+
], as = (t) => {
|
|
4728
4731
|
const { id: e, sessionId: n } = t, i = k(
|
|
4729
4732
|
(Z) => {
|
|
4730
4733
|
var fe;
|
|
@@ -4734,7 +4737,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4734
4737
|
() => Ve(
|
|
4735
4738
|
{ ...t },
|
|
4736
4739
|
i ?? void 0,
|
|
4737
|
-
{ skipKeys: [...
|
|
4740
|
+
{ skipKeys: [...ba] }
|
|
4738
4741
|
),
|
|
4739
4742
|
[t, i]
|
|
4740
4743
|
), {
|
|
@@ -4797,7 +4800,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4797
4800
|
return X.columnSettingOpen ? ((fe = Z.dataSets[X.columnSettingOpen]) == null ? void 0 : fe.value) === !0 : !1;
|
|
4798
4801
|
}
|
|
4799
4802
|
), Re = 420;
|
|
4800
|
-
|
|
4803
|
+
In(() => {
|
|
4801
4804
|
if (!Ee || !H.current) return;
|
|
4802
4805
|
const Z = H.current.querySelector(".ant-table-thead") || H.current.querySelector(".ant-table-header");
|
|
4803
4806
|
if (!Z) return;
|
|
@@ -4811,24 +4814,24 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4811
4814
|
var _e;
|
|
4812
4815
|
const fe = X.columnSettings ? (_e = Z.dataSets[X.columnSettings]) == null ? void 0 : _e.value : void 0;
|
|
4813
4816
|
return typeof fe == "object" && fe !== null ? fe : void 0;
|
|
4814
|
-
}), Oe =
|
|
4817
|
+
}), Oe = $i(X.dataSet, c), Be = d(() => X.dataSet ? Oe : (b == null ? void 0 : b.data) || [], [X.dataSet, Oe, b == null ? void 0 : b.data]), pe = d(() => de(W, {}), [W, de]), U = pe && Object.keys(pe).length > 0, J = d(
|
|
4815
4818
|
() => U ? { components: { Table: pe } } : void 0,
|
|
4816
4819
|
[U, pe]
|
|
4817
4820
|
), ue = k(
|
|
4818
4821
|
(Z) => X.pagination ? Z.dataSets[X.pagination] : void 0
|
|
4819
|
-
), V = d(() => X.pagination ? R(X.pagination, "") || {} : {}, [X.pagination, R, ue]), ce = d(() => !(A === !1 || typeof A == "object" && (A == null ? void 0 : A.visible) === !1), [A]), ye =
|
|
4822
|
+
), V = d(() => X.pagination ? R(X.pagination, "") || {} : {}, [X.pagination, R, ue]), ce = d(() => !(A === !1 || typeof A == "object" && (A == null ? void 0 : A.visible) === !1), [A]), ye = ia(H, ae == null ? void 0 : ae.y, ce), Q = d(() => {
|
|
4820
4823
|
if (!ce) return !1;
|
|
4821
|
-
const Z = typeof A == "object" ? A : {}, fe = K || {}, _e = Z.showSizeChanger ?? fe["pagination-showSizeChanger"] ?? !0, Ne = Z.showQuickJumper ?? fe["pagination-showQuickJumper"] ?? !1, Te = Z.simple ?? fe["pagination-simple"] ?? !1, qe = Z.defaultPageSize ?? fe["pagination-defaultPageSize"] ?? 10, Je = Z.pageSizeOptions ?? fe["pagination-pageSizeOptions"] ?? "10,20,50,100",
|
|
4824
|
+
const Z = typeof A == "object" ? A : {}, fe = K || {}, _e = Z.showSizeChanger ?? fe["pagination-showSizeChanger"] ?? !0, Ne = Z.showQuickJumper ?? fe["pagination-showQuickJumper"] ?? !1, Te = Z.simple ?? fe["pagination-simple"] ?? !1, qe = Z.defaultPageSize ?? fe["pagination-defaultPageSize"] ?? 10, Je = Z.pageSizeOptions ?? fe["pagination-pageSizeOptions"] ?? "10,20,50,100", Ut = typeof Je == "string" ? Je.split(",").map((ot) => parseInt(String(ot).trim(), 10) || 10).filter((ot) => !isNaN(ot)) : Array.isArray(Je) ? Je : [10, 20, 50, 100];
|
|
4822
4825
|
return {
|
|
4823
4826
|
...V,
|
|
4824
4827
|
showSizeChanger: _e,
|
|
4825
4828
|
showQuickJumper: Ne,
|
|
4826
4829
|
simple: Te,
|
|
4827
4830
|
defaultPageSize: qe,
|
|
4828
|
-
pageSizeOptions:
|
|
4829
|
-
showTotal: (
|
|
4830
|
-
onChange: (
|
|
4831
|
-
X.pagination && P(X.pagination, "", { ...V, current:
|
|
4831
|
+
pageSizeOptions: Ut,
|
|
4832
|
+
showTotal: (ot, dt) => (Z.showTotal || "共 ${total} 条").replace("${total}", String(ot)).replace("${range[0]}", String(dt[0])).replace("${range[1]}", String(dt[1])).replace("${range}", `${dt[0]}-${dt[1]}`),
|
|
4833
|
+
onChange: (ot, dt) => {
|
|
4834
|
+
X.pagination && P(X.pagination, "", { ...V, current: ot, pageSize: dt }), s && n && B(n, I(s, null));
|
|
4832
4835
|
},
|
|
4833
4836
|
hideOnSinglePage: !1
|
|
4834
4837
|
};
|
|
@@ -4850,16 +4853,16 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4850
4853
|
fixed: fe,
|
|
4851
4854
|
width: typeof _e == "number" ? _e : "auto"
|
|
4852
4855
|
};
|
|
4853
|
-
}).filter((Z) => Z.key), [me]), Se = g === !0, xe = !1,
|
|
4856
|
+
}).filter((Z) => Z.key), [me]), Se = g === !0, xe = !1, Ie = w === "small" || w === "large" ? w : "middle", { rowIndexVisible: Fe, items: it, scrollX: ut, size: yn } = d(() => pa(
|
|
4854
4857
|
we,
|
|
4855
4858
|
he,
|
|
4856
4859
|
Se,
|
|
4857
|
-
|
|
4858
|
-
), [we, he, Se,
|
|
4859
|
-
if (
|
|
4860
|
+
Ie
|
|
4861
|
+
), [we, he, Se, Ie]), ft = !!(a && n), gr = d(() => {
|
|
4862
|
+
if (ut !== void 0) return ut;
|
|
4860
4863
|
const Z = ae == null ? void 0 : ae.x;
|
|
4861
4864
|
return Z === !0 || typeof Z == "number" && Number.isFinite(Z) && Z > 0 ? !0 : Z === "max-content" ? !1 : xe;
|
|
4862
|
-
}, [
|
|
4865
|
+
}, [ut, ae == null ? void 0 : ae.x, xe]), gn = d(() => ft ? ut !== void 0 ? ut ? !0 : "max-content" : (ae == null ? void 0 : ae.x) !== void 0 ? ae.x : "max-content" : ae == null ? void 0 : ae.x, [ft, ut, ae == null ? void 0 : ae.x, xe]), Ot = d(() => {
|
|
4863
4866
|
const Z = [];
|
|
4864
4867
|
Fe && Z.push({
|
|
4865
4868
|
title: "序号",
|
|
@@ -4867,17 +4870,17 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4867
4870
|
width: 60,
|
|
4868
4871
|
align: "center",
|
|
4869
4872
|
render: (Ne, Te, qe) => {
|
|
4870
|
-
const Je = V.current || 1,
|
|
4871
|
-
return (Je - 1) *
|
|
4873
|
+
const Je = V.current || 1, Ut = V.pageSize || 10;
|
|
4874
|
+
return (Je - 1) * Ut + qe + 1;
|
|
4872
4875
|
}
|
|
4873
4876
|
});
|
|
4874
4877
|
const fe = new Map(me.map((Ne) => [String(Ne.key ?? Ne.dataIndex ?? ""), Ne]));
|
|
4875
|
-
return
|
|
4878
|
+
return it.filter((Ne) => Ne.visible).forEach((Ne) => {
|
|
4876
4879
|
const Te = fe.get(Ne.key);
|
|
4877
4880
|
if (!Te) return;
|
|
4878
4881
|
const qe = Ne.fixed || void 0, Je = Ne.width === "auto" || Ne.width === void 0 ? void 0 : Ne.width;
|
|
4879
4882
|
Z.push(
|
|
4880
|
-
|
|
4883
|
+
ya(
|
|
4881
4884
|
{
|
|
4882
4885
|
...Te,
|
|
4883
4886
|
dataIndex: Te.dataIndex || Te.key,
|
|
@@ -4890,25 +4893,25 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4890
4893
|
}), m !== !1 && te.length > 0 && Z.push({
|
|
4891
4894
|
title: "操作",
|
|
4892
4895
|
key: "action",
|
|
4893
|
-
render: (Ne, Te) => /* @__PURE__ */ y(Ce, { children: te.map((qe, Je) => /* @__PURE__ */ y(
|
|
4896
|
+
render: (Ne, Te) => /* @__PURE__ */ y(Ce, { children: te.map((qe, Je) => /* @__PURE__ */ y(Wn, { title: qe.tooltip, children: /* @__PURE__ */ y("a", { onClick: () => Y(qe, Te), style: { marginRight: 5 }, children: qe.title }) }, Je)) })
|
|
4894
4897
|
}), Z;
|
|
4895
4898
|
}, [
|
|
4896
4899
|
me,
|
|
4897
4900
|
te,
|
|
4898
4901
|
Fe,
|
|
4899
|
-
|
|
4902
|
+
it,
|
|
4900
4903
|
m,
|
|
4901
4904
|
V,
|
|
4902
4905
|
Y,
|
|
4903
4906
|
se
|
|
4904
|
-
]),
|
|
4907
|
+
]), pr = L(() => {
|
|
4905
4908
|
X.columnSettingOpen && P(X.columnSettingOpen, "", !1);
|
|
4906
|
-
}, [X.columnSettingOpen, P]),
|
|
4909
|
+
}, [X.columnSettingOpen, P]), vr = L(
|
|
4907
4910
|
(Z) => {
|
|
4908
4911
|
X.columnSettings && P(X.columnSettings, "value", Z);
|
|
4909
4912
|
},
|
|
4910
4913
|
[X.columnSettings, P]
|
|
4911
|
-
),
|
|
4914
|
+
), br = d(() => {
|
|
4912
4915
|
if (!v && p)
|
|
4913
4916
|
return {
|
|
4914
4917
|
selectedRowKeys: G,
|
|
@@ -4920,15 +4923,15 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4920
4923
|
}));
|
|
4921
4924
|
}
|
|
4922
4925
|
};
|
|
4923
|
-
}, [p, v, G, X.selected, P, h, n, B]),
|
|
4926
|
+
}, [p, v, G, X.selected, P, h, n, B]), pn = L((Z) => {
|
|
4924
4927
|
if (!v) return;
|
|
4925
4928
|
const _e = [Z[l]];
|
|
4926
4929
|
F(_e), X.selected && P(X.selected, "", _e), h != null && h.trim() && n && B(n, I(h.trim(), { record: Z, selectedRowKeys: _e }));
|
|
4927
|
-
}, [v, h, n, l, X.selected, P, B]),
|
|
4928
|
-
if (!ae && !
|
|
4929
|
-
const Z =
|
|
4930
|
+
}, [v, h, n, l, X.selected, P, B]), Sr = L((Z) => v && G.includes(Z[l]) ? "ant-table-row-selected" : "", [v, l, G]), wr = L((Z) => v ? { onClick: () => pn(Z), style: { cursor: "pointer" } } : {}, [v, pn]), xr = d(() => {
|
|
4931
|
+
if (!ae && !ft) return;
|
|
4932
|
+
const Z = gn, fe = (ae == null ? void 0 : ae.y) === "100%" ? ye : ae == null ? void 0 : ae.y;
|
|
4930
4933
|
return Z !== void 0 || fe !== void 0 ? { x: Z, y: fe } : ae ? ae.y === "100%" ? { x: ae.x, y: ye } : ae : void 0;
|
|
4931
|
-
}, [ae, ye,
|
|
4934
|
+
}, [ae, ye, ft, gn]), { titleSlot: Mt, summarySlot: $t, footerSlot: vn, otherChildren: Ar } = d(() => {
|
|
4932
4935
|
let Z = null, fe = null, _e = null;
|
|
4933
4936
|
const Ne = [];
|
|
4934
4937
|
return Le.Children.forEach(q, (Te) => {
|
|
@@ -4939,47 +4942,47 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4939
4942
|
const qe = Te.props["data-slot-type"];
|
|
4940
4943
|
qe === "title" ? Z = Te : qe === "summary" ? fe = Te : qe === "footer" ? _e = Te : Ne.push(Te);
|
|
4941
4944
|
}), { titleSlot: Z, summarySlot: fe, footerSlot: _e, otherChildren: Ne };
|
|
4942
|
-
}, [q]),
|
|
4943
|
-
if (!
|
|
4945
|
+
}, [q]), Dr = d(() => {
|
|
4946
|
+
if (!Mt) {
|
|
4944
4947
|
if (O) return O;
|
|
4945
4948
|
if (T && o) return () => /* @__PURE__ */ y("div", { "data-table-slot-container": "title", style: { minHeight: 20 } });
|
|
4946
4949
|
}
|
|
4947
|
-
}, [T,
|
|
4950
|
+
}, [T, Mt, O, o]), Cr = d(() => {
|
|
4948
4951
|
if (M) return M;
|
|
4949
|
-
if (D &&
|
|
4950
|
-
return () => /* @__PURE__ */ y("tr", { children: /* @__PURE__ */ y("td", { colSpan:
|
|
4952
|
+
if (D && $t)
|
|
4953
|
+
return () => /* @__PURE__ */ y("tr", { children: /* @__PURE__ */ y("td", { colSpan: Ot.length, style: { padding: 0 }, children: $t }) });
|
|
4951
4954
|
if (D && o)
|
|
4952
|
-
return () => /* @__PURE__ */ y("tr", { children: /* @__PURE__ */ y("td", { colSpan:
|
|
4953
|
-
}, [D,
|
|
4954
|
-
|
|
4955
|
+
return () => /* @__PURE__ */ y("tr", { children: /* @__PURE__ */ y("td", { colSpan: Ot.length, style: { padding: 0 }, children: /* @__PURE__ */ y("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
|
|
4956
|
+
}, [D, $t, M, Ot.length, o]), bn = /* @__PURE__ */ y(
|
|
4957
|
+
Kr,
|
|
4955
4958
|
{
|
|
4956
4959
|
...ge,
|
|
4957
|
-
columns:
|
|
4960
|
+
columns: Ot,
|
|
4958
4961
|
dataSource: Be,
|
|
4959
4962
|
rowKey: l,
|
|
4960
|
-
rowSelection:
|
|
4961
|
-
rowClassName:
|
|
4963
|
+
rowSelection: br,
|
|
4964
|
+
rowClassName: Sr,
|
|
4962
4965
|
pagination: Q,
|
|
4963
4966
|
locale: { emptyText: C },
|
|
4964
4967
|
bordered: N,
|
|
4965
|
-
size:
|
|
4968
|
+
size: ft ? yn : w,
|
|
4966
4969
|
sticky: S,
|
|
4967
|
-
scroll:
|
|
4968
|
-
title:
|
|
4969
|
-
summary:
|
|
4970
|
+
scroll: xr,
|
|
4971
|
+
title: Dr,
|
|
4972
|
+
summary: Cr,
|
|
4970
4973
|
footer: void 0,
|
|
4971
|
-
onRow:
|
|
4974
|
+
onRow: wr
|
|
4972
4975
|
}
|
|
4973
4976
|
);
|
|
4974
4977
|
return /* @__PURE__ */ le(
|
|
4975
|
-
|
|
4978
|
+
Fn,
|
|
4976
4979
|
{
|
|
4977
4980
|
ref: H,
|
|
4978
4981
|
vertical: !0,
|
|
4979
4982
|
style: { width: "100%", height: "100%", ...ne },
|
|
4980
4983
|
className: ie,
|
|
4981
4984
|
children: [
|
|
4982
|
-
|
|
4985
|
+
Mt && /* @__PURE__ */ y("div", { "data-table-slot": "title", children: Mt }),
|
|
4983
4986
|
/* @__PURE__ */ le("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
|
|
4984
4987
|
v && (() => {
|
|
4985
4988
|
const Z = (pe == null ? void 0 : pe.rowSelectedBg) || "#e6f4ff", fe = (pe == null ? void 0 : pe.rowSelectedHoverBg) || (pe == null ? void 0 : pe.rowSelectedBg) || "#bae0ff", _e = pe == null ? void 0 : pe.rowSelectedColor, Ne = (pe == null ? void 0 : pe.rowSelectedLinkColor) ?? _e, Te = (pe == null ? void 0 : pe.rowSelectedLinkHoverColor) ?? Ne;
|
|
@@ -4995,32 +4998,32 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
4995
4998
|
${Te ? `.ant-table-row-selected > td a:hover { color: ${Te}; }` : ""}
|
|
4996
4999
|
` });
|
|
4997
5000
|
})(),
|
|
4998
|
-
J ? /* @__PURE__ */ y(Ke, { theme: J, children:
|
|
5001
|
+
J ? /* @__PURE__ */ y(Ke, { theme: J, children: bn }) : bn
|
|
4999
5002
|
] }),
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5003
|
+
$t,
|
|
5004
|
+
vn && /* @__PURE__ */ y("div", { "data-table-slot": "footer", children: vn }),
|
|
5005
|
+
Ar,
|
|
5006
|
+
ft && /* @__PURE__ */ y(
|
|
5007
|
+
va,
|
|
5005
5008
|
{
|
|
5006
5009
|
open: Ee,
|
|
5007
5010
|
position: ee,
|
|
5008
5011
|
rowIndexVisible: Fe,
|
|
5009
|
-
columnItems:
|
|
5012
|
+
columnItems: it,
|
|
5010
5013
|
defaultRowIndexVisible: Se,
|
|
5011
5014
|
defaultColumnItems: he,
|
|
5012
|
-
scrollX:
|
|
5015
|
+
scrollX: gr,
|
|
5013
5016
|
defaultScrollX: xe,
|
|
5014
|
-
size:
|
|
5015
|
-
defaultSize:
|
|
5016
|
-
onSave:
|
|
5017
|
-
onClose:
|
|
5017
|
+
size: yn,
|
|
5018
|
+
defaultSize: Ie,
|
|
5019
|
+
onSave: vr,
|
|
5020
|
+
onClose: pr
|
|
5018
5021
|
}
|
|
5019
5022
|
)
|
|
5020
5023
|
]
|
|
5021
5024
|
}
|
|
5022
5025
|
);
|
|
5023
|
-
}, { Text:
|
|
5026
|
+
}, { Text: Sa } = dn, cs = ({
|
|
5024
5027
|
id: t,
|
|
5025
5028
|
sessionId: e,
|
|
5026
5029
|
develop: n,
|
|
@@ -5054,9 +5057,9 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5054
5057
|
[e, C]
|
|
5055
5058
|
), S = k((B) => {
|
|
5056
5059
|
if (!w) return;
|
|
5057
|
-
const R =
|
|
5060
|
+
const R = vt(w).baseName;
|
|
5058
5061
|
return B.dataSets[R];
|
|
5059
|
-
}), { options: x } =
|
|
5062
|
+
}), { options: x } = Et(f), E = d(() => {
|
|
5060
5063
|
if (w && N)
|
|
5061
5064
|
return s(w, N);
|
|
5062
5065
|
}, [w, N, s, S]), T = d(() => {
|
|
@@ -5078,13 +5081,13 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5078
5081
|
if (n)
|
|
5079
5082
|
return O;
|
|
5080
5083
|
const B = (A == null ? void 0 : A.formatType) || b;
|
|
5081
|
-
return B && O !== void 0 && O !== null ?
|
|
5084
|
+
return B && O !== void 0 && O !== null ? Vo(O, B, T) : O;
|
|
5082
5085
|
}, [n, O, b, T, A == null ? void 0 : A.formatType]), z = d(() => {
|
|
5083
5086
|
const B = { ...g };
|
|
5084
5087
|
return A && typeof A == "object" && Object.keys(A).forEach((R) => {
|
|
5085
5088
|
!["content", "formatType", "formatValue", "clickAction"].includes(R) && A[R] !== void 0 && A[R] !== null && (B[R] = A[R]);
|
|
5086
5089
|
}), B;
|
|
5087
|
-
}, [g, A]), q = (A == null ? void 0 : A.color) ?? u, W =
|
|
5090
|
+
}, [g, A]), q = (A == null ? void 0 : A.color) ?? u, W = Ht(q), $ = d(() => {
|
|
5088
5091
|
if (!h) return;
|
|
5089
5092
|
let B = h;
|
|
5090
5093
|
if (typeof h == "string")
|
|
@@ -5105,9 +5108,9 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5105
5108
|
B.fontSize = P;
|
|
5106
5109
|
}
|
|
5107
5110
|
return W && (B.color = W), B;
|
|
5108
|
-
}, [c, W, A == null ? void 0 : A.fontSize]), K = /* @__PURE__ */ y(
|
|
5111
|
+
}, [c, W, A == null ? void 0 : A.fontSize]), K = /* @__PURE__ */ y(Sa, { ...z, style: { ...j, ...v, ...z.style }, children: M != null && M !== "" ? String(M) : r });
|
|
5109
5112
|
return $ ? /* @__PURE__ */ y(Ke, { theme: { token: $ }, children: K }) : K;
|
|
5110
|
-
}, { Title:
|
|
5113
|
+
}, { Title: wa } = dn, ss = ({
|
|
5111
5114
|
id: t,
|
|
5112
5115
|
sessionId: e,
|
|
5113
5116
|
develop: n,
|
|
@@ -5126,7 +5129,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5126
5129
|
), h = d(() => e && t ? p(e, t) : null, [e, t, p]), l = d(() => {
|
|
5127
5130
|
if (v && a)
|
|
5128
5131
|
return m(v, a);
|
|
5129
|
-
}, [v, a, m]), g = d(() => n ? i : l != null && l !== "" ? String(l) : (h == null ? void 0 : h.content) !== void 0 ? h.content : i, [n, l, h == null ? void 0 : h.content, i]), s = (h == null ? void 0 : h.color) ?? u, A =
|
|
5132
|
+
}, [v, a, m]), g = d(() => n ? i : l != null && l !== "" ? String(l) : (h == null ? void 0 : h.content) !== void 0 ? h.content : i, [n, l, h == null ? void 0 : h.content, i]), s = (h == null ? void 0 : h.color) ?? u, A = Ht(s), C = d(() => {
|
|
5130
5133
|
const w = {};
|
|
5131
5134
|
return A && (w.color = A), w;
|
|
5132
5135
|
}, [A]), N = d(() => {
|
|
@@ -5135,8 +5138,8 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5135
5138
|
S !== "content" && h[S] !== void 0 && h[S] !== null && (w[S] = h[S]);
|
|
5136
5139
|
}), w;
|
|
5137
5140
|
}, [b, h]);
|
|
5138
|
-
return /* @__PURE__ */ y(
|
|
5139
|
-
}, { Paragraph:
|
|
5141
|
+
return /* @__PURE__ */ y(wa, { level: c, ...N, style: { ...C, ...f, ...N.style }, children: g || r });
|
|
5142
|
+
}, { Paragraph: xa } = dn, ls = ({
|
|
5140
5143
|
id: t,
|
|
5141
5144
|
sessionId: e,
|
|
5142
5145
|
develop: n,
|
|
@@ -5154,7 +5157,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5154
5157
|
), v = d(() => e && t ? m(e, t) : null, [e, t, m]), h = d(() => {
|
|
5155
5158
|
if (p && a)
|
|
5156
5159
|
return b(p, a);
|
|
5157
|
-
}, [p, a, b]), l = d(() => n ? i : h != null && h !== "" ? String(h) : (v == null ? void 0 : v.content) !== void 0 ? v.content : i, [n, h, v == null ? void 0 : v.content, i]), g = (v == null ? void 0 : v.color) ?? c, s =
|
|
5160
|
+
}, [p, a, b]), l = d(() => n ? i : h != null && h !== "" ? String(h) : (v == null ? void 0 : v.content) !== void 0 ? v.content : i, [n, h, v == null ? void 0 : v.content, i]), g = (v == null ? void 0 : v.color) ?? c, s = Ht(g), A = d(() => {
|
|
5158
5161
|
const N = {};
|
|
5159
5162
|
return s && (N.color = s), N;
|
|
5160
5163
|
}, [s]), C = d(() => {
|
|
@@ -5163,8 +5166,8 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5163
5166
|
w !== "content" && v[w] !== void 0 && v[w] !== null && (N[w] = v[w]);
|
|
5164
5167
|
}), N;
|
|
5165
5168
|
}, [f, v]);
|
|
5166
|
-
return /* @__PURE__ */ y(
|
|
5167
|
-
},
|
|
5169
|
+
return /* @__PURE__ */ y(xa, { ...C, style: { ...A, ...u, ...C.style }, children: l || r });
|
|
5170
|
+
}, Aa = (t) => {
|
|
5168
5171
|
if (!t) return [];
|
|
5169
5172
|
if (typeof t == "string")
|
|
5170
5173
|
try {
|
|
@@ -5173,7 +5176,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5173
5176
|
return [];
|
|
5174
5177
|
}
|
|
5175
5178
|
return t;
|
|
5176
|
-
},
|
|
5179
|
+
}, us = ({
|
|
5177
5180
|
id: t,
|
|
5178
5181
|
sessionId: e,
|
|
5179
5182
|
develop: n,
|
|
@@ -5192,7 +5195,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5192
5195
|
const h = k((T) => T.addCommand), l = k((T) => T.getDataSet), g = k((T) => T.setDataSet), s = d(
|
|
5193
5196
|
() => re(e, i),
|
|
5194
5197
|
[e, i]
|
|
5195
|
-
), A = d(() =>
|
|
5198
|
+
), A = d(() => Aa(o), [o]), C = d(() => a && a.length > 0 ? n ? a.map((T) => ({ ...T, forceRender: !0 })) : a : A.length > 0 ? A.map((T, D) => ({
|
|
5196
5199
|
key: T.key,
|
|
5197
5200
|
label: T.tab,
|
|
5198
5201
|
disabled: T.disabled,
|
|
@@ -5218,7 +5221,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5218
5221
|
s && r && g(s, r, T), c && e && h(e, I(c, T));
|
|
5219
5222
|
}, [n, u, s, r, g, c, e, h]);
|
|
5220
5223
|
return /* @__PURE__ */ y(
|
|
5221
|
-
|
|
5224
|
+
Lr,
|
|
5222
5225
|
{
|
|
5223
5226
|
...v,
|
|
5224
5227
|
activeKey: x,
|
|
@@ -5228,7 +5231,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5228
5231
|
children: p
|
|
5229
5232
|
}
|
|
5230
5233
|
);
|
|
5231
|
-
},
|
|
5234
|
+
}, fs = ({
|
|
5232
5235
|
id: t,
|
|
5233
5236
|
sessionId: e,
|
|
5234
5237
|
develop: n,
|
|
@@ -5398,7 +5401,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5398
5401
|
const V = {};
|
|
5399
5402
|
return n && (V.motion = !1), pe && (V.components = { Tree: pe }), Object.keys(V).length > 0 ? V : void 0;
|
|
5400
5403
|
}, [n, pe]), ue = /* @__PURE__ */ y(
|
|
5401
|
-
|
|
5404
|
+
zr,
|
|
5402
5405
|
{
|
|
5403
5406
|
...q,
|
|
5404
5407
|
...n ? { motion: !1 } : {},
|
|
@@ -5422,7 +5425,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5422
5425
|
}
|
|
5423
5426
|
);
|
|
5424
5427
|
return U ? /* @__PURE__ */ y(Ke, { theme: U, children: ue }) : ue;
|
|
5425
|
-
},
|
|
5428
|
+
}, ds = ({
|
|
5426
5429
|
id: t,
|
|
5427
5430
|
sessionId: e,
|
|
5428
5431
|
develop: n,
|
|
@@ -5460,7 +5463,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5460
5463
|
}), A;
|
|
5461
5464
|
}, [f, v]), s = d(() => u === "left" ? "start" : u === "right" ? "end" : u, [u]);
|
|
5462
5465
|
return /* @__PURE__ */ y(
|
|
5463
|
-
|
|
5466
|
+
Vr,
|
|
5464
5467
|
{
|
|
5465
5468
|
...g,
|
|
5466
5469
|
mode: s,
|
|
@@ -5468,7 +5471,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5468
5471
|
children: r
|
|
5469
5472
|
}
|
|
5470
5473
|
);
|
|
5471
|
-
},
|
|
5474
|
+
}, Zt = (t, e) => {
|
|
5472
5475
|
if (!t) return e;
|
|
5473
5476
|
if (typeof t == "string")
|
|
5474
5477
|
try {
|
|
@@ -5477,7 +5480,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5477
5480
|
return e;
|
|
5478
5481
|
}
|
|
5479
5482
|
return t;
|
|
5480
|
-
},
|
|
5483
|
+
}, ms = ({
|
|
5481
5484
|
id: t,
|
|
5482
5485
|
sessionId: e,
|
|
5483
5486
|
develop: n,
|
|
@@ -5500,14 +5503,14 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5500
5503
|
[e, i]
|
|
5501
5504
|
), N = d(() => {
|
|
5502
5505
|
if (C && r) return s(C, r);
|
|
5503
|
-
}, [C, r, s]), w = d(() => N ?? c ?? 0, [N, c]), S = d(() => b ?? f, [b, f]), x = d(() => p ?? m, [p, m]), E = d(() =>
|
|
5506
|
+
}, [C, r, s]), w = d(() => N ?? c ?? 0, [N, c]), S = d(() => b ?? f, [b, f]), x = d(() => p ?? m, [p, m]), E = d(() => Zt(u, []), [u]), T = d(() => Zt(v, {}), [v]), D = d(() => Zt(h, {}), [h]), _ = L((z) => {
|
|
5504
5507
|
if (a) {
|
|
5505
5508
|
a(z);
|
|
5506
5509
|
return;
|
|
5507
5510
|
}
|
|
5508
5511
|
C && r && A(C, r, z), o && e && g(e, I(o, z));
|
|
5509
5512
|
}, [a, C, r, A, o, e, g]), O = Object.keys(D).length > 0, M = /* @__PURE__ */ y(
|
|
5510
|
-
|
|
5513
|
+
qr,
|
|
5511
5514
|
{
|
|
5512
5515
|
...l,
|
|
5513
5516
|
current: w,
|
|
@@ -5519,28 +5522,28 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5519
5522
|
}
|
|
5520
5523
|
);
|
|
5521
5524
|
return O ? /* @__PURE__ */ y(Ke, { theme: { components: { Steps: D } }, children: M }) : M;
|
|
5522
|
-
},
|
|
5525
|
+
}, hs = ({
|
|
5523
5526
|
id: t,
|
|
5524
5527
|
sessionId: e,
|
|
5525
5528
|
develop: n,
|
|
5526
5529
|
...i
|
|
5527
|
-
}) => /* @__PURE__ */ y(
|
|
5530
|
+
}) => /* @__PURE__ */ y(It, { ...i }), ys = ({
|
|
5528
5531
|
id: t,
|
|
5529
5532
|
sessionId: e,
|
|
5530
5533
|
develop: n,
|
|
5531
5534
|
...i
|
|
5532
5535
|
}) => {
|
|
5533
|
-
const r =
|
|
5536
|
+
const r = It.Timer;
|
|
5534
5537
|
if (r)
|
|
5535
5538
|
return /* @__PURE__ */ y(r, { type: "countdown", ...i });
|
|
5536
|
-
const { Countdown: o } =
|
|
5539
|
+
const { Countdown: o } = It;
|
|
5537
5540
|
return /* @__PURE__ */ y(o, { ...i });
|
|
5538
|
-
},
|
|
5541
|
+
}, Da = {
|
|
5539
5542
|
top: "top",
|
|
5540
5543
|
bottom: "bottom",
|
|
5541
5544
|
left: "start",
|
|
5542
5545
|
right: "end"
|
|
5543
|
-
},
|
|
5546
|
+
}, Ca = (t) => {
|
|
5544
5547
|
if (!t) return [];
|
|
5545
5548
|
if (typeof t == "string")
|
|
5546
5549
|
try {
|
|
@@ -5549,7 +5552,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5549
5552
|
return [];
|
|
5550
5553
|
}
|
|
5551
5554
|
return t;
|
|
5552
|
-
},
|
|
5555
|
+
}, gs = ({
|
|
5553
5556
|
id: t,
|
|
5554
5557
|
sessionId: e,
|
|
5555
5558
|
develop: n,
|
|
@@ -5570,8 +5573,8 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5570
5573
|
), g = d(() => {
|
|
5571
5574
|
if (a) return a;
|
|
5572
5575
|
if (o)
|
|
5573
|
-
return
|
|
5574
|
-
}, [o, a]), s = d(() =>
|
|
5576
|
+
return Da[o] || o;
|
|
5577
|
+
}, [o, a]), s = d(() => Ca(c), [c]), A = L((N) => {
|
|
5575
5578
|
if (f) {
|
|
5576
5579
|
f(N);
|
|
5577
5580
|
return;
|
|
@@ -5589,7 +5592,7 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5589
5592
|
}, children: n ? N.title : null }) }, N.key);
|
|
5590
5593
|
}) : null), [m, s, b, n]);
|
|
5591
5594
|
return /* @__PURE__ */ y(
|
|
5592
|
-
|
|
5595
|
+
Wr,
|
|
5593
5596
|
{
|
|
5594
5597
|
...p,
|
|
5595
5598
|
dotPlacement: g,
|
|
@@ -5598,25 +5601,25 @@ const Gt = 420, Bn = 440, pa = ({
|
|
|
5598
5601
|
}
|
|
5599
5602
|
);
|
|
5600
5603
|
};
|
|
5601
|
-
function
|
|
5604
|
+
function Na(t) {
|
|
5602
5605
|
if (!t || typeof t != "string" || /^(data:|blob:|https?:\/\/)/i.test(t)) return t;
|
|
5603
5606
|
const e = Ue().viewRes;
|
|
5604
5607
|
return e ? e(t) : t;
|
|
5605
5608
|
}
|
|
5606
|
-
const
|
|
5607
|
-
function
|
|
5609
|
+
const Ta = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNmMGYwZjAiLz48cGF0aCBkPSJNNzAgNzBhMTIgMTIgMCAxIDEgMCAyNCAxMiAxMiAwIDAgMSAwLTI0em02MCAxMEw4NSAxMzBsLTI1LTIwLTIwIDE1djE1aDEyMHYtNDB6IiBmaWxsPSIjYmZiZmJmIi8+PC9zdmc+";
|
|
5610
|
+
function ka(t, e, n) {
|
|
5608
5611
|
if (!e) return;
|
|
5609
|
-
const { baseName: i, index: r } =
|
|
5612
|
+
const { baseName: i, index: r } = vt(e), o = t[i];
|
|
5610
5613
|
if (r !== null) {
|
|
5611
5614
|
const a = o == null ? void 0 : o.value;
|
|
5612
5615
|
if (!Array.isArray(a) || a[r] === void 0) return;
|
|
5613
5616
|
const c = a[r];
|
|
5614
|
-
return n ?
|
|
5617
|
+
return n ? Ct(c, yt(n)) : c;
|
|
5615
5618
|
}
|
|
5616
5619
|
if (o)
|
|
5617
|
-
return n ?
|
|
5620
|
+
return n ? Ct(o, yt(n)) : o;
|
|
5618
5621
|
}
|
|
5619
|
-
const
|
|
5622
|
+
const ps = ({
|
|
5620
5623
|
id: t,
|
|
5621
5624
|
sessionId: e,
|
|
5622
5625
|
develop: n,
|
|
@@ -5631,10 +5634,10 @@ const gs = ({
|
|
|
5631
5634
|
() => re(e, i),
|
|
5632
5635
|
[e, i]
|
|
5633
5636
|
), m = k(
|
|
5634
|
-
(g) => b && r ?
|
|
5637
|
+
(g) => b && r ? ka(g.dataSets, b, r) : void 0
|
|
5635
5638
|
), p = d(() => e && t ? f(e, t) : null, [e, t, f]), v = d(() => {
|
|
5636
5639
|
let g;
|
|
5637
|
-
return m != null && m !== "" ? g = String(m) : (p == null ? void 0 : p.src) !== void 0 ? g = p.src : g = c,
|
|
5640
|
+
return m != null && m !== "" ? g = String(m) : (p == null ? void 0 : p.src) !== void 0 ? g = p.src : g = c, Na(g);
|
|
5638
5641
|
}, [m, p == null ? void 0 : p.src, c]), h = d(() => {
|
|
5639
5642
|
const g = { ...u };
|
|
5640
5643
|
return p && typeof p == "object" && Object.keys(p).forEach((s) => {
|
|
@@ -5643,7 +5646,7 @@ const gs = ({
|
|
|
5643
5646
|
}, [u, p]), l = {
|
|
5644
5647
|
...h,
|
|
5645
5648
|
src: v || void 0,
|
|
5646
|
-
fallback: h.fallback ||
|
|
5649
|
+
fallback: h.fallback || Ta,
|
|
5647
5650
|
// Disable preview in designer mode to prevent GrapesJS selection interference
|
|
5648
5651
|
preview: n ? !1 : h.preview,
|
|
5649
5652
|
// Use styles prop instead of CSS overrides (AntD 5.7+)
|
|
@@ -5652,14 +5655,14 @@ const gs = ({
|
|
|
5652
5655
|
image: { width: "100%", height: "100%", objectFit: a }
|
|
5653
5656
|
}
|
|
5654
5657
|
};
|
|
5655
|
-
return /* @__PURE__ */ y("div", { style: { width: "100%", height: "100%", display: "flex" }, children: /* @__PURE__ */ y(
|
|
5656
|
-
}, { PreviewGroup:
|
|
5657
|
-
function
|
|
5658
|
+
return /* @__PURE__ */ y("div", { style: { width: "100%", height: "100%", display: "flex" }, children: /* @__PURE__ */ y(et, { ...l }) });
|
|
5659
|
+
}, { PreviewGroup: _a } = et;
|
|
5660
|
+
function Ea(t) {
|
|
5658
5661
|
if (!t || typeof t != "string" || /^(data:|blob:|https?:\/\/)/i.test(t)) return t;
|
|
5659
5662
|
const e = Ue().viewRes;
|
|
5660
5663
|
return e ? e(t) : t;
|
|
5661
5664
|
}
|
|
5662
|
-
const
|
|
5665
|
+
const vs = ({
|
|
5663
5666
|
id: t,
|
|
5664
5667
|
sessionId: e,
|
|
5665
5668
|
develop: n,
|
|
@@ -5685,15 +5688,15 @@ const ps = ({
|
|
|
5685
5688
|
return n ? g ?? a ?? [] : b ? Array.isArray(g) ? g : [] : a ?? [];
|
|
5686
5689
|
}, [n, b, p, m == null ? void 0 : m.items, a]), h = d(() => v.map((g) => {
|
|
5687
5690
|
const s = typeof g == "string" ? g : g && typeof g == "object" ? g.url ?? g.src : void 0;
|
|
5688
|
-
return
|
|
5691
|
+
return Ea(s);
|
|
5689
5692
|
}).filter((g) => !!g), [v]), l = d(() => {
|
|
5690
5693
|
const g = { ...c };
|
|
5691
5694
|
return m && typeof m == "object" && Object.keys(m).forEach((s) => {
|
|
5692
5695
|
s !== "items" && m[s] !== void 0 && m[s] !== null && (g[s] = m[s]);
|
|
5693
5696
|
}), g;
|
|
5694
5697
|
}, [c, m]);
|
|
5695
|
-
return /* @__PURE__ */ y(
|
|
5696
|
-
},
|
|
5698
|
+
return /* @__PURE__ */ y(_a, { ...l, items: h, children: i });
|
|
5699
|
+
}, bs = ({
|
|
5697
5700
|
id: t,
|
|
5698
5701
|
sessionId: e,
|
|
5699
5702
|
develop: n,
|
|
@@ -5751,7 +5754,7 @@ const ps = ({
|
|
|
5751
5754
|
if (C)
|
|
5752
5755
|
return { components: { Avatar: C } };
|
|
5753
5756
|
}, [C]), w = /* @__PURE__ */ y(
|
|
5754
|
-
|
|
5757
|
+
Pr,
|
|
5755
5758
|
{
|
|
5756
5759
|
...A,
|
|
5757
5760
|
src: g,
|
|
@@ -5760,7 +5763,7 @@ const ps = ({
|
|
|
5760
5763
|
}
|
|
5761
5764
|
);
|
|
5762
5765
|
return N ? /* @__PURE__ */ y(Ke, { theme: N, children: w }) : w;
|
|
5763
|
-
},
|
|
5766
|
+
}, Oa = {
|
|
5764
5767
|
0: "default",
|
|
5765
5768
|
1: "success",
|
|
5766
5769
|
2: "warning",
|
|
@@ -5769,7 +5772,7 @@ const ps = ({
|
|
|
5769
5772
|
false: "default",
|
|
5770
5773
|
yes: "success",
|
|
5771
5774
|
no: "default"
|
|
5772
|
-
},
|
|
5775
|
+
}, Ss = ({
|
|
5773
5776
|
id: t,
|
|
5774
5777
|
sessionId: e,
|
|
5775
5778
|
develop: n,
|
|
@@ -5786,10 +5789,10 @@ const ps = ({
|
|
|
5786
5789
|
clickAction: p,
|
|
5787
5790
|
...v
|
|
5788
5791
|
}) => {
|
|
5789
|
-
const h =
|
|
5792
|
+
const h = _t(o, a, e), l = h.dataSet, g = h.dataSetField, s = h.sessionId, A = d(
|
|
5790
5793
|
() => re(s, l),
|
|
5791
5794
|
[s, l]
|
|
5792
|
-
), { options: C } =
|
|
5795
|
+
), { options: C } = Et(c), N = d(() => {
|
|
5793
5796
|
if (f) {
|
|
5794
5797
|
if (typeof f == "string")
|
|
5795
5798
|
try {
|
|
@@ -5815,7 +5818,7 @@ const ps = ({
|
|
|
5815
5818
|
}, [c, C, x]), T = d(() => {
|
|
5816
5819
|
if (!u || x === void 0 || x === null) return;
|
|
5817
5820
|
const q = String(x).toLowerCase();
|
|
5818
|
-
return N && N[q] ? N[q] :
|
|
5821
|
+
return N && N[q] ? N[q] : Oa[q];
|
|
5819
5822
|
}, [u, x, N]), D = d(() => {
|
|
5820
5823
|
const q = { ...v };
|
|
5821
5824
|
return w && typeof w == "object" && Object.keys(w).forEach((W) => {
|
|
@@ -5824,9 +5827,9 @@ const ps = ({
|
|
|
5824
5827
|
}, [v, w]), _ = d(() => {
|
|
5825
5828
|
const { bordered: q, ...W } = D;
|
|
5826
5829
|
return W;
|
|
5827
|
-
}, [D]), O = (w == null ? void 0 : w.color) ?? b, z =
|
|
5828
|
-
return /* @__PURE__ */ y(
|
|
5829
|
-
},
|
|
5830
|
+
}, [D]), O = (w == null ? void 0 : w.color) ?? b, z = Ht(O) || T;
|
|
5831
|
+
return /* @__PURE__ */ y(Jn, { ..._, color: z, children: E || i });
|
|
5832
|
+
}, ws = ({
|
|
5830
5833
|
id: t,
|
|
5831
5834
|
sessionId: e,
|
|
5832
5835
|
develop: n,
|
|
@@ -5900,7 +5903,7 @@ const ps = ({
|
|
|
5900
5903
|
g && l(g, s ?? "", { current: T, pageSize: D, total: S }), a && e && h(e, I(a, { current: T, pageSize: D }));
|
|
5901
5904
|
}, [u, g, s, l, S, a, e, h]);
|
|
5902
5905
|
return /* @__PURE__ */ y(
|
|
5903
|
-
|
|
5906
|
+
Gn,
|
|
5904
5907
|
{
|
|
5905
5908
|
...v,
|
|
5906
5909
|
current: N,
|
|
@@ -5914,14 +5917,14 @@ const ps = ({
|
|
|
5914
5917
|
}, [v.showTotal])
|
|
5915
5918
|
}
|
|
5916
5919
|
);
|
|
5917
|
-
},
|
|
5920
|
+
}, xs = ({
|
|
5918
5921
|
id: t,
|
|
5919
5922
|
sessionId: e,
|
|
5920
5923
|
develop: n,
|
|
5921
5924
|
items: i,
|
|
5922
5925
|
children: r,
|
|
5923
5926
|
...o
|
|
5924
|
-
}) => /* @__PURE__ */ y(
|
|
5927
|
+
}) => /* @__PURE__ */ y(Hr, { ...o, items: i, children: r }), Lt = (t) => Object.entries(t).map(([e, n]) => `${e.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), Ma = ({ mode: t, arrowStyle: e, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
|
|
5925
5928
|
const o = Me(null), a = Me(null), [c, u] = ve(0), [f, b] = ve(!1), [m, p] = ve(0), [v, h] = ve(0), l = t === "horizontal";
|
|
5926
5929
|
Ae(() => {
|
|
5927
5930
|
const S = () => {
|
|
@@ -5942,7 +5945,7 @@ const ps = ({
|
|
|
5942
5945
|
if (s) return;
|
|
5943
5946
|
const S = l ? ((E = o.current) == null ? void 0 : E.clientWidth) ?? 200 : ((T = o.current) == null ? void 0 : T.clientHeight) ?? 200, x = l ? (((D = a.current) == null ? void 0 : D.scrollWidth) ?? 0) - (((_ = o.current) == null ? void 0 : _.clientWidth) ?? 0) : (((O = a.current) == null ? void 0 : O.scrollHeight) ?? 0) - (((M = o.current) == null ? void 0 : M.clientHeight) ?? 0);
|
|
5944
5947
|
u((z) => Math.min(x, z + S));
|
|
5945
|
-
}, [l, s]), N = n || (l ? /* @__PURE__ */ y(
|
|
5948
|
+
}, [l, s]), N = n || (l ? /* @__PURE__ */ y(tr, {}) : /* @__PURE__ */ y(yi, {})), w = i || (l ? /* @__PURE__ */ y(nr, {}) : /* @__PURE__ */ y(rr, {}));
|
|
5946
5949
|
return /* @__PURE__ */ le(
|
|
5947
5950
|
"div",
|
|
5948
5951
|
{
|
|
@@ -5955,7 +5958,7 @@ const ps = ({
|
|
|
5955
5958
|
},
|
|
5956
5959
|
children: [
|
|
5957
5960
|
/* @__PURE__ */ y(
|
|
5958
|
-
|
|
5961
|
+
nt,
|
|
5959
5962
|
{
|
|
5960
5963
|
type: "text",
|
|
5961
5964
|
size: "middle",
|
|
@@ -6000,7 +6003,7 @@ const ps = ({
|
|
|
6000
6003
|
}
|
|
6001
6004
|
),
|
|
6002
6005
|
/* @__PURE__ */ y(
|
|
6003
|
-
|
|
6006
|
+
nt,
|
|
6004
6007
|
{
|
|
6005
6008
|
type: "text",
|
|
6006
6009
|
size: "middle",
|
|
@@ -6021,7 +6024,7 @@ const ps = ({
|
|
|
6021
6024
|
]
|
|
6022
6025
|
}
|
|
6023
6026
|
);
|
|
6024
|
-
},
|
|
6027
|
+
}, $a = ({ mode: t, children: e }) => /* @__PURE__ */ y(
|
|
6025
6028
|
"div",
|
|
6026
6029
|
{
|
|
6027
6030
|
style: {
|
|
@@ -6033,7 +6036,7 @@ const ps = ({
|
|
|
6033
6036
|
},
|
|
6034
6037
|
children: e
|
|
6035
6038
|
}
|
|
6036
|
-
),
|
|
6039
|
+
), As = ({
|
|
6037
6040
|
id: t,
|
|
6038
6041
|
sessionId: e,
|
|
6039
6042
|
develop: n,
|
|
@@ -6216,32 +6219,32 @@ const ps = ({
|
|
|
6216
6219
|
if (Y) return /* @__PURE__ */ y(Y, {});
|
|
6217
6220
|
}
|
|
6218
6221
|
return z;
|
|
6219
|
-
}, [z]), pe = d(() => _ === "pagination" || _ === "scroll" ? null : w, [_, w]), U =
|
|
6222
|
+
}, [z]), pe = d(() => _ === "pagination" || _ === "scroll" ? null : w, [_, w]), U = li(), J = t || U.replace(/:/g, "-"), ue = d(() => {
|
|
6220
6223
|
var Se;
|
|
6221
6224
|
if (!s || typeof s == "function") return "";
|
|
6222
6225
|
const Y = (Se = s.subMenu) == null ? void 0 : Se.root;
|
|
6223
6226
|
if (!Y) return "";
|
|
6224
6227
|
const se = [], he = `[data-and-menu-id="${J}"]`;
|
|
6225
6228
|
if (Y.item && Object.keys(Y.item).length > 0) {
|
|
6226
|
-
const xe =
|
|
6229
|
+
const xe = Lt(Y.item);
|
|
6227
6230
|
se.push(`${he} .ant-menu-submenu > .ant-menu-submenu-title { ${xe} }`);
|
|
6228
6231
|
}
|
|
6229
6232
|
if (Y.itemIcon && Object.keys(Y.itemIcon).length > 0) {
|
|
6230
|
-
const xe =
|
|
6233
|
+
const xe = Lt(Y.itemIcon);
|
|
6231
6234
|
se.push(`${he} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${xe} }`);
|
|
6232
6235
|
}
|
|
6233
6236
|
if (Y.itemContent && Object.keys(Y.itemContent).length > 0) {
|
|
6234
|
-
const xe =
|
|
6237
|
+
const xe = Lt(Y.itemContent);
|
|
6235
6238
|
se.push(`${he} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${xe} }`);
|
|
6236
6239
|
}
|
|
6237
6240
|
if (Y.selected && Object.keys(Y.selected).length > 0) {
|
|
6238
|
-
const xe =
|
|
6241
|
+
const xe = Lt(Y.selected);
|
|
6239
6242
|
se.push(`${he} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${xe} }`);
|
|
6240
6243
|
}
|
|
6241
6244
|
return se.join(`
|
|
6242
6245
|
`);
|
|
6243
6246
|
}, [s, J]), V = /* @__PURE__ */ y(
|
|
6244
|
-
|
|
6247
|
+
Ur,
|
|
6245
6248
|
{
|
|
6246
6249
|
...W,
|
|
6247
6250
|
...Ee,
|
|
@@ -6262,7 +6265,7 @@ const ps = ({
|
|
|
6262
6265
|
disabledOverflow: _ !== "default"
|
|
6263
6266
|
}
|
|
6264
6267
|
), ce = () => _ === "pagination" ? /* @__PURE__ */ y(
|
|
6265
|
-
|
|
6268
|
+
Ma,
|
|
6266
6269
|
{
|
|
6267
6270
|
mode: E || "horizontal",
|
|
6268
6271
|
arrowStyle: O,
|
|
@@ -6270,7 +6273,7 @@ const ps = ({
|
|
|
6270
6273
|
arrowIconNext: Be,
|
|
6271
6274
|
children: V
|
|
6272
6275
|
}
|
|
6273
|
-
) : _ === "scroll" ? /* @__PURE__ */ y(
|
|
6276
|
+
) : _ === "scroll" ? /* @__PURE__ */ y($a, { mode: E || "horizontal", children: V }) : V, ye = d(() => {
|
|
6274
6277
|
const Y = {};
|
|
6275
6278
|
return n && (Y.motion = !1), Re && (Y.components = { Menu: Re }), Object.keys(Y).length > 0 ? Y : void 0;
|
|
6276
6279
|
}, [n, Re]);
|
|
@@ -6281,12 +6284,12 @@ const ps = ({
|
|
|
6281
6284
|
] }) : Y;
|
|
6282
6285
|
return ye ? /* @__PURE__ */ y(Ke, { theme: ye, children: se }) : se;
|
|
6283
6286
|
})();
|
|
6284
|
-
},
|
|
6287
|
+
}, Ds = ({
|
|
6285
6288
|
id: t,
|
|
6286
6289
|
sessionId: e,
|
|
6287
6290
|
develop: n,
|
|
6288
6291
|
...i
|
|
6289
|
-
}) => /* @__PURE__ */ y(
|
|
6292
|
+
}) => /* @__PURE__ */ y(Yr, { ...i }), Cs = ({
|
|
6290
6293
|
id: t,
|
|
6291
6294
|
sessionId: e,
|
|
6292
6295
|
develop: n,
|
|
@@ -6310,12 +6313,12 @@ const ps = ({
|
|
|
6310
6313
|
[e, i]
|
|
6311
6314
|
), C = d(() => {
|
|
6312
6315
|
if (A && r) return s(A, r);
|
|
6313
|
-
}, [A, r, s]), N = d(() => C ?? o, [C, o]), S = (
|
|
6316
|
+
}, [A, r, s]), N = d(() => C ?? o, [C, o]), S = (tt.useToken ? tt.useToken() : { token: void 0 }).token, x = d(() => {
|
|
6314
6317
|
if (!(!v || typeof v != "string"))
|
|
6315
6318
|
return S && v in S ? S[v] : v;
|
|
6316
6319
|
}, [v, S]);
|
|
6317
6320
|
return /* @__PURE__ */ y(
|
|
6318
|
-
|
|
6321
|
+
Qn,
|
|
6319
6322
|
{
|
|
6320
6323
|
...g,
|
|
6321
6324
|
count: N,
|
|
@@ -6344,7 +6347,7 @@ const ps = ({
|
|
|
6344
6347
|
)
|
|
6345
6348
|
}
|
|
6346
6349
|
);
|
|
6347
|
-
},
|
|
6350
|
+
}, Ns = ({
|
|
6348
6351
|
id: t,
|
|
6349
6352
|
sessionId: e,
|
|
6350
6353
|
develop: n,
|
|
@@ -6361,12 +6364,12 @@ const ps = ({
|
|
|
6361
6364
|
[e, i]
|
|
6362
6365
|
), p = d(() => {
|
|
6363
6366
|
if (m && r) return b(m, r);
|
|
6364
|
-
}, [m, r, b]), v = d(() => p ?? o, [p, o]), l = (
|
|
6367
|
+
}, [m, r, b]), v = d(() => p ?? o, [p, o]), l = (tt.useToken ? tt.useToken() : { token: void 0 }).token, g = d(() => {
|
|
6365
6368
|
if (!(!c || typeof c != "string"))
|
|
6366
6369
|
return l && c in l ? l[c] : c;
|
|
6367
6370
|
}, [c, l]);
|
|
6368
6371
|
return /* @__PURE__ */ y(
|
|
6369
|
-
|
|
6372
|
+
Qn.Ribbon,
|
|
6370
6373
|
{
|
|
6371
6374
|
...f,
|
|
6372
6375
|
text: v,
|
|
@@ -6389,7 +6392,7 @@ const ps = ({
|
|
|
6389
6392
|
)
|
|
6390
6393
|
}
|
|
6391
6394
|
);
|
|
6392
|
-
},
|
|
6395
|
+
}, Ra = (t) => {
|
|
6393
6396
|
if (!t) return [];
|
|
6394
6397
|
if (typeof t == "string")
|
|
6395
6398
|
try {
|
|
@@ -6399,7 +6402,7 @@ const ps = ({
|
|
|
6399
6402
|
return [];
|
|
6400
6403
|
}
|
|
6401
6404
|
return t;
|
|
6402
|
-
},
|
|
6405
|
+
}, ja = (t) => {
|
|
6403
6406
|
if (!(t == null || t === "")) {
|
|
6404
6407
|
if (typeof t == "number") return t;
|
|
6405
6408
|
if (typeof t == "string") {
|
|
@@ -6413,7 +6416,7 @@ const ps = ({
|
|
|
6413
6416
|
}
|
|
6414
6417
|
return t;
|
|
6415
6418
|
}
|
|
6416
|
-
},
|
|
6419
|
+
}, Ba = (t) => {
|
|
6417
6420
|
if (!(t == null || t === "")) {
|
|
6418
6421
|
if (typeof t == "number") return t;
|
|
6419
6422
|
if (typeof t == "string") {
|
|
@@ -6428,7 +6431,7 @@ const ps = ({
|
|
|
6428
6431
|
}
|
|
6429
6432
|
return Array.isArray(t), t;
|
|
6430
6433
|
}
|
|
6431
|
-
},
|
|
6434
|
+
}, Ts = ({
|
|
6432
6435
|
id: t,
|
|
6433
6436
|
sessionId: e,
|
|
6434
6437
|
develop: n,
|
|
@@ -6443,7 +6446,7 @@ const ps = ({
|
|
|
6443
6446
|
itemRender: m,
|
|
6444
6447
|
...p
|
|
6445
6448
|
}) => {
|
|
6446
|
-
const v =
|
|
6449
|
+
const v = _t(i, r, e), h = v.dataSet, l = v.dataSetField, g = v.sessionId, s = Tt(lt), A = k(($) => $.addCommand), C = d(
|
|
6447
6450
|
() => re(g, h),
|
|
6448
6451
|
[g, h]
|
|
6449
6452
|
), N = k(($) => C && l ? $.getDataSet(C, l) : null), w = d(() => !g || t == null || t === "" ? null : s && typeof s.index == "number" ? `${String(t)}_${s.index}` : String(t), [g, t, s]), S = k(
|
|
@@ -6451,7 +6454,7 @@ const ps = ({
|
|
|
6451
6454
|
var j;
|
|
6452
6455
|
return w ? ((j = $.propsStore[`${g}_props`]) == null ? void 0 : j[w]) ?? null : null;
|
|
6453
6456
|
}
|
|
6454
|
-
), x = d(() => N && Array.isArray(N) ? N :
|
|
6457
|
+
), x = d(() => N && Array.isArray(N) ? N : Ra(o), [N, o]), E = (S == null ? void 0 : S.columns) !== void 0 && (S == null ? void 0 : S.columns) !== null ? S.columns : a, T = d(() => ja(E), [E]), D = d(() => Ba(c), [c]), _ = d(() => {
|
|
6455
6458
|
if (b) return b;
|
|
6456
6459
|
if (f && g)
|
|
6457
6460
|
return ($) => {
|
|
@@ -6496,7 +6499,7 @@ const ps = ({
|
|
|
6496
6499
|
return !h || !l ? M : ($, j) => {
|
|
6497
6500
|
const K = typeof j == "number" ? j : typeof ($ == null ? void 0 : $.index) == "number" ? $.index : Number(($ == null ? void 0 : $.index) ?? 0);
|
|
6498
6501
|
return /* @__PURE__ */ y(
|
|
6499
|
-
|
|
6502
|
+
lt.Provider,
|
|
6500
6503
|
{
|
|
6501
6504
|
value: {
|
|
6502
6505
|
dataSet: h,
|
|
@@ -6513,7 +6516,7 @@ const ps = ({
|
|
|
6513
6516
|
...W
|
|
6514
6517
|
} = p;
|
|
6515
6518
|
return /* @__PURE__ */ y(
|
|
6516
|
-
|
|
6519
|
+
Fr,
|
|
6517
6520
|
{
|
|
6518
6521
|
...W,
|
|
6519
6522
|
items: O,
|
|
@@ -6524,7 +6527,7 @@ const ps = ({
|
|
|
6524
6527
|
onLayoutChange: _
|
|
6525
6528
|
}
|
|
6526
6529
|
);
|
|
6527
|
-
},
|
|
6530
|
+
}, ks = ({
|
|
6528
6531
|
id: t,
|
|
6529
6532
|
sessionId: e,
|
|
6530
6533
|
develop: n,
|
|
@@ -6552,7 +6555,7 @@ const ps = ({
|
|
|
6552
6555
|
r && r(w);
|
|
6553
6556
|
}, [r]);
|
|
6554
6557
|
return /* @__PURE__ */ y(
|
|
6555
|
-
|
|
6558
|
+
Zn,
|
|
6556
6559
|
{
|
|
6557
6560
|
...A,
|
|
6558
6561
|
title: s,
|
|
@@ -6560,7 +6563,7 @@ const ps = ({
|
|
|
6560
6563
|
onClose: N
|
|
6561
6564
|
}
|
|
6562
6565
|
);
|
|
6563
|
-
},
|
|
6566
|
+
}, _s = ({
|
|
6564
6567
|
id: t,
|
|
6565
6568
|
sessionId: e,
|
|
6566
6569
|
develop: n,
|
|
@@ -6594,7 +6597,7 @@ const ps = ({
|
|
|
6594
6597
|
});
|
|
6595
6598
|
}, [u, l, r, h, a, e, p]);
|
|
6596
6599
|
return /* @__PURE__ */ y(
|
|
6597
|
-
|
|
6600
|
+
Yn,
|
|
6598
6601
|
{
|
|
6599
6602
|
...m,
|
|
6600
6603
|
open: s,
|
|
@@ -6603,7 +6606,7 @@ const ps = ({
|
|
|
6603
6606
|
children: b
|
|
6604
6607
|
}
|
|
6605
6608
|
);
|
|
6606
|
-
},
|
|
6609
|
+
}, Es = ({
|
|
6607
6610
|
id: t,
|
|
6608
6611
|
sessionId: e,
|
|
6609
6612
|
develop: n,
|
|
@@ -6629,7 +6632,7 @@ const ps = ({
|
|
|
6629
6632
|
});
|
|
6630
6633
|
}, [a, v, r, p, o, e, b]);
|
|
6631
6634
|
return /* @__PURE__ */ y(
|
|
6632
|
-
|
|
6635
|
+
Jr,
|
|
6633
6636
|
{
|
|
6634
6637
|
...f,
|
|
6635
6638
|
open: l,
|
|
@@ -6637,7 +6640,7 @@ const ps = ({
|
|
|
6637
6640
|
children: u
|
|
6638
6641
|
}
|
|
6639
6642
|
);
|
|
6640
|
-
},
|
|
6643
|
+
}, Os = ({
|
|
6641
6644
|
id: t,
|
|
6642
6645
|
sessionId: e,
|
|
6643
6646
|
develop: n,
|
|
@@ -6657,8 +6660,8 @@ const ps = ({
|
|
|
6657
6660
|
};
|
|
6658
6661
|
return Ve(u, a ?? void 0);
|
|
6659
6662
|
}, [o, r, a]);
|
|
6660
|
-
return /* @__PURE__ */ y(
|
|
6661
|
-
},
|
|
6663
|
+
return /* @__PURE__ */ y(Gr, { ...c, children: i });
|
|
6664
|
+
}, fn = (t, e) => {
|
|
6662
6665
|
if (t == null) return e;
|
|
6663
6666
|
if (typeof t == "string")
|
|
6664
6667
|
try {
|
|
@@ -6669,13 +6672,13 @@ const ps = ({
|
|
|
6669
6672
|
return e;
|
|
6670
6673
|
}
|
|
6671
6674
|
return t;
|
|
6672
|
-
},
|
|
6673
|
-
Object.entries(t).map(([e, n]) => [
|
|
6674
|
-
),
|
|
6675
|
+
}, Ka = (t) => t.replace(/-([a-z])/g, (e, n) => n.toUpperCase()), La = (t) => !t || typeof t != "object" || Array.isArray(t) ? t ?? {} : Object.fromEntries(
|
|
6676
|
+
Object.entries(t).map(([e, n]) => [Ka(e), n])
|
|
6677
|
+
), za = (t) => fn(t, []).map((n) => ({
|
|
6675
6678
|
key: n.key,
|
|
6676
6679
|
tab: n.tab,
|
|
6677
6680
|
disabled: n.disabled
|
|
6678
|
-
})),
|
|
6681
|
+
})), Ms = ({
|
|
6679
6682
|
id: t,
|
|
6680
6683
|
sessionId: e,
|
|
6681
6684
|
develop: n,
|
|
@@ -6711,15 +6714,15 @@ const ps = ({
|
|
|
6711
6714
|
() => re(e, i),
|
|
6712
6715
|
[e, i]
|
|
6713
6716
|
), _ = N === "default" ? "medium" : N, O = d(() => {
|
|
6714
|
-
const H =
|
|
6717
|
+
const H = fn(l, {});
|
|
6715
6718
|
return Object.fromEntries(
|
|
6716
6719
|
Object.entries(H).map(([ee, oe]) => [
|
|
6717
6720
|
ee,
|
|
6718
|
-
|
|
6721
|
+
La(oe)
|
|
6719
6722
|
])
|
|
6720
6723
|
);
|
|
6721
6724
|
}, [l]), M = d(() => {
|
|
6722
|
-
const H =
|
|
6725
|
+
const H = za(b);
|
|
6723
6726
|
return H.length > 0 ? H : void 0;
|
|
6724
6727
|
}, [b]), q = d(() => {
|
|
6725
6728
|
if (D && r) {
|
|
@@ -6745,10 +6748,10 @@ const ps = ({
|
|
|
6745
6748
|
ie === "title" && !o ? H = X : ie === "extra" && !a ? ee = X : ie === "cover" && !c ? oe = X : ie === "actions" && !f ? (de = [X], te = !0) : ie === "body" && ne.children ? me.push(ne.children) : me.push(X);
|
|
6746
6749
|
}), { titleSlot: H, extraSlot: ee, coverSlot: oe, actionsSlot: de, otherChildren: me, actionsFromChildren: te };
|
|
6747
6750
|
}, [w, o, a, c, f]), G = d(() => {
|
|
6748
|
-
const H =
|
|
6751
|
+
const H = fn(g, {});
|
|
6749
6752
|
return P ? { actionsLiMargin: "0px", ...H } : H;
|
|
6750
6753
|
}, [g, P]), F = /* @__PURE__ */ y(
|
|
6751
|
-
|
|
6754
|
+
en,
|
|
6752
6755
|
{
|
|
6753
6756
|
...S,
|
|
6754
6757
|
size: _,
|
|
@@ -6766,7 +6769,7 @@ const ps = ({
|
|
|
6766
6769
|
}
|
|
6767
6770
|
);
|
|
6768
6771
|
return G && Object.keys(G).length > 0 ? /* @__PURE__ */ y(Ke, { theme: { components: { Card: G } }, children: F }) : F;
|
|
6769
|
-
},
|
|
6772
|
+
}, $s = ({
|
|
6770
6773
|
id: t,
|
|
6771
6774
|
sessionId: e,
|
|
6772
6775
|
develop: n,
|
|
@@ -6785,10 +6788,10 @@ const ps = ({
|
|
|
6785
6788
|
Divider: a
|
|
6786
6789
|
}
|
|
6787
6790
|
},
|
|
6788
|
-
children: /* @__PURE__ */ y(
|
|
6791
|
+
children: /* @__PURE__ */ y(Sn, { ...c, styles: o, children: u })
|
|
6789
6792
|
}
|
|
6790
|
-
) : /* @__PURE__ */ y(
|
|
6791
|
-
},
|
|
6793
|
+
) : /* @__PURE__ */ y(Sn, { ...c, styles: o, children: u });
|
|
6794
|
+
}, Ln = (t) => {
|
|
6792
6795
|
if (!t) return [];
|
|
6793
6796
|
if (typeof t == "string")
|
|
6794
6797
|
try {
|
|
@@ -6797,13 +6800,13 @@ const ps = ({
|
|
|
6797
6800
|
return [];
|
|
6798
6801
|
}
|
|
6799
6802
|
return t;
|
|
6800
|
-
},
|
|
6803
|
+
}, hr = (t) => t.map((e) => e.divider ? { type: "divider", key: e.key } : {
|
|
6801
6804
|
key: e.key,
|
|
6802
6805
|
label: e.label,
|
|
6803
6806
|
disabled: e.disabled,
|
|
6804
6807
|
danger: e.danger,
|
|
6805
|
-
children: e.children ?
|
|
6806
|
-
}),
|
|
6808
|
+
children: e.children ? hr(e.children) : void 0
|
|
6809
|
+
}), Rs = ({
|
|
6807
6810
|
id: t,
|
|
6808
6811
|
sessionId: e,
|
|
6809
6812
|
develop: n,
|
|
@@ -6821,7 +6824,7 @@ const ps = ({
|
|
|
6821
6824
|
index: h,
|
|
6822
6825
|
...l
|
|
6823
6826
|
}) => {
|
|
6824
|
-
const g = k((D) => D.addCommand), s =
|
|
6827
|
+
const g = k((D) => D.addCommand), s = Tt(lt), A = h ?? (s == null ? void 0 : s.index), C = d(
|
|
6825
6828
|
() => re(e, i),
|
|
6826
6829
|
[e, i]
|
|
6827
6830
|
), N = k((D) => {
|
|
@@ -6833,14 +6836,14 @@ const ps = ({
|
|
|
6833
6836
|
const D = N;
|
|
6834
6837
|
if (Array.isArray(D == null ? void 0 : D.items)) return D.items;
|
|
6835
6838
|
if (Array.isArray(D == null ? void 0 : D.value)) return D.value;
|
|
6836
|
-
}, [N]), S = d(() => n ? w ??
|
|
6839
|
+
}, [N]), S = d(() => n ? w ?? Ln(a) ?? [] : C ? w ?? [] : Ln(a) ?? [], [n, C, w, a]), x = L(
|
|
6837
6840
|
(D, _) => {
|
|
6838
6841
|
if (m) {
|
|
6839
6842
|
m(D, _);
|
|
6840
6843
|
return;
|
|
6841
6844
|
}
|
|
6842
6845
|
if (b && e) {
|
|
6843
|
-
const { actionName: O, arg: M } =
|
|
6846
|
+
const { actionName: O, arg: M } = at(b, D, {
|
|
6844
6847
|
id: t,
|
|
6845
6848
|
dataSet: i,
|
|
6846
6849
|
dataSetField: r,
|
|
@@ -6862,10 +6865,10 @@ const ps = ({
|
|
|
6862
6865
|
]
|
|
6863
6866
|
), E = d(
|
|
6864
6867
|
() => ({
|
|
6865
|
-
items:
|
|
6868
|
+
items: hr(S),
|
|
6866
6869
|
onClick: (D) => {
|
|
6867
6870
|
if (c && e) {
|
|
6868
|
-
const { actionName: _, arg: O } =
|
|
6871
|
+
const { actionName: _, arg: O } = at(c, D.key, {
|
|
6869
6872
|
id: t,
|
|
6870
6873
|
dataSet: i,
|
|
6871
6874
|
dataSetField: r,
|
|
@@ -6878,7 +6881,7 @@ const ps = ({
|
|
|
6878
6881
|
},
|
|
6879
6882
|
onSelect: (D) => {
|
|
6880
6883
|
if (u && e) {
|
|
6881
|
-
const { actionName: _, arg: O } =
|
|
6884
|
+
const { actionName: _, arg: O } = at(u, D.key, {
|
|
6882
6885
|
id: t,
|
|
6883
6886
|
dataSet: i,
|
|
6884
6887
|
dataSetField: r,
|
|
@@ -6892,7 +6895,7 @@ const ps = ({
|
|
|
6892
6895
|
},
|
|
6893
6896
|
onDeselect: (D) => {
|
|
6894
6897
|
if (f && e) {
|
|
6895
|
-
const { actionName: _, arg: O } =
|
|
6898
|
+
const { actionName: _, arg: O } = at(f, D.key, {
|
|
6896
6899
|
id: t,
|
|
6897
6900
|
dataSet: i,
|
|
6898
6901
|
dataSetField: r,
|
|
@@ -6925,33 +6928,33 @@ const ps = ({
|
|
|
6925
6928
|
children: [
|
|
6926
6929
|
p,
|
|
6927
6930
|
n && !p && !v && /* @__PURE__ */ y("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
|
|
6928
|
-
!p && !n && o && /* @__PURE__ */ y(
|
|
6931
|
+
!p && !n && o && /* @__PURE__ */ y(nt, { children: /* @__PURE__ */ le(Ce, { children: [
|
|
6929
6932
|
o,
|
|
6930
|
-
/* @__PURE__ */ y(
|
|
6933
|
+
/* @__PURE__ */ y(rr, {})
|
|
6931
6934
|
] }) })
|
|
6932
6935
|
]
|
|
6933
6936
|
}
|
|
6934
6937
|
), [p, n, o, v]);
|
|
6935
|
-
return /* @__PURE__ */ y(
|
|
6936
|
-
},
|
|
6938
|
+
return /* @__PURE__ */ y(Qr, { ...l, menu: E, onOpenChange: x, children: T });
|
|
6939
|
+
}, js = ({
|
|
6937
6940
|
id: t,
|
|
6938
6941
|
sessionId: e,
|
|
6939
6942
|
develop: n,
|
|
6940
6943
|
children: i,
|
|
6941
6944
|
...r
|
|
6942
|
-
}) => /* @__PURE__ */ y(
|
|
6945
|
+
}) => /* @__PURE__ */ y(Zr, { ...r, children: i }), Bs = ({
|
|
6943
6946
|
id: t,
|
|
6944
6947
|
sessionId: e,
|
|
6945
6948
|
develop: n,
|
|
6946
6949
|
children: i,
|
|
6947
6950
|
...r
|
|
6948
|
-
}) => /* @__PURE__ */ y(
|
|
6951
|
+
}) => /* @__PURE__ */ y(Xr, { ...r, children: i }), Ks = ({
|
|
6949
6952
|
id: t,
|
|
6950
6953
|
sessionId: e,
|
|
6951
6954
|
develop: n,
|
|
6952
6955
|
children: i,
|
|
6953
6956
|
...r
|
|
6954
|
-
}) => /* @__PURE__ */ y(
|
|
6957
|
+
}) => /* @__PURE__ */ y(Fn, { ...r, children: i }), Ls = ({
|
|
6955
6958
|
id: t,
|
|
6956
6959
|
sessionId: e,
|
|
6957
6960
|
develop: n,
|
|
@@ -6971,13 +6974,13 @@ const ps = ({
|
|
|
6971
6974
|
l !== "value" && b[l] !== void 0 && b[l] !== null && (h[l] = b[l]);
|
|
6972
6975
|
}), h;
|
|
6973
6976
|
}, [a, b]);
|
|
6974
|
-
return /* @__PURE__ */ y(
|
|
6975
|
-
},
|
|
6977
|
+
return /* @__PURE__ */ y(Ir, { ...v, value: p || "" });
|
|
6978
|
+
}, wt = (t) => {
|
|
6976
6979
|
if (!t) return;
|
|
6977
6980
|
const e = Ye[t];
|
|
6978
6981
|
if (e)
|
|
6979
6982
|
return Le.createElement(e);
|
|
6980
|
-
},
|
|
6983
|
+
}, Xt = (t, e) => {
|
|
6981
6984
|
if (t == null) return e;
|
|
6982
6985
|
if (typeof t == "string")
|
|
6983
6986
|
try {
|
|
@@ -6988,7 +6991,7 @@ const ps = ({
|
|
|
6988
6991
|
return e;
|
|
6989
6992
|
}
|
|
6990
6993
|
return t;
|
|
6991
|
-
},
|
|
6994
|
+
}, zs = ({
|
|
6992
6995
|
id: t,
|
|
6993
6996
|
sessionId: e,
|
|
6994
6997
|
develop: n,
|
|
@@ -7008,20 +7011,20 @@ const ps = ({
|
|
|
7008
7011
|
...g
|
|
7009
7012
|
}) => {
|
|
7010
7013
|
const s = k((O) => O.addCommand), A = d(
|
|
7011
|
-
() =>
|
|
7014
|
+
() => Xt(i, []),
|
|
7012
7015
|
[i]
|
|
7013
|
-
), C = d(() =>
|
|
7016
|
+
), C = d(() => Xt(v, {}), [v]), N = d(() => wt(a), [a]), w = d(() => {
|
|
7014
7017
|
if (c) {
|
|
7015
7018
|
if (typeof c == "string") {
|
|
7016
|
-
const O =
|
|
7019
|
+
const O = Xt(c, null);
|
|
7017
7020
|
return O && typeof O == "object" ? {
|
|
7018
|
-
start:
|
|
7019
|
-
end:
|
|
7021
|
+
start: wt(O.start),
|
|
7022
|
+
end: wt(O.end)
|
|
7020
7023
|
} : void 0;
|
|
7021
7024
|
}
|
|
7022
7025
|
return {
|
|
7023
|
-
start:
|
|
7024
|
-
end:
|
|
7026
|
+
start: wt(c.start),
|
|
7027
|
+
end: wt(c.end)
|
|
7025
7028
|
};
|
|
7026
7029
|
}
|
|
7027
7030
|
}, [c]), S = L(
|
|
@@ -7045,7 +7048,7 @@ const ps = ({
|
|
|
7045
7048
|
), E = () => h && Le.Children.count(h) > 0 ? Le.Children.map(h, (O, M) => {
|
|
7046
7049
|
const z = A[M] || {};
|
|
7047
7050
|
return /* @__PURE__ */ y(
|
|
7048
|
-
|
|
7051
|
+
Ft.Panel,
|
|
7049
7052
|
{
|
|
7050
7053
|
defaultSize: z.defaultSize,
|
|
7051
7054
|
min: z.min,
|
|
@@ -7057,7 +7060,7 @@ const ps = ({
|
|
|
7057
7060
|
z.key || M
|
|
7058
7061
|
);
|
|
7059
7062
|
}) : A.map((O, M) => /* @__PURE__ */ y(
|
|
7060
|
-
|
|
7063
|
+
Ft.Panel,
|
|
7061
7064
|
{
|
|
7062
7065
|
defaultSize: O.defaultSize || void 0,
|
|
7063
7066
|
min: O.min || void 0,
|
|
@@ -7084,7 +7087,7 @@ const ps = ({
|
|
|
7084
7087
|
},
|
|
7085
7088
|
O.key || M
|
|
7086
7089
|
)), { layout: T, ...D } = g, _ = /* @__PURE__ */ y("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ y(
|
|
7087
|
-
|
|
7090
|
+
Ft,
|
|
7088
7091
|
{
|
|
7089
7092
|
...D,
|
|
7090
7093
|
orientation: r,
|
|
@@ -7100,7 +7103,7 @@ const ps = ({
|
|
|
7100
7103
|
r
|
|
7101
7104
|
) });
|
|
7102
7105
|
return C && Object.keys(C).length > 0 ? /* @__PURE__ */ y(Ke, { theme: { components: { Splitter: C } }, children: _ }) : _;
|
|
7103
|
-
},
|
|
7106
|
+
}, Vs = ({
|
|
7104
7107
|
children: t,
|
|
7105
7108
|
className: e,
|
|
7106
7109
|
style: n,
|
|
@@ -7121,7 +7124,7 @@ const ps = ({
|
|
|
7121
7124
|
...b,
|
|
7122
7125
|
children: t
|
|
7123
7126
|
}
|
|
7124
|
-
),
|
|
7127
|
+
), qs = ({
|
|
7125
7128
|
id: t,
|
|
7126
7129
|
sessionId: e,
|
|
7127
7130
|
develop: n,
|
|
@@ -7165,14 +7168,14 @@ const ps = ({
|
|
|
7165
7168
|
return u ? W.slice(0, u) : W;
|
|
7166
7169
|
}, [M, m, E, D, u]);
|
|
7167
7170
|
if (!M || M.length === 0)
|
|
7168
|
-
return a ? /* @__PURE__ */ y(
|
|
7171
|
+
return a ? /* @__PURE__ */ y(pt, { children: a() }) : /* @__PURE__ */ y("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
|
|
7169
7172
|
const q = (W, $) => {
|
|
7170
7173
|
T(W), $ && _($);
|
|
7171
7174
|
};
|
|
7172
7175
|
return /* @__PURE__ */ le("div", { style: { display: "flex", flexDirection: "column", ...f }, children: [
|
|
7173
7176
|
/* @__PURE__ */ y("div", { style: { flex: 1 }, children: z.map((W, $) => /* @__PURE__ */ y(Le.Fragment, { children: o ? o(W, $) : /* @__PURE__ */ y("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(W) }) }, W.id || $)) }),
|
|
7174
7177
|
!m && M.length > 0 && /* @__PURE__ */ y("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ y(
|
|
7175
|
-
|
|
7178
|
+
Gn,
|
|
7176
7179
|
{
|
|
7177
7180
|
current: E,
|
|
7178
7181
|
pageSize: D,
|
|
@@ -7188,7 +7191,7 @@ const ps = ({
|
|
|
7188
7191
|
}
|
|
7189
7192
|
) })
|
|
7190
7193
|
] });
|
|
7191
|
-
},
|
|
7194
|
+
}, Va = "@keyframes and-icon-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}", qa = ".and-icon-svg-root svg,.and-icon-svg-root svg path{fill:currentColor}.and-icon-svg-root svg{color:inherit}", Ws = ({
|
|
7192
7195
|
id: t,
|
|
7193
7196
|
sessionId: e,
|
|
7194
7197
|
develop: n,
|
|
@@ -7220,9 +7223,9 @@ const ps = ({
|
|
|
7220
7223
|
transform: u ? `rotate(${u}deg)` : void 0,
|
|
7221
7224
|
...h
|
|
7222
7225
|
};
|
|
7223
|
-
return /* @__PURE__ */ le(
|
|
7224
|
-
/* @__PURE__ */ y("style", { children:
|
|
7225
|
-
c && /* @__PURE__ */ y("style", { children:
|
|
7226
|
+
return /* @__PURE__ */ le(pt, { children: [
|
|
7227
|
+
/* @__PURE__ */ y("style", { children: qa }),
|
|
7228
|
+
c && /* @__PURE__ */ y("style", { children: Va }),
|
|
7226
7229
|
/* @__PURE__ */ y(
|
|
7227
7230
|
"span",
|
|
7228
7231
|
{
|
|
@@ -7253,7 +7256,7 @@ const ps = ({
|
|
|
7253
7256
|
onClick: p
|
|
7254
7257
|
}
|
|
7255
7258
|
) : (console.warn(`Icon "${i}" not found in @ant-design/icons`), null);
|
|
7256
|
-
},
|
|
7259
|
+
}, Ps = ({
|
|
7257
7260
|
id: t,
|
|
7258
7261
|
sessionId: e,
|
|
7259
7262
|
develop: n,
|
|
@@ -7277,13 +7280,13 @@ const ps = ({
|
|
|
7277
7280
|
c && e && f(e, I(c, l));
|
|
7278
7281
|
};
|
|
7279
7282
|
return /* @__PURE__ */ y("div", { style: { display: "grid", gridTemplateColumns: `repeat(${a}, 1fr)`, gap: 16, ...u }, children: v.map((l) => /* @__PURE__ */ y(
|
|
7280
|
-
|
|
7283
|
+
en,
|
|
7281
7284
|
{
|
|
7282
7285
|
hoverable: !0,
|
|
7283
7286
|
cover: l.image && /* @__PURE__ */ y("img", { alt: l.name, src: l.image, style: { height: 200, objectFit: "cover" } }),
|
|
7284
7287
|
onClick: () => h(l),
|
|
7285
7288
|
children: /* @__PURE__ */ y(
|
|
7286
|
-
|
|
7289
|
+
en.Meta,
|
|
7287
7290
|
{
|
|
7288
7291
|
title: l.name,
|
|
7289
7292
|
description: /* @__PURE__ */ le(Ce, { direction: "vertical", size: 4, children: [
|
|
@@ -7297,14 +7300,14 @@ const ps = ({
|
|
|
7297
7300
|
l.originalPrice
|
|
7298
7301
|
] })
|
|
7299
7302
|
] }),
|
|
7300
|
-
l.tags && l.tags.length > 0 && /* @__PURE__ */ y(Ce, { size: 4, wrap: !0, children: l.tags.map((g, s) => /* @__PURE__ */ y(
|
|
7303
|
+
l.tags && l.tags.length > 0 && /* @__PURE__ */ y(Ce, { size: 4, wrap: !0, children: l.tags.map((g, s) => /* @__PURE__ */ y(Jn, { color: "blue", children: g }, s)) })
|
|
7301
7304
|
] })
|
|
7302
7305
|
}
|
|
7303
7306
|
)
|
|
7304
7307
|
},
|
|
7305
7308
|
l.id
|
|
7306
7309
|
)) });
|
|
7307
|
-
},
|
|
7310
|
+
}, zn = ({ id: t, icon: e, title: n, description: i, style: r }) => /* @__PURE__ */ le(
|
|
7308
7311
|
"div",
|
|
7309
7312
|
{
|
|
7310
7313
|
id: t,
|
|
@@ -7326,12 +7329,12 @@ const ps = ({
|
|
|
7326
7329
|
...r
|
|
7327
7330
|
},
|
|
7328
7331
|
children: [
|
|
7329
|
-
e || /* @__PURE__ */ y(
|
|
7332
|
+
e || /* @__PURE__ */ y(pi, { style: { fontSize: 28, marginBottom: 8, color: "#bfbfbf" } }),
|
|
7330
7333
|
n && /* @__PURE__ */ y("div", { style: { fontWeight: 500, fontSize: 13, marginBottom: 4 }, children: n }),
|
|
7331
7334
|
i && /* @__PURE__ */ y("div", { style: { fontSize: 12, opacity: 0.7 }, children: i })
|
|
7332
7335
|
]
|
|
7333
7336
|
}
|
|
7334
|
-
),
|
|
7337
|
+
), Hs = ({
|
|
7335
7338
|
componentName: t,
|
|
7336
7339
|
componentProps: e = {},
|
|
7337
7340
|
storePropsKey: n,
|
|
@@ -7348,7 +7351,7 @@ const ps = ({
|
|
|
7348
7351
|
var x, E;
|
|
7349
7352
|
const { storeBaseKey: p, arrayIndex: v } = d(() => {
|
|
7350
7353
|
if (!n) return { storeBaseKey: void 0, arrayIndex: null };
|
|
7351
|
-
const T = n.split(".")[0], { baseName: D, index: _ } =
|
|
7354
|
+
const T = n.split(".")[0], { baseName: D, index: _ } = vt(T);
|
|
7352
7355
|
let O = _;
|
|
7353
7356
|
if (O === null && m !== void 0 && m !== null) {
|
|
7354
7357
|
const M = Number(m);
|
|
@@ -7409,7 +7412,7 @@ const ps = ({
|
|
|
7409
7412
|
boxSizing: "border-box"
|
|
7410
7413
|
},
|
|
7411
7414
|
children: [
|
|
7412
|
-
/* @__PURE__ */ y(
|
|
7415
|
+
/* @__PURE__ */ y(gi, { style: { fontSize: 20, flexShrink: 0, color: "#bfbfbf", ...T ? {} : { marginBottom: 4 } } }),
|
|
7413
7416
|
/* @__PURE__ */ y("div", { style: { fontWeight: 500, fontSize: 12 }, children: r || "动态容器" }),
|
|
7414
7417
|
/* @__PURE__ */ y("div", { style: { fontSize: 11, opacity: 0.7 }, children: s ? `${s}` : "未配置" }),
|
|
7415
7418
|
n && /* @__PURE__ */ y("div", { style: { fontSize: 10, opacity: 0.5, marginTop: T ? 0 : 2 }, children: n })
|
|
@@ -7420,7 +7423,7 @@ const ps = ({
|
|
|
7420
7423
|
const N = Ue(), w = u || N.componentResolver;
|
|
7421
7424
|
if (!w)
|
|
7422
7425
|
return /* @__PURE__ */ y(
|
|
7423
|
-
|
|
7426
|
+
zn,
|
|
7424
7427
|
{
|
|
7425
7428
|
id: c,
|
|
7426
7429
|
title: C,
|
|
@@ -7429,14 +7432,14 @@ const ps = ({
|
|
|
7429
7432
|
}
|
|
7430
7433
|
);
|
|
7431
7434
|
const S = s ? w(s) : null;
|
|
7432
|
-
return S ? /* @__PURE__ */ y(
|
|
7433
|
-
|
|
7435
|
+
return S ? /* @__PURE__ */ y(ui, { fallback: /* @__PURE__ */ y("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ y(Xn, {}) }), children: /* @__PURE__ */ y("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...a }, children: g && v !== null ? /* @__PURE__ */ y(
|
|
7436
|
+
lt.Provider,
|
|
7434
7437
|
{
|
|
7435
7438
|
value: { dataSet: g, index: v, sessionId: i },
|
|
7436
7439
|
children: /* @__PURE__ */ y(S, { ...A })
|
|
7437
7440
|
}
|
|
7438
7441
|
) : /* @__PURE__ */ y(S, { ...A }) }) }) : /* @__PURE__ */ y(
|
|
7439
|
-
|
|
7442
|
+
zn,
|
|
7440
7443
|
{
|
|
7441
7444
|
id: c,
|
|
7442
7445
|
title: C,
|
|
@@ -7444,7 +7447,7 @@ const ps = ({
|
|
|
7444
7447
|
style: a
|
|
7445
7448
|
}
|
|
7446
7449
|
);
|
|
7447
|
-
},
|
|
7450
|
+
}, Us = ({
|
|
7448
7451
|
content: t = "Watermark",
|
|
7449
7452
|
width: e,
|
|
7450
7453
|
height: n,
|
|
@@ -7468,7 +7471,7 @@ const ps = ({
|
|
|
7468
7471
|
fontStyle: (f == null ? void 0 : f.fontStyle) ?? "normal",
|
|
7469
7472
|
textAlign: (f == null ? void 0 : f.textAlign) ?? "center"
|
|
7470
7473
|
}, l = /* @__PURE__ */ y(
|
|
7471
|
-
|
|
7474
|
+
ei,
|
|
7472
7475
|
{
|
|
7473
7476
|
content: t,
|
|
7474
7477
|
width: e,
|
|
@@ -7502,7 +7505,7 @@ const ps = ({
|
|
|
7502
7505
|
Ke,
|
|
7503
7506
|
{
|
|
7504
7507
|
theme: {
|
|
7505
|
-
algorithm:
|
|
7508
|
+
algorithm: tt.defaultAlgorithm,
|
|
7506
7509
|
token: m
|
|
7507
7510
|
},
|
|
7508
7511
|
children: l
|
|
@@ -7528,23 +7531,23 @@ if (typeof URL < "u") {
|
|
|
7528
7531
|
}
|
|
7529
7532
|
});
|
|
7530
7533
|
}
|
|
7531
|
-
let
|
|
7532
|
-
function
|
|
7533
|
-
typeof window > "u" || (
|
|
7534
|
+
let yr = !1, Vn = !1;
|
|
7535
|
+
function Ys(t) {
|
|
7536
|
+
typeof window > "u" || (ir.GlobalWorkerOptions.workerSrc = t, yr = !0);
|
|
7534
7537
|
}
|
|
7535
|
-
function
|
|
7538
|
+
function Wa(t) {
|
|
7536
7539
|
var i, r;
|
|
7537
|
-
if (typeof window > "u" ||
|
|
7540
|
+
if (typeof window > "u" || yr) return;
|
|
7538
7541
|
const e = (i = Ue().pdfWorkerFallbackUrl) == null ? void 0 : i.trim(), n = (r = t ?? e) == null ? void 0 : r.trim();
|
|
7539
7542
|
if (n) {
|
|
7540
|
-
|
|
7543
|
+
ir.GlobalWorkerOptions.workerSrc = n;
|
|
7541
7544
|
return;
|
|
7542
7545
|
}
|
|
7543
|
-
|
|
7546
|
+
Vn || (Vn = !0, console.warn(
|
|
7544
7547
|
"[@nuwatop/code-canvas-core] PDF worker 未配置。请在入口调用 setPdfjsWorkerSrc(localUrl),或通过 setCoreConfig({ pdfWorkerFallbackUrl }) 指定同源脚本地址。"
|
|
7545
7548
|
));
|
|
7546
7549
|
}
|
|
7547
|
-
const
|
|
7550
|
+
const Pa = 0.5, Ha = 3, qn = 0.1, Fs = ({
|
|
7548
7551
|
id: t,
|
|
7549
7552
|
sessionId: e,
|
|
7550
7553
|
develop: n,
|
|
@@ -7561,7 +7564,7 @@ const Wa = 0.5, Pa = 3, Vn = 0.1, Ys = ({
|
|
|
7561
7564
|
style: v
|
|
7562
7565
|
}) => {
|
|
7563
7566
|
Ae(() => {
|
|
7564
|
-
|
|
7567
|
+
Wa();
|
|
7565
7568
|
}, []);
|
|
7566
7569
|
const h = k((Q) => Q.setDataSet), l = d(
|
|
7567
7570
|
() => re(e, i),
|
|
@@ -7668,15 +7671,15 @@ const Wa = 0.5, Pa = 3, Vn = 0.1, Ys = ({
|
|
|
7668
7671
|
if (Y) return;
|
|
7669
7672
|
se++;
|
|
7670
7673
|
const xe = Math.max(1, Math.min(Math.floor(Q), N));
|
|
7671
|
-
let
|
|
7674
|
+
let Ie = !0;
|
|
7672
7675
|
for (let Fe = 1; Fe <= xe; Fe++) {
|
|
7673
|
-
const
|
|
7674
|
-
if (!
|
|
7675
|
-
|
|
7676
|
+
const it = R.current[Fe];
|
|
7677
|
+
if (!it || !it.isConnected || it.clientHeight <= 50) {
|
|
7678
|
+
Ie = !1;
|
|
7676
7679
|
break;
|
|
7677
7680
|
}
|
|
7678
7681
|
}
|
|
7679
|
-
if (
|
|
7682
|
+
if (Ie) {
|
|
7680
7683
|
requestAnimationFrame(() => {
|
|
7681
7684
|
if (Y) return;
|
|
7682
7685
|
const Fe = R.current[xe];
|
|
@@ -7699,7 +7702,7 @@ const Wa = 0.5, Pa = 3, Vn = 0.1, Ys = ({
|
|
|
7699
7702
|
const U = L((Q) => {
|
|
7700
7703
|
j((Y) => {
|
|
7701
7704
|
const se = Number((Y + Q).toFixed(2));
|
|
7702
|
-
return Math.max(
|
|
7705
|
+
return Math.max(Pa, Math.min(Ha, se));
|
|
7703
7706
|
});
|
|
7704
7707
|
}, []), J = L(() => {
|
|
7705
7708
|
if (!A) return;
|
|
@@ -7729,8 +7732,8 @@ const Wa = 0.5, Pa = 3, Vn = 0.1, Ys = ({
|
|
|
7729
7732
|
for (let Se = 1; Se <= N; Se++) {
|
|
7730
7733
|
const xe = R.current[Se];
|
|
7731
7734
|
if (!xe) continue;
|
|
7732
|
-
const
|
|
7733
|
-
|
|
7735
|
+
const Ie = Math.abs(xe.offsetTop - Y);
|
|
7736
|
+
Ie < he && (he = Ie, se = Se);
|
|
7734
7737
|
}
|
|
7735
7738
|
se !== S && x(se);
|
|
7736
7739
|
}, [_, M, N, S]);
|
|
@@ -7761,10 +7764,10 @@ const Wa = 0.5, Pa = 3, Vn = 0.1, Ys = ({
|
|
|
7761
7764
|
W("height"), j(1);
|
|
7762
7765
|
break;
|
|
7763
7766
|
case "zoomIn":
|
|
7764
|
-
U(
|
|
7767
|
+
U(qn);
|
|
7765
7768
|
break;
|
|
7766
7769
|
case "zoomOut":
|
|
7767
|
-
U(-
|
|
7770
|
+
U(-qn);
|
|
7768
7771
|
break;
|
|
7769
7772
|
case "previewSingle":
|
|
7770
7773
|
z("single");
|
|
@@ -7818,13 +7821,13 @@ const Wa = 0.5, Pa = 3, Vn = 0.1, Ys = ({
|
|
|
7818
7821
|
border: n ? "1px dashed #ccc" : void 0
|
|
7819
7822
|
},
|
|
7820
7823
|
children: T ? /* @__PURE__ */ y(
|
|
7821
|
-
|
|
7824
|
+
Zn,
|
|
7822
7825
|
{
|
|
7823
7826
|
type: "error",
|
|
7824
7827
|
message: (u == null ? void 0 : u.trim()) || T.message,
|
|
7825
7828
|
showIcon: !0
|
|
7826
7829
|
}
|
|
7827
|
-
) : A ? /* @__PURE__ */ le(
|
|
7830
|
+
) : A ? /* @__PURE__ */ le(pt, { children: [
|
|
7828
7831
|
_ ? /* @__PURE__ */ y(
|
|
7829
7832
|
"div",
|
|
7830
7833
|
{
|
|
@@ -7838,11 +7841,11 @@ const Wa = 0.5, Pa = 3, Vn = 0.1, Ys = ({
|
|
|
7838
7841
|
zIndex: 2,
|
|
7839
7842
|
pointerEvents: "none"
|
|
7840
7843
|
},
|
|
7841
|
-
children: /* @__PURE__ */ y(
|
|
7844
|
+
children: /* @__PURE__ */ y(Xn, {})
|
|
7842
7845
|
}
|
|
7843
7846
|
) : null,
|
|
7844
7847
|
/* @__PURE__ */ y(
|
|
7845
|
-
|
|
7848
|
+
Si,
|
|
7846
7849
|
{
|
|
7847
7850
|
file: A,
|
|
7848
7851
|
onLoadSuccess: Be,
|
|
@@ -7862,7 +7865,7 @@ const Wa = 0.5, Pa = 3, Vn = 0.1, Ys = ({
|
|
|
7862
7865
|
padding: "8px 0"
|
|
7863
7866
|
},
|
|
7864
7867
|
children: /* @__PURE__ */ y(
|
|
7865
|
-
|
|
7868
|
+
wi,
|
|
7866
7869
|
{
|
|
7867
7870
|
pageNumber: Q,
|
|
7868
7871
|
width: q === "width" ? ge : void 0,
|
|
@@ -7889,10 +7892,10 @@ const Wa = 0.5, Pa = 3, Vn = 0.1, Ys = ({
|
|
|
7889
7892
|
padding: 24
|
|
7890
7893
|
},
|
|
7891
7894
|
children: /* @__PURE__ */ y(
|
|
7892
|
-
|
|
7895
|
+
ti,
|
|
7893
7896
|
{
|
|
7894
7897
|
image: /* @__PURE__ */ y(
|
|
7895
|
-
|
|
7898
|
+
vi,
|
|
7896
7899
|
{
|
|
7897
7900
|
style: {
|
|
7898
7901
|
fontSize: 72,
|
|
@@ -7923,7 +7926,7 @@ const Wa = 0.5, Pa = 3, Vn = 0.1, Ys = ({
|
|
|
7923
7926
|
}
|
|
7924
7927
|
);
|
|
7925
7928
|
};
|
|
7926
|
-
function
|
|
7929
|
+
function Js(t, e, n, i) {
|
|
7927
7930
|
const { getProps: r, setProps: o } = k.getState(), a = r(t, e), c = a && typeof a == "object" && !Array.isArray(a) ? a : {};
|
|
7928
7931
|
o(t, e, {
|
|
7929
7932
|
...c,
|
|
@@ -7944,10 +7947,10 @@ function ke(t) {
|
|
|
7944
7947
|
return t;
|
|
7945
7948
|
}
|
|
7946
7949
|
}
|
|
7947
|
-
function
|
|
7950
|
+
function Ua(t, e) {
|
|
7948
7951
|
return t == null || t === "" ? e : t === !0 || t === "true" ? !0 : t === !1 || t === "false" ? !1 : e;
|
|
7949
7952
|
}
|
|
7950
|
-
function
|
|
7953
|
+
function rt(t, e) {
|
|
7951
7954
|
const { chartType: n, defaultHeight: i = 300, defaultData: r = [] } = e, o = (a) => {
|
|
7952
7955
|
const {
|
|
7953
7956
|
// 基础组件 props(不传给图表)
|
|
@@ -8022,7 +8025,7 @@ function nt(t, e) {
|
|
|
8022
8025
|
data: P,
|
|
8023
8026
|
// 优先使用 common 中的配置,没配置则使用默认值
|
|
8024
8027
|
height: F.height ?? i,
|
|
8025
|
-
autoFit:
|
|
8028
|
+
autoFit: Ua(F.autoFit, !0),
|
|
8026
8029
|
// 合并其他通用配置 (margin, padding, insert, etc.)
|
|
8027
8030
|
...F,
|
|
8028
8031
|
// 设计器模式禁用动画
|
|
@@ -8056,18 +8059,18 @@ function nt(t, e) {
|
|
|
8056
8059
|
};
|
|
8057
8060
|
return o.displayName = `withBaseChart(${n})`, o;
|
|
8058
8061
|
}
|
|
8059
|
-
const
|
|
8062
|
+
const Ya = [
|
|
8060
8063
|
{ year: "2020", value: 3 },
|
|
8061
8064
|
{ year: "2021", value: 4 },
|
|
8062
8065
|
{ year: "2022", value: 3.5 },
|
|
8063
8066
|
{ year: "2023", value: 5 },
|
|
8064
8067
|
{ year: "2024", value: 4.9 },
|
|
8065
8068
|
{ year: "2025", value: 6 }
|
|
8066
|
-
],
|
|
8069
|
+
], Fa = rt(xi, {
|
|
8067
8070
|
chartType: "AndVLine",
|
|
8068
8071
|
defaultHeight: 300,
|
|
8069
|
-
defaultData:
|
|
8070
|
-
}),
|
|
8072
|
+
defaultData: Ya
|
|
8073
|
+
}), Gs = (t) => {
|
|
8071
8074
|
const {
|
|
8072
8075
|
xField: e = "year",
|
|
8073
8076
|
yField: n = "value",
|
|
@@ -8078,7 +8081,7 @@ const Ua = [
|
|
|
8078
8081
|
...c
|
|
8079
8082
|
} = t;
|
|
8080
8083
|
return /* @__PURE__ */ y(
|
|
8081
|
-
|
|
8084
|
+
Fa,
|
|
8082
8085
|
{
|
|
8083
8086
|
...c,
|
|
8084
8087
|
xField: e,
|
|
@@ -8089,18 +8092,18 @@ const Ua = [
|
|
|
8089
8092
|
lineStyle: a
|
|
8090
8093
|
}
|
|
8091
8094
|
);
|
|
8092
|
-
},
|
|
8095
|
+
}, Ja = [
|
|
8093
8096
|
{ category: "一月", value: 38 },
|
|
8094
8097
|
{ category: "二月", value: 52 },
|
|
8095
8098
|
{ category: "三月", value: 61 },
|
|
8096
8099
|
{ category: "四月", value: 45 },
|
|
8097
8100
|
{ category: "五月", value: 48 },
|
|
8098
8101
|
{ category: "六月", value: 58 }
|
|
8099
|
-
],
|
|
8102
|
+
], Ga = rt(Ai, {
|
|
8100
8103
|
chartType: "AndVColumn",
|
|
8101
8104
|
defaultHeight: 300,
|
|
8102
|
-
defaultData:
|
|
8103
|
-
}),
|
|
8105
|
+
defaultData: Ja
|
|
8106
|
+
}), Qs = (t) => {
|
|
8104
8107
|
const {
|
|
8105
8108
|
xField: e = "category",
|
|
8106
8109
|
yField: n = "value",
|
|
@@ -8114,19 +8117,19 @@ const Ua = [
|
|
|
8114
8117
|
xField: e,
|
|
8115
8118
|
yField: n
|
|
8116
8119
|
};
|
|
8117
|
-
return i && (u.seriesField = i), r && (u.isGroup = r), o && (u.isStack = o), a && (u.columnWidth = a), /* @__PURE__ */ y(
|
|
8118
|
-
},
|
|
8120
|
+
return i && (u.seriesField = i), r && (u.isGroup = r), o && (u.isStack = o), a && (u.columnWidth = a), /* @__PURE__ */ y(Ga, { ...u });
|
|
8121
|
+
}, Qa = [
|
|
8119
8122
|
{ type: "分类一", value: 27 },
|
|
8120
8123
|
{ type: "分类二", value: 25 },
|
|
8121
8124
|
{ type: "分类三", value: 18 },
|
|
8122
8125
|
{ type: "分类四", value: 15 },
|
|
8123
8126
|
{ type: "分类五", value: 10 },
|
|
8124
8127
|
{ type: "其他", value: 5 }
|
|
8125
|
-
],
|
|
8128
|
+
], Za = rt(Di, {
|
|
8126
8129
|
chartType: "AndVPie",
|
|
8127
8130
|
defaultHeight: 300,
|
|
8128
|
-
defaultData:
|
|
8129
|
-
}),
|
|
8131
|
+
defaultData: Qa
|
|
8132
|
+
}), Zs = (t) => {
|
|
8130
8133
|
const {
|
|
8131
8134
|
angleField: e = "value",
|
|
8132
8135
|
colorField: n = "type",
|
|
@@ -8139,8 +8142,8 @@ const Ua = [
|
|
|
8139
8142
|
colorField: n,
|
|
8140
8143
|
radius: i
|
|
8141
8144
|
};
|
|
8142
|
-
return r !== void 0 && r > 0 && (a.innerRadius = r), /* @__PURE__ */ y(
|
|
8143
|
-
},
|
|
8145
|
+
return r !== void 0 && r > 0 && (a.innerRadius = r), /* @__PURE__ */ y(Za, { ...a });
|
|
8146
|
+
}, Xa = rt(Ci, {
|
|
8144
8147
|
chartType: "AndVArea",
|
|
8145
8148
|
defaultHeight: 300,
|
|
8146
8149
|
defaultData: [
|
|
@@ -8154,7 +8157,7 @@ const Ua = [
|
|
|
8154
8157
|
{ year: "1998", value: 9 },
|
|
8155
8158
|
{ year: "1999", value: 13 }
|
|
8156
8159
|
]
|
|
8157
|
-
}),
|
|
8160
|
+
}), Xs = (t) => {
|
|
8158
8161
|
const {
|
|
8159
8162
|
// 字段
|
|
8160
8163
|
xField: e,
|
|
@@ -8179,8 +8182,8 @@ const Ua = [
|
|
|
8179
8182
|
const l = ke(c);
|
|
8180
8183
|
l !== void 0 && (h.line = l);
|
|
8181
8184
|
const g = ke(u);
|
|
8182
|
-
return g !== void 0 && (h.point = g), /* @__PURE__ */ y(
|
|
8183
|
-
},
|
|
8185
|
+
return g !== void 0 && (h.point = g), /* @__PURE__ */ y(Xa, { ...h });
|
|
8186
|
+
}, Ia = rt(Ni, {
|
|
8184
8187
|
chartType: "AndVDualAxes",
|
|
8185
8188
|
defaultHeight: 300,
|
|
8186
8189
|
defaultData: [
|
|
@@ -8194,7 +8197,7 @@ const Ua = [
|
|
|
8194
8197
|
{ year: "1998", value: 9, count: 1 },
|
|
8195
8198
|
{ year: "1999", value: 13, count: 20 }
|
|
8196
8199
|
]
|
|
8197
|
-
}),
|
|
8200
|
+
}), Is = (t) => {
|
|
8198
8201
|
const {
|
|
8199
8202
|
// 字段
|
|
8200
8203
|
xField: e,
|
|
@@ -8211,33 +8214,33 @@ const Ua = [
|
|
|
8211
8214
|
const u = ke(n);
|
|
8212
8215
|
u ? c.yField = u : n && (c.yField = n), i && (c.seriesField = i), r && (c.colorField = r);
|
|
8213
8216
|
const f = ke(o);
|
|
8214
|
-
return f !== void 0 && (c.children = f), /* @__PURE__ */ y(
|
|
8215
|
-
},
|
|
8217
|
+
return f !== void 0 && (c.children = f), /* @__PURE__ */ y(Ia, { ...c });
|
|
8218
|
+
}, ec = rt(Ti, {
|
|
8216
8219
|
chartType: "AndVGauge",
|
|
8217
8220
|
defaultHeight: 300,
|
|
8218
8221
|
defaultData: { percent: 0.7 }
|
|
8219
8222
|
// Gauge 默认数据
|
|
8220
|
-
}),
|
|
8223
|
+
}), el = (t) => {
|
|
8221
8224
|
const {
|
|
8222
8225
|
...e
|
|
8223
8226
|
} = t, n = {
|
|
8224
8227
|
...e
|
|
8225
8228
|
};
|
|
8226
|
-
return console.log("[AndVGauge] chartProps:", JSON.stringify(n, null, 2)), /* @__PURE__ */ y(
|
|
8227
|
-
},
|
|
8229
|
+
return console.log("[AndVGauge] chartProps:", JSON.stringify(n, null, 2)), /* @__PURE__ */ y(ec, { ...n });
|
|
8230
|
+
}, tc = rt(ki, {
|
|
8228
8231
|
chartType: "AndVLiquid",
|
|
8229
8232
|
defaultHeight: 300,
|
|
8230
8233
|
defaultData: 0.25
|
|
8231
8234
|
// Liquid 默认 percent (注意:Liquid 数据直接作为 percent 传递)
|
|
8232
|
-
}),
|
|
8235
|
+
}), tl = (t) => {
|
|
8233
8236
|
const {
|
|
8234
8237
|
percent: e,
|
|
8235
8238
|
...n
|
|
8236
8239
|
} = t, i = {
|
|
8237
8240
|
...n
|
|
8238
8241
|
};
|
|
8239
|
-
return e !== void 0 && (i.percent = e), console.log("[AndVLiquid] chartProps:", JSON.stringify(i, null, 2)), /* @__PURE__ */ y(
|
|
8240
|
-
},
|
|
8242
|
+
return e !== void 0 && (i.percent = e), console.log("[AndVLiquid] chartProps:", JSON.stringify(i, null, 2)), /* @__PURE__ */ y(tc, { ...i });
|
|
8243
|
+
}, nc = rt(_i, {
|
|
8241
8244
|
chartType: "AndVBar",
|
|
8242
8245
|
defaultHeight: 300,
|
|
8243
8246
|
defaultData: [
|
|
@@ -8247,7 +8250,7 @@ const Ua = [
|
|
|
8247
8250
|
{ year: "1957 年", value: 145 },
|
|
8248
8251
|
{ year: "1958 年", value: 48 }
|
|
8249
8252
|
]
|
|
8250
|
-
}),
|
|
8253
|
+
}), nl = (t) => {
|
|
8251
8254
|
const {
|
|
8252
8255
|
// 特有字段
|
|
8253
8256
|
xField: e,
|
|
@@ -8269,134 +8272,134 @@ const Ua = [
|
|
|
8269
8272
|
const p = ke(u);
|
|
8270
8273
|
p !== void 0 && (m.conversionTag = p);
|
|
8271
8274
|
const v = ke(f);
|
|
8272
|
-
return v !== void 0 && (m.markBackground = v), console.log("[AndVBar] chartProps:", JSON.stringify(m, null, 2)), /* @__PURE__ */ y(
|
|
8275
|
+
return v !== void 0 && (m.markBackground = v), console.log("[AndVBar] chartProps:", JSON.stringify(m, null, 2)), /* @__PURE__ */ y(nc, { ...m });
|
|
8273
8276
|
};
|
|
8274
8277
|
export {
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8278
|
+
Rc as AVAILABLE_TOKENS,
|
|
8279
|
+
ks as AndAlert,
|
|
8280
|
+
ts as AndAutoComplete,
|
|
8281
|
+
bs as AndAvatar,
|
|
8282
|
+
Cs as AndBadge,
|
|
8283
|
+
Ns as AndBadgeRibbon,
|
|
8284
|
+
xs as AndBreadCrumb,
|
|
8285
|
+
Kc as AndButton,
|
|
8286
|
+
Ds as AndCalendar,
|
|
8287
|
+
Ms as AndCard,
|
|
8288
|
+
gs as AndCarousel,
|
|
8289
|
+
Xc as AndCascade,
|
|
8290
|
+
Gc as AndCheckbox,
|
|
8291
|
+
Bs as AndColumn,
|
|
8292
|
+
Ks as AndContainer,
|
|
8293
|
+
Uc as AndDatePicker,
|
|
8294
|
+
$s as AndDivider,
|
|
8295
|
+
Es as AndDrawer,
|
|
8296
|
+
Rs as AndDropdown,
|
|
8297
|
+
Rs as AndDropdownMenu,
|
|
8298
|
+
Hs as AndDynamicContainer,
|
|
8299
|
+
rs as AndFormItem,
|
|
8300
|
+
Ws as AndIcon,
|
|
8301
|
+
ps as AndImage,
|
|
8302
|
+
vs as AndImageGroup,
|
|
8303
|
+
Lc as AndInput,
|
|
8304
|
+
Vc as AndInputArea,
|
|
8305
|
+
zc as AndInputNumber,
|
|
8306
|
+
qc as AndInputPassword,
|
|
8307
|
+
Wc as AndInputSearch,
|
|
8308
|
+
qs as AndIterator,
|
|
8309
|
+
Ts as AndMasonry,
|
|
8310
|
+
As as AndMenu,
|
|
8311
|
+
_s as AndModal,
|
|
8312
|
+
ws as AndPagination,
|
|
8313
|
+
ls as AndParagraph,
|
|
8314
|
+
Fs as AndPdfViewer,
|
|
8315
|
+
Ps as AndProductCategory,
|
|
8316
|
+
Ls as AndQRCode,
|
|
8317
|
+
Jc as AndRadio,
|
|
8318
|
+
Fc as AndRangePicker,
|
|
8319
|
+
Qc as AndRate,
|
|
8320
|
+
Os as AndResult,
|
|
8321
|
+
js as AndRow,
|
|
8322
|
+
os as AndSegmented,
|
|
8323
|
+
Pc as AndSelect,
|
|
8324
|
+
ns as AndSimpleForm,
|
|
8325
|
+
Zc as AndSlider,
|
|
8326
|
+
zs as AndSplitter,
|
|
8327
|
+
Vs as AndSplitterPanel,
|
|
8328
|
+
hs as AndStatistics,
|
|
8329
|
+
ys as AndStatisticsCountdown,
|
|
8330
|
+
ms as AndSteps,
|
|
8331
|
+
Hc as AndSwitch,
|
|
8332
|
+
as as AndTable,
|
|
8333
|
+
us as AndTabs,
|
|
8334
|
+
Ss as AndTag,
|
|
8335
|
+
cs as AndText,
|
|
8336
|
+
Yc as AndTimePicker,
|
|
8337
|
+
ds as AndTimeline,
|
|
8338
|
+
ss as AndTitle,
|
|
8339
|
+
is as AndTransfer,
|
|
8340
|
+
fs as AndTree,
|
|
8341
|
+
Ic as AndTreeSelect,
|
|
8342
|
+
es as AndUpload,
|
|
8343
|
+
Xs as AndVArea,
|
|
8344
|
+
nl as AndVBar,
|
|
8345
|
+
Qs as AndVColumn,
|
|
8346
|
+
Is as AndVDualAxes,
|
|
8347
|
+
el as AndVGauge,
|
|
8348
|
+
Gs as AndVLine,
|
|
8349
|
+
tl as AndVLiquid,
|
|
8350
|
+
Zs as AndVPie,
|
|
8351
|
+
Us as AndWatermark,
|
|
8352
|
+
jc as COMMON_TOKENS,
|
|
8353
|
+
lt as DataSetInheritContext,
|
|
8354
|
+
Ac as cleanupAllMounts,
|
|
8355
|
+
wc as clearCssCache,
|
|
8353
8356
|
I as createCommand,
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8357
|
+
Ec as createWatchCommands,
|
|
8358
|
+
go as dictValueEquals,
|
|
8359
|
+
Js as dispatchPdfViewerCommand,
|
|
8360
|
+
Wa as ensurePdfjsWorker,
|
|
8358
8361
|
Qe as findDictOptionByValue,
|
|
8359
|
-
|
|
8360
|
-
|
|
8362
|
+
Vo as formatByType,
|
|
8363
|
+
ln as getAccessToken,
|
|
8361
8364
|
Ue as getCoreConfig,
|
|
8362
8365
|
re as getDataSetStoreKey,
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8366
|
+
mn as getDictOptions,
|
|
8367
|
+
Ct as getNestedValue,
|
|
8368
|
+
At as getValidateStoreKey,
|
|
8369
|
+
Ei as initReactMount,
|
|
8370
|
+
fr as isTokenName,
|
|
8368
8371
|
Ve as mergeStoreProps,
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
+
xc as mountReactComponent,
|
|
8373
|
+
at as parseAction,
|
|
8374
|
+
vt as parseArrayNotation,
|
|
8372
8375
|
De as parseChangeAction,
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8376
|
+
ji as parseClickAction,
|
|
8377
|
+
yt as parseNestedPath,
|
|
8378
|
+
Oc as parseQueryAction,
|
|
8379
|
+
cr as processValidationRules,
|
|
8380
|
+
$c as req,
|
|
8381
|
+
st as request,
|
|
8382
|
+
Bc as resolveTokenColorWithToken,
|
|
8383
|
+
Mc as setCoreConfig,
|
|
8384
|
+
Mi as setNestedValue,
|
|
8385
|
+
Ys as setPdfjsWorkerSrc,
|
|
8386
|
+
lr as upload,
|
|
8387
|
+
Nc as useAddCommand,
|
|
8385
8388
|
k as useAndStore,
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
+
po as useApiService,
|
|
8390
|
+
_c as useCommandsStore,
|
|
8391
|
+
Et as useDictOptions,
|
|
8389
8392
|
ze as useFieldValidation,
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8393
|
+
kc as useItemStore,
|
|
8394
|
+
Tc as usePopCommand,
|
|
8395
|
+
hn as useRemoteOptions,
|
|
8396
|
+
Ht as useResolveTokenColor,
|
|
8397
|
+
_t as useResolvedDataSet,
|
|
8398
|
+
Dc as useStore,
|
|
8399
|
+
Cc as useStoreByName,
|
|
8400
|
+
$i as useStoreData,
|
|
8401
|
+
sr as validateWithSchema,
|
|
8402
|
+
Ri as watchCommands,
|
|
8403
|
+
rt as withBaseChart
|
|
8401
8404
|
};
|
|
8402
8405
|
//# sourceMappingURL=index.esm.js.map
|