tango-ui-cw 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -9
- package/dist/index.mjs +194 -198
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -136,11 +136,11 @@ var et;
|
|
|
136
136
|
function Tn() {
|
|
137
137
|
if (et) return ae;
|
|
138
138
|
et = 1;
|
|
139
|
-
var c = Ee, r = Symbol.for("react.element"), o = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, l = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
139
|
+
var c = Ee, r = Symbol.for("react.element"), o = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, l = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
140
140
|
function d(m, p, w) {
|
|
141
141
|
var f, u = {}, g = null, v = null;
|
|
142
142
|
w !== void 0 && (g = "" + w), p.key !== void 0 && (g = "" + p.key), p.ref !== void 0 && (v = p.ref);
|
|
143
|
-
for (f in p) n.call(p, f) && !
|
|
143
|
+
for (f in p) n.call(p, f) && !y.hasOwnProperty(f) && (u[f] = p[f]);
|
|
144
144
|
if (m && m.defaultProps) for (f in p = m.defaultProps, p) u[f] === void 0 && (u[f] = p[f]);
|
|
145
145
|
return { $$typeof: r, type: m, key: g, ref: v, props: u, _owner: l.current };
|
|
146
146
|
}
|
|
@@ -159,27 +159,27 @@ var se = {};
|
|
|
159
159
|
var tt;
|
|
160
160
|
function Pn() {
|
|
161
161
|
return tt || (tt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
162
|
-
var c = Ee, r = Symbol.for("react.element"), o = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"),
|
|
162
|
+
var c = Ee, r = Symbol.for("react.element"), o = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), m = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), D = Symbol.iterator, b = "@@iterator";
|
|
163
163
|
function C(e) {
|
|
164
164
|
if (e === null || typeof e != "object")
|
|
165
165
|
return null;
|
|
166
|
-
var a =
|
|
166
|
+
var a = D && e[D] || e[b];
|
|
167
167
|
return typeof a == "function" ? a : null;
|
|
168
168
|
}
|
|
169
|
-
var
|
|
170
|
-
function
|
|
169
|
+
var h = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
170
|
+
function E(e) {
|
|
171
171
|
{
|
|
172
|
-
for (var a = arguments.length, i = new Array(a > 1 ? a - 1 : 0),
|
|
173
|
-
i[
|
|
172
|
+
for (var a = arguments.length, i = new Array(a > 1 ? a - 1 : 0), A = 1; A < a; A++)
|
|
173
|
+
i[A - 1] = arguments[A];
|
|
174
174
|
x("error", e, i);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
function x(e, a, i) {
|
|
178
178
|
{
|
|
179
|
-
var
|
|
179
|
+
var A = h.ReactDebugCurrentFrame, B = A.getStackAddendum();
|
|
180
180
|
B !== "" && (a += "%s", i = i.concat([B]));
|
|
181
|
-
var R = i.map(function(
|
|
182
|
-
return String(
|
|
181
|
+
var R = i.map(function(k) {
|
|
182
|
+
return String(k);
|
|
183
183
|
});
|
|
184
184
|
R.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, R);
|
|
185
185
|
}
|
|
@@ -187,16 +187,16 @@ function Pn() {
|
|
|
187
187
|
var O = !1, T = !1, I = !1, L = !1, G = !1, $;
|
|
188
188
|
$ = Symbol.for("react.module.reference");
|
|
189
189
|
function Ct(e) {
|
|
190
|
-
return !!(typeof e == "string" || typeof e == "function" || e === n || e ===
|
|
190
|
+
return !!(typeof e == "string" || typeof e == "function" || e === n || e === y || G || e === l || e === w || e === f || L || e === v || O || T || I || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === u || e.$$typeof === d || e.$$typeof === m || e.$$typeof === p || // This needs to include all possible module reference object
|
|
191
191
|
// types supported by any Flight configuration anywhere since
|
|
192
192
|
// we don't know which Flight build this will end up being used
|
|
193
193
|
// with.
|
|
194
194
|
e.$$typeof === $ || e.getModuleId !== void 0));
|
|
195
195
|
}
|
|
196
196
|
function bt(e, a, i) {
|
|
197
|
-
var
|
|
198
|
-
if (
|
|
199
|
-
return
|
|
197
|
+
var A = e.displayName;
|
|
198
|
+
if (A)
|
|
199
|
+
return A;
|
|
200
200
|
var B = a.displayName || a.name || "";
|
|
201
201
|
return B !== "" ? i + "(" + B + ")" : i;
|
|
202
202
|
}
|
|
@@ -206,7 +206,7 @@ function Pn() {
|
|
|
206
206
|
function F(e) {
|
|
207
207
|
if (e == null)
|
|
208
208
|
return null;
|
|
209
|
-
if (typeof e.tag == "number" &&
|
|
209
|
+
if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
210
210
|
return e.displayName || e.name || null;
|
|
211
211
|
if (typeof e == "string")
|
|
212
212
|
return e;
|
|
@@ -215,7 +215,7 @@ function Pn() {
|
|
|
215
215
|
return "Fragment";
|
|
216
216
|
case o:
|
|
217
217
|
return "Portal";
|
|
218
|
-
case
|
|
218
|
+
case y:
|
|
219
219
|
return "Profiler";
|
|
220
220
|
case l:
|
|
221
221
|
return "StrictMode";
|
|
@@ -235,12 +235,12 @@ function Pn() {
|
|
|
235
235
|
case p:
|
|
236
236
|
return bt(e, e.render, "ForwardRef");
|
|
237
237
|
case u:
|
|
238
|
-
var
|
|
239
|
-
return
|
|
238
|
+
var A = e.displayName || null;
|
|
239
|
+
return A !== null ? A : F(e.type) || "Memo";
|
|
240
240
|
case g: {
|
|
241
|
-
var B = e, R = B._payload,
|
|
241
|
+
var B = e, R = B._payload, k = B._init;
|
|
242
242
|
try {
|
|
243
|
-
return F(
|
|
243
|
+
return F(k(R));
|
|
244
244
|
} catch {
|
|
245
245
|
return null;
|
|
246
246
|
}
|
|
@@ -307,18 +307,18 @@ function Pn() {
|
|
|
307
307
|
})
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
|
-
ee < 0 &&
|
|
310
|
+
ee < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
var me =
|
|
313
|
+
var me = h.ReactCurrentDispatcher, ge;
|
|
314
314
|
function oe(e, a, i) {
|
|
315
315
|
{
|
|
316
316
|
if (ge === void 0)
|
|
317
317
|
try {
|
|
318
318
|
throw Error();
|
|
319
319
|
} catch (B) {
|
|
320
|
-
var
|
|
321
|
-
ge =
|
|
320
|
+
var A = B.stack.trim().match(/\n( *(at )?)/);
|
|
321
|
+
ge = A && A[1] || "";
|
|
322
322
|
}
|
|
323
323
|
return `
|
|
324
324
|
` + ge + e;
|
|
@@ -337,7 +337,7 @@ function Pn() {
|
|
|
337
337
|
if (i !== void 0)
|
|
338
338
|
return i;
|
|
339
339
|
}
|
|
340
|
-
var
|
|
340
|
+
var A;
|
|
341
341
|
he = !0;
|
|
342
342
|
var B = Error.prepareStackTrace;
|
|
343
343
|
Error.prepareStackTrace = void 0;
|
|
@@ -345,40 +345,40 @@ function Pn() {
|
|
|
345
345
|
R = me.current, me.current = null, xt();
|
|
346
346
|
try {
|
|
347
347
|
if (a) {
|
|
348
|
-
var
|
|
348
|
+
var k = function() {
|
|
349
349
|
throw Error();
|
|
350
350
|
};
|
|
351
|
-
if (Object.defineProperty(
|
|
351
|
+
if (Object.defineProperty(k.prototype, "props", {
|
|
352
352
|
set: function() {
|
|
353
353
|
throw Error();
|
|
354
354
|
}
|
|
355
355
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
356
356
|
try {
|
|
357
|
-
Reflect.construct(
|
|
357
|
+
Reflect.construct(k, []);
|
|
358
358
|
} catch (Q) {
|
|
359
|
-
|
|
359
|
+
A = Q;
|
|
360
360
|
}
|
|
361
|
-
Reflect.construct(e, [],
|
|
361
|
+
Reflect.construct(e, [], k);
|
|
362
362
|
} else {
|
|
363
363
|
try {
|
|
364
|
-
|
|
364
|
+
k.call();
|
|
365
365
|
} catch (Q) {
|
|
366
|
-
|
|
366
|
+
A = Q;
|
|
367
367
|
}
|
|
368
|
-
e.call(
|
|
368
|
+
e.call(k.prototype);
|
|
369
369
|
}
|
|
370
370
|
} else {
|
|
371
371
|
try {
|
|
372
372
|
throw Error();
|
|
373
373
|
} catch (Q) {
|
|
374
|
-
|
|
374
|
+
A = Q;
|
|
375
375
|
}
|
|
376
376
|
e();
|
|
377
377
|
}
|
|
378
378
|
} catch (Q) {
|
|
379
|
-
if (Q &&
|
|
379
|
+
if (Q && A && typeof Q.stack == "string") {
|
|
380
380
|
for (var S = Q.stack.split(`
|
|
381
|
-
`), P =
|
|
381
|
+
`), P = A.stack.split(`
|
|
382
382
|
`), j = S.length - 1, N = P.length - 1; j >= 1 && N >= 0 && S[j] !== P[N]; )
|
|
383
383
|
N--;
|
|
384
384
|
for (; j >= 1 && N >= 0; j--, N--)
|
|
@@ -427,7 +427,7 @@ function Pn() {
|
|
|
427
427
|
case u:
|
|
428
428
|
return le(e.type, a, i);
|
|
429
429
|
case g: {
|
|
430
|
-
var
|
|
430
|
+
var A = e, B = A._payload, R = A._init;
|
|
431
431
|
try {
|
|
432
432
|
return le(R(B), a, i);
|
|
433
433
|
} catch {
|
|
@@ -436,7 +436,7 @@ function Pn() {
|
|
|
436
436
|
}
|
|
437
437
|
return "";
|
|
438
438
|
}
|
|
439
|
-
var te = Object.prototype.hasOwnProperty, Me = {}, Ye =
|
|
439
|
+
var te = Object.prototype.hasOwnProperty, Me = {}, Ye = h.ReactDebugCurrentFrame;
|
|
440
440
|
function ce(e) {
|
|
441
441
|
if (e) {
|
|
442
442
|
var a = e._owner, i = le(e.type, e._source, a ? a.type : null);
|
|
@@ -444,22 +444,22 @@ function Pn() {
|
|
|
444
444
|
} else
|
|
445
445
|
Ye.setExtraStackFrame(null);
|
|
446
446
|
}
|
|
447
|
-
function kt(e, a, i,
|
|
447
|
+
function kt(e, a, i, A, B) {
|
|
448
448
|
{
|
|
449
449
|
var R = Function.call.bind(te);
|
|
450
|
-
for (var
|
|
451
|
-
if (R(e,
|
|
450
|
+
for (var k in e)
|
|
451
|
+
if (R(e, k)) {
|
|
452
452
|
var S = void 0;
|
|
453
453
|
try {
|
|
454
|
-
if (typeof e[
|
|
455
|
-
var P = Error((
|
|
454
|
+
if (typeof e[k] != "function") {
|
|
455
|
+
var P = Error((A || "React class") + ": " + i + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
456
456
|
throw P.name = "Invariant Violation", P;
|
|
457
457
|
}
|
|
458
|
-
S = e[
|
|
458
|
+
S = e[k](a, k, A, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
459
459
|
} catch (j) {
|
|
460
460
|
S = j;
|
|
461
461
|
}
|
|
462
|
-
S && !(S instanceof Error) && (ce(B),
|
|
462
|
+
S && !(S instanceof Error) && (ce(B), E("%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).", A || "React class", i, k, typeof S), ce(null)), S instanceof Error && !(S.message in Me) && (Me[S.message] = !0, ce(B), E("Failed %s type: %s", i, S.message), ce(null));
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
}
|
|
@@ -485,9 +485,9 @@ function Pn() {
|
|
|
485
485
|
}
|
|
486
486
|
function Ue(e) {
|
|
487
487
|
if (Rt(e))
|
|
488
|
-
return
|
|
488
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bt(e)), Le(e);
|
|
489
489
|
}
|
|
490
|
-
var _e =
|
|
490
|
+
var _e = h.ReactCurrentOwner, It = {
|
|
491
491
|
key: !0,
|
|
492
492
|
ref: !0,
|
|
493
493
|
__self: !0,
|
|
@@ -515,7 +515,7 @@ function Pn() {
|
|
|
515
515
|
function Tt(e, a) {
|
|
516
516
|
{
|
|
517
517
|
var i = function() {
|
|
518
|
-
Ve || (Ve = !0,
|
|
518
|
+
Ve || (Ve = !0, E("%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)", a));
|
|
519
519
|
};
|
|
520
520
|
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
521
521
|
get: i,
|
|
@@ -526,7 +526,7 @@ function Pn() {
|
|
|
526
526
|
function Pt(e, a) {
|
|
527
527
|
{
|
|
528
528
|
var i = function() {
|
|
529
|
-
Fe || (Fe = !0,
|
|
529
|
+
Fe || (Fe = !0, E("%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)", a));
|
|
530
530
|
};
|
|
531
531
|
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
532
532
|
get: i,
|
|
@@ -534,7 +534,7 @@ function Pn() {
|
|
|
534
534
|
});
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
var Qt = function(e, a, i,
|
|
537
|
+
var Qt = function(e, a, i, A, B, R, k) {
|
|
538
538
|
var S = {
|
|
539
539
|
// This tag allows us to uniquely identify this as a React Element
|
|
540
540
|
$$typeof: r,
|
|
@@ -542,7 +542,7 @@ function Pn() {
|
|
|
542
542
|
type: e,
|
|
543
543
|
key: a,
|
|
544
544
|
ref: i,
|
|
545
|
-
props:
|
|
545
|
+
props: k,
|
|
546
546
|
// Record the component responsible for creating this element.
|
|
547
547
|
_owner: R
|
|
548
548
|
};
|
|
@@ -555,7 +555,7 @@ function Pn() {
|
|
|
555
555
|
configurable: !1,
|
|
556
556
|
enumerable: !1,
|
|
557
557
|
writable: !1,
|
|
558
|
-
value:
|
|
558
|
+
value: A
|
|
559
559
|
}), Object.defineProperty(S, "_source", {
|
|
560
560
|
configurable: !1,
|
|
561
561
|
enumerable: !1,
|
|
@@ -563,25 +563,25 @@ function Pn() {
|
|
|
563
563
|
value: B
|
|
564
564
|
}), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
|
|
565
565
|
};
|
|
566
|
-
function Mt(e, a, i,
|
|
566
|
+
function Mt(e, a, i, A, B) {
|
|
567
567
|
{
|
|
568
|
-
var R,
|
|
568
|
+
var R, k = {}, S = null, P = null;
|
|
569
569
|
i !== void 0 && (Ue(i), S = "" + i), Nt(a) && (Ue(a.key), S = "" + a.key), jt(a) && (P = a.ref, Ot(a, B));
|
|
570
570
|
for (R in a)
|
|
571
|
-
te.call(a, R) && !It.hasOwnProperty(R) && (
|
|
571
|
+
te.call(a, R) && !It.hasOwnProperty(R) && (k[R] = a[R]);
|
|
572
572
|
if (e && e.defaultProps) {
|
|
573
573
|
var j = e.defaultProps;
|
|
574
574
|
for (R in j)
|
|
575
|
-
|
|
575
|
+
k[R] === void 0 && (k[R] = j[R]);
|
|
576
576
|
}
|
|
577
577
|
if (S || P) {
|
|
578
578
|
var N = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
579
|
-
S && Tt(
|
|
579
|
+
S && Tt(k, N), P && Pt(k, N);
|
|
580
580
|
}
|
|
581
|
-
return Qt(e, S, P, B,
|
|
581
|
+
return Qt(e, S, P, B, A, _e.current, k);
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
var ye =
|
|
584
|
+
var ye = h.ReactCurrentOwner, We = h.ReactDebugCurrentFrame;
|
|
585
585
|
function K(e) {
|
|
586
586
|
if (e) {
|
|
587
587
|
var a = e._owner, i = le(e.type, e._source, a ? a.type : null);
|
|
@@ -631,8 +631,8 @@ Check the top-level render call using <` + i + ">.");
|
|
|
631
631
|
if (ze[i])
|
|
632
632
|
return;
|
|
633
633
|
ze[i] = !0;
|
|
634
|
-
var
|
|
635
|
-
e && e._owner && e._owner !== ye.current && (
|
|
634
|
+
var A = "";
|
|
635
|
+
e && e._owner && e._owner !== ye.current && (A = " It was passed a child from " + F(e._owner.type) + "."), K(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, A), K(null);
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
function Ke(e, a) {
|
|
@@ -641,16 +641,16 @@ Check the top-level render call using <` + i + ">.");
|
|
|
641
641
|
return;
|
|
642
642
|
if (Ae(e))
|
|
643
643
|
for (var i = 0; i < e.length; i++) {
|
|
644
|
-
var
|
|
645
|
-
be(
|
|
644
|
+
var A = e[i];
|
|
645
|
+
be(A) && qe(A, a);
|
|
646
646
|
}
|
|
647
647
|
else if (be(e))
|
|
648
648
|
e._store && (e._store.validated = !0);
|
|
649
649
|
else if (e) {
|
|
650
650
|
var B = C(e);
|
|
651
651
|
if (typeof B == "function" && B !== e.entries)
|
|
652
|
-
for (var R = B.call(e),
|
|
653
|
-
be(
|
|
652
|
+
for (var R = B.call(e), k; !(k = R.next()).done; )
|
|
653
|
+
be(k.value) && qe(k.value, a);
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
}
|
|
@@ -669,53 +669,53 @@ Check the top-level render call using <` + i + ">.");
|
|
|
669
669
|
else
|
|
670
670
|
return;
|
|
671
671
|
if (i) {
|
|
672
|
-
var
|
|
673
|
-
kt(i, e.props, "prop",
|
|
672
|
+
var A = F(a);
|
|
673
|
+
kt(i, e.props, "prop", A, e);
|
|
674
674
|
} else if (a.PropTypes !== void 0 && !Ce) {
|
|
675
675
|
Ce = !0;
|
|
676
676
|
var B = F(a);
|
|
677
|
-
|
|
677
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", B || "Unknown");
|
|
678
678
|
}
|
|
679
|
-
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved &&
|
|
679
|
+
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
function _t(e) {
|
|
683
683
|
{
|
|
684
684
|
for (var a = Object.keys(e.props), i = 0; i < a.length; i++) {
|
|
685
|
-
var
|
|
686
|
-
if (
|
|
687
|
-
K(e),
|
|
685
|
+
var A = a[i];
|
|
686
|
+
if (A !== "children" && A !== "key") {
|
|
687
|
+
K(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", A), K(null);
|
|
688
688
|
break;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
|
-
e.ref !== null && (K(e),
|
|
691
|
+
e.ref !== null && (K(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), K(null));
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
var Ze = {};
|
|
695
|
-
function Je(e, a, i,
|
|
695
|
+
function Je(e, a, i, A, B, R) {
|
|
696
696
|
{
|
|
697
|
-
var
|
|
698
|
-
if (!
|
|
697
|
+
var k = Ct(e);
|
|
698
|
+
if (!k) {
|
|
699
699
|
var S = "";
|
|
700
700
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (S += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
701
701
|
var P = Yt();
|
|
702
702
|
P ? S += P : S += Ge();
|
|
703
703
|
var j;
|
|
704
|
-
e === null ? j = "null" : Ae(e) ? j = "array" : e !== void 0 && e.$$typeof === r ? (j = "<" + (F(e.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : j = typeof e,
|
|
704
|
+
e === null ? j = "null" : Ae(e) ? j = "array" : e !== void 0 && e.$$typeof === r ? (j = "<" + (F(e.type) || "Unknown") + " />", S = " Did you accidentally export a JSX literal instead of a component?") : j = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, S);
|
|
705
705
|
}
|
|
706
706
|
var N = Mt(e, a, i, B, R);
|
|
707
707
|
if (N == null)
|
|
708
708
|
return N;
|
|
709
|
-
if (
|
|
709
|
+
if (k) {
|
|
710
710
|
var M = a.children;
|
|
711
711
|
if (M !== void 0)
|
|
712
|
-
if (
|
|
712
|
+
if (A)
|
|
713
713
|
if (Ae(M)) {
|
|
714
714
|
for (var Z = 0; Z < M.length; Z++)
|
|
715
715
|
Ke(M[Z], e);
|
|
716
716
|
Object.freeze && Object.freeze(M);
|
|
717
717
|
} else
|
|
718
|
-
|
|
718
|
+
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
719
719
|
else
|
|
720
720
|
Ke(M, e);
|
|
721
721
|
}
|
|
@@ -725,7 +725,7 @@ Check the top-level render call using <` + i + ">.");
|
|
|
725
725
|
}), xe = Q.length > 0 ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
726
726
|
if (!Ze[q + xe]) {
|
|
727
727
|
var zt = Q.length > 0 ? "{" + Q.join(": ..., ") + ": ...}" : "{}";
|
|
728
|
-
|
|
728
|
+
E(`A props object containing a "key" prop is being spread into JSX:
|
|
729
729
|
let props = %s;
|
|
730
730
|
<%s {...props} />
|
|
731
731
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -924,25 +924,21 @@ function pe(c) {
|
|
|
924
924
|
size: o = "medium",
|
|
925
925
|
sx: n = {},
|
|
926
926
|
style: l = {},
|
|
927
|
-
className:
|
|
927
|
+
className: y = "",
|
|
928
928
|
onClick: d,
|
|
929
929
|
children: m,
|
|
930
930
|
disabled: p,
|
|
931
931
|
outline: w,
|
|
932
932
|
enu: f,
|
|
933
933
|
...u
|
|
934
|
-
} = c, v = W(typeof n == "object" ? n : {}),
|
|
934
|
+
} = c, v = W(typeof n == "object" ? n : {}), D = typeof n == "string" ? n.split(/\s+/).map((E) => E.startsWith("!") ? E : `!${E}`).join(" ") : "", C = [...[
|
|
935
935
|
J.btn,
|
|
936
936
|
J[`btn-${r}`],
|
|
937
937
|
J[`btn-${o}`],
|
|
938
938
|
p && J["btn-disabled"],
|
|
939
939
|
w && J["btn-outline"],
|
|
940
|
-
f && J["btn-enu"]
|
|
941
|
-
|
|
942
|
-
// sx="..." 映射为 class
|
|
943
|
-
A
|
|
944
|
-
// 用户自定义 className
|
|
945
|
-
].filter(Boolean).join(" "), C = { ...v, ...l };
|
|
940
|
+
f && J["btn-enu"]
|
|
941
|
+
].filter(Boolean), D, y].filter(Boolean).join(" "), h = { ...v, ...l };
|
|
946
942
|
return pe.propTypes = {
|
|
947
943
|
type: t.oneOf(["default", "transparent", "danger", "success"]),
|
|
948
944
|
// 按钮类型:默认、透明、警告、成功
|
|
@@ -979,8 +975,8 @@ function pe(c) {
|
|
|
979
975
|
}, /* @__PURE__ */ s.jsx(
|
|
980
976
|
"button",
|
|
981
977
|
{
|
|
982
|
-
className:
|
|
983
|
-
style:
|
|
978
|
+
className: C,
|
|
979
|
+
style: h,
|
|
984
980
|
onClick: d,
|
|
985
981
|
disabled: p,
|
|
986
982
|
...u,
|
|
@@ -995,28 +991,28 @@ function zn({
|
|
|
995
991
|
outline: o = !1,
|
|
996
992
|
enu: n = !1,
|
|
997
993
|
sx: l = {},
|
|
998
|
-
style:
|
|
994
|
+
style: y = {},
|
|
999
995
|
className: d = "",
|
|
1000
996
|
onClick: m,
|
|
1001
997
|
children: p,
|
|
1002
998
|
disabled: w = !1,
|
|
1003
999
|
...f
|
|
1004
1000
|
}) {
|
|
1005
|
-
const u = st(null), v = W(typeof l == "object" ? l : {}),
|
|
1001
|
+
const u = st(null), v = W(typeof l == "object" ? l : {}), D = typeof l == "string" ? l : "", b = [
|
|
1006
1002
|
U.btn,
|
|
1007
1003
|
U[`btn-${c}`],
|
|
1008
1004
|
U[`btn-${r}`],
|
|
1009
1005
|
w && U["btn-disabled"],
|
|
1010
1006
|
o && U["btn-outline"],
|
|
1011
1007
|
n && U["btn-enu"],
|
|
1012
|
-
|
|
1008
|
+
D,
|
|
1013
1009
|
d
|
|
1014
|
-
].filter(Boolean).join(" "), C = U[`materialBtn${Mn(r)}`],
|
|
1010
|
+
].filter(Boolean).join(" "), C = U[`materialBtn${Mn(r)}`], h = [
|
|
1015
1011
|
U.materialBtn,
|
|
1016
1012
|
C,
|
|
1017
1013
|
w ? U.materialBtnDisabled : "",
|
|
1018
|
-
|
|
1019
|
-
].filter(Boolean).join(" "),
|
|
1014
|
+
b
|
|
1015
|
+
].filter(Boolean).join(" "), E = { ...v, ...y };
|
|
1020
1016
|
function x(O) {
|
|
1021
1017
|
if (w) return;
|
|
1022
1018
|
const T = u.current, I = document.createElement("span"), L = Math.max(T.clientWidth, T.clientHeight), G = L / 2;
|
|
@@ -1028,8 +1024,8 @@ function zn({
|
|
|
1028
1024
|
"button",
|
|
1029
1025
|
{
|
|
1030
1026
|
ref: u,
|
|
1031
|
-
className:
|
|
1032
|
-
style:
|
|
1027
|
+
className: h,
|
|
1028
|
+
style: E,
|
|
1033
1029
|
onClick: (O) => {
|
|
1034
1030
|
x(O), m == null || m(O);
|
|
1035
1031
|
},
|
|
@@ -1043,7 +1039,7 @@ function Mn(c) {
|
|
|
1043
1039
|
return c.charAt(0).toUpperCase() + c.slice(1);
|
|
1044
1040
|
}
|
|
1045
1041
|
function qn({ label: c, type: r = "text", inputTextStyles: o = {}, inputFloatStyles: n = {} }) {
|
|
1046
|
-
const [l,
|
|
1042
|
+
const [l, y] = _(!1), [d, m] = _(""), p = l || d;
|
|
1047
1043
|
return /* @__PURE__ */ s.jsx("div", { className: X.materialInput, children: /* @__PURE__ */ s.jsxs("div", { className: X.inputWrapper, children: [
|
|
1048
1044
|
/* @__PURE__ */ s.jsx(
|
|
1049
1045
|
"input",
|
|
@@ -1051,8 +1047,8 @@ function qn({ label: c, type: r = "text", inputTextStyles: o = {}, inputFloatSty
|
|
|
1051
1047
|
type: r,
|
|
1052
1048
|
className: `${X.materialInputField} ${p ? X.filled : ""}`,
|
|
1053
1049
|
style: o,
|
|
1054
|
-
onFocus: () =>
|
|
1055
|
-
onBlur: () =>
|
|
1050
|
+
onFocus: () => y(!0),
|
|
1051
|
+
onBlur: () => y(!1),
|
|
1056
1052
|
onChange: (w) => m(w.target.value),
|
|
1057
1053
|
value: d
|
|
1058
1054
|
}
|
|
@@ -1068,19 +1064,19 @@ function qn({ label: c, type: r = "text", inputTextStyles: o = {}, inputFloatSty
|
|
|
1068
1064
|
] }) });
|
|
1069
1065
|
}
|
|
1070
1066
|
function ot(c) {
|
|
1071
|
-
const { disabled: r, onChange: o, showText: n } = c, [l,
|
|
1067
|
+
const { disabled: r, onChange: o, showText: n } = c, [l, y] = _("#000000"), d = (f) => {
|
|
1072
1068
|
const u = f.target.value;
|
|
1073
|
-
|
|
1069
|
+
y(u), o && o(u);
|
|
1074
1070
|
}, m = `${ue.colorPicker} ${r ? ue.colorPickerDisabled : ""}`, p = (f) => {
|
|
1075
1071
|
const u = parseInt(f.slice(1, 3), 16), g = parseInt(f.slice(3, 5), 16), v = parseInt(f.slice(5, 7), 16);
|
|
1076
1072
|
return `rgb(${u}, ${g}, ${v})`;
|
|
1077
1073
|
}, w = (f) => {
|
|
1078
|
-
let u = parseInt(f.slice(1, 3), 16) / 255, g = parseInt(f.slice(3, 5), 16) / 255, v = parseInt(f.slice(5, 7), 16) / 255,
|
|
1079
|
-
if (
|
|
1080
|
-
C =
|
|
1074
|
+
let u = parseInt(f.slice(1, 3), 16) / 255, g = parseInt(f.slice(3, 5), 16) / 255, v = parseInt(f.slice(5, 7), 16) / 255, D = Math.max(u, g, v), b = Math.min(u, g, v), C, h, E = (D + b) / 2;
|
|
1075
|
+
if (D === b)
|
|
1076
|
+
C = h = 0;
|
|
1081
1077
|
else {
|
|
1082
|
-
let x =
|
|
1083
|
-
switch (
|
|
1078
|
+
let x = D - b;
|
|
1079
|
+
switch (h = E > 0.5 ? x / (2 - D - b) : x / (D + b), D) {
|
|
1084
1080
|
case u:
|
|
1085
1081
|
C = (g - v) / x + (g < v ? 6 : 0);
|
|
1086
1082
|
break;
|
|
@@ -1093,8 +1089,8 @@ function ot(c) {
|
|
|
1093
1089
|
}
|
|
1094
1090
|
C /= 6;
|
|
1095
1091
|
}
|
|
1096
|
-
return `hsl(${Math.round(C * 360)}, ${Math.round(
|
|
1097
|
-
|
|
1092
|
+
return `hsl(${Math.round(C * 360)}, ${Math.round(h * 100)}%, ${Math.round(
|
|
1093
|
+
E * 100
|
|
1098
1094
|
)}%)`;
|
|
1099
1095
|
};
|
|
1100
1096
|
return /* @__PURE__ */ s.jsxs("div", { className: ue.colorPickerWrapper, children: [
|
|
@@ -1132,35 +1128,35 @@ function it(c) {
|
|
|
1132
1128
|
single: o = !1,
|
|
1133
1129
|
sx: n = {},
|
|
1134
1130
|
style: l = {},
|
|
1135
|
-
className:
|
|
1131
|
+
className: y = "",
|
|
1136
1132
|
en: d = !1,
|
|
1137
1133
|
...m
|
|
1138
|
-
} = c || {}, p = typeof n == "object" && n !== null && !Array.isArray(n), w = W(p ? n : {}), u = [p ? "" : n,
|
|
1139
|
-
const
|
|
1140
|
-
let C = d ? "en-US" : "zh-CN",
|
|
1141
|
-
switch (!d && o && (
|
|
1134
|
+
} = c || {}, p = typeof n == "object" && n !== null && !Array.isArray(n), w = W(p ? n : {}), u = [p ? "" : n, y].filter(Boolean).join(" "), g = { ...w, ...l }, v = (D) => {
|
|
1135
|
+
const b = /* @__PURE__ */ new Date();
|
|
1136
|
+
let C = d ? "en-US" : "zh-CN", h = b.toLocaleString(C, { weekday: "long" });
|
|
1137
|
+
switch (!d && o && (h = h.replace("星期", "周")), D) {
|
|
1142
1138
|
case "line":
|
|
1143
|
-
return
|
|
1139
|
+
return b.toLocaleDateString(C, {
|
|
1144
1140
|
year: "numeric",
|
|
1145
1141
|
month: "2-digit",
|
|
1146
1142
|
day: "2-digit"
|
|
1147
1143
|
}).replaceAll("/", "-");
|
|
1148
1144
|
case "full":
|
|
1149
|
-
return `${
|
|
1145
|
+
return `${b.toLocaleDateString(C, {
|
|
1150
1146
|
year: "numeric",
|
|
1151
1147
|
month: "2-digit",
|
|
1152
1148
|
day: "2-digit"
|
|
1153
|
-
})} ${
|
|
1149
|
+
})} ${h} ${b.toLocaleTimeString(C, {
|
|
1154
1150
|
hour: "2-digit",
|
|
1155
1151
|
minute: "2-digit",
|
|
1156
1152
|
second: "2-digit"
|
|
1157
1153
|
})}`;
|
|
1158
1154
|
case "full-line":
|
|
1159
|
-
return `${
|
|
1155
|
+
return `${b.toLocaleDateString(C, {
|
|
1160
1156
|
year: "numeric",
|
|
1161
1157
|
month: "2-digit",
|
|
1162
1158
|
day: "2-digit"
|
|
1163
|
-
}).replaceAll("/", "-")} ${
|
|
1159
|
+
}).replaceAll("/", "-")} ${h} ${b.toLocaleTimeString(
|
|
1164
1160
|
C,
|
|
1165
1161
|
{
|
|
1166
1162
|
hour: "2-digit",
|
|
@@ -1169,38 +1165,38 @@ function it(c) {
|
|
|
1169
1165
|
}
|
|
1170
1166
|
)}`;
|
|
1171
1167
|
case "year-week":
|
|
1172
|
-
return `${
|
|
1168
|
+
return `${b.toLocaleDateString(C, {
|
|
1173
1169
|
year: "numeric",
|
|
1174
1170
|
month: "2-digit",
|
|
1175
1171
|
day: "2-digit"
|
|
1176
|
-
})} ${
|
|
1172
|
+
})} ${h}`;
|
|
1177
1173
|
case "year-week-line":
|
|
1178
|
-
return `${
|
|
1174
|
+
return `${b.toLocaleDateString(C, {
|
|
1179
1175
|
year: "numeric",
|
|
1180
1176
|
month: "2-digit",
|
|
1181
1177
|
day: "2-digit"
|
|
1182
|
-
}).replaceAll("/", "-")} ${
|
|
1178
|
+
}).replaceAll("/", "-")} ${h}`;
|
|
1183
1179
|
case "week-time":
|
|
1184
|
-
return `${
|
|
1180
|
+
return `${h} ${b.toLocaleTimeString(C, {
|
|
1185
1181
|
hour: "2-digit",
|
|
1186
1182
|
minute: "2-digit",
|
|
1187
1183
|
second: "2-digit"
|
|
1188
1184
|
})}`;
|
|
1189
1185
|
case "no-s":
|
|
1190
|
-
return `${
|
|
1186
|
+
return `${b.toLocaleDateString(C, {
|
|
1191
1187
|
year: "numeric",
|
|
1192
1188
|
month: "2-digit",
|
|
1193
1189
|
day: "2-digit"
|
|
1194
|
-
})} ${
|
|
1190
|
+
})} ${h} ${b.toLocaleTimeString(C, {
|
|
1195
1191
|
hour: "2-digit",
|
|
1196
1192
|
minute: "2-digit"
|
|
1197
1193
|
})}`;
|
|
1198
1194
|
case "no-s-line":
|
|
1199
|
-
return `${
|
|
1195
|
+
return `${b.toLocaleDateString(C, {
|
|
1200
1196
|
year: "numeric",
|
|
1201
1197
|
month: "2-digit",
|
|
1202
1198
|
day: "2-digit"
|
|
1203
|
-
}).replaceAll("/", "-")} ${
|
|
1199
|
+
}).replaceAll("/", "-")} ${h} ${b.toLocaleTimeString(
|
|
1204
1200
|
C,
|
|
1205
1201
|
{
|
|
1206
1202
|
hour: "2-digit",
|
|
@@ -1208,21 +1204,21 @@ function it(c) {
|
|
|
1208
1204
|
}
|
|
1209
1205
|
)}`;
|
|
1210
1206
|
case "us-full":
|
|
1211
|
-
return `${
|
|
1207
|
+
return `${b.toLocaleDateString("en-US", {
|
|
1212
1208
|
year: "numeric",
|
|
1213
1209
|
month: "2-digit",
|
|
1214
1210
|
day: "2-digit"
|
|
1215
|
-
})} ${
|
|
1211
|
+
})} ${h} ${b.toLocaleTimeString(C, {
|
|
1216
1212
|
hour: "2-digit",
|
|
1217
1213
|
minute: "2-digit",
|
|
1218
1214
|
second: "2-digit"
|
|
1219
1215
|
})}`;
|
|
1220
1216
|
case "us-full-line":
|
|
1221
|
-
return `${
|
|
1217
|
+
return `${b.toLocaleDateString("en-US", {
|
|
1222
1218
|
year: "numeric",
|
|
1223
1219
|
month: "2-digit",
|
|
1224
1220
|
day: "2-digit"
|
|
1225
|
-
}).replaceAll("/", "-")} ${
|
|
1221
|
+
}).replaceAll("/", "-")} ${h} ${b.toLocaleTimeString(
|
|
1226
1222
|
C,
|
|
1227
1223
|
{
|
|
1228
1224
|
hour: "2-digit",
|
|
@@ -1231,7 +1227,7 @@ function it(c) {
|
|
|
1231
1227
|
}
|
|
1232
1228
|
)}`;
|
|
1233
1229
|
default:
|
|
1234
|
-
return
|
|
1230
|
+
return b.toLocaleDateString(C, {
|
|
1235
1231
|
year: "numeric",
|
|
1236
1232
|
month: "2-digit",
|
|
1237
1233
|
day: "2-digit"
|
|
@@ -1275,9 +1271,9 @@ it.defaultProps = {
|
|
|
1275
1271
|
// 默认不使用英文
|
|
1276
1272
|
};
|
|
1277
1273
|
function lt(c) {
|
|
1278
|
-
const { className: r = "", disabled: o, onChange: n, time: l } = c, [
|
|
1279
|
-
const g = new Date(u), v = g.getFullYear(),
|
|
1280
|
-
return `${v}-${
|
|
1274
|
+
const { className: r = "", disabled: o, onChange: n, time: l } = c, [y, d] = _(""), m = (u) => {
|
|
1275
|
+
const g = new Date(u), v = g.getFullYear(), D = (g.getMonth() + 1).toString().padStart(2, "0"), b = g.getDate().toString().padStart(2, "0"), C = g.getHours().toString().padStart(2, "0"), h = g.getMinutes().toString().padStart(2, "0");
|
|
1276
|
+
return `${v}-${D}-${b} ${C}:${h}`;
|
|
1281
1277
|
}, p = (u) => {
|
|
1282
1278
|
const g = u.target.value;
|
|
1283
1279
|
d(g);
|
|
@@ -1288,7 +1284,7 @@ function lt(c) {
|
|
|
1288
1284
|
"input",
|
|
1289
1285
|
{
|
|
1290
1286
|
type: w,
|
|
1291
|
-
value:
|
|
1287
|
+
value: y,
|
|
1292
1288
|
onChange: p,
|
|
1293
1289
|
className: f,
|
|
1294
1290
|
disabled: o
|
|
@@ -1314,7 +1310,7 @@ function ct(c) {
|
|
|
1314
1310
|
title: o,
|
|
1315
1311
|
okText: n,
|
|
1316
1312
|
cancelText: l,
|
|
1317
|
-
open:
|
|
1313
|
+
open: y,
|
|
1318
1314
|
onClose: d,
|
|
1319
1315
|
type: m,
|
|
1320
1316
|
containerStyles: p,
|
|
@@ -1323,16 +1319,16 @@ function ct(c) {
|
|
|
1323
1319
|
btnStyles: u,
|
|
1324
1320
|
footerButtons: g,
|
|
1325
1321
|
maskClosable: v = !0
|
|
1326
|
-
} = c, [
|
|
1322
|
+
} = c, [D, b] = _(!1), [C, h] = _(!1);
|
|
1327
1323
|
ke(() => {
|
|
1328
|
-
|
|
1329
|
-
|
|
1324
|
+
y ? (b(!0), h(!1)) : D && (h(!0), setTimeout(() => {
|
|
1325
|
+
b(!1), h(!1);
|
|
1330
1326
|
}, 300));
|
|
1331
|
-
}, [
|
|
1332
|
-
function
|
|
1327
|
+
}, [y]);
|
|
1328
|
+
function E() {
|
|
1333
1329
|
d && d();
|
|
1334
1330
|
}
|
|
1335
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children:
|
|
1331
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: D && /* @__PURE__ */ s.jsx(
|
|
1336
1332
|
"div",
|
|
1337
1333
|
{
|
|
1338
1334
|
className: `${Y.drawerOverlay} ${C ? Y.fadeOut : Y.fadeIn}`,
|
|
@@ -1350,7 +1346,7 @@ function ct(c) {
|
|
|
1350
1346
|
/* @__PURE__ */ s.jsx("div", { className: Y.drawerContent, children: r }),
|
|
1351
1347
|
/* @__PURE__ */ s.jsx("div", { className: Y.drawerFooter, style: f, children: (g || [
|
|
1352
1348
|
{ key: "cancel", text: l, onClick: d },
|
|
1353
|
-
{ key: "ok", text: n, onClick:
|
|
1349
|
+
{ key: "ok", text: n, onClick: E }
|
|
1354
1350
|
]).map((x) => /* @__PURE__ */ s.jsx(
|
|
1355
1351
|
pe,
|
|
1356
1352
|
{
|
|
@@ -1412,7 +1408,7 @@ function ut(c) {
|
|
|
1412
1408
|
size: o = "medium",
|
|
1413
1409
|
sx: n = {},
|
|
1414
1410
|
style: l = {},
|
|
1415
|
-
className:
|
|
1411
|
+
className: y = "",
|
|
1416
1412
|
onClick: d,
|
|
1417
1413
|
onChange: m,
|
|
1418
1414
|
value: p,
|
|
@@ -1420,15 +1416,15 @@ function ut(c) {
|
|
|
1420
1416
|
disabled: f = !1,
|
|
1421
1417
|
placeholder: u = "",
|
|
1422
1418
|
maxlength: g
|
|
1423
|
-
} = c, v = ve.input,
|
|
1419
|
+
} = c, v = ve.input, D = ve[`input${o.charAt(0).toUpperCase() + o.slice(1)}`] || "", b = f ? ve.inputDisabled : "", h = W(typeof n == "object" ? n : {}), x = [
|
|
1424
1420
|
v,
|
|
1425
|
-
|
|
1426
|
-
|
|
1421
|
+
D,
|
|
1422
|
+
b,
|
|
1427
1423
|
typeof n == "string" ? n : "",
|
|
1428
1424
|
// sx 为 className 字符串
|
|
1429
|
-
|
|
1425
|
+
y
|
|
1430
1426
|
// 额外 className
|
|
1431
|
-
].filter(Boolean).join(" "), O = { ...
|
|
1427
|
+
].filter(Boolean).join(" "), O = { ...h, ...l }, T = r === "password" ? "password" : "text", I = {
|
|
1432
1428
|
className: x,
|
|
1433
1429
|
style: O,
|
|
1434
1430
|
onClick: d,
|
|
@@ -1522,16 +1518,16 @@ function dt(c) {
|
|
|
1522
1518
|
style: o = {},
|
|
1523
1519
|
className: n = "",
|
|
1524
1520
|
onClick: l,
|
|
1525
|
-
children:
|
|
1521
|
+
children: y,
|
|
1526
1522
|
size: d = "medium"
|
|
1527
|
-
} = c, p = W(typeof r == "object" ? r : {}), w = typeof r == "string" ? r : "", f = !!
|
|
1523
|
+
} = c, p = W(typeof r == "object" ? r : {}), w = typeof r == "string" ? r : "", f = !!y, u = re[`line${d.charAt(0).toUpperCase() + d.slice(1)}`] || "", g = f ? re.lineHasText : re.lineNoText, v = [
|
|
1528
1524
|
re.line,
|
|
1529
1525
|
u,
|
|
1530
1526
|
g,
|
|
1531
1527
|
w,
|
|
1532
1528
|
n
|
|
1533
|
-
].filter(Boolean).join(" "),
|
|
1534
|
-
return /* @__PURE__ */ s.jsx("div", { style:
|
|
1529
|
+
].filter(Boolean).join(" "), D = { ...p, ...o };
|
|
1530
|
+
return /* @__PURE__ */ s.jsx("div", { style: D, onClick: l, className: v, children: f && /* @__PURE__ */ s.jsx("div", { className: re.lineText, children: y }) });
|
|
1535
1531
|
}
|
|
1536
1532
|
dt.propTypes = {
|
|
1537
1533
|
sx: t.oneOfType([t.object, t.string]),
|
|
@@ -1555,10 +1551,10 @@ function ft(c) {
|
|
|
1555
1551
|
style: o = {},
|
|
1556
1552
|
className: n = "",
|
|
1557
1553
|
onClick: l,
|
|
1558
|
-
children:
|
|
1554
|
+
children: y,
|
|
1559
1555
|
color: d = "default",
|
|
1560
1556
|
beauty: m = !1
|
|
1561
|
-
} = c, w = W(typeof r == "object" ? r : {}), f = typeof r == "string" ? r : "",
|
|
1557
|
+
} = c, w = W(typeof r == "object" ? r : {}), f = typeof r == "string" ? r : "", D = {
|
|
1562
1558
|
backgroundColor: d === "default" ? "#ffe28d" : d,
|
|
1563
1559
|
...{
|
|
1564
1560
|
width: "auto",
|
|
@@ -1575,10 +1571,10 @@ function ft(c) {
|
|
|
1575
1571
|
return /* @__PURE__ */ s.jsx(
|
|
1576
1572
|
"div",
|
|
1577
1573
|
{
|
|
1578
|
-
style:
|
|
1574
|
+
style: D,
|
|
1579
1575
|
onClick: l,
|
|
1580
1576
|
className: `${Zr.mark} ${f} ${n}`.trim(),
|
|
1581
|
-
children:
|
|
1577
|
+
children: y
|
|
1582
1578
|
}
|
|
1583
1579
|
);
|
|
1584
1580
|
}
|
|
@@ -1606,7 +1602,7 @@ function pt(c) {
|
|
|
1606
1602
|
title: o,
|
|
1607
1603
|
okText: n,
|
|
1608
1604
|
cancelText: l,
|
|
1609
|
-
open:
|
|
1605
|
+
open: y,
|
|
1610
1606
|
onOk: d,
|
|
1611
1607
|
onClose: m,
|
|
1612
1608
|
containerStyles: p,
|
|
@@ -1615,16 +1611,16 @@ function pt(c) {
|
|
|
1615
1611
|
btnStyles: u,
|
|
1616
1612
|
footerButtons: g,
|
|
1617
1613
|
maskClosable: v = !0
|
|
1618
|
-
} = c, [
|
|
1614
|
+
} = c, [D, b] = _(!1), [C, h] = _(!1);
|
|
1619
1615
|
ke(() => {
|
|
1620
|
-
|
|
1621
|
-
|
|
1616
|
+
y ? (b(!0), h(!1)) : D && (h(!0), setTimeout(() => {
|
|
1617
|
+
b(!1), h(!1);
|
|
1622
1618
|
}, 300));
|
|
1623
|
-
}, [
|
|
1624
|
-
function
|
|
1619
|
+
}, [y]);
|
|
1620
|
+
function E() {
|
|
1625
1621
|
d && d();
|
|
1626
1622
|
}
|
|
1627
|
-
return /* @__PURE__ */ s.jsx(s.Fragment, { children:
|
|
1623
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: D && /* @__PURE__ */ s.jsx(
|
|
1628
1624
|
"div",
|
|
1629
1625
|
{
|
|
1630
1626
|
className: `${V.modalOverlay} ${C ? V.fadeOut : V.fadeIn}`,
|
|
@@ -1642,7 +1638,7 @@ function pt(c) {
|
|
|
1642
1638
|
/* @__PURE__ */ s.jsx("div", { className: V.modalContent, children: r }),
|
|
1643
1639
|
/* @__PURE__ */ s.jsx("div", { className: V.modalFooter, style: f, children: (g || [
|
|
1644
1640
|
{ key: "cancel", text: l, onClick: m },
|
|
1645
|
-
{ key: "ok", text: n, onClick:
|
|
1641
|
+
{ key: "ok", text: n, onClick: E }
|
|
1646
1642
|
]).map((x) => /* @__PURE__ */ s.jsx(
|
|
1647
1643
|
pe,
|
|
1648
1644
|
{
|
|
@@ -1697,7 +1693,7 @@ pt.defaultProps = {
|
|
|
1697
1693
|
maskClosable: !0
|
|
1698
1694
|
};
|
|
1699
1695
|
function mt({ type: c = "success", icon: r, message: o }) {
|
|
1700
|
-
const [n, l] = _(!0), [
|
|
1696
|
+
const [n, l] = _(!0), [y, d] = _(!1);
|
|
1701
1697
|
return ke(() => {
|
|
1702
1698
|
const m = setTimeout(() => {
|
|
1703
1699
|
d(!0);
|
|
@@ -1707,7 +1703,7 @@ function mt({ type: c = "success", icon: r, message: o }) {
|
|
|
1707
1703
|
return () => clearTimeout(p);
|
|
1708
1704
|
}, 3e3);
|
|
1709
1705
|
return () => clearTimeout(m);
|
|
1710
|
-
}, []), n ? /* @__PURE__ */ s.jsxs("div", { className: `${He.notice} ${
|
|
1706
|
+
}, []), n ? /* @__PURE__ */ s.jsxs("div", { className: `${He.notice} ${y ? He.fadeOut : ""}`, children: [
|
|
1711
1707
|
/* @__PURE__ */ s.jsx("img", { src: r, alt: c }),
|
|
1712
1708
|
/* @__PURE__ */ s.jsx("span", { children: o })
|
|
1713
1709
|
] }) : null;
|
|
@@ -1753,11 +1749,11 @@ function Kn() {
|
|
|
1753
1749
|
return o || (o = document.createElement("div"), o.id = "notification-container", document.body.appendChild(o)), Se || (Se = Un.createRoot(o)), o;
|
|
1754
1750
|
}, r = (o, n) => {
|
|
1755
1751
|
c();
|
|
1756
|
-
const
|
|
1752
|
+
const y = {
|
|
1757
1753
|
success: at,
|
|
1758
1754
|
fail: _n,
|
|
1759
1755
|
caution: Vn
|
|
1760
|
-
}[o] || at, d = /* @__PURE__ */ s.jsx(mt, { type: o, icon:
|
|
1756
|
+
}[o] || at, d = /* @__PURE__ */ s.jsx(mt, { type: o, icon: y, message: n }, Date.now());
|
|
1761
1757
|
Se.render(d);
|
|
1762
1758
|
};
|
|
1763
1759
|
return {
|
|
@@ -1772,7 +1768,7 @@ function gt(c) {
|
|
|
1772
1768
|
sx: o = {},
|
|
1773
1769
|
style: n = {},
|
|
1774
1770
|
className: l = "",
|
|
1775
|
-
onSearch:
|
|
1771
|
+
onSearch: y,
|
|
1776
1772
|
value: d,
|
|
1777
1773
|
defaultValue: m = "",
|
|
1778
1774
|
disabled: p = !1,
|
|
@@ -1780,17 +1776,17 @@ function gt(c) {
|
|
|
1780
1776
|
path: f = "",
|
|
1781
1777
|
btnText: u = "搜索",
|
|
1782
1778
|
btnStyles: g = {}
|
|
1783
|
-
} = c, v = st(null),
|
|
1779
|
+
} = c, v = st(null), b = W(typeof o == "object" ? o : {}), C = typeof o == "string" ? o : "", h = d !== void 0 && y !== void 0, E = `${ne.searchInput} ${ne[`searchInput_${r}`]} ${p ? ne.searchInputDisabled : ""} ${C} ${l}`, x = { ...b, ...n };
|
|
1784
1780
|
return /* @__PURE__ */ s.jsxs("div", { className: ne.searchContainer, children: [
|
|
1785
1781
|
/* @__PURE__ */ s.jsx(
|
|
1786
1782
|
"input",
|
|
1787
1783
|
{
|
|
1788
|
-
className:
|
|
1784
|
+
className: E,
|
|
1789
1785
|
style: x,
|
|
1790
|
-
ref:
|
|
1791
|
-
onKeyDown: (O) => O.key === "Enter" &&
|
|
1792
|
-
value:
|
|
1793
|
-
defaultValue:
|
|
1786
|
+
ref: h ? void 0 : v,
|
|
1787
|
+
onKeyDown: (O) => O.key === "Enter" && y(h ? d : v.current.value),
|
|
1788
|
+
value: h ? d : void 0,
|
|
1789
|
+
defaultValue: h ? void 0 : m,
|
|
1794
1790
|
disabled: p,
|
|
1795
1791
|
placeholder: w
|
|
1796
1792
|
}
|
|
@@ -1799,7 +1795,7 @@ function gt(c) {
|
|
|
1799
1795
|
"button",
|
|
1800
1796
|
{
|
|
1801
1797
|
className: ne.searchButton,
|
|
1802
|
-
onClick: () =>
|
|
1798
|
+
onClick: () => y(h ? d : v.current.value),
|
|
1803
1799
|
style: g,
|
|
1804
1800
|
children: f ? /* @__PURE__ */ s.jsx(
|
|
1805
1801
|
"img",
|
|
@@ -1845,7 +1841,7 @@ const ht = Ee.forwardRef((c, r) => {
|
|
|
1845
1841
|
sx: o = {},
|
|
1846
1842
|
style: n = {},
|
|
1847
1843
|
className: l = "",
|
|
1848
|
-
onClick:
|
|
1844
|
+
onClick: y,
|
|
1849
1845
|
children: d,
|
|
1850
1846
|
type: m = "default"
|
|
1851
1847
|
} = c, w = W(typeof o == "object" ? o : {}), f = typeof o == "string" ? o : "", u = { ...w, ...n }, g = `${f} ${$e.space} ${$e[`space_${m}`] || ""} ${l}`;
|
|
@@ -1854,7 +1850,7 @@ const ht = Ee.forwardRef((c, r) => {
|
|
|
1854
1850
|
{
|
|
1855
1851
|
ref: r,
|
|
1856
1852
|
style: u,
|
|
1857
|
-
onClick:
|
|
1853
|
+
onClick: y,
|
|
1858
1854
|
className: g,
|
|
1859
1855
|
children: d
|
|
1860
1856
|
}
|
|
@@ -1891,7 +1887,7 @@ function At({
|
|
|
1891
1887
|
className: o = "",
|
|
1892
1888
|
tableWapperStyles: n = {},
|
|
1893
1889
|
tableWrapperClassName: l = "",
|
|
1894
|
-
containerStyles:
|
|
1890
|
+
containerStyles: y = {},
|
|
1895
1891
|
containerClassName: d = "",
|
|
1896
1892
|
theadStyles: m = {},
|
|
1897
1893
|
theadClassName: p = "",
|
|
@@ -1901,15 +1897,15 @@ function At({
|
|
|
1901
1897
|
rowStyle: g = () => {
|
|
1902
1898
|
},
|
|
1903
1899
|
cellClassName: v = () => "",
|
|
1904
|
-
cellStyle:
|
|
1900
|
+
cellStyle: D = () => {
|
|
1905
1901
|
},
|
|
1906
|
-
hoverColor:
|
|
1902
|
+
hoverColor: b = "",
|
|
1907
1903
|
// 自定义 hover
|
|
1908
1904
|
hide: C = []
|
|
1909
1905
|
// 新增,支持字符串数组或不传
|
|
1910
1906
|
}) {
|
|
1911
|
-
const
|
|
1912
|
-
(x) => !x.hide && !
|
|
1907
|
+
const h = Array.isArray(C) ? C : typeof C == "string" ? [C] : [], E = r.filter(
|
|
1908
|
+
(x) => !x.hide && !h.includes(x.dataIndex)
|
|
1913
1909
|
);
|
|
1914
1910
|
return /* @__PURE__ */ s.jsxs(
|
|
1915
1911
|
"div",
|
|
@@ -1921,23 +1917,23 @@ function At({
|
|
|
1921
1917
|
...n
|
|
1922
1918
|
},
|
|
1923
1919
|
children: [
|
|
1924
|
-
|
|
1920
|
+
b && /* @__PURE__ */ s.jsx("style", { children: `
|
|
1925
1921
|
.${de.table} tbody tr:hover {
|
|
1926
|
-
background-color: ${
|
|
1922
|
+
background-color: ${b} !important;
|
|
1927
1923
|
}
|
|
1928
1924
|
` }),
|
|
1929
1925
|
/* @__PURE__ */ s.jsxs(
|
|
1930
1926
|
"table",
|
|
1931
1927
|
{
|
|
1932
1928
|
className: `${de.table} ${d}`,
|
|
1933
|
-
style:
|
|
1929
|
+
style: y,
|
|
1934
1930
|
children: [
|
|
1935
1931
|
/* @__PURE__ */ s.jsx(
|
|
1936
1932
|
"thead",
|
|
1937
1933
|
{
|
|
1938
1934
|
className: `${de.thead} ${p}`,
|
|
1939
1935
|
style: m,
|
|
1940
|
-
children: /* @__PURE__ */ s.jsx("tr", { className: f, style: w, children:
|
|
1936
|
+
children: /* @__PURE__ */ s.jsx("tr", { className: f, style: w, children: E.map((x) => /* @__PURE__ */ s.jsx(
|
|
1941
1937
|
"th",
|
|
1942
1938
|
{
|
|
1943
1939
|
style: x.width ? { width: x.width } : {},
|
|
@@ -1954,7 +1950,7 @@ function At({
|
|
|
1954
1950
|
{
|
|
1955
1951
|
className: u(x, O, T),
|
|
1956
1952
|
style: g(x, O, T),
|
|
1957
|
-
children:
|
|
1953
|
+
children: E.map((I, L) => {
|
|
1958
1954
|
const G = L % 2 === 0 ? "even" : "odd";
|
|
1959
1955
|
return /* @__PURE__ */ s.jsx(
|
|
1960
1956
|
"td",
|
|
@@ -1969,7 +1965,7 @@ function At({
|
|
|
1969
1965
|
),
|
|
1970
1966
|
style: {
|
|
1971
1967
|
...I.width ? { width: I.width } : {},
|
|
1972
|
-
...
|
|
1968
|
+
...D(
|
|
1973
1969
|
x,
|
|
1974
1970
|
I,
|
|
1975
1971
|
O,
|
|
@@ -2038,13 +2034,13 @@ At.defaultProps = {
|
|
|
2038
2034
|
hide: []
|
|
2039
2035
|
};
|
|
2040
2036
|
function yt({ children: c, tooltipText: r, placement: o = "top", tooltipClassName: n = "" }) {
|
|
2041
|
-
const [l,
|
|
2037
|
+
const [l, y] = _(!1);
|
|
2042
2038
|
return /* @__PURE__ */ s.jsxs(
|
|
2043
2039
|
"div",
|
|
2044
2040
|
{
|
|
2045
2041
|
className: `${we.tooltipWrapper} ${we[`tooltip${o[0].toUpperCase() + o.slice(1)}`]}`,
|
|
2046
|
-
onMouseEnter: () =>
|
|
2047
|
-
onMouseLeave: () =>
|
|
2042
|
+
onMouseEnter: () => y(!0),
|
|
2043
|
+
onMouseLeave: () => y(!1),
|
|
2048
2044
|
children: [
|
|
2049
2045
|
c,
|
|
2050
2046
|
l && /* @__PURE__ */ s.jsx("div", { className: `${we.tooltip} ${n}`, children: r })
|