xph-crud 0.1.9 → 0.2.1
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 +773 -717
- package/dist/index.umd.cjs +10 -10
- package/dist/types/common/src/componnets/actions/hooks/useActionItems.d.ts +1 -1
- package/dist/types/common/src/componnets/actions/hooks/useActionsProps.d.ts +3 -0
- package/dist/types/common/src/componnets/actions/hooks/useExtendActions.d.ts +1 -0
- package/dist/types/common/src/componnets/actions/types/actionItem.d.ts +9 -1
- package/dist/types/common/src/componnets/auth/auth.d.ts +4 -0
- package/dist/types/common/src/componnets/auth/hooks/index.d.ts +4 -0
- package/dist/types/common/src/componnets/auth/hooks/useAuthProps.d.ts +5 -0
- package/dist/types/common/src/componnets/auth/hooks/useExtendAuth.d.ts +4 -0
- package/dist/types/common/src/componnets/auth/types/index.d.ts +6 -0
- package/dist/types/common/src/componnets/index.d.ts +3 -1
- package/dist/types/common/src/hooks/useExtendCompProps.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Te, { useCallback as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { CaretDownOutlined as
|
|
1
|
+
import Te, { useCallback as be, createElement as Kn, createContext as Jn, useContext as Zn, useState as X, useRef as D, useEffect as q, Fragment as Vr, forwardRef as fe, useImperativeHandle as Se, useMemo as Ge, memo as Ur } from "react";
|
|
2
|
+
import { Button as ae, Dropdown as qr, theme as Xe, Space as Qn, Spin as Yr, Form as et, Select as Gr, TreeSelect as Xr, Transfer as Kr, AutoComplete as Jr, Upload as Ot, message as jt, Input as Vt, InputNumber as eo, Switch as to, Radio as Zr, Checkbox as Qr, Cascader as ro, TimePicker as no, DatePicker as ct, Col as oo, Row as so, Table as io, Pagination as ao } from "antd";
|
|
3
|
+
import { CaretDownOutlined as en, 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
|
|
5
|
+
import tt from "dayjs";
|
|
6
6
|
const $t = [];
|
|
7
7
|
for (let e = 0; e <= 15; e++)
|
|
8
8
|
$t[e] = e.toString(16);
|
|
@@ -65,7 +65,7 @@ var gr;
|
|
|
65
65
|
function _o() {
|
|
66
66
|
return gr || (gr = 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"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), p = Symbol.iterator, v = "@@iterator";
|
|
68
|
-
function
|
|
68
|
+
function w(c) {
|
|
69
69
|
if (c === null || typeof c != "object")
|
|
70
70
|
return null;
|
|
71
71
|
var m = p && c[p] || c[v];
|
|
@@ -89,14 +89,14 @@ function _o() {
|
|
|
89
89
|
H.unshift("Warning: " + m), Function.prototype.apply.call(console[c], console, H);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
var z = !1, I = !1, Y = !1, $ = !1, C = !1,
|
|
93
|
-
|
|
92
|
+
var z = !1, I = !1, Y = !1, $ = !1, C = !1, x;
|
|
93
|
+
x = Symbol.for("react.module.reference");
|
|
94
94
|
function _(c) {
|
|
95
95
|
return !!(typeof c == "string" || typeof c == "function" || c === n || c === s || C || c === o || c === u || c === d || $ || c === b || z || I || Y || typeof c == "object" && c !== null && (c.$$typeof === f || c.$$typeof === g || c.$$typeof === i || c.$$typeof === a || 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 === x || c.getModuleId !== void 0));
|
|
100
100
|
}
|
|
101
101
|
function S(c, m, y) {
|
|
102
102
|
var P = c.displayName;
|
|
@@ -153,14 +153,14 @@ function _o() {
|
|
|
153
153
|
}
|
|
154
154
|
return null;
|
|
155
155
|
}
|
|
156
|
-
var
|
|
156
|
+
var A = Object.assign, L = 0, Q, te, le, se, N, W, V;
|
|
157
157
|
function G() {
|
|
158
158
|
}
|
|
159
159
|
G.__reactDisabledLog = !0;
|
|
160
160
|
function pt() {
|
|
161
161
|
{
|
|
162
162
|
if (L === 0) {
|
|
163
|
-
Q = console.log, te = console.info, le = console.warn,
|
|
163
|
+
Q = console.log, te = console.info, le = console.warn, se = console.error, N = console.group, W = console.groupCollapsed, V = console.groupEnd;
|
|
164
164
|
var c = {
|
|
165
165
|
configurable: !0,
|
|
166
166
|
enumerable: !0,
|
|
@@ -189,25 +189,25 @@ function _o() {
|
|
|
189
189
|
writable: !0
|
|
190
190
|
};
|
|
191
191
|
Object.defineProperties(console, {
|
|
192
|
-
log:
|
|
192
|
+
log: A({}, c, {
|
|
193
193
|
value: Q
|
|
194
194
|
}),
|
|
195
|
-
info:
|
|
195
|
+
info: A({}, c, {
|
|
196
196
|
value: te
|
|
197
197
|
}),
|
|
198
|
-
warn:
|
|
198
|
+
warn: A({}, c, {
|
|
199
199
|
value: le
|
|
200
200
|
}),
|
|
201
|
-
error:
|
|
202
|
-
value:
|
|
201
|
+
error: A({}, c, {
|
|
202
|
+
value: se
|
|
203
203
|
}),
|
|
204
|
-
group:
|
|
204
|
+
group: A({}, c, {
|
|
205
205
|
value: N
|
|
206
206
|
}),
|
|
207
|
-
groupCollapsed:
|
|
207
|
+
groupCollapsed: A({}, c, {
|
|
208
208
|
value: W
|
|
209
209
|
}),
|
|
210
|
-
groupEnd:
|
|
210
|
+
groupEnd: A({}, c, {
|
|
211
211
|
value: V
|
|
212
212
|
})
|
|
213
213
|
});
|
|
@@ -216,7 +216,7 @@ function _o() {
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
var ke = R.ReactCurrentDispatcher, Ie;
|
|
219
|
-
function
|
|
219
|
+
function he(c, m, y) {
|
|
220
220
|
{
|
|
221
221
|
if (Ie === void 0)
|
|
222
222
|
try {
|
|
@@ -229,13 +229,13 @@ function _o() {
|
|
|
229
229
|
` + Ie + c;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
var
|
|
232
|
+
var De = !1, Pe;
|
|
233
233
|
{
|
|
234
234
|
var ht = typeof WeakMap == "function" ? WeakMap : Map;
|
|
235
235
|
Pe = new ht();
|
|
236
236
|
}
|
|
237
237
|
function Le(c, m) {
|
|
238
|
-
if (!c ||
|
|
238
|
+
if (!c || De)
|
|
239
239
|
return "";
|
|
240
240
|
{
|
|
241
241
|
var y = Pe.get(c);
|
|
@@ -243,7 +243,7 @@ function _o() {
|
|
|
243
243
|
return y;
|
|
244
244
|
}
|
|
245
245
|
var P;
|
|
246
|
-
|
|
246
|
+
De = !0;
|
|
247
247
|
var k = Error.prepareStackTrace;
|
|
248
248
|
Error.prepareStackTrace = void 0;
|
|
249
249
|
var H;
|
|
@@ -282,27 +282,27 @@ function _o() {
|
|
|
282
282
|
}
|
|
283
283
|
} catch (re) {
|
|
284
284
|
if (re && P && typeof re.stack == "string") {
|
|
285
|
-
for (var
|
|
285
|
+
for (var O = re.stack.split(`
|
|
286
286
|
`), ee = P.stack.split(`
|
|
287
|
-
`), K =
|
|
287
|
+
`), K = O.length - 1, J = ee.length - 1; K >= 1 && J >= 0 && O[K] !== ee[J]; )
|
|
288
288
|
J--;
|
|
289
289
|
for (; K >= 1 && J >= 0; K--, J--)
|
|
290
|
-
if (
|
|
290
|
+
if (O[K] !== ee[J]) {
|
|
291
291
|
if (K !== 1 || J !== 1)
|
|
292
292
|
do
|
|
293
|
-
if (K--, J--, J < 0 ||
|
|
294
|
-
var
|
|
295
|
-
` +
|
|
296
|
-
return c.displayName &&
|
|
293
|
+
if (K--, J--, J < 0 || O[K] !== ee[J]) {
|
|
294
|
+
var ie = `
|
|
295
|
+
` + O[K].replace(" at new ", " at ");
|
|
296
|
+
return c.displayName && ie.includes("<anonymous>") && (ie = ie.replace("<anonymous>", c.displayName)), typeof c == "function" && Pe.set(c, ie), ie;
|
|
297
297
|
}
|
|
298
298
|
while (K >= 1 && J >= 0);
|
|
299
299
|
break;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
} finally {
|
|
303
|
-
|
|
303
|
+
De = !1, ke.current = H, gt(), Error.prepareStackTrace = k;
|
|
304
304
|
}
|
|
305
|
-
var ze = c ? c.displayName || c.name : "", je = ze ?
|
|
305
|
+
var ze = c ? c.displayName || c.name : "", je = ze ? he(ze) : "";
|
|
306
306
|
return typeof c == "function" && Pe.set(c, je), je;
|
|
307
307
|
}
|
|
308
308
|
function mt(c, m, y) {
|
|
@@ -312,59 +312,59 @@ function _o() {
|
|
|
312
312
|
var m = c.prototype;
|
|
313
313
|
return !!(m && m.isReactComponent);
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function we(c, m, y) {
|
|
316
316
|
if (c == null)
|
|
317
317
|
return "";
|
|
318
318
|
if (typeof c == "function")
|
|
319
319
|
return Le(c, bt(c));
|
|
320
320
|
if (typeof c == "string")
|
|
321
|
-
return
|
|
321
|
+
return he(c);
|
|
322
322
|
switch (c) {
|
|
323
323
|
case u:
|
|
324
|
-
return
|
|
324
|
+
return he("Suspense");
|
|
325
325
|
case d:
|
|
326
|
-
return
|
|
326
|
+
return he("SuspenseList");
|
|
327
327
|
}
|
|
328
328
|
if (typeof c == "object")
|
|
329
329
|
switch (c.$$typeof) {
|
|
330
330
|
case l:
|
|
331
331
|
return mt(c.render);
|
|
332
332
|
case g:
|
|
333
|
-
return
|
|
333
|
+
return we(c.type, m, y);
|
|
334
334
|
case f: {
|
|
335
335
|
var P = c, k = P._payload, H = P._init;
|
|
336
336
|
try {
|
|
337
|
-
return
|
|
337
|
+
return we(H(k), m, y);
|
|
338
338
|
} catch {
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
return "";
|
|
343
343
|
}
|
|
344
|
-
var Re = Object.prototype.hasOwnProperty, vt = {},
|
|
344
|
+
var Re = Object.prototype.hasOwnProperty, vt = {}, Oe = R.ReactDebugCurrentFrame;
|
|
345
345
|
function $e(c) {
|
|
346
346
|
if (c) {
|
|
347
|
-
var m = c._owner, y =
|
|
348
|
-
|
|
347
|
+
var m = c._owner, y = we(c.type, c._source, m ? m.type : null);
|
|
348
|
+
Oe.setExtraStackFrame(y);
|
|
349
349
|
} else
|
|
350
|
-
|
|
350
|
+
Oe.setExtraStackFrame(null);
|
|
351
351
|
}
|
|
352
352
|
function yt(c, m, y, P, k) {
|
|
353
353
|
{
|
|
354
354
|
var H = Function.call.bind(Re);
|
|
355
355
|
for (var M in c)
|
|
356
356
|
if (H(c, M)) {
|
|
357
|
-
var
|
|
357
|
+
var O = void 0;
|
|
358
358
|
try {
|
|
359
359
|
if (typeof c[M] != "function") {
|
|
360
360
|
var ee = Error((P || "React class") + ": " + y + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
361
361
|
throw ee.name = "Invariant Violation", ee;
|
|
362
362
|
}
|
|
363
|
-
|
|
363
|
+
O = c[M](m, M, P, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
364
364
|
} catch (K) {
|
|
365
|
-
|
|
365
|
+
O = K;
|
|
366
366
|
}
|
|
367
|
-
|
|
367
|
+
O && !(O instanceof Error) && ($e(k), 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, M, typeof O), $e(null)), O instanceof Error && !(O.message in vt) && (vt[O.message] = !0, $e(k), T("Failed %s type: %s", y, O.message), $e(null));
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
}
|
|
@@ -372,13 +372,13 @@ function _o() {
|
|
|
372
372
|
function Ne(c) {
|
|
373
373
|
return _t(c);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function wt(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 xt(c) {
|
|
382
382
|
try {
|
|
383
383
|
return er(c), !1;
|
|
384
384
|
} catch {
|
|
@@ -389,17 +389,17 @@ function _o() {
|
|
|
389
389
|
return "" + c;
|
|
390
390
|
}
|
|
391
391
|
function tr(c) {
|
|
392
|
-
if (
|
|
393
|
-
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
392
|
+
if (xt(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.", wt(c)), er(c);
|
|
394
394
|
}
|
|
395
|
-
var We = R.ReactCurrentOwner,
|
|
395
|
+
var We = R.ReactCurrentOwner, Dn = {
|
|
396
396
|
key: !0,
|
|
397
397
|
ref: !0,
|
|
398
398
|
__self: !0,
|
|
399
399
|
__source: !0
|
|
400
400
|
}, rr, nr, Ct;
|
|
401
401
|
Ct = {};
|
|
402
|
-
function
|
|
402
|
+
function On(c) {
|
|
403
403
|
if (Re.call(c, "ref")) {
|
|
404
404
|
var m = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
405
405
|
if (m && m.isReactWarning)
|
|
@@ -407,7 +407,7 @@ function _o() {
|
|
|
407
407
|
}
|
|
408
408
|
return c.ref !== void 0;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function $n(c) {
|
|
411
411
|
if (Re.call(c, "key")) {
|
|
412
412
|
var m = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
413
413
|
if (m && m.isReactWarning)
|
|
@@ -415,13 +415,13 @@ function _o() {
|
|
|
415
415
|
}
|
|
416
416
|
return c.key !== void 0;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function Mn(c, m) {
|
|
419
419
|
if (typeof c.ref == "string" && We.current && m && We.current.stateNode !== m) {
|
|
420
420
|
var y = F(We.current.type);
|
|
421
421
|
Ct[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', F(We.current.type), c.ref), Ct[y] = !0);
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function zn(c, m) {
|
|
425
425
|
{
|
|
426
426
|
var y = function() {
|
|
427
427
|
rr || (rr = !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));
|
|
@@ -432,7 +432,7 @@ function _o() {
|
|
|
432
432
|
});
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function kn(c, m) {
|
|
436
436
|
{
|
|
437
437
|
var y = function() {
|
|
438
438
|
nr || (nr = !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));
|
|
@@ -443,8 +443,8 @@ function _o() {
|
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
var
|
|
447
|
-
var
|
|
446
|
+
var In = function(c, m, y, P, k, H, M) {
|
|
447
|
+
var O = {
|
|
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
|
|
@@ -455,45 +455,45 @@ function _o() {
|
|
|
455
455
|
// Record the component responsible for creating this element.
|
|
456
456
|
_owner: H
|
|
457
457
|
};
|
|
458
|
-
return
|
|
458
|
+
return O._store = {}, Object.defineProperty(O._store, "validated", {
|
|
459
459
|
configurable: !1,
|
|
460
460
|
enumerable: !1,
|
|
461
461
|
writable: !0,
|
|
462
462
|
value: !1
|
|
463
|
-
}), Object.defineProperty(
|
|
463
|
+
}), Object.defineProperty(O, "_self", {
|
|
464
464
|
configurable: !1,
|
|
465
465
|
enumerable: !1,
|
|
466
466
|
writable: !1,
|
|
467
467
|
value: P
|
|
468
|
-
}), Object.defineProperty(
|
|
468
|
+
}), Object.defineProperty(O, "_source", {
|
|
469
469
|
configurable: !1,
|
|
470
470
|
enumerable: !1,
|
|
471
471
|
writable: !1,
|
|
472
472
|
value: k
|
|
473
|
-
}), Object.freeze && (Object.freeze(
|
|
473
|
+
}), Object.freeze && (Object.freeze(O.props), Object.freeze(O)), O;
|
|
474
474
|
};
|
|
475
|
-
function
|
|
475
|
+
function Ln(c, m, y, P, k) {
|
|
476
476
|
{
|
|
477
|
-
var H, M = {},
|
|
478
|
-
y !== void 0 && (tr(y),
|
|
477
|
+
var H, M = {}, O = null, ee = null;
|
|
478
|
+
y !== void 0 && (tr(y), O = "" + y), $n(m) && (tr(m.key), O = "" + m.key), On(m) && (ee = m.ref, Mn(m, k));
|
|
479
479
|
for (H in m)
|
|
480
|
-
Re.call(m, H) && !
|
|
480
|
+
Re.call(m, H) && !Dn.hasOwnProperty(H) && (M[H] = m[H]);
|
|
481
481
|
if (c && c.defaultProps) {
|
|
482
482
|
var K = c.defaultProps;
|
|
483
483
|
for (H in K)
|
|
484
484
|
M[H] === void 0 && (M[H] = K[H]);
|
|
485
485
|
}
|
|
486
|
-
if (
|
|
486
|
+
if (O || ee) {
|
|
487
487
|
var J = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
488
|
-
|
|
488
|
+
O && zn(M, J), ee && kn(M, J);
|
|
489
489
|
}
|
|
490
|
-
return
|
|
490
|
+
return In(c, O, ee, k, P, We.current, M);
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
var Tt = R.ReactCurrentOwner, or = R.ReactDebugCurrentFrame;
|
|
494
494
|
function Me(c) {
|
|
495
495
|
if (c) {
|
|
496
|
-
var m = c._owner, y =
|
|
496
|
+
var m = c._owner, y = we(c.type, c._source, m ? m.type : null);
|
|
497
497
|
or.setExtraStackFrame(y);
|
|
498
498
|
} else
|
|
499
499
|
or.setExtraStackFrame(null);
|
|
@@ -515,11 +515,11 @@ Check the render method of \`` + c + "`.";
|
|
|
515
515
|
return "";
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function Nn(c) {
|
|
519
519
|
return "";
|
|
520
520
|
}
|
|
521
521
|
var ir = {};
|
|
522
|
-
function
|
|
522
|
+
function Wn(c) {
|
|
523
523
|
{
|
|
524
524
|
var m = sr();
|
|
525
525
|
if (!m) {
|
|
@@ -536,7 +536,7 @@ Check the top-level render call using <` + y + ">.");
|
|
|
536
536
|
if (!c._store || c._store.validated || c.key != null)
|
|
537
537
|
return;
|
|
538
538
|
c._store.validated = !0;
|
|
539
|
-
var y =
|
|
539
|
+
var y = Wn(m);
|
|
540
540
|
if (ir[y])
|
|
541
541
|
return;
|
|
542
542
|
ir[y] = !0;
|
|
@@ -556,14 +556,14 @@ Check the top-level render call using <` + y + ">.");
|
|
|
556
556
|
else if (Pt(c))
|
|
557
557
|
c._store && (c._store.validated = !0);
|
|
558
558
|
else if (c) {
|
|
559
|
-
var k =
|
|
559
|
+
var k = w(c);
|
|
560
560
|
if (typeof k == "function" && k !== c.entries)
|
|
561
561
|
for (var H = k.call(c), M; !(M = H.next()).done; )
|
|
562
562
|
Pt(M.value) && ar(M.value, m);
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Bn(c) {
|
|
567
567
|
{
|
|
568
568
|
var m = c.type;
|
|
569
569
|
if (m == null || typeof m == "string")
|
|
@@ -588,7 +588,7 @@ Check the top-level render call using <` + y + ">.");
|
|
|
588
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
|
-
function
|
|
591
|
+
function Hn(c) {
|
|
592
592
|
{
|
|
593
593
|
for (var m = Object.keys(c.props), y = 0; y < m.length; y++) {
|
|
594
594
|
var P = m[y];
|
|
@@ -605,60 +605,60 @@ Check the top-level render call using <` + y + ">.");
|
|
|
605
605
|
{
|
|
606
606
|
var M = _(c);
|
|
607
607
|
if (!M) {
|
|
608
|
-
var
|
|
609
|
-
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (
|
|
610
|
-
var ee =
|
|
611
|
-
ee ?
|
|
608
|
+
var O = "";
|
|
609
|
+
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (O += " 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 ee = Nn();
|
|
611
|
+
ee ? O += ee : O += sr();
|
|
612
612
|
var K;
|
|
613
|
-
c === null ? K = "null" : Ne(c) ? K = "array" : c !== void 0 && c.$$typeof === t ? (K = "<" + (F(c.type) || "Unknown") + " />",
|
|
613
|
+
c === null ? K = "null" : Ne(c) ? K = "array" : c !== void 0 && c.$$typeof === t ? (K = "<" + (F(c.type) || "Unknown") + " />", O = " Did you accidentally export a JSX literal instead of a component?") : K = 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", K, O);
|
|
614
614
|
}
|
|
615
|
-
var J =
|
|
615
|
+
var J = Ln(c, m, y, k, H);
|
|
616
616
|
if (J == null)
|
|
617
617
|
return J;
|
|
618
618
|
if (M) {
|
|
619
|
-
var
|
|
620
|
-
if (
|
|
619
|
+
var ie = m.children;
|
|
620
|
+
if (ie !== void 0)
|
|
621
621
|
if (P)
|
|
622
|
-
if (Ne(
|
|
623
|
-
for (var ze = 0; ze <
|
|
624
|
-
cr(
|
|
625
|
-
Object.freeze && Object.freeze(
|
|
622
|
+
if (Ne(ie)) {
|
|
623
|
+
for (var ze = 0; ze < ie.length; ze++)
|
|
624
|
+
cr(ie[ze], 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
|
-
cr(
|
|
629
|
+
cr(ie, c);
|
|
630
630
|
}
|
|
631
631
|
if (Re.call(m, "key")) {
|
|
632
|
-
var je = F(c), re = Object.keys(m).filter(function(
|
|
633
|
-
return
|
|
632
|
+
var je = F(c), re = Object.keys(m).filter(function(Xn) {
|
|
633
|
+
return Xn !== "key";
|
|
634
634
|
}), Rt = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
635
635
|
if (!lr[je + Rt]) {
|
|
636
|
-
var
|
|
636
|
+
var Gn = 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} />`, Rt, je,
|
|
642
|
+
<%s key={someKey} {...props} />`, Rt, je, Gn, je), lr[je + Rt] = !0;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
return c === n ?
|
|
645
|
+
return c === n ? Hn(J) : Bn(J), J;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Vn(c, m, y) {
|
|
649
649
|
return ur(c, m, y, !0);
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function Un(c, m, y) {
|
|
652
652
|
return ur(c, m, y, !1);
|
|
653
653
|
}
|
|
654
|
-
var
|
|
655
|
-
He.Fragment = n, He.jsx =
|
|
654
|
+
var qn = Un, Yn = Vn;
|
|
655
|
+
He.Fragment = n, He.jsx = qn, He.jsxs = Yn;
|
|
656
656
|
}()), He;
|
|
657
657
|
}
|
|
658
658
|
process.env.NODE_ENV === "production" ? Mt.exports = yo() : Mt.exports = _o();
|
|
659
|
-
var h = Mt.exports,
|
|
659
|
+
var h = Mt.exports, tn = typeof global == "object" && global && global.Object === Object && global, wo = typeof self == "object" && self && self.Object === Object && self, pe = tn || wo || Function("return this")(), Ce = pe.Symbol, rn = Object.prototype, xo = rn.hasOwnProperty, Co = rn.toString, Ve = Ce ? Ce.toStringTag : void 0;
|
|
660
660
|
function To(e) {
|
|
661
|
-
var t =
|
|
661
|
+
var t = xo.call(e, Ve), r = e[Ve];
|
|
662
662
|
try {
|
|
663
663
|
e[Ve] = void 0;
|
|
664
664
|
var n = !0;
|
|
@@ -671,48 +671,48 @@ 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]", hr =
|
|
675
|
-
function
|
|
674
|
+
var jo = "[object Null]", Fo = "[object Undefined]", hr = Ce ? Ce.toStringTag : void 0;
|
|
675
|
+
function ge(e) {
|
|
676
676
|
return e == null ? e === void 0 ? Fo : jo : hr && hr 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 Ut(e) {
|
|
683
|
-
return typeof e == "symbol" ||
|
|
683
|
+
return typeof e == "symbol" || de(e) && ge(e) == Eo;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
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
|
|
691
|
-
function
|
|
690
|
+
var oe = Array.isArray, Do = 1 / 0, mr = Ce ? Ce.prototype : void 0, br = mr ? mr.toString : void 0;
|
|
691
|
+
function nn(e) {
|
|
692
692
|
if (typeof e == "string")
|
|
693
693
|
return e;
|
|
694
|
-
if (
|
|
695
|
-
return
|
|
694
|
+
if (oe(e))
|
|
695
|
+
return Ao(e, nn) + "";
|
|
696
696
|
if (Ut(e))
|
|
697
697
|
return br ? br.call(e) : "";
|
|
698
698
|
var t = e + "";
|
|
699
|
-
return t == "0" && 1 / e == -
|
|
699
|
+
return t == "0" && 1 / e == -Do ? "-0" : t;
|
|
700
700
|
}
|
|
701
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 on(e) {
|
|
706
706
|
return e;
|
|
707
707
|
}
|
|
708
|
-
var
|
|
708
|
+
var Oo = "[object AsyncFunction]", $o = "[object Function]", Mo = "[object GeneratorFunction]", zo = "[object Proxy]";
|
|
709
709
|
function Z(e) {
|
|
710
710
|
if (!ce(e))
|
|
711
711
|
return !1;
|
|
712
|
-
var t =
|
|
713
|
-
return t == $o || t == Mo || t ==
|
|
712
|
+
var t = ge(e);
|
|
713
|
+
return t == $o || t == Mo || t == Oo || t == zo;
|
|
714
714
|
}
|
|
715
|
-
var Ft =
|
|
715
|
+
var Ft = pe["__core-js_shared__"], vr = function() {
|
|
716
716
|
var e = /[^.]+$/.exec(Ft && Ft.keys && Ft.keys.IE_PROTO || "");
|
|
717
717
|
return e ? "Symbol(src)_1." + e : "";
|
|
718
718
|
}();
|
|
@@ -745,11 +745,11 @@ function Yo(e) {
|
|
|
745
745
|
function Go(e, t) {
|
|
746
746
|
return e == null ? void 0 : e[t];
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function Ae(e, t) {
|
|
749
749
|
var r = Go(e, t);
|
|
750
750
|
return Yo(r) ? r : void 0;
|
|
751
751
|
}
|
|
752
|
-
var zt =
|
|
752
|
+
var zt = Ae(pe, "WeakMap"), yr = Object.create, Xo = /* @__PURE__ */ function() {
|
|
753
753
|
function e() {
|
|
754
754
|
}
|
|
755
755
|
return function(t) {
|
|
@@ -799,46 +799,46 @@ function rs(e) {
|
|
|
799
799
|
return e;
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
|
-
var
|
|
802
|
+
var rt = function() {
|
|
803
803
|
try {
|
|
804
|
-
var e =
|
|
804
|
+
var e = Ae(Object, "defineProperty");
|
|
805
805
|
return e({}, "", {}), e;
|
|
806
806
|
} catch {
|
|
807
807
|
}
|
|
808
|
-
}(), ns =
|
|
809
|
-
return
|
|
808
|
+
}(), ns = rt ? function(e, t) {
|
|
809
|
+
return rt(e, "toString", {
|
|
810
810
|
configurable: !0,
|
|
811
811
|
enumerable: !1,
|
|
812
812
|
value: rs(t),
|
|
813
813
|
writable: !0
|
|
814
814
|
});
|
|
815
|
-
} :
|
|
815
|
+
} : on, os = ts(ns), ss = 9007199254740991, is = /^(?:0|[1-9]\d*)$/;
|
|
816
816
|
function qt(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 Yt(e, t, r) {
|
|
821
|
-
t == "__proto__" &&
|
|
821
|
+
t == "__proto__" && rt ? rt(e, t, {
|
|
822
822
|
configurable: !0,
|
|
823
823
|
enumerable: !0,
|
|
824
824
|
value: r,
|
|
825
825
|
writable: !0
|
|
826
826
|
}) : e[t] = r;
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function Ke(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 sn(e, t, r) {
|
|
833
833
|
var n = e[t];
|
|
834
|
-
(!(cs.call(e, t) &&
|
|
834
|
+
(!(cs.call(e, t) && Ke(n, r)) || r === void 0 && !(t in e)) && Yt(e, t, r);
|
|
835
835
|
}
|
|
836
836
|
function ls(e, t, r, n) {
|
|
837
837
|
var o = !r;
|
|
838
838
|
r || (r = {});
|
|
839
839
|
for (var s = -1, i = t.length; ++s < i; ) {
|
|
840
840
|
var a = t[s], l = void 0;
|
|
841
|
-
l === void 0 && (l = e[a]), o ? Yt(r, a, l) :
|
|
841
|
+
l === void 0 && (l = e[a]), o ? Yt(r, a, l) : sn(r, a, l);
|
|
842
842
|
}
|
|
843
843
|
return r;
|
|
844
844
|
}
|
|
@@ -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, on), e + "");
|
|
858
858
|
}
|
|
859
859
|
var fs = 9007199254740991;
|
|
860
|
-
function
|
|
860
|
+
function an(e) {
|
|
861
861
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= fs;
|
|
862
862
|
}
|
|
863
|
-
function
|
|
864
|
-
return e != null &&
|
|
863
|
+
function lt(e) {
|
|
864
|
+
return e != null && an(e.length) && !Z(e);
|
|
865
865
|
}
|
|
866
866
|
function ps(e, t, r) {
|
|
867
867
|
if (!ce(r))
|
|
868
868
|
return !1;
|
|
869
869
|
var n = typeof t;
|
|
870
|
-
return (n == "number" ?
|
|
870
|
+
return (n == "number" ? lt(r) && qt(t, r.length) : n == "string" && t in r) ? Ke(r[t], e) : !1;
|
|
871
871
|
}
|
|
872
872
|
function gs(e) {
|
|
873
873
|
return ds(function(t, r) {
|
|
@@ -890,37 +890,37 @@ function ms(e, t) {
|
|
|
890
890
|
return n;
|
|
891
891
|
}
|
|
892
892
|
var bs = "[object Arguments]";
|
|
893
|
-
function
|
|
894
|
-
return
|
|
893
|
+
function wr(e) {
|
|
894
|
+
return de(e) && ge(e) == bs;
|
|
895
895
|
}
|
|
896
|
-
var
|
|
896
|
+
var cn = Object.prototype, vs = cn.hasOwnProperty, ys = cn.propertyIsEnumerable, kt = wr(/* @__PURE__ */ function() {
|
|
897
897
|
return arguments;
|
|
898
|
-
}()) ?
|
|
899
|
-
return
|
|
898
|
+
}()) ? wr : function(e) {
|
|
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 ln = typeof exports == "object" && exports && !exports.nodeType && exports, xr = ln && typeof module == "object" && module && !module.nodeType && module, ws = xr && xr.exports === ln, Cr = ws ? pe.Buffer : void 0, xs = Cr ? Cr.isBuffer : void 0, nt = xs || _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]", zs = "[object ArrayBuffer]", ks = "[object DataView]", Is = "[object Float32Array]", Ls = "[object Float64Array]", Ns = "[object Int8Array]", Ws = "[object Int16Array]", Bs = "[object Int32Array]", Hs = "[object Uint8Array]", Vs = "[object Uint8ClampedArray]", Us = "[object Uint16Array]", qs = "[object Uint32Array]", U = {};
|
|
905
905
|
U[Is] = U[Ls] = U[Ns] = U[Ws] = U[Bs] = U[Hs] = U[Vs] = U[Us] = U[qs] = !0;
|
|
906
|
-
U[Cs] = U[Ts] = U[zs] = U[Ss] = U[ks] = U[Ps] = U[Rs] = U[js] = U[Fs] = U[Es] = U[
|
|
906
|
+
U[Cs] = U[Ts] = U[zs] = U[Ss] = U[ks] = U[Ps] = U[Rs] = U[js] = U[Fs] = U[Es] = U[As] = U[Ds] = U[Os] = U[$s] = U[Ms] = !1;
|
|
907
907
|
function Ys(e) {
|
|
908
|
-
return
|
|
908
|
+
return de(e) && an(e.length) && !!U[ge(e)];
|
|
909
909
|
}
|
|
910
910
|
function Gs(e) {
|
|
911
911
|
return function(t) {
|
|
912
912
|
return e(t);
|
|
913
913
|
};
|
|
914
914
|
}
|
|
915
|
-
var
|
|
915
|
+
var un = typeof exports == "object" && exports && !exports.nodeType && exports, Ue = un && typeof module == "object" && module && !module.nodeType && module, Xs = Ue && Ue.exports === un, Et = Xs && tn.process, Tr = function() {
|
|
916
916
|
try {
|
|
917
917
|
var e = Ue && Ue.require && Ue.require("util").types;
|
|
918
918
|
return e || Et && Et.binding && Et.binding("util");
|
|
919
919
|
} catch {
|
|
920
920
|
}
|
|
921
921
|
}(), Sr = Tr && Tr.isTypedArray, Xt = Sr ? Gs(Sr) : Ys, Ks = Object.prototype, Js = Ks.hasOwnProperty;
|
|
922
|
-
function
|
|
923
|
-
var r =
|
|
922
|
+
function dn(e, t) {
|
|
923
|
+
var r = oe(e), n = !r && kt(e), o = !r && !n && nt(e), s = !r && !n && !o && Xt(e), i = r || n || o || s, a = i ? ms(e.length, String) : [], l = a.length;
|
|
924
924
|
for (var u in e)
|
|
925
925
|
(t || Js.call(e, u)) && !(i && // 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 fn(e, t) {
|
|
|
929
929
|
qt(u, l))) && a.push(u);
|
|
930
930
|
return a;
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function fn(e, t) {
|
|
933
933
|
return function(r) {
|
|
934
934
|
return e(t(r));
|
|
935
935
|
};
|
|
936
936
|
}
|
|
937
|
-
var Zs =
|
|
937
|
+
var Zs = fn(Object.keys, Object), Qs = Object.prototype, ei = Qs.hasOwnProperty;
|
|
938
938
|
function ti(e) {
|
|
939
939
|
if (!Gt(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 lt(e) ? dn(e) : ti(e);
|
|
948
948
|
}
|
|
949
949
|
function ni(e) {
|
|
950
950
|
var t = [];
|
|
@@ -962,17 +962,17 @@ function ii(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 pn(e) {
|
|
966
|
+
return lt(e) ? dn(e, !0) : ii(e);
|
|
967
967
|
}
|
|
968
968
|
var ai = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ci = /^\w*$/;
|
|
969
969
|
function li(e, t) {
|
|
970
|
-
if (
|
|
970
|
+
if (oe(e))
|
|
971
971
|
return !1;
|
|
972
972
|
var r = typeof e;
|
|
973
973
|
return r == "number" || r == "symbol" || r == "boolean" || e == null || Ut(e) ? !0 : ci.test(e) || !ai.test(e) || t != null && e in Object(t);
|
|
974
974
|
}
|
|
975
|
-
var qe =
|
|
975
|
+
var qe = Ae(Object, "create");
|
|
976
976
|
function ui() {
|
|
977
977
|
this.__data__ = qe ? qe(null) : {}, this.size = 0;
|
|
978
978
|
}
|
|
@@ -1011,51 +1011,51 @@ Fe.prototype.delete = di;
|
|
|
1011
1011
|
Fe.prototype.get = hi;
|
|
1012
1012
|
Fe.prototype.has = vi;
|
|
1013
1013
|
Fe.prototype.set = _i;
|
|
1014
|
-
function
|
|
1014
|
+
function wi() {
|
|
1015
1015
|
this.__data__ = [], this.size = 0;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function ut(e, t) {
|
|
1018
1018
|
for (var r = e.length; r--; )
|
|
1019
|
-
if (
|
|
1019
|
+
if (Ke(e[r][0], t))
|
|
1020
1020
|
return r;
|
|
1021
1021
|
return -1;
|
|
1022
1022
|
}
|
|
1023
|
-
var
|
|
1023
|
+
var xi = Array.prototype, Ci = xi.splice;
|
|
1024
1024
|
function Ti(e) {
|
|
1025
|
-
var t = this.__data__, r =
|
|
1025
|
+
var t = this.__data__, r = ut(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 = ut(t, e);
|
|
1033
1033
|
return r < 0 ? void 0 : t[r][1];
|
|
1034
1034
|
}
|
|
1035
1035
|
function Pi(e) {
|
|
1036
|
-
return
|
|
1036
|
+
return ut(this.__data__, e) > -1;
|
|
1037
1037
|
}
|
|
1038
1038
|
function Ri(e, t) {
|
|
1039
|
-
var r = this.__data__, n =
|
|
1039
|
+
var r = this.__data__, n = ut(r, e);
|
|
1040
1040
|
return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this;
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function ye(e) {
|
|
1043
1043
|
var t = -1, r = e == null ? 0 : e.length;
|
|
1044
1044
|
for (this.clear(); ++t < r; ) {
|
|
1045
1045
|
var n = e[t];
|
|
1046
1046
|
this.set(n[0], n[1]);
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
var Ye =
|
|
1049
|
+
ye.prototype.clear = wi;
|
|
1050
|
+
ye.prototype.delete = Ti;
|
|
1051
|
+
ye.prototype.get = Si;
|
|
1052
|
+
ye.prototype.has = Pi;
|
|
1053
|
+
ye.prototype.set = Ri;
|
|
1054
|
+
var Ye = Ae(pe, "Map");
|
|
1055
1055
|
function ji() {
|
|
1056
1056
|
this.size = 0, this.__data__ = {
|
|
1057
1057
|
hash: new Fe(),
|
|
1058
|
-
map: new (Ye ||
|
|
1058
|
+
map: new (Ye || ye)(),
|
|
1059
1059
|
string: new Fe()
|
|
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 dt(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 = dt(this, e).delete(e);
|
|
1072
1072
|
return this.size -= t ? 1 : 0, t;
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1075
|
-
return
|
|
1074
|
+
function Ai(e) {
|
|
1075
|
+
return dt(this, e).get(e);
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1078
|
-
return
|
|
1077
|
+
function Di(e) {
|
|
1078
|
+
return dt(this, e).has(e);
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1081
|
-
var r =
|
|
1080
|
+
function Oi(e, t) {
|
|
1081
|
+
var r = dt(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 _e(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
|
+
_e.prototype.clear = ji;
|
|
1092
|
+
_e.prototype.delete = Ei;
|
|
1093
|
+
_e.prototype.get = Ai;
|
|
1094
|
+
_e.prototype.has = Di;
|
|
1095
|
+
_e.prototype.set = Oi;
|
|
1096
1096
|
var $i = "Expected a function";
|
|
1097
1097
|
function Kt(e, t) {
|
|
1098
1098
|
if (typeof e != "function" || t != null && typeof t != "function")
|
|
@@ -1104,9 +1104,9 @@ function Kt(e, t) {
|
|
|
1104
1104
|
var i = e.apply(this, n);
|
|
1105
1105
|
return r.cache = s.set(o, i) || s, i;
|
|
1106
1106
|
};
|
|
1107
|
-
return r.cache = new (Kt.Cache ||
|
|
1107
|
+
return r.cache = new (Kt.Cache || _e)(), r;
|
|
1108
1108
|
}
|
|
1109
|
-
Kt.Cache =
|
|
1109
|
+
Kt.Cache = _e;
|
|
1110
1110
|
var Mi = 500;
|
|
1111
1111
|
function zi(e) {
|
|
1112
1112
|
var t = Kt(e, function(n) {
|
|
@@ -1121,10 +1121,10 @@ var ki = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
|
|
|
1121
1121
|
}), t;
|
|
1122
1122
|
});
|
|
1123
1123
|
function Ni(e) {
|
|
1124
|
-
return e == null ? "" :
|
|
1124
|
+
return e == null ? "" : nn(e);
|
|
1125
1125
|
}
|
|
1126
1126
|
function Wi(e, t) {
|
|
1127
|
-
return
|
|
1127
|
+
return oe(e) ? e : li(e, t) ? [e] : Li(Ni(e));
|
|
1128
1128
|
}
|
|
1129
1129
|
var Bi = 1 / 0;
|
|
1130
1130
|
function Hi(e) {
|
|
@@ -1138,18 +1138,18 @@ function Vi(e, t) {
|
|
|
1138
1138
|
e[o + r] = t[r];
|
|
1139
1139
|
return e;
|
|
1140
1140
|
}
|
|
1141
|
-
var
|
|
1141
|
+
var gn = fn(Object.getPrototypeOf, Object), Ui = "[object Object]", qi = Function.prototype, Yi = Object.prototype, hn = qi.toString, Gi = Yi.hasOwnProperty, Xi = hn.call(Object);
|
|
1142
1142
|
function Ki(e) {
|
|
1143
|
-
if (!
|
|
1143
|
+
if (!de(e) || ge(e) != Ui)
|
|
1144
1144
|
return !1;
|
|
1145
|
-
var t =
|
|
1145
|
+
var t = gn(e);
|
|
1146
1146
|
if (t === null)
|
|
1147
1147
|
return !0;
|
|
1148
1148
|
var r = Gi.call(t, "constructor") && t.constructor;
|
|
1149
|
-
return typeof r == "function" && r instanceof r &&
|
|
1149
|
+
return typeof r == "function" && r instanceof r && hn.call(r) == Xi;
|
|
1150
1150
|
}
|
|
1151
1151
|
function Ji() {
|
|
1152
|
-
this.__data__ = new
|
|
1152
|
+
this.__data__ = new ye(), this.size = 0;
|
|
1153
1153
|
}
|
|
1154
1154
|
function Zi(e) {
|
|
1155
1155
|
var t = this.__data__, r = t.delete(e);
|
|
@@ -1164,24 +1164,24 @@ function ea(e) {
|
|
|
1164
1164
|
var ta = 200;
|
|
1165
1165
|
function ra(e, t) {
|
|
1166
1166
|
var r = this.__data__;
|
|
1167
|
-
if (r instanceof
|
|
1167
|
+
if (r instanceof ye) {
|
|
1168
1168
|
var n = r.__data__;
|
|
1169
1169
|
if (!Ye || 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 _e(n);
|
|
1172
1172
|
}
|
|
1173
1173
|
return r.set(e, t), this.size = r.size, this;
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1176
|
-
var t = this.__data__ = new
|
|
1175
|
+
function ve(e) {
|
|
1176
|
+
var t = this.__data__ = new ye(e);
|
|
1177
1177
|
this.size = t.size;
|
|
1178
1178
|
}
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
var
|
|
1179
|
+
ve.prototype.clear = Ji;
|
|
1180
|
+
ve.prototype.delete = Zi;
|
|
1181
|
+
ve.prototype.get = Qi;
|
|
1182
|
+
ve.prototype.has = ea;
|
|
1183
|
+
ve.prototype.set = ra;
|
|
1184
|
+
var mn = typeof exports == "object" && exports && !exports.nodeType && exports, Pr = mn && typeof module == "object" && module && !module.nodeType && module, na = Pr && Pr.exports === mn, Rr = na ? pe.Buffer : void 0;
|
|
1185
1185
|
Rr && Rr.allocUnsafe;
|
|
1186
1186
|
function oa(e, t) {
|
|
1187
1187
|
return e.slice();
|
|
@@ -1203,14 +1203,14 @@ var aa = Object.prototype, ca = aa.propertyIsEnumerable, jr = Object.getOwnPrope
|
|
|
1203
1203
|
} : ia;
|
|
1204
1204
|
function ua(e, t, r) {
|
|
1205
1205
|
var n = t(e);
|
|
1206
|
-
return
|
|
1206
|
+
return oe(e) ? n : Vi(n, r(e));
|
|
1207
1207
|
}
|
|
1208
1208
|
function Fr(e) {
|
|
1209
1209
|
return ua(e, ri, la);
|
|
1210
1210
|
}
|
|
1211
|
-
var It =
|
|
1212
|
-
(It && xe(new It(new ArrayBuffer(1))) != $r || Ye && xe(new Ye()) != Er || Lt && xe(Lt.resolve()) !=
|
|
1213
|
-
var t =
|
|
1211
|
+
var It = Ae(pe, "DataView"), Lt = Ae(pe, "Promise"), Nt = Ae(pe, "Set"), Er = "[object Map]", da = "[object Object]", Ar = "[object Promise]", Dr = "[object Set]", Or = "[object WeakMap]", $r = "[object DataView]", fa = Ee(It), pa = Ee(Ye), ga = Ee(Lt), ha = Ee(Nt), ma = Ee(zt), xe = ge;
|
|
1212
|
+
(It && xe(new It(new ArrayBuffer(1))) != $r || Ye && xe(new Ye()) != Er || Lt && xe(Lt.resolve()) != Ar || Nt && xe(new Nt()) != Dr || zt && xe(new zt()) != Or) && (xe = function(e) {
|
|
1213
|
+
var t = ge(e), r = t == da ? e.constructor : void 0, n = r ? Ee(r) : "";
|
|
1214
1214
|
if (n)
|
|
1215
1215
|
switch (n) {
|
|
1216
1216
|
case fa:
|
|
@@ -1218,40 +1218,40 @@ var It = De(fe, "DataView"), Lt = De(fe, "Promise"), Nt = De(fe, "Set"), Er = "[
|
|
|
1218
1218
|
case pa:
|
|
1219
1219
|
return Er;
|
|
1220
1220
|
case ga:
|
|
1221
|
-
return
|
|
1221
|
+
return Ar;
|
|
1222
1222
|
case ha:
|
|
1223
|
-
return
|
|
1223
|
+
return Dr;
|
|
1224
1224
|
case ma:
|
|
1225
|
-
return
|
|
1225
|
+
return Or;
|
|
1226
1226
|
}
|
|
1227
1227
|
return t;
|
|
1228
1228
|
});
|
|
1229
|
-
var
|
|
1229
|
+
var ot = pe.Uint8Array;
|
|
1230
1230
|
function ba(e) {
|
|
1231
1231
|
var t = new e.constructor(e.byteLength);
|
|
1232
|
-
return new
|
|
1232
|
+
return new ot(t).set(new ot(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" && !Gt(e) ? Xo(
|
|
1239
|
+
return typeof e.constructor == "function" && !Gt(e) ? Xo(gn(e)) : {};
|
|
1240
1240
|
}
|
|
1241
1241
|
var _a = "__lodash_hash_undefined__";
|
|
1242
|
-
function
|
|
1242
|
+
function wa(e) {
|
|
1243
1243
|
return this.__data__.set(e, _a), this;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function xa(e) {
|
|
1246
1246
|
return this.__data__.has(e);
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1248
|
+
function st(e) {
|
|
1249
1249
|
var t = -1, r = e == null ? 0 : e.length;
|
|
1250
|
-
for (this.__data__ = new
|
|
1250
|
+
for (this.__data__ = new _e(); ++t < r; )
|
|
1251
1251
|
this.add(e[t]);
|
|
1252
1252
|
}
|
|
1253
|
-
|
|
1254
|
-
|
|
1253
|
+
st.prototype.add = st.prototype.push = wa;
|
|
1254
|
+
st.prototype.has = xa;
|
|
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,20 +1262,20 @@ function Ta(e, t) {
|
|
|
1262
1262
|
return e.has(t);
|
|
1263
1263
|
}
|
|
1264
1264
|
var Sa = 1, Pa = 2;
|
|
1265
|
-
function
|
|
1265
|
+
function bn(e, t, r, n, o, s) {
|
|
1266
1266
|
var i = r & Sa, a = e.length, l = t.length;
|
|
1267
1267
|
if (a != l && !(i && l > a))
|
|
1268
1268
|
return !1;
|
|
1269
1269
|
var u = s.get(e), d = s.get(t);
|
|
1270
1270
|
if (u && d)
|
|
1271
1271
|
return u == t && d == e;
|
|
1272
|
-
var g = -1, f = !0, b = r & Pa ? new
|
|
1272
|
+
var g = -1, f = !0, b = r & Pa ? new st() : void 0;
|
|
1273
1273
|
for (s.set(e, t), s.set(t, e); ++g < a; ) {
|
|
1274
1274
|
var p = e[g], v = t[g];
|
|
1275
1275
|
if (n)
|
|
1276
|
-
var
|
|
1277
|
-
if (
|
|
1278
|
-
if (
|
|
1276
|
+
var w = i ? n(v, p, g, t, e, s) : n(p, v, g, e, t, s);
|
|
1277
|
+
if (w !== void 0) {
|
|
1278
|
+
if (w)
|
|
1279
1279
|
continue;
|
|
1280
1280
|
f = !1;
|
|
1281
1281
|
break;
|
|
@@ -1307,7 +1307,7 @@ function ja(e) {
|
|
|
1307
1307
|
r[++t] = n;
|
|
1308
1308
|
}), r;
|
|
1309
1309
|
}
|
|
1310
|
-
var Fa = 1, Ea = 2,
|
|
1310
|
+
var Fa = 1, Ea = 2, Aa = "[object Boolean]", Da = "[object Date]", Oa = "[object Error]", $a = "[object Map]", Ma = "[object Number]", za = "[object RegExp]", ka = "[object Set]", Ia = "[object String]", La = "[object Symbol]", Na = "[object ArrayBuffer]", Wa = "[object DataView]", Mr = Ce ? Ce.prototype : void 0, At = Mr ? Mr.valueOf : void 0;
|
|
1311
1311
|
function Ba(e, t, r, n, o, s, i) {
|
|
1312
1312
|
switch (r) {
|
|
1313
1313
|
case Wa:
|
|
@@ -1315,12 +1315,12 @@ function Ba(e, t, r, n, o, s, i) {
|
|
|
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 ot(e), new ot(t)));
|
|
1319
|
+
case Aa:
|
|
1319
1320
|
case Da:
|
|
1320
|
-
case Oa:
|
|
1321
1321
|
case Ma:
|
|
1322
|
-
return
|
|
1323
|
-
case
|
|
1322
|
+
return Ke(+e, +t);
|
|
1323
|
+
case Oa:
|
|
1324
1324
|
return e.name == t.name && e.message == t.message;
|
|
1325
1325
|
case za:
|
|
1326
1326
|
case Ia:
|
|
@@ -1335,11 +1335,11 @@ function Ba(e, t, r, n, o, s, i) {
|
|
|
1335
1335
|
if (u)
|
|
1336
1336
|
return u == t;
|
|
1337
1337
|
n |= Ea, i.set(e, t);
|
|
1338
|
-
var d =
|
|
1338
|
+
var d = bn(a(e), a(t), n, o, s, i);
|
|
1339
1339
|
return i.delete(e), d;
|
|
1340
1340
|
case La:
|
|
1341
|
-
if (
|
|
1342
|
-
return
|
|
1341
|
+
if (At)
|
|
1342
|
+
return At.call(e) == At.call(t);
|
|
1343
1343
|
}
|
|
1344
1344
|
return !1;
|
|
1345
1345
|
}
|
|
@@ -1358,7 +1358,7 @@ function qa(e, t, r, n, o, s) {
|
|
|
1358
1358
|
return b == t && p == e;
|
|
1359
1359
|
var v = !0;
|
|
1360
1360
|
s.set(e, t), s.set(t, e);
|
|
1361
|
-
for (var
|
|
1361
|
+
for (var w = i; ++g < l; ) {
|
|
1362
1362
|
f = a[g];
|
|
1363
1363
|
var R = e[f], T = t[f];
|
|
1364
1364
|
if (n)
|
|
@@ -1367,37 +1367,37 @@ function qa(e, t, r, n, o, s) {
|
|
|
1367
1367
|
v = !1;
|
|
1368
1368
|
break;
|
|
1369
1369
|
}
|
|
1370
|
-
|
|
1370
|
+
w || (w = f == "constructor");
|
|
1371
1371
|
}
|
|
1372
|
-
if (v && !
|
|
1372
|
+
if (v && !w) {
|
|
1373
1373
|
var z = e.constructor, I = t.constructor;
|
|
1374
1374
|
z != I && "constructor" in e && "constructor" in t && !(typeof z == "function" && z instanceof z && typeof I == "function" && I instanceof I) && (v = !1);
|
|
1375
1375
|
}
|
|
1376
1376
|
return s.delete(e), s.delete(t), v;
|
|
1377
1377
|
}
|
|
1378
|
-
var Ya = 1, zr = "[object Arguments]", kr = "[object Array]",
|
|
1378
|
+
var Ya = 1, zr = "[object Arguments]", kr = "[object Array]", Ze = "[object Object]", Ga = Object.prototype, Ir = Ga.hasOwnProperty;
|
|
1379
1379
|
function Xa(e, t, r, n, o, s) {
|
|
1380
|
-
var i =
|
|
1381
|
-
l = l == zr ?
|
|
1382
|
-
var d = l ==
|
|
1383
|
-
if (f &&
|
|
1384
|
-
if (!
|
|
1380
|
+
var i = oe(e), a = oe(t), l = i ? kr : xe(e), u = a ? kr : xe(t);
|
|
1381
|
+
l = l == zr ? Ze : l, u = u == zr ? Ze : u;
|
|
1382
|
+
var d = l == Ze, g = u == Ze, f = l == u;
|
|
1383
|
+
if (f && nt(e)) {
|
|
1384
|
+
if (!nt(t))
|
|
1385
1385
|
return !1;
|
|
1386
1386
|
i = !0, d = !1;
|
|
1387
1387
|
}
|
|
1388
1388
|
if (f && !d)
|
|
1389
|
-
return s || (s = new
|
|
1389
|
+
return s || (s = new ve()), i || Xt(e) ? bn(e, t, r, n, o, s) : Ba(e, t, l, r, n, o, s);
|
|
1390
1390
|
if (!(r & Ya)) {
|
|
1391
1391
|
var b = d && Ir.call(e, "__wrapped__"), p = g && Ir.call(t, "__wrapped__");
|
|
1392
1392
|
if (b || p) {
|
|
1393
|
-
var v = b ? e.value() : e,
|
|
1394
|
-
return s || (s = new
|
|
1393
|
+
var v = b ? e.value() : e, w = p ? t.value() : t;
|
|
1394
|
+
return s || (s = new ve()), o(v, w, r, n, s);
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
|
-
return f ? (s || (s = new
|
|
1397
|
+
return f ? (s || (s = new ve()), qa(e, t, r, n, o, s)) : !1;
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1400
|
-
return e === t ? !0 : e == null || t == null || !
|
|
1399
|
+
function vn(e, t, r, n, o) {
|
|
1400
|
+
return e === t ? !0 : e == null || t == null || !de(e) && !de(t) ? e !== e && t !== t : Xa(e, t, r, n, vn, o);
|
|
1401
1401
|
}
|
|
1402
1402
|
function Ka(e) {
|
|
1403
1403
|
return function(t, r, n) {
|
|
@@ -1411,17 +1411,17 @@ function Ka(e) {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
var Ja = Ka();
|
|
1413
1413
|
function Wt(e, t, r) {
|
|
1414
|
-
(r !== void 0 && !
|
|
1414
|
+
(r !== void 0 && !Ke(e[t], r) || r === void 0 && !(t in e)) && Yt(e, t, r);
|
|
1415
1415
|
}
|
|
1416
1416
|
function Za(e) {
|
|
1417
|
-
return
|
|
1417
|
+
return de(e) && lt(e);
|
|
1418
1418
|
}
|
|
1419
1419
|
function Bt(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, pn(e));
|
|
1425
1425
|
}
|
|
1426
1426
|
function ec(e, t, r, n, o, s, i) {
|
|
1427
1427
|
var a = Bt(e, r), l = Bt(t, r), u = i.get(l);
|
|
@@ -1431,35 +1431,35 @@ function ec(e, t, r, n, o, s, i) {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
var d = s ? s(a, l, r + "", e, t, i) : void 0, g = d === void 0;
|
|
1433
1433
|
if (g) {
|
|
1434
|
-
var f =
|
|
1435
|
-
d = l, f || b || p ?
|
|
1434
|
+
var f = oe(l), b = !f && nt(l), p = !f && !b && Xt(l);
|
|
1435
|
+
d = l, f || b || p ? oe(a) ? d = a : Za(a) ? d = Jo(a) : b ? (g = !1, d = oa(l)) : p ? (g = !1, d = va(l)) : d = [] : Ki(l) || kt(l) ? (d = a, kt(a) ? d = Qa(a) : (!ce(a) || Z(a)) && (d = ya(l))) : g = !1;
|
|
1436
1436
|
}
|
|
1437
1437
|
g && (i.set(l, d), o(d, l, n, s, i), i.delete(l)), Wt(e, r, d);
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function yn(e, t, r, n, o) {
|
|
1440
1440
|
e !== t && Ja(t, function(s, i) {
|
|
1441
|
-
if (o || (o = new
|
|
1442
|
-
ec(e, t, i, r,
|
|
1441
|
+
if (o || (o = new ve()), ce(s))
|
|
1442
|
+
ec(e, t, i, r, yn, n, o);
|
|
1443
1443
|
else {
|
|
1444
1444
|
var a = n ? n(Bt(e, i), s, i + "", e, t, o) : void 0;
|
|
1445
1445
|
a === void 0 && (a = s), Wt(e, i, a);
|
|
1446
1446
|
}
|
|
1447
|
-
},
|
|
1447
|
+
}, pn);
|
|
1448
1448
|
}
|
|
1449
1449
|
var tc = "[object String]";
|
|
1450
|
-
function
|
|
1451
|
-
return typeof e == "string" || !
|
|
1450
|
+
function _n(e) {
|
|
1451
|
+
return typeof e == "string" || !oe(e) && de(e) && ge(e) == tc;
|
|
1452
1452
|
}
|
|
1453
1453
|
var rc = "[object Boolean]";
|
|
1454
1454
|
function Ht(e) {
|
|
1455
|
-
return e === !0 || e === !1 ||
|
|
1455
|
+
return e === !0 || e === !1 || de(e) && ge(e) == rc;
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1458
|
-
return
|
|
1457
|
+
function it(e, t) {
|
|
1458
|
+
return vn(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) && ge(e) == nc;
|
|
1463
1463
|
}
|
|
1464
1464
|
function Lr(e) {
|
|
1465
1465
|
return e == null;
|
|
@@ -1467,8 +1467,8 @@ function Lr(e) {
|
|
|
1467
1467
|
function sc(e) {
|
|
1468
1468
|
return e === null;
|
|
1469
1469
|
}
|
|
1470
|
-
var
|
|
1471
|
-
|
|
1470
|
+
var ue = gs(function(e, t, r) {
|
|
1471
|
+
yn(e, t, r);
|
|
1472
1472
|
});
|
|
1473
1473
|
function ic(e, t, r, n) {
|
|
1474
1474
|
if (!ce(e))
|
|
@@ -1482,7 +1482,7 @@ function ic(e, t, r, n) {
|
|
|
1482
1482
|
var d = a[l];
|
|
1483
1483
|
u = void 0, u === void 0 && (u = ce(d) ? d : qt(t[o + 1]) ? [] : {});
|
|
1484
1484
|
}
|
|
1485
|
-
|
|
1485
|
+
sn(a, l, u), a = a[l];
|
|
1486
1486
|
}
|
|
1487
1487
|
return e;
|
|
1488
1488
|
}
|
|
@@ -1490,38 +1490,75 @@ function wn(e, t, r) {
|
|
|
1490
1490
|
return e == null ? e : ic(e, t, r);
|
|
1491
1491
|
}
|
|
1492
1492
|
function ac(e) {
|
|
1493
|
-
const { inherit: t = !0 } = e, { extendActionsProps: r } =
|
|
1493
|
+
const { inherit: t = !0 } = e, { extendActionsProps: r, extendAuthProps: n } = Sn(), s = {
|
|
1494
|
+
...ue(ue({
|
|
1495
|
+
items: [],
|
|
1496
|
+
max: 10
|
|
1497
|
+
}, t ? r : {}), e)
|
|
1498
|
+
}, i = {
|
|
1499
|
+
...ue(
|
|
1500
|
+
/** 默认都是返回true,兼容有传auth属性的item项,但是没配置扩展auth方法的情况 */
|
|
1501
|
+
{
|
|
1502
|
+
auth: () => !0
|
|
1503
|
+
},
|
|
1504
|
+
t ? n : {}
|
|
1505
|
+
)
|
|
1506
|
+
};
|
|
1494
1507
|
return {
|
|
1495
|
-
actionsProps:
|
|
1496
|
-
|
|
1497
|
-
items: [],
|
|
1498
|
-
max: 10
|
|
1499
|
-
}, t ? r : {}), e)
|
|
1500
|
-
}
|
|
1508
|
+
actionsProps: s,
|
|
1509
|
+
authProps: i
|
|
1501
1510
|
};
|
|
1502
1511
|
}
|
|
1503
|
-
function
|
|
1512
|
+
function xn(e) {
|
|
1504
1513
|
return "component" in e;
|
|
1505
1514
|
}
|
|
1506
1515
|
function cc(e) {
|
|
1507
1516
|
return "render" in e;
|
|
1508
1517
|
}
|
|
1509
|
-
function lc(e) {
|
|
1510
|
-
const { type:
|
|
1511
|
-
const
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
}
|
|
1518
|
+
function lc(e, t) {
|
|
1519
|
+
const { type: r, disabled: n, items: o, max: s } = e, i = (g) => {
|
|
1520
|
+
const { auth: f } = g;
|
|
1521
|
+
let b = !1;
|
|
1522
|
+
return f ? oe(f) ? b = f.every((p) => t(p)) : b = t(f) : b = !0, b;
|
|
1523
|
+
}, a = (g) => {
|
|
1524
|
+
let { ifShow: f = !0 } = g;
|
|
1525
|
+
return f = f && Z(f) ? f() : f, f && i(g);
|
|
1526
|
+
}, l = (g) => {
|
|
1527
|
+
const { component: f, render: b, componentProps: p } = g;
|
|
1528
|
+
if (f)
|
|
1529
|
+
switch (f) {
|
|
1530
|
+
case "Dropdown": {
|
|
1531
|
+
const { dropDownItems: v } = p;
|
|
1532
|
+
return !!v.length;
|
|
1533
|
+
}
|
|
1534
|
+
default:
|
|
1535
|
+
return !0;
|
|
1536
|
+
}
|
|
1537
|
+
return !!b;
|
|
1538
|
+
}, u = o.map((g) => {
|
|
1539
|
+
const f = { ...g };
|
|
1540
|
+
if (xn(f)) {
|
|
1541
|
+
const b = f.component;
|
|
1542
|
+
switch (f.componentProps = {
|
|
1543
|
+
type: r,
|
|
1544
|
+
disabled: n,
|
|
1545
|
+
...f.componentProps
|
|
1546
|
+
}, b) {
|
|
1547
|
+
case "Dropdown": {
|
|
1548
|
+
f.componentProps.dropDownItems = (f.componentProps.dropDownItems || []).filter(a);
|
|
1549
|
+
break;
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
return f;
|
|
1554
|
+
}).filter(a).filter(l), d = oc(s) && s >= 0;
|
|
1518
1555
|
return {
|
|
1519
|
-
showActionItems:
|
|
1556
|
+
showActionItems: u.slice(
|
|
1520
1557
|
0,
|
|
1521
|
-
|
|
1558
|
+
d ? s : u.length
|
|
1522
1559
|
),
|
|
1523
|
-
ellipsisActionItems:
|
|
1524
|
-
|
|
1560
|
+
ellipsisActionItems: u.slice(
|
|
1561
|
+
d ? s : u.length
|
|
1525
1562
|
)
|
|
1526
1563
|
};
|
|
1527
1564
|
}
|
|
@@ -1530,7 +1567,7 @@ const uc = (e) => {
|
|
|
1530
1567
|
const { ...n } = t;
|
|
1531
1568
|
return n;
|
|
1532
1569
|
};
|
|
1533
|
-
return /* @__PURE__ */ h.jsx(
|
|
1570
|
+
return /* @__PURE__ */ h.jsx(ae, { ...r() });
|
|
1534
1571
|
}, dc = (e) => {
|
|
1535
1572
|
const { componentProps: t } = e, n = (() => {
|
|
1536
1573
|
const { dropDownItems: o, onClick: s, ...i } = t;
|
|
@@ -1539,33 +1576,33 @@ const uc = (e) => {
|
|
|
1539
1576
|
return (
|
|
1540
1577
|
/** items: [] 一定要给不然antd会报错 */
|
|
1541
1578
|
/* @__PURE__ */ h.jsx(
|
|
1542
|
-
|
|
1579
|
+
qr,
|
|
1543
1580
|
{
|
|
1544
1581
|
disabled: n.disabled,
|
|
1545
1582
|
menu: {
|
|
1546
|
-
items:
|
|
1583
|
+
items: t == null ? void 0 : t.dropDownItems,
|
|
1547
1584
|
onClick: t == null ? void 0 : t.onClick
|
|
1548
1585
|
},
|
|
1549
1586
|
trigger: ["click"],
|
|
1550
|
-
children: /* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsxs(
|
|
1587
|
+
children: /* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsxs(ae, { ...n, children: [
|
|
1551
1588
|
n.children,
|
|
1552
|
-
/* @__PURE__ */ h.jsx(
|
|
1589
|
+
/* @__PURE__ */ h.jsx(en, {})
|
|
1553
1590
|
] }) })
|
|
1554
1591
|
}
|
|
1555
1592
|
)
|
|
1556
1593
|
);
|
|
1557
|
-
},
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
function
|
|
1561
|
-
const { setExtendActionsComp: e } =
|
|
1562
|
-
return e(
|
|
1563
|
-
renderContent:
|
|
1594
|
+
}, at = /* @__PURE__ */ new Map();
|
|
1595
|
+
at.set("Button", uc);
|
|
1596
|
+
at.set("Dropdown", dc);
|
|
1597
|
+
function Cn() {
|
|
1598
|
+
const { setExtendActionsComp: e } = Sn();
|
|
1599
|
+
return e(at), {
|
|
1600
|
+
renderContent: be(
|
|
1564
1601
|
(r, n) => {
|
|
1565
|
-
const o =
|
|
1602
|
+
const o = xn(r), s = cc(r);
|
|
1566
1603
|
if (o) {
|
|
1567
|
-
const i =
|
|
1568
|
-
return /* @__PURE__ */
|
|
1604
|
+
const i = at.get(r.component);
|
|
1605
|
+
return /* @__PURE__ */ Kn(i, { ...r, key: n });
|
|
1569
1606
|
}
|
|
1570
1607
|
return s ? /* @__PURE__ */ h.jsx("div", { children: r.render }, n) : null;
|
|
1571
1608
|
},
|
|
@@ -1573,10 +1610,10 @@ function Tn() {
|
|
|
1573
1610
|
)
|
|
1574
1611
|
};
|
|
1575
1612
|
}
|
|
1576
|
-
const
|
|
1613
|
+
const Tn = Jn({}), iu = (e) => {
|
|
1577
1614
|
const { extendProps: t, extendComp: r } = e.value;
|
|
1578
1615
|
return /* @__PURE__ */ h.jsx(
|
|
1579
|
-
|
|
1616
|
+
Tn.Provider,
|
|
1580
1617
|
{
|
|
1581
1618
|
value: {
|
|
1582
1619
|
extendProps: t,
|
|
@@ -1585,8 +1622,8 @@ const Sn = Jn({}), nu = (e) => {
|
|
|
1585
1622
|
children: e.children
|
|
1586
1623
|
}
|
|
1587
1624
|
);
|
|
1588
|
-
},
|
|
1589
|
-
const [t, r] = X(e), n =
|
|
1625
|
+
}, Je = () => Zn(Tn), fc = (e) => {
|
|
1626
|
+
const [t, r] = X(e), n = D(null);
|
|
1590
1627
|
return q(() => {
|
|
1591
1628
|
n.current && (n.current(), n.current = null);
|
|
1592
1629
|
}, [t]), [t, (s) => new Promise((i, a) => {
|
|
@@ -1595,22 +1632,23 @@ const Sn = Jn({}), nu = (e) => {
|
|
|
1595
1632
|
return n.current = i, u;
|
|
1596
1633
|
});
|
|
1597
1634
|
})];
|
|
1598
|
-
},
|
|
1599
|
-
const { extendProps: e, extendComp: t } =
|
|
1635
|
+
}, Sn = () => {
|
|
1636
|
+
const { extendProps: e, extendComp: t } = Je(), r = (n) => {
|
|
1600
1637
|
const o = t == null ? void 0 : t.actions;
|
|
1601
1638
|
o && Object.keys(o).forEach((s) => {
|
|
1602
1639
|
n.set(s, o[s]);
|
|
1603
1640
|
});
|
|
1604
1641
|
};
|
|
1605
1642
|
return {
|
|
1643
|
+
extendAuthProps: e == null ? void 0 : e.auth,
|
|
1606
1644
|
extendActionsProps: e == null ? void 0 : e.actions,
|
|
1607
1645
|
setExtendActionsComp: r
|
|
1608
1646
|
};
|
|
1609
|
-
}, { useToken: pc } =
|
|
1647
|
+
}, { useToken: pc } = Xe, gc = ({
|
|
1610
1648
|
items: e,
|
|
1611
1649
|
actionsProps: t
|
|
1612
1650
|
}) => {
|
|
1613
|
-
const { type: r, disabled: n } = t, { renderContent: o } =
|
|
1651
|
+
const { type: r, disabled: n } = t, { renderContent: o } = Cn(), { token: s } = pc(), i = {
|
|
1614
1652
|
backgroundColor: s.colorBgElevated,
|
|
1615
1653
|
borderRadius: s.borderRadiusLG,
|
|
1616
1654
|
boxShadow: s.boxShadowSecondary
|
|
@@ -1618,24 +1656,27 @@ const Sn = Jn({}), nu = (e) => {
|
|
|
1618
1656
|
return (
|
|
1619
1657
|
/** items: [] 一定要给不然antd会报错 */
|
|
1620
1658
|
/* @__PURE__ */ h.jsx(
|
|
1621
|
-
|
|
1659
|
+
qr,
|
|
1622
1660
|
{
|
|
1623
1661
|
disabled: n,
|
|
1624
1662
|
menu: { items: [] },
|
|
1625
1663
|
dropdownRender: a,
|
|
1626
1664
|
trigger: ["click"],
|
|
1627
|
-
children: /* @__PURE__ */ h.jsxs(
|
|
1665
|
+
children: /* @__PURE__ */ h.jsxs(ae, { type: r, children: [
|
|
1628
1666
|
"更多",
|
|
1629
|
-
/* @__PURE__ */ h.jsx(
|
|
1667
|
+
/* @__PURE__ */ h.jsx(en, {})
|
|
1630
1668
|
] })
|
|
1631
1669
|
}
|
|
1632
1670
|
)
|
|
1633
1671
|
);
|
|
1634
1672
|
}, Jt = (e) => {
|
|
1635
|
-
const { actionsProps: t } = ac(e), {
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1673
|
+
const { actionsProps: t, authProps: r } = ac(e), { auth: n } = r, { showActionItems: o, ellipsisActionItems: s } = lc(
|
|
1674
|
+
t,
|
|
1675
|
+
n
|
|
1676
|
+
), { renderContent: i } = Cn();
|
|
1677
|
+
return t != null && t.render ? t.render : /* @__PURE__ */ h.jsxs(Vr, { children: [
|
|
1678
|
+
o == null ? void 0 : o.map((a, l) => i(a, l)),
|
|
1679
|
+
s != null && s.length ? /* @__PURE__ */ h.jsx(gc, { actionsProps: t, items: s }) : null
|
|
1639
1680
|
] });
|
|
1640
1681
|
};
|
|
1641
1682
|
function hc(e, t) {
|
|
@@ -1675,7 +1716,7 @@ const mc = (e) => {
|
|
|
1675
1716
|
/** 默认都是挂载在body上 */
|
|
1676
1717
|
getPopperContainer: () => document.body
|
|
1677
1718
|
}, n = {
|
|
1678
|
-
...
|
|
1719
|
+
...ue(ue(r, t), e)
|
|
1679
1720
|
};
|
|
1680
1721
|
return {
|
|
1681
1722
|
dialogProps: {
|
|
@@ -1688,7 +1729,7 @@ const mc = (e) => {
|
|
|
1688
1729
|
baseDialogProps: r
|
|
1689
1730
|
};
|
|
1690
1731
|
}, bc = () => {
|
|
1691
|
-
const { extendProps: e } =
|
|
1732
|
+
const { extendProps: e } = Je();
|
|
1692
1733
|
return {
|
|
1693
1734
|
extendDialogProps: e == null ? void 0 : e.dialog
|
|
1694
1735
|
};
|
|
@@ -1742,18 +1783,18 @@ const mc = (e) => {
|
|
|
1742
1783
|
dialogRef: r,
|
|
1743
1784
|
setDialogPosition: n
|
|
1744
1785
|
}) => {
|
|
1745
|
-
const o =
|
|
1786
|
+
const o = D(0), s = D(0), i = (d) => {
|
|
1746
1787
|
const g = d.getBoundingClientRect(), f = g.width, b = g.height, p = -0.5 * f, v = -0.5 * b;
|
|
1747
1788
|
return { translateX: p, translateY: v };
|
|
1748
|
-
}, a =
|
|
1789
|
+
}, a = be((d) => {
|
|
1749
1790
|
const { offsetLeft: g, offsetTop: f } = r.current;
|
|
1750
1791
|
o.current = d.clientX - g, s.current = d.clientY - f, document.addEventListener("mousemove", l), document.addEventListener("mouseup", u);
|
|
1751
|
-
}, []), l =
|
|
1792
|
+
}, []), l = be((d) => {
|
|
1752
1793
|
const g = r.current, { translateX: f, translateY: b } = i(g);
|
|
1753
1794
|
let p = d.clientX - o.current, v = d.clientY - s.current;
|
|
1754
|
-
const
|
|
1755
|
-
p <
|
|
1756
|
-
}, []), u =
|
|
1795
|
+
const w = -f, R = -b, T = e.current.scrollWidth - g.offsetWidth - f, j = e.current.scrollHeight - g.offsetHeight - b;
|
|
1796
|
+
p < w && (p = w), p > T && (p = T), v < R && (v = R), v > j && (v = j), n({ left: p, top: v });
|
|
1797
|
+
}, []), u = be(() => {
|
|
1757
1798
|
document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", u);
|
|
1758
1799
|
}, []);
|
|
1759
1800
|
return q(() => {
|
|
@@ -1762,7 +1803,7 @@ const mc = (e) => {
|
|
|
1762
1803
|
d.removeEventListener("mousedown", a);
|
|
1763
1804
|
};
|
|
1764
1805
|
}, []), {};
|
|
1765
|
-
},
|
|
1806
|
+
}, wc = ({
|
|
1766
1807
|
containerSizeTarget: e,
|
|
1767
1808
|
dialogChangeRecord: t,
|
|
1768
1809
|
close: r,
|
|
@@ -1778,19 +1819,19 @@ const mc = (e) => {
|
|
|
1778
1819
|
},
|
|
1779
1820
|
onMaximize: (b) => {
|
|
1780
1821
|
if (b === "minimize" && i(!1), b === "maximize") {
|
|
1781
|
-
const { scrollWidth: p, scrollHeight: v } = e.current,
|
|
1782
|
-
n({ width:
|
|
1822
|
+
const { scrollWidth: p, scrollHeight: v } = e.current, w = Math.floor(p), R = Math.floor(v), T = Math.floor(p / 2), j = Math.floor(v / 2);
|
|
1823
|
+
n({ width: w, height: R }), o({ top: j, left: T }), l(!0);
|
|
1783
1824
|
}
|
|
1784
1825
|
},
|
|
1785
1826
|
onRecovery: () => {
|
|
1786
|
-
const { top: b, left: p, width: v, height:
|
|
1787
|
-
n({ width: v, height:
|
|
1827
|
+
const { top: b, left: p, width: v, height: w } = t.current;
|
|
1828
|
+
n({ width: v, height: w }), o({ top: b, left: p }), l(!1);
|
|
1788
1829
|
},
|
|
1789
1830
|
onClose: () => {
|
|
1790
1831
|
i(!1), l(!1), r();
|
|
1791
1832
|
}
|
|
1792
1833
|
};
|
|
1793
|
-
},
|
|
1834
|
+
}, xc = ({
|
|
1794
1835
|
visible: e,
|
|
1795
1836
|
containerSizeTarget: t,
|
|
1796
1837
|
dialogHeight: r,
|
|
@@ -1828,7 +1869,7 @@ const mc = (e) => {
|
|
|
1828
1869
|
contentMaxHeight: d
|
|
1829
1870
|
};
|
|
1830
1871
|
}, Cc = () => {
|
|
1831
|
-
const [e, t] = X(160), [r, n] = X(60), o =
|
|
1872
|
+
const [e, t] = X(160), [r, n] = X(60), o = D(null);
|
|
1832
1873
|
return {
|
|
1833
1874
|
minimizeTop: r,
|
|
1834
1875
|
minimizeLeft: e,
|
|
@@ -1940,7 +1981,7 @@ const mc = (e) => {
|
|
|
1940
1981
|
o !== e.current && (console.log("重新设置了左边位置"), a({ left: r.current })), s !== t.current && (console.log("重新设置了上边位置"), a({ top: n.current }));
|
|
1941
1982
|
}, [o, s]);
|
|
1942
1983
|
}, Pc = () => {
|
|
1943
|
-
const e =
|
|
1984
|
+
const e = D({
|
|
1944
1985
|
left: 0,
|
|
1945
1986
|
top: 0,
|
|
1946
1987
|
width: 0,
|
|
@@ -1975,7 +2016,7 @@ const mc = (e) => {
|
|
|
1975
2016
|
setDialogSize: n,
|
|
1976
2017
|
setDialogPosition: o
|
|
1977
2018
|
}) => {
|
|
1978
|
-
const s =
|
|
2019
|
+
const s = be(() => /* @__PURE__ */ h.jsx(
|
|
1979
2020
|
"div",
|
|
1980
2021
|
{
|
|
1981
2022
|
ref: i,
|
|
@@ -1985,47 +2026,47 @@ const mc = (e) => {
|
|
|
1985
2026
|
display: "none"
|
|
1986
2027
|
}
|
|
1987
2028
|
}
|
|
1988
|
-
), []), i =
|
|
2029
|
+
), []), i = D(null), a = D(), l = D(!1), [u, d] = X(!1), g = D(0), f = D(0), b = ($, C) => {
|
|
1989
2030
|
l.current = !0, d(!0), a.current = C;
|
|
1990
|
-
const { clientX:
|
|
1991
|
-
g.current =
|
|
1992
|
-
const S = parseFloat(t.current.style.left), E = parseFloat(t.current.style.top), F = t.current.offsetWidth,
|
|
1993
|
-
i.current.style.display = "block", i.current.style.left = `${S - 0.5 * F}px`, i.current.style.top = `${E - 0.5 *
|
|
2031
|
+
const { clientX: x, clientY: _ } = $;
|
|
2032
|
+
g.current = x, f.current = _;
|
|
2033
|
+
const S = parseFloat(t.current.style.left), E = parseFloat(t.current.style.top), F = t.current.offsetWidth, A = t.current.offsetHeight;
|
|
2034
|
+
i.current.style.display = "block", i.current.style.left = `${S - 0.5 * F}px`, i.current.style.top = `${E - 0.5 * A}px`, i.current.style.width = `${F}px`, i.current.style.height = `${A}px`;
|
|
1994
2035
|
}, p = ($) => {
|
|
1995
2036
|
if (l.current) {
|
|
1996
|
-
const { clientX: C, clientY:
|
|
1997
|
-
let N =
|
|
2037
|
+
const { clientX: C, clientY: x } = $, _ = C - g.current, S = x - f.current, E = parseFloat(i.current.style.left), F = parseFloat(i.current.style.top), A = i.current.offsetWidth, L = i.current.offsetHeight, Q = r.current.width, te = r.current.height, le = e.current.scrollWidth, se = e.current.scrollHeight;
|
|
2038
|
+
let N = A, W = L, V = E, G = F;
|
|
1998
2039
|
switch (a.current) {
|
|
1999
2040
|
case "lt": {
|
|
2000
|
-
N = N - _, W = W - S, G = G + S, V = V + _, N < Q && (N =
|
|
2041
|
+
N = N - _, W = W - S, G = G + S, V = V + _, N < Q && (N = A, V = E), W < te && (W = L, G = F), V < 0 && (V = 0, N = A), G < 0 && (G = 0, W = L);
|
|
2001
2042
|
break;
|
|
2002
2043
|
}
|
|
2003
2044
|
case "rt": {
|
|
2004
|
-
N = N + _, W = W - S, G = G + S, V = E, N < Q && (N =
|
|
2045
|
+
N = N + _, W = W - S, G = G + S, V = E, N < Q && (N = A), W < te && (W = L, G = F), N > le - V && (N = le - V), G < 0 && (G = 0, W = L);
|
|
2005
2046
|
break;
|
|
2006
2047
|
}
|
|
2007
2048
|
case "rb": {
|
|
2008
|
-
N = N + _, W = W + S, G = F, V = E, N < Q && (N =
|
|
2049
|
+
N = N + _, W = W + S, G = F, V = E, N < Q && (N = A), W < te && (W = L), N > le - V && (N = le - V), W > se - G && (W = se - G);
|
|
2009
2050
|
break;
|
|
2010
2051
|
}
|
|
2011
2052
|
case "lb": {
|
|
2012
|
-
N = N - _, W = W + S, G = F, V = V + _, N < Q && (N =
|
|
2053
|
+
N = N - _, W = W + S, G = F, V = V + _, N < Q && (N = A, V = E), W < te && (W = L), V < 0 && (V = 0, N = A), W > se - G && (W = se - G);
|
|
2013
2054
|
break;
|
|
2014
2055
|
}
|
|
2015
2056
|
}
|
|
2016
|
-
i.current.style.left = `${V}px`, i.current.style.top = `${G}px`, i.current.style.width = `${N}px`, i.current.style.height = `${W}px`, g.current = C, f.current =
|
|
2057
|
+
i.current.style.left = `${V}px`, i.current.style.top = `${G}px`, i.current.style.width = `${N}px`, i.current.style.height = `${W}px`, g.current = C, f.current = x;
|
|
2017
2058
|
}
|
|
2018
2059
|
}, v = () => {
|
|
2019
2060
|
if (l.current) {
|
|
2020
2061
|
l.current = !1, d(!1), i.current.style.display = "none";
|
|
2021
|
-
const { left: $, top: C, width:
|
|
2022
|
-
o({ left: S, top: E }), n({ width: F, height:
|
|
2062
|
+
const { left: $, top: C, width: x, height: _ } = i.current.style, S = parseFloat($) + 0.5 * parseFloat(x), E = parseFloat(C) + 0.5 * parseFloat(_), F = parseFloat(x), A = parseFloat(_);
|
|
2063
|
+
o({ left: S, top: E }), n({ width: F, height: A });
|
|
2023
2064
|
}
|
|
2024
|
-
},
|
|
2065
|
+
}, w = ($) => b($, "lt"), R = ($) => b($, "rt"), T = ($) => b($, "rb"), j = ($) => b($, "lb"), z = be(($) => {
|
|
2025
2066
|
p($);
|
|
2026
|
-
}, []), I =
|
|
2067
|
+
}, []), I = be(() => {
|
|
2027
2068
|
v();
|
|
2028
|
-
}, []), Y =
|
|
2069
|
+
}, []), Y = be(() => {
|
|
2029
2070
|
v();
|
|
2030
2071
|
}, []);
|
|
2031
2072
|
return q(() => (document.body.addEventListener("mousemove", z), document.body.addEventListener("mouseup", I), document.body.addEventListener("mouseleave", Y), () => {
|
|
@@ -2033,7 +2074,7 @@ const mc = (e) => {
|
|
|
2033
2074
|
}), []), {
|
|
2034
2075
|
resizingState: u,
|
|
2035
2076
|
DashedBox: s,
|
|
2036
|
-
onMousedownResizeLt:
|
|
2077
|
+
onMousedownResizeLt: w,
|
|
2037
2078
|
onMousedownResizeRt: R,
|
|
2038
2079
|
onMousedownResizeRb: T,
|
|
2039
2080
|
onMousedownResizeLb: j
|
|
@@ -2046,24 +2087,21 @@ const mc = (e) => {
|
|
|
2046
2087
|
const [n, o] = X(0), s = () => {
|
|
2047
2088
|
o((C) => C + 1);
|
|
2048
2089
|
};
|
|
2049
|
-
q(() => {
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
C.unobserve(e), C.disconnect();
|
|
2053
|
-
};
|
|
2054
|
-
}, [e]);
|
|
2090
|
+
q(() => (window.addEventListener("resize", s), () => {
|
|
2091
|
+
window.removeEventListener("resize", s);
|
|
2092
|
+
}), []);
|
|
2055
2093
|
const { containerSizeTarget: i, setContainerSizeTarget: a } = Ec({
|
|
2056
2094
|
container: e
|
|
2057
|
-
}), { width: l, height: u } = r, { width: d, height: g } = t, f = d || l, b = g || u, { clientWidth: p, clientHeight: v } = i.current,
|
|
2095
|
+
}), { width: l, height: u } = r, { width: d, height: g } = t, f = d || l, b = g || u, { clientWidth: p, clientHeight: v } = i.current, w = f ? f > p ? p : f : 0, R = b ? b > v ? v : b : "unset", T = D(w), j = D(R), z = (C) => {
|
|
2058
2096
|
T.current = C.width, j.current = C.height;
|
|
2059
|
-
}, I =
|
|
2097
|
+
}, I = D(Math.floor(p / 2)), Y = D(Math.floor(v / 2)), $ = (C) => {
|
|
2060
2098
|
I.current = C.left, Y.current = C.top;
|
|
2061
2099
|
};
|
|
2062
2100
|
return q(() => {
|
|
2063
|
-
|
|
2101
|
+
console.log("触发了内部parentResizeRecord"), a(), z({ width: w, height: R }), $({
|
|
2064
2102
|
left: Math.floor(p / 2),
|
|
2065
2103
|
top: Math.floor(v / 2)
|
|
2066
|
-
})
|
|
2104
|
+
});
|
|
2067
2105
|
}, [n]), {
|
|
2068
2106
|
containerSizeTarget: i,
|
|
2069
2107
|
parentResizeRecord: n,
|
|
@@ -2071,13 +2109,13 @@ const mc = (e) => {
|
|
|
2071
2109
|
initTop: Y,
|
|
2072
2110
|
initWidth: T,
|
|
2073
2111
|
initHeight: j,
|
|
2074
|
-
curPropsWidth:
|
|
2112
|
+
curPropsWidth: w,
|
|
2075
2113
|
curPropsHeight: R,
|
|
2076
2114
|
setInitPosition: $,
|
|
2077
2115
|
setInitSize: z
|
|
2078
2116
|
};
|
|
2079
2117
|
}, Fc = (e, t, r, n) => {
|
|
2080
|
-
const o =
|
|
2118
|
+
const o = D(null);
|
|
2081
2119
|
return q(() => {
|
|
2082
2120
|
if (e) {
|
|
2083
2121
|
const s = t.current.offsetWidth, i = t.current.offsetHeight;
|
|
@@ -2091,7 +2129,7 @@ const mc = (e) => {
|
|
|
2091
2129
|
minResizeRecord: o
|
|
2092
2130
|
};
|
|
2093
2131
|
}, Ec = ({ container: e }) => {
|
|
2094
|
-
const t = e === document.body, r =
|
|
2132
|
+
const t = e === document.body, r = D({
|
|
2095
2133
|
clientWidth: t ? window.innerWidth : e.clientWidth,
|
|
2096
2134
|
clientHeight: t ? window.innerHeight : e.clientHeight,
|
|
2097
2135
|
scrollWidth: t ? window.innerWidth : e.scrollWidth,
|
|
@@ -2108,14 +2146,14 @@ const mc = (e) => {
|
|
|
2108
2146
|
};
|
|
2109
2147
|
}
|
|
2110
2148
|
};
|
|
2111
|
-
},
|
|
2149
|
+
}, Dt = {
|
|
2112
2150
|
"minimize-windows": "_minimize-windows_12u3y_1",
|
|
2113
2151
|
"minimize-windows-title": "_minimize-windows-title_12u3y_43",
|
|
2114
2152
|
"minimize-windows-operate": "_minimize-windows-operate_12u3y_55"
|
|
2115
|
-
},
|
|
2153
|
+
}, Ac = ({
|
|
2116
2154
|
onClick: e
|
|
2117
2155
|
}) => /* @__PURE__ */ h.jsx(
|
|
2118
|
-
|
|
2156
|
+
ae,
|
|
2119
2157
|
{
|
|
2120
2158
|
type: "link",
|
|
2121
2159
|
onClick: e,
|
|
@@ -2129,10 +2167,10 @@ const mc = (e) => {
|
|
|
2129
2167
|
}
|
|
2130
2168
|
)
|
|
2131
2169
|
}
|
|
2132
|
-
),
|
|
2170
|
+
), Pn = ({
|
|
2133
2171
|
onClick: e
|
|
2134
2172
|
}) => /* @__PURE__ */ h.jsx(
|
|
2135
|
-
|
|
2173
|
+
ae,
|
|
2136
2174
|
{
|
|
2137
2175
|
type: "link",
|
|
2138
2176
|
onClick: e,
|
|
@@ -2146,10 +2184,10 @@ const mc = (e) => {
|
|
|
2146
2184
|
}
|
|
2147
2185
|
)
|
|
2148
2186
|
}
|
|
2149
|
-
),
|
|
2187
|
+
), Dc = ({
|
|
2150
2188
|
onClick: e
|
|
2151
2189
|
}) => /* @__PURE__ */ h.jsx(
|
|
2152
|
-
|
|
2190
|
+
ae,
|
|
2153
2191
|
{
|
|
2154
2192
|
type: "link",
|
|
2155
2193
|
onClick: e,
|
|
@@ -2163,11 +2201,11 @@ const mc = (e) => {
|
|
|
2163
2201
|
}
|
|
2164
2202
|
)
|
|
2165
2203
|
}
|
|
2166
|
-
),
|
|
2204
|
+
), Rn = ({
|
|
2167
2205
|
onClick: e,
|
|
2168
2206
|
disabled: t
|
|
2169
2207
|
}) => /* @__PURE__ */ h.jsx(
|
|
2170
|
-
|
|
2208
|
+
ae,
|
|
2171
2209
|
{
|
|
2172
2210
|
type: "link",
|
|
2173
2211
|
onClick: e,
|
|
@@ -2182,7 +2220,7 @@ const mc = (e) => {
|
|
|
2182
2220
|
}
|
|
2183
2221
|
)
|
|
2184
2222
|
}
|
|
2185
|
-
), { useToken:
|
|
2223
|
+
), { useToken: Oc } = Xe, $c = fe(
|
|
2186
2224
|
({
|
|
2187
2225
|
title: e,
|
|
2188
2226
|
left: t,
|
|
@@ -2193,7 +2231,7 @@ const mc = (e) => {
|
|
|
2193
2231
|
onClosesquare: i,
|
|
2194
2232
|
className: a
|
|
2195
2233
|
}, l) => {
|
|
2196
|
-
const { token: u } =
|
|
2234
|
+
const { token: u } = Oc(), d = {
|
|
2197
2235
|
borderRadius: u.borderRadiusLG
|
|
2198
2236
|
};
|
|
2199
2237
|
return /* @__PURE__ */ h.jsxs(
|
|
@@ -2205,13 +2243,13 @@ const mc = (e) => {
|
|
|
2205
2243
|
top: r,
|
|
2206
2244
|
...d
|
|
2207
2245
|
},
|
|
2208
|
-
className: `${
|
|
2246
|
+
className: `${Dt["minimize-windows"]} ${a}`,
|
|
2209
2247
|
ref: l,
|
|
2210
2248
|
children: [
|
|
2211
|
-
/* @__PURE__ */ h.jsx("div", { className:
|
|
2212
|
-
/* @__PURE__ */ h.jsxs("div", { className:
|
|
2213
|
-
/* @__PURE__ */ h.jsx(
|
|
2214
|
-
/* @__PURE__ */ h.jsx(
|
|
2249
|
+
/* @__PURE__ */ h.jsx("div", { className: Dt["minimize-windows-title"], title: e, children: e }),
|
|
2250
|
+
/* @__PURE__ */ h.jsxs("div", { className: Dt["minimize-windows-operate"], children: [
|
|
2251
|
+
/* @__PURE__ */ h.jsx(Pn, { onClick: s }),
|
|
2252
|
+
/* @__PURE__ */ h.jsx(Rn, { onClick: i, disabled: o })
|
|
2215
2253
|
] })
|
|
2216
2254
|
]
|
|
2217
2255
|
}
|
|
@@ -2229,7 +2267,7 @@ const mc = (e) => {
|
|
|
2229
2267
|
"dialog__resize-rt": "_dialog__resize-rt_128q2_125",
|
|
2230
2268
|
"dialog__resize-rb": "_dialog__resize-rb_128q2_137",
|
|
2231
2269
|
"dialog__resize-lb": "_dialog__resize-lb_128q2_149"
|
|
2232
|
-
}, { useToken: Lc } =
|
|
2270
|
+
}, { useToken: Lc } = Xe, Nc = fe((e, t) => {
|
|
2233
2271
|
console.log("render Dialog==============================================");
|
|
2234
2272
|
const { token: r } = Lc(), n = {
|
|
2235
2273
|
borderRadius: r.borderRadiusLG
|
|
@@ -2241,33 +2279,33 @@ const mc = (e) => {
|
|
|
2241
2279
|
renderFooter: l,
|
|
2242
2280
|
renderTitle: u,
|
|
2243
2281
|
getPopperContainer: d
|
|
2244
|
-
} = e, g = d(), [f, b] = fc(!1), [p, v] = X(!1), { open:
|
|
2282
|
+
} = e, g = d(), [f, b] = fc(!1), [p, v] = X(!1), { open: w, close: R } = vc(
|
|
2245
2283
|
f,
|
|
2246
2284
|
e,
|
|
2247
2285
|
b,
|
|
2248
2286
|
v
|
|
2249
|
-
), { footerActions: T } = hc(e, p), j =
|
|
2287
|
+
), { footerActions: T } = hc(e, p), j = D(null), z = D(null), I = D(null), Y = D(null), {
|
|
2250
2288
|
containerSizeTarget: $,
|
|
2251
2289
|
parentResizeRecord: C,
|
|
2252
|
-
initLeft:
|
|
2290
|
+
initLeft: x,
|
|
2253
2291
|
initTop: _,
|
|
2254
2292
|
initWidth: S,
|
|
2255
2293
|
initHeight: E,
|
|
2256
2294
|
curPropsWidth: F,
|
|
2257
|
-
curPropsHeight:
|
|
2295
|
+
curPropsHeight: A
|
|
2258
2296
|
} = jc({
|
|
2259
2297
|
container: g,
|
|
2260
2298
|
dialogProps: e,
|
|
2261
2299
|
baseDialogProps: s
|
|
2262
|
-
}), { dialogChangeRecord: L, setDialogChangeRecord: Q } = Pc(), { dialogWidth: te, dialogHeight: le, setDialogSize:
|
|
2300
|
+
}), { dialogChangeRecord: L, setDialogChangeRecord: Q } = Pc(), { dialogWidth: te, dialogHeight: le, setDialogSize: se } = yc({
|
|
2263
2301
|
initWidth: S,
|
|
2264
2302
|
initHeight: E,
|
|
2265
2303
|
setDialogChangeRecord: Q
|
|
2266
2304
|
}), { dialogLeft: N, dialogTop: W, setDialogPosition: V } = _c({
|
|
2267
2305
|
initTop: _,
|
|
2268
|
-
initLeft:
|
|
2306
|
+
initLeft: x,
|
|
2269
2307
|
setDialogChangeRecord: Q
|
|
2270
|
-
}), { dialogMaxHeight: G, contentMaxHeight: pt } =
|
|
2308
|
+
}), { dialogMaxHeight: G, contentMaxHeight: pt } = xc({
|
|
2271
2309
|
visible: f,
|
|
2272
2310
|
containerSizeTarget: $,
|
|
2273
2311
|
dialogHeight: le,
|
|
@@ -2279,32 +2317,32 @@ const mc = (e) => {
|
|
|
2279
2317
|
j,
|
|
2280
2318
|
te,
|
|
2281
2319
|
le
|
|
2282
|
-
), { minimizeLeft: ke, minimizeTop: Ie, minimizeRef:
|
|
2320
|
+
), { minimizeLeft: ke, minimizeTop: Ie, minimizeRef: he, setMinimizePosition: De } = Cc(), {
|
|
2283
2321
|
minimizeVisible: Pe,
|
|
2284
2322
|
maximizeVisible: ht,
|
|
2285
2323
|
onMaximize: Le,
|
|
2286
2324
|
onMinimize: mt,
|
|
2287
2325
|
onRecovery: bt,
|
|
2288
|
-
onClose:
|
|
2289
|
-
} =
|
|
2326
|
+
onClose: we
|
|
2327
|
+
} = wc({
|
|
2290
2328
|
containerSizeTarget: $,
|
|
2291
2329
|
dialogChangeRecord: L,
|
|
2292
2330
|
close: R,
|
|
2293
|
-
setDialogSize:
|
|
2331
|
+
setDialogSize: se,
|
|
2294
2332
|
setDialogPosition: V
|
|
2295
2333
|
}), Re = () => {
|
|
2296
|
-
console.log("触发了initDialog"),
|
|
2334
|
+
console.log("触发了initDialog"), se({ width: S.current, height: E.current }), V({ left: x.current, top: _.current }), De({ left: 160, top: 60 });
|
|
2297
2335
|
};
|
|
2298
2336
|
q(() => {
|
|
2299
|
-
|
|
2337
|
+
console.log("触发了外部parentResizeRecord"), Re();
|
|
2300
2338
|
}, [C]), Sc({
|
|
2301
2339
|
initWidth: S,
|
|
2302
2340
|
initHeight: E,
|
|
2303
|
-
initLeft:
|
|
2341
|
+
initLeft: x,
|
|
2304
2342
|
initTop: _,
|
|
2305
2343
|
curPropsWidth: F,
|
|
2306
|
-
curPropsHeight:
|
|
2307
|
-
setDialogSize:
|
|
2344
|
+
curPropsHeight: A,
|
|
2345
|
+
setDialogSize: se,
|
|
2308
2346
|
setDialogPosition: V
|
|
2309
2347
|
}), Nr({
|
|
2310
2348
|
containerSizeTarget: $,
|
|
@@ -2313,55 +2351,55 @@ const mc = (e) => {
|
|
|
2313
2351
|
setDialogPosition: V
|
|
2314
2352
|
}), Nr({
|
|
2315
2353
|
containerSizeTarget: $,
|
|
2316
|
-
dialogHeaderRef:
|
|
2317
|
-
dialogRef:
|
|
2318
|
-
setDialogPosition:
|
|
2354
|
+
dialogHeaderRef: he,
|
|
2355
|
+
dialogRef: he,
|
|
2356
|
+
setDialogPosition: De
|
|
2319
2357
|
});
|
|
2320
|
-
const { dialogTopShowClassConfig:
|
|
2358
|
+
const { dialogTopShowClassConfig: Oe } = Tc({
|
|
2321
2359
|
visible: f,
|
|
2322
2360
|
container: g,
|
|
2323
2361
|
dialogRef: j,
|
|
2324
|
-
minimizeRef:
|
|
2362
|
+
minimizeRef: he
|
|
2325
2363
|
}), {
|
|
2326
2364
|
resizingState: $e,
|
|
2327
2365
|
DashedBox: yt,
|
|
2328
2366
|
onMousedownResizeLt: _t,
|
|
2329
2367
|
onMousedownResizeRt: Ne,
|
|
2330
|
-
onMousedownResizeRb:
|
|
2331
|
-
onMousedownResizeLb:
|
|
2368
|
+
onMousedownResizeRb: wt,
|
|
2369
|
+
onMousedownResizeLb: xt
|
|
2332
2370
|
} = Rc({
|
|
2333
2371
|
containerSizeTarget: $,
|
|
2334
2372
|
dialogRef: j,
|
|
2335
2373
|
minResizeRecord: gt,
|
|
2336
|
-
setDialogSize:
|
|
2374
|
+
setDialogSize: se,
|
|
2337
2375
|
setDialogPosition: V
|
|
2338
2376
|
});
|
|
2339
2377
|
return Se(t, () => ({
|
|
2340
|
-
open:
|
|
2341
|
-
close:
|
|
2378
|
+
open: w,
|
|
2379
|
+
close: we,
|
|
2342
2380
|
setLoading: v,
|
|
2343
2381
|
getVisible: () => f
|
|
2344
|
-
})), /* @__PURE__ */ h.jsxs("div", { className:
|
|
2382
|
+
})), /* @__PURE__ */ h.jsxs("div", { className: Oe.xphDialog, children: [
|
|
2345
2383
|
i && f ? /* @__PURE__ */ h.jsx("div", { className: ne["xph-dialog-mask"] }) : null,
|
|
2346
2384
|
/* @__PURE__ */ h.jsx(
|
|
2347
2385
|
$c,
|
|
2348
2386
|
{
|
|
2349
2387
|
visible: Pe,
|
|
2350
|
-
className: `${
|
|
2388
|
+
className: `${Oe.xphMinimizeDialog}`,
|
|
2351
2389
|
loading: p,
|
|
2352
|
-
ref:
|
|
2390
|
+
ref: he,
|
|
2353
2391
|
left: ke,
|
|
2354
2392
|
top: Ie,
|
|
2355
2393
|
title: a,
|
|
2356
2394
|
onMaximize: () => Le("minimize"),
|
|
2357
|
-
onClosesquare:
|
|
2395
|
+
onClosesquare: we
|
|
2358
2396
|
}
|
|
2359
2397
|
),
|
|
2360
2398
|
/* @__PURE__ */ h.jsxs(
|
|
2361
2399
|
"div",
|
|
2362
2400
|
{
|
|
2363
2401
|
ref: j,
|
|
2364
|
-
className: `${ne["xph-dialog-wrapper"]} ${
|
|
2402
|
+
className: `${ne["xph-dialog-wrapper"]} ${Oe.xphDialogWrapper}`,
|
|
2365
2403
|
style: {
|
|
2366
2404
|
display: f && !Pe ? "flex" : "none",
|
|
2367
2405
|
left: N,
|
|
@@ -2377,9 +2415,9 @@ const mc = (e) => {
|
|
|
2377
2415
|
/* @__PURE__ */ h.jsxs("div", { ref: z, className: ne.dialog__header, children: [
|
|
2378
2416
|
/* @__PURE__ */ h.jsx("div", { children: u ? u() : a }),
|
|
2379
2417
|
/* @__PURE__ */ h.jsxs("div", { className: ne["dialog__header-btns"], children: [
|
|
2380
|
-
/* @__PURE__ */ h.jsx(
|
|
2381
|
-
ht ? /* @__PURE__ */ h.jsx(
|
|
2382
|
-
/* @__PURE__ */ h.jsx(
|
|
2418
|
+
/* @__PURE__ */ h.jsx(Ac, { onClick: mt }),
|
|
2419
|
+
ht ? /* @__PURE__ */ h.jsx(Dc, { onClick: bt }) : /* @__PURE__ */ h.jsx(Pn, { onClick: () => Le("maximize") }),
|
|
2420
|
+
/* @__PURE__ */ h.jsx(Rn, { onClick: we, disabled: p })
|
|
2383
2421
|
] })
|
|
2384
2422
|
] }),
|
|
2385
2423
|
/* @__PURE__ */ h.jsx(
|
|
@@ -2390,7 +2428,7 @@ const mc = (e) => {
|
|
|
2390
2428
|
style: {
|
|
2391
2429
|
maxHeight: pt
|
|
2392
2430
|
},
|
|
2393
|
-
children: /* @__PURE__ */ h.jsx(
|
|
2431
|
+
children: /* @__PURE__ */ h.jsx(Yr, { spinning: p, children: f ? o : null })
|
|
2394
2432
|
}
|
|
2395
2433
|
),
|
|
2396
2434
|
l ? /* @__PURE__ */ h.jsx("div", { ref: Y, children: l({ loading: p }) }) : /* @__PURE__ */ h.jsx("div", { ref: Y, className: ne.dialog__footer, children: /* @__PURE__ */ h.jsx(Jt, { ...T }) }),
|
|
@@ -2412,14 +2450,14 @@ const mc = (e) => {
|
|
|
2412
2450
|
"div",
|
|
2413
2451
|
{
|
|
2414
2452
|
className: `${ne.dialog__resize} ${ne["dialog__resize-rb"]}`,
|
|
2415
|
-
onMouseDown:
|
|
2453
|
+
onMouseDown: wt
|
|
2416
2454
|
}
|
|
2417
2455
|
),
|
|
2418
2456
|
/* @__PURE__ */ h.jsx(
|
|
2419
2457
|
"div",
|
|
2420
2458
|
{
|
|
2421
2459
|
className: `${ne.dialog__resize} ${ne["dialog__resize-lb"]}`,
|
|
2422
|
-
onMouseDown:
|
|
2460
|
+
onMouseDown: xt
|
|
2423
2461
|
}
|
|
2424
2462
|
)
|
|
2425
2463
|
]
|
|
@@ -2430,7 +2468,7 @@ const mc = (e) => {
|
|
|
2430
2468
|
}), Wc = (e, t) => {
|
|
2431
2469
|
const { children: r, ...n } = e, { baseDialogProps: o, dialogProps: s } = mc(n), { getPopperContainer: i } = s;
|
|
2432
2470
|
return console.log("render XphDialog=============================================="), /* @__PURE__ */ h.jsx(Hc, { getPopperContainer: i, children: /* @__PURE__ */ h.jsx(Nc, { ...s, baseDialogProps: o, ref: t, children: r }) });
|
|
2433
|
-
}, Bc =
|
|
2471
|
+
}, Bc = fe(Wc), Hc = ({
|
|
2434
2472
|
children: e,
|
|
2435
2473
|
getPopperContainer: t
|
|
2436
2474
|
}) => {
|
|
@@ -2440,54 +2478,76 @@ const mc = (e) => {
|
|
|
2440
2478
|
n(o);
|
|
2441
2479
|
}, []), r ? bo.createPortal(e, r) : null;
|
|
2442
2480
|
};
|
|
2481
|
+
function Vc(e) {
|
|
2482
|
+
const { extendAuthProps: t } = Uc();
|
|
2483
|
+
return {
|
|
2484
|
+
authProps: {
|
|
2485
|
+
...ue(ue({
|
|
2486
|
+
auth: (o) => !1
|
|
2487
|
+
}, t), e)
|
|
2488
|
+
}
|
|
2489
|
+
};
|
|
2490
|
+
}
|
|
2491
|
+
const Uc = () => {
|
|
2492
|
+
const { extendProps: e } = Je();
|
|
2493
|
+
return {
|
|
2494
|
+
extendAuthProps: e == null ? void 0 : e.auth
|
|
2495
|
+
};
|
|
2496
|
+
}, au = (e) => {
|
|
2497
|
+
const { children: t, ...r } = e, { authProps: n } = Vc(r), { auth: o, key: s } = n;
|
|
2498
|
+
return Ge(() => {
|
|
2499
|
+
let a = !1;
|
|
2500
|
+
return s && o && (oe(s) ? a = s.every((l) => o(l)) : a = o(s)), a;
|
|
2501
|
+
}, [o, s]) ? t : null;
|
|
2502
|
+
};
|
|
2443
2503
|
function Zt(e) {
|
|
2444
2504
|
return "component" in e;
|
|
2445
2505
|
}
|
|
2446
2506
|
function Qt(e) {
|
|
2447
2507
|
return "render" in e;
|
|
2448
2508
|
}
|
|
2449
|
-
function
|
|
2509
|
+
function qc(e) {
|
|
2450
2510
|
return e.includes("Input") || e.includes("Complete") ? "请输入" : e.includes("Picker") || e.includes("Select") || e.includes("Cascader") || e.includes("Checkbox") || e.includes("Radio") || e.includes("Switch") ? "请选择" : "";
|
|
2451
2511
|
}
|
|
2452
|
-
function
|
|
2512
|
+
function Yc(e, t, r) {
|
|
2453
2513
|
["DatePicker", "MonthPicker", "WeekPicker", "TimePicker"].includes(
|
|
2454
2514
|
t
|
|
2455
2515
|
) ? e.type = r ? "string" : "object" : ["RangePicker", "Upload", "CheckboxGroup", "TimePicker"].includes(t) ? e.type = "array" : ["InputNumber"].includes(t) && (e.type = "number");
|
|
2456
2516
|
}
|
|
2457
|
-
const
|
|
2517
|
+
const Gc = [
|
|
2458
2518
|
"DatePicker",
|
|
2459
2519
|
"MonthPicker",
|
|
2460
2520
|
"RangePicker",
|
|
2461
2521
|
"WeekPicker",
|
|
2462
2522
|
"TimePicker"
|
|
2463
|
-
],
|
|
2523
|
+
], Xc = (e) => {
|
|
2464
2524
|
const { show: t, ifShow: r, required: n, disabled: o, componentProps: s } = e;
|
|
2465
2525
|
return !!(Z(t) || Z(r) || Z(n) || Z(o) || Z(s) || Qt(e));
|
|
2466
|
-
},
|
|
2526
|
+
}, Kc = (e) => [
|
|
2467
2527
|
"application/json",
|
|
2468
2528
|
"application/javascript",
|
|
2469
2529
|
"text/plain",
|
|
2470
2530
|
"text/html",
|
|
2471
2531
|
"text/css"
|
|
2472
|
-
].includes(e) ? `${e}; charset=utf-8` : e,
|
|
2473
|
-
const n =
|
|
2532
|
+
].includes(e) ? `${e}; charset=utf-8` : e, Jc = (e, t, r) => {
|
|
2533
|
+
const n = D(null), o = D(null), { handleCollapseChangeFalse: s } = r.current || {}, { show: i, ifShow: a } = e;
|
|
2474
2534
|
let l = !0, u = !0;
|
|
2475
2535
|
if (Ht(i) && (l = i), Ht(a) && (u = a), Z(i)) {
|
|
2476
2536
|
l = i({ model: t });
|
|
2477
2537
|
const d = Lr(n.current) ? l : n.current;
|
|
2478
2538
|
q(() => {
|
|
2479
|
-
|
|
2539
|
+
it(l, d) || s && s();
|
|
2480
2540
|
}, [t]);
|
|
2481
2541
|
}
|
|
2482
2542
|
if (Z(a)) {
|
|
2483
2543
|
u = a({ model: t });
|
|
2484
2544
|
const d = Lr(o.current) ? u : o.current;
|
|
2485
2545
|
q(() => {
|
|
2486
|
-
|
|
2546
|
+
it(u, d) || s && s();
|
|
2487
2547
|
}, [t]);
|
|
2488
2548
|
}
|
|
2489
2549
|
return n.current = l, o.current = u, { isShow: l, isIfShow: u };
|
|
2490
|
-
},
|
|
2550
|
+
}, Zc = (e, t) => {
|
|
2491
2551
|
const { collapsible: r, collapseNum: n } = e, [o, s] = X(
|
|
2492
2552
|
!!(r && t >= n)
|
|
2493
2553
|
);
|
|
@@ -2495,7 +2555,7 @@ const qc = [
|
|
|
2495
2555
|
itemCollapse: o,
|
|
2496
2556
|
setItemCollapse: s
|
|
2497
2557
|
};
|
|
2498
|
-
},
|
|
2558
|
+
}, Qc = ({
|
|
2499
2559
|
item: e,
|
|
2500
2560
|
model: t,
|
|
2501
2561
|
isShow: r,
|
|
@@ -2503,10 +2563,10 @@ const qc = [
|
|
|
2503
2563
|
}) => {
|
|
2504
2564
|
const { rules: o = [], label: s, required: i } = e;
|
|
2505
2565
|
let a = o;
|
|
2506
|
-
const l = Zt(e), u = l ?
|
|
2566
|
+
const l = Zt(e), u = l ? qc(e.component) + s : "";
|
|
2507
2567
|
function d(p, v) {
|
|
2508
|
-
const
|
|
2509
|
-
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(
|
|
2568
|
+
const w = p.message || u;
|
|
2569
|
+
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(w) : Promise.resolve();
|
|
2510
2570
|
}
|
|
2511
2571
|
const g = Z(i) ? i({ model: t }) : i;
|
|
2512
2572
|
g && (!a || a.length === 0 ? a = [{ required: g, validator: d }] : a.findIndex(
|
|
@@ -2520,33 +2580,33 @@ const qc = [
|
|
|
2520
2580
|
if (r || (p.required = !1), l) {
|
|
2521
2581
|
const { component: v } = e;
|
|
2522
2582
|
Reflect.has(p, "type") || (p.type = v === "InputNumber" ? "number" : "string"), p.message = p.message || u, (v.includes("Input") || v.includes("Textarea")) && (p.whitespace = !0);
|
|
2523
|
-
const
|
|
2524
|
-
|
|
2583
|
+
const w = n.valueFormat;
|
|
2584
|
+
Yc(p, v, w);
|
|
2525
2585
|
}
|
|
2526
2586
|
}
|
|
2527
2587
|
const b = a.findIndex((p) => p.max);
|
|
2528
2588
|
return b !== -1 && !a[b].validator && (a[b].message = a[b].message || `字符数应小于${a[b].max}位`), {
|
|
2529
2589
|
rules: a
|
|
2530
2590
|
};
|
|
2531
|
-
},
|
|
2591
|
+
}, el = (e, t, r) => {
|
|
2532
2592
|
const { disabled: n } = e;
|
|
2533
2593
|
let o = !1;
|
|
2534
2594
|
const { disabled: s } = t;
|
|
2535
2595
|
return Z(s) && (o = s({ model: r })), Ht(s) && (o = s), {
|
|
2536
2596
|
disabled: Reflect.has(t, "disabled") ? o : n
|
|
2537
2597
|
};
|
|
2538
|
-
},
|
|
2598
|
+
}, tl = (e, t) => {
|
|
2539
2599
|
const r = {}, { componentProps: n = {} } = e;
|
|
2540
2600
|
return Z(n) && Object.assign(r, n({ model: t })), Object.assign(r, n), {
|
|
2541
2601
|
componentProps: r
|
|
2542
2602
|
};
|
|
2543
|
-
},
|
|
2603
|
+
}, rl = (e, t) => {
|
|
2544
2604
|
const { colProps: r = {} } = e, { colProps: n = { span: 24 } } = t;
|
|
2545
2605
|
return { colProps: { ...n, ...r } };
|
|
2546
|
-
},
|
|
2606
|
+
}, nl = ({ formProps: e }) => {
|
|
2547
2607
|
const { items: t } = e;
|
|
2548
2608
|
return { formItems: t.map((n) => ({ ...n })) };
|
|
2549
|
-
},
|
|
2609
|
+
}, ol = (e, t) => {
|
|
2550
2610
|
const r = (a) => (Object.keys(a).forEach((l) => {
|
|
2551
2611
|
Object.defineProperty(a, l, {
|
|
2552
2612
|
value: a[l],
|
|
@@ -2562,13 +2622,13 @@ const qc = [
|
|
|
2562
2622
|
e.items.forEach((a) => {
|
|
2563
2623
|
n[a.name] = a.initialValue;
|
|
2564
2624
|
});
|
|
2565
|
-
const o =
|
|
2625
|
+
const o = Xc(t), s = o ? et.useWatch((a) => r(a)) : null;
|
|
2566
2626
|
return {
|
|
2567
|
-
rewritingModel:
|
|
2627
|
+
rewritingModel: Ge(() => s || r(n), [s]),
|
|
2568
2628
|
isusewatch: o
|
|
2569
2629
|
};
|
|
2570
|
-
},
|
|
2571
|
-
const e =
|
|
2630
|
+
}, cu = () => {
|
|
2631
|
+
const e = D(null);
|
|
2572
2632
|
function t(n) {
|
|
2573
2633
|
e.current = n;
|
|
2574
2634
|
}
|
|
@@ -2607,7 +2667,7 @@ const qc = [
|
|
|
2607
2667
|
), e.current = null;
|
|
2608
2668
|
}), []), [t, r];
|
|
2609
2669
|
};
|
|
2610
|
-
function
|
|
2670
|
+
function sl(e, t = {}) {
|
|
2611
2671
|
const r = /^\[(.+)\]$/;
|
|
2612
2672
|
if (r.test(e)) {
|
|
2613
2673
|
const n = e.match(r);
|
|
@@ -2622,7 +2682,7 @@ function nl(e, t = {}) {
|
|
|
2622
2682
|
}
|
|
2623
2683
|
}
|
|
2624
2684
|
}
|
|
2625
|
-
function
|
|
2685
|
+
function il(e, t = {}) {
|
|
2626
2686
|
const r = /^\{(.+)\}$/;
|
|
2627
2687
|
if (r.test(e)) {
|
|
2628
2688
|
const n = e.match(r);
|
|
@@ -2637,7 +2697,7 @@ function ol(e, t = {}) {
|
|
|
2637
2697
|
}
|
|
2638
2698
|
}
|
|
2639
2699
|
}
|
|
2640
|
-
function
|
|
2700
|
+
function al(e, t) {
|
|
2641
2701
|
const r = t.fieldMapToTime;
|
|
2642
2702
|
if (!r || !Array.isArray(r))
|
|
2643
2703
|
return e;
|
|
@@ -2653,28 +2713,28 @@ function Wr(e, t) {
|
|
|
2653
2713
|
continue;
|
|
2654
2714
|
}
|
|
2655
2715
|
const [a, l] = e[n], [u, d] = Array.isArray(i) ? i : [i, i];
|
|
2656
|
-
e[o] =
|
|
2716
|
+
e[o] = tt(a).format(u), e[s] = tt(l).format(d), Reflect.deleteProperty(e, n);
|
|
2657
2717
|
}
|
|
2658
2718
|
return e;
|
|
2659
2719
|
}
|
|
2660
|
-
const
|
|
2720
|
+
const cl = (e, t, r) => {
|
|
2661
2721
|
const n = e.filter((i) => i.name);
|
|
2662
2722
|
return {
|
|
2663
2723
|
handleFormatRenderValues: (i) => {
|
|
2664
2724
|
const a = {}, l = [];
|
|
2665
2725
|
return n.forEach((u) => {
|
|
2666
|
-
const d = Reflect.has(i, u.name), g =
|
|
2726
|
+
const d = Reflect.has(i, u.name), g = sl(u.name, i) || il(u.name, i);
|
|
2667
2727
|
if (d || g) {
|
|
2668
2728
|
const f = g || i[u.name];
|
|
2669
2729
|
if (Zt(u))
|
|
2670
|
-
if (
|
|
2671
|
-
if (
|
|
2730
|
+
if (Gc.includes(u.component)) {
|
|
2731
|
+
if (oe(f)) {
|
|
2672
2732
|
const b = [];
|
|
2673
2733
|
for (const p of f)
|
|
2674
|
-
b.push(p ?
|
|
2734
|
+
b.push(p ? tt(p) : null);
|
|
2675
2735
|
a[u.name] = b;
|
|
2676
2736
|
} else
|
|
2677
|
-
a[u.name] = f ?
|
|
2737
|
+
a[u.name] = f ? tt(f) : null;
|
|
2678
2738
|
l.push(u.name);
|
|
2679
2739
|
} else
|
|
2680
2740
|
a[u.name] = f, l.push(u.name);
|
|
@@ -2695,19 +2755,19 @@ const sl = (e, t, r) => {
|
|
|
2695
2755
|
const [v] = b;
|
|
2696
2756
|
if (!v || Z(p))
|
|
2697
2757
|
continue;
|
|
2698
|
-
const { transformDateFunc:
|
|
2758
|
+
const { transformDateFunc: w } = t, R = (d = (u = (l = r.current) == null ? void 0 : l.get(v)) == null ? void 0 : u.current) == null ? void 0 : d.componentProps, T = R == null ? void 0 : R.valueFormat;
|
|
2699
2759
|
if (ce(p)) {
|
|
2700
2760
|
const j = p;
|
|
2701
|
-
j.format && (p =
|
|
2761
|
+
j.format && (p = w == null ? void 0 : w(j, T));
|
|
2702
2762
|
}
|
|
2703
|
-
|
|
2704
|
-
(j) =>
|
|
2705
|
-
)),
|
|
2763
|
+
oe(p) && ((g = p[0]) != null && g.format) && ((f = p[1]) != null && f.format) && (p = p.map(
|
|
2764
|
+
(j) => w == null ? void 0 : w(j, T)
|
|
2765
|
+
)), _n(p) && (p === "" ? p = void 0 : p = p.trim()), a[v] = p;
|
|
2706
2766
|
}
|
|
2707
|
-
return
|
|
2767
|
+
return al(a, t);
|
|
2708
2768
|
}
|
|
2709
2769
|
};
|
|
2710
|
-
},
|
|
2770
|
+
}, ll = (e, t, r) => ({
|
|
2711
2771
|
getFieldsValue: (...l) => r(
|
|
2712
2772
|
e.getFieldsValue(...l)
|
|
2713
2773
|
),
|
|
@@ -2718,11 +2778,11 @@ const sl = (e, t, r) => {
|
|
|
2718
2778
|
resetFields: async () => e.resetFields(),
|
|
2719
2779
|
validator: async (l) => e.validateFields(l).then((u) => r(u)),
|
|
2720
2780
|
scrollToField: async (l, u) => e.scrollToField(l, u)
|
|
2721
|
-
}),
|
|
2722
|
-
const { extendFormProps: t } =
|
|
2781
|
+
}), ul = (e) => {
|
|
2782
|
+
const { extendFormProps: t } = jn();
|
|
2723
2783
|
return {
|
|
2724
2784
|
formProps: {
|
|
2725
|
-
...
|
|
2785
|
+
...ue(ue({
|
|
2726
2786
|
collapseNum: 5,
|
|
2727
2787
|
colon: !1,
|
|
2728
2788
|
items: [],
|
|
@@ -2736,16 +2796,16 @@ const sl = (e, t, r) => {
|
|
|
2736
2796
|
}
|
|
2737
2797
|
};
|
|
2738
2798
|
}, ft = (e) => {
|
|
2739
|
-
const { immediate: t = !0, params: r, api: n, apiCallback: o, isUseWatch: s } = e, i =
|
|
2799
|
+
const { immediate: t = !0, params: r, api: n, apiCallback: o, isUseWatch: s } = e, i = D(!0), a = D(r), l = () => {
|
|
2740
2800
|
n && Z(n) && (r ? n(r).then(o) : n().then(o), a.current = r);
|
|
2741
2801
|
};
|
|
2742
2802
|
return q(() => {
|
|
2743
|
-
i.current && (t && l(), i.current = !1), !i.current && s && (
|
|
2803
|
+
i.current && (t && l(), i.current = !1), !i.current && s && (it(r, a.current) || t && l());
|
|
2744
2804
|
}, [r]), {
|
|
2745
2805
|
getApiData: l
|
|
2746
2806
|
};
|
|
2747
|
-
},
|
|
2748
|
-
const { collapsible: r, collapseNum: n } = e, o =
|
|
2807
|
+
}, dl = (e, t) => {
|
|
2808
|
+
const { collapsible: r, collapseNum: n } = e, o = D();
|
|
2749
2809
|
return {
|
|
2750
2810
|
collapsible: r,
|
|
2751
2811
|
collapseNum: n,
|
|
@@ -2769,8 +2829,8 @@ const sl = (e, t, r) => {
|
|
|
2769
2829
|
});
|
|
2770
2830
|
}
|
|
2771
2831
|
};
|
|
2772
|
-
},
|
|
2773
|
-
const { extendProps: e, extendComp: t } =
|
|
2832
|
+
}, jn = () => {
|
|
2833
|
+
const { extendProps: e, extendComp: t } = Je(), r = (n) => {
|
|
2774
2834
|
const o = t == null ? void 0 : t.form;
|
|
2775
2835
|
o && Object.keys(o).forEach((s) => {
|
|
2776
2836
|
n.set(s, o[s]);
|
|
@@ -2780,7 +2840,7 @@ const sl = (e, t, r) => {
|
|
|
2780
2840
|
extendFormProps: e == null ? void 0 : e.form,
|
|
2781
2841
|
setExtendFormComp: r
|
|
2782
2842
|
};
|
|
2783
|
-
},
|
|
2843
|
+
}, fl = (e) => {
|
|
2784
2844
|
console.log("render ApiSelect");
|
|
2785
2845
|
const {
|
|
2786
2846
|
api: t,
|
|
@@ -2797,18 +2857,18 @@ const sl = (e, t, r) => {
|
|
|
2797
2857
|
}), d = (f) => {
|
|
2798
2858
|
f && !n && u(), s && s(f);
|
|
2799
2859
|
}, g = () => {
|
|
2800
|
-
const { api: f, params: b, immediate: p, isusewatch: v, ...
|
|
2801
|
-
return
|
|
2860
|
+
const { api: f, params: b, immediate: p, isusewatch: v, ...w } = e;
|
|
2861
|
+
return w;
|
|
2802
2862
|
};
|
|
2803
2863
|
return /* @__PURE__ */ h.jsx(
|
|
2804
|
-
|
|
2864
|
+
Gr,
|
|
2805
2865
|
{
|
|
2806
2866
|
...g(),
|
|
2807
2867
|
options: a,
|
|
2808
2868
|
onDropdownVisibleChange: d
|
|
2809
2869
|
}
|
|
2810
2870
|
);
|
|
2811
|
-
},
|
|
2871
|
+
}, pl = (e) => {
|
|
2812
2872
|
console.log("render ApiTreeSelect");
|
|
2813
2873
|
const {
|
|
2814
2874
|
api: t,
|
|
@@ -2825,18 +2885,18 @@ const sl = (e, t, r) => {
|
|
|
2825
2885
|
}), d = (f) => {
|
|
2826
2886
|
f && !n && u(), s && s(f);
|
|
2827
2887
|
}, g = () => {
|
|
2828
|
-
const { api: f, params: b, immediate: p, isusewatch: v, ...
|
|
2829
|
-
return
|
|
2888
|
+
const { api: f, params: b, immediate: p, isusewatch: v, ...w } = e;
|
|
2889
|
+
return w;
|
|
2830
2890
|
};
|
|
2831
2891
|
return /* @__PURE__ */ h.jsx(
|
|
2832
|
-
|
|
2892
|
+
Xr,
|
|
2833
2893
|
{
|
|
2834
2894
|
...g(),
|
|
2835
2895
|
treeData: a,
|
|
2836
2896
|
onDropdownVisibleChange: d
|
|
2837
2897
|
}
|
|
2838
2898
|
);
|
|
2839
|
-
},
|
|
2899
|
+
}, gl = (e) => {
|
|
2840
2900
|
console.log("render ApiTransfer");
|
|
2841
2901
|
const { api: t, params: r, isusewatch: n } = e, o = n === "true", [s, i] = Te.useState([]);
|
|
2842
2902
|
ft({
|
|
@@ -2849,8 +2909,8 @@ const sl = (e, t, r) => {
|
|
|
2849
2909
|
const { api: l, params: u, isusewatch: d, ...g } = e;
|
|
2850
2910
|
return g;
|
|
2851
2911
|
};
|
|
2852
|
-
return /* @__PURE__ */ h.jsx(
|
|
2853
|
-
},
|
|
2912
|
+
return /* @__PURE__ */ h.jsx(Kr, { ...a(), dataSource: s });
|
|
2913
|
+
}, hl = (e) => {
|
|
2854
2914
|
console.log("render ApiAutoComplete");
|
|
2855
2915
|
const {
|
|
2856
2916
|
api: t,
|
|
@@ -2867,23 +2927,23 @@ const sl = (e, t, r) => {
|
|
|
2867
2927
|
}), d = (f) => {
|
|
2868
2928
|
f && !n && u(), s && s(f);
|
|
2869
2929
|
}, g = () => {
|
|
2870
|
-
const { api: f, params: b, immediate: p, isusewatch: v, ...
|
|
2871
|
-
return
|
|
2930
|
+
const { api: f, params: b, immediate: p, isusewatch: v, ...w } = e;
|
|
2931
|
+
return w;
|
|
2872
2932
|
};
|
|
2873
2933
|
return /* @__PURE__ */ h.jsx(
|
|
2874
|
-
|
|
2934
|
+
Jr,
|
|
2875
2935
|
{
|
|
2876
2936
|
...g(),
|
|
2877
2937
|
options: a,
|
|
2878
2938
|
onDropdownVisibleChange: d
|
|
2879
2939
|
}
|
|
2880
2940
|
);
|
|
2881
|
-
},
|
|
2941
|
+
}, me = {
|
|
2882
2942
|
String: "String",
|
|
2883
2943
|
"String[]": "String[]",
|
|
2884
2944
|
"File[]": "File[]",
|
|
2885
2945
|
FileList: "FileList"
|
|
2886
|
-
},
|
|
2946
|
+
}, ml = (e) => {
|
|
2887
2947
|
console.log("render AutoUpload"), console.log(dr());
|
|
2888
2948
|
const t = "", {
|
|
2889
2949
|
api: r,
|
|
@@ -2897,97 +2957,97 @@ const sl = (e, t, r) => {
|
|
|
2897
2957
|
// 默认不开启裁剪
|
|
2898
2958
|
data: a,
|
|
2899
2959
|
// 默认带上的参数
|
|
2900
|
-
returnType: l =
|
|
2960
|
+
returnType: l = me.String,
|
|
2901
2961
|
// 默认返回String(如果多文件默认","拼接)
|
|
2902
2962
|
value: u = t,
|
|
2903
2963
|
// 默认文件列表
|
|
2904
2964
|
onChange: d
|
|
2905
|
-
} = e, g =
|
|
2965
|
+
} = e, g = D(!0), f = D(0), b = D([]), [p, v] = X([]), w = (C) => {
|
|
2906
2966
|
b.current = C, v([...C]);
|
|
2907
2967
|
}, R = () => {
|
|
2908
2968
|
const {
|
|
2909
2969
|
api: C,
|
|
2910
|
-
maxCount:
|
|
2970
|
+
maxCount: x,
|
|
2911
2971
|
maxSize: _,
|
|
2912
2972
|
openCrop: S,
|
|
2913
2973
|
beforeUpload: E,
|
|
2914
2974
|
fileList: F,
|
|
2915
|
-
returnType:
|
|
2975
|
+
returnType: A,
|
|
2916
2976
|
...L
|
|
2917
2977
|
} = e;
|
|
2918
2978
|
return L;
|
|
2919
2979
|
}, T = (C) => {
|
|
2920
|
-
const
|
|
2921
|
-
|
|
2980
|
+
const x = C.size / 1024 / 1024 < o;
|
|
2981
|
+
x || jt.error(`文件大小超过:${o}M, 请重试`);
|
|
2922
2982
|
const _ = b.current.length + f.current < n;
|
|
2923
|
-
return _ || jt.error(`文件数量不能超过${n}个`),
|
|
2983
|
+
return _ || jt.error(`文件数量不能超过${n}个`), x && _ && f.current++, x && _ && j(C), Ot.LIST_IGNORE;
|
|
2924
2984
|
}, j = (C) => {
|
|
2925
2985
|
i ? (jt.error("暂时不支持裁剪功能,后续兼容。。。。"), z({ file: C })) : z({ file: C });
|
|
2926
2986
|
}, z = (C) => {
|
|
2927
|
-
r ? r({ file: C.file, ...a }).then((
|
|
2928
|
-
|
|
2987
|
+
r ? r({ file: C.file, ...a }).then((x) => {
|
|
2988
|
+
w([...b.current, ...x]);
|
|
2929
2989
|
}).finally(() => {
|
|
2930
2990
|
f.current--;
|
|
2931
2991
|
}) : (Object.assign(C.file, {
|
|
2932
2992
|
status: "done",
|
|
2933
2993
|
url: URL.createObjectURL(
|
|
2934
2994
|
new Blob([C.file], {
|
|
2935
|
-
type:
|
|
2995
|
+
type: Kc(C.file.type)
|
|
2936
2996
|
})
|
|
2937
2997
|
)
|
|
2938
|
-
}),
|
|
2998
|
+
}), w([...b.current, C.file]), f.current--);
|
|
2939
2999
|
}, I = (C) => {
|
|
2940
|
-
const { file:
|
|
3000
|
+
const { file: x, fileList: _ } = C, { status: S } = x;
|
|
2941
3001
|
switch (S) {
|
|
2942
3002
|
case "removed": {
|
|
2943
|
-
|
|
3003
|
+
w([..._]);
|
|
2944
3004
|
break;
|
|
2945
3005
|
}
|
|
2946
3006
|
}
|
|
2947
3007
|
}, Y = (C) => {
|
|
2948
|
-
const
|
|
2949
|
-
const E = S.split("/"), F = E[E.length - 1], [
|
|
2950
|
-
return
|
|
3008
|
+
const x = (S) => {
|
|
3009
|
+
const E = S.split("/"), F = E[E.length - 1], [A] = F.split("?");
|
|
3010
|
+
return A;
|
|
2951
3011
|
};
|
|
2952
3012
|
return { uid: ((S) => {
|
|
2953
3013
|
const E = b.current.find((F) => F.url === S);
|
|
2954
3014
|
return E ? E.uid : dr();
|
|
2955
|
-
})(C), name:
|
|
3015
|
+
})(C), name: x(C), url: C, status: "done" };
|
|
2956
3016
|
}, $ = () => {
|
|
2957
3017
|
switch (l) {
|
|
2958
|
-
case
|
|
3018
|
+
case me.String:
|
|
2959
3019
|
return p.map((C) => C.url).join(",");
|
|
2960
|
-
case
|
|
3020
|
+
case me["String[]"]:
|
|
2961
3021
|
return p.map((C) => C.url);
|
|
2962
|
-
case
|
|
3022
|
+
case me["File[]"]:
|
|
2963
3023
|
return [...p];
|
|
2964
|
-
case
|
|
3024
|
+
case me.FileList:
|
|
2965
3025
|
return [...p];
|
|
2966
3026
|
}
|
|
2967
3027
|
};
|
|
2968
3028
|
return q(() => {
|
|
2969
3029
|
const C = $();
|
|
2970
|
-
if (
|
|
2971
|
-
let
|
|
3030
|
+
if (it(C, u)) return;
|
|
3031
|
+
let x = [];
|
|
2972
3032
|
switch (l) {
|
|
2973
|
-
case
|
|
2974
|
-
|
|
3033
|
+
case me.String: {
|
|
3034
|
+
x = (u || "").split(",").filter((_) => _).map((_) => Y(_));
|
|
2975
3035
|
break;
|
|
2976
3036
|
}
|
|
2977
|
-
case
|
|
2978
|
-
|
|
3037
|
+
case me["String[]"]: {
|
|
3038
|
+
x = (u || []).map((_) => Y(_));
|
|
2979
3039
|
break;
|
|
2980
3040
|
}
|
|
2981
|
-
case
|
|
2982
|
-
|
|
3041
|
+
case me["File[]"]: {
|
|
3042
|
+
x = (u || []).map((_) => _);
|
|
2983
3043
|
break;
|
|
2984
3044
|
}
|
|
2985
|
-
case
|
|
2986
|
-
|
|
3045
|
+
case me.FileList: {
|
|
3046
|
+
x = (u || []).map((_) => _);
|
|
2987
3047
|
break;
|
|
2988
3048
|
}
|
|
2989
3049
|
}
|
|
2990
|
-
x
|
|
3050
|
+
w(x);
|
|
2991
3051
|
}, [u]), q(() => {
|
|
2992
3052
|
if (g.current) {
|
|
2993
3053
|
g.current = !1;
|
|
@@ -2996,7 +3056,7 @@ const sl = (e, t, r) => {
|
|
|
2996
3056
|
const C = $();
|
|
2997
3057
|
d == null || d(C);
|
|
2998
3058
|
}, [p]), /* @__PURE__ */ h.jsx(
|
|
2999
|
-
|
|
3059
|
+
Ot,
|
|
3000
3060
|
{
|
|
3001
3061
|
listType: s,
|
|
3002
3062
|
...R(),
|
|
@@ -3008,35 +3068,35 @@ const sl = (e, t, r) => {
|
|
|
3008
3068
|
);
|
|
3009
3069
|
}, B = /* @__PURE__ */ new Map();
|
|
3010
3070
|
B.set("Input", Vt);
|
|
3011
|
-
B.set("ApiSelect",
|
|
3012
|
-
B.set("Select",
|
|
3071
|
+
B.set("ApiSelect", fl);
|
|
3072
|
+
B.set("Select", Gr);
|
|
3013
3073
|
B.set("InputNumber", eo);
|
|
3014
|
-
B.set("ApiTreeSelect",
|
|
3015
|
-
B.set("TreeSelect",
|
|
3016
|
-
B.set("ApiTransfer",
|
|
3017
|
-
B.set("Transfer",
|
|
3074
|
+
B.set("ApiTreeSelect", pl);
|
|
3075
|
+
B.set("TreeSelect", Xr);
|
|
3076
|
+
B.set("ApiTransfer", gl);
|
|
3077
|
+
B.set("Transfer", Kr);
|
|
3018
3078
|
B.set("Switch", to);
|
|
3019
|
-
B.set("Button",
|
|
3020
|
-
B.set("Radio",
|
|
3021
|
-
B.set("RadioGroup",
|
|
3022
|
-
B.set("Checkbox",
|
|
3023
|
-
B.set("CheckboxGroup",
|
|
3079
|
+
B.set("Button", ae);
|
|
3080
|
+
B.set("Radio", Zr);
|
|
3081
|
+
B.set("RadioGroup", Zr.Group);
|
|
3082
|
+
B.set("Checkbox", Qr);
|
|
3083
|
+
B.set("CheckboxGroup", Qr.Group);
|
|
3024
3084
|
B.set("Cascader", ro);
|
|
3025
3085
|
B.set("TimePicker", no);
|
|
3026
|
-
B.set("DatePicker",
|
|
3027
|
-
B.set("MonthPicker",
|
|
3028
|
-
B.set("WeekPicker",
|
|
3029
|
-
B.set("RangePicker",
|
|
3086
|
+
B.set("DatePicker", ct);
|
|
3087
|
+
B.set("MonthPicker", ct.MonthPicker);
|
|
3088
|
+
B.set("WeekPicker", ct.WeekPicker);
|
|
3089
|
+
B.set("RangePicker", ct.RangePicker);
|
|
3030
3090
|
B.set("InputPassword", Vt.Password);
|
|
3031
3091
|
B.set("InputTextArea", Vt.TextArea);
|
|
3032
|
-
B.set("ApiAutoComplete",
|
|
3033
|
-
B.set("AutoComplete",
|
|
3034
|
-
B.set("Upload",
|
|
3035
|
-
B.set("AutoUpload",
|
|
3036
|
-
const
|
|
3092
|
+
B.set("ApiAutoComplete", hl);
|
|
3093
|
+
B.set("AutoComplete", Jr);
|
|
3094
|
+
B.set("Upload", Ot);
|
|
3095
|
+
B.set("AutoUpload", ml);
|
|
3096
|
+
const Wr = {
|
|
3037
3097
|
"form-item-force": "_form-item-force_1hsf3_1",
|
|
3038
3098
|
"form-item-hidden": "_form-item-hidden_1hsf3_9"
|
|
3039
|
-
},
|
|
3099
|
+
}, bl = fe(
|
|
3040
3100
|
({
|
|
3041
3101
|
itemIndex: e,
|
|
3042
3102
|
itemProps: t,
|
|
@@ -3045,27 +3105,27 @@ const Br = {
|
|
|
3045
3105
|
collapseRef: o
|
|
3046
3106
|
}, s) => {
|
|
3047
3107
|
console.log("render FormItem", t.name);
|
|
3048
|
-
const { rewritingModel: i, isusewatch: a } =
|
|
3108
|
+
const { rewritingModel: i, isusewatch: a } = ol(n, t), { isIfShow: l, isShow: u } = Jc(
|
|
3049
3109
|
t,
|
|
3050
3110
|
i,
|
|
3051
3111
|
o
|
|
3052
|
-
), { colProps: d } =
|
|
3112
|
+
), { colProps: d } = rl(t, n), { componentProps: g } = tl(
|
|
3053
3113
|
t,
|
|
3054
3114
|
i
|
|
3055
|
-
), { rules: f } =
|
|
3115
|
+
), { rules: f } = Qc({
|
|
3056
3116
|
item: t,
|
|
3057
3117
|
model: i,
|
|
3058
3118
|
isShow: u,
|
|
3059
3119
|
componentProps: g
|
|
3060
|
-
}), { disabled: b } =
|
|
3120
|
+
}), { disabled: b } = el(
|
|
3061
3121
|
n,
|
|
3062
3122
|
t,
|
|
3063
3123
|
i
|
|
3064
|
-
), { itemCollapse: p, setItemCollapse: v } =
|
|
3124
|
+
), { itemCollapse: p, setItemCollapse: v } = Zc(
|
|
3065
3125
|
n,
|
|
3066
3126
|
e
|
|
3067
3127
|
), {
|
|
3068
|
-
name:
|
|
3128
|
+
name: w,
|
|
3069
3129
|
label: R,
|
|
3070
3130
|
wrapperCol: T,
|
|
3071
3131
|
labelCol: j,
|
|
@@ -3080,17 +3140,17 @@ const Br = {
|
|
|
3080
3140
|
setItemCollapse: v
|
|
3081
3141
|
}));
|
|
3082
3142
|
const $ = () => ({
|
|
3083
|
-
name:
|
|
3143
|
+
name: w,
|
|
3084
3144
|
label: R,
|
|
3085
3145
|
rules: f,
|
|
3086
3146
|
wrapperCol: T,
|
|
3087
3147
|
labelCol: j,
|
|
3088
3148
|
valuePropName: z,
|
|
3089
3149
|
initialValue: I
|
|
3090
|
-
}), { setExtendFormComp: C } =
|
|
3150
|
+
}), { setExtendFormComp: C } = jn();
|
|
3091
3151
|
C(B);
|
|
3092
|
-
const
|
|
3093
|
-
if (
|
|
3152
|
+
const x = Zt(t), _ = Qt(t), S = () => {
|
|
3153
|
+
if (x) {
|
|
3094
3154
|
const E = B.get(t.component);
|
|
3095
3155
|
return /* @__PURE__ */ h.jsx(
|
|
3096
3156
|
E,
|
|
@@ -3103,41 +3163,41 @@ const Br = {
|
|
|
3103
3163
|
}
|
|
3104
3164
|
return _ ? t.render({
|
|
3105
3165
|
model: i,
|
|
3106
|
-
name:
|
|
3166
|
+
name: w,
|
|
3107
3167
|
disabled: b,
|
|
3108
3168
|
methods: r,
|
|
3109
3169
|
componentProps: g
|
|
3110
3170
|
}) : null;
|
|
3111
3171
|
};
|
|
3112
|
-
return /* @__PURE__ */ h.jsxs(
|
|
3113
|
-
Y ? /* @__PURE__ */ h.jsx("div", { className:
|
|
3172
|
+
return /* @__PURE__ */ h.jsxs(Vr, { children: [
|
|
3173
|
+
Y ? /* @__PURE__ */ h.jsx("div", { className: Wr["form-item-force"] }) : null,
|
|
3114
3174
|
l ? /* @__PURE__ */ h.jsx(
|
|
3115
3175
|
oo,
|
|
3116
3176
|
{
|
|
3117
3177
|
...d,
|
|
3118
|
-
className: u && !p ? void 0 :
|
|
3119
|
-
children: /* @__PURE__ */ h.jsx(
|
|
3178
|
+
className: u && !p ? void 0 : Wr["form-item-hidden"],
|
|
3179
|
+
children: /* @__PURE__ */ h.jsx(et.Item, { ...$(), children: S() })
|
|
3120
3180
|
}
|
|
3121
3181
|
) : null
|
|
3122
3182
|
] });
|
|
3123
3183
|
}
|
|
3124
|
-
),
|
|
3184
|
+
), vl = {
|
|
3125
3185
|
"collapse-wrapper": "_collapse-wrapper_ylm01_1"
|
|
3126
|
-
},
|
|
3186
|
+
}, yl = fe(
|
|
3127
3187
|
({
|
|
3128
3188
|
collapsible: e,
|
|
3129
3189
|
onClickExpand: t,
|
|
3130
3190
|
onClickFold: r
|
|
3131
3191
|
}, n) => {
|
|
3132
|
-
const [o, s] = X(e), i =
|
|
3192
|
+
const [o, s] = X(e), i = Ge(() => o, [o]), a = () => {
|
|
3133
3193
|
r(), s(!0);
|
|
3134
3194
|
}, l = () => {
|
|
3135
3195
|
t(), s(!1);
|
|
3136
3196
|
};
|
|
3137
3197
|
return Se(n, () => ({
|
|
3138
3198
|
handleCollapseChangeFalse: l
|
|
3139
|
-
})), /* @__PURE__ */ h.jsx("div", { className:
|
|
3140
|
-
|
|
3199
|
+
})), /* @__PURE__ */ h.jsx("div", { className: vl["collapse-wrapper"], children: i ? /* @__PURE__ */ h.jsx(
|
|
3200
|
+
ae,
|
|
3141
3201
|
{
|
|
3142
3202
|
onClick: l,
|
|
3143
3203
|
type: "link",
|
|
@@ -3145,7 +3205,7 @@ const Br = {
|
|
|
3145
3205
|
children: "展开"
|
|
3146
3206
|
}
|
|
3147
3207
|
) : /* @__PURE__ */ h.jsx(
|
|
3148
|
-
|
|
3208
|
+
ae,
|
|
3149
3209
|
{
|
|
3150
3210
|
onClick: a,
|
|
3151
3211
|
type: "link",
|
|
@@ -3154,22 +3214,22 @@ const Br = {
|
|
|
3154
3214
|
}
|
|
3155
3215
|
) });
|
|
3156
3216
|
}
|
|
3157
|
-
),
|
|
3217
|
+
), _l = {
|
|
3158
3218
|
"group-wrapper": "_group-wrapper_g8zqi_1"
|
|
3159
|
-
},
|
|
3219
|
+
}, wl = ({ formProps: e }) => {
|
|
3160
3220
|
const { renderActions: t } = e;
|
|
3161
|
-
return /* @__PURE__ */ h.jsx("div", { className:
|
|
3162
|
-
},
|
|
3221
|
+
return /* @__PURE__ */ h.jsx("div", { className: _l["group-wrapper"], children: t == null ? void 0 : t() });
|
|
3222
|
+
}, xl = {
|
|
3163
3223
|
"xph-form-action": "_xph-form-action_8ws73_1"
|
|
3164
|
-
},
|
|
3224
|
+
}, Cl = (e, t) => {
|
|
3165
3225
|
console.log("render Form");
|
|
3166
|
-
const [r] =
|
|
3226
|
+
const [r] = et.useForm(), { formProps: n } = ul(e), { formItems: o } = nl({ formProps: n }), s = D(/* @__PURE__ */ new Map()), {
|
|
3167
3227
|
collapsible: i,
|
|
3168
3228
|
collapseNum: a,
|
|
3169
3229
|
collapseRef: l,
|
|
3170
3230
|
onClickCollapseToFalse: u,
|
|
3171
3231
|
onClickCollapseToTrue: d
|
|
3172
|
-
} =
|
|
3232
|
+
} = dl(n, s), { handleFormatRenderValues: g, handleFormatReturnValues: f } = cl(
|
|
3173
3233
|
o,
|
|
3174
3234
|
n,
|
|
3175
3235
|
s
|
|
@@ -3177,9 +3237,9 @@ const Br = {
|
|
|
3177
3237
|
setFieldsValue: b,
|
|
3178
3238
|
getFieldsValue: p,
|
|
3179
3239
|
resetFields: v,
|
|
3180
|
-
validator:
|
|
3240
|
+
validator: w,
|
|
3181
3241
|
scrollToField: R
|
|
3182
|
-
} =
|
|
3242
|
+
} = ll(
|
|
3183
3243
|
r,
|
|
3184
3244
|
g,
|
|
3185
3245
|
f
|
|
@@ -3190,7 +3250,7 @@ const Br = {
|
|
|
3190
3250
|
labelCol: Y,
|
|
3191
3251
|
colon: $,
|
|
3192
3252
|
disabled: C,
|
|
3193
|
-
labelWrap:
|
|
3253
|
+
labelWrap: x,
|
|
3194
3254
|
labelAlign: _,
|
|
3195
3255
|
scrollToFirstError: S,
|
|
3196
3256
|
size: E
|
|
@@ -3201,7 +3261,7 @@ const Br = {
|
|
|
3201
3261
|
labelCol: Y,
|
|
3202
3262
|
colon: $,
|
|
3203
3263
|
disabled: C,
|
|
3204
|
-
labelWrap:
|
|
3264
|
+
labelWrap: x,
|
|
3205
3265
|
labelAlign: _,
|
|
3206
3266
|
scrollToFirstError: S,
|
|
3207
3267
|
size: E
|
|
@@ -3210,16 +3270,16 @@ const Br = {
|
|
|
3210
3270
|
setFieldsValue: b,
|
|
3211
3271
|
getFieldsValue: p,
|
|
3212
3272
|
resetFields: v,
|
|
3213
|
-
validator:
|
|
3273
|
+
validator: w,
|
|
3214
3274
|
scrollToField: R
|
|
3215
3275
|
};
|
|
3216
3276
|
return Se(t, () => ({
|
|
3217
3277
|
...j
|
|
3218
3278
|
})), q(() => (console.log("Form is mounted======================="), n.register && n.register(j), () => {
|
|
3219
3279
|
console.log("Form is unmounted========================="), s.current.clear();
|
|
3220
|
-
}), []), /* @__PURE__ */ h.jsxs(
|
|
3280
|
+
}), []), /* @__PURE__ */ h.jsxs(et, { form: r, ...T(), children: [
|
|
3221
3281
|
/* @__PURE__ */ h.jsx(so, { children: o.map((z, I) => (s.current.has(z.name) || s.current.set(z.name, Te.createRef()), /* @__PURE__ */ h.jsx(
|
|
3222
|
-
|
|
3282
|
+
bl,
|
|
3223
3283
|
{
|
|
3224
3284
|
ref: s.current.get(z.name),
|
|
3225
3285
|
itemIndex: I,
|
|
@@ -3230,10 +3290,10 @@ const Br = {
|
|
|
3230
3290
|
},
|
|
3231
3291
|
I
|
|
3232
3292
|
))) }),
|
|
3233
|
-
/* @__PURE__ */ h.jsxs("div", { className:
|
|
3234
|
-
/* @__PURE__ */ h.jsx(
|
|
3293
|
+
/* @__PURE__ */ h.jsxs("div", { className: xl["xph-form-action"], children: [
|
|
3294
|
+
/* @__PURE__ */ h.jsx(wl, { formProps: n }),
|
|
3235
3295
|
i ? /* @__PURE__ */ h.jsx(
|
|
3236
|
-
|
|
3296
|
+
yl,
|
|
3237
3297
|
{
|
|
3238
3298
|
ref: l,
|
|
3239
3299
|
collapsible: o.length > a,
|
|
@@ -3243,18 +3303,18 @@ const Br = {
|
|
|
3243
3303
|
) : null
|
|
3244
3304
|
] })
|
|
3245
3305
|
] });
|
|
3246
|
-
},
|
|
3247
|
-
const { renderActions: r, showSearch: n, tableRef: o } = e, [s, i] = X(!1), a =
|
|
3306
|
+
}, Fn = fe(Cl), Tl = Ur(Fn), Sl = fe((e, t) => {
|
|
3307
|
+
const { renderActions: r, showSearch: n, tableRef: o } = e, [s, i] = X(!1), a = D(null), l = () => {
|
|
3248
3308
|
const { reloadData: f } = o.current;
|
|
3249
3309
|
f();
|
|
3250
3310
|
}, u = () => {
|
|
3251
3311
|
const { resetData: f } = o.current;
|
|
3252
3312
|
f();
|
|
3253
|
-
}, d =
|
|
3313
|
+
}, d = be(() => /* @__PURE__ */ h.jsxs("div", { style: { width: "100%", display: "flex" }, children: [
|
|
3254
3314
|
/* @__PURE__ */ h.jsx("div", { style: { flex: 1, width: 0 }, children: r == null ? void 0 : r() }),
|
|
3255
3315
|
n && /* @__PURE__ */ h.jsxs("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
3256
3316
|
/* @__PURE__ */ h.jsx(
|
|
3257
|
-
|
|
3317
|
+
ae,
|
|
3258
3318
|
{
|
|
3259
3319
|
type: "primary",
|
|
3260
3320
|
icon: /* @__PURE__ */ h.jsx(ho, {}),
|
|
@@ -3262,7 +3322,7 @@ const Br = {
|
|
|
3262
3322
|
children: "搜索"
|
|
3263
3323
|
}
|
|
3264
3324
|
),
|
|
3265
|
-
/* @__PURE__ */ h.jsx(
|
|
3325
|
+
/* @__PURE__ */ h.jsx(ae, { icon: /* @__PURE__ */ h.jsx(mo, {}), onClick: u, children: "重置" })
|
|
3266
3326
|
] })
|
|
3267
3327
|
] }), [n, r]), g = () => {
|
|
3268
3328
|
const { renderActions: f, ...b } = e;
|
|
@@ -3275,12 +3335,12 @@ const Br = {
|
|
|
3275
3335
|
/** 扩展了loading方法,让table调用 */
|
|
3276
3336
|
setFormLoading: i,
|
|
3277
3337
|
...a.current
|
|
3278
|
-
})), /* @__PURE__ */ h.jsx(
|
|
3279
|
-
}),
|
|
3280
|
-
const r =
|
|
3338
|
+
})), /* @__PURE__ */ h.jsx(Yr, { spinning: s, children: /* @__PURE__ */ h.jsx(Tl, { ref: a, ...g() }) });
|
|
3339
|
+
}), Pl = Ur(Fn), Rl = (e, t) => {
|
|
3340
|
+
const r = D(null), n = D(null), { formProps: o } = e, i = (() => {
|
|
3281
3341
|
const { formProps: d, ...g } = e;
|
|
3282
3342
|
return g;
|
|
3283
|
-
})(), a =
|
|
3343
|
+
})(), a = D(null), l = async () => {
|
|
3284
3344
|
const { onOk: d, renderFooter: g } = i;
|
|
3285
3345
|
if (!g) {
|
|
3286
3346
|
const { ok: f, data: b } = a.current;
|
|
@@ -3288,7 +3348,7 @@ const Br = {
|
|
|
3288
3348
|
n.current.validator().then(async (p) => {
|
|
3289
3349
|
r.current.setLoading(!0), await f({
|
|
3290
3350
|
values: n.current.getFieldsValue()
|
|
3291
|
-
}).then((
|
|
3351
|
+
}).then((w) => w).finally(() => {
|
|
3292
3352
|
r.current.setLoading(!1);
|
|
3293
3353
|
}) !== !1 && (r.current.close(), a.current = null);
|
|
3294
3354
|
});
|
|
@@ -3299,7 +3359,7 @@ const Br = {
|
|
|
3299
3359
|
r.current.setLoading(!0), await d({
|
|
3300
3360
|
values: p,
|
|
3301
3361
|
data: b
|
|
3302
|
-
}).then((
|
|
3362
|
+
}).then((w) => (console.log(w), w)).finally(() => {
|
|
3303
3363
|
r.current.setLoading(!1);
|
|
3304
3364
|
}) !== !1 && (r.current.close(), a.current = null);
|
|
3305
3365
|
});
|
|
@@ -3352,24 +3412,24 @@ const Br = {
|
|
|
3352
3412
|
ref: r,
|
|
3353
3413
|
onOk: l,
|
|
3354
3414
|
onCancel: u,
|
|
3355
|
-
children: /* @__PURE__ */ h.jsx(
|
|
3415
|
+
children: /* @__PURE__ */ h.jsx(Pl, { ...o, ref: n })
|
|
3356
3416
|
}
|
|
3357
3417
|
);
|
|
3358
|
-
},
|
|
3359
|
-
function
|
|
3418
|
+
}, jl = fe(Rl);
|
|
3419
|
+
function Fl({ searchForm: e }) {
|
|
3360
3420
|
return {
|
|
3361
|
-
searchFormRef:
|
|
3421
|
+
searchFormRef: D(null),
|
|
3362
3422
|
searchFormProps: e
|
|
3363
3423
|
};
|
|
3364
3424
|
}
|
|
3365
|
-
function
|
|
3425
|
+
function El(e) {
|
|
3366
3426
|
return "cellFunc" in e;
|
|
3367
3427
|
}
|
|
3368
|
-
function
|
|
3428
|
+
function Al(e) {
|
|
3369
3429
|
return "children" in e;
|
|
3370
3430
|
}
|
|
3371
|
-
const { useToken:
|
|
3372
|
-
const { curComponentProps: n, cellFuncProps: o } = t, { url: s, onClick: i } = n, { token: a } =
|
|
3431
|
+
const { useToken: Dl } = Xe, Ol = (e, t, r) => {
|
|
3432
|
+
const { curComponentProps: n, cellFuncProps: o } = t, { url: s, onClick: i } = n, { token: a } = Dl(), l = {
|
|
3373
3433
|
color: a.colorLink,
|
|
3374
3434
|
cursor: "pointer"
|
|
3375
3435
|
}, u = () => {
|
|
@@ -3390,12 +3450,12 @@ const { useToken: Fl } = Ge, El = (e, t, r) => {
|
|
|
3390
3450
|
mainStyle: Object.assign(l, (r == null ? void 0 : r.mainStyle) || {})
|
|
3391
3451
|
}
|
|
3392
3452
|
);
|
|
3393
|
-
},
|
|
3453
|
+
}, $l = {
|
|
3394
3454
|
"cellfunc-actions": "_cellfunc-actions_14drt_1"
|
|
3395
|
-
},
|
|
3455
|
+
}, Ml = (e, t, r) => {
|
|
3396
3456
|
const { curComponentProps: n, cellFuncProps: o } = t;
|
|
3397
|
-
return /* @__PURE__ */ h.jsx("div", { className:
|
|
3398
|
-
}, { useToken:
|
|
3457
|
+
return /* @__PURE__ */ h.jsx("div", { className: $l["cellfunc-actions"], children: /* @__PURE__ */ h.jsx(Jt, { ...n }) });
|
|
3458
|
+
}, { useToken: zl } = Xe, kl = {
|
|
3399
3459
|
0: {
|
|
3400
3460
|
color: "orange",
|
|
3401
3461
|
backgroundColor: "unset",
|
|
@@ -3476,25 +3536,25 @@ const { useToken: Fl } = Ge, El = (e, t, r) => {
|
|
|
3476
3536
|
backgroundColor: "unset",
|
|
3477
3537
|
border: "1px solid maroon"
|
|
3478
3538
|
}
|
|
3479
|
-
},
|
|
3539
|
+
}, Il = (e, t, r) => e.reduce((n, o, s) => {
|
|
3480
3540
|
var u;
|
|
3481
3541
|
const i = `${String(t.dataIndex)}${o.value}`, a = (u = o.config) == null ? void 0 : u.color, l = a ? r[a] ?? {
|
|
3482
3542
|
color: a,
|
|
3483
3543
|
backgroundColor: "unset",
|
|
3484
3544
|
border: `1px solid ${a}`
|
|
3485
|
-
} :
|
|
3545
|
+
} : kl[s] || {};
|
|
3486
3546
|
return n[i] = {
|
|
3487
3547
|
color: l.color,
|
|
3488
3548
|
backgroundColor: l.backgroundColor,
|
|
3489
3549
|
border: l.border
|
|
3490
3550
|
}, n;
|
|
3491
|
-
}, {}),
|
|
3551
|
+
}, {}), Ll = (e, t, r) => {
|
|
3492
3552
|
const {
|
|
3493
3553
|
curComponentProps: n,
|
|
3494
3554
|
cellFuncProps: {
|
|
3495
3555
|
renderPrams: { text: o, column: s }
|
|
3496
3556
|
}
|
|
3497
|
-
} = t, { token: i } =
|
|
3557
|
+
} = t, { token: i } = zl(), { enums: a } = n, l = {
|
|
3498
3558
|
primary: {
|
|
3499
3559
|
color: i.colorPrimary,
|
|
3500
3560
|
backgroundColor: i.colorPrimaryBg,
|
|
@@ -3520,7 +3580,7 @@ const { useToken: Fl } = Ge, El = (e, t, r) => {
|
|
|
3520
3580
|
backgroundColor: i.colorErrorBg,
|
|
3521
3581
|
border: `1px solid ${i.colorError}`
|
|
3522
3582
|
}
|
|
3523
|
-
}, d =
|
|
3583
|
+
}, d = Il(
|
|
3524
3584
|
a,
|
|
3525
3585
|
s,
|
|
3526
3586
|
l
|
|
@@ -3541,32 +3601,32 @@ const { useToken: Fl } = Ge, El = (e, t, r) => {
|
|
|
3541
3601
|
mainStyle: Object.assign((r == null ? void 0 : r.mainStyle) || {}, g)
|
|
3542
3602
|
}
|
|
3543
3603
|
);
|
|
3544
|
-
},
|
|
3604
|
+
}, Br = {
|
|
3545
3605
|
/** 超链接 */
|
|
3546
3606
|
link: {
|
|
3547
|
-
Comp:
|
|
3607
|
+
Comp: Ol
|
|
3548
3608
|
},
|
|
3549
3609
|
/** 操作组 */
|
|
3550
3610
|
actions: {
|
|
3551
|
-
Comp:
|
|
3611
|
+
Comp: Ml
|
|
3552
3612
|
},
|
|
3553
3613
|
/** tag标签 */
|
|
3554
3614
|
tag: {
|
|
3555
|
-
Comp:
|
|
3615
|
+
Comp: Ll
|
|
3556
3616
|
}
|
|
3557
|
-
},
|
|
3617
|
+
}, Nl = (e, t) => {
|
|
3558
3618
|
var o;
|
|
3559
3619
|
const {
|
|
3560
3620
|
renderPrams: { text: r }
|
|
3561
3621
|
} = e, n = (o = t == null ? void 0 : t.mainHandleText) == null ? void 0 : o.call(t);
|
|
3562
3622
|
return /* @__PURE__ */ h.jsx("span", { onClick: t == null ? void 0 : t.mainClick, style: t == null ? void 0 : t.mainStyle, children: n ?? r });
|
|
3563
|
-
},
|
|
3564
|
-
const { setExtendTableCellComp: t } =
|
|
3565
|
-
t(
|
|
3623
|
+
}, Wl = (e) => {
|
|
3624
|
+
const { setExtendTableCellComp: t } = An();
|
|
3625
|
+
t(Br);
|
|
3566
3626
|
const { dslConfig: r } = e;
|
|
3567
|
-
let n =
|
|
3627
|
+
let n = Nl.bind(null, e), o = 0;
|
|
3568
3628
|
for (; o < r.length; ) {
|
|
3569
|
-
const s = o++, i =
|
|
3629
|
+
const s = o++, i = Br[r[s].component];
|
|
3570
3630
|
i && (n = i.Comp.bind(null, n, {
|
|
3571
3631
|
curComponentProps: r[s].componentProps || {},
|
|
3572
3632
|
cellFuncProps: e
|
|
@@ -3574,10 +3634,10 @@ const { useToken: Fl } = Ge, El = (e, t, r) => {
|
|
|
3574
3634
|
}
|
|
3575
3635
|
return /* @__PURE__ */ h.jsx(n, {});
|
|
3576
3636
|
};
|
|
3577
|
-
function
|
|
3637
|
+
function En(e) {
|
|
3578
3638
|
return e.map((t) => {
|
|
3579
3639
|
let r = { ...t };
|
|
3580
|
-
if (
|
|
3640
|
+
if (El(r)) {
|
|
3581
3641
|
const { cellFunc: n, ...o } = r;
|
|
3582
3642
|
r = {
|
|
3583
3643
|
...o,
|
|
@@ -3588,24 +3648,24 @@ function Dn(e) {
|
|
|
3588
3648
|
index: u,
|
|
3589
3649
|
column: JSON.parse(JSON.stringify(o))
|
|
3590
3650
|
}, g = i ? n(d) : n;
|
|
3591
|
-
return /* @__PURE__ */ h.jsx(
|
|
3651
|
+
return /* @__PURE__ */ h.jsx(Wl, { dslConfig: g, renderPrams: d });
|
|
3592
3652
|
}
|
|
3593
3653
|
};
|
|
3594
3654
|
}
|
|
3595
|
-
return
|
|
3655
|
+
return Al(r) && r.children && Array.isArray(r.children) && (r.children = En(r.children)), r;
|
|
3596
3656
|
});
|
|
3597
3657
|
}
|
|
3598
|
-
function
|
|
3599
|
-
const { columns: t } = e.table
|
|
3600
|
-
return
|
|
3601
|
-
columns:
|
|
3658
|
+
function Bl(e) {
|
|
3659
|
+
const { columns: t } = e.table;
|
|
3660
|
+
return {
|
|
3661
|
+
columns: En(t)
|
|
3602
3662
|
};
|
|
3603
3663
|
}
|
|
3604
|
-
const
|
|
3605
|
-
const { extendTableProps: t } =
|
|
3664
|
+
const Hl = (e) => {
|
|
3665
|
+
const { extendTableProps: t } = An();
|
|
3606
3666
|
return {
|
|
3607
3667
|
tableProps: {
|
|
3608
|
-
...
|
|
3668
|
+
...ue(ue({
|
|
3609
3669
|
table: {
|
|
3610
3670
|
columns: [],
|
|
3611
3671
|
fullHeight: !1,
|
|
@@ -3639,12 +3699,12 @@ const Nl = (e) => {
|
|
|
3639
3699
|
}
|
|
3640
3700
|
};
|
|
3641
3701
|
};
|
|
3642
|
-
function
|
|
3702
|
+
function Vl(e) {
|
|
3643
3703
|
const { pagination: t, autoPagination: r } = e.table, [n, o] = X(
|
|
3644
3704
|
t
|
|
3645
|
-
), s =
|
|
3705
|
+
), s = D(
|
|
3646
3706
|
t
|
|
3647
|
-
), i =
|
|
3707
|
+
), i = Ge(() => n && (r === !0 || r === void 0) || !1, [n]);
|
|
3648
3708
|
return {
|
|
3649
3709
|
pagination: {
|
|
3650
3710
|
model: n,
|
|
@@ -3658,7 +3718,7 @@ function Wl(e) {
|
|
|
3658
3718
|
lastPaginationState: s
|
|
3659
3719
|
};
|
|
3660
3720
|
}
|
|
3661
|
-
function
|
|
3721
|
+
function Ul(e, t) {
|
|
3662
3722
|
const {
|
|
3663
3723
|
api: r,
|
|
3664
3724
|
formatDataSource: n,
|
|
@@ -3666,36 +3726,36 @@ function Bl(e, t) {
|
|
|
3666
3726
|
onChange: s,
|
|
3667
3727
|
requestFields: i,
|
|
3668
3728
|
responseFields: a
|
|
3669
|
-
} = e.table, l = e.onPaginationChange, { pagination: u, lastPaginationState: d } =
|
|
3729
|
+
} = e.table, l = e.onPaginationChange, { pagination: u, lastPaginationState: d } = Vl(e), [g, f] = X({
|
|
3670
3730
|
loading: !1,
|
|
3671
3731
|
dataSource: [],
|
|
3672
3732
|
selection: [],
|
|
3673
3733
|
backupsDataSource: []
|
|
3674
|
-
}), b =
|
|
3734
|
+
}), b = D({
|
|
3675
3735
|
loading: !1,
|
|
3676
3736
|
dataSource: [],
|
|
3677
3737
|
selection: [],
|
|
3678
3738
|
backupsDataSource: []
|
|
3679
3739
|
}), p = {
|
|
3680
3740
|
model: g,
|
|
3681
|
-
update: (
|
|
3741
|
+
update: (x) => {
|
|
3682
3742
|
var S;
|
|
3683
|
-
const _ = { ...b.current, ...
|
|
3743
|
+
const _ = { ...b.current, ...x };
|
|
3684
3744
|
f(_), b.current = _, (S = t.current) == null || S.setFormLoading(_.loading);
|
|
3685
3745
|
}
|
|
3686
3746
|
}, v = async () => {
|
|
3687
3747
|
q(() => {
|
|
3688
|
-
const { autoRequest:
|
|
3689
|
-
|
|
3748
|
+
const { autoRequest: x } = e.table, { validator: _ } = t.current;
|
|
3749
|
+
x && _().then((S) => {
|
|
3690
3750
|
j({ searchFormParams: S });
|
|
3691
3751
|
});
|
|
3692
3752
|
}, []);
|
|
3693
|
-
},
|
|
3694
|
-
searchFormParams:
|
|
3753
|
+
}, w = async ({
|
|
3754
|
+
searchFormParams: x,
|
|
3695
3755
|
paginationParams: _
|
|
3696
3756
|
}) => {
|
|
3697
3757
|
const S = {
|
|
3698
|
-
...
|
|
3758
|
+
...x,
|
|
3699
3759
|
/** 没传paginationParams默认就是上一次 */
|
|
3700
3760
|
[`${i.current}`]: d.current.current,
|
|
3701
3761
|
[`${i.pageSize}`]: d.current.pageSize,
|
|
@@ -3705,12 +3765,12 @@ function Bl(e, t) {
|
|
|
3705
3765
|
} : {}
|
|
3706
3766
|
};
|
|
3707
3767
|
return r(S).then((E) => {
|
|
3708
|
-
const { current: F, list:
|
|
3768
|
+
const { current: F, list: A, total: L } = fr(
|
|
3709
3769
|
a,
|
|
3710
3770
|
E
|
|
3711
3771
|
);
|
|
3712
3772
|
p.update({
|
|
3713
|
-
dataSource: n ? n(
|
|
3773
|
+
dataSource: n ? n(A) : A
|
|
3714
3774
|
}), u.update({
|
|
3715
3775
|
total: L,
|
|
3716
3776
|
current: F,
|
|
@@ -3720,15 +3780,15 @@ function Bl(e, t) {
|
|
|
3720
3780
|
p.update({ loading: !1 });
|
|
3721
3781
|
});
|
|
3722
3782
|
}, R = async ({
|
|
3723
|
-
searchFormParams:
|
|
3783
|
+
searchFormParams: x,
|
|
3724
3784
|
paginationParams: _
|
|
3725
3785
|
}) => {
|
|
3726
|
-
const S = { ...
|
|
3786
|
+
const S = { ...x };
|
|
3727
3787
|
return r(S).then((E) => {
|
|
3728
|
-
const { list: F } = fr(a, E),
|
|
3788
|
+
const { list: F } = fr(a, E), A = n ? n(F) : F;
|
|
3729
3789
|
p.update({
|
|
3730
3790
|
selection: [],
|
|
3731
|
-
dataSource:
|
|
3791
|
+
dataSource: A
|
|
3732
3792
|
}), u.update({
|
|
3733
3793
|
current: 1,
|
|
3734
3794
|
total: F.length
|
|
@@ -3737,18 +3797,18 @@ function Bl(e, t) {
|
|
|
3737
3797
|
p.update({ loading: !1 });
|
|
3738
3798
|
});
|
|
3739
3799
|
}, T = async ({
|
|
3740
|
-
searchFormParams:
|
|
3800
|
+
searchFormParams: x,
|
|
3741
3801
|
paginationParams: _
|
|
3742
3802
|
}) => {
|
|
3743
3803
|
var E;
|
|
3744
|
-
const S = { ...
|
|
3804
|
+
const S = { ...x };
|
|
3745
3805
|
if (_) {
|
|
3746
|
-
const { current: F, pageSize:
|
|
3806
|
+
const { current: F, pageSize: A } = _;
|
|
3747
3807
|
u.update({
|
|
3748
3808
|
current: F,
|
|
3749
|
-
pageSize:
|
|
3809
|
+
pageSize: A
|
|
3750
3810
|
});
|
|
3751
|
-
const L = (F - 1) *
|
|
3811
|
+
const L = (F - 1) * A, Q = L + A, te = (E = b.current.backupsDataSource) == null ? void 0 : E.slice(
|
|
3752
3812
|
L,
|
|
3753
3813
|
Q
|
|
3754
3814
|
);
|
|
@@ -3759,11 +3819,11 @@ function Bl(e, t) {
|
|
|
3759
3819
|
});
|
|
3760
3820
|
} else
|
|
3761
3821
|
return r(S).then((F) => {
|
|
3762
|
-
let
|
|
3763
|
-
const L = [...
|
|
3764
|
-
|
|
3822
|
+
let A = n ? n(F) : F;
|
|
3823
|
+
const L = [...A], Q = 0, te = Q + d.current.pageSize;
|
|
3824
|
+
A = A.slice(Q, te), p.update({
|
|
3765
3825
|
selection: [],
|
|
3766
|
-
dataSource:
|
|
3826
|
+
dataSource: A,
|
|
3767
3827
|
backupsDataSource: L
|
|
3768
3828
|
}), u.update({
|
|
3769
3829
|
current: 1,
|
|
@@ -3773,25 +3833,25 @@ function Bl(e, t) {
|
|
|
3773
3833
|
p.update({ loading: !1 });
|
|
3774
3834
|
});
|
|
3775
3835
|
}, j = async ({
|
|
3776
|
-
searchFormParams:
|
|
3836
|
+
searchFormParams: x,
|
|
3777
3837
|
paginationParams: _
|
|
3778
3838
|
}) => {
|
|
3779
3839
|
if (p.update({ loading: !0, selection: [] }), r)
|
|
3780
3840
|
switch (!!d.current) {
|
|
3781
3841
|
case !0:
|
|
3782
3842
|
return o === !0 ? T({
|
|
3783
|
-
searchFormParams:
|
|
3843
|
+
searchFormParams: x,
|
|
3784
3844
|
paginationParams: _
|
|
3785
3845
|
}) : o === !1 ? R({
|
|
3786
|
-
searchFormParams:
|
|
3846
|
+
searchFormParams: x,
|
|
3787
3847
|
paginationParams: _
|
|
3788
|
-
}) :
|
|
3789
|
-
searchFormParams:
|
|
3848
|
+
}) : w({
|
|
3849
|
+
searchFormParams: x,
|
|
3790
3850
|
paginationParams: _
|
|
3791
3851
|
});
|
|
3792
3852
|
case !1:
|
|
3793
3853
|
return R({
|
|
3794
|
-
searchFormParams:
|
|
3854
|
+
searchFormParams: x,
|
|
3795
3855
|
paginationParams: _
|
|
3796
3856
|
});
|
|
3797
3857
|
}
|
|
@@ -3801,31 +3861,31 @@ function Bl(e, t) {
|
|
|
3801
3861
|
table: p,
|
|
3802
3862
|
pagination: u,
|
|
3803
3863
|
firstGetTableData: v,
|
|
3804
|
-
onPaginationChange: (
|
|
3864
|
+
onPaginationChange: (x, _) => {
|
|
3805
3865
|
const { validator: S } = t.current;
|
|
3806
3866
|
S().then((E) => {
|
|
3807
3867
|
j({
|
|
3808
3868
|
searchFormParams: E,
|
|
3809
|
-
paginationParams: { current:
|
|
3869
|
+
paginationParams: { current: x, pageSize: _ }
|
|
3810
3870
|
});
|
|
3811
|
-
}), l && l(
|
|
3871
|
+
}), l && l(x, _);
|
|
3812
3872
|
},
|
|
3813
|
-
onAllChange: async (...
|
|
3814
|
-
const [_, S, E, F] =
|
|
3815
|
-
for (let L = 0; L <
|
|
3873
|
+
onAllChange: async (...x) => {
|
|
3874
|
+
const [_, S, E, F] = x, A = [];
|
|
3875
|
+
for (let L = 0; L < A.length && !A[L](); L++)
|
|
3816
3876
|
;
|
|
3817
3877
|
s && s(S, E, F);
|
|
3818
3878
|
},
|
|
3819
3879
|
resetData: async () => {
|
|
3820
|
-
const { resetFields:
|
|
3821
|
-
return
|
|
3880
|
+
const { resetFields: x, validator: _ } = t.current;
|
|
3881
|
+
return x().then(async () => {
|
|
3822
3882
|
const S = await _();
|
|
3823
3883
|
return j({ searchFormParams: S });
|
|
3824
3884
|
});
|
|
3825
3885
|
},
|
|
3826
3886
|
resetAllData: async () => {
|
|
3827
|
-
const { resetFields:
|
|
3828
|
-
return
|
|
3887
|
+
const { resetFields: x, validator: _ } = t.current;
|
|
3888
|
+
return x().then(async () => {
|
|
3829
3889
|
const S = {};
|
|
3830
3890
|
if (d.current) {
|
|
3831
3891
|
const { pageSize: E } = d.current;
|
|
@@ -3835,16 +3895,16 @@ function Bl(e, t) {
|
|
|
3835
3895
|
});
|
|
3836
3896
|
},
|
|
3837
3897
|
reloadData: async () => {
|
|
3838
|
-
const { validator:
|
|
3839
|
-
return
|
|
3898
|
+
const { validator: x } = t.current;
|
|
3899
|
+
return x().then((_) => j({
|
|
3840
3900
|
searchFormParams: _
|
|
3841
3901
|
}));
|
|
3842
3902
|
}
|
|
3843
3903
|
};
|
|
3844
3904
|
}
|
|
3845
|
-
const
|
|
3905
|
+
const ql = (e, t) => {
|
|
3846
3906
|
const { onRowSelectionChange: r } = e, { rowSelection: n } = e.table, o = () => {
|
|
3847
|
-
if (
|
|
3907
|
+
if (_n(n))
|
|
3848
3908
|
return {
|
|
3849
3909
|
type: n,
|
|
3850
3910
|
onChange: (s, i, a) => {
|
|
@@ -3871,28 +3931,23 @@ const Hl = (e, t) => {
|
|
|
3871
3931
|
getNewRowSelection: o
|
|
3872
3932
|
};
|
|
3873
3933
|
};
|
|
3874
|
-
function
|
|
3875
|
-
const { scroll: r, virtual: n } = e.table, o =
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
return o.current && g.observe(o.current), () => {
|
|
3883
|
-
g && o.current && g.unobserve(o.current);
|
|
3884
|
-
};
|
|
3885
|
-
}, []);
|
|
3886
|
-
const u = it(() => t ? n ? { x: s, y: a - 70, ...r } : { x: "max-content", y: a - 70, ...r } : {
|
|
3934
|
+
function Yl(e, t) {
|
|
3935
|
+
const { scroll: r, virtual: n } = e.table, o = D(null), [s, i] = X(0), [a, l] = X(0), u = () => {
|
|
3936
|
+
o.current && (console.log(o.current), console.log("触发了表格的resize"), i(o.current.offsetWidth), l(o.current.offsetHeight));
|
|
3937
|
+
};
|
|
3938
|
+
q(() => (u(), window.addEventListener("resize", u), () => {
|
|
3939
|
+
window.removeEventListener("resize", u);
|
|
3940
|
+
}), []);
|
|
3941
|
+
const d = Ge(() => t ? n ? { x: s, y: a - 70, ...r } : { x: "max-content", y: a - 70, ...r } : {
|
|
3887
3942
|
x: "max-content",
|
|
3888
3943
|
...r
|
|
3889
3944
|
}, [a]);
|
|
3890
3945
|
return {
|
|
3891
3946
|
divRef: o,
|
|
3892
|
-
scroll:
|
|
3947
|
+
scroll: d
|
|
3893
3948
|
};
|
|
3894
3949
|
}
|
|
3895
|
-
function
|
|
3950
|
+
function Gl(e, t) {
|
|
3896
3951
|
const { toolbar: r } = e.table;
|
|
3897
3952
|
return {
|
|
3898
3953
|
getTopToolbarBindProps: () => {
|
|
@@ -3915,8 +3970,8 @@ function Ul(e, t) {
|
|
|
3915
3970
|
}
|
|
3916
3971
|
};
|
|
3917
3972
|
}
|
|
3918
|
-
const
|
|
3919
|
-
const { extendProps: e, extendComp: t } =
|
|
3973
|
+
const An = () => {
|
|
3974
|
+
const { extendProps: e, extendComp: t } = Je(), r = (n) => {
|
|
3920
3975
|
const o = t == null ? void 0 : t.tableCellFunc;
|
|
3921
3976
|
o && Object.keys(o).forEach((s) => {
|
|
3922
3977
|
const i = o[s];
|
|
@@ -3929,16 +3984,16 @@ const On = () => {
|
|
|
3929
3984
|
extendTableProps: e == null ? void 0 : e.table,
|
|
3930
3985
|
setExtendTableCellComp: r
|
|
3931
3986
|
};
|
|
3932
|
-
},
|
|
3933
|
-
crudFormDialogRef:
|
|
3987
|
+
}, Xl = ({ crudFormDialog: e }) => ({
|
|
3988
|
+
crudFormDialogRef: D(null),
|
|
3934
3989
|
crudFormProps: e
|
|
3935
|
-
}),
|
|
3990
|
+
}), Kl = "_container__toolbar_1yx5k_13", Jl = "_container__table_1yx5k_27", Zl = "_container__pagination_1yx5k_35", Qe = {
|
|
3936
3991
|
"main-container": "_main-container_1yx5k_1",
|
|
3937
|
-
container__toolbar:
|
|
3938
|
-
container__table:
|
|
3939
|
-
container__pagination:
|
|
3940
|
-
},
|
|
3941
|
-
const { columns: o } =
|
|
3992
|
+
container__toolbar: Kl,
|
|
3993
|
+
container__table: Jl,
|
|
3994
|
+
container__pagination: Zl
|
|
3995
|
+
}, Ql = fe(({ tableProps: e, searchFormRef: t, fullHeight: r }, n) => {
|
|
3996
|
+
const { columns: o } = Bl(e), s = D(null), {
|
|
3942
3997
|
table: i,
|
|
3943
3998
|
pagination: a,
|
|
3944
3999
|
firstGetTableData: l,
|
|
@@ -3947,7 +4002,7 @@ const On = () => {
|
|
|
3947
4002
|
resetData: g,
|
|
3948
4003
|
resetAllData: f,
|
|
3949
4004
|
reloadData: b
|
|
3950
|
-
} =
|
|
4005
|
+
} = Ul(e, t), { rowSelection: p } = ql(e, i), { divRef: v, scroll: w } = Yl(e, r), { getTopToolbarBindProps: R } = Gl(e, i), T = () => {
|
|
3951
4006
|
const {
|
|
3952
4007
|
autoRequest: j,
|
|
3953
4008
|
api: z,
|
|
@@ -3955,7 +4010,7 @@ const On = () => {
|
|
|
3955
4010
|
autoPagination: Y,
|
|
3956
4011
|
columns: $,
|
|
3957
4012
|
scroll: C,
|
|
3958
|
-
pagination:
|
|
4013
|
+
pagination: x,
|
|
3959
4014
|
rowSelection: _,
|
|
3960
4015
|
onChange: S,
|
|
3961
4016
|
...E
|
|
@@ -3968,13 +4023,13 @@ const On = () => {
|
|
|
3968
4023
|
reloadData: b,
|
|
3969
4024
|
/** 合并一下antd中table实例的方法 */
|
|
3970
4025
|
...s.current
|
|
3971
|
-
})), console.log("render Table"), /* @__PURE__ */ h.jsxs("div", { className: r ?
|
|
3972
|
-
/* @__PURE__ */ h.jsx("div", { className:
|
|
4026
|
+
})), console.log("render Table"), /* @__PURE__ */ h.jsxs("div", { className: r ? Qe["main-container"] : void 0, children: [
|
|
4027
|
+
/* @__PURE__ */ h.jsx("div", { className: Qe.container__toolbar, children: /* @__PURE__ */ h.jsx(Jt, { ...R() }) }),
|
|
3973
4028
|
/* @__PURE__ */ h.jsx(
|
|
3974
4029
|
"div",
|
|
3975
4030
|
{
|
|
3976
4031
|
ref: v,
|
|
3977
|
-
className: r ?
|
|
4032
|
+
className: r ? Qe.container__table : void 0,
|
|
3978
4033
|
children: /* @__PURE__ */ h.jsx(
|
|
3979
4034
|
io,
|
|
3980
4035
|
{
|
|
@@ -3985,13 +4040,13 @@ const On = () => {
|
|
|
3985
4040
|
dataSource: i.model.dataSource,
|
|
3986
4041
|
pagination: !1,
|
|
3987
4042
|
rowSelection: p,
|
|
3988
|
-
scroll:
|
|
4043
|
+
scroll: w,
|
|
3989
4044
|
onChange: d
|
|
3990
4045
|
}
|
|
3991
4046
|
)
|
|
3992
4047
|
}
|
|
3993
4048
|
),
|
|
3994
|
-
a.show ? /* @__PURE__ */ h.jsx("div", { className:
|
|
4049
|
+
a.show ? /* @__PURE__ */ h.jsx("div", { className: Qe.container__pagination, children: /* @__PURE__ */ h.jsx(
|
|
3995
4050
|
ao,
|
|
3996
4051
|
{
|
|
3997
4052
|
disabled: i.model.loading,
|
|
@@ -4000,27 +4055,27 @@ const On = () => {
|
|
|
4000
4055
|
}
|
|
4001
4056
|
) }) : null
|
|
4002
4057
|
] });
|
|
4003
|
-
}),
|
|
4058
|
+
}), Hr = {
|
|
4004
4059
|
"xph-table-full-wrapper": "_xph-table-full-wrapper_mdv0g_1",
|
|
4005
4060
|
"full-wrapper__table": "_full-wrapper__table_mdv0g_13"
|
|
4006
|
-
},
|
|
4007
|
-
const { tableProps: r } =
|
|
4061
|
+
}, eu = (e, t) => {
|
|
4062
|
+
const { tableProps: r } = Hl(e), n = D(null), { searchFormRef: o, searchFormProps: s } = Fl(r), { crudFormDialogRef: i, crudFormProps: a } = Xl(r);
|
|
4008
4063
|
let { fullHeight: l } = r.table;
|
|
4009
4064
|
const { virtual: u } = r.table;
|
|
4010
4065
|
return u && (l = !0), Se(t, () => ({
|
|
4011
4066
|
...n.current,
|
|
4012
4067
|
...i.current
|
|
4013
|
-
})), /* @__PURE__ */ h.jsxs("div", { className: l ?
|
|
4068
|
+
})), /* @__PURE__ */ h.jsxs("div", { className: l ? Hr["xph-table-full-wrapper"] : void 0, children: [
|
|
4014
4069
|
/* @__PURE__ */ h.jsx("div", { children: /* @__PURE__ */ h.jsx(
|
|
4015
|
-
|
|
4070
|
+
Sl,
|
|
4016
4071
|
{
|
|
4017
4072
|
ref: o,
|
|
4018
4073
|
tableRef: n,
|
|
4019
4074
|
...s
|
|
4020
4075
|
}
|
|
4021
4076
|
) }),
|
|
4022
|
-
/* @__PURE__ */ h.jsx("div", { className: l ?
|
|
4023
|
-
|
|
4077
|
+
/* @__PURE__ */ h.jsx("div", { className: l ? Hr["full-wrapper__table"] : void 0, children: /* @__PURE__ */ h.jsx(
|
|
4078
|
+
Ql,
|
|
4024
4079
|
{
|
|
4025
4080
|
ref: n,
|
|
4026
4081
|
searchFormRef: o,
|
|
@@ -4028,21 +4083,22 @@ const On = () => {
|
|
|
4028
4083
|
tableProps: r
|
|
4029
4084
|
}
|
|
4030
4085
|
) }),
|
|
4031
|
-
a ? /* @__PURE__ */ h.jsx(
|
|
4086
|
+
a ? /* @__PURE__ */ h.jsx(jl, { ref: i, ...a }) : null
|
|
4032
4087
|
] });
|
|
4033
|
-
},
|
|
4088
|
+
}, lu = fe(eu);
|
|
4034
4089
|
export {
|
|
4035
4090
|
Jt as XphActions,
|
|
4036
|
-
|
|
4091
|
+
au as XphAuth,
|
|
4092
|
+
jl as XphCrudFormDialog,
|
|
4037
4093
|
Bc as XphDialog,
|
|
4038
|
-
|
|
4039
|
-
|
|
4094
|
+
iu as XphExtendCompPropsProvider,
|
|
4095
|
+
Fn as XphForm,
|
|
4040
4096
|
Hc as XphPortal,
|
|
4041
|
-
|
|
4097
|
+
lu as XphTable,
|
|
4042
4098
|
dr as buildUUID,
|
|
4043
4099
|
vo as getValueByPath,
|
|
4044
4100
|
fr as getValuesByPathObj,
|
|
4045
4101
|
fc as useAsyncState,
|
|
4046
|
-
|
|
4047
|
-
|
|
4102
|
+
Je as useXphExtendCompProps,
|
|
4103
|
+
cu as useXphForm
|
|
4048
4104
|
};
|