xmirror-components 1.0.23 → 1.0.24
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/build/dist/index.cjs +14 -14
- package/build/dist/index.mjs +120 -121
- package/build/es/components/IconButton/index.d.ts +3 -4
- package/build/es/components/IconButton/index.js +3 -3
- package/build/lib/components/IconButton/index.d.ts +3 -4
- package/build/lib/components/IconButton/index.js +3 -3
- package/build/lib/index.d.ts +1 -1
- package/build/package.json +1 -1
- package/build/types/components/IconButton/index.d.ts +3 -4
- package/package.json +1 -1
package/build/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as fe from "react";
|
|
2
|
-
import
|
|
2
|
+
import je, { forwardRef as ln, useContext as Bn, useRef as re, useState as dn, useEffect as Ie, useMemo as pn, useCallback as Hn } from "react";
|
|
3
3
|
import { message as Vn, notification as Xn, Modal as Jn, App as vn, Checkbox as Kn, Switch as Zn, Button as Qn, Tooltip as ea } from "antd";
|
|
4
4
|
import ir from "react-dom";
|
|
5
5
|
var sr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -176,27 +176,27 @@ function ta() {
|
|
|
176
176
|
DetermineComponentFrameRoot: function() {
|
|
177
177
|
try {
|
|
178
178
|
if (C) {
|
|
179
|
-
var
|
|
179
|
+
var Ae = function() {
|
|
180
180
|
throw Error();
|
|
181
181
|
};
|
|
182
|
-
if (Object.defineProperty(
|
|
182
|
+
if (Object.defineProperty(Ae.prototype, "props", {
|
|
183
183
|
set: function() {
|
|
184
184
|
throw Error();
|
|
185
185
|
}
|
|
186
186
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
187
187
|
try {
|
|
188
|
-
Reflect.construct(
|
|
188
|
+
Reflect.construct(Ae, []);
|
|
189
189
|
} catch (Pe) {
|
|
190
190
|
var or = Pe;
|
|
191
191
|
}
|
|
192
|
-
Reflect.construct(c, [],
|
|
192
|
+
Reflect.construct(c, [], Ae);
|
|
193
193
|
} else {
|
|
194
194
|
try {
|
|
195
|
-
|
|
195
|
+
Ae.call();
|
|
196
196
|
} catch (Pe) {
|
|
197
197
|
or = Pe;
|
|
198
198
|
}
|
|
199
|
-
c.call(
|
|
199
|
+
c.call(Ae.prototype);
|
|
200
200
|
}
|
|
201
201
|
} else {
|
|
202
202
|
try {
|
|
@@ -204,7 +204,7 @@ function ta() {
|
|
|
204
204
|
} catch (Pe) {
|
|
205
205
|
or = Pe;
|
|
206
206
|
}
|
|
207
|
-
(
|
|
207
|
+
(Ae = c()) && typeof Ae.catch == "function" && Ae.catch(function() {
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
} catch (Pe) {
|
|
@@ -432,7 +432,7 @@ Check the render method of \`` + _ + "`."), C || (c = e(c)) && (C = `
|
|
|
432
432
|
|
|
433
433
|
Check the top-level render call using <` + c + ">."), C;
|
|
434
434
|
}
|
|
435
|
-
var T =
|
|
435
|
+
var T = je, S = Symbol.for("react.transitional.element"), l = Symbol.for("react.portal"), A = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), J = Symbol.for("react.profiler"), me = Symbol.for("react.consumer"), le = Symbol.for("react.context"), te = Symbol.for("react.forward_ref"), he = Symbol.for("react.suspense"), V = Symbol.for("react.suspense_list"), Z = Symbol.for("react.memo"), de = Symbol.for("react.lazy"), ne = Symbol.for("react.offscreen"), Ee = Symbol.iterator, _e = Symbol.for("react.client.reference"), ye = T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, y = Object.prototype.hasOwnProperty, E = Object.assign, I = Symbol.for("react.client.reference"), N = Array.isArray, O = 0, L, $, k, D, F, q, ee;
|
|
436
436
|
t.__reactDisabledLog = !0;
|
|
437
437
|
var v, ae, ge = !1, Oe = new (typeof WeakMap == "function" ? WeakMap : Map)(), Gn = Symbol.for("react.client.reference"), mt, ht = {}, yt = {}, gt = {};
|
|
438
438
|
He.Fragment = A, He.jsx = function(c, C, _, W, ie) {
|
|
@@ -1167,7 +1167,7 @@ var ma = process.env.NODE_ENV !== "production" ? j.oneOfType([j.number, j.shape(
|
|
|
1167
1167
|
exitDone: j.string,
|
|
1168
1168
|
exitActive: j.string
|
|
1169
1169
|
})]) : null;
|
|
1170
|
-
const bn =
|
|
1170
|
+
const bn = je.createContext(null);
|
|
1171
1171
|
var En = function(r) {
|
|
1172
1172
|
return r.scrollTop;
|
|
1173
1173
|
}, Ke = "unmounted", $e = "exited", ke = "entering", Fe = "entered", Zr = "exiting", Ce = /* @__PURE__ */ function(e) {
|
|
@@ -1292,12 +1292,12 @@ var En = function(r) {
|
|
|
1292
1292
|
var s = mn(o, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
1293
1293
|
return (
|
|
1294
1294
|
// allows for nested Transitions
|
|
1295
|
-
/* @__PURE__ */
|
|
1295
|
+
/* @__PURE__ */ je.createElement(bn.Provider, {
|
|
1296
1296
|
value: null
|
|
1297
|
-
}, typeof i == "function" ? i(a, s) :
|
|
1297
|
+
}, typeof i == "function" ? i(a, s) : je.cloneElement(je.Children.only(i), s))
|
|
1298
1298
|
);
|
|
1299
1299
|
}, r;
|
|
1300
|
-
}(
|
|
1300
|
+
}(je.Component);
|
|
1301
1301
|
Ce.contextType = bn;
|
|
1302
1302
|
Ce.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1303
1303
|
/**
|
|
@@ -1546,7 +1546,7 @@ var ya = function(r, n) {
|
|
|
1546
1546
|
var a = this.props;
|
|
1547
1547
|
a.classNames;
|
|
1548
1548
|
var o = mn(a, ["classNames"]);
|
|
1549
|
-
return /* @__PURE__ */
|
|
1549
|
+
return /* @__PURE__ */ je.createElement(Ce, er({}, o, {
|
|
1550
1550
|
onEnter: this.onEnter,
|
|
1551
1551
|
onEntered: this.onEntered,
|
|
1552
1552
|
onEntering: this.onEntering,
|
|
@@ -1555,7 +1555,7 @@ var ya = function(r, n) {
|
|
|
1555
1555
|
onExited: this.onExited
|
|
1556
1556
|
}));
|
|
1557
1557
|
}, r;
|
|
1558
|
-
}(
|
|
1558
|
+
}(je.Component);
|
|
1559
1559
|
ot.defaultProps = {
|
|
1560
1560
|
classNames: ""
|
|
1561
1561
|
};
|
|
@@ -3164,7 +3164,7 @@ function _o({ children: e }) {
|
|
|
3164
3164
|
const r = vn.useApp();
|
|
3165
3165
|
return In = r.message, Co = r.modal, wo = r.notification, e || "";
|
|
3166
3166
|
}
|
|
3167
|
-
function
|
|
3167
|
+
function Li({ children: e, ...r }) {
|
|
3168
3168
|
return /* @__PURE__ */ X.jsxs(
|
|
3169
3169
|
vn,
|
|
3170
3170
|
{
|
|
@@ -3194,7 +3194,7 @@ const Oo = ln(
|
|
|
3194
3194
|
...t
|
|
3195
3195
|
}
|
|
3196
3196
|
)
|
|
3197
|
-
),
|
|
3197
|
+
), Di = ({
|
|
3198
3198
|
checked: e,
|
|
3199
3199
|
onChange: r,
|
|
3200
3200
|
trueValue: n = !0,
|
|
@@ -3216,7 +3216,7 @@ const Oo = ln(
|
|
|
3216
3216
|
children: i || (f ? a : o)
|
|
3217
3217
|
}
|
|
3218
3218
|
);
|
|
3219
|
-
},
|
|
3219
|
+
}, qi = ({
|
|
3220
3220
|
checked: e,
|
|
3221
3221
|
onChange: r,
|
|
3222
3222
|
trueValue: n = !0,
|
|
@@ -3300,47 +3300,46 @@ const Go = ze(Qn)`
|
|
|
3300
3300
|
...o,
|
|
3301
3301
|
children: e
|
|
3302
3302
|
}
|
|
3303
|
-
),
|
|
3303
|
+
), Fi = (e) => {
|
|
3304
3304
|
const {
|
|
3305
|
-
icon:
|
|
3306
|
-
tooltipDisabled:
|
|
3307
|
-
title:
|
|
3308
|
-
hide:
|
|
3309
|
-
disabledReason:
|
|
3310
|
-
onClick:
|
|
3311
|
-
disabled:
|
|
3312
|
-
size:
|
|
3313
|
-
style:
|
|
3314
|
-
className:
|
|
3315
|
-
loading:
|
|
3316
|
-
...
|
|
3317
|
-
} = e,
|
|
3318
|
-
return
|
|
3305
|
+
icon: r,
|
|
3306
|
+
tooltipDisabled: n = !1,
|
|
3307
|
+
title: t,
|
|
3308
|
+
hide: a = !1,
|
|
3309
|
+
disabledReason: o,
|
|
3310
|
+
onClick: i = Yo,
|
|
3311
|
+
disabled: s,
|
|
3312
|
+
size: f = "small",
|
|
3313
|
+
style: u = {},
|
|
3314
|
+
className: d,
|
|
3315
|
+
loading: p = !1,
|
|
3316
|
+
...b
|
|
3317
|
+
} = e, g = () => Uo(r) ? /* @__PURE__ */ X.jsx(Oo, { type: r }) : r;
|
|
3318
|
+
return r || console.warn("Icon props not found"), /* @__PURE__ */ X.jsx(
|
|
3319
3319
|
Bo,
|
|
3320
3320
|
{
|
|
3321
|
-
tooltipDisabled:
|
|
3322
|
-
hide:
|
|
3323
|
-
disabled:
|
|
3324
|
-
disabledReason:
|
|
3325
|
-
title:
|
|
3326
|
-
...
|
|
3321
|
+
tooltipDisabled: n,
|
|
3322
|
+
hide: a,
|
|
3323
|
+
disabled: s,
|
|
3324
|
+
disabledReason: o,
|
|
3325
|
+
title: t,
|
|
3326
|
+
...b,
|
|
3327
3327
|
children: /* @__PURE__ */ X.jsx(
|
|
3328
3328
|
Go,
|
|
3329
3329
|
{
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
onClick: s
|
|
3330
|
+
icon: g(),
|
|
3331
|
+
size: f,
|
|
3332
|
+
className: d,
|
|
3333
|
+
disabled: s,
|
|
3334
|
+
style: u,
|
|
3335
|
+
loading: p,
|
|
3336
|
+
onClick: i
|
|
3338
3337
|
}
|
|
3339
3338
|
)
|
|
3340
3339
|
}
|
|
3341
3340
|
);
|
|
3342
|
-
}
|
|
3343
|
-
var
|
|
3341
|
+
};
|
|
3342
|
+
var Ho = function(e) {
|
|
3344
3343
|
return function(r, n) {
|
|
3345
3344
|
var t = re(!1);
|
|
3346
3345
|
e(function() {
|
|
@@ -3371,7 +3370,7 @@ function Dn(e, r) {
|
|
|
3371
3370
|
r.indexOf(t[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[a]) && (n[t[a]] = e[t[a]]);
|
|
3372
3371
|
return n;
|
|
3373
3372
|
}
|
|
3374
|
-
function
|
|
3373
|
+
function Vo(e, r, n, t) {
|
|
3375
3374
|
function a(o) {
|
|
3376
3375
|
return o instanceof n ? o : new n(function(i) {
|
|
3377
3376
|
i(o);
|
|
@@ -3398,7 +3397,7 @@ function Xo(e, r, n, t) {
|
|
|
3398
3397
|
u((t = t.apply(e, r || [])).next());
|
|
3399
3398
|
});
|
|
3400
3399
|
}
|
|
3401
|
-
function
|
|
3400
|
+
function Xo(e, r) {
|
|
3402
3401
|
var n = { label: 0, sent: function() {
|
|
3403
3402
|
if (o[0] & 1) throw o[1];
|
|
3404
3403
|
return o[1];
|
|
@@ -3496,7 +3495,7 @@ function qe(e) {
|
|
|
3496
3495
|
return r.current.apply(this, t);
|
|
3497
3496
|
}), n.current;
|
|
3498
3497
|
}
|
|
3499
|
-
const tt =
|
|
3498
|
+
const tt = Ho(Ie);
|
|
3500
3499
|
var qn = function(e, r) {
|
|
3501
3500
|
var n = r.manual, t = r.ready, a = t === void 0 ? !0 : t, o = r.defaultParams, i = o === void 0 ? [] : o, s = r.refreshDeps, f = s === void 0 ? [] : s, u = r.refreshDepsAction, d = re(!1);
|
|
3502
3501
|
return d.current = !1, tt(function() {
|
|
@@ -3518,7 +3517,7 @@ qn.onInit = function(e) {
|
|
|
3518
3517
|
loading: !t && n
|
|
3519
3518
|
};
|
|
3520
3519
|
};
|
|
3521
|
-
function
|
|
3520
|
+
function Jo(e, r) {
|
|
3522
3521
|
if (e === r) return !0;
|
|
3523
3522
|
for (var n = 0; n < e.length; n++)
|
|
3524
3523
|
if (!Object.is(e[n], r[n])) return !1;
|
|
@@ -3530,7 +3529,7 @@ function Fn(e, r) {
|
|
|
3530
3529
|
obj: void 0,
|
|
3531
3530
|
initialized: !1
|
|
3532
3531
|
}).current;
|
|
3533
|
-
return (n.initialized === !1 || !
|
|
3532
|
+
return (n.initialized === !1 || !Jo(n.deps, r)) && (n.deps = r, n.obj = e(), n.initialized = !0), n.obj;
|
|
3534
3533
|
}
|
|
3535
3534
|
function Wn(e) {
|
|
3536
3535
|
var r = re(e);
|
|
@@ -3544,7 +3543,7 @@ var dt = function(e) {
|
|
|
3544
3543
|
r.current();
|
|
3545
3544
|
};
|
|
3546
3545
|
}, []);
|
|
3547
|
-
}, hr = /* @__PURE__ */ new Map(),
|
|
3546
|
+
}, hr = /* @__PURE__ */ new Map(), Ko = function(e, r, n) {
|
|
3548
3547
|
var t = hr.get(e);
|
|
3549
3548
|
t != null && t.timer && clearTimeout(t.timer);
|
|
3550
3549
|
var a = void 0;
|
|
@@ -3553,17 +3552,17 @@ var dt = function(e) {
|
|
|
3553
3552
|
}, r)), hr.set(e, xe(xe({}, n), {
|
|
3554
3553
|
timer: a
|
|
3555
3554
|
}));
|
|
3556
|
-
},
|
|
3555
|
+
}, Zo = function(e) {
|
|
3557
3556
|
return hr.get(e);
|
|
3558
|
-
}, yr = /* @__PURE__ */ new Map(),
|
|
3557
|
+
}, yr = /* @__PURE__ */ new Map(), Qo = function(e) {
|
|
3559
3558
|
return yr.get(e);
|
|
3560
|
-
},
|
|
3559
|
+
}, ei = function(e, r) {
|
|
3561
3560
|
yr.set(e, r), r.then(function(n) {
|
|
3562
3561
|
return yr.delete(e), n;
|
|
3563
3562
|
}).catch(function() {
|
|
3564
3563
|
yr.delete(e);
|
|
3565
3564
|
});
|
|
3566
|
-
}, Me = {},
|
|
3565
|
+
}, Me = {}, ri = function(e, r) {
|
|
3567
3566
|
Me[e] && Me[e].forEach(function(n) {
|
|
3568
3567
|
return n(r);
|
|
3569
3568
|
});
|
|
@@ -3572,11 +3571,11 @@ var dt = function(e) {
|
|
|
3572
3571
|
var t = Me[e].indexOf(r);
|
|
3573
3572
|
Me[e].splice(t, 1);
|
|
3574
3573
|
};
|
|
3575
|
-
},
|
|
3574
|
+
}, ti = function(e, r) {
|
|
3576
3575
|
var n = r.cacheKey, t = r.cacheTime, a = t === void 0 ? 5 * 60 * 1e3 : t, o = r.staleTime, i = o === void 0 ? 0 : o, s = r.setCache, f = r.getCache, u = re(), d = re(), p = function(g, m) {
|
|
3577
|
-
s ? s(m) :
|
|
3576
|
+
s ? s(m) : Ko(g, a, m), ri(g, m.data);
|
|
3578
3577
|
}, b = function(g, m) {
|
|
3579
|
-
return m === void 0 && (m = []), f ? f(m) :
|
|
3578
|
+
return m === void 0 && (m = []), f ? f(m) : Zo(g);
|
|
3580
3579
|
};
|
|
3581
3580
|
return Fn(function() {
|
|
3582
3581
|
if (n) {
|
|
@@ -3604,10 +3603,10 @@ var dt = function(e) {
|
|
|
3604
3603
|
};
|
|
3605
3604
|
},
|
|
3606
3605
|
onRequest: function(g, m) {
|
|
3607
|
-
var h =
|
|
3606
|
+
var h = Qo(n);
|
|
3608
3607
|
return h && h !== d.current ? {
|
|
3609
3608
|
servicePromise: h
|
|
3610
|
-
} : (h = g.apply(void 0, ce([], ue(m), !1)), d.current = h,
|
|
3609
|
+
} : (h = g.apply(void 0, ce([], ue(m), !1)), d.current = h, ei(n, h), {
|
|
3611
3610
|
servicePromise: h
|
|
3612
3611
|
});
|
|
3613
3612
|
},
|
|
@@ -3647,7 +3646,7 @@ function pt() {
|
|
|
3647
3646
|
return Ir = e, Ir;
|
|
3648
3647
|
}
|
|
3649
3648
|
var Lr, Xt;
|
|
3650
|
-
function
|
|
3649
|
+
function ni() {
|
|
3651
3650
|
if (Xt) return Lr;
|
|
3652
3651
|
Xt = 1;
|
|
3653
3652
|
var e = typeof sr == "object" && sr && sr.Object === Object && sr;
|
|
@@ -3657,11 +3656,11 @@ var Dr, Jt;
|
|
|
3657
3656
|
function Yn() {
|
|
3658
3657
|
if (Jt) return Dr;
|
|
3659
3658
|
Jt = 1;
|
|
3660
|
-
var e =
|
|
3659
|
+
var e = ni(), r = typeof self == "object" && self && self.Object === Object && self, n = e || r || Function("return this")();
|
|
3661
3660
|
return Dr = n, Dr;
|
|
3662
3661
|
}
|
|
3663
3662
|
var qr, Kt;
|
|
3664
|
-
function
|
|
3663
|
+
function ai() {
|
|
3665
3664
|
if (Kt) return qr;
|
|
3666
3665
|
Kt = 1;
|
|
3667
3666
|
var e = Yn(), r = function() {
|
|
@@ -3670,7 +3669,7 @@ function oi() {
|
|
|
3670
3669
|
return qr = r, qr;
|
|
3671
3670
|
}
|
|
3672
3671
|
var Fr, Zt;
|
|
3673
|
-
function
|
|
3672
|
+
function oi() {
|
|
3674
3673
|
if (Zt) return Fr;
|
|
3675
3674
|
Zt = 1;
|
|
3676
3675
|
var e = /\s/;
|
|
@@ -3682,10 +3681,10 @@ function ii() {
|
|
|
3682
3681
|
return Fr = r, Fr;
|
|
3683
3682
|
}
|
|
3684
3683
|
var Wr, Qt;
|
|
3685
|
-
function
|
|
3684
|
+
function ii() {
|
|
3686
3685
|
if (Qt) return Wr;
|
|
3687
3686
|
Qt = 1;
|
|
3688
|
-
var e =
|
|
3687
|
+
var e = oi(), r = /^\s+/;
|
|
3689
3688
|
function n(t) {
|
|
3690
3689
|
return t && t.slice(0, e(t) + 1).replace(r, "");
|
|
3691
3690
|
}
|
|
@@ -3699,7 +3698,7 @@ function zn() {
|
|
|
3699
3698
|
return Yr = r, Yr;
|
|
3700
3699
|
}
|
|
3701
3700
|
var zr, rn;
|
|
3702
|
-
function
|
|
3701
|
+
function si() {
|
|
3703
3702
|
if (rn) return zr;
|
|
3704
3703
|
rn = 1;
|
|
3705
3704
|
var e = zn(), r = Object.prototype, n = r.hasOwnProperty, t = r.toString, a = e ? e.toStringTag : void 0;
|
|
@@ -3716,7 +3715,7 @@ function ui() {
|
|
|
3716
3715
|
return zr = o, zr;
|
|
3717
3716
|
}
|
|
3718
3717
|
var Ur, tn;
|
|
3719
|
-
function
|
|
3718
|
+
function ui() {
|
|
3720
3719
|
if (tn) return Ur;
|
|
3721
3720
|
tn = 1;
|
|
3722
3721
|
var e = Object.prototype, r = e.toString;
|
|
@@ -3726,17 +3725,17 @@ function ci() {
|
|
|
3726
3725
|
return Ur = n, Ur;
|
|
3727
3726
|
}
|
|
3728
3727
|
var Gr, nn;
|
|
3729
|
-
function
|
|
3728
|
+
function ci() {
|
|
3730
3729
|
if (nn) return Gr;
|
|
3731
3730
|
nn = 1;
|
|
3732
|
-
var e = zn(), r =
|
|
3731
|
+
var e = zn(), r = si(), n = ui(), t = "[object Null]", a = "[object Undefined]", o = e ? e.toStringTag : void 0;
|
|
3733
3732
|
function i(s) {
|
|
3734
3733
|
return s == null ? s === void 0 ? a : t : o && o in Object(s) ? r(s) : n(s);
|
|
3735
3734
|
}
|
|
3736
3735
|
return Gr = i, Gr;
|
|
3737
3736
|
}
|
|
3738
3737
|
var Br, an;
|
|
3739
|
-
function
|
|
3738
|
+
function fi() {
|
|
3740
3739
|
if (an) return Br;
|
|
3741
3740
|
an = 1;
|
|
3742
3741
|
function e(r) {
|
|
@@ -3745,20 +3744,20 @@ function li() {
|
|
|
3745
3744
|
return Br = e, Br;
|
|
3746
3745
|
}
|
|
3747
3746
|
var Hr, on;
|
|
3748
|
-
function
|
|
3747
|
+
function li() {
|
|
3749
3748
|
if (on) return Hr;
|
|
3750
3749
|
on = 1;
|
|
3751
|
-
var e =
|
|
3750
|
+
var e = ci(), r = fi(), n = "[object Symbol]";
|
|
3752
3751
|
function t(a) {
|
|
3753
3752
|
return typeof a == "symbol" || r(a) && e(a) == n;
|
|
3754
3753
|
}
|
|
3755
3754
|
return Hr = t, Hr;
|
|
3756
3755
|
}
|
|
3757
3756
|
var Vr, sn;
|
|
3758
|
-
function
|
|
3757
|
+
function di() {
|
|
3759
3758
|
if (sn) return Vr;
|
|
3760
3759
|
sn = 1;
|
|
3761
|
-
var e =
|
|
3760
|
+
var e = ii(), r = pt(), n = li(), t = NaN, a = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, i = /^0o[0-7]+$/i, s = parseInt;
|
|
3762
3761
|
function f(u) {
|
|
3763
3762
|
if (typeof u == "number")
|
|
3764
3763
|
return u;
|
|
@@ -3780,7 +3779,7 @@ var Xr, un;
|
|
|
3780
3779
|
function Un() {
|
|
3781
3780
|
if (un) return Xr;
|
|
3782
3781
|
un = 1;
|
|
3783
|
-
var e = pt(), r =
|
|
3782
|
+
var e = pt(), r = ai(), n = di(), t = "Expected a function", a = Math.max, o = Math.min;
|
|
3784
3783
|
function i(s, f, u) {
|
|
3785
3784
|
var d, p, b, g, m, h, x = 0, w = !1, R = !1, T = !0;
|
|
3786
3785
|
if (typeof s != "function")
|
|
@@ -3830,9 +3829,9 @@ function Un() {
|
|
|
3830
3829
|
}
|
|
3831
3830
|
return Xr = i, Xr;
|
|
3832
3831
|
}
|
|
3833
|
-
var
|
|
3834
|
-
const
|
|
3835
|
-
var
|
|
3832
|
+
var pi = Un();
|
|
3833
|
+
const vi = /* @__PURE__ */ nt(pi);
|
|
3834
|
+
var mi = function(e, r) {
|
|
3836
3835
|
var n = r.debounceWait, t = r.debounceLeading, a = r.debounceTrailing, o = r.debounceMaxWait, i = re(), s = pn(function() {
|
|
3837
3836
|
var f = {};
|
|
3838
3837
|
return t !== void 0 && (f.leading = t), a !== void 0 && (f.trailing = a), o !== void 0 && (f.maxWait = o), f;
|
|
@@ -3840,7 +3839,7 @@ var hi = function(e, r) {
|
|
|
3840
3839
|
return Ie(function() {
|
|
3841
3840
|
if (n) {
|
|
3842
3841
|
var f = e.runAsync.bind(e);
|
|
3843
|
-
return i.current =
|
|
3842
|
+
return i.current = vi(function(u) {
|
|
3844
3843
|
u();
|
|
3845
3844
|
}, n, s), e.runAsync = function() {
|
|
3846
3845
|
for (var u = [], d = 0; d < arguments.length; d++)
|
|
@@ -3862,7 +3861,7 @@ var hi = function(e, r) {
|
|
|
3862
3861
|
(f = i.current) === null || f === void 0 || f.cancel();
|
|
3863
3862
|
}
|
|
3864
3863
|
} : {};
|
|
3865
|
-
},
|
|
3864
|
+
}, hi = function(e, r) {
|
|
3866
3865
|
var n = r.loadingDelay, t = r.ready, a = re();
|
|
3867
3866
|
if (!n)
|
|
3868
3867
|
return {};
|
|
@@ -3891,23 +3890,23 @@ function vt() {
|
|
|
3891
3890
|
return Cr ? document.visibilityState !== "hidden" : !0;
|
|
3892
3891
|
}
|
|
3893
3892
|
var Ze = [];
|
|
3894
|
-
function
|
|
3893
|
+
function yi(e) {
|
|
3895
3894
|
return Ze.push(e), function() {
|
|
3896
3895
|
var n = Ze.indexOf(e);
|
|
3897
3896
|
Ze.splice(n, 1);
|
|
3898
3897
|
};
|
|
3899
3898
|
}
|
|
3900
3899
|
if (Cr) {
|
|
3901
|
-
var
|
|
3900
|
+
var gi = function() {
|
|
3902
3901
|
if (vt())
|
|
3903
3902
|
for (var e = 0; e < Ze.length; e++) {
|
|
3904
3903
|
var r = Ze[e];
|
|
3905
3904
|
r();
|
|
3906
3905
|
}
|
|
3907
3906
|
};
|
|
3908
|
-
window.addEventListener("visibilitychange",
|
|
3907
|
+
window.addEventListener("visibilitychange", gi, !1);
|
|
3909
3908
|
}
|
|
3910
|
-
var
|
|
3909
|
+
var bi = function(e, r) {
|
|
3911
3910
|
var n = r.pollingInterval, t = r.pollingWhenHidden, a = t === void 0 ? !0 : t, o = r.pollingErrorRetryCount, i = o === void 0 ? -1 : o, s = re(), f = re(), u = re(0), d = function() {
|
|
3912
3911
|
var p;
|
|
3913
3912
|
s.current && clearTimeout(s.current), (p = f.current) === null || p === void 0 || p.call(f);
|
|
@@ -3927,7 +3926,7 @@ var Ei = function(e, r) {
|
|
|
3927
3926
|
onFinally: function() {
|
|
3928
3927
|
i === -1 || // When an error occurs, the request is not repeated after pollingErrorRetryCount retries
|
|
3929
3928
|
i !== -1 && u.current <= i ? s.current = setTimeout(function() {
|
|
3930
|
-
!a && !vt() ? f.current =
|
|
3929
|
+
!a && !vt() ? f.current = yi(function() {
|
|
3931
3930
|
e.refresh();
|
|
3932
3931
|
}) : e.refresh();
|
|
3933
3932
|
}, n) : u.current = 0;
|
|
@@ -3937,7 +3936,7 @@ var Ei = function(e, r) {
|
|
|
3937
3936
|
}
|
|
3938
3937
|
} : {};
|
|
3939
3938
|
};
|
|
3940
|
-
function
|
|
3939
|
+
function Ei(e, r) {
|
|
3941
3940
|
var n = !1;
|
|
3942
3941
|
return function() {
|
|
3943
3942
|
for (var t = [], a = 0; a < arguments.length; a++)
|
|
@@ -3947,11 +3946,11 @@ function xi(e, r) {
|
|
|
3947
3946
|
}, r));
|
|
3948
3947
|
};
|
|
3949
3948
|
}
|
|
3950
|
-
function
|
|
3949
|
+
function xi() {
|
|
3951
3950
|
return Cr && typeof navigator.onLine < "u" ? navigator.onLine : !0;
|
|
3952
3951
|
}
|
|
3953
3952
|
var Qe = [];
|
|
3954
|
-
function
|
|
3953
|
+
function Ti(e) {
|
|
3955
3954
|
return Qe.push(e), function() {
|
|
3956
3955
|
var n = Qe.indexOf(e);
|
|
3957
3956
|
n > -1 && Qe.splice(n, 1);
|
|
@@ -3959,7 +3958,7 @@ function Si(e) {
|
|
|
3959
3958
|
}
|
|
3960
3959
|
if (Cr) {
|
|
3961
3960
|
var cn = function() {
|
|
3962
|
-
if (!(!vt() || !
|
|
3961
|
+
if (!(!vt() || !xi()))
|
|
3963
3962
|
for (var e = 0; e < Qe.length; e++) {
|
|
3964
3963
|
var r = Qe[e];
|
|
3965
3964
|
r();
|
|
@@ -3967,15 +3966,15 @@ if (Cr) {
|
|
|
3967
3966
|
};
|
|
3968
3967
|
window.addEventListener("visibilitychange", cn, !1), window.addEventListener("focus", cn, !1);
|
|
3969
3968
|
}
|
|
3970
|
-
var
|
|
3969
|
+
var Si = function(e, r) {
|
|
3971
3970
|
var n = r.refreshOnWindowFocus, t = r.focusTimespan, a = t === void 0 ? 5e3 : t, o = re(), i = function() {
|
|
3972
3971
|
var s;
|
|
3973
3972
|
(s = o.current) === null || s === void 0 || s.call(o);
|
|
3974
3973
|
};
|
|
3975
3974
|
return Ie(function() {
|
|
3976
3975
|
if (n) {
|
|
3977
|
-
var s =
|
|
3978
|
-
o.current =
|
|
3976
|
+
var s = Ei(e.refresh.bind(e), a);
|
|
3977
|
+
o.current = Ti(function() {
|
|
3979
3978
|
s();
|
|
3980
3979
|
});
|
|
3981
3980
|
}
|
|
@@ -3985,7 +3984,7 @@ var wi = function(e, r) {
|
|
|
3985
3984
|
}, [n, a]), dt(function() {
|
|
3986
3985
|
i();
|
|
3987
3986
|
}), {};
|
|
3988
|
-
},
|
|
3987
|
+
}, wi = function(e, r) {
|
|
3989
3988
|
var n = r.retryInterval, t = r.retryCount, a = re(), o = re(0), i = re(!1);
|
|
3990
3989
|
return t ? {
|
|
3991
3990
|
onBefore: function() {
|
|
@@ -4008,7 +4007,7 @@ var wi = function(e, r) {
|
|
|
4008
4007
|
}
|
|
4009
4008
|
} : {};
|
|
4010
4009
|
}, Jr, fn;
|
|
4011
|
-
function
|
|
4010
|
+
function Ci() {
|
|
4012
4011
|
if (fn) return Jr;
|
|
4013
4012
|
fn = 1;
|
|
4014
4013
|
var e = Un(), r = pt(), n = "Expected a function";
|
|
@@ -4024,14 +4023,14 @@ function _i() {
|
|
|
4024
4023
|
}
|
|
4025
4024
|
return Jr = t, Jr;
|
|
4026
4025
|
}
|
|
4027
|
-
var
|
|
4028
|
-
const
|
|
4029
|
-
var
|
|
4026
|
+
var _i = Ci();
|
|
4027
|
+
const Oi = /* @__PURE__ */ nt(_i);
|
|
4028
|
+
var Ri = function(e, r) {
|
|
4030
4029
|
var n = r.throttleWait, t = r.throttleLeading, a = r.throttleTrailing, o = re(), i = {};
|
|
4031
4030
|
return t !== void 0 && (i.leading = t), a !== void 0 && (i.trailing = a), Ie(function() {
|
|
4032
4031
|
if (n) {
|
|
4033
4032
|
var s = e.runAsync.bind(e);
|
|
4034
|
-
return o.current =
|
|
4033
|
+
return o.current = Oi(function(f) {
|
|
4035
4034
|
f();
|
|
4036
4035
|
}, n, i), e.runAsync = function() {
|
|
4037
4036
|
for (var f = [], u = 0; u < arguments.length; u++)
|
|
@@ -4053,16 +4052,16 @@ var Pi = function(e, r) {
|
|
|
4053
4052
|
(s = o.current) === null || s === void 0 || s.cancel();
|
|
4054
4053
|
}
|
|
4055
4054
|
} : {};
|
|
4056
|
-
},
|
|
4055
|
+
}, Pi = function(e) {
|
|
4057
4056
|
wr && (Sr(e) || console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e, '".'))), Ie(function() {
|
|
4058
4057
|
e == null || e();
|
|
4059
4058
|
}, []);
|
|
4060
|
-
},
|
|
4059
|
+
}, Ai = function() {
|
|
4061
4060
|
var e = ue(dn({}), 2), r = e[1];
|
|
4062
4061
|
return Hn(function() {
|
|
4063
4062
|
return r({});
|
|
4064
4063
|
}, []);
|
|
4065
|
-
},
|
|
4064
|
+
}, ji = (
|
|
4066
4065
|
/** @class */
|
|
4067
4066
|
function() {
|
|
4068
4067
|
function e(r, n, t, a) {
|
|
@@ -4088,9 +4087,9 @@ var Pi = function(e, r) {
|
|
|
4088
4087
|
}, e.prototype.runAsync = function() {
|
|
4089
4088
|
for (var r = [], n = 0; n < arguments.length; n++)
|
|
4090
4089
|
r[n] = arguments[n];
|
|
4091
|
-
return
|
|
4090
|
+
return Vo(this, void 0, void 0, function() {
|
|
4092
4091
|
var t, a, o, i, s, f, u, d, p, b, g, m, h, x, w, R, T, S, l, A, P;
|
|
4093
|
-
return
|
|
4092
|
+
return Xo(this, function(J) {
|
|
4094
4093
|
switch (J.label) {
|
|
4095
4094
|
case 0:
|
|
4096
4095
|
if (this.count += 1, t = this.count, a = this.runPluginHandler("onBefore", r), o = a.stopNow, i = o === void 0 ? !1 : o, s = a.returnNow, f = s === void 0 ? !1 : s, u = Dn(a, ["stopNow", "returnNow"]), i)
|
|
@@ -4149,23 +4148,23 @@ var Pi = function(e, r) {
|
|
|
4149
4148
|
}, e;
|
|
4150
4149
|
}()
|
|
4151
4150
|
);
|
|
4152
|
-
function
|
|
4151
|
+
function Ni(e, r, n) {
|
|
4153
4152
|
r === void 0 && (r = {}), n === void 0 && (n = []);
|
|
4154
4153
|
var t = r.manual, a = t === void 0 ? !1 : t, o = r.ready, i = o === void 0 ? !0 : o, s = Dn(r, ["manual", "ready"]);
|
|
4155
4154
|
wr && r.defaultParams && !Array.isArray(r.defaultParams) && console.warn("expected defaultParams is array, got ".concat(typeof r.defaultParams));
|
|
4156
4155
|
var f = xe({
|
|
4157
4156
|
manual: a,
|
|
4158
4157
|
ready: i
|
|
4159
|
-
}, s), u = Wn(e), d =
|
|
4158
|
+
}, s), u = Wn(e), d = Ai(), p = Fn(function() {
|
|
4160
4159
|
var b = n.map(function(g) {
|
|
4161
4160
|
var m;
|
|
4162
4161
|
return (m = g == null ? void 0 : g.onInit) === null || m === void 0 ? void 0 : m.call(g, f);
|
|
4163
4162
|
}).filter(Boolean);
|
|
4164
|
-
return new
|
|
4163
|
+
return new ji(u, f, d, Object.assign.apply(Object, ce([{}], ue(b), !1)));
|
|
4165
4164
|
}, []);
|
|
4166
4165
|
return p.options = f, p.pluginImpls = n.map(function(b) {
|
|
4167
4166
|
return b(p, f);
|
|
4168
|
-
}),
|
|
4167
|
+
}), Pi(function() {
|
|
4169
4168
|
if (!a && i) {
|
|
4170
4169
|
var b = p.state.params || r.defaultParams || [];
|
|
4171
4170
|
p.run.apply(p, ce([], ue(b), !1));
|
|
@@ -4185,11 +4184,11 @@ function $i(e, r, n) {
|
|
|
4185
4184
|
mutate: qe(p.mutate.bind(p))
|
|
4186
4185
|
};
|
|
4187
4186
|
}
|
|
4188
|
-
function
|
|
4189
|
-
return
|
|
4187
|
+
function $i(e, r, n) {
|
|
4188
|
+
return Ni(e, r, ce(ce([], ue(n || []), !1), [mi, hi, bi, Si, Ri, qn, ti, wi], !1));
|
|
4190
4189
|
}
|
|
4191
|
-
function
|
|
4192
|
-
const t =
|
|
4190
|
+
function Wi(e, r, n) {
|
|
4191
|
+
const t = $i(e, {
|
|
4193
4192
|
...r,
|
|
4194
4193
|
onError(o, i) {
|
|
4195
4194
|
var s;
|
|
@@ -4202,15 +4201,15 @@ function Yi(e, r, n) {
|
|
|
4202
4201
|
};
|
|
4203
4202
|
}
|
|
4204
4203
|
export {
|
|
4205
|
-
|
|
4206
|
-
|
|
4204
|
+
Li as App,
|
|
4205
|
+
Di as CheckboxValue,
|
|
4207
4206
|
So as GlobalLoading,
|
|
4208
|
-
|
|
4207
|
+
Fi as IconButton,
|
|
4209
4208
|
Oo as IconFont,
|
|
4210
|
-
|
|
4209
|
+
qi as SwitchValue,
|
|
4211
4210
|
In as message,
|
|
4212
4211
|
Co as modal,
|
|
4213
4212
|
wo as notification,
|
|
4214
4213
|
bo as setGlobalLoading,
|
|
4215
|
-
|
|
4214
|
+
Wi as useRequest
|
|
4216
4215
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface ButtonTooltipProps {
|
|
3
3
|
/**
|
|
4
4
|
* 气泡内容
|
|
@@ -52,6 +52,5 @@ interface IconButtonProps extends Omit<ButtonTooltipProps, 'children'> {
|
|
|
52
52
|
*/
|
|
53
53
|
[key: string]: any;
|
|
54
54
|
}
|
|
55
|
-
export declare const IconButton: (props: IconButtonProps
|
|
56
|
-
|
|
57
|
-
export default _default;
|
|
55
|
+
export declare const IconButton: (props: IconButtonProps) => React.JSX.Element;
|
|
56
|
+
export default IconButton;
|