xph-crud 0.3.4 → 0.3.5
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.js +915 -838
- package/dist/index.umd.cjs +10 -10
- package/dist/types/common/src/components/actions/types/actionItem.d.ts +32 -31
- package/dist/types/form/src/components/ApiAutoComplete/index.d.ts +4 -1
- package/dist/types/form/src/components/ApiSelect/index.d.ts +4 -1
- package/dist/types/form/src/components/ApiTransfer/index.d.ts +4 -1
- package/dist/types/form/src/components/ApiTreeSelect/index.d.ts +4 -1
- package/dist/types/form/src/types/component.d.ts +2 -0
- package/dist/types/table/src/components/table/components/cellFunc/components/copy.d.ts +5 -0
- package/dist/types/table/src/components/table/components/cellFunc/components/index.d.ts +4 -0
- package/dist/types/table/src/components/table/components/cellFunc/types/cellFunc.d.ts +14 -0
- package/dist/types/table/src/hooks/index.d.ts +2 -0
- package/dist/types/table/src/hooks/useCopyToClipboard.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import Te, { useCallback as ve, createElement as Kn, createContext as Jn, useContext as Zn, useState as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { CaretDownOutlined as
|
|
1
|
+
import Te, { useCallback as ve, createElement as Kn, createContext as Jn, useContext as Zn, useState as q, useRef as j, useEffect as X, Fragment as Ur, forwardRef as pe, useImperativeHandle as Se, useMemo as ht, memo as Yr } from "react";
|
|
2
|
+
import { Button as ae, Dropdown as Gr, theme as Le, Space as Qn, Spin as Xr, Form as it, Select as qr, TreeSelect as Kr, Transfer as Jr, AutoComplete as Zr, Upload as Mt, message as st, Input as Ut, InputNumber as eo, Switch as to, Radio as Qr, Checkbox as en, Cascader as ro, TimePicker as no, DatePicker as mt, Col as oo, Row as so, Table as io, Pagination as ao } from "antd";
|
|
3
|
+
import { CaretDownOutlined as tn, ShrinkOutlined as co, FullscreenOutlined as lo, FullscreenExitOutlined as uo, CloseOutlined as fo, DownOutlined as po, UpOutlined as go, SearchOutlined as ho, ReloadOutlined as mo } from "@ant-design/icons";
|
|
4
4
|
import bo from "react-dom";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import at from "dayjs";
|
|
6
|
+
const kt = [];
|
|
7
7
|
for (let e = 0; e <= 15; e++)
|
|
8
|
-
|
|
9
|
-
function
|
|
8
|
+
kt[e] = e.toString(16);
|
|
9
|
+
function fr() {
|
|
10
10
|
let e = "";
|
|
11
11
|
for (let t = 1; t <= 36; t++)
|
|
12
|
-
t === 9 || t === 14 || t === 19 || t === 24 ? e += "-" : t === 15 ? e += 4 : t === 20 ? e +=
|
|
12
|
+
t === 9 || t === 14 || t === 19 || t === 24 ? e += "-" : t === 15 ? e += 4 : t === 20 ? e += kt[Math.random() * 4 | 8] : e += kt[Math.random() * 16 | 0];
|
|
13
13
|
return e.replace(/-/g, "");
|
|
14
14
|
}
|
|
15
15
|
const vo = (e, t) => {
|
|
@@ -21,13 +21,13 @@ const vo = (e, t) => {
|
|
|
21
21
|
else
|
|
22
22
|
return;
|
|
23
23
|
return r.length ? n : void 0;
|
|
24
|
-
},
|
|
24
|
+
}, pr = (e, t) => {
|
|
25
25
|
const r = {};
|
|
26
26
|
for (const [n, o] of Object.entries(e))
|
|
27
27
|
r[n] = vo(t, o);
|
|
28
28
|
return r;
|
|
29
29
|
};
|
|
30
|
-
var
|
|
30
|
+
var zt = { exports: {} }, Ue = {};
|
|
31
31
|
/**
|
|
32
32
|
* @license React
|
|
33
33
|
* react-jsx-runtime.production.min.js
|
|
@@ -37,10 +37,10 @@ var kt = { exports: {} }, Ve = {};
|
|
|
37
37
|
* This source code is licensed under the MIT license found in the
|
|
38
38
|
* LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
var
|
|
40
|
+
var gr;
|
|
41
41
|
function yo() {
|
|
42
|
-
if (
|
|
43
|
-
|
|
42
|
+
if (gr) return Ue;
|
|
43
|
+
gr = 1;
|
|
44
44
|
var e = Te, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
45
45
|
function a(i, l, u) {
|
|
46
46
|
var f, g = {}, d = null, b = null;
|
|
@@ -49,9 +49,9 @@ function yo() {
|
|
|
49
49
|
if (i && i.defaultProps) for (f in l = i.defaultProps, l) g[f] === void 0 && (g[f] = l[f]);
|
|
50
50
|
return { $$typeof: t, type: i, key: d, ref: b, props: g, _owner: o.current };
|
|
51
51
|
}
|
|
52
|
-
return
|
|
52
|
+
return Ue.Fragment = r, Ue.jsx = a, Ue.jsxs = a, Ue;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var Ye = {};
|
|
55
55
|
/**
|
|
56
56
|
* @license React
|
|
57
57
|
* react-jsx-runtime.development.js
|
|
@@ -61,9 +61,9 @@ var Ue = {};
|
|
|
61
61
|
* This source code is licensed under the MIT license found in the
|
|
62
62
|
* LICENSE file in the root directory of this source tree.
|
|
63
63
|
*/
|
|
64
|
-
var
|
|
64
|
+
var hr;
|
|
65
65
|
function _o() {
|
|
66
|
-
return
|
|
66
|
+
return hr || (hr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
67
67
|
var e = Te, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), p = Symbol.iterator, v = "@@iterator";
|
|
68
68
|
function _(c) {
|
|
69
69
|
if (c === null || typeof c != "object")
|
|
@@ -72,46 +72,46 @@ function _o() {
|
|
|
72
72
|
return typeof m == "function" ? m : null;
|
|
73
73
|
}
|
|
74
74
|
var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
75
|
-
function
|
|
75
|
+
function T(c) {
|
|
76
76
|
{
|
|
77
77
|
for (var m = arguments.length, y = new Array(m > 1 ? m - 1 : 0), P = 1; P < m; P++)
|
|
78
78
|
y[P - 1] = arguments[P];
|
|
79
|
-
|
|
79
|
+
F("error", c, y);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function F(c, m, y) {
|
|
83
83
|
{
|
|
84
84
|
var P = R.ReactDebugCurrentFrame, z = P.getStackAddendum();
|
|
85
85
|
z !== "" && (m += "%s", y = y.concat([z]));
|
|
86
|
-
var H = y.map(function(
|
|
87
|
-
return String(
|
|
86
|
+
var H = y.map(function(k) {
|
|
87
|
+
return String(k);
|
|
88
88
|
});
|
|
89
89
|
H.unshift("Warning: " + m), Function.prototype.apply.call(console[c], console, H);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
var
|
|
93
|
-
|
|
92
|
+
var O = !1, I = !1, U = !1, G = !1, x = !1, M;
|
|
93
|
+
M = Symbol.for("react.module.reference");
|
|
94
94
|
function w(c) {
|
|
95
|
-
return !!(typeof c == "string" || typeof c == "function" || c === n || c === s || x || c === o || c === u || c === f ||
|
|
95
|
+
return !!(typeof c == "string" || typeof c == "function" || c === n || c === s || x || c === o || c === u || c === f || G || c === b || O || I || U || typeof c == "object" && c !== null && (c.$$typeof === d || c.$$typeof === g || c.$$typeof === a || c.$$typeof === i || c.$$typeof === l || // This needs to include all possible module reference object
|
|
96
96
|
// types supported by any Flight configuration anywhere since
|
|
97
97
|
// we don't know which Flight build this will end up being used
|
|
98
98
|
// with.
|
|
99
|
-
c.$$typeof ===
|
|
99
|
+
c.$$typeof === M || c.getModuleId !== void 0));
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function C(c, m, y) {
|
|
102
102
|
var P = c.displayName;
|
|
103
103
|
if (P)
|
|
104
104
|
return P;
|
|
105
105
|
var z = m.displayName || m.name || "";
|
|
106
106
|
return z !== "" ? y + "(" + z + ")" : y;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function S(c) {
|
|
109
109
|
return c.displayName || "Context";
|
|
110
110
|
}
|
|
111
111
|
function E(c) {
|
|
112
112
|
if (c == null)
|
|
113
113
|
return null;
|
|
114
|
-
if (typeof c.tag == "number" &&
|
|
114
|
+
if (typeof c.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
|
|
115
115
|
return c.displayName || c.name || null;
|
|
116
116
|
if (typeof c == "string")
|
|
117
117
|
return c;
|
|
@@ -133,19 +133,19 @@ function _o() {
|
|
|
133
133
|
switch (c.$$typeof) {
|
|
134
134
|
case i:
|
|
135
135
|
var m = c;
|
|
136
|
-
return
|
|
136
|
+
return S(m) + ".Consumer";
|
|
137
137
|
case a:
|
|
138
138
|
var y = c;
|
|
139
|
-
return
|
|
139
|
+
return S(y._context) + ".Provider";
|
|
140
140
|
case l:
|
|
141
|
-
return
|
|
141
|
+
return C(c, c.render, "ForwardRef");
|
|
142
142
|
case g:
|
|
143
143
|
var P = c.displayName || null;
|
|
144
144
|
return P !== null ? P : E(c.type) || "Memo";
|
|
145
145
|
case d: {
|
|
146
|
-
var z = c, H = z._payload,
|
|
146
|
+
var z = c, H = z._payload, k = z._init;
|
|
147
147
|
try {
|
|
148
|
-
return E(
|
|
148
|
+
return E(k(H));
|
|
149
149
|
} catch {
|
|
150
150
|
return null;
|
|
151
151
|
}
|
|
@@ -153,14 +153,14 @@ function _o() {
|
|
|
153
153
|
}
|
|
154
154
|
return null;
|
|
155
155
|
}
|
|
156
|
-
var D = Object.assign,
|
|
156
|
+
var D = Object.assign, A = 0, Y, ee, se, fe, le, L, N;
|
|
157
157
|
function B() {
|
|
158
158
|
}
|
|
159
159
|
B.__reactDisabledLog = !0;
|
|
160
|
-
function
|
|
160
|
+
function K() {
|
|
161
161
|
{
|
|
162
|
-
if (
|
|
163
|
-
|
|
162
|
+
if (A === 0) {
|
|
163
|
+
Y = console.log, ee = console.info, se = console.warn, fe = console.error, le = console.group, L = console.groupCollapsed, N = console.groupEnd;
|
|
164
164
|
var c = {
|
|
165
165
|
configurable: !0,
|
|
166
166
|
enumerable: !0,
|
|
@@ -177,12 +177,12 @@ function _o() {
|
|
|
177
177
|
groupEnd: c
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
A++;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function xt() {
|
|
184
184
|
{
|
|
185
|
-
if (
|
|
185
|
+
if (A--, A === 0) {
|
|
186
186
|
var c = {
|
|
187
187
|
configurable: !0,
|
|
188
188
|
enumerable: !0,
|
|
@@ -190,19 +190,19 @@ function _o() {
|
|
|
190
190
|
};
|
|
191
191
|
Object.defineProperties(console, {
|
|
192
192
|
log: D({}, c, {
|
|
193
|
-
value:
|
|
193
|
+
value: Y
|
|
194
194
|
}),
|
|
195
195
|
info: D({}, c, {
|
|
196
|
-
value:
|
|
196
|
+
value: ee
|
|
197
197
|
}),
|
|
198
198
|
warn: D({}, c, {
|
|
199
|
-
value:
|
|
199
|
+
value: se
|
|
200
200
|
}),
|
|
201
201
|
error: D({}, c, {
|
|
202
|
-
value:
|
|
202
|
+
value: fe
|
|
203
203
|
}),
|
|
204
204
|
group: D({}, c, {
|
|
205
|
-
value:
|
|
205
|
+
value: le
|
|
206
206
|
}),
|
|
207
207
|
groupCollapsed: D({}, c, {
|
|
208
208
|
value: L
|
|
@@ -212,10 +212,10 @@ function _o() {
|
|
|
212
212
|
})
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
|
-
|
|
215
|
+
A < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
var
|
|
218
|
+
var Ne = R.ReactCurrentDispatcher, Oe;
|
|
219
219
|
function $e(c, m, y) {
|
|
220
220
|
{
|
|
221
221
|
if (Oe === void 0)
|
|
@@ -229,13 +229,13 @@ function _o() {
|
|
|
229
229
|
` + Oe + c;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
var
|
|
232
|
+
var We = !1, me;
|
|
233
233
|
{
|
|
234
234
|
var Qe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
235
235
|
me = new Qe();
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
if (!c ||
|
|
237
|
+
function He(c, m) {
|
|
238
|
+
if (!c || We)
|
|
239
239
|
return "";
|
|
240
240
|
{
|
|
241
241
|
var y = me.get(c);
|
|
@@ -243,34 +243,34 @@ function _o() {
|
|
|
243
243
|
return y;
|
|
244
244
|
}
|
|
245
245
|
var P;
|
|
246
|
-
|
|
246
|
+
We = !0;
|
|
247
247
|
var z = Error.prepareStackTrace;
|
|
248
248
|
Error.prepareStackTrace = void 0;
|
|
249
249
|
var H;
|
|
250
|
-
H =
|
|
250
|
+
H = Ne.current, Ne.current = null, K();
|
|
251
251
|
try {
|
|
252
252
|
if (m) {
|
|
253
|
-
var
|
|
253
|
+
var k = function() {
|
|
254
254
|
throw Error();
|
|
255
255
|
};
|
|
256
|
-
if (Object.defineProperty(
|
|
256
|
+
if (Object.defineProperty(k.prototype, "props", {
|
|
257
257
|
set: function() {
|
|
258
258
|
throw Error();
|
|
259
259
|
}
|
|
260
260
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
261
261
|
try {
|
|
262
|
-
Reflect.construct(
|
|
262
|
+
Reflect.construct(k, []);
|
|
263
263
|
} catch (re) {
|
|
264
264
|
P = re;
|
|
265
265
|
}
|
|
266
|
-
Reflect.construct(c, [],
|
|
266
|
+
Reflect.construct(c, [], k);
|
|
267
267
|
} else {
|
|
268
268
|
try {
|
|
269
|
-
|
|
269
|
+
k.call();
|
|
270
270
|
} catch (re) {
|
|
271
271
|
P = re;
|
|
272
272
|
}
|
|
273
|
-
c.call(
|
|
273
|
+
c.call(k.prototype);
|
|
274
274
|
}
|
|
275
275
|
} else {
|
|
276
276
|
try {
|
|
@@ -282,33 +282,33 @@ function _o() {
|
|
|
282
282
|
}
|
|
283
283
|
} catch (re) {
|
|
284
284
|
if (re && P && typeof re.stack == "string") {
|
|
285
|
-
for (var
|
|
286
|
-
`),
|
|
287
|
-
`),
|
|
288
|
-
|
|
289
|
-
for (;
|
|
290
|
-
if (
|
|
291
|
-
if (
|
|
285
|
+
for (var $ = re.stack.split(`
|
|
286
|
+
`), te = P.stack.split(`
|
|
287
|
+
`), J = $.length - 1, Z = te.length - 1; J >= 1 && Z >= 0 && $[J] !== te[Z]; )
|
|
288
|
+
Z--;
|
|
289
|
+
for (; J >= 1 && Z >= 0; J--, Z--)
|
|
290
|
+
if ($[J] !== te[Z]) {
|
|
291
|
+
if (J !== 1 || Z !== 1)
|
|
292
292
|
do
|
|
293
|
-
if (
|
|
294
|
-
var
|
|
295
|
-
` +
|
|
296
|
-
return c.displayName &&
|
|
293
|
+
if (J--, Z--, Z < 0 || $[J] !== te[Z]) {
|
|
294
|
+
var ie = `
|
|
295
|
+
` + $[J].replace(" at new ", " at ");
|
|
296
|
+
return c.displayName && ie.includes("<anonymous>") && (ie = ie.replace("<anonymous>", c.displayName)), typeof c == "function" && me.set(c, ie), ie;
|
|
297
297
|
}
|
|
298
|
-
while (
|
|
298
|
+
while (J >= 1 && Z >= 0);
|
|
299
299
|
break;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
} finally {
|
|
303
|
-
|
|
303
|
+
We = !1, Ne.current = H, xt(), Error.prepareStackTrace = z;
|
|
304
304
|
}
|
|
305
305
|
var Ie = c ? c.displayName || c.name : "", Fe = Ie ? $e(Ie) : "";
|
|
306
306
|
return typeof c == "function" && me.set(c, Fe), Fe;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
309
|
-
return
|
|
308
|
+
function wt(c, m, y) {
|
|
309
|
+
return He(c, !1);
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function Ct(c) {
|
|
312
312
|
var m = c.prototype;
|
|
313
313
|
return !!(m && m.isReactComponent);
|
|
314
314
|
}
|
|
@@ -316,7 +316,7 @@ function _o() {
|
|
|
316
316
|
if (c == null)
|
|
317
317
|
return "";
|
|
318
318
|
if (typeof c == "function")
|
|
319
|
-
return
|
|
319
|
+
return He(c, Ct(c));
|
|
320
320
|
if (typeof c == "string")
|
|
321
321
|
return $e(c);
|
|
322
322
|
switch (c) {
|
|
@@ -328,7 +328,7 @@ function _o() {
|
|
|
328
328
|
if (typeof c == "object")
|
|
329
329
|
switch (c.$$typeof) {
|
|
330
330
|
case l:
|
|
331
|
-
return
|
|
331
|
+
return wt(c.render);
|
|
332
332
|
case g:
|
|
333
333
|
return Pe(c.type, m, y);
|
|
334
334
|
case d: {
|
|
@@ -349,36 +349,36 @@ function _o() {
|
|
|
349
349
|
} else
|
|
350
350
|
Me.setExtraStackFrame(null);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function rr(c, m, y, P, z) {
|
|
353
353
|
{
|
|
354
354
|
var H = Function.call.bind(Re);
|
|
355
|
-
for (var
|
|
356
|
-
if (H(c,
|
|
357
|
-
var
|
|
355
|
+
for (var k in c)
|
|
356
|
+
if (H(c, k)) {
|
|
357
|
+
var $ = void 0;
|
|
358
358
|
try {
|
|
359
|
-
if (typeof c[
|
|
360
|
-
var
|
|
361
|
-
throw
|
|
359
|
+
if (typeof c[k] != "function") {
|
|
360
|
+
var te = Error((P || "React class") + ": " + y + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
361
|
+
throw te.name = "Invariant Violation", te;
|
|
362
362
|
}
|
|
363
|
-
|
|
364
|
-
} catch (
|
|
365
|
-
|
|
363
|
+
$ = c[k](m, k, P, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
364
|
+
} catch (J) {
|
|
365
|
+
$ = J;
|
|
366
366
|
}
|
|
367
|
-
|
|
367
|
+
$ && !($ instanceof Error) && (ke(z), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class", y, k, typeof $), ke(null)), $ instanceof Error && !($.message in et) && (et[$.message] = !0, ke(z), T("Failed %s type: %s", y, $.message), ke(null));
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
var
|
|
372
|
-
function
|
|
373
|
-
return
|
|
371
|
+
var Be = Array.isArray;
|
|
372
|
+
function Ve(c) {
|
|
373
|
+
return Be(c);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Tt(c) {
|
|
376
376
|
{
|
|
377
377
|
var m = typeof Symbol == "function" && Symbol.toStringTag, y = m && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
378
378
|
return y;
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function St(c) {
|
|
382
382
|
try {
|
|
383
383
|
return tt(c), !1;
|
|
384
384
|
} catch {
|
|
@@ -389,16 +389,16 @@ function _o() {
|
|
|
389
389
|
return "" + c;
|
|
390
390
|
}
|
|
391
391
|
function rt(c) {
|
|
392
|
-
if (
|
|
393
|
-
return
|
|
392
|
+
if (St(c))
|
|
393
|
+
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Tt(c)), tt(c);
|
|
394
394
|
}
|
|
395
395
|
var je = R.ReactCurrentOwner, Dn = {
|
|
396
396
|
key: !0,
|
|
397
397
|
ref: !0,
|
|
398
398
|
__self: !0,
|
|
399
399
|
__source: !0
|
|
400
|
-
},
|
|
401
|
-
|
|
400
|
+
}, nr, or, Pt;
|
|
401
|
+
Pt = {};
|
|
402
402
|
function On(c) {
|
|
403
403
|
if (Re.call(c, "ref")) {
|
|
404
404
|
var m = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
@@ -418,13 +418,13 @@ function _o() {
|
|
|
418
418
|
function Mn(c, m) {
|
|
419
419
|
if (typeof c.ref == "string" && je.current && m && je.current.stateNode !== m) {
|
|
420
420
|
var y = E(je.current.type);
|
|
421
|
-
|
|
421
|
+
Pt[y] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(je.current.type), c.ref), Pt[y] = !0);
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
function kn(c, m) {
|
|
425
425
|
{
|
|
426
426
|
var y = function() {
|
|
427
|
-
|
|
427
|
+
nr || (nr = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
|
|
428
428
|
};
|
|
429
429
|
y.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
430
430
|
get: y,
|
|
@@ -435,7 +435,7 @@ function _o() {
|
|
|
435
435
|
function zn(c, m) {
|
|
436
436
|
{
|
|
437
437
|
var y = function() {
|
|
438
|
-
|
|
438
|
+
or || (or = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
|
|
439
439
|
};
|
|
440
440
|
y.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
441
441
|
get: y,
|
|
@@ -443,70 +443,70 @@ function _o() {
|
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
var In = function(c, m, y, P, z, H,
|
|
447
|
-
var
|
|
446
|
+
var In = function(c, m, y, P, z, H, k) {
|
|
447
|
+
var $ = {
|
|
448
448
|
// This tag allows us to uniquely identify this as a React Element
|
|
449
449
|
$$typeof: t,
|
|
450
450
|
// Built-in properties that belong on the element
|
|
451
451
|
type: c,
|
|
452
452
|
key: m,
|
|
453
453
|
ref: y,
|
|
454
|
-
props:
|
|
454
|
+
props: k,
|
|
455
455
|
// Record the component responsible for creating this element.
|
|
456
456
|
_owner: H
|
|
457
457
|
};
|
|
458
|
-
return
|
|
458
|
+
return $._store = {}, Object.defineProperty($._store, "validated", {
|
|
459
459
|
configurable: !1,
|
|
460
460
|
enumerable: !1,
|
|
461
461
|
writable: !0,
|
|
462
462
|
value: !1
|
|
463
|
-
}), Object.defineProperty(
|
|
463
|
+
}), Object.defineProperty($, "_self", {
|
|
464
464
|
configurable: !1,
|
|
465
465
|
enumerable: !1,
|
|
466
466
|
writable: !1,
|
|
467
467
|
value: P
|
|
468
|
-
}), Object.defineProperty(
|
|
468
|
+
}), Object.defineProperty($, "_source", {
|
|
469
469
|
configurable: !1,
|
|
470
470
|
enumerable: !1,
|
|
471
471
|
writable: !1,
|
|
472
472
|
value: z
|
|
473
|
-
}), Object.freeze && (Object.freeze(
|
|
473
|
+
}), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
|
|
474
474
|
};
|
|
475
475
|
function Ln(c, m, y, P, z) {
|
|
476
476
|
{
|
|
477
|
-
var H,
|
|
478
|
-
y !== void 0 && (rt(y),
|
|
477
|
+
var H, k = {}, $ = null, te = null;
|
|
478
|
+
y !== void 0 && (rt(y), $ = "" + y), $n(m) && (rt(m.key), $ = "" + m.key), On(m) && (te = m.ref, Mn(m, z));
|
|
479
479
|
for (H in m)
|
|
480
|
-
Re.call(m, H) && !Dn.hasOwnProperty(H) && (
|
|
480
|
+
Re.call(m, H) && !Dn.hasOwnProperty(H) && (k[H] = m[H]);
|
|
481
481
|
if (c && c.defaultProps) {
|
|
482
|
-
var
|
|
483
|
-
for (H in
|
|
484
|
-
|
|
482
|
+
var J = c.defaultProps;
|
|
483
|
+
for (H in J)
|
|
484
|
+
k[H] === void 0 && (k[H] = J[H]);
|
|
485
485
|
}
|
|
486
|
-
if (
|
|
487
|
-
var
|
|
488
|
-
|
|
486
|
+
if ($ || te) {
|
|
487
|
+
var Z = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
488
|
+
$ && kn(k, Z), te && zn(k, Z);
|
|
489
489
|
}
|
|
490
|
-
return In(c,
|
|
490
|
+
return In(c, $, te, z, P, je.current, k);
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
var
|
|
493
|
+
var Rt = R.ReactCurrentOwner, sr = R.ReactDebugCurrentFrame;
|
|
494
494
|
function ze(c) {
|
|
495
495
|
if (c) {
|
|
496
496
|
var m = c._owner, y = Pe(c.type, c._source, m ? m.type : null);
|
|
497
|
-
|
|
497
|
+
sr.setExtraStackFrame(y);
|
|
498
498
|
} else
|
|
499
|
-
|
|
499
|
+
sr.setExtraStackFrame(null);
|
|
500
500
|
}
|
|
501
|
-
var
|
|
502
|
-
|
|
503
|
-
function
|
|
501
|
+
var jt;
|
|
502
|
+
jt = !1;
|
|
503
|
+
function Ft(c) {
|
|
504
504
|
return typeof c == "object" && c !== null && c.$$typeof === t;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function ir() {
|
|
507
507
|
{
|
|
508
|
-
if (
|
|
509
|
-
var c = E(
|
|
508
|
+
if (Rt.current) {
|
|
509
|
+
var c = E(Rt.current.type);
|
|
510
510
|
if (c)
|
|
511
511
|
return `
|
|
512
512
|
|
|
@@ -518,10 +518,10 @@ Check the render method of \`` + c + "`.";
|
|
|
518
518
|
function Nn(c) {
|
|
519
519
|
return "";
|
|
520
520
|
}
|
|
521
|
-
var
|
|
521
|
+
var ar = {};
|
|
522
522
|
function Wn(c) {
|
|
523
523
|
{
|
|
524
|
-
var m =
|
|
524
|
+
var m = ir();
|
|
525
525
|
if (!m) {
|
|
526
526
|
var y = typeof c == "string" ? c : c.displayName || c.name;
|
|
527
527
|
y && (m = `
|
|
@@ -531,35 +531,35 @@ Check the top-level render call using <` + y + ">.");
|
|
|
531
531
|
return m;
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function cr(c, m) {
|
|
535
535
|
{
|
|
536
536
|
if (!c._store || c._store.validated || c.key != null)
|
|
537
537
|
return;
|
|
538
538
|
c._store.validated = !0;
|
|
539
539
|
var y = Wn(m);
|
|
540
|
-
if (
|
|
540
|
+
if (ar[y])
|
|
541
541
|
return;
|
|
542
|
-
|
|
542
|
+
ar[y] = !0;
|
|
543
543
|
var P = "";
|
|
544
|
-
c && c._owner && c._owner !==
|
|
544
|
+
c && c._owner && c._owner !== Rt.current && (P = " It was passed a child from " + E(c._owner.type) + "."), ze(c), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, P), ze(null);
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function lr(c, m) {
|
|
548
548
|
{
|
|
549
549
|
if (typeof c != "object")
|
|
550
550
|
return;
|
|
551
|
-
if (
|
|
551
|
+
if (Ve(c))
|
|
552
552
|
for (var y = 0; y < c.length; y++) {
|
|
553
553
|
var P = c[y];
|
|
554
|
-
|
|
554
|
+
Ft(P) && cr(P, m);
|
|
555
555
|
}
|
|
556
|
-
else if (
|
|
556
|
+
else if (Ft(c))
|
|
557
557
|
c._store && (c._store.validated = !0);
|
|
558
558
|
else if (c) {
|
|
559
559
|
var z = _(c);
|
|
560
560
|
if (typeof z == "function" && z !== c.entries)
|
|
561
|
-
for (var H = z.call(c),
|
|
562
|
-
|
|
561
|
+
for (var H = z.call(c), k; !(k = H.next()).done; )
|
|
562
|
+
Ft(k.value) && cr(k.value, m);
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
}
|
|
@@ -579,13 +579,13 @@ Check the top-level render call using <` + y + ">.");
|
|
|
579
579
|
return;
|
|
580
580
|
if (y) {
|
|
581
581
|
var P = E(m);
|
|
582
|
-
|
|
583
|
-
} else if (m.PropTypes !== void 0 && !
|
|
584
|
-
|
|
582
|
+
rr(y, c.props, "prop", P, c);
|
|
583
|
+
} else if (m.PropTypes !== void 0 && !jt) {
|
|
584
|
+
jt = !0;
|
|
585
585
|
var z = E(m);
|
|
586
|
-
|
|
586
|
+
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", z || "Unknown");
|
|
587
587
|
}
|
|
588
|
-
typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved &&
|
|
588
|
+
typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
function Bn(c) {
|
|
@@ -593,131 +593,131 @@ Check the top-level render call using <` + y + ">.");
|
|
|
593
593
|
for (var m = Object.keys(c.props), y = 0; y < m.length; y++) {
|
|
594
594
|
var P = m[y];
|
|
595
595
|
if (P !== "children" && P !== "key") {
|
|
596
|
-
ze(c),
|
|
596
|
+
ze(c), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), ze(null);
|
|
597
597
|
break;
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
c.ref !== null && (ze(c),
|
|
600
|
+
c.ref !== null && (ze(c), T("Invalid attribute `ref` supplied to `React.Fragment`."), ze(null));
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
-
var
|
|
604
|
-
function
|
|
603
|
+
var ur = {};
|
|
604
|
+
function dr(c, m, y, P, z, H) {
|
|
605
605
|
{
|
|
606
|
-
var
|
|
607
|
-
if (
|
|
608
|
-
var
|
|
609
|
-
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (
|
|
610
|
-
var
|
|
611
|
-
|
|
612
|
-
var
|
|
613
|
-
c === null ?
|
|
606
|
+
var k = w(c);
|
|
607
|
+
if (!k) {
|
|
608
|
+
var $ = "";
|
|
609
|
+
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
610
|
+
var te = Nn();
|
|
611
|
+
te ? $ += te : $ += ir();
|
|
612
|
+
var J;
|
|
613
|
+
c === null ? J = "null" : Ve(c) ? J = "array" : c !== void 0 && c.$$typeof === t ? (J = "<" + (E(c.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : J = typeof c, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, $);
|
|
614
614
|
}
|
|
615
|
-
var
|
|
616
|
-
if (
|
|
617
|
-
return
|
|
618
|
-
if (
|
|
619
|
-
var
|
|
620
|
-
if (
|
|
615
|
+
var Z = Ln(c, m, y, z, H);
|
|
616
|
+
if (Z == null)
|
|
617
|
+
return Z;
|
|
618
|
+
if (k) {
|
|
619
|
+
var ie = m.children;
|
|
620
|
+
if (ie !== void 0)
|
|
621
621
|
if (P)
|
|
622
|
-
if (
|
|
623
|
-
for (var Ie = 0; Ie <
|
|
624
|
-
|
|
625
|
-
Object.freeze && Object.freeze(
|
|
622
|
+
if (Ve(ie)) {
|
|
623
|
+
for (var Ie = 0; Ie < ie.length; Ie++)
|
|
624
|
+
lr(ie[Ie], c);
|
|
625
|
+
Object.freeze && Object.freeze(ie);
|
|
626
626
|
} else
|
|
627
|
-
|
|
627
|
+
T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
628
628
|
else
|
|
629
|
-
|
|
629
|
+
lr(ie, c);
|
|
630
630
|
}
|
|
631
631
|
if (Re.call(m, "key")) {
|
|
632
632
|
var Fe = E(c), re = Object.keys(m).filter(function(qn) {
|
|
633
633
|
return qn !== "key";
|
|
634
|
-
}),
|
|
635
|
-
if (!
|
|
634
|
+
}), Et = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
635
|
+
if (!ur[Fe + Et]) {
|
|
636
636
|
var Xn = re.length > 0 ? "{" + re.join(": ..., ") + ": ...}" : "{}";
|
|
637
|
-
|
|
637
|
+
T(`A props object containing a "key" prop is being spread into JSX:
|
|
638
638
|
let props = %s;
|
|
639
639
|
<%s {...props} />
|
|
640
640
|
React keys must be passed directly to JSX without using spread:
|
|
641
641
|
let props = %s;
|
|
642
|
-
<%s key={someKey} {...props} />`,
|
|
642
|
+
<%s key={someKey} {...props} />`, Et, Fe, Xn, Fe), ur[Fe + Et] = !0;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
return c === n ? Bn(
|
|
645
|
+
return c === n ? Bn(Z) : Hn(Z), Z;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
function Vn(c, m, y) {
|
|
649
|
-
return
|
|
649
|
+
return dr(c, m, y, !0);
|
|
650
650
|
}
|
|
651
651
|
function Un(c, m, y) {
|
|
652
|
-
return
|
|
652
|
+
return dr(c, m, y, !1);
|
|
653
653
|
}
|
|
654
654
|
var Yn = Un, Gn = Vn;
|
|
655
|
-
|
|
656
|
-
}()),
|
|
655
|
+
Ye.Fragment = n, Ye.jsx = Yn, Ye.jsxs = Gn;
|
|
656
|
+
}()), Ye;
|
|
657
657
|
}
|
|
658
|
-
process.env.NODE_ENV === "production" ?
|
|
659
|
-
var h =
|
|
658
|
+
process.env.NODE_ENV === "production" ? zt.exports = yo() : zt.exports = _o();
|
|
659
|
+
var h = zt.exports, rn = typeof global == "object" && global && global.Object === Object && global, xo = typeof self == "object" && self && self.Object === Object && self, ge = rn || xo || Function("return this")(), Ce = ge.Symbol, nn = Object.prototype, wo = nn.hasOwnProperty, Co = nn.toString, Ge = Ce ? Ce.toStringTag : void 0;
|
|
660
660
|
function To(e) {
|
|
661
|
-
var t =
|
|
661
|
+
var t = wo.call(e, Ge), r = e[Ge];
|
|
662
662
|
try {
|
|
663
|
-
e[
|
|
663
|
+
e[Ge] = void 0;
|
|
664
664
|
var n = !0;
|
|
665
665
|
} catch {
|
|
666
666
|
}
|
|
667
667
|
var o = Co.call(e);
|
|
668
|
-
return n && (t ? e[
|
|
668
|
+
return n && (t ? e[Ge] = r : delete e[Ge]), o;
|
|
669
669
|
}
|
|
670
670
|
var So = Object.prototype, Po = So.toString;
|
|
671
671
|
function Ro(e) {
|
|
672
672
|
return Po.call(e);
|
|
673
673
|
}
|
|
674
|
-
var jo = "[object Null]", Fo = "[object Undefined]",
|
|
675
|
-
function
|
|
676
|
-
return e == null ? e === void 0 ? Fo : jo :
|
|
674
|
+
var jo = "[object Null]", Fo = "[object Undefined]", mr = Ce ? Ce.toStringTag : void 0;
|
|
675
|
+
function he(e) {
|
|
676
|
+
return e == null ? e === void 0 ? Fo : jo : mr && mr in Object(e) ? To(e) : Ro(e);
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function de(e) {
|
|
679
679
|
return e != null && typeof e == "object";
|
|
680
680
|
}
|
|
681
681
|
var Eo = "[object Symbol]";
|
|
682
682
|
function Yt(e) {
|
|
683
|
-
return typeof e == "symbol" ||
|
|
683
|
+
return typeof e == "symbol" || de(e) && he(e) == Eo;
|
|
684
684
|
}
|
|
685
685
|
function Ao(e, t) {
|
|
686
686
|
for (var r = -1, n = e == null ? 0 : e.length, o = Array(n); ++r < n; )
|
|
687
687
|
o[r] = t(e[r], r, e);
|
|
688
688
|
return o;
|
|
689
689
|
}
|
|
690
|
-
var oe = Array.isArray, Do = 1 / 0,
|
|
691
|
-
function
|
|
690
|
+
var oe = Array.isArray, Do = 1 / 0, br = Ce ? Ce.prototype : void 0, vr = br ? br.toString : void 0;
|
|
691
|
+
function on(e) {
|
|
692
692
|
if (typeof e == "string")
|
|
693
693
|
return e;
|
|
694
694
|
if (oe(e))
|
|
695
|
-
return Ao(e,
|
|
695
|
+
return Ao(e, on) + "";
|
|
696
696
|
if (Yt(e))
|
|
697
|
-
return
|
|
697
|
+
return vr ? vr.call(e) : "";
|
|
698
698
|
var t = e + "";
|
|
699
699
|
return t == "0" && 1 / e == -Do ? "-0" : t;
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function ce(e) {
|
|
702
702
|
var t = typeof e;
|
|
703
703
|
return e != null && (t == "object" || t == "function");
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function sn(e) {
|
|
706
706
|
return e;
|
|
707
707
|
}
|
|
708
708
|
var Oo = "[object AsyncFunction]", $o = "[object Function]", Mo = "[object GeneratorFunction]", ko = "[object Proxy]";
|
|
709
|
-
function
|
|
710
|
-
if (!
|
|
709
|
+
function Q(e) {
|
|
710
|
+
if (!ce(e))
|
|
711
711
|
return !1;
|
|
712
|
-
var t =
|
|
712
|
+
var t = he(e);
|
|
713
713
|
return t == $o || t == Mo || t == Oo || t == ko;
|
|
714
714
|
}
|
|
715
|
-
var
|
|
716
|
-
var e = /[^.]+$/.exec(
|
|
715
|
+
var At = ge["__core-js_shared__"], yr = function() {
|
|
716
|
+
var e = /[^.]+$/.exec(At && At.keys && At.keys.IE_PROTO || "");
|
|
717
717
|
return e ? "Symbol(src)_1." + e : "";
|
|
718
718
|
}();
|
|
719
719
|
function zo(e) {
|
|
720
|
-
return !!
|
|
720
|
+
return !!yr && yr in e;
|
|
721
721
|
}
|
|
722
722
|
var Io = Function.prototype, Lo = Io.toString;
|
|
723
723
|
function Ae(e) {
|
|
@@ -737,9 +737,9 @@ var No = /[\\^$.*+?()[\]{}|]/g, Wo = /^\[object .+?Constructor\]$/, Ho = Functio
|
|
|
737
737
|
"^" + Vo.call(Uo).replace(No, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
738
738
|
);
|
|
739
739
|
function Go(e) {
|
|
740
|
-
if (!
|
|
740
|
+
if (!ce(e) || zo(e))
|
|
741
741
|
return !1;
|
|
742
|
-
var t =
|
|
742
|
+
var t = Q(e) ? Yo : Wo;
|
|
743
743
|
return t.test(Ae(e));
|
|
744
744
|
}
|
|
745
745
|
function Xo(e, t) {
|
|
@@ -749,14 +749,14 @@ function De(e, t) {
|
|
|
749
749
|
var r = Xo(e, t);
|
|
750
750
|
return Go(r) ? r : void 0;
|
|
751
751
|
}
|
|
752
|
-
var
|
|
752
|
+
var It = De(ge, "WeakMap"), _r = Object.create, qo = /* @__PURE__ */ function() {
|
|
753
753
|
function e() {
|
|
754
754
|
}
|
|
755
755
|
return function(t) {
|
|
756
|
-
if (!
|
|
756
|
+
if (!ce(t))
|
|
757
757
|
return {};
|
|
758
|
-
if (
|
|
759
|
-
return
|
|
758
|
+
if (_r)
|
|
759
|
+
return _r(t);
|
|
760
760
|
e.prototype = t;
|
|
761
761
|
var r = new e();
|
|
762
762
|
return e.prototype = void 0, r;
|
|
@@ -799,26 +799,26 @@ function rs(e) {
|
|
|
799
799
|
return e;
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
|
-
var
|
|
802
|
+
var ct = function() {
|
|
803
803
|
try {
|
|
804
804
|
var e = De(Object, "defineProperty");
|
|
805
805
|
return e({}, "", {}), e;
|
|
806
806
|
} catch {
|
|
807
807
|
}
|
|
808
|
-
}(), ns =
|
|
809
|
-
return
|
|
808
|
+
}(), ns = ct ? function(e, t) {
|
|
809
|
+
return ct(e, "toString", {
|
|
810
810
|
configurable: !0,
|
|
811
811
|
enumerable: !1,
|
|
812
812
|
value: rs(t),
|
|
813
813
|
writable: !0
|
|
814
814
|
});
|
|
815
|
-
} :
|
|
815
|
+
} : sn, os = ts(ns), ss = 9007199254740991, is = /^(?:0|[1-9]\d*)$/;
|
|
816
816
|
function Gt(e, t) {
|
|
817
817
|
var r = typeof e;
|
|
818
818
|
return t = t ?? ss, !!t && (r == "number" || r != "symbol" && is.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
819
819
|
}
|
|
820
820
|
function Xt(e, t, r) {
|
|
821
|
-
t == "__proto__" &&
|
|
821
|
+
t == "__proto__" && ct ? ct(e, t, {
|
|
822
822
|
configurable: !0,
|
|
823
823
|
enumerable: !0,
|
|
824
824
|
value: r,
|
|
@@ -829,7 +829,7 @@ function Je(e, t) {
|
|
|
829
829
|
return e === t || e !== e && t !== t;
|
|
830
830
|
}
|
|
831
831
|
var as = Object.prototype, cs = as.hasOwnProperty;
|
|
832
|
-
function
|
|
832
|
+
function an(e, t, r) {
|
|
833
833
|
var n = e[t];
|
|
834
834
|
(!(cs.call(e, t) && Je(n, r)) || r === void 0 && !(t in e)) && Xt(e, t, r);
|
|
835
835
|
}
|
|
@@ -838,14 +838,14 @@ function ls(e, t, r, n) {
|
|
|
838
838
|
r || (r = {});
|
|
839
839
|
for (var s = -1, a = t.length; ++s < a; ) {
|
|
840
840
|
var i = t[s], l = void 0;
|
|
841
|
-
l === void 0 && (l = e[i]), o ? Xt(r, i, l) :
|
|
841
|
+
l === void 0 && (l = e[i]), o ? Xt(r, i, l) : an(r, i, l);
|
|
842
842
|
}
|
|
843
843
|
return r;
|
|
844
844
|
}
|
|
845
|
-
var
|
|
845
|
+
var xr = Math.max;
|
|
846
846
|
function us(e, t, r) {
|
|
847
|
-
return t =
|
|
848
|
-
for (var n = arguments, o = -1, s =
|
|
847
|
+
return t = xr(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
848
|
+
for (var n = arguments, o = -1, s = xr(n.length - t, 0), a = Array(s); ++o < s; )
|
|
849
849
|
a[o] = n[t + o];
|
|
850
850
|
o = -1;
|
|
851
851
|
for (var i = Array(t + 1); ++o < t; )
|
|
@@ -854,20 +854,20 @@ function us(e, t, r) {
|
|
|
854
854
|
};
|
|
855
855
|
}
|
|
856
856
|
function ds(e, t) {
|
|
857
|
-
return os(us(e, t,
|
|
857
|
+
return os(us(e, t, sn), e + "");
|
|
858
858
|
}
|
|
859
859
|
var fs = 9007199254740991;
|
|
860
|
-
function
|
|
860
|
+
function cn(e) {
|
|
861
861
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= fs;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
864
|
-
return e != null &&
|
|
863
|
+
function bt(e) {
|
|
864
|
+
return e != null && cn(e.length) && !Q(e);
|
|
865
865
|
}
|
|
866
866
|
function ps(e, t, r) {
|
|
867
|
-
if (!
|
|
867
|
+
if (!ce(r))
|
|
868
868
|
return !1;
|
|
869
869
|
var n = typeof t;
|
|
870
|
-
return (n == "number" ?
|
|
870
|
+
return (n == "number" ? bt(r) && Gt(t, r.length) : n == "string" && t in r) ? Je(r[t], e) : !1;
|
|
871
871
|
}
|
|
872
872
|
function gs(e) {
|
|
873
873
|
return ds(function(t, r) {
|
|
@@ -891,36 +891,36 @@ function ms(e, t) {
|
|
|
891
891
|
}
|
|
892
892
|
var bs = "[object Arguments]";
|
|
893
893
|
function wr(e) {
|
|
894
|
-
return
|
|
894
|
+
return de(e) && he(e) == bs;
|
|
895
895
|
}
|
|
896
|
-
var
|
|
896
|
+
var ln = Object.prototype, vs = ln.hasOwnProperty, ys = ln.propertyIsEnumerable, Lt = wr(/* @__PURE__ */ function() {
|
|
897
897
|
return arguments;
|
|
898
898
|
}()) ? wr : function(e) {
|
|
899
|
-
return
|
|
899
|
+
return de(e) && vs.call(e, "callee") && !ys.call(e, "callee");
|
|
900
900
|
};
|
|
901
901
|
function _s() {
|
|
902
902
|
return !1;
|
|
903
903
|
}
|
|
904
|
-
var
|
|
904
|
+
var un = typeof exports == "object" && exports && !exports.nodeType && exports, Cr = un && typeof module == "object" && module && !module.nodeType && module, xs = Cr && Cr.exports === un, Tr = xs ? ge.Buffer : void 0, ws = Tr ? Tr.isBuffer : void 0, lt = ws || _s, Cs = "[object Arguments]", Ts = "[object Array]", Ss = "[object Boolean]", Ps = "[object Date]", Rs = "[object Error]", js = "[object Function]", Fs = "[object Map]", Es = "[object Number]", As = "[object Object]", Ds = "[object RegExp]", Os = "[object Set]", $s = "[object String]", Ms = "[object WeakMap]", ks = "[object ArrayBuffer]", zs = "[object DataView]", Is = "[object Float32Array]", Ls = "[object Float64Array]", Ns = "[object Int8Array]", Ws = "[object Int16Array]", Hs = "[object Int32Array]", Bs = "[object Uint8Array]", Vs = "[object Uint8ClampedArray]", Us = "[object Uint16Array]", Ys = "[object Uint32Array]", V = {};
|
|
905
905
|
V[Is] = V[Ls] = V[Ns] = V[Ws] = V[Hs] = V[Bs] = V[Vs] = V[Us] = V[Ys] = !0;
|
|
906
906
|
V[Cs] = V[Ts] = V[ks] = V[Ss] = V[zs] = V[Ps] = V[Rs] = V[js] = V[Fs] = V[Es] = V[As] = V[Ds] = V[Os] = V[$s] = V[Ms] = !1;
|
|
907
907
|
function Gs(e) {
|
|
908
|
-
return
|
|
908
|
+
return de(e) && cn(e.length) && !!V[he(e)];
|
|
909
909
|
}
|
|
910
910
|
function Xs(e) {
|
|
911
911
|
return function(t) {
|
|
912
912
|
return e(t);
|
|
913
913
|
};
|
|
914
914
|
}
|
|
915
|
-
var
|
|
915
|
+
var dn = typeof exports == "object" && exports && !exports.nodeType && exports, Xe = dn && typeof module == "object" && module && !module.nodeType && module, qs = Xe && Xe.exports === dn, Dt = qs && rn.process, Sr = function() {
|
|
916
916
|
try {
|
|
917
|
-
var e =
|
|
918
|
-
return e ||
|
|
917
|
+
var e = Xe && Xe.require && Xe.require("util").types;
|
|
918
|
+
return e || Dt && Dt.binding && Dt.binding("util");
|
|
919
919
|
} catch {
|
|
920
920
|
}
|
|
921
|
-
}(),
|
|
922
|
-
function
|
|
923
|
-
var r = oe(e), n = !r &&
|
|
921
|
+
}(), Pr = Sr && Sr.isTypedArray, Kt = Pr ? Xs(Pr) : Gs, Ks = Object.prototype, Js = Ks.hasOwnProperty;
|
|
922
|
+
function fn(e, t) {
|
|
923
|
+
var r = oe(e), n = !r && Lt(e), o = !r && !n && lt(e), s = !r && !n && !o && Kt(e), a = r || n || o || s, i = a ? ms(e.length, String) : [], l = i.length;
|
|
924
924
|
for (var u in e)
|
|
925
925
|
(t || Js.call(e, u)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
926
926
|
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -929,12 +929,12 @@ function dn(e, t) {
|
|
|
929
929
|
Gt(u, l))) && i.push(u);
|
|
930
930
|
return i;
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function pn(e, t) {
|
|
933
933
|
return function(r) {
|
|
934
934
|
return e(t(r));
|
|
935
935
|
};
|
|
936
936
|
}
|
|
937
|
-
var Zs =
|
|
937
|
+
var Zs = pn(Object.keys, Object), Qs = Object.prototype, ei = Qs.hasOwnProperty;
|
|
938
938
|
function ti(e) {
|
|
939
939
|
if (!qt(e))
|
|
940
940
|
return Zs(e);
|
|
@@ -944,7 +944,7 @@ function ti(e) {
|
|
|
944
944
|
return t;
|
|
945
945
|
}
|
|
946
946
|
function ri(e) {
|
|
947
|
-
return
|
|
947
|
+
return bt(e) ? fn(e) : ti(e);
|
|
948
948
|
}
|
|
949
949
|
function ni(e) {
|
|
950
950
|
var t = [];
|
|
@@ -955,15 +955,15 @@ function ni(e) {
|
|
|
955
955
|
}
|
|
956
956
|
var oi = Object.prototype, si = oi.hasOwnProperty;
|
|
957
957
|
function ii(e) {
|
|
958
|
-
if (!
|
|
958
|
+
if (!ce(e))
|
|
959
959
|
return ni(e);
|
|
960
960
|
var t = qt(e), r = [];
|
|
961
961
|
for (var n in e)
|
|
962
962
|
n == "constructor" && (t || !si.call(e, n)) || r.push(n);
|
|
963
963
|
return r;
|
|
964
964
|
}
|
|
965
|
-
function
|
|
966
|
-
return
|
|
965
|
+
function gn(e) {
|
|
966
|
+
return bt(e) ? fn(e, !0) : ii(e);
|
|
967
967
|
}
|
|
968
968
|
var ai = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ci = /^\w*$/;
|
|
969
969
|
function li(e, t) {
|
|
@@ -972,9 +972,9 @@ function li(e, t) {
|
|
|
972
972
|
var r = typeof e;
|
|
973
973
|
return r == "number" || r == "symbol" || r == "boolean" || e == null || Yt(e) ? !0 : ci.test(e) || !ai.test(e) || t != null && e in Object(t);
|
|
974
974
|
}
|
|
975
|
-
var
|
|
975
|
+
var qe = De(Object, "create");
|
|
976
976
|
function ui() {
|
|
977
|
-
this.__data__ =
|
|
977
|
+
this.__data__ = qe ? qe(null) : {}, this.size = 0;
|
|
978
978
|
}
|
|
979
979
|
function di(e) {
|
|
980
980
|
var t = this.has(e) && delete this.__data__[e];
|
|
@@ -983,7 +983,7 @@ function di(e) {
|
|
|
983
983
|
var fi = "__lodash_hash_undefined__", pi = Object.prototype, gi = pi.hasOwnProperty;
|
|
984
984
|
function hi(e) {
|
|
985
985
|
var t = this.__data__;
|
|
986
|
-
if (
|
|
986
|
+
if (qe) {
|
|
987
987
|
var r = t[e];
|
|
988
988
|
return r === fi ? void 0 : r;
|
|
989
989
|
}
|
|
@@ -992,12 +992,12 @@ function hi(e) {
|
|
|
992
992
|
var mi = Object.prototype, bi = mi.hasOwnProperty;
|
|
993
993
|
function vi(e) {
|
|
994
994
|
var t = this.__data__;
|
|
995
|
-
return
|
|
995
|
+
return qe ? t[e] !== void 0 : bi.call(t, e);
|
|
996
996
|
}
|
|
997
997
|
var yi = "__lodash_hash_undefined__";
|
|
998
998
|
function _i(e, t) {
|
|
999
999
|
var r = this.__data__;
|
|
1000
|
-
return this.size += this.has(e) ? 0 : 1, r[e] =
|
|
1000
|
+
return this.size += this.has(e) ? 0 : 1, r[e] = qe && t === void 0 ? yi : t, this;
|
|
1001
1001
|
}
|
|
1002
1002
|
function Ee(e) {
|
|
1003
1003
|
var t = -1, r = e == null ? 0 : e.length;
|
|
@@ -1011,32 +1011,32 @@ Ee.prototype.delete = di;
|
|
|
1011
1011
|
Ee.prototype.get = hi;
|
|
1012
1012
|
Ee.prototype.has = vi;
|
|
1013
1013
|
Ee.prototype.set = _i;
|
|
1014
|
-
function
|
|
1014
|
+
function xi() {
|
|
1015
1015
|
this.__data__ = [], this.size = 0;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function vt(e, t) {
|
|
1018
1018
|
for (var r = e.length; r--; )
|
|
1019
1019
|
if (Je(e[r][0], t))
|
|
1020
1020
|
return r;
|
|
1021
1021
|
return -1;
|
|
1022
1022
|
}
|
|
1023
|
-
var
|
|
1023
|
+
var wi = Array.prototype, Ci = wi.splice;
|
|
1024
1024
|
function Ti(e) {
|
|
1025
|
-
var t = this.__data__, r =
|
|
1025
|
+
var t = this.__data__, r = vt(t, e);
|
|
1026
1026
|
if (r < 0)
|
|
1027
1027
|
return !1;
|
|
1028
1028
|
var n = t.length - 1;
|
|
1029
1029
|
return r == n ? t.pop() : Ci.call(t, r, 1), --this.size, !0;
|
|
1030
1030
|
}
|
|
1031
1031
|
function Si(e) {
|
|
1032
|
-
var t = this.__data__, r =
|
|
1032
|
+
var t = this.__data__, r = vt(t, e);
|
|
1033
1033
|
return r < 0 ? void 0 : t[r][1];
|
|
1034
1034
|
}
|
|
1035
1035
|
function Pi(e) {
|
|
1036
|
-
return
|
|
1036
|
+
return vt(this.__data__, e) > -1;
|
|
1037
1037
|
}
|
|
1038
1038
|
function Ri(e, t) {
|
|
1039
|
-
var r = this.__data__, n =
|
|
1039
|
+
var r = this.__data__, n = vt(r, e);
|
|
1040
1040
|
return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
|
|
1041
1041
|
}
|
|
1042
1042
|
function _e(e) {
|
|
@@ -1046,16 +1046,16 @@ function _e(e) {
|
|
|
1046
1046
|
this.set(n[0], n[1]);
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
|
-
_e.prototype.clear =
|
|
1049
|
+
_e.prototype.clear = xi;
|
|
1050
1050
|
_e.prototype.delete = Ti;
|
|
1051
1051
|
_e.prototype.get = Si;
|
|
1052
1052
|
_e.prototype.has = Pi;
|
|
1053
1053
|
_e.prototype.set = Ri;
|
|
1054
|
-
var
|
|
1054
|
+
var Ke = De(ge, "Map");
|
|
1055
1055
|
function ji() {
|
|
1056
1056
|
this.size = 0, this.__data__ = {
|
|
1057
1057
|
hash: new Ee(),
|
|
1058
|
-
map: new (
|
|
1058
|
+
map: new (Ke || _e)(),
|
|
1059
1059
|
string: new Ee()
|
|
1060
1060
|
};
|
|
1061
1061
|
}
|
|
@@ -1063,36 +1063,36 @@ function Fi(e) {
|
|
|
1063
1063
|
var t = typeof e;
|
|
1064
1064
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function yt(e, t) {
|
|
1067
1067
|
var r = e.__data__;
|
|
1068
1068
|
return Fi(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
|
|
1069
1069
|
}
|
|
1070
1070
|
function Ei(e) {
|
|
1071
|
-
var t =
|
|
1071
|
+
var t = yt(this, e).delete(e);
|
|
1072
1072
|
return this.size -= t ? 1 : 0, t;
|
|
1073
1073
|
}
|
|
1074
1074
|
function Ai(e) {
|
|
1075
|
-
return
|
|
1075
|
+
return yt(this, e).get(e);
|
|
1076
1076
|
}
|
|
1077
1077
|
function Di(e) {
|
|
1078
|
-
return
|
|
1078
|
+
return yt(this, e).has(e);
|
|
1079
1079
|
}
|
|
1080
1080
|
function Oi(e, t) {
|
|
1081
|
-
var r =
|
|
1081
|
+
var r = yt(this, e), n = r.size;
|
|
1082
1082
|
return r.set(e, t), this.size += r.size == n ? 0 : 1, this;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function xe(e) {
|
|
1085
1085
|
var t = -1, r = e == null ? 0 : e.length;
|
|
1086
1086
|
for (this.clear(); ++t < r; ) {
|
|
1087
1087
|
var n = e[t];
|
|
1088
1088
|
this.set(n[0], n[1]);
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1091
|
+
xe.prototype.clear = ji;
|
|
1092
|
+
xe.prototype.delete = Ei;
|
|
1093
|
+
xe.prototype.get = Ai;
|
|
1094
|
+
xe.prototype.has = Di;
|
|
1095
|
+
xe.prototype.set = Oi;
|
|
1096
1096
|
var $i = "Expected a function";
|
|
1097
1097
|
function Jt(e, t) {
|
|
1098
1098
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
@@ -1104,9 +1104,9 @@ function Jt(e, t) {
|
|
|
1104
1104
|
var a = e.apply(this, n);
|
|
1105
1105
|
return r.cache = s.set(o, a) || s, a;
|
|
1106
1106
|
};
|
|
1107
|
-
return r.cache = new (Jt.Cache ||
|
|
1107
|
+
return r.cache = new (Jt.Cache || xe)(), r;
|
|
1108
1108
|
}
|
|
1109
|
-
Jt.Cache =
|
|
1109
|
+
Jt.Cache = xe;
|
|
1110
1110
|
var Mi = 500;
|
|
1111
1111
|
function ki(e) {
|
|
1112
1112
|
var t = Jt(e, function(n) {
|
|
@@ -1121,7 +1121,7 @@ var zi = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
|
|
|
1121
1121
|
}), t;
|
|
1122
1122
|
});
|
|
1123
1123
|
function Ni(e) {
|
|
1124
|
-
return e == null ? "" :
|
|
1124
|
+
return e == null ? "" : on(e);
|
|
1125
1125
|
}
|
|
1126
1126
|
function Wi(e, t) {
|
|
1127
1127
|
return oe(e) ? e : li(e, t) ? [e] : Li(Ni(e));
|
|
@@ -1138,15 +1138,15 @@ function Vi(e, t) {
|
|
|
1138
1138
|
e[o + r] = t[r];
|
|
1139
1139
|
return e;
|
|
1140
1140
|
}
|
|
1141
|
-
var
|
|
1141
|
+
var hn = pn(Object.getPrototypeOf, Object), Ui = "[object Object]", Yi = Function.prototype, Gi = Object.prototype, mn = Yi.toString, Xi = Gi.hasOwnProperty, qi = mn.call(Object);
|
|
1142
1142
|
function Ki(e) {
|
|
1143
|
-
if (!
|
|
1143
|
+
if (!de(e) || he(e) != Ui)
|
|
1144
1144
|
return !1;
|
|
1145
|
-
var t =
|
|
1145
|
+
var t = hn(e);
|
|
1146
1146
|
if (t === null)
|
|
1147
1147
|
return !0;
|
|
1148
1148
|
var r = Xi.call(t, "constructor") && t.constructor;
|
|
1149
|
-
return typeof r == "function" && r instanceof r &&
|
|
1149
|
+
return typeof r == "function" && r instanceof r && mn.call(r) == qi;
|
|
1150
1150
|
}
|
|
1151
1151
|
function Ji() {
|
|
1152
1152
|
this.__data__ = new _e(), this.size = 0;
|
|
@@ -1166,9 +1166,9 @@ function ra(e, t) {
|
|
|
1166
1166
|
var r = this.__data__;
|
|
1167
1167
|
if (r instanceof _e) {
|
|
1168
1168
|
var n = r.__data__;
|
|
1169
|
-
if (!
|
|
1169
|
+
if (!Ke || n.length < ta - 1)
|
|
1170
1170
|
return n.push([e, t]), this.size = ++r.size, this;
|
|
1171
|
-
r = this.__data__ = new
|
|
1171
|
+
r = this.__data__ = new xe(n);
|
|
1172
1172
|
}
|
|
1173
1173
|
return r.set(e, t), this.size = r.size, this;
|
|
1174
1174
|
}
|
|
@@ -1181,8 +1181,8 @@ ye.prototype.delete = Zi;
|
|
|
1181
1181
|
ye.prototype.get = Qi;
|
|
1182
1182
|
ye.prototype.has = ea;
|
|
1183
1183
|
ye.prototype.set = ra;
|
|
1184
|
-
var
|
|
1185
|
-
|
|
1184
|
+
var bn = typeof exports == "object" && exports && !exports.nodeType && exports, Rr = bn && typeof module == "object" && module && !module.nodeType && module, na = Rr && Rr.exports === bn, jr = na ? ge.Buffer : void 0;
|
|
1185
|
+
jr && jr.allocUnsafe;
|
|
1186
1186
|
function oa(e, t) {
|
|
1187
1187
|
return e.slice();
|
|
1188
1188
|
}
|
|
@@ -1196,8 +1196,8 @@ function sa(e, t) {
|
|
|
1196
1196
|
function ia() {
|
|
1197
1197
|
return [];
|
|
1198
1198
|
}
|
|
1199
|
-
var aa = Object.prototype, ca = aa.propertyIsEnumerable,
|
|
1200
|
-
return e == null ? [] : (e = Object(e), sa(
|
|
1199
|
+
var aa = Object.prototype, ca = aa.propertyIsEnumerable, Fr = Object.getOwnPropertySymbols, la = Fr ? function(e) {
|
|
1200
|
+
return e == null ? [] : (e = Object(e), sa(Fr(e), function(t) {
|
|
1201
1201
|
return ca.call(e, t);
|
|
1202
1202
|
}));
|
|
1203
1203
|
} : ia;
|
|
@@ -1205,53 +1205,53 @@ function ua(e, t, r) {
|
|
|
1205
1205
|
var n = t(e);
|
|
1206
1206
|
return oe(e) ? n : Vi(n, r(e));
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function Er(e) {
|
|
1209
1209
|
return ua(e, ri, la);
|
|
1210
1210
|
}
|
|
1211
|
-
var
|
|
1212
|
-
(
|
|
1213
|
-
var t =
|
|
1211
|
+
var Nt = De(ge, "DataView"), Wt = De(ge, "Promise"), Ht = De(ge, "Set"), Ar = "[object Map]", da = "[object Object]", Dr = "[object Promise]", Or = "[object Set]", $r = "[object WeakMap]", Mr = "[object DataView]", fa = Ae(Nt), pa = Ae(Ke), ga = Ae(Wt), ha = Ae(Ht), ma = Ae(It), we = he;
|
|
1212
|
+
(Nt && we(new Nt(new ArrayBuffer(1))) != Mr || Ke && we(new Ke()) != Ar || Wt && we(Wt.resolve()) != Dr || Ht && we(new Ht()) != Or || It && we(new It()) != $r) && (we = function(e) {
|
|
1213
|
+
var t = he(e), r = t == da ? e.constructor : void 0, n = r ? Ae(r) : "";
|
|
1214
1214
|
if (n)
|
|
1215
1215
|
switch (n) {
|
|
1216
1216
|
case fa:
|
|
1217
|
-
return
|
|
1217
|
+
return Mr;
|
|
1218
1218
|
case pa:
|
|
1219
|
-
return Er;
|
|
1220
|
-
case ga:
|
|
1221
1219
|
return Ar;
|
|
1222
|
-
case
|
|
1220
|
+
case ga:
|
|
1223
1221
|
return Dr;
|
|
1224
|
-
case
|
|
1222
|
+
case ha:
|
|
1225
1223
|
return Or;
|
|
1224
|
+
case ma:
|
|
1225
|
+
return $r;
|
|
1226
1226
|
}
|
|
1227
1227
|
return t;
|
|
1228
1228
|
});
|
|
1229
|
-
var
|
|
1229
|
+
var ut = ge.Uint8Array;
|
|
1230
1230
|
function ba(e) {
|
|
1231
1231
|
var t = new e.constructor(e.byteLength);
|
|
1232
|
-
return new
|
|
1232
|
+
return new ut(t).set(new ut(e)), t;
|
|
1233
1233
|
}
|
|
1234
1234
|
function va(e, t) {
|
|
1235
1235
|
var r = ba(e.buffer);
|
|
1236
1236
|
return new e.constructor(r, e.byteOffset, e.length);
|
|
1237
1237
|
}
|
|
1238
1238
|
function ya(e) {
|
|
1239
|
-
return typeof e.constructor == "function" && !qt(e) ? qo(
|
|
1239
|
+
return typeof e.constructor == "function" && !qt(e) ? qo(hn(e)) : {};
|
|
1240
1240
|
}
|
|
1241
1241
|
var _a = "__lodash_hash_undefined__";
|
|
1242
|
-
function
|
|
1242
|
+
function xa(e) {
|
|
1243
1243
|
return this.__data__.set(e, _a), this;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function wa(e) {
|
|
1246
1246
|
return this.__data__.has(e);
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function dt(e) {
|
|
1249
1249
|
var t = -1, r = e == null ? 0 : e.length;
|
|
1250
|
-
for (this.__data__ = new
|
|
1250
|
+
for (this.__data__ = new xe(); ++t < r; )
|
|
1251
1251
|
this.add(e[t]);
|
|
1252
1252
|
}
|
|
1253
|
-
|
|
1254
|
-
|
|
1253
|
+
dt.prototype.add = dt.prototype.push = xa;
|
|
1254
|
+
dt.prototype.has = wa;
|
|
1255
1255
|
function Ca(e, t) {
|
|
1256
1256
|
for (var r = -1, n = e == null ? 0 : e.length; ++r < n; )
|
|
1257
1257
|
if (t(e[r], r, e))
|
|
@@ -1262,14 +1262,14 @@ function Ta(e, t) {
|
|
|
1262
1262
|
return e.has(t);
|
|
1263
1263
|
}
|
|
1264
1264
|
var Sa = 1, Pa = 2;
|
|
1265
|
-
function
|
|
1265
|
+
function vn(e, t, r, n, o, s) {
|
|
1266
1266
|
var a = r & Sa, i = e.length, l = t.length;
|
|
1267
1267
|
if (i != l && !(a && l > i))
|
|
1268
1268
|
return !1;
|
|
1269
1269
|
var u = s.get(e), f = s.get(t);
|
|
1270
1270
|
if (u && f)
|
|
1271
1271
|
return u == t && f == e;
|
|
1272
|
-
var g = -1, d = !0, b = r & Pa ? new
|
|
1272
|
+
var g = -1, d = !0, b = r & Pa ? new dt() : void 0;
|
|
1273
1273
|
for (s.set(e, t), s.set(t, e); ++g < i; ) {
|
|
1274
1274
|
var p = e[g], v = t[g];
|
|
1275
1275
|
if (n)
|
|
@@ -1281,9 +1281,9 @@ function bn(e, t, r, n, o, s) {
|
|
|
1281
1281
|
break;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (b) {
|
|
1284
|
-
if (!Ca(t, function(R,
|
|
1285
|
-
if (!Ta(b,
|
|
1286
|
-
return b.push(
|
|
1284
|
+
if (!Ca(t, function(R, T) {
|
|
1285
|
+
if (!Ta(b, T) && (p === R || o(p, R, r, n, s)))
|
|
1286
|
+
return b.push(T);
|
|
1287
1287
|
})) {
|
|
1288
1288
|
d = !1;
|
|
1289
1289
|
break;
|
|
@@ -1307,7 +1307,7 @@ function ja(e) {
|
|
|
1307
1307
|
r[++t] = n;
|
|
1308
1308
|
}), r;
|
|
1309
1309
|
}
|
|
1310
|
-
var Fa = 1, Ea = 2, Aa = "[object Boolean]", Da = "[object Date]", Oa = "[object Error]", $a = "[object Map]", Ma = "[object Number]", ka = "[object RegExp]", za = "[object Set]", Ia = "[object String]", La = "[object Symbol]", Na = "[object ArrayBuffer]", Wa = "[object DataView]",
|
|
1310
|
+
var Fa = 1, Ea = 2, Aa = "[object Boolean]", Da = "[object Date]", Oa = "[object Error]", $a = "[object Map]", Ma = "[object Number]", ka = "[object RegExp]", za = "[object Set]", Ia = "[object String]", La = "[object Symbol]", Na = "[object ArrayBuffer]", Wa = "[object DataView]", kr = Ce ? Ce.prototype : void 0, Ot = kr ? kr.valueOf : void 0;
|
|
1311
1311
|
function Ha(e, t, r, n, o, s, a) {
|
|
1312
1312
|
switch (r) {
|
|
1313
1313
|
case Wa:
|
|
@@ -1315,7 +1315,7 @@ function Ha(e, t, r, n, o, s, a) {
|
|
|
1315
1315
|
return !1;
|
|
1316
1316
|
e = e.buffer, t = t.buffer;
|
|
1317
1317
|
case Na:
|
|
1318
|
-
return !(e.byteLength != t.byteLength || !s(new
|
|
1318
|
+
return !(e.byteLength != t.byteLength || !s(new ut(e), new ut(t)));
|
|
1319
1319
|
case Aa:
|
|
1320
1320
|
case Da:
|
|
1321
1321
|
case Ma:
|
|
@@ -1335,17 +1335,17 @@ function Ha(e, t, r, n, o, s, a) {
|
|
|
1335
1335
|
if (u)
|
|
1336
1336
|
return u == t;
|
|
1337
1337
|
n |= Ea, a.set(e, t);
|
|
1338
|
-
var f =
|
|
1338
|
+
var f = vn(i(e), i(t), n, o, s, a);
|
|
1339
1339
|
return a.delete(e), f;
|
|
1340
1340
|
case La:
|
|
1341
|
-
if (
|
|
1342
|
-
return
|
|
1341
|
+
if (Ot)
|
|
1342
|
+
return Ot.call(e) == Ot.call(t);
|
|
1343
1343
|
}
|
|
1344
1344
|
return !1;
|
|
1345
1345
|
}
|
|
1346
1346
|
var Ba = 1, Va = Object.prototype, Ua = Va.hasOwnProperty;
|
|
1347
1347
|
function Ya(e, t, r, n, o, s) {
|
|
1348
|
-
var a = r & Ba, i =
|
|
1348
|
+
var a = r & Ba, i = Er(e), l = i.length, u = Er(t), f = u.length;
|
|
1349
1349
|
if (l != f && !a)
|
|
1350
1350
|
return !1;
|
|
1351
1351
|
for (var g = l; g--; ) {
|
|
@@ -1360,35 +1360,35 @@ function Ya(e, t, r, n, o, s) {
|
|
|
1360
1360
|
s.set(e, t), s.set(t, e);
|
|
1361
1361
|
for (var _ = a; ++g < l; ) {
|
|
1362
1362
|
d = i[g];
|
|
1363
|
-
var R = e[d],
|
|
1363
|
+
var R = e[d], T = t[d];
|
|
1364
1364
|
if (n)
|
|
1365
|
-
var
|
|
1366
|
-
if (!(
|
|
1365
|
+
var F = a ? n(T, R, d, t, e, s) : n(R, T, d, e, t, s);
|
|
1366
|
+
if (!(F === void 0 ? R === T || o(R, T, r, n, s) : F)) {
|
|
1367
1367
|
v = !1;
|
|
1368
1368
|
break;
|
|
1369
1369
|
}
|
|
1370
1370
|
_ || (_ = d == "constructor");
|
|
1371
1371
|
}
|
|
1372
1372
|
if (v && !_) {
|
|
1373
|
-
var
|
|
1374
|
-
|
|
1373
|
+
var O = e.constructor, I = t.constructor;
|
|
1374
|
+
O != I && "constructor" in e && "constructor" in t && !(typeof O == "function" && O instanceof O && typeof I == "function" && I instanceof I) && (v = !1);
|
|
1375
1375
|
}
|
|
1376
1376
|
return s.delete(e), s.delete(t), v;
|
|
1377
1377
|
}
|
|
1378
|
-
var Ga = 1,
|
|
1378
|
+
var Ga = 1, zr = "[object Arguments]", Ir = "[object Array]", nt = "[object Object]", Xa = Object.prototype, Lr = Xa.hasOwnProperty;
|
|
1379
1379
|
function qa(e, t, r, n, o, s) {
|
|
1380
|
-
var a = oe(e), i = oe(t), l = a ?
|
|
1381
|
-
l = l ==
|
|
1380
|
+
var a = oe(e), i = oe(t), l = a ? Ir : we(e), u = i ? Ir : we(t);
|
|
1381
|
+
l = l == zr ? nt : l, u = u == zr ? nt : u;
|
|
1382
1382
|
var f = l == nt, g = u == nt, d = l == u;
|
|
1383
|
-
if (d &&
|
|
1384
|
-
if (!
|
|
1383
|
+
if (d && lt(e)) {
|
|
1384
|
+
if (!lt(t))
|
|
1385
1385
|
return !1;
|
|
1386
1386
|
a = !0, f = !1;
|
|
1387
1387
|
}
|
|
1388
1388
|
if (d && !f)
|
|
1389
|
-
return s || (s = new ye()), a || Kt(e) ?
|
|
1389
|
+
return s || (s = new ye()), a || Kt(e) ? vn(e, t, r, n, o, s) : Ha(e, t, l, r, n, o, s);
|
|
1390
1390
|
if (!(r & Ga)) {
|
|
1391
|
-
var b = f &&
|
|
1391
|
+
var b = f && Lr.call(e, "__wrapped__"), p = g && Lr.call(t, "__wrapped__");
|
|
1392
1392
|
if (b || p) {
|
|
1393
1393
|
var v = b ? e.value() : e, _ = p ? t.value() : t;
|
|
1394
1394
|
return s || (s = new ye()), o(v, _, r, n, s);
|
|
@@ -1396,8 +1396,8 @@ function qa(e, t, r, n, o, s) {
|
|
|
1396
1396
|
}
|
|
1397
1397
|
return d ? (s || (s = new ye()), Ya(e, t, r, n, o, s)) : !1;
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1400
|
-
return e === t ? !0 : e == null || t == null || !
|
|
1399
|
+
function yn(e, t, r, n, o) {
|
|
1400
|
+
return e === t ? !0 : e == null || t == null || !de(e) && !de(t) ? e !== e && t !== t : qa(e, t, r, n, yn, o);
|
|
1401
1401
|
}
|
|
1402
1402
|
function Ka(e) {
|
|
1403
1403
|
return function(t, r, n) {
|
|
@@ -1410,68 +1410,68 @@ function Ka(e) {
|
|
|
1410
1410
|
};
|
|
1411
1411
|
}
|
|
1412
1412
|
var Ja = Ka();
|
|
1413
|
-
function
|
|
1413
|
+
function Bt(e, t, r) {
|
|
1414
1414
|
(r !== void 0 && !Je(e[t], r) || r === void 0 && !(t in e)) && Xt(e, t, r);
|
|
1415
1415
|
}
|
|
1416
1416
|
function Za(e) {
|
|
1417
|
-
return
|
|
1417
|
+
return de(e) && bt(e);
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function Vt(e, t) {
|
|
1420
1420
|
if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
|
|
1421
1421
|
return e[t];
|
|
1422
1422
|
}
|
|
1423
1423
|
function Qa(e) {
|
|
1424
|
-
return ls(e,
|
|
1424
|
+
return ls(e, gn(e));
|
|
1425
1425
|
}
|
|
1426
1426
|
function ec(e, t, r, n, o, s, a) {
|
|
1427
|
-
var i =
|
|
1427
|
+
var i = Vt(e, r), l = Vt(t, r), u = a.get(l);
|
|
1428
1428
|
if (u) {
|
|
1429
|
-
|
|
1429
|
+
Bt(e, r, u);
|
|
1430
1430
|
return;
|
|
1431
1431
|
}
|
|
1432
1432
|
var f = s ? s(i, l, r + "", e, t, a) : void 0, g = f === void 0;
|
|
1433
1433
|
if (g) {
|
|
1434
|
-
var d = oe(l), b = !d &&
|
|
1435
|
-
f = l, d || b || p ? oe(i) ? f = i : Za(i) ? f = Jo(i) : b ? (g = !1, f = oa(l)) : p ? (g = !1, f = va(l)) : f = [] : Ki(l) ||
|
|
1434
|
+
var d = oe(l), b = !d && lt(l), p = !d && !b && Kt(l);
|
|
1435
|
+
f = l, d || b || p ? oe(i) ? f = i : Za(i) ? f = Jo(i) : b ? (g = !1, f = oa(l)) : p ? (g = !1, f = va(l)) : f = [] : Ki(l) || Lt(l) ? (f = i, Lt(i) ? f = Qa(i) : (!ce(i) || Q(i)) && (f = ya(l))) : g = !1;
|
|
1436
1436
|
}
|
|
1437
|
-
g && (a.set(l, f), o(f, l, n, s, a), a.delete(l)),
|
|
1437
|
+
g && (a.set(l, f), o(f, l, n, s, a), a.delete(l)), Bt(e, r, f);
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function _n(e, t, r, n, o) {
|
|
1440
1440
|
e !== t && Ja(t, function(s, a) {
|
|
1441
|
-
if (o || (o = new ye()),
|
|
1442
|
-
ec(e, t, a, r,
|
|
1441
|
+
if (o || (o = new ye()), ce(s))
|
|
1442
|
+
ec(e, t, a, r, _n, n, o);
|
|
1443
1443
|
else {
|
|
1444
|
-
var i = n ? n(
|
|
1445
|
-
i === void 0 && (i = s),
|
|
1444
|
+
var i = n ? n(Vt(e, a), s, a + "", e, t, o) : void 0;
|
|
1445
|
+
i === void 0 && (i = s), Bt(e, a, i);
|
|
1446
1446
|
}
|
|
1447
|
-
},
|
|
1447
|
+
}, gn);
|
|
1448
1448
|
}
|
|
1449
1449
|
var tc = "[object String]";
|
|
1450
|
-
function
|
|
1451
|
-
return typeof e == "string" || !oe(e) &&
|
|
1450
|
+
function Zt(e) {
|
|
1451
|
+
return typeof e == "string" || !oe(e) && de(e) && he(e) == tc;
|
|
1452
1452
|
}
|
|
1453
1453
|
var rc = "[object Boolean]";
|
|
1454
|
-
function
|
|
1455
|
-
return e === !0 || e === !1 ||
|
|
1454
|
+
function ft(e) {
|
|
1455
|
+
return e === !0 || e === !1 || de(e) && he(e) == rc;
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1458
|
-
return
|
|
1457
|
+
function pt(e, t) {
|
|
1458
|
+
return yn(e, t);
|
|
1459
1459
|
}
|
|
1460
1460
|
var nc = "[object Number]";
|
|
1461
1461
|
function oc(e) {
|
|
1462
|
-
return typeof e == "number" ||
|
|
1462
|
+
return typeof e == "number" || de(e) && he(e) == nc;
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1464
|
+
function Nr(e) {
|
|
1465
1465
|
return e == null;
|
|
1466
1466
|
}
|
|
1467
1467
|
function sc(e) {
|
|
1468
1468
|
return e === null;
|
|
1469
1469
|
}
|
|
1470
|
-
var
|
|
1471
|
-
|
|
1470
|
+
var ue = gs(function(e, t, r) {
|
|
1471
|
+
_n(e, t, r);
|
|
1472
1472
|
});
|
|
1473
1473
|
function ic(e, t, r, n) {
|
|
1474
|
-
if (!
|
|
1474
|
+
if (!ce(e))
|
|
1475
1475
|
return e;
|
|
1476
1476
|
t = Wi(t, e);
|
|
1477
1477
|
for (var o = -1, s = t.length, a = s - 1, i = e; i != null && ++o < s; ) {
|
|
@@ -1480,23 +1480,23 @@ function ic(e, t, r, n) {
|
|
|
1480
1480
|
return e;
|
|
1481
1481
|
if (o != a) {
|
|
1482
1482
|
var f = i[l];
|
|
1483
|
-
u = void 0, u === void 0 && (u =
|
|
1483
|
+
u = void 0, u === void 0 && (u = ce(f) ? f : Gt(t[o + 1]) ? [] : {});
|
|
1484
1484
|
}
|
|
1485
|
-
|
|
1485
|
+
an(i, l, u), i = i[l];
|
|
1486
1486
|
}
|
|
1487
1487
|
return e;
|
|
1488
1488
|
}
|
|
1489
|
-
function
|
|
1489
|
+
function xn(e, t, r) {
|
|
1490
1490
|
return e == null ? e : ic(e, t, r);
|
|
1491
1491
|
}
|
|
1492
1492
|
function ac(e) {
|
|
1493
1493
|
const { inherit: t = !0 } = e, { extendActionsProps: r, extendAuthProps: n } = Sn(), s = {
|
|
1494
|
-
...
|
|
1494
|
+
...ue(ue({
|
|
1495
1495
|
items: [],
|
|
1496
1496
|
max: 10
|
|
1497
1497
|
}, t ? r : {}), e)
|
|
1498
1498
|
}, a = {
|
|
1499
|
-
...
|
|
1499
|
+
...ue(
|
|
1500
1500
|
/** 默认都是返回true,兼容有传auth属性的item项,但是没配置扩展auth方法的情况 */
|
|
1501
1501
|
{
|
|
1502
1502
|
auth: () => !0
|
|
@@ -1509,7 +1509,7 @@ function ac(e) {
|
|
|
1509
1509
|
authProps: a
|
|
1510
1510
|
};
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function wn(e) {
|
|
1513
1513
|
return "component" in e;
|
|
1514
1514
|
}
|
|
1515
1515
|
function cc(e) {
|
|
@@ -1522,7 +1522,7 @@ function lc(e, t) {
|
|
|
1522
1522
|
return d ? oe(d) ? b = d.every((p) => t(p)) : b = t(d) : b = !0, b;
|
|
1523
1523
|
}, i = (g) => {
|
|
1524
1524
|
let { ifShow: d = !0 } = g;
|
|
1525
|
-
return d = d &&
|
|
1525
|
+
return d = d && Q(d) ? d() : d, d && a(g);
|
|
1526
1526
|
}, l = (g) => {
|
|
1527
1527
|
const { component: d, render: b, componentProps: p } = g;
|
|
1528
1528
|
if (d)
|
|
@@ -1537,7 +1537,7 @@ function lc(e, t) {
|
|
|
1537
1537
|
return !!b;
|
|
1538
1538
|
}, u = o.map((g) => {
|
|
1539
1539
|
const d = { ...g };
|
|
1540
|
-
if (
|
|
1540
|
+
if (wn(d)) {
|
|
1541
1541
|
const b = d.component;
|
|
1542
1542
|
switch (d.componentProps = {
|
|
1543
1543
|
type: r,
|
|
@@ -1567,7 +1567,7 @@ const uc = (e) => {
|
|
|
1567
1567
|
const { ...n } = t;
|
|
1568
1568
|
return n;
|
|
1569
1569
|
};
|
|
1570
|
-
return /* @__PURE__ */ h.jsx(
|
|
1570
|
+
return /* @__PURE__ */ h.jsx(ae, { ...r() });
|
|
1571
1571
|
}, dc = (e) => {
|
|
1572
1572
|
const { componentProps: t } = e, n = (() => {
|
|
1573
1573
|
const { dropDownItems: o, onClick: s, ...a } = t;
|
|
@@ -1576,7 +1576,7 @@ const uc = (e) => {
|
|
|
1576
1576
|
return (
|
|
1577
1577
|
/** items: [] 一定要给不然antd会报错 */
|
|
1578
1578
|
/* @__PURE__ */ h.jsx(
|
|
1579
|
-
|
|
1579
|
+
Gr,
|
|
1580
1580
|
{
|
|
1581
1581
|
disabled: n.disabled,
|
|
1582
1582
|
menu: {
|
|
@@ -1584,24 +1584,24 @@ const uc = (e) => {
|
|
|
1584
1584
|
onClick: t == null ? void 0 : t.onClick
|
|
1585
1585
|
},
|
|
1586
1586
|
trigger: ["click"],
|
|
1587
|
-
children: /* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsxs(
|
|
1587
|
+
children: /* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsxs(ae, { ...n, children: [
|
|
1588
1588
|
n.children,
|
|
1589
|
-
/* @__PURE__ */ h.jsx(
|
|
1589
|
+
/* @__PURE__ */ h.jsx(tn, {})
|
|
1590
1590
|
] }) })
|
|
1591
1591
|
}
|
|
1592
1592
|
)
|
|
1593
1593
|
);
|
|
1594
|
-
},
|
|
1595
|
-
|
|
1596
|
-
|
|
1594
|
+
}, gt = /* @__PURE__ */ new Map();
|
|
1595
|
+
gt.set("Button", uc);
|
|
1596
|
+
gt.set("Dropdown", dc);
|
|
1597
1597
|
function Cn() {
|
|
1598
1598
|
const { setExtendActionsComp: e } = Sn();
|
|
1599
|
-
return e(
|
|
1599
|
+
return e(gt), {
|
|
1600
1600
|
renderContent: ve(
|
|
1601
1601
|
(r, n) => {
|
|
1602
|
-
const o =
|
|
1602
|
+
const o = wn(r), s = cc(r);
|
|
1603
1603
|
if (o) {
|
|
1604
|
-
const a =
|
|
1604
|
+
const a = gt.get(r.component);
|
|
1605
1605
|
return /* @__PURE__ */ Kn(a, { ...r, key: n });
|
|
1606
1606
|
}
|
|
1607
1607
|
return s ? /* @__PURE__ */ h.jsx("div", { children: r.render }, n) : null;
|
|
@@ -1610,7 +1610,7 @@ function Cn() {
|
|
|
1610
1610
|
)
|
|
1611
1611
|
};
|
|
1612
1612
|
}
|
|
1613
|
-
const Tn = Jn({}),
|
|
1613
|
+
const Tn = Jn({}), uu = (e) => {
|
|
1614
1614
|
const { extendProps: t, extendComp: r } = e.value;
|
|
1615
1615
|
return /* @__PURE__ */ h.jsx(
|
|
1616
1616
|
Tn.Provider,
|
|
@@ -1623,8 +1623,8 @@ const Tn = Jn({}), iu = (e) => {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
);
|
|
1625
1625
|
}, Ze = () => Zn(Tn), fc = (e) => {
|
|
1626
|
-
const [t, r] =
|
|
1627
|
-
return
|
|
1626
|
+
const [t, r] = q(e), n = j(null);
|
|
1627
|
+
return X(() => {
|
|
1628
1628
|
n.current && (n.current(), n.current = null);
|
|
1629
1629
|
}, [t]), [t, (s) => new Promise((a, i) => {
|
|
1630
1630
|
r((l) => {
|
|
@@ -1644,7 +1644,7 @@ const Tn = Jn({}), iu = (e) => {
|
|
|
1644
1644
|
extendActionsProps: e == null ? void 0 : e.actions,
|
|
1645
1645
|
setExtendActionsComp: r
|
|
1646
1646
|
};
|
|
1647
|
-
}, { useToken: pc } =
|
|
1647
|
+
}, { useToken: pc } = Le, gc = ({
|
|
1648
1648
|
items: e,
|
|
1649
1649
|
actionsProps: t
|
|
1650
1650
|
}) => {
|
|
@@ -1656,25 +1656,25 @@ const Tn = Jn({}), iu = (e) => {
|
|
|
1656
1656
|
return (
|
|
1657
1657
|
/** items: [] 一定要给不然antd会报错 */
|
|
1658
1658
|
/* @__PURE__ */ h.jsx(
|
|
1659
|
-
|
|
1659
|
+
Gr,
|
|
1660
1660
|
{
|
|
1661
1661
|
disabled: n,
|
|
1662
1662
|
menu: { items: [] },
|
|
1663
1663
|
dropdownRender: i,
|
|
1664
1664
|
trigger: ["click"],
|
|
1665
|
-
children: /* @__PURE__ */ h.jsxs(
|
|
1665
|
+
children: /* @__PURE__ */ h.jsxs(ae, { type: r, children: [
|
|
1666
1666
|
"更多",
|
|
1667
|
-
/* @__PURE__ */ h.jsx(
|
|
1667
|
+
/* @__PURE__ */ h.jsx(tn, {})
|
|
1668
1668
|
] })
|
|
1669
1669
|
}
|
|
1670
1670
|
)
|
|
1671
1671
|
);
|
|
1672
|
-
},
|
|
1672
|
+
}, Qt = (e) => {
|
|
1673
1673
|
const { actionsProps: t, authProps: r } = ac(e), { auth: n } = r, { showActionItems: o, ellipsisActionItems: s } = lc(
|
|
1674
1674
|
t,
|
|
1675
1675
|
n
|
|
1676
1676
|
), { renderContent: a } = Cn();
|
|
1677
|
-
return t != null && t.render ? t.render : /* @__PURE__ */ h.jsxs(
|
|
1677
|
+
return t != null && t.render ? t.render : /* @__PURE__ */ h.jsxs(Ur, { children: [
|
|
1678
1678
|
o == null ? void 0 : o.map((i, l) => a(i, l)),
|
|
1679
1679
|
s != null && s.length ? /* @__PURE__ */ h.jsx(gc, { actionsProps: t, items: s }) : null
|
|
1680
1680
|
] });
|
|
@@ -1716,7 +1716,7 @@ const mc = (e) => {
|
|
|
1716
1716
|
/** 默认都是挂载在body上 */
|
|
1717
1717
|
getPopperContainer: () => document.body
|
|
1718
1718
|
}, n = {
|
|
1719
|
-
...
|
|
1719
|
+
...ue(ue(r, t), e)
|
|
1720
1720
|
};
|
|
1721
1721
|
return {
|
|
1722
1722
|
dialogProps: {
|
|
@@ -1748,7 +1748,7 @@ const mc = (e) => {
|
|
|
1748
1748
|
initHeight: t,
|
|
1749
1749
|
setDialogChangeRecord: r
|
|
1750
1750
|
}) => {
|
|
1751
|
-
const [n, o] =
|
|
1751
|
+
const [n, o] = q(e.current), [s, a] = q(
|
|
1752
1752
|
t.current
|
|
1753
1753
|
);
|
|
1754
1754
|
return {
|
|
@@ -1766,7 +1766,7 @@ const mc = (e) => {
|
|
|
1766
1766
|
initTop: t,
|
|
1767
1767
|
setDialogChangeRecord: r
|
|
1768
1768
|
}) => {
|
|
1769
|
-
const [n, o] =
|
|
1769
|
+
const [n, o] = q(e.current), [s, a] = q(t.current);
|
|
1770
1770
|
return {
|
|
1771
1771
|
dialogLeft: n,
|
|
1772
1772
|
dialogTop: s,
|
|
@@ -1777,13 +1777,13 @@ const mc = (e) => {
|
|
|
1777
1777
|
r({ left: n, top: s }), l !== void 0 && o(l), u !== void 0 && a(u);
|
|
1778
1778
|
}
|
|
1779
1779
|
};
|
|
1780
|
-
},
|
|
1780
|
+
}, Wr = ({
|
|
1781
1781
|
containerSizeTarget: e,
|
|
1782
1782
|
dialogHeaderRef: t,
|
|
1783
1783
|
dialogRef: r,
|
|
1784
1784
|
setDialogPosition: n
|
|
1785
1785
|
}) => {
|
|
1786
|
-
const o =
|
|
1786
|
+
const o = j(0), s = j(0), a = (f) => {
|
|
1787
1787
|
const g = f.getBoundingClientRect(), d = g.width, b = g.height, p = -0.5 * d, v = -0.5 * b;
|
|
1788
1788
|
return { translateX: p, translateY: v };
|
|
1789
1789
|
}, i = ve((f) => {
|
|
@@ -1792,25 +1792,25 @@ const mc = (e) => {
|
|
|
1792
1792
|
}, []), l = ve((f) => {
|
|
1793
1793
|
const g = r.current, { translateX: d, translateY: b } = a(g);
|
|
1794
1794
|
let p = f.clientX - o.current, v = f.clientY - s.current;
|
|
1795
|
-
const _ = -d, R = -b,
|
|
1796
|
-
p < _ && (p = _), p >
|
|
1795
|
+
const _ = -d, R = -b, T = e.current.scrollWidth - g.offsetWidth - d, F = e.current.scrollHeight - g.offsetHeight - b;
|
|
1796
|
+
p < _ && (p = _), p > T && (p = T), v < R && (v = R), v > F && (v = F), n({ left: p, top: v });
|
|
1797
1797
|
}, []), u = ve(() => {
|
|
1798
1798
|
document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", u);
|
|
1799
1799
|
}, []);
|
|
1800
|
-
return
|
|
1800
|
+
return X(() => {
|
|
1801
1801
|
const f = t.current;
|
|
1802
1802
|
return f.addEventListener("mousedown", i), () => {
|
|
1803
1803
|
f.removeEventListener("mousedown", i);
|
|
1804
1804
|
};
|
|
1805
1805
|
}, []), {};
|
|
1806
|
-
},
|
|
1806
|
+
}, xc = ({
|
|
1807
1807
|
containerSizeTarget: e,
|
|
1808
1808
|
dialogChangeRecord: t,
|
|
1809
1809
|
close: r,
|
|
1810
1810
|
setDialogSize: n,
|
|
1811
1811
|
setDialogPosition: o
|
|
1812
1812
|
}) => {
|
|
1813
|
-
const [s, a] =
|
|
1813
|
+
const [s, a] = q(!1), [i, l] = q(!1);
|
|
1814
1814
|
return {
|
|
1815
1815
|
minimizeVisible: s,
|
|
1816
1816
|
maximizeVisible: i,
|
|
@@ -1821,8 +1821,8 @@ const mc = (e) => {
|
|
|
1821
1821
|
},
|
|
1822
1822
|
onMaximize: (b) => {
|
|
1823
1823
|
if (b === "minimize" && a(!1), b === "maximize") {
|
|
1824
|
-
const { scrollWidth: p, scrollHeight: v } = e.current, _ = Math.floor(p), R = Math.floor(v),
|
|
1825
|
-
n({ width: _, height: R }), o({ top:
|
|
1824
|
+
const { scrollWidth: p, scrollHeight: v } = e.current, _ = Math.floor(p), R = Math.floor(v), T = Math.floor(p / 2), F = Math.floor(v / 2);
|
|
1825
|
+
n({ width: _, height: R }), o({ top: F, left: T }), l(!0);
|
|
1826
1826
|
}
|
|
1827
1827
|
},
|
|
1828
1828
|
onRecovery: () => {
|
|
@@ -1833,7 +1833,7 @@ const mc = (e) => {
|
|
|
1833
1833
|
a(!1), r();
|
|
1834
1834
|
}
|
|
1835
1835
|
};
|
|
1836
|
-
},
|
|
1836
|
+
}, wc = ({
|
|
1837
1837
|
visible: e,
|
|
1838
1838
|
containerSizeTarget: t,
|
|
1839
1839
|
dialogHeight: r,
|
|
@@ -1841,37 +1841,37 @@ const mc = (e) => {
|
|
|
1841
1841
|
dialogHeaderRef: o,
|
|
1842
1842
|
dialogFooterRef: s
|
|
1843
1843
|
}) => {
|
|
1844
|
-
const { clientHeight: a, scrollHeight: i } = t.current, [l, u] =
|
|
1844
|
+
const { clientHeight: a, scrollHeight: i } = t.current, [l, u] = q(0), [f, g] = q(
|
|
1845
1845
|
"unset"
|
|
1846
1846
|
), d = (b, p) => {
|
|
1847
1847
|
var I, U;
|
|
1848
|
-
const R = (I = o.current) == null ? void 0 : I.offsetHeight,
|
|
1849
|
-
let
|
|
1850
|
-
const
|
|
1851
|
-
return
|
|
1848
|
+
const R = (I = o.current) == null ? void 0 : I.offsetHeight, T = (U = s.current) == null ? void 0 : U.offsetHeight;
|
|
1849
|
+
let F = b - R - T - 0;
|
|
1850
|
+
const O = p - R - T - 0;
|
|
1851
|
+
return F > O && (F = O), F;
|
|
1852
1852
|
};
|
|
1853
|
-
return
|
|
1853
|
+
return X(() => {
|
|
1854
1854
|
var b;
|
|
1855
1855
|
if (l === a) {
|
|
1856
1856
|
console.log("触发了dialogMaxHeight改变");
|
|
1857
1857
|
const p = (b = n.current) == null ? void 0 : b.getBoundingClientRect().height;
|
|
1858
1858
|
g(d(p, a)), u("unset");
|
|
1859
1859
|
}
|
|
1860
|
-
}, [l]),
|
|
1860
|
+
}, [l]), X(() => {
|
|
1861
1861
|
r !== "unset" && r !== 0 && (console.log("触发了重新设置contentMaxHeight", r), g(
|
|
1862
1862
|
d(
|
|
1863
1863
|
r,
|
|
1864
1864
|
r > a ? i : a
|
|
1865
1865
|
)
|
|
1866
1866
|
), u("unset"));
|
|
1867
|
-
}, [r]),
|
|
1867
|
+
}, [r]), X(() => {
|
|
1868
1868
|
e ? u(a) : (u(0), g("unset"));
|
|
1869
1869
|
}, [e]), {
|
|
1870
1870
|
dialogMaxHeight: l,
|
|
1871
1871
|
contentMaxHeight: f
|
|
1872
1872
|
};
|
|
1873
1873
|
}, Cc = () => {
|
|
1874
|
-
const [e, t] =
|
|
1874
|
+
const [e, t] = q(160), [r, n] = q(60), o = j(null);
|
|
1875
1875
|
return {
|
|
1876
1876
|
minimizeTop: r,
|
|
1877
1877
|
minimizeLeft: e,
|
|
@@ -1918,7 +1918,7 @@ const mc = (e) => {
|
|
|
1918
1918
|
d.tagName === "INPUT" && d.focus && d.focus();
|
|
1919
1919
|
}
|
|
1920
1920
|
};
|
|
1921
|
-
return
|
|
1921
|
+
return X(() => {
|
|
1922
1922
|
var i, l;
|
|
1923
1923
|
return (i = t.current) == null || i.addEventListener("mousedown", a, !1), (l = r.current) == null || l.addEventListener(
|
|
1924
1924
|
"mousedown",
|
|
@@ -1936,7 +1936,7 @@ const mc = (e) => {
|
|
|
1936
1936
|
!1
|
|
1937
1937
|
);
|
|
1938
1938
|
};
|
|
1939
|
-
}, []),
|
|
1939
|
+
}, []), X(() => {
|
|
1940
1940
|
if (e)
|
|
1941
1941
|
a();
|
|
1942
1942
|
else {
|
|
@@ -1974,7 +1974,7 @@ const mc = (e) => {
|
|
|
1974
1974
|
curPropsHeight: n,
|
|
1975
1975
|
setParentInitRecord: o
|
|
1976
1976
|
}) => {
|
|
1977
|
-
|
|
1977
|
+
X(() => {
|
|
1978
1978
|
if (r !== e.current) {
|
|
1979
1979
|
console.log("动态设置了宽度"), o((s) => s + 1);
|
|
1980
1980
|
return;
|
|
@@ -1985,7 +1985,7 @@ const mc = (e) => {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
}, [r, n]);
|
|
1987
1987
|
}, Pc = () => {
|
|
1988
|
-
const e =
|
|
1988
|
+
const e = j({
|
|
1989
1989
|
left: 0,
|
|
1990
1990
|
top: 0,
|
|
1991
1991
|
width: 0,
|
|
@@ -2028,85 +2028,86 @@ const mc = (e) => {
|
|
|
2028
2028
|
style: {
|
|
2029
2029
|
position: "absolute",
|
|
2030
2030
|
border: "4px dashed #ccc",
|
|
2031
|
-
display: "none"
|
|
2031
|
+
display: "none",
|
|
2032
|
+
zIndex: 999
|
|
2032
2033
|
}
|
|
2033
2034
|
}
|
|
2034
|
-
), []), i =
|
|
2035
|
+
), []), i = j(null), l = j(), u = j(!1), [f, g] = q(!1), d = j(0), b = j(0), p = (x, M) => {
|
|
2035
2036
|
r.current || s({
|
|
2036
2037
|
width: t.current.offsetWidth,
|
|
2037
2038
|
height: t.current.offsetHeight
|
|
2038
|
-
}), u.current = !0, g(!0), l.current =
|
|
2039
|
-
const { clientX: w, clientY:
|
|
2040
|
-
d.current = w, b.current =
|
|
2041
|
-
const
|
|
2042
|
-
i.current.style.display = "block", i.current.style.left = `${
|
|
2039
|
+
}), u.current = !0, g(!0), l.current = M;
|
|
2040
|
+
const { clientX: w, clientY: C } = x;
|
|
2041
|
+
d.current = w, b.current = C;
|
|
2042
|
+
const S = parseFloat(t.current.style.left), E = parseFloat(t.current.style.top), D = t.current.offsetWidth, A = t.current.offsetHeight;
|
|
2043
|
+
i.current.style.display = "block", i.current.style.left = `${S - 0.5 * D}px`, i.current.style.top = `${E - 0.5 * A}px`, i.current.style.width = `${D}px`, i.current.style.height = `${A}px`;
|
|
2043
2044
|
}, v = (x) => {
|
|
2044
2045
|
if (u.current) {
|
|
2045
|
-
const { clientX:
|
|
2046
|
-
let L =
|
|
2046
|
+
const { clientX: M, clientY: w } = x, C = M - d.current, S = w - b.current, E = parseFloat(i.current.style.left), D = parseFloat(i.current.style.top), A = i.current.offsetWidth, Y = i.current.offsetHeight, ee = r.current.width, se = r.current.height, fe = e.current.scrollWidth, le = e.current.scrollHeight;
|
|
2047
|
+
let L = A, N = Y, B = E, K = D;
|
|
2047
2048
|
switch (l.current) {
|
|
2048
2049
|
case "lt": {
|
|
2049
|
-
L = L -
|
|
2050
|
+
L = L - C, N = N - S, K = K + S, B = B + C, L < ee && (L = A, B = E), N < se && (N = Y, K = D), B < 0 && (B = 0, L = A), K < 0 && (K = 0, N = Y);
|
|
2050
2051
|
break;
|
|
2051
2052
|
}
|
|
2052
2053
|
case "rt": {
|
|
2053
|
-
L = L +
|
|
2054
|
+
L = L + C, N = N - S, K = K + S, B = E, L < ee && (L = A), N < se && (N = Y, K = D), L > fe - B && (L = fe - B), K < 0 && (K = 0, N = Y);
|
|
2054
2055
|
break;
|
|
2055
2056
|
}
|
|
2056
2057
|
case "rb": {
|
|
2057
|
-
L = L +
|
|
2058
|
+
L = L + C, N = N + S, K = D, B = E, L < ee && (L = A), N < se && (N = Y), L > fe - B && (L = fe - B), N > le - K && (N = le - K);
|
|
2058
2059
|
break;
|
|
2059
2060
|
}
|
|
2060
2061
|
case "lb": {
|
|
2061
|
-
L = L -
|
|
2062
|
+
L = L - C, N = N + S, K = D, B = B + C, L < ee && (L = A, B = E), N < se && (N = Y), B < 0 && (B = 0, L = A), N > le - K && (N = le - K);
|
|
2062
2063
|
break;
|
|
2063
2064
|
}
|
|
2064
2065
|
}
|
|
2065
|
-
i.current.style.left = `${B}px`, i.current.style.top = `${
|
|
2066
|
+
i.current.style.left = `${B}px`, i.current.style.top = `${K}px`, i.current.style.width = `${L}px`, i.current.style.height = `${N}px`, d.current = M, b.current = w;
|
|
2066
2067
|
}
|
|
2067
2068
|
}, _ = () => {
|
|
2068
2069
|
if (u.current) {
|
|
2069
2070
|
u.current = !1, g(!1), i.current.style.display = "none";
|
|
2070
|
-
const { left: x, top:
|
|
2071
|
-
o({ left:
|
|
2071
|
+
const { left: x, top: M, width: w, height: C } = i.current.style, S = parseFloat(x) + 0.5 * parseFloat(w), E = parseFloat(M) + 0.5 * parseFloat(C), D = parseFloat(w), A = parseFloat(C);
|
|
2072
|
+
o({ left: S, top: E }), n({ width: D, height: A });
|
|
2072
2073
|
}
|
|
2073
|
-
}, R = (x) => p(x, "lt"),
|
|
2074
|
+
}, R = (x) => p(x, "lt"), T = (x) => p(x, "rt"), F = (x) => p(x, "rb"), O = (x) => p(x, "lb"), I = ve((x) => {
|
|
2074
2075
|
v(x);
|
|
2075
2076
|
}, []), U = ve(() => {
|
|
2076
2077
|
_();
|
|
2077
|
-
}, []),
|
|
2078
|
+
}, []), G = ve(() => {
|
|
2078
2079
|
_();
|
|
2079
2080
|
}, []);
|
|
2080
|
-
return
|
|
2081
|
-
document.body.removeEventListener("mousemove", I), document.body.removeEventListener("mouseup", U), document.body.removeEventListener("mouseleave",
|
|
2081
|
+
return X(() => (document.body.addEventListener("mousemove", I), document.body.addEventListener("mouseup", U), document.body.addEventListener("mouseleave", G), () => {
|
|
2082
|
+
document.body.removeEventListener("mousemove", I), document.body.removeEventListener("mouseup", U), document.body.removeEventListener("mouseleave", G);
|
|
2082
2083
|
}), []), {
|
|
2083
2084
|
resizingState: f,
|
|
2084
2085
|
DashedBox: a,
|
|
2085
2086
|
onMousedownResizeLt: R,
|
|
2086
|
-
onMousedownResizeRt:
|
|
2087
|
-
onMousedownResizeRb:
|
|
2088
|
-
onMousedownResizeLb:
|
|
2087
|
+
onMousedownResizeRt: T,
|
|
2088
|
+
onMousedownResizeRb: F,
|
|
2089
|
+
onMousedownResizeLb: O
|
|
2089
2090
|
};
|
|
2090
2091
|
}, jc = ({
|
|
2091
2092
|
container: e,
|
|
2092
2093
|
dialogProps: t,
|
|
2093
2094
|
baseDialogProps: r
|
|
2094
2095
|
}) => {
|
|
2095
|
-
const [n, o] =
|
|
2096
|
+
const [n, o] = q(0), s = () => {
|
|
2096
2097
|
o((x) => x + 1);
|
|
2097
2098
|
};
|
|
2098
|
-
|
|
2099
|
+
X(() => (window.addEventListener("resize", s), () => {
|
|
2099
2100
|
window.removeEventListener("resize", s);
|
|
2100
2101
|
}), []);
|
|
2101
2102
|
const { containerSizeTarget: a, setContainerSizeTarget: i } = Ec({
|
|
2102
2103
|
container: e
|
|
2103
|
-
}), { width: l, height: u } = r, { width: f, height: g } = t, d = f || l, b = g || u, { clientWidth: p, clientHeight: v } = a.current, _ = d ? d > p ? p : d : 0, R = b ? b > v ? v : b : "unset",
|
|
2104
|
-
|
|
2105
|
-
}, I =
|
|
2104
|
+
}), { width: l, height: u } = r, { width: f, height: g } = t, d = f || l, b = g || u, { clientWidth: p, clientHeight: v } = a.current, _ = d ? d > p ? p : d : 0, R = b ? b > v ? v : b : "unset", T = j(_), F = j(R), O = (x) => {
|
|
2105
|
+
T.current = x.width, F.current = x.height;
|
|
2106
|
+
}, I = j(Math.floor(p / 2)), U = j(Math.floor(v / 2)), G = (x) => {
|
|
2106
2107
|
I.current = x.left, U.current = x.top;
|
|
2107
2108
|
};
|
|
2108
|
-
return
|
|
2109
|
-
i(),
|
|
2109
|
+
return X(() => {
|
|
2110
|
+
i(), O({ width: _, height: R }), G({
|
|
2110
2111
|
left: Math.floor(p / 2),
|
|
2111
2112
|
top: Math.floor(v / 2)
|
|
2112
2113
|
});
|
|
@@ -2115,16 +2116,16 @@ const mc = (e) => {
|
|
|
2115
2116
|
parentInitRecord: n,
|
|
2116
2117
|
initLeft: I,
|
|
2117
2118
|
initTop: U,
|
|
2118
|
-
initWidth:
|
|
2119
|
-
initHeight:
|
|
2119
|
+
initWidth: T,
|
|
2120
|
+
initHeight: F,
|
|
2120
2121
|
curPropsWidth: _,
|
|
2121
2122
|
curPropsHeight: R,
|
|
2122
|
-
setInitPosition:
|
|
2123
|
-
setInitSize:
|
|
2123
|
+
setInitPosition: G,
|
|
2124
|
+
setInitSize: O,
|
|
2124
2125
|
setParentInitRecord: o
|
|
2125
2126
|
};
|
|
2126
2127
|
}, Fc = () => {
|
|
2127
|
-
const e =
|
|
2128
|
+
const e = j(null);
|
|
2128
2129
|
return {
|
|
2129
2130
|
minResizeRecord: e,
|
|
2130
2131
|
setMinResizeRecord: (r) => {
|
|
@@ -2132,7 +2133,7 @@ const mc = (e) => {
|
|
|
2132
2133
|
}
|
|
2133
2134
|
};
|
|
2134
2135
|
}, Ec = ({ container: e }) => {
|
|
2135
|
-
const t = e === document.body, r =
|
|
2136
|
+
const t = e === document.body, r = j({
|
|
2136
2137
|
clientWidth: t ? window.innerWidth : e.clientWidth,
|
|
2137
2138
|
clientHeight: t ? window.innerHeight : e.clientHeight,
|
|
2138
2139
|
scrollWidth: t ? window.innerWidth : e.scrollWidth,
|
|
@@ -2149,14 +2150,14 @@ const mc = (e) => {
|
|
|
2149
2150
|
};
|
|
2150
2151
|
}
|
|
2151
2152
|
};
|
|
2152
|
-
},
|
|
2153
|
+
}, $t = {
|
|
2153
2154
|
"minimize-windows": "_minimize-windows_12u3y_1",
|
|
2154
2155
|
"minimize-windows-title": "_minimize-windows-title_12u3y_43",
|
|
2155
2156
|
"minimize-windows-operate": "_minimize-windows-operate_12u3y_55"
|
|
2156
2157
|
}, Ac = ({
|
|
2157
2158
|
onClick: e
|
|
2158
2159
|
}) => /* @__PURE__ */ h.jsx(
|
|
2159
|
-
|
|
2160
|
+
ae,
|
|
2160
2161
|
{
|
|
2161
2162
|
type: "link",
|
|
2162
2163
|
onClick: e,
|
|
@@ -2173,7 +2174,7 @@ const mc = (e) => {
|
|
|
2173
2174
|
), Pn = ({
|
|
2174
2175
|
onClick: e
|
|
2175
2176
|
}) => /* @__PURE__ */ h.jsx(
|
|
2176
|
-
|
|
2177
|
+
ae,
|
|
2177
2178
|
{
|
|
2178
2179
|
type: "link",
|
|
2179
2180
|
onClick: e,
|
|
@@ -2190,7 +2191,7 @@ const mc = (e) => {
|
|
|
2190
2191
|
), Dc = ({
|
|
2191
2192
|
onClick: e
|
|
2192
2193
|
}) => /* @__PURE__ */ h.jsx(
|
|
2193
|
-
|
|
2194
|
+
ae,
|
|
2194
2195
|
{
|
|
2195
2196
|
type: "link",
|
|
2196
2197
|
onClick: e,
|
|
@@ -2208,7 +2209,7 @@ const mc = (e) => {
|
|
|
2208
2209
|
onClick: e,
|
|
2209
2210
|
disabled: t
|
|
2210
2211
|
}) => /* @__PURE__ */ h.jsx(
|
|
2211
|
-
|
|
2212
|
+
ae,
|
|
2212
2213
|
{
|
|
2213
2214
|
type: "link",
|
|
2214
2215
|
onClick: e,
|
|
@@ -2223,7 +2224,7 @@ const mc = (e) => {
|
|
|
2223
2224
|
}
|
|
2224
2225
|
)
|
|
2225
2226
|
}
|
|
2226
|
-
), { useToken: Oc } =
|
|
2227
|
+
), { useToken: Oc } = Le, $c = pe(
|
|
2227
2228
|
({
|
|
2228
2229
|
title: e,
|
|
2229
2230
|
left: t,
|
|
@@ -2246,11 +2247,11 @@ const mc = (e) => {
|
|
|
2246
2247
|
top: r,
|
|
2247
2248
|
...f
|
|
2248
2249
|
},
|
|
2249
|
-
className: `${
|
|
2250
|
+
className: `${$t["minimize-windows"]} ${i}`,
|
|
2250
2251
|
ref: l,
|
|
2251
2252
|
children: [
|
|
2252
|
-
/* @__PURE__ */ h.jsx("div", { className:
|
|
2253
|
-
/* @__PURE__ */ h.jsxs("div", { className:
|
|
2253
|
+
/* @__PURE__ */ h.jsx("div", { className: $t["minimize-windows-title"], title: e, children: e }),
|
|
2254
|
+
/* @__PURE__ */ h.jsxs("div", { className: $t["minimize-windows-operate"], children: [
|
|
2254
2255
|
/* @__PURE__ */ h.jsx(Pn, { onClick: s }),
|
|
2255
2256
|
/* @__PURE__ */ h.jsx(Rn, { onClick: a, disabled: o })
|
|
2256
2257
|
] })
|
|
@@ -2270,7 +2271,7 @@ const mc = (e) => {
|
|
|
2270
2271
|
"dialog__resize-rt": "_dialog__resize-rt_o2yvb_125",
|
|
2271
2272
|
"dialog__resize-rb": "_dialog__resize-rb_o2yvb_137",
|
|
2272
2273
|
"dialog__resize-lb": "_dialog__resize-lb_o2yvb_149"
|
|
2273
|
-
}, { useToken: Lc } =
|
|
2274
|
+
}, { useToken: Lc } = Le, Nc = pe((e, t) => {
|
|
2274
2275
|
console.log("render Dialog==============================================");
|
|
2275
2276
|
const { token: r } = Lc(), n = {
|
|
2276
2277
|
borderRadius: r.borderRadiusLG
|
|
@@ -2282,93 +2283,93 @@ const mc = (e) => {
|
|
|
2282
2283
|
renderFooter: l,
|
|
2283
2284
|
renderTitle: u,
|
|
2284
2285
|
getPopperContainer: f
|
|
2285
|
-
} = e, g = f(), [d, b] = fc(!1), [p, v] =
|
|
2286
|
+
} = e, g = f(), [d, b] = fc(!1), [p, v] = q(!1), { open: _, close: R } = vc(
|
|
2286
2287
|
d,
|
|
2287
2288
|
e,
|
|
2288
2289
|
b,
|
|
2289
2290
|
v
|
|
2290
|
-
), { footerActions:
|
|
2291
|
-
containerSizeTarget:
|
|
2291
|
+
), { footerActions: T } = hc(e, p), F = j(null), O = j(null), I = j(null), U = j(null), {
|
|
2292
|
+
containerSizeTarget: G,
|
|
2292
2293
|
parentInitRecord: x,
|
|
2293
|
-
initLeft:
|
|
2294
|
+
initLeft: M,
|
|
2294
2295
|
initTop: w,
|
|
2295
|
-
initWidth:
|
|
2296
|
-
initHeight:
|
|
2296
|
+
initWidth: C,
|
|
2297
|
+
initHeight: S,
|
|
2297
2298
|
curPropsWidth: E,
|
|
2298
2299
|
curPropsHeight: D,
|
|
2299
|
-
setParentInitRecord:
|
|
2300
|
+
setParentInitRecord: A
|
|
2300
2301
|
} = jc({
|
|
2301
2302
|
container: g,
|
|
2302
2303
|
dialogProps: e,
|
|
2303
2304
|
baseDialogProps: s
|
|
2304
|
-
}), { dialogChangeRecord:
|
|
2305
|
-
initWidth:
|
|
2306
|
-
initHeight:
|
|
2307
|
-
setDialogChangeRecord:
|
|
2305
|
+
}), { dialogChangeRecord: Y, setDialogChangeRecord: ee } = Pc(), { dialogWidth: se, dialogHeight: fe, setDialogSize: le } = yc({
|
|
2306
|
+
initWidth: C,
|
|
2307
|
+
initHeight: S,
|
|
2308
|
+
setDialogChangeRecord: ee
|
|
2308
2309
|
}), { dialogLeft: L, dialogTop: N, setDialogPosition: B } = _c({
|
|
2309
2310
|
initTop: w,
|
|
2310
|
-
initLeft:
|
|
2311
|
-
setDialogChangeRecord:
|
|
2312
|
-
}), { dialogMaxHeight:
|
|
2311
|
+
initLeft: M,
|
|
2312
|
+
setDialogChangeRecord: ee
|
|
2313
|
+
}), { dialogMaxHeight: K, contentMaxHeight: xt } = wc({
|
|
2313
2314
|
visible: d,
|
|
2314
|
-
containerSizeTarget:
|
|
2315
|
-
dialogHeight:
|
|
2316
|
-
dialogRef:
|
|
2317
|
-
dialogHeaderRef:
|
|
2315
|
+
containerSizeTarget: G,
|
|
2316
|
+
dialogHeight: fe,
|
|
2317
|
+
dialogRef: F,
|
|
2318
|
+
dialogHeaderRef: O,
|
|
2318
2319
|
dialogFooterRef: U
|
|
2319
|
-
}), { minResizeRecord:
|
|
2320
|
-
minimizeVisible:
|
|
2321
|
-
maximizeVisible:
|
|
2322
|
-
setMaximizeVisible:
|
|
2320
|
+
}), { minResizeRecord: Ne, setMinResizeRecord: Oe } = Fc(), { minimizeLeft: $e, minimizeTop: We, minimizeRef: me, setMinimizePosition: Qe } = Cc(), {
|
|
2321
|
+
minimizeVisible: He,
|
|
2322
|
+
maximizeVisible: wt,
|
|
2323
|
+
setMaximizeVisible: Ct,
|
|
2323
2324
|
onMaximize: Pe,
|
|
2324
2325
|
onMinimize: Re,
|
|
2325
2326
|
onRecovery: et,
|
|
2326
2327
|
onClose: Me
|
|
2327
|
-
} =
|
|
2328
|
-
containerSizeTarget:
|
|
2329
|
-
dialogChangeRecord:
|
|
2328
|
+
} = xc({
|
|
2329
|
+
containerSizeTarget: G,
|
|
2330
|
+
dialogChangeRecord: Y,
|
|
2330
2331
|
close: R,
|
|
2331
|
-
setDialogSize:
|
|
2332
|
+
setDialogSize: le,
|
|
2332
2333
|
setDialogPosition: B
|
|
2333
2334
|
}), ke = () => {
|
|
2334
|
-
console.log("触发了initDialog"),
|
|
2335
|
+
console.log("触发了initDialog"), le({ width: C.current, height: S.current }), B({ left: M.current, top: w.current }), Qe({ left: 160, top: 60 }), Ct(!1), Oe(null);
|
|
2335
2336
|
};
|
|
2336
|
-
|
|
2337
|
+
X(() => {
|
|
2337
2338
|
ke();
|
|
2338
2339
|
}, [x]), Sc({
|
|
2339
|
-
initWidth:
|
|
2340
|
-
initHeight:
|
|
2340
|
+
initWidth: C,
|
|
2341
|
+
initHeight: S,
|
|
2341
2342
|
curPropsWidth: E,
|
|
2342
2343
|
curPropsHeight: D,
|
|
2343
|
-
setParentInitRecord:
|
|
2344
|
-
}),
|
|
2345
|
-
containerSizeTarget:
|
|
2346
|
-
dialogHeaderRef:
|
|
2347
|
-
dialogRef:
|
|
2344
|
+
setParentInitRecord: A
|
|
2345
|
+
}), Wr({
|
|
2346
|
+
containerSizeTarget: G,
|
|
2347
|
+
dialogHeaderRef: O,
|
|
2348
|
+
dialogRef: F,
|
|
2348
2349
|
setDialogPosition: B
|
|
2349
|
-
}),
|
|
2350
|
-
containerSizeTarget:
|
|
2350
|
+
}), Wr({
|
|
2351
|
+
containerSizeTarget: G,
|
|
2351
2352
|
dialogHeaderRef: me,
|
|
2352
2353
|
dialogRef: me,
|
|
2353
2354
|
setDialogPosition: Qe
|
|
2354
2355
|
});
|
|
2355
|
-
const { dialogTopShowClassConfig:
|
|
2356
|
+
const { dialogTopShowClassConfig: Be } = Tc({
|
|
2356
2357
|
visible: d,
|
|
2357
2358
|
container: g,
|
|
2358
|
-
dialogRef:
|
|
2359
|
+
dialogRef: F,
|
|
2359
2360
|
minimizeRef: me
|
|
2360
2361
|
}), {
|
|
2361
|
-
resizingState:
|
|
2362
|
-
DashedBox:
|
|
2363
|
-
onMousedownResizeLt:
|
|
2362
|
+
resizingState: Ve,
|
|
2363
|
+
DashedBox: Tt,
|
|
2364
|
+
onMousedownResizeLt: St,
|
|
2364
2365
|
onMousedownResizeRt: tt,
|
|
2365
2366
|
onMousedownResizeRb: rt,
|
|
2366
2367
|
onMousedownResizeLb: je
|
|
2367
2368
|
} = Rc({
|
|
2368
|
-
containerSizeTarget:
|
|
2369
|
-
dialogRef:
|
|
2370
|
-
minResizeRecord:
|
|
2371
|
-
setDialogSize:
|
|
2369
|
+
containerSizeTarget: G,
|
|
2370
|
+
dialogRef: F,
|
|
2371
|
+
minResizeRecord: Ne,
|
|
2372
|
+
setDialogSize: le,
|
|
2372
2373
|
setDialogPosition: B,
|
|
2373
2374
|
setMinResizeRecord: Oe
|
|
2374
2375
|
});
|
|
@@ -2377,17 +2378,17 @@ const mc = (e) => {
|
|
|
2377
2378
|
close: Me,
|
|
2378
2379
|
setLoading: v,
|
|
2379
2380
|
getVisible: () => d
|
|
2380
|
-
})), /* @__PURE__ */ h.jsxs("div", { className:
|
|
2381
|
+
})), /* @__PURE__ */ h.jsxs("div", { className: Be.xphDialog, children: [
|
|
2381
2382
|
a && d ? /* @__PURE__ */ h.jsx("div", { className: ne["xph-dialog-mask"] }) : null,
|
|
2382
2383
|
/* @__PURE__ */ h.jsx(
|
|
2383
2384
|
$c,
|
|
2384
2385
|
{
|
|
2385
|
-
visible:
|
|
2386
|
-
className: `${
|
|
2386
|
+
visible: He,
|
|
2387
|
+
className: `${Be.xphMinimizeDialog}`,
|
|
2387
2388
|
loading: p,
|
|
2388
2389
|
ref: me,
|
|
2389
2390
|
left: $e,
|
|
2390
|
-
top:
|
|
2391
|
+
top: We,
|
|
2391
2392
|
title: i,
|
|
2392
2393
|
onMaximize: () => Pe("minimize"),
|
|
2393
2394
|
onClosesquare: Me
|
|
@@ -2396,25 +2397,25 @@ const mc = (e) => {
|
|
|
2396
2397
|
/* @__PURE__ */ h.jsxs(
|
|
2397
2398
|
"div",
|
|
2398
2399
|
{
|
|
2399
|
-
ref:
|
|
2400
|
-
className: `${ne["xph-dialog-wrapper"]} ${
|
|
2400
|
+
ref: F,
|
|
2401
|
+
className: `${ne["xph-dialog-wrapper"]} ${Be.xphDialogWrapper}`,
|
|
2401
2402
|
style: {
|
|
2402
|
-
display: d && !
|
|
2403
|
+
display: d && !He ? "flex" : "none",
|
|
2403
2404
|
left: L,
|
|
2404
2405
|
top: N,
|
|
2405
|
-
width:
|
|
2406
|
-
height:
|
|
2407
|
-
maxHeight:
|
|
2408
|
-
opacity:
|
|
2406
|
+
width: se,
|
|
2407
|
+
height: fe,
|
|
2408
|
+
maxHeight: K,
|
|
2409
|
+
opacity: Ve ? 0.2 : "unset",
|
|
2409
2410
|
// 拉伸时候透明度为0.2
|
|
2410
2411
|
...n
|
|
2411
2412
|
},
|
|
2412
2413
|
children: [
|
|
2413
|
-
/* @__PURE__ */ h.jsxs("div", { ref:
|
|
2414
|
+
/* @__PURE__ */ h.jsxs("div", { ref: O, className: ne.dialog__header, children: [
|
|
2414
2415
|
/* @__PURE__ */ h.jsx("div", { children: u ? u() : i }),
|
|
2415
2416
|
/* @__PURE__ */ h.jsxs("div", { className: ne["dialog__header-btns"], children: [
|
|
2416
2417
|
/* @__PURE__ */ h.jsx(Ac, { onClick: Re }),
|
|
2417
|
-
|
|
2418
|
+
wt ? /* @__PURE__ */ h.jsx(Dc, { onClick: et }) : /* @__PURE__ */ h.jsx(Pn, { onClick: () => Pe("maximize") }),
|
|
2418
2419
|
/* @__PURE__ */ h.jsx(Rn, { onClick: Me, disabled: p })
|
|
2419
2420
|
] })
|
|
2420
2421
|
] }),
|
|
@@ -2424,17 +2425,17 @@ const mc = (e) => {
|
|
|
2424
2425
|
ref: I,
|
|
2425
2426
|
className: ne.dialog__main,
|
|
2426
2427
|
style: {
|
|
2427
|
-
maxHeight:
|
|
2428
|
+
maxHeight: xt
|
|
2428
2429
|
},
|
|
2429
|
-
children: /* @__PURE__ */ h.jsx(
|
|
2430
|
+
children: /* @__PURE__ */ h.jsx(Xr, { spinning: p, children: d ? o : null })
|
|
2430
2431
|
}
|
|
2431
2432
|
),
|
|
2432
|
-
l ? /* @__PURE__ */ h.jsx("div", { ref: U, children: l({ loading: p }) }) : /* @__PURE__ */ h.jsx("div", { ref: U, className: ne.dialog__footer, children: /* @__PURE__ */ h.jsx(
|
|
2433
|
+
l ? /* @__PURE__ */ h.jsx("div", { ref: U, children: l({ loading: p }) }) : /* @__PURE__ */ h.jsx("div", { ref: U, className: ne.dialog__footer, children: /* @__PURE__ */ h.jsx(Qt, { ...T }) }),
|
|
2433
2434
|
/* @__PURE__ */ h.jsx(
|
|
2434
2435
|
"div",
|
|
2435
2436
|
{
|
|
2436
2437
|
className: `${ne.dialog__resize} ${ne["dialog__resize-lt"]}`,
|
|
2437
|
-
onMouseDown:
|
|
2438
|
+
onMouseDown: St
|
|
2438
2439
|
}
|
|
2439
2440
|
),
|
|
2440
2441
|
/* @__PURE__ */ h.jsx(
|
|
@@ -2461,17 +2462,17 @@ const mc = (e) => {
|
|
|
2461
2462
|
]
|
|
2462
2463
|
}
|
|
2463
2464
|
),
|
|
2464
|
-
/* @__PURE__ */ h.jsx(
|
|
2465
|
+
/* @__PURE__ */ h.jsx(Tt, {})
|
|
2465
2466
|
] });
|
|
2466
2467
|
}), Wc = (e, t) => {
|
|
2467
2468
|
const { children: r, ...n } = e, { baseDialogProps: o, dialogProps: s } = mc(n), { getPopperContainer: a } = s;
|
|
2468
2469
|
return console.log("render XphDialog=============================================="), /* @__PURE__ */ h.jsx(Bc, { getPopperContainer: a, children: /* @__PURE__ */ h.jsx(Nc, { ...s, baseDialogProps: o, ref: t, children: r }) });
|
|
2469
|
-
}, Hc =
|
|
2470
|
+
}, Hc = pe(Wc), Bc = ({
|
|
2470
2471
|
children: e,
|
|
2471
2472
|
getPopperContainer: t
|
|
2472
2473
|
}) => {
|
|
2473
2474
|
const [r, n] = Te.useState(null);
|
|
2474
|
-
return
|
|
2475
|
+
return X(() => {
|
|
2475
2476
|
const o = t();
|
|
2476
2477
|
n(o);
|
|
2477
2478
|
}, []), r ? bo.createPortal(e, r) : null;
|
|
@@ -2480,7 +2481,7 @@ function Vc(e) {
|
|
|
2480
2481
|
const { extendAuthProps: t } = Uc();
|
|
2481
2482
|
return {
|
|
2482
2483
|
authProps: {
|
|
2483
|
-
...
|
|
2484
|
+
...ue(ue({
|
|
2484
2485
|
auth: (o) => !1
|
|
2485
2486
|
}, t), e)
|
|
2486
2487
|
}
|
|
@@ -2491,17 +2492,17 @@ const Uc = () => {
|
|
|
2491
2492
|
return {
|
|
2492
2493
|
extendAuthProps: e == null ? void 0 : e.auth
|
|
2493
2494
|
};
|
|
2494
|
-
},
|
|
2495
|
+
}, du = (e) => {
|
|
2495
2496
|
const { children: t, ...r } = e, { authProps: n } = Vc(r), { auth: o, authCode: s } = n;
|
|
2496
2497
|
return (() => {
|
|
2497
2498
|
let i = !1;
|
|
2498
2499
|
return s && o && (oe(s) ? i = s.every((l) => o(l)) : i = o(s)), i;
|
|
2499
2500
|
})() ? t : null;
|
|
2500
2501
|
};
|
|
2501
|
-
function
|
|
2502
|
+
function er(e) {
|
|
2502
2503
|
return "component" in e;
|
|
2503
2504
|
}
|
|
2504
|
-
function
|
|
2505
|
+
function tr(e) {
|
|
2505
2506
|
return "render" in e;
|
|
2506
2507
|
}
|
|
2507
2508
|
function Yc(e) {
|
|
@@ -2520,7 +2521,7 @@ const Xc = [
|
|
|
2520
2521
|
"TimePicker"
|
|
2521
2522
|
], qc = (e) => {
|
|
2522
2523
|
const { show: t, ifShow: r, required: n, disabled: o, componentProps: s } = e;
|
|
2523
|
-
return !!(
|
|
2524
|
+
return !!(Q(t) || Q(r) || Q(n) || Q(o) || Q(s) || tr(e));
|
|
2524
2525
|
}, Kc = (e) => [
|
|
2525
2526
|
"application/json",
|
|
2526
2527
|
"application/javascript",
|
|
@@ -2528,25 +2529,25 @@ const Xc = [
|
|
|
2528
2529
|
"text/html",
|
|
2529
2530
|
"text/css"
|
|
2530
2531
|
].includes(e) ? `${e}; charset=utf-8` : e, Jc = (e, t, r) => {
|
|
2531
|
-
const n =
|
|
2532
|
+
const n = j(null), o = j(null), { handleCollapseChangeFalse: s } = r.current || {}, { show: a, ifShow: i } = e;
|
|
2532
2533
|
let l = !0, u = !0;
|
|
2533
|
-
if (
|
|
2534
|
+
if (ft(a) && (l = a), ft(i) && (u = i), Q(a)) {
|
|
2534
2535
|
l = a({ model: t });
|
|
2535
|
-
const f =
|
|
2536
|
-
|
|
2537
|
-
|
|
2536
|
+
const f = Nr(n.current) ? l : n.current;
|
|
2537
|
+
X(() => {
|
|
2538
|
+
pt(l, f) || s && s();
|
|
2538
2539
|
}, [t]);
|
|
2539
2540
|
}
|
|
2540
|
-
if (
|
|
2541
|
+
if (Q(i)) {
|
|
2541
2542
|
u = i({ model: t });
|
|
2542
|
-
const f =
|
|
2543
|
-
|
|
2544
|
-
|
|
2543
|
+
const f = Nr(o.current) ? u : o.current;
|
|
2544
|
+
X(() => {
|
|
2545
|
+
pt(u, f) || s && s();
|
|
2545
2546
|
}, [t]);
|
|
2546
2547
|
}
|
|
2547
2548
|
return n.current = l, o.current = u, { isShow: l, isIfShow: u };
|
|
2548
2549
|
}, Zc = (e, t) => {
|
|
2549
|
-
const { collapsible: r, collapseNum: n } = e, [o, s] =
|
|
2550
|
+
const { collapsible: r, collapseNum: n } = e, [o, s] = q(
|
|
2550
2551
|
!!(r && t >= n)
|
|
2551
2552
|
);
|
|
2552
2553
|
return {
|
|
@@ -2561,12 +2562,12 @@ const Xc = [
|
|
|
2561
2562
|
}) => {
|
|
2562
2563
|
const { rules: o = [], label: s, required: a } = e;
|
|
2563
2564
|
let i = o;
|
|
2564
|
-
const l =
|
|
2565
|
+
const l = er(e), u = l ? Yc(e.component) + s : "";
|
|
2565
2566
|
function f(p, v) {
|
|
2566
2567
|
const _ = p.message || u;
|
|
2567
2568
|
return v === void 0 || sc(v) || Array.isArray(v) && v.length === 0 || typeof v == "string" && v.trim() === "" || typeof v == "object" && Reflect.has(v, "checked") && Reflect.has(v, "halfChecked") && Array.isArray(v.checked) && Array.isArray(v.halfChecked) && v.checked.length === 0 && v.halfChecked.length === 0 ? Promise.reject(_) : Promise.resolve();
|
|
2568
2569
|
}
|
|
2569
|
-
const g =
|
|
2570
|
+
const g = Q(a) ? a({ model: t }) : a;
|
|
2570
2571
|
g && (!i || i.length === 0 ? i = [{ required: g, validator: f }] : i.findIndex(
|
|
2571
2572
|
(v) => Reflect.has(v, "required")
|
|
2572
2573
|
) === -1 && i.push({ required: g, validator: f }));
|
|
@@ -2590,12 +2591,12 @@ const Xc = [
|
|
|
2590
2591
|
const { disabled: n } = e;
|
|
2591
2592
|
let o = !1;
|
|
2592
2593
|
const { disabled: s } = t;
|
|
2593
|
-
return
|
|
2594
|
+
return Q(s) && (o = s({ model: r })), ft(s) && (o = s), {
|
|
2594
2595
|
disabled: Reflect.has(t, "disabled") ? o : n
|
|
2595
2596
|
};
|
|
2596
2597
|
}, tl = (e, t) => {
|
|
2597
2598
|
const r = {}, { componentProps: n = {} } = e;
|
|
2598
|
-
return
|
|
2599
|
+
return Q(n) && Object.assign(r, n({ model: t })), Object.assign(r, n), {
|
|
2599
2600
|
componentProps: r
|
|
2600
2601
|
};
|
|
2601
2602
|
}, rl = (e, t) => {
|
|
@@ -2620,13 +2621,13 @@ const Xc = [
|
|
|
2620
2621
|
e.items.forEach((i) => {
|
|
2621
2622
|
n[i.name] = i.initialValue;
|
|
2622
2623
|
});
|
|
2623
|
-
const o = qc(t), s = o ?
|
|
2624
|
+
const o = qc(t), s = o ? it.useWatch((i) => r(i)) : null;
|
|
2624
2625
|
return {
|
|
2625
|
-
rewritingModel:
|
|
2626
|
+
rewritingModel: ht(() => s || r(n), [s]),
|
|
2626
2627
|
isusewatch: o
|
|
2627
2628
|
};
|
|
2628
|
-
},
|
|
2629
|
-
const e =
|
|
2629
|
+
}, fu = () => {
|
|
2630
|
+
const e = j(null);
|
|
2630
2631
|
function t(n) {
|
|
2631
2632
|
e.current = n;
|
|
2632
2633
|
}
|
|
@@ -2657,7 +2658,7 @@ const Xc = [
|
|
|
2657
2658
|
return e.current.scrollToField(...n);
|
|
2658
2659
|
}
|
|
2659
2660
|
};
|
|
2660
|
-
return
|
|
2661
|
+
return X(() => (console.log(
|
|
2661
2662
|
"ParentComponent is mounted====================================="
|
|
2662
2663
|
), () => {
|
|
2663
2664
|
console.log(
|
|
@@ -2675,7 +2676,7 @@ function sl(e, t = {}) {
|
|
|
2675
2676
|
return;
|
|
2676
2677
|
const s = [];
|
|
2677
2678
|
return o.forEach((a, i) => {
|
|
2678
|
-
|
|
2679
|
+
xn(s, i, t[a.trim()]);
|
|
2679
2680
|
}), s.filter(Boolean).length ? s : void 0;
|
|
2680
2681
|
}
|
|
2681
2682
|
}
|
|
@@ -2690,7 +2691,7 @@ function il(e, t = {}) {
|
|
|
2690
2691
|
return;
|
|
2691
2692
|
const s = {};
|
|
2692
2693
|
return o.forEach((a) => {
|
|
2693
|
-
|
|
2694
|
+
xn(s, a.trim(), t[a.trim()]);
|
|
2694
2695
|
}), Object.values(s).filter(Boolean).length ? s : void 0;
|
|
2695
2696
|
}
|
|
2696
2697
|
}
|
|
@@ -2711,7 +2712,7 @@ function al(e, t) {
|
|
|
2711
2712
|
continue;
|
|
2712
2713
|
}
|
|
2713
2714
|
const [i, l] = e[n], [u, f] = Array.isArray(a) ? a : [a, a];
|
|
2714
|
-
e[o] =
|
|
2715
|
+
e[o] = at(i).format(u), e[s] = at(l).format(f), Reflect.deleteProperty(e, n);
|
|
2715
2716
|
}
|
|
2716
2717
|
return e;
|
|
2717
2718
|
}
|
|
@@ -2724,19 +2725,19 @@ const cl = (e, t, r) => {
|
|
|
2724
2725
|
const f = Reflect.has(a, u.name), g = sl(u.name, a) || il(u.name, a);
|
|
2725
2726
|
if (f || g) {
|
|
2726
2727
|
const d = g || a[u.name];
|
|
2727
|
-
if (
|
|
2728
|
+
if (er(u))
|
|
2728
2729
|
if (Xc.includes(u.component)) {
|
|
2729
2730
|
if (oe(d)) {
|
|
2730
2731
|
const b = [];
|
|
2731
2732
|
for (const p of d)
|
|
2732
|
-
b.push(p ?
|
|
2733
|
+
b.push(p ? at(p) : null);
|
|
2733
2734
|
i[u.name] = b;
|
|
2734
2735
|
} else
|
|
2735
|
-
i[u.name] = d ?
|
|
2736
|
+
i[u.name] = d ? at(d) : null;
|
|
2736
2737
|
l.push(u.name);
|
|
2737
2738
|
} else
|
|
2738
2739
|
i[u.name] = d, l.push(u.name);
|
|
2739
|
-
|
|
2740
|
+
tr(u) && (i[u.name] = d, l.push(u.name));
|
|
2740
2741
|
}
|
|
2741
2742
|
}), {
|
|
2742
2743
|
renderValues: i,
|
|
@@ -2745,22 +2746,22 @@ const cl = (e, t, r) => {
|
|
|
2745
2746
|
},
|
|
2746
2747
|
handleFormatReturnValues: (a) => {
|
|
2747
2748
|
var l, u, f, g, d;
|
|
2748
|
-
if (!
|
|
2749
|
+
if (!ce(a))
|
|
2749
2750
|
return {};
|
|
2750
2751
|
const i = {};
|
|
2751
2752
|
for (const b of Object.entries(a)) {
|
|
2752
2753
|
let [, p] = b;
|
|
2753
2754
|
const [v] = b;
|
|
2754
|
-
if (!v ||
|
|
2755
|
+
if (!v || Q(p))
|
|
2755
2756
|
continue;
|
|
2756
|
-
const { transformDateFunc: _ } = t, R = (f = (u = (l = r.current) == null ? void 0 : l.get(v)) == null ? void 0 : u.current) == null ? void 0 : f.componentProps,
|
|
2757
|
-
if (
|
|
2758
|
-
const
|
|
2759
|
-
|
|
2757
|
+
const { transformDateFunc: _ } = t, R = (f = (u = (l = r.current) == null ? void 0 : l.get(v)) == null ? void 0 : u.current) == null ? void 0 : f.componentProps, T = R == null ? void 0 : R.valueFormat;
|
|
2758
|
+
if (ce(p)) {
|
|
2759
|
+
const F = p;
|
|
2760
|
+
F.format && (p = _ == null ? void 0 : _(F, T));
|
|
2760
2761
|
}
|
|
2761
2762
|
oe(p) && ((g = p[0]) != null && g.format) && ((d = p[1]) != null && d.format) && (p = p.map(
|
|
2762
|
-
(
|
|
2763
|
-
)),
|
|
2763
|
+
(F) => _ == null ? void 0 : _(F, T)
|
|
2764
|
+
)), Zt(p) && (p === "" ? p = void 0 : p = p.trim()), i[v] = p;
|
|
2764
2765
|
}
|
|
2765
2766
|
return al(i, t);
|
|
2766
2767
|
}
|
|
@@ -2780,7 +2781,7 @@ const cl = (e, t, r) => {
|
|
|
2780
2781
|
const { extendFormProps: t } = jn();
|
|
2781
2782
|
return {
|
|
2782
2783
|
formProps: {
|
|
2783
|
-
...
|
|
2784
|
+
...ue(ue({
|
|
2784
2785
|
collapseNum: 5,
|
|
2785
2786
|
colon: !1,
|
|
2786
2787
|
items: [],
|
|
@@ -2793,17 +2794,17 @@ const cl = (e, t, r) => {
|
|
|
2793
2794
|
}, t), e)
|
|
2794
2795
|
}
|
|
2795
2796
|
};
|
|
2796
|
-
},
|
|
2797
|
-
const { immediate: t = !0, params: r, api: n, apiCallback: o, isUseWatch: s } = e, a =
|
|
2798
|
-
n &&
|
|
2797
|
+
}, _t = (e) => {
|
|
2798
|
+
const { immediate: t = !0, params: r, api: n, apiCallback: o, isUseWatch: s } = e, a = j(!0), i = j(r), l = () => {
|
|
2799
|
+
n && Q(n) && (r ? n(r).then(o) : n().then(o), i.current = r);
|
|
2799
2800
|
};
|
|
2800
|
-
return
|
|
2801
|
-
a.current && (t && l(), a.current = !1), !a.current && s && (
|
|
2801
|
+
return X(() => {
|
|
2802
|
+
a.current && (t && l(), a.current = !1), !a.current && s && (pt(r, i.current) || t && l());
|
|
2802
2803
|
}, [r]), {
|
|
2803
2804
|
getApiData: l
|
|
2804
2805
|
};
|
|
2805
2806
|
}, dl = (e, t) => {
|
|
2806
|
-
const { collapsible: r, collapseNum: n } = e, o =
|
|
2807
|
+
const { collapsible: r, collapseNum: n } = e, o = j();
|
|
2807
2808
|
return {
|
|
2808
2809
|
collapsible: r,
|
|
2809
2810
|
collapseNum: n,
|
|
@@ -2846,7 +2847,7 @@ const cl = (e, t, r) => {
|
|
|
2846
2847
|
immediate: n = !0,
|
|
2847
2848
|
isusewatch: o,
|
|
2848
2849
|
onDropdownVisibleChange: s
|
|
2849
|
-
} = e, a = o === "true", [i, l] = Te.useState([]), { getApiData: u } =
|
|
2850
|
+
} = e, a = o === "true", [i, l] = Te.useState([]), { getApiData: u } = _t({
|
|
2850
2851
|
api: t,
|
|
2851
2852
|
immediate: n,
|
|
2852
2853
|
params: r,
|
|
@@ -2859,7 +2860,7 @@ const cl = (e, t, r) => {
|
|
|
2859
2860
|
return _;
|
|
2860
2861
|
};
|
|
2861
2862
|
return /* @__PURE__ */ h.jsx(
|
|
2862
|
-
|
|
2863
|
+
qr,
|
|
2863
2864
|
{
|
|
2864
2865
|
...g(),
|
|
2865
2866
|
options: i,
|
|
@@ -2874,7 +2875,7 @@ const cl = (e, t, r) => {
|
|
|
2874
2875
|
immediate: n = !0,
|
|
2875
2876
|
isusewatch: o,
|
|
2876
2877
|
onDropdownVisibleChange: s
|
|
2877
|
-
} = e, a = o === "true", [i, l] = Te.useState([]), { getApiData: u } =
|
|
2878
|
+
} = e, a = o === "true", [i, l] = Te.useState([]), { getApiData: u } = _t({
|
|
2878
2879
|
api: t,
|
|
2879
2880
|
immediate: n,
|
|
2880
2881
|
params: r,
|
|
@@ -2887,7 +2888,7 @@ const cl = (e, t, r) => {
|
|
|
2887
2888
|
return _;
|
|
2888
2889
|
};
|
|
2889
2890
|
return /* @__PURE__ */ h.jsx(
|
|
2890
|
-
|
|
2891
|
+
Kr,
|
|
2891
2892
|
{
|
|
2892
2893
|
...g(),
|
|
2893
2894
|
treeData: i,
|
|
@@ -2897,7 +2898,7 @@ const cl = (e, t, r) => {
|
|
|
2897
2898
|
}, gl = (e) => {
|
|
2898
2899
|
console.log("render ApiTransfer");
|
|
2899
2900
|
const { api: t, params: r, isusewatch: n } = e, o = n === "true", [s, a] = Te.useState([]);
|
|
2900
|
-
|
|
2901
|
+
_t({
|
|
2901
2902
|
api: t,
|
|
2902
2903
|
params: r,
|
|
2903
2904
|
apiCallback: a,
|
|
@@ -2907,7 +2908,7 @@ const cl = (e, t, r) => {
|
|
|
2907
2908
|
const { api: l, params: u, isusewatch: f, ...g } = e;
|
|
2908
2909
|
return g;
|
|
2909
2910
|
};
|
|
2910
|
-
return /* @__PURE__ */ h.jsx(
|
|
2911
|
+
return /* @__PURE__ */ h.jsx(Jr, { ...i(), dataSource: s });
|
|
2911
2912
|
}, hl = (e) => {
|
|
2912
2913
|
console.log("render ApiAutoComplete");
|
|
2913
2914
|
const {
|
|
@@ -2916,7 +2917,7 @@ const cl = (e, t, r) => {
|
|
|
2916
2917
|
immediate: n = !0,
|
|
2917
2918
|
isusewatch: o,
|
|
2918
2919
|
onDropdownVisibleChange: s
|
|
2919
|
-
} = e, a = o === "true", [i, l] = Te.useState([]), { getApiData: u } =
|
|
2920
|
+
} = e, a = o === "true", [i, l] = Te.useState([]), { getApiData: u } = _t({
|
|
2920
2921
|
api: t,
|
|
2921
2922
|
immediate: n,
|
|
2922
2923
|
params: r,
|
|
@@ -2929,7 +2930,7 @@ const cl = (e, t, r) => {
|
|
|
2929
2930
|
return _;
|
|
2930
2931
|
};
|
|
2931
2932
|
return /* @__PURE__ */ h.jsx(
|
|
2932
|
-
|
|
2933
|
+
Zr,
|
|
2933
2934
|
{
|
|
2934
2935
|
...g(),
|
|
2935
2936
|
options: i,
|
|
@@ -2942,7 +2943,7 @@ const cl = (e, t, r) => {
|
|
|
2942
2943
|
"File[]": "File[]",
|
|
2943
2944
|
FileList: "FileList"
|
|
2944
2945
|
}, ml = (e) => {
|
|
2945
|
-
console.log("render AutoUpload"), console.log(
|
|
2946
|
+
console.log("render AutoUpload"), console.log(fr());
|
|
2946
2947
|
const t = "", {
|
|
2947
2948
|
api: r,
|
|
2948
2949
|
maxCount: n = 1,
|
|
@@ -2960,30 +2961,30 @@ const cl = (e, t, r) => {
|
|
|
2960
2961
|
value: u = t,
|
|
2961
2962
|
// 默认文件列表
|
|
2962
2963
|
onChange: f
|
|
2963
|
-
} = e, g =
|
|
2964
|
+
} = e, g = j(!0), d = j(0), b = j([]), [p, v] = q([]), _ = (x) => {
|
|
2964
2965
|
b.current = x, v([...x]);
|
|
2965
2966
|
}, R = () => {
|
|
2966
2967
|
const {
|
|
2967
2968
|
api: x,
|
|
2968
|
-
maxCount:
|
|
2969
|
+
maxCount: M,
|
|
2969
2970
|
maxSize: w,
|
|
2970
|
-
openCrop:
|
|
2971
|
-
beforeUpload:
|
|
2971
|
+
openCrop: C,
|
|
2972
|
+
beforeUpload: S,
|
|
2972
2973
|
fileList: E,
|
|
2973
2974
|
returnType: D,
|
|
2974
|
-
...
|
|
2975
|
+
...A
|
|
2975
2976
|
} = e;
|
|
2976
|
-
return
|
|
2977
|
-
},
|
|
2978
|
-
const
|
|
2979
|
-
|
|
2977
|
+
return A;
|
|
2978
|
+
}, T = (x) => {
|
|
2979
|
+
const M = x.size / 1024 / 1024 < o;
|
|
2980
|
+
M || st.error(`文件大小超过:${o}M, 请重试`);
|
|
2980
2981
|
const w = b.current.length + d.current < n;
|
|
2981
|
-
return w ||
|
|
2982
|
-
},
|
|
2983
|
-
a ? (
|
|
2984
|
-
},
|
|
2985
|
-
r ? r({ file: x.file, ...i }).then((
|
|
2986
|
-
_([...b.current, ...
|
|
2982
|
+
return w || st.error(`文件数量不能超过${n}个`), M && w && d.current++, M && w && F(x), Mt.LIST_IGNORE;
|
|
2983
|
+
}, F = (x) => {
|
|
2984
|
+
a ? (st.error("暂时不支持裁剪功能,后续兼容。。。。"), O({ file: x })) : O({ file: x });
|
|
2985
|
+
}, O = (x) => {
|
|
2986
|
+
r ? r({ file: x.file, ...i }).then((M) => {
|
|
2987
|
+
_([...b.current, ...M]);
|
|
2987
2988
|
}).finally(() => {
|
|
2988
2989
|
d.current--;
|
|
2989
2990
|
}) : (Object.assign(x.file, {
|
|
@@ -2995,23 +2996,23 @@ const cl = (e, t, r) => {
|
|
|
2995
2996
|
)
|
|
2996
2997
|
}), _([...b.current, x.file]), d.current--);
|
|
2997
2998
|
}, I = (x) => {
|
|
2998
|
-
const { file:
|
|
2999
|
-
switch (
|
|
2999
|
+
const { file: M, fileList: w } = x, { status: C } = M;
|
|
3000
|
+
switch (C) {
|
|
3000
3001
|
case "removed": {
|
|
3001
3002
|
_([...w]);
|
|
3002
3003
|
break;
|
|
3003
3004
|
}
|
|
3004
3005
|
}
|
|
3005
3006
|
}, U = (x) => {
|
|
3006
|
-
const
|
|
3007
|
-
const
|
|
3007
|
+
const M = (C) => {
|
|
3008
|
+
const S = C.split("/"), E = S[S.length - 1], [D] = E.split("?");
|
|
3008
3009
|
return D;
|
|
3009
3010
|
};
|
|
3010
|
-
return { uid: ((
|
|
3011
|
-
const
|
|
3012
|
-
return
|
|
3013
|
-
})(x), name:
|
|
3014
|
-
},
|
|
3011
|
+
return { uid: ((C) => {
|
|
3012
|
+
const S = b.current.find((E) => E.url === C);
|
|
3013
|
+
return S ? S.uid : fr();
|
|
3014
|
+
})(x), name: M(x), url: x, status: "done" };
|
|
3015
|
+
}, G = () => {
|
|
3015
3016
|
switch (l) {
|
|
3016
3017
|
case be.String:
|
|
3017
3018
|
return p.map((x) => x.url).join(",");
|
|
@@ -3023,43 +3024,43 @@ const cl = (e, t, r) => {
|
|
|
3023
3024
|
return [...p];
|
|
3024
3025
|
}
|
|
3025
3026
|
};
|
|
3026
|
-
return
|
|
3027
|
-
const x =
|
|
3028
|
-
if (
|
|
3029
|
-
let
|
|
3027
|
+
return X(() => {
|
|
3028
|
+
const x = G();
|
|
3029
|
+
if (pt(x, u)) return;
|
|
3030
|
+
let M = [];
|
|
3030
3031
|
switch (l) {
|
|
3031
3032
|
case be.String: {
|
|
3032
|
-
|
|
3033
|
+
M = (u || "").split(",").filter((w) => w).map((w) => U(w));
|
|
3033
3034
|
break;
|
|
3034
3035
|
}
|
|
3035
3036
|
case be["String[]"]: {
|
|
3036
|
-
|
|
3037
|
+
M = (u || []).map((w) => U(w));
|
|
3037
3038
|
break;
|
|
3038
3039
|
}
|
|
3039
3040
|
case be["File[]"]: {
|
|
3040
|
-
|
|
3041
|
+
M = (u || []).map((w) => w);
|
|
3041
3042
|
break;
|
|
3042
3043
|
}
|
|
3043
3044
|
case be.FileList: {
|
|
3044
|
-
|
|
3045
|
+
M = (u || []).map((w) => w);
|
|
3045
3046
|
break;
|
|
3046
3047
|
}
|
|
3047
3048
|
}
|
|
3048
|
-
_(
|
|
3049
|
-
}, [u]),
|
|
3049
|
+
_(M);
|
|
3050
|
+
}, [u]), X(() => {
|
|
3050
3051
|
if (g.current) {
|
|
3051
3052
|
g.current = !1;
|
|
3052
3053
|
return;
|
|
3053
3054
|
}
|
|
3054
|
-
const x =
|
|
3055
|
+
const x = G();
|
|
3055
3056
|
f == null || f(x);
|
|
3056
3057
|
}, [p]), /* @__PURE__ */ h.jsx(
|
|
3057
|
-
|
|
3058
|
+
Mt,
|
|
3058
3059
|
{
|
|
3059
3060
|
listType: s,
|
|
3060
3061
|
...R(),
|
|
3061
3062
|
fileList: p,
|
|
3062
|
-
beforeUpload:
|
|
3063
|
+
beforeUpload: T,
|
|
3063
3064
|
onChange: I,
|
|
3064
3065
|
children: "上传"
|
|
3065
3066
|
}
|
|
@@ -3067,34 +3068,34 @@ const cl = (e, t, r) => {
|
|
|
3067
3068
|
}, W = /* @__PURE__ */ new Map();
|
|
3068
3069
|
W.set("Input", Ut);
|
|
3069
3070
|
W.set("ApiSelect", fl);
|
|
3070
|
-
W.set("Select",
|
|
3071
|
+
W.set("Select", qr);
|
|
3071
3072
|
W.set("InputNumber", eo);
|
|
3072
3073
|
W.set("ApiTreeSelect", pl);
|
|
3073
|
-
W.set("TreeSelect",
|
|
3074
|
+
W.set("TreeSelect", Kr);
|
|
3074
3075
|
W.set("ApiTransfer", gl);
|
|
3075
|
-
W.set("Transfer",
|
|
3076
|
+
W.set("Transfer", Jr);
|
|
3076
3077
|
W.set("Switch", to);
|
|
3077
|
-
W.set("Button",
|
|
3078
|
-
W.set("Radio",
|
|
3079
|
-
W.set("RadioGroup",
|
|
3080
|
-
W.set("Checkbox",
|
|
3081
|
-
W.set("CheckboxGroup",
|
|
3078
|
+
W.set("Button", ae);
|
|
3079
|
+
W.set("Radio", Qr);
|
|
3080
|
+
W.set("RadioGroup", Qr.Group);
|
|
3081
|
+
W.set("Checkbox", en);
|
|
3082
|
+
W.set("CheckboxGroup", en.Group);
|
|
3082
3083
|
W.set("Cascader", ro);
|
|
3083
3084
|
W.set("TimePicker", no);
|
|
3084
|
-
W.set("DatePicker",
|
|
3085
|
-
W.set("MonthPicker",
|
|
3086
|
-
W.set("WeekPicker",
|
|
3087
|
-
W.set("RangePicker",
|
|
3085
|
+
W.set("DatePicker", mt);
|
|
3086
|
+
W.set("MonthPicker", mt.MonthPicker);
|
|
3087
|
+
W.set("WeekPicker", mt.WeekPicker);
|
|
3088
|
+
W.set("RangePicker", mt.RangePicker);
|
|
3088
3089
|
W.set("InputPassword", Ut.Password);
|
|
3089
3090
|
W.set("InputTextArea", Ut.TextArea);
|
|
3090
3091
|
W.set("ApiAutoComplete", hl);
|
|
3091
|
-
W.set("AutoComplete",
|
|
3092
|
-
W.set("Upload",
|
|
3092
|
+
W.set("AutoComplete", Zr);
|
|
3093
|
+
W.set("Upload", Mt);
|
|
3093
3094
|
W.set("AutoUpload", ml);
|
|
3094
|
-
const
|
|
3095
|
+
const Hr = {
|
|
3095
3096
|
"form-item-force": "_form-item-force_1hsf3_1",
|
|
3096
3097
|
"form-item-hidden": "_form-item-hidden_1hsf3_9"
|
|
3097
|
-
}, bl =
|
|
3098
|
+
}, bl = pe(
|
|
3098
3099
|
({
|
|
3099
3100
|
itemIndex: e,
|
|
3100
3101
|
itemProps: t,
|
|
@@ -3125,9 +3126,9 @@ const Wr = {
|
|
|
3125
3126
|
), {
|
|
3126
3127
|
name: _,
|
|
3127
3128
|
label: R,
|
|
3128
|
-
wrapperCol:
|
|
3129
|
-
labelCol:
|
|
3130
|
-
valuePropName:
|
|
3129
|
+
wrapperCol: T,
|
|
3130
|
+
labelCol: F,
|
|
3131
|
+
valuePropName: O,
|
|
3131
3132
|
initialValue: I,
|
|
3132
3133
|
forceRow: U
|
|
3133
3134
|
} = t;
|
|
@@ -3137,21 +3138,21 @@ const Wr = {
|
|
|
3137
3138
|
itemCollapse: p,
|
|
3138
3139
|
setItemCollapse: v
|
|
3139
3140
|
}));
|
|
3140
|
-
const
|
|
3141
|
+
const G = () => ({
|
|
3141
3142
|
name: _,
|
|
3142
3143
|
label: R,
|
|
3143
3144
|
rules: d,
|
|
3144
|
-
wrapperCol:
|
|
3145
|
-
labelCol:
|
|
3146
|
-
valuePropName:
|
|
3145
|
+
wrapperCol: T,
|
|
3146
|
+
labelCol: F,
|
|
3147
|
+
valuePropName: O,
|
|
3147
3148
|
initialValue: I
|
|
3148
3149
|
}), { setExtendFormComp: x } = jn();
|
|
3149
3150
|
x(W);
|
|
3150
|
-
const
|
|
3151
|
-
if (
|
|
3152
|
-
const
|
|
3151
|
+
const M = er(t), w = tr(t), C = () => {
|
|
3152
|
+
if (M) {
|
|
3153
|
+
const S = W.get(t.component);
|
|
3153
3154
|
return /* @__PURE__ */ h.jsx(
|
|
3154
|
-
|
|
3155
|
+
S,
|
|
3155
3156
|
{
|
|
3156
3157
|
...g,
|
|
3157
3158
|
disabled: b,
|
|
@@ -3167,27 +3168,27 @@ const Wr = {
|
|
|
3167
3168
|
componentProps: g
|
|
3168
3169
|
}) : null;
|
|
3169
3170
|
};
|
|
3170
|
-
return /* @__PURE__ */ h.jsxs(
|
|
3171
|
-
U ? /* @__PURE__ */ h.jsx("div", { className:
|
|
3171
|
+
return /* @__PURE__ */ h.jsxs(Ur, { children: [
|
|
3172
|
+
U ? /* @__PURE__ */ h.jsx("div", { className: Hr["form-item-force"] }) : null,
|
|
3172
3173
|
l ? /* @__PURE__ */ h.jsx(
|
|
3173
3174
|
oo,
|
|
3174
3175
|
{
|
|
3175
3176
|
...f,
|
|
3176
|
-
className: u && !p ? void 0 :
|
|
3177
|
-
children: /* @__PURE__ */ h.jsx(
|
|
3177
|
+
className: u && !p ? void 0 : Hr["form-item-hidden"],
|
|
3178
|
+
children: /* @__PURE__ */ h.jsx(it.Item, { ...G(), children: C() })
|
|
3178
3179
|
}
|
|
3179
3180
|
) : null
|
|
3180
3181
|
] });
|
|
3181
3182
|
}
|
|
3182
3183
|
), vl = {
|
|
3183
3184
|
"collapse-wrapper": "_collapse-wrapper_ylm01_1"
|
|
3184
|
-
}, yl =
|
|
3185
|
+
}, yl = pe(
|
|
3185
3186
|
({
|
|
3186
3187
|
collapsible: e,
|
|
3187
3188
|
onClickExpand: t,
|
|
3188
3189
|
onClickFold: r
|
|
3189
3190
|
}, n) => {
|
|
3190
|
-
const [o, s] =
|
|
3191
|
+
const [o, s] = q(e), a = ht(() => o, [o]), i = () => {
|
|
3191
3192
|
r(), s(!0);
|
|
3192
3193
|
}, l = () => {
|
|
3193
3194
|
t(), s(!1);
|
|
@@ -3195,7 +3196,7 @@ const Wr = {
|
|
|
3195
3196
|
return Se(n, () => ({
|
|
3196
3197
|
handleCollapseChangeFalse: l
|
|
3197
3198
|
})), /* @__PURE__ */ h.jsx("div", { className: vl["collapse-wrapper"], children: a ? /* @__PURE__ */ h.jsx(
|
|
3198
|
-
|
|
3199
|
+
ae,
|
|
3199
3200
|
{
|
|
3200
3201
|
onClick: l,
|
|
3201
3202
|
type: "link",
|
|
@@ -3203,7 +3204,7 @@ const Wr = {
|
|
|
3203
3204
|
children: "展开"
|
|
3204
3205
|
}
|
|
3205
3206
|
) : /* @__PURE__ */ h.jsx(
|
|
3206
|
-
|
|
3207
|
+
ae,
|
|
3207
3208
|
{
|
|
3208
3209
|
onClick: i,
|
|
3209
3210
|
type: "link",
|
|
@@ -3214,14 +3215,14 @@ const Wr = {
|
|
|
3214
3215
|
}
|
|
3215
3216
|
), _l = {
|
|
3216
3217
|
"group-wrapper": "_group-wrapper_g8zqi_1"
|
|
3217
|
-
},
|
|
3218
|
+
}, xl = ({ formProps: e }) => {
|
|
3218
3219
|
const { renderActions: t } = e;
|
|
3219
3220
|
return /* @__PURE__ */ h.jsx("div", { className: _l["group-wrapper"], children: t == null ? void 0 : t() });
|
|
3220
|
-
},
|
|
3221
|
+
}, wl = {
|
|
3221
3222
|
"xph-form-action": "_xph-form-action_8ws73_1"
|
|
3222
3223
|
}, Cl = (e, t) => {
|
|
3223
3224
|
console.log("render Form");
|
|
3224
|
-
const [r] =
|
|
3225
|
+
const [r] = it.useForm(), { formProps: n } = ul(e), { formItems: o } = nl({ formProps: n }), s = j(/* @__PURE__ */ new Map()), {
|
|
3225
3226
|
collapsible: a,
|
|
3226
3227
|
collapseNum: i,
|
|
3227
3228
|
collapseRef: l,
|
|
@@ -3241,30 +3242,30 @@ const Wr = {
|
|
|
3241
3242
|
r,
|
|
3242
3243
|
g,
|
|
3243
3244
|
d
|
|
3244
|
-
),
|
|
3245
|
+
), T = () => {
|
|
3245
3246
|
const {
|
|
3246
|
-
layout:
|
|
3247
|
+
layout: O,
|
|
3247
3248
|
wrapperCol: I,
|
|
3248
3249
|
labelCol: U,
|
|
3249
|
-
colon:
|
|
3250
|
+
colon: G,
|
|
3250
3251
|
disabled: x,
|
|
3251
|
-
labelWrap:
|
|
3252
|
+
labelWrap: M,
|
|
3252
3253
|
labelAlign: w,
|
|
3253
|
-
scrollToFirstError:
|
|
3254
|
-
size:
|
|
3254
|
+
scrollToFirstError: C,
|
|
3255
|
+
size: S
|
|
3255
3256
|
} = n;
|
|
3256
3257
|
return {
|
|
3257
|
-
layout:
|
|
3258
|
+
layout: O,
|
|
3258
3259
|
wrapperCol: I,
|
|
3259
3260
|
labelCol: U,
|
|
3260
|
-
colon:
|
|
3261
|
+
colon: G,
|
|
3261
3262
|
disabled: x,
|
|
3262
|
-
labelWrap:
|
|
3263
|
+
labelWrap: M,
|
|
3263
3264
|
labelAlign: w,
|
|
3264
|
-
scrollToFirstError:
|
|
3265
|
-
size:
|
|
3265
|
+
scrollToFirstError: C,
|
|
3266
|
+
size: S
|
|
3266
3267
|
};
|
|
3267
|
-
},
|
|
3268
|
+
}, F = {
|
|
3268
3269
|
setFieldsValue: b,
|
|
3269
3270
|
getFieldsValue: p,
|
|
3270
3271
|
resetFields: v,
|
|
@@ -3272,24 +3273,24 @@ const Wr = {
|
|
|
3272
3273
|
scrollToField: R
|
|
3273
3274
|
};
|
|
3274
3275
|
return Se(t, () => ({
|
|
3275
|
-
...
|
|
3276
|
-
})),
|
|
3276
|
+
...F
|
|
3277
|
+
})), X(() => (console.log("Form is mounted======================="), n.register && n.register(F), () => {
|
|
3277
3278
|
console.log("Form is unmounted========================="), s.current.clear();
|
|
3278
|
-
}), []), /* @__PURE__ */ h.jsxs(
|
|
3279
|
-
/* @__PURE__ */ h.jsx(so, { children: o.map((
|
|
3279
|
+
}), []), /* @__PURE__ */ h.jsxs(it, { form: r, ...T(), children: [
|
|
3280
|
+
/* @__PURE__ */ h.jsx(so, { children: o.map((O, I) => (s.current.has(O.name) || s.current.set(O.name, Te.createRef()), /* @__PURE__ */ h.jsx(
|
|
3280
3281
|
bl,
|
|
3281
3282
|
{
|
|
3282
|
-
ref: s.current.get(
|
|
3283
|
+
ref: s.current.get(O.name),
|
|
3283
3284
|
itemIndex: I,
|
|
3284
|
-
itemProps:
|
|
3285
|
+
itemProps: O,
|
|
3285
3286
|
formProps: n,
|
|
3286
|
-
methods:
|
|
3287
|
+
methods: F,
|
|
3287
3288
|
collapseRef: l
|
|
3288
3289
|
},
|
|
3289
3290
|
I
|
|
3290
3291
|
))) }),
|
|
3291
|
-
/* @__PURE__ */ h.jsxs("div", { className:
|
|
3292
|
-
/* @__PURE__ */ h.jsx(
|
|
3292
|
+
/* @__PURE__ */ h.jsxs("div", { className: wl["xph-form-action"], children: [
|
|
3293
|
+
/* @__PURE__ */ h.jsx(xl, { formProps: n }),
|
|
3293
3294
|
a ? /* @__PURE__ */ h.jsx(
|
|
3294
3295
|
yl,
|
|
3295
3296
|
{
|
|
@@ -3301,8 +3302,8 @@ const Wr = {
|
|
|
3301
3302
|
) : null
|
|
3302
3303
|
] })
|
|
3303
3304
|
] });
|
|
3304
|
-
}, Fn =
|
|
3305
|
-
const { renderActions: r, showSearch: n, tableRef: o } = e, [s, a] =
|
|
3305
|
+
}, Fn = pe(Cl), Tl = Yr(Fn), Sl = pe((e, t) => {
|
|
3306
|
+
const { renderActions: r, showSearch: n, tableRef: o } = e, [s, a] = q(!1), i = j(null), l = () => {
|
|
3306
3307
|
const { reloadData: d } = o.current;
|
|
3307
3308
|
d();
|
|
3308
3309
|
}, u = () => {
|
|
@@ -3312,7 +3313,7 @@ const Wr = {
|
|
|
3312
3313
|
/* @__PURE__ */ h.jsx("div", { style: { flex: 1, width: 0 }, children: r == null ? void 0 : r() }),
|
|
3313
3314
|
n && /* @__PURE__ */ h.jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
3314
3315
|
/* @__PURE__ */ h.jsx(
|
|
3315
|
-
|
|
3316
|
+
ae,
|
|
3316
3317
|
{
|
|
3317
3318
|
type: "primary",
|
|
3318
3319
|
icon: /* @__PURE__ */ h.jsx(ho, {}),
|
|
@@ -3320,7 +3321,7 @@ const Wr = {
|
|
|
3320
3321
|
children: "搜索"
|
|
3321
3322
|
}
|
|
3322
3323
|
),
|
|
3323
|
-
/* @__PURE__ */ h.jsx(
|
|
3324
|
+
/* @__PURE__ */ h.jsx(ae, { icon: /* @__PURE__ */ h.jsx(mo, {}), onClick: u, children: "重置" })
|
|
3324
3325
|
] })
|
|
3325
3326
|
] }), [n, r]), g = () => {
|
|
3326
3327
|
const { renderActions: d, ...b } = e;
|
|
@@ -3333,12 +3334,12 @@ const Wr = {
|
|
|
3333
3334
|
/** 扩展了loading方法,让table调用 */
|
|
3334
3335
|
setFormLoading: a,
|
|
3335
3336
|
...i.current
|
|
3336
|
-
})), /* @__PURE__ */ h.jsx(
|
|
3337
|
-
}), Pl =
|
|
3338
|
-
const r =
|
|
3337
|
+
})), /* @__PURE__ */ h.jsx(Xr, { spinning: s, children: /* @__PURE__ */ h.jsx(Tl, { ref: i, ...g() }) });
|
|
3338
|
+
}), Pl = Yr(Fn), Rl = (e, t) => {
|
|
3339
|
+
const r = j(null), n = j(null), { formProps: o } = e, a = (() => {
|
|
3339
3340
|
const { formProps: f, ...g } = e;
|
|
3340
3341
|
return g;
|
|
3341
|
-
})(), i =
|
|
3342
|
+
})(), i = j(null), l = async () => {
|
|
3342
3343
|
const { onOk: f, renderFooter: g } = a;
|
|
3343
3344
|
if (!g) {
|
|
3344
3345
|
const { ok: d, data: b } = i.current;
|
|
@@ -3413,10 +3414,10 @@ const Wr = {
|
|
|
3413
3414
|
children: /* @__PURE__ */ h.jsx(Pl, { ...o, ref: n })
|
|
3414
3415
|
}
|
|
3415
3416
|
);
|
|
3416
|
-
}, jl =
|
|
3417
|
+
}, jl = pe(Rl);
|
|
3417
3418
|
function Fl({ searchForm: e }) {
|
|
3418
3419
|
return {
|
|
3419
|
-
searchFormRef:
|
|
3420
|
+
searchFormRef: j(null),
|
|
3420
3421
|
searchFormProps: e
|
|
3421
3422
|
};
|
|
3422
3423
|
}
|
|
@@ -3426,7 +3427,7 @@ function El(e) {
|
|
|
3426
3427
|
function Al(e) {
|
|
3427
3428
|
return "children" in e;
|
|
3428
3429
|
}
|
|
3429
|
-
const { useToken: Dl } =
|
|
3430
|
+
const { useToken: Dl } = Le, Ol = (e, t, r) => {
|
|
3430
3431
|
const { curComponentProps: n, cellFuncProps: o } = t, { url: s, onClick: a } = n, { token: i } = Dl(), l = {
|
|
3431
3432
|
color: i.colorLink,
|
|
3432
3433
|
cursor: "pointer"
|
|
@@ -3452,8 +3453,8 @@ const { useToken: Dl } = Ke, Ol = (e, t, r) => {
|
|
|
3452
3453
|
"cellfunc-actions": "_cellfunc-actions_14drt_1"
|
|
3453
3454
|
}, Ml = (e, t, r) => {
|
|
3454
3455
|
const { curComponentProps: n, cellFuncProps: o } = t;
|
|
3455
|
-
return /* @__PURE__ */ h.jsx("div", { className: $l["cellfunc-actions"], children: /* @__PURE__ */ h.jsx(
|
|
3456
|
-
}, { useToken: kl } =
|
|
3456
|
+
return /* @__PURE__ */ h.jsx("div", { className: $l["cellfunc-actions"], children: /* @__PURE__ */ h.jsx(Qt, { ...n }) });
|
|
3457
|
+
}, { useToken: kl } = Le, zl = {
|
|
3457
3458
|
0: {
|
|
3458
3459
|
color: "orange",
|
|
3459
3460
|
backgroundColor: "unset",
|
|
@@ -3599,7 +3600,43 @@ const { useToken: Dl } = Ke, Ol = (e, t, r) => {
|
|
|
3599
3600
|
mainStyle: Object.assign((r == null ? void 0 : r.mainStyle) || {}, g)
|
|
3600
3601
|
}
|
|
3601
3602
|
);
|
|
3602
|
-
},
|
|
3603
|
+
}, { useToken: Nl } = Le, Wl = (e, t, r) => {
|
|
3604
|
+
const {
|
|
3605
|
+
curComponentProps: n,
|
|
3606
|
+
cellFuncProps: { renderPrams: o }
|
|
3607
|
+
} = t, { token: s } = Nl(), { text: a, onClick: i, size: l = "default" } = n, u = {
|
|
3608
|
+
small: 16,
|
|
3609
|
+
default: 18,
|
|
3610
|
+
large: 20
|
|
3611
|
+
}, { copy: f } = Ql(), g = () => {
|
|
3612
|
+
let d = o.text;
|
|
3613
|
+
if (a && (Q(a) && (d = a(o.record)), Zt(a) && (d = a)), i) return i(o.record);
|
|
3614
|
+
f(d) && st.success("复制成功");
|
|
3615
|
+
};
|
|
3616
|
+
return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
3617
|
+
/* @__PURE__ */ h.jsx("span", { onClick: g, children: /* @__PURE__ */ h.jsx(
|
|
3618
|
+
"svg",
|
|
3619
|
+
{
|
|
3620
|
+
viewBox: "0 0 1024 1024",
|
|
3621
|
+
version: "1.1",
|
|
3622
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3623
|
+
"p-id": "4503",
|
|
3624
|
+
width: u[l],
|
|
3625
|
+
height: u[l],
|
|
3626
|
+
style: { cursor: "pointer", verticalAlign: "text-top" },
|
|
3627
|
+
children: /* @__PURE__ */ h.jsx(
|
|
3628
|
+
"path",
|
|
3629
|
+
{
|
|
3630
|
+
d: "M682.666667 42.666667H85.333333v682.666666h85.333334V128h512V42.666667zM256 213.333333l4.522667 768H896V213.333333H256z m554.666667 682.666667H341.333333V298.666667h469.333334v597.333333z",
|
|
3631
|
+
fill: s.colorLink,
|
|
3632
|
+
"p-id": "4504"
|
|
3633
|
+
}
|
|
3634
|
+
)
|
|
3635
|
+
}
|
|
3636
|
+
) }),
|
|
3637
|
+
/* @__PURE__ */ h.jsx(e, { ...r })
|
|
3638
|
+
] });
|
|
3639
|
+
}, Br = {
|
|
3603
3640
|
/** 超链接 */
|
|
3604
3641
|
link: {
|
|
3605
3642
|
Comp: Ol
|
|
@@ -3611,20 +3648,32 @@ const { useToken: Dl } = Ke, Ol = (e, t, r) => {
|
|
|
3611
3648
|
/** tag标签 */
|
|
3612
3649
|
tag: {
|
|
3613
3650
|
Comp: Ll
|
|
3651
|
+
},
|
|
3652
|
+
/** 复制 */
|
|
3653
|
+
copy: {
|
|
3654
|
+
Comp: Wl
|
|
3614
3655
|
}
|
|
3615
|
-
},
|
|
3616
|
-
var
|
|
3656
|
+
}, Hl = (e, t) => {
|
|
3657
|
+
var a, i;
|
|
3617
3658
|
const {
|
|
3618
|
-
renderPrams: { text: r }
|
|
3619
|
-
} = e,
|
|
3620
|
-
return /* @__PURE__ */ h.jsx(
|
|
3621
|
-
|
|
3659
|
+
renderPrams: { text: r, column: n }
|
|
3660
|
+
} = e, o = (a = t == null ? void 0 : t.mainHandleText) == null ? void 0 : a.call(t), s = ft(n == null ? void 0 : n.ellipsis) ? n == null ? void 0 : n.ellipsis : (i = n == null ? void 0 : n.ellipsis) == null ? void 0 : i.showTitle;
|
|
3661
|
+
return /* @__PURE__ */ h.jsx(
|
|
3662
|
+
"span",
|
|
3663
|
+
{
|
|
3664
|
+
onClick: t == null ? void 0 : t.mainClick,
|
|
3665
|
+
style: t == null ? void 0 : t.mainStyle,
|
|
3666
|
+
title: s ? `${o ?? r}` : void 0,
|
|
3667
|
+
children: o ?? r
|
|
3668
|
+
}
|
|
3669
|
+
);
|
|
3670
|
+
}, Bl = (e) => {
|
|
3622
3671
|
const { setExtendTableCellComp: t } = An();
|
|
3623
|
-
t(
|
|
3672
|
+
t(Br);
|
|
3624
3673
|
const { dslConfig: r } = e;
|
|
3625
|
-
let n =
|
|
3674
|
+
let n = Hl.bind(null, e), o = 0;
|
|
3626
3675
|
for (; o < r.length; ) {
|
|
3627
|
-
const s = o++, a =
|
|
3676
|
+
const s = o++, a = Br[r[s].component];
|
|
3628
3677
|
a && (n = a.Comp.bind(null, n, {
|
|
3629
3678
|
curComponentProps: r[s].componentProps || {},
|
|
3630
3679
|
cellFuncProps: e
|
|
@@ -3640,30 +3689,30 @@ function En(e) {
|
|
|
3640
3689
|
r = {
|
|
3641
3690
|
...o,
|
|
3642
3691
|
render: (...s) => {
|
|
3643
|
-
const a =
|
|
3692
|
+
const a = Q(n), [i, l, u] = s, f = {
|
|
3644
3693
|
text: i,
|
|
3645
3694
|
record: l,
|
|
3646
3695
|
index: u,
|
|
3647
3696
|
column: JSON.parse(JSON.stringify(o))
|
|
3648
3697
|
}, g = a ? n(f) : n;
|
|
3649
|
-
return /* @__PURE__ */ h.jsx(
|
|
3698
|
+
return /* @__PURE__ */ h.jsx(Bl, { dslConfig: g, renderPrams: f });
|
|
3650
3699
|
}
|
|
3651
3700
|
};
|
|
3652
3701
|
}
|
|
3653
3702
|
return Al(r) && r.children && Array.isArray(r.children) && (r.children = En(r.children)), r;
|
|
3654
3703
|
});
|
|
3655
3704
|
}
|
|
3656
|
-
function
|
|
3705
|
+
function Vl(e) {
|
|
3657
3706
|
const { columns: t } = e.table;
|
|
3658
3707
|
return {
|
|
3659
3708
|
columns: En(t)
|
|
3660
3709
|
};
|
|
3661
3710
|
}
|
|
3662
|
-
const
|
|
3711
|
+
const Ul = (e) => {
|
|
3663
3712
|
const { extendTableProps: t } = An();
|
|
3664
3713
|
return {
|
|
3665
3714
|
tableProps: {
|
|
3666
|
-
...
|
|
3715
|
+
...ue(ue({
|
|
3667
3716
|
table: {
|
|
3668
3717
|
columns: [],
|
|
3669
3718
|
fullHeight: !1,
|
|
@@ -3689,20 +3738,18 @@ const Bl = (e) => {
|
|
|
3689
3738
|
},
|
|
3690
3739
|
crudFormDialog: void 0,
|
|
3691
3740
|
// 由于该弹窗对性能开销大,所以默认都是不自动生成该弹窗,需要则配置该属性
|
|
3692
|
-
searchForm:
|
|
3693
|
-
|
|
3694
|
-
items: []
|
|
3695
|
-
}
|
|
3741
|
+
searchForm: void 0
|
|
3742
|
+
// 由于该表单对性能开销大,所以默认都是不自动生成该表单,需要则配置该属性
|
|
3696
3743
|
}, t), e)
|
|
3697
3744
|
}
|
|
3698
3745
|
};
|
|
3699
3746
|
};
|
|
3700
|
-
function
|
|
3701
|
-
const { pagination: t, autoPagination: r } = e.table, [n, o] =
|
|
3747
|
+
function Yl(e) {
|
|
3748
|
+
const { pagination: t, autoPagination: r } = e.table, [n, o] = q(
|
|
3702
3749
|
t
|
|
3703
|
-
), s =
|
|
3750
|
+
), s = j(
|
|
3704
3751
|
t
|
|
3705
|
-
), a =
|
|
3752
|
+
), a = ht(() => n && (r === !0 || r === void 0) || !1, [n]);
|
|
3706
3753
|
return {
|
|
3707
3754
|
pagination: {
|
|
3708
3755
|
model: n,
|
|
@@ -3716,7 +3763,7 @@ function Vl(e) {
|
|
|
3716
3763
|
lastPaginationState: s
|
|
3717
3764
|
};
|
|
3718
3765
|
}
|
|
3719
|
-
function
|
|
3766
|
+
function Gl(e, t) {
|
|
3720
3767
|
const {
|
|
3721
3768
|
api: r,
|
|
3722
3769
|
formatDataSource: n,
|
|
@@ -3724,133 +3771,136 @@ function Ul(e, t) {
|
|
|
3724
3771
|
onChange: s,
|
|
3725
3772
|
requestFields: a,
|
|
3726
3773
|
responseFields: i
|
|
3727
|
-
} = e.table, l = e.onPaginationChange, { pagination: u, lastPaginationState: f } =
|
|
3774
|
+
} = e.table, l = e.onPaginationChange, { pagination: u, lastPaginationState: f } = Yl(e), [g, d] = q({
|
|
3728
3775
|
loading: !1,
|
|
3729
3776
|
dataSource: [],
|
|
3730
3777
|
selection: [],
|
|
3731
3778
|
backupsDataSource: []
|
|
3732
|
-
}), b =
|
|
3779
|
+
}), b = j({
|
|
3733
3780
|
loading: !1,
|
|
3734
3781
|
dataSource: [],
|
|
3735
3782
|
selection: [],
|
|
3736
3783
|
backupsDataSource: []
|
|
3737
3784
|
}), p = {
|
|
3738
3785
|
model: g,
|
|
3739
|
-
update: (
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3786
|
+
update: (w) => {
|
|
3787
|
+
const C = { ...b.current, ...w };
|
|
3788
|
+
d(C), b.current = C, t.current && t.current.setFormLoading(C.loading);
|
|
3789
|
+
}
|
|
3790
|
+
}, v = {
|
|
3791
|
+
validator: async () => ({}),
|
|
3792
|
+
resetFields: async () => {
|
|
3743
3793
|
}
|
|
3744
|
-
},
|
|
3745
|
-
|
|
3746
|
-
const { autoRequest:
|
|
3747
|
-
|
|
3748
|
-
|
|
3794
|
+
}, _ = async () => {
|
|
3795
|
+
X(() => {
|
|
3796
|
+
const { autoRequest: w } = e.table, { validator: C } = t.current || v;
|
|
3797
|
+
w && C().then((S) => {
|
|
3798
|
+
O({ searchFormParams: S });
|
|
3749
3799
|
});
|
|
3750
3800
|
}, []);
|
|
3751
|
-
},
|
|
3752
|
-
searchFormParams:
|
|
3753
|
-
paginationParams:
|
|
3801
|
+
}, R = async ({
|
|
3802
|
+
searchFormParams: w,
|
|
3803
|
+
paginationParams: C
|
|
3754
3804
|
}) => {
|
|
3755
|
-
const
|
|
3756
|
-
...
|
|
3805
|
+
const S = {
|
|
3806
|
+
...w,
|
|
3757
3807
|
/** 没传paginationParams默认就是上一次 */
|
|
3758
3808
|
[`${a.current}`]: f.current.current,
|
|
3759
3809
|
[`${a.pageSize}`]: f.current.pageSize,
|
|
3760
|
-
...
|
|
3761
|
-
[`${a.current}`]:
|
|
3762
|
-
[`${a.pageSize}`]:
|
|
3810
|
+
...C ? {
|
|
3811
|
+
[`${a.current}`]: C.current,
|
|
3812
|
+
[`${a.pageSize}`]: C.pageSize
|
|
3763
3813
|
} : {}
|
|
3764
3814
|
};
|
|
3765
|
-
return r(
|
|
3766
|
-
const { current:
|
|
3815
|
+
return r(S).then((E) => {
|
|
3816
|
+
const { current: D, list: A, total: Y } = pr(
|
|
3767
3817
|
i,
|
|
3768
|
-
|
|
3818
|
+
E
|
|
3769
3819
|
);
|
|
3770
3820
|
p.update({
|
|
3771
|
-
dataSource: n ? n(
|
|
3821
|
+
dataSource: n ? n(A) : A
|
|
3772
3822
|
}), u.update({
|
|
3773
|
-
total:
|
|
3774
|
-
current:
|
|
3775
|
-
pageSize:
|
|
3823
|
+
total: Y,
|
|
3824
|
+
current: D,
|
|
3825
|
+
pageSize: S[`${a.pageSize}`]
|
|
3776
3826
|
});
|
|
3777
3827
|
}).finally(() => {
|
|
3778
3828
|
p.update({ loading: !1 });
|
|
3779
3829
|
});
|
|
3780
|
-
},
|
|
3781
|
-
searchFormParams:
|
|
3782
|
-
paginationParams:
|
|
3830
|
+
}, T = async ({
|
|
3831
|
+
searchFormParams: w,
|
|
3832
|
+
paginationParams: C
|
|
3783
3833
|
}) => {
|
|
3784
|
-
const
|
|
3785
|
-
return r(
|
|
3786
|
-
const { list:
|
|
3834
|
+
const S = { ...w };
|
|
3835
|
+
return r(S).then((E) => {
|
|
3836
|
+
const { list: D } = pr(i, E), A = n ? n(D) : D;
|
|
3787
3837
|
p.update({
|
|
3788
3838
|
selection: [],
|
|
3789
|
-
dataSource:
|
|
3839
|
+
dataSource: A
|
|
3790
3840
|
}), u.update({
|
|
3791
3841
|
current: 1,
|
|
3792
|
-
total:
|
|
3842
|
+
total: D.length
|
|
3793
3843
|
});
|
|
3794
3844
|
}).finally(() => {
|
|
3795
3845
|
p.update({ loading: !1 });
|
|
3796
3846
|
});
|
|
3797
|
-
},
|
|
3798
|
-
searchFormParams:
|
|
3799
|
-
paginationParams:
|
|
3847
|
+
}, F = async ({
|
|
3848
|
+
searchFormParams: w,
|
|
3849
|
+
paginationParams: C
|
|
3800
3850
|
}) => {
|
|
3801
|
-
var
|
|
3802
|
-
const
|
|
3803
|
-
if (
|
|
3804
|
-
const { current:
|
|
3851
|
+
var E;
|
|
3852
|
+
const S = { ...w };
|
|
3853
|
+
if (C) {
|
|
3854
|
+
const { current: D, pageSize: A } = C;
|
|
3805
3855
|
u.update({
|
|
3806
|
-
current:
|
|
3807
|
-
pageSize:
|
|
3856
|
+
current: D,
|
|
3857
|
+
pageSize: A
|
|
3808
3858
|
});
|
|
3809
|
-
const
|
|
3810
|
-
|
|
3811
|
-
|
|
3859
|
+
const Y = (D - 1) * A, ee = Y + A, se = (E = b.current.backupsDataSource) == null ? void 0 : E.slice(
|
|
3860
|
+
Y,
|
|
3861
|
+
ee
|
|
3812
3862
|
);
|
|
3813
3863
|
return p.update({
|
|
3814
3864
|
loading: !1,
|
|
3815
3865
|
selection: [],
|
|
3816
|
-
dataSource:
|
|
3866
|
+
dataSource: se
|
|
3817
3867
|
});
|
|
3818
3868
|
} else
|
|
3819
|
-
return r(
|
|
3820
|
-
let
|
|
3821
|
-
const
|
|
3822
|
-
|
|
3869
|
+
return r(S).then((D) => {
|
|
3870
|
+
let A = n ? n(D) : D;
|
|
3871
|
+
const Y = [...A], ee = 0, se = ee + f.current.pageSize;
|
|
3872
|
+
A = A.slice(ee, se), p.update({
|
|
3823
3873
|
selection: [],
|
|
3824
|
-
dataSource:
|
|
3825
|
-
backupsDataSource:
|
|
3874
|
+
dataSource: A,
|
|
3875
|
+
backupsDataSource: Y
|
|
3826
3876
|
}), u.update({
|
|
3827
3877
|
current: 1,
|
|
3828
|
-
total:
|
|
3878
|
+
total: D.length
|
|
3829
3879
|
});
|
|
3830
3880
|
}).finally(() => {
|
|
3831
3881
|
p.update({ loading: !1 });
|
|
3832
3882
|
});
|
|
3833
|
-
},
|
|
3834
|
-
searchFormParams:
|
|
3835
|
-
paginationParams:
|
|
3883
|
+
}, O = async ({
|
|
3884
|
+
searchFormParams: w,
|
|
3885
|
+
paginationParams: C
|
|
3836
3886
|
}) => {
|
|
3837
3887
|
if (p.update({ loading: !0, selection: [] }), r)
|
|
3838
3888
|
switch (!!f.current) {
|
|
3839
3889
|
case !0:
|
|
3840
|
-
return o === !0 ?
|
|
3841
|
-
searchFormParams:
|
|
3842
|
-
paginationParams:
|
|
3843
|
-
}) : o === !1 ?
|
|
3844
|
-
searchFormParams:
|
|
3845
|
-
paginationParams:
|
|
3846
|
-
}) :
|
|
3847
|
-
searchFormParams:
|
|
3848
|
-
paginationParams:
|
|
3890
|
+
return o === !0 ? F({
|
|
3891
|
+
searchFormParams: w,
|
|
3892
|
+
paginationParams: C
|
|
3893
|
+
}) : o === !1 ? T({
|
|
3894
|
+
searchFormParams: w,
|
|
3895
|
+
paginationParams: C
|
|
3896
|
+
}) : R({
|
|
3897
|
+
searchFormParams: w,
|
|
3898
|
+
paginationParams: C
|
|
3849
3899
|
});
|
|
3850
3900
|
case !1:
|
|
3851
|
-
return
|
|
3852
|
-
searchFormParams:
|
|
3853
|
-
paginationParams:
|
|
3901
|
+
return T({
|
|
3902
|
+
searchFormParams: w,
|
|
3903
|
+
paginationParams: C
|
|
3854
3904
|
});
|
|
3855
3905
|
}
|
|
3856
3906
|
return p.update({ loading: !1 });
|
|
@@ -3858,51 +3908,51 @@ function Ul(e, t) {
|
|
|
3858
3908
|
return {
|
|
3859
3909
|
table: p,
|
|
3860
3910
|
pagination: u,
|
|
3861
|
-
firstGetTableData:
|
|
3862
|
-
onPaginationChange: (
|
|
3863
|
-
const { validator:
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
searchFormParams:
|
|
3867
|
-
paginationParams: { current:
|
|
3911
|
+
firstGetTableData: _,
|
|
3912
|
+
onPaginationChange: (w, C) => {
|
|
3913
|
+
const { validator: S } = t.current || v;
|
|
3914
|
+
S().then((E) => {
|
|
3915
|
+
O({
|
|
3916
|
+
searchFormParams: E,
|
|
3917
|
+
paginationParams: { current: w, pageSize: C }
|
|
3868
3918
|
});
|
|
3869
|
-
}), l && l(
|
|
3919
|
+
}), l && l(w, C);
|
|
3870
3920
|
},
|
|
3871
|
-
onAllChange: async (...
|
|
3872
|
-
const [
|
|
3873
|
-
for (let
|
|
3921
|
+
onAllChange: async (...w) => {
|
|
3922
|
+
const [C, S, E, D] = w, A = [];
|
|
3923
|
+
for (let Y = 0; Y < A.length && !A[Y](); Y++)
|
|
3874
3924
|
;
|
|
3875
|
-
s && s(
|
|
3925
|
+
s && s(S, E, D);
|
|
3876
3926
|
},
|
|
3877
3927
|
resetData: async () => {
|
|
3878
|
-
const { resetFields:
|
|
3879
|
-
return
|
|
3880
|
-
const
|
|
3881
|
-
return
|
|
3928
|
+
const { resetFields: w, validator: C } = t.current || v;
|
|
3929
|
+
return w().then(async () => {
|
|
3930
|
+
const S = await C();
|
|
3931
|
+
return O({ searchFormParams: S });
|
|
3882
3932
|
});
|
|
3883
3933
|
},
|
|
3884
3934
|
resetAllData: async () => {
|
|
3885
|
-
const { resetFields:
|
|
3886
|
-
return
|
|
3887
|
-
const
|
|
3935
|
+
const { resetFields: w, validator: C } = t.current || v;
|
|
3936
|
+
return w().then(async () => {
|
|
3937
|
+
const S = {};
|
|
3888
3938
|
if (f.current) {
|
|
3889
|
-
const { pageSize:
|
|
3890
|
-
o === void 0 && (
|
|
3939
|
+
const { pageSize: E } = f.current;
|
|
3940
|
+
o === void 0 && (S.paginationParams = { current: 1, pageSize: E });
|
|
3891
3941
|
}
|
|
3892
|
-
return
|
|
3942
|
+
return S.searchFormParams = await C(), O(S);
|
|
3893
3943
|
});
|
|
3894
3944
|
},
|
|
3895
3945
|
reloadData: async () => {
|
|
3896
|
-
const { validator:
|
|
3897
|
-
return
|
|
3898
|
-
searchFormParams:
|
|
3946
|
+
const { validator: w } = t.current || v;
|
|
3947
|
+
return w().then((C) => O({
|
|
3948
|
+
searchFormParams: C
|
|
3899
3949
|
}));
|
|
3900
3950
|
}
|
|
3901
3951
|
};
|
|
3902
3952
|
}
|
|
3903
|
-
const
|
|
3953
|
+
const Xl = (e, t) => {
|
|
3904
3954
|
const { onRowSelectionChange: r } = e, { rowSelection: n } = e.table, o = () => {
|
|
3905
|
-
if (
|
|
3955
|
+
if (Zt(n))
|
|
3906
3956
|
return {
|
|
3907
3957
|
type: n,
|
|
3908
3958
|
onChange: (s, a, i) => {
|
|
@@ -3911,7 +3961,7 @@ const Yl = (e, t) => {
|
|
|
3911
3961
|
}), r && r(s, a);
|
|
3912
3962
|
}
|
|
3913
3963
|
};
|
|
3914
|
-
if (
|
|
3964
|
+
if (ce(n)) {
|
|
3915
3965
|
const { onChange: s } = n;
|
|
3916
3966
|
return {
|
|
3917
3967
|
...n,
|
|
@@ -3929,17 +3979,17 @@ const Yl = (e, t) => {
|
|
|
3929
3979
|
getNewRowSelection: o
|
|
3930
3980
|
};
|
|
3931
3981
|
};
|
|
3932
|
-
function
|
|
3933
|
-
const { scroll: r, virtual: n } = e.table, o =
|
|
3982
|
+
function ql(e, t) {
|
|
3983
|
+
const { scroll: r, virtual: n } = e.table, o = j(null), [s, a] = q(0), [i, l] = q(0), u = () => {
|
|
3934
3984
|
o.current && (console.log("触发了table的handleResize"), a(o.current.offsetWidth), l(o.current.offsetHeight));
|
|
3935
3985
|
};
|
|
3936
|
-
|
|
3986
|
+
X(() => {
|
|
3937
3987
|
const g = new ResizeObserver(u);
|
|
3938
3988
|
return o.current && g.observe(o.current), () => {
|
|
3939
3989
|
g && o.current && g.unobserve(o.current);
|
|
3940
3990
|
};
|
|
3941
3991
|
}, []);
|
|
3942
|
-
const f =
|
|
3992
|
+
const f = ht(() => t ? n ? { x: s, y: i - 70, ...r } : { y: i - 70, ...r } : {
|
|
3943
3993
|
...r
|
|
3944
3994
|
}, [i]);
|
|
3945
3995
|
return {
|
|
@@ -3947,11 +3997,11 @@ function Gl(e, t) {
|
|
|
3947
3997
|
scroll: f
|
|
3948
3998
|
};
|
|
3949
3999
|
}
|
|
3950
|
-
function
|
|
4000
|
+
function Kl(e, t) {
|
|
3951
4001
|
const { toolbar: r } = e.table;
|
|
3952
4002
|
return {
|
|
3953
4003
|
getTopToolbarBindProps: () => {
|
|
3954
|
-
if (
|
|
4004
|
+
if (Q(r)) {
|
|
3955
4005
|
const o = r({
|
|
3956
4006
|
loading: t.model.loading,
|
|
3957
4007
|
selection: t.model.selection
|
|
@@ -3984,16 +4034,43 @@ const An = () => {
|
|
|
3984
4034
|
extendTableProps: e == null ? void 0 : e.table,
|
|
3985
4035
|
setExtendTableCellComp: r
|
|
3986
4036
|
};
|
|
3987
|
-
},
|
|
3988
|
-
crudFormDialogRef:
|
|
4037
|
+
}, Jl = ({ crudFormDialog: e }) => ({
|
|
4038
|
+
crudFormDialogRef: j(null),
|
|
3989
4039
|
crudFormProps: e
|
|
3990
|
-
})
|
|
4040
|
+
});
|
|
4041
|
+
function Zl(e, {
|
|
4042
|
+
target: t = document.body
|
|
4043
|
+
} = {}) {
|
|
4044
|
+
const r = document.createElement("textarea"), n = document.activeElement;
|
|
4045
|
+
r.value = e, r.setAttribute("readonly", ""), r.style.contain = "strict", r.style.position = "absolute", r.style.left = "-9999px", r.style.fontSize = "12pt";
|
|
4046
|
+
const o = document.getSelection();
|
|
4047
|
+
let s;
|
|
4048
|
+
o && o.rangeCount > 0 && (s = o.getRangeAt(0)), t.append(r), r.select(), r.selectionStart = 0, r.selectionEnd = e.length;
|
|
4049
|
+
let a = !1;
|
|
4050
|
+
try {
|
|
4051
|
+
a = document.execCommand("copy");
|
|
4052
|
+
} catch (i) {
|
|
4053
|
+
throw new Error(i);
|
|
4054
|
+
}
|
|
4055
|
+
return r.remove(), s && o && (o.removeAllRanges(), o.addRange(s)), n && n.focus(), a;
|
|
4056
|
+
}
|
|
4057
|
+
function Ql() {
|
|
4058
|
+
function e(t) {
|
|
4059
|
+
try {
|
|
4060
|
+
return Zl(t);
|
|
4061
|
+
} catch {
|
|
4062
|
+
return !1;
|
|
4063
|
+
}
|
|
4064
|
+
}
|
|
4065
|
+
return { copy: e };
|
|
4066
|
+
}
|
|
4067
|
+
const eu = "_container__toolbar_1yx5k_13", tu = "_container__table_1yx5k_27", ru = "_container__pagination_1yx5k_35", ot = {
|
|
3991
4068
|
"main-container": "_main-container_1yx5k_1",
|
|
3992
|
-
container__toolbar:
|
|
3993
|
-
container__table:
|
|
3994
|
-
container__pagination:
|
|
3995
|
-
},
|
|
3996
|
-
const { columns: o } =
|
|
4069
|
+
container__toolbar: eu,
|
|
4070
|
+
container__table: tu,
|
|
4071
|
+
container__pagination: ru
|
|
4072
|
+
}, nu = pe(({ tableProps: e, searchFormRef: t, fullHeight: r }, n) => {
|
|
4073
|
+
const { columns: o } = Vl(e), s = j(null), {
|
|
3997
4074
|
table: a,
|
|
3998
4075
|
pagination: i,
|
|
3999
4076
|
firstGetTableData: l,
|
|
@@ -4002,20 +4079,20 @@ const An = () => {
|
|
|
4002
4079
|
resetData: g,
|
|
4003
4080
|
resetAllData: d,
|
|
4004
4081
|
reloadData: b
|
|
4005
|
-
} =
|
|
4082
|
+
} = Gl(e, t), { rowSelection: p } = Xl(e, a), { divRef: v, scroll: _ } = ql(e, r), { getTopToolbarBindProps: R } = Kl(e, a), T = () => {
|
|
4006
4083
|
const {
|
|
4007
|
-
autoRequest:
|
|
4008
|
-
api:
|
|
4084
|
+
autoRequest: F,
|
|
4085
|
+
api: O,
|
|
4009
4086
|
formatDataSource: I,
|
|
4010
4087
|
autoPagination: U,
|
|
4011
|
-
columns:
|
|
4088
|
+
columns: G,
|
|
4012
4089
|
scroll: x,
|
|
4013
|
-
pagination:
|
|
4090
|
+
pagination: M,
|
|
4014
4091
|
rowSelection: w,
|
|
4015
|
-
onChange:
|
|
4016
|
-
...
|
|
4092
|
+
onChange: C,
|
|
4093
|
+
...S
|
|
4017
4094
|
} = e.table;
|
|
4018
|
-
return
|
|
4095
|
+
return S;
|
|
4019
4096
|
};
|
|
4020
4097
|
return l(), Se(n, () => ({
|
|
4021
4098
|
resetData: g,
|
|
@@ -4024,7 +4101,7 @@ const An = () => {
|
|
|
4024
4101
|
/** 合并一下antd中table实例的方法 */
|
|
4025
4102
|
...s.current
|
|
4026
4103
|
})), console.log("render Table"), /* @__PURE__ */ h.jsxs("div", { className: r ? ot["main-container"] : void 0, children: [
|
|
4027
|
-
/* @__PURE__ */ h.jsx("div", { className: ot.container__toolbar, children: /* @__PURE__ */ h.jsx(
|
|
4104
|
+
/* @__PURE__ */ h.jsx("div", { className: ot.container__toolbar, children: /* @__PURE__ */ h.jsx(Qt, { ...R() }) }),
|
|
4028
4105
|
/* @__PURE__ */ h.jsx(
|
|
4029
4106
|
"div",
|
|
4030
4107
|
{
|
|
@@ -4034,7 +4111,7 @@ const An = () => {
|
|
|
4034
4111
|
io,
|
|
4035
4112
|
{
|
|
4036
4113
|
ref: s,
|
|
4037
|
-
...
|
|
4114
|
+
...T(),
|
|
4038
4115
|
loading: a.model.loading,
|
|
4039
4116
|
columns: o,
|
|
4040
4117
|
dataSource: a.model.dataSource,
|
|
@@ -4055,27 +4132,27 @@ const An = () => {
|
|
|
4055
4132
|
}
|
|
4056
4133
|
) }) : null
|
|
4057
4134
|
] });
|
|
4058
|
-
}),
|
|
4135
|
+
}), Vr = {
|
|
4059
4136
|
"xph-table-full-wrapper": "_xph-table-full-wrapper_mdv0g_1",
|
|
4060
4137
|
"full-wrapper__table": "_full-wrapper__table_mdv0g_13"
|
|
4061
|
-
},
|
|
4062
|
-
const { tableProps: r } =
|
|
4138
|
+
}, ou = (e, t) => {
|
|
4139
|
+
const { tableProps: r } = Ul(e), n = j(null), { searchFormRef: o, searchFormProps: s } = Fl(r), { crudFormDialogRef: a, crudFormProps: i } = Jl(r);
|
|
4063
4140
|
let { fullHeight: l } = r.table;
|
|
4064
4141
|
const { virtual: u } = r.table;
|
|
4065
4142
|
return u && (l = !0), Se(t, () => ({
|
|
4066
4143
|
...n.current,
|
|
4067
4144
|
...a.current
|
|
4068
|
-
})), /* @__PURE__ */ h.jsxs("div", { className: l ?
|
|
4069
|
-
/* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(
|
|
4145
|
+
})), /* @__PURE__ */ h.jsxs("div", { className: l ? Vr["xph-table-full-wrapper"] : void 0, children: [
|
|
4146
|
+
s ? /* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(
|
|
4070
4147
|
Sl,
|
|
4071
4148
|
{
|
|
4072
4149
|
ref: o,
|
|
4073
4150
|
tableRef: n,
|
|
4074
4151
|
...s
|
|
4075
4152
|
}
|
|
4076
|
-
) }),
|
|
4077
|
-
/* @__PURE__ */ h.jsx("div", { className: l ?
|
|
4078
|
-
|
|
4153
|
+
) }) : null,
|
|
4154
|
+
/* @__PURE__ */ h.jsx("div", { className: l ? Vr["full-wrapper__table"] : void 0, children: /* @__PURE__ */ h.jsx(
|
|
4155
|
+
nu,
|
|
4079
4156
|
{
|
|
4080
4157
|
ref: n,
|
|
4081
4158
|
searchFormRef: o,
|
|
@@ -4085,26 +4162,26 @@ const An = () => {
|
|
|
4085
4162
|
) }),
|
|
4086
4163
|
i ? /* @__PURE__ */ h.jsx(jl, { ref: a, ...i }) : null
|
|
4087
4164
|
] });
|
|
4088
|
-
},
|
|
4165
|
+
}, pu = pe(ou);
|
|
4089
4166
|
export {
|
|
4090
|
-
|
|
4091
|
-
|
|
4167
|
+
Qt as XphActions,
|
|
4168
|
+
du as XphAuth,
|
|
4092
4169
|
jl as XphCrudFormDialog,
|
|
4093
4170
|
Hc as XphDialog,
|
|
4094
|
-
|
|
4171
|
+
uu as XphExtendCompPropsProvider,
|
|
4095
4172
|
Fn as XphForm,
|
|
4096
4173
|
Bc as XphPortal,
|
|
4097
|
-
|
|
4098
|
-
|
|
4174
|
+
pu as XphTable,
|
|
4175
|
+
fr as buildUUID,
|
|
4099
4176
|
vo as getValueByPath,
|
|
4100
|
-
|
|
4177
|
+
pr as getValuesByPathObj,
|
|
4101
4178
|
Al as isChildrenColumnProps,
|
|
4102
|
-
|
|
4179
|
+
wn as isComponentActionItemProps,
|
|
4103
4180
|
El as isComponentColumnProps,
|
|
4104
|
-
|
|
4181
|
+
er as isComponentFormItemProps,
|
|
4105
4182
|
cc as isRenderActionItemProps,
|
|
4106
|
-
|
|
4183
|
+
tr as isRenderFormItemProps,
|
|
4107
4184
|
fc as useAsyncState,
|
|
4108
4185
|
Ze as useXphExtendCompProps,
|
|
4109
|
-
|
|
4186
|
+
fu as useXphForm
|
|
4110
4187
|
};
|